@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/src/components/Select.js
CHANGED
|
@@ -1,88 +1,78 @@
|
|
|
1
|
-
import palette from '@telus-uds/palette-allium'
|
|
2
|
-
import system from '@telus-uds/system-themes/src/tokens/rn'
|
|
3
|
-
import { appearances } from '@telus-uds/system-themes/schema'
|
|
4
|
-
|
|
5
|
-
import errorIcon from '@telus-uds/palette-allium/build/rn/icons/notification-error.icon.svg'
|
|
6
|
-
import successIcon from '@telus-uds/palette-allium/build/rn/icons/notification-success.icon.svg'
|
|
7
|
-
import caretDownIcon from '@telus-uds/palette-allium/build/rn/icons/caret-down.icon.svg'
|
|
8
|
-
|
|
9
1
|
const Select = {
|
|
10
2
|
appearances: {
|
|
11
|
-
validation: appearances.Select.validation,
|
|
12
|
-
hover: appearances.Select.hover,
|
|
13
|
-
focus: appearances.Select.focus,
|
|
14
|
-
inactive: appearances.Select.inactive
|
|
3
|
+
validation: '{appearances.Select.validation}',
|
|
4
|
+
hover: '{appearances.Select.hover}',
|
|
5
|
+
focus: '{appearances.Select.focus}',
|
|
6
|
+
inactive: '{appearances.Select.inactive}'
|
|
15
7
|
},
|
|
16
8
|
tokens: {
|
|
17
|
-
backgroundColor: palette.color.white,
|
|
18
|
-
color: palette.color.greyCharcoal,
|
|
19
|
-
borderWidth: palette.border.border1,
|
|
20
|
-
borderColor: palette.color.greyShuttle,
|
|
21
|
-
borderRadius: palette.radius.radius4,
|
|
22
|
-
paddingTop: palette.size.size12,
|
|
23
|
-
paddingBottom: palette.size.size12,
|
|
24
|
-
paddingLeft: palette.size.size16,
|
|
25
|
-
paddingRight: palette.size.size16,
|
|
26
|
-
height: palette.size.size48,
|
|
9
|
+
backgroundColor: '{palette.color.white}',
|
|
10
|
+
color: '{palette.color.greyCharcoal}',
|
|
11
|
+
borderWidth: '{palette.border.border1}',
|
|
12
|
+
borderColor: '{palette.color.greyShuttle}',
|
|
13
|
+
borderRadius: '{palette.radius.radius4}',
|
|
14
|
+
paddingTop: '{palette.size.size12}',
|
|
15
|
+
paddingBottom: '{palette.size.size12}',
|
|
16
|
+
paddingLeft: '{palette.size.size16}',
|
|
17
|
+
paddingRight: '{palette.size.size16}',
|
|
18
|
+
height: '{palette.size.size48}',
|
|
27
19
|
|
|
28
|
-
outerBackgroundColor: palette.color.transparent,
|
|
29
|
-
outerBorderWidth: palette.border.border2,
|
|
30
|
-
outerBorderColor: palette.color.transparent,
|
|
31
|
-
outerBorderRadius: palette.radius.radius4,
|
|
20
|
+
outerBackgroundColor: '{palette.color.transparent}',
|
|
21
|
+
outerBorderWidth: '{palette.border.border2}',
|
|
22
|
+
outerBorderColor: '{palette.color.transparent}',
|
|
32
23
|
|
|
33
|
-
fontSize: palette.fontSize.size16,
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
fontWeight: '400',
|
|
24
|
+
fontSize: '{palette.fontSize.size16}',
|
|
25
|
+
fontName: '{palette.fontName.HelveticaNow}',
|
|
26
|
+
fontWeight: '{palette.fontWeight.weight400}',
|
|
37
27
|
|
|
38
|
-
icon:
|
|
39
|
-
iconSize: palette.fontSize.size24,
|
|
40
|
-
iconColor: palette.color.greenAccessible,
|
|
28
|
+
icon: '{palette.icon.CaretDown}',
|
|
29
|
+
iconSize: '{palette.fontSize.size24}',
|
|
30
|
+
iconColor: '{palette.color.greenAccessible}',
|
|
41
31
|
|
|
42
|
-
validationIcon: system.icon.none,
|
|
43
|
-
validationIconSize: palette.fontSize.size24,
|
|
44
|
-
validationIconColor: palette.color.transparent
|
|
32
|
+
validationIcon: '{system.icon.none}',
|
|
33
|
+
validationIconSize: '{palette.fontSize.size24}',
|
|
34
|
+
validationIconColor: '{palette.color.transparent}'
|
|
45
35
|
},
|
|
46
36
|
rules: [
|
|
47
37
|
{
|
|
48
38
|
if: { hover: true, inactive: null },
|
|
49
39
|
tokens: {
|
|
50
|
-
outerBorderColor: palette.color.greyMystic,
|
|
51
|
-
outerBackgroundColor: palette.color.greyMystic
|
|
40
|
+
outerBorderColor: '{palette.color.greyMystic}',
|
|
41
|
+
outerBackgroundColor: '{palette.color.greyMystic}'
|
|
52
42
|
}
|
|
53
43
|
},
|
|
54
44
|
{
|
|
55
45
|
if: { validation: 'success' },
|
|
56
46
|
tokens: {
|
|
57
|
-
borderColor: palette.color.greenAccessible,
|
|
58
|
-
validationIcon:
|
|
59
|
-
validationIconColor: palette.color.greenAccessible
|
|
47
|
+
borderColor: '{palette.color.greenAccessible}',
|
|
48
|
+
validationIcon: '{palette.icon.NotificationSuccess}',
|
|
49
|
+
validationIconColor: '{palette.color.greenAccessible}'
|
|
60
50
|
}
|
|
61
51
|
},
|
|
62
52
|
{
|
|
63
53
|
if: { validation: 'error' },
|
|
64
54
|
tokens: {
|
|
65
|
-
borderColor: palette.color.red,
|
|
66
|
-
validationIcon:
|
|
67
|
-
validationIconColor: palette.color.red
|
|
55
|
+
borderColor: '{palette.color.red}',
|
|
56
|
+
validationIcon: '{palette.icon.NotificationError}',
|
|
57
|
+
validationIconColor: '{palette.color.red}'
|
|
68
58
|
}
|
|
69
59
|
},
|
|
70
60
|
{
|
|
71
61
|
if: { focus: true },
|
|
72
62
|
tokens: {
|
|
73
|
-
borderColor: palette.color.purpleDeluge,
|
|
74
|
-
borderWidth: palette.border.border3,
|
|
75
|
-
validationIcon: system.icon.none
|
|
63
|
+
borderColor: '{palette.color.purpleDeluge}',
|
|
64
|
+
borderWidth: '{palette.border.border3}',
|
|
65
|
+
validationIcon: '{system.icon.none}'
|
|
76
66
|
}
|
|
77
67
|
},
|
|
78
68
|
{
|
|
79
69
|
if: { inactive: true },
|
|
80
70
|
tokens: {
|
|
81
|
-
backgroundColor: palette.color.greyAthens,
|
|
82
|
-
borderColor: palette.color.greyAthens
|
|
71
|
+
backgroundColor: '{palette.color.greyAthens}',
|
|
72
|
+
borderColor: '{palette.color.greyAthens}'
|
|
83
73
|
}
|
|
84
74
|
}
|
|
85
75
|
]
|
|
86
76
|
}
|
|
87
77
|
|
|
88
|
-
|
|
78
|
+
module.exports = Select
|
|
@@ -1,12 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
import system from '@telus-uds/system-themes/src/tokens/rn'
|
|
3
|
-
|
|
4
|
-
export default {
|
|
1
|
+
module.exports = {
|
|
5
2
|
appearances: {},
|
|
6
3
|
tokens: {
|
|
7
|
-
borderColor: palette.color.greyCloud,
|
|
8
|
-
borderWidth: palette.border.border1,
|
|
9
|
-
borderStyle: system.borderStyle.solid
|
|
4
|
+
borderColor: '{palette.color.greyCloud}',
|
|
5
|
+
borderWidth: '{palette.border.border1}',
|
|
6
|
+
borderStyle: '{system.borderStyle.solid}'
|
|
10
7
|
},
|
|
11
8
|
rules: []
|
|
12
9
|
}
|
|
@@ -1,32 +1,29 @@
|
|
|
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
|
-
active: appearances.SideNavItem.active,
|
|
8
|
-
type: appearances.SideNavItem.type,
|
|
9
|
-
expanded: appearances.SideNavItem.expanded,
|
|
10
|
-
hover: appearances.SideNavItem.hover
|
|
3
|
+
active: '{appearances.SideNavItem.active}',
|
|
4
|
+
type: '{appearances.SideNavItem.type}',
|
|
5
|
+
expanded: '{appearances.SideNavItem.expanded}',
|
|
6
|
+
hover: '{appearances.SideNavItem.hover}'
|
|
11
7
|
},
|
|
12
8
|
tokens: {
|
|
13
|
-
borderColor: palette.color.greyCloud,
|
|
14
|
-
borderWidth: palette.border.border1,
|
|
15
|
-
borderStyle: system.borderStyle.solid,
|
|
16
|
-
paddingLeft: palette.size.size16,
|
|
17
|
-
paddingRight: palette.size.size16,
|
|
18
|
-
paddingTop: palette.size.size16,
|
|
19
|
-
paddingBottom: palette.size.size16,
|
|
20
|
-
justifyContent: system.flexJustifyContent.spaceBetween,
|
|
21
|
-
color: palette.color.greyCharcoal,
|
|
22
|
-
accentOffset: system.size.zero,
|
|
23
|
-
accentPadding: system.size.zero,
|
|
24
|
-
accentWidth: palette.size.size4,
|
|
25
|
-
accentBackgroundColor: palette.color.transparent,
|
|
26
|
-
fontSize: palette.fontSize.size16,
|
|
27
|
-
fontWeight: '
|
|
28
|
-
|
|
29
|
-
|
|
9
|
+
borderColor: '{palette.color.greyCloud}',
|
|
10
|
+
borderWidth: '{palette.border.border1}',
|
|
11
|
+
borderStyle: '{system.borderStyle.solid}',
|
|
12
|
+
paddingLeft: '{palette.size.size16}',
|
|
13
|
+
paddingRight: '{palette.size.size16}',
|
|
14
|
+
paddingTop: '{palette.size.size16}',
|
|
15
|
+
paddingBottom: '{palette.size.size16}',
|
|
16
|
+
justifyContent: '{system.flexJustifyContent.spaceBetween}',
|
|
17
|
+
color: '{palette.color.greyCharcoal}',
|
|
18
|
+
accentOffset: '{system.size.zero}',
|
|
19
|
+
accentPadding: '{system.size.zero}',
|
|
20
|
+
accentWidth: '{palette.size.size4}',
|
|
21
|
+
accentBackgroundColor: '{palette.color.transparent}',
|
|
22
|
+
fontSize: '{palette.fontSize.size16}',
|
|
23
|
+
fontWeight: '{palette.fontWeight.weight400}',
|
|
24
|
+
fontName: '{palette.fontName.HelveticaNow}',
|
|
25
|
+
lineHeight: '{palette.lineHeight.ratio3to2}',
|
|
26
|
+
backgroundColor: '{palette.color.transparent}'
|
|
30
27
|
},
|
|
31
28
|
rules: [
|
|
32
29
|
{
|
|
@@ -34,13 +31,12 @@ export default {
|
|
|
34
31
|
active: true
|
|
35
32
|
},
|
|
36
33
|
tokens: {
|
|
37
|
-
paddingLeft: palette.size.size12,
|
|
38
|
-
accentBackgroundColor: palette.color.purpleTelus,
|
|
39
|
-
color: palette.color.purpleTelus,
|
|
34
|
+
paddingLeft: '{palette.size.size12}',
|
|
35
|
+
accentBackgroundColor: '{palette.color.purpleTelus}',
|
|
36
|
+
color: '{palette.color.purpleTelus}',
|
|
40
37
|
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
// font: palette.font.HelveticaNow[700]
|
|
38
|
+
fontWeight: '{palette.fontWeight.weight700}',
|
|
39
|
+
fontName: '{palette.fontName.HelveticaNow}'
|
|
44
40
|
}
|
|
45
41
|
},
|
|
46
42
|
{
|
|
@@ -48,12 +44,12 @@ export default {
|
|
|
48
44
|
type: 'child'
|
|
49
45
|
},
|
|
50
46
|
tokens: {
|
|
51
|
-
paddingLeft: palette.size.size36,
|
|
52
|
-
borderWidth: palette.border.none,
|
|
53
|
-
accentBackgroundColor: palette.color.greyAthens,
|
|
54
|
-
accentOffset: palette.size.size16,
|
|
55
|
-
fontSize: palette.fontSize.size14,
|
|
56
|
-
lineHeight: palette.lineHeight.ratio7to5
|
|
47
|
+
paddingLeft: '{palette.size.size36}',
|
|
48
|
+
borderWidth: '{palette.border.none}',
|
|
49
|
+
accentBackgroundColor: '{palette.color.greyAthens}',
|
|
50
|
+
accentOffset: '{palette.size.size16}',
|
|
51
|
+
fontSize: '{palette.fontSize.size14}',
|
|
52
|
+
lineHeight: '{palette.lineHeight.ratio7to5}'
|
|
57
53
|
}
|
|
58
54
|
},
|
|
59
55
|
{
|
|
@@ -62,7 +58,7 @@ export default {
|
|
|
62
58
|
active: true
|
|
63
59
|
},
|
|
64
60
|
tokens: {
|
|
65
|
-
paddingLeft: palette.size.size12
|
|
61
|
+
paddingLeft: '{palette.size.size12}'
|
|
66
62
|
}
|
|
67
63
|
},
|
|
68
64
|
{
|
|
@@ -72,9 +68,9 @@ export default {
|
|
|
72
68
|
expanded: true
|
|
73
69
|
},
|
|
74
70
|
tokens: {
|
|
75
|
-
paddingLeft: palette.size.size16,
|
|
76
|
-
accentBackgroundColor: palette.color.transparent,
|
|
77
|
-
color: palette.color.greyCharcoal
|
|
71
|
+
paddingLeft: '{palette.size.size16}',
|
|
72
|
+
accentBackgroundColor: '{palette.color.transparent}',
|
|
73
|
+
color: '{palette.color.greyCharcoal}'
|
|
78
74
|
}
|
|
79
75
|
},
|
|
80
76
|
{
|
|
@@ -82,8 +78,8 @@ export default {
|
|
|
82
78
|
hover: true
|
|
83
79
|
},
|
|
84
80
|
tokens: {
|
|
85
|
-
backgroundColor: palette.color.greyAthens,
|
|
86
|
-
color: palette.color.purpleTelus
|
|
81
|
+
backgroundColor: '{palette.color.greyAthens}',
|
|
82
|
+
color: '{palette.color.purpleTelus}'
|
|
87
83
|
}
|
|
88
84
|
},
|
|
89
85
|
{
|
|
@@ -92,10 +88,10 @@ export default {
|
|
|
92
88
|
active: true
|
|
93
89
|
},
|
|
94
90
|
tokens: {
|
|
95
|
-
backgroundColor: palette.color.greyAthens,
|
|
96
|
-
color: palette.color.purpleTelus,
|
|
97
|
-
accentPadding: palette.size.size16,
|
|
98
|
-
accentBackgroundColor: palette.color.purpleTelus
|
|
91
|
+
backgroundColor: '{palette.color.greyAthens}',
|
|
92
|
+
color: '{palette.color.purpleTelus}',
|
|
93
|
+
accentPadding: '{palette.size.size16}',
|
|
94
|
+
accentBackgroundColor: '{palette.color.purpleTelus}'
|
|
99
95
|
}
|
|
100
96
|
},
|
|
101
97
|
{
|
|
@@ -105,10 +101,10 @@ export default {
|
|
|
105
101
|
hover: true
|
|
106
102
|
},
|
|
107
103
|
tokens: {
|
|
108
|
-
accentBackgroundColor: palette.color.white,
|
|
109
|
-
color: palette.color.greyCharcoal,
|
|
110
|
-
accentOffset: system.size.zero,
|
|
111
|
-
accentWidth: palette.size.size16
|
|
104
|
+
accentBackgroundColor: '{palette.color.white}',
|
|
105
|
+
color: '{palette.color.greyCharcoal}',
|
|
106
|
+
accentOffset: '{system.size.zero}',
|
|
107
|
+
accentWidth: '{palette.size.size16}'
|
|
112
108
|
}
|
|
113
109
|
}
|
|
114
110
|
]
|
|
@@ -1,34 +1,27 @@
|
|
|
1
|
-
|
|
2
|
-
import system from '@telus-uds/system-themes/src/tokens/rn'
|
|
3
|
-
import { appearances } from '@telus-uds/system-themes/schema'
|
|
4
|
-
|
|
5
|
-
import CaretUp from '@telus-uds/palette-allium/build/rn/icons/caret-up.icon.svg'
|
|
6
|
-
import CaretDown from '@telus-uds/palette-allium/build/rn/icons/caret-down.icon.svg'
|
|
7
|
-
|
|
8
|
-
export default {
|
|
1
|
+
module.exports = {
|
|
9
2
|
appearances: {
|
|
10
|
-
expanded: appearances.SideNavItemGroup.expanded
|
|
3
|
+
expanded: '{appearances.SideNavItemGroup.expanded}'
|
|
11
4
|
},
|
|
12
5
|
tokens: {
|
|
13
6
|
// animate slightly faster when closing
|
|
14
|
-
expandDuration: palette.duration.duration300,
|
|
15
|
-
collapseDuration: palette.duration.duration250,
|
|
16
|
-
contentPaddingLeft: palette.size.size0,
|
|
17
|
-
contentPaddingRight: palette.size.size0,
|
|
18
|
-
contentPaddingTop: palette.size.size0,
|
|
19
|
-
contentPaddingBottom: palette.size.size0,
|
|
20
|
-
icon: CaretDown,
|
|
21
|
-
iconColor: palette.color.purpleTelus,
|
|
22
|
-
iconGap: palette.size.size8,
|
|
23
|
-
iconSize: palette.size.size24,
|
|
24
|
-
iconPosition: system.position.right,
|
|
25
|
-
verticalAlign: system.verticalAlign.middle,
|
|
26
|
-
justifyContent: system.flexJustifyContent.spaceBetween
|
|
7
|
+
expandDuration: '{palette.duration.duration300}',
|
|
8
|
+
collapseDuration: '{palette.duration.duration250}',
|
|
9
|
+
contentPaddingLeft: '{palette.size.size0}',
|
|
10
|
+
contentPaddingRight: '{palette.size.size0}',
|
|
11
|
+
contentPaddingTop: '{palette.size.size0}',
|
|
12
|
+
contentPaddingBottom: '{palette.size.size0}',
|
|
13
|
+
icon: '{palette.icon.CaretDown}',
|
|
14
|
+
iconColor: '{palette.color.purpleTelus}',
|
|
15
|
+
iconGap: '{palette.size.size8}',
|
|
16
|
+
iconSize: '{palette.size.size24}',
|
|
17
|
+
iconPosition: '{system.position.right}',
|
|
18
|
+
verticalAlign: '{system.verticalAlign.middle}',
|
|
19
|
+
justifyContent: '{system.flexJustifyContent.spaceBetween}'
|
|
27
20
|
},
|
|
28
21
|
rules: [
|
|
29
22
|
{
|
|
30
23
|
if: { expanded: true },
|
|
31
|
-
tokens: { icon: CaretUp }
|
|
24
|
+
tokens: { icon: '{palette.icon.CaretUp}' }
|
|
32
25
|
}
|
|
33
26
|
]
|
|
34
27
|
}
|
|
@@ -1,16 +1,14 @@
|
|
|
1
|
-
import palette from '@telus-uds/palette-allium'
|
|
2
|
-
|
|
3
1
|
const Skeleton = {
|
|
4
2
|
appearances: {},
|
|
5
3
|
tokens: {
|
|
6
|
-
color: palette.color.greyCloud,
|
|
7
|
-
size: palette.border.border3,
|
|
8
|
-
radius: palette.size.size120,
|
|
9
|
-
baseWidth: palette.size.size40,
|
|
10
|
-
characters: palette.size.size10,
|
|
11
|
-
spaceBetweenLines: palette.size.size2,
|
|
12
|
-
squareRadius: palette.size.size4
|
|
4
|
+
color: '{palette.color.greyCloud}',
|
|
5
|
+
size: '{palette.border.border3}',
|
|
6
|
+
radius: '{palette.size.size120}',
|
|
7
|
+
baseWidth: '{palette.size.size40}',
|
|
8
|
+
characters: '{palette.size.size10}',
|
|
9
|
+
spaceBetweenLines: '{palette.size.size2}',
|
|
10
|
+
squareRadius: '{palette.size.size4}'
|
|
13
11
|
},
|
|
14
12
|
rules: []
|
|
15
13
|
}
|
|
16
|
-
|
|
14
|
+
module.exports = Skeleton
|
|
@@ -1,12 +1,10 @@
|
|
|
1
|
-
import system from '@telus-uds/system-themes/src/tokens/rn'
|
|
2
|
-
|
|
3
1
|
// This makes the React Native defaults explicit and allows them to be overridden with tokens
|
|
4
|
-
|
|
2
|
+
module.exports = {
|
|
5
3
|
appearances: {},
|
|
6
4
|
tokens: {
|
|
7
|
-
alignItems: system.flexAlign.stretch,
|
|
8
|
-
justifyContent: system.flexJustifyContent.flexStart,
|
|
9
|
-
flexGrow: system.integer
|
|
5
|
+
alignItems: '{system.flexAlign.stretch}',
|
|
6
|
+
justifyContent: '{system.flexJustifyContent.flexStart}',
|
|
7
|
+
flexGrow: '{system.integer.0}'
|
|
10
8
|
},
|
|
11
9
|
rules: []
|
|
12
10
|
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
appearances: {
|
|
3
|
+
viewport: '{appearances.system.viewport}'
|
|
4
|
+
},
|
|
5
|
+
tokens: {
|
|
6
|
+
completedIcon: '{system.icon.none}',
|
|
7
|
+
completedIconColor: '{system.color.none}',
|
|
8
|
+
completedIconSize: '{system.size.none}',
|
|
9
|
+
connectorColor: '{palette.color.greyShuttle}',
|
|
10
|
+
connectorHeight: '{palette.border.border1}',
|
|
11
|
+
connectorMinWidth: '{palette.size.size16}',
|
|
12
|
+
connectorCompletedHeight: '{palette.border.border3}',
|
|
13
|
+
connectorCompletedColor: '{palette.color.purpleDeluge}',
|
|
14
|
+
containerPaddingBottom: '{system.size.none}',
|
|
15
|
+
containerPaddingLeft: '{system.size.none}',
|
|
16
|
+
containerPaddingRight: '{system.size.none}',
|
|
17
|
+
containerPaddingTop: '{system.size.none}',
|
|
18
|
+
knobBackgroundColor: '{palette.color.transparent}',
|
|
19
|
+
knobBorderWidth: '{palette.border.border1}',
|
|
20
|
+
knobBorderColor: '{palette.color.greyShuttle}',
|
|
21
|
+
knobCompletedBackgroundColor: '{palette.color.purpleDeluge}',
|
|
22
|
+
knobCompletedBorderColor: '{palette.color.purpleDeluge}',
|
|
23
|
+
knobCompletedPaddingLeft: '{system.size.none}',
|
|
24
|
+
knobCompletedPaddingTop: '{system.size.none}',
|
|
25
|
+
knobCurrentBackgroundColor: '{palette.color.transparent}',
|
|
26
|
+
knobCurrentBorderColor: '{palette.color.purpleDeluge}',
|
|
27
|
+
knobCurrentBorderWidth: '{palette.border.border2}',
|
|
28
|
+
knobCurrentInnerColor: '{palette.color.purpleDeluge}',
|
|
29
|
+
knobCurrentInnerSize: '{palette.size.size8}',
|
|
30
|
+
knobCurrentPaddingLeft: '{palette.size.size2}',
|
|
31
|
+
knobCurrentPaddingTop: '{palette.size.size2}',
|
|
32
|
+
knobSize: '{palette.size.size16}',
|
|
33
|
+
labelColor: '{palette.color.greyCharcoal}',
|
|
34
|
+
labelCurrentColor: '{palette.color.purpleDeluge}',
|
|
35
|
+
labelCurrentFontWeight: '{palette.fontWeight.weight700}',
|
|
36
|
+
labelCurrentFontName: '{palette.fontName.HelveticaNow}',
|
|
37
|
+
labelDirection: '{system.direction.column}',
|
|
38
|
+
labelFontSize: '{palette.fontSize.size16}',
|
|
39
|
+
labelFontWeight: '{palette.fontWeight.weight400}',
|
|
40
|
+
labelFontName: '{palette.fontName.HelveticaNow}',
|
|
41
|
+
labelGap: '{palette.size.size0}',
|
|
42
|
+
labelLineHeight: '{palette.lineHeight.ratio10to7}',
|
|
43
|
+
labelMarginTop: '{palette.size.size8}',
|
|
44
|
+
labelPaddingLeft: '{palette.size.size16}',
|
|
45
|
+
labelPaddingRight: '{palette.size.size16}',
|
|
46
|
+
showStepLabel: '{system.show.false}',
|
|
47
|
+
showStepName: '{system.show.true}',
|
|
48
|
+
showStepTrackerLabel: '{system.show.true}'
|
|
49
|
+
},
|
|
50
|
+
rules: [
|
|
51
|
+
{
|
|
52
|
+
if: { viewport: ['lg', 'xl'] },
|
|
53
|
+
tokens: {
|
|
54
|
+
showStepLabel: '{system.show.true}',
|
|
55
|
+
showStepTrackerLabel: '{system.show.false}'
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
]
|
|
59
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
appearances: {},
|
|
3
|
+
tokens: {
|
|
4
|
+
nextIcon: '{palette.icon.ArrowRight}',
|
|
5
|
+
previousIcon: '{palette.icon.ArrowLeft}',
|
|
6
|
+
space: '{system.integer.0}',
|
|
7
|
+
gutter: '{palette.size.size2}',
|
|
8
|
+
borderBottomWidth: '{palette.border.border1}',
|
|
9
|
+
borderBottomColor: '{palette.color.greyShuttle}',
|
|
10
|
+
buttonClearance: '{palette.size.size16}'
|
|
11
|
+
},
|
|
12
|
+
rules: []
|
|
13
|
+
}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
appearances: {
|
|
3
|
+
pressed: '{appearances.TabsItem.pressed}',
|
|
4
|
+
hover: '{appearances.TabsItem.pressed}',
|
|
5
|
+
focus: '{appearances.TabsItem.pressed}',
|
|
6
|
+
selected: '{appearances.TabsItem.pressed}'
|
|
7
|
+
},
|
|
8
|
+
tokens: {
|
|
9
|
+
highlightColor: '{system.color.transparent}',
|
|
10
|
+
highlightBarHeight: '{system.border.zero}',
|
|
11
|
+
highlightBarBorderRadius: '{system.radius.zero}',
|
|
12
|
+
highlightBarBorderWidth: '{system.border.zero}',
|
|
13
|
+
highlightTriangleSize: '{system.size.zero}',
|
|
14
|
+
|
|
15
|
+
backgroundColor: '{system.color.transparent}',
|
|
16
|
+
borderColor: '{system.color.transparent}',
|
|
17
|
+
borderWidth: '{system.border.zero}',
|
|
18
|
+
borderRadius: '{palette.radius.pill32}',
|
|
19
|
+
maxWidth: '{palette.size.size192}',
|
|
20
|
+
space: '{system.integer.1}',
|
|
21
|
+
paddingHorizontal: '{palette.size.size24}',
|
|
22
|
+
paddingVertical: '{palette.size.size8}',
|
|
23
|
+
|
|
24
|
+
textAlign: '{system.textAlign.center}',
|
|
25
|
+
lineHeight: '{palette.lineHeight.ratio8to7}',
|
|
26
|
+
color: '{palette.color.greyShuttle}',
|
|
27
|
+
fontSize: '{palette.fontSize.size14}',
|
|
28
|
+
letterSpacing: '{system.letterSpacing.none}',
|
|
29
|
+
textTransform: '{system.textTransform.none}',
|
|
30
|
+
fontScaleCap: '{palette.fontSize.size64}',
|
|
31
|
+
|
|
32
|
+
fontWeight: '{palette.fontWeight.weight700}',
|
|
33
|
+
fontName: '{palette.fontName.HelveticaNow}'
|
|
34
|
+
},
|
|
35
|
+
rules: [
|
|
36
|
+
{
|
|
37
|
+
if: { selected: true },
|
|
38
|
+
description:
|
|
39
|
+
"The design uses height of 3: there's (rightly) no '3' in the Allium palette but the effect is 1px above and below a 1px line",
|
|
40
|
+
tokens: {
|
|
41
|
+
highlightBarBorderWidth: '{palette.border.border1}',
|
|
42
|
+
highlightBarHeight: '{palette.border.border1}',
|
|
43
|
+
highlightColor: '{palette.color.purpleTelus}',
|
|
44
|
+
highlightBarBorderRadius: '{palette.radius.pill32}',
|
|
45
|
+
|
|
46
|
+
color: '{palette.color.purpleTelus}',
|
|
47
|
+
backgroundColor: '{palette.color.greyAthens}'
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
if: { hover: true },
|
|
52
|
+
tokens: {
|
|
53
|
+
borderColor: '{palette.color.greyCloud}',
|
|
54
|
+
borderWidth: '{palette.border.border2}'
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
if: { focus: true },
|
|
59
|
+
tokens: {
|
|
60
|
+
color: '{palette.color.purpleTelus}',
|
|
61
|
+
borderColor: '{palette.color.purpleTelus}',
|
|
62
|
+
borderWidth: '{palette.border.border2}'
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
if: { pressed: true },
|
|
67
|
+
tokens: {
|
|
68
|
+
color: '{palette.color.white}',
|
|
69
|
+
backgroundColor: '{palette.color.greyShuttle}',
|
|
70
|
+
borderColor: '{system.color.transparent}',
|
|
71
|
+
borderWidth: '{system.border.zero}'
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
if: { focus: true, pressed: true },
|
|
76
|
+
tokens: {
|
|
77
|
+
backgroundColor: '{palette.color.purpleTelus}'
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
]
|
|
81
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
appearances: {
|
|
3
|
+
hover: '{appearances.TabsScrollButton.hover}',
|
|
4
|
+
focus: '{appearances.TabsScrollButton.focus}',
|
|
5
|
+
pressed: '{appearances.TabsScrollButton.pressed}'
|
|
6
|
+
},
|
|
7
|
+
tokens: {
|
|
8
|
+
borderRadius: '{palette.radius.pill32}',
|
|
9
|
+
backgroundColor: '{palette.color.white}',
|
|
10
|
+
borderColor: '{palette.color.greyCloud}',
|
|
11
|
+
borderWidth: '{palette.border.border1}',
|
|
12
|
+
padding: '{system.size.zero}',
|
|
13
|
+
shadow: '{palette.shadow.surfaceRaised}',
|
|
14
|
+
iconSize: '{palette.size.size32}',
|
|
15
|
+
iconColor: '{palette.color.greyShuttle}'
|
|
16
|
+
},
|
|
17
|
+
// TODO: refine the states etc when designs for icon buttons are finalized
|
|
18
|
+
rules: [
|
|
19
|
+
{
|
|
20
|
+
if: { hover: true },
|
|
21
|
+
tokens: {
|
|
22
|
+
borderColor: '{palette.color.greyCharcoal}',
|
|
23
|
+
iconColor: '{palette.color.greyCharcoal}'
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
if: { pressed: true },
|
|
28
|
+
tokens: {
|
|
29
|
+
backgroundColor: '{palette.color.greyShuttle}',
|
|
30
|
+
iconColor: '{palette.color.white}'
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
]
|
|
34
|
+
}
|
package/src/components/Tags.js
CHANGED
|
@@ -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
|
}
|