@code0-tech/pictor 1.0.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 +9 -0
- package/dist/assets/Alert.style.css +1 -0
- package/dist/assets/Aurora.style.css +1 -0
- package/dist/assets/Avatar.style.css +1 -0
- package/dist/assets/Badge.style.css +1 -0
- package/dist/assets/Breadcrumb.style.css +1 -0
- package/dist/assets/Button.style.css +1 -0
- package/dist/assets/ButtonGroup.style.css +1 -0
- package/dist/assets/Card.style.css +1 -0
- package/dist/assets/Chart.style.css +1 -0
- package/dist/assets/Col.style.css +1 -0
- package/dist/assets/ColorInput.style.css +1 -0
- package/dist/assets/Command.style.css +1 -0
- package/dist/assets/Container.style.css +1 -0
- package/dist/assets/ContextMenu.style.css +1 -0
- package/dist/assets/DataTable.style.css +1 -0
- package/dist/assets/DateInput.style.css +1 -0
- package/dist/assets/Dialog.style.css +1 -0
- package/dist/assets/Editor.styles.css +1 -0
- package/dist/assets/EditorInput.style.css +1 -0
- package/dist/assets/FileInput.style.css +1 -0
- package/dist/assets/FileTabs.style.css +1 -0
- package/dist/assets/FullScreen.style.css +1 -0
- package/dist/assets/Gantt.style.css +1 -0
- package/dist/assets/Icon.style.css +1 -0
- package/dist/assets/Input.style.css +1 -0
- package/dist/assets/InputWrapper.style.css +1 -0
- package/dist/assets/JsonView.style.css +1 -0
- package/dist/assets/Layout.style.css +1 -0
- package/dist/assets/Menu.style.css +1 -0
- package/dist/assets/Progress.style.css +1 -0
- package/dist/assets/Quote.style.css +1 -0
- package/dist/assets/Resizable.style.css +1 -0
- package/dist/assets/Row.style.css +1 -0
- package/dist/assets/ScrollArea.style.css +1 -0
- package/dist/assets/SegmentedControl.style.css +1 -0
- package/dist/assets/SelectInput.style.css +1 -0
- package/dist/assets/Tab.style.css +1 -0
- package/dist/assets/Text.style.css +1 -0
- package/dist/assets/Toast.style.css +1 -0
- package/dist/assets/Tooltip.style.css +1 -0
- package/dist/components/alert/Alert.js +33 -41
- package/dist/components/aurora/Aurora.js +26 -22
- package/dist/components/avatar/Avatar.js +57 -55
- package/dist/components/badge/Badge.js +57 -64
- package/dist/components/breadcrumb/Breadcrumb.js +16 -21
- package/dist/components/button/Button.js +23 -31
- package/dist/components/button-group/ButtonGroup.js +28 -31
- package/dist/components/card/Card.js +28 -43
- package/dist/components/card/CardSection.js +21 -29
- package/dist/components/chart/Chart.js +138 -153
- package/dist/components/chart/LineChart.js +74 -74
- package/dist/components/chart/index.js +3 -8
- package/dist/components/col/Col.js +18 -29
- package/dist/components/command/Command.js +100 -134
- package/dist/components/container/Container.js +18 -23
- package/dist/components/context-menu/ContextMenu.js +118 -112
- package/dist/components/data-table/DataTable.js +53 -64
- package/dist/components/data-table/DataTableColumn.js +17 -22
- package/dist/components/data-table/DataTableFilterInput.js +208 -205
- package/dist/components/data-table/DataTableFilterSuggestionMenu.js +58 -48
- package/dist/components/data-table/DataTableHeader.js +33 -38
- package/dist/components/data-table/DataTablePagination.js +61 -74
- package/dist/components/data-table/index.js +7 -22
- package/dist/components/dialog/Dialog.js +106 -97
- package/dist/components/editor/Editor.js +352 -323
- package/dist/components/file-tabs/FileTabs.js +77 -73
- package/dist/components/file-tabs/FileTabs.service.js +85 -87
- package/dist/components/file-tabs/FileTabs.view.js +0 -1
- package/dist/components/file-tabs/index.js +3 -9
- package/dist/components/flex/Flex.js +18 -23
- package/dist/components/form/CheckboxInput.js +72 -76
- package/dist/components/form/ColorInput.js +378 -353
- package/dist/components/form/DateInput.js +315 -265
- package/dist/components/form/EditorInput.js +597 -579
- package/dist/components/form/EmailInput.js +30 -23
- package/dist/components/form/FileInput.js +92 -123
- package/dist/components/form/Input.js +64 -58
- package/dist/components/form/Input.utils.js +25 -37
- package/dist/components/form/InputDescription.js +10 -11
- package/dist/components/form/InputLabel.js +17 -22
- package/dist/components/form/InputMessage.js +16 -17
- package/dist/components/form/InputWrapper.js +55 -65
- package/dist/components/form/NumberInput.js +41 -20
- package/dist/components/form/PasswordInput.js +71 -54
- package/dist/components/form/PinInput.js +49 -65
- package/dist/components/form/RadioGroup.js +41 -50
- package/dist/components/form/RadioInput.js +30 -29
- package/dist/components/form/SelectInput.js +68 -92
- package/dist/components/form/SwitchInput.js +17 -18
- package/dist/components/form/TagInput.js +108 -122
- package/dist/components/form/TextAreaInput.js +24 -21
- package/dist/components/form/TextInput.js +30 -22
- package/dist/components/form/index.js +22 -87
- package/dist/components/form/useForm.js +87 -88
- package/dist/components/fullscreen/FullScreen.js +27 -27
- package/dist/components/gantt/Gantt.js +99 -98
- package/dist/components/gantt/GanttGroup.js +210 -195
- package/dist/components/gantt/GanttHeader.js +78 -81
- package/dist/components/gantt/GanttItem.js +18 -22
- package/dist/components/icon/Icon.d.ts +6 -4
- package/dist/components/icon/Icon.js +53 -42
- package/dist/components/icon/codezero/codezero.js +10 -0
- package/dist/components/icon/codezero/gls.js +9 -0
- package/dist/components/icon/codezero/index.js +17 -13
- package/dist/components/json-view/JsonView.js +119 -109
- package/dist/components/layout/Layout.js +100 -78
- package/dist/components/menu/Menu.js +134 -128
- package/dist/components/progress/ProgressCircle.js +60 -49
- package/dist/components/progress/ProgressLinear.js +39 -43
- package/dist/components/quote/Quote.js +51 -43
- package/dist/components/resizable/Resizable.js +35 -33
- package/dist/components/row/Row.js +18 -23
- package/dist/components/scroll-area/ScrollArea.js +65 -76
- package/dist/components/segmented-control/SegmentedControl.js +46 -50
- package/dist/components/spacing/Spacing.js +15 -23
- package/dist/components/tab/Tab.js +73 -66
- package/dist/components/text/Text.js +18 -25
- package/dist/components/toast/Toast.js +104 -82
- package/dist/components/tooltip/Tooltip.js +65 -55
- package/dist/index.js +76 -272
- package/dist/node_modules/@lezer/common/dist/index.js +778 -143
- package/dist/node_modules/@lezer/highlight/dist/index.js +305 -536
- package/dist/node_modules/prettier/plugins/babel.js +9582 -7023
- package/dist/node_modules/prettier/plugins/estree.js +6997 -4377
- package/dist/node_modules/prettier/standalone.js +3444 -2415
- package/dist/utils/arrayService.js +0 -1
- package/dist/utils/color.js +46 -41
- package/dist/utils/component.js +60 -129
- package/dist/utils/contextStore.js +47 -58
- package/dist/utils/index.js +7 -29
- package/dist/utils/motion.js +84 -113
- package/dist/utils/reactiveArrayService.js +80 -76
- package/dist/utils/size.js +14 -26
- package/dist/utils/utils.js +0 -1
- package/dist/utils/view.js +27 -24
- package/dist/vite-env.d.js +0 -1
- package/package.json +28 -23
- package/dist/_virtual/compiler-runtime.js +0 -5
- package/dist/_virtual/compiler-runtime2.js +0 -4
- package/dist/_virtual/react-compiler-runtime.development.js +0 -4
- package/dist/_virtual/react-compiler-runtime.production.js +0 -4
- package/dist/assets/components/alert/Alert.style.css +0 -1
- package/dist/assets/components/aurora/Aurora.style.css +0 -1
- package/dist/assets/components/avatar/Avatar.style.css +0 -1
- package/dist/assets/components/badge/Badge.style.css +0 -1
- package/dist/assets/components/breadcrumb/Breadcrumb.style.css +0 -1
- package/dist/assets/components/button/Button.style.css +0 -1
- package/dist/assets/components/button-group/ButtonGroup.style.css +0 -1
- package/dist/assets/components/card/Card.style.css +0 -1
- package/dist/assets/components/chart/Chart.style.css +0 -1
- package/dist/assets/components/col/Col.style.css +0 -1
- package/dist/assets/components/command/Command.style.css +0 -1
- package/dist/assets/components/container/Container.style.css +0 -1
- package/dist/assets/components/context-menu/ContextMenu.style.css +0 -1
- package/dist/assets/components/data-table/DataTable.style.css +0 -1
- package/dist/assets/components/dialog/Dialog.style.css +0 -1
- package/dist/assets/components/editor/Editor.styles.css +0 -1
- package/dist/assets/components/file-tabs/FileTabs.style.css +0 -1
- package/dist/assets/components/form/ColorInput.style.css +0 -1
- package/dist/assets/components/form/DateInput.style.css +0 -1
- package/dist/assets/components/form/EditorInput.style.css +0 -1
- package/dist/assets/components/form/FileInput.style.css +0 -1
- package/dist/assets/components/form/Input.style.css +0 -1
- package/dist/assets/components/form/InputWrapper.style.css +0 -1
- package/dist/assets/components/form/SelectInput.style.css +0 -1
- package/dist/assets/components/fullscreen/FullScreen.style.css +0 -1
- package/dist/assets/components/gantt/Gantt.style.css +0 -1
- package/dist/assets/components/icon/Icon.style.css +0 -1
- package/dist/assets/components/json-view/JsonView.style.css +0 -1
- package/dist/assets/components/layout/Layout.style.css +0 -1
- package/dist/assets/components/menu/Menu.style.css +0 -1
- package/dist/assets/components/progress/Progress.style.css +0 -1
- package/dist/assets/components/quote/Quote.style.css +0 -1
- package/dist/assets/components/resizable/Resizable.style.css +0 -1
- package/dist/assets/components/row/Row.style.css +0 -1
- package/dist/assets/components/scroll-area/ScrollArea.style.css +0 -1
- package/dist/assets/components/segmented-control/SegmentedControl.style.css +0 -1
- package/dist/assets/components/tab/Tab.style.css +0 -1
- package/dist/assets/components/text/Text.style.css +0 -1
- package/dist/assets/components/toast/Toast.style.css +0 -1
- package/dist/assets/components/tooltip/Tooltip.style.css +0 -1
- package/dist/components/icon/codezero/codezero.svg.js +0 -5
- package/dist/components/icon/codezero/gls.svg.js +0 -5
- 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 -34
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/index.js +0 -47
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/use-presence.js +0 -17
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/utils.js +0 -12
- package/dist/node_modules/framer-motion/dist/es/context/LayoutGroupContext.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/context/LazyContext.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/context/MotionConfigContext.js +0 -9
- package/dist/node_modules/framer-motion/dist/es/context/MotionContext/create.js +0 -13
- package/dist/node_modules/framer-motion/dist/es/context/MotionContext/index.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/context/MotionContext/utils.js +0 -15
- package/dist/node_modules/framer-motion/dist/es/context/PresenceContext.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/context/SwitchLayoutGroupContext.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/events/add-pointer-event.js +0 -8
- package/dist/node_modules/framer-motion/dist/es/events/event-info.js +0 -14
- package/dist/node_modules/framer-motion/dist/es/gestures/drag/VisualElementDragControls.js +0 -285
- package/dist/node_modules/framer-motion/dist/es/gestures/drag/index.js +0 -22
- package/dist/node_modules/framer-motion/dist/es/gestures/drag/utils/constraints.js +0 -67
- package/dist/node_modules/framer-motion/dist/es/gestures/focus.js +0 -28
- package/dist/node_modules/framer-motion/dist/es/gestures/hover.js +0 -21
- package/dist/node_modules/framer-motion/dist/es/gestures/pan/PanSession.js +0 -130
- package/dist/node_modules/framer-motion/dist/es/gestures/pan/index.js +0 -43
- package/dist/node_modules/framer-motion/dist/es/gestures/press.js +0 -29
- package/dist/node_modules/framer-motion/dist/es/motion/features/animation/exit.js +0 -45
- package/dist/node_modules/framer-motion/dist/es/motion/features/animation/index.js +0 -33
- package/dist/node_modules/framer-motion/dist/es/motion/features/animations.js +0 -13
- package/dist/node_modules/framer-motion/dist/es/motion/features/definitions.js +0 -39
- package/dist/node_modules/framer-motion/dist/es/motion/features/drag.js +0 -17
- package/dist/node_modules/framer-motion/dist/es/motion/features/gestures.js +0 -21
- package/dist/node_modules/framer-motion/dist/es/motion/features/layout/MeasureLayout.js +0 -60
- package/dist/node_modules/framer-motion/dist/es/motion/features/layout.js +0 -11
- package/dist/node_modules/framer-motion/dist/es/motion/features/load-features.js +0 -14
- package/dist/node_modules/framer-motion/dist/es/motion/features/viewport/index.js +0 -45
- package/dist/node_modules/framer-motion/dist/es/motion/features/viewport/observers.js +0 -21
- package/dist/node_modules/framer-motion/dist/es/motion/index.js +0 -62
- package/dist/node_modules/framer-motion/dist/es/motion/utils/symbol.js +0 -4
- package/dist/node_modules/framer-motion/dist/es/motion/utils/use-motion-ref.js +0 -21
- package/dist/node_modules/framer-motion/dist/es/motion/utils/use-visual-element.js +0 -65
- package/dist/node_modules/framer-motion/dist/es/motion/utils/use-visual-state.js +0 -52
- package/dist/node_modules/framer-motion/dist/es/motion/utils/valid-prop.js +0 -39
- package/dist/node_modules/framer-motion/dist/es/render/components/create-proxy.js +0 -18
- package/dist/node_modules/framer-motion/dist/es/render/components/motion/feature-bundle.js +0 -13
- package/dist/node_modules/framer-motion/dist/es/render/components/motion/proxy.js +0 -7
- package/dist/node_modules/framer-motion/dist/es/render/dom/create-visual-element.js +0 -10
- package/dist/node_modules/framer-motion/dist/es/render/dom/use-render.js +0 -16
- package/dist/node_modules/framer-motion/dist/es/render/dom/utils/filter-props.js +0 -21
- package/dist/node_modules/framer-motion/dist/es/render/dom/utils/is-svg-component.js +0 -24
- package/dist/node_modules/framer-motion/dist/es/render/html/use-html-visual-state.js +0 -10
- package/dist/node_modules/framer-motion/dist/es/render/html/use-props.js +0 -27
- package/dist/node_modules/framer-motion/dist/es/render/html/utils/create-render-state.js +0 -9
- package/dist/node_modules/framer-motion/dist/es/render/svg/lowercase-elements.js +0 -30
- package/dist/node_modules/framer-motion/dist/es/render/svg/use-props.js +0 -22
- package/dist/node_modules/framer-motion/dist/es/render/svg/use-svg-visual-state.js +0 -10
- package/dist/node_modules/framer-motion/dist/es/render/svg/utils/create-render-state.js +0 -8
- package/dist/node_modules/framer-motion/dist/es/utils/distance.js +0 -9
- package/dist/node_modules/framer-motion/dist/es/utils/get-context-window.js +0 -4
- package/dist/node_modules/framer-motion/dist/es/utils/is-browser.js +0 -4
- package/dist/node_modules/framer-motion/dist/es/utils/is-ref-object.js +0 -6
- package/dist/node_modules/framer-motion/dist/es/utils/reduced-motion/use-reduced-motion.js +0 -12
- package/dist/node_modules/framer-motion/dist/es/utils/use-composed-ref.js +0 -28
- package/dist/node_modules/framer-motion/dist/es/utils/use-constant.js +0 -8
- package/dist/node_modules/framer-motion/dist/es/utils/use-isomorphic-effect.js +0 -6
- package/dist/node_modules/motion-dom/dist/es/animation/AsyncMotionValueAnimation.js +0 -112
- package/dist/node_modules/motion-dom/dist/es/animation/JSAnimation.js +0 -144
- package/dist/node_modules/motion-dom/dist/es/animation/NativeAnimation.js +0 -106
- package/dist/node_modules/motion-dom/dist/es/animation/NativeAnimationExtended.js +0 -38
- package/dist/node_modules/motion-dom/dist/es/animation/animate/single-value.js +0 -10
- package/dist/node_modules/motion-dom/dist/es/animation/drivers/frame.js +0 -17
- package/dist/node_modules/motion-dom/dist/es/animation/generators/inertia.js +0 -37
- package/dist/node_modules/motion-dom/dist/es/animation/generators/keyframes.js +0 -30
- package/dist/node_modules/motion-dom/dist/es/animation/generators/spring.js +0 -178
- package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/calc-duration.js +0 -13
- package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/create-generator-easing.js +0 -13
- package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/is-generator.js +0 -6
- package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/velocity.js +0 -9
- package/dist/node_modules/motion-dom/dist/es/animation/interfaces/motion-value.js +0 -46
- package/dist/node_modules/motion-dom/dist/es/animation/interfaces/visual-element-target.js +0 -59
- package/dist/node_modules/motion-dom/dist/es/animation/interfaces/visual-element-variant.js +0 -29
- package/dist/node_modules/motion-dom/dist/es/animation/interfaces/visual-element.js +0 -22
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/DOMKeyframesResolver.js +0 -68
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/KeyframesResolver.js +0 -74
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/get-final.js +0 -8
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/offsets/default.js +0 -8
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/offsets/fill.js +0 -12
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/offsets/time.js +0 -6
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/fill-wildcards.js +0 -7
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/is-none.js +0 -7
- 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 -37
- package/dist/node_modules/motion-dom/dist/es/animation/optimized-appear/data-id.js +0 -6
- package/dist/node_modules/motion-dom/dist/es/animation/optimized-appear/get-appear-id.js +0 -7
- package/dist/node_modules/motion-dom/dist/es/animation/utils/WithPromise.js +0 -27
- package/dist/node_modules/motion-dom/dist/es/animation/utils/calc-child-stagger.js +0 -7
- package/dist/node_modules/motion-dom/dist/es/animation/utils/can-animate.js +0 -23
- package/dist/node_modules/motion-dom/dist/es/animation/utils/css-variables-conversion.js +0 -31
- package/dist/node_modules/motion-dom/dist/es/animation/utils/default-transitions.js +0 -22
- package/dist/node_modules/motion-dom/dist/es/animation/utils/get-value-transition.js +0 -8
- package/dist/node_modules/motion-dom/dist/es/animation/utils/is-animatable.js +0 -7
- package/dist/node_modules/motion-dom/dist/es/animation/utils/is-css-variable.js +0 -9
- package/dist/node_modules/motion-dom/dist/es/animation/utils/is-transition-defined.js +0 -21
- package/dist/node_modules/motion-dom/dist/es/animation/utils/make-animation-instant.js +0 -6
- package/dist/node_modules/motion-dom/dist/es/animation/utils/replace-transition-type.js +0 -16
- package/dist/node_modules/motion-dom/dist/es/animation/utils/resolve-transition.js +0 -10
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/easing/cubic-bezier.js +0 -4
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/easing/map-easing.js +0 -12
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/easing/supported.js +0 -15
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/start-waapi-animation.js +0 -21
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/supports/waapi.js +0 -33
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/accelerated-values.js +0 -12
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/apply-generator.js +0 -8
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/is-browser-color.js +0 -10
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/linear.js +0 -10
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/unsupported-easing.js +0 -17
- package/dist/node_modules/motion-dom/dist/es/events/add-dom-event.js +0 -6
- package/dist/node_modules/motion-dom/dist/es/frameloop/batcher.js +0 -27
- package/dist/node_modules/motion-dom/dist/es/frameloop/frame.js +0 -9
- package/dist/node_modules/motion-dom/dist/es/frameloop/microtask.js +0 -5
- package/dist/node_modules/motion-dom/dist/es/frameloop/order.js +0 -21
- package/dist/node_modules/motion-dom/dist/es/frameloop/render-step.js +0 -43
- package/dist/node_modules/motion-dom/dist/es/frameloop/sync-time.js +0 -15
- package/dist/node_modules/motion-dom/dist/es/gestures/drag/state/is-active.js +0 -11
- package/dist/node_modules/motion-dom/dist/es/gestures/drag/state/set-active.js +0 -11
- package/dist/node_modules/motion-dom/dist/es/gestures/hover.js +0 -38
- 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 -18
- package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/keyboard.js +0 -27
- package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/state.js +0 -4
- package/dist/node_modules/motion-dom/dist/es/gestures/utils/is-node-or-child.js +0 -4
- package/dist/node_modules/motion-dom/dist/es/gestures/utils/is-primary-pointer.js +0 -4
- package/dist/node_modules/motion-dom/dist/es/gestures/utils/setup.js +0 -12
- package/dist/node_modules/motion-dom/dist/es/projection/animation/mix-values.js +0 -32
- package/dist/node_modules/motion-dom/dist/es/projection/geometry/conversion.js +0 -25
- package/dist/node_modules/motion-dom/dist/es/projection/geometry/copy.js +0 -14
- package/dist/node_modules/motion-dom/dist/es/projection/geometry/delta-apply.js +0 -53
- package/dist/node_modules/motion-dom/dist/es/projection/geometry/delta-calc.js +0 -38
- package/dist/node_modules/motion-dom/dist/es/projection/geometry/delta-remove.js +0 -25
- package/dist/node_modules/motion-dom/dist/es/projection/geometry/models.js +0 -18
- package/dist/node_modules/motion-dom/dist/es/projection/geometry/utils.js +0 -34
- package/dist/node_modules/motion-dom/dist/es/projection/node/DocumentProjectionNode.js +0 -13
- package/dist/node_modules/motion-dom/dist/es/projection/node/HTMLProjectionNode.js +0 -25
- package/dist/node_modules/motion-dom/dist/es/projection/node/create-projection-node.js +0 -618
- package/dist/node_modules/motion-dom/dist/es/projection/node/state.js +0 -15
- package/dist/node_modules/motion-dom/dist/es/projection/shared/stack.js +0 -53
- package/dist/node_modules/motion-dom/dist/es/projection/styles/scale-border-radius.js +0 -21
- package/dist/node_modules/motion-dom/dist/es/projection/styles/scale-box-shadow.js +0 -16
- package/dist/node_modules/motion-dom/dist/es/projection/styles/scale-correction.js +0 -21
- package/dist/node_modules/motion-dom/dist/es/projection/styles/transform.js +0 -13
- package/dist/node_modules/motion-dom/dist/es/projection/utils/compare-by-depth.js +0 -4
- package/dist/node_modules/motion-dom/dist/es/projection/utils/each-axis.js +0 -6
- package/dist/node_modules/motion-dom/dist/es/projection/utils/flat-tree.js +0 -19
- package/dist/node_modules/motion-dom/dist/es/projection/utils/has-transform.js +0 -20
- package/dist/node_modules/motion-dom/dist/es/projection/utils/measure.js +0 -13
- package/dist/node_modules/motion-dom/dist/es/render/Feature.js +0 -10
- package/dist/node_modules/motion-dom/dist/es/render/VisualElement.js +0 -263
- package/dist/node_modules/motion-dom/dist/es/render/dom/DOMVisualElement.js +0 -28
- package/dist/node_modules/motion-dom/dist/es/render/dom/is-css-var.js +0 -4
- package/dist/node_modules/motion-dom/dist/es/render/dom/parse-transform.js +0 -65
- package/dist/node_modules/motion-dom/dist/es/render/dom/style-set.js +0 -7
- package/dist/node_modules/motion-dom/dist/es/render/dom/utils/camel-to-dash.js +0 -6
- 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 -29
- package/dist/node_modules/motion-dom/dist/es/render/html/utils/build-transform.js +0 -38
- package/dist/node_modules/motion-dom/dist/es/render/html/utils/render.js +0 -12
- package/dist/node_modules/motion-dom/dist/es/render/html/utils/scrape-motion-values.js +0 -13
- package/dist/node_modules/motion-dom/dist/es/render/store.js +0 -4
- package/dist/node_modules/motion-dom/dist/es/render/svg/SVGVisualElement.js +0 -40
- package/dist/node_modules/motion-dom/dist/es/render/svg/utils/build-attrs.js +0 -32
- package/dist/node_modules/motion-dom/dist/es/render/svg/utils/camel-case-attrs.js +0 -28
- package/dist/node_modules/motion-dom/dist/es/render/svg/utils/is-svg-tag.js +0 -4
- package/dist/node_modules/motion-dom/dist/es/render/svg/utils/path.js +0 -15
- package/dist/node_modules/motion-dom/dist/es/render/svg/utils/render.js +0 -11
- package/dist/node_modules/motion-dom/dist/es/render/svg/utils/scrape-motion-values.js +0 -15
- package/dist/node_modules/motion-dom/dist/es/render/utils/animation-state.js +0 -143
- package/dist/node_modules/motion-dom/dist/es/render/utils/get-variant-context.js +0 -20
- package/dist/node_modules/motion-dom/dist/es/render/utils/is-animation-controls.js +0 -6
- package/dist/node_modules/motion-dom/dist/es/render/utils/is-controlling-variants.js +0 -13
- package/dist/node_modules/motion-dom/dist/es/render/utils/is-forced-motion-value.js +0 -9
- package/dist/node_modules/motion-dom/dist/es/render/utils/is-keyframes-target.js +0 -4
- package/dist/node_modules/motion-dom/dist/es/render/utils/is-variant-label.js +0 -6
- package/dist/node_modules/motion-dom/dist/es/render/utils/keys-position.js +0 -13
- package/dist/node_modules/motion-dom/dist/es/render/utils/keys-transform.js +0 -23
- package/dist/node_modules/motion-dom/dist/es/render/utils/motion-values.js +0 -25
- package/dist/node_modules/motion-dom/dist/es/render/utils/reduced-motion/index.js +0 -15
- package/dist/node_modules/motion-dom/dist/es/render/utils/reduced-motion/state.js +0 -5
- package/dist/node_modules/motion-dom/dist/es/render/utils/resolve-dynamic-variants.js +0 -8
- package/dist/node_modules/motion-dom/dist/es/render/utils/resolve-variants.js +0 -20
- package/dist/node_modules/motion-dom/dist/es/render/utils/setters.js +0 -21
- package/dist/node_modules/motion-dom/dist/es/render/utils/shallow-compare.js +0 -14
- package/dist/node_modules/motion-dom/dist/es/render/utils/variant-props.js +0 -13
- package/dist/node_modules/motion-dom/dist/es/resize/handle-element.js +0 -39
- package/dist/node_modules/motion-dom/dist/es/resize/handle-window.js +0 -23
- package/dist/node_modules/motion-dom/dist/es/resize/index.js +0 -8
- package/dist/node_modules/motion-dom/dist/es/utils/delay.js +0 -12
- package/dist/node_modules/motion-dom/dist/es/utils/interpolate.js +0 -42
- package/dist/node_modules/motion-dom/dist/es/utils/is-html-element.js +0 -7
- package/dist/node_modules/motion-dom/dist/es/utils/is-svg-element.js +0 -7
- package/dist/node_modules/motion-dom/dist/es/utils/is-svg-svg-element.js +0 -7
- package/dist/node_modules/motion-dom/dist/es/utils/mix/color.js +0 -29
- package/dist/node_modules/motion-dom/dist/es/utils/mix/complex.js +0 -51
- package/dist/node_modules/motion-dom/dist/es/utils/mix/immediate.js +0 -6
- package/dist/node_modules/motion-dom/dist/es/utils/mix/index.js +0 -8
- package/dist/node_modules/motion-dom/dist/es/utils/mix/number.js +0 -4
- package/dist/node_modules/motion-dom/dist/es/utils/mix/visibility.js +0 -8
- package/dist/node_modules/motion-dom/dist/es/utils/resolve-elements.js +0 -15
- package/dist/node_modules/motion-dom/dist/es/utils/supports/flags.js +0 -4
- package/dist/node_modules/motion-dom/dist/es/utils/supports/linear-easing.js +0 -12
- package/dist/node_modules/motion-dom/dist/es/utils/supports/memo.js +0 -9
- package/dist/node_modules/motion-dom/dist/es/utils/supports/scroll-timeline.js +0 -5
- package/dist/node_modules/motion-dom/dist/es/value/index.js +0 -212
- package/dist/node_modules/motion-dom/dist/es/value/types/auto.js +0 -7
- package/dist/node_modules/motion-dom/dist/es/value/types/color/hex.js +0 -19
- package/dist/node_modules/motion-dom/dist/es/value/types/color/hsla-to-rgba.js +0 -22
- package/dist/node_modules/motion-dom/dist/es/value/types/color/hsla.js +0 -12
- package/dist/node_modules/motion-dom/dist/es/value/types/color/index.js +0 -15
- package/dist/node_modules/motion-dom/dist/es/value/types/color/rgba.js +0 -16
- package/dist/node_modules/motion-dom/dist/es/value/types/color/utils.js +0 -18
- 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 -51
- package/dist/node_modules/motion-dom/dist/es/value/types/complex/mask.js +0 -11
- package/dist/node_modules/motion-dom/dist/es/value/types/dimensions.js +0 -9
- package/dist/node_modules/motion-dom/dist/es/value/types/int.js +0 -8
- package/dist/node_modules/motion-dom/dist/es/value/types/maps/defaults.js +0 -27
- package/dist/node_modules/motion-dom/dist/es/value/types/maps/number.js +0 -70
- package/dist/node_modules/motion-dom/dist/es/value/types/maps/transform.js +0 -37
- package/dist/node_modules/motion-dom/dist/es/value/types/numbers/index.js +0 -17
- package/dist/node_modules/motion-dom/dist/es/value/types/numbers/units.js +0 -17
- package/dist/node_modules/motion-dom/dist/es/value/types/test.js +0 -4
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/animatable-none.js +0 -12
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/color-regex.js +0 -4
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/find.js +0 -8
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/float-regex.js +0 -4
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/get-as-type.js +0 -4
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/is-nullish.js +0 -6
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/sanitize.js +0 -4
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/single-color-regex.js +0 -4
- package/dist/node_modules/motion-dom/dist/es/value/utils/is-motion-value.js +0 -4
- package/dist/node_modules/motion-dom/dist/es/value/utils/resolve-motion-value.js +0 -7
- package/dist/node_modules/motion-dom/dist/es/value/will-change/add-will-change.js +0 -14
- package/dist/node_modules/motion-dom/dist/es/value/will-change/is.js +0 -7
- package/dist/node_modules/motion-utils/dist/es/array.js +0 -11
- package/dist/node_modules/motion-utils/dist/es/clamp.js +0 -4
- package/dist/node_modules/motion-utils/dist/es/easing/anticipate.js +0 -5
- package/dist/node_modules/motion-utils/dist/es/easing/back.js +0 -9
- package/dist/node_modules/motion-utils/dist/es/easing/circ.js +0 -8
- package/dist/node_modules/motion-utils/dist/es/easing/cubic-bezier.js +0 -19
- package/dist/node_modules/motion-utils/dist/es/easing/ease.js +0 -7
- package/dist/node_modules/motion-utils/dist/es/easing/modifiers/mirror.js +0 -4
- package/dist/node_modules/motion-utils/dist/es/easing/modifiers/reverse.js +0 -4
- package/dist/node_modules/motion-utils/dist/es/easing/utils/is-bezier-definition.js +0 -4
- package/dist/node_modules/motion-utils/dist/es/easing/utils/is-easing-array.js +0 -4
- package/dist/node_modules/motion-utils/dist/es/easing/utils/map.js +0 -32
- package/dist/node_modules/motion-utils/dist/es/errors.js +0 -14
- package/dist/node_modules/motion-utils/dist/es/format-error-message.js +0 -6
- package/dist/node_modules/motion-utils/dist/es/global-config.js +0 -4
- package/dist/node_modules/motion-utils/dist/es/is-numerical-string.js +0 -4
- package/dist/node_modules/motion-utils/dist/es/is-object.js +0 -4
- package/dist/node_modules/motion-utils/dist/es/is-zero-value-string.js +0 -4
- package/dist/node_modules/motion-utils/dist/es/memo.js +0 -8
- package/dist/node_modules/motion-utils/dist/es/noop.js +0 -4
- package/dist/node_modules/motion-utils/dist/es/pipe.js +0 -4
- package/dist/node_modules/motion-utils/dist/es/progress.js +0 -7
- package/dist/node_modules/motion-utils/dist/es/subscription-manager.js +0 -29
- package/dist/node_modules/motion-utils/dist/es/time-conversion.js +0 -5
- package/dist/node_modules/motion-utils/dist/es/velocity-per-second.js +0 -4
- package/dist/node_modules/motion-utils/dist/es/warn-once.js +0 -8
- 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 -14
- package/dist/node_modules/react/compiler-runtime.js +0 -10
- /package/dist/assets/{components/flex/Flex.style.css → Flex.style.css} +0 -0
- /package/dist/assets/{components/spacing/Spacing.style.css → Spacing.style.css} +0 -0
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { spring as L } from "./spring.js";
|
|
2
|
-
import { getGeneratorVelocity as R } from "./utils/velocity.js";
|
|
3
|
-
function $({ keyframes: v, velocity: B = 0, power: M = 0.8, timeConstant: b = 325, bounceDamping: k = 10, bounceStiffness: F = 500, modifyTarget: l, min: t, max: a, restDelta: f = 0.5, restSpeed: O }) {
|
|
4
|
-
const s = v[0], n = {
|
|
5
|
-
done: !1,
|
|
6
|
-
value: s
|
|
7
|
-
}, C = (e) => t !== void 0 && e < t || a !== void 0 && e > a, D = (e) => t === void 0 ? a : a === void 0 || Math.abs(t - e) < Math.abs(a - e) ? t : a;
|
|
8
|
-
let d = M * B;
|
|
9
|
-
const i = s + d, u = l === void 0 ? i : l(i);
|
|
10
|
-
u !== i && (d = u - s);
|
|
11
|
-
const p = (e) => -d * Math.exp(-e / b), h = (e) => u + p(e), y = (e) => {
|
|
12
|
-
const o = p(e), G = h(e);
|
|
13
|
-
n.done = Math.abs(o) <= f, n.value = n.done ? u : G;
|
|
14
|
-
};
|
|
15
|
-
let r, c;
|
|
16
|
-
const g = (e) => {
|
|
17
|
-
C(n.value) && (r = e, c = L({
|
|
18
|
-
keyframes: [n.value, D(n.value)],
|
|
19
|
-
velocity: R(h, e, n.value),
|
|
20
|
-
// TODO: This should be passing * 1000
|
|
21
|
-
damping: k,
|
|
22
|
-
stiffness: F,
|
|
23
|
-
restDelta: f,
|
|
24
|
-
restSpeed: O
|
|
25
|
-
}));
|
|
26
|
-
};
|
|
27
|
-
return g(0), {
|
|
28
|
-
calculatedDuration: null,
|
|
29
|
-
next: (e) => {
|
|
30
|
-
let o = !1;
|
|
31
|
-
return !c && r === void 0 && (o = !0, y(e), g(e)), r !== void 0 && e >= r ? c.next(e - r) : (!o && y(e), n);
|
|
32
|
-
}
|
|
33
|
-
};
|
|
34
|
-
}
|
|
35
|
-
export {
|
|
36
|
-
$ as inertia
|
|
37
|
-
};
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { interpolate as c } from "../../utils/interpolate.js";
|
|
2
|
-
import { defaultOffset as p } from "../keyframes/offsets/default.js";
|
|
3
|
-
import { convertOffsetToTimes as u } from "../keyframes/offsets/time.js";
|
|
4
|
-
import { isEasingArray as l } from "../../../../../motion-utils/dist/es/easing/utils/is-easing-array.js";
|
|
5
|
-
import { easingDefinitionToFunction as m } from "../../../../../motion-utils/dist/es/easing/utils/map.js";
|
|
6
|
-
import { easeInOut as g } from "../../../../../motion-utils/dist/es/easing/ease.js";
|
|
7
|
-
function T(n, t) {
|
|
8
|
-
return n.map(() => t || g).splice(0, n.length - 1);
|
|
9
|
-
}
|
|
10
|
-
function y({ duration: n = 300, keyframes: t, times: o, ease: r = "easeInOut" }) {
|
|
11
|
-
const e = l(r) ? r.map(m) : m(r), i = {
|
|
12
|
-
done: !1,
|
|
13
|
-
value: t[0]
|
|
14
|
-
}, s = u(
|
|
15
|
-
// Only use the provided offsets if they're the correct length
|
|
16
|
-
// TODO Maybe we should warn here if there's a length mismatch
|
|
17
|
-
o && o.length === t.length ? o : p(t),
|
|
18
|
-
n
|
|
19
|
-
), a = c(s, t, {
|
|
20
|
-
ease: Array.isArray(e) ? e : T(t, e)
|
|
21
|
-
});
|
|
22
|
-
return {
|
|
23
|
-
calculatedDuration: n,
|
|
24
|
-
next: (f) => (i.value = a(f), i.done = f >= n, i)
|
|
25
|
-
};
|
|
26
|
-
}
|
|
27
|
-
export {
|
|
28
|
-
T as defaultEasing,
|
|
29
|
-
y as keyframes
|
|
30
|
-
};
|
|
@@ -1,178 +0,0 @@
|
|
|
1
|
-
import { generateLinearEasing as L } from "../waapi/utils/linear.js";
|
|
2
|
-
import { calcGeneratorDuration as z, maxGeneratorDuration as B } from "./utils/calc-duration.js";
|
|
3
|
-
import { createGeneratorEasing as H } from "./utils/create-generator-easing.js";
|
|
4
|
-
import { millisecondsToSeconds as K, secondsToMilliseconds as q } from "../../../../../motion-utils/dist/es/time-conversion.js";
|
|
5
|
-
import { clamp as N } from "../../../../../motion-utils/dist/es/clamp.js";
|
|
6
|
-
import { warning as J } from "../../../../../motion-utils/dist/es/errors.js";
|
|
7
|
-
const n = {
|
|
8
|
-
// Default spring physics
|
|
9
|
-
stiffness: 100,
|
|
10
|
-
damping: 10,
|
|
11
|
-
mass: 1,
|
|
12
|
-
velocity: 0,
|
|
13
|
-
// Default duration/bounce-based options
|
|
14
|
-
duration: 800,
|
|
15
|
-
// in ms
|
|
16
|
-
bounce: 0.3,
|
|
17
|
-
visualDuration: 0.3,
|
|
18
|
-
// in seconds
|
|
19
|
-
// Rest thresholds
|
|
20
|
-
restSpeed: {
|
|
21
|
-
granular: 0.01,
|
|
22
|
-
default: 2
|
|
23
|
-
},
|
|
24
|
-
restDelta: {
|
|
25
|
-
granular: 5e-3,
|
|
26
|
-
default: 0.5
|
|
27
|
-
},
|
|
28
|
-
// Limits
|
|
29
|
-
minDuration: 0.01,
|
|
30
|
-
// in seconds
|
|
31
|
-
maxDuration: 10,
|
|
32
|
-
// in seconds
|
|
33
|
-
minDamping: 0.05,
|
|
34
|
-
maxDamping: 1
|
|
35
|
-
};
|
|
36
|
-
function O(e, s) {
|
|
37
|
-
return e * Math.sqrt(1 - s * s);
|
|
38
|
-
}
|
|
39
|
-
const Q = 12;
|
|
40
|
-
function U(e, s, a) {
|
|
41
|
-
let l = a;
|
|
42
|
-
for (let f = 1; f < Q; f++)
|
|
43
|
-
l = l - e(l) / s(l);
|
|
44
|
-
return l;
|
|
45
|
-
}
|
|
46
|
-
const I = 1e-3;
|
|
47
|
-
function W({ duration: e = n.duration, bounce: s = n.bounce, velocity: a = n.velocity, mass: l = n.mass }) {
|
|
48
|
-
let f, v;
|
|
49
|
-
J(e <= q(n.maxDuration), "Spring duration must be 10 seconds or less", "spring-duration-limit");
|
|
50
|
-
let r = 1 - s;
|
|
51
|
-
r = N(n.minDamping, n.maxDamping, r), e = N(n.minDuration, n.maxDuration, K(e)), r < 1 ? (f = (c) => {
|
|
52
|
-
const g = c * r, h = g * e, k = g - a, x = O(c, r), M = Math.exp(-h);
|
|
53
|
-
return I - k / x * M;
|
|
54
|
-
}, v = (c) => {
|
|
55
|
-
const h = c * r * e, k = h * a + a, x = Math.pow(r, 2) * Math.pow(c, 2) * e, M = Math.exp(-h), o = O(Math.pow(c, 2), r);
|
|
56
|
-
return (-f(c) + I > 0 ? -1 : 1) * ((k - x) * M) / o;
|
|
57
|
-
}) : (f = (c) => {
|
|
58
|
-
const g = Math.exp(-c * e), h = (c - a) * e + 1;
|
|
59
|
-
return -I + g * h;
|
|
60
|
-
}, v = (c) => {
|
|
61
|
-
const g = Math.exp(-c * e), h = (a - c) * (e * e);
|
|
62
|
-
return g * h;
|
|
63
|
-
});
|
|
64
|
-
const p = 5 / e, T = U(f, v, p);
|
|
65
|
-
if (e = q(e), isNaN(T))
|
|
66
|
-
return {
|
|
67
|
-
stiffness: n.stiffness,
|
|
68
|
-
damping: n.damping,
|
|
69
|
-
duration: e
|
|
70
|
-
};
|
|
71
|
-
{
|
|
72
|
-
const c = Math.pow(T, 2) * l;
|
|
73
|
-
return {
|
|
74
|
-
stiffness: c,
|
|
75
|
-
damping: r * 2 * Math.sqrt(l * c),
|
|
76
|
-
duration: e
|
|
77
|
-
};
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
const X = ["duration", "bounce"], Y = ["stiffness", "damping", "mass"];
|
|
81
|
-
function V(e, s) {
|
|
82
|
-
return s.some((a) => e[a] !== void 0);
|
|
83
|
-
}
|
|
84
|
-
function Z(e) {
|
|
85
|
-
let s = {
|
|
86
|
-
velocity: n.velocity,
|
|
87
|
-
stiffness: n.stiffness,
|
|
88
|
-
damping: n.damping,
|
|
89
|
-
mass: n.mass,
|
|
90
|
-
isResolvedFromDuration: !1,
|
|
91
|
-
...e
|
|
92
|
-
};
|
|
93
|
-
if (!V(e, Y) && V(e, X))
|
|
94
|
-
if (s.velocity = 0, e.visualDuration) {
|
|
95
|
-
const a = e.visualDuration, l = 2 * Math.PI / (a * 1.2), f = l * l, v = 2 * N(0.05, 1, 1 - (e.bounce || 0)) * Math.sqrt(f);
|
|
96
|
-
s = {
|
|
97
|
-
...s,
|
|
98
|
-
mass: n.mass,
|
|
99
|
-
stiffness: f,
|
|
100
|
-
damping: v
|
|
101
|
-
};
|
|
102
|
-
} else {
|
|
103
|
-
const a = W({ ...e, velocity: 0 });
|
|
104
|
-
s = {
|
|
105
|
-
...s,
|
|
106
|
-
...a,
|
|
107
|
-
mass: n.mass
|
|
108
|
-
}, s.isResolvedFromDuration = !0;
|
|
109
|
-
}
|
|
110
|
-
return s;
|
|
111
|
-
}
|
|
112
|
-
function j(e = n.visualDuration, s = n.bounce) {
|
|
113
|
-
const a = typeof e != "object" ? {
|
|
114
|
-
visualDuration: e,
|
|
115
|
-
keyframes: [0, 1],
|
|
116
|
-
bounce: s
|
|
117
|
-
} : e;
|
|
118
|
-
let { restSpeed: l, restDelta: f } = a;
|
|
119
|
-
const v = a.keyframes[0], r = a.keyframes[a.keyframes.length - 1], p = { done: !1, value: v }, { stiffness: T, damping: c, mass: g, duration: h, velocity: k, isResolvedFromDuration: x } = Z({
|
|
120
|
-
...a,
|
|
121
|
-
velocity: -K(a.velocity || 0)
|
|
122
|
-
}), M = k || 0, o = c / (2 * Math.sqrt(T * g)), m = r - v, i = K(Math.sqrt(T / g)), P = Math.abs(m) < 5;
|
|
123
|
-
l || (l = P ? n.restSpeed.granular : n.restSpeed.default), f || (f = P ? n.restDelta.granular : n.restDelta.default);
|
|
124
|
-
let G, w, d, C, A, F;
|
|
125
|
-
if (o < 1)
|
|
126
|
-
d = O(i, o), C = (M + o * i * m) / d, G = (t) => {
|
|
127
|
-
const u = Math.exp(-o * i * t);
|
|
128
|
-
return r - u * (C * Math.sin(d * t) + m * Math.cos(d * t));
|
|
129
|
-
}, A = o * i * C + m * d, F = o * i * m - C * d, w = (t) => Math.exp(-o * i * t) * (A * Math.sin(d * t) + F * Math.cos(d * t));
|
|
130
|
-
else if (o === 1) {
|
|
131
|
-
G = (u) => r - Math.exp(-i * u) * (m + (M + i * m) * u);
|
|
132
|
-
const t = M + i * m;
|
|
133
|
-
w = (u) => Math.exp(-i * u) * (i * t * u - M);
|
|
134
|
-
} else {
|
|
135
|
-
const t = i * Math.sqrt(o * o - 1);
|
|
136
|
-
G = (y) => {
|
|
137
|
-
const S = Math.exp(-o * i * y), b = Math.min(t * y, 300);
|
|
138
|
-
return r - S * ((M + o * i * m) * Math.sinh(b) + t * m * Math.cosh(b)) / t;
|
|
139
|
-
};
|
|
140
|
-
const u = (M + o * i * m) / t, D = o * i * u - m * t, R = o * i * m - u * t;
|
|
141
|
-
w = (y) => {
|
|
142
|
-
const S = Math.exp(-o * i * y), b = Math.min(t * y, 300);
|
|
143
|
-
return S * (D * Math.sinh(b) + R * Math.cosh(b));
|
|
144
|
-
};
|
|
145
|
-
}
|
|
146
|
-
const E = {
|
|
147
|
-
calculatedDuration: x && h || null,
|
|
148
|
-
velocity: (t) => q(w(t)),
|
|
149
|
-
next: (t) => {
|
|
150
|
-
if (!x && o < 1) {
|
|
151
|
-
const D = Math.exp(-o * i * t), R = Math.sin(d * t), y = Math.cos(d * t), S = r - D * (C * R + m * y), b = q(D * (A * R + F * y));
|
|
152
|
-
return p.done = Math.abs(b) <= l && Math.abs(r - S) <= f, p.value = p.done ? r : S, p;
|
|
153
|
-
}
|
|
154
|
-
const u = G(t);
|
|
155
|
-
if (x)
|
|
156
|
-
p.done = t >= h;
|
|
157
|
-
else {
|
|
158
|
-
const D = q(w(t));
|
|
159
|
-
p.done = Math.abs(D) <= l && Math.abs(r - u) <= f;
|
|
160
|
-
}
|
|
161
|
-
return p.value = p.done ? r : u, p;
|
|
162
|
-
},
|
|
163
|
-
toString: () => {
|
|
164
|
-
const t = Math.min(z(E), B), u = L((D) => E.next(t * D).value, t, 30);
|
|
165
|
-
return t + "ms " + u;
|
|
166
|
-
},
|
|
167
|
-
toTransition: () => {
|
|
168
|
-
}
|
|
169
|
-
};
|
|
170
|
-
return E;
|
|
171
|
-
}
|
|
172
|
-
j.applyToOptions = (e) => {
|
|
173
|
-
const s = H(e, 100, j);
|
|
174
|
-
return e.ease = s.ease, e.duration = q(s.duration), e.type = "keyframes", e;
|
|
175
|
-
};
|
|
176
|
-
export {
|
|
177
|
-
j as spring
|
|
178
|
-
};
|
package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/create-generator-easing.js
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { calcGeneratorDuration as i, maxGeneratorDuration as m } from "./calc-duration.js";
|
|
2
|
-
import { millisecondsToSeconds as s } from "../../../../../../motion-utils/dist/es/time-conversion.js";
|
|
3
|
-
function f(n, r = 100, o) {
|
|
4
|
-
const e = o({ ...n, keyframes: [0, r] }), t = Math.min(i(e), m);
|
|
5
|
-
return {
|
|
6
|
-
type: "keyframes",
|
|
7
|
-
ease: (a) => e.next(t * a).value / r,
|
|
8
|
-
duration: s(t)
|
|
9
|
-
};
|
|
10
|
-
}
|
|
11
|
-
export {
|
|
12
|
-
f as createGeneratorEasing
|
|
13
|
-
};
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { AsyncMotionValueAnimation as A } from "../AsyncMotionValueAnimation.js";
|
|
2
|
-
import { JSAnimation as k } from "../JSAnimation.js";
|
|
3
|
-
import { getValueTransition as D } from "../utils/get-value-transition.js";
|
|
4
|
-
import { makeAnimationInstant as d } from "../utils/make-animation-instant.js";
|
|
5
|
-
import { getDefaultTransition as g } from "../utils/default-transitions.js";
|
|
6
|
-
import { getFinalKeyframe as C } from "../keyframes/get-final.js";
|
|
7
|
-
import { isTransitionDefined as T } from "../utils/is-transition-defined.js";
|
|
8
|
-
import { frame as V } from "../../frameloop/frame.js";
|
|
9
|
-
import { secondsToMilliseconds as s } from "../../../../../motion-utils/dist/es/time-conversion.js";
|
|
10
|
-
import { MotionGlobalConfig as y } from "../../../../../motion-utils/dist/es/global-config.js";
|
|
11
|
-
const x = (n, i, a, r = {}, f, p) => (u) => {
|
|
12
|
-
const o = D(r, n) || {}, c = o.delay || r.delay || 0;
|
|
13
|
-
let { elapsed: m = 0 } = r;
|
|
14
|
-
m = m - s(c);
|
|
15
|
-
const e = {
|
|
16
|
-
keyframes: Array.isArray(a) ? a : [null, a],
|
|
17
|
-
ease: "easeOut",
|
|
18
|
-
velocity: i.getVelocity(),
|
|
19
|
-
...o,
|
|
20
|
-
delay: -m,
|
|
21
|
-
onUpdate: (t) => {
|
|
22
|
-
i.set(t), o.onUpdate && o.onUpdate(t);
|
|
23
|
-
},
|
|
24
|
-
onComplete: () => {
|
|
25
|
-
u(), o.onComplete && o.onComplete();
|
|
26
|
-
},
|
|
27
|
-
name: n,
|
|
28
|
-
motionValue: i,
|
|
29
|
-
element: p ? void 0 : f
|
|
30
|
-
};
|
|
31
|
-
T(o) || Object.assign(e, g(n, e)), e.duration && (e.duration = s(e.duration)), e.repeatDelay && (e.repeatDelay = s(e.repeatDelay)), e.from !== void 0 && (e.keyframes[0] = e.from);
|
|
32
|
-
let l = !1;
|
|
33
|
-
if ((e.type === !1 || e.duration === 0 && !e.repeatDelay) && (d(e), e.delay === 0 && (l = !0)), (y.instantAnimations || y.skipAnimations || f?.shouldSkipAnimations || o.skipAnimations) && (l = !0, d(e), e.delay = 0), e.allowFlatten = !o.type && !o.ease, l && !p && i.get() !== void 0) {
|
|
34
|
-
const t = C(e.keyframes, o);
|
|
35
|
-
if (t !== void 0) {
|
|
36
|
-
V.update(() => {
|
|
37
|
-
e.onUpdate(t), e.onComplete();
|
|
38
|
-
});
|
|
39
|
-
return;
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
return o.isSync ? new k(e) : new A(e);
|
|
43
|
-
};
|
|
44
|
-
export {
|
|
45
|
-
x as animateMotionValue
|
|
46
|
-
};
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { getValueTransition as H } from "../utils/get-value-transition.js";
|
|
2
|
-
import { resolveTransition as B } from "../utils/resolve-transition.js";
|
|
3
|
-
import { positionalKeys as I } from "../../render/utils/keys-position.js";
|
|
4
|
-
import { setTarget as P } from "../../render/utils/setters.js";
|
|
5
|
-
import { addValueToWillChange as R } from "../../value/will-change/add-will-change.js";
|
|
6
|
-
import { getOptimisedAppearId as x } from "../optimized-appear/get-appear-id.js";
|
|
7
|
-
import { animateMotionValue as C } from "./motion-value.js";
|
|
8
|
-
import { frame as u } from "../../frameloop/frame.js";
|
|
9
|
-
function D({ protectedKeys: t, needsAnimating: s }, i) {
|
|
10
|
-
const f = t.hasOwnProperty(i) && s[i] !== !0;
|
|
11
|
-
return s[i] = !1, f;
|
|
12
|
-
}
|
|
13
|
-
function G(t, s, { delay: i = 0, transitionOverride: f, type: d } = {}) {
|
|
14
|
-
let { transition: n, transitionEnd: m, ...p } = s;
|
|
15
|
-
const l = t.getDefaultTransition();
|
|
16
|
-
n = n ? B(n, l) : l;
|
|
17
|
-
const y = n?.reduceMotion, k = n?.skipAnimations;
|
|
18
|
-
f && (n = f);
|
|
19
|
-
const e = [], T = d && t.animationState && t.animationState.getState()[d], g = n?.path;
|
|
20
|
-
g && g.animateVisualElement(t, p, n, i, e);
|
|
21
|
-
for (const o in p) {
|
|
22
|
-
const a = t.getValue(o, t.latestValues[o] ?? null), r = p[o];
|
|
23
|
-
if (r === void 0 || T && D(T, o))
|
|
24
|
-
continue;
|
|
25
|
-
const c = {
|
|
26
|
-
delay: i,
|
|
27
|
-
...H(n || {}, o)
|
|
28
|
-
};
|
|
29
|
-
k && (c.skipAnimations = !0);
|
|
30
|
-
const h = a.get();
|
|
31
|
-
if (h !== void 0 && !a.isAnimating() && !Array.isArray(r) && r === h && !c.velocity) {
|
|
32
|
-
u.update(() => a.set(r));
|
|
33
|
-
continue;
|
|
34
|
-
}
|
|
35
|
-
let A = !1;
|
|
36
|
-
if (window.MotionHandoffAnimation) {
|
|
37
|
-
const V = x(t);
|
|
38
|
-
if (V) {
|
|
39
|
-
const w = window.MotionHandoffAnimation(V, o, u);
|
|
40
|
-
w !== null && (c.startTime = w, A = !0);
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
R(t, o);
|
|
44
|
-
const S = y ?? t.shouldReduceMotion;
|
|
45
|
-
a.start(C(o, a, r, S && I.has(o) ? { type: !1 } : c, t, A));
|
|
46
|
-
const M = a.animation;
|
|
47
|
-
M && e.push(M);
|
|
48
|
-
}
|
|
49
|
-
if (m) {
|
|
50
|
-
const o = () => u.update(() => {
|
|
51
|
-
m && P(t, m);
|
|
52
|
-
});
|
|
53
|
-
e.length ? Promise.all(e).then(o) : o();
|
|
54
|
-
}
|
|
55
|
-
return e;
|
|
56
|
-
}
|
|
57
|
-
export {
|
|
58
|
-
G as animateTarget
|
|
59
|
-
};
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { resolveVariant as h } from "../../render/utils/resolve-dynamic-variants.js";
|
|
2
|
-
import { calcChildStagger as l } from "../utils/calc-child-stagger.js";
|
|
3
|
-
import { animateTarget as g } from "./visual-element-target.js";
|
|
4
|
-
function C(r, i, t = {}) {
|
|
5
|
-
const n = h(r, i, t.type === "exit" ? r.presenceContext?.custom : void 0);
|
|
6
|
-
let { transition: o = r.getDefaultTransition() || {} } = n || {};
|
|
7
|
-
t.transitionOverride && (o = t.transitionOverride);
|
|
8
|
-
const a = n ? () => Promise.all(g(r, n, t)) : () => Promise.resolve(), s = r.variantChildren && r.variantChildren.size ? (e = 0) => {
|
|
9
|
-
const { delayChildren: f = 0, staggerChildren: d, staggerDirection: m } = o;
|
|
10
|
-
return y(r, i, e, f, d, m, t);
|
|
11
|
-
} : () => Promise.resolve(), { when: c } = o;
|
|
12
|
-
if (c) {
|
|
13
|
-
const [e, f] = c === "beforeChildren" ? [a, s] : [s, a];
|
|
14
|
-
return e().then(() => f());
|
|
15
|
-
} else
|
|
16
|
-
return Promise.all([a(), s(t.delay)]);
|
|
17
|
-
}
|
|
18
|
-
function y(r, i, t = 0, n = 0, o = 0, a = 1, s) {
|
|
19
|
-
const c = [];
|
|
20
|
-
for (const e of r.variantChildren)
|
|
21
|
-
e.notify("AnimationStart", i), c.push(C(e, i, {
|
|
22
|
-
...s,
|
|
23
|
-
delay: t + (typeof n == "function" ? 0 : n) + l(r.variantChildren, e, n, o, a)
|
|
24
|
-
}).then(() => e.notify("AnimationComplete", i)));
|
|
25
|
-
return Promise.all(c);
|
|
26
|
-
}
|
|
27
|
-
export {
|
|
28
|
-
C as animateVariant
|
|
29
|
-
};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { resolveVariant as c } from "../../render/utils/resolve-dynamic-variants.js";
|
|
2
|
-
import { animateTarget as p } from "./visual-element-target.js";
|
|
3
|
-
import { animateVariant as e } from "./visual-element-variant.js";
|
|
4
|
-
function n(a, r, t = {}) {
|
|
5
|
-
a.notify("AnimationStart", r);
|
|
6
|
-
let m;
|
|
7
|
-
if (Array.isArray(r)) {
|
|
8
|
-
const o = r.map((y) => e(a, y, t));
|
|
9
|
-
m = Promise.all(o);
|
|
10
|
-
} else if (typeof r == "string")
|
|
11
|
-
m = e(a, r, t);
|
|
12
|
-
else {
|
|
13
|
-
const o = typeof r == "function" ? c(a, r, t.custom) : r;
|
|
14
|
-
m = Promise.all(p(a, o, t));
|
|
15
|
-
}
|
|
16
|
-
return m.then(() => {
|
|
17
|
-
a.notify("AnimationComplete", r);
|
|
18
|
-
});
|
|
19
|
-
}
|
|
20
|
-
export {
|
|
21
|
-
n as animateVisualElement
|
|
22
|
-
};
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
import { positionalKeys as c } from "../../render/utils/keys-position.js";
|
|
2
|
-
import { findDimensionValueType as d } from "../../value/types/dimensions.js";
|
|
3
|
-
import { getVariableValue as g } from "../utils/css-variables-conversion.js";
|
|
4
|
-
import { isCSSVariableToken as K, containsCSSVariable as h } from "../utils/is-css-variable.js";
|
|
5
|
-
import { KeyframeResolver as v } from "./KeyframesResolver.js";
|
|
6
|
-
import { isNone as V } from "./utils/is-none.js";
|
|
7
|
-
import { makeNoneKeyframesAnimatable as S } from "./utils/make-none-animatable.js";
|
|
8
|
-
import { positionalValues as m, isNumOrPxType as p } from "./utils/unit-conversion.js";
|
|
9
|
-
class M extends v {
|
|
10
|
-
constructor(e, n, r, t, o) {
|
|
11
|
-
super(e, n, r, t, o, !0);
|
|
12
|
-
}
|
|
13
|
-
readKeyframes() {
|
|
14
|
-
const { unresolvedKeyframes: e, element: n, name: r } = this;
|
|
15
|
-
if (!n || !n.current)
|
|
16
|
-
return;
|
|
17
|
-
super.readKeyframes();
|
|
18
|
-
for (let s = 0; s < e.length; s++) {
|
|
19
|
-
let i = e[s];
|
|
20
|
-
if (typeof i == "string" && (i = i.trim(), K(i))) {
|
|
21
|
-
const u = g(i, n.current);
|
|
22
|
-
u !== void 0 && (e[s] = u), s === e.length - 1 && (this.finalKeyframe = i);
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
if (this.resolveNoneKeyframes(), !c.has(r) || e.length !== 2)
|
|
26
|
-
return;
|
|
27
|
-
const [t, o] = e, a = d(t), f = d(o), l = h(t), y = h(o);
|
|
28
|
-
if (l !== y && m[r]) {
|
|
29
|
-
this.needsMeasurement = !0;
|
|
30
|
-
return;
|
|
31
|
-
}
|
|
32
|
-
if (a !== f)
|
|
33
|
-
if (p(a) && p(f))
|
|
34
|
-
for (let s = 0; s < e.length; s++) {
|
|
35
|
-
const i = e[s];
|
|
36
|
-
typeof i == "string" && (e[s] = parseFloat(i));
|
|
37
|
-
}
|
|
38
|
-
else m[r] && (this.needsMeasurement = !0);
|
|
39
|
-
}
|
|
40
|
-
resolveNoneKeyframes() {
|
|
41
|
-
const { unresolvedKeyframes: e, name: n } = this, r = [];
|
|
42
|
-
for (let t = 0; t < e.length; t++)
|
|
43
|
-
(e[t] === null || V(e[t])) && r.push(t);
|
|
44
|
-
r.length && S(e, r, n);
|
|
45
|
-
}
|
|
46
|
-
measureInitialState() {
|
|
47
|
-
const { element: e, unresolvedKeyframes: n, name: r } = this;
|
|
48
|
-
if (!e || !e.current)
|
|
49
|
-
return;
|
|
50
|
-
r === "height" && (this.suspendedScrollY = window.pageYOffset), this.measuredOrigin = m[r](e.measureViewportBox(), window.getComputedStyle(e.current)), n[0] = this.measuredOrigin;
|
|
51
|
-
const t = n[n.length - 1];
|
|
52
|
-
t !== void 0 && e.getValue(r, t).jump(t, !1);
|
|
53
|
-
}
|
|
54
|
-
measureEndState() {
|
|
55
|
-
const { element: e, name: n, unresolvedKeyframes: r } = this;
|
|
56
|
-
if (!e || !e.current)
|
|
57
|
-
return;
|
|
58
|
-
const t = e.getValue(n);
|
|
59
|
-
t && t.jump(this.measuredOrigin, !1);
|
|
60
|
-
const o = r.length - 1, a = r[o];
|
|
61
|
-
r[o] = m[n](e.measureViewportBox(), window.getComputedStyle(e.current)), a !== null && this.finalKeyframe === void 0 && (this.finalKeyframe = a), this.removedTransforms?.length && this.removedTransforms.forEach(([f, l]) => {
|
|
62
|
-
e.getValue(f).set(l);
|
|
63
|
-
}), this.resolveNoneKeyframes();
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
export {
|
|
67
|
-
M as DOMKeyframesResolver
|
|
68
|
-
};
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
import { fillWildcards as y } from "./utils/fill-wildcards.js";
|
|
2
|
-
import { removeNonTranslationalTransform as p } from "./utils/unit-conversion.js";
|
|
3
|
-
import { frame as c } from "../../frameloop/frame.js";
|
|
4
|
-
const l = /* @__PURE__ */ new Set();
|
|
5
|
-
let f = !1, d = !1, m = !1;
|
|
6
|
-
function u() {
|
|
7
|
-
if (d) {
|
|
8
|
-
const a = Array.from(l).filter((e) => e.needsMeasurement), s = new Set(a.map((e) => e.element)), r = /* @__PURE__ */ new Map();
|
|
9
|
-
s.forEach((e) => {
|
|
10
|
-
const t = p(e);
|
|
11
|
-
t.length && (r.set(e, t), e.render());
|
|
12
|
-
}), a.forEach((e) => e.measureInitialState()), s.forEach((e) => {
|
|
13
|
-
e.render();
|
|
14
|
-
const t = r.get(e);
|
|
15
|
-
t && t.forEach(([n, i]) => {
|
|
16
|
-
e.getValue(n)?.set(i);
|
|
17
|
-
});
|
|
18
|
-
}), a.forEach((e) => e.measureEndState()), a.forEach((e) => {
|
|
19
|
-
e.suspendedScrollY !== void 0 && window.scrollTo(0, e.suspendedScrollY);
|
|
20
|
-
});
|
|
21
|
-
}
|
|
22
|
-
d = !1, f = !1, l.forEach((a) => a.complete(m)), l.clear();
|
|
23
|
-
}
|
|
24
|
-
function h() {
|
|
25
|
-
l.forEach((a) => {
|
|
26
|
-
a.readKeyframes(), a.needsMeasurement && (d = !0);
|
|
27
|
-
});
|
|
28
|
-
}
|
|
29
|
-
function S() {
|
|
30
|
-
m = !0, h(), u(), m = !1;
|
|
31
|
-
}
|
|
32
|
-
class g {
|
|
33
|
-
constructor(s, r, e, t, n, i = !1) {
|
|
34
|
-
this.state = "pending", this.isAsync = !1, this.needsMeasurement = !1, this.unresolvedKeyframes = [...s], this.onComplete = r, this.name = e, this.motionValue = t, this.element = n, this.isAsync = i;
|
|
35
|
-
}
|
|
36
|
-
scheduleResolve() {
|
|
37
|
-
this.state = "scheduled", this.isAsync ? (l.add(this), f || (f = !0, c.read(h), c.resolveKeyframes(u))) : (this.readKeyframes(), this.complete());
|
|
38
|
-
}
|
|
39
|
-
readKeyframes() {
|
|
40
|
-
const { unresolvedKeyframes: s, name: r, element: e, motionValue: t } = this;
|
|
41
|
-
if (s[0] === null) {
|
|
42
|
-
const n = t?.get(), i = s[s.length - 1];
|
|
43
|
-
if (n !== void 0)
|
|
44
|
-
s[0] = n;
|
|
45
|
-
else if (e && r) {
|
|
46
|
-
const o = e.readValue(r, i);
|
|
47
|
-
o != null && (s[0] = o);
|
|
48
|
-
}
|
|
49
|
-
s[0] === void 0 && (s[0] = i), t && n === void 0 && t.set(s[0]);
|
|
50
|
-
}
|
|
51
|
-
y(s);
|
|
52
|
-
}
|
|
53
|
-
setFinalKeyframe() {
|
|
54
|
-
}
|
|
55
|
-
measureInitialState() {
|
|
56
|
-
}
|
|
57
|
-
renderEndStyles() {
|
|
58
|
-
}
|
|
59
|
-
measureEndState() {
|
|
60
|
-
}
|
|
61
|
-
complete(s = !1) {
|
|
62
|
-
this.state = "complete", this.onComplete(this.unresolvedKeyframes, this.finalKeyframe, s), l.delete(this);
|
|
63
|
-
}
|
|
64
|
-
cancel() {
|
|
65
|
-
this.state === "scheduled" && (l.delete(this), this.state = "pending");
|
|
66
|
-
}
|
|
67
|
-
resume() {
|
|
68
|
-
this.state === "pending" && this.scheduleResolve();
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
export {
|
|
72
|
-
g as KeyframeResolver,
|
|
73
|
-
S as flushKeyframeResolvers
|
|
74
|
-
};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
const i = (e) => e !== null;
|
|
2
|
-
function c(e, { repeat: n, repeatType: l = "loop" }, o, r = 1) {
|
|
3
|
-
const t = e.filter(i), s = r < 0 || n && l !== "loop" && n % 2 === 1 ? 0 : t.length - 1;
|
|
4
|
-
return !s || o === void 0 ? t[s] : o;
|
|
5
|
-
}
|
|
6
|
-
export {
|
|
7
|
-
c as getFinalKeyframe
|
|
8
|
-
};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { mixNumber as e } from "../../../utils/mix/number.js";
|
|
2
|
-
import { progress as f } from "../../../../../../motion-utils/dist/es/progress.js";
|
|
3
|
-
function l(o, t) {
|
|
4
|
-
const s = o[o.length - 1];
|
|
5
|
-
for (let r = 1; r <= t; r++) {
|
|
6
|
-
const m = f(0, t, r);
|
|
7
|
-
o.push(e(s, 1, m));
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
export {
|
|
11
|
-
l as fillOffset
|
|
12
|
-
};
|
package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/make-none-animatable.js
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { analyseComplexValue as l } from "../../../value/types/complex/index.js";
|
|
2
|
-
import { getAnimatableNone as m } from "../../../value/types/utils/animatable-none.js";
|
|
3
|
-
const f = /* @__PURE__ */ new Set(["auto", "none", "0"]);
|
|
4
|
-
function g(e, i, o) {
|
|
5
|
-
let n = 0, a;
|
|
6
|
-
for (; n < e.length && !a; ) {
|
|
7
|
-
const t = e[n];
|
|
8
|
-
typeof t == "string" && !f.has(t) && l(t).values.length && (a = e[n]), n++;
|
|
9
|
-
}
|
|
10
|
-
if (a && o)
|
|
11
|
-
for (const t of i)
|
|
12
|
-
e[t] = m(o, a);
|
|
13
|
-
}
|
|
14
|
-
export {
|
|
15
|
-
g as makeNoneKeyframesAnimatable
|
|
16
|
-
};
|