@telus-uds/theme-allium 4.19.0 → 4.21.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/android/schema.json +1136 -943
- package/build/android/theme.json +139 -5
- package/build/ios/schema.json +1136 -943
- package/build/ios/theme.json +139 -5
- package/build/rn/schema.json +1136 -943
- package/build/rn/theme.js +140 -6
- package/package.json +5 -5
- package/theme.json +124 -4
package/build/rn/theme.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
*
|
|
3
3
|
* Do not edit directly
|
|
4
|
-
* Generated on
|
|
4
|
+
* Generated on Wed, 13 Dec 2023 21:13:01 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:
|
|
1798
|
+
tokens: { blockLineHeight: 1.6, fontSize: 20, iconSize: 20 }
|
|
1758
1799
|
},
|
|
1759
1800
|
{
|
|
1760
1801
|
if: { size: 'small' },
|
|
1761
|
-
tokens: {
|
|
1802
|
+
tokens: {
|
|
1803
|
+
blockLineHeight: 1.42857142857,
|
|
1804
|
+
fontSize: 14,
|
|
1805
|
+
iconSize: 16
|
|
1806
|
+
}
|
|
1762
1807
|
},
|
|
1763
1808
|
{
|
|
1764
1809
|
if: { size: 'micro' },
|
|
1765
|
-
tokens: {
|
|
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:
|
|
1838
|
+
iconSize: 16,
|
|
1789
1839
|
iconSpace: 1,
|
|
1790
1840
|
leftIcon: PaletteIconArrowLeft,
|
|
1791
1841
|
outerBorderColor: 'rgba(0, 0, 0, 0)',
|
|
@@ -1793,6 +1843,90 @@ module.exports = {
|
|
|
1793
1843
|
textLine: 'none'
|
|
1794
1844
|
}
|
|
1795
1845
|
},
|
|
1846
|
+
ColourToggle: {
|
|
1847
|
+
appearances: {
|
|
1848
|
+
focus: {
|
|
1849
|
+
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.",
|
|
1850
|
+
platforms: [ 'rn' ],
|
|
1851
|
+
type: 'state',
|
|
1852
|
+
values: [ true, false ]
|
|
1853
|
+
},
|
|
1854
|
+
hover: {
|
|
1855
|
+
description: "Currently web only. Applies when an interactive component's hover handler is triggered, such as on mouseover.",
|
|
1856
|
+
platforms: [ 'rn' ],
|
|
1857
|
+
type: 'state',
|
|
1858
|
+
values: [ true, false ]
|
|
1859
|
+
},
|
|
1860
|
+
pressed: {
|
|
1861
|
+
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.',
|
|
1862
|
+
type: 'state',
|
|
1863
|
+
values: [ true, false ]
|
|
1864
|
+
},
|
|
1865
|
+
selected: {
|
|
1866
|
+
description: 'Applies while an interactive component is the currently selected one in a set of states or components, for example a button in a `ButtonGroup`.',
|
|
1867
|
+
type: 'state',
|
|
1868
|
+
values: [ true ]
|
|
1869
|
+
}
|
|
1870
|
+
},
|
|
1871
|
+
rules: [
|
|
1872
|
+
{
|
|
1873
|
+
if: { hover: true },
|
|
1874
|
+
tokens: {
|
|
1875
|
+
bubbleBorderColor: '#b2b9bf',
|
|
1876
|
+
bubbleBorderRadius: 45,
|
|
1877
|
+
bubbleBorderWidth: 1
|
|
1878
|
+
}
|
|
1879
|
+
},
|
|
1880
|
+
{
|
|
1881
|
+
if: { focus: true },
|
|
1882
|
+
tokens: {
|
|
1883
|
+
bubbleBorderColor: '#676e73',
|
|
1884
|
+
bubbleBorderRadius: 45,
|
|
1885
|
+
bubbleBorderWidth: 1
|
|
1886
|
+
}
|
|
1887
|
+
},
|
|
1888
|
+
{
|
|
1889
|
+
if: { pressed: true },
|
|
1890
|
+
tokens: {
|
|
1891
|
+
bubbleBorderColor: '#e3e6e8',
|
|
1892
|
+
bubbleBorderRadius: 45,
|
|
1893
|
+
bubbleBorderWidth: 1
|
|
1894
|
+
}
|
|
1895
|
+
},
|
|
1896
|
+
{
|
|
1897
|
+
if: { selected: true },
|
|
1898
|
+
tokens: {
|
|
1899
|
+
bubbleBorderColor: '#4b286d',
|
|
1900
|
+
bubbleBorderRadius: 45,
|
|
1901
|
+
bubbleBorderWidth: 1
|
|
1902
|
+
}
|
|
1903
|
+
}
|
|
1904
|
+
],
|
|
1905
|
+
tokens: {
|
|
1906
|
+
borderColor: '#e3e6e8',
|
|
1907
|
+
borderRadius: 45,
|
|
1908
|
+
borderWidth: 1,
|
|
1909
|
+
bubbleBorderColor: 'rgba(0, 0, 0, 0)',
|
|
1910
|
+
bubbleBorderRadius: 0,
|
|
1911
|
+
bubbleBorderWidth: 0,
|
|
1912
|
+
innerBubbleBorderRadius: 45,
|
|
1913
|
+
innerBubbleHeight: 40,
|
|
1914
|
+
innerBubbleWidth: 40,
|
|
1915
|
+
outerBubbleContentAlignItems: 'center',
|
|
1916
|
+
outerBubbleHeight: 48,
|
|
1917
|
+
outerBubbleJustifyContent: 'center',
|
|
1918
|
+
outerBubbleWidth: 48,
|
|
1919
|
+
shadow: {
|
|
1920
|
+
blur: 2,
|
|
1921
|
+
color: 'rgba(0, 0, 0, 0.1)',
|
|
1922
|
+
inset: true,
|
|
1923
|
+
offsetX: 0,
|
|
1924
|
+
offsetY: 2,
|
|
1925
|
+
spread: 0
|
|
1926
|
+
},
|
|
1927
|
+
space: 2
|
|
1928
|
+
}
|
|
1929
|
+
},
|
|
1796
1930
|
Countdown: {
|
|
1797
1931
|
appearances: {
|
|
1798
1932
|
feature: { type: 'variant', values: [ true ] },
|
|
@@ -6996,5 +7130,5 @@ module.exports = {
|
|
|
6996
7130
|
tokens: { size: 96 }
|
|
6997
7131
|
}
|
|
6998
7132
|
},
|
|
6999
|
-
metadata: { name: 'theme-allium', themeTokensVersion: '2.
|
|
7133
|
+
metadata: { name: 'theme-allium', themeTokensVersion: '2.48.0' }
|
|
7000
7134
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@telus-uds/theme-allium",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.21.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.
|
|
12
|
-
"@telus-uds/system-theme-tokens": "^2.
|
|
13
|
-
"@telus-uds/system-tokens": "^0.7.
|
|
11
|
+
"@telus-uds/palette-allium": "^2.28.3",
|
|
12
|
+
"@telus-uds/system-theme-tokens": "^2.48.0",
|
|
13
|
+
"@telus-uds/system-tokens": "^0.7.30"
|
|
14
14
|
},
|
|
15
15
|
"peerDependencies": {
|
|
16
|
-
"@telus-uds/palette-allium": "^2.28.
|
|
16
|
+
"@telus-uds/palette-allium": "^2.28.3"
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
2220
|
+
"iconSize": "{palette.size.size16}",
|
|
2168
2221
|
"iconSpace": "{system.integer.1}",
|
|
2169
2222
|
"leftIcon": "{palette.icon.ArrowLeft}",
|
|
2170
2223
|
"outerBorderColor": "{palette.color.transparent}",
|
|
@@ -2172,6 +2225,73 @@
|
|
|
2172
2225
|
"textLine": "{system.textLine.none}"
|
|
2173
2226
|
}
|
|
2174
2227
|
},
|
|
2228
|
+
"ColourToggle": {
|
|
2229
|
+
"appearances": {
|
|
2230
|
+
"focus": "{appearances.ColourToggle.focus}",
|
|
2231
|
+
"hover": "{appearances.ColourToggle.hover}",
|
|
2232
|
+
"pressed": "{appearances.ColourToggle.pressed}",
|
|
2233
|
+
"selected": "{appearances.ColourToggle.selected}"
|
|
2234
|
+
},
|
|
2235
|
+
"rules": [
|
|
2236
|
+
{
|
|
2237
|
+
"if": {
|
|
2238
|
+
"hover": true
|
|
2239
|
+
},
|
|
2240
|
+
"tokens": {
|
|
2241
|
+
"bubbleBorderColor": "{palette.color.greyCloud}",
|
|
2242
|
+
"bubbleBorderRadius": "{palette.radius.radius45}",
|
|
2243
|
+
"bubbleBorderWidth": "{palette.border.border1}"
|
|
2244
|
+
}
|
|
2245
|
+
},
|
|
2246
|
+
{
|
|
2247
|
+
"if": {
|
|
2248
|
+
"focus": true
|
|
2249
|
+
},
|
|
2250
|
+
"tokens": {
|
|
2251
|
+
"bubbleBorderColor": "{palette.color.greyShuttle}",
|
|
2252
|
+
"bubbleBorderRadius": "{palette.radius.radius45}",
|
|
2253
|
+
"bubbleBorderWidth": "{palette.border.border1}"
|
|
2254
|
+
}
|
|
2255
|
+
},
|
|
2256
|
+
{
|
|
2257
|
+
"if": {
|
|
2258
|
+
"pressed": true
|
|
2259
|
+
},
|
|
2260
|
+
"tokens": {
|
|
2261
|
+
"bubbleBorderColor": "{palette.color.greyMystic}",
|
|
2262
|
+
"bubbleBorderRadius": "{palette.radius.radius45}",
|
|
2263
|
+
"bubbleBorderWidth": "{palette.border.border1}"
|
|
2264
|
+
}
|
|
2265
|
+
},
|
|
2266
|
+
{
|
|
2267
|
+
"if": {
|
|
2268
|
+
"selected": true
|
|
2269
|
+
},
|
|
2270
|
+
"tokens": {
|
|
2271
|
+
"bubbleBorderColor": "{palette.color.purpleTelus}",
|
|
2272
|
+
"bubbleBorderRadius": "{palette.radius.radius45}",
|
|
2273
|
+
"bubbleBorderWidth": "{palette.border.border1}"
|
|
2274
|
+
}
|
|
2275
|
+
}
|
|
2276
|
+
],
|
|
2277
|
+
"tokens": {
|
|
2278
|
+
"borderColor": "{palette.color.greyMystic}",
|
|
2279
|
+
"borderRadius": "{palette.radius.radius45}",
|
|
2280
|
+
"borderWidth": "{palette.border.border1}",
|
|
2281
|
+
"bubbleBorderColor": "{palette.color.transparent}",
|
|
2282
|
+
"bubbleBorderRadius": "{palette.radius.none}",
|
|
2283
|
+
"bubbleBorderWidth": "{palette.border.none}",
|
|
2284
|
+
"innerBubbleBorderRadius": "{palette.radius.radius45}",
|
|
2285
|
+
"innerBubbleHeight": "{palette.size.size40}",
|
|
2286
|
+
"innerBubbleWidth": "{palette.size.size40}",
|
|
2287
|
+
"outerBubbleContentAlignItems": "{system.flexAlign.center}",
|
|
2288
|
+
"outerBubbleHeight": "{palette.size.size48}",
|
|
2289
|
+
"outerBubbleJustifyContent": "{system.flexJustifyContent.center}",
|
|
2290
|
+
"outerBubbleWidth": "{palette.size.size48}",
|
|
2291
|
+
"shadow": "{palette.shadow.surfaceInset}",
|
|
2292
|
+
"space": "{system.integer.2}"
|
|
2293
|
+
}
|
|
2294
|
+
},
|
|
2175
2295
|
"Countdown": {
|
|
2176
2296
|
"appearances": {
|
|
2177
2297
|
"feature": {
|