@telus-uds/theme-allium 4.13.0 → 4.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/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:42 GMT
4
+ * Generated on Thu, 19 Oct 2023 00:21:38 GMT
5
5
  *
6
6
  */
7
7
 
@@ -53,10 +53,19 @@ module.exports = {
53
53
  Badge: {
54
54
  appearances: {
55
55
  alternative: { type: 'variant', values: [ true ] },
56
+ inverse: { type: 'variant', values: [ true ] },
56
57
  outline: { type: 'variant', values: [ true ] },
57
58
  purpose: { type: 'variant', values: [ 'offer', 'editorial' ] }
58
59
  },
59
60
  rules: [
61
+ {
62
+ if: { inverse: true },
63
+ tokens: {
64
+ backgroundColor: 'rgba(0, 0, 0, 0)',
65
+ borderColor: '#ffffff',
66
+ color: '#ffffff'
67
+ }
68
+ },
60
69
  {
61
70
  if: { outline: true },
62
71
  tokens: { backgroundColor: '#ffffff', color: '#613889' }
@@ -1037,6 +1046,7 @@ module.exports = {
1037
1046
  type: 'variant',
1038
1047
  values: [ 'alternative', 'subtle', 'grid', 'feature' ]
1039
1048
  },
1049
+ borderRadius: { type: 'variant', values: [ 'none', 'small', 'large' ] },
1040
1050
  padding: {
1041
1051
  type: 'variant',
1042
1052
  values: [ 'narrow', 'intermediate', 'compact', 'custom' ]
@@ -1048,6 +1058,9 @@ module.exports = {
1048
1058
  }
1049
1059
  },
1050
1060
  rules: [
1061
+ { if: { borderRadius: 'none' }, tokens: { borderRadius: 0 } },
1062
+ { if: { borderRadius: 'small' }, tokens: { borderRadius: 6 } },
1063
+ { if: { borderRadius: 'large' }, tokens: { borderRadius: 12 } },
1051
1064
  {
1052
1065
  if: { background: 'alternative' },
1053
1066
  tokens: { backgroundColor: '#f4f4f7' }
@@ -1940,8 +1953,8 @@ module.exports = {
1940
1953
  }
1941
1954
  ],
1942
1955
  tokens: {
1943
- backgroundColor: '#f4f4f7',
1944
- borderColor: '#e3e6e8',
1956
+ backgroundColor: '#efedff',
1957
+ borderColor: 'rgba(0, 0, 0, 0)',
1945
1958
  borderRadius: 4,
1946
1959
  borderWidth: 1,
1947
1960
  color: '#2c2e30',
@@ -1979,8 +1992,54 @@ module.exports = {
1979
1992
  }
1980
1993
  },
1981
1994
  Footnote: {
1982
- appearances: {},
1983
- rules: [],
1995
+ appearances: {
1996
+ viewport: {
1997
+ description: 'The size label for the current screen viewport based on the current screen width',
1998
+ type: 'state',
1999
+ values: [ 'xs', 'sm', 'md', 'lg', 'xl' ]
2000
+ }
2001
+ },
2002
+ rules: [
2003
+ {
2004
+ if: { viewport: [ 'xs' ] },
2005
+ tokens: {
2006
+ footnoteBodyPaddingBottom: 32,
2007
+ footnoteBodyPaddingLeft: 16,
2008
+ footnoteBodyPaddingRight: 16,
2009
+ footnoteBodyPaddingTop: 0,
2010
+ footnoteHeaderPaddingBottom: 16,
2011
+ footnoteHeaderPaddingLeft: 16,
2012
+ footnoteHeaderPaddingRight: 4,
2013
+ footnoteHeaderPaddingTop: 16
2014
+ }
2015
+ },
2016
+ {
2017
+ if: { viewport: [ 'md', 'lg' ] },
2018
+ tokens: {
2019
+ footnoteBodyPaddingBottom: 40,
2020
+ footnoteBodyPaddingLeft: 16,
2021
+ footnoteBodyPaddingRight: 16,
2022
+ footnoteBodyPaddingTop: 0,
2023
+ footnoteHeaderPaddingBottom: 24,
2024
+ footnoteHeaderPaddingLeft: 16,
2025
+ footnoteHeaderPaddingRight: 4,
2026
+ footnoteHeaderPaddingTop: 24
2027
+ }
2028
+ },
2029
+ {
2030
+ if: { viewport: [ 'xl' ] },
2031
+ tokens: {
2032
+ footnoteBodyPaddingBottom: 40,
2033
+ footnoteBodyPaddingLeft: 16,
2034
+ footnoteBodyPaddingRight: 16,
2035
+ footnoteBodyPaddingTop: 0,
2036
+ footnoteHeaderPaddingBottom: 24,
2037
+ footnoteHeaderPaddingLeft: 16,
2038
+ footnoteHeaderPaddingRight: 16,
2039
+ footnoteHeaderPaddingTop: 24
2040
+ }
2041
+ }
2042
+ ],
1984
2043
  tokens: {
1985
2044
  closeButtonBackgroundColor: '#f4f4f7',
1986
2045
  closeButtonBorderColor: '#676e73',
@@ -1995,16 +2054,16 @@ module.exports = {
1995
2054
  closeIcon: PaletteIconClose,
1996
2055
  footnoteBackground: '#f4f4f7',
1997
2056
  footnoteBodyBackground: '#f4f4f7',
1998
- footnoteBodyPaddingBottom: 32,
2057
+ footnoteBodyPaddingBottom: 40,
1999
2058
  footnoteBodyPaddingLeft: 16,
2000
2059
  footnoteBodyPaddingRight: 16,
2001
2060
  footnoteBodyPaddingTop: 0,
2002
2061
  footnoteBorderColorMd: '#b2b9bf',
2003
2062
  footnoteBorderTopSizeMd: 1,
2004
- footnoteHeaderPaddingBottom: 16,
2063
+ footnoteHeaderPaddingBottom: 24,
2005
2064
  footnoteHeaderPaddingLeft: 16,
2006
- footnoteHeaderPaddingRight: 16,
2007
- footnoteHeaderPaddingTop: 16,
2065
+ footnoteHeaderPaddingRight: 4,
2066
+ footnoteHeaderPaddingTop: 24,
2008
2067
  headerFontName: 'HelveticaNow',
2009
2068
  headerFontSize: 16,
2010
2069
  headerFontWeight: '500',
@@ -2259,6 +2318,7 @@ module.exports = {
2259
2318
  iconScale: 1.1
2260
2319
  }
2261
2320
  },
2321
+ { if: { hover: true }, tokens: { iconScale: 1 } },
2262
2322
  {
2263
2323
  if: { hover: true, password: true },
2264
2324
  tokens: {
@@ -2290,9 +2350,9 @@ module.exports = {
2290
2350
  {
2291
2351
  if: { focus: true, password: true },
2292
2352
  tokens: {
2353
+ borderWidth: 3,
2293
2354
  outerBorderColor: '#3f2a54',
2294
- outerBorderGap: 4,
2295
- outerBorderWidth: 2
2355
+ outerBorderWidth: 0
2296
2356
  }
2297
2357
  },
2298
2358
  {
@@ -2320,7 +2380,7 @@ module.exports = {
2320
2380
  backgroundColor: '#3f2a54',
2321
2381
  borderColor: '#3f2a54',
2322
2382
  iconColor: '#ffffff',
2323
- outerBorderGap: 4
2383
+ outerBorderGap: 0
2324
2384
  }
2325
2385
  },
2326
2386
  {
@@ -2412,6 +2472,7 @@ module.exports = {
2412
2472
  borderTopRightRadius: null,
2413
2473
  borderTopWidth: null,
2414
2474
  borderWidth: 1,
2475
+ height: null,
2415
2476
  icon: PaletteIconAdd,
2416
2477
  iconColor: '#676e73',
2417
2478
  iconScale: 1,
@@ -2422,7 +2483,8 @@ module.exports = {
2422
2483
  outerBorderGap: 0,
2423
2484
  outerBorderWidth: null,
2424
2485
  padding: 4,
2425
- shadow: null
2486
+ shadow: null,
2487
+ width: null
2426
2488
  }
2427
2489
  },
2428
2490
  Image: { appearances: {}, rules: [], tokens: { borderRadius: 4 } },
@@ -3203,9 +3265,9 @@ module.exports = {
3203
3265
  }
3204
3266
  ],
3205
3267
  tokens: {
3206
- backgroundColor: '#f4f4f7',
3268
+ backgroundColor: '#efedff',
3207
3269
  borderBottomWidth: 1,
3208
- borderColor: '#676e73',
3270
+ borderColor: '#7c53a5',
3209
3271
  borderLeftWidth: 1,
3210
3272
  borderRadius: 6,
3211
3273
  borderRightWidth: 1,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@telus-uds/theme-allium",
3
- "version": "4.13.0",
3
+ "version": "4.14.0",
4
4
  "description": "Allium theme",
5
5
  "author": "TELUS Digital",
6
6
  "homepage": "https://github.com/telus/allium-design-system#readme",
@@ -8,12 +8,12 @@
8
8
  "main": "build/rn/theme.js",
9
9
  "dependencies": {},
10
10
  "devDependencies": {
11
- "@telus-uds/palette-allium": "^2.24.5",
11
+ "@telus-uds/palette-allium": "^2.26.0",
12
12
  "@telus-uds/system-theme-tokens": "^2.41.1",
13
13
  "@telus-uds/system-tokens": "^0.7.22"
14
14
  },
15
15
  "peerDependencies": {
16
- "@telus-uds/palette-allium": "^2.24.5"
16
+ "@telus-uds/palette-allium": "^2.26.0"
17
17
  },
18
18
  "files": [
19
19
  "build",
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
@@ -1258,6 +1272,10 @@
1258
1272
  "type": "variant",
1259
1273
  "values": ["alternative", "subtle", "grid", "feature"]
1260
1274
  },
1275
+ "borderRadius": {
1276
+ "type": "variant",
1277
+ "values": ["none", "small", "large"]
1278
+ },
1261
1279
  "padding": {
1262
1280
  "type": "variant",
1263
1281
  "values": ["narrow", "intermediate", "compact", "custom"]
@@ -1265,6 +1283,30 @@
1265
1283
  "viewport": "{appearances.system.viewport}"
1266
1284
  },
1267
1285
  "rules": [
1286
+ {
1287
+ "if": {
1288
+ "borderRadius": "none"
1289
+ },
1290
+ "tokens": {
1291
+ "borderRadius": "{palette.radius.none}"
1292
+ }
1293
+ },
1294
+ {
1295
+ "if": {
1296
+ "borderRadius": "small"
1297
+ },
1298
+ "tokens": {
1299
+ "borderRadius": "{palette.radius.radius6}"
1300
+ }
1301
+ },
1302
+ {
1303
+ "if": {
1304
+ "borderRadius": "large"
1305
+ },
1306
+ "tokens": {
1307
+ "borderRadius": "{palette.radius.radius12}"
1308
+ }
1309
+ },
1268
1310
  {
1269
1311
  "if": {
1270
1312
  "background": "alternative"
@@ -2420,8 +2462,8 @@
2420
2462
  }
2421
2463
  ],
2422
2464
  "tokens": {
2423
- "backgroundColor": "{palette.color.greyAthens}",
2424
- "borderColor": "{palette.color.greyMystic}",
2465
+ "backgroundColor": "{palette.color.brandLight}",
2466
+ "borderColor": "{palette.color.transparent}",
2425
2467
  "borderRadius": "{palette.radius.radius4}",
2426
2468
  "borderWidth": "{palette.border.border1}",
2427
2469
  "color": "{palette.color.greyThunder}",
@@ -2473,8 +2515,56 @@
2473
2515
  }
2474
2516
  },
2475
2517
  "Footnote": {
2476
- "appearances": {},
2477
- "rules": [],
2518
+ "appearances": {
2519
+ "viewport": "{appearances.system.viewport}"
2520
+ },
2521
+ "rules": [
2522
+ {
2523
+ "if": {
2524
+ "viewport": ["xs"]
2525
+ },
2526
+ "tokens": {
2527
+ "footnoteBodyPaddingBottom": "{palette.size.size32}",
2528
+ "footnoteBodyPaddingLeft": "{palette.size.size16}",
2529
+ "footnoteBodyPaddingRight": "{palette.size.size16}",
2530
+ "footnoteBodyPaddingTop": "{palette.size.size0}",
2531
+ "footnoteHeaderPaddingBottom": "{palette.size.size16}",
2532
+ "footnoteHeaderPaddingLeft": "{palette.size.size16}",
2533
+ "footnoteHeaderPaddingRight": "{palette.size.size4}",
2534
+ "footnoteHeaderPaddingTop": "{palette.size.size16}"
2535
+ }
2536
+ },
2537
+ {
2538
+ "if": {
2539
+ "viewport": ["md", "lg"]
2540
+ },
2541
+ "tokens": {
2542
+ "footnoteBodyPaddingBottom": "{palette.size.size40}",
2543
+ "footnoteBodyPaddingLeft": "{palette.size.size16}",
2544
+ "footnoteBodyPaddingRight": "{palette.size.size16}",
2545
+ "footnoteBodyPaddingTop": "{palette.size.size0}",
2546
+ "footnoteHeaderPaddingBottom": "{palette.size.size24}",
2547
+ "footnoteHeaderPaddingLeft": "{palette.size.size16}",
2548
+ "footnoteHeaderPaddingRight": "{palette.size.size4}",
2549
+ "footnoteHeaderPaddingTop": "{palette.size.size24}"
2550
+ }
2551
+ },
2552
+ {
2553
+ "if": {
2554
+ "viewport": ["xl"]
2555
+ },
2556
+ "tokens": {
2557
+ "footnoteBodyPaddingBottom": "{palette.size.size40}",
2558
+ "footnoteBodyPaddingLeft": "{palette.size.size16}",
2559
+ "footnoteBodyPaddingRight": "{palette.size.size16}",
2560
+ "footnoteBodyPaddingTop": "{palette.size.size0}",
2561
+ "footnoteHeaderPaddingBottom": "{palette.size.size24}",
2562
+ "footnoteHeaderPaddingLeft": "{palette.size.size16}",
2563
+ "footnoteHeaderPaddingRight": "{palette.size.size16}",
2564
+ "footnoteHeaderPaddingTop": "{palette.size.size24}"
2565
+ }
2566
+ }
2567
+ ],
2478
2568
  "tokens": {
2479
2569
  "closeButtonBackgroundColor": "{palette.color.greyAthens}",
2480
2570
  "closeButtonBorderColor": "{palette.color.greyShuttle}",
@@ -2489,16 +2579,16 @@
2489
2579
  "closeIcon": "{palette.icon.Close}",
2490
2580
  "footnoteBackground": "{palette.color.greyAthens}",
2491
2581
  "footnoteBodyBackground": "{palette.color.greyAthens}",
2492
- "footnoteBodyPaddingBottom": "{palette.size.size32}",
2582
+ "footnoteBodyPaddingBottom": "{palette.size.size40}",
2493
2583
  "footnoteBodyPaddingLeft": "{palette.size.size16}",
2494
2584
  "footnoteBodyPaddingRight": "{palette.size.size16}",
2495
2585
  "footnoteBodyPaddingTop": "{palette.size.size0}",
2496
2586
  "footnoteBorderColorMd": "{palette.color.greyCloud}",
2497
2587
  "footnoteBorderTopSizeMd": "{palette.border.border1}",
2498
- "footnoteHeaderPaddingBottom": "{palette.size.size16}",
2588
+ "footnoteHeaderPaddingBottom": "{palette.size.size24}",
2499
2589
  "footnoteHeaderPaddingLeft": "{palette.size.size16}",
2500
- "footnoteHeaderPaddingRight": "{palette.size.size16}",
2501
- "footnoteHeaderPaddingTop": "{palette.size.size16}",
2590
+ "footnoteHeaderPaddingRight": "{palette.size.size4}",
2591
+ "footnoteHeaderPaddingTop": "{palette.size.size24}",
2502
2592
  "headerFontName": "{palette.fontName.HelveticaNow}",
2503
2593
  "headerFontSize": "{palette.size.size16}",
2504
2594
  "headerFontWeight": "{palette.fontWeight.weight500}",
@@ -2898,6 +2988,14 @@
2898
2988
  "iconScale": "{system.iconScale.scale1_10}"
2899
2989
  }
2900
2990
  },
2991
+ {
2992
+ "if": {
2993
+ "hover": true
2994
+ },
2995
+ "tokens": {
2996
+ "iconScale": "{system.iconScale.scale1}"
2997
+ }
2998
+ },
2901
2999
  {
2902
3000
  "if": {
2903
3001
  "hover": true,
@@ -2952,9 +3050,9 @@
2952
3050
  "password": true
2953
3051
  },
2954
3052
  "tokens": {
3053
+ "borderWidth": "{palette.border.border3}",
2955
3054
  "outerBorderColor": "{palette.color.purpleDark}",
2956
- "outerBorderGap": "{palette.size.size4}",
2957
- "outerBorderWidth": "{palette.border.border2}"
3055
+ "outerBorderWidth": "{palette.border.none}"
2958
3056
  }
2959
3057
  },
2960
3058
  {
@@ -2990,7 +3088,7 @@
2990
3088
  "backgroundColor": "{palette.color.purpleDark}",
2991
3089
  "borderColor": "{palette.color.purpleDark}",
2992
3090
  "iconColor": "{palette.color.white}",
2993
- "outerBorderGap": "{palette.size.size4}"
3091
+ "outerBorderGap": "{system.size.zero}"
2994
3092
  }
2995
3093
  },
2996
3094
  {
@@ -3136,6 +3234,7 @@
3136
3234
  "borderTopRightRadius": "{system.radius.none}",
3137
3235
  "borderTopWidth": "{system.border.none}",
3138
3236
  "borderWidth": "{palette.border.border1}",
3237
+ "height": "{system.size.none}",
3139
3238
  "icon": "{palette.icon.Add}",
3140
3239
  "iconColor": "{palette.color.greyShuttle}",
3141
3240
  "iconScale": "{system.iconScale.scale1}",
@@ -3146,7 +3245,8 @@
3146
3245
  "outerBorderGap": "{system.size.zero}",
3147
3246
  "outerBorderWidth": "{system.border.none}",
3148
3247
  "padding": "{palette.size.size4}",
3149
- "shadow": "{system.shadow.none}"
3248
+ "shadow": "{system.shadow.none}",
3249
+ "width": "{system.size.none}"
3150
3250
  }
3151
3251
  },
3152
3252
  "Image": {
@@ -4071,9 +4171,9 @@
4071
4171
  }
4072
4172
  ],
4073
4173
  "tokens": {
4074
- "backgroundColor": "{palette.color.greyAthens}",
4174
+ "backgroundColor": "{palette.color.brandLight}",
4075
4175
  "borderBottomWidth": "{palette.border.border1}",
4076
- "borderColor": "{palette.color.greyShuttle}",
4176
+ "borderColor": "{palette.color.purpleDeluge}",
4077
4177
  "borderLeftWidth": "{palette.border.border1}",
4078
4178
  "borderRadius": "{palette.radius.radius6}",
4079
4179
  "borderRightWidth": "{palette.border.border1}",