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.
- package/dist/_virtual/client.js +3 -22
- package/dist/_virtual/index2.js +3 -2
- package/dist/_virtual/index3.js +3 -3
- package/dist/_virtual/index4.js +5 -3
- package/dist/_virtual/index5.js +2 -5
- package/dist/_virtual/index7.js +2 -2
- package/dist/_virtual/index8.js +2 -2
- package/dist/components/atoms/Avatar/Avatar.js +71 -30
- package/dist/components/atoms/UploadContainer/UploadContainer.js +88 -47
- package/dist/components/molecules/AlertModal/AlertModal.js +67 -26
- package/dist/components/molecules/CalendarSelector/CalendarSelector.js +205 -145
- package/dist/components/molecules/DateInput/DateInput.d.ts +2 -2
- package/dist/components/molecules/DateInput/DateInput.js +63 -50
- package/dist/components/molecules/DialogModal/DialogModal.js +78 -37
- package/dist/components/molecules/FloatingMenu/FloatingMenu.js +74 -33
- package/dist/components/molecules/Tabs/Tabs.js +82 -41
- package/dist/dist/_virtual/_commonjsHelpers.js +8 -0
- package/dist/dist/_virtual/index.js +7 -0
- package/dist/dist/_virtual/index3.js +5 -0
- package/dist/dist/_virtual/index4.js +5 -0
- package/dist/dist/_virtual/index5.js +7 -0
- package/dist/dist/_virtual/index6.js +4 -0
- package/dist/dist/_virtual/index7.js +4 -0
- package/dist/dist/_virtual/index8.js +4 -0
- package/dist/dist/_virtual/jsx-runtime.js +5 -0
- package/dist/dist/_virtual/jsx-runtime2.js +4 -0
- package/dist/dist/_virtual/lodash.js +2 -0
- package/dist/dist/_virtual/lodash2.js +4 -0
- package/dist/dist/_virtual/react-is.development.js +4 -0
- package/dist/dist/_virtual/react-is.production.min.js +4 -0
- package/dist/dist/_virtual/react-jsx-runtime.development.js +4 -0
- package/dist/dist/_virtual/react-jsx-runtime.production.js +4 -0
- package/dist/dist/components/atoms/AsyncToast/index.js +33 -0
- package/dist/dist/components/atoms/ImageProfileInput/ImageProfileInput.validators.js +5 -0
- package/dist/dist/components/atoms/Toast/Toast.js +113 -0
- package/dist/dist/constants/countries.js +8 -0
- package/dist/dist/contexts/themeContext.js +3 -0
- package/dist/dist/node_modules/@floating-ui/react/dist/floating-ui.react.js +4 -0
- package/dist/dist/node_modules/@fortawesome/fontawesome-svg-core/index.js +2661 -0
- package/dist/dist/node_modules/@fortawesome/pro-light-svg-icons/index.js +33 -0
- package/dist/dist/node_modules/@fortawesome/react-fontawesome/index.es.js +266 -0
- package/dist/dist/node_modules/framer-motion/dist/es/animation/animate/single-value.js +11 -0
- package/dist/dist/node_modules/framer-motion/dist/es/animation/animators/AcceleratedAnimation.js +205 -0
- package/dist/dist/node_modules/framer-motion/dist/es/animation/animators/BaseAnimation.js +83 -0
- package/dist/dist/node_modules/framer-motion/dist/es/animation/animators/MainThreadAnimation.js +147 -0
- package/dist/dist/node_modules/framer-motion/dist/es/animation/animators/drivers/driver-frameloop.js +18 -0
- package/dist/dist/node_modules/framer-motion/dist/es/animation/animators/utils/accelerated-values.js +12 -0
- package/dist/dist/node_modules/framer-motion/dist/es/animation/animators/utils/can-animate.js +23 -0
- package/dist/dist/node_modules/framer-motion/dist/es/animation/animators/waapi/index.js +18 -0
- package/dist/dist/node_modules/framer-motion/dist/es/animation/animators/waapi/utils/get-final-keyframe.js +8 -0
- package/dist/dist/node_modules/framer-motion/dist/es/animation/animators/waapi/utils/supports-waapi.js +6 -0
- package/dist/dist/node_modules/framer-motion/dist/es/animation/generators/inertia.js +37 -0
- package/dist/dist/node_modules/framer-motion/dist/es/animation/generators/keyframes.js +30 -0
- package/dist/dist/node_modules/framer-motion/dist/es/animation/generators/spring/defaults.js +32 -0
- package/dist/dist/node_modules/framer-motion/dist/es/animation/generators/spring/find.js +52 -0
- package/dist/dist/node_modules/framer-motion/dist/es/animation/generators/spring/index.js +92 -0
- package/dist/dist/node_modules/framer-motion/dist/es/animation/generators/utils/velocity.js +10 -0
- package/dist/dist/node_modules/framer-motion/dist/es/animation/interfaces/motion-value.js +47 -0
- package/dist/dist/node_modules/framer-motion/dist/es/animation/interfaces/visual-element-target.js +46 -0
- package/dist/dist/node_modules/framer-motion/dist/es/animation/interfaces/visual-element-variant.js +33 -0
- package/dist/dist/node_modules/framer-motion/dist/es/animation/interfaces/visual-element.js +22 -0
- package/dist/dist/node_modules/framer-motion/dist/es/animation/optimized-appear/data-id.js +6 -0
- package/dist/dist/node_modules/framer-motion/dist/es/animation/optimized-appear/get-appear-id.js +7 -0
- package/dist/dist/node_modules/framer-motion/dist/es/animation/utils/default-transitions.js +22 -0
- package/dist/dist/node_modules/framer-motion/dist/es/animation/utils/is-animatable.js +7 -0
- package/dist/dist/node_modules/framer-motion/dist/es/animation/utils/is-animation-controls.js +6 -0
- package/dist/dist/node_modules/framer-motion/dist/es/animation/utils/is-keyframes-target.js +4 -0
- package/dist/dist/node_modules/framer-motion/dist/es/animation/utils/is-none.js +7 -0
- package/dist/dist/node_modules/framer-motion/dist/es/animation/utils/is-transition-defined.js +6 -0
- package/dist/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PopChild.js +53 -0
- package/dist/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PresenceChild.js +41 -0
- package/dist/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/index.js +45 -0
- package/dist/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/use-presence.js +17 -0
- package/dist/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/utils.js +12 -0
- package/dist/dist/node_modules/framer-motion/dist/es/context/LayoutGroupContext.js +5 -0
- package/dist/dist/node_modules/framer-motion/dist/es/context/LazyContext.js +5 -0
- package/dist/dist/node_modules/framer-motion/dist/es/context/MotionConfigContext.js +9 -0
- package/dist/dist/node_modules/framer-motion/dist/es/context/MotionContext/create.js +13 -0
- package/dist/dist/node_modules/framer-motion/dist/es/context/MotionContext/index.js +5 -0
- package/dist/dist/node_modules/framer-motion/dist/es/context/MotionContext/utils.js +15 -0
- package/dist/dist/node_modules/framer-motion/dist/es/context/PresenceContext.js +5 -0
- package/dist/dist/node_modules/framer-motion/dist/es/context/SwitchLayoutGroupContext.js +5 -0
- package/dist/dist/node_modules/framer-motion/dist/es/easing/anticipate.js +5 -0
- package/dist/dist/node_modules/framer-motion/dist/es/easing/back.js +9 -0
- package/dist/dist/node_modules/framer-motion/dist/es/easing/circ.js +8 -0
- package/dist/dist/node_modules/framer-motion/dist/es/easing/cubic-bezier.js +19 -0
- package/dist/dist/node_modules/framer-motion/dist/es/easing/ease.js +7 -0
- package/dist/dist/node_modules/framer-motion/dist/es/easing/modifiers/mirror.js +4 -0
- package/dist/dist/node_modules/framer-motion/dist/es/easing/modifiers/reverse.js +4 -0
- package/dist/dist/node_modules/framer-motion/dist/es/easing/utils/is-easing-array.js +4 -0
- package/dist/dist/node_modules/framer-motion/dist/es/easing/utils/map.js +32 -0
- package/dist/dist/node_modules/framer-motion/dist/es/events/add-dom-event.js +6 -0
- package/dist/dist/node_modules/framer-motion/dist/es/events/add-pointer-event.js +8 -0
- package/dist/dist/node_modules/framer-motion/dist/es/events/event-info.js +15 -0
- package/dist/dist/node_modules/framer-motion/dist/es/gestures/drag/VisualElementDragControls.js +256 -0
- package/dist/dist/node_modules/framer-motion/dist/es/gestures/drag/index.js +19 -0
- package/dist/dist/node_modules/framer-motion/dist/es/gestures/drag/utils/constraints.js +68 -0
- package/dist/dist/node_modules/framer-motion/dist/es/gestures/focus.js +28 -0
- package/dist/dist/node_modules/framer-motion/dist/es/gestures/hover.js +22 -0
- package/dist/dist/node_modules/framer-motion/dist/es/gestures/pan/PanSession.js +85 -0
- package/dist/dist/node_modules/framer-motion/dist/es/gestures/pan/index.js +44 -0
- package/dist/dist/node_modules/framer-motion/dist/es/gestures/press.js +24 -0
- package/dist/dist/node_modules/framer-motion/dist/es/motion/features/Feature.js +10 -0
- package/dist/dist/node_modules/framer-motion/dist/es/motion/features/animation/exit.js +27 -0
- package/dist/dist/node_modules/framer-motion/dist/es/motion/features/animation/index.js +34 -0
- package/dist/dist/node_modules/framer-motion/dist/es/motion/features/animations.js +13 -0
- package/dist/dist/node_modules/framer-motion/dist/es/motion/features/definitions.js +27 -0
- package/dist/dist/node_modules/framer-motion/dist/es/motion/features/drag.js +17 -0
- package/dist/dist/node_modules/framer-motion/dist/es/motion/features/gestures.js +21 -0
- package/dist/dist/node_modules/framer-motion/dist/es/motion/features/layout/MeasureLayout.js +75 -0
- package/dist/dist/node_modules/framer-motion/dist/es/motion/features/layout.js +11 -0
- package/dist/dist/node_modules/framer-motion/dist/es/motion/features/load-features.js +11 -0
- package/dist/dist/node_modules/framer-motion/dist/es/motion/features/viewport/index.js +44 -0
- package/dist/dist/node_modules/framer-motion/dist/es/motion/features/viewport/observers.js +21 -0
- package/dist/dist/node_modules/framer-motion/dist/es/motion/index.js +59 -0
- package/dist/dist/node_modules/framer-motion/dist/es/motion/utils/is-forced-motion-value.js +8 -0
- package/dist/dist/node_modules/framer-motion/dist/es/motion/utils/symbol.js +4 -0
- package/dist/dist/node_modules/framer-motion/dist/es/motion/utils/use-motion-ref.js +18 -0
- package/dist/dist/node_modules/framer-motion/dist/es/motion/utils/use-visual-element.js +65 -0
- package/dist/dist/node_modules/framer-motion/dist/es/motion/utils/use-visual-state.js +53 -0
- package/dist/dist/node_modules/framer-motion/dist/es/motion/utils/valid-prop.js +38 -0
- package/dist/dist/node_modules/framer-motion/dist/es/projection/animation/mix-values.js +31 -0
- package/dist/dist/node_modules/framer-motion/dist/es/projection/geometry/conversion.js +25 -0
- package/dist/dist/node_modules/framer-motion/dist/es/projection/geometry/copy.js +14 -0
- package/dist/dist/node_modules/framer-motion/dist/es/projection/geometry/delta-apply.js +52 -0
- package/dist/dist/node_modules/framer-motion/dist/es/projection/geometry/delta-calc.js +36 -0
- package/dist/dist/node_modules/framer-motion/dist/es/projection/geometry/delta-remove.js +25 -0
- package/dist/dist/node_modules/framer-motion/dist/es/projection/geometry/models.js +18 -0
- package/dist/dist/node_modules/framer-motion/dist/es/projection/geometry/utils.js +34 -0
- package/dist/dist/node_modules/framer-motion/dist/es/projection/node/DocumentProjectionNode.js +13 -0
- package/dist/dist/node_modules/framer-motion/dist/es/projection/node/HTMLProjectionNode.js +25 -0
- package/dist/dist/node_modules/framer-motion/dist/es/projection/node/create-projection-node.js +608 -0
- package/dist/dist/node_modules/framer-motion/dist/es/projection/node/state.js +15 -0
- package/dist/dist/node_modules/framer-motion/dist/es/projection/shared/stack.js +59 -0
- package/dist/dist/node_modules/framer-motion/dist/es/projection/styles/scale-border-radius.js +21 -0
- package/dist/dist/node_modules/framer-motion/dist/es/projection/styles/scale-box-shadow.js +16 -0
- package/dist/dist/node_modules/framer-motion/dist/es/projection/styles/scale-correction.js +10 -0
- package/dist/dist/node_modules/framer-motion/dist/es/projection/styles/transform.js +13 -0
- package/dist/dist/node_modules/framer-motion/dist/es/projection/utils/each-axis.js +6 -0
- package/dist/dist/node_modules/framer-motion/dist/es/projection/utils/has-transform.js +20 -0
- package/dist/dist/node_modules/framer-motion/dist/es/projection/utils/measure.js +13 -0
- package/dist/dist/node_modules/framer-motion/dist/es/render/VisualElement.js +229 -0
- package/dist/dist/node_modules/framer-motion/dist/es/render/components/create-factory.js +20 -0
- package/dist/dist/node_modules/framer-motion/dist/es/render/components/create-proxy.js +18 -0
- package/dist/dist/node_modules/framer-motion/dist/es/render/components/motion/create.js +15 -0
- package/dist/dist/node_modules/framer-motion/dist/es/render/components/motion/proxy.js +6 -0
- package/dist/dist/node_modules/framer-motion/dist/es/render/dom/DOMKeyframesResolver.js +66 -0
- package/dist/dist/node_modules/framer-motion/dist/es/render/dom/DOMVisualElement.js +27 -0
- package/dist/dist/node_modules/framer-motion/dist/es/render/dom/create-visual-element.js +10 -0
- package/dist/dist/node_modules/framer-motion/dist/es/render/dom/use-render.js +18 -0
- package/dist/dist/node_modules/framer-motion/dist/es/render/dom/utils/camel-to-dash.js +4 -0
- package/dist/dist/node_modules/framer-motion/dist/es/render/dom/utils/css-variables-conversion.js +31 -0
- package/dist/dist/node_modules/framer-motion/dist/es/render/dom/utils/filter-props.js +20 -0
- package/dist/dist/node_modules/framer-motion/dist/es/render/dom/utils/is-css-variable.js +5 -0
- package/dist/dist/node_modules/framer-motion/dist/es/render/dom/utils/is-svg-component.js +24 -0
- package/dist/dist/node_modules/framer-motion/dist/es/render/dom/utils/is-svg-element.js +6 -0
- package/dist/dist/node_modules/framer-motion/dist/es/render/dom/utils/unit-conversion.js +31 -0
- package/dist/dist/node_modules/framer-motion/dist/es/render/dom/value-types/animatable-none.js +10 -0
- package/dist/dist/node_modules/framer-motion/dist/es/render/dom/value-types/defaults.js +24 -0
- package/dist/dist/node_modules/framer-motion/dist/es/render/dom/value-types/dimensions.js +9 -0
- package/dist/dist/node_modules/framer-motion/dist/es/render/dom/value-types/find.js +8 -0
- package/dist/dist/node_modules/framer-motion/dist/es/render/dom/value-types/get-as-type.js +4 -0
- package/dist/dist/node_modules/framer-motion/dist/es/render/dom/value-types/number-browser.js +41 -0
- package/dist/dist/node_modules/framer-motion/dist/es/render/dom/value-types/number.js +18 -0
- package/dist/dist/node_modules/framer-motion/dist/es/render/dom/value-types/test.js +4 -0
- package/dist/dist/node_modules/framer-motion/dist/es/render/dom/value-types/transform.js +31 -0
- package/dist/dist/node_modules/framer-motion/dist/es/render/dom/value-types/type-auto.js +7 -0
- package/dist/dist/node_modules/framer-motion/dist/es/render/dom/value-types/type-int.js +8 -0
- package/dist/dist/node_modules/framer-motion/dist/es/render/html/HTMLVisualElement.js +37 -0
- package/dist/dist/node_modules/framer-motion/dist/es/render/html/config-motion.js +12 -0
- package/dist/dist/node_modules/framer-motion/dist/es/render/html/use-props.js +27 -0
- package/dist/dist/node_modules/framer-motion/dist/es/render/html/utils/build-styles.js +29 -0
- package/dist/dist/node_modules/framer-motion/dist/es/render/html/utils/build-transform.js +31 -0
- package/dist/dist/node_modules/framer-motion/dist/es/render/html/utils/create-render-state.js +9 -0
- package/dist/dist/node_modules/framer-motion/dist/es/render/html/utils/keys-position.js +13 -0
- package/dist/dist/node_modules/framer-motion/dist/es/render/html/utils/keys-transform.js +23 -0
- package/dist/dist/node_modules/framer-motion/dist/es/render/html/utils/make-none-animatable.js +16 -0
- package/dist/dist/node_modules/framer-motion/dist/es/render/html/utils/parse-transform.js +64 -0
- package/dist/dist/node_modules/framer-motion/dist/es/render/html/utils/render.js +8 -0
- package/dist/dist/node_modules/framer-motion/dist/es/render/html/utils/scrape-motion-values.js +12 -0
- package/dist/dist/node_modules/framer-motion/dist/es/render/store.js +4 -0
- package/dist/dist/node_modules/framer-motion/dist/es/render/svg/SVGVisualElement.js +48 -0
- package/dist/dist/node_modules/framer-motion/dist/es/render/svg/config-motion.js +44 -0
- package/dist/dist/node_modules/framer-motion/dist/es/render/svg/lowercase-elements.js +30 -0
- package/dist/dist/node_modules/framer-motion/dist/es/render/svg/use-props.js +22 -0
- package/dist/dist/node_modules/framer-motion/dist/es/render/svg/utils/build-attrs.js +26 -0
- package/dist/dist/node_modules/framer-motion/dist/es/render/svg/utils/camel-case-attrs.js +28 -0
- package/dist/dist/node_modules/framer-motion/dist/es/render/svg/utils/create-render-state.js +8 -0
- package/dist/dist/node_modules/framer-motion/dist/es/render/svg/utils/is-svg-tag.js +4 -0
- package/dist/dist/node_modules/framer-motion/dist/es/render/svg/utils/measure.js +15 -0
- package/dist/dist/node_modules/framer-motion/dist/es/render/svg/utils/path.js +18 -0
- package/dist/dist/node_modules/framer-motion/dist/es/render/svg/utils/render.js +11 -0
- package/dist/dist/node_modules/framer-motion/dist/es/render/svg/utils/scrape-motion-values.js +15 -0
- package/dist/dist/node_modules/framer-motion/dist/es/render/svg/utils/transform-origin.js +11 -0
- package/dist/dist/node_modules/framer-motion/dist/es/render/utils/KeyframesResolver.js +77 -0
- package/dist/dist/node_modules/framer-motion/dist/es/render/utils/animation-state.js +128 -0
- package/dist/dist/node_modules/framer-motion/dist/es/render/utils/compare-by-depth.js +4 -0
- package/dist/dist/node_modules/framer-motion/dist/es/render/utils/flat-tree.js +20 -0
- package/dist/dist/node_modules/framer-motion/dist/es/render/utils/get-variant-context.js +20 -0
- package/dist/dist/node_modules/framer-motion/dist/es/render/utils/is-controlling-variants.js +13 -0
- package/dist/dist/node_modules/framer-motion/dist/es/render/utils/is-variant-label.js +6 -0
- package/dist/dist/node_modules/framer-motion/dist/es/render/utils/motion-values.js +27 -0
- package/dist/dist/node_modules/framer-motion/dist/es/render/utils/resolve-dynamic-variants.js +8 -0
- package/dist/dist/node_modules/framer-motion/dist/es/render/utils/resolve-variants.js +20 -0
- package/dist/dist/node_modules/framer-motion/dist/es/render/utils/setters.js +19 -0
- package/dist/dist/node_modules/framer-motion/dist/es/render/utils/variant-props.js +13 -0
- package/dist/dist/node_modules/framer-motion/dist/es/utils/clamp.js +4 -0
- package/dist/dist/node_modules/framer-motion/dist/es/utils/delay.js +13 -0
- package/dist/dist/node_modules/framer-motion/dist/es/utils/distance.js +9 -0
- package/dist/dist/node_modules/framer-motion/dist/es/utils/get-context-window.js +4 -0
- package/dist/dist/node_modules/framer-motion/dist/es/utils/hsla-to-rgba.js +22 -0
- package/dist/dist/node_modules/framer-motion/dist/es/utils/interpolate.js +41 -0
- package/dist/dist/node_modules/framer-motion/dist/es/utils/is-browser.js +4 -0
- package/dist/dist/node_modules/framer-motion/dist/es/utils/is-numerical-string.js +4 -0
- package/dist/dist/node_modules/framer-motion/dist/es/utils/is-ref-object.js +6 -0
- package/dist/dist/node_modules/framer-motion/dist/es/utils/is-zero-value-string.js +4 -0
- package/dist/dist/node_modules/framer-motion/dist/es/utils/mix/color.js +29 -0
- package/dist/dist/node_modules/framer-motion/dist/es/utils/mix/complex.js +52 -0
- package/dist/dist/node_modules/framer-motion/dist/es/utils/mix/immediate.js +6 -0
- package/dist/dist/node_modules/framer-motion/dist/es/utils/mix/index.js +8 -0
- package/dist/dist/node_modules/framer-motion/dist/es/utils/mix/number.js +4 -0
- package/dist/dist/node_modules/framer-motion/dist/es/utils/mix/visibility.js +8 -0
- package/dist/dist/node_modules/framer-motion/dist/es/utils/offsets/default.js +8 -0
- package/dist/dist/node_modules/framer-motion/dist/es/utils/offsets/fill.js +13 -0
- package/dist/dist/node_modules/framer-motion/dist/es/utils/offsets/time.js +6 -0
- package/dist/dist/node_modules/framer-motion/dist/es/utils/pipe.js +4 -0
- package/dist/dist/node_modules/framer-motion/dist/es/utils/reduced-motion/index.js +13 -0
- package/dist/dist/node_modules/framer-motion/dist/es/utils/reduced-motion/state.js +5 -0
- package/dist/dist/node_modules/framer-motion/dist/es/utils/resolve-value.js +6 -0
- package/dist/dist/node_modules/framer-motion/dist/es/utils/shallow-compare.js +14 -0
- package/dist/dist/node_modules/framer-motion/dist/es/utils/use-constant.js +8 -0
- package/dist/dist/node_modules/framer-motion/dist/es/utils/use-isomorphic-effect.js +6 -0
- package/dist/dist/node_modules/framer-motion/dist/es/value/types/color/hex.js +19 -0
- package/dist/dist/node_modules/framer-motion/dist/es/value/types/color/hsla.js +12 -0
- package/dist/dist/node_modules/framer-motion/dist/es/value/types/color/index.js +11 -0
- package/dist/dist/node_modules/framer-motion/dist/es/value/types/color/rgba.js +16 -0
- package/dist/dist/node_modules/framer-motion/dist/es/value/types/color/utils.js +18 -0
- package/dist/dist/node_modules/framer-motion/dist/es/value/types/complex/filter.js +24 -0
- package/dist/dist/node_modules/framer-motion/dist/es/value/types/complex/index.js +49 -0
- package/dist/dist/node_modules/framer-motion/dist/es/value/types/numbers/index.js +17 -0
- package/dist/dist/node_modules/framer-motion/dist/es/value/types/numbers/units.js +17 -0
- package/dist/dist/node_modules/framer-motion/dist/es/value/types/utils/color-regex.js +4 -0
- package/dist/dist/node_modules/framer-motion/dist/es/value/types/utils/float-regex.js +4 -0
- package/dist/dist/node_modules/framer-motion/dist/es/value/types/utils/is-nullish.js +6 -0
- package/dist/dist/node_modules/framer-motion/dist/es/value/types/utils/sanitize.js +4 -0
- package/dist/dist/node_modules/framer-motion/dist/es/value/types/utils/single-color-regex.js +4 -0
- package/dist/dist/node_modules/framer-motion/dist/es/value/use-will-change/add-will-change.js +9 -0
- package/dist/dist/node_modules/framer-motion/dist/es/value/use-will-change/is.js +7 -0
- package/dist/dist/node_modules/framer-motion/dist/es/value/utils/is-motion-value.js +4 -0
- package/dist/dist/node_modules/framer-motion/dist/es/value/utils/resolve-motion-value.js +9 -0
- package/dist/dist/node_modules/lodash/lodash.js +3677 -0
- package/dist/dist/node_modules/motion/dist/es/framer-motion/dist/es/animation/optimized-appear/data-id.js +6 -0
- package/dist/dist/node_modules/motion/dist/es/framer-motion/dist/es/context/LayoutGroupContext.js +2 -0
- package/dist/dist/node_modules/motion/dist/es/framer-motion/dist/es/context/LazyContext.js +2 -0
- package/dist/dist/node_modules/motion/dist/es/framer-motion/dist/es/context/MotionConfigContext.js +6 -0
- package/dist/dist/node_modules/motion/dist/es/framer-motion/dist/es/context/SwitchLayoutGroupContext.js +2 -0
- package/dist/dist/node_modules/motion/dist/es/framer-motion/dist/es/projection/node/create-projection-node.js +12 -0
- package/dist/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/dom/utils/camel-to-dash.js +4 -0
- package/dist/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/dom/utils/filter-props.js +9 -0
- package/dist/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/dom/utils/unit-conversion.js +5 -0
- package/dist/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/dom/value-types/type-int.js +4 -0
- package/dist/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/html/utils/keys-transform.js +23 -0
- package/dist/dist/node_modules/motion/dist/es/framer-motion/dist/es/utils/clamp.js +4 -0
- package/dist/dist/node_modules/motion/dist/es/framer-motion/dist/es/value/types/color/hex.js +19 -0
- package/dist/dist/node_modules/motion/dist/es/framer-motion/dist/es/value/types/color/hsla.js +12 -0
- package/dist/dist/node_modules/motion/dist/es/framer-motion/dist/es/value/types/color/index.js +11 -0
- package/dist/dist/node_modules/motion/dist/es/framer-motion/dist/es/value/types/color/rgba.js +16 -0
- package/dist/dist/node_modules/motion/dist/es/framer-motion/dist/es/value/types/color/utils.js +18 -0
- package/dist/dist/node_modules/motion/dist/es/framer-motion/dist/es/value/types/complex/filter.js +4 -0
- package/dist/dist/node_modules/motion/dist/es/framer-motion/dist/es/value/types/complex/index.js +49 -0
- package/dist/dist/node_modules/motion/dist/es/framer-motion/dist/es/value/types/numbers/index.js +16 -0
- package/dist/dist/node_modules/motion/dist/es/framer-motion/dist/es/value/types/numbers/units.js +11 -0
- package/dist/dist/node_modules/motion/dist/es/framer-motion/dist/es/value/types/utils/color-regex.js +4 -0
- package/dist/dist/node_modules/motion/dist/es/framer-motion/dist/es/value/types/utils/float-regex.js +4 -0
- package/dist/dist/node_modules/motion/dist/es/framer-motion/dist/es/value/types/utils/is-nullish.js +6 -0
- package/dist/dist/node_modules/motion/dist/es/framer-motion/dist/es/value/types/utils/sanitize.js +4 -0
- package/dist/dist/node_modules/motion/dist/es/framer-motion/dist/es/value/types/utils/single-color-regex.js +4 -0
- package/dist/dist/node_modules/motion/dist/es/motion-utils/dist/es/errors.js +1 -0
- package/dist/dist/node_modules/motion/dist/es/motion-utils/dist/es/noop.js +4 -0
- package/dist/dist/node_modules/motion-dom/dist/es/animation/controls/BaseGroup.js +74 -0
- package/dist/dist/node_modules/motion-dom/dist/es/animation/controls/Group.js +9 -0
- package/dist/dist/node_modules/motion-dom/dist/es/animation/generators/utils/calc-duration.js +13 -0
- package/dist/dist/node_modules/motion-dom/dist/es/animation/generators/utils/is-generator.js +6 -0
- package/dist/dist/node_modules/motion-dom/dist/es/animation/utils/get-value-transition.js +6 -0
- package/dist/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/attach-timeline.js +6 -0
- package/dist/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/easing.js +27 -0
- package/dist/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/linear.js +12 -0
- package/dist/dist/node_modules/motion-dom/dist/es/frameloop/batcher.js +27 -0
- package/dist/dist/node_modules/motion-dom/dist/es/frameloop/frame.js +10 -0
- package/dist/dist/node_modules/motion-dom/dist/es/frameloop/microtask.js +5 -0
- package/dist/dist/node_modules/motion-dom/dist/es/frameloop/order.js +17 -0
- package/dist/dist/node_modules/motion-dom/dist/es/frameloop/render-step.js +41 -0
- package/dist/dist/node_modules/motion-dom/dist/es/frameloop/sync-time.js +16 -0
- package/dist/dist/node_modules/motion-dom/dist/es/gestures/drag/state/is-active.js +11 -0
- package/dist/dist/node_modules/motion-dom/dist/es/gestures/drag/state/set-active.js +11 -0
- package/dist/dist/node_modules/motion-dom/dist/es/gestures/hover.js +24 -0
- package/dist/dist/node_modules/motion-dom/dist/es/gestures/press/index.js +32 -0
- package/dist/dist/node_modules/motion-dom/dist/es/gestures/press/utils/is-keyboard-accessible.js +13 -0
- package/dist/dist/node_modules/motion-dom/dist/es/gestures/press/utils/keyboard.js +27 -0
- package/dist/dist/node_modules/motion-dom/dist/es/gestures/press/utils/state.js +4 -0
- package/dist/dist/node_modules/motion-dom/dist/es/gestures/utils/is-node-or-child.js +4 -0
- package/dist/dist/node_modules/motion-dom/dist/es/gestures/utils/is-primary-pointer.js +4 -0
- package/dist/dist/node_modules/motion-dom/dist/es/gestures/utils/setup.js +12 -0
- package/dist/dist/node_modules/motion-dom/dist/es/utils/is-bezier-definition.js +4 -0
- package/dist/dist/node_modules/motion-dom/dist/es/utils/resolve-elements.js +14 -0
- package/dist/dist/node_modules/motion-dom/dist/es/utils/supports/flags.js +6 -0
- package/dist/dist/node_modules/motion-dom/dist/es/utils/supports/linear-easing.js +12 -0
- package/dist/dist/node_modules/motion-dom/dist/es/utils/supports/memo.js +13 -0
- package/dist/dist/node_modules/motion-dom/dist/es/utils/supports/scroll-timeline.js +6 -0
- package/dist/dist/node_modules/motion-dom/dist/es/value/index.js +202 -0
- package/dist/dist/node_modules/motion-utils/dist/es/array.js +11 -0
- package/dist/dist/node_modules/motion-utils/dist/es/errors.js +12 -0
- package/dist/dist/node_modules/motion-utils/dist/es/global-config.js +6 -0
- package/dist/dist/node_modules/motion-utils/dist/es/memo.js +8 -0
- package/dist/dist/node_modules/motion-utils/dist/es/noop.js +4 -0
- package/dist/dist/node_modules/motion-utils/dist/es/progress.js +7 -0
- package/dist/dist/node_modules/motion-utils/dist/es/subscription-manager.js +29 -0
- package/dist/dist/node_modules/motion-utils/dist/es/time-conversion.js +5 -0
- package/dist/dist/node_modules/motion-utils/dist/es/velocity-per-second.js +6 -0
- package/dist/dist/node_modules/motion-utils/dist/es/warn-once.js +7 -0
- package/dist/dist/node_modules/object-assign/index.js +54 -0
- package/dist/dist/node_modules/prop-types/checkPropTypes.js +54 -0
- package/dist/dist/node_modules/prop-types/factoryWithThrowingShims.js +52 -0
- package/dist/dist/node_modules/prop-types/factoryWithTypeCheckers.js +329 -0
- package/dist/dist/node_modules/prop-types/index.js +17 -0
- package/dist/dist/node_modules/prop-types/lib/ReactPropTypesSecret.js +10 -0
- package/dist/dist/node_modules/prop-types/lib/has.js +7 -0
- package/dist/dist/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js +95 -0
- package/dist/dist/node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js +78 -0
- package/dist/dist/node_modules/prop-types/node_modules/react-is/index.js +10 -0
- package/dist/dist/node_modules/property-expr/index.js +82 -0
- package/dist/dist/node_modules/react/cjs/react-jsx-runtime.development.js +247 -0
- package/dist/dist/node_modules/react/cjs/react-jsx-runtime.production.js +35 -0
- package/dist/dist/node_modules/react/jsx-runtime.js +10 -0
- package/dist/dist/node_modules/tiny-case/index.js +22 -0
- package/dist/dist/node_modules/toposort/index.js +66 -0
- package/dist/dist/node_modules/yup/index.esm.js +1359 -0
- package/dist/dist/themes/default.js +9 -0
- package/dist/lawgic-dev-kit.css +1 -1
- package/dist/lawgic-dev-kit.umd.js +884 -243
- package/dist/node_modules/prop-types/node_modules/react-is/index.js +1 -1
- package/dist/node_modules/scheduler/index.js +1 -1
- package/dist/node_modules/toposort/index.js +1 -1
- package/dist/node_modules/yup/index.esm.js +3 -3
- package/dist/src/utils/toast.d.ts +15 -0
- package/dist/utils/modal.js +98 -57
- package/dist/utils/toast.d.ts +1 -1
- package/dist/utils/toast.js +112 -98
- package/package.json +1 -1
- package/dist/src/components/atoms/SectionButton/desktop/SectionButton.d.ts +0 -3
- package/dist/src/components/atoms/SectionButton/desktop/SectionButton.styles.d.ts +0 -2
- package/dist/src/components/atoms/SectionButton/desktop/SectionButton.types.d.ts +0 -37
- package/dist/src/components/atoms/SectionButton/mobile/MobileSectionButton.styles.d.ts +0 -3
- 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,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
|
+
};
|
package/dist/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PresenceChild.js
ADDED
|
@@ -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
|
+
};
|
package/dist/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/use-presence.js
ADDED
|
@@ -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,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,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,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,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,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,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
|
+
};
|