@studiometa/ui 0.2.14 → 0.2.16
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/atoms/AnchorScrollTo/AnchorScrollTo.cjs +1 -0
- package/atoms/AnchorScrollTo/AnchorScrollTo.cjs.map +7 -0
- package/atoms/AnchorScrollTo/AnchorScrollTo.js +4 -9
- package/atoms/AnchorScrollTo/AnchorScrollTo.js.map +7 -0
- package/atoms/AnchorScrollTo/index.cjs +1 -0
- package/atoms/AnchorScrollTo/index.cjs.map +7 -0
- package/atoms/AnchorScrollTo/index.js +1 -0
- package/atoms/AnchorScrollTo/index.js.map +7 -0
- package/atoms/Cursor/Cursor.cjs +7 -9
- package/atoms/Cursor/Cursor.cjs.map +7 -0
- package/atoms/Cursor/Cursor.js +44 -52
- package/atoms/Cursor/Cursor.js.map +7 -0
- package/atoms/Cursor/index.cjs +1 -0
- package/atoms/Cursor/index.cjs.map +7 -0
- package/atoms/Cursor/index.js +1 -0
- package/atoms/Cursor/index.js.map +7 -0
- package/atoms/Figure/Figure.cjs +1 -0
- package/atoms/Figure/Figure.cjs.map +7 -0
- package/atoms/Figure/Figure.js +10 -15
- package/atoms/Figure/Figure.js.map +7 -0
- package/atoms/Figure/FigureTwicPics.cjs +1 -0
- package/atoms/Figure/FigureTwicPics.cjs.map +7 -0
- package/atoms/Figure/FigureTwicPics.js +17 -22
- package/atoms/Figure/FigureTwicPics.js.map +7 -0
- package/atoms/Figure/index.cjs +1 -0
- package/atoms/Figure/index.cjs.map +7 -0
- package/atoms/Figure/index.js +1 -0
- package/atoms/Figure/index.js.map +7 -0
- package/atoms/LargeText/LargeText.cjs +8 -10
- package/atoms/LargeText/LargeText.cjs.map +7 -0
- package/atoms/LargeText/LargeText.js +23 -31
- package/atoms/LargeText/LargeText.js.map +7 -0
- package/atoms/LargeText/index.cjs +1 -0
- package/atoms/LargeText/index.cjs.map +7 -0
- package/atoms/LargeText/index.js +1 -0
- package/atoms/LargeText/index.js.map +7 -0
- package/atoms/LazyInclude/LazyInclude.cjs +1 -0
- package/atoms/LazyInclude/LazyInclude.cjs.map +7 -0
- package/atoms/LazyInclude/LazyInclude.js +10 -15
- package/atoms/LazyInclude/LazyInclude.js.map +7 -0
- package/atoms/LazyInclude/index.cjs +1 -0
- package/atoms/LazyInclude/index.cjs.map +7 -0
- package/atoms/LazyInclude/index.js +1 -0
- package/atoms/LazyInclude/index.js.map +7 -0
- package/atoms/Prefetch/AbstractPrefetch.cjs +1 -0
- package/atoms/Prefetch/AbstractPrefetch.cjs.map +7 -0
- package/atoms/Prefetch/AbstractPrefetch.js +15 -21
- package/atoms/Prefetch/AbstractPrefetch.js.map +7 -0
- package/atoms/Prefetch/PrefetchWhenOver.cjs +1 -0
- package/atoms/Prefetch/PrefetchWhenOver.cjs.map +7 -0
- package/atoms/Prefetch/PrefetchWhenOver.js +5 -10
- package/atoms/Prefetch/PrefetchWhenOver.js.map +7 -0
- package/atoms/Prefetch/PrefetchWhenVisible.cjs +1 -0
- package/atoms/Prefetch/PrefetchWhenVisible.cjs.map +7 -0
- package/atoms/Prefetch/PrefetchWhenVisible.js +5 -10
- package/atoms/Prefetch/PrefetchWhenVisible.js.map +7 -0
- package/atoms/Prefetch/index.cjs +1 -0
- package/atoms/Prefetch/index.cjs.map +7 -0
- package/atoms/Prefetch/index.js +1 -0
- package/atoms/Prefetch/index.js.map +7 -0
- package/atoms/ScrollAnimation/AbstractScrollAnimation.cjs +1 -0
- package/atoms/ScrollAnimation/AbstractScrollAnimation.cjs.map +7 -0
- package/atoms/ScrollAnimation/AbstractScrollAnimation.js +25 -30
- package/atoms/ScrollAnimation/AbstractScrollAnimation.js.map +7 -0
- package/atoms/ScrollAnimation/ScrollAnimation.cjs +1 -0
- package/atoms/ScrollAnimation/ScrollAnimation.cjs.map +7 -0
- package/atoms/ScrollAnimation/ScrollAnimation.js +6 -11
- package/atoms/ScrollAnimation/ScrollAnimation.js.map +7 -0
- package/atoms/ScrollAnimation/ScrollAnimationChild.cjs +9 -11
- package/atoms/ScrollAnimation/ScrollAnimationChild.cjs.map +7 -0
- package/atoms/ScrollAnimation/ScrollAnimationChild.js +24 -32
- package/atoms/ScrollAnimation/ScrollAnimationChild.js.map +7 -0
- package/atoms/ScrollAnimation/ScrollAnimationChildWithEase.cjs +1 -0
- package/atoms/ScrollAnimation/ScrollAnimationChildWithEase.cjs.map +7 -0
- package/atoms/ScrollAnimation/ScrollAnimationChildWithEase.js +5 -10
- package/atoms/ScrollAnimation/ScrollAnimationChildWithEase.js.map +7 -0
- package/atoms/ScrollAnimation/ScrollAnimationParent.cjs +1 -0
- package/atoms/ScrollAnimation/ScrollAnimationParent.cjs.map +7 -0
- package/atoms/ScrollAnimation/ScrollAnimationParent.js +7 -12
- package/atoms/ScrollAnimation/ScrollAnimationParent.js.map +7 -0
- package/atoms/ScrollAnimation/ScrollAnimationWithEase.cjs +1 -0
- package/atoms/ScrollAnimation/ScrollAnimationWithEase.cjs.map +7 -0
- package/atoms/ScrollAnimation/ScrollAnimationWithEase.js +5 -10
- package/atoms/ScrollAnimation/ScrollAnimationWithEase.js.map +7 -0
- package/atoms/ScrollAnimation/animationScrollWithEase.cjs +12 -16
- package/atoms/ScrollAnimation/animationScrollWithEase.cjs.map +7 -0
- package/atoms/ScrollAnimation/animationScrollWithEase.js +12 -17
- package/atoms/ScrollAnimation/animationScrollWithEase.js.map +7 -0
- package/atoms/ScrollAnimation/index.cjs +1 -0
- package/atoms/ScrollAnimation/index.cjs.map +7 -0
- package/atoms/ScrollAnimation/index.js +1 -0
- package/atoms/ScrollAnimation/index.js.map +7 -0
- package/atoms/ScrollReveal/ScrollReveal.cjs +2 -2
- package/atoms/ScrollReveal/ScrollReveal.cjs.map +7 -0
- package/atoms/ScrollReveal/ScrollReveal.js +24 -31
- package/atoms/ScrollReveal/ScrollReveal.js.map +7 -0
- package/atoms/ScrollReveal/index.cjs +1 -0
- package/atoms/ScrollReveal/index.cjs.map +7 -0
- package/atoms/ScrollReveal/index.js +1 -0
- package/atoms/ScrollReveal/index.js.map +7 -0
- package/atoms/index.cjs +1 -0
- package/atoms/index.cjs.map +7 -0
- package/atoms/index.js +1 -0
- package/atoms/index.js.map +7 -0
- package/decorators/index.cjs +1 -0
- package/decorators/index.cjs.map +7 -0
- package/decorators/index.js +1 -0
- package/decorators/index.js.map +7 -0
- package/decorators/withTransition.cjs +18 -27
- package/decorators/withTransition.cjs.map +7 -0
- package/decorators/withTransition.js +19 -29
- package/decorators/withTransition.js.map +7 -0
- package/index.cjs +1 -0
- package/index.cjs.map +7 -0
- package/index.js +1 -0
- package/index.js.map +7 -0
- package/molecules/Accordion/Accordion.cjs +1 -0
- package/molecules/Accordion/Accordion.cjs.map +7 -0
- package/molecules/Accordion/Accordion.js +7 -12
- package/molecules/Accordion/Accordion.js.map +7 -0
- package/molecules/Accordion/AccordionCore.cjs +1 -0
- package/molecules/Accordion/AccordionCore.cjs.map +7 -0
- package/molecules/Accordion/AccordionCore.js +12 -17
- package/molecules/Accordion/AccordionCore.js.map +7 -0
- package/molecules/Accordion/AccordionItem.cjs +2 -2
- package/molecules/Accordion/AccordionItem.cjs.map +7 -0
- package/molecules/Accordion/AccordionItem.js +23 -30
- package/molecules/Accordion/AccordionItem.js.map +7 -0
- package/molecules/Accordion/index.cjs +1 -0
- package/molecules/Accordion/index.cjs.map +7 -0
- package/molecules/Accordion/index.js +1 -0
- package/molecules/Accordion/index.js.map +7 -0
- package/molecules/Menu/Menu.cjs +1 -0
- package/molecules/Menu/Menu.cjs.map +7 -0
- package/molecules/Menu/Menu.js +17 -23
- package/molecules/Menu/Menu.js.map +7 -0
- package/molecules/Menu/MenuBtn.cjs +2 -4
- package/molecules/Menu/MenuBtn.cjs.map +7 -0
- package/molecules/Menu/MenuBtn.js +5 -13
- package/molecules/Menu/MenuBtn.js.map +7 -0
- package/molecules/Menu/MenuList.cjs +3 -5
- package/molecules/Menu/MenuList.cjs.map +7 -0
- package/molecules/Menu/MenuList.d.ts +1 -1
- package/molecules/Menu/MenuList.js +13 -22
- package/molecules/Menu/MenuList.js.map +7 -0
- package/molecules/Menu/index.cjs +1 -0
- package/molecules/Menu/index.cjs.map +7 -0
- package/molecules/Menu/index.js +1 -0
- package/molecules/Menu/index.js.map +7 -0
- package/molecules/Modal/Modal.cjs +8 -15
- package/molecules/Modal/Modal.cjs.map +7 -0
- package/molecules/Modal/Modal.d.ts +1 -1
- package/molecules/Modal/Modal.js +34 -47
- package/molecules/Modal/Modal.js.map +7 -0
- package/molecules/Modal/ModalWithTransition.cjs +1 -0
- package/molecules/Modal/ModalWithTransition.cjs.map +7 -0
- package/molecules/Modal/ModalWithTransition.js +26 -31
- package/molecules/Modal/ModalWithTransition.js.map +7 -0
- package/molecules/Modal/index.cjs +1 -0
- package/molecules/Modal/index.cjs.map +7 -0
- package/molecules/Modal/index.js +1 -0
- package/molecules/Modal/index.js.map +7 -0
- package/molecules/Panel/Panel.cjs +3 -6
- package/molecules/Panel/Panel.cjs.map +7 -0
- package/molecules/Panel/Panel.js +20 -30
- package/molecules/Panel/Panel.js.map +7 -0
- package/molecules/Panel/index.cjs +1 -0
- package/molecules/Panel/index.cjs.map +7 -0
- package/molecules/Panel/index.js +1 -0
- package/molecules/Panel/index.js.map +7 -0
- package/molecules/Slider/AbstractSliderChild.cjs +1 -0
- package/molecules/Slider/AbstractSliderChild.cjs.map +7 -0
- package/molecules/Slider/AbstractSliderChild.js +4 -9
- package/molecules/Slider/AbstractSliderChild.js.map +7 -0
- package/molecules/Slider/Slider.cjs +14 -16
- package/molecules/Slider/Slider.cjs.map +7 -0
- package/molecules/Slider/Slider.js +30 -38
- package/molecules/Slider/Slider.js.map +7 -0
- package/molecules/Slider/SliderBtn.cjs +1 -0
- package/molecules/Slider/SliderBtn.cjs.map +7 -0
- package/molecules/Slider/SliderBtn.js +8 -13
- package/molecules/Slider/SliderBtn.js.map +7 -0
- package/molecules/Slider/SliderCount.cjs +1 -0
- package/molecules/Slider/SliderCount.cjs.map +7 -0
- package/molecules/Slider/SliderCount.js +5 -10
- package/molecules/Slider/SliderCount.js.map +7 -0
- package/molecules/Slider/SliderDots.cjs +2 -4
- package/molecules/Slider/SliderDots.cjs.map +7 -0
- package/molecules/Slider/SliderDots.js +6 -14
- package/molecules/Slider/SliderDots.js.map +7 -0
- package/molecules/Slider/SliderDrag.cjs +1 -0
- package/molecules/Slider/SliderDrag.cjs.map +7 -0
- package/molecules/Slider/SliderDrag.js +11 -16
- package/molecules/Slider/SliderDrag.js.map +7 -0
- package/molecules/Slider/SliderItem.cjs +5 -7
- package/molecules/Slider/SliderItem.cjs.map +7 -0
- package/molecules/Slider/SliderItem.js +9 -17
- package/molecules/Slider/SliderItem.js.map +7 -0
- package/molecules/Slider/SliderProgress.cjs +1 -0
- package/molecules/Slider/SliderProgress.cjs.map +7 -0
- package/molecules/Slider/SliderProgress.js +5 -10
- package/molecules/Slider/SliderProgress.js.map +7 -0
- package/molecules/Slider/index.cjs +1 -0
- package/molecules/Slider/index.cjs.map +7 -0
- package/molecules/Slider/index.js +1 -0
- package/molecules/Slider/index.js.map +7 -0
- package/molecules/Sticky/Sticky.cjs +4 -6
- package/molecules/Sticky/Sticky.cjs.map +7 -0
- package/molecules/Sticky/Sticky.js +25 -34
- package/molecules/Sticky/Sticky.js.map +7 -0
- package/molecules/Sticky/index.cjs +1 -0
- package/molecules/Sticky/index.cjs.map +7 -0
- package/molecules/Sticky/index.js +1 -0
- package/molecules/Sticky/index.js.map +7 -0
- package/molecules/TableOfContent/TableOfContent.cjs +1 -0
- package/molecules/TableOfContent/TableOfContent.cjs.map +7 -0
- package/molecules/TableOfContent/TableOfContent.js +12 -17
- package/molecules/TableOfContent/TableOfContent.js.map +7 -0
- package/molecules/TableOfContent/TableOfContentAnchor.cjs +2 -4
- package/molecules/TableOfContent/TableOfContentAnchor.cjs.map +7 -0
- package/molecules/TableOfContent/TableOfContentAnchor.js +12 -20
- package/molecules/TableOfContent/TableOfContentAnchor.js.map +7 -0
- package/molecules/TableOfContent/index.cjs +1 -0
- package/molecules/TableOfContent/index.cjs.map +7 -0
- package/molecules/TableOfContent/index.js +1 -0
- package/molecules/TableOfContent/index.js.map +7 -0
- package/molecules/Tabs/Tabs.cjs +2 -4
- package/molecules/Tabs/Tabs.cjs.map +7 -0
- package/molecules/Tabs/Tabs.js +23 -31
- package/molecules/Tabs/Tabs.js.map +7 -0
- package/molecules/Tabs/index.cjs +1 -0
- package/molecules/Tabs/index.cjs.map +7 -0
- package/molecules/Tabs/index.js +1 -0
- package/molecules/Tabs/index.js.map +7 -0
- package/molecules/index.cjs +1 -0
- package/molecules/index.cjs.map +7 -0
- package/molecules/index.js +1 -0
- package/molecules/index.js.map +7 -0
- package/organisms/Frame/Frame.cjs +1 -0
- package/organisms/Frame/Frame.cjs.map +7 -0
- package/organisms/Frame/Frame.js +26 -32
- package/organisms/Frame/Frame.js.map +7 -0
- package/organisms/Frame/FrameAnchor.cjs +1 -0
- package/organisms/Frame/FrameAnchor.cjs.map +7 -0
- package/organisms/Frame/FrameAnchor.js +4 -9
- package/organisms/Frame/FrameAnchor.js.map +7 -0
- package/organisms/Frame/FrameForm.cjs +1 -0
- package/organisms/Frame/FrameForm.cjs.map +7 -0
- package/organisms/Frame/FrameForm.js +4 -9
- package/organisms/Frame/FrameForm.js.map +7 -0
- package/organisms/Frame/FrameTarget.cjs +3 -5
- package/organisms/Frame/FrameTarget.cjs.map +7 -0
- package/organisms/Frame/FrameTarget.d.ts +1 -1
- package/organisms/Frame/FrameTarget.js +24 -33
- package/organisms/Frame/FrameTarget.js.map +7 -0
- package/organisms/Frame/index.cjs +1 -0
- package/organisms/Frame/index.cjs.map +7 -0
- package/organisms/Frame/index.js +1 -0
- package/organisms/Frame/index.js.map +7 -0
- package/organisms/index.cjs +1 -0
- package/organisms/index.cjs.map +7 -0
- package/organisms/index.js +1 -0
- package/organisms/index.js.map +7 -0
- package/package.json +2 -2
- package/primitives/Draggable/Draggable.cjs +5 -7
- package/primitives/Draggable/Draggable.cjs.map +7 -0
- package/primitives/Draggable/Draggable.js +8 -16
- package/primitives/Draggable/Draggable.js.map +7 -0
- package/primitives/Draggable/index.cjs +1 -0
- package/primitives/Draggable/index.cjs.map +7 -0
- package/primitives/Draggable/index.js +1 -0
- package/primitives/Draggable/index.js.map +7 -0
- package/primitives/Sentinel/Sentinel.cjs +1 -0
- package/primitives/Sentinel/Sentinel.cjs.map +7 -0
- package/primitives/Sentinel/Sentinel.js +4 -9
- package/primitives/Sentinel/Sentinel.js.map +7 -0
- package/primitives/Sentinel/index.cjs +1 -0
- package/primitives/Sentinel/index.cjs.map +7 -0
- package/primitives/Sentinel/index.js +1 -0
- package/primitives/Sentinel/index.js.map +7 -0
- package/primitives/Transition/Transition.cjs +1 -0
- package/primitives/Transition/Transition.cjs.map +7 -0
- package/primitives/Transition/Transition.js +4 -9
- package/primitives/Transition/Transition.js.map +7 -0
- package/primitives/Transition/index.cjs +1 -0
- package/primitives/Transition/index.cjs.map +7 -0
- package/primitives/Transition/index.js +1 -0
- package/primitives/Transition/index.js.map +7 -0
- package/primitives/index.cjs +1 -0
- package/primitives/index.cjs.map +7 -0
- package/primitives/index.js +1 -0
- package/primitives/index.js.map +7 -0
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../packages/ui/atoms/ScrollAnimation/ScrollAnimationChildWithEase.ts"],
|
|
4
|
+
"sourcesContent": ["import type { BaseConfig } from '@studiometa/js-toolkit';\nimport { ScrollAnimationChild } from './ScrollAnimationChild.js';\nimport { animationScrollWithEase } from './animationScrollWithEase.js';\n\n/**\n * ScrollAnimationChild class.\n */\nexport class ScrollAnimationChildWithEase extends animationScrollWithEase(ScrollAnimationChild) {\n /**\n * Config.\n */\n static config: BaseConfig = {\n ...ScrollAnimationChild.config,\n name: 'ScrollAnimationChildWithEase',\n };\n}\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AACA,kCAAqC;AACrC,qCAAwC;AAKjC,IAAM,+BAAN,kBAA2C,wDAAwB,gDAAoB,EAAE;AAQhG;AAJE,cAJW,8BAIJ,UAAqB;AAAA,EAC1B,GAAG,iDAAqB;AAAA,EACxB,MAAM;AACR;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -1,17 +1,12 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3
|
-
var __publicField = (obj, key, value) => {
|
|
4
|
-
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
5
|
-
return value;
|
|
6
|
-
};
|
|
7
1
|
import { ScrollAnimationChild } from "./ScrollAnimationChild.js";
|
|
8
2
|
import { animationScrollWithEase } from "./animationScrollWithEase.js";
|
|
9
3
|
class ScrollAnimationChildWithEase extends animationScrollWithEase(ScrollAnimationChild) {
|
|
4
|
+
static config = {
|
|
5
|
+
...ScrollAnimationChild.config,
|
|
6
|
+
name: "ScrollAnimationChildWithEase"
|
|
7
|
+
};
|
|
10
8
|
}
|
|
11
|
-
__publicField(ScrollAnimationChildWithEase, "config", {
|
|
12
|
-
...ScrollAnimationChild.config,
|
|
13
|
-
name: "ScrollAnimationChildWithEase"
|
|
14
|
-
});
|
|
15
9
|
export {
|
|
16
10
|
ScrollAnimationChildWithEase
|
|
17
11
|
};
|
|
12
|
+
//# sourceMappingURL=ScrollAnimationChildWithEase.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../packages/ui/atoms/ScrollAnimation/ScrollAnimationChildWithEase.ts"],
|
|
4
|
+
"sourcesContent": ["import type { BaseConfig } from '@studiometa/js-toolkit';\nimport { ScrollAnimationChild } from './ScrollAnimationChild.js';\nimport { animationScrollWithEase } from './animationScrollWithEase.js';\n\n/**\n * ScrollAnimationChild class.\n */\nexport class ScrollAnimationChildWithEase extends animationScrollWithEase(ScrollAnimationChild) {\n /**\n * Config.\n */\n static config: BaseConfig = {\n ...ScrollAnimationChild.config,\n name: 'ScrollAnimationChildWithEase',\n };\n}\n"],
|
|
5
|
+
"mappings": "AACA,SAAS,4BAA4B;AACrC,SAAS,+BAA+B;AAKjC,MAAM,qCAAqC,wBAAwB,oBAAoB,EAAE;AAAA,EAI9F,OAAO,SAAqB;AAAA,IAC1B,GAAG,qBAAqB;AAAA,IACxB,MAAM;AAAA,EACR;AACF;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../packages/ui/atoms/ScrollAnimation/ScrollAnimationParent.ts"],
|
|
4
|
+
"sourcesContent": ["import { Base, ScrollInViewProps, withScrolledInView } from '@studiometa/js-toolkit';\nimport type { BaseConfig, BaseProps } from '@studiometa/js-toolkit';\nimport { ScrollAnimationChild } from './ScrollAnimationChild.js';\n\nexport interface ScrollAnimationParentProps extends BaseProps {\n $children: {\n ScrollAnimationChild: ScrollAnimationChild[];\n };\n}\n\n/**\n * ScrollAnimationParent class.\n */\nexport class ScrollAnimationParent<T extends BaseProps = BaseProps> extends withScrolledInView(\n Base,\n {},\n)<T & ScrollAnimationParentProps> {\n /**\n * Config.\n */\n static config: BaseConfig = {\n name: 'ScrollAnimationParent',\n components: {\n ScrollAnimationChild,\n },\n };\n\n /**\n * Scrolled in view hook.\n */\n scrolledInView(props: ScrollInViewProps) {\n this.$children.ScrollAnimationChild.forEach((child) => {\n child.scrolledInView(props);\n });\n }\n}\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,wBAA4D;AAE5D,kCAAqC;AAW9B,IAAM,wBAAN,kBAAqE;AAAA,EAC1E;AAAA,EACA,CAAC;AACH,EAAkC;AAAA,EAchC,eAAe,OAA0B;AACvC,SAAK,UAAU,qBAAqB,QAAQ,CAAC,UAAU;AACrD,YAAM,eAAe,KAAK;AAAA,IAC5B,CAAC;AAAA,EACH;AACF;AAfE,cAPW,uBAOJ,UAAqB;AAAA,EAC1B,MAAM;AAAA,EACN,YAAY;AAAA,IACV;AAAA,EACF;AACF;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -1,27 +1,22 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3
|
-
var __publicField = (obj, key, value) => {
|
|
4
|
-
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
5
|
-
return value;
|
|
6
|
-
};
|
|
7
1
|
import { Base, withScrolledInView } from "@studiometa/js-toolkit";
|
|
8
2
|
import { ScrollAnimationChild } from "./ScrollAnimationChild.js";
|
|
9
3
|
class ScrollAnimationParent extends withScrolledInView(
|
|
10
4
|
Base,
|
|
11
5
|
{}
|
|
12
6
|
) {
|
|
7
|
+
static config = {
|
|
8
|
+
name: "ScrollAnimationParent",
|
|
9
|
+
components: {
|
|
10
|
+
ScrollAnimationChild
|
|
11
|
+
}
|
|
12
|
+
};
|
|
13
13
|
scrolledInView(props) {
|
|
14
14
|
this.$children.ScrollAnimationChild.forEach((child) => {
|
|
15
15
|
child.scrolledInView(props);
|
|
16
16
|
});
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
|
-
__publicField(ScrollAnimationParent, "config", {
|
|
20
|
-
name: "ScrollAnimationParent",
|
|
21
|
-
components: {
|
|
22
|
-
ScrollAnimationChild
|
|
23
|
-
}
|
|
24
|
-
});
|
|
25
19
|
export {
|
|
26
20
|
ScrollAnimationParent
|
|
27
21
|
};
|
|
22
|
+
//# sourceMappingURL=ScrollAnimationParent.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../packages/ui/atoms/ScrollAnimation/ScrollAnimationParent.ts"],
|
|
4
|
+
"sourcesContent": ["import { Base, ScrollInViewProps, withScrolledInView } from '@studiometa/js-toolkit';\nimport type { BaseConfig, BaseProps } from '@studiometa/js-toolkit';\nimport { ScrollAnimationChild } from './ScrollAnimationChild.js';\n\nexport interface ScrollAnimationParentProps extends BaseProps {\n $children: {\n ScrollAnimationChild: ScrollAnimationChild[];\n };\n}\n\n/**\n * ScrollAnimationParent class.\n */\nexport class ScrollAnimationParent<T extends BaseProps = BaseProps> extends withScrolledInView(\n Base,\n {},\n)<T & ScrollAnimationParentProps> {\n /**\n * Config.\n */\n static config: BaseConfig = {\n name: 'ScrollAnimationParent',\n components: {\n ScrollAnimationChild,\n },\n };\n\n /**\n * Scrolled in view hook.\n */\n scrolledInView(props: ScrollInViewProps) {\n this.$children.ScrollAnimationChild.forEach((child) => {\n child.scrolledInView(props);\n });\n }\n}\n"],
|
|
5
|
+
"mappings": "AAAA,SAAS,MAAyB,0BAA0B;AAE5D,SAAS,4BAA4B;AAW9B,MAAM,8BAA+D;AAAA,EAC1E;AAAA,EACA,CAAC;AACH,EAAkC;AAAA,EAIhC,OAAO,SAAqB;AAAA,IAC1B,MAAM;AAAA,IACN,YAAY;AAAA,MACV;AAAA,IACF;AAAA,EACF;AAAA,EAKA,eAAe,OAA0B;AACvC,SAAK,UAAU,qBAAqB,QAAQ,CAAC,UAAU;AACrD,YAAM,eAAe,KAAK;AAAA,IAC5B,CAAC;AAAA,EACH;AACF;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../packages/ui/atoms/ScrollAnimation/ScrollAnimationWithEase.ts"],
|
|
4
|
+
"sourcesContent": ["import { ScrollAnimation } from './ScrollAnimation.js';\nimport { animationScrollWithEase } from './animationScrollWithEase.js';\n\n/**\n * ScrollAnimation class.\n */\nexport class ScrollAnimationWithEase extends animationScrollWithEase(ScrollAnimation) {\n /**\n * Config.\n */\n static config = {\n ...ScrollAnimation.config,\n name: 'ScrollAnimationWithEase',\n };\n}\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,6BAAgC;AAChC,qCAAwC;AAKjC,IAAM,0BAAN,kBAAsC,wDAAwB,sCAAe,EAAE;AAQtF;AAJE,cAJW,yBAIJ,UAAS;AAAA,EACd,GAAG,uCAAgB;AAAA,EACnB,MAAM;AACR;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -1,17 +1,12 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3
|
-
var __publicField = (obj, key, value) => {
|
|
4
|
-
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
5
|
-
return value;
|
|
6
|
-
};
|
|
7
1
|
import { ScrollAnimation } from "./ScrollAnimation.js";
|
|
8
2
|
import { animationScrollWithEase } from "./animationScrollWithEase.js";
|
|
9
3
|
class ScrollAnimationWithEase extends animationScrollWithEase(ScrollAnimation) {
|
|
4
|
+
static config = {
|
|
5
|
+
...ScrollAnimation.config,
|
|
6
|
+
name: "ScrollAnimationWithEase"
|
|
7
|
+
};
|
|
10
8
|
}
|
|
11
|
-
__publicField(ScrollAnimationWithEase, "config", {
|
|
12
|
-
...ScrollAnimation.config,
|
|
13
|
-
name: "ScrollAnimationWithEase"
|
|
14
|
-
});
|
|
15
9
|
export {
|
|
16
10
|
ScrollAnimationWithEase
|
|
17
11
|
};
|
|
12
|
+
//# sourceMappingURL=ScrollAnimationWithEase.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../packages/ui/atoms/ScrollAnimation/ScrollAnimationWithEase.ts"],
|
|
4
|
+
"sourcesContent": ["import { ScrollAnimation } from './ScrollAnimation.js';\nimport { animationScrollWithEase } from './animationScrollWithEase.js';\n\n/**\n * ScrollAnimation class.\n */\nexport class ScrollAnimationWithEase extends animationScrollWithEase(ScrollAnimation) {\n /**\n * Config.\n */\n static config = {\n ...ScrollAnimation.config,\n name: 'ScrollAnimationWithEase',\n };\n}\n"],
|
|
5
|
+
"mappings": "AAAA,SAAS,uBAAuB;AAChC,SAAS,+BAA+B;AAKjC,MAAM,gCAAgC,wBAAwB,eAAe,EAAE;AAAA,EAIpF,OAAO,SAAS;AAAA,IACd,GAAG,gBAAgB;AAAA,IACnB,MAAM;AAAA,EACR;AACF;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -2,7 +2,6 @@ var __defProp = Object.defineProperty;
|
|
|
2
2
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
3
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
4
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
6
5
|
var __export = (target, all) => {
|
|
7
6
|
for (var name in all)
|
|
8
7
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
@@ -16,10 +15,6 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
16
15
|
return to;
|
|
17
16
|
};
|
|
18
17
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
var __publicField = (obj, key, value) => {
|
|
20
|
-
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
21
|
-
return value;
|
|
22
|
-
};
|
|
23
18
|
|
|
24
19
|
// packages/ui/atoms/ScrollAnimation/animationScrollWithEase.ts
|
|
25
20
|
var animationScrollWithEase_exports = {};
|
|
@@ -34,6 +29,17 @@ var eases = Object.fromEntries(
|
|
|
34
29
|
);
|
|
35
30
|
function animationScrollWithEase(ScrollAnimation) {
|
|
36
31
|
class AnimationScrollWithEase extends ScrollAnimation {
|
|
32
|
+
static config = {
|
|
33
|
+
...ScrollAnimation.config,
|
|
34
|
+
name: `${ScrollAnimation.config.name}WithEase`,
|
|
35
|
+
options: {
|
|
36
|
+
...ScrollAnimation.config.options,
|
|
37
|
+
ease: {
|
|
38
|
+
type: String,
|
|
39
|
+
default: "outExpo"
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
};
|
|
37
43
|
render(progress) {
|
|
38
44
|
if (typeof eases[this.$options.ease] === "function") {
|
|
39
45
|
progress = eases[this.$options.ease](progress);
|
|
@@ -41,17 +47,7 @@ function animationScrollWithEase(ScrollAnimation) {
|
|
|
41
47
|
super.render(progress);
|
|
42
48
|
}
|
|
43
49
|
}
|
|
44
|
-
__publicField(AnimationScrollWithEase, "config", {
|
|
45
|
-
...ScrollAnimation.config,
|
|
46
|
-
name: `${ScrollAnimation.config.name}WithEase`,
|
|
47
|
-
options: {
|
|
48
|
-
...ScrollAnimation.config.options,
|
|
49
|
-
ease: {
|
|
50
|
-
type: String,
|
|
51
|
-
default: "outExpo"
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
});
|
|
55
50
|
return AnimationScrollWithEase;
|
|
56
51
|
}
|
|
57
52
|
if (module.exports.default) module.exports = module.exports.default;
|
|
53
|
+
//# sourceMappingURL=animationScrollWithEase.cjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../packages/ui/atoms/ScrollAnimation/animationScrollWithEase.ts"],
|
|
4
|
+
"sourcesContent": ["import type { BaseConfig, BaseProps, BaseDecorator, BaseInterface } from '@studiometa/js-toolkit';\nimport { ease } from '@studiometa/js-toolkit/utils';\nimport type { AbstractScrollAnimation } from './AbstractScrollAnimation.js';\n\nconst regex = /ease([A-Z])/;\nconst eases = Object.fromEntries(\n Object.entries(ease)\n .filter(([name]) => name.startsWith('ease'))\n .map(([name, value]) => [name.replace(regex, (match, $1) => $1.toLowerCase()), value]),\n);\n\nexport interface AnimationScrollWithEaseProps extends BaseProps {\n $options: {\n ease: string;\n }\n}\n\n// eslint-disable-next-line @typescript-eslint/no-empty-interface\nexport interface AnimationScrollWithEaseInterface extends BaseInterface {}\n\n/**\n * Extend a `ScrollAnimation` component to use easings.\n */\nexport function animationScrollWithEase<\n S extends AbstractScrollAnimation,\n>(ScrollAnimation: typeof AbstractScrollAnimation): BaseDecorator<AnimationScrollWithEaseInterface, S, AnimationScrollWithEaseProps> {\n class AnimationScrollWithEase extends ScrollAnimation<AnimationScrollWithEaseProps> {\n /**\n * Config.\n */\n static config : BaseConfig = {\n ...ScrollAnimation.config,\n name: `${ScrollAnimation.config.name}WithEase`,\n options: {\n ...ScrollAnimation.config.options,\n ease: {\n type: String,\n default: 'outExpo',\n },\n },\n };\n\n /**\n * Eases the progress value.\n */\n render(progress:number) {\n if (typeof eases[this.$options.ease] === 'function') {\n // eslint-disable-next-line no-param-reassign\n progress = eases[this.$options.ease](progress);\n }\n\n super.render(progress);\n }\n }\n\n // @ts-ignore\n return AnimationScrollWithEase;\n}\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AACA,mBAAqB;AAGrB,IAAM,QAAQ;AACd,IAAM,QAAQ,OAAO;AAAA,EACnB,OAAO,QAAQ,iBAAI,EAChB,OAAO,CAAC,CAAC,IAAI,MAAM,KAAK,WAAW,MAAM,CAAC,EAC1C,IAAI,CAAC,CAAC,MAAM,KAAK,MAAM,CAAC,KAAK,QAAQ,OAAO,CAAC,OAAO,OAAO,GAAG,YAAY,CAAC,GAAG,KAAK,CAAC;AACzF;AAcO,SAAS,wBAEd,iBAAmI;AACnI,QAAM,gCAAgC,gBAA8C;AAAA,IAIlF,OAAO,SAAsB;AAAA,MAC3B,GAAG,gBAAgB;AAAA,MACnB,MAAM,GAAG,gBAAgB,OAAO;AAAA,MAChC,SAAS;AAAA,QACP,GAAG,gBAAgB,OAAO;AAAA,QAC1B,MAAM;AAAA,UACJ,MAAM;AAAA,UACN,SAAS;AAAA,QACX;AAAA,MACF;AAAA,IACF;AAAA,IAKA,OAAO,UAAiB;AACtB,UAAI,OAAO,MAAM,KAAK,SAAS,UAAU,YAAY;AAEnD,mBAAW,MAAM,KAAK,SAAS,MAAM,QAAQ;AAAA,MAC/C;AAEA,YAAM,OAAO,QAAQ;AAAA,IACvB;AAAA,EACF;AAGA,SAAO;AACT;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3
|
-
var __publicField = (obj, key, value) => {
|
|
4
|
-
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
5
|
-
return value;
|
|
6
|
-
};
|
|
7
1
|
import { ease } from "@studiometa/js-toolkit/utils";
|
|
8
2
|
const regex = /ease([A-Z])/;
|
|
9
3
|
const eases = Object.fromEntries(
|
|
@@ -11,6 +5,17 @@ const eases = Object.fromEntries(
|
|
|
11
5
|
);
|
|
12
6
|
function animationScrollWithEase(ScrollAnimation) {
|
|
13
7
|
class AnimationScrollWithEase extends ScrollAnimation {
|
|
8
|
+
static config = {
|
|
9
|
+
...ScrollAnimation.config,
|
|
10
|
+
name: `${ScrollAnimation.config.name}WithEase`,
|
|
11
|
+
options: {
|
|
12
|
+
...ScrollAnimation.config.options,
|
|
13
|
+
ease: {
|
|
14
|
+
type: String,
|
|
15
|
+
default: "outExpo"
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
};
|
|
14
19
|
render(progress) {
|
|
15
20
|
if (typeof eases[this.$options.ease] === "function") {
|
|
16
21
|
progress = eases[this.$options.ease](progress);
|
|
@@ -18,19 +23,9 @@ function animationScrollWithEase(ScrollAnimation) {
|
|
|
18
23
|
super.render(progress);
|
|
19
24
|
}
|
|
20
25
|
}
|
|
21
|
-
__publicField(AnimationScrollWithEase, "config", {
|
|
22
|
-
...ScrollAnimation.config,
|
|
23
|
-
name: `${ScrollAnimation.config.name}WithEase`,
|
|
24
|
-
options: {
|
|
25
|
-
...ScrollAnimation.config.options,
|
|
26
|
-
ease: {
|
|
27
|
-
type: String,
|
|
28
|
-
default: "outExpo"
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
});
|
|
32
26
|
return AnimationScrollWithEase;
|
|
33
27
|
}
|
|
34
28
|
export {
|
|
35
29
|
animationScrollWithEase
|
|
36
30
|
};
|
|
31
|
+
//# sourceMappingURL=animationScrollWithEase.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../packages/ui/atoms/ScrollAnimation/animationScrollWithEase.ts"],
|
|
4
|
+
"sourcesContent": ["import type { BaseConfig, BaseProps, BaseDecorator, BaseInterface } from '@studiometa/js-toolkit';\nimport { ease } from '@studiometa/js-toolkit/utils';\nimport type { AbstractScrollAnimation } from './AbstractScrollAnimation.js';\n\nconst regex = /ease([A-Z])/;\nconst eases = Object.fromEntries(\n Object.entries(ease)\n .filter(([name]) => name.startsWith('ease'))\n .map(([name, value]) => [name.replace(regex, (match, $1) => $1.toLowerCase()), value]),\n);\n\nexport interface AnimationScrollWithEaseProps extends BaseProps {\n $options: {\n ease: string;\n }\n}\n\n// eslint-disable-next-line @typescript-eslint/no-empty-interface\nexport interface AnimationScrollWithEaseInterface extends BaseInterface {}\n\n/**\n * Extend a `ScrollAnimation` component to use easings.\n */\nexport function animationScrollWithEase<\n S extends AbstractScrollAnimation,\n>(ScrollAnimation: typeof AbstractScrollAnimation): BaseDecorator<AnimationScrollWithEaseInterface, S, AnimationScrollWithEaseProps> {\n class AnimationScrollWithEase extends ScrollAnimation<AnimationScrollWithEaseProps> {\n /**\n * Config.\n */\n static config : BaseConfig = {\n ...ScrollAnimation.config,\n name: `${ScrollAnimation.config.name}WithEase`,\n options: {\n ...ScrollAnimation.config.options,\n ease: {\n type: String,\n default: 'outExpo',\n },\n },\n };\n\n /**\n * Eases the progress value.\n */\n render(progress:number) {\n if (typeof eases[this.$options.ease] === 'function') {\n // eslint-disable-next-line no-param-reassign\n progress = eases[this.$options.ease](progress);\n }\n\n super.render(progress);\n }\n }\n\n // @ts-ignore\n return AnimationScrollWithEase;\n}\n"],
|
|
5
|
+
"mappings": "AACA,SAAS,YAAY;AAGrB,MAAM,QAAQ;AACd,MAAM,QAAQ,OAAO;AAAA,EACnB,OAAO,QAAQ,IAAI,EAChB,OAAO,CAAC,CAAC,IAAI,MAAM,KAAK,WAAW,MAAM,CAAC,EAC1C,IAAI,CAAC,CAAC,MAAM,KAAK,MAAM,CAAC,KAAK,QAAQ,OAAO,CAAC,OAAO,OAAO,GAAG,YAAY,CAAC,GAAG,KAAK,CAAC;AACzF;AAcO,SAAS,wBAEd,iBAAmI;AACnI,QAAM,gCAAgC,gBAA8C;AAAA,IAIlF,OAAO,SAAsB;AAAA,MAC3B,GAAG,gBAAgB;AAAA,MACnB,MAAM,GAAG,gBAAgB,OAAO;AAAA,MAChC,SAAS;AAAA,QACP,GAAG,gBAAgB,OAAO;AAAA,QAC1B,MAAM;AAAA,UACJ,MAAM;AAAA,UACN,SAAS;AAAA,QACX;AAAA,MACF;AAAA,IACF;AAAA,IAKA,OAAO,UAAiB;AACtB,UAAI,OAAO,MAAM,KAAK,SAAS,UAAU,YAAY;AAEnD,mBAAW,MAAM,KAAK,SAAS,MAAM,QAAQ;AAAA,MAC/C;AAEA,YAAM,OAAO,QAAQ;AAAA,IACvB;AAAA,EACF;AAGA,SAAO;AACT;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -24,3 +24,4 @@ __reExport(ScrollAnimation_exports, require("./ScrollAnimationChild.cjs"), modul
|
|
|
24
24
|
__reExport(ScrollAnimation_exports, require("./ScrollAnimationChildWithEase.cjs"), module.exports);
|
|
25
25
|
__reExport(ScrollAnimation_exports, require("./ScrollAnimationParent.cjs"), module.exports);
|
|
26
26
|
if (module.exports.default) module.exports = module.exports.default;
|
|
27
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../packages/ui/atoms/ScrollAnimation/index.ts"],
|
|
4
|
+
"sourcesContent": ["export * from './AbstractScrollAnimation.js';\nexport * from './animationScrollWithEase.js';\nexport * from './ScrollAnimation.js';\nexport * from './ScrollAnimationWithEase.js';\nexport * from './ScrollAnimationChild.js';\nexport * from './ScrollAnimationChildWithEase.js';\nexport * from './ScrollAnimationParent.js';\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;AAAA;AAAA;AAAA,oCAAc,0CAAd;AACA,oCAAc,0CADd;AAEA,oCAAc,kCAFd;AAGA,oCAAc,0CAHd;AAIA,oCAAc,uCAJd;AAKA,oCAAc,+CALd;AAMA,oCAAc,wCANd;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../packages/ui/atoms/ScrollAnimation/index.ts"],
|
|
4
|
+
"sourcesContent": ["export * from './AbstractScrollAnimation.js';\nexport * from './animationScrollWithEase.js';\nexport * from './ScrollAnimation.js';\nexport * from './ScrollAnimationWithEase.js';\nexport * from './ScrollAnimationChild.js';\nexport * from './ScrollAnimationChildWithEase.js';\nexport * from './ScrollAnimationParent.js';\n"],
|
|
5
|
+
"mappings": "AAAA,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -33,8 +33,7 @@ var _ScrollReveal = class extends (0, import_js_toolkit.withMountWhenInView)(
|
|
|
33
33
|
import_primitives.Transition
|
|
34
34
|
) {
|
|
35
35
|
get target() {
|
|
36
|
-
|
|
37
|
-
return (_a = this.$refs.target) != null ? _a : this.$el;
|
|
36
|
+
return this.$refs.target ?? this.$el;
|
|
38
37
|
}
|
|
39
38
|
mounted() {
|
|
40
39
|
if (!this.$options.repeat) {
|
|
@@ -73,3 +72,4 @@ __publicField(ScrollReveal, "config", {
|
|
|
73
72
|
});
|
|
74
73
|
__publicField(ScrollReveal, "scrollDirectionY", "NONE");
|
|
75
74
|
if (module.exports.default) module.exports = module.exports.default;
|
|
75
|
+
//# sourceMappingURL=ScrollReveal.cjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../packages/ui/atoms/ScrollReveal/ScrollReveal.ts"],
|
|
4
|
+
"sourcesContent": ["import { withMountWhenInView, useScroll, ScrollServiceProps } from '@studiometa/js-toolkit';\nimport type { BaseProps, BaseConfig } from '@studiometa/js-toolkit';\nimport { Transition } from '../../primitives/index.js';\n\nexport interface ScrollRevealProps extends BaseProps {\n $refs: {\n target?: HTMLElement;\n };\n $options: {\n repeat: boolean;\n };\n}\n\n/**\n * ScrollReveal class.\n */\nexport class ScrollReveal<T extends BaseProps = BaseProps> extends withMountWhenInView<Transition>(\n Transition,\n)<T & ScrollRevealProps> {\n /**\n * Config.\n */\n static config: BaseConfig = {\n ...Transition.config,\n name: 'ScrollReveal',\n refs: ['target'],\n options: {\n ...Transition.config.options,\n enterKeep: {\n type: Boolean,\n default: true,\n },\n repeat: Boolean,\n intersectionObserver: {\n type: Object,\n default: () => ({ threshold: [0, 1] }),\n },\n },\n };\n\n /**\n * Vertical scroll direction.\n */\n static scrollDirectionY: ScrollServiceProps['direction']['y'] = 'NONE';\n\n /**\n * Get the transition target.\n */\n get target(): HTMLElement {\n return this.$refs.target ?? this.$el;\n }\n\n /**\n * Trigger the `enter` transition on mount.\n */\n mounted() {\n if (!this.$options.repeat) {\n this.enter();\n this.$terminate();\n return;\n }\n\n const scroll = useScroll();\n\n if (!scroll.has('ScrollRevealRepeat')) {\n scroll.add('ScrollRevealRepeat', (props) => {\n ScrollReveal.scrollDirectionY = props.direction.y;\n });\n }\n\n if (ScrollReveal.scrollDirectionY !== 'UP') {\n this.enter();\n }\n }\n}\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,wBAAmE;AAEnE,wBAA2B;AAcpB,IAAM,gBAAN,kBAA4D;AAAA,EACjE;AACF,EAAyB;AAAA,EA8BvB,IAAI,SAAsB;AACxB,WAAO,KAAK,MAAM,UAAU,KAAK;AAAA,EACnC;AAAA,EAKA,UAAU;AACR,QAAI,CAAC,KAAK,SAAS,QAAQ;AACzB,WAAK,MAAM;AACX,WAAK,WAAW;AAChB;AAAA,IACF;AAEA,UAAM,aAAS,6BAAU;AAEzB,QAAI,CAAC,OAAO,IAAI,oBAAoB,GAAG;AACrC,aAAO,IAAI,sBAAsB,CAAC,UAAU;AAC1C,sBAAa,mBAAmB,MAAM,UAAU;AAAA,MAClD,CAAC;AAAA,IACH;AAEA,QAAI,cAAa,qBAAqB,MAAM;AAC1C,WAAK,MAAM;AAAA,IACb;AAAA,EACF;AACF;AA1DO,IAAM,eAAN;AAML,cANW,cAMJ,UAAqB;AAAA,EAC1B,GAAG,6BAAW;AAAA,EACd,MAAM;AAAA,EACN,MAAM,CAAC,QAAQ;AAAA,EACf,SAAS;AAAA,IACP,GAAG,6BAAW,OAAO;AAAA,IACrB,WAAW;AAAA,MACT,MAAM;AAAA,MACN,SAAS;AAAA,IACX;AAAA,IACA,QAAQ;AAAA,IACR,sBAAsB;AAAA,MACpB,MAAM;AAAA,MACN,SAAS,OAAO,EAAE,WAAW,CAAC,GAAG,CAAC,EAAE;AAAA,IACtC;AAAA,EACF;AACF;AAKA,cA3BW,cA2BJ,oBAAyD;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -1,17 +1,28 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3
|
-
var __publicField = (obj, key, value) => {
|
|
4
|
-
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
5
|
-
return value;
|
|
6
|
-
};
|
|
7
1
|
import { withMountWhenInView, useScroll } from "@studiometa/js-toolkit";
|
|
8
2
|
import { Transition } from "../../primitives/index.js";
|
|
9
|
-
|
|
3
|
+
class ScrollReveal extends withMountWhenInView(
|
|
10
4
|
Transition
|
|
11
5
|
) {
|
|
6
|
+
static config = {
|
|
7
|
+
...Transition.config,
|
|
8
|
+
name: "ScrollReveal",
|
|
9
|
+
refs: ["target"],
|
|
10
|
+
options: {
|
|
11
|
+
...Transition.config.options,
|
|
12
|
+
enterKeep: {
|
|
13
|
+
type: Boolean,
|
|
14
|
+
default: true
|
|
15
|
+
},
|
|
16
|
+
repeat: Boolean,
|
|
17
|
+
intersectionObserver: {
|
|
18
|
+
type: Object,
|
|
19
|
+
default: () => ({ threshold: [0, 1] })
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
static scrollDirectionY = "NONE";
|
|
12
24
|
get target() {
|
|
13
|
-
|
|
14
|
-
return (_a = this.$refs.target) != null ? _a : this.$el;
|
|
25
|
+
return this.$refs.target ?? this.$el;
|
|
15
26
|
}
|
|
16
27
|
mounted() {
|
|
17
28
|
if (!this.$options.repeat) {
|
|
@@ -22,33 +33,15 @@ const _ScrollReveal = class extends withMountWhenInView(
|
|
|
22
33
|
const scroll = useScroll();
|
|
23
34
|
if (!scroll.has("ScrollRevealRepeat")) {
|
|
24
35
|
scroll.add("ScrollRevealRepeat", (props) => {
|
|
25
|
-
|
|
36
|
+
ScrollReveal.scrollDirectionY = props.direction.y;
|
|
26
37
|
});
|
|
27
38
|
}
|
|
28
|
-
if (
|
|
39
|
+
if (ScrollReveal.scrollDirectionY !== "UP") {
|
|
29
40
|
this.enter();
|
|
30
41
|
}
|
|
31
42
|
}
|
|
32
|
-
}
|
|
33
|
-
let ScrollReveal = _ScrollReveal;
|
|
34
|
-
__publicField(ScrollReveal, "config", {
|
|
35
|
-
...Transition.config,
|
|
36
|
-
name: "ScrollReveal",
|
|
37
|
-
refs: ["target"],
|
|
38
|
-
options: {
|
|
39
|
-
...Transition.config.options,
|
|
40
|
-
enterKeep: {
|
|
41
|
-
type: Boolean,
|
|
42
|
-
default: true
|
|
43
|
-
},
|
|
44
|
-
repeat: Boolean,
|
|
45
|
-
intersectionObserver: {
|
|
46
|
-
type: Object,
|
|
47
|
-
default: () => ({ threshold: [0, 1] })
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
});
|
|
51
|
-
__publicField(ScrollReveal, "scrollDirectionY", "NONE");
|
|
43
|
+
}
|
|
52
44
|
export {
|
|
53
45
|
ScrollReveal
|
|
54
46
|
};
|
|
47
|
+
//# sourceMappingURL=ScrollReveal.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../packages/ui/atoms/ScrollReveal/ScrollReveal.ts"],
|
|
4
|
+
"sourcesContent": ["import { withMountWhenInView, useScroll, ScrollServiceProps } from '@studiometa/js-toolkit';\nimport type { BaseProps, BaseConfig } from '@studiometa/js-toolkit';\nimport { Transition } from '../../primitives/index.js';\n\nexport interface ScrollRevealProps extends BaseProps {\n $refs: {\n target?: HTMLElement;\n };\n $options: {\n repeat: boolean;\n };\n}\n\n/**\n * ScrollReveal class.\n */\nexport class ScrollReveal<T extends BaseProps = BaseProps> extends withMountWhenInView<Transition>(\n Transition,\n)<T & ScrollRevealProps> {\n /**\n * Config.\n */\n static config: BaseConfig = {\n ...Transition.config,\n name: 'ScrollReveal',\n refs: ['target'],\n options: {\n ...Transition.config.options,\n enterKeep: {\n type: Boolean,\n default: true,\n },\n repeat: Boolean,\n intersectionObserver: {\n type: Object,\n default: () => ({ threshold: [0, 1] }),\n },\n },\n };\n\n /**\n * Vertical scroll direction.\n */\n static scrollDirectionY: ScrollServiceProps['direction']['y'] = 'NONE';\n\n /**\n * Get the transition target.\n */\n get target(): HTMLElement {\n return this.$refs.target ?? this.$el;\n }\n\n /**\n * Trigger the `enter` transition on mount.\n */\n mounted() {\n if (!this.$options.repeat) {\n this.enter();\n this.$terminate();\n return;\n }\n\n const scroll = useScroll();\n\n if (!scroll.has('ScrollRevealRepeat')) {\n scroll.add('ScrollRevealRepeat', (props) => {\n ScrollReveal.scrollDirectionY = props.direction.y;\n });\n }\n\n if (ScrollReveal.scrollDirectionY !== 'UP') {\n this.enter();\n }\n }\n}\n"],
|
|
5
|
+
"mappings": "AAAA,SAAS,qBAAqB,iBAAqC;AAEnE,SAAS,kBAAkB;AAcpB,MAAM,qBAAsD;AAAA,EACjE;AACF,EAAyB;AAAA,EAIvB,OAAO,SAAqB;AAAA,IAC1B,GAAG,WAAW;AAAA,IACd,MAAM;AAAA,IACN,MAAM,CAAC,QAAQ;AAAA,IACf,SAAS;AAAA,MACP,GAAG,WAAW,OAAO;AAAA,MACrB,WAAW;AAAA,QACT,MAAM;AAAA,QACN,SAAS;AAAA,MACX;AAAA,MACA,QAAQ;AAAA,MACR,sBAAsB;AAAA,QACpB,MAAM;AAAA,QACN,SAAS,OAAO,EAAE,WAAW,CAAC,GAAG,CAAC,EAAE;AAAA,MACtC;AAAA,IACF;AAAA,EACF;AAAA,EAKA,OAAO,mBAAyD;AAAA,EAKhE,IAAI,SAAsB;AACxB,WAAO,KAAK,MAAM,UAAU,KAAK;AAAA,EACnC;AAAA,EAKA,UAAU;AACR,QAAI,CAAC,KAAK,SAAS,QAAQ;AACzB,WAAK,MAAM;AACX,WAAK,WAAW;AAChB;AAAA,IACF;AAEA,UAAM,SAAS,UAAU;AAEzB,QAAI,CAAC,OAAO,IAAI,oBAAoB,GAAG;AACrC,aAAO,IAAI,sBAAsB,CAAC,UAAU;AAC1C,qBAAa,mBAAmB,MAAM,UAAU;AAAA,MAClD,CAAC;AAAA,IACH;AAEA,QAAI,aAAa,qBAAqB,MAAM;AAC1C,WAAK,MAAM;AAAA,IACb;AAAA,EACF;AACF;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -18,3 +18,4 @@ var ScrollReveal_exports = {};
|
|
|
18
18
|
module.exports = __toCommonJS(ScrollReveal_exports);
|
|
19
19
|
__reExport(ScrollReveal_exports, require("./ScrollReveal.cjs"), module.exports);
|
|
20
20
|
if (module.exports.default) module.exports = module.exports.default;
|
|
21
|
+
//# sourceMappingURL=index.cjs.map
|
package/atoms/index.cjs
CHANGED
|
@@ -25,3 +25,4 @@ __reExport(atoms_exports, require("./Prefetch/index.cjs"), module.exports);
|
|
|
25
25
|
__reExport(atoms_exports, require("./ScrollAnimation/index.cjs"), module.exports);
|
|
26
26
|
__reExport(atoms_exports, require("./ScrollReveal/index.cjs"), module.exports);
|
|
27
27
|
if (module.exports.default) module.exports = module.exports.default;
|
|
28
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../packages/ui/atoms/index.ts"],
|
|
4
|
+
"sourcesContent": ["export * from './AnchorScrollTo/index.js';\nexport * from './Cursor/index.js';\nexport * from './Figure/index.js';\nexport * from './LargeText/index.js';\nexport * from './LazyInclude/index.js';\nexport * from './Prefetch/index.js';\nexport * from './ScrollAnimation/index.js';\nexport * from './ScrollReveal/index.js';\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;AAAA;AAAA;AAAA,0BAAc,uCAAd;AACA,0BAAc,+BADd;AAEA,0BAAc,+BAFd;AAGA,0BAAc,kCAHd;AAIA,0BAAc,oCAJd;AAKA,0BAAc,iCALd;AAMA,0BAAc,wCANd;AAOA,0BAAc,qCAPd;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
package/atoms/index.js
CHANGED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../packages/ui/atoms/index.ts"],
|
|
4
|
+
"sourcesContent": ["export * from './AnchorScrollTo/index.js';\nexport * from './Cursor/index.js';\nexport * from './Figure/index.js';\nexport * from './LargeText/index.js';\nexport * from './LazyInclude/index.js';\nexport * from './Prefetch/index.js';\nexport * from './ScrollAnimation/index.js';\nexport * from './ScrollReveal/index.js';\n"],
|
|
5
|
+
"mappings": "AAAA,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
package/decorators/index.cjs
CHANGED
|
@@ -18,3 +18,4 @@ var decorators_exports = {};
|
|
|
18
18
|
module.exports = __toCommonJS(decorators_exports);
|
|
19
19
|
__reExport(decorators_exports, require("./withTransition.cjs"), module.exports);
|
|
20
20
|
if (module.exports.default) module.exports = module.exports.default;
|
|
21
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../packages/ui/decorators/index.ts"],
|
|
4
|
+
"sourcesContent": ["// eslint-disable-next-line import/prefer-default-export\nexport * from './withTransition.js';\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;AAAA;AAAA;AACA,+BAAc,iCADd;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
package/decorators/index.js
CHANGED
|
@@ -2,7 +2,6 @@ var __defProp = Object.defineProperty;
|
|
|
2
2
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
3
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
4
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
6
5
|
var __export = (target, all) => {
|
|
7
6
|
for (var name in all)
|
|
8
7
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
@@ -16,10 +15,6 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
16
15
|
return to;
|
|
17
16
|
};
|
|
18
17
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
var __publicField = (obj, key, value) => {
|
|
20
|
-
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
21
|
-
return value;
|
|
22
|
-
};
|
|
23
18
|
|
|
24
19
|
// packages/ui/decorators/withTransition.ts
|
|
25
20
|
var withTransition_exports = {};
|
|
@@ -28,20 +23,28 @@ __export(withTransition_exports, {
|
|
|
28
23
|
});
|
|
29
24
|
module.exports = __toCommonJS(withTransition_exports);
|
|
30
25
|
var import_utils = require("@studiometa/js-toolkit/utils");
|
|
31
|
-
function delegateTransition(elementOrElements, name, endMode) {
|
|
32
|
-
return (0, import_utils.isArray)(elementOrElements) || elementOrElements instanceof NodeList ? Promise.all(
|
|
33
|
-
Array.from(elementOrElements).map((el) => (0, import_utils.transition)(el, name, endMode))
|
|
34
|
-
) : (0, import_utils.transition)(elementOrElements, name, endMode);
|
|
35
|
-
}
|
|
36
26
|
function withTransition(BaseClass) {
|
|
37
27
|
class Transition extends BaseClass {
|
|
28
|
+
static config = {
|
|
29
|
+
name: "Transition",
|
|
30
|
+
options: {
|
|
31
|
+
enterFrom: String,
|
|
32
|
+
enterActive: String,
|
|
33
|
+
enterTo: String,
|
|
34
|
+
enterKeep: Boolean,
|
|
35
|
+
leaveFrom: String,
|
|
36
|
+
leaveActive: String,
|
|
37
|
+
leaveTo: String,
|
|
38
|
+
leaveKeep: Boolean
|
|
39
|
+
}
|
|
40
|
+
};
|
|
38
41
|
get target() {
|
|
39
42
|
return this.$el;
|
|
40
43
|
}
|
|
41
44
|
async enter(target) {
|
|
42
45
|
const { enterFrom, enterActive, enterTo, enterKeep, leaveTo } = this.$options;
|
|
43
|
-
await
|
|
44
|
-
target
|
|
46
|
+
await (0, import_utils.transition)(
|
|
47
|
+
target ?? this.target,
|
|
45
48
|
{
|
|
46
49
|
from: (leaveTo + " " + enterFrom).trim(),
|
|
47
50
|
active: enterActive,
|
|
@@ -52,8 +55,8 @@ function withTransition(BaseClass) {
|
|
|
52
55
|
}
|
|
53
56
|
async leave(target) {
|
|
54
57
|
const { leaveFrom, leaveActive, leaveTo, leaveKeep, enterTo } = this.$options;
|
|
55
|
-
await
|
|
56
|
-
target
|
|
58
|
+
await (0, import_utils.transition)(
|
|
59
|
+
target ?? this.target,
|
|
57
60
|
{
|
|
58
61
|
from: (enterTo + " " + leaveFrom).trim(),
|
|
59
62
|
active: leaveActive,
|
|
@@ -63,19 +66,7 @@ function withTransition(BaseClass) {
|
|
|
63
66
|
);
|
|
64
67
|
}
|
|
65
68
|
}
|
|
66
|
-
__publicField(Transition, "config", {
|
|
67
|
-
name: "Transition",
|
|
68
|
-
options: {
|
|
69
|
-
enterFrom: String,
|
|
70
|
-
enterActive: String,
|
|
71
|
-
enterTo: String,
|
|
72
|
-
enterKeep: Boolean,
|
|
73
|
-
leaveFrom: String,
|
|
74
|
-
leaveActive: String,
|
|
75
|
-
leaveTo: String,
|
|
76
|
-
leaveKeep: Boolean
|
|
77
|
-
}
|
|
78
|
-
});
|
|
79
69
|
return Transition;
|
|
80
70
|
}
|
|
81
71
|
if (module.exports.default) module.exports = module.exports.default;
|
|
72
|
+
//# sourceMappingURL=withTransition.cjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../packages/ui/decorators/withTransition.ts"],
|
|
4
|
+
"sourcesContent": ["import { transition } from '@studiometa/js-toolkit/utils';\nimport type {\n Base,\n BaseDecorator,\n BaseProps,\n BaseConfig,\n BaseInterface,\n} from '@studiometa/js-toolkit';\n\nexport interface TransitionProps extends BaseProps {\n $options: {\n enterFrom: string;\n enterActive: string;\n enterTo: string;\n enterKeep: boolean;\n leaveFrom: string;\n leaveActive: string;\n leaveTo: string;\n leaveKeep: boolean;\n };\n}\n\nexport interface TransitionInterface extends BaseInterface {\n /**\n * Get the transition target.\n */\n get target(): HTMLElement | HTMLElement[];\n /**\n * Trigger the enter transition.\n */\n enter(target?: HTMLElement | HTMLElement[]):Promise<void>;\n /**\n * Trigger the leave transition.\n */\n leave(target?: HTMLElement | HTMLElement[]):Promise<void>;\n}\n\n/**\n * Extend a class to add transition capabilities.\n */\nexport function withTransition<S extends Base>(\n BaseClass: typeof Base,\n): BaseDecorator<TransitionInterface, S, TransitionProps> {\n /**\n * Class.\n */\n class Transition<T extends BaseProps = BaseProps> extends BaseClass<\n T & TransitionProps\n > {\n /**\n * Config.\n */\n static config: BaseConfig = {\n name: 'Transition',\n options: {\n enterFrom: String,\n enterActive: String,\n enterTo: String,\n enterKeep: Boolean,\n leaveFrom: String,\n leaveActive: String,\n leaveTo: String,\n leaveKeep: Boolean,\n },\n };\n\n /**\n * Get the transition target.\n */\n get target(): HTMLElement | HTMLElement[] {\n return this.$el;\n }\n\n /**\n * Trigger the enter transition.\n */\n async enter(target?: HTMLElement | HTMLElement[]): Promise<void> {\n const { enterFrom, enterActive, enterTo, enterKeep, leaveTo } = this.$options;\n\n await transition(\n target ?? this.target,\n {\n // eslint-disable-next-line prefer-template\n from: (leaveTo + ' ' + enterFrom).trim(),\n active: enterActive as string,\n to: enterTo as string,\n },\n enterKeep && 'keep',\n );\n }\n\n /**\n * Trigger the leave transition.\n */\n async leave(target?: HTMLElement | HTMLElement[]): Promise<void> {\n const { leaveFrom, leaveActive, leaveTo, leaveKeep, enterTo } = this.$options;\n\n await transition(\n target ?? this.target,\n {\n // eslint-disable-next-line prefer-template\n from: (enterTo + ' ' + leaveFrom).trim(),\n active: leaveActive as string,\n to: leaveTo as string,\n },\n leaveKeep && 'keep',\n );\n }\n }\n\n // @ts-ignore\n return Transition;\n}\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAA2B;AAwCpB,SAAS,eACd,WACwD;AAIxD,QAAM,mBAAoD,UAExD;AAAA,IAIA,OAAO,SAAqB;AAAA,MAC1B,MAAM;AAAA,MACN,SAAS;AAAA,QACP,WAAW;AAAA,QACX,aAAa;AAAA,QACb,SAAS;AAAA,QACT,WAAW;AAAA,QACX,WAAW;AAAA,QACX,aAAa;AAAA,QACb,SAAS;AAAA,QACT,WAAW;AAAA,MACb;AAAA,IACF;AAAA,IAKA,IAAI,SAAsC;AACxC,aAAO,KAAK;AAAA,IACd;AAAA,IAKA,MAAM,MAAM,QAAqD;AAC/D,YAAM,EAAE,WAAW,aAAa,SAAS,WAAW,QAAQ,IAAI,KAAK;AAErE,gBAAM;AAAA,QACJ,UAAU,KAAK;AAAA,QACf;AAAA,UAEE,OAAO,UAAU,MAAM,WAAW,KAAK;AAAA,UACvC,QAAQ;AAAA,UACR,IAAI;AAAA,QACN;AAAA,QACA,aAAa;AAAA,MACf;AAAA,IACF;AAAA,IAKA,MAAM,MAAM,QAAqD;AAC/D,YAAM,EAAE,WAAW,aAAa,SAAS,WAAW,QAAQ,IAAI,KAAK;AAErE,gBAAM;AAAA,QACJ,UAAU,KAAK;AAAA,QACf;AAAA,UAEE,OAAO,UAAU,MAAM,WAAW,KAAK;AAAA,UACvC,QAAQ;AAAA,UACR,IAAI;AAAA,QACN;AAAA,QACA,aAAa;AAAA,MACf;AAAA,IACF;AAAA,EACF;AAGA,SAAO;AACT;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|