@telus-uds/components-base 1.8.0 → 1.8.1

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 (129) hide show
  1. package/CHANGELOG.md +13 -2
  2. package/package.json +4 -4
  3. package/.storybook/main.js +0 -11
  4. package/.storybook/preview.js +0 -37
  5. package/.turbo/turbo-build.log +0 -8
  6. package/.turbo/turbo-lint.log +0 -3
  7. package/CHANGELOG.json +0 -311
  8. package/__fixtures__/Accessible.js +0 -34
  9. package/__fixtures__/Accessible.native.js +0 -34
  10. package/__fixtures__/Theme.jsx +0 -13
  11. package/__fixtures__/Viewport.jsx +0 -17
  12. package/__fixtures__/test-utils.js +0 -25
  13. package/__fixtures__/testTheme.js +0 -1830
  14. package/__tests__/A11yText/A11yText.test.jsx +0 -34
  15. package/__tests__/ActivityIndicator/ActivityIndicator.test.jsx +0 -68
  16. package/__tests__/ActivityIndicator/__snapshots__/ActivityIndicator.test.jsx.snap +0 -287
  17. package/__tests__/Box/Box.test.jsx +0 -111
  18. package/__tests__/Button/Button.test.jsx +0 -86
  19. package/__tests__/Button/ButtonBase.test.jsx +0 -82
  20. package/__tests__/Button/ButtonGroup.test.jsx +0 -347
  21. package/__tests__/Button/ButtonLink.test.jsx +0 -61
  22. package/__tests__/Card/Card.test.jsx +0 -63
  23. package/__tests__/Checkbox/Checkbox.test.jsx +0 -94
  24. package/__tests__/Checkbox/CheckboxGroup.test.jsx +0 -246
  25. package/__tests__/Divider/Divider.test.jsx +0 -91
  26. package/__tests__/ExpandCollapse/ExpandCollapse.test.jsx +0 -109
  27. package/__tests__/Feedback/Feedback.test.jsx +0 -42
  28. package/__tests__/FlexGrid/Col.test.jsx +0 -261
  29. package/__tests__/FlexGrid/FlexGrid.test.jsx +0 -136
  30. package/__tests__/FlexGrid/Row.test.jsx +0 -273
  31. package/__tests__/HorizontalScroll/HorizontalScroll.test.jsx +0 -165
  32. package/__tests__/Icon/Icon.test.jsx +0 -61
  33. package/__tests__/IconButton/IconButton.test.jsx +0 -52
  34. package/__tests__/InputLabel/InputLabel.test.jsx +0 -28
  35. package/__tests__/InputLabel/__snapshots__/InputLabel.test.jsx.snap +0 -3
  36. package/__tests__/InputSupports/InputSupports.test.jsx +0 -60
  37. package/__tests__/Link/Link.test.jsx +0 -63
  38. package/__tests__/Link/TextButton.test.jsx +0 -35
  39. package/__tests__/List/List.test.jsx +0 -60
  40. package/__tests__/Modal/Modal.test.jsx +0 -47
  41. package/__tests__/Notification/Notification.test.jsx +0 -20
  42. package/__tests__/Pagination/Pagination.test.jsx +0 -160
  43. package/__tests__/Progress/Progress.test.jsx +0 -79
  44. package/__tests__/Radio/Radio.test.jsx +0 -87
  45. package/__tests__/Radio/RadioGroup.test.jsx +0 -220
  46. package/__tests__/RadioCard/RadioCard.test.jsx +0 -87
  47. package/__tests__/RadioCard/RadioCardGroup.test.jsx +0 -246
  48. package/__tests__/Search/Search.test.jsx +0 -73
  49. package/__tests__/Select/Select.test.jsx +0 -94
  50. package/__tests__/SideNav/SideNav.test.jsx +0 -110
  51. package/__tests__/Skeleton/Skeleton.test.jsx +0 -61
  52. package/__tests__/Spacer/Spacer.test.jsx +0 -63
  53. package/__tests__/StackView/StackView.test.jsx +0 -216
  54. package/__tests__/StackView/StackWrap.test.jsx +0 -47
  55. package/__tests__/StackView/getStackedContent.test.jsx +0 -295
  56. package/__tests__/StepTracker/StepTracker.test.jsx +0 -94
  57. package/__tests__/Tabs/Tabs.test.jsx +0 -40
  58. package/__tests__/Tags/Tags.test.jsx +0 -327
  59. package/__tests__/TextInput/TextArea.test.jsx +0 -35
  60. package/__tests__/TextInput/TextInputBase.test.jsx +0 -125
  61. package/__tests__/ThemeProvider/ThemeProvider.test.jsx +0 -77
  62. package/__tests__/ThemeProvider/useThemeTokens.test.jsx +0 -514
  63. package/__tests__/ThemeProvider/utils/theme-tokens.test.js +0 -41
  64. package/__tests__/ToggleSwitch/ToggleSwitch.test.jsx +0 -82
  65. package/__tests__/ToggleSwitch/ToggleSwitchGroup.test.jsx +0 -192
  66. package/__tests__/Tooltip/Tooltip.test.jsx +0 -65
  67. package/__tests__/Tooltip/getTooltipPosition.test.js +0 -79
  68. package/__tests__/Typography/typography.test.jsx +0 -90
  69. package/__tests__/utils/children.test.jsx +0 -128
  70. package/__tests__/utils/containUniqueFields.test.js +0 -25
  71. package/__tests__/utils/input.test.js +0 -375
  72. package/__tests__/utils/props.test.js +0 -36
  73. package/__tests__/utils/semantics.test.jsx +0 -34
  74. package/__tests__/utils/useCopy.test.js +0 -42
  75. package/__tests__/utils/useResponsiveProp.test.jsx +0 -202
  76. package/__tests__/utils/useSpacingScale.test.jsx +0 -273
  77. package/__tests__/utils/useUniqueId.test.js +0 -31
  78. package/babel.config.js +0 -35
  79. package/generate-component-docs.js +0 -72
  80. package/jest.config.js +0 -32
  81. package/stories/A11yText/A11yText.stories.jsx +0 -71
  82. package/stories/ActivityIndicator/ActivityIndicator.stories.jsx +0 -22
  83. package/stories/Box/Box.stories.jsx +0 -143
  84. package/stories/Button/Button.stories.jsx +0 -72
  85. package/stories/Button/ButtonGroup.stories.jsx +0 -81
  86. package/stories/Button/ButtonLink.stories.jsx +0 -30
  87. package/stories/Card/Card.stories.jsx +0 -62
  88. package/stories/Checkbox/Checkbox.stories.jsx +0 -94
  89. package/stories/Divider/Divider.stories.jsx +0 -68
  90. package/stories/ExpandCollapse/ExpandCollapse.stories.jsx +0 -112
  91. package/stories/Feedback/Feedback.stories.jsx +0 -96
  92. package/stories/FlexGrid/01 FlexGrid.stories.jsx +0 -54
  93. package/stories/FlexGrid/02 Row.stories.jsx +0 -41
  94. package/stories/FlexGrid/03 Col.stories.jsx +0 -141
  95. package/stories/Icon/Icon.stories.jsx +0 -79
  96. package/stories/IconButton/IconButton.stories.jsx +0 -50
  97. package/stories/InputLabel/InputLabel.stories.jsx +0 -39
  98. package/stories/Link/ChevronLink.stories.jsx +0 -48
  99. package/stories/Link/Link.stories.jsx +0 -90
  100. package/stories/Link/TextButton.stories.jsx +0 -79
  101. package/stories/List/List.stories.jsx +0 -117
  102. package/stories/Modal/Modal.stories.jsx +0 -54
  103. package/stories/Notification/Notification.stories.jsx +0 -82
  104. package/stories/Pagination/Pagination.stories.jsx +0 -64
  105. package/stories/Progress/Progress.stories.jsx +0 -93
  106. package/stories/Radio/Radio.stories.jsx +0 -100
  107. package/stories/RadioCard/RadioCard.stories.jsx +0 -98
  108. package/stories/Search/Search.stories.jsx +0 -66
  109. package/stories/Select/Select.stories.jsx +0 -55
  110. package/stories/SideNav/SideNav.stories.jsx +0 -42
  111. package/stories/SideNav/SideNavItem.stories.jsx +0 -9
  112. package/stories/SideNav/SideNavItemsGroup.stories.jsx +0 -17
  113. package/stories/Skeleton/Skeleton.stories.jsx +0 -36
  114. package/stories/Spacer/Spacer.stories.jsx +0 -38
  115. package/stories/StackView/StackView.stories.jsx +0 -75
  116. package/stories/StackView/StackWrap.stories.jsx +0 -64
  117. package/stories/StepTracker/StepTracker.stories.jsx +0 -71
  118. package/stories/Tabs/Tabs.stories.jsx +0 -98
  119. package/stories/Tags/Tags.stories.jsx +0 -69
  120. package/stories/TextInput/TextArea.stories.jsx +0 -101
  121. package/stories/TextInput/TextInput.stories.jsx +0 -141
  122. package/stories/ToggleSwitch/ToggleSwitch.stories.jsx +0 -64
  123. package/stories/ToggleSwitch/ToggleSwitchGroup.stories.jsx +0 -81
  124. package/stories/Tooltip/Tooltip.stories.jsx +0 -81
  125. package/stories/TooltipButton/TooltipButton.stories.jsx +0 -11
  126. package/stories/Typography/Typography.stories.jsx +0 -49
  127. package/stories/platform-supports.jsx +0 -32
  128. package/stories/platform-supports.native.jsx +0 -3
  129. package/stories/supports.jsx +0 -236
