@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
package/dist/utils/motion.js
CHANGED
|
@@ -1,115 +1,87 @@
|
|
|
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
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
},
|
|
41
|
-
animate: {
|
|
42
|
-
opacity: 1
|
|
43
|
-
},
|
|
44
|
-
exit: {
|
|
45
|
-
opacity: 0
|
|
46
|
-
},
|
|
47
|
-
transition: v
|
|
48
|
-
}, _ = () => {
|
|
49
|
-
const t = p.c(2), e = m();
|
|
50
|
-
let s;
|
|
51
|
-
return t[0] !== e ? (s = e ? b : x(0.96, 4, d.ui), t[0] = e, t[1] = s) : s = t[1], s;
|
|
52
|
-
}, g = () => {
|
|
53
|
-
const t = p.c(2), e = m();
|
|
54
|
-
let s;
|
|
55
|
-
return t[0] !== e ? (s = e ? b : x(0.97, 6, d.surface), t[0] = e, t[1] = s) : s = t[1], s;
|
|
56
|
-
}, h = (t) => {
|
|
57
|
-
const e = p.c(6), s = t === void 0 ? 6 : t;
|
|
58
|
-
if (m())
|
|
59
|
-
return b;
|
|
60
|
-
let a;
|
|
61
|
-
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (a = {
|
|
62
|
-
opacity: 0,
|
|
63
|
-
backdropFilter: "blur(0px)"
|
|
64
|
-
}, e[0] = a) : a = e[0];
|
|
65
|
-
const l = `blur(${s}px)`;
|
|
66
|
-
let o;
|
|
67
|
-
e[1] !== l ? (o = {
|
|
68
|
-
opacity: 1,
|
|
69
|
-
backdropFilter: l
|
|
70
|
-
}, e[1] = l, e[2] = o) : o = e[2];
|
|
71
|
-
let i;
|
|
72
|
-
e[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (i = {
|
|
73
|
-
opacity: 0,
|
|
74
|
-
backdropFilter: "blur(0px)"
|
|
75
|
-
}, e[3] = i) : i = e[3];
|
|
76
|
-
let c;
|
|
77
|
-
return e[4] !== o ? (c = {
|
|
78
|
-
initial: a,
|
|
79
|
-
animate: o,
|
|
80
|
-
exit: i,
|
|
81
|
-
transition: d.surface
|
|
82
|
-
}, e[4] = o, e[5] = c) : c = e[5], c;
|
|
83
|
-
}, F = (t) => ({
|
|
84
|
-
transformOrigin: `var(--radix-${t}-content-transform-origin, center)`
|
|
85
|
-
}), R = (t, e, s) => {
|
|
86
|
-
const r = p.c(5), [a, l] = y.useState(t ?? e ?? !1);
|
|
87
|
-
let o;
|
|
88
|
-
r[0] !== s ? (o = (u) => {
|
|
89
|
-
l(u), s?.(u);
|
|
90
|
-
}, r[0] = s, r[1] = o) : o = r[1];
|
|
91
|
-
const i = o, c = t ?? a;
|
|
92
|
-
let n;
|
|
93
|
-
return r[2] !== i || r[3] !== c ? (n = [c, i], r[2] = i, r[3] = c, r[4] = n) : n = r[4], n;
|
|
94
|
-
}, k = (t, e, s) => {
|
|
95
|
-
const r = p.c(5), [a, l] = y.useState(t ?? e);
|
|
96
|
-
let o;
|
|
97
|
-
r[0] !== s ? (o = (u) => {
|
|
98
|
-
l(u), s?.(u);
|
|
99
|
-
}, r[0] = s, r[1] = o) : o = r[1];
|
|
100
|
-
const i = o, c = t ?? a;
|
|
101
|
-
let n;
|
|
102
|
-
return r[2] !== i || r[3] !== c ? (n = [c, i], r[2] = i, r[3] = c, r[4] = n) : n = r[4], n;
|
|
1
|
+
import { require_compiler_runtime } from "../node_modules/react/compiler-runtime.js";
|
|
2
|
+
import { useReducedMotion } from "../node_modules/framer-motion/dist/es/utils/reduced-motion/use-reduced-motion.js";
|
|
3
|
+
import React from "react";
|
|
4
|
+
var import_compiler_runtime = require_compiler_runtime();
|
|
5
|
+
const spring = (e, o) => ({
|
|
6
|
+
type: "spring",
|
|
7
|
+
bounce: Math.max(0, 1 - e),
|
|
8
|
+
duration: o
|
|
9
|
+
}), springs = {
|
|
10
|
+
ui: spring(1, .3),
|
|
11
|
+
surface: spring(1, .4),
|
|
12
|
+
momentum: spring(.8, .4),
|
|
13
|
+
sheet: spring(.8, .3)
|
|
14
|
+
}, crossFade = {
|
|
15
|
+
duration: .15,
|
|
16
|
+
ease: "easeOut"
|
|
17
|
+
}, useReducedMotionSafe = () => useReducedMotion() ?? !1;
|
|
18
|
+
var materialize = (e, o, s) => ({
|
|
19
|
+
initial: {
|
|
20
|
+
opacity: 0,
|
|
21
|
+
scale: e,
|
|
22
|
+
filter: `blur(${o}px)`
|
|
23
|
+
},
|
|
24
|
+
animate: {
|
|
25
|
+
opacity: 1,
|
|
26
|
+
scale: 1,
|
|
27
|
+
filter: "blur(0px)"
|
|
28
|
+
},
|
|
29
|
+
exit: {
|
|
30
|
+
opacity: 0,
|
|
31
|
+
scale: e,
|
|
32
|
+
filter: `blur(${o}px)`
|
|
33
|
+
},
|
|
34
|
+
transition: s
|
|
35
|
+
}), fade = {
|
|
36
|
+
initial: { opacity: 0 },
|
|
37
|
+
animate: { opacity: 1 },
|
|
38
|
+
exit: { opacity: 0 },
|
|
39
|
+
transition: crossFade
|
|
103
40
|
};
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
41
|
+
const usePopperMotion = () => {
|
|
42
|
+
let e = (0, import_compiler_runtime.c)(2), o = useReducedMotionSafe(), s;
|
|
43
|
+
return e[0] === o ? s = e[1] : (s = o ? fade : materialize(.96, 4, springs.ui), e[0] = o, e[1] = s), s;
|
|
44
|
+
}, useSurfaceMotion = () => {
|
|
45
|
+
let e = (0, import_compiler_runtime.c)(2), o = useReducedMotionSafe(), s;
|
|
46
|
+
return e[0] === o ? s = e[1] : (s = o ? fade : materialize(.97, 6, springs.surface), e[0] = o, e[1] = s), s;
|
|
47
|
+
}, useScrimMotion = (e) => {
|
|
48
|
+
let o = (0, import_compiler_runtime.c)(6), s = e === void 0 ? 6 : e;
|
|
49
|
+
if (useReducedMotionSafe()) return fade;
|
|
50
|
+
let c;
|
|
51
|
+
o[0] === Symbol.for("react.memo_cache_sentinel") ? (c = {
|
|
52
|
+
opacity: 0,
|
|
53
|
+
backdropFilter: "blur(0px)"
|
|
54
|
+
}, o[0] = c) : c = o[0];
|
|
55
|
+
let u = `blur(${s}px)`, f;
|
|
56
|
+
o[1] === u ? f = o[2] : (f = {
|
|
57
|
+
opacity: 1,
|
|
58
|
+
backdropFilter: u
|
|
59
|
+
}, o[1] = u, o[2] = f);
|
|
60
|
+
let m;
|
|
61
|
+
o[3] === Symbol.for("react.memo_cache_sentinel") ? (m = {
|
|
62
|
+
opacity: 0,
|
|
63
|
+
backdropFilter: "blur(0px)"
|
|
64
|
+
}, o[3] = m) : m = o[3];
|
|
65
|
+
let h;
|
|
66
|
+
return o[4] === f ? h = o[5] : (h = {
|
|
67
|
+
initial: c,
|
|
68
|
+
animate: f,
|
|
69
|
+
exit: m,
|
|
70
|
+
transition: springs.surface
|
|
71
|
+
}, o[4] = f, o[5] = h), h;
|
|
72
|
+
}, popperTransformOrigin = (e) => ({ transformOrigin: `var(--radix-${e}-content-transform-origin, center)` }), useObservedOpen = (e, o, c) => {
|
|
73
|
+
let l = (0, import_compiler_runtime.c)(5), [u, d] = React.useState(e ?? o ?? !1), f;
|
|
74
|
+
l[0] === c ? f = l[1] : (f = (e) => {
|
|
75
|
+
d(e), c?.(e);
|
|
76
|
+
}, l[0] = c, l[1] = f);
|
|
77
|
+
let p = f, m = e ?? u, h;
|
|
78
|
+
return l[2] !== p || l[3] !== m ? (h = [m, p], l[2] = p, l[3] = m, l[4] = h) : h = l[4], h;
|
|
79
|
+
}, useObservedValue = (e, o, c) => {
|
|
80
|
+
let l = (0, import_compiler_runtime.c)(5), [u, d] = React.useState(e ?? o), f;
|
|
81
|
+
l[0] === c ? f = l[1] : (f = (e) => {
|
|
82
|
+
d(e), c?.(e);
|
|
83
|
+
}, l[0] = c, l[1] = f);
|
|
84
|
+
let p = f, m = e ?? u, h;
|
|
85
|
+
return l[2] !== p || l[3] !== m ? (h = [m, p], l[2] = p, l[3] = m, l[4] = h) : h = l[4], h;
|
|
115
86
|
};
|
|
87
|
+
export { crossFade, popperTransformOrigin, spring, springs, useObservedOpen, useObservedValue, usePopperMotion, useReducedMotionSafe, useScrimMotion, useSurfaceMotion };
|
|
@@ -1,80 +1,84 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
function
|
|
4
|
-
|
|
1
|
+
import { View } from "./view.js";
|
|
2
|
+
import React from "react";
|
|
3
|
+
function _defineProperty(e, t, n) {
|
|
4
|
+
return (t = _toPropertyKey(t)) in e ? Object.defineProperty(e, t, {
|
|
5
|
+
value: n,
|
|
6
|
+
enumerable: !0,
|
|
7
|
+
configurable: !0,
|
|
8
|
+
writable: !0
|
|
9
|
+
}) : e[t] = n, e;
|
|
5
10
|
}
|
|
6
|
-
function
|
|
7
|
-
|
|
8
|
-
|
|
11
|
+
function _toPropertyKey(e) {
|
|
12
|
+
var t = _toPrimitive(e, "string");
|
|
13
|
+
return typeof t == "symbol" ? t : t + "";
|
|
9
14
|
}
|
|
10
|
-
function
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
15
|
+
function _toPrimitive(e, t) {
|
|
16
|
+
if (typeof e != "object" || !e) return e;
|
|
17
|
+
var n = e[Symbol.toPrimitive];
|
|
18
|
+
if (n !== void 0) {
|
|
19
|
+
var r = n.call(e, t || "default");
|
|
20
|
+
if (typeof r != "object") return r;
|
|
21
|
+
throw TypeError("@@toPrimitive must return a primitive value.");
|
|
22
|
+
}
|
|
23
|
+
return (t === "string" ? String : Number)(e);
|
|
19
24
|
}
|
|
20
|
-
class
|
|
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
|
-
function w(t, e = []) {
|
|
54
|
-
const [r, s] = a.useState([]), c = a.useRef([]);
|
|
55
|
-
c.current = r;
|
|
56
|
-
const o = a.useCallback(() => c.current, []), i = a.useMemo(() => {
|
|
57
|
-
const n = {
|
|
58
|
-
getState: o,
|
|
59
|
-
setState: s
|
|
60
|
-
}, l = {
|
|
61
|
-
construct: () => l
|
|
62
|
-
};
|
|
63
|
-
return ((d) => {
|
|
64
|
-
try {
|
|
65
|
-
return !!new new Proxy(d, l)();
|
|
66
|
-
} catch {
|
|
67
|
-
return !1;
|
|
68
|
-
}
|
|
69
|
-
})(t) ? new t(n) : t(n);
|
|
70
|
-
}, [t, o]), u = a.useCallback((n) => new v(n), []), f = a.useRef(!1);
|
|
71
|
-
return a.useEffect(() => {
|
|
72
|
-
f.current || (f.current = !0, i.clear(), e.forEach((n) => {
|
|
73
|
-
i.add(u(n));
|
|
74
|
-
}));
|
|
75
|
-
}, [i, e, u]), [r, i];
|
|
76
|
-
}
|
|
77
|
-
export {
|
|
78
|
-
g as ReactiveArrayService,
|
|
79
|
-
w as useReactiveArrayService
|
|
25
|
+
var ReactiveArrayService = class {
|
|
26
|
+
constructor(e) {
|
|
27
|
+
_defineProperty(this, "access", void 0), this.access = e;
|
|
28
|
+
}
|
|
29
|
+
delete(e) {
|
|
30
|
+
this.access.setState((t) => t.filter((t, n) => n !== e));
|
|
31
|
+
}
|
|
32
|
+
add(e) {
|
|
33
|
+
this.access.setState((t) => [...t, e]);
|
|
34
|
+
}
|
|
35
|
+
set(e, t) {
|
|
36
|
+
this.access.setState((n) => {
|
|
37
|
+
let r = n.slice();
|
|
38
|
+
return r[e] = t, r;
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
has(e) {
|
|
42
|
+
let t = this.access.getState();
|
|
43
|
+
return e >= 0 && e < t.length;
|
|
44
|
+
}
|
|
45
|
+
get(e) {
|
|
46
|
+
return this.access.getState()[e]?.payload;
|
|
47
|
+
}
|
|
48
|
+
values(e) {
|
|
49
|
+
return this.access.getState().map((e) => e.payload);
|
|
50
|
+
}
|
|
51
|
+
update() {
|
|
52
|
+
this.access.setState((e) => [...e]);
|
|
53
|
+
}
|
|
54
|
+
clear() {
|
|
55
|
+
this.access.setState(() => []);
|
|
56
|
+
}
|
|
80
57
|
};
|
|
58
|
+
function useReactiveArrayService(n, r = []) {
|
|
59
|
+
let [i, a] = React.useState([]), o = React.useRef([]);
|
|
60
|
+
o.current = i;
|
|
61
|
+
let s = React.useCallback(() => o.current, []), c = React.useMemo(() => {
|
|
62
|
+
let e = {
|
|
63
|
+
getState: s,
|
|
64
|
+
setState: a
|
|
65
|
+
}, t = { construct: () => t };
|
|
66
|
+
return ((e) => {
|
|
67
|
+
try {
|
|
68
|
+
return !!new new Proxy(e, t)();
|
|
69
|
+
} catch {
|
|
70
|
+
return !1;
|
|
71
|
+
}
|
|
72
|
+
})(n) ? new n(e) : n(e);
|
|
73
|
+
}, [n, s]), l = React.useCallback((t) => new View(t), []), u = React.useRef(!1);
|
|
74
|
+
return React.useEffect(() => {
|
|
75
|
+
u.current || (u.current = !0, c.clear(), r.forEach((e) => {
|
|
76
|
+
c.add(l(e));
|
|
77
|
+
}));
|
|
78
|
+
}, [
|
|
79
|
+
c,
|
|
80
|
+
r,
|
|
81
|
+
l
|
|
82
|
+
]), [i, c];
|
|
83
|
+
}
|
|
84
|
+
export { ReactiveArrayService, useReactiveArrayService };
|
package/dist/utils/size.js
CHANGED
|
@@ -1,27 +1,15 @@
|
|
|
1
|
-
const
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
return "1.333rem";
|
|
15
|
-
case "xl":
|
|
16
|
-
return "1.777rem";
|
|
17
|
-
case "xxl":
|
|
18
|
-
return "2.369rem";
|
|
19
|
-
case "xxxl":
|
|
20
|
-
return "3.157rem";
|
|
21
|
-
default:
|
|
22
|
-
return e;
|
|
23
|
-
}
|
|
24
|
-
};
|
|
25
|
-
export {
|
|
26
|
-
r as getSize
|
|
1
|
+
const getSize = (e) => {
|
|
2
|
+
switch (e) {
|
|
3
|
+
case "xxxs": return "0.316rem";
|
|
4
|
+
case "xxs": return "0.422rem";
|
|
5
|
+
case "xs": return "0.563rem";
|
|
6
|
+
case "sm": return "0.75rem";
|
|
7
|
+
case "md": return "1rem";
|
|
8
|
+
case "lg": return "1.333rem";
|
|
9
|
+
case "xl": return "1.777rem";
|
|
10
|
+
case "xxl": return "2.369rem";
|
|
11
|
+
case "xxxl": return "3.157rem";
|
|
12
|
+
default: return e;
|
|
13
|
+
}
|
|
27
14
|
};
|
|
15
|
+
export { getSize };
|
package/dist/utils/utils.js
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
package/dist/utils/view.js
CHANGED
|
@@ -1,28 +1,31 @@
|
|
|
1
|
-
function
|
|
2
|
-
|
|
1
|
+
function _defineProperty(e, n, r) {
|
|
2
|
+
return (n = _toPropertyKey(n)) in e ? Object.defineProperty(e, n, {
|
|
3
|
+
value: r,
|
|
4
|
+
enumerable: !0,
|
|
5
|
+
configurable: !0,
|
|
6
|
+
writable: !0
|
|
7
|
+
}) : e[n] = r, e;
|
|
3
8
|
}
|
|
4
|
-
function
|
|
5
|
-
|
|
6
|
-
|
|
9
|
+
function _toPropertyKey(e) {
|
|
10
|
+
var t = _toPrimitive(e, "string");
|
|
11
|
+
return typeof t == "symbol" ? t : t + "";
|
|
7
12
|
}
|
|
8
|
-
function
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
13
|
+
function _toPrimitive(e, t) {
|
|
14
|
+
if (typeof e != "object" || !e) return e;
|
|
15
|
+
var n = e[Symbol.toPrimitive];
|
|
16
|
+
if (n !== void 0) {
|
|
17
|
+
var r = n.call(e, t || "default");
|
|
18
|
+
if (typeof r != "object") return r;
|
|
19
|
+
throw TypeError("@@toPrimitive must return a primitive value.");
|
|
20
|
+
}
|
|
21
|
+
return (t === "string" ? String : Number)(e);
|
|
17
22
|
}
|
|
18
|
-
class
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
}
|
|
26
|
-
export {
|
|
27
|
-
a as View
|
|
23
|
+
var View = class {
|
|
24
|
+
constructor(t) {
|
|
25
|
+
_defineProperty(this, "_payload", void 0), this._payload = t;
|
|
26
|
+
}
|
|
27
|
+
get payload() {
|
|
28
|
+
return this._payload;
|
|
29
|
+
}
|
|
28
30
|
};
|
|
31
|
+
export { View };
|
package/dist/vite-env.d.js
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@code0-tech/pictor",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A simple template for a custom React component library",
|
|
6
6
|
"scripts": {
|
|
@@ -20,15 +20,15 @@
|
|
|
20
20
|
"@ark-ui/react": "^5.38.1",
|
|
21
21
|
"@babel/plugin-proposal-decorators": "^7.29.7",
|
|
22
22
|
"@babel/plugin-transform-class-properties": "^7.29.7",
|
|
23
|
-
"@codemirror/autocomplete": "^6.20.
|
|
23
|
+
"@codemirror/autocomplete": "^6.20.4",
|
|
24
24
|
"@codemirror/lang-json": "^6.0.2",
|
|
25
|
-
"@codemirror/language": "^6.
|
|
25
|
+
"@codemirror/language": "^6.13.1",
|
|
26
26
|
"@codemirror/lint": "^6.9.7",
|
|
27
27
|
"@codemirror/state": "^6.7.6",
|
|
28
|
-
"@codemirror/view": "^6.43.
|
|
28
|
+
"@codemirror/view": "^6.43.15",
|
|
29
29
|
"@dagrejs/dagre": "^3.0.0",
|
|
30
30
|
"@icons-pack/react-simple-icons": "^13.13.0",
|
|
31
|
-
"@internationalized/date": "^3.12.
|
|
31
|
+
"@internationalized/date": "^3.12.4",
|
|
32
32
|
"@lezer/common": "^1.5.2",
|
|
33
33
|
"@mdx-js/react": "^3.1.1",
|
|
34
34
|
"@radix-ui/react-checkbox": "^1.3.11",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"@rollup/plugin-commonjs": "^29.0.3",
|
|
48
48
|
"@rollup/plugin-node-resolve": "^16.0.3",
|
|
49
49
|
"@rollup/plugin-terser": "^1.0.0",
|
|
50
|
-
"@rollup/plugin-typescript": "^12.3.
|
|
50
|
+
"@rollup/plugin-typescript": "^12.3.1",
|
|
51
51
|
"@storybook/addon-a11y": "^10.6.0",
|
|
52
52
|
"@storybook/addon-docs": "^10.6.0",
|
|
53
53
|
"@storybook/addon-links": "^10.6.0",
|
|
@@ -56,10 +56,11 @@
|
|
|
56
56
|
"@storybook/builder-vite": "^10.6.0",
|
|
57
57
|
"@storybook/cli": "^10.6.0",
|
|
58
58
|
"@storybook/react-vite": "^10.6.0",
|
|
59
|
-
"@tabler/icons-react": "3.
|
|
60
|
-
"@
|
|
61
|
-
"@types/
|
|
62
|
-
"@types/react
|
|
59
|
+
"@tabler/icons-react": "3.50.0",
|
|
60
|
+
"@thesvg/react": "^4.0.4",
|
|
61
|
+
"@types/jest-image-snapshot": "^6.4.2",
|
|
62
|
+
"@types/react": "^19.3.0",
|
|
63
|
+
"@types/react-dom": "^19.3.0",
|
|
63
64
|
"@types/react-syntax-highlighter": "^15.5.13",
|
|
64
65
|
"@uidotdev/usehooks": "^2.4.1",
|
|
65
66
|
"@uiw/codemirror-themes": "^4.25.12",
|
|
@@ -73,17 +74,17 @@
|
|
|
73
74
|
"babel-loader": "^10.1.1",
|
|
74
75
|
"babel-plugin-react-compiler": "^19.1.0-rc.3",
|
|
75
76
|
"cmdk": "^1.1.1",
|
|
76
|
-
"concurrently": "^
|
|
77
|
-
"css-loader": "^7.1.
|
|
77
|
+
"concurrently": "^10.0.6",
|
|
78
|
+
"css-loader": "^7.1.5",
|
|
78
79
|
"html-webpack-plugin": "^5.6.8",
|
|
79
80
|
"identity-obj-proxy": "^3.0.0",
|
|
80
81
|
"jest-image-snapshot": "^6.5.2",
|
|
81
82
|
"js-md5": "^0.8.3",
|
|
82
83
|
"merge-props": "^6.0.0",
|
|
83
|
-
"motion": "^12.
|
|
84
|
+
"motion": "^12.43.0",
|
|
84
85
|
"playwright": "1.58.1",
|
|
85
|
-
"react": "^19.
|
|
86
|
-
"react-dom": "^19.
|
|
86
|
+
"react": "^19.3.1",
|
|
87
|
+
"react-dom": "^19.3.1",
|
|
87
88
|
"react-hotkeys-hook": "^5.3.3",
|
|
88
89
|
"react-resizable-panels": "^4.9.0",
|
|
89
90
|
"react-zoom-pan-pinch": "^3.7.0",
|
|
@@ -96,15 +97,15 @@
|
|
|
96
97
|
"sonner": "^2.0.8",
|
|
97
98
|
"storybook": "^10.6.0",
|
|
98
99
|
"style-loader": "^4.0.0",
|
|
99
|
-
"ts-jest": "^29.4.
|
|
100
|
+
"ts-jest": "^29.4.15",
|
|
100
101
|
"ts-node": "^10.9.2",
|
|
101
102
|
"typescript": "^5.9.3",
|
|
102
|
-
"vite": "
|
|
103
|
+
"vite": "npm:rolldown-vite@7.3.1",
|
|
103
104
|
"vite-plugin-dts": "^4.5.4",
|
|
104
105
|
"vite-plugin-lib-inject-css": "^2.2.2",
|
|
105
106
|
"vite-plugin-svgr": "^5.2.0",
|
|
106
107
|
"vitest": "^4.1.11",
|
|
107
|
-
"zustand": "^
|
|
108
|
+
"zustand": "^5.0.16",
|
|
108
109
|
"recharts": "^3.10.1"
|
|
109
110
|
},
|
|
110
111
|
"main": "dist/index.js",
|
|
@@ -139,7 +140,8 @@
|
|
|
139
140
|
"@radix-ui/react-tabs": "^1.1.13",
|
|
140
141
|
"@radix-ui/react-toggle-group": "^1.1.11",
|
|
141
142
|
"@radix-ui/react-tooltip": "^1.2.8",
|
|
142
|
-
"@tabler/icons-react": "3.
|
|
143
|
+
"@tabler/icons-react": "3.50.0",
|
|
144
|
+
"@thesvg/react": "^4.0.4",
|
|
143
145
|
"@uidotdev/usehooks": "^2.4.1",
|
|
144
146
|
"@uiw/codemirror-themes": "^4.25.4",
|
|
145
147
|
"@uiw/react-codemirror": "^4.25.4",
|
|
@@ -158,10 +160,13 @@
|
|
|
158
160
|
"slate-history": "^0.113.0",
|
|
159
161
|
"slate-react": "^0.125.0",
|
|
160
162
|
"sonner": "^2.0.7",
|
|
161
|
-
"zustand": ">=4.3.0 <
|
|
163
|
+
"zustand": ">=4.3.0 <6.0.0",
|
|
162
164
|
"recharts": "^3.8.1"
|
|
163
165
|
},
|
|
164
166
|
"publishConfig": {
|
|
165
167
|
"access": "public"
|
|
168
|
+
},
|
|
169
|
+
"overrides": {
|
|
170
|
+
"vite": "npm:rolldown-vite@7.3.1"
|
|
166
171
|
}
|
|
167
172
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.alert{padding:1rem;font-size:.75rem;position:relative;display:flex;align-items:center;gap:.422rem}.alert{font-family:Inter,sans-serif;font-weight:400;letter-spacing:-.5px;border-radius:1rem}.alert>svg{min-width:1rem;min-height:1rem}.alert--primary{background:#070514;box-shadow:inset 0 1px 1px #bfbfbf1a;border:none;color:#ffffffbf;position:relative;box-sizing:border-box;box-shadow:none}.alert--secondary{background:#191825;box-shadow:inset 0 1px 1px #bfbfbf1a;border:none;color:#ffffffbf;position:relative;box-sizing:border-box;box-shadow:none}.alert--tertiary{background:#201e2c;box-shadow:inset 0 1px 1px #bfbfbf1a;border:none;color:#ffffffbf;position:relative;box-sizing:border-box;box-shadow:none}.alert--success{background:#0a1814;box-shadow:inset 0 1px 1px #bfbfbf1a;border:none;color:#ffffffbf;position:relative;box-sizing:border-box;box-shadow:none}.alert--warning{background:#201813;box-shadow:inset 0 1px 1px #bfbfbf1a;border:none;color:#ffffffbf;position:relative;box-sizing:border-box;box-shadow:none}.alert--error{background:#1c0516;box-shadow:inset 0 1px 1px #bfbfbf1a;border:none;color:#ffffffbf;position:relative;box-sizing:border-box;box-shadow:none}.alert--info{background:#121e24;box-shadow:inset 0 1px 1px #bfbfbf1a;border:none;color:#ffffffbf;position:relative;box-sizing:border-box;box-shadow:none}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.aurora-background{position:absolute;height:100%;width:100%;left:0;top:0;border-radius:inherit;pointer-events:none;overflow:hidden;display:flex;flex-direction:column;align-items:center;justify-content:center;background-color:transparent;transition:background-color .15s ease,color .15s ease;--aurora: repeating-linear-gradient( 100deg, rgba(112, 255, 178, .7) 0%, rgba(226, 112, 255, .9) 8%, rgba(181, 255, 214, .8) 16%, rgba(199, 255, 112, .9) 24%, transparent 32% );--gradient: repeating-linear-gradient( 100deg, rgba(255,255,255, 1) 0%, rgba(255,255,255, 1) 3%, transparent 10%, transparent 12%, rgba(255,255,255, 1) 16% );--transparent: transparent}.aurora-background__overlay{position:absolute;inset:0;overflow:hidden;pointer-events:none}.aurora-background__aurora{position:absolute;inset:-10px;pointer-events:none;opacity:.5;filter:blur(10px);will-change:transform;background-image:var(--gradient),var(--aurora);background-size:300% 300%,200% 200%;background-position:50% 50%,50% 50%}.aurora-background__aurora:after{content:"";position:absolute;inset:0;background-image:var(--gradient),var(--aurora);background-size:200% 200%,100% 100%;background-attachment:fixed;mix-blend-mode:difference;animation:aurora-animation 45s ease-in-out infinite alternate}.aurora-background--radial-mask .aurora-background__aurora{mask-image:radial-gradient(ellipse at 100% 0%,black 10%,var(--transparent) 70%);-webkit-mask-image:radial-gradient(ellipse at 100% 0%,black 10%,var(--transparent) 70%)}@keyframes aurora-animation{0%{background-position:0% 50%,50% 50%}50%{background-position:100% 50%,50% 50%}to{background-position:0% 50%,50% 50%}}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.avatar{aspect-ratio:1/1;display:flex;align-items:center;justify-content:center;overflow:hidden}.avatar{background:#191825;box-shadow:inset 0 1px 1px #bfbfbf1a;border:none;color:#ffffffbf;position:relative;box-sizing:border-box;background:transparent;box-shadow:none}.avatar--image{padding:0}.avatar--identicon>div{width:calc(var(--size) * 1px);height:calc(var(--size) * 1px)}.avatar--identicon>div>div{--color: inherit;background:transparent}.avatar--identicon>div>div>span>svg{width:calc(var(--size) * .75px);height:calc(var(--size) * .75px)}.avatar--identicon>div>div>span,.avatar--identicon>div>div>p{color:var(--color);font-size:calc(var(--size) * .75px)}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.badge{padding:.1406666667rem .422rem;display:inline-flex;font-size:.563rem;width:fit-content;align-items:center;gap:.422rem;height:fit-content;vertical-align:middle;background-color:var(--badge-color-background);box-shadow:inset 0 1px 1px 0 var(--badge-color-border);color:var(--badge-color)}.badge{font-family:Inter,sans-serif;font-weight:400;letter-spacing:-.5px;border-radius:1rem}.badge--border{border:none!important}.badge--primary{background:#070514;box-shadow:inset 0 1px 1px #bfbfbf1a;border:none;color:#bfbfbfbf;position:relative;box-sizing:border-box}.badge--secondary{background:#191825;box-shadow:inset 0 1px 1px #bfbfbf1a;border:none;color:#bfbfbfbf;position:relative;box-sizing:border-box}.badge--tertiary{background:#201e2c;box-shadow:inset 0 1px 1px #ffffff1a;border:none;color:#ffffffbf;position:relative;box-sizing:border-box}.badge--success{background:#0a1814;box-shadow:inset 0 1px 1px #29bf121a;border:none;color:#29bf12bf;position:relative;box-sizing:border-box}.badge--warning{background:#201813;box-shadow:inset 0 1px 1px #ffbe0b1a;border:none;color:#ffbe0bbf;position:relative;box-sizing:border-box}.badge--error{background:#1c0516;box-shadow:inset 0 1px 1px #d904291a;border:none;color:#d90429bf;position:relative;box-sizing:border-box}.badge--info{background:#121e24;box-shadow:inset 0 1px 1px #70ffb21a;border:none;color:#70ffb2bf;position:relative;box-sizing:border-box}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.breadcrumb{display:flex;align-items:center;gap:.563rem}.breadcrumb{font-family:Inter,sans-serif;font-weight:400;letter-spacing:-.5px}.breadcrumb__splitter{color:#bfbfbf;display:flex}
|