@telus-uds/theme-koodo 4.13.0 → 4.14.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:20:57 GMT
4
+ * Generated on Thu, 26 Oct 2023 19:22:57 GMT
5
5
  *
6
6
  */
7
7
 
@@ -1422,6 +1422,162 @@ module.exports = {
1422
1422
  labelMarginLeft: 8
1423
1423
  }
1424
1424
  },
1425
+ CheckboxCard: {
1426
+ appearances: {
1427
+ checked: {
1428
+ description: 'Corresponds to a selected state for a checkbox or radio',
1429
+ type: 'state',
1430
+ values: [ true ]
1431
+ },
1432
+ error: { type: 'state', values: [ true ] },
1433
+ focus: {
1434
+ 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.",
1435
+ platforms: [ 'rn' ],
1436
+ type: 'state',
1437
+ values: [ true, false ]
1438
+ },
1439
+ hover: {
1440
+ description: "Currently web only. Applies when an interactive component's hover handler is triggered, such as on mouseover.",
1441
+ platforms: [ 'rn' ],
1442
+ type: 'state',
1443
+ values: [ true, false ]
1444
+ },
1445
+ inactive: {
1446
+ description: 'Prevents an interactive component from being interacted with and applies accessibility attributes to indicate to the user that this component cannot be used.',
1447
+ type: 'state',
1448
+ values: [ true ]
1449
+ },
1450
+ pressed: {
1451
+ 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.',
1452
+ type: 'state',
1453
+ values: [ true, false ]
1454
+ },
1455
+ viewport: {
1456
+ description: 'The size label for the current screen viewport based on the current screen width',
1457
+ type: 'state',
1458
+ values: [ 'xs', 'sm', 'md', 'lg', 'xl' ]
1459
+ }
1460
+ },
1461
+ rules: [
1462
+ {
1463
+ if: { viewport: [ 'lg', 'xl' ] },
1464
+ tokens: {
1465
+ fontSize: 24,
1466
+ lineHeight: 1.3,
1467
+ paddingBottom: 24,
1468
+ paddingLeft: 16,
1469
+ paddingRight: 24,
1470
+ paddingTop: 16
1471
+ }
1472
+ },
1473
+ {
1474
+ if: { hover: true },
1475
+ tokens: {
1476
+ borderColor: '#666666',
1477
+ checkboxOuterBorderColor: '#17367d',
1478
+ checkboxOuterBorderGap: 2,
1479
+ checkboxOuterBorderWidth: 1,
1480
+ outerBorderColor: '#efefef',
1481
+ outerBorderWidth: 2
1482
+ }
1483
+ },
1484
+ {
1485
+ if: { focus: true },
1486
+ tokens: {
1487
+ checkboxInputBorderColor: '#016b6a',
1488
+ checkboxOuterBorderColor: '#17367d',
1489
+ checkboxOuterBorderGap: 2,
1490
+ checkboxOuterBorderWidth: 1,
1491
+ outerBorderColor: '#17367d',
1492
+ outerBorderGap: 2,
1493
+ outerBorderWidth: 2
1494
+ }
1495
+ },
1496
+ {
1497
+ if: { checked: true },
1498
+ tokens: {
1499
+ borderColor: '#c9c8c8',
1500
+ checkboxInputBorderColor: '#016b6a',
1501
+ checkboxInputBorderWidth: 2
1502
+ }
1503
+ },
1504
+ {
1505
+ description: 'Pressed state matches hover state plus light grey background',
1506
+ if: { pressed: true },
1507
+ tokens: {
1508
+ backgroundColor: '#efefef',
1509
+ checkboxOuterBorderColor: '#17367d',
1510
+ checkboxOuterBorderGap: 2,
1511
+ outerBorderColor: '#c9c8c8',
1512
+ outerBorderGap: 0,
1513
+ outerBorderWidth: 1
1514
+ }
1515
+ },
1516
+ {
1517
+ if: { inactive: true },
1518
+ tokens: {
1519
+ backgroundColor: '#efefef',
1520
+ borderColor: 'transparent',
1521
+ checkboxCheckedBackgroundColor: '#c9c8c8',
1522
+ checkboxInputBackgroundColor: '#c9c8c8',
1523
+ checkboxInputBorderColor: '#c9c8c8',
1524
+ checkboxInputSize: 16,
1525
+ checkboxOuterBorderColor: '#c9c8c8',
1526
+ checkboxOuterBorderGap: 2,
1527
+ checkboxOuterBorderWidth: 1,
1528
+ color: '#666666'
1529
+ }
1530
+ },
1531
+ {
1532
+ if: { error: true },
1533
+ tokens: {
1534
+ borderColor: '#df3d0c',
1535
+ checkboxInputBorderColor: '#df3d0c',
1536
+ color: '#df3d0c'
1537
+ }
1538
+ }
1539
+ ],
1540
+ tokens: {
1541
+ backgroundColor: '#ffffff',
1542
+ borderColor: '#c9c8c8',
1543
+ borderRadius: 4,
1544
+ borderWidth: 1,
1545
+ checkboxCheckedBackgroundColor: '#016b6a',
1546
+ checkboxCheckedSize: 16,
1547
+ checkboxInputBackgroundColor: '#ffffff',
1548
+ checkboxInputBorderColor: '#016b6a',
1549
+ checkboxInputBorderWidth: 2,
1550
+ checkboxInputOutlineColor: 'rgba(0, 0, 0, 0)',
1551
+ checkboxInputOutlineWidth: 0,
1552
+ checkboxInputSize: 24,
1553
+ checkboxOuterBorderColor: 'transparent',
1554
+ checkboxOuterBorderGap: 0,
1555
+ checkboxOuterBorderWidth: 0,
1556
+ checkboxSpace: 2,
1557
+ color: '#000000',
1558
+ contentAlignItems: 'stretch',
1559
+ contentFlexGrow: 0,
1560
+ contentFlexShrink: 1,
1561
+ contentJustifyContent: 'flex-start',
1562
+ contentSpace: 2,
1563
+ flex: 1,
1564
+ fontName: 'StagSans',
1565
+ fontSize: 20,
1566
+ fontWeight: '700',
1567
+ letterSpacing: 0,
1568
+ lineHeight: 1.4,
1569
+ minWidth: 288,
1570
+ outerBorderColor: 'transparent',
1571
+ outerBorderGap: 0,
1572
+ outerBorderWidth: 0,
1573
+ paddingBottom: 16,
1574
+ paddingLeft: 8,
1575
+ paddingRight: 16,
1576
+ paddingTop: 12,
1577
+ shadow: null,
1578
+ textTransform: 'none'
1579
+ }
1580
+ },
1425
1581
  CheckboxGroup: {
1426
1582
  appearances: {},
1427
1583
  rules: [],
@@ -4935,7 +5091,8 @@ module.exports = {
4935
5091
  alignItems: 'stretch',
4936
5092
  flexGrow: 0,
4937
5093
  flexShrink: 0,
4938
- justifyContent: 'flex-start'
5094
+ justifyContent: 'flex-start',
5095
+ width: null
4939
5096
  }
4940
5097
  },
