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,22 @@
1
+ import { transformProps as t } from "../../render/html/utils/keys-transform.js";
2
+ const r = {
3
+ type: "spring",
4
+ stiffness: 500,
5
+ damping: 25,
6
+ restSpeed: 10
7
+ }, a = (e) => ({
8
+ type: "spring",
9
+ stiffness: 550,
10
+ damping: e === 0 ? 2 * Math.sqrt(550) : 30,
11
+ restSpeed: 10
12
+ }), n = {
13
+ type: "keyframes",
14
+ duration: 0.8
15
+ }, i = {
16
+ type: "keyframes",
17
+ ease: [0.25, 0.1, 0.35, 1],
18
+ duration: 0.3
19
+ }, f = (e, { keyframes: s }) => s.length > 2 ? n : t.has(e) ? e.startsWith("scale") ? a(s[1]) : r : i;
20
+ export {
21
+ f as getDefaultTransition
22
+ };
@@ -0,0 +1,7 @@
1
+ import { complex as e } from "../../value/types/complex/index.js";
2
+ const o = (t, s) => s === "zIndex" ? !1 : !!(typeof t == "number" || Array.isArray(t) || typeof t == "string" && // It's animatable if we have a string
3
+ (e.test(t) || t === "0") && // And it contains numbers and/or colors
4
+ !t.startsWith("url("));
5
+ export {
6
+ o as isAnimatable
7
+ };
@@ -0,0 +1,6 @@
1
+ function o(n) {
2
+ return n !== null && typeof n == "object" && typeof n.start == "function";
3
+ }
4
+ export {
5
+ o as isAnimationControls
6
+ };
@@ -0,0 +1,4 @@
1
+ const a = (r) => Array.isArray(r);
2
+ export {
3
+ a as isKeyframesTarget
4
+ };
@@ -0,0 +1,7 @@
1
+ import { isZeroValueString as n } from "../../utils/is-zero-value-string.js";
2
+ function t(e) {
3
+ return typeof e == "number" ? e === 0 : e !== null ? e === "none" || e === "0" || n(e) : !0;
4
+ }
5
+ export {
6
+ t as isNone
7
+ };
@@ -0,0 +1,6 @@
1
+ function y({ when: r, delay: t, delayChildren: a, staggerChildren: n, staggerDirection: i, repeat: l, repeatType: s, repeatDelay: d, from: p, elapsed: g, ...e }) {
2
+ return !!Object.keys(e).length;
3
+ }
4
+ export {
5
+ y as isTransitionDefined
6
+ };
@@ -0,0 +1,53 @@
1
+ import { j as g } from "../../../../../../_virtual/jsx-runtime.js";
2
+ import * as c from "react";
3
+ import { useId as x, useRef as d, useContext as C, useInsertionEffect as P } from "react";
4
+ import { MotionConfigContext as R } from "../../context/MotionConfigContext.js";
5
+ class w extends c.Component {
6
+ getSnapshotBeforeUpdate(n) {
7
+ const e = this.props.childRef.current;
8
+ if (e && n.isPresent && !this.props.isPresent) {
9
+ const i = e.offsetParent, o = i instanceof HTMLElement && i.offsetWidth || 0, t = this.props.sizeRef.current;
10
+ t.height = e.offsetHeight || 0, t.width = e.offsetWidth || 0, t.top = e.offsetTop, t.left = e.offsetLeft, t.right = o - t.width - t.left;
11
+ }
12
+ return null;
13
+ }
14
+ /**
15
+ * Required with getSnapshotBeforeUpdate to stop React complaining.
16
+ */
17
+ componentDidUpdate() {
18
+ }
19
+ render() {
20
+ return this.props.children;
21
+ }
22
+ }
23
+ function I({ children: s, isPresent: n, anchorX: e }) {
24
+ const i = x(), o = d(null), t = d({
25
+ width: 0,
26
+ height: 0,
27
+ top: 0,
28
+ left: 0,
29
+ right: 0
30
+ }), { nonce: p } = C(R);
31
+ return P(() => {
32
+ const { width: h, height: f, top: a, left: l, right: m } = t.current;
33
+ if (n || !o.current || !h || !f)
34
+ return;
35
+ const u = e === "left" ? `left: ${l}` : `right: ${m}`;
36
+ o.current.dataset.motionPopId = i;
37
+ const r = document.createElement("style");
38
+ return p && (r.nonce = p), document.head.appendChild(r), r.sheet && r.sheet.insertRule(`
39
+ [data-motion-pop-id="${i}"] {
40
+ position: absolute !important;
41
+ width: ${h}px !important;
42
+ height: ${f}px !important;
43
+ ${u}px !important;
44
+ top: ${a}px !important;
45
+ }
46
+ `), () => {
47
+ document.head.removeChild(r);
48
+ };
49
+ }, [n]), g.jsx(w, { isPresent: n, childRef: o, sizeRef: t, children: c.cloneElement(s, { ref: o }) });
50
+ }
51
+ export {
52
+ I as PopChild
53
+ };
@@ -0,0 +1,41 @@
1
+ import { j as a } from "../../../../../../_virtual/jsx-runtime.js";
2
+ import * as C from "react";
3
+ import { useId as P, useCallback as x, useMemo as c } from "react";
4
+ import { PresenceContext as E } from "../../context/PresenceContext.js";
5
+ import { useConstant as j } from "../../utils/use-constant.js";
6
+ import { PopChild as v } from "./PopChild.js";
7
+ const g = ({ children: r, initial: m, isPresent: t, onExitComplete: o, custom: f, presenceAffectsLayout: u, mode: l, anchorX: p }) => {
8
+ const e = j(M), d = P(), i = x((s) => {
9
+ e.set(s, !0);
10
+ for (const n of e.values())
11
+ if (!n)
12
+ return;
13
+ o && o();
14
+ }, [e, o]), h = c(
15
+ () => ({
16
+ id: d,
17
+ initial: m,
18
+ isPresent: t,
19
+ custom: f,
20
+ onExitComplete: i,
21
+ register: (s) => (e.set(s, !1), () => e.delete(s))
22
+ }),
23
+ /**
24
+ * If the presence of a child affects the layout of the components around it,
25
+ * we want to make a new context value to ensure they get re-rendered
26
+ * so they can detect that layout change.
27
+ */
28
+ u ? [Math.random(), i] : [t, i]
29
+ );
30
+ return c(() => {
31
+ e.forEach((s, n) => e.set(n, !1));
32
+ }, [t]), C.useEffect(() => {
33
+ !t && !e.size && o && o();
34
+ }, [t]), l === "popLayout" && (r = a.jsx(v, { isPresent: t, anchorX: p, children: r })), a.jsx(E.Provider, { value: h, children: r });
35
+ };
36
+ function M() {
37
+ return /* @__PURE__ */ new Map();
38
+ }
39
+ export {
40
+ g as PresenceChild
41
+ };
@@ -0,0 +1,45 @@
1
+ import { j as f } from "../../../../../../_virtual/jsx-runtime.js";
2
+ import { useMemo as X, useRef as C, useState as P, useContext as F } from "react";
3
+ import { LayoutGroupContext as G } from "../../context/LayoutGroupContext.js";
4
+ import { useConstant as H } from "../../utils/use-constant.js";
5
+ import { useIsomorphicLayoutEffect as I } from "../../utils/use-isomorphic-effect.js";
6
+ import { PresenceChild as K } from "./PresenceChild.js";
7
+ import { usePresence as O } from "./use-presence.js";
8
+ import { onlyElements as j, getChildKey as l } from "./utils.js";
9
+ const B = ({ children: p, custom: A, initial: L = !0, onExitComplete: d, presenceAffectsLayout: b = !0, mode: u = "sync", propagate: a = !1, anchorX: D = "left" }) => {
10
+ const [h, g] = O(a), r = X(() => j(p), [p]), i = a && !h ? [] : r.map(l), E = C(!0), x = C(r), s = H(() => /* @__PURE__ */ new Map()), [M, N] = P(r), [o, y] = P(r);
11
+ I(() => {
12
+ E.current = !1, x.current = r;
13
+ for (let t = 0; t < o.length; t++) {
14
+ const e = l(o[t]);
15
+ i.includes(e) ? s.delete(e) : s.get(e) !== !0 && s.set(e, !1);
16
+ }
17
+ }, [o, i.length, i.join("-")]);
18
+ const c = [];
19
+ if (r !== M) {
20
+ let t = [...r];
21
+ for (let e = 0; e < o.length; e++) {
22
+ const n = o[e], m = l(n);
23
+ i.includes(m) || (t.splice(e, 0, n), c.push(n));
24
+ }
25
+ return u === "wait" && c.length && (t = c), y(j(t)), N(r), null;
26
+ }
27
+ process.env.NODE_ENV !== "production" && u === "wait" && o.length > 1 && console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`);
28
+ const { forceRender: w } = F(G);
29
+ return f.jsx(f.Fragment, { children: o.map((t) => {
30
+ const e = l(t), n = a && !h ? !1 : r === o || i.includes(e), m = () => {
31
+ if (s.has(e))
32
+ s.set(e, !0);
33
+ else
34
+ return;
35
+ let v = !0;
36
+ s.forEach((R) => {
37
+ R || (v = !1);
38
+ }), v && (w == null || w(), y(x.current), a && (g == null || g()), d && d());
39
+ };
40
+ return f.jsx(K, { isPresent: n, initial: !E.current || L ? void 0 : !1, custom: A, presenceAffectsLayout: b, mode: u, onExitComplete: n ? void 0 : m, anchorX: D, children: t }, e);
41
+ }) });
42
+ };
43
+ export {
44
+ B as AnimatePresence
45
+ };
@@ -0,0 +1,17 @@
1
+ import { useContext as c, useId as f, useEffect as i, useCallback as l } from "react";
2
+ import { PresenceContext as a } from "../../context/PresenceContext.js";
3
+ function x(e = !0) {
4
+ const n = c(a);
5
+ if (n === null)
6
+ return [!0, null];
7
+ const { isPresent: s, onExitComplete: t, register: o } = n, r = f();
8
+ i(() => {
9
+ if (e)
10
+ return o(r);
11
+ }, [e]);
12
+ const u = l(() => e && t && t(r), [r, t, e]);
13
+ return !s && t ? [!1, u] : [!0];
14
+ }
15
+ export {
16
+ x as usePresence
17
+ };
@@ -0,0 +1,12 @@
1
+ import { Children as o, isValidElement as l } from "react";
2
+ const s = (e) => e.key || "";
3
+ function i(e) {
4
+ const t = [];
5
+ return o.forEach(e, (n) => {
6
+ l(n) && t.push(n);
7
+ }), t;
8
+ }
9
+ export {
10
+ s as getChildKey,
11
+ i as onlyElements
12
+ };
@@ -0,0 +1,5 @@
1
+ import { createContext as t } from "react";
2
+ const e = t({});
3
+ export {
4
+ e as LayoutGroupContext
5
+ };
@@ -0,0 +1,5 @@
1
+ import { createContext as t } from "react";
2
+ const e = t({ strict: !1 });
3
+ export {
4
+ e as LazyContext
5
+ };
@@ -0,0 +1,9 @@
1
+ import { createContext as o } from "react";
2
+ const n = o({
3
+ transformPagePoint: (t) => t,
4
+ isStatic: !1,
5
+ reducedMotion: "never"
6
+ });
7
+ export {
8
+ n as MotionConfigContext
9
+ };
@@ -0,0 +1,13 @@
1
+ import { useContext as o, useMemo as i } from "react";
2
+ import { MotionContext as a } from "./index.js";
3
+ import { getCurrentTreeVariants as m } from "./utils.js";
4
+ function f(t) {
5
+ const { initial: r, animate: e } = m(t, o(a));
6
+ return i(() => ({ initial: r, animate: e }), [n(r), n(e)]);
7
+ }
8
+ function n(t) {
9
+ return Array.isArray(t) ? t.join(" ") : t;
10
+ }
11
+ export {
12
+ f as useCreateMotionContext
13
+ };
@@ -0,0 +1,5 @@
1
+ import { createContext as t } from "react";
2
+ const e = /* @__PURE__ */ t({});
3
+ export {
4
+ e as MotionContext
5
+ };
@@ -0,0 +1,15 @@
1
+ import { isControllingVariants as e } from "../../render/utils/is-controlling-variants.js";
2
+ import { isVariantLabel as n } from "../../render/utils/is-variant-label.js";
3
+ function l(i, r) {
4
+ if (e(i)) {
5
+ const { initial: t, animate: a } = i;
6
+ return {
7
+ initial: t === !1 || n(t) ? t : void 0,
8
+ animate: n(a) ? a : void 0
9
+ };
10
+ }
11
+ return i.inherit !== !1 ? r : {};
12
+ }
13
+ export {
14
+ l as getCurrentTreeVariants
15
+ };
@@ -0,0 +1,5 @@
1
+ import { createContext as e } from "react";
2
+ const o = /* @__PURE__ */ e(null);
3
+ export {
4
+ o as PresenceContext
5
+ };
@@ -0,0 +1,5 @@
1
+ import { createContext as t } from "react";
2
+ const e = t({});
3
+ export {
4
+ e as SwitchLayoutGroupContext
5
+ };
@@ -0,0 +1,5 @@
1
+ import { backIn as o } from "./back.js";
2
+ const i = (a) => (a *= 2) < 1 ? 0.5 * o(a) : 0.5 * (2 - Math.pow(2, -10 * (a - 1)));
3
+ export {
4
+ i as anticipate
5
+ };
@@ -0,0 +1,9 @@
1
+ import { cubicBezier as r } from "./cubic-bezier.js";
2
+ import { mirrorEasing as s } from "./modifiers/mirror.js";
3
+ import { reverseEasing as a } from "./modifiers/reverse.js";
4
+ const i = /* @__PURE__ */ r(0.33, 1.53, 0.69, 0.99), o = /* @__PURE__ */ a(i), e = /* @__PURE__ */ s(o);
5
+ export {
6
+ o as backIn,
7
+ e as backInOut,
8
+ i as backOut
9
+ };
@@ -0,0 +1,8 @@
1
+ import { mirrorEasing as a } from "./modifiers/mirror.js";
2
+ import { reverseEasing as i } from "./modifiers/reverse.js";
3
+ const r = (s) => 1 - Math.sin(Math.acos(s)), o = i(r), n = a(r);
4
+ export {
5
+ r as circIn,
6
+ n as circInOut,
7
+ o as circOut
8
+ };
@@ -0,0 +1,19 @@
1
+ import "../../../../motion-utils/dist/es/errors.js";
2
+ import { noop as f } from "../../../../motion-utils/dist/es/noop.js";
3
+ const a = (n, t, r) => (((1 - 3 * r + 3 * t) * n + (3 * r - 6 * t)) * n + 3 * t) * n, p = 1e-7, h = 12;
4
+ function i(n, t, r, u, s) {
5
+ let o, e, c = 0;
6
+ do
7
+ e = t + (r - t) / 2, o = a(e, u, s) - n, o > 0 ? r = e : t = e;
8
+ while (Math.abs(o) > p && ++c < h);
9
+ return e;
10
+ }
11
+ function b(n, t, r, u) {
12
+ if (n === t && r === u)
13
+ return f;
14
+ const s = (o) => i(o, 0, 1, n, r);
15
+ return (o) => o === 0 || o === 1 ? o : a(s(o), t, u);
16
+ }
17
+ export {
18
+ b as cubicBezier
19
+ };
@@ -0,0 +1,7 @@
1
+ import { cubicBezier as e } from "./cubic-bezier.js";
2
+ const a = /* @__PURE__ */ e(0.42, 0, 1, 1), o = /* @__PURE__ */ e(0, 0, 0.58, 1), t = /* @__PURE__ */ e(0.42, 0, 0.58, 1);
3
+ export {
4
+ a as easeIn,
5
+ t as easeInOut,
6
+ o as easeOut
7
+ };
@@ -0,0 +1,4 @@
1
+ const a = (t) => (s) => s <= 0.5 ? t(2 * s) / 2 : (2 - t(2 * (1 - s))) / 2;
2
+ export {
3
+ a as mirrorEasing
4
+ };
@@ -0,0 +1,4 @@
1
+ const r = (s) => (e) => 1 - s(1 - e);
2
+ export {
3
+ r as reverseEasing
4
+ };
@@ -0,0 +1,4 @@
1
+ const a = (r) => Array.isArray(r) && typeof r[0] != "number";
2
+ export {
3
+ a as isEasingArray
4
+ };
@@ -0,0 +1,32 @@
1
+ import { invariant as a } from "../../../../../motion-utils/dist/es/errors.js";
2
+ import { noop as c } from "../../../../../motion-utils/dist/es/noop.js";
3
+ import { isBezierDefinition as o } from "../../../../../motion-dom/dist/es/utils/is-bezier-definition.js";
4
+ import { anticipate as u } from "../anticipate.js";
5
+ import { backOut as m, backInOut as f, backIn as p } from "../back.js";
6
+ import { circOut as I, circInOut as O, circIn as b } from "../circ.js";
7
+ import { cubicBezier as $ } from "../cubic-bezier.js";
8
+ import { easeOut as k, easeInOut as l, easeIn as g } from "../ease.js";
9
+ const t = {
10
+ linear: c,
11
+ easeIn: g,
12
+ easeInOut: l,
13
+ easeOut: k,
14
+ circIn: b,
15
+ circInOut: O,
16
+ circOut: I,
17
+ backIn: p,
18
+ backInOut: f,
19
+ backOut: m,
20
+ anticipate: u
21
+ }, C = (i) => {
22
+ if (o(i)) {
23
+ a(i.length === 4, "Cubic bezier arrays must contain four numerical values.");
24
+ const [n, e, s, r] = i;
25
+ return $(n, e, s, r);
26
+ } else if (typeof i == "string")
27
+ return a(t[i] !== void 0, `Invalid easing type '${i}'`), t[i];
28
+ return i;
29
+ };
30
+ export {
31
+ C as easingDefinitionToFunction
32
+ };
@@ -0,0 +1,6 @@
1
+ function i(e, t, n, r = { passive: !0 }) {
2
+ return e.addEventListener(t, n, r), () => e.removeEventListener(t, n);
3
+ }
4
+ export {
5
+ i as addDomEvent
6
+ };
@@ -0,0 +1,8 @@
1
+ import { addDomEvent as a } from "./add-dom-event.js";
2
+ import { addPointerInfo as d } from "./event-info.js";
3
+ function f(o, r, t, n) {
4
+ return a(o, r, d(t), n);
5
+ }
6
+ export {
7
+ f as addPointerEvent
8
+ };
@@ -0,0 +1,15 @@
1
+ import "../../../../motion-utils/dist/es/errors.js";
2
+ import { isPrimaryPointer as o } from "../../../../motion-dom/dist/es/gestures/utils/is-primary-pointer.js";
3
+ function r(t) {
4
+ return {
5
+ point: {
6
+ x: t.pageX,
7
+ y: t.pageY
8
+ }
9
+ };
10
+ }
11
+ const e = (t) => (n) => o(n) && t(n, r(n));
12
+ export {
13
+ e as addPointerInfo,
14
+ r as extractEventInfo
15
+ };