Skip to content

Commit

Permalink
fix(ui): update text mappings
Browse files Browse the repository at this point in the history
  • Loading branch information
artyorsh authored Apr 26, 2019
1 parent 9aa396c commit 87b89c1
Show file tree
Hide file tree
Showing 15 changed files with 212 additions and 16 deletions.
1 change: 1 addition & 0 deletions src/framework/ui/avatar/avatar.spec.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ exports[`@avatar: matches snapshot * appearance * default 1`] = `
"color-warning-800": "#945400",
"color-warning-900": "#703C00",
"color-white": "#FFFFFF",
"font-light-color": "#FFFFFF",
"font-primary-color": "#0D1C2E",
"font-primary-disabled-color": "#C8CEDB",
"font-primary-family": "",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ exports[`@bottom-navigation: component checks * additional appearance 1`] = `
"color-warning-800": "#945400",
"color-warning-900": "#703C00",
"color-white": "#FFFFFF",
"font-light-color": "#FFFFFF",
"font-primary-color": "#0D1C2E",
"font-primary-disabled-color": "#C8CEDB",
"font-primary-family": "",
Expand Down Expand Up @@ -265,6 +266,7 @@ exports[`@bottom-navigation: component checks * empty 1`] = `
"color-warning-800": "#945400",
"color-warning-900": "#703C00",
"color-white": "#FFFFFF",
"font-light-color": "#FFFFFF",
"font-primary-color": "#0D1C2E",
"font-primary-disabled-color": "#C8CEDB",
"font-primary-family": "",
Expand Down Expand Up @@ -413,6 +415,7 @@ exports[`@bottom-navigation: component checks * with routes 1`] = `
"color-warning-800": "#945400",
"color-warning-900": "#703C00",
"color-white": "#FFFFFF",
"font-light-color": "#FFFFFF",
"font-primary-color": "#0D1C2E",
"font-primary-disabled-color": "#C8CEDB",
"font-primary-family": "",
Expand Down Expand Up @@ -580,6 +583,7 @@ exports[`@bottom-navigation-tab: component checks * empty 1`] = `
"color-warning-800": "#945400",
"color-warning-900": "#703C00",
"color-white": "#FFFFFF",
"font-light-color": "#FFFFFF",
"font-primary-color": "#0D1C2E",
"font-primary-disabled-color": "#C8CEDB",
"font-primary-family": "",
Expand Down Expand Up @@ -700,6 +704,7 @@ exports[`@bottom-navigation-tab: component checks * text/selected 1`] = `
"color-warning-800": "#945400",
"color-warning-900": "#703C00",
"color-white": "#FFFFFF",
"font-light-color": "#FFFFFF",
"font-primary-color": "#0D1C2E",
"font-primary-disabled-color": "#C8CEDB",
"font-primary-family": "",
Expand Down Expand Up @@ -835,6 +840,7 @@ exports[`@bottom-navigation-tab: component checks * text/unselected 1`] = `
"color-warning-800": "#945400",
"color-warning-900": "#703C00",
"color-white": "#FFFFFF",
"font-light-color": "#FFFFFF",
"font-primary-color": "#0D1C2E",
"font-primary-disabled-color": "#C8CEDB",
"font-primary-family": "",
Expand Down Expand Up @@ -970,6 +976,7 @@ exports[`@bottom-navigation-tab: component checks * with icon 1`] = `
"color-warning-800": "#945400",
"color-warning-900": "#703C00",
"color-white": "#FFFFFF",
"font-light-color": "#FFFFFF",
"font-primary-color": "#0D1C2E",
"font-primary-disabled-color": "#C8CEDB",
"font-primary-family": "",
Expand Down
5 changes: 5 additions & 0 deletions src/framework/ui/button/button.spec.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ exports[`@button: matches snapshot * appearance * empty 1`] = `
"color-warning-800": "#945400",
"color-warning-900": "#703C00",
"color-white": "#FFFFFF",
"font-light-color": "#FFFFFF",
"font-primary-color": "#0D1C2E",
"font-primary-disabled-color": "#C8CEDB",
"font-primary-family": "",
Expand Down Expand Up @@ -234,6 +235,7 @@ exports[`@button: matches snapshot * appearance * icon 1`] = `
"color-warning-800": "#945400",
"color-warning-900": "#703C00",
"color-white": "#FFFFFF",
"font-light-color": "#FFFFFF",
"font-primary-color": "#0D1C2E",
"font-primary-disabled-color": "#C8CEDB",
"font-primary-family": "",
Expand Down Expand Up @@ -381,6 +383,7 @@ exports[`@button: matches snapshot * appearance * icon and text 1`] = `
"color-warning-800": "#945400",
"color-warning-900": "#703C00",
"color-white": "#FFFFFF",
"font-light-color": "#FFFFFF",
"font-primary-color": "#0D1C2E",
"font-primary-disabled-color": "#C8CEDB",
"font-primary-family": "",
Expand Down Expand Up @@ -541,6 +544,7 @@ exports[`@button: matches snapshot * appearance * text 1`] = `
"color-warning-800": "#945400",
"color-warning-900": "#703C00",
"color-white": "#FFFFFF",
"font-light-color": "#FFFFFF",
"font-primary-color": "#0D1C2E",
"font-primary-disabled-color": "#C8CEDB",
"font-primary-family": "",
Expand Down Expand Up @@ -686,6 +690,7 @@ exports[`@button: matches snapshot * interaction * stateless 1`] = `
"color-warning-800": "#945400",
"color-warning-900": "#703C00",
"color-white": "#FFFFFF",
"font-light-color": "#FFFFFF",
"font-primary-color": "#0D1C2E",
"font-primary-disabled-color": "#C8CEDB",
"font-primary-family": "",
Expand Down
5 changes: 5 additions & 0 deletions src/framework/ui/checkbox/checkbox.spec.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ exports[`@checkbox matches snapshots * active 1`] = `
"color-warning-800": "#945400",
"color-warning-900": "#703C00",
"color-white": "#FFFFFF",
"font-light-color": "#FFFFFF",
"font-primary-color": "#0D1C2E",
"font-primary-disabled-color": "#C8CEDB",
"font-primary-family": "",
Expand Down Expand Up @@ -308,6 +309,7 @@ exports[`@checkbox matches snapshots * active: default 1`] = `
"color-warning-800": "#945400",
"color-warning-900": "#703C00",
"color-white": "#FFFFFF",
"font-light-color": "#FFFFFF",
"font-primary-color": "#0D1C2E",
"font-primary-disabled-color": "#C8CEDB",
"font-primary-family": "",
Expand Down Expand Up @@ -487,6 +489,7 @@ exports[`@checkbox matches snapshots * checked.disabled 1`] = `
"color-warning-800": "#945400",
"color-warning-900": "#703C00",
"color-white": "#FFFFFF",
"font-light-color": "#FFFFFF",
"font-primary-color": "#0D1C2E",
"font-primary-disabled-color": "#C8CEDB",
"font-primary-family": "",
Expand Down Expand Up @@ -663,6 +666,7 @@ exports[`@checkbox matches snapshots * default 1`] = `
"color-warning-800": "#945400",
"color-warning-900": "#703C00",
"color-white": "#FFFFFF",
"font-light-color": "#FFFFFF",
"font-primary-color": "#0D1C2E",
"font-primary-disabled-color": "#C8CEDB",
"font-primary-family": "",
Expand Down Expand Up @@ -840,6 +844,7 @@ exports[`@checkbox matches snapshots * with text 1`] = `
"color-warning-800": "#945400",
"color-warning-900": "#703C00",
"color-white": "#FFFFFF",
"font-light-color": "#FFFFFF",
"font-primary-color": "#0D1C2E",
"font-primary-disabled-color": "#C8CEDB",
"font-primary-family": "",
Expand Down
164 changes: 149 additions & 15 deletions src/framework/ui/common/mapping.json
Original file line number Diff line number Diff line change
Expand Up @@ -1994,16 +1994,31 @@
"meta": {
"scope": "all",
"parameters": {
"color": {
"type": "string"
},
"fontSize": {
"type": "number"
},
"lineHeight": {
"type": "number"
},
"fontWeight": {
"type": "string"
},
"color": {
"type": "string"
}
},
"appearances": {
"primary": {
"dark": {
"default": true
},
"light": {
"default": false
},
"hintLight": {
"default": false
},
"hintDark": {
"default": false
}
},
"variantGroups": {
Expand All @@ -2026,43 +2041,162 @@
"h6": {
"default": false
},
"body": {
"s1": {
"default": false
},
"s2": {
"default": false
},
"p1": {
"default": true
},
"p2": {
"default": false
},
"c1": {
"default": false
},
"c2": {
"default": false
},
"overline": {
"default": false
},
"label": {
"default": false
}
},
"status": {
"primary": {
"default": false
},
"success": {
"default": false
},
"info": {
"default": false
},
"warning": {
"default": false
},
"danger": {
"default": false
}
}
},
"states": {}
},
"appearances": {
"primary": {
"dark": {
"mapping": {
"color": "text-primary"
"color": "font-primary-color"
},
"variantGroups": {
"category": {
"h1": {
"fontSize": 64
"fontSize": 72,
"lineHeight": 80,
"fontWeight": "800"
},
"h2": {
"fontSize": 40
"fontSize": 60,
"lineHeight": 72,
"fontWeight": "800"
},
"h3": {
"fontSize": 32
"fontSize": 48,
"lineHeight": 56,
"fontWeight": "800"
},
"h4": {
"fontSize": 24
"fontSize": 32,
"lineHeight": 40,
"fontWeight": "800"
},
"h5": {
"fontSize": 16
"fontSize": 24,
"lineHeight": 32,
"fontWeight": "800"
},
"h6": {
"fontSize": 14
"fontSize": 20,
"lineHeight": 28,
"fontWeight": "800"
},
"s1": {
"fontSize": 15,
"lineHeight": 24,
"fontWeight": "600"
},
"s2": {
"fontSize": 13,
"lineHeight": 24,
"fontWeight": "600"
},
"p1": {
"fontSize": 15,
"lineHeight": 20,
"fontWeight": "normal"
},
"p2": {
"fontSize": 13,
"lineHeight": 16,
"fontWeight": "normal"
},
"c1": {
"fontSize": 11,
"lineHeight": 16,
"fontWeight": "normal"
},
"c2": {
"fontSize": 11,
"lineHeight": 16,
"fontWeight": "600"
},
"overline": {
"fontSize": 11,
"lineHeight": 16,
"fontWeight": "bold"
},
"label": {
"fontSize": 12,
"lineHeight": 16,
"fontWeight": "bold"
}
},
"status": {
"primary": {
"color": "color-primary-500"
},
"body": {
"fontSize": 16
"success": {
"color": "color-success-500"
},
"info": {
"color": "color-info-500"
},
"warning": {
"color": "color-warning-500"
},
"danger": {
"color": "color-danger-500"
}
}
}
},
"light": {
"mapping": {
"color": "font-light-color"
}
},
"hintLight": {
"mapping": {
"color": "color-basic-400"
}
},
"hintDark": {
"mapping": {
"color": "color-basic-600"
}
}
}
},
Expand Down
1 change: 1 addition & 0 deletions src/framework/ui/common/theme.json
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@
"outline-disabled-color": "transparent",
"font-primary-family": "",
"font-primary-color": "#0D1C2E",
"font-light-color": "#FFFFFF",
"font-primary-disabled-color": "#C8CEDB",
"font-primary-regular-text-size": 14,
"font-primary-regular-text-weight": "600",
Expand Down
3 changes: 3 additions & 0 deletions src/framework/ui/input/input.spec.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ exports[`@input: matches snapshot * appearance * icon 1`] = `
"color-warning-800": "#945400",
"color-warning-900": "#703C00",
"color-white": "#FFFFFF",
"font-light-color": "#FFFFFF",
"font-primary-color": "#0D1C2E",
"font-primary-disabled-color": "#C8CEDB",
"font-primary-family": "",
Expand Down Expand Up @@ -303,6 +304,7 @@ exports[`@input: matches snapshot * appearance * label + caption 1`] = `
"color-warning-800": "#945400",
"color-warning-900": "#703C00",
"color-white": "#FFFFFF",
"font-light-color": "#FFFFFF",
"font-primary-color": "#0D1C2E",
"font-primary-disabled-color": "#C8CEDB",
"font-primary-family": "",
Expand Down Expand Up @@ -488,6 +490,7 @@ exports[`@input: matches snapshot * interaction * stateless 1`] = `
"color-warning-800": "#945400",
"color-warning-900": "#703C00",
"color-white": "#FFFFFF",
"font-light-color": "#FFFFFF",
"font-primary-color": "#0D1C2E",
"font-primary-disabled-color": "#C8CEDB",
"font-primary-family": "",
Expand Down
Loading

0 comments on commit 87b89c1

Please sign in to comment.