4941
5098
  StepTracker: {
@@ -5232,7 +5389,13 @@ module.exports = {
5232
5389
  }
5233
5390
  },
5234
5391
  Tabs: {
5235
- appearances: {},
5392
+ appearances: {
5393
+ equalWidth: {
5394
+ description: 'Divide the available width equally among `TabsItem`',
5395
+ type: 'variant',
5396
+ values: [ true ]
5397
+ }
5398
+ },
5236
5399
  rules: [],
5237
5400
  tokens: {
5238
5401
  borderBottomColor: 'transparent',
@@ -5246,6 +5409,11 @@ module.exports = {
5246
5409
  },
5247
5410
  TabsItem: {
5248
5411
  appearances: {
5412
+ equalWidth: {
5413
+ description: 'Divide the available width equally among `TabsItem`',
5414
+ type: 'variant',
5415
+ values: [ true ]
5416
+ },
5249
5417
  focus: {
5250
5418
  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.",
5251
5419
  platforms: [ 'rn' ],
@@ -5337,7 +5505,8 @@ module.exports = {
5337
5505
  highlightBarHeight: 1,
5338
5506
  highlightColor: '#c9c8c8'
5339
5507
  }
5340
- }
5508
+ },
5509
+ { if: { equalWidth: true }, tokens: { maxWidth: null } }
5341
5510
  ],
5342
5511
  tokens: {
5343
5512
  backgroundColor: '#ffffff',
@@ -6595,5 +6764,5 @@ module.exports = {
6595
6764
  tokens: { size: 96 }
6596
6765
  }
6597
6766
  },
6598
- metadata: { name: 'theme-koodo', themeTokensVersion: '2.41.1' }
6767
+ metadata: { name: 'theme-koodo', themeTokensVersion: '2.42.0' }
6599
6768
  }
package/package.json CHANGED
@@ -6,7 +6,7 @@
6
6
  "description": "Koodo theme",
7
7
  "devDependencies": {
8
8
  "@telus-uds/palette-koodo": "^0.26.0",
9
- "@telus-uds/system-theme-tokens": "^2.41.1"
9
+ "@telus-uds/system-theme-tokens": "^2.42.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.13.0"
34
+ "version": "4.14.0"
35
35
  }
package/theme.json CHANGED
@@ -1830,6 +1830,150 @@
1830
1830
  "labelMarginLeft": "{palette.size.size8}"
1831
1831
  }
