@telus-uds/theme-koodo 3.23.0 → 3.24.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, 24 Apr 2023 21:32:41 GMT
4
+ * Generated on Thu, 27 Apr 2023 14:30:29 GMT
5
5
  *
6
6
  */
7
7
 
@@ -27,6 +27,7 @@ const PaletteIconCheckCircledNotFilled = require('@telus-uds/palette-koodo/build
27
27
  const PaletteIconEyeMasked = require('@telus-uds/palette-koodo/build/rn/icons/EyeMasked')
28
28
  const PaletteIconEyeUnmasked = require('@telus-uds/palette-koodo/build/rn/icons/EyeUnmasked')
29
29
  const PaletteIconInfo = require('@telus-uds/palette-koodo/build/rn/icons/Info')
30
+ const PaletteIconSettings = require('@telus-uds/palette-koodo/build/rn/icons/Settings')
30
31
 
31
32
  module.exports = {
32
33
  components: {
@@ -39,7 +40,7 @@ module.exports = {
39
40
  }
40
41
  },
41
42
  rules: [ { if: { size: 'large' }, tokens: { size: 48, thickness: 4 } } ],
42
- tokens: { color: '#016b6a', size: 40, thickness: 4 }
43
+ tokens: { color: '#016b6a', size: 24, thickness: 2 }
43
44
  },
44
45
  Badge: {
45
46
  appearances: {
@@ -268,10 +269,15 @@ module.exports = {
268
269
  type: 'variant',
269
270
  values: [ true ]
270
271
  },
272
+ viewport: {
273
+ description: 'The size label for the current screen viewport based on the current screen width',
274
+ type: 'state',
275
+ values: [ 'xs', 'sm', 'md', 'lg', 'xl' ]
276
+ },
271
277
  width: {
272
- description: 'Available in default or full-width. Default-width expands based on content Full-width expands to width of the container.',
278
+ description: 'Available in default, full-width or responsive. Default-width expands based on content. Full-width expands to width of the container. Responsive automatically applies full-width when is displayed on the XS viewport.',
273
279
  type: 'variant',
274
- values: [ 'full' ]
280
+ values: [ 'full', 'responsive' ]
275
281
  }
276
282
  },
277
283
  rules: [
@@ -407,6 +413,10 @@ module.exports = {
407
413
  }
408
414
  },
409
415
  { if: { width: 'full' }, tokens: { width: '100%' } },
416
+ {
417
+ if: { viewport: [ 'xs' ], width: 'responsive' },
418
+ tokens: { width: '100%' }
419
+ },
410
420
  {
411
421
  if: { size: 'small' },
412
422
  tokens: {
@@ -858,17 +868,21 @@ module.exports = {
858
868
  }
859
869
  },
860
870
  Callout: {
861
- appearances: { size: { type: 'variant', values: [ 'small' ] } },
871
+ appearances: {
872
+ rounded: { type: 'variant', values: [ true ] },
873
+ size: { type: 'variant', values: [ 'small' ] }
874
+ },
862
875
  rules: [
863
876
  {
864
877
  if: { size: 'small' },
865
878
  tokens: { paddingBottom: 4, paddingTop: 4 }
866
- }
879
+ },
880
+ { if: { rounded: true }, tokens: { borderRadius: 4 } }
867
881
  ],
868
882
  tokens: {
869
- background: '#efefef',
870
- borderRadius: 4,
871
- color: '#000000',
883
+ background: '#fae6f4',
884
+ borderRadius: 0,
885
+ color: '#7c1366',
872
886
  gap: 16,
873
887
  paddingBottom: 8,
874
888
  paddingLeft: 16,
@@ -1231,6 +1245,75 @@ module.exports = {
1231
1245
  textLineHeight: 2.13
1232
1246
  }
1233
1247
  },
1248
+ Countdown: {
1249
+ appearances: {
1250
+ feature: { type: 'variant', values: [ true ] },
1251
+ inverse: { type: 'variant', values: [ true ] },
1252
+ label: { type: 'variant', values: [ true ] },
1253
+ large: { type: 'variant', values: [ true ] },
1254
+ viewport: {
1255
+ description: 'The size label for the current screen viewport based on the current screen width',
1256
+ type: 'state',
1257
+ values: [ 'xs', 'sm', 'md', 'lg', 'xl' ]
1258
+ }
1259
+ },
1260
+ rules: [
1261
+ {
1262
+ if: { viewport: [ 'xs' ] },
1263
+ tokens: {
1264
+ containerPaddingBottomTop: 16,
1265
+ containerPaddingLeftRight: 24,
1266
+ labelFontSize: 14,
1267
+ labelLineHeight: 1.42857142857,
1268
+ textLineHeight: 1.14285714286
1269
+ }
1270
+ },
1271
+ {
1272
+ if: { large: true, viewport: [ 'xs' ] },
1273
+ tokens: { textFontSize: 28 }
1274
+ },
1275
+ {
1276
+ if: { feature: true, viewport: [ 'xs' ] },
1277
+ tokens: { textFontSize: 28 }
1278
+ },
1279
+ {
1280
+ if: { feature: true },
1281
+ tokens: {
1282
+ labelBorderColor: null,
1283
+ textFontSize: 64,
1284
+ textLineHeight: 1.14285714286,
1285
+ textTimerFontName: 'StagSans',
1286
+ textTimerFontWeight: '300'
1287
+ }
1288
+ },
1289
+ {
1290
+ if: { large: true },
1291
+ tokens: {
1292
+ textFontSize: 64,
1293
+ textLineHeight: 1.14285714286,
1294
+ textTimerFontName: 'StagSans',
1295
+ textTimerFontWeight: '300'
1296
+ }
1297
+ },
1298
+ { if: { inverse: true }, tokens: { labelBorderColor: null } }
1299
+ ],
1300
+ tokens: {
1301
+ containerBorderRadius: 6,
1302
+ containerGradient: null,
1303
+ containerInverseBorder: 2,
1304
+ containerInverseBorderColor: '#ffffff',
1305
+ containerPaddingBottomTop: 48,
1306
+ containerPaddingLeftRight: 64,
1307
+ inverseBorderColor: null,
1308
+ labelBorderColor: null,
1309
+ labelFontSize: 16,
1310
+ labelLineHeight: 1.5,
1311
+ textFontSize: 16,
1312
+ textLineHeight: 1.14285714286,
1313
+ textTimerFontName: 'StagSans',
1314
+ textTimerFontWeight: '400'
1315
+ }
1316
+ },
1234
1317
  DatePicker: {
1235
1318
  appearances: {},
1236
1319
  rules: [],
@@ -1625,6 +1708,39 @@ module.exports = {
1625
1708
  size: { type: 'variant', values: [ 'small', 'large' ] }
1626
1709
  },
1627
1710
  rules: [
1711
+ { if: { action: 'add' }, tokens: { icon: PaletteIconAdd } },
1712
+ {
1713
+ if: { action: 'subtract' },
1714
+ tokens: { icon: PaletteIconSubtract }
1715
+ },
1716
+ {
1717
+ if: { action: 'close' },
1718
+ tokens: { icon: PaletteIconClose }
1719
+ },
1720
+ {
1721
+ if: { action: 'expand' },
1722
+ tokens: { icon: PaletteIconExpand }
1723
+ },
1724
+ {
1725
+ if: { action: 'moveDown' },
1726
+ tokens: { icon: PaletteIconChevronDown }
1727
+ },
1728
+ {
1729
+ if: { action: 'moveLeft' },
1730
+ tokens: { icon: PaletteIconChevronLeft }
1731
+ },
1732
+ {
1733
+ if: { action: 'moveRight' },
1734
+ tokens: { icon: PaletteIconChevronRight }
1735
+ },
1736
+ {
1737
+ if: { action: 'moveUp' },
1738
+ tokens: { icon: PaletteIconChevronUp }
1739
+ },
1740
+ {
1741
+ if: { action: 'play' },
1742
+ tokens: { icon: PaletteIconPlayVideo }
1743
+ },
1628
1744
  { if: { action: 'add' }, tokens: { icon: PaletteIconAdd } },
1629
1745
  {
1630
1746
  if: { action: 'subtract' },
@@ -2632,6 +2748,23 @@ module.exports = {
2632
2748
  outlineWidth: 1
2633
2749
  }
2634
2750
  },
2751
+ QuantitySelector: {
2752
+ appearances: { alternative: { type: 'variant', values: [ true ] } },
2753
+ rules: [ { if: { alternative: true }, tokens: { padding: 0 } } ],
2754
+ tokens: {
2755
+ backgroundColor: null,
2756
+ borderColor: null,
2757
+ iconColor: null,
2758
+ iconSize: 16,
2759
+ inputBackgroundColor: null,
2760
+ inputBorderColor: null,
2761
+ inputBorderWidth: 1,
2762
+ leftIcon: PaletteIconSubtract,
2763
+ padding: 16,
2764
+ rightIcon: PaletteIconAdd,
2765
+ textColor: null
2766
+ }
2767
+ },
2635
2768
  QuickLinks: {
2636
2769
  appearances: {
2637
2770
  viewport: {
@@ -3511,6 +3644,55 @@ module.exports = {
3511
3644
  thickness: 4
3512
3645
  }
3513
3646
  },
3647
+ SplashButton: {
3648
+ appearances: {
3649
+ hover: {
3650
+ description: "Currently web only. Applies when an interactive component's hover handler is triggered, such as on mouseover.",
3651
+ platforms: [ 'rn' ],
3652
+ type: 'state',
3653
+ values: [ true ]
3654
+ }
3655
+ },
3656
+ rules: [],
3657
+ tokens: {
3658
+ buttonContentBackground: null,
3659
+ buttonContentChildrenBackground: null,
3660
+ playIcon: PaletteIconPlayVideo,
3661
+ playIconColor: '#ffffff'
3662
+ }
3663
+ },
3664
+ SplashButtonWithDetails: {
3665
+ appearances: {
3666
+ hover: {
3667
+ description: "Currently web only. Applies when an interactive component's hover handler is triggered, such as on mouseover.",
3668
+ platforms: [ 'rn' ],
3669
+ type: 'state',
3670
+ values: [ true ]
3671
+ }
3672
+ },
3673
+ rules: [
3674
+ {
3675
+ if: { hover: true },
3676
+ tokens: { buttonContentChildrenBackground: null }
3677
+ }
3678
+ ],
3679
+ tokens: {
3680
+ buttonBackground: '#ffffff',
3681
+ buttonBorderColor: null,
3682
+ buttonBottomPosition: 24,
3683
+ buttonContentBackground: null,
3684
+ buttonContentChildrenBackground: null,
3685
+ buttonLeftPosition: 24,
3686
+ buttonMinHeight: 64,
3687
+ buttonPaddingLeft: 16,
3688
+ buttonPaddingRight: 16,
3689
+ buttonRadius: 32,
3690
+ detailsContainerPadding: 8,
3691
+ playIcon: PaletteIconPlayVideo,
3692
+ playIconColor: '#ffffff',
3693
+ playIconContainerBackground: null
3694
+ }
3695
+ },
3514
3696
  StackView: {
3515
3697
  appearances: {},
3516
3698
  rules: [],
@@ -3602,6 +3784,69 @@ module.exports = {
3602
3784
  showStepTrackerLabel: true
3603
3785
  }
3604
3786
  },
3787
+ StoryCard: {
3788
+ appearances: {
3789
+ focus: {
3790
+ 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.",
3791
+ platforms: [ 'rn' ],
3792
+ type: 'state',
3793
+ values: [ true ]
3794
+ },
3795
+ hover: {
3796
+ description: "Currently web only. Applies when an interactive component's hover handler is triggered, such as on mouseover.",
3797
+ platforms: [ 'rn' ],
3798
+ type: 'state',
3799
+ values: [ true ]
3800
+ },
3801
+ pressed: {
3802
+ 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.',
3803
+ type: 'state',
3804
+ values: [ true ]
3805
+ }
3806
+ },
3807
+ rules: [
3808
+ { if: { hover: true }, tokens: { borderWidth: 2 } },
3809
+ {
3810
+ if: { pressed: true },
3811
+ tokens: { backgroundColor: '#e6e6e6' }
3812
+ },
3813
+ {
3814
+ if: { focus: true },
3815
+ tokens: {
3816
+ outerBorderColor: '#016b6a',
3817
+ outerBorderGap: 2,
3818
+ outerBorderWidth: 2
3819
+ }
3820
+ }
3821
+ ],
3822
+ tokens: {
3823
+ backgroundColor: '#ffffff',
3824
+ borderColor: '#efefef',
3825
+ borderRadius: 6,
3826
+ borderWidth: 1,
3827
+ contentAlignItems: 'stretch',
3828
+ contentFlexGrow: 0,
3829
+ contentFlexShrink: 0,
3830
+ contentJustifyContent: 'flex-start',
3831
+ flex: 1,
3832
+ minWidth: 0,
3833
+ outerBorderColor: 'rgba(0, 0, 0, 0)',
3834
+ outerBorderGap: 0,
3835
+ outerBorderWidth: 0,
3836
+ paddingBottom: 0,
3837
+ paddingLeft: 0,
3838
+ paddingRight: 0,
3839
+ paddingTop: 0,
3840
+ shadow: {
3841
+ blur: 0,
3842
+ color: 'rgba(0, 0, 0, 0)',
3843
+ inset: false,
3844
+ offsetX: 0,
3845
+ offsetY: 0,
3846
+ spread: 0
3847
+ }
3848
+ }
3849
+ },
3605
3850
  Table: {
3606
3851
  appearances: { spacing: { type: 'variant', values: [ 'compact' ] } },
3607
3852
  rules: [
@@ -3898,6 +4143,74 @@ module.exports = {
3898
4143
  width: null
3899
4144
  }
3900
4145
  },
4146
+ TermsAndConditions: {
4147
+ appearances: {
4148
+ expanded: {
4149
+ description: 'Applies when an ExpandCollapse panel is open and the content inside is visible',
4150
+ type: 'state',
4151
+ values: [ true ]
4152
+ }
4153
+ },
4154
+ rules: [
4155
+ {
4156
+ if: { expanded: true },
4157
+ tokens: { icon: PaletteIconChevronUp }
4158
+ }
4159
+ ],
4160
+ tokens: {
4161
+ contentPaddingBottom: 8,
4162
+ contentPaddingLeft: 16,
4163
+ expandBaseBorderWidth: 0,
4164
+ expandContentPaddingBottom: 16,
4165
+ expandContentPaddingLeft: 16,
4166
+ expandContentPaddingRight: 16,
4167
+ expandContentPaddingTop: 16,
4168
+ expandIconContainerAlignItems: 'center',
4169
+ expandIconContainerBorder: 1,
4170
+ expandIconContainerBorderColor: '#efefef',
4171
+ expandIconContainerHeight: 32,
4172
+ expandIconContainerJustifyContent: 'center',
4173
+ expandIconContainerMarginX: 0,
4174
+ expandIconContainerMarginY: 12,
4175
+ expandIconContainerWidth: 32,
4176
+ expandTitleColor: '#efefef',
4177
+ expandTitleFontSize: 16,
4178
+ expandTitleLineHeight: 1.5,
4179
+ expandTitleMarginX: 4,
4180
+ expandTitleMarginY: 0,
4181
+ icon: PaletteIconChevronDown,
4182
+ listColor: '#016b6a',
4183
+ listFontName: 'StagSans',
4184
+ listFontSize: 14,
4185
+ listFontWeight: '400',
4186
+ listLineHeight: 1.42857142857,
4187
+ listMarginBottom: 16,
4188
+ listMarginLeft: 32,
4189
+ mdContentPaddingBottom: 16,
4190
+ mdContentPaddingLeft: 48,
4191
+ orderedPadding: 0,
4192
+ titleColor: '#016b6a',
4193
+ titleFontSize: 14,
4194
+ titleLineHeight: 1.42857142857,
4195
+ titlePaddingLeft: 8,
4196
+ unorderedPadding: 0
4197
+ }
4198
+ },
4199
+ Testimonial: {
4200
+ appearances: {},
4201
+ rules: [],
4202
+ tokens: {
4203
+ dividerBackgroundColor: '#ffffff',
4204
+ dividerBorder: 1,
4205
+ figcaptionGap: 12,
4206
+ icon: PaletteIconArrowLeft,
4207
+ iconColor: '#ffffff',
4208
+ imageSize: 48,
4209
+ quoteContainerGap: 4,
4210
+ testimonialContainerGap: 12,
4211
+ textColor: '#ffffff'
4212
+ }
4213
+ },
3901
4214
  TextArea: {
3902
4215
  appearances: {},
3903
4216
  rules: [],
@@ -4423,6 +4736,91 @@ module.exports = {
4423
4736
  textTransform: 'none'
4424
4737
  }
4425
4738
  },
4739
+ Video: {
4740
+ appearances: {},
4741
+ rules: [],
4742
+ tokens: {
4743
+ borderColor: '#000000',
4744
+ pauseIcon: PaletteIconAdd,
4745
+ playIcon: PaletteIconAdd,
4746
+ replayIcon: PaletteIconAdd
4747
+ }
4748
+ },
4749
+ VideoButton: { appearances: {}, rules: [], tokens: { color: '#ffffff' } },
4750
+ VideoControlBar: {
4751
+ appearances: {},
4752
+ rules: [],
4753
+ tokens: {
4754
+ captionsIcon: PaletteIconAdd,
4755
+ maximizeIcon: PaletteIconAdd,
4756
+ menuBottom: 64,
4757
+ menuMarginLeft: 16,
4758
+ menuRight: 32,
4759
+ minimizeIcon: PaletteIconAdd,
4760
+ paddingBottom: 16,
4761
+ paddingLeft: 48,
4762
+ paddingLeftCompactMode: 16,
4763
+ paddingRight: 48,
4764
+ paddingRightCompactMode: 16,
4765
+ paddingTop: 16,
4766
+ settingsIcon: PaletteIconSettings
4767
+ }
4768
+ },
4769
+ VideoMenu: {
4770
+ appearances: {},
4771
+ rules: [],
4772
+ tokens: {
4773
+ background: '#000000',
4774
+ checkMarkFocusColor: '#016b6a',
4775
+ checkMarkHeight: 24,
4776
+ checkMarkHoverColor: '#016b6a',
4777
+ checkMarkIcon: PaletteIconCheck,
4778
+ checkMarkSelectedColor: '#000000',
4779
+ checkMarkUnselectedColor: 'rgba(0, 0, 0, 0)',
4780
+ checkMarkWidth: 24,
4781
+ padding: 16
4782
+ }
4783
+ },
4784
+ VideoMiddleControlButton: {
4785
+ appearances: {},
4786
+ rules: [],
4787
+ tokens: {
4788
+ background: '#000000',
4789
+ height: 64,
4790
+ iconColor: '#ffffff',
4791
+ width: 64
4792
+ }
4793
+ },
4794
+ VideoProgressBar: {
4795
+ appearances: {},
4796
+ rules: [],
4797
+ tokens: {
4798
+ rangeBackground: 'rgba(0, 0, 0, 0)',
4799
+ thumbBackground: '#ffffff',
4800
+ thumbHeight: 8,
4801
+ thumbWidth: 8,
4802
+ timestampMarginLeft: 8,
4803
+ timestampMarginRight: 8,
4804
+ trackGradientEnd: '#016b6a',
4805
+ trackGradientStart: '#016b6a'
4806
+ }
4807
+ },
4808
+ VideoVolumeSlider: {
4809
+ appearances: {},
4810
+ rules: [],
4811
+ tokens: {
4812
+ marginLeft: 16,
4813
+ marginRight: 16,
4814
+ mutedIcon: PaletteIconAdd,
4815
+ rangeBackground: 'rgba(0, 0, 0, 0)',
4816
+ thumbBackground: '#ffffff',
4817
+ thumbHeight: 8,
4818
+ thumbWidth: 8,
4819
+ trackGradientEnd: '#ffffff',
4820
+ trackGradientStart: '#ffffff',
4821
+ unmutedIcon: PaletteIconAdd
4822
+ }
4823
+ },
4426
4824
  WaffleGrid: {
4427
4825
  appearances: {},
4428
4826
  rules: [],
@@ -4492,5 +4890,5 @@ module.exports = {
4492
4890
  tokens: { size: 96 }
4493
4891
  }
4494
4892
  },
4495
- metadata: { name: 'theme-koodo', themeTokensVersion: '2.22.0' }
4893
+ metadata: { name: 'theme-koodo', themeTokensVersion: '2.23.0' }
4496
4894
  }
package/package.json CHANGED
@@ -6,7 +6,7 @@
6
6
  "description": "Koodo theme",
7
7
  "devDependencies": {
8
8
  "@telus-uds/palette-koodo": "^0.13.0",
9
- "@telus-uds/system-theme-tokens": "^2.22.0"
9
+ "@telus-uds/system-theme-tokens": "^2.23.0"
10
10
  },
11
11
  "files": [
12
12
  "build",
@@ -31,5 +31,5 @@
31
31
  "build": "UDS_PALETTE=@telus-uds/palette-koodo system-tokens-build-theme",
32
32
  "dev": "nodemon -w src -x 'npm run build'"
33
33
  },
34
- "version": "3.23.0"
34
+ "version": "3.24.0"
35
35
  }