@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
|
@@ -6,8 +6,8 @@ import "merge-props";
|
|
|
6
6
|
import { withAlpha as J, hashToColor as K } from "../../utils/color.js";
|
|
7
7
|
import { GanttItem as nt } from "./GanttItem.js";
|
|
8
8
|
import { GanttHeader as rt } from "./GanttHeader.js";
|
|
9
|
-
const C = (e, t, n, y,
|
|
10
|
-
const S = Math.max(0, e - n), E = Math.min(
|
|
9
|
+
const C = (e, t, n, y, c, M) => {
|
|
10
|
+
const S = Math.max(0, e - n), E = Math.min(c, t - n), G = S / c * M, m = (E - S) / c * M;
|
|
11
11
|
return {
|
|
12
12
|
left: G,
|
|
13
13
|
width: m
|
|
@@ -16,13 +16,13 @@ const C = (e, t, n, y, l, M) => {
|
|
|
16
16
|
const t = et.c(50), {
|
|
17
17
|
items: n,
|
|
18
18
|
stepWidth: y,
|
|
19
|
-
rowHeight:
|
|
19
|
+
rowHeight: c,
|
|
20
20
|
step: M,
|
|
21
21
|
start: S,
|
|
22
22
|
end: E,
|
|
23
23
|
hideScaling: G,
|
|
24
24
|
children: m
|
|
25
|
-
} = e, s = y === void 0 ? "50px" : y, $ =
|
|
25
|
+
} = e, s = y === void 0 ? "50px" : y, $ = c === void 0 ? "50px" : c, a = M === void 0 ? 1 : M, i = S === void 0 ? 1 : S, o = E === void 0 ? 999999999 : E, l = G === void 0 ? !1 : G, R = P.useRef(null), [O, Q] = P.useState(0), [b, U] = P.useState(void 0), f = parseInt(s), d = o - i, q = Math.ceil(d / a), p = q * f, T = n?.filter(at) ?? [], W = T.length === 0 ? a : T.reduce(ot, 0) / T.length;
|
|
26
26
|
let z;
|
|
27
27
|
t[0] !== n || t[1] !== i ? (z = n && n.length > 0 ? Math.min(...n.map(st)) : i, t[0] = n, t[1] = i, t[2] = z) : z = t[2];
|
|
28
28
|
const g = z;
|
|
@@ -39,8 +39,8 @@ const C = (e, t, n, y, l, M) => {
|
|
|
39
39
|
};
|
|
40
40
|
}, t[6] = k) : k = t[6], P.useEffect(k);
|
|
41
41
|
let H;
|
|
42
|
-
if (t[7] !== b || t[8] !== W || t[9] !== m || t[10] !== h || t[11] !== o || t[12] !==
|
|
43
|
-
const v = n?.length ? n.sort(
|
|
42
|
+
if (t[7] !== b || t[8] !== W || t[9] !== m || t[10] !== h || t[11] !== o || t[12] !== l || t[13] !== u || t[14] !== g || t[15] !== n || t[16] !== e.id || t[17] !== $ || t[18] !== i || t[19] !== a || t[20] !== s || t[21] !== f || t[22] !== d || t[23] !== p) {
|
|
43
|
+
const v = n?.length ? n.sort(ct).reduce(lt, []) : [], j = `repeat(${h}, ${s})`;
|
|
44
44
|
let I;
|
|
45
45
|
t[25] !== j ? (I = {
|
|
46
46
|
display: "grid",
|
|
@@ -50,9 +50,9 @@ const C = (e, t, n, y, l, M) => {
|
|
|
50
50
|
}, t[25] = j, t[26] = I) : I = t[26];
|
|
51
51
|
const Z = I;
|
|
52
52
|
let V;
|
|
53
|
-
t[27] !== W || t[28] !== h || t[29] !==
|
|
53
|
+
t[27] !== W || t[28] !== h || t[29] !== l || t[30] !== i || t[31] !== a || t[32] !== s ? (V = !l && /* @__PURE__ */ x(rt, { columnCount: h, start: i, step: a, avgDuration: W, stepWidth: s }), t[27] = W, t[28] = h, t[29] = l, t[30] = i, t[31] = a, t[32] = s, t[33] = V) : V = t[33];
|
|
54
54
|
let A;
|
|
55
|
-
t[34] !== b || t[35] !== m || t[36] !== h || t[37] !== o || t[38] !==
|
|
55
|
+
t[34] !== b || t[35] !== m || t[36] !== h || t[37] !== o || t[38] !== l || t[39] !== u || t[40] !== g || t[41] !== e.id || t[42] !== $ || t[43] !== i || t[44] !== a || t[45] !== s || t[46] !== f || t[47] !== d || t[48] !== p ? (A = (B, _) => /* @__PURE__ */ N(F, { children: [
|
|
56
56
|
/* @__PURE__ */ N("div", { style: {
|
|
57
57
|
gridColumn: "1 / -1",
|
|
58
58
|
minHeight: $,
|
|
@@ -67,9 +67,9 @@ const C = (e, t, n, y, l, M) => {
|
|
|
67
67
|
top: 0,
|
|
68
68
|
bottom: 0,
|
|
69
69
|
width: "0px",
|
|
70
|
-
borderLeft: `1px dashed rgba(255, 255, 255, ${
|
|
70
|
+
borderLeft: `1px dashed rgba(255, 255, 255, ${l ? 0.05 : 0.1})`
|
|
71
71
|
} }, `grid-${w}`)),
|
|
72
|
-
|
|
72
|
+
l && /* @__PURE__ */ N(F, { children: [
|
|
73
73
|
/* @__PURE__ */ x("div", { className: "gantt__group-wrapper", style: {
|
|
74
74
|
backgroundImage: `
|
|
75
75
|
linear-gradient(to right, transparent, #070514),
|
|
@@ -105,10 +105,10 @@ const C = (e, t, n, y, l, M) => {
|
|
|
105
105
|
})
|
|
106
106
|
] }, `row-${_}`),
|
|
107
107
|
B.map((r, w) => r.type === "group" && b === r.id && /* @__PURE__ */ x(it, { children: m, id: `group-target-${w}`, start: Math.min(...r.data.items.map(pt)) - Math.min(...r.data.items.map(ut)) / (r.data.firstGroupStep * r.data.step) * (r.data.groupStep * r.data.step), step: r.data.groupStep * r.data.step, stepWidth: s, rowHeight: $, items: r.data.items }, `group-target-${w}`))
|
|
108
|
-
] }), t[34] = b, t[35] = m, t[36] = h, t[37] = o, t[38] =
|
|
108
|
+
] }), t[34] = b, t[35] = m, t[36] = h, t[37] = o, t[38] = l, t[39] = u, t[40] = g, t[41] = e.id, t[42] = $, t[43] = i, t[44] = a, t[45] = s, t[46] = f, t[47] = d, t[48] = p, t[49] = A) : A = t[49], H = /* @__PURE__ */ N("div", { "data-gantt-id": e.id, id: e.id, ref: R, style: Z, children: [
|
|
109
109
|
V,
|
|
110
110
|
v.map(A)
|
|
111
|
-
] }), t[7] = b, t[8] = W, t[9] = m, t[10] = h, t[11] = o, t[12] =
|
|
111
|
+
] }), t[7] = b, t[8] = W, t[9] = m, t[10] = h, t[11] = o, t[12] = l, t[13] = u, t[14] = g, t[15] = n, t[16] = e.id, t[17] = $, t[18] = i, t[19] = a, t[20] = s, t[21] = f, t[22] = d, t[23] = p, t[24] = H;
|
|
112
112
|
} else
|
|
113
113
|
H = t[24];
|
|
114
114
|
return H;
|
|
@@ -125,11 +125,11 @@ function st(e) {
|
|
|
125
125
|
function dt(e) {
|
|
126
126
|
return e.end;
|
|
127
127
|
}
|
|
128
|
-
function
|
|
128
|
+
function ct(e, t) {
|
|
129
129
|
return e.start - t.start;
|
|
130
130
|
}
|
|
131
|
-
function
|
|
132
|
-
const n = e.find((y) => !y.some((
|
|
131
|
+
function lt(e, t) {
|
|
132
|
+
const n = e.find((y) => !y.some((c) => !(t.end <= c.start || t.start >= c.end)));
|
|
133
133
|
return n ? (n.push(t), e) : [...e, [t]];
|
|
134
134
|
}
|
|
135
135
|
function pt(e) {
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export interface IslandNotificationProps {
|
|
3
|
+
id?: number;
|
|
4
|
+
icon: React.ReactNode;
|
|
5
|
+
message: React.ReactNode;
|
|
6
|
+
content?: React.ReactNode;
|
|
7
|
+
duration?: number;
|
|
8
|
+
index?: number;
|
|
9
|
+
}
|
|
10
|
+
export declare const useIsland: import('zustand').UseBoundStore<import('zustand').StoreApi<{
|
|
11
|
+
toasts: IslandNotificationProps[];
|
|
12
|
+
addToast: (toast: IslandNotificationProps) => void;
|
|
13
|
+
removeToast: (id: number) => void;
|
|
14
|
+
}>>;
|
|
15
|
+
export declare const addIslandNotification: (toast: IslandNotificationProps) => void;
|
|
16
|
+
export declare const addIslandInfoNotification: (toast: Partial<IslandNotificationProps>) => void;
|
|
17
|
+
export declare const addIslandSuccessNotification: (toast: Partial<IslandNotificationProps>) => void;
|
|
18
|
+
export declare const addIslandWarningNotification: (toast: Partial<IslandNotificationProps>) => void;
|
|
19
|
+
export declare const addIslandErrorNotification: (toast: Partial<IslandNotificationProps>) => void;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { create as n } from "zustand";
|
|
3
|
+
import { IconCircleX as d, IconInfoCircle as r, IconCircleCheck as l, IconAlertCircle as m } from "@tabler/icons-react";
|
|
4
|
+
import { Text as s } from "../text/Text.js";
|
|
5
|
+
const t = n((o) => ({
|
|
6
|
+
toasts: [],
|
|
7
|
+
addToast: (a) => {
|
|
8
|
+
const i = Date.now();
|
|
9
|
+
o((c) => ({
|
|
10
|
+
toasts: [...c.toasts, {
|
|
11
|
+
id: i,
|
|
12
|
+
...a
|
|
13
|
+
}]
|
|
14
|
+
}));
|
|
15
|
+
},
|
|
16
|
+
removeToast: (a) => {
|
|
17
|
+
o((i) => ({
|
|
18
|
+
toasts: i.toasts.filter((c) => c.id !== a)
|
|
19
|
+
}));
|
|
20
|
+
}
|
|
21
|
+
})), x = (o) => {
|
|
22
|
+
t.getState().addToast(o);
|
|
23
|
+
}, B = (o) => {
|
|
24
|
+
t.getState().addToast({
|
|
25
|
+
icon: /* @__PURE__ */ e(r, { color: "#70ffb2", size: 16 }),
|
|
26
|
+
...o,
|
|
27
|
+
message: /* @__PURE__ */ e(s, { c: "#70ffb2", children: o.message })
|
|
28
|
+
});
|
|
29
|
+
}, F = (o) => {
|
|
30
|
+
t.getState().addToast({
|
|
31
|
+
icon: /* @__PURE__ */ e(l, { color: "#29BF12", size: 16 }),
|
|
32
|
+
index: 1,
|
|
33
|
+
...o,
|
|
34
|
+
message: /* @__PURE__ */ e(s, { c: "#29BF12", children: o.message })
|
|
35
|
+
});
|
|
36
|
+
}, S = (o) => {
|
|
37
|
+
t.getState().addToast({
|
|
38
|
+
icon: /* @__PURE__ */ e(m, { color: "#FFBE0B", size: 16 }),
|
|
39
|
+
index: 2,
|
|
40
|
+
...o,
|
|
41
|
+
message: /* @__PURE__ */ e(s, { c: "#FFBE0B", children: o.message })
|
|
42
|
+
});
|
|
43
|
+
}, h = (o) => {
|
|
44
|
+
t.getState().addToast({
|
|
45
|
+
icon: /* @__PURE__ */ e(d, { color: "#D90429", size: 16 }),
|
|
46
|
+
index: 3,
|
|
47
|
+
...o,
|
|
48
|
+
message: /* @__PURE__ */ e(s, { c: "#D90429", children: o.message })
|
|
49
|
+
});
|
|
50
|
+
};
|
|
51
|
+
export {
|
|
52
|
+
h as addIslandErrorNotification,
|
|
53
|
+
B as addIslandInfoNotification,
|
|
54
|
+
x as addIslandNotification,
|
|
55
|
+
F as addIslandSuccessNotification,
|
|
56
|
+
S as addIslandWarningNotification,
|
|
57
|
+
t as useIsland
|
|
58
|
+
};
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { jsxs as h, jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import "../../utils/contextStore.js";
|
|
3
|
+
import { useRef as a, useState as R, useCallback as v, useEffect as D } from "react";
|
|
4
|
+
import { mergeComponentProps as k } from "../../utils/component.js";
|
|
5
|
+
import "js-md5";
|
|
6
|
+
import '../../assets/components/island/Island.style.css';/* empty css */
|
|
7
|
+
import { Flex as E } from "../flex/Flex.js";
|
|
8
|
+
import { useIsland as g } from "./Island.hook.js";
|
|
9
|
+
import { motion as s } from "../../node_modules/framer-motion/dist/es/render/components/motion/proxy.js";
|
|
10
|
+
const b = (x) => {
|
|
11
|
+
const {
|
|
12
|
+
children: T,
|
|
13
|
+
...I
|
|
14
|
+
} = x, l = g((t) => t.toasts), m = g((t) => t.removeToast), o = a(null), f = a(0), n = a(4e3), [c, u] = R(!1), p = a(null), e = l.length > 0 ? l.reduce((t, y) => (y.index ?? 0) > (t.index ?? 0) ? y : t) : void 0, r = v(() => {
|
|
15
|
+
o.current && (clearTimeout(o.current), o.current = null);
|
|
16
|
+
}, []), d = v(() => {
|
|
17
|
+
const t = e?.id;
|
|
18
|
+
t && (r(), f.current = Date.now(), isFinite(n.current) && (o.current = setTimeout(() => {
|
|
19
|
+
m(t);
|
|
20
|
+
}, n.current)));
|
|
21
|
+
}, [e?.id, m, r]);
|
|
22
|
+
D(() => (e?.id ? (n.current = e?.duration ?? 4e3, d()) : (r(), u(!1)), () => r()), [e?.id, e?.duration, d, r]);
|
|
23
|
+
const _ = () => {
|
|
24
|
+
if (!e?.id) return;
|
|
25
|
+
r();
|
|
26
|
+
const t = Date.now() - f.current;
|
|
27
|
+
n.current = Math.max(0, n.current - t), e?.content && u(!0);
|
|
28
|
+
}, M = () => {
|
|
29
|
+
u(!1), e?.id && n.current > 0 && d();
|
|
30
|
+
};
|
|
31
|
+
return /* @__PURE__ */ h(s.div, { layout: !0, onMouseEnter: _, onMouseLeave: M, transition: {
|
|
32
|
+
type: "spring",
|
|
33
|
+
stiffness: 300,
|
|
34
|
+
damping: 20,
|
|
35
|
+
mass: 0.8
|
|
36
|
+
}, ...k("island", I), children: [
|
|
37
|
+
/* @__PURE__ */ h(E, { align: "center", style: {
|
|
38
|
+
gap: "0.35rem"
|
|
39
|
+
}, ref: p, children: [
|
|
40
|
+
e && /* @__PURE__ */ i(s.div, { layout: !0, initial: {
|
|
41
|
+
y: 0,
|
|
42
|
+
opacity: 1,
|
|
43
|
+
strokeDashoffset: "300%"
|
|
44
|
+
}, animate: {
|
|
45
|
+
y: 0,
|
|
46
|
+
opacity: 1,
|
|
47
|
+
strokeDashoffset: "0%"
|
|
48
|
+
}, transition: {
|
|
49
|
+
duration: 0.75,
|
|
50
|
+
ease: "easeInOut"
|
|
51
|
+
}, className: "island__icon", children: e.icon }, e?.id),
|
|
52
|
+
/* @__PURE__ */ i(s.div, { layout: !0, children: T }),
|
|
53
|
+
e?.message && /* @__PURE__ */ i(s.div, { layout: !0, className: "island__message", children: e?.message })
|
|
54
|
+
] }, e?.id),
|
|
55
|
+
/* @__PURE__ */ i("div", { style: {
|
|
56
|
+
maxWidth: `${p.current?.offsetWidth}px`
|
|
57
|
+
}, children: c && !!e?.content && /* @__PURE__ */ i(s.div, { initial: {
|
|
58
|
+
y: 10,
|
|
59
|
+
opacity: 0
|
|
60
|
+
}, animate: {
|
|
61
|
+
y: c && e?.content ? 0 : 100,
|
|
62
|
+
opacity: c && e?.content ? 1 : 0
|
|
63
|
+
}, transition: {
|
|
64
|
+
duration: 0.25,
|
|
65
|
+
ease: "easeInOut"
|
|
66
|
+
}, className: "island__content", children: e?.content }) })
|
|
67
|
+
] });
|
|
68
|
+
};
|
|
69
|
+
export {
|
|
70
|
+
b as Island
|
|
71
|
+
};
|
|
@@ -1,43 +1,43 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as n, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import "../../utils/contextStore.js";
|
|
3
3
|
import "react";
|
|
4
4
|
import { mergeComponentProps as l } from "../../utils/component.js";
|
|
5
5
|
import "js-md5";
|
|
6
|
-
import
|
|
6
|
+
import * as o from "@radix-ui/react-progress";
|
|
7
7
|
import '../../assets/components/progress/Progress.style.css';/* empty css */
|
|
8
|
-
const
|
|
8
|
+
const _ = (r) => {
|
|
9
9
|
const {
|
|
10
10
|
color: a = "white",
|
|
11
|
-
predictionValue:
|
|
12
|
-
dot:
|
|
13
|
-
...
|
|
14
|
-
} = r,
|
|
15
|
-
return /* @__PURE__ */
|
|
16
|
-
...
|
|
11
|
+
predictionValue: g,
|
|
12
|
+
dot: c,
|
|
13
|
+
...t
|
|
14
|
+
} = r, s = Math.min(r.value ?? 0, r.max ?? 100) / (r.max ?? 100) * 100, m = `translateX(-${100 - s}%)`, i = Math.min(r.predictionValue ?? 0, r.max ?? 100) / (r.max ?? 100) * 100, d = `translateX(-${100 - i}%)`;
|
|
15
|
+
return /* @__PURE__ */ n(o.Progress, { ...l("progress", {
|
|
16
|
+
...t,
|
|
17
17
|
style: {
|
|
18
|
-
...
|
|
19
|
-
"--progress":
|
|
20
|
-
"--progressPrediction":
|
|
18
|
+
...t.style,
|
|
19
|
+
"--progress": s,
|
|
20
|
+
"--progressPrediction": i,
|
|
21
21
|
"--color": a
|
|
22
22
|
}
|
|
23
23
|
}), children: [
|
|
24
|
-
/* @__PURE__ */ e("div", { className: "progress__dot", children:
|
|
25
|
-
/* @__PURE__ */
|
|
24
|
+
/* @__PURE__ */ e("div", { className: "progress__dot", children: c }),
|
|
25
|
+
/* @__PURE__ */ n("div", { style: {
|
|
26
26
|
width: "100%",
|
|
27
27
|
height: "100%",
|
|
28
28
|
overflow: "hidden",
|
|
29
29
|
borderRadius: "inherit",
|
|
30
30
|
position: "relative"
|
|
31
31
|
}, children: [
|
|
32
|
-
/* @__PURE__ */ e(
|
|
33
|
-
transform:
|
|
32
|
+
/* @__PURE__ */ e(o.ProgressIndicator, { className: "progress__indicator", style: {
|
|
33
|
+
transform: m
|
|
34
34
|
} }),
|
|
35
|
-
typeof r.predictionValue == "number" && /* @__PURE__ */ e(
|
|
35
|
+
typeof r.predictionValue == "number" && /* @__PURE__ */ e(o.ProgressIndicator, { className: "progress__indicator progress__indicator--prediction", style: {
|
|
36
36
|
transform: d
|
|
37
37
|
} })
|
|
38
38
|
] })
|
|
39
39
|
] });
|
|
40
40
|
};
|
|
41
41
|
export {
|
|
42
|
-
|
|
42
|
+
_ as Progress
|
|
43
43
|
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { useContext as f, useId as l, useEffect as c, useCallback as i } from "react";
|
|
2
|
+
import { PresenceContext as m } from "../../context/PresenceContext.js";
|
|
3
|
+
function p(e = !0) {
|
|
4
|
+
const o = f(m);
|
|
5
|
+
if (o === null)
|
|
6
|
+
return [!0, null];
|
|
7
|
+
const { isPresent: r, onExitComplete: t, register: u } = o, n = l();
|
|
8
|
+
c(() => {
|
|
9
|
+
if (e)
|
|
10
|
+
return u(n);
|
|
11
|
+
}, [e]);
|
|
12
|
+
const s = i(() => e && t && t(n), [n, t, e]);
|
|
13
|
+
return !r && t ? [!1, s] : [!0];
|
|
14
|
+
}
|
|
15
|
+
export {
|
|
16
|
+
p as usePresence
|
|
17
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { useContext as o, useMemo as i } from "react";
|
|
2
|
+
import { MotionContext as a } from "./index.js";
|
|
3
|
+
import { getCurrentTreeVariants as m } from "./utils.js";
|
|
4
|
+
function C(t) {
|
|
5
|
+
const { initial: e, animate: n } = m(t, o(a));
|
|
6
|
+
return i(() => ({ initial: e, animate: n }), [r(e), r(n)]);
|
|
7
|
+
}
|
|
8
|
+
function r(t) {
|
|
9
|
+
return Array.isArray(t) ? t.join(" ") : t;
|
|
10
|
+
}
|
|
11
|
+
export {
|
|
12
|
+
C as useCreateMotionContext
|
|
13
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { isControllingVariants as r } from "../../../../../motion-dom/dist/es/render/utils/is-controlling-variants.js";
|
|
2
|
+
import { isVariantLabel as e } from "../../../../../motion-dom/dist/es/render/utils/is-variant-label.js";
|
|
3
|
+
function o(i, a) {
|
|
4
|
+
if (r(i)) {
|
|
5
|
+
const { initial: n, animate: t } = i;
|
|
6
|
+
return {
|
|
7
|
+
initial: n === !1 || e(n) ? n : void 0,
|
|
8
|
+
animate: e(t) ? t : void 0
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
return i.inherit !== !1 ? a : {};
|
|
12
|
+
}
|
|
13
|
+
export {
|
|
14
|
+
o as getCurrentTreeVariants
|
|
15
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { isPrimaryPointer as t } from "../../../../motion-dom/dist/es/gestures/utils/is-primary-pointer.js";
|
|
2
|
+
function i(o) {
|
|
3
|
+
return {
|
|
4
|
+
point: {
|
|
5
|
+
x: o.pageX,
|
|
6
|
+
y: o.pageY
|
|
7
|
+
}
|
|
8
|
+
};
|
|
9
|
+
}
|
|
10
|
+
const a = (o) => (r) => t(r) && o(r, i(r));
|
|
11
|
+
export {
|
|
12
|
+
a as addPointerInfo,
|
|
13
|
+
i as extractEventInfo
|
|
14
|
+
};
|