@@ -1,1830 +0,0 @@
1
- import { appearances } from '@telus-uds/system-theme-tokens'
2
- import systemThemeTokensPackage from '@telus-uds/system-theme-tokens/package.json'
3
-
4
- // This is a dev-only file so we don't need to make @telus-uds/palette-allium a dependency.
5
- /* eslint-disable-next-line import/no-extraneous-dependencies */
6
- import {
7
- ChevronLeft,
8
- ChevronRight,
9
- Checkmark,
10
- Close,
11
- Question,
12
- SearchBold,
13
- Times
14
- } from '@telus-uds/palette-allium/build/rn/icons'
15
-
16
- const transparent = 'rgba(0, 0, 0, 0)'
17
-
18
- export default {
19
- metadata: {
20
- name: 'test',
21
- themeTokensVersion: systemThemeTokensPackage.version
22
- },
23
- components: {
24
- spacingScale: {
25
- tokens: {
26
- size: 36
27
- },
28
- rules: [
29
- { if: { space: 5 }, tokens: { size: 32 } },
30
- { if: { space: 4 }, tokens: { size: 24 } },
31
- { if: { space: 3 }, tokens: { size: 16 } },
32
- { if: { space: 2 }, tokens: { size: 8 } },
33
- { if: { space: 1 }, tokens: { size: 4 } },
34
-
35
- { if: { compact: true }, tokens: { size: 12 } },
36
- { if: { compact: true, space: 5 }, tokens: { size: 10 } },
37
- { if: { compact: true, space: 4 }, tokens: { size: 8 } },
38
- { if: { compact: true, space: 3 }, tokens: { size: 6 } },
39
- { if: { compact: true, space: 2 }, tokens: { size: 4 } },
40
- { if: { compact: true, space: 1 }, tokens: { size: 2 } },
41
-
42
- { if: { responsive: true }, tokens: { size: 6 } },
43
- { if: { responsive: true, space: 5 }, tokens: { size: 5 } },
44
- { if: { responsive: true, space: 4 }, tokens: { size: 4 } },
45
- { if: { responsive: true, space: 3 }, tokens: { size: 3 } },
46
- { if: { responsive: true, space: 2 }, tokens: { size: 2 } },
47
- { if: { responsive: true, space: 1 }, tokens: { size: 1 } },
48
- { if: { responsive: true, viewport: ['sm', 'md'] }, tokens: { size: 8 } },
49
- { if: { responsive: true, viewport: ['sm', 'md'], space: 5 }, tokens: { size: 7 } },
50
- { if: { responsive: true, viewport: ['sm', 'md'], space: 4 }, tokens: { size: 6 } },
51
- { if: { responsive: true, viewport: ['sm', 'md'], space: 3 }, tokens: { size: 5 } },
52
- { if: { responsive: true, viewport: ['sm', 'md'], space: 2 }, tokens: { size: 4 } },
53
- { if: { responsive: true, viewport: ['sm', 'md'], space: 1 }, tokens: { size: 3 } },
54
- { if: { responsive: true, viewport: ['lg', 'xl'] }, tokens: { size: 12 } },
55
- { if: { responsive: true, viewport: ['lg', 'xl'], space: 5 }, tokens: { size: 11 } },
56
- { if: { responsive: true, viewport: ['lg', 'xl'], space: 4 }, tokens: { size: 10 } },
57
- { if: { responsive: true, viewport: ['lg', 'xl'], space: 3 }, tokens: { size: 9 } },
58
- { if: { responsive: true, viewport: ['lg', 'xl'], space: 2 }, tokens: { size: 8 } },
59
- { if: { responsive: true, viewport: ['lg', 'xl'], space: 1 }, tokens: { size: 7 } },
60
-
61
- { if: { space: 0 }, tokens: { size: 0 } }
62
- ]
63
- },
64
- Box: {
65
- tokens: {},
66
- variants: {
67
- lightest: {
68
- backgroundColor: '#ffffff'
69
- },
70
- light: {
71
- backgroundColor: '#f4f4f7'
72
- },
73
- dark: {
74
- backgroundColor: '#414547'
75
- },
76
- darkest: {
77
- backgroundColor: '#2c2e30'
78
- },
79
- critical: {
80
- backgroundColor: '#c12335'
81
- },
82
- danger: {
83
- backgroundColor: '#fff6f8'
84
- },
85
- warning: {
86
- backgroundColor: '#000000'
87
- },
88
- positive: {
89
- backgroundColor: '#f4f9f2'
90
- },
91
- brand: {
92
- backgroundColor: '#4d80de'
93
- }
94
- },
95
- defaultVariant: ['lightest']
96
- },
97
- Button: {
98
- appearances: {
99
- full: {
100
- values: [true],
101
- type: 'variant'
102
- },
103
- solid: {
104
- values: [true],
105
- type: 'variant'
106
- },
107
- rounded: {
108
- values: [true],
109
- type: 'variant'
110
- },
111
- big: {
112
- values: [true],
113
- type: 'variant'
114
- },
115
- focus: appearances.Button.focus,
116
- hover: appearances.Button.hover,
117
- pressed: appearances.Button.pressed
118
- },
119
- tokens: {
120
- borderColor: '#0e6ac8',
121
- borderWidth: 2,
122
- borderRadius: 0,
123
- shadow: null,
124
-
125
- outerBorderColor: transparent,
126
- outerBorderWidth: 4,
127
- outerBorderGap: 2,
128
-
129
- fontSize: 16,
130
- color: '#0e6ac8',
131
- lineHeight: 1.5,
132
- fontWeight: '600',
133
- alignSelf: 'flex-start',
134
-
135
- backgroundColor: '#ffffff',
136
- opacity: 1,
137
- paddingLeft: 24,
138
- paddingRight: 24,
139
- paddingTop: 8,
140
- paddingBottom: 8,
141
-
142
- width: null
143
- },
144
- rules: [
145
- {
146
- if: { focus: true },
147
- tokens: {
148
- borderWidth: 4,
149
- outerBorderColor: '#0e6ac8',
150
- opacity: 0.5
151
- }
152
- },
153
- {
154
- if: { hover: true },
155
- tokens: {
156
- borderWidth: 6
157
- }
158
- },
159
- {
160
- if: { pressed: true },
161
- tokens: {
162
- borderWidth: 8
163
- }
164
- },
165
- {
166
- if: { selected: true },
167
- tokens: { backgroundColor: '#0e6ac8', color: '#ffffff', opacity: 1 }
168
- },
169
- {
170
- if: { full: true },
171
- tokens: {
172
- width: '100%',
173
- outerBorderColor: '#0e6ac855'
174
- }
175
- },
176
- {
177
- if: { solid: true },
178
- tokens: {
179
- borderWidth: 0,
180
- backgroundColor: '#0e6ac8',
181
- outerBorderColor: '#0e6ac855',
182
- color: '#ffffff',
183
- width: '80%',
184
- shadow: {
185
- color: 'rgba(0,0,0,0.2)',
186
- offsetX: 1,
187
- offsetY: 5,
188
- spread: 4,
189
- blur: 2,
190
- inset: false
191
- }
192
- }
193
- },
194
- {
195
- if: { solid: true, focus: true },
196
- tokens: {
197
- opacity: 0.8,
198
- shadow: {
199
- color: 'rgba(0,0,0,0.2)',
200
- offsetX: 1,
201
- offsetY: 3,
202
- spread: 3,
203
- blur: 3,
204
- inset: false
205
- }
206
- }
207
- },
208
- {
209
- if: { solid: true, hover: true },
210
- tokens: {
211
- opacity: 0.6
212
- }
213
- },
214
- {
215
- if: { solid: true, pressed: true },
216
- tokens: {
217
- opacity: 0.4,
218
- shadow: null
219
- }
220
- },
221
- {
222
- if: { solid: true, selected: true },
223
- tokens: { outerBorderColor: '#0e6ac8' }
224
- },
225
- {
226
- if: { rounded: true },
227
- tokens: {
228
- borderRadius: 48
229
- }
230
- },
231
- {
232
- if: { rounded: true, focus: true },
233
- tokens: {
234
- borderRadius: 32
235
- }
236
- },
237
- {
238
- if: { rounded: true, hover: true },
239
- tokens: {
240
- borderRadius: 16
241
- }
242
- },
243
- {
244
- if: { rounded: true, pressed: true },
245
- tokens: {
246
- borderRadius: 0
247
- }
248
- },
249
- {
250
- if: { big: true },
251
- tokens: {
252
- paddingTop: 16,
253
- paddingBottom: 16,
254
- width: 300,
255
- height: 100,
256
- outerBorderGap: 16,
257
- outerBorderWidth: 8,
258
- borderWidth: 4
259
- }
260
- },
261
- {
262
- if: { big: true, focus: true },
263
- tokens: {
264
- borderWidth: 8
265
- }
266
- },
267
- {
268
- if: { big: true, hover: true },
269
- tokens: {
270
- borderWidth: 12
271
- }
272
- },
273
- {
274
- if: { big: true, pressed: true },
275
- tokens: {
276
- borderWidth: 16
277
- }
278
- },
279
- {
280
- if: { inactive: true },
281
- tokens: {
282
- color: '#0e6ac8',
283
- backgroundColor: '#0e6ac855',
284
- opacity: 0.6
285
- }
286
- }
287
- ]
288
- },
289
- ButtonGroup: {
290
- tokens: {
291
- space: 2,
292
- direction: 'row',
293
- alignItems: 'flex-start',
294
- justifyContent: 'flex-start',
295
- flexGrow: 1
296
- }
297
- },
298
- ButtonGroupItem: {
299
- appearances: {
300
- focus: appearances.ButtonGroupItem.focus,
301
- hover: appearances.ButtonGroupItem.hover,
302
- pressed: appearances.ButtonGroupItem.pressed,
303
- selected: appearances.ButtonGroupItem.selected
304
- },
305
- tokens: {
306
- borderColor: '#0e6ac8',
307
- borderWidth: 2,
308
- borderRadius: 0,
309
- shadow: null,
310
-
311
- outerBorderColor: transparent,
312
- outerBorderWidth: 4,
313
- outerBorderGap: 2,
314
-
315
- fontSize: 16,
316
- color: '#0e6ac8',
317
- lineHeight: 1.5,
318
- fontWeight: '600',
319
- alignSelf: 'flex-start',
320
-
321
- backgroundColor: '#ffffff',
322
- opacity: 1,
323
- paddingLeft: 24,
324
- paddingRight: 24,
325
- paddingTop: 8,
326
- paddingBottom: 8,
327
-
328
- width: null
329
- },
330
- rules: [
331
- {
332
- if: { focus: true },
333
- tokens: {
334
- borderWidth: 4,
335
- outerBorderColor: '#0e6ac8',
336
- opacity: 0.5
337
- }
338
- },
339
- {
340
- if: { hover: true },
341
- tokens: {
342
- borderWidth: 6
343
- }
344
- },
345
- {
346
- if: { pressed: true },
347
- tokens: {
348
- borderWidth: 8
349
- }
350
- },
351
- {
352
- if: { selected: true },
353
- tokens: { backgroundColor: '#0e6ac8', color: '#ffffff', opacity: 1 }
354
- }
355
- ]
356
- },
357
- Card: {
358
- appearances: {
359
- background: {
360
- values: ['alternative'],
361
- type: 'variant'
362
- },
363
- padding: {
364
- values: ['narrow', 'intermediate', 'compact', 'custom'],
365
- type: 'variant'
366
- },
367
- viewport: appearances.system.viewport
368
- },
369
- tokens: {
370
- flex: 1,
371
- backgroundColor: '#ffffff',
372
- borderColor: '#666666',
373
- borderRadius: 6,
374
- borderWidth: 1,
375
- paddingBottom: 32,
376
- paddingLeft: 24,
377
- paddingRight: 24,
378
- paddingTop: 32
379
- },
380
- rules: [
381
- {
382
- if: { background: 'alternative' },
383
- tokens: {
384
- backgroundColor: '#f4f4f7'
385
- }
386
- },
387
- {
388
- if: { viewport: ['md', 'lg', 'xl'] },
389
- tokens: {
390
- paddingBottom: 48,
391
- paddingLeft: 32,
392
- paddingRight: 32,
393
- paddingTop: 48
394
- }
395
- },
396
- {
397
- if: { padding: 'narrow' },
398
- tokens: {
399
- paddingBottom: 24,
400
- paddingLeft: 16,
401
- paddingRight: 16,
402
- paddingTop: 24
403
- }
404
- },
405
- {
406
- if: { padding: 'narrow', viewport: ['md', 'lg', 'xl'] },
407
- tokens: {
408
- paddingBottom: 32,
409
- paddingLeft: 16,
410
- paddingRight: 16,
411
- paddingTop: 32
412
- }
413
- },
414
- {
415
- if: { padding: 'intermediate' },
416
- tokens: {
417
- paddingBottom: 24,
418
- paddingLeft: 24,
419
- paddingRight: 24,
420
- paddingTop: 24
421
- }
422
- },
423
- {
424
- if: { padding: 'intermediate', viewport: ['md', 'lg', 'xl'] },
425
- tokens: {
426
- paddingBottom: 32,
427
- paddingLeft: 32,
428
- paddingRight: 32,
429
- paddingTop: 32
430
- }
431
- },
432
- {
433
- if: { padding: 'compact' },
434
- tokens: {
435
- paddingBottom: 16,
436
- paddingLeft: 16,
437
- paddingRight: 16,
438
- paddingTop: 16
439
- }
440
- },
441
- {
442
- if: { padding: 'custom' },
443
- tokens: {
444
- paddingBottom: 0,
445
- paddingLeft: 0,
446
- paddingRight: 0,
447
- paddingTop: 0
448
- }
449
- }
450
- ]
451
- },
452
- Checkbox: {
453
- appearances: {
454
- error: appearances.Checkbox.error,
455
- focus: appearances.Checkbox.focus,
456
- inactive: appearances.Checkbox.inactive
457
- },
458
- tokens: {
459
- containerBackgroundColor: transparent,
460
- feedbackMarginBottom: 0,
461
- feedbackMarginTop: 2,
462
- feedbackPosition: 'bottom',
463
- icon: Checkmark,
464
- iconBackgroundColor: '#7c53a5',
465
- iconColor: '#ffffff',
466
- iconSize: 18,
467
- inputBackgroundColor: '#ffffff',
468
- inputBorderColor: '#676e73',
469
- inputBorderRadius: 4,
470
- inputBorderWidth: 1,
471
- inputHeight: 20,
472
- inputOutlineColor: null,
473
- inputOutlineWidth: 0,
474
- inputShadow: {
475
- color: '#00000044',
476
- offsetY: 1,
477
- offsetX: 1,
478
- spread: 0,
479
- blur: 1,
480
- inset: false
481
- },
482
- inputWidth: 20,
483
- labelColor: '#414547',
484
- labelFontSize: 18,
485
- labelFontWeight: '500',
486
- labelLineHeight: 1.5,
487
- labelMarginLeft: 8
488
- },
489
- rules: [
490
- {
491
- if: { error: true },
492
- tokens: {
493
- inputBorderColor: '#e12339'
494
- }
495
- },
496
- {
497
- if: { focus: true },
498
- tokens: {
499
- inputBorderColor: '#7c53a5',
500
- inputBorderWidth: 3
501
- }
502
- },
503
- {
504
- if: { inactive: true },
505
- tokens: {
506
- inputBorderColor: 'transparent',
507
- inputBackgroundColor: '#e3e6e8',
508
- iconBackgroundColor: '#e3e6e8',
509
- iconColor: 'rgba(103, 110, 115, 1)',
510
- labelColor: '#676e73'
511
- }
512
- }
513
- ]
514
- },
515
- ChevronLink: {
516
- appearances: {},
517
- tokens: {
518
- leftIcon: ChevronLeft,
519
- rightIcon: ChevronRight,
520
- iconDisplace: 4
521
- }
522
- },
523
- CheckboxGroup: {
524
- appearances: {},
525
- tokens: {
526
- fieldSpace: 2,
527
- space: 2
528
- },
529
- rules: []
530
- },
531
- Divider: {
532
- appearances: {
533
- weight: {
534
- values: ['thick'],
535
- type: 'variant'
536
- }
537
- },
538
- tokens: {
539
- width: 1,
540
- color: '#e3e6e8'
541
- },
542
- rules: [
543
- {
544
- if: { weight: 'thick' },
545
- tokens: {
546
- width: 5
547
- }
548
- }
549
- ]
550
- },
551
- ExpandCollapse: {},
552
- ExpandCollapseControl: {},
553
- ExpandCollapsePanel: {},
554
- Icon: {
555
- appearances: {
556
- size: {
557
- values: ['small'],
558
- type: 'variant'
559
- },
560
- rank: {
561
- values: ['primary'],
562
- type: 'variant'
563
- }
564
- },
565
- tokens: {
566
- size: 24,
567
- color: '#414547'
568
- },
569
- rules: [
570
- {
571
- if: { size: 'small' },
572
- tokens: {
573
- size: 20
574
- }
575
- },
576
- {
577
- if: { rank: 'primary' },
578
- tokens: {
579
- color: '#4d80de'
580
- }
581
- }
582
- ]
583
- },
584
- ActivityIndicator: {
585
- appearances: {
586
- size: {
587
- values: ['large'],
588
- type: 'variant'
589
- }
590
- },
591
- tokens: {
592
- size: 24,
593
- color: '#0e6ac8',
594
- thickness: 2
595
- },
596
- rules: [
597
- {
598
- if: { size: 'large' },
599
- tokens: {
600
- size: 48,
601
- thickness: 4
602
- }
603
- }
604
- ]
605
- },
606
- IconButton: {
607
- appearances: {},
608
- tokens: {},
609
- rules: []
610
- },
611
- Progress: {
612
- appearances: {
613
- size: { values: ['mini'], type: 'variant' }
614
- },
615
- tokens: {
616
- backgroundColor: '#ffffff',
617
- borderWidth: 1,
618
- borderColor: '#f4f4f7',
619
- borderRadius: 12,
620
- height: 16
621
- },
622
- rules: [{ if: { size: 'mini' }, tokens: { height: 8 } }]
623
- },
624
- ProgressBar: {
625
- appearances: {
626
- inactive: appearances.ProgressBar.inactive,
627
- negative: { values: [true], type: 'variant' }
628
- },
629
- tokens: {
630
- backgroundColor: '#08804b',
631
- borderRadius: 12,
632
- outlineWidth: 1,
633
- outlineColor: '#2b8000'
634
- },
635
- rules: [
636
- {
637
- if: { inactive: true },
638
- tokens: {
639
- backgroundColor: '#b2b9bf',
640
- outlineColor: '#f4f4f7'
641
- }
642
- },
643
- {
644
- if: { negative: true },
645
- tokens: {
646
- backgroundColor: '#c12335',
647
- outlineColor: '#c12335'
648
- }
649
- }
650
- ]
651
- },
652
- RadioCardGroup: {
653
- appearances: {
654
- viewport: appearances.system.viewport
655
- },
656
- tokens: {
657
- direction: 'column',
658
- fieldSpace: 2,
659
- space: 2
660
- },
661
- rules: [
662
- {
663
- if: {
664
- viewport: ['lg', 'xl']
665
- },
666
- tokens: {
667
- direction: 'row'
668
- }
669
- }
670
- ]
671
- },
672
- RadioGroup: {
673
- appearances: {},
674
- tokens: {
675
- fieldSpace: 2,
676
- space: 2
677
- },
678
- rules: []
679
- },
680
- Modal: {
681
- appearances: {},
682
- tokens: {
683
- backdropColor: 'rgba(0,0,0,0.5)',
684
- backdropOpacity: 1,
685
- maxWidth: 600,
686
- containerPaddingLeft: 16,
687
- containerPaddingRight: 16,
688
- containerPaddingTop: 16,
689
- containerPaddingBottom: 16,
690
- backgroundColor: '#fff',
691
- borderRadius: 4,
692
- paddingLeft: 24,
693
- paddingRight: 24,
694
- paddingTop: 24,
695
- paddingBottom: 24,
696
-
697
- closeIcon: Close,
698
- closeIconSize: 24,
699
- closeIconColor: '#000'
700
- },
701
- rules: []
702
- },
703
- Search: {
704
- appearances: {
705
- focus: appearances.Search.focus,
706
- hover: appearances.Search.hover,
707
- inactive: appearances.Search.inactive
708
- },
709
- tokens: {
710
- borderRadius: 32,
711
- borderWidth: 1,
712
- borderColor: '#00000044',
713
- paddingTop: 6,
714
- paddingBottom: 6,
715
- paddingLeft: 16,
716
- paddingRight: 6,
717
- outerBorderWidth: 1,
718
- outerBorderColor: transparent,
719
- outerBorderRadius: 32,
720
- buttonsGap: 2,
721
- clearButtonIcon: Times,
722
- submitButtonIcon: SearchBold
723
- },
724
- rules: [
725
- {
726
- if: { focus: true },
727
- tokens: {
728
- outerBorderColor: '#debc06'
729
- }
730
- },
731
- {
732
- if: { hover: true },
733
- tokens: {
734
- outerBorderColor: '#6666cc'
735
- }
736
- }
737
- ]
738
- },
739
- SearchButton: {
740
- appearances: {},
741
- tokens: {},
742
- rules: []
743
- },
744
- Notification: {
745
- appearances: {},
746
- tokens: {
747
- dismissIcon: Close
748
- },
749
- rules: []
750
- },
751
- RadioCard: {
752
- appearances: {
753
- checked: appearances.Radio.checked,
754
- error: appearances.Radio.error,
755
- focus: appearances.Radio.focus,
756
- hover: appearances.Radio.hover,
757
- inactive: appearances.Radio.inactive
758
- },
759
- tokens: {
760
- // Taken from Allium theme snapshot
761
- flex: 1,
762
- backgroundColor: '#ffffff',
763
- borderColor: '#b2b9bf',
764
- borderRadius: 6,
765
- borderWidth: 1,
766
- color: '#2c2e30',
767
- contentSpace: 2,
768
- fontSize: 20,
769
- fontWeight: '500',
770
- letterSpacing: 0,
771
- lineHeight: 1.4,
772
- outerBorderColor: transparent,
773
- outerBorderGap: 0,
774
- outerBorderWidth: 0,
775
- paddingBottom: 16,
776
- paddingLeft: 10,
777
- paddingRight: 16,
778
- paddingTop: 16,
779
- radioCheckedBackgroundColor: '#7c53a5',
780
- radioCheckedSize: 12,
781
- radioInputBackgroundColor: '#ffffff',
782
- radioInputBorderColor: '#676e73',
783
- radioInputBorderWidth: 1,
784
- radioInputOutlineColor: transparent,
785
- radioInputOutlineWidth: 0,
786
- radioInputSize: 20,
787
- radioOuterBorderColor: transparent,
788
- radioOuterBorderGap: 0,
789
- radioOuterBorderWidth: 0,
790
- radioSpace: 2,
791
- minWidth: 288,
792
- shadow: null,
793
- textTransform: 'none'
794
- },
795
- rules: [
796
- {
797
- if: {
798
- viewport: ['lg', 'xl']
799
- },
800
- tokens: {
801
- fontSize: 24,
802
- lineHeight: 1.33333333333,
803
- paddingBottom: 24,
804
- paddingLeft: 16,
805
- paddingRight: 24,
806
- paddingTop: 16
807
- }
808
- },
809
- {
810
- if: {
811
- hover: true
812
- },
813
- tokens: {
814
- borderColor: '#676e73',
815
- outerBorderColor: '#e3e6e8',
816
- outerBorderWidth: 2,
817
- radioOuterBorderColor: '#e3e6e8',
818
- radioOuterBorderWidth: 2
819
- }
820
- },
821
- {
822
- description: 'Pressed state matches hover state plus light grey background',
823
- if: {
824
- pressed: true
825
- },
826
- tokens: {
827
- backgroundColor: '#f4f4f7',
828
- borderColor: '#676e73',
829
- outerBorderColor: '#e3e6e8',
830
- outerBorderWidth: 2
831
- }
832
- },
833
- {
834
- if: {
835
- focus: true
836
- },
837
- tokens: {
838
- radioIputBorderColor: '#7c53a5',
839
- radioInputBorderWidth: 3,
840
- outerBorderColor: '#676e73',
841
- outerBorderGap: 2,
842
- outerBorderWidth: 2
843
- }
844
- },
845
- {
846
- if: {
847
- inactive: true
848
- },
849
- tokens: {
850
- backgroundColor: '#f4f4f7',
851
- borderColor: 'transparent',
852
- radioInputBackgroundColor: '#e3e6e8',
853
- radioInputBorderColor: 'rgba(0, 0, 0, 0)',
854
- labelColor: '#676e73'
855
- }
856
- },
857
- {
858
- if: {
859
- error: true
860
- },
861
- tokens: {
862
- borderColor: '#e12339',
863
- color: '#e12339',
864
- radioInputBorderColor: '#e12339'
865
- }
866
- }
867
- ]
868
- },
869
- Tabs: {
870
- appearances: {},
871
- tokens: {
872
- buttonClearance: 20,
873
- gutter: 12,
874
- nextIcon: ChevronRight,
875
- previousIcon: ChevronLeft,
876
- borderBottomWidth: 1,
877
- borderBottomColor: '#ebefed',
878
- space: 1
879
- },
880
- rules: []
881
- },
882
- TabsItem: {
883
- appearances: {},
884
- tokens: {
885
- backgroundColor: transparent,
886
- borderColor: transparent,
887
- borderRadius: 0,
888
- borderWidth: 0,
889
- color: '#034045',
890
- fontName: '',
891
- fontScaleCap: 66,
892
- fontSize: 14,
893
- fontWeight: '700',
894
- highlightBarBorderRadius: 0,
895
- highlightBarBorderWidth: 0,
896
- highlightBarHeight: 0,
897
- highlightColor: transparent,
898
- highlightTriangleSize: 0,
899
- letterSpacing: 0,
900
- lineHeight: 1,
901
- maxWidth: 150,
902
- paddingHorizontal: 16,
903
- paddingVertical: 16,
904
- space: 0,
905
- textAlign: 'left',
906
- textTransform: 'uppercase'
907
- },
908
- rules: [
909
- {
910
- if: { hover: true },
911
- tokens: {
912
- highlightBarHeight: 2,
913
- highlightColor: '#81a0a2'
914
- }
915
- },
916
- {
917
- if: { focus: true },
918
- tokens: {
919
- borderColor: '#81a0a2',
920
- borderWidth: 1
921
- }
922
- },
923
- {
924
- if: { pressed: true },
925
- tokens: {
926
- backgroundColor: '#ebefed'
927
- }
928
- },
929
- {
930
- if: { selected: true },
931
- tokens: {
932
- highlightBarHeight: 2,
933
- highlightColor: '#034045',
934
- highlightTriangleSize: 8
935
- }
936
- }
937
- ]
938
- },
939
- TabsScrollButton: {
940
- appearances: {},
941
- tokens: {
942
- backgroundColor: '#ffffff',
943
- borderColor: '#81a0a2',
944
- borderRadius: 12,
945
- borderWidth: 1,
946
- iconColor: '#81a0a2',
947
- iconSize: 24,
948
- padding: 0,
949
- shadow: null
950
- },
951
- rules: []
952
- },
953
- Typography: {
954
- appearances: {
955
- weight: {
956
- values: ['light', 'medium', 'bold'],
957
- type: 'variant'
958
- },
959
- size: {
960
- values: [
961
- 'micro',
962
- 'small',
963
- 'large',
964
- 'h1',
965
- 'h2',
966
- 'h3',
967
- 'h4',
968
- 'h5',
969
- 'h6',
970
- 'display1',
971
- 'display2'
972
- ],
973
- type: 'variant'
974
- },
975
- colour: {
976
- values: ['secondary', 'tertiary'],
977
- type: 'variant'
978
- },
979
- inverse: {
980
- description: 'Styles the link white for use on dark backgrounds.',
981
- values: [true],
982
- type: 'variant'
983
- },
984
- viewport: appearances.system.viewport
985
- },
986
- tokens: {
987
- fontWeight: '400',
988
- fontSize: 16,
989
- color: '#2c2e30',
990
- lineHeight: 1.5,
991
- fontScaleCap: 64
992
- },
993
- rules: [
994
- {
995
- if: { inverse: true },
996
- tokens: {
997
- color: '#ffffff'
998
- }
999
- },
1000
- {
1001
- if: { colour: 'primary' },
1002
- tokens: {
1003
- color: '#2c2e30'
1004
- }
1005
- },
1006
- {
1007
- if: { colour: 'secondary' },
1008
- tokens: {
1009
- color: '#414547'
1010
- }
1011
- },
1012
- {
1013
- if: { weight: 'light' },
1014
- tokens: {
1015
- fontWeight: '300'
1016
- }
1017
- },
1018
- {
1019
- if: { weight: 'medium' },
1020
- tokens: {
1021
- fontWeight: '500'
1022
- }
1023
- },
1024
- {
1025
- if: { weight: 'bold' },
1026
- tokens: {
1027
- fontWeight: '700'
1028
- }
1029
- },
1030
- {
1031
- if: { size: 'large' },
1032
- tokens: {
1033
- fontSize: 20,
1034
- lineHeight: 1.6
1035
- }
1036
- },
1037
- {
1038
- if: { size: 'small' },
1039
- tokens: {
1040
- fontSize: 14,
1041
- lineHeight: 1.4
1042
- }
1043
- },
1044
- {
1045
- if: { size: 'micro' },
1046
- tokens: {
1047
- fontSize: 12,
1048
- fontWeight: '500',
1049
- lineHeight: 1.3
1050
- }
1051
- },
1052
- {
1053
- if: { size: 'display1' },
1054
- tokens: {
1055
- fontSize: 40,
1056
- fontWeight: '300',
1057
- lineHeight: 1.2
1058
- }
1059
- },
1060
- {
1061
- if: { size: 'display1', colour: 'primary' },
1062
- tokens: {
1063
- color: '#4d80de'
1064
- }
1065
- },
1066
- {
1067
- if: { size: 'display1', colour: 'secondary' },
1068
- tokens: {
1069
- color: '#2c2e30'
1070
- }
1071
- },
1072
- {
1073
- if: { size: 'display1', viewport: ['lg', 'xl'] },
1074
- tokens: {
1075
- fontSize: 64,
1076
- lineHeight: 1.1
1077
- }
1078
- },
1079
- {
1080
- if: { size: 'display2' },
1081
- tokens: {
1082
- fontSize: 40,
1083
- fontWeight: '300',
1084
- color: '#4d80de',
1085
- lineHeight: 1.2
1086
- }
1087
- },
1088
- {
1089
- if: { size: 'display2', colour: 'secondary' },
1090
- tokens: {
1091
- color: '#2c2e30'
1092
- }
1093
- },
1094
- {
1095
- if: { size: 'display2', viewport: ['lg', 'xl'] },
1096
- tokens: {
1097
- fontSize: 56,
1098
- lineHeight: 1.1
1099
- }
1100
- },
1101
- {
1102
- if: { size: 'h1' },
1103
- tokens: {
1104
- fontSize: 28,
1105
- lineHeight: 1.2,
1106
- color: '#4d80de'
1107
- }
1108
- },
1109
- {
1110
- if: { size: 'h1', colour: 'secondary' },
1111
- tokens: {
1112
- color: '#2c2e30'
1113
- }
1114
- },
1115
- {
1116
- if: { size: 'h1', viewport: ['lg', 'xl'] },
1117
- tokens: {
1118
- fontSize: 40,
1119
- lineHeight: 1.1
1120
- }
1121
- },
1122
- {
1123
- if: { size: 'h2' },
1124
- tokens: {
1125
- fontSize: 24,
1126
- color: '#4d80de',
1127
- fontWeight: '500',
1128
- lineHeight: 1.3
1129
- }
1130
- },
1131
- {
1132
- if: { size: 'h2', colour: 'secondary' },
1133
- tokens: {
1134
- color: '#2c2e30'
1135
- }
1136
- },
1137
- {
1138
- if: { size: 'h2', viewport: ['lg', 'xl'] },
1139
- tokens: {
1140
- fontSize: 28
1141
- }
1142
- },
1143
- {
1144
- if: { size: 'h3' },
1145
- tokens: {
1146
- fontSize: 20,
1147
- fontWeight: '500',
1148
- lineHeight: 1.4,
1149
- color: '#4d80de'
1150
- }
1151
- },
1152
- {
1153
- if: { size: 'h3', colour: 'secondary' },
1154
- tokens: {
1155
- color: '#2c2e30'
1156
- }
1157
- },
1158
- {
1159
- if: { size: 'h3', viewport: ['lg', 'xl'] },
1160
- tokens: {
1161
- fontSize: 24,
1162
- lineHeight: 1.3
1163
- }
1164
- },
1165
- {
1166
- if: { size: 'h4' },
1167
- tokens: {
1168
- fontSize: 16,
1169
- weight: '500',
1170
- lineHeight: 1.5
1171
- }
1172
- },
1173
- {
1174
- if: { size: 'h5' },
1175
- tokens: {
1176
- fontSize: 14,
1177
- fontWeight: '500',
1178
- lineHeight: 1.3
1179
- }
1180
- },
1181
- {
1182
- if: { size: 'h6' },
1183
- tokens: {
1184
- fontSize: 12,
1185
- fontWeight: '700',
1186
- lineHeight: 1.3
1187
- }
1188
- },
1189
- {
1190
- if: { size: 'h6', colour: 'tertiary' },
1191
- tokens: {
1192
- color: '#000000'
1193
- }
1194
- }
1195
- ]
1196
- },
1197
- Link: {
1198
- appearances: {
1199
- size: {
1200
- values: ['big'],
1201
- type: 'variant'
1202
- },
1203
- alternative: {
1204
- values: [true],
1205
- type: 'variant'
1206
- },
1207
- focus: {
1208
- values: [true],
1209
- type: 'state'
1210
- },
1211
- hover: {
1212
- values: [true],
1213
- type: 'state'
1214
- },
1215
- iconPosition: appearances.Link.iconPosition
1216
- },
1217
- tokens: {
1218
- color: '#0000ff',
1219
-
1220
- blockFontWeight: '400',
1221
- blockFontSize: 16,
1222
- blockLineHeight: 1.5,
1223
-
1224
- outerBorderColor: transparent,
1225
- outerBorderOutline: 'none',
1226
- outerBorderGap: 4,
1227
- outerBorderWidth: 4,
1228
-
1229
- textLine: 'underline',
1230
- textLineStyle: 'solid',
1231
-
1232
- iconSize: 18,
1233
- iconSpace: 1
1234
- },
1235
- rules: [
1236
- {
1237
- if: { size: 'big' },
1238
- tokens: {
1239
- blockFontSize: 28,
1240
- iconSize: 24
1241
- }
1242
- },
1243
- {
1244
- if: { focus: true },
1245
- tokens: {
1246
- outerBorderColor: '#eeee00'
1247
- }
1248
- },
1249
- {
1250
- if: { alternative: true },
1251
- tokens: {
1252
- color: '#ff0000',
1253
- textLine: 'none'
1254
- }
1255
- }
1256
- ]
1257
- },
1258
- Pagination: {
1259
- tokens: {
1260
- gap: 3
1261
- }
1262
- },
1263
- PaginationPageButton: {
1264
- tokens: {
1265
- paddingLeft: 4,
1266
- paddingRight: 4
1267
- },
1268
- rules: [
1269
- {
1270
- if: {
1271
- selected: true
1272
- },
1273
- tokens: {
1274
- fontWeight: '600',
1275
- textLine: 'underline'
1276
- }
1277
- },
1278
- {
1279
- if: {
1280
- hover: true
1281
- },
1282
- tokens: {
1283
- color: 'blue'
1284
- }
1285
- }
1286
- ]
1287
- },
1288
- PaginationSideButton: {
1289
- tokens: {
1290
- paddingLeft: 4,
1291
- paddingRight: 4
1292
- },
1293
- rules: [
1294
- {
1295
- if: {
1296
- hover: true
1297
- },
1298
- tokens: {
1299
- color: 'blue'
1300
- }
1301
- }
1302
- ]
1303
- },
1304
- Radio: {
1305
- appearances: {
1306
- checked: appearances.Radio.checked,
1307
- error: appearances.Radio.error,
1308
- focus: appearances.Radio.focus,
1309
- hover: appearances.Radio.hover,
1310
- inactive: appearances.Radio.inactive
1311
- },
1312
- tokens: {
1313
- checkedBackgroundColor: '#7c53a5',
1314
- checkedSize: 12,
1315
- containerBackgroundColor: '#ffffff',
1316
- containerBorderRadius: 12,
1317
- containerOpacity: 1,
1318
- containerPaddingBottom: 12,
1319
- containerPaddingLeft: 18,
1320
- containerPaddingRight: 18,
1321
- containerPaddingTop: 12,
1322
- containerShadow: null,
1323
- descriptionFontSize: 14,
1324
- descriptionLineHeight: 1.4,
1325
- descriptionMarginLeft: null,
1326
- inputBackgroundColor: '#ffffff',
1327
- inputBorderColor: '#676e73',
1328
- inputBorderWidth: 1,
1329
- inputOutlineColor: null,
1330
- inputOutlineWidth: 0,
1331
- inputSize: 20,
1332
- inputShadow: null,
1333
- outerBorderWidth: 0,
1334
- outerBorderColor: transparent,
1335
- outerBorderGap: 0,
1336
- labelColor: '#414547',
1337
- labelFontName: '',
1338
- labelFontSize: 18,
1339
- labelFontWeight: '500',
1340
- labelLineHeight: 1.5,
1341
- labelMarginLeft: 8
1342
- },
1343
- rules: [
1344
- {
1345
- if: { error: true },
1346
- tokens: {
1347
- inputBorderColor: '#e12339'
1348
- }
1349
- },
1350
- {
1351
- if: { focus: true },
1352
- tokens: {
1353
- inputBorderColor: '#7c53a5',
1354
- inputBorderWidth: 3
1355
- }
1356
- },
1357
- {
1358
- if: { inactive: true },
1359
- tokens: {
1360
- inputBorderColor: 'transparent',
1361
- inputBackgroundColor: '#e3e6e8',
1362
- labelColor: '#676e73'
1363
- }
1364
- }
1365
- ]
1366
- },
1367
- SideNav: {},
1368
- SideNavItem: {
1369
- appearances: {
1370
- type: appearances.SideNavItem.type
1371
- },
1372
- rules: [
1373
- {
1374
- if: {
1375
- type: 'child'
1376
- },
1377
- tokens: {
1378
- paddingLeft: 12
1379
- }
1380
- }
1381
- ]
1382
- },
1383
- SideNavItemsGroup: {},
1384
- StackView: {
1385
- tokens: {}
1386
- },
1387
- StepTracker: {
1388
- appearances: {},
1389
- tokens: {
1390
- completedIcon: null,
1391
- completedIconColor: '#ffffff',
1392
- completedIconSize: 12,
1393
- connectorColor: '#676e73',
1394
- connectorHeight: 1,
1395
- connectorMinWidth: 16,
1396
- connectorCompletedHeight: 3,
1397
- connectorCompletedColor: '#7c53a5',
1398
- containerPaddingBottom: 0,
1399
- containerPaddingLeft: 0,
1400
- containerPaddingRight: 0,
1401
- containerPaddingTop: 0,
1402
- knobBackgroundColor: transparent,
1403
- knobBorderWidth: 1,
1404
- knobBorderColor: '#676e73',
1405
- knobCompletedBackgroundColor: '#7c53a5',
1406
- knobCompletedBorderColor: '#7c53a5',
1407
- knobCompletedPaddingLeft: 1,
1408
- knobCompletedPaddingTop: 1,
1409
- knobCurrentBackgroundColor: transparent,
1410
- knobCurrentBorderColor: '#7c53a5',
1411
- knobCurrentBorderWidth: 2,
1412
- knobCurrentInnerColor: '#7c53a5',
1413
- knobCurrentInnerSize: 8,
1414
- knobCurrentPaddingLeft: 2,
1415
- knobCurrentPaddingTop: 2,
1416
- knobSize: 16,
1417
- labelColor: '#676e73',
1418
- labelCurrentColor: '#7c53a5',
1419
- labelCurrentFontWeight: '600',
1420
- labelDirection: 'column',
1421
- labelFontSize: 16,
1422
- labelFontWeight: '400',
1423
- labelFontName: '',
1424
- labelGap: 0,
1425
- labelLineHeight: 1.5,
1426
- labelMarginTop: 8,
1427
- labelPaddingLeft: 16,
1428
- labelPaddingRight: 16,
1429
- showStepLabel: false,
1430
- showStepName: true,
1431
- showStepTrackerLabel: true
1432
- },
1433
- rules: [
1434
- {
1435
- if: { viewport: ['lg', 'xl'] },
1436
- tokens: {
1437
- showStepLabel: true,
1438
- showStepTrackerLabel: false
1439
- }
1440
- }
1441
- ]
1442
- },
1443
- ToggleSwitch: {
1444
- appearances: {
1445
- focus: appearances.ToggleSwitch.focus,
1446
- hover: appearances.ToggleSwitch.hover,
1447
- pressed: appearances.ToggleSwitch.pressed,
1448
- inactive: appearances.ToggleSwitch.inactive,
1449
- selected: appearances.ToggleSwitch.selected
1450
- },
1451
- tokens: {
1452
- outerBorderColor: '#000000',
1453
- outerBorderWidth: 2,
1454
- outerBorderGap: 2,
1455
- outerBackgroundColor: '#333333',
1456
- borderColor: '#666666',
1457
- borderWidth: 2,
1458
- borderRadius: 6,
1459
- backgroundColor: '#999999',
1460
- opacity: 1,
1461
- paddingLeft: 2,
1462
- paddingRight: 2,
1463
- paddingTop: 2,
1464
- paddingBottom: 2,
1465
- alignSelf: 'flex-start',
1466
-
1467
- trackBorderWidth: 2,
1468
- trackBorderColor: '#bbbbbb',
1469
- trackBorderRadius: 4,
1470
- width: 48,
1471
- iconSize: 10,
1472
- switchSize: 16,
1473
- switchColor: '#dddddd',
1474
- switchBorderColor: '#ffffff',
1475
- switchBorderWidth: 2,
1476
- switchBorderRadius: 4,
1477
-
1478
- shadow: {
1479
- color: '#00000044',
1480
- offsetY: 2,
1481
- offsetX: 0,
1482
- spread: 6,
1483
- blur: 2,
1484
- inset: false
1485
- }
1486
- },
1487
- rules: [
1488
- {
1489
- if: { selected: true },
1490
- tokens: {
1491
- switchBorderColor: '#99ff99'
1492
- }
1493
- },
1494
- {
1495
- if: { focus: true },
1496
- tokens: {
1497
- outerBorderColor: '#990000'
1498
- }
1499
- },
1500
- {
1501
- if: { hover: true },
1502
- tokens: {
1503
- borderColor: '#6666cc'
1504
- }
1505
- },
1506
- {
1507
- if: { pressed: true },
1508
- tokens: {
1509
- outerBackgroundColor: '#cccc33'
1510
- }
1511
- },
1512
- {
1513
- if: { inactive: true },
1514
- tokens: { opacity: 0.4 }
1515
- }
1516
- ]
1517
- },
1518
- ToggleSwitchGroup: {
1519
- tokens: {
1520
- space: 2,
1521
- direction: 'row',
1522
- alignItems: 'flex-start',
1523
- justifyContent: 'flex-start',
1524
- flexGrow: 1
1525
- }
1526
- },
1527
- TextInput: {
1528
- appearances: {
1529
- validation: appearances.TextInput.validation,
1530
- focus: appearances.TextInput.focus,
1531
- hover: appearances.TextInput.hover,
1532
- inactive: appearances.TextInput.inactive
1533
- },
1534
- tokens: {
1535
- borderRadius: 4,
1536
- borderWidth: 1,
1537
- borderColor: '#00000044',
1538
- paddingTop: 6,
1539
- paddingBottom: 6,
1540
- paddingLeft: 6,
1541
- paddingRight: 6,
1542
- outerBorderWidth: 1,
1543
- outerBorderColor: transparent
1544
- },
1545
- rules: [
1546
- {
1547
- if: { validation: 'success' },
1548
- tokens: {
1549
- outerBorderColor: '#99ff99'
1550
- }
1551
- },
1552
- {
1553
- if: { validation: 'error' },
1554
- tokens: {
1555
- outerBorderColor: '#990000'
1556
- }
1557
- },
1558
- {
1559
- if: { focus: true },
1560
- tokens: {
1561
- outerBorderColor: '#debc06'
1562
- }
1563
- },
1564
- {
1565
- if: { hover: true },
1566
- tokens: {
1567
- outerBorderColor: '#6666cc'
1568
- }
1569
- },
1570
- {
1571
- if: { inactive: true },
1572
- tokens: {
1573
- outerBorderColor: transparent,
1574
- backgroundColor: '#00000044'
1575
- }
1576
- }
1577
- ]
1578
- },
1579
- InputLabel: {
1580
- tokens: {
1581
- gap: 20,
1582
- hintFontSize: 12
1583
- }
1584
- },
1585
- Feedback: {
1586
- appearances: {
1587
- validation: appearances.Feedback.validation
1588
- },
1589
- tokens: {
1590
- borderColor: '#eee',
1591
- borderWidth: 1,
1592
- borderRadius: 3,
1593
- titleFontSize: 16,
1594
- contentFontSize: 14,
1595
- paddingTop: 12,
1596
- paddingBottom: 12,
1597
- paddingLeft: 12,
1598
- paddingRight: 12
1599
- },
1600
- rules: [
1601
- { if: { validation: 'success' }, tokens: { color: 'green' } },
1602
- { if: { validation: 'error' }, tokens: { color: 'red' } }
1603
- ]
1604
- },
1605
- List: {
1606
- appearances: {
1607
- size: {
1608
- values: ['large', 'small'],
1609
- type: 'variant'
1610
- },
1611
- compact: {
1612
- values: [true],
1613
- type: 'variant'
1614
- }
1615
- },
1616
- tokens: {
1617
- interItemMargin: 8,
1618
- interItemMarginWithDivider: 16,
1619
- dividerColor: '#666666',
1620
- dividerSize: 1,
1621
- itemBulletContainerWidth: 16,
1622
- itemBulletContainerAlign: 'center',
1623
- itemBulletWidth: 4,
1624
- itemBulletHeight: 4,
1625
- itemBulletColor: '#6666cc',
1626
- itemIconSize: 16,
1627
- itemIconColor: '#6666cc',
1628
- listGutter: 10,
1629
- itemLineHeight: 1.5
1630
- },
1631
- rules: [
1632
- {
1633
- if: { size: 'large' },
1634
- tokens: {
1635
- itemFontSize: 20,
1636
- itemLineHeight: 1.6,
1637
- listGutter: 16
1638
- }
1639
- },
1640
- {
1641
- if: { size: 'small' },
1642
- tokens: {
1643
- itemFontSize: 14,
1644
- itemLineHeight: 1.42857142857,
1645
- listGutter: 10
1646
- }
1647
- },
1648
- {
1649
- if: { compact: true },
1650
- tokens: {
1651
- itemLineHeight: 1.25
1652
- }
1653
- },
1654
- {
1655
- if: { compact: true, size: 'small' },
1656
- tokens: {
1657
- itemLineHeight: 1.14285714286
1658
- }
1659
- },
1660
- {
1661
- if: { compact: true, size: 'large' },
1662
- tokens: {
1663
- itemLineHeight: 1.2
1664
- }
1665
- }
1666
- ]
1667
- },
1668
- Tags: {
1669
- space: 2,
1670
- direction: 'row',
1671
- alignItems: 'flex-start',
1672
- justifyContent: 'flex-start',
1673
- flexGrow: 1
1674
- },
1675
- TagsItem: {
1676
- appearances: {
1677
- focus: appearances.ButtonGroupItem.focus,
1678
- hover: appearances.ButtonGroupItem.hover,
1679
- pressed: appearances.ButtonGroupItem.pressed,
1680
- selected: appearances.ButtonGroupItem.selected
1681
- },
1682
- tokens: {
1683
- icon: Checkmark,
1684
- iconSize: 16,
1685
- iconColor: '#ffffff',
1686
- iconTranslateX: 0,
1687
- iconTranslateY: 0,
1688
-
1689
- iconPosition: 'right',
1690
- iconSpace: 2,
1691
- iconBackground: '#ffffff',
1692
- iconBorderRadius: 0,
1693
- iconAlignSelf: 'center',
1694
- iconPadding: 0,
1695
-
1696
- borderColor: '#0e6ac8',
1697
- borderWidth: 2,
1698
- borderRadius: 0,
1699
- shadow: null,
1700
-
1701
- outerBorderColor: transparent,
1702
- outerBorderWidth: 4,
1703
- outerBorderGap: 2,
1704
-
1705
- fontSize: 16,
1706
- color: '#0e6ac8',
1707
- lineHeight: 1.5,
1708
- fontWeight: '600',
1709
- alignSelf: 'flex-start',
1710
-
1711
- backgroundColor: '#ffffff',
1712
- opacity: 1,
1713
- paddingLeft: 24,
1714
- paddingRight: 24,
1715
- paddingTop: 8,
1716
- paddingBottom: 8,
1717
-
1718
- width: null
1719
- },
1720
- rules: [
1721
- {
1722
- if: { focus: true },
1723
- tokens: {
1724
- borderWidth: 4,
1725
- outerBorderColor: '#0e6ac8',
1726
- opacity: 0.5
1727
- }
1728
- },
1729
- {
1730
- if: { hover: true },
1731
- tokens: {
1732
- borderWidth: 6
1733
- }
1734
- },
1735
- {
1736
- if: { pressed: true },
1737
- tokens: {
1738
- borderWidth: 8
1739
- }
1740
- },
1741
- {
1742
- if: { selected: true },
1743
- tokens: {
1744
- backgroundColor: '#0e6ac8',
1745
- color: '#ffffff',
1746
- opacity: 1,
1747
- iconBackground: '#0e6ac8'
1748
- }
1749
- }
1750
- ]
1751
- },
1752
- Tooltip: {
1753
- tokens: {
1754
- backgroundColor: 'black',
1755
- color: 'white',
1756
- paddingLeft: 4,
1757
- paddingRight: 4,
1758
- paddingTop: 4,
1759
- paddingBottom: 4,
1760
- arrowOffset: 4
1761
- }
1762
- },
1763
- TooltipButton: {
1764
- tokens: {
1765
- icon: Question,
1766
- iconColor: 'black',
1767
- iconSize: 16
1768
- }
1769
- },
1770
- TextArea: {},
1771
- InputSupports: {},
1772
- Skeleton: {
1773
- tokens: {
1774
- color: '#b2b9bf',
1775
- radius: 100,
1776
- size: 3,
1777
- baseWidth: 40,
1778
- characters: 10,
1779
- spaceBetweenLines: 2,
1780
- squareRadius: 4
1781
- }
1782
- },
1783
- Select: {
1784
- tokens: {
1785
- borderRadius: 4,
1786
- borderWidth: 1,
1787
- borderColor: '#00000044',
1788
- paddingTop: 6,
1789
- paddingBottom: 6,
1790
- paddingLeft: 6,
1791
- paddingRight: 6,
1792
- outerBorderWidth: 1,
1793
- outerBorderColor: transparent
1794
- },
1795
- rules: [
1796
- {
1797
- if: { validation: 'success' },
1798
- tokens: {
1799
- outerBorderColor: '#99ff99'
1800
- }
1801
- },
1802
- {
1803
- if: { validation: 'error' },
1804
- tokens: {
1805
- outerBorderColor: '#990000'
1806
- }
1807
- },
1808
- {
1809
- if: { focus: true },
1810
- tokens: {
1811
- outerBorderColor: '#debc06'
1812
- }
1813
- },
1814
- {
1815
- if: { hover: true },
1816
- tokens: {
1817
- outerBorderColor: '#6666cc'
1818
- }
1819
- },
1820
- {
1821
- if: { inactive: true },
1822
- tokens: {
1823
- outerBorderColor: transparent,
1824
- backgroundColor: '#00000044'
1825
- }
1826
- }
1827
- ]
1828
- }
1829
- }
1830
- }