lawgic-dev-kit 0.12.8 → 0.12.9
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 +22 -3
- package/dist/_virtual/index5.js +2 -2
- package/dist/_virtual/index6.js +2 -2
- package/dist/components/atoms/Avatar/Avatar.js +31 -73
- package/dist/components/atoms/UploadContainer/UploadContainer.js +47 -89
- package/dist/components/molecules/AlertModal/AlertModal.js +26 -68
- package/dist/components/molecules/CalendarSelector/CalendarSelector.js +45 -87
- package/dist/components/molecules/DialogModal/DialogModal.js +37 -79
- package/dist/components/molecules/FloatingMenu/FloatingMenu.js +25 -67
- package/dist/components/molecules/Tabs/Tabs.js +41 -83
- package/dist/lawgic-dev-kit.umd.js +243 -884
- package/dist/node_modules/prop-types/index.js +1 -1
- package/dist/node_modules/scheduler/index.js +1 -1
- package/dist/utils/modal.js +59 -101
- package/dist/utils/toast.js +73 -106
- package/package.json +1 -1
- package/dist/dist/_virtual/_commonjsHelpers.js +0 -8
- package/dist/dist/_virtual/index.js +0 -7
- package/dist/dist/_virtual/index3.js +0 -5
- package/dist/dist/_virtual/index4.js +0 -5
- package/dist/dist/_virtual/index5.js +0 -7
- package/dist/dist/_virtual/index6.js +0 -4
- package/dist/dist/_virtual/index7.js +0 -4
- package/dist/dist/_virtual/index8.js +0 -4
- package/dist/dist/_virtual/jsx-runtime.js +0 -5
- package/dist/dist/_virtual/jsx-runtime2.js +0 -4
- package/dist/dist/_virtual/lodash.js +0 -2
- package/dist/dist/_virtual/lodash2.js +0 -4
- package/dist/dist/_virtual/react-is.development.js +0 -4
- package/dist/dist/_virtual/react-is.production.min.js +0 -4
- package/dist/dist/_virtual/react-jsx-runtime.development.js +0 -4
- package/dist/dist/_virtual/react-jsx-runtime.production.js +0 -4
- package/dist/dist/components/atoms/AsyncToast/index.js +0 -33
- package/dist/dist/components/atoms/ImageProfileInput/ImageProfileInput.validators.js +0 -5
- package/dist/dist/components/atoms/Toast/Toast.js +0 -113
- package/dist/dist/constants/countries.js +0 -8
- package/dist/dist/contexts/themeContext.js +0 -3
- package/dist/dist/node_modules/@floating-ui/react/dist/floating-ui.react.js +0 -4
- package/dist/dist/node_modules/@fortawesome/fontawesome-svg-core/index.js +0 -2661
- package/dist/dist/node_modules/@fortawesome/pro-light-svg-icons/index.js +0 -33
- package/dist/dist/node_modules/@fortawesome/react-fontawesome/index.es.js +0 -266
- package/dist/dist/node_modules/framer-motion/dist/es/animation/animate/single-value.js +0 -11
- package/dist/dist/node_modules/framer-motion/dist/es/animation/animators/AcceleratedAnimation.js +0 -205
- package/dist/dist/node_modules/framer-motion/dist/es/animation/animators/BaseAnimation.js +0 -83
- package/dist/dist/node_modules/framer-motion/dist/es/animation/animators/MainThreadAnimation.js +0 -147
- package/dist/dist/node_modules/framer-motion/dist/es/animation/animators/drivers/driver-frameloop.js +0 -18
- package/dist/dist/node_modules/framer-motion/dist/es/animation/animators/utils/accelerated-values.js +0 -12
- package/dist/dist/node_modules/framer-motion/dist/es/animation/animators/utils/can-animate.js +0 -23
- package/dist/dist/node_modules/framer-motion/dist/es/animation/animators/waapi/index.js +0 -18
- package/dist/dist/node_modules/framer-motion/dist/es/animation/animators/waapi/utils/get-final-keyframe.js +0 -8
- package/dist/dist/node_modules/framer-motion/dist/es/animation/animators/waapi/utils/supports-waapi.js +0 -6
- package/dist/dist/node_modules/framer-motion/dist/es/animation/generators/inertia.js +0 -37
- package/dist/dist/node_modules/framer-motion/dist/es/animation/generators/keyframes.js +0 -30
- package/dist/dist/node_modules/framer-motion/dist/es/animation/generators/spring/defaults.js +0 -32
- package/dist/dist/node_modules/framer-motion/dist/es/animation/generators/spring/find.js +0 -52
- package/dist/dist/node_modules/framer-motion/dist/es/animation/generators/spring/index.js +0 -92
- package/dist/dist/node_modules/framer-motion/dist/es/animation/generators/utils/velocity.js +0 -10
- package/dist/dist/node_modules/framer-motion/dist/es/animation/interfaces/motion-value.js +0 -47
- package/dist/dist/node_modules/framer-motion/dist/es/animation/interfaces/visual-element-target.js +0 -46
- package/dist/dist/node_modules/framer-motion/dist/es/animation/interfaces/visual-element-variant.js +0 -33
- package/dist/dist/node_modules/framer-motion/dist/es/animation/interfaces/visual-element.js +0 -22
- package/dist/dist/node_modules/framer-motion/dist/es/animation/optimized-appear/data-id.js +0 -6
- package/dist/dist/node_modules/framer-motion/dist/es/animation/optimized-appear/get-appear-id.js +0 -7
- package/dist/dist/node_modules/framer-motion/dist/es/animation/utils/default-transitions.js +0 -22
- package/dist/dist/node_modules/framer-motion/dist/es/animation/utils/is-animatable.js +0 -7
- package/dist/dist/node_modules/framer-motion/dist/es/animation/utils/is-animation-controls.js +0 -6
- package/dist/dist/node_modules/framer-motion/dist/es/animation/utils/is-keyframes-target.js +0 -4
- package/dist/dist/node_modules/framer-motion/dist/es/animation/utils/is-none.js +0 -7
- package/dist/dist/node_modules/framer-motion/dist/es/animation/utils/is-transition-defined.js +0 -6
- package/dist/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PopChild.js +0 -53
- package/dist/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PresenceChild.js +0 -41
- package/dist/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/index.js +0 -45
- package/dist/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/use-presence.js +0 -17
- package/dist/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/utils.js +0 -12
- package/dist/dist/node_modules/framer-motion/dist/es/context/LayoutGroupContext.js +0 -5
- package/dist/dist/node_modules/framer-motion/dist/es/context/LazyContext.js +0 -5
- package/dist/dist/node_modules/framer-motion/dist/es/context/MotionConfigContext.js +0 -9
- package/dist/dist/node_modules/framer-motion/dist/es/context/MotionContext/create.js +0 -13
- package/dist/dist/node_modules/framer-motion/dist/es/context/MotionContext/index.js +0 -5
- package/dist/dist/node_modules/framer-motion/dist/es/context/MotionContext/utils.js +0 -15
- package/dist/dist/node_modules/framer-motion/dist/es/context/PresenceContext.js +0 -5
- package/dist/dist/node_modules/framer-motion/dist/es/context/SwitchLayoutGroupContext.js +0 -5
- package/dist/dist/node_modules/framer-motion/dist/es/easing/anticipate.js +0 -5
- package/dist/dist/node_modules/framer-motion/dist/es/easing/back.js +0 -9
- package/dist/dist/node_modules/framer-motion/dist/es/easing/circ.js +0 -8
- package/dist/dist/node_modules/framer-motion/dist/es/easing/cubic-bezier.js +0 -19
- package/dist/dist/node_modules/framer-motion/dist/es/easing/ease.js +0 -7
- package/dist/dist/node_modules/framer-motion/dist/es/easing/modifiers/mirror.js +0 -4
- package/dist/dist/node_modules/framer-motion/dist/es/easing/modifiers/reverse.js +0 -4
- package/dist/dist/node_modules/framer-motion/dist/es/easing/utils/is-easing-array.js +0 -4
- package/dist/dist/node_modules/framer-motion/dist/es/easing/utils/map.js +0 -32
- package/dist/dist/node_modules/framer-motion/dist/es/events/add-dom-event.js +0 -6
- package/dist/dist/node_modules/framer-motion/dist/es/events/add-pointer-event.js +0 -8
- package/dist/dist/node_modules/framer-motion/dist/es/events/event-info.js +0 -15
- package/dist/dist/node_modules/framer-motion/dist/es/gestures/drag/VisualElementDragControls.js +0 -256
- package/dist/dist/node_modules/framer-motion/dist/es/gestures/drag/index.js +0 -19
- package/dist/dist/node_modules/framer-motion/dist/es/gestures/drag/utils/constraints.js +0 -68
- package/dist/dist/node_modules/framer-motion/dist/es/gestures/focus.js +0 -28
- package/dist/dist/node_modules/framer-motion/dist/es/gestures/hover.js +0 -22
- package/dist/dist/node_modules/framer-motion/dist/es/gestures/pan/PanSession.js +0 -85
- package/dist/dist/node_modules/framer-motion/dist/es/gestures/pan/index.js +0 -44
- package/dist/dist/node_modules/framer-motion/dist/es/gestures/press.js +0 -24
- package/dist/dist/node_modules/framer-motion/dist/es/motion/features/Feature.js +0 -10
- package/dist/dist/node_modules/framer-motion/dist/es/motion/features/animation/exit.js +0 -27
- package/dist/dist/node_modules/framer-motion/dist/es/motion/features/animation/index.js +0 -34
- package/dist/dist/node_modules/framer-motion/dist/es/motion/features/animations.js +0 -13
- package/dist/dist/node_modules/framer-motion/dist/es/motion/features/definitions.js +0 -27
- package/dist/dist/node_modules/framer-motion/dist/es/motion/features/drag.js +0 -17
- package/dist/dist/node_modules/framer-motion/dist/es/motion/features/gestures.js +0 -21
- package/dist/dist/node_modules/framer-motion/dist/es/motion/features/layout/MeasureLayout.js +0 -75
- package/dist/dist/node_modules/framer-motion/dist/es/motion/features/layout.js +0 -11
- package/dist/dist/node_modules/framer-motion/dist/es/motion/features/load-features.js +0 -11
- package/dist/dist/node_modules/framer-motion/dist/es/motion/features/viewport/index.js +0 -44
- package/dist/dist/node_modules/framer-motion/dist/es/motion/features/viewport/observers.js +0 -21
- package/dist/dist/node_modules/framer-motion/dist/es/motion/index.js +0 -59
- package/dist/dist/node_modules/framer-motion/dist/es/motion/utils/is-forced-motion-value.js +0 -8
- package/dist/dist/node_modules/framer-motion/dist/es/motion/utils/symbol.js +0 -4
- package/dist/dist/node_modules/framer-motion/dist/es/motion/utils/use-motion-ref.js +0 -18
- package/dist/dist/node_modules/framer-motion/dist/es/motion/utils/use-visual-element.js +0 -65
- package/dist/dist/node_modules/framer-motion/dist/es/motion/utils/use-visual-state.js +0 -53
- package/dist/dist/node_modules/framer-motion/dist/es/motion/utils/valid-prop.js +0 -38
- package/dist/dist/node_modules/framer-motion/dist/es/projection/animation/mix-values.js +0 -31
- package/dist/dist/node_modules/framer-motion/dist/es/projection/geometry/conversion.js +0 -25
- package/dist/dist/node_modules/framer-motion/dist/es/projection/geometry/copy.js +0 -14
- package/dist/dist/node_modules/framer-motion/dist/es/projection/geometry/delta-apply.js +0 -52
- package/dist/dist/node_modules/framer-motion/dist/es/projection/geometry/delta-calc.js +0 -36
- package/dist/dist/node_modules/framer-motion/dist/es/projection/geometry/delta-remove.js +0 -25
- package/dist/dist/node_modules/framer-motion/dist/es/projection/geometry/models.js +0 -18
- package/dist/dist/node_modules/framer-motion/dist/es/projection/geometry/utils.js +0 -34
- package/dist/dist/node_modules/framer-motion/dist/es/projection/node/DocumentProjectionNode.js +0 -13
- package/dist/dist/node_modules/framer-motion/dist/es/projection/node/HTMLProjectionNode.js +0 -25
- package/dist/dist/node_modules/framer-motion/dist/es/projection/node/create-projection-node.js +0 -608
- package/dist/dist/node_modules/framer-motion/dist/es/projection/node/state.js +0 -15
- package/dist/dist/node_modules/framer-motion/dist/es/projection/shared/stack.js +0 -59
- package/dist/dist/node_modules/framer-motion/dist/es/projection/styles/scale-border-radius.js +0 -21
- package/dist/dist/node_modules/framer-motion/dist/es/projection/styles/scale-box-shadow.js +0 -16
- package/dist/dist/node_modules/framer-motion/dist/es/projection/styles/scale-correction.js +0 -10
- package/dist/dist/node_modules/framer-motion/dist/es/projection/styles/transform.js +0 -13
- package/dist/dist/node_modules/framer-motion/dist/es/projection/utils/each-axis.js +0 -6
- package/dist/dist/node_modules/framer-motion/dist/es/projection/utils/has-transform.js +0 -20
- package/dist/dist/node_modules/framer-motion/dist/es/projection/utils/measure.js +0 -13
- package/dist/dist/node_modules/framer-motion/dist/es/render/VisualElement.js +0 -229
- package/dist/dist/node_modules/framer-motion/dist/es/render/components/create-factory.js +0 -20
- package/dist/dist/node_modules/framer-motion/dist/es/render/components/create-proxy.js +0 -18
- package/dist/dist/node_modules/framer-motion/dist/es/render/components/motion/create.js +0 -15
- package/dist/dist/node_modules/framer-motion/dist/es/render/components/motion/proxy.js +0 -6
- package/dist/dist/node_modules/framer-motion/dist/es/render/dom/DOMKeyframesResolver.js +0 -66
- package/dist/dist/node_modules/framer-motion/dist/es/render/dom/DOMVisualElement.js +0 -27
- package/dist/dist/node_modules/framer-motion/dist/es/render/dom/create-visual-element.js +0 -10
- package/dist/dist/node_modules/framer-motion/dist/es/render/dom/use-render.js +0 -18
- package/dist/dist/node_modules/framer-motion/dist/es/render/dom/utils/camel-to-dash.js +0 -4
- package/dist/dist/node_modules/framer-motion/dist/es/render/dom/utils/css-variables-conversion.js +0 -31
- package/dist/dist/node_modules/framer-motion/dist/es/render/dom/utils/filter-props.js +0 -20
- package/dist/dist/node_modules/framer-motion/dist/es/render/dom/utils/is-css-variable.js +0 -5
- package/dist/dist/node_modules/framer-motion/dist/es/render/dom/utils/is-svg-component.js +0 -24
- package/dist/dist/node_modules/framer-motion/dist/es/render/dom/utils/is-svg-element.js +0 -6
- package/dist/dist/node_modules/framer-motion/dist/es/render/dom/utils/unit-conversion.js +0 -31
- package/dist/dist/node_modules/framer-motion/dist/es/render/dom/value-types/animatable-none.js +0 -10
- package/dist/dist/node_modules/framer-motion/dist/es/render/dom/value-types/defaults.js +0 -24
- package/dist/dist/node_modules/framer-motion/dist/es/render/dom/value-types/dimensions.js +0 -9
- package/dist/dist/node_modules/framer-motion/dist/es/render/dom/value-types/find.js +0 -8
- package/dist/dist/node_modules/framer-motion/dist/es/render/dom/value-types/get-as-type.js +0 -4
- package/dist/dist/node_modules/framer-motion/dist/es/render/dom/value-types/number-browser.js +0 -41
- package/dist/dist/node_modules/framer-motion/dist/es/render/dom/value-types/number.js +0 -18
- package/dist/dist/node_modules/framer-motion/dist/es/render/dom/value-types/test.js +0 -4
- package/dist/dist/node_modules/framer-motion/dist/es/render/dom/value-types/transform.js +0 -31
- package/dist/dist/node_modules/framer-motion/dist/es/render/dom/value-types/type-auto.js +0 -7
- package/dist/dist/node_modules/framer-motion/dist/es/render/dom/value-types/type-int.js +0 -8
- package/dist/dist/node_modules/framer-motion/dist/es/render/html/HTMLVisualElement.js +0 -37
- package/dist/dist/node_modules/framer-motion/dist/es/render/html/config-motion.js +0 -12
- package/dist/dist/node_modules/framer-motion/dist/es/render/html/use-props.js +0 -27
- package/dist/dist/node_modules/framer-motion/dist/es/render/html/utils/build-styles.js +0 -29
- package/dist/dist/node_modules/framer-motion/dist/es/render/html/utils/build-transform.js +0 -31
- package/dist/dist/node_modules/framer-motion/dist/es/render/html/utils/create-render-state.js +0 -9
- package/dist/dist/node_modules/framer-motion/dist/es/render/html/utils/keys-position.js +0 -13
- package/dist/dist/node_modules/framer-motion/dist/es/render/html/utils/keys-transform.js +0 -23
- package/dist/dist/node_modules/framer-motion/dist/es/render/html/utils/make-none-animatable.js +0 -16
- package/dist/dist/node_modules/framer-motion/dist/es/render/html/utils/parse-transform.js +0 -64
- package/dist/dist/node_modules/framer-motion/dist/es/render/html/utils/render.js +0 -8
- package/dist/dist/node_modules/framer-motion/dist/es/render/html/utils/scrape-motion-values.js +0 -12
- package/dist/dist/node_modules/framer-motion/dist/es/render/store.js +0 -4
- package/dist/dist/node_modules/framer-motion/dist/es/render/svg/SVGVisualElement.js +0 -48
- package/dist/dist/node_modules/framer-motion/dist/es/render/svg/config-motion.js +0 -44
- package/dist/dist/node_modules/framer-motion/dist/es/render/svg/lowercase-elements.js +0 -30
- package/dist/dist/node_modules/framer-motion/dist/es/render/svg/use-props.js +0 -22
- package/dist/dist/node_modules/framer-motion/dist/es/render/svg/utils/build-attrs.js +0 -26
- package/dist/dist/node_modules/framer-motion/dist/es/render/svg/utils/camel-case-attrs.js +0 -28
- package/dist/dist/node_modules/framer-motion/dist/es/render/svg/utils/create-render-state.js +0 -8
- package/dist/dist/node_modules/framer-motion/dist/es/render/svg/utils/is-svg-tag.js +0 -4
- package/dist/dist/node_modules/framer-motion/dist/es/render/svg/utils/measure.js +0 -15
- package/dist/dist/node_modules/framer-motion/dist/es/render/svg/utils/path.js +0 -18
- package/dist/dist/node_modules/framer-motion/dist/es/render/svg/utils/render.js +0 -11
- package/dist/dist/node_modules/framer-motion/dist/es/render/svg/utils/scrape-motion-values.js +0 -15
- package/dist/dist/node_modules/framer-motion/dist/es/render/svg/utils/transform-origin.js +0 -11
- package/dist/dist/node_modules/framer-motion/dist/es/render/utils/KeyframesResolver.js +0 -77
- package/dist/dist/node_modules/framer-motion/dist/es/render/utils/animation-state.js +0 -128
- package/dist/dist/node_modules/framer-motion/dist/es/render/utils/compare-by-depth.js +0 -4
- package/dist/dist/node_modules/framer-motion/dist/es/render/utils/flat-tree.js +0 -20
- package/dist/dist/node_modules/framer-motion/dist/es/render/utils/get-variant-context.js +0 -20
- package/dist/dist/node_modules/framer-motion/dist/es/render/utils/is-controlling-variants.js +0 -13
- package/dist/dist/node_modules/framer-motion/dist/es/render/utils/is-variant-label.js +0 -6
- package/dist/dist/node_modules/framer-motion/dist/es/render/utils/motion-values.js +0 -27
- package/dist/dist/node_modules/framer-motion/dist/es/render/utils/resolve-dynamic-variants.js +0 -8
- package/dist/dist/node_modules/framer-motion/dist/es/render/utils/resolve-variants.js +0 -20
- package/dist/dist/node_modules/framer-motion/dist/es/render/utils/setters.js +0 -19
- package/dist/dist/node_modules/framer-motion/dist/es/render/utils/variant-props.js +0 -13
- package/dist/dist/node_modules/framer-motion/dist/es/utils/clamp.js +0 -4
- package/dist/dist/node_modules/framer-motion/dist/es/utils/delay.js +0 -13
- package/dist/dist/node_modules/framer-motion/dist/es/utils/distance.js +0 -9
- package/dist/dist/node_modules/framer-motion/dist/es/utils/get-context-window.js +0 -4
- package/dist/dist/node_modules/framer-motion/dist/es/utils/hsla-to-rgba.js +0 -22
- package/dist/dist/node_modules/framer-motion/dist/es/utils/interpolate.js +0 -41
- package/dist/dist/node_modules/framer-motion/dist/es/utils/is-browser.js +0 -4
- package/dist/dist/node_modules/framer-motion/dist/es/utils/is-numerical-string.js +0 -4
- package/dist/dist/node_modules/framer-motion/dist/es/utils/is-ref-object.js +0 -6
- package/dist/dist/node_modules/framer-motion/dist/es/utils/is-zero-value-string.js +0 -4
- package/dist/dist/node_modules/framer-motion/dist/es/utils/mix/color.js +0 -29
- package/dist/dist/node_modules/framer-motion/dist/es/utils/mix/complex.js +0 -52
- package/dist/dist/node_modules/framer-motion/dist/es/utils/mix/immediate.js +0 -6
- package/dist/dist/node_modules/framer-motion/dist/es/utils/mix/index.js +0 -8
- package/dist/dist/node_modules/framer-motion/dist/es/utils/mix/number.js +0 -4
- package/dist/dist/node_modules/framer-motion/dist/es/utils/mix/visibility.js +0 -8
- package/dist/dist/node_modules/framer-motion/dist/es/utils/offsets/default.js +0 -8
- package/dist/dist/node_modules/framer-motion/dist/es/utils/offsets/fill.js +0 -13
- package/dist/dist/node_modules/framer-motion/dist/es/utils/offsets/time.js +0 -6
- package/dist/dist/node_modules/framer-motion/dist/es/utils/pipe.js +0 -4
- package/dist/dist/node_modules/framer-motion/dist/es/utils/reduced-motion/index.js +0 -13
- package/dist/dist/node_modules/framer-motion/dist/es/utils/reduced-motion/state.js +0 -5
- package/dist/dist/node_modules/framer-motion/dist/es/utils/resolve-value.js +0 -6
- package/dist/dist/node_modules/framer-motion/dist/es/utils/shallow-compare.js +0 -14
- package/dist/dist/node_modules/framer-motion/dist/es/utils/use-constant.js +0 -8
- package/dist/dist/node_modules/framer-motion/dist/es/utils/use-isomorphic-effect.js +0 -6
- package/dist/dist/node_modules/framer-motion/dist/es/value/types/color/hex.js +0 -19
- package/dist/dist/node_modules/framer-motion/dist/es/value/types/color/hsla.js +0 -12
- package/dist/dist/node_modules/framer-motion/dist/es/value/types/color/index.js +0 -11
- package/dist/dist/node_modules/framer-motion/dist/es/value/types/color/rgba.js +0 -16
- package/dist/dist/node_modules/framer-motion/dist/es/value/types/color/utils.js +0 -18
- package/dist/dist/node_modules/framer-motion/dist/es/value/types/complex/filter.js +0 -24
- package/dist/dist/node_modules/framer-motion/dist/es/value/types/complex/index.js +0 -49
- package/dist/dist/node_modules/framer-motion/dist/es/value/types/numbers/index.js +0 -17
- package/dist/dist/node_modules/framer-motion/dist/es/value/types/numbers/units.js +0 -17
- package/dist/dist/node_modules/framer-motion/dist/es/value/types/utils/color-regex.js +0 -4
- package/dist/dist/node_modules/framer-motion/dist/es/value/types/utils/float-regex.js +0 -4
- package/dist/dist/node_modules/framer-motion/dist/es/value/types/utils/is-nullish.js +0 -6
- package/dist/dist/node_modules/framer-motion/dist/es/value/types/utils/sanitize.js +0 -4
- package/dist/dist/node_modules/framer-motion/dist/es/value/types/utils/single-color-regex.js +0 -4
- package/dist/dist/node_modules/framer-motion/dist/es/value/use-will-change/add-will-change.js +0 -9
- package/dist/dist/node_modules/framer-motion/dist/es/value/use-will-change/is.js +0 -7
- package/dist/dist/node_modules/framer-motion/dist/es/value/utils/is-motion-value.js +0 -4
- package/dist/dist/node_modules/framer-motion/dist/es/value/utils/resolve-motion-value.js +0 -9
- package/dist/dist/node_modules/lodash/lodash.js +0 -3677
- package/dist/dist/node_modules/motion/dist/es/framer-motion/dist/es/animation/optimized-appear/data-id.js +0 -6
- package/dist/dist/node_modules/motion/dist/es/framer-motion/dist/es/context/LayoutGroupContext.js +0 -2
- package/dist/dist/node_modules/motion/dist/es/framer-motion/dist/es/context/LazyContext.js +0 -2
- package/dist/dist/node_modules/motion/dist/es/framer-motion/dist/es/context/MotionConfigContext.js +0 -6
- package/dist/dist/node_modules/motion/dist/es/framer-motion/dist/es/context/SwitchLayoutGroupContext.js +0 -2
- package/dist/dist/node_modules/motion/dist/es/framer-motion/dist/es/projection/node/create-projection-node.js +0 -12
- package/dist/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/dom/utils/camel-to-dash.js +0 -4
- package/dist/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/dom/utils/filter-props.js +0 -9
- package/dist/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/dom/utils/unit-conversion.js +0 -5
- package/dist/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/dom/value-types/type-int.js +0 -4
- package/dist/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/html/utils/keys-transform.js +0 -23
- package/dist/dist/node_modules/motion/dist/es/framer-motion/dist/es/utils/clamp.js +0 -4
- package/dist/dist/node_modules/motion/dist/es/framer-motion/dist/es/value/types/color/hex.js +0 -19
- package/dist/dist/node_modules/motion/dist/es/framer-motion/dist/es/value/types/color/hsla.js +0 -12
- package/dist/dist/node_modules/motion/dist/es/framer-motion/dist/es/value/types/color/index.js +0 -11
- package/dist/dist/node_modules/motion/dist/es/framer-motion/dist/es/value/types/color/rgba.js +0 -16
- package/dist/dist/node_modules/motion/dist/es/framer-motion/dist/es/value/types/color/utils.js +0 -18
- package/dist/dist/node_modules/motion/dist/es/framer-motion/dist/es/value/types/complex/filter.js +0 -4
- package/dist/dist/node_modules/motion/dist/es/framer-motion/dist/es/value/types/complex/index.js +0 -49
- package/dist/dist/node_modules/motion/dist/es/framer-motion/dist/es/value/types/numbers/index.js +0 -16
- package/dist/dist/node_modules/motion/dist/es/framer-motion/dist/es/value/types/numbers/units.js +0 -11
- package/dist/dist/node_modules/motion/dist/es/framer-motion/dist/es/value/types/utils/color-regex.js +0 -4
- package/dist/dist/node_modules/motion/dist/es/framer-motion/dist/es/value/types/utils/float-regex.js +0 -4
- package/dist/dist/node_modules/motion/dist/es/framer-motion/dist/es/value/types/utils/is-nullish.js +0 -6
- package/dist/dist/node_modules/motion/dist/es/framer-motion/dist/es/value/types/utils/sanitize.js +0 -4
- package/dist/dist/node_modules/motion/dist/es/framer-motion/dist/es/value/types/utils/single-color-regex.js +0 -4
- package/dist/dist/node_modules/motion/dist/es/motion-utils/dist/es/errors.js +0 -1
- package/dist/dist/node_modules/motion/dist/es/motion-utils/dist/es/noop.js +0 -4
- package/dist/dist/node_modules/motion-dom/dist/es/animation/controls/BaseGroup.js +0 -74
- package/dist/dist/node_modules/motion-dom/dist/es/animation/controls/Group.js +0 -9
- package/dist/dist/node_modules/motion-dom/dist/es/animation/generators/utils/calc-duration.js +0 -13
- package/dist/dist/node_modules/motion-dom/dist/es/animation/generators/utils/is-generator.js +0 -6
- package/dist/dist/node_modules/motion-dom/dist/es/animation/utils/get-value-transition.js +0 -6
- package/dist/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/attach-timeline.js +0 -6
- package/dist/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/easing.js +0 -27
- package/dist/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/linear.js +0 -12
- package/dist/dist/node_modules/motion-dom/dist/es/frameloop/batcher.js +0 -27
- package/dist/dist/node_modules/motion-dom/dist/es/frameloop/frame.js +0 -10
- package/dist/dist/node_modules/motion-dom/dist/es/frameloop/microtask.js +0 -5
- package/dist/dist/node_modules/motion-dom/dist/es/frameloop/order.js +0 -17
- package/dist/dist/node_modules/motion-dom/dist/es/frameloop/render-step.js +0 -41
- package/dist/dist/node_modules/motion-dom/dist/es/frameloop/sync-time.js +0 -16
- package/dist/dist/node_modules/motion-dom/dist/es/gestures/drag/state/is-active.js +0 -11
- package/dist/dist/node_modules/motion-dom/dist/es/gestures/drag/state/set-active.js +0 -11
- package/dist/dist/node_modules/motion-dom/dist/es/gestures/hover.js +0 -24
- package/dist/dist/node_modules/motion-dom/dist/es/gestures/press/index.js +0 -32
- package/dist/dist/node_modules/motion-dom/dist/es/gestures/press/utils/is-keyboard-accessible.js +0 -13
- package/dist/dist/node_modules/motion-dom/dist/es/gestures/press/utils/keyboard.js +0 -27
- package/dist/dist/node_modules/motion-dom/dist/es/gestures/press/utils/state.js +0 -4
- package/dist/dist/node_modules/motion-dom/dist/es/gestures/utils/is-node-or-child.js +0 -4
- package/dist/dist/node_modules/motion-dom/dist/es/gestures/utils/is-primary-pointer.js +0 -4
- package/dist/dist/node_modules/motion-dom/dist/es/gestures/utils/setup.js +0 -12
- package/dist/dist/node_modules/motion-dom/dist/es/utils/is-bezier-definition.js +0 -4
- package/dist/dist/node_modules/motion-dom/dist/es/utils/resolve-elements.js +0 -14
- package/dist/dist/node_modules/motion-dom/dist/es/utils/supports/flags.js +0 -6
- package/dist/dist/node_modules/motion-dom/dist/es/utils/supports/linear-easing.js +0 -12
- package/dist/dist/node_modules/motion-dom/dist/es/utils/supports/memo.js +0 -13
- package/dist/dist/node_modules/motion-dom/dist/es/utils/supports/scroll-timeline.js +0 -6
- package/dist/dist/node_modules/motion-dom/dist/es/value/index.js +0 -202
- package/dist/dist/node_modules/motion-utils/dist/es/array.js +0 -11
- package/dist/dist/node_modules/motion-utils/dist/es/errors.js +0 -12
- package/dist/dist/node_modules/motion-utils/dist/es/global-config.js +0 -6
- package/dist/dist/node_modules/motion-utils/dist/es/memo.js +0 -8
- package/dist/dist/node_modules/motion-utils/dist/es/noop.js +0 -4
- package/dist/dist/node_modules/motion-utils/dist/es/progress.js +0 -7
- package/dist/dist/node_modules/motion-utils/dist/es/subscription-manager.js +0 -29
- package/dist/dist/node_modules/motion-utils/dist/es/time-conversion.js +0 -5
- package/dist/dist/node_modules/motion-utils/dist/es/velocity-per-second.js +0 -6
- package/dist/dist/node_modules/motion-utils/dist/es/warn-once.js +0 -7
- package/dist/dist/node_modules/object-assign/index.js +0 -54
- package/dist/dist/node_modules/prop-types/checkPropTypes.js +0 -54
- package/dist/dist/node_modules/prop-types/factoryWithThrowingShims.js +0 -52
- package/dist/dist/node_modules/prop-types/factoryWithTypeCheckers.js +0 -329
- package/dist/dist/node_modules/prop-types/index.js +0 -17
- package/dist/dist/node_modules/prop-types/lib/ReactPropTypesSecret.js +0 -10
- package/dist/dist/node_modules/prop-types/lib/has.js +0 -7
- package/dist/dist/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js +0 -95
- package/dist/dist/node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js +0 -78
- package/dist/dist/node_modules/prop-types/node_modules/react-is/index.js +0 -10
- package/dist/dist/node_modules/property-expr/index.js +0 -82
- package/dist/dist/node_modules/react/cjs/react-jsx-runtime.development.js +0 -247
- package/dist/dist/node_modules/react/cjs/react-jsx-runtime.production.js +0 -35
- package/dist/dist/node_modules/react/jsx-runtime.js +0 -10
- package/dist/dist/node_modules/tiny-case/index.js +0 -22
- package/dist/dist/node_modules/toposort/index.js +0 -66
- package/dist/dist/node_modules/yup/index.esm.js +0 -1359
- package/dist/dist/themes/default.js +0 -9
- package/dist/src/utils/toast.d.ts +0 -15
package/dist/dist/node_modules/framer-motion/dist/es/projection/node/create-projection-node.js
DELETED
|
@@ -1,608 +0,0 @@
|
|
|
1
|
-
import "../../../../../motion-utils/dist/es/errors.js";
|
|
2
|
-
import { noop as ot } from "../../../../../motion-utils/dist/es/noop.js";
|
|
3
|
-
import { SubscriptionManager as at } from "../../../../../motion-utils/dist/es/subscription-manager.js";
|
|
4
|
-
import { getValueTransition as rt } from "../../../../../motion-dom/dist/es/animation/utils/get-value-transition.js";
|
|
5
|
-
import { cancelFrame as I, frameData as g, frameSteps as w, frame as E } from "../../../../../motion-dom/dist/es/frameloop/frame.js";
|
|
6
|
-
import { microtask as nt } from "../../../../../motion-dom/dist/es/frameloop/microtask.js";
|
|
7
|
-
import { time as lt } from "../../../../../motion-dom/dist/es/frameloop/sync-time.js";
|
|
8
|
-
import { animateSingleValue as ht } from "../../animation/animate/single-value.js";
|
|
9
|
-
import { getOptimisedAppearId as ut } from "../../animation/optimized-appear/get-appear-id.js";
|
|
10
|
-
import { isSVGElement as ct } from "../../render/dom/utils/is-svg-element.js";
|
|
11
|
-
import { FlatTree as dt } from "../../render/utils/flat-tree.js";
|
|
12
|
-
import { clamp as pt } from "../../utils/clamp.js";
|
|
13
|
-
import { delay as mt } from "../../utils/delay.js";
|
|
14
|
-
import { mixNumber as U } from "../../utils/mix/number.js";
|
|
15
|
-
import { resolveMotionValue as C } from "../../value/utils/resolve-motion-value.js";
|
|
16
|
-
import { mixValues as ft } from "../animation/mix-values.js";
|
|
17
|
-
import { copyBoxInto as y, copyAxisDeltaInto as M } from "../geometry/copy.js";
|
|
18
|
-
import { translateAxis as L, transformBox as k, applyBoxDelta as yt, applyTreeDeltas as gt } from "../geometry/delta-apply.js";
|
|
19
|
-
import { calcLength as j, calcRelativePosition as B, calcRelativeBox as vt, calcBoxDelta as V, isNear as Tt } from "../geometry/delta-calc.js";
|
|
20
|
-
import { removeBoxTransforms as b } from "../geometry/delta-remove.js";
|
|
21
|
-
import { createBox as m, createDelta as R } from "../geometry/models.js";
|
|
22
|
-
import { boxEqualsRounded as tt, isDeltaZero as et, axisDeltaEquals as N, boxEquals as xt, aspectRatio as z } from "../geometry/utils.js";
|
|
23
|
-
import { NodeStack as Pt } from "../shared/stack.js";
|
|
24
|
-
import { scaleCorrectors as H } from "../styles/scale-correction.js";
|
|
25
|
-
import { buildProjectionTransform as Dt } from "../styles/transform.js";
|
|
26
|
-
import { eachAxis as W } from "../utils/each-axis.js";
|
|
27
|
-
import { hasTransform as S, hasScale as G, has2DTranslate as St } from "../utils/has-transform.js";
|
|
28
|
-
import { globalProjectionState as F } from "./state.js";
|
|
29
|
-
const O = ["", "X", "Y", "Z"], jt = { visibility: "hidden" }, X = 1e3;
|
|
30
|
-
let Rt = 0;
|
|
31
|
-
function $(e, l, h, u) {
|
|
32
|
-
const { latestValues: T } = l;
|
|
33
|
-
T[e] && (h[e] = T[e], l.setStaticValue(e, 0), u && (u[e] = 0));
|
|
34
|
-
}
|
|
35
|
-
function it(e) {
|
|
36
|
-
if (e.hasCheckedOptimisedAppear = !0, e.root === e)
|
|
37
|
-
return;
|
|
38
|
-
const { visualElement: l } = e.options;
|
|
39
|
-
if (!l)
|
|
40
|
-
return;
|
|
41
|
-
const h = ut(l);
|
|
42
|
-
if (window.MotionHasOptimisedAnimation(h, "transform")) {
|
|
43
|
-
const { layout: T, layoutId: t } = e.options;
|
|
44
|
-
window.MotionCancelOptimisedAnimation(h, "transform", E, !(T || t));
|
|
45
|
-
}
|
|
46
|
-
const { parent: u } = e;
|
|
47
|
-
u && !u.hasCheckedOptimisedAppear && it(u);
|
|
48
|
-
}
|
|
49
|
-
function ye({ attachResizeListener: e, defaultParent: l, measureScroll: h, checkIsScrollRoot: u, resetTransform: T }) {
|
|
50
|
-
return class {
|
|
51
|
-
constructor(t = {}, s = l == null ? void 0 : l()) {
|
|
52
|
-
this.id = Rt++, this.animationId = 0, this.children = /* @__PURE__ */ new Set(), this.options = {}, this.isTreeAnimating = !1, this.isAnimationBlocked = !1, this.isLayoutDirty = !1, this.isProjectionDirty = !1, this.isSharedProjectionDirty = !1, this.isTransformDirty = !1, this.updateManuallyBlocked = !1, this.updateBlockedByResize = !1, this.isUpdating = !1, this.isSVG = !1, this.needsReset = !1, this.shouldResetTransform = !1, this.hasCheckedOptimisedAppear = !1, this.treeScale = { x: 1, y: 1 }, this.eventHandlers = /* @__PURE__ */ new Map(), this.hasTreeAnimated = !1, this.updateScheduled = !1, this.scheduleUpdate = () => this.update(), this.projectionUpdateScheduled = !1, this.checkUpdateFailed = () => {
|
|
53
|
-
this.isUpdating && (this.isUpdating = !1, this.clearAllSnapshots());
|
|
54
|
-
}, this.updateProjection = () => {
|
|
55
|
-
this.projectionUpdateScheduled = !1, this.nodes.forEach(Vt), this.nodes.forEach(wt), this.nodes.forEach(Ct), this.nodes.forEach(Lt);
|
|
56
|
-
}, this.resolvedRelativeTargetAt = 0, this.hasProjected = !1, this.isVisible = !0, this.animationProgress = 0, this.sharedNodes = /* @__PURE__ */ new Map(), this.latestValues = t, this.root = s ? s.root || s : this, this.path = s ? [...s.path, s] : [], this.parent = s, this.depth = s ? s.depth + 1 : 0;
|
|
57
|
-
for (let i = 0; i < this.path.length; i++)
|
|
58
|
-
this.path[i].shouldResetTransform = !0;
|
|
59
|
-
this.root === this && (this.nodes = new dt());
|
|
60
|
-
}
|
|
61
|
-
addEventListener(t, s) {
|
|
62
|
-
return this.eventHandlers.has(t) || this.eventHandlers.set(t, new at()), this.eventHandlers.get(t).add(s);
|
|
63
|
-
}
|
|
64
|
-
notifyListeners(t, ...s) {
|
|
65
|
-
const i = this.eventHandlers.get(t);
|
|
66
|
-
i && i.notify(...s);
|
|
67
|
-
}
|
|
68
|
-
hasListeners(t) {
|
|
69
|
-
return this.eventHandlers.has(t);
|
|
70
|
-
}
|
|
71
|
-
/**
|
|
72
|
-
* Lifecycles
|
|
73
|
-
*/
|
|
74
|
-
mount(t, s = this.root.hasTreeAnimated) {
|
|
75
|
-
if (this.instance)
|
|
76
|
-
return;
|
|
77
|
-
this.isSVG = ct(t), this.instance = t;
|
|
78
|
-
const { layoutId: i, layout: o, visualElement: a } = this.options;
|
|
79
|
-
if (a && !a.current && a.mount(t), this.root.nodes.add(this), this.parent && this.parent.children.add(this), s && (o || i) && (this.isLayoutDirty = !0), e) {
|
|
80
|
-
let n;
|
|
81
|
-
const r = () => this.root.updateBlockedByResize = !1;
|
|
82
|
-
e(t, () => {
|
|
83
|
-
this.root.updateBlockedByResize = !0, n && n(), n = mt(r, 250), F.hasAnimatedSinceResize && (F.hasAnimatedSinceResize = !1, this.nodes.forEach(Z));
|
|
84
|
-
});
|
|
85
|
-
}
|
|
86
|
-
i && this.root.registerSharedNode(i, this), this.options.animate !== !1 && a && (i || o) && this.addEventListener("didUpdate", ({ delta: n, hasLayoutChanged: r, hasRelativeLayoutChanged: d, layout: p }) => {
|
|
87
|
-
if (this.isTreeAnimationBlocked()) {
|
|
88
|
-
this.target = void 0, this.relativeTarget = void 0;
|
|
89
|
-
return;
|
|
90
|
-
}
|
|
91
|
-
const c = this.options.transition || a.getDefaultTransition() || Mt, { onLayoutAnimationStart: v, onLayoutAnimationComplete: P } = a.getProps(), A = !this.targetLayout || !tt(this.targetLayout, p), f = !r && d;
|
|
92
|
-
if (this.options.layoutRoot || this.resumeFrom || f || r && (A || !this.currentAnimation)) {
|
|
93
|
-
this.resumeFrom && (this.resumingFrom = this.resumeFrom, this.resumingFrom.resumingFrom = void 0), this.setAnimationOrigin(n, f);
|
|
94
|
-
const D = {
|
|
95
|
-
...rt(c, "layout"),
|
|
96
|
-
onPlay: v,
|
|
97
|
-
onComplete: P
|
|
98
|
-
};
|
|
99
|
-
(a.shouldReduceMotion || this.options.layoutRoot) && (D.delay = 0, D.type = !1), this.startAnimation(D);
|
|
100
|
-
} else
|
|
101
|
-
r || Z(this), this.isLead() && this.options.onExitComplete && this.options.onExitComplete();
|
|
102
|
-
this.targetLayout = p;
|
|
103
|
-
});
|
|
104
|
-
}
|
|
105
|
-
unmount() {
|
|
106
|
-
this.options.layoutId && this.willUpdate(), this.root.nodes.remove(this);
|
|
107
|
-
const t = this.getStack();
|
|
108
|
-
t && t.remove(this), this.parent && this.parent.children.delete(this), this.instance = void 0, I(this.updateProjection);
|
|
109
|
-
}
|
|
110
|
-
// only on the root
|
|
111
|
-
blockUpdate() {
|
|
112
|
-
this.updateManuallyBlocked = !0;
|
|
113
|
-
}
|
|
114
|
-
unblockUpdate() {
|
|
115
|
-
this.updateManuallyBlocked = !1;
|
|
116
|
-
}
|
|
117
|
-
isUpdateBlocked() {
|
|
118
|
-
return this.updateManuallyBlocked || this.updateBlockedByResize;
|
|
119
|
-
}
|
|
120
|
-
isTreeAnimationBlocked() {
|
|
121
|
-
return this.isAnimationBlocked || this.parent && this.parent.isTreeAnimationBlocked() || !1;
|
|
122
|
-
}
|
|
123
|
-
// Note: currently only running on root node
|
|
124
|
-
startUpdate() {
|
|
125
|
-
this.isUpdateBlocked() || (this.isUpdating = !0, this.nodes && this.nodes.forEach(Ft), this.animationId++);
|
|
126
|
-
}
|
|
127
|
-
getTransformTemplate() {
|
|
128
|
-
const { visualElement: t } = this.options;
|
|
129
|
-
return t && t.getProps().transformTemplate;
|
|
130
|
-
}
|
|
131
|
-
willUpdate(t = !0) {
|
|
132
|
-
if (this.root.hasTreeAnimated = !0, this.root.isUpdateBlocked()) {
|
|
133
|
-
this.options.onExitComplete && this.options.onExitComplete();
|
|
134
|
-
return;
|
|
135
|
-
}
|
|
136
|
-
if (window.MotionCancelOptimisedAnimation && !this.hasCheckedOptimisedAppear && it(this), !this.root.isUpdating && this.root.startUpdate(), this.isLayoutDirty)
|
|
137
|
-
return;
|
|
138
|
-
this.isLayoutDirty = !0;
|
|
139
|
-
for (let a = 0; a < this.path.length; a++) {
|
|
140
|
-
const n = this.path[a];
|
|
141
|
-
n.shouldResetTransform = !0, n.updateScroll("snapshot"), n.options.layoutRoot && n.willUpdate(!1);
|
|
142
|
-
}
|
|
143
|
-
const { layoutId: s, layout: i } = this.options;
|
|
144
|
-
if (s === void 0 && !i)
|
|
145
|
-
return;
|
|
146
|
-
const o = this.getTransformTemplate();
|
|
147
|
-
this.prevTransformTemplateValue = o ? o(this.latestValues, "") : void 0, this.updateSnapshot(), t && this.notifyListeners("willUpdate");
|
|
148
|
-
}
|
|
149
|
-
update() {
|
|
150
|
-
if (this.updateScheduled = !1, this.isUpdateBlocked()) {
|
|
151
|
-
this.unblockUpdate(), this.clearAllSnapshots(), this.nodes.forEach(Y);
|
|
152
|
-
return;
|
|
153
|
-
}
|
|
154
|
-
this.isUpdating || this.nodes.forEach(Et), this.isUpdating = !1, this.nodes.forEach(Ut), this.nodes.forEach(At), this.nodes.forEach(Bt), this.clearAllSnapshots();
|
|
155
|
-
const t = lt.now();
|
|
156
|
-
g.delta = pt(0, 1e3 / 60, t - g.timestamp), g.timestamp = t, g.isProcessing = !0, w.update.process(g), w.preRender.process(g), w.render.process(g), g.isProcessing = !1;
|
|
157
|
-
}
|
|
158
|
-
didUpdate() {
|
|
159
|
-
this.updateScheduled || (this.updateScheduled = !0, nt.read(this.scheduleUpdate));
|
|
160
|
-
}
|
|
161
|
-
clearAllSnapshots() {
|
|
162
|
-
this.nodes.forEach(kt), this.sharedNodes.forEach(Ot);
|
|
163
|
-
}
|
|
164
|
-
scheduleUpdateProjection() {
|
|
165
|
-
this.projectionUpdateScheduled || (this.projectionUpdateScheduled = !0, E.preRender(this.updateProjection, !1, !0));
|
|
166
|
-
}
|
|
167
|
-
scheduleCheckAfterUnmount() {
|
|
168
|
-
E.postRender(() => {
|
|
169
|
-
this.isLayoutDirty ? this.root.didUpdate() : this.root.checkUpdateFailed();
|
|
170
|
-
});
|
|
171
|
-
}
|
|
172
|
-
/**
|
|
173
|
-
* Update measurements
|
|
174
|
-
*/
|
|
175
|
-
updateSnapshot() {
|
|
176
|
-
this.snapshot || !this.instance || (this.snapshot = this.measure(), this.snapshot && !j(this.snapshot.measuredBox.x) && !j(this.snapshot.measuredBox.y) && (this.snapshot = void 0));
|
|
177
|
-
}
|
|
178
|
-
updateLayout() {
|
|
179
|
-
if (!this.instance || (this.updateScroll(), !(this.options.alwaysMeasureLayout && this.isLead()) && !this.isLayoutDirty))
|
|
180
|
-
return;
|
|
181
|
-
if (this.resumeFrom && !this.resumeFrom.instance)
|
|
182
|
-
for (let i = 0; i < this.path.length; i++)
|
|
183
|
-
this.path[i].updateScroll();
|
|
184
|
-
const t = this.layout;
|
|
185
|
-
this.layout = this.measure(!1), this.layoutCorrected = m(), this.isLayoutDirty = !1, this.projectionDelta = void 0, this.notifyListeners("measure", this.layout.layoutBox);
|
|
186
|
-
const { visualElement: s } = this.options;
|
|
187
|
-
s && s.notify("LayoutMeasure", this.layout.layoutBox, t ? t.layoutBox : void 0);
|
|
188
|
-
}
|
|
189
|
-
updateScroll(t = "measure") {
|
|
190
|
-
let s = !!(this.options.layoutScroll && this.instance);
|
|
191
|
-
if (this.scroll && this.scroll.animationId === this.root.animationId && this.scroll.phase === t && (s = !1), s) {
|
|
192
|
-
const i = u(this.instance);
|
|
193
|
-
this.scroll = {
|
|
194
|
-
animationId: this.root.animationId,
|
|
195
|
-
phase: t,
|
|
196
|
-
isRoot: i,
|
|
197
|
-
offset: h(this.instance),
|
|
198
|
-
wasRoot: this.scroll ? this.scroll.isRoot : i
|
|
199
|
-
};
|
|
200
|
-
}
|
|
201
|
-
}
|
|
202
|
-
resetTransform() {
|
|
203
|
-
if (!T)
|
|
204
|
-
return;
|
|
205
|
-
const t = this.isLayoutDirty || this.shouldResetTransform || this.options.alwaysMeasureLayout, s = this.projectionDelta && !et(this.projectionDelta), i = this.getTransformTemplate(), o = i ? i(this.latestValues, "") : void 0, a = o !== this.prevTransformTemplateValue;
|
|
206
|
-
t && (s || S(this.latestValues) || a) && (T(this.instance, o), this.shouldResetTransform = !1, this.scheduleRender());
|
|
207
|
-
}
|
|
208
|
-
measure(t = !0) {
|
|
209
|
-
const s = this.measurePageBox();
|
|
210
|
-
let i = this.removeElementScroll(s);
|
|
211
|
-
return t && (i = this.removeTransform(i)), bt(i), {
|
|
212
|
-
animationId: this.root.animationId,
|
|
213
|
-
measuredBox: s,
|
|
214
|
-
layoutBox: i,
|
|
215
|
-
latestValues: {},
|
|
216
|
-
source: this.id
|
|
217
|
-
};
|
|
218
|
-
}
|
|
219
|
-
measurePageBox() {
|
|
220
|
-
var t;
|
|
221
|
-
const { visualElement: s } = this.options;
|
|
222
|
-
if (!s)
|
|
223
|
-
return m();
|
|
224
|
-
const i = s.measureViewportBox();
|
|
225
|
-
if (!(!((t = this.scroll) === null || t === void 0) && t.wasRoot || this.path.some(Nt))) {
|
|
226
|
-
const { scroll: o } = this.root;
|
|
227
|
-
o && (L(i.x, o.offset.x), L(i.y, o.offset.y));
|
|
228
|
-
}
|
|
229
|
-
return i;
|
|
230
|
-
}
|
|
231
|
-
removeElementScroll(t) {
|
|
232
|
-
var s;
|
|
233
|
-
const i = m();
|
|
234
|
-
if (y(i, t), !((s = this.scroll) === null || s === void 0) && s.wasRoot)
|
|
235
|
-
return i;
|
|
236
|
-
for (let o = 0; o < this.path.length; o++) {
|
|
237
|
-
const a = this.path[o], { scroll: n, options: r } = a;
|
|
238
|
-
a !== this.root && n && r.layoutScroll && (n.wasRoot && y(i, t), L(i.x, n.offset.x), L(i.y, n.offset.y));
|
|
239
|
-
}
|
|
240
|
-
return i;
|
|
241
|
-
}
|
|
242
|
-
applyTransform(t, s = !1) {
|
|
243
|
-
const i = m();
|
|
244
|
-
y(i, t);
|
|
245
|
-
for (let o = 0; o < this.path.length; o++) {
|
|
246
|
-
const a = this.path[o];
|
|
247
|
-
!s && a.options.layoutScroll && a.scroll && a !== a.root && k(i, {
|
|
248
|
-
x: -a.scroll.offset.x,
|
|
249
|
-
y: -a.scroll.offset.y
|
|
250
|
-
}), S(a.latestValues) && k(i, a.latestValues);
|
|
251
|
-
}
|
|
252
|
-
return S(this.latestValues) && k(i, this.latestValues), i;
|
|
253
|
-
}
|
|
254
|
-
removeTransform(t) {
|
|
255
|
-
const s = m();
|
|
256
|
-
y(s, t);
|
|
257
|
-
for (let i = 0; i < this.path.length; i++) {
|
|
258
|
-
const o = this.path[i];
|
|
259
|
-
if (!o.instance || !S(o.latestValues))
|
|
260
|
-
continue;
|
|
261
|
-
G(o.latestValues) && o.updateSnapshot();
|
|
262
|
-
const a = m(), n = o.measurePageBox();
|
|
263
|
-
y(a, n), b(s, o.latestValues, o.snapshot ? o.snapshot.layoutBox : void 0, a);
|
|
264
|
-
}
|
|
265
|
-
return S(this.latestValues) && b(s, this.latestValues), s;
|
|
266
|
-
}
|
|
267
|
-
setTargetDelta(t) {
|
|
268
|
-
this.targetDelta = t, this.root.scheduleUpdateProjection(), this.isProjectionDirty = !0;
|
|
269
|
-
}
|
|
270
|
-
setOptions(t) {
|
|
271
|
-
this.options = {
|
|
272
|
-
...this.options,
|
|
273
|
-
...t,
|
|
274
|
-
crossfade: t.crossfade !== void 0 ? t.crossfade : !0
|
|
275
|
-
};
|
|
276
|
-
}
|
|
277
|
-
clearMeasurements() {
|
|
278
|
-
this.scroll = void 0, this.layout = void 0, this.snapshot = void 0, this.prevTransformTemplateValue = void 0, this.targetDelta = void 0, this.target = void 0, this.isLayoutDirty = !1;
|
|
279
|
-
}
|
|
280
|
-
forceRelativeParentToResolveTarget() {
|
|
281
|
-
this.relativeParent && this.relativeParent.resolvedRelativeTargetAt !== g.timestamp && this.relativeParent.resolveTargetDelta(!0);
|
|
282
|
-
}
|
|
283
|
-
resolveTargetDelta(t = !1) {
|
|
284
|
-
var s;
|
|
285
|
-
const i = this.getLead();
|
|
286
|
-
this.isProjectionDirty || (this.isProjectionDirty = i.isProjectionDirty), this.isTransformDirty || (this.isTransformDirty = i.isTransformDirty), this.isSharedProjectionDirty || (this.isSharedProjectionDirty = i.isSharedProjectionDirty);
|
|
287
|
-
const o = !!this.resumingFrom || this !== i;
|
|
288
|
-
if (!(t || o && this.isSharedProjectionDirty || this.isProjectionDirty || !((s = this.parent) === null || s === void 0) && s.isProjectionDirty || this.attemptToResolveRelativeTarget || this.root.updateBlockedByResize))
|
|
289
|
-
return;
|
|
290
|
-
const { layout: a, layoutId: n } = this.options;
|
|
291
|
-
if (!(!this.layout || !(a || n))) {
|
|
292
|
-
if (this.resolvedRelativeTargetAt = g.timestamp, !this.targetDelta && !this.relativeTarget) {
|
|
293
|
-
const r = this.getClosestProjectingParent();
|
|
294
|
-
r && r.layout && this.animationProgress !== 1 ? (this.relativeParent = r, this.forceRelativeParentToResolveTarget(), this.relativeTarget = m(), this.relativeTargetOrigin = m(), B(this.relativeTargetOrigin, this.layout.layoutBox, r.layout.layoutBox), y(this.relativeTarget, this.relativeTargetOrigin)) : this.relativeParent = this.relativeTarget = void 0;
|
|
295
|
-
}
|
|
296
|
-
if (!(!this.relativeTarget && !this.targetDelta) && (this.target || (this.target = m(), this.targetWithTransforms = m()), this.relativeTarget && this.relativeTargetOrigin && this.relativeParent && this.relativeParent.target ? (this.forceRelativeParentToResolveTarget(), vt(this.target, this.relativeTarget, this.relativeParent.target)) : this.targetDelta ? (this.resumingFrom ? this.target = this.applyTransform(this.layout.layoutBox) : y(this.target, this.layout.layoutBox), yt(this.target, this.targetDelta)) : y(this.target, this.layout.layoutBox), this.attemptToResolveRelativeTarget)) {
|
|
297
|
-
this.attemptToResolveRelativeTarget = !1;
|
|
298
|
-
const r = this.getClosestProjectingParent();
|
|
299
|
-
r && !!r.resumingFrom == !!this.resumingFrom && !r.options.layoutScroll && r.target && this.animationProgress !== 1 ? (this.relativeParent = r, this.forceRelativeParentToResolveTarget(), this.relativeTarget = m(), this.relativeTargetOrigin = m(), B(this.relativeTargetOrigin, this.target, r.target), y(this.relativeTarget, this.relativeTargetOrigin)) : this.relativeParent = this.relativeTarget = void 0;
|
|
300
|
-
}
|
|
301
|
-
}
|
|
302
|
-
}
|
|
303
|
-
getClosestProjectingParent() {
|
|
304
|
-
if (!(!this.parent || G(this.parent.latestValues) || St(this.parent.latestValues)))
|
|
305
|
-
return this.parent.isProjecting() ? this.parent : this.parent.getClosestProjectingParent();
|
|
306
|
-
}
|
|
307
|
-
isProjecting() {
|
|
308
|
-
return !!((this.relativeTarget || this.targetDelta || this.options.layoutRoot) && this.layout);
|
|
309
|
-
}
|
|
310
|
-
calcProjection() {
|
|
311
|
-
var t;
|
|
312
|
-
const s = this.getLead(), i = !!this.resumingFrom || this !== s;
|
|
313
|
-
let o = !0;
|
|
314
|
-
if ((this.isProjectionDirty || !((t = this.parent) === null || t === void 0) && t.isProjectionDirty) && (o = !1), i && (this.isSharedProjectionDirty || this.isTransformDirty) && (o = !1), this.resolvedRelativeTargetAt === g.timestamp && (o = !1), o)
|
|
315
|
-
return;
|
|
316
|
-
const { layout: a, layoutId: n } = this.options;
|
|
317
|
-
if (this.isTreeAnimating = !!(this.parent && this.parent.isTreeAnimating || this.currentAnimation || this.pendingAnimation), this.isTreeAnimating || (this.targetDelta = this.relativeTarget = void 0), !this.layout || !(a || n))
|
|
318
|
-
return;
|
|
319
|
-
y(this.layoutCorrected, this.layout.layoutBox);
|
|
320
|
-
const r = this.treeScale.x, d = this.treeScale.y;
|
|
321
|
-
gt(this.layoutCorrected, this.treeScale, this.path, i), s.layout && !s.target && (this.treeScale.x !== 1 || this.treeScale.y !== 1) && (s.target = s.layout.layoutBox, s.targetWithTransforms = m());
|
|
322
|
-
const { target: p } = s;
|
|
323
|
-
if (!p) {
|
|
324
|
-
this.prevProjectionDelta && (this.createProjectionDeltas(), this.scheduleRender());
|
|
325
|
-
return;
|
|
326
|
-
}
|
|
327
|
-
!this.projectionDelta || !this.prevProjectionDelta ? this.createProjectionDeltas() : (M(this.prevProjectionDelta.x, this.projectionDelta.x), M(this.prevProjectionDelta.y, this.projectionDelta.y)), V(this.projectionDelta, this.layoutCorrected, p, this.latestValues), (this.treeScale.x !== r || this.treeScale.y !== d || !N(this.projectionDelta.x, this.prevProjectionDelta.x) || !N(this.projectionDelta.y, this.prevProjectionDelta.y)) && (this.hasProjected = !0, this.scheduleRender(), this.notifyListeners("projectionUpdate", p));
|
|
328
|
-
}
|
|
329
|
-
hide() {
|
|
330
|
-
this.isVisible = !1;
|
|
331
|
-
}
|
|
332
|
-
show() {
|
|
333
|
-
this.isVisible = !0;
|
|
334
|
-
}
|
|
335
|
-
scheduleRender(t = !0) {
|
|
336
|
-
var s;
|
|
337
|
-
if ((s = this.options.visualElement) === null || s === void 0 || s.scheduleRender(), t) {
|
|
338
|
-
const i = this.getStack();
|
|
339
|
-
i && i.scheduleRender();
|
|
340
|
-
}
|
|
341
|
-
this.resumingFrom && !this.resumingFrom.instance && (this.resumingFrom = void 0);
|
|
342
|
-
}
|
|
343
|
-
createProjectionDeltas() {
|
|
344
|
-
this.prevProjectionDelta = R(), this.projectionDelta = R(), this.projectionDeltaWithTransform = R();
|
|
345
|
-
}
|
|
346
|
-
setAnimationOrigin(t, s = !1) {
|
|
347
|
-
const i = this.snapshot, o = i ? i.latestValues : {}, a = { ...this.latestValues }, n = R();
|
|
348
|
-
(!this.relativeParent || !this.relativeParent.options.layoutRoot) && (this.relativeTarget = this.relativeTargetOrigin = void 0), this.attemptToResolveRelativeTarget = !s;
|
|
349
|
-
const r = m(), d = i ? i.source : void 0, p = this.layout ? this.layout.source : void 0, c = d !== p, v = this.getStack(), P = !v || v.members.length <= 1, A = !!(c && !P && this.options.crossfade === !0 && !this.path.some(It));
|
|
350
|
-
this.animationProgress = 0;
|
|
351
|
-
let f;
|
|
352
|
-
this.mixTargetDelta = (D) => {
|
|
353
|
-
const x = D / 1e3;
|
|
354
|
-
q(n.x, t.x, x), q(n.y, t.y, x), this.setTargetDelta(n), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (B(r, this.layout.layoutBox, this.relativeParent.layout.layoutBox), $t(this.relativeTarget, this.relativeTargetOrigin, r, x), f && xt(this.relativeTarget, f) && (this.isProjectionDirty = !1), f || (f = m()), y(f, this.relativeTarget)), c && (this.animationValues = a, ft(a, o, this.latestValues, x, A, P)), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = x;
|
|
355
|
-
}, this.mixTargetDelta(this.options.layoutRoot ? 1e3 : 0);
|
|
356
|
-
}
|
|
357
|
-
startAnimation(t) {
|
|
358
|
-
this.notifyListeners("animationStart"), this.currentAnimation && this.currentAnimation.stop(), this.resumingFrom && this.resumingFrom.currentAnimation && this.resumingFrom.currentAnimation.stop(), this.pendingAnimation && (I(this.pendingAnimation), this.pendingAnimation = void 0), this.pendingAnimation = E.update(() => {
|
|
359
|
-
F.hasAnimatedSinceResize = !0, this.currentAnimation = ht(0, X, {
|
|
360
|
-
...t,
|
|
361
|
-
onUpdate: (s) => {
|
|
362
|
-
this.mixTargetDelta(s), t.onUpdate && t.onUpdate(s);
|
|
363
|
-
},
|
|
364
|
-
onStop: () => {
|
|
365
|
-
},
|
|
366
|
-
onComplete: () => {
|
|
367
|
-
t.onComplete && t.onComplete(), this.completeAnimation();
|
|
368
|
-
}
|
|
369
|
-
}), this.resumingFrom && (this.resumingFrom.currentAnimation = this.currentAnimation), this.pendingAnimation = void 0;
|
|
370
|
-
});
|
|
371
|
-
}
|
|
372
|
-
completeAnimation() {
|
|
373
|
-
this.resumingFrom && (this.resumingFrom.currentAnimation = void 0, this.resumingFrom.preserveOpacity = void 0);
|
|
374
|
-
const t = this.getStack();
|
|
375
|
-
t && t.exitAnimationComplete(), this.resumingFrom = this.currentAnimation = this.animationValues = void 0, this.notifyListeners("animationComplete");
|
|
376
|
-
}
|
|
377
|
-
finishAnimation() {
|
|
378
|
-
this.currentAnimation && (this.mixTargetDelta && this.mixTargetDelta(X), this.currentAnimation.stop()), this.completeAnimation();
|
|
379
|
-
}
|
|
380
|
-
applyTransformsToTarget() {
|
|
381
|
-
const t = this.getLead();
|
|
382
|
-
let { targetWithTransforms: s, target: i, layout: o, latestValues: a } = t;
|
|
383
|
-
if (!(!s || !i || !o)) {
|
|
384
|
-
if (this !== t && this.layout && o && st(this.options.animationType, this.layout.layoutBox, o.layoutBox)) {
|
|
385
|
-
i = this.target || m();
|
|
386
|
-
const n = j(this.layout.layoutBox.x);
|
|
387
|
-
i.x.min = t.target.x.min, i.x.max = i.x.min + n;
|
|
388
|
-
const r = j(this.layout.layoutBox.y);
|
|
389
|
-
i.y.min = t.target.y.min, i.y.max = i.y.min + r;
|
|
390
|
-
}
|
|
391
|
-
y(s, i), k(s, a), V(this.projectionDeltaWithTransform, this.layoutCorrected, s, a);
|
|
392
|
-
}
|
|
393
|
-
}
|
|
394
|
-
registerSharedNode(t, s) {
|
|
395
|
-
this.sharedNodes.has(t) || this.sharedNodes.set(t, new Pt()), this.sharedNodes.get(t).add(s);
|
|
396
|
-
const i = s.options.initialPromotionConfig;
|
|
397
|
-
s.promote({
|
|
398
|
-
transition: i ? i.transition : void 0,
|
|
399
|
-
preserveFollowOpacity: i && i.shouldPreserveFollowOpacity ? i.shouldPreserveFollowOpacity(s) : void 0
|
|
400
|
-
});
|
|
401
|
-
}
|
|
402
|
-
isLead() {
|
|
403
|
-
const t = this.getStack();
|
|
404
|
-
return t ? t.lead === this : !0;
|
|
405
|
-
}
|
|
406
|
-
getLead() {
|
|
407
|
-
var t;
|
|
408
|
-
const { layoutId: s } = this.options;
|
|
409
|
-
return s ? ((t = this.getStack()) === null || t === void 0 ? void 0 : t.lead) || this : this;
|
|
410
|
-
}
|
|
411
|
-
getPrevLead() {
|
|
412
|
-
var t;
|
|
413
|
-
const { layoutId: s } = this.options;
|
|
414
|
-
return s ? (t = this.getStack()) === null || t === void 0 ? void 0 : t.prevLead : void 0;
|
|
415
|
-
}
|
|
416
|
-
getStack() {
|
|
417
|
-
const { layoutId: t } = this.options;
|
|
418
|
-
if (t)
|
|
419
|
-
return this.root.sharedNodes.get(t);
|
|
420
|
-
}
|
|
421
|
-
promote({ needsReset: t, transition: s, preserveFollowOpacity: i } = {}) {
|
|
422
|
-
const o = this.getStack();
|
|
423
|
-
o && o.promote(this, i), t && (this.projectionDelta = void 0, this.needsReset = !0), s && this.setOptions({ transition: s });
|
|
424
|
-
}
|
|
425
|
-
relegate() {
|
|
426
|
-
const t = this.getStack();
|
|
427
|
-
return t ? t.relegate(this) : !1;
|
|
428
|
-
}
|
|
429
|
-
resetSkewAndRotation() {
|
|
430
|
-
const { visualElement: t } = this.options;
|
|
431
|
-
if (!t)
|
|
432
|
-
return;
|
|
433
|
-
let s = !1;
|
|
434
|
-
const { latestValues: i } = t;
|
|
435
|
-
if ((i.z || i.rotate || i.rotateX || i.rotateY || i.rotateZ || i.skewX || i.skewY) && (s = !0), !s)
|
|
436
|
-
return;
|
|
437
|
-
const o = {};
|
|
438
|
-
i.z && $("z", t, o, this.animationValues);
|
|
439
|
-
for (let a = 0; a < O.length; a++)
|
|
440
|
-
$(`rotate${O[a]}`, t, o, this.animationValues), $(`skew${O[a]}`, t, o, this.animationValues);
|
|
441
|
-
t.render();
|
|
442
|
-
for (const a in o)
|
|
443
|
-
t.setStaticValue(a, o[a]), this.animationValues && (this.animationValues[a] = o[a]);
|
|
444
|
-
t.scheduleRender();
|
|
445
|
-
}
|
|
446
|
-
getProjectionStyles(t) {
|
|
447
|
-
var s, i;
|
|
448
|
-
if (!this.instance || this.isSVG)
|
|
449
|
-
return;
|
|
450
|
-
if (!this.isVisible)
|
|
451
|
-
return jt;
|
|
452
|
-
const o = {
|
|
453
|
-
visibility: ""
|
|
454
|
-
}, a = this.getTransformTemplate();
|
|
455
|
-
if (this.needsReset)
|
|
456
|
-
return this.needsReset = !1, o.opacity = "", o.pointerEvents = C(t == null ? void 0 : t.pointerEvents) || "", o.transform = a ? a(this.latestValues, "") : "none", o;
|
|
457
|
-
const n = this.getLead();
|
|
458
|
-
if (!this.projectionDelta || !this.layout || !n.target) {
|
|
459
|
-
const c = {};
|
|
460
|
-
return this.options.layoutId && (c.opacity = this.latestValues.opacity !== void 0 ? this.latestValues.opacity : 1, c.pointerEvents = C(t == null ? void 0 : t.pointerEvents) || ""), this.hasProjected && !S(this.latestValues) && (c.transform = a ? a({}, "") : "none", this.hasProjected = !1), c;
|
|
461
|
-
}
|
|
462
|
-
const r = n.animationValues || n.latestValues;
|
|
463
|
-
this.applyTransformsToTarget(), o.transform = Dt(this.projectionDeltaWithTransform, this.treeScale, r), a && (o.transform = a(r, o.transform));
|
|
464
|
-
const { x: d, y: p } = this.projectionDelta;
|
|
465
|
-
o.transformOrigin = `${d.origin * 100}% ${p.origin * 100}% 0`, n.animationValues ? o.opacity = n === this ? (i = (s = r.opacity) !== null && s !== void 0 ? s : this.latestValues.opacity) !== null && i !== void 0 ? i : 1 : this.preserveOpacity ? this.latestValues.opacity : r.opacityExit : o.opacity = n === this ? r.opacity !== void 0 ? r.opacity : "" : r.opacityExit !== void 0 ? r.opacityExit : 0;
|
|
466
|
-
for (const c in H) {
|
|
467
|
-
if (r[c] === void 0)
|
|
468
|
-
continue;
|
|
469
|
-
const { correct: v, applyTo: P, isCSSVariable: A } = H[c], f = o.transform === "none" ? r[c] : v(r[c], n);
|
|
470
|
-
if (P) {
|
|
471
|
-
const D = P.length;
|
|
472
|
-
for (let x = 0; x < D; x++)
|
|
473
|
-
o[P[x]] = f;
|
|
474
|
-
} else
|
|
475
|
-
A ? this.options.visualElement.renderState.vars[c] = f : o[c] = f;
|
|
476
|
-
}
|
|
477
|
-
return this.options.layoutId && (o.pointerEvents = n === this ? C(t == null ? void 0 : t.pointerEvents) || "" : "none"), o;
|
|
478
|
-
}
|
|
479
|
-
clearSnapshot() {
|
|
480
|
-
this.resumeFrom = this.snapshot = void 0;
|
|
481
|
-
}
|
|
482
|
-
// Only run on root
|
|
483
|
-
resetTree() {
|
|
484
|
-
this.root.nodes.forEach((t) => {
|
|
485
|
-
var s;
|
|
486
|
-
return (s = t.currentAnimation) === null || s === void 0 ? void 0 : s.stop();
|
|
487
|
-
}), this.root.nodes.forEach(Y), this.root.sharedNodes.clear();
|
|
488
|
-
}
|
|
489
|
-
};
|
|
490
|
-
}
|
|
491
|
-
function At(e) {
|
|
492
|
-
e.updateLayout();
|
|
493
|
-
}
|
|
494
|
-
function Bt(e) {
|
|
495
|
-
var l;
|
|
496
|
-
const h = ((l = e.resumeFrom) === null || l === void 0 ? void 0 : l.snapshot) || e.snapshot;
|
|
497
|
-
if (e.isLead() && e.layout && h && e.hasListeners("didUpdate")) {
|
|
498
|
-
const { layoutBox: u, measuredBox: T } = e.layout, { animationType: t } = e.options, s = h.source !== e.layout.source;
|
|
499
|
-
t === "size" ? W((r) => {
|
|
500
|
-
const d = s ? h.measuredBox[r] : h.layoutBox[r], p = j(d);
|
|
501
|
-
d.min = u[r].min, d.max = d.min + p;
|
|
502
|
-
}) : st(t, h.layoutBox, u) && W((r) => {
|
|
503
|
-
const d = s ? h.measuredBox[r] : h.layoutBox[r], p = j(u[r]);
|
|
504
|
-
d.max = d.min + p, e.relativeTarget && !e.currentAnimation && (e.isProjectionDirty = !0, e.relativeTarget[r].max = e.relativeTarget[r].min + p);
|
|
505
|
-
});
|
|
506
|
-
const i = R();
|
|
507
|
-
V(i, u, h.layoutBox);
|
|
508
|
-
const o = R();
|
|
509
|
-
s ? V(o, e.applyTransform(T, !0), h.measuredBox) : V(o, u, h.layoutBox);
|
|
510
|
-
const a = !et(i);
|
|
511
|
-
let n = !1;
|
|
512
|
-
if (!e.resumeFrom) {
|
|
513
|
-
const r = e.getClosestProjectingParent();
|
|
514
|
-
if (r && !r.resumeFrom) {
|
|
515
|
-
const { snapshot: d, layout: p } = r;
|
|
516
|
-
if (d && p) {
|
|
517
|
-
const c = m();
|
|
518
|
-
B(c, h.layoutBox, d.layoutBox);
|
|
519
|
-
const v = m();
|
|
520
|
-
B(v, u, p.layoutBox), tt(c, v) || (n = !0), r.options.layoutRoot && (e.relativeTarget = v, e.relativeTargetOrigin = c, e.relativeParent = r);
|
|
521
|
-
}
|
|
522
|
-
}
|
|
523
|
-
}
|
|
524
|
-
e.notifyListeners("didUpdate", {
|
|
525
|
-
layout: u,
|
|
526
|
-
snapshot: h,
|
|
527
|
-
delta: o,
|
|
528
|
-
layoutDelta: i,
|
|
529
|
-
hasLayoutChanged: a,
|
|
530
|
-
hasRelativeLayoutChanged: n
|
|
531
|
-
});
|
|
532
|
-
} else if (e.isLead()) {
|
|
533
|
-
const { onExitComplete: u } = e.options;
|
|
534
|
-
u && u();
|
|
535
|
-
}
|
|
536
|
-
e.options.transition = void 0;
|
|
537
|
-
}
|
|
538
|
-
function Vt(e) {
|
|
539
|
-
e.parent && (e.isProjecting() || (e.isProjectionDirty = e.parent.isProjectionDirty), e.isSharedProjectionDirty || (e.isSharedProjectionDirty = !!(e.isProjectionDirty || e.parent.isProjectionDirty || e.parent.isSharedProjectionDirty)), e.isTransformDirty || (e.isTransformDirty = e.parent.isTransformDirty));
|
|
540
|
-
}
|
|
541
|
-
function Lt(e) {
|
|
542
|
-
e.isProjectionDirty = e.isSharedProjectionDirty = e.isTransformDirty = !1;
|
|
543
|
-
}
|
|
544
|
-
function kt(e) {
|
|
545
|
-
e.clearSnapshot();
|
|
546
|
-
}
|
|
547
|
-
function Y(e) {
|
|
548
|
-
e.clearMeasurements();
|
|
549
|
-
}
|
|
550
|
-
function Et(e) {
|
|
551
|
-
e.isLayoutDirty = !1;
|
|
552
|
-
}
|
|
553
|
-
function Ut(e) {
|
|
554
|
-
const { visualElement: l } = e.options;
|
|
555
|
-
l && l.getProps().onBeforeLayoutMeasure && l.notify("BeforeLayoutMeasure"), e.resetTransform();
|
|
556
|
-
}
|
|
557
|
-
function Z(e) {
|
|
558
|
-
e.finishAnimation(), e.targetDelta = e.relativeTarget = e.target = void 0, e.isProjectionDirty = !0;
|
|
559
|
-
}
|
|
560
|
-
function wt(e) {
|
|
561
|
-
e.resolveTargetDelta();
|
|
562
|
-
}
|
|
563
|
-
function Ct(e) {
|
|
564
|
-
e.calcProjection();
|
|
565
|
-
}
|
|
566
|
-
function Ft(e) {
|
|
567
|
-
e.resetSkewAndRotation();
|
|
568
|
-
}
|
|
569
|
-
function Ot(e) {
|
|
570
|
-
e.removeLeadSnapshot();
|
|
571
|
-
}
|
|
572
|
-
function q(e, l, h) {
|
|
573
|
-
e.translate = U(l.translate, 0, h), e.scale = U(l.scale, 1, h), e.origin = l.origin, e.originPoint = l.originPoint;
|
|
574
|
-
}
|
|
575
|
-
function _(e, l, h, u) {
|
|
576
|
-
e.min = U(l.min, h.min, u), e.max = U(l.max, h.max, u);
|
|
577
|
-
}
|
|
578
|
-
function $t(e, l, h, u) {
|
|
579
|
-
_(e.x, l.x, h.x, u), _(e.y, l.y, h.y, u);
|
|
580
|
-
}
|
|
581
|
-
function It(e) {
|
|
582
|
-
return e.animationValues && e.animationValues.opacityExit !== void 0;
|
|
583
|
-
}
|
|
584
|
-
const Mt = {
|
|
585
|
-
duration: 0.45,
|
|
586
|
-
ease: [0.4, 0, 0.1, 1]
|
|
587
|
-
}, J = (e) => typeof navigator < "u" && navigator.userAgent && navigator.userAgent.toLowerCase().includes(e), K = J("applewebkit/") && !J("chrome/") ? Math.round : ot;
|
|
588
|
-
function Q(e) {
|
|
589
|
-
e.min = K(e.min), e.max = K(e.max);
|
|
590
|
-
}
|
|
591
|
-
function bt(e) {
|
|
592
|
-
Q(e.x), Q(e.y);
|
|
593
|
-
}
|
|
594
|
-
function st(e, l, h) {
|
|
595
|
-
return e === "position" || e === "preserve-aspect" && !Tt(z(l), z(h), 0.2);
|
|
596
|
-
}
|
|
597
|
-
function Nt(e) {
|
|
598
|
-
var l;
|
|
599
|
-
return e !== e.root && ((l = e.scroll) === null || l === void 0 ? void 0 : l.wasRoot);
|
|
600
|
-
}
|
|
601
|
-
export {
|
|
602
|
-
Lt as cleanDirtyNodes,
|
|
603
|
-
ye as createProjectionNode,
|
|
604
|
-
_ as mixAxis,
|
|
605
|
-
q as mixAxisDelta,
|
|
606
|
-
$t as mixBox,
|
|
607
|
-
Vt as propagateDirtyNodes
|
|
608
|
-
};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
const e = {
|
|
2
|
-
/**
|
|
3
|
-
* Global flag as to whether the tree has animated since the last time
|
|
4
|
-
* we resized the window
|
|
5
|
-
*/
|
|
6
|
-
hasAnimatedSinceResize: !0,
|
|
7
|
-
/**
|
|
8
|
-
* We set this to true once, on the first update. Any nodes added to the tree beyond that
|
|
9
|
-
* update will be given a `data-projection-id` attribute.
|
|
10
|
-
*/
|
|
11
|
-
hasEverUpdated: !1
|
|
12
|
-
};
|
|
13
|
-
export {
|
|
14
|
-
e as globalProjectionState
|
|
15
|
-
};
|