@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
|
+
import { isPressing as u } from "./state.js";
|
|
2
|
+
function d(r) {
|
|
3
|
+
return (n) => {
|
|
4
|
+
n.key === "Enter" && r(n);
|
|
5
|
+
};
|
|
6
|
+
}
|
|
7
|
+
function t(r, n) {
|
|
8
|
+
r.dispatchEvent(new PointerEvent("pointer" + n, { isPrimary: !0, bubbles: !0 }));
|
|
9
|
+
}
|
|
10
|
+
const c = (r, n) => {
|
|
11
|
+
const e = r.currentTarget;
|
|
12
|
+
if (!e)
|
|
13
|
+
return;
|
|
14
|
+
const i = d(() => {
|
|
15
|
+
if (u.has(e))
|
|
16
|
+
return;
|
|
17
|
+
t(e, "down");
|
|
18
|
+
const s = d(() => {
|
|
19
|
+
t(e, "up");
|
|
20
|
+
}), o = () => t(e, "cancel");
|
|
21
|
+
e.addEventListener("keyup", s, n), e.addEventListener("blur", o, n);
|
|
22
|
+
});
|
|
23
|
+
e.addEventListener("keydown", i, n), e.addEventListener("blur", () => e.removeEventListener("keydown", i), n);
|
|
24
|
+
};
|
|
25
|
+
export {
|
|
26
|
+
c as enableKeyboardPress
|
|
27
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { resolveElements as s } from "../../utils/resolve-elements.js";
|
|
2
|
+
function a(t, n) {
|
|
3
|
+
const o = s(t), e = new AbortController(), r = {
|
|
4
|
+
passive: !0,
|
|
5
|
+
...n,
|
|
6
|
+
signal: e.signal
|
|
7
|
+
};
|
|
8
|
+
return [o, r, () => e.abort()];
|
|
9
|
+
}
|
|
10
|
+
export {
|
|
11
|
+
a as setupGesture
|
|
12
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { mixNumber as c } from "../../utils/mix/number.js";
|
|
2
|
+
import { percent as u, px as x } from "../../value/types/numbers/units.js";
|
|
3
|
+
import { progress as h } from "../../../../../motion-utils/dist/es/progress.js";
|
|
4
|
+
import { circOut as L } from "../../../../../motion-utils/dist/es/easing/circ.js";
|
|
5
|
+
import { noop as B } from "../../../../../motion-utils/dist/es/noop.js";
|
|
6
|
+
const p = [
|
|
7
|
+
"borderTopLeftRadius",
|
|
8
|
+
"borderTopRightRadius",
|
|
9
|
+
"borderBottomLeftRadius",
|
|
10
|
+
"borderBottomRightRadius"
|
|
11
|
+
], M = p.length, d = (t) => typeof t == "string" ? parseFloat(t) : t, a = (t) => typeof t == "number" || x.test(t);
|
|
12
|
+
function V(t, o, r, i, R, y) {
|
|
13
|
+
R ? (t.opacity = c(0, r.opacity ?? 1, C(i)), t.opacityExit = c(o.opacity ?? 1, 0, O(i))) : y && (t.opacity = c(o.opacity ?? 1, r.opacity ?? 1, i));
|
|
14
|
+
for (let f = 0; f < M; f++) {
|
|
15
|
+
const s = p[f];
|
|
16
|
+
let n = m(o, s), e = m(r, s);
|
|
17
|
+
if (n === void 0 && e === void 0)
|
|
18
|
+
continue;
|
|
19
|
+
n || (n = 0), e || (e = 0), n === 0 || e === 0 || a(n) === a(e) ? (t[s] = Math.max(c(d(n), d(e), i), 0), (u.test(e) || u.test(n)) && (t[s] += "%")) : t[s] = e;
|
|
20
|
+
}
|
|
21
|
+
(o.rotate || r.rotate) && (t.rotate = c(o.rotate || 0, r.rotate || 0, i));
|
|
22
|
+
}
|
|
23
|
+
function m(t, o) {
|
|
24
|
+
return t[o] !== void 0 ? t[o] : t.borderRadius;
|
|
25
|
+
}
|
|
26
|
+
const C = /* @__PURE__ */ b(0, 0.5, L), O = /* @__PURE__ */ b(0.5, 0.95, B);
|
|
27
|
+
function b(t, o, r) {
|
|
28
|
+
return (i) => i < t ? 0 : i > o ? 1 : r(h(t, o, i));
|
|
29
|
+
}
|
|
30
|
+
export {
|
|
31
|
+
V as mixValues
|
|
32
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
function r({ top: t, left: o, right: n, bottom: x }) {
|
|
2
|
+
return {
|
|
3
|
+
x: { min: o, max: n },
|
|
4
|
+
y: { min: t, max: x }
|
|
5
|
+
};
|
|
6
|
+
}
|
|
7
|
+
function e({ x: t, y: o }) {
|
|
8
|
+
return { top: o.min, right: t.max, bottom: o.max, left: t.min };
|
|
9
|
+
}
|
|
10
|
+
function m(t, o) {
|
|
11
|
+
if (!o)
|
|
12
|
+
return t;
|
|
13
|
+
const n = o({ x: t.left, y: t.top }), x = o({ x: t.right, y: t.bottom });
|
|
14
|
+
return {
|
|
15
|
+
top: n.y,
|
|
16
|
+
left: n.x,
|
|
17
|
+
bottom: x.y,
|
|
18
|
+
right: x.x
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
export {
|
|
22
|
+
r as convertBoundingBoxToBox,
|
|
23
|
+
e as convertBoxToBoundingBox,
|
|
24
|
+
m as transformBoxPoints
|
|
25
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
function c(n, o) {
|
|
2
|
+
n.min = o.min, n.max = o.max;
|
|
3
|
+
}
|
|
4
|
+
function t(n, o) {
|
|
5
|
+
c(n.x, o.x), c(n.y, o.y);
|
|
6
|
+
}
|
|
7
|
+
function i(n, o) {
|
|
8
|
+
n.translate = o.translate, n.scale = o.scale, n.originPoint = o.originPoint, n.origin = o.origin;
|
|
9
|
+
}
|
|
10
|
+
export {
|
|
11
|
+
i as copyAxisDeltaInto,
|
|
12
|
+
c as copyAxisInto,
|
|
13
|
+
t as copyBoxInto
|
|
14
|
+
};
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { mixNumber as E } from "../../utils/mix/number.js";
|
|
2
|
+
import { hasTransform as g } from "../utils/has-transform.js";
|
|
3
|
+
function y(t, n, o) {
|
|
4
|
+
const l = t - o, i = n * l;
|
|
5
|
+
return o + i;
|
|
6
|
+
}
|
|
7
|
+
function p(t, n, o, l, i) {
|
|
8
|
+
return i !== void 0 && (t = y(t, i, l)), y(t, o, l) + n;
|
|
9
|
+
}
|
|
10
|
+
function u(t, n = 0, o = 1, l, i) {
|
|
11
|
+
t.min = p(t.min, n, o, l, i), t.max = p(t.max, n, o, l, i);
|
|
12
|
+
}
|
|
13
|
+
function _(t, { x: n, y: o }) {
|
|
14
|
+
u(t.x, n.translate, n.scale, n.originPoint), u(t.y, o.translate, o.scale, o.originPoint);
|
|
15
|
+
}
|
|
16
|
+
const r = 0.999999999999, a = 1.0000000000001;
|
|
17
|
+
function N(t, n, o, l = !1) {
|
|
18
|
+
const i = o.length;
|
|
19
|
+
if (!i)
|
|
20
|
+
return;
|
|
21
|
+
n.x = n.y = 1;
|
|
22
|
+
let s, f;
|
|
23
|
+
for (let e = 0; e < i; e++) {
|
|
24
|
+
s = o[e], f = s.projectionDelta;
|
|
25
|
+
const { visualElement: c } = s.options;
|
|
26
|
+
c && c.props.style && c.props.style.display === "contents" || (l && s.options.layoutScroll && s.scroll && s !== s.root && (m(t.x, -s.scroll.offset.x), m(t.y, -s.scroll.offset.y)), f && (n.x *= f.x.scale, n.y *= f.y.scale, _(t, f)), l && g(s.latestValues) && d(t, s.latestValues, s.layout?.layoutBox));
|
|
27
|
+
}
|
|
28
|
+
n.x < a && n.x > r && (n.x = 1), n.y < a && n.y > r && (n.y = 1);
|
|
29
|
+
}
|
|
30
|
+
function m(t, n) {
|
|
31
|
+
t.min += n, t.max += n;
|
|
32
|
+
}
|
|
33
|
+
function x(t, n, o, l, i = 0.5) {
|
|
34
|
+
const s = E(t.min, t.max, i);
|
|
35
|
+
u(t, n, o, s, l);
|
|
36
|
+
}
|
|
37
|
+
function A(t, n) {
|
|
38
|
+
return typeof t == "string" ? parseFloat(t) / 100 * (n.max - n.min) : t;
|
|
39
|
+
}
|
|
40
|
+
function d(t, n, o) {
|
|
41
|
+
const l = o ?? t;
|
|
42
|
+
x(t.x, A(n.x, l.x), n.scaleX, n.scale, n.originX), x(t.y, A(n.y, l.y), n.scaleY, n.scale, n.originY);
|
|
43
|
+
}
|
|
44
|
+
export {
|
|
45
|
+
u as applyAxisDelta,
|
|
46
|
+
_ as applyBoxDelta,
|
|
47
|
+
p as applyPointDelta,
|
|
48
|
+
N as applyTreeDeltas,
|
|
49
|
+
y as scalePoint,
|
|
50
|
+
x as transformAxis,
|
|
51
|
+
d as transformBox,
|
|
52
|
+
m as translateAxis
|
|
53
|
+
};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { mixNumber as m } from "../../utils/mix/number.js";
|
|
2
|
+
const y = 1e-4, u = 1 - y, E = 1 + y, R = 0.01, P = 0 - R, S = 0 + R;
|
|
3
|
+
function x(n) {
|
|
4
|
+
return n.max - n.min;
|
|
5
|
+
}
|
|
6
|
+
function I(n, c, i) {
|
|
7
|
+
return Math.abs(n - c) <= i;
|
|
8
|
+
}
|
|
9
|
+
function A(n, c, i, o = 0.5) {
|
|
10
|
+
n.origin = o, n.originPoint = m(c.min, c.max, n.origin), n.scale = x(i) / x(c), n.translate = m(i.min, i.max, n.origin) - n.originPoint, (n.scale >= u && n.scale <= E || isNaN(n.scale)) && (n.scale = 1), (n.translate >= P && n.translate <= S || isNaN(n.translate)) && (n.translate = 0);
|
|
11
|
+
}
|
|
12
|
+
function T(n, c, i, o) {
|
|
13
|
+
A(n.x, c.x, i.x, o ? o.originX : void 0), A(n.y, c.y, i.y, o ? o.originY : void 0);
|
|
14
|
+
}
|
|
15
|
+
function f(n, c, i, o = 0) {
|
|
16
|
+
const s = o ? m(i.min, i.max, o) : i.min;
|
|
17
|
+
n.min = s + c.min, n.max = n.min + x(c);
|
|
18
|
+
}
|
|
19
|
+
function _(n, c, i, o) {
|
|
20
|
+
f(n.x, c.x, i.x, o?.x), f(n.y, c.y, i.y, o?.y);
|
|
21
|
+
}
|
|
22
|
+
function N(n, c, i, o = 0) {
|
|
23
|
+
const s = o ? m(i.min, i.max, o) : i.min;
|
|
24
|
+
n.min = c.min - s, n.max = n.min + x(c);
|
|
25
|
+
}
|
|
26
|
+
function C(n, c, i, o) {
|
|
27
|
+
N(n.x, c.x, i.x, o?.x), N(n.y, c.y, i.y, o?.y);
|
|
28
|
+
}
|
|
29
|
+
export {
|
|
30
|
+
A as calcAxisDelta,
|
|
31
|
+
T as calcBoxDelta,
|
|
32
|
+
x as calcLength,
|
|
33
|
+
f as calcRelativeAxis,
|
|
34
|
+
N as calcRelativeAxisPosition,
|
|
35
|
+
_ as calcRelativeBox,
|
|
36
|
+
C as calcRelativePosition,
|
|
37
|
+
I as isNear
|
|
38
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { mixNumber as v } from "../../utils/mix/number.js";
|
|
2
|
+
import { percent as p } from "../../value/types/numbers/units.js";
|
|
3
|
+
import { scalePoint as r } from "./delta-apply.js";
|
|
4
|
+
function c(e, m, f, n, d) {
|
|
5
|
+
return e -= m, e = r(e, 1 / f, n), d !== void 0 && (e = r(e, 1 / d, n)), e;
|
|
6
|
+
}
|
|
7
|
+
function D(e, m = 0, f = 1, n = 0.5, d, u = e, y = e) {
|
|
8
|
+
if (p.test(m) && (m = parseFloat(m), m = v(y.min, y.max, m / 100) - y.min), typeof m != "number")
|
|
9
|
+
return;
|
|
10
|
+
let i = v(u.min, u.max, n);
|
|
11
|
+
e === u && (i -= m), e.min = c(e.min, m, f, i, d), e.max = c(e.max, m, f, i, d);
|
|
12
|
+
}
|
|
13
|
+
function P(e, m, [f, n, d], u, y) {
|
|
14
|
+
D(e, m[f], m[n], m[d], m.scale, u, y);
|
|
15
|
+
}
|
|
16
|
+
const K = ["x", "scaleX", "originX"], T = ["y", "scaleY", "originY"];
|
|
17
|
+
function N(e, m, f, n) {
|
|
18
|
+
P(e.x, m, K, f ? f.x : void 0, n ? n.x : void 0), P(e.y, m, T, f ? f.y : void 0, n ? n.y : void 0);
|
|
19
|
+
}
|
|
20
|
+
export {
|
|
21
|
+
D as removeAxisDelta,
|
|
22
|
+
P as removeAxisTransforms,
|
|
23
|
+
N as removeBoxTransforms,
|
|
24
|
+
c as removePointDelta
|
|
25
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
const t = () => ({
|
|
2
|
+
translate: 0,
|
|
3
|
+
scale: 1,
|
|
4
|
+
origin: 0,
|
|
5
|
+
originPoint: 0
|
|
6
|
+
}), a = () => ({
|
|
7
|
+
x: t(),
|
|
8
|
+
y: t()
|
|
9
|
+
}), e = () => ({ min: 0, max: 0 }), c = () => ({
|
|
10
|
+
x: e(),
|
|
11
|
+
y: e()
|
|
12
|
+
});
|
|
13
|
+
export {
|
|
14
|
+
e as createAxis,
|
|
15
|
+
t as createAxisDelta,
|
|
16
|
+
c as createBox,
|
|
17
|
+
a as createDelta
|
|
18
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { calcLength as r } from "./delta-calc.js";
|
|
2
|
+
function u(n) {
|
|
3
|
+
return n.translate === 0 && n.scale === 1;
|
|
4
|
+
}
|
|
5
|
+
function e(n) {
|
|
6
|
+
return u(n.x) && u(n.y);
|
|
7
|
+
}
|
|
8
|
+
function i(n, t) {
|
|
9
|
+
return n.min === t.min && n.max === t.max;
|
|
10
|
+
}
|
|
11
|
+
function s(n, t) {
|
|
12
|
+
return i(n.x, t.x) && i(n.y, t.y);
|
|
13
|
+
}
|
|
14
|
+
function o(n, t) {
|
|
15
|
+
return Math.round(n.min) === Math.round(t.min) && Math.round(n.max) === Math.round(t.max);
|
|
16
|
+
}
|
|
17
|
+
function x(n, t) {
|
|
18
|
+
return o(n.x, t.x) && o(n.y, t.y);
|
|
19
|
+
}
|
|
20
|
+
function c(n) {
|
|
21
|
+
return r(n.x) / r(n.y);
|
|
22
|
+
}
|
|
23
|
+
function l(n, t) {
|
|
24
|
+
return n.translate === t.translate && n.scale === t.scale && n.originPoint === t.originPoint;
|
|
25
|
+
}
|
|
26
|
+
export {
|
|
27
|
+
c as aspectRatio,
|
|
28
|
+
l as axisDeltaEquals,
|
|
29
|
+
i as axisEquals,
|
|
30
|
+
o as axisEqualsRounded,
|
|
31
|
+
s as boxEquals,
|
|
32
|
+
x as boxEqualsRounded,
|
|
33
|
+
e as isDeltaZero
|
|
34
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { addDomEvent as t } from "../../events/add-dom-event.js";
|
|
2
|
+
import { createProjectionNode as c } from "./create-projection-node.js";
|
|
3
|
+
const l = c({
|
|
4
|
+
attachResizeListener: (o, e) => t(o, "resize", e),
|
|
5
|
+
measureScroll: () => ({
|
|
6
|
+
x: document.documentElement.scrollLeft || document.body?.scrollLeft || 0,
|
|
7
|
+
y: document.documentElement.scrollTop || document.body?.scrollTop || 0
|
|
8
|
+
}),
|
|
9
|
+
checkIsScrollRoot: () => !0
|
|
10
|
+
});
|
|
11
|
+
export {
|
|
12
|
+
l as DocumentProjectionNode
|
|
13
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { createProjectionNode as t } from "./create-projection-node.js";
|
|
2
|
+
import { DocumentProjectionNode as n } from "./DocumentProjectionNode.js";
|
|
3
|
+
const e = {
|
|
4
|
+
current: void 0
|
|
5
|
+
}, i = t({
|
|
6
|
+
measureScroll: (o) => ({
|
|
7
|
+
x: o.scrollLeft,
|
|
8
|
+
y: o.scrollTop
|
|
9
|
+
}),
|
|
10
|
+
defaultParent: () => {
|
|
11
|
+
if (!e.current) {
|
|
12
|
+
const o = new n({});
|
|
13
|
+
o.mount(window), o.setOptions({ layoutScroll: !0 }), e.current = o;
|
|
14
|
+
}
|
|
15
|
+
return e.current;
|
|
16
|
+
},
|
|
17
|
+
resetTransform: (o, r) => {
|
|
18
|
+
o.style.transform = r !== void 0 ? r : "none";
|
|
19
|
+
},
|
|
20
|
+
checkIsScrollRoot: (o) => window.getComputedStyle(o).position === "fixed"
|
|
21
|
+
});
|
|
22
|
+
export {
|
|
23
|
+
i as HTMLProjectionNode,
|
|
24
|
+
e as rootProjectionNode
|
|
25
|
+
};
|