@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,23 +0,0 @@
1
- import { buildHTMLStyles as a } from "../../html/utils/build-styles.js";
2
- import { buildSVGPath as B } from "./path.js";
3
- function g(f, {
4
- attrX: o,
5
- attrY: e,
6
- attrScale: m,
7
- pathLength: s,
8
- pathSpacing: d = 1,
9
- pathOffset: l = 0,
10
- // This is object creation, which we try to avoid per-frame.
11
- ...t
12
- }, u, x, n) {
13
- if (a(f, t, x), u) {
14
- f.style.viewBox && (f.attrs.viewBox = f.style.viewBox);
15
- return;
16
- }
17
- f.attrs = f.style, f.style = {};
18
- const { attrs: r, style: i } = f;
19
- r.transform && (i.transform = r.transform, delete r.transform), (i.transform || r.transformOrigin) && (i.transformOrigin = r.transformOrigin ?? "50% 50%", delete r.transformOrigin), i.transform && (i.transformBox = (n == null ? void 0 : n.transformBox) ?? "fill-box", delete r.transformBox), o !== void 0 && (r.x = o), e !== void 0 && (r.y = e), m !== void 0 && (r.scale = m), s !== void 0 && B(r, s, d, l, !1);
20
- }
21
- export {
22
- g as buildSVGAttrs
23
- };
@@ -1,18 +0,0 @@
1
- import { px as t } from "../../../../../../motion-dom/dist/es/value/types/numbers/units.js";
2
- const c = {
3
- offset: "stroke-dashoffset",
4
- array: "stroke-dasharray"
5
- }, y = {
6
- offset: "strokeDashoffset",
7
- array: "strokeDasharray"
8
- };
9
- function m(s, r, o = 1, e = 0, f = !0) {
10
- s.pathLength = 1;
11
- const a = f ? c : y;
12
- s[a.offset] = t.transform(-e);
13
- const n = t.transform(r), h = t.transform(o);
14
- s[a.array] = `${n} ${h}`;
15
- }
16
- export {
17
- m as buildSVGPath
18
- };
@@ -1,15 +0,0 @@
1
- import { scrapeMotionValuesFromProps as i } from "../../html/utils/scrape-motion-values.js";
2
- import { isMotionValue as n } from "../../../../../../motion-dom/dist/es/value/utils/is-motion-value.js";
3
- import { transformPropOrder as m } from "../../../../../../motion-dom/dist/es/render/utils/keys-transform.js";
4
- function l(r, t, s) {
5
- const e = i(r, t, s);
6
- for (const o in r)
7
- if (n(r[o]) || n(t[o])) {
8
- const a = m.indexOf(o) !== -1 ? "attr" + o.charAt(0).toUpperCase() + o.substring(1) : o;
9
- e[a] = r[o];
10
- }
11
- return e;
12
- }
13
- export {
14
- l as scrapeMotionValuesFromProps
15
- };
@@ -1,13 +0,0 @@
1
- import { isBrowser as o } from "../is-browser.js";
2
- import { hasReducedMotionListener as n, prefersReducedMotion as t } from "./state.js";
3
- function c() {
4
- if (n.current = !0, !!o)
5
- if (window.matchMedia) {
6
- const e = window.matchMedia("(prefers-reduced-motion)"), r = () => t.current = e.matches;
7
- e.addEventListener("change", r), r();
8
- } else
9
- t.current = !1;
10
- }
11
- export {
12
- c as initPrefersReducedMotion
13
- };
@@ -1,7 +0,0 @@
1
- import { isMotionValue as i } from "../../../../../motion-dom/dist/es/value/utils/is-motion-value.js";
2
- function t(o) {
3
- return !!(i(o) && o.add);
4
- }
5
- export {
6
- t as isWillChangeMotionValue
7
- };
@@ -1,7 +0,0 @@
1
- import { isMotionValue as t } from "../../../../../motion-dom/dist/es/value/utils/is-motion-value.js";
2
- function e(o) {
3
- return t(o) ? o.get() : o;
4
- }
5
- export {
6
- e as resolveMotionValue
7
- };