@telus-uds/theme-koodo 3.8.0 → 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/rn/theme.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  *
3
3
  * Do not edit directly
4
- * Generated on Thu, 09 Feb 2023 23:33:13 GMT
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
- rules: [],
26
- tokens: { color: '#014847', size: 40, thickness: 4 }
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. Transparent if not specified.',
32
- values: [ 'light', 'lightest', 'black' ]
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: null, gradient: null }
121
+ tokens: { backgroundColor: '#ffffff', gradient: null }
50
122
  },
51
123
  Button: {
52
124
  appearances: {
@@ -697,8 +769,20 @@ module.exports = {
697
769
  }
698
770
  },
699
771
  Divider: {
700
- appearances: {},
701
- rules: [],
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
+ ],
702
786
  tokens: { color: '#c9c8c8', width: 1 }
703
787
  },
704
788
  ExpandCollapse: {
@@ -1160,37 +1244,40 @@ module.exports = {
1160
1244
  {
1161
1245
  if: { style: 'success' },
1162
1246
  tokens: {
1163
- backgroundColor: '#c1f2e8',
1247
+ backgroundColor: '#e5f7fb',
1248
+ color: '#000000',
1164
1249
  icon: PaletteIconCheckCircledFilled,
1165
- iconColor: '#258b0b'
1250
+ iconColor: '#016b6a'
1166
1251
  }
1167
1252
  },
1168
1253
  {
1169
1254
  if: { style: 'warning' },
1170
1255
  tokens: {
1171
1256
  backgroundColor: '#feeec7',
1257
+ color: '#000000',
1172
1258
  icon: PaletteIconExclamationTriangle,
1173
- iconColor: '#fbaf34'
1259
+ iconColor: '#ee2c74'
1174
1260
  }
1175
1261
  },
1176
1262
  {
1177
1263
  if: { style: 'error' },
1178
1264
  tokens: {
1179
1265
  backgroundColor: '#f8dde3',
1266
+ color: '#000000',
1180
1267
  icon: PaletteIconExclamationOctagon,
1181
1268
  iconColor: '#df3d0c'
1182
1269
  }
1183
1270
  }
1184
1271
  ],
1185
1272
  tokens: {
1186
- backgroundColor: '#efefef',
1273
+ backgroundColor: '#fae6f4',
1187
1274
  borderBottomWidth: 0,
1188
1275
  borderColor: 'transparent',
1189
1276
  borderLeftWidth: 0,
1190
1277
  borderRadius: 0,
1191
1278
  borderRightWidth: 0,
1192
1279
  borderTopWidth: 0,
1193
- color: '#000000',
1280
+ color: '#7c1366',
1194
1281
  dismissButtonGap: 16,
1195
1282
  dismissIcon: PaletteIconTimes,
1196
1283
  dismissIconColor: '#000000',
@@ -2776,8 +2863,13 @@ module.exports = {
2776
2863
  }
2777
2864
  },
2778
2865
  Tooltip: {
2779
- appearances: {},
2780
- rules: [],
2866
+ appearances: { inverse: { type: 'variant', values: [ true ] } },
2867
+ rules: [
2868
+ {
2869
+ if: { inverse: true },
2870
+ tokens: { backgroundColor: '#ffffff', color: '#014847' }
2871
+ }
2872
+ ],
2781
2873
  tokens: {
2782
2874
  arrowBorderRadius: 0,
2783
2875
  arrowOffset: 4,
@@ -2965,9 +3057,9 @@ module.exports = {
2965
3057
  description: 'Index of the intended position on the spacing scale',
2966
3058
  type: 'state',
2967
3059
  values: [
2968
- 0, 1, 2, 3, 4,
2969
- 5, 6, 7, 8, 9,
2970
- 10, 11
3060
+ 0, 1, 2, 3, 4, 5,
3061
+ 6, 7, 8, 9, 10, 11,
3062
+ 12
2971
3063
  ]
2972
3064
  },
2973
3065
  viewport: {
@@ -2978,6 +3070,8 @@ module.exports = {
2978
3070
  },
2979
3071
  rules: [
2980
3072
  { if: { viewport: [ 'lg', 'xl' ] }, tokens: { size: 120 } },
3073
+ { if: { space: 12 }, tokens: { size: 120 } },
3074
+ { if: { space: 11 }, tokens: { size: 120 } },
2981
3075
  { if: { space: 10 }, tokens: { size: 80 } },
2982
3076
  { if: { space: 9 }, tokens: { size: 64 } },
2983
3077
  { if: { space: 8 }, tokens: { size: 48 } },
@@ -2989,25 +3083,33 @@ module.exports = {
2989
3083
  { if: { space: 2 }, tokens: { size: 8 } },
2990
3084
  { if: { space: 1 }, tokens: { size: 4 } },
2991
3085
  {
2992
- if: { space: 10, viewport: [ 'lg', 'xl' ] },
3086
+ if: { space: 11, viewport: [ 'lg', 'xl' ] },
2993
3087
  tokens: { size: 120 }
2994
3088
  },
2995
3089
  {
2996
- if: { space: 9, viewport: [ 'lg', 'xl' ] },
3090
+ if: { space: 10, viewport: [ 'lg', 'xl' ] },
2997
3091
  tokens: { size: 96 }
2998
3092
  },
2999
3093
  {
3000
- if: { space: 8, viewport: [ 'lg', 'xl' ] },
3094
+ if: { space: 9, viewport: [ 'lg', 'xl' ] },
3001
3095
  tokens: { size: 72 }
3002
3096
  },
3003
3097
  {
3004
- if: { space: 7, viewport: [ 'lg', 'xl' ] },
3098
+ if: { space: 8, viewport: [ 'lg', 'xl' ] },
3005
3099
  tokens: { size: 64 }
3006
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
+ },
3007
3109
  { if: { space: 0 }, tokens: { size: 0 } }
3008
3110
  ],
3009
3111
  tokens: { size: 96 }
3010
3112
  }
3011
3113
  },
3012
- metadata: { name: 'theme-koodo', themeTokensVersion: '2.10.0' }
3114
+ metadata: { name: 'theme-koodo', themeTokensVersion: '2.11.0' }
3013
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.2.1",
9
- "@telus-uds/system-theme-tokens": "^2.10.0"
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.2.1"
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.8.0"
34
+ "version": "3.9.0"
35
35
  }
package/theme.json CHANGED
@@ -1,10 +1,26 @@
1
1
  {
2
2
  "components": {
3
3
  "ActivityIndicator": {
4
- "appearances": {},
5
- "rules": [],
4
+ "appearances": {
5
+ "size": {
6
+ "description": "used for full-screen spinners",
7
+ "type": "variant",
8
+ "values": ["large"]
9
+ }
10
+ },
11
+ "rules": [
12
+ {
13
+ "if": {
14
+ "size": "large"
15
+ },
16
+ "tokens": {
17
+ "size": "{palette.size.size48}",
18
+ "thickness": "{palette.border.border4}"
19
+ }
20
+ }
21
+ ],
6
22
  "tokens": {
7
- "color": "{palette.color.darkMosque}",
23
+ "color": "{palette.color.mosque}",
8
24
  "size": "{palette.size.size40}",
9
25
  "thickness": "{palette.border.border4}"
10
26
  }
@@ -12,8 +28,26 @@
12
28
  "Box": {
13
29
  "appearances": {
14
30
  "background": {
15
- "description": "Background colour of box. Transparent if not specified.",
16
- "values": ["light", "lightest", "black"]
31
+ "description": "Background colour of box. White if not specified.",
32
+ "values": [
33
+ "lightest",
34
+ "lighter",
35
+ "light",
36
+ "dark",
37
+ "darker",
38
+ "darkest",
39
+ "critical",
40
+ "danger",
41
+ "warning",
42
+ "positive",
43
+ "brand",
44
+ "white",
45
+ "black",
46
+ "featurePrimary",
47
+ "featureSecondary",
48
+ "featureNeutral",
49
+ "featureBrand"
50
+ ]
17
51
  }
18
52
  },
19
53
  "rules": [
@@ -25,6 +59,14 @@
25
59
  "backgroundColor": "{palette.color.white}"
26
60
  }
27
61
  },
62
+ {
63
+ "if": {
64
+ "background": "lighter"
65
+ },
66
+ "tokens": {
67
+ "backgroundColor": "{palette.color.greyLight}"
68
+ }
69
+ },
28
70
  {
29
71
  "if": {
30
72
  "background": "light"
@@ -33,6 +75,78 @@
33
75
  "backgroundColor": "{palette.color.gallery}"
34
76
  }
35
77
  },
78
+ {
79
+ "if": {
80
+ "background": "dark"
81
+ },
82
+ "tokens": {
83
+ "backgroundColor": "{palette.color.dove}"
84
+ }
85
+ },
86
+ {
87
+ "if": {
88
+ "background": "darker"
89
+ },
90
+ "tokens": {
91
+ "backgroundColor": "{palette.color.mortar}"
92
+ }
93
+ },
94
+ {
95
+ "if": {
96
+ "background": "darkest"
97
+ },
98
+ "tokens": {
99
+ "backgroundColor": "{palette.color.black}"
100
+ }
101
+ },
102
+ {
103
+ "if": {
104
+ "background": "critical"
105
+ },
106
+ "tokens": {
107
+ "backgroundColor": "{palette.color.wellRead}"
108
+ }
109
+ },
110
+ {
111
+ "if": {
112
+ "background": "danger"
113
+ },
114
+ "tokens": {
115
+ "backgroundColor": "{palette.color.piggyPink}"
116
+ }
117
+ },
118
+ {
119
+ "if": {
120
+ "background": "warning"
121
+ },
122
+ "tokens": {
123
+ "backgroundColor": "{palette.color.beeswax}"
124
+ }
125
+ },
126
+ {
127
+ "if": {
128
+ "background": "positive"
129
+ },
130
+ "tokens": {
131
+ "backgroundColor": "{palette.color.icicle}"
132
+ }
133
+ },
134
+ {
135
+ "if": {
136
+ "background": "brand"
137
+ },
138
+ "tokens": {
139
+ "backgroundColor": "{palette.color.mosque}"
140
+ }
141
+ },
142
+ {
143
+ "if": {
144
+ "background": "white"
145
+ },
146
+ "tokens": {
147
+ "backgroundColor": "{palette.color.white}"
148
+ }
149
+ },
36
150
  {
37
151
  "if": {
38
152
  "background": "black"
@@ -40,10 +154,42 @@
40
154
  "tokens": {
41
155
  "backgroundColor": "{palette.color.black}"
42
156
  }
157
+ },
158
+ {
159
+ "if": {
160
+ "background": "featurePrimary"
161
+ },
162
+ "tokens": {
163
+ "backgroundColor": "{palette.color.flirt}"
164
+ }
165
+ },
166
+ {
167
+ "if": {
168
+ "background": "featureSecondary"
169
+ },
170
+ "tokens": {
171
+ "backgroundColor": "{palette.color.chathamsBlue}"
172
+ }
173
+ },
174
+ {
175
+ "if": {
176
+ "background": "featureNeutral"
177
+ },
178
+ "tokens": {
179
+ "backgroundColor": "{palette.color.mortar}"
180
+ }
181
+ },
182
+ {
183
+ "if": {
184
+ "background": "featureBrand"
185
+ },
186
+ "tokens": {
187
+ "backgroundColor": "{palette.color.mosque}"
188
+ }
43
189
  }
44
190
  ],
45
191
  "tokens": {
46
- "backgroundColor": "{system.color.none}",
192
+ "backgroundColor": "{palette.color.white}",
47
193
  "gradient": "{system.gradient.none}"
48
194
  }
49
195
  },
@@ -733,8 +879,47 @@
733
879
  }
734
880
  },
735
881
  "Divider": {
736
- "appearances": {},
737
- "rules": [],
882
+ "appearances": {
883
+ "decorative": {
884
+ "description": "Use a decorative divider to highlight an element. Non-decorative dividers are for clearly identifying separation of content.",
885
+ "type": "variant",
886
+ "values": [true]
887
+ },
888
+ "inverse": {
889
+ "type": "variant",
890
+ "values": [true]
891
+ },
892
+ "weight": {
893
+ "type": "variant",
894
+ "values": ["thick"]
895
+ }
896
+ },
897
+ "rules": [
898
+ {
899
+ "if": {
900
+ "weight": "thick"
901
+ },
902
+ "tokens": {
903
+ "width": "{palette.size.size2}"
904
+ }
905
+ },
906
+ {
907
+ "if": {
908
+ "decorative": true
909
+ },
910
+ "tokens": {
911
+ "color": "{palette.color.gallery}"
912
+ }
913
+ },
914
+ {
915
+ "if": {
916
+ "inverse": true
917
+ },
918
+ "tokens": {
919
+ "color": "{palette.color.white}"
920
+ }
921
+ }
922
+ ],
738
923
  "tokens": {
739
924
  "color": "{palette.color.silver}",
740
925
  "width": "{palette.size.size1}"
@@ -1285,9 +1470,10 @@
1285
1470
  "style": "success"
1286
1471
  },
1287
1472
  "tokens": {
1288
- "backgroundColor": "{palette.color.mintTulip}",
1473
+ "backgroundColor": "{palette.color.icicle}",
1474
+ "color": "{palette.color.black}",
1289
1475
  "icon": "{palette.icon.CheckCircledFilled}",
1290
- "iconColor": "{palette.color.bilbao}"
1476
+ "iconColor": "{palette.color.mosque}"
1291
1477
  }
1292
1478
  },
1293
1479
  {
@@ -1296,8 +1482,9 @@
1296
1482
  },
1297
1483
  "tokens": {
1298
1484
  "backgroundColor": "{palette.color.beeswax}",
1485
+ "color": "{palette.color.black}",
1299
1486
  "icon": "{palette.icon.ExclamationTriangle}",
1300
- "iconColor": "{palette.color.seaBuckthorn}"
1487
+ "iconColor": "{palette.color.amaranth}"
1301
1488
  }
1302
1489
  },
1303
1490
  {
@@ -1305,21 +1492,22 @@
1305
1492
  "style": "error"
1306
1493
  },
1307
1494
  "tokens": {
1308
- "backgroundColor": "{palette.color.notificationErrorBg}",
1495
+ "backgroundColor": "{palette.color.piggyPink}",
1496
+ "color": "{palette.color.black}",
1309
1497
  "icon": "{palette.icon.ExclamationOctagon}",
1310
1498
  "iconColor": "{palette.color.trinidad}"
1311
1499
  }
1312
1500
  }
