lawgic-dev-kit 0.12.6 → 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/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 +86 -45
- package/dist/components/molecules/DialogModal/DialogModal.js +78 -37
- package/dist/components/molecules/FloatingMenu/FloatingMenu.js +66 -25
- 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/scheduler/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/molecules/DateInput/DateInput.d.ts +0 -11
package/dist/dist/node_modules/framer-motion/dist/es/animation/animators/MainThreadAnimation.js
ADDED
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
import { invariant as R } from "../../../../../motion-utils/dist/es/errors.js";
|
|
2
|
+
import { millisecondsToSeconds as g, secondsToMilliseconds as _ } from "../../../../../motion-utils/dist/es/time-conversion.js";
|
|
3
|
+
import { calcGeneratorDuration as G } from "../../../../../motion-dom/dist/es/animation/generators/utils/calc-duration.js";
|
|
4
|
+
import { isGenerator as $ } from "../../../../../motion-dom/dist/es/animation/generators/utils/is-generator.js";
|
|
5
|
+
import { KeyframeResolver as E } from "../../render/utils/KeyframesResolver.js";
|
|
6
|
+
import { clamp as O } from "../../utils/clamp.js";
|
|
7
|
+
import { mix as A } from "../../utils/mix/index.js";
|
|
8
|
+
import { pipe as N } from "../../utils/pipe.js";
|
|
9
|
+
import { inertia as F } from "../generators/inertia.js";
|
|
10
|
+
import { keyframes as u } from "../generators/keyframes.js";
|
|
11
|
+
import { spring as U } from "../generators/spring/index.js";
|
|
12
|
+
import { BaseAnimation as V } from "./BaseAnimation.js";
|
|
13
|
+
import { frameloopDriver as W } from "./drivers/driver-frameloop.js";
|
|
14
|
+
import { getFinalKeyframe as j } from "./waapi/utils/get-final-keyframe.js";
|
|
15
|
+
const B = {
|
|
16
|
+
decay: F,
|
|
17
|
+
inertia: F,
|
|
18
|
+
tween: u,
|
|
19
|
+
keyframes: u,
|
|
20
|
+
spring: U
|
|
21
|
+
}, C = (k) => k / 100;
|
|
22
|
+
class rt extends V {
|
|
23
|
+
constructor(t) {
|
|
24
|
+
super(t), this.holdTime = null, this.cancelTime = null, this.currentTime = 0, this.playbackSpeed = 1, this.pendingPlayState = "running", this.startTime = null, this.state = "idle", this.stop = () => {
|
|
25
|
+
if (this.resolver.cancel(), this.isStopped = !0, this.state === "idle")
|
|
26
|
+
return;
|
|
27
|
+
this.teardown();
|
|
28
|
+
const { onStop: r } = this.options;
|
|
29
|
+
r && r();
|
|
30
|
+
};
|
|
31
|
+
const { name: e, motionValue: a, element: i, keyframes: o } = this.options, p = (i == null ? void 0 : i.KeyframeResolver) || E, n = (r, l) => this.onKeyframesResolved(r, l);
|
|
32
|
+
this.resolver = new p(o, n, e, a, i), this.resolver.scheduleResolve();
|
|
33
|
+
}
|
|
34
|
+
flatten() {
|
|
35
|
+
super.flatten(), this._resolved && Object.assign(this._resolved, this.initPlayback(this._resolved.keyframes));
|
|
36
|
+
}
|
|
37
|
+
initPlayback(t) {
|
|
38
|
+
const { type: e = "keyframes", repeat: a = 0, repeatDelay: i = 0, repeatType: o, velocity: p = 0 } = this.options, n = $(e) ? e : B[e] || u;
|
|
39
|
+
let r, l;
|
|
40
|
+
process.env.NODE_ENV !== "production" && n !== u && R(t.length <= 2, `Only two keyframes currently supported with spring and inertia animations. Trying to animate ${t}`), n !== u && typeof t[0] != "number" && (r = N(C, A(t[0], t[1])), t = [0, 100]);
|
|
41
|
+
const s = n({ ...this.options, keyframes: t });
|
|
42
|
+
o === "mirror" && (l = n({
|
|
43
|
+
...this.options,
|
|
44
|
+
keyframes: [...t].reverse(),
|
|
45
|
+
velocity: -p
|
|
46
|
+
})), s.calculatedDuration === null && (s.calculatedDuration = G(s));
|
|
47
|
+
const { calculatedDuration: m } = s, T = m + i, f = T * (a + 1) - i;
|
|
48
|
+
return {
|
|
49
|
+
generator: s,
|
|
50
|
+
mirroredGenerator: l,
|
|
51
|
+
mapPercentToKeyframes: r,
|
|
52
|
+
calculatedDuration: m,
|
|
53
|
+
resolvedDuration: T,
|
|
54
|
+
totalDuration: f
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
onPostResolved() {
|
|
58
|
+
const { autoplay: t = !0 } = this.options;
|
|
59
|
+
this.play(), this.pendingPlayState === "paused" || !t ? this.pause() : this.state = this.pendingPlayState;
|
|
60
|
+
}
|
|
61
|
+
tick(t, e = !1) {
|
|
62
|
+
const { resolved: a } = this;
|
|
63
|
+
if (!a) {
|
|
64
|
+
const { keyframes: c } = this.options;
|
|
65
|
+
return { done: !0, value: c[c.length - 1] };
|
|
66
|
+
}
|
|
67
|
+
const { finalKeyframe: i, generator: o, mirroredGenerator: p, mapPercentToKeyframes: n, keyframes: r, calculatedDuration: l, totalDuration: s, resolvedDuration: m } = a;
|
|
68
|
+
if (this.startTime === null)
|
|
69
|
+
return o.next(0);
|
|
70
|
+
const { delay: T, repeat: f, repeatType: D, repeatDelay: S, onUpdate: P } = this.options;
|
|
71
|
+
this.speed > 0 ? this.startTime = Math.min(this.startTime, t) : this.speed < 0 && (this.startTime = Math.min(t - s / this.speed, this.startTime)), e ? this.currentTime = t : this.holdTime !== null ? this.currentTime = this.holdTime : this.currentTime = Math.round(t - this.startTime) * this.speed;
|
|
72
|
+
const y = this.currentTime - T * (this.speed >= 0 ? 1 : -1), w = this.speed >= 0 ? y < 0 : y > s;
|
|
73
|
+
this.currentTime = Math.max(y, 0), this.state === "finished" && this.holdTime === null && (this.currentTime = s);
|
|
74
|
+
let M = this.currentTime, b = o;
|
|
75
|
+
if (f) {
|
|
76
|
+
const c = Math.min(this.currentTime, s) / m;
|
|
77
|
+
let v = Math.floor(c), h = c % 1;
|
|
78
|
+
!h && c >= 1 && (h = 1), h === 1 && v--, v = Math.min(v, f + 1), v % 2 && (D === "reverse" ? (h = 1 - h, S && (h -= S / m)) : D === "mirror" && (b = p)), M = O(0, 1, h) * m;
|
|
79
|
+
}
|
|
80
|
+
const d = w ? { done: !1, value: r[0] } : b.next(M);
|
|
81
|
+
n && (d.value = n(d.value));
|
|
82
|
+
let { done: K } = d;
|
|
83
|
+
!w && l !== null && (K = this.speed >= 0 ? this.currentTime >= s : this.currentTime <= 0);
|
|
84
|
+
const x = this.holdTime === null && (this.state === "finished" || this.state === "running" && K);
|
|
85
|
+
return x && i !== void 0 && (d.value = j(r, this.options, i)), P && P(d.value), x && this.finish(), d;
|
|
86
|
+
}
|
|
87
|
+
get duration() {
|
|
88
|
+
const { resolved: t } = this;
|
|
89
|
+
return t ? g(t.calculatedDuration) : 0;
|
|
90
|
+
}
|
|
91
|
+
get time() {
|
|
92
|
+
return g(this.currentTime);
|
|
93
|
+
}
|
|
94
|
+
set time(t) {
|
|
95
|
+
t = _(t), this.currentTime = t, this.holdTime !== null || this.speed === 0 ? this.holdTime = t : this.driver && (this.startTime = this.driver.now() - t / this.speed);
|
|
96
|
+
}
|
|
97
|
+
get speed() {
|
|
98
|
+
return this.playbackSpeed;
|
|
99
|
+
}
|
|
100
|
+
set speed(t) {
|
|
101
|
+
const e = this.playbackSpeed !== t;
|
|
102
|
+
this.playbackSpeed = t, e && (this.time = g(this.currentTime));
|
|
103
|
+
}
|
|
104
|
+
play() {
|
|
105
|
+
if (this.resolver.isScheduled || this.resolver.resume(), !this._resolved) {
|
|
106
|
+
this.pendingPlayState = "running";
|
|
107
|
+
return;
|
|
108
|
+
}
|
|
109
|
+
if (this.isStopped)
|
|
110
|
+
return;
|
|
111
|
+
const { driver: t = W, onPlay: e, startTime: a } = this.options;
|
|
112
|
+
this.driver || (this.driver = t((o) => this.tick(o))), e && e();
|
|
113
|
+
const i = this.driver.now();
|
|
114
|
+
this.holdTime !== null ? this.startTime = i - this.holdTime : this.startTime ? this.state === "finished" && (this.startTime = i) : this.startTime = a ?? this.calcStartTime(), this.state === "finished" && this.updateFinishedPromise(), this.cancelTime = this.startTime, this.holdTime = null, this.state = "running", this.driver.start();
|
|
115
|
+
}
|
|
116
|
+
pause() {
|
|
117
|
+
var t;
|
|
118
|
+
if (!this._resolved) {
|
|
119
|
+
this.pendingPlayState = "paused";
|
|
120
|
+
return;
|
|
121
|
+
}
|
|
122
|
+
this.state = "paused", this.holdTime = (t = this.currentTime) !== null && t !== void 0 ? t : 0;
|
|
123
|
+
}
|
|
124
|
+
complete() {
|
|
125
|
+
this.state !== "running" && this.play(), this.pendingPlayState = this.state = "finished", this.holdTime = null;
|
|
126
|
+
}
|
|
127
|
+
finish() {
|
|
128
|
+
this.teardown(), this.state = "finished";
|
|
129
|
+
const { onComplete: t } = this.options;
|
|
130
|
+
t && t();
|
|
131
|
+
}
|
|
132
|
+
cancel() {
|
|
133
|
+
this.cancelTime !== null && this.tick(this.cancelTime), this.teardown(), this.updateFinishedPromise();
|
|
134
|
+
}
|
|
135
|
+
teardown() {
|
|
136
|
+
this.state = "idle", this.stopDriver(), this.resolveFinishedPromise(), this.updateFinishedPromise(), this.startTime = this.cancelTime = null, this.resolver.cancel();
|
|
137
|
+
}
|
|
138
|
+
stopDriver() {
|
|
139
|
+
this.driver && (this.driver.stop(), this.driver = void 0);
|
|
140
|
+
}
|
|
141
|
+
sample(t) {
|
|
142
|
+
return this.startTime = 0, this.tick(t, !0);
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
export {
|
|
146
|
+
rt as MainThreadAnimation
|
|
147
|
+
};
|
package/dist/dist/node_modules/framer-motion/dist/es/animation/animators/drivers/driver-frameloop.js
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import "../../../../../../motion-utils/dist/es/errors.js";
|
|
2
|
+
import { frameData as t, cancelFrame as e, frame as m } from "../../../../../../motion-dom/dist/es/frameloop/frame.js";
|
|
3
|
+
import { time as s } from "../../../../../../motion-dom/dist/es/frameloop/sync-time.js";
|
|
4
|
+
const c = (a) => {
|
|
5
|
+
const r = ({ timestamp: o }) => a(o);
|
|
6
|
+
return {
|
|
7
|
+
start: () => m.update(r, !0),
|
|
8
|
+
stop: () => e(r),
|
|
9
|
+
/**
|
|
10
|
+
* If we're processing this frame we can use the
|
|
11
|
+
* framelocked timestamp to keep things in sync.
|
|
12
|
+
*/
|
|
13
|
+
now: () => t.isProcessing ? t.timestamp : s.now()
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
export {
|
|
17
|
+
c as frameloopDriver
|
|
18
|
+
};
|
package/dist/dist/node_modules/framer-motion/dist/es/animation/animators/utils/accelerated-values.js
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
const e = /* @__PURE__ */ new Set([
|
|
2
|
+
"opacity",
|
|
3
|
+
"clipPath",
|
|
4
|
+
"filter",
|
|
5
|
+
"transform"
|
|
6
|
+
// TODO: Can be accelerated but currently disabled until https://issues.chromium.org/issues/41491098 is resolved
|
|
7
|
+
// or until we implement support for linear() easing.
|
|
8
|
+
// "background-color"
|
|
9
|
+
]);
|
|
10
|
+
export {
|
|
11
|
+
e as acceleratedValues
|
|
12
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { warning as u } from "../../../../../../motion-utils/dist/es/errors.js";
|
|
2
|
+
import { isGenerator as f } from "../../../../../../motion-dom/dist/es/animation/generators/utils/is-generator.js";
|
|
3
|
+
import { isAnimatable as s } from "../../utils/is-animatable.js";
|
|
4
|
+
function m(t) {
|
|
5
|
+
const e = t[0];
|
|
6
|
+
if (t.length === 1)
|
|
7
|
+
return !0;
|
|
8
|
+
for (let n = 0; n < t.length; n++)
|
|
9
|
+
if (t[n] !== e)
|
|
10
|
+
return !0;
|
|
11
|
+
}
|
|
12
|
+
function h(t, e, n, l) {
|
|
13
|
+
const a = t[0];
|
|
14
|
+
if (a === null)
|
|
15
|
+
return !1;
|
|
16
|
+
if (e === "display" || e === "visibility")
|
|
17
|
+
return !0;
|
|
18
|
+
const r = t[t.length - 1], i = s(a, e), o = s(r, e);
|
|
19
|
+
return u(i === o, `You are trying to animate ${e} from "${a}" to "${r}". ${a} is not an animatable value - to enable this animation set ${a} to a value animatable to ${r} via the \`style\` property.`), !i || !o ? !1 : m(t) || (n === "spring" || f(n)) && l;
|
|
20
|
+
}
|
|
21
|
+
export {
|
|
22
|
+
h as canAnimate
|
|
23
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import "../../../../../../motion-utils/dist/es/errors.js";
|
|
2
|
+
import { mapEasingToNativeEasing as y } from "../../../../../../motion-dom/dist/es/animation/waapi/utils/easing.js";
|
|
3
|
+
function d(i, n, o, { delay: s = 0, duration: r = 300, repeat: p = 0, repeatType: l = "loop", ease: m = "easeInOut", times: t } = {}) {
|
|
4
|
+
const e = { [n]: o };
|
|
5
|
+
t && (e.offset = t);
|
|
6
|
+
const a = y(m, r);
|
|
7
|
+
return Array.isArray(a) && (e.easing = a), i.animate(e, {
|
|
8
|
+
delay: s,
|
|
9
|
+
duration: r,
|
|
10
|
+
easing: Array.isArray(a) ? "linear" : a,
|
|
11
|
+
fill: "both",
|
|
12
|
+
iterations: p + 1,
|
|
13
|
+
direction: l === "reverse" ? "alternate" : "normal"
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
export {
|
|
17
|
+
d as startWaapiAnimation
|
|
18
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import "../../../../../../../motion-utils/dist/es/errors.js";
|
|
2
|
+
import { memo as t } from "../../../../../../../motion-utils/dist/es/memo.js";
|
|
3
|
+
const p = /* @__PURE__ */ t(() => Object.hasOwnProperty.call(Element.prototype, "animate"));
|
|
4
|
+
export {
|
|
5
|
+
p as supportsWaapi
|
|
6
|
+
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { spring as w } from "./spring/index.js";
|
|
2
|
+
import { calcGeneratorVelocity as T } from "./utils/velocity.js";
|
|
3
|
+
function j({ keyframes: b, velocity: h = 0, power: x = 0.8, timeConstant: D = 325, bounceDamping: g = 10, bounceStiffness: M = 500, modifyTarget: u, min: n, max: o, restDelta: v = 0.5, restSpeed: S }) {
|
|
4
|
+
const r = b[0], t = {
|
|
5
|
+
done: !1,
|
|
6
|
+
value: r
|
|
7
|
+
}, k = (e) => n !== void 0 && e < n || o !== void 0 && e > o, C = (e) => n === void 0 ? o : o === void 0 || Math.abs(n - e) < Math.abs(o - e) ? n : o;
|
|
8
|
+
let l = x * h;
|
|
9
|
+
const c = r + l, s = u === void 0 ? c : u(c);
|
|
10
|
+
s !== c && (l = s - r);
|
|
11
|
+
const m = (e) => -l * Math.exp(-e / D), f = (e) => s + m(e), p = (e) => {
|
|
12
|
+
const i = m(e), G = f(e);
|
|
13
|
+
t.done = Math.abs(i) <= v, t.value = t.done ? s : G;
|
|
14
|
+
};
|
|
15
|
+
let a, d;
|
|
16
|
+
const y = (e) => {
|
|
17
|
+
k(t.value) && (a = e, d = w({
|
|
18
|
+
keyframes: [t.value, C(t.value)],
|
|
19
|
+
velocity: T(f, e, t.value),
|
|
20
|
+
// TODO: This should be passing * 1000
|
|
21
|
+
damping: g,
|
|
22
|
+
stiffness: M,
|
|
23
|
+
restDelta: v,
|
|
24
|
+
restSpeed: S
|
|
25
|
+
}));
|
|
26
|
+
};
|
|
27
|
+
return y(0), {
|
|
28
|
+
calculatedDuration: null,
|
|
29
|
+
next: (e) => {
|
|
30
|
+
let i = !1;
|
|
31
|
+
return !d && a === void 0 && (i = !0, p(e), y(e)), a !== void 0 && e >= a ? d.next(e - a) : (!i && p(e), t);
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
export {
|
|
36
|
+
j as inertia
|
|
37
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { easeInOut as u } from "../../easing/ease.js";
|
|
2
|
+
import { isEasingArray as l } from "../../easing/utils/is-easing-array.js";
|
|
3
|
+
import { easingDefinitionToFunction as i } from "../../easing/utils/map.js";
|
|
4
|
+
import { interpolate as p } from "../../utils/interpolate.js";
|
|
5
|
+
import { defaultOffset as c } from "../../utils/offsets/default.js";
|
|
6
|
+
import { convertOffsetToTimes as d } from "../../utils/offsets/time.js";
|
|
7
|
+
function g(a, e) {
|
|
8
|
+
return a.map(() => e || u).splice(0, a.length - 1);
|
|
9
|
+
}
|
|
10
|
+
function I({ duration: a = 300, keyframes: e, times: r, ease: s = "easeInOut" }) {
|
|
11
|
+
const t = l(s) ? s.map(i) : i(s), n = {
|
|
12
|
+
done: !1,
|
|
13
|
+
value: e[0]
|
|
14
|
+
}, m = d(
|
|
15
|
+
// Only use the provided offsets if they're the correct length
|
|
16
|
+
// TODO Maybe we should warn here if there's a length mismatch
|
|
17
|
+
r && r.length === e.length ? r : c(e),
|
|
18
|
+
a
|
|
19
|
+
), f = p(m, e, {
|
|
20
|
+
ease: Array.isArray(t) ? t : g(e, t)
|
|
21
|
+
});
|
|
22
|
+
return {
|
|
23
|
+
calculatedDuration: a,
|
|
24
|
+
next: (o) => (n.value = f(o), n.done = o >= a, n)
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
export {
|
|
28
|
+
g as defaultEasing,
|
|
29
|
+
I as keyframes
|
|
30
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
const a = {
|
|
2
|
+
// Default spring physics
|
|
3
|
+
stiffness: 100,
|
|
4
|
+
damping: 10,
|
|
5
|
+
mass: 1,
|
|
6
|
+
velocity: 0,
|
|
7
|
+
// Default duration/bounce-based options
|
|
8
|
+
duration: 800,
|
|
9
|
+
// in ms
|
|
10
|
+
bounce: 0.3,
|
|
11
|
+
visualDuration: 0.3,
|
|
12
|
+
// in seconds
|
|
13
|
+
// Rest thresholds
|
|
14
|
+
restSpeed: {
|
|
15
|
+
granular: 0.01,
|
|
16
|
+
default: 2
|
|
17
|
+
},
|
|
18
|
+
restDelta: {
|
|
19
|
+
granular: 5e-3,
|
|
20
|
+
default: 0.5
|
|
21
|
+
},
|
|
22
|
+
// Limits
|
|
23
|
+
minDuration: 0.01,
|
|
24
|
+
// in seconds
|
|
25
|
+
maxDuration: 10,
|
|
26
|
+
// in seconds
|
|
27
|
+
minDamping: 0.05,
|
|
28
|
+
maxDamping: 1
|
|
29
|
+
};
|
|
30
|
+
export {
|
|
31
|
+
a as springDefaults
|
|
32
|
+
};
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { warning as w } from "../../../../../../motion-utils/dist/es/errors.js";
|
|
2
|
+
import { secondsToMilliseconds as M, millisecondsToSeconds as b } from "../../../../../../motion-utils/dist/es/time-conversion.js";
|
|
3
|
+
import { clamp as g } from "../../../utils/clamp.js";
|
|
4
|
+
import { springDefaults as r } from "./defaults.js";
|
|
5
|
+
const h = 1e-3;
|
|
6
|
+
function N({ duration: n = r.duration, bounce: m = r.bounce, velocity: a = r.velocity, mass: t = r.mass }) {
|
|
7
|
+
let e, u;
|
|
8
|
+
w(n <= M(r.maxDuration), "Spring duration must be 10 seconds or less");
|
|
9
|
+
let s = 1 - m;
|
|
10
|
+
s = g(r.minDamping, r.maxDamping, s), n = g(r.minDuration, r.maxDuration, b(n)), s < 1 ? (e = (o) => {
|
|
11
|
+
const i = o * s, c = i * n, p = i - a, f = x(o, s), l = Math.exp(-c);
|
|
12
|
+
return h - p / f * l;
|
|
13
|
+
}, u = (o) => {
|
|
14
|
+
const i = o * s * n, c = i * a + a, p = Math.pow(s, 2) * Math.pow(o, 2) * n, f = Math.exp(-i), l = x(Math.pow(o, 2), s);
|
|
15
|
+
return (-e(o) + h > 0 ? -1 : 1) * ((c - p) * f) / l;
|
|
16
|
+
}) : (e = (o) => {
|
|
17
|
+
const i = Math.exp(-o * n), c = (o - a) * n + 1;
|
|
18
|
+
return -1e-3 + i * c;
|
|
19
|
+
}, u = (o) => {
|
|
20
|
+
const i = Math.exp(-o * n), c = (a - o) * (n * n);
|
|
21
|
+
return i * c;
|
|
22
|
+
});
|
|
23
|
+
const D = 5 / n, d = q(e, u, D);
|
|
24
|
+
if (n = M(n), isNaN(d))
|
|
25
|
+
return {
|
|
26
|
+
stiffness: r.stiffness,
|
|
27
|
+
damping: r.damping,
|
|
28
|
+
duration: n
|
|
29
|
+
};
|
|
30
|
+
{
|
|
31
|
+
const o = Math.pow(d, 2) * t;
|
|
32
|
+
return {
|
|
33
|
+
stiffness: o,
|
|
34
|
+
damping: s * 2 * Math.sqrt(t * o),
|
|
35
|
+
duration: n
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
const S = 12;
|
|
40
|
+
function q(n, m, a) {
|
|
41
|
+
let t = a;
|
|
42
|
+
for (let e = 1; e < S; e++)
|
|
43
|
+
t = t - n(t) / m(t);
|
|
44
|
+
return t;
|
|
45
|
+
}
|
|
46
|
+
function x(n, m) {
|
|
47
|
+
return n * Math.sqrt(1 - m * m);
|
|
48
|
+
}
|
|
49
|
+
export {
|
|
50
|
+
x as calcAngularFreq,
|
|
51
|
+
N as findSpring
|
|
52
|
+
};
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import "../../../../../../motion-utils/dist/es/errors.js";
|
|
2
|
+
import { millisecondsToSeconds as $, secondsToMilliseconds as R } from "../../../../../../motion-utils/dist/es/time-conversion.js";
|
|
3
|
+
import { calcGeneratorDuration as T, maxGeneratorDuration as I } from "../../../../../../motion-dom/dist/es/animation/generators/utils/calc-duration.js";
|
|
4
|
+
import { generateLinearEasing as L } from "../../../../../../motion-dom/dist/es/animation/waapi/utils/linear.js";
|
|
5
|
+
import { clamp as P } from "../../../utils/clamp.js";
|
|
6
|
+
import { calcGeneratorVelocity as j } from "../utils/velocity.js";
|
|
7
|
+
import { springDefaults as n } from "./defaults.js";
|
|
8
|
+
import { findSpring as A, calcAngularFreq as E } from "./find.js";
|
|
9
|
+
const V = ["duration", "bounce"], W = ["stiffness", "damping", "mass"];
|
|
10
|
+
function q(e, o) {
|
|
11
|
+
return o.some((t) => e[t] !== void 0);
|
|
12
|
+
}
|
|
13
|
+
function w(e) {
|
|
14
|
+
let o = {
|
|
15
|
+
velocity: n.velocity,
|
|
16
|
+
stiffness: n.stiffness,
|
|
17
|
+
damping: n.damping,
|
|
18
|
+
mass: n.mass,
|
|
19
|
+
isResolvedFromDuration: !1,
|
|
20
|
+
...e
|
|
21
|
+
};
|
|
22
|
+
if (!q(e, W) && q(e, V))
|
|
23
|
+
if (e.visualDuration) {
|
|
24
|
+
const t = e.visualDuration, c = 2 * Math.PI / (t * 1.2), u = c * c, h = 2 * P(0.05, 1, 1 - (e.bounce || 0)) * Math.sqrt(u);
|
|
25
|
+
o = {
|
|
26
|
+
...o,
|
|
27
|
+
mass: n.mass,
|
|
28
|
+
stiffness: u,
|
|
29
|
+
damping: h
|
|
30
|
+
};
|
|
31
|
+
} else {
|
|
32
|
+
const t = A(e);
|
|
33
|
+
o = {
|
|
34
|
+
...o,
|
|
35
|
+
...t,
|
|
36
|
+
mass: n.mass
|
|
37
|
+
}, o.isResolvedFromDuration = !0;
|
|
38
|
+
}
|
|
39
|
+
return o;
|
|
40
|
+
}
|
|
41
|
+
function Q(e = n.visualDuration, o = n.bounce) {
|
|
42
|
+
const t = typeof e != "object" ? {
|
|
43
|
+
visualDuration: e,
|
|
44
|
+
keyframes: [0, 1],
|
|
45
|
+
bounce: o
|
|
46
|
+
} : e;
|
|
47
|
+
let { restSpeed: c, restDelta: u } = t;
|
|
48
|
+
const h = t.keyframes[0], f = t.keyframes[t.keyframes.length - 1], d = { done: !1, value: h }, { stiffness: D, damping: k, mass: y, duration: b, velocity: F, isResolvedFromDuration: x } = w({
|
|
49
|
+
...t,
|
|
50
|
+
velocity: -$(t.velocity || 0)
|
|
51
|
+
}), v = F || 0, r = k / (2 * Math.sqrt(D * y)), m = f - h, i = $(Math.sqrt(D / y)), S = Math.abs(m) < 5;
|
|
52
|
+
c || (c = S ? n.restSpeed.granular : n.restSpeed.default), u || (u = S ? n.restDelta.granular : n.restDelta.default);
|
|
53
|
+
let p;
|
|
54
|
+
if (r < 1) {
|
|
55
|
+
const s = E(i, r);
|
|
56
|
+
p = (a) => {
|
|
57
|
+
const l = Math.exp(-r * i * a);
|
|
58
|
+
return f - l * ((v + r * i * m) / s * Math.sin(s * a) + m * Math.cos(s * a));
|
|
59
|
+
};
|
|
60
|
+
} else if (r === 1)
|
|
61
|
+
p = (s) => f - Math.exp(-i * s) * (m + (v + i * m) * s);
|
|
62
|
+
else {
|
|
63
|
+
const s = i * Math.sqrt(r * r - 1);
|
|
64
|
+
p = (a) => {
|
|
65
|
+
const l = Math.exp(-r * i * a), M = Math.min(s * a, 300);
|
|
66
|
+
return f - l * ((v + r * i * m) * Math.sinh(M) + s * m * Math.cosh(M)) / s;
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
const g = {
|
|
70
|
+
calculatedDuration: x && b || null,
|
|
71
|
+
next: (s) => {
|
|
72
|
+
const a = p(s);
|
|
73
|
+
if (x)
|
|
74
|
+
d.done = s >= b;
|
|
75
|
+
else {
|
|
76
|
+
let l = 0;
|
|
77
|
+
r < 1 && (l = s === 0 ? R(v) : j(p, s, a));
|
|
78
|
+
const M = Math.abs(l) <= c, G = Math.abs(f - a) <= u;
|
|
79
|
+
d.done = M && G;
|
|
80
|
+
}
|
|
81
|
+
return d.value = d.done ? f : a, d;
|
|
82
|
+
},
|
|
83
|
+
toString: () => {
|
|
84
|
+
const s = Math.min(T(g), I), a = L((l) => g.next(s * l).value, s, 30);
|
|
85
|
+
return s + "ms " + a;
|
|
86
|
+
}
|
|
87
|
+
};
|
|
88
|
+
return g;
|
|
89
|
+
}
|
|
90
|
+
export {
|
|
91
|
+
Q as spring
|
|
92
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import "../../../../../../motion-utils/dist/es/errors.js";
|
|
2
|
+
import { velocityPerSecond as c } from "../../../../../../motion-utils/dist/es/velocity-per-second.js";
|
|
3
|
+
const e = 5;
|
|
4
|
+
function l(n, t, r) {
|
|
5
|
+
const o = Math.max(t - e, 0);
|
|
6
|
+
return c(r - n(o), t - o);
|
|
7
|
+
}
|
|
8
|
+
export {
|
|
9
|
+
l as calcGeneratorVelocity
|
|
10
|
+
};
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { GroupPlaybackControls as c } from "../../../../../motion-dom/dist/es/animation/controls/Group.js";
|
|
2
|
+
import { getValueTransition as g } from "../../../../../motion-dom/dist/es/animation/utils/get-value-transition.js";
|
|
3
|
+
import "../../../../../motion-utils/dist/es/errors.js";
|
|
4
|
+
import { secondsToMilliseconds as l } from "../../../../../motion-utils/dist/es/time-conversion.js";
|
|
5
|
+
import { frame as D } from "../../../../../motion-dom/dist/es/frameloop/frame.js";
|
|
6
|
+
import { AcceleratedAnimation as d } from "../animators/AcceleratedAnimation.js";
|
|
7
|
+
import { MainThreadAnimation as v } from "../animators/MainThreadAnimation.js";
|
|
8
|
+
import { getFinalKeyframe as A } from "../animators/waapi/utils/get-final-keyframe.js";
|
|
9
|
+
import { getDefaultTransition as C } from "../utils/default-transitions.js";
|
|
10
|
+
import { isTransitionDefined as T } from "../utils/is-transition-defined.js";
|
|
11
|
+
const G = (r, a, n, i = {}, f, m) => (y) => {
|
|
12
|
+
const o = g(i, r) || {}, u = o.delay || i.delay || 0;
|
|
13
|
+
let { elapsed: s = 0 } = i;
|
|
14
|
+
s = s - l(u);
|
|
15
|
+
let e = {
|
|
16
|
+
keyframes: Array.isArray(n) ? n : [null, n],
|
|
17
|
+
ease: "easeOut",
|
|
18
|
+
velocity: a.getVelocity(),
|
|
19
|
+
...o,
|
|
20
|
+
delay: -s,
|
|
21
|
+
onUpdate: (t) => {
|
|
22
|
+
a.set(t), o.onUpdate && o.onUpdate(t);
|
|
23
|
+
},
|
|
24
|
+
onComplete: () => {
|
|
25
|
+
y(), o.onComplete && o.onComplete();
|
|
26
|
+
},
|
|
27
|
+
name: r,
|
|
28
|
+
motionValue: a,
|
|
29
|
+
element: m ? void 0 : f
|
|
30
|
+
};
|
|
31
|
+
T(o) || (e = {
|
|
32
|
+
...e,
|
|
33
|
+
...C(r, e)
|
|
34
|
+
}), e.duration && (e.duration = l(e.duration)), e.repeatDelay && (e.repeatDelay = l(e.repeatDelay)), e.from !== void 0 && (e.keyframes[0] = e.from);
|
|
35
|
+
let p = !1;
|
|
36
|
+
if ((e.type === !1 || e.duration === 0 && !e.repeatDelay) && (e.duration = 0, e.delay === 0 && (p = !0)), e.allowFlatten = !o.type && !o.ease, p && !m && a.get() !== void 0) {
|
|
37
|
+
const t = A(e.keyframes, o);
|
|
38
|
+
if (t !== void 0)
|
|
39
|
+
return D.update(() => {
|
|
40
|
+
e.onUpdate(t), e.onComplete();
|
|
41
|
+
}), new c([]);
|
|
42
|
+
}
|
|
43
|
+
return !m && d.supports(e) ? new d(e) : new v(e);
|
|
44
|
+
};
|
|
45
|
+
export {
|
|
46
|
+
G as animateMotionValue
|
|
47
|
+
};
|
package/dist/dist/node_modules/framer-motion/dist/es/animation/interfaces/visual-element-target.js
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import "../../../../../motion-utils/dist/es/errors.js";
|
|
2
|
+
import { getValueTransition as V } from "../../../../../motion-dom/dist/es/animation/utils/get-value-transition.js";
|
|
3
|
+
import { frame as w } from "../../../../../motion-dom/dist/es/frameloop/frame.js";
|
|
4
|
+
import { positionalKeys as $ } from "../../render/html/utils/keys-position.js";
|
|
5
|
+
import { setTarget as v } from "../../render/utils/setters.js";
|
|
6
|
+
import { addValueToWillChange as A } from "../../value/use-will-change/add-will-change.js";
|
|
7
|
+
import { getOptimisedAppearId as M } from "../optimized-appear/get-appear-id.js";
|
|
8
|
+
import { animateMotionValue as O } from "./motion-value.js";
|
|
9
|
+
function S({ protectedKeys: t, needsAnimating: e }, a) {
|
|
10
|
+
const n = t.hasOwnProperty(a) && e[a] !== !0;
|
|
11
|
+
return e[a] = !1, n;
|
|
12
|
+
}
|
|
13
|
+
function E(t, e, { delay: a = 0, transitionOverride: n, type: m } = {}) {
|
|
14
|
+
var i;
|
|
15
|
+
let { transition: f = t.getDefaultTransition(), transitionEnd: r, ...d } = e;
|
|
16
|
+
n && (f = n);
|
|
17
|
+
const s = [], u = m && t.animationState && t.animationState.getState()[m];
|
|
18
|
+
for (const o in d) {
|
|
19
|
+
const l = t.getValue(o, (i = t.latestValues[o]) !== null && i !== void 0 ? i : null), p = d[o];
|
|
20
|
+
if (p === void 0 || u && S(u, o))
|
|
21
|
+
continue;
|
|
22
|
+
const c = {
|
|
23
|
+
delay: a,
|
|
24
|
+
...V(f || {}, o)
|
|
25
|
+
};
|
|
26
|
+
let g = !1;
|
|
27
|
+
if (window.MotionHandoffAnimation) {
|
|
28
|
+
const y = M(t);
|
|
29
|
+
if (y) {
|
|
30
|
+
const T = window.MotionHandoffAnimation(y, o, w);
|
|
31
|
+
T !== null && (c.startTime = T, g = !0);
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
A(t, o), l.start(O(o, l, p, t.shouldReduceMotion && $.has(o) ? { type: !1 } : c, t, g));
|
|
35
|
+
const h = l.animation;
|
|
36
|
+
h && s.push(h);
|
|
37
|
+
}
|
|
38
|
+
return r && Promise.all(s).then(() => {
|
|
39
|
+
w.update(() => {
|
|
40
|
+
r && v(t, r);
|
|
41
|
+
});
|
|
42
|
+
}), s;
|
|
43
|
+
}
|
|
44
|
+
export {
|
|
45
|
+
E as animateTarget
|
|
46
|
+
};
|
package/dist/dist/node_modules/framer-motion/dist/es/animation/interfaces/visual-element-variant.js
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { resolveVariant as u } from "../../render/utils/resolve-dynamic-variants.js";
|
|
2
|
+
import { animateTarget as v } from "./visual-element-target.js";
|
|
3
|
+
function h(e, t, i = {}) {
|
|
4
|
+
var n;
|
|
5
|
+
const a = u(e, t, i.type === "exit" ? (n = e.presenceContext) === null || n === void 0 ? void 0 : n.custom : void 0);
|
|
6
|
+
let { transition: s = e.getDefaultTransition() || {} } = a || {};
|
|
7
|
+
i.transitionOverride && (s = i.transitionOverride);
|
|
8
|
+
const o = a ? () => Promise.all(v(e, a, i)) : () => Promise.resolve(), l = e.variantChildren && e.variantChildren.size ? (r = 0) => {
|
|
9
|
+
const { delayChildren: d = 0, staggerChildren: c, staggerDirection: f } = s;
|
|
10
|
+
return C(e, t, d + r, c, f, i);
|
|
11
|
+
} : () => Promise.resolve(), { when: m } = s;
|
|
12
|
+
if (m) {
|
|
13
|
+
const [r, d] = m === "beforeChildren" ? [o, l] : [l, o];
|
|
14
|
+
return r().then(() => d());
|
|
15
|
+
} else
|
|
16
|
+
return Promise.all([o(), l(i.delay)]);
|
|
17
|
+
}
|
|
18
|
+
function C(e, t, i = 0, n = 0, a = 1, s) {
|
|
19
|
+
const o = [], l = (e.variantChildren.size - 1) * n, m = a === 1 ? (r = 0) => r * n : (r = 0) => l - r * n;
|
|
20
|
+
return Array.from(e.variantChildren).sort(y).forEach((r, d) => {
|
|
21
|
+
r.notify("AnimationStart", t), o.push(h(r, t, {
|
|
22
|
+
...s,
|
|
23
|
+
delay: i + m(d)
|
|
24
|
+
}).then(() => r.notify("AnimationComplete", t)));
|
|
25
|
+
}), Promise.all(o);
|
|
26
|
+
}
|
|
27
|
+
function y(e, t) {
|
|
28
|
+
return e.sortNodePosition(t);
|
|
29
|
+
}
|
|
30
|
+
export {
|
|
31
|
+
h as animateVariant,
|
|
32
|
+
y as sortByTreeOrder
|
|
33
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { resolveVariant as s } from "../../render/utils/resolve-dynamic-variants.js";
|
|
2
|
+
import { animateTarget as r } from "./visual-element-target.js";
|
|
3
|
+
import { animateVariant as a } from "./visual-element-variant.js";
|
|
4
|
+
function y(o, t, i = {}) {
|
|
5
|
+
o.notify("AnimationStart", t);
|
|
6
|
+
let e;
|
|
7
|
+
if (Array.isArray(t)) {
|
|
8
|
+
const n = t.map((m) => a(o, m, i));
|
|
9
|
+
e = Promise.all(n);
|
|
10
|
+
} else if (typeof t == "string")
|
|
11
|
+
e = a(o, t, i);
|
|
12
|
+
else {
|
|
13
|
+
const n = typeof t == "function" ? s(o, t, i.custom) : t;
|
|
14
|
+
e = Promise.all(r(o, n, i));
|
|
15
|
+
}
|
|
16
|
+
return e.then(() => {
|
|
17
|
+
o.notify("AnimationComplete", t);
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
export {
|
|
21
|
+
y as animateVisualElement
|
|
22
|
+
};
|