@pibit.ai/cure-design-system 0.3.4 → 0.3.6
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/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +36 -28
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PopChild.js +59 -0
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PresenceChild.js +34 -0
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/index.js +47 -0
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/use-presence.js +17 -0
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/utils.js +12 -0
- package/dist/node_modules/framer-motion/dist/es/context/LayoutGroupContext.js +5 -0
- package/dist/node_modules/framer-motion/dist/es/context/LazyContext.js +5 -0
- package/dist/node_modules/framer-motion/dist/es/context/MotionConfigContext.js +9 -0
- package/dist/node_modules/framer-motion/dist/es/context/MotionContext/create.js +13 -0
- package/dist/node_modules/framer-motion/dist/es/context/MotionContext/index.js +5 -0
- package/dist/node_modules/framer-motion/dist/es/context/MotionContext/utils.js +15 -0
- package/dist/node_modules/framer-motion/dist/es/context/PresenceContext.js +5 -0
- package/dist/node_modules/framer-motion/dist/es/context/SwitchLayoutGroupContext.js +5 -0
- package/dist/node_modules/framer-motion/dist/es/events/add-pointer-event.js +8 -0
- package/dist/node_modules/framer-motion/dist/es/events/event-info.js +14 -0
- package/dist/node_modules/framer-motion/dist/es/gestures/drag/VisualElementDragControls.js +277 -0
- package/dist/node_modules/framer-motion/dist/es/gestures/drag/index.js +22 -0
- package/dist/node_modules/framer-motion/dist/es/gestures/drag/utils/constraints.js +67 -0
- package/dist/node_modules/framer-motion/dist/es/gestures/focus.js +28 -0
- package/dist/node_modules/framer-motion/dist/es/gestures/hover.js +21 -0
- package/dist/node_modules/framer-motion/dist/es/gestures/pan/PanSession.js +131 -0
- package/dist/node_modules/framer-motion/dist/es/gestures/pan/index.js +43 -0
- package/dist/node_modules/framer-motion/dist/es/gestures/press.js +23 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/animation/exit.js +27 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/animation/index.js +34 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/animations.js +13 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/definitions.js +39 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/drag.js +17 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/gestures.js +21 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/layout/MeasureLayout.js +60 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/layout.js +11 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/load-features.js +14 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/viewport/index.js +44 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/viewport/observers.js +21 -0
- package/dist/node_modules/framer-motion/dist/es/motion/index.js +63 -0
- package/dist/node_modules/framer-motion/dist/es/motion/utils/symbol.js +4 -0
- package/dist/node_modules/framer-motion/dist/es/motion/utils/use-motion-ref.js +22 -0
- package/dist/node_modules/framer-motion/dist/es/motion/utils/use-visual-element.js +66 -0
- package/dist/node_modules/framer-motion/dist/es/motion/utils/use-visual-state.js +52 -0
- package/dist/node_modules/framer-motion/dist/es/motion/utils/valid-prop.js +38 -0
- package/dist/node_modules/framer-motion/dist/es/render/components/create-proxy.js +18 -0
- package/dist/node_modules/framer-motion/dist/es/render/components/motion/feature-bundle.js +13 -0
- package/dist/node_modules/framer-motion/dist/es/render/components/motion/proxy.js +7 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/create-visual-element.js +10 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/use-render.js +16 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/utils/filter-props.js +20 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/utils/is-svg-component.js +24 -0
- package/dist/node_modules/framer-motion/dist/es/render/html/use-html-visual-state.js +10 -0
- package/dist/node_modules/framer-motion/dist/es/render/html/use-props.js +27 -0
- package/dist/node_modules/framer-motion/dist/es/render/html/utils/create-render-state.js +9 -0
- package/dist/node_modules/framer-motion/dist/es/render/svg/lowercase-elements.js +30 -0
- package/dist/node_modules/framer-motion/dist/es/render/svg/use-props.js +22 -0
- package/dist/node_modules/framer-motion/dist/es/render/svg/use-svg-visual-state.js +10 -0
- package/dist/node_modules/framer-motion/dist/es/render/svg/utils/create-render-state.js +8 -0
- package/dist/node_modules/framer-motion/dist/es/utils/distance.js +9 -0
- package/dist/node_modules/framer-motion/dist/es/utils/get-context-window.js +4 -0
- package/dist/node_modules/framer-motion/dist/es/utils/is-browser.js +4 -0
- package/dist/node_modules/framer-motion/dist/es/utils/is-ref-object.js +6 -0
- package/dist/node_modules/framer-motion/dist/es/utils/use-composed-ref.js +28 -0
- package/dist/node_modules/framer-motion/dist/es/utils/use-constant.js +8 -0
- package/dist/node_modules/framer-motion/dist/es/utils/use-isomorphic-effect.js +6 -0
- package/dist/node_modules/motion-dom/dist/es/animation/AsyncMotionValueAnimation.js +106 -0
- package/dist/node_modules/motion-dom/dist/es/animation/JSAnimation.js +133 -0
- package/dist/node_modules/motion-dom/dist/es/animation/NativeAnimation.js +109 -0
- package/dist/node_modules/motion-dom/dist/es/animation/NativeAnimationExtended.js +37 -0
- package/dist/node_modules/motion-dom/dist/es/animation/animate/single-value.js +10 -0
- package/dist/node_modules/motion-dom/dist/es/animation/drivers/frame.js +17 -0
- package/dist/node_modules/motion-dom/dist/es/animation/generators/inertia.js +37 -0
- package/dist/node_modules/motion-dom/dist/es/animation/generators/keyframes.js +30 -0
- package/dist/node_modules/motion-dom/dist/es/animation/generators/spring/defaults.js +32 -0
- package/dist/node_modules/motion-dom/dist/es/animation/generators/spring/find.js +52 -0
- package/dist/node_modules/motion-dom/dist/es/animation/generators/spring/index.js +98 -0
- package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/calc-duration.js +13 -0
- package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/create-generator-easing.js +13 -0
- package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/is-generator.js +6 -0
- package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/velocity.js +9 -0
- package/dist/node_modules/motion-dom/dist/es/animation/interfaces/motion-value.js +46 -0
- package/dist/node_modules/motion-dom/dist/es/animation/interfaces/visual-element-target.js +49 -0
- package/dist/node_modules/motion-dom/dist/es/animation/interfaces/visual-element-variant.js +30 -0
- package/dist/node_modules/motion-dom/dist/es/animation/interfaces/visual-element.js +22 -0
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/DOMKeyframesResolver.js +69 -0
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/KeyframesResolver.js +75 -0
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/get-final.js +8 -0
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/offsets/default.js +8 -0
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/offsets/fill.js +12 -0
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/offsets/time.js +6 -0
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/fill-wildcards.js +7 -0
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/is-none.js +7 -0
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/make-none-animatable.js +16 -0
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/unit-conversion.js +31 -0
- package/dist/node_modules/motion-dom/dist/es/animation/optimized-appear/data-id.js +6 -0
- package/dist/node_modules/motion-dom/dist/es/animation/optimized-appear/get-appear-id.js +7 -0
- package/dist/node_modules/motion-dom/dist/es/animation/utils/WithPromise.js +27 -0
- package/dist/node_modules/motion-dom/dist/es/animation/utils/calc-child-stagger.js +7 -0
- package/dist/node_modules/motion-dom/dist/es/animation/utils/can-animate.js +23 -0
- package/dist/node_modules/motion-dom/dist/es/animation/utils/css-variables-conversion.js +31 -0
- package/dist/node_modules/motion-dom/dist/es/animation/utils/default-transitions.js +22 -0
- package/dist/node_modules/motion-dom/dist/es/animation/utils/get-final-keyframe.js +8 -0
- package/dist/node_modules/motion-dom/dist/es/animation/utils/get-value-transition.js +6 -0
- package/dist/node_modules/motion-dom/dist/es/animation/utils/is-animatable.js +7 -0
- package/dist/node_modules/motion-dom/dist/es/animation/utils/is-css-variable.js +9 -0
- package/dist/node_modules/motion-dom/dist/es/animation/utils/is-transition-defined.js +6 -0
- package/dist/node_modules/motion-dom/dist/es/animation/utils/make-animation-instant.js +6 -0
- package/dist/node_modules/motion-dom/dist/es/animation/utils/replace-transition-type.js +16 -0
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/easing/cubic-bezier.js +4 -0
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/easing/map-easing.js +12 -0
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/easing/supported.js +15 -0
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/start-waapi-animation.js +21 -0
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/supports/waapi.js +24 -0
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/apply-generator.js +8 -0
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/linear.js +10 -0
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/unsupported-easing.js +17 -0
- package/dist/node_modules/motion-dom/dist/es/events/add-dom-event.js +6 -0
- package/dist/node_modules/motion-dom/dist/es/frameloop/batcher.js +27 -0
- package/dist/node_modules/motion-dom/dist/es/frameloop/frame.js +9 -0
- package/dist/node_modules/motion-dom/dist/es/frameloop/microtask.js +5 -0
- package/dist/node_modules/motion-dom/dist/es/frameloop/order.js +21 -0
- package/dist/node_modules/motion-dom/dist/es/frameloop/render-step.js +41 -0
- package/dist/node_modules/motion-dom/dist/es/frameloop/sync-time.js +15 -0
- package/dist/node_modules/motion-dom/dist/es/gestures/drag/state/is-active.js +11 -0
- package/dist/node_modules/motion-dom/dist/es/gestures/drag/state/set-active.js +11 -0
- package/dist/node_modules/motion-dom/dist/es/gestures/hover.js +24 -0
- package/dist/node_modules/motion-dom/dist/es/gestures/press/index.js +33 -0
- package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/is-keyboard-accessible.js +13 -0
- package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/keyboard.js +27 -0
- package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/state.js +4 -0
- package/dist/node_modules/motion-dom/dist/es/gestures/utils/is-node-or-child.js +4 -0
- package/dist/node_modules/motion-dom/dist/es/gestures/utils/is-primary-pointer.js +4 -0
- package/dist/node_modules/motion-dom/dist/es/gestures/utils/setup.js +12 -0
- package/dist/node_modules/motion-dom/dist/es/projection/animation/mix-values.js +27 -0
- package/dist/node_modules/motion-dom/dist/es/projection/geometry/conversion.js +25 -0
- package/dist/node_modules/motion-dom/dist/es/projection/geometry/copy.js +14 -0
- package/dist/node_modules/motion-dom/dist/es/projection/geometry/delta-apply.js +52 -0
- package/dist/node_modules/motion-dom/dist/es/projection/geometry/delta-calc.js +36 -0
- package/dist/node_modules/motion-dom/dist/es/projection/geometry/delta-remove.js +25 -0
- package/dist/node_modules/motion-dom/dist/es/projection/geometry/models.js +18 -0
- package/dist/node_modules/motion-dom/dist/es/projection/geometry/utils.js +34 -0
- package/dist/node_modules/motion-dom/dist/es/projection/node/DocumentProjectionNode.js +16 -0
- package/dist/node_modules/motion-dom/dist/es/projection/node/HTMLProjectionNode.js +25 -0
- package/dist/node_modules/motion-dom/dist/es/projection/node/create-projection-node.js +623 -0
- package/dist/node_modules/motion-dom/dist/es/projection/node/state.js +15 -0
- package/dist/node_modules/motion-dom/dist/es/projection/shared/stack.js +60 -0
- package/dist/node_modules/motion-dom/dist/es/projection/styles/scale-border-radius.js +21 -0
- package/dist/node_modules/motion-dom/dist/es/projection/styles/scale-box-shadow.js +16 -0
- package/dist/node_modules/motion-dom/dist/es/projection/styles/scale-correction.js +21 -0
- package/dist/node_modules/motion-dom/dist/es/projection/styles/transform.js +13 -0
- package/dist/node_modules/motion-dom/dist/es/projection/utils/compare-by-depth.js +4 -0
- package/dist/node_modules/motion-dom/dist/es/projection/utils/each-axis.js +6 -0
- package/dist/node_modules/motion-dom/dist/es/projection/utils/flat-tree.js +19 -0
- package/dist/node_modules/motion-dom/dist/es/projection/utils/has-transform.js +20 -0
- package/dist/node_modules/motion-dom/dist/es/projection/utils/measure.js +13 -0
- package/dist/node_modules/motion-dom/dist/es/render/Feature.js +10 -0
- package/dist/node_modules/motion-dom/dist/es/render/VisualElement.js +247 -0
- package/dist/node_modules/motion-dom/dist/es/render/dom/DOMVisualElement.js +28 -0
- package/dist/node_modules/motion-dom/dist/es/render/dom/is-css-var.js +4 -0
- package/dist/node_modules/motion-dom/dist/es/render/dom/parse-transform.js +65 -0
- package/dist/node_modules/motion-dom/dist/es/render/dom/style-set.js +7 -0
- package/dist/node_modules/motion-dom/dist/es/render/dom/utils/camel-to-dash.js +6 -0
- package/dist/node_modules/motion-dom/dist/es/render/html/HTMLVisualElement.js +38 -0
- package/dist/node_modules/motion-dom/dist/es/render/html/utils/build-styles.js +29 -0
- package/dist/node_modules/motion-dom/dist/es/render/html/utils/build-transform.js +37 -0
- package/dist/node_modules/motion-dom/dist/es/render/html/utils/render.js +12 -0
- package/dist/node_modules/motion-dom/dist/es/render/html/utils/scrape-motion-values.js +14 -0
- package/dist/node_modules/motion-dom/dist/es/render/store.js +4 -0
- package/dist/node_modules/motion-dom/dist/es/render/svg/SVGVisualElement.js +40 -0
- package/dist/node_modules/motion-dom/dist/es/render/svg/utils/build-attrs.js +32 -0
- package/dist/node_modules/motion-dom/dist/es/render/svg/utils/camel-case-attrs.js +28 -0
- package/dist/node_modules/motion-dom/dist/es/render/svg/utils/is-svg-tag.js +4 -0
- package/dist/node_modules/motion-dom/dist/es/render/svg/utils/path.js +15 -0
- package/dist/node_modules/motion-dom/dist/es/render/svg/utils/render.js +11 -0
- package/dist/node_modules/motion-dom/dist/es/render/svg/utils/scrape-motion-values.js +15 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/animation-state.js +141 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/get-variant-context.js +20 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/is-animation-controls.js +6 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/is-controlling-variants.js +13 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/is-forced-motion-value.js +9 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/is-keyframes-target.js +4 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/is-variant-label.js +6 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/keys-position.js +13 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/keys-transform.js +23 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/motion-values.js +25 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/reduced-motion/index.js +15 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/reduced-motion/state.js +5 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/resolve-dynamic-variants.js +8 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/resolve-variants.js +20 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/setters.js +21 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/shallow-compare.js +14 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/variant-props.js +13 -0
- package/dist/node_modules/motion-dom/dist/es/utils/delay.js +12 -0
- package/dist/node_modules/motion-dom/dist/es/utils/interpolate.js +42 -0
- package/dist/node_modules/motion-dom/dist/es/utils/is-html-element.js +7 -0
- package/dist/node_modules/motion-dom/dist/es/utils/is-svg-element.js +7 -0
- package/dist/node_modules/motion-dom/dist/es/utils/is-svg-svg-element.js +7 -0
- package/dist/node_modules/motion-dom/dist/es/utils/mix/color.js +29 -0
- package/dist/node_modules/motion-dom/dist/es/utils/mix/complex.js +51 -0
- package/dist/node_modules/motion-dom/dist/es/utils/mix/immediate.js +6 -0
- package/dist/node_modules/motion-dom/dist/es/utils/mix/index.js +8 -0
- package/dist/node_modules/motion-dom/dist/es/utils/mix/number.js +4 -0
- package/dist/node_modules/motion-dom/dist/es/utils/mix/visibility.js +8 -0
- package/dist/node_modules/motion-dom/dist/es/utils/resolve-elements.js +15 -0
- package/dist/node_modules/motion-dom/dist/es/utils/supports/flags.js +4 -0
- package/dist/node_modules/motion-dom/dist/es/utils/supports/linear-easing.js +12 -0
- package/dist/node_modules/motion-dom/dist/es/utils/supports/memo.js +9 -0
- package/dist/node_modules/motion-dom/dist/es/utils/supports/scroll-timeline.js +5 -0
- package/dist/node_modules/motion-dom/dist/es/value/index.js +215 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/auto.js +7 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/color/hex.js +19 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/color/hsla-to-rgba.js +22 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/color/hsla.js +12 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/color/index.js +15 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/color/rgba.js +16 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/color/utils.js +18 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/complex/filter.js +24 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/complex/index.js +49 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/dimensions.js +9 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/int.js +8 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/maps/defaults.js +24 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/maps/number.js +70 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/maps/transform.js +31 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/numbers/index.js +17 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/numbers/units.js +17 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/test.js +4 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/animatable-none.js +10 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/color-regex.js +4 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/find.js +8 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/float-regex.js +4 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/get-as-type.js +4 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/is-nullish.js +6 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/sanitize.js +4 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/single-color-regex.js +4 -0
- package/dist/node_modules/motion-dom/dist/es/value/utils/is-motion-value.js +4 -0
- package/dist/node_modules/motion-dom/dist/es/value/utils/resolve-motion-value.js +7 -0
- package/dist/node_modules/motion-dom/dist/es/value/will-change/add-will-change.js +14 -0
- package/dist/node_modules/motion-dom/dist/es/value/will-change/is.js +7 -0
- package/dist/node_modules/motion-utils/dist/es/array.js +11 -0
- package/dist/node_modules/motion-utils/dist/es/clamp.js +4 -0
- package/dist/node_modules/motion-utils/dist/es/easing/anticipate.js +5 -0
- package/dist/node_modules/motion-utils/dist/es/easing/back.js +9 -0
- package/dist/node_modules/motion-utils/dist/es/easing/circ.js +8 -0
- package/dist/node_modules/motion-utils/dist/es/easing/cubic-bezier.js +18 -0
- package/dist/node_modules/motion-utils/dist/es/easing/ease.js +7 -0
- package/dist/node_modules/motion-utils/dist/es/easing/modifiers/mirror.js +4 -0
- package/dist/node_modules/motion-utils/dist/es/easing/modifiers/reverse.js +4 -0
- package/dist/node_modules/motion-utils/dist/es/easing/utils/is-bezier-definition.js +4 -0
- package/dist/node_modules/motion-utils/dist/es/easing/utils/is-easing-array.js +4 -0
- package/dist/node_modules/motion-utils/dist/es/easing/utils/map.js +32 -0
- package/dist/node_modules/motion-utils/dist/es/errors.js +15 -0
- package/dist/node_modules/motion-utils/dist/es/format-error-message.js +6 -0
- package/dist/node_modules/motion-utils/dist/es/global-config.js +4 -0
- package/dist/node_modules/motion-utils/dist/es/is-numerical-string.js +4 -0
- package/dist/node_modules/motion-utils/dist/es/is-object.js +6 -0
- package/dist/node_modules/motion-utils/dist/es/is-zero-value-string.js +4 -0
- package/dist/node_modules/motion-utils/dist/es/memo.js +8 -0
- package/dist/node_modules/motion-utils/dist/es/noop.js +4 -0
- package/dist/node_modules/motion-utils/dist/es/pipe.js +4 -0
- package/dist/node_modules/motion-utils/dist/es/progress.js +7 -0
- package/dist/node_modules/motion-utils/dist/es/subscription-manager.js +29 -0
- package/dist/node_modules/motion-utils/dist/es/time-conversion.js +5 -0
- package/dist/node_modules/motion-utils/dist/es/velocity-per-second.js +6 -0
- package/dist/node_modules/motion-utils/dist/es/warn-once.js +8 -0
- package/dist/patterns/table/TableWrapper.d.ts +82 -0
- package/dist/patterns/table/TableWrapper.d.ts.map +1 -0
- package/dist/patterns/table/TableWrapper.js +141 -0
- package/dist/patterns/table/index.d.ts +1 -0
- package/dist/patterns/table/index.d.ts.map +1 -1
- package/dist/patterns/tree/TreeStructure.js +110 -0
- package/dist/patterns/tree/helper.js +21 -0
- package/dist/patterns/tree/index.d.ts +4 -0
- package/dist/patterns/tree/index.d.ts.map +1 -0
- package/dist/styles/components.css +1 -1
- package/package.json +4 -3
package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/create-generator-easing.js
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { calcGeneratorDuration as i, maxGeneratorDuration as m } from "./calc-duration.js";
|
|
2
|
+
import { millisecondsToSeconds as s } from "../../../../../../motion-utils/dist/es/time-conversion.js";
|
|
3
|
+
function f(n, r = 100, o) {
|
|
4
|
+
const e = o({ ...n, keyframes: [0, r] }), t = Math.min(i(e), m);
|
|
5
|
+
return {
|
|
6
|
+
type: "keyframes",
|
|
7
|
+
ease: (a) => e.next(t * a).value / r,
|
|
8
|
+
duration: s(t)
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
export {
|
|
12
|
+
f as createGeneratorEasing
|
|
13
|
+
};
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { AsyncMotionValueAnimation as A } from "../AsyncMotionValueAnimation.js";
|
|
2
|
+
import { JSAnimation as k } from "../JSAnimation.js";
|
|
3
|
+
import { getValueTransition as D } from "../utils/get-value-transition.js";
|
|
4
|
+
import { makeAnimationInstant as d } from "../utils/make-animation-instant.js";
|
|
5
|
+
import { getDefaultTransition as g } from "../utils/default-transitions.js";
|
|
6
|
+
import { getFinalKeyframe as C } from "../utils/get-final-keyframe.js";
|
|
7
|
+
import { isTransitionDefined as T } from "../utils/is-transition-defined.js";
|
|
8
|
+
import { frame as V } from "../../frameloop/frame.js";
|
|
9
|
+
import { secondsToMilliseconds as l } from "../../../../../motion-utils/dist/es/time-conversion.js";
|
|
10
|
+
import { MotionGlobalConfig as y } from "../../../../../motion-utils/dist/es/global-config.js";
|
|
11
|
+
const x = (a, t, r, m = {}, n, p) => (u) => {
|
|
12
|
+
const o = D(m, a) || {}, c = o.delay || m.delay || 0;
|
|
13
|
+
let { elapsed: s = 0 } = m;
|
|
14
|
+
s = s - l(c);
|
|
15
|
+
const e = {
|
|
16
|
+
keyframes: Array.isArray(r) ? r : [null, r],
|
|
17
|
+
ease: "easeOut",
|
|
18
|
+
velocity: t.getVelocity(),
|
|
19
|
+
...o,
|
|
20
|
+
delay: -s,
|
|
21
|
+
onUpdate: (i) => {
|
|
22
|
+
t.set(i), o.onUpdate && o.onUpdate(i);
|
|
23
|
+
},
|
|
24
|
+
onComplete: () => {
|
|
25
|
+
u(), o.onComplete && o.onComplete();
|
|
26
|
+
},
|
|
27
|
+
name: a,
|
|
28
|
+
motionValue: t,
|
|
29
|
+
element: p ? void 0 : n
|
|
30
|
+
};
|
|
31
|
+
T(o) || Object.assign(e, g(a, e)), e.duration && (e.duration = l(e.duration)), e.repeatDelay && (e.repeatDelay = l(e.repeatDelay)), e.from !== void 0 && (e.keyframes[0] = e.from);
|
|
32
|
+
let f = !1;
|
|
33
|
+
if ((e.type === !1 || e.duration === 0 && !e.repeatDelay) && (d(e), e.delay === 0 && (f = !0)), (y.instantAnimations || y.skipAnimations || n != null && n.shouldSkipAnimations) && (f = !0, d(e), e.delay = 0), e.allowFlatten = !o.type && !o.ease, f && !p && t.get() !== void 0) {
|
|
34
|
+
const i = C(e.keyframes, o);
|
|
35
|
+
if (i !== void 0) {
|
|
36
|
+
V.update(() => {
|
|
37
|
+
e.onUpdate(i), e.onComplete();
|
|
38
|
+
});
|
|
39
|
+
return;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
return o.isSync ? new k(e) : new A(e);
|
|
43
|
+
};
|
|
44
|
+
export {
|
|
45
|
+
x as animateMotionValue
|
|
46
|
+
};
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { getValueTransition as y } from "../utils/get-value-transition.js";
|
|
2
|
+
import { positionalKeys as S } from "../../render/utils/keys-position.js";
|
|
3
|
+
import { setTarget as H } from "../../render/utils/setters.js";
|
|
4
|
+
import { addValueToWillChange as B } from "../../value/will-change/add-will-change.js";
|
|
5
|
+
import { getOptimisedAppearId as I } from "../optimized-appear/get-appear-id.js";
|
|
6
|
+
import { animateMotionValue as P } from "./motion-value.js";
|
|
7
|
+
import { frame as A } from "../../frameloop/frame.js";
|
|
8
|
+
function R({ protectedKeys: t, needsAnimating: e }, n) {
|
|
9
|
+
const r = t.hasOwnProperty(n) && e[n] !== !0;
|
|
10
|
+
return e[n] = !1, r;
|
|
11
|
+
}
|
|
12
|
+
function b(t, e, { delay: n = 0, transitionOverride: r, type: d } = {}) {
|
|
13
|
+
let { transition: i = t.getDefaultTransition(), transitionEnd: s, ...m } = e;
|
|
14
|
+
const V = i == null ? void 0 : i.reduceMotion;
|
|
15
|
+
r && (i = r);
|
|
16
|
+
const c = [], p = d && t.animationState && t.animationState.getState()[d];
|
|
17
|
+
for (const o in m) {
|
|
18
|
+
const a = t.getValue(o, t.latestValues[o] ?? null), f = m[o];
|
|
19
|
+
if (f === void 0 || p && R(p, o))
|
|
20
|
+
continue;
|
|
21
|
+
const u = {
|
|
22
|
+
delay: n,
|
|
23
|
+
...y(i || {}, o)
|
|
24
|
+
}, l = a.get();
|
|
25
|
+
if (l !== void 0 && !a.isAnimating && !Array.isArray(f) && f === l && !u.velocity)
|
|
26
|
+
continue;
|
|
27
|
+
let g = !1;
|
|
28
|
+
if (window.MotionHandoffAnimation) {
|
|
29
|
+
const h = I(t);
|
|
30
|
+
if (h) {
|
|
31
|
+
const M = window.MotionHandoffAnimation(h, o, A);
|
|
32
|
+
M !== null && (u.startTime = M, g = !0);
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
B(t, o);
|
|
36
|
+
const w = V ?? t.shouldReduceMotion;
|
|
37
|
+
a.start(P(o, a, f, w && S.has(o) ? { type: !1 } : u, t, g));
|
|
38
|
+
const T = a.animation;
|
|
39
|
+
T && c.push(T);
|
|
40
|
+
}
|
|
41
|
+
return s && Promise.all(c).then(() => {
|
|
42
|
+
A.update(() => {
|
|
43
|
+
s && H(t, s);
|
|
44
|
+
});
|
|
45
|
+
}), c;
|
|
46
|
+
}
|
|
47
|
+
export {
|
|
48
|
+
b as animateTarget
|
|
49
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { resolveVariant as l } from "../../render/utils/resolve-dynamic-variants.js";
|
|
2
|
+
import { calcChildStagger as g } from "../utils/calc-child-stagger.js";
|
|
3
|
+
import { animateTarget as C } from "./visual-element-target.js";
|
|
4
|
+
function y(r, i, t = {}) {
|
|
5
|
+
var n;
|
|
6
|
+
const e = l(r, i, t.type === "exit" ? (n = r.presenceContext) == null ? void 0 : n.custom : void 0);
|
|
7
|
+
let { transition: o = r.getDefaultTransition() || {} } = e || {};
|
|
8
|
+
t.transitionOverride && (o = t.transitionOverride);
|
|
9
|
+
const a = e ? () => Promise.all(C(r, e, t)) : () => Promise.resolve(), s = r.variantChildren && r.variantChildren.size ? (f = 0) => {
|
|
10
|
+
const { delayChildren: d = 0, staggerChildren: m, staggerDirection: h } = o;
|
|
11
|
+
return P(r, i, f, d, m, h, t);
|
|
12
|
+
} : () => Promise.resolve(), { when: c } = o;
|
|
13
|
+
if (c) {
|
|
14
|
+
const [f, d] = c === "beforeChildren" ? [a, s] : [s, a];
|
|
15
|
+
return f().then(() => d());
|
|
16
|
+
} else
|
|
17
|
+
return Promise.all([a(), s(t.delay)]);
|
|
18
|
+
}
|
|
19
|
+
function P(r, i, t = 0, e = 0, o = 0, a = 1, s) {
|
|
20
|
+
const c = [];
|
|
21
|
+
for (const n of r.variantChildren)
|
|
22
|
+
n.notify("AnimationStart", i), c.push(y(n, i, {
|
|
23
|
+
...s,
|
|
24
|
+
delay: t + (typeof e == "function" ? 0 : e) + g(r.variantChildren, n, e, o, a)
|
|
25
|
+
}).then(() => n.notify("AnimationComplete", i)));
|
|
26
|
+
return Promise.all(c);
|
|
27
|
+
}
|
|
28
|
+
export {
|
|
29
|
+
y as animateVariant
|
|
30
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { resolveVariant as c } from "../../render/utils/resolve-dynamic-variants.js";
|
|
2
|
+
import { animateTarget as p } from "./visual-element-target.js";
|
|
3
|
+
import { animateVariant as e } from "./visual-element-variant.js";
|
|
4
|
+
function n(a, r, t = {}) {
|
|
5
|
+
a.notify("AnimationStart", r);
|
|
6
|
+
let m;
|
|
7
|
+
if (Array.isArray(r)) {
|
|
8
|
+
const o = r.map((y) => e(a, y, t));
|
|
9
|
+
m = Promise.all(o);
|
|
10
|
+
} else if (typeof r == "string")
|
|
11
|
+
m = e(a, r, t);
|
|
12
|
+
else {
|
|
13
|
+
const o = typeof r == "function" ? c(a, r, t.custom) : r;
|
|
14
|
+
m = Promise.all(p(a, o, t));
|
|
15
|
+
}
|
|
16
|
+
return m.then(() => {
|
|
17
|
+
a.notify("AnimationComplete", r);
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
export {
|
|
21
|
+
n as animateVisualElement
|
|
22
|
+
};
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { positionalKeys as c } from "../../render/utils/keys-position.js";
|
|
2
|
+
import { findDimensionValueType as h } from "../../value/types/dimensions.js";
|
|
3
|
+
import { getVariableValue as g } from "../utils/css-variables-conversion.js";
|
|
4
|
+
import { isCSSVariableToken as K, containsCSSVariable as p } from "../utils/is-css-variable.js";
|
|
5
|
+
import { KeyframeResolver as v } from "./KeyframesResolver.js";
|
|
6
|
+
import { isNone as V } from "./utils/is-none.js";
|
|
7
|
+
import { makeNoneKeyframesAnimatable as S } from "./utils/make-none-animatable.js";
|
|
8
|
+
import { positionalValues as m, isNumOrPxType as y } from "./utils/unit-conversion.js";
|
|
9
|
+
class M extends v {
|
|
10
|
+
constructor(e, n, r, t, o) {
|
|
11
|
+
super(e, n, r, t, o, !0);
|
|
12
|
+
}
|
|
13
|
+
readKeyframes() {
|
|
14
|
+
const { unresolvedKeyframes: e, element: n, name: r } = this;
|
|
15
|
+
if (!n || !n.current)
|
|
16
|
+
return;
|
|
17
|
+
super.readKeyframes();
|
|
18
|
+
for (let s = 0; s < e.length; s++) {
|
|
19
|
+
let i = e[s];
|
|
20
|
+
if (typeof i == "string" && (i = i.trim(), K(i))) {
|
|
21
|
+
const d = g(i, n.current);
|
|
22
|
+
d !== void 0 && (e[s] = d), s === e.length - 1 && (this.finalKeyframe = i);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
if (this.resolveNoneKeyframes(), !c.has(r) || e.length !== 2)
|
|
26
|
+
return;
|
|
27
|
+
const [t, o] = e, a = h(t), f = h(o), l = p(t), u = p(o);
|
|
28
|
+
if (l !== u && m[r]) {
|
|
29
|
+
this.needsMeasurement = !0;
|
|
30
|
+
return;
|
|
31
|
+
}
|
|
32
|
+
if (a !== f)
|
|
33
|
+
if (y(a) && y(f))
|
|
34
|
+
for (let s = 0; s < e.length; s++) {
|
|
35
|
+
const i = e[s];
|
|
36
|
+
typeof i == "string" && (e[s] = parseFloat(i));
|
|
37
|
+
}
|
|
38
|
+
else m[r] && (this.needsMeasurement = !0);
|
|
39
|
+
}
|
|
40
|
+
resolveNoneKeyframes() {
|
|
41
|
+
const { unresolvedKeyframes: e, name: n } = this, r = [];
|
|
42
|
+
for (let t = 0; t < e.length; t++)
|
|
43
|
+
(e[t] === null || V(e[t])) && r.push(t);
|
|
44
|
+
r.length && S(e, r, n);
|
|
45
|
+
}
|
|
46
|
+
measureInitialState() {
|
|
47
|
+
const { element: e, unresolvedKeyframes: n, name: r } = this;
|
|
48
|
+
if (!e || !e.current)
|
|
49
|
+
return;
|
|
50
|
+
r === "height" && (this.suspendedScrollY = window.pageYOffset), this.measuredOrigin = m[r](e.measureViewportBox(), window.getComputedStyle(e.current)), n[0] = this.measuredOrigin;
|
|
51
|
+
const t = n[n.length - 1];
|
|
52
|
+
t !== void 0 && e.getValue(r, t).jump(t, !1);
|
|
53
|
+
}
|
|
54
|
+
measureEndState() {
|
|
55
|
+
var f;
|
|
56
|
+
const { element: e, name: n, unresolvedKeyframes: r } = this;
|
|
57
|
+
if (!e || !e.current)
|
|
58
|
+
return;
|
|
59
|
+
const t = e.getValue(n);
|
|
60
|
+
t && t.jump(this.measuredOrigin, !1);
|
|
61
|
+
const o = r.length - 1, a = r[o];
|
|
62
|
+
r[o] = m[n](e.measureViewportBox(), window.getComputedStyle(e.current)), a !== null && this.finalKeyframe === void 0 && (this.finalKeyframe = a), (f = this.removedTransforms) != null && f.length && this.removedTransforms.forEach(([l, u]) => {
|
|
63
|
+
e.getValue(l).set(u);
|
|
64
|
+
}), this.resolveNoneKeyframes();
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
export {
|
|
68
|
+
M as DOMKeyframesResolver
|
|
69
|
+
};
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { fillWildcards as y } from "./utils/fill-wildcards.js";
|
|
2
|
+
import { removeNonTranslationalTransform as p } from "./utils/unit-conversion.js";
|
|
3
|
+
import { frame as c } from "../../frameloop/frame.js";
|
|
4
|
+
const l = /* @__PURE__ */ new Set();
|
|
5
|
+
let o = !1, d = !1, m = !1;
|
|
6
|
+
function u() {
|
|
7
|
+
if (d) {
|
|
8
|
+
const r = Array.from(l).filter((e) => e.needsMeasurement), s = new Set(r.map((e) => e.element)), a = /* @__PURE__ */ new Map();
|
|
9
|
+
s.forEach((e) => {
|
|
10
|
+
const t = p(e);
|
|
11
|
+
t.length && (a.set(e, t), e.render());
|
|
12
|
+
}), r.forEach((e) => e.measureInitialState()), s.forEach((e) => {
|
|
13
|
+
e.render();
|
|
14
|
+
const t = a.get(e);
|
|
15
|
+
t && t.forEach(([n, i]) => {
|
|
16
|
+
var f;
|
|
17
|
+
(f = e.getValue(n)) == null || f.set(i);
|
|
18
|
+
});
|
|
19
|
+
}), r.forEach((e) => e.measureEndState()), r.forEach((e) => {
|
|
20
|
+
e.suspendedScrollY !== void 0 && window.scrollTo(0, e.suspendedScrollY);
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
d = !1, o = !1, l.forEach((r) => r.complete(m)), l.clear();
|
|
24
|
+
}
|
|
25
|
+
function h() {
|
|
26
|
+
l.forEach((r) => {
|
|
27
|
+
r.readKeyframes(), r.needsMeasurement && (d = !0);
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
function S() {
|
|
31
|
+
m = !0, h(), u(), m = !1;
|
|
32
|
+
}
|
|
33
|
+
class g {
|
|
34
|
+
constructor(s, a, e, t, n, i = !1) {
|
|
35
|
+
this.state = "pending", this.isAsync = !1, this.needsMeasurement = !1, this.unresolvedKeyframes = [...s], this.onComplete = a, this.name = e, this.motionValue = t, this.element = n, this.isAsync = i;
|
|
36
|
+
}
|
|
37
|
+
scheduleResolve() {
|
|
38
|
+
this.state = "scheduled", this.isAsync ? (l.add(this), o || (o = !0, c.read(h), c.resolveKeyframes(u))) : (this.readKeyframes(), this.complete());
|
|
39
|
+
}
|
|
40
|
+
readKeyframes() {
|
|
41
|
+
const { unresolvedKeyframes: s, name: a, element: e, motionValue: t } = this;
|
|
42
|
+
if (s[0] === null) {
|
|
43
|
+
const n = t == null ? void 0 : t.get(), i = s[s.length - 1];
|
|
44
|
+
if (n !== void 0)
|
|
45
|
+
s[0] = n;
|
|
46
|
+
else if (e && a) {
|
|
47
|
+
const f = e.readValue(a, i);
|
|
48
|
+
f != null && (s[0] = f);
|
|
49
|
+
}
|
|
50
|
+
s[0] === void 0 && (s[0] = i), t && n === void 0 && t.set(s[0]);
|
|
51
|
+
}
|
|
52
|
+
y(s);
|
|
53
|
+
}
|
|
54
|
+
setFinalKeyframe() {
|
|
55
|
+
}
|
|
56
|
+
measureInitialState() {
|
|
57
|
+
}
|
|
58
|
+
renderEndStyles() {
|
|
59
|
+
}
|
|
60
|
+
measureEndState() {
|
|
61
|
+
}
|
|
62
|
+
complete(s = !1) {
|
|
63
|
+
this.state = "complete", this.onComplete(this.unresolvedKeyframes, this.finalKeyframe, s), l.delete(this);
|
|
64
|
+
}
|
|
65
|
+
cancel() {
|
|
66
|
+
this.state === "scheduled" && (l.delete(this), this.state = "pending");
|
|
67
|
+
}
|
|
68
|
+
resume() {
|
|
69
|
+
this.state === "pending" && this.scheduleResolve();
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
export {
|
|
73
|
+
g as KeyframeResolver,
|
|
74
|
+
S as flushKeyframeResolvers
|
|
75
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
const i = (e) => e !== null;
|
|
2
|
+
function c(e, { repeat: n, repeatType: l = "loop" }, o, r = 1) {
|
|
3
|
+
const t = e.filter(i), s = r < 0 || n && l !== "loop" && n % 2 === 1 ? 0 : t.length - 1;
|
|
4
|
+
return !s || o === void 0 ? t[s] : o;
|
|
5
|
+
}
|
|
6
|
+
export {
|
|
7
|
+
c as getFinalKeyframe
|
|
8
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { mixNumber as e } from "../../../utils/mix/number.js";
|
|
2
|
+
import { progress as f } from "../../../../../../motion-utils/dist/es/progress.js";
|
|
3
|
+
function l(o, t) {
|
|
4
|
+
const s = o[o.length - 1];
|
|
5
|
+
for (let r = 1; r <= t; r++) {
|
|
6
|
+
const m = f(0, t, r);
|
|
7
|
+
o.push(e(s, 1, m));
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
export {
|
|
11
|
+
l as fillOffset
|
|
12
|
+
};
|
package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/make-none-animatable.js
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { analyseComplexValue as l } from "../../../value/types/complex/index.js";
|
|
2
|
+
import { getAnimatableNone as m } from "../../../value/types/utils/animatable-none.js";
|
|
3
|
+
const f = /* @__PURE__ */ new Set(["auto", "none", "0"]);
|
|
4
|
+
function g(e, i, o) {
|
|
5
|
+
let n = 0, a;
|
|
6
|
+
for (; n < e.length && !a; ) {
|
|
7
|
+
const t = e[n];
|
|
8
|
+
typeof t == "string" && !f.has(t) && l(t).values.length && (a = e[n]), n++;
|
|
9
|
+
}
|
|
10
|
+
if (a && o)
|
|
11
|
+
for (const t of i)
|
|
12
|
+
e[t] = m(o, a);
|
|
13
|
+
}
|
|
14
|
+
export {
|
|
15
|
+
g as makeNoneKeyframesAnimatable
|
|
16
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { parseValueFromTransform as e } from "../../../render/dom/parse-transform.js";
|
|
2
|
+
import { transformPropOrder as n } from "../../../render/utils/keys-transform.js";
|
|
3
|
+
import { number as m } from "../../../value/types/numbers/index.js";
|
|
4
|
+
import { px as l } from "../../../value/types/numbers/units.js";
|
|
5
|
+
const c = (o) => o === m || o === l, i = /* @__PURE__ */ new Set(["x", "y", "z"]), p = n.filter((o) => !i.has(o));
|
|
6
|
+
function F(o) {
|
|
7
|
+
const r = [];
|
|
8
|
+
return p.forEach((a) => {
|
|
9
|
+
const s = o.getValue(a);
|
|
10
|
+
s !== void 0 && (r.push([a, s.get()]), s.set(a.startsWith("scale") ? 1 : 0));
|
|
11
|
+
}), r;
|
|
12
|
+
}
|
|
13
|
+
const t = {
|
|
14
|
+
// Dimensions
|
|
15
|
+
width: ({ x: o }, { paddingLeft: r = "0", paddingRight: a = "0" }) => o.max - o.min - parseFloat(r) - parseFloat(a),
|
|
16
|
+
height: ({ y: o }, { paddingTop: r = "0", paddingBottom: a = "0" }) => o.max - o.min - parseFloat(r) - parseFloat(a),
|
|
17
|
+
top: (o, { top: r }) => parseFloat(r),
|
|
18
|
+
left: (o, { left: r }) => parseFloat(r),
|
|
19
|
+
bottom: ({ y: o }, { top: r }) => parseFloat(r) + (o.max - o.min),
|
|
20
|
+
right: ({ x: o }, { left: r }) => parseFloat(r) + (o.max - o.min),
|
|
21
|
+
// Transform
|
|
22
|
+
x: (o, { transform: r }) => e(r, "x"),
|
|
23
|
+
y: (o, { transform: r }) => e(r, "y")
|
|
24
|
+
};
|
|
25
|
+
t.translateX = t.x;
|
|
26
|
+
t.translateY = t.y;
|
|
27
|
+
export {
|
|
28
|
+
c as isNumOrPxType,
|
|
29
|
+
t as positionalValues,
|
|
30
|
+
F as removeNonTranslationalTransform
|
|
31
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
class t {
|
|
2
|
+
constructor() {
|
|
3
|
+
this.updateFinished();
|
|
4
|
+
}
|
|
5
|
+
get finished() {
|
|
6
|
+
return this._finished;
|
|
7
|
+
}
|
|
8
|
+
updateFinished() {
|
|
9
|
+
this._finished = new Promise((i) => {
|
|
10
|
+
this.resolve = i;
|
|
11
|
+
});
|
|
12
|
+
}
|
|
13
|
+
notifyFinished() {
|
|
14
|
+
this.resolve();
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Allows the animation to be awaited.
|
|
18
|
+
*
|
|
19
|
+
* @deprecated Use `finished` instead.
|
|
20
|
+
*/
|
|
21
|
+
then(i, e) {
|
|
22
|
+
return this.finished.then(i, e);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
export {
|
|
26
|
+
t as WithPromise
|
|
27
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { isGenerator as f } from "../generators/utils/is-generator.js";
|
|
2
|
+
import { isAnimatable as l } from "./is-animatable.js";
|
|
3
|
+
import { warning as g } from "../../../../../motion-utils/dist/es/errors.js";
|
|
4
|
+
function s(t) {
|
|
5
|
+
const i = t[0];
|
|
6
|
+
if (t.length === 1)
|
|
7
|
+
return !0;
|
|
8
|
+
for (let n = 0; n < t.length; n++)
|
|
9
|
+
if (t[n] !== i)
|
|
10
|
+
return !0;
|
|
11
|
+
}
|
|
12
|
+
function h(t, i, n, u) {
|
|
13
|
+
const r = t[0];
|
|
14
|
+
if (r === null)
|
|
15
|
+
return !1;
|
|
16
|
+
if (i === "display" || i === "visibility")
|
|
17
|
+
return !0;
|
|
18
|
+
const o = t[t.length - 1], a = l(r, i), e = l(o, i);
|
|
19
|
+
return g(a === e, `You are trying to animate ${i} from "${r}" to "${o}". "${a ? o : r}" is not an animatable value.`, "value-not-animatable"), !a || !e ? !1 : s(t) || (n === "spring" || f(n)) && u;
|
|
20
|
+
}
|
|
21
|
+
export {
|
|
22
|
+
h as canAnimate
|
|
23
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { isCSSVariableToken as c } from "./is-css-variable.js";
|
|
2
|
+
import { invariant as l } from "../../../../../motion-utils/dist/es/errors.js";
|
|
3
|
+
import { isNumericalString as s } from "../../../../../motion-utils/dist/es/is-numerical-string.js";
|
|
4
|
+
const m = (
|
|
5
|
+
// eslint-disable-next-line redos-detector/no-unsafe-regex -- false positive, as it can match a lot of words
|
|
6
|
+
/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u
|
|
7
|
+
);
|
|
8
|
+
function p(a) {
|
|
9
|
+
const e = m.exec(a);
|
|
10
|
+
if (!e)
|
|
11
|
+
return [,];
|
|
12
|
+
const [, r, i, t] = e;
|
|
13
|
+
return [`--${r ?? i}`, t];
|
|
14
|
+
}
|
|
15
|
+
const f = 4;
|
|
16
|
+
function u(a, e, r = 1) {
|
|
17
|
+
l(r <= f, `Max CSS variable fallback depth detected in property "${a}". This may indicate a circular fallback dependency.`, "max-css-var-depth");
|
|
18
|
+
const [i, t] = p(a);
|
|
19
|
+
if (!i)
|
|
20
|
+
return;
|
|
21
|
+
const o = window.getComputedStyle(e).getPropertyValue(i);
|
|
22
|
+
if (o) {
|
|
23
|
+
const n = o.trim();
|
|
24
|
+
return s(n) ? parseFloat(n) : n;
|
|
25
|
+
}
|
|
26
|
+
return c(t) ? u(t, e, r + 1) : t;
|
|
27
|
+
}
|
|
28
|
+
export {
|
|
29
|
+
u as getVariableValue,
|
|
30
|
+
p as parseCSSVariable
|
|
31
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { transformProps as s } from "../../render/utils/keys-transform.js";
|
|
2
|
+
const r = {
|
|
3
|
+
type: "spring",
|
|
4
|
+
stiffness: 500,
|
|
5
|
+
damping: 25,
|
|
6
|
+
restSpeed: 10
|
|
7
|
+
}, n = (t) => ({
|
|
8
|
+
type: "spring",
|
|
9
|
+
stiffness: 550,
|
|
10
|
+
damping: t === 0 ? 2 * Math.sqrt(550) : 30,
|
|
11
|
+
restSpeed: 10
|
|
12
|
+
}), i = {
|
|
13
|
+
type: "keyframes",
|
|
14
|
+
duration: 0.8
|
|
15
|
+
}, a = {
|
|
16
|
+
type: "keyframes",
|
|
17
|
+
ease: [0.25, 0.1, 0.35, 1],
|
|
18
|
+
duration: 0.3
|
|
19
|
+
}, o = (t, { keyframes: e }) => e.length > 2 ? i : s.has(t) ? t.startsWith("scale") ? n(e[1]) : r : a;
|
|
20
|
+
export {
|
|
21
|
+
o as getDefaultTransition
|
|
22
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { complex as e } from "../../value/types/complex/index.js";
|
|
2
|
+
const n = (r, t) => t === "zIndex" ? !1 : !!(typeof r == "number" || Array.isArray(r) || typeof r == "string" && // It's animatable if we have a string
|
|
3
|
+
(e.test(r) || r === "0") && // And it contains numbers and/or colors
|
|
4
|
+
!r.startsWith("url("));
|
|
5
|
+
export {
|
|
6
|
+
n as isAnimatable
|
|
7
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
const r = (t) => (s) => typeof s == "string" && s.startsWith(t), e = /* @__PURE__ */ r("--"), i = /* @__PURE__ */ r("var(--"), a = (t) => i(t) ? n.test(t.split("/*")[0].trim()) : !1, n = /var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;
|
|
2
|
+
function o(t) {
|
|
3
|
+
return typeof t != "string" ? !1 : t.split("/*")[0].includes("var(--");
|
|
4
|
+
}
|
|
5
|
+
export {
|
|
6
|
+
o as containsCSSVariable,
|
|
7
|
+
e as isCSSVariableName,
|
|
8
|
+
a as isCSSVariableToken
|
|
9
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { inertia as p } from "../generators/inertia.js";
|
|
2
|
+
import { keyframes as r } from "../generators/keyframes.js";
|
|
3
|
+
import { spring as t } from "../generators/spring/index.js";
|
|
4
|
+
const o = {
|
|
5
|
+
decay: p,
|
|
6
|
+
inertia: p,
|
|
7
|
+
tween: r,
|
|
8
|
+
keyframes: r,
|
|
9
|
+
spring: t
|
|
10
|
+
};
|
|
11
|
+
function m(e) {
|
|
12
|
+
typeof e.type == "string" && (e.type = o[e.type]);
|
|
13
|
+
}
|
|
14
|
+
export {
|
|
15
|
+
m as replaceTransitionType
|
|
16
|
+
};
|