@telus-uds/theme-allium 3.25.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 Thu, 27 Apr 2023 14:31:20 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
  },
@@ -1361,20 +1376,20 @@ module.exports = {
1361
1376
  },
1362
1377
  {
1363
1378
  if: { size: 'large' },
1364
- tokens: { height: 48, iconSize: 24, textLineHeight: 1.95 }
1379
+ tokens: { fontSize: 20, iconSize: 24, textLineHeight: 1.95 }
1365
1380
  },
1366
1381
  {
1367
1382
  if: { size: 'small' },
1368
- tokens: { height: 36, iconSize: 14, textLineHeight: 2.12 }
1383
+ tokens: { fontSize: 14, iconSize: 14, textLineHeight: 2.12 }
1369
1384
  },
1370
1385
  {
1371
1386
  if: { size: 'micro' },
1372
- tokens: { height: 32, iconSize: 12, textLineHeight: 1.92 }
1387
+ tokens: { fontSize: 12, iconSize: 12, textLineHeight: 1.92 }
1373
1388
  }
1374
1389
  ],
1375
1390
  tokens: {
1376
1391
  color: '#2b8000',
1377
- height: 40,
1392
+ fontSize: 16,
1378
1393
  iconDisplace: 0,
1379
1394
  iconSize: 24,
1380
1395
  iconSpace: 1,
@@ -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: {
@@ -2267,7 +2301,7 @@ module.exports = {
2267
2301
  {
2268
2302
  if: { size: 'large' },
2269
2303
  tokens: {
2270
- iconMarginTop: 8,
2304
+ iconMarginTop: 4,
2271
2305
  itemFontSize: 20,
2272
2306
  itemIconSize: 20,
2273
2307
  itemLineHeight: 1.6,
@@ -2297,7 +2331,7 @@ module.exports = {
2297
2331
  tokens: {
2298
2332
  dividerColor: '#b2b9bf',
2299
2333
  dividerSize: 1,
2300
- iconMarginTop: 4,
2334
+ iconMarginTop: 3,
2301
2335
  interItemMargin: 8,
2302
2336
  interItemMarginWithDivider: 16,
2303
2337
  itemBulletColor: '#4b286d',
@@ -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' ] },
@@ -2645,7 +2795,6 @@ module.exports = {
2645
2795
  if: { size: 'large' },
2646
2796
  tokens: { itemFontSize: 20, itemLineHeight: 1.6 }
2647
2797
  },
2648
- { if: { size: 'medium' }, tokens: {} },
2649
2798
  {
2650
2799
  if: { size: 'small' },
2651
2800
  tokens: { itemFontSize: 14, itemLineHeight: 1.42857142857 }
@@ -2928,18 +3077,92 @@ module.exports = {
2928
3077
  }
2929
3078
  },
2930
3079
  PriceLockup: {
2931
- appearances: {},
2932
- 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
+ ],
2933
3127
  tokens: {
3128
+ amountFontName: 'HelveticaNow',
3129
+ amountFontSize: 40,
3130
+ amountFontWeight: '300',
3131
+ amountLetterSpacing: -0.039,
3132
+ amountLineHeight: 1,
2934
3133
  bottomLinksMarginLeft: 4,
3134
+ bottomTextFontSize: 16,
3135
+ bottomTextLineHeight: 1.6,
2935
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,
2936
3145
  dividerColor: '#b2b9bf',
2937
3146
  fontColor: '#414547',
3147
+ fontName: 'HelveticaNow',
3148
+ fontWeight: '700',
2938
3149
  footnoteGap: 4,
3150
+ footnoteLinkColor: '#414547',
3151
+ footnoteLinkFontName: 'HelveticaNow',
3152
+ footnoteLinkFontSize: 14,
3153
+ footnoteLinkFontWeight: '400',
2939
3154
  footnoteMarginTop: 4,
2940
3155
  priceMarginBottom: 8,
2941
- strikeThroughBackground: '#676e73',
3156
+ rateFontName: 'HelveticaNow',
3157
+ rateFontSize: 16,
3158
+ rateFontWeight: '400',
3159
+ rateLineHeight: 1.25,
3160
+ strikeThroughColor: '#676e73',
2942
3161
  strikeThroughHeight: 2,
3162
+ topTextFontName: 'HelveticaNow',
3163
+ topTextFontSize: 16,
3164
+ topTextFontWeight: '700',
3165
+ topTextLineHeight: 1.5,
2943
3166
  topTextMarginBottom: 4
2944
3167
  }
2945
3168
  },
@@ -3509,7 +3732,8 @@ module.exports = {
3509
3732
  purpose: {
3510
3733
  type: 'variant',
3511
3734
  values: [ 'offer', 'default', 'editorial' ]
3512
- }
3735
+ },
3736
+ wrap: { type: 'variant', values: [ true ] }
3513
3737
  },
3514
3738
  rules: [
3515
3739
  {
@@ -3518,11 +3742,30 @@ module.exports = {
3518
3742
  backgroundColor: '#676e73',
3519
3743
  curveBackgroundColor: '#2c2e30'
3520
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 }
3521
3762
  }
3522
3763
  ],
3523
3764
  tokens: {
3524
3765
  backgroundColor: '#613889',
3525
3766
  borderRadius: 4,
3767
+ borderRadiusBottomLeft: null,
3768
+ borderRadiusBottomRight: null,
3526
3769
  boxShadowColor: 'rgba(0, 0, 0, 0.1)',
3527
3770
  boxShadowPaddingBottom: 2,
3528
3771
  boxShadowPaddingLeft: 0,
@@ -3530,20 +3773,14 @@ module.exports = {
3530
3773
  boxShadowPaddingTop: 0,
3531
3774
  curveAfterBackgroundColor: '#613889',
3532
3775
  curveAfterHeight: 4,
3533
- curveAfterRadius: 8,
3776
+ curveAfterRadius: 0,
3534
3777
  curveAfterWidth: 8,
3535
3778
  curveBackgroundColor: '#3f2a54',
3536
3779
  curveHeight: 10,
3537
3780
  curveMarginTop: 4,
3538
3781
  curveWidth: 8,
3539
- gradient: {
3540
- angle: 135,
3541
- stops: [
3542
- { color: '#4b286d', stop: 0 },
3543
- { color: '#e53293', stop: 1 }
3544
- ],
3545
- type: 'linear'
3546
- },
3782
+ fontColor: '#ffffff',
3783
+ gradient: null,
3547
3784
  paddingBottom: 4,
3548
3785
  paddingLeft: 8,
3549
3786
  paddingRight: 8,
@@ -4173,6 +4410,9 @@ module.exports = {
4173
4410
  spread: 0
4174
4411
  },
4175
4412
  cellSubheadingBackground: '#fafafa',
4413
+ fontName: 'HelveticaNow',
4414
+ fontSize: 16,
4415
+ fontWeight: '400',
4176
4416
  tablePaddingBottom: 24
4177
4417
  }
4178
4418
  },
@@ -4676,8 +4916,6 @@ module.exports = {
4676
4916
  animationColorBefore: '#ffffff',
4677
4917
  animationDivColorAfter: '#2b8000',
4678
4918
  animationDivColorBefore: '#ffffff',
4679
- animationFillColorAfter: '#2b8000',
4680
- animationFillColorBefore: '#ffffff',
4681
4919
  animationHeightAfter: 24,
4682
4920
  animationHeightBefore: 0,
4683
4921
  animationPaddingBottomAfter: 16,
@@ -5272,6 +5510,44 @@ module.exports = {
5272
5510
  width: 64
5273
5511
  }
5274
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
+ },
5275
5551
  VideoProgressBar: {
5276
5552
  appearances: {},
5277
5553
  rules: [],
@@ -5371,5 +5647,5 @@ module.exports = {
5371
5647
  tokens: { size: 96 }
5372
5648
  }
5373
5649
  },
5374
- metadata: { name: 'theme-allium', themeTokensVersion: '2.23.0' }
5650
+ metadata: { name: 'theme-allium', themeTokensVersion: '2.25.0' }
5375
5651
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@telus-uds/theme-allium",
3
- "version": "3.25.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.15.1",
12
- "@telus-uds/system-theme-tokens": "^2.23.0",
13
- "@telus-uds/system-tokens": "^0.7.2"
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.15.1"
16
+ "@telus-uds/palette-allium": "^2.17.0"
17
17
  },
18
18
  "files": [
19
19
  "build",