@telus-uds/system-theme-tokens 2.47.0 → 2.49.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 +23 -2
- package/appearances.js +3 -7
- package/components.js +26 -0
- package/package.json +1 -1
- package/tokens.js +15 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,12 +1,33 @@
|
|
|
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 Mon, 08 Jan 2024 20:08:06 GMT and should not be manually modified.
|
|
4
4
|
|
|
5
5
|
<!-- Start content -->
|
|
6
6
|
|
|
7
|
+
## 2.49.0
|
|
8
|
+
|
|
9
|
+
Mon, 08 Jan 2024 20:08:06 GMT
|
|
10
|
+
|
|
11
|
+
### Minor changes
|
|
12
|
+
|
|
13
|
+
- Tokens changed for Telus theme to be aligned with desgin intentions (35577399+JoshHC@users.noreply.github.com)
|
|
14
|
+
- add the display token to the table component (guillermo.peitzner@telus.com)
|
|
15
|
+
|
|
16
|
+
## 2.48.0
|
|
17
|
+
|
|
18
|
+
Wed, 13 Dec 2023 21:24:24 GMT
|
|
19
|
+
|
|
20
|
+
### Minor changes
|
|
21
|
+
|
|
22
|
+
- new ColourToggle component tokens (mauricio.batresmontejo@telus.com)
|
|
23
|
+
|
|
24
|
+
### Patches
|
|
25
|
+
|
|
26
|
+
- add row reverse property for direction token (mauricio.batresmontejo@telus.com)
|
|
27
|
+
|
|
7
28
|
## 2.47.0
|
|
8
29
|
|
|
9
|
-
Fri, 01 Dec 2023
|
|
30
|
+
Fri, 01 Dec 2023 21:08:37 GMT
|
|
10
31
|
|
|
11
32
|
### Minor changes
|
|
12
33
|
|
package/appearances.js
CHANGED
|
@@ -55,7 +55,7 @@ const expanded = {
|
|
|
55
55
|
|
|
56
56
|
const validation = {
|
|
57
57
|
description: 'Validation states for form inputs',
|
|
58
|
-
values: ['error', 'success'],
|
|
58
|
+
values: ['error', 'success', 'warning'],
|
|
59
59
|
type: 'state'
|
|
60
60
|
}
|
|
61
61
|
|
|
@@ -97,6 +97,7 @@ module.exports = {
|
|
|
97
97
|
Checkbox: { checked, error, focus, hover, inactive },
|
|
98
98
|
CheckboxCard: { pressed, checked, error, focus, hover, inactive },
|
|
99
99
|
ChevronLink: { focus, hover, pressed },
|
|
100
|
+
ColourToggle: { focus, hover, pressed, selected },
|
|
100
101
|
DatePicker: { pressed, selected, focus },
|
|
101
102
|
ExpandCollapseControl: { pressed, hover, focus, expanded },
|
|
102
103
|
ExpandCollapseMiniControl: { focus },
|
|
@@ -180,12 +181,7 @@ module.exports = {
|
|
|
180
181
|
type: 'state'
|
|
181
182
|
}
|
|
182
183
|
},
|
|
183
|
-
Notification: {
|
|
184
|
-
system: {
|
|
185
|
-
values: [true],
|
|
186
|
-
type: 'state'
|
|
187
|
-
}
|
|
188
|
-
},
|
|
184
|
+
Notification: { validation },
|
|
189
185
|
PaginationPageButton: { focus, hover, pressed, selected },
|
|
190
186
|
PaginationSideButton: {
|
|
191
187
|
focus,
|
package/components.js
CHANGED
|
@@ -67,6 +67,7 @@ module.exports = {
|
|
|
67
67
|
tablePaddingBottom: 'size',
|
|
68
68
|
cellBoxShadowColor: 'color', // sharedStyles, box-shadow
|
|
69
69
|
cellBackground: 'color',
|
|
70
|
+
display: 'display',
|
|
70
71
|
cellStickyShadow: 'shadow',
|
|
71
72
|
cellPaddingTop: 'size', // sharedStyles padding.
|
|
72
73
|
cellPaddingRight: 'size',
|
|
@@ -645,6 +646,31 @@ module.exports = {
|
|
|
645
646
|
borderTopRightRadius: 'radius',
|
|
646
647
|
outlineOffset: 'size'
|
|
647
648
|
},
|
|
649
|
+
ColourToggle: {
|
|
650
|
+
space: 'integer',
|
|
651
|
+
shadow: 'shadow',
|
|
652
|
+
|
|
653
|
+
// general Border Bubble
|
|
654
|
+
borderColor: 'color',
|
|
655
|
+
borderWidth: 'border',
|
|
656
|
+
borderRadius: 'radius',
|
|
657
|
+
|
|
658
|
+
// Border Bubble
|
|
659
|
+
bubbleBorderColor: 'color',
|
|
660
|
+
bubbleBorderWidth: 'border',
|
|
661
|
+
bubbleBorderRadius: 'radius',
|
|
662
|
+
|
|
663
|
+
// Outer Colour Bubble
|
|
664
|
+
outerBubbleContentAlignItems: 'flexAlign',
|
|
665
|
+
outerBubbleJustifyContent: 'flexJustifyContent',
|
|
666
|
+
outerBubbleHeight: 'size',
|
|
667
|
+
outerBubbleWidth: 'size',
|
|
668
|
+
|
|
669
|
+
// Inner Colour Bubble
|
|
670
|
+
innerBubbleHeight: 'size',
|
|
671
|
+
innerBubbleWidth: 'size',
|
|
672
|
+
innerBubbleBorderRadius: 'radius'
|
|
673
|
+
},
|
|
648
674
|
Divider: { width: 'size', color: 'color' },
|
|
649
675
|
DatePicker: {
|
|
650
676
|
calendarBackgroundColor: 'color',
|
package/package.json
CHANGED
package/tokens.js
CHANGED
|
@@ -33,6 +33,7 @@ const types = {
|
|
|
33
33
|
integer: 'Number',
|
|
34
34
|
float: 'Number',
|
|
35
35
|
color: 'String',
|
|
36
|
+
display: 'String',
|
|
36
37
|
string: 'String',
|
|
37
38
|
enum: ({ values }) =>
|
|
38
39
|
`'${Object.entries(values)
|
|
@@ -105,6 +106,18 @@ const tokenTypes = applyDynamicTypes({
|
|
|
105
106
|
none: null
|
|
106
107
|
}
|
|
107
108
|
},
|
|
109
|
+
display: {
|
|
110
|
+
// The display CSS property sets whether an element is treated as a block or inline box and
|
|
111
|
+
// the layout used for its children, such as flow layout, grid or flex.
|
|
112
|
+
default: 'inline',
|
|
113
|
+
nullable: true,
|
|
114
|
+
type: types.display,
|
|
115
|
+
values: {
|
|
116
|
+
inline: 'inline',
|
|
117
|
+
inlineBlock: 'inline-block',
|
|
118
|
+
none: null
|
|
119
|
+
}
|
|
120
|
+
},
|
|
108
121
|
radius: {
|
|
109
122
|
default: 0,
|
|
110
123
|
nullable: true,
|
|
@@ -264,7 +277,8 @@ const tokenTypes = applyDynamicTypes({
|
|
|
264
277
|
type: types.enum,
|
|
265
278
|
values: {
|
|
266
279
|
column: 'column', // Stacks children vertically
|
|
267
|
-
row: 'row' // Stacks children horizontally
|
|
280
|
+
row: 'row', // Stacks children horizontally
|
|
281
|
+
rowReverse: 'row-reverse' // Stacks children horizontally, but reversed
|
|
268
282
|
}
|
|
269
283
|
},
|
|
270
284
|
show: {
|