@swisspost/design-system-styles 10.7.0 → 10.8.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.
Files changed (66) hide show
  1. package/README.md +28 -23
  2. package/_svg-icon-map.scss +8 -4
  3. package/basics.css +1 -1
  4. package/cargo-compact.css +1 -1
  5. package/cargo-condensed.css +1 -0
  6. package/cargo-condensed.scss +12 -0
  7. package/cargo-default.css +1 -1
  8. package/cargo-tokens-compact.css +1 -1
  9. package/cargo-tokens-condensed.css +1 -0
  10. package/cargo-tokens-condensed.scss +8 -0
  11. package/cargo-tokens-default.css +1 -1
  12. package/components/avatar.css +1 -1
  13. package/components/blockquote.css +1 -1
  14. package/components/blockquote.scss +4 -1
  15. package/components/button-group.css +1 -1
  16. package/components/button.css +1 -1
  17. package/components/button.scss +5 -0
  18. package/components/card.css +1 -1
  19. package/components/checkbox.css +1 -1
  20. package/components/chip.css +1 -1
  21. package/components/dialog.css +1 -1
  22. package/components/form-input.css +1 -1
  23. package/components/form-input.scss +3 -1
  24. package/components/form-search-input.css +1 -1
  25. package/components/form-select.css +1 -1
  26. package/components/form-select.scss +3 -2
  27. package/components/form-textarea.css +1 -1
  28. package/components/form-textarea.scss +3 -1
  29. package/components/header/index.css +1 -1
  30. package/components/inline-notification.css +1 -1
  31. package/components/inline-notification.scss +32 -15
  32. package/components/list-check.css +1 -1
  33. package/components/list-check.scss +18 -53
  34. package/components/list-interactive.css +1 -1
  35. package/components/palette.css +1 -1
  36. package/components/radio-button.css +1 -1
  37. package/components/segmented-button.css +1 -1
  38. package/components/selection-card.css +1 -1
  39. package/components/selection-card.scss +2 -1
  40. package/components/skiplinks.css +1 -1
  41. package/components/switch.css +1 -1
  42. package/components/tabs/index.css +1 -1
  43. package/components/tag.css +1 -1
  44. package/components/tag.scss +2 -1
  45. package/components/toast.css +1 -1
  46. package/elements/anchor.css +1 -1
  47. package/functions/_icons.scss +4 -3
  48. package/helpers/focus-ring.css +1 -1
  49. package/mixins/_button.scss +12 -1
  50. package/mixins/_color-scheme.scss +48 -17
  51. package/mixins/_notification.scss +2 -1
  52. package/mixins/_utilities.scss +22 -29
  53. package/package.json +5 -5
  54. package/placeholders/_button.scss +1 -0
  55. package/post-compact.css +1 -1
  56. package/post-condensed.css +1 -0
  57. package/post-condensed.scss +12 -0
  58. package/post-default.css +1 -1
  59. package/post-tokens-compact.css +1 -1
  60. package/post-tokens-condensed.css +1 -0
  61. package/post-tokens-condensed.scss +8 -0
  62. package/post-tokens-default.css +1 -1
  63. package/tokens/_appearance-condensed.scss +11 -0
  64. package/tokens/_device-condensed.scss +10 -0
  65. package/tokens/_schemes.scss +2 -8
  66. package/utilities/_env-variables.scss +1 -1
@@ -0,0 +1,11 @@
1
+ @use '@swisspost/design-system-tokens/appearance';
2
+
3
+ @use './core';
4
+ @use './../mixins/tokens';
5
+
6
+ :root,
7
+ [data-color-scheme] {
8
+ // todo: there is no condensed appearance yet; replace after tokens are updated
9
+ @include tokens.from(appearance.$post-compact);
10
+ --_post-initial-global-header-height: 2rem;
11
+ }
@@ -0,0 +1,10 @@
1
+ @use '@swisspost/design-system-tokens/device' as device;
2
+
3
+ @use './core';
4
+ @use './../mixins/tokens';
5
+ @use './../mixins/media';
6
+
7
+ :root,
8
+ [data-color-scheme] {
9
+ @include tokens.from(device.$post-mobile);
10
+ }
@@ -2,11 +2,8 @@
2
2
  @use './core';
3
3
  @use '@swisspost/design-system-tokens/scheme';
4
4
 
5
- /**
6
- * Check for light-dark support was added so we don't use CSS functions that don't work anyway.
7
- * This check becomes obsolete when the fallback is removed.
8
- */
9
5
  @use '../mixins/supports';
6
+ @use '../mixins/color-scheme';
10
7
 
11
8
  @include supports.light-dark(true) {
12
9
  :root {
@@ -19,9 +16,6 @@
19
16
  @include supports.light-dark(false) {
20
17
  :root,
21
18
  [data-color-scheme] {
22
- @each $key, $light-value in scheme.$post-light {
23
- --#{$key}-light: var(--post-fallback-prefers-light) #{$light-value};
24
- --#{$key}: var(--#{$key}-light, #{map.get(scheme.$post-dark, $key)});
25
- }
19
+ @extend %color-scheme-fallback-variables;
26
20
  }
27
21
  }
@@ -1 +1 @@
1
- $post-icon-version: '10.7.0';
1
+ $post-icon-version: '10.8.0';