@telus-uds/theme-allium 4.0.0 → 4.2.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 Fri, 02 Jun 2023 00:26:54 GMT
4
+ * Generated on Fri, 09 Jun 2023 00:17:15 GMT
5
5
  *
6
6
  */
7
7
 
@@ -659,7 +659,6 @@ module.exports = {
659
659
  }
660
660
  ],
661
661
  tokens: {
662
- alignSelf: 'flex-start',
663
662
  backgroundColor: '#ffffff',
664
663
  borderBottomWidth: 1,
665
664
  borderColor: '#2b8000',
@@ -1599,9 +1598,9 @@ module.exports = {
1599
1598
  tokens: {
1600
1599
  color: '#414547',
1601
1600
  fontName: 'HelveticaNow',
1602
- fontSize: 14,
1603
- fontWeight: '400',
1604
- lineHeight: 1.42857142857
1601
+ fontSize: 12,
1602
+ fontWeight: '500',
1603
+ lineHeight: 1.33333333333
1605
1604
  }
1606
1605
  },
1607
1606
  Divider: {
@@ -1633,7 +1632,8 @@ module.exports = {
1633
1632
  description: 'Applies when an ExpandCollapse panel is open and the content inside is visible',
1634
1633
  type: 'state',
1635
1634
  values: [ true ]
1636
- }
1635
+ },
1636
+ mini: { type: 'variant', values: [ true ] }
1637
1637
  },
1638
1638
  rules: [
1639
1639
  {
@@ -1648,11 +1648,16 @@ module.exports = {
1648
1648
  paddingRight: 0,
1649
1649
  paddingTop: 8
1650
1650
  }
1651
- }
1651
+ },
1652
+ { if: { mini: true }, tokens: { paddingBottom: 0 } }
1652
1653
  ],
1653
1654
  tokens: {
1654
1655
  backgroundColor: 'rgba(0, 0, 0, 0)',
1656
+ borderBottomLeftRadius: 0,
1657
+ borderBottomRightRadius: 0,
1655
1658
  borderColor: 'rgba(0, 0, 0, 0)',
1659
+ borderTopLeftRadius: 0,
1660
+ borderTopRightRadius: 0,
1656
1661
  borderWidth: 0,
1657
1662
  icon: PaletteIconCaretDown,
1658
1663
  iconColor: '#2b8000',
@@ -1665,6 +1670,7 @@ module.exports = {
1665
1670
  paddingLeft: 0,
1666
1671
  paddingRight: 0,
1667
1672
  paddingTop: 16,
1673
+ textLine: 'none',
1668
1674
  verticalAlign: 'top'
1669
1675
  }
1670
1676
  },
@@ -1702,35 +1708,11 @@ module.exports = {
1702
1708
  verticalAlign: 'top'
1703
1709
  }
1704
1710
  },
1705
- ExpandCollapseMiniPanel: {
1706
- appearances: { compact: { type: 'variant', values: [ true ] } },
1707
- rules: [
1708
- {
1709
- if: { compact: true },
1710
- tokens: {
1711
- contentPaddingBottom: 16,
1712
- contentPaddingRight: 0,
1713
- contentPaddingTop: 8
1714
- }
1715
- }
1716
- ],
1717
- tokens: {
1718
- borderColor: 'rgba(0, 0, 0, 0)',
1719
- borderRadius: 0,
1720
- borderWidth: 0,
1721
- collapseDuration: 250,
1722
- contentPaddingBottom: 16,
1723
- contentPaddingLeft: 0,
1724
- contentPaddingRight: 0,
1725
- contentPaddingTop: 0,
1726
- expandDividerColor: 'rgba(0, 0, 0, 0)',
1727
- expandDividerWidth: 0,
1728
- expandDuration: 300,
1729
- marginBottom: 0
1730
- }
1731
- },
1732
1711
  ExpandCollapsePanel: {
1733
- appearances: { compact: { type: 'variant', values: [ true ] } },
1712
+ appearances: {
1713
+ compact: { type: 'variant', values: [ true ] },
1714
+ mini: { type: 'variant', values: [ true ] }
1715
+ },
1734
1716
  rules: [
1735
1717
  {
1736
1718
  if: { compact: true },
@@ -1740,7 +1722,8 @@ module.exports = {
1740
1722
  contentPaddingRight: 0,
1741
1723
  contentPaddingTop: 8
1742
1724
  }
1743
- }
1725
+ },
1726
+ { if: { mini: true }, tokens: { contentPaddingLeft: 0 } }
1744
1727
  ],
