@telus-uds/system-theme-tokens 3.2.0 → 4.0.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 +25 -2
- package/babel.config.cjs +14 -0
- package/bin/android/build.js +1 -1
- package/bin/ios/build.js +1 -1
- package/bin/ios/tokens.js +1 -1
- package/build/cjs/appearances.js +435 -0
- package/build/cjs/components.js +2221 -0
- package/build/cjs/index.js +27 -0
- package/build/cjs/tokens.js +390 -0
- package/build/esm/appearances.js +430 -0
- package/build/esm/components.js +2215 -0
- package/build/esm/index.js +9 -0
- package/build/esm/tokens.js +385 -0
- package/package.json +8 -12
- package/{components.js → src/components.js} +22 -1
- /package/{appearances.js → src/appearances.js} +0 -0
- /package/{index.js → src/index.js} +0 -0
- /package/{tokens.js → src/tokens.js} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,12 +1,35 @@
|
|
|
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, 31 Jan 2025 20:49:18 GMT and should not be manually modified.
|
|
4
4
|
|
|
5
5
|
<!-- Start content -->
|
|
6
6
|
|
|
7
|
+
## 4.0.0
|
|
8
|
+
|
|
9
|
+
Fri, 31 Jan 2025 20:49:18 GMT
|
|
10
|
+
|
|
11
|
+
### Major changes
|
|
12
|
+
|
|
13
|
+
- Add CommonJS builds along with ESM (shahzaibkhalidmalik@outlook.com)
|
|
14
|
+
- Bump @telus-uds/system-constants to v3.0.0
|
|
15
|
+
|
|
16
|
+
### Minor changes
|
|
17
|
+
|
|
18
|
+
- `Table`: add rowHoverBackgroundColor token (guillermo.peitzner@telus.com)
|
|
19
|
+
|
|
20
|
+
## 3.3.0
|
|
21
|
+
|
|
22
|
+
Fri, 10 Jan 2025 21:49:25 GMT
|
|
23
|
+
|
|
24
|
+
### Minor changes
|
|
25
|
+
|
|
26
|
+
- `MultiSelectFilter`: add label and button icon tokens (kristina.kirpichnikova@telus.com)
|
|
27
|
+
- `Search`: `leftIcon` and `leftIconColor` tokens added to customize the new icon in the left side of the component (35577399+JoshHC@users.noreply.github.com)
|
|
28
|
+
- `PriceLockup`: new tokens `centsPaddingTop` and `currencySymbolPaddingTop` added to the component (35577399+JoshHC@users.noreply.github.com)
|
|
29
|
+
|
|
7
30
|
## 3.2.0
|
|
8
31
|
|
|
9
|
-
Thu, 19 Dec 2024
|
|
32
|
+
Thu, 19 Dec 2024 05:02:20 GMT
|
|
10
33
|
|
|
11
34
|
### Minor changes
|
|
12
35
|
|
package/babel.config.cjs
ADDED
package/bin/android/build.js
CHANGED
|
@@ -3,7 +3,7 @@ import { resolve, dirname } from 'path'
|
|
|
3
3
|
import { fileURLToPath } from 'url'
|
|
4
4
|
import chalk from 'chalk'
|
|
5
5
|
|
|
6
|
-
import components from '../../components.js'
|
|
6
|
+
import components from '../../src/components.js'
|
|
7
7
|
import tokensTemplate from './templates/component.js'
|
|
8
8
|
import modelsTemplate from './templates/model.js'
|
|
9
9
|
// TODO: Prettier doesn't yet support import assertions
|
package/bin/ios/build.js
CHANGED
|
@@ -5,7 +5,7 @@ import chalk from 'chalk'
|
|
|
5
5
|
|
|
6
6
|
import { fileURLToPath } from 'url'
|
|
7
7
|
|
|
8
|
-
import components from '../../components.js'
|
|
8
|
+
import components from '../../src/components.js'
|
|
9
9
|
import tokensTemplate from './templates/component.js'
|
|
10
10
|
import modelsTemplate from './templates/model.js'
|
|
11
11
|
// TODO: Prettier doesn't yet support import assertions
|
package/bin/ios/tokens.js
CHANGED
|
@@ -0,0 +1,435 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _systemConstants = require("@telus-uds/system-constants");
|
|
8
|
+
/*
|
|
9
|
+
* shared appearances
|
|
10
|
+
*/
|
|
11
|
+
const focus = {
|
|
12
|
+
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.",
|
|
13
|
+
values: [true, false],
|
|
14
|
+
type: 'state',
|
|
15
|
+
platforms: ['rn', 'web'] // In most cases, Native Apps team want to skip focus state
|
|
16
|
+
};
|
|
17
|
+
const inputFocus = {
|
|
18
|
+
description: 'Focus states for some input elements are well supported across web, RN, ios and android',
|
|
19
|
+
values: [true],
|
|
20
|
+
type: 'state'
|
|
21
|
+
};
|
|
22
|
+
const hover = {
|
|
23
|
+
description: "Currently web only. Applies when an interactive component's hover handler is triggered, such as on mouseover.",
|
|
24
|
+
values: [true, false],
|
|
25
|
+
type: 'state',
|
|
26
|
+
platforms: ['rn', 'web'] // Native Apps team currently want to skip ios / android hover
|
|
27
|
+
};
|
|
28
|
+
const pressed = {
|
|
29
|
+
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.',
|
|
30
|
+
values: [true, false],
|
|
31
|
+
type: 'state'
|
|
32
|
+
};
|
|
33
|
+
const inactive = {
|
|
34
|
+
description: 'Prevents an interactive component from being interacted with and applies accessibility attributes to indicate to the user that this component cannot be used.',
|
|
35
|
+
values: [true],
|
|
36
|
+
type: 'state'
|
|
37
|
+
};
|
|
38
|
+
const selected = {
|
|
39
|
+
description: 'Applies while an interactive component is the currently selected one in a set of states or components, for example a button in a `ButtonGroup`.',
|
|
40
|
+
values: [true],
|
|
41
|
+
type: 'state'
|
|
42
|
+
};
|
|
43
|
+
const expanded = {
|
|
44
|
+
description: 'Applies when an ExpandCollapse panel is open and the content inside is visible',
|
|
45
|
+
values: [true, false],
|
|
46
|
+
type: 'state'
|
|
47
|
+
};
|
|
48
|
+
const validation = {
|
|
49
|
+
description: 'Validation states for form inputs',
|
|
50
|
+
values: ['error', 'success', 'warning'],
|
|
51
|
+
type: 'state'
|
|
52
|
+
};
|
|
53
|
+
const open = {
|
|
54
|
+
description: 'Applies when a ButtonDropdown is open.',
|
|
55
|
+
values: [true],
|
|
56
|
+
type: 'state'
|
|
57
|
+
};
|
|
58
|
+
|
|
59
|
+
// TODO this is used in radio and checkbox, should re-use validation state above?
|
|
60
|
+
const error = {
|
|
61
|
+
values: [true],
|
|
62
|
+
type: 'state'
|
|
63
|
+
};
|
|
64
|
+
const checked = {
|
|
65
|
+
description: 'Corresponds to a selected state for a checkbox or radio',
|
|
66
|
+
values: [true],
|
|
67
|
+
type: 'state'
|
|
68
|
+
};
|
|
69
|
+
const disabled = {
|
|
70
|
+
values: [true],
|
|
71
|
+
type: 'state'
|
|
72
|
+
};
|
|
73
|
+
var _default = exports.default = {
|
|
74
|
+
// system-wide appearances
|
|
75
|
+
system: {
|
|
76
|
+
viewport: {
|
|
77
|
+
description: 'The size label for the current screen viewport based on the current screen width',
|
|
78
|
+
values: _systemConstants.viewports.keys,
|
|
79
|
+
type: 'state'
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
ActionCard: {
|
|
83
|
+
hover,
|
|
84
|
+
validation
|
|
85
|
+
},
|
|
86
|
+
SplashButton: {
|
|
87
|
+
hover
|
|
88
|
+
},
|
|
89
|
+
Button: {
|
|
90
|
+
focus,
|
|
91
|
+
hover,
|
|
92
|
+
pressed,
|
|
93
|
+
inactive,
|
|
94
|
+
selected
|
|
95
|
+
},
|
|
96
|
+
PreviewCard: {
|
|
97
|
+
pressed,
|
|
98
|
+
hover,
|
|
99
|
+
focus
|
|
100
|
+
},
|
|
101
|
+
ButtonDropdown: {
|
|
102
|
+
focus,
|
|
103
|
+
hover,
|
|
104
|
+
pressed,
|
|
105
|
+
inactive,
|
|
106
|
+
selected,
|
|
107
|
+
open
|
|
108
|
+
},
|
|
109
|
+
ButtonGroupItem: {
|
|
110
|
+
focus,
|
|
111
|
+
hover,
|
|
112
|
+
pressed,
|
|
113
|
+
inactive,
|
|
114
|
+
selected
|
|
115
|
+
},
|
|
116
|
+
Card: {
|
|
117
|
+
focus,
|
|
118
|
+
hover,
|
|
119
|
+
pressed,
|
|
120
|
+
selected
|
|
121
|
+
},
|
|
122
|
+
CardGroup: {
|
|
123
|
+
pressed,
|
|
124
|
+
selected,
|
|
125
|
+
focus,
|
|
126
|
+
hover
|
|
127
|
+
},
|
|
128
|
+
CarouselTabsPanelItem: {
|
|
129
|
+
focus,
|
|
130
|
+
hover,
|
|
131
|
+
pressed,
|
|
132
|
+
inactive,
|
|
133
|
+
selected
|
|
134
|
+
},
|
|
135
|
+
CarouselThumbnail: {
|
|
136
|
+
focus,
|
|
137
|
+
hover,
|
|
138
|
+
pressed
|
|
139
|
+
},
|
|
140
|
+
Checkbox: {
|
|
141
|
+
checked,
|
|
142
|
+
error,
|
|
143
|
+
focus,
|
|
144
|
+
hover,
|
|
145
|
+
inactive
|
|
146
|
+
},
|
|
147
|
+
CheckboxCard: {
|
|
148
|
+
pressed,
|
|
149
|
+
checked,
|
|
150
|
+
error,
|
|
151
|
+
focus,
|
|
152
|
+
hover,
|
|
153
|
+
inactive
|
|
154
|
+
},
|
|
155
|
+
ChevronLink: {
|
|
156
|
+
focus,
|
|
157
|
+
hover,
|
|
158
|
+
pressed
|
|
159
|
+
},
|
|
160
|
+
ColourToggle: {
|
|
161
|
+
focus,
|
|
162
|
+
hover,
|
|
163
|
+
pressed,
|
|
164
|
+
selected
|
|
165
|
+
},
|
|
166
|
+
DatePicker: {
|
|
167
|
+
pressed,
|
|
168
|
+
selected,
|
|
169
|
+
focus
|
|
170
|
+
},
|
|
171
|
+
DownloadApp: {
|
|
172
|
+
focus,
|
|
173
|
+
hover,
|
|
174
|
+
pressed
|
|
175
|
+
},
|
|
176
|
+
ExpandCollapseControl: {
|
|
177
|
+
pressed,
|
|
178
|
+
hover,
|
|
179
|
+
focus,
|
|
180
|
+
expanded
|
|
181
|
+
},
|
|
182
|
+
ExpandCollapseMiniControl: {
|
|
183
|
+
focus
|
|
184
|
+
},
|
|
185
|
+
ExpandCollapsePanel: {
|
|
186
|
+
expanded
|
|
187
|
+
},
|
|
188
|
+
Feedback: {
|
|
189
|
+
validation
|
|
190
|
+
},
|
|
191
|
+
HorizontalScrollButton: {
|
|
192
|
+
focus,
|
|
193
|
+
hover,
|
|
194
|
+
pressed
|
|
195
|
+
},
|
|
196
|
+
IconButton: {
|
|
197
|
+
focus,
|
|
198
|
+
hover,
|
|
199
|
+
pressed
|
|
200
|
+
},
|
|
201
|
+
Link: {
|
|
202
|
+
focus,
|
|
203
|
+
hover,
|
|
204
|
+
pressed,
|
|
205
|
+
iconPosition: {
|
|
206
|
+
description: 'Theme styles to be applied to icon links depending on where the icon is in relation to the link text',
|
|
207
|
+
values: ['left', 'right', 'inline'],
|
|
208
|
+
type: 'state'
|
|
209
|
+
},
|
|
210
|
+
quiet: {
|
|
211
|
+
description: 'When it is true, it does not show the decoration',
|
|
212
|
+
values: [true, false],
|
|
213
|
+
type: 'state'
|
|
214
|
+
}
|
|
215
|
+
},
|
|
216
|
+
Listbox: {
|
|
217
|
+
focus,
|
|
218
|
+
hover,
|
|
219
|
+
pressed,
|
|
220
|
+
expanded,
|
|
221
|
+
current: {
|
|
222
|
+
description: 'When the current item is selected',
|
|
223
|
+
values: [true, false],
|
|
224
|
+
type: 'state'
|
|
225
|
+
},
|
|
226
|
+
isChild: {
|
|
227
|
+
description: 'when the item is child of another child',
|
|
228
|
+
values: [true, false],
|
|
229
|
+
type: 'state'
|
|
230
|
+
}
|
|
231
|
+
},
|
|
232
|
+
Modal: {
|
|
233
|
+
maxWidth: {
|
|
234
|
+
description: 'Whether a modal should expand responsively to the maximum of 8 layout columns width',
|
|
235
|
+
values: [true],
|
|
236
|
+
type: 'state'
|
|
237
|
+
},
|
|
238
|
+
width: {
|
|
239
|
+
description: 'The width of the modal',
|
|
240
|
+
values: ['s', 'm', 'l', 'xl'],
|
|
241
|
+
type: 'state'
|
|
242
|
+
}
|
|
243
|
+
},
|
|
244
|
+
MultiSelectFilter: {
|
|
245
|
+
maxHeight: {
|
|
246
|
+
description: 'Whether MultiselectFilter modal should expand responsively to content or a set maximu height',
|
|
247
|
+
values: [true],
|
|
248
|
+
type: 'state'
|
|
249
|
+
},
|
|
250
|
+
maxWidth: {
|
|
251
|
+
description: 'Whether MultiselectFilter modal should expand to content or a set maximuh width',
|
|
252
|
+
values: [true],
|
|
253
|
+
type: 'state'
|
|
254
|
+
}
|
|
255
|
+
},
|
|
256
|
+
NavigationBar: {
|
|
257
|
+
focus,
|
|
258
|
+
pressed,
|
|
259
|
+
hover,
|
|
260
|
+
selected,
|
|
261
|
+
expanded,
|
|
262
|
+
viewport: {
|
|
263
|
+
description: 'The size label for the current screen viewport based on the current screen width',
|
|
264
|
+
values: _systemConstants.viewports.keys,
|
|
265
|
+
type: 'state'
|
|
266
|
+
}
|
|
267
|
+
},
|
|
268
|
+
Notification: {
|
|
269
|
+
system: {
|
|
270
|
+
values: [true],
|
|
271
|
+
type: 'state'
|
|
272
|
+
},
|
|
273
|
+
validation
|
|
274
|
+
},
|
|
275
|
+
PaginationPageButton: {
|
|
276
|
+
focus,
|
|
277
|
+
hover,
|
|
278
|
+
pressed,
|
|
279
|
+
selected
|
|
280
|
+
},
|
|
281
|
+
PaginationSideButton: {
|
|
282
|
+
focus,
|
|
283
|
+
hover,
|
|
284
|
+
pressed,
|
|
285
|
+
selected,
|
|
286
|
+
direction: {
|
|
287
|
+
values: ['previous', 'next'],
|
|
288
|
+
description: "Determines which way does the button navigate in Pagination's context",
|
|
289
|
+
type: 'state'
|
|
290
|
+
},
|
|
291
|
+
compact: {
|
|
292
|
+
values: [true],
|
|
293
|
+
description: 'Determines if the "Next" and "Previous" labels should be omitted',
|
|
294
|
+
type: 'state'
|
|
295
|
+
}
|
|
296
|
+
},
|
|
297
|
+
ProgressBar: {
|
|
298
|
+
inactive
|
|
299
|
+
},
|
|
300
|
+
QuickLinksList: {
|
|
301
|
+
hover,
|
|
302
|
+
focus,
|
|
303
|
+
pressed
|
|
304
|
+
},
|
|
305
|
+
QuickLinksFeatureItem: {
|
|
306
|
+
hover,
|
|
307
|
+
focus,
|
|
308
|
+
pressed
|
|
309
|
+
},
|
|
310
|
+
QuantitySelector: {
|
|
311
|
+
focus,
|
|
312
|
+
hover,
|
|
313
|
+
disabled,
|
|
314
|
+
pressed
|
|
315
|
+
},
|
|
316
|
+
Radio: {
|
|
317
|
+
checked,
|
|
318
|
+
error,
|
|
319
|
+
focus,
|
|
320
|
+
hover,
|
|
321
|
+
inactive
|
|
322
|
+
},
|
|
323
|
+
RadioCard: {
|
|
324
|
+
pressed,
|
|
325
|
+
checked,
|
|
326
|
+
error,
|
|
327
|
+
focus,
|
|
328
|
+
hover,
|
|
329
|
+
inactive
|
|
330
|
+
},
|
|
331
|
+
Search: {
|
|
332
|
+
hover,
|
|
333
|
+
focus: inputFocus,
|
|
334
|
+
inactive
|
|
335
|
+
},
|
|
336
|
+
SearchButton: {
|
|
337
|
+
hover,
|
|
338
|
+
focus,
|
|
339
|
+
pressed,
|
|
340
|
+
inactive
|
|
341
|
+
},
|
|
342
|
+
Select: {
|
|
343
|
+
validation,
|
|
344
|
+
hover,
|
|
345
|
+
focus: inputFocus,
|
|
346
|
+
inactive,
|
|
347
|
+
active: {
|
|
348
|
+
values: [true],
|
|
349
|
+
type: 'state'
|
|
350
|
+
}
|
|
351
|
+
},
|
|
352
|
+
SideNavItem: {
|
|
353
|
+
active: {
|
|
354
|
+
description: 'Used to mark currently active Item or and ItemGroup containing the currently active Item',
|
|
355
|
+
values: [true, false],
|
|
356
|
+
type: 'state'
|
|
357
|
+
},
|
|
358
|
+
type: {
|
|
359
|
+
description: '`parent` being the toggle button for an ItemsGroup, and `child` an element of the ItemGroup',
|
|
360
|
+
values: ['child', 'parent'],
|
|
361
|
+
type: 'state'
|
|
362
|
+
},
|
|
363
|
+
expanded,
|
|
364
|
+
hover,
|
|
365
|
+
focus
|
|
366
|
+
},
|
|
367
|
+
SideNavItemGroup: {
|
|
368
|
+
expanded
|
|
369
|
+
},
|
|
370
|
+
spacingScale: {
|
|
371
|
+
space: {
|
|
372
|
+
description: 'Index of the intended position on the spacing scale',
|
|
373
|
+
values: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12],
|
|
374
|
+
type: 'state'
|
|
375
|
+
}
|
|
376
|
+
},
|
|
377
|
+
StoryCard: {
|
|
378
|
+
focus,
|
|
379
|
+
hover,
|
|
380
|
+
pressed
|
|
381
|
+
},
|
|
382
|
+
TabsItem: {
|
|
383
|
+
focus,
|
|
384
|
+
hover,
|
|
385
|
+
pressed,
|
|
386
|
+
selected
|
|
387
|
+
},
|
|
388
|
+
TabBarItem: {
|
|
389
|
+
focus,
|
|
390
|
+
hover,
|
|
391
|
+
pressed,
|
|
392
|
+
selected
|
|
393
|
+
},
|
|
394
|
+
TagsItem: {
|
|
395
|
+
focus,
|
|
396
|
+
hover,
|
|
397
|
+
pressed,
|
|
398
|
+
inactive,
|
|
399
|
+
selected
|
|
400
|
+
},
|
|
401
|
+
TextInput: {
|
|
402
|
+
validation,
|
|
403
|
+
hover,
|
|
404
|
+
inactive,
|
|
405
|
+
focus: inputFocus
|
|
406
|
+
},
|
|
407
|
+
TermsAndConditions: {
|
|
408
|
+
expanded,
|
|
409
|
+
focus,
|
|
410
|
+
hover,
|
|
411
|
+
pressed
|
|
412
|
+
},
|
|
413
|
+
ToggleSwitch: {
|
|
414
|
+
focus,
|
|
415
|
+
hover,
|
|
416
|
+
pressed,
|
|
417
|
+
inactive,
|
|
418
|
+
selected
|
|
419
|
+
},
|
|
420
|
+
TooltipButton: {
|
|
421
|
+
focus,
|
|
422
|
+
hover,
|
|
423
|
+
pressed
|
|
424
|
+
},
|
|
425
|
+
VideoPickerThumbnail: {
|
|
426
|
+
focus,
|
|
427
|
+
hover,
|
|
428
|
+
pressed,
|
|
429
|
+
selected
|
|
430
|
+
},
|
|
431
|
+
SkipLink: {
|
|
432
|
+
focus,
|
|
433
|
+
pressed
|
|
434
|
+
}
|
|
435
|
+
};
|