@telus-uds/theme-allium 0.0.2-prerelease.4 → 0.0.2-prerelease.5

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 (78) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/lib/components/ActivityIndicator.js +35 -0
  3. package/lib/components/Box.js +89 -0
  4. package/lib/components/Button.js +252 -0
  5. package/lib/components/ButtonGroup.js +34 -0
  6. package/lib/components/ButtonGroupItem.js +108 -0
  7. package/lib/components/Card.js +120 -0
  8. package/lib/components/Checkbox.js +80 -0
  9. package/lib/components/ChevronLink.js +39 -0
  10. package/lib/components/Divider.js +44 -0
  11. package/lib/components/ExpandCollapse.js +23 -0
  12. package/lib/components/ExpandCollapseControl.js +49 -0
  13. package/lib/components/ExpandCollapsePanel.js +25 -0
  14. package/lib/components/Feedback.js +89 -0
  15. package/lib/components/Icon.js +47 -0
  16. package/lib/components/InputLabel.js +33 -0
  17. package/lib/components/InputSupports.js +19 -0
  18. package/lib/components/Link.js +241 -0
  19. package/lib/components/List.js +86 -0
  20. package/lib/components/Pagination.js +40 -0
  21. package/lib/components/PaginationPageButton.js +82 -0
  22. package/lib/components/PaginationSideButton.js +113 -0
  23. package/lib/components/Radio.js +78 -0
  24. package/lib/components/Select.js +102 -0
  25. package/lib/components/SideNav.js +23 -0
  26. package/lib/components/SideNavItem.js +118 -0
  27. package/lib/components/SideNavItemsGroup.js +49 -0
  28. package/lib/components/Skeleton.js +26 -0
  29. package/lib/components/StackView.js +22 -0
  30. package/lib/components/Tags.js +34 -0
  31. package/lib/components/TagsItem.js +133 -0
  32. package/lib/components/TextArea.js +20 -0
  33. package/lib/components/TextInput.js +97 -0
  34. package/lib/components/ToggleSwitch.js +144 -0
  35. package/lib/components/Tooltip.js +48 -0
  36. package/lib/components/TooltipButton.js +86 -0
  37. package/lib/components/Typography.js +370 -0
  38. package/lib/components/index.js +303 -0
  39. package/lib/components/spacingScale.js +163 -0
  40. package/lib/index.js +30 -0
  41. package/package.json +7 -7
  42. package/src/components/Box.js +3 -9
  43. package/src/components/Button.js +27 -72
  44. package/src/components/ButtonGroup.js +10 -17
  45. package/src/components/ButtonGroupItem.js +88 -0
  46. package/src/components/Card.js +4 -3
  47. package/src/components/Checkbox.js +65 -0
  48. package/src/components/ChevronLink.js +10 -11
  49. package/src/components/ExpandCollapse.js +3 -9
  50. package/src/components/ExpandCollapseControl.js +8 -21
  51. package/src/components/ExpandCollapsePanel.js +3 -14
  52. package/src/components/Feedback.js +20 -19
  53. package/src/components/Icon.js +6 -3
  54. package/src/components/InputLabel.js +9 -8
  55. package/src/components/InputSupports.js +9 -0
  56. package/src/components/Link.js +39 -23
  57. package/src/components/List.js +70 -0
  58. package/src/components/Pagination.js +10 -13
  59. package/src/components/PaginationPageButton.js +15 -25
  60. package/src/components/PaginationSideButton.js +22 -32
  61. package/src/components/Radio.js +64 -0
  62. package/src/components/Select.js +88 -0
  63. package/src/components/SideNav.js +3 -9
  64. package/src/components/SideNavItem.js +21 -22
  65. package/src/components/SideNavItemsGroup.js +11 -18
  66. package/src/components/Skeleton.js +16 -0
  67. package/src/components/StackView.js +5 -12
  68. package/src/components/Tags.js +16 -0
  69. package/src/components/TagsItem.js +118 -0
  70. package/src/components/TextArea.js +10 -0
  71. package/src/components/TextInput.js +14 -17
  72. package/src/components/ToggleSwitch.js +16 -23
  73. package/src/components/Tooltip.js +4 -8
  74. package/src/components/TooltipButton.js +8 -14
  75. package/src/components/Typography.js +58 -13
  76. package/src/components/index.js +37 -57
  77. package/src/components/spacingScale.js +4 -14
  78. package/src/index.js +1 -1
