@telus-uds/theme-allium 2.0.0 → 2.1.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 +28 -0
- package/build/schema.json +138 -0
- package/build/theme.js +27 -2
- package/package.json +2 -2
- package/theme.json +30 -0
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,34 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
## [2.1.0](https://github.com/telus/universal-design-system/compare/@telus-uds/theme-allium/v2.0.0...@telus-uds/theme-allium/v2.1.0) (2022-03-03)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
- **components-base:** add ToggleSwitchGroup ([#1307](https://github.com/telus/universal-design-system/issues/1307)) ([402630a](https://github.com/telus/universal-design-system/commit/402630ad04c2d81c4f882fed564cf4ae33096cea))
|
|
10
|
+
|
|
11
|
+
### Change summary (does not include documentation changes)
|
|
12
|
+
|
|
13
|
+
#### New keys
|
|
14
|
+
|
|
15
|
+
- `components.ToggleSwitch.rules.9.tokens.labelColor`
|
|
16
|
+
- `components.ToggleSwitch.tokens.labelColor`
|
|
17
|
+
- `components.ToggleSwitch.tokens.labelFontName`
|
|
18
|
+
- `components.ToggleSwitch.tokens.labelFontSize`
|
|
19
|
+
- `components.ToggleSwitch.tokens.labelFontWeight`
|
|
20
|
+
- `components.ToggleSwitch.tokens.labelLineHeight`
|
|
21
|
+
- `components.ToggleSwitch.tokens.labelMarginLeft`
|
|
22
|
+
- `components.ToggleSwitchGroup.appearances.viewport`
|
|
23
|
+
- `components.ToggleSwitchGroup.rules.0.if.viewport.0`
|
|
24
|
+
- `components.ToggleSwitchGroup.rules.0.if.viewport.1`
|
|
25
|
+
- `components.ToggleSwitchGroup.rules.0.tokens.space`
|
|
26
|
+
- `components.ToggleSwitchGroup.tokens.alignItems`
|
|
27
|
+
- `components.ToggleSwitchGroup.tokens.direction`
|
|
28
|
+
- `components.ToggleSwitchGroup.tokens.flexGrow`
|
|
29
|
+
- `components.ToggleSwitchGroup.tokens.flexShrink`
|
|
30
|
+
- `components.ToggleSwitchGroup.tokens.justifyContent`
|
|
31
|
+
- `components.ToggleSwitchGroup.tokens.space`
|
|
32
|
+
|
|
5
33
|
## [2.0.0](https://github.com/telus/universal-design-system/compare/@telus-uds/theme-allium/v1.0.0...@telus-uds/theme-allium/v2.0.0) (2022-02-28)
|
|
6
34
|
|
|
7
35
|
### Features
|
package/build/schema.json
CHANGED
|
@@ -9076,6 +9076,24 @@
|
|
|
9076
9076
|
"iconColor": {
|
|
9077
9077
|
"$ref": "#color"
|
|
9078
9078
|
},
|
|
9079
|
+
"labelColor": {
|
|
9080
|
+
"$ref": "#color"
|
|
9081
|
+
},
|
|
9082
|
+
"labelFontName": {
|
|
9083
|
+
"$ref": "#fontName"
|
|
9084
|
+
},
|
|
9085
|
+
"labelFontSize": {
|
|
9086
|
+
"$ref": "#fontSize"
|
|
9087
|
+
},
|
|
9088
|
+
"labelFontWeight": {
|
|
9089
|
+
"$ref": "#fontWeight"
|
|
9090
|
+
},
|
|
9091
|
+
"labelLineHeight": {
|
|
9092
|
+
"$ref": "#lineHeight"
|
|
9093
|
+
},
|
|
9094
|
+
"labelMarginLeft": {
|
|
9095
|
+
"$ref": "#size"
|
|
9096
|
+
},
|
|
9079
9097
|
"switchSize": {
|
|
9080
9098
|
"$ref": "#size"
|
|
9081
9099
|
},
|
|
@@ -9118,6 +9136,12 @@
|
|
|
9118
9136
|
"trackBorderRadius",
|
|
9119
9137
|
"iconSize",
|
|
9120
9138
|
"iconColor",
|
|
9139
|
+
"labelColor",
|
|
9140
|
+
"labelFontName",
|
|
9141
|
+
"labelFontSize",
|
|
9142
|
+
"labelFontWeight",
|
|
9143
|
+
"labelLineHeight",
|
|
9144
|
+
"labelMarginLeft",
|
|
9121
9145
|
"switchSize",
|
|
9122
9146
|
"switchColor",
|
|
9123
9147
|
"switchBorderColor",
|
|
@@ -9206,6 +9230,24 @@
|
|
|
9206
9230
|
"iconColor": {
|
|
9207
9231
|
"$ref": "#color"
|
|
9208
9232
|
},
|
|
9233
|
+
"labelColor": {
|
|
9234
|
+
"$ref": "#color"
|
|
9235
|
+
},
|
|
9236
|
+
"labelFontName": {
|
|
9237
|
+
"$ref": "#fontName"
|
|
9238
|
+
},
|
|
9239
|
+
"labelFontSize": {
|
|
9240
|
+
"$ref": "#fontSize"
|
|
9241
|
+
},
|
|
9242
|
+
"labelFontWeight": {
|
|
9243
|
+
"$ref": "#fontWeight"
|
|
9244
|
+
},
|
|
9245
|
+
"labelLineHeight": {
|
|
9246
|
+
"$ref": "#lineHeight"
|
|
9247
|
+
},
|
|
9248
|
+
"labelMarginLeft": {
|
|
9249
|
+
"$ref": "#size"
|
|
9250
|
+
},
|
|
9209
9251
|
"switchSize": {
|
|
9210
9252
|
"$ref": "#size"
|
|
9211
9253
|
},
|
|
@@ -9242,6 +9284,101 @@
|
|
|
9242
9284
|
"rules"
|
|
9243
9285
|
]
|
|
9244
9286
|
},
|
|
9287
|
+
"ToggleSwitchGroup": {
|
|
9288
|
+
"type": "object",
|
|
9289
|
+
"additionalProperties": false,
|
|
9290
|
+
"properties": {
|
|
9291
|
+
"appearances": {
|
|
9292
|
+
"type": "object",
|
|
9293
|
+
"additionalProperties": false,
|
|
9294
|
+
"patternProperties": {
|
|
9295
|
+
"^[a-z]+([A-Z0-9][a-z0-9]*)*$": {
|
|
9296
|
+
"$ref": "#appearance"
|
|
9297
|
+
}
|
|
9298
|
+
}
|
|
9299
|
+
},
|
|
9300
|
+
"tokens": {
|
|
9301
|
+
"type": "object",
|
|
9302
|
+
"additionalProperties": false,
|
|
9303
|
+
"properties": {
|
|
9304
|
+
"space": {
|
|
9305
|
+
"$ref": "#integer"
|
|
9306
|
+
},
|
|
9307
|
+
"direction": {
|
|
9308
|
+
"$ref": "#direction"
|
|
9309
|
+
},
|
|
9310
|
+
"alignItems": {
|
|
9311
|
+
"$ref": "#flexAlign"
|
|
9312
|
+
},
|
|
9313
|
+
"justifyContent": {
|
|
9314
|
+
"$ref": "#flexJustifyContent"
|
|
9315
|
+
},
|
|
9316
|
+
"flexGrow": {
|
|
9317
|
+
"$ref": "#integer"
|
|
9318
|
+
},
|
|
9319
|
+
"flexShrink": {
|
|
9320
|
+
"$ref": "#integer"
|
|
9321
|
+
}
|
|
9322
|
+
},
|
|
9323
|
+
"required": [
|
|
9324
|
+
"space",
|
|
9325
|
+
"direction",
|
|
9326
|
+
"alignItems",
|
|
9327
|
+
"justifyContent",
|
|
9328
|
+
"flexGrow",
|
|
9329
|
+
"flexShrink"
|
|
9330
|
+
]
|
|
9331
|
+
},
|
|
9332
|
+
"rules": {
|
|
9333
|
+
"type": "array",
|
|
9334
|
+
"items": {
|
|
9335
|
+
"type": "object",
|
|
9336
|
+
"additionalProperties": false,
|
|
9337
|
+
"properties": {
|
|
9338
|
+
"if": {
|
|
9339
|
+
"type": "object",
|
|
9340
|
+
"minProperties": 1
|
|
9341
|
+
},
|
|
9342
|
+
"tokens": {
|
|
9343
|
+
"type": "object",
|
|
9344
|
+
"additionalProperties": false,
|
|
9345
|
+
"properties": {
|
|
9346
|
+
"space": {
|
|
9347
|
+
"$ref": "#integer"
|
|
9348
|
+
},
|
|
9349
|
+
"direction": {
|
|
9350
|
+
"$ref": "#direction"
|
|
9351
|
+
},
|
|
9352
|
+
"alignItems": {
|
|
9353
|
+
"$ref": "#flexAlign"
|
|
9354
|
+
},
|
|
9355
|
+
"justifyContent": {
|
|
9356
|
+
"$ref": "#flexJustifyContent"
|
|
9357
|
+
},
|
|
9358
|
+
"flexGrow": {
|
|
9359
|
+
"$ref": "#integer"
|
|
9360
|
+
},
|
|
9361
|
+
"flexShrink": {
|
|
9362
|
+
"$ref": "#integer"
|
|
9363
|
+
}
|
|
9364
|
+
}
|
|
9365
|
+
},
|
|
9366
|
+
"description": {
|
|
9367
|
+
"type": "string"
|
|
9368
|
+
}
|
|
9369
|
+
},
|
|
9370
|
+
"required": [
|
|
9371
|
+
"if",
|
|
9372
|
+
"tokens"
|
|
9373
|
+
]
|
|
9374
|
+
}
|
|
9375
|
+
}
|
|
9376
|
+
},
|
|
9377
|
+
"required": [
|
|
9378
|
+
"tokens",
|
|
9379
|
+
"rules"
|
|
9380
|
+
]
|
|
9381
|
+
},
|
|
9245
9382
|
"Tooltip": {
|
|
9246
9383
|
"type": "object",
|
|
9247
9384
|
"additionalProperties": false,
|
|
@@ -9777,6 +9914,7 @@
|
|
|
9777
9914
|
"TextArea",
|
|
9778
9915
|
"TextInput",
|
|
9779
9916
|
"ToggleSwitch",
|
|
9917
|
+
"ToggleSwitchGroup",
|
|
9780
9918
|
"Tooltip",
|
|
9781
9919
|
"TooltipButton",
|
|
9782
9920
|
"Typography",
|
package/build/theme.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
*
|
|
3
3
|
* Do not edit directly
|
|
4
|
-
* Generated on
|
|
4
|
+
* Generated on Thu, 03 Mar 2022 12:04:43 GMT
|
|
5
5
|
*
|
|
6
6
|
*/
|
|
7
7
|
|
|
@@ -2566,6 +2566,7 @@ module.exports = {
|
|
|
2566
2566
|
tokens: {
|
|
2567
2567
|
backgroundColor: '#b2b9bf',
|
|
2568
2568
|
iconColor: '#676e73',
|
|
2569
|
+
labelColor: '#676e73',
|
|
2569
2570
|
outerBorderColor: '#b2b9bf'
|
|
2570
2571
|
}
|
|
2571
2572
|
}
|
|
@@ -2579,6 +2580,12 @@ module.exports = {
|
|
|
2579
2580
|
icon: null,
|
|
2580
2581
|
iconColor: '#676e73',
|
|
2581
2582
|
iconSize: 12,
|
|
2583
|
+
labelColor: '#414547',
|
|
2584
|
+
labelFontName: 'HelveticaNow',
|
|
2585
|
+
labelFontSize: 16,
|
|
2586
|
+
labelFontWeight: '400',
|
|
2587
|
+
labelLineHeight: 1.5,
|
|
2588
|
+
labelMarginLeft: 10,
|
|
2582
2589
|
opacity: 1,
|
|
2583
2590
|
outerBackgroundColor: 'rgba(0, 0, 0, 0)',
|
|
2584
2591
|
outerBorderColor: 'rgba(0, 0, 0, 0)',
|
|
@@ -2615,6 +2622,24 @@ module.exports = {
|
|
|
2615
2622
|
width: 40
|
|
2616
2623
|
}
|
|
2617
2624
|
},
|
|
2625
|
+
ToggleSwitchGroup: {
|
|
2626
|
+
appearances: {
|
|
2627
|
+
viewport: {
|
|
2628
|
+
description: 'The size label for the current screen viewport based on the current screen width',
|
|
2629
|
+
type: 'state',
|
|
2630
|
+
values: [ 'xs', 'sm', 'md', 'lg', 'xl' ]
|
|
2631
|
+
}
|
|
2632
|
+
},
|
|
2633
|
+
rules: [ { if: { viewport: [ 'lg', 'xl' ] }, tokens: { space: 3 } } ],
|
|
2634
|
+
tokens: {
|
|
2635
|
+
alignItems: 'flex-start',
|
|
2636
|
+
direction: 'column',
|
|
2637
|
+
flexGrow: 0,
|
|
2638
|
+
flexShrink: 0,
|
|
2639
|
+
justifyContent: 'flex-start',
|
|
2640
|
+
space: 1
|
|
2641
|
+
}
|
|
2642
|
+
},
|
|
2618
2643
|
Tooltip: {
|
|
2619
2644
|
appearances: { inverse: { type: 'variant', values: [ true ] } },
|
|
2620
2645
|
rules: [
|
|
@@ -2987,5 +3012,5 @@ module.exports = {
|
|
|
2987
3012
|
tokens: { size: 96 }
|
|
2988
3013
|
}
|
|
2989
3014
|
},
|
|
2990
|
-
metadata: { name: 'theme-allium', themeTokensVersion: '1.
|
|
3015
|
+
metadata: { name: 'theme-allium', themeTokensVersion: '1.2.0' }
|
|
2991
3016
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@telus-uds/theme-allium",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.1.0",
|
|
4
4
|
"description": "Allium theme",
|
|
5
5
|
"author": "TELUS Digital",
|
|
6
6
|
"homepage": "https://github.com/telus/universal-design-system#readme",
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"dependencies": {},
|
|
10
10
|
"devDependencies": {
|
|
11
11
|
"@telus-uds/palette-allium": "^1.0.0",
|
|
12
|
-
"@telus-uds/system-theme-tokens": "^1.
|
|
12
|
+
"@telus-uds/system-theme-tokens": "^1.2.0",
|
|
13
13
|
"@telus-uds/system-themes": "^0.0.1"
|
|
14
14
|
},
|
|
15
15
|
"peerDependencies": {
|
package/theme.json
CHANGED
|
@@ -3070,6 +3070,7 @@
|
|
|
3070
3070
|
"tokens": {
|
|
3071
3071
|
"backgroundColor": "{palette.color.greyCloud}",
|
|
3072
3072
|
"iconColor": "{palette.color.greyShuttle}",
|
|
3073
|
+
"labelColor": "{palette.color.greyShuttle}",
|
|
3073
3074
|
"outerBorderColor": "{palette.color.greyCloud}"
|
|
3074
3075
|
}
|
|
3075
3076
|
}
|
|
@@ -3083,6 +3084,12 @@
|
|
|
3083
3084
|
"icon": "{system.icon.none}",
|
|
3084
3085
|
"iconColor": "{palette.color.greyShuttle}",
|
|
3085
3086
|
"iconSize": "{palette.size.size12}",
|
|
3087
|
+
"labelColor": "{palette.color.greyCharcoal}",
|
|
3088
|
+
"labelFontName": "{palette.fontName.HelveticaNow}",
|
|
3089
|
+
"labelFontSize": "{palette.fontSize.size16}",
|
|
3090
|
+
"labelFontWeight": "{palette.fontWeight.weight400}",
|
|
3091
|
+
"labelLineHeight": "{palette.lineHeight.ratio3to2}",
|
|
3092
|
+
"labelMarginLeft": "{palette.size.size10}",
|
|
3086
3093
|
"opacity": "{system.opacity.opaque}",
|
|
3087
3094
|
"outerBackgroundColor": "{palette.color.transparent}",
|
|
3088
3095
|
"outerBorderColor": "{palette.color.transparent}",
|
|
@@ -3105,6 +3112,29 @@
|
|
|
3105
3112
|
"width": "{palette.size.size40}"
|
|
3106
3113
|
}
|
|
3107
3114
|
},
|
|
3115
|
+
"ToggleSwitchGroup": {
|
|
3116
|
+
"appearances": {
|
|
3117
|
+
"viewport": "{appearances.system.viewport}"
|
|
3118
|
+
},
|
|
3119
|
+
"rules": [
|
|
3120
|
+
{
|
|
3121
|
+
"if": {
|
|
3122
|
+
"viewport": ["lg", "xl"]
|
|
3123
|
+
},
|
|
3124
|
+
"tokens": {
|
|
3125
|
+
"space": "{system.integer.3}"
|
|
3126
|
+
}
|
|
3127
|
+
}
|
|
3128
|
+
],
|
|
3129
|
+
"tokens": {
|
|
3130
|
+
"alignItems": "{system.flexAlign.flexStart}",
|
|
3131
|
+
"direction": "{system.direction.column}",
|
|
3132
|
+
"flexGrow": "{system.integer.0}",
|
|
3133
|
+
"flexShrink": "{system.integer.0}",
|
|
3134
|
+
"justifyContent": "{system.flexJustifyContent.flexStart}",
|
|
3135
|
+
"space": "{system.integer.1}"
|
|
3136
|
+
}
|
|
3137
|
+
},
|
|
3108
3138
|
"Tooltip": {
|
|
3109
3139
|
"appearances": {
|
|
3110
3140
|
"inverse": {
|