@telus-uds/theme-allium 3.8.2 → 3.10.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/package.json CHANGED
@@ -1,19 +1,19 @@
1
1
  {
2
2
  "name": "@telus-uds/theme-allium",
3
- "version": "3.8.2",
3
+ "version": "3.10.0",
4
4
  "description": "Allium theme",
5
5
  "author": "TELUS Digital",
6
6
  "homepage": "https://github.com/telus/allium-design-system#readme",
7
7
  "license": "UNLICENSED",
8
- "main": "build/theme.js",
8
+ "main": "build/rn/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.2",
12
+ "@telus-uds/system-theme-tokens": "^2.8.0",
13
+ "@telus-uds/system-tokens": "^0.6.0"
14
14
  },
15
15
  "peerDependencies": {
16
- "@telus-uds/palette-allium": "^2.8.0"
16
+ "@telus-uds/palette-allium": "^2.8.2"
17
17
  },
18
18
  "files": [
19
19
  "build",
package/theme.json CHANGED
@@ -38,7 +38,12 @@
38
38
  "danger",
39
39
  "warning",
40
40
  "positive",
41
- "brand"
41
+ "brand",
42
+ "black",
43
+ "brandGradient",
44
+ "greenGradient",
45
+ "neutralGradient",
46
+ "purpleGradient"
42
47
  ]
43
48
  }
44
49
  },
@@ -51,6 +56,14 @@
51
56
  "backgroundColor": "{palette.color.white}"
52
57
  }
53
58
  },
59
+ {
60
+ "if": {
61
+ "background": "black"
62
+ },
63
+ "tokens": {
64
+ "backgroundColor": "{palette.color.black}"
65
+ }
66
+ },
54
67
  {
55
68
  "if": {
56
69
  "background": "light"
@@ -114,10 +127,47 @@
114
127
  "tokens": {
115
128
  "backgroundColor": "{palette.color.purpleTelus}"
116
129
  }
130
+ },
131
+ {
132
+ "if": {
133
+ "background": "brandGradient"
134
+ },
135
+ "tokens": {
136
+ "backgroundColor": "{system.color.none}",
137
+ "gradient": "{palette.gradient.brand}"
138
+ }
139
+ },
140
+ {
141
+ "if": {
142
+ "background": "greenGradient"
143
+ },
144
+ "tokens": {
145
+ "backgroundColor": "{system.color.none}",
146
+ "gradient": "{palette.gradient.green}"
147
+ }
148
+ },
149
+ {
150
+ "if": {
151
+ "background": "neutralGradient"
152
+ },
153
+ "tokens": {
154
+ "backgroundColor": "{system.color.none}",
155
+ "gradient": "{palette.gradient.neutral}"
156
+ }
157
+ },
158
+ {
159
+ "if": {
160
+ "background": "purpleGradient"
161
+ },
162
+ "tokens": {
163
+ "backgroundColor": "{system.color.none}",
164
+ "gradient": "{palette.gradient.purple}"
165
+ }
117
166
  }
118
167
  ],
119
168
  "tokens": {
120
- "backgroundColor": "{system.color.none}"
169
+ "backgroundColor": "{system.color.none}",
170
+ "gradient": "{system.gradient.none}"
121
171
  }
122
172
  },
