@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.
- package/build/components/AnchorNavigation/style.css +1 -1
- package/build/components/AnchorNavigation/style.css.map +1 -1
- package/build/components/Buttons/style.css +1 -1
- package/build/components/Buttons/style.css.map +1 -1
- package/build/components/Grid/style.css +1 -1
- package/build/components/Grid/style.css.map +1 -1
- package/build/components/Link/style.css +1 -1
- package/build/components/Link/style.css.map +1 -1
- package/build/components/Modal/style.css +1 -1
- package/build/components/Modal/style.css.map +1 -1
- package/build/components/index.js +1 -1
- package/build/components/index.js.map +1 -1
- package/build/components/tsconfig.tsbuildinfo +1 -1
- package/build/components/types/src/components/AnchorNavigation/AnchorNavigation.static.d.ts +13 -0
- package/build/lib/components.css +1 -1
- package/build/lib/components.css.map +1 -1
- package/build/lib/scripts.js +1 -1
- package/build/lib/scripts.js.map +1 -1
- package/build/lib/style.css +1 -1
- package/build/lib/style.css.map +1 -1
- package/build/sprite.svg +1 -1
- package/package.json +20 -20
- package/src/assets/icons/youtube.svg +3 -1
- package/src/components/AnchorNavigation/AnchorNavigation.static.ts +146 -45
- package/src/components/AnchorNavigation/styles/mixins.scss +10 -2
- package/src/components/AnchorNavigation/tests/AnchorNavigation.unit.test.jsx +194 -8
- package/src/components/Buttons/styles/mixins.scss +8 -13
- package/src/components/Grid/styles/mixins.scss +14 -6
- package/src/components/Link/styles/mixins.scss +0 -1
- package/src/components/Modal/styles/mixins.scss +4 -0
|
@@ -23,11 +23,15 @@
|
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
-
@mixin grid-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(
|
|
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) {
|