@telus-uds/system-theme-tokens 2.21.0 → 2.23.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 CHANGED
@@ -1,12 +1,36 @@
1
1
  # Change Log - @telus-uds/system-theme-tokens
2
2
 
3
- This log was last generated on Thu, 20 Apr 2023 19:05:54 GMT and should not be manually modified.
3
+ This log was last generated on Thu, 27 Apr 2023 14:32:16 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
+ ## 2.23.0
8
+
9
+ Thu, 27 Apr 2023 14:32:16 GMT
10
+
11
+ ### Minor changes
12
+
13
+ - Added Video components to componets.js and themes (wlsdud194@hotmail.com)
14
+ - add 'SplashButtonWithDetails' & 'SplashButton' to components schema (kyle.king2@telus.com)
15
+ - add tokens to storycard (mauricio.batresmontejo@telus.com)
16
+ - Countdown is now multibrand (akshay.pandey1@telus.com)
17
+ - add 'Icon' to 'IconButton" schema (kyle.king2@telus.com)
18
+ - add tokens to terms and conditions component (mauricio.batresmontejo@telus.com)
19
+ - Testimonial multi-brand (samuraix221@hotmail.com)
20
+
21
+ ## 2.22.0
22
+
23
+ Mon, 24 Apr 2023 21:42:02 GMT
24
+
25
+ ### Minor changes
26
+
27
+ - update tokens for blockquote component (evander.owusu@telus.com)
28
+ - add Listbox component (mauricio.batresmontejo@telus.com)
29
+ - add 'Icon' to 'IconButton" schema (kyle.king2@telus.com)
30
+
7
31
  ## 2.21.0
8
32
 
9
- Thu, 20 Apr 2023 19:05:54 GMT
33
+ Thu, 20 Apr 2023 19:13:33 GMT
10
34
 
11
35
  ### Minor changes
12
36
 
package/appearances.js CHANGED
@@ -74,6 +74,8 @@ const checked = {
74
74
  type: 'state'
75
75
  }
76
76
 
77
+ const disabled = { values: [true], type: 'state' }
78
+
77
79
  module.exports = {
78
80
  // system-wide appearances
79
81
  system: {
@@ -84,6 +86,7 @@ module.exports = {
84
86
  type: 'state'
85
87
  }
86
88
  },
89
+ SplashButton: { hover },
87
90
  Button: { focus, hover, pressed, inactive, selected },
88
91
  PreviewCard: { pressed, hover, focus },
89
92
  ButtonDropdown: { focus, hover, pressed, inactive, selected, open },
@@ -111,6 +114,22 @@ module.exports = {
111
114
  type: 'state'
112
115
  }
113
116
  },
