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