@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.
Files changed (185) hide show
  1. package/dist/components/Button/Button.js +19 -19
  2. package/dist/components/Button/ButtonLoader.d.ts +7 -0
  3. package/dist/components/Button/ButtonLoader.d.ts.map +1 -0
  4. package/dist/components/Button/ButtonLoader.js +40 -0
  5. package/dist/components/Chip/Chip.d.ts +43 -0
  6. package/dist/components/Chip/Chip.d.ts.map +1 -0
  7. package/dist/components/Chip/Chip.js +98 -0
  8. package/dist/components/Chip/Chip.stories.d.ts +9 -0
  9. package/dist/components/Chip/Chip.stories.d.ts.map +1 -0
  10. package/dist/components/Chip/index.d.ts +2 -0
  11. package/dist/components/Chip/index.d.ts.map +1 -0
  12. package/dist/components/DataTable/DataTable.d.ts +10 -4
  13. package/dist/components/DataTable/DataTable.d.ts.map +1 -1
  14. package/dist/components/DataTable/DataTable.js +77 -49
  15. package/dist/components/DataTable/DataTable.stories.d.ts +4 -0
  16. package/dist/components/DataTable/DataTable.stories.d.ts.map +1 -1
  17. package/dist/components/DataTable/index.d.ts +1 -1
  18. package/dist/components/DataTable/index.d.ts.map +1 -1
  19. package/dist/components/Icons/CustomIcons.js +1 -1
  20. package/dist/components/Reorderable/Reorderable.d.ts +100 -0
  21. package/dist/components/Reorderable/Reorderable.d.ts.map +1 -0
  22. package/dist/components/Reorderable/Reorderable.js +197 -0
  23. package/dist/components/Reorderable/Reorderable.stories.d.ts +14 -0
  24. package/dist/components/Reorderable/Reorderable.stories.d.ts.map +1 -0
  25. package/dist/components/Reorderable/index.d.ts +2 -0
  26. package/dist/components/Reorderable/index.d.ts.map +1 -0
  27. package/dist/components/ReorderableTable/ReorderableTable.d.ts +40 -0
  28. package/dist/components/ReorderableTable/ReorderableTable.d.ts.map +1 -0
  29. package/dist/components/ReorderableTable/ReorderableTable.js +175 -0
  30. package/dist/components/ReorderableTable/ReorderableTable.stories.d.ts +18 -0
  31. package/dist/components/ReorderableTable/ReorderableTable.stories.d.ts.map +1 -0
  32. package/dist/components/ReorderableTable/index.d.ts +2 -0
  33. package/dist/components/ReorderableTable/index.d.ts.map +1 -0
  34. package/dist/components/SwipeButton/SwipeButton.js +7 -7
  35. package/dist/components/index.d.ts +3 -0
  36. package/dist/components/index.d.ts.map +1 -1
  37. package/dist/index.js +196 -183
  38. package/dist/muza-ui.css +1 -1
  39. package/dist/node_modules/framer-motion/dist/es/animation/animate/resolve-subjects.js +4 -4
  40. package/dist/node_modules/framer-motion/dist/es/animation/animate/subject.js +24 -24
  41. package/dist/node_modules/framer-motion/dist/es/animation/sequence/create.js +61 -56
  42. package/dist/node_modules/framer-motion/dist/es/animation/utils/create-visual-element.js +8 -8
  43. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PopChild.js +32 -30
  44. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PresenceChild.js +22 -22
  45. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/index.js +34 -32
  46. package/dist/node_modules/framer-motion/dist/es/components/Reorder/Group.js +46 -0
  47. package/dist/node_modules/framer-motion/dist/es/components/Reorder/Item.js +34 -0
  48. package/dist/node_modules/framer-motion/dist/es/components/Reorder/utils/auto-scroll.js +64 -0
  49. package/dist/node_modules/framer-motion/dist/es/components/Reorder/utils/check-reorder.js +17 -0
  50. package/dist/node_modules/framer-motion/dist/es/context/MotionContext/utils.js +2 -2
  51. package/dist/node_modules/framer-motion/dist/es/context/ReorderContext.js +5 -0
  52. package/dist/node_modules/framer-motion/dist/es/events/add-pointer-event.js +3 -3
  53. package/dist/node_modules/framer-motion/dist/es/gestures/drag/VisualElementDragControls.js +100 -89
  54. package/dist/node_modules/framer-motion/dist/es/gestures/drag/index.js +11 -7
  55. package/dist/node_modules/framer-motion/dist/es/gestures/drag/utils/constraints.js +4 -4
  56. package/dist/node_modules/framer-motion/dist/es/gestures/focus.js +2 -2
  57. package/dist/node_modules/framer-motion/dist/es/gestures/hover.js +1 -1
  58. package/dist/node_modules/framer-motion/dist/es/gestures/pan/PanSession.js +106 -59
  59. package/dist/node_modules/framer-motion/dist/es/gestures/pan/index.js +6 -6
  60. package/dist/node_modules/framer-motion/dist/es/gestures/press.js +1 -1
  61. package/dist/node_modules/framer-motion/dist/es/motion/features/animation/exit.js +1 -1
  62. package/dist/node_modules/framer-motion/dist/es/motion/features/animation/index.js +5 -5
  63. package/dist/node_modules/framer-motion/dist/es/motion/features/definitions.js +18 -6
  64. package/dist/node_modules/framer-motion/dist/es/motion/features/drag.js +1 -1
  65. package/dist/node_modules/framer-motion/dist/es/motion/features/layout/MeasureLayout.js +27 -42
  66. package/dist/node_modules/framer-motion/dist/es/motion/features/layout.js +4 -4
  67. package/dist/node_modules/framer-motion/dist/es/motion/features/load-features.js +10 -7
  68. package/dist/node_modules/framer-motion/dist/es/motion/features/viewport/index.js +4 -4
  69. package/dist/node_modules/framer-motion/dist/es/motion/index.js +49 -49
  70. package/dist/node_modules/framer-motion/dist/es/motion/utils/use-motion-ref.js +18 -13
  71. package/dist/node_modules/framer-motion/dist/es/motion/utils/use-visual-element.js +41 -40
  72. package/dist/node_modules/framer-motion/dist/es/motion/utils/use-visual-state.js +13 -13
  73. package/dist/node_modules/framer-motion/dist/es/render/dom/create-visual-element.js +6 -6
  74. package/dist/node_modules/framer-motion/dist/es/render/dom/use-render.js +12 -12
  75. package/dist/node_modules/framer-motion/dist/es/render/html/use-html-visual-state.js +3 -3
  76. package/dist/node_modules/framer-motion/dist/es/render/html/use-props.js +7 -7
  77. package/dist/node_modules/framer-motion/dist/es/render/svg/use-props.js +5 -5
  78. package/dist/node_modules/framer-motion/dist/es/render/svg/use-svg-visual-state.js +1 -1
  79. package/dist/node_modules/framer-motion/dist/es/value/use-transform.js +26 -18
  80. package/dist/node_modules/motion-dom/dist/es/animation/AsyncMotionValueAnimation.js +33 -30
  81. package/dist/node_modules/motion-dom/dist/es/animation/NativeAnimation.js +17 -17
  82. package/dist/node_modules/motion-dom/dist/es/animation/NativeAnimationExtended.js +20 -19
  83. package/dist/node_modules/motion-dom/dist/es/animation/animate/single-value.js +10 -0
  84. package/dist/node_modules/{framer-motion → motion-dom}/dist/es/animation/interfaces/motion-value.js +13 -13
  85. package/dist/node_modules/{framer-motion → motion-dom}/dist/es/animation/interfaces/visual-element-target.js +11 -11
  86. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/DOMKeyframesResolver.js +24 -20
  87. package/dist/node_modules/{framer-motion → motion-dom}/dist/es/animation/utils/default-transitions.js +1 -1
  88. package/dist/node_modules/motion-dom/dist/es/animation/utils/is-css-variable.js +7 -3
  89. package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/is-keyboard-accessible.js +1 -1
  90. package/dist/node_modules/{framer-motion → motion-dom}/dist/es/projection/animation/mix-values.js +2 -2
  91. package/dist/node_modules/{framer-motion → motion-dom}/dist/es/projection/geometry/delta-apply.js +4 -4
  92. package/dist/node_modules/{framer-motion → motion-dom}/dist/es/projection/geometry/delta-calc.js +1 -1
  93. package/dist/node_modules/{framer-motion → motion-dom}/dist/es/projection/geometry/delta-remove.js +6 -6
  94. package/dist/node_modules/{framer-motion → motion-dom}/dist/es/projection/node/DocumentProjectionNode.js +7 -4
  95. package/dist/node_modules/{framer-motion → motion-dom}/dist/es/projection/node/create-projection-node.js +149 -149
  96. package/dist/node_modules/motion-dom/dist/es/projection/shared/stack.js +60 -0
  97. package/dist/node_modules/{framer-motion → motion-dom}/dist/es/projection/styles/scale-border-radius.js +1 -1
  98. package/dist/node_modules/{framer-motion → motion-dom}/dist/es/projection/styles/scale-box-shadow.js +2 -2
  99. package/dist/node_modules/motion-dom/dist/es/projection/styles/scale-correction.js +21 -0
  100. package/dist/node_modules/{framer-motion → motion-dom}/dist/es/render/VisualElement.js +58 -50
  101. package/dist/node_modules/{framer-motion → motion-dom}/dist/es/render/dom/DOMVisualElement.js +7 -6
  102. package/dist/node_modules/motion-dom/dist/es/render/dom/utils/camel-to-dash.js +6 -0
  103. package/dist/node_modules/motion-dom/dist/es/render/html/HTMLVisualElement.js +38 -0
  104. package/dist/node_modules/motion-dom/dist/es/render/html/utils/build-styles.js +29 -0
  105. package/dist/node_modules/motion-dom/dist/es/render/html/utils/build-transform.js +37 -0
  106. package/dist/node_modules/motion-dom/dist/es/render/html/utils/scrape-motion-values.js +14 -0
  107. package/dist/node_modules/motion-dom/dist/es/render/svg/SVGVisualElement.js +40 -0
  108. package/dist/node_modules/motion-dom/dist/es/render/svg/utils/build-attrs.js +32 -0
  109. package/dist/node_modules/motion-dom/dist/es/render/svg/utils/path.js +15 -0
  110. package/dist/node_modules/motion-dom/dist/es/render/svg/utils/scrape-motion-values.js +15 -0
  111. package/dist/node_modules/{framer-motion → motion-dom}/dist/es/render/utils/animation-state.js +31 -31
  112. package/dist/node_modules/{framer-motion → motion-dom}/dist/es/render/utils/is-controlling-variants.js +1 -1
  113. package/dist/node_modules/motion-dom/dist/es/render/utils/is-forced-motion-value.js +9 -0
  114. package/dist/node_modules/{framer-motion → motion-dom}/dist/es/render/utils/motion-values.js +6 -6
  115. package/dist/node_modules/motion-dom/dist/es/render/utils/reduced-motion/index.js +15 -0
  116. package/dist/node_modules/{framer-motion → motion-dom}/dist/es/render/utils/setters.js +4 -4
  117. package/dist/node_modules/{framer-motion → motion-dom}/dist/es/utils/delay.js +2 -2
  118. package/dist/node_modules/motion-dom/dist/es/utils/resolve-elements.js +8 -6
  119. package/dist/node_modules/motion-dom/dist/es/value/types/maps/number.js +62 -42
  120. package/dist/node_modules/motion-dom/dist/es/value/utils/resolve-motion-value.js +7 -0
  121. package/dist/node_modules/motion-dom/dist/es/value/will-change/is.js +7 -0
  122. package/dist/node_modules/motion-utils/dist/es/array.js +15 -6
  123. package/dist/node_modules/motion-utils/dist/es/errors.js +10 -9
  124. package/dist/translations/locales/cs.d.ts.map +1 -1
  125. package/dist/translations/locales/cs.js +4 -0
  126. package/dist/translations/locales/en.d.ts.map +1 -1
  127. package/dist/translations/locales/en.js +4 -0
  128. package/dist/translations/locales/sk.d.ts.map +1 -1
  129. package/dist/translations/locales/sk.js +4 -0
  130. package/dist/translations/types.d.ts +8 -0
  131. package/dist/translations/types.d.ts.map +1 -1
  132. package/package.json +2 -2
  133. package/dist/node_modules/framer-motion/dist/es/animation/animate/single-value.js +0 -10
  134. package/dist/node_modules/framer-motion/dist/es/motion/utils/is-forced-motion-value.js +0 -8
  135. package/dist/node_modules/framer-motion/dist/es/projection/shared/stack.js +0 -58
  136. package/dist/node_modules/framer-motion/dist/es/projection/styles/scale-correction.js +0 -10
  137. package/dist/node_modules/framer-motion/dist/es/render/dom/utils/camel-to-dash.js +0 -4
  138. package/dist/node_modules/framer-motion/dist/es/render/html/HTMLVisualElement.js +0 -38
  139. package/dist/node_modules/framer-motion/dist/es/render/html/utils/build-styles.js +0 -29
  140. package/dist/node_modules/framer-motion/dist/es/render/html/utils/build-transform.js +0 -31
  141. package/dist/node_modules/framer-motion/dist/es/render/html/utils/scrape-motion-values.js +0 -12
  142. package/dist/node_modules/framer-motion/dist/es/render/svg/SVGVisualElement.js +0 -40
  143. package/dist/node_modules/framer-motion/dist/es/render/svg/utils/build-attrs.js +0 -23
  144. package/dist/node_modules/framer-motion/dist/es/render/svg/utils/path.js +0 -18
  145. package/dist/node_modules/framer-motion/dist/es/render/svg/utils/scrape-motion-values.js +0 -15
  146. package/dist/node_modules/framer-motion/dist/es/utils/reduced-motion/index.js +0 -13
  147. package/dist/node_modules/framer-motion/dist/es/value/use-will-change/is.js +0 -7
  148. package/dist/node_modules/framer-motion/dist/es/value/utils/resolve-motion-value.js +0 -7
  149. /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/animation/interfaces/visual-element-variant.js +0 -0
  150. /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/animation/interfaces/visual-element.js +0 -0
  151. /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/animation/optimized-appear/data-id.js +0 -0
  152. /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/animation/optimized-appear/get-appear-id.js +0 -0
  153. /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/animation/utils/calc-child-stagger.js +0 -0
  154. /package/dist/node_modules/{framer-motion/dist/es/animation/animators/waapi → motion-dom/dist/es/animation}/utils/get-final-keyframe.js +0 -0
  155. /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/animation/utils/is-transition-defined.js +0 -0
  156. /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/events/add-dom-event.js +0 -0
  157. /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/projection/geometry/conversion.js +0 -0
  158. /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/projection/geometry/copy.js +0 -0
  159. /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/projection/geometry/models.js +0 -0
  160. /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/projection/geometry/utils.js +0 -0
  161. /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/projection/node/HTMLProjectionNode.js +0 -0
  162. /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/projection/node/state.js +0 -0
  163. /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/projection/styles/transform.js +0 -0
  164. /package/dist/node_modules/{framer-motion/dist/es/render → motion-dom/dist/es/projection}/utils/compare-by-depth.js +0 -0
  165. /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/projection/utils/each-axis.js +0 -0
  166. /package/dist/node_modules/{framer-motion/dist/es/render → motion-dom/dist/es/projection}/utils/flat-tree.js +0 -0
  167. /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/projection/utils/has-transform.js +0 -0
  168. /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/projection/utils/measure.js +0 -0
  169. /package/dist/node_modules/{framer-motion/dist/es/motion/features → motion-dom/dist/es/render}/Feature.js +0 -0
  170. /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/render/html/utils/render.js +0 -0
  171. /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/render/object/ObjectVisualElement.js +0 -0
  172. /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/render/store.js +0 -0
  173. /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/render/svg/utils/camel-case-attrs.js +0 -0
  174. /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/render/svg/utils/is-svg-tag.js +0 -0
  175. /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/render/svg/utils/render.js +0 -0
  176. /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/render/utils/get-variant-context.js +0 -0
  177. /package/dist/node_modules/{framer-motion/dist/es/animation → motion-dom/dist/es/render}/utils/is-animation-controls.js +0 -0
  178. /package/dist/node_modules/{framer-motion/dist/es/animation → motion-dom/dist/es/render}/utils/is-keyframes-target.js +0 -0
  179. /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/render/utils/is-variant-label.js +0 -0
  180. /package/dist/node_modules/{framer-motion/dist/es → motion-dom/dist/es/render}/utils/reduced-motion/state.js +0 -0
  181. /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/render/utils/resolve-dynamic-variants.js +0 -0
  182. /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/render/utils/resolve-variants.js +0 -0
  183. /package/dist/node_modules/{framer-motion/dist/es → motion-dom/dist/es/render}/utils/shallow-compare.js +0 -0
  184. /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/render/utils/variant-props.js +0 -0
  185. /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 { setTarget as w } from "../../render/utils/setters.js";
