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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (95) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/build/theme.js +2841 -0
  3. package/package.json +9 -7
  4. package/src/components/ActivityIndicator.js +6 -8
  5. package/src/components/Box.js +11 -14
  6. package/src/components/Button.js +60 -67
  7. package/src/components/ButtonGroup.js +8 -11
  8. package/src/components/ButtonGroupItem.js +64 -54
  9. package/src/components/Card.js +42 -44
  10. package/src/components/Checkbox.js +37 -43
  11. package/src/components/CheckboxGroup.js +8 -0
  12. package/src/components/ChevronLink.js +7 -14
  13. package/src/components/Divider.js +5 -7
  14. package/src/components/ExpandCollapse.js +4 -7
  15. package/src/components/ExpandCollapseControl.js +17 -24
  16. package/src/components/ExpandCollapsePanel.js +7 -9
  17. package/src/components/Feedback.js +31 -40
  18. package/src/components/Icon.js +8 -10
  19. package/src/components/InputLabel.js +12 -18
  20. package/src/components/InputSupports.js +2 -4
  21. package/src/components/Link.js +59 -67
  22. package/src/components/List.js +26 -28
  23. package/src/components/Modal.js +57 -0
  24. package/src/components/Notification.js +90 -0
  25. package/src/components/Pagination.js +10 -16
  26. package/src/components/PaginationPageButton.js +33 -39
  27. package/src/components/PaginationSideButton.js +43 -52
  28. package/src/components/Progress.js +13 -0
  29. package/src/components/ProgressBar.js +31 -0
  30. package/src/components/Radio.js +47 -42
  31. package/src/components/RadioCard.js +123 -0
  32. package/src/components/RadioCardGroup.js +24 -0
  33. package/src/components/RadioGroup.js +8 -0
  34. package/src/components/Search.js +57 -0
  35. package/src/components/SearchButton.js +71 -0
  36. package/src/components/Select.js +40 -50
  37. package/src/components/SideNav.js +4 -7
  38. package/src/components/SideNavItem.js +48 -52
  39. package/src/components/SideNavItemsGroup.js +16 -23
  40. package/src/components/Skeleton.js +8 -10
  41. package/src/components/StackView.js +4 -6
  42. package/src/components/StepTracker.js +59 -0
  43. package/src/components/Tabs.js +13 -0
  44. package/src/components/TabsItem.js +81 -0
  45. package/src/components/TabsScrollButton.js +34 -0
  46. package/src/components/Tags.js +8 -11
  47. package/src/components/TagsItem.js +86 -78
  48. package/src/components/TextArea.js +3 -5
  49. package/src/components/TextInput.js +37 -47
  50. package/src/components/ToggleSwitch.js +53 -60
  51. package/src/components/Tooltip.js +18 -22
  52. package/src/components/TooltipButton.js +19 -26
  53. package/src/components/Typography.js +86 -104
  54. package/src/components/index.js +53 -37
  55. package/src/components/spacingScale.js +23 -26
  56. package/src/index.js +3 -3
  57. package/lib/components/ActivityIndicator.js +0 -35
  58. package/lib/components/Box.js +0 -89
  59. package/lib/components/Button.js +0 -252
  60. package/lib/components/ButtonGroup.js +0 -34
  61. package/lib/components/ButtonGroupItem.js +0 -108
  62. package/lib/components/Card.js +0 -120
  63. package/lib/components/Checkbox.js +0 -80
  64. package/lib/components/ChevronLink.js +0 -39
  65. package/lib/components/Divider.js +0 -44
  66. package/lib/components/ExpandCollapse.js +0 -23
  67. package/lib/components/ExpandCollapseControl.js +0 -49
  68. package/lib/components/ExpandCollapsePanel.js +0 -25
  69. package/lib/components/Feedback.js +0 -89
  70. package/lib/components/Icon.js +0 -47
  71. package/lib/components/InputLabel.js +0 -33
  72. package/lib/components/InputSupports.js +0 -19
  73. package/lib/components/Link.js +0 -241
  74. package/lib/components/List.js +0 -86
  75. package/lib/components/Pagination.js +0 -40
  76. package/lib/components/PaginationPageButton.js +0 -82
  77. package/lib/components/PaginationSideButton.js +0 -113
  78. package/lib/components/Radio.js +0 -78
  79. package/lib/components/Select.js +0 -102
  80. package/lib/components/SideNav.js +0 -23
  81. package/lib/components/SideNavItem.js +0 -118
  82. package/lib/components/SideNavItemsGroup.js +0 -49
  83. package/lib/components/Skeleton.js +0 -26
  84. package/lib/components/StackView.js +0 -22
  85. package/lib/components/Tags.js +0 -34
  86. package/lib/components/TagsItem.js +0 -133
  87. package/lib/components/TextArea.js +0 -20
  88. package/lib/components/TextInput.js +0 -97
  89. package/lib/components/ToggleSwitch.js +0 -144
  90. package/lib/components/Tooltip.js +0 -48
  91. package/lib/components/TooltipButton.js +0 -86
  92. package/lib/components/Typography.js +0 -370
  93. package/lib/components/index.js +0 -303
  94. package/lib/components/spacingScale.js +0 -163
  95. package/lib/index.js +0 -30