1313
1501
  ],
1314
1502
  "tokens": {
1315
- "backgroundColor": "{palette.color.gallery}",
1503
+ "backgroundColor": "{palette.color.carouselPink}",
1316
1504
  "borderBottomWidth": "{system.border.zero}",
1317
1505
  "borderColor": "{system.color.transparent}",
1318
1506
  "borderLeftWidth": "{system.border.zero}",
1319
1507
  "borderRadius": "{system.radius.zero}",
1320
1508
  "borderRightWidth": "{system.border.zero}",
1321
1509
  "borderTopWidth": "{system.border.zero}",
1322
- "color": "{palette.color.black}",
1510
+ "color": "{palette.color.flirt}",
1323
1511
  "dismissButtonGap": "{palette.size.size16}",
1324
1512
  "dismissIcon": "{palette.icon.Times}",
1325
1513
  "dismissIconColor": "{palette.color.black}",
@@ -2985,8 +3173,23 @@
2985
3173
  }
2986
3174
  },
2987
3175
  "Tooltip": {
2988
- "appearances": {},
2989
- "rules": [],
3176
+ "appearances": {
3177
+ "inverse": {
3178
+ "type": "variant",
3179
+ "values": [true]
3180
+ }
3181
+ },
3182
+ "rules": [
3183
+ {
3184
+ "if": {
3185
+ "inverse": true
3186
+ },
3187
+ "tokens": {
3188
+ "backgroundColor": "{palette.color.white}",
3189
+ "color": "{palette.color.darkMosque}"
3190
+ }
3191
+ }
3192
+ ],
2990
3193
  "tokens": {
2991
3194
  "arrowBorderRadius": "{palette.radius.none}",
2992
3195
  "arrowOffset": "{palette.size.size4}",
@@ -3245,6 +3448,22 @@
3245
3448
  "size": "{palette.size.size120}"
3246
3449
  }
3247
3450
  },
