@telus-uds/theme-allium 4.18.0 → 4.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,7 +1,7 @@
1
1
  /*
2
2
  *
3
3
  * Do not edit directly
4
- * Generated on Wed, 15 Nov 2023 18:33:41 GMT
4
+ * Generated on Fri, 01 Dec 2023 20:56:16 GMT
5
5
  *
6
6
  */
7
7
 
@@ -1069,10 +1069,28 @@ module.exports = {
1069
1069
  values: [ 'alternative', 'subtle', 'grid', 'feature' ]
1070
1070
  },
1071
1071
  borderRadius: { type: 'variant', values: [ 'none', 'small', 'large' ] },
1072
+ focus: {
1073
+ 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.",
1074
+ platforms: [ 'rn' ],
1075
+ type: 'state',
1076
+ values: [ true, false ]
1077
+ },
1078
+ hover: {
1079
+ description: "Currently web only. Applies when an interactive component's hover handler is triggered, such as on mouseover.",
1080
+ platforms: [ 'rn' ],
1081
+ type: 'state',
1082
+ values: [ true, false ]
1083
+ },
1084
+ interactive: { type: 'variant', values: [ true ] },
1072
1085
  padding: {
1073
1086
  type: 'variant',
1074
1087
  values: [ 'narrow', 'intermediate', 'compact', 'custom' ]
1075
1088
  },
1089
+ pressed: {
1090
+ 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.',
1091
+ type: 'state',
1092
+ values: [ true, false ]
1093
+ },
1076
1094
  viewport: {
1077
1095
  description: 'The size label for the current screen viewport based on the current screen width',
1078
1096
  type: 'state',
@@ -1172,6 +1190,29 @@ module.exports = {
1172
1190
  paddingRight: 0,
1173
1191
  paddingTop: 0
1174
1192
  }
1193
+ },
1194
+ {
1195
+ if: { focus: false, interactive: true, pressed: false },
1196
+ tokens: { borderColor: '#ffffff', borderWidth: 2 }
1197
+ },
1198
+ {
1199
+ if: { hover: true, interactive: true },
1200
+ tokens: {
1201
+ backgroundColor: 'rgba(0, 0, 0, 0.05)',
1202
+ borderColor: 'transparent'
1203
+ }
1204
+ },
1205
+ {
1206
+ if: { focus: true, interactive: true },
1207
+ tokens: { borderColor: '#4b286d', borderWidth: 2 }
1208
+ },
1209
+ {
1210
+ if: { interactive: true, pressed: true },
1211
+ tokens: {
1212
+ backgroundColor: 'rgba(0, 0, 0, 0.1)',
1213
+ borderColor: '#e3e6e8',
1214
+ borderWidth: 2
1215
+ }
1175
1216
  }
1176
1217
  ],
