@code0-tech/pictor 0.18.3 → 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 -20
- 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.d.ts +1 -1
- package/dist/components/context-menu/ContextMenu.js +119 -125
- package/dist/components/data-table/DataTable.js +53 -63
- 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 -102
- package/dist/components/editor/Editor.js +352 -322
- 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 -57
- 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 -194
- 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 -141
- package/dist/components/progress/ProgressCircle.js +60 -48
- package/dist/components/progress/ProgressLinear.js +39 -42
- 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.d.ts +2 -2
- package/dist/components/segmented-control/SegmentedControl.js +46 -26
- package/dist/components/spacing/Spacing.js +16 -23
- package/dist/components/tab/Tab.js +73 -40
- package/dist/components/text/Text.js +19 -25
- package/dist/components/toast/Toast.d.ts +1 -1
- package/dist/components/toast/Toast.js +104 -83
- package/dist/components/tooltip/Tooltip.js +66 -60
- package/dist/index.js +76 -261
- 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 +11 -0
- 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.d.ts +1 -0
- package/dist/utils/index.js +7 -18
- package/dist/utils/motion.d.ts +55 -0
- package/dist/utils/motion.js +87 -0
- 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 +30 -25
- 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,46 +1,43 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
return o.isSync ? new k(e) : new A(e);
|
|
43
|
-
};
|
|
44
|
-
export {
|
|
45
|
-
x as animateMotionValue
|
|
1
|
+
import { MotionGlobalConfig } from "../../../../../motion-utils/dist/es/global-config.js";
|
|
2
|
+
import { secondsToMilliseconds } from "../../../../../motion-utils/dist/es/time-conversion.js";
|
|
3
|
+
import { frame } from "../../frameloop/frame.js";
|
|
4
|
+
import { getFinalKeyframe } from "../keyframes/get-final.js";
|
|
5
|
+
import { JSAnimation } from "../JSAnimation.js";
|
|
6
|
+
import { makeAnimationInstant } from "../utils/make-animation-instant.js";
|
|
7
|
+
import { AsyncMotionValueAnimation } from "../AsyncMotionValueAnimation.js";
|
|
8
|
+
import { getValueTransition } from "../utils/get-value-transition.js";
|
|
9
|
+
import { getDefaultTransition } from "../utils/default-transitions.js";
|
|
10
|
+
import { isTransitionDefined } from "../utils/is-transition-defined.js";
|
|
11
|
+
var animateMotionValue = (u, d, f, p = {}, m, h) => (g) => {
|
|
12
|
+
let _ = getValueTransition(p, u) || {}, v = _.delay || p.delay || 0, { elapsed: y = 0 } = p;
|
|
13
|
+
y -= secondsToMilliseconds(v);
|
|
14
|
+
let b = {
|
|
15
|
+
keyframes: Array.isArray(f) ? f : [null, f],
|
|
16
|
+
ease: "easeOut",
|
|
17
|
+
velocity: d.getVelocity(),
|
|
18
|
+
..._,
|
|
19
|
+
delay: -y,
|
|
20
|
+
onUpdate: (e) => {
|
|
21
|
+
d.set(e), _.onUpdate && _.onUpdate(e);
|
|
22
|
+
},
|
|
23
|
+
onComplete: () => {
|
|
24
|
+
g(), _.onComplete && _.onComplete();
|
|
25
|
+
},
|
|
26
|
+
name: u,
|
|
27
|
+
motionValue: d,
|
|
28
|
+
element: h ? void 0 : m
|
|
29
|
+
};
|
|
30
|
+
isTransitionDefined(_) || Object.assign(b, getDefaultTransition(u, b)), b.duration &&= secondsToMilliseconds(b.duration), b.repeatDelay &&= secondsToMilliseconds(b.repeatDelay), b.from !== void 0 && (b.keyframes[0] = b.from);
|
|
31
|
+
let x = !1;
|
|
32
|
+
if ((b.type === !1 || b.duration === 0 && !b.repeatDelay) && (makeAnimationInstant(b), b.delay === 0 && (x = !0)), (MotionGlobalConfig.instantAnimations || MotionGlobalConfig.skipAnimations || m?.shouldSkipAnimations || _.skipAnimations) && (x = !0, makeAnimationInstant(b), b.delay = 0), b.allowFlatten = !_.type && !_.ease, x && !h && d.get() !== void 0) {
|
|
33
|
+
let e = getFinalKeyframe(b.keyframes, _);
|
|
34
|
+
if (e !== void 0) {
|
|
35
|
+
frame.update(() => {
|
|
36
|
+
b.onUpdate(e), b.onComplete();
|
|
37
|
+
});
|
|
38
|
+
return;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
return _.isSync ? new JSAnimation(b) : new AsyncMotionValueAnimation(b);
|
|
46
42
|
};
|
|
43
|
+
export { animateMotionValue };
|
|
@@ -1,59 +1,54 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { resolveTransition
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
function
|
|
10
|
-
|
|
11
|
-
|
|
1
|
+
import { frame } from "../../frameloop/frame.js";
|
|
2
|
+
import { resolveTransition } from "../utils/resolve-transition.js";
|
|
3
|
+
import { getValueTransition } from "../utils/get-value-transition.js";
|
|
4
|
+
import { animateMotionValue } from "./motion-value.js";
|
|
5
|
+
import { positionalKeys } from "../../render/utils/keys-position.js";
|
|
6
|
+
import { setTarget } from "../../render/utils/setters.js";
|
|
7
|
+
import { addValueToWillChange } from "../../value/will-change/add-will-change.js";
|
|
8
|
+
import { getOptimisedAppearId } from "../optimized-appear/get-appear-id.js";
|
|
9
|
+
function shouldBlockAnimation({ protectedKeys: e, needsAnimating: a }, o) {
|
|
10
|
+
let s = e.hasOwnProperty(o) && a[o] !== !0;
|
|
11
|
+
return a[o] = !1, s;
|
|
12
12
|
}
|
|
13
|
-
function
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
e.length ? Promise.all(e).then(o) : o();
|
|
54
|
-
}
|
|
55
|
-
return e;
|
|
13
|
+
function animateTarget(l, u, { delay: d = 0, transitionOverride: f, type: p } = {}) {
|
|
14
|
+
let { transition: m, transitionEnd: h, ...g } = u, _ = l.getDefaultTransition();
|
|
15
|
+
m = m ? resolveTransition(m, _) : _;
|
|
16
|
+
let v = m?.reduceMotion, y = m?.skipAnimations;
|
|
17
|
+
f && (m = f);
|
|
18
|
+
let b = [], x = p && l.animationState && l.animationState.getState()[p], S = m?.path;
|
|
19
|
+
for (let a in S && S.animateVisualElement(l, g, m, d, b), g) {
|
|
20
|
+
let c = l.getValue(a, l.latestValues[a] ?? null), u = g[a];
|
|
21
|
+
if (u === void 0 || x && shouldBlockAnimation(x, a)) continue;
|
|
22
|
+
let f = {
|
|
23
|
+
delay: d,
|
|
24
|
+
...getValueTransition(m || {}, a)
|
|
25
|
+
};
|
|
26
|
+
y && (f.skipAnimations = !0);
|
|
27
|
+
let p = c.get();
|
|
28
|
+
if (p !== void 0 && !c.isAnimating() && !Array.isArray(u) && u === p && !f.velocity) {
|
|
29
|
+
frame.update(() => c.set(u));
|
|
30
|
+
continue;
|
|
31
|
+
}
|
|
32
|
+
let h = !1;
|
|
33
|
+
if (window.MotionHandoffAnimation) {
|
|
34
|
+
let o = getOptimisedAppearId(l);
|
|
35
|
+
if (o) {
|
|
36
|
+
let s = window.MotionHandoffAnimation(o, a, frame);
|
|
37
|
+
s !== null && (f.startTime = s, h = !0);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
addValueToWillChange(l, a);
|
|
41
|
+
let _ = v ?? l.shouldReduceMotion;
|
|
42
|
+
c.start(animateMotionValue(a, c, u, _ && positionalKeys.has(a) ? { type: !1 } : f, l, h));
|
|
43
|
+
let S = c.animation;
|
|
44
|
+
S && b.push(S);
|
|
45
|
+
}
|
|
46
|
+
if (h) {
|
|
47
|
+
let a = () => frame.update(() => {
|
|
48
|
+
h && setTarget(l, h);
|
|
49
|
+
});
|
|
50
|
+
b.length ? Promise.all(b).then(a) : a();
|
|
51
|
+
}
|
|
52
|
+
return b;
|
|
56
53
|
}
|
|
57
|
-
export {
|
|
58
|
-
G as animateTarget
|
|
59
|
-
};
|
|
54
|
+
export { animateTarget };
|
|
@@ -1,29 +1,24 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { animateTarget
|
|
4
|
-
function
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
} else
|
|
16
|
-
return Promise.all([a(), s(t.delay)]);
|
|
1
|
+
import { calcChildStagger } from "../utils/calc-child-stagger.js";
|
|
2
|
+
import { resolveVariant } from "../../render/utils/resolve-dynamic-variants.js";
|
|
3
|
+
import { animateTarget } from "./visual-element-target.js";
|
|
4
|
+
function animateVariant(e, r, a = {}) {
|
|
5
|
+
let o = resolveVariant(e, r, a.type === "exit" ? e.presenceContext?.custom : void 0), { transition: s = e.getDefaultTransition() || {} } = o || {};
|
|
6
|
+
a.transitionOverride && (s = a.transitionOverride);
|
|
7
|
+
let c = o ? () => Promise.all(animateTarget(e, o, a)) : () => Promise.resolve(), l = e.variantChildren && e.variantChildren.size ? (t = 0) => {
|
|
8
|
+
let { delayChildren: n = 0, staggerChildren: o, staggerDirection: c } = s;
|
|
9
|
+
return animateChildren(e, r, t, n, o, c, a);
|
|
10
|
+
} : () => Promise.resolve(), { when: u } = s;
|
|
11
|
+
if (u) {
|
|
12
|
+
let [e, t] = u === "beforeChildren" ? [c, l] : [l, c];
|
|
13
|
+
return e().then(() => t());
|
|
14
|
+
} else return Promise.all([c(), l(a.delay)]);
|
|
17
15
|
}
|
|
18
|
-
function
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
return Promise.all(c);
|
|
16
|
+
function animateChildren(t, n, i = 0, a = 0, o = 0, s = 1, c) {
|
|
17
|
+
let l = [];
|
|
18
|
+
for (let u of t.variantChildren) u.notify("AnimationStart", n), l.push(animateVariant(u, n, {
|
|
19
|
+
...c,
|
|
20
|
+
delay: i + (typeof a == "function" ? 0 : a) + calcChildStagger(t.variantChildren, u, a, o, s)
|
|
21
|
+
}).then(() => u.notify("AnimationComplete", n)));
|
|
22
|
+
return Promise.all(l);
|
|
26
23
|
}
|
|
27
|
-
export {
|
|
28
|
-
C as animateVariant
|
|
29
|
-
};
|
|
24
|
+
export { animateVariant };
|
|
@@ -1,22 +1,19 @@
|
|
|
1
|
-
import { resolveVariant
|
|
2
|
-
import { animateTarget
|
|
3
|
-
import { animateVariant
|
|
4
|
-
function
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
});
|
|
1
|
+
import { resolveVariant } from "../../render/utils/resolve-dynamic-variants.js";
|
|
2
|
+
import { animateTarget } from "./visual-element-target.js";
|
|
3
|
+
import { animateVariant } from "./visual-element-variant.js";
|
|
4
|
+
function animateVisualElement(r, i, a = {}) {
|
|
5
|
+
r.notify("AnimationStart", i);
|
|
6
|
+
let o;
|
|
7
|
+
if (Array.isArray(i)) {
|
|
8
|
+
let e = i.map((e) => animateVariant(r, e, a));
|
|
9
|
+
o = Promise.all(e);
|
|
10
|
+
} else if (typeof i == "string") o = animateVariant(r, i, a);
|
|
11
|
+
else {
|
|
12
|
+
let n = typeof i == "function" ? resolveVariant(r, i, a.custom) : i;
|
|
13
|
+
o = Promise.all(animateTarget(r, n, a));
|
|
14
|
+
}
|
|
15
|
+
return o.then(() => {
|
|
16
|
+
r.notify("AnimationComplete", i);
|
|
17
|
+
});
|
|
19
18
|
}
|
|
20
|
-
export {
|
|
21
|
-
n as animateVisualElement
|
|
22
|
-
};
|
|
19
|
+
export { animateVisualElement };
|
|
@@ -1,68 +1,59 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
class
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
const t = e.getValue(n);
|
|
59
|
-
t && t.jump(this.measuredOrigin, !1);
|
|
60
|
-
const o = r.length - 1, a = r[o];
|
|
61
|
-
r[o] = m[n](e.measureViewportBox(), window.getComputedStyle(e.current)), a !== null && this.finalKeyframe === void 0 && (this.finalKeyframe = a), this.removedTransforms?.length && this.removedTransforms.forEach(([f, l]) => {
|
|
62
|
-
e.getValue(f).set(l);
|
|
63
|
-
}), this.resolveNoneKeyframes();
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
export {
|
|
67
|
-
M as DOMKeyframesResolver
|
|
1
|
+
import { containsCSSVariable, isCSSVariableToken } from "../utils/is-css-variable.js";
|
|
2
|
+
import { isNumOrPxType, positionalValues } from "./utils/unit-conversion.js";
|
|
3
|
+
import { KeyframeResolver } from "./KeyframesResolver.js";
|
|
4
|
+
import { getVariableValue } from "../utils/css-variables-conversion.js";
|
|
5
|
+
import { positionalKeys } from "../../render/utils/keys-position.js";
|
|
6
|
+
import { findDimensionValueType } from "../../value/types/dimensions.js";
|
|
7
|
+
import { isNone } from "./utils/is-none.js";
|
|
8
|
+
import { makeNoneKeyframesAnimatable } from "./utils/make-none-animatable.js";
|
|
9
|
+
var DOMKeyframesResolver = class extends KeyframeResolver {
|
|
10
|
+
constructor(e, n, r, i, a) {
|
|
11
|
+
super(e, n, r, i, a, !0);
|
|
12
|
+
}
|
|
13
|
+
readKeyframes() {
|
|
14
|
+
let { unresolvedKeyframes: a, element: c, name: l } = this;
|
|
15
|
+
if (!c || !c.current) return;
|
|
16
|
+
super.readKeyframes();
|
|
17
|
+
for (let e = 0; e < a.length; e++) {
|
|
18
|
+
let r = a[e];
|
|
19
|
+
if (typeof r == "string" && (r = r.trim(), isCSSVariableToken(r))) {
|
|
20
|
+
let n = getVariableValue(r, c.current);
|
|
21
|
+
n !== void 0 && (a[e] = n), e === a.length - 1 && (this.finalKeyframe = r);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
if (this.resolveNoneKeyframes(), !positionalKeys.has(l) || a.length !== 2) return;
|
|
25
|
+
let [u, d] = a, f = findDimensionValueType(u), p = findDimensionValueType(d);
|
|
26
|
+
if (containsCSSVariable(u) !== containsCSSVariable(d) && positionalValues[l]) {
|
|
27
|
+
this.needsMeasurement = !0;
|
|
28
|
+
return;
|
|
29
|
+
}
|
|
30
|
+
if (f !== p) if (isNumOrPxType(f) && isNumOrPxType(p)) for (let e = 0; e < a.length; e++) {
|
|
31
|
+
let n = a[e];
|
|
32
|
+
typeof n == "string" && (a[e] = parseFloat(n));
|
|
33
|
+
}
|
|
34
|
+
else positionalValues[l] && (this.needsMeasurement = !0);
|
|
35
|
+
}
|
|
36
|
+
resolveNoneKeyframes() {
|
|
37
|
+
let { unresolvedKeyframes: e, name: n } = this, r = [];
|
|
38
|
+
for (let n = 0; n < e.length; n++) (e[n] === null || isNone(e[n])) && r.push(n);
|
|
39
|
+
r.length && makeNoneKeyframesAnimatable(e, r, n);
|
|
40
|
+
}
|
|
41
|
+
measureInitialState() {
|
|
42
|
+
let { element: e, unresolvedKeyframes: n, name: r } = this;
|
|
43
|
+
if (!e || !e.current) return;
|
|
44
|
+
r === "height" && (this.suspendedScrollY = window.pageYOffset), this.measuredOrigin = positionalValues[r](e.measureViewportBox(), window.getComputedStyle(e.current)), n[0] = this.measuredOrigin;
|
|
45
|
+
let a = n[n.length - 1];
|
|
46
|
+
a !== void 0 && e.getValue(r, a).jump(a, !1);
|
|
47
|
+
}
|
|
48
|
+
measureEndState() {
|
|
49
|
+
let { element: e, name: n, unresolvedKeyframes: r } = this;
|
|
50
|
+
if (!e || !e.current) return;
|
|
51
|
+
let a = e.getValue(n);
|
|
52
|
+
a && a.jump(this.measuredOrigin, !1);
|
|
53
|
+
let o = r.length - 1, s = r[o];
|
|
54
|
+
r[o] = positionalValues[n](e.measureViewportBox(), window.getComputedStyle(e.current)), s !== null && this.finalKeyframe === void 0 && (this.finalKeyframe = s), this.removedTransforms?.length && this.removedTransforms.forEach(([n, r]) => {
|
|
55
|
+
e.getValue(n).set(r);
|
|
56
|
+
}), this.resolveNoneKeyframes();
|
|
57
|
+
}
|
|
68
58
|
};
|
|
59
|
+
export { DOMKeyframesResolver };
|
|
@@ -1,74 +1,65 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
d = !1, f = !1, l.forEach((a) => a.complete(m)), l.clear();
|
|
1
|
+
import { frame } from "../../frameloop/frame.js";
|
|
2
|
+
import { fillWildcards } from "./utils/fill-wildcards.js";
|
|
3
|
+
import { removeNonTranslationalTransform } from "./utils/unit-conversion.js";
|
|
4
|
+
var toResolve = /* @__PURE__ */ new Set(), isScheduled = !1, anyNeedsMeasurement = !1, isForced = !1;
|
|
5
|
+
function measureAllKeyframes() {
|
|
6
|
+
if (anyNeedsMeasurement) {
|
|
7
|
+
let e = Array.from(toResolve).filter((e) => e.needsMeasurement), o = new Set(e.map((e) => e.element)), l = /* @__PURE__ */ new Map();
|
|
8
|
+
o.forEach((e) => {
|
|
9
|
+
let o = removeNonTranslationalTransform(e);
|
|
10
|
+
o.length && (l.set(e, o), e.render());
|
|
11
|
+
}), e.forEach((e) => e.measureInitialState()), o.forEach((e) => {
|
|
12
|
+
e.render();
|
|
13
|
+
let o = l.get(e);
|
|
14
|
+
o && o.forEach(([o, s]) => {
|
|
15
|
+
e.getValue(o)?.set(s);
|
|
16
|
+
});
|
|
17
|
+
}), e.forEach((e) => e.measureEndState()), e.forEach((e) => {
|
|
18
|
+
e.suspendedScrollY !== void 0 && window.scrollTo(0, e.suspendedScrollY);
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
anyNeedsMeasurement = !1, isScheduled = !1, toResolve.forEach((e) => e.complete(isForced)), toResolve.clear();
|
|
23
22
|
}
|
|
24
|
-
function
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
23
|
+
function readAllKeyframes() {
|
|
24
|
+
toResolve.forEach((e) => {
|
|
25
|
+
e.readKeyframes(), e.needsMeasurement && (anyNeedsMeasurement = !0);
|
|
26
|
+
});
|
|
28
27
|
}
|
|
29
|
-
function
|
|
30
|
-
|
|
28
|
+
function flushKeyframeResolvers() {
|
|
29
|
+
isForced = !0, readAllKeyframes(), measureAllKeyframes(), isForced = !1;
|
|
31
30
|
}
|
|
32
|
-
class
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
this.state === "scheduled" && (l.delete(this), this.state = "pending");
|
|
66
|
-
}
|
|
67
|
-
resume() {
|
|
68
|
-
this.state === "pending" && this.scheduleResolve();
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
export {
|
|
72
|
-
g as KeyframeResolver,
|
|
73
|
-
S as flushKeyframeResolvers
|
|
31
|
+
var KeyframeResolver = class {
|
|
32
|
+
constructor(e, o, s, c, l, u = !1) {
|
|
33
|
+
this.state = "pending", this.isAsync = !1, this.needsMeasurement = !1, this.unresolvedKeyframes = [...e], this.onComplete = o, this.name = s, this.motionValue = c, this.element = l, this.isAsync = u;
|
|
34
|
+
}
|
|
35
|
+
scheduleResolve() {
|
|
36
|
+
this.state = "scheduled", this.isAsync ? (toResolve.add(this), isScheduled || (isScheduled = !0, frame.read(readAllKeyframes), frame.resolveKeyframes(measureAllKeyframes))) : (this.readKeyframes(), this.complete());
|
|
37
|
+
}
|
|
38
|
+
readKeyframes() {
|
|
39
|
+
let { unresolvedKeyframes: e, name: s, element: c, motionValue: l } = this;
|
|
40
|
+
if (e[0] === null) {
|
|
41
|
+
let o = l?.get(), u = e[e.length - 1];
|
|
42
|
+
if (o !== void 0) e[0] = o;
|
|
43
|
+
else if (c && s) {
|
|
44
|
+
let o = c.readValue(s, u);
|
|
45
|
+
o != null && (e[0] = o);
|
|
46
|
+
}
|
|
47
|
+
e[0] === void 0 && (e[0] = u), l && o === void 0 && l.set(e[0]);
|
|
48
|
+
}
|
|
49
|
+
fillWildcards(e);
|
|
50
|
+
}
|
|
51
|
+
setFinalKeyframe() {}
|
|
52
|
+
measureInitialState() {}
|
|
53
|
+
renderEndStyles() {}
|
|
54
|
+
measureEndState() {}
|
|
55
|
+
complete(e = !1) {
|
|
56
|
+
this.state = "complete", this.onComplete(this.unresolvedKeyframes, this.finalKeyframe, e), toResolve.delete(this);
|
|
57
|
+
}
|
|
58
|
+
cancel() {
|
|
59
|
+
this.state === "scheduled" && (toResolve.delete(this), this.state = "pending");
|
|
60
|
+
}
|
|
61
|
+
resume() {
|
|
62
|
+
this.state === "pending" && this.scheduleResolve();
|
|
63
|
+
}
|
|
74
64
|
};
|
|
65
|
+
export { KeyframeResolver, flushKeyframeResolvers };
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
function
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
var isNotNull = (e) => e !== null;
|
|
2
|
+
function getFinalKeyframe(t, { repeat: n, repeatType: r = "loop" }, i, a = 1) {
|
|
3
|
+
let o = t.filter(isNotNull), s = a < 0 || n && r !== "loop" && n % 2 == 1 ? 0 : o.length - 1;
|
|
4
|
+
return !s || i === void 0 ? o[s] : i;
|
|
5
5
|
}
|
|
6
|
-
export {
|
|
7
|
-
c as getFinalKeyframe
|
|
8
|
-
};
|
|
6
|
+
export { getFinalKeyframe };
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import { fillOffset
|
|
2
|
-
function
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { fillOffset } from "./fill.js";
|
|
2
|
+
function defaultOffset(t) {
|
|
3
|
+
let n = [0];
|
|
4
|
+
return fillOffset(n, t.length - 1), n;
|
|
5
5
|
}
|
|
6
|
-
export {
|
|
7
|
-
n as defaultOffset
|
|
8
|
-
};
|
|
6
|
+
export { defaultOffset };
|