@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
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
1
|
+
import { getValueTransition as w } from "../utils/get-value-transition.js";
|
|
2
|
+
import { positionalKeys as y } from "../../render/utils/keys-position.js";
|
|
3
|
+
import { setTarget as M } from "../../render/utils/setters.js";
|
|
4
|
+
import { addValueToWillChange as S } from "../../value/will-change/add-will-change.js";
|
|
5
|
+
import { getOptimisedAppearId as H } from "../optimized-appear/get-appear-id.js";
|
|
6
|
+
import { animateMotionValue as B } from "./motion-value.js";
|
|
7
|
+
import { frame as V } from "../../frameloop/frame.js";
|
|
8
8
|
function I({ protectedKeys: t, needsAnimating: a }, n) {
|
|
9
9
|
const r = t.hasOwnProperty(n) && a[n] !== !0;
|
|
10
10
|
return a[n] = !1, r;
|
|
@@ -19,25 +19,25 @@ function R(t, a, { delay: n = 0, transitionOverride: r, type: c } = {}) {
|
|
|
19
19
|
continue;
|
|
20
20
|
const m = {
|
|
21
21
|
delay: n,
|
|
22
|
-
...
|
|
22
|
+
...w(u || {}, o)
|
|
23
23
|
}, l = i.get();
|
|
24
24
|
if (l !== void 0 && !i.isAnimating && !Array.isArray(e) && e === l && !m.velocity)
|
|
25
25
|
continue;
|
|
26
26
|
let g = !1;
|
|
27
27
|
if (window.MotionHandoffAnimation) {
|
|
28
|
-
const h =
|
|
28
|
+
const h = H(t);
|
|
29
29
|
if (h) {
|
|
30
30
|
const A = window.MotionHandoffAnimation(h, o, V);
|
|
31
31
|
A !== null && (m.startTime = A, g = !0);
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
|
-
|
|
34
|
+
S(t, o), i.start(B(o, i, e, t.shouldReduceMotion && y.has(o) ? { type: !1 } : m, t, g));
|
|
35
35
|
const T = i.animation;
|
|
36
36
|
T && s.push(T);
|
|
37
37
|
}
|
|
38
38
|
return f && Promise.all(s).then(() => {
|
|
39
39
|
V.update(() => {
|
|
40
|
-
f &&
|
|
40
|
+
f && M(t, f);
|
|
41
41
|
});
|
|
42
42
|
}), s;
|
|
43
43
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { positionalKeys as
|
|
2
|
-
import { findDimensionValueType as
|
|
3
|
-
import { getVariableValue as
|
|
4
|
-
import { isCSSVariableToken as
|
|
5
|
-
import { KeyframeResolver as
|
|
6
|
-
import { isNone as
|
|
7
|
-
import { makeNoneKeyframesAnimatable as
|
|
8
|
-
import {
|
|
9
|
-
class
|
|
1
|
+
import { positionalKeys as c } from "../../render/utils/keys-position.js";
|
|
2
|
+
import { findDimensionValueType as h } from "../../value/types/dimensions.js";
|
|
3
|
+
import { getVariableValue as g } from "../utils/css-variables-conversion.js";
|
|
4
|
+
import { isCSSVariableToken as K, containsCSSVariable as p } from "../utils/is-css-variable.js";
|
|
5
|
+
import { KeyframeResolver as v } from "./KeyframesResolver.js";
|
|
6
|
+
import { isNone as V } from "./utils/is-none.js";
|
|
7
|
+
import { makeNoneKeyframesAnimatable as S } from "./utils/make-none-animatable.js";
|
|
8
|
+
import { positionalValues as m, isNumOrPxType as y } from "./utils/unit-conversion.js";
|
|
9
|
+
class M extends v {
|
|
10
10
|
constructor(e, n, r, t, o) {
|
|
11
11
|
super(e, n, r, t, o, !0);
|
|
12
12
|
}
|
|
@@ -17,16 +17,20 @@ class k extends g {
|
|
|
17
17
|
super.readKeyframes();
|
|
18
18
|
for (let s = 0; s < e.length; s++) {
|
|
19
19
|
let i = e[s];
|
|
20
|
-
if (typeof i == "string" && (i = i.trim(),
|
|
21
|
-
const
|
|
22
|
-
|
|
20
|
+
if (typeof i == "string" && (i = i.trim(), K(i))) {
|
|
21
|
+
const d = g(i, n.current);
|
|
22
|
+
d !== void 0 && (e[s] = d), s === e.length - 1 && (this.finalKeyframe = i);
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
|
-
if (this.resolveNoneKeyframes(), !
|
|
25
|
+
if (this.resolveNoneKeyframes(), !c.has(r) || e.length !== 2)
|
|
26
26
|
return;
|
|
27
|
-
const [t, o] = e, a =
|
|
27
|
+
const [t, o] = e, a = h(t), f = h(o), l = p(t), u = p(o);
|
|
28
|
+
if (l !== u && m[r]) {
|
|
29
|
+
this.needsMeasurement = !0;
|
|
30
|
+
return;
|
|
31
|
+
}
|
|
28
32
|
if (a !== f)
|
|
29
|
-
if (
|
|
33
|
+
if (y(a) && y(f))
|
|
30
34
|
for (let s = 0; s < e.length; s++) {
|
|
31
35
|
const i = e[s];
|
|
32
36
|
typeof i == "string" && (e[s] = parseFloat(i));
|
|
@@ -36,8 +40,8 @@ class k extends g {
|
|
|
36
40
|
resolveNoneKeyframes() {
|
|
37
41
|
const { unresolvedKeyframes: e, name: n } = this, r = [];
|
|
38
42
|
for (let t = 0; t < e.length; t++)
|
|
39
|
-
(e[t] === null ||
|
|
40
|
-
r.length &&
|
|
43
|
+
(e[t] === null || V(e[t])) && r.push(t);
|
|
44
|
+
r.length && S(e, r, n);
|
|
41
45
|
}
|
|
42
46
|
measureInitialState() {
|
|
43
47
|
const { element: e, unresolvedKeyframes: n, name: r } = this;
|
|
@@ -55,11 +59,11 @@ class k extends g {
|
|
|
55
59
|
const t = e.getValue(n);
|
|
56
60
|
t && t.jump(this.measuredOrigin, !1);
|
|
57
61
|
const o = r.length - 1, a = r[o];
|
|
58
|
-
r[o] = m[n](e.measureViewportBox(), window.getComputedStyle(e.current)), a !== null && this.finalKeyframe === void 0 && (this.finalKeyframe = a), (f = this.removedTransforms) != null && f.length && this.removedTransforms.forEach(([
|
|
59
|
-
e.getValue(
|
|
62
|
+
r[o] = m[n](e.measureViewportBox(), window.getComputedStyle(e.current)), a !== null && this.finalKeyframe === void 0 && (this.finalKeyframe = a), (f = this.removedTransforms) != null && f.length && this.removedTransforms.forEach(([l, u]) => {
|
|
63
|
+
e.getValue(l).set(u);
|
|
60
64
|
}), this.resolveNoneKeyframes();
|
|
61
65
|
}
|
|
62
66
|
}
|
|
63
67
|
export {
|
|
64
|
-
|
|
68
|
+
M as DOMKeyframesResolver
|
|
65
69
|
};
|
|
@@ -1,5 +1,9 @@
|
|
|
1
|
-
const r = (
|
|
1
|
+
const r = (t) => (s) => typeof s == "string" && s.startsWith(t), e = /* @__PURE__ */ r("--"), i = /* @__PURE__ */ r("var(--"), a = (t) => i(t) ? n.test(t.split("/*")[0].trim()) : !1, n = /var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;
|
|
2
|
+
function o(t) {
|
|
3
|
+
return typeof t != "string" ? !1 : t.split("/*")[0].includes("var(--");
|
|
4
|
+
}
|
|
2
5
|
export {
|
|
3
|
-
|
|
4
|
-
|
|
6
|
+
o as containsCSSVariable,
|
|
7
|
+
e as isCSSVariableName,
|
|
8
|
+
a as isCSSVariableToken
|
|
5
9
|
};
|
package/dist/node_modules/{framer-motion → motion-dom}/dist/es/projection/animation/mix-values.js
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { mixNumber as s } from "
|
|
2
|
-
import { px as R, percent as u } from "
|
|
1
|
+
import { mixNumber as s } from "../../utils/mix/number.js";
|
|
2
|
+
import { px as R, percent as u } from "../../value/types/numbers/units.js";
|
|
3
3
|
import { progress as h } from "../../../../../motion-utils/dist/es/progress.js";
|
|
4
4
|
import { noop as B } from "../../../../../motion-utils/dist/es/noop.js";
|
|
5
5
|
import { circOut as L } from "../../../../../motion-utils/dist/es/easing/circ.js";
|
package/dist/node_modules/{framer-motion → motion-dom}/dist/es/projection/geometry/delta-apply.js
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { mixNumber as x } from "../../utils/mix/number.js";
|
|
2
|
+
import { hasTransform as E } from "../utils/has-transform.js";
|
|
3
3
|
function y(t, n, o) {
|
|
4
4
|
const i = t - o, s = n * i;
|
|
5
5
|
return o + s;
|
|
@@ -26,7 +26,7 @@ function D(t, n, o, i = !1) {
|
|
|
26
26
|
u && u.props.style && u.props.style.display === "contents" || (i && l.options.layoutScroll && l.scroll && l !== l.root && A(t, {
|
|
27
27
|
x: -l.scroll.offset.x,
|
|
28
28
|
y: -l.scroll.offset.y
|
|
29
|
-
}), f && (n.x *= f.x.scale, n.y *= f.y.scale, _(t, f)), i &&
|
|
29
|
+
}), f && (n.x *= f.x.scale, n.y *= f.y.scale, _(t, f)), i && E(l.latestValues) && A(t, l.latestValues));
|
|
30
30
|
}
|
|
31
31
|
n.x < a && n.x > m && (n.x = 1), n.y < a && n.y > m && (n.y = 1);
|
|
32
32
|
}
|
|
@@ -34,7 +34,7 @@ function N(t, n) {
|
|
|
34
34
|
t.min = t.min + n, t.max = t.max + n;
|
|
35
35
|
}
|
|
36
36
|
function r(t, n, o, i, s = 0.5) {
|
|
37
|
-
const l =
|
|
37
|
+
const l = x(t.min, t.max, s);
|
|
38
38
|
p(t, n, o, l, i);
|
|
39
39
|
}
|
|
40
40
|
function A(t, n) {
|
package/dist/node_modules/{framer-motion → motion-dom}/dist/es/projection/geometry/delta-remove.js
RENAMED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { percent as p } from "
|
|
3
|
-
import {
|
|
1
|
+
import { mixNumber as v } from "../../utils/mix/number.js";
|
|
2
|
+
import { percent as p } from "../../value/types/numbers/units.js";
|
|
3
|
+
import { scalePoint as r } from "./delta-apply.js";
|
|
4
4
|
function c(e, m, f, n, d) {
|
|
5
|
-
return e -= m, e =
|
|
5
|
+
return e -= m, e = r(e, 1 / f, n), d !== void 0 && (e = r(e, 1 / d, n)), e;
|
|
6
6
|
}
|
|
7
7
|
function D(e, m = 0, f = 1, n = 0.5, d, u = e, y = e) {
|
|
8
|
-
if (p.test(m) && (m = parseFloat(m), m =
|
|
8
|
+
if (p.test(m) && (m = parseFloat(m), m = v(y.min, y.max, m / 100) - y.min), typeof m != "number")
|
|
9
9
|
return;
|
|
10
|
-
let i =
|
|
10
|
+
let i = v(u.min, u.max, n);
|
|
11
11
|
e === u && (i -= m), e.min = c(e.min, m, f, i, d), e.max = c(e.max, m, f, i, d);
|
|
12
12
|
}
|
|
13
13
|
function P(e, m, [f, n, d], u, y) {
|
|
@@ -2,10 +2,13 @@ import { addDomEvent as t } from "../../events/add-dom-event.js";
|
|
|
2
2
|
import { createProjectionNode as c } from "./create-projection-node.js";
|
|
3
3
|
const l = c({
|
|
4
4
|
attachResizeListener: (o, e) => t(o, "resize", e),
|
|
5
|
-
measureScroll: () =>
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
measureScroll: () => {
|
|
6
|
+
var o, e;
|
|
7
|
+
return {
|
|
8
|
+
x: document.documentElement.scrollLeft || ((o = document.body) == null ? void 0 : o.scrollLeft) || 0,
|
|
9
|
+
y: document.documentElement.scrollTop || ((e = document.body) == null ? void 0 : e.scrollTop) || 0
|
|
10
|
+
};
|
|
11
|
+
},
|
|
9
12
|
checkIsScrollRoot: () => !0
|
|
10
13
|
});
|
|
11
14
|
export {
|