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