lawgic-dev-kit 0.12.4 → 0.12.8

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 (354) hide show
  1. package/dist/_virtual/client.js +3 -22
  2. package/dist/_virtual/index2.js +3 -2
  3. package/dist/_virtual/index3.js +3 -3
  4. package/dist/_virtual/index4.js +5 -3
  5. package/dist/_virtual/index5.js +2 -5
  6. package/dist/_virtual/index7.js +2 -2
  7. package/dist/_virtual/index8.js +2 -2
  8. package/dist/components/atoms/Avatar/Avatar.js +71 -30
  9. package/dist/components/atoms/UploadContainer/UploadContainer.js +88 -47
  10. package/dist/components/molecules/AlertModal/AlertModal.js +67 -26
  11. package/dist/components/molecules/CalendarSelector/CalendarSelector.js +205 -145
  12. package/dist/components/molecules/DateInput/DateInput.d.ts +2 -2
  13. package/dist/components/molecules/DateInput/DateInput.js +63 -50
  14. package/dist/components/molecules/DialogModal/DialogModal.js +78 -37
  15. package/dist/components/molecules/FloatingMenu/FloatingMenu.js +74 -33
  16. package/dist/components/molecules/Tabs/Tabs.js +82 -41
  17. package/dist/dist/_virtual/_commonjsHelpers.js +8 -0
  18. package/dist/dist/_virtual/index.js +7 -0
  19. package/dist/dist/_virtual/index3.js +5 -0
  20. package/dist/dist/_virtual/index4.js +5 -0
  21. package/dist/dist/_virtual/index5.js +7 -0
  22. package/dist/dist/_virtual/index6.js +4 -0
  23. package/dist/dist/_virtual/index7.js +4 -0
  24. package/dist/dist/_virtual/index8.js +4 -0
  25. package/dist/dist/_virtual/jsx-runtime.js +5 -0
  26. package/dist/dist/_virtual/jsx-runtime2.js +4 -0
  27. package/dist/dist/_virtual/lodash.js +2 -0
  28. package/dist/dist/_virtual/lodash2.js +4 -0
  29. package/dist/dist/_virtual/react-is.development.js +4 -0
  30. package/dist/dist/_virtual/react-is.production.min.js +4 -0
  31. package/dist/dist/_virtual/react-jsx-runtime.development.js +4 -0
  32. package/dist/dist/_virtual/react-jsx-runtime.production.js +4 -0
  33. package/dist/dist/components/atoms/AsyncToast/index.js +33 -0
  34. package/dist/dist/components/atoms/ImageProfileInput/ImageProfileInput.validators.js +5 -0
  35. package/dist/dist/components/atoms/Toast/Toast.js +113 -0
  36. package/dist/dist/constants/countries.js +8 -0
  37. package/dist/dist/contexts/themeContext.js +3 -0
  38. package/dist/dist/node_modules/@floating-ui/react/dist/floating-ui.react.js +4 -0
  39. package/dist/dist/node_modules/@fortawesome/fontawesome-svg-core/index.js +2661 -0
  40. package/dist/dist/node_modules/@fortawesome/pro-light-svg-icons/index.js +33 -0
  41. package/dist/dist/node_modules/@fortawesome/react-fontawesome/index.es.js +266 -0
  42. package/dist/dist/node_modules/framer-motion/dist/es/animation/animate/single-value.js +11 -0
  43. package/dist/dist/node_modules/framer-motion/dist/es/animation/animators/AcceleratedAnimation.js +205 -0
  44. package/dist/dist/node_modules/framer-motion/dist/es/animation/animators/BaseAnimation.js +83 -0
  45. package/dist/dist/node_modules/framer-motion/dist/es/animation/animators/MainThreadAnimation.js +147 -0
  46. package/dist/dist/node_modules/framer-motion/dist/es/animation/animators/drivers/driver-frameloop.js +18 -0
  47. package/dist/dist/node_modules/framer-motion/dist/es/animation/animators/utils/accelerated-values.js +12 -0
  48. package/dist/dist/node_modules/framer-motion/dist/es/animation/animators/utils/can-animate.js +23 -0
  49. package/dist/dist/node_modules/framer-motion/dist/es/animation/animators/waapi/index.js +18 -0
  50. package/dist/dist/node_modules/framer-motion/dist/es/animation/animators/waapi/utils/get-final-keyframe.js +8 -0
  51. package/dist/dist/node_modules/framer-motion/dist/es/animation/animators/waapi/utils/supports-waapi.js +6 -0
  52. package/dist/dist/node_modules/framer-motion/dist/es/animation/generators/inertia.js +37 -0
  53. package/dist/dist/node_modules/framer-motion/dist/es/animation/generators/keyframes.js +30 -0
  54. package/dist/dist/node_modules/framer-motion/dist/es/animation/generators/spring/defaults.js +32 -0
  55. package/dist/dist/node_modules/framer-motion/dist/es/animation/generators/spring/find.js +52 -0
  56. package/dist/dist/node_modules/framer-motion/dist/es/animation/generators/spring/index.js +92 -0
  57. package/dist/dist/node_modules/framer-motion/dist/es/animation/generators/utils/velocity.js +10 -0
  58. package/dist/dist/node_modules/framer-motion/dist/es/animation/interfaces/motion-value.js +47 -0
  59. package/dist/dist/node_modules/framer-motion/dist/es/animation/interfaces/visual-element-target.js +46 -0
  60. package/dist/dist/node_modules/framer-motion/dist/es/animation/interfaces/visual-element-variant.js +33 -0
  61. package/dist/dist/node_modules/framer-motion/dist/es/animation/interfaces/visual-element.js +22 -0
  62. package/dist/dist/node_modules/framer-motion/dist/es/animation/optimized-appear/data-id.js +6 -0
  63. package/dist/dist/node_modules/framer-motion/dist/es/animation/optimized-appear/get-appear-id.js +7 -0
  64. package/dist/dist/node_modules/framer-motion/dist/es/animation/utils/default-transitions.js +22 -0
  65. package/dist/dist/node_modules/framer-motion/dist/es/animation/utils/is-animatable.js +7 -0
  66. package/dist/dist/node_modules/framer-motion/dist/es/animation/utils/is-animation-controls.js +6 -0
  67. package/dist/dist/node_modules/framer-motion/dist/es/animation/utils/is-keyframes-target.js +4 -0
  68. package/dist/dist/node_modules/framer-motion/dist/es/animation/utils/is-none.js +7 -0
  69. package/dist/dist/node_modules/framer-motion/dist/es/animation/utils/is-transition-defined.js +6 -0
  70. package/dist/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PopChild.js +53 -0
  71. package/dist/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PresenceChild.js +41 -0
  72. package/dist/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/index.js +45 -0
  73. package/dist/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/use-presence.js +17 -0
  74. package/dist/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/utils.js +12 -0
  75. package/dist/dist/node_modules/framer-motion/dist/es/context/LayoutGroupContext.js +5 -0
  76. package/dist/dist/node_modules/framer-motion/dist/es/context/LazyContext.js +5 -0
  77. package/dist/dist/node_modules/framer-motion/dist/es/context/MotionConfigContext.js +9 -0
  78. package/dist/dist/node_modules/framer-motion/dist/es/context/MotionContext/create.js +13 -0
  79. package/dist/dist/node_modules/framer-motion/dist/es/context/MotionContext/index.js +5 -0
  80. package/dist/dist/node_modules/framer-motion/dist/es/context/MotionContext/utils.js +15 -0
  81. package/dist/dist/node_modules/framer-motion/dist/es/context/PresenceContext.js +5 -0
  82. package/dist/dist/node_modules/framer-motion/dist/es/context/SwitchLayoutGroupContext.js +5 -0
  83. package/dist/dist/node_modules/framer-motion/dist/es/easing/anticipate.js +5 -0
  84. package/dist/dist/node_modules/framer-motion/dist/es/easing/back.js +9 -0
  85. package/dist/dist/node_modules/framer-motion/dist/es/easing/circ.js +8 -0
  86. package/dist/dist/node_modules/framer-motion/dist/es/easing/cubic-bezier.js +19 -0
  87. package/dist/dist/node_modules/framer-motion/dist/es/easing/ease.js +7 -0
  88. package/dist/dist/node_modules/framer-motion/dist/es/easing/modifiers/mirror.js +4 -0
  89. package/dist/dist/node_modules/framer-motion/dist/es/easing/modifiers/reverse.js +4 -0
  90. package/dist/dist/node_modules/framer-motion/dist/es/easing/utils/is-easing-array.js +4 -0
  91. package/dist/dist/node_modules/framer-motion/dist/es/easing/utils/map.js +32 -0
  92. package/dist/dist/node_modules/framer-motion/dist/es/events/add-dom-event.js +6 -0
  93. package/dist/dist/node_modules/framer-motion/dist/es/events/add-pointer-event.js +8 -0
  94. package/dist/dist/node_modules/framer-motion/dist/es/events/event-info.js +15 -0
  95. package/dist/dist/node_modules/framer-motion/dist/es/gestures/drag/VisualElementDragControls.js +256 -0
  96. package/dist/dist/node_modules/framer-motion/dist/es/gestures/drag/index.js +19 -0
  97. package/dist/dist/node_modules/framer-motion/dist/es/gestures/drag/utils/constraints.js +68 -0
  98. package/dist/dist/node_modules/framer-motion/dist/es/gestures/focus.js +28 -0
  99. package/dist/dist/node_modules/framer-motion/dist/es/gestures/hover.js +22 -0
  100. package/dist/dist/node_modules/framer-motion/dist/es/gestures/pan/PanSession.js +85 -0
  101. package/dist/dist/node_modules/framer-motion/dist/es/gestures/pan/index.js +44 -0
  102. package/dist/dist/node_modules/framer-motion/dist/es/gestures/press.js +24 -0
  103. package/dist/dist/node_modules/framer-motion/dist/es/motion/features/Feature.js +10 -0
  104. package/dist/dist/node_modules/framer-motion/dist/es/motion/features/animation/exit.js +27 -0
  105. package/dist/dist/node_modules/framer-motion/dist/es/motion/features/animation/index.js +34 -0
  106. package/dist/dist/node_modules/framer-motion/dist/es/motion/features/animations.js +13 -0
  107. package/dist/dist/node_modules/framer-motion/dist/es/motion/features/definitions.js +27 -0
  108. package/dist/dist/node_modules/framer-motion/dist/es/motion/features/drag.js +17 -0
  109. package/dist/dist/node_modules/framer-motion/dist/es/motion/features/gestures.js +21 -0
  110. package/dist/dist/node_modules/framer-motion/dist/es/motion/features/layout/MeasureLayout.js +75 -0
  111. package/dist/dist/node_modules/framer-motion/dist/es/motion/features/layout.js +11 -0
  112. package/dist/dist/node_modules/framer-motion/dist/es/motion/features/load-features.js +11 -0
  113. package/dist/dist/node_modules/framer-motion/dist/es/motion/features/viewport/index.js +44 -0
  114. package/dist/dist/node_modules/framer-motion/dist/es/motion/features/viewport/observers.js +21 -0
  115. package/dist/dist/node_modules/framer-motion/dist/es/motion/index.js +59 -0
  116. package/dist/dist/node_modules/framer-motion/dist/es/motion/utils/is-forced-motion-value.js +8 -0
  117. package/dist/dist/node_modules/framer-motion/dist/es/motion/utils/symbol.js +4 -0
  118. package/dist/dist/node_modules/framer-motion/dist/es/motion/utils/use-motion-ref.js +18 -0
  119. package/dist/dist/node_modules/framer-motion/dist/es/motion/utils/use-visual-element.js +65 -0
  120. package/dist/dist/node_modules/framer-motion/dist/es/motion/utils/use-visual-state.js +53 -0
  121. package/dist/dist/node_modules/framer-motion/dist/es/motion/utils/valid-prop.js +38 -0
  122. package/dist/dist/node_modules/framer-motion/dist/es/projection/animation/mix-values.js +31 -0
  123. package/dist/dist/node_modules/framer-motion/dist/es/projection/geometry/conversion.js +25 -0
  124. package/dist/dist/node_modules/framer-motion/dist/es/projection/geometry/copy.js +14 -0
  125. package/dist/dist/node_modules/framer-motion/dist/es/projection/geometry/delta-apply.js +52 -0
  126. package/dist/dist/node_modules/framer-motion/dist/es/projection/geometry/delta-calc.js +36 -0
  127. package/dist/dist/node_modules/framer-motion/dist/es/projection/geometry/delta-remove.js +25 -0
  128. package/dist/dist/node_modules/framer-motion/dist/es/projection/geometry/models.js +18 -0
  129. package/dist/dist/node_modules/framer-motion/dist/es/projection/geometry/utils.js +34 -0
  130. package/dist/dist/node_modules/framer-motion/dist/es/projection/node/DocumentProjectionNode.js +13 -0
  131. package/dist/dist/node_modules/framer-motion/dist/es/projection/node/HTMLProjectionNode.js +25 -0
  132. package/dist/dist/node_modules/framer-motion/dist/es/projection/node/create-projection-node.js +608 -0
  133. package/dist/dist/node_modules/framer-motion/dist/es/projection/node/state.js +15 -0
  134. package/dist/dist/node_modules/framer-motion/dist/es/projection/shared/stack.js +59 -0
  135. package/dist/dist/node_modules/framer-motion/dist/es/projection/styles/scale-border-radius.js +21 -0
  136. package/dist/dist/node_modules/framer-motion/dist/es/projection/styles/scale-box-shadow.js +16 -0
  137. package/dist/dist/node_modules/framer-motion/dist/es/projection/styles/scale-correction.js +10 -0
  138. package/dist/dist/node_modules/framer-motion/dist/es/projection/styles/transform.js +13 -0
  139. package/dist/dist/node_modules/framer-motion/dist/es/projection/utils/each-axis.js +6 -0
  140. package/dist/dist/node_modules/framer-motion/dist/es/projection/utils/has-transform.js +20 -0
  141. package/dist/dist/node_modules/framer-motion/dist/es/projection/utils/measure.js +13 -0
  142. package/dist/dist/node_modules/framer-motion/dist/es/render/VisualElement.js +229 -0
  143. package/dist/dist/node_modules/framer-motion/dist/es/render/components/create-factory.js +20 -0
  144. package/dist/dist/node_modules/framer-motion/dist/es/render/components/create-proxy.js +18 -0
  145. package/dist/dist/node_modules/framer-motion/dist/es/render/components/motion/create.js +15 -0
  146. package/dist/dist/node_modules/framer-motion/dist/es/render/components/motion/proxy.js +6 -0
  147. package/dist/dist/node_modules/framer-motion/dist/es/render/dom/DOMKeyframesResolver.js +66 -0
  148. package/dist/dist/node_modules/framer-motion/dist/es/render/dom/DOMVisualElement.js +27 -0
  149. package/dist/dist/node_modules/framer-motion/dist/es/render/dom/create-visual-element.js +10 -0
  150. package/dist/dist/node_modules/framer-motion/dist/es/render/dom/use-render.js +18 -0
  151. package/dist/dist/node_modules/framer-motion/dist/es/render/dom/utils/camel-to-dash.js +4 -0
  152. package/dist/dist/node_modules/framer-motion/dist/es/render/dom/utils/css-variables-conversion.js +31 -0
  153. package/dist/dist/node_modules/framer-motion/dist/es/render/dom/utils/filter-props.js +20 -0
  154. package/dist/dist/node_modules/framer-motion/dist/es/render/dom/utils/is-css-variable.js +5 -0
  155. package/dist/dist/node_modules/framer-motion/dist/es/render/dom/utils/is-svg-component.js +24 -0
  156. package/dist/dist/node_modules/framer-motion/dist/es/render/dom/utils/is-svg-element.js +6 -0
  157. package/dist/dist/node_modules/framer-motion/dist/es/render/dom/utils/unit-conversion.js +31 -0
  158. package/dist/dist/node_modules/framer-motion/dist/es/render/dom/value-types/animatable-none.js +10 -0
  159. package/dist/dist/node_modules/framer-motion/dist/es/render/dom/value-types/defaults.js +24 -0
  160. package/dist/dist/node_modules/framer-motion/dist/es/render/dom/value-types/dimensions.js +9 -0
  161. package/dist/dist/node_modules/framer-motion/dist/es/render/dom/value-types/find.js +8 -0
  162. package/dist/dist/node_modules/framer-motion/dist/es/render/dom/value-types/get-as-type.js +4 -0
  163. package/dist/dist/node_modules/framer-motion/dist/es/render/dom/value-types/number-browser.js +41 -0
  164. package/dist/dist/node_modules/framer-motion/dist/es/render/dom/value-types/number.js +18 -0
  165. package/dist/dist/node_modules/framer-motion/dist/es/render/dom/value-types/test.js +4 -0
  166. package/dist/dist/node_modules/framer-motion/dist/es/render/dom/value-types/transform.js +31 -0
  167. package/dist/dist/node_modules/framer-motion/dist/es/render/dom/value-types/type-auto.js +7 -0
  168. package/dist/dist/node_modules/framer-motion/dist/es/render/dom/value-types/type-int.js +8 -0
  169. package/dist/dist/node_modules/framer-motion/dist/es/render/html/HTMLVisualElement.js +37 -0
  170. package/dist/dist/node_modules/framer-motion/dist/es/render/html/config-motion.js +12 -0
  171. package/dist/dist/node_modules/framer-motion/dist/es/render/html/use-props.js +27 -0
  172. package/dist/dist/node_modules/framer-motion/dist/es/render/html/utils/build-styles.js +29 -0
  173. package/dist/dist/node_modules/framer-motion/dist/es/render/html/utils/build-transform.js +31 -0
  174. package/dist/dist/node_modules/framer-motion/dist/es/render/html/utils/create-render-state.js +9 -0
  175. package/dist/dist/node_modules/framer-motion/dist/es/render/html/utils/keys-position.js +13 -0
  176. package/dist/dist/node_modules/framer-motion/dist/es/render/html/utils/keys-transform.js +23 -0
  177. package/dist/dist/node_modules/framer-motion/dist/es/render/html/utils/make-none-animatable.js +16 -0
  178. package/dist/dist/node_modules/framer-motion/dist/es/render/html/utils/parse-transform.js +64 -0
  179. package/dist/dist/node_modules/framer-motion/dist/es/render/html/utils/render.js +8 -0
  180. package/dist/dist/node_modules/framer-motion/dist/es/render/html/utils/scrape-motion-values.js +12 -0
  181. package/dist/dist/node_modules/framer-motion/dist/es/render/store.js +4 -0
  182. package/dist/dist/node_modules/framer-motion/dist/es/render/svg/SVGVisualElement.js +48 -0
  183. package/dist/dist/node_modules/framer-motion/dist/es/render/svg/config-motion.js +44 -0
  184. package/dist/dist/node_modules/framer-motion/dist/es/render/svg/lowercase-elements.js +30 -0
  185. package/dist/dist/node_modules/framer-motion/dist/es/render/svg/use-props.js +22 -0
  186. package/dist/dist/node_modules/framer-motion/dist/es/render/svg/utils/build-attrs.js +26 -0
  187. package/dist/dist/node_modules/framer-motion/dist/es/render/svg/utils/camel-case-attrs.js +28 -0
  188. package/dist/dist/node_modules/framer-motion/dist/es/render/svg/utils/create-render-state.js +8 -0
  189. package/dist/dist/node_modules/framer-motion/dist/es/render/svg/utils/is-svg-tag.js +4 -0
  190. package/dist/dist/node_modules/framer-motion/dist/es/render/svg/utils/measure.js +15 -0
  191. package/dist/dist/node_modules/framer-motion/dist/es/render/svg/utils/path.js +18 -0
  192. package/dist/dist/node_modules/framer-motion/dist/es/render/svg/utils/render.js +11 -0
  193. package/dist/dist/node_modules/framer-motion/dist/es/render/svg/utils/scrape-motion-values.js +15 -0
  194. package/dist/dist/node_modules/framer-motion/dist/es/render/svg/utils/transform-origin.js +11 -0
  195. package/dist/dist/node_modules/framer-motion/dist/es/render/utils/KeyframesResolver.js +77 -0
  196. package/dist/dist/node_modules/framer-motion/dist/es/render/utils/animation-state.js +128 -0
  197. package/dist/dist/node_modules/framer-motion/dist/es/render/utils/compare-by-depth.js +4 -0
  198. package/dist/dist/node_modules/framer-motion/dist/es/render/utils/flat-tree.js +20 -0
  199. package/dist/dist/node_modules/framer-motion/dist/es/render/utils/get-variant-context.js +20 -0
  200. package/dist/dist/node_modules/framer-motion/dist/es/render/utils/is-controlling-variants.js +13 -0
  201. package/dist/dist/node_modules/framer-motion/dist/es/render/utils/is-variant-label.js +6 -0
  202. package/dist/dist/node_modules/framer-motion/dist/es/render/utils/motion-values.js +27 -0
  203. package/dist/dist/node_modules/framer-motion/dist/es/render/utils/resolve-dynamic-variants.js +8 -0
  204. package/dist/dist/node_modules/framer-motion/dist/es/render/utils/resolve-variants.js +20 -0
  205. package/dist/dist/node_modules/framer-motion/dist/es/render/utils/setters.js +19 -0
  206. package/dist/dist/node_modules/framer-motion/dist/es/render/utils/variant-props.js +13 -0
  207. package/dist/dist/node_modules/framer-motion/dist/es/utils/clamp.js +4 -0
  208. package/dist/dist/node_modules/framer-motion/dist/es/utils/delay.js +13 -0
  209. package/dist/dist/node_modules/framer-motion/dist/es/utils/distance.js +9 -0
  210. package/dist/dist/node_modules/framer-motion/dist/es/utils/get-context-window.js +4 -0
  211. package/dist/dist/node_modules/framer-motion/dist/es/utils/hsla-to-rgba.js +22 -0
  212. package/dist/dist/node_modules/framer-motion/dist/es/utils/interpolate.js +41 -0
  213. package/dist/dist/node_modules/framer-motion/dist/es/utils/is-browser.js +4 -0
  214. package/dist/dist/node_modules/framer-motion/dist/es/utils/is-numerical-string.js +4 -0
  215. package/dist/dist/node_modules/framer-motion/dist/es/utils/is-ref-object.js +6 -0
  216. package/dist/dist/node_modules/framer-motion/dist/es/utils/is-zero-value-string.js +4 -0
  217. package/dist/dist/node_modules/framer-motion/dist/es/utils/mix/color.js +29 -0
  218. package/dist/dist/node_modules/framer-motion/dist/es/utils/mix/complex.js +52 -0
  219. package/dist/dist/node_modules/framer-motion/dist/es/utils/mix/immediate.js +6 -0
  220. package/dist/dist/node_modules/framer-motion/dist/es/utils/mix/index.js +8 -0
  221. package/dist/dist/node_modules/framer-motion/dist/es/utils/mix/number.js +4 -0
  222. package/dist/dist/node_modules/framer-motion/dist/es/utils/mix/visibility.js +8 -0
  223. package/dist/dist/node_modules/framer-motion/dist/es/utils/offsets/default.js +8 -0
  224. package/dist/dist/node_modules/framer-motion/dist/es/utils/offsets/fill.js +13 -0
  225. package/dist/dist/node_modules/framer-motion/dist/es/utils/offsets/time.js +6 -0
  226. package/dist/dist/node_modules/framer-motion/dist/es/utils/pipe.js +4 -0
  227. package/dist/dist/node_modules/framer-motion/dist/es/utils/reduced-motion/index.js +13 -0
  228. package/dist/dist/node_modules/framer-motion/dist/es/utils/reduced-motion/state.js +5 -0
  229. package/dist/dist/node_modules/framer-motion/dist/es/utils/resolve-value.js +6 -0
  230. package/dist/dist/node_modules/framer-motion/dist/es/utils/shallow-compare.js +14 -0
  231. package/dist/dist/node_modules/framer-motion/dist/es/utils/use-constant.js +8 -0
  232. package/dist/dist/node_modules/framer-motion/dist/es/utils/use-isomorphic-effect.js +6 -0
  233. package/dist/dist/node_modules/framer-motion/dist/es/value/types/color/hex.js +19 -0
  234. package/dist/dist/node_modules/framer-motion/dist/es/value/types/color/hsla.js +12 -0
  235. package/dist/dist/node_modules/framer-motion/dist/es/value/types/color/index.js +11 -0
  236. package/dist/dist/node_modules/framer-motion/dist/es/value/types/color/rgba.js +16 -0
  237. package/dist/dist/node_modules/framer-motion/dist/es/value/types/color/utils.js +18 -0
  238. package/dist/dist/node_modules/framer-motion/dist/es/value/types/complex/filter.js +24 -0
  239. package/dist/dist/node_modules/framer-motion/dist/es/value/types/complex/index.js +49 -0
  240. package/dist/dist/node_modules/framer-motion/dist/es/value/types/numbers/index.js +17 -0
  241. package/dist/dist/node_modules/framer-motion/dist/es/value/types/numbers/units.js +17 -0
  242. package/dist/dist/node_modules/framer-motion/dist/es/value/types/utils/color-regex.js +4 -0
  243. package/dist/dist/node_modules/framer-motion/dist/es/value/types/utils/float-regex.js +4 -0
  244. package/dist/dist/node_modules/framer-motion/dist/es/value/types/utils/is-nullish.js +6 -0
  245. package/dist/dist/node_modules/framer-motion/dist/es/value/types/utils/sanitize.js +4 -0
  246. package/dist/dist/node_modules/framer-motion/dist/es/value/types/utils/single-color-regex.js +4 -0
  247. package/dist/dist/node_modules/framer-motion/dist/es/value/use-will-change/add-will-change.js +9 -0
  248. package/dist/dist/node_modules/framer-motion/dist/es/value/use-will-change/is.js +7 -0
  249. package/dist/dist/node_modules/framer-motion/dist/es/value/utils/is-motion-value.js +4 -0
  250. package/dist/dist/node_modules/framer-motion/dist/es/value/utils/resolve-motion-value.js +9 -0
  251. package/dist/dist/node_modules/lodash/lodash.js +3677 -0
  252. package/dist/dist/node_modules/motion/dist/es/framer-motion/dist/es/animation/optimized-appear/data-id.js +6 -0
  253. package/dist/dist/node_modules/motion/dist/es/framer-motion/dist/es/context/LayoutGroupContext.js +2 -0
  254. package/dist/dist/node_modules/motion/dist/es/framer-motion/dist/es/context/LazyContext.js +2 -0
  255. package/dist/dist/node_modules/motion/dist/es/framer-motion/dist/es/context/MotionConfigContext.js +6 -0
  256. package/dist/dist/node_modules/motion/dist/es/framer-motion/dist/es/context/SwitchLayoutGroupContext.js +2 -0
  257. package/dist/dist/node_modules/motion/dist/es/framer-motion/dist/es/projection/node/create-projection-node.js +12 -0
  258. package/dist/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/dom/utils/camel-to-dash.js +4 -0
  259. package/dist/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/dom/utils/filter-props.js +9 -0
  260. package/dist/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/dom/utils/unit-conversion.js +5 -0
  261. package/dist/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/dom/value-types/type-int.js +4 -0
  262. package/dist/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/html/utils/keys-transform.js +23 -0
  263. package/dist/dist/node_modules/motion/dist/es/framer-motion/dist/es/utils/clamp.js +4 -0
  264. package/dist/dist/node_modules/motion/dist/es/framer-motion/dist/es/value/types/color/hex.js +19 -0
  265. package/dist/dist/node_modules/motion/dist/es/framer-motion/dist/es/value/types/color/hsla.js +12 -0
  266. package/dist/dist/node_modules/motion/dist/es/framer-motion/dist/es/value/types/color/index.js +11 -0
  267. package/dist/dist/node_modules/motion/dist/es/framer-motion/dist/es/value/types/color/rgba.js +16 -0
  268. package/dist/dist/node_modules/motion/dist/es/framer-motion/dist/es/value/types/color/utils.js +18 -0
  269. package/dist/dist/node_modules/motion/dist/es/framer-motion/dist/es/value/types/complex/filter.js +4 -0
  270. package/dist/dist/node_modules/motion/dist/es/framer-motion/dist/es/value/types/complex/index.js +49 -0
  271. package/dist/dist/node_modules/motion/dist/es/framer-motion/dist/es/value/types/numbers/index.js +16 -0
  272. package/dist/dist/node_modules/motion/dist/es/framer-motion/dist/es/value/types/numbers/units.js +11 -0
  273. package/dist/dist/node_modules/motion/dist/es/framer-motion/dist/es/value/types/utils/color-regex.js +4 -0
  274. package/dist/dist/node_modules/motion/dist/es/framer-motion/dist/es/value/types/utils/float-regex.js +4 -0
  275. package/dist/dist/node_modules/motion/dist/es/framer-motion/dist/es/value/types/utils/is-nullish.js +6 -0
  276. package/dist/dist/node_modules/motion/dist/es/framer-motion/dist/es/value/types/utils/sanitize.js +4 -0
  277. package/dist/dist/node_modules/motion/dist/es/framer-motion/dist/es/value/types/utils/single-color-regex.js +4 -0
  278. package/dist/dist/node_modules/motion/dist/es/motion-utils/dist/es/errors.js +1 -0
  279. package/dist/dist/node_modules/motion/dist/es/motion-utils/dist/es/noop.js +4 -0
  280. package/dist/dist/node_modules/motion-dom/dist/es/animation/controls/BaseGroup.js +74 -0
  281. package/dist/dist/node_modules/motion-dom/dist/es/animation/controls/Group.js +9 -0
  282. package/dist/dist/node_modules/motion-dom/dist/es/animation/generators/utils/calc-duration.js +13 -0
  283. package/dist/dist/node_modules/motion-dom/dist/es/animation/generators/utils/is-generator.js +6 -0
  284. package/dist/dist/node_modules/motion-dom/dist/es/animation/utils/get-value-transition.js +6 -0
  285. package/dist/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/attach-timeline.js +6 -0
  286. package/dist/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/easing.js +27 -0
  287. package/dist/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/linear.js +12 -0
  288. package/dist/dist/node_modules/motion-dom/dist/es/frameloop/batcher.js +27 -0
  289. package/dist/dist/node_modules/motion-dom/dist/es/frameloop/frame.js +10 -0
  290. package/dist/dist/node_modules/motion-dom/dist/es/frameloop/microtask.js +5 -0
  291. package/dist/dist/node_modules/motion-dom/dist/es/frameloop/order.js +17 -0
  292. package/dist/dist/node_modules/motion-dom/dist/es/frameloop/render-step.js +41 -0
  293. package/dist/dist/node_modules/motion-dom/dist/es/frameloop/sync-time.js +16 -0
  294. package/dist/dist/node_modules/motion-dom/dist/es/gestures/drag/state/is-active.js +11 -0
  295. package/dist/dist/node_modules/motion-dom/dist/es/gestures/drag/state/set-active.js +11 -0
  296. package/dist/dist/node_modules/motion-dom/dist/es/gestures/hover.js +24 -0
  297. package/dist/dist/node_modules/motion-dom/dist/es/gestures/press/index.js +32 -0
  298. package/dist/dist/node_modules/motion-dom/dist/es/gestures/press/utils/is-keyboard-accessible.js +13 -0
  299. package/dist/dist/node_modules/motion-dom/dist/es/gestures/press/utils/keyboard.js +27 -0
  300. package/dist/dist/node_modules/motion-dom/dist/es/gestures/press/utils/state.js +4 -0
  301. package/dist/dist/node_modules/motion-dom/dist/es/gestures/utils/is-node-or-child.js +4 -0
  302. package/dist/dist/node_modules/motion-dom/dist/es/gestures/utils/is-primary-pointer.js +4 -0
  303. package/dist/dist/node_modules/motion-dom/dist/es/gestures/utils/setup.js +12 -0
  304. package/dist/dist/node_modules/motion-dom/dist/es/utils/is-bezier-definition.js +4 -0
  305. package/dist/dist/node_modules/motion-dom/dist/es/utils/resolve-elements.js +14 -0
  306. package/dist/dist/node_modules/motion-dom/dist/es/utils/supports/flags.js +6 -0
  307. package/dist/dist/node_modules/motion-dom/dist/es/utils/supports/linear-easing.js +12 -0
  308. package/dist/dist/node_modules/motion-dom/dist/es/utils/supports/memo.js +13 -0
  309. package/dist/dist/node_modules/motion-dom/dist/es/utils/supports/scroll-timeline.js +6 -0
  310. package/dist/dist/node_modules/motion-dom/dist/es/value/index.js +202 -0
  311. package/dist/dist/node_modules/motion-utils/dist/es/array.js +11 -0
  312. package/dist/dist/node_modules/motion-utils/dist/es/errors.js +12 -0
  313. package/dist/dist/node_modules/motion-utils/dist/es/global-config.js +6 -0
  314. package/dist/dist/node_modules/motion-utils/dist/es/memo.js +8 -0
  315. package/dist/dist/node_modules/motion-utils/dist/es/noop.js +4 -0
  316. package/dist/dist/node_modules/motion-utils/dist/es/progress.js +7 -0
  317. package/dist/dist/node_modules/motion-utils/dist/es/subscription-manager.js +29 -0
  318. package/dist/dist/node_modules/motion-utils/dist/es/time-conversion.js +5 -0
  319. package/dist/dist/node_modules/motion-utils/dist/es/velocity-per-second.js +6 -0
  320. package/dist/dist/node_modules/motion-utils/dist/es/warn-once.js +7 -0
  321. package/dist/dist/node_modules/object-assign/index.js +54 -0
  322. package/dist/dist/node_modules/prop-types/checkPropTypes.js +54 -0
  323. package/dist/dist/node_modules/prop-types/factoryWithThrowingShims.js +52 -0
  324. package/dist/dist/node_modules/prop-types/factoryWithTypeCheckers.js +329 -0
  325. package/dist/dist/node_modules/prop-types/index.js +17 -0
  326. package/dist/dist/node_modules/prop-types/lib/ReactPropTypesSecret.js +10 -0
  327. package/dist/dist/node_modules/prop-types/lib/has.js +7 -0
  328. package/dist/dist/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js +95 -0
  329. package/dist/dist/node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js +78 -0
  330. package/dist/dist/node_modules/prop-types/node_modules/react-is/index.js +10 -0
  331. package/dist/dist/node_modules/property-expr/index.js +82 -0
  332. package/dist/dist/node_modules/react/cjs/react-jsx-runtime.development.js +247 -0
  333. package/dist/dist/node_modules/react/cjs/react-jsx-runtime.production.js +35 -0
  334. package/dist/dist/node_modules/react/jsx-runtime.js +10 -0
  335. package/dist/dist/node_modules/tiny-case/index.js +22 -0
  336. package/dist/dist/node_modules/toposort/index.js +66 -0
  337. package/dist/dist/node_modules/yup/index.esm.js +1359 -0
  338. package/dist/dist/themes/default.js +9 -0
  339. package/dist/lawgic-dev-kit.css +1 -1
  340. package/dist/lawgic-dev-kit.umd.js +884 -243
  341. package/dist/node_modules/prop-types/node_modules/react-is/index.js +1 -1
  342. package/dist/node_modules/scheduler/index.js +1 -1
  343. package/dist/node_modules/toposort/index.js +1 -1
  344. package/dist/node_modules/yup/index.esm.js +3 -3
  345. package/dist/src/utils/toast.d.ts +15 -0
  346. package/dist/utils/modal.js +98 -57
  347. package/dist/utils/toast.d.ts +1 -1
  348. package/dist/utils/toast.js +112 -98
  349. package/package.json +1 -1
  350. package/dist/src/components/atoms/SectionButton/desktop/SectionButton.d.ts +0 -3
  351. package/dist/src/components/atoms/SectionButton/desktop/SectionButton.styles.d.ts +0 -2
  352. package/dist/src/components/atoms/SectionButton/desktop/SectionButton.types.d.ts +0 -37
  353. package/dist/src/components/atoms/SectionButton/mobile/MobileSectionButton.styles.d.ts +0 -3
  354. package/dist/src/components/atoms/SectionButton/mobile/SectionButton.types.d.ts +0 -37
@@ -0,0 +1,17 @@
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
+ };
@@ -0,0 +1,21 @@
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
+ };
@@ -0,0 +1,75 @@
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
+ };
@@ -0,0 +1,11 @@
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
+ };
@@ -0,0 +1,11 @@
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
+ };
@@ -0,0 +1,44 @@
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
+ };
@@ -0,0 +1,21 @@
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
+ };
@@ -0,0 +1,59 @@
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
+ };
@@ -0,0 +1,8 @@
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
+ };
@@ -0,0 +1,4 @@
1
+ const o = Symbol.for("motionComponentSymbol");
2
+ export {
3
+ o as motionComponentSymbol
4
+ };
@@ -0,0 +1,18 @@
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
+ };
@@ -0,0 +1,65 @@
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
+ };
@@ -0,0 +1,53 @@
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
+ };
@@ -0,0 +1,38 @@
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
+ };
@@ -0,0 +1,31 @@
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
+ };
@@ -0,0 +1,25 @@
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
+ };
@@ -0,0 +1,14 @@
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
+ };
@@ -0,0 +1,52 @@
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
+ };
@@ -0,0 +1,36 @@
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
+ };
@@ -0,0 +1,25 @@
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
+ };
@@ -0,0 +1,18 @@
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
+ };