123
173
  "Button": {
@@ -139,12 +189,17 @@
139
189
  "priority": {
140
190
  "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
191
  "type": "variant",
142
- "values": ["high"]
192
+ "values": ["high", "low"]
143
193
  },
144
194
  "size": {
145
195
  "type": "variant",
146
196
  "values": ["small"]
147
197
  },
198
+ "text": {
199
+ "description": "Text variant visually deprioritize the button styles",
200
+ "type": "variant",
201
+ "values": [true]
202
+ },
148
203
  "width": {
149
204
  "description": "Available in default or full-width. Default-width expands based on content Full-width expands to width of the container.",
150
205
  "type": "variant",
@@ -345,6 +400,193 @@
345
400
  "backgroundColor": "{palette.color.light60}",
346
401
  "color": "{palette.color.greyCharcoal}"
347
402
  }
403
+ },
404
+ {
405
+ "if": {
406
+ "text": true
407
+ },
408
+ "tokens": {
409
+ "backgroundColor": "{palette.color.transparent}",
410
+ "borderColor": "{palette.color.transparent}",
411
+ "borderWidth": "{system.border.zero}",
412
+ "minWidth": "{system.size.zero}",
413
+ "outerBorderColor": "{palette.color.transparent}",
414
+ "paddingLeft": "{palette.size.size0}",
415
+ "paddingRight": "{palette.size.size0}",
416
+ "textLine": "{system.textLine.underline}"
417
+ }
418
+ },
419
+ {
420
+ "if": {
421
+ "hover": true,
422
+ "text": true
423
+ },
424
+ "tokens": {
425
+ "textLine": "{system.textLine.none}"
426
+ }
427
+ },
428
+ {
429
+ "if": {
430
+ "priority": "high",
431
+ "text": true
432
+ },
433
+ "tokens": {
434
+ "color": "{palette.color.greenAccessible}"
435
+ }
436
+ },
437
+ {
438
+ "if": {
439
+ "priority": "low",
440
+ "text": true
441
+ },
442
+ "tokens": {
443
+ "color": "{palette.color.greyCharcoal}"
444
+ }
445
+ },
446
+ {
447
+ "if": {
448
+ "focus": true,
449
+ "text": true
450
+ },
451
+ "tokens": {
452
+ "borderRadius": "{palette.radius.none}",
453
+ "color": "{palette.color.greenAccessible}",
454
+ "outerBorderColor": "{palette.color.greenAccessible}"
455
+ }
456
+ },
457
+ {
458
+ "if": {
459
+ "hover": true,
460
+ "priority": "high",
461
+ "text": true
462
+ },
463
+ "tokens": {
464
+ "color": "{palette.color.greenSanFelix}"
465
+ }
466
+ },
467
+ {
468
+ "if": {
469
+ "hover": true,
470
+ "priority": null,
471
+ "text": true
472
+ },
473
+ "tokens": {
474
+ "color": "{palette.color.greenSanFelix}"
475
+ }
476
+ },
477
+ {
478
+ "if": {
479
+ "hover": true,
480
+ "priority": "low",
481
+ "text": true
482
+ },
483
+ "tokens": {
484
+ "color": "{palette.color.greyCharcoal}"
485
+ }
486
+ },
487
+ {
488
+ "if": {
489
+ "danger": true,
490
+ "hover": true,
491
+ "text": true
492
+ },
493
+ "tokens": {
494
+ "color": "{palette.color.redDark}"
495
+ }
496
+ },
497
+ {
498
+ "if": {
499
+ "pressed": true,
500
+ "text": true
501
+ },
502
+ "tokens": {
503
+ "borderColor": "{palette.color.transparent}",
504
+ "color": "{palette.color.greenDarkFern}",
505
+ "outerBorderColor": "{palette.color.transparent}",
506
+ "textLine": "{system.textLine.none}"
507
+ }
508
+ },
509
+ {
510
+ "if": {
511
+ "focus": true,
512
+ "text": true
513
+ },
514
+ "tokens": {
515
+ "borderColor": "{palette.color.transparent}",
516
+ "color": "{palette.color.greenAccessible}",
517
+ "outerBorderColor": "{palette.color.greenAccessible}"
518
+ }
519
+ },
520
+ {
521
+ "if": {
522
+ "focus": true,
523
+ "pressed": true,
524
+ "text": true
525
+ },
526
+ "tokens": {
527
+ "borderColor": "{palette.color.transparent}",
528
+ "color": "{palette.color.greenDarkFern}",
529
+ "outerBorderColor": "{palette.color.greenDarkFern}",
530
+ "textLine": "{system.textLine.none}"
531
+ }
532
+ },
533
+ {
534
+ "if": {
535
+ "inactive": true,
536
+ "text": true
537
+ },
538
+ "tokens": {
539
+ "borderColor": "{palette.color.transparent}",
540
+ "color": "{palette.color.greyCloud}",
541
+ "outerBorderColor": "{palette.color.transparent}",
542
+ "textLine": "{system.textLine.none}"
543
+ }
544
+ },
545
+ {
546
+ "if": {
547
+ "inverse": true,
548
+ "text": true
549
+ },
550
+ "tokens": {
551
+ "borderRadius": "{palette.radius.none}",
552
+ "color": "{palette.color.white}"
553
+ }
554
+ },
555
+ {
556
+ "if": {
557
+ "focus": true,
558
+ "inverse": true,
559
+ "text": true
560
+ },
561
+ "tokens": {
562
+ "borderColor": "{palette.color.transparent}",
563
+ "outerBorderColor": "{palette.color.white}"
564
+ }
565
+ },
566
+ {
567
+ "if": {
568
+ "focus": true,
569
+ "inverse": true,
570
+ "pressed": true,
571
+ "text": true
572
+ },
573
+ "tokens": {
574
+ "borderColor": "{palette.color.transparent}",
575
+ "color": "{palette.color.greyCloud}",
576
+ "outerBorderColor": "{palette.color.greyCloud}"
577
+ }
578
+ },
579
+ {
580
+ "if": {
581
+ "inactive": true,
582
+ "inverse": true,
583
+ "text": true
584
+ },
585
+ "tokens": {
586
+ "borderColor": "{palette.color.transparent}",
587
+ "color": "{palette.color.greyCloud}",
588
+ "outerBorderColor": "{palette.color.transparent}"
589
+ }
348
590
  }
