@telus-uds/theme-allium 3.18.0 → 3.20.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,17 +1,17 @@
1
1
  /*
2
2
  *
3
3
  * Do not edit directly
4
- * Generated on Tue, 04 Apr 2023 14:45:26 GMT
4
+ * Generated on Thu, 13 Apr 2023 05:51:25 GMT
5
5
  *
6
6
  */
7
7
 
8
+ const PaletteIconChevronRight = require('@telus-uds/palette-allium/build/rn/icons/ChevronRight')
8
9
  const PaletteIconCaretDown = require('@telus-uds/palette-allium/build/rn/icons/CaretDown')
9
10
  const PaletteIconCaretUp = require('@telus-uds/palette-allium/build/rn/icons/CaretUp')
10
11
  const PaletteIconArrowRight = require('@telus-uds/palette-allium/build/rn/icons/ArrowRight')
11
12
  const PaletteIconArrowLeft = require('@telus-uds/palette-allium/build/rn/icons/ArrowLeft')
12
13
  const PaletteIconCheckmark = require('@telus-uds/palette-allium/build/rn/icons/Checkmark')
13
14
  const PaletteIconChevronLeft = require('@telus-uds/palette-allium/build/rn/icons/ChevronLeft')
14
- const PaletteIconChevronRight = require('@telus-uds/palette-allium/build/rn/icons/ChevronRight')
15
15
  const PaletteIconStatusSuccess = require('@telus-uds/palette-allium/build/rn/icons/StatusSuccess')
16
16
  const PaletteIconStatusError = require('@telus-uds/palette-allium/build/rn/icons/StatusError')
17
17
  const PaletteIconClose = require('@telus-uds/palette-allium/build/rn/icons/Close')
@@ -309,6 +309,16 @@ module.exports = {
309
309
  ],
310
310
  tokens: { backgroundColor: null, gradient: null }
311
311
  },
