@telus-uds/theme-allium 4.2.0 → 4.4.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/rn/theme.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  *
3
3
  * Do not edit directly
4
- * Generated on Fri, 09 Jun 2023 00:17:15 GMT
4
+ * Generated on Fri, 16 Jun 2023 21:04:21 GMT
5
5
  *
6
6
  */
7
7
 
@@ -100,6 +100,14 @@ module.exports = {
100
100
  color: '#ffffff'
101
101
  }
102
102
  },
103
+ {
104
+ if: { outline: true, purpose: 'editorial' },
105
+ tokens: {
106
+ backgroundColor: 'rgba(0, 0, 0, 0)',
107
+ borderColor: '#676e73',
108
+ color: '#676e73'
109
+ }
110
+ },
103
111
  {
104
112
  if: { outline: true, purpose: 'offer' },
105
113
  tokens: {
@@ -730,31 +738,11 @@ module.exports = {
730
738
  },
731
739
  rules: [
732
740
  { if: { open: true }, tokens: { icon: PaletteIconCaretUp } },
733
- { if: { hover: true }, tokens: { borderWidth: 3 } },
734
- {
735
- if: { selected: true },
736
- tokens: { backgroundColor: '#4b286d', iconBackground: '#7c53a5' }
737
- },
738
- {
739
- if: { hover: true, selected: true },
740
- tokens: { backgroundColor: '#7c53a5', iconBackground: '#613889' }
741
- },
742
- {
743
- if: { pressed: true, selected: true },
744
- tokens: { backgroundColor: '#3f2a54', iconBackground: '#613889' }
745
- },
746
- {
747
- if: { focus: true, selected: true },
748
- tokens: {
749
- backgroundColor: '#4b286d',
750
- iconBackground: '#7c53a5',
751
- outerBorderColor: '#4b286d'
752
- }
753
- },
754
741
  {
755
742
  if: { focus: true },
756
743
  tokens: {
757
744
  borderColor: '#676e73',
745
+ color: '#414547',
758
746
  outerBorderColor: '#676e73',
759
747
  outerBorderGap: 2,
760
748
  outerBorderWidth: 2
@@ -764,13 +752,20 @@ module.exports = {
764
752
  if: { pressed: true },
765
753
  tokens: {
766
754
  backgroundColor: '#676e73',
767
- borderColor: 'rgba(0, 0, 0, 0)',
768
- borderWidth: 0,
769
755
  color: '#ffffff',
770
756
  iconBackground: '#414547',
771
- iconColor: '#ffffff',
772
- outerBorderColor: 'rgba(0, 0, 0, 0)',
773
- outerBorderWidth: 0
757
+ iconColor: '#ffffff'
758
+ }
759
+ },
760
+ { if: { hover: true }, tokens: { borderWidth: 3 } },
761
+ {
762
+ if: { inactive: true },
763
+ tokens: {
764
+ backgroundColor: '#ffffff',
765
+ borderWidth: 0,
766
+ color: '#b2b9bf',
767
+ iconBackground: '#f4f4f7',
768
+ iconColor: '#b2b9bf'
774
769
  }
775
770
  },
776
771
  {
@@ -785,34 +780,19 @@ module.exports = {
785
780
  },
786
781
  {
787
782
  if: { hover: true, selected: true },
788
- tokens: { backgroundColor: '#7c53a5', iconBackground: '#4b286d' }
789
- },
790
- {
791
- if: { pressed: true, selected: true },
792
- tokens: { backgroundColor: '#3f2a54', iconBackground: '#7c53a5' }
783
+ tokens: { backgroundColor: '#7c53a5', iconBackground: '#613889' }
793
784
  },
794
785
  {
795
786
  if: { focus: true, selected: true },
796
787
  tokens: { outerBorderColor: '#4b286d' }
797
788
  },
798
789
  {
799
- if: { focus: true, pressed: true, selected: true },
800
- tokens: {
801
- iconBackground: '#7c53a5',
802
- outerBorderColor: '#3f2a54',
803
- outerBorderGap: 2,
804
- outerBorderWidth: 2
805
- }
790
+ if: { pressed: true, selected: true },
791
+ tokens: { backgroundColor: '#3f2a54', iconBackground: '#613889' }
806
792
  },
807
793
  {
808
- if: { inactive: true },
809
- tokens: {
810
- backgroundColor: '#ffffff',
811
- borderWidth: 0,
812
- color: '#b2b9bf',
813
- iconBackground: '#f4f4f7',
814
- iconColor: '#b2b9bf'
815
- }
794
+ if: { focus: true, pressed: true, selected: true },
795
+ tokens: { outerBorderGap: 2, outerBorderWidth: 2 }
816
796
  }
817
797
  ],
818
798
  tokens: {
@@ -830,7 +810,7 @@ module.exports = {
830
810
  iconAlignSelf: 'center',
831
811
  iconBackground: '#f4f4f7',
832
812
  iconBorderRadius: 32,
833
- iconColor: '#2c2e30',
813
+ iconColor: '#414547',
834
814
  iconPadding: 2,
835
815
  iconPosition: 'right',
836
816
  iconSize: 16,
@@ -1483,17 +1463,8 @@ module.exports = {
1483
1463
  }
1484
1464
  },
1485
1465
  {
1486
- if: { large: true, viewport: [ 'xs' ] },
1487
- tokens: { textFontSize: 28 }
1488
- },
1489
- {
1490
- if: { feature: true, viewport: [ 'xs' ] },
1491
- tokens: { textFontSize: 28 }
1492
- },
1493
- {
1494
- if: { feature: true },
1466
+ if: { large: true },
1495
1467
  tokens: {
1496
- labelBorderColor: '#4b286d',
1497
1468
  textFontSize: 64,
1498
1469
  textLineHeight: 1.125,
1499
1470
  textTimerFontName: 'HelveticaNow',
@@ -1501,21 +1472,39 @@ module.exports = {
1501
1472
  }
1502
1473
  },
1503
1474
  {
1504
- if: { large: true },
1475
+ if: { feature: true },
1505
1476
  tokens: {
1477
+ labelBorderColor: '#4b286d',
1506
1478
  textFontSize: 64,
1507
1479
  textLineHeight: 1.125,
1508
1480
  textTimerFontName: 'HelveticaNow',
1509
1481
  textTimerFontWeight: '300'
1510
1482
  }
1511
1483
  },
1484
+ {
1485
+ if: { large: true, viewport: [ 'xs' ] },
1486
+ tokens: { textFontSize: 40 }
1487
+ },
1488
+ {
1489
+ if: { feature: true, viewport: [ 'xs' ] },
1490
+ tokens: { textFontSize: 40 }
1491
+ },
1512
1492
  {
1513
1493
  if: { inverse: true },
1514
1494
  tokens: { labelBorderColor: '#ffffff' }
1495
+ },
1496
+ {
1497
+ if: { feature: true, inverse: true },
1498
+ tokens: {
1499
+ containerBorderColor: '#676e73',
1500
+ labelBorderColor: '#ffffff'
1501
+ }
1515
1502
  }
1516
1503
  ],
1517
1504
  tokens: {
1505
+ containerBorderColor: 'rgba(0, 0, 0, 0)',
1518
1506
  containerBorderRadius: 6,
1507
+ containerBorderWidth: 2,
1519
1508
  containerGradient: {
1520
1509
  angle: 135,
1521
1510
  stops: [
@@ -1530,7 +1519,9 @@ module.exports = {
1530
1519
  containerPaddingLeftRight: 64,
1531
1520
  inverseBorderColor: '#676e73',
1532
1521
  labelBorderColor: '#414547',
1522
+ labelFontName: 'HelveticaNow',
1533
1523
  labelFontSize: 16,
1524
+ labelFontWeight: '400',
1534
1525
  labelLineHeight: 1.5,
1535
1526
  textFontSize: 16,
1536
1527
  textLineHeight: 1.5,
@@ -1567,12 +1558,6 @@ module.exports = {
1567
1558
  calendarMonthCaptionFontWeight: '700',
1568
1559
  calendarMonthCaptionLineHeight: 1.4,
1569
1560
  calendarMonthCaptionPaddingBottom: 48,
1570
- dateInputBorderColor: 'rgba(0, 0, 0, 0)',
1571
- dateInputBorderRadius: 6,
1572
- dateInputFocusBorderColor: '#7c53a5',
1573
- dateInputHoverBorderColor: '#e3e6e8',
1574
- dateInputInsideBorderColor: '#676e73',
1575
- dateInputInsideColor: '#676e73',
1576
1561
  dateInputStrokeColor: '#676e73',
1577
1562
  dayPickerNavigationButtonPadding: 8,
1578
1563
  dayPickerWeekHeaderColor: '#414547',
@@ -1818,8 +1803,9 @@ module.exports = {
1818
1803
  appearances: {},
1819
1804
  rules: [],
1820
1805
  tokens: {
1806
+ closeButtonBackgroundColor: '#f4f4f7',
1821
1807
  closeButtonBorderColor: '#676e73',
1822
- closeButtonBorderSize: 0,
1808
+ closeButtonBorderSize: 1,
1823
1809
  closeButtonHeight: 24,
1824
1810
  closeButtonIconSize: 16,
1825
1811
  closeButtonMarginBottom: 12,
@@ -1830,7 +1816,7 @@ module.exports = {
1830
1816
  closeIcon: PaletteIconClose,
1831
1817
  footnoteBackground: '#f4f4f7',
1832
1818
  footnoteBodyBackground: '#f4f4f7',
1833
- footnoteBodyPaddingBottom: 40,
1819
+ footnoteBodyPaddingBottom: 32,
1834
1820
  footnoteBodyPaddingLeft: 16,
1835
1821
  footnoteBodyPaddingRight: 16,
1836
1822
  footnoteBodyPaddingTop: 0,
@@ -1842,12 +1828,12 @@ module.exports = {
1842
1828
  footnoteHeaderPaddingTop: 16,
1843
1829
  headerFontName: 'HelveticaNow',
1844
1830
  headerFontSize: 16,
1845
- headerFontWeight: '700',
1846
- headerLineHeight: 20,
1831
+ headerFontWeight: '500',
1832
+ headerLineHeight: 1.5,
1847
1833
  headerMargin: 16,
1848
1834
  listItemColor: '#414547',
1849
- listItemFontSize: 14,
1850
- listItemLineHeight: 1.42857142857,
1835
+ listItemFontSize: 16,
1836
+ listItemLineHeight: 1.5,
1851
1837
  listItemMarkerFontSize: 16,
1852
1838
  listItemMarkerLineHeight: 1.5,
1853
1839
  listItemPaddingLeft: 8,
@@ -2716,6 +2702,59 @@ module.exports = {
2716
2702
  subHeadingMarginTop: 8
2717
2703
  }
2718
2704
  },
2705
+ MultiSelectFilter: {
2706
+ appearances: {
2707
+ maxHeight: {
2708
+ description: 'Whether MultiselectFilter modal should expand responsively to content or a set maximu height',
2709
+ type: 'state',
2710
+ values: [ true ]
2711
+ },
2712
+ maxWidth: {
2713
+ description: 'Whether MultiselectFilter modal should expand to content or a set maximuh width',
2714
+ type: 'state',
2715
+ values: [ true ]
2716
+ },
2717
+ viewport: {
2718
+ description: 'The size label for the current screen viewport based on the current screen width',
2719
+ type: 'state',
2720
+ values: [ 'xs', 'sm', 'md', 'lg', 'xl' ]
2721
+ }
2722
+ },
2723
+ rules: [
2724
+ {
2725
+ if: { viewport: [ 'xs' ] },
2726
+ tokens: {
2727
+ buttonDirection: 'column',
2728
+ minHeight: '100%',
2729
+ minWidth: '100%'
2730
+ }
2731
+ },
2732
+ {
2733
+ if: { maxHeight: true, viewport: [ 'sm', 'md', 'lg', 'xl' ] },
2734
+ tokens: { maxHeightSize: 480 }
2735
+ },
2736
+ {
2737
+ if: { maxWidth: true, viewport: [ 'sm', 'md', 'lg', 'xl' ] },
2738
+ tokens: { maxWidthSize: 544 }
2739
+ }
2740
+ ],
2741
+ tokens: {
2742
+ buttonDirection: 'row',
2743
+ headerFontColor: '#414547',
2744
+ headerFontName: 'HelveticaNow',
2745
+ headerFontSize: 16,
2746
+ headerFontWeight: '500',
2747
+ headerLineHeight: 1.5,
2748
+ maxHeightSize: 0,
2749
+ maxWidthSize: 0,
2750
+ minHeight: 412,
2751
+ minWidth: 320,
2752
+ subHeaderFontName: 'HelveticaNow',
2753
+ subHeaderFontSize: 14,
2754
+ subHeaderFontWeight: '400',
2755
+ subHeaderLineHeight: 1.4
2756
+ }
2757
+ },
2719
2758
  NavigationBar: {
2720
2759
  appearances: {
2721
2760
  expanded: {
@@ -3238,7 +3277,7 @@ module.exports = {
3238
3277
  borderRadius: 6,
3239
3278
  borderWidth: 1,
3240
3279
  flex: 1,
3241
- outerBorderColor: '#000000',
3280
+ outerBorderColor: 'rgba(0, 0, 0, 0)',
3242
3281
  outerBorderGap: 0,
3243
3282
  outerBorderWidth: 0,
3244
3283
  paddingBottom: 0,
@@ -3563,6 +3602,11 @@ module.exports = {
3563
3602
  type: 'state',
3564
3603
  values: [ true ]
3565
3604
  },
3605
+ pressed: {
3606
+ 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.',
3607
+ type: 'state',
3608
+ values: [ true ]
3609
+ },
3566
3610
  viewport: {
3567
3611
  description: 'The size label for the current screen viewport based on the current screen width',
3568
3612
  type: 'state',
@@ -3570,28 +3614,45 @@ module.exports = {
3570
3614
  }
3571
3615
  },
3572
3616
  rules: [
3573
- { if: { hover: true }, tokens: { color: '#1f5c09' } },
3574
- { if: { focus: true }, tokens: { color: '#1f5c09' } },
3575
3617
  {
3576
3618
  if: { viewport: 'xl' },
3577
3619
  tokens: { contentMaxDimension: 184, imageDimension: 168 }
3578
3620
  },
3579
- { if: { hover: true }, tokens: { imageDimension: 140 } },
3621
+ {
3622
+ if: { focus: true },
3623
+ tokens: { outerBorderColor: '#2b8000', textLine: 'none' }
3624
+ },
3625
+ {
3626
+ if: { hover: true },
3627
+ tokens: {
3628
+ color: '#2b8000',
3629
+ imageDimension: 140,
3630
+ textLine: 'underline'
3631
+ }
3632
+ },
3580
3633
  {
3581
3634
  if: { hover: true, viewport: 'xl' },
3582
3635
  tokens: { imageDimension: 184 }
3583
3636
  },
3584
3637
  {
3585
- if: { focus: true },
3586
- tokens: { outerBorderColor: '#1f5c09' }
3638
+ if: { pressed: true },
3639
+ tokens: { color: '#1f5c09', textLine: 'none' }
3640
+ },
3641
+ {
3642
+ if: { focus: true, pressed: true },
3643
+ tokens: { color: '#1f5c09', outerBorderColor: '#1f5c09' }
3587
3644
  }
3588
3645
  ],
3589
3646
  tokens: {
3590
3647
  color: '#2c2e30',
3591
3648
  contentAlignItems: 'center',
3592
3649
  contentDirection: 'column',
3593
- contentMaxDimension: 140,
3650
+ contentMaxDimension: 168,
3594
3651
  contentSpace: 3,
3652
+ fontName: 'HelveticaNow',
3653
+ fontSize: 16,
3654
+ fontWeight: '700',
3655
+ gap: 32,
3595
3656
  imageDimension: 128,
3596
3657
  outerBorderColor: 'rgba(0, 0, 0, 0)',
3597
3658
  textAlign: 'center',
@@ -4504,9 +4565,9 @@ module.exports = {
4504
4565
  connectorCompletedColor: '#ffffff',
4505
4566
  knobBackgroundColor: 'rgba(0, 0, 0, 0)',
4506
4567
  knobBorderColor: '#ffffff',
4507
- knobCompletedBackgroundColor: '#ffffff',
4568
+ knobCompletedBackgroundColor: 'rgba(0, 0, 0, 0)',
4508
4569
  knobCompletedBorderColor: '#ffffff',
4509
- knobCurrentBackgroundColor: 'rgba(0, 0, 0, 0)',
4570
+ knobCurrentBackgroundColor: '#ffffff',
4510
4571
  knobCurrentBorderColor: '#ffffff',
4511
4572
  knobCurrentInnerColor: '#ffffff',
4512
4573
  labelColor: '#ffffff',
@@ -4530,17 +4591,17 @@ module.exports = {
4530
4591
  knobBackgroundColor: 'rgba(0, 0, 0, 0)',
4531
4592
  knobBorderColor: '#676e73',
4532
4593
  knobBorderWidth: 1,
4533
- knobCompletedBackgroundColor: '#7c53a5',
4594
+ knobCompletedBackgroundColor: 'rgba(0, 0, 0, 0)',
4534
4595
  knobCompletedBorderColor: '#7c53a5',
4535
- knobCompletedPaddingLeft: null,
4536
- knobCompletedPaddingTop: null,
4537
- knobCurrentBackgroundColor: 'rgba(0, 0, 0, 0)',
4596
+ knobCompletedPaddingLeft: 2,
4597
+ knobCompletedPaddingTop: 2,
4598
+ knobCurrentBackgroundColor: '#7c53a5',
4538
4599
  knobCurrentBorderColor: '#7c53a5',
4539
4600
  knobCurrentBorderWidth: 2,
4540
4601
  knobCurrentInnerColor: '#7c53a5',
4541
4602
  knobCurrentInnerSize: 8,
4542
- knobCurrentPaddingLeft: 2,
4543
- knobCurrentPaddingTop: 2,
4603
+ knobCurrentPaddingLeft: null,
4604
+ knobCurrentPaddingTop: null,
4544
4605
  knobSize: 16,
4545
4606
  labelColor: '#414547',
4546
4607
  labelCurrentColor: '#7c53a5',
@@ -4548,7 +4609,7 @@ module.exports = {
4548
4609
  labelCurrentFontWeight: '700',
4549
4610
  labelDirection: 'column',
4550
4611
  labelFontName: 'HelveticaNow',
4551
- labelFontSize: 16,
4612
+ labelFontSize: 14,
4552
4613
  labelFontWeight: '400',
4553
4614
  labelGap: 0,
4554
4615
  labelLineHeight: 1.42857142857,
@@ -4557,7 +4618,13 @@ module.exports = {
4557
4618
  labelPaddingRight: 16,
4558
4619
  showStepLabel: false,
4559
4620
  showStepName: true,
4560
- showStepTrackerLabel: true
4621
+ showStepTrackerLabel: true,
4622
+ stepLabelColor: '#676e73',
4623
+ stepLabelFontName: 'HelveticaNow',
4624
+ stepLabelFontSize: 12,
4625
+ stepLabelFontWeight: '700',
4626
+ stepLabelLineHeight: 1.33333333333,
4627
+ textStepTrackerLabel: 1
4561
4628
  }
4562
4629
  },
4563
4630
  StoryCard: {
@@ -4886,9 +4953,11 @@ module.exports = {
4886
4953
  {
4887
4954
  if: { inactive: true },
4888
4955
  tokens: {
4889
- backgroundColor: '#b2b9bf',
4956
+ backgroundColor: '#ffffff',
4890
4957
  borderWidth: 0,
4891
- color: '#ffffff'
4958
+ color: '#b2b9bf',
4959
+ iconBackground: '#f4f4f7',
4960
+ iconColor: '#b2b9bf'
4892
4961
  }
4893
4962
  }
4894
4963
  ],
@@ -4925,8 +4994,7 @@ module.exports = {
4925
4994
  paddingRight: 8,
4926
4995
  paddingTop: 8,
4927
4996
  shadow: null,
4928
- textAlign: 'center',
4929
- width: null
4997
+ textAlign: 'center'
4930
4998
  }
4931
4999
  },
4932
5000
  TermsAndConditions: {
@@ -5146,8 +5214,22 @@ module.exports = {
5146
5214
  }
5147
5215
  },
5148
5216
  Toast: {
5149
- appearances: {},
5150
- rules: [],
5217
+ appearances: {
5218
+ viewport: {
5219
+ description: 'The size label for the current screen viewport based on the current screen width',
5220
+ type: 'state',
5221
+ values: [ 'xs', 'sm', 'md', 'lg', 'xl' ]
5222
+ }
5223
+ },
5224
+ rules: [
5225
+ {
5226
+ if: { viewport: [ 'xs' ] },
5227
+ tokens: {
5228
+ animationPaddingBottomAfter: 8,
5229
+ animationPaddingTopAfter: 8
5230
+ }
5231
+ }
5232
+ ],
5151
5233
  tokens: {
5152
5234
  animationBackgroundColorAfter: '#f4f4f7',
5153
5235
  animationBackgroundColorBefore: '#4b286d',
@@ -5161,6 +5243,8 @@ module.exports = {
5161
5243
  animationPaddingBottomBefore: 0,
5162
5244
  animationPaddingTopAfter: 16,
5163
5245
  animationPaddingTopBefore: 0,
5246
+ chevronlinkFontName: 'HelveticaNow',
5247
+ chevronlinkFontWeight: '400',
5164
5248
  containerBackgroundColor: '#4b286d',
5165
5249
  containerGap: 10
5166
5250
  }
@@ -5476,7 +5560,6 @@ module.exports = {
5476
5560
  if: { colour: 'light', size: 'h6' },
5477
5561
  tokens: { color: '#676e73' }
5478
5562
  },
5479
- { if: { size: 'eyebrow' }, tokens: { color: '#414547' } },
5480
5563
  {
5481
5564
  if: { colour: 'dark', size: 'eyebrow' },
5482
5565
  tokens: { color: '#7c53a5' }
@@ -5624,10 +5707,11 @@ module.exports = {
5624
5707
  {
5625
5708
  if: { size: 'eyebrow' },
5626
5709
  tokens: {
5710
+ color: '#7c53a5',
5627
5711
  fontName: 'HelveticaNow',
5628
5712
  fontSize: 14,
5629
5713
  fontWeight: '700',
5630
- lineHeight: 1.28571428571,
5714
+ lineHeight: 1.42857142857,
5631
5715
  textTransform: 'uppercase'
5632
5716
  }
5633
5717
  },
@@ -5919,5 +6003,5 @@ module.exports = {
5919
6003
  tokens: { size: 96 }
5920
6004
  }
5921
6005
  },
5922
- metadata: { name: 'theme-allium', themeTokensVersion: '2.31.0' }
6006
+ metadata: { name: 'theme-allium', themeTokensVersion: '2.33.0' }
5923
6007
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@telus-uds/theme-allium",
3
- "version": "4.2.0",
3
+ "version": "4.4.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/rn/theme.js",
9
9
  "dependencies": {},
10
10
  "devDependencies": {
11
- "@telus-uds/palette-allium": "^2.20.0",
12
- "@telus-uds/system-theme-tokens": "^2.31.0",
13
- "@telus-uds/system-tokens": "^0.7.11"
11
+ "@telus-uds/palette-allium": "^2.21.0",
12
+ "@telus-uds/system-theme-tokens": "^2.33.0",
13
+ "@telus-uds/system-tokens": "^0.7.13"
14
14
  },
15
15
  "peerDependencies": {
16
- "@telus-uds/palette-allium": "^2.20.0"
16
+ "@telus-uds/palette-allium": "^2.21.0"
17
17
  },
18
18
  "files": [
19
19
  "build",