@telus-uds/theme-allium 0.1.0-prerelease.0 → 1.0.0-prerelease.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 Wed, 29 Dec 2021 09:03:35 GMT
4
+ * Generated on Thu, 20 Jan 2022 13:37:14 GMT
5
5
  *
6
6
  */
7
7
 
@@ -267,6 +267,7 @@ module.exports = {
267
267
  alignItems: 'center',
268
268
  direction: 'row',
269
269
  flexGrow: 0,
270
+ flexShrink: 0,
270
271
  justifyContent: 'flex-start',
271
272
  space: 1
272
273
  }
@@ -551,12 +552,21 @@ module.exports = {
551
552
  description: "Currently web only. Applies when an interactive component's hover handler is triggered, such as on mouseover.",
552
553
  type: 'state',
553
554
  values: [ true ]
555
+ },
556
+ size: {
557
+ description: 'Sets the size of the text and icon; these variants are shared with Link',
558
+ type: 'variant',
559
+ values: [ 'large', 'small', 'micro' ]
554
560
  }
555
561
  },
556
- rules: [ { if: { hover: true }, tokens: { iconDisplace: 4 } } ],
562
+ rules: [
563
+ { if: { hover: true }, tokens: { iconDisplace: 4 } },
564
+ { if: { size: 'large' }, tokens: { iconSize: 24 } }
565
+ ],
557
566
  tokens: {
558
567
  iconDisplace: 0,
559
- iconSpace: 0,
568
+ iconSize: 20,
569
+ iconSpace: 1,
560
570
  leftIcon: PaletteIconArrowLeft,
561
571
  rightIcon: PaletteIconArrowRight
562
572
  }