@@ -1,8 +1,4 @@
1
- import palette from '@telus-uds/palette-allium'
2
- import system from '@telus-uds/system-themes/src/tokens/rn'
3
- import { appearances } from '@telus-uds/system-themes/schema'
4
-
5
- export default {
1
+ module.exports = {
6
2
  appearances: {
7
3
  size: {
8
4
  description: `Styles text as body or heading text with a given size. Smaller numbers indicate larger sizes,
@@ -47,20 +43,18 @@ accessibility or SEO-related properties; use the heading prop if text should be
47
43
  values: [true],
48
44
  type: 'variant'
49
45
  },
50
- viewport: appearances.system.viewport
46
+ viewport: '{appearances.system.viewport}'
51
47
  },
52
48
  tokens: {
53
- // TODO: replace with font token
54
- fontName: Object.keys(palette.font)[0],
55
- fontWeight: '400',
56
- // font: palette.font.HelveticaNow[400]
57
-
58
- fontSize: palette.fontSize.size16,
59
- color: palette.color.greyThunder,
60
- lineHeight: palette.lineHeight.ratio3to2,
61
- letterSpacing: system.letterSpacing.none,
62
- textTransform: system.textTransform.none,
63
- fontScaleCap: palette.fontSize.size64
49
+ fontName: '{palette.fontName.HelveticaNow}',
50
+ fontWeight: '{palette.fontWeight.weight400}',
51
+
52
+ fontSize: '{palette.fontSize.size16}',
53
+ color: '{palette.color.greyThunder}',
54
+ lineHeight: '{palette.lineHeight.ratio3to2}',
55
+ letterSpacing: '{system.letterSpacing.none}',
56
+ textTransform: '{system.textTransform.none}',
57
+ fontScaleCap: '{palette.fontSize.size64}'
64
58
  },
65
59
  rules: [
66
60
  /**
@@ -69,44 +63,44 @@ accessibility or SEO-related properties; use the heading prop if text should be
69
63
  {
70
64
  if: { colour: 'secondary' },
71
65
  tokens: {
72
- color: palette.color.greyCharcoal
66
+ color: '{palette.color.greyCharcoal}'
73
67
  }
74
68
  },
75
69
 
76
70
  {
77
71
  if: { size: ['display1', 'display2', 'h1', 'h2', 'h3'] },
78
72
  tokens: {
79
- color: palette.color.purpleTelus
73
+ color: '{palette.color.purpleTelus}'
80
74
  }
81
75
  },
82
76
  {
83
77
  if: { size: ['display1', 'display2', 'h1', 'h2', 'h3'], colour: 'secondary' },
84
78
  tokens: {
85
- color: palette.color.greyThunder
79
+ color: '{palette.color.greyThunder}'
86
80
  }
87
81
  },
88
82
  {
89
83
  if: { size: 'h6', colour: 'tertiary' }, // TODO pending confirmation that this is necessary
90
84
  tokens: {
91
- color: palette.color.greyShuttle
85
+ color: '{palette.color.greyShuttle}'
92
86
  }
93
87
  },
94
88
  {
95
89
  if: { size: 'eyebrow' },
96
90
  tokens: {
97
- color: palette.color.greyCharcoal
91
+ color: '{palette.color.greyCharcoal}'
98
92
  }
99
93
  },
100
94
  {
101
95
  if: { size: 'eyebrow', colour: 'secondary' },
102
96
  tokens: {
103
- color: palette.color.purpleTelus
97
+ color: '{palette.color.purpleTelus}'
104
98
  }
105
99
  },
106
100
  {
107
101
  if: { inverse: true },
108
102
  tokens: {
109
- color: palette.color.white
103
+ color: '{palette.color.white}'
110
104
  }
111
105
  },
112
106
 
@@ -117,21 +111,20 @@ accessibility or SEO-related properties; use the heading prop if text should be
117
111
  {
118
112
  if: { size: 'display1' },
119
113
  tokens: {
120
- fontSize: palette.fontSize.size40,
114
+ fontSize: '{palette.fontSize.size40}',
121
115
 
122
- // TODO: replace with font token
123
- fontWeight: '300',
124
- // font: palette.font.HelveticaNow[300]
116
+ fontWeight: '{palette.fontWeight.weight300}',
117
+ fontName: '{palette.fontName.HelveticaNow}',
125
118
 
126
- lineHeight: palette.lineHeight.ratio6to5,
127
- letterSpacing: palette.letterSpacing.medium
119
+ lineHeight: '{palette.lineHeight.ratio6to5}',
120
+ letterSpacing: '{palette.letterSpacing.medium}'
128
121
  }
129
122
  },
130
123
  {
131
124
  if: { size: 'display1', viewport: ['lg', 'xl'] },
132
125
  tokens: {
133
- fontSize: palette.fontSize.size64,
134
- lineHeight: palette.lineHeight.ratio9to8
126
+ fontSize: '{palette.fontSize.size64}',
127
+ lineHeight: '{palette.lineHeight.ratio9to8}'
135
128
  }
136
129
  },
137
130
 
@@ -139,27 +132,25 @@ accessibility or SEO-related properties; use the heading prop if text should be
139
132
  {
140
133
  if: { size: 'display2' },
141
134
  tokens: {
142
- fontSize: palette.fontSize.size36,
135
+ fontSize: '{palette.fontSize.size36}',
143
136
 
144
- // TODO: replace with font token
145
- fontWeight: '400',
146
- // font: palette.font.HelveticaNow[400]
137
+ fontWeight: '{palette.fontWeight.weight400}',
138
+ fontName: '{palette.fontName.HelveticaNow}',
147
139
 
148
- letterSpacing: palette.letterSpacing.medium,
149
- lineHeight: palette.lineHeight.ratio11to9
140
+ letterSpacing: '{palette.letterSpacing.medium}',
141
+ lineHeight: '{palette.lineHeight.ratio11to9}'
150
142
  }
151
143
  },
152
144
  {
153
145
  if: { size: 'display2', viewport: ['lg', 'xl'] },
154
146
  tokens: {
155
- fontSize: palette.fontSize.size56,
147
+ fontSize: '{palette.fontSize.size56}',
156
148
 
157
- // TODO: replace with font token
158
- fontWeight: '300',
159
- // font: palette.font.HelveticaNow[300]
149
+ fontWeight: '{palette.fontWeight.weight300}',
150
+ fontName: '{palette.fontName.HelveticaNow}',
160
151
 
161
- lineHeight: palette.lineHeight.ratio8to7,
162
- letterSpacing: palette.letterSpacing.condensed
152
+ lineHeight: '{palette.lineHeight.ratio8to7}',
153
+ letterSpacing: '{palette.letterSpacing.condensed}'
163
154
  }
164
155
  },
165
156
 
@@ -167,22 +158,21 @@ accessibility or SEO-related properties; use the heading prop if text should be
167
158
  {
168
159
  if: { size: 'h1' },
169
160
  tokens: {
170
- fontSize: palette.fontSize.size28,
171
- lineHeight: palette.lineHeight.ratio9to7,
172
- letterSpacing: palette.letterSpacing.loose
161
+ fontSize: '{palette.fontSize.size28}',
162
+ lineHeight: '{palette.lineHeight.ratio9to7}',
163
+ letterSpacing: '{palette.letterSpacing.loose}'
173
164
  }
174
165
  },
175
166
  {
176
167
  if: { size: 'h1', viewport: ['lg', 'xl'] },
177
168
  tokens: {
178
- fontSize: palette.fontSize.size40,
169
+ fontSize: '{palette.fontSize.size40}',
179
170
 
180
- // TODO: replace with font token
181
- fontWeight: '300',
182
- // font: palette.font.HelveticaNow[300]
171
+ fontWeight: '{palette.fontWeight.weight300}',
172
+ fontName: '{palette.fontName.HelveticaNow}',
183
173
 
184
- lineHeight: palette.lineHeight.ratio6to5,
185
- letterSpacing: palette.letterSpacing.medium
174
+ lineHeight: '{palette.lineHeight.ratio6to5}',
175
+ letterSpacing: '{palette.letterSpacing.medium}'
186
176
  }
187
177
  },
188
178
 
@@ -190,21 +180,20 @@ accessibility or SEO-related properties; use the heading prop if text should be
190
180
  {
191
181
  if: { size: 'h2' },
192
182
  tokens: {
193
- fontSize: palette.fontSize.size24,
183
+ fontSize: '{palette.fontSize.size24}',
194
184
 
195
- // TODO: replace with font token
196
- fontWeight: '500',
197
- // font: palette.font.HelveticaNow[500]
185
+ fontWeight: '{palette.fontWeight.weight500}',
186
+ fontName: '{palette.fontName.HelveticaNow}',
198
187
 
199
- lineHeight: palette.lineHeight.ratio4to3
188
+ lineHeight: '{palette.lineHeight.ratio4to3}'
200
189
  }
201
190
  },
202
191
  {
203
192
  if: { size: 'h2', viewport: ['lg', 'xl'] },
204
193
  tokens: {
205
- fontSize: palette.fontSize.size28,
206
- lineHeight: palette.lineHeight.ratio9to7,
207
- letterSpacing: palette.letterSpacing.loose
194
+ fontSize: '{palette.fontSize.size28}',
195
+ lineHeight: '{palette.lineHeight.ratio9to7}',
196
+ letterSpacing: '{palette.letterSpacing.loose}'
208
197
  }
209
198
  },
210
199
 
@@ -212,20 +201,19 @@ accessibility or SEO-related properties; use the heading prop if text should be
212
201
  {
213
202
  if: { size: 'h3' },
214
203
  tokens: {
215
- fontSize: palette.fontSize.size20,
204
+ fontSize: '{palette.fontSize.size20}',
216
205
 
217
- // TODO: replace with font token
218
- fontWeight: '500',
219
- // font: palette.font.HelveticaNow[500]
206
+ fontWeight: '{palette.fontWeight.weight500}',
207
+ fontName: '{palette.fontName.HelveticaNow}',
220
208
 
221
- lineHeight: palette.lineHeight.ratio7to5
209
+ lineHeight: '{palette.lineHeight.ratio7to5}'
222
210
  }
223
211
  },
224
212
  {
225
213
  if: { size: 'h3', viewport: ['lg', 'xl'] },
226
214
  tokens: {
227
- fontSize: palette.fontSize.size24,
228
- lineHeight: palette.lineHeight.ratio4to3
215
+ fontSize: '{palette.fontSize.size24}',
216
+ lineHeight: '{palette.lineHeight.ratio4to3}'
229
217
  }
230
218
  },
231
219
 
@@ -233,13 +221,12 @@ accessibility or SEO-related properties; use the heading prop if text should be
233
221
  {
234
222
  if: { size: 'h4' },
235
223
  tokens: {
236
- fontSize: palette.fontSize.size16,
224
+ fontSize: '{palette.fontSize.size16}',
237
225
 
238
- // TODO: replace with font token
239
- fontWeight: '500',
240
- // font: palette.font.HelveticaNow[500]
226
+ fontWeight: '{palette.fontWeight.weight500}',
227
+ fontName: '{palette.fontName.HelveticaNow}',
241
228
 
242
- lineHeight: palette.lineHeight.ratio3to2
229
+ lineHeight: '{palette.lineHeight.ratio3to2}'
243
230
  }
244
231
  },
245
232
 
@@ -247,13 +234,12 @@ accessibility or SEO-related properties; use the heading prop if text should be
247
234
  {
248
235
  if: { size: 'h5' },
249
236
  tokens: {
250
- fontSize: palette.fontSize.size14,
237
+ fontSize: '{palette.fontSize.size14}',
251
238
 
252
- // TODO: replace with font token
253
- fontWeight: '500',
254
- // font: palette.font.HelveticaNow[500]
239
+ fontWeight: '{palette.fontWeight.weight500}',
240
+ fontName: '{palette.fontName.HelveticaNow}',
255
241
 
256
- lineHeight: palette.lineHeight.ratio9to7
242
+ lineHeight: '{palette.lineHeight.ratio9to7}'
257
243
  }
258
244
  },
259
245
 
@@ -261,13 +247,12 @@ accessibility or SEO-related properties; use the heading prop if text should be
261
247
  {
262
248
  if: { size: 'h6' },
263
249
  tokens: {
264
- fontSize: palette.fontSize.size12,
250
+ fontSize: '{palette.fontSize.size12}',
265
251
 
266
- // TODO: replace with font token
267
- fontWeight: '700',
268
- // font: palette.font.HelveticaNow[700]
252
+ fontWeight: '{palette.fontWeight.weight700}',
253
+ fontName: '{palette.fontName.HelveticaNow}',
269
254
 
270
- lineHeight: palette.lineHeight.ratio4to3
255
+ lineHeight: '{palette.lineHeight.ratio4to3}'
271
256
  }
272
257
  },
273
258
 
@@ -275,14 +260,14 @@ accessibility or SEO-related properties; use the heading prop if text should be
275
260
  {
276
261
  if: { size: 'large' },
277
262
  tokens: {
278
- fontSize: palette.fontSize.size20,
279
- lineHeight: palette.lineHeight.ratio8to5
263
+ fontSize: '{palette.fontSize.size20}',
264
+ lineHeight: '{palette.lineHeight.ratio8to5}'
280
265
  }
281
266
  },
282
267
  {
283
268
  if: { size: 'large', compact: true },
284
269
  tokens: {
285
- lineHeight: palette.lineHeight.ratio6to5
270
+ lineHeight: '{palette.lineHeight.ratio6to5}'
286
271
  }
287
272
  },
288
273
 
@@ -292,21 +277,21 @@ accessibility or SEO-related properties; use the heading prop if text should be
292
277
  description:
293
278
  "The compact line height for the 'default' font size, but doesn't apply for any other styles",
294
279
  tokens: {
295
- lineHeight: palette.lineHeight.ratio5to4
280
+ lineHeight: '{palette.lineHeight.ratio5to4}'
296
281
  }
297
282
  },
298
283
  /* small */
299
284
  {
300
285
  if: { size: 'small' },
301
286
  tokens: {
302
- fontSize: palette.fontSize.size14,
303
- lineHeight: palette.lineHeight.ratio10to7
287
+ fontSize: '{palette.fontSize.size14}',
288
+ lineHeight: '{palette.lineHeight.ratio10to7}'
304
289
  }
305
290
  },
306
291
  {
307
292
  if: { size: 'small', compact: true },
308
293
  tokens: {
309
- lineHeight: palette.lineHeight.ratio8to7
294
+ lineHeight: '{palette.lineHeight.ratio8to7}'
310
295
  }
311
296
  },
312
297
 
@@ -314,13 +299,12 @@ accessibility or SEO-related properties; use the heading prop if text should be
314
299
  {
315
300
  if: { size: 'micro' },
316
301
  tokens: {
317
- fontSize: palette.fontSize.size12,
302
+ fontSize: '{palette.fontSize.size12}',
318
303
 
319
- // TODO: replace with font token
320
- fontWeight: '500',
321
- // font: palette.font.HelveticaNow[500]
304
+ fontWeight: '{palette.fontWeight.weight500}',
305
+ fontName: '{palette.fontName.HelveticaNow}',
322
306
 
323
- lineHeight: palette.lineHeight.ratio4to3
307
+ lineHeight: '{palette.lineHeight.ratio4to3}'
324
308
  }
325
309
  },
326
310
 
@@ -328,14 +312,13 @@ accessibility or SEO-related properties; use the heading prop if text should be
328
312
  {
329
313
  if: { size: 'eyebrow' },
330
314
  tokens: {
331
- fontSize: palette.fontSize.size14,
315
+ fontSize: '{palette.fontSize.size14}',
332
316
 
333
- // TODO: replace with font token
334
- fontWeight: '700',
335
- // font: palette.font.HelveticaNow[700]
317
+ fontWeight: '{palette.fontWeight.weight700}',
318
+ fontName: '{palette.fontName.HelveticaNow}',
336
319
 
337
- textTransform: system.textTransform.uppercase,
338
- lineHeight: palette.lineHeight.ratio9to7
320
+ textTransform: '{system.textTransform.uppercase}',
321
+ lineHeight: '{palette.lineHeight.ratio9to7}'
339
322
  }
340
323
  },
341
324
 
@@ -346,9 +329,8 @@ accessibility or SEO-related properties; use the heading prop if text should be
346
329
  if: { size: ['large', null, 'small', 'micro'], bold: true },
347
330
  description: 'Bold is only available on body text styles, not headings',
348
331
  tokens: {
349
- // TODO: replace with font token
350
- fontWeight: '700'
351
- // font: palette.font.HelveticaNow[700]
332
+ fontWeight: '{palette.fontWeight.weight700}',
333
+ fontName: '{palette.fontName.HelveticaNow}'
352
334
  }
353
335
  }
354
336
  ]
@@ -1,37 +1,53 @@
1
- export { default as ActivityIndicator } from './ActivityIndicator'
2
- export { default as Box } from './Box'
3
- export { default as Button } from './Button'
4
- export { default as ButtonGroup } from './ButtonGroup'
5
- export { default as ButtonGroupItem } from './ButtonGroupItem'
6
- export { default as Card } from './Card'
7
- export { default as Checkbox } from './Checkbox'
8
- export { default as ChevronLink } from './ChevronLink'
9
- export { default as Divider } from './Divider'
10
- export { default as ExpandCollapse } from './ExpandCollapse'
11
- export { default as ExpandCollapseControl } from './ExpandCollapseControl'
12
- export { default as ExpandCollapsePanel } from './ExpandCollapsePanel'
13
- export { default as Feedback } from './Feedback'
14
- export { default as Icon } from './Icon'
15
- export { default as InputLabel } from './InputLabel'
16
- export { default as InputSupports } from './InputSupports'
17
- export { default as Link } from './Link'
18
- export { default as List } from './List'
19
- export { default as Pagination } from './Pagination'
20
- export { default as PaginationPageButton } from './PaginationPageButton'
21
- export { default as PaginationSideButton } from './PaginationSideButton'
22
- export { default as Radio } from './Radio'
23
- export { default as Select } from './Select'
24
- export { default as SideNav } from './SideNav'
25
- export { default as SideNavItem } from './SideNavItem'
26
- export { default as SideNavItemsGroup } from './SideNavItemsGroup'
27
- export { default as Skeleton } from './Skeleton'
28
- export { default as StackView } from './StackView'
29
- export { default as Tags } from './Tags'
30
- export { default as TagsItem } from './TagsItem'
31
- export { default as TextArea } from './TextArea'
32
- export { default as TextInput } from './TextInput'
33
- export { default as ToggleSwitch } from './ToggleSwitch'
34
- export { default as Tooltip } from './Tooltip'
35
- export { default as TooltipButton } from './TooltipButton'
36
- export { default as Typography } from './Typography'
37
- export { default as spacingScale } from './spacingScale'
1
+ module.exports = {
2
+ ActivityIndicator: require('./ActivityIndicator'),
3
+ Box: require('./Box'),
4
+ Button: require('./Button'),
5
+ ButtonGroup: require('./ButtonGroup'),
6
+ ButtonGroupItem: require('./ButtonGroupItem'),
7
+ Card: require('./Card'),
8
+ Checkbox: require('./Checkbox'),
9
+ CheckboxGroup: require('./CheckboxGroup'),
10
+ ChevronLink: require('./ChevronLink'),
11
+ Divider: require('./Divider'),
12
+ ExpandCollapse: require('./ExpandCollapse'),
13
+ ExpandCollapseControl: require('./ExpandCollapseControl'),
14
+ ExpandCollapsePanel: require('./ExpandCollapsePanel'),
15
+ Feedback: require('./Feedback'),
16
+ Icon: require('./Icon'),
17
+ InputLabel: require('./InputLabel'),
18
+ InputSupports: require('./InputSupports'),
19
+ Link: require('./Link'),
20
+ List: require('./List'),
21
+ Modal: require('./Modal'),
22
+ Notification: require('./Notification'),
23
+ Pagination: require('./Pagination'),
24
+ PaginationPageButton: require('./PaginationPageButton'),
25
+ PaginationSideButton: require('./PaginationSideButton'),
26
+ Progress: require('./Progress'),
27
+ ProgressBar: require('./ProgressBar'),
28
+ Radio: require('./Radio'),
29
+ RadioCard: require('./RadioCard'),
30
+ RadioCardGroup: require('./RadioCardGroup'),
31
+ RadioGroup: require('./RadioGroup'),
32
+ Search: require('./Search'),
33
+ SearchButton: require('./SearchButton'),
34
+ StepTracker: require('./StepTracker'),
35
+ Tabs: require('./Tabs'),
36
+ TabsItem: require('./TabsItem'),
37
+ TabsScrollButton: require('./TabsScrollButton'),
38
+ TextArea: require('./TextArea'),
39
+ TextInput: require('./TextInput'),
40
+ ToggleSwitch: require('./ToggleSwitch'),
41
+ Tooltip: require('./Tooltip'),
42
+ TooltipButton: require('./TooltipButton'),
43
+ Typography: require('./Typography'),
44
+ Select: require('./Select'),
45
+ SideNav: require('./SideNav'),
46
+ SideNavItem: require('./SideNavItem'),
47
+ SideNavItemsGroup: require('./SideNavItemsGroup'),
48
+ Skeleton: require('./Skeleton'),
49
+ StackView: require('./StackView'),
50
+ Tags: require('./Tags'),
51
+ TagsItem: require('./TagsItem'),
52
+ spacingScale: require('./spacingScale')
53
+ }
@@ -1,36 +1,33 @@
1
- import palette from '@telus-uds/palette-allium'
2
- import { appearances } from '@telus-uds/system-themes/schema'
3
-
4
- export default {
1
+ module.exports = {
5
2
  appearances: {
6
- space: appearances.spacingScale.space,
7
- viewport: appearances.system.viewport
3
+ space: '{appearances.spacingScale.space}',
4
+ viewport: '{appearances.system.viewport}'
8
5
  },
9
6
  // Largest spacings first, so they apply any time space >= highest index'
10
- tokens: { size: palette.size.size96 },
7
+ tokens: { size: '{palette.size.size96}' },
11
8
  rules: [
12
- { if: { viewport: ['lg', 'xl'] }, tokens: { size: palette.size.size120 } },
9
+ { if: { viewport: ['lg', 'xl'] }, tokens: { size: '{palette.size.size120}' } },
13
10
 
14
- { if: { space: 11 }, tokens: { size: palette.size.size96 } },
15
- { if: { space: 10 }, tokens: { size: palette.size.size80 } },
16
- { if: { space: 9 }, tokens: { size: palette.size.size64 } },
17
- { if: { space: 8 }, tokens: { size: palette.size.size48 } },
18
- { if: { space: 7 }, tokens: { size: palette.size.size40 } },
19
- { if: { space: 6 }, tokens: { size: palette.size.size36 } },
20
- { if: { space: 5 }, tokens: { size: palette.size.size32 } },
21
- { if: { space: 4 }, tokens: { size: palette.size.size24 } },
22
- { if: { space: 3 }, tokens: { size: palette.size.size16 } },
23
- { if: { space: 2 }, tokens: { size: palette.size.size8 } },
24
- { if: { space: 1 }, tokens: { size: palette.size.size4 } },
11
+ { if: { space: 11 }, tokens: { size: '{palette.size.size96}' } },
12
+ { if: { space: 10 }, tokens: { size: '{palette.size.size80}' } },
13
+ { if: { space: 9 }, tokens: { size: '{palette.size.size64}' } },
14
+ { if: { space: 8 }, tokens: { size: '{palette.size.size48}' } },
15
+ { if: { space: 7 }, tokens: { size: '{palette.size.size40}' } },
16
+ { if: { space: 6 }, tokens: { size: '{palette.size.size36}' } },
17
+ { if: { space: 5 }, tokens: { size: '{palette.size.size32}' } },
18
+ { if: { space: 4 }, tokens: { size: '{palette.size.size24}' } },
19
+ { if: { space: 3 }, tokens: { size: '{palette.size.size16}' } },
20
+ { if: { space: 2 }, tokens: { size: '{palette.size.size8}' } },
21
+ { if: { space: 1 }, tokens: { size: '{palette.size.size4}' } },
25
22
 
26
- { if: { space: 11, viewport: ['lg', 'xl'] }, tokens: { size: palette.size.size120 } },
27
- { if: { space: 10, viewport: ['lg', 'xl'] }, tokens: { size: palette.size.size96 } },
28
- { if: { space: 9, viewport: ['lg', 'xl'] }, tokens: { size: palette.size.size72 } },
29
- { if: { space: 8, viewport: ['lg', 'xl'] }, tokens: { size: palette.size.size64 } },
30
- { if: { space: 7 }, tokens: { size: palette.size.size48 } },
31
- { if: { space: 6 }, tokens: { size: palette.size.size40 } },
23
+ { if: { space: 11, viewport: ['lg', 'xl'] }, tokens: { size: '{palette.size.size120}' } },
24
+ { if: { space: 10, viewport: ['lg', 'xl'] }, tokens: { size: '{palette.size.size96}' } },
25
+ { if: { space: 9, viewport: ['lg', 'xl'] }, tokens: { size: '{palette.size.size72}' } },
26
+ { if: { space: 8, viewport: ['lg', 'xl'] }, tokens: { size: '{palette.size.size64}' } },
27
+ { if: { space: 7, viewport: ['lg', 'xl'] }, tokens: { size: '{palette.size.size48}' } },
28
+ { if: { space: 6, viewport: ['lg', 'xl'] }, tokens: { size: '{palette.size.size40}' } },
32
29
 
33
30
  // Zero spacing last; overrides all other rules when space === 0
34
- { if: { space: 0 }, tokens: { size: palette.size.size0 } }
31
+ { if: { space: 0 }, tokens: { size: '{palette.size.size0}' } }
35
32
  ]
36
33
  }
package/src/index.js CHANGED
@@ -1,5 +1,5 @@
1
- import packageJson from '../package.json'
2
- import * as components from './components'
1
+ const packageJson = require('../package.json')
2
+ const components = require('./components')
3
3
 
4
4
  // TODO: replace this with theme build tooling and schema checks as part of
5
5
  // https://github.com/telus/universal-design-system/issues/92
@@ -14,4 +14,4 @@ const alliumTheme = {
14
14
  components
15
15
  }
16
16
 
17
- export default alliumTheme
17
+ module.exports = alliumTheme
@@ -1,35 +0,0 @@
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;