1832
1832
  },
1833
+ "CheckboxCard": {
1834
+ "appearances": {
1835
+ "checked": "{appearances.CheckboxCard.checked}",
1836
+ "error": "{appearances.CheckboxCard.error}",
1837
+ "focus": "{appearances.CheckboxCard.focus}",
1838
+ "hover": "{appearances.CheckboxCard.hover}",
1839
+ "inactive": "{appearances.CheckboxCard.inactive}",
1840
+ "pressed": "{appearances.CheckboxCard.pressed}",
1841
+ "viewport": "{appearances.system.viewport}"
1842
+ },
1843
+ "rules": [
1844
+ {
1845
+ "if": {
1846
+ "viewport": ["lg", "xl"]
1847
+ },
1848
+ "tokens": {
1849
+ "fontSize": "{palette.fontSize.size24}",
1850
+ "lineHeight": "{palette.lineHeight.multiply130}",
1851
+ "paddingBottom": "{palette.size.size24}",
1852
+ "paddingLeft": "{palette.size.size16}",
1853
+ "paddingRight": "{palette.size.size24}",
1854
+ "paddingTop": "{palette.size.size16}"
1855
+ }
1856
+ },
1857
+ {
1858
+ "if": {
1859
+ "hover": true
1860
+ },
1861
+ "tokens": {
1862
+ "borderColor": "{palette.color.dove}",
1863
+ "checkboxOuterBorderColor": "{palette.color.chathamsBlue}",
1864
+ "checkboxOuterBorderGap": "{palette.size.size2}",
1865
+ "checkboxOuterBorderWidth": "{palette.border.border1}",
1866
+ "outerBorderColor": "{palette.color.gallery}",
1867
+ "outerBorderWidth": "{palette.border.border2}"
1868
+ }
1869
+ },
1870
+ {
1871
+ "if": {
1872
+ "focus": true
1873
+ },
1874
+ "tokens": {
1875
+ "checkboxInputBorderColor": "{palette.color.mosque}",
1876
+ "checkboxOuterBorderColor": "{palette.color.chathamsBlue}",
1877
+ "checkboxOuterBorderGap": "{palette.size.size2}",
1878
+ "checkboxOuterBorderWidth": "{palette.border.border1}",
1879
+ "outerBorderColor": "{palette.color.chathamsBlue}",
1880
+ "outerBorderGap": "{palette.size.size2}",
1881
+ "outerBorderWidth": "{palette.border.border2}"
1882
+ }
1883
+ },
1884
+ {
1885
+ "if": {
1886
+ "checked": true
1887
+ },
1888
+ "tokens": {
1889
+ "borderColor": "{palette.color.silver}",
1890
+ "checkboxInputBorderColor": "{palette.color.mosque}",
1891
+ "checkboxInputBorderWidth": "{palette.border.border2}"
1892
+ }
1893
+ },
1894
+ {
1895
+ "description": "Pressed state matches hover state plus light grey background",
1896
+ "if": {
1897
+ "pressed": true
1898
+ },
1899
+ "tokens": {
1900
+ "backgroundColor": "{palette.color.gallery}",
1901
+ "checkboxOuterBorderColor": "{palette.color.chathamsBlue}",
1902
+ "checkboxOuterBorderGap": "{palette.size.size2}",
1903
+ "outerBorderColor": "{palette.color.silver}",
1904
+ "outerBorderGap": "{palette.size.size0}",
1905
+ "outerBorderWidth": "{palette.border.border1}"
1906
+ }
1907
+ },
1908
+ {
1909
+ "if": {
1910
+ "inactive": true
1911
+ },
1912
+ "tokens": {
1913
+ "backgroundColor": "{palette.color.gallery}",
1914
+ "borderColor": "{system.color.transparent}",
1915
+ "checkboxCheckedBackgroundColor": "{palette.color.silver}",
1916
+ "checkboxInputBackgroundColor": "{palette.color.silver}",
1917
+ "checkboxInputBorderColor": "{palette.color.silver}",
1918
+ "checkboxInputSize": "{palette.size.size16}",
1919
+ "checkboxOuterBorderColor": "{palette.color.silver}",
1920
+ "checkboxOuterBorderGap": "{palette.size.size2}",
1921
+ "checkboxOuterBorderWidth": "{palette.border.border1}",
1922
+ "color": "{palette.color.dove}"
1923
+ }
1924
+ },
1925
+ {
1926
+ "if": {
1927
+ "error": true
1928
+ },
1929
+ "tokens": {
1930
+ "borderColor": "{palette.color.trinidad}",
1931
+ "checkboxInputBorderColor": "{palette.color.trinidad}",
1932
+ "color": "{palette.color.trinidad}"
1933
+ }
1934
+ }
1935
+ ],
1936
+ "tokens": {
1937
+ "backgroundColor": "{palette.color.white}",
1938
+ "borderColor": "{palette.color.silver}",
1939
+ "borderRadius": "{palette.radius.radius4}",
1940
+ "borderWidth": "{palette.border.border1}",
1941
+ "checkboxCheckedBackgroundColor": "{palette.color.mosque}",
1942
+ "checkboxCheckedSize": "{palette.size.size16}",
1943
+ "checkboxInputBackgroundColor": "{palette.color.white}",
1944
+ "checkboxInputBorderColor": "{palette.color.mosque}",
1945
+ "checkboxInputBorderWidth": "{palette.border.border2}",
1946
+ "checkboxInputOutlineColor": "{palette.color.transparent}",
1947
+ "checkboxInputOutlineWidth": "{palette.border.none}",
1948
+ "checkboxInputSize": "{palette.size.size24}",
1949
+ "checkboxOuterBorderColor": "{system.color.transparent}",
1950
+ "checkboxOuterBorderGap": "{system.size.zero}",
1951
+ "checkboxOuterBorderWidth": "{system.border.zero}",
1952
+ "checkboxSpace": "{system.integer.2}",
1953
+ "color": "{palette.color.black}",
1954
+ "contentAlignItems": "{system.flexAlign.stretch}",
1955
+ "contentFlexGrow": "{system.integer.0}",
1956
+ "contentFlexShrink": "{system.integer.1}",
1957
+ "contentJustifyContent": "{system.flexJustifyContent.flexStart}",
1958
+ "contentSpace": "{system.integer.2}",
1959
+ "flex": "{system.integer.1}",
1960
+ "fontName": "{palette.fontName.StagSans}",
1961
+ "fontSize": "{palette.fontSize.size20}",
1962
+ "fontWeight": "{palette.fontWeight.weight700}",
1963
+ "letterSpacing": "{system.letterSpacing.none}",
1964
+ "lineHeight": "{palette.lineHeight.multiply140}",
1965
+ "minWidth": "{palette.size.size288}",
1966
+ "outerBorderColor": "{system.color.transparent}",
1967
+ "outerBorderGap": "{system.size.zero}",
1968
+ "outerBorderWidth": "{system.border.zero}",
1969
+ "paddingBottom": "{palette.size.size16}",
1970
+ "paddingLeft": "{palette.size.size8}",
1971
+ "paddingRight": "{palette.size.size16}",
1972
+ "paddingTop": "{palette.size.size12}",
1973
+ "shadow": "{system.shadow.none}",
1974
+ "textTransform": "{system.textTransform.none}"
1975
+ }
1976
+ },
1833
1977
  "CheckboxGroup": {
1834
1978
  "appearances": {},
1835
1979
  "rules": [],
@@ -6172,7 +6316,8 @@
6172
6316
  "alignItems": "{system.flexAlign.stretch}",
6173
6317
  "flexGrow": "{system.integer.0}",
6174
6318
  "flexShrink": "{system.integer.0}",
6175
- "justifyContent": "{system.flexJustifyContent.flexStart}"
6319
+ "justifyContent": "{system.flexJustifyContent.flexStart}",
6320
+ "width": "{system.size.none}"
6176
6321
  }
