@telus-uds/theme-koodo 4.6.0 → 4.7.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 Wed, 21 Jun 2023 20:31:39 GMT
4
+ * Generated on Wed, 28 Jun 2023 23:15:25 GMT
5
5
  *
6
6
  */
7
7
 
@@ -979,7 +979,10 @@ module.exports = {
979
979
  type: 'variant',
980
980
  values: [ 'alternative', 'subtle', 'grid', 'feature' ]
981
981
  },
982
- padding: { type: 'variant', values: [ 'custom' ] },
982
+ padding: {
983
+ type: 'variant',
984
+ values: [ 'narrow', 'intermediate', 'compact', 'custom' ]
985
+ },
983
986
  viewport: {
984
987
  description: 'The size label for the current screen viewport based on the current screen width',
985
988
  type: 'state',
@@ -989,19 +992,27 @@ module.exports = {
989
992
  rules: [
990
993
  {
991
994
  if: { background: 'alternative' },
992
- tokens: { backgroundColor: '#e5f7fb' }
995
+ tokens: {
996
+ backgroundColor: '#e5f7fb',
997
+ borderRadius: 0,
998
+ borderWidth: 0
999
+ }
993
1000
  },
994
1001
  {
995
1002
  if: { background: 'subtle' },
996
- tokens: { backgroundColor: '#fae6f4', borderRadius: 8 }
1003
+ tokens: { backgroundColor: '#fae6f4', borderWidth: 0 }
997
1004
  },
998
1005
  {
999
1006
  if: { background: 'grid' },
1000
- tokens: { borderColor: '#016b6a', borderRadius: 8, borderWidth: 1 }
1007
+ tokens: { borderColor: '#016b6a', borderWidth: 1 }
1001
1008
  },
1002
1009
  {
1003
1010
  if: { background: 'feature' },
1004
- tokens: { backgroundColor: '#f9f6a5' }
1011
+ tokens: {
1012
+ backgroundColor: '#f9f6a5',
1013
+ borderRadius: 0,
1014
+ borderWidth: 0
1015
+ }
1005
1016
  },
1006
1017
  {
1007
1018
  if: { viewport: [ 'md', 'lg', 'xl' ] },
@@ -1012,6 +1023,51 @@ module.exports = {
1012
1023
  paddingTop: 48
1013
1024
  }
1014
1025
  },
1026
+ {
1027
+ if: { padding: 'narrow' },
1028
+ tokens: {
1029
+ paddingBottom: 24,
1030
+ paddingLeft: 16,
1031
+ paddingRight: 16,
1032
+ paddingTop: 24
1033
+ }
1034
+ },
1035
+ {
1036
+ if: { padding: 'narrow', viewport: [ 'md', 'lg', 'xl' ] },
1037
+ tokens: {
1038
+ paddingBottom: 32,
1039
+ paddingLeft: 16,
1040
+ paddingRight: 16,
1041
+ paddingTop: 32
1042
+ }
1043
+ },
1044
+ {
1045
+ if: { padding: 'intermediate' },
1046
+ tokens: {
1047
+ paddingBottom: 24,
1048
+ paddingLeft: 24,
1049
+ paddingRight: 24,
1050
+ paddingTop: 24
1051
+ }
1052
+ },
1053
+ {
1054
+ if: { padding: 'intermediate', viewport: [ 'md', 'lg', 'xl' ] },
1055
+ tokens: {
1056
+ paddingBottom: 32,
1057
+ paddingLeft: 32,
1058
+ paddingRight: 32,
1059
+ paddingTop: 32
1060
+ }
1061
+ },
1062
+ {
1063
+ if: { padding: 'compact' },
1064
+ tokens: {
1065
+ paddingBottom: 16,
1066
+ paddingLeft: 16,
1067
+ paddingRight: 16,
1068
+ paddingTop: 16
1069
+ }
1070
+ },
1015
1071
  {
1016
1072
  if: { padding: 'custom' },
1017
1073
  tokens: {
@@ -1032,6 +1088,7 @@ module.exports = {
1032
1088
  contentFlexShrink: 1,
1033
1089
  contentJustifyContent: 'flex-start',
1034
1090
  flex: 1,
1091
+ gradient: null,
1035
1092
  minWidth: null,
1036
1093
  paddingBottom: 32,
1037
1094
  paddingLeft: 24,
@@ -1544,7 +1601,6 @@ module.exports = {
1544
1601
  {
1545
1602
  if: { mini: true },
1546
1603
  tokens: {
1547
- backgroundColor: 'rgba(0, 0, 0, 0)',
1548
1604
  borderColor: 'rgba(0, 0, 0, 0)',
1549
1605
  borderWidth: 0,
1550
1606
  icon: PaletteIconChevronDown,
@@ -1592,34 +1648,65 @@ module.exports = {
1592
1648
  ExpandCollapseMini: { appearances: {}, rules: [], tokens: { borderWidth: 0 } },
1593
1649
  ExpandCollapseMiniControl: {
1594
1650
  appearances: {
1651
+ alternative: {
1652
+ description: 'Replaces the default green colour with black',
1653
+ type: 'variant',
1654
+ values: [ true ]
1655
+ },
1595
1656
  expanded: {
1596
1657
  description: 'Applies when an ExpandCollapse panel is open and the content inside is visible',
1597
1658
  type: 'state',
1598
1659
  values: [ true ]
1599
- }
1660
+ },
1661
+ inverse: {
1662
+ description: 'Replaces the default green colour with white. Useful for dark backgrounds.',
1663
+ type: 'variant',
1664
+ values: [ true ]
1665
+ },
1666
+ size: { type: 'variant', values: [ 'micro', 'small', 'large' ] }
1600
1667
  },
1601
1668
  rules: [
1602
1669
  {
1603
1670
  if: { expanded: true },
1604
1671
  tokens: { icon: PaletteIconChevronUp }
1672
+ },
1673
+ { if: { alternative: true }, tokens: { color: '#000000' } },
1674
+ {
1675
+ if: { inverse: true },
1676
+ tokens: { color: '#ffffff', iconColor: '#ffffff' }
1677
+ },
1678
+ {
1679
+ if: { size: 'micro' },
1680
+ tokens: { fontSize: 12, iconSize: 16, lineHeight: 1.33333333333 }
1681
+ },
1682
+ {
1683
+ if: { size: 'small' },
1684
+ tokens: { fontSize: 14, iconSize: 20, lineHeight: 1.45 }
1685
+ },
1686
+ {
1687
+ if: { size: 'large' },
1688
+ tokens: { fontSize: 20, lineHeight: 1.45 }
1605
1689
  }
1606
1690
  ],
1607
1691
  tokens: {
1608
- backgroundColor: null,
1609
1692
  borderColor: 'rgba(0, 0, 0, 0)',
1610
1693
  borderWidth: 0,
1694
+ color: '#016b6a',
1695
+ fontSize: 16,
1611
1696
  icon: PaletteIconChevronDown,
1612
1697
  iconColor: '#000000',
1613
1698
  iconGap: 8,
1614
1699
  iconPaddingTop: 4,
1615
1700
  iconPosition: 'left',
1616
- iconSize: 16,
1701
+ iconSize: 24,
1617
1702
  justifyContent: 'flex-start',
1703
+ lineHeight: 1.45,
1618
1704
  paddingBottom: 0,
1619
1705
  paddingLeft: 0,
1620
1706
  paddingRight: 0,
1621
1707
  paddingTop: 0,
1622
1708
  size: 4,
1709
+ textLine: 'none',
1623
1710
  verticalAlign: 'middle'
1624
1711
  }
1625
1712
  },
@@ -5263,11 +5350,11 @@ module.exports = {
5263
5350
  },
5264
5351
  {
5265
5352
  if: { hover: true, selected: true },
5266
- tokens: { backgroundColor: '#bbeaf5' }
5353
+ tokens: { backgroundColor: '#bbeaf5', switchColor: '#1b4746' }
5267
5354
  },
5268
5355
  {
5269
5356
  if: { pressed: true, selected: true },
5270
- tokens: { backgroundColor: '#c3efff' }
5357
+ tokens: { backgroundColor: '#b5b4b4', switchColor: '#505050' }
5271
5358
  },
5272
5359
  {
5273
5360
  if: { focus: true, selected: true },
@@ -5310,17 +5397,19 @@ module.exports = {
5310
5397
  labelFontSize: 16,
5311
5398
  labelFontWeight: '600',
5312
5399
  labelLineHeight: 1.5,
5313
- labelMarginLeft: 8,
5400
+ labelMarginLeft: 0,
5314
5401
  opacity: 1,
5315
5402
  outerBackgroundColor: 'rgba(0, 0, 0, 0)',
5316
5403
  outerBorderColor: 'rgba(0, 0, 0, 0)',
5317
5404
  outerBorderGap: 0,
5405
+ outerBorderGapButton: 4,
5318
5406
  outerBorderWidth: 0,
5319
5407
  paddingBottom: 0,
5320
5408
  paddingLeft: 0,
5321
5409
  paddingRight: 0,
5322
5410
  paddingTop: 0,
5323
5411
  shadow: null,
5412
+ space: 2,
5324
5413
  switchBorderColor: 'rgba(0, 0, 0, 0)',
5325
5414
  switchBorderRadius: 32,
5326
5415
  switchBorderWidth: 0,
@@ -5333,10 +5422,11 @@ module.exports = {
5333
5422
  offsetY: 2,
5334
5423
  spread: 0
5335
5424
  },
5336
- switchSize: 18,
5425
+ switchSize: 24,
5337
5426
  trackBorderColor: 'rgba(0, 0, 0, 0)',
5338
5427
  trackBorderRadius: 12,
5339
5428
  trackBorderWidth: 3,
5429
+ trackHeight: 20,
5340
5430
  width: 40
5341
5431
  }
5342
5432
  },
@@ -5870,5 +5960,5 @@ module.exports = {
5870
5960
  tokens: { size: 96 }
5871
5961
  }
5872
5962
  },
5873
- metadata: { name: 'theme-koodo', themeTokensVersion: '2.35.0' }
5963
+ metadata: { name: 'theme-koodo', themeTokensVersion: '2.36.0' }
5874
5964
  }
package/package.json CHANGED
@@ -6,7 +6,7 @@
6
6
  "description": "Koodo theme",
7
7
  "devDependencies": {
8
8
  "@telus-uds/palette-koodo": "^0.21.0",
9
- "@telus-uds/system-theme-tokens": "^2.35.0"
9
+ "@telus-uds/system-theme-tokens": "^2.36.0"
10
10
  },
11
11
  "files": [
12
12
  "build",
@@ -31,5 +31,5 @@
31
31
  "build": "UDS_PALETTE=@telus-uds/palette-koodo system-tokens-build-theme",
32
32
  "dev": "nodemon -w src -x 'npm run build'"
33
33
  },
34
- "version": "4.6.0"
34
+ "version": "4.7.0"
35
35
  }
package/theme.json CHANGED
@@ -1313,7 +1313,7 @@
1313
1313
  },
1314
1314
  "padding": {
1315
1315
  "type": "variant",
1316
- "values": ["custom"]
1316
+ "values": ["narrow", "intermediate", "compact", "custom"]
1317
1317
  },
1318
1318
  "viewport": "{appearances.system.viewport}"
1319
1319
  },
@@ -1323,7 +1323,9 @@
1323
1323
  "background": "alternative"
1324
1324
  },
1325
1325
  "tokens": {
1326
- "backgroundColor": "{palette.color.icicle}"
1326
+ "backgroundColor": "{palette.color.icicle}",
1327
+ "borderRadius": "{palette.radius.none}",
1328
+ "borderWidth": "{palette.border.none}"
1327
1329
  }
1328
1330
  },
1329
1331
  {
@@ -1332,7 +1334,7 @@
1332
1334
  },
1333
1335
  "tokens": {
1334
1336
  "backgroundColor": "{palette.color.carouselPink}",
1335
- "borderRadius": "{palette.radius.radius8}"
1337
+ "borderWidth": "{palette.border.none}"
1336
1338
  }
1337
1339
  },
1338
1340
  {
@@ -1341,7 +1343,6 @@
1341
1343
  },
1342
1344
  "tokens": {
1343
1345
  "borderColor": "{palette.color.mosque}",
1344
- "borderRadius": "{palette.radius.radius8}",
1345
1346
  "borderWidth": "{palette.border.border1}"
1346
1347
  }
1347
1348
  },
