@telus-uds/theme-allium 3.14.0 → 3.16.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 Tue, 07 Mar 2023 21:06:38 GMT
4
+ * Generated on Thu, 23 Mar 2023 20:45: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 = {
@@ -34,6 +36,92 @@ module.exports = {
34
36
  rules: [ { if: { size: 'large' }, tokens: { size: 48, thickness: 4 } } ],
35
37
  tokens: { color: '#2b8000', size: 24, thickness: 2 }
36
38
  },
39
+ Badge: {
40
+ appearances: {
41
+ alternative: { type: 'variant', values: [ true ] },
42
+ outline: { type: 'variant', values: [ true ] },
43
+ purpose: { type: 'variant', values: [ 'offer', 'editorial' ] }
44
+ },
45
+ rules: [
46
+ {
47
+ if: { outline: true },
48
+ tokens: { backgroundColor: '#ffffff', color: '#613889' }
49
+ },
50
+ {
51
+ if: { alternative: true },
52
+ tokens: {
53
+ borderColor: 'rgba(0, 0, 0, 0)',
54
+ gradient: {
55
+ angle: 135,
56
+ stops: [
57
+ { color: '#00784a', stop: 0 },
58
+ { color: '#66cc00', stop: 1 }
59
+ ],
60
+ type: 'linear'
61
+ }
62
+ }
63
+ },
64
+ {
65
+ if: { purpose: 'offer' },
66
+ tokens: {
67
+ borderWidth: 0,
68
+ gradient: {
69
+ angle: 135,
70
+ stops: [
71
+ { color: '#4b286d', stop: 0 },
72
+ { color: '#e53293', stop: 1 }
73
+ ],
74
+ type: 'linear'
75
+ },
76
+ paddingBottom: 4,
77
+ paddingLeft: 10,
78
+ paddingRight: 10,
79
+ paddingTop: 4
80
+ }
81
+ },
82
+ {
83
+ if: { purpose: 'editorial' },
84
+ tokens: {
85
+ backgroundColor: '#676e73',
86
+ borderColor: '#676e73',
87
+ color: '#ffffff'
88
+ }
89
+ },
90
+ {
91
+ if: { outline: true, purpose: 'offer' },
92
+ tokens: {
93
+ borderColor: 'rgba(0, 0, 0, 0)',
94
+ borderWidth: 2,
95
+ gradient: {
96
+ angle: 135,
97
+ stops: [
98
+ { color: '#4b286d', stop: 0 },
99
+ { color: '#e53293', stop: 1 }
100
+ ],
101
+ type: 'linear'
102
+ },
103
+ paddingBottom: 2,
104
+ paddingLeft: 8,
105
+ paddingRight: 8,
106
+ paddingTop: 2
107
+ }
108
+ }
109
+ ],
110
+ tokens: {
111
+ backgroundColor: '#613889',
112
+ borderColor: '#613889',
113
+ borderRadius: 4,
114
+ borderWidth: 2,
115
+ color: '#ffffff',
116
+ fontName: 'HelveticaNow',
117
+ fontWeight: '700',
118
+ gradient: null,
119
+ paddingBottom: 2,
120
+ paddingLeft: 8,
121
+ paddingRight: 8,
122
+ paddingTop: 2
123
+ }
124
+ },
37
125
  Box: {
38
126
  appearances: {
39
127
  background: {
@@ -1438,11 +1526,21 @@ module.exports = {
1438
1526
  type: 'state',
1439
1527
  values: [ true ]
1440
1528
  },
1529
+ inactive: {
1530
+ description: 'Prevents an interactive component from being interacted with and applies accessibility attributes to indicate to the user that this component cannot be used.',
1531
+ type: 'state',
1532
+ values: [ true ]
1533
+ },
1441
1534
  inverse: {
1442
1535
  description: 'For use on dark backgrounds',
1443
1536
  type: 'variant',
1444
1537
  values: [ true ]
1445
1538
  },
1539
+ password: {
1540
+ description: 'Password masked or not',
1541
+ type: 'variant',
1542
+ values: [ true ]
1543
+ },
1446
1544
  pressed: {
1447
1545
  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
1546
  type: 'state',
@@ -1468,6 +1566,22 @@ module.exports = {
1468
1566
  iconScale: 1.1
1469
1567
  }
1470
1568
  },
1569
+ {
1570
+ if: { hover: true, password: true },
1571
+ tokens: {
1572
+ backgroundColor: '#7c53a5',
1573
+ borderColor: '#7c53a5',
1574
+ iconColor: '#ffffff'
1575
+ }
1576
+ },
1577
+ {
1578
+ if: { password: true },
1579
+ tokens: { borderColor: 'transparent' }
1580
+ },
1581
+ {
1582
+ if: { focus: true, password: true },
1583
+ tokens: { borderColor: '#4b286d' }
1584
+ },
1471
1585
  {
1472
1586
  if: { hover: true, inverse: true },
1473
1587
  tokens: { borderColor: '#ffffff', iconColor: '#ffffff' }
@@ -1480,6 +1594,14 @@ module.exports = {
1480
1594
  outerBorderWidth: 1
1481
1595
  }
1482
1596
  },
1597
+ {
1598
+ if: { focus: true, password: true },
1599
+ tokens: {
1600
+ outerBorderColor: '#3f2a54',
1601
+ outerBorderGap: 4,
1602
+ outerBorderWidth: 2
1603
+ }
1604
+ },
1483
1605
  {
1484
1606
  if: { focus: true, inverse: true },
1485
1607
  tokens: {
@@ -1498,6 +1620,15 @@ module.exports = {
1498
1620
  outerBorderGap: 4
1499
1621
  }
1500
1622
  },
1623
+ {
1624
+ if: { password: true, pressed: true },
1625
+ tokens: {
1626
+ backgroundColor: '#3f2a54',
1627
+ borderColor: '#3f2a54',
1628
+ iconColor: '#ffffff',
1629
+ outerBorderGap: 4
1630
+ }
1631
+ },
1501
1632
  {
1502
1633
  if: { inverse: true, pressed: true },
1503
1634
  tokens: {
@@ -1541,6 +1672,15 @@ module.exports = {
1541
1672
  if: { pressed: true, raised: true },
1542
1673
  tokens: { backgroundColor: '#676e73', borderWidth: 0 }
1543
1674
  },
1675
+ {
1676
+ if: { inactive: true, password: true },
1677
+ tokens: {
1678
+ backgroundColor: 'rgba(0, 0, 0, 0)',
1679
+ borderWidth: 0,
1680
+ iconColor: '#e3e6e8',
1681
+ outerBorderColor: 'rgba(0, 0, 0, 0)'
1682
+ }
1683
+ },
1544
1684
  {
1545
1685
  if: { focus: true, pressed: true, raised: true },
1546
1686
  tokens: { backgroundColor: '#4b286d', borderWidth: 0 }
@@ -1562,7 +1702,7 @@ module.exports = {
1562
1702
  borderWidth: 1,
1563
1703
  iconColor: '#676e73',
1564
1704
  iconScale: 1,
1565
- iconSize: 16,
1705
+ iconSize: 24,
1566
1706
  iconTranslateX: 0,
1567
1707
  iconTranslateY: 0,
1568
1708
  outerBorderColor: 'transparent',
@@ -1585,7 +1725,7 @@ module.exports = {
1585
1725
  hintFontName: 'HelveticaNow',
1586
1726
  hintFontSize: 14,
1587
1727
  hintFontWeight: '400',
1588
- hintLineHeight: 1.4,
1728
+ hintLineHeight: 1.42857142857,
1589
1729
  lineHeight: 1.5
1590
1730
  }
1591
1731
  },
@@ -3482,6 +3622,11 @@ module.exports = {
3482
3622
  type: 'state',
3483
3623
  values: [ true ]
3484
3624
  },
3625
+ password: {
3626
+ description: 'capability that helps masking and unmasking text',
3627
+ type: 'variant',
3628
+ values: [ true ]
3629
+ },
3485
3630
  validation: {
3486
3631
  description: 'Validation states for form inputs',
3487
3632
  type: 'state',
@@ -3544,7 +3689,9 @@ module.exports = {
3544
3689
  paddingBottom: 12,
3545
3690
  paddingLeft: 16,
3546
3691
  paddingRight: 16,
3547
- paddingTop: 12
3692
+ paddingTop: 12,
3693
+ passwordHideButtonIcon: PaletteIconInvisible,
3694
+ passwordShowButtonIcon: PaletteIconVisible
3548
3695
  }
3549
3696
  },
3550
3697
  Timeline: {
@@ -4171,5 +4318,5 @@ module.exports = {
4171
4318
  tokens: { size: 96 }
4172
4319
  }
4173
4320
  },
4174
- metadata: { name: 'theme-allium', themeTokensVersion: '2.12.0' }
4321
+ metadata: { name: 'theme-allium', themeTokensVersion: '2.14.0' }
4175
4322
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@telus-uds/theme-allium",
3
- "version": "3.14.0",
3
+ "version": "3.16.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.2",
12
- "@telus-uds/system-theme-tokens": "^2.12.0",
13
- "@telus-uds/system-tokens": "^0.6.4"
11
+ "@telus-uds/palette-allium": "^2.12.0",
12
+ "@telus-uds/system-theme-tokens": "^2.14.0",
13
+ "@telus-uds/system-tokens": "^0.6.6"
14
14
  },
15
15
  "peerDependencies": {
16
- "@telus-uds/palette-allium": "^2.10.2"
16
+ "@telus-uds/palette-allium": "^2.12.0"
17
17
  },
18
18
  "files": [
19
19
  "build",
package/theme.json CHANGED
@@ -25,6 +25,94 @@
25
25
  "thickness": "{palette.border.border2}"
26
26
  }
27
27
  },
28
+ "Badge": {
29
+ "appearances": {
30
+ "alternative": {
31
+ "type": "variant",
32
+ "values": [true]
33
+ },
34
+ "outline": {
35
+ "type": "variant",
36
+ "values": [true]
37
+ },
38
+ "purpose": {
39
+ "type": "variant",
40
+ "values": ["offer", "editorial"]
41
+ }
42
+ },
43
+ "rules": [
44
+ {
45
+ "if": {
46
+ "outline": true
47
+ },
48
+ "tokens": {
49
+ "backgroundColor": "{palette.color.white}",
50
+ "color": "{palette.color.purpleEminence}"
51
+ }
52
+ },
53
+ {
54
+ "if": {
55
+ "alternative": true
56
+ },
57
+ "tokens": {
58
+ "borderColor": "{palette.color.transparent}",
59
+ "gradient": "{palette.gradient.green}"
60
+ }
61
+ },
62
+ {
63
+ "if": {
64
+ "purpose": "offer"
65
+ },
66
+ "tokens": {
67
+ "borderWidth": "{palette.border.none}",
68
+ "gradient": "{palette.gradient.purple}",
69
+ "paddingBottom": "{palette.size.size4}",
70
+ "paddingLeft": "{palette.size.size10}",
71
+ "paddingRight": "{palette.size.size10}",
72
+ "paddingTop": "{palette.size.size4}"
73
+ }
74
+ },
75
+ {
76
+ "if": {
77
+ "purpose": "editorial"
78
+ },
79
+ "tokens": {
80
+ "backgroundColor": "{palette.color.greyShuttle}",
81
+ "borderColor": "{palette.color.greyShuttle}",
82
+ "color": "{palette.color.white}"
83
+ }
84
+ },
85
+ {
86
+ "if": {
87
+ "outline": true,
88
+ "purpose": "offer"
89
+ },
90
+ "tokens": {
91
+ "borderColor": "{palette.color.transparent}",
92
+ "borderWidth": "{palette.border.border2}",
93
+ "gradient": "{palette.gradient.purple}",
94
+ "paddingBottom": "{palette.size.size2}",
95
+ "paddingLeft": "{palette.size.size8}",
96
+ "paddingRight": "{palette.size.size8}",
97
+ "paddingTop": "{palette.size.size2}"
98
+ }
99
+ }
100
+ ],
101
+ "tokens": {
102
+ "backgroundColor": "{palette.color.purpleEminence}",
103
+ "borderColor": "{palette.color.purpleEminence}",
104
+ "borderRadius": "{palette.radius.radius4}",
105
+ "borderWidth": "{palette.border.border2}",
106
+ "color": "{palette.color.white}",
107
+ "fontName": "{palette.fontName.HelveticaNow}",
108
+ "fontWeight": "{palette.fontWeight.weight700}",
109
+ "gradient": "{system.gradient.none}",
110
+ "paddingBottom": "{palette.size.size2}",
111
+ "paddingLeft": "{palette.size.size8}",
112
+ "paddingRight": "{palette.size.size8}",
113
+ "paddingTop": "{palette.size.size2}"
114
+ }
115
+ },
28
116
  "Box": {
29
117
  "appearances": {
30
118
  "background": {
@@ -1877,11 +1965,17 @@
1877
1965
  },
1878
1966
  "focus": "{appearances.IconButton.focus}",
1879
1967
  "hover": "{appearances.IconButton.hover}",
1968
+ "inactive": "{appearances.Button.inactive}",
1880
1969
  "inverse": {
1881
1970
  "description": "For use on dark backgrounds",
1882
1971
  "type": "variant",
1883
1972
  "values": [true]
1884
1973
  },
1974
+ "password": {
1975
+ "description": "Password masked or not",
1976
+ "type": "variant",
1977
+ "values": [true]
1978
+ },
1885
1979
  "pressed": "{appearances.IconButton.pressed}",
1886
1980
  "raised": {
1887
1981
  "description": "Uses shadow and background colour to appear raised above the page",
@@ -1913,6 +2007,34 @@
1913
2007
  "iconScale": "{system.iconScale.scale1_10}"
1914
2008
  }
1915
2009
  },
2010
+ {
2011
+ "if": {
2012
+ "hover": true,
2013
+ "password": true
2014
+ },
2015
+ "tokens": {
2016
+ "backgroundColor": "{palette.color.purpleDeluge}",
2017
+ "borderColor": "{palette.color.purpleDeluge}",
2018
+ "iconColor": "{palette.color.white}"
2019
+ }
2020
+ },
2021
+ {
2022
+ "if": {
2023
+ "password": true
2024
+ },
2025
+ "tokens": {
2026
+ "borderColor": "{system.color.transparent}"
2027
+ }
2028
+ },
2029
+ {
2030
+ "if": {
2031
+ "focus": true,
2032
+ "password": true
2033
+ },
2034
+ "tokens": {
2035
+ "borderColor": "{palette.color.purpleTelus}"
2036
+ }
2037
+ },
1916
2038
  {
1917
2039
  "if": {
1918
2040
  "hover": true,
@@ -1933,6 +2055,17 @@
1933
2055
  "outerBorderWidth": "{palette.border.border1}"
1934
2056
  }
1935
2057
  },
2058
+ {
2059
+ "if": {
2060
+ "focus": true,
2061
+ "password": true
2062
+ },
2063
+ "tokens": {
2064
+ "outerBorderColor": "{palette.color.purpleDark}",
2065
+ "outerBorderGap": "{palette.size.size4}",
2066
+ "outerBorderWidth": "{palette.border.border2}"
2067
+ }
2068
+ },
1936
2069
  {
1937
2070
  "if": {
1938
2071
  "focus": true,
@@ -1956,6 +2089,18 @@
1956
2089
  "outerBorderGap": "{palette.size.size4}"
1957
2090
  }
1958
2091
  },
2092
+ {
2093
+ "if": {
2094
+ "password": true,
2095
+ "pressed": true
2096
+ },
2097
+ "tokens": {
2098
+ "backgroundColor": "{palette.color.purpleDark}",
2099
+ "borderColor": "{palette.color.purpleDark}",
2100
+ "iconColor": "{palette.color.white}",
2101
+ "outerBorderGap": "{palette.size.size4}"
2102
+ }
2103
+ },
1959
2104
  {
1960
2105
  "if": {
1961
2106
  "inverse": true,
@@ -2028,6 +2173,18 @@
2028
2173
  "borderWidth": "{system.border.zero}"
2029
2174
  }
2030
2175
  },
2176
+ {
2177
+ "if": {
2178
+ "inactive": true,
2179
+ "password": true
2180
+ },
2181
+ "tokens": {
2182
+ "backgroundColor": "{palette.color.transparent}",
2183
+ "borderWidth": "{system.border.zero}",
2184
+ "iconColor": "{palette.color.greyMystic}",
2185
+ "outerBorderColor": "{palette.color.transparent}"
2186
+ }
2187
+ },
2031
2188
  {
2032
2189
  "if": {
2033
2190
  "focus": true,
@@ -2075,7 +2232,7 @@
2075
2232
  "borderWidth": "{palette.border.border1}",
2076
2233
  "iconColor": "{palette.color.greyShuttle}",
2077
2234
  "iconScale": "{system.iconScale.scale1}",
2078
- "iconSize": "{palette.size.size16}",
2235
+ "iconSize": "{palette.size.size24}",
2079
2236
  "iconTranslateX": "{system.size.zero}",
2080
2237
  "iconTranslateY": "{system.size.zero}",
2081
2238
  "outerBorderColor": "{system.color.transparent}",
@@ -2098,7 +2255,7 @@
2098
2255
  "hintFontName": "{palette.fontName.HelveticaNow}",
2099
2256
  "hintFontSize": "{palette.fontSize.size14}",
2100
2257
  "hintFontWeight": "{palette.fontWeight.weight400}",
2101
- "hintLineHeight": "{palette.lineHeight.ratio7to5}",
2258
+ "hintLineHeight": "{palette.lineHeight.ratio10to7}",
2102
2259
  "lineHeight": "{palette.lineHeight.ratio3to2}"
2103
2260
  }
2104
2261
  },
@@ -4253,6 +4410,11 @@
4253
4410
  "focus": "{appearances.TextInput.focus}",
4254
4411
  "hover": "{appearances.TextInput.hover}",
4255
4412
  "inactive": "{appearances.TextInput.inactive}",
4413
+ "password": {
4414
+ "description": "capability that helps masking and unmasking text",
4415
+ "type": "variant",
4416
+ "values": [true]
4417
+ },
4256
4418
  "validation": "{appearances.TextInput.validation}"
4257
4419
  },
4258
4420
  "rules": [
@@ -4329,7 +4491,9 @@
4329
4491
  "paddingBottom": "{palette.size.size12}",
4330
4492
  "paddingLeft": "{palette.size.size16}",
4331
4493
  "paddingRight": "{palette.size.size16}",
4332
- "paddingTop": "{palette.size.size12}"
4494
+ "paddingTop": "{palette.size.size12}",
4495
+ "passwordHideButtonIcon": "{palette.icon.Invisible}",
4496
+ "passwordShowButtonIcon": "{palette.icon.Visible}"
4333
4497
  }
4334
4498
  },
4335
4499
  "Timeline": {