@code0-tech/pictor 1.0.0 → 1.1.0
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/__vite-optional-peer-dep_@emotion/is-prop-valid_framer-motion.js +6 -0
- package/dist/_virtual/rolldown_runtime.js +18 -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 +34 -41
- package/dist/components/aurora/Aurora.js +27 -22
- package/dist/components/avatar/Avatar.js +57 -55
- package/dist/components/badge/Badge.js +58 -64
- package/dist/components/breadcrumb/Breadcrumb.js +16 -21
- package/dist/components/button/Button.js +24 -31
- package/dist/components/button-group/ButtonGroup.js +29 -31
- package/dist/components/card/Card.js +30 -44
- package/dist/components/card/CardSection.js +21 -29
- package/dist/components/chart/Chart.js +138 -153
- package/dist/components/chart/LineChart.js +75 -74
- package/dist/components/chart/index.js +3 -8
- package/dist/components/col/Col.js +19 -29
- package/dist/components/command/Command.js +101 -134
- package/dist/components/container/Container.js +19 -23
- package/dist/components/context-menu/ContextMenu.js +119 -112
- package/dist/components/data-table/DataTable.js +53 -64
- package/dist/components/data-table/DataTableColumn.js +18 -22
- package/dist/components/data-table/DataTableFilterInput.js +208 -205
- package/dist/components/data-table/DataTableFilterSuggestionMenu.js +59 -48
- package/dist/components/data-table/DataTableHeader.js +34 -38
- package/dist/components/data-table/DataTablePagination.js +62 -74
- package/dist/components/data-table/index.js +7 -22
- package/dist/components/dialog/Dialog.js +107 -97
- package/dist/components/editor/Editor.js +352 -323
- package/dist/components/file-tabs/FileTabs.js +78 -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 +19 -23
- package/dist/components/form/CheckboxInput.js +73 -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 +93 -123
- package/dist/components/form/Input.js +64 -58
- package/dist/components/form/Input.utils.js +25 -37
- package/dist/components/form/InputDescription.js +11 -11
- package/dist/components/form/InputLabel.js +18 -22
- package/dist/components/form/InputMessage.js +17 -17
- package/dist/components/form/InputWrapper.js +56 -65
- package/dist/components/form/NumberInput.js +41 -20
- package/dist/components/form/PasswordInput.js +71 -54
- package/dist/components/form/PinInput.js +50 -65
- package/dist/components/form/RadioGroup.js +42 -50
- package/dist/components/form/RadioInput.js +31 -29
- package/dist/components/form/SelectInput.js +69 -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 +28 -27
- package/dist/components/gantt/Gantt.js +100 -98
- package/dist/components/gantt/GanttGroup.js +210 -195
- package/dist/components/gantt/GanttHeader.js +79 -81
- package/dist/components/gantt/GanttItem.js +19 -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 +120 -109
- package/dist/components/layout/Layout.js +101 -78
- package/dist/components/menu/Menu.js +135 -128
- package/dist/components/progress/ProgressCircle.js +60 -49
- package/dist/components/progress/ProgressLinear.js +39 -43
- package/dist/components/quote/Quote.js +52 -43
- package/dist/components/resizable/Resizable.js +36 -33
- package/dist/components/row/Row.js +19 -23
- package/dist/components/scroll-area/ScrollArea.js +66 -76
- package/dist/components/segmented-control/SegmentedControl.js +46 -50
- package/dist/components/spacing/Spacing.js +16 -23
- package/dist/components/tab/Tab.js +73 -66
- package/dist/components/text/Text.js +19 -25
- package/dist/components/toast/Toast.js +104 -82
- package/dist/components/tooltip/Tooltip.js +66 -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/framer-motion/dist/es/components/AnimatePresence/PopChild.js +55 -55
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PresenceChild.js +49 -32
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/index.js +57 -46
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/use-presence.js +17 -16
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/utils.js +8 -11
- package/dist/node_modules/framer-motion/dist/es/context/LayoutGroupContext.js +4 -5
- package/dist/node_modules/framer-motion/dist/es/context/LazyContext.js +4 -5
- package/dist/node_modules/framer-motion/dist/es/context/MotionConfigContext.js +7 -8
- package/dist/node_modules/framer-motion/dist/es/context/MotionContext/create.js +13 -11
- package/dist/node_modules/framer-motion/dist/es/context/MotionContext/index.js +4 -5
- package/dist/node_modules/framer-motion/dist/es/context/MotionContext/utils.js +12 -14
- package/dist/node_modules/framer-motion/dist/es/context/PresenceContext.js +4 -5
- package/dist/node_modules/framer-motion/dist/es/context/SwitchLayoutGroupContext.js +4 -5
- package/dist/node_modules/framer-motion/dist/es/events/add-pointer-event.js +5 -7
- package/dist/node_modules/framer-motion/dist/es/events/event-info.js +8 -13
- package/dist/node_modules/framer-motion/dist/es/gestures/drag/VisualElementDragControls.js +252 -281
- package/dist/node_modules/framer-motion/dist/es/gestures/drag/index.js +19 -21
- package/dist/node_modules/framer-motion/dist/es/gestures/drag/utils/constraints.js +57 -67
- package/dist/node_modules/framer-motion/dist/es/gestures/focus.js +24 -27
- package/dist/node_modules/framer-motion/dist/es/gestures/hover.js +16 -19
- package/dist/node_modules/framer-motion/dist/es/gestures/pan/PanSession.js +130 -124
- package/dist/node_modules/framer-motion/dist/es/gestures/pan/index.js +39 -42
- package/dist/node_modules/framer-motion/dist/es/gestures/press.js +22 -27
- package/dist/node_modules/framer-motion/dist/es/motion/features/animation/exit.js +36 -44
- package/dist/node_modules/framer-motion/dist/es/motion/features/animation/index.js +22 -32
- package/dist/node_modules/framer-motion/dist/es/motion/features/animations.js +6 -12
- package/dist/node_modules/framer-motion/dist/es/motion/features/definitions.js +47 -37
- package/dist/node_modules/framer-motion/dist/es/motion/features/drag.js +12 -16
- package/dist/node_modules/framer-motion/dist/es/motion/features/gestures.js +10 -20
- package/dist/node_modules/framer-motion/dist/es/motion/features/layout/MeasureLayout.js +58 -59
- package/dist/node_modules/framer-motion/dist/es/motion/features/layout.js +7 -11
- package/dist/node_modules/framer-motion/dist/es/motion/features/load-features.js +10 -13
- package/dist/node_modules/framer-motion/dist/es/motion/features/viewport/index.js +42 -43
- package/dist/node_modules/framer-motion/dist/es/motion/features/viewport/observers.js +19 -18
- package/dist/node_modules/framer-motion/dist/es/motion/index.js +64 -58
- package/dist/node_modules/framer-motion/dist/es/motion/utils/symbol.js +2 -4
- package/dist/node_modules/framer-motion/dist/es/motion/utils/use-motion-ref.js +18 -20
- package/dist/node_modules/framer-motion/dist/es/motion/utils/use-visual-element.js +53 -62
- package/dist/node_modules/framer-motion/dist/es/motion/utils/use-visual-state.js +45 -49
- package/dist/node_modules/framer-motion/dist/es/motion/utils/valid-prop.js +4 -38
- package/dist/node_modules/framer-motion/dist/es/render/components/create-proxy.js +7 -17
- package/dist/node_modules/framer-motion/dist/es/render/components/m/proxy.js +3 -0
- package/dist/node_modules/framer-motion/dist/es/render/components/motion/feature-bundle.js +10 -12
- package/dist/node_modules/framer-motion/dist/es/render/components/motion/proxy.js +5 -7
- package/dist/node_modules/framer-motion/dist/es/render/dom/create-visual-element.js +6 -10
- package/dist/node_modules/framer-motion/dist/es/render/dom/use-render.js +18 -15
- package/dist/node_modules/framer-motion/dist/es/render/dom/utils/filter-props.js +14 -18
- package/dist/node_modules/framer-motion/dist/es/render/dom/utils/is-svg-component.js +4 -23
- package/dist/node_modules/framer-motion/dist/es/render/html/use-html-visual-state.js +8 -9
- package/dist/node_modules/framer-motion/dist/es/render/html/use-props.js +20 -23
- package/dist/node_modules/framer-motion/dist/es/render/html/utils/create-render-state.js +6 -8
- package/dist/node_modules/framer-motion/dist/es/render/svg/lowercase-elements.js +27 -29
- package/dist/node_modules/framer-motion/dist/es/render/svg/use-props.js +23 -21
- package/dist/node_modules/framer-motion/dist/es/render/svg/use-svg-visual-state.js +8 -9
- package/dist/node_modules/framer-motion/dist/es/render/svg/utils/create-render-state.js +5 -7
- package/dist/node_modules/framer-motion/dist/es/utils/distance.js +5 -8
- package/dist/node_modules/framer-motion/dist/es/utils/get-context-window.js +2 -4
- package/dist/node_modules/framer-motion/dist/es/utils/is-browser.js +2 -4
- package/dist/node_modules/framer-motion/dist/es/utils/is-ref-object.js +3 -5
- package/dist/node_modules/framer-motion/dist/es/utils/reduced-motion/use-reduced-motion.js +10 -11
- package/dist/node_modules/framer-motion/dist/es/utils/use-composed-ref.js +20 -25
- package/dist/node_modules/framer-motion/dist/es/utils/use-constant.js +6 -7
- package/dist/node_modules/framer-motion/dist/es/utils/use-isomorphic-effect.js +5 -6
- package/dist/node_modules/motion/dist/es/react.js +196 -0
- package/dist/node_modules/motion-dom/dist/es/animation/AsyncMotionValueAnimation.js +104 -111
- package/dist/node_modules/motion-dom/dist/es/animation/JSAnimation.js +126 -143
- package/dist/node_modules/motion-dom/dist/es/animation/NativeAnimation.js +81 -105
- package/dist/node_modules/motion-dom/dist/es/animation/NativeAnimationExtended.js +25 -37
- package/dist/node_modules/motion-dom/dist/es/animation/animate/single-value.js +7 -9
- package/dist/node_modules/motion-dom/dist/es/animation/drivers/frame.js +10 -16
- package/dist/node_modules/motion-dom/dist/es/animation/generators/inertia.js +29 -36
- package/dist/node_modules/motion-dom/dist/es/animation/generators/keyframes.js +18 -28
- package/dist/node_modules/motion-dom/dist/es/animation/generators/spring.js +156 -170
- package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/calc-duration.js +6 -12
- package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/create-generator-easing.js +13 -12
- package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/is-generator.js +3 -5
- package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/velocity.js +6 -8
- package/dist/node_modules/motion-dom/dist/es/animation/interfaces/motion-value.js +42 -45
- package/dist/node_modules/motion-dom/dist/es/animation/interfaces/visual-element-target.js +52 -57
- package/dist/node_modules/motion-dom/dist/es/animation/interfaces/visual-element-variant.js +22 -27
- package/dist/node_modules/motion-dom/dist/es/animation/interfaces/visual-element.js +18 -21
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/DOMKeyframesResolver.js +58 -67
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/KeyframesResolver.js +61 -70
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/get-final.js +5 -7
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/offsets/default.js +5 -7
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/offsets/fill.js +9 -11
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/offsets/time.js +3 -5
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/fill-wildcards.js +3 -6
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/is-none.js +4 -6
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/make-none-animatable.js +15 -15
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/unit-conversion.js +32 -35
- package/dist/node_modules/motion-dom/dist/es/animation/optimized-appear/data-id.js +3 -6
- package/dist/node_modules/motion-dom/dist/es/animation/optimized-appear/get-appear-id.js +4 -6
- package/dist/node_modules/motion-dom/dist/es/animation/utils/WithPromise.js +19 -26
- package/dist/node_modules/motion-dom/dist/es/animation/utils/calc-child-stagger.js +4 -6
- package/dist/node_modules/motion-dom/dist/es/animation/utils/can-animate.js +14 -21
- package/dist/node_modules/motion-dom/dist/es/animation/utils/css-variables-conversion.js +21 -29
- package/dist/node_modules/motion-dom/dist/es/animation/utils/default-transitions.js +25 -22
- package/dist/node_modules/motion-dom/dist/es/animation/utils/get-value-transition.js +5 -7
- package/dist/node_modules/motion-dom/dist/es/animation/utils/is-animatable.js +3 -7
- package/dist/node_modules/motion-dom/dist/es/animation/utils/is-css-variable.js +4 -8
- package/dist/node_modules/motion-dom/dist/es/animation/utils/is-transition-defined.js +15 -19
- package/dist/node_modules/motion-dom/dist/es/animation/utils/make-animation-instant.js +3 -5
- package/dist/node_modules/motion-dom/dist/es/animation/utils/replace-transition-type.js +12 -14
- package/dist/node_modules/motion-dom/dist/es/animation/utils/resolve-transition.js +10 -9
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/easing/cubic-bezier.js +2 -4
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/easing/map-easing.js +8 -11
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/easing/supported.js +32 -14
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/start-waapi-animation.js +16 -20
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/supports/waapi.js +21 -32
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/accelerated-values.js +7 -11
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/apply-generator.js +5 -7
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/is-browser-color.js +5 -9
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/linear.js +5 -9
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/unsupported-easing.js +12 -14
- package/dist/node_modules/motion-dom/dist/es/events/add-dom-event.js +3 -5
- package/dist/node_modules/motion-dom/dist/es/frameloop/batcher.js +27 -26
- package/dist/node_modules/motion-dom/dist/es/frameloop/frame.js +4 -9
- package/dist/node_modules/motion-dom/dist/es/frameloop/microtask.js +3 -5
- package/dist/node_modules/motion-dom/dist/es/frameloop/order.js +10 -20
- package/dist/node_modules/motion-dom/dist/es/frameloop/render-step.js +29 -42
- package/dist/node_modules/motion-dom/dist/es/frameloop/sync-time.js +11 -13
- package/dist/node_modules/motion-dom/dist/es/gestures/drag/state/is-active.js +6 -9
- package/dist/node_modules/motion-dom/dist/es/gestures/drag/state/set-active.js +8 -10
- package/dist/node_modules/motion-dom/dist/es/gestures/hover.js +32 -36
- package/dist/node_modules/motion-dom/dist/es/gestures/press/index.js +32 -32
- package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/is-keyboard-accessible.js +16 -15
- package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/keyboard.js +23 -24
- package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/state.js +2 -4
- package/dist/node_modules/motion-dom/dist/es/gestures/utils/is-node-or-child.js +2 -4
- package/dist/node_modules/motion-dom/dist/es/gestures/utils/is-primary-pointer.js +2 -4
- package/dist/node_modules/motion-dom/dist/es/gestures/utils/setup.js +13 -11
- package/dist/node_modules/motion-dom/dist/es/projection/animation/mix-values.js +20 -29
- package/dist/node_modules/motion-dom/dist/es/projection/geometry/conversion.js +34 -22
- package/dist/node_modules/motion-dom/dist/es/projection/geometry/copy.js +7 -11
- package/dist/node_modules/motion-dom/dist/es/projection/geometry/delta-apply.js +41 -53
- package/dist/node_modules/motion-dom/dist/es/projection/geometry/delta-calc.js +28 -38
- package/dist/node_modules/motion-dom/dist/es/projection/geometry/delta-remove.js +23 -21
- package/dist/node_modules/motion-dom/dist/es/projection/geometry/models.js +15 -17
- package/dist/node_modules/motion-dom/dist/es/projection/geometry/utils.js +18 -26
- package/dist/node_modules/motion-dom/dist/es/projection/node/DocumentProjectionNode.js +10 -12
- package/dist/node_modules/motion-dom/dist/es/projection/node/HTMLProjectionNode.js +19 -24
- package/dist/node_modules/motion-dom/dist/es/projection/node/create-projection-node.js +554 -592
- package/dist/node_modules/motion-dom/dist/es/projection/node/state.js +4 -14
- package/dist/node_modules/motion-dom/dist/es/projection/shared/stack.js +48 -52
- package/dist/node_modules/motion-dom/dist/es/projection/styles/scale-border-radius.js +10 -20
- package/dist/node_modules/motion-dom/dist/es/projection/styles/scale-box-shadow.js +11 -16
- package/dist/node_modules/motion-dom/dist/es/projection/styles/scale-correction.js +14 -20
- package/dist/node_modules/motion-dom/dist/es/projection/styles/transform.js +9 -12
- package/dist/node_modules/motion-dom/dist/es/projection/utils/compare-by-depth.js +2 -4
- package/dist/node_modules/motion-dom/dist/es/projection/utils/each-axis.js +3 -5
- package/dist/node_modules/motion-dom/dist/es/projection/utils/flat-tree.js +16 -18
- package/dist/node_modules/motion-dom/dist/es/projection/utils/has-transform.js +11 -15
- package/dist/node_modules/motion-dom/dist/es/projection/utils/measure.js +8 -11
- package/dist/node_modules/motion-dom/dist/es/render/Feature.js +6 -9
- package/dist/node_modules/motion-dom/dist/es/render/VisualElement.js +198 -260
- package/dist/node_modules/motion-dom/dist/es/render/dom/DOMVisualElement.js +25 -27
- package/dist/node_modules/motion-dom/dist/es/render/dom/is-css-var.js +2 -4
- package/dist/node_modules/motion-dom/dist/es/render/dom/parse-transform.js +49 -60
- package/dist/node_modules/motion-dom/dist/es/render/dom/style-set.js +4 -6
- package/dist/node_modules/motion-dom/dist/es/render/dom/utils/camel-to-dash.js +3 -5
- package/dist/node_modules/motion-dom/dist/es/render/html/HTMLVisualElement.js +35 -35
- package/dist/node_modules/motion-dom/dist/es/render/html/utils/build-styles.js +25 -28
- package/dist/node_modules/motion-dom/dist/es/render/html/utils/build-transform.js +33 -37
- package/dist/node_modules/motion-dom/dist/es/render/html/utils/render.js +5 -11
- package/dist/node_modules/motion-dom/dist/es/render/html/utils/scrape-motion-values.js +8 -12
- package/dist/node_modules/motion-dom/dist/es/render/store.js +2 -4
- package/dist/node_modules/motion-dom/dist/es/render/svg/SVGVisualElement.js +37 -39
- package/dist/node_modules/motion-dom/dist/es/render/svg/utils/build-attrs.js +18 -30
- package/dist/node_modules/motion-dom/dist/es/render/svg/utils/camel-case-attrs.js +25 -27
- package/dist/node_modules/motion-dom/dist/es/render/svg/utils/is-svg-tag.js +2 -4
- package/dist/node_modules/motion-dom/dist/es/render/svg/utils/path.js +11 -13
- package/dist/node_modules/motion-dom/dist/es/render/svg/utils/render.js +6 -10
- package/dist/node_modules/motion-dom/dist/es/render/svg/utils/scrape-motion-values.js +11 -14
- package/dist/node_modules/motion-dom/dist/es/render/utils/animation-state.js +128 -138
- package/dist/node_modules/motion-dom/dist/es/render/utils/get-variant-context.js +16 -19
- package/dist/node_modules/motion-dom/dist/es/render/utils/is-animation-controls.js +3 -5
- package/dist/node_modules/motion-dom/dist/es/render/utils/is-controlling-variants.js +8 -11
- package/dist/node_modules/motion-dom/dist/es/render/utils/is-forced-motion-value.js +5 -8
- package/dist/node_modules/motion-dom/dist/es/render/utils/is-keyframes-target.js +2 -4
- package/dist/node_modules/motion-dom/dist/es/render/utils/is-variant-label.js +3 -5
- package/dist/node_modules/motion-dom/dist/es/render/utils/keys-position.js +10 -12
- package/dist/node_modules/motion-dom/dist/es/render/utils/keys-transform.js +20 -23
- package/dist/node_modules/motion-dom/dist/es/render/utils/motion-values.js +18 -24
- package/dist/node_modules/motion-dom/dist/es/render/utils/reduced-motion/index.js +8 -14
- package/dist/node_modules/motion-dom/dist/es/render/utils/reduced-motion/state.js +2 -5
- package/dist/node_modules/motion-dom/dist/es/render/utils/resolve-dynamic-variants.js +5 -7
- package/dist/node_modules/motion-dom/dist/es/render/utils/resolve-variants.js +16 -18
- package/dist/node_modules/motion-dom/dist/es/render/utils/setters.js +14 -18
- package/dist/node_modules/motion-dom/dist/es/render/utils/shallow-compare.js +7 -13
- package/dist/node_modules/motion-dom/dist/es/render/utils/variant-props.js +10 -13
- package/dist/node_modules/motion-dom/dist/es/resize/handle-element.js +31 -35
- package/dist/node_modules/motion-dom/dist/es/resize/handle-window.js +18 -21
- package/dist/node_modules/motion-dom/dist/es/resize/index.js +5 -7
- package/dist/node_modules/motion-dom/dist/es/stats/buffer.js +5 -0
- package/dist/node_modules/motion-dom/dist/es/utils/border-radius.js +7 -0
- package/dist/node_modules/motion-dom/dist/es/utils/delay.js +9 -11
- package/dist/node_modules/motion-dom/dist/es/utils/interpolate.js +29 -40
- package/dist/node_modules/motion-dom/dist/es/utils/is-html-element.js +4 -6
- package/dist/node_modules/motion-dom/dist/es/utils/is-svg-element.js +4 -6
- package/dist/node_modules/motion-dom/dist/es/utils/is-svg-svg-element.js +4 -6
- package/dist/node_modules/motion-dom/dist/es/utils/mix/color.js +26 -27
- package/dist/node_modules/motion-dom/dist/es/utils/mix/complex.js +44 -45
- package/dist/node_modules/motion-dom/dist/es/utils/mix/immediate.js +3 -5
- package/dist/node_modules/motion-dom/dist/es/utils/mix/index.js +5 -7
- package/dist/node_modules/motion-dom/dist/es/utils/mix/number.js +2 -4
- package/dist/node_modules/motion-dom/dist/es/utils/mix/visibility.js +4 -7
- package/dist/node_modules/motion-dom/dist/es/utils/resolve-elements.js +11 -14
- package/dist/node_modules/motion-dom/dist/es/utils/supports/flags.js +2 -4
- package/dist/node_modules/motion-dom/dist/es/utils/supports/linear-easing.js +9 -11
- package/dist/node_modules/motion-dom/dist/es/utils/supports/memo.js +6 -8
- package/dist/node_modules/motion-dom/dist/es/utils/supports/scroll-timeline.js +3 -5
- package/dist/node_modules/motion-dom/dist/es/value/index.js +89 -211
- package/dist/node_modules/motion-dom/dist/es/value/types/auto.js +4 -6
- package/dist/node_modules/motion-dom/dist/es/value/types/color/hex.js +15 -17
- package/dist/node_modules/motion-dom/dist/es/value/types/color/hsla-to-rgba.js +17 -20
- package/dist/node_modules/motion-dom/dist/es/value/types/color/hsla.js +9 -11
- package/dist/node_modules/motion-dom/dist/es/value/types/color/index.js +12 -14
- package/dist/node_modules/motion-dom/dist/es/value/types/color/rgba.js +12 -15
- package/dist/node_modules/motion-dom/dist/es/value/types/color/utils.js +13 -17
- package/dist/node_modules/motion-dom/dist/es/value/types/complex/filter.js +22 -22
- package/dist/node_modules/motion-dom/dist/es/value/types/complex/index.js +43 -44
- package/dist/node_modules/motion-dom/dist/es/value/types/complex/mask.js +11 -10
- package/dist/node_modules/motion-dom/dist/es/value/types/dimensions.js +14 -9
- package/dist/node_modules/motion-dom/dist/es/value/types/int.js +5 -7
- package/dist/node_modules/motion-dom/dist/es/value/types/maps/defaults.js +22 -27
- package/dist/node_modules/motion-dom/dist/es/value/types/maps/number.js +61 -69
- package/dist/node_modules/motion-dom/dist/es/value/types/maps/transform.js +29 -36
- package/dist/node_modules/motion-dom/dist/es/value/types/numbers/index.js +12 -16
- package/dist/node_modules/motion-dom/dist/es/value/types/numbers/units.js +10 -17
- package/dist/node_modules/motion-dom/dist/es/value/types/test.js +2 -4
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/animatable-none.js +9 -11
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/color-regex.js +2 -4
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/find.js +10 -8
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/float-regex.js +2 -4
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/get-as-type.js +2 -4
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/is-nullish.js +3 -5
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/sanitize.js +2 -4
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/single-color-regex.js +2 -4
- package/dist/node_modules/motion-dom/dist/es/value/utils/is-motion-value.js +2 -4
- package/dist/node_modules/motion-dom/dist/es/value/utils/resolve-motion-value.js +4 -6
- package/dist/node_modules/motion-dom/dist/es/value/will-change/add-will-change.js +10 -13
- package/dist/node_modules/motion-dom/dist/es/value/will-change/is.js +4 -6
- package/dist/node_modules/motion-utils/dist/es/array.js +6 -9
- package/dist/node_modules/motion-utils/dist/es/clamp.js +2 -4
- package/dist/node_modules/motion-utils/dist/es/easing/anticipate.js +3 -5
- package/dist/node_modules/motion-utils/dist/es/easing/back.js +5 -9
- package/dist/node_modules/motion-utils/dist/es/easing/circ.js +4 -8
- package/dist/node_modules/motion-utils/dist/es/easing/cubic-bezier.js +14 -17
- package/dist/node_modules/motion-utils/dist/es/easing/ease.js +3 -7
- package/dist/node_modules/motion-utils/dist/es/easing/modifiers/mirror.js +2 -4
- package/dist/node_modules/motion-utils/dist/es/easing/modifiers/reverse.js +2 -4
- package/dist/node_modules/motion-utils/dist/es/easing/utils/is-bezier-definition.js +2 -4
- package/dist/node_modules/motion-utils/dist/es/easing/utils/is-easing-array.js +2 -4
- package/dist/node_modules/motion-utils/dist/es/easing/utils/map.js +28 -31
- package/dist/node_modules/motion-utils/dist/es/errors.js +7 -13
- package/dist/node_modules/motion-utils/dist/es/format-error-message.js +3 -5
- package/dist/node_modules/motion-utils/dist/es/global-config.js +2 -4
- package/dist/node_modules/motion-utils/dist/es/is-numerical-string.js +2 -4
- package/dist/node_modules/motion-utils/dist/es/is-object.js +2 -4
- package/dist/node_modules/motion-utils/dist/es/is-zero-value-string.js +2 -4
- package/dist/node_modules/motion-utils/dist/es/memo.js +5 -7
- package/dist/node_modules/motion-utils/dist/es/noop.js +2 -4
- package/dist/node_modules/motion-utils/dist/es/pipe.js +2 -4
- package/dist/node_modules/motion-utils/dist/es/progress.js +4 -6
- package/dist/node_modules/motion-utils/dist/es/subscription-manager.js +23 -28
- package/dist/node_modules/motion-utils/dist/es/time-conversion.js +2 -5
- package/dist/node_modules/motion-utils/dist/es/velocity-per-second.js +2 -4
- package/dist/node_modules/motion-utils/dist/es/warn-once.js +5 -7
- 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/node_modules/react/cjs/react-compiler-runtime.development.js +21 -21
- package/dist/node_modules/react/cjs/react-compiler-runtime.production.js +18 -14
- package/dist/node_modules/react/compiler-runtime.js +8 -10
- 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 +48 -58
- package/dist/utils/index.js +7 -29
- package/dist/utils/motion.js +85 -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 +25 -20
- 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/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,12 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
function
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
import { progress } from "../../../../../../motion-utils/dist/es/progress.js";
|
|
2
|
+
import { mixNumber } from "../../../utils/mix/number.js";
|
|
3
|
+
function fillOffset(n, r) {
|
|
4
|
+
let i = n[n.length - 1];
|
|
5
|
+
for (let a = 1; a <= r; a++) {
|
|
6
|
+
let o = progress(0, r, a);
|
|
7
|
+
n.push(mixNumber(i, 1, o));
|
|
8
|
+
}
|
|
9
9
|
}
|
|
10
|
-
export {
|
|
11
|
-
l as fillOffset
|
|
12
|
-
};
|
|
10
|
+
export { fillOffset };
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import { isZeroValueString
|
|
2
|
-
function t
|
|
3
|
-
|
|
1
|
+
import { isZeroValueString } from "../../../../../../motion-utils/dist/es/is-zero-value-string.js";
|
|
2
|
+
function isNone(t) {
|
|
3
|
+
return typeof t == "number" ? t === 0 : t === null ? !0 : t === "none" || t === "0" || isZeroValueString(t);
|
|
4
4
|
}
|
|
5
|
-
export {
|
|
6
|
-
t as isNone
|
|
7
|
-
};
|
|
5
|
+
export { isNone };
|
package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/make-none-animatable.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { analyseComplexValue
|
|
2
|
-
import { getAnimatableNone
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
1
|
+
import { analyseComplexValue } from "../../../value/types/complex/index.js";
|
|
2
|
+
import { getAnimatableNone } from "../../../value/types/utils/animatable-none.js";
|
|
3
|
+
var invalidTemplates = new Set([
|
|
4
|
+
"auto",
|
|
5
|
+
"none",
|
|
6
|
+
"0"
|
|
7
|
+
]);
|
|
8
|
+
function makeNoneKeyframesAnimatable(r, i, a) {
|
|
9
|
+
let o = 0, s;
|
|
10
|
+
for (; o < r.length && !s;) {
|
|
11
|
+
let n = r[o];
|
|
12
|
+
typeof n == "string" && !invalidTemplates.has(n) && analyseComplexValue(n).values.length && (s = r[o]), o++;
|
|
13
|
+
}
|
|
14
|
+
if (s && a) for (let e of i) r[e] = getAnimatableNone(a, s);
|
|
13
15
|
}
|
|
14
|
-
export {
|
|
15
|
-
g as makeNoneKeyframesAnimatable
|
|
16
|
-
};
|
|
16
|
+
export { makeNoneKeyframesAnimatable };
|
|
@@ -1,37 +1,34 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
1
|
+
import { number } from "../../../value/types/numbers/index.js";
|
|
2
|
+
import { px } from "../../../value/types/numbers/units.js";
|
|
3
|
+
import { parseValueFromTransform } from "../../../render/dom/parse-transform.js";
|
|
4
|
+
import { transformPropOrder } from "../../../render/utils/keys-transform.js";
|
|
5
|
+
var isNumOrPxType = (o) => o === number || o === px, transformKeys = new Set([
|
|
6
|
+
"x",
|
|
7
|
+
"y",
|
|
8
|
+
"z"
|
|
9
|
+
]), nonTranslationalTransformKeys = transformPropOrder.filter((e) => !transformKeys.has(e));
|
|
10
|
+
function removeNonTranslationalTransform(e) {
|
|
11
|
+
let a = [];
|
|
12
|
+
return nonTranslationalTransformKeys.forEach((o) => {
|
|
13
|
+
let s = e.getValue(o);
|
|
14
|
+
s !== void 0 && (a.push([o, s.get()]), s.set(o.startsWith("scale") ? 1 : 0));
|
|
15
|
+
}), a;
|
|
12
16
|
}
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
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
|
|
17
|
+
var positionalValues = {
|
|
18
|
+
width: ({ x: e }, { paddingLeft: a = "0", paddingRight: o = "0", boxSizing: s }) => {
|
|
19
|
+
let c = e.max - e.min;
|
|
20
|
+
return s === "border-box" ? c : c - parseFloat(a) - parseFloat(o);
|
|
21
|
+
},
|
|
22
|
+
height: ({ y: e }, { paddingTop: a = "0", paddingBottom: o = "0", boxSizing: s }) => {
|
|
23
|
+
let c = e.max - e.min;
|
|
24
|
+
return s === "border-box" ? c : c - parseFloat(a) - parseFloat(o);
|
|
25
|
+
},
|
|
26
|
+
top: (e, { top: a }) => parseFloat(a),
|
|
27
|
+
left: (e, { left: a }) => parseFloat(a),
|
|
28
|
+
bottom: ({ y: e }, { top: a }) => parseFloat(a) + (e.max - e.min),
|
|
29
|
+
right: ({ x: e }, { left: a }) => parseFloat(a) + (e.max - e.min),
|
|
30
|
+
x: (e, { transform: a }) => parseValueFromTransform(a, "x"),
|
|
31
|
+
y: (e, { transform: a }) => parseValueFromTransform(a, "y")
|
|
37
32
|
};
|
|
33
|
+
positionalValues.translateX = positionalValues.x, positionalValues.translateY = positionalValues.y;
|
|
34
|
+
export { isNumOrPxType, positionalValues, removeNonTranslationalTransform };
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
import { camelToDash
|
|
2
|
-
|
|
3
|
-
export {
|
|
4
|
-
e as optimizedAppearDataAttribute,
|
|
5
|
-
t as optimizedAppearDataId
|
|
6
|
-
};
|
|
1
|
+
import { camelToDash } from "../../render/dom/utils/camel-to-dash.js";
|
|
2
|
+
var optimizedAppearDataId = "framerAppearId", optimizedAppearDataAttribute = "data-" + camelToDash(optimizedAppearDataId);
|
|
3
|
+
export { optimizedAppearDataAttribute, optimizedAppearDataId };
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import { optimizedAppearDataAttribute
|
|
2
|
-
function
|
|
3
|
-
|
|
1
|
+
import { optimizedAppearDataAttribute } from "./data-id.js";
|
|
2
|
+
function getOptimisedAppearId(t) {
|
|
3
|
+
return t.props[optimizedAppearDataAttribute];
|
|
4
4
|
}
|
|
5
|
-
export {
|
|
6
|
-
e as getOptimisedAppearId
|
|
7
|
-
};
|
|
5
|
+
export { getOptimisedAppearId };
|
|
@@ -1,27 +1,20 @@
|
|
|
1
|
-
class
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
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
|
|
1
|
+
var WithPromise = class {
|
|
2
|
+
constructor() {
|
|
3
|
+
this.updateFinished();
|
|
4
|
+
}
|
|
5
|
+
get finished() {
|
|
6
|
+
return this._finished;
|
|
7
|
+
}
|
|
8
|
+
updateFinished() {
|
|
9
|
+
this._finished = new Promise((e) => {
|
|
10
|
+
this.resolve = e;
|
|
11
|
+
});
|
|
12
|
+
}
|
|
13
|
+
notifyFinished() {
|
|
14
|
+
this.resolve();
|
|
15
|
+
}
|
|
16
|
+
then(e, t) {
|
|
17
|
+
return this.finished.then(e, t);
|
|
18
|
+
}
|
|
27
19
|
};
|
|
20
|
+
export { WithPromise };
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
function
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
function calcChildStagger(e, t, n, r = 0, i = 1) {
|
|
2
|
+
let a = Array.from(e).sort((e, t) => e.sortNodePosition(t)).indexOf(t), o = e.size, s = (o - 1) * r;
|
|
3
|
+
return typeof n == "function" ? n(a, o) : i === 1 ? a * r : s - a * r;
|
|
4
4
|
}
|
|
5
|
-
export {
|
|
6
|
-
x as calcChildStagger
|
|
7
|
-
};
|
|
5
|
+
export { calcChildStagger };
|
|
@@ -1,23 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
function
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
for (let n = 0; n < t.length; n++)
|
|
9
|
-
if (t[n] !== i)
|
|
10
|
-
return !0;
|
|
1
|
+
import { warning } from "../../../../../motion-utils/dist/es/errors.js";
|
|
2
|
+
import { isGenerator } from "../generators/utils/is-generator.js";
|
|
3
|
+
import { isAnimatable } from "./is-animatable.js";
|
|
4
|
+
function hasKeyframesChanged(e) {
|
|
5
|
+
let n = e[0];
|
|
6
|
+
if (e.length === 1) return !0;
|
|
7
|
+
for (let r = 0; r < e.length; r++) if (e[r] !== n) return !0;
|
|
11
8
|
}
|
|
12
|
-
function
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
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;
|
|
9
|
+
function canAnimate(i, a, o, s) {
|
|
10
|
+
let c = i[0];
|
|
11
|
+
if (c === null) return !1;
|
|
12
|
+
if (a === "display" || a === "visibility") return !0;
|
|
13
|
+
let l = i[i.length - 1], u = isAnimatable(c, a), d = isAnimatable(l, a);
|
|
14
|
+
return warning(u === d, `You are trying to animate ${a} from "${c}" to "${l}". "${u ? l : c}" is not an animatable value.`, "value-not-animatable"), !u || !d ? !1 : hasKeyframesChanged(i) || (o === "spring" || isGenerator(o)) && s;
|
|
20
15
|
}
|
|
21
|
-
export {
|
|
22
|
-
h as canAnimate
|
|
23
|
-
};
|
|
16
|
+
export { canAnimate };
|
|
@@ -1,31 +1,23 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
);
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
if (!e)
|
|
11
|
-
return [,];
|
|
12
|
-
const [, r, i, t] = e;
|
|
13
|
-
return [`--${r ?? i}`, t];
|
|
1
|
+
import { invariant } from "../../../../../motion-utils/dist/es/errors.js";
|
|
2
|
+
import { isNumericalString } from "../../../../../motion-utils/dist/es/is-numerical-string.js";
|
|
3
|
+
import { isCSSVariableToken } from "./is-css-variable.js";
|
|
4
|
+
var splitCSSVariableRegex = /^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;
|
|
5
|
+
function parseCSSVariable(e) {
|
|
6
|
+
let n = splitCSSVariableRegex.exec(e);
|
|
7
|
+
if (!n) return [,];
|
|
8
|
+
let [, r, a, o] = n;
|
|
9
|
+
return [`--${r ?? a}`, o];
|
|
14
10
|
}
|
|
15
|
-
|
|
16
|
-
function
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
return c(t) ? u(t, e, r + 1) : t;
|
|
11
|
+
var maxDepth = 4;
|
|
12
|
+
function getVariableValue(i, s, c = 1) {
|
|
13
|
+
invariant(c <= maxDepth, `Max CSS variable fallback depth detected in property "${i}". This may indicate a circular fallback dependency.`, "max-css-var-depth");
|
|
14
|
+
let [l, u] = parseCSSVariable(i);
|
|
15
|
+
if (!l) return;
|
|
16
|
+
let d = window.getComputedStyle(s).getPropertyValue(l);
|
|
17
|
+
if (d) {
|
|
18
|
+
let e = d.trim();
|
|
19
|
+
return isNumericalString(e) ? parseFloat(e) : e;
|
|
20
|
+
}
|
|
21
|
+
return isCSSVariableToken(u) ? getVariableValue(u, s, c + 1) : u;
|
|
27
22
|
}
|
|
28
|
-
export {
|
|
29
|
-
u as getVariableValue,
|
|
30
|
-
p as parseCSSVariable
|
|
31
|
-
};
|
|
23
|
+
export { getVariableValue, parseCSSVariable };
|
|
@@ -1,22 +1,25 @@
|
|
|
1
|
-
import { transformProps
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
},
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
}),
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
},
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
1
|
+
import { transformProps } from "../../render/utils/keys-transform.js";
|
|
2
|
+
var underDampedSpring = {
|
|
3
|
+
type: "spring",
|
|
4
|
+
stiffness: 500,
|
|
5
|
+
damping: 25,
|
|
6
|
+
restSpeed: 10
|
|
7
|
+
}, criticallyDampedSpring = (e) => ({
|
|
8
|
+
type: "spring",
|
|
9
|
+
stiffness: 550,
|
|
10
|
+
damping: e === 0 ? 2 * Math.sqrt(550) : 30,
|
|
11
|
+
restSpeed: 10
|
|
12
|
+
}), keyframesTransition = {
|
|
13
|
+
type: "keyframes",
|
|
14
|
+
duration: .8
|
|
15
|
+
}, ease = {
|
|
16
|
+
type: "keyframes",
|
|
17
|
+
ease: [
|
|
18
|
+
.25,
|
|
19
|
+
.1,
|
|
20
|
+
.35,
|
|
21
|
+
1
|
|
22
|
+
],
|
|
23
|
+
duration: .3
|
|
24
|
+
}, getDefaultTransition = (a, { keyframes: o }) => o.length > 2 ? keyframesTransition : transformProps.has(a) ? a.startsWith("scale") ? criticallyDampedSpring(o[1]) : underDampedSpring : ease;
|
|
25
|
+
export { getDefaultTransition };
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import { resolveTransition
|
|
2
|
-
function
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { resolveTransition } from "./resolve-transition.js";
|
|
2
|
+
function getValueTransition(t, n) {
|
|
3
|
+
let r = t?.[n] ?? t?.default ?? t;
|
|
4
|
+
return r === t ? r : resolveTransition(r, t);
|
|
5
5
|
}
|
|
6
|
-
export {
|
|
7
|
-
l as getValueTransition
|
|
8
|
-
};
|
|
6
|
+
export { getValueTransition };
|
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
import { complex
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
!r.startsWith("url("));
|
|
5
|
-
export {
|
|
6
|
-
n as isAnimatable
|
|
7
|
-
};
|
|
1
|
+
import { complex } from "../../value/types/complex/index.js";
|
|
2
|
+
var isAnimatable = (t, n) => n === "zIndex" ? !1 : !!(typeof t == "number" || Array.isArray(t) || typeof t == "string" && (complex.test(t) || t === "0") && !t.startsWith("url("));
|
|
3
|
+
export { isAnimatable };
|
|
@@ -1,9 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
function
|
|
3
|
-
|
|
1
|
+
var checkStringStartsWith = (e) => (a) => typeof a == "string" && a.startsWith(e), isCSSVariableName = /* @__PURE__ */ checkStringStartsWith("--"), startsAsVariableToken = /* @__PURE__ */ checkStringStartsWith("var(--"), isCSSVariableToken = (e) => startsAsVariableToken(e) ? singleCssVariableRegex.test(e.split("/*")[0].trim()) : !1, singleCssVariableRegex = /var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;
|
|
2
|
+
function containsCSSVariable(e) {
|
|
3
|
+
return typeof e == "string" ? e.split("/*")[0].includes("var(--") : !1;
|
|
4
4
|
}
|
|
5
|
-
export {
|
|
6
|
-
o as containsCSSVariable,
|
|
7
|
-
e as isCSSVariableName,
|
|
8
|
-
a as isCSSVariableToken
|
|
9
|
-
};
|
|
5
|
+
export { containsCSSVariable, isCSSVariableName, isCSSVariableToken };
|
|
@@ -1,21 +1,17 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
1
|
+
var orchestrationKeys = new Set([
|
|
2
|
+
"when",
|
|
3
|
+
"delay",
|
|
4
|
+
"delayChildren",
|
|
5
|
+
"staggerChildren",
|
|
6
|
+
"staggerDirection",
|
|
7
|
+
"repeat",
|
|
8
|
+
"repeatType",
|
|
9
|
+
"repeatDelay",
|
|
10
|
+
"from",
|
|
11
|
+
"elapsed"
|
|
12
12
|
]);
|
|
13
|
-
function
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
return !0;
|
|
17
|
-
return !1;
|
|
13
|
+
function isTransitionDefined(t) {
|
|
14
|
+
for (let n in t) if (!orchestrationKeys.has(n)) return !0;
|
|
15
|
+
return !1;
|
|
18
16
|
}
|
|
19
|
-
export {
|
|
20
|
-
n as isTransitionDefined
|
|
21
|
-
};
|
|
17
|
+
export { isTransitionDefined };
|
|
@@ -1,16 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
import { spring } from "../generators/spring.js";
|
|
2
|
+
import { inertia } from "../generators/inertia.js";
|
|
3
|
+
import { keyframes } from "../generators/keyframes.js";
|
|
4
|
+
var transitionTypeMap = {
|
|
5
|
+
decay: inertia,
|
|
6
|
+
inertia,
|
|
7
|
+
tween: keyframes,
|
|
8
|
+
keyframes,
|
|
9
|
+
spring
|
|
10
10
|
};
|
|
11
|
-
function
|
|
12
|
-
|
|
11
|
+
function replaceTransitionType(e) {
|
|
12
|
+
typeof e.type == "string" && (e.type = transitionTypeMap[e.type]);
|
|
13
13
|
}
|
|
14
|
-
export {
|
|
15
|
-
m as replaceTransitionType
|
|
16
|
-
};
|
|
14
|
+
export { replaceTransitionType };
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
function
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
function resolveTransition(e, t) {
|
|
2
|
+
if (e?.inherit && t) {
|
|
3
|
+
let { inherit: n, ...r } = e;
|
|
4
|
+
return {
|
|
5
|
+
...t,
|
|
6
|
+
...r
|
|
7
|
+
};
|
|
8
|
+
}
|
|
9
|
+
return e;
|
|
7
10
|
}
|
|
8
|
-
export {
|
|
9
|
-
c as resolveTransition
|
|
10
|
-
};
|
|
11
|
+
export { resolveTransition };
|
|
@@ -1,12 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { generateLinearEasing
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
function
|
|
7
|
-
|
|
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];
|
|
1
|
+
import { isBezierDefinition } from "../../../../../../motion-utils/dist/es/easing/utils/is-bezier-definition.js";
|
|
2
|
+
import { generateLinearEasing } from "../utils/linear.js";
|
|
3
|
+
import { supportsLinearEasing } from "../../../utils/supports/linear-easing.js";
|
|
4
|
+
import { cubicBezierAsString } from "./cubic-bezier.js";
|
|
5
|
+
import { supportedWaapiEasing } from "./supported.js";
|
|
6
|
+
function mapEasingToNativeEasing(o, s) {
|
|
7
|
+
if (o) return typeof o == "function" ? supportsLinearEasing() ? generateLinearEasing(o, s) : "ease-out" : isBezierDefinition(o) ? cubicBezierAsString(o) : Array.isArray(o) ? o.map((e) => mapEasingToNativeEasing(e, s) || supportedWaapiEasing.easeOut) : supportedWaapiEasing[o];
|
|
9
8
|
}
|
|
10
|
-
export {
|
|
11
|
-
m as mapEasingToNativeEasing
|
|
12
|
-
};
|
|
9
|
+
export { mapEasingToNativeEasing };
|
|
@@ -1,15 +1,33 @@
|
|
|
1
|
-
import { cubicBezierAsString
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
1
|
+
import { cubicBezierAsString } from "./cubic-bezier.js";
|
|
2
|
+
var supportedWaapiEasing = {
|
|
3
|
+
linear: "linear",
|
|
4
|
+
ease: "ease",
|
|
5
|
+
easeIn: "ease-in",
|
|
6
|
+
easeOut: "ease-out",
|
|
7
|
+
easeInOut: "ease-in-out",
|
|
8
|
+
circIn: /* @__PURE__ */ cubicBezierAsString([
|
|
9
|
+
0,
|
|
10
|
+
.65,
|
|
11
|
+
.55,
|
|
12
|
+
1
|
|
13
|
+
]),
|
|
14
|
+
circOut: /* @__PURE__ */ cubicBezierAsString([
|
|
15
|
+
.55,
|
|
16
|
+
0,
|
|
17
|
+
1,
|
|
18
|
+
.45
|
|
19
|
+
]),
|
|
20
|
+
backIn: /* @__PURE__ */ cubicBezierAsString([
|
|
21
|
+
.31,
|
|
22
|
+
.01,
|
|
23
|
+
.66,
|
|
24
|
+
-.59
|
|
25
|
+
]),
|
|
26
|
+
backOut: /* @__PURE__ */ cubicBezierAsString([
|
|
27
|
+
.33,
|
|
28
|
+
1.53,
|
|
29
|
+
.69,
|
|
30
|
+
.99
|
|
31
|
+
])
|
|
15
32
|
};
|
|
33
|
+
export { supportedWaapiEasing };
|