@orangesk/orange-design-system 3.3.0 → 3.4.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/apple--dark.svg +4 -0
- package/build/apple--white.svg +5 -0
- package/build/apple.svg +4 -0
- package/build/components/BodyBanner/style.css +1 -1
- package/build/components/BodyBanner/style.css.map +1 -1
- package/build/components/FeatureAccordion/style.css +1 -1
- package/build/components/FeatureAccordion/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/PromoBanner/style.css +1 -1
- package/build/components/PromoBanner/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/index.d.ts +19 -4
- package/build/components/types/src/components/Megamenu/Megamenu.d.ts +8 -2
- package/build/components/types/src/components/Megamenu/MegamenuBlog.d.ts +1 -1
- package/build/components/types/src/components/Megamenu/MyOrangeMobilePanel.d.ts +2 -1
- package/build/components/types/src/components/Megamenu/constants.d.ts +19 -2
- package/build/components/types/src/components/Megamenu/data.d.ts +8 -0
- package/build/components/types/src/components/Megamenu/shared.d.ts +40 -0
- package/build/components/types/src/components/PromoBanner/PromoBanner.d.ts +3 -1
- package/build/huawei--dark.svg +4 -0
- package/build/huawei--white.svg +5 -0
- package/build/huawei.svg +4 -0
- package/build/images/phones.png +0 -0
- package/build/lib/base.css +1 -1
- package/build/lib/base.css.map +1 -1
- package/build/lib/components.css +1 -1
- package/build/lib/components.css.map +1 -1
- package/build/lib/footer.css +1 -1
- package/build/lib/footer.css.map +1 -1
- package/build/lib/megamenu.css +1 -1
- package/build/lib/megamenu.css.map +1 -1
- 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/build/lib/tsconfig.tsbuildinfo +1 -1
- package/build/lib/utilities.css +1 -1
- package/build/lib/utilities.css.map +1 -1
- package/build/play--dark.svg +7 -0
- package/build/play--white.svg +7 -0
- package/build/play.svg +7 -0
- package/package.json +14 -14
- package/src/components/BodyBanner/styles/mixins.scss +6 -0
- package/src/components/FeatureAccordion/styles/mixins.scss +6 -0
- package/src/components/Forms/Autocomplete/styles/mixins.scss +1 -0
- package/src/components/Forms/Autocomplete/styles/style.scss +4 -0
- package/src/components/Forms/Autocomplete/tests/Autocomplete.styles.unit.test.jsx +3 -0
- package/src/components/Megamenu/LogoJeTu.tsx +12 -7
- package/src/components/Megamenu/Megamenu.static.ts +1 -1
- package/src/components/Megamenu/Megamenu.tsx +420 -316
- package/src/components/Megamenu/MegamenuBlog.tsx +90 -123
- package/src/components/Megamenu/MyOrangeMobilePanel.tsx +116 -84
- package/src/components/Megamenu/constants.ts +19 -2
- package/src/components/Megamenu/data.ts +53 -15
- package/src/components/Megamenu/shared.tsx +154 -0
- package/src/components/Megamenu/styles/mixins.scss +307 -28
- package/src/components/Megamenu/styles/style.scss +91 -8
- package/src/components/Megamenu/tests/Megamenu.unit.test.jsx +77 -4
- package/src/components/PromoBanner/PromoBanner.tsx +7 -2
- package/src/components/PromoBanner/styles/mixins.scss +19 -4
- package/src/components/PromoBanner/styles/style.scss +4 -0
- package/src/components/PromoBanner/tests/PromoBanner.unit.test.jsx +21 -3
- package/src/styles/base/globals.scss +5 -5
- package/src/styles/base/styleguide.scss +1 -1
- package/src/styles/export/color.js +1 -1
- package/src/styles/shame.scss +1 -1
- package/src/styles/tokens/color.scss +1 -1
|
@@ -12,6 +12,9 @@ describe("Autocomplete styles", () => {
|
|
|
12
12
|
|
|
13
13
|
expect(result.css).toContain(".autocomplete__wrapper");
|
|
14
14
|
expect(result.css).toContain("isolation: isolate;");
|
|
15
|
+
expect(result.css).toContain("z-index: 0;");
|
|
16
|
+
expect(result.css).toContain(":has(.autocomplete__menu--visible)");
|
|
17
|
+
expect(result.css).toContain("z-index: 2;");
|
|
15
18
|
expect(result.css).toContain(".autocomplete__menu");
|
|
16
19
|
expect(result.css).toContain("z-index: 1;");
|
|
17
20
|
expect(result.css).toContain(".autocomplete__option::before");
|
|
@@ -6,9 +6,8 @@ export const LogoJeTu: React.FC = () => {
|
|
|
6
6
|
viewBox="0 0 40 67"
|
|
7
7
|
fill="none"
|
|
8
8
|
xmlns="http://www.w3.org/2000/svg"
|
|
9
|
-
aria-hidden="true"
|
|
10
9
|
>
|
|
11
|
-
<g clipPath="url(#
|
|
10
|
+
<g clipPath="url(#clip0_21208_2750)">
|
|
12
11
|
<rect width="40" height="40" fill="white" />
|
|
13
12
|
<rect width="40" height="40" fill="#FF7900" />
|
|
14
13
|
<path
|
|
@@ -20,11 +19,17 @@ export const LogoJeTu: React.FC = () => {
|
|
|
20
19
|
<path
|
|
21
20
|
fillRule="evenodd"
|
|
22
21
|
clipRule="evenodd"
|
|
23
|
-
d="
|
|
22
|
+
d="M30.2988 33.7648C30.2988 35.5929 31.2763 36.645 32.9143 36.645C34.0566 36.645 34.9045 36.231 35.3763 35.445L34.3045 34.8507C33.9622 35.3324 33.5974 35.5549 33.0439 35.5549C32.1833 35.5549 31.7467 35.0239 31.7354 33.9718H35.4354C35.4354 33.9274 35.4382 33.8817 35.441 33.8352C35.4438 33.7873 35.4467 33.7387 35.4467 33.6901C35.4467 31.8831 34.496 30.8619 32.8904 30.8619C31.2847 30.8619 30.2988 31.9366 30.2988 33.7648ZM32.8904 31.8507C33.5876 31.8507 34.0101 32.2873 34.0101 33.031H31.7636C31.8186 32.2732 32.2312 31.8507 32.8904 31.8507Z"
|
|
24
23
|
fill="white"
|
|
25
24
|
/>
|
|
26
25
|
<path
|
|
27
|
-
|
|
26
|
+
fillRule="evenodd"
|
|
27
|
+
clipRule="evenodd"
|
|
28
|
+
d="M29.4168 36.2296V30.969L28.1858 30.9718L28.0715 31.6068C27.9579 31.3346 27.5372 30.8676 26.4689 30.8676C25.2872 30.869 24.2351 31.9085 24.2351 33.7662C24.2351 35.6451 25.2562 36.5437 26.5506 36.5437C27.3999 36.5437 27.7534 36.1493 27.9858 35.7352L28.0055 35.7549V36.4014C28.0055 37.2704 27.6379 37.6338 26.8788 37.6338C26.0605 37.6338 25.8943 37.3606 25.8337 37.0873L24.39 37.3197C24.5929 38.2747 25.6055 38.7042 26.6971 38.7042C29.3464 38.6873 29.4168 37.1592 29.4168 36.2296ZM28.0114 33.4775C28.0114 34.2155 27.9184 35.3437 26.8086 35.3521C25.7353 35.3592 25.6874 34.2254 25.6874 33.538C25.6874 32.2859 26.2734 31.9028 26.7987 31.9028C27.5889 31.9028 28.0114 32.6099 28.0114 33.4775Z"
|
|
29
|
+
fill="white"
|
|
30
|
+
/>
|
|
31
|
+
<path
|
|
32
|
+
d="M18.2454 31.1366L19.4552 30.969L19.5876 31.6281C20.2707 31.1281 20.813 30.8619 21.4961 30.8619C22.6397 30.8619 23.2285 31.469 23.2285 32.6704V36.5394H21.7679V32.9253C21.7679 32.245 21.5904 31.9394 21.0637 31.9394C20.6271 31.9394 20.1918 32.1408 19.6961 32.5563V36.5422H18.2454V31.1366Z"
|
|
28
33
|
fill="white"
|
|
29
34
|
/>
|
|
30
35
|
<path
|
|
@@ -34,7 +39,7 @@ export const LogoJeTu: React.FC = () => {
|
|
|
34
39
|
fill="white"
|
|
35
40
|
/>
|
|
36
41
|
<path
|
|
37
|
-
d="M8.
|
|
42
|
+
d="M8.66626 30.9859H10.0564V31.6394C10.4387 31.1829 10.9929 30.905 11.5874 30.8718C11.6505 30.8702 11.7136 30.8735 11.7761 30.8817V32.2535H11.7057C11.0691 32.2535 10.3733 32.3521 10.1564 32.8465V36.5422H8.66626V30.9859Z"
|
|
38
43
|
fill="white"
|
|
39
44
|
/>
|
|
40
45
|
<path
|
|
@@ -45,13 +50,13 @@ export const LogoJeTu: React.FC = () => {
|
|
|
45
50
|
/>
|
|
46
51
|
</g>
|
|
47
52
|
<path
|
|
48
|
-
d="M5.
|
|
53
|
+
d="M5.17993 48.9411V58.7468C5.17993 59.2294 5.12534 59.648 5.01587 60.0016C4.91751 60.3582 4.73923 60.6555 4.47974 60.8903C4.23215 61.1371 3.89396 61.3132 3.46899 61.4225C3.04305 61.5441 2.50403 61.6052 1.85376 61.6052C1.55135 61.6051 1.27816 61.5807 1.03442 61.5319L0.994385 61.5241V59.3054L1.06079 59.3298C1.18497 59.3749 1.35889 59.3991 1.58423 59.3991C1.84115 59.3991 2.06033 59.3467 2.24341 59.2438L2.24731 59.2419C2.42503 59.1581 2.52466 58.961 2.52466 58.6208V48.9411H5.17993ZM11.8215 48.6891C12.6201 48.6892 13.3188 48.8463 13.9153 49.1628H13.9143C14.5087 49.4661 14.9946 49.8788 15.3713 50.4011C15.7594 50.9225 16.0387 51.5165 16.2083 52.1823C16.3776 52.8477 16.4372 53.5433 16.3889 54.2682L16.386 54.3151H9.67896C9.72114 55.1097 9.92735 55.6774 10.2903 56.029C10.6621 56.3892 11.1998 56.5729 11.9114 56.5729C12.4184 56.5729 12.8518 56.4489 13.2141 56.2038C13.5814 55.9431 13.7996 55.6758 13.8792 55.403L13.8899 55.3669H16.2463L16.2249 55.4323C15.8625 56.5556 15.3054 57.3652 14.5491 57.8532C13.7956 58.3393 12.8853 58.5807 11.8215 58.5807C11.0844 58.5807 10.418 58.4665 9.82349 58.236L9.82251 58.235C9.22844 57.9925 8.72398 57.653 8.31079 57.2155C7.89803 56.7784 7.57705 56.2565 7.34692 55.6511V55.6501C7.12873 55.044 7.01978 54.378 7.01978 53.653C7.01978 52.9515 7.13417 52.2972 7.3645 51.6911C7.59477 51.0852 7.92285 50.5629 8.3479 50.1257C8.77246 49.6771 9.27609 49.3254 9.85767 49.071C10.4525 48.816 11.1075 48.6891 11.8215 48.6891ZM32.8323 48.9411V54.2468C32.8323 55.0107 32.9514 55.5757 33.1838 55.9479L33.2776 56.072C33.516 56.3432 33.8932 56.4831 34.4202 56.4831C35.1064 56.4831 35.5924 56.2819 35.8918 55.8903C36.1938 55.4835 36.3499 54.8133 36.3499 53.8688V48.9411H39.0061V58.3474H36.4758V57.0866C36.1525 57.6029 35.739 57.981 35.2327 58.2165C34.7106 58.4592 34.1756 58.5807 33.6282 58.5807C33.0262 58.5807 32.5135 58.5119 32.092 58.3718L31.9172 58.3073C31.4784 58.1245 31.1284 57.8675 30.8704 57.5358V57.5349C30.6136 57.1925 30.4309 56.784 30.3215 56.3102L30.3206 56.3093C30.2238 55.8255 30.176 55.2933 30.176 54.7145V48.9411H32.8323ZM27.1672 46.1511V48.9411H29.0393V50.7507H27.1672V55.3093C27.1673 55.5226 27.1854 55.698 27.22 55.8366C27.2547 55.9753 27.3053 56.0741 27.3684 56.1374C27.4317 56.2007 27.5304 56.2521 27.6692 56.2868C27.8079 56.3215 27.9839 56.3386 28.1975 56.3386C28.34 56.3386 28.4764 56.3328 28.6067 56.321C28.7371 56.3091 28.8616 56.2919 28.9797 56.2682L29.0393 56.2556V58.3395L28.9973 58.3464C28.7791 58.3827 28.5372 58.4066 28.2717 58.4186C28.007 58.4307 27.7482 58.4372 27.4954 58.4372C27.0969 58.4372 26.7157 58.4069 26.3528 58.3464V58.3454C26 58.2965 25.6822 58.194 25.4006 58.0349L25.3997 58.0339C25.1276 57.873 24.9112 57.6445 24.7512 57.3493C24.5899 57.0515 24.511 56.664 24.511 56.1911V50.7507H22.9631V48.9411H24.511V46.1511H27.1672ZM11.7493 50.7145C11.3972 50.7146 11.098 50.7697 10.8499 50.8766L10.7463 50.9255C10.4885 51.0544 10.2774 51.2174 10.1145 51.4147C9.96176 51.6145 9.85162 51.8264 9.78149 52.0485L9.78052 52.0475C9.72728 52.2502 9.69466 52.4329 9.67993 52.5954H13.7219C13.601 51.9822 13.3928 51.5194 13.0989 51.2028L13.0979 51.2018C12.8106 50.8803 12.3645 50.7145 11.7493 50.7145ZM5.17993 45.3952V47.6013H2.52466V45.3952H5.17993Z"
|
|
49
54
|
fill="var(--color-text-default)"
|
|
50
55
|
stroke="var(--color-text-default)"
|
|
51
56
|
strokeWidth="0.1"
|
|
52
57
|
/>
|
|
53
58
|
<defs>
|
|
54
|
-
<clipPath id="
|
|
59
|
+
<clipPath id="clip0_21208_2750">
|
|
55
60
|
<rect width="40" height="40" fill="white" />
|
|
56
61
|
</clipPath>
|
|
57
62
|
</defs>
|
|
@@ -449,7 +449,7 @@ export default class Megamenu {
|
|
|
449
449
|
topElement.classList.remove("is-hidden");
|
|
450
450
|
this.element.classList.remove("top-hidden");
|
|
451
451
|
}
|
|
452
|
-
} else if (this.element.classList.contains("
|
|
452
|
+
} else if (!this.element.classList.contains("non-sticky") && hasBrandMark) {
|
|
453
453
|
this.element.classList.toggle("top-hidden", shouldHideTop);
|
|
454
454
|
}
|
|
455
455
|
}
|