@telus-uds/theme-allium 3.23.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/rn/theme.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  *
3
3
  * Do not edit directly
4
- * Generated on Thu, 20 Apr 2023 19:05:19 GMT
4
+ * Generated on Mon, 24 Apr 2023 21:33:19 GMT
5
5
  *
6
6
  */
7
7
 
@@ -13,11 +13,15 @@ const PaletteIconArrowLeft = require('@telus-uds/palette-allium/build/rn/icons/A
13
13
  const PaletteIconCheckmark = require('@telus-uds/palette-allium/build/rn/icons/Checkmark')
14
14
  const PaletteIconStatusSuccess = require('@telus-uds/palette-allium/build/rn/icons/StatusSuccess')
15
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')
16
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')
17
22
  const PaletteIconStatusWarning = require('@telus-uds/palette-allium/build/rn/icons/StatusWarning')
18
23
  const PaletteIconTimes = require('@telus-uds/palette-allium/build/rn/icons/Times')
19
24
  const PaletteIconSearchBold = require('@telus-uds/palette-allium/build/rn/icons/SearchBold')
20
- const PaletteIconAdd = require('@telus-uds/palette-allium/build/rn/icons/Add')
21
25
  const PaletteIconInvisible = require('@telus-uds/palette-allium/build/rn/icons/Invisible')
22
26
  const PaletteIconVisible = require('@telus-uds/palette-allium/build/rn/icons/Visible')
23
27
  const PaletteIconQuestion = require('@telus-uds/palette-allium/build/rn/icons/Question')
@@ -121,6 +125,27 @@ module.exports = {
121
125
  paddingTop: 2
122
126
  }
123
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
+ },
124
149
  Box: {
125
150
  appearances: {
126
151
  background: {
@@ -995,7 +1020,7 @@ module.exports = {
995
1020
  borderWidth: 1,
996
1021
  contentAlignItems: 'stretch',
997
1022
  contentFlexGrow: 0,
998
- contentFlexShrink: 0,
1023
+ contentFlexShrink: 1,
999
1024
  contentJustifyContent: 'flex-start',
1000
1025
  flex: 1,
1001
1026
  minWidth: null,
@@ -1622,7 +1647,7 @@ module.exports = {
1622
1647
  padding: 8,
1623
1648
  shadow: {
1624
1649
  blur: 2,
1625
- color: 'rgba(0, 0, 0, 0.1)',
1650
+ color: 'rgba(0, 0, 0, 0.2)',
1626
1651
  inset: false,
1627
1652
  offsetX: 0,
1628
1653
  offsetY: 2,
@@ -1671,6 +1696,16 @@ module.exports = {
1671
1696
  },
1672
1697
  IconButton: {
1673
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
+ },
1674
1709
  compact: {
1675
1710
  description: 'Without the outer border gap',
1676
1711
  type: 'variant',
@@ -1716,6 +1751,39 @@ module.exports = {
1716
1751
  size: { type: 'variant', values: [ 'small', 'large' ] }
1717
1752
  },
1718
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
+ },
1719
1787
  {
1720
1788
  if: { inverse: true },
1721
1789
  tokens: { borderColor: '#ffffff', iconColor: '#ffffff' }
@@ -1820,7 +1888,7 @@ module.exports = {
1820
1888
  padding: 8,
1821
1889
  shadow: {
1822
1890
  blur: 2,
1823
- color: 'rgba(0, 0, 0, 0.1)',
1891
+ color: 'rgba(0, 0, 0, 0.2)',
1824
1892
  inset: false,
1825
1893
  offsetX: 0,
1826
1894
  offsetY: 2,
@@ -1873,6 +1941,7 @@ module.exports = {
1873
1941
  borderColor: '#676e73',
1874
1942
  borderRadius: 99999999999999,
1875
1943
  borderWidth: 1,
1944
+ icon: null,
1876
1945
  iconColor: '#676e73',
1877
1946
  iconScale: 1,
1878
1947
  iconSize: 16,
@@ -2114,6 +2183,111 @@ module.exports = {
2114
2183
  listGutter: 16
2115
2184
  }
2116
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
+ },
2117
2291
  Modal: {
2118
2292
  appearances: {
2119
2293
  maxWidth: {
@@ -3100,7 +3274,7 @@ module.exports = {
3100
3274
  color: '#2c2e30',
3101
3275
  contentAlignItems: 'stretch',
3102
3276
  contentFlexGrow: 0,
3103
- contentFlexShrink: 0,
3277
+ contentFlexShrink: 1,
3104
3278
  contentJustifyContent: 'flex-start',
3105
3279
  contentSpace: 2,
3106
3280
  flex: 1,
@@ -4280,7 +4454,7 @@ module.exports = {
4280
4454
  switchColor: '#ffffff',
4281
4455
  switchShadow: {
4282
4456
  blur: 2,
4283
- color: 'rgba(0, 0, 0, 0.1)',
4457
+ color: 'rgba(0, 0, 0, 0.2)',
4284
4458
  inset: false,
4285
4459
  offsetX: 0,
4286
4460
  offsetY: 2,
@@ -4757,5 +4931,5 @@ module.exports = {
4757
4931
  tokens: { size: 96 }
4758
4932
  }
4759
4933
  },
4760
- metadata: { name: 'theme-allium', themeTokensVersion: '2.21.0' }
4934
+ metadata: { name: 'theme-allium', themeTokensVersion: '2.22.0' }
4761
4935
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@telus-uds/theme-allium",
3
- "version": "3.23.0",
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.14.0",
12
- "@telus-uds/system-theme-tokens": "^2.21.0",
13
- "@telus-uds/system-tokens": "^0.7.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.14.0"
16
+ "@telus-uds/palette-allium": "^2.15.0"
17
17
  },
18
18
  "files": [
19
19
  "build",
package/theme.json CHANGED
@@ -113,6 +113,20 @@
113
113
  "paddingTop": "{palette.size.size2}"
114
114
  }
115
115
  },
116
+ "BlockQuote": {
117
+ "appearances": {},
118
+ "rules": [],
119
+ "tokens": {
120
+ "backgroundGradient": "{palette.gradient.purple}",
121
+ "color": "{palette.color.greyCharcoal}",
122
+ "marginBottom": "{palette.size.size16}",
123
+ "paddingBottom": "{palette.size.size16}",
124
+ "paddingLeft": "{palette.size.size32}",
125
+ "paddingRight": "{palette.size.size32}",
126
+ "paddingTop": "{palette.size.size16}",
127
+ "width": "{palette.size.size2}"
128
+ }
129
+ },
116
130
  "Box": {
117
131
  "appearances": {
118
132
  "background": {
@@ -1266,7 +1280,7 @@
1266
1280
  "borderWidth": "{palette.border.border1}",
1267
1281
  "contentAlignItems": "{system.flexAlign.stretch}",
1268
1282
  "contentFlexGrow": "{system.integer.0}",
1269
- "contentFlexShrink": "{system.integer.0}",
1283
+ "contentFlexShrink": "{system.integer.1}",
1270
1284
  "contentJustifyContent": "{system.flexJustifyContent.flexStart}",
1271
1285
  "flex": "{system.integer.1}",
1272
1286
  "minWidth": "{system.size.none}",
@@ -2161,6 +2175,20 @@
2161
2175
  },
2162
2176
  "IconButton": {
2163
2177
  "appearances": {
2178
+ "action": {
2179
+ "type": "variant",
2180
+ "values": [
2181
+ "add",
2182
+ "close",
2183
+ "expand",
2184
+ "moveDown",
2185
+ "moveLeft",
2186
+ "moveRight",
2187
+ "moveUp",
2188
+ "play",
2189
+ "subtract"
2190
+ ]
2191
+ },
2164
2192
  "compact": {
2165
2193
  "description": "Without the outer border gap",
2166
2194
  "type": "variant",
@@ -2191,6 +2219,78 @@
2191
2219
  }
2192
2220
  },
2193
2221
  "rules": [
2222
+ {
2223
+ "if": {
2224
+ "action": "add"
2225
+ },
2226
+ "tokens": {
2227
+ "icon": "{palette.icon.Add}"
2228
+ }
2229
+ },
2230
+ {
2231
+ "if": {
2232
+ "action": "subtract"
2233
+ },
2234
+ "tokens": {
2235
+ "icon": "{palette.icon.Subtract}"
2236
+ }
2237
+ },
2238
+ {
2239
+ "if": {
2240
+ "action": "close"
2241
+ },
2242
+ "tokens": {
2243
+ "icon": "{palette.icon.Close}"
2244
+ }
2245
+ },
2246
+ {
2247
+ "if": {
2248
+ "action": "expand"
2249
+ },
2250
+ "tokens": {
2251
+ "icon": "{palette.icon.Expand}"
2252
+ }
2253
+ },
2254
+ {
2255
+ "if": {
2256
+ "action": "moveDown"
2257
+ },
2258
+ "tokens": {
2259
+ "icon": "{palette.icon.CaretDown}"
2260
+ }
2261
+ },
2262
+ {
2263
+ "if": {
2264
+ "action": "moveUp"
2265
+ },
2266
+ "tokens": {
2267
+ "icon": "{palette.icon.CaretUp}"
2268
+ }
2269
+ },
2270
+ {
2271
+ "if": {
2272
+ "action": "moveLeft"
2273
+ },
2274
+ "tokens": {
2275
+ "icon": "{palette.icon.ChevronLeft}"
2276
+ }
2277
+ },
2278
+ {
2279
+ "if": {
2280
+ "action": "moveRight"
2281
+ },
2282
+ "tokens": {
2283
+ "icon": "{palette.icon.ChevronRight}"
2284
+ }
2285
+ },
2286
+ {
2287
+ "if": {
2288
+ "action": "play"
2289
+ },
2290
+ "tokens": {
2291
+ "icon": "{palette.icon.PlayVideo}"
2292
+ }
2293
+ },
2194
2294
  {
2195
2295
  "if": {
2196
2296
  "inverse": true
@@ -2440,6 +2540,7 @@
2440
2540
  "borderColor": "{palette.color.greyShuttle}",
2441
2541
  "borderRadius": "{system.radius.round}",
2442
2542
  "borderWidth": "{palette.border.border1}",
2543
+ "icon": "{system.icon.none}",
2443
2544
  "iconColor": "{palette.color.greyShuttle}",
2444
2545
  "iconScale": "{system.iconScale.scale1}",
2445
2546
  "iconSize": "{palette.size.size16}",
@@ -2805,6 +2906,104 @@
2805
2906
  "listGutter": "{palette.size.size16}"
2806
2907
  }
2807
2908
  },
2909
+ "ListBox": {
2910
+ "appearances": {
2911
+ "current": "{appearances.ListBox.current}",
2912
+ "expanded": "{appearances.ListBox.expanded}",
2913
+ "focus": "{appearances.ListBox.focus}",
2914
+ "hover": "{appearances.ListBox.hover}",
2915
+ "isChild": "{appearances.ListBox.isChild}",
2916
+ "pressed": "{appearances.ListBox.pressed}"
2917
+ },
2918
+ "rules": [
2919
+ {
2920
+ "if": {
2921
+ "pressed": true
2922
+ },
2923
+ "tokens": {
2924
+ "groupBackgroundColor": "{palette.color.greyMystic}",
2925
+ "groupColor": "{palette.color.purpleTelus}"
2926
+ }
2927
+ },
2928
+ {
2929
+ "if": {
2930
+ "hover": true
2931
+ },
2932
+ "tokens": {
2933
+ "groupBackgroundColor": "{palette.color.greyAthens}",
2934
+ "groupColor": "{palette.color.purpleTelus}"
2935
+ }
2936
+ },
2937
+ {
2938
+ "if": {
2939
+ "focus": true
2940
+ },
2941
+ "tokens": {
2942
+ "groupBackgroundColor": "{palette.color.greyAthens}",
2943
+ "groupColor": "{palette.color.purpleTelus}"
2944
+ }
2945
+ },
2946
+ {
2947
+ "if": {
2948
+ "expanded": true
2949
+ },
2950
+ "tokens": {
2951
+ "groupIcon": "{palette.icon.CaretUp}"
2952
+ }
2953
+ },
2954
+ {
2955
+ "if": {
2956
+ "current": true
2957
+ },
2958
+ "tokens": {
2959
+ "groupColor": "{palette.color.purpleTelus}",
2960
+ "groupFontName": "{palette.fontName.HelveticaNow}",
2961
+ "groupFontWeight": "{palette.fontWeight.weight700}"
2962
+ }
2963
+ },
2964
+ {
2965
+ "if": {
2966
+ "isChild": true
2967
+ },
2968
+ "tokens": {
2969
+ "itemBorderWidth": "{palette.border.border4}",
2970
+ "itemPaddingLeft": "{palette.size.size12}"
2971
+ }
2972
+ }
2973
+ ],
2974
+ "tokens": {
2975
+ "groupBackgroundColor": "{palette.color.transparent}",
2976
+ "groupBorderColor": "{palette.color.purpleTelus}",
2977
+ "groupBorderRadius": "{palette.radius.radius6}",
2978
+ "groupBorderWidth": "{palette.border.border1}",
2979
+ "groupColor": "{palette.color.greyCharcoal}",
2980
+ "groupFontName": "{palette.fontName.HelveticaNow}",
2981
+ "groupFontSize": "{palette.size.size14}",
2982
+ "groupFontWeight": "{palette.fontWeight.weight400}",
2983
+ "groupIcon": "{palette.icon.CaretDown}",
2984
+ "groupPaddingBottom": "{palette.size.size12}",
2985
+ "groupPaddingLeft": "{palette.size.size16}",
2986
+ "groupPaddingRight": "{palette.size.size16}",
2987
+ "groupPaddingTop": "{palette.size.size12}",
2988
+ "itemBackgroundColor": "{palette.color.transparent}",
2989
+ "itemBorderBackgroundColor": "{palette.color.greyMystic}",
2990
+ "itemBorderLeftColor": "{palette.color.purpleTelus}",
2991
+ "itemBorderLeftWidth": "{palette.border.border4}",
2992
+ "itemBorderWidth": "{system.border.zero}",
2993
+ "itemColor": "{palette.color.purpleTelus}",
2994
+ "itemDisplay": "{system.show.false}",
2995
+ "itemFontName": "{palette.fontName.HelveticaNow}",
2996
+ "itemFontSize": "{palette.size.size14}",
2997
+ "itemFontWeight": "{palette.fontWeight.weight700}",
2998
+ "itemOutline": "{palette.border.none}",
2999
+ "itemPaddingBottom": "{palette.size.size12}",
3000
+ "itemPaddingLeft": "{palette.size.size16}",
3001
+ "itemPaddingRight": "{palette.size.size16}",
3002
+ "itemPaddingTop": "{palette.size.size12}",
3003
+ "itemTextDecoration": "{system.textLine.none}",
3004
+ "shadow": "{palette.shadow.elevation1}"
3005
+ }
3006
+ },
2808
3007
  "Modal": {
2809
3008
  "appearances": {
2810
3009
  "maxWidth": "{appearances.Modal.maxWidth}",
@@ -3893,7 +4092,7 @@
3893
4092
  "color": "{palette.color.greyThunder}",
3894
4093
  "contentAlignItems": "{system.flexAlign.stretch}",
3895
4094
  "contentFlexGrow": "{system.integer.0}",
3896
- "contentFlexShrink": "{system.integer.0}",
4095
+ "contentFlexShrink": "{system.integer.1}",
3897
4096
  "contentJustifyContent": "{system.flexJustifyContent.flexStart}",
3898
4097
  "contentSpace": "{system.integer.2}",
3899
4098
  "flex": "{system.integer.1}",