@studiometa/ui 0.2.13 → 0.2.14

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 (217) hide show
  1. package/atoms/AnchorScrollTo/AnchorScrollTo.cjs +3 -3
  2. package/atoms/AnchorScrollTo/AnchorScrollTo.d.ts +8 -15
  3. package/atoms/AnchorScrollTo/AnchorScrollTo.js +26 -1
  4. package/atoms/AnchorScrollTo/index.cjs +20 -0
  5. package/atoms/AnchorScrollTo/index.d.ts +1 -0
  6. package/atoms/AnchorScrollTo/index.js +1 -0
  7. package/atoms/Cursor/Cursor.cjs +16 -9
  8. package/atoms/Cursor/Cursor.d.ts +19 -117
  9. package/atoms/Cursor/Cursor.js +111 -1
  10. package/atoms/Cursor/index.cjs +20 -0
  11. package/atoms/Cursor/index.d.ts +1 -0
  12. package/atoms/Cursor/index.js +1 -0
  13. package/atoms/Figure/Figure.cjs +15 -9
  14. package/atoms/Figure/Figure.d.ts +18 -53
  15. package/atoms/Figure/Figure.js +56 -1
  16. package/atoms/Figure/FigureTwicPics.cjs +10 -10
  17. package/atoms/Figure/FigureTwicPics.d.ts +16 -37
  18. package/atoms/Figure/FigureTwicPics.js +51 -1
  19. package/atoms/Figure/index.cjs +4 -14
  20. package/atoms/Figure/index.d.ts +2 -2
  21. package/atoms/Figure/index.js +2 -1
  22. package/atoms/LargeText/LargeText.cjs +17 -10
  23. package/atoms/LargeText/LargeText.d.ts +19 -40
  24. package/atoms/LargeText/LargeText.js +68 -1
  25. package/atoms/LargeText/index.cjs +20 -0
  26. package/atoms/LargeText/index.d.ts +1 -0
  27. package/atoms/LargeText/index.js +1 -0
  28. package/atoms/LazyInclude/LazyInclude.cjs +2 -2
  29. package/atoms/LazyInclude/LazyInclude.d.ts +17 -36
  30. package/atoms/LazyInclude/LazyInclude.js +46 -1
  31. package/atoms/LazyInclude/index.cjs +20 -0
  32. package/atoms/LazyInclude/index.d.ts +1 -0
  33. package/atoms/LazyInclude/index.js +1 -0
  34. package/atoms/Prefetch/AbstractPrefetch.cjs +6 -6
  35. package/atoms/Prefetch/AbstractPrefetch.d.ts +12 -35
  36. package/atoms/Prefetch/AbstractPrefetch.js +58 -1
  37. package/atoms/Prefetch/PrefetchWhenOver.cjs +5 -8
  38. package/atoms/Prefetch/PrefetchWhenOver.d.ts +8 -14
  39. package/atoms/Prefetch/PrefetchWhenOver.js +19 -1
  40. package/atoms/Prefetch/PrefetchWhenVisible.cjs +5 -8
  41. package/atoms/Prefetch/PrefetchWhenVisible.d.ts +10 -14
  42. package/atoms/Prefetch/PrefetchWhenVisible.js +20 -1
  43. package/atoms/Prefetch/index.cjs +5 -16
  44. package/atoms/Prefetch/index.d.ts +3 -3
  45. package/atoms/Prefetch/index.js +3 -1
  46. package/atoms/ScrollAnimation/AbstractScrollAnimation.cjs +17 -14
  47. package/atoms/ScrollAnimation/AbstractScrollAnimation.d.ts +19 -89
  48. package/atoms/ScrollAnimation/AbstractScrollAnimation.js +67 -1
  49. package/atoms/ScrollAnimation/ScrollAnimation.cjs +5 -14
  50. package/atoms/ScrollAnimation/ScrollAnimation.d.ts +13 -51
  51. package/atoms/ScrollAnimation/ScrollAnimation.js +21 -1
  52. package/atoms/ScrollAnimation/ScrollAnimationChild.cjs +37 -14
  53. package/atoms/ScrollAnimation/ScrollAnimationChild.d.ts +19 -6
  54. package/atoms/ScrollAnimation/ScrollAnimationChild.js +53 -1
  55. package/atoms/ScrollAnimation/ScrollAnimationChildWithEase.cjs +6 -9
  56. package/atoms/ScrollAnimation/ScrollAnimationChildWithEase.d.ts +8 -2
  57. package/atoms/ScrollAnimation/ScrollAnimationChildWithEase.js +17 -1
  58. package/atoms/ScrollAnimation/ScrollAnimationParent.cjs +8 -8
  59. package/atoms/ScrollAnimation/ScrollAnimationParent.d.ts +14 -26
  60. package/atoms/ScrollAnimation/ScrollAnimationParent.js +27 -1
  61. package/atoms/ScrollAnimation/ScrollAnimationWithEase.cjs +6 -9
  62. package/atoms/ScrollAnimation/ScrollAnimationWithEase.d.ts +15 -2
  63. package/atoms/ScrollAnimation/ScrollAnimationWithEase.js +17 -1
  64. package/atoms/ScrollAnimation/animationScrollWithEase.cjs +24 -16
  65. package/atoms/ScrollAnimation/animationScrollWithEase.d.ts +10 -8
  66. package/atoms/ScrollAnimation/animationScrollWithEase.js +36 -1
  67. package/atoms/ScrollAnimation/index.cjs +9 -24
  68. package/atoms/ScrollAnimation/index.d.ts +7 -7
  69. package/atoms/ScrollAnimation/index.js +7 -1
  70. package/atoms/ScrollReveal/ScrollReveal.cjs +7 -4
  71. package/atoms/ScrollReveal/ScrollReveal.d.ts +16 -59
  72. package/atoms/ScrollReveal/ScrollReveal.js +54 -1
  73. package/atoms/ScrollReveal/index.cjs +3 -12
  74. package/atoms/ScrollReveal/index.d.ts +1 -1
  75. package/atoms/ScrollReveal/index.js +1 -1
  76. package/atoms/index.cjs +5 -18
  77. package/atoms/index.d.ts +8 -8
  78. package/atoms/index.js +8 -1
  79. package/decorators/index.cjs +3 -12
  80. package/decorators/index.d.ts +1 -1
  81. package/decorators/index.js +1 -1
  82. package/decorators/withTransition.cjs +44 -29
  83. package/decorators/withTransition.d.ts +21 -33
  84. package/decorators/withTransition.js +60 -1
  85. package/index.cjs +1 -1
  86. package/index.d.ts +5 -5
  87. package/index.js +5 -1
  88. package/molecules/Accordion/Accordion.cjs +7 -10
  89. package/molecules/Accordion/Accordion.d.ts +5 -23
  90. package/molecules/Accordion/Accordion.js +19 -1
  91. package/molecules/Accordion/AccordionCore.cjs +6 -8
  92. package/molecules/Accordion/AccordionCore.d.ts +22 -70
  93. package/molecules/Accordion/AccordionCore.js +32 -1
  94. package/molecules/Accordion/AccordionItem.cjs +39 -23
  95. package/molecules/Accordion/AccordionItem.d.ts +24 -94
  96. package/molecules/Accordion/AccordionItem.js +153 -1
  97. package/molecules/Accordion/index.cjs +21 -0
  98. package/molecules/Accordion/index.d.ts +2 -0
  99. package/molecules/Accordion/index.js +2 -0
  100. package/molecules/Menu/Menu.cjs +6 -10
  101. package/molecules/Menu/Menu.d.ts +24 -84
  102. package/molecules/Menu/Menu.js +114 -1
  103. package/molecules/Menu/MenuBtn.cjs +7 -5
  104. package/molecules/Menu/MenuBtn.d.ts +7 -9
  105. package/molecules/Menu/MenuBtn.js +30 -1
  106. package/molecules/Menu/MenuList.cjs +13 -11
  107. package/molecules/Menu/MenuList.d.ts +16 -53
  108. package/molecules/Menu/MenuList.js +113 -1
  109. package/molecules/Menu/index.cjs +5 -16
  110. package/molecules/Menu/index.d.ts +3 -3
  111. package/molecules/Menu/index.js +3 -1
  112. package/molecules/Modal/Modal.cjs +42 -13
  113. package/molecules/Modal/Modal.d.ts +69 -140
  114. package/molecules/Modal/Modal.js +163 -1
  115. package/molecules/Modal/ModalWithTransition.cjs +4 -7
  116. package/molecules/Modal/ModalWithTransition.d.ts +6 -22
  117. package/molecules/Modal/ModalWithTransition.js +46 -1
  118. package/molecules/Modal/index.cjs +21 -0
  119. package/molecules/Modal/index.d.ts +2 -0
  120. package/molecules/Modal/index.js +2 -0
  121. package/molecules/Panel/Panel.cjs +41 -26
  122. package/molecules/Panel/Panel.d.ts +22 -21
  123. package/molecules/Panel/Panel.js +108 -1
  124. package/molecules/Panel/index.cjs +20 -0
  125. package/molecules/Panel/index.d.ts +1 -0
  126. package/molecules/Panel/index.js +1 -0
  127. package/molecules/Slider/AbstractSliderChild.cjs +7 -9
  128. package/molecules/Slider/AbstractSliderChild.d.ts +11 -30
  129. package/molecules/Slider/AbstractSliderChild.js +48 -1
  130. package/molecules/Slider/Slider.cjs +45 -30
  131. package/molecules/Slider/Slider.d.ts +40 -157
  132. package/molecules/Slider/Slider.js +279 -1
  133. package/molecules/Slider/SliderBtn.cjs +4 -7
  134. package/molecules/Slider/SliderBtn.d.ts +12 -23
  135. package/molecules/Slider/SliderBtn.js +34 -1
  136. package/molecules/Slider/SliderCount.cjs +4 -7
  137. package/molecules/Slider/SliderCount.d.ts +10 -16
  138. package/molecules/Slider/SliderCount.js +19 -1
  139. package/molecules/Slider/SliderDots.cjs +8 -8
  140. package/molecules/Slider/SliderDots.d.ts +11 -31
  141. package/molecules/Slider/SliderDots.js +32 -1
  142. package/molecules/Slider/SliderDrag.cjs +2 -2
  143. package/molecules/Slider/SliderDrag.d.ts +12 -30
  144. package/molecules/Slider/SliderDrag.js +34 -1
  145. package/molecules/Slider/SliderItem.cjs +12 -6
  146. package/molecules/Slider/SliderItem.d.ts +21 -33
  147. package/molecules/Slider/SliderItem.js +93 -1
  148. package/molecules/Slider/SliderProgress.cjs +4 -7
  149. package/molecules/Slider/SliderProgress.d.ts +10 -25
  150. package/molecules/Slider/SliderProgress.js +26 -1
  151. package/molecules/Slider/index.cjs +10 -26
  152. package/molecules/Slider/index.d.ts +8 -8
  153. package/molecules/Slider/index.js +8 -1
  154. package/molecules/Sticky/Sticky.cjs +16 -10
  155. package/molecules/Sticky/Sticky.d.ts +30 -68
  156. package/molecules/Sticky/Sticky.js +110 -1
  157. package/molecules/Sticky/index.cjs +20 -0
  158. package/molecules/Sticky/index.d.ts +1 -0
  159. package/molecules/Sticky/index.js +1 -0
  160. package/molecules/TableOfContent/TableOfContent.cjs +5 -8
  161. package/molecules/TableOfContent/TableOfContent.d.ts +19 -41
  162. package/molecules/TableOfContent/TableOfContent.js +42 -1
  163. package/molecules/TableOfContent/TableOfContentAnchor.cjs +9 -5
  164. package/molecules/TableOfContent/TableOfContentAnchor.d.ts +14 -17
  165. package/molecules/TableOfContent/TableOfContentAnchor.js +43 -1
  166. package/molecules/TableOfContent/index.cjs +4 -14
  167. package/molecules/TableOfContent/index.d.ts +2 -2
  168. package/molecules/TableOfContent/index.js +2 -1
  169. package/molecules/Tabs/Tabs.cjs +42 -22
  170. package/molecules/Tabs/Tabs.d.ts +28 -90
  171. package/molecules/Tabs/Tabs.js +123 -1
  172. package/molecules/Tabs/index.cjs +20 -0
  173. package/molecules/Tabs/index.d.ts +1 -0
  174. package/molecules/Tabs/index.js +1 -0
  175. package/molecules/index.cjs +7 -24
  176. package/molecules/index.d.ts +9 -10
  177. package/molecules/index.js +9 -1
  178. package/organisms/Frame/Frame.cjs +20 -43
  179. package/organisms/Frame/Frame.d.ts +21 -98
  180. package/organisms/Frame/Frame.js +161 -1
  181. package/organisms/Frame/FrameAnchor.cjs +2 -2
  182. package/organisms/Frame/FrameAnchor.d.ts +7 -16
  183. package/organisms/Frame/FrameAnchor.js +18 -1
  184. package/organisms/Frame/FrameForm.cjs +2 -2
  185. package/organisms/Frame/FrameForm.d.ts +10 -16
  186. package/organisms/Frame/FrameForm.js +18 -1
  187. package/organisms/Frame/FrameTarget.cjs +15 -7
  188. package/organisms/Frame/FrameTarget.d.ts +17 -26
  189. package/organisms/Frame/FrameTarget.js +79 -1
  190. package/organisms/Frame/index.cjs +6 -18
  191. package/organisms/Frame/index.d.ts +4 -4
  192. package/organisms/Frame/index.js +4 -1
  193. package/organisms/index.cjs +1 -1
  194. package/organisms/index.d.ts +1 -1
  195. package/organisms/index.js +1 -1
  196. package/package.json +2 -2
  197. package/primitives/Draggable/Draggable.cjs +9 -6
  198. package/primitives/Draggable/Draggable.d.ts +10 -11
  199. package/primitives/Draggable/Draggable.js +33 -1
  200. package/primitives/Draggable/index.cjs +20 -0
  201. package/primitives/Draggable/index.d.ts +1 -0
  202. package/primitives/Draggable/index.js +1 -0
  203. package/primitives/Sentinel/Sentinel.cjs +2 -2
  204. package/primitives/Sentinel/Sentinel.d.ts +6 -5
  205. package/primitives/Sentinel/Sentinel.js +15 -1
  206. package/primitives/Sentinel/index.cjs +20 -0
  207. package/primitives/Sentinel/index.d.ts +1 -0
  208. package/primitives/Sentinel/index.js +1 -0
  209. package/primitives/Transition/Transition.cjs +12 -3
  210. package/primitives/Transition/Transition.d.ts +13 -7
  211. package/primitives/Transition/Transition.js +16 -1
  212. package/primitives/Transition/index.cjs +20 -0
  213. package/primitives/Transition/index.d.ts +1 -0
  214. package/primitives/Transition/index.js +1 -0
  215. package/primitives/index.cjs +5 -16
  216. package/primitives/index.d.ts +3 -3
  217. package/primitives/index.js +3 -1
