@telus-uds/theme-allium 4.8.0 → 4.10.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 Fri, 07 Jul 2023 19:16:17 GMT
4
+ * Generated on Fri, 21 Jul 2023 00:41:47 GMT
5
5
  *
6
6
  */
7
7
 
@@ -24,6 +24,7 @@ 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
25
  const PaletteIconPlaySolid = require('@telus-uds/palette-allium/build/rn/icons/PlaySolid')
26
26
  const PaletteIconQuoteLeft = require('@telus-uds/palette-allium/build/rn/icons/QuoteLeft')
27
+ const PaletteIconQuoteLeftArrow = require('@telus-uds/palette-allium/build/rn/icons/QuoteLeftArrow')
27
28
  const PaletteIconInvisible = require('@telus-uds/palette-allium/build/rn/icons/Invisible')
28
29
  const PaletteIconVisible = require('@telus-uds/palette-allium/build/rn/icons/Visible')
29
30
  const PaletteIconQuestion = require('@telus-uds/palette-allium/build/rn/icons/Question')
@@ -135,6 +136,7 @@ module.exports = {
135
136
  borderWidth: 2,
136
137
  color: '#ffffff',
137
138
  fontName: 'HelveticaNow',
139
+ fontSize: 12,
138
140
  fontWeight: '700',
139
141
  gradient: null,
140
142
  paddingBottom: 2,
@@ -196,6 +198,7 @@ module.exports = {
196
198
  appearances: {
197
199
  background: {
198
200
  description: 'Background colour of box. Transparent if not specified.',
201
+ type: 'variant',
199
202
  values: [
200
203
  'lightest', 'lighter',
201
204
  'light', 'dark',
@@ -1166,11 +1169,7 @@ module.exports = {
1166
1169
  rules: [
1167
1170
  {
1168
1171
  if: { viewport: [ 'xs', 'sm' ] },
1169
- tokens: {
1170
- showPanelTabs: false,
1171
- showPreviousNextNavigation: false,
1172
- thumbnailSize: 48
1173
- }
1172
+ tokens: { showPanelTabs: false, showPreviousNextNavigation: false }
1174
1173
  }
1175
1174
  ],
1176
1175
  tokens: {
@@ -1182,15 +1181,7 @@ module.exports = {
1182
1181
  showPreviousNextNavigation: true,
1183
1182
  spaceBetweenSlideAndPanelNavigation: 32,
1184
1183
  spaceBetweenSlideAndPreviousNextNavigation: 24,
1185
- thumbnailBorderColor: '#e3e6e8',
1186
- thumbnailBorderRadius: 4,
1187
- thumbnailBorderWidth: 1,
1188
- thumbnailContainerPaddingTop: 24,
1189
- thumbnailMargin: 4,
1190
- thumbnailPadding: 8,
1191
- thumbnailSelectedBorderColor: '#676e73',
1192
- thumbnailSelectedBorderWidth: 2,
1193
- thumbnailSize: 56
1184
+ stepTrackerCurrentBackgroundColor: null
1194
1185
  }
1195
1186
  },
1196
1187
  CarouselTabsPanelItem: {
@@ -1309,7 +1300,9 @@ module.exports = {
1309
1300
  tokens: {
1310
1301
  borderBottomColor: '#ffffff',
1311
1302
  borderBottomWidth: 4,
1312
- color: '#ffffff'
1303
+ color: '#ffffff',
1304
+ fontName: 'HelveticaNow',
1305
+ fontWeight: '700'
1313
1306
  }
1314
1307
  }
1315
1308
  ],
@@ -1326,13 +1319,66 @@ module.exports = {
1326
1319
  fontWeight: '400',
1327
1320
  justifyContent: 'flex-start',
1328
1321
  letterSpacing: 0,
1329
- lineHeight: 1.125,
1322
+ lineHeight: 1.45,
1330
1323
  paddingBottom: 16,
1331
1324
  paddingLeft: 0,
1332
1325
  paddingRight: 0,
1333
1326
  paddingTop: 0
1334
1327
  }
1335
1328
  },
1329
+ CarouselThumbnail: {
1330
+ appearances: {
1331
+ focus: {
1332
+ 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.",
1333
+ platforms: [ 'rn' ],
1334
+ type: 'state',
1335
+ values: [ true, false ]
1336
+ },
1337
+ hover: {
1338
+ description: "Currently web only. Applies when an interactive component's hover handler is triggered, such as on mouseover.",
1339
+ platforms: [ 'rn' ],
1340
+ type: 'state',
1341
+ values: [ true, false ]
1342
+ },
1343
+ pressed: {
1344
+ 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.',
1345
+ type: 'state',
1346
+ values: [ true, false ]
1347
+ },
1348
+ viewport: {
1349
+ description: 'The size label for the current screen viewport based on the current screen width',
1350
+ type: 'state',
1351
+ values: [ 'xs', 'sm', 'md', 'lg', 'xl' ]
1352
+ }
1353
+ },
1354
+ rules: [
1355
+ {
1356
+ if: { viewport: [ 'xs', 'sm' ] },
1357
+ tokens: { alignItems: 'flex-start', size: 48 }
1358
+ },
1359
+ { if: { hover: true }, tokens: { borderColor: '#2b8000' } },
1360
+ {
1361
+ if: { focus: true },
1362
+ tokens: { borderColor: '#2b8000', borderWidth: 2 }
1363
+ },
1364
+ {
1365
+ if: { pressed: true },
1366
+ tokens: { borderColor: '#1f5c09', borderWidth: 2 }
1367
+ }
1368
+ ],
1369
+ tokens: {
1370
+ alignItems: 'center',
1371
+ borderColor: '#e3e6e8',
1372
+ borderRadius: 4,
1373
+ borderWidth: 1,
1374
+ containerPaddingTop: 24,
1375
+ margin: 4,
1376
+ padding: 8,
1377
+ selectedBorderColor: '#676e73',
1378
+ selectedBorderWidth: 2,
1379
+ size: 72
1380
+ }
1381
+ },
1336
1382
  Checkbox: {
1337
1383
  appearances: {
1338
1384
  checked: {
@@ -1485,6 +1531,18 @@ module.exports = {
1485
1531
  {
1486
1532
  if: { focus: true },
1487
1533
  tokens: { outerBorderColor: '#2b8000' }
1534
+ },
1535
+ {
1536
+ if: { focus: true, pressed: true },
1537
+ tokens: { outerBorderColor: '#163e06' }
1538
+ },
1539
+ {
1540
+ if: { focus: true, inverse: true },
1541
+ tokens: { outerBorderColor: '#ffffff' }
1542
+ },
1543
+ {
1544
+ if: { alternative: true, focus: true },
1545
+ tokens: { color: '#414547', outerBorderColor: '#414547' }
1488
1546
  }
1489
1547
  ],
1490
1548
  tokens: {
@@ -1594,8 +1652,8 @@ module.exports = {
1594
1652
  rules: [],
1595
1653
  tokens: {
1596
1654
  calendarBackgroundColor: '#ffffff',
1597
- calendarDayBlockedCalendarHoverBackground: '#fafafa',
1598
- calendarDayBlockedCalendarHoverColor: '#676e73',
1655
+ calendarDayBlockedCalendarHoverBackground: '#f4f4f7',
1656
+ calendarDayBlockedCalendarHoverColor: '#b2b9bf',
1599
1657
  calendarDayDefaultBackgroundColor: '#ffffff',
1600
1658
  calendarDayDefaultBorder: 1,
1601
1659
  calendarDayDefaultBorderColor: '#b2b9bf',
@@ -1679,7 +1737,7 @@ module.exports = {
1679
1737
  expanded: {
1680
1738
  description: 'Applies when an ExpandCollapse panel is open and the content inside is visible',
1681
1739
  type: 'state',
1682
- values: [ true ]
1740
+ values: [ true, false ]
1683
1741
  },
1684
1742
  mini: { type: 'variant', values: [ true ] }
1685
1743
  },
@@ -1733,7 +1791,7 @@ module.exports = {
1733
1791
  expanded: {
1734
1792
  description: 'Applies when an ExpandCollapse panel is open and the content inside is visible',
1735
1793
  type: 'state',
1736
- values: [ true ]
1794
+ values: [ true, false ]
1737
1795
  },
1738
1796
  inverse: {
1739
1797
  description: 'Replaces the default green colour with white. Useful for dark backgrounds.',
@@ -1872,7 +1930,7 @@ module.exports = {
1872
1930
  borderRadius: 4,
1873
1931
  borderWidth: 1,
1874
1932
  color: '#2c2e30',
1875
- contentFontSize: 14,
1933
+ contentFontSize: 16,
1876
1934
  fontName: 'HelveticaNow',
1877
1935
  fontWeight: '400',
1878
1936
  icon: null,
@@ -2328,10 +2386,18 @@ module.exports = {
2328
2386
  ],
2329
2387
  tokens: {
2330
2388
  backgroundColor: 'transparent',
2389
+ borderBottomLeftRadius: null,
2390
+ borderBottomRightRadius: null,
2391
+ borderBottomWidth: null,
2331
2392
  borderColor: '#676e73',
2393
+ borderLeftWidth: null,
2332
2394
  borderRadius: 99999999999999,
2395
+ borderRightWidth: null,
2396
+ borderTopLeftRadius: null,
2397
+ borderTopRightRadius: null,
2398
+ borderTopWidth: null,
2333
2399
  borderWidth: 1,
2334
- icon: null,
2400
+ icon: PaletteIconAdd,
2335
2401
  iconColor: '#676e73',
2336
2402
  iconScale: 1,
2337
2403
  iconSize: 16,
@@ -2339,7 +2405,7 @@ module.exports = {
2339
2405
  iconTranslateY: 0,
2340
2406
  outerBorderColor: 'transparent',
2341
2407
  outerBorderGap: 0,
2342
- outerBorderWidth: 0,
2408
+ outerBorderWidth: null,
2343
2409
  padding: 4,
2344
2410
  shadow: null
2345
2411
  }
@@ -2582,7 +2648,7 @@ module.exports = {
2582
2648
  expanded: {
2583
2649
  description: 'Applies when an ExpandCollapse panel is open and the content inside is visible',
2584
2650
  type: 'state',
2585
- values: [ true ]
2651
+ values: [ true, false ]
2586
2652
  },
2587
2653
  focus: {
2588
2654
  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.",
@@ -2949,7 +3015,7 @@ module.exports = {
2949
3015
  expanded: {
2950
3016
  description: 'Applies when an ExpandCollapse panel is open and the content inside is visible',
2951
3017
  type: 'state',
2952
- values: [ true ]
3018
+ values: [ true, false ]
2953
3019
  },
2954
3020
  focus: {
2955
3021
  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.",
@@ -3634,21 +3700,21 @@ module.exports = {
3634
3700
  pressed: { type: 'variant', values: [ true ] }
3635
3701
  },
3636
3702
  rules: [
3637
- { if: { alternative: true }, tokens: { padding: 0 } },
3703
+ {
3704
+ if: { alternative: true },
3705
+ tokens: { paddingBottom: 8, paddingTop: 8 }
3706
+ },
3638
3707
  {
3639
3708
  if: { hover: true },
3640
- tokens: {
3641
- backgroundColor: '#f4f4f7',
3642
- inputBackgroundColor: '#f4f4f7'
3643
- }
3709
+ tokens: { inputBackgroundColor: '#f4f4f7' }
3644
3710
  },
3645
3711
  {
3646
3712
  if: { disabled: true },
3647
- tokens: { backgroundColor: '#fafafa', iconColor: '#e3e6e8' }
3713
+ tokens: { inputBackgroundColor: '#fafafa', textColor: '#b2b9bf' }
3648
3714
  },
3649
3715
  {
3650
3716
  if: { pressed: true },
3651
- tokens: { backgroundColor: '#b2b9bf' }
3717
+ tokens: { inputBackgroundColor: '#b2b9bf' }
3652
3718
  },
3653
3719
  {
3654
3720
  if: { focus: true },
@@ -3656,17 +3722,110 @@ module.exports = {
3656
3722
  }
3657
3723
  ],
3658
3724
  tokens: {
3659
- backgroundColor: null,
3660
- borderColor: '#676e73',
3661
- iconColor: '#676e73',
3662
- iconSize: 16,
3725
+ fontSize: 16,
3663
3726
  inputBackgroundColor: '#ffffff',
3664
3727
  inputBorderColor: '#676e73',
3665
3728
  inputBorderWidth: 1,
3666
- leftIcon: PaletteIconSubtract,
3729
+ inputWidth: 64,
3730
+ lineHeight: 1.5,
3731
+ padding: 12,
3732
+ paddingBottom: 12,
3733
+ paddingLeft: 12,
3734
+ paddingRight: 12,
3735
+ paddingTop: 12,
3736
+ textColor: '#414547'
3737
+ }
3738
+ },
3739
+ QuantitySelectorSideButton: {
3740
+ appearances: {
3741
+ alternative: { type: 'variant', values: [ true, false ] },
3742
+ decrease: { type: 'variant', values: [ true ] },
3743
+ disabled: { type: 'variant', values: [ true ] },
3744
+ focus: { type: 'variant', values: [ true ] },
3745
+ hover: { type: 'variant', values: [ true ] },
3746
+ increase: { type: 'variant', values: [ true ] },
3747
+ pressed: { type: 'variant', values: [ true ] }
3748
+ },
3749
+ rules: [
3750
+ { if: { hover: true }, tokens: { backgroundColor: '#f4f4f7' } },
3751
+ {
3752
+ if: { pressed: true },
3753
+ tokens: { backgroundColor: '#b2b9bf', iconColor: '#676e73' }
3754
+ },
3755
+ {
3756
+ if: { decrease: true },
3757
+ tokens: {
3758
+ borderBottomLeftRadius: 4,
3759
+ borderRightWidth: 0,
3760
+ borderTopLeftRadius: 4,
3761
+ icon: PaletteIconSubtract
3762
+ }
3763
+ },
3764
+ {
3765
+ if: { increase: true },
3766
+ tokens: {
3767
+ borderBottomRightRadius: 4,
3768
+ borderLeftWidth: 0,
3769
+ borderTopRightRadius: 4,
3770
+ icon: PaletteIconAdd
3771
+ }
3772
+ },
3773
+ {
3774
+ if: { focus: true, increase: true },
3775
+ tokens: {
3776
+ borderBottomWidth: 3,
3777
+ borderLeftWidth: 2,
3778
+ borderRightWidth: 3,
3779
+ borderTopWidth: 3
3780
+ }
3781
+ },
3782
+ {
3783
+ if: { decrease: true, focus: true },
3784
+ tokens: {
3785
+ borderBottomWidth: 3,
3786
+ borderLeftWidth: 3,
3787
+ borderRightWidth: 2,
3788
+ borderTopWidth: 3
3789
+ }
3790
+ },
3791
+ {
3792
+ if: { disabled: true },
3793
+ tokens: { backgroundColor: '#fafafa', iconColor: '#e3e6e8' }
3794
+ },
3795
+ {
3796
+ if: { alternative: true },
3797
+ tokens: { paddingBottom: 12, paddingTop: 12 }
3798
+ },
3799
+ {
3800
+ if: { alternative: true, increase: true },
3801
+ tokens: { borderBottomRightRadius: 24, borderTopRightRadius: 24 }
3802
+ },
3803
+ {
3804
+ if: { alternative: true, decrease: true },
3805
+ tokens: { borderBottomLeftRadius: 24, borderTopLeftRadius: 24 }
3806
+ }
3807
+ ],
3808
+ tokens: {
3809
+ backgroundColor: '#ffffff',
3810
+ borderBottomLeftRadius: 0,
3811
+ borderBottomRightRadius: 0,
3812
+ borderBottomWidth: 1,
3813
+ borderColor: '#676e73',
3814
+ borderLeftWidth: 1,
3815
+ borderRadius: 0,
3816
+ borderRightWidth: 1,
3817
+ borderTopLeftRadius: 0,
3818
+ borderTopRightRadius: 0,
3819
+ borderTopWidth: 1,
3820
+ borderWidth: 1,
3821
+ icon: null,
3822
+ iconColor: '#414547',
3823
+ iconSize: 16,
3667
3824
  padding: 16,
3668
- rightIcon: PaletteIconAdd,
3669
- textColor: '#b2b9bf'
3825
+ paddingBottom: 16,
3826
+ paddingLeft: 16,
3827
+ paddingRight: 16,
3828
+ paddingTop: 16
3670
3829
  }
3671
3830
  },
3672
3831
  QuickLinks: {
@@ -4492,7 +4651,7 @@ module.exports = {
4492
4651
  expanded: {
4493
4652
  description: 'Applies when an ExpandCollapse panel is open and the content inside is visible',
4494
4653
  type: 'state',
4495
- values: [ true ]
4654
+ values: [ true, false ]
4496
4655
  },
4497
4656
  focus: {
4498
4657
  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.",
@@ -4601,7 +4760,7 @@ module.exports = {
4601
4760
  expanded: {
4602
4761
  description: 'Applies when an ExpandCollapse panel is open and the content inside is visible',
4603
4762
  type: 'state',
4604
- values: [ true ]
4763
+ values: [ true, false ]
4605
4764
  }
4606
4765
  },
4607
4766
  rules: [
@@ -5315,7 +5474,7 @@ module.exports = {
5315
5474
  expanded: {
5316
5475
  description: 'Applies when an ExpandCollapse panel is open and the content inside is visible',
5317
5476
  type: 'state',
5318
- values: [ true ]
5477
+ values: [ true, false ]
5319
5478
  },
5320
5479
  viewport: {
5321
5480
  description: 'The size label for the current screen viewport based on the current screen width',
@@ -5386,17 +5545,50 @@ module.exports = {
5386
5545
  }
5387
5546
  },
5388
5547
  Testimonial: {
5389
- appearances: {},
5390
- rules: [],
5548
+ appearances: {
5549
+ viewport: {
5550
+ description: 'The size label for the current screen viewport based on the current screen width',
5551
+ type: 'state',
5552
+ values: [ 'xs', 'sm', 'md', 'lg', 'xl' ]
5553
+ }
5554
+ },
5555
+ rules: [
5556
+ {
5557
+ if: { viewport: [ 'md', 'lg', 'xl' ] },
5558
+ tokens: {
5559
+ testimonialFontNameHeading: 'HelveticaNow',
5560
+ testimonialFontSizeHeading: 28,
5561
+ testimonialFontWeightHeading: '400',
5562
+ testimonialLineHeightHeading: 1.28571428571
5563
+ }
5564
+ }
5565
+ ],
5391
5566
  tokens: {
5567
+ additionalFontName: 'HelveticaNow',
5568
+ additionalFontSize: 14,
5569
+ additionalFontWeight: '400',
5570
+ additionalLineHeight: 1.42857142857,
5571
+ authorFontName: 'HelveticaNow',
5572
+ authorFontSize: 16,
5573
+ authorFontWeight: '700',
5574
+ authorLineHeight: 1.5,
5392
5575
  dividerBackgroundColor: '#b2b9bf',
5393
5576
  dividerBorder: 1,
5394
5577
  figcaptionGap: 12,
5395
5578
  icon: PaletteIconQuoteLeft,
5396
5579
  iconColor: '#b2b9bf',
5580
+ iconFr: PaletteIconQuoteLeftArrow,
5397
5581
  imageSize: 48,
5398
5582
  quoteContainerGap: 4,
5399
5583
  testimonialContainerGap: 12,
5584
+ testimonialFontNameHeading: 'HelveticaNow',
5585
+ testimonialFontNameLarge: 'HelveticaNow',
5586
+ testimonialFontSizeHeading: 24,
5587
+ testimonialFontSizeLarge: 20,
5588
+ testimonialFontWeightHeading: '400',
5589
+ testimonialFontWeightLarge: '400',
5590
+ testimonialLineHeightHeading: 1.33333333333,
5591
+ testimonialLineHeightLarge: 1.6,
5400
5592
  textColor: '#414547'
5401
5593
  }
5402
5594
  },
@@ -5582,7 +5774,8 @@ module.exports = {
5582
5774
  chevronlinkFontName: 'HelveticaNow',
5583
5775
  chevronlinkFontWeight: '400',
5584
5776
  containerBackgroundColor: '#4b286d',
5585
- containerGap: 10
5777
+ containerGap: 10,
5778
+ padding: 16
5586
5779
  }
5587
5780
  },
5588
5781
  ToggleSwitch: {
@@ -5816,6 +6009,7 @@ module.exports = {
5816
6009
  }
5817
6010
  ],
5818
6011
  tokens: {
6012
+ backgroundColor: 'rgba(0, 0, 0, 0)',
5819
6013
  borderRadius: 32,
5820
6014
  icon: PaletteIconQuestion,
5821
6015
  iconColor: '#2c2e30',
@@ -6425,5 +6619,5 @@ module.exports = {
6425
6619
  tokens: { size: 96 }
6426
6620
  }
6427
6621
  },
6428
- metadata: { name: 'theme-allium', themeTokensVersion: '2.37.0' }
6622
+ metadata: { name: 'theme-allium', themeTokensVersion: '2.39.0' }
6429
6623
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@telus-uds/theme-allium",
3
- "version": "4.8.0",
3
+ "version": "4.10.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.24.0",
12
- "@telus-uds/system-theme-tokens": "^2.37.0",
13
- "@telus-uds/system-tokens": "^0.7.17"
11
+ "@telus-uds/palette-allium": "^2.24.2",
12
+ "@telus-uds/system-theme-tokens": "^2.39.0",
13
+ "@telus-uds/system-tokens": "^0.7.19"
14
14
  },
15
15
  "peerDependencies": {
16
- "@telus-uds/palette-allium": "^2.24.0"
16
+ "@telus-uds/palette-allium": "^2.24.2"
17
17
  },
18
18
  "files": [
19
19
  "build",