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