1745
1728
  tokens: {
1746
1729
  borderColor: 'rgba(0, 0, 0, 0)',
@@ -1875,7 +1858,7 @@ module.exports = {
1875
1858
  appearances: {},
1876
1859
  rules: [],
1877
1860
  tokens: {
1878
- color: '#000000',
1861
+ color: null,
1879
1862
  fontName: 'HelveticaNow',
1880
1863
  fontWeight: '400',
1881
1864
  lineHeight: 1,
@@ -2447,7 +2430,7 @@ module.exports = {
2447
2430
  {
2448
2431
  if: { size: 'large' },
2449
2432
  tokens: {
2450
- iconMarginTop: 4,
2433
+ iconMarginTop: 6,
2451
2434
  itemFontSize: 20,
2452
2435
  itemIconSize: 20,
2453
2436
  itemLineHeight: 1.6,
@@ -2457,14 +2440,17 @@ module.exports = {
2457
2440
  {
2458
2441
  if: { size: 'small' },
2459
2442
  tokens: {
2460
- iconMarginTop: 2,
2443
+ iconMarginTop: 3,
2461
2444
  itemFontSize: 14,
2462
2445
  itemIconSize: 14,
2463
2446
  itemLineHeight: 1.42857142857,
2464
2447
  listGutter: 12
2465
2448
  }
2466
2449
  },
2467
- { if: { compact: true }, tokens: { itemLineHeight: 1.25 } },
2450
+ {
2451
+ if: { compact: true },
2452
+ tokens: { iconMarginTop: 2, itemLineHeight: 1.25 }
2453
+ },
2468
2454
  {
2469
2455
  if: { compact: true, size: 'small' },
2470
2456
  tokens: { itemLineHeight: 1.14285714286 }
@@ -2477,7 +2463,7 @@ module.exports = {
2477
2463
  tokens: {
2478
2464
  dividerColor: '#b2b9bf',
2479
2465
  dividerSize: 1,
2480
- iconMarginTop: 3,
2466
+ iconMarginTop: 4,
2481
2467
  interItemMargin: 8,
2482
2468
  interItemMarginWithDivider: 16,
2483
2469
  itemBulletColor: '#4b286d',
@@ -4256,6 +4242,12 @@ module.exports = {
4256
4242
  type: 'state',
4257
4243
  values: [ true ]
4258
4244
  },
4245
+ focus: {
4246
+ 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.",
4247
+ platforms: [ 'rn' ],
4248
+ type: 'state',
4249
+ values: [ true ]
4250
+ },
4259
4251
  hover: {
4260
4252
  description: "Currently web only. Applies when an interactive component's hover handler is triggered, such as on mouseover.",
4261
4253
  platforms: [ 'rn' ],
@@ -4273,6 +4265,7 @@ module.exports = {
4273
4265
  if: { active: true },
4274
4266
  tokens: {
4275
4267
  accentBackgroundColor: '#4b286d',
4268
+ backgroundColor: '#f4f4f7',
4276
4269
  color: '#4b286d',
4277
4270
  fontName: 'HelveticaNow',
4278
4271
  fontWeight: '700',
@@ -4286,19 +4279,21 @@ module.exports = {
4286
4279
  accentOffset: 16,
4287
4280
  borderWidth: 0,
4288
4281
  fontSize: 14,
4289
- lineHeight: 1.4,
4282
+ lineHeight: 1.45,
4290
4283
  paddingLeft: 36
4291
4284
  }
4292
4285
  },
4293
4286
  {
4294
4287
  if: { active: true, type: 'parent' },
4295
- tokens: { paddingLeft: 12 }
4288
+ tokens: { color: '#4b286d', paddingLeft: 12 }
4296
4289
  },
4297
4290
  {
4298
4291
  if: { active: true, expanded: true, type: 'parent' },
4299
4292
  tokens: {
4300
4293
  accentBackgroundColor: 'rgba(0, 0, 0, 0)',
4301
- color: '#414547',
4294
+ color: '#4b286d',
4295
+ fontName: 'HelveticaNow',
4296
+ fontWeight: '400',
4302
4297
  paddingLeft: 16
4303
4298
  }
4304
4299
  },
@@ -4306,13 +4301,16 @@ module.exports = {
4306
4301
  if: { hover: true },
4307
4302
  tokens: { backgroundColor: '#f4f4f7', color: '#4b286d' }
4308
4303
  },
4304
+ {
4305
+ if: { focus: true },
4306
+ tokens: { backgroundColor: '#f4f4f7', color: '#4b286d' }
4307
+ },
4309
4308
  {
4310
4309
  if: { active: true, type: 'child' },
4311
4310
  tokens: {
4312
4311
  accentBackgroundColor: '#4b286d',
4313
4312
  accentPadding: 16,
4314
- backgroundColor: '#f4f4f7',
4315
- color: '#4b286d'
4313
+ backgroundColor: '#f4f4f7'
4316
4314
  }
4317
4315
  },
4318
4316
  {
@@ -4368,7 +4366,7 @@ module.exports = {
4368
4366
  contentPaddingTop: 0,
4369
4367
  expandDuration: 300,
4370
4368
  icon: PaletteIconCaretDown,
4371
- iconColor: '#4b286d',
4369
+ iconColor: '#2b8000',
4372
4370
  iconGap: 8,
4373
4371
  iconPosition: 'right',
4374
4372
  iconSize: 24,
@@ -4380,10 +4378,12 @@ module.exports = {
4380
4378
  appearances: {},
4381
4379
  rules: [],
4382
4380
  tokens: {
4381
+ animationDuration: 2000,
4383
4382
  baseWidth: 40,
4384
4383
  characters: 10,
4385
4384
  color: '#b2b9bf',
4386
4385
  radius: 99999999999999,
4386
+ secondColor: '#e3e6e8',
4387
4387
  size: 3,
4388
4388
  spaceBetweenLines: 2,
4389
4389
  squareRadius: 4
@@ -5919,5 +5919,5 @@ module.exports = {
5919
5919
  tokens: { size: 96 }
5920
5920
  }
5921
5921
  },
5922
- metadata: { name: 'theme-allium', themeTokensVersion: '2.29.0' }
5922
+ metadata: { name: 'theme-allium', themeTokensVersion: '2.31.0' }
5923
5923
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@telus-uds/theme-allium",
3
- "version": "4.0.0",
3
+ "version": "4.2.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.19.1",
12
- "@telus-uds/system-theme-tokens": "^2.29.0",
13
- "@telus-uds/system-tokens": "^0.7.9"
11
+ "@telus-uds/palette-allium": "^2.20.0",
12
+ "@telus-uds/system-theme-tokens": "^2.31.0",
13
+ "@telus-uds/system-tokens": "^0.7.11"
14
14
  },
15
15
  "peerDependencies": {
16
- "@telus-uds/palette-allium": "^2.19.1"
16
+ "@telus-uds/palette-allium": "^2.20.0"
17
17
  },
18
18
  "files": [
19
19
  "build",
package/theme.json CHANGED
@@ -823,7 +823,6 @@
823
823
  }
824
824
  ],
825
825
  "tokens": {
826
- "alignSelf": "{system.flexAlign.flexStart}",
827
826
  "backgroundColor": "{palette.color.white}",
828
827
  "borderBottomWidth": "{palette.border.border1}",
829
828
  "borderColor": "{palette.color.greenAccessible}",
@@ -1969,9 +1968,9 @@
1969
1968
  "tokens": {
1970
1969
  "color": "{palette.color.greyCharcoal}",
1971
1970
  "fontName": "{palette.fontName.HelveticaNow}",
1972
- "fontSize": "{palette.fontSize.size14}",
1973
- "fontWeight": "{palette.fontWeight.weight400}",
1974
- "lineHeight": "{palette.lineHeight.ratio10to7}"
1971
+ "fontSize": "{palette.fontSize.size12}",
1972
+ "fontWeight": "{palette.fontWeight.weight500}",
1973
+ "lineHeight": "{palette.lineHeight.ratio4to3}"
1975
1974
  }
1976
1975
  },
1977
1976
  "Divider": {
@@ -2036,7 +2035,11 @@
2036
2035
  "type": "variant",
2037
2036
  "values": [true]
2038
2037
  },
2039
- "expanded": "{appearances.ExpandCollapseControl.expanded}"
2038
+ "expanded": "{appearances.ExpandCollapseControl.expanded}",
2039
+ "mini": {
2040
+ "type": "variant",
2041
+ "values": [true]
2042
+ }
2040
2043
  },
2041
2044
  "rules": [
2042
2045
  {
@@ -2057,11 +2060,23 @@
2057
2060
  "paddingRight": "{palette.size.size0}",
2058
2061
  "paddingTop": "{palette.size.size8}"
2059
2062
  }
2063
+ },
2064
+ {
2065
+ "if": {
2066
+ "mini": true
2067
+ },
2068
+ "tokens": {
2069
+ "paddingBottom": "{palette.size.size0}"
2070
+ }
2060
2071
  }
2061
2072
  ],
2062
2073
  "tokens": {
2063
2074
  "backgroundColor": "{palette.color.transparent}",
2075
+ "borderBottomLeftRadius": "{system.radius.zero}",
2076
+ "borderBottomRightRadius": "{system.radius.zero}",
2064
2077
  "borderColor": "{palette.color.transparent}",
2078
+ "borderTopLeftRadius": "{system.radius.zero}",
2079
+ "borderTopRightRadius": "{system.radius.zero}",
2065
2080
  "borderWidth": "{system.border.zero}",
2066
2081
  "icon": "{palette.icon.CaretDown}",
2067
2082
  "iconColor": "{palette.color.greenAccessible}",
@@ -2074,6 +2089,7 @@
2074
2089
  "paddingLeft": "{palette.size.size0}",
2075
2090
  "paddingRight": "{palette.size.size0}",
2076
2091
  "paddingTop": "{palette.size.size16}",
2092
+ "textLine": "{system.textLine.none}",
2077
2093
  "verticalAlign": "{system.verticalAlign.top}"
2078
2094
  }
2079
2095
  },
@@ -2117,11 +2133,15 @@
2117
2133
  "verticalAlign": "{system.verticalAlign.top}"
2118
2134
  }
2119
2135
  },
2120
- "ExpandCollapseMiniPanel": {
2136
+ "ExpandCollapsePanel": {
2121
2137
  "appearances": {
2122
2138
  "compact": {
2123
2139
  "type": "variant",
2124
2140
  "values": [true]
2141
+ },
2142
+ "mini": {
2143
+ "type": "variant",
2144
+ "values": [true]
2125
2145
  }
2126
2146
  },
2127
2147
  "rules": [
@@ -2131,43 +2151,17 @@
2131
2151
  },
2132
2152
  "tokens": {
2133
2153
  "contentPaddingBottom": "{palette.size.size16}",
2154
+ "contentPaddingLeft": "{palette.size.size24}",
2134
2155
  "contentPaddingRight": "{palette.size.size0}",
2135
2156
  "contentPaddingTop": "{palette.size.size8}"
2136
2157
  }
2137
- }
2138
- ],
2139
- "tokens": {
2140
- "borderColor": "{palette.color.transparent}",
2141
- "borderRadius": "{palette.radius.none}",
2142
- "borderWidth": "{palette.border.none}",
2143
- "collapseDuration": "{palette.duration.duration250}",
2144
- "contentPaddingBottom": "{palette.size.size16}",
2145
- "contentPaddingLeft": "{palette.size.size0}",
2146
- "contentPaddingRight": "{palette.size.size0}",
2147
- "contentPaddingTop": "{palette.size.size0}",
2148
- "expandDividerColor": "{palette.color.transparent}",
2149
- "expandDividerWidth": "{palette.size.size0}",
2150
- "expandDuration": "{palette.duration.duration300}",
2151
- "marginBottom": "{palette.size.size0}"
2152
- }
2153
- },
2154
- "ExpandCollapsePanel": {
2155
- "appearances": {
2156
- "compact": {
2157
- "type": "variant",
2158
- "values": [true]
2159
- }
2160
- },
2161
- "rules": [
2158
+ },
2162
2159
  {
2163
2160
  "if": {
2164
- "compact": true
2161
+ "mini": true
2165
2162
  },
2166
2163
  "tokens": {
2167
- "contentPaddingBottom": "{palette.size.size16}",
2168
- "contentPaddingLeft": "{palette.size.size24}",
2169
- "contentPaddingRight": "{palette.size.size0}",
2170
- "contentPaddingTop": "{palette.size.size8}"
2164
+ "contentPaddingLeft": "{palette.size.size0}"
2171
2165
  }
2172
2166
  }
2173
2167
  ],
@@ -2333,7 +2327,7 @@
2333
2327
  "appearances": {},
2334
2328
  "rules": [],
2335
2329
  "tokens": {
2336
- "color": "{palette.color.black}",
2330
+ "color": "{system.color.none}",
2337
2331
  "fontName": "{palette.fontName.HelveticaNow}",
2338
2332
  "fontWeight": "{palette.fontWeight.weight400}",
2339
2333
  "lineHeight": "{palette.lineHeight.ratio1to1}",
@@ -3244,7 +3238,7 @@
3244
3238
  "size": "large"
3245
3239
  },
3246
3240
  "tokens": {
3247
- "iconMarginTop": "{palette.size.size4}",
3241
+ "iconMarginTop": "{palette.size.size6}",
3248
3242
  "itemFontSize": "{palette.fontSize.size20}",
3249
3243
  "itemIconSize": "{palette.size.size20}",
3250
3244
  "itemLineHeight": "{palette.lineHeight.ratio8to5}",
@@ -3256,7 +3250,7 @@
3256
3250
  "size": "small"
3257
3251
  },
3258
3252
  "tokens": {
3259
- "iconMarginTop": "{palette.size.size2}",
3253
+ "iconMarginTop": "{palette.size.size3}",
3260
3254
  "itemFontSize": "{palette.fontSize.size14}",
3261
3255
  "itemIconSize": "{palette.size.size14}",
3262
3256
  "itemLineHeight": "{palette.lineHeight.ratio10to7}",
@@ -3268,6 +3262,7 @@
3268
3262
  "compact": true
3269
3263
  },
3270
3264
  "tokens": {
3265
+ "iconMarginTop": "{palette.size.size2}",
3271
3266
  "itemLineHeight": "{palette.lineHeight.ratio5to4}"
3272
3267
  }
3273
3268
  },
@@ -3293,7 +3288,7 @@
3293
3288
  "tokens": {
3294
3289
  "dividerColor": "{palette.color.greyCloud}",
3295
3290
  "dividerSize": "{palette.border.border1}",
3296
- "iconMarginTop": "{palette.size.size3}",
3291
+ "iconMarginTop": "{palette.size.size4}",
3297
3292
  "interItemMargin": "{palette.size.size8}",
3298
3293
  "interItemMarginWithDivider": "{palette.size.size16}",
3299
3294
  "itemBulletColor": "{palette.color.purpleTelus}",
@@ -5197,6 +5192,7 @@
5197
5192
  "appearances": {
5198
5193
  "active": "{appearances.SideNavItem.active}",
5199
5194
  "expanded": "{appearances.SideNavItem.expanded}",
5195
+ "focus": "{appearances.SideNavItem.focus}",
5200
5196
  "hover": "{appearances.SideNavItem.hover}",
5201
5197
  "type": "{appearances.SideNavItem.type}"
5202
5198
  },
@@ -5207,6 +5203,7 @@
5207
5203
  },
5208
5204
  "tokens": {
5209
5205
  "accentBackgroundColor": "{palette.color.purpleTelus}",
5206
+ "backgroundColor": "{palette.color.greyAthens}",
5210
5207
  "color": "{palette.color.purpleTelus}",
5211
5208
  "fontName": "{palette.fontName.HelveticaNow}",
5212
5209
  "fontWeight": "{palette.fontWeight.weight700}",
@@ -5222,7 +5219,7 @@
5222
5219
  "accentOffset": "{palette.size.size16}",
5223
5220
  "borderWidth": "{palette.border.none}",
5224
5221
  "fontSize": "{palette.fontSize.size14}",
5225
- "lineHeight": "{palette.lineHeight.ratio7to5}",
5222
+ "lineHeight": "{palette.lineHeight.ratio14to1}",
5226
5223
  "paddingLeft": "{palette.size.size36}"
5227
5224
  }
5228
5225
  },
@@ -5232,6 +5229,7 @@
5232
5229
  "type": "parent"
5233
5230
  },
5234
5231
  "tokens": {
5232
+ "color": "{palette.color.purpleTelus}",
5235
5233
  "paddingLeft": "{palette.size.size12}"
5236
5234
  }
5237
5235
  },
@@ -5243,7 +5241,9 @@
5243
5241
  },
5244
5242
  "tokens": {
5245
5243
  "accentBackgroundColor": "{palette.color.transparent}",
5246
- "color": "{palette.color.greyCharcoal}",
5244
+ "color": "{palette.color.purpleTelus}",
5245
+ "fontName": "{palette.fontName.HelveticaNow}",
5246
+ "fontWeight": "{palette.fontWeight.weight400}",
5247
5247
  "paddingLeft": "{palette.size.size16}"
5248
5248
  }
5249
5249
  },
@@ -5256,6 +5256,15 @@
5256
5256
  "color": "{palette.color.purpleTelus}"
5257
5257
  }