349
591
  ],
350
592
  "tokens": {
@@ -373,6 +615,158 @@
373
615
  "paddingTop": "{palette.size.size12}",
374
616
  "shadow": "{system.shadow.none}",
375
617
  "textAlign": "{system.flexJustifyContent.center}",
618
+ "textLine": "{system.textLine.none}",
619
+ "textLineStyle": "{system.textLineStyle.solid}",
620
+ "width": "{system.size.none}"
621
+ }
622
+ },
623
+ "ButtonDropdown": {
624
+ "appearances": {
625
+ "focus": "{appearances.ButtonDropdown.focus}",
626
+ "hover": "{appearances.ButtonDropdown.hover}",
627
+ "inactive": "{appearances.ButtonDropdown.inactive}",
628
+ "open": "{appearances.ButtonDropdown.open}",
629
+ "pressed": "{appearances.ButtonDropdown.pressed}",
630
+ "selected": "{appearances.ButtonDropdown.selected}"
631
+ },
632
+ "rules": [
633
+ {
634
+ "if": {
635
+ "open": true
636
+ },
637
+ "tokens": {
638
+ "icon": "{palette.icon.CaretUp}"
639
+ }
640
+ },
641
+ {
642
+ "if": {
643
+ "pressed": true
644
+ },
645
+ "tokens": {
646
+ "backgroundColor": "{palette.color.greyShuttle}",
647
+ "borderColor": "{palette.color.greyShuttle}",
648
+ "borderWidth": "{palette.border.none}",
649
+ "color": "{palette.color.white}",
650
+ "iconBackground": "{palette.color.greyCharcoal}",
651
+ "iconColor": "{palette.color.white}"
652
+ }
653
+ },
654
+ {
655
+ "if": {
656
+ "focus": true
657
+ },
658
+ "tokens": {
659
+ "borderColor": "{palette.color.greyShuttle}",
660
+ "outerBorderColor": "{palette.color.greyShuttle}",
661
+ "outerBorderGap": "{palette.size.size2}",
662
+ "outerBorderWidth": "{palette.border.border2}"
663
+ }
664
+ },
665
+ {
666
+ "if": {
667
+ "hover": true
668
+ },
669
+ "tokens": {
670
+ "borderWidth": "{palette.border.border3}"
671
+ }
672
+ },
673
+ {
674
+ "if": {
675
+ "selected": true
676
+ },
677
+ "tokens": {
678
+ "backgroundColor": "{palette.color.purpleTelus}",
679
+ "borderWidth": "{palette.border.none}",
680
+ "color": "{palette.color.white}",
681
+ "iconBackground": "{palette.color.purpleDeluge}",
682
+ "iconColor": "{palette.color.white}"
683
+ }
684
+ },
685
+ {
686
+ "if": {
687
+ "hover": true,
688
+ "selected": true
689
+ },
690
+ "tokens": {
691
+ "backgroundColor": "{palette.color.purpleDeluge}",
692
+ "iconBackground": "{palette.color.purpleTelus}"
693
+ }
694
+ },
695
+ {
696
+ "if": {
697
+ "pressed": true,
698
+ "selected": true
699
+ },
700
+ "tokens": {
701
+ "backgroundColor": "{palette.color.purpleDark}",
702
+ "iconBackground": "{palette.color.purpleDeluge}"
703
+ }
704
+ },
705
+ {
706
+ "if": {
707
+ "focus": true,
708
+ "selected": true
709
+ },
710
+ "tokens": {
711
+ "outerBorderColor": "{palette.color.purpleTelus}"
712
+ }
713
+ },
714
+ {
715
+ "if": {
716
+ "focus": true,
717
+ "pressed": true,
718
+ "selected": true
719
+ },
720
+ "tokens": {
721
+ "iconBackground": "{palette.color.purpleDeluge}",
722
+ "outerBorderColor": "{palette.color.purpleDark}"
723
+ }
724
+ },
725
+ {
726
+ "if": {
727
+ "inactive": true
728
+ },
729
+ "tokens": {
730
+ "backgroundColor": "{palette.color.greyCloud}",
731
+ "borderWidth": "{system.border.zero}",
732
+ "color": "{palette.color.white}"
733
+ }
734
+ }
735
+ ],
736
+ "tokens": {
737
+ "alignSelf": "{system.flexAlign.flexStart}",
738
+ "backgroundColor": "{palette.color.white}",
739
+ "borderColor": "{palette.color.greyCloud}",
740
+ "borderRadius": "{palette.radius.pill32}",
741
+ "borderWidth": "{palette.border.border1}",
742
+ "color": "{palette.color.greyShuttle}",
743
+ "fontName": "{palette.fontName.HelveticaNow}",
744
+ "fontSize": "{palette.fontSize.size14}",
745
+ "fontWeight": "{palette.fontWeight.weight700}",
746
+ "icon": "{palette.icon.CaretDown}",
747
+ "iconAlignSelf": "{system.flexAlign.center}",
748
+ "iconBackground": "{palette.color.greyAthens}",
749
+ "iconBorderRadius": "{palette.radius.pill32}",
750
+ "iconColor": "{palette.color.greyThunder}",
751
+ "iconPadding": "{palette.size.size2}",
752
+ "iconPosition": "{system.position.right}",
753
+ "iconSize": "{palette.size.size16}",
754
+ "iconSpace": "{system.integer.2}",
755
+ "iconTranslateX": "{palette.size.size0}",
756
+ "iconTranslateY": "{palette.size.size0}",
757
+ "lineHeight": "{palette.lineHeight.ratio10to7}",
758
+ "minWidth": "{system.size.zero}",
759
+ "opacity": "{system.opacity.opaque}",
760
+ "outerBackgroundColor": "{palette.color.transparent}",
761
+ "outerBorderColor": "{palette.color.transparent}",
762
+ "outerBorderGap": "{palette.size.size2}",
763
+ "outerBorderWidth": "{palette.border.border2}",
764
+ "paddingBottom": "{palette.size.size8}",
765
+ "paddingLeft": "{palette.size.size16}",
766
+ "paddingRight": "{palette.size.size8}",
767
+ "paddingTop": "{palette.size.size8}",
768
+ "shadow": "{system.shadow.none}",
769
+ "textAlign": "{system.flexJustifyContent.center}",
376
770
  "width": "{system.size.none}"
377
771
  }
378
772
  },
