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,41 @@
1
+ import { invariant as c } from "../../../../motion-utils/dist/es/errors.js";
2
+ import { noop as g } from "../../../../motion-utils/dist/es/noop.js";
3
+ import { progress as h } from "../../../../motion-utils/dist/es/progress.js";
4
+ import { clamp as $ } from "./clamp.js";
5
+ import { mix as v } from "./mix/index.js";
6
+ import { pipe as x } from "./pipe.js";
7
+ function y(t, n, p) {
8
+ const a = [], f = p || v, o = t.length - 1;
9
+ for (let r = 0; r < o; r++) {
10
+ let s = f(t[r], t[r + 1]);
11
+ if (n) {
12
+ const m = Array.isArray(n) ? n[r] || g : n;
13
+ s = x(m, s);
14
+ }
15
+ a.push(s);
16
+ }
17
+ return a;
18
+ }
19
+ function j(t, n, { clamp: p = !0, ease: a, mixer: f } = {}) {
20
+ const o = t.length;
21
+ if (c(o === n.length, "Both input and output ranges must be the same length"), o === 1)
22
+ return () => n[0];
23
+ if (o === 2 && n[0] === n[1])
24
+ return () => n[1];
25
+ const r = t[0] === t[1];
26
+ t[0] > t[o - 1] && (t = [...t].reverse(), n = [...n].reverse());
27
+ const s = y(n, a, f), m = s.length, u = (i) => {
28
+ if (r && i < t[0])
29
+ return n[0];
30
+ let e = 0;
31
+ if (m > 1)
32
+ for (; e < t.length - 2 && !(i < t[e + 1]); e++)
33
+ ;
34
+ const l = h(t[e], t[e + 1], i);
35
+ return s[e](l);
36
+ };
37
+ return p ? (i) => u($(t[0], t[o - 1], i)) : u;
38
+ }
39
+ export {
40
+ j as interpolate
41
+ };
@@ -0,0 +1,4 @@
1
+ const o = typeof window < "u";
2
+ export {
3
+ o as isBrowser
4
+ };
@@ -0,0 +1,4 @@
1
+ const d = (t) => /^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t);
2
+ export {
3
+ d as isNumericalString
4
+ };
@@ -0,0 +1,6 @@
1
+ function t(e) {
2
+ return e && typeof e == "object" && Object.prototype.hasOwnProperty.call(e, "current");
3
+ }
4
+ export {
5
+ t as isRefObject
6
+ };
@@ -0,0 +1,4 @@
1
+ const s = (e) => /^0[^.\s]+$/u.test(e);
2
+ export {
3
+ s as isZeroValueString
4
+ };
@@ -0,0 +1,29 @@
1
+ import { mixNumber as f } from "./number.js";
2
+ import { warning as u } from "../../../../../motion-utils/dist/es/errors.js";
3
+ import { hslaToRgba as p } from "../hsla-to-rgba.js";
4
+ import { hex as c } from "../../value/types/color/hex.js";
5
+ import { rgba as i } from "../../value/types/color/rgba.js";
6
+ import { hsla as l } from "../../value/types/color/hsla.js";
7
+ import { mixImmediate as h } from "./immediate.js";
8
+ const m = (t, r, e) => {
9
+ const o = t * t, a = e * (r * r - o) + o;
10
+ return a < 0 ? 0 : Math.sqrt(a);
11
+ }, b = [c, i, l], d = (t) => b.find((r) => r.test(t));
12
+ function s(t) {
13
+ const r = d(t);
14
+ if (u(!!r, `'${t}' is not an animatable color. Use the equivalent color code instead.`), !r)
15
+ return !1;
16
+ let e = r.parse(t);
17
+ return r === l && (e = p(e)), e;
18
+ }
19
+ const w = (t, r) => {
20
+ const e = s(t), o = s(r);
21
+ if (!e || !o)
22
+ return h(t, r);
23
+ const a = { ...e };
24
+ return (n) => (a.red = m(e.red, o.red, n), a.green = m(e.green, o.green, n), a.blue = m(e.blue, o.blue, n), a.alpha = f(e.alpha, o.alpha, n), i.transform(a));
25
+ };
26
+ export {
27
+ w as mixColor,
28
+ m as mixLinearColor
29
+ };
@@ -0,0 +1,52 @@
1
+ import { mixNumber as h } from "./number.js";
2
+ import { mixColor as m } from "./color.js";
3
+ import { pipe as v } from "../pipe.js";
4
+ import { warning as g } from "../../../../../motion-utils/dist/es/errors.js";
5
+ import { color as l } from "../../value/types/color/index.js";
6
+ import { complex as b, analyseComplexValue as u } from "../../value/types/complex/index.js";
7
+ import { isCSSVariableToken as y } from "../../render/dom/utils/is-css-variable.js";
8
+ import { mixVisibility as C, invisibleValues as f } from "./visibility.js";
9
+ import { mixImmediate as i } from "./immediate.js";
10
+ function A(r, o) {
11
+ return (e) => h(r, o, e);
12
+ }
13
+ function c(r) {
14
+ return typeof r == "number" ? A : typeof r == "string" ? y(r) ? i : l.test(r) ? m : S : Array.isArray(r) ? p : typeof r == "object" ? l.test(r) ? m : V : i;
15
+ }
16
+ function p(r, o) {
17
+ const e = [...r], t = e.length, n = r.map((s, a) => c(s)(s, o[a]));
18
+ return (s) => {
19
+ for (let a = 0; a < t; a++)
20
+ e[a] = n[a](s);
21
+ return e;
22
+ };
23
+ }
24
+ function V(r, o) {
25
+ const e = { ...r, ...o }, t = {};
26
+ for (const n in e)
27
+ r[n] !== void 0 && o[n] !== void 0 && (t[n] = c(r[n])(r[n], o[n]));
28
+ return (n) => {
29
+ for (const s in t)
30
+ e[s] = t[s](n);
31
+ return e;
32
+ };
33
+ }
34
+ function k(r, o) {
35
+ var e;
36
+ const t = [], n = { color: 0, var: 0, number: 0 };
37
+ for (let s = 0; s < o.values.length; s++) {
38
+ const a = o.types[s], x = r.indexes[a][n[a]], d = (e = r.values[x]) !== null && e !== void 0 ? e : 0;
39
+ t[s] = d, n[a]++;
40
+ }
41
+ return t;
42
+ }
43
+ const S = (r, o) => {
44
+ const e = b.createTransformer(o), t = u(r), n = u(o);
45
+ return t.indexes.var.length === n.indexes.var.length && t.indexes.color.length === n.indexes.color.length && t.indexes.number.length >= n.indexes.number.length ? f.has(r) && !n.values.length || f.has(o) && !t.values.length ? C(r, o) : v(p(k(t, n), n.values), e) : (g(!0, `Complex values '${r}' and '${o}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`), i(r, o));
46
+ };
47
+ export {
48
+ c as getMixer,
49
+ p as mixArray,
50
+ S as mixComplex,
51
+ V as mixObject
52
+ };
@@ -0,0 +1,6 @@
1
+ function i(e, m) {
2
+ return (t) => t > 0 ? m : e;
3
+ }
4
+ export {
5
+ i as mixImmediate
6
+ };
@@ -0,0 +1,8 @@
1
+ import { getMixer as t } from "./complex.js";
2
+ import { mixNumber as e } from "./number.js";
3
+ function p(m, o, r) {
4
+ return typeof m == "number" && typeof o == "number" && typeof r == "number" ? e(m, o, r) : t(m)(m, o);
5
+ }
6
+ export {
7
+ p as mix
8
+ };
@@ -0,0 +1,4 @@
1
+ const r = (m, n, o) => m + (n - m) * o;
2
+ export {
3
+ r as mixNumber
4
+ };
@@ -0,0 +1,8 @@
1
+ const t = /* @__PURE__ */ new Set(["none", "hidden"]);
2
+ function e(i, s) {
3
+ return t.has(i) ? (n) => n <= 0 ? i : s : (n) => n >= 1 ? s : i;
4
+ }
5
+ export {
6
+ t as invisibleValues,
7
+ e as mixVisibility
8
+ };
@@ -0,0 +1,8 @@
1
+ import { fillOffset as n } from "./fill.js";
2
+ function o(t) {
3
+ const f = [0];
4
+ return n(f, t.length - 1), f;
5
+ }
6
+ export {
7
+ o as defaultOffset
8
+ };
@@ -0,0 +1,13 @@
1
+ import "../../../../../motion-utils/dist/es/errors.js";
2
+ import { progress as n } from "../../../../../motion-utils/dist/es/progress.js";
3
+ import { mixNumber as f } from "../mix/number.js";
4
+ function l(r, o) {
5
+ const t = r[r.length - 1];
6
+ for (let s = 1; s <= o; s++) {
7
+ const m = n(0, o, s);
8
+ r.push(f(t, 1, m));
9
+ }
10
+ }
11
+ export {
12
+ l as fillOffset
13
+ };
@@ -0,0 +1,6 @@
1
+ function n(e, o) {
2
+ return e.map((t) => t * o);
3
+ }
4
+ export {
5
+ n as convertOffsetToTimes
6
+ };
@@ -0,0 +1,4 @@
1
+ const t = (e, o) => (p) => o(e(p)), c = (...e) => e.reduce(t);
2
+ export {
3
+ c as pipe
4
+ };
@@ -0,0 +1,13 @@
1
+ import { isBrowser as i } from "../is-browser.js";
2
+ import { hasReducedMotionListener as o, prefersReducedMotion as t } from "./state.js";
3
+ function d() {
4
+ if (o.current = !0, !!i)
5
+ if (window.matchMedia) {
6
+ const e = window.matchMedia("(prefers-reduced-motion)"), r = () => t.current = e.matches;
7
+ e.addListener(r), r();
8
+ } else
9
+ t.current = !1;
10
+ }
11
+ export {
12
+ d as initPrefersReducedMotion
13
+ };
@@ -0,0 +1,5 @@
1
+ const e = { current: null }, n = { current: !1 };
2
+ export {
3
+ n as hasReducedMotionListener,
4
+ e as prefersReducedMotion
5
+ };
@@ -0,0 +1,6 @@
1
+ import { isKeyframesTarget as s } from "../animation/utils/is-keyframes-target.js";
2
+ const o = (a) => !!(a && typeof a == "object" && a.mix && a.toValue), t = (a) => s(a) ? a[a.length - 1] || 0 : a;
3
+ export {
4
+ o as isCustomValue,
5
+ t as resolveFinalValueInKeyframes
6
+ };
@@ -0,0 +1,14 @@
1
+ function f(n, e) {
2
+ if (!Array.isArray(e))
3
+ return !1;
4
+ const t = e.length;
5
+ if (t !== n.length)
6
+ return !1;
7
+ for (let r = 0; r < t; r++)
8
+ if (e[r] !== n[r])
9
+ return !1;
10
+ return !0;
11
+ }
12
+ export {
13
+ f as shallowCompare
14
+ };
@@ -0,0 +1,8 @@
1
+ import { useRef as t } from "react";
2
+ function e(n) {
3
+ const r = t(null);
4
+ return r.current === null && (r.current = n()), r.current;
5
+ }
6
+ export {
7
+ e as useConstant
8
+ };
@@ -0,0 +1,6 @@
1
+ import { useLayoutEffect as o, useEffect as s } from "react";
2
+ import { isBrowser as e } from "./is-browser.js";
3
+ const r = e ? o : s;
4
+ export {
5
+ r as useIsomorphicLayoutEffect
6
+ };
@@ -0,0 +1,19 @@
1
+ import { rgba as a } from "./rgba.js";
2
+ import { isColorString as i } from "./utils.js";
3
+ function g(s) {
4
+ let n = "", r = "", e = "", t = "";
5
+ return s.length > 5 ? (n = s.substring(1, 3), r = s.substring(3, 5), e = s.substring(5, 7), t = s.substring(7, 9)) : (n = s.substring(1, 2), r = s.substring(2, 3), e = s.substring(3, 4), t = s.substring(4, 5), n += n, r += r, e += e, t += t), {
6
+ red: parseInt(n, 16),
7
+ green: parseInt(r, 16),
8
+ blue: parseInt(e, 16),
9
+ alpha: t ? parseInt(t, 16) / 255 : 1
10
+ };
11
+ }
12
+ const b = {
13
+ test: /* @__PURE__ */ i("#"),
14
+ parse: g,
15
+ transform: a.transform
16
+ };
17
+ export {
18
+ b as hex
19
+ };
@@ -0,0 +1,12 @@
1
+ import { alpha as i } from "../numbers/index.js";
2
+ import { percent as s } from "../numbers/units.js";
3
+ import { sanitize as r } from "../utils/sanitize.js";
4
+ import { splitColor as e, isColorString as h } from "./utils.js";
5
+ const u = {
6
+ test: /* @__PURE__ */ h("hsl", "hue"),
7
+ parse: /* @__PURE__ */ e("hue", "saturation", "lightness"),
8
+ transform: ({ hue: a, saturation: t, lightness: o, alpha: n = 1 }) => "hsla(" + Math.round(a) + ", " + s.transform(r(t)) + ", " + s.transform(r(o)) + ", " + r(i.transform(n)) + ")"
9
+ };
10
+ export {
11
+ u as hsla
12
+ };
@@ -0,0 +1,11 @@
1
+ import { hex as o } from "./hex.js";
2
+ import { hsla as s } from "./hsla.js";
3
+ import { rgba as e } from "./rgba.js";
4
+ const m = {
5
+ test: (t) => e.test(t) || o.test(t) || s.test(t),
6
+ parse: (t) => e.test(t) ? e.parse(t) : s.test(t) ? s.parse(t) : o.parse(t),
7
+ transform: (t) => typeof t == "string" ? t : t.hasOwnProperty("red") ? e.transform(t) : s.transform(t)
8
+ };
9
+ export {
10
+ m as color
11
+ };
@@ -0,0 +1,16 @@
1
+ import { clamp as m } from "../../../utils/clamp.js";
2
+ import { number as n, alpha as e } from "../numbers/index.js";
3
+ import { sanitize as f } from "../utils/sanitize.js";
4
+ import { splitColor as i, isColorString as p } from "./utils.js";
5
+ const l = (r) => m(0, 255, r), a = {
6
+ ...n,
7
+ transform: (r) => Math.round(l(r))
8
+ }, d = {
9
+ test: /* @__PURE__ */ p("rgb", "red"),
10
+ parse: /* @__PURE__ */ i("red", "green", "blue"),
11
+ transform: ({ red: r, green: o, blue: s, alpha: t = 1 }) => "rgba(" + a.transform(r) + ", " + a.transform(o) + ", " + a.transform(s) + ", " + f(e.transform(t)) + ")"
12
+ };
13
+ export {
14
+ a as rgbUnit,
15
+ d as rgba
16
+ };
@@ -0,0 +1,18 @@
1
+ import { floatRegex as i } from "../utils/float-regex.js";
2
+ import { isNullish as n } from "../utils/is-nullish.js";
3
+ import { singleColorRegex as f } from "../utils/single-color-regex.js";
4
+ const c = (t, r) => (o) => !!(typeof o == "string" && f.test(o) && o.startsWith(t) || r && !n(o) && Object.prototype.hasOwnProperty.call(o, r)), u = (t, r, o) => (s) => {
5
+ if (typeof s != "string")
6
+ return s;
7
+ const [e, l, p, a] = s.match(i);
8
+ return {
9
+ [t]: parseFloat(e),
10
+ [r]: parseFloat(l),
11
+ [o]: parseFloat(p),
12
+ alpha: a !== void 0 ? parseFloat(a) : 1
13
+ };
14
+ };
15
+ export {
16
+ c as isColorString,
17
+ u as splitColor
18
+ };
@@ -0,0 +1,24 @@
1
+ import { complex as s } from "./index.js";
2
+ import { floatRegex as c } from "../utils/float-regex.js";
3
+ const i = /* @__PURE__ */ new Set(["brightness", "contrast", "saturate", "opacity"]);
4
+ function p(t) {
5
+ const [e, o] = t.slice(0, -1).split("(");
6
+ if (e === "drop-shadow")
7
+ return t;
8
+ const [r] = o.match(c) || [];
9
+ if (!r)
10
+ return t;
11
+ const a = o.replace(r, "");
12
+ let n = i.has(e) ? 1 : 0;
13
+ return r !== o && (n *= 100), e + "(" + n + a + ")";
14
+ }
15
+ const l = /\b([a-z-]*)\(.*?\)/gu, f = {
16
+ ...s,
17
+ getAnimatableNone: (t) => {
18
+ const e = t.match(l);
19
+ return e ? e.map(p).join(" ") : t;
20
+ }
21
+ };
22
+ export {
23
+ f as filter
24
+ };
@@ -0,0 +1,49 @@
1
+ import { color as p } from "../color/index.js";
2
+ import { colorRegex as h } from "../utils/color-regex.js";
3
+ import { floatRegex as v } from "../utils/float-regex.js";
4
+ import { sanitize as g } from "../utils/sanitize.js";
5
+ function b(s) {
6
+ var r, e;
7
+ return isNaN(s) && typeof s == "string" && (((r = s.match(v)) === null || r === void 0 ? void 0 : r.length) || 0) + (((e = s.match(h)) === null || e === void 0 ? void 0 : e.length) || 0) > 0;
8
+ }
9
+ const i = "number", m = "color", x = "var", y = "var(", u = "${}", N = /var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;
10
+ function c(s) {
11
+ const r = s.toString(), e = [], l = {
12
+ color: [],
13
+ number: [],
14
+ var: []
15
+ }, n = [];
16
+ let o = 0;
17
+ const t = r.replace(N, (a) => (p.test(a) ? (l.color.push(o), n.push(m), e.push(p.parse(a))) : a.startsWith(y) ? (l.var.push(o), n.push(x), e.push(a)) : (l.number.push(o), n.push(i), e.push(parseFloat(a))), ++o, u)).split(u);
18
+ return { values: e, split: t, indexes: l, types: n };
19
+ }
20
+ function d(s) {
21
+ return c(s).values;
22
+ }
23
+ function f(s) {
24
+ const { split: r, types: e } = c(s), l = r.length;
25
+ return (n) => {
26
+ let o = "";
27
+ for (let t = 0; t < l; t++)
28
+ if (o += r[t], n[t] !== void 0) {
29
+ const a = e[t];
30
+ a === i ? o += g(n[t]) : a === m ? o += p.transform(n[t]) : o += n[t];
31
+ }
32
+ return o;
33
+ };
34
+ }
35
+ const R = (s) => typeof s == "number" ? 0 : s;
36
+ function w(s) {
37
+ const r = d(s);
38
+ return f(s)(r.map(R));
39
+ }
40
+ const F = {
41
+ test: b,
42
+ parse: d,
43
+ createTransformer: f,
44
+ getAnimatableNone: w
45
+ };
46
+ export {
47
+ c as analyseComplexValue,
48
+ F as complex
49
+ };
@@ -0,0 +1,17 @@
1
+ import { clamp as s } from "../../../utils/clamp.js";
2
+ const r = {
3
+ test: (a) => typeof a == "number",
4
+ parse: parseFloat,
5
+ transform: (a) => a
6
+ }, t = {
7
+ ...r,
8
+ transform: (a) => s(0, 1, a)
9
+ }, o = {
10
+ ...r,
11
+ default: 1
12
+ };
13
+ export {
14
+ t as alpha,
15
+ r as number,
16
+ o as scale
17
+ };
@@ -0,0 +1,17 @@
1
+ const r = (s) => ({
2
+ test: (e) => typeof e == "string" && e.endsWith(s) && e.split(" ").length === 1,
3
+ parse: parseFloat,
4
+ transform: (e) => `${e}${s}`
5
+ }), t = /* @__PURE__ */ r("deg"), a = /* @__PURE__ */ r("%"), p = /* @__PURE__ */ r("px"), n = /* @__PURE__ */ r("vh"), o = /* @__PURE__ */ r("vw"), g = {
6
+ ...a,
7
+ parse: (s) => a.parse(s) / 100,
8
+ transform: (s) => a.transform(s * 100)
9
+ };
10
+ export {
11
+ t as degrees,
12
+ a as percent,
13
+ g as progressPercentage,
14
+ p as px,
15
+ n as vh,
16
+ o as vw
17
+ };
@@ -0,0 +1,4 @@
1
+ const d = /(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;
2
+ export {
3
+ d as colorRegex
4
+ };
@@ -0,0 +1,4 @@
1
+ const d = /-?(?:\d+(?:\.\d+)?|\.\d+)/gu;
2
+ export {
3
+ d as floatRegex
4
+ };
@@ -0,0 +1,6 @@
1
+ function l(n) {
2
+ return n == null;
3
+ }
4
+ export {
5
+ l as isNullish
6
+ };
@@ -0,0 +1,4 @@
1
+ const n = (e) => Math.round(e * 1e5) / 1e5;
2
+ export {
3
+ n as sanitize
4
+ };
@@ -0,0 +1,4 @@
1
+ const d = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu;
2
+ export {
3
+ d as singleColorRegex
4
+ };
@@ -0,0 +1,9 @@
1
+ import { isWillChangeMotionValue as o } from "./is.js";
2
+ function n(l, e) {
3
+ const a = l.getValue("willChange");
4
+ if (o(a))
5
+ return a.add(e);
6
+ }
7
+ export {
8
+ n as addValueToWillChange
9
+ };
@@ -0,0 +1,7 @@
1
+ import { isMotionValue as i } from "../utils/is-motion-value.js";
2
+ function a(t) {
3
+ return !!(i(t) && t.add);
4
+ }
5
+ export {
6
+ a as isWillChangeMotionValue
7
+ };
@@ -0,0 +1,4 @@
1
+ const e = (t) => !!(t && t.getVelocity);
2
+ export {
3
+ e as isMotionValue
4
+ };
@@ -0,0 +1,9 @@
1
+ import { isCustomValue as e } from "../../utils/resolve-value.js";
2
+ import { isMotionValue as r } from "./is-motion-value.js";
3
+ function a(t) {
4
+ const o = r(t) ? t.get() : t;
5
+ return e(o) ? o.toValue() : o;
6
+ }
7
+ export {
8
+ a as resolveMotionValue
9
+ };