@@ -2,6 +2,7 @@ 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;
5
6
  var __export = (target, all) => {
6
7
  for (var name in all)
7
8
  __defProp(target, name, { get: all[name], enumerable: true });
@@ -15,35 +16,42 @@ var __copyProps = (to, from, except, desc) => {
15
16
  return to;
16
17
  };
17
18
  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
+ };
18
23
 
19
- // packages/ui/atoms/ScrollAnimation/animationScrollWithEase.js
24
+ // packages/ui/atoms/ScrollAnimation/animationScrollWithEase.ts
20
25
  var animationScrollWithEase_exports = {};
21
26
  __export(animationScrollWithEase_exports, {
22
- default: () => animationScrollWithEase
27
+ animationScrollWithEase: () => animationScrollWithEase
23
28
  });
24
29
  module.exports = __toCommonJS(animationScrollWithEase_exports);
25
30
  var import_utils = require("@studiometa/js-toolkit/utils");
26
31
  var regex = /ease([A-Z])/;
27
- var eases = Object.fromEntries(Object.entries(import_utils.ease).filter(([name]) => name.startsWith("ease")).map(([name, value]) => [name.replace(regex, (match, $1) => $1.toLowerCase()), value]));
32
+ var eases = Object.fromEntries(
33
+ Object.entries(import_utils.ease).filter(([name]) => name.startsWith("ease")).map(([name, value]) => [name.replace(regex, (match, $1) => $1.toLowerCase()), value])
34
+ );
28
35
  function animationScrollWithEase(ScrollAnimation) {
29
- return class extends ScrollAnimation {
30
- static config = {
31
- ...ScrollAnimation.config,
32
- name: `${ScrollAnimation.config.name}WithEase`,
33
- options: {
34
- ...ScrollAnimation.config.options,
35
- ease: {
36
- type: String,
37
- default: "outExpo"
38
- }
39
- }
40
- };
36
+ class AnimationScrollWithEase extends ScrollAnimation {
41
37
  render(progress) {
42
38
  if (typeof eases[this.$options.ease] === "function") {
43
39
  progress = eases[this.$options.ease](progress);
44
40
  }
45
41
  super.render(progress);
46
42
  }
47
- };
43
+ }
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
+ return AnimationScrollWithEase;
48
56
  }