package/CHANGELOG.md CHANGED
@@ -2,6 +2,25 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ### [0.0.2-prerelease.5](https://github.com/telus/universal-design-system/compare/@telus-uds/theme-allium/v0.0.2-prerelease.4...@telus-uds/theme-allium/v0.0.2-prerelease.5) (2021-11-23)
6
+
7
+ ### Features
8
+
9
+ - add opacity and duration tokens to palettes ([#754](https://github.com/telus/universal-design-system/issues/754)) ([e1de9a6](https://github.com/telus/universal-design-system/commit/e1de9a62ec78d217677409590ad46e3674aabf2f))
10
+ - **base:** add `Radio` button ([#731](https://github.com/telus/universal-design-system/issues/731)) ([ad1613c](https://github.com/telus/universal-design-system/commit/ad1613c547fe3b0cdf1490a92267f32045356133))
11
+ - **base:** add base `Checkbox` component ([#706](https://github.com/telus/universal-design-system/issues/706)) ([a3fa01a](https://github.com/telus/universal-design-system/commit/a3fa01ad0da342be02c15284a103c22d7b315ae9))
12
+ - **base:** add Tags component ([#785](https://github.com/telus/universal-design-system/issues/785)) ([90bbf40](https://github.com/telus/universal-design-system/commit/90bbf4035a0bc0a8cdf319d9b366c8498c0dfb56))
13
+ - **base:** add TextArea ([#720](https://github.com/telus/universal-design-system/issues/720)) ([b18cae3](https://github.com/telus/universal-design-system/commit/b18cae3357375019ecc4e24e78ed9a2345b26139))
14
+ - **base:** add the Select component ([#759](https://github.com/telus/universal-design-system/issues/759)) ([9cfdf84](https://github.com/telus/universal-design-system/commit/9cfdf846b7a273dd140537b60e08f30a70c13a66))
15
+ - **base:** adding list component ([#296](https://github.com/telus/universal-design-system/issues/296)) ([#703](https://github.com/telus/universal-design-system/issues/703)) ([50e474d](https://github.com/telus/universal-design-system/commit/50e474d3d7f1988f5971a10be8416c8ac510626f))
16
+ - **base:** implementing base Skeleton component ([#770](https://github.com/telus/universal-design-system/issues/770)) ([1138f08](https://github.com/telus/universal-design-system/commit/1138f08885f4cf67fc0fb7273758d20cc0a989c1)), closes [#296](https://github.com/telus/universal-design-system/issues/296) [#296](https://github.com/telus/universal-design-system/issues/296) [#296](https://github.com/telus/universal-design-system/issues/296) [#296](https://github.com/telus/universal-design-system/issues/296) [#296](https://github.com/telus/universal-design-system/issues/296) [#296](https://github.com/telus/universal-design-system/issues/296) [#296](https://github.com/telus/universal-design-system/issues/296)
17
+
18
+ ### Bug Fixes
19
+
20
+ - **base:** fix button text alignment ([#794](https://github.com/telus/universal-design-system/issues/794)) ([9671087](https://github.com/telus/universal-design-system/commit/9671087477eb45b0d3c872b47f1d24cdd43a727f))
21
+ - **base:** restore missing Allium link styles ([#789](https://github.com/telus/universal-design-system/issues/789)) ([73664bd](https://github.com/telus/universal-design-system/commit/73664bd5ac0a1b60ad1ec3514a927030b7c5c002))
22
+ - **base:** update ButtonGroupItem theme approach ([#784](https://github.com/telus/universal-design-system/issues/784)) ([ce3744b](https://github.com/telus/universal-design-system/commit/ce3744b85ea6ce634a30cca73b3484640b36ffec))
23
+
5
24
  ### [0.0.2-prerelease.4](https://github.com/telus/universal-design-system/compare/@telus-uds/theme-allium/v0.0.2-prerelease.3...@telus-uds/theme-allium/v0.0.2-prerelease.4) (2021-11-08)
6
25
 
7
26
  ### Features
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+
8
+ var _paletteAllium = _interopRequireDefault(require("@telus-uds/palette-allium"));
9
+
10
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
11
+
12
+ var _default = {
13
+ appearances: {
14
+ size: {
15
+ values: ['large'],
16
+ description: 'used for full-screen spinners',
17
+ type: 'variant'
18
+ }
19
+ },
20
+ tokens: {
21
+ size: _paletteAllium.default.size.size20,
22
+ thickness: _paletteAllium.default.border.border2,
23
+ color: _paletteAllium.default.color.greenAccessible
24
+ },
25
+ rules: [{
26
+ if: {
27
+ size: 'large'
28
+ },
29
+ tokens: {
30
+ thickness: _paletteAllium.default.border.border4,
31
+ size: _paletteAllium.default.size.size40
32
+ }
33
+ }]
34
+ };
35
+ exports.default = _default;
@@ -0,0 +1,89 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+
8
+ var _paletteAllium = _interopRequireDefault(require("@telus-uds/palette-allium"));
9
+
10
+ var _rn = _interopRequireDefault(require("@telus-uds/system-themes/src/tokens/rn"));
11
+
12
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
13
+
14
+ var _default = {
15
+ appearances: {
16
+ background: {
17
+ description: 'Background colour of box. Transparent if not specified.',
18
+ values: ['light', 'lightest', 'dark', 'darkest', 'critical', 'danger', 'warning', 'positive', 'brand']
19
+ }
20
+ },
21
+ tokens: {
22
+ backgroundColor: _rn.default.color.none
23
+ },
24
+ rules: [{
25
+ if: {
26
+ background: 'lightest'
27
+ },
28
+ tokens: {
29
+ backgroundColor: _paletteAllium.default.color.white
30
+ }
31
+ }, {
32
+ if: {
33
+ background: 'light'
34
+ },
35
+ tokens: {
36
+ backgroundColor: _paletteAllium.default.color.greyAthens
37
+ }
38
+ }, {
39
+ if: {
40
+ background: 'dark'
41
+ },
42
+ tokens: {
43
+ backgroundColor: _paletteAllium.default.color.greyCharcoal
44
+ }
45
+ }, {
46
+ if: {
47
+ background: 'darkest'
48
+ },
49
+ tokens: {
50
+ backgroundColor: _paletteAllium.default.color.greyThunder
51
+ }
52
+ }, {
53
+ if: {
54
+ background: 'critical'
55
+ },
56
+ tokens: {
57
+ backgroundColor: _paletteAllium.default.color.redDark
58
+ }
59
+ }, {
60
+ if: {
61
+ background: 'danger'
62
+ },
63
+ tokens: {
64
+ backgroundColor: _paletteAllium.default.color.redLight
65
+ }
66
+ }, {
67
+ if: {
68
+ background: 'warning'
69
+ },
70
+ tokens: {
71
+ backgroundColor: _paletteAllium.default.color.amberLight
72
+ }
73
+ }, {
74
+ if: {
75
+ background: 'positive'
76
+ },
77
+ tokens: {
78
+ backgroundColor: _paletteAllium.default.color.greenPanache
79
+ }
80
+ }, {
81
+ if: {
82
+ background: 'brand'
83
+ },
84
+ tokens: {
85
+ backgroundColor: _paletteAllium.default.color.purpleTelus
86
+ }
87
+ }]
88
+ };
89
+ exports.default = _default;
@@ -0,0 +1,252 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+
8
+ var _paletteAllium = _interopRequireDefault(require("@telus-uds/palette-allium"));
9
+
10
+ var _rn = _interopRequireDefault(require("@telus-uds/system-themes/src/tokens/rn"));
11
+
12
+ var _schema = require("@telus-uds/system-themes/schema");
13
+
14
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
15
+
16
+ var _default = {
17
+ appearances: {
18
+ priority: {
19
+ description: 'Indicates the importance of the call-to-action. Limit the amount of high priority buttons on a page to proritize meaningful user flows. Low priority styles are applied by default.',
20
+ values: ['high'],
21
+ type: 'variant'
22
+ },
23
+ danger: {
24
+ description: 'Indicates a user action that is destructive and will result in loss of information or cause significant monetary charges. Limit the use of the danger button whenever possible.',
25
+ values: [true],
26
+ type: 'variant'
27
+ },
28
+ inverse: {
29
+ description: 'Use inverse buttons on darker backgrounds. High and low priority buttons, and danger buttons, are available in inverse.',
30
+ values: [true],
31
+ type: 'variant'
32
+ },
33
+ size: {
34
+ values: ['small'],
35
+ type: 'variant'
36
+ },
37
+ width: {
38
+ description: 'Available in default or full-width. Default-width expands based on content Full-width expands to width of the container.',
39
+ values: ['full'],
40
+ type: 'variant'
41
+ },
42
+ hover: _schema.appearances.Button.hover,
43
+ focus: _schema.appearances.Button.focus,
44
+ pressed: _schema.appearances.Button.pressed,
45
+ inactive: _schema.appearances.Button.inactive
46
+ },
47
+ tokens: {
48
+ borderColor: _paletteAllium.default.color.greenAccessible,
49
+ borderWidth: _paletteAllium.default.border.border1,
50
+ borderRadius: _paletteAllium.default.radius.pill32,
51
+ shadow: _rn.default.shadow.none,
52
+ fontSize: _paletteAllium.default.fontSize.size16,
53
+ color: _paletteAllium.default.color.greenAccessible,
54
+ lineHeight: _paletteAllium.default.lineHeight.ratio3to2,
55
+ textAlign: _rn.default.flexJustifyContent.center,
56
+ alignSelf: _rn.default.flexAlign.flexStart,
57
+ // TODO: replace these with font for theme building
58
+ fontName: Object.keys(_paletteAllium.default.font)[0],
59
+ fontWeight: '700',
60
+ // font: palette.font.HelveticaNow['700'],
61
+ backgroundColor: _paletteAllium.default.color.white,
62
+ opacity: _rn.default.opacity.opaque,
63
+ paddingLeft: _paletteAllium.default.size.size32,
64
+ paddingRight: _paletteAllium.default.size.size32,
65
+ paddingTop: _paletteAllium.default.size.size12,
66
+ paddingBottom: _paletteAllium.default.size.size12,
67
+ width: _rn.default.size.none,
68
+ minWidth: _paletteAllium.default.size.size144,
69
+ outerBorderColor: _paletteAllium.default.color.transparent,
70
+ outerBorderWidth: _paletteAllium.default.border.border2,
71
+ outerBorderGap: _paletteAllium.default.border.border2,
72
+ outerBorderRadius: _paletteAllium.default.radius.pill32,
73
+ outerBackgroundColor: _paletteAllium.default.color.transparent
74
+ },
75
+ rules: [{
76
+ if: {
77
+ hover: true
78
+ },
79
+ tokens: {
80
+ borderWidth: _paletteAllium.default.border.border3
81
+ }
82
+ }, {
83
+ if: {
84
+ priority: 'high'
85
+ },
86
+ tokens: {
87
+ backgroundColor: _paletteAllium.default.color.greenAccessible,
88
+ color: _paletteAllium.default.color.white,
89
+ borderWidth: _paletteAllium.default.border.none
90
+ }
91
+ }, {
92
+ if: {
93
+ priority: 'high',
94
+ hover: true
95
+ },
96
+ tokens: {
97
+ backgroundColor: _paletteAllium.default.color.greenSanFelix
98
+ }
99
+ }, // pressed and focus apply the same tokens to both high and low priority
100
+ {
101
+ if: {
102
+ pressed: true
103
+ },
104
+ tokens: {
105
+ borderWidth: _rn.default.size.zero,
106
+ backgroundColor: _paletteAllium.default.color.greenDarkFern,
107
+ color: _paletteAllium.default.color.white
108
+ }
109
+ }, {
110
+ if: {
111
+ focus: true
112
+ },
113
+ tokens: {
114
+ outerBorderColor: _paletteAllium.default.color.greenAccessible
115
+ }
116
+ }, {
117
+ if: {
118
+ focus: true,
119
+ pressed: true
120
+ },
121
+ tokens: {
122
+ outerBorderColor: _paletteAllium.default.color.greenDarkFern
123
+ }
124
+ }, {
125
+ if: {
126
+ inverse: true
127
+ },
128
+ tokens: {
129
+ backgroundColor: _rn.default.color.none,
130
+ borderColor: _paletteAllium.default.color.white,
131
+ color: _paletteAllium.default.color.white
132
+ }
133
+ }, {
134
+ if: {
135
+ inverse: true,
136
+ priority: 'high'
137
+ },
138
+ tokens: {
139
+ backgroundColor: _paletteAllium.default.color.white,
140
+ color: _paletteAllium.default.color.greyCharcoal
141
+ }
142
+ }, {
143
+ if: {
144
+ inverse: true,
145
+ priority: 'high',
146
+ hover: true
147
+ },
148
+ tokens: {
149
+ backgroundColor: _paletteAllium.default.color.light80
150
+ }
151
+ }, {
152
+ if: {
153
+ inverse: true,
154
+ pressed: true
155
+ },
156
+ tokens: {
157
+ color: _paletteAllium.default.color.greyCharcoal,
158
+ backgroundColor: _paletteAllium.default.color.light60
159
+ }
160
+ }, {
161
+ if: {
162
+ inverse: true,
163
+ focus: true
164
+ },
165
+ tokens: {
166
+ outerBorderColor: _paletteAllium.default.color.white
167
+ }
168
+ }, {
169
+ if: {
170
+ danger: true,
171
+ priority: null
172
+ },
173
+ tokens: {
174
+ color: _paletteAllium.default.color.red,
175
+ borderColor: _paletteAllium.default.color.red
176
+ }
177
+ }, {
178
+ if: {
179
+ danger: true,
180
+ priority: null,
181
+ inverse: true
182
+ },
183
+ tokens: {
184
+ backgroundColor: _paletteAllium.default.color.white
185
+ }
186
+ }, {
187
+ if: {
188
+ danger: true,
189
+ priority: null,
190
+ focus: true
191
+ },
192
+ tokens: {
193
+ outerBorderColor: _paletteAllium.default.color.red
194
+ }
195
+ }, {
196
+ if: {
197
+ danger: true,
198
+ priority: null,
199
+ pressed: true
200
+ },
201
+ tokens: {
202
+ backgroundColor: _paletteAllium.default.color.redDark,
203
+ color: _paletteAllium.default.color.white
204
+ }
205
+ }, {
206
+ if: {
207
+ danger: true,
208
+ priority: null,
209
+ pressed: true,
210
+ focus: true
211
+ },
212
+ tokens: {
213
+ outerBorderColor: _paletteAllium.default.color.redDark
214
+ }
215
+ }, {
216
+ if: {
217
+ width: 'full'
218
+ },
219
+ tokens: {
220
+ width: _rn.default.size.full
221
+ }
222
+ }, {
223
+ if: {
224
+ size: 'small'
225
+ },
226
+ tokens: {
227
+ paddingTop: _paletteAllium.default.size.size4,
228
+ paddingBottom: _paletteAllium.default.size.size4,
229
+ minWidth: _rn.default.size.zero
230
+ }
231
+ }, {
232
+ description: 'Buttons should not be disabled or set as inactive. Use inline (on blur) error messaging to provide feedback when the form is invalid. In exceptional instances where disabled buttons are needed, it must be clear to the user why the button is disabled and what they need to do to enable it.',
233
+ if: {
234
+ inactive: true
235
+ },
236
+ tokens: {
237
+ backgroundColor: _paletteAllium.default.color.greyCloud,
238
+ color: _paletteAllium.default.color.white,
239
+ borderWidth: _rn.default.size.zero
240
+ }
241
+ }, {
242
+ if: {
243
+ inactive: true,
244
+ inverse: true
245
+ },
246
+ tokens: {
247
+ backgroundColor: _paletteAllium.default.color.light60,
248
+ color: _paletteAllium.default.color.greyCharcoal
249
+ }
250
+ }]
251
+ };
252
+ exports.default = _default;
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+
8
+ var _rn = _interopRequireDefault(require("@telus-uds/system-themes/src/tokens/rn"));
9
+
10
+ var _schema = require("@telus-uds/system-themes/schema");
11
+
12
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
13
+
14
+ var _default = {
15
+ appearances: {
16
+ viewport: _schema.appearances.system.viewport
17
+ },
18
+ tokens: {
19
+ space: _rn.default.integer[1],
20
+ direction: _rn.default.direction.row,
21
+ alignItems: _rn.default.flexAlign.center,
22
+ justifyContent: _rn.default.flexJustifyContent.flexStart,
23
+ flexGrow: _rn.default.integer[0]
24
+ },
25
+ rules: [{
26
+ if: {
27
+ viewport: ['lg', 'xl']
28
+ },
29
+ tokens: {
30
+ space: _rn.default.integer[3]
31
+ }
32
+ }]
33
+ };
34
+ exports.default = _default;
@@ -0,0 +1,108 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+
8
+ var _paletteAllium = _interopRequireDefault(require("@telus-uds/palette-allium"));
9
+
10
+ var _rn = _interopRequireDefault(require("@telus-uds/system-themes/src/tokens/rn"));
11
+
12
+ var _schema = require("@telus-uds/system-themes/schema");
13
+
14
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
15
+
16
+ var _default = {
17
+ appearances: {
18
+ hover: _schema.appearances.ButtonGroupItem.hover,
19
+ focus: _schema.appearances.ButtonGroupItem.focus,
20
+ pressed: _schema.appearances.ButtonGroupItem.pressed,
21
+ selected: _schema.appearances.ButtonGroupItem.selected,
22
+ inactive: _schema.appearances.ButtonGroupItem.inactive
23
+ },
24
+ tokens: {
25
+ borderColor: _paletteAllium.default.color.greyCloud,
26
+ borderWidth: _paletteAllium.default.border.border1,
27
+ borderRadius: _paletteAllium.default.radius.pill32,
28
+ shadow: _rn.default.shadow.none,
29
+ fontSize: _paletteAllium.default.fontSize.size14,
30
+ color: _paletteAllium.default.color.greyShuttle,
31
+ lineHeight: _paletteAllium.default.lineHeight.ratio3to2,
32
+ textAlign: _rn.default.flexJustifyContent.center,
33
+ alignSelf: _rn.default.flexAlign.flexStart,
34
+ // TODO: replace with font token
35
+ fontName: Object.keys(_paletteAllium.default.font)[0],
36
+ fontWeight: '700',
37
+ // font: palette.font.HelveticaNow['700'],
38
+ backgroundColor: _paletteAllium.default.color.white,
39
+ opacity: _rn.default.opacity.opaque,
40
+ paddingLeft: _paletteAllium.default.size.size16,
41
+ paddingRight: _paletteAllium.default.size.size16,
42
+ paddingTop: _paletteAllium.default.size.size8,
43
+ paddingBottom: _paletteAllium.default.size.size8,
44
+ width: _rn.default.size.none,
45
+ minWidth: _rn.default.size.zero,
46
+ outerBorderColor: _paletteAllium.default.color.transparent,
47
+ outerBorderWidth: _paletteAllium.default.border.border2,
48
+ outerBorderGap: _paletteAllium.default.border.border2,
49
+ outerBorderRadius: _paletteAllium.default.radius.pill32,
50
+ outerBackgroundColor: _paletteAllium.default.color.transparent
51
+ },
52
+ rules: [{
53
+ if: {
54
+ pressed: true
55
+ },
56
+ tokens: {
57
+ borderWidth: _paletteAllium.default.border.none,
58
+ backgroundColor: _paletteAllium.default.color.greyShuttle,
59
+ color: _paletteAllium.default.color.white
60
+ }
61
+ }, {
62
+ if: {
63
+ focus: true
64
+ },
65
+ tokens: {
66
+ borderColor: _paletteAllium.default.color.purpleTelus,
67
+ borderWidth: _paletteAllium.default.border.border3,
68
+ color: _paletteAllium.default.color.greyCharcoal,
69
+ outerBorderColor: _paletteAllium.default.color.transparent
70
+ }
71
+ }, {
72
+ if: {
73
+ hover: true
74
+ },
75
+ tokens: {
76
+ borderWidth: _paletteAllium.default.border.border3
77
+ }
78
+ }, {
79
+ if: {
80
+ selected: true
81
+ },
82
+ tokens: {
83
+ borderWidth: _paletteAllium.default.border.none,
84
+ backgroundColor: _paletteAllium.default.color.purpleTelus,
85
+ color: _paletteAllium.default.color.white
86
+ }
87
+ }, {
88
+ if: {
89
+ focus: true,
90
+ pressed: true
91
+ },
92
+ tokens: {
93
+ borderWidth: _paletteAllium.default.border.none,
94
+ backgroundColor: _paletteAllium.default.color.purpleTelus,
95
+ color: _paletteAllium.default.color.white
96
+ }
97
+ }, {
98
+ if: {
99
+ inactive: true
100
+ },
101
+ tokens: {
102
+ backgroundColor: _paletteAllium.default.color.greyCloud,
103
+ color: _paletteAllium.default.color.white,
104
+ borderWidth: _rn.default.border.zero
105
+ }
106
+ }]
107
+ };
108
+ exports.default = _default;
@@ -0,0 +1,120 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+
8
+ var _paletteAllium = _interopRequireDefault(require("@telus-uds/palette-allium"));
9
+
10
+ var _rn = _interopRequireDefault(require("@telus-uds/system-themes/src/tokens/rn"));
11
+
12
+ var _schema = require("@telus-uds/system-themes/schema");
13
+
14
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
15
+
16
+ var _default = {
17
+ appearances: {
18
+ background: {
19
+ values: ['alternative'],
20
+ type: 'variant'
21
+ },
22
+ padding: {
23
+ values: ['narrow', 'intermediate', 'compact', 'custom'],
24
+ type: 'variant'
25
+ },
26
+ viewport: _schema.appearances.system.viewport
27
+ },
28
+ tokens: {
29
+ backgroundColor: _paletteAllium.default.color.white,
30
+ borderColor: _paletteAllium.default.color.greyMystic,
31
+ borderRadius: _paletteAllium.default.radius.radius6,
32
+ borderWidth: _paletteAllium.default.border.border1,
33
+ paddingBottom: _paletteAllium.default.size.size32,
34
+ paddingLeft: _paletteAllium.default.size.size24,
35
+ paddingRight: _paletteAllium.default.size.size24,
36
+ paddingTop: _paletteAllium.default.size.size32,
37
+ shadow: _rn.default.shadow.none
38
+ },
39
+ rules: [{
40
+ if: {
41
+ background: 'alternative'
42
+ },
43
+ tokens: {
44
+ backgroundColor: _paletteAllium.default.color.greyAthens
45
+ }
46
+ }, {
47
+ if: {
48
+ viewport: ['md', 'lg', 'xl']
49
+ },
50
+ tokens: {
51
+ paddingBottom: _paletteAllium.default.size.size48,
52
+ paddingLeft: _paletteAllium.default.size.size32,
53
+ paddingRight: _paletteAllium.default.size.size32,
54
+ paddingTop: _paletteAllium.default.size.size48
55
+ }
56
+ }, {
57
+ if: {
58
+ padding: 'narrow'
59
+ },
60
+ tokens: {
61
+ paddingBottom: _paletteAllium.default.size.size24,
62
+ paddingLeft: _paletteAllium.default.size.size16,
63
+ paddingRight: _paletteAllium.default.size.size16,
64
+ paddingTop: _paletteAllium.default.size.size24
65
+ }
66
+ }, {
67
+ if: {
68
+ padding: 'narrow',
69
+ viewport: ['md', 'lg', 'xl']
70
+ },
71
+ tokens: {
72
+ paddingBottom: _paletteAllium.default.size.size32,
73
+ paddingLeft: _paletteAllium.default.size.size16,
74
+ paddingRight: _paletteAllium.default.size.size16,
75
+ paddingTop: _paletteAllium.default.size.size32
76
+ }
77
+ }, {
78
+ if: {
79
+ padding: 'intermediate'
80
+ },
81
+ tokens: {
82
+ paddingBottom: _paletteAllium.default.size.size24,
83
+ paddingLeft: _paletteAllium.default.size.size24,
84
+ paddingRight: _paletteAllium.default.size.size24,
85
+ paddingTop: _paletteAllium.default.size.size24
86
+ }
87
+ }, {
88
+ if: {
89
+ padding: 'intermediate',
90
+ viewport: ['md', 'lg', 'xl']
91
+ },
92
+ tokens: {
93
+ paddingBottom: _paletteAllium.default.size.size32,
94
+ paddingLeft: _paletteAllium.default.size.size32,
95
+ paddingRight: _paletteAllium.default.size.size32,
96
+ paddingTop: _paletteAllium.default.size.size32
97
+ }
98
+ }, {
99
+ if: {
100
+ padding: 'compact'
101
+ },
102
+ tokens: {
103
+ paddingBottom: _paletteAllium.default.size.size16,
104
+ paddingLeft: _paletteAllium.default.size.size16,
105
+ paddingRight: _paletteAllium.default.size.size16,
106
+ paddingTop: _paletteAllium.default.size.size16
107
+ }
108
+ }, {
109
+ if: {
110
+ padding: 'custom'
111
+ },
112
+ tokens: {
113
+ paddingBottom: _paletteAllium.default.size.size0,
114
+ paddingLeft: _paletteAllium.default.size.size0,
115
+ paddingRight: _paletteAllium.default.size.size0,
116
+ paddingTop: _paletteAllium.default.size.size0
117
+ }
118
+ }]
119
+ };
120
+ exports.default = _default;