3451
+ {
3452
+ "if": {
3453
+ "space": 12
3454
+ },
3455
+ "tokens": {
3456
+ "size": "{palette.size.size120}"
3457
+ }
3458
+ },
3459
+ {
3460
+ "if": {
3461
+ "space": 11
3462
+ },
3463
+ "tokens": {
3464
+ "size": "{palette.size.size120}"
3465
+ }
3466
+ },
3248
3467
  {
3249
3468
  "if": {
3250
3469
  "space": 10
@@ -3327,7 +3546,7 @@
3327
3546
  },
3328
3547
  {
3329
3548
  "if": {
3330
- "space": 10,
3549
+ "space": 11,
3331
3550
  "viewport": ["lg", "xl"]
3332
3551
  },
3333
3552
  "tokens": {
@@ -3336,7 +3555,7 @@
3336
3555
  },
3337
3556
  {
3338
3557
  "if": {
3339
- "space": 9,
3558
+ "space": 10,
3340
3559
  "viewport": ["lg", "xl"]
3341
3560
  },
3342
3561
  "tokens": {
@@ -3345,7 +3564,7 @@
3345
3564
  },
3346
3565
  {
3347
3566
  "if": {
3348
- "space": 8,
3567
+ "space": 9,
3349
3568
  "viewport": ["lg", "xl"]
3350
3569
  },
3351
3570
  "tokens": {
@@ -3354,13 +3573,31 @@
3354
3573
  },
3355
3574
  {
3356
3575
  "if": {
3357
- "space": 7,
3576
+ "space": 8,
3358
3577
  "viewport": ["lg", "xl"]
3359
3578
  },
3360
3579
  "tokens": {
3361
3580
  "size": "{palette.size.size64}"
3362
3581
  }
3363
3582
  },
3583
+ {
3584
+ "if": {
3585
+ "space": 7,
3586
+ "viewport": ["lg", "xl"]
3587
+ },
3588
+ "tokens": {
3589
+ "size": "{palette.size.size48}"
3590
+ }
3591
+ },
3592
+ {
3593
+ "if": {
3594
+ "space": 6,
3595
+ "viewport": ["lg", "xl"]
3596
+ },
3597
+ "tokens": {
3598
+ "size": "{palette.size.size40}"
3599
+ }
3600
+ },
3364
3601
  {
3365
3602
  "if": {
3366
3603
  "space": 0