@telus-uds/theme-koodo 3.7.1 → 3.9.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/build/android/schema.json +406 -370
- package/build/android/theme.json +406 -36
- package/build/ios/schema.json +406 -370
- package/build/ios/theme.json +406 -36
- package/build/rn/schema.json +406 -370
- package/build/rn/theme.js +144 -28
- package/package.json +4 -4
- package/theme.json +272 -21
package/build/rn/theme.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
*
|
|
3
3
|
* Do not edit directly
|
|
4
|
-
* Generated on
|
|
4
|
+
* Generated on Thu, 23 Feb 2023 17:19:37 GMT
|
|
5
5
|
*
|
|
6
6
|
*/
|
|
7
7
|
|
|
@@ -21,15 +21,31 @@ const PaletteIconInfo = require('@telus-uds/palette-koodo/build/rn/icons/Info')
|
|
|
21
21
|
module.exports = {
|
|
22
22
|
components: {
|
|
23
23
|
ActivityIndicator: {
|
|
24
|
-
appearances: {
|
|
25
|
-
|
|
26
|
-
|
|
24
|
+
appearances: {
|
|
25
|
+
size: {
|
|
26
|
+
description: 'used for full-screen spinners',
|
|
27
|
+
type: 'variant',
|
|
28
|
+
values: [ 'large' ]
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
rules: [ { if: { size: 'large' }, tokens: { size: 48, thickness: 4 } } ],
|
|
32
|
+
tokens: { color: '#016b6a', size: 40, thickness: 4 }
|
|
27
33
|
},
|
|
28
34
|
Box: {
|
|
29
35
|
appearances: {
|
|
30
36
|
background: {
|
|
31
|
-
description: 'Background colour of box.
|
|
32
|
-
values: [
|
|
37
|
+
description: 'Background colour of box. White if not specified.',
|
|
38
|
+
values: [
|
|
39
|
+
'lightest', 'lighter',
|
|
40
|
+
'light', 'dark',
|
|
41
|
+
'darker', 'darkest',
|
|
42
|
+
'critical', 'danger',
|
|
43
|
+
'warning', 'positive',
|
|
44
|
+
'brand', 'white',
|
|
45
|
+
'black', 'featurePrimary',
|
|
46
|
+
'featureSecondary', 'featureNeutral',
|
|
47
|
+
'featureBrand'
|
|
48
|
+
]
|
|
33
49
|
}
|
|
34
50
|
},
|
|
35
51
|
rules: [
|
|
@@ -37,16 +53,72 @@ module.exports = {
|
|
|
37
53
|
if: { background: 'lightest' },
|
|
38
54
|
tokens: { backgroundColor: '#ffffff' }
|
|
39
55
|
},
|
|
56
|
+
{
|
|
57
|
+
if: { background: 'lighter' },
|
|
58
|
+
tokens: { backgroundColor: '#fafafa' }
|
|
59
|
+
},
|
|
40
60
|
{
|
|
41
61
|
if: { background: 'light' },
|
|
42
62
|
tokens: { backgroundColor: '#efefef' }
|
|
43
63
|
},
|
|
64
|
+
{
|
|
65
|
+
if: { background: 'dark' },
|
|
66
|
+
tokens: { backgroundColor: '#666666' }
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
if: { background: 'darker' },
|
|
70
|
+
tokens: { backgroundColor: '#595959' }
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
if: { background: 'darkest' },
|
|
74
|
+
tokens: { backgroundColor: '#000000' }
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
if: { background: 'critical' },
|
|
78
|
+
tokens: { backgroundColor: '#b8373e' }
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
if: { background: 'danger' },
|
|
82
|
+
tokens: { backgroundColor: '#f8dde3' }
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
if: { background: 'warning' },
|
|
86
|
+
tokens: { backgroundColor: '#feeec7' }
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
if: { background: 'positive' },
|
|
90
|
+
tokens: { backgroundColor: '#e5f7fb' }
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
if: { background: 'brand' },
|
|
94
|
+
tokens: { backgroundColor: '#016b6a' }
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
if: { background: 'white' },
|
|
98
|
+
tokens: { backgroundColor: '#ffffff' }
|
|
99
|
+
},
|
|
44
100
|
{
|
|
45
101
|
if: { background: 'black' },
|
|
46
102
|
tokens: { backgroundColor: '#000000' }
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
if: { background: 'featurePrimary' },
|
|
106
|
+
tokens: { backgroundColor: '#7c1366' }
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
if: { background: 'featureSecondary' },
|
|
110
|
+
tokens: { backgroundColor: '#17367d' }
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
if: { background: 'featureNeutral' },
|
|
114
|
+
tokens: { backgroundColor: '#595959' }
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
if: { background: 'featureBrand' },
|
|
118
|
+
tokens: { backgroundColor: '#016b6a' }
|
|
47
119
|
}
|
|
48
120
|
],
|
|
49
|
-
tokens: { backgroundColor:
|
|
121
|
+
tokens: { backgroundColor: '#ffffff', gradient: null }
|
|
50
122
|
},
|
|
51
123
|
Button: {
|
|
52
124
|
appearances: {
|
|
@@ -313,6 +385,7 @@ module.exports = {
|
|
|
313
385
|
borderRadius: 4,
|
|
314
386
|
borderWidth: 0,
|
|
315
387
|
color: '#ffffff',
|
|
388
|
+
dividerColor: '#016b6a',
|
|
316
389
|
fontName: 'StagSans',
|
|
317
390
|
fontSize: 14,
|
|
318
391
|
fontWeight: '600',
|
|
@@ -339,6 +412,7 @@ module.exports = {
|
|
|
339
412
|
paddingRight: 16,
|
|
340
413
|
paddingTop: 8,
|
|
341
414
|
shadow: null,
|
|
415
|
+
subtitleColor: '#014847',
|
|
342
416
|
textAlign: 'center',
|
|
343
417
|
width: null
|
|
344
418
|
}
|
|
@@ -370,6 +444,11 @@ module.exports = {
|
|
|
370
444
|
type: 'state',
|
|
371
445
|
values: [ true ]
|
|
372
446
|
},
|
|
447
|
+
iconPosition: {
|
|
448
|
+
description: 'Theme styles to be applied to icon links depending on where the icon is in relation to the link text',
|
|
449
|
+
type: 'state',
|
|
450
|
+
values: [ 'left', 'right' ]
|
|
451
|
+
},
|
|
373
452
|
inactive: {
|
|
374
453
|
description: 'Prevents an interactive component from being interacted with and applies accessibility attributes to indicate to the user that this component cannot be used.',
|
|
375
454
|
type: 'state',
|
|
@@ -433,7 +512,8 @@ module.exports = {
|
|
|
433
512
|
{
|
|
434
513
|
if: { focus: true, selected: true },
|
|
435
514
|
tokens: { outerBorderColor: '#014847' }
|
|
436
|
-
}
|
|
515
|
+
},
|
|
516
|
+
{ if: { iconPosition: 'right' }, tokens: { iconSpace: 1 } }
|
|
437
517
|
],
|
|
438
518
|
tokens: {
|
|
439
519
|
alignSelf: 'flex-start',
|
|
@@ -445,9 +525,10 @@ module.exports = {
|
|
|
445
525
|
fontName: 'StagSans',
|
|
446
526
|
fontSize: 14,
|
|
447
527
|
fontWeight: '600',
|
|
528
|
+
height: 36,
|
|
448
529
|
iconSize: 20,
|
|
449
530
|
iconSpace: 3,
|
|
450
|
-
lineHeight: 1.
|
|
531
|
+
lineHeight: 1.4,
|
|
451
532
|
minWidth: 0,
|
|
452
533
|
opacity: 1,
|
|
453
534
|
outerBackgroundColor: 'rgba(0, 0, 0, 0)',
|
|
@@ -688,8 +769,20 @@ module.exports = {
|
|
|
688
769
|
}
|
|
689
770
|
},
|
|
690
771
|
Divider: {
|
|
691
|
-
appearances: {
|
|
692
|
-
|
|
772
|
+
appearances: {
|
|
773
|
+
decorative: {
|
|
774
|
+
description: 'Use a decorative divider to highlight an element. Non-decorative dividers are for clearly identifying separation of content.',
|
|
775
|
+
type: 'variant',
|
|
776
|
+
values: [ true ]
|
|
777
|
+
},
|
|
778
|
+
inverse: { type: 'variant', values: [ true ] },
|
|
779
|
+
weight: { type: 'variant', values: [ 'thick' ] }
|
|
780
|
+
},
|
|
781
|
+
rules: [
|
|
782
|
+
{ if: { weight: 'thick' }, tokens: { width: 2 } },
|
|
783
|
+
{ if: { decorative: true }, tokens: { color: '#efefef' } },
|
|
784
|
+
{ if: { inverse: true }, tokens: { color: '#ffffff' } }
|
|
785
|
+
],
|
|
693
786
|
tokens: { color: '#c9c8c8', width: 1 }
|
|
694
787
|
},
|
|
695
788
|
ExpandCollapse: {
|
|
@@ -1027,11 +1120,16 @@ module.exports = {
|
|
|
1027
1120
|
rules: [
|
|
1028
1121
|
{
|
|
1029
1122
|
if: { size: 'large' },
|
|
1030
|
-
tokens: {
|
|
1123
|
+
tokens: {
|
|
1124
|
+
itemFontSize: 20,
|
|
1125
|
+
itemIconSize: 20,
|
|
1126
|
+
itemLineHeight: 1.4,
|
|
1127
|
+
listGutter: 16
|
|
1128
|
+
}
|
|
1031
1129
|
},
|
|
1032
1130
|
{
|
|
1033
1131
|
if: { size: 'small' },
|
|
1034
|
-
tokens: { itemFontSize: 14, listGutter: 10 }
|
|
1132
|
+
tokens: { itemFontSize: 14, itemIconSize: 14, listGutter: 10 }
|
|
1035
1133
|
},
|
|
1036
1134
|
{ if: { compact: true }, tokens: { itemLineHeight: 1.2 } },
|
|
1037
1135
|
{
|
|
@@ -1146,37 +1244,40 @@ module.exports = {
|
|
|
1146
1244
|
{
|
|
1147
1245
|
if: { style: 'success' },
|
|
1148
1246
|
tokens: {
|
|
1149
|
-
backgroundColor: '#
|
|
1247
|
+
backgroundColor: '#e5f7fb',
|
|
1248
|
+
color: '#000000',
|
|
1150
1249
|
icon: PaletteIconCheckCircledFilled,
|
|
1151
|
-
iconColor: '#
|
|
1250
|
+
iconColor: '#016b6a'
|
|
1152
1251
|
}
|
|
1153
1252
|
},
|
|
1154
1253
|
{
|
|
1155
1254
|
if: { style: 'warning' },
|
|
1156
1255
|
tokens: {
|
|
1157
1256
|
backgroundColor: '#feeec7',
|
|
1257
|
+
color: '#000000',
|
|
1158
1258
|
icon: PaletteIconExclamationTriangle,
|
|
1159
|
-
iconColor: '#
|
|
1259
|
+
iconColor: '#ee2c74'
|
|
1160
1260
|
}
|
|
1161
1261
|
},
|
|
1162
1262
|
{
|
|
1163
1263
|
if: { style: 'error' },
|
|
1164
1264
|
tokens: {
|
|
1165
1265
|
backgroundColor: '#f8dde3',
|
|
1266
|
+
color: '#000000',
|
|
1166
1267
|
icon: PaletteIconExclamationOctagon,
|
|
1167
1268
|
iconColor: '#df3d0c'
|
|
1168
1269
|
}
|
|
1169
1270
|
}
|
|
1170
1271
|
],
|
|
1171
1272
|
tokens: {
|
|
1172
|
-
backgroundColor: '#
|
|
1273
|
+
backgroundColor: '#fae6f4',
|
|
1173
1274
|
borderBottomWidth: 0,
|
|
1174
1275
|
borderColor: 'transparent',
|
|
1175
1276
|
borderLeftWidth: 0,
|
|
1176
1277
|
borderRadius: 0,
|
|
1177
1278
|
borderRightWidth: 0,
|
|
1178
1279
|
borderTopWidth: 0,
|
|
1179
|
-
color: '#
|
|
1280
|
+
color: '#7c1366',
|
|
1180
1281
|
dismissButtonGap: 16,
|
|
1181
1282
|
dismissIcon: PaletteIconTimes,
|
|
1182
1283
|
dismissIconColor: '#000000',
|
|
@@ -2762,8 +2863,13 @@ module.exports = {
|
|
|
2762
2863
|
}
|
|
2763
2864
|
},
|
|
2764
2865
|
Tooltip: {
|
|
2765
|
-
appearances: {},
|
|
2766
|
-
rules: [
|
|
2866
|
+
appearances: { inverse: { type: 'variant', values: [ true ] } },
|
|
2867
|
+
rules: [
|
|
2868
|
+
{
|
|
2869
|
+
if: { inverse: true },
|
|
2870
|
+
tokens: { backgroundColor: '#ffffff', color: '#014847' }
|
|
2871
|
+
}
|
|
2872
|
+
],
|
|
2767
2873
|
tokens: {
|
|
2768
2874
|
arrowBorderRadius: 0,
|
|
2769
2875
|
arrowOffset: 4,
|
|
@@ -2951,9 +3057,9 @@ module.exports = {
|
|
|
2951
3057
|
description: 'Index of the intended position on the spacing scale',
|
|
2952
3058
|
type: 'state',
|
|
2953
3059
|
values: [
|
|
2954
|
-
0,
|
|
2955
|
-
|
|
2956
|
-
|
|
3060
|
+
0, 1, 2, 3, 4, 5,
|
|
3061
|
+
6, 7, 8, 9, 10, 11,
|
|
3062
|
+
12
|
|
2957
3063
|
]
|
|
2958
3064
|
},
|
|
2959
3065
|
viewport: {
|
|
@@ -2964,6 +3070,8 @@ module.exports = {
|
|
|
2964
3070
|
},
|
|
2965
3071
|
rules: [
|
|
2966
3072
|
{ if: { viewport: [ 'lg', 'xl' ] }, tokens: { size: 120 } },
|
|
3073
|
+
{ if: { space: 12 }, tokens: { size: 120 } },
|
|
3074
|
+
{ if: { space: 11 }, tokens: { size: 120 } },
|
|
2967
3075
|
{ if: { space: 10 }, tokens: { size: 80 } },
|
|
2968
3076
|
{ if: { space: 9 }, tokens: { size: 64 } },
|
|
2969
3077
|
{ if: { space: 8 }, tokens: { size: 48 } },
|
|
@@ -2975,25 +3083,33 @@ module.exports = {
|
|
|
2975
3083
|
{ if: { space: 2 }, tokens: { size: 8 } },
|
|
2976
3084
|
{ if: { space: 1 }, tokens: { size: 4 } },
|
|
2977
3085
|
{
|
|
2978
|
-
if: { space:
|
|
3086
|
+
if: { space: 11, viewport: [ 'lg', 'xl' ] },
|
|
2979
3087
|
tokens: { size: 120 }
|
|
2980
3088
|
},
|
|
2981
3089
|
{
|
|
2982
|
-
if: { space:
|
|
3090
|
+
if: { space: 10, viewport: [ 'lg', 'xl' ] },
|
|
2983
3091
|
tokens: { size: 96 }
|
|
2984
3092
|
},
|
|
2985
3093
|
{
|
|
2986
|
-
if: { space:
|
|
3094
|
+
if: { space: 9, viewport: [ 'lg', 'xl' ] },
|
|
2987
3095
|
tokens: { size: 72 }
|
|
2988
3096
|
},
|
|
2989
3097
|
{
|
|
2990
|
-
if: { space:
|
|
3098
|
+
if: { space: 8, viewport: [ 'lg', 'xl' ] },
|
|
2991
3099
|
tokens: { size: 64 }
|
|
2992
3100
|
},
|
|
3101
|
+
{
|
|
3102
|
+
if: { space: 7, viewport: [ 'lg', 'xl' ] },
|
|
3103
|
+
tokens: { size: 48 }
|
|
3104
|
+
},
|
|
3105
|
+
{
|
|
3106
|
+
if: { space: 6, viewport: [ 'lg', 'xl' ] },
|
|
3107
|
+
tokens: { size: 40 }
|
|
3108
|
+
},
|
|
2993
3109
|
{ if: { space: 0 }, tokens: { size: 0 } }
|
|
2994
3110
|
],
|
|
2995
3111
|
tokens: { size: 96 }
|
|
2996
3112
|
}
|
|
2997
3113
|
},
|
|
2998
|
-
metadata: { name: 'theme-koodo', themeTokensVersion: '2.
|
|
3114
|
+
metadata: { name: 'theme-koodo', themeTokensVersion: '2.11.0' }
|
|
2999
3115
|
}
|
package/package.json
CHANGED
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
},
|
|
6
6
|
"description": "Koodo theme",
|
|
7
7
|
"devDependencies": {
|
|
8
|
-
"@telus-uds/palette-koodo": "^0.
|
|
9
|
-
"@telus-uds/system-theme-tokens": "^2.
|
|
8
|
+
"@telus-uds/palette-koodo": "^0.3.0",
|
|
9
|
+
"@telus-uds/system-theme-tokens": "^2.11.0"
|
|
10
10
|
},
|
|
11
11
|
"files": [
|
|
12
12
|
"build",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"main": "build/rn/theme.js",
|
|
21
21
|
"name": "@telus-uds/theme-koodo",
|
|
22
22
|
"peerDependencies": {
|
|
23
|
-
"@telus-uds/palette-koodo": "^0.
|
|
23
|
+
"@telus-uds/palette-koodo": "^0.3.0"
|
|
24
24
|
},
|
|
25
25
|
"repository": {
|
|
26
26
|
"type": "git",
|
|
@@ -31,5 +31,5 @@
|
|
|
31
31
|
"build": "UDS_PALETTE=@telus-uds/palette-koodo system-tokens-build-theme",
|
|
32
32
|
"dev": "nodemon -w src -x 'npm run build'"
|
|
33
33
|
},
|
|
34
|
-
"version": "3.
|
|
34
|
+
"version": "3.9.0"
|
|
35
35
|
}
|