@telus-uds/theme-allium 3.2.0 → 3.3.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/theme.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  *
3
3
  * Do not edit directly
4
- * Generated on Fri, 03 Jun 2022 19:55:40 GMT
4
+ * Generated on Fri, 24 Jun 2022 16:42:21 GMT
5
5
  *
6
6
  */
7
7
 
@@ -1093,11 +1093,17 @@ module.exports = {
1093
1093
  rules: [
1094
1094
  {
1095
1095
  if: { size: 'large' },
1096
- tokens: { itemFontSize: 20, itemLineHeight: 1.6, listGutter: 12 }
1096
+ tokens: {
1097
+ iconMarginTop: 8,
1098
+ itemFontSize: 20,
1099
+ itemLineHeight: 1.6,
1100
+ listGutter: 12
1101
+ }
1097
1102
  },
1098
1103
  {
1099
1104
  if: { size: 'small' },
1100
1105
  tokens: {
1106
+ iconMarginTop: 2,
1101
1107
  itemFontSize: 14,
1102
1108
  itemLineHeight: 1.42857142857,
1103
1109
  listGutter: 12
@@ -1961,7 +1967,7 @@ module.exports = {
1961
1967
  fontWeight: '400',
1962
1968
  height: 48,
1963
1969
  icon: PaletteIconCaretDown,
1964
- iconColor: '#2b8000',
1970
+ iconColor: '#414547',
1965
1971
  iconSize: 24,
1966
1972
  outerBackgroundColor: 'rgba(0, 0, 0, 0)',
1967
1973
  outerBorderColor: 'rgba(0, 0, 0, 0)',
@@ -2195,8 +2201,19 @@ module.exports = {
2195
2201
  }
2196
2202
  },
2197
2203
  Tabs: {
2198
- appearances: {},
2199
- rules: [],
2204
+ appearances: {
2205
+ inverse: {
2206
+ description: 'Styles the link white for use on dark backgrounds.',
2207
+ type: 'variant',
2208
+ values: [ true ]
2209
+ }
2210
+ },
2211
+ rules: [
2212
+ {
2213
+ if: { inverse: true },
2214
+ tokens: { borderBottomColor: '#ffffff' }
2215
+ }
2216
+ ],
2200
2217
  tokens: {
2201
2218
  borderBottomColor: '#676e73',
2202
2219
  borderBottomWidth: 1,
@@ -2219,6 +2236,7 @@ module.exports = {
2219
2236
  type: 'state',
2220
2237
  values: [ true ]
2221
2238
  },
2239
+ inverse: { type: 'variant', values: [ true ] },
2222
2240
  pressed: {
2223
2241
  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.',
2224
2242
  type: 'state',
@@ -2263,6 +2281,34 @@ module.exports = {
2263
2281
  {
2264
2282
  if: { focus: true, pressed: true },
2265
2283
  tokens: { backgroundColor: '#4b286d' }
2284
+ },
2285
+ {
2286
+ if: { inverse: true },
2287
+ tokens: { backgroundColor: 'rgba(0, 0, 0, 0)', color: '#ffffff' }
2288
+ },
2289
+ {
2290
+ if: { hover: true, inverse: true },
2291
+ tokens: { borderColor: '#ffffff', highlightColor: '#ffffff' }
2292
+ },
2293
+ {
2294
+ if: { inverse: true, selected: true },
2295
+ tokens: {
2296
+ backgroundColor: '#ffffff',
2297
+ color: '#414547',
2298
+ highlightColor: '#ffffff'
2299
+ }
2300
+ },
2301
+ {
2302
+ if: { inverse: true, pressed: true },
2303
+ tokens: {
2304
+ backgroundColor: '#ffffff',
2305
+ color: '#414547',
2306
+ highlightColor: '#ffffff'
2307
+ }
2308
+ },
2309
+ {
2310
+ if: { focus: true, inverse: true },
2311
+ tokens: { borderColor: '#ffffff', highlightColor: '#ffffff' }
2266
2312
  }
2267
2313
  ],
2268
2314
  tokens: {
@@ -3037,5 +3083,5 @@ module.exports = {
3037
3083
  tokens: { size: 96 }
3038
3084
  }
3039
3085
  },
3040
- metadata: { name: 'theme-allium', themeTokensVersion: '2.0.0' }
3086
+ metadata: { name: 'theme-allium', themeTokensVersion: '2.0.2' }
3041
3087
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@telus-uds/theme-allium",
3
- "version": "3.2.0",
3
+ "version": "3.3.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/theme.js",
9
9
  "dependencies": {},
10
10
  "devDependencies": {
11
- "@telus-uds/palette-allium": "^2.0.1",
12
- "@telus-uds/system-theme-tokens": "^2.0.0",
13
- "@telus-uds/system-tokens": "^0.1.3"
11
+ "@telus-uds/palette-allium": "^2.1.0",
12
+ "@telus-uds/system-theme-tokens": "^2.0.2",
13
+ "@telus-uds/system-tokens": "^0.1.5"
14
14
  },
15
15
  "peerDependencies": {
16
- "@telus-uds/palette-allium": "^2.0.1"
16
+ "@telus-uds/palette-allium": "^2.1.0"
17
17
  },
18
18
  "files": [
19
19
  "build",
package/theme.json CHANGED
@@ -1503,6 +1503,7 @@
1503
1503
  "size": "large"
1504
1504
  },
1505
1505
  "tokens": {
1506
+ "iconMarginTop": "{palette.size.size8}",
1506
1507
  "itemFontSize": "{palette.fontSize.size20}",
1507
1508
  "itemLineHeight": "{palette.lineHeight.ratio8to5}",
1508
1509
  "listGutter": "{palette.size.size12}"
@@ -1513,6 +1514,7 @@
1513
1514
  "size": "small"
1514
1515
  },
1515
1516
  "tokens": {
1517
+ "iconMarginTop": "{palette.size.size2}",
1516
1518
  "itemFontSize": "{palette.fontSize.size14}",
1517
1519
  "itemLineHeight": "{palette.lineHeight.ratio10to7}",
1518
1520
  "listGutter": "{palette.size.size12}"
@@ -2428,7 +2430,7 @@
2428
2430
  "fontWeight": "{palette.fontWeight.weight400}",
2429
2431
  "height": "{palette.size.size48}",
2430
2432
  "icon": "{palette.icon.CaretDown}",
2431
- "iconColor": "{palette.color.greenAccessible}",
2433
+ "iconColor": "{palette.color.greyCharcoal}",
2432
2434
  "iconSize": "{palette.size.size24}",
2433
2435
  "outerBackgroundColor": "{palette.color.transparent}",
2434
2436
  "outerBorderColor": "{palette.color.transparent}",
@@ -2676,8 +2678,23 @@
2676
2678
  }
2677
2679
  },
2678
2680
  "Tabs": {
2679
- "appearances": {},
2680
- "rules": [],
2681
+ "appearances": {
2682
+ "inverse": {
2683
+ "description": "Styles the link white for use on dark backgrounds.",
2684
+ "type": "variant",
2685
+ "values": [true]
2686
+ }
2687
+ },
2688
+ "rules": [
2689
+ {
2690
+ "if": {
2691
+ "inverse": true
2692
+ },
2693
+ "tokens": {
2694
+ "borderBottomColor": "{palette.color.white}"
2695
+ }
2696
+ }
2697
+ ],
2681
2698
  "tokens": {
2682
2699
  "borderBottomColor": "{palette.color.greyShuttle}",
2683
2700
  "borderBottomWidth": "{palette.border.border1}",
@@ -2692,6 +2709,10 @@
2692
2709
  "appearances": {
2693
2710
  "focus": "{appearances.TabsItem.pressed}",
2694
2711
  "hover": "{appearances.TabsItem.pressed}",
2712
+ "inverse": {
2713
+ "type": "variant",
2714
+ "values": [true]
2715
+ },
2695
2716
  "pressed": "{appearances.TabsItem.pressed}",
2696
2717
  "selected": "{appearances.TabsItem.pressed}"
2697
2718
  },
@@ -2748,6 +2769,57 @@
2748
2769
  "tokens": {
2749
2770
  "backgroundColor": "{palette.color.purpleTelus}"
2750
2771
  }
2772
+ },
2773
+ {
2774
+ "if": {
2775
+ "inverse": true
2776
+ },
2777
+ "tokens": {
2778
+ "backgroundColor": "{palette.color.transparent}",
2779
+ "color": "{palette.color.white}"
2780
+ }
2781
+ },
2782
+ {
2783
+ "if": {
2784
+ "hover": true,
2785
+ "inverse": true
2786
+ },
2787
+ "tokens": {
2788
+ "borderColor": "{palette.color.white}",
2789
+ "highlightColor": "{palette.color.white}"
2790
+ }
2791
+ },
2792
+ {
2793
+ "if": {
2794
+ "inverse": true,
2795
+ "selected": true
2796
+ },
2797
+ "tokens": {
2798
+ "backgroundColor": "{palette.color.white}",
2799
+ "color": "{palette.color.greyCharcoal}",
2800
+ "highlightColor": "{palette.color.white}"
2801
+ }
2802
+ },
2803
+ {
2804
+ "if": {
2805
+ "inverse": true,
2806
+ "pressed": true
2807
+ },
2808
+ "tokens": {
2809
+ "backgroundColor": "{palette.color.white}",
2810
+ "color": "{palette.color.greyCharcoal}",
2811
+ "highlightColor": "{palette.color.white}"
2812
+ }
2813
+ },
2814
+ {
2815
+ "if": {
2816
+ "focus": true,
2817
+ "inverse": true
2818
+ },
2819
+ "tokens": {
2820
+ "borderColor": "{palette.color.white}",
2821
+ "highlightColor": "{palette.color.white}"
2822
+ }
2751
2823
  }
2752
2824
  ],
2753
2825
  "tokens": {