@telus-uds/theme-allium 0.0.2-prerelease.5 → 0.0.2-prerelease.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +22 -0
- package/build/theme.js +2841 -0
- package/package.json +9 -7
- package/src/components/ActivityIndicator.js +6 -8
- package/src/components/Box.js +11 -14
- package/src/components/Button.js +60 -67
- package/src/components/ButtonGroup.js +8 -11
- package/src/components/ButtonGroupItem.js +64 -54
- package/src/components/Card.js +42 -44
- package/src/components/Checkbox.js +37 -43
- package/src/components/CheckboxGroup.js +8 -0
- package/src/components/ChevronLink.js +7 -14
- package/src/components/Divider.js +5 -7
- package/src/components/ExpandCollapse.js +4 -7
- package/src/components/ExpandCollapseControl.js +17 -24
- package/src/components/ExpandCollapsePanel.js +7 -9
- package/src/components/Feedback.js +31 -40
- package/src/components/Icon.js +8 -10
- package/src/components/InputLabel.js +12 -18
- package/src/components/InputSupports.js +2 -4
- package/src/components/Link.js +59 -67
- package/src/components/List.js +26 -28
- package/src/components/Modal.js +57 -0
- package/src/components/Notification.js +90 -0
- package/src/components/Pagination.js +10 -16
- package/src/components/PaginationPageButton.js +33 -39
- package/src/components/PaginationSideButton.js +43 -52
- package/src/components/Progress.js +13 -0
- package/src/components/ProgressBar.js +31 -0
- package/src/components/Radio.js +47 -42
- package/src/components/RadioCard.js +123 -0
- package/src/components/RadioCardGroup.js +24 -0
- package/src/components/RadioGroup.js +8 -0
- package/src/components/Search.js +57 -0
- package/src/components/SearchButton.js +71 -0
- package/src/components/Select.js +40 -50
- package/src/components/SideNav.js +4 -7
- package/src/components/SideNavItem.js +48 -52
- package/src/components/SideNavItemsGroup.js +16 -23
- package/src/components/Skeleton.js +8 -10
- package/src/components/StackView.js +4 -6
- package/src/components/StepTracker.js +59 -0
- package/src/components/Tabs.js +13 -0
- package/src/components/TabsItem.js +81 -0
- package/src/components/TabsScrollButton.js +34 -0
- package/src/components/Tags.js +8 -11
- package/src/components/TagsItem.js +86 -78
- package/src/components/TextArea.js +3 -5
- package/src/components/TextInput.js +37 -47
- package/src/components/ToggleSwitch.js +53 -60
- package/src/components/Tooltip.js +18 -22
- package/src/components/TooltipButton.js +19 -26
- package/src/components/Typography.js +86 -104
- package/src/components/index.js +53 -37
- package/src/components/spacingScale.js +23 -26
- package/src/index.js +3 -3
- package/lib/components/ActivityIndicator.js +0 -35
- package/lib/components/Box.js +0 -89
- package/lib/components/Button.js +0 -252
- package/lib/components/ButtonGroup.js +0 -34
- package/lib/components/ButtonGroupItem.js +0 -108
- package/lib/components/Card.js +0 -120
- package/lib/components/Checkbox.js +0 -80
- package/lib/components/ChevronLink.js +0 -39
- package/lib/components/Divider.js +0 -44
- package/lib/components/ExpandCollapse.js +0 -23
- package/lib/components/ExpandCollapseControl.js +0 -49
- package/lib/components/ExpandCollapsePanel.js +0 -25
- package/lib/components/Feedback.js +0 -89
- package/lib/components/Icon.js +0 -47
- package/lib/components/InputLabel.js +0 -33
- package/lib/components/InputSupports.js +0 -19
- package/lib/components/Link.js +0 -241
- package/lib/components/List.js +0 -86
- package/lib/components/Pagination.js +0 -40
- package/lib/components/PaginationPageButton.js +0 -82
- package/lib/components/PaginationSideButton.js +0 -113
- package/lib/components/Radio.js +0 -78
- package/lib/components/Select.js +0 -102
- package/lib/components/SideNav.js +0 -23
- package/lib/components/SideNavItem.js +0 -118
- package/lib/components/SideNavItemsGroup.js +0 -49
- package/lib/components/Skeleton.js +0 -26
- package/lib/components/StackView.js +0 -22
- package/lib/components/Tags.js +0 -34
- package/lib/components/TagsItem.js +0 -133
- package/lib/components/TextArea.js +0 -20
- package/lib/components/TextInput.js +0 -97
- package/lib/components/ToggleSwitch.js +0 -144
- package/lib/components/Tooltip.js +0 -48
- package/lib/components/TooltipButton.js +0 -86
- package/lib/components/Typography.js +0 -370
- package/lib/components/index.js +0 -303
- package/lib/components/spacingScale.js +0 -163
- package/lib/index.js +0 -30
package/package.json
CHANGED
|
@@ -1,21 +1,23 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@telus-uds/theme-allium",
|
|
3
|
-
"version": "0.0.2-prerelease.
|
|
3
|
+
"version": "0.0.2-prerelease.6",
|
|
4
4
|
"description": "Allium theme",
|
|
5
5
|
"author": "TELUS Digital",
|
|
6
6
|
"homepage": "https://github.com/telus/universal-design-system#readme",
|
|
7
7
|
"license": "ISC",
|
|
8
|
-
"main": "
|
|
9
|
-
"react-native": "
|
|
8
|
+
"main": "build/theme.js",
|
|
9
|
+
"react-native": "build/theme.js",
|
|
10
10
|
"directories": {
|
|
11
11
|
"lib": "lib",
|
|
12
12
|
"test": "__tests__"
|
|
13
13
|
},
|
|
14
|
-
"dependencies": {
|
|
15
|
-
|
|
14
|
+
"dependencies": {},
|
|
15
|
+
"devDependencies": {
|
|
16
|
+
"@telus-uds/palette-allium": "^1.0.0-prerelease.0",
|
|
17
|
+
"@telus-uds/system-themes": "^0.0.2-prerelease.1"
|
|
16
18
|
},
|
|
17
19
|
"peerDependencies": {
|
|
18
|
-
"@telus-uds/palette-allium": "^
|
|
20
|
+
"@telus-uds/palette-allium": "^1.0.0-prerelease.0"
|
|
19
21
|
},
|
|
20
22
|
"files": [
|
|
21
23
|
"lib",
|
|
@@ -28,7 +30,7 @@
|
|
|
28
30
|
"scripts": {
|
|
29
31
|
"test": "jest",
|
|
30
32
|
"release": "standard-version",
|
|
31
|
-
"build": "
|
|
33
|
+
"build": "THEME_PATH=./src/index.js UDS_THEME_MODULE_PALETTE=@telus-uds/palette-allium UDS_THEME_MODULE_SYSTEM=@telus-uds/system-themes/src/tokens/rn UDS_THEME_MODULE_APPEARANCES=@telus-uds/system-themes/schema/appearances system-themes-build",
|
|
32
34
|
"dev": "nodemon -w src -x 'yarn build'"
|
|
33
35
|
},
|
|
34
36
|
"bugs": {
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export default {
|
|
1
|
+
module.exports = {
|
|
4
2
|
appearances: {
|
|
5
3
|
size: {
|
|
6
4
|
values: ['large'],
|
|
@@ -9,16 +7,16 @@ export default {
|
|
|
9
7
|
}
|
|
10
8
|
},
|
|
11
9
|
tokens: {
|
|
12
|
-
size: palette.size.size20,
|
|
13
|
-
thickness: palette.border.border2,
|
|
14
|
-
color: palette.color.greenAccessible
|
|
10
|
+
size: '{palette.size.size20}',
|
|
11
|
+
thickness: '{palette.border.border2}',
|
|
12
|
+
color: '{palette.color.greenAccessible}'
|
|
15
13
|
},
|
|
16
14
|
rules: [
|
|
17
15
|
{
|
|
18
16
|
if: { size: 'large' },
|
|
19
17
|
tokens: {
|
|
20
|
-
thickness: palette.border.border4,
|
|
21
|
-
size: palette.size.size40
|
|
18
|
+
thickness: '{palette.border.border4}',
|
|
19
|
+
size: '{palette.size.size40}'
|
|
22
20
|
}
|
|
23
21
|
}
|
|
24
22
|
]
|
package/src/components/Box.js
CHANGED
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
import system from '@telus-uds/system-themes/src/tokens/rn'
|
|
3
|
-
|
|
4
|
-
export default {
|
|
1
|
+
module.exports = {
|
|
5
2
|
appearances: {
|
|
6
3
|
background: {
|
|
7
4
|
description: 'Background colour of box. Transparent if not specified.',
|
|
@@ -19,17 +16,17 @@ export default {
|
|
|
19
16
|
}
|
|
20
17
|
},
|
|
21
18
|
tokens: {
|
|
22
|
-
backgroundColor: system.color.none
|
|
19
|
+
backgroundColor: '{system.color.none}'
|
|
23
20
|
},
|
|
24
21
|
rules: [
|
|
25
|
-
{ if: { background: 'lightest' }, tokens: { backgroundColor: palette.color.white } },
|
|
26
|
-
{ if: { background: 'light' }, tokens: { backgroundColor: palette.color.greyAthens } },
|
|
27
|
-
{ if: { background: 'dark' }, tokens: { backgroundColor: palette.color.greyCharcoal } },
|
|
28
|
-
{ if: { background: 'darkest' }, tokens: { backgroundColor: palette.color.greyThunder } },
|
|
29
|
-
{ if: { background: 'critical' }, tokens: { backgroundColor: palette.color.redDark } },
|
|
30
|
-
{ if: { background: 'danger' }, tokens: { backgroundColor: palette.color.redLight } },
|
|
31
|
-
{ if: { background: 'warning' }, tokens: { backgroundColor: palette.color.amberLight } },
|
|
32
|
-
{ if: { background: 'positive' }, tokens: { backgroundColor: palette.color.greenPanache } },
|
|
33
|
-
{ if: { background: 'brand' }, tokens: { backgroundColor: palette.color.purpleTelus } }
|
|
22
|
+
{ if: { background: 'lightest' }, tokens: { backgroundColor: '{palette.color.white}' } },
|
|
23
|
+
{ if: { background: 'light' }, tokens: { backgroundColor: '{palette.color.greyAthens}' } },
|
|
24
|
+
{ if: { background: 'dark' }, tokens: { backgroundColor: '{palette.color.greyCharcoal}' } },
|
|
25
|
+
{ if: { background: 'darkest' }, tokens: { backgroundColor: '{palette.color.greyThunder}' } },
|
|
26
|
+
{ if: { background: 'critical' }, tokens: { backgroundColor: '{palette.color.redDark}' } },
|
|
27
|
+
{ if: { background: 'danger' }, tokens: { backgroundColor: '{palette.color.redLight}' } },
|
|
28
|
+
{ if: { background: 'warning' }, tokens: { backgroundColor: '{palette.color.amberLight}' } },
|
|
29
|
+
{ if: { background: 'positive' }, tokens: { backgroundColor: '{palette.color.greenPanache}' } },
|
|
30
|
+
{ if: { background: 'brand' }, tokens: { backgroundColor: '{palette.color.purpleTelus}' } }
|
|
34
31
|
]
|
|
35
32
|
}
|
package/src/components/Button.js
CHANGED
|
@@ -1,12 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
import system from '@telus-uds/system-themes/src/tokens/rn'
|
|
3
|
-
import { appearances } from '@telus-uds/system-themes/schema'
|
|
4
|
-
|
|
5
|
-
export default {
|
|
1
|
+
module.exports = {
|
|
6
2
|
appearances: {
|
|
7
3
|
priority: {
|
|
8
4
|
description:
|
|
9
|
-
'Indicates the importance of the call-to-action. Limit the amount of high priority buttons on a page to
|
|
5
|
+
'Indicates the importance of the call-to-action. Limit the amount of high priority buttons on a page to prioritize meaningful user flows. Low priority styles are applied by default.',
|
|
10
6
|
values: ['high'],
|
|
11
7
|
type: 'variant'
|
|
12
8
|
},
|
|
@@ -32,126 +28,123 @@ export default {
|
|
|
32
28
|
values: ['full'],
|
|
33
29
|
type: 'variant'
|
|
34
30
|
},
|
|
35
|
-
hover: appearances.Button.hover,
|
|
36
|
-
focus: appearances.Button.focus,
|
|
37
|
-
pressed: appearances.Button.pressed,
|
|
38
|
-
inactive: appearances.Button.inactive
|
|
31
|
+
hover: '{appearances.Button.hover}',
|
|
32
|
+
focus: '{appearances.Button.focus}',
|
|
33
|
+
pressed: '{appearances.Button.pressed}',
|
|
34
|
+
inactive: '{appearances.Button.inactive}'
|
|
39
35
|
},
|
|
40
36
|
tokens: {
|
|
41
|
-
borderColor: palette.color.greenAccessible,
|
|
42
|
-
borderWidth: palette.border.border1,
|
|
43
|
-
borderRadius: palette.radius.pill32,
|
|
44
|
-
shadow: system.shadow.none,
|
|
37
|
+
borderColor: '{palette.color.greenAccessible}',
|
|
38
|
+
borderWidth: '{palette.border.border1}',
|
|
39
|
+
borderRadius: '{palette.radius.pill32}',
|
|
40
|
+
shadow: '{system.shadow.none}',
|
|
45
41
|
|
|
46
|
-
fontSize: palette.fontSize.size16,
|
|
47
|
-
color: palette.color.greenAccessible,
|
|
48
|
-
lineHeight: palette.lineHeight.ratio3to2,
|
|
49
|
-
textAlign: system.flexJustifyContent.center,
|
|
50
|
-
alignSelf: system.flexAlign.flexStart,
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
fontWeight: '700',
|
|
54
|
-
// font: palette.font.HelveticaNow['700'],
|
|
42
|
+
fontSize: '{palette.fontSize.size16}',
|
|
43
|
+
color: '{palette.color.greenAccessible}',
|
|
44
|
+
lineHeight: '{palette.lineHeight.ratio3to2}',
|
|
45
|
+
textAlign: '{system.flexJustifyContent.center}',
|
|
46
|
+
alignSelf: '{system.flexAlign.flexStart}',
|
|
47
|
+
fontName: '{palette.fontName.HelveticaNow}',
|
|
48
|
+
fontWeight: '{palette.fontWeight.weight700}',
|
|
55
49
|
|
|
56
|
-
backgroundColor: palette.color.white,
|
|
57
|
-
opacity: system.opacity.opaque,
|
|
58
|
-
paddingLeft: palette.size.size32,
|
|
59
|
-
paddingRight: palette.size.size32,
|
|
60
|
-
paddingTop: palette.size.size12,
|
|
61
|
-
paddingBottom: palette.size.size12,
|
|
62
|
-
width: system.size.none,
|
|
63
|
-
minWidth: palette.size.size144,
|
|
50
|
+
backgroundColor: '{palette.color.white}',
|
|
51
|
+
opacity: '{system.opacity.opaque}',
|
|
52
|
+
paddingLeft: '{palette.size.size32}',
|
|
53
|
+
paddingRight: '{palette.size.size32}',
|
|
54
|
+
paddingTop: '{palette.size.size12}',
|
|
55
|
+
paddingBottom: '{palette.size.size12}',
|
|
56
|
+
width: '{system.size.none}',
|
|
57
|
+
minWidth: '{palette.size.size144}',
|
|
64
58
|
|
|
65
|
-
outerBorderColor: palette.color.transparent,
|
|
66
|
-
outerBorderWidth: palette.border.border2,
|
|
67
|
-
outerBorderGap: palette.border.border2,
|
|
68
|
-
|
|
69
|
-
outerBackgroundColor: palette.color.transparent
|
|
59
|
+
outerBorderColor: '{palette.color.transparent}',
|
|
60
|
+
outerBorderWidth: '{palette.border.border2}',
|
|
61
|
+
outerBorderGap: '{palette.border.border2}',
|
|
62
|
+
outerBackgroundColor: '{palette.color.transparent}'
|
|
70
63
|
},
|
|
71
64
|
rules: [
|
|
72
|
-
{ if: { hover: true }, tokens: { borderWidth: palette.border.border3 } },
|
|
65
|
+
{ if: { hover: true }, tokens: { borderWidth: '{palette.border.border3}' } },
|
|
73
66
|
|
|
74
67
|
{
|
|
75
68
|
if: { priority: 'high' },
|
|
76
69
|
tokens: {
|
|
77
|
-
backgroundColor: palette.color.greenAccessible,
|
|
78
|
-
color: palette.color.white,
|
|
79
|
-
borderWidth: palette.border.none
|
|
70
|
+
backgroundColor: '{palette.color.greenAccessible}',
|
|
71
|
+
color: '{palette.color.white}',
|
|
72
|
+
borderWidth: '{palette.border.none}'
|
|
80
73
|
}
|
|
81
74
|
},
|
|
82
75
|
{
|
|
83
76
|
if: { priority: 'high', hover: true },
|
|
84
|
-
tokens: { backgroundColor: palette.color.greenSanFelix }
|
|
77
|
+
tokens: { backgroundColor: '{palette.color.greenSanFelix}' }
|
|
85
78
|
},
|
|
86
79
|
|
|
87
80
|
// pressed and focus apply the same tokens to both high and low priority
|
|
88
81
|
{
|
|
89
82
|
if: { pressed: true },
|
|
90
83
|
tokens: {
|
|
91
|
-
borderWidth: system.size.zero,
|
|
92
|
-
backgroundColor: palette.color.greenDarkFern,
|
|
93
|
-
color: palette.color.white
|
|
84
|
+
borderWidth: '{system.size.zero}',
|
|
85
|
+
backgroundColor: '{palette.color.greenDarkFern}',
|
|
86
|
+
color: '{palette.color.white}'
|
|
94
87
|
}
|
|
95
88
|
},
|
|
96
|
-
{ if: { focus: true }, tokens: { outerBorderColor: palette.color.greenAccessible } },
|
|
89
|
+
{ if: { focus: true }, tokens: { outerBorderColor: '{palette.color.greenAccessible}' } },
|
|
97
90
|
{
|
|
98
91
|
if: { focus: true, pressed: true },
|
|
99
|
-
tokens: { outerBorderColor: palette.color.greenDarkFern }
|
|
92
|
+
tokens: { outerBorderColor: '{palette.color.greenDarkFern}' }
|
|
100
93
|
},
|
|
101
94
|
|
|
102
95
|
{
|
|
103
96
|
if: { inverse: true },
|
|
104
97
|
tokens: {
|
|
105
|
-
backgroundColor: system.color.none,
|
|
106
|
-
borderColor: palette.color.white,
|
|
107
|
-
color: palette.color.white
|
|
98
|
+
backgroundColor: '{system.color.none}',
|
|
99
|
+
borderColor: '{palette.color.white}',
|
|
100
|
+
color: '{palette.color.white}'
|
|
108
101
|
}
|
|
109
102
|
},
|
|
110
103
|
{
|
|
111
104
|
if: { inverse: true, priority: 'high' },
|
|
112
|
-
tokens: { backgroundColor: palette.color.white, color: palette.color.greyCharcoal }
|
|
105
|
+
tokens: { backgroundColor: '{palette.color.white}', color: '{palette.color.greyCharcoal}' }
|
|
113
106
|
},
|
|
114
107
|
{
|
|
115
108
|
if: { inverse: true, priority: 'high', hover: true },
|
|
116
|
-
tokens: { backgroundColor: palette.color.light80 }
|
|
109
|
+
tokens: { backgroundColor: '{palette.color.light80}' }
|
|
117
110
|
},
|
|
118
111
|
{
|
|
119
112
|
if: { inverse: true, pressed: true },
|
|
120
113
|
tokens: {
|
|
121
|
-
color: palette.color.greyCharcoal,
|
|
122
|
-
backgroundColor: palette.color.light60
|
|
114
|
+
color: '{palette.color.greyCharcoal}',
|
|
115
|
+
backgroundColor: '{palette.color.light60}'
|
|
123
116
|
}
|
|
124
117
|
},
|
|
125
|
-
{ if: { inverse: true, focus: true }, tokens: { outerBorderColor: palette.color.white } },
|
|
118
|
+
{ if: { inverse: true, focus: true }, tokens: { outerBorderColor: '{palette.color.white}' } },
|
|
126
119
|
|
|
127
120
|
{
|
|
128
121
|
if: { danger: true, priority: null },
|
|
129
|
-
tokens: { color: palette.color.red, borderColor: palette.color.red }
|
|
122
|
+
tokens: { color: '{palette.color.red}', borderColor: '{palette.color.red}' }
|
|
130
123
|
},
|
|
131
124
|
{
|
|
132
125
|
if: { danger: true, priority: null, inverse: true },
|
|
133
|
-
tokens: { backgroundColor: palette.color.white }
|
|
126
|
+
tokens: { backgroundColor: '{palette.color.white}' }
|
|
134
127
|
},
|
|
135
128
|
{
|
|
136
129
|
if: { danger: true, priority: null, focus: true },
|
|
137
|
-
tokens: { outerBorderColor: palette.color.red }
|
|
130
|
+
tokens: { outerBorderColor: '{palette.color.red}' }
|
|
138
131
|
},
|
|
139
132
|
{
|
|
140
133
|
if: { danger: true, priority: null, pressed: true },
|
|
141
|
-
tokens: { backgroundColor: palette.color.redDark, color: palette.color.white }
|
|
134
|
+
tokens: { backgroundColor: '{palette.color.redDark}', color: '{palette.color.white}' }
|
|
142
135
|
},
|
|
143
136
|
{
|
|
144
137
|
if: { danger: true, priority: null, pressed: true, focus: true },
|
|
145
|
-
tokens: { outerBorderColor: palette.color.redDark }
|
|
138
|
+
tokens: { outerBorderColor: '{palette.color.redDark}' }
|
|
146
139
|
},
|
|
147
140
|
|
|
148
|
-
{ if: { width: 'full' }, tokens: { width: system.size.full } },
|
|
141
|
+
{ if: { width: 'full' }, tokens: { width: '{system.size.full}' } },
|
|
149
142
|
{
|
|
150
143
|
if: { size: 'small' },
|
|
151
144
|
tokens: {
|
|
152
|
-
paddingTop: palette.size.size4,
|
|
153
|
-
paddingBottom: palette.size.size4,
|
|
154
|
-
minWidth: system.size.zero
|
|
145
|
+
paddingTop: '{palette.size.size4}',
|
|
146
|
+
paddingBottom: '{palette.size.size4}',
|
|
147
|
+
minWidth: '{system.size.zero}'
|
|
155
148
|
}
|
|
156
149
|
},
|
|
157
150
|
{
|
|
@@ -161,14 +154,14 @@ export default {
|
|
|
161
154
|
inactive: true
|
|
162
155
|
},
|
|
163
156
|
tokens: {
|
|
164
|
-
backgroundColor: palette.color.greyCloud,
|
|
165
|
-
color: palette.color.white,
|
|
166
|
-
borderWidth: system.size.zero
|
|
157
|
+
backgroundColor: '{palette.color.greyCloud}',
|
|
158
|
+
color: '{palette.color.white}',
|
|
159
|
+
borderWidth: '{system.size.zero}'
|
|
167
160
|
}
|
|
168
161
|
},
|
|
169
162
|
{
|
|
170
163
|
if: { inactive: true, inverse: true },
|
|
171
|
-
tokens: { backgroundColor: palette.color.light60, color: palette.color.greyCharcoal }
|
|
164
|
+
tokens: { backgroundColor: '{palette.color.light60}', color: '{palette.color.greyCharcoal}' }
|
|
172
165
|
}
|
|
173
166
|
]
|
|
174
167
|
}
|
|
@@ -1,16 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
import { appearances } from '@telus-uds/system-themes/schema'
|
|
3
|
-
|
|
4
|
-
export default {
|
|
1
|
+
module.exports = {
|
|
5
2
|
appearances: {
|
|
6
|
-
viewport: appearances.system.viewport
|
|
3
|
+
viewport: '{appearances.system.viewport}'
|
|
7
4
|
},
|
|
8
5
|
tokens: {
|
|
9
|
-
space: system.integer
|
|
10
|
-
direction: system.direction.row,
|
|
11
|
-
alignItems: system.flexAlign.center,
|
|
12
|
-
justifyContent: system.flexJustifyContent.flexStart,
|
|
13
|
-
flexGrow: system.integer
|
|
6
|
+
space: '{system.integer.1}',
|
|
7
|
+
direction: '{system.direction.row}',
|
|
8
|
+
alignItems: '{system.flexAlign.center}',
|
|
9
|
+
justifyContent: '{system.flexJustifyContent.flexStart}',
|
|
10
|
+
flexGrow: '{system.integer.0}'
|
|
14
11
|
},
|
|
15
|
-
rules: [{ if: { viewport: ['lg', 'xl'] }, tokens: { space: system.integer
|
|
12
|
+
rules: [{ if: { viewport: ['lg', 'xl'] }, tokens: { space: '{system.integer.3}' } }]
|
|
16
13
|
}
|
|
@@ -1,87 +1,97 @@
|
|
|
1
|
-
|
|
2
|
-
import system from '@telus-uds/system-themes/src/tokens/rn'
|
|
3
|
-
import { appearances } from '@telus-uds/system-themes/schema'
|
|
4
|
-
|
|
5
|
-
export default {
|
|
1
|
+
module.exports = {
|
|
6
2
|
appearances: {
|
|
7
|
-
hover: appearances.ButtonGroupItem.hover,
|
|
8
|
-
focus: appearances.ButtonGroupItem.focus,
|
|
9
|
-
pressed: appearances.ButtonGroupItem.pressed,
|
|
10
|
-
selected: appearances.ButtonGroupItem.selected,
|
|
11
|
-
inactive: appearances.ButtonGroupItem.inactive
|
|
3
|
+
hover: '{appearances.ButtonGroupItem.hover}',
|
|
4
|
+
focus: '{appearances.ButtonGroupItem.focus}',
|
|
5
|
+
pressed: '{appearances.ButtonGroupItem.pressed}',
|
|
6
|
+
selected: '{appearances.ButtonGroupItem.selected}',
|
|
7
|
+
inactive: '{appearances.ButtonGroupItem.inactive}'
|
|
12
8
|
},
|
|
13
9
|
tokens: {
|
|
14
|
-
borderColor: palette.color.greyCloud,
|
|
15
|
-
borderWidth: palette.border.border1,
|
|
16
|
-
borderRadius: palette.radius.pill32,
|
|
17
|
-
shadow: system.shadow.none,
|
|
10
|
+
borderColor: '{palette.color.greyCloud}',
|
|
11
|
+
borderWidth: '{palette.border.border1}',
|
|
12
|
+
borderRadius: '{palette.radius.pill32}',
|
|
13
|
+
shadow: '{system.shadow.none}',
|
|
18
14
|
|
|
19
|
-
fontSize: palette.fontSize.size14,
|
|
20
|
-
color: palette.color.greyShuttle,
|
|
21
|
-
lineHeight: palette.lineHeight.ratio3to2,
|
|
22
|
-
textAlign: system.flexJustifyContent.center,
|
|
23
|
-
alignSelf: system.flexAlign.flexStart,
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
fontWeight: '700',
|
|
27
|
-
// font: palette.font.HelveticaNow['700'],
|
|
15
|
+
fontSize: '{palette.fontSize.size14}',
|
|
16
|
+
color: '{palette.color.greyShuttle}',
|
|
17
|
+
lineHeight: '{palette.lineHeight.ratio3to2}',
|
|
18
|
+
textAlign: '{system.flexJustifyContent.center}',
|
|
19
|
+
alignSelf: '{system.flexAlign.flexStart}',
|
|
20
|
+
fontName: '{palette.fontName.HelveticaNow}',
|
|
21
|
+
fontWeight: '{palette.fontWeight.weight700}',
|
|
28
22
|
|
|
29
|
-
backgroundColor: palette.color.white,
|
|
30
|
-
opacity: system.opacity.opaque,
|
|
31
|
-
paddingLeft: palette.size.size16,
|
|
32
|
-
paddingRight: palette.size.size16,
|
|
33
|
-
paddingTop: palette.size.size8,
|
|
34
|
-
paddingBottom: palette.size.size8,
|
|
35
|
-
width: system.size.none,
|
|
36
|
-
minWidth: system.size.zero,
|
|
23
|
+
backgroundColor: '{palette.color.white}',
|
|
24
|
+
opacity: '{system.opacity.opaque}',
|
|
25
|
+
paddingLeft: '{palette.size.size16}',
|
|
26
|
+
paddingRight: '{palette.size.size16}',
|
|
27
|
+
paddingTop: '{palette.size.size8}',
|
|
28
|
+
paddingBottom: '{palette.size.size8}',
|
|
29
|
+
width: '{system.size.none}',
|
|
30
|
+
minWidth: '{system.size.zero}',
|
|
37
31
|
|
|
38
|
-
outerBorderColor: palette.color.transparent,
|
|
39
|
-
outerBorderWidth: palette.border.border2,
|
|
40
|
-
outerBorderGap: palette.border.border2,
|
|
41
|
-
|
|
42
|
-
outerBackgroundColor: palette.color.transparent
|
|
32
|
+
outerBorderColor: '{palette.color.transparent}',
|
|
33
|
+
outerBorderWidth: '{palette.border.border2}',
|
|
34
|
+
outerBorderGap: '{palette.border.border2}',
|
|
35
|
+
outerBackgroundColor: '{palette.color.transparent}'
|
|
43
36
|
},
|
|
44
37
|
rules: [
|
|
45
38
|
{
|
|
46
39
|
if: { pressed: true },
|
|
47
40
|
tokens: {
|
|
48
|
-
borderWidth: palette.border.none,
|
|
49
|
-
backgroundColor: palette.color.greyShuttle,
|
|
50
|
-
|
|
41
|
+
borderWidth: '{palette.border.none}',
|
|
42
|
+
backgroundColor: '{palette.color.greyShuttle}',
|
|
43
|
+
borderColor: '{palette.color.greyShuttle}',
|
|
44
|
+
color: '{palette.color.white}'
|
|
51
45
|
}
|
|
52
46
|
},
|
|
53
47
|
{
|
|
54
48
|
if: { focus: true },
|
|
55
49
|
tokens: {
|
|
56
|
-
borderColor: palette.color.
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
50
|
+
borderColor: '{palette.color.greyShuttle}',
|
|
51
|
+
outerBorderColor: '{palette.color.greyShuttle}',
|
|
52
|
+
outerBorderGap: '{palette.size.size2}',
|
|
53
|
+
outerBorderWidth: '{palette.size.size2}'
|
|
60
54
|
}
|
|
61
55
|
},
|
|
62
|
-
{ if: { hover: true }, tokens: { borderWidth: palette.border.border3 } },
|
|
56
|
+
{ if: { hover: true }, tokens: { borderWidth: '{palette.border.border3}' } },
|
|
63
57
|
{
|
|
64
58
|
if: { selected: true },
|
|
65
59
|
tokens: {
|
|
66
|
-
borderWidth: palette.border.none,
|
|
67
|
-
backgroundColor: palette.color.purpleTelus,
|
|
68
|
-
color: palette.color.white
|
|
60
|
+
borderWidth: '{palette.border.none}',
|
|
61
|
+
backgroundColor: '{palette.color.purpleTelus}',
|
|
62
|
+
color: '{palette.color.white}'
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
if: { selected: true, hover: true },
|
|
67
|
+
tokens: {
|
|
68
|
+
backgroundColor: '{palette.color.purpleDeluge}'
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
if: { selected: true, pressed: true },
|
|
73
|
+
tokens: {
|
|
74
|
+
backgroundColor: '{palette.color.purpleDark}'
|
|
75
|
+
}
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
if: { selected: true, focus: true },
|
|
79
|
+
tokens: {
|
|
80
|
+
outerBorderColor: '{palette.color.purpleTelus}'
|
|
69
81
|
}
|
|
70
82
|
},
|
|
71
83
|
{
|
|
72
|
-
if: { focus: true, pressed: true },
|
|
84
|
+
if: { selected: true, focus: true, pressed: true },
|
|
73
85
|
tokens: {
|
|
74
|
-
|
|
75
|
-
backgroundColor: palette.color.purpleTelus,
|
|
76
|
-
color: palette.color.white
|
|
86
|
+
outerBorderColor: '{palette.color.purpleDark}'
|
|
77
87
|
}
|
|
78
88
|
},
|
|
79
89
|
{
|
|
80
90
|
if: { inactive: true },
|
|
81
91
|
tokens: {
|
|
82
|
-
backgroundColor: palette.color.greyCloud,
|
|
83
|
-
color: palette.color.white,
|
|
84
|
-
borderWidth: system.border.zero
|
|
92
|
+
backgroundColor: '{palette.color.greyCloud}',
|
|
93
|
+
color: '{palette.color.white}',
|
|
94
|
+
borderWidth: '{system.border.zero}'
|
|
85
95
|
}
|
|
86
96
|
}
|
|
87
97
|
]
|
package/src/components/Card.js
CHANGED
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
import system from '@telus-uds/system-themes/src/tokens/rn'
|
|
3
|
-
import { appearances } from '@telus-uds/system-themes/schema'
|
|
4
|
-
|
|
5
|
-
export default {
|
|
1
|
+
module.exports = {
|
|
6
2
|
appearances: {
|
|
7
3
|
background: {
|
|
8
4
|
values: ['alternative'],
|
|
@@ -12,87 +8,89 @@ export default {
|
|
|
12
8
|
values: ['narrow', 'intermediate', 'compact', 'custom'],
|
|
13
9
|
type: 'variant'
|
|
14
10
|
},
|
|
15
|
-
viewport: appearances.system.viewport
|
|
11
|
+
viewport: '{appearances.system.viewport}'
|
|
16
12
|
},
|
|
17
13
|
tokens: {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
14
|
+
flex: '{system.integer.1}',
|
|
15
|
+
backgroundColor: '{palette.color.white}',
|
|
16
|
+
borderColor: '{palette.color.greyMystic}',
|
|
17
|
+
borderRadius: '{palette.radius.radius6}',
|
|
18
|
+
borderWidth: '{palette.border.border1}',
|
|
19
|
+
paddingBottom: '{palette.size.size32}',
|
|
20
|
+
paddingLeft: '{palette.size.size24}',
|
|
21
|
+
paddingRight: '{palette.size.size24}',
|
|
22
|
+
paddingTop: '{palette.size.size32}',
|
|
23
|
+
minWidth: '{system.size.none}',
|
|
24
|
+
shadow: '{system.shadow.none}'
|
|
27
25
|
},
|
|
28
26
|
rules: [
|
|
29
27
|
{
|
|
30
28
|
if: { background: 'alternative' },
|
|
31
29
|
tokens: {
|
|
32
|
-
backgroundColor: palette.color.greyAthens
|
|
30
|
+
backgroundColor: '{palette.color.greyAthens}'
|
|
33
31
|
}
|
|
34
32
|
},
|
|
35
33
|
{
|
|
36
34
|
if: { viewport: ['md', 'lg', 'xl'] },
|
|
37
35
|
tokens: {
|
|
38
|
-
paddingBottom: palette.size.size48,
|
|
39
|
-
paddingLeft: palette.size.size32,
|
|
40
|
-
paddingRight: palette.size.size32,
|
|
41
|
-
paddingTop: palette.size.size48
|
|
36
|
+
paddingBottom: '{palette.size.size48}',
|
|
37
|
+
paddingLeft: '{palette.size.size32}',
|
|
38
|
+
paddingRight: '{palette.size.size32}',
|
|
39
|
+
paddingTop: '{palette.size.size48}'
|
|
42
40
|
}
|
|
43
41
|
},
|
|
44
42
|
{
|
|
45
43
|
if: { padding: 'narrow' },
|
|
46
44
|
tokens: {
|
|
47
|
-
paddingBottom: palette.size.size24,
|
|
48
|
-
paddingLeft: palette.size.size16,
|
|
49
|
-
paddingRight: palette.size.size16,
|
|
50
|
-
paddingTop: palette.size.size24
|
|
45
|
+
paddingBottom: '{palette.size.size24}',
|
|
46
|
+
paddingLeft: '{palette.size.size16}',
|
|
47
|
+
paddingRight: '{palette.size.size16}',
|
|
48
|
+
paddingTop: '{palette.size.size24}'
|
|
51
49
|
}
|
|
52
50
|
},
|
|
53
51
|
{
|
|
54
52
|
if: { padding: 'narrow', viewport: ['md', 'lg', 'xl'] },
|
|
55
53
|
tokens: {
|
|
56
|
-
paddingBottom: palette.size.size32,
|
|
57
|
-
paddingLeft: palette.size.size16,
|
|
58
|
-
paddingRight: palette.size.size16,
|
|
59
|
-
paddingTop: palette.size.size32
|
|
54
|
+
paddingBottom: '{palette.size.size32}',
|
|
55
|
+
paddingLeft: '{palette.size.size16}',
|
|
56
|
+
paddingRight: '{palette.size.size16}',
|
|
57
|
+
paddingTop: '{palette.size.size32}'
|
|
60
58
|
}
|
|
61
59
|
},
|
|
62
60
|
{
|
|
63
61
|
if: { padding: 'intermediate' },
|
|
64
62
|
tokens: {
|
|
65
|
-
paddingBottom: palette.size.size24,
|
|
66
|
-
paddingLeft: palette.size.size24,
|
|
67
|
-
paddingRight: palette.size.size24,
|
|
68
|
-
paddingTop: palette.size.size24
|
|
63
|
+
paddingBottom: '{palette.size.size24}',
|
|
64
|
+
paddingLeft: '{palette.size.size24}',
|
|
65
|
+
paddingRight: '{palette.size.size24}',
|
|
66
|
+
paddingTop: '{palette.size.size24}'
|
|
69
67
|
}
|
|
70
68
|
},
|
|
71
69
|
{
|
|
72
70
|
if: { padding: 'intermediate', viewport: ['md', 'lg', 'xl'] },
|
|
73
71
|
tokens: {
|
|
74
|
-
paddingBottom: palette.size.size32,
|
|
75
|
-
paddingLeft: palette.size.size32,
|
|
76
|
-
paddingRight: palette.size.size32,
|
|
77
|
-
paddingTop: palette.size.size32
|
|
72
|
+
paddingBottom: '{palette.size.size32}',
|
|
73
|
+
paddingLeft: '{palette.size.size32}',
|
|
74
|
+
paddingRight: '{palette.size.size32}',
|
|
75
|
+
paddingTop: '{palette.size.size32}'
|
|
78
76
|
}
|
|
79
77
|
},
|
|
80
78
|
{
|
|
81
79
|
if: { padding: 'compact' },
|
|
82
80
|
tokens: {
|
|
83
|
-
paddingBottom: palette.size.size16,
|
|
84
|
-
paddingLeft: palette.size.size16,
|
|
85
|
-
paddingRight: palette.size.size16,
|
|
86
|
-
paddingTop: palette.size.size16
|
|
81
|
+
paddingBottom: '{palette.size.size16}',
|
|
82
|
+
paddingLeft: '{palette.size.size16}',
|
|
83
|
+
paddingRight: '{palette.size.size16}',
|
|
84
|
+
paddingTop: '{palette.size.size16}'
|
|
87
85
|
}
|
|
88
86
|
},
|
|
89
87
|
{
|
|
90
88
|
if: { padding: 'custom' },
|
|
91
89
|
tokens: {
|
|
92
|
-
paddingBottom: palette.size.size0,
|
|
93
|
-
paddingLeft: palette.size.size0,
|
|
94
|
-
paddingRight: palette.size.size0,
|
|
95
|
-
paddingTop: palette.size.size0
|
|
90
|
+
paddingBottom: '{palette.size.size0}',
|
|
91
|
+
paddingLeft: '{palette.size.size0}',
|
|
92
|
+
paddingRight: '{palette.size.size0}',
|
|
93
|
+
paddingTop: '{palette.size.size0}'
|
|
96
94
|
}
|
|
97
95
|
}
|
|
98
96
|
]
|