5258
5258
  },
5259
+ {
5260
+ "if": {
5261
+ "focus": true
5262
+ },
5263
+ "tokens": {
5264
+ "backgroundColor": "{palette.color.greyAthens}",
5265
+ "color": "{palette.color.purpleTelus}"
5266
+ }
5267
+ },
5259
5268
  {
5260
5269
  "if": {
5261
5270
  "active": true,
@@ -5264,8 +5273,7 @@
5264
5273
  "tokens": {
5265
5274
  "accentBackgroundColor": "{palette.color.purpleTelus}",
5266
5275
  "accentPadding": "{palette.size.size16}",
5267
- "backgroundColor": "{palette.color.greyAthens}",
5268
- "color": "{palette.color.purpleTelus}"
5276
+ "backgroundColor": "{palette.color.greyAthens}"
5269
5277
  }
5270
5278
  },
5271
5279
  {
@@ -5325,7 +5333,7 @@
5325
5333
  "contentPaddingTop": "{palette.size.size0}",
5326
5334
  "expandDuration": "{palette.duration.duration300}",
5327
5335
  "icon": "{palette.icon.CaretDown}",
5328
- "iconColor": "{palette.color.purpleTelus}",
5336
+ "iconColor": "{palette.color.greenAccessible}",
5329
5337
  "iconGap": "{palette.size.size8}",
5330
5338
  "iconPosition": "{system.position.right}",
5331
5339
  "iconSize": "{palette.size.size24}",
@@ -5337,10 +5345,12 @@
5337
5345
  "appearances": {},
5338
5346
  "rules": [],
5339
5347
  "tokens": {
5348
+ "animationDuration": "{system.integer.2000}",
5340
5349
  "baseWidth": "{palette.size.size40}",
5341
5350
  "characters": "{palette.size.size10}",
5342
5351
  "color": "{palette.color.greyCloud}",
5343
5352
  "radius": "{system.radius.round}",
5353
+ "secondColor": "{palette.color.greyMystic}",
5344
5354
  "size": "{palette.size.size3}",
5345
5355
  "spaceBetweenLines": "{palette.size.size2}",
5346
5356
  "squareRadius": "{palette.radius.radius4}"