49
57
  if (module.exports.default) module.exports = module.exports.default;
@@ -1,11 +1,13 @@
1
- /**
2
- * @typedef {import('./AbstractScrollAnimation.js').AbstractScrollAnimationConstructor} AbstractScrollAnimationConstructor
3
- */
1
+ import type { BaseProps, BaseDecorator, BaseInterface } from '@studiometa/js-toolkit';
2
+ import type { AbstractScrollAnimation } from './AbstractScrollAnimation.js';
3
+ export interface AnimationScrollWithEaseProps extends BaseProps {
4
+ $options: {
5
+ ease: string;
6
+ };
7
+ }
8
+ export interface AnimationScrollWithEaseInterface extends BaseInterface {
9
+ }
4
10
  /**
5
11
  * Extend a `ScrollAnimation` component to use easings.
6
- * @template {AbstractScrollAnimationConstructor} T
7
- * @param {T} ScrollAnimation A child class of the `AbstractScrollAnimation` class.
8
- * @returns {T}
9
12
  */
10
- export default function animationScrollWithEase<T extends typeof import("./AbstractScrollAnimation.js").default>(ScrollAnimation: T): T;
11
- export type AbstractScrollAnimationConstructor = import('./AbstractScrollAnimation.js').AbstractScrollAnimationConstructor;
13
+ export declare function animationScrollWithEase<S extends AbstractScrollAnimation>(ScrollAnimation: typeof AbstractScrollAnimation): BaseDecorator<AnimationScrollWithEaseInterface, S, AnimationScrollWithEaseProps>;
@@ -1 +1,36 @@
1
- import{ease as n}from"@studiometa/js-toolkit/utils";const o=/ease([A-Z])/,s=Object.fromEntries(Object.entries(n).filter(([e])=>e.startsWith("ease")).map(([e,t])=>[e.replace(o,(f,a)=>a.toLowerCase()),t]));function i(e){return class extends e{static config={...e.config,name:`${e.config.name}WithEase`,options:{...e.config.options,ease:{type:String,default:"outExpo"}}};render(t){typeof s[this.$options.ease]=="function"&&(t=s[this.$options.ease](t)),super.render(t)}}}export{i as default};
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
+ import { ease } from "@studiometa/js-toolkit/utils";
8
+ const regex = /ease([A-Z])/;
9
+ const eases = Object.fromEntries(
10
+ Object.entries(ease).filter(([name]) => name.startsWith("ease")).map(([name, value]) => [name.replace(regex, (match, $1) => $1.toLowerCase()), value])
11
+ );
12
+ function animationScrollWithEase(ScrollAnimation) {
13
+ class AnimationScrollWithEase extends ScrollAnimation {
14
+ render(progress) {
15
+ if (typeof eases[this.$options.ease] === "function") {
16
+ progress = eases[this.$options.ease](progress);
17
+ }
18
+ super.render(progress);
19
+ }
20
+ }
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
+ return AnimationScrollWithEase;
33
+ }
34
+ export {
35
+ animationScrollWithEase
36
+ };
@@ -1,13 +1,7 @@
1
- var __create = Object.create;
2
1
  var __defProp = Object.defineProperty;