1177
1218
  tokens: {
@@ -1754,15 +1795,23 @@ module.exports = {
1754
1795
  },
1755
1796
  {
1756
1797
  if: { size: 'large' },
1757
- tokens: { fontSize: 20, iconSize: 24 }
1798
+ tokens: { blockLineHeight: 1.6, fontSize: 20, iconSize: 20 }
1758
1799
  },
1759
1800
  {
1760
1801
  if: { size: 'small' },
1761
- tokens: { fontSize: 14, iconSize: 14 }
1802
+ tokens: {
1803
+ blockLineHeight: 1.42857142857,
1804
+ fontSize: 14,
1805
+ iconSize: 16
1806
+ }
1762
1807
  },
1763
1808
  {
1764
1809
  if: { size: 'micro' },
1765
- tokens: { fontSize: 12, iconSize: 12 }
1810
+ tokens: {
1811
+ blockLineHeight: 1.33333333333,
1812
+ fontSize: 12,
1813
+ iconSize: 16
1814
+ }
1766
1815
  },
1767
1816
  {
1768
1817
  if: { focus: true },
@@ -1782,10 +1831,11 @@ module.exports = {
1782
1831
  }
1783
1832
  ],
1784
1833
  tokens: {
1834
+ blockLineHeight: 1.5,
1785
1835
  color: '#2b8000',
1786
1836
  fontSize: 16,
1787
1837
  iconDisplace: 0,
1788
- iconSize: 24,
1838
+ iconSize: 16,
1789
1839
  iconSpace: 1,
1790
1840
  leftIcon: PaletteIconArrowLeft,
1791
1841
  outerBorderColor: 'rgba(0, 0, 0, 0)',
@@ -3439,7 +3489,7 @@ module.exports = {
3439
3489
  },
3440
3490
  Notification: {
3441
3491
  appearances: {
3442
- style: { type: 'state', values: [ 'success', 'warning', 'error' ] },
3492
+ style: { type: 'variant', values: [ 'success', 'warning', 'error' ] },
3443
3493
  system: { type: 'state', values: [ true ] },
3444
3494
  viewport: {
3445
3495
  description: 'The size label for the current screen viewport based on the current screen width',
@@ -6996,5 +7046,5 @@ module.exports = {
6996
7046
  tokens: { size: 96 }
6997
7047
  }
6998
7048
  },
6999
- metadata: { name: 'theme-allium', themeTokensVersion: '2.45.0' }
7049
+ metadata: { name: 'theme-allium', themeTokensVersion: '2.47.0' }
7000
7050
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@telus-uds/theme-allium",
3
- "version": "4.18.0",
3
+ "version": "4.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.28.0",
12
- "@telus-uds/system-theme-tokens": "^2.45.0",
13
- "@telus-uds/system-tokens": "^0.7.27"
11
+ "@telus-uds/palette-allium": "^2.28.2",
12
+ "@telus-uds/system-theme-tokens": "^2.47.0",
13
+ "@telus-uds/system-tokens": "^0.7.29"
14
14
  },
15
15
  "peerDependencies": {
16
- "@telus-uds/palette-allium": "^2.28.0"
16
+ "@telus-uds/palette-allium": "^2.28.2"
17
17
  },
18
18
  "files": [
19
19
  "build",
package/theme.json CHANGED
@@ -1304,10 +1304,17 @@
1304
1304
  "type": "variant",
1305
1305
  "values": ["none", "small", "large"]
1306
1306
  },
1307
+ "focus": "{appearances.Card.focus}",
1308
+ "hover": "{appearances.Card.hover}",
1309
+ "interactive": {
1310
+ "type": "variant",
1311
+ "values": [true]
1312
+ },
1307
1313
  "padding": {
1308
1314
  "type": "variant",
1309
1315
  "values": ["narrow", "intermediate", "compact", "custom"]
1310
1316
  },
1317
+ "pressed": "{appearances.Card.pressed}",
1311
1318
  "viewport": "{appearances.system.viewport}"
1312
1319
  },
1313
1320
  "rules": [
@@ -1448,6 +1455,48 @@
1448
1455
  "paddingRight": "{palette.size.size0}",
1449
1456
  "paddingTop": "{palette.size.size0}"
1450
1457
  }
1458
+ },
1459
+ {
1460
+ "if": {
1461
+ "focus": false,
1462
+ "interactive": true,
1463
+ "pressed": false
1464
+ },
1465
+ "tokens": {
1466
+ "borderColor": "{palette.color.white}",
1467
+ "borderWidth": "{palette.border.border2}"
1468
+ }
1469
+ },
1470
+ {
1471
+ "if": {
1472
+ "hover": true,
1473
+ "interactive": true
1474
+ },
1475
+ "tokens": {
1476
+ "backgroundColor": "{palette.color.dark5}",
1477
+ "borderColor": "{system.color.transparent}"
1478
+ }
1479
+ },
1480
+ {
1481
+ "if": {
1482
+ "focus": true,
1483
+ "interactive": true
1484
+ },
1485
+ "tokens": {
1486
+ "borderColor": "{palette.color.purpleTelus}",
1487
+ "borderWidth": "{palette.border.border2}"
1488
+ }
1489
+ },
1490
+ {
1491
+ "if": {
1492
+ "interactive": true,
1493
+ "pressed": true
1494
+ },
1495
+ "tokens": {
1496
+ "backgroundColor": "{palette.color.dark10}",
1497
+ "borderColor": "{palette.color.greyMystic}",
1498
+ "borderWidth": "{palette.border.border2}"
1499
+ }
1451
1500
  }
1452
1501
  ],
1453
1502
  "tokens": {
@@ -2101,8 +2150,9 @@
2101
2150
  "size": "large"
2102
2151
  },
2103
2152
  "tokens": {
2153
+ "blockLineHeight": "{palette.lineHeight.ratio8to5}",
2104
2154
  "fontSize": "{palette.fontSize.size20}",
2105
- "iconSize": "{palette.size.size24}"
2155
+ "iconSize": "{palette.size.size20}"
2106
2156
  }
2107
2157
  },
2108
2158
  {
@@ -2110,8 +2160,9 @@
2110
2160
  "size": "small"
2111
2161
  },
2112
2162
  "tokens": {
2163
+ "blockLineHeight": "{palette.lineHeight.ratio10to7}",
2113
2164
  "fontSize": "{palette.fontSize.size14}",
2114
- "iconSize": "{palette.size.size14}"
2165
+ "iconSize": "{palette.size.size16}"
2115
2166
  }
2116
2167
  },
2117
2168
  {
@@ -2119,8 +2170,9 @@
2119
2170
  "size": "micro"
2120
2171
  },
2121
2172
  "tokens": {
2173
+ "blockLineHeight": "{palette.lineHeight.ratio4to3}",
2122
2174
  "fontSize": "{palette.fontSize.size12}",
2123
- "iconSize": "{palette.size.size12}"
2175
+ "iconSize": "{palette.size.size16}"
2124
2176
  }
2125
2177
  },
2126
2178
  {
@@ -2161,10 +2213,11 @@
2161
2213
  }
2162
2214
  ],
2163
2215
  "tokens": {
2216
+ "blockLineHeight": "{palette.lineHeight.ratio3to2}",
2164
2217
  "color": "{palette.color.greenAccessible}",
2165
2218
  "fontSize": "{palette.fontSize.size16}",
2166
2219
  "iconDisplace": "{palette.size.size0}",
2167
- "iconSize": "{palette.size.size24}",
2220
+ "iconSize": "{palette.size.size16}",
2168
2221
  "iconSpace": "{system.integer.1}",
2169
2222
  "leftIcon": "{palette.icon.ArrowLeft}",
2170
2223
  "outerBorderColor": "{palette.color.transparent}",
@@ -4382,7 +4435,10 @@
4382
4435
  },
4383
4436
  "Notification": {
4384
4437
  "appearances": {
4385
- "style": "{appearances.Notification.style}",
4438
+ "style": {
4439
+ "type": "variant",
4440
+ "values": ["success", "warning", "error"]
4441
+ },
4386
4442
  "system": "{appearances.Notification.system}",
4387
4443
  "viewport": "{appearances.system.viewport}"
4388
4444
  },