@vkzstudio/muza-ui 1.0.7 → 1.0.9
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/dist/components/Button/Button.js +19 -19
- package/dist/components/Button/ButtonLoader.d.ts +7 -0
- package/dist/components/Button/ButtonLoader.d.ts.map +1 -0
- package/dist/components/Button/ButtonLoader.js +40 -0
- package/dist/components/Chip/Chip.d.ts +43 -0
- package/dist/components/Chip/Chip.d.ts.map +1 -0
- package/dist/components/Chip/Chip.js +98 -0
- package/dist/components/Chip/Chip.stories.d.ts +9 -0
- package/dist/components/Chip/Chip.stories.d.ts.map +1 -0
- package/dist/components/Chip/index.d.ts +2 -0
- package/dist/components/Chip/index.d.ts.map +1 -0
- package/dist/components/DataTable/DataTable.d.ts +10 -4
- package/dist/components/DataTable/DataTable.d.ts.map +1 -1
- package/dist/components/DataTable/DataTable.js +77 -49
- package/dist/components/DataTable/DataTable.stories.d.ts +4 -0
- package/dist/components/DataTable/DataTable.stories.d.ts.map +1 -1
- package/dist/components/DataTable/index.d.ts +1 -1
- package/dist/components/DataTable/index.d.ts.map +1 -1
- package/dist/components/Icons/CustomIcons.js +1 -1
- package/dist/components/Reorderable/Reorderable.d.ts +100 -0
- package/dist/components/Reorderable/Reorderable.d.ts.map +1 -0
- package/dist/components/Reorderable/Reorderable.js +197 -0
- package/dist/components/Reorderable/Reorderable.stories.d.ts +14 -0
- package/dist/components/Reorderable/Reorderable.stories.d.ts.map +1 -0
- package/dist/components/Reorderable/index.d.ts +2 -0
- package/dist/components/Reorderable/index.d.ts.map +1 -0
- package/dist/components/ReorderableTable/ReorderableTable.d.ts +40 -0
- package/dist/components/ReorderableTable/ReorderableTable.d.ts.map +1 -0
- package/dist/components/ReorderableTable/ReorderableTable.js +175 -0
- package/dist/components/ReorderableTable/ReorderableTable.stories.d.ts +18 -0
- package/dist/components/ReorderableTable/ReorderableTable.stories.d.ts.map +1 -0
- package/dist/components/ReorderableTable/index.d.ts +2 -0
- package/dist/components/ReorderableTable/index.d.ts.map +1 -0
- package/dist/components/SwipeButton/SwipeButton.js +7 -7
- package/dist/components/index.d.ts +3 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/index.js +196 -183
- package/dist/muza-ui.css +1 -1
- package/dist/node_modules/framer-motion/dist/es/animation/animate/resolve-subjects.js +4 -4
- package/dist/node_modules/framer-motion/dist/es/animation/animate/subject.js +24 -24
- package/dist/node_modules/framer-motion/dist/es/animation/sequence/create.js +61 -56
- package/dist/node_modules/framer-motion/dist/es/animation/utils/create-visual-element.js +8 -8
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PopChild.js +32 -30
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PresenceChild.js +22 -22
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/index.js +34 -32
- package/dist/node_modules/framer-motion/dist/es/components/Reorder/Group.js +46 -0
- package/dist/node_modules/framer-motion/dist/es/components/Reorder/Item.js +34 -0
- package/dist/node_modules/framer-motion/dist/es/components/Reorder/utils/auto-scroll.js +64 -0
- package/dist/node_modules/framer-motion/dist/es/components/Reorder/utils/check-reorder.js +17 -0
- package/dist/node_modules/framer-motion/dist/es/context/MotionContext/utils.js +2 -2
- package/dist/node_modules/framer-motion/dist/es/context/ReorderContext.js +5 -0
- package/dist/node_modules/framer-motion/dist/es/events/add-pointer-event.js +3 -3
- package/dist/node_modules/framer-motion/dist/es/gestures/drag/VisualElementDragControls.js +100 -89
- package/dist/node_modules/framer-motion/dist/es/gestures/drag/index.js +11 -7
- package/dist/node_modules/framer-motion/dist/es/gestures/drag/utils/constraints.js +4 -4
- package/dist/node_modules/framer-motion/dist/es/gestures/focus.js +2 -2
- package/dist/node_modules/framer-motion/dist/es/gestures/hover.js +1 -1
- package/dist/node_modules/framer-motion/dist/es/gestures/pan/PanSession.js +106 -59
- package/dist/node_modules/framer-motion/dist/es/gestures/pan/index.js +6 -6
- package/dist/node_modules/framer-motion/dist/es/gestures/press.js +1 -1
- package/dist/node_modules/framer-motion/dist/es/motion/features/animation/exit.js +1 -1
- package/dist/node_modules/framer-motion/dist/es/motion/features/animation/index.js +5 -5
- package/dist/node_modules/framer-motion/dist/es/motion/features/definitions.js +18 -6
- package/dist/node_modules/framer-motion/dist/es/motion/features/drag.js +1 -1
- package/dist/node_modules/framer-motion/dist/es/motion/features/layout/MeasureLayout.js +27 -42
- package/dist/node_modules/framer-motion/dist/es/motion/features/layout.js +4 -4
- package/dist/node_modules/framer-motion/dist/es/motion/features/load-features.js +10 -7
- package/dist/node_modules/framer-motion/dist/es/motion/features/viewport/index.js +4 -4
- package/dist/node_modules/framer-motion/dist/es/motion/index.js +49 -49
- package/dist/node_modules/framer-motion/dist/es/motion/utils/use-motion-ref.js +18 -13
- package/dist/node_modules/framer-motion/dist/es/motion/utils/use-visual-element.js +41 -40
- package/dist/node_modules/framer-motion/dist/es/motion/utils/use-visual-state.js +13 -13
- package/dist/node_modules/framer-motion/dist/es/render/dom/create-visual-element.js +6 -6
- package/dist/node_modules/framer-motion/dist/es/render/dom/use-render.js +12 -12
- package/dist/node_modules/framer-motion/dist/es/render/html/use-html-visual-state.js +3 -3
- package/dist/node_modules/framer-motion/dist/es/render/html/use-props.js +7 -7
- package/dist/node_modules/framer-motion/dist/es/render/svg/use-props.js +5 -5
- package/dist/node_modules/framer-motion/dist/es/render/svg/use-svg-visual-state.js +1 -1
- package/dist/node_modules/framer-motion/dist/es/value/use-transform.js +26 -18
- package/dist/node_modules/motion-dom/dist/es/animation/AsyncMotionValueAnimation.js +33 -30
- package/dist/node_modules/motion-dom/dist/es/animation/NativeAnimation.js +17 -17
- package/dist/node_modules/motion-dom/dist/es/animation/NativeAnimationExtended.js +20 -19
- package/dist/node_modules/motion-dom/dist/es/animation/animate/single-value.js +10 -0
- package/dist/node_modules/{framer-motion → motion-dom}/dist/es/animation/interfaces/motion-value.js +13 -13
- package/dist/node_modules/{framer-motion → motion-dom}/dist/es/animation/interfaces/visual-element-target.js +11 -11
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/DOMKeyframesResolver.js +24 -20
- package/dist/node_modules/{framer-motion → motion-dom}/dist/es/animation/utils/default-transitions.js +1 -1
- package/dist/node_modules/motion-dom/dist/es/animation/utils/is-css-variable.js +7 -3
- package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/is-keyboard-accessible.js +1 -1
- package/dist/node_modules/{framer-motion → motion-dom}/dist/es/projection/animation/mix-values.js +2 -2
- package/dist/node_modules/{framer-motion → motion-dom}/dist/es/projection/geometry/delta-apply.js +4 -4
- package/dist/node_modules/{framer-motion → motion-dom}/dist/es/projection/geometry/delta-calc.js +1 -1
- package/dist/node_modules/{framer-motion → motion-dom}/dist/es/projection/geometry/delta-remove.js +6 -6
- package/dist/node_modules/{framer-motion → motion-dom}/dist/es/projection/node/DocumentProjectionNode.js +7 -4
- package/dist/node_modules/{framer-motion → motion-dom}/dist/es/projection/node/create-projection-node.js +149 -149
- package/dist/node_modules/motion-dom/dist/es/projection/shared/stack.js +60 -0
- package/dist/node_modules/{framer-motion → motion-dom}/dist/es/projection/styles/scale-border-radius.js +1 -1
- package/dist/node_modules/{framer-motion → motion-dom}/dist/es/projection/styles/scale-box-shadow.js +2 -2
- package/dist/node_modules/motion-dom/dist/es/projection/styles/scale-correction.js +21 -0
- package/dist/node_modules/{framer-motion → motion-dom}/dist/es/render/VisualElement.js +58 -50
- package/dist/node_modules/{framer-motion → motion-dom}/dist/es/render/dom/DOMVisualElement.js +7 -6
- package/dist/node_modules/motion-dom/dist/es/render/dom/utils/camel-to-dash.js +6 -0
- package/dist/node_modules/motion-dom/dist/es/render/html/HTMLVisualElement.js +38 -0
- package/dist/node_modules/motion-dom/dist/es/render/html/utils/build-styles.js +29 -0
- package/dist/node_modules/motion-dom/dist/es/render/html/utils/build-transform.js +37 -0
- package/dist/node_modules/motion-dom/dist/es/render/html/utils/scrape-motion-values.js +14 -0
- package/dist/node_modules/motion-dom/dist/es/render/svg/SVGVisualElement.js +40 -0
- package/dist/node_modules/motion-dom/dist/es/render/svg/utils/build-attrs.js +32 -0
- package/dist/node_modules/motion-dom/dist/es/render/svg/utils/path.js +15 -0
- package/dist/node_modules/motion-dom/dist/es/render/svg/utils/scrape-motion-values.js +15 -0
- package/dist/node_modules/{framer-motion → motion-dom}/dist/es/render/utils/animation-state.js +31 -31
- package/dist/node_modules/{framer-motion → motion-dom}/dist/es/render/utils/is-controlling-variants.js +1 -1
- package/dist/node_modules/motion-dom/dist/es/render/utils/is-forced-motion-value.js +9 -0
- package/dist/node_modules/{framer-motion → motion-dom}/dist/es/render/utils/motion-values.js +6 -6
- package/dist/node_modules/motion-dom/dist/es/render/utils/reduced-motion/index.js +15 -0
- package/dist/node_modules/{framer-motion → motion-dom}/dist/es/render/utils/setters.js +4 -4
- package/dist/node_modules/{framer-motion → motion-dom}/dist/es/utils/delay.js +2 -2
- package/dist/node_modules/motion-dom/dist/es/utils/resolve-elements.js +8 -6
- package/dist/node_modules/motion-dom/dist/es/value/types/maps/number.js +62 -42
- package/dist/node_modules/motion-dom/dist/es/value/utils/resolve-motion-value.js +7 -0
- package/dist/node_modules/motion-dom/dist/es/value/will-change/is.js +7 -0
- package/dist/node_modules/motion-utils/dist/es/array.js +15 -6
- package/dist/node_modules/motion-utils/dist/es/errors.js +10 -9
- package/dist/translations/locales/cs.d.ts.map +1 -1
- package/dist/translations/locales/cs.js +4 -0
- package/dist/translations/locales/en.d.ts.map +1 -1
- package/dist/translations/locales/en.js +4 -0
- package/dist/translations/locales/sk.d.ts.map +1 -1
- package/dist/translations/locales/sk.js +4 -0
- package/dist/translations/types.d.ts +8 -0
- package/dist/translations/types.d.ts.map +1 -1
- package/package.json +2 -2
- package/dist/node_modules/framer-motion/dist/es/animation/animate/single-value.js +0 -10
- package/dist/node_modules/framer-motion/dist/es/motion/utils/is-forced-motion-value.js +0 -8
- package/dist/node_modules/framer-motion/dist/es/projection/shared/stack.js +0 -58
- package/dist/node_modules/framer-motion/dist/es/projection/styles/scale-correction.js +0 -10
- package/dist/node_modules/framer-motion/dist/es/render/dom/utils/camel-to-dash.js +0 -4
- package/dist/node_modules/framer-motion/dist/es/render/html/HTMLVisualElement.js +0 -38
- package/dist/node_modules/framer-motion/dist/es/render/html/utils/build-styles.js +0 -29
- package/dist/node_modules/framer-motion/dist/es/render/html/utils/build-transform.js +0 -31
- package/dist/node_modules/framer-motion/dist/es/render/html/utils/scrape-motion-values.js +0 -12
- package/dist/node_modules/framer-motion/dist/es/render/svg/SVGVisualElement.js +0 -40
- package/dist/node_modules/framer-motion/dist/es/render/svg/utils/build-attrs.js +0 -23
- package/dist/node_modules/framer-motion/dist/es/render/svg/utils/path.js +0 -18
- package/dist/node_modules/framer-motion/dist/es/render/svg/utils/scrape-motion-values.js +0 -15
- package/dist/node_modules/framer-motion/dist/es/utils/reduced-motion/index.js +0 -13
- package/dist/node_modules/framer-motion/dist/es/value/use-will-change/is.js +0 -7
- package/dist/node_modules/framer-motion/dist/es/value/utils/resolve-motion-value.js +0 -7
- /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/animation/interfaces/visual-element-variant.js +0 -0
- /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/animation/interfaces/visual-element.js +0 -0
- /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/animation/optimized-appear/data-id.js +0 -0
- /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/animation/optimized-appear/get-appear-id.js +0 -0
- /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/animation/utils/calc-child-stagger.js +0 -0
- /package/dist/node_modules/{framer-motion/dist/es/animation/animators/waapi → motion-dom/dist/es/animation}/utils/get-final-keyframe.js +0 -0
- /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/animation/utils/is-transition-defined.js +0 -0
- /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/events/add-dom-event.js +0 -0
- /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/projection/geometry/conversion.js +0 -0
- /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/projection/geometry/copy.js +0 -0
- /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/projection/geometry/models.js +0 -0
- /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/projection/geometry/utils.js +0 -0
- /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/projection/node/HTMLProjectionNode.js +0 -0
- /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/projection/node/state.js +0 -0
- /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/projection/styles/transform.js +0 -0
- /package/dist/node_modules/{framer-motion/dist/es/render → motion-dom/dist/es/projection}/utils/compare-by-depth.js +0 -0
- /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/projection/utils/each-axis.js +0 -0
- /package/dist/node_modules/{framer-motion/dist/es/render → motion-dom/dist/es/projection}/utils/flat-tree.js +0 -0
- /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/projection/utils/has-transform.js +0 -0
- /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/projection/utils/measure.js +0 -0
- /package/dist/node_modules/{framer-motion/dist/es/motion/features → motion-dom/dist/es/render}/Feature.js +0 -0
- /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/render/html/utils/render.js +0 -0
- /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/render/object/ObjectVisualElement.js +0 -0
- /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/render/store.js +0 -0
- /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/render/svg/utils/camel-case-attrs.js +0 -0
- /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/render/svg/utils/is-svg-tag.js +0 -0
- /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/render/svg/utils/render.js +0 -0
- /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/render/utils/get-variant-context.js +0 -0
- /package/dist/node_modules/{framer-motion/dist/es/animation → motion-dom/dist/es/render}/utils/is-animation-controls.js +0 -0
- /package/dist/node_modules/{framer-motion/dist/es/animation → motion-dom/dist/es/render}/utils/is-keyframes-target.js +0 -0
- /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/render/utils/is-variant-label.js +0 -0
- /package/dist/node_modules/{framer-motion/dist/es → motion-dom/dist/es/render}/utils/reduced-motion/state.js +0 -0
- /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/render/utils/resolve-dynamic-variants.js +0 -0
- /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/render/utils/resolve-variants.js +0 -0
- /package/dist/node_modules/{framer-motion/dist/es → motion-dom/dist/es/render}/utils/shallow-compare.js +0 -0
- /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/render/utils/variant-props.js +0 -0
- /package/dist/node_modules/{framer-motion/dist/es/value/use-will-change → motion-dom/dist/es/value/will-change}/add-will-change.js +0 -0
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { transformProps as i } from "./keys-transform.js";
|
|
2
|
+
import { scaleCorrectors as n } from "../../projection/styles/scale-correction.js";
|
|
3
|
+
function c(r, { layout: o, layoutId: t }) {
|
|
4
|
+
return i.has(r) || r.startsWith("origin") || (o || t !== void 0) && (!!n[r] || r === "opacity");
|
|
5
|
+
}
|
|
6
|
+
export {
|
|
7
|
+
c as isForcedMotionValue,
|
|
8
|
+
n as scaleCorrectors
|
|
9
|
+
};
|
package/dist/node_modules/{framer-motion → motion-dom}/dist/es/render/utils/motion-values.js
RENAMED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { motionValue as r } from "../../value/index.js";
|
|
2
|
+
import { isMotionValue as f } from "../../value/utils/is-motion-value.js";
|
|
3
3
|
function d(a, e, s) {
|
|
4
4
|
for (const o in e) {
|
|
5
5
|
const i = e[o], t = s[o];
|
|
6
|
-
if (
|
|
6
|
+
if (f(i))
|
|
7
7
|
a.addValue(o, i);
|
|
8
|
-
else if (
|
|
9
|
-
a.addValue(o,
|
|
8
|
+
else if (f(t))
|
|
9
|
+
a.addValue(o, r(i, { owner: a }));
|
|
10
10
|
else if (t !== i)
|
|
11
11
|
if (a.hasValue(o)) {
|
|
12
12
|
const u = a.getValue(o);
|
|
13
13
|
u.liveStyle === !0 ? u.jump(i) : u.hasAnimated || u.set(i);
|
|
14
14
|
} else {
|
|
15
15
|
const u = a.getStaticValue(o);
|
|
16
|
-
a.addValue(o,
|
|
16
|
+
a.addValue(o, r(u !== void 0 ? u : i, { owner: a }));
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
19
|
for (const o in s)
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { hasReducedMotionListener as t, prefersReducedMotion as r } from "./state.js";
|
|
2
|
+
const o = typeof window < "u";
|
|
3
|
+
function d() {
|
|
4
|
+
if (t.current = !0, !!o)
|
|
5
|
+
if (window.matchMedia) {
|
|
6
|
+
const e = window.matchMedia("(prefers-reduced-motion)"), n = () => r.current = e.matches;
|
|
7
|
+
e.addEventListener("change", n), n();
|
|
8
|
+
} else
|
|
9
|
+
r.current = !1;
|
|
10
|
+
}
|
|
11
|
+
export {
|
|
12
|
+
t as hasReducedMotionListener,
|
|
13
|
+
d as initPrefersReducedMotion,
|
|
14
|
+
r as prefersReducedMotion
|
|
15
|
+
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { motionValue as s } from "../../value/index.js";
|
|
2
2
|
import { resolveVariant as f } from "./resolve-dynamic-variants.js";
|
|
3
|
-
import {
|
|
3
|
+
import { isKeyframesTarget as l } from "./is-keyframes-target.js";
|
|
4
4
|
function u(t, o, e) {
|
|
5
|
-
t.hasValue(o) ? t.getValue(o).set(e) : t.addValue(o,
|
|
5
|
+
t.hasValue(o) ? t.getValue(o).set(e) : t.addValue(o, s(e));
|
|
6
6
|
}
|
|
7
7
|
function V(t) {
|
|
8
|
-
return
|
|
8
|
+
return l(t) ? t[t.length - 1] || 0 : t;
|
|
9
9
|
}
|
|
10
10
|
function p(t, o) {
|
|
11
11
|
const e = f(t, o);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { time as s } from "
|
|
2
|
-
import { frame as m, cancelFrame as o } from "
|
|
1
|
+
import { time as s } from "../frameloop/sync-time.js";
|
|
2
|
+
import { frame as m, cancelFrame as o } from "../frameloop/frame.js";
|
|
3
3
|
function i(c, r) {
|
|
4
4
|
const n = s.now(), e = ({ timestamp: a }) => {
|
|
5
5
|
const t = a - n;
|
|
@@ -1,13 +1,15 @@
|
|
|
1
|
-
function
|
|
1
|
+
function s(n, r, f) {
|
|
2
|
+
if (n == null)
|
|
3
|
+
return [];
|
|
2
4
|
if (n instanceof EventTarget)
|
|
3
5
|
return [n];
|
|
4
6
|
if (typeof n == "string") {
|
|
5
|
-
let
|
|
6
|
-
const
|
|
7
|
-
return
|
|
7
|
+
let u = document;
|
|
8
|
+
const i = (f == null ? void 0 : f[n]) ?? u.querySelectorAll(n);
|
|
9
|
+
return i ? Array.from(i) : [];
|
|
8
10
|
}
|
|
9
|
-
return Array.from(n);
|
|
11
|
+
return Array.from(n).filter((u) => u != null);
|
|
10
12
|
}
|
|
11
13
|
export {
|
|
12
|
-
|
|
14
|
+
s as resolveElements
|
|
13
15
|
};
|
|
@@ -1,50 +1,70 @@
|
|
|
1
|
-
import { int as
|
|
2
|
-
import { alpha as
|
|
3
|
-
import { px as
|
|
4
|
-
import { transformValueTypes as
|
|
5
|
-
const
|
|
1
|
+
import { int as t } from "../int.js";
|
|
2
|
+
import { alpha as n } from "../numbers/index.js";
|
|
3
|
+
import { px as i } from "../numbers/units.js";
|
|
4
|
+
import { transformValueTypes as o } from "./transform.js";
|
|
5
|
+
const g = {
|
|
6
6
|
// Border props
|
|
7
|
-
borderWidth:
|
|
8
|
-
borderTopWidth:
|
|
9
|
-
borderRightWidth:
|
|
10
|
-
borderBottomWidth:
|
|
11
|
-
borderLeftWidth:
|
|
12
|
-
borderRadius:
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
borderBottomLeftRadius: t,
|
|
7
|
+
borderWidth: i,
|
|
8
|
+
borderTopWidth: i,
|
|
9
|
+
borderRightWidth: i,
|
|
10
|
+
borderBottomWidth: i,
|
|
11
|
+
borderLeftWidth: i,
|
|
12
|
+
borderRadius: i,
|
|
13
|
+
borderTopLeftRadius: i,
|
|
14
|
+
borderTopRightRadius: i,
|
|
15
|
+
borderBottomRightRadius: i,
|
|
16
|
+
borderBottomLeftRadius: i,
|
|
18
17
|
// Positioning props
|
|
19
|
-
width:
|
|
20
|
-
maxWidth:
|
|
21
|
-
height:
|
|
22
|
-
maxHeight:
|
|
23
|
-
top:
|
|
24
|
-
right:
|
|
25
|
-
bottom:
|
|
26
|
-
left:
|
|
18
|
+
width: i,
|
|
19
|
+
maxWidth: i,
|
|
20
|
+
height: i,
|
|
21
|
+
maxHeight: i,
|
|
22
|
+
top: i,
|
|
23
|
+
right: i,
|
|
24
|
+
bottom: i,
|
|
25
|
+
left: i,
|
|
26
|
+
inset: i,
|
|
27
|
+
insetBlock: i,
|
|
28
|
+
insetBlockStart: i,
|
|
29
|
+
insetBlockEnd: i,
|
|
30
|
+
insetInline: i,
|
|
31
|
+
insetInlineStart: i,
|
|
32
|
+
insetInlineEnd: i,
|
|
27
33
|
// Spacing props
|
|
28
|
-
padding:
|
|
29
|
-
paddingTop:
|
|
30
|
-
paddingRight:
|
|
31
|
-
paddingBottom:
|
|
32
|
-
paddingLeft:
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
34
|
+
padding: i,
|
|
35
|
+
paddingTop: i,
|
|
36
|
+
paddingRight: i,
|
|
37
|
+
paddingBottom: i,
|
|
38
|
+
paddingLeft: i,
|
|
39
|
+
paddingBlock: i,
|
|
40
|
+
paddingBlockStart: i,
|
|
41
|
+
paddingBlockEnd: i,
|
|
42
|
+
paddingInline: i,
|
|
43
|
+
paddingInlineStart: i,
|
|
44
|
+
paddingInlineEnd: i,
|
|
45
|
+
margin: i,
|
|
46
|
+
marginTop: i,
|
|
47
|
+
marginRight: i,
|
|
48
|
+
marginBottom: i,
|
|
49
|
+
marginLeft: i,
|
|
50
|
+
marginBlock: i,
|
|
51
|
+
marginBlockStart: i,
|
|
52
|
+
marginBlockEnd: i,
|
|
53
|
+
marginInline: i,
|
|
54
|
+
marginInlineStart: i,
|
|
55
|
+
marginInlineEnd: i,
|
|
56
|
+
// Typography
|
|
57
|
+
fontSize: i,
|
|
38
58
|
// Misc
|
|
39
|
-
backgroundPositionX:
|
|
40
|
-
backgroundPositionY:
|
|
41
|
-
...
|
|
42
|
-
zIndex:
|
|
59
|
+
backgroundPositionX: i,
|
|
60
|
+
backgroundPositionY: i,
|
|
61
|
+
...o,
|
|
62
|
+
zIndex: t,
|
|
43
63
|
// SVG
|
|
44
|
-
fillOpacity:
|
|
45
|
-
strokeOpacity:
|
|
46
|
-
numOctaves:
|
|
64
|
+
fillOpacity: n,
|
|
65
|
+
strokeOpacity: n,
|
|
66
|
+
numOctaves: t
|
|
47
67
|
};
|
|
48
68
|
export {
|
|
49
|
-
|
|
69
|
+
g as numberValueTypes
|
|
50
70
|
};
|
|
@@ -1,11 +1,20 @@
|
|
|
1
|
-
function
|
|
1
|
+
function l(e, n) {
|
|
2
2
|
e.indexOf(n) === -1 && e.push(n);
|
|
3
3
|
}
|
|
4
|
-
function
|
|
5
|
-
const
|
|
6
|
-
|
|
4
|
+
function u(e, n) {
|
|
5
|
+
const t = e.indexOf(n);
|
|
6
|
+
t > -1 && e.splice(t, 1);
|
|
7
|
+
}
|
|
8
|
+
function f([...e], n, t) {
|
|
9
|
+
const i = n < 0 ? e.length + n : n;
|
|
10
|
+
if (i >= 0 && i < e.length) {
|
|
11
|
+
const c = t < 0 ? e.length + t : t, [s] = e.splice(n, 1);
|
|
12
|
+
e.splice(c, 0, s);
|
|
13
|
+
}
|
|
14
|
+
return e;
|
|
7
15
|
}
|
|
8
16
|
export {
|
|
9
|
-
|
|
10
|
-
|
|
17
|
+
l as addUniqueItem,
|
|
18
|
+
f as moveItem,
|
|
19
|
+
u as removeItem
|
|
11
20
|
};
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import { formatErrorMessage as n } from "./format-error-message.js";
|
|
2
|
-
let
|
|
3
|
-
},
|
|
2
|
+
let t = () => {
|
|
3
|
+
}, f = () => {
|
|
4
4
|
};
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
5
|
+
var i;
|
|
6
|
+
typeof process < "u" && ((i = process.env) == null ? void 0 : i.NODE_ENV) !== "production" && (t = (e, o, r) => {
|
|
7
|
+
!e && typeof console < "u" && console.warn(n(o, r));
|
|
8
|
+
}, f = (e, o, r) => {
|
|
9
|
+
if (!e)
|
|
10
|
+
throw new Error(n(o, r));
|
|
10
11
|
});
|
|
11
12
|
export {
|
|
12
|
-
|
|
13
|
-
|
|
13
|
+
f as invariant,
|
|
14
|
+
t as warning
|
|
14
15
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cs.d.ts","sourceRoot":"","sources":["../../../src/translations/locales/cs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAA;AAEhD,eAAO,MAAM,cAAc,EAAE,
|
|
1
|
+
{"version":3,"file":"cs.d.ts","sourceRoot":"","sources":["../../../src/translations/locales/cs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAA;AAEhD,eAAO,MAAM,cAAc,EAAE,gBAoD5B,CAAA"}
|
|
@@ -45,6 +45,10 @@ const e = {
|
|
|
45
45
|
searchbar: {
|
|
46
46
|
clearButtonAriaLabel: "Vymazat hledání",
|
|
47
47
|
searchButtonAriaLabel: "Hledat"
|
|
48
|
+
},
|
|
49
|
+
reorderableTable: {
|
|
50
|
+
dragHandleAriaLabel: "Přetáhněte pro změnu pořadí",
|
|
51
|
+
listAriaLabel: "Seznam s možností změny pořadí"
|
|
48
52
|
}
|
|
49
53
|
};
|
|
50
54
|
export {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"en.d.ts","sourceRoot":"","sources":["../../../src/translations/locales/en.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAA;AAEhD,eAAO,MAAM,cAAc,EAAE,
|
|
1
|
+
{"version":3,"file":"en.d.ts","sourceRoot":"","sources":["../../../src/translations/locales/en.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAA;AAEhD,eAAO,MAAM,cAAc,EAAE,gBAoD5B,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sk.d.ts","sourceRoot":"","sources":["../../../src/translations/locales/sk.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAA;AAEhD,eAAO,MAAM,cAAc,EAAE,
|
|
1
|
+
{"version":3,"file":"sk.d.ts","sourceRoot":"","sources":["../../../src/translations/locales/sk.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAA;AAEhD,eAAO,MAAM,cAAc,EAAE,gBAoD5B,CAAA"}
|
|
@@ -45,6 +45,10 @@ const e = {
|
|
|
45
45
|
searchbar: {
|
|
46
46
|
clearButtonAriaLabel: "Vymazať hľadanie",
|
|
47
47
|
searchButtonAriaLabel: "Hľadať"
|
|
48
|
+
},
|
|
49
|
+
reorderableTable: {
|
|
50
|
+
dragHandleAriaLabel: "Potiahnite pre zmenu poradia",
|
|
51
|
+
listAriaLabel: "Zoznam s možnosťou zmeny poradia"
|
|
48
52
|
}
|
|
49
53
|
};
|
|
50
54
|
export {
|
|
@@ -76,6 +76,13 @@ export interface SearchbarTranslations {
|
|
|
76
76
|
clearButtonAriaLabel: string;
|
|
77
77
|
searchButtonAriaLabel: string;
|
|
78
78
|
}
|
|
79
|
+
/**
|
|
80
|
+
* ReorderableTable component translations
|
|
81
|
+
*/
|
|
82
|
+
export interface ReorderableTableTranslations {
|
|
83
|
+
dragHandleAriaLabel: string;
|
|
84
|
+
listAriaLabel: string;
|
|
85
|
+
}
|
|
79
86
|
/**
|
|
80
87
|
* Complete translations object for all muza-ui components
|
|
81
88
|
*/
|
|
@@ -88,6 +95,7 @@ export interface MuzaTranslations {
|
|
|
88
95
|
swipeButton: SwipeButtonTranslations;
|
|
89
96
|
select: SelectTranslations;
|
|
90
97
|
searchbar: SearchbarTranslations;
|
|
98
|
+
reorderableTable: ReorderableTableTranslations;
|
|
91
99
|
}
|
|
92
100
|
/**
|
|
93
101
|
* Utility type for partial/deep overrides of translations
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/translations/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AAEtC;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAA;AAEhD;;GAEG;AACH,MAAM,MAAM,UAAU,GAClB,OAAO,GACP,WAAW,GACX,WAAW,GACX,WAAW,GACX,aAAa,GACb,cAAc,GACd,cAAc,GACd,cAAc,GACd,WAAW,GACX,WAAW,CAAA;AAEf;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,UAAU,CAAA;CACjB;AAED;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC,aAAa,EAAE,MAAM,CAAA;IACrB,WAAW,EAAE,MAAM,CAAA;IACnB,iBAAiB,EAAE,MAAM,CAAA;CAC1B;AAED;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACrC,mDAAmD;IACnD,cAAc,EAAE,gBAAgB,EAAE,CAAA;CACnC;AAED;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACrC,KAAK,EAAE,MAAM,CAAA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-
"version": "1.0.
|
|
3
|
+
"version": "1.0.9",
|
|
4
4
|
"description": "React component library built with Vite, shadcn/ui, and Tailwind CSS",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
"color": "^5.0.2",
|
|
77
77
|
"date-fns": "^4.1.0",
|
|
78
78
|
"embla-carousel-react": "^8.6.0",
|
|
79
|
-
"motion": "^12.
|
|
79
|
+
"motion": "^12.29.0",
|
|
80
80
|
"next-themes": "^0.4.6",
|
|
81
81
|
"photoswipe": "^5.4.4",
|
|
82
82
|
"react": "^18.3.1",
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { animateMotionValue as m } from "../interfaces/motion-value.js";
|
|
2
|
-
import { isMotionValue as a } from "../../../../../motion-dom/dist/es/value/utils/is-motion-value.js";
|
|
3
|
-
import { motionValue as r } from "../../../../../motion-dom/dist/es/value/index.js";
|
|
4
|
-
function f(o, i, n) {
|
|
5
|
-
const t = a(o) ? o : r(o);
|
|
6
|
-
return t.start(m("", t, i, n)), t.animation;
|
|
7
|
-
}
|
|
8
|
-
export {
|
|
9
|
-
f as animateSingleValue
|
|
10
|
-
};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { scaleCorrectors as i } from "../../projection/styles/scale-correction.js";
|
|
2
|
-
import { transformProps as n } from "../../../../../motion-dom/dist/es/render/utils/keys-transform.js";
|
|
3
|
-
function c(r, { layout: o, layoutId: t }) {
|
|
4
|
-
return n.has(r) || r.startsWith("origin") || (o || t !== void 0) && (!!i[r] || r === "opacity");
|
|
5
|
-
}
|
|
6
|
-
export {
|
|
7
|
-
c as isForcedMotionValue
|
|
8
|
-
};
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { addUniqueItem as a, removeItem as o } from "../../../../../motion-utils/dist/es/array.js";
|
|
2
|
-
class n {
|
|
3
|
-
constructor() {
|
|
4
|
-
this.members = [];
|
|
5
|
-
}
|
|
6
|
-
add(e) {
|
|
7
|
-
a(this.members, e), e.scheduleRender();
|
|
8
|
-
}
|
|
9
|
-
remove(e) {
|
|
10
|
-
if (o(this.members, e), e === this.prevLead && (this.prevLead = void 0), e === this.lead) {
|
|
11
|
-
const t = this.members[this.members.length - 1];
|
|
12
|
-
t && this.promote(t);
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
relegate(e) {
|
|
16
|
-
const t = this.members.findIndex((i) => e === i);
|
|
17
|
-
if (t === 0)
|
|
18
|
-
return !1;
|
|
19
|
-
let s;
|
|
20
|
-
for (let i = t; i >= 0; i--) {
|
|
21
|
-
const r = this.members[i];
|
|
22
|
-
if (r.isPresent !== !1) {
|
|
23
|
-
s = r;
|
|
24
|
-
break;
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
return s ? (this.promote(s), !0) : !1;
|
|
28
|
-
}
|
|
29
|
-
promote(e, t) {
|
|
30
|
-
const s = this.lead;
|
|
31
|
-
if (e !== s && (this.prevLead = s, this.lead = e, e.show(), s)) {
|
|
32
|
-
s.instance && s.scheduleRender(), e.scheduleRender(), e.resumeFrom = s, t && (e.resumeFrom.preserveOpacity = !0), s.snapshot && (e.snapshot = s.snapshot, e.snapshot.latestValues = s.animationValues || s.latestValues), e.root && e.root.isUpdating && (e.isLayoutDirty = !0);
|
|
33
|
-
const { crossfade: i } = e.options;
|
|
34
|
-
i === !1 && s.hide();
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
exitAnimationComplete() {
|
|
38
|
-
this.members.forEach((e) => {
|
|
39
|
-
const { options: t, resumingFrom: s } = e;
|
|
40
|
-
t.onExitComplete && t.onExitComplete(), s && s.options.onExitComplete && s.options.onExitComplete();
|
|
41
|
-
});
|
|
42
|
-
}
|
|
43
|
-
scheduleRender() {
|
|
44
|
-
this.members.forEach((e) => {
|
|
45
|
-
e.instance && e.scheduleRender(!1);
|
|
46
|
-
});
|
|
47
|
-
}
|
|
48
|
-
/**
|
|
49
|
-
* Clear any leads that have been removed this render to prevent them from being
|
|
50
|
-
* used in future animations and to prevent memory leaks
|
|
51
|
-
*/
|
|
52
|
-
removeLeadSnapshot() {
|
|
53
|
-
this.lead && this.lead.snapshot && (this.lead.snapshot = void 0);
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
export {
|
|
57
|
-
n as NodeStack
|
|
58
|
-
};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { isCSSVariableName as a } from "../../../../../motion-dom/dist/es/animation/utils/is-css-variable.js";
|
|
2
|
-
const o = {};
|
|
3
|
-
function t(e) {
|
|
4
|
-
for (const r in e)
|
|
5
|
-
o[r] = e[r], a(r) && (o[r].isCSSVariable = !0);
|
|
6
|
-
}
|
|
7
|
-
export {
|
|
8
|
-
t as addScaleCorrector,
|
|
9
|
-
o as scaleCorrectors
|
|
10
|
-
};
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { measureViewportBox as n } from "../../projection/utils/measure.js";
|
|
2
|
-
import { DOMVisualElement as a } from "../dom/DOMVisualElement.js";
|
|
3
|
-
import { buildHTMLStyles as i } from "./utils/build-styles.js";
|
|
4
|
-
import { renderHTML as u } from "./utils/render.js";
|
|
5
|
-
import { scrapeMotionValuesFromProps as p } from "./utils/scrape-motion-values.js";
|
|
6
|
-
import { transformProps as l } from "../../../../../motion-dom/dist/es/render/utils/keys-transform.js";
|
|
7
|
-
import { defaultTransformValue as f, readTransformValue as c } from "../../../../../motion-dom/dist/es/render/dom/parse-transform.js";
|
|
8
|
-
import { isCSSVariableName as d } from "../../../../../motion-dom/dist/es/animation/utils/is-css-variable.js";
|
|
9
|
-
function V(m) {
|
|
10
|
-
return window.getComputedStyle(m);
|
|
11
|
-
}
|
|
12
|
-
class b extends a {
|
|
13
|
-
constructor() {
|
|
14
|
-
super(...arguments), this.type = "html", this.renderInstance = u;
|
|
15
|
-
}
|
|
16
|
-
readValueFromInstance(e, r) {
|
|
17
|
-
var t;
|
|
18
|
-
if (l.has(r))
|
|
19
|
-
return (t = this.projection) != null && t.isProjecting ? f(r) : c(e, r);
|
|
20
|
-
{
|
|
21
|
-
const s = V(e), o = (d(r) ? s.getPropertyValue(r) : s[r]) || 0;
|
|
22
|
-
return typeof o == "string" ? o.trim() : o;
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
measureInstanceViewportBox(e, { transformPagePoint: r }) {
|
|
26
|
-
return n(e, r);
|
|
27
|
-
}
|
|
28
|
-
build(e, r, t) {
|
|
29
|
-
i(e, r, t.transformTemplate);
|
|
30
|
-
}
|
|
31
|
-
scrapeMotionValuesFromProps(e, r, t) {
|
|
32
|
-
return p(e, r, t);
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
export {
|
|
36
|
-
b as HTMLVisualElement,
|
|
37
|
-
V as getComputedStyle
|
|
38
|
-
};
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { buildTransform as p } from "./build-transform.js";
|
|
2
|
-
import { transformProps as u } from "../../../../../../motion-dom/dist/es/render/utils/keys-transform.js";
|
|
3
|
-
import { isCSSVariableName as c } from "../../../../../../motion-dom/dist/es/animation/utils/is-css-variable.js";
|
|
4
|
-
import { getValueAsType as g } from "../../../../../../motion-dom/dist/es/value/types/utils/get-as-type.js";
|
|
5
|
-
import { numberValueTypes as y } from "../../../../../../motion-dom/dist/es/value/types/maps/number.js";
|
|
6
|
-
function S(f, i, e) {
|
|
7
|
-
const { style: o, vars: l, transformOrigin: t } = f;
|
|
8
|
-
let m = !1, a = !1;
|
|
9
|
-
for (const r in i) {
|
|
10
|
-
const n = i[r];
|
|
11
|
-
if (u.has(r)) {
|
|
12
|
-
m = !0;
|
|
13
|
-
continue;
|
|
14
|
-
} else if (c(r)) {
|
|
15
|
-
l[r] = n;
|
|
16
|
-
continue;
|
|
17
|
-
} else {
|
|
18
|
-
const s = g(n, y[r]);
|
|
19
|
-
r.startsWith("origin") ? (a = !0, t[r] = s) : o[r] = s;
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
if (i.transform || (m || e ? o.transform = p(i, f.transform, e) : o.transform && (o.transform = "none")), a) {
|
|
23
|
-
const { originX: r = "50%", originY: n = "50%", originZ: s = 0 } = t;
|
|
24
|
-
o.transformOrigin = `${r} ${n} ${s}`;
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
export {
|
|
28
|
-
S as buildHTMLStyles
|
|
29
|
-
};
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { transformPropOrder as l } from "../../../../../../motion-dom/dist/es/render/utils/keys-transform.js";
|
|
2
|
-
import { getValueAsType as m } from "../../../../../../motion-dom/dist/es/value/types/utils/get-as-type.js";
|
|
3
|
-
import { numberValueTypes as p } from "../../../../../../motion-dom/dist/es/value/types/maps/number.js";
|
|
4
|
-
const y = {
|
|
5
|
-
x: "translateX",
|
|
6
|
-
y: "translateY",
|
|
7
|
-
z: "translateZ",
|
|
8
|
-
transformPerspective: "perspective"
|
|
9
|
-
}, v = l.length;
|
|
10
|
-
function A(u, i, s) {
|
|
11
|
-
let e = "", o = !0;
|
|
12
|
-
for (let a = 0; a < v; a++) {
|
|
13
|
-
const t = l[a], r = u[t];
|
|
14
|
-
if (r === void 0)
|
|
15
|
-
continue;
|
|
16
|
-
let n = !0;
|
|
17
|
-
if (typeof r == "number" ? n = r === (t.startsWith("scale") ? 1 : 0) : n = parseFloat(r) === 0, !n || s) {
|
|
18
|
-
const f = m(r, p[t]);
|
|
19
|
-
if (!n) {
|
|
20
|
-
o = !1;
|
|
21
|
-
const c = y[t] || t;
|
|
22
|
-
e += `${c}(${f}) `;
|
|
23
|
-
}
|
|
24
|
-
s && (i[t] = f);
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
return e = e.trim(), s ? e = s(i, o ? "" : e) : o && (e = "none"), e;
|
|
28
|
-
}
|
|
29
|
-
export {
|
|
30
|
-
A as buildTransform
|
|
31
|
-
};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { isForcedMotionValue as s } from "../../../motion/utils/is-forced-motion-value.js";
|
|
2
|
-
import { isMotionValue as f } from "../../../../../../motion-dom/dist/es/value/utils/is-motion-value.js";
|
|
3
|
-
function u(n, r, t) {
|
|
4
|
-
var c;
|
|
5
|
-
const { style: e } = n, i = {};
|
|
6
|
-
for (const o in e)
|
|
7
|
-
(f(e[o]) || r.style && f(r.style[o]) || s(o, n) || ((c = t == null ? void 0 : t.getValue(o)) == null ? void 0 : c.liveStyle) !== void 0) && (i[o] = e[o]);
|
|
8
|
-
return i;
|
|
9
|
-
}
|
|
10
|
-
export {
|
|
11
|
-
u as scrapeMotionValuesFromProps
|
|
12
|
-
};
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { createBox as s } from "../../projection/geometry/models.js";
|
|
2
|
-
import { DOMVisualElement as a } from "../dom/DOMVisualElement.js";
|
|
3
|
-
import { camelToDash as m } from "../dom/utils/camel-to-dash.js";
|
|
4
|
-
import { buildSVGAttrs as i } from "./utils/build-attrs.js";
|
|
5
|
-
import { camelCaseAttributes as u } from "./utils/camel-case-attrs.js";
|
|
6
|
-
import { isSVGTag as n } from "./utils/is-svg-tag.js";
|
|
7
|
-
import { renderSVG as p } from "./utils/render.js";
|
|
8
|
-
import { scrapeMotionValuesFromProps as l } from "./utils/scrape-motion-values.js";
|
|
9
|
-
import { transformProps as f } from "../../../../../motion-dom/dist/es/render/utils/keys-transform.js";
|
|
10
|
-
import { getDefaultValueType as V } from "../../../../../motion-dom/dist/es/value/types/maps/defaults.js";
|
|
11
|
-
class A extends a {
|
|
12
|
-
constructor() {
|
|
13
|
-
super(...arguments), this.type = "svg", this.isSVGTag = !1, this.measureInstanceViewportBox = s;
|
|
14
|
-
}
|
|
15
|
-
getBaseTargetFromProps(t, r) {
|
|
16
|
-
return t[r];
|
|
17
|
-
}
|
|
18
|
-
readValueFromInstance(t, r) {
|
|
19
|
-
if (f.has(r)) {
|
|
20
|
-
const e = V(r);
|
|
21
|
-
return e && e.default || 0;
|
|
22
|
-
}
|
|
23
|
-
return r = u.has(r) ? r : m(r), t.getAttribute(r);
|
|
24
|
-
}
|
|
25
|
-
scrapeMotionValuesFromProps(t, r, e) {
|
|
26
|
-
return l(t, r, e);
|
|
27
|
-
}
|
|
28
|
-
build(t, r, e) {
|
|
29
|
-
i(t, r, this.isSVGTag, e.transformTemplate, e.style);
|
|
30
|
-
}
|
|
31
|
-
renderInstance(t, r, e, o) {
|
|
32
|
-
p(t, r, e, o);
|
|
33
|
-
}
|
|
34
|
-
mount(t) {
|
|
35
|
-
this.isSVGTag = n(t.tagName), super.mount(t);
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
export {
|
|
39
|
-
A as SVGVisualElement
|
|
40
|
-
};
|