@code0-tech/pictor 1.1.0 → 1.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_virtual/rolldown_runtime.js +3 -12
- package/dist/assets/Button.style.css +1 -1
- package/dist/assets/ContextMenu.style.css +1 -1
- package/dist/assets/DateInput.style.css +1 -1
- package/dist/assets/Editor.styles.css +1 -1
- package/dist/assets/Input.style.css +1 -1
- package/dist/assets/InputWrapper.style.css +1 -1
- package/dist/assets/Menu.style.css +1 -1
- package/dist/assets/SegmentedControl.style.css +1 -1
- package/dist/assets/SelectInput.style.css +1 -1
- package/dist/components/alert/Alert.js +19 -20
- package/dist/components/aurora/Aurora.js +15 -16
- package/dist/components/avatar/Avatar.js +44 -44
- package/dist/components/badge/Badge.js +36 -37
- package/dist/components/button/Button.js +16 -16
- package/dist/components/button-group/ButtonGroup.js +15 -16
- package/dist/components/card/Card.js +21 -22
- package/dist/components/card/CardSection.js +15 -15
- package/dist/components/chart/Chart.js +82 -82
- package/dist/components/chart/LineChart.js +50 -51
- package/dist/components/col/Col.js +9 -10
- package/dist/components/command/Command.js +32 -33
- package/dist/components/container/Container.js +9 -10
- package/dist/components/context-menu/ContextMenu.js +76 -77
- package/dist/components/data-table/DataTableColumn.js +9 -10
- package/dist/components/data-table/DataTableFilterInput.js +83 -83
- package/dist/components/data-table/DataTableFilterSuggestionMenu.js +26 -27
- package/dist/components/data-table/DataTableHeader.js +20 -21
- package/dist/components/data-table/DataTablePagination.js +27 -28
- package/dist/components/dialog/Dialog.js +61 -62
- package/dist/components/file-tabs/FileTabs.js +51 -52
- package/dist/components/flex/Flex.js +9 -10
- package/dist/components/form/CheckboxInput.js +50 -51
- package/dist/components/form/ColorInput.js +242 -242
- package/dist/components/form/DateInput.js +55 -55
- package/dist/components/form/EditorInput.d.ts +7 -0
- package/dist/components/form/EditorInput.js +278 -273
- package/dist/components/form/FileInput.js +67 -68
- package/dist/components/form/InputDescription.js +3 -4
- package/dist/components/form/InputLabel.js +9 -10
- package/dist/components/form/InputMessage.js +6 -7
- package/dist/components/form/InputWrapper.js +37 -38
- package/dist/components/form/PasswordInput.js +2 -2
- package/dist/components/form/PinInput.js +30 -31
- package/dist/components/form/RadioGroup.js +22 -23
- package/dist/components/form/RadioInput.js +19 -20
- package/dist/components/form/SelectInput.js +55 -56
- package/dist/components/form/TagInput.js +46 -45
- package/dist/components/fullscreen/FullScreen.js +14 -15
- package/dist/components/gantt/Gantt.js +63 -64
- package/dist/components/gantt/GanttGroup.js +2 -2
- package/dist/components/gantt/GanttHeader.js +40 -41
- package/dist/components/gantt/GanttItem.js +11 -12
- package/dist/components/icon/Icon.js +22 -22
- package/dist/components/json-view/JsonView.js +37 -38
- package/dist/components/layout/Layout.js +64 -65
- package/dist/components/menu/Menu.js +91 -92
- package/dist/components/quote/Quote.js +29 -30
- package/dist/components/resizable/Resizable.js +22 -23
- package/dist/components/row/Row.js +9 -10
- package/dist/components/scroll-area/ScrollArea.js +46 -47
- package/dist/components/segmented-control/SegmentedControl.js +35 -35
- package/dist/components/spacing/Spacing.js +8 -9
- package/dist/components/tab/Tab.js +53 -53
- package/dist/components/text/Text.js +9 -10
- package/dist/components/toast/Toast.js +47 -47
- package/dist/components/tooltip/Tooltip.js +35 -36
- package/dist/node_modules/@lezer/common/dist/index.js +4 -4
- package/dist/utils/contextStore.js +31 -32
- package/dist/utils/motion.js +39 -40
- package/package.json +8 -8
- package/dist/_virtual/__vite-optional-peer-dep_@emotion/is-prop-valid_framer-motion.js +0 -6
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PopChild.js +0 -59
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PresenceChild.js +0 -51
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/index.js +0 -58
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/use-presence.js +0 -18
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/utils.js +0 -9
- package/dist/node_modules/framer-motion/dist/es/context/LayoutGroupContext.js +0 -4
- package/dist/node_modules/framer-motion/dist/es/context/LazyContext.js +0 -4
- package/dist/node_modules/framer-motion/dist/es/context/MotionConfigContext.js +0 -8
- package/dist/node_modules/framer-motion/dist/es/context/MotionContext/create.js +0 -15
- package/dist/node_modules/framer-motion/dist/es/context/MotionContext/index.js +0 -4
- package/dist/node_modules/framer-motion/dist/es/context/MotionContext/utils.js +0 -13
- package/dist/node_modules/framer-motion/dist/es/context/PresenceContext.js +0 -4
- package/dist/node_modules/framer-motion/dist/es/context/SwitchLayoutGroupContext.js +0 -4
- package/dist/node_modules/framer-motion/dist/es/events/add-pointer-event.js +0 -6
- package/dist/node_modules/framer-motion/dist/es/events/event-info.js +0 -9
- package/dist/node_modules/framer-motion/dist/es/gestures/drag/VisualElementDragControls.js +0 -256
- package/dist/node_modules/framer-motion/dist/es/gestures/drag/index.js +0 -20
- package/dist/node_modules/framer-motion/dist/es/gestures/drag/utils/constraints.js +0 -57
- package/dist/node_modules/framer-motion/dist/es/gestures/focus.js +0 -25
- package/dist/node_modules/framer-motion/dist/es/gestures/hover.js +0 -18
- package/dist/node_modules/framer-motion/dist/es/gestures/pan/PanSession.js +0 -136
- package/dist/node_modules/framer-motion/dist/es/gestures/pan/index.js +0 -40
- package/dist/node_modules/framer-motion/dist/es/gestures/press.js +0 -24
- package/dist/node_modules/framer-motion/dist/es/motion/features/animation/exit.js +0 -37
- package/dist/node_modules/framer-motion/dist/es/motion/features/animation/index.js +0 -23
- package/dist/node_modules/framer-motion/dist/es/motion/features/animations.js +0 -7
- package/dist/node_modules/framer-motion/dist/es/motion/features/definitions.js +0 -49
- package/dist/node_modules/framer-motion/dist/es/motion/features/drag.js +0 -13
- package/dist/node_modules/framer-motion/dist/es/motion/features/gestures.js +0 -11
- package/dist/node_modules/framer-motion/dist/es/motion/features/layout/MeasureLayout.js +0 -59
- package/dist/node_modules/framer-motion/dist/es/motion/features/layout.js +0 -7
- package/dist/node_modules/framer-motion/dist/es/motion/features/load-features.js +0 -11
- package/dist/node_modules/framer-motion/dist/es/motion/features/viewport/index.js +0 -44
- package/dist/node_modules/framer-motion/dist/es/motion/features/viewport/observers.js +0 -22
- package/dist/node_modules/framer-motion/dist/es/motion/index.js +0 -68
- package/dist/node_modules/framer-motion/dist/es/motion/utils/symbol.js +0 -2
- package/dist/node_modules/framer-motion/dist/es/motion/utils/use-motion-ref.js +0 -19
- package/dist/node_modules/framer-motion/dist/es/motion/utils/use-visual-element.js +0 -56
- package/dist/node_modules/framer-motion/dist/es/motion/utils/use-visual-state.js +0 -48
- package/dist/node_modules/framer-motion/dist/es/motion/utils/valid-prop.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/render/components/create-proxy.js +0 -8
- package/dist/node_modules/framer-motion/dist/es/render/components/m/proxy.js +0 -3
- package/dist/node_modules/framer-motion/dist/es/render/components/motion/feature-bundle.js +0 -11
- package/dist/node_modules/framer-motion/dist/es/render/components/motion/proxy.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/render/dom/create-visual-element.js +0 -6
- package/dist/node_modules/framer-motion/dist/es/render/dom/use-render.js +0 -19
- package/dist/node_modules/framer-motion/dist/es/render/dom/utils/filter-props.js +0 -17
- package/dist/node_modules/framer-motion/dist/es/render/dom/utils/is-svg-component.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/render/html/use-html-visual-state.js +0 -9
- package/dist/node_modules/framer-motion/dist/es/render/html/use-props.js +0 -24
- package/dist/node_modules/framer-motion/dist/es/render/html/utils/create-render-state.js +0 -7
- package/dist/node_modules/framer-motion/dist/es/render/svg/lowercase-elements.js +0 -28
- package/dist/node_modules/framer-motion/dist/es/render/svg/use-props.js +0 -24
- package/dist/node_modules/framer-motion/dist/es/render/svg/use-svg-visual-state.js +0 -9
- package/dist/node_modules/framer-motion/dist/es/render/svg/utils/create-render-state.js +0 -6
- package/dist/node_modules/framer-motion/dist/es/utils/distance.js +0 -6
- package/dist/node_modules/framer-motion/dist/es/utils/get-context-window.js +0 -2
- package/dist/node_modules/framer-motion/dist/es/utils/is-browser.js +0 -2
- package/dist/node_modules/framer-motion/dist/es/utils/is-ref-object.js +0 -4
- package/dist/node_modules/framer-motion/dist/es/utils/reduced-motion/use-reduced-motion.js +0 -11
- package/dist/node_modules/framer-motion/dist/es/utils/use-composed-ref.js +0 -23
- package/dist/node_modules/framer-motion/dist/es/utils/use-constant.js +0 -7
- package/dist/node_modules/framer-motion/dist/es/utils/use-isomorphic-effect.js +0 -5
- package/dist/node_modules/motion/dist/es/react.js +0 -196
- package/dist/node_modules/motion-dom/dist/es/animation/AsyncMotionValueAnimation.js +0 -105
- package/dist/node_modules/motion-dom/dist/es/animation/JSAnimation.js +0 -127
- package/dist/node_modules/motion-dom/dist/es/animation/NativeAnimation.js +0 -82
- package/dist/node_modules/motion-dom/dist/es/animation/NativeAnimationExtended.js +0 -26
- package/dist/node_modules/motion-dom/dist/es/animation/animate/single-value.js +0 -8
- package/dist/node_modules/motion-dom/dist/es/animation/drivers/frame.js +0 -11
- package/dist/node_modules/motion-dom/dist/es/animation/generators/inertia.js +0 -30
- package/dist/node_modules/motion-dom/dist/es/animation/generators/keyframes.js +0 -20
- package/dist/node_modules/motion-dom/dist/es/animation/generators/spring.js +0 -164
- package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/calc-duration.js +0 -7
- package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/create-generator-easing.js +0 -14
- package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/is-generator.js +0 -4
- package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/velocity.js +0 -7
- package/dist/node_modules/motion-dom/dist/es/animation/interfaces/motion-value.js +0 -43
- package/dist/node_modules/motion-dom/dist/es/animation/interfaces/visual-element-target.js +0 -54
- package/dist/node_modules/motion-dom/dist/es/animation/interfaces/visual-element-variant.js +0 -24
- package/dist/node_modules/motion-dom/dist/es/animation/interfaces/visual-element.js +0 -19
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/DOMKeyframesResolver.js +0 -59
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/KeyframesResolver.js +0 -65
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/get-final.js +0 -6
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/offsets/default.js +0 -6
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/offsets/fill.js +0 -10
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/offsets/time.js +0 -4
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/fill-wildcards.js +0 -4
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/is-none.js +0 -5
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/make-none-animatable.js +0 -16
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/unit-conversion.js +0 -34
- package/dist/node_modules/motion-dom/dist/es/animation/optimized-appear/data-id.js +0 -3
- package/dist/node_modules/motion-dom/dist/es/animation/optimized-appear/get-appear-id.js +0 -5
- package/dist/node_modules/motion-dom/dist/es/animation/utils/WithPromise.js +0 -20
- package/dist/node_modules/motion-dom/dist/es/animation/utils/calc-child-stagger.js +0 -5
- package/dist/node_modules/motion-dom/dist/es/animation/utils/can-animate.js +0 -16
- package/dist/node_modules/motion-dom/dist/es/animation/utils/css-variables-conversion.js +0 -23
- package/dist/node_modules/motion-dom/dist/es/animation/utils/default-transitions.js +0 -25
- package/dist/node_modules/motion-dom/dist/es/animation/utils/get-value-transition.js +0 -6
- package/dist/node_modules/motion-dom/dist/es/animation/utils/is-animatable.js +0 -3
- package/dist/node_modules/motion-dom/dist/es/animation/utils/is-css-variable.js +0 -5
- package/dist/node_modules/motion-dom/dist/es/animation/utils/is-transition-defined.js +0 -17
- package/dist/node_modules/motion-dom/dist/es/animation/utils/make-animation-instant.js +0 -4
- package/dist/node_modules/motion-dom/dist/es/animation/utils/replace-transition-type.js +0 -14
- package/dist/node_modules/motion-dom/dist/es/animation/utils/resolve-transition.js +0 -11
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/easing/cubic-bezier.js +0 -2
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/easing/map-easing.js +0 -9
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/easing/supported.js +0 -33
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/start-waapi-animation.js +0 -17
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/supports/waapi.js +0 -22
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/accelerated-values.js +0 -8
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/apply-generator.js +0 -6
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/is-browser-color.js +0 -6
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/linear.js +0 -6
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/unsupported-easing.js +0 -15
- package/dist/node_modules/motion-dom/dist/es/events/add-dom-event.js +0 -4
- package/dist/node_modules/motion-dom/dist/es/frameloop/batcher.js +0 -28
- package/dist/node_modules/motion-dom/dist/es/frameloop/frame.js +0 -4
- package/dist/node_modules/motion-dom/dist/es/frameloop/microtask.js +0 -3
- package/dist/node_modules/motion-dom/dist/es/frameloop/order.js +0 -11
- package/dist/node_modules/motion-dom/dist/es/frameloop/render-step.js +0 -30
- package/dist/node_modules/motion-dom/dist/es/frameloop/sync-time.js +0 -13
- package/dist/node_modules/motion-dom/dist/es/gestures/drag/state/is-active.js +0 -8
- package/dist/node_modules/motion-dom/dist/es/gestures/drag/state/set-active.js +0 -9
- package/dist/node_modules/motion-dom/dist/es/gestures/hover.js +0 -34
- package/dist/node_modules/motion-dom/dist/es/gestures/press/index.js +0 -34
- package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/is-keyboard-accessible.js +0 -19
- package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/keyboard.js +0 -26
- package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/state.js +0 -2
- package/dist/node_modules/motion-dom/dist/es/gestures/utils/is-node-or-child.js +0 -2
- package/dist/node_modules/motion-dom/dist/es/gestures/utils/is-primary-pointer.js +0 -2
- package/dist/node_modules/motion-dom/dist/es/gestures/utils/setup.js +0 -14
- package/dist/node_modules/motion-dom/dist/es/projection/animation/mix-values.js +0 -23
- package/dist/node_modules/motion-dom/dist/es/projection/geometry/conversion.js +0 -37
- package/dist/node_modules/motion-dom/dist/es/projection/geometry/copy.js +0 -10
- package/dist/node_modules/motion-dom/dist/es/projection/geometry/delta-apply.js +0 -41
- package/dist/node_modules/motion-dom/dist/es/projection/geometry/delta-calc.js +0 -28
- package/dist/node_modules/motion-dom/dist/es/projection/geometry/delta-remove.js +0 -27
- package/dist/node_modules/motion-dom/dist/es/projection/geometry/models.js +0 -16
- package/dist/node_modules/motion-dom/dist/es/projection/geometry/utils.js +0 -26
- package/dist/node_modules/motion-dom/dist/es/projection/node/DocumentProjectionNode.js +0 -11
- package/dist/node_modules/motion-dom/dist/es/projection/node/HTMLProjectionNode.js +0 -20
- package/dist/node_modules/motion-dom/dist/es/projection/node/create-projection-node.js +0 -580
- package/dist/node_modules/motion-dom/dist/es/projection/node/state.js +0 -5
- package/dist/node_modules/motion-dom/dist/es/projection/shared/stack.js +0 -49
- package/dist/node_modules/motion-dom/dist/es/projection/styles/scale-border-radius.js +0 -11
- package/dist/node_modules/motion-dom/dist/es/projection/styles/scale-box-shadow.js +0 -11
- package/dist/node_modules/motion-dom/dist/es/projection/styles/scale-correction.js +0 -15
- package/dist/node_modules/motion-dom/dist/es/projection/styles/transform.js +0 -10
- package/dist/node_modules/motion-dom/dist/es/projection/utils/compare-by-depth.js +0 -2
- package/dist/node_modules/motion-dom/dist/es/projection/utils/each-axis.js +0 -4
- package/dist/node_modules/motion-dom/dist/es/projection/utils/flat-tree.js +0 -17
- package/dist/node_modules/motion-dom/dist/es/projection/utils/has-transform.js +0 -16
- package/dist/node_modules/motion-dom/dist/es/projection/utils/measure.js +0 -10
- package/dist/node_modules/motion-dom/dist/es/render/Feature.js +0 -7
- package/dist/node_modules/motion-dom/dist/es/render/VisualElement.js +0 -201
- package/dist/node_modules/motion-dom/dist/es/render/dom/DOMVisualElement.js +0 -26
- package/dist/node_modules/motion-dom/dist/es/render/dom/is-css-var.js +0 -2
- package/dist/node_modules/motion-dom/dist/es/render/dom/parse-transform.js +0 -54
- package/dist/node_modules/motion-dom/dist/es/render/dom/style-set.js +0 -5
- package/dist/node_modules/motion-dom/dist/es/render/dom/utils/camel-to-dash.js +0 -4
- package/dist/node_modules/motion-dom/dist/es/render/html/HTMLVisualElement.js +0 -37
- package/dist/node_modules/motion-dom/dist/es/render/html/utils/build-styles.js +0 -26
- package/dist/node_modules/motion-dom/dist/es/render/html/utils/build-transform.js +0 -34
- package/dist/node_modules/motion-dom/dist/es/render/html/utils/render.js +0 -6
- package/dist/node_modules/motion-dom/dist/es/render/html/utils/scrape-motion-values.js +0 -9
- package/dist/node_modules/motion-dom/dist/es/render/store.js +0 -2
- package/dist/node_modules/motion-dom/dist/es/render/svg/SVGVisualElement.js +0 -38
- package/dist/node_modules/motion-dom/dist/es/render/svg/utils/build-attrs.js +0 -20
- package/dist/node_modules/motion-dom/dist/es/render/svg/utils/camel-case-attrs.js +0 -26
- package/dist/node_modules/motion-dom/dist/es/render/svg/utils/is-svg-tag.js +0 -2
- package/dist/node_modules/motion-dom/dist/es/render/svg/utils/path.js +0 -13
- package/dist/node_modules/motion-dom/dist/es/render/svg/utils/render.js +0 -7
- package/dist/node_modules/motion-dom/dist/es/render/svg/utils/scrape-motion-values.js +0 -12
- package/dist/node_modules/motion-dom/dist/es/render/utils/animation-state.js +0 -133
- package/dist/node_modules/motion-dom/dist/es/render/utils/get-variant-context.js +0 -17
- package/dist/node_modules/motion-dom/dist/es/render/utils/is-animation-controls.js +0 -4
- package/dist/node_modules/motion-dom/dist/es/render/utils/is-controlling-variants.js +0 -10
- package/dist/node_modules/motion-dom/dist/es/render/utils/is-forced-motion-value.js +0 -6
- package/dist/node_modules/motion-dom/dist/es/render/utils/is-keyframes-target.js +0 -2
- package/dist/node_modules/motion-dom/dist/es/render/utils/is-variant-label.js +0 -4
- package/dist/node_modules/motion-dom/dist/es/render/utils/keys-position.js +0 -11
- package/dist/node_modules/motion-dom/dist/es/render/utils/keys-transform.js +0 -20
- package/dist/node_modules/motion-dom/dist/es/render/utils/motion-values.js +0 -19
- package/dist/node_modules/motion-dom/dist/es/render/utils/reduced-motion/index.js +0 -9
- package/dist/node_modules/motion-dom/dist/es/render/utils/reduced-motion/state.js +0 -2
- package/dist/node_modules/motion-dom/dist/es/render/utils/resolve-dynamic-variants.js +0 -6
- package/dist/node_modules/motion-dom/dist/es/render/utils/resolve-variants.js +0 -18
- package/dist/node_modules/motion-dom/dist/es/render/utils/setters.js +0 -17
- package/dist/node_modules/motion-dom/dist/es/render/utils/shallow-compare.js +0 -8
- package/dist/node_modules/motion-dom/dist/es/render/utils/variant-props.js +0 -10
- package/dist/node_modules/motion-dom/dist/es/resize/handle-element.js +0 -35
- package/dist/node_modules/motion-dom/dist/es/resize/handle-window.js +0 -20
- package/dist/node_modules/motion-dom/dist/es/resize/index.js +0 -6
- package/dist/node_modules/motion-dom/dist/es/stats/buffer.js +0 -5
- package/dist/node_modules/motion-dom/dist/es/utils/border-radius.js +0 -7
- package/dist/node_modules/motion-dom/dist/es/utils/delay.js +0 -10
- package/dist/node_modules/motion-dom/dist/es/utils/interpolate.js +0 -31
- package/dist/node_modules/motion-dom/dist/es/utils/is-html-element.js +0 -5
- package/dist/node_modules/motion-dom/dist/es/utils/is-svg-element.js +0 -5
- package/dist/node_modules/motion-dom/dist/es/utils/is-svg-svg-element.js +0 -5
- package/dist/node_modules/motion-dom/dist/es/utils/mix/color.js +0 -28
- package/dist/node_modules/motion-dom/dist/es/utils/mix/complex.js +0 -50
- package/dist/node_modules/motion-dom/dist/es/utils/mix/immediate.js +0 -4
- package/dist/node_modules/motion-dom/dist/es/utils/mix/index.js +0 -6
- package/dist/node_modules/motion-dom/dist/es/utils/mix/number.js +0 -2
- package/dist/node_modules/motion-dom/dist/es/utils/mix/visibility.js +0 -5
- package/dist/node_modules/motion-dom/dist/es/utils/resolve-elements.js +0 -12
- package/dist/node_modules/motion-dom/dist/es/utils/supports/flags.js +0 -2
- package/dist/node_modules/motion-dom/dist/es/utils/supports/linear-easing.js +0 -10
- package/dist/node_modules/motion-dom/dist/es/utils/supports/memo.js +0 -7
- package/dist/node_modules/motion-dom/dist/es/utils/supports/scroll-timeline.js +0 -3
- package/dist/node_modules/motion-dom/dist/es/value/index.js +0 -90
- package/dist/node_modules/motion-dom/dist/es/value/types/auto.js +0 -5
- package/dist/node_modules/motion-dom/dist/es/value/types/color/hex.js +0 -17
- package/dist/node_modules/motion-dom/dist/es/value/types/color/hsla-to-rgba.js +0 -19
- package/dist/node_modules/motion-dom/dist/es/value/types/color/hsla.js +0 -10
- package/dist/node_modules/motion-dom/dist/es/value/types/color/index.js +0 -13
- package/dist/node_modules/motion-dom/dist/es/value/types/color/rgba.js +0 -13
- package/dist/node_modules/motion-dom/dist/es/value/types/color/utils.js +0 -14
- package/dist/node_modules/motion-dom/dist/es/value/types/complex/filter.js +0 -24
- package/dist/node_modules/motion-dom/dist/es/value/types/complex/index.js +0 -50
- package/dist/node_modules/motion-dom/dist/es/value/types/complex/mask.js +0 -12
- package/dist/node_modules/motion-dom/dist/es/value/types/dimensions.js +0 -14
- package/dist/node_modules/motion-dom/dist/es/value/types/int.js +0 -6
- package/dist/node_modules/motion-dom/dist/es/value/types/maps/defaults.js +0 -22
- package/dist/node_modules/motion-dom/dist/es/value/types/maps/number.js +0 -62
- package/dist/node_modules/motion-dom/dist/es/value/types/maps/transform.js +0 -30
- package/dist/node_modules/motion-dom/dist/es/value/types/numbers/index.js +0 -13
- package/dist/node_modules/motion-dom/dist/es/value/types/numbers/units.js +0 -10
- package/dist/node_modules/motion-dom/dist/es/value/types/test.js +0 -2
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/animatable-none.js +0 -10
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/color-regex.js +0 -2
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/find.js +0 -10
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/float-regex.js +0 -2
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/get-as-type.js +0 -2
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/is-nullish.js +0 -4
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/sanitize.js +0 -2
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/single-color-regex.js +0 -2
- package/dist/node_modules/motion-dom/dist/es/value/utils/is-motion-value.js +0 -2
- package/dist/node_modules/motion-dom/dist/es/value/utils/resolve-motion-value.js +0 -5
- package/dist/node_modules/motion-dom/dist/es/value/will-change/add-will-change.js +0 -11
- package/dist/node_modules/motion-dom/dist/es/value/will-change/is.js +0 -5
- package/dist/node_modules/motion-utils/dist/es/array.js +0 -8
- package/dist/node_modules/motion-utils/dist/es/clamp.js +0 -2
- package/dist/node_modules/motion-utils/dist/es/easing/anticipate.js +0 -3
- package/dist/node_modules/motion-utils/dist/es/easing/back.js +0 -5
- package/dist/node_modules/motion-utils/dist/es/easing/circ.js +0 -4
- package/dist/node_modules/motion-utils/dist/es/easing/cubic-bezier.js +0 -16
- package/dist/node_modules/motion-utils/dist/es/easing/ease.js +0 -3
- package/dist/node_modules/motion-utils/dist/es/easing/modifiers/mirror.js +0 -2
- package/dist/node_modules/motion-utils/dist/es/easing/modifiers/reverse.js +0 -2
- package/dist/node_modules/motion-utils/dist/es/easing/utils/is-bezier-definition.js +0 -2
- package/dist/node_modules/motion-utils/dist/es/easing/utils/is-easing-array.js +0 -2
- package/dist/node_modules/motion-utils/dist/es/easing/utils/map.js +0 -29
- package/dist/node_modules/motion-utils/dist/es/errors.js +0 -8
- package/dist/node_modules/motion-utils/dist/es/format-error-message.js +0 -4
- package/dist/node_modules/motion-utils/dist/es/global-config.js +0 -2
- package/dist/node_modules/motion-utils/dist/es/is-numerical-string.js +0 -2
- package/dist/node_modules/motion-utils/dist/es/is-object.js +0 -2
- package/dist/node_modules/motion-utils/dist/es/is-zero-value-string.js +0 -2
- package/dist/node_modules/motion-utils/dist/es/memo.js +0 -6
- package/dist/node_modules/motion-utils/dist/es/noop.js +0 -2
- package/dist/node_modules/motion-utils/dist/es/pipe.js +0 -2
- package/dist/node_modules/motion-utils/dist/es/progress.js +0 -5
- package/dist/node_modules/motion-utils/dist/es/subscription-manager.js +0 -24
- package/dist/node_modules/motion-utils/dist/es/time-conversion.js +0 -2
- package/dist/node_modules/motion-utils/dist/es/velocity-per-second.js +0 -2
- package/dist/node_modules/motion-utils/dist/es/warn-once.js +0 -6
- package/dist/node_modules/react/cjs/react-compiler-runtime.development.js +0 -21
- package/dist/node_modules/react/cjs/react-compiler-runtime.production.js +0 -18
- package/dist/node_modules/react/compiler-runtime.js +0 -8
|
@@ -1,133 +0,0 @@
|
|
|
1
|
-
import { calcChildStagger } from "../../animation/utils/calc-child-stagger.js";
|
|
2
|
-
import { resolveVariant } from "./resolve-dynamic-variants.js";
|
|
3
|
-
import { isKeyframesTarget } from "./is-keyframes-target.js";
|
|
4
|
-
import { animateVisualElement } from "../../animation/interfaces/visual-element.js";
|
|
5
|
-
import { isAnimationControls } from "./is-animation-controls.js";
|
|
6
|
-
import { isVariantLabel } from "./is-variant-label.js";
|
|
7
|
-
import { variantPriorityOrder } from "./variant-props.js";
|
|
8
|
-
import { getVariantContext } from "./get-variant-context.js";
|
|
9
|
-
import { shallowCompare } from "./shallow-compare.js";
|
|
10
|
-
var reversePriorityOrder = [...variantPriorityOrder].reverse(), numAnimationTypes = variantPriorityOrder.length;
|
|
11
|
-
function createAnimateFunction(t) {
|
|
12
|
-
return (i) => Promise.all(i.map(({ animation: i, options: a }) => animateVisualElement(t, i, a)));
|
|
13
|
-
}
|
|
14
|
-
function createAnimationState(o) {
|
|
15
|
-
let l = createAnimateFunction(o), p = createState(), m = !0, g = !1, _ = (t) => (a, s) => {
|
|
16
|
-
let c = resolveVariant(o, s, t === "exit" ? o.presenceContext?.custom : void 0);
|
|
17
|
-
if (c) {
|
|
18
|
-
let { transition: t, transitionEnd: i, ...o } = c;
|
|
19
|
-
a = {
|
|
20
|
-
...a,
|
|
21
|
-
...o,
|
|
22
|
-
...i
|
|
23
|
-
};
|
|
24
|
-
}
|
|
25
|
-
return a;
|
|
26
|
-
};
|
|
27
|
-
function v(t) {
|
|
28
|
-
l = t(o);
|
|
29
|
-
}
|
|
30
|
-
function y(f) {
|
|
31
|
-
let { props: h } = o, v = getVariantContext(o.parent) || {}, y = [], b = /* @__PURE__ */ new Set(), x = {}, S = Infinity;
|
|
32
|
-
for (let l = 0; l < numAnimationTypes; l++) {
|
|
33
|
-
let u = reversePriorityOrder[l], d = p[u], C = h[u] === void 0 ? v[u] : h[u], w = isVariantLabel(C), T = u === f ? d.isActive : null;
|
|
34
|
-
T === !1 && (S = l);
|
|
35
|
-
let E = C === v[u] && C !== h[u] && w;
|
|
36
|
-
if (E && (m || g) && o.manuallyAnimateOnMount && (E = !1), d.protectedKeys = { ...x }, !d.isActive && T === null || !C && !d.prevProp || isAnimationControls(C) || typeof C == "boolean") continue;
|
|
37
|
-
if (u === "exit" && d.isActive && T !== !0) {
|
|
38
|
-
d.prevResolvedValues && (x = {
|
|
39
|
-
...x,
|
|
40
|
-
...d.prevResolvedValues
|
|
41
|
-
});
|
|
42
|
-
continue;
|
|
43
|
-
}
|
|
44
|
-
let D = checkVariantsDidChange(d.prevProp, C), O = D || u === f && d.isActive && !E && w || l > S && w, k = !1, A = Array.isArray(C) ? C : [C], j = A.reduce(_(u), {});
|
|
45
|
-
T === !1 && (j = {});
|
|
46
|
-
let { prevResolvedValues: M = {} } = d, N = {
|
|
47
|
-
...M,
|
|
48
|
-
...j
|
|
49
|
-
}, P = (t) => {
|
|
50
|
-
O = !0, b.has(t) && (k = !0, b.delete(t)), d.needsAnimating[t] = !0;
|
|
51
|
-
let i = o.getValue(t);
|
|
52
|
-
i && (i.liveStyle = !1);
|
|
53
|
-
};
|
|
54
|
-
for (let t in N) {
|
|
55
|
-
let i = j[t], o = M[t];
|
|
56
|
-
if (x.hasOwnProperty(t)) continue;
|
|
57
|
-
let s = !1;
|
|
58
|
-
s = isKeyframesTarget(i) && isKeyframesTarget(o) ? !shallowCompare(i, o) || D : i !== o, s ? i == null ? b.add(t) : P(t) : i !== void 0 && b.has(t) ? P(t) : d.protectedKeys[t] = !0;
|
|
59
|
-
}
|
|
60
|
-
d.prevProp = C, d.prevResolvedValues = j, d.isActive && (x = {
|
|
61
|
-
...x,
|
|
62
|
-
...j
|
|
63
|
-
}), (m || g) && o.blockInitialAnimation && (O = !1);
|
|
64
|
-
let F = E && D;
|
|
65
|
-
O && (!F || k) && y.push(...A.map((a) => {
|
|
66
|
-
let s = { type: u };
|
|
67
|
-
if (typeof a == "string" && (m || g) && !F && o.manuallyAnimateOnMount && o.parent) {
|
|
68
|
-
let { parent: c } = o, l = resolveVariant(c, a);
|
|
69
|
-
if (c.enteringChildren && l) {
|
|
70
|
-
let { delayChildren: i } = l.transition || {};
|
|
71
|
-
s.delay = calcChildStagger(c.enteringChildren, o, i);
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
return {
|
|
75
|
-
animation: a,
|
|
76
|
-
options: s
|
|
77
|
-
};
|
|
78
|
-
}));
|
|
79
|
-
}
|
|
80
|
-
if (b.size) {
|
|
81
|
-
let t = {};
|
|
82
|
-
if (typeof h.initial != "boolean") {
|
|
83
|
-
let a = resolveVariant(o, Array.isArray(h.initial) ? h.initial[0] : h.initial);
|
|
84
|
-
a && a.transition && (t.transition = a.transition);
|
|
85
|
-
}
|
|
86
|
-
b.forEach((i) => {
|
|
87
|
-
let a = o.getBaseTarget(i), s = o.getValue(i);
|
|
88
|
-
s && (s.liveStyle = !0), t[i] = a ?? null;
|
|
89
|
-
}), y.push({ animation: t });
|
|
90
|
-
}
|
|
91
|
-
let C = !!y.length;
|
|
92
|
-
return m && (h.initial === !1 || h.initial === h.animate) && !o.manuallyAnimateOnMount && (C = !1), m = !1, g = !1, C ? l(y) : Promise.resolve();
|
|
93
|
-
}
|
|
94
|
-
function b(t, i) {
|
|
95
|
-
if (p[t].isActive === i) return Promise.resolve();
|
|
96
|
-
o.variantChildren?.forEach((a) => a.animationState?.setActive(t, i)), p[t].isActive = i;
|
|
97
|
-
let a = y(t);
|
|
98
|
-
for (let t in p) p[t].protectedKeys = {};
|
|
99
|
-
return a;
|
|
100
|
-
}
|
|
101
|
-
return {
|
|
102
|
-
animateChanges: y,
|
|
103
|
-
setActive: b,
|
|
104
|
-
setAnimateFunction: v,
|
|
105
|
-
getState: () => p,
|
|
106
|
-
reset: () => {
|
|
107
|
-
p = createState(), g = !0;
|
|
108
|
-
}
|
|
109
|
-
};
|
|
110
|
-
}
|
|
111
|
-
function checkVariantsDidChange(t, i) {
|
|
112
|
-
return typeof i == "string" ? i !== t : Array.isArray(i) ? !shallowCompare(i, t) : !1;
|
|
113
|
-
}
|
|
114
|
-
function createTypeState(t = !1) {
|
|
115
|
-
return {
|
|
116
|
-
isActive: t,
|
|
117
|
-
protectedKeys: {},
|
|
118
|
-
needsAnimating: {},
|
|
119
|
-
prevResolvedValues: {}
|
|
120
|
-
};
|
|
121
|
-
}
|
|
122
|
-
function createState() {
|
|
123
|
-
return {
|
|
124
|
-
animate: createTypeState(!0),
|
|
125
|
-
whileInView: createTypeState(),
|
|
126
|
-
whileHover: createTypeState(),
|
|
127
|
-
whileTap: createTypeState(),
|
|
128
|
-
whileDrag: createTypeState(),
|
|
129
|
-
whileFocus: createTypeState(),
|
|
130
|
-
exit: createTypeState()
|
|
131
|
-
};
|
|
132
|
-
}
|
|
133
|
-
export { checkVariantsDidChange, createAnimationState };
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { isVariantLabel } from "./is-variant-label.js";
|
|
2
|
-
import { variantProps } from "./variant-props.js";
|
|
3
|
-
var numVariantProps = variantProps.length;
|
|
4
|
-
function getVariantContext(i) {
|
|
5
|
-
if (!i) return;
|
|
6
|
-
if (!i.isControllingVariants) {
|
|
7
|
-
let e = i.parent && getVariantContext(i.parent) || {};
|
|
8
|
-
return i.props.initial !== void 0 && (e.initial = i.props.initial), e;
|
|
9
|
-
}
|
|
10
|
-
let a = {};
|
|
11
|
-
for (let r = 0; r < numVariantProps; r++) {
|
|
12
|
-
let n = variantProps[r], o = i.props[n];
|
|
13
|
-
(isVariantLabel(o) || o === !1) && (a[n] = o);
|
|
14
|
-
}
|
|
15
|
-
return a;
|
|
16
|
-
}
|
|
17
|
-
export { getVariantContext };
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { isAnimationControls } from "./is-animation-controls.js";
|
|
2
|
-
import { isVariantLabel } from "./is-variant-label.js";
|
|
3
|
-
import { variantProps } from "./variant-props.js";
|
|
4
|
-
function isControllingVariants(i) {
|
|
5
|
-
return isAnimationControls(i.animate) || variantProps.some((e) => isVariantLabel(i[e]));
|
|
6
|
-
}
|
|
7
|
-
function isVariantNode(e) {
|
|
8
|
-
return !!(isControllingVariants(e) || e.variants);
|
|
9
|
-
}
|
|
10
|
-
export { isControllingVariants, isVariantNode };
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { transformProps } from "./keys-transform.js";
|
|
2
|
-
import { scaleCorrectors } from "../../projection/styles/scale-correction.js";
|
|
3
|
-
function isForcedMotionValue(n, { layout: r, layoutId: i }) {
|
|
4
|
-
return transformProps.has(n) || n.startsWith("origin") || (r || i !== void 0) && (!!scaleCorrectors[n] || n === "opacity");
|
|
5
|
-
}
|
|
6
|
-
export { isForcedMotionValue };
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
var transformPropOrder = [
|
|
2
|
-
"transformPerspective",
|
|
3
|
-
"x",
|
|
4
|
-
"y",
|
|
5
|
-
"z",
|
|
6
|
-
"translateX",
|
|
7
|
-
"translateY",
|
|
8
|
-
"translateZ",
|
|
9
|
-
"scale",
|
|
10
|
-
"scaleX",
|
|
11
|
-
"scaleY",
|
|
12
|
-
"rotate",
|
|
13
|
-
"rotateX",
|
|
14
|
-
"rotateY",
|
|
15
|
-
"rotateZ",
|
|
16
|
-
"skew",
|
|
17
|
-
"skewX",
|
|
18
|
-
"skewY"
|
|
19
|
-
], transformProps = /* @__PURE__ */ (() => new Set([...transformPropOrder, "pathRotation"]))();
|
|
20
|
-
export { transformPropOrder, transformProps };
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { motionValue } from "../../value/index.js";
|
|
2
|
-
import { isMotionValue } from "../../value/utils/is-motion-value.js";
|
|
3
|
-
function updateMotionValuesFromProps(n, r, i) {
|
|
4
|
-
for (let a in r) {
|
|
5
|
-
let o = r[a], s = i[a];
|
|
6
|
-
if (isMotionValue(o)) n.addValue(a, o);
|
|
7
|
-
else if (isMotionValue(s)) n.addValue(a, motionValue(o, { owner: n }));
|
|
8
|
-
else if (s !== o) if (n.hasValue(a)) {
|
|
9
|
-
let e = n.getValue(a);
|
|
10
|
-
e.liveStyle === !0 ? e.jump(o) : e.hasAnimated || e.set(o);
|
|
11
|
-
} else {
|
|
12
|
-
let t = n.getStaticValue(a);
|
|
13
|
-
n.addValue(a, motionValue(t === void 0 ? o : t, { owner: n }));
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
for (let e in i) r[e] === void 0 && n.removeValue(e);
|
|
17
|
-
return r;
|
|
18
|
-
}
|
|
19
|
-
export { updateMotionValuesFromProps };
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { hasReducedMotionListener, prefersReducedMotion } from "./state.js";
|
|
2
|
-
var isBrowser = typeof window < "u";
|
|
3
|
-
function initPrefersReducedMotion() {
|
|
4
|
-
if (hasReducedMotionListener.current = !0, isBrowser) if (window.matchMedia) {
|
|
5
|
-
let e = window.matchMedia("(prefers-reduced-motion)"), r = () => prefersReducedMotion.current = e.matches;
|
|
6
|
-
e.addEventListener("change", r), r();
|
|
7
|
-
} else prefersReducedMotion.current = !1;
|
|
8
|
-
}
|
|
9
|
-
export { initPrefersReducedMotion };
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
function getValueState(e) {
|
|
2
|
-
let t = [{}, {}];
|
|
3
|
-
return e?.values.forEach((e, n) => {
|
|
4
|
-
t[0][n] = e.get(), t[1][n] = e.getVelocity();
|
|
5
|
-
}), t;
|
|
6
|
-
}
|
|
7
|
-
function resolveVariantFromProps(t, n, r, i) {
|
|
8
|
-
if (typeof n == "function") {
|
|
9
|
-
let [a, o] = getValueState(i);
|
|
10
|
-
n = n(r === void 0 ? t.custom : r, a, o);
|
|
11
|
-
}
|
|
12
|
-
if (typeof n == "string" && (n = t.variants && t.variants[n]), typeof n == "function") {
|
|
13
|
-
let [a, o] = getValueState(i);
|
|
14
|
-
n = n(r === void 0 ? t.custom : r, a, o);
|
|
15
|
-
}
|
|
16
|
-
return n;
|
|
17
|
-
}
|
|
18
|
-
export { resolveVariantFromProps };
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { motionValue } from "../../value/index.js";
|
|
2
|
-
import { resolveVariant } from "./resolve-dynamic-variants.js";
|
|
3
|
-
import { isKeyframesTarget } from "./is-keyframes-target.js";
|
|
4
|
-
function setMotionValue(n, r, i) {
|
|
5
|
-
n.hasValue(r) ? n.getValue(r).set(i) : n.addValue(r, motionValue(i));
|
|
6
|
-
}
|
|
7
|
-
function resolveFinalValueInKeyframes(e) {
|
|
8
|
-
return isKeyframesTarget(e) ? e[e.length - 1] || 0 : e;
|
|
9
|
-
}
|
|
10
|
-
function setTarget(e, r) {
|
|
11
|
-
let { transitionEnd: a = {}, transition: o = {}, ...s } = resolveVariant(e, r) || {};
|
|
12
|
-
for (let n in s = {
|
|
13
|
-
...s,
|
|
14
|
-
...a
|
|
15
|
-
}, s) setMotionValue(e, n, resolveFinalValueInKeyframes(s[n]));
|
|
16
|
-
}
|
|
17
|
-
export { setTarget };
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { resolveElements } from "../utils/resolve-elements.js";
|
|
2
|
-
import { isSVGElement } from "../utils/is-svg-element.js";
|
|
3
|
-
var resizeHandlers = /* @__PURE__ */ new WeakMap(), observer, getSize = (e, s, c) => (l, u) => u && u[0] ? u[0][e + "Size"] : isSVGElement(l) && "getBBox" in l ? l.getBBox()[s] : l[c], getWidth = /* @__PURE__ */ getSize("inline", "width", "offsetWidth"), getHeight = /* @__PURE__ */ getSize("block", "height", "offsetHeight");
|
|
4
|
-
function notifyTarget({ target: e, borderBoxSize: o }) {
|
|
5
|
-
resizeHandlers.get(e)?.forEach((s) => {
|
|
6
|
-
s(e, {
|
|
7
|
-
get width() {
|
|
8
|
-
return getWidth(e, o);
|
|
9
|
-
},
|
|
10
|
-
get height() {
|
|
11
|
-
return getHeight(e, o);
|
|
12
|
-
}
|
|
13
|
-
});
|
|
14
|
-
});
|
|
15
|
-
}
|
|
16
|
-
function notifyAll(e) {
|
|
17
|
-
e.forEach(notifyTarget);
|
|
18
|
-
}
|
|
19
|
-
function createResizeObserver() {
|
|
20
|
-
typeof ResizeObserver > "u" || (observer = new ResizeObserver(notifyAll));
|
|
21
|
-
}
|
|
22
|
-
function resizeElement(o, l) {
|
|
23
|
-
observer || createResizeObserver();
|
|
24
|
-
let u = resolveElements(o);
|
|
25
|
-
return u.forEach((e) => {
|
|
26
|
-
let o = resizeHandlers.get(e);
|
|
27
|
-
o || (o = /* @__PURE__ */ new Set(), resizeHandlers.set(e, o)), o.add(l), observer?.observe(e);
|
|
28
|
-
}), () => {
|
|
29
|
-
u.forEach((e) => {
|
|
30
|
-
let o = resizeHandlers.get(e);
|
|
31
|
-
o?.delete(l), o?.size || observer?.unobserve(e);
|
|
32
|
-
});
|
|
33
|
-
};
|
|
34
|
-
}
|
|
35
|
-
export { resizeElement };
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
var windowCallbacks = /* @__PURE__ */ new Set(), windowResizeHandler;
|
|
2
|
-
function createWindowResizeHandler() {
|
|
3
|
-
windowResizeHandler = () => {
|
|
4
|
-
let n = {
|
|
5
|
-
get width() {
|
|
6
|
-
return window.innerWidth;
|
|
7
|
-
},
|
|
8
|
-
get height() {
|
|
9
|
-
return window.innerHeight;
|
|
10
|
-
}
|
|
11
|
-
};
|
|
12
|
-
windowCallbacks.forEach((e) => e(n));
|
|
13
|
-
}, window.addEventListener("resize", windowResizeHandler);
|
|
14
|
-
}
|
|
15
|
-
function resizeWindow(r) {
|
|
16
|
-
return windowCallbacks.add(r), windowResizeHandler || createWindowResizeHandler(), () => {
|
|
17
|
-
windowCallbacks.delete(r), !windowCallbacks.size && typeof windowResizeHandler == "function" && (window.removeEventListener("resize", windowResizeHandler), windowResizeHandler = void 0);
|
|
18
|
-
};
|
|
19
|
-
}
|
|
20
|
-
export { resizeWindow };
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { cancelFrame, frame } from "../frameloop/frame.js";
|
|
2
|
-
import { time } from "../frameloop/sync-time.js";
|
|
3
|
-
function delay(r, i) {
|
|
4
|
-
let a = time.now(), o = ({ timestamp: t }) => {
|
|
5
|
-
let n = t - a;
|
|
6
|
-
n >= i && (cancelFrame(o), r(n - i));
|
|
7
|
-
};
|
|
8
|
-
return frame.setup(o, !0), () => cancelFrame(o);
|
|
9
|
-
}
|
|
10
|
-
export { delay };
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { clamp } from "../../../../motion-utils/dist/es/clamp.js";
|
|
2
|
-
import { invariant } from "../../../../motion-utils/dist/es/errors.js";
|
|
3
|
-
import { MotionGlobalConfig } from "../../../../motion-utils/dist/es/global-config.js";
|
|
4
|
-
import { noop } from "../../../../motion-utils/dist/es/noop.js";
|
|
5
|
-
import { pipe } from "../../../../motion-utils/dist/es/pipe.js";
|
|
6
|
-
import { progress } from "../../../../motion-utils/dist/es/progress.js";
|
|
7
|
-
import { mix } from "./mix/index.js";
|
|
8
|
-
function createMixers(e, t, a) {
|
|
9
|
-
let s = [], c = a || MotionGlobalConfig.mix || mix, l = e.length - 1;
|
|
10
|
-
for (let n = 0; n < l; n++) {
|
|
11
|
-
let a = c(e[n], e[n + 1]);
|
|
12
|
-
t && (a = pipe(Array.isArray(t) ? t[n] || noop : t, a)), s.push(a);
|
|
13
|
-
}
|
|
14
|
-
return s;
|
|
15
|
-
}
|
|
16
|
-
function interpolate(n, r, { clamp: i = !0, ease: o, mixer: c } = {}) {
|
|
17
|
-
let l = n.length;
|
|
18
|
-
if (invariant(l === r.length, "Both input and output ranges must be the same length", "range-length"), l === 1) return () => r[0];
|
|
19
|
-
if (l === 2 && r[0] === r[1]) return () => r[1];
|
|
20
|
-
let u = n[0] === n[1];
|
|
21
|
-
n[0] > n[l - 1] && (n = [...n].reverse(), r = [...r].reverse());
|
|
22
|
-
let d = createMixers(r, o, c), f = d.length, p = (e) => {
|
|
23
|
-
if (u && e < n[0]) return r[0];
|
|
24
|
-
let t = 0;
|
|
25
|
-
if (f > 1) for (; t < n.length - 2 && !(e < n[t + 1]); t++);
|
|
26
|
-
let i = progress(n[t], n[t + 1], e);
|
|
27
|
-
return d[t](i);
|
|
28
|
-
};
|
|
29
|
-
return i ? (t) => p(clamp(n[0], n[l - 1], t)) : p;
|
|
30
|
-
}
|
|
31
|
-
export { interpolate };
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { warning } from "../../../../../motion-utils/dist/es/errors.js";
|
|
2
|
-
import { rgba } from "../../value/types/color/rgba.js";
|
|
3
|
-
import { hex } from "../../value/types/color/hex.js";
|
|
4
|
-
import { hsla } from "../../value/types/color/hsla.js";
|
|
5
|
-
import { hslaToRgba } from "../../value/types/color/hsla-to-rgba.js";
|
|
6
|
-
import { mixImmediate } from "./immediate.js";
|
|
7
|
-
import { mixNumber } from "./number.js";
|
|
8
|
-
var mixLinearColor = (e, o, s) => {
|
|
9
|
-
let c = e * e, l = s * (o * o - c) + c;
|
|
10
|
-
return l < 0 ? 0 : Math.sqrt(l);
|
|
11
|
-
}, colorTypes = [
|
|
12
|
-
hex,
|
|
13
|
-
rgba,
|
|
14
|
-
hsla
|
|
15
|
-
], getColorType = (e) => colorTypes.find((o) => o.test(e));
|
|
16
|
-
function asRGBA(o) {
|
|
17
|
-
let s = getColorType(o);
|
|
18
|
-
if (warning(!!s, `'${o}' is not an animatable color. Use the equivalent color code instead.`, "color-not-animatable"), !s) return !1;
|
|
19
|
-
let u = s.parse(o);
|
|
20
|
-
return s === hsla && (u = hslaToRgba(u)), u;
|
|
21
|
-
}
|
|
22
|
-
var mixColor = (e, s) => {
|
|
23
|
-
let c = asRGBA(e), l = asRGBA(s);
|
|
24
|
-
if (!c || !l) return mixImmediate(e, s);
|
|
25
|
-
let d = { ...c };
|
|
26
|
-
return (e) => (d.red = mixLinearColor(c.red, l.red, e), d.green = mixLinearColor(c.green, l.green, e), d.blue = mixLinearColor(c.blue, l.blue, e), d.alpha = mixNumber(c.alpha, l.alpha, e), rgba.transform(d));
|
|
27
|
-
};
|
|
28
|
-
export { mixColor, mixLinearColor };
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { warning } from "../../../../../motion-utils/dist/es/errors.js";
|
|
2
|
-
import { pipe } from "../../../../../motion-utils/dist/es/pipe.js";
|
|
3
|
-
import { isCSSVariableToken } from "../../animation/utils/is-css-variable.js";
|
|
4
|
-
import { color } from "../../value/types/color/index.js";
|
|
5
|
-
import { analyseComplexValue, complex } from "../../value/types/complex/index.js";
|
|
6
|
-
import { mixImmediate } from "./immediate.js";
|
|
7
|
-
import { mixNumber } from "./number.js";
|
|
8
|
-
import { mixColor } from "./color.js";
|
|
9
|
-
import { invisibleValues, mixVisibility } from "./visibility.js";
|
|
10
|
-
function mixNumber$1(e, c) {
|
|
11
|
-
return (l) => mixNumber(e, c, l);
|
|
12
|
-
}
|
|
13
|
-
function getMixer(e) {
|
|
14
|
-
return typeof e == "number" ? mixNumber$1 : typeof e == "string" ? isCSSVariableToken(e) ? mixImmediate : color.test(e) ? mixColor : mixComplex : Array.isArray(e) ? mixArray : typeof e == "object" ? color.test(e) ? mixColor : mixObject : mixImmediate;
|
|
15
|
-
}
|
|
16
|
-
function mixArray(e, c) {
|
|
17
|
-
let l = [...e], u = l.length, d = e.map((e, l) => getMixer(e)(e, c[l]));
|
|
18
|
-
return (e) => {
|
|
19
|
-
for (let c = 0; c < u; c++) l[c] = d[c](e);
|
|
20
|
-
return l;
|
|
21
|
-
};
|
|
22
|
-
}
|
|
23
|
-
function mixObject(e, c) {
|
|
24
|
-
let l = {
|
|
25
|
-
...e,
|
|
26
|
-
...c
|
|
27
|
-
}, u = {};
|
|
28
|
-
for (let d in l) e[d] !== void 0 && c[d] !== void 0 && (u[d] = getMixer(e[d])(e[d], c[d]));
|
|
29
|
-
return (e) => {
|
|
30
|
-
for (let c in u) l[c] = u[c](e);
|
|
31
|
-
return l;
|
|
32
|
-
};
|
|
33
|
-
}
|
|
34
|
-
function matchOrder(e, c) {
|
|
35
|
-
let l = [], u = {
|
|
36
|
-
color: 0,
|
|
37
|
-
var: 0,
|
|
38
|
-
number: 0
|
|
39
|
-
};
|
|
40
|
-
for (let d = 0; d < c.values.length; d++) {
|
|
41
|
-
let f = c.types[d], p = e.indexes[f][u[f]];
|
|
42
|
-
l[d] = e.values[p] ?? 0, u[f]++;
|
|
43
|
-
}
|
|
44
|
-
return l;
|
|
45
|
-
}
|
|
46
|
-
var mixComplex = (l, u) => {
|
|
47
|
-
let m = complex.createTransformer(u), h = analyseComplexValue(l), g = analyseComplexValue(u);
|
|
48
|
-
return h.indexes.var.length === g.indexes.var.length && h.indexes.color.length === g.indexes.color.length && h.indexes.number.length >= g.indexes.number.length ? invisibleValues.has(l) && !g.values.length || invisibleValues.has(u) && !h.values.length ? mixVisibility(l, u) : pipe(mixArray(matchOrder(h, g), g.values), m) : (warning(!0, `Complex values '${l}' and '${u}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`, "complex-values-different"), mixImmediate(l, u));
|
|
49
|
-
};
|
|
50
|
-
export { getMixer, mixArray, mixComplex, mixObject };
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
function resolveElements(e, t, n) {
|
|
2
|
-
if (e == null) return [];
|
|
3
|
-
if (e instanceof EventTarget) return [e];
|
|
4
|
-
if (typeof e == "string") {
|
|
5
|
-
let r = document;
|
|
6
|
-
t && (r = t.current);
|
|
7
|
-
let i = n?.[e] ?? r.querySelectorAll(e);
|
|
8
|
-
return i ? Array.from(i) : [];
|
|
9
|
-
}
|
|
10
|
-
return Array.from(e).filter((e) => e != null);
|
|
11
|
-
}
|
|
12
|
-
export { resolveElements };
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { memoSupports } from "./memo.js";
|
|
2
|
-
var supportsLinearEasing = /* @__PURE__ */ memoSupports(() => {
|
|
3
|
-
try {
|
|
4
|
-
document.createElement("div").animate({ opacity: 0 }, { easing: "linear(0, 1)" });
|
|
5
|
-
} catch {
|
|
6
|
-
return !1;
|
|
7
|
-
}
|
|
8
|
-
return !0;
|
|
9
|
-
}, "linearEasing");
|
|
10
|
-
export { supportsLinearEasing };
|