@telus-uds/theme-allium 3.24.0 → 3.25.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:33:19 GMT
4
+ * Generated on Thu, 27 Apr 2023 14:31:20 GMT
5
5
  *
6
6
  */
7
7
 
@@ -22,9 +22,19 @@ const PaletteIconPlayVideo = require('@telus-uds/palette-allium/build/rn/icons/P
22
22
  const PaletteIconStatusWarning = require('@telus-uds/palette-allium/build/rn/icons/StatusWarning')
23
23
  const PaletteIconTimes = require('@telus-uds/palette-allium/build/rn/icons/Times')
24
24
  const PaletteIconSearchBold = require('@telus-uds/palette-allium/build/rn/icons/SearchBold')
25
+ const PaletteIconPlaySolid = require('@telus-uds/palette-allium/build/rn/icons/PlaySolid')
26
+ const PaletteIconQuoteLeft = require('@telus-uds/palette-allium/build/rn/icons/QuoteLeft')
25
27
  const PaletteIconInvisible = require('@telus-uds/palette-allium/build/rn/icons/Invisible')
26
28
  const PaletteIconVisible = require('@telus-uds/palette-allium/build/rn/icons/Visible')
27
29
  const PaletteIconQuestion = require('@telus-uds/palette-allium/build/rn/icons/Question')
30
+ const PaletteIconPause = require('@telus-uds/palette-allium/build/rn/icons/Pause')
31
+ const PaletteIconReplay = require('@telus-uds/palette-allium/build/rn/icons/Replay')
32
+ const PaletteIconClosedCaptions = require('@telus-uds/palette-allium/build/rn/icons/ClosedCaptions')
33
+ const PaletteIconFullscreenExpand = require('@telus-uds/palette-allium/build/rn/icons/FullscreenExpand')
34
+ const PaletteIconFullscreenMinimize = require('@telus-uds/palette-allium/build/rn/icons/FullscreenMinimize')
35
+ const PaletteIconSettingsSolid = require('@telus-uds/palette-allium/build/rn/icons/SettingsSolid')
36
+ const PaletteIconMuted = require('@telus-uds/palette-allium/build/rn/icons/Muted')
37
+ const PaletteIconUnmuted = require('@telus-uds/palette-allium/build/rn/icons/Unmuted')
28
38
 
29
39
  module.exports = {
30
40
  components: {
@@ -388,10 +398,15 @@ module.exports = {
388
398
  type: 'variant',
389
399
  values: [ true ]
390
400
  },
401
+ viewport: {
402
+ description: 'The size label for the current screen viewport based on the current screen width',
403
+ type: 'state',
404
+ values: [ 'xs', 'sm', 'md', 'lg', 'xl' ]
405
+ },
391
406
  width: {
392
- description: 'Available in default or full-width. Default-width expands based on content Full-width expands to width of the container.',
407
+ 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.',
393
408
  type: 'variant',
394
- values: [ 'full' ]
409
+ values: [ 'full', 'responsive' ]
395
410
  }
396
411
  },
397
412
  rules: [
@@ -472,6 +487,10 @@ module.exports = {
472
487
  tokens: { outerBorderColor: '#c12335' }
473
488
  },
474
489
  { if: { width: 'full' }, tokens: { width: '100%' } },
490
+ {
491
+ if: { viewport: [ 'xs' ], width: 'responsive' },
492
+ tokens: { width: '100%' }
493
+ },
475
494
  {
476
495
  if: { size: 'small' },
477
496
  tokens: { minWidth: 0, paddingBottom: 4, paddingTop: 4 }
@@ -1366,6 +1385,85 @@ module.exports = {
1366
1385
  textLineHeight: 2.25
1367
1386
  }
1368
1387
  },
1388
+ Countdown: {
1389
+ appearances: {
1390
+ feature: { type: 'variant', values: [ true ] },
1391
+ inverse: { type: 'variant', values: [ true ] },
1392
+ label: { type: 'variant', values: [ true ] },
1393
+ large: { type: 'variant', values: [ true ] },
1394
+ viewport: {
1395
+ description: 'The size label for the current screen viewport based on the current screen width',
1396
+ type: 'state',
1397
+ values: [ 'xs', 'sm', 'md', 'lg', 'xl' ]
1398
+ }
1399
+ },
1400
+ rules: [
1401
+ {
1402
+ if: { viewport: [ 'xs' ] },
1403
+ tokens: {
1404
+ containerPaddingBottomTop: 16,
1405
+ containerPaddingLeftRight: 24,
1406
+ labelFontSize: 14,
1407
+ labelLineHeight: 1.42857142857,
1408
+ textLineHeight: 1.42857142857
1409
+ }
1410
+ },
1411
+ {
1412
+ if: { large: true, viewport: [ 'xs' ] },
1413
+ tokens: { textFontSize: 28 }
1414
+ },
1415
+ {
1416
+ if: { feature: true, viewport: [ 'xs' ] },
1417
+ tokens: { textFontSize: 28 }
1418
+ },
1419
+ {
1420
+ if: { feature: true },
1421
+ tokens: {
1422
+ labelBorderColor: '#4b286d',
1423
+ textFontSize: 64,
1424
+ textLineHeight: 1.125,
1425
+ textTimerFontName: 'HelveticaNow',
1426
+ textTimerFontWeight: '300'
1427
+ }
1428
+ },
1429
+ {
1430
+ if: { large: true },
1431
+ tokens: {
1432
+ textFontSize: 64,
1433
+ textLineHeight: 1.125,
1434
+ textTimerFontName: 'HelveticaNow',
1435
+ textTimerFontWeight: '300'
1436
+ }
1437
+ },
1438
+ {
1439
+ if: { inverse: true },
1440
+ tokens: { labelBorderColor: '#ffffff' }
1441
+ }
1442
+ ],
1443
+ tokens: {
1444
+ containerBorderRadius: 6,
1445
+ containerGradient: {
1446
+ angle: 135,
1447
+ stops: [
1448
+ { color: '#4b286d', stop: 0 },
1449
+ { color: '#e53293', stop: 1 }
1450
+ ],
1451
+ type: 'linear'
1452
+ },
1453
+ containerInverseBorder: 2,
1454
+ containerInverseBorderColor: '#ffffff',
1455
+ containerPaddingBottomTop: 48,
1456
+ containerPaddingLeftRight: 64,
1457
+ inverseBorderColor: '#676e73',
1458
+ labelBorderColor: '#414547',
1459
+ labelFontSize: 16,
1460
+ labelLineHeight: 1.5,
1461
+ textFontSize: 16,
1462
+ textLineHeight: 1.5,
1463
+ textTimerFontName: 'HelveticaNow',
1464
+ textTimerFontWeight: '400'
1465
+ }
1466
+ },
1369
1467
  DatePicker: {
1370
1468
  appearances: {},
1371
1469
  rules: [],
@@ -1751,6 +1849,39 @@ module.exports = {
1751
1849
  size: { type: 'variant', values: [ 'small', 'large' ] }
1752
1850
  },
1753
1851
  rules: [
1852
+ { if: { action: 'add' }, tokens: { icon: PaletteIconAdd } },
1853
+ {
1854
+ if: { action: 'subtract' },
1855
+ tokens: { icon: PaletteIconSubtract }
1856
+ },
1857
+ {
1858
+ if: { action: 'close' },
1859
+ tokens: { icon: PaletteIconClose }
1860
+ },
1861
+ {
1862
+ if: { action: 'expand' },
1863
+ tokens: { icon: PaletteIconExpand }
1864
+ },
1865
+ {
1866
+ if: { action: 'moveDown' },
1867
+ tokens: { icon: PaletteIconCaretDown }
1868
+ },
1869
+ {
1870
+ if: { action: 'moveUp' },
1871
+ tokens: { icon: PaletteIconCaretUp }
1872
+ },
1873
+ {
1874
+ if: { action: 'moveLeft' },
1875
+ tokens: { icon: PaletteIconChevronLeft }
1876
+ },
1877
+ {
1878
+ if: { action: 'moveRight' },
1879
+ tokens: { icon: PaletteIconChevronRight }
1880
+ },
1881
+ {
1882
+ if: { action: 'play' },
1883
+ tokens: { icon: PaletteIconPlayVideo }
1884
+ },
1754
1885
  { if: { action: 'add' }, tokens: { icon: PaletteIconAdd } },
1755
1886
  {
1756
1887
  if: { action: 'subtract' },
@@ -2865,6 +2996,50 @@ module.exports = {
2865
2996
  outlineWidth: 1
2866
2997
  }
2867
2998
  },
2999
+ QuantitySelector: {
3000
+ appearances: {
3001
+ alternative: { type: 'variant', values: [ true ] },
3002
+ disabled: { type: 'variant', values: [ true ] },
3003
+ focus: { type: 'variant', values: [ true ] },
3004
+ hover: { type: 'variant', values: [ true ] },
3005
+ pressed: { type: 'variant', values: [ true ] }
3006
+ },
3007
+ rules: [
3008
+ { if: { alternative: true }, tokens: { padding: 0 } },
3009
+ {
3010
+ if: { hover: true },
3011
+ tokens: {
3012
+ backgroundColor: '#f4f4f7',
3013
+ inputBackgroundColor: '#f4f4f7'
3014
+ }
3015
+ },
3016
+ {
3017
+ if: { disabled: true },
3018
+ tokens: { backgroundColor: '#fafafa', iconColor: '#e3e6e8' }
3019
+ },
3020
+ {
3021
+ if: { pressed: true },
3022
+ tokens: { backgroundColor: '#b2b9bf' }
3023
+ },
3024
+ {
3025
+ if: { focus: true },
3026
+ tokens: { inputBorderColor: '#676e73', inputBorderWidth: 3 }
3027
+ }
3028
+ ],
3029
+ tokens: {
3030
+ backgroundColor: null,
3031
+ borderColor: '#676e73',
3032
+ iconColor: '#676e73',
3033
+ iconSize: 16,
3034
+ inputBackgroundColor: '#ffffff',
3035
+ inputBorderColor: '#676e73',
3036
+ inputBorderWidth: 1,
3037
+ leftIcon: PaletteIconSubtract,
3038
+ padding: 16,
3039
+ rightIcon: PaletteIconAdd,
3040
+ textColor: '#b2b9bf'
3041
+ }
3042
+ },
2868
3043
  QuickLinks: {
2869
3044
  appearances: {
2870
3045
  viewport: {
@@ -3768,6 +3943,62 @@ module.exports = {
3768
3943
  thickness: 4
3769
3944
  }
3770
3945
  },
3946
+ SplashButton: {
3947
+ appearances: {
3948
+ hover: {
3949
+ description: "Currently web only. Applies when an interactive component's hover handler is triggered, such as on mouseover.",
3950
+ platforms: [ 'rn' ],
3951
+ type: 'state',
3952
+ values: [ true ]
3953
+ }
3954
+ },
3955
+ rules: [
3956
+ {
3957
+ if: { hover: true },
3958
+ tokens: { buttonContentChildrenBackground: 'rgba(0, 0, 0, 0.8)' }
3959
+ }
3960
+ ],
3961
+ tokens: {
3962
+ buttonContentBackground: 'rgba(0, 0, 0, 0.6)',
3963
+ buttonContentChildrenBackground: null,
3964
+ playIcon: PaletteIconPlaySolid,
3965
+ playIconColor: '#ffffff'
3966
+ }
3967
+ },
3968
+ SplashButtonWithDetails: {
3969
+ appearances: {
3970
+ hover: {
3971
+ description: "Currently web only. Applies when an interactive component's hover handler is triggered, such as on mouseover.",
3972
+ platforms: [ 'rn' ],
3973
+ type: 'state',
3974
+ values: [ true ]
3975
+ }
3976
+ },
3977
+ rules: [
3978
+ {
3979
+ if: { hover: true },
3980
+ tokens: {
3981
+ buttonContentChildrenBackground: 'rgba(255, 255, 255, 0.8)'
3982
+ }
3983
+ }
3984
+ ],
3985
+ tokens: {
3986
+ buttonBackground: '#ffffff',
3987
+ buttonBorderColor: '#e3e6e8',
3988
+ buttonBottomPosition: 24,
3989
+ buttonContentBackground: 'rgba(0, 0, 0, 0.6)',
3990
+ buttonContentChildrenBackground: null,
3991
+ buttonLeftPosition: 24,
3992
+ buttonMinHeight: 64,
3993
+ buttonPaddingLeft: 16,
3994
+ buttonPaddingRight: 16,
3995
+ buttonRadius: 32,
3996
+ detailsContainerPadding: 8,
3997
+ playIcon: PaletteIconPlaySolid,
3998
+ playIconColor: '#ffffff',
3999
+ playIconContainerBackground: '#2b8000'
4000
+ }
4001
+ },
3771
4002
  StackView: {
3772
4003
  appearances: {},
3773
4004
  rules: [],
@@ -3859,6 +4090,62 @@ module.exports = {
3859
4090
  showStepTrackerLabel: true
3860
4091
  }
3861
4092
  },
4093
+ StoryCard: {
4094
+ appearances: {
4095
+ focus: {
4096
+ 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.",
4097
+ platforms: [ 'rn' ],
4098
+ type: 'state',
4099
+ values: [ true ]
4100
+ },
4101
+ hover: {
4102
+ description: "Currently web only. Applies when an interactive component's hover handler is triggered, such as on mouseover.",
4103
+ platforms: [ 'rn' ],
4104
+ type: 'state',
4105
+ values: [ true ]
4106
+ },
4107
+ pressed: {
4108
+ 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.',
4109
+ type: 'state',
4110
+ values: [ true ]
4111
+ }
4112
+ },
4113
+ rules: [
4114
+ { if: { hover: true }, tokens: { borderWidth: 2 } },
4115
+ {
4116
+ if: { pressed: true },
4117
+ tokens: { backgroundColor: '#f4f4f7' }
4118
+ },
4119
+ {
4120
+ if: { focus: true },
4121
+ tokens: {
4122
+ outerBorderColor: '#676e73',
4123
+ outerBorderGap: 2,
4124
+ outerBorderWidth: 2
4125
+ }
4126
+ }
4127
+ ],
4128
+ tokens: {
4129
+ backgroundColor: '#ffffff',
4130
+ borderColor: '#e3e6e8',
4131
+ borderRadius: 6,
4132
+ borderWidth: 1,
4133
+ contentAlignItems: 'stretch',
4134
+ contentFlexGrow: 0,
4135
+ contentFlexShrink: 0,
4136
+ contentJustifyContent: 'flex-start',
4137
+ flex: 1,
4138
+ minWidth: 0,
4139
+ outerBorderColor: 'rgba(0, 0, 0, 0)',
4140
+ outerBorderGap: 0,
4141
+ outerBorderWidth: 0,
4142
+ paddingBottom: 0,
4143
+ paddingLeft: 0,
4144
+ paddingRight: 0,
4145
+ paddingTop: 0,
4146
+ shadow: null
4147
+ }
4148
+ },
3862
4149
  Table: {
3863
4150
  appearances: { spacing: { type: 'variant', values: [ 'compact' ] } },
3864
4151
  rules: [
@@ -4168,6 +4455,74 @@ module.exports = {
4168
4455
  width: null
4169
4456
  }
4170
4457
  },
4458
+ TermsAndConditions: {
4459
+ appearances: {
4460
+ expanded: {
4461
+ description: 'Applies when an ExpandCollapse panel is open and the content inside is visible',
4462
+ type: 'state',
4463
+ values: [ true ]
4464
+ }
4465
+ },
4466
+ rules: [
4467
+ {
4468
+ if: { expanded: true },
4469
+ tokens: { icon: PaletteIconCaretUp }
4470
+ }
4471
+ ],
4472
+ tokens: {
4473
+ contentPaddingBottom: 8,
4474
+ contentPaddingLeft: 16,
4475
+ expandBaseBorderWidth: 0,
4476
+ expandContentPaddingBottom: 16,
4477
+ expandContentPaddingLeft: 16,
4478
+ expandContentPaddingRight: 16,
4479
+ expandContentPaddingTop: 16,
4480
+ expandIconContainerAlignItems: 'center',
4481
+ expandIconContainerBorder: 1,
4482
+ expandIconContainerBorderColor: '#676e73',
4483
+ expandIconContainerHeight: 32,
4484
+ expandIconContainerJustifyContent: 'center',
4485
+ expandIconContainerMarginX: 0,
4486
+ expandIconContainerMarginY: 12,
4487
+ expandIconContainerWidth: 32,
4488
+ expandTitleColor: '#2c2e30',
4489
+ expandTitleFontSize: 16,
4490
+ expandTitleLineHeight: 1.5,
4491
+ expandTitleMarginX: 4,
4492
+ expandTitleMarginY: 0,
4493
+ icon: PaletteIconCaretDown,
4494
+ listColor: '#414547',
4495
+ listFontName: 'HelveticaNow',
4496
+ listFontSize: 14,
4497
+ listFontWeight: '400',
4498
+ listLineHeight: 1.42857142857,
4499
+ listMarginBottom: 16,
4500
+ listMarginLeft: 32,
4501
+ mdContentPaddingBottom: 16,
4502
+ mdContentPaddingLeft: 48,
4503
+ orderedPadding: 0,
4504
+ titleColor: '#414547',
4505
+ titleFontSize: 14,
4506
+ titleLineHeight: 1.42857142857,
4507
+ titlePaddingLeft: 8,
4508
+ unorderedPadding: 0
4509
+ }
4510
+ },
4511
+ Testimonial: {
4512
+ appearances: {},
4513
+ rules: [],
4514
+ tokens: {
4515
+ dividerBackgroundColor: '#b2b9bf',
4516
+ dividerBorder: 1,
4517
+ figcaptionGap: 12,
4518
+ icon: PaletteIconQuoteLeft,
4519
+ iconColor: '#b2b9bf',
4520
+ imageSize: 48,
4521
+ quoteContainerGap: 4,
4522
+ testimonialContainerGap: 12,
4523
+ textColor: '#414547'
4524
+ }
4525
+ },
4171
4526
  TextArea: {
4172
4527
  appearances: {},
4173
4528
  rules: [],
@@ -4862,6 +5217,91 @@ module.exports = {
4862
5217
  textTransform: 'none'
4863
5218
  }
4864
5219
  },
5220
+ Video: {
5221
+ appearances: {},
5222
+ rules: [],
5223
+ tokens: {
5224
+ borderColor: '#b2b9bf',
5225
+ pauseIcon: PaletteIconPause,
5226
+ playIcon: PaletteIconPlaySolid,
5227
+ replayIcon: PaletteIconReplay
5228
+ }
5229
+ },
5230
+ VideoButton: { appearances: {}, rules: [], tokens: { color: '#ffffff' } },
5231
+ VideoControlBar: {
5232
+ appearances: {},
5233
+ rules: [],
5234
+ tokens: {
5235
+ captionsIcon: PaletteIconClosedCaptions,
5236
+ maximizeIcon: PaletteIconFullscreenExpand,
5237
+ menuBottom: 64,
5238
+ menuMarginLeft: 16,
5239
+ menuRight: 32,
5240
+ minimizeIcon: PaletteIconFullscreenMinimize,
5241
+ paddingBottom: 16,
5242
+ paddingLeft: 48,
5243
+ paddingLeftCompactMode: 16,
5244
+ paddingRight: 48,
5245
+ paddingRightCompactMode: 16,
5246
+ paddingTop: 16,
5247
+ settingsIcon: PaletteIconSettingsSolid
5248
+ }
5249
+ },
5250
+ VideoMenu: {
5251
+ appearances: {},
5252
+ rules: [],
5253
+ tokens: {
5254
+ background: '#2c2e30',
5255
+ checkMarkFocusColor: '#676e73',
5256
+ checkMarkHeight: 24,
5257
+ checkMarkHoverColor: '#676e73',
5258
+ checkMarkIcon: PaletteIconCheckmark,
5259
+ checkMarkSelectedColor: '#ffffff',
5260
+ checkMarkUnselectedColor: 'rgba(0, 0, 0, 0)',
5261
+ checkMarkWidth: 24,
5262
+ padding: 16
5263
+ }
5264
+ },
5265
+ VideoMiddleControlButton: {
5266
+ appearances: {},
5267
+ rules: [],
5268
+ tokens: {
5269
+ background: '#2c2e30',
5270
+ height: 64,
5271
+ iconColor: '#ffffff',
5272
+ width: 64
5273
+ }
5274
+ },
5275
+ VideoProgressBar: {
5276
+ appearances: {},
5277
+ rules: [],
5278
+ tokens: {
5279
+ rangeBackground: 'rgba(0, 0, 0, 0)',
5280
+ thumbBackground: '#ffffff',
5281
+ thumbHeight: 8,
5282
+ thumbWidth: 8,
5283
+ timestampMarginLeft: 8,
5284
+ timestampMarginRight: 8,
5285
+ trackGradientEnd: '#66cc00',
5286
+ trackGradientStart: '#66cc00'
5287
+ }
5288
+ },
5289
+ VideoVolumeSlider: {
5290
+ appearances: {},
5291
+ rules: [],
5292
+ tokens: {
5293
+ marginLeft: 16,
5294
+ marginRight: 16,
5295
+ mutedIcon: PaletteIconMuted,
5296
+ rangeBackground: 'rgba(0, 0, 0, 0)',
5297
+ thumbBackground: '#ffffff',
5298
+ thumbHeight: 8,
5299
+ thumbWidth: 8,
5300
+ trackGradientEnd: '#ffffff',
5301
+ trackGradientStart: '#ffffff',
5302
+ unmutedIcon: PaletteIconUnmuted
5303
+ }
5304
+ },
4865
5305
  WaffleGrid: {
4866
5306
  appearances: {},
4867
5307
  rules: [],
@@ -4931,5 +5371,5 @@ module.exports = {
4931
5371
  tokens: { size: 96 }
4932
5372
  }
4933
5373
  },
4934
- metadata: { name: 'theme-allium', themeTokensVersion: '2.22.0' }
5374
+ metadata: { name: 'theme-allium', themeTokensVersion: '2.23.0' }
4935
5375
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@telus-uds/theme-allium",
3
- "version": "3.24.0",
3
+ "version": "3.25.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.0",
12
- "@telus-uds/system-theme-tokens": "^2.22.0",
13
- "@telus-uds/system-tokens": "^0.7.1"
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"
14
14
  },
15
15
  "peerDependencies": {
16
- "@telus-uds/palette-allium": "^2.15.0"
16
+ "@telus-uds/palette-allium": "^2.15.1"
17
17
  },
18
18
  "files": [
19
19
  "build",