lawgic-dev-kit 0.12.8 → 0.12.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 (339) hide show
  1. package/dist/_virtual/client.js +22 -3
  2. package/dist/_virtual/index5.js +2 -2
  3. package/dist/_virtual/index6.js +2 -2
  4. package/dist/components/atoms/Avatar/Avatar.js +31 -73
  5. package/dist/components/atoms/UploadContainer/UploadContainer.js +47 -89
  6. package/dist/components/molecules/AlertModal/AlertModal.js +26 -68
  7. package/dist/components/molecules/CalendarSelector/CalendarSelector.js +45 -87
  8. package/dist/components/molecules/DialogModal/DialogModal.js +37 -79
  9. package/dist/components/molecules/FloatingMenu/FloatingMenu.js +25 -67
  10. package/dist/components/molecules/Tabs/Tabs.js +41 -83
  11. package/dist/lawgic-dev-kit.umd.js +243 -884
  12. package/dist/node_modules/prop-types/index.js +1 -1
  13. package/dist/node_modules/scheduler/index.js +1 -1
  14. package/dist/utils/modal.js +59 -101
  15. package/dist/utils/toast.js +73 -106
  16. package/package.json +1 -1
  17. package/dist/dist/_virtual/_commonjsHelpers.js +0 -8
  18. package/dist/dist/_virtual/index.js +0 -7
  19. package/dist/dist/_virtual/index3.js +0 -5
  20. package/dist/dist/_virtual/index4.js +0 -5
  21. package/dist/dist/_virtual/index5.js +0 -7
  22. package/dist/dist/_virtual/index6.js +0 -4
  23. package/dist/dist/_virtual/index7.js +0 -4
  24. package/dist/dist/_virtual/index8.js +0 -4
  25. package/dist/dist/_virtual/jsx-runtime.js +0 -5
  26. package/dist/dist/_virtual/jsx-runtime2.js +0 -4
  27. package/dist/dist/_virtual/lodash.js +0 -2
  28. package/dist/dist/_virtual/lodash2.js +0 -4
  29. package/dist/dist/_virtual/react-is.development.js +0 -4
  30. package/dist/dist/_virtual/react-is.production.min.js +0 -4
  31. package/dist/dist/_virtual/react-jsx-runtime.development.js +0 -4
  32. package/dist/dist/_virtual/react-jsx-runtime.production.js +0 -4
  33. package/dist/dist/components/atoms/AsyncToast/index.js +0 -33
  34. package/dist/dist/components/atoms/ImageProfileInput/ImageProfileInput.validators.js +0 -5
  35. package/dist/dist/components/atoms/Toast/Toast.js +0 -113
  36. package/dist/dist/constants/countries.js +0 -8
  37. package/dist/dist/contexts/themeContext.js +0 -3
  38. package/dist/dist/node_modules/@floating-ui/react/dist/floating-ui.react.js +0 -4
  39. package/dist/dist/node_modules/@fortawesome/fontawesome-svg-core/index.js +0 -2661
  40. package/dist/dist/node_modules/@fortawesome/pro-light-svg-icons/index.js +0 -33
  41. package/dist/dist/node_modules/@fortawesome/react-fontawesome/index.es.js +0 -266
  42. package/dist/dist/node_modules/framer-motion/dist/es/animation/animate/single-value.js +0 -11
  43. package/dist/dist/node_modules/framer-motion/dist/es/animation/animators/AcceleratedAnimation.js +0 -205
  44. package/dist/dist/node_modules/framer-motion/dist/es/animation/animators/BaseAnimation.js +0 -83
  45. package/dist/dist/node_modules/framer-motion/dist/es/animation/animators/MainThreadAnimation.js +0 -147
  46. package/dist/dist/node_modules/framer-motion/dist/es/animation/animators/drivers/driver-frameloop.js +0 -18
  47. package/dist/dist/node_modules/framer-motion/dist/es/animation/animators/utils/accelerated-values.js +0 -12
  48. package/dist/dist/node_modules/framer-motion/dist/es/animation/animators/utils/can-animate.js +0 -23
  49. package/dist/dist/node_modules/framer-motion/dist/es/animation/animators/waapi/index.js +0 -18
  50. package/dist/dist/node_modules/framer-motion/dist/es/animation/animators/waapi/utils/get-final-keyframe.js +0 -8
  51. package/dist/dist/node_modules/framer-motion/dist/es/animation/animators/waapi/utils/supports-waapi.js +0 -6
  52. package/dist/dist/node_modules/framer-motion/dist/es/animation/generators/inertia.js +0 -37
  53. package/dist/dist/node_modules/framer-motion/dist/es/animation/generators/keyframes.js +0 -30
  54. package/dist/dist/node_modules/framer-motion/dist/es/animation/generators/spring/defaults.js +0 -32
  55. package/dist/dist/node_modules/framer-motion/dist/es/animation/generators/spring/find.js +0 -52
  56. package/dist/dist/node_modules/framer-motion/dist/es/animation/generators/spring/index.js +0 -92
  57. package/dist/dist/node_modules/framer-motion/dist/es/animation/generators/utils/velocity.js +0 -10
  58. package/dist/dist/node_modules/framer-motion/dist/es/animation/interfaces/motion-value.js +0 -47
  59. package/dist/dist/node_modules/framer-motion/dist/es/animation/interfaces/visual-element-target.js +0 -46
  60. package/dist/dist/node_modules/framer-motion/dist/es/animation/interfaces/visual-element-variant.js +0 -33
  61. package/dist/dist/node_modules/framer-motion/dist/es/animation/interfaces/visual-element.js +0 -22
  62. package/dist/dist/node_modules/framer-motion/dist/es/animation/optimized-appear/data-id.js +0 -6
  63. package/dist/dist/node_modules/framer-motion/dist/es/animation/optimized-appear/get-appear-id.js +0 -7
  64. package/dist/dist/node_modules/framer-motion/dist/es/animation/utils/default-transitions.js +0 -22
  65. package/dist/dist/node_modules/framer-motion/dist/es/animation/utils/is-animatable.js +0 -7
  66. package/dist/dist/node_modules/framer-motion/dist/es/animation/utils/is-animation-controls.js +0 -6
  67. package/dist/dist/node_modules/framer-motion/dist/es/animation/utils/is-keyframes-target.js +0 -4
  68. package/dist/dist/node_modules/framer-motion/dist/es/animation/utils/is-none.js +0 -7
  69. package/dist/dist/node_modules/framer-motion/dist/es/animation/utils/is-transition-defined.js +0 -6
  70. package/dist/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PopChild.js +0 -53
  71. package/dist/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PresenceChild.js +0 -41
  72. package/dist/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/index.js +0 -45
  73. package/dist/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/use-presence.js +0 -17
  74. package/dist/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/utils.js +0 -12
  75. package/dist/dist/node_modules/framer-motion/dist/es/context/LayoutGroupContext.js +0 -5
  76. package/dist/dist/node_modules/framer-motion/dist/es/context/LazyContext.js +0 -5
  77. package/dist/dist/node_modules/framer-motion/dist/es/context/MotionConfigContext.js +0 -9
  78. package/dist/dist/node_modules/framer-motion/dist/es/context/MotionContext/create.js +0 -13
  79. package/dist/dist/node_modules/framer-motion/dist/es/context/MotionContext/index.js +0 -5
  80. package/dist/dist/node_modules/framer-motion/dist/es/context/MotionContext/utils.js +0 -15
  81. package/dist/dist/node_modules/framer-motion/dist/es/context/PresenceContext.js +0 -5
  82. package/dist/dist/node_modules/framer-motion/dist/es/context/SwitchLayoutGroupContext.js +0 -5
  83. package/dist/dist/node_modules/framer-motion/dist/es/easing/anticipate.js +0 -5
  84. package/dist/dist/node_modules/framer-motion/dist/es/easing/back.js +0 -9
  85. package/dist/dist/node_modules/framer-motion/dist/es/easing/circ.js +0 -8
  86. package/dist/dist/node_modules/framer-motion/dist/es/easing/cubic-bezier.js +0 -19
  87. package/dist/dist/node_modules/framer-motion/dist/es/easing/ease.js +0 -7
  88. package/dist/dist/node_modules/framer-motion/dist/es/easing/modifiers/mirror.js +0 -4
  89. package/dist/dist/node_modules/framer-motion/dist/es/easing/modifiers/reverse.js +0 -4
  90. package/dist/dist/node_modules/framer-motion/dist/es/easing/utils/is-easing-array.js +0 -4
  91. package/dist/dist/node_modules/framer-motion/dist/es/easing/utils/map.js +0 -32
  92. package/dist/dist/node_modules/framer-motion/dist/es/events/add-dom-event.js +0 -6
  93. package/dist/dist/node_modules/framer-motion/dist/es/events/add-pointer-event.js +0 -8
  94. package/dist/dist/node_modules/framer-motion/dist/es/events/event-info.js +0 -15
  95. package/dist/dist/node_modules/framer-motion/dist/es/gestures/drag/VisualElementDragControls.js +0 -256
  96. package/dist/dist/node_modules/framer-motion/dist/es/gestures/drag/index.js +0 -19
  97. package/dist/dist/node_modules/framer-motion/dist/es/gestures/drag/utils/constraints.js +0 -68
  98. package/dist/dist/node_modules/framer-motion/dist/es/gestures/focus.js +0 -28
  99. package/dist/dist/node_modules/framer-motion/dist/es/gestures/hover.js +0 -22
  100. package/dist/dist/node_modules/framer-motion/dist/es/gestures/pan/PanSession.js +0 -85
  101. package/dist/dist/node_modules/framer-motion/dist/es/gestures/pan/index.js +0 -44
  102. package/dist/dist/node_modules/framer-motion/dist/es/gestures/press.js +0 -24
  103. package/dist/dist/node_modules/framer-motion/dist/es/motion/features/Feature.js +0 -10
  104. package/dist/dist/node_modules/framer-motion/dist/es/motion/features/animation/exit.js +0 -27
  105. package/dist/dist/node_modules/framer-motion/dist/es/motion/features/animation/index.js +0 -34
  106. package/dist/dist/node_modules/framer-motion/dist/es/motion/features/animations.js +0 -13
  107. package/dist/dist/node_modules/framer-motion/dist/es/motion/features/definitions.js +0 -27
  108. package/dist/dist/node_modules/framer-motion/dist/es/motion/features/drag.js +0 -17
  109. package/dist/dist/node_modules/framer-motion/dist/es/motion/features/gestures.js +0 -21
  110. package/dist/dist/node_modules/framer-motion/dist/es/motion/features/layout/MeasureLayout.js +0 -75
  111. package/dist/dist/node_modules/framer-motion/dist/es/motion/features/layout.js +0 -11
  112. package/dist/dist/node_modules/framer-motion/dist/es/motion/features/load-features.js +0 -11
  113. package/dist/dist/node_modules/framer-motion/dist/es/motion/features/viewport/index.js +0 -44
  114. package/dist/dist/node_modules/framer-motion/dist/es/motion/features/viewport/observers.js +0 -21
  115. package/dist/dist/node_modules/framer-motion/dist/es/motion/index.js +0 -59
  116. package/dist/dist/node_modules/framer-motion/dist/es/motion/utils/is-forced-motion-value.js +0 -8
  117. package/dist/dist/node_modules/framer-motion/dist/es/motion/utils/symbol.js +0 -4
  118. package/dist/dist/node_modules/framer-motion/dist/es/motion/utils/use-motion-ref.js +0 -18
  119. package/dist/dist/node_modules/framer-motion/dist/es/motion/utils/use-visual-element.js +0 -65
  120. package/dist/dist/node_modules/framer-motion/dist/es/motion/utils/use-visual-state.js +0 -53
  121. package/dist/dist/node_modules/framer-motion/dist/es/motion/utils/valid-prop.js +0 -38
  122. package/dist/dist/node_modules/framer-motion/dist/es/projection/animation/mix-values.js +0 -31
  123. package/dist/dist/node_modules/framer-motion/dist/es/projection/geometry/conversion.js +0 -25
  124. package/dist/dist/node_modules/framer-motion/dist/es/projection/geometry/copy.js +0 -14
  125. package/dist/dist/node_modules/framer-motion/dist/es/projection/geometry/delta-apply.js +0 -52
  126. package/dist/dist/node_modules/framer-motion/dist/es/projection/geometry/delta-calc.js +0 -36
  127. package/dist/dist/node_modules/framer-motion/dist/es/projection/geometry/delta-remove.js +0 -25
  128. package/dist/dist/node_modules/framer-motion/dist/es/projection/geometry/models.js +0 -18
  129. package/dist/dist/node_modules/framer-motion/dist/es/projection/geometry/utils.js +0 -34
  130. package/dist/dist/node_modules/framer-motion/dist/es/projection/node/DocumentProjectionNode.js +0 -13
  131. package/dist/dist/node_modules/framer-motion/dist/es/projection/node/HTMLProjectionNode.js +0 -25
  132. package/dist/dist/node_modules/framer-motion/dist/es/projection/node/create-projection-node.js +0 -608
  133. package/dist/dist/node_modules/framer-motion/dist/es/projection/node/state.js +0 -15
  134. package/dist/dist/node_modules/framer-motion/dist/es/projection/shared/stack.js +0 -59
  135. package/dist/dist/node_modules/framer-motion/dist/es/projection/styles/scale-border-radius.js +0 -21
  136. package/dist/dist/node_modules/framer-motion/dist/es/projection/styles/scale-box-shadow.js +0 -16
  137. package/dist/dist/node_modules/framer-motion/dist/es/projection/styles/scale-correction.js +0 -10
  138. package/dist/dist/node_modules/framer-motion/dist/es/projection/styles/transform.js +0 -13
  139. package/dist/dist/node_modules/framer-motion/dist/es/projection/utils/each-axis.js +0 -6
  140. package/dist/dist/node_modules/framer-motion/dist/es/projection/utils/has-transform.js +0 -20
  141. package/dist/dist/node_modules/framer-motion/dist/es/projection/utils/measure.js +0 -13
  142. package/dist/dist/node_modules/framer-motion/dist/es/render/VisualElement.js +0 -229
  143. package/dist/dist/node_modules/framer-motion/dist/es/render/components/create-factory.js +0 -20
  144. package/dist/dist/node_modules/framer-motion/dist/es/render/components/create-proxy.js +0 -18
  145. package/dist/dist/node_modules/framer-motion/dist/es/render/components/motion/create.js +0 -15
  146. package/dist/dist/node_modules/framer-motion/dist/es/render/components/motion/proxy.js +0 -6
  147. package/dist/dist/node_modules/framer-motion/dist/es/render/dom/DOMKeyframesResolver.js +0 -66
  148. package/dist/dist/node_modules/framer-motion/dist/es/render/dom/DOMVisualElement.js +0 -27
  149. package/dist/dist/node_modules/framer-motion/dist/es/render/dom/create-visual-element.js +0 -10
  150. package/dist/dist/node_modules/framer-motion/dist/es/render/dom/use-render.js +0 -18
  151. package/dist/dist/node_modules/framer-motion/dist/es/render/dom/utils/camel-to-dash.js +0 -4
  152. package/dist/dist/node_modules/framer-motion/dist/es/render/dom/utils/css-variables-conversion.js +0 -31
  153. package/dist/dist/node_modules/framer-motion/dist/es/render/dom/utils/filter-props.js +0 -20
  154. package/dist/dist/node_modules/framer-motion/dist/es/render/dom/utils/is-css-variable.js +0 -5
  155. package/dist/dist/node_modules/framer-motion/dist/es/render/dom/utils/is-svg-component.js +0 -24
  156. package/dist/dist/node_modules/framer-motion/dist/es/render/dom/utils/is-svg-element.js +0 -6
  157. package/dist/dist/node_modules/framer-motion/dist/es/render/dom/utils/unit-conversion.js +0 -31
  158. package/dist/dist/node_modules/framer-motion/dist/es/render/dom/value-types/animatable-none.js +0 -10
  159. package/dist/dist/node_modules/framer-motion/dist/es/render/dom/value-types/defaults.js +0 -24
  160. package/dist/dist/node_modules/framer-motion/dist/es/render/dom/value-types/dimensions.js +0 -9
  161. package/dist/dist/node_modules/framer-motion/dist/es/render/dom/value-types/find.js +0 -8
  162. package/dist/dist/node_modules/framer-motion/dist/es/render/dom/value-types/get-as-type.js +0 -4
  163. package/dist/dist/node_modules/framer-motion/dist/es/render/dom/value-types/number-browser.js +0 -41
  164. package/dist/dist/node_modules/framer-motion/dist/es/render/dom/value-types/number.js +0 -18
  165. package/dist/dist/node_modules/framer-motion/dist/es/render/dom/value-types/test.js +0 -4
  166. package/dist/dist/node_modules/framer-motion/dist/es/render/dom/value-types/transform.js +0 -31
  167. package/dist/dist/node_modules/framer-motion/dist/es/render/dom/value-types/type-auto.js +0 -7
  168. package/dist/dist/node_modules/framer-motion/dist/es/render/dom/value-types/type-int.js +0 -8
  169. package/dist/dist/node_modules/framer-motion/dist/es/render/html/HTMLVisualElement.js +0 -37
  170. package/dist/dist/node_modules/framer-motion/dist/es/render/html/config-motion.js +0 -12
  171. package/dist/dist/node_modules/framer-motion/dist/es/render/html/use-props.js +0 -27
  172. package/dist/dist/node_modules/framer-motion/dist/es/render/html/utils/build-styles.js +0 -29
  173. package/dist/dist/node_modules/framer-motion/dist/es/render/html/utils/build-transform.js +0 -31
  174. package/dist/dist/node_modules/framer-motion/dist/es/render/html/utils/create-render-state.js +0 -9
  175. package/dist/dist/node_modules/framer-motion/dist/es/render/html/utils/keys-position.js +0 -13
  176. package/dist/dist/node_modules/framer-motion/dist/es/render/html/utils/keys-transform.js +0 -23
  177. package/dist/dist/node_modules/framer-motion/dist/es/render/html/utils/make-none-animatable.js +0 -16
  178. package/dist/dist/node_modules/framer-motion/dist/es/render/html/utils/parse-transform.js +0 -64
  179. package/dist/dist/node_modules/framer-motion/dist/es/render/html/utils/render.js +0 -8
  180. package/dist/dist/node_modules/framer-motion/dist/es/render/html/utils/scrape-motion-values.js +0 -12
  181. package/dist/dist/node_modules/framer-motion/dist/es/render/store.js +0 -4
  182. package/dist/dist/node_modules/framer-motion/dist/es/render/svg/SVGVisualElement.js +0 -48
  183. package/dist/dist/node_modules/framer-motion/dist/es/render/svg/config-motion.js +0 -44
  184. package/dist/dist/node_modules/framer-motion/dist/es/render/svg/lowercase-elements.js +0 -30
  185. package/dist/dist/node_modules/framer-motion/dist/es/render/svg/use-props.js +0 -22
  186. package/dist/dist/node_modules/framer-motion/dist/es/render/svg/utils/build-attrs.js +0 -26
  187. package/dist/dist/node_modules/framer-motion/dist/es/render/svg/utils/camel-case-attrs.js +0 -28
  188. package/dist/dist/node_modules/framer-motion/dist/es/render/svg/utils/create-render-state.js +0 -8
  189. package/dist/dist/node_modules/framer-motion/dist/es/render/svg/utils/is-svg-tag.js +0 -4
  190. package/dist/dist/node_modules/framer-motion/dist/es/render/svg/utils/measure.js +0 -15
  191. package/dist/dist/node_modules/framer-motion/dist/es/render/svg/utils/path.js +0 -18
  192. package/dist/dist/node_modules/framer-motion/dist/es/render/svg/utils/render.js +0 -11
  193. package/dist/dist/node_modules/framer-motion/dist/es/render/svg/utils/scrape-motion-values.js +0 -15
  194. package/dist/dist/node_modules/framer-motion/dist/es/render/svg/utils/transform-origin.js +0 -11
  195. package/dist/dist/node_modules/framer-motion/dist/es/render/utils/KeyframesResolver.js +0 -77
  196. package/dist/dist/node_modules/framer-motion/dist/es/render/utils/animation-state.js +0 -128
  197. package/dist/dist/node_modules/framer-motion/dist/es/render/utils/compare-by-depth.js +0 -4
  198. package/dist/dist/node_modules/framer-motion/dist/es/render/utils/flat-tree.js +0 -20
  199. package/dist/dist/node_modules/framer-motion/dist/es/render/utils/get-variant-context.js +0 -20
  200. package/dist/dist/node_modules/framer-motion/dist/es/render/utils/is-controlling-variants.js +0 -13
  201. package/dist/dist/node_modules/framer-motion/dist/es/render/utils/is-variant-label.js +0 -6
  202. package/dist/dist/node_modules/framer-motion/dist/es/render/utils/motion-values.js +0 -27
  203. package/dist/dist/node_modules/framer-motion/dist/es/render/utils/resolve-dynamic-variants.js +0 -8
  204. package/dist/dist/node_modules/framer-motion/dist/es/render/utils/resolve-variants.js +0 -20
  205. package/dist/dist/node_modules/framer-motion/dist/es/render/utils/setters.js +0 -19
  206. package/dist/dist/node_modules/framer-motion/dist/es/render/utils/variant-props.js +0 -13
  207. package/dist/dist/node_modules/framer-motion/dist/es/utils/clamp.js +0 -4
  208. package/dist/dist/node_modules/framer-motion/dist/es/utils/delay.js +0 -13
  209. package/dist/dist/node_modules/framer-motion/dist/es/utils/distance.js +0 -9
  210. package/dist/dist/node_modules/framer-motion/dist/es/utils/get-context-window.js +0 -4
  211. package/dist/dist/node_modules/framer-motion/dist/es/utils/hsla-to-rgba.js +0 -22
  212. package/dist/dist/node_modules/framer-motion/dist/es/utils/interpolate.js +0 -41
  213. package/dist/dist/node_modules/framer-motion/dist/es/utils/is-browser.js +0 -4
  214. package/dist/dist/node_modules/framer-motion/dist/es/utils/is-numerical-string.js +0 -4
  215. package/dist/dist/node_modules/framer-motion/dist/es/utils/is-ref-object.js +0 -6
  216. package/dist/dist/node_modules/framer-motion/dist/es/utils/is-zero-value-string.js +0 -4
  217. package/dist/dist/node_modules/framer-motion/dist/es/utils/mix/color.js +0 -29
  218. package/dist/dist/node_modules/framer-motion/dist/es/utils/mix/complex.js +0 -52
  219. package/dist/dist/node_modules/framer-motion/dist/es/utils/mix/immediate.js +0 -6
  220. package/dist/dist/node_modules/framer-motion/dist/es/utils/mix/index.js +0 -8
  221. package/dist/dist/node_modules/framer-motion/dist/es/utils/mix/number.js +0 -4
  222. package/dist/dist/node_modules/framer-motion/dist/es/utils/mix/visibility.js +0 -8
  223. package/dist/dist/node_modules/framer-motion/dist/es/utils/offsets/default.js +0 -8
  224. package/dist/dist/node_modules/framer-motion/dist/es/utils/offsets/fill.js +0 -13
  225. package/dist/dist/node_modules/framer-motion/dist/es/utils/offsets/time.js +0 -6
  226. package/dist/dist/node_modules/framer-motion/dist/es/utils/pipe.js +0 -4
  227. package/dist/dist/node_modules/framer-motion/dist/es/utils/reduced-motion/index.js +0 -13
  228. package/dist/dist/node_modules/framer-motion/dist/es/utils/reduced-motion/state.js +0 -5
  229. package/dist/dist/node_modules/framer-motion/dist/es/utils/resolve-value.js +0 -6
  230. package/dist/dist/node_modules/framer-motion/dist/es/utils/shallow-compare.js +0 -14
  231. package/dist/dist/node_modules/framer-motion/dist/es/utils/use-constant.js +0 -8
  232. package/dist/dist/node_modules/framer-motion/dist/es/utils/use-isomorphic-effect.js +0 -6
  233. package/dist/dist/node_modules/framer-motion/dist/es/value/types/color/hex.js +0 -19
  234. package/dist/dist/node_modules/framer-motion/dist/es/value/types/color/hsla.js +0 -12
  235. package/dist/dist/node_modules/framer-motion/dist/es/value/types/color/index.js +0 -11
  236. package/dist/dist/node_modules/framer-motion/dist/es/value/types/color/rgba.js +0 -16
  237. package/dist/dist/node_modules/framer-motion/dist/es/value/types/color/utils.js +0 -18
  238. package/dist/dist/node_modules/framer-motion/dist/es/value/types/complex/filter.js +0 -24
  239. package/dist/dist/node_modules/framer-motion/dist/es/value/types/complex/index.js +0 -49
  240. package/dist/dist/node_modules/framer-motion/dist/es/value/types/numbers/index.js +0 -17
  241. package/dist/dist/node_modules/framer-motion/dist/es/value/types/numbers/units.js +0 -17
  242. package/dist/dist/node_modules/framer-motion/dist/es/value/types/utils/color-regex.js +0 -4
  243. package/dist/dist/node_modules/framer-motion/dist/es/value/types/utils/float-regex.js +0 -4
  244. package/dist/dist/node_modules/framer-motion/dist/es/value/types/utils/is-nullish.js +0 -6
  245. package/dist/dist/node_modules/framer-motion/dist/es/value/types/utils/sanitize.js +0 -4
  246. package/dist/dist/node_modules/framer-motion/dist/es/value/types/utils/single-color-regex.js +0 -4
  247. package/dist/dist/node_modules/framer-motion/dist/es/value/use-will-change/add-will-change.js +0 -9
  248. package/dist/dist/node_modules/framer-motion/dist/es/value/use-will-change/is.js +0 -7
  249. package/dist/dist/node_modules/framer-motion/dist/es/value/utils/is-motion-value.js +0 -4
  250. package/dist/dist/node_modules/framer-motion/dist/es/value/utils/resolve-motion-value.js +0 -9
  251. package/dist/dist/node_modules/lodash/lodash.js +0 -3677
  252. package/dist/dist/node_modules/motion/dist/es/framer-motion/dist/es/animation/optimized-appear/data-id.js +0 -6
  253. package/dist/dist/node_modules/motion/dist/es/framer-motion/dist/es/context/LayoutGroupContext.js +0 -2
  254. package/dist/dist/node_modules/motion/dist/es/framer-motion/dist/es/context/LazyContext.js +0 -2
  255. package/dist/dist/node_modules/motion/dist/es/framer-motion/dist/es/context/MotionConfigContext.js +0 -6
  256. package/dist/dist/node_modules/motion/dist/es/framer-motion/dist/es/context/SwitchLayoutGroupContext.js +0 -2
  257. package/dist/dist/node_modules/motion/dist/es/framer-motion/dist/es/projection/node/create-projection-node.js +0 -12
  258. package/dist/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/dom/utils/camel-to-dash.js +0 -4
  259. package/dist/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/dom/utils/filter-props.js +0 -9
  260. package/dist/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/dom/utils/unit-conversion.js +0 -5
  261. package/dist/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/dom/value-types/type-int.js +0 -4
  262. package/dist/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/html/utils/keys-transform.js +0 -23
  263. package/dist/dist/node_modules/motion/dist/es/framer-motion/dist/es/utils/clamp.js +0 -4
  264. package/dist/dist/node_modules/motion/dist/es/framer-motion/dist/es/value/types/color/hex.js +0 -19
  265. package/dist/dist/node_modules/motion/dist/es/framer-motion/dist/es/value/types/color/hsla.js +0 -12
  266. package/dist/dist/node_modules/motion/dist/es/framer-motion/dist/es/value/types/color/index.js +0 -11
  267. package/dist/dist/node_modules/motion/dist/es/framer-motion/dist/es/value/types/color/rgba.js +0 -16
  268. package/dist/dist/node_modules/motion/dist/es/framer-motion/dist/es/value/types/color/utils.js +0 -18
  269. package/dist/dist/node_modules/motion/dist/es/framer-motion/dist/es/value/types/complex/filter.js +0 -4
  270. package/dist/dist/node_modules/motion/dist/es/framer-motion/dist/es/value/types/complex/index.js +0 -49
  271. package/dist/dist/node_modules/motion/dist/es/framer-motion/dist/es/value/types/numbers/index.js +0 -16
  272. package/dist/dist/node_modules/motion/dist/es/framer-motion/dist/es/value/types/numbers/units.js +0 -11
  273. package/dist/dist/node_modules/motion/dist/es/framer-motion/dist/es/value/types/utils/color-regex.js +0 -4
  274. package/dist/dist/node_modules/motion/dist/es/framer-motion/dist/es/value/types/utils/float-regex.js +0 -4
  275. package/dist/dist/node_modules/motion/dist/es/framer-motion/dist/es/value/types/utils/is-nullish.js +0 -6
  276. package/dist/dist/node_modules/motion/dist/es/framer-motion/dist/es/value/types/utils/sanitize.js +0 -4
  277. package/dist/dist/node_modules/motion/dist/es/framer-motion/dist/es/value/types/utils/single-color-regex.js +0 -4
  278. package/dist/dist/node_modules/motion/dist/es/motion-utils/dist/es/errors.js +0 -1
  279. package/dist/dist/node_modules/motion/dist/es/motion-utils/dist/es/noop.js +0 -4
  280. package/dist/dist/node_modules/motion-dom/dist/es/animation/controls/BaseGroup.js +0 -74
  281. package/dist/dist/node_modules/motion-dom/dist/es/animation/controls/Group.js +0 -9
  282. package/dist/dist/node_modules/motion-dom/dist/es/animation/generators/utils/calc-duration.js +0 -13
  283. package/dist/dist/node_modules/motion-dom/dist/es/animation/generators/utils/is-generator.js +0 -6
  284. package/dist/dist/node_modules/motion-dom/dist/es/animation/utils/get-value-transition.js +0 -6
  285. package/dist/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/attach-timeline.js +0 -6
  286. package/dist/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/easing.js +0 -27
  287. package/dist/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/linear.js +0 -12
  288. package/dist/dist/node_modules/motion-dom/dist/es/frameloop/batcher.js +0 -27
  289. package/dist/dist/node_modules/motion-dom/dist/es/frameloop/frame.js +0 -10
  290. package/dist/dist/node_modules/motion-dom/dist/es/frameloop/microtask.js +0 -5
  291. package/dist/dist/node_modules/motion-dom/dist/es/frameloop/order.js +0 -17
  292. package/dist/dist/node_modules/motion-dom/dist/es/frameloop/render-step.js +0 -41
  293. package/dist/dist/node_modules/motion-dom/dist/es/frameloop/sync-time.js +0 -16
  294. package/dist/dist/node_modules/motion-dom/dist/es/gestures/drag/state/is-active.js +0 -11
  295. package/dist/dist/node_modules/motion-dom/dist/es/gestures/drag/state/set-active.js +0 -11
  296. package/dist/dist/node_modules/motion-dom/dist/es/gestures/hover.js +0 -24
  297. package/dist/dist/node_modules/motion-dom/dist/es/gestures/press/index.js +0 -32
  298. package/dist/dist/node_modules/motion-dom/dist/es/gestures/press/utils/is-keyboard-accessible.js +0 -13
  299. package/dist/dist/node_modules/motion-dom/dist/es/gestures/press/utils/keyboard.js +0 -27
  300. package/dist/dist/node_modules/motion-dom/dist/es/gestures/press/utils/state.js +0 -4
  301. package/dist/dist/node_modules/motion-dom/dist/es/gestures/utils/is-node-or-child.js +0 -4
  302. package/dist/dist/node_modules/motion-dom/dist/es/gestures/utils/is-primary-pointer.js +0 -4
  303. package/dist/dist/node_modules/motion-dom/dist/es/gestures/utils/setup.js +0 -12
  304. package/dist/dist/node_modules/motion-dom/dist/es/utils/is-bezier-definition.js +0 -4
  305. package/dist/dist/node_modules/motion-dom/dist/es/utils/resolve-elements.js +0 -14
  306. package/dist/dist/node_modules/motion-dom/dist/es/utils/supports/flags.js +0 -6
  307. package/dist/dist/node_modules/motion-dom/dist/es/utils/supports/linear-easing.js +0 -12
  308. package/dist/dist/node_modules/motion-dom/dist/es/utils/supports/memo.js +0 -13
  309. package/dist/dist/node_modules/motion-dom/dist/es/utils/supports/scroll-timeline.js +0 -6
  310. package/dist/dist/node_modules/motion-dom/dist/es/value/index.js +0 -202
  311. package/dist/dist/node_modules/motion-utils/dist/es/array.js +0 -11
  312. package/dist/dist/node_modules/motion-utils/dist/es/errors.js +0 -12
  313. package/dist/dist/node_modules/motion-utils/dist/es/global-config.js +0 -6
  314. package/dist/dist/node_modules/motion-utils/dist/es/memo.js +0 -8
  315. package/dist/dist/node_modules/motion-utils/dist/es/noop.js +0 -4
  316. package/dist/dist/node_modules/motion-utils/dist/es/progress.js +0 -7
  317. package/dist/dist/node_modules/motion-utils/dist/es/subscription-manager.js +0 -29
  318. package/dist/dist/node_modules/motion-utils/dist/es/time-conversion.js +0 -5
  319. package/dist/dist/node_modules/motion-utils/dist/es/velocity-per-second.js +0 -6
  320. package/dist/dist/node_modules/motion-utils/dist/es/warn-once.js +0 -7
  321. package/dist/dist/node_modules/object-assign/index.js +0 -54
  322. package/dist/dist/node_modules/prop-types/checkPropTypes.js +0 -54
  323. package/dist/dist/node_modules/prop-types/factoryWithThrowingShims.js +0 -52
  324. package/dist/dist/node_modules/prop-types/factoryWithTypeCheckers.js +0 -329
  325. package/dist/dist/node_modules/prop-types/index.js +0 -17
  326. package/dist/dist/node_modules/prop-types/lib/ReactPropTypesSecret.js +0 -10
  327. package/dist/dist/node_modules/prop-types/lib/has.js +0 -7
  328. package/dist/dist/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js +0 -95
  329. package/dist/dist/node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js +0 -78
  330. package/dist/dist/node_modules/prop-types/node_modules/react-is/index.js +0 -10
  331. package/dist/dist/node_modules/property-expr/index.js +0 -82
  332. package/dist/dist/node_modules/react/cjs/react-jsx-runtime.development.js +0 -247
  333. package/dist/dist/node_modules/react/cjs/react-jsx-runtime.production.js +0 -35
  334. package/dist/dist/node_modules/react/jsx-runtime.js +0 -10
  335. package/dist/dist/node_modules/tiny-case/index.js +0 -22
  336. package/dist/dist/node_modules/toposort/index.js +0 -66
  337. package/dist/dist/node_modules/yup/index.esm.js +0 -1359
  338. package/dist/dist/themes/default.js +0 -9
  339. package/dist/src/utils/toast.d.ts +0 -15
