@orangesk/orange-design-system 3.12.0 → 4.0.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/components/Breadcrumbs/style.css +1 -1
- package/build/components/Breadcrumbs/style.css.map +1 -1
- package/build/components/Carousel/style.css +1 -1
- package/build/components/Carousel/style.css.map +1 -1
- package/build/components/Footer/style.css +1 -1
- package/build/components/Footer/style.css.map +1 -1
- package/build/components/Megamenu/style.css +1 -1
- package/build/components/Megamenu/style.css.map +1 -1
- package/build/components/index.js +1 -1
- package/build/components/index.js.map +1 -1
- package/build/lib/base.css +1 -1
- package/build/lib/base.css.map +1 -1
- package/build/lib/breadcrumbs.css +2 -2
- package/build/lib/breadcrumbs.css.map +1 -1
- package/build/lib/components.css +1 -1
- package/build/lib/components.css.map +1 -1
- package/build/lib/fonts.css +1 -1
- package/build/lib/fonts.css.map +1 -1
- package/build/lib/footer.css +1 -1
- package/build/lib/footer.css.map +1 -1
- package/build/lib/footer.iife.js +2 -0
- package/build/lib/footer.iife.js.map +1 -0
- package/build/lib/megamenu.css +1 -1
- package/build/lib/megamenu.css.map +1 -1
- package/build/lib/megamenu.iife.js +2 -0
- package/build/lib/megamenu.iife.js.map +1 -0
- package/build/lib/megamenu.js +1 -1
- package/build/lib/megamenu.js.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/package.json +10 -12
- package/src/components/AnchorNavigation/AnchorNavigation.static.ts +3 -4
- package/src/components/AnchorNavigation/tests/AnchorNavigation.megamenu.unit.test.ts +74 -0
- package/src/components/AnchorNavigation/tests/AnchorNavigation.unit.test.jsx +6 -0
- package/src/components/Breadcrumbs/styles/mixins.scss +6 -0
- package/src/components/Breadcrumbs/styles/rules.scss +30 -0
- package/src/components/Breadcrumbs/styles/style.scss +2 -26
- package/src/components/Carousel/Carousel.static.ts +0 -3
- package/src/components/Carousel/styles/mixins.scss +0 -4
- package/src/components/Carousel/tests/Carousel.interactions.test.ts +116 -85
- package/src/components/CarouselHero/CarouselHero.static.ts +0 -3
- package/src/components/CarouselPromotions/CarouselPromotions.static.ts +0 -3
- package/src/components/Footer/classic.ts +3 -0
- package/src/components/Footer/styles/mixins.scss +32 -1
- package/src/components/Footer/styles/style.scss +8 -5
- package/src/components/Footer/tests/Footer.styles.unit.test.jsx +7 -2
- package/src/components/Megamenu/Megamenu.static.ts +25 -6
- package/src/components/Megamenu/classic.ts +3 -0
- package/src/components/Megamenu/styles/mixins.scss +114 -52
- package/src/components/Megamenu/styles/style.scss +6 -7
- package/src/components/Megamenu/tests/Megamenu.scroll.unit.test.ts +185 -0
- package/src/styles/base/globals.scss +1 -37
- package/src/styles/base/header-height-values.scss +9 -0
- package/src/styles/base/header-height.scss +50 -0
- package/src/styles/base/styleguide.scss +0 -1
- package/build/files/tone-of-voice.pdf +0 -26572
- package/build/images/card-device-example.png +0 -0
- package/build/images/cta-device.png +0 -0
- package/build/images/cta-plans.png +0 -0
- package/build/images/cta-renewal.png +0 -0
- package/build/images/device-mobile.png +0 -0
- package/build/images/form-validation-format.png +0 -0
- package/build/images/form-validation-info-structure.png +0 -0
- package/build/images/form-validation-semantics.png +0 -0
- package/build/images/forms-labels-grouping.png +0 -0
- package/build/images/forms-labels-instruction.png +0 -0
- package/build/images/forms-labels-structure.png +0 -0
- package/build/images/hero/example-lg.jpg +0 -0
- package/build/images/hero/example-lg@2x.jpg +0 -0
- package/build/images/hero/example-xl.jpg +0 -0
- package/build/images/hero/example-xl@2x.jpg +0 -0
- package/build/images/hero/example-xxl.jpg +0 -0
- package/build/images/hero/example-xxl@2x.jpg +0 -0
- package/build/images/hero/example.jpg +0 -0
- package/build/images/hero/example@2x.jpg +0 -0
- package/build/images/hero/old-vendor-2x.jpg +0 -0
- package/build/images/hero/old-vendor-lg-2x.jpg +0 -0
- package/build/images/hero/old-vendor-lg.jpg +0 -0
- package/build/images/hero/old-vendor-xl-2x.jpg +0 -0
- package/build/images/hero/old-vendor-xl.jpg +0 -0
- package/build/images/hero/old-vendor-xxl-2x.jpg +0 -0
- package/build/images/hero/old-vendor-xxl.jpg +0 -0
- package/build/images/hero/old-vendor.jpg +0 -0
- package/build/images/hero/photo-2x.jpg +0 -0
- package/build/images/hero/photo-lg-2x.jpg +0 -0
- package/build/images/hero/photo-lg.jpg +0 -0
- package/build/images/hero/photo-xl-2x.jpg +0 -0
- package/build/images/hero/photo-xl.jpg +0 -0
- package/build/images/hero/photo-xxl-2x.jpg +0 -0
- package/build/images/hero/photo-xxl.jpg +0 -0
- package/build/images/hero/photo.jpg +0 -0
- package/build/images/hero/single.png +0 -0
- package/build/images/hero/single@2x.png +0 -0
- package/build/images/hero/vendor-lg.png +0 -0
- package/build/images/hero/vendor-lg@2x.png +0 -0
- package/build/images/hero/vendor-xl.png +0 -0
- package/build/images/hero/vendor-xl@2x.png +0 -0
- package/build/images/hero/vendor-xxl.png +0 -0
- package/build/images/hero/vendor-xxl@2x.png +0 -0
- package/build/images/hero/vendor.png +0 -0
- package/build/images/hero/vendor@2x.png +0 -0
- package/build/images/phones.png +0 -0
- package/build/images/product-1.svg +0 -10
- package/build/images/product-2.svg +0 -14
- package/build/images/product-3.svg +0 -9
- package/build/images/tone-of-voice.jpg +0 -0
- package/build/lib/base.js +0 -3
- package/build/lib/breadcrumbs.js +0 -3
- package/build/lib/components.js +0 -3
- package/build/lib/fonts.js +0 -3
- package/build/lib/reset.js +0 -3
- package/build/lib/style.js +0 -3
- package/build/lib/utilities.js +0 -3
|
@@ -1,47 +1,11 @@
|
|
|
1
1
|
@use "../tokens/base";
|
|
2
2
|
@use "../tokens/space";
|
|
3
3
|
@use "../tokens/color-vars";
|
|
4
|
+
@use "./header-height";
|
|
4
5
|
|
|
5
6
|
:root,
|
|
6
7
|
:host {
|
|
7
8
|
--extra-scroll-margin: 0;
|
|
8
|
-
--header-height: 80px;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
@media screen and (min-width: 992px) {
|
|
12
|
-
:root,
|
|
13
|
-
:host {
|
|
14
|
-
--header-height: 120px;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
html:has(
|
|
18
|
-
.megamenu:not(.non-sticky):not(.top-hidden)
|
|
19
|
-
.megamenu__nav-logo
|
|
20
|
-
> [data-megamenu-brand-mark]
|
|
21
|
-
+ span
|
|
22
|
-
) {
|
|
23
|
-
--header-height: 107px;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
html:has(
|
|
27
|
-
.megamenu:not(.non-sticky):not(.top-hidden)
|
|
28
|
-
.megamenu__nav-logo
|
|
29
|
-
> [data-megamenu-brand-mark]
|
|
30
|
-
):not(
|
|
31
|
-
:has(
|
|
32
|
-
.megamenu:not(.non-sticky):not(.top-hidden)
|
|
33
|
-
.megamenu__nav-logo
|
|
34
|
-
> [data-megamenu-brand-mark]
|
|
35
|
-
+ span
|
|
36
|
-
)
|
|
37
|
-
) {
|
|
38
|
-
--header-height: 147px;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
html:has(.megamenu:not(.non-sticky).top-hidden),
|
|
42
|
-
html:has(.megamenu:not(.non-sticky) + .megamenu-spacer--small) {
|
|
43
|
-
--header-height: 80px;
|
|
44
|
-
}
|
|
45
9
|
}
|
|
46
10
|
|
|
47
11
|
:target {
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
// Shared geometry and timing for Megamenu, spacers, and vendor sticky offsets.
|
|
2
|
+
$collapsed: 80px;
|
|
3
|
+
$top: 40px;
|
|
4
|
+
$brand-main: 107px;
|
|
5
|
+
$desktop: $top + $collapsed;
|
|
6
|
+
$brand: $top + $brand-main;
|
|
7
|
+
$brand-with-title: $brand-main;
|
|
8
|
+
$mobile-spacer: 60px;
|
|
9
|
+
$transition: 0.2s ease-in-out;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
@use "./header-height-values" as heights;
|
|
2
|
+
|
|
3
|
+
:root,
|
|
4
|
+
:host {
|
|
5
|
+
--header-height: #{heights.$mobile-spacer};
|
|
6
|
+
--header-transition: #{heights.$transition};
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
@media (prefers-reduced-motion: reduce) {
|
|
10
|
+
:root,
|
|
11
|
+
:host {
|
|
12
|
+
--header-transition: 0s;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
@media screen and (min-width: 992px) {
|
|
17
|
+
:root,
|
|
18
|
+
:host {
|
|
19
|
+
--header-height: #{heights.$desktop};
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
html:has(
|
|
23
|
+
.megamenu:not(.non-sticky):not(.top-hidden)
|
|
24
|
+
.megamenu__nav-logo
|
|
25
|
+
> [data-megamenu-brand-mark]
|
|
26
|
+
+ span
|
|
27
|
+
) {
|
|
28
|
+
--header-height: #{heights.$brand-with-title};
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
html:has(
|
|
32
|
+
.megamenu:not(.non-sticky):not(.top-hidden)
|
|
33
|
+
.megamenu__nav-logo
|
|
34
|
+
> [data-megamenu-brand-mark]
|
|
35
|
+
):not(
|
|
36
|
+
:has(
|
|
37
|
+
.megamenu:not(.non-sticky):not(.top-hidden)
|
|
38
|
+
.megamenu__nav-logo
|
|
39
|
+
> [data-megamenu-brand-mark]
|
|
40
|
+
+ span
|
|
41
|
+
)
|
|
42
|
+
) {
|
|
43
|
+
--header-height: #{heights.$brand};
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
html:has(.megamenu:not(.non-sticky).top-hidden),
|
|
47
|
+
html:has(.megamenu:not(.non-sticky) + .megamenu-spacer--small) {
|
|
48
|
+
--header-height: #{heights.$collapsed};
|
|
49
|
+
}
|
|
50
|
+
}
|