@telus-uds/theme-allium 3.22.0 → 3.24.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 +1368 -872
- package/build/android/theme.json +334 -12
- package/build/ios/schema.json +1368 -872
- package/build/ios/theme.json +334 -12
- package/build/rn/schema.json +1368 -872
- package/build/rn/theme.js +212 -16
- package/package.json +5 -5
- package/theme.json +241 -9
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 Mon, 24 Apr 2023 21:33:19 GMT
|
|
5
5
|
*
|
|
6
6
|
*/
|
|
7
7
|
|
|
@@ -11,14 +11,17 @@ const PaletteIconCaretUp = require('@telus-uds/palette-allium/build/rn/icons/Car
|
|
|
11
11
|
const PaletteIconArrowRight = require('@telus-uds/palette-allium/build/rn/icons/ArrowRight')
|
|
12
12
|
const PaletteIconArrowLeft = require('@telus-uds/palette-allium/build/rn/icons/ArrowLeft')
|
|
13
13
|
const PaletteIconCheckmark = require('@telus-uds/palette-allium/build/rn/icons/Checkmark')
|
|
14
|
-
const PaletteIconChevronLeft = require('@telus-uds/palette-allium/build/rn/icons/ChevronLeft')
|
|
15
14
|
const PaletteIconStatusSuccess = require('@telus-uds/palette-allium/build/rn/icons/StatusSuccess')
|
|
16
15
|
const PaletteIconStatusError = require('@telus-uds/palette-allium/build/rn/icons/StatusError')
|
|
16
|
+
const PaletteIconAdd = require('@telus-uds/palette-allium/build/rn/icons/Add')
|
|
17
|
+
const PaletteIconSubtract = require('@telus-uds/palette-allium/build/rn/icons/Subtract')
|
|
17
18
|
const PaletteIconClose = require('@telus-uds/palette-allium/build/rn/icons/Close')
|
|
19
|
+
const PaletteIconExpand = require('@telus-uds/palette-allium/build/rn/icons/Expand')
|
|
20
|
+
const PaletteIconChevronLeft = require('@telus-uds/palette-allium/build/rn/icons/ChevronLeft')
|
|
21
|
+
const PaletteIconPlayVideo = require('@telus-uds/palette-allium/build/rn/icons/PlayVideo')
|
|
18
22
|
const PaletteIconStatusWarning = require('@telus-uds/palette-allium/build/rn/icons/StatusWarning')
|
|
19
23
|
const PaletteIconTimes = require('@telus-uds/palette-allium/build/rn/icons/Times')
|
|
20
24
|
const PaletteIconSearchBold = require('@telus-uds/palette-allium/build/rn/icons/SearchBold')
|
|
21
|
-
const PaletteIconAdd = require('@telus-uds/palette-allium/build/rn/icons/Add')
|
|
22
25
|
const PaletteIconInvisible = require('@telus-uds/palette-allium/build/rn/icons/Invisible')
|
|
23
26
|
const PaletteIconVisible = require('@telus-uds/palette-allium/build/rn/icons/Visible')
|
|
24
27
|
const PaletteIconQuestion = require('@telus-uds/palette-allium/build/rn/icons/Question')
|
|
@@ -122,6 +125,27 @@ module.exports = {
|
|
|
122
125
|
paddingTop: 2
|
|
123
126
|
}
|
|
124
127
|
},
|
|
128
|
+
BlockQuote: {
|
|
129
|
+
appearances: {},
|
|
130
|
+
rules: [],
|
|
131
|
+
tokens: {
|
|
132
|
+
backgroundGradient: {
|
|
133
|
+
angle: 135,
|
|
134
|
+
stops: [
|
|
135
|
+
{ color: '#4b286d', stop: 0 },
|
|
136
|
+
{ color: '#e53293', stop: 1 }
|
|
137
|
+
],
|
|
138
|
+
type: 'linear'
|
|
139
|
+
},
|
|
140
|
+
color: '#414547',
|
|
141
|
+
marginBottom: 16,
|
|
142
|
+
paddingBottom: 16,
|
|
143
|
+
paddingLeft: 32,
|
|
144
|
+
paddingRight: 32,
|
|
145
|
+
paddingTop: 16,
|
|
146
|
+
width: 2
|
|
147
|
+
}
|
|
148
|
+
},
|
|
125
149
|
Box: {
|
|
126
150
|
appearances: {
|
|
127
151
|
background: {
|
|
@@ -996,7 +1020,7 @@ module.exports = {
|
|
|
996
1020
|
borderWidth: 1,
|
|
997
1021
|
contentAlignItems: 'stretch',
|
|
998
1022
|
contentFlexGrow: 0,
|
|
999
|
-
contentFlexShrink:
|
|
1023
|
+
contentFlexShrink: 1,
|
|
1000
1024
|
contentJustifyContent: 'flex-start',
|
|
1001
1025
|
flex: 1,
|
|
1002
1026
|
minWidth: null,
|
|
@@ -1293,7 +1317,10 @@ module.exports = {
|
|
|
1293
1317
|
}
|
|
1294
1318
|
},
|
|
1295
1319
|
rules: [
|
|
1296
|
-
{
|
|
1320
|
+
{
|
|
1321
|
+
if: { hover: true },
|
|
1322
|
+
tokens: { color: '#1f5c09', iconDisplace: 4 }
|
|
1323
|
+
},
|
|
1297
1324
|
{ if: { pressed: true }, tokens: { color: '#163e06' } },
|
|
1298
1325
|
{ if: { alternative: true }, tokens: { color: '#414547' } },
|
|
1299
1326
|
{
|
|
@@ -1313,19 +1340,30 @@ module.exports = {
|
|
|
1313
1340
|
if: { inverse: true, pressed: true },
|
|
1314
1341
|
tokens: { color: '#e3e6e8' }
|
|
1315
1342
|
},
|
|
1316
|
-
{
|
|
1317
|
-
|
|
1318
|
-
|
|
1343
|
+
{
|
|
1344
|
+
if: { size: 'large' },
|
|
1345
|
+
tokens: { height: 48, iconSize: 24, textLineHeight: 1.95 }
|
|
1346
|
+
},
|
|
1347
|
+
{
|
|
1348
|
+
if: { size: 'small' },
|
|
1349
|
+
tokens: { height: 36, iconSize: 14, textLineHeight: 2.12 }
|
|
1350
|
+
},
|
|
1351
|
+
{
|
|
1352
|
+
if: { size: 'micro' },
|
|
1353
|
+
tokens: { height: 32, iconSize: 12, textLineHeight: 1.92 }
|
|
1354
|
+
}
|
|
1319
1355
|
],
|
|
1320
1356
|
tokens: {
|
|
1321
1357
|
color: '#2b8000',
|
|
1358
|
+
height: 40,
|
|
1322
1359
|
iconDisplace: 0,
|
|
1323
1360
|
iconSize: 24,
|
|
1324
1361
|
iconSpace: 1,
|
|
1325
|
-
leftIcon:
|
|
1362
|
+
leftIcon: PaletteIconArrowLeft,
|
|
1326
1363
|
outerBorderColor: 'rgba(0, 0, 0, 0)',
|
|
1327
|
-
rightIcon:
|
|
1328
|
-
textLine: 'none'
|
|
1364
|
+
rightIcon: PaletteIconArrowRight,
|
|
1365
|
+
textLine: 'none',
|
|
1366
|
+
textLineHeight: 2.25
|
|
1329
1367
|
}
|
|
1330
1368
|
},
|
|
1331
1369
|
DatePicker: {
|
|
@@ -1609,7 +1647,7 @@ module.exports = {
|
|
|
1609
1647
|
padding: 8,
|
|
1610
1648
|
shadow: {
|
|
1611
1649
|
blur: 2,
|
|
1612
|
-
color: 'rgba(0, 0, 0, 0.
|
|
1650
|
+
color: 'rgba(0, 0, 0, 0.2)',
|
|
1613
1651
|
inset: false,
|
|
1614
1652
|
offsetX: 0,
|
|
1615
1653
|
offsetY: 2,
|
|
@@ -1658,6 +1696,16 @@ module.exports = {
|
|
|
1658
1696
|
},
|
|
1659
1697
|
IconButton: {
|
|
1660
1698
|
appearances: {
|
|
1699
|
+
action: {
|
|
1700
|
+
type: 'variant',
|
|
1701
|
+
values: [
|
|
1702
|
+
'add', 'close',
|
|
1703
|
+
'expand', 'moveDown',
|
|
1704
|
+
'moveLeft', 'moveRight',
|
|
1705
|
+
'moveUp', 'play',
|
|
1706
|
+
'subtract'
|
|
1707
|
+
]
|
|
1708
|
+
},
|
|
1661
1709
|
compact: {
|
|
1662
1710
|
description: 'Without the outer border gap',
|
|
1663
1711
|
type: 'variant',
|
|
@@ -1703,6 +1751,39 @@ module.exports = {
|
|
|
1703
1751
|
size: { type: 'variant', values: [ 'small', 'large' ] }
|
|
1704
1752
|
},
|
|
1705
1753
|
rules: [
|
|
1754
|
+
{ if: { action: 'add' }, tokens: { icon: PaletteIconAdd } },
|
|
1755
|
+
{
|
|
1756
|
+
if: { action: 'subtract' },
|
|
1757
|
+
tokens: { icon: PaletteIconSubtract }
|
|
1758
|
+
},
|
|
1759
|
+
{
|
|
1760
|
+
if: { action: 'close' },
|
|
1761
|
+
tokens: { icon: PaletteIconClose }
|
|
1762
|
+
},
|
|
1763
|
+
{
|
|
1764
|
+
if: { action: 'expand' },
|
|
1765
|
+
tokens: { icon: PaletteIconExpand }
|
|
1766
|
+
},
|
|
1767
|
+
{
|
|
1768
|
+
if: { action: 'moveDown' },
|
|
1769
|
+
tokens: { icon: PaletteIconCaretDown }
|
|
1770
|
+
},
|
|
1771
|
+
{
|
|
1772
|
+
if: { action: 'moveUp' },
|
|
1773
|
+
tokens: { icon: PaletteIconCaretUp }
|
|
1774
|
+
},
|
|
1775
|
+
{
|
|
1776
|
+
if: { action: 'moveLeft' },
|
|
1777
|
+
tokens: { icon: PaletteIconChevronLeft }
|
|
1778
|
+
},
|
|
1779
|
+
{
|
|
1780
|
+
if: { action: 'moveRight' },
|
|
1781
|
+
tokens: { icon: PaletteIconChevronRight }
|
|
1782
|
+
},
|
|
1783
|
+
{
|
|
1784
|
+
if: { action: 'play' },
|
|
1785
|
+
tokens: { icon: PaletteIconPlayVideo }
|
|
1786
|
+
},
|
|
1706
1787
|
{
|
|
1707
1788
|
if: { inverse: true },
|
|
1708
1789
|
tokens: { borderColor: '#ffffff', iconColor: '#ffffff' }
|
|
@@ -1807,7 +1888,7 @@ module.exports = {
|
|
|
1807
1888
|
padding: 8,
|
|
1808
1889
|
shadow: {
|
|
1809
1890
|
blur: 2,
|
|
1810
|
-
color: 'rgba(0, 0, 0, 0.
|
|
1891
|
+
color: 'rgba(0, 0, 0, 0.2)',
|
|
1811
1892
|
inset: false,
|
|
1812
1893
|
offsetX: 0,
|
|
1813
1894
|
offsetY: 2,
|
|
@@ -1860,6 +1941,7 @@ module.exports = {
|
|
|
1860
1941
|
borderColor: '#676e73',
|
|
1861
1942
|
borderRadius: 99999999999999,
|
|
1862
1943
|
borderWidth: 1,
|
|
1944
|
+
icon: null,
|
|
1863
1945
|
iconColor: '#676e73',
|
|
1864
1946
|
iconScale: 1,
|
|
1865
1947
|
iconSize: 16,
|
|
@@ -2101,6 +2183,111 @@ module.exports = {
|
|
|
2101
2183
|
listGutter: 16
|
|
2102
2184
|
}
|
|
2103
2185
|
},
|
|
2186
|
+
ListBox: {
|
|
2187
|
+
appearances: {
|
|
2188
|
+
current: {
|
|
2189
|
+
description: 'When the current item is selected',
|
|
2190
|
+
type: 'state',
|
|
2191
|
+
values: [ true ]
|
|
2192
|
+
},
|
|
2193
|
+
expanded: {
|
|
2194
|
+
description: 'Applies when an ExpandCollapse panel is open and the content inside is visible',
|
|
2195
|
+
type: 'state',
|
|
2196
|
+
values: [ true ]
|
|
2197
|
+
},
|
|
2198
|
+
focus: {
|
|
2199
|
+
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.",
|
|
2200
|
+
platforms: [ 'rn' ],
|
|
2201
|
+
type: 'state',
|
|
2202
|
+
values: [ true ]
|
|
2203
|
+
},
|
|
2204
|
+
hover: {
|
|
2205
|
+
description: "Currently web only. Applies when an interactive component's hover handler is triggered, such as on mouseover.",
|
|
2206
|
+
platforms: [ 'rn' ],
|
|
2207
|
+
type: 'state',
|
|
2208
|
+
values: [ true ]
|
|
2209
|
+
},
|
|
2210
|
+
isChild: {
|
|
2211
|
+
description: 'when the item is child of another child',
|
|
2212
|
+
type: 'state',
|
|
2213
|
+
values: [ true ]
|
|
2214
|
+
},
|
|
2215
|
+
pressed: {
|
|
2216
|
+
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.',
|
|
2217
|
+
type: 'state',
|
|
2218
|
+
values: [ true ]
|
|
2219
|
+
}
|
|
2220
|
+
},
|
|
2221
|
+
rules: [
|
|
2222
|
+
{
|
|
2223
|
+
if: { pressed: true },
|
|
2224
|
+
tokens: { groupBackgroundColor: '#e3e6e8', groupColor: '#4b286d' }
|
|
2225
|
+
},
|
|
2226
|
+
{
|
|
2227
|
+
if: { hover: true },
|
|
2228
|
+
tokens: { groupBackgroundColor: '#f4f4f7', groupColor: '#4b286d' }
|
|
2229
|
+
},
|
|
2230
|
+
{
|
|
2231
|
+
if: { focus: true },
|
|
2232
|
+
tokens: { groupBackgroundColor: '#f4f4f7', groupColor: '#4b286d' }
|
|
2233
|
+
},
|
|
2234
|
+
{
|
|
2235
|
+
if: { expanded: true },
|
|
2236
|
+
tokens: { groupIcon: PaletteIconCaretUp }
|
|
2237
|
+
},
|
|
2238
|
+
{
|
|
2239
|
+
if: { current: true },
|
|
2240
|
+
tokens: {
|
|
2241
|
+
groupColor: '#4b286d',
|
|
2242
|
+
groupFontName: 'HelveticaNow',
|
|
2243
|
+
groupFontWeight: '700'
|
|
2244
|
+
}
|
|
2245
|
+
},
|
|
2246
|
+
{
|
|
2247
|
+
if: { isChild: true },
|
|
2248
|
+
tokens: { itemBorderWidth: 4, itemPaddingLeft: 12 }
|
|
2249
|
+
}
|
|
2250
|
+
],
|
|
2251
|
+
tokens: {
|
|
2252
|
+
groupBackgroundColor: 'rgba(0, 0, 0, 0)',
|
|
2253
|
+
groupBorderColor: '#4b286d',
|
|
2254
|
+
groupBorderRadius: 6,
|
|
2255
|
+
groupBorderWidth: 1,
|
|
2256
|
+
groupColor: '#414547',
|
|
2257
|
+
groupFontName: 'HelveticaNow',
|
|
2258
|
+
groupFontSize: 14,
|
|
2259
|
+
groupFontWeight: '400',
|
|
2260
|
+
groupIcon: PaletteIconCaretDown,
|
|
2261
|
+
groupPaddingBottom: 12,
|
|
2262
|
+
groupPaddingLeft: 16,
|
|
2263
|
+
groupPaddingRight: 16,
|
|
2264
|
+
groupPaddingTop: 12,
|
|
2265
|
+
itemBackgroundColor: 'rgba(0, 0, 0, 0)',
|
|
2266
|
+
itemBorderBackgroundColor: '#e3e6e8',
|
|
2267
|
+
itemBorderLeftColor: '#4b286d',
|
|
2268
|
+
itemBorderLeftWidth: 4,
|
|
2269
|
+
itemBorderWidth: 0,
|
|
2270
|
+
itemColor: '#4b286d',
|
|
2271
|
+
itemDisplay: false,
|
|
2272
|
+
itemFontName: 'HelveticaNow',
|
|
2273
|
+
itemFontSize: 14,
|
|
2274
|
+
itemFontWeight: '700',
|
|
2275
|
+
itemOutline: 0,
|
|
2276
|
+
itemPaddingBottom: 12,
|
|
2277
|
+
itemPaddingLeft: 16,
|
|
2278
|
+
itemPaddingRight: 16,
|
|
2279
|
+
itemPaddingTop: 12,
|
|
2280
|
+
itemTextDecoration: 'none',
|
|
2281
|
+
shadow: {
|
|
2282
|
+
blur: 8,
|
|
2283
|
+
color: 'rgba(0, 0, 0, 0.1)',
|
|
2284
|
+
inset: false,
|
|
2285
|
+
offsetX: 0,
|
|
2286
|
+
offsetY: 4,
|
|
2287
|
+
spread: 0
|
|
2288
|
+
}
|
|
2289
|
+
}
|
|
2290
|
+
},
|
|
2104
2291
|
Modal: {
|
|
2105
2292
|
appearances: {
|
|
2106
2293
|
maxWidth: {
|
|
@@ -3087,7 +3274,7 @@ module.exports = {
|
|
|
3087
3274
|
color: '#2c2e30',
|
|
3088
3275
|
contentAlignItems: 'stretch',
|
|
3089
3276
|
contentFlexGrow: 0,
|
|
3090
|
-
contentFlexShrink:
|
|
3277
|
+
contentFlexShrink: 1,
|
|
3091
3278
|
contentJustifyContent: 'flex-start',
|
|
3092
3279
|
contentSpace: 2,
|
|
3093
3280
|
flex: 1,
|
|
@@ -3572,6 +3759,15 @@ module.exports = {
|
|
|
3572
3759
|
paddingVertical: 8
|
|
3573
3760
|
}
|
|
3574
3761
|
},
|
|
3762
|
+
Spinner: {
|
|
3763
|
+
appearances: { size: { type: 'variant', values: [ 'small' ] } },
|
|
3764
|
+
rules: [ { if: { size: 'small' }, tokens: { size: 24, thickness: 2 } } ],
|
|
3765
|
+
tokens: {
|
|
3766
|
+
fullScreenOverLayBackground: 'rgba(255, 255, 255, 0.97)',
|
|
3767
|
+
size: 48,
|
|
3768
|
+
thickness: 4
|
|
3769
|
+
}
|
|
3770
|
+
},
|
|
3575
3771
|
StackView: {
|
|
3576
3772
|
appearances: {},
|
|
3577
3773
|
rules: [],
|
|
@@ -4258,7 +4454,7 @@ module.exports = {
|
|
|
4258
4454
|
switchColor: '#ffffff',
|
|
4259
4455
|
switchShadow: {
|
|
4260
4456
|
blur: 2,
|
|
4261
|
-
color: 'rgba(0, 0, 0, 0.
|
|
4457
|
+
color: 'rgba(0, 0, 0, 0.2)',
|
|
4262
4458
|
inset: false,
|
|
4263
4459
|
offsetX: 0,
|
|
4264
4460
|
offsetY: 2,
|
|
@@ -4735,5 +4931,5 @@ module.exports = {
|
|
|
4735
4931
|
tokens: { size: 96 }
|
|
4736
4932
|
}
|
|
4737
4933
|
},
|
|
4738
|
-
metadata: { name: 'theme-allium', themeTokensVersion: '2.
|
|
4934
|
+
metadata: { name: 'theme-allium', themeTokensVersion: '2.22.0' }
|
|
4739
4935
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@telus-uds/theme-allium",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.24.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
|
-
"@telus-uds/system-theme-tokens": "^2.
|
|
13
|
-
"@telus-uds/system-tokens": "^0.
|
|
11
|
+
"@telus-uds/palette-allium": "^2.15.0",
|
|
12
|
+
"@telus-uds/system-theme-tokens": "^2.22.0",
|
|
13
|
+
"@telus-uds/system-tokens": "^0.7.1"
|
|
14
14
|
},
|
|
15
15
|
"peerDependencies": {
|
|
16
|
-
"@telus-uds/palette-allium": "^2.
|
|
16
|
+
"@telus-uds/palette-allium": "^2.15.0"
|
|
17
17
|
},
|
|
18
18
|
"files": [
|
|
19
19
|
"build",
|