@orangesk/orange-design-system 2.0.0-beta.41 → 2.0.0-beta.42

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 (30) hide show
  1. package/build/components/AnchorNavigation/style.css +1 -1
  2. package/build/components/AnchorNavigation/style.css.map +1 -1
  3. package/build/components/Buttons/style.css +1 -1
  4. package/build/components/Buttons/style.css.map +1 -1
  5. package/build/components/Grid/style.css +1 -1
  6. package/build/components/Grid/style.css.map +1 -1
  7. package/build/components/Link/style.css +1 -1
  8. package/build/components/Link/style.css.map +1 -1
  9. package/build/components/Modal/style.css +1 -1
  10. package/build/components/Modal/style.css.map +1 -1
  11. package/build/components/index.js +1 -1
  12. package/build/components/index.js.map +1 -1
  13. package/build/components/tsconfig.tsbuildinfo +1 -1
  14. package/build/components/types/src/components/AnchorNavigation/AnchorNavigation.static.d.ts +13 -0
  15. package/build/lib/components.css +1 -1
  16. package/build/lib/components.css.map +1 -1
  17. package/build/lib/scripts.js +1 -1
  18. package/build/lib/scripts.js.map +1 -1
  19. package/build/lib/style.css +1 -1
  20. package/build/lib/style.css.map +1 -1
  21. package/build/sprite.svg +1 -1
  22. package/package.json +20 -20
  23. package/src/assets/icons/youtube.svg +3 -1
  24. package/src/components/AnchorNavigation/AnchorNavigation.static.ts +146 -45
  25. package/src/components/AnchorNavigation/styles/mixins.scss +10 -2
  26. package/src/components/AnchorNavigation/tests/AnchorNavigation.unit.test.jsx +194 -8
  27. package/src/components/Buttons/styles/mixins.scss +8 -13
  28. package/src/components/Grid/styles/mixins.scss +14 -6
  29. package/src/components/Link/styles/mixins.scss +0 -1
  30. package/src/components/Modal/styles/mixins.scss +4 -0
@@ -23,11 +23,15 @@
23
23
  }
24
24
  }
25
25
 
26
- @mixin grid-column-gap($size: "default", $column-gap: config.$column-gap) {
26
+ @mixin grid-column-gap(
27
+ $size: "default",
28
+ $column-gap: config.$column-gap,
29
+ $force-important: false
30
+ ) {
27
31
  $gap: map.get($column-gap, $size);
28
32
 
29
33
  @if ($size == "default" or $size == "small") {
30
- @if ($size == "default") {
34
+ @if ($size == "default" and not $force-important) {
31
35
  margin-left: -$gap;
32
36
  margin-right: -$gap;
33
37
  } @else {
@@ -46,7 +50,7 @@
46
50
  $size: "default",
47
51
  $column-gap: config.$column-gap
48
52
  ) {
49
- @include grid-column-gap($size, $column-gap);
53
+ @include grid-column-gap($size, $column-gap, true);
50
54
  }
51
55
 
52
56
  @mixin grid-with-equal-height-content(
@@ -89,10 +93,14 @@
89
93
  max-width: 100%;
90
94
  }
91
95
 
92
- @mixin grid-col-column-gap($size: "default", $column-gap: config.$column-gap) {
96
+ @mixin grid-col-column-gap(
97
+ $size: "default",
98
+ $column-gap: config.$column-gap,
99
+ $force-important: false
100
+ ) {
93
101
  $gap: map.get($column-gap, $size);
94
102
 
95
- @if ($size == "default") {
103
+ @if ($size == "default" and not $force-important) {
96
104
  padding-left: $gap;
97
105
  padding-right: $gap;
98
106
  } @else if ($size == "small") {
@@ -110,7 +118,7 @@
110
118
  $size: "default",
111
119
  $column-gap: config.$column-gap
112
120
  ) {
113
- @include grid-col-column-gap($size, $column-gap);
121
+ @include grid-col-column-gap($size, $column-gap, true);
114
122
  }
115
123
 
116
124
  @mixin column-size($width: config.$grid-base, $grid-base: config.$grid-base) {
@@ -27,7 +27,6 @@
27
27
 
28
28
  @mixin icon {
29
29
  vertical-align: middle;
30
- transform: translateY(-4%);
31
30
  }
32
31
 
33
32
  @mixin icon-left {
@@ -97,6 +97,10 @@
97
97
  .divider {
98
98
  padding: 0;
99
99
  }
100
+
101
+ &:has(.divider) {
102
+ padding-bottom: 0;
103
+ }
100
104
  }
101
105
 
102
106
  @mixin close {