@studiometa/ui 0.2.2 → 0.2.5

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 (148) hide show
  1. package/atoms/AnchorScrollTo/AnchorScrollTo.cjs +8 -13
  2. package/atoms/AnchorScrollTo/AnchorScrollTo.js +1 -26
  3. package/atoms/Cursor/Cursor.cjs +14 -22
  4. package/atoms/Cursor/Cursor.d.ts +2 -2
  5. package/atoms/Cursor/Cursor.js +1 -103
  6. package/atoms/Figure/Figure.cjs +20 -16
  7. package/atoms/Figure/Figure.d.ts +19 -1
  8. package/atoms/Figure/Figure.js +1 -27
  9. package/atoms/Figure/FigureTwicPics.cjs +72 -0
  10. package/atoms/Figure/FigureTwicPics.d.ts +48 -0
  11. package/atoms/Figure/FigureTwicPics.js +1 -0
  12. package/atoms/Figure/index.cjs +31 -0
  13. package/atoms/Figure/index.d.ts +2 -0
  14. package/atoms/Figure/index.js +1 -0
  15. package/atoms/LargeText/LargeText.cjs +36 -28
  16. package/atoms/LargeText/LargeText.d.ts +27 -4
  17. package/atoms/LargeText/LargeText.js +1 -48
  18. package/atoms/LazyInclude/LazyInclude.cjs +8 -13
  19. package/atoms/LazyInclude/LazyInclude.d.ts +4 -4
  20. package/atoms/LazyInclude/LazyInclude.js +1 -46
  21. package/atoms/Prefetch/AbstractPrefetch.cjs +8 -13
  22. package/atoms/Prefetch/AbstractPrefetch.d.ts +1 -1
  23. package/atoms/Prefetch/AbstractPrefetch.js +1 -58
  24. package/atoms/Prefetch/PrefetchWhenOver.cjs +12 -34
  25. package/atoms/Prefetch/PrefetchWhenOver.d.ts +1 -1
  26. package/atoms/Prefetch/PrefetchWhenOver.js +1 -35
  27. package/atoms/Prefetch/PrefetchWhenVisible.cjs +12 -34
  28. package/atoms/Prefetch/PrefetchWhenVisible.d.ts +1 -1
  29. package/atoms/Prefetch/PrefetchWhenVisible.js +1 -36
  30. package/atoms/Prefetch/index.cjs +9 -16
  31. package/atoms/Prefetch/index.js +1 -8
  32. package/atoms/ScrollAnimation/AbstractScrollAnimation.cjs +126 -0
  33. package/atoms/ScrollAnimation/AbstractScrollAnimation.d.ts +133 -0
  34. package/atoms/ScrollAnimation/AbstractScrollAnimation.js +1 -0
  35. package/atoms/ScrollAnimation/ScrollAnimation.cjs +51 -0
  36. package/atoms/ScrollAnimation/ScrollAnimation.d.ts +55 -0
  37. package/atoms/ScrollAnimation/ScrollAnimation.js +1 -0
  38. package/atoms/ScrollAnimation/ScrollAnimationChild.cjs +51 -0
  39. package/atoms/ScrollAnimation/ScrollAnimationChild.d.ts +13 -0
  40. package/atoms/ScrollAnimation/ScrollAnimationChild.js +1 -0
  41. package/atoms/ScrollAnimation/ScrollAnimationChildWithEase.cjs +41 -0
  42. package/atoms/ScrollAnimation/ScrollAnimationChildWithEase.d.ts +6 -0
  43. package/atoms/ScrollAnimation/ScrollAnimationChildWithEase.js +1 -0
  44. package/atoms/ScrollAnimation/ScrollAnimationParent.cjs +48 -0
  45. package/atoms/ScrollAnimation/ScrollAnimationParent.d.ts +35 -0
  46. package/atoms/ScrollAnimation/ScrollAnimationParent.js +1 -0
  47. package/atoms/ScrollAnimation/ScrollAnimationWithEase.cjs +41 -0
  48. package/atoms/ScrollAnimation/ScrollAnimationWithEase.d.ts +6 -0
  49. package/atoms/ScrollAnimation/ScrollAnimationWithEase.js +1 -0
  50. package/atoms/ScrollAnimation/animationScrollWithEase.cjs +70 -0
  51. package/atoms/ScrollAnimation/animationScrollWithEase.d.ts +11 -0
  52. package/atoms/ScrollAnimation/animationScrollWithEase.js +1 -0
  53. package/atoms/ScrollAnimation/index.cjs +41 -0
  54. package/atoms/ScrollAnimation/index.d.ts +7 -0
  55. package/atoms/ScrollAnimation/index.js +1 -0
  56. package/atoms/index.cjs +13 -19
  57. package/atoms/index.d.ts +2 -1
  58. package/atoms/index.js +1 -13
  59. package/index.cjs +11 -15
  60. package/index.js +1 -3
  61. package/molecules/Accordion/Accordion.cjs +12 -34
  62. package/molecules/Accordion/Accordion.js +1 -35
  63. package/molecules/Accordion/AccordionCore.cjs +8 -13
  64. package/molecules/Accordion/AccordionCore.d.ts +2 -2
  65. package/molecules/Accordion/AccordionCore.js +1 -34
  66. package/molecules/Accordion/AccordionItem.cjs +70 -114
  67. package/molecules/Accordion/AccordionItem.d.ts +7 -6
  68. package/molecules/Accordion/AccordionItem.js +1 -178
  69. package/molecules/Menu/Menu.cjs +148 -0
  70. package/molecules/Menu/Menu.d.ts +140 -0
  71. package/molecules/Menu/Menu.js +1 -0
  72. package/molecules/Menu/MenuBtn.cjs +53 -0
  73. package/molecules/Menu/MenuBtn.d.ts +39 -0
  74. package/molecules/Menu/MenuBtn.js +1 -0
  75. package/molecules/Menu/MenuList.cjs +134 -0
  76. package/molecules/Menu/MenuList.d.ts +101 -0
  77. package/molecules/Menu/MenuList.js +1 -0
  78. package/molecules/Menu/index.cjs +33 -0
  79. package/molecules/Menu/index.d.ts +3 -0
  80. package/molecules/Menu/index.js +1 -0
  81. package/molecules/Modal/Modal.cjs +42 -71
  82. package/molecules/Modal/Modal.d.ts +5 -5
  83. package/molecules/Modal/Modal.js +1 -150
  84. package/molecules/Modal/ModalWithTransition.cjs +13 -43
  85. package/molecules/Modal/ModalWithTransition.js +1 -69
  86. package/molecules/Panel/Panel.cjs +42 -76
  87. package/molecules/Panel/Panel.js +1 -117
  88. package/molecules/Slider/AbstractSliderChild.cjs +10 -20
  89. package/molecules/Slider/AbstractSliderChild.d.ts +6 -2
  90. package/molecules/Slider/AbstractSliderChild.js +1 -43
  91. package/molecules/Slider/Slider.cjs +14 -24
  92. package/molecules/Slider/Slider.d.ts +6 -6
  93. package/molecules/Slider/Slider.js +1 -209
  94. package/molecules/Slider/SliderBtn.cjs +9 -16
  95. package/molecules/Slider/SliderBtn.d.ts +1 -1
  96. package/molecules/Slider/SliderBtn.js +1 -34
  97. package/molecules/Slider/SliderCount.cjs +9 -16
  98. package/molecules/Slider/SliderCount.js +1 -19
  99. package/molecules/Slider/SliderDots.cjs +9 -16
  100. package/molecules/Slider/SliderDots.js +1 -24
  101. package/molecules/Slider/SliderDrag.cjs +8 -13
  102. package/molecules/Slider/SliderDrag.js +1 -19
  103. package/molecules/Slider/SliderItem.cjs +14 -37
  104. package/molecules/Slider/SliderItem.js +1 -105
  105. package/molecules/Slider/SliderProgress.cjs +9 -16
  106. package/molecules/Slider/SliderProgress.js +1 -23
  107. package/molecules/Slider/index.cjs +9 -16
  108. package/molecules/Slider/index.js +1 -18
  109. package/molecules/Sticky/Sticky.cjs +11 -19
  110. package/molecules/Sticky/Sticky.d.ts +8 -8
  111. package/molecules/Sticky/Sticky.js +1 -107
  112. package/molecules/TableOfContent/TableOfContent.cjs +9 -16
  113. package/molecules/TableOfContent/TableOfContent.d.ts +1 -1
  114. package/molecules/TableOfContent/TableOfContent.js +1 -42
  115. package/molecules/TableOfContent/TableOfContentAnchor.cjs +8 -13
  116. package/molecules/TableOfContent/TableOfContentAnchor.js +1 -39
  117. package/molecules/TableOfContent/index.cjs +9 -16
  118. package/molecules/TableOfContent/index.js +1 -6
  119. package/molecules/Tabs/Tabs.cjs +54 -82
  120. package/molecules/Tabs/Tabs.d.ts +5 -4
  121. package/molecules/Tabs/Tabs.js +1 -126
  122. package/molecules/index.cjs +13 -18
  123. package/molecules/index.d.ts +1 -0
  124. package/molecules/index.js +1 -18
  125. package/organisms/Frame/Frame.cjs +67 -98
  126. package/organisms/Frame/Frame.d.ts +3 -3
  127. package/organisms/Frame/Frame.js +1 -171
  128. package/organisms/Frame/FrameAnchor.cjs +8 -13
  129. package/organisms/Frame/FrameAnchor.js +1 -22
  130. package/organisms/Frame/FrameForm.cjs +8 -13
  131. package/organisms/Frame/FrameForm.js +1 -22
  132. package/organisms/Frame/FrameTarget.cjs +31 -73
  133. package/organisms/Frame/FrameTarget.js +1 -109
  134. package/organisms/Frame/index.cjs +9 -16
  135. package/organisms/Frame/index.js +1 -10
  136. package/organisms/index.cjs +9 -13
  137. package/organisms/index.js +1 -1
  138. package/package.json +3 -4
  139. package/primitives/Draggable/Draggable.cjs +15 -28
  140. package/primitives/Draggable/Draggable.d.ts +0 -5
  141. package/primitives/Draggable/Draggable.js +1 -38
  142. package/primitives/Sentinel/Sentinel.cjs +8 -13
  143. package/primitives/Sentinel/Sentinel.js +1 -15
  144. package/primitives/Transition/Transition.cjs +12 -17
  145. package/primitives/Transition/Transition.d.ts +2 -4
  146. package/primitives/Transition/Transition.js +1 -45
  147. package/primitives/index.cjs +9 -16
  148. package/primitives/index.js +1 -8