@@ -672,6 +1066,7 @@
672
1066
  }
673
1067
  ],
674
1068
  "tokens": {
1069
+ "backgroundColor": "{palette.color.transparent}",
675
1070
  "nextIcon": "{palette.icon.ArrowRight}",
676
1071
  "previousIcon": "{palette.icon.ArrowLeft}",
677
1072
  "showPanelNavigation": "{system.show.true}",
@@ -695,6 +1090,10 @@
695
1090
  "focus": "{appearances.CarouselTabsPanelItem.focus}",
696
1091
  "hover": "{appearances.CarouselTabsPanelItem.hover}",
697
1092
  "inactive": "{appearances.CarouselTabsPanelItem.inactive}",
1093
+ "inverse": {
1094
+ "type": "variant",
1095
+ "values": [true]
1096
+ },
698
1097
  "pressed": "{appearances.CarouselTabsPanelItem.pressed}",
699
1098
  "selected": "{appearances.CarouselTabsPanelItem.selected}"
700
1099
  },
@@ -759,6 +1158,65 @@
759
1158
  "fontName": "{palette.fontName.HelveticaNow}",
760
1159
  "fontWeight": "{palette.fontWeight.weight400}"
761
1160
  }
1161
+ },
1162
+ {
1163
+ "if": {
1164
+ "inverse": true
1165
+ },
1166
+ "tokens": {
1167
+ "color": "{palette.color.white}"
1168
+ }
1169
+ },
1170
+ {
1171
+ "if": {
1172
+ "hover": true,
1173
+ "inverse": true
1174
+ },
1175
+ "tokens": {
1176
+ "borderBottomColor": "{palette.color.greenTelus}",
1177
+ "color": "{palette.color.greenTelus}"
1178
+ }
1179
+ },
1180
+ {
1181
+ "if": {
1182
+ "inverse": true,
1183
+ "pressed": true
1184
+ },
1185
+ "tokens": {
1186
+ "borderBottomColor": "{palette.color.greyShuttle}",
1187
+ "color": "{palette.color.greyShuttle}"
1188
+ }
1189
+ },
1190
+ {
1191
+ "if": {
1192
+ "focus": true,
1193
+ "inverse": true
1194
+ },
1195
+ "tokens": {
1196
+ "borderBottomColor": "{palette.color.greenTelus}",
1197
+ "color": "{palette.color.greenTelus}"
1198
+ }
1199
+ },
1200
+ {
1201
+ "if": {
1202
+ "focus": true,
1203
+ "inverse": true,
1204
+ "pressed": true
1205
+ },
1206
+ "tokens": {
1207
+ "borderBottomColor": "{palette.color.greyShuttle}",
1208
+ "color": "{palette.color.greyShuttle}"
1209
+ }
1210
+ },
1211
+ {
1212
+ "if": {
1213
+ "inverse": true,
1214
+ "selected": true
1215
+ },
1216
+ "tokens": {
1217
+ "borderBottomColor": "{palette.color.greenYellow}",
1218
+ "color": "{palette.color.greenTelus}"
1219
+ }
762
1220
  }