3
2
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
3
  var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __getProtoOf = Object.getPrototypeOf;
6
4
  var __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __export = (target, all) => {
8
- for (var name in all)
9
- __defProp(target, name, { get: all[name], enumerable: true });
10
- };
11
5
  var __copyProps = (to, from, except, desc) => {
12
6
  if (from && typeof from === "object" || typeof from === "function") {
13
7
  for (let key of __getOwnPropNames(from))
@@ -16,26 +10,17 @@ var __copyProps = (to, from, except, desc) => {
16
10
  }
17
11
  return to;
18
12
  };
19
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, mod));
13
+ var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
20
14
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
21
15
 
22
- // packages/ui/atoms/ScrollAnimation/index.js
16
+ // packages/ui/atoms/ScrollAnimation/index.ts
23
17
  var ScrollAnimation_exports = {};
24
- __export(ScrollAnimation_exports, {
25
- AbstractScrollAnimation: () => import_AbstractScrollAnimation.default,
26
- ScrollAnimation: () => import_ScrollAnimation.default,
27
- ScrollAnimationChild: () => import_ScrollAnimationChild.default,
28
- ScrollAnimationChildWithEase: () => import_ScrollAnimationChildWithEase.default,
29
- ScrollAnimationParent: () => import_ScrollAnimationParent.default,
30
- ScrollAnimationWithEase: () => import_ScrollAnimationWithEase.default,
31
- animationScrollWithEase: () => import_animationScrollWithEase.default
32
- });
33
18
  module.exports = __toCommonJS(ScrollAnimation_exports);
