@telus-uds/theme-allium 3.8.2 → 3.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/build/theme.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  *
3
3
  * Do not edit directly
4
- * Generated on Wed, 05 Oct 2022 21:29:44 GMT
4
+ * Generated on Fri, 14 Oct 2022 19:26:22 GMT
5
5
  *
6
6
  */
7
7
 
@@ -41,7 +41,7 @@ module.exports = {
41
41
  'dark', 'darkest',
42
42
  'critical', 'danger',
43
43
  'warning', 'positive',
44
- 'brand'
44
+ 'brand', 'black'
45
45
  ]
46
46
  }
47
47
  },
@@ -50,6 +50,10 @@ module.exports = {
50
50
  if: { background: 'lightest' },
51
51
  tokens: { backgroundColor: '#ffffff' }
52
52
  },
53
+ {
54
+ if: { background: 'black' },
55
+ tokens: { backgroundColor: '#000000' }
56
+ },
53
57
  {
54
58
  if: { background: 'light' },
55
59
  tokens: { backgroundColor: '#f4f4f7' }
@@ -120,9 +124,14 @@ module.exports = {
120
124
  priority: {
121
125
  description: 'Indicates the importance of the call-to-action. Limit the amount of high priority buttons on a page to prioritize meaningful user flows. Low priority styles are applied by default.',
122
126
  type: 'variant',
123
- values: [ 'high' ]
127
+ values: [ 'high', 'low' ]
124
128
  },
125
129
  size: { type: 'variant', values: [ 'small' ] },
130
+ text: {
131
+ description: 'Text variant visually deprioritize the button styles',
132
+ type: 'variant',
133
+ values: [ true ]
134
+ },
126
135
  width: {
127
136
  description: 'Available in default or full-width. Default-width expands based on content Full-width expands to width of the container.',
128
137
  type: 'variant',
@@ -226,6 +235,117 @@ module.exports = {
226
235
  backgroundColor: 'rgba(255, 255, 255, 0.6)',
227
236
  color: '#414547'
228
237
  }
238
+ },
239
+ {
240
+ if: { text: true },
241
+ tokens: {
242
+ backgroundColor: 'rgba(0, 0, 0, 0)',
243
+ borderColor: 'rgba(0, 0, 0, 0)',
244
+ borderWidth: 0,
245
+ minWidth: 0,
246
+ outerBorderColor: 'rgba(0, 0, 0, 0)',
247
+ paddingLeft: 0,
248
+ paddingRight: 0,
249
+ textLine: 'underline'
250
+ }
251
+ },
252
+ {
253
+ if: { hover: true, text: true },
254
+ tokens: { textLine: 'none' }
255
+ },
256
+ {
257
+ if: { priority: 'high', text: true },
258
+ tokens: { color: '#2b8000' }
259
+ },
260
+ {
261
+ if: { priority: 'low', text: true },
262
+ tokens: { color: '#414547' }
263
+ },
264
+ {
265
+ if: { focus: true, text: true },
266
+ tokens: {
267
+ borderRadius: 0,
268
+ color: '#2b8000',
269
+ outerBorderColor: '#2b8000'
270
+ }
271
+ },
272
+ {
273
+ if: { hover: true, priority: 'high', text: true },
274
+ tokens: { color: '#1f5c09' }
275
+ },
276
+ {
277
+ if: { hover: true, priority: null, text: true },
278
+ tokens: { color: '#1f5c09' }
279
+ },
280
+ {
281
+ if: { hover: true, priority: 'low', text: true },
282
+ tokens: { color: '#414547' }
283
+ },
284
+ {
285
+ if: { danger: true, hover: true, text: true },
286
+ tokens: { color: '#c12335' }
287
+ },
288
+ {
289
+ if: { pressed: true, text: true },
290
+ tokens: {
291
+ borderColor: 'rgba(0, 0, 0, 0)',
292
+ color: '#163e06',
293
+ outerBorderColor: 'rgba(0, 0, 0, 0)',
294
+ textLine: 'none'
295
+ }
296
+ },
297
+ {
298
+ if: { focus: true, text: true },
299
+ tokens: {
300
+ borderColor: 'rgba(0, 0, 0, 0)',
301
+ color: '#2b8000',
302
+ outerBorderColor: '#2b8000'
303
+ }
304
+ },
305
+ {
306
+ if: { focus: true, pressed: true, text: true },
307
+ tokens: {
308
+ borderColor: 'rgba(0, 0, 0, 0)',
309
+ color: '#163e06',
310
+ outerBorderColor: '#163e06',
311
+ textLine: 'none'
312
+ }
313
+ },
314
+ {
315
+ if: { inactive: true, text: true },
316
+ tokens: {
317
+ borderColor: 'rgba(0, 0, 0, 0)',
318
+ color: '#b2b9bf',
319
+ outerBorderColor: 'rgba(0, 0, 0, 0)',
320
+ textLine: 'none'
321
+ }
322
+ },
323
+ {
324
+ if: { inverse: true, text: true },
325
+ tokens: { borderRadius: 0, color: '#ffffff' }
326
+ },
327
+ {
328
+ if: { focus: true, inverse: true, text: true },
329
+ tokens: {
330
+ borderColor: 'rgba(0, 0, 0, 0)',
331
+ outerBorderColor: '#ffffff'
332
+ }
333
+ },
334
+ {
335
+ if: { focus: true, inverse: true, pressed: true, text: true },
336
+ tokens: {
337
+ borderColor: 'rgba(0, 0, 0, 0)',
338
+ color: '#b2b9bf',
339
+ outerBorderColor: '#b2b9bf'
340
+ }
341
+ },
342
+ {
343
+ if: { inactive: true, inverse: true, text: true },
344
+ tokens: {
345
+ borderColor: 'rgba(0, 0, 0, 0)',
346
+ color: '#b2b9bf',
347
+ outerBorderColor: 'rgba(0, 0, 0, 0)'
348
+ }
229
349
  }
230
350
  ],
231
351
  tokens: {
@@ -254,6 +374,8 @@ module.exports = {
254
374
  paddingTop: 12,
255
375
  shadow: null,
256
376
  textAlign: 'center',
377
+ textLine: 'none',
378
+ textLineStyle: 'solid',
257
379
  width: null
258
380
  }
259
381
  },
@@ -1589,6 +1711,11 @@ module.exports = {
1589
1711
  },
1590
1712
  PaginationSideButton: {
1591
1713
  appearances: {
1714
+ compact: {
1715
+ description: 'Determines if the "Next" and "Previous" labels should be omitted',
1716
+ type: 'state',
1717
+ values: [ true ]
1718
+ },
1592
1719
  direction: {
1593
1720
  description: "Determines which way does the button navigate in Pagination's context",
1594
1721
  type: 'state',
@@ -1621,10 +1748,12 @@ module.exports = {
1621
1748
  }
1622
1749
  },
1623
1750
  rules: [
1751
+ { if: { compact: true }, tokens: { displayLabel: false } },
1624
1752
  {
1625
1753
  if: { viewport: [ 'xs', 'sm' ] },
1626
1754
  tokens: {
1627
1755
  borderRadius: 32,
1756
+ displayLabel: false,
1628
1757
  paddingBottom: 4,
1629
1758
  paddingTop: 4,
1630
1759
  width: 32
@@ -1665,6 +1794,7 @@ module.exports = {
1665
1794
  borderRadius: 4,
1666
1795
  borderWidth: 1,
1667
1796
  color: '#676e73',
1797
+ displayLabel: true,
1668
1798
  fontName: 'HelveticaNow',
1669
1799
  fontSize: 16,
1670
1800
  fontWeight: '400',
@@ -2925,6 +3055,9 @@ module.exports = {
2925
3055
  borderColor: '#676e73',
2926
3056
  borderRadius: 4,
2927
3057
  borderWidth: 1,
3058
+ buttonSize: 32,
3059
+ buttonsGap: 1,
3060
+ buttonsPaddingRight: 8,
2928
3061
  color: '#414547',
2929
3062
  fontName: 'HelveticaNow',
2930
3063
  fontSize: 16,
@@ -3285,7 +3418,7 @@ module.exports = {
3285
3418
  { if: { size: 'eyebrow' }, tokens: { color: '#414547' } },
3286
3419
  {
3287
3420
  if: { colour: 'secondary', size: 'eyebrow' },
3288
- tokens: { color: '#4b286d' }
3421
+ tokens: { color: '#7c53a5' }
3289
3422
  },
3290
3423
  { if: { inverse: true }, tokens: { color: '#ffffff' } },
3291
3424
  {
@@ -3557,5 +3690,5 @@ module.exports = {
3557
3690
  tokens: { size: 96 }
3558
3691
  }
3559
3692
  },
3560
- metadata: { name: 'theme-allium', themeTokensVersion: '2.6.0' }
3693
+ metadata: { name: 'theme-allium', themeTokensVersion: '2.7.0' }
3561
3694
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@telus-uds/theme-allium",
3
- "version": "3.8.2",
3
+ "version": "3.9.0",
4
4
  "description": "Allium theme",
5
5
  "author": "TELUS Digital",
6
6
  "homepage": "https://github.com/telus/allium-design-system#readme",
@@ -8,12 +8,12 @@
8
8
  "main": "build/theme.js",
9
9
  "dependencies": {},
10
10
  "devDependencies": {
11
- "@telus-uds/palette-allium": "^2.8.0",
12
- "@telus-uds/system-theme-tokens": "^2.6.0",
13
- "@telus-uds/system-tokens": "^0.4.0"
11
+ "@telus-uds/palette-allium": "^2.8.1",
12
+ "@telus-uds/system-theme-tokens": "^2.7.0",
13
+ "@telus-uds/system-tokens": "^0.5.0"
14
14
  },
15
15
  "peerDependencies": {
16
- "@telus-uds/palette-allium": "^2.8.0"
16
+ "@telus-uds/palette-allium": "^2.8.1"
17
17
  },
18
18
  "files": [
19
19
  "build",
package/theme.json CHANGED
@@ -38,7 +38,8 @@
38
38
  "danger",
39
39
  "warning",
40
40
  "positive",
41
- "brand"
41
+ "brand",
42
+ "black"
42
43
  ]
43
44
  }
44
45
  },
@@ -51,6 +52,14 @@
51
52
  "backgroundColor": "{palette.color.white}"
52
53
  }
53
54
  },
55
+ {
56
+ "if": {
57
+ "background": "black"
58
+ },
59
+ "tokens": {
60
+ "backgroundColor": "{palette.color.black}"
61
+ }
62
+ },
54
63
  {
55
64
  "if": {
56
65
  "background": "light"
@@ -139,12 +148,17 @@
139
148
  "priority": {
140
149
  "description": "Indicates the importance of the call-to-action. Limit the amount of high priority buttons on a page to prioritize meaningful user flows. Low priority styles are applied by default.",
141
150
  "type": "variant",
142
- "values": ["high"]
151
+ "values": ["high", "low"]
143
152
  },
144
153
  "size": {
145
154
  "type": "variant",
146
155
  "values": ["small"]
147
156
  },
157
+ "text": {
158
+ "description": "Text variant visually deprioritize the button styles",
159
+ "type": "variant",
160
+ "values": [true]
161
+ },
148
162
  "width": {
149
163
  "description": "Available in default or full-width. Default-width expands based on content Full-width expands to width of the container.",
150
164
  "type": "variant",
@@ -345,6 +359,193 @@
345
359
  "backgroundColor": "{palette.color.light60}",
346
360
  "color": "{palette.color.greyCharcoal}"
347
361
  }
362
+ },
363
+ {
364
+ "if": {
365
+ "text": true
366
+ },
367
+ "tokens": {
368
+ "backgroundColor": "{palette.color.transparent}",
369
+ "borderColor": "{palette.color.transparent}",
370
+ "borderWidth": "{system.border.zero}",
371
+ "minWidth": "{system.size.zero}",
372
+ "outerBorderColor": "{palette.color.transparent}",
373
+ "paddingLeft": "{palette.size.size0}",
374
+ "paddingRight": "{palette.size.size0}",
375
+ "textLine": "{system.textLine.underline}"
376
+ }
377
+ },
378
+ {
379
+ "if": {
380
+ "hover": true,
381
+ "text": true
382
+ },
383
+ "tokens": {
384
+ "textLine": "{system.textLine.none}"
385
+ }
386
+ },
387
+ {
388
+ "if": {
389
+ "priority": "high",
390
+ "text": true
391
+ },
392
+ "tokens": {
393
+ "color": "{palette.color.greenAccessible}"
394
+ }
395
+ },
396
+ {
397
+ "if": {
398
+ "priority": "low",
399
+ "text": true
400
+ },
401
+ "tokens": {
402
+ "color": "{palette.color.greyCharcoal}"
403
+ }
404
+ },
405
+ {
406
+ "if": {
407
+ "focus": true,
408
+ "text": true
409
+ },
410
+ "tokens": {
411
+ "borderRadius": "{palette.radius.none}",
412
+ "color": "{palette.color.greenAccessible}",
413
+ "outerBorderColor": "{palette.color.greenAccessible}"
414
+ }
415
+ },
416
+ {
417
+ "if": {
418
+ "hover": true,
419
+ "priority": "high",
420
+ "text": true
421
+ },
422
+ "tokens": {
423
+ "color": "{palette.color.greenSanFelix}"
424
+ }
425
+ },
426
+ {
427
+ "if": {
428
+ "hover": true,
429
+ "priority": null,
430
+ "text": true
431
+ },
432
+ "tokens": {
433
+ "color": "{palette.color.greenSanFelix}"
434
+ }
435
+ },
436
+ {
437
+ "if": {
438
+ "hover": true,
439
+ "priority": "low",
440
+ "text": true
441
+ },
442
+ "tokens": {
443
+ "color": "{palette.color.greyCharcoal}"
444
+ }
445
+ },
446
+ {
447
+ "if": {
448
+ "danger": true,
449
+ "hover": true,
450
+ "text": true
451
+ },
452
+ "tokens": {
453
+ "color": "{palette.color.redDark}"
454
+ }
455
+ },
456
+ {
457
+ "if": {
458
+ "pressed": true,
459
+ "text": true
460
+ },
461
+ "tokens": {
462
+ "borderColor": "{palette.color.transparent}",
463
+ "color": "{palette.color.greenDarkFern}",
464
+ "outerBorderColor": "{palette.color.transparent}",
465
+ "textLine": "{system.textLine.none}"
466
+ }
467
+ },
468
+ {
469
+ "if": {
470
+ "focus": true,
471
+ "text": true
472
+ },
473
+ "tokens": {
474
+ "borderColor": "{palette.color.transparent}",
475
+ "color": "{palette.color.greenAccessible}",
476
+ "outerBorderColor": "{palette.color.greenAccessible}"
477
+ }
478
+ },
479
+ {
480
+ "if": {
481
+ "focus": true,
482
+ "pressed": true,
483
+ "text": true
484
+ },
485
+ "tokens": {
486
+ "borderColor": "{palette.color.transparent}",
487
+ "color": "{palette.color.greenDarkFern}",
488
+ "outerBorderColor": "{palette.color.greenDarkFern}",
489
+ "textLine": "{system.textLine.none}"
490
+ }
491
+ },
492
+ {
493
+ "if": {
494
+ "inactive": true,
495
+ "text": true
496
+ },
497
+ "tokens": {
498
+ "borderColor": "{palette.color.transparent}",
499
+ "color": "{palette.color.greyCloud}",
500
+ "outerBorderColor": "{palette.color.transparent}",
501
+ "textLine": "{system.textLine.none}"
502
+ }
503
+ },
504
+ {
505
+ "if": {
506
+ "inverse": true,
507
+ "text": true
508
+ },
509
+ "tokens": {
510
+ "borderRadius": "{palette.radius.none}",
511
+ "color": "{palette.color.white}"
512
+ }
513
+ },
514
+ {
515
+ "if": {
516
+ "focus": true,
517
+ "inverse": true,
518
+ "text": true
519
+ },
520
+ "tokens": {
521
+ "borderColor": "{palette.color.transparent}",
522
+ "outerBorderColor": "{palette.color.white}"
523
+ }
524
+ },
525
+ {
526
+ "if": {
527
+ "focus": true,
528
+ "inverse": true,
529
+ "pressed": true,
530
+ "text": true
531
+ },
532
+ "tokens": {
533
+ "borderColor": "{palette.color.transparent}",
534
+ "color": "{palette.color.greyCloud}",
535
+ "outerBorderColor": "{palette.color.greyCloud}"
536
+ }
537
+ },
538
+ {
539
+ "if": {
540
+ "inactive": true,
541
+ "inverse": true,
542
+ "text": true
543
+ },
544
+ "tokens": {
545
+ "borderColor": "{palette.color.transparent}",
546
+ "color": "{palette.color.greyCloud}",
547
+ "outerBorderColor": "{palette.color.transparent}"
548
+ }
348
549
  }
349
550
  ],
350
551
  "tokens": {
@@ -373,6 +574,8 @@
373
574
  "paddingTop": "{palette.size.size12}",
374
575
  "shadow": "{system.shadow.none}",
375
576
  "textAlign": "{system.flexJustifyContent.center}",
577
+ "textLine": "{system.textLine.none}",
578
+ "textLineStyle": "{system.textLineStyle.solid}",
376
579
  "width": "{system.size.none}"
377
580
  }
378
581
  },
@@ -2077,6 +2280,7 @@
2077
2280
  },
2078
2281
  "PaginationSideButton": {
2079
2282
  "appearances": {
2283
+ "compact": "{appearances.PaginationSideButton.compact}",
2080
2284
  "direction": "{appearances.PaginationSideButton.direction}",
2081
2285
  "focus": "{appearances.PaginationSideButton.focus}",
2082
2286
  "hover": "{appearances.PaginationSideButton.hover}",
@@ -2085,12 +2289,21 @@
2085
2289
  "viewport": "{appearances.system.viewport}"
2086
2290
  },
2087
2291
  "rules": [
2292
+ {
2293
+ "if": {
2294
+ "compact": true
2295
+ },
2296
+ "tokens": {
2297
+ "displayLabel": "{system.show.false}"
2298
+ }
2299
+ },
2088
2300
  {
2089
2301
  "if": {
2090
2302
  "viewport": ["xs", "sm"]
2091
2303
  },
2092
2304
  "tokens": {
2093
2305
  "borderRadius": "{palette.radius.pill32}",
2306
+ "displayLabel": "{system.show.false}",
2094
2307
  "paddingBottom": "{palette.size.size4}",
2095
2308
  "paddingTop": "{palette.size.size4}",
2096
2309
  "width": "{palette.size.size32}"
@@ -2157,6 +2370,7 @@
2157
2370
  "borderRadius": "{palette.radius.radius4}",
2158
2371
  "borderWidth": "{palette.border.border1}",
2159
2372
  "color": "{palette.color.greyShuttle}",
2373
+ "displayLabel": "{system.show.true}",
2160
2374
  "fontName": "{palette.fontName.HelveticaNow}",
2161
2375
  "fontSize": "{palette.fontSize.size16}",
2162
2376
  "fontWeight": "{palette.fontWeight.weight400}",
@@ -3540,6 +3754,9 @@
3540
3754
  "borderColor": "{palette.color.greyShuttle}",
3541
3755
  "borderRadius": "{palette.radius.radius4}",
3542
3756
  "borderWidth": "{palette.border.border1}",
3757
+ "buttonSize": "{palette.size.size32}",
3758
+ "buttonsGap": "{palette.size.size1}",
3759
+ "buttonsPaddingRight": "{palette.size.size8}",
3543
3760
  "color": "{palette.color.greyCharcoal}",
3544
3761
  "fontName": "{palette.fontName.HelveticaNow}",
3545
3762
  "fontSize": "{palette.fontSize.size16}",
@@ -3972,7 +4189,7 @@
3972
4189
  "size": "eyebrow"
3973
4190
  },
3974
4191
  "tokens": {
3975
- "color": "{palette.color.purpleTelus}"
4192
+ "color": "{palette.color.purpleDeluge}"
3976
4193
  }
3977
4194
  },
3978
4195
  {