763
1221
  ],
764
1222
  "tokens": {
@@ -818,6 +1276,15 @@
818
1276
  "inputBorderColor": "{palette.color.transparent}",
819
1277
  "labelColor": "{palette.color.greyShuttle}"
820
1278
  }
1279
+ },
1280
+ {
1281
+ "if": {
1282
+ "hover": true
1283
+ },
1284
+ "tokens": {
1285
+ "inputOutlineColor": "{palette.color.greyMystic}",
1286
+ "inputOutlineWidth": "{palette.border.border2}"
1287
+ }
821
1288
  }
822
1289
  ],
823
1290
  "tokens": {
@@ -1227,6 +1694,11 @@
1227
1694
  },
1228
1695
  "IconButton": {
1229
1696
  "appearances": {
1697
+ "compact": {
1698
+ "description": "Without the outer border gap",
1699
+ "type": "variant",
1700
+ "values": [true]
1701
+ },
1230
1702
  "focus": "{appearances.IconButton.focus}",
1231
1703
  "hover": "{appearances.IconButton.hover}",
1232
1704
  "inverse": {
@@ -1410,6 +1882,14 @@
1410
1882
  "borderColor": "{palette.color.purpleTelus}",
1411
1883
  "borderWidth": "{palette.border.border3}"
1412
1884
  }
1885
+ },
1886
+ {
1887
+ "if": {
1888
+ "compact": true
1889
+ },
1890
+ "tokens": {
1891
+ "outerBorderGap": "{system.size.zero}"
1892
+ }
1413
1893
  }
1414
1894
  ],
