@telus-uds/theme-allium 4.3.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 Wed, 14 Jun 2023 00:00:46 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,
@@ -1812,8 +1803,9 @@ module.exports = {
1812
1803
  appearances: {},
1813
1804
  rules: [],
1814
1805
  tokens: {
1806
+ closeButtonBackgroundColor: '#f4f4f7',
1815
1807
  closeButtonBorderColor: '#676e73',
1816
- closeButtonBorderSize: 0,
1808
+ closeButtonBorderSize: 1,
1817
1809
  closeButtonHeight: 24,
1818
1810
  closeButtonIconSize: 16,
1819
1811
  closeButtonMarginBottom: 12,
@@ -1824,7 +1816,7 @@ module.exports = {
1824
1816
  closeIcon: PaletteIconClose,
1825
1817
  footnoteBackground: '#f4f4f7',
1826
1818
  footnoteBodyBackground: '#f4f4f7',
1827
- footnoteBodyPaddingBottom: 40,
1819
+ footnoteBodyPaddingBottom: 32,
1828
1820
  footnoteBodyPaddingLeft: 16,
1829
1821
  footnoteBodyPaddingRight: 16,
1830
1822
  footnoteBodyPaddingTop: 0,
@@ -1836,12 +1828,12 @@ module.exports = {
1836
1828
  footnoteHeaderPaddingTop: 16,
1837
1829
  headerFontName: 'HelveticaNow',
1838
1830
  headerFontSize: 16,
1839
- headerFontWeight: '700',
1840
- headerLineHeight: 20,
1831
+ headerFontWeight: '500',
1832
+ headerLineHeight: 1.5,
1841
1833
  headerMargin: 16,
1842
1834
  listItemColor: '#414547',
1843
- listItemFontSize: 14,
1844
- listItemLineHeight: 1.42857142857,
1835
+ listItemFontSize: 16,
1836
+ listItemLineHeight: 1.5,
1845
1837
  listItemMarkerFontSize: 16,
1846
1838
  listItemMarkerLineHeight: 1.5,
1847
1839
  listItemPaddingLeft: 8,
@@ -2710,6 +2702,59 @@ module.exports = {
2710
2702
  subHeadingMarginTop: 8
2711
2703
  }
2712
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
+ },
2713
2758
  NavigationBar: {
2714
2759
  appearances: {
2715
2760
  expanded: {
@@ -3232,7 +3277,7 @@ module.exports = {
3232
3277
  borderRadius: 6,
3233
3278
  borderWidth: 1,
3234
3279
  flex: 1,
3235
- outerBorderColor: '#000000',
3280
+ outerBorderColor: 'rgba(0, 0, 0, 0)',
3236
3281
  outerBorderGap: 0,
3237
3282
  outerBorderWidth: 0,
3238
3283
  paddingBottom: 0,
@@ -3557,6 +3602,11 @@ module.exports = {
3557
3602
  type: 'state',
3558
3603
  values: [ true ]
3559
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
+ },
3560
3610
  viewport: {
3561
3611
  description: 'The size label for the current screen viewport based on the current screen width',
3562
3612
  type: 'state',
@@ -3564,28 +3614,45 @@ module.exports = {
3564
3614
  }
3565
3615
  },
3566
3616
  rules: [
3567
- { if: { hover: true }, tokens: { color: '#1f5c09' } },
3568
- { if: { focus: true }, tokens: { color: '#1f5c09' } },
3569
3617
  {
3570
3618
  if: { viewport: 'xl' },
3571
3619
  tokens: { contentMaxDimension: 184, imageDimension: 168 }
3572
3620
  },
3573
- { 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
+ },
3574
3633
  {
3575
3634
  if: { hover: true, viewport: 'xl' },
3576
3635
  tokens: { imageDimension: 184 }
3577
3636
  },
3578
3637
  {
3579
- if: { focus: true },
3580
- 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' }
3581
3644
  }
3582
3645
  ],
3583
3646
  tokens: {
3584
3647
  color: '#2c2e30',
3585
3648
  contentAlignItems: 'center',
3586
3649
  contentDirection: 'column',
3587
- contentMaxDimension: 140,
3650
+ contentMaxDimension: 168,
3588
3651
  contentSpace: 3,
3652
+ fontName: 'HelveticaNow',
3653
+ fontSize: 16,
3654
+ fontWeight: '700',
3655
+ gap: 32,
3589
3656
  imageDimension: 128,
3590
3657
  outerBorderColor: 'rgba(0, 0, 0, 0)',
3591
3658
  textAlign: 'center',
@@ -4498,9 +4565,9 @@ module.exports = {
4498
4565
  connectorCompletedColor: '#ffffff',
4499
4566
  knobBackgroundColor: 'rgba(0, 0, 0, 0)',
4500
4567
  knobBorderColor: '#ffffff',
4501
- knobCompletedBackgroundColor: '#ffffff',
4568
+ knobCompletedBackgroundColor: 'rgba(0, 0, 0, 0)',
4502
4569
  knobCompletedBorderColor: '#ffffff',
4503
- knobCurrentBackgroundColor: 'rgba(0, 0, 0, 0)',
4570
+ knobCurrentBackgroundColor: '#ffffff',
4504
4571
  knobCurrentBorderColor: '#ffffff',
4505
4572
  knobCurrentInnerColor: '#ffffff',
4506
4573
  labelColor: '#ffffff',
@@ -4524,17 +4591,17 @@ module.exports = {
4524
4591
  knobBackgroundColor: 'rgba(0, 0, 0, 0)',
4525
4592
  knobBorderColor: '#676e73',
4526
4593
  knobBorderWidth: 1,
4527
- knobCompletedBackgroundColor: '#7c53a5',
4594
+ knobCompletedBackgroundColor: 'rgba(0, 0, 0, 0)',
4528
4595
  knobCompletedBorderColor: '#7c53a5',
4529
- knobCompletedPaddingLeft: null,
4530
- knobCompletedPaddingTop: null,
4531
- knobCurrentBackgroundColor: 'rgba(0, 0, 0, 0)',
4596
+ knobCompletedPaddingLeft: 2,
4597
+ knobCompletedPaddingTop: 2,
4598
+ knobCurrentBackgroundColor: '#7c53a5',
4532
4599
  knobCurrentBorderColor: '#7c53a5',
4533
4600
  knobCurrentBorderWidth: 2,
4534
4601
  knobCurrentInnerColor: '#7c53a5',
4535
4602
  knobCurrentInnerSize: 8,
4536
- knobCurrentPaddingLeft: 2,
4537
- knobCurrentPaddingTop: 2,
4603
+ knobCurrentPaddingLeft: null,
4604
+ knobCurrentPaddingTop: null,
4538
4605
  knobSize: 16,
4539
4606
  labelColor: '#414547',
4540
4607
  labelCurrentColor: '#7c53a5',
@@ -4542,7 +4609,7 @@ module.exports = {
4542
4609
  labelCurrentFontWeight: '700',
4543
4610
  labelDirection: 'column',
4544
4611
  labelFontName: 'HelveticaNow',
4545
- labelFontSize: 16,
4612
+ labelFontSize: 14,
4546
4613
  labelFontWeight: '400',
4547
4614
  labelGap: 0,
4548
4615
  labelLineHeight: 1.42857142857,
@@ -4551,7 +4618,13 @@ module.exports = {
4551
4618
  labelPaddingRight: 16,
4552
4619
  showStepLabel: false,
4553
4620
  showStepName: true,
4554
- showStepTrackerLabel: true
4621
+ showStepTrackerLabel: true,
4622
+ stepLabelColor: '#676e73',
4623
+ stepLabelFontName: 'HelveticaNow',
4624
+ stepLabelFontSize: 12,
4625
+ stepLabelFontWeight: '700',
4626
+ stepLabelLineHeight: 1.33333333333,
4627
+ textStepTrackerLabel: 1
4555
4628
  }
4556
4629
  },
4557
4630
  StoryCard: {
@@ -4880,9 +4953,11 @@ module.exports = {
4880
4953
  {
4881
4954
  if: { inactive: true },
4882
4955
  tokens: {
4883
- backgroundColor: '#b2b9bf',
4956
+ backgroundColor: '#ffffff',
4884
4957
  borderWidth: 0,
4885
- color: '#ffffff'
4958
+ color: '#b2b9bf',
4959
+ iconBackground: '#f4f4f7',
4960
+ iconColor: '#b2b9bf'
4886
4961
  }
4887
4962
  }
4888
4963
  ],
@@ -4919,8 +4994,7 @@ module.exports = {
4919
4994
  paddingRight: 8,
4920
4995
  paddingTop: 8,
4921
4996
  shadow: null,
4922
- textAlign: 'center',
4923
- width: null
4997
+ textAlign: 'center'
4924
4998
  }
4925
4999
  },
4926
5000
  TermsAndConditions: {
@@ -5140,8 +5214,22 @@ module.exports = {
5140
5214
  }
5141
5215
  },
5142
5216
  Toast: {
5143
- appearances: {},
5144
- 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
+ ],
5145
5233
  tokens: {
5146
5234
  animationBackgroundColorAfter: '#f4f4f7',
5147
5235
  animationBackgroundColorBefore: '#4b286d',
@@ -5155,6 +5243,8 @@ module.exports = {
5155
5243
  animationPaddingBottomBefore: 0,
5156
5244
  animationPaddingTopAfter: 16,
5157
5245
  animationPaddingTopBefore: 0,
5246
+ chevronlinkFontName: 'HelveticaNow',
5247
+ chevronlinkFontWeight: '400',
5158
5248
  containerBackgroundColor: '#4b286d',
5159
5249
  containerGap: 10
5160
5250
  }
@@ -5913,5 +6003,5 @@ module.exports = {
5913
6003
  tokens: { size: 96 }
5914
6004
  }
5915
6005
  },
5916
- metadata: { name: 'theme-allium', themeTokensVersion: '2.32.0' }
6006
+ metadata: { name: 'theme-allium', themeTokensVersion: '2.33.0' }
5917
6007
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@telus-uds/theme-allium",
3
- "version": "4.3.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.1",
12
- "@telus-uds/system-theme-tokens": "^2.32.0",
13
- "@telus-uds/system-tokens": "^0.7.12"
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.1"
16
+ "@telus-uds/palette-allium": "^2.21.0"
17
17
  },
18
18
  "files": [
19
19
  "build",