@telus-uds/theme-allium 0.0.2-prerelease.6 → 0.1.0-prerelease.0

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.
Files changed (57) hide show
  1. package/CHANGELOG.md +1829 -0
  2. package/build/theme.js +162 -25
  3. package/package.json +8 -14
  4. package/theme.json +3714 -0
  5. package/src/components/ActivityIndicator.js +0 -23
  6. package/src/components/Box.js +0 -32
  7. package/src/components/Button.js +0 -167
  8. package/src/components/ButtonGroup.js +0 -13
  9. package/src/components/ButtonGroupItem.js +0 -98
  10. package/src/components/Card.js +0 -97
  11. package/src/components/Checkbox.js +0 -59
  12. package/src/components/CheckboxGroup.js +0 -8
  13. package/src/components/ChevronLink.js +0 -12
  14. package/src/components/Divider.js +0 -32
  15. package/src/components/ExpandCollapse.js +0 -9
  16. package/src/components/ExpandCollapseControl.js +0 -22
  17. package/src/components/ExpandCollapsePanel.js +0 -13
  18. package/src/components/Feedback.js +0 -66
  19. package/src/components/Icon.js +0 -33
  20. package/src/components/InputLabel.js +0 -23
  21. package/src/components/InputSupports.js +0 -7
  22. package/src/components/Link.js +0 -203
  23. package/src/components/List.js +0 -68
  24. package/src/components/Modal.js +0 -57
  25. package/src/components/Notification.js +0 -90
  26. package/src/components/Pagination.js +0 -24
  27. package/src/components/PaginationPageButton.js +0 -65
  28. package/src/components/PaginationSideButton.js +0 -90
  29. package/src/components/Progress.js +0 -13
  30. package/src/components/ProgressBar.js +0 -31
  31. package/src/components/Radio.js +0 -69
  32. package/src/components/RadioCard.js +0 -123
  33. package/src/components/RadioCardGroup.js +0 -24
  34. package/src/components/RadioGroup.js +0 -8
  35. package/src/components/Search.js +0 -57
  36. package/src/components/SearchButton.js +0 -71
  37. package/src/components/Select.js +0 -78
  38. package/src/components/SideNav.js +0 -9
  39. package/src/components/SideNavItem.js +0 -111
  40. package/src/components/SideNavItemsGroup.js +0 -27
  41. package/src/components/Skeleton.js +0 -14
  42. package/src/components/StackView.js +0 -10
  43. package/src/components/StepTracker.js +0 -59
  44. package/src/components/Tabs.js +0 -13
  45. package/src/components/TabsItem.js +0 -81
  46. package/src/components/TabsScrollButton.js +0 -34
  47. package/src/components/Tags.js +0 -13
  48. package/src/components/TagsItem.js +0 -126
  49. package/src/components/TextArea.js +0 -8
  50. package/src/components/TextInput.js +0 -73
  51. package/src/components/ToggleSwitch.js +0 -111
  52. package/src/components/Tooltip.js +0 -37
  53. package/src/components/TooltipButton.js +0 -61
  54. package/src/components/Typography.js +0 -337
  55. package/src/components/index.js +0 -53
  56. package/src/components/spacingScale.js +0 -33
  57. package/src/index.js +0 -17
