@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.
Files changed (292) hide show
  1. package/atoms/AnchorScrollTo/AnchorScrollTo.cjs +1 -0
  2. package/atoms/AnchorScrollTo/AnchorScrollTo.cjs.map +7 -0
  3. package/atoms/AnchorScrollTo/AnchorScrollTo.js +4 -9
  4. package/atoms/AnchorScrollTo/AnchorScrollTo.js.map +7 -0
  5. package/atoms/AnchorScrollTo/index.cjs +1 -0
  6. package/atoms/AnchorScrollTo/index.cjs.map +7 -0
  7. package/atoms/AnchorScrollTo/index.js +1 -0
  8. package/atoms/AnchorScrollTo/index.js.map +7 -0
  9. package/atoms/Cursor/Cursor.cjs +7 -9
  10. package/atoms/Cursor/Cursor.cjs.map +7 -0
  11. package/atoms/Cursor/Cursor.js +44 -52
  12. package/atoms/Cursor/Cursor.js.map +7 -0
  13. package/atoms/Cursor/index.cjs +1 -0
  14. package/atoms/Cursor/index.cjs.map +7 -0
  15. package/atoms/Cursor/index.js +1 -0
  16. package/atoms/Cursor/index.js.map +7 -0
  17. package/atoms/Figure/Figure.cjs +1 -0
  18. package/atoms/Figure/Figure.cjs.map +7 -0
  19. package/atoms/Figure/Figure.js +10 -15
  20. package/atoms/Figure/Figure.js.map +7 -0
  21. package/atoms/Figure/FigureTwicPics.cjs +1 -0
  22. package/atoms/Figure/FigureTwicPics.cjs.map +7 -0
  23. package/atoms/Figure/FigureTwicPics.js +17 -22
  24. package/atoms/Figure/FigureTwicPics.js.map +7 -0
  25. package/atoms/Figure/index.cjs +1 -0
  26. package/atoms/Figure/index.cjs.map +7 -0
  27. package/atoms/Figure/index.js +1 -0
  28. package/atoms/Figure/index.js.map +7 -0
  29. package/atoms/LargeText/LargeText.cjs +8 -10
  30. package/atoms/LargeText/LargeText.cjs.map +7 -0
  31. package/atoms/LargeText/LargeText.js +23 -31
  32. package/atoms/LargeText/LargeText.js.map +7 -0
  33. package/atoms/LargeText/index.cjs +1 -0
  34. package/atoms/LargeText/index.cjs.map +7 -0
  35. package/atoms/LargeText/index.js +1 -0
  36. package/atoms/LargeText/index.js.map +7 -0
  37. package/atoms/LazyInclude/LazyInclude.cjs +1 -0
  38. package/atoms/LazyInclude/LazyInclude.cjs.map +7 -0
  39. package/atoms/LazyInclude/LazyInclude.js +10 -15
  40. package/atoms/LazyInclude/LazyInclude.js.map +7 -0
  41. package/atoms/LazyInclude/index.cjs +1 -0
  42. package/atoms/LazyInclude/index.cjs.map +7 -0
  43. package/atoms/LazyInclude/index.js +1 -0
  44. package/atoms/LazyInclude/index.js.map +7 -0
  45. package/atoms/Prefetch/AbstractPrefetch.cjs +1 -0
  46. package/atoms/Prefetch/AbstractPrefetch.cjs.map +7 -0
  47. package/atoms/Prefetch/AbstractPrefetch.js +15 -21
  48. package/atoms/Prefetch/AbstractPrefetch.js.map +7 -0
  49. package/atoms/Prefetch/PrefetchWhenOver.cjs +1 -0
  50. package/atoms/Prefetch/PrefetchWhenOver.cjs.map +7 -0
  51. package/atoms/Prefetch/PrefetchWhenOver.js +5 -10
  52. package/atoms/Prefetch/PrefetchWhenOver.js.map +7 -0
  53. package/atoms/Prefetch/PrefetchWhenVisible.cjs +1 -0
  54. package/atoms/Prefetch/PrefetchWhenVisible.cjs.map +7 -0
  55. package/atoms/Prefetch/PrefetchWhenVisible.js +5 -10
  56. package/atoms/Prefetch/PrefetchWhenVisible.js.map +7 -0
  57. package/atoms/Prefetch/index.cjs +1 -0
  58. package/atoms/Prefetch/index.cjs.map +7 -0
  59. package/atoms/Prefetch/index.js +1 -0
  60. package/atoms/Prefetch/index.js.map +7 -0
  61. package/atoms/ScrollAnimation/AbstractScrollAnimation.cjs +1 -0
  62. package/atoms/ScrollAnimation/AbstractScrollAnimation.cjs.map +7 -0
  63. package/atoms/ScrollAnimation/AbstractScrollAnimation.js +25 -30
  64. package/atoms/ScrollAnimation/AbstractScrollAnimation.js.map +7 -0
  65. package/atoms/ScrollAnimation/ScrollAnimation.cjs +1 -0
  66. package/atoms/ScrollAnimation/ScrollAnimation.cjs.map +7 -0
  67. package/atoms/ScrollAnimation/ScrollAnimation.js +6 -11
  68. package/atoms/ScrollAnimation/ScrollAnimation.js.map +7 -0
  69. package/atoms/ScrollAnimation/ScrollAnimationChild.cjs +9 -11
  70. package/atoms/ScrollAnimation/ScrollAnimationChild.cjs.map +7 -0
  71. package/atoms/ScrollAnimation/ScrollAnimationChild.js +24 -32
  72. package/atoms/ScrollAnimation/ScrollAnimationChild.js.map +7 -0
  73. package/atoms/ScrollAnimation/ScrollAnimationChildWithEase.cjs +1 -0
  74. package/atoms/ScrollAnimation/ScrollAnimationChildWithEase.cjs.map +7 -0
  75. package/atoms/ScrollAnimation/ScrollAnimationChildWithEase.js +5 -10
  76. package/atoms/ScrollAnimation/ScrollAnimationChildWithEase.js.map +7 -0
  77. package/atoms/ScrollAnimation/ScrollAnimationParent.cjs +1 -0
  78. package/atoms/ScrollAnimation/ScrollAnimationParent.cjs.map +7 -0
  79. package/atoms/ScrollAnimation/ScrollAnimationParent.js +7 -12
  80. package/atoms/ScrollAnimation/ScrollAnimationParent.js.map +7 -0
  81. package/atoms/ScrollAnimation/ScrollAnimationWithEase.cjs +1 -0
  82. package/atoms/ScrollAnimation/ScrollAnimationWithEase.cjs.map +7 -0
  83. package/atoms/ScrollAnimation/ScrollAnimationWithEase.js +5 -10
  84. package/atoms/ScrollAnimation/ScrollAnimationWithEase.js.map +7 -0
  85. package/atoms/ScrollAnimation/animationScrollWithEase.cjs +12 -16
  86. package/atoms/ScrollAnimation/animationScrollWithEase.cjs.map +7 -0
  87. package/atoms/ScrollAnimation/animationScrollWithEase.js +12 -17
  88. package/atoms/ScrollAnimation/animationScrollWithEase.js.map +7 -0
  89. package/atoms/ScrollAnimation/index.cjs +1 -0
  90. package/atoms/ScrollAnimation/index.cjs.map +7 -0
  91. package/atoms/ScrollAnimation/index.js +1 -0
  92. package/atoms/ScrollAnimation/index.js.map +7 -0
  93. package/atoms/ScrollReveal/ScrollReveal.cjs +2 -2
  94. package/atoms/ScrollReveal/ScrollReveal.cjs.map +7 -0
  95. package/atoms/ScrollReveal/ScrollReveal.js +24 -31
  96. package/atoms/ScrollReveal/ScrollReveal.js.map +7 -0
  97. package/atoms/ScrollReveal/index.cjs +1 -0
  98. package/atoms/ScrollReveal/index.cjs.map +7 -0
  99. package/atoms/ScrollReveal/index.js +1 -0
  100. package/atoms/ScrollReveal/index.js.map +7 -0
  101. package/atoms/index.cjs +1 -0
  102. package/atoms/index.cjs.map +7 -0
  103. package/atoms/index.js +1 -0
  104. package/atoms/index.js.map +7 -0
  105. package/decorators/index.cjs +1 -0
  106. package/decorators/index.cjs.map +7 -0
  107. package/decorators/index.js +1 -0
  108. package/decorators/index.js.map +7 -0
  109. package/decorators/withTransition.cjs +18 -27
  110. package/decorators/withTransition.cjs.map +7 -0
  111. package/decorators/withTransition.js +19 -29
  112. package/decorators/withTransition.js.map +7 -0
  113. package/index.cjs +1 -0
  114. package/index.cjs.map +7 -0
  115. package/index.js +1 -0
  116. package/index.js.map +7 -0
  117. package/molecules/Accordion/Accordion.cjs +1 -0
  118. package/molecules/Accordion/Accordion.cjs.map +7 -0
  119. package/molecules/Accordion/Accordion.js +7 -12
  120. package/molecules/Accordion/Accordion.js.map +7 -0
  121. package/molecules/Accordion/AccordionCore.cjs +1 -0
  122. package/molecules/Accordion/AccordionCore.cjs.map +7 -0
  123. package/molecules/Accordion/AccordionCore.js +12 -17
  124. package/molecules/Accordion/AccordionCore.js.map +7 -0
  125. package/molecules/Accordion/AccordionItem.cjs +2 -2
  126. package/molecules/Accordion/AccordionItem.cjs.map +7 -0
  127. package/molecules/Accordion/AccordionItem.js +23 -30
  128. package/molecules/Accordion/AccordionItem.js.map +7 -0
  129. package/molecules/Accordion/index.cjs +1 -0
  130. package/molecules/Accordion/index.cjs.map +7 -0
  131. package/molecules/Accordion/index.js +1 -0
  132. package/molecules/Accordion/index.js.map +7 -0
  133. package/molecules/Menu/Menu.cjs +1 -0
  134. package/molecules/Menu/Menu.cjs.map +7 -0
  135. package/molecules/Menu/Menu.js +17 -23
  136. package/molecules/Menu/Menu.js.map +7 -0
  137. package/molecules/Menu/MenuBtn.cjs +2 -4
  138. package/molecules/Menu/MenuBtn.cjs.map +7 -0
  139. package/molecules/Menu/MenuBtn.js +5 -13
  140. package/molecules/Menu/MenuBtn.js.map +7 -0
  141. package/molecules/Menu/MenuList.cjs +3 -5
  142. package/molecules/Menu/MenuList.cjs.map +7 -0
  143. package/molecules/Menu/MenuList.d.ts +1 -1
  144. package/molecules/Menu/MenuList.js +13 -22
  145. package/molecules/Menu/MenuList.js.map +7 -0
  146. package/molecules/Menu/index.cjs +1 -0
  147. package/molecules/Menu/index.cjs.map +7 -0
  148. package/molecules/Menu/index.js +1 -0
  149. package/molecules/Menu/index.js.map +7 -0
  150. package/molecules/Modal/Modal.cjs +8 -15
  151. package/molecules/Modal/Modal.cjs.map +7 -0
  152. package/molecules/Modal/Modal.d.ts +1 -1
  153. package/molecules/Modal/Modal.js +34 -47
  154. package/molecules/Modal/Modal.js.map +7 -0
  155. package/molecules/Modal/ModalWithTransition.cjs +1 -0
  156. package/molecules/Modal/ModalWithTransition.cjs.map +7 -0
  157. package/molecules/Modal/ModalWithTransition.js +26 -31
  158. package/molecules/Modal/ModalWithTransition.js.map +7 -0
  159. package/molecules/Modal/index.cjs +1 -0
  160. package/molecules/Modal/index.cjs.map +7 -0
  161. package/molecules/Modal/index.js +1 -0
  162. package/molecules/Modal/index.js.map +7 -0
  163. package/molecules/Panel/Panel.cjs +3 -6
  164. package/molecules/Panel/Panel.cjs.map +7 -0
  165. package/molecules/Panel/Panel.js +20 -30
  166. package/molecules/Panel/Panel.js.map +7 -0
  167. package/molecules/Panel/index.cjs +1 -0
  168. package/molecules/Panel/index.cjs.map +7 -0
  169. package/molecules/Panel/index.js +1 -0
  170. package/molecules/Panel/index.js.map +7 -0
  171. package/molecules/Slider/AbstractSliderChild.cjs +1 -0
  172. package/molecules/Slider/AbstractSliderChild.cjs.map +7 -0
  173. package/molecules/Slider/AbstractSliderChild.js +4 -9
  174. package/molecules/Slider/AbstractSliderChild.js.map +7 -0
  175. package/molecules/Slider/Slider.cjs +14 -16
  176. package/molecules/Slider/Slider.cjs.map +7 -0
  177. package/molecules/Slider/Slider.js +30 -38
  178. package/molecules/Slider/Slider.js.map +7 -0
  179. package/molecules/Slider/SliderBtn.cjs +1 -0
  180. package/molecules/Slider/SliderBtn.cjs.map +7 -0
  181. package/molecules/Slider/SliderBtn.js +8 -13
  182. package/molecules/Slider/SliderBtn.js.map +7 -0
  183. package/molecules/Slider/SliderCount.cjs +1 -0
  184. package/molecules/Slider/SliderCount.cjs.map +7 -0
  185. package/molecules/Slider/SliderCount.js +5 -10
  186. package/molecules/Slider/SliderCount.js.map +7 -0
  187. package/molecules/Slider/SliderDots.cjs +2 -4
  188. package/molecules/Slider/SliderDots.cjs.map +7 -0
  189. package/molecules/Slider/SliderDots.js +6 -14
  190. package/molecules/Slider/SliderDots.js.map +7 -0
  191. package/molecules/Slider/SliderDrag.cjs +1 -0
  192. package/molecules/Slider/SliderDrag.cjs.map +7 -0
  193. package/molecules/Slider/SliderDrag.js +11 -16
  194. package/molecules/Slider/SliderDrag.js.map +7 -0
  195. package/molecules/Slider/SliderItem.cjs +5 -7
  196. package/molecules/Slider/SliderItem.cjs.map +7 -0
  197. package/molecules/Slider/SliderItem.js +9 -17
  198. package/molecules/Slider/SliderItem.js.map +7 -0
  199. package/molecules/Slider/SliderProgress.cjs +1 -0
  200. package/molecules/Slider/SliderProgress.cjs.map +7 -0
  201. package/molecules/Slider/SliderProgress.js +5 -10
  202. package/molecules/Slider/SliderProgress.js.map +7 -0
  203. package/molecules/Slider/index.cjs +1 -0
  204. package/molecules/Slider/index.cjs.map +7 -0
  205. package/molecules/Slider/index.js +1 -0
  206. package/molecules/Slider/index.js.map +7 -0
  207. package/molecules/Sticky/Sticky.cjs +4 -6
  208. package/molecules/Sticky/Sticky.cjs.map +7 -0
  209. package/molecules/Sticky/Sticky.js +25 -34
  210. package/molecules/Sticky/Sticky.js.map +7 -0
  211. package/molecules/Sticky/index.cjs +1 -0
  212. package/molecules/Sticky/index.cjs.map +7 -0
  213. package/molecules/Sticky/index.js +1 -0
  214. package/molecules/Sticky/index.js.map +7 -0
  215. package/molecules/TableOfContent/TableOfContent.cjs +1 -0
  216. package/molecules/TableOfContent/TableOfContent.cjs.map +7 -0
  217. package/molecules/TableOfContent/TableOfContent.js +12 -17
  218. package/molecules/TableOfContent/TableOfContent.js.map +7 -0
  219. package/molecules/TableOfContent/TableOfContentAnchor.cjs +2 -4
  220. package/molecules/TableOfContent/TableOfContentAnchor.cjs.map +7 -0
  221. package/molecules/TableOfContent/TableOfContentAnchor.js +12 -20
  222. package/molecules/TableOfContent/TableOfContentAnchor.js.map +7 -0
  223. package/molecules/TableOfContent/index.cjs +1 -0
  224. package/molecules/TableOfContent/index.cjs.map +7 -0
  225. package/molecules/TableOfContent/index.js +1 -0
  226. package/molecules/TableOfContent/index.js.map +7 -0
  227. package/molecules/Tabs/Tabs.cjs +2 -4
  228. package/molecules/Tabs/Tabs.cjs.map +7 -0
  229. package/molecules/Tabs/Tabs.js +23 -31
  230. package/molecules/Tabs/Tabs.js.map +7 -0
  231. package/molecules/Tabs/index.cjs +1 -0
  232. package/molecules/Tabs/index.cjs.map +7 -0
  233. package/molecules/Tabs/index.js +1 -0
  234. package/molecules/Tabs/index.js.map +7 -0
  235. package/molecules/index.cjs +1 -0
  236. package/molecules/index.cjs.map +7 -0
  237. package/molecules/index.js +1 -0
  238. package/molecules/index.js.map +7 -0
  239. package/organisms/Frame/Frame.cjs +1 -0
  240. package/organisms/Frame/Frame.cjs.map +7 -0
  241. package/organisms/Frame/Frame.js +26 -32
  242. package/organisms/Frame/Frame.js.map +7 -0
  243. package/organisms/Frame/FrameAnchor.cjs +1 -0
  244. package/organisms/Frame/FrameAnchor.cjs.map +7 -0
  245. package/organisms/Frame/FrameAnchor.js +4 -9
  246. package/organisms/Frame/FrameAnchor.js.map +7 -0
  247. package/organisms/Frame/FrameForm.cjs +1 -0
  248. package/organisms/Frame/FrameForm.cjs.map +7 -0
  249. package/organisms/Frame/FrameForm.js +4 -9
  250. package/organisms/Frame/FrameForm.js.map +7 -0
  251. package/organisms/Frame/FrameTarget.cjs +3 -5
  252. package/organisms/Frame/FrameTarget.cjs.map +7 -0
  253. package/organisms/Frame/FrameTarget.d.ts +1 -1
  254. package/organisms/Frame/FrameTarget.js +24 -33
  255. package/organisms/Frame/FrameTarget.js.map +7 -0
  256. package/organisms/Frame/index.cjs +1 -0
  257. package/organisms/Frame/index.cjs.map +7 -0
  258. package/organisms/Frame/index.js +1 -0
  259. package/organisms/Frame/index.js.map +7 -0
  260. package/organisms/index.cjs +1 -0
  261. package/organisms/index.cjs.map +7 -0
  262. package/organisms/index.js +1 -0
  263. package/organisms/index.js.map +7 -0
  264. package/package.json +2 -2
  265. package/primitives/Draggable/Draggable.cjs +5 -7
  266. package/primitives/Draggable/Draggable.cjs.map +7 -0
  267. package/primitives/Draggable/Draggable.js +8 -16
  268. package/primitives/Draggable/Draggable.js.map +7 -0
  269. package/primitives/Draggable/index.cjs +1 -0
  270. package/primitives/Draggable/index.cjs.map +7 -0
  271. package/primitives/Draggable/index.js +1 -0
  272. package/primitives/Draggable/index.js.map +7 -0
  273. package/primitives/Sentinel/Sentinel.cjs +1 -0
  274. package/primitives/Sentinel/Sentinel.cjs.map +7 -0
  275. package/primitives/Sentinel/Sentinel.js +4 -9
  276. package/primitives/Sentinel/Sentinel.js.map +7 -0
  277. package/primitives/Sentinel/index.cjs +1 -0
  278. package/primitives/Sentinel/index.cjs.map +7 -0
  279. package/primitives/Sentinel/index.js +1 -0
  280. package/primitives/Sentinel/index.js.map +7 -0
  281. package/primitives/Transition/Transition.cjs +1 -0
  282. package/primitives/Transition/Transition.cjs.map +7 -0
  283. package/primitives/Transition/Transition.js +4 -9
  284. package/primitives/Transition/Transition.js.map +7 -0
  285. package/primitives/Transition/index.cjs +1 -0
  286. package/primitives/Transition/index.cjs.map +7 -0
  287. package/primitives/Transition/index.js +1 -0
  288. package/primitives/Transition/index.js.map +7 -0
  289. package/primitives/index.cjs +1 -0
  290. package/primitives/index.cjs.map +7 -0
  291. package/primitives/index.js +1 -0
  292. 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