@@ -0,0 +1,70 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: true });
8
+ };
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
+ }
15
+ return to;
16
+ };
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
+
19
+ // packages/ui/atoms/ScrollAnimation/animationScrollWithEase.js
20
+ var animationScrollWithEase_exports = {};
21
+ __export(animationScrollWithEase_exports, {
22
+ default: () => animationScrollWithEase
23
+ });
24
+ module.exports = __toCommonJS(animationScrollWithEase_exports);
25
+ var import_utils = require("@studiometa/js-toolkit/utils");
26
+ var eases = {
27
+ outQuad: import_utils.easeOutQuad,
28
+ inQuad: import_utils.easeInQuad,
29
+ inOutQuad: import_utils.easeInOutQuad,
30
+ outCubic: import_utils.easeOutCubic,
31
+ inCubic: import_utils.easeInCubic,
32
+ inOutCubic: import_utils.easeInOutCubic,
33
+ outQuart: import_utils.easeOutQuart,
34
+ inQuart: import_utils.easeInQuart,
35
+ inOutQuart: import_utils.easeInOutQuart,
36
+ outQuint: import_utils.easeOutQuint,
37
+ inQuint: import_utils.easeInQuint,
38
+ inOutQuint: import_utils.easeInOutQuint,
39
+ outSine: import_utils.easeOutSine,
40
+ inSine: import_utils.easeInSine,
41
+ inOutSine: import_utils.easeInOutSine,
42
+ outCirc: import_utils.easeOutCirc,
43
+ inCirc: import_utils.easeInCirc,
44
+ inOutCirc: import_utils.easeInOutCirc,
45
+ outExpo: import_utils.easeOutExpo,
46
+ inExpo: import_utils.easeInExpo,
47
+ inOutExpo: import_utils.easeInOutExpo
48
+ };
49
+ function animationScrollWithEase(ScrollAnimation) {
50
+ return class extends ScrollAnimation {
51
+ static config = {
52
+ ...ScrollAnimation.config,
53
+ name: `${ScrollAnimation.config.name}WithEase`,
54
+ options: {
55
+ ...ScrollAnimation.config.options,
56
+ ease: {
57
+ type: String,
58
+ default: "outExpo"
59
+ }
60
+ }
61
+ };
62
+ render(progress) {
63
+ if (eases[this.$options.ease]) {
64
+ progress = eases[this.$options.ease](progress);
65
+ }
66
+ super.render(progress);
67
+ }
68
+ };
69
+ }
70
+ if (module.exports.default) module.exports = module.exports.default;
@@ -0,0 +1,11 @@
1
+ /**
2
+ * @typedef {import('./AbstractScrollAnimation.js').AbstractScrollAnimationConstructor} AbstractScrollAnimationConstructor
3
+ */
4
+ /**
5
+ * 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
+ */
10
+ export default function animationScrollWithEase<T extends typeof import("./AbstractScrollAnimation.js").default>(ScrollAnimation: T): T;
11
+ export type AbstractScrollAnimationConstructor = import('./AbstractScrollAnimation.js').AbstractScrollAnimationConstructor;
@@ -0,0 +1 @@
1
+ import{easeOutQuad as n,easeInQuad as i,easeInOutQuad as a,easeOutCubic as s,easeInCubic as o,easeInOutCubic as O,easeOutQuart as c,easeInQuart as Q,easeInOutQuart as r,easeOutQuint as I,easeInQuint as p,easeInOutQuint as C,easeOutSine as d,easeInSine as f,easeInOutSine as x,easeOutCirc as E,easeInCirc as b,easeInOutCirc as S,easeOutExpo as h,easeInExpo as g,easeInOutExpo as $}from"@studiometa/js-toolkit/utils";const u={outQuad:n,inQuad:i,inOutQuad:a,outCubic:s,inCubic:o,inOutCubic:O,outQuart:c,inQuart:Q,inOutQuart:r,outQuint:I,inQuint:p,inOutQuint:C,outSine:d,inSine:f,inOutSine:x,outCirc:E,inCirc:b,inOutCirc:S,outExpo:h,inExpo:g,inOutExpo:$};function m(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){u[this.$options.ease]&&(t=u[this.$options.ease](t)),super.render(t)}}}export{m as default};
@@ -0,0 +1,41 @@
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
6
+ 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
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
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));
20
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
21
+
22
+ // packages/ui/atoms/ScrollAnimation/index.js
23
+ 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
+ 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);
41
+ if (module.exports.default) module.exports = module.exports.default;
@@ -0,0 +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";
@@ -0,0 +1 @@
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};
package/atoms/index.cjs CHANGED
@@ -4,42 +4,36 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
4
  var __getOwnPropNames = Object.getOwnPropertyNames;
