@code0-tech/pictor 0.9.3 → 0.10.1
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/assets/components/island/Island.style.css +1 -0
- package/dist/components/breadcrumb/Breadcrumb.js +7 -7
- package/dist/components/button/Button.js +11 -11
- package/dist/components/data-table/DataTable.js +15 -15
- package/dist/components/data-table/DataTableFilterSuggestionMenu.js +15 -15
- package/dist/components/editor/Editor.js +13 -13
- package/dist/components/form/CheckboxInput.js +4 -4
- package/dist/components/form/EmailInput.js +9 -9
- package/dist/components/form/InputContentEditable.hook.js +11 -11
- package/dist/components/form/InputWrapper.js +15 -15
- package/dist/components/form/NumberInput.js +9 -9
- package/dist/components/form/PasswordInput.js +4 -4
- package/dist/components/form/SwitchInput.js +7 -7
- package/dist/components/form/TextAreaInput.js +6 -6
- package/dist/components/form/TextInput.js +6 -6
- package/dist/components/form/useForm.js +2 -2
- package/dist/components/fullscreen/FullScreen.js +2 -2
- package/dist/components/gantt/GanttGroup.js +15 -15
- package/dist/components/island/Island.d.ts +6 -0
- package/dist/components/island/Island.hook.d.ts +19 -0
- package/dist/components/island/Island.hook.js +58 -0
- package/dist/components/island/Island.js +71 -0
- package/dist/components/progress/Progress.js +18 -18
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/use-presence.js +17 -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 +285 -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 +130 -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 +29 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/animation/exit.js +45 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/animation/index.js +33 -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 +45 -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 +62 -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 +21 -0
- package/dist/node_modules/framer-motion/dist/es/motion/utils/use-visual-element.js +65 -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 +39 -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 +21 -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-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 +112 -0
- package/dist/node_modules/motion-dom/dist/es/animation/JSAnimation.js +144 -0
- package/dist/node_modules/motion-dom/dist/es/animation/NativeAnimation.js +106 -0
- package/dist/node_modules/motion-dom/dist/es/animation/NativeAnimationExtended.js +38 -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.js +178 -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 +59 -0
- package/dist/node_modules/motion-dom/dist/es/animation/interfaces/visual-element-variant.js +29 -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 +68 -0
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/KeyframesResolver.js +74 -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 +37 -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-value-transition.js +8 -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 +21 -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/utils/resolve-transition.js +10 -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 +33 -0
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/accelerated-values.js +12 -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/is-browser-color.js +10 -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 +43 -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 +38 -0
- package/dist/node_modules/motion-dom/dist/es/gestures/press/index.js +34 -0
- package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/is-keyboard-accessible.js +18 -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 +32 -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 +53 -0
- package/dist/node_modules/motion-dom/dist/es/projection/geometry/delta-calc.js +38 -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 +13 -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 +618 -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 +53 -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 +263 -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 +37 -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 +38 -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 +13 -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 +143 -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/resize/handle-element.js +39 -0
- package/dist/node_modules/motion-dom/dist/es/resize/handle-window.js +23 -0
- package/dist/node_modules/motion-dom/dist/es/resize/index.js +8 -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 +212 -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 +51 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/complex/mask.js +11 -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 +27 -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 +37 -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 +12 -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 +19 -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 +14 -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 +4 -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 +4 -0
- package/dist/node_modules/motion-utils/dist/es/warn-once.js +8 -0
- package/dist/node_modules/react/cjs/react-compiler-runtime.development.js +2 -2
- package/dist/node_modules/react/cjs/react-compiler-runtime.production.js +8 -8
- package/dist/utils/reactiveArrayService.js +4 -4
- package/package.json +9 -6
- package/dist/node_modules/@radix-ui/react-compose-refs/dist/index.js +0 -25
- package/dist/node_modules/@radix-ui/react-progress/dist/index.js +0 -81
- package/dist/node_modules/@radix-ui/react-progress/node_modules/@radix-ui/react-context/dist/index.js +0 -55
- package/dist/node_modules/@radix-ui/react-progress/node_modules/@radix-ui/react-primitive/dist/index.js +0 -32
- package/dist/node_modules/@radix-ui/react-progress/node_modules/@radix-ui/react-slot/dist/index.js +0 -58
|
@@ -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,21 @@
|
|
|
1
|
+
const t = /* @__PURE__ */ new Set([
|
|
2
|
+
"when",
|
|
3
|
+
"delay",
|
|
4
|
+
"delayChildren",
|
|
5
|
+
"staggerChildren",
|
|
6
|
+
"staggerDirection",
|
|
7
|
+
"repeat",
|
|
8
|
+
"repeatType",
|
|
9
|
+
"repeatDelay",
|
|
10
|
+
"from",
|
|
11
|
+
"elapsed"
|
|
12
|
+
]);
|
|
13
|
+
function n(e) {
|
|
14
|
+
for (const r in e)
|
|
15
|
+
if (!t.has(r))
|
|
16
|
+
return !0;
|
|
17
|
+
return !1;
|
|
18
|
+
}
|
|
19
|
+
export {
|
|
20
|
+
n as isTransitionDefined
|
|
21
|
+
};
|
|
@@ -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.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
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { supportsLinearEasing as o } from "../../../utils/supports/linear-easing.js";
|
|
2
|
+
import { generateLinearEasing as f } from "../utils/linear.js";
|
|
3
|
+
import { cubicBezierAsString as n } from "./cubic-bezier.js";
|
|
4
|
+
import { supportedWaapiEasing as i } from "./supported.js";
|
|
5
|
+
import { isBezierDefinition as p } from "../../../../../../motion-utils/dist/es/easing/utils/is-bezier-definition.js";
|
|
6
|
+
function m(r, e) {
|
|
7
|
+
if (r)
|
|
8
|
+
return typeof r == "function" ? o() ? f(r, e) : "ease-out" : p(r) ? n(r) : Array.isArray(r) ? r.map((t) => m(t, e) || i.easeOut) : i[r];
|
|
9
|
+
}
|
|
10
|
+
export {
|
|
11
|
+
m as mapEasingToNativeEasing
|
|
12
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { cubicBezierAsString as e } from "./cubic-bezier.js";
|
|
2
|
+
const i = {
|
|
3
|
+
linear: "linear",
|
|
4
|
+
ease: "ease",
|
|
5
|
+
easeIn: "ease-in",
|
|
6
|
+
easeOut: "ease-out",
|
|
7
|
+
easeInOut: "ease-in-out",
|
|
8
|
+
circIn: /* @__PURE__ */ e([0, 0.65, 0.55, 1]),
|
|
9
|
+
circOut: /* @__PURE__ */ e([0.55, 0, 1, 0.45]),
|
|
10
|
+
backIn: /* @__PURE__ */ e([0.31, 0.01, 0.66, -0.59]),
|
|
11
|
+
backOut: /* @__PURE__ */ e([0.33, 1.53, 0.69, 0.99])
|
|
12
|
+
};
|
|
13
|
+
export {
|
|
14
|
+
i as supportedWaapiEasing
|
|
15
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { mapEasingToNativeEasing as g } from "./easing/map-easing.js";
|
|
2
|
+
function u(r, s, f, { delay: m = 0, duration: n = 300, repeat: p = 0, repeatType: c = "loop", ease: l = "easeOut", times: t } = {}, e = void 0) {
|
|
3
|
+
const a = {
|
|
4
|
+
[s]: f
|
|
5
|
+
};
|
|
6
|
+
t && (a.offset = t);
|
|
7
|
+
const i = g(l, n);
|
|
8
|
+
Array.isArray(i) && (a.easing = i);
|
|
9
|
+
const o = {
|
|
10
|
+
delay: m,
|
|
11
|
+
duration: n,
|
|
12
|
+
easing: Array.isArray(i) ? "linear" : i,
|
|
13
|
+
fill: "both",
|
|
14
|
+
iterations: p + 1,
|
|
15
|
+
direction: c === "reverse" ? "alternate" : "normal"
|
|
16
|
+
};
|
|
17
|
+
return e && (o.pseudoElement = e), r.animate(a, o);
|
|
18
|
+
}
|
|
19
|
+
export {
|
|
20
|
+
u as startWaapiAnimation
|
|
21
|
+
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { acceleratedValues as i } from "../utils/accelerated-values.js";
|
|
2
|
+
import { hasBrowserOnlyColors as c } from "../utils/is-browser-color.js";
|
|
3
|
+
import { memo as f } from "../../../../../../motion-utils/dist/es/memo.js";
|
|
4
|
+
const u = /* @__PURE__ */ new Set([
|
|
5
|
+
"color",
|
|
6
|
+
"backgroundColor",
|
|
7
|
+
"outlineColor",
|
|
8
|
+
"fill",
|
|
9
|
+
"stroke",
|
|
10
|
+
"borderColor",
|
|
11
|
+
"borderTopColor",
|
|
12
|
+
"borderRightColor",
|
|
13
|
+
"borderBottomColor",
|
|
14
|
+
"borderLeftColor"
|
|
15
|
+
]), b = /* @__PURE__ */ f(() => Object.hasOwnProperty.call(Element.prototype, "animate"));
|
|
16
|
+
function h(e) {
|
|
17
|
+
const { motionValue: r, name: o, repeatDelay: t, repeatType: n, damping: a, type: s, keyframes: l } = e;
|
|
18
|
+
if (!(r?.owner?.current instanceof HTMLElement))
|
|
19
|
+
return !1;
|
|
20
|
+
const { onUpdate: p, transformTemplate: m } = r.owner.getProps();
|
|
21
|
+
return b() && o && /**
|
|
22
|
+
* Force WAAPI for color properties with browser-only color formats
|
|
23
|
+
* (oklch, oklab, lab, lch, etc.) that the JS animation path can't parse.
|
|
24
|
+
*/
|
|
25
|
+
(i.has(o) || u.has(o) && c(l)) && (o !== "transform" || !m) && /**
|
|
26
|
+
* If we're outputting values to onUpdate then we can't use WAAPI as there's
|
|
27
|
+
* no way to read the value from WAAPI every frame.
|
|
28
|
+
*/
|
|
29
|
+
!p && !t && n !== "mirror" && a !== 0 && s !== "inertia";
|
|
30
|
+
}
|
|
31
|
+
export {
|
|
32
|
+
h as supportsBrowserAnimation
|
|
33
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
const e = /* @__PURE__ */ new Set([
|
|
2
|
+
"opacity",
|
|
3
|
+
"clipPath",
|
|
4
|
+
"filter",
|
|
5
|
+
"transform"
|
|
6
|
+
// TODO: Can be accelerated but currently disabled until https://issues.chromium.org/issues/41491098 is resolved
|
|
7
|
+
// or until we implement support for linear() easing.
|
|
8
|
+
// "background-color"
|
|
9
|
+
]);
|
|
10
|
+
export {
|
|
11
|
+
e as acceleratedValues
|
|
12
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { supportsLinearEasing as a } from "../../../utils/supports/linear-easing.js";
|
|
2
|
+
import { isGenerator as t } from "../../generators/utils/is-generator.js";
|
|
3
|
+
function i({ type: e, ...r }) {
|
|
4
|
+
return t(e) && a() ? e.applyToOptions(r) : (r.duration ?? (r.duration = 300), r.ease ?? (r.ease = "easeOut"), r);
|
|
5
|
+
}
|
|
6
|
+
export {
|
|
7
|
+
i as applyGeneratorOptions
|
|
8
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
const i = (r, a, o = 10) => {
|
|
2
|
+
let n = "";
|
|
3
|
+
const e = Math.max(Math.round(a / o), 2);
|
|
4
|
+
for (let t = 0; t < e; t++)
|
|
5
|
+
n += Math.round(r(t / (e - 1)) * 1e4) / 1e4 + ", ";
|
|
6
|
+
return `linear(${n.substring(0, n.length - 2)})`;
|
|
7
|
+
};
|
|
8
|
+
export {
|
|
9
|
+
i as generateLinearEasing
|
|
10
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { circInOut as r } from "../../../../../../motion-utils/dist/es/easing/circ.js";
|
|
2
|
+
import { backInOut as t } from "../../../../../../motion-utils/dist/es/easing/back.js";
|
|
3
|
+
import { anticipate as o } from "../../../../../../motion-utils/dist/es/easing/anticipate.js";
|
|
4
|
+
const n = {
|
|
5
|
+
anticipate: o,
|
|
6
|
+
backInOut: t,
|
|
7
|
+
circInOut: r
|
|
8
|
+
};
|
|
9
|
+
function p(e) {
|
|
10
|
+
return e in n;
|
|
11
|
+
}
|
|
12
|
+
function u(e) {
|
|
13
|
+
typeof e.ease == "string" && p(e.ease) && (e.ease = n[e.ease]);
|
|
14
|
+
}
|
|
15
|
+
export {
|
|
16
|
+
u as replaceStringEasing
|
|
17
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { stepsOrder as o } from "./order.js";
|
|
2
|
+
import { createRenderStep as T } from "./render-step.js";
|
|
3
|
+
import { MotionGlobalConfig as b } from "../../../../motion-utils/dist/es/global-config.js";
|
|
4
|
+
const v = 40;
|
|
5
|
+
function N(c, i) {
|
|
6
|
+
let r = !1, a = !0;
|
|
7
|
+
const e = {
|
|
8
|
+
delta: 0,
|
|
9
|
+
timestamp: 0,
|
|
10
|
+
isProcessing: !1
|
|
11
|
+
}, l = () => r = !0, n = o.reduce((t, s) => (t[s] = T(l), t), {}), { setup: m, read: u, resolveKeyframes: f, preUpdate: d, update: g, preRender: h, render: M, postRender: R } = n, p = () => {
|
|
12
|
+
const t = b.useManualTiming, s = t ? e.timestamp : performance.now();
|
|
13
|
+
r = !1, t || (e.delta = a ? 1e3 / 60 : Math.max(Math.min(s - e.timestamp, v), 1)), e.timestamp = s, e.isProcessing = !0, m.process(e), u.process(e), f.process(e), d.process(e), g.process(e), h.process(e), M.process(e), R.process(e), e.isProcessing = !1, r && i && (a = !1, c(p));
|
|
14
|
+
}, x = () => {
|
|
15
|
+
r = !0, a = !0, e.isProcessing || c(p);
|
|
16
|
+
};
|
|
17
|
+
return { schedule: o.reduce((t, s) => {
|
|
18
|
+
const P = n[s];
|
|
19
|
+
return t[s] = (w, E = !1, F = !1) => (r || x(), P.schedule(w, E, F)), t;
|
|
20
|
+
}, {}), cancel: (t) => {
|
|
21
|
+
for (let s = 0; s < o.length; s++)
|
|
22
|
+
n[o[s]].cancel(t);
|
|
23
|
+
}, state: e, steps: n };
|
|
24
|
+
}
|
|
25
|
+
export {
|
|
26
|
+
N as createRenderBatcher
|
|
27
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { createRenderBatcher as e } from "./batcher.js";
|
|
2
|
+
import { noop as r } from "../../../../motion-utils/dist/es/noop.js";
|
|
3
|
+
const { schedule: m, cancel: n, state: o, steps: c } = /* @__PURE__ */ e(typeof requestAnimationFrame < "u" ? requestAnimationFrame : r, !0);
|
|
4
|
+
export {
|
|
5
|
+
n as cancelFrame,
|
|
6
|
+
m as frame,
|
|
7
|
+
o as frameData,
|
|
8
|
+
c as frameSteps
|
|
9
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
const e = [
|
|
2
|
+
"setup",
|
|
3
|
+
// Compute
|
|
4
|
+
"read",
|
|
5
|
+
// Read
|
|
6
|
+
"resolveKeyframes",
|
|
7
|
+
// Write/Read/Write/Read
|
|
8
|
+
"preUpdate",
|
|
9
|
+
// Compute
|
|
10
|
+
"update",
|
|
11
|
+
// Compute
|
|
12
|
+
"preRender",
|
|
13
|
+
// Compute
|
|
14
|
+
"render",
|
|
15
|
+
// Write
|
|
16
|
+
"postRender"
|
|
17
|
+
// Compute
|
|
18
|
+
];
|
|
19
|
+
export {
|
|
20
|
+
e as stepsOrder
|
|
21
|
+
};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
function F(i, m) {
|
|
2
|
+
let t = /* @__PURE__ */ new Set(), s = /* @__PURE__ */ new Set(), r = !1, n = !1;
|
|
3
|
+
const a = /* @__PURE__ */ new WeakSet();
|
|
4
|
+
let f = {
|
|
5
|
+
delta: 0,
|
|
6
|
+
timestamp: 0,
|
|
7
|
+
isProcessing: !1
|
|
8
|
+
};
|
|
9
|
+
function l(e) {
|
|
10
|
+
a.has(e) && (o.schedule(e), i()), e(f);
|
|
11
|
+
}
|
|
12
|
+
const o = {
|
|
13
|
+
/**
|
|
14
|
+
* Schedule a process to run on the next frame.
|
|
15
|
+
*/
|
|
16
|
+
schedule: (e, d = !1, u = !1) => {
|
|
17
|
+
const c = u && r ? t : s;
|
|
18
|
+
return d && a.add(e), c.add(e), e;
|
|
19
|
+
},
|
|
20
|
+
/**
|
|
21
|
+
* Cancel the provided callback from running on the next frame.
|
|
22
|
+
*/
|
|
23
|
+
cancel: (e) => {
|
|
24
|
+
s.delete(e), a.delete(e);
|
|
25
|
+
},
|
|
26
|
+
/**
|
|
27
|
+
* Execute all schedule callbacks.
|
|
28
|
+
*/
|
|
29
|
+
process: (e) => {
|
|
30
|
+
if (f = e, r) {
|
|
31
|
+
n = !0;
|
|
32
|
+
return;
|
|
33
|
+
}
|
|
34
|
+
r = !0;
|
|
35
|
+
const d = t;
|
|
36
|
+
t = s, s = d, t.forEach(l), t.clear(), r = !1, n && (n = !1, o.process(e));
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
return o;
|
|
40
|
+
}
|
|
41
|
+
export {
|
|
42
|
+
F as createRenderStep
|
|
43
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { frameData as n } from "./frame.js";
|
|
2
|
+
import { MotionGlobalConfig as i } from "../../../../motion-utils/dist/es/global-config.js";
|
|
3
|
+
let e;
|
|
4
|
+
function t() {
|
|
5
|
+
e = void 0;
|
|
6
|
+
}
|
|
7
|
+
const r = {
|
|
8
|
+
now: () => (e === void 0 && r.set(n.isProcessing || i.useManualTiming ? n.timestamp : performance.now()), e),
|
|
9
|
+
set: (o) => {
|
|
10
|
+
e = o, queueMicrotask(t);
|
|
11
|
+
}
|
|
12
|
+
};
|
|
13
|
+
export {
|
|
14
|
+
r as time
|
|
15
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { isDragging as e } from "./is-active.js";
|
|
2
|
+
function l(r) {
|
|
3
|
+
return r === "x" || r === "y" ? e[r] ? null : (e[r] = !0, () => {
|
|
4
|
+
e[r] = !1;
|
|
5
|
+
}) : e.x || e.y ? null : (e.x = e.y = !0, () => {
|
|
6
|
+
e.x = e.y = !1;
|
|
7
|
+
});
|
|
8
|
+
}
|
|
9
|
+
export {
|
|
10
|
+
l as setDragLock
|
|
11
|
+
};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { isDragActive as P } from "./drag/state/is-active.js";
|
|
2
|
+
import { setupGesture as h } from "./utils/setup.js";
|
|
3
|
+
function m(s) {
|
|
4
|
+
return !(s.pointerType === "touch" || P());
|
|
5
|
+
}
|
|
6
|
+
function D(s, v, f = {}) {
|
|
7
|
+
const [u, n, l] = h(s, f);
|
|
8
|
+
return u.forEach((t) => {
|
|
9
|
+
let d = !1, r = !1, o;
|
|
10
|
+
const E = () => {
|
|
11
|
+
t.removeEventListener("pointerleave", a);
|
|
12
|
+
}, c = (e) => {
|
|
13
|
+
o && (o(e), o = void 0), E();
|
|
14
|
+
}, i = (e) => {
|
|
15
|
+
d = !1, window.removeEventListener("pointerup", i), window.removeEventListener("pointercancel", i), r && (r = !1, c(e));
|
|
16
|
+
}, w = () => {
|
|
17
|
+
d = !0, window.addEventListener("pointerup", i, n), window.addEventListener("pointercancel", i, n);
|
|
18
|
+
}, a = (e) => {
|
|
19
|
+
if (e.pointerType !== "touch") {
|
|
20
|
+
if (d) {
|
|
21
|
+
r = !0;
|
|
22
|
+
return;
|
|
23
|
+
}
|
|
24
|
+
c(e);
|
|
25
|
+
}
|
|
26
|
+
}, L = (e) => {
|
|
27
|
+
if (!m(e))
|
|
28
|
+
return;
|
|
29
|
+
r = !1;
|
|
30
|
+
const p = v(t, e);
|
|
31
|
+
typeof p == "function" && (o = p, t.addEventListener("pointerleave", a, n));
|
|
32
|
+
};
|
|
33
|
+
t.addEventListener("pointerenter", L, n), t.addEventListener("pointerdown", w, n);
|
|
34
|
+
}), l;
|
|
35
|
+
}
|
|
36
|
+
export {
|
|
37
|
+
D as hover
|
|
38
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { isHTMLElement as E } from "../../utils/is-html-element.js";
|
|
2
|
+
import { isDragActive as v } from "../drag/state/is-active.js";
|
|
3
|
+
import { isNodeOrChild as L } from "../utils/is-node-or-child.js";
|
|
4
|
+
import { isPrimaryPointer as g } from "../utils/is-primary-pointer.js";
|
|
5
|
+
import { setupGesture as T } from "../utils/setup.js";
|
|
6
|
+
import { isElementKeyboardAccessible as h } from "./utils/is-keyboard-accessible.js";
|
|
7
|
+
import { enableKeyboardPress as y } from "./utils/keyboard.js";
|
|
8
|
+
import { isPressing as d } from "./utils/state.js";
|
|
9
|
+
function m(s) {
|
|
10
|
+
return g(s) && !v();
|
|
11
|
+
}
|
|
12
|
+
const p = /* @__PURE__ */ new WeakSet();
|
|
13
|
+
function H(s, l, o = {}) {
|
|
14
|
+
const [u, i, w] = T(s, o), P = (e) => {
|
|
15
|
+
const n = e.currentTarget;
|
|
16
|
+
if (!m(e) || p.has(e))
|
|
17
|
+
return;
|
|
18
|
+
d.add(n), o.stopPropagation && p.add(e);
|
|
19
|
+
const t = l(n, e), a = (r, b) => {
|
|
20
|
+
window.removeEventListener("pointerup", c), window.removeEventListener("pointercancel", f), d.has(n) && d.delete(n), m(r) && typeof t == "function" && t(r, { success: b });
|
|
21
|
+
}, c = (r) => {
|
|
22
|
+
a(r, n === window || n === document || o.useGlobalTarget || L(n, r.target));
|
|
23
|
+
}, f = (r) => {
|
|
24
|
+
a(r, !1);
|
|
25
|
+
};
|
|
26
|
+
window.addEventListener("pointerup", c, i), window.addEventListener("pointercancel", f, i);
|
|
27
|
+
};
|
|
28
|
+
return u.forEach((e) => {
|
|
29
|
+
(o.useGlobalTarget ? window : e).addEventListener("pointerdown", P, i), E(e) && (e.addEventListener("focus", (t) => y(t, i)), !h(e) && !e.hasAttribute("tabindex") && (e.tabIndex = 0));
|
|
30
|
+
}), w;
|
|
31
|
+
}
|
|
32
|
+
export {
|
|
33
|
+
H as press
|
|
34
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
const e = /* @__PURE__ */ new Set([
|
|
2
|
+
"BUTTON",
|
|
3
|
+
"INPUT",
|
|
4
|
+
"SELECT",
|
|
5
|
+
"TEXTAREA",
|
|
6
|
+
"A"
|
|
7
|
+
]);
|
|
8
|
+
function s(t) {
|
|
9
|
+
return e.has(t.tagName) || t.isContentEditable === !0;
|
|
10
|
+
}
|
|
11
|
+
const n = /* @__PURE__ */ new Set(["INPUT", "SELECT", "TEXTAREA"]);
|
|
12
|
+
function E(t) {
|
|
13
|
+
return n.has(t.tagName) || t.isContentEditable === !0;
|
|
14
|
+
}
|
|
15
|
+
export {
|
|
16
|
+
s as isElementKeyboardAccessible,
|
|
17
|
+
E as isElementTextInput
|
|
18
|
+
};
|