@telus-uds/theme-allium 3.4.2 → 3.6.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.
package/build/theme.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  *
3
3
  * Do not edit directly
4
- * Generated on Thu, 28 Jul 2022 23:41:32 GMT
4
+ * Generated on Wed, 17 Aug 2022 20:48:35 GMT
5
5
  *
6
6
  */
7
7
 
@@ -238,6 +238,9 @@ module.exports = {
238
238
  fontName: 'HelveticaNow',
239
239
  fontSize: 16,
240
240
  fontWeight: '700',
241
+ icon: null,
242
+ iconSize: 24,
243
+ iconSpace: 2,
241
244
  lineHeight: 1.5,
242
245
  minWidth: 144,
243
246
  opacity: 1,
@@ -382,7 +385,10 @@ module.exports = {
382
385
  },
383
386
  Card: {
384
387
  appearances: {
385
- background: { type: 'variant', values: [ 'alternative' ] },
388
+ background: {
389
+ type: 'variant',
390
+ values: [ 'alternative', 'subtle', 'grid' ]
391
+ },
386
392
  padding: {
387
393
  type: 'variant',
388
394
  values: [ 'narrow', 'intermediate', 'compact', 'custom' ]
@@ -398,6 +404,14 @@ module.exports = {
398
404
  if: { background: 'alternative' },
399
405
  tokens: { backgroundColor: '#f4f4f7' }
400
406
  },
407
+ {
408
+ if: { background: 'subtle' },
409
+ tokens: { backgroundColor: '#fafafa' }
410
+ },
411
+ {
412
+ if: { background: 'grid' },
413
+ tokens: { backgroundColor: '#fafafa', borderWidth: 0 }
414
+ },
401
415
  {
402
416
  if: { viewport: [ 'md', 'lg', 'xl' ] },
403
417
  tokens: {
@@ -487,7 +501,7 @@ module.exports = {
487
501
  rules: [
488
502
  {
489
503
  if: { viewport: [ 'xs', 'sm' ] },
490
- tokens: { showPreviousNextNavigation: false }
504
+ tokens: { showPreviousNextNavigation: false, thumbnailSize: 48 }
491
505
  }
492
506
  ],
493
507
  tokens: {
@@ -496,7 +510,112 @@ module.exports = {
496
510
  showPanelNavigation: true,
497
511
  showPreviousNextNavigation: true,
498
512
  spaceBetweenSlideAndPanelNavigation: 32,
499
- spaceBetweenSlideAndPreviousNextNavigation: 24
513
+ spaceBetweenSlideAndPreviousNextNavigation: 24,
514
+ thumbnailBorderColor: '#e3e6e8',
515
+ thumbnailBorderRadius: 4,
516
+ thumbnailBorderWidth: 1,
517
+ thumbnailContainerPaddingTop: 24,
518
+ thumbnailMargin: 4,
519
+ thumbnailPadding: 8,
520
+ thumbnailSelectedBorderColor: '#676e73',
521
+ thumbnailSelectedBorderWidth: 2,
522
+ thumbnailSize: 56
523
+ }
524
+ },
525
+ CarouselTabsPanelItem: {
526
+ appearances: {
527
+ focus: {
528
+ description: "Currently only web has good support for this. Applies when an interactive component's focus handler is triggered, such as keyboard tabbing or selection.",
529
+ type: 'state',
530
+ values: [ true ]
531
+ },
532
+ hover: {
533
+ description: "Currently web only. Applies when an interactive component's hover handler is triggered, such as on mouseover.",
534
+ type: 'state',
535
+ values: [ true ]
536
+ },
537
+ inactive: {
538
+ description: 'Prevents an interactive component from being interacted with and applies accessibility attributes to indicate to the user that this component cannot be used.',
539
+ type: 'state',
540
+ values: [ true ]
541
+ },
542
+ pressed: {
543
+ description: 'Applies while an interactive component is being physically pressed. Most visible on touchscreen taps; in React Native Web, this is visible on web mouse clicks only if the pressable is held down.',
544
+ type: 'state',
545
+ values: [ true ]
546
+ },
547
+ selected: {
548
+ description: 'Applies while an interactive component is the currently selected one in a set of states or components, for example a button in a `ButtonGroup`.',
549
+ type: 'state',
550
+ values: [ true ]
551
+ }
552
+ },
553
+ rules: [
554
+ {
555
+ if: { hover: true },
556
+ tokens: {
557
+ borderBottomColor: '#2b8000',
558
+ borderBottomWidth: 2,
559
+ color: '#2b8000'
560
+ }
561
+ },
562
+ {
563
+ if: { focus: true },
564
+ tokens: {
565
+ borderBottomColor: '#2b8000',
566
+ borderBottomWidth: 4,
567
+ color: '#2b8000'
568
+ }
569
+ },
570
+ {
571
+ if: { pressed: true },
572
+ tokens: {
573
+ borderBottomColor: '#1f5c09',
574
+ borderBottomWidth: 2,
575
+ color: '#1f5c09'
576
+ }
577
+ },
578
+ {
579
+ if: { focus: true, pressed: true },
580
+ tokens: { borderBottomWidth: 4 }
581
+ },
582
+ {
583
+ if: { inactive: true },
584
+ tokens: {
585
+ borderBottomColor: '#676e73',
586
+ borderBottomWidth: 4,
587
+ color: '#676e73'
588
+ }
589
+ },
590
+ {
591
+ if: { selected: true },
592
+ tokens: {
593
+ borderBottomColor: '#676e73',
594
+ borderBottomWidth: 2,
595
+ color: '#676e73',
596
+ fontName: 'HelveticaNow',
597
+ fontWeight: '400'
598
+ }
599
+ }
600
+ ],
601
+ tokens: {
602
+ alignItems: 'flex-start',
603
+ borderBottomColor: 'transparent',
604
+ borderBottomStyle: 'solid',
605
+ borderBottomWidth: 1,
606
+ color: '#414547',
607
+ flex: 1,
608
+ fontName: 'HelveticaNow',
609
+ fontScaleCap: 64,
610
+ fontSize: 14,
611
+ fontWeight: '400',
612
+ justifyContent: 'flex-start',
613
+ letterSpacing: 0,
614
+ lineHeight: 1.125,
615
+ paddingBottom: 16,
616
+ paddingLeft: 0,
617
+ paddingRight: 0,
618
+ paddingTop: 0
500
619
  }
501
620
  },
502
621
  Checkbox: {
@@ -772,6 +891,15 @@ module.exports = {
772
891
  },
773
892
  Icon: {
774
893
  appearances: {
894
+ color: {
895
+ type: 'variant',
896
+ values: [
897
+ 'brand', 'default',
898
+ 'subtle', 'success',
899
+ 'danger', 'warning',
900
+ 'inverse'
901
+ ]
902
+ },
775
903
  rank: { type: 'variant', values: [ 'primary' ] },
776
904
  size: {
777
905
  type: 'variant',
@@ -782,6 +910,13 @@ module.exports = {
782
910
  { if: { size: 'micro' }, tokens: { size: 16 } },
783
911
  { if: { size: 'small' }, tokens: { size: 20 } },
784
912
  { if: { size: 'large' }, tokens: { size: 32 } },
913
+ { if: { color: 'brand' }, tokens: { color: '#4b286d' } },
914
+ { if: { color: 'default' }, tokens: { color: '#414547' } },
915
+ { if: { color: 'subtle' }, tokens: { color: '#676e73' } },
916
+ { if: { color: 'success' }, tokens: { color: '#66cc00' } },
917
+ { if: { color: 'danger' }, tokens: { color: '#c12335' } },
918
+ { if: { color: 'warning' }, tokens: { color: '#b4872c' } },
919
+ { if: { color: 'inverse' }, tokens: { color: '#414547' } },
785
920
  { if: { size: 'extraLarge' }, tokens: { size: 48 } },
786
921
  { if: { rank: 'primary' }, tokens: { color: '#4b286d' } }
787
922
  ],
@@ -2153,6 +2288,21 @@ module.exports = {
2153
2288
  squareRadius: 4
2154
2289
  }
2155
2290
  },
2291
+ SkipLink: {
2292
+ appearances: {},
2293
+ rules: [],
2294
+ tokens: {
2295
+ backgroundColor: '#7c53a5',
2296
+ borderRadius: 32,
2297
+ color: '#ffffff',
2298
+ outlineColor: '#7c53a5',
2299
+ outlineOffset: 2,
2300
+ outlineStyle: 'solid',
2301
+ outlineWidth: 1,
2302
+ paddingHorizontal: 8,
2303
+ paddingVertical: 8
2304
+ }
2305
+ },
2156
2306
  StackView: {
2157
2307
  appearances: {},
2158
2308
  rules: [],
@@ -2938,7 +3088,7 @@ module.exports = {
2938
3088
  tokens: {
2939
3089
  fontName: 'HelveticaNow',
2940
3090
  fontSize: 24,
2941
- fontWeight: '500',
3091
+ fontWeight: '400',
2942
3092
  lineHeight: 1.33333333333
2943
3093
  }
2944
3094
  },
@@ -3106,5 +3256,5 @@ module.exports = {
3106
3256
  tokens: { size: 96 }
3107
3257
  }
3108
3258
  },
3109
- metadata: { name: 'theme-allium', themeTokensVersion: '2.1.0' }
3259
+ metadata: { name: 'theme-allium', themeTokensVersion: '2.3.0' }
3110
3260
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@telus-uds/theme-allium",
3
- "version": "3.4.2",
3
+ "version": "3.6.1",
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.3.0",
12
- "@telus-uds/system-theme-tokens": "^2.1.0",
11
+ "@telus-uds/palette-allium": "^2.4.0",
12
+ "@telus-uds/system-theme-tokens": "^2.3.0",
13
13
  "@telus-uds/system-tokens": "^0.1.5"
14
14
  },
15
15
  "peerDependencies": {
16
- "@telus-uds/palette-allium": "^2.3.0"
16
+ "@telus-uds/palette-allium": "^2.4.0"
17
17
  },
18
18
  "files": [
19
19
  "build",
@@ -25,7 +25,7 @@
25
25
  },
26
26
  "scripts": {
27
27
  "build": "UDS_PALETTE=@telus-uds/palette-allium system-tokens-build-theme",
28
- "dev": "nodemon -w src -x 'yarn build'"
28
+ "dev": "nodemon -w src -x 'npm run build'"
29
29
  },
30
30
  "bugs": {
31
31
  "url": "https://github.com/telus/allium-design-system/issues"
package/theme.json CHANGED
@@ -357,6 +357,9 @@
357
357
  "fontName": "{palette.fontName.HelveticaNow}",
358
358
  "fontSize": "{palette.fontSize.size16}",
359
359
  "fontWeight": "{palette.fontWeight.weight700}",
360
+ "icon": "{system.icon.none}",
361
+ "iconSize": "{palette.size.size24}",
362
+ "iconSpace": "{system.integer.2}",
360
363
  "lineHeight": "{palette.lineHeight.ratio3to2}",
361
364
  "minWidth": "{palette.size.size144}",
362
365
  "opacity": "{system.opacity.opaque}",
@@ -524,7 +527,7 @@
524
527
  "appearances": {
525
528
  "background": {
526
529
  "type": "variant",
527
- "values": ["alternative"]
530
+ "values": ["alternative", "subtle", "grid"]
528
531
  },
529
532
  "padding": {
530
533
  "type": "variant",
@@ -541,6 +544,23 @@
541
544
  "backgroundColor": "{palette.color.greyAthens}"
542
545
  }
543
546
  },
547
+ {
548
+ "if": {
549
+ "background": "subtle"
550
+ },
551
+ "tokens": {
552
+ "backgroundColor": "{palette.color.greyAlabaster}"
553
+ }
554
+ },
555
+ {
556
+ "if": {
557
+ "background": "grid"
558
+ },
559
+ "tokens": {
560
+ "backgroundColor": "{palette.color.greyAlabaster}",
561
+ "borderWidth": "{palette.border.none}"
562
+ }
563
+ },
544
564
  {
545
565
  "if": {
546
566
  "viewport": ["md", "lg", "xl"]
@@ -645,7 +665,8 @@
645
665
  "viewport": ["xs", "sm"]
646
666
  },
647
667
  "tokens": {
648
- "showPreviousNextNavigation": "{system.show.false}"
668
+ "showPreviousNextNavigation": "{system.show.false}",
669
+ "thumbnailSize": "{palette.size.size48}"
649
670
  }
650
671
  }
651
672
  ],
@@ -655,7 +676,107 @@
655
676
  "showPanelNavigation": "{system.show.true}",
656
677
  "showPreviousNextNavigation": "{system.show.true}",
657
678
  "spaceBetweenSlideAndPanelNavigation": "{palette.size.size32}",
658
- "spaceBetweenSlideAndPreviousNextNavigation": "{palette.size.size24}"
679
+ "spaceBetweenSlideAndPreviousNextNavigation": "{palette.size.size24}",
680
+ "thumbnailBorderColor": "{palette.color.greyMystic}",
681
+ "thumbnailBorderRadius": "{palette.radius.radius4}",
682
+ "thumbnailBorderWidth": "{palette.border.border1}",
683
+ "thumbnailContainerPaddingTop": "{palette.size.size24}",
684
+ "thumbnailMargin": "{palette.size.size4}",
685
+ "thumbnailPadding": "{palette.size.size8}",
686
+ "thumbnailSelectedBorderColor": "{palette.color.greyShuttle}",
687
+ "thumbnailSelectedBorderWidth": "{palette.border.border2}",
688
+ "thumbnailSize": "{palette.size.size56}"
689
+ }
690
+ },
691
+ "CarouselTabsPanelItem": {
692
+ "appearances": {
693
+ "focus": "{appearances.CarouselTabsPanelItem.focus}",
694
+ "hover": "{appearances.CarouselTabsPanelItem.hover}",
695
+ "inactive": "{appearances.CarouselTabsPanelItem.inactive}",
696
+ "pressed": "{appearances.CarouselTabsPanelItem.pressed}",
697
+ "selected": "{appearances.CarouselTabsPanelItem.selected}"
698
+ },
699
+ "rules": [
700
+ {
701
+ "if": {
702
+ "hover": true
703
+ },
704
+ "tokens": {
705
+ "borderBottomColor": "{palette.color.greenAccessible}",
706
+ "borderBottomWidth": "{palette.border.border2}",
707
+ "color": "{palette.color.greenAccessible}"
708
+ }
709
+ },
710
+ {
711
+ "if": {
712
+ "focus": true
713
+ },
714
+ "tokens": {
715
+ "borderBottomColor": "{palette.color.greenAccessible}",
716
+ "borderBottomWidth": "{palette.border.border4}",
717
+ "color": "{palette.color.greenAccessible}"
718
+ }
719
+ },
720
+ {
721
+ "if": {
722
+ "pressed": true
723
+ },
724
+ "tokens": {
725
+ "borderBottomColor": "{palette.color.greenSanFelix}",
726
+ "borderBottomWidth": "{palette.border.border2}",
727
+ "color": "{palette.color.greenSanFelix}"
728
+ }
729
+ },
730
+ {
731
+ "if": {
732
+ "focus": true,
733
+ "pressed": true
734
+ },
735
+ "tokens": {
736
+ "borderBottomWidth": "{palette.border.border4}"
737
+ }
738
+ },
739
+ {
740
+ "if": {
741
+ "inactive": true
742
+ },
743
+ "tokens": {
744
+ "borderBottomColor": "{palette.color.greyShuttle}",
745
+ "borderBottomWidth": "{palette.border.border4}",
746
+ "color": "{palette.color.greyShuttle}"
747
+ }
748
+ },
749
+ {
750
+ "if": {
751
+ "selected": true
752
+ },
753
+ "tokens": {
754
+ "borderBottomColor": "{palette.color.greyShuttle}",
755
+ "borderBottomWidth": "{palette.border.border2}",
756
+ "color": "{palette.color.greyShuttle}",
757
+ "fontName": "{palette.fontName.HelveticaNow}",
758
+ "fontWeight": "{palette.fontWeight.weight400}"
759
+ }
760
+ }
761
+ ],
762
+ "tokens": {
763
+ "alignItems": "{system.flexAlign.flexStart}",
764
+ "borderBottomColor": "{system.color.transparent}",
765
+ "borderBottomStyle": "{system.borderStyle.solid}",
766
+ "borderBottomWidth": "{palette.border.border1}",
767
+ "color": "{palette.color.greyCharcoal}",
768
+ "flex": "{system.integer.1}",
769
+ "fontName": "{palette.fontName.HelveticaNow}",
770
+ "fontScaleCap": "{palette.fontSize.size64}",
771
+ "fontSize": "{palette.fontSize.size14}",
772
+ "fontWeight": "{palette.fontWeight.weight400}",
773
+ "justifyContent": "{system.flexJustifyContent.flexStart}",
774
+ "letterSpacing": "{system.letterSpacing.none}",
775
+ "lineHeight": "{palette.lineHeight.ratio9to8}",
776
+ "paddingBottom": "{palette.size.size16}",
777
+ "paddingLeft": "{system.size.zero}",
778
+ "paddingRight": "{system.size.zero}",
779
+ "paddingTop": "{system.size.zero}"
659
780
  }
660
781
  },
661
782
  "Checkbox": {
@@ -983,6 +1104,10 @@
983
1104
  },
984
1105
  "Icon": {
985
1106
  "appearances": {
1107
+ "color": {
1108
+ "type": "variant",
1109
+ "values": ["brand", "default", "subtle", "success", "danger", "warning", "inverse"]
1110
+ },
986
1111
  "rank": {
987
1112
  "type": "variant",
988
1113
  "values": ["primary"]
@@ -1017,6 +1142,62 @@
1017
1142
  "size": "{palette.size.size32}"
1018
1143
  }
1019
1144
  },
1145
+ {
1146
+ "if": {
1147
+ "color": "brand"
1148
+ },
1149
+ "tokens": {
1150
+ "color": "{palette.color.purpleTelus}"
1151
+ }
1152
+ },
1153
+ {
1154
+ "if": {
1155
+ "color": "default"
1156
+ },
1157
+ "tokens": {
1158
+ "color": "{palette.color.greyCharcoal}"
1159
+ }
1160
+ },
1161
+ {
1162
+ "if": {
1163
+ "color": "subtle"
1164
+ },
1165
+ "tokens": {
1166
+ "color": "{palette.color.greyShuttle}"
1167
+ }
1168
+ },
1169
+ {
1170
+ "if": {
1171
+ "color": "success"
1172
+ },
1173
+ "tokens": {
1174
+ "color": "{palette.color.greenTelus}"
1175
+ }
1176
+ },
1177
+ {
1178
+ "if": {
1179
+ "color": "danger"
1180
+ },
1181
+ "tokens": {
1182
+ "color": "{palette.color.redDark}"
1183
+ }
1184
+ },
1185
+ {
1186
+ "if": {
1187
+ "color": "warning"
1188
+ },
1189
+ "tokens": {
1190
+ "color": "{palette.color.amberDark}"
1191
+ }
1192
+ },
1193
+ {
1194
+ "if": {
1195
+ "color": "inverse"
1196
+ },
1197
+ "tokens": {
1198
+ "color": "{palette.color.greyCharcoal}"
1199
+ }
1200
+ },
1020
1201
  {
1021
1202
  "if": {
1022
1203
  "size": "extraLarge"
@@ -2629,6 +2810,21 @@
2629
2810
  "squareRadius": "{palette.radius.radius4}"
2630
2811
  }
2631
2812
  },
2813
+ "SkipLink": {
2814
+ "appearances": {},
2815
+ "rules": [],
2816
+ "tokens": {
2817
+ "backgroundColor": "{palette.color.purpleDeluge}",
2818
+ "borderRadius": "{palette.radius.pill32}",
2819
+ "color": "{palette.color.white}",
2820
+ "outlineColor": "{palette.color.purpleDeluge}",
2821
+ "outlineOffset": "{palette.border.border2}",
2822
+ "outlineStyle": "{system.borderStyle.solid}",
2823
+ "outlineWidth": "{palette.border.border1}",
2824
+ "paddingHorizontal": "{palette.size.size8}",
2825
+ "paddingVertical": "{palette.size.size8}"
2826
+ }
2827
+ },
2632
2828
  "StackView": {
2633
2829
  "appearances": {},
2634
2830
  "rules": [],
@@ -3579,7 +3775,7 @@
3579
3775
  "tokens": {
3580
3776
  "fontName": "{palette.fontName.HelveticaNow}",
3581
3777
  "fontSize": "{palette.fontSize.size24}",
3582
- "fontWeight": "{palette.fontWeight.weight500}",
3778
+ "fontWeight": "{palette.fontWeight.weight400}",
3583
3779
  "lineHeight": "{palette.lineHeight.ratio4to3}"
3584
3780
  }
3585
3781
  },