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,59 +0,0 @@
1
- import { addUniqueItem as r, removeItem as a } from "../../../../../motion-utils/dist/es/array.js";
2
- import "../../../../../motion-utils/dist/es/errors.js";
3
- class d {
4
- constructor() {
5
- this.members = [];
6
- }
7
- add(e) {
8
- r(this.members, e), e.scheduleRender();
9
- }
10
- remove(e) {
11
- if (a(this.members, e), e === this.prevLead && (this.prevLead = void 0), e === this.lead) {
12
- const t = this.members[this.members.length - 1];
13
- t && this.promote(t);
14
- }
15
- }
16
- relegate(e) {
17
- const t = this.members.findIndex((o) => e === o);
18
- if (t === 0)
19
- return !1;
20
- let s;
21
- for (let o = t; o >= 0; o--) {
22
- const i = this.members[o];
23
- if (i.isPresent !== !1) {
24
- s = i;
25
- break;
26
- }
27
- }
28
- return s ? (this.promote(s), !0) : !1;
29
- }
30
- promote(e, t) {
31
- const s = this.lead;
32
- if (e !== s && (this.prevLead = s, this.lead = e, e.show(), s)) {
33
- s.instance && s.scheduleRender(), e.scheduleRender(), e.resumeFrom = s, t && (e.resumeFrom.preserveOpacity = !0), s.snapshot && (e.snapshot = s.snapshot, e.snapshot.latestValues = s.animationValues || s.latestValues), e.root && e.root.isUpdating && (e.isLayoutDirty = !0);
34
- const { crossfade: o } = e.options;
35
- o === !1 && s.hide();
36
- }
37
- }
38
- exitAnimationComplete() {
39
- this.members.forEach((e) => {
40
- const { options: t, resumingFrom: s } = e;
41
- t.onExitComplete && t.onExitComplete(), s && s.options.onExitComplete && s.options.onExitComplete();
42
- });
43
- }
44
- scheduleRender() {
45
- this.members.forEach((e) => {
46
- e.instance && e.scheduleRender(!1);
47
- });
48
- }
49
- /**
50
- * Clear any leads that have been removed this render to prevent them from being
51
- * used in future animations and to prevent memory leaks
52
- */
53
- removeLeadSnapshot() {
54
- this.lead && this.lead.snapshot && (this.lead.snapshot = void 0);
55
- }
56
- }
57
- export {
58
- d as NodeStack
59
- };
@@ -1,21 +0,0 @@
1
- import { px as s } from "../../value/types/numbers/units.js";
2
- function r(t, e) {
3
- return e.max === e.min ? 0 : t / (e.max - e.min) * 100;
4
- }
5
- const c = {
6
- correct: (t, e) => {
7
- if (!e.target)
8
- return t;
9
- if (typeof t == "string")
10
- if (s.test(t))
11
- t = parseFloat(t);
12
- else
13
- return t;
14
- const o = r(t, e.target.x), a = r(t, e.target.y);
15
- return `${o}% ${a}%`;
16
- }
17
- };
18
- export {
19
- c as correctBorderRadius,
20
- r as pixelsToPercent
21
- };
@@ -1,16 +0,0 @@
1
- import { mixNumber as l } from "../../utils/mix/number.js";
2
- import { complex as s } from "../../value/types/complex/index.js";
3
- const y = {
4
- correct: (o, { treeScale: t, projectionDelta: n }) => {
5
- const p = o, r = s.parse(o);
6
- if (r.length > 5)
7
- return p;
8
- const f = s.createTransformer(o), e = typeof r[0] != "number" ? 1 : 0, c = n.x.scale * t.x, a = n.y.scale * t.y;
9
- r[0 + e] /= c, r[1 + e] /= a;
10
- const m = l(c, a, 0.5);
11
- return typeof r[2 + e] == "number" && (r[2 + e] /= m), typeof r[3 + e] == "number" && (r[3 + e] /= m), f(r);
12
- }
13
- };
14
- export {
15
- y as correctBoxShadow
16
- };
@@ -1,10 +0,0 @@
1
- import { isCSSVariableName as s } from "../../render/dom/utils/is-css-variable.js";
2
- const o = {};
3
- function e(a) {
4
- for (const r in a)
5
- o[r] = a[r], s(r) && (o[r].isCSSVariable = !0);
6
- }
7
- export {
8
- e as addScaleCorrector,
9
- o as scaleCorrectors
10
- };
@@ -1,13 +0,0 @@
1
- function f(a, t, r) {
2
- let e = "";
3
- const s = a.x.translate / t.x, n = a.y.translate / t.y, $ = (r == null ? void 0 : r.z) || 0;
4
- if ((s || n || $) && (e = `translate3d(${s}px, ${n}px, ${$}px) `), (t.x !== 1 || t.y !== 1) && (e += `scale(${1 / t.x}, ${1 / t.y}) `), r) {
5
- const { transformPerspective: x, rotate: l, rotateX: d, rotateY: p, skewX: y, skewY: g } = r;
6
- x && (e = `perspective(${x}px) ${e}`), l && (e += `rotate(${l}deg) `), d && (e += `rotateX(${d}deg) `), p && (e += `rotateY(${p}deg) `), y && (e += `skewX(${y}deg) `), g && (e += `skewY(${g}deg) `);
7
- }
8
- const o = a.x.scale * t.x, c = a.y.scale * t.y;
9
- return (o !== 1 || c !== 1) && (e += `scale(${o}, ${c})`), e || "none";
10
- }
11
- export {
12
- f as buildProjectionTransform
13
- };
@@ -1,6 +0,0 @@
1
- function r(n) {
2
- return [n("x"), n("y")];
3
- }
4
- export {
5
- r as eachAxis
6
- };
@@ -1,20 +0,0 @@
1
- function r(t) {
2
- return t === void 0 || t === 1;
3
- }
4
- function o({ scale: t, scaleX: a, scaleY: s }) {
5
- return !r(t) || !r(a) || !r(s);
6
- }
7
- function u(t) {
8
- return o(t) || c(t) || t.z || t.rotate || t.rotateX || t.rotateY || t.skewX || t.skewY;
9
- }
10
- function c(t) {
11
- return e(t.x) || e(t.y);
12
- }
13
- function e(t) {
14
- return t && t !== "0%";
15
- }
16
- export {
17
- c as has2DTranslate,
18
- o as hasScale,
19
- u as hasTransform
20
- };
@@ -1,13 +0,0 @@
1
- import { convertBoundingBoxToBox as a, transformBoxPoints as i } from "../geometry/conversion.js";
2
- import { translateAxis as n } from "../geometry/delta-apply.js";
3
- function x(o, r) {
4
- return a(i(o.getBoundingClientRect(), r));
5
- }
6
- function u(o, r, s) {
7
- const t = x(o, s), { scroll: e } = r;
8
- return e && (n(t.x, e.offset.x), n(t.y, e.offset.y)), t;
9
- }
10
- export {
11
- u as measurePageBox,
12
- x as measureViewportBox
13
- };
@@ -1,229 +0,0 @@
1
- import "../../../../motion-utils/dist/es/errors.js";
2
- import { SubscriptionManager as g } from "../../../../motion-utils/dist/es/subscription-manager.js";
3
- import { warnOnce as M } from "../../../../motion-utils/dist/es/warn-once.js";
4
- import { frame as d, cancelFrame as c } from "../../../../motion-dom/dist/es/frameloop/frame.js";
5
- import { time as S } from "../../../../motion-dom/dist/es/frameloop/sync-time.js";
6
- import { motionValue as C } from "../../../../motion-dom/dist/es/value/index.js";
7
- import { featureDefinitions as m } from "../motion/features/definitions.js";
8
- import { createBox as b } from "../projection/geometry/models.js";
9
- import { isNumericalString as y } from "../utils/is-numerical-string.js";
10
- import { isZeroValueString as T } from "../utils/is-zero-value-string.js";
11
- import { initPrefersReducedMotion as P } from "../utils/reduced-motion/index.js";
12
- import { hasReducedMotionListener as w, prefersReducedMotion as F } from "../utils/reduced-motion/state.js";
13
- import { complex as N } from "../value/types/complex/index.js";
14
- import { isMotionValue as h } from "../value/utils/is-motion-value.js";
15
- import { getAnimatableNone as A } from "./dom/value-types/animatable-none.js";
16
- import { findValueType as R } from "./dom/value-types/find.js";
17
- import { transformProps as x } from "./html/utils/keys-transform.js";
18
- import { visualElementStore as B } from "./store.js";
19
- import { isControllingVariants as E, isVariantNode as U } from "./utils/is-controlling-variants.js";
20
- import { KeyframeResolver as j } from "./utils/KeyframesResolver.js";
21
- import { updateMotionValuesFromProps as I } from "./utils/motion-values.js";
22
- import { resolveVariantFromProps as L } from "./utils/resolve-variants.js";
23
- const f = [
24
- "AnimationStart",
25
- "AnimationComplete",
26
- "Update",
27
- "BeforeLayoutMeasure",
28
- "LayoutMeasure",
29
- "LayoutAnimationStart",
30
- "LayoutAnimationComplete"
31
- ];
32
- class ht {
33
- /**
34
- * This method takes React props and returns found MotionValues. For example, HTML
35
- * MotionValues will be found within the style prop, whereas for Three.js within attribute arrays.
36
- *
37
- * This isn't an abstract method as it needs calling in the constructor, but it is
38
- * intended to be one.
39
- */
40
- scrapeMotionValuesFromProps(t, e, i) {
41
- return {};
42
- }
43
- constructor({ parent: t, props: e, presenceContext: i, reducedMotionConfig: s, blockInitialAnimation: r, visualState: o }, u = {}) {
44
- this.current = null, this.children = /* @__PURE__ */ new Set(), this.isVariantNode = !1, this.isControllingVariants = !1, this.shouldReduceMotion = null, this.values = /* @__PURE__ */ new Map(), this.KeyframeResolver = j, this.features = {}, this.valueSubscriptions = /* @__PURE__ */ new Map(), this.prevMotionValues = {}, this.events = {}, this.propEventSubscriptions = {}, this.notifyUpdate = () => this.notify("Update", this.latestValues), this.render = () => {
45
- this.current && (this.triggerBuild(), this.renderInstance(this.current, this.renderState, this.props.style, this.projection));
46
- }, this.renderScheduledAt = 0, this.scheduleRender = () => {
47
- const n = S.now();
48
- this.renderScheduledAt < n && (this.renderScheduledAt = n, d.render(this.render, !1, !0));
49
- };
50
- const { latestValues: a, renderState: v, onUpdate: V } = o;
51
- this.onUpdate = V, this.latestValues = a, this.baseTarget = { ...a }, this.initialValues = e.initial ? { ...a } : {}, this.renderState = v, this.parent = t, this.props = e, this.presenceContext = i, this.depth = t ? t.depth + 1 : 0, this.reducedMotionConfig = s, this.options = u, this.blockInitialAnimation = !!r, this.isControllingVariants = E(e), this.isVariantNode = U(e), this.isVariantNode && (this.variantChildren = /* @__PURE__ */ new Set()), this.manuallyAnimateOnMount = !!(t && t.current);
52
- const { willChange: D, ...p } = this.scrapeMotionValuesFromProps(e, {}, this);
53
- for (const n in p) {
54
- const l = p[n];
55
- a[n] !== void 0 && h(l) && l.set(a[n], !1);
56
- }
57
- }
58
- mount(t) {
59
- this.current = t, B.set(t, this), this.projection && !this.projection.instance && this.projection.mount(t), this.parent && this.isVariantNode && !this.isControllingVariants && (this.removeFromVariantTree = this.parent.addVariantChild(this)), this.values.forEach((e, i) => this.bindToMotionValue(i, e)), w.current || P(), this.shouldReduceMotion = this.reducedMotionConfig === "never" ? !1 : this.reducedMotionConfig === "always" ? !0 : F.current, process.env.NODE_ENV !== "production" && M(this.shouldReduceMotion !== !0, "You have Reduced Motion enabled on your device. Animations may not appear as expected."), this.parent && this.parent.children.add(this), this.update(this.props, this.presenceContext);
60
- }
61
- unmount() {
62
- this.projection && this.projection.unmount(), c(this.notifyUpdate), c(this.render), this.valueSubscriptions.forEach((t) => t()), this.valueSubscriptions.clear(), this.removeFromVariantTree && this.removeFromVariantTree(), this.parent && this.parent.children.delete(this);
63
- for (const t in this.events)
64
- this.events[t].clear();
65
- for (const t in this.features) {
66
- const e = this.features[t];
67
- e && (e.unmount(), e.isMounted = !1);
68
- }
69
- this.current = null;
70
- }
71
- bindToMotionValue(t, e) {
72
- this.valueSubscriptions.has(t) && this.valueSubscriptions.get(t)();
73
- const i = x.has(t);
74
- i && this.onBindTransform && this.onBindTransform();
75
- const s = e.on("change", (u) => {
76
- this.latestValues[t] = u, this.props.onUpdate && d.preRender(this.notifyUpdate), i && this.projection && (this.projection.isTransformDirty = !0);
77
- }), r = e.on("renderRequest", this.scheduleRender);
78
- let o;
79
- window.MotionCheckAppearSync && (o = window.MotionCheckAppearSync(this, t, e)), this.valueSubscriptions.set(t, () => {
80
- s(), r(), o && o(), e.owner && e.stop();
81
- });
82
- }
83
- sortNodePosition(t) {
84
- return !this.current || !this.sortInstanceNodePosition || this.type !== t.type ? 0 : this.sortInstanceNodePosition(this.current, t.current);
85
- }
86
- updateFeatures() {
87
- let t = "animation";
88
- for (t in m) {
89
- const e = m[t];
90
- if (!e)
91
- continue;
92
- const { isEnabled: i, Feature: s } = e;
93
- if (!this.features[t] && s && i(this.props) && (this.features[t] = new s(this)), this.features[t]) {
94
- const r = this.features[t];
95
- r.isMounted ? r.update() : (r.mount(), r.isMounted = !0);
96
- }
97
- }
98
- }
99
- triggerBuild() {
100
- this.build(this.renderState, this.latestValues, this.props);
101
- }
102
- /**
103
- * Measure the current viewport box with or without transforms.
104
- * Only measures axis-aligned boxes, rotate and skew must be manually
105
- * removed with a re-render to work.
106
- */
107
- measureViewportBox() {
108
- return this.current ? this.measureInstanceViewportBox(this.current, this.props) : b();
109
- }
110
- getStaticValue(t) {
111
- return this.latestValues[t];
112
- }
113
- setStaticValue(t, e) {
114
- this.latestValues[t] = e;
115
- }
116
- /**
117
- * Update the provided props. Ensure any newly-added motion values are
118
- * added to our map, old ones removed, and listeners updated.
119
- */
120
- update(t, e) {
121
- (t.transformTemplate || this.props.transformTemplate) && this.scheduleRender(), this.prevProps = this.props, this.props = t, this.prevPresenceContext = this.presenceContext, this.presenceContext = e;
122
- for (let i = 0; i < f.length; i++) {
123
- const s = f[i];
124
- this.propEventSubscriptions[s] && (this.propEventSubscriptions[s](), delete this.propEventSubscriptions[s]);
125
- const r = "on" + s, o = t[r];
126
- o && (this.propEventSubscriptions[s] = this.on(s, o));
127
- }
128
- this.prevMotionValues = I(this, this.scrapeMotionValuesFromProps(t, this.prevProps, this), this.prevMotionValues), this.handleChildMotionValue && this.handleChildMotionValue(), this.onUpdate && this.onUpdate(this);
129
- }
130
- getProps() {
131
- return this.props;
132
- }
133
- /**
134
- * Returns the variant definition with a given name.
135
- */
136
- getVariant(t) {
137
- return this.props.variants ? this.props.variants[t] : void 0;
138
- }
139
- /**
140
- * Returns the defined default transition on this component.
141
- */
142
- getDefaultTransition() {
143
- return this.props.transition;
144
- }
145
- getTransformPagePoint() {
146
- return this.props.transformPagePoint;
147
- }
148
- getClosestVariantNode() {
149
- return this.isVariantNode ? this : this.parent ? this.parent.getClosestVariantNode() : void 0;
150
- }
151
- /**
152
- * Add a child visual element to our set of children.
153
- */
154
- addVariantChild(t) {
155
- const e = this.getClosestVariantNode();
156
- if (e)
157
- return e.variantChildren && e.variantChildren.add(t), () => e.variantChildren.delete(t);
158
- }
159
- /**
160
- * Add a motion value and bind it to this visual element.
161
- */
162
- addValue(t, e) {
163
- const i = this.values.get(t);
164
- e !== i && (i && this.removeValue(t), this.bindToMotionValue(t, e), this.values.set(t, e), this.latestValues[t] = e.get());
165
- }
166
- /**
167
- * Remove a motion value and unbind any active subscriptions.
168
- */
169
- removeValue(t) {
170
- this.values.delete(t);
171
- const e = this.valueSubscriptions.get(t);
172
- e && (e(), this.valueSubscriptions.delete(t)), delete this.latestValues[t], this.removeValueFromRenderState(t, this.renderState);
173
- }
174
- /**
175
- * Check whether we have a motion value for this key
176
- */
177
- hasValue(t) {
178
- return this.values.has(t);
179
- }
180
- getValue(t, e) {
181
- if (this.props.values && this.props.values[t])
182
- return this.props.values[t];
183
- let i = this.values.get(t);
184
- return i === void 0 && e !== void 0 && (i = C(e === null ? void 0 : e, { owner: this }), this.addValue(t, i)), i;
185
- }
186
- /**
187
- * If we're trying to animate to a previously unencountered value,
188
- * we need to check for it in our state and as a last resort read it
189
- * directly from the instance (which might have performance implications).
190
- */
191
- readValue(t, e) {
192
- var i;
193
- let s = this.latestValues[t] !== void 0 || !this.current ? this.latestValues[t] : (i = this.getBaseTargetFromProps(this.props, t)) !== null && i !== void 0 ? i : this.readValueFromInstance(this.current, t, this.options);
194
- return s != null && (typeof s == "string" && (y(s) || T(s)) ? s = parseFloat(s) : !R(s) && N.test(e) && (s = A(t, e)), this.setBaseTarget(t, h(s) ? s.get() : s)), h(s) ? s.get() : s;
195
- }
196
- /**
197
- * Set the base target to later animate back to. This is currently
198
- * only hydrated on creation and when we first read a value.
199
- */
200
- setBaseTarget(t, e) {
201
- this.baseTarget[t] = e;
202
- }
203
- /**
204
- * Find the base target for a value thats been removed from all animation
205
- * props.
206
- */
207
- getBaseTarget(t) {
208
- var e;
209
- const { initial: i } = this.props;
210
- let s;
211
- if (typeof i == "string" || typeof i == "object") {
212
- const o = L(this.props, i, (e = this.presenceContext) === null || e === void 0 ? void 0 : e.custom);
213
- o && (s = o[t]);
214
- }
215
- if (i && s !== void 0)
216
- return s;
217
- const r = this.getBaseTargetFromProps(this.props, t);
218
- return r !== void 0 && !h(r) ? r : this.initialValues[t] !== void 0 && s === void 0 ? void 0 : this.baseTarget[t];
219
- }
220
- on(t, e) {
221
- return this.events[t] || (this.events[t] = new g()), this.events[t].add(e);
222
- }
223
- notify(t, ...e) {
224
- this.events[t] && this.events[t].notify(...e);
225
- }
226
- }
227
- export {
228
- ht as VisualElement
229
- };
@@ -1,20 +0,0 @@
1
- import { createRendererMotionComponent as i } from "../../motion/index.js";
2
- import { createUseRender as a } from "../dom/use-render.js";
3
- import { isSVGComponent as s } from "../dom/utils/is-svg-component.js";
4
- import { htmlMotionConfig as m } from "../html/config-motion.js";
5
- import { svgMotionConfig as p } from "../svg/config-motion.js";
6
- function M(e, r) {
7
- return function(o, { forwardMotionProps: t } = { forwardMotionProps: !1 }) {
8
- const n = {
9
- ...s(o) ? p : m,
10
- preloadedFeatures: e,
11
- useRender: a(t),
12
- createVisualElement: r,
13
- Component: o
14
- };
15
- return i(n);
16
- };
17
- }
18
- export {
19
- M as createMotionComponentFactory
20
- };
@@ -1,18 +0,0 @@
1
- import "../../../../../motion-utils/dist/es/errors.js";
2
- import { warnOnce as a } from "../../../../../motion-utils/dist/es/warn-once.js";
3
- function i(e) {
4
- if (typeof Proxy > "u")
5
- return e;
6
- const r = /* @__PURE__ */ new Map(), t = (...n) => (process.env.NODE_ENV !== "production" && a(!1, "motion() is deprecated. Use motion.create() instead."), e(...n));
7
- return new Proxy(t, {
8
- /**
9
- * Called when `motion` is referenced with a prop: `motion.div`, `motion.input` etc.
10
- * The prop name is passed through as `key` and we can use that to generate a `motion`
11
- * DOM component with that name.
12
- */
13
- get: (n, o) => o === "create" ? e : (r.has(o) || r.set(o, e(o)), r.get(o))
14
- });
15
- }
16
- export {
17
- i as createDOMMotionComponentProxy
18
- };
@@ -1,15 +0,0 @@
1
- import { animations as o } from "../../../motion/features/animations.js";
2
- import { drag as t } from "../../../motion/features/drag.js";
3
- import { gestureAnimations as a } from "../../../motion/features/gestures.js";
4
- import { layout as r } from "../../../motion/features/layout.js";
5
- import { createMotionComponentFactory as m } from "../create-factory.js";
6
- import { createDomVisualElement as e } from "../../dom/create-visual-element.js";
7
- const l = /* @__PURE__ */ m({
8
- ...o,
9
- ...a,
10
- ...t,
11
- ...r
12
- }, e);
13
- export {
14
- l as createMotionComponent
15
- };
@@ -1,6 +0,0 @@
1
- import { createDOMMotionComponentProxy as o } from "../create-proxy.js";
2
- import { createMotionComponent as t } from "./create.js";
3
- const r = /* @__PURE__ */ o(t);
4
- export {
5
- r as motion
6
- };
@@ -1,66 +0,0 @@
1
- import { isNone as p } from "../../animation/utils/is-none.js";
2
- import { positionalKeys as d } from "../html/utils/keys-position.js";
3
- import { makeNoneKeyframesAnimatable as g } from "../html/utils/make-none-animatable.js";
4
- import { KeyframeResolver as c } from "../utils/KeyframesResolver.js";
5
- import { getVariableValue as y } from "./utils/css-variables-conversion.js";
6
- import { isCSSVariableToken as v } from "./utils/is-css-variable.js";
7
- import { isNumOrPxType as f, positionalValues as u } from "./utils/unit-conversion.js";
8
- import { findDimensionValueType as h } from "./value-types/dimensions.js";
9
- class b extends c {
10
- constructor(e, r, s, t, a) {
11
- super(e, r, s, t, a, !0);
12
- }
13
- readKeyframes() {
14
- const { unresolvedKeyframes: e, element: r, name: s } = this;
15
- if (!r || !r.current)
16
- return;
17
- super.readKeyframes();
18
- for (let n = 0; n < e.length; n++) {
19
- let o = e[n];
20
- if (typeof o == "string" && (o = o.trim(), v(o))) {
21
- const l = y(o, r.current);
22
- l !== void 0 && (e[n] = l), n === e.length - 1 && (this.finalKeyframe = o);
23
- }
24
- }
25
- if (this.resolveNoneKeyframes(), !d.has(s) || e.length !== 2)
26
- return;
27
- const [t, a] = e, i = h(t), m = h(a);
28
- if (i !== m)
29
- if (f(i) && f(m))
30
- for (let n = 0; n < e.length; n++) {
31
- const o = e[n];
32
- typeof o == "string" && (e[n] = parseFloat(o));
33
- }
34
- else
35
- this.needsMeasurement = !0;
36
- }
37
- resolveNoneKeyframes() {
38
- const { unresolvedKeyframes: e, name: r } = this, s = [];
39
- for (let t = 0; t < e.length; t++)
40
- p(e[t]) && s.push(t);
41
- s.length && g(e, s, r);
42
- }
43
- measureInitialState() {
44
- const { element: e, unresolvedKeyframes: r, name: s } = this;
45
- if (!e || !e.current)
46
- return;
47
- s === "height" && (this.suspendedScrollY = window.pageYOffset), this.measuredOrigin = u[s](e.measureViewportBox(), window.getComputedStyle(e.current)), r[0] = this.measuredOrigin;
48
- const t = r[r.length - 1];
49
- t !== void 0 && e.getValue(s, t).jump(t, !1);
50
- }
51
- measureEndState() {
52
- var e;
53
- const { element: r, name: s, unresolvedKeyframes: t } = this;
54
- if (!r || !r.current)
55
- return;
56
- const a = r.getValue(s);
57
- a && a.jump(this.measuredOrigin, !1);
58
- const i = t.length - 1, m = t[i];
59
- t[i] = u[s](r.measureViewportBox(), window.getComputedStyle(r.current)), m !== null && this.finalKeyframe === void 0 && (this.finalKeyframe = m), !((e = this.removedTransforms) === null || e === void 0) && e.length && this.removedTransforms.forEach(([n, o]) => {
60
- r.getValue(n).set(o);
61
- }), this.resolveNoneKeyframes();
62
- }
63
- }
64
- export {
65
- b as DOMKeyframesResolver
66
- };
@@ -1,27 +0,0 @@
1
- import { isMotionValue as r } from "../../value/utils/is-motion-value.js";
2
- import { VisualElement as o } from "../VisualElement.js";
3
- import { DOMKeyframesResolver as i } from "./DOMKeyframesResolver.js";
4
- class h extends o {
5
- constructor() {
6
- super(...arguments), this.KeyframeResolver = i;
7
- }
8
- sortInstanceNodePosition(e, t) {
9
- return e.compareDocumentPosition(t) & 2 ? 1 : -1;
10
- }
11
- getBaseTargetFromProps(e, t) {
12
- return e.style ? e.style[t] : void 0;
13
- }
14
- removeValueFromRenderState(e, { vars: t, style: s }) {
15
- delete t[e], delete s[e];
16
- }
17
- handleChildMotionValue() {
18
- this.childSubscription && (this.childSubscription(), delete this.childSubscription);
19
- const { children: e } = this.props;
20
- r(e) && (this.childSubscription = e.on("change", (t) => {
21
- this.current && (this.current.textContent = `${t}`);
22
- }));
23
- }
24
- }
25
- export {
26
- h as DOMVisualElement
27
- };
@@ -1,10 +0,0 @@
1
- import { Fragment as e } from "react";
2
- import { HTMLVisualElement as t } from "../html/HTMLVisualElement.js";
3
- import { SVGVisualElement as r } from "../svg/SVGVisualElement.js";
4
- import { isSVGComponent as a } from "./utils/is-svg-component.js";
5
- const p = (o, m) => a(o) ? new r(m) : new t(m, {
6
- allowProjection: o !== e
7
- });
8
- export {
9
- p as createDomVisualElement
10
- };
@@ -1,18 +0,0 @@
1
- import { Fragment as u, useMemo as l, createElement as c } from "react";
2
- import { useHTMLProps as V } from "../html/use-props.js";
3
- import { filterProps as M } from "./utils/filter-props.js";
4
- import { isSVGComponent as d } from "./utils/is-svg-component.js";
5
- import { useSVGProps as g } from "../svg/use-props.js";
6
- import { isMotionValue as P } from "../../value/utils/is-motion-value.js";
7
- function C(t = !1) {
8
- return (r, o, s, { latestValues: m }, i) => {
9
- const n = (d(r) ? g : V)(o, m, i, r), a = M(o, typeof r == "string", t), p = r !== u ? { ...a, ...n, ref: s } : {}, { children: e } = o, f = l(() => P(e) ? e.get() : e, [e]);
10
- return c(r, {
11
- ...p,
12
- children: f
13
- });
14
- };
15
- }
16
- export {
17
- C as createUseRender
18
- };
@@ -1,4 +0,0 @@
1
- const e = (a) => a.replace(/([a-z])([A-Z])/gu, "$1-$2").toLowerCase();
2
- export {
3
- e as camelToDash
4
- };
@@ -1,31 +0,0 @@
1
- import { invariant as c } from "../../../../../../motion-utils/dist/es/errors.js";
2
- import { isNumericalString as s } from "../../../utils/is-numerical-string.js";
3
- import { isCSSVariableToken as l } from "./is-css-variable.js";
4
- const u = (
5
- // eslint-disable-next-line redos-detector/no-unsafe-regex -- false positive, as it can match a lot of words
6
- /^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u
7
- );
8
- function p(r) {
9
- const a = u.exec(r);
10
- if (!a)
11
- return [,];
12
- const [, t, i, e] = a;
13
- return [`--${t ?? i}`, e];
14
- }
15
- const f = 4;
16
- function m(r, a, t = 1) {
17
- c(t <= f, `Max CSS variable fallback depth detected in property "${r}". This may indicate a circular fallback dependency.`);
18
- const [i, e] = p(r);
19
- if (!i)
20
- return;
21
- const o = window.getComputedStyle(a).getPropertyValue(i);
22
- if (o) {
23
- const n = o.trim();
24
- return s(n) ? parseFloat(n) : n;
25
- }
26
- return l(e) ? m(e, a, t + 1) : e;
27
- }
28
- export {
29
- m as getVariableValue,
30
- p as parseCSSVariable
31
- };
@@ -1,20 +0,0 @@
1
- import { isValidMotionProp as o } from "../../../motion/utils/valid-prop.js";
2
- let n = (r) => !o(r);
3
- function i(r) {
4
- r && (n = (a) => a.startsWith("on") ? !o(a) : r(a));
5
- }
6
- try {
7
- i(require("@emotion/is-prop-valid").default);
8
- } catch {
9
- }
10
- function u(r, a, s) {
11
- const e = {};
12
- for (const t in r)
13
- t === "values" && typeof r.values == "object" || (n(t) || s === !0 && o(t) || !a && !o(t) || // If trying to use native HTML drag events, forward drag listeners
14
- r.draggable && t.startsWith("onDrag")) && (e[t] = r[t]);
15
- return e;
16
- }
17
- export {
18
- u as filterProps,
19
- i as loadExternalIsValidProp
20
- };
@@ -1,5 +0,0 @@
1
- const i = (s) => (a) => typeof a == "string" && a.startsWith(s), r = /* @__PURE__ */ i("--"), t = /* @__PURE__ */ i("var(--"), l = (s) => t(s) ? e.test(s.split("/*")[0].trim()) : !1, e = /var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;
2
- export {
3
- r as isCSSVariableName,
4
- l as isCSSVariableToken
5
- };