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,32 @@
1
+ import { isDragActive as E } from "../drag/state/is-active.js";
2
+ import { isNodeOrChild as b } from "../utils/is-node-or-child.js";
3
+ import { isPrimaryPointer as L } from "../utils/is-primary-pointer.js";
4
+ import { setupGesture as g } from "../utils/setup.js";
5
+ import { isElementKeyboardAccessible as h } from "./utils/is-keyboard-accessible.js";
6
+ import { enableKeyboardPress as y } from "./utils/keyboard.js";
7
+ import { isPressing as o } from "./utils/state.js";
8
+ function p(s) {
9
+ return L(s) && !E();
10
+ }
11
+ function C(s, u, i = {}) {
12
+ const [f, r, l] = g(s, i), w = (e) => {
13
+ const t = e.currentTarget;
14
+ if (!p(e) || o.has(t))
15
+ return;
16
+ o.add(t);
17
+ const a = u(t, e), d = (n, v) => {
18
+ window.removeEventListener("pointerup", c), window.removeEventListener("pointercancel", m), !(!p(n) || !o.has(t)) && (o.delete(t), typeof a == "function" && a(n, { success: v }));
19
+ }, c = (n) => {
20
+ d(n, t === window || t === document || i.useGlobalTarget || b(t, n.target));
21
+ }, m = (n) => {
22
+ d(n, !1);
23
+ };
24
+ window.addEventListener("pointerup", c, r), window.addEventListener("pointercancel", m, r);
25
+ };
26
+ return f.forEach((e) => {
27
+ (i.useGlobalTarget ? window : e).addEventListener("pointerdown", w, r), e instanceof HTMLElement && (e.addEventListener("focus", (t) => y(t, r)), !h(e) && e.tabIndex === null && (e.tabIndex = 0));
28
+ }), l;
29
+ }
30
+ export {
31
+ C as press
32
+ };
@@ -0,0 +1,13 @@
1
+ const t = /* @__PURE__ */ new Set([
2
+ "BUTTON",
3
+ "INPUT",
4
+ "SELECT",
5
+ "TEXTAREA",
6
+ "A"
7
+ ]);
8
+ function n(e) {
9
+ return t.has(e.tagName) || e.tabIndex !== -1;
10
+ }
11
+ export {
12
+ n as isElementKeyboardAccessible
13
+ };
@@ -0,0 +1,27 @@
1
+ import { isPressing as a } from "./state.js";
2
+ function i(n) {
3
+ return (t) => {
4
+ t.key === "Enter" && n(t);
5
+ };
6
+ }
7
+ function r(n, t) {
8
+ n.dispatchEvent(new PointerEvent("pointer" + t, { isPrimary: !0, bubbles: !0 }));
9
+ }
10
+ const c = (n, t) => {
11
+ const e = n.currentTarget;
12
+ if (!e)
13
+ return;
14
+ const s = i(() => {
15
+ if (a.has(e))
16
+ return;
17
+ r(e, "down");
18
+ const o = i(() => {
19
+ r(e, "up");
20
+ }), d = () => r(e, "cancel");
21
+ e.addEventListener("keyup", o, t), e.addEventListener("blur", d, t);
22
+ });
23
+ e.addEventListener("keydown", s, t), e.addEventListener("blur", () => e.removeEventListener("keydown", s), t);
24
+ };
25
+ export {
26
+ c as enableKeyboardPress
27
+ };
@@ -0,0 +1,4 @@
1
+ const e = /* @__PURE__ */ new WeakSet();
2
+ export {
3
+ e as isPressing
4
+ };
@@ -0,0 +1,4 @@
1
+ const s = (e, t) => t ? e === t ? !0 : s(e, t.parentElement) : !1;
2
+ export {
3
+ s as isNodeOrChild
4
+ };
@@ -0,0 +1,4 @@
1
+ const t = (o) => o.pointerType === "mouse" ? typeof o.button != "number" || o.button <= 0 : o.isPrimary !== !1;
2
+ export {
3
+ t as isPrimaryPointer
4
+ };
@@ -0,0 +1,12 @@
1
+ import { resolveElements as n } from "../../utils/resolve-elements.js";
2
+ function l(r, t) {
3
+ const o = n(r), e = new AbortController(), s = {
4
+ passive: !0,
5
+ ...t,
6
+ signal: e.signal
7
+ };
8
+ return [o, s, () => e.abort()];
9
+ }
10
+ export {
11
+ l as setupGesture
12
+ };
@@ -0,0 +1,4 @@
1
+ const i = (e) => Array.isArray(e) && typeof e[0] == "number";
2
+ export {
3
+ i as isBezierDefinition
4
+ };
@@ -0,0 +1,14 @@
1
+ function l(e, o, f) {
2
+ var t;
3
+ if (e instanceof EventTarget)
4
+ return [e];
5
+ if (typeof e == "string") {
6
+ let n = document;
7
+ const r = (t = void 0) !== null && t !== void 0 ? t : n.querySelectorAll(e);
8
+ return r ? Array.from(r) : [];
9
+ }
10
+ return Array.from(e);
11
+ }
12
+ export {
13
+ l as resolveElements
14
+ };
@@ -0,0 +1,6 @@
1
+ const s = {
2
+ linearEasing: void 0
3
+ };
4
+ export {
5
+ s as supportsFlags
6
+ };
@@ -0,0 +1,12 @@
1
+ import { memoSupports as e } from "./memo.js";
2
+ const r = /* @__PURE__ */ e(() => {
3
+ try {
4
+ document.createElement("div").animate({ opacity: 0 }, { easing: "linear(0, 1)" });
5
+ } catch {
6
+ return !1;
7
+ }
8
+ return !0;
9
+ }, "linearEasing");
10
+ export {
11
+ r as supportsLinearEasing
12
+ };
@@ -0,0 +1,13 @@
1
+ import "../../../../../motion-utils/dist/es/errors.js";
2
+ import { memo as s } from "../../../../../motion-utils/dist/es/memo.js";
3
+ import { supportsFlags as p } from "./flags.js";
4
+ function e(r, t) {
5
+ const m = s(r);
6
+ return () => {
7
+ var o;
8
+ return (o = p[t]) !== null && o !== void 0 ? o : m();
9
+ };
10
+ }
11
+ export {
12
+ e as memoSupports
13
+ };
@@ -0,0 +1,6 @@
1
+ import "../../../../../motion-utils/dist/es/errors.js";
2
+ import { memo as o } from "../../../../../motion-utils/dist/es/memo.js";
3
+ const r = /* @__PURE__ */ o(() => window.ScrollTimeline !== void 0);
4
+ export {
5
+ r as supportsScrollTimeline
6
+ };
@@ -0,0 +1,202 @@
1
+ import "../../../../motion-utils/dist/es/errors.js";
2
+ import { SubscriptionManager as o } from "../../../../motion-utils/dist/es/subscription-manager.js";
3
+ import { velocityPerSecond as c } from "../../../../motion-utils/dist/es/velocity-per-second.js";
4
+ import { warnOnce as p } from "../../../../motion-utils/dist/es/warn-once.js";
5
+ import { frame as u } from "../frameloop/frame.js";
6
+ import { time as n } from "../frameloop/sync-time.js";
7
+ const a = 30, v = (i) => !isNaN(parseFloat(i));
8
+ class d {
9
+ /**
10
+ * @param init - The initiating value
11
+ * @param config - Optional configuration options
12
+ *
13
+ * - `transformer`: A function to transform incoming values with.
14
+ */
15
+ constructor(t, e = {}) {
16
+ this.version = "12.6.1", this.canTrackVelocity = null, this.events = {}, this.updateAndNotify = (s, r = !0) => {
17
+ const h = n.now();
18
+ this.updatedAt !== h && this.setPrevFrameValue(), this.prev = this.current, this.setCurrent(s), this.current !== this.prev && this.events.change && this.events.change.notify(this.current), r && this.events.renderRequest && this.events.renderRequest.notify(this.current);
19
+ }, this.hasAnimated = !1, this.setCurrent(t), this.owner = e.owner;
20
+ }
21
+ setCurrent(t) {
22
+ this.current = t, this.updatedAt = n.now(), this.canTrackVelocity === null && t !== void 0 && (this.canTrackVelocity = v(this.current));
23
+ }
24
+ setPrevFrameValue(t = this.current) {
25
+ this.prevFrameValue = t, this.prevUpdatedAt = this.updatedAt;
26
+ }
27
+ /**
28
+ * Adds a function that will be notified when the `MotionValue` is updated.
29
+ *
30
+ * It returns a function that, when called, will cancel the subscription.
31
+ *
32
+ * When calling `onChange` inside a React component, it should be wrapped with the
33
+ * `useEffect` hook. As it returns an unsubscribe function, this should be returned
34
+ * from the `useEffect` function to ensure you don't add duplicate subscribers..
35
+ *
36
+ * ```jsx
37
+ * export const MyComponent = () => {
38
+ * const x = useMotionValue(0)
39
+ * const y = useMotionValue(0)
40
+ * const opacity = useMotionValue(1)
41
+ *
42
+ * useEffect(() => {
43
+ * function updateOpacity() {
44
+ * const maxXY = Math.max(x.get(), y.get())
45
+ * const newOpacity = transform(maxXY, [0, 100], [1, 0])
46
+ * opacity.set(newOpacity)
47
+ * }
48
+ *
49
+ * const unsubscribeX = x.on("change", updateOpacity)
50
+ * const unsubscribeY = y.on("change", updateOpacity)
51
+ *
52
+ * return () => {
53
+ * unsubscribeX()
54
+ * unsubscribeY()
55
+ * }
56
+ * }, [])
57
+ *
58
+ * return <motion.div style={{ x }} />
59
+ * }
60
+ * ```
61
+ *
62
+ * @param subscriber - A function that receives the latest value.
63
+ * @returns A function that, when called, will cancel this subscription.
64
+ *
65
+ * @deprecated
66
+ */
67
+ onChange(t) {
68
+ return process.env.NODE_ENV !== "production" && p(!1, 'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'), this.on("change", t);
69
+ }
70
+ on(t, e) {
71
+ this.events[t] || (this.events[t] = new o());
72
+ const s = this.events[t].add(e);
73
+ return t === "change" ? () => {
74
+ s(), u.read(() => {
75
+ this.events.change.getSize() || this.stop();
76
+ });
77
+ } : s;
78
+ }
79
+ clearListeners() {
80
+ for (const t in this.events)
81
+ this.events[t].clear();
82
+ }
83
+ /**
84
+ * Attaches a passive effect to the `MotionValue`.
85
+ */
86
+ attach(t, e) {
87
+ this.passiveEffect = t, this.stopPassiveEffect = e;
88
+ }
89
+ /**
90
+ * Sets the state of the `MotionValue`.
91
+ *
92
+ * @remarks
93
+ *
94
+ * ```jsx
95
+ * const x = useMotionValue(0)
96
+ * x.set(10)
97
+ * ```
98
+ *
99
+ * @param latest - Latest value to set.
100
+ * @param render - Whether to notify render subscribers. Defaults to `true`
101
+ *
102
+ * @public
103
+ */
104
+ set(t, e = !0) {
105
+ !e || !this.passiveEffect ? this.updateAndNotify(t, e) : this.passiveEffect(t, this.updateAndNotify);
106
+ }
107
+ setWithVelocity(t, e, s) {
108
+ this.set(e), this.prev = void 0, this.prevFrameValue = t, this.prevUpdatedAt = this.updatedAt - s;
109
+ }
110
+ /**
111
+ * Set the state of the `MotionValue`, stopping any active animations,
112
+ * effects, and resets velocity to `0`.
113
+ */
114
+ jump(t, e = !0) {
115
+ this.updateAndNotify(t), this.prev = t, this.prevUpdatedAt = this.prevFrameValue = void 0, e && this.stop(), this.stopPassiveEffect && this.stopPassiveEffect();
116
+ }
117
+ /**
118
+ * Returns the latest state of `MotionValue`
119
+ *
120
+ * @returns - The latest state of `MotionValue`
121
+ *
122
+ * @public
123
+ */
124
+ get() {
125
+ return this.current;
126
+ }
127
+ /**
128
+ * @public
129
+ */
130
+ getPrevious() {
131
+ return this.prev;
132
+ }
133
+ /**
134
+ * Returns the latest velocity of `MotionValue`
135
+ *
136
+ * @returns - The latest velocity of `MotionValue`. Returns `0` if the state is non-numerical.
137
+ *
138
+ * @public
139
+ */
140
+ getVelocity() {
141
+ const t = n.now();
142
+ if (!this.canTrackVelocity || this.prevFrameValue === void 0 || t - this.updatedAt > a)
143
+ return 0;
144
+ const e = Math.min(this.updatedAt - this.prevUpdatedAt, a);
145
+ return c(parseFloat(this.current) - parseFloat(this.prevFrameValue), e);
146
+ }
147
+ /**
148
+ * Registers a new animation to control this `MotionValue`. Only one
149
+ * animation can drive a `MotionValue` at one time.
150
+ *
151
+ * ```jsx
152
+ * value.start()
153
+ * ```
154
+ *
155
+ * @param animation - A function that starts the provided animation
156
+ */
157
+ start(t) {
158
+ return this.stop(), new Promise((e) => {
159
+ this.hasAnimated = !0, this.animation = t(e), this.events.animationStart && this.events.animationStart.notify();
160
+ }).then(() => {
161
+ this.events.animationComplete && this.events.animationComplete.notify(), this.clearAnimation();
162
+ });
163
+ }
164
+ /**
165
+ * Stop the currently active animation.
166
+ *
167
+ * @public
168
+ */
169
+ stop() {
170
+ this.animation && (this.animation.stop(), this.events.animationCancel && this.events.animationCancel.notify()), this.clearAnimation();
171
+ }
172
+ /**
173
+ * Returns `true` if this value is currently animating.
174
+ *
175
+ * @public
176
+ */
177
+ isAnimating() {
178
+ return !!this.animation;
179
+ }
180
+ clearAnimation() {
181
+ delete this.animation;
182
+ }
183
+ /**
184
+ * Destroy and clean up subscribers to this `MotionValue`.
185
+ *
186
+ * The `MotionValue` hooks like `useMotionValue` and `useTransform` automatically
187
+ * handle the lifecycle of the returned `MotionValue`, so this method is only necessary if you've manually
188
+ * created a `MotionValue` via the `motionValue` function.
189
+ *
190
+ * @public
191
+ */
192
+ destroy() {
193
+ this.clearListeners(), this.stop(), this.stopPassiveEffect && this.stopPassiveEffect();
194
+ }
195
+ }
196
+ function g(i, t) {
197
+ return new d(i, t);
198
+ }
199
+ export {
200
+ d as MotionValue,
201
+ g as motionValue
202
+ };
@@ -0,0 +1,11 @@
1
+ function t(e, i) {
2
+ e.indexOf(i) === -1 && e.push(i);
3
+ }
4
+ function d(e, i) {
5
+ const n = e.indexOf(i);
6
+ n > -1 && e.splice(n, 1);
7
+ }
8
+ export {
9
+ t as addUniqueItem,
10
+ d as removeItem
11
+ };
@@ -0,0 +1,12 @@
1
+ import { noop as r } from "./noop.js";
2
+ let e = r, a = r;
3
+ process.env.NODE_ENV !== "production" && (e = (o, n) => {
4
+ !o && typeof console < "u" && console.warn(n);
5
+ }, a = (o, n) => {
6
+ if (!o)
7
+ throw new Error(n);
8
+ });
9
+ export {
10
+ a as invariant,
11
+ e as warning
12
+ };
@@ -0,0 +1,6 @@
1
+ const o = {
2
+ useManualTiming: !1
3
+ };
4
+ export {
5
+ o as MotionGlobalConfig
6
+ };
@@ -0,0 +1,8 @@
1
+ // @__NO_SIDE_EFFECTS__
2
+ function r(o) {
3
+ let e;
4
+ return () => (e === void 0 && (e = o()), e);
5
+ }
6
+ export {
7
+ r as memo
8
+ };
@@ -0,0 +1,4 @@
1
+ const n = /* @__NO_SIDE_EFFECTS__ */ (o) => o;
2
+ export {
3
+ n as noop
4
+ };
@@ -0,0 +1,7 @@
1
+ const t = /* @__NO_SIDE_EFFECTS__ */ (r, n, o) => {
2
+ const s = n - r;
3
+ return s === 0 ? 1 : (o - r) / s;
4
+ };
5
+ export {
6
+ t as progress
7
+ };
@@ -0,0 +1,29 @@
1
+ import { removeItem as e, addUniqueItem as c } from "./array.js";
2
+ class p {
3
+ constructor() {
4
+ this.subscriptions = [];
5
+ }
6
+ add(s) {
7
+ return c(this.subscriptions, s), () => e(this.subscriptions, s);
8
+ }
9
+ notify(s, r, o) {
10
+ const t = this.subscriptions.length;
11
+ if (t)
12
+ if (t === 1)
13
+ this.subscriptions[0](s, r, o);
14
+ else
15
+ for (let i = 0; i < t; i++) {
16
+ const n = this.subscriptions[i];
17
+ n && n(s, r, o);
18
+ }
19
+ }
20
+ getSize() {
21
+ return this.subscriptions.length;
22
+ }
23
+ clear() {
24
+ this.subscriptions.length = 0;
25
+ }
26
+ }
27
+ export {
28
+ p as SubscriptionManager
29
+ };
@@ -0,0 +1,5 @@
1
+ const o = /* @__NO_SIDE_EFFECTS__ */ (s) => s * 1e3, e = /* @__NO_SIDE_EFFECTS__ */ (s) => s / 1e3;
2
+ export {
3
+ e as millisecondsToSeconds,
4
+ o as secondsToMilliseconds
5
+ };
@@ -0,0 +1,6 @@
1
+ function o(n, e) {
2
+ return e ? n * (1e3 / e) : 0;
3
+ }
4
+ export {
5
+ o as velocityPerSecond
6
+ };
@@ -0,0 +1,7 @@
1
+ const n = /* @__PURE__ */ new Set();
2
+ function t(o, e, a) {
3
+ o || n.has(e) || (console.warn(e), n.add(e));
4
+ }
5
+ export {
6
+ t as warnOnce
7
+ };
@@ -0,0 +1,54 @@
1
+ /*
2
+ object-assign
3
+ (c) Sindre Sorhus
4
+ @license MIT
5
+ */
6
+ var u, s;
7
+ function O() {
8
+ if (s) return u;
9
+ s = 1;
10
+ var f = Object.getOwnPropertySymbols, b = Object.prototype.hasOwnProperty, l = Object.prototype.propertyIsEnumerable;
11
+ function j(n) {
12
+ if (n == null)
13
+ throw new TypeError("Object.assign cannot be called with null or undefined");
14
+ return Object(n);
15
+ }
16
+ function p() {
17
+ try {
18
+ if (!Object.assign)
19
+ return !1;
20
+ var n = new String("abc");
21
+ if (n[5] = "de", Object.getOwnPropertyNames(n)[0] === "5")
22
+ return !1;
23
+ for (var o = {}, r = 0; r < 10; r++)
24
+ o["_" + String.fromCharCode(r)] = r;
25
+ var a = Object.getOwnPropertyNames(o).map(function(t) {
26
+ return o[t];
27
+ });
28
+ if (a.join("") !== "0123456789")
29
+ return !1;
30
+ var e = {};
31
+ return "abcdefghijklmnopqrst".split("").forEach(function(t) {
32
+ e[t] = t;
33
+ }), Object.keys(Object.assign({}, e)).join("") === "abcdefghijklmnopqrst";
34
+ } catch {
35
+ return !1;
36
+ }
37
+ }
38
+ return u = p() ? Object.assign : function(n, o) {
39
+ for (var r, a = j(n), e, t = 1; t < arguments.length; t++) {
40
+ r = Object(arguments[t]);
41
+ for (var c in r)
42
+ b.call(r, c) && (a[c] = r[c]);
43
+ if (f) {
44
+ e = f(r);
45
+ for (var i = 0; i < e.length; i++)
46
+ l.call(r, e[i]) && (a[e[i]] = r[e[i]]);
47
+ }
48
+ }
49
+ return a;
50
+ }, u;
51
+ }
52
+ export {
53
+ O as __require
54
+ };
@@ -0,0 +1,54 @@
1
+ import { __require as E } from "./lib/ReactPropTypesSecret.js";
2
+ import { __require as d } from "./lib/has.js";
3
+ var c, y;
4
+ function O() {
5
+ if (y) return c;
6
+ y = 1;
7
+ var a = function() {
8
+ };
9
+ if (process.env.NODE_ENV !== "production") {
10
+ var l = /* @__PURE__ */ E(), i = {}, v = /* @__PURE__ */ d();
11
+ a = function(r) {
12
+ var t = "Warning: " + r;
13
+ typeof console < "u" && console.error(t);
14
+ try {
15
+ throw new Error(t);
16
+ } catch {
17
+ }
18
+ };
19
+ }
20
+ function f(r, t, n, s, u) {
21
+ if (process.env.NODE_ENV !== "production") {
22
+ for (var o in r)
23
+ if (v(r, o)) {
24
+ var e;
25
+ try {
26
+ if (typeof r[o] != "function") {
27
+ var p = Error(
28
+ (s || "React class") + ": " + n + " type `" + o + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof r[o] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
29
+ );
30
+ throw p.name = "Invariant Violation", p;
31
+ }
32
+ e = r[o](t, o, s, n, null, l);
33
+ } catch (m) {
34
+ e = m;
35
+ }
36
+ if (e && !(e instanceof Error) && a(
37
+ (s || "React class") + ": type specification of " + n + " `" + o + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof e + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
38
+ ), e instanceof Error && !(e.message in i)) {
39
+ i[e.message] = !0;
40
+ var h = u ? u() : "";
41
+ a(
42
+ "Failed " + n + " type: " + e.message + (h ?? "")
43
+ );
44
+ }
45
+ }
46
+ }
47
+ }
48
+ return f.resetWarningCache = function() {
49
+ process.env.NODE_ENV !== "production" && (i = {});
50
+ }, c = f, c;
51
+ }
52
+ export {
53
+ O as __require
54
+ };
@@ -0,0 +1,52 @@
1
+ import { __require as f } from "./lib/ReactPropTypesSecret.js";
2
+ var t, p;
3
+ function g() {
4
+ if (p) return t;
5
+ p = 1;
6
+ var c = /* @__PURE__ */ f();
7
+ function o() {
8
+ }
9
+ function a() {
10
+ }
11
+ return a.resetWarningCache = o, t = function() {
12
+ function e(u, y, l, h, m, s) {
13
+ if (s !== c) {
14
+ var i = new Error(
15
+ "Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types"
16
+ );
17
+ throw i.name = "Invariant Violation", i;
18
+ }
19
+ }
20
+ e.isRequired = e;
21
+ function r() {
22
+ return e;
23
+ }
24
+ var n = {
25
+ array: e,
26
+ bigint: e,
27
+ bool: e,
28
+ func: e,
29
+ number: e,
30
+ object: e,
31
+ string: e,
32
+ symbol: e,
33
+ any: e,
34
+ arrayOf: r,
35
+ element: e,
36
+ elementType: e,
37
+ instanceOf: r,
38
+ node: e,
39
+ objectOf: r,
40
+ oneOf: r,
41
+ oneOfType: r,
42
+ shape: r,
43
+ exact: r,
44
+ checkPropTypes: a,
45
+ resetWarningCache: o
46
+ };
47
+ return n.PropTypes = n, n;
48
+ }, t;
49
+ }
50
+ export {
51
+ g as __require
52
+ };