34
- var import_AbstractScrollAnimation = __toESM(require("./AbstractScrollAnimation.cjs"), 1);
35
- var import_animationScrollWithEase = __toESM(require("./animationScrollWithEase.cjs"), 1);
36
- var import_ScrollAnimation = __toESM(require("./ScrollAnimation.cjs"), 1);
37
- var import_ScrollAnimationWithEase = __toESM(require("./ScrollAnimationWithEase.cjs"), 1);
38
- var import_ScrollAnimationChild = __toESM(require("./ScrollAnimationChild.cjs"), 1);
39
- var import_ScrollAnimationChildWithEase = __toESM(require("./ScrollAnimationChildWithEase.cjs"), 1);
40
- var import_ScrollAnimationParent = __toESM(require("./ScrollAnimationParent.cjs"), 1);
19
+ __reExport(ScrollAnimation_exports, require("./AbstractScrollAnimation.cjs"), module.exports);
20
+ __reExport(ScrollAnimation_exports, require("./animationScrollWithEase.cjs"), module.exports);
21
+ __reExport(ScrollAnimation_exports, require("./ScrollAnimation.cjs"), module.exports);
22
+ __reExport(ScrollAnimation_exports, require("./ScrollAnimationWithEase.cjs"), module.exports);
23
+ __reExport(ScrollAnimation_exports, require("./ScrollAnimationChild.cjs"), module.exports);
24
+ __reExport(ScrollAnimation_exports, require("./ScrollAnimationChildWithEase.cjs"), module.exports);
25
+ __reExport(ScrollAnimation_exports, require("./ScrollAnimationParent.cjs"), module.exports);
41
26
  if (module.exports.default) module.exports = module.exports.default;
@@ -1,7 +1,7 @@
1
- export { default as AbstractScrollAnimation } from "./AbstractScrollAnimation.js";
2
- export { default as animationScrollWithEase } from "./animationScrollWithEase.js";
3
- export { default as ScrollAnimation } from "./ScrollAnimation.js";
4
- export { default as ScrollAnimationWithEase } from "./ScrollAnimationWithEase.js";
5
- export { default as ScrollAnimationChild } from "./ScrollAnimationChild.js";
6
- export { default as ScrollAnimationChildWithEase } from "./ScrollAnimationChildWithEase.js";
7
- export { default as ScrollAnimationParent } from "./ScrollAnimationParent.js";
1
+ export * from './AbstractScrollAnimation.js';
2
+ export * from './animationScrollWithEase.js';
3
+ export * from './ScrollAnimation.js';
4
+ export * from './ScrollAnimationWithEase.js';
5
+ export * from './ScrollAnimationChild.js';
6
+ export * from './ScrollAnimationChildWithEase.js';
7
+ export * from './ScrollAnimationParent.js';
@@ -1 +1,7 @@
1
- import{default as t}from"./AbstractScrollAnimation.js";import{default as r}from"./animationScrollWithEase.js";import{default as e}from"./ScrollAnimation.js";import{default as f}from"./ScrollAnimationWithEase.js";import{default as s}from"./ScrollAnimationChild.js";import{default as c}from"./ScrollAnimationChildWithEase.js";import{default as u}from"./ScrollAnimationParent.js";export{t as AbstractScrollAnimation,e as ScrollAnimation,s as ScrollAnimationChild,c as ScrollAnimationChildWithEase,u as ScrollAnimationParent,f as ScrollAnimationWithEase,r as animationScrollWithEase};
1
+ export * from "./AbstractScrollAnimation.js";
2
+ export * from "./animationScrollWithEase.js";
3
+ export * from "./ScrollAnimation.js";
4
+ export * from "./ScrollAnimationWithEase.js";
5
+ export * from "./ScrollAnimationChild.js";
6
+ export * from "./ScrollAnimationChildWithEase.js";
7
+ export * from "./ScrollAnimationParent.js";
@@ -21,17 +21,20 @@ var __publicField = (obj, key, value) => {
21
21
  return value;
22
22
  };
23
23
 
24
- // packages/ui/atoms/ScrollReveal/ScrollReveal.js
24
+ // packages/ui/atoms/ScrollReveal/ScrollReveal.ts
25
25
  var ScrollReveal_exports = {};
26
26
  __export(ScrollReveal_exports, {
27
- default: () => ScrollReveal
27
+ ScrollReveal: () => ScrollReveal
28
28
  });
29
29
  module.exports = __toCommonJS(ScrollReveal_exports);
30
30
  var import_js_toolkit = require("@studiometa/js-toolkit");
31
31
  var import_primitives = require("../../primitives/index.cjs");
