@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 { parseValueFromTransform as n } from "../../../render/dom/parse-transform.js";
|
|
2
|
-
import { transformPropOrder as m } from "../../../render/utils/keys-transform.js";
|
|
3
|
-
import { number as i } from "../../../value/types/numbers/index.js";
|
|
4
|
-
import { px as l } from "../../../value/types/numbers/units.js";
|
|
5
|
-
const h = (r) => r === i || r === l, p = /* @__PURE__ */ new Set(["x", "y", "z"]), f = m.filter((r) => !p.has(r));
|
|
6
|
-
function F(r) {
|
|
7
|
-
const o = [];
|
|
8
|
-
return f.forEach((t) => {
|
|
9
|
-
const a = r.getValue(t);
|
|
10
|
-
a !== void 0 && (o.push([t, a.get()]), a.set(t.startsWith("scale") ? 1 : 0));
|
|
11
|
-
}), o;
|
|
12
|
-
}
|
|
13
|
-
const s = {
|
|
14
|
-
// Dimensions
|
|
15
|
-
width: ({ x: r }, { paddingLeft: o = "0", paddingRight: t = "0", boxSizing: a }) => {
|
|
16
|
-
const e = r.max - r.min;
|
|
17
|
-
return a === "border-box" ? e : e - parseFloat(o) - parseFloat(t);
|
|
18
|
-
},
|
|
19
|
-
height: ({ y: r }, { paddingTop: o = "0", paddingBottom: t = "0", boxSizing: a }) => {
|
|
20
|
-
const e = r.max - r.min;
|
|
21
|
-
return a === "border-box" ? e : e - parseFloat(o) - parseFloat(t);
|
|
22
|
-
},
|
|
23
|
-
top: (r, { top: o }) => parseFloat(o),
|
|
24
|
-
left: (r, { left: o }) => parseFloat(o),
|
|
25
|
-
bottom: ({ y: r }, { top: o }) => parseFloat(o) + (r.max - r.min),
|
|
26
|
-
right: ({ x: r }, { left: o }) => parseFloat(o) + (r.max - r.min),
|
|
27
|
-
// Transform
|
|
28
|
-
x: (r, { transform: o }) => n(o, "x"),
|
|
29
|
-
y: (r, { transform: o }) => n(o, "y")
|
|
30
|
-
};
|
|
31
|
-
s.translateX = s.x;
|
|
32
|
-
s.translateY = s.y;
|
|
33
|
-
export {
|
|
34
|
-
h as isNumOrPxType,
|
|
35
|
-
s as positionalValues,
|
|
36
|
-
F as removeNonTranslationalTransform
|
|
37
|
-
};
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
class t {
|
|
2
|
-
constructor() {
|
|
3
|
-
this.updateFinished();
|
|
4
|
-
}
|
|
5
|
-
get finished() {
|
|
6
|
-
return this._finished;
|
|
7
|
-
}
|
|
8
|
-
updateFinished() {
|
|
9
|
-
this._finished = new Promise((i) => {
|
|
10
|
-
this.resolve = i;
|
|
11
|
-
});
|
|
12
|
-
}
|
|
13
|
-
notifyFinished() {
|
|
14
|
-
this.resolve();
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* Allows the animation to be awaited.
|
|
18
|
-
*
|
|
19
|
-
* @deprecated Use `finished` instead.
|
|
20
|
-
*/
|
|
21
|
-
then(i, e) {
|
|
22
|
-
return this.finished.then(i, e);
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
export {
|
|
26
|
-
t as WithPromise
|
|
27
|
-
};
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { isGenerator as f } from "../generators/utils/is-generator.js";
|
|
2
|
-
import { isAnimatable as l } from "./is-animatable.js";
|
|
3
|
-
import { warning as g } from "../../../../../motion-utils/dist/es/errors.js";
|
|
4
|
-
function s(t) {
|
|
5
|
-
const i = t[0];
|
|
6
|
-
if (t.length === 1)
|
|
7
|
-
return !0;
|
|
8
|
-
for (let n = 0; n < t.length; n++)
|
|
9
|
-
if (t[n] !== i)
|
|
10
|
-
return !0;
|
|
11
|
-
}
|
|
12
|
-
function h(t, i, n, u) {
|
|
13
|
-
const r = t[0];
|
|
14
|
-
if (r === null)
|
|
15
|
-
return !1;
|
|
16
|
-
if (i === "display" || i === "visibility")
|
|
17
|
-
return !0;
|
|
18
|
-
const o = t[t.length - 1], a = l(r, i), e = l(o, i);
|
|
19
|
-
return g(a === e, `You are trying to animate ${i} from "${r}" to "${o}". "${a ? o : r}" is not an animatable value.`, "value-not-animatable"), !a || !e ? !1 : s(t) || (n === "spring" || f(n)) && u;
|
|
20
|
-
}
|
|
21
|
-
export {
|
|
22
|
-
h as canAnimate
|
|
23
|
-
};
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { isCSSVariableToken as c } from "./is-css-variable.js";
|
|
2
|
-
import { invariant as l } from "../../../../../motion-utils/dist/es/errors.js";
|
|
3
|
-
import { isNumericalString as s } from "../../../../../motion-utils/dist/es/is-numerical-string.js";
|
|
4
|
-
const m = (
|
|
5
|
-
// eslint-disable-next-line redos-detector/no-unsafe-regex -- false positive, as it can match a lot of words
|
|
6
|
-
/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u
|
|
7
|
-
);
|
|
8
|
-
function p(a) {
|
|
9
|
-
const e = m.exec(a);
|
|
10
|
-
if (!e)
|
|
11
|
-
return [,];
|
|
12
|
-
const [, r, i, t] = e;
|
|
13
|
-
return [`--${r ?? i}`, t];
|
|
14
|
-
}
|
|
15
|
-
const f = 4;
|
|
16
|
-
function u(a, e, r = 1) {
|
|
17
|
-
l(r <= f, `Max CSS variable fallback depth detected in property "${a}". This may indicate a circular fallback dependency.`, "max-css-var-depth");
|
|
18
|
-
const [i, t] = p(a);
|
|
19
|
-
if (!i)
|
|
20
|
-
return;
|
|
21
|
-
const o = window.getComputedStyle(e).getPropertyValue(i);
|
|
22
|
-
if (o) {
|
|
23
|
-
const n = o.trim();
|
|
24
|
-
return s(n) ? parseFloat(n) : n;
|
|
25
|
-
}
|
|
26
|
-
return c(t) ? u(t, e, r + 1) : t;
|
|
27
|
-
}
|
|
28
|
-
export {
|
|
29
|
-
u as getVariableValue,
|
|
30
|
-
p as parseCSSVariable
|
|
31
|
-
};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { transformProps as s } from "../../render/utils/keys-transform.js";
|
|
2
|
-
const r = {
|
|
3
|
-
type: "spring",
|
|
4
|
-
stiffness: 500,
|
|
5
|
-
damping: 25,
|
|
6
|
-
restSpeed: 10
|
|
7
|
-
}, n = (t) => ({
|
|
8
|
-
type: "spring",
|
|
9
|
-
stiffness: 550,
|
|
10
|
-
damping: t === 0 ? 2 * Math.sqrt(550) : 30,
|
|
11
|
-
restSpeed: 10
|
|
12
|
-
}), i = {
|
|
13
|
-
type: "keyframes",
|
|
14
|
-
duration: 0.8
|
|
15
|
-
}, a = {
|
|
16
|
-
type: "keyframes",
|
|
17
|
-
ease: [0.25, 0.1, 0.35, 1],
|
|
18
|
-
duration: 0.3
|
|
19
|
-
}, o = (t, { keyframes: e }) => e.length > 2 ? i : s.has(t) ? t.startsWith("scale") ? n(e[1]) : r : a;
|
|
20
|
-
export {
|
|
21
|
-
o as getDefaultTransition
|
|
22
|
-
};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { complex as e } from "../../value/types/complex/index.js";
|
|
2
|
-
const n = (r, t) => t === "zIndex" ? !1 : !!(typeof r == "number" || Array.isArray(r) || typeof r == "string" && // It's animatable if we have a string
|
|
3
|
-
(e.test(r) || r === "0") && // And it contains numbers and/or colors
|
|
4
|
-
!r.startsWith("url("));
|
|
5
|
-
export {
|
|
6
|
-
n as isAnimatable
|
|
7
|
-
};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
const r = (t) => (s) => typeof s == "string" && s.startsWith(t), e = /* @__PURE__ */ r("--"), i = /* @__PURE__ */ r("var(--"), a = (t) => i(t) ? n.test(t.split("/*")[0].trim()) : !1, n = /var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;
|
|
2
|
-
function o(t) {
|
|
3
|
-
return typeof t != "string" ? !1 : t.split("/*")[0].includes("var(--");
|
|
4
|
-
}
|
|
5
|
-
export {
|
|
6
|
-
o as containsCSSVariable,
|
|
7
|
-
e as isCSSVariableName,
|
|
8
|
-
a as isCSSVariableToken
|
|
9
|
-
};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
const t = /* @__PURE__ */ new Set([
|
|
2
|
-
"when",
|
|
3
|
-
"delay",
|
|
4
|
-
"delayChildren",
|
|
5
|
-
"staggerChildren",
|
|
6
|
-
"staggerDirection",
|
|
7
|
-
"repeat",
|
|
8
|
-
"repeatType",
|
|
9
|
-
"repeatDelay",
|
|
10
|
-
"from",
|
|
11
|
-
"elapsed"
|
|
12
|
-
]);
|
|
13
|
-
function n(e) {
|
|
14
|
-
for (const r in e)
|
|
15
|
-
if (!t.has(r))
|
|
16
|
-
return !0;
|
|
17
|
-
return !1;
|
|
18
|
-
}
|
|
19
|
-
export {
|
|
20
|
-
n as isTransitionDefined
|
|
21
|
-
};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { inertia as p } from "../generators/inertia.js";
|
|
2
|
-
import { keyframes as r } from "../generators/keyframes.js";
|
|
3
|
-
import { spring as t } from "../generators/spring.js";
|
|
4
|
-
const o = {
|
|
5
|
-
decay: p,
|
|
6
|
-
inertia: p,
|
|
7
|
-
tween: r,
|
|
8
|
-
keyframes: r,
|
|
9
|
-
spring: t
|
|
10
|
-
};
|
|
11
|
-
function m(e) {
|
|
12
|
-
typeof e.type == "string" && (e.type = o[e.type]);
|
|
13
|
-
}
|
|
14
|
-
export {
|
|
15
|
-
m as replaceTransitionType
|
|
16
|
-
};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { supportsLinearEasing as o } from "../../../utils/supports/linear-easing.js";
|
|
2
|
-
import { generateLinearEasing as f } from "../utils/linear.js";
|
|
3
|
-
import { cubicBezierAsString as n } from "./cubic-bezier.js";
|
|
4
|
-
import { supportedWaapiEasing as i } from "./supported.js";
|
|
5
|
-
import { isBezierDefinition as p } from "../../../../../../motion-utils/dist/es/easing/utils/is-bezier-definition.js";
|
|
6
|
-
function m(r, e) {
|
|
7
|
-
if (r)
|
|
8
|
-
return typeof r == "function" ? o() ? f(r, e) : "ease-out" : p(r) ? n(r) : Array.isArray(r) ? r.map((t) => m(t, e) || i.easeOut) : i[r];
|
|
9
|
-
}
|
|
10
|
-
export {
|
|
11
|
-
m as mapEasingToNativeEasing
|
|
12
|
-
};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { cubicBezierAsString as e } from "./cubic-bezier.js";
|
|
2
|
-
const i = {
|
|
3
|
-
linear: "linear",
|
|
4
|
-
ease: "ease",
|
|
5
|
-
easeIn: "ease-in",
|
|
6
|
-
easeOut: "ease-out",
|
|
7
|
-
easeInOut: "ease-in-out",
|
|
8
|
-
circIn: /* @__PURE__ */ e([0, 0.65, 0.55, 1]),
|
|
9
|
-
circOut: /* @__PURE__ */ e([0.55, 0, 1, 0.45]),
|
|
10
|
-
backIn: /* @__PURE__ */ e([0.31, 0.01, 0.66, -0.59]),
|
|
11
|
-
backOut: /* @__PURE__ */ e([0.33, 1.53, 0.69, 0.99])
|
|
12
|
-
};
|
|
13
|
-
export {
|
|
14
|
-
i as supportedWaapiEasing
|
|
15
|
-
};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { mapEasingToNativeEasing as g } from "./easing/map-easing.js";
|
|
2
|
-
function u(r, s, f, { delay: m = 0, duration: n = 300, repeat: p = 0, repeatType: c = "loop", ease: l = "easeOut", times: t } = {}, e = void 0) {
|
|
3
|
-
const a = {
|
|
4
|
-
[s]: f
|
|
5
|
-
};
|
|
6
|
-
t && (a.offset = t);
|
|
7
|
-
const i = g(l, n);
|
|
8
|
-
Array.isArray(i) && (a.easing = i);
|
|
9
|
-
const o = {
|
|
10
|
-
delay: m,
|
|
11
|
-
duration: n,
|
|
12
|
-
easing: Array.isArray(i) ? "linear" : i,
|
|
13
|
-
fill: "both",
|
|
14
|
-
iterations: p + 1,
|
|
15
|
-
direction: c === "reverse" ? "alternate" : "normal"
|
|
16
|
-
};
|
|
17
|
-
return e && (o.pseudoElement = e), r.animate(a, o);
|
|
18
|
-
}
|
|
19
|
-
export {
|
|
20
|
-
u as startWaapiAnimation
|
|
21
|
-
};
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { acceleratedValues as i } from "../utils/accelerated-values.js";
|
|
2
|
-
import { hasBrowserOnlyColors as c } from "../utils/is-browser-color.js";
|
|
3
|
-
import { memo as f } from "../../../../../../motion-utils/dist/es/memo.js";
|
|
4
|
-
const u = /* @__PURE__ */ new Set([
|
|
5
|
-
"color",
|
|
6
|
-
"backgroundColor",
|
|
7
|
-
"outlineColor",
|
|
8
|
-
"fill",
|
|
9
|
-
"stroke",
|
|
10
|
-
"borderColor",
|
|
11
|
-
"borderTopColor",
|
|
12
|
-
"borderRightColor",
|
|
13
|
-
"borderBottomColor",
|
|
14
|
-
"borderLeftColor"
|
|
15
|
-
]), b = /* @__PURE__ */ f(() => Object.hasOwnProperty.call(Element.prototype, "animate"));
|
|
16
|
-
function h(e) {
|
|
17
|
-
const { motionValue: r, name: o, repeatDelay: t, repeatType: n, damping: a, type: s, keyframes: l } = e;
|
|
18
|
-
if (!(r?.owner?.current instanceof HTMLElement))
|
|
19
|
-
return !1;
|
|
20
|
-
const { onUpdate: p, transformTemplate: m } = r.owner.getProps();
|
|
21
|
-
return b() && o && /**
|
|
22
|
-
* Force WAAPI for color properties with browser-only color formats
|
|
23
|
-
* (oklch, oklab, lab, lch, etc.) that the JS animation path can't parse.
|
|
24
|
-
*/
|
|
25
|
-
(i.has(o) || u.has(o) && c(l)) && (o !== "transform" || !m) && /**
|
|
26
|
-
* If we're outputting values to onUpdate then we can't use WAAPI as there's
|
|
27
|
-
* no way to read the value from WAAPI every frame.
|
|
28
|
-
*/
|
|
29
|
-
!p && !t && n !== "mirror" && a !== 0 && s !== "inertia";
|
|
30
|
-
}
|
|
31
|
-
export {
|
|
32
|
-
h as supportsBrowserAnimation
|
|
33
|
-
};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
const e = /* @__PURE__ */ new Set([
|
|
2
|
-
"opacity",
|
|
3
|
-
"clipPath",
|
|
4
|
-
"filter",
|
|
5
|
-
"transform"
|
|
6
|
-
// TODO: Can be accelerated but currently disabled until https://issues.chromium.org/issues/41491098 is resolved
|
|
7
|
-
// or until we implement support for linear() easing.
|
|
8
|
-
// "background-color"
|
|
9
|
-
]);
|
|
10
|
-
export {
|
|
11
|
-
e as acceleratedValues
|
|
12
|
-
};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { supportsLinearEasing as a } from "../../../utils/supports/linear-easing.js";
|
|
2
|
-
import { isGenerator as t } from "../../generators/utils/is-generator.js";
|
|
3
|
-
function i({ type: e, ...r }) {
|
|
4
|
-
return t(e) && a() ? e.applyToOptions(r) : (r.duration ?? (r.duration = 300), r.ease ?? (r.ease = "easeOut"), r);
|
|
5
|
-
}
|
|
6
|
-
export {
|
|
7
|
-
i as applyGeneratorOptions
|
|
8
|
-
};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
const i = (r, a, o = 10) => {
|
|
2
|
-
let n = "";
|
|
3
|
-
const e = Math.max(Math.round(a / o), 2);
|
|
4
|
-
for (let t = 0; t < e; t++)
|
|
5
|
-
n += Math.round(r(t / (e - 1)) * 1e4) / 1e4 + ", ";
|
|
6
|
-
return `linear(${n.substring(0, n.length - 2)})`;
|
|
7
|
-
};
|
|
8
|
-
export {
|
|
9
|
-
i as generateLinearEasing
|
|
10
|
-
};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { circInOut as r } from "../../../../../../motion-utils/dist/es/easing/circ.js";
|
|
2
|
-
import { backInOut as t } from "../../../../../../motion-utils/dist/es/easing/back.js";
|
|
3
|
-
import { anticipate as o } from "../../../../../../motion-utils/dist/es/easing/anticipate.js";
|
|
4
|
-
const n = {
|
|
5
|
-
anticipate: o,
|
|
6
|
-
backInOut: t,
|
|
7
|
-
circInOut: r
|
|
8
|
-
};
|
|
9
|
-
function p(e) {
|
|
10
|
-
return e in n;
|
|
11
|
-
}
|
|
12
|
-
function u(e) {
|
|
13
|
-
typeof e.ease == "string" && p(e.ease) && (e.ease = n[e.ease]);
|
|
14
|
-
}
|
|
15
|
-
export {
|
|
16
|
-
u as replaceStringEasing
|
|
17
|
-
};
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { stepsOrder as o } from "./order.js";
|
|
2
|
-
import { createRenderStep as T } from "./render-step.js";
|
|
3
|
-
import { MotionGlobalConfig as b } from "../../../../motion-utils/dist/es/global-config.js";
|
|
4
|
-
const v = 40;
|
|
5
|
-
function N(c, i) {
|
|
6
|
-
let r = !1, a = !0;
|
|
7
|
-
const e = {
|
|
8
|
-
delta: 0,
|
|
9
|
-
timestamp: 0,
|
|
10
|
-
isProcessing: !1
|
|
11
|
-
}, l = () => r = !0, n = o.reduce((t, s) => (t[s] = T(l), t), {}), { setup: m, read: u, resolveKeyframes: f, preUpdate: d, update: g, preRender: h, render: M, postRender: R } = n, p = () => {
|
|
12
|
-
const t = b.useManualTiming, s = t ? e.timestamp : performance.now();
|
|
13
|
-
r = !1, t || (e.delta = a ? 1e3 / 60 : Math.max(Math.min(s - e.timestamp, v), 1)), e.timestamp = s, e.isProcessing = !0, m.process(e), u.process(e), f.process(e), d.process(e), g.process(e), h.process(e), M.process(e), R.process(e), e.isProcessing = !1, r && i && (a = !1, c(p));
|
|
14
|
-
}, x = () => {
|
|
15
|
-
r = !0, a = !0, e.isProcessing || c(p);
|
|
16
|
-
};
|
|
17
|
-
return { schedule: o.reduce((t, s) => {
|
|
18
|
-
const P = n[s];
|
|
19
|
-
return t[s] = (w, E = !1, F = !1) => (r || x(), P.schedule(w, E, F)), t;
|
|
20
|
-
}, {}), cancel: (t) => {
|
|
21
|
-
for (let s = 0; s < o.length; s++)
|
|
22
|
-
n[o[s]].cancel(t);
|
|
23
|
-
}, state: e, steps: n };
|
|
24
|
-
}
|
|
25
|
-
export {
|
|
26
|
-
N as createRenderBatcher
|
|
27
|
-
};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { createRenderBatcher as e } from "./batcher.js";
|
|
2
|
-
import { noop as r } from "../../../../motion-utils/dist/es/noop.js";
|
|
3
|
-
const { schedule: m, cancel: n, state: o, steps: c } = /* @__PURE__ */ e(typeof requestAnimationFrame < "u" ? requestAnimationFrame : r, !0);
|
|
4
|
-
export {
|
|
5
|
-
n as cancelFrame,
|
|
6
|
-
m as frame,
|
|
7
|
-
o as frameData,
|
|
8
|
-
c as frameSteps
|
|
9
|
-
};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
const e = [
|
|
2
|
-
"setup",
|
|
3
|
-
// Compute
|
|
4
|
-
"read",
|
|
5
|
-
// Read
|
|
6
|
-
"resolveKeyframes",
|
|
7
|
-
// Write/Read/Write/Read
|
|
8
|
-
"preUpdate",
|
|
9
|
-
// Compute
|
|
10
|
-
"update",
|
|
11
|
-
// Compute
|
|
12
|
-
"preRender",
|
|
13
|
-
// Compute
|
|
14
|
-
"render",
|
|
15
|
-
// Write
|
|
16
|
-
"postRender"
|
|
17
|
-
// Compute
|
|
18
|
-
];
|
|
19
|
-
export {
|
|
20
|
-
e as stepsOrder
|
|
21
|
-
};
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
function F(i, m) {
|
|
2
|
-
let t = /* @__PURE__ */ new Set(), s = /* @__PURE__ */ new Set(), r = !1, n = !1;
|
|
3
|
-
const a = /* @__PURE__ */ new WeakSet();
|
|
4
|
-
let f = {
|
|
5
|
-
delta: 0,
|
|
6
|
-
timestamp: 0,
|
|
7
|
-
isProcessing: !1
|
|
8
|
-
};
|
|
9
|
-
function l(e) {
|
|
10
|
-
a.has(e) && (o.schedule(e), i()), e(f);
|
|
11
|
-
}
|
|
12
|
-
const o = {
|
|
13
|
-
/**
|
|
14
|
-
* Schedule a process to run on the next frame.
|
|
15
|
-
*/
|
|
16
|
-
schedule: (e, d = !1, u = !1) => {
|
|
17
|
-
const c = u && r ? t : s;
|
|
18
|
-
return d && a.add(e), c.add(e), e;
|
|
19
|
-
},
|
|
20
|
-
/**
|
|
21
|
-
* Cancel the provided callback from running on the next frame.
|
|
22
|
-
*/
|
|
23
|
-
cancel: (e) => {
|
|
24
|
-
s.delete(e), a.delete(e);
|
|
25
|
-
},
|
|
26
|
-
/**
|
|
27
|
-
* Execute all schedule callbacks.
|
|
28
|
-
*/
|
|
29
|
-
process: (e) => {
|
|
30
|
-
if (f = e, r) {
|
|
31
|
-
n = !0;
|
|
32
|
-
return;
|
|
33
|
-
}
|
|
34
|
-
r = !0;
|
|
35
|
-
const d = t;
|
|
36
|
-
t = s, s = d, t.forEach(l), t.clear(), r = !1, n && (n = !1, o.process(e));
|
|
37
|
-
}
|
|
38
|
-
};
|
|
39
|
-
return o;
|
|
40
|
-
}
|
|
41
|
-
export {
|
|
42
|
-
F as createRenderStep
|
|
43
|
-
};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { frameData as n } from "./frame.js";
|
|
2
|
-
import { MotionGlobalConfig as i } from "../../../../motion-utils/dist/es/global-config.js";
|
|
3
|
-
let e;
|
|
4
|
-
function t() {
|
|
5
|
-
e = void 0;
|
|
6
|
-
}
|
|
7
|
-
const r = {
|
|
8
|
-
now: () => (e === void 0 && r.set(n.isProcessing || i.useManualTiming ? n.timestamp : performance.now()), e),
|
|
9
|
-
set: (o) => {
|
|
10
|
-
e = o, queueMicrotask(t);
|
|
11
|
-
}
|
|
12
|
-
};
|
|
13
|
-
export {
|
|
14
|
-
r as time
|
|
15
|
-
};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { isDragging as e } from "./is-active.js";
|
|
2
|
-
function l(r) {
|
|
3
|
-
return r === "x" || r === "y" ? e[r] ? null : (e[r] = !0, () => {
|
|
4
|
-
e[r] = !1;
|
|
5
|
-
}) : e.x || e.y ? null : (e.x = e.y = !0, () => {
|
|
6
|
-
e.x = e.y = !1;
|
|
7
|
-
});
|
|
8
|
-
}
|
|
9
|
-
export {
|
|
10
|
-
l as setDragLock
|
|
11
|
-
};
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { isDragActive as P } from "./drag/state/is-active.js";
|
|
2
|
-
import { setupGesture as h } from "./utils/setup.js";
|
|
3
|
-
function m(s) {
|
|
4
|
-
return !(s.pointerType === "touch" || P());
|
|
5
|
-
}
|
|
6
|
-
function D(s, v, f = {}) {
|
|
7
|
-
const [u, n, l] = h(s, f);
|
|
8
|
-
return u.forEach((t) => {
|
|
9
|
-
let d = !1, r = !1, o;
|
|
10
|
-
const E = () => {
|
|
11
|
-
t.removeEventListener("pointerleave", a);
|
|
12
|
-
}, c = (e) => {
|
|
13
|
-
o && (o(e), o = void 0), E();
|
|
14
|
-
}, i = (e) => {
|
|
15
|
-
d = !1, window.removeEventListener("pointerup", i), window.removeEventListener("pointercancel", i), r && (r = !1, c(e));
|
|
16
|
-
}, w = () => {
|
|
17
|
-
d = !0, window.addEventListener("pointerup", i, n), window.addEventListener("pointercancel", i, n);
|
|
18
|
-
}, a = (e) => {
|
|
19
|
-
if (e.pointerType !== "touch") {
|
|
20
|
-
if (d) {
|
|
21
|
-
r = !0;
|
|
22
|
-
return;
|
|
23
|
-
}
|
|
24
|
-
c(e);
|
|
25
|
-
}
|
|
26
|
-
}, L = (e) => {
|
|
27
|
-
if (!m(e))
|
|
28
|
-
return;
|
|
29
|
-
r = !1;
|
|
30
|
-
const p = v(t, e);
|
|
31
|
-
typeof p == "function" && (o = p, t.addEventListener("pointerleave", a, n));
|
|
32
|
-
};
|
|
33
|
-
t.addEventListener("pointerenter", L, n), t.addEventListener("pointerdown", w, n);
|
|
34
|
-
}), l;
|
|
35
|
-
}
|
|
36
|
-
export {
|
|
37
|
-
D as hover
|
|
38
|
-
};
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { isHTMLElement as E } from "../../utils/is-html-element.js";
|
|
2
|
-
import { isDragActive as v } from "../drag/state/is-active.js";
|
|
3
|
-
import { isNodeOrChild as L } from "../utils/is-node-or-child.js";
|
|
4
|
-
import { isPrimaryPointer as g } from "../utils/is-primary-pointer.js";
|
|
5
|
-
import { setupGesture as T } from "../utils/setup.js";
|
|
6
|
-
import { isElementKeyboardAccessible as h } from "./utils/is-keyboard-accessible.js";
|
|
7
|
-
import { enableKeyboardPress as y } from "./utils/keyboard.js";
|
|
8
|
-
import { isPressing as d } from "./utils/state.js";
|
|
9
|
-
function m(s) {
|
|
10
|
-
return g(s) && !v();
|
|
11
|
-
}
|
|
12
|
-
const p = /* @__PURE__ */ new WeakSet();
|
|
13
|
-
function H(s, l, o = {}) {
|
|
14
|
-
const [u, i, w] = T(s, o), P = (e) => {
|
|
15
|
-
const n = e.currentTarget;
|
|
16
|
-
if (!m(e) || p.has(e))
|
|
17
|
-
return;
|
|
18
|
-
d.add(n), o.stopPropagation && p.add(e);
|
|
19
|
-
const t = l(n, e), a = (r, b) => {
|
|
20
|
-
window.removeEventListener("pointerup", c), window.removeEventListener("pointercancel", f), d.has(n) && d.delete(n), m(r) && typeof t == "function" && t(r, { success: b });
|
|
21
|
-
}, c = (r) => {
|
|
22
|
-
a(r, n === window || n === document || o.useGlobalTarget || L(n, r.target));
|
|
23
|
-
}, f = (r) => {
|
|
24
|
-
a(r, !1);
|
|
25
|
-
};
|
|
26
|
-
window.addEventListener("pointerup", c, i), window.addEventListener("pointercancel", f, i);
|
|
27
|
-
};
|
|
28
|
-
return u.forEach((e) => {
|
|
29
|
-
(o.useGlobalTarget ? window : e).addEventListener("pointerdown", P, i), E(e) && (e.addEventListener("focus", (t) => y(t, i)), !h(e) && !e.hasAttribute("tabindex") && (e.tabIndex = 0));
|
|
30
|
-
}), w;
|
|
31
|
-
}
|
|
32
|
-
export {
|
|
33
|
-
H as press
|
|
34
|
-
};
|