@@ -1350,7 +1351,9 @@
1350
1351
  "background": "feature"
1351
1352
  },
1352
1353
  "tokens": {
1353
- "backgroundColor": "{palette.color.texas}"
1354
+ "backgroundColor": "{palette.color.texas}",
1355
+ "borderRadius": "{palette.radius.none}",
1356
+ "borderWidth": "{palette.border.none}"
1354
1357
  }
1355
1358
  },
1356
1359
  {
@@ -1364,6 +1367,63 @@
1364
1367
  "paddingTop": "{palette.size.size48}"
1365
1368
  }
1366
1369
  },
1370
+ {
1371
+ "if": {
1372
+ "padding": "narrow"
1373
+ },
1374
+ "tokens": {
1375
+ "paddingBottom": "{palette.size.size24}",
1376
+ "paddingLeft": "{palette.size.size16}",
1377
+ "paddingRight": "{palette.size.size16}",
1378
+ "paddingTop": "{palette.size.size24}"
1379
+ }
1380
+ },
1381
+ {
1382
+ "if": {
1383
+ "padding": "narrow",
1384
+ "viewport": ["md", "lg", "xl"]
1385
+ },
1386
+ "tokens": {
1387
+ "paddingBottom": "{palette.size.size32}",
1388
+ "paddingLeft": "{palette.size.size16}",
1389
+ "paddingRight": "{palette.size.size16}",
1390
+ "paddingTop": "{palette.size.size32}"
1391
+ }
1392
+ },
1393
+ {
1394
+ "if": {
1395
+ "padding": "intermediate"
1396
+ },
1397
+ "tokens": {
1398
+ "paddingBottom": "{palette.size.size24}",
1399
+ "paddingLeft": "{palette.size.size24}",
1400
+ "paddingRight": "{palette.size.size24}",
1401
+ "paddingTop": "{palette.size.size24}"
1402
+ }
1403
+ },
1404
+ {
1405
+ "if": {
1406
+ "padding": "intermediate",
1407
+ "viewport": ["md", "lg", "xl"]
1408
+ },
1409
+ "tokens": {
1410
+ "paddingBottom": "{palette.size.size32}",
1411
+ "paddingLeft": "{palette.size.size32}",
1412
+ "paddingRight": "{palette.size.size32}",
1413
+ "paddingTop": "{palette.size.size32}"
1414
+ }
1415
+ },
1416
+ {
1417
+ "if": {
1418
+ "padding": "compact"
1419
+ },
1420
+ "tokens": {
1421
+ "paddingBottom": "{palette.size.size16}",
1422
+ "paddingLeft": "{palette.size.size16}",
1423
+ "paddingRight": "{palette.size.size16}",
1424
+ "paddingTop": "{palette.size.size16}"
1425
+ }
1426
+ },
1367
1427
  {
1368
1428
  "if": {
1369
1429
  "padding": "custom"
@@ -1386,6 +1446,7 @@
1386
1446
  "contentFlexShrink": "{system.integer.1}",
1387
1447
  "contentJustifyContent": "{system.flexJustifyContent.flexStart}",
1388
1448
  "flex": "{system.integer.1}",
1449
+ "gradient": "{system.gradient.none}",
1389
1450
  "minWidth": "{system.size.none}",
1390
1451
  "paddingBottom": "{palette.size.size32}",
1391
1452
  "paddingLeft": "{palette.size.size24}",
@@ -2063,7 +2124,6 @@
2063
2124
  "mini": true
2064
2125
  },
2065
2126
  "tokens": {
2066
- "backgroundColor": "{palette.color.transparent}",
2067
2127
  "borderColor": "{palette.color.transparent}",
2068
2128
  "borderWidth": "{system.border.zero}",
2069
2129
  "icon": "{palette.icon.ChevronDown}",
@@ -2121,7 +2181,21 @@
2121
2181
  },
2122
2182
  "ExpandCollapseMiniControl": {
2123
2183
  "appearances": {
2124
- "expanded": "{appearances.ExpandCollapseControl.expanded}"
2184
+ "alternative": {
2185
+ "description": "Replaces the default green colour with black",
2186
+ "type": "variant",
2187
+ "values": [true]
2188
+ },
2189
+ "expanded": "{appearances.ExpandCollapseControl.expanded}",
2190
+ "inverse": {
2191
+ "description": "Replaces the default green colour with white. Useful for dark backgrounds.",
2192
+ "type": "variant",
2193
+ "values": [true]
2194
+ },
2195
+ "size": {
2196
+ "type": "variant",
2197
+ "values": ["micro", "small", "large"]
2198
+ }
2125
2199
  },
2126
2200
  "rules": [
2127
2201
  {
@@ -2131,24 +2205,73 @@
2131
2205
  "tokens": {
2132
2206
  "icon": "{palette.icon.ChevronUp}"
2133
2207
  }
2208
+ },
2209
+ {
2210
+ "if": {
2211
+ "alternative": true
2212
+ },
2213
+ "tokens": {
2214
+ "color": "{palette.color.black}"
2215
+ }
2216
+ },
2217
+ {
2218
+ "if": {
2219
+ "inverse": true
2220
+ },
2221
+ "tokens": {
2222
+ "color": "{palette.color.white}",
2223
+ "iconColor": "{palette.color.white}"
2224
+ }
2225
+ },
2226
+ {
2227
+ "if": {
2228
+ "size": "micro"
2229
+ },
2230
+ "tokens": {
2231
+ "fontSize": "{palette.fontSize.size12}",
2232
+ "iconSize": "{palette.size.size16}",
2233
+ "lineHeight": "{palette.lineHeight.ratio4to3}"
2234
+ }
2235
+ },
2236
+ {
2237
+ "if": {
2238
+ "size": "small"
2239
+ },
2240
+ "tokens": {
2241
+ "fontSize": "{palette.fontSize.size14}",
2242
+ "iconSize": "{palette.size.size20}",
2243
+ "lineHeight": "{palette.lineHeight.ratio14to1}"
2244
+ }
2245
+ },
2246
+ {
2247
+ "if": {
2248
+ "size": "large"
2249
+ },
2250
+ "tokens": {
2251
+ "fontSize": "{palette.fontSize.size20}",
2252
+ "lineHeight": "{palette.lineHeight.ratio8to5}"
2253
+ }
2134
2254
  }
2135
2255
  ],
2136
2256
  "tokens": {
2137
- "backgroundColor": "{system.color.none}",
2138
2257
  "borderColor": "{palette.color.transparent}",
2139
2258
  "borderWidth": "{system.border.zero}",
2259
+ "color": "{palette.color.mosque}",
2260
+ "fontSize": "{palette.fontSize.size16}",
2140
2261
  "icon": "{palette.icon.ChevronDown}",
2141
2262
  "iconColor": "{palette.color.black}",
2142
2263
  "iconGap": "{palette.size.size8}",
2143
2264
  "iconPaddingTop": "{palette.size.size4}",
2144
2265
  "iconPosition": "{system.position.left}",
2145
- "iconSize": "{palette.size.size16}",
2266
+ "iconSize": "{palette.size.size24}",
2146
2267
  "justifyContent": "{system.flexJustifyContent.flexStart}",
2268
+ "lineHeight": "{palette.lineHeight.ratio14to1}",
2147
2269
  "paddingBottom": "{palette.size.size0}",
2148
2270
  "paddingLeft": "{palette.size.size0}",
2149
2271
  "paddingRight": "{palette.size.size0}",
2150
2272
  "paddingTop": "{palette.size.size0}",
2151
2273
  "size": "{palette.size.size4}",
2274
+ "textLine": "{system.textLine.none}",
2152
2275
  "verticalAlign": "{system.verticalAlign.middle}"
2153
2276
  }
2154
2277
  },
@@ -6362,7 +6485,8 @@
6362
6485
  "selected": true
6363
6486
  },