2
- import { addValueToWillChange as y } from "../../value/use-will-change/add-will-change.js";
3
- import { getOptimisedAppearId as M } from "../optimized-appear/get-appear-id.js";
4
- import { animateMotionValue as S } from "./motion-value.js";
5
- import { getValueTransition as H } from "../../../../../motion-dom/dist/es/animation/utils/get-value-transition.js";
6
- import { frame as V } from "../../../../../motion-dom/dist/es/frameloop/frame.js";
7
- import { positionalKeys as B } from "../../../../../motion-dom/dist/es/render/utils/keys-position.js";
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
- ...H(u || {}, o)
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 = M(t);
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
- y(t, o), i.start(S(o, i, e, t.shouldReduceMotion && B.has(o) ? { type: !1 } : m, t, g));
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 && w(t, f);
40
+ f && M(t, f);
41
41
  });
42
42
  }), s;
43
43
  }
@@ -1,12 +1,12 @@
1
- import { positionalKeys as h } from "../../render/utils/keys-position.js";
2
- import { findDimensionValueType as u } from "../../value/types/dimensions.js";
3
- import { getVariableValue as p } from "../utils/css-variables-conversion.js";
4
- import { isCSSVariableToken as y } from "../utils/is-css-variable.js";
5
- import { KeyframeResolver as g } from "./KeyframesResolver.js";
6
- import { isNone as c } from "./utils/is-none.js";
7
- import { makeNoneKeyframesAnimatable as K } from "./utils/make-none-animatable.js";
8
- import { isNumOrPxType as d, positionalValues as m } from "./utils/unit-conversion.js";
9
- class k extends g {
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(), y(i))) {
21
- const l = p(i, n.current);
22
- l !== void 0 && (e[s] = l), s === e.length - 1 && (this.finalKeyframe = i);
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(), !h.has(r) || e.length !== 2)
25
+ if (this.resolveNoneKeyframes(), !c.has(r) || e.length !== 2)
26
26
  return;
