@telus-uds/theme-allium 3.2.1 → 3.4.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.json +52 -1
- package/CHANGELOG.md +27 -2
- package/build/schema.json +766 -670
- package/build/theme.js +78 -9
- package/package.json +2 -2
- package/theme.json +99 -5
package/build/theme.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/*
|
|
2
2
|
*
|
|
3
3
|
* Do not edit directly
|
|
4
|
-
* Generated on Thu,
|
|
4
|
+
* Generated on Thu, 21 Jul 2022 18:02:13 GMT
|
|
5
5
|
*
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
const PaletteIconCheckmark = require('@telus-uds/palette-allium/build/rn/icons/Checkmark')
|
|
9
|
-
const PaletteIconArrowLeft = require('@telus-uds/palette-allium/build/rn/icons/ArrowLeft')
|
|
10
8
|
const PaletteIconArrowRight = require('@telus-uds/palette-allium/build/rn/icons/ArrowRight')
|
|
9
|
+
const PaletteIconArrowLeft = require('@telus-uds/palette-allium/build/rn/icons/ArrowLeft')
|
|
10
|
+
const PaletteIconCheckmark = require('@telus-uds/palette-allium/build/rn/icons/Checkmark')
|
|
11
11
|
const PaletteIconCaretDown = require('@telus-uds/palette-allium/build/rn/icons/CaretDown')
|
|
12
12
|
const PaletteIconCaretUp = require('@telus-uds/palette-allium/build/rn/icons/CaretUp')
|
|
13
13
|
const PaletteIconStatusSuccess = require('@telus-uds/palette-allium/build/rn/icons/StatusSuccess')
|
|
@@ -476,6 +476,29 @@ module.exports = {
|
|
|
476
476
|
shadow: null
|
|
477
477
|
}
|
|
478
478
|
},
|
|
479
|
+
Carousel: {
|
|
480
|
+
appearances: {
|
|
481
|
+
viewport: {
|
|
482
|
+
description: 'The size label for the current screen viewport based on the current screen width',
|
|
483
|
+
type: 'state',
|
|
484
|
+
values: [ 'xs', 'sm', 'md', 'lg', 'xl' ]
|
|
485
|
+
}
|
|
486
|
+
},
|
|
487
|
+
rules: [
|
|
488
|
+
{
|
|
489
|
+
if: { viewport: [ 'xs', 'sm' ] },
|
|
490
|
+
tokens: { showPreviousNextNavigation: false }
|
|
491
|
+
}
|
|
492
|
+
],
|
|
493
|
+
tokens: {
|
|
494
|
+
nextIcon: PaletteIconArrowRight,
|
|
495
|
+
previousIcon: PaletteIconArrowLeft,
|
|
496
|
+
showPanelNavigation: true,
|
|
497
|
+
showPreviousNextNavigation: true,
|
|
498
|
+
spaceBetweenSlideAndPanelNavigation: 32,
|
|
499
|
+
spaceBetweenSlideAndPreviousNextNavigation: 24
|
|
500
|
+
}
|
|
501
|
+
},
|
|
479
502
|
Checkbox: {
|
|
480
503
|
appearances: {
|
|
481
504
|
checked: {
|
|
@@ -1093,11 +1116,17 @@ module.exports = {
|
|
|
1093
1116
|
rules: [
|
|
1094
1117
|
{
|
|
1095
1118
|
if: { size: 'large' },
|
|
1096
|
-
tokens: {
|
|
1119
|
+
tokens: {
|
|
1120
|
+
iconMarginTop: 8,
|
|
1121
|
+
itemFontSize: 20,
|
|
1122
|
+
itemLineHeight: 1.6,
|
|
1123
|
+
listGutter: 12
|
|
1124
|
+
}
|
|
1097
1125
|
},
|
|
1098
1126
|
{
|
|
1099
1127
|
if: { size: 'small' },
|
|
1100
1128
|
tokens: {
|
|
1129
|
+
iconMarginTop: 2,
|
|
1101
1130
|
itemFontSize: 14,
|
|
1102
1131
|
itemLineHeight: 1.42857142857,
|
|
1103
1132
|
listGutter: 12
|
|
@@ -2195,8 +2224,19 @@ module.exports = {
|
|
|
2195
2224
|
}
|
|
2196
2225
|
},
|
|
2197
2226
|
Tabs: {
|
|
2198
|
-
appearances: {
|
|
2199
|
-
|
|
2227
|
+
appearances: {
|
|
2228
|
+
inverse: {
|
|
2229
|
+
description: 'Styles the link white for use on dark backgrounds.',
|
|
2230
|
+
type: 'variant',
|
|
2231
|
+
values: [ true ]
|
|
2232
|
+
}
|
|
2233
|
+
},
|
|
2234
|
+
rules: [
|
|
2235
|
+
{
|
|
2236
|
+
if: { inverse: true },
|
|
2237
|
+
tokens: { borderBottomColor: '#ffffff' }
|
|
2238
|
+
}
|
|
2239
|
+
],
|
|
2200
2240
|
tokens: {
|
|
2201
2241
|
borderBottomColor: '#676e73',
|
|
2202
2242
|
borderBottomWidth: 1,
|
|
@@ -2219,6 +2259,7 @@ module.exports = {
|
|
|
2219
2259
|
type: 'state',
|
|
2220
2260
|
values: [ true ]
|
|
2221
2261
|
},
|
|
2262
|
+
inverse: { type: 'variant', values: [ true ] },
|
|
2222
2263
|
pressed: {
|
|
2223
2264
|
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.',
|
|
2224
2265
|
type: 'state',
|
|
@@ -2263,6 +2304,34 @@ module.exports = {
|
|
|
2263
2304
|
{
|
|
2264
2305
|
if: { focus: true, pressed: true },
|
|
2265
2306
|
tokens: { backgroundColor: '#4b286d' }
|
|
2307
|
+
},
|
|
2308
|
+
{
|
|
2309
|
+
if: { inverse: true },
|
|
2310
|
+
tokens: { backgroundColor: 'rgba(0, 0, 0, 0)', color: '#ffffff' }
|
|
2311
|
+
},
|
|
2312
|
+
{
|
|
2313
|
+
if: { hover: true, inverse: true },
|
|
2314
|
+
tokens: { borderColor: '#ffffff', highlightColor: '#ffffff' }
|
|
2315
|
+
},
|
|
2316
|
+
{
|
|
2317
|
+
if: { inverse: true, selected: true },
|
|
2318
|
+
tokens: {
|
|
2319
|
+
backgroundColor: '#ffffff',
|
|
2320
|
+
color: '#414547',
|
|
2321
|
+
highlightColor: '#ffffff'
|
|
2322
|
+
}
|
|
2323
|
+
},
|
|
2324
|
+
{
|
|
2325
|
+
if: { inverse: true, pressed: true },
|
|
2326
|
+
tokens: {
|
|
2327
|
+
backgroundColor: '#ffffff',
|
|
2328
|
+
color: '#414547',
|
|
2329
|
+
highlightColor: '#ffffff'
|
|
2330
|
+
}
|
|
2331
|
+
},
|
|
2332
|
+
{
|
|
2333
|
+
if: { focus: true, inverse: true },
|
|
2334
|
+
tokens: { borderColor: '#ffffff', highlightColor: '#ffffff' }
|
|
2266
2335
|
}
|
|
2267
2336
|
],
|
|
2268
2337
|
tokens: {
|
|
@@ -2962,8 +3031,8 @@ module.exports = {
|
|
|
2962
3031
|
}
|
|
2963
3032
|
},
|
|
2964
3033
|
{
|
|
2965
|
-
description: '
|
|
2966
|
-
if: { bold: true
|
|
3034
|
+
description: 'Please only bold single words while using with headings',
|
|
3035
|
+
if: { bold: true },
|
|
2967
3036
|
tokens: { fontName: 'HelveticaNow', fontWeight: '700' }
|
|
2968
3037
|
}
|
|
2969
3038
|
],
|
|
@@ -3037,5 +3106,5 @@ module.exports = {
|
|
|
3037
3106
|
tokens: { size: 96 }
|
|
3038
3107
|
}
|
|
3039
3108
|
},
|
|
3040
|
-
metadata: { name: 'theme-allium', themeTokensVersion: '2.0
|
|
3109
|
+
metadata: { name: 'theme-allium', themeTokensVersion: '2.1.0' }
|
|
3041
3110
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@telus-uds/theme-allium",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.4.0",
|
|
4
4
|
"description": "Allium theme",
|
|
5
5
|
"author": "TELUS Digital",
|
|
6
6
|
"homepage": "https://github.com/telus/allium-design-system#readme",
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"dependencies": {},
|
|
10
10
|
"devDependencies": {
|
|
11
11
|
"@telus-uds/palette-allium": "^2.1.0",
|
|
12
|
-
"@telus-uds/system-theme-tokens": "^2.0
|
|
12
|
+
"@telus-uds/system-theme-tokens": "^2.1.0",
|
|
13
13
|
"@telus-uds/system-tokens": "^0.1.5"
|
|
14
14
|
},
|
|
15
15
|
"peerDependencies": {
|
package/theme.json
CHANGED
|
@@ -635,6 +635,29 @@
|
|
|
635
635
|
"shadow": "{system.shadow.none}"
|
|
636
636
|
}
|
|
637
637
|
},
|
|
638
|
+
"Carousel": {
|
|
639
|
+
"appearances": {
|
|
640
|
+
"viewport": "{appearances.system.viewport}"
|
|
641
|
+
},
|
|
642
|
+
"rules": [
|
|
643
|
+
{
|
|
644
|
+
"if": {
|
|
645
|
+
"viewport": ["xs", "sm"]
|
|
646
|
+
},
|
|
647
|
+
"tokens": {
|
|
648
|
+
"showPreviousNextNavigation": "{system.show.false}"
|
|
649
|
+
}
|
|
650
|
+
}
|
|
651
|
+
],
|
|
652
|
+
"tokens": {
|
|
653
|
+
"nextIcon": "{palette.icon.ArrowRight}",
|
|
654
|
+
"previousIcon": "{palette.icon.ArrowLeft}",
|
|
655
|
+
"showPanelNavigation": "{system.show.true}",
|
|
656
|
+
"showPreviousNextNavigation": "{system.show.true}",
|
|
657
|
+
"spaceBetweenSlideAndPanelNavigation": "{palette.size.size32}",
|
|
658
|
+
"spaceBetweenSlideAndPreviousNextNavigation": "{palette.size.size24}"
|
|
659
|
+
}
|
|
660
|
+
},
|
|
638
661
|
"Checkbox": {
|
|
639
662
|
"appearances": {
|
|
640
663
|
"checked": "{appearances.Checkbox.checked}",
|
|
@@ -1503,6 +1526,7 @@
|
|
|
1503
1526
|
"size": "large"
|
|
1504
1527
|
},
|
|
1505
1528
|
"tokens": {
|
|
1529
|
+
"iconMarginTop": "{palette.size.size8}",
|
|
1506
1530
|
"itemFontSize": "{palette.fontSize.size20}",
|
|
1507
1531
|
"itemLineHeight": "{palette.lineHeight.ratio8to5}",
|
|
1508
1532
|
"listGutter": "{palette.size.size12}"
|
|
@@ -1513,6 +1537,7 @@
|
|
|
1513
1537
|
"size": "small"
|
|
1514
1538
|
},
|
|
1515
1539
|
"tokens": {
|
|
1540
|
+
"iconMarginTop": "{palette.size.size2}",
|
|
1516
1541
|
"itemFontSize": "{palette.fontSize.size14}",
|
|
1517
1542
|
"itemLineHeight": "{palette.lineHeight.ratio10to7}",
|
|
1518
1543
|
"listGutter": "{palette.size.size12}"
|
|
@@ -2676,8 +2701,23 @@
|
|
|
2676
2701
|
}
|
|
2677
2702
|
},
|
|
2678
2703
|
"Tabs": {
|
|
2679
|
-
"appearances": {
|
|
2680
|
-
|
|
2704
|
+
"appearances": {
|
|
2705
|
+
"inverse": {
|
|
2706
|
+
"description": "Styles the link white for use on dark backgrounds.",
|
|
2707
|
+
"type": "variant",
|
|
2708
|
+
"values": [true]
|
|
2709
|
+
}
|
|
2710
|
+
},
|
|
2711
|
+
"rules": [
|
|
2712
|
+
{
|
|
2713
|
+
"if": {
|
|
2714
|
+
"inverse": true
|
|
2715
|
+
},
|
|
2716
|
+
"tokens": {
|
|
2717
|
+
"borderBottomColor": "{palette.color.white}"
|
|
2718
|
+
}
|
|
2719
|
+
}
|
|
2720
|
+
],
|
|
2681
2721
|
"tokens": {
|
|
2682
2722
|
"borderBottomColor": "{palette.color.greyShuttle}",
|
|
2683
2723
|
"borderBottomWidth": "{palette.border.border1}",
|
|
@@ -2692,6 +2732,10 @@
|
|
|
2692
2732
|
"appearances": {
|
|
2693
2733
|
"focus": "{appearances.TabsItem.pressed}",
|
|
2694
2734
|
"hover": "{appearances.TabsItem.pressed}",
|
|
2735
|
+
"inverse": {
|
|
2736
|
+
"type": "variant",
|
|
2737
|
+
"values": [true]
|
|
2738
|
+
},
|
|
2695
2739
|
"pressed": "{appearances.TabsItem.pressed}",
|
|
2696
2740
|
"selected": "{appearances.TabsItem.pressed}"
|
|
2697
2741
|
},
|
|
@@ -2748,6 +2792,57 @@
|
|
|
2748
2792
|
"tokens": {
|
|
2749
2793
|
"backgroundColor": "{palette.color.purpleTelus}"
|
|
2750
2794
|
}
|
|
2795
|
+
},
|
|
2796
|
+
{
|
|
2797
|
+
"if": {
|
|
2798
|
+
"inverse": true
|
|
2799
|
+
},
|
|
2800
|
+
"tokens": {
|
|
2801
|
+
"backgroundColor": "{palette.color.transparent}",
|
|
2802
|
+
"color": "{palette.color.white}"
|
|
2803
|
+
}
|
|
2804
|
+
},
|
|
2805
|
+
{
|
|
2806
|
+
"if": {
|
|
2807
|
+
"hover": true,
|
|
2808
|
+
"inverse": true
|
|
2809
|
+
},
|
|
2810
|
+
"tokens": {
|
|
2811
|
+
"borderColor": "{palette.color.white}",
|
|
2812
|
+
"highlightColor": "{palette.color.white}"
|
|
2813
|
+
}
|
|
2814
|
+
},
|
|
2815
|
+
{
|
|
2816
|
+
"if": {
|
|
2817
|
+
"inverse": true,
|
|
2818
|
+
"selected": true
|
|
2819
|
+
},
|
|
2820
|
+
"tokens": {
|
|
2821
|
+
"backgroundColor": "{palette.color.white}",
|
|
2822
|
+
"color": "{palette.color.greyCharcoal}",
|
|
2823
|
+
"highlightColor": "{palette.color.white}"
|
|
2824
|
+
}
|
|
2825
|
+
},
|
|
2826
|
+
{
|
|
2827
|
+
"if": {
|
|
2828
|
+
"inverse": true,
|
|
2829
|
+
"pressed": true
|
|
2830
|
+
},
|
|
2831
|
+
"tokens": {
|
|
2832
|
+
"backgroundColor": "{palette.color.white}",
|
|
2833
|
+
"color": "{palette.color.greyCharcoal}",
|
|
2834
|
+
"highlightColor": "{palette.color.white}"
|
|
2835
|
+
}
|
|
2836
|
+
},
|
|
2837
|
+
{
|
|
2838
|
+
"if": {
|
|
2839
|
+
"focus": true,
|
|
2840
|
+
"inverse": true
|
|
2841
|
+
},
|
|
2842
|
+
"tokens": {
|
|
2843
|
+
"borderColor": "{palette.color.white}",
|
|
2844
|
+
"highlightColor": "{palette.color.white}"
|
|
2845
|
+
}
|
|
2751
2846
|
}
|
|
2752
2847
|
],
|
|
2753
2848
|
"tokens": {
|
|
@@ -3623,10 +3718,9 @@
|
|
|
3623
3718
|
}
|
|
3624
3719
|
},
|
|
3625
3720
|
{
|
|
3626
|
-
"description": "
|
|
3721
|
+
"description": "Please only bold single words while using with headings",
|
|
3627
3722
|
"if": {
|
|
3628
|
-
"bold": true
|
|
3629
|
-
"size": ["large", null, "small", "micro"]
|
|
3723
|
+
"bold": true
|
|
3630
3724
|
},
|
|
3631
3725
|
"tokens": {
|
|
3632
3726
|
"fontName": "{palette.fontName.HelveticaNow}",
|