+ }
@@ -46,3 +46,4 @@ __publicField(ScrollAnimationParent, "config", {
46
46
  }
47
47
  });
48
48
  if (module.exports.default) module.exports = module.exports.default;
49
+ //# sourceMappingURL=ScrollAnimationParent.cjs.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;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
+ }
@@ -36,3 +36,4 @@ __publicField(ScrollAnimationWithEase, "config", {
36
36
  name: "ScrollAnimationWithEase"
37
37
  });
38
38
  if (module.exports.default) module.exports = module.exports.default;
39
+ //# sourceMappingURL=ScrollAnimationWithEase.cjs.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;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
+ }
@@ -5,3 +5,4 @@ export * from "./ScrollAnimationWithEase.js";
5
5
  export * from "./ScrollAnimationChild.js";
6
6
  export * from "./ScrollAnimationChildWithEase.js";
7
7
  export * from "./ScrollAnimationParent.js";
8
+ //# sourceMappingURL=index.js.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,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
- var _a;
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
- const _ScrollReveal = class extends withMountWhenInView(
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
- var _a;
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
- _ScrollReveal.scrollDirectionY = props.direction.y;
36
+ ScrollReveal.scrollDirectionY = props.direction.y;
26
37
  });
27
38
  }
28
- if (_ScrollReveal.scrollDirectionY !== "UP") {
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
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../packages/ui/atoms/ScrollReveal/index.ts"],
4
+ "sourcesContent": ["export * from './ScrollReveal.js';\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;AAAA;AAAA;AAAA,iCAAc,+BAAd;",
6
+ "names": []
7
+ }
@@ -1 +1,2 @@
1
1
  export * from "./ScrollReveal.js";
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../packages/ui/atoms/ScrollReveal/index.ts"],
4
+ "sourcesContent": ["export * from './ScrollReveal.js';\n"],
5
+ "mappings": "AAAA,cAAc;",
6
+ "names": []
7
+ }
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
@@ -6,3 +6,4 @@ export * from "./LazyInclude/index.js";
6
6
  export * from "./Prefetch/index.js";
7
7
  export * from "./ScrollAnimation/index.js";
8
8
  export * from "./ScrollReveal/index.js";
9
+ //# sourceMappingURL=index.js.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,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;",
6
+ "names": []
7
+ }
@@ -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
+ }
@@ -1 +1,2 @@
1
1
  export * from "./withTransition.js";
2
+ //# sourceMappingURL=index.js.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": "AACA,cAAc;",
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/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 delegateTransition(
44
- target != null ? target : this.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 delegateTransition(
56
- target != null ? target : this.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
+ }