@telus-uds/theme-allium 3.26.0 → 3.27.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 Mon, 01 May 2023 22:01:35 GMT
4
+ * Generated on Tue, 09 May 2023 00:19:33 GMT
5
5
  *
6
6
  */
7
7
 
@@ -13,9 +13,9 @@ const PaletteIconArrowLeft = require('@telus-uds/palette-allium/build/rn/icons/A
13
13
  const PaletteIconCheckmark = require('@telus-uds/palette-allium/build/rn/icons/Checkmark')
14
14
  const PaletteIconStatusSuccess = require('@telus-uds/palette-allium/build/rn/icons/StatusSuccess')
15
15
  const PaletteIconStatusError = require('@telus-uds/palette-allium/build/rn/icons/StatusError')
16
+ const PaletteIconClose = require('@telus-uds/palette-allium/build/rn/icons/Close')
16
17
  const PaletteIconAdd = require('@telus-uds/palette-allium/build/rn/icons/Add')
17
18
  const PaletteIconSubtract = require('@telus-uds/palette-allium/build/rn/icons/Subtract')
18
- const PaletteIconClose = require('@telus-uds/palette-allium/build/rn/icons/Close')
19
19
  const PaletteIconExpand = require('@telus-uds/palette-allium/build/rn/icons/Expand')
20
20
  const PaletteIconChevronLeft = require('@telus-uds/palette-allium/build/rn/icons/ChevronLeft')
21
21
  const PaletteIconPlayVideo = require('@telus-uds/palette-allium/build/rn/icons/PlayVideo')
@@ -345,11 +345,26 @@ module.exports = {
345
345
  },
346
346
  Breadcrumbs: {
347
347
  appearances: { inverse: { type: 'variant', values: [ true ] } },
348
- rules: [ { if: { inverse: true }, tokens: { iconColor: '#b2b9bf' } } ],
348
+ rules: [
349
+ {
350
+ if: { inverse: true },
351
+ tokens: {
352
+ color: '#ffffff',
353
+ currentColor: '#ffffff',
354
+ iconColor: '#b2b9bf'
355
+ }
356
+ }
357
+ ],
349
358
  tokens: {
359
+ color: '#676e73',
360
+ currentColor: '#414547',
361
+ fontName: 'HelveticaNow',
362
+ fontSize: 12,
363
+ fontWeight: '500',
350
364
  icon: PaletteIconChevronRight,
351
- iconColor: '#676e73',
352
- iconPadding: 8,
365
+ iconColor: '#b2b9bf',
366
+ iconPadding: 4,
367
+ iconSize: 16,
353
368
  listItemPadding: 0
354
369
  }
355
370
  },
@@ -1523,6 +1538,17 @@ module.exports = {
1523
1538
  validInputMixin: '#2b8000'
1524
1539
  }
1525
1540
  },
