@telus-uds/theme-allium 4.13.1 → 4.15.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, 16 Oct 2023 22:47:36 GMT
4
+ * Generated on Thu, 26 Oct 2023 19:23:50 GMT
5
5
  *
6
6
  */
7
7
 
@@ -53,10 +53,19 @@ module.exports = {
53
53
  Badge: {
54
54
  appearances: {
55
55
  alternative: { type: 'variant', values: [ true ] },
56
+ inverse: { type: 'variant', values: [ true ] },
56
57
  outline: { type: 'variant', values: [ true ] },
57
58
  purpose: { type: 'variant', values: [ 'offer', 'editorial' ] }
58
59
  },
59
60
  rules: [
61
+ {
62
+ if: { inverse: true },
63
+ tokens: {
64
+ backgroundColor: 'rgba(0, 0, 0, 0)',
65
+ borderColor: '#ffffff',
66
+ color: '#ffffff'
67
+ }
68
+ },
60
69
  {
61
70
  if: { outline: true },
62
71
  tokens: { backgroundColor: '#ffffff', color: '#613889' }
@@ -1469,6 +1478,156 @@ module.exports = {
1469
1478
  labelMarginLeft: 10
1470
1479
  }
1471
1480
  },
1481
+ CheckboxCard: {
1482
+ appearances: {
1483
+ checked: {
1484
+ description: 'Corresponds to a selected state for a checkbox or radio',
1485
+ type: 'state',
1486
+ values: [ true ]
1487
+ },
1488
+ error: { type: 'state', values: [ true ] },
1489
+ focus: {
1490
+ 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.",
1491
+ platforms: [ 'rn' ],
1492
+ type: 'state',
1493
+ values: [ true, false ]
1494
+ },
1495
+ hover: {
1496
+ description: "Currently web only. Applies when an interactive component's hover handler is triggered, such as on mouseover.",
1497
+ platforms: [ 'rn' ],
1498
+ type: 'state',
1499
+ values: [ true, false ]
1500
+ },
1501
+ inactive: {
1502
+ description: 'Prevents an interactive component from being interacted with and applies accessibility attributes to indicate to the user that this component cannot be used.',
1503
+ type: 'state',
1504
+ values: [ true ]
1505
+ },
1506
+ pressed: {
1507
+ 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.',
1508
+ type: 'state',
1509
+ values: [ true, false ]
1510
+ },
1511
+ viewport: {
1512
+ description: 'The size label for the current screen viewport based on the current screen width',
1513
+ type: 'state',
1514
+ values: [ 'xs', 'sm', 'md', 'lg', 'xl' ]
1515
+ }
1516
+ },
1517
+ rules: [
1518
+ {
1519
+ if: { viewport: [ 'lg', 'xl' ] },
1520
+ tokens: {
1521
+ fontSize: 24,
1522
+ lineHeight: 1.33333333333,
1523
+ paddingBottom: 24,
1524
+ paddingLeft: 16,
1525
+ paddingRight: 24,
1526
+ paddingTop: 16
1527
+ }
1528
+ },
1529
+ {
1530
+ if: { hover: true },
1531
+ tokens: {
1532
+ borderColor: '#676e73',
1533
+ checkboxOuterBorderColor: '#e3e6e8',
1534
+ checkboxOuterBorderWidth: 2,
1535
+ outerBorderColor: '#e3e6e8'
1536
+ }
1537
+ },
1538
+ {
1539
+ if: { focus: true },
1540
+ tokens: {
1541
+ checkboxInputBorderColor: '#7c53a5',
1542
+ checkboxInputBorderWidth: 3,
1543
+ outerBorderColor: '#676e73',
1544
+ outerBorderGap: 2
1545
+ }
1546
+ },
1547
+ {
1548
+ description: 'Pressed state matches hover state plus light grey background',
1549
+ if: { pressed: true },
1550
+ tokens: {
1551
+ backgroundColor: '#f4f4f7',
1552
+ borderColor: '#676e73',
1553
+ checkboxInputBorderColor: '#676e73',
1554
+ checkboxInputBorderWidth: 1,
1555
+ checkboxOuterBorderColor: '#e3e6e8',
1556
+ checkboxOuterBorderWidth: 3,
1557
+ outerBorderColor: '#e3e6e8',
1558
+ outerBorderGap: 0
1559
+ }
1560
+ },
1561
+ { if: { checked: true }, tokens: { borderColor: '#7c53a5' } },
1562
+ {
1563
+ if: { checked: true, hover: true },
1564
+ tokens: { borderColor: '#4b286d' }
1565
+ },
1566
+ {
1567
+ if: { error: true },
1568
+ tokens: {
1569
+ borderColor: '#e12339',
1570
+ checkboxInputBorderColor: '#e12339',
1571
+ color: '#e12339'
1572
+ }
1573
+ },
1574
+ {
1575
+ if: { inactive: true },
1576
+ tokens: {
1577
+ backgroundColor: '#f4f4f7',
1578
+ borderColor: 'rgba(0, 0, 0, 0)',
1579
+ checkboxCheckedBackgroundColor: '#676e73',
1580
+ checkboxInputBackgroundColor: '#b2b9bf',
1581
+ checkboxInputBorderColor: 'transparent',
1582
+ checkboxInputSize: 12,
1583
+ checkboxOuterBorderColor: '#b2b9bf',
1584
+ checkboxOuterBorderGap: 2,
1585
+ checkboxOuterBorderWidth: 1,
1586
+ color: '#676e73'
1587
+ }
1588
+ }
1589
+ ],
1590
+ tokens: {
1591
+ backgroundColor: '#ffffff',
1592
+ borderColor: '#b2b9bf',
1593
+ borderRadius: 6,
1594
+ borderWidth: 1,
1595
+ checkboxCheckedBackgroundColor: '#7c53a5',
1596
+ checkboxCheckedSize: 12,
1597
+ checkboxInputBackgroundColor: '#ffffff',
1598
+ checkboxInputBorderColor: '#676e73',
1599
+ checkboxInputBorderWidth: 1,
1600
+ checkboxInputOutlineColor: 'rgba(0, 0, 0, 0)',
1601
+ checkboxInputOutlineWidth: 0,
1602
+ checkboxInputSize: 20,
1603
+ checkboxOuterBorderColor: 'transparent',
1604
+ checkboxOuterBorderGap: 0,
1605
+ checkboxOuterBorderWidth: 0,
1606
+ checkboxSpace: 2,
1607
+ color: '#2c2e30',
1608
+ contentAlignItems: 'stretch',
1609
+ contentFlexGrow: 0,
1610
+ contentFlexShrink: 1,
1611
+ contentJustifyContent: 'flex-start',
1612
+ contentSpace: 2,
1613
+ flex: 1,
1614
+ fontName: 'HelveticaNow',
1615
+ fontSize: 20,
1616
+ fontWeight: '500',
1617
+ letterSpacing: 0,
1618
+ lineHeight: 1.4,
1619
+ minWidth: 264,
1620
+ outerBorderColor: 'transparent',
1621
+ outerBorderGap: 0,
1622
+ outerBorderWidth: 2,
1623
+ paddingBottom: 16,
1624
+ paddingLeft: 10,
1625
+ paddingRight: 16,
1626
+ paddingTop: 16,
1627
+ shadow: null,
1628
+ textTransform: 'none'
1629
+ }
1630
+ },
1472
1631
  CheckboxGroup: {
1473
1632
  appearances: {},
1474
1633
  rules: [],
@@ -1944,8 +2103,8 @@ module.exports = {
1944
2103
  }
1945
2104
  ],
1946
2105
  tokens: {
1947
- backgroundColor: '#f4f4f7',
1948
- borderColor: '#e3e6e8',
2106
+ backgroundColor: '#efedff',
2107
+ borderColor: 'rgba(0, 0, 0, 0)',
1949
2108
  borderRadius: 4,
1950
2109
  borderWidth: 1,
1951
2110
  color: '#2c2e30',
@@ -1983,8 +2142,54 @@ module.exports = {
1983
2142
  }
1984
2143
  },
1985
2144
  Footnote: {
1986
- appearances: {},
1987
- rules: [],
2145
+ appearances: {
2146
+ viewport: {
2147
+ description: 'The size label for the current screen viewport based on the current screen width',
2148
+ type: 'state',
2149
+ values: [ 'xs', 'sm', 'md', 'lg', 'xl' ]
2150
+ }
2151
+ },
2152
+ rules: [
2153
+ {
2154
+ if: { viewport: [ 'xs' ] },
2155
+ tokens: {
2156
+ footnoteBodyPaddingBottom: 32,
2157
+ footnoteBodyPaddingLeft: 16,
2158
+ footnoteBodyPaddingRight: 16,
2159
+ footnoteBodyPaddingTop: 0,
2160
+ footnoteHeaderPaddingBottom: 16,
2161
+ footnoteHeaderPaddingLeft: 16,
2162
+ footnoteHeaderPaddingRight: 4,
2163
+ footnoteHeaderPaddingTop: 16
2164
+ }
2165
+ },
2166
+ {
2167
+ if: { viewport: [ 'md', 'lg' ] },
2168
+ tokens: {
2169
+ footnoteBodyPaddingBottom: 40,
2170
+ footnoteBodyPaddingLeft: 16,
2171
+ footnoteBodyPaddingRight: 16,
2172
+ footnoteBodyPaddingTop: 0,
2173
+ footnoteHeaderPaddingBottom: 24,
2174
+ footnoteHeaderPaddingLeft: 16,
2175
+ footnoteHeaderPaddingRight: 4,
2176
+ footnoteHeaderPaddingTop: 24
2177
+ }
2178
+ },
2179
+ {
2180
+ if: { viewport: [ 'xl' ] },
2181
+ tokens: {
2182
+ footnoteBodyPaddingBottom: 40,
2183
+ footnoteBodyPaddingLeft: 16,
2184
+ footnoteBodyPaddingRight: 16,
2185
+ footnoteBodyPaddingTop: 0,
2186
+ footnoteHeaderPaddingBottom: 24,
2187
+ footnoteHeaderPaddingLeft: 16,
2188
+ footnoteHeaderPaddingRight: 16,
2189
+ footnoteHeaderPaddingTop: 24
2190
+ }
2191
+ }
2192
+ ],
1988
2193
  tokens: {
1989
2194
  closeButtonBackgroundColor: '#f4f4f7',
1990
2195
  closeButtonBorderColor: '#676e73',
@@ -1999,16 +2204,16 @@ module.exports = {
1999
2204
  closeIcon: PaletteIconClose,
2000
2205
  footnoteBackground: '#f4f4f7',
2001
2206
  footnoteBodyBackground: '#f4f4f7',
2002
- footnoteBodyPaddingBottom: 32,
2207
+ footnoteBodyPaddingBottom: 40,
2003
2208
  footnoteBodyPaddingLeft: 16,
2004
2209
  footnoteBodyPaddingRight: 16,
2005
2210
  footnoteBodyPaddingTop: 0,
2006
2211
  footnoteBorderColorMd: '#b2b9bf',
2007
2212
  footnoteBorderTopSizeMd: 1,
2008
- footnoteHeaderPaddingBottom: 16,
2213
+ footnoteHeaderPaddingBottom: 24,
2009
2214
  footnoteHeaderPaddingLeft: 16,
2010
- footnoteHeaderPaddingRight: 16,
2011
- footnoteHeaderPaddingTop: 16,
2215
+ footnoteHeaderPaddingRight: 4,
2216
+ footnoteHeaderPaddingTop: 24,
2012
2217
  headerFontName: 'HelveticaNow',
2013
2218
  headerFontSize: 16,
2014
2219
  headerFontWeight: '500',
@@ -3210,9 +3415,9 @@ module.exports = {
3210
3415
  }
3211
3416
  ],
3212
3417
  tokens: {
3213
- backgroundColor: '#f4f4f7',
3418
+ backgroundColor: '#efedff',
3214
3419
  borderBottomWidth: 1,
3215
- borderColor: '#676e73',
3420
+ borderColor: '#7c53a5',
3216
3421
  borderLeftWidth: 1,
3217
3422
  borderRadius: 6,
3218
3423
  borderRightWidth: 1,
@@ -4959,7 +5164,8 @@ module.exports = {
4959
5164
  alignItems: 'stretch',
4960
5165
  flexGrow: 0,
4961
5166
  flexShrink: 0,
4962
- justifyContent: 'flex-start'
5167
+ justifyContent: 'flex-start',
5168
+ width: null
4963
5169
  }
4964
5170
  },
4965
5171
  StepTracker: {
@@ -5242,6 +5448,11 @@ module.exports = {
5242
5448
  },
5243
5449
  Tabs: {
5244
5450
  appearances: {
5451
+ equalWidth: {
5452
+ description: 'Divide the available width equally among `TabsItem`',
5453
+ type: 'variant',
5454
+ values: [ true ]
5455
+ },
5245
5456
  inverse: {
5246
5457
  description: 'Styles the link white for use on dark backgrounds.',
5247
5458
  type: 'variant',
@@ -5266,6 +5477,11 @@ module.exports = {
5266
5477
  },
5267
5478
  TabsItem: {
5268
5479
  appearances: {
5480
+ equalWidth: {
5481
+ description: 'Divide the available width equally among `TabsItem`',
5482
+ type: 'variant',
5483
+ values: [ true ]
5484
+ },
5269
5485
  focus: {
5270
5486
  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.',
5271
5487
  type: 'state',
@@ -5293,7 +5509,7 @@ module.exports = {
5293
5509
  description: "The design uses height of 3: there's (rightly) no '3' in the Allium palette but the effect is 1px above and below a 1px line",
5294
5510
  if: { selected: true },
5295
5511
  tokens: {
5296
- backgroundColor: '#f4f4f7',
5512
+ backgroundColor: 'rgba(0, 0, 0, 0.05)',
5297
5513
  color: '#4b286d',
5298
5514
  highlightBarBorderRadius: 32,
5299
5515
  highlightBarBorderWidth: 1,
@@ -5349,7 +5565,8 @@ module.exports = {
5349
5565
  {
5350
5566
  if: { focus: true, inverse: true },
5351
5567
  tokens: { borderColor: '#ffffff', highlightColor: '#ffffff' }
5352
- }
5568
+ },
5569
+ { if: { equalWidth: true }, tokens: { maxWidth: null } }
5353
5570
  ],
5354
5571
  tokens: {
5355
5572
  backgroundColor: 'transparent',
@@ -6681,5 +6898,5 @@ module.exports = {
6681
6898
  tokens: { size: 96 }
6682
6899
  }
6683
6900
  },
6684
- metadata: { name: 'theme-allium', themeTokensVersion: '2.41.1' }
6901
+ metadata: { name: 'theme-allium', themeTokensVersion: '2.42.0' }
6685
6902
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@telus-uds/theme-allium",
3
- "version": "4.13.1",
3
+ "version": "4.15.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.25.0",
12
- "@telus-uds/system-theme-tokens": "^2.41.1",
13
- "@telus-uds/system-tokens": "^0.7.22"
11
+ "@telus-uds/palette-allium": "^2.27.0",
12
+ "@telus-uds/system-theme-tokens": "^2.42.0",
13
+ "@telus-uds/system-tokens": "^0.7.23"
14
14
  },
15
15
  "peerDependencies": {
16
- "@telus-uds/palette-allium": "^2.25.0"
16
+ "@telus-uds/palette-allium": "^2.27.0"
17
17
  },
18
18
  "files": [
19
19
  "build",