@telus-uds/theme-koodo 3.14.0 → 3.15.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 Mon, 20 Mar 2023 19:40:47 GMT
4
+ * Generated on Thu, 23 Mar 2023 20:44:34 GMT
5
5
  *
6
6
  */
7
7
 
@@ -11,8 +11,9 @@ const PaletteIconChevronRight = require('@telus-uds/palette-koodo/build/rn/icons
11
11
  const PaletteIconChevronLeft = require('@telus-uds/palette-koodo/build/rn/icons/ChevronLeft')
12
12
  const PaletteIconCheck = require('@telus-uds/palette-koodo/build/rn/icons/Check')
13
13
  const PaletteIconCheckCircledFilled = require('@telus-uds/palette-koodo/build/rn/icons/CheckCircledFilled')
14
- const PaletteIconExclamationTriangle = require('@telus-uds/palette-koodo/build/rn/icons/ExclamationTriangle')
14
+ const PaletteIconCaution = require('@telus-uds/palette-koodo/build/rn/icons/Caution')
15
15
  const PaletteIconTimes = require('@telus-uds/palette-koodo/build/rn/icons/Times')
16
+ const PaletteIconExclamationTriangle = require('@telus-uds/palette-koodo/build/rn/icons/ExclamationTriangle')
16
17
  const PaletteIconExclamationOctagon = require('@telus-uds/palette-koodo/build/rn/icons/ExclamationOctagon')
17
18
  const PaletteIconSpyglass = require('@telus-uds/palette-koodo/build/rn/icons/Spyglass')
18
19
  const PaletteIconCheckCircledNotFilled = require('@telus-uds/palette-koodo/build/rn/icons/CheckCircledNotFilled')
@@ -33,6 +34,74 @@ module.exports = {
33
34
  rules: [ { if: { size: 'large' }, tokens: { size: 48, thickness: 4 } } ],
34
35
  tokens: { color: '#016b6a', size: 40, thickness: 4 }
35
36
  },
37
+ Badge: {
38
+ appearances: {
39
+ alternative: { type: 'variant', values: [ true ] },
40
+ outline: { type: 'variant', values: [ true ] },
41
+ purpose: { type: 'variant', values: [ 'offer', 'editorial' ] }
42
+ },
43
+ rules: [
44
+ {
45
+ if: { outline: true },
46
+ tokens: {
47
+ backgroundColor: 'rgba(0, 0, 0, 0)',
48
+ borderColor: '#fae6f4'
49
+ }
50
+ },
51
+ {
52
+ if: { alternative: true },
53
+ tokens: {
54
+ backgroundColor: 'rgba(0, 0, 0, 0)',
55
+ borderColor: '#016b6a',
56
+ color: '#016b6a',
57
+ paddingBottom: 8,
58
+ paddingTop: 8
59
+ }
60
+ },
61
+ {
62
+ if: { purpose: 'offer' },
63
+ tokens: {
64
+ backgroundColor: '#c3efff',
65
+ color: '#000000',
66
+ paddingBottom: 8,
67
+ paddingTop: 8
68
+ }
69
+ },
70
+ {
71
+ if: { purpose: 'editorial' },
72
+ tokens: { backgroundColor: '#000000', color: '#ffffff' }
73
+ },
74
+ {
75
+ if: { outline: true, purpose: 'editorial' },
76
+ tokens: {
77
+ backgroundColor: 'rgba(0, 0, 0, 0)',
78
+ borderColor: '#000000',
79
+ color: '#000000'
80
+ }
81
+ },
82
+ {
83
+ if: { outline: true, purpose: 'offer' },
84
+ tokens: {
85
+ backgroundColor: 'rgba(0, 0, 0, 0)',
86
+ borderColor: '#c3efff'
87
+ }
88
+ }
89
+ ],
90
+ tokens: {
91
+ backgroundColor: '#fae6f4',
92
+ borderColor: 'rgba(0, 0, 0, 0)',
93
+ borderRadius: 32,
94
+ borderWidth: 2,
95
+ color: '#7c1366',
96
+ fontName: 'StagSans',
97
+ fontWeight: '600',
98
+ gradient: null,
99
+ paddingBottom: 2,
100
+ paddingLeft: 16,
101
+ paddingRight: 16,
102
+ paddingTop: 2
103
+ }
104
+ },
36
105
  Box: {
37
106
  appearances: {
38
107
  background: {
@@ -778,7 +847,7 @@ module.exports = {
778
847
  icon: PaletteIconCheck,
779
848
  iconBackgroundColor: '#ffffff',
780
849
  iconColor: '#016b6a',
781
- iconSize: 16,
850
+ iconSize: 20,
782
851
  inputBackgroundColor: '#ffffff',
783
852
  inputBorderColor: '#016b6a',
784
853
  inputBorderRadius: 0,
@@ -964,55 +1033,40 @@ module.exports = {
964
1033
  }
965
1034
  },
966
1035
  rules: [
967
- {
968
- if: { validation: 'success' },
969
- tokens: {
970
- backgroundColor: '#c1f2e8',
971
- borderColor: '#c1f2e8',
972
- color: '#258b0b'
973
- }
974
- },
975
1036
  {
976
1037
  if: { validation: 'error' },
977
- tokens: {
978
- backgroundColor: '#fae6f4',
979
- borderColor: '#fae6f4',
980
- color: '#df3d0c'
981
- }
1038
+ tokens: { backgroundColor: '#f8dde3' }
982
1039
  },
983
1040
  {
984
1041
  if: { icon: true, validation: 'success' },
985
1042
  tokens: {
986
1043
  icon: PaletteIconCheckCircledFilled,
987
- iconColor: '#258b0b'
1044
+ iconColor: '#016b6a'
988
1045
  }
989
1046
  },
990
1047
  {
991
1048
  if: { icon: true, validation: 'error' },
992
- tokens: {
993
- icon: PaletteIconExclamationTriangle,
994
- iconColor: '#df3d0c'
995
- }
1049
+ tokens: { icon: PaletteIconCaution, iconColor: '#ee2c74' }
996
1050
  }
997
1051
  ],
998
1052
  tokens: {
999
- backgroundColor: '#efefef',
1000
- borderColor: '#c9c8c8',
1001
- borderRadius: 4,
1002
- borderWidth: 1,
1003
- color: '#595959',
1053
+ backgroundColor: '#e5f7fb',
1054
+ borderColor: 'rgba(0, 0, 0, 0)',
1055
+ borderRadius: 0,
1056
+ borderWidth: 0,
1057
+ color: '#000000',
1004
1058
  contentFontSize: 14,
1005
1059
  fontName: 'StagSans',
1006
1060
  fontWeight: '400',
1007
1061
  icon: null,
1008
1062
  iconColor: 'rgba(0, 0, 0, 0)',
1009
1063
  iconGap: 8,
1010
- iconSize: 24,
1064
+ iconSize: 20,
1011
1065
  lineHeight: 1.5,
1012
- paddingBottom: 10,
1066
+ paddingBottom: 12,
1013
1067
  paddingLeft: 16,
1014
1068
  paddingRight: 16,
1015
- paddingTop: 10,
1069
+ paddingTop: 12,
1016
1070
  space: 2,
1017
1071
  titleFontSize: 16
1018
1072
  }
@@ -1210,15 +1264,22 @@ module.exports = {
1210
1264
  gap: 8,
1211
1265
  hintColor: '#000000',
1212
1266
  hintFontName: 'StagSans',
1213
- hintFontSize: 16,
1267
+ hintFontSize: 14,
1214
1268
  hintFontWeight: '400',
1215
- hintLineHeight: 1.4,
1216
- lineHeight: 1.4
1269
+ hintLineHeight: 1.42857142857,
1270
+ lineHeight: 1.5
1217
1271
  }
1218
1272
  },
1219
1273
  InputSupports: { appearances: {}, rules: [], tokens: { space: 1 } },
1220
1274
  Link: {
1221
1275
  appearances: {
1276
+ alternative: { type: 'variant', values: [ true ] },
1277
+ focus: {
1278
+ 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.",
1279
+ platforms: [ 'rn' ],
1280
+ type: 'state',
1281
+ values: [ true ]
1282
+ },
1222
1283
  hover: {
1223
1284
  description: "Currently web only. Applies when an interactive component's hover handler is triggered, such as on mouseover.",
1224
1285
  platforms: [ 'rn' ],
@@ -1230,22 +1291,95 @@ module.exports = {
1230
1291
  type: 'state',
1231
1292
  values: [ 'left', 'right' ]
1232
1293
  },
1233
- rank: {
1234
- description: 'Prominence of the link.',
1294
+ inverse: { type: 'variant', values: [ true ] },
1295
+ pressed: {
1296
+ 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.',
1297
+ type: 'state',
1298
+ values: [ true ]
1299
+ },
1300
+ size: {
1301
+ description: 'Text sizes for block links; similar but not always identical to Typography sizes.',
1235
1302
  type: 'variant',
1236
- values: [ 'secondary' ]
1303
+ values: [ 'micro', 'small', 'large' ]
1237
1304
  }
1238
1305
  },
1239
1306
  rules: [
1240
1307
  { if: { iconPosition: 'left' }, tokens: { iconSpace: 2 } },
1308
+ {
1309
+ if: { focus: true },
1310
+ tokens: {
1311
+ color: '#016b6a',
1312
+ outerBorderColor: '#016b6a',
1313
+ outerBorderOutline: 'none'
1314
+ }
1315
+ },
1316
+ {
1317
+ if: { focus: true, pressed: true },
1318
+ tokens: { color: '#595959', outerBorderColor: '#595959' }
1319
+ },
1241
1320
  {
1242
1321
  if: { hover: true },
1243
1322
  tokens: { color: '#1b4746', textLine: 'none' }
1244
1323
  },
1245
- { if: { rank: 'secondary' }, tokens: { color: '#00a1db' } },
1246
1324
  {
1247
- if: { hover: true, rank: 'secondary' },
1248
- tokens: { color: '#0083b3' }
1325
+ if: { pressed: true },
1326
+ tokens: { color: '#595959', textLine: 'none' }
1327
+ },
1328
+ { if: { alternative: true }, tokens: { color: '#666666' } },
1329
+ {
1330
+ if: { alternative: true, focus: true },
1331
+ tokens: { color: '#666666', outerBorderColor: '#666666' }
1332
+ },
1333
+ {
1334
+ if: { alternative: true, focus: true, pressed: true },
1335
+ tokens: { color: '#595959', outerBorderColor: '#595959' }
1336
+ },
1337
+ {
1338
+ if: { alternative: true, hover: true },
1339
+ tokens: { color: '#5c5c5c' }
1340
+ },
1341
+ {
1342
+ if: { alternative: true, pressed: true },
1343
+ tokens: { color: '#595959' }
1344
+ },
1345
+ { if: { inverse: true }, tokens: { color: '#e5f7fb' } },
1346
+ {
1347
+ if: { focus: true, inverse: true },
1348
+ tokens: { color: '#e5f7fb', outerBorderColor: '#e5f7fb' }
1349
+ },
1350
+ {
1351
+ if: { focus: true, inverse: true, pressed: true },
1352
+ tokens: { color: '#c9c8c8', outerBorderColor: '#c9c8c8' }
1353
+ },
1354
+ {
1355
+ if: { hover: true, inverse: true },
1356
+ tokens: { color: '#bbeaf5' }
1357
+ },
1358
+ {
1359
+ if: { inverse: true, pressed: true },
1360
+ tokens: { color: '#c9c8c8' }
1361
+ },
1362
+ {
1363
+ if: { size: 'micro' },
1364
+ tokens: {
1365
+ blockFontName: 'StagSans',
1366
+ blockFontSize: 12,
1367
+ blockFontWeight: '600',
1368
+ blockLineHeight: 1.33333333333,
1369
+ iconSize: 16
1370
+ }
1371
+ },
1372
+ {
1373
+ if: { size: 'small' },
1374
+ tokens: {
1375
+ blockFontSize: 14,
1376
+ blockLineHeight: 1.42857142857,
1377
+ iconSize: 20
1378
+ }
1379
+ },
1380
+ {
1381
+ if: { size: 'large' },
1382
+ tokens: { blockFontSize: 20, blockLineHeight: 1.4, iconSize: 24 }
1249
1383
  }
1250
1384
  ],
1251
1385
  tokens: {
@@ -1262,9 +1396,9 @@ module.exports = {
1262
1396
  iconTranslateX: 0,
1263
1397
  iconTranslateY: 0,
1264
1398
  outerBorderColor: 'rgba(0, 0, 0, 0)',
1265
- outerBorderGap: 0,
1399
+ outerBorderGap: 2,
1266
1400
  outerBorderOutline: 'none',
1267
- outerBorderWidth: 0,
1401
+ outerBorderWidth: 2,
1268
1402
  textLine: 'underline',
1269
1403
  textLineStyle: 'solid'
1270
1404
  }
@@ -1741,39 +1875,36 @@ module.exports = {
1741
1875
  }
1742
1876
  },
1743
1877
  rules: [
1744
- {
1745
- if: { hover: true },
1746
- tokens: {
1747
- backgroundColor: '#1b4746',
1748
- borderColor: '#1b4746',
1749
- color: '#ffffff'
1750
- }
1751
- },
1878
+ { if: { hover: true }, tokens: { borderWidth: 3 } },
1752
1879
  {
1753
1880
  if: { pressed: true },
1754
1881
  tokens: {
1755
- backgroundColor: '#016b6a',
1756
- borderColor: '#016b6a',
1757
- color: '#ffffff'
1882
+ backgroundColor: '#c9c8c8',
1883
+ borderColor: '#666666',
1884
+ iconColor: '#666666'
1758
1885
  }
1759
1886
  },
1760
1887
  {
1761
1888
  if: { focus: true },
1762
- tokens: { outerBorderColor: '#016b6a' }
1889
+ tokens: { outerBorderColor: '#666666' }
1890
+ },
1891
+ {
1892
+ if: { focus: true, pressed: true },
1893
+ tokens: { borderWidth: 1, outerBorderColor: '#666666' }
1763
1894
  }
1764
1895
  ],
1765
1896
  tokens: {
1766
1897
  alignSelf: 'flex-start',
1767
- backgroundColor: '#016b6a',
1768
- borderColor: '#ffffff',
1769
- borderRadius: 4,
1770
- borderWidth: 0,
1771
- color: '#ffffff',
1898
+ backgroundColor: '#ffffff',
1899
+ borderColor: '#666666',
1900
+ borderRadius: 48,
1901
+ borderWidth: 1,
1902
+ color: '#666666',
1772
1903
  fontName: 'StagSans',
1773
1904
  fontSize: 16,
1774
1905
  fontWeight: '600',
1775
1906
  icon: null,
1776
- iconColor: '#ffffff',
1907
+ iconColor: '#016b6a',
1777
1908
  iconSize: 24,
1778
1909
  iconSpace: 2,
1779
1910
  lineHeight: 1.5,
@@ -1783,10 +1914,10 @@ module.exports = {
1783
1914
  outerBorderColor: '#ffffff',
1784
1915
  outerBorderGap: 2,
1785
1916
  outerBorderWidth: 2,
1786
- paddingBottom: 8,
1917
+ paddingBottom: 12,
1787
1918
  paddingLeft: 24,
1788
1919
  paddingRight: 24,
1789
- paddingTop: 8,
1920
+ paddingTop: 12,
1790
1921
  shadow: null,
1791
1922
  textAlign: 'center',
1792
1923
  width: null
@@ -1796,16 +1927,16 @@ module.exports = {
1796
1927
  appearances: {},
1797
1928
  rules: [],
1798
1929
  tokens: {
1799
- backgroundColor: '#f9f6a5',
1800
- borderColor: null,
1801
- borderRadius: 0,
1802
- borderWidth: 0,
1930
+ backgroundColor: '#ffffff',
1931
+ borderColor: '#c9c8c8',
1932
+ borderRadius: 8,
1933
+ borderWidth: 1,
1803
1934
  flex: 1,
1804
1935
  minWidth: null,
1805
- paddingBottom: 16,
1806
- paddingLeft: 16,
1807
- paddingRight: 16,
1808
- paddingTop: 16,
1936
+ paddingBottom: 8,
1937
+ paddingLeft: 12,
1938
+ paddingRight: 12,
1939
+ paddingTop: 8,
1809
1940
  shadow: null
1810
1941
  }
1811
1942
  },
@@ -1872,36 +2003,36 @@ module.exports = {
1872
2003
  }
1873
2004
  },
1874
2005
  rules: [
1875
- { if: { hover: true }, tokens: { backgroundColor: '#c1f2e8' } },
1876
- { if: { focus: true }, tokens: { backgroundColor: '#f9f6a5' } },
2006
+ { if: { hover: true }, tokens: { backgroundColor: '#efefef' } },
2007
+ { if: { focus: true }, tokens: { backgroundColor: '#efefef' } },
1877
2008
  {
1878
2009
  if: { pressed: true },
1879
- tokens: { backgroundColor: '#016b6a' }
2010
+ tokens: { backgroundColor: '#c9c8c8', itemIconColor: '#000000' }
1880
2011
  }
1881
2012
  ],
1882
2013
  tokens: {
1883
2014
  backgroundColor: null,
1884
2015
  dividerColor: '#c9c8c8',
1885
2016
  dividerSize: 1,
1886
- iconMarginTop: 4,
2017
+ iconMarginTop: 0,
1887
2018
  interItemMargin: null,
1888
2019
  interItemMarginWithDivider: null,
1889
2020
  itemBulletColor: '#7c1366',
1890
2021
  itemBulletContainerAlign: 'center',
1891
- itemBulletContainerWidth: 16,
1892
- itemBulletHeight: 4,
1893
- itemBulletWidth: 4,
2022
+ itemBulletContainerWidth: 0,
2023
+ itemBulletHeight: 0,
2024
+ itemBulletWidth: 0,
1894
2025
  itemFontName: 'StagSans',
1895
2026
  itemFontSize: 16,
1896
2027
  itemFontWeight: '600',
1897
- itemIconColor: '#7c1366',
1898
- itemIconSize: 16,
1899
- itemLineHeight: 1.3,
2028
+ itemIconColor: '#016b6a',
2029
+ itemIconSize: 24,
2030
+ itemLineHeight: 1.6,
1900
2031
  listGutter: 10,
1901
- paddingBottom: 8,
1902
- paddingLeft: 12,
1903
- paddingRight: 12,
1904
- paddingTop: 8
2032
+ paddingBottom: 12,
2033
+ paddingLeft: 4,
2034
+ paddingRight: 4,
2035
+ paddingTop: 12
1905
2036
  }
1906
2037
  },
1907
2038
  Radio: {
@@ -3342,5 +3473,5 @@ module.exports = {
3342
3473
  tokens: { size: 96 }
3343
3474
  }
3344
3475
  },
3345
- metadata: { name: 'theme-koodo', themeTokensVersion: '2.13.0' }
3476
+ metadata: { name: 'theme-koodo', themeTokensVersion: '2.14.0' }
3346
3477
  }
package/package.json CHANGED
@@ -5,8 +5,8 @@
5
5
  },
6
6
  "description": "Koodo theme",
7
7
  "devDependencies": {
8
- "@telus-uds/palette-koodo": "^0.6.0",
9
- "@telus-uds/system-theme-tokens": "^2.13.0"
8
+ "@telus-uds/palette-koodo": "^0.7.0",
9
+ "@telus-uds/system-theme-tokens": "^2.14.0"
10
10
  },
11
11
  "files": [
12
12
  "build",
@@ -20,7 +20,7 @@
20
20
  "main": "build/rn/theme.js",
21
21
  "name": "@telus-uds/theme-koodo",
22
22
  "peerDependencies": {
23
- "@telus-uds/palette-koodo": "^0.6.0"
23
+ "@telus-uds/palette-koodo": "^0.7.0"
24
24
  },
25
25
  "repository": {
26
26
  "type": "git",
@@ -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": "3.14.0"
34
+ "version": "3.15.0"
35
35
  }