-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* chore: fix version number * feat: adds video-icon svg * feat: adds knobs to icons * chore: make linter happy * chore: uses styleguide colors in Icons * chore: update tests * chore: make linter happy * chore: removes addon-a11y * chore: adjusts styleguide colour names in icons * chore: removes : in icon test descriptions * feat: implements video-label * chore: makes icons-witdh optional * chore: fixes test names in icons * chore: align version numbers * chore: update snapshots * chore: video-label uses styleguide font now * chore: updates test names in video label * chore: align version numbers * chore: cleanup video-label * chore: refine video label style * chore: replace decimals with ratios in icons
- Loading branch information
1 parent
f9bf210
commit d13c2a5
Showing
28 changed files
with
632 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"presets": ["env", "react", "stage-2"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
**/node_modules/* | ||
**/coverage/* | ||
dist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"extends": ["@times-components/thetimes"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
*.stories.js | ||
__tests__ | ||
*.fructose.js | ||
*.test.js | ||
fixtures | ||
coverage | ||
android/**/test | ||
android/**/androidTest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
save-exact=true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
**/node_modules/* | ||
dist | ||
__snapshots__ | ||
android/* | ||
ios/* | ||
CHANGELOG.md | ||
.* | ||
!*.json | ||
**/package.json | ||
**/coverage/* | ||
LICENSE | ||
yarn.lock |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
BSD 3-Clause License | ||
|
||
Copyright (c) 2017, News UK & Ireland Ltd | ||
All rights reserved. | ||
|
||
Redistribution and use in source and binary forms, with or without | ||
modification, are permitted provided that the following conditions are met: | ||
|
||
* Redistributions of source code must retain the above copyright notice, this | ||
list of conditions and the following disclaimer. | ||
|
||
* Redistributions in binary form must reproduce the above copyright notice, | ||
this list of conditions and the following disclaimer in the documentation | ||
and/or other materials provided with the distribution. | ||
|
||
* Neither the name of the copyright holder nor the names of its | ||
contributors may be used to endorse or promote products derived from | ||
this software without specific prior written permission. | ||
|
||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" | ||
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | ||
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE | ||
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | ||
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR | ||
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER | ||
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, | ||
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | ||
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"env": { | ||
"jest": true | ||
} | ||
} |
116 changes: 116 additions & 0 deletions
116
packages/video-label/__tests__/android/__snapshots__/video-label.android.test.js.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,116 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`Video Label test on android renders VideoLabel 1`] = ` | ||
<View | ||
style={ | ||
Object { | ||
"alignItems": "center", | ||
"flexDirection": "row", | ||
} | ||
} | ||
> | ||
<svg | ||
height={12} | ||
style={Object {}} | ||
viewBox="0.15463916957378387 0.049614034593105316 23.59917640686035 13.728596687316895" | ||
width={20.64} | ||
> | ||
<rect | ||
fill="#1D1D1B" | ||
height="13.5721404" | ||
style={Object {}} | ||
width="15.4550103" | ||
x="0.154639175" | ||
y="0.139754386" | ||
/> | ||
<polygon | ||
fill="#1D1D1B" | ||
points="16.3405361 4.14989474 16.3405361 9.66442105 22.0216082 12.8146667 22.0216082 0.999894737" | ||
style={Object {}} | ||
/> | ||
<polygon | ||
fill="#1D1D1B" | ||
points="23.7538144 0.0496140351 22.7616495 0.643508772 22.7616495 13.1902105 23.7538144 13.7782105" | ||
style={Object {}} | ||
/> | ||
</svg> | ||
<Text | ||
accessible={true} | ||
allowFontScaling={true} | ||
ellipsizeMode="tail" | ||
style={ | ||
Array [ | ||
Object { | ||
"fontFamily": "GillSansMTStd-Medium", | ||
"fontSize": 12, | ||
"fontWeight": "400", | ||
"letterSpacing": 1.2, | ||
"lineHeight": 12, | ||
"margin": 0, | ||
"padding": 0, | ||
"position": "relative", | ||
"top": 2, | ||
}, | ||
Object { | ||
"color": "#008347", | ||
"marginLeft": 5, | ||
}, | ||
] | ||
} | ||
> | ||
V I D E O | ||
</Text> | ||
<Text | ||
accessible={true} | ||
allowFontScaling={true} | ||
ellipsizeMode="tail" | ||
style={ | ||
Array [ | ||
Object { | ||
"fontFamily": "GillSansMTStd-Medium", | ||
"fontSize": 12, | ||
"fontWeight": "400", | ||
"letterSpacing": 1.2, | ||
"lineHeight": 12, | ||
"margin": 0, | ||
"padding": 0, | ||
"position": "relative", | ||
"top": 2, | ||
}, | ||
Object { | ||
"color": "#008347", | ||
"marginLeft": 5, | ||
}, | ||
] | ||
} | ||
> | ||
| | ||
</Text> | ||
<Text | ||
accessible={true} | ||
allowFontScaling={true} | ||
ellipsizeMode="tail" | ||
style={ | ||
Array [ | ||
Object { | ||
"fontFamily": "GillSansMTStd-Medium", | ||
"fontSize": 12, | ||
"fontWeight": "400", | ||
"letterSpacing": 1.2, | ||
"lineHeight": 12, | ||
"margin": 0, | ||
"padding": 0, | ||
"position": "relative", | ||
"top": 2, | ||
}, | ||
Object { | ||
"color": "#008347", | ||
"paddingLeft": 5, | ||
}, | ||
] | ||
} | ||
> | ||
S W I M M I N G | ||
</Text> | ||
</View> | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
const jestConfigurator = require("@times-components/jest-configurator").default; | ||
|
||
module.exports = jestConfigurator("android", __dirname); |
5 changes: 5 additions & 0 deletions
5
packages/video-label/__tests__/android/video-label.android.test.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import shared from "../shared"; | ||
|
||
describe("Video Label test on android", () => { | ||
shared(); | ||
}); |
115 changes: 115 additions & 0 deletions
115
packages/video-label/__tests__/ios/__snapshots__/video-label.ios.test.js.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,115 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`Video Label test on ios renders VideoLabel 1`] = ` | ||
<View | ||
style={ | ||
Object { | ||
"alignItems": "center", | ||
"flexDirection": "row", | ||
} | ||
} | ||
> | ||
<svg | ||
height={12} | ||
style={Object {}} | ||
viewBox="0.15463916957378387 0.049614034593105316 23.59917640686035 13.728596687316895" | ||
width={20.64} | ||
> | ||
<rect | ||
fill="#1D1D1B" | ||
height="13.5721404" | ||
style={Object {}} | ||
width="15.4550103" | ||
x="0.154639175" | ||
y="0.139754386" | ||
/> | ||
<polygon | ||
fill="#1D1D1B" | ||
points="16.3405361 4.14989474 16.3405361 9.66442105 22.0216082 12.8146667 22.0216082 0.999894737" | ||
style={Object {}} | ||
/> | ||
<polygon | ||
fill="#1D1D1B" | ||
points="23.7538144 0.0496140351 22.7616495 0.643508772 22.7616495 13.1902105 23.7538144 13.7782105" | ||
style={Object {}} | ||
/> | ||
</svg> | ||
<Text | ||
accessible={true} | ||
allowFontScaling={true} | ||
ellipsizeMode="tail" | ||
style={ | ||
Array [ | ||
Object { | ||
"fontFamily": "GillSansMTStd-Medium", | ||
"fontSize": 12, | ||
"fontWeight": "400", | ||
"letterSpacing": 1.2, | ||
"lineHeight": 12, | ||
"margin": 0, | ||
"padding": 0, | ||
"position": "relative", | ||
"top": 2, | ||
}, | ||
Object { | ||
"color": "#008347", | ||
"marginLeft": 5, | ||
}, | ||
] | ||
} | ||
> | ||
VIDEO | ||
</Text> | ||
<Text | ||
accessible={true} | ||
allowFontScaling={true} | ||
ellipsizeMode="tail" | ||
style={ | ||
Array [ | ||
Object { | ||
"fontFamily": "GillSansMTStd-Medium", | ||
"fontSize": 12, | ||
"fontWeight": "400", | ||
"letterSpacing": 1.2, | ||
"lineHeight": 12, | ||
"margin": 0, | ||
"padding": 0, | ||
"position": "relative", | ||
"top": 2, | ||
}, | ||
Object { | ||
"marginLeft": 5, | ||
}, | ||
] | ||
} | ||
> | ||
| | ||
</Text> | ||
<Text | ||
accessible={true} | ||
allowFontScaling={true} | ||
ellipsizeMode="tail" | ||
style={ | ||
Array [ | ||
Object { | ||
"fontFamily": "GillSansMTStd-Medium", | ||
"fontSize": 12, | ||
"fontWeight": "400", | ||
"letterSpacing": 1.2, | ||
"lineHeight": 12, | ||
"margin": 0, | ||
"padding": 0, | ||
"position": "relative", | ||
"top": 2, | ||
}, | ||
Object { | ||
"color": "#008347", | ||
"paddingLeft": 5, | ||
}, | ||
] | ||
} | ||
> | ||
SWIMMING | ||
</Text> | ||
</View> | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
const jestConfigurator = require("@times-components/jest-configurator").default; | ||
|
||
module.exports = jestConfigurator("ios", __dirname); |
Oops, something went wrong.