27
- const [t, o] = e, a = u(t), f = u(o);
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 (d(a) && d(f))
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 || c(e[t])) && r.push(t);
40
- r.length && K(e, r, n);
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(([s, i]) => {
59
- e.getValue(s).set(i);
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
- k as DOMKeyframesResolver
68
+ M as DOMKeyframesResolver
65
69
  };
@@ -1,4 +1,4 @@
1
- import { transformProps as s } from "../../../../../motion-dom/dist/es/render/utils/keys-transform.js";
1
+ import { transformProps as s } from "../../render/utils/keys-transform.js";
2
2
  const r = {
3
3
  type: "spring",
4
4
  stiffness: 500,
@@ -1,5 +1,9 @@
1
- const r = (s) => (t) => typeof t == "string" && t.startsWith(s), a = /* @__PURE__ */ r("--"), e = /* @__PURE__ */ r("var(--"), n = (s) => e(s) ? i.test(s.split("/*")[0].trim()) : !1, i = /var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;
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
- a as isCSSVariableName,
4
- n as isCSSVariableToken
6
+ o as containsCSSVariable,
7
+ e as isCSSVariableName,
8
+ a as isCSSVariableToken
5
9
  };
@@ -6,7 +6,7 @@ const t = /* @__PURE__ */ new Set([
6
6
  "A"
7
7
  ]);
8
8
  function n(e) {
9
- return t.has(e.tagName) || e.tabIndex !== -1;
9
+ return t.has(e.tagName) || e.isContentEditable === !0;
10
10
  }
11
11
  export {
12
12
  n as isElementKeyboardAccessible
@@ -1,5 +1,5 @@
1
- import { mixNumber as s } from "../../../../../motion-dom/dist/es/utils/mix/number.js";
2
- import { px as R, percent as u } from "../../../../../motion-dom/dist/es/value/types/numbers/units.js";
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";
@@ -1,5 +1,5 @@
1
- import { hasTransform as x } from "../utils/has-transform.js";
2
- import { mixNumber as E } from "../../../../../motion-dom/dist/es/utils/mix/number.js";
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 && x(l.latestValues) && A(t, l.latestValues));
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 = E(t.min, t.max, s);
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) {
@@ -1,4 +1,4 @@
1
- import { mixNumber as m } from "../../../../../motion-dom/dist/es/utils/mix/number.js";
1
+ import { mixNumber as m } from "../../utils/mix/number.js";
2
2
  const N = 1e-4, u = 1 - N, E = 1 + N, R = 0.01, S = 0 - R, a = 0 + R;
3
3
  function s(n) {
4
4
  return n.max - n.min;
@@ -1,13 +1,13 @@
1
- import { scalePoint as v } from "./delta-apply.js";
2
- import { percent as p } from "../../../../../motion-dom/dist/es/value/types/numbers/units.js";
3
- import { mixNumber as r } from "../../../../../motion-dom/dist/es/utils/mix/number.js";
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 = v(e, 1 / f, n), d !== void 0 && (e = v(e, 1 / d, n)), 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 = r(y.min, y.max, m / 100) - y.min), typeof m != "number")
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 = r(u.min, u.max, n);
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
- x: document.documentElement.scrollLeft || document.body.scrollLeft,
7
- y: document.documentElement.scrollTop || document.body.scrollTop
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 {