@telus-uds/theme-allium 3.13.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/rn/theme.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  *
3
3
  * Do not edit directly
4
- * Generated on Thu, 23 Feb 2023 17:20:07 GMT
4
+ * Generated on Mon, 20 Mar 2023 19:41:20 GMT
5
5
  *
6
6
  */
7
7
 
@@ -10,6 +10,8 @@ const PaletteIconCaretUp = require('@telus-uds/palette-allium/build/rn/icons/Car
10
10
  const PaletteIconArrowRight = require('@telus-uds/palette-allium/build/rn/icons/ArrowRight')
11
11
  const PaletteIconArrowLeft = require('@telus-uds/palette-allium/build/rn/icons/ArrowLeft')
12
12
  const PaletteIconCheckmark = require('@telus-uds/palette-allium/build/rn/icons/Checkmark')
13
+ const PaletteIconChevronLeft = require('@telus-uds/palette-allium/build/rn/icons/ChevronLeft')
14
+ const PaletteIconChevronRight = require('@telus-uds/palette-allium/build/rn/icons/ChevronRight')
13
15
  const PaletteIconStatusSuccess = require('@telus-uds/palette-allium/build/rn/icons/StatusSuccess')
14
16
  const PaletteIconStatusError = require('@telus-uds/palette-allium/build/rn/icons/StatusError')
15
17
  const PaletteIconClose = require('@telus-uds/palette-allium/build/rn/icons/Close')
@@ -17,6 +19,8 @@ const PaletteIconStatusWarning = require('@telus-uds/palette-allium/build/rn/ico
17
19
  const PaletteIconTimes = require('@telus-uds/palette-allium/build/rn/icons/Times')
18
20
  const PaletteIconSearchBold = require('@telus-uds/palette-allium/build/rn/icons/SearchBold')
19
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')
20
24
  const PaletteIconQuestion = require('@telus-uds/palette-allium/build/rn/icons/Question')
21
25
 
22
26
  module.exports = {
@@ -1146,28 +1150,58 @@ module.exports = {
1146
1150
  CheckboxGroup: { appearances: {}, rules: [], tokens: { fieldSpace: 2, space: 2 } },
1147
1151
  ChevronLink: {
1148
1152
  appearances: {
1153
+ alternative: { type: 'variant', values: [ true ] },
1149
1154
  hover: {
1150
1155
  description: "Currently web only. Applies when an interactive component's hover handler is triggered, such as on mouseover.",
1151
1156
  platforms: [ 'rn' ],
1152
1157
  type: 'state',
1153
1158
  values: [ true ]
1154
1159
  },
1160
+ inverse: { type: 'variant', values: [ true ] },
1161
+ pressed: {
1162
+ 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.',
1163
+ type: 'state',
1164
+ values: [ true ]
1165
+ },
1155
1166
  size: {
1156
- description: 'Sets the size of the text and icon; these variants are shared with Link',
1167
+ description: 'Sets the size of the text and icon; these variants are shared with ChevronLink',
1157
1168
  type: 'variant',
1158
1169
  values: [ 'large', 'small', 'micro' ]
1159
1170
  }
1160
1171
  },
1161
1172
  rules: [
1162
- { if: { hover: true }, tokens: { iconDisplace: 4 } },
1163
- { if: { size: 'large' }, tokens: { iconSize: 24 } }
1173
+ { if: { hover: true }, tokens: { color: '#1f5c09' } },
1174
+ { if: { pressed: true }, tokens: { color: '#163e06' } },
1175
+ { if: { alternative: true }, tokens: { color: '#414547' } },
1176
+ {
1177
+ if: { alternative: true, hover: true },
1178
+ tokens: { color: '#2c2e30' }
1179
+ },
1180
+ {
1181
+ if: { alternative: true, pressed: true },
1182
+ tokens: { color: '#2c2e30' }
1183
+ },
1184
+ { if: { inverse: true }, tokens: { color: '#ffffff' } },
1185
+ {
1186
+ if: { hover: true, inverse: true },
1187
+ tokens: { color: '#f4f4f7' }
1188
+ },
1189
+ {
1190
+ if: { inverse: true, pressed: true },
1191
+ tokens: { color: '#e3e6e8' }
1192
+ },
1193
+ { if: { size: 'large' }, tokens: { iconSize: 20 } },
1194
+ { if: { size: 'small' }, tokens: { iconSize: 14 } },
1195
+ { if: { size: 'micro' }, tokens: { iconSize: 12 } }
1164
1196
  ],
1165
1197
  tokens: {
1198
+ color: '#2b8000',
1166
1199
  iconDisplace: 0,
1167
- iconSize: 20,
1200
+ iconSize: 24,
1168
1201
  iconSpace: 1,
1169
- leftIcon: PaletteIconArrowLeft,
1170
- rightIcon: PaletteIconArrowRight,
1202
+ leftIcon: PaletteIconChevronLeft,
1203
+ outerBorderColor: 'rgba(0, 0, 0, 0)',
1204
+ rightIcon: PaletteIconChevronRight,
1171
1205
  textLine: 'none'
1172
1206
  }
1173
1207
  },
@@ -1406,11 +1440,21 @@ module.exports = {
1406
1440
  type: 'state',
1407
1441
  values: [ true ]
1408
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
+ },
1409
1448
  inverse: {
1410
1449
  description: 'For use on dark backgrounds',
1411
1450
  type: 'variant',
1412
1451
  values: [ true ]
1413
1452
  },
1453
+ password: {
1454
+ description: 'Password masked or not',
1455
+ type: 'variant',
1456
+ values: [ true ]
1457
+ },
1414
1458
  pressed: {
1415
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.',
1416
1460
  type: 'state',
@@ -1436,6 +1480,22 @@ module.exports = {
1436
1480
  iconScale: 1.1
1437
1481
  }
1438
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
+ },
1439
1499
  {
1440
1500
  if: { hover: true, inverse: true },
1441
1501
  tokens: { borderColor: '#ffffff', iconColor: '#ffffff' }
@@ -1448,6 +1508,14 @@ module.exports = {
1448
1508
  outerBorderWidth: 1
1449
1509
  }
1450
1510
  },
1511
+ {
1512
+ if: { focus: true, password: true },
1513
+ tokens: {
1514
+ outerBorderColor: '#3f2a54',
1515
+ outerBorderGap: 4,
1516
+ outerBorderWidth: 2
1517
+ }
1518
+ },
1451
1519
  {
1452
1520
  if: { focus: true, inverse: true },
1453
1521
  tokens: {
@@ -1466,6 +1534,15 @@ module.exports = {
1466
1534
  outerBorderGap: 4
1467
1535
  }
1468
1536
  },
1537
+ {
1538
+ if: { password: true, pressed: true },
1539
+ tokens: {
1540
+ backgroundColor: '#3f2a54',
1541
+ borderColor: '#3f2a54',
1542
+ iconColor: '#ffffff',
1543
+ outerBorderGap: 4
1544
+ }
1545
+ },
1469
1546
  {
1470
1547
  if: { inverse: true, pressed: true },
1471
1548
  tokens: {
@@ -1509,6 +1586,15 @@ module.exports = {
1509
1586
  if: { pressed: true, raised: true },
1510
1587
  tokens: { backgroundColor: '#676e73', borderWidth: 0 }
1511
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
+ },
1512
1598
  {
1513
1599
  if: { focus: true, pressed: true, raised: true },
1514
1600
  tokens: { backgroundColor: '#4b286d', borderWidth: 0 }
@@ -1530,7 +1616,7 @@ module.exports = {
1530
1616
  borderWidth: 1,
1531
1617
  iconColor: '#676e73',
1532
1618
  iconScale: 1,
1533
- iconSize: 16,
1619
+ iconSize: 24,
1534
1620
  iconTranslateX: 0,
1535
1621
  iconTranslateY: 0,
1536
1622
  outerBorderColor: 'transparent',
@@ -3450,6 +3536,11 @@ module.exports = {
3450
3536
  type: 'state',
3451
3537
  values: [ true ]
3452
3538
  },
3539
+ password: {
3540
+ description: 'capability that helps masking and unmasking text',
3541
+ type: 'variant',
3542
+ values: [ true ]
3543
+ },
3453
3544
  validation: {
3454
3545
  description: 'Validation states for form inputs',
3455
3546
  type: 'state',
@@ -3512,7 +3603,9 @@ module.exports = {
3512
3603
  paddingBottom: 12,
3513
3604
  paddingLeft: 16,
3514
3605
  paddingRight: 16,
3515
- paddingTop: 12
3606
+ paddingTop: 12,
3607
+ passwordHideButtonIcon: PaletteIconInvisible,
3608
+ passwordShowButtonIcon: PaletteIconVisible
3516
3609
  }
3517
3610
  },
3518
3611
  Timeline: {
@@ -4139,5 +4232,5 @@ module.exports = {
4139
4232
  tokens: { size: 96 }
4140
4233
  }
4141
4234
  },
4142
- metadata: { name: 'theme-allium', themeTokensVersion: '2.11.0' }
4235
+ metadata: { name: 'theme-allium', themeTokensVersion: '2.13.0' }
4143
4236
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@telus-uds/theme-allium",
3
- "version": "3.13.0",
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.10.1",
12
- "@telus-uds/system-theme-tokens": "^2.11.0",
13
- "@telus-uds/system-tokens": "^0.6.3"
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.10.1"
16
+ "@telus-uds/palette-allium": "^2.11.0"
17
17
  },
18
18
  "files": [
19
19
  "build",
package/theme.json CHANGED
@@ -1411,9 +1411,18 @@
1411
1411
  },
1412
1412
  "ChevronLink": {
1413
1413
  "appearances": {
1414
+ "alternative": {
1415
+ "type": "variant",
1416
+ "values": [true]
1417
+ },
1414
1418
  "hover": "{appearances.ChevronLink.hover}",
1419
+ "inverse": {
1420
+ "type": "variant",
1421
+ "values": [true]
1422
+ },
1423
+ "pressed": "{appearances.ChevronLink.pressed}",
1415
1424
  "size": {
1416
- "description": "Sets the size of the text and icon; these variants are shared with Link",
1425
+ "description": "Sets the size of the text and icon; these variants are shared with ChevronLink",
1417
1426
  "type": "variant",
1418
1427
  "values": ["large", "small", "micro"]
1419
1428
  }
@@ -1424,7 +1433,67 @@
1424
1433
  "hover": true
1425
1434
  },
1426
1435
  "tokens": {
1427
- "iconDisplace": "{palette.size.size4}"
1436
+ "color": "{palette.color.greenSanFelix}"
1437
+ }
1438
+ },
1439
+ {
1440
+ "if": {
1441
+ "pressed": true
1442
+ },
1443
+ "tokens": {
1444
+ "color": "{palette.color.greenDarkFern}"
1445
+ }
1446
+ },
1447
+ {
1448
+ "if": {
1449
+ "alternative": true
1450
+ },
1451
+ "tokens": {
1452
+ "color": "{palette.color.greyCharcoal}"
1453
+ }
1454
+ },
1455
+ {
1456
+ "if": {
1457
+ "alternative": true,
1458
+ "hover": true
1459
+ },
1460
+ "tokens": {
1461
+ "color": "{palette.color.greyThunder}"
1462
+ }
1463
+ },
1464
+ {
1465
+ "if": {
1466
+ "alternative": true,
1467
+ "pressed": true
1468
+ },
1469
+ "tokens": {
1470
+ "color": "{palette.color.greyThunder}"
1471
+ }
1472
+ },
1473
+ {
1474
+ "if": {
1475
+ "inverse": true
1476
+ },
1477
+ "tokens": {
1478
+ "color": "{palette.color.white}"
1479
+ }
1480
+ },
1481
+ {
1482
+ "if": {
1483
+ "hover": true,
1484
+ "inverse": true
1485
+ },
1486
+ "tokens": {
1487
+ "color": "{palette.color.greyAthens}"
1488
+ }
1489
+ },
1490
+ {
1491
+ "if": {
1492
+ "inverse": true,
1493
+ "pressed": true
1494
+ },
1495
+ "tokens": {
1496
+ "color": "{palette.color.greyMystic}"
1428
1497
  }
1429
1498
  },
1430
1499
  {
@@ -1432,16 +1501,34 @@
1432
1501
  "size": "large"
1433
1502
  },
1434
1503
  "tokens": {
1435
- "iconSize": "{palette.size.size24}"
1504
+ "iconSize": "{palette.size.size20}"
1505
+ }
1506
+ },
1507
+ {
1508
+ "if": {
1509
+ "size": "small"
1510
+ },
1511
+ "tokens": {
1512
+ "iconSize": "{palette.size.size14}"
1513
+ }
1514
+ },
1515
+ {
1516
+ "if": {
1517
+ "size": "micro"
1518
+ },
1519
+ "tokens": {
1520
+ "iconSize": "{palette.size.size12}"
1436
1521
  }
1437
1522
  }
1438
1523
  ],
1439
1524
  "tokens": {
1525
+ "color": "{palette.color.greenAccessible}",
1440
1526
  "iconDisplace": "{palette.size.size0}",
1441
- "iconSize": "{palette.size.size20}",
1527
+ "iconSize": "{palette.size.size24}",
1442
1528
  "iconSpace": "{system.integer.1}",
1443
- "leftIcon": "{palette.icon.ArrowLeft}",
1444
- "rightIcon": "{palette.icon.ArrowRight}",
1529
+ "leftIcon": "{palette.icon.ChevronLeft}",
1530
+ "outerBorderColor": "{palette.color.transparent}",
1531
+ "rightIcon": "{palette.icon.ChevronRight}",
1445
1532
  "textLine": "{system.textLine.none}"
1446
1533
  }
1447
1534
  },
@@ -1790,11 +1877,17 @@
1790
1877
  },
1791
1878
  "focus": "{appearances.IconButton.focus}",
1792
1879
  "hover": "{appearances.IconButton.hover}",
1880
+ "inactive": "{appearances.Button.inactive}",
1793
1881
  "inverse": {
1794
1882
  "description": "For use on dark backgrounds",
1795
1883
  "type": "variant",
1796
1884
  "values": [true]
1797
1885
  },
1886
+ "password": {
1887
+ "description": "Password masked or not",
1888
+ "type": "variant",
1889
+ "values": [true]
1890
+ },
1798
1891
  "pressed": "{appearances.IconButton.pressed}",
1799
1892
  "raised": {
1800
1893
  "description": "Uses shadow and background colour to appear raised above the page",
@@ -1826,6 +1919,34 @@
1826
1919
  "iconScale": "{system.iconScale.scale1_10}"
1827
1920
  }
1828
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
+ },
1829
1950
  {
1830
1951
  "if": {
1831
1952
  "hover": true,
@@ -1846,6 +1967,17 @@
1846
1967
  "outerBorderWidth": "{palette.border.border1}"
1847
1968
  }
1848
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
+ },
1849
1981
  {
1850
1982
  "if": {
1851
1983
  "focus": true,
@@ -1869,6 +2001,18 @@
1869
2001
  "outerBorderGap": "{palette.size.size4}"
1870
2002
  }
1871
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
+ },
1872
2016
  {
1873
2017
  "if": {
1874
2018
  "inverse": true,
@@ -1941,6 +2085,18 @@
1941
2085
  "borderWidth": "{system.border.zero}"
1942
2086
  }
1943
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
+ },
1944
2100
  {
1945
2101
  "if": {
1946
2102
  "focus": true,
@@ -1988,7 +2144,7 @@
1988
2144
  "borderWidth": "{palette.border.border1}",
1989
2145
  "iconColor": "{palette.color.greyShuttle}",
1990
2146
  "iconScale": "{system.iconScale.scale1}",
1991
- "iconSize": "{palette.size.size16}",
2147
+ "iconSize": "{palette.size.size24}",
1992
2148
  "iconTranslateX": "{system.size.zero}",
1993
2149
  "iconTranslateY": "{system.size.zero}",
1994
2150
  "outerBorderColor": "{system.color.transparent}",
@@ -4166,6 +4322,11 @@
4166
4322
  "focus": "{appearances.TextInput.focus}",
4167
4323
  "hover": "{appearances.TextInput.hover}",
4168
4324
  "inactive": "{appearances.TextInput.inactive}",
4325
+ "password": {
4326
+ "description": "capability that helps masking and unmasking text",
4327
+ "type": "variant",
4328
+ "values": [true]
4329
+ },
4169
4330
  "validation": "{appearances.TextInput.validation}"
4170
4331
  },
4171
4332
  "rules": [
@@ -4242,7 +4403,9 @@
4242
4403
  "paddingBottom": "{palette.size.size12}",
4243
4404
  "paddingLeft": "{palette.size.size16}",
4244
4405
  "paddingRight": "{palette.size.size16}",
4245
- "paddingTop": "{palette.size.size12}"
4406
+ "paddingTop": "{palette.size.size12}",
4407
+ "passwordHideButtonIcon": "{palette.icon.Invisible}",
4408
+ "passwordShowButtonIcon": "{palette.icon.Visible}"
4246
4409
  }
4247
4410
  },
4248
4411
  "Timeline": {