@code0-tech/pictor 1.0.0 → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_virtual/rolldown_runtime.js +9 -0
- package/dist/assets/Alert.style.css +1 -0
- package/dist/assets/Aurora.style.css +1 -0
- package/dist/assets/Avatar.style.css +1 -0
- package/dist/assets/Badge.style.css +1 -0
- package/dist/assets/Breadcrumb.style.css +1 -0
- package/dist/assets/Button.style.css +1 -0
- package/dist/assets/ButtonGroup.style.css +1 -0
- package/dist/assets/Card.style.css +1 -0
- package/dist/assets/Chart.style.css +1 -0
- package/dist/assets/Col.style.css +1 -0
- package/dist/assets/ColorInput.style.css +1 -0
- package/dist/assets/Command.style.css +1 -0
- package/dist/assets/Container.style.css +1 -0
- package/dist/assets/ContextMenu.style.css +1 -0
- package/dist/assets/DataTable.style.css +1 -0
- package/dist/assets/DateInput.style.css +1 -0
- package/dist/assets/Dialog.style.css +1 -0
- package/dist/assets/Editor.styles.css +1 -0
- package/dist/assets/EditorInput.style.css +1 -0
- package/dist/assets/FileInput.style.css +1 -0
- package/dist/assets/FileTabs.style.css +1 -0
- package/dist/assets/FullScreen.style.css +1 -0
- package/dist/assets/Gantt.style.css +1 -0
- package/dist/assets/Icon.style.css +1 -0
- package/dist/assets/Input.style.css +1 -0
- package/dist/assets/InputWrapper.style.css +1 -0
- package/dist/assets/JsonView.style.css +1 -0
- package/dist/assets/Layout.style.css +1 -0
- package/dist/assets/Menu.style.css +1 -0
- package/dist/assets/Progress.style.css +1 -0
- package/dist/assets/Quote.style.css +1 -0
- package/dist/assets/Resizable.style.css +1 -0
- package/dist/assets/Row.style.css +1 -0
- package/dist/assets/ScrollArea.style.css +1 -0
- package/dist/assets/SegmentedControl.style.css +1 -0
- package/dist/assets/SelectInput.style.css +1 -0
- package/dist/assets/Tab.style.css +1 -0
- package/dist/assets/Text.style.css +1 -0
- package/dist/assets/Toast.style.css +1 -0
- package/dist/assets/Tooltip.style.css +1 -0
- package/dist/components/alert/Alert.js +33 -41
- package/dist/components/aurora/Aurora.js +26 -22
- package/dist/components/avatar/Avatar.js +57 -55
- package/dist/components/badge/Badge.js +57 -64
- package/dist/components/breadcrumb/Breadcrumb.js +16 -21
- package/dist/components/button/Button.js +23 -31
- package/dist/components/button-group/ButtonGroup.js +28 -31
- package/dist/components/card/Card.js +28 -43
- package/dist/components/card/CardSection.js +21 -29
- package/dist/components/chart/Chart.js +138 -153
- package/dist/components/chart/LineChart.js +74 -74
- package/dist/components/chart/index.js +3 -8
- package/dist/components/col/Col.js +18 -29
- package/dist/components/command/Command.js +100 -134
- package/dist/components/container/Container.js +18 -23
- package/dist/components/context-menu/ContextMenu.js +118 -112
- package/dist/components/data-table/DataTable.js +53 -64
- package/dist/components/data-table/DataTableColumn.js +17 -22
- package/dist/components/data-table/DataTableFilterInput.js +208 -205
- package/dist/components/data-table/DataTableFilterSuggestionMenu.js +58 -48
- package/dist/components/data-table/DataTableHeader.js +33 -38
- package/dist/components/data-table/DataTablePagination.js +61 -74
- package/dist/components/data-table/index.js +7 -22
- package/dist/components/dialog/Dialog.js +106 -97
- package/dist/components/editor/Editor.js +352 -323
- package/dist/components/file-tabs/FileTabs.js +77 -73
- package/dist/components/file-tabs/FileTabs.service.js +85 -87
- package/dist/components/file-tabs/FileTabs.view.js +0 -1
- package/dist/components/file-tabs/index.js +3 -9
- package/dist/components/flex/Flex.js +18 -23
- package/dist/components/form/CheckboxInput.js +72 -76
- package/dist/components/form/ColorInput.js +378 -353
- package/dist/components/form/DateInput.js +315 -265
- package/dist/components/form/EditorInput.js +597 -579
- package/dist/components/form/EmailInput.js +30 -23
- package/dist/components/form/FileInput.js +92 -123
- package/dist/components/form/Input.js +64 -58
- package/dist/components/form/Input.utils.js +25 -37
- package/dist/components/form/InputDescription.js +10 -11
- package/dist/components/form/InputLabel.js +17 -22
- package/dist/components/form/InputMessage.js +16 -17
- package/dist/components/form/InputWrapper.js +55 -65
- package/dist/components/form/NumberInput.js +41 -20
- package/dist/components/form/PasswordInput.js +71 -54
- package/dist/components/form/PinInput.js +49 -65
- package/dist/components/form/RadioGroup.js +41 -50
- package/dist/components/form/RadioInput.js +30 -29
- package/dist/components/form/SelectInput.js +68 -92
- package/dist/components/form/SwitchInput.js +17 -18
- package/dist/components/form/TagInput.js +108 -122
- package/dist/components/form/TextAreaInput.js +24 -21
- package/dist/components/form/TextInput.js +30 -22
- package/dist/components/form/index.js +22 -87
- package/dist/components/form/useForm.js +87 -88
- package/dist/components/fullscreen/FullScreen.js +27 -27
- package/dist/components/gantt/Gantt.js +99 -98
- package/dist/components/gantt/GanttGroup.js +210 -195
- package/dist/components/gantt/GanttHeader.js +78 -81
- package/dist/components/gantt/GanttItem.js +18 -22
- package/dist/components/icon/Icon.d.ts +6 -4
- package/dist/components/icon/Icon.js +53 -42
- package/dist/components/icon/codezero/codezero.js +10 -0
- package/dist/components/icon/codezero/gls.js +9 -0
- package/dist/components/icon/codezero/index.js +17 -13
- package/dist/components/json-view/JsonView.js +119 -109
- package/dist/components/layout/Layout.js +100 -78
- package/dist/components/menu/Menu.js +134 -128
- package/dist/components/progress/ProgressCircle.js +60 -49
- package/dist/components/progress/ProgressLinear.js +39 -43
- package/dist/components/quote/Quote.js +51 -43
- package/dist/components/resizable/Resizable.js +35 -33
- package/dist/components/row/Row.js +18 -23
- package/dist/components/scroll-area/ScrollArea.js +65 -76
- package/dist/components/segmented-control/SegmentedControl.js +46 -50
- package/dist/components/spacing/Spacing.js +15 -23
- package/dist/components/tab/Tab.js +73 -66
- package/dist/components/text/Text.js +18 -25
- package/dist/components/toast/Toast.js +104 -82
- package/dist/components/tooltip/Tooltip.js +65 -55
- package/dist/index.js +76 -272
- package/dist/node_modules/@lezer/common/dist/index.js +778 -143
- package/dist/node_modules/@lezer/highlight/dist/index.js +305 -536
- package/dist/node_modules/prettier/plugins/babel.js +9582 -7023
- package/dist/node_modules/prettier/plugins/estree.js +6997 -4377
- package/dist/node_modules/prettier/standalone.js +3444 -2415
- package/dist/utils/arrayService.js +0 -1
- package/dist/utils/color.js +46 -41
- package/dist/utils/component.js +60 -129
- package/dist/utils/contextStore.js +47 -58
- package/dist/utils/index.js +7 -29
- package/dist/utils/motion.js +84 -113
- package/dist/utils/reactiveArrayService.js +80 -76
- package/dist/utils/size.js +14 -26
- package/dist/utils/utils.js +0 -1
- package/dist/utils/view.js +27 -24
- package/dist/vite-env.d.js +0 -1
- package/package.json +28 -23
- package/dist/_virtual/compiler-runtime.js +0 -5
- package/dist/_virtual/compiler-runtime2.js +0 -4
- package/dist/_virtual/react-compiler-runtime.development.js +0 -4
- package/dist/_virtual/react-compiler-runtime.production.js +0 -4
- package/dist/assets/components/alert/Alert.style.css +0 -1
- package/dist/assets/components/aurora/Aurora.style.css +0 -1
- package/dist/assets/components/avatar/Avatar.style.css +0 -1
- package/dist/assets/components/badge/Badge.style.css +0 -1
- package/dist/assets/components/breadcrumb/Breadcrumb.style.css +0 -1
- package/dist/assets/components/button/Button.style.css +0 -1
- package/dist/assets/components/button-group/ButtonGroup.style.css +0 -1
- package/dist/assets/components/card/Card.style.css +0 -1
- package/dist/assets/components/chart/Chart.style.css +0 -1
- package/dist/assets/components/col/Col.style.css +0 -1
- package/dist/assets/components/command/Command.style.css +0 -1
- package/dist/assets/components/container/Container.style.css +0 -1
- package/dist/assets/components/context-menu/ContextMenu.style.css +0 -1
- package/dist/assets/components/data-table/DataTable.style.css +0 -1
- package/dist/assets/components/dialog/Dialog.style.css +0 -1
- package/dist/assets/components/editor/Editor.styles.css +0 -1
- package/dist/assets/components/file-tabs/FileTabs.style.css +0 -1
- package/dist/assets/components/form/ColorInput.style.css +0 -1
- package/dist/assets/components/form/DateInput.style.css +0 -1
- package/dist/assets/components/form/EditorInput.style.css +0 -1
- package/dist/assets/components/form/FileInput.style.css +0 -1
- package/dist/assets/components/form/Input.style.css +0 -1
- package/dist/assets/components/form/InputWrapper.style.css +0 -1
- package/dist/assets/components/form/SelectInput.style.css +0 -1
- package/dist/assets/components/fullscreen/FullScreen.style.css +0 -1
- package/dist/assets/components/gantt/Gantt.style.css +0 -1
- package/dist/assets/components/icon/Icon.style.css +0 -1
- package/dist/assets/components/json-view/JsonView.style.css +0 -1
- package/dist/assets/components/layout/Layout.style.css +0 -1
- package/dist/assets/components/menu/Menu.style.css +0 -1
- package/dist/assets/components/progress/Progress.style.css +0 -1
- package/dist/assets/components/quote/Quote.style.css +0 -1
- package/dist/assets/components/resizable/Resizable.style.css +0 -1
- package/dist/assets/components/row/Row.style.css +0 -1
- package/dist/assets/components/scroll-area/ScrollArea.style.css +0 -1
- package/dist/assets/components/segmented-control/SegmentedControl.style.css +0 -1
- package/dist/assets/components/tab/Tab.style.css +0 -1
- package/dist/assets/components/text/Text.style.css +0 -1
- package/dist/assets/components/toast/Toast.style.css +0 -1
- package/dist/assets/components/tooltip/Tooltip.style.css +0 -1
- package/dist/components/icon/codezero/codezero.svg.js +0 -5
- package/dist/components/icon/codezero/gls.svg.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PopChild.js +0 -59
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PresenceChild.js +0 -34
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/index.js +0 -47
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/use-presence.js +0 -17
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/utils.js +0 -12
- package/dist/node_modules/framer-motion/dist/es/context/LayoutGroupContext.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/context/LazyContext.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/context/MotionConfigContext.js +0 -9
- package/dist/node_modules/framer-motion/dist/es/context/MotionContext/create.js +0 -13
- package/dist/node_modules/framer-motion/dist/es/context/MotionContext/index.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/context/MotionContext/utils.js +0 -15
- package/dist/node_modules/framer-motion/dist/es/context/PresenceContext.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/context/SwitchLayoutGroupContext.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/events/add-pointer-event.js +0 -8
- package/dist/node_modules/framer-motion/dist/es/events/event-info.js +0 -14
- package/dist/node_modules/framer-motion/dist/es/gestures/drag/VisualElementDragControls.js +0 -285
- package/dist/node_modules/framer-motion/dist/es/gestures/drag/index.js +0 -22
- package/dist/node_modules/framer-motion/dist/es/gestures/drag/utils/constraints.js +0 -67
- package/dist/node_modules/framer-motion/dist/es/gestures/focus.js +0 -28
- package/dist/node_modules/framer-motion/dist/es/gestures/hover.js +0 -21
- package/dist/node_modules/framer-motion/dist/es/gestures/pan/PanSession.js +0 -130
- package/dist/node_modules/framer-motion/dist/es/gestures/pan/index.js +0 -43
- package/dist/node_modules/framer-motion/dist/es/gestures/press.js +0 -29
- package/dist/node_modules/framer-motion/dist/es/motion/features/animation/exit.js +0 -45
- package/dist/node_modules/framer-motion/dist/es/motion/features/animation/index.js +0 -33
- package/dist/node_modules/framer-motion/dist/es/motion/features/animations.js +0 -13
- package/dist/node_modules/framer-motion/dist/es/motion/features/definitions.js +0 -39
- package/dist/node_modules/framer-motion/dist/es/motion/features/drag.js +0 -17
- package/dist/node_modules/framer-motion/dist/es/motion/features/gestures.js +0 -21
- package/dist/node_modules/framer-motion/dist/es/motion/features/layout/MeasureLayout.js +0 -60
- package/dist/node_modules/framer-motion/dist/es/motion/features/layout.js +0 -11
- package/dist/node_modules/framer-motion/dist/es/motion/features/load-features.js +0 -14
- package/dist/node_modules/framer-motion/dist/es/motion/features/viewport/index.js +0 -45
- package/dist/node_modules/framer-motion/dist/es/motion/features/viewport/observers.js +0 -21
- package/dist/node_modules/framer-motion/dist/es/motion/index.js +0 -62
- package/dist/node_modules/framer-motion/dist/es/motion/utils/symbol.js +0 -4
- package/dist/node_modules/framer-motion/dist/es/motion/utils/use-motion-ref.js +0 -21
- package/dist/node_modules/framer-motion/dist/es/motion/utils/use-visual-element.js +0 -65
- package/dist/node_modules/framer-motion/dist/es/motion/utils/use-visual-state.js +0 -52
- package/dist/node_modules/framer-motion/dist/es/motion/utils/valid-prop.js +0 -39
- package/dist/node_modules/framer-motion/dist/es/render/components/create-proxy.js +0 -18
- package/dist/node_modules/framer-motion/dist/es/render/components/motion/feature-bundle.js +0 -13
- package/dist/node_modules/framer-motion/dist/es/render/components/motion/proxy.js +0 -7
- package/dist/node_modules/framer-motion/dist/es/render/dom/create-visual-element.js +0 -10
- package/dist/node_modules/framer-motion/dist/es/render/dom/use-render.js +0 -16
- package/dist/node_modules/framer-motion/dist/es/render/dom/utils/filter-props.js +0 -21
- package/dist/node_modules/framer-motion/dist/es/render/dom/utils/is-svg-component.js +0 -24
- package/dist/node_modules/framer-motion/dist/es/render/html/use-html-visual-state.js +0 -10
- package/dist/node_modules/framer-motion/dist/es/render/html/use-props.js +0 -27
- package/dist/node_modules/framer-motion/dist/es/render/html/utils/create-render-state.js +0 -9
- package/dist/node_modules/framer-motion/dist/es/render/svg/lowercase-elements.js +0 -30
- package/dist/node_modules/framer-motion/dist/es/render/svg/use-props.js +0 -22
- package/dist/node_modules/framer-motion/dist/es/render/svg/use-svg-visual-state.js +0 -10
- package/dist/node_modules/framer-motion/dist/es/render/svg/utils/create-render-state.js +0 -8
- package/dist/node_modules/framer-motion/dist/es/utils/distance.js +0 -9
- package/dist/node_modules/framer-motion/dist/es/utils/get-context-window.js +0 -4
- package/dist/node_modules/framer-motion/dist/es/utils/is-browser.js +0 -4
- package/dist/node_modules/framer-motion/dist/es/utils/is-ref-object.js +0 -6
- package/dist/node_modules/framer-motion/dist/es/utils/reduced-motion/use-reduced-motion.js +0 -12
- package/dist/node_modules/framer-motion/dist/es/utils/use-composed-ref.js +0 -28
- package/dist/node_modules/framer-motion/dist/es/utils/use-constant.js +0 -8
- package/dist/node_modules/framer-motion/dist/es/utils/use-isomorphic-effect.js +0 -6
- package/dist/node_modules/motion-dom/dist/es/animation/AsyncMotionValueAnimation.js +0 -112
- package/dist/node_modules/motion-dom/dist/es/animation/JSAnimation.js +0 -144
- package/dist/node_modules/motion-dom/dist/es/animation/NativeAnimation.js +0 -106
- package/dist/node_modules/motion-dom/dist/es/animation/NativeAnimationExtended.js +0 -38
- package/dist/node_modules/motion-dom/dist/es/animation/animate/single-value.js +0 -10
- package/dist/node_modules/motion-dom/dist/es/animation/drivers/frame.js +0 -17
- package/dist/node_modules/motion-dom/dist/es/animation/generators/inertia.js +0 -37
- package/dist/node_modules/motion-dom/dist/es/animation/generators/keyframes.js +0 -30
- package/dist/node_modules/motion-dom/dist/es/animation/generators/spring.js +0 -178
- package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/calc-duration.js +0 -13
- package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/create-generator-easing.js +0 -13
- package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/is-generator.js +0 -6
- package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/velocity.js +0 -9
- package/dist/node_modules/motion-dom/dist/es/animation/interfaces/motion-value.js +0 -46
- package/dist/node_modules/motion-dom/dist/es/animation/interfaces/visual-element-target.js +0 -59
- package/dist/node_modules/motion-dom/dist/es/animation/interfaces/visual-element-variant.js +0 -29
- package/dist/node_modules/motion-dom/dist/es/animation/interfaces/visual-element.js +0 -22
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/DOMKeyframesResolver.js +0 -68
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/KeyframesResolver.js +0 -74
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/get-final.js +0 -8
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/offsets/default.js +0 -8
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/offsets/fill.js +0 -12
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/offsets/time.js +0 -6
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/fill-wildcards.js +0 -7
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/is-none.js +0 -7
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/make-none-animatable.js +0 -16
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/unit-conversion.js +0 -37
- package/dist/node_modules/motion-dom/dist/es/animation/optimized-appear/data-id.js +0 -6
- package/dist/node_modules/motion-dom/dist/es/animation/optimized-appear/get-appear-id.js +0 -7
- package/dist/node_modules/motion-dom/dist/es/animation/utils/WithPromise.js +0 -27
- package/dist/node_modules/motion-dom/dist/es/animation/utils/calc-child-stagger.js +0 -7
- package/dist/node_modules/motion-dom/dist/es/animation/utils/can-animate.js +0 -23
- package/dist/node_modules/motion-dom/dist/es/animation/utils/css-variables-conversion.js +0 -31
- package/dist/node_modules/motion-dom/dist/es/animation/utils/default-transitions.js +0 -22
- package/dist/node_modules/motion-dom/dist/es/animation/utils/get-value-transition.js +0 -8
- package/dist/node_modules/motion-dom/dist/es/animation/utils/is-animatable.js +0 -7
- package/dist/node_modules/motion-dom/dist/es/animation/utils/is-css-variable.js +0 -9
- package/dist/node_modules/motion-dom/dist/es/animation/utils/is-transition-defined.js +0 -21
- package/dist/node_modules/motion-dom/dist/es/animation/utils/make-animation-instant.js +0 -6
- package/dist/node_modules/motion-dom/dist/es/animation/utils/replace-transition-type.js +0 -16
- package/dist/node_modules/motion-dom/dist/es/animation/utils/resolve-transition.js +0 -10
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/easing/cubic-bezier.js +0 -4
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/easing/map-easing.js +0 -12
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/easing/supported.js +0 -15
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/start-waapi-animation.js +0 -21
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/supports/waapi.js +0 -33
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/accelerated-values.js +0 -12
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/apply-generator.js +0 -8
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/is-browser-color.js +0 -10
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/linear.js +0 -10
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/unsupported-easing.js +0 -17
- package/dist/node_modules/motion-dom/dist/es/events/add-dom-event.js +0 -6
- package/dist/node_modules/motion-dom/dist/es/frameloop/batcher.js +0 -27
- package/dist/node_modules/motion-dom/dist/es/frameloop/frame.js +0 -9
- package/dist/node_modules/motion-dom/dist/es/frameloop/microtask.js +0 -5
- package/dist/node_modules/motion-dom/dist/es/frameloop/order.js +0 -21
- package/dist/node_modules/motion-dom/dist/es/frameloop/render-step.js +0 -43
- package/dist/node_modules/motion-dom/dist/es/frameloop/sync-time.js +0 -15
- package/dist/node_modules/motion-dom/dist/es/gestures/drag/state/is-active.js +0 -11
- package/dist/node_modules/motion-dom/dist/es/gestures/drag/state/set-active.js +0 -11
- package/dist/node_modules/motion-dom/dist/es/gestures/hover.js +0 -38
- package/dist/node_modules/motion-dom/dist/es/gestures/press/index.js +0 -34
- package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/is-keyboard-accessible.js +0 -18
- package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/keyboard.js +0 -27
- package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/state.js +0 -4
- package/dist/node_modules/motion-dom/dist/es/gestures/utils/is-node-or-child.js +0 -4
- package/dist/node_modules/motion-dom/dist/es/gestures/utils/is-primary-pointer.js +0 -4
- package/dist/node_modules/motion-dom/dist/es/gestures/utils/setup.js +0 -12
- package/dist/node_modules/motion-dom/dist/es/projection/animation/mix-values.js +0 -32
- package/dist/node_modules/motion-dom/dist/es/projection/geometry/conversion.js +0 -25
- package/dist/node_modules/motion-dom/dist/es/projection/geometry/copy.js +0 -14
- package/dist/node_modules/motion-dom/dist/es/projection/geometry/delta-apply.js +0 -53
- package/dist/node_modules/motion-dom/dist/es/projection/geometry/delta-calc.js +0 -38
- package/dist/node_modules/motion-dom/dist/es/projection/geometry/delta-remove.js +0 -25
- package/dist/node_modules/motion-dom/dist/es/projection/geometry/models.js +0 -18
- package/dist/node_modules/motion-dom/dist/es/projection/geometry/utils.js +0 -34
- package/dist/node_modules/motion-dom/dist/es/projection/node/DocumentProjectionNode.js +0 -13
- package/dist/node_modules/motion-dom/dist/es/projection/node/HTMLProjectionNode.js +0 -25
- package/dist/node_modules/motion-dom/dist/es/projection/node/create-projection-node.js +0 -618
- package/dist/node_modules/motion-dom/dist/es/projection/node/state.js +0 -15
- package/dist/node_modules/motion-dom/dist/es/projection/shared/stack.js +0 -53
- package/dist/node_modules/motion-dom/dist/es/projection/styles/scale-border-radius.js +0 -21
- package/dist/node_modules/motion-dom/dist/es/projection/styles/scale-box-shadow.js +0 -16
- package/dist/node_modules/motion-dom/dist/es/projection/styles/scale-correction.js +0 -21
- package/dist/node_modules/motion-dom/dist/es/projection/styles/transform.js +0 -13
- package/dist/node_modules/motion-dom/dist/es/projection/utils/compare-by-depth.js +0 -4
- package/dist/node_modules/motion-dom/dist/es/projection/utils/each-axis.js +0 -6
- package/dist/node_modules/motion-dom/dist/es/projection/utils/flat-tree.js +0 -19
- package/dist/node_modules/motion-dom/dist/es/projection/utils/has-transform.js +0 -20
- package/dist/node_modules/motion-dom/dist/es/projection/utils/measure.js +0 -13
- package/dist/node_modules/motion-dom/dist/es/render/Feature.js +0 -10
- package/dist/node_modules/motion-dom/dist/es/render/VisualElement.js +0 -263
- package/dist/node_modules/motion-dom/dist/es/render/dom/DOMVisualElement.js +0 -28
- package/dist/node_modules/motion-dom/dist/es/render/dom/is-css-var.js +0 -4
- package/dist/node_modules/motion-dom/dist/es/render/dom/parse-transform.js +0 -65
- package/dist/node_modules/motion-dom/dist/es/render/dom/style-set.js +0 -7
- package/dist/node_modules/motion-dom/dist/es/render/dom/utils/camel-to-dash.js +0 -6
- package/dist/node_modules/motion-dom/dist/es/render/html/HTMLVisualElement.js +0 -37
- package/dist/node_modules/motion-dom/dist/es/render/html/utils/build-styles.js +0 -29
- package/dist/node_modules/motion-dom/dist/es/render/html/utils/build-transform.js +0 -38
- package/dist/node_modules/motion-dom/dist/es/render/html/utils/render.js +0 -12
- package/dist/node_modules/motion-dom/dist/es/render/html/utils/scrape-motion-values.js +0 -13
- package/dist/node_modules/motion-dom/dist/es/render/store.js +0 -4
- package/dist/node_modules/motion-dom/dist/es/render/svg/SVGVisualElement.js +0 -40
- package/dist/node_modules/motion-dom/dist/es/render/svg/utils/build-attrs.js +0 -32
- package/dist/node_modules/motion-dom/dist/es/render/svg/utils/camel-case-attrs.js +0 -28
- package/dist/node_modules/motion-dom/dist/es/render/svg/utils/is-svg-tag.js +0 -4
- package/dist/node_modules/motion-dom/dist/es/render/svg/utils/path.js +0 -15
- package/dist/node_modules/motion-dom/dist/es/render/svg/utils/render.js +0 -11
- package/dist/node_modules/motion-dom/dist/es/render/svg/utils/scrape-motion-values.js +0 -15
- package/dist/node_modules/motion-dom/dist/es/render/utils/animation-state.js +0 -143
- package/dist/node_modules/motion-dom/dist/es/render/utils/get-variant-context.js +0 -20
- package/dist/node_modules/motion-dom/dist/es/render/utils/is-animation-controls.js +0 -6
- package/dist/node_modules/motion-dom/dist/es/render/utils/is-controlling-variants.js +0 -13
- package/dist/node_modules/motion-dom/dist/es/render/utils/is-forced-motion-value.js +0 -9
- package/dist/node_modules/motion-dom/dist/es/render/utils/is-keyframes-target.js +0 -4
- package/dist/node_modules/motion-dom/dist/es/render/utils/is-variant-label.js +0 -6
- package/dist/node_modules/motion-dom/dist/es/render/utils/keys-position.js +0 -13
- package/dist/node_modules/motion-dom/dist/es/render/utils/keys-transform.js +0 -23
- package/dist/node_modules/motion-dom/dist/es/render/utils/motion-values.js +0 -25
- package/dist/node_modules/motion-dom/dist/es/render/utils/reduced-motion/index.js +0 -15
- package/dist/node_modules/motion-dom/dist/es/render/utils/reduced-motion/state.js +0 -5
- package/dist/node_modules/motion-dom/dist/es/render/utils/resolve-dynamic-variants.js +0 -8
- package/dist/node_modules/motion-dom/dist/es/render/utils/resolve-variants.js +0 -20
- package/dist/node_modules/motion-dom/dist/es/render/utils/setters.js +0 -21
- package/dist/node_modules/motion-dom/dist/es/render/utils/shallow-compare.js +0 -14
- package/dist/node_modules/motion-dom/dist/es/render/utils/variant-props.js +0 -13
- package/dist/node_modules/motion-dom/dist/es/resize/handle-element.js +0 -39
- package/dist/node_modules/motion-dom/dist/es/resize/handle-window.js +0 -23
- package/dist/node_modules/motion-dom/dist/es/resize/index.js +0 -8
- package/dist/node_modules/motion-dom/dist/es/utils/delay.js +0 -12
- package/dist/node_modules/motion-dom/dist/es/utils/interpolate.js +0 -42
- package/dist/node_modules/motion-dom/dist/es/utils/is-html-element.js +0 -7
- package/dist/node_modules/motion-dom/dist/es/utils/is-svg-element.js +0 -7
- package/dist/node_modules/motion-dom/dist/es/utils/is-svg-svg-element.js +0 -7
- package/dist/node_modules/motion-dom/dist/es/utils/mix/color.js +0 -29
- package/dist/node_modules/motion-dom/dist/es/utils/mix/complex.js +0 -51
- package/dist/node_modules/motion-dom/dist/es/utils/mix/immediate.js +0 -6
- package/dist/node_modules/motion-dom/dist/es/utils/mix/index.js +0 -8
- package/dist/node_modules/motion-dom/dist/es/utils/mix/number.js +0 -4
- package/dist/node_modules/motion-dom/dist/es/utils/mix/visibility.js +0 -8
- package/dist/node_modules/motion-dom/dist/es/utils/resolve-elements.js +0 -15
- package/dist/node_modules/motion-dom/dist/es/utils/supports/flags.js +0 -4
- package/dist/node_modules/motion-dom/dist/es/utils/supports/linear-easing.js +0 -12
- package/dist/node_modules/motion-dom/dist/es/utils/supports/memo.js +0 -9
- package/dist/node_modules/motion-dom/dist/es/utils/supports/scroll-timeline.js +0 -5
- package/dist/node_modules/motion-dom/dist/es/value/index.js +0 -212
- package/dist/node_modules/motion-dom/dist/es/value/types/auto.js +0 -7
- package/dist/node_modules/motion-dom/dist/es/value/types/color/hex.js +0 -19
- package/dist/node_modules/motion-dom/dist/es/value/types/color/hsla-to-rgba.js +0 -22
- package/dist/node_modules/motion-dom/dist/es/value/types/color/hsla.js +0 -12
- package/dist/node_modules/motion-dom/dist/es/value/types/color/index.js +0 -15
- package/dist/node_modules/motion-dom/dist/es/value/types/color/rgba.js +0 -16
- package/dist/node_modules/motion-dom/dist/es/value/types/color/utils.js +0 -18
- package/dist/node_modules/motion-dom/dist/es/value/types/complex/filter.js +0 -24
- package/dist/node_modules/motion-dom/dist/es/value/types/complex/index.js +0 -51
- package/dist/node_modules/motion-dom/dist/es/value/types/complex/mask.js +0 -11
- package/dist/node_modules/motion-dom/dist/es/value/types/dimensions.js +0 -9
- package/dist/node_modules/motion-dom/dist/es/value/types/int.js +0 -8
- package/dist/node_modules/motion-dom/dist/es/value/types/maps/defaults.js +0 -27
- package/dist/node_modules/motion-dom/dist/es/value/types/maps/number.js +0 -70
- package/dist/node_modules/motion-dom/dist/es/value/types/maps/transform.js +0 -37
- package/dist/node_modules/motion-dom/dist/es/value/types/numbers/index.js +0 -17
- package/dist/node_modules/motion-dom/dist/es/value/types/numbers/units.js +0 -17
- package/dist/node_modules/motion-dom/dist/es/value/types/test.js +0 -4
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/animatable-none.js +0 -12
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/color-regex.js +0 -4
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/find.js +0 -8
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/float-regex.js +0 -4
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/get-as-type.js +0 -4
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/is-nullish.js +0 -6
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/sanitize.js +0 -4
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/single-color-regex.js +0 -4
- package/dist/node_modules/motion-dom/dist/es/value/utils/is-motion-value.js +0 -4
- package/dist/node_modules/motion-dom/dist/es/value/utils/resolve-motion-value.js +0 -7
- package/dist/node_modules/motion-dom/dist/es/value/will-change/add-will-change.js +0 -14
- package/dist/node_modules/motion-dom/dist/es/value/will-change/is.js +0 -7
- package/dist/node_modules/motion-utils/dist/es/array.js +0 -11
- package/dist/node_modules/motion-utils/dist/es/clamp.js +0 -4
- package/dist/node_modules/motion-utils/dist/es/easing/anticipate.js +0 -5
- package/dist/node_modules/motion-utils/dist/es/easing/back.js +0 -9
- package/dist/node_modules/motion-utils/dist/es/easing/circ.js +0 -8
- package/dist/node_modules/motion-utils/dist/es/easing/cubic-bezier.js +0 -19
- package/dist/node_modules/motion-utils/dist/es/easing/ease.js +0 -7
- package/dist/node_modules/motion-utils/dist/es/easing/modifiers/mirror.js +0 -4
- package/dist/node_modules/motion-utils/dist/es/easing/modifiers/reverse.js +0 -4
- package/dist/node_modules/motion-utils/dist/es/easing/utils/is-bezier-definition.js +0 -4
- package/dist/node_modules/motion-utils/dist/es/easing/utils/is-easing-array.js +0 -4
- package/dist/node_modules/motion-utils/dist/es/easing/utils/map.js +0 -32
- package/dist/node_modules/motion-utils/dist/es/errors.js +0 -14
- package/dist/node_modules/motion-utils/dist/es/format-error-message.js +0 -6
- package/dist/node_modules/motion-utils/dist/es/global-config.js +0 -4
- package/dist/node_modules/motion-utils/dist/es/is-numerical-string.js +0 -4
- package/dist/node_modules/motion-utils/dist/es/is-object.js +0 -4
- package/dist/node_modules/motion-utils/dist/es/is-zero-value-string.js +0 -4
- package/dist/node_modules/motion-utils/dist/es/memo.js +0 -8
- package/dist/node_modules/motion-utils/dist/es/noop.js +0 -4
- package/dist/node_modules/motion-utils/dist/es/pipe.js +0 -4
- package/dist/node_modules/motion-utils/dist/es/progress.js +0 -7
- package/dist/node_modules/motion-utils/dist/es/subscription-manager.js +0 -29
- package/dist/node_modules/motion-utils/dist/es/time-conversion.js +0 -5
- package/dist/node_modules/motion-utils/dist/es/velocity-per-second.js +0 -4
- package/dist/node_modules/motion-utils/dist/es/warn-once.js +0 -8
- package/dist/node_modules/react/cjs/react-compiler-runtime.development.js +0 -21
- package/dist/node_modules/react/cjs/react-compiler-runtime.production.js +0 -14
- package/dist/node_modules/react/compiler-runtime.js +0 -10
- /package/dist/assets/{components/flex/Flex.style.css → Flex.style.css} +0 -0
- /package/dist/assets/{components/spacing/Spacing.style.css → Spacing.style.css} +0 -0
|
@@ -1,135 +1,101 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import "
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
7
|
-
import "js
|
|
8
|
-
import {
|
|
9
|
-
import
|
|
10
|
-
import {
|
|
11
|
-
import "
|
|
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
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
const m = n;
|
|
101
|
-
let o;
|
|
102
|
-
return t[2] !== m ? (o = /* @__PURE__ */ i(a.Group, { ...m }), t[2] = m, t[3] = o) : o = t[3], o;
|
|
103
|
-
}, ct = (e) => {
|
|
104
|
-
const t = c.c(4);
|
|
105
|
-
let n;
|
|
106
|
-
t[0] !== e ? (n = r("command__item", e), t[0] = e, t[1] = n) : n = t[1];
|
|
107
|
-
const m = n;
|
|
108
|
-
let o;
|
|
109
|
-
return t[2] !== m ? (o = /* @__PURE__ */ i(a.Item, { ...m }), t[2] = m, t[3] = o) : o = t[3], o;
|
|
110
|
-
}, at = (e) => {
|
|
111
|
-
const t = c.c(4);
|
|
112
|
-
let n;
|
|
113
|
-
t[0] !== e ? (n = r("command__separator", e), t[0] = e, t[1] = n) : n = t[1];
|
|
114
|
-
const m = n;
|
|
115
|
-
let o;
|
|
116
|
-
return t[2] !== m ? (o = /* @__PURE__ */ i(a.Separator, { ...m }), t[2] = m, t[3] = o) : o = t[3], o;
|
|
117
|
-
}, rt = (e) => {
|
|
118
|
-
const t = c.c(5);
|
|
119
|
-
let n;
|
|
120
|
-
t[0] !== e ? (n = r("command__shortcut", e), t[0] = e, t[1] = n) : n = t[1];
|
|
121
|
-
const m = n;
|
|
122
|
-
let o;
|
|
123
|
-
return t[2] !== e.children || t[3] !== m ? (o = /* @__PURE__ */ i($, { ...m, children: e.children }), t[2] = e.children, t[3] = m, t[4] = o) : o = t[4], o;
|
|
124
|
-
};
|
|
125
|
-
export {
|
|
126
|
-
y as Command,
|
|
127
|
-
nt as CommandDialog,
|
|
128
|
-
it as CommandEmpty,
|
|
129
|
-
lt as CommandGroup,
|
|
130
|
-
mt as CommandInput,
|
|
131
|
-
ct as CommandItem,
|
|
132
|
-
ot as CommandList,
|
|
133
|
-
at as CommandSeparator,
|
|
134
|
-
rt as CommandShortcut
|
|
1
|
+
import { mergeComponentProps } from "../../utils/component.js";
|
|
2
|
+
import "../../utils/index.js";
|
|
3
|
+
import { Badge } from "../badge/Badge.js";
|
|
4
|
+
import { Dialog, DialogContent, DialogOverlay, DialogPortal } from "../dialog/Dialog.js";
|
|
5
|
+
import '../../assets/Command.style.css';/* empty css */
|
|
6
|
+
import { TextInput } from "../form/TextInput.js";
|
|
7
|
+
import "../form/index.js";
|
|
8
|
+
import { c } from "react/compiler-runtime";
|
|
9
|
+
import React from "react";
|
|
10
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
11
|
+
import { Command as Command$1 } from "cmdk";
|
|
12
|
+
const Command = (p) => {
|
|
13
|
+
let m = c(4), h;
|
|
14
|
+
m[0] === p ? h = m[1] : (h = mergeComponentProps("command", p), m[0] = p, m[1] = h);
|
|
15
|
+
let g = h, _;
|
|
16
|
+
return m[2] === g ? _ = m[3] : (_ = /* @__PURE__ */ jsx(Command$1, { ...g }), m[2] = g, m[3] = _), _;
|
|
17
|
+
}, CommandDialog = (e) => {
|
|
18
|
+
let p = c(11), v;
|
|
19
|
+
p[0] === Symbol.for("react.memo_cache_sentinel") ? (v = /* @__PURE__ */ jsx(DialogOverlay, {}), p[0] = v) : v = p[0];
|
|
20
|
+
let y;
|
|
21
|
+
p[1] === e ? y = p[2] : (y = /* @__PURE__ */ jsx(Command, {
|
|
22
|
+
...e,
|
|
23
|
+
h: "100%",
|
|
24
|
+
children: e.children
|
|
25
|
+
}), p[1] = e, p[2] = y);
|
|
26
|
+
let b;
|
|
27
|
+
p[3] !== e.contentProps || p[4] !== y ? (b = /* @__PURE__ */ jsxs(DialogPortal, { children: [v, /* @__PURE__ */ jsx(DialogContent, {
|
|
28
|
+
className: "command__dialog",
|
|
29
|
+
...e.contentProps,
|
|
30
|
+
children: y
|
|
31
|
+
})] }), p[3] = e.contentProps, p[4] = y, p[5] = b) : b = p[5];
|
|
32
|
+
let x;
|
|
33
|
+
return p[6] !== e.dialogProps || p[7] !== e.onOpenChange || p[8] !== e.open || p[9] !== b ? (x = /* @__PURE__ */ jsx(Dialog, {
|
|
34
|
+
...e.dialogProps,
|
|
35
|
+
open: e.open,
|
|
36
|
+
onOpenChange: e.onOpenChange,
|
|
37
|
+
children: b
|
|
38
|
+
}), p[6] = e.dialogProps, p[7] = e.onOpenChange, p[8] = e.open, p[9] = b, p[10] = x) : x = p[10], x;
|
|
39
|
+
}, CommandList = (p) => {
|
|
40
|
+
let m = c(4), h;
|
|
41
|
+
m[0] === p ? h = m[1] : (h = mergeComponentProps("command__list", p), m[0] = p, m[1] = h);
|
|
42
|
+
let g = h, _;
|
|
43
|
+
return m[2] === g ? _ = m[3] : (_ = /* @__PURE__ */ jsx(Command$1.List, { ...g }), m[2] = g, m[3] = _), _;
|
|
44
|
+
}, CommandInput = (e) => {
|
|
45
|
+
let p = c(11), m;
|
|
46
|
+
p[0] === e.value ? m = p[1] : (m = e.value?.toString(), p[0] = e.value, p[1] = m);
|
|
47
|
+
let h;
|
|
48
|
+
p[2] === e ? h = p[3] : (h = (p) => {
|
|
49
|
+
if (e.onChange) {
|
|
50
|
+
let m = { target: { value: p } };
|
|
51
|
+
e.onChange(m);
|
|
52
|
+
}
|
|
53
|
+
}, p[2] = e, p[3] = h);
|
|
54
|
+
let g;
|
|
55
|
+
p[4] === Symbol.for("react.memo_cache_sentinel") ? (g = { style: {
|
|
56
|
+
background: "transparent",
|
|
57
|
+
boxShadow: "none"
|
|
58
|
+
} }, p[4] = g) : g = p[4];
|
|
59
|
+
let _;
|
|
60
|
+
p[5] === e ? _ = p[6] : (_ = /* @__PURE__ */ jsx(TextInput, {
|
|
61
|
+
wrapperComponent: g,
|
|
62
|
+
className: "command__input",
|
|
63
|
+
...e
|
|
64
|
+
}), p[5] = e, p[6] = _);
|
|
65
|
+
let y;
|
|
66
|
+
return p[7] !== m || p[8] !== h || p[9] !== _ ? (y = /* @__PURE__ */ jsx(Command$1.Input, {
|
|
67
|
+
value: m,
|
|
68
|
+
onValueChange: h,
|
|
69
|
+
asChild: !0,
|
|
70
|
+
children: _
|
|
71
|
+
}), p[7] = m, p[8] = h, p[9] = _, p[10] = y) : y = p[10], y;
|
|
72
|
+
}, CommandEmpty = (p) => {
|
|
73
|
+
let m = c(4), h;
|
|
74
|
+
m[0] === p ? h = m[1] : (h = mergeComponentProps("command__empty", p), m[0] = p, m[1] = h);
|
|
75
|
+
let g = h, _;
|
|
76
|
+
return m[2] === g ? _ = m[3] : (_ = /* @__PURE__ */ jsx(Command$1.Empty, { ...g }), m[2] = g, m[3] = _), _;
|
|
77
|
+
}, CommandGroup = (p) => {
|
|
78
|
+
let m = c(4), h;
|
|
79
|
+
m[0] === p ? h = m[1] : (h = mergeComponentProps("command__group", p), m[0] = p, m[1] = h);
|
|
80
|
+
let g = h, _;
|
|
81
|
+
return m[2] === g ? _ = m[3] : (_ = /* @__PURE__ */ jsx(Command$1.Group, { ...g }), m[2] = g, m[3] = _), _;
|
|
82
|
+
}, CommandItem = (p) => {
|
|
83
|
+
let m = c(4), h;
|
|
84
|
+
m[0] === p ? h = m[1] : (h = mergeComponentProps("command__item", p), m[0] = p, m[1] = h);
|
|
85
|
+
let g = h, _;
|
|
86
|
+
return m[2] === g ? _ = m[3] : (_ = /* @__PURE__ */ jsx(Command$1.Item, { ...g }), m[2] = g, m[3] = _), _;
|
|
87
|
+
}, CommandSeparator = (p) => {
|
|
88
|
+
let m = c(4), h;
|
|
89
|
+
m[0] === p ? h = m[1] : (h = mergeComponentProps("command__separator", p), m[0] = p, m[1] = h);
|
|
90
|
+
let g = h, _;
|
|
91
|
+
return m[2] === g ? _ = m[3] : (_ = /* @__PURE__ */ jsx(Command$1.Separator, { ...g }), m[2] = g, m[3] = _), _;
|
|
92
|
+
}, CommandShortcut = (m) => {
|
|
93
|
+
let h = c(5), g;
|
|
94
|
+
h[0] === m ? g = h[1] : (g = mergeComponentProps("command__shortcut", m), h[0] = m, h[1] = g);
|
|
95
|
+
let _ = g, v;
|
|
96
|
+
return h[2] !== m.children || h[3] !== _ ? (v = /* @__PURE__ */ jsx(Badge, {
|
|
97
|
+
..._,
|
|
98
|
+
children: m.children
|
|
99
|
+
}), h[2] = m.children, h[3] = _, h[4] = v) : v = h[4], v;
|
|
135
100
|
};
|
|
101
|
+
export { Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut };
|
|
@@ -1,24 +1,19 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import '../../assets/
|
|
4
|
-
import "
|
|
5
|
-
import "react";
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
r = t[1], o = t[2];
|
|
19
|
-
let e;
|
|
20
|
-
return t[3] !== r || t[4] !== o ? (e = /* @__PURE__ */ c("div", { ...o, children: r }), t[3] = r, t[4] = o, t[5] = e) : e = t[5], e;
|
|
21
|
-
};
|
|
22
|
-
export {
|
|
23
|
-
u as Container
|
|
1
|
+
import { mergeComponentProps } from "../../utils/component.js";
|
|
2
|
+
import "../../utils/index.js";
|
|
3
|
+
import '../../assets/Container.style.css';/* empty css */
|
|
4
|
+
import { c } from "react/compiler-runtime";
|
|
5
|
+
import React from "react";
|
|
6
|
+
import { jsx } from "react/jsx-runtime";
|
|
7
|
+
const Container = (n) => {
|
|
8
|
+
let i = c(6), a, o;
|
|
9
|
+
if (i[0] !== n) {
|
|
10
|
+
let { children: t, ...r } = n;
|
|
11
|
+
a = t, o = mergeComponentProps("container", r), i[0] = n, i[1] = a, i[2] = o;
|
|
12
|
+
} else a = i[1], o = i[2];
|
|
13
|
+
let s;
|
|
14
|
+
return i[3] !== a || i[4] !== o ? (s = /* @__PURE__ */ jsx("div", {
|
|
15
|
+
...o,
|
|
16
|
+
children: a
|
|
17
|
+
}), i[3] = a, i[4] = o, i[5] = s) : s = i[5], s;
|
|
24
18
|
};
|
|
19
|
+
export { Container };
|
|
@@ -1,113 +1,119 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import "../../utils/
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
7
|
-
import "
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import {
|
|
11
|
-
import
|
|
12
|
-
|
|
13
|
-
const
|
|
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
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
},
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
},
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
},
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
1
|
+
"use client";
|
|
2
|
+
import { mergeComponentProps } from "../../utils/component.js";
|
|
3
|
+
import { popperTransformOrigin, useObservedOpen, usePopperMotion } from "../../utils/motion.js";
|
|
4
|
+
import "../../utils/index.js";
|
|
5
|
+
import { AutoScrollArea } from "../scroll-area/ScrollArea.js";
|
|
6
|
+
import '../../assets/ContextMenu.style.css';/* empty css */
|
|
7
|
+
import { c } from "react/compiler-runtime";
|
|
8
|
+
import React from "react";
|
|
9
|
+
import { jsx } from "react/jsx-runtime";
|
|
10
|
+
import { AnimatePresence, motion } from "motion/react";
|
|
11
|
+
import * as Radix from "@radix-ui/react-context-menu";
|
|
12
|
+
var ContextMenuOpenContext = React.createContext(!1), ContextMenuSubOpenContext = React.createContext(!1);
|
|
13
|
+
const ContextMenu = (p) => {
|
|
14
|
+
let h = c(8), [g, v] = useObservedOpen(void 0, void 0, p.onOpenChange), y;
|
|
15
|
+
h[0] === p ? y = h[1] : (y = mergeComponentProps("context-menu", p), h[0] = p, h[1] = y);
|
|
16
|
+
let b = y, S;
|
|
17
|
+
h[2] !== v || h[3] !== b ? (S = /* @__PURE__ */ jsx(Radix.ContextMenu, {
|
|
18
|
+
...b,
|
|
19
|
+
onOpenChange: v
|
|
20
|
+
}), h[2] = v, h[3] = b, h[4] = S) : S = h[4];
|
|
21
|
+
let C;
|
|
22
|
+
return h[5] !== g || h[6] !== S ? (C = /* @__PURE__ */ jsx(ContextMenuOpenContext.Provider, {
|
|
23
|
+
value: g,
|
|
24
|
+
children: S
|
|
25
|
+
}), h[5] = g, h[6] = S, h[7] = C) : C = h[7], C;
|
|
26
|
+
}, ContextMenuTrigger = (p) => {
|
|
27
|
+
let m = c(4), h;
|
|
28
|
+
m[0] === p ? h = m[1] : (h = mergeComponentProps("context-menu__trigger", p), m[0] = p, m[1] = h);
|
|
29
|
+
let g = h, v;
|
|
30
|
+
return m[2] === g ? v = m[3] : (v = /* @__PURE__ */ jsx(Radix.ContextMenuTrigger, { ...g }), m[2] = g, m[3] = v), v;
|
|
31
|
+
}, ContextMenuPortal = (p) => {
|
|
32
|
+
let m = c(4), h;
|
|
33
|
+
m[0] === p ? h = m[1] : (h = mergeComponentProps("context-menu__portal", p), m[0] = p, m[1] = h);
|
|
34
|
+
let g = h, v;
|
|
35
|
+
return m[2] === g ? v = m[3] : (v = /* @__PURE__ */ jsx(Radix.ContextMenuPortal, {
|
|
36
|
+
forceMount: !0,
|
|
37
|
+
...g
|
|
38
|
+
}), m[2] = g, m[3] = v), v;
|
|
39
|
+
}, ContextMenuContent = (m) => {
|
|
40
|
+
let { children: _, ...S } = m, C = React.useContext(ContextMenuOpenContext), w = React.useRef(C), T = usePopperMotion();
|
|
41
|
+
return /* @__PURE__ */ jsx(AnimatePresence, {
|
|
42
|
+
initial: !w.current,
|
|
43
|
+
children: C && /* @__PURE__ */ jsx(Radix.ContextMenuContent, {
|
|
44
|
+
forceMount: !0,
|
|
45
|
+
asChild: !0,
|
|
46
|
+
...mergeComponentProps(`context-menu__content context-menu__content--${m.color ?? "primary"}`, S),
|
|
47
|
+
children: /* @__PURE__ */ jsx(motion.div, {
|
|
48
|
+
...T,
|
|
49
|
+
style: popperTransformOrigin("context-menu"),
|
|
50
|
+
children: /* @__PURE__ */ jsx(AutoScrollArea, { children: /* @__PURE__ */ jsx("div", {
|
|
51
|
+
className: "context-menu__content-inner",
|
|
52
|
+
children: _
|
|
53
|
+
}) })
|
|
54
|
+
})
|
|
55
|
+
}, "context-menu__content")
|
|
56
|
+
});
|
|
57
|
+
}, ContextMenuLabel = (p) => {
|
|
58
|
+
let m = c(4), h;
|
|
59
|
+
m[0] === p ? h = m[1] : (h = mergeComponentProps("context-menu__label", p), m[0] = p, m[1] = h);
|
|
60
|
+
let g = h, v;
|
|
61
|
+
return m[2] === g ? v = m[3] : (v = /* @__PURE__ */ jsx(Radix.ContextMenuLabel, { ...g }), m[2] = g, m[3] = v), v;
|
|
62
|
+
}, ContextMenuItem = (p) => {
|
|
63
|
+
let m = c(4), h;
|
|
64
|
+
m[0] === p ? h = m[1] : (h = mergeComponentProps("context-menu__item", p), m[0] = p, m[1] = h);
|
|
65
|
+
let g = h, v;
|
|
66
|
+
return m[2] === g ? v = m[3] : (v = /* @__PURE__ */ jsx(Radix.ContextMenuItem, { ...g }), m[2] = g, m[3] = v), v;
|
|
67
|
+
}, ContextMenuGroup = (p) => {
|
|
68
|
+
let m = c(4), h;
|
|
69
|
+
m[0] === p ? h = m[1] : (h = mergeComponentProps("context-menu__group", p), m[0] = p, m[1] = h);
|
|
70
|
+
let g = h, v;
|
|
71
|
+
return m[2] === g ? v = m[3] : (v = /* @__PURE__ */ jsx(Radix.ContextMenuGroup, { ...g }), m[2] = g, m[3] = v), v;
|
|
72
|
+
}, ContextMenuSub = (p) => {
|
|
73
|
+
let h = c(8), [g, v] = useObservedOpen(p.open, p.defaultOpen, p.onOpenChange), y;
|
|
74
|
+
h[0] === p ? y = h[1] : (y = mergeComponentProps("context-menu__sub", p), h[0] = p, h[1] = y);
|
|
75
|
+
let b = y, x;
|
|
76
|
+
h[2] !== v || h[3] !== b ? (x = /* @__PURE__ */ jsx(Radix.ContextMenuSub, {
|
|
77
|
+
...b,
|
|
78
|
+
onOpenChange: v
|
|
79
|
+
}), h[2] = v, h[3] = b, h[4] = x) : x = h[4];
|
|
80
|
+
let C;
|
|
81
|
+
return h[5] !== g || h[6] !== x ? (C = /* @__PURE__ */ jsx(ContextMenuSubOpenContext.Provider, {
|
|
82
|
+
value: g,
|
|
83
|
+
children: x
|
|
84
|
+
}), h[5] = g, h[6] = x, h[7] = C) : C = h[7], C;
|
|
85
|
+
}, ContextMenuSubTrigger = (p) => {
|
|
86
|
+
let m = c(4), h;
|
|
87
|
+
m[0] === p ? h = m[1] : (h = mergeComponentProps("context-menu__sub-trigger", p), m[0] = p, m[1] = h);
|
|
88
|
+
let g = h, v;
|
|
89
|
+
return m[2] === g ? v = m[3] : (v = /* @__PURE__ */ jsx(Radix.ContextMenuSubTrigger, { ...g }), m[2] = g, m[3] = v), v;
|
|
90
|
+
}, ContextMenuSubContent = (m) => {
|
|
91
|
+
let { children: _, ...x } = m, C = React.useContext(ContextMenuSubOpenContext), w = React.useRef(C), T = usePopperMotion();
|
|
92
|
+
return /* @__PURE__ */ jsx(AnimatePresence, {
|
|
93
|
+
initial: !w.current,
|
|
94
|
+
children: C && /* @__PURE__ */ jsx(Radix.ContextMenuSubContent, {
|
|
95
|
+
forceMount: !0,
|
|
96
|
+
asChild: !0,
|
|
97
|
+
...mergeComponentProps(`context-menu__sub-content context-menu__sub-content--${m.color ?? "primary"}`, x),
|
|
98
|
+
children: /* @__PURE__ */ jsx(motion.div, {
|
|
99
|
+
...T,
|
|
100
|
+
style: popperTransformOrigin("context-menu"),
|
|
101
|
+
children: /* @__PURE__ */ jsx(AutoScrollArea, { children: /* @__PURE__ */ jsx("div", {
|
|
102
|
+
className: "context-menu__content-inner",
|
|
103
|
+
children: _
|
|
104
|
+
}) })
|
|
105
|
+
})
|
|
106
|
+
}, "context-menu__sub-content")
|
|
107
|
+
});
|
|
108
|
+
}, ContextMenuSeparator = (p) => {
|
|
109
|
+
let m = c(4), h;
|
|
110
|
+
m[0] === p ? h = m[1] : (h = mergeComponentProps("context-menu__separator", p), m[0] = p, m[1] = h);
|
|
111
|
+
let g = h, v;
|
|
112
|
+
return m[2] === g ? v = m[3] : (v = /* @__PURE__ */ jsx(Radix.ContextMenuSeparator, { ...g }), m[2] = g, m[3] = v), v;
|
|
113
|
+
}, ContextMenuArrow = (p) => {
|
|
114
|
+
let m = c(4), h;
|
|
115
|
+
m[0] === p ? h = m[1] : (h = mergeComponentProps("context-menu__arrow", p), m[0] = p, m[1] = h);
|
|
116
|
+
let g = h, v;
|
|
117
|
+
return m[2] === g ? v = m[3] : (v = /* @__PURE__ */ jsx(Radix.ContextMenuArrow, { ...g }), m[2] = g, m[3] = v), v;
|
|
113
118
|
};
|
|
119
|
+
export { ContextMenu, ContextMenuArrow, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuSeparator, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger };
|