@telus-uds/theme-allium 3.5.0 → 3.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/theme.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  *
3
3
  * Do not edit directly
4
- * Generated on Fri, 12 Aug 2022 20:14:39 GMT
4
+ * Generated on Tue, 23 Aug 2022 19:30:18 GMT
5
5
  *
6
6
  */
7
7
 
@@ -238,6 +238,9 @@ module.exports = {
238
238
  fontName: 'HelveticaNow',
239
239
  fontSize: 16,
240
240
  fontWeight: '700',
241
+ icon: null,
242
+ iconSize: 24,
243
+ iconSpace: 2,
241
244
  lineHeight: 1.5,
242
245
  minWidth: 144,
243
246
  opacity: 1,
@@ -382,7 +385,10 @@ module.exports = {
382
385
  },
383
386
  Card: {
384
387
  appearances: {
385
- background: { type: 'variant', values: [ 'alternative' ] },
388
+ background: {
389
+ type: 'variant',
390
+ values: [ 'alternative', 'subtle', 'grid' ]
391
+ },
386
392
  padding: {
387
393
  type: 'variant',
388
394
  values: [ 'narrow', 'intermediate', 'compact', 'custom' ]
@@ -398,6 +404,14 @@ module.exports = {
398
404
  if: { background: 'alternative' },
399
405
  tokens: { backgroundColor: '#f4f4f7' }
400
406
  },
407
+ {
408
+ if: { background: 'subtle' },
409
+ tokens: { backgroundColor: '#fafafa' }
410
+ },
411
+ {
412
+ if: { background: 'grid' },
413
+ tokens: { backgroundColor: '#fafafa', borderWidth: 0 }
414
+ },
401
415
  {
402
416
  if: { viewport: [ 'md', 'lg', 'xl' ] },
403
417
  tokens: {
@@ -1294,6 +1308,11 @@ module.exports = {
1294
1308
  description: 'The size label for the current screen viewport based on the current screen width',
1295
1309
  type: 'state',
1296
1310
  values: [ 'xs', 'sm', 'md', 'lg', 'xl' ]
1311
+ },
1312
+ width: {
1313
+ description: 'The width of the modal',
1314
+ type: 'state',
1315
+ values: [ 's', 'm', 'l', 'xl' ]
1297
1316
  }
1298
1317
  },
1299
1318
  rules: [
@@ -1310,11 +1329,59 @@ module.exports = {
1310
1329
  }
1311
1330
  },
1312
1331
  {
1313
- if: { maxWidth: true, viewport: [ 'md', 'lg', 'xl' ] },
1332
+ if: { viewport: [ 'md', 'lg', 'xl' ], width: 's' },
1333
+ tokens: {
1334
+ containerPaddingBottom: 32,
1335
+ containerPaddingTop: 32,
1336
+ maxWidth: 320
1337
+ }
1338
+ },
1339
+ {
1340
+ if: { viewport: [ 'md', 'lg', 'xl' ], width: 'm' },
1341
+ tokens: {
1342
+ containerPaddingBottom: 32,
1343
+ containerPaddingTop: 32,
1344
+ maxWidth: 480
1345
+ }
1346
+ },
1347
+ {
1348
+ if: { viewport: [ 'lg', 'xl' ], width: 'l' },
1349
+ tokens: {
1350
+ containerPaddingBottom: 32,
1351
+ containerPaddingTop: 32,
1352
+ maxWidth: 630
1353
+ }
1354
+ },
1355
+ {
1356
+ if: { viewport: 'xl', width: 'xl' },
1357
+ tokens: {
1358
+ containerPaddingBottom: 32,
1359
+ containerPaddingTop: 32,
1360
+ maxWidth: 768
1361
+ }
1362
+ },
1363
+ {
1364
+ if: { maxWidth: true, viewport: 'md' },
1365
+ tokens: {
1366
+ containerPaddingLeft: 16,
1367
+ containerPaddingRight: 16,
1368
+ maxWidth: 480
1369
+ }
1370
+ },
1371
+ {
1372
+ if: { maxWidth: true, viewport: 'lg' },
1373
+ tokens: {
1374
+ containerPaddingLeft: 16,
1375
+ containerPaddingRight: 16,
1376
+ maxWidth: 630
1377
+ }
1378
+ },
1379
+ {
1380
+ if: { maxWidth: true, viewport: 'xl' },
1314
1381
  tokens: {
1315
1382
  containerPaddingLeft: 16,
1316
1383
  containerPaddingRight: 16,
1317
- maxWidth: '66.67%'
1384
+ maxWidth: 768
1318
1385
  }
1319
1386
  }
1320
1387
  ],
@@ -3242,5 +3309,5 @@ module.exports = {
3242
3309
  tokens: { size: 96 }
3243
3310
  }
3244
3311
  },
3245
- metadata: { name: 'theme-allium', themeTokensVersion: '2.2.0' }
3312
+ metadata: { name: 'theme-allium', themeTokensVersion: '2.4.0' }
3246
3313
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@telus-uds/theme-allium",
3
- "version": "3.5.0",
3
+ "version": "3.7.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/theme.js",
9
9
  "dependencies": {},
10
10
  "devDependencies": {
11
- "@telus-uds/palette-allium": "^2.4.0",
12
- "@telus-uds/system-theme-tokens": "^2.2.0",
11
+ "@telus-uds/palette-allium": "^2.5.0",
12
+ "@telus-uds/system-theme-tokens": "^2.4.0",
13
13
  "@telus-uds/system-tokens": "^0.1.5"
14
14
  },
15
15
  "peerDependencies": {
16
- "@telus-uds/palette-allium": "^2.4.0"
16
+ "@telus-uds/palette-allium": "^2.5.0"
17
17
  },
18
18
  "files": [
19
19
  "build",
package/theme.json CHANGED
@@ -357,6 +357,9 @@
357
357
  "fontName": "{palette.fontName.HelveticaNow}",
358
358
  "fontSize": "{palette.fontSize.size16}",
359
359
  "fontWeight": "{palette.fontWeight.weight700}",
360
+ "icon": "{system.icon.none}",
361
+ "iconSize": "{palette.size.size24}",
362
+ "iconSpace": "{system.integer.2}",
360
363
  "lineHeight": "{palette.lineHeight.ratio3to2}",
361
364
  "minWidth": "{palette.size.size144}",
362
365
  "opacity": "{system.opacity.opaque}",
@@ -524,7 +527,7 @@
524
527
  "appearances": {
525
528
  "background": {
526
529
  "type": "variant",
527
- "values": ["alternative"]
530
+ "values": ["alternative", "subtle", "grid"]
528
531
  },
529
532
  "padding": {
530
533
  "type": "variant",
@@ -541,6 +544,23 @@
541
544
  "backgroundColor": "{palette.color.greyAthens}"
542
545
  }
543
546
  },
547
+ {
548
+ "if": {
549
+ "background": "subtle"
550
+ },
551
+ "tokens": {
552
+ "backgroundColor": "{palette.color.greyAlabaster}"
553
+ }
554
+ },
555
+ {
556
+ "if": {
557
+ "background": "grid"
558
+ },
559
+ "tokens": {
560
+ "backgroundColor": "{palette.color.greyAlabaster}",
561
+ "borderWidth": "{palette.border.none}"
562
+ }
563
+ },
544
564
  {
545
565
  "if": {
546
566
  "viewport": ["md", "lg", "xl"]
@@ -1754,7 +1774,8 @@
1754
1774
  "Modal": {
1755
1775
  "appearances": {
1756
1776
  "maxWidth": "{appearances.Modal.maxWidth}",
1757
- "viewport": "{appearances.system.viewport}"
1777
+ "viewport": "{appearances.system.viewport}",
1778
+ "width": "{appearances.Modal.width}"
1758
1779
  },
1759
1780
  "rules": [
1760
1781
  {
@@ -1772,18 +1793,84 @@
1772
1793
  "tokens": {
1773
1794
  "containerPaddingBottom": "{palette.size.size32}",
1774
1795
  "containerPaddingTop": "{palette.size.size32}",
1775
- "maxWidth": "{system.size.viewportSm}"
1796
+ "maxWidth": "{palette.size.size576}"
1797
+ }
1798
+ },
1799
+ {
1800
+ "if": {
1801
+ "viewport": ["md", "lg", "xl"],
1802
+ "width": "s"
1803
+ },
1804
+ "tokens": {
1805
+ "containerPaddingBottom": "{palette.size.size32}",
1806
+ "containerPaddingTop": "{palette.size.size32}",
1807
+ "maxWidth": "{palette.size.size320}"
1808
+ }
1809
+ },
1810
+ {
1811
+ "if": {
1812
+ "viewport": ["md", "lg", "xl"],
1813
+ "width": "m"
1814
+ },
1815
+ "tokens": {
1816
+ "containerPaddingBottom": "{palette.size.size32}",
1817
+ "containerPaddingTop": "{palette.size.size32}",
1818
+ "maxWidth": "{palette.size.size480}"
1819
+ }
1820
+ },
1821
+ {
1822
+ "if": {
1823
+ "viewport": ["lg", "xl"],
1824
+ "width": "l"
1825
+ },
1826
+ "tokens": {
1827
+ "containerPaddingBottom": "{palette.size.size32}",
1828
+ "containerPaddingTop": "{palette.size.size32}",
1829
+ "maxWidth": "{palette.size.size630}"
1830
+ }
1831
+ },
1832
+ {
1833
+ "if": {
1834
+ "viewport": "xl",
1835
+ "width": "xl"
1836
+ },
1837
+ "tokens": {
1838
+ "containerPaddingBottom": "{palette.size.size32}",
1839
+ "containerPaddingTop": "{palette.size.size32}",
1840
+ "maxWidth": "{palette.size.size768}"
1776
1841
  }
1777
1842
  },
1778
1843
  {
1779
1844
  "if": {
1780
1845
  "maxWidth": true,
1781
- "viewport": ["md", "lg", "xl"]
1846
+ "viewport": "md"
1847
+ },
1848
+ "tokens": {
1849
+ "containerPaddingLeft": "{palette.size.size16}",
1850
+ "containerPaddingRight": "{palette.size.size16}",
1851
+ "maxWidth": "{palette.size.size480}"
1852
+ }
1853
+ },
1854
+ {
1855
+ "if": {
1856
+ "maxWidth": true,
1857
+ "viewport": "lg"
1858
+ },
1859
+ "tokens": {
1860
+ "containerPaddingLeft": "{palette.size.size16}",
1861
+ "containerPaddingRight": "{palette.size.size16}",
1862
+ "maxWidth": "{palette.size.size630}"
1863
+ }
1864
+ },
1865
+ {
1866
+ "if": {
1867
+ "maxWidth": true,
1868
+ "viewport": "xl"
1782
1869
  },
1783
1870
  "tokens": {
1784
1871
  "containerPaddingLeft": "{palette.size.size16}",
1785
1872
  "containerPaddingRight": "{palette.size.size16}",
1786
- "maxWidth": "{system.size.twoThirds}"
1873
+ "maxWidth": "{palette.size.size768}"
1787
1874
  }
1788
1875
  }
1789
1876
  ],