@@ -1,24 +0,0 @@
1
- import { lowercaseSVGElements as s } from "../../svg/lowercase-elements.js";
2
- function n(e) {
3
- return (
4
- /**
5
- * If it's not a string, it's a custom React component. Currently we only support
6
- * HTML custom React components.
7
- */
8
- typeof e != "string" || /**
9
- * If it contains a dash, the element is a custom HTML webcomponent.
10
- */
11
- e.includes("-") ? !1 : (
12
- /**
13
- * If it's in our list of lowercase SVG tags, it's an SVG component
14
- */
15
- !!(s.indexOf(e) > -1 || /**
16
- * If it contains a capital letter, it's an SVG component
17
- */
18
- /[A-Z]/u.test(e))
19
- )
20
- );
21
- }
22
- export {
23
- n as isSVGComponent
24
- };
@@ -1,6 +0,0 @@
1
- function t(e) {
2
- return e instanceof SVGElement && e.tagName !== "svg";
3
- }
4
- export {
5
- t as isSVGElement
6
- };
@@ -1,31 +0,0 @@
1
- import { number as n } from "../../../value/types/numbers/index.js";
2
- import { px as p } from "../../../value/types/numbers/units.js";
3
- import { transformPropOrder as m } from "../../html/utils/keys-transform.js";
4
- import { parseValueFromTransform as e } from "../../html/utils/parse-transform.js";
5
- const g = (t) => t === n || t === p, i = /* @__PURE__ */ new Set(["x", "y", "z"]), l = m.filter((t) => !i.has(t));
6
- function h(t) {
7
- const a = [];
8
- return l.forEach((r) => {
9
- const s = t.getValue(r);
10
- s !== void 0 && (a.push([r, s.get()]), s.set(r.startsWith("scale") ? 1 : 0));
11
- }), a;
12
- }
13
- const o = {
14
- // Dimensions
15
- width: ({ x: t }, { paddingLeft: a = "0", paddingRight: r = "0" }) => t.max - t.min - parseFloat(a) - parseFloat(r),
16
- height: ({ y: t }, { paddingTop: a = "0", paddingBottom: r = "0" }) => t.max - t.min - parseFloat(a) - parseFloat(r),
17
- top: (t, { top: a }) => parseFloat(a),
18
- left: (t, { left: a }) => parseFloat(a),
19
- bottom: ({ y: t }, { top: a }) => parseFloat(a) + (t.max - t.min),
20
- right: ({ x: t }, { left: a }) => parseFloat(a) + (t.max - t.min),
21
- // Transform
22
- x: (t, { transform: a }) => e(a, "x"),
23
- y: (t, { transform: a }) => e(a, "y")
24
- };
25
- o.translateX = o.x;
26
- o.translateY = o.y;
27
- export {
28
- g as isNumOrPxType,
29
- o as positionalValues,
30
- h as removeNonTranslationalTransform
31
- };
@@ -1,10 +0,0 @@
1
- import { complex as a } from "../../../value/types/complex/index.js";
2
- import { filter as m } from "../../../value/types/complex/filter.js";
3
- import { getDefaultValueType as r } from "./defaults.js";
4
- function f(t, o) {
5
- let e = r(t);
6
- return e !== m && (e = a), e.getAnimatableNone ? e.getAnimatableNone(o) : void 0;
7
- }
8
- export {
9
- f as getAnimatableNone
10
- };
@@ -1,24 +0,0 @@
1
- import { color as o } from "../../../value/types/color/index.js";
2
- import { filter as r } from "../../../value/types/complex/filter.js";
3
- import { numberValueTypes as l } from "./number.js";
4
- const t = {
5
- ...l,
6
- // Color props
7
- color: o,
8
- backgroundColor: o,
9
- outlineColor: o,
10
- fill: o,
11
- stroke: o,
12
- // Border props
13
- borderColor: o,
14
- borderTopColor: o,
15
- borderRightColor: o,
16
- borderBottomColor: o,
17
- borderLeftColor: o,
18
- filter: r,
19
- WebkitFilter: r
20
- }, f = (e) => t[e];
21
- export {
22
- t as defaultValueTypes,
23
- f as getDefaultValueType
24
- };
@@ -1,9 +0,0 @@
1
- import { number as e } from "../../../value/types/numbers/index.js";
2
- import { px as a, percent as o, degrees as r, vw as m, vh as p } from "../../../value/types/numbers/units.js";
3
- import { testValueType as i } from "./test.js";
4
- import { auto as n } from "./type-auto.js";
5
- const t = [e, a, o, r, m, p, n], y = (s) => t.find(i(s));
6
- export {
7
- t as dimensionValueTypes,
8
- y as findDimensionValueType
9
- };
@@ -1,8 +0,0 @@
1
- import { color as s } from "../../../value/types/color/index.js";
2
- import { complex as e } from "../../../value/types/complex/index.js";
3
- import { dimensionValueTypes as m } from "./dimensions.js";
4
- import { testValueType as p } from "./test.js";
5
- const r = [...m, s, e], l = (o) => r.find(p(o));
6
- export {
7
- l as findValueType
8
- };
@@ -1,4 +0,0 @@
1
- const s = (e, o) => o && typeof e == "number" ? o.transform(e) : e;
2
- export {
3
- s as getValueAsType
4
- };
@@ -1,41 +0,0 @@
1
- import { px as o } from "../../../value/types/numbers/units.js";
2
- const i = {
3
- // Border props
4
- borderWidth: o,
5
- borderTopWidth: o,
6
- borderRightWidth: o,
7
- borderBottomWidth: o,
8
- borderLeftWidth: o,
9
- borderRadius: o,
10
- radius: o,
11
- borderTopLeftRadius: o,
12
- borderTopRightRadius: o,
13
- borderBottomRightRadius: o,
14
- borderBottomLeftRadius: o,
15
- // Positioning props
16
- width: o,
17
- maxWidth: o,
18
- height: o,
19
- maxHeight: o,
20
- top: o,
21
- right: o,
22
- bottom: o,
23
- left: o,
24
- // Spacing props
25
- padding: o,
26
- paddingTop: o,
27
- paddingRight: o,
28
- paddingBottom: o,
29
- paddingLeft: o,
30
- margin: o,
31
- marginTop: o,
32
- marginRight: o,
33
- marginBottom: o,
34
- marginLeft: o,
35
- // Misc
36
- backgroundPositionX: o,
37
- backgroundPositionY: o
38
- };
39
- export {
40
- i as browserNumberValueTypes
41
- };
@@ -1,18 +0,0 @@
1
- import { alpha as r } from "../../../value/types/numbers/index.js";
2
- import { px as a } from "../../../value/types/numbers/units.js";
3
- import { browserNumberValueTypes as e } from "./number-browser.js";
4
- import { transformValueTypes as s } from "./transform.js";
5
- import { int as o } from "./type-int.js";
6
- const l = {
7
- ...e,
8
- ...s,
9
- zIndex: o,
10
- size: a,
11
- // SVG
12
- fillOpacity: r,
13
- strokeOpacity: r,
14
- numOctaves: o
15
- };
16
- export {
17
- l as numberValueTypes
18
- };
@@ -1,4 +0,0 @@
1
- const s = (t) => (e) => e.test(t);
2
- export {
3
- s as testValueType
4
- };
@@ -1,31 +0,0 @@
1
- import { alpha as t, scale as s } from "../../../value/types/numbers/index.js";
2
- import { px as e, progressPercentage as r, degrees as a } from "../../../value/types/numbers/units.js";
3
- const c = {
4
- rotate: a,
5
- rotateX: a,
6
- rotateY: a,
7
- rotateZ: a,
8
- scale: s,
9
- scaleX: s,
10
- scaleY: s,
11
- scaleZ: s,
12
- skew: a,
13
- skewX: a,
14
- skewY: a,
15
- distance: e,
16
- translateX: e,
17
- translateY: e,
18
- translateZ: e,
19
- x: e,
20
- y: e,
21
- z: e,
22
- perspective: e,
23
- transformPerspective: e,
24
- opacity: t,
25
- originX: r,
26
- originY: r,
27
- originZ: e
28
- };
29
- export {
30
- c as transformValueTypes
31
- };
@@ -1,7 +0,0 @@
1
- const o = {
2
- test: (t) => t === "auto",
3
- parse: (t) => t
4
- };
5
- export {
6
- o as auto
7
- };
@@ -1,8 +0,0 @@
1
- import { number as r } from "../../../value/types/numbers/index.js";
2
- const o = {
3
- ...r,
4
- transform: Math.round
5
- };
6
- export {
7
- o as int
8
- };
@@ -1,37 +0,0 @@
1
- import { measureViewportBox as a } from "../../projection/utils/measure.js";
2
- import { DOMVisualElement as m } from "../dom/DOMVisualElement.js";
3
- import { isCSSVariableName as n } from "../dom/utils/is-css-variable.js";
4
- import { buildHTMLStyles as i } from "./utils/build-styles.js";
5
- import { transformProps as p } from "./utils/keys-transform.js";
6
- import { readTransformValue as u } from "./utils/parse-transform.js";
7
- import { renderHTML as l } from "./utils/render.js";
8
- import { scrapeMotionValuesFromProps as f } from "./utils/scrape-motion-values.js";
9
- function c(s) {
10
- return window.getComputedStyle(s);
11
- }
12
- class T extends m {
13
- constructor() {
14
- super(...arguments), this.type = "html", this.renderInstance = l;
15
- }
16
- readValueFromInstance(e, r) {
17
- if (p.has(r))
18
- return u(e, r);
19
- {
20
- const t = c(e), o = (n(r) ? t.getPropertyValue(r) : t[r]) || 0;
21
- return typeof o == "string" ? o.trim() : o;
22
- }
23
- }
24
- measureInstanceViewportBox(e, { transformPagePoint: r }) {
25
- return a(e, r);
26
- }
27
- build(e, r, t) {
28
- i(e, r, t.transformTemplate);
29
- }
30
- scrapeMotionValuesFromProps(e, r, t) {
31
- return f(e, r, t);
32
- }
33
- }
34
- export {
35
- T as HTMLVisualElement,
36
- c as getComputedStyle
37
- };
@@ -1,12 +0,0 @@
1
- import { makeUseVisualState as e } from "../../motion/utils/use-visual-state.js";
2
- import { scrapeMotionValuesFromProps as t } from "./utils/scrape-motion-values.js";
3
- import { createHtmlRenderState as o } from "./utils/create-render-state.js";
4
- const m = {
5
- useVisualState: e({
6
- scrapeMotionValuesFromProps: t,
7
- createRenderState: o
8
- })
9
- };
10
- export {
11
- m as htmlMotionConfig
12
- };
@@ -1,27 +0,0 @@
1
- import { useMemo as o } from "react";
2
- import { isForcedMotionValue as a } from "../../motion/utils/is-forced-motion-value.js";
3
- import { isMotionValue as s } from "../../value/utils/is-motion-value.js";
4
- import { buildHTMLStyles as i } from "./utils/build-styles.js";
5
- import { createHtmlRenderState as c } from "./utils/create-render-state.js";
6
- function u(e, t, r) {
7
- for (const n in t)
8
- !s(t[n]) && !a(n, r) && (e[n] = t[n]);
9
- }
10
- function l({ transformTemplate: e }, t) {
11
- return o(() => {
12
- const r = c();
13
- return i(r, t, e), Object.assign({}, r.vars, r.style);
14
- }, [t]);
15
- }
16
- function f(e, t) {
17
- const r = e.style || {}, n = {};
18
- return u(n, r, e), Object.assign(n, l(e, t)), n;
19
- }
20
- function y(e, t) {
21
- const r = {}, n = f(e, t);
22
- return e.drag && e.dragListener !== !1 && (r.draggable = !1, n.userSelect = n.WebkitUserSelect = n.WebkitTouchCallout = "none", n.touchAction = e.drag === !0 ? "none" : `pan-${e.drag === "x" ? "y" : "x"}`), e.tabIndex === void 0 && (e.onTap || e.onTapStart || e.whileTap) && (r.tabIndex = 0), r.style = n, r;
23
- }
24
- export {
25
- u as copyRawValuesOnly,
26
- y as useHTMLProps
27
- };
@@ -1,29 +0,0 @@
1
- import { isCSSVariableName as u } from "../../dom/utils/is-css-variable.js";
2
- import { getValueAsType as p } from "../../dom/value-types/get-as-type.js";
3
- import { numberValueTypes as c } from "../../dom/value-types/number.js";
4
- import { buildTransform as g } from "./build-transform.js";
5
- import { transformProps as $ } from "./keys-transform.js";
6
- function d(a, s, i) {
7
- const { style: o, vars: l, transformOrigin: e } = a;
8
- let m = !1, f = !1;
9
- for (const r in s) {
10
- const n = s[r];
11
- if ($.has(r)) {
12
- m = !0;
13
- continue;
14
- } else if (u(r)) {
15
- l[r] = n;
16
- continue;
17
- } else {
18
- const t = p(n, c[r]);
19
- r.startsWith("origin") ? (f = !0, e[r] = t) : o[r] = t;
20
- }
21
- }
22
- if (s.transform || (m || i ? o.transform = g(s, a.transform, i) : o.transform && (o.transform = "none")), f) {
23
- const { originX: r = "50%", originY: n = "50%", originZ: t = 0 } = e;
24
- o.transformOrigin = `${r} ${n} ${t}`;
25
- }
26
- }
27
- export {
28
- d as buildHTMLStyles
29
- };
@@ -1,31 +0,0 @@
1
- import { getValueAsType as c } from "../../dom/value-types/get-as-type.js";
2
- import { numberValueTypes as u } from "../../dom/value-types/number.js";
3
- import { transformPropOrder as i } from "./keys-transform.js";
4
- const y = {
5
- x: "translateX",
6
- y: "translateY",
7
- z: "translateZ",
8
- transformPerspective: "perspective"
9
- }, v = i.length;
10
- function T(m, f, o) {
11
- let t = "", n = !0;
12
- for (let s = 0; s < v; s++) {
13
- const e = i[s], r = m[e];
14
- if (r === void 0)
15
- continue;
16
- let a = !0;
17
- if (typeof r == "number" ? a = r === (e.startsWith("scale") ? 1 : 0) : a = parseFloat(r) === 0, !a || o) {
18
- const l = c(r, u[e]);
19
- if (!a) {
20
- n = !1;
21
- const p = y[e] || e;
22
- t += `${p}(${l}) `;
23
- }
24
- o && (f[e] = l);
25
- }
26
- }
27
- return t = t.trim(), o ? t = o(f, n ? "" : t) : n && (t = "none"), t;
28
- }
29
- export {
30
- T as buildTransform
31
- };
@@ -1,9 +0,0 @@
1
- const r = () => ({
2
- style: {},
3
- transform: {},
4
- transformOrigin: {},
5
- vars: {}
6
- });
7
- export {
8
- r as createHtmlRenderState
9
- };
@@ -1,13 +0,0 @@
1
- import { transformPropOrder as t } from "./keys-transform.js";
2
- const r = /* @__PURE__ */ new Set([
3
- "width",
4
- "height",
5
- "top",
6
- "left",
7
- "right",
8
- "bottom",
9
- ...t
10
- ]);
11
- export {
12
- r as positionalKeys
13
- };
@@ -1,23 +0,0 @@
1
- const t = [
2
- "transformPerspective",
3
- "x",
4
- "y",
5
- "z",
6
- "translateX",
7
- "translateY",
8
- "translateZ",
9
- "scale",
10
- "scaleX",
11
- "scaleY",
12
- "rotate",
13
- "rotateX",
14
- "rotateY",
15
- "rotateZ",
16
- "skew",
17
- "skewX",
18
- "skewY"
19
- ], e = new Set(t);
20
- export {
21
- t as transformPropOrder,
22
- e as transformProps
23
- };
@@ -1,16 +0,0 @@
1
- import { analyseComplexValue as s } from "../../../value/types/complex/index.js";
2
- import { getAnimatableNone as l } from "../../dom/value-types/animatable-none.js";
3
- const m = /* @__PURE__ */ new Set(["auto", "none", "0"]);
4
- function g(e, f, a) {
5
- let n = 0, o;
6
- for (; n < e.length && !o; ) {
7
- const t = e[n];
8
- typeof t == "string" && !m.has(t) && s(t).values.length && (o = e[n]), n++;
9
- }
10
- if (o && a)
11
- for (const t of f)
12
- e[t] = l(a, o);
13
- }
14
- export {
15
- g as makeNoneKeyframesAnimatable
16
- };
@@ -1,64 +0,0 @@
1
- const e = (a) => a * 180 / Math.PI, c = (a) => {
2
- const t = e(Math.atan2(a[1], a[0]));
3
- return l(t);
4
- }, p = {
5
- x: 4,
6
- y: 5,
7
- translateX: 4,
8
- translateY: 5,
9
- scaleX: 0,
10
- scaleY: 3,
11
- scale: (a) => (Math.abs(a[0]) + Math.abs(a[3])) / 2,
12
- rotate: c,
13
- rotateZ: c,
14
- skewX: (a) => e(Math.atan(a[1])),
15
- skewY: (a) => e(Math.atan(a[2])),
16
- skew: (a) => (Math.abs(a[1]) + Math.abs(a[2])) / 2
17
- }, l = (a) => (a = a % 360, a < 0 && (a += 360), a), u = c, M = (a) => Math.sqrt(a[0] * a[0] + a[1] * a[1]), i = (a) => Math.sqrt(a[4] * a[4] + a[5] * a[5]), X = {
18
- x: 12,
19
- y: 13,
20
- z: 14,
21
- translateX: 12,
22
- translateY: 13,
23
- translateZ: 14,
24
- scaleX: M,
25
- scaleY: i,
26
- scale: (a) => (M(a) + i(a)) / 2,
27
- rotateX: (a) => l(e(Math.atan2(a[6], a[5]))),
28
- rotateY: (a) => l(e(Math.atan2(-a[2], a[0]))),
29
- rotateZ: u,
30
- rotate: u,
31
- skewX: (a) => e(Math.atan(a[4])),
32
- skewY: (a) => e(Math.atan(a[1])),
33
- skew: (a) => (Math.abs(a[1]) + Math.abs(a[4])) / 2
34
- };
35
- function f(a) {
36
- return a.includes("scale") ? 1 : 0;
37
- }
38
- function b(a, t) {
39
- if (!a || a === "none")
40
- return f(t);
41
- const s = a.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);
42
- let r, n;
43
- if (s)
44
- r = X, n = s;
45
- else {
46
- const m = a.match(/^matrix\(([-\d.e\s,]+)\)$/u);
47
- r = p, n = m;
48
- }
49
- if (!n)
50
- return f(t);
51
- const o = r[t], h = n[1].split(",").map(d);
52
- return typeof o == "function" ? o(h) : h[o];
53
- }
54
- const Y = (a, t) => {
55
- const { transform: s = "none" } = getComputedStyle(a);
56
- return b(s, t);
57
- };
58
- function d(a) {
59
- return parseFloat(a.trim());
60
- }
61
- export {
62
- b as parseValueFromTransform,
63
- Y as readTransformValue
64
- };
@@ -1,8 +0,0 @@
1
- function y(e, { style: r, vars: t }, o, s) {
2
- Object.assign(e.style, r, s && s.getProjectionStyles(o));
3
- for (const n in t)
4
- e.style.setProperty(n, t[n]);
5
- }
6
- export {
7
- y as renderHTML
8
- };
@@ -1,12 +0,0 @@
1
- import { isForcedMotionValue as a } from "../../../motion/utils/is-forced-motion-value.js";
2
- import { isMotionValue as n } from "../../../value/utils/is-motion-value.js";
3
- function v(r, e, s) {
4
- var t;
5
- const { style: i } = r, l = {};
6
- for (const o in i)
7
- (n(i[o]) || e.style && n(e.style[o]) || a(o, r) || ((t = s == null ? void 0 : s.getValue(o)) === null || t === void 0 ? void 0 : t.liveStyle) !== void 0) && (l[o] = i[o]);
8
- return l;
9
- }
10
- export {
11
- v as scrapeMotionValuesFromProps
12
- };
@@ -1,4 +0,0 @@
1
- const e = /* @__PURE__ */ new WeakMap();
2
- export {
3
- e as visualElementStore
4
- };
@@ -1,48 +0,0 @@
1
- import "../../../../../motion-utils/dist/es/errors.js";
2
- import { frame as a } from "../../../../../motion-dom/dist/es/frameloop/frame.js";
3
- import { createBox as o } from "../../projection/geometry/models.js";
4
- import { DOMVisualElement as i } from "../dom/DOMVisualElement.js";
5
- import { camelToDash as m } from "../dom/utils/camel-to-dash.js";
6
- import { getDefaultValueType as n } from "../dom/value-types/defaults.js";
7
- import { transformProps as p } from "../html/utils/keys-transform.js";
8
- import { buildSVGAttrs as u } from "./utils/build-attrs.js";
9
- import { camelCaseAttributes as f } from "./utils/camel-case-attrs.js";
10
- import { isSVGTag as l } from "./utils/is-svg-tag.js";
11
- import { updateSVGDimensions as c } from "./utils/measure.js";
12
- import { renderSVG as d } from "./utils/render.js";
13
- import { scrapeMotionValuesFromProps as h } from "./utils/scrape-motion-values.js";
14
- class I extends i {
15
- constructor() {
16
- super(...arguments), this.type = "svg", this.isSVGTag = !1, this.measureInstanceViewportBox = o, this.updateDimensions = () => {
17
- this.current && !this.renderState.dimensions && c(this.current, this.renderState);
18
- };
19
- }
20
- getBaseTargetFromProps(t, e) {
21
- return t[e];
22
- }
23
- readValueFromInstance(t, e) {
24
- if (p.has(e)) {
25
- const s = n(e);
26
- return s && s.default || 0;
27
- }
28
- return e = f.has(e) ? e : m(e), t.getAttribute(e);
29
- }
30
- scrapeMotionValuesFromProps(t, e, s) {
31
- return h(t, e, s);
32
- }
33
- onBindTransform() {
34
- this.current && !this.renderState.dimensions && a.postRender(this.updateDimensions);
35
- }
36
- build(t, e, s) {
37
- u(t, e, this.isSVGTag, s.transformTemplate);
38
- }
39
- renderInstance(t, e, s, r) {
40
- d(t, e, s, r);
41
- }
42
- mount(t) {
43
- this.isSVGTag = l(t.tagName), super.mount(t);
44
- }
45
- }
46
- export {
47
- I as SVGVisualElement
48
- };
@@ -1,44 +0,0 @@
1
- import "../../../../../motion-utils/dist/es/errors.js";
2
- import { frame as n } from "../../../../../motion-dom/dist/es/frameloop/frame.js";
3
- import { makeUseVisualState as l } from "../../motion/utils/use-visual-state.js";
4
- import { transformProps as u } from "../html/utils/keys-transform.js";
5
- import { buildSVGAttrs as c } from "./utils/build-attrs.js";
6
- import { createSvgRenderState as d } from "./utils/create-render-state.js";
7
- import { isSVGTag as S } from "./utils/is-svg-tag.js";
8
- import { updateSVGDimensions as V } from "./utils/measure.js";
9
- import { renderSVG as g } from "./utils/render.js";
10
- import { scrapeMotionValuesFromProps as h } from "./utils/scrape-motion-values.js";
11
- const f = ["x", "y", "width", "height", "cx", "cy", "r"], R = {
12
- useVisualState: l({
13
- scrapeMotionValuesFromProps: h,
14
- createRenderState: d,
15
- onUpdate: ({ props: t, prevProps: o, current: e, renderState: a, latestValues: m }) => {
16
- if (!e)
17
- return;
18
- let s = !!t.drag;
19
- if (!s) {
20
- for (const r in m)
21
- if (u.has(r)) {
22
- s = !0;
23
- break;
24
- }
25
- }
26
- if (!s)
27
- return;
28
- let i = !o;
29
- if (o)
30
- for (let r = 0; r < f.length; r++) {
31
- const p = f[r];
32
- t[p] !== o[p] && (i = !0);
33
- }
34
- i && n.read(() => {
35
- V(e, a), n.render(() => {
36
- c(a, m, S(e.tagName), t.transformTemplate), g(e, a);
37
- });
38
- });
39
- }
40
- })
41
- };
42
- export {
43
- R as svgMotionConfig
44
- };