@studiometa/ui 0.2.1 → 0.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/atoms/AnchorScrollTo/AnchorScrollTo.cjs +47 -0
- package/atoms/AnchorScrollTo/AnchorScrollTo.d.ts +31 -0
- package/atoms/AnchorScrollTo/AnchorScrollTo.js +1 -0
- package/atoms/Cursor/Cursor.cjs +14 -22
- package/atoms/Cursor/Cursor.d.ts +2 -2
- package/atoms/Cursor/Cursor.js +1 -103
- package/atoms/Figure/Figure.cjs +9 -14
- package/atoms/Figure/Figure.d.ts +1 -1
- package/atoms/Figure/Figure.js +1 -27
- package/atoms/LargeText/LargeText.cjs +82 -0
- package/atoms/LargeText/LargeText.d.ts +94 -0
- package/atoms/LargeText/LargeText.js +1 -0
- package/atoms/LazyInclude/LazyInclude.cjs +67 -0
- package/atoms/LazyInclude/LazyInclude.d.ts +64 -0
- package/atoms/LazyInclude/LazyInclude.js +1 -0
- package/atoms/Prefetch/AbstractPrefetch.cjs +79 -0
- package/atoms/Prefetch/AbstractPrefetch.d.ts +52 -0
- package/atoms/Prefetch/AbstractPrefetch.js +1 -0
- package/atoms/Prefetch/PrefetchWhenOver.cjs +43 -0
- package/atoms/Prefetch/PrefetchWhenOver.d.ts +21 -0
- package/atoms/Prefetch/PrefetchWhenOver.js +1 -0
- package/atoms/Prefetch/PrefetchWhenVisible.cjs +44 -0
- package/atoms/Prefetch/PrefetchWhenVisible.d.ts +21 -0
- package/atoms/Prefetch/PrefetchWhenVisible.js +1 -0
- package/atoms/Prefetch/index.cjs +33 -0
- package/atoms/Prefetch/index.d.ts +3 -0
- package/atoms/Prefetch/index.js +1 -0
- package/atoms/index.cjs +19 -18
- package/atoms/index.d.ts +5 -1
- package/atoms/index.js +1 -6
- package/index.cjs +11 -15
- package/index.js +1 -3
- package/molecules/Accordion/Accordion.cjs +12 -34
- package/molecules/Accordion/Accordion.js +1 -35
- package/molecules/Accordion/AccordionCore.cjs +8 -13
- package/molecules/Accordion/AccordionCore.d.ts +2 -2
- package/molecules/Accordion/AccordionCore.js +1 -34
- package/molecules/Accordion/AccordionItem.cjs +70 -114
- package/molecules/Accordion/AccordionItem.d.ts +15 -16
- package/molecules/Accordion/AccordionItem.js +1 -178
- package/molecules/Menu/Menu.cjs +148 -0
- package/molecules/Menu/Menu.d.ts +140 -0
- package/molecules/Menu/Menu.js +1 -0
- package/molecules/Menu/MenuBtn.cjs +53 -0
- package/molecules/Menu/MenuBtn.d.ts +39 -0
- package/molecules/Menu/MenuBtn.js +1 -0
- package/molecules/Menu/MenuList.cjs +134 -0
- package/molecules/Menu/MenuList.d.ts +101 -0
- package/molecules/Menu/MenuList.js +1 -0
- package/molecules/Menu/index.cjs +33 -0
- package/molecules/Menu/index.d.ts +3 -0
- package/molecules/Menu/index.js +1 -0
- package/molecules/Modal/Modal.cjs +42 -72
- package/molecules/Modal/Modal.d.ts +11 -11
- package/molecules/Modal/Modal.js +1 -151
- package/molecules/Modal/ModalWithTransition.cjs +70 -0
- package/molecules/Modal/ModalWithTransition.d.ts +29 -0
- package/molecules/Modal/ModalWithTransition.js +1 -0
- package/molecules/Panel/Panel.cjs +114 -0
- package/molecules/Panel/Panel.d.ts +42 -0
- package/molecules/Panel/Panel.js +1 -0
- package/molecules/Slider/AbstractSliderChild.cjs +64 -0
- package/molecules/Slider/AbstractSliderChild.d.ts +59 -0
- package/molecules/Slider/AbstractSliderChild.js +1 -0
- package/molecules/Slider/Slider.cjs +230 -0
- package/molecules/Slider/Slider.d.ts +245 -0
- package/molecules/Slider/Slider.js +1 -0
- package/molecules/Slider/SliderBtn.cjs +58 -0
- package/molecules/Slider/SliderBtn.d.ts +31 -0
- package/molecules/Slider/SliderBtn.js +1 -0
- package/molecules/Slider/SliderCount.cjs +43 -0
- package/molecules/Slider/SliderCount.d.ts +21 -0
- package/molecules/Slider/SliderCount.js +1 -0
- package/molecules/Slider/SliderDots.cjs +48 -0
- package/molecules/Slider/SliderDots.d.ts +33 -0
- package/molecules/Slider/SliderDots.js +1 -0
- package/molecules/Slider/SliderDrag.cjs +40 -0
- package/molecules/Slider/SliderDrag.d.ts +16 -0
- package/molecules/Slider/SliderDrag.js +1 -0
- package/molecules/Slider/SliderItem.cjs +107 -0
- package/molecules/Slider/SliderItem.d.ts +106 -0
- package/molecules/Slider/SliderItem.js +1 -0
- package/molecules/Slider/SliderProgress.cjs +47 -0
- package/molecules/Slider/SliderProgress.d.ts +27 -0
- package/molecules/Slider/SliderProgress.js +1 -0
- package/molecules/Slider/index.cjs +43 -0
- package/molecules/Slider/index.d.ts +8 -0
- package/molecules/Slider/index.js +1 -0
- package/molecules/Sticky/Sticky.cjs +11 -19
- package/molecules/Sticky/Sticky.d.ts +8 -8
- package/molecules/Sticky/Sticky.js +1 -107
- package/molecules/TableOfContent/TableOfContent.cjs +66 -0
- package/molecules/TableOfContent/TableOfContent.d.ts +59 -0
- package/molecules/TableOfContent/TableOfContent.js +1 -0
- package/molecules/TableOfContent/TableOfContentAnchor.cjs +60 -0
- package/molecules/TableOfContent/TableOfContentAnchor.d.ts +36 -0
- package/molecules/TableOfContent/TableOfContentAnchor.js +1 -0
- package/molecules/TableOfContent/index.cjs +31 -0
- package/molecules/TableOfContent/index.d.ts +2 -0
- package/molecules/TableOfContent/index.js +1 -0
- package/molecules/Tabs/Tabs.cjs +54 -82
- package/molecules/Tabs/Tabs.d.ts +7 -8
- package/molecules/Tabs/Tabs.js +1 -126
- package/molecules/index.cjs +18 -17
- package/molecules/index.d.ts +6 -1
- package/molecules/index.js +1 -12
- package/organisms/Frame/Frame.cjs +171 -0
- package/organisms/Frame/Frame.d.ts +119 -0
- package/organisms/Frame/Frame.js +1 -0
- package/organisms/Frame/FrameAnchor.cjs +43 -0
- package/organisms/Frame/FrameAnchor.d.ts +35 -0
- package/organisms/Frame/FrameAnchor.js +1 -0
- package/organisms/Frame/FrameForm.cjs +43 -0
- package/organisms/Frame/FrameForm.d.ts +32 -0
- package/organisms/Frame/FrameForm.js +1 -0
- package/organisms/Frame/FrameTarget.cjs +92 -0
- package/organisms/Frame/FrameTarget.d.ts +47 -0
- package/organisms/Frame/FrameTarget.js +1 -0
- package/organisms/Frame/index.cjs +35 -0
- package/organisms/Frame/index.d.ts +4 -0
- package/organisms/Frame/index.js +1 -0
- package/organisms/index.cjs +9 -12
- package/organisms/index.d.ts +1 -1
- package/organisms/index.js +1 -0
- package/package.json +3 -4
- package/primitives/Draggable/Draggable.cjs +15 -28
- package/primitives/Draggable/Draggable.d.ts +0 -5
- package/primitives/Draggable/Draggable.js +1 -38
- package/primitives/Sentinel/Sentinel.cjs +8 -13
- package/primitives/Sentinel/Sentinel.js +1 -15
- package/primitives/Transition/Transition.cjs +66 -0
- package/primitives/Transition/Transition.d.ts +67 -0
- package/primitives/Transition/Transition.js +1 -0
- package/primitives/index.cjs +12 -17
- package/primitives/index.d.ts +1 -0
- package/primitives/index.js +1 -6
|
@@ -1,38 +1 @@
|
|
|
1
|
-
|
|
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 { animate } from "motion";
|
|
8
|
-
import { Base, withDrag } from "@studiometa/js-toolkit";
|
|
9
|
-
const _Draggable = class extends withDrag(Base) {
|
|
10
|
-
constructor() {
|
|
11
|
-
super(...arguments);
|
|
12
|
-
__publicField(this, "x", 0);
|
|
13
|
-
__publicField(this, "y", 0);
|
|
14
|
-
__publicField(this, "originX", 0);
|
|
15
|
-
__publicField(this, "originY", 0);
|
|
16
|
-
}
|
|
17
|
-
dragged(props) {
|
|
18
|
-
if (props.mode === "start") {
|
|
19
|
-
this.originX = this.x;
|
|
20
|
-
this.originY = this.y;
|
|
21
|
-
return;
|
|
22
|
-
}
|
|
23
|
-
this.x = this.originX + props.x - props.origin.x;
|
|
24
|
-
this.y = this.originY + props.y - props.origin.y;
|
|
25
|
-
animate(this.$el, { x: this.x, y: this.y }, _Draggable.animateOptions);
|
|
26
|
-
}
|
|
27
|
-
};
|
|
28
|
-
let Draggable = _Draggable;
|
|
29
|
-
__publicField(Draggable, "config", {
|
|
30
|
-
name: "DraggableElement"
|
|
31
|
-
});
|
|
32
|
-
__publicField(Draggable, "animateOptions", {
|
|
33
|
-
easing: "linear",
|
|
34
|
-
duration: 0
|
|
35
|
-
});
|
|
36
|
-
export {
|
|
37
|
-
Draggable as default
|
|
38
|
-
};
|
|
1
|
+
import{Base as t,withDrag as r}from"@studiometa/js-toolkit";import{matrix as a}from"@studiometa/js-toolkit/utils";class e extends r(t){static config={name:"DraggableElement"};x=0;y=0;originX=0;originY=0;dragged(i){if(i.mode==="start"){this.originX=this.x,this.originY=this.y;return}this.x=this.originX+i.x-i.origin.x,this.y=this.originY+i.y-i.origin.y,this.$el.style.transform=a({translateX:this.x,translateY:this.y})}}export{e 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
|
|
12
|
-
if (
|
|
13
|
-
for (let key of __getOwnPropNames(
|
|
14
|
-
if (!__hasOwnProp.call(
|
|
15
|
-
__defProp(
|
|
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
|
|
16
|
+
return to;
|
|
18
17
|
};
|
|
19
|
-
var __toCommonJS =
|
|
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,11 +26,11 @@ var Sentinel_exports = {};
|
|
|
31
26
|
__export(Sentinel_exports, {
|
|
32
27
|
default: () => Sentinel
|
|
33
28
|
});
|
|
29
|
+
module.exports = __toCommonJS(Sentinel_exports);
|
|
34
30
|
var import_js_toolkit = require("@studiometa/js-toolkit");
|
|
35
31
|
var Sentinel = class extends (0, import_js_toolkit.withIntersectionObserver)(import_js_toolkit.Base, { threshold: [0, 1] }) {
|
|
36
32
|
};
|
|
37
33
|
__publicField(Sentinel, "config", {
|
|
38
34
|
name: "Sentinel"
|
|
39
35
|
});
|
|
40
|
-
module.exports = __toCommonJS(Sentinel_exports);
|
|
41
36
|
if (module.exports.default) module.exports = module.exports.default;
|
|
@@ -1,15 +1 @@
|
|
|
1
|
-
|
|
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, withIntersectionObserver } from "@studiometa/js-toolkit";
|
|
8
|
-
class Sentinel extends withIntersectionObserver(Base, { threshold: [0, 1] }) {
|
|
9
|
-
}
|
|
10
|
-
__publicField(Sentinel, "config", {
|
|
11
|
-
name: "Sentinel"
|
|
12
|
-
});
|
|
13
|
-
export {
|
|
14
|
-
Sentinel as default
|
|
15
|
-
};
|
|
1
|
+
import{Base as e,withIntersectionObserver as t}from"@studiometa/js-toolkit";class n extends t(e,{threshold:[0,1]}){static config={name:"Sentinel"}}export{n as default};
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
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
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
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 });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
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
|
+
};
|
|
23
|
+
|
|
24
|
+
// packages/ui/primitives/Transition/Transition.js
|
|
25
|
+
var Transition_exports = {};
|
|
26
|
+
__export(Transition_exports, {
|
|
27
|
+
default: () => Transition
|
|
28
|
+
});
|
|
29
|
+
module.exports = __toCommonJS(Transition_exports);
|
|
30
|
+
var import_js_toolkit = require("@studiometa/js-toolkit");
|
|
31
|
+
var import_utils = require("@studiometa/js-toolkit/utils");
|
|
32
|
+
var Transition = class extends import_js_toolkit.Base {
|
|
33
|
+
get target() {
|
|
34
|
+
return this.$el;
|
|
35
|
+
}
|
|
36
|
+
enter() {
|
|
37
|
+
const { enterFrom, enterActive, enterTo, enterKeep, leaveTo } = this.$options;
|
|
38
|
+
return (0, import_utils.transition)(this.target, {
|
|
39
|
+
from: (leaveTo + " " + enterFrom).trim(),
|
|
40
|
+
active: enterActive,
|
|
41
|
+
to: enterTo
|
|
42
|
+
}, enterKeep && "keep");
|
|
43
|
+
}
|
|
44
|
+
leave() {
|
|
45
|
+
const { leaveFrom, leaveActive, leaveTo, leaveKeep, enterTo } = this.$options;
|
|
46
|
+
return (0, import_utils.transition)(this.target, {
|
|
47
|
+
from: (enterTo + " " + leaveFrom).trim(),
|
|
48
|
+
active: leaveActive,
|
|
49
|
+
to: leaveTo
|
|
50
|
+
}, leaveKeep && "keep");
|
|
51
|
+
}
|
|
52
|
+
};
|
|
53
|
+
__publicField(Transition, "config", {
|
|
54
|
+
name: "Transition",
|
|
55
|
+
options: {
|
|
56
|
+
enterFrom: String,
|
|
57
|
+
enterActive: String,
|
|
58
|
+
enterTo: String,
|
|
59
|
+
enterKeep: Boolean,
|
|
60
|
+
leaveFrom: String,
|
|
61
|
+
leaveActive: String,
|
|
62
|
+
leaveTo: String,
|
|
63
|
+
leaveKeep: Boolean
|
|
64
|
+
}
|
|
65
|
+
});
|
|
66
|
+
if (module.exports.default) module.exports = module.exports.default;
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @typedef {Object} TransitionOptions
|
|
3
|
+
* @property {string} enterFrom
|
|
4
|
+
* @property {string} enterActive
|
|
5
|
+
* @property {string} enterTo
|
|
6
|
+
* @property {boolean} enterKeep
|
|
7
|
+
* @property {string} leaveFrom
|
|
8
|
+
* @property {string} leaveActive
|
|
9
|
+
* @property {string} leaveTo
|
|
10
|
+
* @property {boolean} leaveKeep
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* Transition class.
|
|
14
|
+
* @typedef {Transition & { $options: TransitionOptions }} TransitionInterface
|
|
15
|
+
*/
|
|
16
|
+
export default class Transition extends Base {
|
|
17
|
+
static config: {
|
|
18
|
+
name: string;
|
|
19
|
+
options: {
|
|
20
|
+
enterFrom: StringConstructor;
|
|
21
|
+
enterActive: StringConstructor;
|
|
22
|
+
enterTo: StringConstructor;
|
|
23
|
+
enterKeep: BooleanConstructor;
|
|
24
|
+
leaveFrom: StringConstructor;
|
|
25
|
+
leaveActive: StringConstructor;
|
|
26
|
+
leaveTo: StringConstructor;
|
|
27
|
+
leaveKeep: BooleanConstructor;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* Get the transition target.
|
|
32
|
+
*
|
|
33
|
+
* @returns {HTMLElement}
|
|
34
|
+
*/
|
|
35
|
+
get target(): HTMLElement;
|
|
36
|
+
/**
|
|
37
|
+
* Trigger the enter transition.
|
|
38
|
+
*
|
|
39
|
+
* @this {TransitionInterface}
|
|
40
|
+
* @returns {Promise<void>}
|
|
41
|
+
*/
|
|
42
|
+
enter(this: TransitionInterface): Promise<void>;
|
|
43
|
+
/**
|
|
44
|
+
* Trigger the leave transition.
|
|
45
|
+
*
|
|
46
|
+
* @this {TransitionInterface}
|
|
47
|
+
* @returns {Promise<void>}
|
|
48
|
+
*/
|
|
49
|
+
leave(this: TransitionInterface): Promise<void>;
|
|
50
|
+
}
|
|
51
|
+
export type TransitionOptions = {
|
|
52
|
+
enterFrom: string;
|
|
53
|
+
enterActive: string;
|
|
54
|
+
enterTo: string;
|
|
55
|
+
enterKeep: boolean;
|
|
56
|
+
leaveFrom: string;
|
|
57
|
+
leaveActive: string;
|
|
58
|
+
leaveTo: string;
|
|
59
|
+
leaveKeep: boolean;
|
|
60
|
+
};
|
|
61
|
+
/**
|
|
62
|
+
* Transition class.
|
|
63
|
+
*/
|
|
64
|
+
export type TransitionInterface = Transition & {
|
|
65
|
+
$options: TransitionOptions;
|
|
66
|
+
};
|
|
67
|
+
import { Base } from "@studiometa/js-toolkit";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Base as a}from"@studiometa/js-toolkit";import{transition as i}from"@studiometa/js-toolkit/utils";class s extends a{static config={name:"Transition",options:{enterFrom:String,enterActive:String,enterTo:String,enterKeep:Boolean,leaveFrom:String,leaveActive:String,leaveTo:String,leaveKeep:Boolean}};get target(){return this.$el}enter(){const{enterFrom:e,enterActive:t,enterTo:r,enterKeep:n,leaveTo:o}=this.$options;return i(this.target,{from:(o+" "+e).trim(),active:t,to:r},n&&"keep")}leave(){const{leaveFrom:e,leaveActive:t,leaveTo:r,leaveKeep:n,enterTo:o}=this.$options;return i(this.target,{from:(o+" "+e).trim(),active:t,to:r},n&&"keep")}}export{s as default};
|
package/primitives/index.cjs
CHANGED
|
@@ -4,35 +4,30 @@ 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
|
|
13
|
-
if (
|
|
14
|
-
for (let key of __getOwnPropNames(
|
|
15
|
-
if (!__hasOwnProp.call(
|
|
16
|
-
__defProp(
|
|
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
|
|
17
|
+
return to;
|
|
19
18
|
};
|
|
20
|
-
var __toESM = (
|
|
21
|
-
|
|
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 __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);
|
|
28
21
|
|
|
29
22
|
// packages/ui/primitives/index.js
|
|
30
23
|
var primitives_exports = {};
|
|
31
24
|
__export(primitives_exports, {
|
|
32
25
|
Draggable: () => import_Draggable.default,
|
|
33
|
-
Sentinel: () => import_Sentinel.default
|
|
26
|
+
Sentinel: () => import_Sentinel.default,
|
|
27
|
+
Transition: () => import_Transition.default
|
|
34
28
|
});
|
|
29
|
+
module.exports = __toCommonJS(primitives_exports);
|
|
35
30
|
var import_Draggable = __toESM(require("./Draggable/Draggable.cjs"), 1);
|
|
36
31
|
var import_Sentinel = __toESM(require("./Sentinel/Sentinel.cjs"), 1);
|
|
37
|
-
|
|
32
|
+
var import_Transition = __toESM(require("./Transition/Transition.cjs"), 1);
|
|
38
33
|
if (module.exports.default) module.exports = module.exports.default;
|
package/primitives/index.d.ts
CHANGED
package/primitives/index.js
CHANGED
|
@@ -1,6 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { default as default3 } from "./Sentinel/Sentinel.js";
|
|
3
|
-
export {
|
|
4
|
-
default2 as Draggable,
|
|
5
|
-
default3 as Sentinel
|
|
6
|
-
};
|
|
1
|
+
import{default as r}from"./Draggable/Draggable.js";import{default as o}from"./Sentinel/Sentinel.js";import{default as l}from"./Transition/Transition.js";export{r as Draggable,o as Sentinel,l as Transition};
|