32
- var _ScrollReveal = class extends (0, import_js_toolkit.withMountWhenInView)(import_primitives.Transition) {
32
+ var _ScrollReveal = class extends (0, import_js_toolkit.withMountWhenInView)(
33
+ import_primitives.Transition
34
+ ) {
33
35
  get target() {
34
- return this.$refs.target ?? this.$el;
36
+ var _a;
37
+ return (_a = this.$refs.target) != null ? _a : this.$el;
35
38
  }
36
39
  mounted() {
37
40
  if (!this.$options.repeat) {
@@ -1,77 +1,34 @@
1
- declare const ScrollReveal_base: typeof import("@studiometa/js-toolkit").Base & (new (...a: any[]) => {
2
- readonly target: HTMLElement | HTMLElement[];
3
- enter(target?: HTMLElement | HTMLElement[]): Promise<void | void[]>; /**
4
- * Trigger the `enter` transition on mount.
5
- *
6
- * @this {ScrollRevealInterface}
7
- * @returns {void}
8
- */
9
- leave(target?: HTMLElement | HTMLElement[]): Promise<void | void[]>;
10
- });
11
- /**
12
- * @typedef {ScrollReveal & {
13
- * $refs: {
14
- * target?: HTMLElement,
15
- * },
16
- * $options: {
17
- * repeat: boolean;
18
- * }
19
- * }} ScrollRevealInterface
20
- */
1
+ import { ScrollServiceProps } from '@studiometa/js-toolkit';
2
+ import type { BaseProps, BaseConfig } from '@studiometa/js-toolkit';
3
+ import { Transition } from '../../primitives/index.js';
4
+ export interface ScrollRevealProps extends BaseProps {
5
+ $refs: {
6
+ target?: HTMLElement;
7
+ };
8
+ $options: {
9
+ repeat: boolean;
10
+ };
11
+ }
12
+ declare const ScrollReveal_base: import("@studiometa/js-toolkit").BaseDecorator<import("@studiometa/js-toolkit").WithMountWhenInViewInterface, Transition<BaseProps>, import("@studiometa/js-toolkit").WithMountWhenInViewProps>;
21
13
  /**
22
14
  * ScrollReveal class.
23
15
  */
24
- export default class ScrollReveal extends ScrollReveal_base {
16
+ export declare class ScrollReveal<T extends BaseProps = BaseProps> extends ScrollReveal_base<T & ScrollRevealProps> {
25
17
  /**
26
18
  * Config.
27
19
  */
28
- static config: {
29
- name: string;
30
- refs: string[];
31
- options: {
32
- enterKeep: {
33
- type: BooleanConstructor;
34
- default: boolean;
35
- };
36
- repeat: BooleanConstructor;
37
- intersectionObserver: {
38
- type: ObjectConstructor;
39
- default: () => {
40
- threshold: number[];
41
- };
42
- };
43
- };
44
- debug?: boolean;
45
- log?: boolean;
46
- emits?: string[];
47
- components?: import("@studiometa/js-toolkit/Base/index.js").BaseConfigComponents;
48
- };
20
+ static config: BaseConfig;
49
21
  /**
50
22
  * Vertical scroll direction.
51
- * @type {'UP'|'DOWN'|'NONE'}
52
23
  */
53
- static scrollDirectionY: 'UP' | 'DOWN' | 'NONE';
24
+ static scrollDirectionY: ScrollServiceProps['direction']['y'];
54
25
  /**
55
26
  * Get the transition target.
56
- *
57
- * @this {ScrollRevealInterface}
58
- * @returns {HTMLElement}
59
27
  */
60
28
  get target(): HTMLElement;
61
29
  /**
62
30
  * Trigger the `enter` transition on mount.
63
- *
64
- * @this {ScrollRevealInterface}
65
- * @returns {void}
66
31
  */
67
- mounted(this: ScrollRevealInterface): void;
32
+ mounted(): void;
68
33
  }
69
- export type ScrollRevealInterface = ScrollReveal & {
70
- $refs: {
71
- target?: HTMLElement;
72
- };
73
- $options: {
74
- repeat: boolean;
75
- };
76
- };
77
34
  export {};
@@ -1 +1,54 @@
1
- import{withMountWhenInView as i,useScroll as n}from"@studiometa/js-toolkit";import{Transition as t}from"../../primitives/index.js";class e extends i(t){static config={...t.config,name:"ScrollReveal",refs:["target"],options:{...t.config.options,enterKeep:{type:Boolean,default:!0},repeat:Boolean,intersectionObserver:{type:Object,default:()=>({threshold:[0,1]})}}};static scrollDirectionY="NONE";get target(){return this.$refs.target??this.$el}mounted(){if(!this.$options.repeat){this.enter(),this.$terminate();return}const r=n();r.has("ScrollRevealRepeat")||r.add("ScrollRevealRepeat",o=>{e.scrollDirectionY=o.direction.y}),e.scrollDirectionY!=="UP"&&this.enter()}}export{e as default};
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
+ import { withMountWhenInView, useScroll } from "@studiometa/js-toolkit";
8
+ import { Transition } from "../../primitives/index.js";
9
+ const _ScrollReveal = class extends withMountWhenInView(
10
+ Transition
11
+ ) {
12
+ get target() {
13
+ var _a;
14
+ return (_a = this.$refs.target) != null ? _a : this.$el;
15
+ }
16
+ mounted() {
17
+ if (!this.$options.repeat) {
18
+ this.enter();
19
+ this.$terminate();
20
+ return;
21
+ }
22
+ const scroll = useScroll();
23
+ if (!scroll.has("ScrollRevealRepeat")) {
24
+ scroll.add("ScrollRevealRepeat", (props) => {
25
+ _ScrollReveal.scrollDirectionY = props.direction.y;
26
+ });
27
+ }
28
+ if (_ScrollReveal.scrollDirectionY !== "UP") {
29
+ this.enter();
30
+ }
31
+ }
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");
52
+ export {
53
+ ScrollReveal
54
+ };
@@ -1,13 +1,7 @@
1
- var __create = Object.create;
2
1
  var __defProp = Object.defineProperty;
3
2
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
3
  var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __getProtoOf = Object.getPrototypeOf;
6
4
  var __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __export = (target, all) => {
8
- for (var name in all)
9
- __defProp(target, name, { get: all[name], enumerable: true });
10
- };
11
5
  var __copyProps = (to, from, except, desc) => {
12
6
  if (from && typeof from === "object" || typeof from === "function") {
13
7
  for (let key of __getOwnPropNames(from))
@@ -16,14 +10,11 @@ var __copyProps = (to, from, except, desc) => {
16
10
  }
17
11
  return to;
18
12
  };
19
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, mod));
13
+ var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
20
14
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
21
15
 
22
- // packages/ui/atoms/ScrollReveal/index.js
16
+ // packages/ui/atoms/ScrollReveal/index.ts
23
17
  var ScrollReveal_exports = {};
24
- __export(ScrollReveal_exports, {
25
- ScrollReveal: () => import_ScrollReveal.default
26
- });
27
18
  module.exports = __toCommonJS(ScrollReveal_exports);
28
- var import_ScrollReveal = __toESM(require("./ScrollReveal.cjs"), 1);
19
+ __reExport(ScrollReveal_exports, require("./ScrollReveal.cjs"), module.exports);
29
20
  if (module.exports.default) module.exports = module.exports.default;
@@ -1 +1 @@
1
- export { default as ScrollReveal } from "./ScrollReveal.js";
1
+ export * from './ScrollReveal.js';
@@ -1 +1 @@
1
- import{default as a}from"./ScrollReveal.js";export{a as ScrollReveal};
1
+ export * from "./ScrollReveal.js";
package/atoms/index.cjs CHANGED
@@ -1,13 +1,7 @@
1
- var __create = Object.create;
2
1
  var __defProp = Object.defineProperty;
3
2
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
3
  var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __getProtoOf = Object.getPrototypeOf;
6
4
  var __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __export = (target, all) => {
8
- for (var name in all)
9
- __defProp(target, name, { get: all[name], enumerable: true });
10
- };
11
5
  var __copyProps = (to, from, except, desc) => {
12
6
  if (from && typeof from === "object" || typeof from === "function") {
13
7
  for (let key of __getOwnPropNames(from))
@@ -17,24 +11,17 @@ var __copyProps = (to, from, except, desc) => {
17
11
  return to;
18
12
  };
19
13
  var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
20
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, mod));
21
14
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
22
15
 
23
- // packages/ui/atoms/index.js
16
+ // packages/ui/atoms/index.ts
24
17
  var atoms_exports = {};
25
- __export(atoms_exports, {
26
- AnchorScrollTo: () => import_AnchorScrollTo.default,
27
- Cursor: () => import_Cursor.default,
28
- LargeText: () => import_LargeText.default,
29
- LazyInclude: () => import_LazyInclude.default
30
- });
31
18
  module.exports = __toCommonJS(atoms_exports);
19
+ __reExport(atoms_exports, require("./AnchorScrollTo/index.cjs"), module.exports);
20
+ __reExport(atoms_exports, require("./Cursor/index.cjs"), module.exports);
32
21
  __reExport(atoms_exports, require("./Figure/index.cjs"), module.exports);
22
+ __reExport(atoms_exports, require("./LargeText/index.cjs"), module.exports);
23
+ __reExport(atoms_exports, require("./LazyInclude/index.cjs"), module.exports);
33
24
  __reExport(atoms_exports, require("./Prefetch/index.cjs"), module.exports);
34
25
  __reExport(atoms_exports, require("./ScrollAnimation/index.cjs"), module.exports);
35
26
  __reExport(atoms_exports, require("./ScrollReveal/index.cjs"), module.exports);
36
- var import_AnchorScrollTo = __toESM(require("./AnchorScrollTo/AnchorScrollTo.cjs"), 1);
37
- var import_Cursor = __toESM(require("./Cursor/Cursor.cjs"), 1);
38
- var import_LargeText = __toESM(require("./LargeText/LargeText.cjs"), 1);
39
- var import_LazyInclude = __toESM(require("./LazyInclude/LazyInclude.cjs"), 1);
40
27
  if (module.exports.default) module.exports = module.exports.default;
package/atoms/index.d.ts CHANGED
@@ -1,8 +1,8 @@
1
- export * from "./Figure/index.js";
2
- export * from "./Prefetch/index.js";
3
- export * from "./ScrollAnimation/index.js";
4
- export * from "./ScrollReveal/index.js";
5
- export { default as AnchorScrollTo } from "./AnchorScrollTo/AnchorScrollTo.js";
6
- export { default as Cursor } from "./Cursor/Cursor.js";
7
- export { default as LargeText } from "./LargeText/LargeText.js";
8
- export { default as LazyInclude } from "./LazyInclude/LazyInclude.js";
1
+ export * from './AnchorScrollTo/index.js';
2
+ export * from './Cursor/index.js';
3
+ export * from './Figure/index.js';
4
+ export * from './LargeText/index.js';
5
+ export * from './LazyInclude/index.js';
6
+ export * from './Prefetch/index.js';
7
+ export * from './ScrollAnimation/index.js';
8
+ export * from './ScrollReveal/index.js';
package/atoms/index.js CHANGED
@@ -1 +1,8 @@
1
- export*from"./Figure/index.js";export*from"./Prefetch/index.js";export*from"./ScrollAnimation/index.js";export*from"./ScrollReveal/index.js";import{default as x}from"./AnchorScrollTo/AnchorScrollTo.js";import{default as p}from"./Cursor/Cursor.js";import{default as u}from"./LargeText/LargeText.js";import{default as s}from"./LazyInclude/LazyInclude.js";export{x as AnchorScrollTo,p as Cursor,u as LargeText,s as LazyInclude};
1
+ export * from "./AnchorScrollTo/index.js";
2
+ export * from "./Cursor/index.js";
3
+ export * from "./Figure/index.js";
4
+ export * from "./LargeText/index.js";
5
+ export * from "./LazyInclude/index.js";
6
+ export * from "./Prefetch/index.js";
7
+ export * from "./ScrollAnimation/index.js";
8
+ export * from "./ScrollReveal/index.js";
@@ -1,13 +1,7 @@
1
- var __create = Object.create;
2
1
  var __defProp = Object.defineProperty;
3
2
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
3
  var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __getProtoOf = Object.getPrototypeOf;
6
4
  var __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __export = (target, all) => {
8
- for (var name in all)
9
- __defProp(target, name, { get: all[name], enumerable: true });
10
- };
11
5
  var __copyProps = (to, from, except, desc) => {
12
6
  if (from && typeof from === "object" || typeof from === "function") {
13
7
  for (let key of __getOwnPropNames(from))
@@ -16,14 +10,11 @@ var __copyProps = (to, from, except, desc) => {
16
10
  }
17
11
  return to;
18
12
  };
19
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, mod));
13
+ var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
20
14
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
21
15
 
22
- // packages/ui/decorators/index.js
16
+ // packages/ui/decorators/index.ts
23
17
  var decorators_exports = {};
24
- __export(decorators_exports, {
25
- withTransition: () => import_withTransition.default
26
- });
27
18
  module.exports = __toCommonJS(decorators_exports);
28
- var import_withTransition = __toESM(require("./withTransition.cjs"), 1);
19
+ __reExport(decorators_exports, require("./withTransition.cjs"), module.exports);
29
20
  if (module.exports.default) module.exports = module.exports.default;
@@ -1 +1 @@
1
- export { default as withTransition } from "./withTransition.js";
1
+ export * from './withTransition.js';
@@ -1 +1 @@
1
- import{default as i}from"./withTransition.js";export{i as withTransition};
1
+ export * from "./withTransition.js";
@@ -2,6 +2,7 @@ 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;
5
6
  var __export = (target, all) => {
6
7
  for (var name in all)
7
8
  __defProp(target, name, { get: all[name], enumerable: true });
@@ -15,52 +16,66 @@ var __copyProps = (to, from, except, desc) => {
15
16
  return to;
16
17
  };
17
18
  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
+ };
18
23
 
19
- // packages/ui/decorators/withTransition.js
24
+ // packages/ui/decorators/withTransition.ts
20
25
  var withTransition_exports = {};
21
26
  __export(withTransition_exports, {
22
- default: () => withTransition
27
+ withTransition: () => withTransition
23
28
  });
24
29
  module.exports = __toCommonJS(withTransition_exports);
25
30
  var import_utils = require("@studiometa/js-toolkit/utils");
26
- function delegateTransition(element, name, endMode) {
27
- return (0, import_utils.isArray)(element) ? Promise.all(element.map((el) => (0, import_utils.transition)(el, name, endMode))) : (0, import_utils.transition)(element, name, endMode);
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);
28
35
  }
29
36
  function withTransition(BaseClass) {
30
37
  class Transition extends BaseClass {
31
- static config = {
32
- name: "Transition",
33
- options: {
34
- enterFrom: String,
35
- enterActive: String,
36
- enterTo: String,
37
- enterKeep: Boolean,
38
- leaveFrom: String,
39
- leaveActive: String,
40
- leaveTo: String,
41
- leaveKeep: Boolean
42
- }
43
- };
44
38
  get target() {
45
39
  return this.$el;
46
40
  }
47
- enter(target) {
41
+ async enter(target) {
48
42
  const { enterFrom, enterActive, enterTo, enterKeep, leaveTo } = this.$options;
49
- return delegateTransition(target ?? this.target, {
50
- from: (leaveTo + " " + enterFrom).trim(),
51
- active: enterActive,
52
- to: enterTo
53
- }, enterKeep && "keep");
43
+ await delegateTransition(
44
+ target != null ? target : this.target,
45
+ {
46
+ from: (leaveTo + " " + enterFrom).trim(),
47
+ active: enterActive,
48
+ to: enterTo
49
+ },
50
+ enterKeep && "keep"
51
+ );
54
52
  }
55
- leave(target) {
53
+ async leave(target) {
56
54
  const { leaveFrom, leaveActive, leaveTo, leaveKeep, enterTo } = this.$options;
57
- return delegateTransition(target ?? this.target, {
58
- from: (enterTo + " " + leaveFrom).trim(),
59
- active: leaveActive,
60
- to: leaveTo
61
- }, leaveKeep && "keep");
55
+ await delegateTransition(
56
+ target != null ? target : this.target,
57
+ {
58
+ from: (enterTo + " " + leaveFrom).trim(),
59
+ active: leaveActive,
60
+ to: leaveTo
61
+ },
62
+ leaveKeep && "keep"
63
+ );
62
64
  }
63
65
  }
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
+ });
64
79
  return Transition;
65
80
  }
66
81
  if (module.exports.default) module.exports = module.exports.default;