6364
6487
  "tokens": {
6365
- "backgroundColor": "{palette.color.icicleDark}"
6488
+ "backgroundColor": "{palette.color.icicleDark}",
6489
+ "switchColor": "{palette.color.mosqueDark}"
6366
6490
  }
6367
6491
  },
6368
6492
  {
@@ -6371,7 +6495,8 @@
6371
6495
  "selected": true
6372
6496
  },
6373
6497
  "tokens": {
6374
- "backgroundColor": "{palette.color.onahau}"
6498
+ "backgroundColor": "{palette.color.silverDark}",
6499
+ "switchColor": "{palette.color.mortarDark}"
6375
6500
  }
6376
6501
  },
6377
6502
  {
@@ -6432,26 +6557,29 @@
6432
6557
  "labelFontSize": "{palette.fontSize.size16}",
6433
6558
  "labelFontWeight": "{palette.fontWeight.weight600}",
6434
6559
  "labelLineHeight": "{palette.lineHeight.multiply150}",
6435
- "labelMarginLeft": "{palette.size.size8}",
6560
+ "labelMarginLeft": "{palette.size.size0}",
6436
6561
  "opacity": "{system.opacity.opaque}",
6437
6562
  "outerBackgroundColor": "{palette.color.transparent}",
6438
6563
  "outerBorderColor": "{palette.color.transparent}",
6439
6564
  "outerBorderGap": "{palette.size.size0}",
6565
+ "outerBorderGapButton": "{palette.size.size4}",
6440
6566
  "outerBorderWidth": "{palette.border.none}",
6441
6567
  "paddingBottom": "{system.size.zero}",
6442
6568
  "paddingLeft": "{system.size.zero}",
6443
6569
  "paddingRight": "{system.size.zero}",
6444
6570
  "paddingTop": "{system.size.zero}",
6445
6571
  "shadow": "{system.shadow.none}",
6572
+ "space": "{system.integer.2}",
6446
6573
  "switchBorderColor": "{palette.color.transparent}",
6447
6574
  "switchBorderRadius": "{palette.radius.pill32}",
6448
6575
  "switchBorderWidth": "{palette.border.none}",
6449
6576
  "switchColor": "{palette.color.mortar}",
6450
6577
  "switchShadow": "{palette.shadow.surfaceRaised}",
6451
- "switchSize": "{palette.size.size18}",
6578
+ "switchSize": "{palette.size.size24}",
6452
6579
  "trackBorderColor": "{palette.color.transparent}",
6453
6580
  "trackBorderRadius": "{palette.radius.radius12}",
6454
6581
  "trackBorderWidth": "{palette.border.border3}",
6582
+ "trackHeight": "{palette.size.size20}",
6455
6583
  "width": "{palette.size.size40}"
6456
6584
  }
6457
6585
  },