1415
1895
  "tokens": {
@@ -2077,6 +2557,7 @@
2077
2557
  },
2078
2558
  "PaginationSideButton": {
2079
2559
  "appearances": {
2560
+ "compact": "{appearances.PaginationSideButton.compact}",
2080
2561
  "direction": "{appearances.PaginationSideButton.direction}",
2081
2562
  "focus": "{appearances.PaginationSideButton.focus}",
2082
2563
  "hover": "{appearances.PaginationSideButton.hover}",
@@ -2085,12 +2566,21 @@
2085
2566
  "viewport": "{appearances.system.viewport}"
2086
2567
  },
2087
2568
  "rules": [
2569
+ {
2570
+ "if": {
2571
+ "compact": true
2572
+ },
2573
+ "tokens": {
2574
+ "displayLabel": "{system.show.false}"
2575
+ }
2576
+ },
2088
2577
  {
2089
2578
  "if": {
2090
2579
  "viewport": ["xs", "sm"]
2091
2580
  },
2092
2581
  "tokens": {
2093
2582
  "borderRadius": "{palette.radius.pill32}",
2583
+ "displayLabel": "{system.show.false}",
2094
2584
  "paddingBottom": "{palette.size.size4}",
2095
2585
  "paddingTop": "{palette.size.size4}",
2096
2586
  "width": "{palette.size.size32}"
@@ -2157,6 +2647,7 @@
2157
2647
  "borderRadius": "{palette.radius.radius4}",
2158
2648
  "borderWidth": "{palette.border.border1}",
2159
2649
  "color": "{palette.color.greyShuttle}",
2650
+ "displayLabel": "{system.show.true}",
2160
2651
  "fontName": "{palette.fontName.HelveticaNow}",
2161
2652
  "fontSize": "{palette.fontSize.size16}",
2162
2653
  "fontWeight": "{palette.fontWeight.weight400}",
@@ -3540,6 +4031,10 @@
3540
4031
  "borderColor": "{palette.color.greyShuttle}",
3541
4032
  "borderRadius": "{palette.radius.radius4}",
3542
4033
  "borderWidth": "{palette.border.border1}",
4034
+ "buttonSize": "{palette.size.size32}",
4035
+ "buttonsGap": "{palette.size.size1}",
4036
+ "buttonsPaddingRight": "{palette.size.size8}",
4037
+ "clearButtonIcon": "{palette.icon.Times}",
3543
4038
  "color": "{palette.color.greyCharcoal}",
3544
4039
  "fontName": "{palette.fontName.HelveticaNow}",
3545
4040
  "fontSize": "{palette.fontSize.size16}",
@@ -3972,7 +4467,7 @@
3972
4467
  "size": "eyebrow"
3973
4468
  },
3974
4469
  "tokens": {
3975
- "color": "{palette.color.purpleTelus}"
4470
+ "color": "{palette.color.purpleDeluge}"
3976
4471
  }
3977
4472
  },
3978
4473
  {