@@ -581,7 +591,7 @@ module.exports = {
581
591
  ExpandCollapse: {
582
592
  appearances: {},
583
593
  rules: [],
584
- tokens: { borderColor: '#b2b9bf', borderStyle: 'solid', borderWidth: 1 }
594
+ tokens: { borderColor: '#b2b9bf', borderStyle: 'solid', borderWidth: 0 }
585
595
  },
586
596
  ExpandCollapseControl: {
587
597
  appearances: {
@@ -683,6 +693,52 @@ module.exports = {
683
693
  titleFontSize: 16
684
694
  }
685
695
  },
696
+ HorizontalScrollButton: {
697
+ appearances: {
698
+ focus: {
699
+ description: "Currently only web has good support for this. Applies when an interactive component's focus handler is triggered, such as keyboard tabbing or selection.",
700
+ type: 'state',
701
+ values: [ true ]
702
+ },
703
+ hover: {
704
+ description: "Currently web only. Applies when an interactive component's hover handler is triggered, such as on mouseover.",
705
+ type: 'state',
706
+ values: [ true ]
707
+ },
708
+ pressed: {
709
+ 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.',
710
+ type: 'state',
711
+ values: [ true ]
712
+ }
713
+ },
714
+ rules: [
715
+ {
716
+ if: { hover: true },
717
+ tokens: { borderColor: '#414547', iconColor: '#414547' }
718
+ },
719
+ {
720
+ if: { pressed: true },
721
+ tokens: { backgroundColor: '#676e73', iconColor: '#ffffff' }
722
+ }
723
+ ],
724
+ tokens: {
725
+ backgroundColor: '#ffffff',
726
+ borderColor: '#b2b9bf',
727
+ borderRadius: 32,
728
+ borderWidth: 1,
729
+ iconColor: '#676e73',
730
+ iconSize: 32,
731
+ padding: 0,
732
+ shadow: {
733
+ blur: 2,
734
+ color: 'rgba(0, 0, 0, 0.1)',
735
+ inset: false,
736
+ offsetX: 0,
737
+ offsetY: 2,
738
+ spread: 0
739
+ }
740
+ }
741
+ },
686
742
  Icon: {
687
743
  appearances: {
688
744
  rank: { type: 'variant', values: [ 'primary' ] },
@@ -1626,7 +1682,7 @@ module.exports = {
1626
1682
  fontWeight: '500',
1627
1683
  letterSpacing: 0,
1628
1684
  lineHeight: 1.4,
1629
- minWidth: 288,
1685
+ minWidth: 264,
1630
1686
  outerBorderColor: 'transparent',
1631
1687
  outerBorderGap: 0,
1632
1688
  outerBorderWidth: 0,
@@ -2049,6 +2105,7 @@ module.exports = {
2049
2105
  tokens: {
2050
2106
  alignItems: 'stretch',
2051
2107
  flexGrow: 0,
2108
+ flexShrink: 0,
2052
2109
  justifyContent: 'flex-start'
2053
2110
  }
2054
2111
  },
@@ -2208,52 +2265,6 @@ module.exports = {
2208
2265
  textTransform: 'none'
2209
2266
  }
2210
2267
  },
2211
- TabsScrollButton: {
2212
- appearances: {
2213
- focus: {
2214
- description: "Currently only web has good support for this. Applies when an interactive component's focus handler is triggered, such as keyboard tabbing or selection.",
2215
- type: 'state',
2216
- values: [ true ]
2217
- },
2218
- hover: {
2219
- description: "Currently web only. Applies when an interactive component's hover handler is triggered, such as on mouseover.",
2220
- type: 'state',
2221
- values: [ true ]
2222
- },
2223
- pressed: {
2224
- 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.',
2225
- type: 'state',
2226
- values: [ true ]
2227
- }
2228
- },
2229
- rules: [
2230
- {
2231
- if: { hover: true },
2232
- tokens: { borderColor: '#414547', iconColor: '#414547' }
2233
- },
2234
- {
2235
- if: { pressed: true },
2236
- tokens: { backgroundColor: '#676e73', iconColor: '#ffffff' }
2237
- }
2238
- ],
2239
- tokens: {
2240
- backgroundColor: '#ffffff',
2241
- borderColor: '#b2b9bf',
2242
- borderRadius: 32,
2243
- borderWidth: 1,
2244
- iconColor: '#676e73',
2245
- iconSize: 32,
2246
- padding: 0,
2247
- shadow: {
2248
- blur: 2,
2249
- color: 'rgba(0, 0, 0, 0.1)',
2250
- inset: false,
2251
- offsetX: 0,
2252
- offsetY: 2,
2253
- spread: 0
2254
- }
2255
- }
2256
- },
2257
2268
  Tags: {
2258
2269
  appearances: {
2259
2270
  viewport: {
@@ -2267,6 +2278,7 @@ module.exports = {
2267
2278
  alignItems: 'center',
2268
2279
  direction: 'row',
2269
2280
  flexGrow: 0,
2281
+ flexShrink: 0,
2270
2282
  justifyContent: 'flex-start',
2271
2283
  space: 1
2272
2284
  }
@@ -2974,5 +2986,9 @@ module.exports = {
2974
2986
  tokens: { size: 96 }
2975
2987
  }
2976
2988
  },
2977
- metadata: { name: 'allium', package: '@telus-uds/theme-allium' }
2989
+ metadata: {
2990
+ name: 'allium',
2991
+ package: '@telus-uds/theme-allium',
2992
+ themeTokensVersion: '0.0.2-prerelease.0'
2993
+ }
2978
2994
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@telus-uds/theme-allium",
3
- "version": "0.1.0-prerelease.0",
3
+ "version": "1.0.0-prerelease.0",
4
4
  "description": "Allium theme",
5
5
  "author": "TELUS Digital",
6
6
  "homepage": "https://github.com/telus/universal-design-system#readme",
@@ -8,11 +8,12 @@
8
8
  "main": "build/theme.js",
9
9
  "dependencies": {},
10
10
  "devDependencies": {
11
- "@telus-uds/palette-allium": "^1.0.0-prerelease.1",
12
- "@telus-uds/system-themes": "^0.0.2-prerelease.2"
11
+ "@telus-uds/palette-allium": "^1.0.0-prerelease.2",
12
+ "@telus-uds/system-themes": "^0.0.2-prerelease.2",
13
+ "@telus-uds/system-theme-tokens": "^0.0.2-prerelease.0"
13
14
  },
14
15
  "peerDependencies": {
15
- "@telus-uds/palette-allium": "^1.0.0-prerelease.1"
16
+ "@telus-uds/palette-allium": "^1.0.0-prerelease.2"
16
17
  },
17
18
  "files": [
18
19
  "build",
@@ -24,7 +25,7 @@
24
25
  },
25
26
  "scripts": {
26
27
  "release": "standard-version",
27
- "build": "THEME_PATH=./theme.json UDS_THEME_MODULE_PALETTE=@telus-uds/palette-allium UDS_THEME_MODULE_SYSTEM=@telus-uds/system-themes/src/tokens/rn UDS_THEME_MODULE_APPEARANCES=@telus-uds/system-themes/schema/appearances system-themes-build",
28
+ "build": "THEME_PATH=./theme.json UDS_THEME_MODULE_PALETTE=@telus-uds/palette-allium UDS_THEME_MODULE_SYSTEM=@telus-uds/system-themes/src/tokens/rn UDS_THEME_MODULE_APPEARANCES=@telus-uds/system-theme-tokens/appearances system-themes-build",
28
29
  "dev": "nodemon -w src -x 'yarn build'"
29
30
  },
30
31
  "bugs": {
package/theme.json CHANGED
@@ -386,7 +386,8 @@
386
386
  "direction": "{system.direction.row}",
387
387
  "alignItems": "{system.flexAlign.center}",
388
388
  "justifyContent": "{system.flexJustifyContent.flexStart}",
389
- "flexGrow": "{system.integer.0}"
389
+ "flexGrow": "{system.integer.0}",
390
+ "flexShrink": "{system.integer.0}"
390
391
  },
391
392
  "rules": [
392
393
  {
@@ -712,13 +713,19 @@
712
713
  },
713
714
  "ChevronLink": {
714
715
  "appearances": {
715
- "hover": "{appearances.ChevronLink.hover}"
716
+ "hover": "{appearances.ChevronLink.hover}",
717
+ "size": {
718
+ "description": "Sets the size of the text and icon; these variants are shared with Link",
719
+ "values": ["large", "small", "micro"],
720
+ "type": "variant"
721
+ }
716
722
  },
717
723
  "tokens": {
718
724
  "leftIcon": "{palette.icon.ArrowLeft}",
719
725
  "rightIcon": "{palette.icon.ArrowRight}",
720
726
  "iconDisplace": "{palette.size.size0}",
721
- "iconSpace": "{system.integer.0}"
727
+ "iconSpace": "{system.integer.1}",
728
+ "iconSize": "{palette.size.size20}"
722
729
  },
723
730
  "rules": [
724
731
  {
@@ -728,6 +735,14 @@
728
735
  "tokens": {
729
736
  "iconDisplace": "{palette.size.size4}"
730
737
  }
738
+ },
739
+ {
740
+ "if": {
741
+ "size": "large"
742
+ },
743
+ "tokens": {
744
+ "iconSize": "{palette.size.size24}"
745
+ }
731
746
  }
732
747
  ]
733
748
  },
@@ -782,7 +797,7 @@
782
797
  "appearances": {},
783
798
  "tokens": {
784
799
  "borderColor": "{palette.color.greyCloud}",
785
- "borderWidth": "{palette.border.border1}",
800
+ "borderWidth": "{system.border.zero}",
786
801
  "borderStyle": "{system.borderStyle.solid}"
787
802
  },
788
803
  "rules": []
@@ -902,6 +917,43 @@
902
917
  }
903
918
  ]
904
919
  },
920
+ "HorizontalScrollButton": {
921
+ "appearances": {
922
+ "hover": "{appearances.HorizontalScrollButton.hover}",
923
+ "focus": "{appearances.HorizontalScrollButton.focus}",
924
+ "pressed": "{appearances.HorizontalScrollButton.pressed}"
925
+ },
926
+ "tokens": {
927
+ "borderRadius": "{palette.radius.pill32}",
928
+ "backgroundColor": "{palette.color.white}",
929
+ "borderColor": "{palette.color.greyCloud}",
930
+ "borderWidth": "{palette.border.border1}",
931
+ "padding": "{system.size.zero}",
932
+ "shadow": "{palette.shadow.surfaceRaised}",
933
+ "iconSize": "{palette.size.size32}",
934
+ "iconColor": "{palette.color.greyShuttle}"
935
+ },
936
+ "rules": [
937
+ {
938
+ "if": {
939
+ "hover": true
940
+ },
941
+ "tokens": {
942
+ "borderColor": "{palette.color.greyCharcoal}",
943
+ "iconColor": "{palette.color.greyCharcoal}"
944
+ }
945
+ },
946
+ {
947
+ "if": {
948
+ "pressed": true
949
+ },
950
+ "tokens": {
951
+ "backgroundColor": "{palette.color.greyShuttle}",
952
+ "iconColor": "{palette.color.white}"
953
+ }
954
+ }
955
+ ]
956
+ },
905
957
  "Icon": {
906
958
  "appearances": {
907
959
  "size": {
@@ -1980,7 +2032,7 @@
1980
2032
  "paddingLeft": "{palette.size.size10}",
1981
2033
  "paddingRight": "{palette.size.size16}",
1982
2034
  "paddingTop": "{palette.size.size16}",
1983
- "minWidth": "{palette.size.size288}",
2035
+ "minWidth": "{palette.size.size264}",
1984
2036
  "shadow": "{system.shadow.none}",
1985
2037
  "radioCheckedBackgroundColor": "{palette.color.purpleDeluge}",
1986
2038
  "radioCheckedSize": "{palette.size.size12}",
@@ -2412,43 +2464,6 @@
2412
2464
  }
2413
2465
  ]
2414
2466
  },
2415
- "TabsScrollButton": {
2416
- "appearances": {
2417
- "hover": "{appearances.TabsScrollButton.hover}",
2418
- "focus": "{appearances.TabsScrollButton.focus}",
2419
- "pressed": "{appearances.TabsScrollButton.pressed}"
2420
- },
2421
- "tokens": {
2422
- "borderRadius": "{palette.radius.pill32}",
2423
- "backgroundColor": "{palette.color.white}",
2424
- "borderColor": "{palette.color.greyCloud}",
2425
- "borderWidth": "{palette.border.border1}",
2426
- "padding": "{system.size.zero}",
2427
- "shadow": "{palette.shadow.surfaceRaised}",
2428
- "iconSize": "{palette.size.size32}",
2429
- "iconColor": "{palette.color.greyShuttle}"
2430
- },
2431
- "rules": [
2432
- {
2433
- "if": {
2434
- "hover": true
2435
- },
2436
- "tokens": {
2437
- "borderColor": "{palette.color.greyCharcoal}",
2438
- "iconColor": "{palette.color.greyCharcoal}"
2439
- }
2440
- },
2441
- {
2442
- "if": {
2443
- "pressed": true
2444
- },
2445
- "tokens": {
2446
- "backgroundColor": "{palette.color.greyShuttle}",
2447
- "iconColor": "{palette.color.white}"
2448
- }
2449
- }
2450
- ]
2451
- },
2452
2467
  "TextArea": {
2453
2468
  "appearances": {},
2454
2469
  "tokens": {
@@ -3373,7 +3388,8 @@
3373
3388
  "tokens": {
3374
3389
  "alignItems": "{system.flexAlign.stretch}",
3375
3390
  "justifyContent": "{system.flexJustifyContent.flexStart}",
3376
- "flexGrow": "{system.integer.0}"
3391
+ "flexGrow": "{system.integer.0}",
3392
+ "flexShrink": "{system.integer.0}"
3377
3393
  },
3378
3394
  "rules": []
3379
3395
  },
@@ -3386,7 +3402,8 @@
3386
3402
  "direction": "{system.direction.row}",
3387
3403
  "alignItems": "{system.flexAlign.center}",
3388
3404
  "justifyContent": "{system.flexJustifyContent.flexStart}",
3389
- "flexGrow": "{system.integer.0}"
3405
+ "flexGrow": "{system.integer.0}",
3406
+ "flexShrink": "{system.integer.0}"
3390
3407
  },
3391
3408
  "rules": [
3392
3409
  {