@telus-uds/theme-koodo 3.12.0 → 3.14.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 +509 -380
- package/build/android/theme.json +311 -33
- package/build/ios/schema.json +509 -380
- package/build/ios/theme.json +311 -33
- package/build/rn/schema.json +509 -380
- package/build/rn/theme.js +171 -29
- package/package.json +4 -4
- package/theme.json +267 -32
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 Mon, 20 Mar 2023 19:40:47 GMT
|
|
5
5
|
*
|
|
6
6
|
*/
|
|
7
7
|
|
|
@@ -16,6 +16,8 @@ const PaletteIconTimes = require('@telus-uds/palette-koodo/build/rn/icons/Times'
|
|
|
16
16
|
const PaletteIconExclamationOctagon = require('@telus-uds/palette-koodo/build/rn/icons/ExclamationOctagon')
|
|
17
17
|
const PaletteIconSpyglass = require('@telus-uds/palette-koodo/build/rn/icons/Spyglass')
|
|
18
18
|
const PaletteIconCheckCircledNotFilled = require('@telus-uds/palette-koodo/build/rn/icons/CheckCircledNotFilled')
|
|
19
|
+
const PaletteIconEyeMasked = require('@telus-uds/palette-koodo/build/rn/icons/EyeMasked')
|
|
20
|
+
const PaletteIconEyeUnmasked = require('@telus-uds/palette-koodo/build/rn/icons/EyeUnmasked')
|
|
19
21
|
const PaletteIconInfo = require('@telus-uds/palette-koodo/build/rn/icons/Info')
|
|
20
22
|
|
|
21
23
|
module.exports = {
|
|
@@ -35,6 +37,7 @@ module.exports = {
|
|
|
35
37
|
appearances: {
|
|
36
38
|
background: {
|
|
37
39
|
description: 'Background colour of box. White if not specified.',
|
|
40
|
+
type: 'variant',
|
|
38
41
|
values: [
|
|
39
42
|
'lightest', 'lighter',
|
|
40
43
|
'light', 'dark',
|
|
@@ -545,10 +548,33 @@ module.exports = {
|
|
|
545
548
|
}
|
|
546
549
|
},
|
|
547
550
|
Card: {
|
|
548
|
-
appearances: {
|
|
549
|
-
|
|
551
|
+
appearances: {
|
|
552
|
+
background: {
|
|
553
|
+
description: 'Defines background related attributes of Card',
|
|
554
|
+
type: 'variant',
|
|
555
|
+
values: [ 'alternative', 'subtle', 'grid', 'feature' ]
|
|
556
|
+
}
|
|
557
|
+
},
|
|
558
|
+
rules: [
|
|
559
|
+
{
|
|
560
|
+
if: { background: 'alternative' },
|
|
561
|
+
tokens: { backgroundColor: '#e5f7fb' }
|
|
562
|
+
},
|
|
563
|
+
{
|
|
564
|
+
if: { background: 'subtle' },
|
|
565
|
+
tokens: { backgroundColor: '#fae6f4', borderRadius: 8 }
|
|
566
|
+
},
|
|
567
|
+
{
|
|
568
|
+
if: { background: 'grid' },
|
|
569
|
+
tokens: { borderColor: '#016b6a', borderRadius: 8, borderWidth: 1 }
|
|
570
|
+
},
|
|
571
|
+
{
|
|
572
|
+
if: { background: 'feature' },
|
|
573
|
+
tokens: { backgroundColor: '#f9f6a5' }
|
|
574
|
+
}
|
|
575
|
+
],
|
|
550
576
|
tokens: {
|
|
551
|
-
backgroundColor: '#
|
|
577
|
+
backgroundColor: '#ffffff',
|
|
552
578
|
borderColor: null,
|
|
553
579
|
borderRadius: 0,
|
|
554
580
|
borderWidth: 0,
|
|
@@ -726,7 +752,22 @@ module.exports = {
|
|
|
726
752
|
rules: [
|
|
727
753
|
{
|
|
728
754
|
if: { focus: true },
|
|
729
|
-
tokens: { inputOutlineColor: '#
|
|
755
|
+
tokens: { inputOutlineColor: '#17367d', inputOutlineWidth: 1 }
|
|
756
|
+
},
|
|
757
|
+
{
|
|
758
|
+
if: { hover: true },
|
|
759
|
+
tokens: { inputOutlineColor: '#17367d', inputOutlineWidth: 1 }
|
|
760
|
+
},
|
|
761
|
+
{
|
|
762
|
+
if: { inactive: true },
|
|
763
|
+
tokens: {
|
|
764
|
+
inputBackgroundColor: '#c9c8c8',
|
|
765
|
+
inputBorderColor: 'rgba(0, 0, 0, 0)'
|
|
766
|
+
}
|
|
767
|
+
},
|
|
768
|
+
{
|
|
769
|
+
if: { checked: true, inactive: true },
|
|
770
|
+
tokens: { iconBackgroundColor: '#c9c8c8', iconColor: '#ffffff' }
|
|
730
771
|
}
|
|
731
772
|
],
|
|
732
773
|
tokens: {
|
|
@@ -1099,13 +1140,48 @@ module.exports = {
|
|
|
1099
1140
|
type: 'state',
|
|
1100
1141
|
values: [ true ]
|
|
1101
1142
|
},
|
|
1143
|
+
password: {
|
|
1144
|
+
description: 'Password masked or not',
|
|
1145
|
+
type: 'variant',
|
|
1146
|
+
values: [ true ]
|
|
1147
|
+
},
|
|
1102
1148
|
pressed: {
|
|
1103
1149
|
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.',
|
|
1104
1150
|
type: 'state',
|
|
1105
1151
|
values: [ true ]
|
|
1106
1152
|
}
|
|
1107
1153
|
},
|
|
1108
|
-
rules: [
|
|
1154
|
+
rules: [
|
|
1155
|
+
{ if: { compact: true }, tokens: { outerBorderGap: 0 } },
|
|
1156
|
+
{
|
|
1157
|
+
if: { hover: true },
|
|
1158
|
+
tokens: { backgroundColor: '#016b6a', iconColor: '#ffffff' }
|
|
1159
|
+
},
|
|
1160
|
+
{
|
|
1161
|
+
if: { password: true },
|
|
1162
|
+
tokens: { borderColor: 'rgba(0, 0, 0, 0)' }
|
|
1163
|
+
},
|
|
1164
|
+
{
|
|
1165
|
+
if: { password: true, pressed: true },
|
|
1166
|
+
tokens: { backgroundColor: '#014847', iconColor: '#ffffff' }
|
|
1167
|
+
},
|
|
1168
|
+
{
|
|
1169
|
+
if: { focus: true, password: true },
|
|
1170
|
+
tokens: { borderColor: '#016b6a', borderWidth: 3 }
|
|
1171
|
+
},
|
|
1172
|
+
{
|
|
1173
|
+
if: { inactive: true },
|
|
1174
|
+
tokens: {
|
|
1175
|
+
backgroundColor: 'rgba(0, 0, 0, 0)',
|
|
1176
|
+
borderWidth: 0,
|
|
1177
|
+
iconColor: '#ffffff'
|
|
1178
|
+
}
|
|
1179
|
+
},
|
|
1180
|
+
{
|
|
1181
|
+
if: { inactive: true, password: true },
|
|
1182
|
+
tokens: { iconColor: '#c9c8c8' }
|
|
1183
|
+
}
|
|
1184
|
+
],
|
|
1109
1185
|
tokens: {
|
|
1110
1186
|
backgroundColor: 'transparent',
|
|
1111
1187
|
borderColor: '#016b6a',
|
|
@@ -2726,6 +2802,11 @@ module.exports = {
|
|
|
2726
2802
|
type: 'state',
|
|
2727
2803
|
values: [ true ]
|
|
2728
2804
|
},
|
|
2805
|
+
password: {
|
|
2806
|
+
description: 'capability that helps masking and unmasking text',
|
|
2807
|
+
type: 'variant',
|
|
2808
|
+
values: [ true ]
|
|
2809
|
+
},
|
|
2729
2810
|
validation: {
|
|
2730
2811
|
description: 'Validation states for form inputs',
|
|
2731
2812
|
type: 'state',
|
|
@@ -2788,7 +2869,9 @@ module.exports = {
|
|
|
2788
2869
|
paddingBottom: 10,
|
|
2789
2870
|
paddingLeft: 16,
|
|
2790
2871
|
paddingRight: 16,
|
|
2791
|
-
paddingTop: 10
|
|
2872
|
+
paddingTop: 10,
|
|
2873
|
+
passwordHideButtonIcon: PaletteIconEyeMasked,
|
|
2874
|
+
passwordShowButtonIcon: PaletteIconEyeUnmasked
|
|
2792
2875
|
}
|
|
2793
2876
|
},
|
|
2794
2877
|
Timeline: {
|
|
@@ -3027,6 +3110,11 @@ module.exports = {
|
|
|
3027
3110
|
Typography: {
|
|
3028
3111
|
appearances: {
|
|
3029
3112
|
colour: { type: 'variant', values: [ 'red' ] },
|
|
3113
|
+
compact: {
|
|
3114
|
+
description: 'Reduces line height on some body text styles. For data-rich content, not for flow content',
|
|
3115
|
+
type: 'variant',
|
|
3116
|
+
values: [ true ]
|
|
3117
|
+
},
|
|
3030
3118
|
inverse: {
|
|
3031
3119
|
description: 'Styles the link white for use on dark backgrounds.',
|
|
3032
3120
|
type: 'variant',
|
|
@@ -3034,7 +3122,14 @@ module.exports = {
|
|
|
3034
3122
|
},
|
|
3035
3123
|
size: {
|
|
3036
3124
|
type: 'variant',
|
|
3037
|
-
values: [
|
|
3125
|
+
values: [
|
|
3126
|
+
'micro', 'small',
|
|
3127
|
+
'medium', 'large',
|
|
3128
|
+
'h1', 'h2',
|
|
3129
|
+
'h3', 'h4',
|
|
3130
|
+
'h5', 'h6',
|
|
3131
|
+
'display1', 'display2'
|
|
3132
|
+
]
|
|
3038
3133
|
},
|
|
3039
3134
|
viewport: {
|
|
3040
3135
|
description: 'The size label for the current screen viewport based on the current screen width',
|
|
@@ -3058,72 +3153,119 @@ module.exports = {
|
|
|
3058
3153
|
},
|
|
3059
3154
|
{
|
|
3060
3155
|
if: { size: 'large' },
|
|
3061
|
-
tokens: { fontSize: 20, lineHeight: 1.
|
|
3156
|
+
tokens: { fontSize: 20, lineHeight: 1.4 }
|
|
3157
|
+
},
|
|
3158
|
+
{
|
|
3159
|
+
if: { compact: true, size: 'large' },
|
|
3160
|
+
tokens: { lineHeight: 1.2 }
|
|
3161
|
+
},
|
|
3162
|
+
{
|
|
3163
|
+
if: { size: 'medium' },
|
|
3164
|
+
tokens: { fontSize: 16, lineHeight: 1.5 }
|
|
3165
|
+
},
|
|
3166
|
+
{
|
|
3167
|
+
if: { compact: true, size: 'medium' },
|
|
3168
|
+
tokens: { lineHeight: 1.25 }
|
|
3062
3169
|
},
|
|
3063
3170
|
{
|
|
3064
3171
|
if: { size: 'small' },
|
|
3065
|
-
tokens: { fontSize: 14, lineHeight: 1.
|
|
3172
|
+
tokens: { fontSize: 14, lineHeight: 1.42857142857 }
|
|
3173
|
+
},
|
|
3174
|
+
{
|
|
3175
|
+
if: { compact: true, size: 'small' },
|
|
3176
|
+
tokens: { lineHeight: 1.14285714286 }
|
|
3177
|
+
},
|
|
3178
|
+
{
|
|
3179
|
+
if: { size: 'micro' },
|
|
3180
|
+
tokens: { fontSize: 12, lineHeight: 1.33333333333 }
|
|
3181
|
+
},
|
|
3182
|
+
{
|
|
3183
|
+
if: { compact: true, size: 'micro' },
|
|
3184
|
+
tokens: { lineHeight: 1.33333333333 }
|
|
3066
3185
|
},
|
|
3067
3186
|
{
|
|
3068
|
-
if: { size: '
|
|
3187
|
+
if: { size: 'display1' },
|
|
3069
3188
|
tokens: {
|
|
3070
3189
|
fontName: 'StagSans',
|
|
3071
|
-
fontSize:
|
|
3190
|
+
fontSize: 44,
|
|
3072
3191
|
fontWeight: '700',
|
|
3073
|
-
lineHeight: 1.
|
|
3192
|
+
lineHeight: 1.22222222222
|
|
3193
|
+
}
|
|
3194
|
+
},
|
|
3195
|
+
{
|
|
3196
|
+
if: { size: 'display1', viewport: [ 'lg', 'xl' ] },
|
|
3197
|
+
tokens: { fontSize: 70, lineHeight: 1.2 }
|
|
3198
|
+
},
|
|
3199
|
+
{
|
|
3200
|
+
if: { size: 'display2' },
|
|
3201
|
+
tokens: {
|
|
3202
|
+
fontName: 'StagSans',
|
|
3203
|
+
fontSize: 36,
|
|
3204
|
+
fontWeight: '700',
|
|
3205
|
+
lineHeight: 1.22222222222
|
|
3074
3206
|
}
|
|
3075
3207
|
},
|
|
3076
3208
|
{
|
|
3077
|
-
if: { size: '
|
|
3078
|
-
tokens: { fontSize:
|
|
3209
|
+
if: { size: 'display2', viewport: [ 'lg', 'xl' ] },
|
|
3210
|
+
tokens: { fontSize: 54, lineHeight: 1.14285714286 }
|
|
3079
3211
|
},
|
|
3080
3212
|
{
|
|
3081
3213
|
if: { size: 'h1' },
|
|
3082
3214
|
tokens: {
|
|
3083
3215
|
fontName: 'StagSans',
|
|
3084
|
-
fontSize:
|
|
3216
|
+
fontSize: 34,
|
|
3085
3217
|
fontWeight: '700',
|
|
3086
|
-
lineHeight: 1.
|
|
3218
|
+
lineHeight: 1.22222222222
|
|
3087
3219
|
}
|
|
3088
3220
|
},
|
|
3089
3221
|
{
|
|
3090
3222
|
if: { size: 'h1', viewport: [ 'lg', 'xl' ] },
|
|
3091
|
-
tokens: { fontSize:
|
|
3223
|
+
tokens: { fontSize: 44, lineHeight: 1.22222222222 }
|
|
3092
3224
|
},
|
|
3093
3225
|
{
|
|
3094
3226
|
if: { size: 'h2' },
|
|
3095
3227
|
tokens: {
|
|
3096
3228
|
color: '#000000',
|
|
3097
3229
|
fontName: 'StagSans',
|
|
3098
|
-
fontSize:
|
|
3230
|
+
fontSize: 32,
|
|
3099
3231
|
fontWeight: '700',
|
|
3100
|
-
lineHeight: 1.
|
|
3232
|
+
lineHeight: 1.25
|
|
3101
3233
|
}
|
|
3102
3234
|
},
|
|
3103
3235
|
{
|
|
3104
|
-
if: { size: '
|
|
3105
|
-
tokens: {
|
|
3236
|
+
if: { size: 'h3' },
|
|
3237
|
+
tokens: {
|
|
3238
|
+
fontName: 'StagSans',
|
|
3239
|
+
fontSize: 24,
|
|
3240
|
+
fontWeight: '700',
|
|
3241
|
+
lineHeight: 1.33333333333
|
|
3242
|
+
}
|
|
3106
3243
|
},
|
|
3107
3244
|
{
|
|
3108
|
-
if: { size: '
|
|
3245
|
+
if: { size: 'h4' },
|
|
3109
3246
|
tokens: {
|
|
3110
3247
|
fontName: 'StagSans',
|
|
3111
3248
|
fontSize: 20,
|
|
3112
3249
|
fontWeight: '700',
|
|
3113
|
-
lineHeight: 1.
|
|
3250
|
+
lineHeight: 1.2
|
|
3114
3251
|
}
|
|
3115
3252
|
},
|
|
3116
3253
|
{
|
|
3117
|
-
if: { size: '
|
|
3118
|
-
tokens: {
|
|
3254
|
+
if: { size: 'h5' },
|
|
3255
|
+
tokens: {
|
|
3256
|
+
fontName: 'StagSans',
|
|
3257
|
+
fontSize: 18,
|
|
3258
|
+
fontWeight: '700',
|
|
3259
|
+
lineHeight: 1.22222222222
|
|
3260
|
+
}
|
|
3119
3261
|
},
|
|
3120
3262
|
{
|
|
3121
|
-
if: { size: '
|
|
3263
|
+
if: { size: 'h6' },
|
|
3122
3264
|
tokens: {
|
|
3123
3265
|
fontName: 'StagSans',
|
|
3124
3266
|
fontSize: 16,
|
|
3125
3267
|
fontWeight: '700',
|
|
3126
|
-
lineHeight: 1.
|
|
3268
|
+
lineHeight: 1.25
|
|
3127
3269
|
}
|
|
3128
3270
|
},
|
|
3129
3271
|
{ if: { inverse: true }, tokens: { color: '#ffffff' } },
|
|
@@ -3200,5 +3342,5 @@ module.exports = {
|
|
|
3200
3342
|
tokens: { size: 96 }
|
|
3201
3343
|
}
|
|
3202
3344
|
},
|
|
3203
|
-
metadata: { name: 'theme-koodo', themeTokensVersion: '2.
|
|
3345
|
+
metadata: { name: 'theme-koodo', themeTokensVersion: '2.13.0' }
|
|
3204
3346
|
}
|
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.6.0",
|
|
9
|
+
"@telus-uds/system-theme-tokens": "^2.13.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.6.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.14.0"
|
|
35
35
|
}
|