@telus-uds/theme-allium 3.14.0 → 3.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/android/schema.json +899 -860
- package/build/android/theme.json +87 -3
- package/build/ios/schema.json +899 -860
- package/build/ios/theme.json +87 -3
- package/build/rn/schema.json +899 -860
- package/build/rn/theme.js +65 -4
- package/package.json +5 -5
- package/theme.json +78 -2
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, 20 Mar 2023 19:41:20 GMT
|
|
5
5
|
*
|
|
6
6
|
*/
|
|
7
7
|
|
|
@@ -19,6 +19,8 @@ const PaletteIconStatusWarning = require('@telus-uds/palette-allium/build/rn/ico
|
|
|
19
19
|
const PaletteIconTimes = require('@telus-uds/palette-allium/build/rn/icons/Times')
|
|
20
20
|
const PaletteIconSearchBold = require('@telus-uds/palette-allium/build/rn/icons/SearchBold')
|
|
21
21
|
const PaletteIconAdd = require('@telus-uds/palette-allium/build/rn/icons/Add')
|
|
22
|
+
const PaletteIconInvisible = require('@telus-uds/palette-allium/build/rn/icons/Invisible')
|
|
23
|
+
const PaletteIconVisible = require('@telus-uds/palette-allium/build/rn/icons/Visible')
|
|
22
24
|
const PaletteIconQuestion = require('@telus-uds/palette-allium/build/rn/icons/Question')
|
|
23
25
|
|
|
24
26
|
module.exports = {
|
|
@@ -1438,11 +1440,21 @@ module.exports = {
|
|
|
1438
1440
|
type: 'state',
|
|
1439
1441
|
values: [ true ]
|
|
1440
1442
|
},
|
|
1443
|
+
inactive: {
|
|
1444
|
+
description: 'Prevents an interactive component from being interacted with and applies accessibility attributes to indicate to the user that this component cannot be used.',
|
|
1445
|
+
type: 'state',
|
|
1446
|
+
values: [ true ]
|
|
1447
|
+
},
|
|
1441
1448
|
inverse: {
|
|
1442
1449
|
description: 'For use on dark backgrounds',
|
|
1443
1450
|
type: 'variant',
|
|
1444
1451
|
values: [ true ]
|
|
1445
1452
|
},
|
|
1453
|
+
password: {
|
|
1454
|
+
description: 'Password masked or not',
|
|
1455
|
+
type: 'variant',
|
|
1456
|
+
values: [ true ]
|
|
1457
|
+
},
|
|
1446
1458
|
pressed: {
|
|
1447
1459
|
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.',
|
|
1448
1460
|
type: 'state',
|
|
@@ -1468,6 +1480,22 @@ module.exports = {
|
|
|
1468
1480
|
iconScale: 1.1
|
|
1469
1481
|
}
|
|
1470
1482
|
},
|
|
1483
|
+
{
|
|
1484
|
+
if: { hover: true, password: true },
|
|
1485
|
+
tokens: {
|
|
1486
|
+
backgroundColor: '#7c53a5',
|
|
1487
|
+
borderColor: '#7c53a5',
|
|
1488
|
+
iconColor: '#ffffff'
|
|
1489
|
+
}
|
|
1490
|
+
},
|
|
1491
|
+
{
|
|
1492
|
+
if: { password: true },
|
|
1493
|
+
tokens: { borderColor: 'transparent' }
|
|
1494
|
+
},
|
|
1495
|
+
{
|
|
1496
|
+
if: { focus: true, password: true },
|
|
1497
|
+
tokens: { borderColor: '#4b286d' }
|
|
1498
|
+
},
|
|
1471
1499
|
{
|
|
1472
1500
|
if: { hover: true, inverse: true },
|
|
1473
1501
|
tokens: { borderColor: '#ffffff', iconColor: '#ffffff' }
|
|
@@ -1480,6 +1508,14 @@ module.exports = {
|
|
|
1480
1508
|
outerBorderWidth: 1
|
|
1481
1509
|
}
|
|
1482
1510
|
},
|
|
1511
|
+
{
|
|
1512
|
+
if: { focus: true, password: true },
|
|
1513
|
+
tokens: {
|
|
1514
|
+
outerBorderColor: '#3f2a54',
|
|
1515
|
+
outerBorderGap: 4,
|
|
1516
|
+
outerBorderWidth: 2
|
|
1517
|
+
}
|
|
1518
|
+
},
|
|
1483
1519
|
{
|
|
1484
1520
|
if: { focus: true, inverse: true },
|
|
1485
1521
|
tokens: {
|
|
@@ -1498,6 +1534,15 @@ module.exports = {
|
|
|
1498
1534
|
outerBorderGap: 4
|
|
1499
1535
|
}
|
|
1500
1536
|
},
|
|
1537
|
+
{
|
|
1538
|
+
if: { password: true, pressed: true },
|
|
1539
|
+
tokens: {
|
|
1540
|
+
backgroundColor: '#3f2a54',
|
|
1541
|
+
borderColor: '#3f2a54',
|
|
1542
|
+
iconColor: '#ffffff',
|
|
1543
|
+
outerBorderGap: 4
|
|
1544
|
+
}
|
|
1545
|
+
},
|
|
1501
1546
|
{
|
|
1502
1547
|
if: { inverse: true, pressed: true },
|
|
1503
1548
|
tokens: {
|
|
@@ -1541,6 +1586,15 @@ module.exports = {
|
|
|
1541
1586
|
if: { pressed: true, raised: true },
|
|
1542
1587
|
tokens: { backgroundColor: '#676e73', borderWidth: 0 }
|
|
1543
1588
|
},
|
|
1589
|
+
{
|
|
1590
|
+
if: { inactive: true, password: true },
|
|
1591
|
+
tokens: {
|
|
1592
|
+
backgroundColor: 'rgba(0, 0, 0, 0)',
|
|
1593
|
+
borderWidth: 0,
|
|
1594
|
+
iconColor: '#e3e6e8',
|
|
1595
|
+
outerBorderColor: 'rgba(0, 0, 0, 0)'
|
|
1596
|
+
}
|
|
1597
|
+
},
|
|
1544
1598
|
{
|
|
1545
1599
|
if: { focus: true, pressed: true, raised: true },
|
|
1546
1600
|
tokens: { backgroundColor: '#4b286d', borderWidth: 0 }
|
|
@@ -1562,7 +1616,7 @@ module.exports = {
|
|
|
1562
1616
|
borderWidth: 1,
|
|
1563
1617
|
iconColor: '#676e73',
|
|
1564
1618
|
iconScale: 1,
|
|
1565
|
-
iconSize:
|
|
1619
|
+
iconSize: 24,
|
|
1566
1620
|
iconTranslateX: 0,
|
|
1567
1621
|
iconTranslateY: 0,
|
|
1568
1622
|
outerBorderColor: 'transparent',
|
|
@@ -3482,6 +3536,11 @@ module.exports = {
|
|
|
3482
3536
|
type: 'state',
|
|
3483
3537
|
values: [ true ]
|
|
3484
3538
|
},
|
|
3539
|
+
password: {
|
|
3540
|
+
description: 'capability that helps masking and unmasking text',
|
|
3541
|
+
type: 'variant',
|
|
3542
|
+
values: [ true ]
|
|
3543
|
+
},
|
|
3485
3544
|
validation: {
|
|
3486
3545
|
description: 'Validation states for form inputs',
|
|
3487
3546
|
type: 'state',
|
|
@@ -3544,7 +3603,9 @@ module.exports = {
|
|
|
3544
3603
|
paddingBottom: 12,
|
|
3545
3604
|
paddingLeft: 16,
|
|
3546
3605
|
paddingRight: 16,
|
|
3547
|
-
paddingTop: 12
|
|
3606
|
+
paddingTop: 12,
|
|
3607
|
+
passwordHideButtonIcon: PaletteIconInvisible,
|
|
3608
|
+
passwordShowButtonIcon: PaletteIconVisible
|
|
3548
3609
|
}
|
|
3549
3610
|
},
|
|
3550
3611
|
Timeline: {
|
|
@@ -4171,5 +4232,5 @@ module.exports = {
|
|
|
4171
4232
|
tokens: { size: 96 }
|
|
4172
4233
|
}
|
|
4173
4234
|
},
|
|
4174
|
-
metadata: { name: 'theme-allium', themeTokensVersion: '2.
|
|
4235
|
+
metadata: { name: 'theme-allium', themeTokensVersion: '2.13.0' }
|
|
4175
4236
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@telus-uds/theme-allium",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.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.
|
|
12
|
-
"@telus-uds/system-theme-tokens": "^2.
|
|
13
|
-
"@telus-uds/system-tokens": "^0.6.
|
|
11
|
+
"@telus-uds/palette-allium": "^2.11.0",
|
|
12
|
+
"@telus-uds/system-theme-tokens": "^2.13.0",
|
|
13
|
+
"@telus-uds/system-tokens": "^0.6.5"
|
|
14
14
|
},
|
|
15
15
|
"peerDependencies": {
|
|
16
|
-
"@telus-uds/palette-allium": "^2.
|
|
16
|
+
"@telus-uds/palette-allium": "^2.11.0"
|
|
17
17
|
},
|
|
18
18
|
"files": [
|
|
19
19
|
"build",
|
package/theme.json
CHANGED
|
@@ -1877,11 +1877,17 @@
|
|
|
1877
1877
|
},
|
|
1878
1878
|
"focus": "{appearances.IconButton.focus}",
|
|
1879
1879
|
"hover": "{appearances.IconButton.hover}",
|
|
1880
|
+
"inactive": "{appearances.Button.inactive}",
|
|
1880
1881
|
"inverse": {
|
|
1881
1882
|
"description": "For use on dark backgrounds",
|
|
1882
1883
|
"type": "variant",
|
|
1883
1884
|
"values": [true]
|
|
1884
1885
|
},
|
|
1886
|
+
"password": {
|
|
1887
|
+
"description": "Password masked or not",
|
|
1888
|
+
"type": "variant",
|
|
1889
|
+
"values": [true]
|
|
1890
|
+
},
|
|
1885
1891
|
"pressed": "{appearances.IconButton.pressed}",
|
|
1886
1892
|
"raised": {
|
|
1887
1893
|
"description": "Uses shadow and background colour to appear raised above the page",
|
|
@@ -1913,6 +1919,34 @@
|
|
|
1913
1919
|
"iconScale": "{system.iconScale.scale1_10}"
|
|
1914
1920
|
}
|
|
1915
1921
|
},
|
|
1922
|
+
{
|
|
1923
|
+
"if": {
|
|
1924
|
+
"hover": true,
|
|
1925
|
+
"password": true
|
|
1926
|
+
},
|
|
1927
|
+
"tokens": {
|
|
1928
|
+
"backgroundColor": "{palette.color.purpleDeluge}",
|
|
1929
|
+
"borderColor": "{palette.color.purpleDeluge}",
|
|
1930
|
+
"iconColor": "{palette.color.white}"
|
|
1931
|
+
}
|
|
1932
|
+
},
|
|
1933
|
+
{
|
|
1934
|
+
"if": {
|
|
1935
|
+
"password": true
|
|
1936
|
+
},
|
|
1937
|
+
"tokens": {
|
|
1938
|
+
"borderColor": "{system.color.transparent}"
|
|
1939
|
+
}
|
|
1940
|
+
},
|
|
1941
|
+
{
|
|
1942
|
+
"if": {
|
|
1943
|
+
"focus": true,
|
|
1944
|
+
"password": true
|
|
1945
|
+
},
|
|
1946
|
+
"tokens": {
|
|
1947
|
+
"borderColor": "{palette.color.purpleTelus}"
|
|
1948
|
+
}
|
|
1949
|
+
},
|
|
1916
1950
|
{
|
|
1917
1951
|
"if": {
|
|
1918
1952
|
"hover": true,
|
|
@@ -1933,6 +1967,17 @@
|
|
|
1933
1967
|
"outerBorderWidth": "{palette.border.border1}"
|
|
1934
1968
|
}
|
|
1935
1969
|
},
|
|
1970
|
+
{
|
|
1971
|
+
"if": {
|
|
1972
|
+
"focus": true,
|
|
1973
|
+
"password": true
|
|
1974
|
+
},
|
|
1975
|
+
"tokens": {
|
|
1976
|
+
"outerBorderColor": "{palette.color.purpleDark}",
|
|
1977
|
+
"outerBorderGap": "{palette.size.size4}",
|
|
1978
|
+
"outerBorderWidth": "{palette.border.border2}"
|
|
1979
|
+
}
|
|
1980
|
+
},
|
|
1936
1981
|
{
|
|
1937
1982
|
"if": {
|
|
1938
1983
|
"focus": true,
|
|
@@ -1956,6 +2001,18 @@
|
|
|
1956
2001
|
"outerBorderGap": "{palette.size.size4}"
|
|
1957
2002
|
}
|
|
1958
2003
|
},
|
|
2004
|
+
{
|
|
2005
|
+
"if": {
|
|
2006
|
+
"password": true,
|
|
2007
|
+
"pressed": true
|
|
2008
|
+
},
|
|
2009
|
+
"tokens": {
|
|
2010
|
+
"backgroundColor": "{palette.color.purpleDark}",
|
|
2011
|
+
"borderColor": "{palette.color.purpleDark}",
|
|
2012
|
+
"iconColor": "{palette.color.white}",
|
|
2013
|
+
"outerBorderGap": "{palette.size.size4}"
|
|
2014
|
+
}
|
|
2015
|
+
},
|
|
1959
2016
|
{
|
|
1960
2017
|
"if": {
|
|
1961
2018
|
"inverse": true,
|
|
@@ -2028,6 +2085,18 @@
|
|
|
2028
2085
|
"borderWidth": "{system.border.zero}"
|
|
2029
2086
|
}
|
|
2030
2087
|
},
|
|
2088
|
+
{
|
|
2089
|
+
"if": {
|
|
2090
|
+
"inactive": true,
|
|
2091
|
+
"password": true
|
|
2092
|
+
},
|
|
2093
|
+
"tokens": {
|
|
2094
|
+
"backgroundColor": "{palette.color.transparent}",
|
|
2095
|
+
"borderWidth": "{system.border.zero}",
|
|
2096
|
+
"iconColor": "{palette.color.greyMystic}",
|
|
2097
|
+
"outerBorderColor": "{palette.color.transparent}"
|
|
2098
|
+
}
|
|
2099
|
+
},
|
|
2031
2100
|
{
|
|
2032
2101
|
"if": {
|
|
2033
2102
|
"focus": true,
|
|
@@ -2075,7 +2144,7 @@
|
|
|
2075
2144
|
"borderWidth": "{palette.border.border1}",
|
|
2076
2145
|
"iconColor": "{palette.color.greyShuttle}",
|
|
2077
2146
|
"iconScale": "{system.iconScale.scale1}",
|
|
2078
|
-
"iconSize": "{palette.size.
|
|
2147
|
+
"iconSize": "{palette.size.size24}",
|
|
2079
2148
|
"iconTranslateX": "{system.size.zero}",
|
|
2080
2149
|
"iconTranslateY": "{system.size.zero}",
|
|
2081
2150
|
"outerBorderColor": "{system.color.transparent}",
|
|
@@ -4253,6 +4322,11 @@
|
|
|
4253
4322
|
"focus": "{appearances.TextInput.focus}",
|
|
4254
4323
|
"hover": "{appearances.TextInput.hover}",
|
|
4255
4324
|
"inactive": "{appearances.TextInput.inactive}",
|
|
4325
|
+
"password": {
|
|
4326
|
+
"description": "capability that helps masking and unmasking text",
|
|
4327
|
+
"type": "variant",
|
|
4328
|
+
"values": [true]
|
|
4329
|
+
},
|
|
4256
4330
|
"validation": "{appearances.TextInput.validation}"
|
|
4257
4331
|
},
|
|
4258
4332
|
"rules": [
|
|
@@ -4329,7 +4403,9 @@
|
|
|
4329
4403
|
"paddingBottom": "{palette.size.size12}",
|
|
4330
4404
|
"paddingLeft": "{palette.size.size16}",
|
|
4331
4405
|
"paddingRight": "{palette.size.size16}",
|
|
4332
|
-
"paddingTop": "{palette.size.size12}"
|
|
4406
|
+
"paddingTop": "{palette.size.size12}",
|
|
4407
|
+
"passwordHideButtonIcon": "{palette.icon.Invisible}",
|
|
4408
|
+
"passwordShowButtonIcon": "{palette.icon.Visible}"
|
|
4333
4409
|
}
|
|
4334
4410
|
},
|
|
4335
4411
|
"Timeline": {
|