1541
+ Disclaimer: {
1542
+ appearances: {},
1543
+ rules: [],
1544
+ tokens: {
1545
+ color: '#414547',
1546
+ fontName: 'HelveticaNow',
1547
+ fontSize: 14,
1548
+ fontWeight: '400',
1549
+ lineHeight: 1.42857142857
1550
+ }
1551
+ },
1526
1552
  Divider: {
1527
1553
  appearances: {
1528
1554
  decorative: {
@@ -1676,6 +1702,7 @@ module.exports = {
1676
1702
  closeButtonMarginRight: 4,
1677
1703
  closeButtonMarginTop: 12,
1678
1704
  closeButtonWidth: 24,
1705
+ closeIcon: PaletteIconClose,
1679
1706
  footnoteBackground: '#f4f4f7',
1680
1707
  footnoteBodyBackground: '#f4f4f7',
1681
1708
  footnoteBodyPaddingBottom: 32,
@@ -1697,7 +1724,14 @@ module.exports = {
1697
1724
  FootnoteLink: {
1698
1725
  appearances: {},
1699
1726
  rules: [],
1700
- tokens: { lineHeight: 1, paddingLeft: 2, paddingRight: 2 }
1727
+ tokens: {
1728
+ color: '#000000',
1729
+ fontName: 'HelveticaNow',
1730
+ fontWeight: '400',
1731
+ lineHeight: 1,
1732
+ paddingLeft: 2,
1733
+ paddingRight: 2
1734
+ }
1701
1735
  },
1702
1736
  HorizontalScrollButton: {
1703
1737
  appearances: {
@@ -2550,6 +2584,122 @@ module.exports = {
2550
2584
  subHeadingMarginTop: 8
2551
2585
  }
2552
2586
  },
2587
+ NavigationBar: {
2588
+ appearances: {
2589
+ expanded: {
2590
+ description: 'Applies when an ExpandCollapse panel is open and the content inside is visible',
2591
+ type: 'state',
2592
+ values: [ true ]
2593
+ },
2594
+ focus: {
2595
+ 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.",
2596
+ platforms: [ 'rn' ],
2597
+ type: 'state',
2598
+ values: [ true ]
2599
+ },
2600
+ hover: {
2601
+ description: "Currently web only. Applies when an interactive component's hover handler is triggered, such as on mouseover.",
2602
+ platforms: [ 'rn' ],
2603
+ type: 'state',
2604
+ values: [ true ]
2605
+ },
2606
+ pressed: {
2607
+ 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.',
2608
+ type: 'state',
2609
+ values: [ true ]
2610
+ },
2611
+ selected: {
2612
+ 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`.',
2613
+ type: 'state',
2614
+ values: [ true ]
2615
+ },
2616
+ viewport: {
2617
+ description: 'The size label for the current screen viewport based on the current screen width',
2618
+ type: 'state',
2619
+ values: [ 'xs', 'sm', 'md', 'lg', 'xl' ]
2620
+ }
2621
+ },
2622
+ rules: [
2623
+ {
2624
+ if: { selected: true },
2625
+ tokens: {
2626
+ backgroundColor: '#f4f4f7',
2627
+ borderColor: '#f4f4f7',
2628
+ color: '#4b286d',
2629
+ fontName: 'HelveticaNow',
2630
+ fontWeight: '700'
2631
+ }
2632
+ },
2633
+ {
2634
+ if: { focus: true },
2635
+ tokens: {
2636
+ backgroundColor: '#ffffff',
2637
+ borderColor: '#4b286d',
2638
+ borderWidth: 3,
2639
+ color: '#4b286d'
2640
+ }
2641
+ },
2642
+ {
2643
+ if: { focus: true, pressed: true },
2644
+ tokens: {
2645
+ backgroundColor: '#4b286d',
2646
+ borderColor: '#4b286d',
2647
+ color: '#ffffff'
2648
+ }
2649
+ },
2650
+ {
2651
+ if: { hover: true },
2652
+ tokens: {
2653
+ backgroundColor: '#f4f4f7',
2654
+ borderColor: '#7c53a5',
2655
+ color: '#4b286d'
2656
+ }
2657
+ },
2658
+ {
2659
+ if: { pressed: true },
2660
+ tokens: {
2661
+ backgroundColor: '#e3e6e8',
2662
+ borderColor: '#7c53a5',
2663
+ borderWidth: 1,
2664
+ color: '#4b286d'
2665
+ }
2666
+ },
2667
+ {
2668
+ if: { viewport: [ 'xs', 'sm', 'md' ] },
2669
+ tokens: { textAlign: 'flex-start', width: 288 }
2670
+ },
2671
+ {
2672
+ if: { expanded: true },
2673
+ tokens: { icoMenu: PaletteIconCaretUp }
2674
+ }
2675
+ ],
2676
+ tokens: {
2677
+ alignSelf: 'flex-start',
2678
+ backgroundColor: '#ffffff',
2679
+ borderColor: '#ffffff',
2680
+ borderRadius: 32,
2681
+ borderWidth: 1,
2682
+ color: '#414547',
2683
+ fontName: 'HelveticaNow',
2684
+ fontSize: 14,
2685
+ fontWeight: '400',
2686
+ icoMenu: PaletteIconCaretDown,
2687
+ lineHeight: 1.14285714286,
2688
+ minWidth: 0,
2689
+ opacity: 1,
2690
+ outerBackgroundColor: 'rgba(0, 0, 0, 0)',
2691
+ outerBorderColor: 'rgba(0, 0, 0, 0)',
2692
+ outerBorderGap: 0,
2693
+ outerBorderWidth: 1,
2694
+ paddingBottom: 8,
2695
+ paddingLeft: 16,
2696
+ paddingRight: 16,
2697
+ paddingTop: 8,
2698
+ shadow: null,
2699
+ textAlign: 'center',
2700
+ width: 0
2701
+ }
2702
+ },
2553
2703
  Notification: {
2554
2704
  appearances: {
2555
2705
  style: { type: 'state', values: [ 'success', 'warning', 'error' ] },
@@ -2927,18 +3077,92 @@ module.exports = {
2927
3077
  }
2928
3078
  },
2929
3079
  PriceLockup: {
2930
- appearances: {},
2931
- rules: [],
3080
+ appearances: {
3081
+ size: { type: 'variant', values: [ 'small', 'medium', 'large' ] },
3082
+ strikeThrough: { type: 'variant', values: [ true ] },
3083
+ viewport: {
3084
+ description: 'The size label for the current screen viewport based on the current screen width',
3085
+ type: 'state',
3086
+ values: [ 'xs', 'sm', 'md', 'lg', 'xl' ]
3087
+ }
3088
+ },
3089
+ rules: [
3090
+ {
3091
+ if: { size: 'small' },
3092
+ tokens: {
3093
+ amountFontSize: 28,
3094
+ bottomTextFontSize: 14,
3095
+ bottomTextLineHeight: 1.42857142857,
3096
+ centsFontSize: 16,
3097
+ centsLineHeight: 1.33333333333,
3098
+ currencySymbolFontSize: 16,
3099
+ currencySymbolLineHeight: 1.25,
3100
+ rateFontSize: 14,
3101
+ rateLineHeight: 1.14285714286,
3102
+ topTextFontSize: 14,
3103
+ topTextLineHeight: 1.42857142857
3104
+ }
3105
+ },
3106
+ {
3107
+ if: { size: 'large', viewport: [ 'lg', 'xl' ] },
3108
+ tokens: {
3109
+ amountFontSize: 64,
3110
+ bottomTextFontSize: 20,
3111
+ bottomTextLineHeight: 1.6,
3112
+ centsFontSize: 36,
3113
+ centsLineHeight: 1.125,
3114
+ currencySymbolFontSize: 36,
3115
+ currencySymbolLineHeight: 1.125,
3116
+ rateFontSize: 20,
3117
+ rateLineHeight: 1.6,
3118
+ topTextFontSize: 20,
3119
+ topTextLineHeight: 1.6
3120
+ }
3121
+ },
3122
+ {
3123
+ if: { strikeThrough: true },
3124
+ tokens: { fontColor: '#676e73', footnoteLinkColor: '#676e73' }
3125
+ }
3126
+ ],
2932
3127
  tokens: {
3128
+ amountFontName: 'HelveticaNow',
3129
+ amountFontSize: 40,
3130
+ amountFontWeight: '300',
3131
+ amountLetterSpacing: -0.039,
3132
+ amountLineHeight: 1,
2933
3133
  bottomLinksMarginLeft: 4,
3134
+ bottomTextFontSize: 16,
3135
+ bottomTextLineHeight: 1.6,
2934
3136
  bottomTextMarginTop: 4,
3137
+ centsFontName: 'HelveticaNow',
3138
+ centsFontSize: 20,
3139
+ centsFontWeight: '400',
3140
+ centsLineHeight: 1.2,
3141
+ currencySymbolFontName: 'HelveticaNow',
3142
+ currencySymbolFontSize: 20,
3143
+ currencySymbolFontWeight: '400',
3144
+ currencySymbolLineHeight: 1.2,
2935
3145
  dividerColor: '#b2b9bf',
2936
3146
  fontColor: '#414547',
3147
+ fontName: 'HelveticaNow',
3148
+ fontWeight: '700',
2937
3149
  footnoteGap: 4,
3150
+ footnoteLinkColor: '#414547',
3151
+ footnoteLinkFontName: 'HelveticaNow',
3152
+ footnoteLinkFontSize: 14,
3153
+ footnoteLinkFontWeight: '400',
2938
3154
  footnoteMarginTop: 4,
2939
3155
  priceMarginBottom: 8,
2940
- strikeThroughBackground: '#676e73',
3156
+ rateFontName: 'HelveticaNow',
3157
+ rateFontSize: 16,
3158
+ rateFontWeight: '400',
3159
+ rateLineHeight: 1.25,
3160
+ strikeThroughColor: '#676e73',
2941
3161
  strikeThroughHeight: 2,
3162
+ topTextFontName: 'HelveticaNow',
3163
+ topTextFontSize: 16,
3164
+ topTextFontWeight: '700',
3165
+ topTextLineHeight: 1.5,
2942
3166
  topTextMarginBottom: 4
2943
3167
  }
2944
3168
  },
@@ -3508,7 +3732,8 @@ module.exports = {
3508
3732
  purpose: {
3509
3733
  type: 'variant',
3510
3734
  values: [ 'offer', 'default', 'editorial' ]
3511
- }
3735
+ },
3736
+ wrap: { type: 'variant', values: [ true ] }
3512
3737
  },
3513
3738
  rules: [
3514
3739
  {
@@ -3517,11 +3742,30 @@ module.exports = {
3517
3742
  backgroundColor: '#676e73',
3518
3743
  curveBackgroundColor: '#2c2e30'
3519
3744
  }
3745
+ },
3746
+ {
3747
+ if: { purpose: 'offer' },
3748
+ tokens: {
3749
+ gradient: {
3750
+ angle: 135,
3751
+ stops: [
3752
+ { color: '#4b286d', stop: 0 },
3753
+ { color: '#e53293', stop: 1 }
3754
+ ],
3755
+ type: 'linear'
3756
+ }
3757
+ }
3758
+ },
3759
+ {
3760
+ if: { wrap: true },
3761
+ tokens: { paddingLeft: 24, paddingRight: 24 }
3520
3762
  }
3521
3763
  ],
3522
3764
  tokens: {
3523
3765
  backgroundColor: '#613889',
3524
3766
  borderRadius: 4,
3767
+ borderRadiusBottomLeft: null,
3768
+ borderRadiusBottomRight: null,
3525
3769
  boxShadowColor: 'rgba(0, 0, 0, 0.1)',
3526
3770
  boxShadowPaddingBottom: 2,
3527
3771
  boxShadowPaddingLeft: 0,
@@ -3529,20 +3773,14 @@ module.exports = {
3529
3773
  boxShadowPaddingTop: 0,
3530
3774
  curveAfterBackgroundColor: '#613889',
3531
3775
  curveAfterHeight: 4,
3532
- curveAfterRadius: 8,
3776
+ curveAfterRadius: 0,
3533
3777
  curveAfterWidth: 8,
3534
3778
  curveBackgroundColor: '#3f2a54',
3535
3779
  curveHeight: 10,
3536
3780
  curveMarginTop: 4,
3537
3781
  curveWidth: 8,
3538
- gradient: {
3539
- angle: 135,
3540
- stops: [
3541
- { color: '#4b286d', stop: 0 },
3542
- { color: '#e53293', stop: 1 }
3543
- ],
3544
- type: 'linear'
3545
- },
3782
+ fontColor: '#ffffff',
3783
+ gradient: null,
3546
3784
  paddingBottom: 4,
3547
3785
  paddingLeft: 8,
3548
3786
  paddingRight: 8,
@@ -4172,6 +4410,9 @@ module.exports = {
4172
4410
  spread: 0
4173
4411
  },
4174
4412
  cellSubheadingBackground: '#fafafa',
4413
+ fontName: 'HelveticaNow',
4414
+ fontSize: 16,
4415
+ fontWeight: '400',
4175
4416
  tablePaddingBottom: 24
4176
4417
  }
4177
4418
  },
@@ -5269,6 +5510,44 @@ module.exports = {
5269
5510
  width: 64
5270
5511
  }
5271
5512
  },
5513
+ VideoPicker: {
5514
+ appearances: {},
5515
+ rules: [],
5516
+ tokens: {
5517
+ framedContainerBackgroundColor: '#fafafa',
5518
+ framedContainerBorderColor: '#e3e6e8',
5519
+ framedContainerBorderRadius: 4,
5520
+ framedContainerBorderWidth: 1,
5521
+ framedContainerPadding: 24,
5522
+ framedMaxHeight: 640,
5523
+ stackViewDividerColor: '#e3e6e8'
5524
+ }
5525
+ },
5526
+ VideoPickerSlider: {
5527
+ appearances: {},
5528
+ rules: [],
5529
+ tokens: {
5530
+ nextIcon: PaletteIconArrowRight,
5531
+ previousIcon: PaletteIconArrowLeft
5532
+ }
5533
+ },
5534
+ VideoPickerThumbnail: {
5535
+ appearances: {},
5536
+ rules: [],
5537
+ tokens: {
5538
+ borderColor: '#4b286d',
5539
+ borderRadius: 4,
5540
+ borderWidth: 2,
5541
+ pressableBorderTopColor: '#e3e6e8',
5542
+ pressableBorderTopWidth: 1,
5543
+ pressablePaddingBottom: 16,
5544
+ pressablePaddingHorizontal: 24,
5545
+ pressablePaddingVertical: 16,
5546
+ splashButtonRadius: 4,
5547
+ subTitleColor: '#676e73',
5548
+ titleColor: '#4b286d'
5549
+ }
5550
+ },
5272
5551
  VideoProgressBar: {
5273
5552
  appearances: {},
5274
5553
  rules: [],
@@ -5368,5 +5647,5 @@ module.exports = {
5368
5647
  tokens: { size: 96 }
5369
5648
  }
5370
5649
  },
5371
- metadata: { name: 'theme-allium', themeTokensVersion: '2.24.0' }
5650
+ metadata: { name: 'theme-allium', themeTokensVersion: '2.25.0' }
5372
5651
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@telus-uds/theme-allium",
3
- "version": "3.26.0",
3
+ "version": "3.27.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.16.0",
12
- "@telus-uds/system-theme-tokens": "^2.24.0",
13
- "@telus-uds/system-tokens": "^0.7.3"
11
+ "@telus-uds/palette-allium": "^2.17.0",
12
+ "@telus-uds/system-theme-tokens": "^2.25.0",
13
+ "@telus-uds/system-tokens": "^0.7.4"
14
14
  },
15
15
  "peerDependencies": {
16
- "@telus-uds/palette-allium": "^2.16.0"
16
+ "@telus-uds/palette-allium": "^2.17.0"
17
17
  },
18
18
  "files": [
19
19
  "build",