@telus-uds/theme-public-mobile 2.5.0 → 2.6.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 Thu, 19 Oct 2023 00:21:01 GMT
4
+ * Generated on Thu, 26 Oct 2023 19:23:04 GMT
5
5
  *
6
6
  */
7
7
 
@@ -1424,6 +1424,154 @@ module.exports = {
1424
1424
  labelMarginLeft: 10
1425
1425
  }
1426
1426
  },
1427
+ CheckboxCard: {
1428
+ appearances: {
1429
+ checked: {
1430
+ description: 'Corresponds to a selected state for a checkbox or radio',
1431
+ type: 'state',
1432
+ values: [ true ]
1433
+ },
1434
+ error: { type: 'state', values: [ true ] },
1435
+ focus: {
1436
+ 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.",
1437
+ platforms: [ 'rn' ],
1438
+ type: 'state',
1439
+ values: [ true, false ]
1440
+ },
1441
+ hover: {
1442
+ description: "Currently web only. Applies when an interactive component's hover handler is triggered, such as on mouseover.",
1443
+ platforms: [ 'rn' ],
1444
+ type: 'state',
1445
+ values: [ true, false ]
1446
+ },
1447
+ inactive: {
1448
+ description: 'Prevents an interactive component from being interacted with and applies accessibility attributes to indicate to the user that this component cannot be used.',
1449
+ type: 'state',
1450
+ values: [ true ]
1451
+ },
1452
+ pressed: {
1453
+ 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.',
1454
+ type: 'state',
1455
+ values: [ true, false ]
1456
+ },
1457
+ viewport: {
1458
+ description: 'The size label for the current screen viewport based on the current screen width',
1459
+ type: 'state',
1460
+ values: [ 'xs', 'sm', 'md', 'lg', 'xl' ]
1461
+ }
1462
+ },
1463
+ rules: [
1464
+ {
1465
+ if: { viewport: [ 'lg', 'xl' ] },
1466
+ tokens: {
1467
+ fontSize: 24,
1468
+ paddingBottom: 24,
1469
+ paddingLeft: 16,
1470
+ paddingRight: 24,
1471
+ paddingTop: 16
1472
+ }
1473
+ },
1474
+ {
1475
+ if: { checked: true },
1476
+ tokens: {
1477
+ checkboxInputBorderColor: '#394056',
1478
+ checkboxInputBorderWidth: 2,
1479
+ checkboxOuterBorderGap: 2
1480
+ }
1481
+ },
1482
+ {
1483
+ if: { hover: true },
1484
+ tokens: {
1485
+ borderColor: '#9c9faa',
1486
+ checkboxInputBackgroundColor: '#fce6df',
1487
+ checkboxInputBorderColor: '#394056',
1488
+ outerBorderColor: '#cdcfd5'
1489
+ }
1490
+ },
1491
+ {
1492
+ if: { focus: true },
1493
+ tokens: {
1494
+ borderColor: '#cdcfd5',
1495
+ checkboxInputBackgroundColor: 'rgba(0, 0, 0, 0)',
1496
+ checkboxInputBorderColor: '#394056',
1497
+ checkboxInputOutlineColor: '#f39d80',
1498
+ checkboxInputOutlineWidth: 2,
1499
+ outerBorderColor: '#6a7080',
1500
+ outerBorderGap: 2
1501
+ }
1502
+ },
1503
+ {
1504
+ if: { pressed: true },
1505
+ tokens: {
1506
+ backgroundColor: '#f5f5f7',
1507
+ borderColor: '#cdcfd5',
1508
+ checkboxInputBackgroundColor: '#fce6df',
1509
+ checkboxInputBorderColor: '#394056',
1510
+ checkboxInputOutlineColor: 'rgba(0, 0, 0, 0)'
1511
+ }
1512
+ },
1513
+ {
1514
+ if: { inactive: true },
1515
+ tokens: {
1516
+ backgroundColor: '#f5f5f7',
1517
+ borderColor: 'rgba(0, 0, 0, 0)',
1518
+ checkboxInputBackgroundColor: '#9c9faa',
1519
+ checkboxInputBorderColor: '#cdcfd5',
1520
+ checkboxInputOutlineColor: '#cdcfd5',
1521
+ checkboxOuterBorderGap: 0,
1522
+ color: '#636c8c'
1523
+ }
1524
+ },
1525
+ {
1526
+ if: { error: true },
1527
+ tokens: {
1528
+ borderColor: '#bf1722',
1529
+ checkboxInputBorderColor: '#bf1722',
1530
+ color: '#bf1722'
1531
+ }
1532
+ }
1533
+ ],
1534
+ tokens: {
1535
+ backgroundColor: 'rgba(0, 0, 0, 0)',
1536
+ borderColor: '#9c9faa',
1537
+ borderRadius: 6,
1538
+ borderWidth: 1,
1539
+ checkboxCheckedBackgroundColor: '#394056',
1540
+ checkboxCheckedSize: 12,
1541
+ checkboxInputBackgroundColor: '#fefefc',
1542
+ checkboxInputBorderColor: '#6a7080',
1543
+ checkboxInputBorderWidth: 2,
1544
+ checkboxInputOutlineColor: 'rgba(0, 0, 0, 0)',
1545
+ checkboxInputOutlineWidth: 0,
1546
+ checkboxInputSize: 20,
1547
+ checkboxOuterBorderColor: 'rgba(0, 0, 0, 0)',
1548
+ checkboxOuterBorderGap: 0,
1549
+ checkboxOuterBorderWidth: 1,
1550
+ checkboxSpace: 2,
1551
+ color: '#394056',
1552
+ contentAlignItems: 'stretch',
1553
+ contentFlexGrow: 0,
1554
+ contentFlexShrink: 1,
1555
+ contentJustifyContent: 'flex-start',
1556
+ contentSpace: 2,
1557
+ flex: 1,
1558
+ fontName: 'SofiaPro',
1559
+ fontSize: 24,
1560
+ fontWeight: '400',
1561
+ letterSpacing: 0,
1562
+ lineHeight: 1,
1563
+ minWidth: 112,
1564
+ outerBorderColor: 'rgba(0, 0, 0, 0)',
1565
+ outerBorderGap: 0,
1566
+ outerBorderWidth: 2,
1567
+ paddingBottom: 16,
1568
+ paddingLeft: 8,
1569
+ paddingRight: 16,
1570
+ paddingTop: 16,
1571
+ shadow: null,
1572
+ textTransform: 'none'
1573
+ }
1574
+ },
1427
1575
  CheckboxGroup: {
1428
1576
  appearances: {},
1429
1577
  rules: [],
@@ -5029,7 +5177,8 @@ module.exports = {
5029
5177
  alignItems: 'stretch',
5030
5178
  flexGrow: 0,
5031
5179
  flexShrink: 0,
5032
- justifyContent: 'flex-start'
5180
+ justifyContent: 'flex-start',
5181
+ width: null
5033
5182
  }
5034
5183
  },
