@code0-tech/pictor 1.1.0 → 1.1.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/_virtual/rolldown_runtime.js +3 -12
- 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 -17
- 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.js +300 -300
- 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 +44 -44
- 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/utils/contextStore.js +31 -32
- package/dist/utils/motion.js +39 -40
- package/package.json +4 -4
- 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,90 +0,0 @@
|
|
|
1
|
-
import { SubscriptionManager } from "../../../../motion-utils/dist/es/subscription-manager.js";
|
|
2
|
-
import { velocityPerSecond } from "../../../../motion-utils/dist/es/velocity-per-second.js";
|
|
3
|
-
import { warnOnce } from "../../../../motion-utils/dist/es/warn-once.js";
|
|
4
|
-
import { frame } from "../frameloop/frame.js";
|
|
5
|
-
import { time } from "../frameloop/sync-time.js";
|
|
6
|
-
var MAX_VELOCITY_DELTA = 30, isFloat = (e) => !isNaN(parseFloat(e)), collectMotionValues = { current: void 0 }, MotionValue = class {
|
|
7
|
-
constructor(e, s = {}) {
|
|
8
|
-
this.canTrackVelocity = null, this.events = {}, this.updateAndNotify = (e) => {
|
|
9
|
-
let s = time.now();
|
|
10
|
-
if (this.updatedAt !== s && this.setPrevFrameValue(), this.prev = this.current, this.setCurrent(e), this.current !== this.prev && (this.events.change?.notify(this.current), this.dependents)) for (let e of this.dependents) e.dirty();
|
|
11
|
-
}, this.hasAnimated = !1, this.setCurrent(e), this.owner = s.owner;
|
|
12
|
-
}
|
|
13
|
-
setCurrent(e) {
|
|
14
|
-
this.current = e, this.updatedAt = time.now(), this.canTrackVelocity === null && e !== void 0 && (this.canTrackVelocity = isFloat(this.current));
|
|
15
|
-
}
|
|
16
|
-
setPrevFrameValue(e = this.current) {
|
|
17
|
-
this.prevFrameValue = e, this.prevUpdatedAt = this.updatedAt;
|
|
18
|
-
}
|
|
19
|
-
onChange(e) {
|
|
20
|
-
return process.env.NODE_ENV !== "production" && warnOnce(!1, "value.onChange(callback) is deprecated. Switch to value.on(\"change\", callback)."), this.on("change", e);
|
|
21
|
-
}
|
|
22
|
-
on(s, c) {
|
|
23
|
-
this.events[s] || (this.events[s] = new SubscriptionManager());
|
|
24
|
-
let l = this.events[s].add(c);
|
|
25
|
-
return s === "change" ? () => {
|
|
26
|
-
l(), frame.read(() => {
|
|
27
|
-
this.events.change.getSize() || this.stop();
|
|
28
|
-
});
|
|
29
|
-
} : l;
|
|
30
|
-
}
|
|
31
|
-
clearListeners() {
|
|
32
|
-
for (let e in this.events) this.events[e].clear();
|
|
33
|
-
}
|
|
34
|
-
attach(e, s) {
|
|
35
|
-
this.passiveEffect = e, this.stopPassiveEffect = s;
|
|
36
|
-
}
|
|
37
|
-
set(e) {
|
|
38
|
-
this.passiveEffect ? this.passiveEffect(e, this.updateAndNotify) : this.updateAndNotify(e);
|
|
39
|
-
}
|
|
40
|
-
setWithVelocity(e, s, c) {
|
|
41
|
-
this.set(s), this.prev = void 0, this.prevFrameValue = e, this.prevUpdatedAt = this.updatedAt - c;
|
|
42
|
-
}
|
|
43
|
-
jump(e, s = !0) {
|
|
44
|
-
this.updateAndNotify(e), this.prev = e, this.prevUpdatedAt = this.prevFrameValue = void 0, s && this.stop(), this.stopPassiveEffect && this.stopPassiveEffect();
|
|
45
|
-
}
|
|
46
|
-
dirty() {
|
|
47
|
-
this.events.change?.notify(this.current);
|
|
48
|
-
}
|
|
49
|
-
addDependent(e) {
|
|
50
|
-
this.dependents ||= /* @__PURE__ */ new Set(), this.dependents.add(e);
|
|
51
|
-
}
|
|
52
|
-
removeDependent(e) {
|
|
53
|
-
this.dependents && this.dependents.delete(e);
|
|
54
|
-
}
|
|
55
|
-
get() {
|
|
56
|
-
return collectMotionValues.current && collectMotionValues.current.push(this), this.current;
|
|
57
|
-
}
|
|
58
|
-
getPrevious() {
|
|
59
|
-
return this.prev;
|
|
60
|
-
}
|
|
61
|
-
getVelocity() {
|
|
62
|
-
let e = time.now();
|
|
63
|
-
if (!this.canTrackVelocity || this.prevFrameValue === void 0 || e - this.updatedAt > MAX_VELOCITY_DELTA) return 0;
|
|
64
|
-
let c = Math.min(this.updatedAt - this.prevUpdatedAt, MAX_VELOCITY_DELTA);
|
|
65
|
-
return velocityPerSecond(parseFloat(this.current) - parseFloat(this.prevFrameValue), c);
|
|
66
|
-
}
|
|
67
|
-
start(e) {
|
|
68
|
-
return this.stop(), new Promise((s) => {
|
|
69
|
-
this.hasAnimated = !0, this.animation = e(s), this.events.animationStart && this.events.animationStart.notify();
|
|
70
|
-
}).then(() => {
|
|
71
|
-
this.events.animationComplete && this.events.animationComplete.notify(), this.clearAnimation();
|
|
72
|
-
});
|
|
73
|
-
}
|
|
74
|
-
stop() {
|
|
75
|
-
this.animation && (this.animation.stop(), this.events.animationCancel && this.events.animationCancel.notify()), this.clearAnimation();
|
|
76
|
-
}
|
|
77
|
-
isAnimating() {
|
|
78
|
-
return !!this.animation;
|
|
79
|
-
}
|
|
80
|
-
clearAnimation() {
|
|
81
|
-
delete this.animation;
|
|
82
|
-
}
|
|
83
|
-
destroy() {
|
|
84
|
-
this.dependents?.clear(), this.events.destroy?.notify(), this.clearListeners(), this.stop(), this.stopPassiveEffect && this.stopPassiveEffect();
|
|
85
|
-
}
|
|
86
|
-
};
|
|
87
|
-
function motionValue(e, s) {
|
|
88
|
-
return new MotionValue(e, s);
|
|
89
|
-
}
|
|
90
|
-
export { MotionValue, collectMotionValues, motionValue };
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { isColorString } from "./utils.js";
|
|
2
|
-
import { rgba } from "./rgba.js";
|
|
3
|
-
function parseHex(e) {
|
|
4
|
-
let t = "", n = "", r = "", i = "";
|
|
5
|
-
return e.length > 5 ? (t = e.substring(1, 3), n = e.substring(3, 5), r = e.substring(5, 7), i = e.substring(7, 9)) : (t = e.substring(1, 2), n = e.substring(2, 3), r = e.substring(3, 4), i = e.substring(4, 5), t += t, n += n, r += r, i += i), {
|
|
6
|
-
red: parseInt(t, 16),
|
|
7
|
-
green: parseInt(n, 16),
|
|
8
|
-
blue: parseInt(r, 16),
|
|
9
|
-
alpha: i ? parseInt(i, 16) / 255 : 1
|
|
10
|
-
};
|
|
11
|
-
}
|
|
12
|
-
var hex = {
|
|
13
|
-
test: /* @__PURE__ */ isColorString("#"),
|
|
14
|
-
parse: parseHex,
|
|
15
|
-
transform: rgba.transform
|
|
16
|
-
};
|
|
17
|
-
export { hex };
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
function hueToRgb(e, t, n) {
|
|
2
|
-
return n < 0 && (n += 1), n > 1 && --n, n < 1 / 6 ? e + (t - e) * 6 * n : n < 1 / 2 ? t : n < 2 / 3 ? e + (t - e) * (2 / 3 - n) * 6 : e;
|
|
3
|
-
}
|
|
4
|
-
function hslaToRgba({ hue: t, saturation: n, lightness: r, alpha: i }) {
|
|
5
|
-
t /= 360, n /= 100, r /= 100;
|
|
6
|
-
let a = 0, o = 0, s = 0;
|
|
7
|
-
if (!n) a = o = s = r;
|
|
8
|
-
else {
|
|
9
|
-
let i = r < .5 ? r * (1 + n) : r + n - r * n, c = 2 * r - i;
|
|
10
|
-
a = hueToRgb(c, i, t + 1 / 3), o = hueToRgb(c, i, t), s = hueToRgb(c, i, t - 1 / 3);
|
|
11
|
-
}
|
|
12
|
-
return {
|
|
13
|
-
red: Math.round(a * 255),
|
|
14
|
-
green: Math.round(o * 255),
|
|
15
|
-
blue: Math.round(s * 255),
|
|
16
|
-
alpha: i
|
|
17
|
-
};
|
|
18
|
-
}
|
|
19
|
-
export { hslaToRgba };
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { alpha } from "../numbers/index.js";
|
|
2
|
-
import { sanitize } from "../utils/sanitize.js";
|
|
3
|
-
import { isColorString, splitColor } from "./utils.js";
|
|
4
|
-
import { percent } from "../numbers/units.js";
|
|
5
|
-
var hsla = {
|
|
6
|
-
test: /* @__PURE__ */ isColorString("hsl", "hue"),
|
|
7
|
-
parse: /* @__PURE__ */ splitColor("hue", "saturation", "lightness"),
|
|
8
|
-
transform: ({ hue: r, saturation: i, lightness: a, alpha: o = 1 }) => "hsla(" + Math.round(r) + ", " + percent.transform(sanitize(i)) + ", " + percent.transform(sanitize(a)) + ", " + sanitize(alpha.transform(o)) + ")"
|
|
9
|
-
};
|
|
10
|
-
export { hsla };
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { rgba } from "./rgba.js";
|
|
2
|
-
import { hex } from "./hex.js";
|
|
3
|
-
import { hsla } from "./hsla.js";
|
|
4
|
-
var color = {
|
|
5
|
-
test: (r) => rgba.test(r) || hex.test(r) || hsla.test(r),
|
|
6
|
-
parse: (r) => rgba.test(r) ? rgba.parse(r) : hsla.test(r) ? hsla.parse(r) : hex.parse(r),
|
|
7
|
-
transform: (n) => typeof n == "string" ? n : n.hasOwnProperty("red") ? rgba.transform(n) : hsla.transform(n),
|
|
8
|
-
getAnimatableNone: (e) => {
|
|
9
|
-
let n = color.parse(e);
|
|
10
|
-
return n.alpha = 0, color.transform(n);
|
|
11
|
-
}
|
|
12
|
-
};
|
|
13
|
-
export { color };
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { clamp } from "../../../../../../motion-utils/dist/es/clamp.js";
|
|
2
|
-
import { alpha, number } from "../numbers/index.js";
|
|
3
|
-
import { sanitize } from "../utils/sanitize.js";
|
|
4
|
-
import { isColorString, splitColor } from "./utils.js";
|
|
5
|
-
var clampRgbUnit = (a) => clamp(0, 255, a), rgbUnit = {
|
|
6
|
-
...number,
|
|
7
|
-
transform: (e) => Math.round(clampRgbUnit(e))
|
|
8
|
-
}, rgba = {
|
|
9
|
-
test: /* @__PURE__ */ isColorString("rgb", "red"),
|
|
10
|
-
parse: /* @__PURE__ */ splitColor("red", "green", "blue"),
|
|
11
|
-
transform: ({ red: e, green: o, blue: s, alpha: c = 1 }) => "rgba(" + rgbUnit.transform(e) + ", " + rgbUnit.transform(o) + ", " + rgbUnit.transform(s) + ", " + sanitize(alpha.transform(c)) + ")"
|
|
12
|
-
};
|
|
13
|
-
export { rgbUnit, rgba };
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { floatRegex } from "../utils/float-regex.js";
|
|
2
|
-
import { isNullish } from "../utils/is-nullish.js";
|
|
3
|
-
import { singleColorRegex } from "../utils/single-color-regex.js";
|
|
4
|
-
var isColorString = (e, r) => (i) => !!(typeof i == "string" && singleColorRegex.test(i) && i.startsWith(e) || r && !isNullish(i) && Object.prototype.hasOwnProperty.call(i, r)), splitColor = (t, n, r) => (i) => {
|
|
5
|
-
if (typeof i != "string") return i;
|
|
6
|
-
let [a, o, s, c] = i.match(floatRegex);
|
|
7
|
-
return {
|
|
8
|
-
[t]: parseFloat(a),
|
|
9
|
-
[n]: parseFloat(o),
|
|
10
|
-
[r]: parseFloat(s),
|
|
11
|
-
alpha: c === void 0 ? 1 : parseFloat(c)
|
|
12
|
-
};
|
|
13
|
-
};
|
|
14
|
-
export { isColorString, splitColor };
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { floatRegex } from "../utils/float-regex.js";
|
|
2
|
-
import { complex } from "./index.js";
|
|
3
|
-
var maxDefaults = new Set([
|
|
4
|
-
"brightness",
|
|
5
|
-
"contrast",
|
|
6
|
-
"saturate",
|
|
7
|
-
"opacity"
|
|
8
|
-
]);
|
|
9
|
-
function applyDefaultFilter(n) {
|
|
10
|
-
let [r, i] = n.slice(0, -1).split("(");
|
|
11
|
-
if (r === "drop-shadow") return n;
|
|
12
|
-
let [a] = i.match(floatRegex) || [];
|
|
13
|
-
if (!a) return n;
|
|
14
|
-
let o = i.replace(a, ""), s = maxDefaults.has(r) ? 1 : 0;
|
|
15
|
-
return a !== i && (s *= 100), r + "(" + s + o + ")";
|
|
16
|
-
}
|
|
17
|
-
var functionRegex = /\b([a-z-]*)\(.*?\)/gu, filter = {
|
|
18
|
-
...complex,
|
|
19
|
-
getAnimatableNone: (e) => {
|
|
20
|
-
let n = e.match(functionRegex);
|
|
21
|
-
return n ? n.map(applyDefaultFilter).join(" ") : e;
|
|
22
|
-
}
|
|
23
|
-
};
|
|
24
|
-
export { filter };
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { sanitize } from "../utils/sanitize.js";
|
|
2
|
-
import { floatRegex } from "../utils/float-regex.js";
|
|
3
|
-
import { color } from "../color/index.js";
|
|
4
|
-
import { colorRegex } from "../utils/color-regex.js";
|
|
5
|
-
function test(e) {
|
|
6
|
-
return isNaN(e) && typeof e == "string" && (e.match(floatRegex)?.length || 0) + (e.match(colorRegex)?.length || 0) > 0;
|
|
7
|
-
}
|
|
8
|
-
var NUMBER_TOKEN = "number", COLOR_TOKEN = "color", VAR_TOKEN = "var", VAR_FUNCTION_TOKEN = "var(", SPLIT_TOKEN = "${}", complexRegex = /var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;
|
|
9
|
-
function analyseComplexValue(e) {
|
|
10
|
-
let u = e.toString(), f = [], p = {
|
|
11
|
-
color: [],
|
|
12
|
-
number: [],
|
|
13
|
-
var: []
|
|
14
|
-
}, _ = [], v = 0;
|
|
15
|
-
return {
|
|
16
|
-
values: f,
|
|
17
|
-
split: u.replace(complexRegex, (e) => (color.test(e) ? (p.color.push(v), _.push(COLOR_TOKEN), f.push(color.parse(e))) : e.startsWith(VAR_FUNCTION_TOKEN) ? (p.var.push(v), _.push(VAR_TOKEN), f.push(e)) : (p.number.push(v), _.push(NUMBER_TOKEN), f.push(parseFloat(e))), ++v, SPLIT_TOKEN)).split(SPLIT_TOKEN),
|
|
18
|
-
indexes: p,
|
|
19
|
-
types: _
|
|
20
|
-
};
|
|
21
|
-
}
|
|
22
|
-
function parseComplexValue(e) {
|
|
23
|
-
return analyseComplexValue(e).values;
|
|
24
|
-
}
|
|
25
|
-
function buildTransformer({ split: u, types: f }) {
|
|
26
|
-
let p = u.length;
|
|
27
|
-
return (m) => {
|
|
28
|
-
let h = "";
|
|
29
|
-
for (let g = 0; g < p; g++) if (h += u[g], m[g] !== void 0) {
|
|
30
|
-
let u = f[g];
|
|
31
|
-
u === NUMBER_TOKEN ? h += sanitize(m[g]) : u === COLOR_TOKEN ? h += color.transform(m[g]) : h += m[g];
|
|
32
|
-
}
|
|
33
|
-
return h;
|
|
34
|
-
};
|
|
35
|
-
}
|
|
36
|
-
function createTransformer(e) {
|
|
37
|
-
return buildTransformer(analyseComplexValue(e));
|
|
38
|
-
}
|
|
39
|
-
var convertNumbersToZero = (e) => typeof e == "number" ? 0 : color.test(e) ? color.getAnimatableNone(e) : e, convertToZero = (e, u) => typeof e == "number" ? u?.trim().endsWith("/") ? e : 0 : convertNumbersToZero(e);
|
|
40
|
-
function getAnimatableNone(e) {
|
|
41
|
-
let u = analyseComplexValue(e);
|
|
42
|
-
return buildTransformer(u)(u.values.map((e, d) => convertToZero(e, u.split[d])));
|
|
43
|
-
}
|
|
44
|
-
var complex = {
|
|
45
|
-
test,
|
|
46
|
-
parse: parseComplexValue,
|
|
47
|
-
createTransformer,
|
|
48
|
-
getAnimatableNone
|
|
49
|
-
};
|
|
50
|
-
export { analyseComplexValue, complex };
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { complex } from "./index.js";
|
|
2
|
-
var mask = {
|
|
3
|
-
...complex,
|
|
4
|
-
getAnimatableNone: (t) => {
|
|
5
|
-
let n = complex.parse(t);
|
|
6
|
-
return complex.createTransformer(t)(n.map((e) => typeof e == "number" ? 0 : typeof e == "object" ? {
|
|
7
|
-
...e,
|
|
8
|
-
alpha: 1
|
|
9
|
-
} : e));
|
|
10
|
-
}
|
|
11
|
-
};
|
|
12
|
-
export { mask };
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { number } from "./numbers/index.js";
|
|
2
|
-
import { degrees, percent, px, vh, vw } from "./numbers/units.js";
|
|
3
|
-
import { auto } from "./auto.js";
|
|
4
|
-
import { testValueType } from "./test.js";
|
|
5
|
-
var dimensionValueTypes = [
|
|
6
|
-
number,
|
|
7
|
-
px,
|
|
8
|
-
percent,
|
|
9
|
-
degrees,
|
|
10
|
-
vw,
|
|
11
|
-
vh,
|
|
12
|
-
auto
|
|
13
|
-
], findDimensionValueType = (e) => dimensionValueTypes.find(testValueType(e));
|
|
14
|
-
export { dimensionValueTypes, findDimensionValueType };
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { color } from "../color/index.js";
|
|
2
|
-
import { filter } from "../complex/filter.js";
|
|
3
|
-
import { mask } from "../complex/mask.js";
|
|
4
|
-
import { numberValueTypes } from "./number.js";
|
|
5
|
-
var defaultValueTypes = {
|
|
6
|
-
...numberValueTypes,
|
|
7
|
-
color,
|
|
8
|
-
backgroundColor: color,
|
|
9
|
-
outlineColor: color,
|
|
10
|
-
fill: color,
|
|
11
|
-
stroke: color,
|
|
12
|
-
borderColor: color,
|
|
13
|
-
borderTopColor: color,
|
|
14
|
-
borderRightColor: color,
|
|
15
|
-
borderBottomColor: color,
|
|
16
|
-
borderLeftColor: color,
|
|
17
|
-
filter,
|
|
18
|
-
WebkitFilter: filter,
|
|
19
|
-
mask,
|
|
20
|
-
WebkitMask: mask
|
|
21
|
-
}, getDefaultValueType = (e) => defaultValueTypes[e];
|
|
22
|
-
export { defaultValueTypes, getDefaultValueType };
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import { alpha } from "../numbers/index.js";
|
|
2
|
-
import { px } from "../numbers/units.js";
|
|
3
|
-
import { int } from "../int.js";
|
|
4
|
-
import { transformValueTypes } from "./transform.js";
|
|
5
|
-
var numberValueTypes = {
|
|
6
|
-
borderWidth: px,
|
|
7
|
-
borderTopWidth: px,
|
|
8
|
-
borderRightWidth: px,
|
|
9
|
-
borderBottomWidth: px,
|
|
10
|
-
borderLeftWidth: px,
|
|
11
|
-
borderRadius: px,
|
|
12
|
-
borderTopLeftRadius: px,
|
|
13
|
-
borderTopRightRadius: px,
|
|
14
|
-
borderBottomRightRadius: px,
|
|
15
|
-
borderBottomLeftRadius: px,
|
|
16
|
-
width: px,
|
|
17
|
-
maxWidth: px,
|
|
18
|
-
height: px,
|
|
19
|
-
maxHeight: px,
|
|
20
|
-
top: px,
|
|
21
|
-
right: px,
|
|
22
|
-
bottom: px,
|
|
23
|
-
left: px,
|
|
24
|
-
inset: px,
|
|
25
|
-
insetBlock: px,
|
|
26
|
-
insetBlockStart: px,
|
|
27
|
-
insetBlockEnd: px,
|
|
28
|
-
insetInline: px,
|
|
29
|
-
insetInlineStart: px,
|
|
30
|
-
insetInlineEnd: px,
|
|
31
|
-
padding: px,
|
|
32
|
-
paddingTop: px,
|
|
33
|
-
paddingRight: px,
|
|
34
|
-
paddingBottom: px,
|
|
35
|
-
paddingLeft: px,
|
|
36
|
-
paddingBlock: px,
|
|
37
|
-
paddingBlockStart: px,
|
|
38
|
-
paddingBlockEnd: px,
|
|
39
|
-
paddingInline: px,
|
|
40
|
-
paddingInlineStart: px,
|
|
41
|
-
paddingInlineEnd: px,
|
|
42
|
-
margin: px,
|
|
43
|
-
marginTop: px,
|
|
44
|
-
marginRight: px,
|
|
45
|
-
marginBottom: px,
|
|
46
|
-
marginLeft: px,
|
|
47
|
-
marginBlock: px,
|
|
48
|
-
marginBlockStart: px,
|
|
49
|
-
marginBlockEnd: px,
|
|
50
|
-
marginInline: px,
|
|
51
|
-
marginInlineStart: px,
|
|
52
|
-
marginInlineEnd: px,
|
|
53
|
-
fontSize: px,
|
|
54
|
-
backgroundPositionX: px,
|
|
55
|
-
backgroundPositionY: px,
|
|
56
|
-
...transformValueTypes,
|
|
57
|
-
zIndex: int,
|
|
58
|
-
fillOpacity: alpha,
|
|
59
|
-
strokeOpacity: alpha,
|
|
60
|
-
numOctaves: int
|
|
61
|
-
};
|
|
62
|
-
export { numberValueTypes };
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { alpha, scale } from "../numbers/index.js";
|
|
2
|
-
import { degrees, progressPercentage, px } from "../numbers/units.js";
|
|
3
|
-
var transformValueTypes = {
|
|
4
|
-
rotate: degrees,
|
|
5
|
-
pathRotation: degrees,
|
|
6
|
-
rotateX: degrees,
|
|
7
|
-
rotateY: degrees,
|
|
8
|
-
rotateZ: degrees,
|
|
9
|
-
scale,
|
|
10
|
-
scaleX: scale,
|
|
11
|
-
scaleY: scale,
|
|
12
|
-
scaleZ: scale,
|
|
13
|
-
skew: degrees,
|
|
14
|
-
skewX: degrees,
|
|
15
|
-
skewY: degrees,
|
|
16
|
-
distance: px,
|
|
17
|
-
translateX: px,
|
|
18
|
-
translateY: px,
|
|
19
|
-
translateZ: px,
|
|
20
|
-
x: px,
|
|
21
|
-
y: px,
|
|
22
|
-
z: px,
|
|
23
|
-
perspective: px,
|
|
24
|
-
transformPerspective: px,
|
|
25
|
-
opacity: alpha,
|
|
26
|
-
originX: progressPercentage,
|
|
27
|
-
originY: progressPercentage,
|
|
28
|
-
originZ: px
|
|
29
|
-
};
|
|
30
|
-
export { transformValueTypes };
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { clamp } from "../../../../../../motion-utils/dist/es/clamp.js";
|
|
2
|
-
var number = {
|
|
3
|
-
test: (e) => typeof e == "number",
|
|
4
|
-
parse: parseFloat,
|
|
5
|
-
transform: (e) => e
|
|
6
|
-
}, alpha = {
|
|
7
|
-
...number,
|
|
8
|
-
transform: (r) => clamp(0, 1, r)
|
|
9
|
-
}, scale = {
|
|
10
|
-
...number,
|
|
11
|
-
default: 1
|
|
12
|
-
};
|
|
13
|
-
export { alpha, number, scale };
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
var createUnitType = /* @__NO_SIDE_EFFECTS__ */ (e) => ({
|
|
2
|
-
test: (o) => typeof o == "string" && o.endsWith(e) && o.split(" ").length === 1,
|
|
3
|
-
parse: parseFloat,
|
|
4
|
-
transform: (o) => `${o}${e}`
|
|
5
|
-
}), degrees = /* @__PURE__ */ createUnitType("deg"), percent = /* @__PURE__ */ createUnitType("%"), px = /* @__PURE__ */ createUnitType("px"), vh = /* @__PURE__ */ createUnitType("vh"), vw = /* @__PURE__ */ createUnitType("vw"), progressPercentage = /* @__PURE__ */ (() => ({
|
|
6
|
-
...percent,
|
|
7
|
-
parse: (e) => percent.parse(e) / 100,
|
|
8
|
-
transform: (e) => percent.transform(e * 100)
|
|
9
|
-
}))();
|
|
10
|
-
export { degrees, percent, progressPercentage, px, vh, vw };
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { complex } from "../complex/index.js";
|
|
2
|
-
import { filter } from "../complex/filter.js";
|
|
3
|
-
import { mask } from "../complex/mask.js";
|
|
4
|
-
import { getDefaultValueType } from "../maps/defaults.js";
|
|
5
|
-
var customTypes = /* @__PURE__ */ new Set([filter, mask]);
|
|
6
|
-
function getAnimatableNone(r, i) {
|
|
7
|
-
let a = getDefaultValueType(r);
|
|
8
|
-
return customTypes.has(a) || (a = complex), a.getAnimatableNone ? a.getAnimatableNone(i) : void 0;
|
|
9
|
-
}
|
|
10
|
-
export { getAnimatableNone };
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { color } from "../color/index.js";
|
|
2
|
-
import { complex } from "../complex/index.js";
|
|
3
|
-
import { testValueType } from "../test.js";
|
|
4
|
-
import { dimensionValueTypes } from "../dimensions.js";
|
|
5
|
-
var valueTypes = [
|
|
6
|
-
...dimensionValueTypes,
|
|
7
|
-
color,
|
|
8
|
-
complex
|
|
9
|
-
], findValueType = (e) => valueTypes.find(testValueType(e));
|
|
10
|
-
export { findValueType };
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { MotionGlobalConfig } from "../../../../../motion-utils/dist/es/global-config.js";
|
|
2
|
-
import { isWillChangeMotionValue } from "./is.js";
|
|
3
|
-
function addValueToWillChange(n, r) {
|
|
4
|
-
let i = n.getValue("willChange");
|
|
5
|
-
if (isWillChangeMotionValue(i)) return i.add(r);
|
|
6
|
-
if (!i && MotionGlobalConfig.WillChange) {
|
|
7
|
-
let t = new MotionGlobalConfig.WillChange("auto");
|
|
8
|
-
n.addValue("willChange", t), t.add(r);
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
export { addValueToWillChange };
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { cubicBezier } from "./cubic-bezier.js";
|
|
2
|
-
import { mirrorEasing } from "./modifiers/mirror.js";
|
|
3
|
-
import { reverseEasing } from "./modifiers/reverse.js";
|
|
4
|
-
var backOut = /* @__PURE__ */ cubicBezier(.33, 1.53, .69, .99), backIn = /* @__PURE__ */ reverseEasing(backOut), backInOut = /* @__PURE__ */ mirrorEasing(backIn);
|
|
5
|
-
export { backIn, backInOut, backOut };
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { noop } from "../noop.js";
|
|
2
|
-
var calcBezier = (e, t, n) => (((1 - 3 * n + 3 * t) * e + (3 * n - 6 * t)) * e + 3 * t) * e, subdivisionPrecision = 1e-7, subdivisionMaxIterations = 12;
|
|
3
|
-
function binarySubdivide(e, i, a, o, s) {
|
|
4
|
-
let c, l, u = 0;
|
|
5
|
-
do
|
|
6
|
-
l = i + (a - i) / 2, c = calcBezier(l, o, s) - e, c > 0 ? a = l : i = l;
|
|
7
|
-
while (Math.abs(c) > subdivisionPrecision && ++u < subdivisionMaxIterations);
|
|
8
|
-
return l;
|
|
9
|
-
}
|
|
10
|
-
/* @__NO_SIDE_EFFECTS__ */
|
|
11
|
-
function cubicBezier(n, r, a, o) {
|
|
12
|
-
if (n === r && a === o) return noop;
|
|
13
|
-
let s = (e) => binarySubdivide(e, 0, 1, n, a);
|
|
14
|
-
return (e) => e === 0 || e === 1 ? e : calcBezier(s(e), r, o);
|
|
15
|
-
}
|
|
16
|
-
export { cubicBezier };
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { invariant } from "../../errors.js";
|
|
2
|
-
import { noop } from "../../noop.js";
|
|
3
|
-
import { cubicBezier } from "../cubic-bezier.js";
|
|
4
|
-
import { backIn, backInOut, backOut } from "../back.js";
|
|
5
|
-
import { anticipate } from "../anticipate.js";
|
|
6
|
-
import { circIn, circInOut, circOut } from "../circ.js";
|
|
7
|
-
import { easeIn, easeInOut, easeOut } from "../ease.js";
|
|
8
|
-
import { isBezierDefinition } from "./is-bezier-definition.js";
|
|
9
|
-
var easingLookup = {
|
|
10
|
-
linear: noop,
|
|
11
|
-
easeIn,
|
|
12
|
-
easeInOut,
|
|
13
|
-
easeOut,
|
|
14
|
-
circIn,
|
|
15
|
-
circInOut,
|
|
16
|
-
circOut,
|
|
17
|
-
backIn,
|
|
18
|
-
backInOut,
|
|
19
|
-
backOut,
|
|
20
|
-
anticipate
|
|
21
|
-
}, isValidEasing = (e) => typeof e == "string", easingDefinitionToFunction = (f) => {
|
|
22
|
-
if (isBezierDefinition(f)) {
|
|
23
|
-
invariant(f.length === 4, "Cubic bezier arrays must contain four numerical values.", "cubic-bezier-length");
|
|
24
|
-
let [p, m, h, g] = f;
|
|
25
|
-
return cubicBezier(p, m, h, g);
|
|
26
|
-
} else if (isValidEasing(f)) return invariant(easingLookup[f] !== void 0, `Invalid easing type '${f}'`, "invalid-easing-type"), easingLookup[f];
|
|
27
|
-
return f;
|
|
28
|
-
};
|
|
29
|
-
export { easingDefinitionToFunction };
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { formatErrorMessage } from "./format-error-message.js";
|
|
2
|
-
var warning = () => {}, invariant = () => {};
|
|
3
|
-
typeof process < "u" && process.env.NODE_ENV !== "production" && (warning = (t, n, r) => {
|
|
4
|
-
!t && typeof console < "u" && console.warn(formatErrorMessage(n, r));
|
|
5
|
-
}, invariant = (t, n, r) => {
|
|
6
|
-
if (!t) throw Error(formatErrorMessage(n, r));
|
|
7
|
-
});
|
|
8
|
-
export { invariant, warning };
|