@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,9 +1,9 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { Component } from '../../utils';
|
|
3
3
|
/**
|
|
4
|
-
* The common shape every resolved icon component is rendered with. All
|
|
5
|
-
* sources (Tabler, Simple Icons, CodeZero) accept `size`/`color`;
|
|
6
|
-
* only honoured by Tabler icons and ignored by the others.
|
|
4
|
+
* The common shape every resolved icon component is rendered with. All four
|
|
5
|
+
* sources (Tabler, Simple Icons, CodeZero, theSVG) accept `size`/`color`;
|
|
6
|
+
* `stroke` is only honoured by Tabler icons and ignored by the others.
|
|
7
7
|
*/
|
|
8
8
|
export type IconComponent = React.FC<{
|
|
9
9
|
size?: number | string;
|
|
@@ -17,11 +17,13 @@ export type IconComponent = React.FC<{
|
|
|
17
17
|
* - `tabler:<name>` (default when no prefix is given) e.g. `tabler:arrow-left`
|
|
18
18
|
* - `simple:<name>` e.g. `simple:github`
|
|
19
19
|
* - `codezero:<name>` e.g. `codezero:code0`
|
|
20
|
+
* - `thesvg:<name>` e.g. `thesvg:github`, optionally with a variant suffix
|
|
21
|
+
* e.g. `thesvg:github/mono`
|
|
20
22
|
*
|
|
21
23
|
* Names are normalized, so `tabler:arrow-left`, `arrow-left`, `ArrowLeft` and
|
|
22
24
|
* `IconArrowLeft` all resolve to the same icon.
|
|
23
25
|
*/
|
|
24
|
-
export type IconString = `tabler:${string}` | `simple:${string}` | `codezero:${string}` | (string & {});
|
|
26
|
+
export type IconString = `tabler:${string}` | `simple:${string}` | `codezero:${string}` | `thesvg:${string}` | (string & {});
|
|
25
27
|
/**
|
|
26
28
|
* Resolves an {@link IconString} to its matching icon component from one of the
|
|
27
29
|
* registered sources. Falls back to Tabler's `IconNote` when no icon matches.
|
|
@@ -1,44 +1,55 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import "
|
|
7
|
-
import "react";
|
|
8
|
-
import
|
|
9
|
-
import "
|
|
10
|
-
import
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
const o = h.c(14);
|
|
25
|
-
let n, c, e, t, s;
|
|
26
|
-
if (o[0] !== r) {
|
|
27
|
-
const {
|
|
28
|
-
icon: m,
|
|
29
|
-
size: p,
|
|
30
|
-
color: d,
|
|
31
|
-
stroke: v,
|
|
32
|
-
...z
|
|
33
|
-
} = r, C = p === void 0 ? 24 : p, u = d === void 0 ? "currentColor" : d;
|
|
34
|
-
let l;
|
|
35
|
-
o[6] !== m ? (l = x(m), o[6] = m, o[7] = l) : l = o[7], n = l, c = C, e = u, t = v, s = k("icon", z), o[0] = r, o[1] = n, o[2] = c, o[3] = e, o[4] = t, o[5] = s;
|
|
36
|
-
} else
|
|
37
|
-
n = o[1], c = o[2], e = o[3], t = o[4], s = o[5];
|
|
38
|
-
let i;
|
|
39
|
-
return o[8] !== n || o[9] !== c || o[10] !== e || o[11] !== t || o[12] !== s ? (i = /* @__PURE__ */ b(n, { size: c, color: e, stroke: t, ...s }), o[8] = n, o[9] = c, o[10] = e, o[11] = t, o[12] = s, o[13] = i) : i = o[13], i;
|
|
1
|
+
import { mergeComponentProps } from "../../utils/component.js";
|
|
2
|
+
import "../../utils/index.js";
|
|
3
|
+
import { codezero_exports } from "./codezero/index.js";
|
|
4
|
+
import '../../assets/Icon.style.css';/* empty css */
|
|
5
|
+
import { c } from "react/compiler-runtime";
|
|
6
|
+
import React from "react";
|
|
7
|
+
import { jsx } from "react/jsx-runtime";
|
|
8
|
+
import * as TablerIcons from "@tabler/icons-react";
|
|
9
|
+
import * as SimpleIcons from "@icons-pack/react-simple-icons";
|
|
10
|
+
import * as TheSvgIcons from "@thesvg/react";
|
|
11
|
+
var theSvgIconCache = /* @__PURE__ */ new Map(), theSvgIcon = (e, n) => {
|
|
12
|
+
let r = n ? `${e}/${n}` : e, i = theSvgIconCache.get(r);
|
|
13
|
+
if (i) return i;
|
|
14
|
+
let o = TheSvgIcons[e], s = function({ size: e = 24, color: r, stroke: i, ...s }) {
|
|
15
|
+
return /* @__PURE__ */ jsx(o, {
|
|
16
|
+
width: e,
|
|
17
|
+
height: e,
|
|
18
|
+
...n ? { variant: n } : {},
|
|
19
|
+
...r ? { fill: r } : {},
|
|
20
|
+
...s
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
return theSvgIconCache.set(r, s), s;
|
|
40
24
|
};
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
25
|
+
const resolveIcon = (e) => {
|
|
26
|
+
let r = TablerIcons.IconNote;
|
|
27
|
+
if (e?.startsWith("codezero:")) {
|
|
28
|
+
let i = e.replace("codezero:", "").trim().toLowerCase(), a = Object.keys(codezero_exports).find((e) => e.toLowerCase() === i);
|
|
29
|
+
return a ? codezero_exports[a] : r;
|
|
30
|
+
}
|
|
31
|
+
if (e?.startsWith("thesvg:")) {
|
|
32
|
+
let [n, i] = e.replace("thesvg:", "").trim().split("/"), a = n.split(/[\s_-]+/).filter(Boolean).map((e) => e.charAt(0).toUpperCase() + e.slice(1)).join(""), o = /^[0-9]/.test(a) ? `I${a}` : a;
|
|
33
|
+
return o in TheSvgIcons ? theSvgIcon(o, i) : r;
|
|
34
|
+
}
|
|
35
|
+
if (e?.startsWith("simple:")) {
|
|
36
|
+
let n = e.replace("simple:", "").trim(), i = `Si${n.charAt(0).toUpperCase() + n.slice(1)}`;
|
|
37
|
+
return i in SimpleIcons ? SimpleIcons[i] : r;
|
|
38
|
+
}
|
|
39
|
+
let i = `Icon${(e?.replace("tabler:", "") ?? "Note").trim().replace(/^icon/i, "").split(/[\s_-]+/).filter(Boolean).map((e) => e.charAt(0).toUpperCase() + e.slice(1)).join("")}`;
|
|
40
|
+
return i in TablerIcons ? TablerIcons[i] : r;
|
|
41
|
+
}, Icon = (n) => {
|
|
42
|
+
let i = c(14), o, s, l, u, d;
|
|
43
|
+
if (i[0] !== n) {
|
|
44
|
+
let { icon: r, size: a, color: f, stroke: p, ...m } = n, h = a === void 0 ? 24 : a, g;
|
|
45
|
+
i[6] === r ? g = i[7] : (g = resolveIcon(r), i[6] = r, i[7] = g), o = g, s = h, l = f, u = p, d = mergeComponentProps("icon", m), i[0] = n, i[1] = o, i[2] = s, i[3] = l, i[4] = u, i[5] = d;
|
|
46
|
+
} else o = i[1], s = i[2], l = i[3], u = i[4], d = i[5];
|
|
47
|
+
let f;
|
|
48
|
+
return i[8] !== o || i[9] !== s || i[10] !== l || i[11] !== u || i[12] !== d ? (f = /* @__PURE__ */ jsx(o, {
|
|
49
|
+
size: s,
|
|
50
|
+
color: l,
|
|
51
|
+
stroke: u,
|
|
52
|
+
...d
|
|
53
|
+
}), i[8] = o, i[9] = s, i[10] = l, i[11] = u, i[12] = d, i[13] = f) : f = i[13], f;
|
|
44
54
|
};
|
|
55
|
+
export { Icon, resolveIcon };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import "react";
|
|
2
|
+
import { jsx } from "react/jsx-runtime";
|
|
3
|
+
var codezero_default = (t) => /* @__PURE__ */ jsx("svg", {
|
|
4
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
5
|
+
id: "c",
|
|
6
|
+
viewBox: "8.01 8.97 23.83 23.83",
|
|
7
|
+
...t,
|
|
8
|
+
children: /* @__PURE__ */ jsx("path", { d: "M25.498,8.966h-11.132c-3.508,0-6.351,2.843-6.351,6.351v11.132c0,3.507,2.843,6.351,6.351,6.351h11.132c3.508,0,6.351-2.843,6.351-6.351v-11.132c0-3.507-2.843-6.351-6.351-6.351ZM24.829,15.569h-.379c-.454,0-.759.101-.915.303-.157.202-.234.514-.234.938v2.011c0,.525-.071.968-.212,1.331s-.423.676-.847.938c.424.262.706.575.847.938s.212.807.212,1.331v2.012c0,.423.078.736.234.937.156.202.461.303.915.303h.379v1.8h-.303c-.635,0-1.167-.061-1.596-.182-.429-.121-.771-.298-1.029-.53s-.441-.516-.552-.855c-.111-.337-.167-.724-.167-1.157v-2.285c0-.423-.101-.766-.303-1.028-.198-.258-.522-.387-.965-.391-.443.004-.766.132-.966.391-.201.262-.302.605-.302,1.028v2.285c0,.433-.056.819-.167,1.157-.111.338-.295.623-.552.855s-.6.408-1.029.53c-.428.12-.96.182-1.596.182h-.303v-1.8h.379c.454,0,.758-.101.915-.303.156-.201.234-.514.234-.937v-2.012c0-.524.07-.968.212-1.331.141-.363.423-.676.847-.938-.423-.262-.705-.575-.847-.938-.142-.363-.212-.806-.212-1.331v-2.011c0-.424-.078-.736-.234-.938-.157-.201-.461-.303-.915-.303h-.379v-1.799h.303c.635,0,1.167.06,1.596.182.429.12.771.297,1.029.529.257.233.441.517.552.855.111.338.167.724.167,1.158v2.284c0,.423.101.766.302,1.029.199.258.522.386.966.39.443-.004.766-.131.965-.39.202-.262.303-.606.303-1.029v-2.284c0-.434.055-.819.167-1.158.111-.337.295-.622.552-.855.257-.232.6-.408,1.029-.529.428-.121.96-.182,1.596-.182h.303v1.799Z" })
|
|
9
|
+
});
|
|
10
|
+
export { codezero_default as default };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import "react";
|
|
2
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
var gls_default = (n) => /* @__PURE__ */ jsxs("svg", {
|
|
4
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
5
|
+
viewBox: "0 0 24 24",
|
|
6
|
+
...n,
|
|
7
|
+
children: [/* @__PURE__ */ jsx("title", { children: "GLS" }), /* @__PURE__ */ jsx("path", { d: "M 5.089 8.207 c 0.398 0.02 0.787 0.074 1.179 0.148 c 0.21 0.04 0.42 0.085 0.625 0.153 c 0.031 0.011 0.062 0.026 0.094 0.034 c 0.028 0.009 0.037 0.023 0.037 0.054 v 2.025 l -0.352 -0.102 a 8 8 0 0 0 -1.136 -0.241 a 4 4 0 0 0 -1.062 -0.014 a 2.1 2.1 0 0 0 -0.863 0.287 a 1.6 1.6 0 0 0 -0.67 0.872 c -0.08 0.239 -0.116 0.486 -0.125 0.738 q -0.015 0.337 0.034 0.673 c 0.043 0.264 0.119 0.517 0.27 0.741 c 0.199 0.293 0.48 0.46 0.818 0.537 c 0.185 0.043 0.372 0.065 0.559 0.045 c 0.352 -0.034 0.662 -0.165 0.895 -0.446 a 0.2 0.2 0 0 0 0.028 -0.04 q 0.004 -0.005 0.003 -0.009 c -0.011 -0.006 -0.026 -0.003 -0.037 -0.003 H 4.037 c -0.031 0 -0.043 -0.006 -0.043 -0.04 v -1.65 c 0 -0.031 0.009 -0.04 0.04 -0.04 h 3.771 c 0.031 0 0.04 0.009 0.04 0.04 v 4.075 c 0 0.028 -0.006 0.037 -0.037 0.037 H 6.28 c -0.034 0 -0.04 -0.011 -0.04 -0.043 l 0.009 -1.073 q 0.002 -0.018 -0.006 -0.04 l -0.031 0.06 a 2 2 0 0 1 -0.665 0.707 a 3.05 3.05 0 0 1 -1.213 0.471 a 4 4 0 0 1 -0.383 0.04 c -0.014 0.006 -0.028 0 -0.043 0.003 h -0.293 c -0.346 0 -0.684 -0.057 -1.017 -0.153 q -0.281 -0.081 -0.545 -0.213 a 3 3 0 0 1 -0.662 -0.449 a 3.4 3.4 0 0 1 -0.579 -0.662 a 3.5 3.5 0 0 1 -0.426 -0.917 a 4 4 0 0 1 -0.136 -0.619 a 3 3 0 0 1 -0.043 -0.463 l -0.003 -0.136 v -0.415 a 4.05 4.05 0 0 1 0.429 -1.795 q 0.201 -0.397 0.497 -0.736 a 4 4 0 0 1 0.787 -0.693 c 0.281 -0.19 0.585 -0.338 0.903 -0.454 A 5 5 0 0 1 3.916 8.24 q 0.282 -0.041 0.565 -0.043 h 0.091 c 0.02 -0.003 0.043 0.003 0.062 -0.003 h 0.307 c 0.02 0.009 0.043 0.003 0.062 0.003 h 0.04 c 0.017 0.009 0.031 0.003 0.045 0.009 M 16.9 16.21 a 13 13 0 0 1 -0.645 -0.034 a 10 10 0 0 1 -0.863 -0.105 a 6 6 0 0 1 -0.738 -0.168 c -0.028 -0.009 -0.037 -0.02 -0.037 -0.051 V 13.816 c 0 -0.043 0 -0.043 0.04 -0.031 c 0.327 0.102 0.662 0.179 1 0.244 q 0.388 0.077 0.781 0.128 q 0.311 0.04 0.628 0.048 c 0.187 0.006 0.375 -0.003 0.559 -0.037 a 0.8 0.8 0 0 0 0.298 -0.111 c 0.125 -0.08 0.179 -0.199 0.153 -0.335 a 0.21 0.21 0 0 0 -0.105 -0.145 a 0.9 0.9 0 0 0 -0.284 -0.111 q -0.464 -0.107 -0.929 -0.21 a 4.5 4.5 0 0 1 -0.991 -0.321 c -0.341 -0.162 -0.642 -0.378 -0.866 -0.684 a 2 2 0 0 1 -0.352 -0.843 a 3 3 0 0 1 -0.043 -0.506 c 0 -0.46 0.082 -0.9 0.307 -1.306 a 2.4 2.4 0 0 1 1.014 -0.983 a 3.4 3.4 0 0 1 1.008 -0.335 c 0.204 -0.037 0.412 -0.057 0.619 -0.068 c 0.014 -0.006 0.028 0 0.04 -0.003 h 0.045 c 0.02 -0.003 0.037 0.003 0.057 -0.003 h 0.287 c 0.02 0.009 0.043 0.003 0.062 0.003 h 0.085 c 0.182 0 0.364 0.014 0.542 0.034 q 0.47 0.045 0.934 0.125 c 0.196 0.034 0.392 0.071 0.588 0.119 c 0.057 0.014 0.057 0.017 0.057 0.074 v 1.928 c 0 0.048 -0.006 0.051 -0.054 0.04 a 11 11 0 0 0 -0.684 -0.151 a 15 15 0 0 0 -0.775 -0.128 a 11 11 0 0 0 -0.54 -0.057 a 5 5 0 0 0 -0.474 -0.006 a 1.05 1.05 0 0 0 -0.474 0.111 c -0.094 0.051 -0.168 0.122 -0.19 0.23 c -0.026 0.116 0.02 0.213 0.125 0.281 a 0.8 0.8 0 0 0 0.25 0.105 c 0.256 0.065 0.511 0.122 0.77 0.185 c 0.236 0.057 0.474 0.108 0.704 0.185 c 0.329 0.111 0.645 0.253 0.923 0.469 c 0.298 0.23 0.523 0.52 0.653 0.875 q 0.114 0.316 0.142 0.653 q 0.022 0.255 0.006 0.511 a 2.37 2.37 0 0 1 -0.44 1.252 a 2.5 2.5 0 0 1 -0.594 0.576 a 3.2 3.2 0 0 1 -1.034 0.46 a 4.5 4.5 0 0 1 -1.076 0.137 h -0.409 c -0.028 -0.006 -0.054 0 -0.08 -0.006 m 6.896 -1.24 c -0.017 0.045 -0.017 0.097 -0.026 0.145 c -0.051 0.25 -0.159 0.466 -0.335 0.65 c -0.21 0.224 -0.469 0.361 -0.772 0.4 a 1.28 1.28 0 0 1 -1.099 -0.355 a 1.26 1.26 0 0 1 -0.386 -0.733 A 1.29 1.29 0 0 1 21.479 14 a 1.23 1.23 0 0 1 0.775 -0.437 c 0.506 -0.077 0.929 0.082 1.255 0.477 c 0.17 0.207 0.261 0.449 0.284 0.716 c 0.006 0.02 0 0.04 0.003 0.062 v 0.08 c 0.003 0.017 -0.003 0.034 0.003 0.051 q -0.004 0.01 -0.003 0.02 M 8.63 12.206 V 8.369 c 0 -0.034 0.009 -0.04 0.04 -0.04 h 2.406 c 0.031 0 0.037 0.009 0.037 0.04 v 5.649 c 0 0.045 0 0.045 0.045 0.045 h 2.627 c 0.034 0 0.04 0.009 0.04 0.04 v 1.942 c 0 0.034 -0.011 0.04 -0.043 0.04 H 8.67 c -0.037 0 -0.043 -0.009 -0.043 -0.045 q 0.004 -1.917 0.003 -3.834" })]
|
|
8
|
+
});
|
|
9
|
+
export { gls_default as default };
|
|
@@ -1,14 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
1
|
+
import { __export } from "../../../_virtual/rolldown_runtime.js";
|
|
2
|
+
import codezero_default from "./codezero.js";
|
|
3
|
+
import gls_default from "./gls.js";
|
|
4
|
+
import React from "react";
|
|
5
|
+
import { jsx } from "react/jsx-runtime";
|
|
6
|
+
var codezero_exports = /* @__PURE__ */ __export({
|
|
7
|
+
CodeZero: () => CodeZero,
|
|
8
|
+
Gls: () => Gls
|
|
9
|
+
}, 1), customIcon = (e) => function({ size: o = 24, color: s = "currentColor", ...c }) {
|
|
10
|
+
return /* @__PURE__ */ jsx(e, {
|
|
11
|
+
width: o,
|
|
12
|
+
height: o,
|
|
13
|
+
fill: s,
|
|
14
|
+
...c
|
|
15
|
+
});
|
|
14
16
|
};
|
|
17
|
+
const CodeZero = customIcon(codezero_default), Gls = customIcon(gls_default);
|
|
18
|
+
export { CodeZero, Gls, codezero_exports };
|
|
@@ -1,112 +1,122 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
import "react";
|
|
7
|
-
import
|
|
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
|
-
"--w-rjv-type-undefined-color": r("Null")
|
|
40
|
-
}, K = (n) => {
|
|
41
|
-
const e = T.c(24);
|
|
42
|
-
let o, i, s, p, w, t;
|
|
43
|
-
if (e[0] !== n) {
|
|
44
|
-
const {
|
|
45
|
-
displayObjectSize: a,
|
|
46
|
-
displayDataTypes: f,
|
|
47
|
-
enableClipboard: c,
|
|
48
|
-
indentWidth: g,
|
|
49
|
-
value: h,
|
|
50
|
-
...x
|
|
51
|
-
} = n;
|
|
52
|
-
t = h, i = a === void 0 ? !1 : a, o = f === void 0 ? !1 : f, s = c === void 0 ? !0 : c, p = g === void 0 ? 12.8 : g, w = z("json-view", x), e[0] = n, e[1] = o, e[2] = i, e[3] = s, e[4] = p, e[5] = w, e[6] = t;
|
|
53
|
-
} else
|
|
54
|
-
o = e[1], i = e[2], s = e[3], p = e[4], w = e[5], t = e[6];
|
|
55
|
-
const d = w;
|
|
56
|
-
if (t == null || typeof t != "object") {
|
|
57
|
-
let a;
|
|
58
|
-
e[7] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (a = r("Text"), e[7] = a) : a = e[7];
|
|
59
|
-
const f = String(t);
|
|
60
|
-
let c;
|
|
61
|
-
return e[8] !== f ? (c = /* @__PURE__ */ l(I, { c: a, children: f }), e[8] = f, e[9] = c) : c = e[9], c;
|
|
62
|
-
}
|
|
63
|
-
let m;
|
|
64
|
-
e[10] !== d.style ? (m = d.style ?? {}, e[10] = d.style, e[11] = m) : m = e[11];
|
|
65
|
-
let v;
|
|
66
|
-
e[12] !== m ? (v = {
|
|
67
|
-
...q,
|
|
68
|
-
...m
|
|
69
|
-
}, e[12] = m, e[13] = v) : v = e[13];
|
|
70
|
-
let j, y;
|
|
71
|
-
e[14] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (j = /* @__PURE__ */ l(u.Arrow, { render: B }), y = /* @__PURE__ */ l(u.Copied, { render: J }), e[14] = j, e[15] = y) : (j = e[14], y = e[15]);
|
|
72
|
-
let b;
|
|
73
|
-
return e[16] !== o || e[17] !== i || e[18] !== s || e[19] !== p || e[20] !== d || e[21] !== v || e[22] !== t ? (b = /* @__PURE__ */ _(u, { displayObjectSize: i, displayDataTypes: o, enableClipboard: s, indentWidth: p, ...d, value: t, style: v, children: [
|
|
74
|
-
j,
|
|
75
|
-
y
|
|
76
|
-
] }), e[16] = o, e[17] = i, e[18] = s, e[19] = p, e[20] = d, e[21] = v, e[22] = t, e[23] = b) : b = e[23], b;
|
|
1
|
+
import { mergeComponentProps } from "../../utils/component.js";
|
|
2
|
+
import { hashToColor } from "../../utils/color.js";
|
|
3
|
+
import "../../utils/index.js";
|
|
4
|
+
import { Text } from "../text/Text.js";
|
|
5
|
+
import '../../assets/JsonView.style.css';/* empty css */
|
|
6
|
+
import { c } from "react/compiler-runtime";
|
|
7
|
+
import React from "react";
|
|
8
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
9
|
+
import { AnimatePresence, motion } from "motion/react";
|
|
10
|
+
import { IconCheck, IconChevronRight, IconCopy } from "@tabler/icons-react";
|
|
11
|
+
import ReactJsonView from "@uiw/react-json-view";
|
|
12
|
+
var JSON_VIEW_THEME = {
|
|
13
|
+
"--w-rjv-font-family": "\"Inter\", sans-serif",
|
|
14
|
+
"--w-rjv-font-size": "0.8rem",
|
|
15
|
+
"--w-rjv-color": "rgba(255, 255, 255, 0.75)",
|
|
16
|
+
"--w-rjv-key-string": "rgba(255, 255, 255, 0.75)",
|
|
17
|
+
"--w-rjv-background-color": "transparent",
|
|
18
|
+
"--w-rjv-line-color": "rgba(191, 191, 191, 0.1)",
|
|
19
|
+
"--w-rjv-arrow-color": "rgba(255, 255, 255, 0.5)",
|
|
20
|
+
"--w-rjv-edit-color": "rgba(255, 255, 255, 0.75)",
|
|
21
|
+
"--w-rjv-info-color": "rgba(255, 255, 255, 0.5)",
|
|
22
|
+
"--w-rjv-update-color": "#ebcb8b",
|
|
23
|
+
"--w-rjv-copied-color": "rgba(255, 255, 255, 0.75)",
|
|
24
|
+
"--w-rjv-copied-success-color": "#29BF12",
|
|
25
|
+
"--w-rjv-curlybraces-color": hashToColor("bracket"),
|
|
26
|
+
"--w-rjv-brackets-color": hashToColor("squareBracket"),
|
|
27
|
+
"--w-rjv-quotes-color": "rgba(255, 255, 255, 0.75)",
|
|
28
|
+
"--w-rjv-quotes-string-color": hashToColor("Text"),
|
|
29
|
+
"--w-rjv-type-string-color": hashToColor("Text"),
|
|
30
|
+
"--w-rjv-type-int-color": hashToColor("Number"),
|
|
31
|
+
"--w-rjv-type-float-color": hashToColor("Number"),
|
|
32
|
+
"--w-rjv-type-bigint-color": hashToColor("Number"),
|
|
33
|
+
"--w-rjv-type-boolean-color": hashToColor("Boolean"),
|
|
34
|
+
"--w-rjv-type-date-color": hashToColor("Text"),
|
|
35
|
+
"--w-rjv-type-url-color": hashToColor("Text"),
|
|
36
|
+
"--w-rjv-type-null-color": hashToColor("Null"),
|
|
37
|
+
"--w-rjv-type-nan-color": hashToColor("Number"),
|
|
38
|
+
"--w-rjv-type-undefined-color": hashToColor("Null")
|
|
77
39
|
};
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
40
|
+
const JsonView = (s) => {
|
|
41
|
+
let d = c(24), f, p, m, h, _, v;
|
|
42
|
+
if (d[0] !== s) {
|
|
43
|
+
let { displayObjectSize: i, displayDataTypes: a, enableClipboard: o, indentWidth: l, value: u, ...g } = s;
|
|
44
|
+
v = u, p = i === void 0 ? !1 : i, f = a === void 0 ? !1 : a, m = o === void 0 ? !0 : o, h = l === void 0 ? 12.8 : l, _ = mergeComponentProps("json-view", g), d[0] = s, d[1] = f, d[2] = p, d[3] = m, d[4] = h, d[5] = _, d[6] = v;
|
|
45
|
+
} else f = d[1], p = d[2], m = d[3], h = d[4], _ = d[5], v = d[6];
|
|
46
|
+
let y = _;
|
|
47
|
+
if (typeof v != "object" || !v) {
|
|
48
|
+
let e;
|
|
49
|
+
d[7] === Symbol.for("react.memo_cache_sentinel") ? (e = hashToColor("Text"), d[7] = e) : e = d[7];
|
|
50
|
+
let o = String(v), s;
|
|
51
|
+
return d[8] === o ? s = d[9] : (s = /* @__PURE__ */ jsx(Text, {
|
|
52
|
+
c: e,
|
|
53
|
+
children: o
|
|
54
|
+
}), d[8] = o, d[9] = s), s;
|
|
55
|
+
}
|
|
56
|
+
let b;
|
|
57
|
+
d[10] === y.style ? b = d[11] : (b = y.style ?? {}, d[10] = y.style, d[11] = b);
|
|
58
|
+
let x;
|
|
59
|
+
d[12] === b ? x = d[13] : (x = {
|
|
60
|
+
...JSON_VIEW_THEME,
|
|
61
|
+
...b
|
|
62
|
+
}, d[12] = b, d[13] = x);
|
|
63
|
+
let S, C;
|
|
64
|
+
d[14] === Symbol.for("react.memo_cache_sentinel") ? (S = /* @__PURE__ */ jsx(ReactJsonView.Arrow, { render: _temp }), C = /* @__PURE__ */ jsx(ReactJsonView.Copied, { render: _temp2 }), d[14] = S, d[15] = C) : (S = d[14], C = d[15]);
|
|
65
|
+
let w;
|
|
66
|
+
return d[16] !== f || d[17] !== p || d[18] !== m || d[19] !== h || d[20] !== y || d[21] !== x || d[22] !== v ? (w = /* @__PURE__ */ jsxs(ReactJsonView, {
|
|
67
|
+
displayObjectSize: p,
|
|
68
|
+
displayDataTypes: f,
|
|
69
|
+
enableClipboard: m,
|
|
70
|
+
indentWidth: h,
|
|
71
|
+
...y,
|
|
72
|
+
value: v,
|
|
73
|
+
style: x,
|
|
74
|
+
children: [S, C]
|
|
75
|
+
}), d[16] = f, d[17] = p, d[18] = m, d[19] = h, d[20] = y, d[21] = x, d[22] = v, d[23] = w) : w = d[23], w;
|
|
76
|
+
};
|
|
77
|
+
function _temp(e) {
|
|
78
|
+
let { "data-expanded": i, ...a } = e;
|
|
79
|
+
return /* @__PURE__ */ jsx("span", {
|
|
80
|
+
...a,
|
|
81
|
+
className: "json-view__arrow",
|
|
82
|
+
"data-expanded": i,
|
|
83
|
+
children: /* @__PURE__ */ jsx(IconChevronRight, { size: 13 })
|
|
84
|
+
});
|
|
84
85
|
}
|
|
85
|
-
function
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
86
|
+
function _temp2(e) {
|
|
87
|
+
let { "data-copied": i, onClick: a, ...o } = e;
|
|
88
|
+
return /* @__PURE__ */ jsx("span", {
|
|
89
|
+
...o,
|
|
90
|
+
onClick: a,
|
|
91
|
+
className: "json-view__copy",
|
|
92
|
+
"data-copied": i,
|
|
93
|
+
children: /* @__PURE__ */ jsx(AnimatePresence, {
|
|
94
|
+
mode: "wait",
|
|
95
|
+
initial: !1,
|
|
96
|
+
children: /* @__PURE__ */ jsx(motion.span, {
|
|
97
|
+
initial: {
|
|
98
|
+
opacity: 0,
|
|
99
|
+
scale: .5,
|
|
100
|
+
filter: "blur(0.35rem)"
|
|
101
|
+
},
|
|
102
|
+
animate: {
|
|
103
|
+
opacity: 1,
|
|
104
|
+
scale: 1,
|
|
105
|
+
filter: "blur(0px)"
|
|
106
|
+
},
|
|
107
|
+
exit: {
|
|
108
|
+
opacity: 0,
|
|
109
|
+
scale: .5,
|
|
110
|
+
filter: "blur(0.35rem)"
|
|
111
|
+
},
|
|
112
|
+
transition: {
|
|
113
|
+
duration: .05,
|
|
114
|
+
ease: "easeIn"
|
|
115
|
+
},
|
|
116
|
+
style: { display: "inline-flex" },
|
|
117
|
+
children: jsx(i ? IconCheck : IconCopy, { size: 13 })
|
|
118
|
+
}, i ? "check" : "copy")
|
|
119
|
+
})
|
|
120
|
+
});
|
|
109
121
|
}
|
|
110
|
-
export {
|
|
111
|
-
K as JsonView
|
|
112
|
-
};
|
|
122
|
+
export { JsonView };
|
|
@@ -1,79 +1,101 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import "../../utils/
|
|
4
|
-
import "
|
|
5
|
-
import
|
|
6
|
-
import "
|
|
7
|
-
import
|
|
8
|
-
import {
|
|
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
|
-
|
|
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
|
-
|
|
1
|
+
import { mergeComponentProps } from "../../utils/component.js";
|
|
2
|
+
import { getSize } from "../../utils/size.js";
|
|
3
|
+
import "../../utils/index.js";
|
|
4
|
+
import { Flex } from "../flex/Flex.js";
|
|
5
|
+
import '../../assets/Layout.style.css';/* empty css */
|
|
6
|
+
import { c } from "react/compiler-runtime";
|
|
7
|
+
import React from "react";
|
|
8
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
9
|
+
const Layout = (i) => {
|
|
10
|
+
let s = c(56), l, u, d, f, p, m, h, g;
|
|
11
|
+
if (s[0] !== i) {
|
|
12
|
+
let { children: t, topContent: n, bottomContent: r, leftContent: a, rightContent: o, showLayoutSplitter: _, layoutGap: v, ...y } = i;
|
|
13
|
+
u = t, g = n, l = r, f = a, p = o, m = _ === void 0 ? !0 : _, d = v === void 0 ? "xl" : v, h = mergeComponentProps("d-layout", y), s[0] = i, s[1] = l, s[2] = u, s[3] = d, s[4] = f, s[5] = p, s[6] = m, s[7] = h, s[8] = g;
|
|
14
|
+
} else l = s[1], u = s[2], d = s[3], f = s[4], p = s[5], m = s[6], h = s[7], g = s[8];
|
|
15
|
+
let _;
|
|
16
|
+
s[9] === d ? _ = s[10] : (_ = getSize(d), s[9] = d, s[10] = _);
|
|
17
|
+
let v;
|
|
18
|
+
s[11] === _ ? v = s[12] : (v = {
|
|
19
|
+
flexDirection: "column",
|
|
20
|
+
gap: _
|
|
21
|
+
}, s[11] = _, s[12] = v);
|
|
22
|
+
let y;
|
|
23
|
+
s[13] === g ? y = s[14] : (y = g && /* @__PURE__ */ jsx("div", {
|
|
24
|
+
className: "d-layout__top",
|
|
25
|
+
children: g
|
|
26
|
+
}), s[13] = g, s[14] = y);
|
|
27
|
+
let b;
|
|
28
|
+
s[15] !== m || s[16] !== g ? (b = g && m && /* @__PURE__ */ jsx("div", {
|
|
29
|
+
className: "d-layout__splitter",
|
|
30
|
+
"aria-orientation": "horizontal"
|
|
31
|
+
}), s[15] = m, s[16] = g, s[17] = b) : b = s[17];
|
|
32
|
+
let x;
|
|
33
|
+
s[18] === d ? x = s[19] : (x = getSize(d), s[18] = d, s[19] = x);
|
|
34
|
+
let S;
|
|
35
|
+
s[20] === x ? S = s[21] : (S = { gap: x }, s[20] = x, s[21] = S);
|
|
36
|
+
let C;
|
|
37
|
+
s[22] === f ? C = s[23] : (C = f && /* @__PURE__ */ jsx("div", {
|
|
38
|
+
className: "d-layout__left",
|
|
39
|
+
children: f
|
|
40
|
+
}), s[22] = f, s[23] = C);
|
|
41
|
+
let w;
|
|
42
|
+
s[24] !== f || s[25] !== m ? (w = f && m && /* @__PURE__ */ jsx("div", {
|
|
43
|
+
className: "d-layout__splitter",
|
|
44
|
+
"aria-orientation": "vertical"
|
|
45
|
+
}), s[24] = f, s[25] = m, s[26] = w) : w = s[26];
|
|
46
|
+
let T;
|
|
47
|
+
s[27] === u ? T = s[28] : (T = /* @__PURE__ */ jsx("div", {
|
|
48
|
+
className: "d-layout__content",
|
|
49
|
+
children: u
|
|
50
|
+
}), s[27] = u, s[28] = T);
|
|
51
|
+
let E;
|
|
52
|
+
s[29] !== p || s[30] !== m ? (E = p && m && /* @__PURE__ */ jsx("div", {
|
|
53
|
+
className: "d-layout__splitter",
|
|
54
|
+
"aria-orientation": "vertical"
|
|
55
|
+
}), s[29] = p, s[30] = m, s[31] = E) : E = s[31];
|
|
56
|
+
let D;
|
|
57
|
+
s[32] === p ? D = s[33] : (D = p && /* @__PURE__ */ jsx("div", {
|
|
58
|
+
className: "d-layout__right",
|
|
59
|
+
children: p
|
|
60
|
+
}), s[32] = p, s[33] = D);
|
|
61
|
+
let O;
|
|
62
|
+
s[34] !== E || s[35] !== D || s[36] !== S || s[37] !== C || s[38] !== w || s[39] !== T ? (O = /* @__PURE__ */ jsxs(Flex, {
|
|
63
|
+
className: "d-layout__middle",
|
|
64
|
+
style: S,
|
|
65
|
+
children: [
|
|
66
|
+
C,
|
|
67
|
+
w,
|
|
68
|
+
T,
|
|
69
|
+
E,
|
|
70
|
+
D
|
|
71
|
+
]
|
|
72
|
+
}), s[34] = E, s[35] = D, s[36] = S, s[37] = C, s[38] = w, s[39] = T, s[40] = O) : O = s[40];
|
|
73
|
+
let k;
|
|
74
|
+
s[41] !== l || s[42] !== m ? (k = l && m && /* @__PURE__ */ jsx("div", {
|
|
75
|
+
className: "d-layout__splitter",
|
|
76
|
+
"aria-orientation": "horizontal"
|
|
77
|
+
}), s[41] = l, s[42] = m, s[43] = k) : k = s[43];
|
|
78
|
+
let A;
|
|
79
|
+
s[44] === l ? A = s[45] : (A = l && /* @__PURE__ */ jsx("div", {
|
|
80
|
+
className: "d-layout__bottom",
|
|
81
|
+
children: l
|
|
82
|
+
}), s[44] = l, s[45] = A);
|
|
83
|
+
let j;
|
|
84
|
+
s[46] !== O || s[47] !== k || s[48] !== A || s[49] !== v || s[50] !== y || s[51] !== b ? (j = /* @__PURE__ */ jsxs(Flex, {
|
|
85
|
+
className: "d-layout__inner",
|
|
86
|
+
style: v,
|
|
87
|
+
children: [
|
|
88
|
+
y,
|
|
89
|
+
b,
|
|
90
|
+
O,
|
|
91
|
+
k,
|
|
92
|
+
A
|
|
93
|
+
]
|
|
94
|
+
}), s[46] = O, s[47] = k, s[48] = A, s[49] = v, s[50] = y, s[51] = b, s[52] = j) : j = s[52];
|
|
95
|
+
let M;
|
|
96
|
+
return s[53] !== h || s[54] !== j ? (M = /* @__PURE__ */ jsx("div", {
|
|
97
|
+
...h,
|
|
98
|
+
children: j
|
|
99
|
+
}), s[53] = h, s[54] = j, s[55] = M) : M = s[55], M;
|
|
79
100
|
};
|
|
101
|
+
export { Layout };
|