@telus-uds/theme-allium 3.6.0 → 3.7.1

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 Wed, 17 Aug 2022 18:42:58 GMT
4
+ * Generated on Thu, 01 Sep 2022 15:38:22 GMT
5
5
  *
6
6
  */
7
7
 
@@ -1308,6 +1308,11 @@ module.exports = {
1308
1308
  description: 'The size label for the current screen viewport based on the current screen width',
1309
1309
  type: 'state',
1310
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' ]
1311
1316
  }
1312
1317
  },
1313
1318
  rules: [
@@ -1324,11 +1329,59 @@ module.exports = {
1324
1329
  }
1325
1330
  },
1326
1331
  {
1327
- 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' },
1328
1381
  tokens: {
1329
1382
  containerPaddingLeft: 16,
1330
1383
  containerPaddingRight: 16,
1331
- maxWidth: '66.67%'
1384
+ maxWidth: 768
1332
1385
  }
1333
1386
  }
1334
1387
  ],
@@ -3256,5 +3309,5 @@ module.exports = {
3256
3309
  tokens: { size: 96 }
3257
3310
  }
3258
3311
  },
3259
- metadata: { name: 'theme-allium', themeTokensVersion: '2.2.0' }
3312
+ metadata: { name: 'theme-allium', themeTokensVersion: '2.4.0' }
3260
3313
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@telus-uds/theme-allium",
3
- "version": "3.6.0",
3
+ "version": "3.7.1",
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",
13
- "@telus-uds/system-tokens": "^0.1.5"
11
+ "@telus-uds/palette-allium": "^2.6.0",
12
+ "@telus-uds/system-theme-tokens": "^2.4.0",
13
+ "@telus-uds/system-tokens": "^0.2.0"
14
14
  },
15
15
  "peerDependencies": {
16
- "@telus-uds/palette-allium": "^2.4.0"
16
+ "@telus-uds/palette-allium": "^2.6.0"
17
17
  },
18
18
  "files": [
19
19
  "build",
package/theme.json CHANGED
@@ -1774,7 +1774,8 @@
1774
1774
  "Modal": {
1775
1775
  "appearances": {
1776
1776
  "maxWidth": "{appearances.Modal.maxWidth}",
1777
- "viewport": "{appearances.system.viewport}"
1777
+ "viewport": "{appearances.system.viewport}",
1778
+ "width": "{appearances.Modal.width}"
1778
1779
  },
1779
1780
  "rules": [
1780
1781
  {
@@ -1792,18 +1793,84 @@
1792
1793
  "tokens": {
1793
1794
  "containerPaddingBottom": "{palette.size.size32}",
1794
1795
  "containerPaddingTop": "{palette.size.size32}",
1795
- "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}"
1796
1841
  }
1797
1842
  },
1798
1843
  {
1799
1844
  "if": {
1800
1845
  "maxWidth": true,
1801
- "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"
1802
1869
  },
1803
1870
  "tokens": {
1804
1871
  "containerPaddingLeft": "{palette.size.size16}",
1805
1872
  "containerPaddingRight": "{palette.size.size16}",
1806
- "maxWidth": "{system.size.twoThirds}"
1873
+ "maxWidth": "{palette.size.size768}"
1807
1874
  }
1808
1875
  }
1809
1876
  ],