@orangesk/orange-design-system 2.0.0-beta.42 → 2.0.0-beta.43
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/BlockAction/style.css +1 -1
- package/build/components/BlockAction/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/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/components/tsconfig.tsbuildinfo +1 -1
- package/build/components/types/src/components/AnchorNavigation/AnchorNavigation.static.d.ts +27 -0
- package/build/components/types/src/components/Carousel/Carousel.static.d.ts +0 -5
- package/build/components/types/src/components/Megamenu/Megamenu.static.d.ts +3 -0
- package/build/components/types/src/components/Modal/Modal.static.d.ts +1 -0
- 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 -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/package.json +8 -8
- package/src/components/AnchorNavigation/AnchorNavigation.static.ts +247 -40
- package/src/components/AnchorNavigation/styles/mixins.scss +8 -0
- package/src/components/AnchorNavigation/tests/AnchorNavigation.unit.test.jsx +72 -0
- package/src/components/BlockAction/styles/mixins.scss +1 -1
- package/src/components/Carousel/Carousel.static.ts +5 -26
- package/src/components/Carousel/styles/mixins.scss +1 -1
- package/src/components/Carousel/tests/Carousel.static.test.jsx +117 -0
- package/src/components/Megamenu/Megamenu.static.ts +27 -1
- package/src/components/Megamenu/styles/mixins.scss +4 -0
- package/src/components/Modal/Modal.static.ts +29 -7
|
@@ -33,11 +33,6 @@ export default class Carousel {
|
|
|
33
33
|
* Carousel is enabled only when there are more slides than can fit in the current viewport.
|
|
34
34
|
*/
|
|
35
35
|
private updateCarouselEnabledState;
|
|
36
|
-
/**
|
|
37
|
-
* Apply negative margin-right to carousel track when all slides fit on screen.
|
|
38
|
-
* This compensates for the 20px padding-right on each slide, ensuring proper grid alignment.
|
|
39
|
-
*/
|
|
40
|
-
private applyTrackMarginCompensation;
|
|
41
36
|
private applyBleedInsets;
|
|
42
37
|
/**
|
|
43
38
|
* Configure bleed-right carousel to extend beyond the container edge.
|
|
@@ -25,6 +25,9 @@ export default class Megamenu {
|
|
|
25
25
|
mousedownHandler: () => void;
|
|
26
26
|
touchstartHandler: () => void;
|
|
27
27
|
instanceName: string;
|
|
28
|
+
private isModalOpen;
|
|
29
|
+
private getLockedScrollTop;
|
|
30
|
+
private getEffectiveScrollY;
|
|
28
31
|
constructor(element: HTMLElement, config?: MegamenuConfig);
|
|
29
32
|
static getInstance(el: HTMLElement): Megamenu | null;
|
|
30
33
|
init(): void;
|
|
@@ -30,6 +30,7 @@ export default class Modal {
|
|
|
30
30
|
update(): void;
|
|
31
31
|
static moveToModalRoot(el: HTMLElement, container: Element | null): void;
|
|
32
32
|
private static isLocked;
|
|
33
|
+
private static resolveBodyLockClassName;
|
|
33
34
|
static lockBody(className?: string, root?: string): void;
|
|
34
35
|
static unlockBody(className?: string, root?: string): void;
|
|
35
36
|
}
|