@telus-uds/theme-allium 4.13.1 → 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 Mon, 16 Oct 2023 22:47:36 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' }
@@ -1944,8 +1953,8 @@ module.exports = {
1944
1953
  }
1945
1954
  ],
1946
1955
  tokens: {
1947
- backgroundColor: '#f4f4f7',
1948
- borderColor: '#e3e6e8',
1956
+ backgroundColor: '#efedff',
1957
+ borderColor: 'rgba(0, 0, 0, 0)',
1949
1958
  borderRadius: 4,
1950
1959
  borderWidth: 1,
1951
1960
  color: '#2c2e30',
@@ -1983,8 +1992,54 @@ module.exports = {
1983
1992
  }
1984
1993
  },
1985
1994
  Footnote: {
1986
- appearances: {},
1987
- 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
+ ],
1988
2043
  tokens: {
1989
2044
  closeButtonBackgroundColor: '#f4f4f7',
1990
2045
  closeButtonBorderColor: '#676e73',
@@ -1999,16 +2054,16 @@ module.exports = {
1999
2054
  closeIcon: PaletteIconClose,
2000
2055
  footnoteBackground: '#f4f4f7',
2001
2056
  footnoteBodyBackground: '#f4f4f7',
2002
- footnoteBodyPaddingBottom: 32,
2057
+ footnoteBodyPaddingBottom: 40,
2003
2058
  footnoteBodyPaddingLeft: 16,
2004
2059
  footnoteBodyPaddingRight: 16,
2005
2060
  footnoteBodyPaddingTop: 0,
2006
2061
  footnoteBorderColorMd: '#b2b9bf',
2007
2062
  footnoteBorderTopSizeMd: 1,
2008
- footnoteHeaderPaddingBottom: 16,
2063
+ footnoteHeaderPaddingBottom: 24,
2009
2064
  footnoteHeaderPaddingLeft: 16,
2010
- footnoteHeaderPaddingRight: 16,
2011
- footnoteHeaderPaddingTop: 16,
2065
+ footnoteHeaderPaddingRight: 4,
2066
+ footnoteHeaderPaddingTop: 24,
2012
2067
  headerFontName: 'HelveticaNow',
2013
2068
  headerFontSize: 16,
2014
2069
  headerFontWeight: '500',
@@ -3210,9 +3265,9 @@ module.exports = {
3210
3265
  }
3211
3266
  ],
3212
3267
  tokens: {
3213
- backgroundColor: '#f4f4f7',
3268
+ backgroundColor: '#efedff',
3214
3269
  borderBottomWidth: 1,
3215
- borderColor: '#676e73',
3270
+ borderColor: '#7c53a5',
3216
3271
  borderLeftWidth: 1,
3217
3272
  borderRadius: 6,
3218
3273
  borderRightWidth: 1,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@telus-uds/theme-allium",
3
- "version": "4.13.1",
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.25.0",
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.25.0"
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
@@ -2448,8 +2462,8 @@
2448
2462
  }
2449
2463
  ],
2450
2464
  "tokens": {
2451
- "backgroundColor": "{palette.color.greyAthens}",
2452
- "borderColor": "{palette.color.greyMystic}",
2465
+ "backgroundColor": "{palette.color.brandLight}",
2466
+ "borderColor": "{palette.color.transparent}",
2453
2467
  "borderRadius": "{palette.radius.radius4}",
2454
2468
  "borderWidth": "{palette.border.border1}",
2455
2469
  "color": "{palette.color.greyThunder}",
@@ -2501,8 +2515,56 @@
2501
2515
  }
2502
2516
  },
2503
2517
  "Footnote": {
2504
- "appearances": {},
2505
- "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
+ ],
2506
2568
  "tokens": {
2507
2569
  "closeButtonBackgroundColor": "{palette.color.greyAthens}",
2508
2570
  "closeButtonBorderColor": "{palette.color.greyShuttle}",
@@ -2517,16 +2579,16 @@
2517
2579
  "closeIcon": "{palette.icon.Close}",
2518
2580
  "footnoteBackground": "{palette.color.greyAthens}",
2519
2581
  "footnoteBodyBackground": "{palette.color.greyAthens}",
2520
- "footnoteBodyPaddingBottom": "{palette.size.size32}",
2582
+ "footnoteBodyPaddingBottom": "{palette.size.size40}",
2521
2583
  "footnoteBodyPaddingLeft": "{palette.size.size16}",
2522
2584
  "footnoteBodyPaddingRight": "{palette.size.size16}",
2523
2585
  "footnoteBodyPaddingTop": "{palette.size.size0}",
2524
2586
  "footnoteBorderColorMd": "{palette.color.greyCloud}",
2525
2587
  "footnoteBorderTopSizeMd": "{palette.border.border1}",
2526
- "footnoteHeaderPaddingBottom": "{palette.size.size16}",
2588
+ "footnoteHeaderPaddingBottom": "{palette.size.size24}",
2527
2589
  "footnoteHeaderPaddingLeft": "{palette.size.size16}",
2528
- "footnoteHeaderPaddingRight": "{palette.size.size16}",
2529
- "footnoteHeaderPaddingTop": "{palette.size.size16}",
2590
+ "footnoteHeaderPaddingRight": "{palette.size.size4}",
2591
+ "footnoteHeaderPaddingTop": "{palette.size.size24}",
2530
2592
  "headerFontName": "{palette.fontName.HelveticaNow}",
2531
2593
  "headerFontSize": "{palette.size.size16}",
2532
2594
  "headerFontWeight": "{palette.fontWeight.weight500}",
@@ -4109,9 +4171,9 @@
4109
4171
  }
4110
4172
  ],
4111
4173
  "tokens": {
4112
- "backgroundColor": "{palette.color.greyAthens}",
4174
+ "backgroundColor": "{palette.color.brandLight}",
4113
4175
  "borderBottomWidth": "{palette.border.border1}",
4114
- "borderColor": "{palette.color.greyShuttle}",
4176
+ "borderColor": "{palette.color.purpleDeluge}",
4115
4177
  "borderLeftWidth": "{palette.border.border1}",
4116
4178
  "borderRadius": "{palette.radius.radius6}",
4117
4179
  "borderRightWidth": "{palette.border.border1}",