@telus-uds/system-theme-tokens 2.36.0 → 2.37.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/CHANGELOG.md +16 -2
- package/appearances.js +2 -1
- package/components.js +39 -10
- package/package.json +1 -1
- package/tokens.js +6 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,12 +1,26 @@
|
|
|
1
1
|
# Change Log - @telus-uds/system-theme-tokens
|
|
2
2
|
|
|
3
|
-
This log was last generated on
|
|
3
|
+
This log was last generated on Fri, 07 Jul 2023 19:17:02 GMT and should not be manually modified.
|
|
4
4
|
|
|
5
5
|
<!-- Start content -->
|
|
6
6
|
|
|
7
|
+
## 2.37.0
|
|
8
|
+
|
|
9
|
+
Fri, 07 Jul 2023 19:17:02 GMT
|
|
10
|
+
|
|
11
|
+
### Minor changes
|
|
12
|
+
|
|
13
|
+
- add state to videopickerthumbnail (evander.owusu@telus.com)
|
|
14
|
+
- add new tokens to terms and conditions (mauricio.batresmontejo@telus.com)
|
|
15
|
+
- Navigation bar item tokenized (akshay.pandey1@telus.com)
|
|
16
|
+
- Standardized SkipLink (wlsdud194@hotmail.com)
|
|
17
|
+
- Added "content" prop to ExpandCollapsePanel (wlsdud194@hotmail.com)
|
|
18
|
+
- Refactored Table for proper standardization (wlsdud194@hotmail.com)
|
|
19
|
+
- add 'superScriptFontSize' token (kyle.king2@telus.com)
|
|
20
|
+
|
|
7
21
|
## 2.36.0
|
|
8
22
|
|
|
9
|
-
Wed, 28 Jun 2023 23:
|
|
23
|
+
Wed, 28 Jun 2023 23:27:23 GMT
|
|
10
24
|
|
|
11
25
|
### Minor changes
|
|
12
26
|
|
package/appearances.js
CHANGED
|
@@ -240,5 +240,6 @@ module.exports = {
|
|
|
240
240
|
TermsAndConditions: { expanded },
|
|
241
241
|
ToggleSwitch: { focus, hover, pressed, inactive, selected },
|
|
242
242
|
TooltipButton: { focus, hover, pressed },
|
|
243
|
-
|
|
243
|
+
VideoPickerThumbnail: { focus, hover, pressed, selected },
|
|
244
|
+
SkipLink: { focus, pressed }
|
|
244
245
|
}
|
package/components.js
CHANGED
|
@@ -35,7 +35,11 @@ module.exports = {
|
|
|
35
35
|
pressableBorderTopColor: 'color',
|
|
36
36
|
pressablePaddingBottom: 'size',
|
|
37
37
|
titleColor: 'color',
|
|
38
|
-
subTitleColor: 'color'
|
|
38
|
+
subTitleColor: 'color',
|
|
39
|
+
outerBorderColor: 'color',
|
|
40
|
+
outerBorderGap: 'size',
|
|
41
|
+
outerBorderRadius: 'radius',
|
|
42
|
+
outerBorderWidth: 'border'
|
|
39
43
|
},
|
|
40
44
|
VideoPickerSlider: {
|
|
41
45
|
previousIcon: 'icon',
|
|
@@ -57,16 +61,12 @@ module.exports = {
|
|
|
57
61
|
fontSize: 'fontSize',
|
|
58
62
|
lineHeight: 'lineHeight'
|
|
59
63
|
},
|
|
64
|
+
// TO DO: Create a separate Cell schema that includes all cell-related tokens.
|
|
60
65
|
Table: {
|
|
61
|
-
// variant: compact
|
|
62
|
-
tablePaddingBottom: 'size',
|
|
63
66
|
cellMinWidth: 'size',
|
|
64
|
-
|
|
65
|
-
cellHeadingBoxShadowColor: 'color',
|
|
67
|
+
tablePaddingBottom: 'size',
|
|
66
68
|
cellBoxShadowColor: 'color', // sharedStyles, box-shadow
|
|
67
|
-
cellSubheadingBackground: 'color',
|
|
68
69
|
cellBackground: 'color',
|
|
69
|
-
cellRowHeadingBackground: 'color',
|
|
70
70
|
cellStickyShadow: 'shadow',
|
|
71
71
|
cellPaddingTop: 'size', // sharedStyles padding.
|
|
72
72
|
cellPaddingRight: 'size',
|
|
@@ -74,7 +74,9 @@ module.exports = {
|
|
|
74
74
|
cellPaddingBottom: 'size',
|
|
75
75
|
fontWeight: 'fontWeight',
|
|
76
76
|
fontName: 'fontName',
|
|
77
|
-
fontSize: 'fontSize'
|
|
77
|
+
fontSize: 'fontSize',
|
|
78
|
+
lineHeight: 'lineHeight',
|
|
79
|
+
stickyBackgroundColor: 'color'
|
|
78
80
|
},
|
|
79
81
|
Image: { borderRadius: 'radius' },
|
|
80
82
|
Spinner: {
|
|
@@ -641,7 +643,19 @@ module.exports = {
|
|
|
641
643
|
borderRadius: 'radius',
|
|
642
644
|
borderWidth: 'border',
|
|
643
645
|
expandDividerColor: 'color',
|
|
644
|
-
expandDividerWidth: 'size'
|
|
646
|
+
expandDividerWidth: 'size',
|
|
647
|
+
contentPanelBackgroundColor: 'color',
|
|
648
|
+
contentPanelPaddingLeft: 'size',
|
|
649
|
+
contentPanelPaddingRight: 'size',
|
|
650
|
+
contentPanelPaddingTop: 'size',
|
|
651
|
+
contentPanelPaddingBottom: 'size',
|
|
652
|
+
contentPanelBorderWidth: 'border',
|
|
653
|
+
contentPanelBorderColor: 'color',
|
|
654
|
+
contentPanelFontName: 'fontName',
|
|
655
|
+
contentPanelFontSize: 'fontSize',
|
|
656
|
+
contentPanelFontColor: 'color',
|
|
657
|
+
contentPanelFontWeight: 'fontWeight',
|
|
658
|
+
contentPanelLineHeight: 'lineHeight'
|
|
645
659
|
},
|
|
646
660
|
Feedback: {
|
|
647
661
|
backgroundColor: 'color',
|
|
@@ -1401,7 +1415,12 @@ module.exports = {
|
|
|
1401
1415
|
outlineWidth: 'border',
|
|
1402
1416
|
paddingHorizontal: 'size',
|
|
1403
1417
|
paddingVertical: 'size',
|
|
1404
|
-
borderRadius: 'radius'
|
|
1418
|
+
borderRadius: 'radius',
|
|
1419
|
+
textLine: 'textLine',
|
|
1420
|
+
fontName: 'fontName',
|
|
1421
|
+
fontWeight: 'fontWeight',
|
|
1422
|
+
fontSize: 'fontSize',
|
|
1423
|
+
lineHeight: 'lineHeight'
|
|
1405
1424
|
},
|
|
1406
1425
|
StoryCard: {
|
|
1407
1426
|
outerBorderColor: 'color',
|
|
@@ -1517,6 +1536,8 @@ module.exports = {
|
|
|
1517
1536
|
TermsAndConditions: {
|
|
1518
1537
|
contentPaddingBottom: 'size',
|
|
1519
1538
|
contentPaddingLeft: 'size',
|
|
1539
|
+
contentBorderColor: 'color',
|
|
1540
|
+
contentMarginBottom: 'size',
|
|
1520
1541
|
mdContentPaddingBottom: 'size',
|
|
1521
1542
|
mdContentPaddingLeft: 'size',
|
|
1522
1543
|
orderedPadding: 'size',
|
|
@@ -1543,13 +1564,20 @@ module.exports = {
|
|
|
1543
1564
|
expandTitleColor: 'color',
|
|
1544
1565
|
expandTitleFontSize: 'size',
|
|
1545
1566
|
expandTitleLineHeight: 'lineHeight',
|
|
1567
|
+
expandTitleFontName: 'fontName',
|
|
1568
|
+
expandTitleFontWeight: 'fontWeight',
|
|
1546
1569
|
expandTitleMarginX: 'size',
|
|
1547
1570
|
expandTitleMarginY: 'size',
|
|
1571
|
+
expandTitlePaddingLeft: 'size',
|
|
1572
|
+
expandTitleBorder: 'border',
|
|
1573
|
+
expandTitleBorderColor: 'color',
|
|
1574
|
+
expandTitleUnderline: 'textLine',
|
|
1548
1575
|
expandBaseBorderWidth: 'border',
|
|
1549
1576
|
expandContentPaddingBottom: 'size',
|
|
1550
1577
|
expandContentPaddingLeft: 'size',
|
|
1551
1578
|
expandContentPaddingRight: 'size',
|
|
1552
1579
|
expandContentPaddingTop: 'size',
|
|
1580
|
+
dividerColor: 'color',
|
|
1553
1581
|
icon: 'icon'
|
|
1554
1582
|
},
|
|
1555
1583
|
TextArea: { minLines: 'integer', maxLines: 'integer' },
|
|
@@ -1707,6 +1735,7 @@ module.exports = {
|
|
|
1707
1735
|
},
|
|
1708
1736
|
Typography: {
|
|
1709
1737
|
fontName: 'fontName',
|
|
1738
|
+
superScriptFontSize: 'fontSize',
|
|
1710
1739
|
fontWeight: 'fontWeight',
|
|
1711
1740
|
fontSize: 'fontSize',
|
|
1712
1741
|
color: 'color',
|
package/package.json
CHANGED
package/tokens.js
CHANGED
|
@@ -39,6 +39,7 @@ const types = {
|
|
|
39
39
|
.map(([, value]) => value)
|
|
40
40
|
.join("'|'")}'`,
|
|
41
41
|
size: 'Number|String',
|
|
42
|
+
fontSize: 'Number|String',
|
|
42
43
|
shadow:
|
|
43
44
|
'{"blur": Number, "color": String, "inset": Boolean, "offsetX": Number, "offsetY": Number, "spread": Number}',
|
|
44
45
|
gradient:
|
|
@@ -130,8 +131,11 @@ const tokenTypes = applyDynamicTypes({
|
|
|
130
131
|
fontSize: {
|
|
131
132
|
// An intended font size, in device pixels, before applying user accessibility settings.
|
|
132
133
|
default: fontBasePixels,
|
|
133
|
-
nullable:
|
|
134
|
-
type:
|
|
134
|
+
nullable: true,
|
|
135
|
+
type: types.fontSize,
|
|
136
|
+
values: {
|
|
137
|
+
none: null
|
|
138
|
+
}
|
|
135
139
|
},
|
|
136
140
|
lineHeight: {
|
|
137
141
|
// Line heights are applied as relative multipliers on font size
|