5035
5184
  StepTracker: {
@@ -5271,6 +5420,11 @@ module.exports = {
5271
5420
  },
5272
5421
  Tabs: {
5273
5422
  appearances: {
5423
+ equalWidth: {
5424
+ description: 'Divide the available width equally among `TabsItem`',
5425
+ type: 'variant',
5426
+ values: [ true ]
5427
+ },
5274
5428
  inverse: {
5275
5429
  description: 'Styles the link white for use on dark backgrounds.',
5276
5430
  type: 'variant',
@@ -5295,6 +5449,11 @@ module.exports = {
5295
5449
  },
5296
5450
  TabsItem: {
5297
5451
  appearances: {
5452
+ equalWidth: {
5453
+ description: 'Divide the available width equally among `TabsItem`',
5454
+ type: 'variant',
5455
+ values: [ true ]
5456
+ },
5298
5457
  focus: {
5299
5458
  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.",
5300
5459
  platforms: [ 'rn' ],
@@ -5362,7 +5521,8 @@ module.exports = {
5362
5521
  {
5363
5522
  if: { inverse: true, pressed: true },
5364
5523
  tokens: { color: '#f39d80' }
5365
- }
5524
+ },
5525
+ { if: { equalWidth: true }, tokens: { maxWidth: null } }
5366
5526
  ],
5367
5527
  tokens: {
5368
5528
  backgroundColor: 'transparent',
@@ -6627,5 +6787,5 @@ module.exports = {
6627
6787
  tokens: { size: 80 }
6628
6788
  }
6629
6789
  },
6630
- metadata: { name: 'theme-public-mobile', themeTokensVersion: '2.41.1' }
6790
+ metadata: { name: 'theme-public-mobile', themeTokensVersion: '2.42.0' }
6631
6791
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@telus-uds/theme-public-mobile",
3
- "version": "2.5.0",
3
+ "version": "2.6.0",
4
4
  "description": "Public Mobile theme",
5
5
  "keywords": [
6
6
  "public mobile"
@@ -14,11 +14,11 @@
14
14
  "theme.json"
15
15
  ],
16
16
  "devDependencies": {
17
- "@telus-uds/palette-public-mobile": "^1.2.0",
18
- "@telus-uds/system-theme-tokens": "^2.41.1"
17
+ "@telus-uds/palette-public-mobile": "^1.3.0",
18
+ "@telus-uds/system-theme-tokens": "^2.42.0"
19
19
  },
20
20
  "peerDependencies": {
21
- "@telus-uds/palette-public-mobile": "^1.2.0"
21
+ "@telus-uds/palette-public-mobile": "^1.3.0"
22
22
  },
23
23
  "repository": {
24
24
  "type": "git",
package/theme.json CHANGED
@@ -1793,6 +1793,142 @@
1793
1793
  "labelMarginLeft": "{palette.size.size10}"
1794
1794
  }
1795
1795
  },
1796
+ "CheckboxCard": {
1797
+ "appearances": {
1798
+ "checked": "{appearances.CheckboxCard.checked}",
1799
+ "error": "{appearances.CheckboxCard.error}",
1800
+ "focus": "{appearances.CheckboxCard.focus}",
1801
+ "hover": "{appearances.CheckboxCard.hover}",
1802
+ "inactive": "{appearances.CheckboxCard.inactive}",
1803
+ "pressed": "{appearances.CheckboxCard.pressed}",
1804
+ "viewport": "{appearances.system.viewport}"
1805
+ },
1806
+ "rules": [
1807
+ {
1808
+ "if": {
1809
+ "viewport": ["lg", "xl"]
1810
+ },
1811
+ "tokens": {
1812
+ "fontSize": "{palette.fontSize.size24}",
1813
+ "paddingBottom": "{palette.size.size24}",
1814
+ "paddingLeft": "{palette.size.size16}",
1815
+ "paddingRight": "{palette.size.size24}",
1816
+ "paddingTop": "{palette.size.size16}"
1817
+ }
1818
+ },
1819
+ {
1820
+ "if": {
1821
+ "checked": true
1822
+ },
1823
+ "tokens": {
1824
+ "checkboxInputBorderColor": "{palette.color.slate100}",
1825
+ "checkboxInputBorderWidth": "{palette.border.border2}",
1826
+ "checkboxOuterBorderGap": "{palette.size.size2}"
1827
+ }
1828
+ },
1829
+ {
1830
+ "if": {
1831
+ "hover": true
1832
+ },
1833
+ "tokens": {
1834
+ "borderColor": "{palette.color.slate50}",
1835
+ "checkboxInputBackgroundColor": "{palette.color.apricot25}",
1836
+ "checkboxInputBorderColor": "{palette.color.slate100}",
1837
+ "outerBorderColor": "{palette.color.slate25}"
1838
+ }
1839
+ },
1840
+ {
1841
+ "if": {
1842
+ "focus": true
1843
+ },
1844
+ "tokens": {
1845
+ "borderColor": "{palette.color.slate25}",
1846
+ "checkboxInputBackgroundColor": "{palette.color.transparent}",
1847
+ "checkboxInputBorderColor": "{palette.color.slate100}",
1848
+ "checkboxInputOutlineColor": "{palette.color.apricot100}",
1849
+ "checkboxInputOutlineWidth": "{palette.border.border2}",
1850
+ "outerBorderColor": "{palette.color.slate75}",
1851
+ "outerBorderGap": "{palette.size.size2}"
1852
+ }
1853
+ },
1854
+ {
1855
+ "if": {
1856
+ "pressed": true
1857
+ },
1858
+ "tokens": {
1859
+ "backgroundColor": "{palette.color.slate5}",
1860
+ "borderColor": "{palette.color.slate25}",
1861
+ "checkboxInputBackgroundColor": "{palette.color.apricot25}",
1862
+ "checkboxInputBorderColor": "{palette.color.slate100}",
1863
+ "checkboxInputOutlineColor": "{palette.color.transparent}"
1864
+ }
1865
+ },
1866
+ {
1867
+ "if": {
1868
+ "inactive": true
1869
+ },
1870
+ "tokens": {
1871
+ "backgroundColor": "{palette.color.slate5}",
1872
+ "borderColor": "{palette.color.transparent}",
1873
+ "checkboxInputBackgroundColor": "{palette.color.slate50}",
1874
+ "checkboxInputBorderColor": "{palette.color.slate25}",
1875
+ "checkboxInputOutlineColor": "{palette.color.slate25}",
1876
+ "checkboxOuterBorderGap": "{system.size.zero}",
1877
+ "color": "{palette.color.link100}"
1878
+ }
1879
+ },
1880
+ {
1881
+ "if": {
1882
+ "error": true
1883
+ },
1884
+ "tokens": {
1885
+ "borderColor": "{palette.color.danger100}",
1886
+ "checkboxInputBorderColor": "{palette.color.danger100}",
1887
+ "color": "{palette.color.danger100}"
1888
+ }
1889
+ }
1890
+ ],
1891
+ "tokens": {
1892
+ "backgroundColor": "{palette.color.transparent}",
1893
+ "borderColor": "{palette.color.slate50}",
1894
+ "borderRadius": "{palette.radius.radius6}",
1895
+ "borderWidth": "{palette.border.border1}",
1896
+ "checkboxCheckedBackgroundColor": "{palette.color.slate100}",
1897
+ "checkboxCheckedSize": "{palette.size.size12}",
1898
+ "checkboxInputBackgroundColor": "{palette.color.sand10}",
1899
+ "checkboxInputBorderColor": "{palette.color.slate75}",
1900
+ "checkboxInputBorderWidth": "{palette.border.border2}",
1901
+ "checkboxInputOutlineColor": "{palette.color.transparent}",
1902
+ "checkboxInputOutlineWidth": "{palette.border.none}",
1903
+ "checkboxInputSize": "{palette.size.size20}",
1904
+ "checkboxOuterBorderColor": "{palette.color.transparent}",
1905
+ "checkboxOuterBorderGap": "{system.size.zero}",
1906
+ "checkboxOuterBorderWidth": "{palette.border.border1}",
1907
+ "checkboxSpace": "{system.integer.2}",
1908
+ "color": "{palette.color.slate100}",
1909
+ "contentAlignItems": "{system.flexAlign.stretch}",
1910
+ "contentFlexGrow": "{system.integer.0}",
1911
+ "contentFlexShrink": "{system.integer.1}",
1912
+ "contentJustifyContent": "{system.flexJustifyContent.flexStart}",
1913
+ "contentSpace": "{system.integer.2}",
1914
+ "flex": "{system.integer.1}",
1915
+ "fontName": "{palette.fontName.SofiaPro}",
1916
+ "fontSize": "{palette.fontSize.size24}",
1917
+ "fontWeight": "{palette.fontWeight.weight400}",
1918
+ "letterSpacing": "{system.letterSpacing.none}",
1919
+ "lineHeight": "{palette.lineHeight.ratio1to1}",
1920
+ "minWidth": "{palette.size.size112}",
1921
+ "outerBorderColor": "{palette.color.transparent}",
1922
+ "outerBorderGap": "{system.size.zero}",
1923
+ "outerBorderWidth": "{palette.border.border2}",
1924
+ "paddingBottom": "{palette.size.size16}",
1925
+ "paddingLeft": "{palette.size.size8}",
1926
+ "paddingRight": "{palette.size.size16}",
1927
+ "paddingTop": "{palette.size.size16}",
1928
+ "shadow": "{system.shadow.none}",
1929
+ "textTransform": "{system.textTransform.none}"
1930
+ }
1931
+ },
1796
1932
  "CheckboxGroup": {
1797
1933
  "appearances": {},
1798
1934
  "rules": [],
@@ -6211,7 +6347,8 @@
6211
6347
  "alignItems": "{system.flexAlign.stretch}",
6212
6348
  "flexGrow": "{system.integer.0}",
6213
6349
  "flexShrink": "{system.integer.0}",
6214
- "justifyContent": "{system.flexJustifyContent.flexStart}"
6350
+ "justifyContent": "{system.flexJustifyContent.flexStart}",
6351
+ "width": "{system.size.none}"
6215
6352
  }
6216
6353
  },
6217
6354
  "StepTracker": {
@@ -6478,6 +6615,11 @@
6478
6615
  },
6479
6616
  "Tabs": {
6480
6617
  "appearances": {
6618
+ "equalWidth": {
6619
+ "description": "Divide the available width equally among `TabsItem`",
6620
+ "type": "variant",
6621
+ "values": [true]
6622
+ },
6481
6623
  "inverse": {
6482
6624
  "description": "Styles the link white for use on dark backgrounds.",
6483
6625
  "type": "variant",
@@ -6506,6 +6648,11 @@
6506
6648
  },
6507
6649
  "TabsItem": {
6508
6650
  "appearances": {
6651
+ "equalWidth": {
6652
+ "description": "Divide the available width equally among `TabsItem`",
6653
+ "type": "variant",
6654
+ "values": [true]
6655
+ },
6509
6656
  "focus": "{appearances.TabsItem.focus}",
6510
6657
  "hover": "{appearances.TabsItem.hover}",
6511
6658
  "inverse": {
@@ -6602,6 +6749,14 @@
6602
6749
  "tokens": {
6603
6750
  "color": "{palette.color.apricot100}"
6604
6751
  }
6752
+ },
6753
+ {
6754
+ "if": {
6755
+ "equalWidth": true
6756
+ },
6757
+ "tokens": {
6758
+ "maxWidth": "{system.size.none}"
6759
+ }
6605
6760
  }
6606
6761
  ],
6607
6762
  "tokens": {