@telus-uds/theme-koodo 4.12.3 → 4.13.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 Tue, 12 Sep 2023 15:30:04 GMT
4
+ * Generated on Thu, 19 Oct 2023 00:20:57 GMT
5
5
  *
6
6
  */
7
7
 
@@ -54,10 +54,19 @@ module.exports = {
54
54
  Badge: {
55
55
  appearances: {
56
56
  alternative: { type: 'variant', values: [ true ] },
57
+ inverse: { type: 'variant', values: [ true ] },
57
58
  outline: { type: 'variant', values: [ true ] },
58
59
  purpose: { type: 'variant', values: [ 'offer', 'editorial' ] }
59
60
  },
60
61
  rules: [
62
+ {
63
+ if: { inverse: true },
64
+ tokens: {
65
+ backgroundColor: 'rgba(0, 0, 0, 0)',
66
+ borderColor: '#ffffff',
67
+ color: '#ffffff'
68
+ }
69
+ },
61
70
  {
62
71
  if: { outline: true },
63
72
  tokens: {
@@ -996,6 +1005,7 @@ module.exports = {
996
1005
  type: 'variant',
997
1006
  values: [ 'alternative', 'subtle', 'grid', 'feature' ]
998
1007
  },
1008
+ borderRadius: { type: 'variant', values: [ 'none', 'small', 'large' ] },
999
1009
  padding: {
1000
1010
  type: 'variant',
1001
1011
  values: [ 'narrow', 'intermediate', 'compact', 'custom' ]
@@ -1007,6 +1017,9 @@ module.exports = {
1007
1017
  }
1008
1018
  },
1009
1019
  rules: [
1020
+ { if: { borderRadius: 'none' }, tokens: { borderRadius: 0 } },
1021
+ { if: { borderRadius: 'small' }, tokens: { borderRadius: 4 } },
1022
+ { if: { borderRadius: 'large' }, tokens: { borderRadius: 8 } },
1010
1023
  {
1011
1024
  if: { background: 'alternative' },
1012
1025
  tokens: {
@@ -1938,8 +1951,54 @@ module.exports = {
1938
1951
  }
1939
1952
  },
1940
1953
  Footnote: {
1941
- appearances: {},
1942
- rules: [],
1954
+ appearances: {
1955
+ viewport: {
1956
+ description: 'The size label for the current screen viewport based on the current screen width',
1957
+ type: 'state',
1958
+ values: [ 'xs', 'sm', 'md', 'lg', 'xl' ]
1959
+ }
1960
+ },
1961
+ rules: [
1962
+ {
1963
+ if: { viewport: [ 'xs' ] },
1964
+ tokens: {
1965
+ footnoteBodyPaddingBottom: 32,
1966
+ footnoteBodyPaddingLeft: 16,
1967
+ footnoteBodyPaddingRight: 16,
1968
+ footnoteBodyPaddingTop: 0,
1969
+ footnoteHeaderPaddingBottom: 16,
1970
+ footnoteHeaderPaddingLeft: 16,
1971
+ footnoteHeaderPaddingRight: 4,
1972
+ footnoteHeaderPaddingTop: 16
1973
+ }
1974
+ },
1975
+ {
1976
+ if: { viewport: [ 'md', 'lg' ] },
1977
+ tokens: {
1978
+ footnoteBodyPaddingBottom: 40,
1979
+ footnoteBodyPaddingLeft: 16,
1980
+ footnoteBodyPaddingRight: 16,
1981
+ footnoteBodyPaddingTop: 0,
1982
+ footnoteHeaderPaddingBottom: 24,
1983
+ footnoteHeaderPaddingLeft: 16,
1984
+ footnoteHeaderPaddingRight: 4,
1985
+ footnoteHeaderPaddingTop: 24
1986
+ }
1987
+ },
1988
+ {
1989
+ if: { viewport: [ 'xl' ] },
1990
+ tokens: {
1991
+ footnoteBodyPaddingBottom: 40,
1992
+ footnoteBodyPaddingLeft: 16,
1993
+ footnoteBodyPaddingRight: 16,
1994
+ footnoteBodyPaddingTop: 0,
1995
+ footnoteHeaderPaddingBottom: 24,
1996
+ footnoteHeaderPaddingLeft: 16,
1997
+ footnoteHeaderPaddingRight: 16,
1998
+ footnoteHeaderPaddingTop: 24
1999
+ }
2000
+ }
2001
+ ],
1943
2002
  tokens: {
1944
2003
  closeButtonBackgroundColor: '#ffffff',
1945
2004
  closeButtonBorderColor: '#000000',
@@ -1954,16 +2013,16 @@ module.exports = {
1954
2013
  closeIcon: PaletteIconClose,
1955
2014
  footnoteBackground: '#ffffff',
1956
2015
  footnoteBodyBackground: '#ffffff',
1957
- footnoteBodyPaddingBottom: 32,
2016
+ footnoteBodyPaddingBottom: 40,
1958
2017
  footnoteBodyPaddingLeft: 16,
1959
2018
  footnoteBodyPaddingRight: 16,
1960
2019
  footnoteBodyPaddingTop: 0,
1961
2020
  footnoteBorderColorMd: '#c9c8c8',
1962
2021
  footnoteBorderTopSizeMd: 1,
1963
- footnoteHeaderPaddingBottom: 16,
2022
+ footnoteHeaderPaddingBottom: 24,
1964
2023
  footnoteHeaderPaddingLeft: 16,
1965
- footnoteHeaderPaddingRight: 16,
1966
- footnoteHeaderPaddingTop: 16,
2024
+ footnoteHeaderPaddingRight: 4,
2025
+ footnoteHeaderPaddingTop: 24,
1967
2026
  headerFontName: 'StagSans',
1968
2027
  headerFontSize: 16,
1969
2028
  headerFontWeight: '700',
@@ -2221,6 +2280,10 @@ module.exports = {
2221
2280
  iconScale: 1.1
2222
2281
  }
2223
2282
  },
2283
+ {
2284
+ if: { hover: true, inactive: true },
2285
+ tokens: { iconScale: 1 }
2286
+ },
2224
2287
  {
2225
2288
  if: { hover: true, password: true },
2226
2289
  tokens: {
@@ -2235,7 +2298,11 @@ module.exports = {
2235
2298
  },
2236
2299
  {
2237
2300
  if: { focus: true, password: true },
2238
- tokens: { borderColor: '#016b6a' }
2301
+ tokens: {
2302
+ borderColor: '#016b6a',
2303
+ borderWidth: 3,
2304
+ outerBorderWidth: 0
2305
+ }
2239
2306
  },
2240
2307
  {
2241
2308
  if: { hover: true, inverse: true },
@@ -2250,14 +2317,6 @@ module.exports = {
2250
2317
  outerBorderWidth: 1
2251
2318
  }
2252
2319
  },
2253
- {
2254
- if: { focus: true, password: true },
2255
- tokens: {
2256
- outerBorderColor: '#016b6a',
2257
- outerBorderGap: 4,
2258
- outerBorderWidth: 2
2259
- }
2260
- },
2261
2320
  {
2262
2321
  if: { focus: true, inverse: true },
2263
2322
  tokens: {
@@ -2268,6 +2327,10 @@ module.exports = {
2268
2327
  outerBorderWidth: 1
2269
2328
  }
2270
2329
  },
2330
+ {
2331
+ if: { inactive: null, pressed: true },
2332
+ tokens: { backgroundColor: 'transparent', iconColor: '#014847' }
2333
+ },
2271
2334
  {
2272
2335
  if: { pressed: true },
2273
2336
  tokens: {
@@ -2352,7 +2415,7 @@ module.exports = {
2352
2415
  tokens: {
2353
2416
  backgroundColor: 'rgba(0, 0, 0, 0)',
2354
2417
  borderWidth: 0,
2355
- iconColor: '#014847',
2418
+ iconColor: '#b5b4b4',
2356
2419
  outerBorderColor: 'rgba(0, 0, 0, 0)'
2357
2420
  }
2358
2421
  },
@@ -2364,7 +2427,16 @@ module.exports = {
2364
2427
  iconColor: '#ffffff'
2365
2428
  }
2366
2429
  },
2367
- { if: { compact: true }, tokens: { outerBorderGap: 0 } }
2430
+ { if: { compact: true }, tokens: { outerBorderGap: 0 } },
2431
+ {
2432
+ if: { inactive: true },
2433
+ tokens: {
2434
+ backgroundColor: 'transparent',
2435
+ iconColor: '#b5b4b4',
2436
+ outerBorderColor: 'rgba(0, 0, 0, 0)',
2437
+ outerBorderWidth: 0
2438
+ }
2439
+ }
2368
2440
  ],
2369
2441
  tokens: {
2370
2442
  backgroundColor: 'transparent',
@@ -2379,6 +2451,7 @@ module.exports = {
2379
2451
  borderTopRightRadius: null,
2380
2452
  borderTopWidth: null,
2381
2453
  borderWidth: 1,
2454
+ height: null,
2382
2455
  icon: PaletteIconAdd,
2383
2456
  iconColor: '#000000',
2384
2457
  iconScale: 1,
@@ -2389,7 +2462,8 @@ module.exports = {
2389
2462
  outerBorderGap: 0,
2390
2463
  outerBorderWidth: 0,
2391
2464
  padding: 4,
2392
- shadow: null
2465
+ shadow: null,
2466
+ width: null
2393
2467
  }
2394
2468
  },
2395
2469
  Image: { appearances: {}, rules: [], tokens: { borderRadius: 4 } },
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  },
6
6
  "description": "Koodo theme",
7
7
  "devDependencies": {
8
- "@telus-uds/palette-koodo": "^0.25.0",
8
+ "@telus-uds/palette-koodo": "^0.26.0",
9
9
  "@telus-uds/system-theme-tokens": "^2.41.1"
10
10
  },
11
11
  "files": [
@@ -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.25.0"
23
+ "@telus-uds/palette-koodo": "^0.26.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": "4.12.3"
34
+ "version": "4.13.0"
35
35
  }
package/theme.json CHANGED
@@ -31,6 +31,10 @@
31
31
  "type": "variant",
32
32
  "values": [true]
33
33
  },
34
+ "inverse": {
35
+ "type": "variant",
36
+ "values": [true]
37
+ },
34
38
  "outline": {
35
39
  "type": "variant",
36
40
  "values": [true]
@@ -41,6 +45,16 @@
41
45
  }
42
46
  },
43
47
  "rules": [
48
+ {
49
+ "if": {
50
+ "inverse": true
51
+ },
52
+ "tokens": {
53
+ "backgroundColor": "{palette.color.transparent}",
54
+ "borderColor": "{palette.color.white}",
55
+ "color": "{palette.color.white}"
56
+ }
57
+ },
44
58
  {
45
59
  "if": {
46
60
  "outline": true
@@ -1320,6 +1334,10 @@
1320
1334
  "type": "variant",
1321
1335
  "values": ["alternative", "subtle", "grid", "feature"]
1322
1336
  },
1337
+ "borderRadius": {
1338
+ "type": "variant",
1339
+ "values": ["none", "small", "large"]
1340
+ },
1323
1341
  "padding": {
1324
1342
  "type": "variant",
1325
1343
  "values": ["narrow", "intermediate", "compact", "custom"]
@@ -1327,6 +1345,30 @@
1327
1345
  "viewport": "{appearances.system.viewport}"
1328
1346
  },
1329
1347
  "rules": [
1348
+ {
1349
+ "if": {
1350
+ "borderRadius": "none"
1351
+ },
1352
+ "tokens": {
1353
+ "borderRadius": "{palette.radius.none}"
1354
+ }
1355
+ },
1356
+ {
1357
+ "if": {
1358
+ "borderRadius": "small"
1359
+ },
1360
+ "tokens": {
1361
+ "borderRadius": "{palette.radius.radius4}"
1362
+ }
1363
+ },
1364
+ {
1365
+ "if": {
1366
+ "borderRadius": "large"
1367
+ },
1368
+ "tokens": {
1369
+ "borderRadius": "{palette.radius.radius8}"
1370
+ }
1371
+ },
1330
1372
  {
1331
1373
  "if": {
1332
1374
  "background": "alternative"
@@ -2565,8 +2607,56 @@
2565
2607
  }
2566
2608
  },
2567
2609
  "Footnote": {
2568
- "appearances": {},
2569
- "rules": [],
2610
+ "appearances": {
2611
+ "viewport": "{appearances.system.viewport}"
2612
+ },
2613
+ "rules": [
2614
+ {
2615
+ "if": {
2616
+ "viewport": ["xs"]
2617
+ },
2618
+ "tokens": {
2619
+ "footnoteBodyPaddingBottom": "{palette.size.size32}",
2620
+ "footnoteBodyPaddingLeft": "{palette.size.size16}",
2621
+ "footnoteBodyPaddingRight": "{palette.size.size16}",
2622
+ "footnoteBodyPaddingTop": "{palette.size.size0}",
2623
+ "footnoteHeaderPaddingBottom": "{palette.size.size16}",
2624
+ "footnoteHeaderPaddingLeft": "{palette.size.size16}",
2625
+ "footnoteHeaderPaddingRight": "{palette.size.size4}",
2626
+ "footnoteHeaderPaddingTop": "{palette.size.size16}"
2627
+ }
2628
+ },
2629
+ {
2630
+ "if": {
2631
+ "viewport": ["md", "lg"]
2632
+ },
2633
+ "tokens": {
2634
+ "footnoteBodyPaddingBottom": "{palette.size.size40}",
2635
+ "footnoteBodyPaddingLeft": "{palette.size.size16}",
2636
+ "footnoteBodyPaddingRight": "{palette.size.size16}",
2637
+ "footnoteBodyPaddingTop": "{palette.size.size0}",
2638
+ "footnoteHeaderPaddingBottom": "{palette.size.size24}",
2639
+ "footnoteHeaderPaddingLeft": "{palette.size.size16}",
2640
+ "footnoteHeaderPaddingRight": "{palette.size.size4}",
2641
+ "footnoteHeaderPaddingTop": "{palette.size.size24}"
2642
+ }
2643
+ },
2644
+ {
2645
+ "if": {
2646
+ "viewport": ["xl"]
2647
+ },
2648
+ "tokens": {
2649
+ "footnoteBodyPaddingBottom": "{palette.size.size40}",
2650
+ "footnoteBodyPaddingLeft": "{palette.size.size16}",
2651
+ "footnoteBodyPaddingRight": "{palette.size.size16}",
2652
+ "footnoteBodyPaddingTop": "{palette.size.size0}",
2653
+ "footnoteHeaderPaddingBottom": "{palette.size.size24}",
2654
+ "footnoteHeaderPaddingLeft": "{palette.size.size16}",
2655
+ "footnoteHeaderPaddingRight": "{palette.size.size16}",
2656
+ "footnoteHeaderPaddingTop": "{palette.size.size24}"
2657
+ }
2658
+ }
2659
+ ],
2570
2660
  "tokens": {
2571
2661
  "closeButtonBackgroundColor": "{palette.color.white}",
2572
2662
  "closeButtonBorderColor": "{palette.color.black}",
@@ -2581,16 +2671,16 @@
2581
2671
  "closeIcon": "{palette.icon.Close}",
2582
2672
  "footnoteBackground": "{palette.color.white}",
2583
2673
  "footnoteBodyBackground": "{palette.color.white}",
2584
- "footnoteBodyPaddingBottom": "{palette.size.size32}",
2674
+ "footnoteBodyPaddingBottom": "{palette.size.size40}",
2585
2675
  "footnoteBodyPaddingLeft": "{palette.size.size16}",
2586
2676
  "footnoteBodyPaddingRight": "{palette.size.size16}",
2587
2677
  "footnoteBodyPaddingTop": "{palette.size.size0}",
2588
2678
  "footnoteBorderColorMd": "{palette.color.silver}",
2589
2679
  "footnoteBorderTopSizeMd": "{palette.border.border1}",
2590
- "footnoteHeaderPaddingBottom": "{palette.size.size16}",
2680
+ "footnoteHeaderPaddingBottom": "{palette.size.size24}",
2591
2681
  "footnoteHeaderPaddingLeft": "{palette.size.size16}",
2592
- "footnoteHeaderPaddingRight": "{palette.size.size16}",
2593
- "footnoteHeaderPaddingTop": "{palette.size.size16}",
2682
+ "footnoteHeaderPaddingRight": "{palette.size.size4}",
2683
+ "footnoteHeaderPaddingTop": "{palette.size.size24}",
2594
2684
  "headerFontName": "{palette.fontName.StagSans}",
2595
2685
  "headerFontSize": "{palette.size.size16}",
2596
2686
  "headerFontWeight": "{palette.fontWeight.weight700}",
@@ -3000,6 +3090,15 @@
3000
3090
  "iconScale": "{system.iconScale.scale1_10}"
3001
3091
  }
3002
3092
  },
3093
+ {
3094
+ "if": {
3095
+ "hover": true,
3096
+ "inactive": true
3097
+ },
3098
+ "tokens": {
3099
+ "iconScale": "{system.iconScale.scale1}"
3100
+ }
3101
+ },
3003
3102
  {
3004
3103
  "if": {
3005
3104
  "hover": true,
@@ -3025,7 +3124,9 @@
3025
3124
  "password": true
3026
3125
  },
3027
3126
  "tokens": {
3028
- "borderColor": "{palette.color.mosque}"
3127
+ "borderColor": "{palette.color.mosque}",
3128
+ "borderWidth": "{palette.border.border3}",
3129
+ "outerBorderWidth": "{palette.border.none}"
3029
3130
  }
3030
3131
  },
3031
3132
  {
@@ -3052,25 +3153,24 @@
3052
3153
  {
3053
3154
  "if": {
3054
3155
  "focus": true,
3055
- "password": true
3156
+ "inverse": true
3056
3157
  },
3057
3158
  "tokens": {
3058
- "outerBorderColor": "{palette.color.mosque}",
3059
- "outerBorderGap": "{palette.size.size4}",
3060
- "outerBorderWidth": "{palette.border.border2}"
3159
+ "backgroundColor": "{system.color.transparent}",
3160
+ "borderColor": "{palette.color.icicle}",
3161
+ "iconColor": "{palette.color.icicle}",
3162
+ "outerBorderColor": "{palette.color.icicle}",
3163
+ "outerBorderWidth": "{palette.border.border1}"
3061
3164
  }
3062
3165
  },
3063
3166
  {
3064
3167
  "if": {
3065
- "focus": true,
3066
- "inverse": true
3168
+ "inactive": null,
3169
+ "pressed": true
3067
3170
  },
3068
3171
  "tokens": {
3069
3172
  "backgroundColor": "{system.color.transparent}",
3070
- "borderColor": "{palette.color.icicle}",
3071
- "iconColor": "{palette.color.icicle}",
3072
- "outerBorderColor": "{palette.color.icicle}",
3073
- "outerBorderWidth": "{palette.border.border1}"
3173
+ "iconColor": "{palette.color.darkMosque}"
3074
3174
  }
3075
3175
  },
3076
3176
  {
@@ -3202,7 +3302,7 @@
3202
3302
  "tokens": {
3203
3303
  "backgroundColor": "{palette.color.transparent}",
3204
3304
  "borderWidth": "{system.border.zero}",
3205
- "iconColor": "{palette.color.darkMosque}",
3305
+ "iconColor": "{palette.color.silverDark}",
3206
3306
  "outerBorderColor": "{palette.color.transparent}"
3207
3307
  }
3208
3308
  },
@@ -3225,6 +3325,17 @@
3225
3325
  "tokens": {
3226
3326
  "outerBorderGap": "{system.size.zero}"
3227
3327
  }
3328
+ },
3329
+ {
3330
+ "if": {
3331
+ "inactive": true
3332
+ },
3333
+ "tokens": {
3334
+ "backgroundColor": "{system.color.transparent}",
3335
+ "iconColor": "{palette.color.silverDark}",
3336
+ "outerBorderColor": "{palette.color.transparent}",
3337
+ "outerBorderWidth": "{palette.border.none}"
3338
+ }
3228
3339
  }
3229
3340
  ],
3230
3341
  "tokens": {
@@ -3240,6 +3351,7 @@
3240
3351
  "borderTopRightRadius": "{system.radius.none}",
3241
3352
  "borderTopWidth": "{system.border.none}",
3242
3353
  "borderWidth": "{palette.border.border1}",
3354
+ "height": "{system.size.none}",
3243
3355
  "icon": "{palette.icon.Add}",
3244
3356
  "iconColor": "{palette.color.black}",
3245
3357
  "iconScale": "{system.iconScale.scale1}",
@@ -3250,7 +3362,8 @@
3250
3362
  "outerBorderGap": "{system.size.zero}",
3251
3363
  "outerBorderWidth": "{system.border.zero}",
3252
3364
  "padding": "{palette.size.size4}",
3253
- "shadow": "{system.shadow.none}"
3365
+ "shadow": "{system.shadow.none}",
3366
+ "width": "{system.size.none}"
3254
3367
  }
3255
3368
  },
3256
3369
  "Image": {