@@ -1,33 +0,0 @@
1
- module.exports = {
2
- appearances: {
3
- size: {
4
- values: ['small'],
5
- type: 'variant'
6
- },
7
- rank: {
8
- values: ['primary'],
9
- type: 'variant'
10
- }
11
- },
12
- tokens: {
13
- size: '{palette.size.size24}',
14
- color: '{palette.color.greyCharcoal}',
15
- translateX: '{system.size.zero}',
16
- translateY: '{system.size.zero}',
17
- scale: '{system.integer.1}'
18
- },
19
- rules: [
20
- {
21
- if: { size: 'small' },
22
- tokens: {
23
- size: '{palette.size.size20}'
24
- }
25
- },
26
- {
27
- if: { rank: 'primary' },
28
- tokens: {
29
- color: '{palette.color.purpleTelus}'
30
- }
31
- }
32
- ]
33
- }
@@ -1,23 +0,0 @@
1
- module.exports = {
2
- appearances: {},
3
- tokens: {
4
- gap: '{palette.size.size8}',
5
-
6
- color: '{palette.color.greyCharcoal}',
7
-
8
- fontName: '{palette.fontName.HelveticaNow}',
9
- fontWeight: '{palette.fontWeight.weight700}',
10
-
11
- fontSize: '{palette.fontSize.size16}',
12
- lineHeight: '{palette.lineHeight.ratio3to2}',
13
-
14
- hintColor: '{palette.color.greyCharcoal}',
15
-
16
- hintFontName: '{palette.fontName.HelveticaNow}',
17
- hintFontWeight: '{palette.fontWeight.weight400}',
18
-
19
- hintFontSize: '{palette.fontSize.size14}',
20
- hintLineHeight: '{palette.lineHeight.ratio7to5}'
21
- },
22
- rules: []
23
- }
@@ -1,7 +0,0 @@
1
- module.exports = {
2
- appearances: {},
3
- tokens: {
4
- space: '{system.integer.1}'
5
- },
6
- rules: []
7
- }
@@ -1,203 +0,0 @@
1
- module.exports = {
2
- appearances: {
3
- size: {
4
- description:
5
- 'Text sizes for block links; similar but not always identical to Typography sizes.',
6
- values: ['large', 'small', 'micro'],
7
- type: 'variant'
8
- },
9
- alternative: {
10
- description: 'Replaces the default green colour with a more subtle grey.',
11
- values: [true],
12
- type: 'variant'
13
- },
14
- inverse: {
15
- description: 'Styles the link white for use on dark backgrounds.',
16
- values: [true],
17
- type: 'variant'
18
- },
19
- light: {
20
- description:
21
- 'A lighter grey variant, used to lower the emphasis on a given Link (e.g. in Breadcrumbs)',
22
- values: [true],
23
- type: 'variant'
24
- },
25
- iconPosition: '{appearances.Link.iconPosition}',
26
- focus: '{appearances.Link.focus}',
27
- hover: '{appearances.Link.hover}',
28
- pressed: '{appearances.Link.pressed}'
29
- },
30
- tokens: {
31
- color: '{palette.color.greenAccessible}',
32
-
33
- textLine: '{system.textLine.underline}',
34
- textLineStyle: '{system.textLineStyle.solid}',
35
-
36
- outerBorderColor: '{palette.color.transparent}',
37
- outerBorderWidth: '{palette.border.border2}',
38
- outerBorderGap: '{palette.border.border2}',
39
- borderRadius: '{palette.radius.radius4}',
40
- outerBorderOutline: '{system.borderStyle.none}',
41
-
42
- // Same as default size Typography
43
- blockFontWeight: '{palette.fontWeight.weight400}',
44
- blockFontName: '{palette.fontName.HelveticaNow}',
45
-
46
- blockFontSize: '{palette.fontSize.size16}',
47
- blockLineHeight: '{palette.lineHeight.ratio3to2}',
48
- alignSelf: '{system.flexAlign.flexStart}',
49
-
50
- icon: '{system.icon.none}',
51
- iconSize: '{palette.fontSize.size24}',
52
- iconSpace: '{system.integer.1}',
53
- iconTranslateX: '{system.size.zero}',
54
- iconTranslateY: '{system.size.zero}'
55
- },
56
- rules: [
57
- {
58
- if: { iconPosition: 'left' },
59
- tokens: {
60
- iconSpace: '{system.integer.2}'
61
- }
62
- },
63
- // Initial interaction states
64
- {
65
- if: { focus: true },
66
- tokens: {
67
- outerBorderColor: '{palette.color.greenAccessible}',
68
- outerBorderOutline: '{system.borderStyle.none}'
69
- }
70
- },
71
- {
72
- if: { hover: true },
73
- tokens: {
74
- textLine: '{system.textLine.none}',
75
- color: '{palette.color.greenSanFelix}'
76
- }
77
- },
78
- {
79
- if: { pressed: true },
80
- tokens: {
81
- textLine: '{system.textLine.none}',
82
- color: '{palette.color.greenDarkFern}'
83
- }
84
- },
85
- {
86
- if: { pressed: true, focus: true },
87
- tokens: {
88
- outerBorderColor: '{palette.color.greenDarkFern}'
89
- }
90
- },
91
-
92
- // block link sizes
93
- {
94
- if: { size: 'large' },
95
- tokens: {
96
- blockFontSize: '{palette.fontSize.size20}',
97
- iconSize: '{palette.fontSize.size24}',
98
- blockLineHeight: '{palette.lineHeight.ratio8to5}'
99
- }
100
- },
101
- {
102
- if: { size: 'small' },
103
- tokens: {
104
- blockFontSize: '{palette.fontSize.size14}',
105
- iconSize: '{palette.fontSize.size20}',
106
- blockLineHeight: '{palette.lineHeight.ratio10to7}'
107
- }
108
- },
109
- {
110
- if: { size: 'micro' },
111
- tokens: {
112
- blockFontSize: '{palette.fontSize.size12}',
113
- blockFontWeight: '{palette.fontWeight.weight500}',
114
- blockFontName: '{palette.fontName.HelveticaNow}',
115
- iconSize: '{palette.fontSize.size16}',
116
- blockLineHeight: '{palette.lineHeight.ratio4to3}'
117
- }
118
- },
119
-
120
- // "alternative" variant
121
- {
122
- if: { alternative: true },
123
- tokens: {
124
- color: '{palette.color.greyThunder}'
125
- }
126
- },
127
- {
128
- if: { alternative: true, focus: true },
129
- tokens: {
130
- color: '{palette.color.greyCharcoal}',
131
- outerBorderColor: '{palette.color.greyCharcoal}'
132
- }
133
- },
134
- {
135
- if: { alternative: true, hover: true },
136
- tokens: {
137
- color: '{palette.color.greyThunder}'
138
- }
139
- },
140
- {
141
- if: { alternative: true, pressed: true },
142
- tokens: {
143
- color: '{palette.color.greyThunder}'
144
- }
145
- },
146
-
147
- // "inverse" variant
148
- {
149
- if: { inverse: true },
150
- tokens: {
151
- color: '{palette.color.white}'
152
- }
153
- },
154
- {
155
- if: { inverse: true, hover: true },
156
- tokens: {
157
- color: '{palette.color.greyAthens}'
158
- }
159
- },
160
- {
161
- if: { inverse: true, focus: true },
162
- tokens: {
163
- outerBorderColor: '{palette.color.white}',
164
- outerBorderOutline: '{system.borderStyle.none}'
165
- }
166
- },
167
- {
168
- if: { inverse: true, pressed: true },
169
- tokens: {
170
- color: '{palette.color.greyMystic}'
171
- }
172
- },
173
- {
174
- if: { inverse: true, pressed: true, focus: true },
175
- tokens: {
176
- color: '{palette.color.greyMystic}',
177
- outerBorderColor: '{palette.color.greyMystic}'
178
- }
179
- },
180
-
181
- // "light" variant
182
- {
183
- if: { light: true },
184
- tokens: {
185
- color: '{palette.color.greyShuttle}'
186
- }
187
- },
188
- {
189
- if: { light: true, focus: true },
190
- tokens: {
191
- color: '{palette.color.greyShuttle}',
192
- outerBorderColor: '{palette.color.greyShuttle}'
193
- }
194
- },
195
- {
196
- if: { light: true, hover: true },
197
- tokens: {
198
- color: '{palette.color.greyCharcoal}',
199
- textLine: '{system.textLine.none}'
200
- }
201
- }
202
- ]
203
- }
@@ -1,68 +0,0 @@
1
- module.exports = {
2
- appearances: {
3
- size: {
4
- description: 'Indicates list item text size.',
5
- values: ['large', 'small'],
6
- type: 'variant'
7
- },
8
- compact: {
9
- description: 'When true it will reduce the line height of the list item.',
10
- values: [true],
11
- type: 'variant'
12
- }
13
- },
14
- tokens: {
15
- itemFontWeight: '{palette.fontWeight.weight400}',
16
- itemFontSize: '{palette.fontSize.size16}',
17
- itemLineHeight: '{palette.lineHeight.ratio3to2}',
18
- itemFontName: '{palette.fontName.HelveticaNow}',
19
- interItemMargin: '{palette.size.size8}',
20
- interItemMarginWithDivider: '{palette.size.size16}',
21
- dividerColor: '{palette.color.greyCloud}',
22
- dividerSize: '{palette.border.border1}',
23
- itemBulletContainerWidth: '{palette.size.size16}',
24
- itemBulletContainerAlign: '{system.textAlign.center}',
25
- itemBulletWidth: '{palette.size.size4}',
26
- itemBulletHeight: '{palette.size.size4}',
27
- itemBulletColor: '{palette.color.purpleTelus}',
28
- itemIconSize: '{palette.size.size16}',
29
- itemIconColor: '{palette.color.purpleTelus}',
30
- listGutter: '{palette.size.size12}'
31
- },
32
- rules: [
33
- {
34
- if: { size: 'large' },
35
- tokens: {
36
- itemFontSize: '{palette.fontSize.size20}',
37
- itemLineHeight: '{palette.lineHeight.ratio8to5}',
38
- listGutter: '{palette.size.size12}'
39
- }
40
- },
41
- {
42
- if: { size: 'small' },
43
- tokens: {
44
- itemFontSize: '{palette.fontSize.size14}',
45
- itemLineHeight: '{palette.lineHeight.ratio10to7}',
46
- listGutter: '{palette.size.size12}'
47
- }
48
- },
49
- {
50
- if: { compact: true },
51
- tokens: {
52
- itemLineHeight: '{palette.lineHeight.ratio5to4}'
53
- }
54
- },
55
- {
56
- if: { compact: true, size: 'small' },
57
- tokens: {
58
- itemLineHeight: '{palette.lineHeight.ratio8to7}'
59
- }
60
- },
61
- {
62
- if: { compact: true, size: 'large' },
63
- tokens: {
64
- itemLineHeight: '{palette.lineHeight.ratio6to5}'
65
- }
66
- }
67
- ]
68
- }
@@ -1,57 +0,0 @@
1
- module.exports = {
2
- appearances: {
3
- maxWidth: '{appearances.Modal.maxWidth}',
4
- viewport: '{appearances.system.viewport}'
5
- },
6
- tokens: {
7
- backdropColor: '{palette.color.bgModal}',
8
- backdropOpacity: '{system.opacity.opaque}',
9
-
10
- height: '{system.size.none}',
11
- maxWidth: '{system.size.full}',
12
-
13
- containerPaddingLeft: '{system.size.zero}',
14
- containerPaddingRight: '{system.size.zero}',
15
- containerPaddingTop: '{system.size.zero}',
16
- containerPaddingBottom: '{system.size.zero}',
17
-
18
- backgroundColor: '{palette.color.white}',
19
- borderRadius: '{palette.radius.radius4}',
20
- shadow: '{palette.shadow.elevation1}',
21
- paddingLeft: '{palette.size.size24}',
22
- paddingRight: '{palette.size.size24}',
23
- paddingTop: '{palette.size.size24}',
24
- paddingBottom: '{palette.size.size24}',
25
-
26
- closeIcon: '{palette.icon.Close}',
27
- closeIconSize: '{palette.size.size24}',
28
- closeIconColor: '{palette.color.greyCharcoal}'
29
- },
30
- rules: [
31
- {
32
- if: { viewport: ['xs', 'sm'] },
33
- // covers the entire viewport on mobile devices
34
- tokens: {
35
- height: '{system.size.full}'
36
- }
37
- },
38
- {
39
- if: { viewport: ['md', 'lg', 'xl'] },
40
- tokens: {
41
- maxWidth: '{system.integer.576}', // default when maxWidth is not enabled
42
- // ensures that there's a gap near the top and bottom edge of the viewport
43
- containerPaddingTop: '{palette.size.size32}',
44
- containerPaddingBottom: '{palette.size.size32}'
45
- }
46
- },
47
- {
48
- if: { viewport: ['md', 'lg', 'xl'], maxWidth: true },
49
- tokens: {
50
- maxWidth: '{system.size.twoThirds}', // 100% * 8/12
51
- // compensate for the outside gutter of the layout columns (modal edges should be aligned with the columns edges)
52
- containerPaddingLeft: '{palette.size.size16}',
53
- containerPaddingRight: '{palette.size.size16}'
54
- }
55
- }
56
- ]
57
- }
@@ -1,90 +0,0 @@
1
- // TODO: replace Close with circled close
2
-
3
- module.exports = {
4
- appearances: {
5
- system: '{appearances.Notification.system}',
6
- style: '{appearances.Notification.style}'
7
- },
8
- tokens: {
9
- backgroundColor: '{palette.color.greyAthens}',
10
- borderBottomWidth: '{palette.border.border1}',
11
- borderTopWidth: '{palette.border.border1}',
12
- borderLeftWidth: '{palette.border.border1}',
13
- borderRightWidth: '{palette.border.border1}',
14
- borderColor: '{palette.color.greyShuttle}',
15
- borderRadius: '{palette.radius.radius6}',
16
- paddingTop: '{palette.size.size12}',
17
- paddingBottom: '{palette.size.size12}',
18
- paddingLeft: '{palette.size.size12}',
19
- paddingRight: '{palette.size.size12}',
20
-
21
- color: '{palette.color.greyCharcoal}',
22
- fontSize: '{palette.fontSize.size16}',
23
- lineHeight: '{palette.lineHeight.ratio3to2}',
24
- fontName: '{palette.fontName.HelveticaNow}',
25
- fontWeight: '{palette.fontWeight.weight400}',
26
-
27
- icon: '{system.icon.none}',
28
- iconColor: '{system.color.none}',
29
- iconSize: '{palette.size.size24}',
30
- iconGap: '{palette.size.size16}',
31
-
32
- dismissIcon: '{palette.icon.Close}',
33
- dismissIconColor: '{palette.color.greyCharcoal}',
34
- dismissIconSize: '{palette.size.size24}',
35
- dismissButtonGap: '{palette.size.size16}'
36
- },
37
- rules: [
38
- {
39
- if: {
40
- system: true
41
- },
42
- tokens: {
43
- borderTopWidth: '{system.border.zero}',
44
- borderLeftWidth: '{system.border.zero}',
45
- borderRightWidth: '{system.border.zero}',
46
- borderRadius: '{system.radius.zero}',
47
- paddingTop: '{palette.size.size16}',
48
- paddingBottom: '{palette.size.size16}',
49
- paddingLeft: '{palette.size.size16}',
50
- paddingRight: '{palette.size.size16}',
51
- iconGap: '{palette.size.size12}'
52
- }
53
- },
54
- {
55
- if: {
56
- style: 'success'
57
- },
58
- tokens: {
59
- backgroundColor: '{palette.color.greenPanache}',
60
- borderColor: '{palette.color.greenAccessible}',
61
- icon: '{palette.icon.NotificationSuccess}',
62
- iconColor: '{palette.color.greenAccessible}'
63
- }
64
- },
65
- {
66
- if: {
67
- style: 'warning'
68
- },
69
- tokens: {
70
- backgroundColor: '{palette.color.amberLight}',
71
- borderColor: '{palette.color.amberDark}',
72
- icon: '{palette.icon.NotificationWarning}',
73
- iconColor: '{palette.color.amberDark}',
74
- dismissIcon: '{system.icon.none}'
75
- }
76
- },
77
- {
78
- if: {
79
- style: 'error'
80
- },
81
- tokens: {
82
- backgroundColor: '{palette.color.redLight}',
83
- borderColor: '{palette.color.red}',
84
- icon: '{palette.icon.NotificationError}',
85
- iconColor: '{palette.color.red}',
86
- dismissIcon: '{system.icon.none}'
87
- }
88
- }
89
- ]
90
- }
@@ -1,24 +0,0 @@
1
- module.exports = {
2
- appearances: {
3
- viewport: '{appearances.system.viewport}'
4
- },
5
- tokens: {
6
- gap: '{system.integer.2}',
7
- truncateAbove: '{system.integer.4}',
8
-
9
- color: '{palette.color.greyShuttle}',
10
- fontName: '{palette.fontName.HelveticaNow}',
11
- fontWeight: '{palette.fontWeight.weight400}',
12
-
13
- fontSize: '{palette.fontSize.size16}',
14
- lineHeight: '{palette.lineHeight.ratio3to2}'
15
- },
16
- rules: [
17
- {
18
- if: { viewport: ['md', 'lg', 'xl'] },
19
- tokens: {
20
- truncateAbove: '{system.integer.6}'
21
- }
22
- }
23
- ]
24
- }
@@ -1,65 +0,0 @@
1
- module.exports = {
2
- appearances: {
3
- focus: '{appearances.PaginationPageButton.focus}',
4
- hover: '{appearances.PaginationPageButton.hover}',
5
- pressed: '{appearances.PaginationPageButton.pressed}',
6
- selected: '{appearances.PaginationPageButton.selected}'
7
- },
8
- tokens: {
9
- borderColor: '{palette.color.transparent}',
10
- borderWidth: '{palette.border.border1}',
11
- borderRadius: '{palette.radius.pill32}',
12
- backgroundColor: '{palette.color.transparent}',
13
- paddingLeft: '{palette.size.size8}',
14
- paddingRight: '{palette.size.size8}',
15
- paddingTop: '{palette.size.size4}',
16
- paddingBottom: '{palette.size.size4}',
17
- width: '{palette.size.size32}',
18
-
19
- // never visible - used only to increase the click area size
20
- outerBorderColor: '{palette.color.transparent}',
21
- outerBorderWidth: '{palette.border.border4}',
22
- outerBorderGap: '{palette.border.border4}',
23
-
24
- color: '{palette.color.greyShuttle}',
25
-
26
- fontName: '{palette.fontName.HelveticaNow}',
27
- fontWeight: '{palette.fontWeight.weight400}',
28
-
29
- fontSize: '{palette.fontSize.size16}',
30
- lineHeight: '{palette.lineHeight.ratio3to2}',
31
- textLine: '{system.textLine.underline}',
32
- textAlign: '{system.flexJustifyContent.center}'
33
- },
34
- rules: [
35
- {
36
- if: { hover: true },
37
- tokens: {
38
- borderColor: '{palette.color.greyShuttle}',
39
- textLine: '{system.textLine.none}'
40
- }
41
- },
42
- {
43
- if: { focus: true },
44
- tokens: {
45
- borderColor: '{palette.color.greyShuttle}',
46
- borderWidth: '{palette.border.border3}'
47
- }
48
- },
49
- {
50
- if: { selected: true },
51
- tokens: {
52
- backgroundColor: '{palette.color.greyShuttle}',
53
- color: '{palette.color.white}',
54
- textLine: '{system.textLine.none}'
55
- }
56
- },
57
- {
58
- if: { pressed: true },
59
- tokens: {
60
- backgroundColor: '{palette.color.greyShuttle}',
61
- color: '{palette.color.white}'
62
- }
63
- }
64
- ]
65
- }
@@ -1,90 +0,0 @@
1
- module.exports = {
2
- appearances: {
3
- viewport: '{appearances.system.viewport}',
4
- focus: '{appearances.PaginationSideButton.focus}',
5
- hover: '{appearances.PaginationSideButton.hover}',
6
- pressed: '{appearances.PaginationSideButton.pressed}',
7
- selected: '{appearances.PaginationSideButton.selected}',
8
- direction: '{appearances.PaginationSideButton.direction}'
9
- },
10
- tokens: {
11
- borderColor: '{palette.color.transparent}',
12
- borderWidth: '{palette.border.border1}',
13
- borderRadius: '{palette.radius.radius4}',
14
- backgroundColor: '{palette.color.transparent}',
15
- paddingLeft: '{palette.size.size8}',
16
- paddingRight: '{palette.size.size8}',
17
- paddingTop: '{palette.size.size12}',
18
- paddingBottom: '{palette.size.size12}',
19
- outerBorderColor: '{palette.color.transparent}',
20
-
21
- color: '{palette.color.greyShuttle}',
22
-
23
- fontName: '{palette.fontName.HelveticaNow}',
24
- fontWeight: '{palette.fontWeight.weight400}',
25
-
26
- fontSize: '{palette.fontSize.size16}',
27
- lineHeight: '{palette.lineHeight.ratio3to2}',
28
- textLine: '{system.textLine.underline}',
29
-
30
- icon: '{system.icon.none}',
31
- iconSize: '{palette.fontSize.size24}',
32
- iconDisplace: '{palette.size.size0}',
33
-
34
- width: '{system.size.none}',
35
- textAlign: '{system.flexJustifyContent.center}'
36
- },
37
- rules: [
38
- {
39
- if: { viewport: ['xs', 'sm'] },
40
- tokens: {
41
- borderRadius: '{palette.radius.pill32}',
42
- paddingTop: '{palette.size.size4}',
43
- paddingBottom: '{palette.size.size4}',
44
- width: '{palette.size.size32}'
45
- }
46
- },
47
- {
48
- if: { hover: true },
49
- tokens: {
50
- borderColor: '{palette.color.greyShuttle}',
51
- textLine: '{system.textLine.none}',
52
- iconDisplace: '{palette.size.size4}'
53
- }
54
- },
55
- {
56
- if: { focus: true },
57
- tokens: {
58
- borderColor: '{palette.color.greyShuttle}',
59
- borderWidth: '{palette.border.border3}'
60
- }
61
- },
62
- {
63
- if: { selected: true },
64
- tokens: {
65
- backgroundColor: '{palette.color.greyShuttle}',
66
- color: '{palette.color.white}',
67
- textLine: '{system.textLine.none}'
68
- }
69
- },
70
- {
71
- if: { pressed: true },
72
- tokens: {
73
- backgroundColor: '{palette.color.greyShuttle}',
74
- color: '{palette.color.white}'
75
- }
76
- },
77
- {
78
- if: { direction: 'previous' },
79
- tokens: {
80
- icon: '{palette.icon.ArrowLeft}'
81
- }
82
- },
83
- {
84
- if: { direction: 'next' },
85
- tokens: {
86
- icon: '{palette.icon.ArrowRight}'
87
- }
88
- }
89
- ]
90
- }
@@ -1,13 +0,0 @@
1
- module.exports = {
2
- appearances: {
3
- size: { values: ['mini'], type: 'variant' }
4
- },
5
- tokens: {
6
- backgroundColor: '{palette.color.greyAthens}',
7
- borderWidth: '{palette.border.border1}',
8
- borderColor: '{palette.color.greyCloud}',
9
- borderRadius: '{palette.radius.radius12}',
10
- height: '{palette.size.size16}'
11
- },
12
- rules: [{ if: { size: 'mini' }, tokens: { height: '{palette.size.size8}' } }]
13
- }