5
5
  var __getProtoOf = Object.getPrototypeOf;
6
6
  var __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
8
7
  var __export = (target, all) => {
9
8
  for (var name in all)
10
9
  __defProp(target, name, { get: all[name], enumerable: true });
11
10
  };
12
- var __reExport = (target, module2, copyDefault, desc) => {
13
- if (module2 && typeof module2 === "object" || typeof module2 === "function") {
14
- for (let key of __getOwnPropNames(module2))
15
- if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
16
- __defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
16
  }
18
- return target;
17
+ return to;
19
18
  };
20
- var __toESM = (module2, isNodeMode) => {
21
- return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", !isNodeMode && module2 && module2.__esModule ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2);
22
- };
23
- var __toCommonJS = /* @__PURE__ */ ((cache) => {
24
- return (module2, temp) => {
25
- return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
26
- };
27
- })(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
19
+ 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
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
22
 
29
23
  // packages/ui/atoms/index.js
30
24
  var atoms_exports = {};
31
25
  __export(atoms_exports, {
32
26
  AnchorScrollTo: () => import_AnchorScrollTo.default,
33
27
  Cursor: () => import_Cursor.default,
34
- Figure: () => import_Figure.default,
35
28
  LargeText: () => import_LargeText.default,
36
29
  LazyInclude: () => import_LazyInclude.default
37
30
  });
38
- __reExport(atoms_exports, require("./Prefetch/index.cjs"));
31
+ module.exports = __toCommonJS(atoms_exports);
32
+ __reExport(atoms_exports, require("./Figure/index.cjs"), module.exports);
33
+ __reExport(atoms_exports, require("./Prefetch/index.cjs"), module.exports);
34
+ __reExport(atoms_exports, require("./ScrollAnimation/index.cjs"), module.exports);
39
35
  var import_AnchorScrollTo = __toESM(require("./AnchorScrollTo/AnchorScrollTo.cjs"), 1);
40
36
  var import_Cursor = __toESM(require("./Cursor/Cursor.cjs"), 1);
41
- var import_Figure = __toESM(require("./Figure/Figure.cjs"), 1);
42
37
  var import_LargeText = __toESM(require("./LargeText/LargeText.cjs"), 1);
43
38
  var import_LazyInclude = __toESM(require("./LazyInclude/LazyInclude.cjs"), 1);
44
- module.exports = __toCommonJS(atoms_exports);
45
39
  if (module.exports.default) module.exports = module.exports.default;
package/atoms/index.d.ts CHANGED
@@ -1,6 +1,7 @@
1
+ export * from "./Figure/index.js";
1
2
  export * from "./Prefetch/index.js";
3
+ export * from "./ScrollAnimation/index.js";
2
4
  export { default as AnchorScrollTo } from "./AnchorScrollTo/AnchorScrollTo.js";
3
5
  export { default as Cursor } from "./Cursor/Cursor.js";
4
- export { default as Figure } from "./Figure/Figure.js";
5
6
  export { default as LargeText } from "./LargeText/LargeText.js";
6
7
  export { default as LazyInclude } from "./LazyInclude/LazyInclude.js";
package/atoms/index.js CHANGED
@@ -1,13 +1 @@
1
- export * from "./Prefetch/index.js";
2
- import { default as default2 } from "./AnchorScrollTo/AnchorScrollTo.js";
3
- import { default as default3 } from "./Cursor/Cursor.js";
4
- import { default as default4 } from "./Figure/Figure.js";
5
- import { default as default5 } from "./LargeText/LargeText.js";
6
- import { default as default6 } from "./LazyInclude/LazyInclude.js";
7
- export {
8
- default2 as AnchorScrollTo,
9
- default3 as Cursor,
10
- default4 as Figure,
11
- default5 as LargeText,
12
- default6 as LazyInclude
13
- };
1
+ export*from"./Figure/index.js";export*from"./Prefetch/index.js";export*from"./ScrollAnimation/index.js";import{default as a}from"./AnchorScrollTo/AnchorScrollTo.js";import{default as l}from"./Cursor/Cursor.js";import{default as p}from"./LargeText/LargeText.js";import{default as d}from"./LazyInclude/LazyInclude.js";export{a as AnchorScrollTo,l as Cursor,p as LargeText,d as LazyInclude};
package/index.cjs CHANGED
@@ -2,25 +2,21 @@ 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 __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
6
- var __reExport = (target, module2, copyDefault, desc) => {
7
- if (module2 && typeof module2 === "object" || typeof module2 === "function") {
8
- for (let key of __getOwnPropNames(module2))
9
- if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
10
- __defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
5
+ var __copyProps = (to, from, except, desc) => {
6
+ if (from && typeof from === "object" || typeof from === "function") {
7
+ for (let key of __getOwnPropNames(from))
8
+ if (!__hasOwnProp.call(to, key) && key !== except)
9
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
11
10
  }
12
- return target;
11
+ return to;
13
12
  };
14
- var __toCommonJS = /* @__PURE__ */ ((cache) => {
15
- return (module2, temp) => {
16
- return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
17
- };
18
- })(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
13
+ var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
14
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
15
 
20
16
  // packages/ui/index.js
21
17
  var ui_exports = {};
22
- __reExport(ui_exports, require("./primitives/index.cjs"));
23
- __reExport(ui_exports, require("./atoms/index.cjs"));
24
- __reExport(ui_exports, require("./molecules/index.cjs"));
25
18
  module.exports = __toCommonJS(ui_exports);
19
+ __reExport(ui_exports, require("./primitives/index.cjs"), module.exports);
20
+ __reExport(ui_exports, require("./atoms/index.cjs"), module.exports);
21
+ __reExport(ui_exports, require("./molecules/index.cjs"), module.exports);
26
22
  if (module.exports.default) module.exports = module.exports.default;
package/index.js CHANGED
@@ -1,3 +1 @@
1
- export * from "./primitives/index.js";
2
- export * from "./atoms/index.js";
3
- export * from "./molecules/index.js";
1
+ export*from"./primitives/index.js";export*from"./atoms/index.js";export*from"./molecules/index.js";
@@ -1,47 +1,24 @@
1
1
  var __create = Object.create;
2
2
  var __defProp = Object.defineProperty;
3
- var __defProps = Object.defineProperties;
4
3
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
- var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
6
4
  var __getOwnPropNames = Object.getOwnPropertyNames;
7
- var __getOwnPropSymbols = Object.getOwnPropertySymbols;
8
5
  var __getProtoOf = Object.getPrototypeOf;
9
6
  var __hasOwnProp = Object.prototype.hasOwnProperty;
10
- var __propIsEnum = Object.prototype.propertyIsEnumerable;
11
7
  var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
12
- var __spreadValues = (a, b) => {
13
- for (var prop in b || (b = {}))
14
- if (__hasOwnProp.call(b, prop))
15
- __defNormalProp(a, prop, b[prop]);
16
- if (__getOwnPropSymbols)
17
- for (var prop of __getOwnPropSymbols(b)) {
18
- if (__propIsEnum.call(b, prop))
19
- __defNormalProp(a, prop, b[prop]);
20
- }
21
- return a;
22
- };
23
- var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
24
- var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
25
8
  var __export = (target, all) => {
26
9
  for (var name in all)
27
10
  __defProp(target, name, { get: all[name], enumerable: true });
28
11
  };
29
- var __reExport = (target, module2, copyDefault, desc) => {
30
- if (module2 && typeof module2 === "object" || typeof module2 === "function") {
31
- for (let key of __getOwnPropNames(module2))
32
- if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
33
- __defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(to, key) && key !== except)
16
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
34
17
  }
35
- return target;
36
- };
37
- var __toESM = (module2, isNodeMode) => {
38
- return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", !isNodeMode && module2 && module2.__esModule ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2);
18
+ return to;
39
19
  };
40
- var __toCommonJS = /* @__PURE__ */ ((cache) => {
41
- return (module2, temp) => {
42
- return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
43
- };
44
- })(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
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
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
45
22
  var __publicField = (obj, key, value) => {
46
23
  __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
47
24
  return value;
@@ -52,14 +29,15 @@ var Accordion_exports = {};
52
29
  __export(Accordion_exports, {
53
30
  default: () => Accordion
54
31
  });
32
+ module.exports = __toCommonJS(Accordion_exports);
55
33
  var import_AccordionCore = __toESM(require("./AccordionCore.cjs"), 1);
56
34
  var import_AccordionItem = __toESM(require("./AccordionItem.cjs"), 1);
57
35
  var Accordion = class extends import_AccordionCore.default {
58
36
  };
59
- __publicField(Accordion, "config", __spreadProps(__spreadValues({}, import_AccordionCore.default.config), {
37
+ __publicField(Accordion, "config", {
38
+ ...import_AccordionCore.default.config,
60
39
  components: {
61
40
  AccordionItem: import_AccordionItem.default
62
41
  }
63
- }));
64
- module.exports = __toCommonJS(Accordion_exports);
42
+ });
65
43
  if (module.exports.default) module.exports = module.exports.default;
@@ -1,35 +1 @@
1
- var __defProp = Object.defineProperty;
2
- var __defProps = Object.defineProperties;
3
- var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
4
- var __getOwnPropSymbols = Object.getOwnPropertySymbols;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __propIsEnum = Object.prototype.propertyIsEnumerable;
7
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
8
- var __spreadValues = (a, b) => {
9
- for (var prop in b || (b = {}))
10
- if (__hasOwnProp.call(b, prop))
11
- __defNormalProp(a, prop, b[prop]);
12
- if (__getOwnPropSymbols)
13
- for (var prop of __getOwnPropSymbols(b)) {
14
- if (__propIsEnum.call(b, prop))
15
- __defNormalProp(a, prop, b[prop]);
16
- }
17
- return a;
18
- };
19
- var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
- var __publicField = (obj, key, value) => {
21
- __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
22
- return value;
23
- };
24
- import AccordionCore from "./AccordionCore.js";
25
- import AccordionItem from "./AccordionItem.js";
26
- class Accordion extends AccordionCore {
27
- }
28
- __publicField(Accordion, "config", __spreadProps(__spreadValues({}, AccordionCore.config), {
29
- components: {
30
- AccordionItem
31
- }
32
- }));
33
- export {
34
- Accordion as default
35
- };
1
+ import o from"./AccordionCore.js";import c from"./AccordionItem.js";class r extends o{static config={...o.config,components:{AccordionItem:c}}}export{r as default};
@@ -3,24 +3,19 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
3
  var __getOwnPropNames = Object.getOwnPropertyNames;
4
4
  var __hasOwnProp = Object.prototype.hasOwnProperty;
5
5
  var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
6
- var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
7
6
  var __export = (target, all) => {
8
7
  for (var name in all)
9
8
  __defProp(target, name, { get: all[name], enumerable: true });
10
9
  };
11
- var __reExport = (target, module2, copyDefault, desc) => {
12
- if (module2 && typeof module2 === "object" || typeof module2 === "function") {
13
- for (let key of __getOwnPropNames(module2))
14
- if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
15
- __defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
15
  }
17
- return target;
16
+ return to;
18
17
  };
19
- var __toCommonJS = /* @__PURE__ */ ((cache) => {
20
- return (module2, temp) => {
21
- return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
22
- };
23
- })(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
24
19
  var __publicField = (obj, key, value) => {
25
20
  __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
26
21
  return value;
@@ -31,6 +26,7 @@ var AccordionCore_exports = {};
31
26
  __export(AccordionCore_exports, {
32
27
  default: () => Accordion
33
28
  });
29
+ module.exports = __toCommonJS(AccordionCore_exports);
34
30
  var import_js_toolkit = require("@studiometa/js-toolkit");
35
31
  var Accordion = class extends import_js_toolkit.Base {
36
32
  onAccordionItemOpen(index) {
@@ -56,5 +52,4 @@ __publicField(Accordion, "config", {
56
52
  }
57
53
  }
58
54
  });
59
- module.exports = __toCommonJS(AccordionCore_exports);
60
55
  if (module.exports.default) module.exports = module.exports.default;
@@ -51,13 +51,13 @@ export default class Accordion extends Base {
51
51
  * @param {number} index
52
52
  * @return {void}
53
53
  */
54
- onAccordionItemOpen(index: number): void;
54
+ onAccordionItemOpen(this: AccordionInterface, index: number): void;
55
55
  /**
56
56
  * @this {AccordionInterface}
57
57
  * @param {number} index
58
58
  * @return {void}
59
59
  */
60
- onAccordionItemClose(index: number): void;
60
+ onAccordionItemClose(this: AccordionInterface, index: number): void;
61
61
  }
62
62
  export type AccordionItem = import('./AccordionItem').default;
63
63
  export type AccordionItemOptions = import('./AccordionItem').AccordionItemOptions;
@@ -1,34 +1 @@
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 { Base } from "@studiometa/js-toolkit";
8
- class Accordion extends Base {
9
- onAccordionItemOpen(index) {
10
- const accordionItem = this.$children.AccordionItem[index];
11
- this.$emit("open", accordionItem, index);
12
- if (this.$options.autoclose) {
13
- this.$children.AccordionItem.filter((el, i) => index !== i).forEach((item) => item.close());
14
- }
15
- }
16
- onAccordionItemClose(index) {
17
- const accordionItem = this.$children.AccordionItem[index];
18
- this.$emit("close", accordionItem, index);
19
- }
20
- }
21
- __publicField(Accordion, "config", {
22
- name: "Accordion",
23
- emits: ["open", "close"],
24
- options: {
25
- autoclose: Boolean,
26
- item: {
27
- type: Object,
28
- default: () => ({})
29
- }
30
- }
31
- });
32
- export {
33
- Accordion as default
34
- };
1
+ import{Base as i}from"@studiometa/js-toolkit";class n extends i{static config={name:"Accordion",emits:["open","close"],options:{autoclose:Boolean,item:{type:Object,default:()=>({})}}};onAccordionItemOpen(o){const c=this.$children.AccordionItem[o];this.$emit("open",c,o),this.$options.autoclose&&this.$children.AccordionItem.filter((t,e)=>o!==e).forEach(t=>t.close())}onAccordionItemClose(o){const c=this.$children.AccordionItem[o];this.$emit("close",c,o)}}export{n as default};