@orangesk/orange-design-system 2.0.0-beta.18 → 2.0.0-beta.19
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/Accordion/style.css +1 -1
- package/build/components/Accordion/style.css.map +1 -1
- package/build/components/AnchorNavigation/style.css +1 -1
- package/build/components/AnchorNavigation/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 -23
- package/build/components/index.js.map +1 -1
- package/build/components/tsconfig.tsbuildinfo +1 -1
- package/build/components/types/index.d.ts +2 -2
- package/build/components/types/src/components/Accordion/Accordion.d.ts +2 -2
- package/build/components/types/src/components/Accordion/Accordion.static.d.ts +1 -0
- package/build/components/types/src/components/Carousel/Carousel.static.d.ts +38 -18
- package/build/lib/components.css +1 -1
- package/build/lib/components.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 -9
- 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/package.json +1 -1
- package/src/components/Accordion/Accordion.static.ts +36 -30
- package/src/components/Accordion/Accordion.tsx +4 -4
- package/src/components/Accordion/AccordionHeader.tsx +0 -10
- package/src/components/Accordion/styles/mixins.scss +0 -6
- package/src/components/Accordion/styles/style.scss +2 -2
- package/src/components/Accordion/tests/Accordion.unit.test.js +12 -26
- package/src/components/AnchorNavigation/AnchorNavigation.static.ts +0 -1
- package/src/components/AnchorNavigation/styles/mixins.scss +4 -0
- package/src/components/Carousel/Carousel.static.ts +177 -91
- package/src/components/Carousel/tests/Carousel.static.test.js +213 -0
- package/src/components/Carousel/tests/Carousel.unit.test.js +58 -0
- package/src/components/Expander/Expander.static.ts +11 -12
- package/src/components/Footer/Footer.tsx +1 -1
- package/src/components/Footer/tests/Footer.conformance.test.js +4 -4
- package/src/components/Footer/tests/Footer.unit.test.js +4 -4
- package/src/components/Megamenu/Megamenu.tsx +71 -55
- package/src/components/Megamenu/MegamenuBlog.tsx +3 -6
- package/src/components/Megamenu/static.ts +0 -9
- package/src/components/Megamenu/styles/mixins.scss +1 -1
- package/src/components/PromoBanner/PromoBanner.tsx +2 -0
|
@@ -48,10 +48,7 @@ export const MegamenuBlog = ({ className, searchEmpty }: MegamenuProps) => {
|
|
|
48
48
|
>
|
|
49
49
|
<div className={CLASS_MAIN}>
|
|
50
50
|
<div className={CLASS_CONTAINER}>
|
|
51
|
-
<
|
|
52
|
-
Hlavné menu
|
|
53
|
-
</h2>
|
|
54
|
-
<ul className={CLASS_NAV} aria-labelledby="menu-title">
|
|
51
|
+
<ul className={CLASS_NAV} aria-label="Hlavné menu">
|
|
55
52
|
<li className={cx(CLASS_NAV_ITEM, CLASS_NAV_ITEM_MAIN)}>
|
|
56
53
|
<a
|
|
57
54
|
href="#"
|
|
@@ -112,10 +109,10 @@ export const MegamenuBlog = ({ className, searchEmpty }: MegamenuProps) => {
|
|
|
112
109
|
CLASS_INPUT,
|
|
113
110
|
CLASS_INPUT_SEARCH_ICON_WITH_PLACEHOLDER,
|
|
114
111
|
)}
|
|
115
|
-
id="search-
|
|
112
|
+
id="megamenu-blog-search-input"
|
|
116
113
|
type="text"
|
|
117
114
|
placeholder="Search"
|
|
118
|
-
name="search
|
|
115
|
+
name="search"
|
|
119
116
|
defaultValue={searchEmpty ? "" : "apple"}
|
|
120
117
|
/>
|
|
121
118
|
{searchEmpty ? (
|
|
@@ -33,17 +33,8 @@ window.ODSMegamenu = window.ODSMegamenu || {
|
|
|
33
33
|
Megamenu,
|
|
34
34
|
instances: [],
|
|
35
35
|
init: () => {
|
|
36
|
-
// Debug logging
|
|
37
|
-
const elements = document.querySelectorAll("[data-megamenu]");
|
|
38
|
-
console.log("Found elements with data-megamenu:", elements.length);
|
|
39
|
-
|
|
40
36
|
// Initialize all Megamenu instances on the page
|
|
41
37
|
window.ODSMegamenu.instances = moduleFactory(Megamenu, "[data-megamenu]");
|
|
42
|
-
console.log(
|
|
43
|
-
"ODSMegamenu instances created:",
|
|
44
|
-
window.ODSMegamenu.instances.length,
|
|
45
|
-
);
|
|
46
|
-
console.log("ODSMegamenu loaded and initialized");
|
|
47
38
|
},
|
|
48
39
|
destroy: () => {
|
|
49
40
|
// Destroy all instances
|
|
@@ -83,6 +83,8 @@ export const PromoBanner = ({
|
|
|
83
83
|
{
|
|
84
84
|
[`${CLASS_ROOT}__image--bleed-right`]: bleedImage,
|
|
85
85
|
[`align-self-${alignImage}`]: alignImage,
|
|
86
|
+
"pt-none": alignImage === "top",
|
|
87
|
+
"pb-none": alignImage === "bottom",
|
|
86
88
|
"align-center": variant === "vertical",
|
|
87
89
|
},
|
|
88
90
|
imageClassName,
|