6177
6322
  },
6178
6323
  "StepTracker": {
@@ -6492,7 +6637,13 @@
6492
6637
  }
6493
6638
  },
6494
6639
  "Tabs": {
6495
- "appearances": {},
6640
+ "appearances": {
6641
+ "equalWidth": {
6642
+ "description": "Divide the available width equally among `TabsItem`",
6643
+ "type": "variant",
6644
+ "values": [true]
6645
+ }
6646
+ },
6496
6647
  "rules": [],
6497
6648
  "tokens": {
6498
6649
  "borderBottomColor": "{system.color.transparent}",
@@ -6506,6 +6657,11 @@
6506
6657
  },
6507
6658
  "TabsItem": {
6508
6659
  "appearances": {
6660
+ "equalWidth": {
6661
+ "description": "Divide the available width equally among `TabsItem`",
6662
+ "type": "variant",
6663
+ "values": [true]
6664
+ },
6509
6665
  "focus": "{appearances.TabsItem.focus}",
6510
6666
  "hover": "{appearances.TabsItem.hover}",
6511
6667
  "inverse": {
@@ -6630,6 +6786,14 @@
6630
6786
  "highlightBarHeight": "{palette.border.border1}",
6631
6787
  "highlightColor": "{palette.color.silver}"
6632
6788
  }
6789
+ },
6790
+ {
6791
+ "if": {
6792
+ "equalWidth": true
6793
+ },
6794
+ "tokens": {
6795
+ "maxWidth": "{system.size.none}"
6796
+ }
6633
6797
  }
6634
6798
  ],
6635
6799
  "tokens": {