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,17 +0,0 @@
1
- import { DragGesture as r } from "../../gestures/drag/index.js";
2
- import { PanGesture as o } from "../../gestures/pan/index.js";
3
- import { MeasureLayout as e } from "./layout/MeasureLayout.js";
4
- import { HTMLProjectionNode as a } from "../../projection/node/HTMLProjectionNode.js";
5
- const i = {
6
- pan: {
7
- Feature: o
8
- },
9
- drag: {
10
- Feature: r,
11
- ProjectionNode: a,
12
- MeasureLayout: e
13
- }
14
- };
15
- export {
16
- i as drag
17
- };
@@ -1,21 +0,0 @@
1
- import { HoverGesture as e } from "../../gestures/hover.js";
2
- import { FocusGesture as r } from "../../gestures/focus.js";
3
- import { PressGesture as t } from "../../gestures/press.js";
4
- import { InViewFeature as o } from "./viewport/index.js";
5
- const m = {
6
- inView: {
7
- Feature: o
8
- },
9
- tap: {
10
- Feature: t
11
- },
12
- focus: {
13
- Feature: r
14
- },
15
- hover: {
16
- Feature: e
17
- }
18
- };
19
- export {
20
- m as gestureAnimations
21
- };
@@ -1,75 +0,0 @@
1
- import { j as d } from "../../../../../../../_virtual/jsx-runtime.js";
2
- import "../../../../../../motion-utils/dist/es/errors.js";
3
- import { frame as u } from "../../../../../../motion-dom/dist/es/frameloop/frame.js";
4
- import { microtask as c } from "../../../../../../motion-dom/dist/es/frameloop/microtask.js";
5
- import { useContext as m, Component as l } from "react";
6
- import { usePresence as f } from "../../../components/AnimatePresence/use-presence.js";
7
- import { LayoutGroupContext as h } from "../../../context/LayoutGroupContext.js";
8
- import { SwitchLayoutGroupContext as R } from "../../../context/SwitchLayoutGroupContext.js";
9
- import { globalProjectionState as g } from "../../../projection/node/state.js";
10
- import { correctBorderRadius as a } from "../../../projection/styles/scale-border-radius.js";
11
- import { correctBoxShadow as v } from "../../../projection/styles/scale-box-shadow.js";
12
- import { addScaleCorrector as y } from "../../../projection/styles/scale-correction.js";
13
- class T extends l {
14
- /**
15
- * This only mounts projection nodes for components that
16
- * need measuring, we might want to do it for all components
17
- * in order to incorporate transforms
18
- */
19
- componentDidMount() {
20
- const { visualElement: o, layoutGroup: t, switchLayoutGroup: r, layoutId: s } = this.props, { projection: e } = o;
21
- y(b), e && (t.group && t.group.add(e), r && r.register && s && r.register(e), e.root.didUpdate(), e.addEventListener("animationComplete", () => {
22
- this.safeToRemove();
23
- }), e.setOptions({
24
- ...e.options,
25
- onExitComplete: () => this.safeToRemove()
26
- })), g.hasEverUpdated = !0;
27
- }
28
- getSnapshotBeforeUpdate(o) {
29
- const { layoutDependency: t, visualElement: r, drag: s, isPresent: e } = this.props, i = r.projection;
30
- return i && (i.isPresent = e, s || o.layoutDependency !== t || t === void 0 || o.isPresent !== e ? i.willUpdate() : this.safeToRemove(), o.isPresent !== e && (e ? i.promote() : i.relegate() || u.postRender(() => {
31
- const n = i.getStack();
32
- (!n || !n.members.length) && this.safeToRemove();
33
- }))), null;
34
- }
35
- componentDidUpdate() {
36
- const { projection: o } = this.props.visualElement;
37
- o && (o.root.didUpdate(), c.postRender(() => {
38
- !o.currentAnimation && o.isLead() && this.safeToRemove();
39
- }));
40
- }
41
- componentWillUnmount() {
42
- const { visualElement: o, layoutGroup: t, switchLayoutGroup: r } = this.props, { projection: s } = o;
43
- s && (s.scheduleCheckAfterUnmount(), t && t.group && t.group.remove(s), r && r.deregister && r.deregister(s));
44
- }
45
- safeToRemove() {
46
- const { safeToRemove: o } = this.props;
47
- o && o();
48
- }
49
- render() {
50
- return null;
51
- }
52
- }
53
- function k(p) {
54
- const [o, t] = f(), r = m(h);
55
- return d.jsx(T, { ...p, layoutGroup: r, switchLayoutGroup: m(R), isPresent: o, safeToRemove: t });
56
- }
57
- const b = {
58
- borderRadius: {
59
- ...a,
60
- applyTo: [
61
- "borderTopLeftRadius",
62
- "borderTopRightRadius",
63
- "borderBottomLeftRadius",
64
- "borderBottomRightRadius"
65
- ]
66
- },
67
- borderTopLeftRadius: a,
68
- borderTopRightRadius: a,
69
- borderBottomLeftRadius: a,
70
- borderBottomRightRadius: a,
71
- boxShadow: v
72
- };
73
- export {
74
- k as MeasureLayout
75
- };
@@ -1,11 +0,0 @@
1
- import { HTMLProjectionNode as o } from "../../projection/node/HTMLProjectionNode.js";
2
- import { MeasureLayout as a } from "./layout/MeasureLayout.js";
3
- const r = {
4
- layout: {
5
- ProjectionNode: o,
6
- MeasureLayout: a
7
- }
8
- };
9
- export {
10
- r as layout
11
- };
@@ -1,11 +0,0 @@
1
- import { featureDefinitions as e } from "./definitions.js";
2
- function r(t) {
3
- for (const o in t)
4
- e[o] = {
5
- ...e[o],
6
- ...t[o]
7
- };
8
- }
9
- export {
10
- r as loadFeatures
11
- };
@@ -1,44 +0,0 @@
1
- import { Feature as w } from "../Feature.js";
2
- import { observeIntersection as d } from "./observers.js";
3
- const v = {
4
- some: 0,
5
- all: 1
6
- };
7
- class I extends w {
8
- constructor() {
9
- super(...arguments), this.hasEnteredView = !1, this.isInView = !1;
10
- }
11
- startObserver() {
12
- this.unmount();
13
- const { viewport: r = {} } = this.node.getProps(), { root: t, margin: a, amount: s = "some", once: u } = r, h = {
14
- root: t ? t.current : void 0,
15
- rootMargin: a,
16
- threshold: typeof s == "number" ? s : v[s]
17
- }, p = (o) => {
18
- const { isIntersecting: e } = o;
19
- if (this.isInView === e || (this.isInView = e, u && !e && this.hasEnteredView))
20
- return;
21
- e && (this.hasEnteredView = !0), this.node.animationState && this.node.animationState.setActive("whileInView", e);
22
- const { onViewportEnter: m, onViewportLeave: c } = this.node.getProps(), i = e ? m : c;
23
- i && i(o);
24
- };
25
- return d(this.node.current, h, p);
26
- }
27
- mount() {
28
- this.startObserver();
29
- }
30
- update() {
31
- if (typeof IntersectionObserver > "u")
32
- return;
33
- const { props: r, prevProps: t } = this.node;
34
- ["amount", "margin", "root"].some(V(r, t)) && this.startObserver();
35
- }
36
- unmount() {
37
- }
38
- }
39
- function V({ viewport: n = {} }, { viewport: r = {} } = {}) {
40
- return (t) => n[t] !== r[t];
41
- }
42
- export {
43
- I as InViewFeature
44
- };
@@ -1,21 +0,0 @@
1
- const c = /* @__PURE__ */ new WeakMap(), r = /* @__PURE__ */ new WeakMap(), a = (t) => {
2
- const e = c.get(t.target);
3
- e && e(t);
4
- }, i = (t) => {
5
- t.forEach(a);
6
- };
7
- function u({ root: t, ...e }) {
8
- const o = t || document;
9
- r.has(o) || r.set(o, {});
10
- const n = r.get(o), s = JSON.stringify(e);
11
- return n[s] || (n[s] = new IntersectionObserver(i, { root: t, ...e })), n[s];
12
- }
13
- function b(t, e, o) {
14
- const n = u(e);
15
- return c.set(t, o), n.observe(t), () => {
16
- c.delete(t), n.unobserve(t);
17
- };
18
- }
19
- export {
20
- b as observeIntersection
21
- };
@@ -1,59 +0,0 @@
1
- import { j as C } from "../../../../../_virtual/jsx-runtime.js";
2
- import { warning as x, invariant as M } from "../../../../motion-utils/dist/es/errors.js";
3
- import { forwardRef as N, useContext as c } from "react";
4
- import { LayoutGroupContext as g } from "../context/LayoutGroupContext.js";
5
- import { LazyContext as j } from "../context/LazyContext.js";
6
- import { MotionConfigContext as L } from "../context/MotionConfigContext.js";
7
- import { MotionContext as b } from "../context/MotionContext/index.js";
8
- import { useCreateMotionContext as h } from "../context/MotionContext/create.js";
9
- import { isBrowser as w } from "../utils/is-browser.js";
10
- import { featureDefinitions as P } from "./features/definitions.js";
11
- import { loadFeatures as R } from "./features/load-features.js";
12
- import { motionComponentSymbol as S } from "./utils/symbol.js";
13
- import { useMotionRef as V } from "./utils/use-motion-ref.js";
14
- import { useVisualElement as z } from "./utils/use-visual-element.js";
15
- function Q({ preloadedFeatures: o, createVisualElement: e, useRender: t, useVisualState: n, Component: r }) {
16
- var m, u;
17
- o && R(o);
18
- function d(a, E) {
19
- let l;
20
- const s = {
21
- ...c(L),
22
- ...a,
23
- layoutId: D(a)
24
- }, { isStatic: f } = s, i = h(a), p = n(a, f);
25
- if (!f && w) {
26
- I(s, o);
27
- const y = k(s);
28
- l = y.MeasureLayout, i.visualElement = z(r, p, s, e, y.ProjectionNode);
29
- }
30
- return C.jsxs(b.Provider, { value: i, children: [l && i.visualElement ? C.jsx(l, { visualElement: i.visualElement, ...s }) : null, t(r, a, V(p, i.visualElement, E), p, f, i.visualElement)] });
31
- }
32
- d.displayName = `motion.${typeof r == "string" ? r : `create(${(u = (m = r.displayName) !== null && m !== void 0 ? m : r.name) !== null && u !== void 0 ? u : ""})`}`;
33
- const v = N(d);
34
- return v[S] = r, v;
35
- }
36
- function D({ layoutId: o }) {
37
- const e = c(g).id;
38
- return e && o !== void 0 ? e + "-" + o : o;
39
- }
40
- function I(o, e) {
41
- const t = c(j).strict;
42
- if (process.env.NODE_ENV !== "production" && e && t) {
43
- const n = "You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";
44
- o.ignoreStrict ? x(!1, n) : M(!1, n);
45
- }
46
- }
47
- function k(o) {
48
- const { drag: e, layout: t } = P;
49
- if (!e && !t)
50
- return {};
51
- const n = { ...e, ...t };
52
- return {
53
- MeasureLayout: e != null && e.isEnabled(o) || t != null && t.isEnabled(o) ? n.MeasureLayout : void 0,
54
- ProjectionNode: n.ProjectionNode
55
- };
56
- }
57
- export {
58
- Q as createRendererMotionComponent
59
- };
@@ -1,8 +0,0 @@
1
- import { scaleCorrectors as a } from "../../projection/styles/scale-correction.js";
2
- import { transformProps as s } from "../../render/html/utils/keys-transform.js";
3
- function c(o, { layout: t, layoutId: r }) {
4
- return s.has(o) || o.startsWith("origin") || (t || r !== void 0) && (!!a[o] || o === "opacity");
5
- }
6
- export {
7
- c as isForcedMotionValue
8
- };
@@ -1,4 +0,0 @@
1
- const o = Symbol.for("motionComponentSymbol");
2
- export {
3
- o as motionComponentSymbol
4
- };
@@ -1,18 +0,0 @@
1
- import { useCallback as r } from "react";
2
- import { isRefObject as u } from "../../utils/is-ref-object.js";
3
- function c(e, o, t) {
4
- return r(
5
- (n) => {
6
- n && e.onMount && e.onMount(n), o && (n ? o.mount(n) : o.unmount()), t && (typeof t == "function" ? t(n) : u(t) && (t.current = n));
7
- },
8
- /**
9
- * Only pass a new ref callback to React if we've received a visual element
10
- * factory. Otherwise we'll be mounting/remounting every time externalRef
11
- * or other dependencies change.
12
- */
13
- [o]
14
- );
15
- }
16
- export {
17
- c as useMotionRef
18
- };
@@ -1,65 +0,0 @@
1
- import "../../../../../motion-utils/dist/es/errors.js";
2
- import { microtask as x } from "../../../../../motion-dom/dist/es/frameloop/microtask.js";
3
- import { useContext as s, useRef as y, useInsertionEffect as S, useEffect as I } from "react";
4
- import { optimizedAppearDataAttribute as h } from "../../animation/optimized-appear/data-id.js";
5
- import { LazyContext as j } from "../../context/LazyContext.js";
6
- import { MotionConfigContext as E } from "../../context/MotionConfigContext.js";
7
- import { MotionContext as A } from "../../context/MotionContext/index.js";
8
- import { PresenceContext as b } from "../../context/PresenceContext.js";
9
- import { SwitchLayoutGroupContext as k } from "../../context/SwitchLayoutGroupContext.js";
10
- import { isRefObject as L } from "../../utils/is-ref-object.js";
11
- import { useIsomorphicLayoutEffect as R } from "../../utils/use-isomorphic-effect.js";
12
- function B(o, l, n, a, u) {
13
- var e, i;
14
- const { visualElement: m } = s(A), d = s(j), r = s(b), v = s(E).reducedMotion, c = y(null);
15
- a = a || d.renderer, !c.current && a && (c.current = a(o, {
16
- visualState: l,
17
- parent: m,
18
- props: n,
19
- presenceContext: r,
20
- blockInitialAnimation: r ? r.initial === !1 : !1,
21
- reducedMotionConfig: v
22
- }));
23
- const t = c.current, g = s(k);
24
- t && !t.projection && u && (t.type === "html" || t.type === "svg") && $(c.current, n, u, g);
25
- const C = y(!1);
26
- S(() => {
27
- t && C.current && t.update(n, r);
28
- });
29
- const p = n[h], f = y(!!p && !(!((e = window.MotionHandoffIsComplete) === null || e === void 0) && e.call(window, p)) && ((i = window.MotionHasOptimisedAnimation) === null || i === void 0 ? void 0 : i.call(window, p)));
30
- return R(() => {
31
- t && (C.current = !0, window.MotionIsMounted = !0, t.updateFeatures(), x.render(t.render), f.current && t.animationState && t.animationState.animateChanges());
32
- }), I(() => {
33
- t && (!f.current && t.animationState && t.animationState.animateChanges(), f.current && (queueMicrotask(() => {
34
- var w;
35
- (w = window.MotionHandoffMarkAsComplete) === null || w === void 0 || w.call(window, p);
36
- }), f.current = !1));
37
- }), t;
38
- }
39
- function $(o, l, n, a) {
40
- const { layoutId: u, layout: e, drag: i, dragConstraints: m, layoutScroll: d, layoutRoot: r } = l;
41
- o.projection = new n(o.latestValues, l["data-framer-portal-id"] ? void 0 : M(o.parent)), o.projection.setOptions({
42
- layoutId: u,
43
- layout: e,
44
- alwaysMeasureLayout: !!i || m && L(m),
45
- visualElement: o,
46
- /**
47
- * TODO: Update options in an effect. This could be tricky as it'll be too late
48
- * to update by the time layout animations run.
49
- * We also need to fix this safeToRemove by linking it up to the one returned by usePresence,
50
- * ensuring it gets called if there's no potential layout animations.
51
- *
52
- */
53
- animationType: typeof e == "string" ? e : "both",
54
- initialPromotionConfig: a,
55
- layoutScroll: d,
56
- layoutRoot: r
57
- });
58
- }
59
- function M(o) {
60
- if (o)
61
- return o.options.allowProjection !== !1 ? o.projection : M(o.parent);
62
- }
63
- export {
64
- B as useVisualElement
65
- };
@@ -1,53 +0,0 @@
1
- import { useContext as A } from "react";
2
- import { isAnimationControls as x } from "../../animation/utils/is-animation-controls.js";
3
- import { MotionContext as M } from "../../context/MotionContext/index.js";
4
- import { PresenceContext as $ } from "../../context/PresenceContext.js";
5
- import { isControllingVariants as h, isVariantNode as P } from "../../render/utils/is-controlling-variants.js";
6
- import { resolveVariantFromProps as S } from "../../render/utils/resolve-variants.js";
7
- import { useConstant as U } from "../../utils/use-constant.js";
8
- import { resolveMotionValue as b } from "../../value/utils/resolve-motion-value.js";
9
- function k({ scrapeMotionValuesFromProps: o, createRenderState: a, onUpdate: n }, i, r, e) {
10
- const t = {
11
- latestValues: E(i, r, e, o),
12
- renderState: a()
13
- };
14
- return n && (t.onMount = (s) => n({ props: i, current: s, ...t }), t.onUpdate = (s) => n(s)), t;
15
- }
16
- const D = (o) => (a, n) => {
17
- const i = A(M), r = A($), e = () => k(o, a, i, r);
18
- return n ? e() : U(e);
19
- };
20
- function E(o, a, n, i) {
21
- const r = {}, e = i(o, {});
22
- for (const m in e)
23
- r[m] = b(e[m]);
24
- let { initial: t, animate: s } = o;
25
- const C = h(o), v = P(o);
26
- a && v && !C && o.inherit !== !1 && (t === void 0 && (t = a.initial), s === void 0 && (s = a.animate));
27
- let p = n ? n.initial === !1 : !1;
28
- p = p || t === !1;
29
- const l = p ? s : t;
30
- if (l && typeof l != "boolean" && !x(l)) {
31
- const m = Array.isArray(l) ? l : [l];
32
- for (let u = 0; u < m.length; u++) {
33
- const d = S(o, m[u]);
34
- if (d) {
35
- const { transitionEnd: V, transition: F, ...y } = d;
36
- for (const c in y) {
37
- let f = y[c];
38
- if (Array.isArray(f)) {
39
- const g = p ? f.length - 1 : 0;
40
- f = f[g];
41
- }
42
- f !== null && (r[c] = f);
43
- }
44
- for (const c in V)
45
- r[c] = V[c];
46
- }
47
- }
48
- }
49
- return r;
50
- }
51
- export {
52
- D as makeUseVisualState
53
- };
@@ -1,38 +0,0 @@
1
- const a = /* @__PURE__ */ new Set([
2
- "animate",
3
- "exit",
4
- "variants",
5
- "initial",
6
- "style",
7
- "values",
8
- "variants",
9
- "transition",
10
- "transformTemplate",
11
- "custom",
12
- "inherit",
13
- "onBeforeLayoutMeasure",
14
- "onAnimationStart",
15
- "onAnimationComplete",
16
- "onUpdate",
17
- "onDragStart",
18
- "onDrag",
19
- "onDragEnd",
20
- "onMeasureDragConstraints",
21
- "onDirectionLock",
22
- "onDragTransitionEnd",
23
- "_dragX",
24
- "_dragY",
25
- "onHoverStart",
26
- "onHoverEnd",
27
- "onViewportEnter",
28
- "onViewportLeave",
29
- "globalTapTarget",
30
- "ignoreStrict",
31
- "viewport"
32
- ]);
33
- function n(t) {
34
- return t.startsWith("while") || t.startsWith("drag") && t !== "draggable" || t.startsWith("layout") || t.startsWith("onTap") || t.startsWith("onPan") || t.startsWith("onLayout") || a.has(t);
35
- }
36
- export {
37
- n as isValidMotionProp
38
- };
@@ -1,31 +0,0 @@
1
- import "../../../../../motion-utils/dist/es/errors.js";
2
- import { noop as g } from "../../../../../motion-utils/dist/es/noop.js";
3
- import { progress as l } from "../../../../../motion-utils/dist/es/progress.js";
4
- import { circOut as b } from "../../easing/circ.js";
5
- import { mixNumber as c } from "../../utils/mix/number.js";
6
- import { px as h, percent as m } from "../../value/types/numbers/units.js";
7
- const u = ["TopLeft", "TopRight", "BottomLeft", "BottomRight"], R = u.length, n = (o) => typeof o == "string" ? parseFloat(o) : o, f = (o) => typeof o == "number" || h.test(o);
8
- function N(o, t, r, a, v, x) {
9
- v ? (o.opacity = c(
10
- 0,
11
- // TODO Reinstate this if only child
12
- r.opacity !== void 0 ? r.opacity : 1,
13
- B(a)
14
- ), o.opacityExit = c(t.opacity !== void 0 ? t.opacity : 1, 0, L(a))) : x && (o.opacity = c(t.opacity !== void 0 ? t.opacity : 1, r.opacity !== void 0 ? r.opacity : 1, a));
15
- for (let s = 0; s < R; s++) {
16
- const p = `border${u[s]}Radius`;
17
- let e = y(t, p), i = y(r, p);
18
- e === void 0 && i === void 0 || (e || (e = 0), i || (i = 0), e === 0 || i === 0 || f(e) === f(i) ? (o[p] = Math.max(c(n(e), n(i), a), 0), (m.test(i) || m.test(e)) && (o[p] += "%")) : o[p] = i);
19
- }
20
- (t.rotate || r.rotate) && (o.rotate = c(t.rotate || 0, r.rotate || 0, a));
21
- }
22
- function y(o, t) {
23
- return o[t] !== void 0 ? o[t] : o.borderRadius;
24
- }
25
- const B = /* @__PURE__ */ d(0, 0.5, b), L = /* @__PURE__ */ d(0.5, 0.95, g);
26
- function d(o, t, r) {
27
- return (a) => a < o ? 0 : a > t ? 1 : r(l(o, t, a));
28
- }
29
- export {
30
- N as mixValues
31
- };
@@ -1,25 +0,0 @@
1
- function x({ top: t, left: o, right: n, bottom: r }) {
2
- return {
3
- x: { min: o, max: n },
4
- y: { min: t, max: r }
5
- };
6
- }
7
- function i({ x: t, y: o }) {
8
- return { top: o.min, right: t.max, bottom: o.max, left: t.min };
9
- }
10
- function m(t, o) {
11
- if (!o)
12
- return t;
13
- const n = o({ x: t.left, y: t.top }), r = o({ x: t.right, y: t.bottom });
14
- return {
15
- top: n.y,
16
- left: n.x,
17
- bottom: r.y,
18
- right: r.x
19
- };
20
- }
21
- export {
22
- x as convertBoundingBoxToBox,
23
- i as convertBoxToBoundingBox,
24
- m as transformBoxPoints
25
- };
@@ -1,14 +0,0 @@
1
- function n(i, t) {
2
- i.min = t.min, i.max = t.max;
3
- }
4
- function a(i, t) {
5
- n(i.x, t.x), n(i.y, t.y);
6
- }
7
- function o(i, t) {
8
- i.translate = t.translate, i.scale = t.scale, i.originPoint = t.originPoint, i.origin = t.origin;
9
- }
10
- export {
11
- o as copyAxisDeltaInto,
12
- n as copyAxisInto,
13
- a as copyBoxInto
14
- };
@@ -1,52 +0,0 @@
1
- import { mixNumber as D } from "../../utils/mix/number.js";
2
- import { hasTransform as g } from "../utils/has-transform.js";
3
- function x(a, s, o) {
4
- const e = a - o, t = s * e;
5
- return o + t;
6
- }
7
- function f(a, s, o, e, t) {
8
- return t !== void 0 && (a = x(a, t, e)), x(a, o, e) + s;
9
- }
10
- function c(a, s = 0, o = 1, e, t) {
11
- a.min = f(a.min, s, o, e, t), a.max = f(a.max, s, o, e, t);
12
- }
13
- function A(a, { x: s, y: o }) {
14
- c(a.x, s.translate, s.scale, s.originPoint), c(a.y, o.translate, o.scale, o.originPoint);
15
- }
16
- const m = 0.999999999999, y = 1.0000000000001;
17
- function h(a, s, o, e = !1) {
18
- const t = o.length;
19
- if (!t)
20
- return;
21
- s.x = s.y = 1;
22
- let l, i;
23
- for (let r = 0; r < t; r++) {
24
- l = o[r], i = l.projectionDelta;
25
- const { visualElement: n } = l.options;
26
- n && n.props.style && n.props.style.display === "contents" || (e && l.options.layoutScroll && l.scroll && l !== l.root && u(a, {
27
- x: -l.scroll.offset.x,
28
- y: -l.scroll.offset.y
29
- }), i && (s.x *= i.x.scale, s.y *= i.y.scale, A(a, i)), e && g(l.latestValues) && u(a, l.latestValues));
30
- }
31
- s.x < y && s.x > m && (s.x = 1), s.y < y && s.y > m && (s.y = 1);
32
- }
33
- function v(a, s) {
34
- a.min = a.min + s, a.max = a.max + s;
35
- }
36
- function p(a, s, o, e, t = 0.5) {
37
- const l = D(a.min, a.max, t);
38
- c(a, s, o, l, e);
39
- }
40
- function u(a, s) {
41
- p(a.x, s.x, s.scaleX, s.scale, s.originX), p(a.y, s.y, s.scaleY, s.scale, s.originY);
42
- }
43
- export {
44
- c as applyAxisDelta,
45
- A as applyBoxDelta,
46
- f as applyPointDelta,
47
- h as applyTreeDeltas,
48
- x as scalePoint,
49
- p as transformAxis,
50
- u as transformBox,
51
- v as translateAxis
52
- };
@@ -1,36 +0,0 @@
1
- import { mixNumber as n } from "../../utils/mix/number.js";
2
- const x = 1e-4, m = 1 - x, u = 1 + x, r = 0.01, f = 0 - r, y = 0 + r;
3
- function e(a) {
4
- return a.max - a.min;
5
- }
6
- function N(a, i, t) {
7
- return Math.abs(a - i) <= t;
8
- }
9
- function o(a, i, t, s = 0.5) {
10
- a.origin = s, a.originPoint = n(i.min, i.max, a.origin), a.scale = e(t) / e(i), a.translate = n(t.min, t.max, a.origin) - a.originPoint, (a.scale >= m && a.scale <= u || isNaN(a.scale)) && (a.scale = 1), (a.translate >= f && a.translate <= y || isNaN(a.translate)) && (a.translate = 0);
11
- }
12
- function v(a, i, t, s) {
13
- o(a.x, i.x, t.x, s ? s.originX : void 0), o(a.y, i.y, t.y, s ? s.originY : void 0);
14
- }
15
- function c(a, i, t) {
16
- a.min = t.min + i.min, a.max = a.min + e(i);
17
- }
18
- function P(a, i, t) {
19
- c(a.x, i.x, t.x), c(a.y, i.y, t.y);
20
- }
21
- function l(a, i, t) {
22
- a.min = i.min - t.min, a.max = a.min + e(i);
23
- }
24
- function R(a, i, t) {
25
- l(a.x, i.x, t.x), l(a.y, i.y, t.y);
26
- }
27
- export {
28
- o as calcAxisDelta,
29
- v as calcBoxDelta,
30
- e as calcLength,
31
- c as calcRelativeAxis,
32
- l as calcRelativeAxisPosition,
33
- P as calcRelativeBox,
34
- R as calcRelativePosition,
35
- N as isNear
36
- };
@@ -1,25 +0,0 @@
1
- import { mixNumber as x } from "../../utils/mix/number.js";
2
- import { percent as l } from "../../value/types/numbers/units.js";
3
- import { scalePoint as m } from "./delta-apply.js";
4
- function c(o, i, r, a, n) {
5
- return o -= i, o = m(o, 1 / r, a), n !== void 0 && (o = m(o, 1 / n, a)), o;
6
- }
7
- function f(o, i = 0, r = 1, a = 0.5, n, t = o, s = o) {
8
- if (l.test(i) && (i = parseFloat(i), i = x(s.min, s.max, i / 100) - s.min), typeof i != "number")
9
- return;
10
- let e = x(t.min, t.max, a);
11
- o === t && (e -= i), o.min = c(o.min, i, r, e, n), o.max = c(o.max, i, r, e, n);
12
- }
13
- function v(o, i, [r, a, n], t, s) {
14
- f(o, i[r], i[a], i[n], i.scale, t, s);
15
- }
16
- const p = ["x", "scaleX", "originX"], u = ["y", "scaleY", "originY"];
17
- function P(o, i, r, a) {
18
- v(o.x, i, p, r ? r.x : void 0, a ? a.x : void 0), v(o.y, i, u, r ? r.y : void 0, a ? a.y : void 0);
19
- }
20
- export {
21
- f as removeAxisDelta,
22
- v as removeAxisTransforms,
23
- P as removeBoxTransforms,
24
- c as removePointDelta
25
- };
@@ -1,18 +0,0 @@
1
- const a = () => ({
2
- translate: 0,
3
- scale: 1,
4
- origin: 0,
5
- originPoint: 0
6
- }), t = () => ({
7
- x: a(),
8
- y: a()
9
- }), e = () => ({ min: 0, max: 0 }), s = () => ({
10
- x: e(),
11
- y: e()
12
- });
13
- export {
14
- e as createAxis,
15
- a as createAxisDelta,
16
- s as createBox,
17
- t as createDelta
18
- };