@code0-tech/pictor 1.0.0 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_virtual/__vite-optional-peer-dep_@emotion/is-prop-valid_framer-motion.js +6 -0
- package/dist/_virtual/rolldown_runtime.js +18 -0
- package/dist/assets/Alert.style.css +1 -0
- package/dist/assets/Aurora.style.css +1 -0
- package/dist/assets/Avatar.style.css +1 -0
- package/dist/assets/Badge.style.css +1 -0
- package/dist/assets/Breadcrumb.style.css +1 -0
- package/dist/assets/Button.style.css +1 -0
- package/dist/assets/ButtonGroup.style.css +1 -0
- package/dist/assets/Card.style.css +1 -0
- package/dist/assets/Chart.style.css +1 -0
- package/dist/assets/Col.style.css +1 -0
- package/dist/assets/ColorInput.style.css +1 -0
- package/dist/assets/Command.style.css +1 -0
- package/dist/assets/Container.style.css +1 -0
- package/dist/assets/ContextMenu.style.css +1 -0
- package/dist/assets/DataTable.style.css +1 -0
- package/dist/assets/DateInput.style.css +1 -0
- package/dist/assets/Dialog.style.css +1 -0
- package/dist/assets/Editor.styles.css +1 -0
- package/dist/assets/EditorInput.style.css +1 -0
- package/dist/assets/FileInput.style.css +1 -0
- package/dist/assets/FileTabs.style.css +1 -0
- package/dist/assets/FullScreen.style.css +1 -0
- package/dist/assets/Gantt.style.css +1 -0
- package/dist/assets/Icon.style.css +1 -0
- package/dist/assets/Input.style.css +1 -0
- package/dist/assets/InputWrapper.style.css +1 -0
- package/dist/assets/JsonView.style.css +1 -0
- package/dist/assets/Layout.style.css +1 -0
- package/dist/assets/Menu.style.css +1 -0
- package/dist/assets/Progress.style.css +1 -0
- package/dist/assets/Quote.style.css +1 -0
- package/dist/assets/Resizable.style.css +1 -0
- package/dist/assets/Row.style.css +1 -0
- package/dist/assets/ScrollArea.style.css +1 -0
- package/dist/assets/SegmentedControl.style.css +1 -0
- package/dist/assets/SelectInput.style.css +1 -0
- package/dist/assets/Tab.style.css +1 -0
- package/dist/assets/Text.style.css +1 -0
- package/dist/assets/Toast.style.css +1 -0
- package/dist/assets/Tooltip.style.css +1 -0
- package/dist/components/alert/Alert.js +34 -41
- package/dist/components/aurora/Aurora.js +27 -22
- package/dist/components/avatar/Avatar.js +57 -55
- package/dist/components/badge/Badge.js +58 -64
- package/dist/components/breadcrumb/Breadcrumb.js +16 -21
- package/dist/components/button/Button.js +24 -31
- package/dist/components/button-group/ButtonGroup.js +29 -31
- package/dist/components/card/Card.js +30 -44
- package/dist/components/card/CardSection.js +21 -29
- package/dist/components/chart/Chart.js +138 -153
- package/dist/components/chart/LineChart.js +75 -74
- package/dist/components/chart/index.js +3 -8
- package/dist/components/col/Col.js +19 -29
- package/dist/components/command/Command.js +101 -134
- package/dist/components/container/Container.js +19 -23
- package/dist/components/context-menu/ContextMenu.js +119 -112
- package/dist/components/data-table/DataTable.js +53 -64
- package/dist/components/data-table/DataTableColumn.js +18 -22
- package/dist/components/data-table/DataTableFilterInput.js +208 -205
- package/dist/components/data-table/DataTableFilterSuggestionMenu.js +59 -48
- package/dist/components/data-table/DataTableHeader.js +34 -38
- package/dist/components/data-table/DataTablePagination.js +62 -74
- package/dist/components/data-table/index.js +7 -22
- package/dist/components/dialog/Dialog.js +107 -97
- package/dist/components/editor/Editor.js +352 -323
- package/dist/components/file-tabs/FileTabs.js +78 -73
- package/dist/components/file-tabs/FileTabs.service.js +85 -87
- package/dist/components/file-tabs/FileTabs.view.js +0 -1
- package/dist/components/file-tabs/index.js +3 -9
- package/dist/components/flex/Flex.js +19 -23
- package/dist/components/form/CheckboxInput.js +73 -76
- package/dist/components/form/ColorInput.js +378 -353
- package/dist/components/form/DateInput.js +315 -265
- package/dist/components/form/EditorInput.js +597 -579
- package/dist/components/form/EmailInput.js +30 -23
- package/dist/components/form/FileInput.js +93 -123
- package/dist/components/form/Input.js +64 -58
- package/dist/components/form/Input.utils.js +25 -37
- package/dist/components/form/InputDescription.js +11 -11
- package/dist/components/form/InputLabel.js +18 -22
- package/dist/components/form/InputMessage.js +17 -17
- package/dist/components/form/InputWrapper.js +56 -65
- package/dist/components/form/NumberInput.js +41 -20
- package/dist/components/form/PasswordInput.js +71 -54
- package/dist/components/form/PinInput.js +50 -65
- package/dist/components/form/RadioGroup.js +42 -50
- package/dist/components/form/RadioInput.js +31 -29
- package/dist/components/form/SelectInput.js +69 -92
- package/dist/components/form/SwitchInput.js +17 -18
- package/dist/components/form/TagInput.js +108 -122
- package/dist/components/form/TextAreaInput.js +24 -21
- package/dist/components/form/TextInput.js +30 -22
- package/dist/components/form/index.js +22 -87
- package/dist/components/form/useForm.js +87 -88
- package/dist/components/fullscreen/FullScreen.js +28 -27
- package/dist/components/gantt/Gantt.js +100 -98
- package/dist/components/gantt/GanttGroup.js +210 -195
- package/dist/components/gantt/GanttHeader.js +79 -81
- package/dist/components/gantt/GanttItem.js +19 -22
- package/dist/components/icon/Icon.d.ts +6 -4
- package/dist/components/icon/Icon.js +53 -42
- package/dist/components/icon/codezero/codezero.js +10 -0
- package/dist/components/icon/codezero/gls.js +9 -0
- package/dist/components/icon/codezero/index.js +17 -13
- package/dist/components/json-view/JsonView.js +120 -109
- package/dist/components/layout/Layout.js +101 -78
- package/dist/components/menu/Menu.js +135 -128
- package/dist/components/progress/ProgressCircle.js +60 -49
- package/dist/components/progress/ProgressLinear.js +39 -43
- package/dist/components/quote/Quote.js +52 -43
- package/dist/components/resizable/Resizable.js +36 -33
- package/dist/components/row/Row.js +19 -23
- package/dist/components/scroll-area/ScrollArea.js +66 -76
- package/dist/components/segmented-control/SegmentedControl.js +46 -50
- package/dist/components/spacing/Spacing.js +16 -23
- package/dist/components/tab/Tab.js +73 -66
- package/dist/components/text/Text.js +19 -25
- package/dist/components/toast/Toast.js +104 -82
- package/dist/components/tooltip/Tooltip.js +66 -55
- package/dist/index.js +76 -272
- package/dist/node_modules/@lezer/common/dist/index.js +778 -143
- package/dist/node_modules/@lezer/highlight/dist/index.js +305 -536
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PopChild.js +55 -55
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PresenceChild.js +49 -32
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/index.js +57 -46
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/use-presence.js +17 -16
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/utils.js +8 -11
- package/dist/node_modules/framer-motion/dist/es/context/LayoutGroupContext.js +4 -5
- package/dist/node_modules/framer-motion/dist/es/context/LazyContext.js +4 -5
- package/dist/node_modules/framer-motion/dist/es/context/MotionConfigContext.js +7 -8
- package/dist/node_modules/framer-motion/dist/es/context/MotionContext/create.js +13 -11
- package/dist/node_modules/framer-motion/dist/es/context/MotionContext/index.js +4 -5
- package/dist/node_modules/framer-motion/dist/es/context/MotionContext/utils.js +12 -14
- package/dist/node_modules/framer-motion/dist/es/context/PresenceContext.js +4 -5
- package/dist/node_modules/framer-motion/dist/es/context/SwitchLayoutGroupContext.js +4 -5
- package/dist/node_modules/framer-motion/dist/es/events/add-pointer-event.js +5 -7
- package/dist/node_modules/framer-motion/dist/es/events/event-info.js +8 -13
- package/dist/node_modules/framer-motion/dist/es/gestures/drag/VisualElementDragControls.js +252 -281
- package/dist/node_modules/framer-motion/dist/es/gestures/drag/index.js +19 -21
- package/dist/node_modules/framer-motion/dist/es/gestures/drag/utils/constraints.js +57 -67
- package/dist/node_modules/framer-motion/dist/es/gestures/focus.js +24 -27
- package/dist/node_modules/framer-motion/dist/es/gestures/hover.js +16 -19
- package/dist/node_modules/framer-motion/dist/es/gestures/pan/PanSession.js +130 -124
- package/dist/node_modules/framer-motion/dist/es/gestures/pan/index.js +39 -42
- package/dist/node_modules/framer-motion/dist/es/gestures/press.js +22 -27
- package/dist/node_modules/framer-motion/dist/es/motion/features/animation/exit.js +36 -44
- package/dist/node_modules/framer-motion/dist/es/motion/features/animation/index.js +22 -32
- package/dist/node_modules/framer-motion/dist/es/motion/features/animations.js +6 -12
- package/dist/node_modules/framer-motion/dist/es/motion/features/definitions.js +47 -37
- package/dist/node_modules/framer-motion/dist/es/motion/features/drag.js +12 -16
- package/dist/node_modules/framer-motion/dist/es/motion/features/gestures.js +10 -20
- package/dist/node_modules/framer-motion/dist/es/motion/features/layout/MeasureLayout.js +58 -59
- package/dist/node_modules/framer-motion/dist/es/motion/features/layout.js +7 -11
- package/dist/node_modules/framer-motion/dist/es/motion/features/load-features.js +10 -13
- package/dist/node_modules/framer-motion/dist/es/motion/features/viewport/index.js +42 -43
- package/dist/node_modules/framer-motion/dist/es/motion/features/viewport/observers.js +19 -18
- package/dist/node_modules/framer-motion/dist/es/motion/index.js +64 -58
- package/dist/node_modules/framer-motion/dist/es/motion/utils/symbol.js +2 -4
- package/dist/node_modules/framer-motion/dist/es/motion/utils/use-motion-ref.js +18 -20
- package/dist/node_modules/framer-motion/dist/es/motion/utils/use-visual-element.js +53 -62
- package/dist/node_modules/framer-motion/dist/es/motion/utils/use-visual-state.js +45 -49
- package/dist/node_modules/framer-motion/dist/es/motion/utils/valid-prop.js +4 -38
- package/dist/node_modules/framer-motion/dist/es/render/components/create-proxy.js +7 -17
- package/dist/node_modules/framer-motion/dist/es/render/components/m/proxy.js +3 -0
- package/dist/node_modules/framer-motion/dist/es/render/components/motion/feature-bundle.js +10 -12
- package/dist/node_modules/framer-motion/dist/es/render/components/motion/proxy.js +5 -7
- package/dist/node_modules/framer-motion/dist/es/render/dom/create-visual-element.js +6 -10
- package/dist/node_modules/framer-motion/dist/es/render/dom/use-render.js +18 -15
- package/dist/node_modules/framer-motion/dist/es/render/dom/utils/filter-props.js +14 -18
- package/dist/node_modules/framer-motion/dist/es/render/dom/utils/is-svg-component.js +4 -23
- package/dist/node_modules/framer-motion/dist/es/render/html/use-html-visual-state.js +8 -9
- package/dist/node_modules/framer-motion/dist/es/render/html/use-props.js +20 -23
- package/dist/node_modules/framer-motion/dist/es/render/html/utils/create-render-state.js +6 -8
- package/dist/node_modules/framer-motion/dist/es/render/svg/lowercase-elements.js +27 -29
- package/dist/node_modules/framer-motion/dist/es/render/svg/use-props.js +23 -21
- package/dist/node_modules/framer-motion/dist/es/render/svg/use-svg-visual-state.js +8 -9
- package/dist/node_modules/framer-motion/dist/es/render/svg/utils/create-render-state.js +5 -7
- package/dist/node_modules/framer-motion/dist/es/utils/distance.js +5 -8
- package/dist/node_modules/framer-motion/dist/es/utils/get-context-window.js +2 -4
- package/dist/node_modules/framer-motion/dist/es/utils/is-browser.js +2 -4
- package/dist/node_modules/framer-motion/dist/es/utils/is-ref-object.js +3 -5
- package/dist/node_modules/framer-motion/dist/es/utils/reduced-motion/use-reduced-motion.js +10 -11
- package/dist/node_modules/framer-motion/dist/es/utils/use-composed-ref.js +20 -25
- package/dist/node_modules/framer-motion/dist/es/utils/use-constant.js +6 -7
- package/dist/node_modules/framer-motion/dist/es/utils/use-isomorphic-effect.js +5 -6
- package/dist/node_modules/motion/dist/es/react.js +196 -0
- package/dist/node_modules/motion-dom/dist/es/animation/AsyncMotionValueAnimation.js +104 -111
- package/dist/node_modules/motion-dom/dist/es/animation/JSAnimation.js +126 -143
- package/dist/node_modules/motion-dom/dist/es/animation/NativeAnimation.js +81 -105
- package/dist/node_modules/motion-dom/dist/es/animation/NativeAnimationExtended.js +25 -37
- package/dist/node_modules/motion-dom/dist/es/animation/animate/single-value.js +7 -9
- package/dist/node_modules/motion-dom/dist/es/animation/drivers/frame.js +10 -16
- package/dist/node_modules/motion-dom/dist/es/animation/generators/inertia.js +29 -36
- package/dist/node_modules/motion-dom/dist/es/animation/generators/keyframes.js +18 -28
- package/dist/node_modules/motion-dom/dist/es/animation/generators/spring.js +156 -170
- package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/calc-duration.js +6 -12
- package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/create-generator-easing.js +13 -12
- package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/is-generator.js +3 -5
- package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/velocity.js +6 -8
- package/dist/node_modules/motion-dom/dist/es/animation/interfaces/motion-value.js +42 -45
- package/dist/node_modules/motion-dom/dist/es/animation/interfaces/visual-element-target.js +52 -57
- package/dist/node_modules/motion-dom/dist/es/animation/interfaces/visual-element-variant.js +22 -27
- package/dist/node_modules/motion-dom/dist/es/animation/interfaces/visual-element.js +18 -21
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/DOMKeyframesResolver.js +58 -67
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/KeyframesResolver.js +61 -70
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/get-final.js +5 -7
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/offsets/default.js +5 -7
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/offsets/fill.js +9 -11
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/offsets/time.js +3 -5
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/fill-wildcards.js +3 -6
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/is-none.js +4 -6
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/make-none-animatable.js +15 -15
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/unit-conversion.js +32 -35
- package/dist/node_modules/motion-dom/dist/es/animation/optimized-appear/data-id.js +3 -6
- package/dist/node_modules/motion-dom/dist/es/animation/optimized-appear/get-appear-id.js +4 -6
- package/dist/node_modules/motion-dom/dist/es/animation/utils/WithPromise.js +19 -26
- package/dist/node_modules/motion-dom/dist/es/animation/utils/calc-child-stagger.js +4 -6
- package/dist/node_modules/motion-dom/dist/es/animation/utils/can-animate.js +14 -21
- package/dist/node_modules/motion-dom/dist/es/animation/utils/css-variables-conversion.js +21 -29
- package/dist/node_modules/motion-dom/dist/es/animation/utils/default-transitions.js +25 -22
- package/dist/node_modules/motion-dom/dist/es/animation/utils/get-value-transition.js +5 -7
- package/dist/node_modules/motion-dom/dist/es/animation/utils/is-animatable.js +3 -7
- package/dist/node_modules/motion-dom/dist/es/animation/utils/is-css-variable.js +4 -8
- package/dist/node_modules/motion-dom/dist/es/animation/utils/is-transition-defined.js +15 -19
- package/dist/node_modules/motion-dom/dist/es/animation/utils/make-animation-instant.js +3 -5
- package/dist/node_modules/motion-dom/dist/es/animation/utils/replace-transition-type.js +12 -14
- package/dist/node_modules/motion-dom/dist/es/animation/utils/resolve-transition.js +10 -9
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/easing/cubic-bezier.js +2 -4
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/easing/map-easing.js +8 -11
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/easing/supported.js +32 -14
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/start-waapi-animation.js +16 -20
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/supports/waapi.js +21 -32
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/accelerated-values.js +7 -11
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/apply-generator.js +5 -7
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/is-browser-color.js +5 -9
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/linear.js +5 -9
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/unsupported-easing.js +12 -14
- package/dist/node_modules/motion-dom/dist/es/events/add-dom-event.js +3 -5
- package/dist/node_modules/motion-dom/dist/es/frameloop/batcher.js +27 -26
- package/dist/node_modules/motion-dom/dist/es/frameloop/frame.js +4 -9
- package/dist/node_modules/motion-dom/dist/es/frameloop/microtask.js +3 -5
- package/dist/node_modules/motion-dom/dist/es/frameloop/order.js +10 -20
- package/dist/node_modules/motion-dom/dist/es/frameloop/render-step.js +29 -42
- package/dist/node_modules/motion-dom/dist/es/frameloop/sync-time.js +11 -13
- package/dist/node_modules/motion-dom/dist/es/gestures/drag/state/is-active.js +6 -9
- package/dist/node_modules/motion-dom/dist/es/gestures/drag/state/set-active.js +8 -10
- package/dist/node_modules/motion-dom/dist/es/gestures/hover.js +32 -36
- package/dist/node_modules/motion-dom/dist/es/gestures/press/index.js +32 -32
- package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/is-keyboard-accessible.js +16 -15
- package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/keyboard.js +23 -24
- package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/state.js +2 -4
- package/dist/node_modules/motion-dom/dist/es/gestures/utils/is-node-or-child.js +2 -4
- package/dist/node_modules/motion-dom/dist/es/gestures/utils/is-primary-pointer.js +2 -4
- package/dist/node_modules/motion-dom/dist/es/gestures/utils/setup.js +13 -11
- package/dist/node_modules/motion-dom/dist/es/projection/animation/mix-values.js +20 -29
- package/dist/node_modules/motion-dom/dist/es/projection/geometry/conversion.js +34 -22
- package/dist/node_modules/motion-dom/dist/es/projection/geometry/copy.js +7 -11
- package/dist/node_modules/motion-dom/dist/es/projection/geometry/delta-apply.js +41 -53
- package/dist/node_modules/motion-dom/dist/es/projection/geometry/delta-calc.js +28 -38
- package/dist/node_modules/motion-dom/dist/es/projection/geometry/delta-remove.js +23 -21
- package/dist/node_modules/motion-dom/dist/es/projection/geometry/models.js +15 -17
- package/dist/node_modules/motion-dom/dist/es/projection/geometry/utils.js +18 -26
- package/dist/node_modules/motion-dom/dist/es/projection/node/DocumentProjectionNode.js +10 -12
- package/dist/node_modules/motion-dom/dist/es/projection/node/HTMLProjectionNode.js +19 -24
- package/dist/node_modules/motion-dom/dist/es/projection/node/create-projection-node.js +554 -592
- package/dist/node_modules/motion-dom/dist/es/projection/node/state.js +4 -14
- package/dist/node_modules/motion-dom/dist/es/projection/shared/stack.js +48 -52
- package/dist/node_modules/motion-dom/dist/es/projection/styles/scale-border-radius.js +10 -20
- package/dist/node_modules/motion-dom/dist/es/projection/styles/scale-box-shadow.js +11 -16
- package/dist/node_modules/motion-dom/dist/es/projection/styles/scale-correction.js +14 -20
- package/dist/node_modules/motion-dom/dist/es/projection/styles/transform.js +9 -12
- package/dist/node_modules/motion-dom/dist/es/projection/utils/compare-by-depth.js +2 -4
- package/dist/node_modules/motion-dom/dist/es/projection/utils/each-axis.js +3 -5
- package/dist/node_modules/motion-dom/dist/es/projection/utils/flat-tree.js +16 -18
- package/dist/node_modules/motion-dom/dist/es/projection/utils/has-transform.js +11 -15
- package/dist/node_modules/motion-dom/dist/es/projection/utils/measure.js +8 -11
- package/dist/node_modules/motion-dom/dist/es/render/Feature.js +6 -9
- package/dist/node_modules/motion-dom/dist/es/render/VisualElement.js +198 -260
- package/dist/node_modules/motion-dom/dist/es/render/dom/DOMVisualElement.js +25 -27
- package/dist/node_modules/motion-dom/dist/es/render/dom/is-css-var.js +2 -4
- package/dist/node_modules/motion-dom/dist/es/render/dom/parse-transform.js +49 -60
- package/dist/node_modules/motion-dom/dist/es/render/dom/style-set.js +4 -6
- package/dist/node_modules/motion-dom/dist/es/render/dom/utils/camel-to-dash.js +3 -5
- package/dist/node_modules/motion-dom/dist/es/render/html/HTMLVisualElement.js +35 -35
- package/dist/node_modules/motion-dom/dist/es/render/html/utils/build-styles.js +25 -28
- package/dist/node_modules/motion-dom/dist/es/render/html/utils/build-transform.js +33 -37
- package/dist/node_modules/motion-dom/dist/es/render/html/utils/render.js +5 -11
- package/dist/node_modules/motion-dom/dist/es/render/html/utils/scrape-motion-values.js +8 -12
- package/dist/node_modules/motion-dom/dist/es/render/store.js +2 -4
- package/dist/node_modules/motion-dom/dist/es/render/svg/SVGVisualElement.js +37 -39
- package/dist/node_modules/motion-dom/dist/es/render/svg/utils/build-attrs.js +18 -30
- package/dist/node_modules/motion-dom/dist/es/render/svg/utils/camel-case-attrs.js +25 -27
- package/dist/node_modules/motion-dom/dist/es/render/svg/utils/is-svg-tag.js +2 -4
- package/dist/node_modules/motion-dom/dist/es/render/svg/utils/path.js +11 -13
- package/dist/node_modules/motion-dom/dist/es/render/svg/utils/render.js +6 -10
- package/dist/node_modules/motion-dom/dist/es/render/svg/utils/scrape-motion-values.js +11 -14
- package/dist/node_modules/motion-dom/dist/es/render/utils/animation-state.js +128 -138
- package/dist/node_modules/motion-dom/dist/es/render/utils/get-variant-context.js +16 -19
- package/dist/node_modules/motion-dom/dist/es/render/utils/is-animation-controls.js +3 -5
- package/dist/node_modules/motion-dom/dist/es/render/utils/is-controlling-variants.js +8 -11
- package/dist/node_modules/motion-dom/dist/es/render/utils/is-forced-motion-value.js +5 -8
- package/dist/node_modules/motion-dom/dist/es/render/utils/is-keyframes-target.js +2 -4
- package/dist/node_modules/motion-dom/dist/es/render/utils/is-variant-label.js +3 -5
- package/dist/node_modules/motion-dom/dist/es/render/utils/keys-position.js +10 -12
- package/dist/node_modules/motion-dom/dist/es/render/utils/keys-transform.js +20 -23
- package/dist/node_modules/motion-dom/dist/es/render/utils/motion-values.js +18 -24
- package/dist/node_modules/motion-dom/dist/es/render/utils/reduced-motion/index.js +8 -14
- package/dist/node_modules/motion-dom/dist/es/render/utils/reduced-motion/state.js +2 -5
- package/dist/node_modules/motion-dom/dist/es/render/utils/resolve-dynamic-variants.js +5 -7
- package/dist/node_modules/motion-dom/dist/es/render/utils/resolve-variants.js +16 -18
- package/dist/node_modules/motion-dom/dist/es/render/utils/setters.js +14 -18
- package/dist/node_modules/motion-dom/dist/es/render/utils/shallow-compare.js +7 -13
- package/dist/node_modules/motion-dom/dist/es/render/utils/variant-props.js +10 -13
- package/dist/node_modules/motion-dom/dist/es/resize/handle-element.js +31 -35
- package/dist/node_modules/motion-dom/dist/es/resize/handle-window.js +18 -21
- package/dist/node_modules/motion-dom/dist/es/resize/index.js +5 -7
- package/dist/node_modules/motion-dom/dist/es/stats/buffer.js +5 -0
- package/dist/node_modules/motion-dom/dist/es/utils/border-radius.js +7 -0
- package/dist/node_modules/motion-dom/dist/es/utils/delay.js +9 -11
- package/dist/node_modules/motion-dom/dist/es/utils/interpolate.js +29 -40
- package/dist/node_modules/motion-dom/dist/es/utils/is-html-element.js +4 -6
- package/dist/node_modules/motion-dom/dist/es/utils/is-svg-element.js +4 -6
- package/dist/node_modules/motion-dom/dist/es/utils/is-svg-svg-element.js +4 -6
- package/dist/node_modules/motion-dom/dist/es/utils/mix/color.js +26 -27
- package/dist/node_modules/motion-dom/dist/es/utils/mix/complex.js +44 -45
- package/dist/node_modules/motion-dom/dist/es/utils/mix/immediate.js +3 -5
- package/dist/node_modules/motion-dom/dist/es/utils/mix/index.js +5 -7
- package/dist/node_modules/motion-dom/dist/es/utils/mix/number.js +2 -4
- package/dist/node_modules/motion-dom/dist/es/utils/mix/visibility.js +4 -7
- package/dist/node_modules/motion-dom/dist/es/utils/resolve-elements.js +11 -14
- package/dist/node_modules/motion-dom/dist/es/utils/supports/flags.js +2 -4
- package/dist/node_modules/motion-dom/dist/es/utils/supports/linear-easing.js +9 -11
- package/dist/node_modules/motion-dom/dist/es/utils/supports/memo.js +6 -8
- package/dist/node_modules/motion-dom/dist/es/utils/supports/scroll-timeline.js +3 -5
- package/dist/node_modules/motion-dom/dist/es/value/index.js +89 -211
- package/dist/node_modules/motion-dom/dist/es/value/types/auto.js +4 -6
- package/dist/node_modules/motion-dom/dist/es/value/types/color/hex.js +15 -17
- package/dist/node_modules/motion-dom/dist/es/value/types/color/hsla-to-rgba.js +17 -20
- package/dist/node_modules/motion-dom/dist/es/value/types/color/hsla.js +9 -11
- package/dist/node_modules/motion-dom/dist/es/value/types/color/index.js +12 -14
- package/dist/node_modules/motion-dom/dist/es/value/types/color/rgba.js +12 -15
- package/dist/node_modules/motion-dom/dist/es/value/types/color/utils.js +13 -17
- package/dist/node_modules/motion-dom/dist/es/value/types/complex/filter.js +22 -22
- package/dist/node_modules/motion-dom/dist/es/value/types/complex/index.js +43 -44
- package/dist/node_modules/motion-dom/dist/es/value/types/complex/mask.js +11 -10
- package/dist/node_modules/motion-dom/dist/es/value/types/dimensions.js +14 -9
- package/dist/node_modules/motion-dom/dist/es/value/types/int.js +5 -7
- package/dist/node_modules/motion-dom/dist/es/value/types/maps/defaults.js +22 -27
- package/dist/node_modules/motion-dom/dist/es/value/types/maps/number.js +61 -69
- package/dist/node_modules/motion-dom/dist/es/value/types/maps/transform.js +29 -36
- package/dist/node_modules/motion-dom/dist/es/value/types/numbers/index.js +12 -16
- package/dist/node_modules/motion-dom/dist/es/value/types/numbers/units.js +10 -17
- package/dist/node_modules/motion-dom/dist/es/value/types/test.js +2 -4
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/animatable-none.js +9 -11
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/color-regex.js +2 -4
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/find.js +10 -8
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/float-regex.js +2 -4
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/get-as-type.js +2 -4
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/is-nullish.js +3 -5
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/sanitize.js +2 -4
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/single-color-regex.js +2 -4
- package/dist/node_modules/motion-dom/dist/es/value/utils/is-motion-value.js +2 -4
- package/dist/node_modules/motion-dom/dist/es/value/utils/resolve-motion-value.js +4 -6
- package/dist/node_modules/motion-dom/dist/es/value/will-change/add-will-change.js +10 -13
- package/dist/node_modules/motion-dom/dist/es/value/will-change/is.js +4 -6
- package/dist/node_modules/motion-utils/dist/es/array.js +6 -9
- package/dist/node_modules/motion-utils/dist/es/clamp.js +2 -4
- package/dist/node_modules/motion-utils/dist/es/easing/anticipate.js +3 -5
- package/dist/node_modules/motion-utils/dist/es/easing/back.js +5 -9
- package/dist/node_modules/motion-utils/dist/es/easing/circ.js +4 -8
- package/dist/node_modules/motion-utils/dist/es/easing/cubic-bezier.js +14 -17
- package/dist/node_modules/motion-utils/dist/es/easing/ease.js +3 -7
- package/dist/node_modules/motion-utils/dist/es/easing/modifiers/mirror.js +2 -4
- package/dist/node_modules/motion-utils/dist/es/easing/modifiers/reverse.js +2 -4
- package/dist/node_modules/motion-utils/dist/es/easing/utils/is-bezier-definition.js +2 -4
- package/dist/node_modules/motion-utils/dist/es/easing/utils/is-easing-array.js +2 -4
- package/dist/node_modules/motion-utils/dist/es/easing/utils/map.js +28 -31
- package/dist/node_modules/motion-utils/dist/es/errors.js +7 -13
- package/dist/node_modules/motion-utils/dist/es/format-error-message.js +3 -5
- package/dist/node_modules/motion-utils/dist/es/global-config.js +2 -4
- package/dist/node_modules/motion-utils/dist/es/is-numerical-string.js +2 -4
- package/dist/node_modules/motion-utils/dist/es/is-object.js +2 -4
- package/dist/node_modules/motion-utils/dist/es/is-zero-value-string.js +2 -4
- package/dist/node_modules/motion-utils/dist/es/memo.js +5 -7
- package/dist/node_modules/motion-utils/dist/es/noop.js +2 -4
- package/dist/node_modules/motion-utils/dist/es/pipe.js +2 -4
- package/dist/node_modules/motion-utils/dist/es/progress.js +4 -6
- package/dist/node_modules/motion-utils/dist/es/subscription-manager.js +23 -28
- package/dist/node_modules/motion-utils/dist/es/time-conversion.js +2 -5
- package/dist/node_modules/motion-utils/dist/es/velocity-per-second.js +2 -4
- package/dist/node_modules/motion-utils/dist/es/warn-once.js +5 -7
- package/dist/node_modules/prettier/plugins/babel.js +9582 -7023
- package/dist/node_modules/prettier/plugins/estree.js +6997 -4377
- package/dist/node_modules/prettier/standalone.js +3444 -2415
- package/dist/node_modules/react/cjs/react-compiler-runtime.development.js +21 -21
- package/dist/node_modules/react/cjs/react-compiler-runtime.production.js +18 -14
- package/dist/node_modules/react/compiler-runtime.js +8 -10
- package/dist/utils/arrayService.js +0 -1
- package/dist/utils/color.js +46 -41
- package/dist/utils/component.js +60 -129
- package/dist/utils/contextStore.js +48 -58
- package/dist/utils/index.js +7 -29
- package/dist/utils/motion.js +85 -113
- package/dist/utils/reactiveArrayService.js +80 -76
- package/dist/utils/size.js +14 -26
- package/dist/utils/utils.js +0 -1
- package/dist/utils/view.js +27 -24
- package/dist/vite-env.d.js +0 -1
- package/package.json +25 -20
- package/dist/_virtual/compiler-runtime.js +0 -5
- package/dist/_virtual/compiler-runtime2.js +0 -4
- package/dist/_virtual/react-compiler-runtime.development.js +0 -4
- package/dist/_virtual/react-compiler-runtime.production.js +0 -4
- package/dist/assets/components/alert/Alert.style.css +0 -1
- package/dist/assets/components/aurora/Aurora.style.css +0 -1
- package/dist/assets/components/avatar/Avatar.style.css +0 -1
- package/dist/assets/components/badge/Badge.style.css +0 -1
- package/dist/assets/components/breadcrumb/Breadcrumb.style.css +0 -1
- package/dist/assets/components/button/Button.style.css +0 -1
- package/dist/assets/components/button-group/ButtonGroup.style.css +0 -1
- package/dist/assets/components/card/Card.style.css +0 -1
- package/dist/assets/components/chart/Chart.style.css +0 -1
- package/dist/assets/components/col/Col.style.css +0 -1
- package/dist/assets/components/command/Command.style.css +0 -1
- package/dist/assets/components/container/Container.style.css +0 -1
- package/dist/assets/components/context-menu/ContextMenu.style.css +0 -1
- package/dist/assets/components/data-table/DataTable.style.css +0 -1
- package/dist/assets/components/dialog/Dialog.style.css +0 -1
- package/dist/assets/components/editor/Editor.styles.css +0 -1
- package/dist/assets/components/file-tabs/FileTabs.style.css +0 -1
- package/dist/assets/components/form/ColorInput.style.css +0 -1
- package/dist/assets/components/form/DateInput.style.css +0 -1
- package/dist/assets/components/form/EditorInput.style.css +0 -1
- package/dist/assets/components/form/FileInput.style.css +0 -1
- package/dist/assets/components/form/Input.style.css +0 -1
- package/dist/assets/components/form/InputWrapper.style.css +0 -1
- package/dist/assets/components/form/SelectInput.style.css +0 -1
- package/dist/assets/components/fullscreen/FullScreen.style.css +0 -1
- package/dist/assets/components/gantt/Gantt.style.css +0 -1
- package/dist/assets/components/icon/Icon.style.css +0 -1
- package/dist/assets/components/json-view/JsonView.style.css +0 -1
- package/dist/assets/components/layout/Layout.style.css +0 -1
- package/dist/assets/components/menu/Menu.style.css +0 -1
- package/dist/assets/components/progress/Progress.style.css +0 -1
- package/dist/assets/components/quote/Quote.style.css +0 -1
- package/dist/assets/components/resizable/Resizable.style.css +0 -1
- package/dist/assets/components/row/Row.style.css +0 -1
- package/dist/assets/components/scroll-area/ScrollArea.style.css +0 -1
- package/dist/assets/components/segmented-control/SegmentedControl.style.css +0 -1
- package/dist/assets/components/tab/Tab.style.css +0 -1
- package/dist/assets/components/text/Text.style.css +0 -1
- package/dist/assets/components/toast/Toast.style.css +0 -1
- package/dist/assets/components/tooltip/Tooltip.style.css +0 -1
- package/dist/components/icon/codezero/codezero.svg.js +0 -5
- package/dist/components/icon/codezero/gls.svg.js +0 -5
- /package/dist/assets/{components/flex/Flex.style.css → Flex.style.css} +0 -0
- /package/dist/assets/{components/spacing/Spacing.style.css → Spacing.style.css} +0 -0
|
@@ -1,157 +1,142 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import '../../assets/
|
|
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 { require_compiler_runtime } from "../../node_modules/react/compiler-runtime.js";
|
|
3
|
+
import { mergeComponentProps } from "../../utils/component.js";
|
|
4
|
+
import "../../utils/index.js";
|
|
5
|
+
import '../../assets/Chart.style.css';/* empty css */
|
|
6
|
+
import * as React$1 from "react";
|
|
7
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
|
+
import * as RechartsPrimitive from "recharts";
|
|
9
|
+
var import_compiler_runtime = require_compiler_runtime(), 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 = (e) => {
|
|
15
|
+
let i = (0, import_compiler_runtime.c)(21), { id: c, className: l, children: u, config: d, initialDimension: f, style: m, ...h } = e, g;
|
|
16
|
+
i[0] === f ? g = i[1] : (g = f === void 0 ? {
|
|
17
|
+
width: 320,
|
|
18
|
+
height: 200
|
|
19
|
+
} : f, i[0] = f, i[1] = g);
|
|
20
|
+
let _ = g, v = React$1.useId(), y = `chart-${c ?? v.replace(/:/g, "")}`, b;
|
|
21
|
+
i[2] === d ? b = i[3] : (b = Object.entries(d).reduce(_temp, {}), i[2] = d, i[3] = b);
|
|
22
|
+
let x = b, S = ChartContext, C;
|
|
23
|
+
i[4] === d ? C = i[5] : (C = { config: d }, i[4] = d, i[5] = C);
|
|
24
|
+
let w;
|
|
25
|
+
i[6] !== x || i[7] !== m ? (w = {
|
|
26
|
+
...x,
|
|
27
|
+
...m
|
|
28
|
+
}, i[6] = x, i[7] = m, i[8] = w) : w = i[8];
|
|
29
|
+
let T = mergeComponentProps("chart", h), E;
|
|
30
|
+
i[9] !== u || i[10] !== _ ? (E = /* @__PURE__ */ jsx(RechartsPrimitive.ResponsiveContainer, {
|
|
31
|
+
initialDimension: _,
|
|
32
|
+
children: u
|
|
33
|
+
}), i[9] = u, i[10] = _, i[11] = E) : E = i[11];
|
|
34
|
+
let D;
|
|
35
|
+
i[12] !== y || i[13] !== w || i[14] !== T || i[15] !== E ? (D = /* @__PURE__ */ jsx("div", {
|
|
36
|
+
"data-slot": "chart",
|
|
37
|
+
"data-chart": y,
|
|
38
|
+
style: w,
|
|
39
|
+
...T,
|
|
40
|
+
children: E
|
|
41
|
+
}), i[12] = y, i[13] = w, i[14] = T, i[15] = E, i[16] = D) : D = i[16];
|
|
42
|
+
let O;
|
|
43
|
+
return i[17] !== S.Provider || i[18] !== C || i[19] !== D ? (O = /* @__PURE__ */ jsx(S.Provider, {
|
|
44
|
+
value: C,
|
|
45
|
+
children: D
|
|
46
|
+
}), i[17] = S.Provider, i[18] = C, i[19] = D, i[20] = O) : O = i[20], O;
|
|
47
|
+
}, ChartTooltipContent = (e) => {
|
|
48
|
+
let n = (0, import_compiler_runtime.c)(31), a, s, l, u, d, p, h;
|
|
49
|
+
n[0] === e ? (a = n[1], s = n[2], l = n[3], u = n[4], d = n[5], p = n[6], h = n[7]) : ({active: a, payload: u, className: s, hideLabel: p, hideIndicator: h, label: l, ...d} = e, n[0] = e, n[1] = a, n[2] = s, n[3] = l, n[4] = u, n[5] = d, n[6] = p, n[7] = h);
|
|
50
|
+
let g = p === void 0 ? !1 : p, _ = h === void 0 ? !1 : h, { config: v } = useChart();
|
|
51
|
+
if (!a || !u?.length) return null;
|
|
52
|
+
let [y] = u, b = `${y?.dataKey ?? y?.name ?? "value"}`, x;
|
|
53
|
+
n[8] !== v || n[9] !== y || n[10] !== b ? (x = getPayloadConfigFromPayload(v, y, b), n[8] = v, n[9] = y, n[10] = b, n[11] = x) : x = n[11];
|
|
54
|
+
let S = typeof l == "string" ? v[l]?.label ?? l : x?.label, C;
|
|
55
|
+
n[12] === s ? C = n[13] : (C = mergeComponentProps("chart__tooltip", { className: s }), n[12] = s, n[13] = C);
|
|
56
|
+
let w;
|
|
57
|
+
n[14] !== g || n[15] !== S ? (w = !g && S && /* @__PURE__ */ jsx("div", {
|
|
58
|
+
className: "chart__tooltip-label",
|
|
59
|
+
children: S
|
|
60
|
+
}), n[14] = g, n[15] = S, n[16] = w) : w = n[16];
|
|
61
|
+
let T;
|
|
62
|
+
if (n[17] !== v || n[18] !== _ || n[19] !== u) {
|
|
63
|
+
let e;
|
|
64
|
+
n[21] !== v || n[22] !== _ ? (e = (e, n) => {
|
|
65
|
+
let a = getPayloadConfigFromPayload(v, e, `${e.name ?? e.dataKey ?? "value"}`), o = e.payload?.fill ?? e.color;
|
|
66
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
67
|
+
className: "chart__tooltip-row chart__tooltip-row--dot",
|
|
68
|
+
children: [a?.icon ? /* @__PURE__ */ jsx(a.icon, {}) : !_ && /* @__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 ?? e.name
|
|
78
|
+
})
|
|
79
|
+
}), e.value != null && /* @__PURE__ */ jsx("span", {
|
|
80
|
+
className: "chart__tooltip-value",
|
|
81
|
+
children: typeof e.value == "number" ? e.value.toLocaleString() : String(e.value)
|
|
82
|
+
})]
|
|
83
|
+
})]
|
|
84
|
+
}, n);
|
|
85
|
+
}, n[21] = v, n[22] = _, n[23] = e) : e = n[23], T = u.filter(_temp2).map(e), n[17] = v, n[18] = _, n[19] = u, n[20] = T;
|
|
86
|
+
} else T = n[20];
|
|
87
|
+
let E;
|
|
88
|
+
n[24] === T ? E = n[25] : (E = /* @__PURE__ */ jsx("div", {
|
|
89
|
+
className: "chart__tooltip-body",
|
|
90
|
+
children: T
|
|
91
|
+
}), n[24] = T, n[25] = E);
|
|
92
|
+
let D;
|
|
93
|
+
return n[26] !== d || n[27] !== C || n[28] !== w || n[29] !== E ? (D = /* @__PURE__ */ jsxs("div", {
|
|
94
|
+
...C,
|
|
95
|
+
...d,
|
|
96
|
+
children: [w, E]
|
|
97
|
+
}), n[26] = d, n[27] = C, n[28] = w, n[29] = E, n[30] = D) : D = n[30], D;
|
|
98
|
+
}, ChartLegendContent = (e) => {
|
|
99
|
+
let n = (0, import_compiler_runtime.c)(13), { className: a, hideIcon: s, payload: l, verticalAlign: u } = e, d = s === void 0 ? !1 : s, p = u === void 0 ? "bottom" : u, { config: m } = useChart();
|
|
100
|
+
if (!l?.length) return null;
|
|
101
|
+
let g = `chart__legend ${p === "top" ? "chart__legend--top" : "chart__legend--bottom"}`, _;
|
|
102
|
+
n[0] !== a || n[1] !== g ? (_ = mergeComponentProps(g, { className: a }), n[0] = a, n[1] = g, n[2] = _) : _ = n[2];
|
|
103
|
+
let v;
|
|
104
|
+
if (n[3] !== m || n[4] !== d || n[5] !== l) {
|
|
105
|
+
let e;
|
|
106
|
+
n[7] !== m || n[8] !== d ? (e = (e, t) => {
|
|
107
|
+
let n = getPayloadConfigFromPayload(m, e, `${e.dataKey ?? "value"}`);
|
|
108
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
109
|
+
className: "chart__legend-item",
|
|
110
|
+
children: [n?.icon && !d ? /* @__PURE__ */ jsx(n.icon, {}) : /* @__PURE__ */ jsx("div", {
|
|
111
|
+
className: "chart__legend-swatch",
|
|
112
|
+
style: { backgroundColor: e.color }
|
|
113
|
+
}), n?.label]
|
|
114
|
+
}, t);
|
|
115
|
+
}, n[7] = m, n[8] = d, n[9] = e) : e = n[9], v = l.filter(_temp3).map(e), n[3] = m, n[4] = d, n[5] = l, n[6] = v;
|
|
116
|
+
} else v = n[6];
|
|
117
|
+
let y;
|
|
118
|
+
return n[10] !== _ || n[11] !== v ? (y = /* @__PURE__ */ jsx("div", {
|
|
119
|
+
..._,
|
|
120
|
+
children: v
|
|
121
|
+
}), n[10] = _, n[11] = v, n[12] = y) : y = n[12], y;
|
|
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,77 @@
|
|
|
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 { require_compiler_runtime } from "../../node_modules/react/compiler-runtime.js";
|
|
3
|
+
import { ChartContainer, ChartLegendContent, ChartTooltipContent } from "./Chart.js";
|
|
4
|
+
import "react";
|
|
5
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
+
import * as RechartsPrimitive from "recharts";
|
|
7
|
+
var import_compiler_runtime = require_compiler_runtime();
|
|
8
|
+
const LineChart = (e) => {
|
|
9
|
+
let c = (0, import_compiler_runtime.c)(48), u, d, f, p, m, h, g, _, v, y, b, x, S;
|
|
10
|
+
c[0] === e ? (u = c[1], d = c[2], f = c[3], p = c[4], m = c[5], h = c[6], g = c[7], _ = c[8], v = c[9], y = c[10], b = c[11], x = c[12], S = c[13]) : ({data: p, lines: g, xKey: x, config: u, showDots: v, curveType: f, containerProps: d, grid: m, xAxis: b, yAxis: S, tooltip: y, legend: h, ..._} = e, c[0] = e, c[1] = u, c[2] = d, c[3] = f, c[4] = p, c[5] = m, c[6] = h, c[7] = g, c[8] = _, c[9] = v, c[10] = y, c[11] = b, c[12] = x, c[13] = S);
|
|
11
|
+
let C = _temp, w;
|
|
12
|
+
c[14] !== u || c[15] !== g ? (w = u ?? g.reduce((e, r) => (e[r.dataKey] = {
|
|
13
|
+
label: r.label ?? r.name ?? r.dataKey,
|
|
14
|
+
color: C(r)
|
|
15
|
+
}, e), {}), c[14] = u, c[15] = g, c[16] = w) : w = c[16];
|
|
16
|
+
let T = w, E;
|
|
17
|
+
c[17] !== b || c[18] !== x ? (E = /* @__PURE__ */ jsx(RechartsPrimitive.XAxis, {
|
|
18
|
+
dataKey: x,
|
|
19
|
+
...b
|
|
20
|
+
}), c[17] = b, c[18] = x, c[19] = E) : E = c[19];
|
|
21
|
+
let D;
|
|
22
|
+
c[20] === S ? D = c[21] : (D = /* @__PURE__ */ jsx(RechartsPrimitive.YAxis, { ...S }), c[20] = S, c[21] = D);
|
|
23
|
+
let O;
|
|
24
|
+
c[22] === m ? O = c[23] : (O = m !== !1 && /* @__PURE__ */ jsx(RechartsPrimitive.CartesianGrid, {
|
|
25
|
+
strokeDasharray: "4 4",
|
|
26
|
+
...m
|
|
27
|
+
}), c[22] = m, c[23] = O);
|
|
28
|
+
let k;
|
|
29
|
+
c[24] === y ? k = c[25] : (k = y !== !1 && /* @__PURE__ */ jsx(RechartsPrimitive.Tooltip, {
|
|
30
|
+
...y,
|
|
31
|
+
content: y?.content ?? /* @__PURE__ */ jsx(ChartTooltipContent, {})
|
|
32
|
+
}), c[24] = y, c[25] = k);
|
|
33
|
+
let A;
|
|
34
|
+
c[26] === h ? A = c[27] : (A = h !== !1 && /* @__PURE__ */ jsx(RechartsPrimitive.Legend, {
|
|
35
|
+
...h,
|
|
36
|
+
content: h?.content ?? /* @__PURE__ */ jsx(ChartLegendContent, {})
|
|
37
|
+
}), c[26] = h, c[27] = A);
|
|
38
|
+
let j;
|
|
39
|
+
if (c[28] !== f || c[29] !== g || c[30] !== v) {
|
|
40
|
+
let e;
|
|
41
|
+
c[32] !== f || c[33] !== v ? (e = (e) => {
|
|
42
|
+
let { dataKey: r, label: i, type: a, strokeWidth: o, name: s, dot: c, color: l, stroke: u, ...d } = e, p = typeof i == "string" || typeof i == "number" ? String(i) : s ?? r;
|
|
43
|
+
return /* @__PURE__ */ jsx(RechartsPrimitive.Line, {
|
|
44
|
+
dataKey: r,
|
|
45
|
+
name: p,
|
|
46
|
+
stroke: C(e) ?? `var(--color-${r}, currentColor)`,
|
|
47
|
+
type: a ?? f ?? "monotone",
|
|
48
|
+
strokeWidth: o ?? 2,
|
|
49
|
+
dot: c ?? v,
|
|
50
|
+
...d
|
|
51
|
+
}, r);
|
|
52
|
+
}, c[32] = f, c[33] = v, c[34] = e) : e = c[34], j = g.map(e), c[28] = f, c[29] = g, c[30] = v, c[31] = j;
|
|
53
|
+
} else j = c[31];
|
|
54
|
+
let M;
|
|
55
|
+
c[35] !== p || c[36] !== _ || c[37] !== E || c[38] !== D || c[39] !== O || c[40] !== k || c[41] !== A || c[42] !== j ? (M = /* @__PURE__ */ jsxs(RechartsPrimitive.LineChart, {
|
|
56
|
+
data: p,
|
|
57
|
+
..._,
|
|
58
|
+
children: [
|
|
59
|
+
E,
|
|
60
|
+
D,
|
|
61
|
+
O,
|
|
62
|
+
k,
|
|
63
|
+
A,
|
|
64
|
+
j
|
|
65
|
+
]
|
|
66
|
+
}), c[35] = p, c[36] = _, c[37] = E, c[38] = D, c[39] = O, c[40] = k, c[41] = A, c[42] = j, c[43] = M) : M = c[43];
|
|
67
|
+
let N;
|
|
68
|
+
return c[44] !== d || c[45] !== T || c[46] !== M ? (N = /* @__PURE__ */ jsx(ChartContainer, {
|
|
69
|
+
config: T,
|
|
70
|
+
...d,
|
|
71
|
+
children: M
|
|
72
|
+
}), c[44] = d, c[45] = T, c[46] = M, c[47] = N) : N = c[47], N;
|
|
70
73
|
};
|
|
71
|
-
function
|
|
72
|
-
|
|
74
|
+
function _temp(e) {
|
|
75
|
+
return e.color ?? (typeof e.stroke == "string" ? e.stroke : void 0);
|
|
73
76
|
}
|
|
74
|
-
export {
|
|
75
|
-
Q as LineChart
|
|
76
|
-
};
|
|
77
|
+
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,20 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import "react";
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
const
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
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 { require_compiler_runtime } from "../../node_modules/react/compiler-runtime.js";
|
|
2
|
+
import { mergeComponentProps } from "../../utils/component.js";
|
|
3
|
+
import "../../utils/index.js";
|
|
4
|
+
import '../../assets/Col.style.css';/* empty css */
|
|
5
|
+
import React from "react";
|
|
6
|
+
import { jsx } from "react/jsx-runtime";
|
|
7
|
+
var import_compiler_runtime = require_compiler_runtime();
|
|
8
|
+
const Col = (e) => {
|
|
9
|
+
let n = (0, import_compiler_runtime.c)(6), a, o;
|
|
10
|
+
if (n[0] !== e) {
|
|
11
|
+
let { children: r, xs: i, sm: s, md: c, lg: l, xl: u, xxl: d, ...f } = e;
|
|
12
|
+
a = r, o = mergeComponentProps(`col ${i ? `col-xs-${i}` : ""} ${s ? `col-sm-${s}` : ""} ${c ? `col-md-${c}` : ""} ${l ? `col-lg-${l}` : ""} ${u ? `col-lg-${u}` : ""} ${d ? `col-xxl-${d}` : ""}`, f), n[0] = e, n[1] = a, n[2] = o;
|
|
13
|
+
} else a = n[1], o = n[2];
|
|
14
|
+
let s;
|
|
15
|
+
return n[3] !== a || n[4] !== o ? (s = /* @__PURE__ */ jsx("div", {
|
|
16
|
+
...o,
|
|
17
|
+
children: a
|
|
18
|
+
}), n[3] = a, n[4] = o, n[5] = s) : s = n[5], s;
|
|
30
19
|
};
|
|
20
|
+
export { Col };
|