@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,157 +1,142 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import "
|
|
7
|
-
import {
|
|
8
|
-
import "
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
return o;
|
|
14
|
-
}, H = (o) => {
|
|
15
|
-
const t = L.c(21), {
|
|
16
|
-
id: c,
|
|
17
|
-
className: l,
|
|
18
|
-
children: i,
|
|
19
|
-
config: e,
|
|
20
|
-
initialDimension: r,
|
|
21
|
-
style: _,
|
|
22
|
-
...h
|
|
23
|
-
} = o;
|
|
24
|
-
let v;
|
|
25
|
-
t[0] !== r ? (v = r === void 0 ? {
|
|
26
|
-
width: 320,
|
|
27
|
-
height: 200
|
|
28
|
-
} : r, t[0] = r, t[1] = v) : v = t[1];
|
|
29
|
-
const a = v, n = j.useId(), d = `chart-${c ?? n.replace(/:/g, "")}`;
|
|
30
|
-
let f;
|
|
31
|
-
t[2] !== e ? (f = Object.entries(e).reduce(k, {}), t[2] = e, t[3] = f) : f = t[3];
|
|
32
|
-
const g = f, x = A;
|
|
33
|
-
let s;
|
|
34
|
-
t[4] !== e ? (s = {
|
|
35
|
-
config: e
|
|
36
|
-
}, t[4] = e, t[5] = s) : s = t[5];
|
|
37
|
-
const $ = "chart";
|
|
38
|
-
let m;
|
|
39
|
-
t[6] !== g || t[7] !== _ ? (m = {
|
|
40
|
-
...g,
|
|
41
|
-
..._
|
|
42
|
-
}, t[6] = g, t[7] = _, t[8] = m) : m = t[8];
|
|
43
|
-
const b = I("chart", h);
|
|
44
|
-
let u;
|
|
45
|
-
t[9] !== i || t[10] !== a ? (u = /* @__PURE__ */ p(S.ResponsiveContainer, { initialDimension: a, children: i }), t[9] = i, t[10] = a, t[11] = u) : u = t[11];
|
|
46
|
-
let C;
|
|
47
|
-
t[12] !== d || t[13] !== m || t[14] !== b || t[15] !== u ? (C = /* @__PURE__ */ p("div", { "data-slot": $, "data-chart": d, style: m, ...b, children: u }), t[12] = d, t[13] = m, t[14] = b, t[15] = u, t[16] = C) : C = t[16];
|
|
48
|
-
let N;
|
|
49
|
-
return t[17] !== x.Provider || t[18] !== s || t[19] !== C ? (N = /* @__PURE__ */ p(x.Provider, { value: s, children: C }), t[17] = x.Provider, t[18] = s, t[19] = C, t[20] = N) : N = t[20], N;
|
|
50
|
-
}, J = (o) => {
|
|
51
|
-
const t = L.c(31);
|
|
52
|
-
let c, l, i, e, r, _, h;
|
|
53
|
-
t[0] !== o ? ({
|
|
54
|
-
active: c,
|
|
55
|
-
payload: e,
|
|
56
|
-
className: l,
|
|
57
|
-
hideLabel: _,
|
|
58
|
-
hideIndicator: h,
|
|
59
|
-
label: i,
|
|
60
|
-
...r
|
|
61
|
-
} = o, t[0] = o, t[1] = c, t[2] = l, t[3] = i, t[4] = e, t[5] = r, t[6] = _, t[7] = h) : (c = t[1], l = t[2], i = t[3], e = t[4], r = t[5], _ = t[6], h = t[7]);
|
|
62
|
-
const v = _ === void 0 ? !1 : _, a = h === void 0 ? !1 : h, {
|
|
63
|
-
config: n
|
|
64
|
-
} = D();
|
|
65
|
-
if (!c || !e?.length)
|
|
66
|
-
return null;
|
|
67
|
-
const [d] = e, f = `${d?.dataKey ?? d?.name ?? "value"}`;
|
|
68
|
-
let g;
|
|
69
|
-
t[8] !== n || t[9] !== d || t[10] !== f ? (g = K(n, d, f), t[8] = n, t[9] = d, t[10] = f, t[11] = g) : g = t[11];
|
|
70
|
-
const s = typeof i == "string" ? n[i]?.label ?? i : g?.label;
|
|
71
|
-
let $;
|
|
72
|
-
t[12] !== l ? ($ = I("chart__tooltip", {
|
|
73
|
-
className: l
|
|
74
|
-
}), t[12] = l, t[13] = $) : $ = t[13];
|
|
75
|
-
let m;
|
|
76
|
-
t[14] !== v || t[15] !== s ? (m = !v && s && /* @__PURE__ */ p("div", { className: "chart__tooltip-label", children: s }), t[14] = v, t[15] = s, t[16] = m) : m = t[16];
|
|
77
|
-
let b;
|
|
78
|
-
if (t[17] !== n || t[18] !== a || t[19] !== e) {
|
|
79
|
-
let N;
|
|
80
|
-
t[21] !== n || t[22] !== a ? (N = (y, E) => {
|
|
81
|
-
const P = K(n, y, `${y.name ?? y.dataKey ?? "value"}`), R = y.payload?.fill ?? y.color;
|
|
82
|
-
return /* @__PURE__ */ w("div", { className: "chart__tooltip-row chart__tooltip-row--dot", children: [
|
|
83
|
-
P?.icon ? /* @__PURE__ */ p(P.icon, {}) : !a && /* @__PURE__ */ p("div", { ...I("chart__tooltip-indicator chart__tooltip-indicator--dot", {
|
|
84
|
-
style: {
|
|
85
|
-
"--color-bg": R,
|
|
86
|
-
"--color-border": R
|
|
87
|
-
}
|
|
88
|
-
}) }),
|
|
89
|
-
/* @__PURE__ */ w("div", { className: "chart__tooltip-content", children: [
|
|
90
|
-
/* @__PURE__ */ p("div", { className: "chart__tooltip-meta", children: /* @__PURE__ */ p("span", { className: "chart__tooltip-name", children: P?.label ?? y.name }) }),
|
|
91
|
-
y.value != null && /* @__PURE__ */ p("span", { className: "chart__tooltip-value", children: typeof y.value == "number" ? y.value.toLocaleString() : String(y.value) })
|
|
92
|
-
] })
|
|
93
|
-
] }, E);
|
|
94
|
-
}, t[21] = n, t[22] = a, t[23] = N) : N = t[23], b = e.filter(q).map(N), t[17] = n, t[18] = a, t[19] = e, t[20] = b;
|
|
95
|
-
} else
|
|
96
|
-
b = t[20];
|
|
97
|
-
let u;
|
|
98
|
-
t[24] !== b ? (u = /* @__PURE__ */ p("div", { className: "chart__tooltip-body", children: b }), t[24] = b, t[25] = u) : u = t[25];
|
|
99
|
-
let C;
|
|
100
|
-
return t[26] !== r || t[27] !== $ || t[28] !== m || t[29] !== u ? (C = /* @__PURE__ */ w("div", { ...$, ...r, children: [
|
|
101
|
-
m,
|
|
102
|
-
u
|
|
103
|
-
] }), t[26] = r, t[27] = $, t[28] = m, t[29] = u, t[30] = C) : C = t[30], C;
|
|
104
|
-
}, M = (o) => {
|
|
105
|
-
const t = L.c(13), {
|
|
106
|
-
className: c,
|
|
107
|
-
hideIcon: l,
|
|
108
|
-
payload: i,
|
|
109
|
-
verticalAlign: e
|
|
110
|
-
} = o, r = l === void 0 ? !1 : l, _ = e === void 0 ? "bottom" : e, {
|
|
111
|
-
config: h
|
|
112
|
-
} = D();
|
|
113
|
-
if (!i?.length)
|
|
114
|
-
return null;
|
|
115
|
-
const v = `chart__legend ${_ === "top" ? "chart__legend--top" : "chart__legend--bottom"}`;
|
|
116
|
-
let a;
|
|
117
|
-
t[0] !== c || t[1] !== v ? (a = I(v, {
|
|
118
|
-
className: c
|
|
119
|
-
}), t[0] = c, t[1] = v, t[2] = a) : a = t[2];
|
|
120
|
-
let n;
|
|
121
|
-
if (t[3] !== h || t[4] !== r || t[5] !== i) {
|
|
122
|
-
let f;
|
|
123
|
-
t[7] !== h || t[8] !== r ? (f = (g, x) => {
|
|
124
|
-
const s = K(h, g, `${g.dataKey ?? "value"}`);
|
|
125
|
-
return /* @__PURE__ */ w("div", { className: "chart__legend-item", children: [
|
|
126
|
-
s?.icon && !r ? /* @__PURE__ */ p(s.icon, {}) : /* @__PURE__ */ p("div", { className: "chart__legend-swatch", style: {
|
|
127
|
-
backgroundColor: g.color
|
|
128
|
-
} }),
|
|
129
|
-
s?.label
|
|
130
|
-
] }, x);
|
|
131
|
-
}, t[7] = h, t[8] = r, t[9] = f) : f = t[9], n = i.filter(F).map(f), t[3] = h, t[4] = r, t[5] = i, t[6] = n;
|
|
132
|
-
} else
|
|
133
|
-
n = t[6];
|
|
134
|
-
let d;
|
|
135
|
-
return t[10] !== a || t[11] !== n ? (d = /* @__PURE__ */ p("div", { ...a, children: n }), t[10] = a, t[11] = n, t[12] = d) : d = t[12], d;
|
|
136
|
-
}, K = (o, t, c) => {
|
|
137
|
-
if (typeof t != "object" || t === null) return o[c];
|
|
138
|
-
const l = t, i = [c, typeof l.dataKey == "string" ? l.dataKey : void 0, typeof l.name == "string" ? l.name : void 0];
|
|
139
|
-
for (const e of i)
|
|
140
|
-
if (e && e in o)
|
|
141
|
-
return o[e];
|
|
1
|
+
"use client";
|
|
2
|
+
import { mergeComponentProps } from "../../utils/component.js";
|
|
3
|
+
import "../../utils/index.js";
|
|
4
|
+
import '../../assets/Chart.style.css';/* empty css */
|
|
5
|
+
import { c } from "react/compiler-runtime";
|
|
6
|
+
import * as React$1 from "react";
|
|
7
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
|
+
import * as RechartsPrimitive from "recharts";
|
|
9
|
+
var ChartContext = React$1.createContext(null), useChart = () => {
|
|
10
|
+
let e = React$1.useContext(ChartContext);
|
|
11
|
+
if (!e) throw Error("useChart must be used within a <ChartContainer />");
|
|
12
|
+
return e;
|
|
142
13
|
};
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
14
|
+
const ChartContainer = (i) => {
|
|
15
|
+
let s = c(21), { id: l, className: u, children: d, config: f, initialDimension: m, style: h, ...g } = i, _;
|
|
16
|
+
s[0] === m ? _ = s[1] : (_ = m === void 0 ? {
|
|
17
|
+
width: 320,
|
|
18
|
+
height: 200
|
|
19
|
+
} : m, s[0] = m, s[1] = _);
|
|
20
|
+
let v = _, y = React$1.useId(), b = `chart-${l ?? y.replace(/:/g, "")}`, x;
|
|
21
|
+
s[2] === f ? x = s[3] : (x = Object.entries(f).reduce(_temp, {}), s[2] = f, s[3] = x);
|
|
22
|
+
let S = x, C = ChartContext, w;
|
|
23
|
+
s[4] === f ? w = s[5] : (w = { config: f }, s[4] = f, s[5] = w);
|
|
24
|
+
let T;
|
|
25
|
+
s[6] !== S || s[7] !== h ? (T = {
|
|
26
|
+
...S,
|
|
27
|
+
...h
|
|
28
|
+
}, s[6] = S, s[7] = h, s[8] = T) : T = s[8];
|
|
29
|
+
let E = mergeComponentProps("chart", g), D;
|
|
30
|
+
s[9] !== d || s[10] !== v ? (D = /* @__PURE__ */ jsx(RechartsPrimitive.ResponsiveContainer, {
|
|
31
|
+
initialDimension: v,
|
|
32
|
+
children: d
|
|
33
|
+
}), s[9] = d, s[10] = v, s[11] = D) : D = s[11];
|
|
34
|
+
let O;
|
|
35
|
+
s[12] !== b || s[13] !== T || s[14] !== E || s[15] !== D ? (O = /* @__PURE__ */ jsx("div", {
|
|
36
|
+
"data-slot": "chart",
|
|
37
|
+
"data-chart": b,
|
|
38
|
+
style: T,
|
|
39
|
+
...E,
|
|
40
|
+
children: D
|
|
41
|
+
}), s[12] = b, s[13] = T, s[14] = E, s[15] = D, s[16] = O) : O = s[16];
|
|
42
|
+
let k;
|
|
43
|
+
return s[17] !== C.Provider || s[18] !== w || s[19] !== O ? (k = /* @__PURE__ */ jsx(C.Provider, {
|
|
44
|
+
value: w,
|
|
45
|
+
children: O
|
|
46
|
+
}), s[17] = C.Provider, s[18] = w, s[19] = O, s[20] = k) : k = s[20], k;
|
|
47
|
+
}, ChartTooltipContent = (n) => {
|
|
48
|
+
let a = c(31), o, l, u, d, p, h, g;
|
|
49
|
+
a[0] === n ? (o = a[1], l = a[2], u = a[3], d = a[4], p = a[5], h = a[6], g = a[7]) : ({active: o, payload: d, className: l, hideLabel: h, hideIndicator: g, label: u, ...p} = n, a[0] = n, a[1] = o, a[2] = l, a[3] = u, a[4] = d, a[5] = p, a[6] = h, a[7] = g);
|
|
50
|
+
let _ = h === void 0 ? !1 : h, v = g === void 0 ? !1 : g, { config: y } = useChart();
|
|
51
|
+
if (!o || !d?.length) return null;
|
|
52
|
+
let [b] = d, x = `${b?.dataKey ?? b?.name ?? "value"}`, S;
|
|
53
|
+
a[8] !== y || a[9] !== b || a[10] !== x ? (S = getPayloadConfigFromPayload(y, b, x), a[8] = y, a[9] = b, a[10] = x, a[11] = S) : S = a[11];
|
|
54
|
+
let C = typeof u == "string" ? y[u]?.label ?? u : S?.label, w;
|
|
55
|
+
a[12] === l ? w = a[13] : (w = mergeComponentProps("chart__tooltip", { className: l }), a[12] = l, a[13] = w);
|
|
56
|
+
let T;
|
|
57
|
+
a[14] !== _ || a[15] !== C ? (T = !_ && C && /* @__PURE__ */ jsx("div", {
|
|
58
|
+
className: "chart__tooltip-label",
|
|
59
|
+
children: C
|
|
60
|
+
}), a[14] = _, a[15] = C, a[16] = T) : T = a[16];
|
|
61
|
+
let E;
|
|
62
|
+
if (a[17] !== y || a[18] !== v || a[19] !== d) {
|
|
63
|
+
let t;
|
|
64
|
+
a[21] !== y || a[22] !== v ? (t = (t, n) => {
|
|
65
|
+
let a = getPayloadConfigFromPayload(y, t, `${t.name ?? t.dataKey ?? "value"}`), o = t.payload?.fill ?? t.color;
|
|
66
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
67
|
+
className: "chart__tooltip-row chart__tooltip-row--dot",
|
|
68
|
+
children: [a?.icon ? /* @__PURE__ */ jsx(a.icon, {}) : !v && /* @__PURE__ */ jsx("div", { ...mergeComponentProps("chart__tooltip-indicator chart__tooltip-indicator--dot", { style: {
|
|
69
|
+
"--color-bg": o,
|
|
70
|
+
"--color-border": o
|
|
71
|
+
} }) }), /* @__PURE__ */ jsxs("div", {
|
|
72
|
+
className: "chart__tooltip-content",
|
|
73
|
+
children: [/* @__PURE__ */ jsx("div", {
|
|
74
|
+
className: "chart__tooltip-meta",
|
|
75
|
+
children: /* @__PURE__ */ jsx("span", {
|
|
76
|
+
className: "chart__tooltip-name",
|
|
77
|
+
children: a?.label ?? t.name
|
|
78
|
+
})
|
|
79
|
+
}), t.value != null && /* @__PURE__ */ jsx("span", {
|
|
80
|
+
className: "chart__tooltip-value",
|
|
81
|
+
children: typeof t.value == "number" ? t.value.toLocaleString() : String(t.value)
|
|
82
|
+
})]
|
|
83
|
+
})]
|
|
84
|
+
}, n);
|
|
85
|
+
}, a[21] = y, a[22] = v, a[23] = t) : t = a[23], E = d.filter(_temp2).map(t), a[17] = y, a[18] = v, a[19] = d, a[20] = E;
|
|
86
|
+
} else E = a[20];
|
|
87
|
+
let D;
|
|
88
|
+
a[24] === E ? D = a[25] : (D = /* @__PURE__ */ jsx("div", {
|
|
89
|
+
className: "chart__tooltip-body",
|
|
90
|
+
children: E
|
|
91
|
+
}), a[24] = E, a[25] = D);
|
|
92
|
+
let O;
|
|
93
|
+
return a[26] !== p || a[27] !== w || a[28] !== T || a[29] !== D ? (O = /* @__PURE__ */ jsxs("div", {
|
|
94
|
+
...w,
|
|
95
|
+
...p,
|
|
96
|
+
children: [T, D]
|
|
97
|
+
}), a[26] = p, a[27] = w, a[28] = T, a[29] = D, a[30] = O) : O = a[30], O;
|
|
98
|
+
}, ChartLegendContent = (n) => {
|
|
99
|
+
let a = c(13), { className: o, hideIcon: l, payload: u, verticalAlign: d } = n, p = l === void 0 ? !1 : l, m = d === void 0 ? "bottom" : d, { config: g } = useChart();
|
|
100
|
+
if (!u?.length) return null;
|
|
101
|
+
let _ = `chart__legend ${m === "top" ? "chart__legend--top" : "chart__legend--bottom"}`, v;
|
|
102
|
+
a[0] !== o || a[1] !== _ ? (v = mergeComponentProps(_, { className: o }), a[0] = o, a[1] = _, a[2] = v) : v = a[2];
|
|
103
|
+
let y;
|
|
104
|
+
if (a[3] !== g || a[4] !== p || a[5] !== u) {
|
|
105
|
+
let e;
|
|
106
|
+
a[7] !== g || a[8] !== p ? (e = (e, t) => {
|
|
107
|
+
let n = getPayloadConfigFromPayload(g, e, `${e.dataKey ?? "value"}`);
|
|
108
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
109
|
+
className: "chart__legend-item",
|
|
110
|
+
children: [n?.icon && !p ? /* @__PURE__ */ jsx(n.icon, {}) : /* @__PURE__ */ jsx("div", {
|
|
111
|
+
className: "chart__legend-swatch",
|
|
112
|
+
style: { backgroundColor: e.color }
|
|
113
|
+
}), n?.label]
|
|
114
|
+
}, t);
|
|
115
|
+
}, a[7] = g, a[8] = p, a[9] = e) : e = a[9], y = u.filter(_temp3).map(e), a[3] = g, a[4] = p, a[5] = u, a[6] = y;
|
|
116
|
+
} else y = a[6];
|
|
117
|
+
let b;
|
|
118
|
+
return a[10] !== v || a[11] !== y ? (b = /* @__PURE__ */ jsx("div", {
|
|
119
|
+
...v,
|
|
120
|
+
children: y
|
|
121
|
+
}), a[10] = v, a[11] = y, a[12] = b) : b = a[12], b;
|
|
122
|
+
};
|
|
123
|
+
var getPayloadConfigFromPayload = (e, t, n) => {
|
|
124
|
+
if (typeof t != "object" || !t) return e[n];
|
|
125
|
+
let r = t, i = [
|
|
126
|
+
n,
|
|
127
|
+
typeof r.dataKey == "string" ? r.dataKey : void 0,
|
|
128
|
+
typeof r.name == "string" ? r.name : void 0
|
|
129
|
+
];
|
|
130
|
+
for (let t of i) if (t && t in e) return e[t];
|
|
131
|
+
};
|
|
132
|
+
function _temp(e, t) {
|
|
133
|
+
let [n, r] = t;
|
|
134
|
+
return r.color && (e[`--color-${n}`] = r.color), e;
|
|
146
135
|
}
|
|
147
|
-
function
|
|
148
|
-
|
|
136
|
+
function _temp2(e) {
|
|
137
|
+
return e.type !== "none";
|
|
149
138
|
}
|
|
150
|
-
function
|
|
151
|
-
|
|
139
|
+
function _temp3(e) {
|
|
140
|
+
return e.type !== "none";
|
|
152
141
|
}
|
|
153
|
-
export {
|
|
154
|
-
H as ChartContainer,
|
|
155
|
-
M as ChartLegendContent,
|
|
156
|
-
J as ChartTooltipContent
|
|
157
|
-
};
|
|
142
|
+
export { ChartContainer, ChartLegendContent, ChartTooltipContent };
|
|
@@ -1,76 +1,76 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
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
|
-
|
|
1
|
+
"use client";
|
|
2
|
+
import { ChartContainer, ChartLegendContent, ChartTooltipContent } from "./Chart.js";
|
|
3
|
+
import { c } from "react/compiler-runtime";
|
|
4
|
+
import "react";
|
|
5
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
+
import * as RechartsPrimitive from "recharts";
|
|
7
|
+
const LineChart = (s) => {
|
|
8
|
+
let u = c(48), d, f, p, m, h, g, _, v, y, b, x, S, C;
|
|
9
|
+
u[0] === s ? (d = u[1], f = u[2], p = u[3], m = u[4], h = u[5], g = u[6], _ = u[7], v = u[8], y = u[9], b = u[10], x = u[11], S = u[12], C = u[13]) : ({data: m, lines: _, xKey: S, config: d, showDots: y, curveType: p, containerProps: f, grid: h, xAxis: x, yAxis: C, tooltip: b, legend: g, ...v} = s, u[0] = s, u[1] = d, u[2] = f, u[3] = p, u[4] = m, u[5] = h, u[6] = g, u[7] = _, u[8] = v, u[9] = y, u[10] = b, u[11] = x, u[12] = S, u[13] = C);
|
|
10
|
+
let w = _temp, T;
|
|
11
|
+
u[14] !== d || u[15] !== _ ? (T = d ?? _.reduce((e, r) => (e[r.dataKey] = {
|
|
12
|
+
label: r.label ?? r.name ?? r.dataKey,
|
|
13
|
+
color: w(r)
|
|
14
|
+
}, e), {}), u[14] = d, u[15] = _, u[16] = T) : T = u[16];
|
|
15
|
+
let E = T, D;
|
|
16
|
+
u[17] !== x || u[18] !== S ? (D = /* @__PURE__ */ jsx(RechartsPrimitive.XAxis, {
|
|
17
|
+
dataKey: S,
|
|
18
|
+
...x
|
|
19
|
+
}), u[17] = x, u[18] = S, u[19] = D) : D = u[19];
|
|
20
|
+
let O;
|
|
21
|
+
u[20] === C ? O = u[21] : (O = /* @__PURE__ */ jsx(RechartsPrimitive.YAxis, { ...C }), u[20] = C, u[21] = O);
|
|
22
|
+
let k;
|
|
23
|
+
u[22] === h ? k = u[23] : (k = h !== !1 && /* @__PURE__ */ jsx(RechartsPrimitive.CartesianGrid, {
|
|
24
|
+
strokeDasharray: "4 4",
|
|
25
|
+
...h
|
|
26
|
+
}), u[22] = h, u[23] = k);
|
|
27
|
+
let A;
|
|
28
|
+
u[24] === b ? A = u[25] : (A = b !== !1 && /* @__PURE__ */ jsx(RechartsPrimitive.Tooltip, {
|
|
29
|
+
...b,
|
|
30
|
+
content: b?.content ?? /* @__PURE__ */ jsx(ChartTooltipContent, {})
|
|
31
|
+
}), u[24] = b, u[25] = A);
|
|
32
|
+
let j;
|
|
33
|
+
u[26] === g ? j = u[27] : (j = g !== !1 && /* @__PURE__ */ jsx(RechartsPrimitive.Legend, {
|
|
34
|
+
...g,
|
|
35
|
+
content: g?.content ?? /* @__PURE__ */ jsx(ChartLegendContent, {})
|
|
36
|
+
}), u[26] = g, u[27] = j);
|
|
37
|
+
let M;
|
|
38
|
+
if (u[28] !== p || u[29] !== _ || u[30] !== y) {
|
|
39
|
+
let e;
|
|
40
|
+
u[32] !== p || u[33] !== y ? (e = (e) => {
|
|
41
|
+
let { dataKey: r, label: i, type: a, strokeWidth: o, name: s, dot: l, color: u, stroke: d, ...f } = e, m = typeof i == "string" || typeof i == "number" ? String(i) : s ?? r;
|
|
42
|
+
return /* @__PURE__ */ jsx(RechartsPrimitive.Line, {
|
|
43
|
+
dataKey: r,
|
|
44
|
+
name: m,
|
|
45
|
+
stroke: w(e) ?? `var(--color-${r}, currentColor)`,
|
|
46
|
+
type: a ?? p ?? "monotone",
|
|
47
|
+
strokeWidth: o ?? 2,
|
|
48
|
+
dot: l ?? y,
|
|
49
|
+
...f
|
|
50
|
+
}, r);
|
|
51
|
+
}, u[32] = p, u[33] = y, u[34] = e) : e = u[34], M = _.map(e), u[28] = p, u[29] = _, u[30] = y, u[31] = M;
|
|
52
|
+
} else M = u[31];
|
|
53
|
+
let N;
|
|
54
|
+
u[35] !== m || u[36] !== v || u[37] !== D || u[38] !== O || u[39] !== k || u[40] !== A || u[41] !== j || u[42] !== M ? (N = /* @__PURE__ */ jsxs(RechartsPrimitive.LineChart, {
|
|
55
|
+
data: m,
|
|
56
|
+
...v,
|
|
57
|
+
children: [
|
|
58
|
+
D,
|
|
59
|
+
O,
|
|
60
|
+
k,
|
|
61
|
+
A,
|
|
62
|
+
j,
|
|
63
|
+
M
|
|
64
|
+
]
|
|
65
|
+
}), u[35] = m, u[36] = v, u[37] = D, u[38] = O, u[39] = k, u[40] = A, u[41] = j, u[42] = M, u[43] = N) : N = u[43];
|
|
66
|
+
let P;
|
|
67
|
+
return u[44] !== f || u[45] !== E || u[46] !== N ? (P = /* @__PURE__ */ jsx(ChartContainer, {
|
|
68
|
+
config: E,
|
|
69
|
+
...f,
|
|
70
|
+
children: N
|
|
71
|
+
}), u[44] = f, u[45] = E, u[46] = N, u[47] = P) : P = u[47], P;
|
|
70
72
|
};
|
|
71
|
-
function
|
|
72
|
-
|
|
73
|
+
function _temp(e) {
|
|
74
|
+
return e.color ?? (typeof e.stroke == "string" ? e.stroke : void 0);
|
|
73
75
|
}
|
|
74
|
-
export {
|
|
75
|
-
Q as LineChart
|
|
76
|
-
};
|
|
76
|
+
export { LineChart };
|
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
export {
|
|
4
|
-
n as ChartContainer,
|
|
5
|
-
C as ChartLegendContent,
|
|
6
|
-
a as ChartTooltipContent,
|
|
7
|
-
r as LineChart
|
|
8
|
-
};
|
|
1
|
+
import { ChartContainer, ChartLegendContent, ChartTooltipContent } from "./Chart.js";
|
|
2
|
+
import { LineChart } from "./LineChart.js";
|
|
3
|
+
export { ChartContainer, ChartLegendContent, ChartTooltipContent, LineChart };
|
|
@@ -1,30 +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
|
-
xl: s,
|
|
19
|
-
xxl: x,
|
|
20
|
-
...p
|
|
21
|
-
} = r;
|
|
22
|
-
l = n, t = g(`col ${e ? `col-xs-${e}` : ""} ${c ? `col-sm-${c}` : ""} ${i ? `col-md-${i}` : ""} ${$ ? `col-lg-${$}` : ""} ${s ? `col-lg-${s}` : ""} ${x ? `col-xxl-${x}` : ""}`, p), o[0] = r, o[1] = l, o[2] = t;
|
|
23
|
-
} else
|
|
24
|
-
l = o[1], t = o[2];
|
|
25
|
-
let m;
|
|
26
|
-
return o[3] !== l || o[4] !== t ? (m = /* @__PURE__ */ d("div", { ...t, children: l }), o[3] = l, o[4] = t, o[5] = m) : m = o[5], m;
|
|
27
|
-
};
|
|
28
|
-
export {
|
|
29
|
-
P as Col
|
|
1
|
+
import { mergeComponentProps } from "../../utils/component.js";
|
|
2
|
+
import "../../utils/index.js";
|
|
3
|
+
import '../../assets/Col.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 Col = (n) => {
|
|
8
|
+
let i = c(6), a, o;
|
|
9
|
+
if (i[0] !== n) {
|
|
10
|
+
let { children: t, xs: r, sm: s, md: l, lg: u, xl: d, xxl: f, ...p } = n;
|
|
11
|
+
a = t, o = mergeComponentProps(`col ${r ? `col-xs-${r}` : ""} ${s ? `col-sm-${s}` : ""} ${l ? `col-md-${l}` : ""} ${u ? `col-lg-${u}` : ""} ${d ? `col-lg-${d}` : ""} ${f ? `col-xxl-${f}` : ""}`, p), 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;
|
|
30
18
|
};
|
|
19
|
+
export { Col };
|