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