117
+ ListBox: {
118
+ focus,
119
+ hover,
120
+ pressed,
121
+ expanded,
122
+ current: {
123
+ description: 'When the current item is selected',
124
+ values: [true],
125
+ type: 'state'
126
+ },
127
+ isChild: {
128
+ description: 'when the item is child of another child',
129
+ values: [true],
130
+ type: 'state'
131
+ }
132
+ },
114
133
  Modal: {
115
134
  maxWidth: {
116
135
  description:
@@ -153,6 +172,7 @@ module.exports = {
153
172
  },
154
173
  ProgressBar: { inactive },
155
174
  QuickLinksList: { hover, focus, pressed },
175
+ QuantitySelector: { focus, hover, disabled, pressed },
156
176
  Radio: { checked, error, focus, hover, inactive },
157
177
  RadioCard: { pressed, checked, error, focus, hover, inactive },
158
178
  Search: { hover, focus: inputFocus, inactive },
@@ -182,9 +202,11 @@ module.exports = {
182
202
  type: 'state'
183
203
  }
184
204
  },
205
+ StoryCard: { focus, hover, pressed },
185
206
  TabsItem: { focus, hover, pressed, selected },
186
207
  TagsItem: { focus, hover, pressed, inactive, selected },
187
208
  TextInput: { validation, hover, inactive, focus: inputFocus },
209
+ TermsAndConditions: { expanded },
188
210
  ToggleSwitch: { focus, hover, pressed, inactive, selected },
189
211
  TooltipButton: { focus, hover, pressed },
190
212
  SkipLink: { focus }
package/components.js CHANGED
@@ -1,22 +1,26 @@
1
1
  // Define the required components and their supported tokens
2
2
  module.exports = {
3
- Toast: {
4
- containerBackgroundColor: 'color',
5
- containerGap: 'size',
6
- animationHeightBefore: 'size',
7
- animationHeightAfter: 'size',
8
- animationPaddingBottomBefore: 'size',
9
- animationPaddingBottomAfter: 'size',
10
- animationPaddingTopBefore: 'size',
11
- animationPaddingTopAfter: 'size',
12
- animationBackgroundColorBefore: 'color',
13
- animationBackgroundColorAfter: 'color',
14
- animationColorBefore: 'color',
15
- animationColorAfter: 'color',
16
- animationDivColorBefore: 'color',
17
- animationDivColorAfter: 'color',
18
- animationFillColorBefore: 'color',
19
- animationFillColorAfter: 'color'
3
+ SplashButton: {
4
+ playIcon: 'icon',
5
+ playIconColor: 'color',
6
+ buttonContentBackground: 'color',
7
+ buttonContentChildrenBackground: 'color'
8
+ },
9
+ SplashButtonWithDetails: {
10
+ playIcon: 'icon',
11
+ playIconColor: 'color',
12
+ buttonContentBackground: 'color',
13
+ buttonContentChildrenBackground: 'color',
14
+ buttonBackground: 'color',
15
+ buttonBorderColor: 'color',
16
+ buttonRadius: 'radius',
17
+ buttonLeftPosition: 'size',
18
+ buttonBottomPosition: 'size',
19
+ buttonMinHeight: 'size',
20
+ buttonPaddingLeft: 'size',
21
+ buttonPaddingRight: 'size',
22
+ detailsContainerPadding: 'size',
23
+ playIconContainerBackground: 'color'
20
24
  },
21
25
  Table: {
22
26
  // variant: compact
@@ -39,6 +43,69 @@ module.exports = {
39
43
  size: 'size',
40
44
  thickness: 'border'
41
45
  },
46
+ Video: {
47
+ borderColor: 'color',
48
+ pauseIcon: 'icon',
49
+ replayIcon: 'icon',
50
+ playIcon: 'icon'
51
+ },
52
+ VideoMiddleControlButton: {
53
+ width: 'size',
54
+ height: 'size',
55
+ background: 'color',
56
+ iconColor: 'color'
57
+ },
58
+ VideoControlBar: {
59
+ paddingTop: 'size',
60
+ paddingBottom: 'size',
61
+ paddingLeft: 'size',
62
+ paddingRight: 'size',
63
+ paddingLeftCompactMode: 'size',
64
+ paddingRightCompactMode: 'size',
65
+ menuBottom: 'size',
66
+ menuRight: 'size',
67
+ menuMarginLeft: 'size',
68
+ captionsIcon: 'icon',
69
+ settingsIcon: 'icon',
70
+ minimizeIcon: 'icon',
71
+ maximizeIcon: 'icon'
72
+ },
73
+ VideoButton: {
74
+ color: 'color'
75
+ },
76
+ VideoMenu: {
77
+ padding: 'size',
78
+ background: 'color',
79
+ checkMarkWidth: 'size',
80
+ checkMarkHeight: 'size',
81
+ checkMarkSelectedColor: 'color',
82
+ checkMarkHoverColor: 'color',
83
+ checkMarkFocusColor: 'color',
84
+ checkMarkUnselectedColor: 'color',
85
+ checkMarkIcon: 'icon'
86
+ },
87
+ VideoProgressBar: {
88
+ thumbHeight: 'size',
89
+ thumbWidth: 'size',
90
+ thumbBackground: 'color',
91
+ timestampMarginLeft: 'size',
92
+ timestampMarginRight: 'size',
93
+ trackGradientStart: 'color',
94
+ trackGradientEnd: 'color',
95
+ rangeBackground: 'color'
96
+ },
97
+ VideoVolumeSlider: {
98
+ marginLeft: 'size',
99
+ marginRight: 'size',
100
+ thumbHeight: 'size',
101
+ thumbWidth: 'size',
102
+ thumbBackground: 'color',
103
+ trackGradientStart: 'color',
104
+ trackGradientEnd: 'color',
105
+ rangeBackground: 'color',
106
+ mutedIcon: 'icon',
107
+ unmutedIcon: 'icon'
108
+ },
42
109
  Callout: {
43
110
  background: 'color',
44
111
  gap: 'size',
@@ -59,6 +126,19 @@ module.exports = {
59
126
  itemBorderColor: 'color',
60
127
  itemPadding: 'size'
61
128
  },
129
+ QuantitySelector: {
130
+ leftIcon: 'icon',
131
+ rightIcon: 'icon',
132
+ iconSize: 'size',
133
+ borderColor: 'color',
134
+ inputBorderColor: 'color',
135
+ inputBackgroundColor: 'color',
136
+ inputBorderWidth: 'size',
137
+ padding: 'size',
138
+ backgroundColor: 'color',
139
+ textColor: 'color',
140
+ iconColor: 'color'
141
+ },
62
142
  Footnote: {
63
143
  footnoteBackground: 'color',
64
144
  footnoteBorderTopSizeMd: 'border',
@@ -113,6 +193,17 @@ module.exports = {
113
193
  paddingTop: 'size',
114
194
  paddingBottom: 'size'
115
195
  },
196
+ BlockQuote: {
197
+ color: 'color',
198
+ backgroundGradient: 'gradient',
199
+ paddingLeft: 'size',
200
+ paddingRight: 'size',
201
+ paddingTop: 'size',
202
+ paddingBottom: 'size',
203
+ marginBottom: 'size',
204
+ width: 'size'
205
+ },
206
+
116
207
  Box: { backgroundColor: 'color', gradient: 'gradient' },
117
208
  Button: {
118
209
  borderColor: 'color',
@@ -474,6 +565,7 @@ module.exports = {
474
565
  },
475
566
  InputSupports: { space: 'integer' },
476
567
  IconButton: {
568
+ icon: 'icon',
477
569
  backgroundColor: 'color',
478
570
  borderRadius: 'radius',
479
571
  borderColor: 'color',
@@ -528,6 +620,38 @@ module.exports = {
528
620
  itemIconColor: 'color',
529
621
  listGutter: 'size'
530
622
  },
623
+ ListBox: {
624
+ groupBorderRadius: 'radius',
625
+ groupBorderWidth: 'border',
626
+ groupFontSize: 'size',
627
+ groupFontName: 'fontName',
628
+ groupFontWeight: 'fontWeight',
629
+ groupColor: 'color',
630
+ groupBorderColor: 'color',
631
+ groupBackgroundColor: 'color',
632
+ groupPaddingTop: 'size',
633
+ groupPaddingBottom: 'size',
634
+ groupPaddingLeft: 'size',
635
+ groupPaddingRight: 'size',
636
+ groupIcon: 'icon',
637
+ itemDisplay: 'show',
638
+ itemFontName: 'fontName',
639
+ itemFontWeight: 'fontWeight',
640
+ itemFontSize: 'size',
641
+ itemPaddingTop: 'size',
642
+ itemPaddingBottom: 'size',
643
+ itemPaddingLeft: 'size',
644
+ itemPaddingRight: 'size',
645
+ itemColor: 'color',
646
+ itemBackgroundColor: 'color',
647
+ itemBorderBackgroundColor: 'color',
648
+ itemBorderLeftColor: 'color',
649
+ itemBorderLeftWidth: 'border',
650
+ itemBorderWidth: 'border',
651
+ itemTextDecoration: 'textLine',
652
+ itemOutline: 'border',
653
+ shadow: 'shadow'
654
+ },
531
655
  OrderedList: {
532
656
  headerFontWeight: 'fontWeight',
533
657
  headerFontName: 'fontName',
@@ -1036,6 +1160,26 @@ module.exports = {
1036
1160
  paddingVertical: 'size',
1037
1161
  borderRadius: 'radius'
1038
1162
  },
1163
+ StoryCard: {
1164
+ outerBorderColor: 'color',
1165
+ outerBorderGap: 'size',
1166
+ outerBorderWidth: 'border',
1167
+ flex: 'integer',
1168
+ backgroundColor: 'color',
1169
+ borderColor: 'color',
1170
+ borderRadius: 'radius',
1171
+ borderWidth: 'border',
1172
+ paddingBottom: 'size',
1173
+ paddingLeft: 'size',
1174
+ paddingRight: 'size',
1175
+ paddingTop: 'size',
1176
+ minWidth: 'size',
1177
+ shadow: 'shadow',
1178
+ contentAlignItems: 'flexAlign',
1179
+ contentJustifyContent: 'flexJustifyContent',
1180
+ contentFlexGrow: 'integer',
1181
+ contentFlexShrink: 'integer'
1182
+ },
1039
1183
  Tabs: {
1040
1184
  nextIcon: 'icon',
1041
1185
  previousIcon: 'icon',
@@ -1117,6 +1261,55 @@ module.exports = {
1117
1261
  outerBorderGap: 'size',
1118
1262
  outerBackgroundColor: 'color'
1119
1263
  },
1264
+ Testimonial: {
1265
+ testimonialContainerGap: 'size',
1266
+ quoteContainerGap: 'size',
1267
+ iconColor: 'color',
1268
+ dividerBorder: 'border',
1269
+ dividerBackgroundColor: 'color',
1270
+ figcaptionGap: 'size',
1271
+ textColor: 'color',
1272
+ imageSize: 'size',
1273
+ icon: 'icon'
1274
+ },
1275
+ TermsAndConditions: {
1276
+ contentPaddingBottom: 'size',
1277
+ contentPaddingLeft: 'size',
1278
+ mdContentPaddingBottom: 'size',
1279
+ mdContentPaddingLeft: 'size',
1280
+ orderedPadding: 'size',
1281
+ unorderedPadding: 'size',
1282
+ listFontName: 'fontName',
1283
+ listFontWeight: 'fontWeight',
1284
+ listFontSize: 'fontSize',
1285
+ listLineHeight: 'lineHeight',
1286
+ listColor: 'color',
1287
+ listMarginBottom: 'size',
1288
+ listMarginLeft: 'size',
1289
+ titleColor: 'color',
1290
+ titleFontSize: 'fontSize',
1291
+ titleLineHeight: 'lineHeight',
1292
+ titlePaddingLeft: 'size',
1293
+ expandIconContainerBorder: 'border',
1294
+ expandIconContainerBorderColor: 'color',
1295
+ expandIconContainerHeight: 'size',
1296
+ expandIconContainerMarginX: 'size',
1297
+ expandIconContainerMarginY: 'size',
1298
+ expandIconContainerWidth: 'size',
1299
+ expandIconContainerAlignItems: 'flexAlign',
1300
+ expandIconContainerJustifyContent: 'flexJustifyContent',
1301
+ expandTitleColor: 'color',
1302
+ expandTitleFontSize: 'size',
1303
+ expandTitleLineHeight: 'lineHeight',
1304
+ expandTitleMarginX: 'size',
1305
+ expandTitleMarginY: 'size',
1306
+ expandBaseBorderWidth: 'border',
1307
+ expandContentPaddingBottom: 'size',
1308
+ expandContentPaddingLeft: 'size',
1309
+ expandContentPaddingRight: 'size',
1310
+ expandContentPaddingTop: 'size',
1311
+ icon: 'icon'
1312
+ },
1120
1313
  TextArea: { minLines: 'integer', maxLines: 'integer' },
1121
1314
  TextInput: {
1122
1315
  backgroundColor: 'color',
@@ -1145,6 +1338,24 @@ module.exports = {
1145
1338
  iconSize: 'size',
1146
1339
  iconColor: 'color'
1147
1340
  },
1341
+ Toast: {
1342
+ containerBackgroundColor: 'color',
1343
+ containerGap: 'size',
1344
+ animationHeightBefore: 'size',
1345
+ animationHeightAfter: 'size',
1346
+ animationPaddingBottomBefore: 'size',
1347
+ animationPaddingBottomAfter: 'size',
1348
+ animationPaddingTopBefore: 'size',
1349
+ animationPaddingTopAfter: 'size',
1350
+ animationBackgroundColorBefore: 'color',
1351
+ animationBackgroundColorAfter: 'color',
1352
+ animationColorBefore: 'color',
1353
+ animationColorAfter: 'color',
1354
+ animationDivColorBefore: 'color',
1355
+ animationDivColorAfter: 'color',
1356
+ animationFillColorBefore: 'color',
1357
+ animationFillColorAfter: 'color'
1358
+ },
1148
1359
  ToggleSwitch: {
1149
1360
  borderColor: 'color',
1150
1361
  borderWidth: 'border',
@@ -1252,6 +1463,22 @@ module.exports = {
1252
1463
  fontScaleCap: 'fontSize',
1253
1464
  letterSpacing: 'letterSpacing'
1254
1465
  },
1466
+ Countdown: {
1467
+ containerBorderRadius: 'radius',
1468
+ containerGradient: 'gradient',
1469
+ containerInverseBorder: 'border',
1470
+ containerInverseBorderColor: 'color',
1471
+ containerPaddingBottomTop: 'size',
1472
+ containerPaddingLeftRight: 'size',
1473
+ inverseBorderColor: 'color',
1474
+ labelBorderColor: 'color',
1475
+ textFontSize: 'fontSize',
1476
+ textLineHeight: 'lineHeight',
1477
+ labelFontSize: 'fontSize',
1478
+ labelLineHeight: 'lineHeight',
1479
+ textTimerFontWeight: 'fontWeight',
1480
+ textTimerFontName: 'fontName'
1481
+ },
1255
1482
  Skeleton: {
1256
1483
  color: 'color',
1257
1484
  size: 'size',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@telus-uds/system-theme-tokens",
3
- "version": "2.21.0",
3
+ "version": "2.23.0",
4
4
  "description": "Theme token schema for UDS",
5
5
  "keywords": [
6
6
  "system"