312
+ Breadcrumbs: {
313
+ appearances: { inverse: { type: 'variant', values: [ true ] } },
314
+ rules: [ { if: { inverse: true }, tokens: { iconColor: '#b2b9bf' } } ],
315
+ tokens: {
316
+ icon: PaletteIconChevronRight,
317
+ iconColor: '#676e73',
318
+ iconPadding: 8,
319
+ listItemPadding: 0
320
+ }
321
+ },
312
322
  Button: {
313
323
  appearances: {
314
324
  danger: {
@@ -863,6 +873,29 @@ module.exports = {
863
873
  width: null
864
874
  }
865
875
  },
876
+ Callout: {
877
+ appearances: {
878
+ rounded: { type: 'variant', values: [ true, false ] },
879
+ size: { type: 'variant', values: [ 'small' ] }
880
+ },
881
+ rules: [
882
+ {
883
+ if: { size: 'small' },
884
+ tokens: { paddingBottom: 4, paddingTop: 4 }
885
+ },
886
+ { if: { rounded: true }, tokens: { borderRadius: 4 } }
887
+ ],
888
+ tokens: {
889
+ background: '#f4f4f7',
890
+ borderRadius: 0,
891
+ color: '#4b286d',
892
+ gap: 16,
893
+ paddingBottom: 8,
894
+ paddingLeft: 16,
895
+ paddingRight: 16,
896
+ paddingTop: 8
897
+ }
898
+ },
866
899
  Card: {
867
900
  appearances: {
868
901
  background: {
@@ -1291,6 +1324,65 @@ module.exports = {
1291
1324
  textLine: 'none'
1292
1325
  }
1293
1326
  },
1327
+ DatePicker: {
1328
+ appearances: {},
1329
+ rules: [],
1330
+ tokens: {
1331
+ calendarDayBlockedCalendarHoverBackground: '#fafafa',
1332
+ calendarDayBlockedCalendarHoverColor: '#414547',
1333
+ calendarDayDefaultBeforeHeight: 28,
1334
+ calendarDayDefaultBeforeWidth: 28,
1335
+ calendarDayDefaultBorder: 1,
1336
+ calendarDayDefaultBorderColor: '#e3e6e8',
1337
+ calendarDayDefaultCalendarDaySelectedHoverBackground: '#7c53a5',
1338
+ calendarDayDefaultCalendarDaySelectedHoverColor: '#ffffff',
1339
+ calendarDayDefaultColor: '#414547',
1340
+ calendarDayDefaultFontName: 'HelveticaNow',
1341
+ calendarDayDefaultFontSize: 14,
1342
+ calendarDayDefaultFontWeight: '300',
1343
+ calendarDaySelectedHoverBeforeBackground: '#7c53a5',
1344
+ calendarDaySelectedHoverBorderColor: '#e3e6e8',
1345
+ calendarDaySelectedHoverColor: '#ffffff',
1346
+ calendarMonthCaptionColor: '#2c2e30',
1347
+ calendarMonthCaptionFontName: 'HelveticaNow',
1348
+ calendarMonthCaptionFontSize: 20,
1349
+ calendarMonthCaptionFontWeight: '400',
1350
+ calendarMonthCaptionLineHeight: 1.4,
1351
+ calendarMonthCaptionPaddingBottom: 48,
1352
+ dateInputBorderColor: 'rgba(0, 0, 0, 0)',
1353
+ dateInputBorderRadius: 6,
1354
+ dateInputFocusBorderColor: '#7c53a5',
1355
+ dateInputHoverBorderColor: '#e3e6e8',
1356
+ dateInputInsideBorderColor: '#676e73',
1357
+ dateInputInsideColor: '#676e73',
1358
+ dateInputStrokeColor: '#676e73',
1359
+ dayPickerNavigationButtonBackgroundColor: '#ffffff',
1360
+ dayPickerNavigationButtonBorderColor: '#b2b9bf',
1361
+ dayPickerNavigationButtonChildLeft: 8,
1362
+ dayPickerNavigationButtonChildRight: 8,
1363
+ dayPickerNavigationButtonChildSvgFill: '#676e73',
1364
+ dayPickerNavigationButtonDefaultHoverBorderColor: '#e3e6e8',
1365
+ dayPickerNavigationButtonMaxHeight: 32,
1366
+ dayPickerNavigationButtonMaxWidth: 32,
1367
+ dayPickerNavigationButtonPadding: 8,
1368
+ dayPickerNavigationSVGHorizontalFill: '#2c2e30',
1369
+ dayPickerWeekHeaderColor: '#414547',
1370
+ dayPickerWeekHeaderFontName: 'HelveticaNow',
1371
+ dayPickerWeekHeaderFontWeight: '500',
1372
+ dayPickerWeekHeaderLineHeight: 1.42857142857,
1373
+ dayPickerWeekHeaderSmall: 14,
1374
+ hiddenInputFieldContainerHeight: 0,
1375
+ hiddenInputFieldContainerWidth: 0,
1376
+ invalidInputMixin: '#e12339',
1377
+ nextIcon: PaletteIconArrowRight,
1378
+ previousIcon: PaletteIconArrowLeft,
1379
+ singleDatePickerBorderColor: '#676e73',
1380
+ singleDatePickerLeftRight: 16,
1381
+ singleDatePickerPaddingTopBottom: 8,
1382
+ singleDatePickerRadius: 4,
1383
+ validInputMixin: '#2b8000'
1384
+ }
1385
+ },
1294
1386
  Divider: {
1295
1387
  appearances: {
1296
1388
  decorative: {
@@ -1345,6 +1437,23 @@ module.exports = {
1345
1437
  verticalAlign: 'top'
1346
1438
  }
1347
1439
  },
1440
+ ExpandCollapseMini: { appearances: {}, rules: [], tokens: { borderWidth: 0 } },
1441
+ ExpandCollapseMiniControl: {
1442
+ appearances: {
1443
+ expanded: {
1444
+ description: 'Applies when an ExpandCollapse panel is open and the content inside is visible',
1445
+ type: 'state',
1446
+ values: [ true ]
1447
+ }
1448
+ },
1449
+ rules: [
1450
+ {
1451
+ if: { expanded: true },
1452
+ tokens: { icon: PaletteIconCaretUp }
1453
+ }
1454
+ ],
1455
+ tokens: { icon: PaletteIconCaretDown, size: 4 }
1456
+ },
1348
1457
  ExpandCollapsePanel: {
1349
1458
  appearances: {},
1350
1459
  rules: [],
@@ -1414,6 +1523,42 @@ module.exports = {
1414
1523
  titleFontSize: 16
1415
1524
  }
1416
1525
  },
1526
+ Footnote: {
1527
+ appearances: {},
1528
+ rules: [],
1529
+ tokens: {
1530
+ closeButtonBorderColor: '#676e73',
1531
+ closeButtonBorderSize: 1,
1532
+ closeButtonHeight: 24,
1533
+ closeButtonIconSize: 16,
1534
+ closeButtonMarginBottom: 12,
1535
+ closeButtonMarginLeft: 4,
1536
+ closeButtonMarginRight: 4,
1537
+ closeButtonMarginTop: 12,
1538
+ closeButtonWidth: 24,
1539
+ footnoteBackground: '#f4f4f7',
1540
+ footnoteBodyBackground: '#f4f4f7',
1541
+ footnoteBodyPaddingBottom: 32,
1542
+ footnoteBodyPaddingLeft: 16,
1543
+ footnoteBodyPaddingRight: 16,
1544
+ footnoteBodyPaddingTop: 0,
1545
+ footnoteBorderColorMd: '#b2b9bf',
1546
+ footnoteBorderTopSizeMd: 1,
1547
+ headerMargin: 16,
1548
+ listItemColor: '#414547',
1549
+ listItemFontSize: 14,
1550
+ listItemLineHeight: 1.42857142857,
1551
+ listItemMarkerFontSize: 16,
1552
+ listItemMarkerLineHeight: 1.5,
1553
+ listItemPaddingLeft: 8,
1554
+ listPaddingLeft: 32
1555
+ }
1556
+ },
1557
+ FootnoteLink: {
1558
+ appearances: {},
1559
+ rules: [],
1560
+ tokens: { lineHeight: 1, paddingLeft: 2, paddingRight: 2 }
1561
+ },
1417
1562
  HorizontalScrollButton: {
1418
1563
  appearances: {
1419
1564
  focus: {
@@ -1605,10 +1750,11 @@ module.exports = {
1605
1750
  {
1606
1751
  if: { focus: true, inverse: true },
1607
1752
  tokens: {
1608
- backgroundColor: 'rgba(255, 255, 255, 0.6)',
1609
- borderColor: '#414547',
1610
- iconColor: '#414547',
1611
- outerBorderWidth: 0
1753
+ backgroundColor: 'transparent',
1754
+ borderColor: '#ffffff',
1755
+ iconColor: '#ffffff',
1756
+ outerBorderColor: '#ffffff',
1757
+ outerBorderWidth: 1
1612
1758
  }
1613
1759
  },
1614
1760
  {
@@ -1633,15 +1779,16 @@ module.exports = {
1633
1779
  if: { inverse: true, pressed: true },
1634
1780
  tokens: {
1635
1781
  backgroundColor: 'rgba(255, 255, 255, 0.4)',
1636
- borderColor: '#676e73',
1637
- iconColor: '#676e73'
1782
+ borderColor: '#ffffff',
1783
+ iconColor: '#ffffff',
1784
+ outerBorderWidth: 0
1638
1785
  }
1639
1786
  },
1640
1787
  {
1641
1788
  if: { size: 'large' },
1642
1789
  tokens: { iconSize: 24, padding: 12 }
1643
1790
  },
1644
- { if: { size: 'small' }, tokens: { padding: 4 } },
1791
+ { if: { size: 'small' }, tokens: { iconSize: 16, padding: 4 } },
1645
1792
  {
1646
1793
  description: 'Raised IconButtons follow different design patterns to other variants',
1647
1794
  if: { raised: true },
@@ -1649,10 +1796,11 @@ module.exports = {
1649
1796
  backgroundColor: '#ffffff',
1650
1797
  borderColor: '#b2b9bf',
1651
1798
  borderWidth: 1,
1799
+ iconSize: 16,
1652
1800
  outerBorderColor: 'transparent',
1653
1801
  outerBorderGap: 0,
1654
1802
  outerBorderWidth: 0,
1655
- padding: 12,
1803
+ padding: 8,
1656
1804
  shadow: {
1657
1805
  blur: 2,
1658
1806
  color: 'rgba(0, 0, 0, 0.1)',
@@ -1665,7 +1813,7 @@ module.exports = {
1665
1813
  },
1666
1814
  {
1667
1815
  if: { raised: true, size: 'large' },
1668
- tokens: { padding: 16 }
1816
+ tokens: { iconSize: 24, padding: 12 }
1669
1817
  },
1670
1818
  { if: { raised: true, size: 'small' }, tokens: { padding: 8 } },
1671
1819
  {
@@ -1681,17 +1829,25 @@ module.exports = {
1681
1829
  outerBorderColor: 'rgba(0, 0, 0, 0)'
1682
1830
  }
1683
1831
  },
1684
- {
1685
- if: { focus: true, pressed: true, raised: true },
1686
- tokens: { backgroundColor: '#4b286d', borderWidth: 0 }
1687
- },
1688
1832
  {
1689
1833
  if: { hover: true, raised: true },
1690
1834
  tokens: { borderColor: '#b2b9bf', borderWidth: 3 }
1691
1835
  },
1692
1836
  {
1693
1837
  if: { focus: true, raised: true },
1694
- tokens: { borderColor: '#4b286d', borderWidth: 3 }
1838
+ tokens: {
1839
+ borderColor: '#4b286d',
1840
+ borderWidth: 3,
1841
+ iconColor: '#4b286d'
1842
+ }
1843
+ },
1844
+ {
1845
+ if: { focus: true, pressed: true, raised: true },
1846
+ tokens: {
1847
+ backgroundColor: '#4b286d',
1848
+ borderWidth: 0,
1849
+ iconColor: '#ffffff'
1850
+ }
1695
1851
  },
1696
1852
  { if: { compact: true }, tokens: { outerBorderGap: 0 } }
1697
1853
  ],
@@ -1702,13 +1858,13 @@ module.exports = {
1702
1858
  borderWidth: 1,
1703
1859
  iconColor: '#676e73',
1704
1860
  iconScale: 1,
1705
- iconSize: 24,
1861
+ iconSize: 16,
1706
1862
  iconTranslateX: 0,
1707
1863
  iconTranslateY: 0,
1708
1864
  outerBorderColor: 'transparent',
1709
1865
  outerBorderGap: 0,
1710
1866
  outerBorderWidth: 0,
1711
- padding: 8,
1867
+ padding: 4,
1712
1868
  shadow: null
1713
1869
  }
1714
1870
  },
@@ -2134,6 +2290,56 @@ module.exports = {
2134
2290
  paddingTop: 12
2135
2291
  }
2136
2292
  },
2293
+ OrderedList: {
2294
+ appearances: {
2295
+ compact: {
2296
+ description: 'When true it will reduce the line height of the list item.',
2297
+ type: 'variant',
2298
+ values: [ true ]
2299
+ },
2300
+ size: {
2301
+ description: 'Indicates list item text size.',
2302
+ type: 'variant',
2303
+ values: [ 'large', 'medium', 'small' ]
2304
+ }
2305
+ },
2306
+ rules: [
2307
+ {
2308
+ if: { size: 'large' },
2309
+ tokens: { itemFontSize: 20, itemLineHeight: 1.6 }
2310
+ },
2311
+ { if: { size: 'medium' }, tokens: {} },
2312
+ {
2313
+ if: { size: 'small' },
2314
+ tokens: { itemFontSize: 14, itemLineHeight: 1.42857142857 }
2315
+ },
2316
+ { if: { compact: true }, tokens: { itemLineHeight: 1.25 } },
2317
+ {
2318
+ if: { compact: true, size: 'small' },
2319
+ tokens: { itemLineHeight: 1.14285714286 }
2320
+ },
2321
+ {
2322
+ if: { compact: true, size: 'large' },
2323
+ tokens: { itemLineHeight: 1.2 }
2324
+ }
2325
+ ],
2326
+ tokens: {
2327
+ headerFontName: 'HelveticaNow',
2328
+ headerFontWeight: '700',
2329
+ interItemMargin: 8,
2330
+ itemBulletContainerWidth: 16,
2331
+ itemBulletHeight: 4,
2332
+ itemBulletWidth: 4,
2333
+ itemColor: '#414547',
2334
+ itemFontName: 'HelveticaNow',
2335
+ itemFontSize: 16,
2336
+ itemFontWeight: '400',
2337
+ itemLineHeight: 1.5,
2338
+ itemMarginTop: 0,
2339
+ itemPaddingTop: 0,
2340
+ listGutter: 8
2341
+ }
2342
+ },
2137
2343
  Pagination: {
2138
2344
  appearances: {
2139
2345
  viewport: {
@@ -2332,6 +2538,74 @@ module.exports = {
2332
2538
  width: null
2333
2539
  }
2334
2540
  },
2541
+ PreviewCard: {
2542
+ appearances: {
2543
+ focus: {
2544
+ 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.",
2545
+ platforms: [ 'rn' ],
2546
+ type: 'state',
2547
+ values: [ true ]
2548
+ },
2549
+ hover: {
2550
+ description: "Currently web only. Applies when an interactive component's hover handler is triggered, such as on mouseover.",
2551
+ platforms: [ 'rn' ],
2552
+ type: 'state',
2553
+ values: [ true ]
2554
+ },
2555
+ pressed: {
2556
+ 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.",
2557
+ platforms: [ 'rn' ],
2558
+ type: 'state',
2559
+ values: [ true ]
2560
+ }
2561
+ },
2562
+ rules: [
2563
+ { if: { hover: true }, tokens: { borderWidth: 2 } },
2564
+ {
2565
+ if: { pressed: true },
2566
+ tokens: { backgroundColor: '#f4f4f7' }
2567
+ },
2568
+ {
2569
+ if: { focus: true },
2570
+ tokens: {
2571
+ outerBorderColor: '#676e73',
2572
+ outerBorderGap: 2,
2573
+ outerBorderWidth: 2
2574
+ }
2575
+ }
2576
+ ],
2577
+ tokens: {
2578
+ backgroundColor: '#ffffff',
2579
+ borderColor: '#e3e6e8',
2580
+ borderRadius: 6,
2581
+ borderWidth: 1,
2582
+ flex: 1,
2583
+ outerBorderColor: '#000000',
2584
+ outerBorderGap: 0,
2585
+ outerBorderWidth: 0,
2586
+ paddingBottom: 0,
2587
+ paddingLeft: 0,
2588
+ paddingRight: 0,
2589
+ paddingTop: 0,
2590
+ separatorColor: '#b2b9bf'
2591
+ }
2592
+ },
2593
+ PriceLockup: {
2594
+ appearances: {},
2595
+ rules: [],
2596
+ tokens: {
2597
+ bottomLinksMarginLeft: 4,
2598
+ bottomTextMarginTop: 4,
2599
+ dividerColor: '#b2b9bf',
2600
+ fontColor: '#414547',
2601
+ footnoteGap: 4,
2602
+ footnoteMarginTop: 4,
2603
+ priceMarginBottom: 8,
2604
+ strikeThroughBackground: '#676e73',
2605
+ strikeThroughHeight: 2,
2606
+ topTextMarginBottom: 4
2607
+ }
2608
+ },
2335
2609
  Progress: {
2336
2610
  appearances: { size: { type: 'variant', values: [ 'mini' ] } },
2337
2611
  rules: [ { if: { size: 'mini' }, tokens: { height: 8 } } ],
@@ -2625,10 +2899,7 @@ module.exports = {
2625
2899
  }
2626
2900
  },
2627
2901
  rules: [
2628
- {
2629
- if: { error: true },
2630
- tokens: { inputBorderColor: '#e12339' }
2631
- },
2902
+ { if: { error: true }, tokens: {} },
2632
2903
  {
2633
2904
  if: { hover: true },
2634
2905
  tokens: { outerBorderColor: '#e3e6e8', outerBorderWidth: 2 }
@@ -2644,6 +2915,15 @@ module.exports = {
2644
2915
  inputBorderColor: 'rgba(0, 0, 0, 0)',
2645
2916
  labelColor: '#676e73'
2646
2917
  }
2918
+ },
2919
+ {
2920
+ if: { checked: true, inactive: true },
2921
+ tokens: {
2922
+ checkedBackgroundColor: '#b2b9bf',
2923
+ inputBackgroundColor: '#ffffff',
2924
+ inputBorderColor: '#b2b9bf',
2925
+ labelColor: '#676e73'
2926
+ }
2647
2927
  }
2648
2928
  ],
2649
2929
  tokens: {
@@ -3051,11 +3331,12 @@ module.exports = {
3051
3331
  },
3052
3332
  rules: [
3053
3333
  {
3054
- if: { hover: true, inactive: null },
3055
- tokens: {
3056
- outerBackgroundColor: '#e3e6e8',
3057
- outerBorderColor: '#e3e6e8'
3058
- }
3334
+ if: { hover: true },
3335
+ tokens: { outerBorderColor: '#e3e6e8' }
3336
+ },
3337
+ {
3338
+ if: { focus: true },
3339
+ tokens: { borderColor: '#7c53a5', borderWidth: 3 }
3059
3340
  },
3060
3341
  {
3061
3342
  if: { validation: 'success' },
@@ -3073,17 +3354,9 @@ module.exports = {
3073
3354
  validationIconColor: '#e12339'
3074
3355
  }
3075
3356
  },
3076
- {
3077
- if: { focus: true },
3078
- tokens: {
3079
- borderColor: '#7c53a5',
3080
- borderWidth: 3,
3081
- validationIcon: null
3082
- }
3083
- },
3084
3357
  {
3085
3358
  if: { inactive: true },
3086
- tokens: { backgroundColor: '#f4f4f7', borderColor: '#f4f4f7' }
3359
+ tokens: { borderColor: '#676e73', icon: null }
3087
3360
  }
3088
3361
  ],
3089
3362
  tokens: {
@@ -3098,7 +3371,7 @@ module.exports = {
3098
3371
  height: 48,
3099
3372
  icon: PaletteIconCaretDown,
3100
3373
  iconColor: '#414547',
3101
- iconSize: 24,
3374
+ iconSize: 20,
3102
3375
  outerBackgroundColor: 'rgba(0, 0, 0, 0)',
3103
3376
  outerBorderColor: 'rgba(0, 0, 0, 0)',
3104
3377
  outerBorderWidth: 2,
@@ -3108,7 +3381,7 @@ module.exports = {
3108
3381
  paddingTop: 12,
3109
3382
  validationIcon: null,
3110
3383
  validationIconColor: 'rgba(0, 0, 0, 0)',
3111
- validationIconSize: 24
3384
+ validationIconSize: 20
3112
3385
  }
3113
3386
  },
3114
3387
  SideNav: {
@@ -4378,5 +4651,5 @@ module.exports = {
4378
4651
  tokens: { size: 96 }
4379
4652
  }
4380
4653
  },
4381
- metadata: { name: 'theme-allium', themeTokensVersion: '2.16.0' }
4654
+ metadata: { name: 'theme-allium', themeTokensVersion: '2.18.0' }
4382
4655
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@telus-uds/theme-allium",
3
- "version": "3.18.0",
3
+ "version": "3.20.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.12.2",
12
- "@telus-uds/system-theme-tokens": "^2.16.0",
13
- "@telus-uds/system-tokens": "^0.6.8"
11
+ "@telus-uds/palette-allium": "^2.13.0",
12
+ "@telus-uds/system-theme-tokens": "^2.18.0",
13
+ "@telus-uds/system-tokens": "^0.6.10"
14
14
  },
15
15
  "peerDependencies": {
16
- "@telus-uds/palette-allium": "^2.12.2"
16
+ "@telus-uds/palette-allium": "^2.13.0"
17
17
  },
18
18
  "files": [
19
19
  "build",