laif-ds 0.1.9 → 0.1.11
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/index2.js +5 -2
- package/dist/_virtual/index3.js +5 -5
- package/dist/_virtual/index4.js +2 -5
- package/dist/_virtual/index5.js +2 -5
- package/dist/_virtual/index6.js +5 -2
- package/dist/components/ui/accordion.js +20 -20
- package/dist/components/ui/alert-dialog.js +41 -41
- package/dist/components/ui/alert.js +10 -10
- package/dist/components/ui/aspect-ratio.js +4 -4
- package/dist/components/ui/async-select.js +112 -112
- package/dist/components/ui/audio-visualizer.js +26 -26
- package/dist/components/ui/avatar.js +17 -17
- package/dist/components/ui/badge.js +9 -10
- package/dist/components/ui/breadcrumb.js +24 -25
- package/dist/components/ui/button.js +17 -17
- package/dist/components/ui/calendar.js +8 -8
- package/dist/components/ui/card.js +15 -15
- package/dist/components/ui/carousel.js +66 -66
- package/dist/components/ui/chart.js +80 -80
- package/dist/components/ui/chat-message.js +104 -104
- package/dist/components/ui/chat.js +109 -109
- package/dist/components/ui/checkbox.js +5 -5
- package/dist/components/ui/collapsible.js +10 -10
- package/dist/components/ui/command.js +52 -52
- package/dist/components/ui/context-menu.js +61 -61
- package/dist/components/ui/copy-button.js +19 -19
- package/dist/components/ui/data-table.js +73 -73
- package/dist/components/ui/date-picker.js +18 -18
- package/dist/components/ui/dialog.js +49 -49
- package/dist/components/ui/drawer.js +43 -43
- package/dist/components/ui/file-preview.js +49 -49
- package/dist/components/ui/form.js +33 -33
- package/dist/components/ui/gantt/assets/icons/MinusSquareOutlined.js +5 -5
- package/dist/components/ui/gantt/assets/icons/PlusSquareOutlined.js +6 -6
- package/dist/components/ui/gantt/components/Chart/Bars/Bars.js +28 -28
- package/dist/components/ui/gantt/components/Chart/Bars/BarsRow/BarItem/BarItem.js +80 -80
- package/dist/components/ui/gantt/components/Chart/Bars/BarsRow/BarsItems/BarItems.js +13 -13
- package/dist/components/ui/gantt/components/Chart/Bars/BarsRow/BarsRow.js +10 -10
- package/dist/components/ui/gantt/components/Chart/Bars/BarsRow/RepeteadBars/RepeteadBars.js +25 -25
- package/dist/components/ui/gantt/components/Chart/Chart.js +30 -30
- package/dist/components/ui/gantt/components/Chart/Scale/Scale.js +45 -45
- package/dist/components/ui/gantt/components/Chart/Tree/Tree.js +37 -37
- package/dist/components/ui/gantt/components/Controls/Controls.js +53 -53
- package/dist/components/ui/gantt/components/Gantt/Gantt.js +29 -29
- package/dist/components/ui/hover-card.js +4 -4
- package/dist/components/ui/icon.js +9 -9
- package/dist/components/ui/input-otp.js +14 -14
- package/dist/components/ui/input-selector.js +38 -38
- package/dist/components/ui/input.js +32 -32
- package/dist/components/ui/interrupt-prompt.js +9 -10
- package/dist/components/ui/label.js +4 -4
- package/dist/components/ui/markdown-renderer.js +60 -63
- package/dist/components/ui/menubar.js +89 -89
- package/dist/components/ui/message-input.js +149 -150
- package/dist/components/ui/message-list.js +15 -15
- package/dist/components/ui/multiple-selector.js +159 -159
- package/dist/components/ui/navigation-menu.js +44 -44
- package/dist/components/ui/pagination.js +39 -39
- package/dist/components/ui/popover.js +13 -13
- package/dist/components/ui/progress.js +14 -14
- package/dist/components/ui/prompt-suggestions.js +10 -10
- package/dist/components/ui/radio-group.js +15 -15
- package/dist/components/ui/resizable.js +13 -13
- package/dist/components/ui/scroll-area.js +25 -25
- package/dist/components/ui/select.js +80 -80
- package/dist/components/ui/separator.js +4 -4
- package/dist/components/ui/sheet.js +48 -48
- package/dist/components/ui/sidebar.js +178 -182
- package/dist/components/ui/skeleton.js +4 -4
- package/dist/components/ui/switch.js +5 -5
- package/dist/components/ui/table.js +14 -14
- package/dist/components/ui/tabs.js +10 -10
- package/dist/components/ui/textarea.js +2 -2
- package/dist/components/ui/toaster.js +2 -2
- package/dist/components/ui/toggle-group.js +6 -6
- package/dist/components/ui/toggle.js +2 -2
- package/dist/components/ui/tooltip.js +19 -19
- package/dist/components/ui/typing-indicator.js +7 -7
- package/dist/components/ui/typo.js +10 -10
- package/dist/dist/components/ui/checkbox.js +6 -6
- package/dist/dist/components/ui/scroll-area.js +30 -30
- package/dist/dist/components/ui/table.js +15 -15
- package/dist/dist/node_modules/@radix-ui/react-checkbox/dist/index.js +60 -60
- package/dist/dist/node_modules/@radix-ui/react-context/dist/index.js +19 -19
- package/dist/dist/node_modules/@radix-ui/react-direction/dist/index.js +3 -2
- package/dist/dist/node_modules/@radix-ui/react-primitive/dist/index.js +2 -2
- package/dist/dist/node_modules/@radix-ui/react-scroll-area/dist/index.js +116 -116
- package/dist/dist/node_modules/@radix-ui/react-slot/dist/index.js +10 -10
- package/dist/node_modules/@radix-ui/react-accordion/dist/index.js +77 -77
- package/dist/node_modules/@radix-ui/react-alert-dialog/dist/index.js +65 -65
- package/dist/node_modules/@radix-ui/react-arrow/dist/index.js +6 -6
- package/dist/node_modules/@radix-ui/react-aspect-ratio/dist/index.js +12 -12
- package/dist/node_modules/@radix-ui/react-avatar/dist/index.js +21 -21
- package/dist/node_modules/@radix-ui/react-checkbox/dist/index.js +58 -58
- package/dist/node_modules/@radix-ui/react-collapsible/dist/index.js +49 -49
- package/dist/node_modules/@radix-ui/react-collection/dist/index.js +16 -16
- package/dist/node_modules/@radix-ui/react-context/dist/index.js +36 -36
- package/dist/node_modules/@radix-ui/react-context-menu/dist/index.js +113 -113
- package/dist/node_modules/@radix-ui/react-dialog/dist/index.js +100 -100
- package/dist/node_modules/@radix-ui/react-direction/dist/index.js +1 -1
- package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.js +18 -18
- package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.js +9 -9
- package/dist/node_modules/@radix-ui/react-hover-card/dist/index.js +50 -50
- package/dist/node_modules/@radix-ui/react-label/dist/index.js +4 -4
- package/dist/node_modules/@radix-ui/react-menu/dist/index.js +223 -223
- package/dist/node_modules/@radix-ui/react-menubar/dist/index.js +95 -95
- package/dist/node_modules/@radix-ui/react-navigation-menu/dist/index.js +260 -260
- package/dist/node_modules/@radix-ui/react-popover/dist/index.js +92 -92
- package/dist/node_modules/@radix-ui/react-popper/dist/index.js +35 -35
- package/dist/node_modules/@radix-ui/react-portal/dist/index.js +8 -8
- package/dist/node_modules/@radix-ui/react-primitive/dist/index.js +7 -7
- package/dist/node_modules/@radix-ui/react-progress/dist/index.js +22 -22
- package/dist/node_modules/@radix-ui/react-radio-group/dist/index.js +105 -105
- package/dist/node_modules/@radix-ui/react-roving-focus/dist/index.js +29 -29
- package/dist/node_modules/@radix-ui/react-scroll-area/dist/index.js +157 -157
- package/dist/node_modules/@radix-ui/react-select/dist/index.js +345 -345
- package/dist/node_modules/@radix-ui/react-separator/dist/index.js +6 -6
- package/dist/node_modules/@radix-ui/react-slot/dist/index.js +19 -19
- package/dist/node_modules/@radix-ui/react-switch/dist/index.js +46 -46
- package/dist/node_modules/@radix-ui/react-tabs/dist/index.js +48 -48
- package/dist/node_modules/@radix-ui/react-toggle/dist/index.js +10 -10
- package/dist/node_modules/@radix-ui/react-toggle-group/dist/index.js +67 -71
- package/dist/node_modules/@radix-ui/react-tooltip/dist/index.js +77 -77
- package/dist/node_modules/@radix-ui/react-visually-hidden/dist/index.js +4 -4
- package/dist/node_modules/hast-util-to-jsx-runtime/lib/index.js +1 -1
- package/dist/node_modules/react-day-picker/dist/index.esm.js +483 -483
- package/dist/node_modules/react-is/index.js +1 -1
- package/dist/node_modules/react-markdown/lib/index.js +39 -39
- package/dist/node_modules/style-to-object/cjs/index.js +1 -1
- package/dist/node_modules/unified/lib/index.js +1 -1
- package/package.json +3 -2
- package/dist/_virtual/jsx-runtime.js +0 -6
- package/dist/_virtual/jsx-runtime2.js +0 -5
- package/dist/_virtual/react-jsx-runtime.development.js +0 -5
- package/dist/_virtual/react-jsx-runtime.production.js +0 -5
- package/dist/dist/_virtual/jsx-runtime.js +0 -6
- package/dist/dist/_virtual/jsx-runtime2.js +0 -5
- package/dist/dist/_virtual/react-jsx-runtime.development.js +0 -5
- package/dist/dist/_virtual/react-jsx-runtime.production.js +0 -5
- package/dist/dist/node_modules/react/cjs/react-jsx-runtime.development.js +0 -248
- package/dist/dist/node_modules/react/cjs/react-jsx-runtime.production.js +0 -36
- package/dist/dist/node_modules/react/jsx-runtime.js +0 -11
- package/dist/node_modules/framer-motion/dist/es/animation/animate/single-value.js +0 -11
- package/dist/node_modules/framer-motion/dist/es/animation/animators/AcceleratedAnimation.js +0 -206
- package/dist/node_modules/framer-motion/dist/es/animation/animators/BaseAnimation.js +0 -83
- package/dist/node_modules/framer-motion/dist/es/animation/animators/MainThreadAnimation.js +0 -148
- package/dist/node_modules/framer-motion/dist/es/animation/animators/drivers/driver-frameloop.js +0 -18
- package/dist/node_modules/framer-motion/dist/es/animation/animators/utils/accelerated-values.js +0 -13
- package/dist/node_modules/framer-motion/dist/es/animation/animators/utils/can-animate.js +0 -24
- package/dist/node_modules/framer-motion/dist/es/animation/animators/waapi/index.js +0 -19
- package/dist/node_modules/framer-motion/dist/es/animation/animators/waapi/utils/get-final-keyframe.js +0 -9
- package/dist/node_modules/framer-motion/dist/es/animation/animators/waapi/utils/supports-waapi.js +0 -7
- package/dist/node_modules/framer-motion/dist/es/animation/generators/inertia.js +0 -38
- package/dist/node_modules/framer-motion/dist/es/animation/generators/keyframes.js +0 -31
- package/dist/node_modules/framer-motion/dist/es/animation/generators/spring/defaults.js +0 -33
- package/dist/node_modules/framer-motion/dist/es/animation/generators/spring/find.js +0 -53
- package/dist/node_modules/framer-motion/dist/es/animation/generators/spring/index.js +0 -93
- package/dist/node_modules/framer-motion/dist/es/animation/generators/utils/velocity.js +0 -10
- package/dist/node_modules/framer-motion/dist/es/animation/interfaces/motion-value.js +0 -48
- package/dist/node_modules/framer-motion/dist/es/animation/interfaces/visual-element-target.js +0 -47
- package/dist/node_modules/framer-motion/dist/es/animation/interfaces/visual-element-variant.js +0 -34
- package/dist/node_modules/framer-motion/dist/es/animation/interfaces/visual-element.js +0 -23
- package/dist/node_modules/framer-motion/dist/es/animation/optimized-appear/data-id.js +0 -7
- package/dist/node_modules/framer-motion/dist/es/animation/optimized-appear/get-appear-id.js +0 -8
- package/dist/node_modules/framer-motion/dist/es/animation/utils/default-transitions.js +0 -23
- package/dist/node_modules/framer-motion/dist/es/animation/utils/is-animatable.js +0 -8
- package/dist/node_modules/framer-motion/dist/es/animation/utils/is-animation-controls.js +0 -7
- package/dist/node_modules/framer-motion/dist/es/animation/utils/is-keyframes-target.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/animation/utils/is-none.js +0 -8
- package/dist/node_modules/framer-motion/dist/es/animation/utils/is-transition-defined.js +0 -7
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PopChild.js +0 -52
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PresenceChild.js +0 -42
- 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 -13
- package/dist/node_modules/framer-motion/dist/es/context/LayoutGroupContext.js +0 -6
- package/dist/node_modules/framer-motion/dist/es/context/LazyContext.js +0 -6
- package/dist/node_modules/framer-motion/dist/es/context/MotionConfigContext.js +0 -10
- package/dist/node_modules/framer-motion/dist/es/context/MotionContext/create.js +0 -14
- package/dist/node_modules/framer-motion/dist/es/context/MotionContext/index.js +0 -6
- package/dist/node_modules/framer-motion/dist/es/context/MotionContext/utils.js +0 -16
- package/dist/node_modules/framer-motion/dist/es/context/PresenceContext.js +0 -6
- package/dist/node_modules/framer-motion/dist/es/context/SwitchLayoutGroupContext.js +0 -6
- package/dist/node_modules/framer-motion/dist/es/easing/anticipate.js +0 -6
- package/dist/node_modules/framer-motion/dist/es/easing/back.js +0 -10
- package/dist/node_modules/framer-motion/dist/es/easing/circ.js +0 -9
- package/dist/node_modules/framer-motion/dist/es/easing/cubic-bezier.js +0 -20
- package/dist/node_modules/framer-motion/dist/es/easing/ease.js +0 -8
- package/dist/node_modules/framer-motion/dist/es/easing/modifiers/mirror.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/easing/modifiers/reverse.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/easing/utils/is-easing-array.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/easing/utils/map.js +0 -33
- package/dist/node_modules/framer-motion/dist/es/events/add-dom-event.js +0 -7
- package/dist/node_modules/framer-motion/dist/es/events/add-pointer-event.js +0 -9
- package/dist/node_modules/framer-motion/dist/es/events/event-info.js +0 -16
- package/dist/node_modules/framer-motion/dist/es/frameloop/batcher.js +0 -40
- package/dist/node_modules/framer-motion/dist/es/frameloop/frame.js +0 -11
- package/dist/node_modules/framer-motion/dist/es/frameloop/microtask.js +0 -6
- package/dist/node_modules/framer-motion/dist/es/frameloop/render-step.js +0 -42
- package/dist/node_modules/framer-motion/dist/es/frameloop/sync-time.js +0 -16
- package/dist/node_modules/framer-motion/dist/es/gestures/drag/VisualElementDragControls.js +0 -257
- package/dist/node_modules/framer-motion/dist/es/gestures/drag/index.js +0 -20
- package/dist/node_modules/framer-motion/dist/es/gestures/drag/utils/constraints.js +0 -69
- package/dist/node_modules/framer-motion/dist/es/gestures/focus.js +0 -29
- package/dist/node_modules/framer-motion/dist/es/gestures/hover.js +0 -23
- package/dist/node_modules/framer-motion/dist/es/gestures/pan/PanSession.js +0 -86
- package/dist/node_modules/framer-motion/dist/es/gestures/pan/index.js +0 -45
- package/dist/node_modules/framer-motion/dist/es/gestures/press.js +0 -23
- package/dist/node_modules/framer-motion/dist/es/motion/features/Feature.js +0 -11
- package/dist/node_modules/framer-motion/dist/es/motion/features/animation/exit.js +0 -26
- package/dist/node_modules/framer-motion/dist/es/motion/features/animation/index.js +0 -35
- package/dist/node_modules/framer-motion/dist/es/motion/features/animations.js +0 -14
- package/dist/node_modules/framer-motion/dist/es/motion/features/definitions.js +0 -28
- package/dist/node_modules/framer-motion/dist/es/motion/features/drag.js +0 -18
- package/dist/node_modules/framer-motion/dist/es/motion/features/gestures.js +0 -22
- package/dist/node_modules/framer-motion/dist/es/motion/features/layout/MeasureLayout.js +0 -75
- package/dist/node_modules/framer-motion/dist/es/motion/features/layout.js +0 -12
- package/dist/node_modules/framer-motion/dist/es/motion/features/load-features.js +0 -12
- 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 -22
- package/dist/node_modules/framer-motion/dist/es/motion/index.js +0 -60
- package/dist/node_modules/framer-motion/dist/es/motion/utils/is-forced-motion-value.js +0 -9
- package/dist/node_modules/framer-motion/dist/es/motion/utils/symbol.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/motion/utils/use-motion-ref.js +0 -19
- 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 -54
- package/dist/node_modules/framer-motion/dist/es/motion/utils/valid-prop.js +0 -39
- package/dist/node_modules/framer-motion/dist/es/projection/animation/mix-values.js +0 -34
- package/dist/node_modules/framer-motion/dist/es/projection/geometry/conversion.js +0 -26
- package/dist/node_modules/framer-motion/dist/es/projection/geometry/copy.js +0 -15
- package/dist/node_modules/framer-motion/dist/es/projection/geometry/delta-apply.js +0 -53
- package/dist/node_modules/framer-motion/dist/es/projection/geometry/delta-calc.js +0 -37
- package/dist/node_modules/framer-motion/dist/es/projection/geometry/delta-remove.js +0 -26
- package/dist/node_modules/framer-motion/dist/es/projection/geometry/models.js +0 -19
- package/dist/node_modules/framer-motion/dist/es/projection/geometry/utils.js +0 -35
- package/dist/node_modules/framer-motion/dist/es/projection/node/DocumentProjectionNode.js +0 -14
- package/dist/node_modules/framer-motion/dist/es/projection/node/HTMLProjectionNode.js +0 -26
- package/dist/node_modules/framer-motion/dist/es/projection/node/create-projection-node.js +0 -615
- package/dist/node_modules/framer-motion/dist/es/projection/node/state.js +0 -16
- package/dist/node_modules/framer-motion/dist/es/projection/shared/stack.js +0 -59
- package/dist/node_modules/framer-motion/dist/es/projection/styles/scale-border-radius.js +0 -22
- package/dist/node_modules/framer-motion/dist/es/projection/styles/scale-box-shadow.js +0 -17
- package/dist/node_modules/framer-motion/dist/es/projection/styles/scale-correction.js +0 -9
- package/dist/node_modules/framer-motion/dist/es/projection/styles/transform.js +0 -14
- package/dist/node_modules/framer-motion/dist/es/projection/utils/each-axis.js +0 -7
- package/dist/node_modules/framer-motion/dist/es/projection/utils/has-transform.js +0 -21
- package/dist/node_modules/framer-motion/dist/es/projection/utils/measure.js +0 -14
- package/dist/node_modules/framer-motion/dist/es/render/VisualElement.js +0 -227
- package/dist/node_modules/framer-motion/dist/es/render/components/create-factory.js +0 -21
- 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/create.js +0 -16
- 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/DOMKeyframesResolver.js +0 -67
- package/dist/node_modules/framer-motion/dist/es/render/dom/DOMVisualElement.js +0 -28
- package/dist/node_modules/framer-motion/dist/es/render/dom/create-visual-element.js +0 -11
- package/dist/node_modules/framer-motion/dist/es/render/dom/use-render.js +0 -19
- package/dist/node_modules/framer-motion/dist/es/render/dom/utils/camel-to-dash.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/render/dom/utils/css-variables-conversion.js +0 -32
- 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-css-variable.js +0 -6
- package/dist/node_modules/framer-motion/dist/es/render/dom/utils/is-svg-component.js +0 -25
- package/dist/node_modules/framer-motion/dist/es/render/dom/utils/is-svg-element.js +0 -7
- package/dist/node_modules/framer-motion/dist/es/render/dom/utils/unit-conversion.js +0 -41
- package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/animatable-none.js +0 -11
- package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/defaults.js +0 -25
- package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/dimensions.js +0 -10
- package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/find.js +0 -9
- package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/get-as-type.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/number-browser.js +0 -42
- package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/number.js +0 -19
- package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/test.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/transform.js +0 -32
- package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/type-auto.js +0 -8
- package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/type-int.js +0 -9
- package/dist/node_modules/framer-motion/dist/es/render/html/HTMLVisualElement.js +0 -39
- package/dist/node_modules/framer-motion/dist/es/render/html/config-motion.js +0 -13
- package/dist/node_modules/framer-motion/dist/es/render/html/use-props.js +0 -28
- package/dist/node_modules/framer-motion/dist/es/render/html/utils/build-styles.js +0 -30
- package/dist/node_modules/framer-motion/dist/es/render/html/utils/build-transform.js +0 -32
- package/dist/node_modules/framer-motion/dist/es/render/html/utils/create-render-state.js +0 -10
- package/dist/node_modules/framer-motion/dist/es/render/html/utils/keys-position.js +0 -14
- package/dist/node_modules/framer-motion/dist/es/render/html/utils/keys-transform.js +0 -24
- package/dist/node_modules/framer-motion/dist/es/render/html/utils/make-none-animatable.js +0 -17
- package/dist/node_modules/framer-motion/dist/es/render/html/utils/render.js +0 -9
- package/dist/node_modules/framer-motion/dist/es/render/html/utils/scrape-motion-values.js +0 -13
- package/dist/node_modules/framer-motion/dist/es/render/store.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/render/svg/SVGVisualElement.js +0 -41
- package/dist/node_modules/framer-motion/dist/es/render/svg/config-motion.js +0 -55
- package/dist/node_modules/framer-motion/dist/es/render/svg/lowercase-elements.js +0 -31
- package/dist/node_modules/framer-motion/dist/es/render/svg/use-props.js +0 -23
- package/dist/node_modules/framer-motion/dist/es/render/svg/utils/build-attrs.js +0 -27
- package/dist/node_modules/framer-motion/dist/es/render/svg/utils/camel-case-attrs.js +0 -29
- package/dist/node_modules/framer-motion/dist/es/render/svg/utils/create-render-state.js +0 -9
- package/dist/node_modules/framer-motion/dist/es/render/svg/utils/is-svg-tag.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/render/svg/utils/path.js +0 -19
- package/dist/node_modules/framer-motion/dist/es/render/svg/utils/render.js +0 -12
- package/dist/node_modules/framer-motion/dist/es/render/svg/utils/scrape-motion-values.js +0 -16
- package/dist/node_modules/framer-motion/dist/es/render/svg/utils/transform-origin.js +0 -12
- package/dist/node_modules/framer-motion/dist/es/render/utils/KeyframesResolver.js +0 -77
- package/dist/node_modules/framer-motion/dist/es/render/utils/animation-state.js +0 -125
- package/dist/node_modules/framer-motion/dist/es/render/utils/compare-by-depth.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/render/utils/flat-tree.js +0 -20
- package/dist/node_modules/framer-motion/dist/es/render/utils/get-variant-context.js +0 -21
- package/dist/node_modules/framer-motion/dist/es/render/utils/is-controlling-variants.js +0 -14
- package/dist/node_modules/framer-motion/dist/es/render/utils/is-variant-label.js +0 -7
- package/dist/node_modules/framer-motion/dist/es/render/utils/motion-values.js +0 -27
- package/dist/node_modules/framer-motion/dist/es/render/utils/resolve-dynamic-variants.js +0 -9
- package/dist/node_modules/framer-motion/dist/es/render/utils/resolve-variants.js +0 -21
- package/dist/node_modules/framer-motion/dist/es/render/utils/setters.js +0 -19
- package/dist/node_modules/framer-motion/dist/es/render/utils/variant-props.js +0 -14
- package/dist/node_modules/framer-motion/dist/es/utils/GlobalConfig.js +0 -7
- package/dist/node_modules/framer-motion/dist/es/utils/array.js +0 -12
- package/dist/node_modules/framer-motion/dist/es/utils/clamp.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/utils/delay.js +0 -14
- package/dist/node_modules/framer-motion/dist/es/utils/distance.js +0 -10
- package/dist/node_modules/framer-motion/dist/es/utils/get-context-window.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/utils/hsla-to-rgba.js +0 -23
- package/dist/node_modules/framer-motion/dist/es/utils/interpolate.js +0 -42
- package/dist/node_modules/framer-motion/dist/es/utils/is-browser.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/utils/is-numerical-string.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/utils/is-ref-object.js +0 -7
- package/dist/node_modules/framer-motion/dist/es/utils/is-zero-value-string.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/utils/mix/color.js +0 -30
- package/dist/node_modules/framer-motion/dist/es/utils/mix/complex.js +0 -53
- package/dist/node_modules/framer-motion/dist/es/utils/mix/immediate.js +0 -7
- package/dist/node_modules/framer-motion/dist/es/utils/mix/index.js +0 -9
- package/dist/node_modules/framer-motion/dist/es/utils/mix/number.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/utils/mix/visibility.js +0 -9
- package/dist/node_modules/framer-motion/dist/es/utils/offsets/default.js +0 -9
- package/dist/node_modules/framer-motion/dist/es/utils/offsets/fill.js +0 -14
- package/dist/node_modules/framer-motion/dist/es/utils/offsets/time.js +0 -7
- package/dist/node_modules/framer-motion/dist/es/utils/pipe.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/utils/reduced-motion/index.js +0 -14
- package/dist/node_modules/framer-motion/dist/es/utils/reduced-motion/state.js +0 -6
- package/dist/node_modules/framer-motion/dist/es/utils/resolve-value.js +0 -7
- package/dist/node_modules/framer-motion/dist/es/utils/shallow-compare.js +0 -15
- package/dist/node_modules/framer-motion/dist/es/utils/subscription-manager.js +0 -30
- package/dist/node_modules/framer-motion/dist/es/utils/use-constant.js +0 -9
- package/dist/node_modules/framer-motion/dist/es/utils/use-isomorphic-effect.js +0 -7
- package/dist/node_modules/framer-motion/dist/es/utils/velocity-per-second.js +0 -7
- package/dist/node_modules/framer-motion/dist/es/utils/warn-once.js +0 -8
- package/dist/node_modules/framer-motion/dist/es/value/index.js +0 -208
- package/dist/node_modules/framer-motion/dist/es/value/types/color/hex.js +0 -20
- package/dist/node_modules/framer-motion/dist/es/value/types/color/hsla.js +0 -13
- package/dist/node_modules/framer-motion/dist/es/value/types/color/index.js +0 -12
- package/dist/node_modules/framer-motion/dist/es/value/types/color/rgba.js +0 -17
- package/dist/node_modules/framer-motion/dist/es/value/types/color/utils.js +0 -19
- package/dist/node_modules/framer-motion/dist/es/value/types/complex/filter.js +0 -25
- package/dist/node_modules/framer-motion/dist/es/value/types/complex/index.js +0 -50
- package/dist/node_modules/framer-motion/dist/es/value/types/numbers/index.js +0 -18
- package/dist/node_modules/framer-motion/dist/es/value/types/numbers/units.js +0 -18
- package/dist/node_modules/framer-motion/dist/es/value/types/utils/color-regex.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/value/types/utils/float-regex.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/value/types/utils/is-nullish.js +0 -7
- package/dist/node_modules/framer-motion/dist/es/value/types/utils/sanitize.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/value/types/utils/single-color-regex.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/value/use-will-change/add-will-change.js +0 -10
- package/dist/node_modules/framer-motion/dist/es/value/use-will-change/is.js +0 -8
- package/dist/node_modules/framer-motion/dist/es/value/utils/is-motion-value.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/value/utils/resolve-motion-value.js +0 -10
- package/dist/node_modules/motion-dom/dist/es/animation/controls/BaseGroup.js +0 -75
- package/dist/node_modules/motion-dom/dist/es/animation/controls/Group.js +0 -10
- package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/calc-duration.js +0 -14
- package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/is-generator.js +0 -7
- package/dist/node_modules/motion-dom/dist/es/animation/utils/get-value-transition.js +0 -7
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/attach-timeline.js +0 -7
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/easing.js +0 -28
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/linear.js +0 -13
- package/dist/node_modules/motion-dom/dist/es/gestures/drag/state/is-active.js +0 -12
- package/dist/node_modules/motion-dom/dist/es/gestures/drag/state/set-active.js +0 -12
- package/dist/node_modules/motion-dom/dist/es/gestures/hover.js +0 -25
- package/dist/node_modules/motion-dom/dist/es/gestures/press/index.js +0 -33
- package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/is-keyboard-accessible.js +0 -14
- package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/keyboard.js +0 -28
- package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/state.js +0 -5
- package/dist/node_modules/motion-dom/dist/es/gestures/utils/is-node-or-child.js +0 -5
- package/dist/node_modules/motion-dom/dist/es/gestures/utils/is-primary-pointer.js +0 -5
- package/dist/node_modules/motion-dom/dist/es/gestures/utils/setup.js +0 -13
- package/dist/node_modules/motion-dom/dist/es/utils/is-bezier-definition.js +0 -5
- 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 -7
- package/dist/node_modules/motion-dom/dist/es/utils/supports/linear-easing.js +0 -13
- package/dist/node_modules/motion-dom/dist/es/utils/supports/memo.js +0 -14
- package/dist/node_modules/motion-dom/dist/es/utils/supports/scroll-timeline.js +0 -7
- package/dist/node_modules/motion-utils/dist/es/errors.js +0 -13
- package/dist/node_modules/motion-utils/dist/es/memo.js +0 -9
- package/dist/node_modules/motion-utils/dist/es/noop.js +0 -5
- package/dist/node_modules/motion-utils/dist/es/progress.js +0 -8
- package/dist/node_modules/motion-utils/dist/es/time-conversion.js +0 -6
- package/dist/node_modules/react/cjs/react-jsx-runtime.development.js +0 -248
- package/dist/node_modules/react/cjs/react-jsx-runtime.production.js +0 -36
- package/dist/node_modules/react/jsx-runtime.js +0 -11
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import * as
|
|
2
|
+
import { jsx as s, jsxs as f, Fragment as T } from "react/jsx-runtime";
|
|
3
|
+
import * as b from "react";
|
|
4
4
|
import { cn as u } from "../../lib/utils.js";
|
|
5
|
-
import { Tooltip as
|
|
6
|
-
import { Legend as
|
|
7
|
-
import { ResponsiveContainer as
|
|
8
|
-
const
|
|
9
|
-
function
|
|
10
|
-
const c =
|
|
5
|
+
import { Tooltip as I } from "../../node_modules/recharts/es6/component/Tooltip.js";
|
|
6
|
+
import { Legend as P } from "../../node_modules/recharts/es6/component/Legend.js";
|
|
7
|
+
import { ResponsiveContainer as S } from "../../node_modules/recharts/es6/component/ResponsiveContainer.js";
|
|
8
|
+
const E = { light: "", dark: ".dark" }, N = b.createContext(null);
|
|
9
|
+
function j() {
|
|
10
|
+
const c = b.useContext(N);
|
|
11
11
|
if (!c)
|
|
12
12
|
throw new Error("useChart must be used within a <ChartContainer />");
|
|
13
13
|
return c;
|
|
14
14
|
}
|
|
15
|
-
function
|
|
15
|
+
function z({
|
|
16
16
|
id: c,
|
|
17
17
|
className: r,
|
|
18
|
-
children:
|
|
19
|
-
config:
|
|
18
|
+
children: n,
|
|
19
|
+
config: t,
|
|
20
20
|
...a
|
|
21
21
|
}) {
|
|
22
|
-
const h =
|
|
23
|
-
return /* @__PURE__ */
|
|
22
|
+
const h = b.useId(), o = `chart-${c || h.replace(/:/g, "")}`;
|
|
23
|
+
return /* @__PURE__ */ s(N.Provider, { value: { config: t }, children: /* @__PURE__ */ f(
|
|
24
24
|
"div",
|
|
25
25
|
{
|
|
26
26
|
"data-slot": "chart",
|
|
@@ -31,26 +31,26 @@ function O({
|
|
|
31
31
|
),
|
|
32
32
|
...a,
|
|
33
33
|
children: [
|
|
34
|
-
/* @__PURE__ */
|
|
35
|
-
/* @__PURE__ */
|
|
34
|
+
/* @__PURE__ */ s(K, { id: o, config: t }),
|
|
35
|
+
/* @__PURE__ */ s(S, { children: n })
|
|
36
36
|
]
|
|
37
37
|
}
|
|
38
38
|
) });
|
|
39
39
|
}
|
|
40
|
-
const
|
|
41
|
-
const
|
|
42
|
-
([,
|
|
40
|
+
const K = ({ id: c, config: r }) => {
|
|
41
|
+
const n = Object.entries(r).filter(
|
|
42
|
+
([, t]) => t.theme || t.color
|
|
43
43
|
);
|
|
44
|
-
return
|
|
44
|
+
return n.length ? /* @__PURE__ */ s(
|
|
45
45
|
"style",
|
|
46
46
|
{
|
|
47
47
|
dangerouslySetInnerHTML: {
|
|
48
|
-
__html: Object.entries(
|
|
49
|
-
([
|
|
48
|
+
__html: Object.entries(E).map(
|
|
49
|
+
([t, a]) => `
|
|
50
50
|
${a} [data-chart=${c}] {
|
|
51
|
-
${
|
|
51
|
+
${n.map(([h, o]) => {
|
|
52
52
|
var l;
|
|
53
|
-
const i = ((l = o.theme) == null ? void 0 : l[
|
|
53
|
+
const i = ((l = o.theme) == null ? void 0 : l[t]) || o.color;
|
|
54
54
|
return i ? ` --color-${h}: ${i};` : null;
|
|
55
55
|
}).join(`
|
|
56
56
|
`)}
|
|
@@ -61,90 +61,90 @@ ${s.map(([h, o]) => {
|
|
|
61
61
|
}
|
|
62
62
|
}
|
|
63
63
|
) : null;
|
|
64
|
-
},
|
|
65
|
-
function
|
|
64
|
+
}, A = I;
|
|
65
|
+
function B({
|
|
66
66
|
active: c,
|
|
67
67
|
payload: r,
|
|
68
|
-
className:
|
|
69
|
-
indicator:
|
|
68
|
+
className: n,
|
|
69
|
+
indicator: t = "dot",
|
|
70
70
|
hideLabel: a = !1,
|
|
71
71
|
hideIndicator: h = !1,
|
|
72
72
|
label: o,
|
|
73
73
|
labelFormatter: i,
|
|
74
74
|
labelClassName: l,
|
|
75
|
-
formatter:
|
|
76
|
-
color:
|
|
77
|
-
nameKey:
|
|
78
|
-
labelKey:
|
|
75
|
+
formatter: w,
|
|
76
|
+
color: $,
|
|
77
|
+
nameKey: L,
|
|
78
|
+
labelKey: p
|
|
79
79
|
}) {
|
|
80
|
-
const { config:
|
|
81
|
-
var
|
|
80
|
+
const { config: m } = j(), C = b.useMemo(() => {
|
|
81
|
+
var v;
|
|
82
82
|
if (a || !(r != null && r.length))
|
|
83
83
|
return null;
|
|
84
|
-
const [e] = r,
|
|
85
|
-
return i ? /* @__PURE__ */
|
|
84
|
+
const [e] = r, _ = `${p || (e == null ? void 0 : e.dataKey) || (e == null ? void 0 : e.name) || "value"}`, g = k(m, e, _), d = !p && typeof o == "string" ? ((v = m[o]) == null ? void 0 : v.label) || o : g == null ? void 0 : g.label;
|
|
85
|
+
return i ? /* @__PURE__ */ s("div", { className: u("font-medium", l), children: i(d, r) }) : d ? /* @__PURE__ */ s("div", { className: u("font-medium", l), children: d }) : null;
|
|
86
86
|
}, [
|
|
87
87
|
o,
|
|
88
88
|
i,
|
|
89
89
|
r,
|
|
90
90
|
a,
|
|
91
91
|
l,
|
|
92
|
-
|
|
93
|
-
|
|
92
|
+
m,
|
|
93
|
+
p
|
|
94
94
|
]);
|
|
95
95
|
if (!c || !(r != null && r.length))
|
|
96
96
|
return null;
|
|
97
|
-
const
|
|
98
|
-
return /* @__PURE__ */
|
|
97
|
+
const x = r.length === 1 && t !== "dot";
|
|
98
|
+
return /* @__PURE__ */ f(
|
|
99
99
|
"div",
|
|
100
100
|
{
|
|
101
101
|
className: u(
|
|
102
102
|
"border-border/50 bg-background grid min-w-[8rem] items-start gap-1.5 rounded-lg border px-2.5 py-1.5 text-xs shadow-xl",
|
|
103
|
-
|
|
103
|
+
n
|
|
104
104
|
),
|
|
105
105
|
children: [
|
|
106
|
-
|
|
107
|
-
/* @__PURE__ */
|
|
108
|
-
const
|
|
109
|
-
return /* @__PURE__ */
|
|
106
|
+
x ? null : C,
|
|
107
|
+
/* @__PURE__ */ s("div", { className: "grid gap-1.5", children: r.map((e, _) => {
|
|
108
|
+
const g = `${L || e.name || e.dataKey || "value"}`, d = k(m, e, g), v = $ || e.payload.fill || e.color;
|
|
109
|
+
return /* @__PURE__ */ s(
|
|
110
110
|
"div",
|
|
111
111
|
{
|
|
112
112
|
className: u(
|
|
113
113
|
"[&>svg]:text-muted-foreground flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5",
|
|
114
|
-
|
|
114
|
+
t === "dot" && "items-center"
|
|
115
115
|
),
|
|
116
|
-
children:
|
|
117
|
-
d != null && d.icon ? /* @__PURE__ */
|
|
116
|
+
children: w && (e == null ? void 0 : e.value) !== void 0 && e.name ? w(e.value, e.name, e, _, e.payload) : /* @__PURE__ */ f(T, { children: [
|
|
117
|
+
d != null && d.icon ? /* @__PURE__ */ s(d.icon, {}) : !h && /* @__PURE__ */ s(
|
|
118
118
|
"div",
|
|
119
119
|
{
|
|
120
120
|
className: u(
|
|
121
121
|
"shrink-0 rounded-[2px] border-(--color-border) bg-(--color-bg)",
|
|
122
122
|
{
|
|
123
|
-
"h-2.5 w-2.5":
|
|
124
|
-
"w-1":
|
|
125
|
-
"w-0 border-[1.5px] border-dashed bg-transparent":
|
|
126
|
-
"my-0.5":
|
|
123
|
+
"h-2.5 w-2.5": t === "dot",
|
|
124
|
+
"w-1": t === "line",
|
|
125
|
+
"w-0 border-[1.5px] border-dashed bg-transparent": t === "dashed",
|
|
126
|
+
"my-0.5": x && t === "dashed"
|
|
127
127
|
}
|
|
128
128
|
),
|
|
129
129
|
style: {
|
|
130
|
-
"--color-bg":
|
|
131
|
-
"--color-border":
|
|
130
|
+
"--color-bg": v,
|
|
131
|
+
"--color-border": v
|
|
132
132
|
}
|
|
133
133
|
}
|
|
134
134
|
),
|
|
135
|
-
/* @__PURE__ */
|
|
135
|
+
/* @__PURE__ */ f(
|
|
136
136
|
"div",
|
|
137
137
|
{
|
|
138
138
|
className: u(
|
|
139
139
|
"flex flex-1 justify-between leading-none",
|
|
140
|
-
|
|
140
|
+
x ? "items-end" : "items-center"
|
|
141
141
|
),
|
|
142
142
|
children: [
|
|
143
|
-
/* @__PURE__ */
|
|
144
|
-
|
|
145
|
-
/* @__PURE__ */
|
|
143
|
+
/* @__PURE__ */ f("div", { className: "grid gap-1.5", children: [
|
|
144
|
+
x ? C : null,
|
|
145
|
+
/* @__PURE__ */ s("span", { className: "text-muted-foreground", children: (d == null ? void 0 : d.label) || e.name })
|
|
146
146
|
] }),
|
|
147
|
-
e.value && /* @__PURE__ */
|
|
147
|
+
e.value && /* @__PURE__ */ s("span", { className: "text-foreground font-mono font-medium tabular-nums", children: e.value.toLocaleString() })
|
|
148
148
|
]
|
|
149
149
|
}
|
|
150
150
|
)
|
|
@@ -157,33 +157,33 @@ function z({
|
|
|
157
157
|
}
|
|
158
158
|
);
|
|
159
159
|
}
|
|
160
|
-
const
|
|
161
|
-
function
|
|
160
|
+
const D = P;
|
|
161
|
+
function F({
|
|
162
162
|
className: c,
|
|
163
163
|
hideIcon: r = !1,
|
|
164
|
-
payload:
|
|
165
|
-
verticalAlign:
|
|
164
|
+
payload: n,
|
|
165
|
+
verticalAlign: t = "bottom",
|
|
166
166
|
nameKey: a
|
|
167
167
|
}) {
|
|
168
|
-
const { config: h } =
|
|
169
|
-
return
|
|
168
|
+
const { config: h } = j();
|
|
169
|
+
return n != null && n.length ? /* @__PURE__ */ s(
|
|
170
170
|
"div",
|
|
171
171
|
{
|
|
172
172
|
className: u(
|
|
173
173
|
"flex items-center justify-center gap-4",
|
|
174
|
-
|
|
174
|
+
t === "top" ? "pb-3" : "pt-3",
|
|
175
175
|
c
|
|
176
176
|
),
|
|
177
|
-
children:
|
|
178
|
-
const i = `${a || o.dataKey || "value"}`, l =
|
|
179
|
-
return /* @__PURE__ */
|
|
177
|
+
children: n.map((o) => {
|
|
178
|
+
const i = `${a || o.dataKey || "value"}`, l = k(h, o, i);
|
|
179
|
+
return /* @__PURE__ */ f(
|
|
180
180
|
"div",
|
|
181
181
|
{
|
|
182
182
|
className: u(
|
|
183
183
|
"[&>svg]:text-muted-foreground flex items-center gap-1.5 [&>svg]:h-3 [&>svg]:w-3"
|
|
184
184
|
),
|
|
185
185
|
children: [
|
|
186
|
-
l != null && l.icon && !r ? /* @__PURE__ */
|
|
186
|
+
l != null && l.icon && !r ? /* @__PURE__ */ s(l.icon, {}) : /* @__PURE__ */ s(
|
|
187
187
|
"div",
|
|
188
188
|
{
|
|
189
189
|
className: "h-2 w-2 shrink-0 rounded-[2px]",
|
|
@@ -201,18 +201,18 @@ function B({
|
|
|
201
201
|
}
|
|
202
202
|
) : null;
|
|
203
203
|
}
|
|
204
|
-
function
|
|
204
|
+
function k(c, r, n) {
|
|
205
205
|
if (typeof r != "object" || r === null)
|
|
206
206
|
return;
|
|
207
|
-
const
|
|
208
|
-
let a =
|
|
209
|
-
return
|
|
207
|
+
const t = "payload" in r && typeof r.payload == "object" && r.payload !== null ? r.payload : void 0;
|
|
208
|
+
let a = n;
|
|
209
|
+
return n in r && typeof r[n] == "string" ? a = r[n] : t && n in t && typeof t[n] == "string" && (a = t[n]), a in c ? c[a] : c[n];
|
|
210
210
|
}
|
|
211
211
|
export {
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
212
|
+
z as ChartContainer,
|
|
213
|
+
D as ChartLegend,
|
|
214
|
+
F as ChartLegendContent,
|
|
215
|
+
K as ChartStyle,
|
|
216
|
+
A as ChartTooltip,
|
|
217
|
+
B as ChartTooltipContent
|
|
218
218
|
};
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import { useMemo as
|
|
4
|
-
import { cva as
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
2
|
+
import { jsxs as l, jsx as e } from "react/jsx-runtime";
|
|
3
|
+
import { useMemo as y, Suspense as h, useState as w } from "react";
|
|
4
|
+
import { cva as C } from "../../node_modules/class-variance-authority/dist/index.js";
|
|
5
|
+
import { motion as k } from "framer-motion";
|
|
6
|
+
import { cn as n } from "../../lib/utils.js";
|
|
7
|
+
import { Collapsible as U, CollapsibleTrigger as S, CollapsibleContent as T } from "./collapsible.js";
|
|
8
|
+
import { FilePreview as O } from "./file-preview.js";
|
|
9
|
+
import { MarkdownRenderer as x } from "./markdown-renderer.js";
|
|
10
|
+
import B from "../../node_modules/lucide-react/dist/esm/icons/chevron-right.js";
|
|
11
|
+
import M from "../../node_modules/lucide-react/dist/esm/icons/ban.js";
|
|
12
12
|
import R from "../../node_modules/lucide-react/dist/esm/icons/code-xml.js";
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
const
|
|
13
|
+
import $ from "../../node_modules/lucide-react/dist/esm/icons/terminal.js";
|
|
14
|
+
import j from "../../node_modules/lucide-react/dist/esm/icons/loader-circle.js";
|
|
15
|
+
const b = C(
|
|
16
16
|
"group/message relative break-words rounded-lg p-3 text-sm sm:max-w-[70%]",
|
|
17
17
|
{
|
|
18
18
|
variants: {
|
|
@@ -50,199 +50,199 @@ const h = y(
|
|
|
50
50
|
}
|
|
51
51
|
]
|
|
52
52
|
}
|
|
53
|
-
),
|
|
54
|
-
role:
|
|
55
|
-
content:
|
|
56
|
-
createdAt:
|
|
57
|
-
showTimeStamp:
|
|
58
|
-
animation:
|
|
59
|
-
actions:
|
|
60
|
-
experimental_attachments:
|
|
61
|
-
toolInvocations:
|
|
62
|
-
parts:
|
|
53
|
+
), Z = ({
|
|
54
|
+
role: a,
|
|
55
|
+
content: t,
|
|
56
|
+
createdAt: r,
|
|
57
|
+
showTimeStamp: m = !1,
|
|
58
|
+
animation: d = "scale",
|
|
59
|
+
actions: c,
|
|
60
|
+
experimental_attachments: u,
|
|
61
|
+
toolInvocations: f,
|
|
62
|
+
parts: p
|
|
63
63
|
}) => {
|
|
64
|
-
const
|
|
65
|
-
const
|
|
66
|
-
return new File([
|
|
67
|
-
}), [
|
|
64
|
+
const N = y(() => u == null ? void 0 : u.map((i) => {
|
|
65
|
+
const o = F(i.url);
|
|
66
|
+
return new File([o], i.name ?? "Unknown");
|
|
67
|
+
}), [u]), s = a === "user", g = r == null ? void 0 : r.toLocaleTimeString("en-US", {
|
|
68
68
|
hour: "2-digit",
|
|
69
69
|
minute: "2-digit"
|
|
70
70
|
});
|
|
71
|
-
return
|
|
71
|
+
return s ? /* @__PURE__ */ l(
|
|
72
72
|
"div",
|
|
73
73
|
{
|
|
74
|
-
className:
|
|
74
|
+
className: n("flex flex-col", s ? "items-end" : "items-start"),
|
|
75
75
|
children: [
|
|
76
|
-
|
|
77
|
-
/* @__PURE__ */ e
|
|
78
|
-
|
|
76
|
+
N ? /* @__PURE__ */ e("div", { className: "mb-1 flex flex-wrap gap-2", children: N.map((i, o) => /* @__PURE__ */ e(O, { file: i }, o)) }) : null,
|
|
77
|
+
/* @__PURE__ */ e("div", { className: n(b({ isUser: s, animation: d })), children: /* @__PURE__ */ e(h, { fallback: /* @__PURE__ */ e("div", { className: "text-muted-foreground", children: "Caricamento..." }), children: /* @__PURE__ */ e(x, { children: t }) }) }),
|
|
78
|
+
m && r ? /* @__PURE__ */ e(
|
|
79
79
|
"time",
|
|
80
80
|
{
|
|
81
|
-
dateTime:
|
|
82
|
-
className:
|
|
81
|
+
dateTime: r.toISOString(),
|
|
82
|
+
className: n(
|
|
83
83
|
"mt-1 block px-1 text-xs opacity-50",
|
|
84
|
-
|
|
84
|
+
d !== "none" && "duration-500 animate-in fade-in-0"
|
|
85
85
|
),
|
|
86
|
-
children:
|
|
86
|
+
children: g
|
|
87
87
|
}
|
|
88
88
|
) : null
|
|
89
89
|
]
|
|
90
90
|
}
|
|
91
|
-
) :
|
|
91
|
+
) : p && p.length > 0 ? p.map((i, o) => i.type === "text" ? /* @__PURE__ */ l(
|
|
92
92
|
"div",
|
|
93
93
|
{
|
|
94
|
-
className:
|
|
94
|
+
className: n(
|
|
95
95
|
"flex flex-col",
|
|
96
|
-
|
|
96
|
+
s ? "items-end" : "items-start"
|
|
97
97
|
),
|
|
98
98
|
children: [
|
|
99
|
-
/* @__PURE__ */
|
|
100
|
-
/* @__PURE__ */ e
|
|
101
|
-
|
|
99
|
+
/* @__PURE__ */ l("div", { className: n(b({ isUser: s, animation: d })), children: [
|
|
100
|
+
/* @__PURE__ */ e(h, { fallback: /* @__PURE__ */ e("div", { className: "text-muted-foreground", children: "Caricamento..." }), children: /* @__PURE__ */ e(x, { children: i.text }) }),
|
|
101
|
+
c ? /* @__PURE__ */ e("div", { className: "absolute -bottom-4 right-2 flex space-x-1 rounded-lg border bg-background p-1 text-foreground opacity-0 transition-opacity group-hover/message:opacity-100", children: c }) : null
|
|
102
102
|
] }),
|
|
103
|
-
|
|
103
|
+
m && r ? /* @__PURE__ */ e(
|
|
104
104
|
"time",
|
|
105
105
|
{
|
|
106
|
-
dateTime:
|
|
107
|
-
className:
|
|
106
|
+
dateTime: r.toISOString(),
|
|
107
|
+
className: n(
|
|
108
108
|
"mt-1 block px-1 text-xs opacity-50",
|
|
109
|
-
|
|
109
|
+
d !== "none" && "duration-500 animate-in fade-in-0"
|
|
110
110
|
),
|
|
111
|
-
children:
|
|
111
|
+
children: g
|
|
112
112
|
}
|
|
113
113
|
) : null
|
|
114
114
|
]
|
|
115
115
|
},
|
|
116
|
-
`text-${
|
|
117
|
-
) :
|
|
118
|
-
|
|
116
|
+
`text-${o}`
|
|
117
|
+
) : i.type === "reasoning" ? /* @__PURE__ */ e(L, { part: i }, `reasoning-${o}`) : i.type === "tool-invocation" ? /* @__PURE__ */ e(
|
|
118
|
+
v,
|
|
119
119
|
{
|
|
120
|
-
toolInvocations: [
|
|
120
|
+
toolInvocations: [i.toolInvocation]
|
|
121
121
|
},
|
|
122
|
-
`tool-${
|
|
123
|
-
) : null) :
|
|
124
|
-
/* @__PURE__ */
|
|
125
|
-
/* @__PURE__ */ e
|
|
126
|
-
|
|
122
|
+
`tool-${o}`
|
|
123
|
+
) : null) : f && f.length > 0 ? /* @__PURE__ */ e(v, { toolInvocations: f }) : /* @__PURE__ */ l("div", { className: n("flex flex-col", s ? "items-end" : "items-start"), children: [
|
|
124
|
+
/* @__PURE__ */ l("div", { className: n(b({ isUser: s, animation: d })), children: [
|
|
125
|
+
/* @__PURE__ */ e(h, { fallback: /* @__PURE__ */ e("div", { className: "text-muted-foreground", children: "Caricamento..." }), children: /* @__PURE__ */ e(x, { children: t }) }),
|
|
126
|
+
c ? /* @__PURE__ */ e("div", { className: "absolute -bottom-4 right-2 flex space-x-1 rounded-lg border bg-background p-1 text-foreground opacity-0 transition-opacity group-hover/message:opacity-100", children: c }) : null
|
|
127
127
|
] }),
|
|
128
|
-
|
|
128
|
+
m && r ? /* @__PURE__ */ e(
|
|
129
129
|
"time",
|
|
130
130
|
{
|
|
131
|
-
dateTime:
|
|
132
|
-
className:
|
|
131
|
+
dateTime: r.toISOString(),
|
|
132
|
+
className: n(
|
|
133
133
|
"mt-1 block px-1 text-xs opacity-50",
|
|
134
|
-
|
|
134
|
+
d !== "none" && "duration-500 animate-in fade-in-0"
|
|
135
135
|
),
|
|
136
|
-
children:
|
|
136
|
+
children: g
|
|
137
137
|
}
|
|
138
138
|
) : null
|
|
139
139
|
] });
|
|
140
140
|
};
|
|
141
|
-
function
|
|
142
|
-
const
|
|
143
|
-
return new Uint8Array(
|
|
141
|
+
function F(a) {
|
|
142
|
+
const t = a.split(",")[1], r = Buffer.from(t, "base64");
|
|
143
|
+
return new Uint8Array(r);
|
|
144
144
|
}
|
|
145
|
-
const
|
|
146
|
-
const [
|
|
147
|
-
return /* @__PURE__ */ e
|
|
148
|
-
|
|
145
|
+
const L = ({ part: a }) => {
|
|
146
|
+
const [t, r] = w(!1);
|
|
147
|
+
return /* @__PURE__ */ e("div", { className: "mb-2 flex flex-col items-start sm:max-w-[70%]", children: /* @__PURE__ */ l(
|
|
148
|
+
U,
|
|
149
149
|
{
|
|
150
|
-
open:
|
|
151
|
-
onOpenChange:
|
|
150
|
+
open: t,
|
|
151
|
+
onOpenChange: r,
|
|
152
152
|
className: "group w-full overflow-hidden rounded-lg border bg-muted/50",
|
|
153
153
|
children: [
|
|
154
|
-
/* @__PURE__ */ e
|
|
155
|
-
/* @__PURE__ */ e
|
|
156
|
-
/* @__PURE__ */ e
|
|
154
|
+
/* @__PURE__ */ e("div", { className: "flex items-center p-2", children: /* @__PURE__ */ e(S, { asChild: !0, children: /* @__PURE__ */ l("button", { className: "flex items-center gap-2 text-sm text-muted-foreground hover:text-foreground", children: [
|
|
155
|
+
/* @__PURE__ */ e(B, { className: "h-4 w-4 transition-transform group-data-[state=open]:rotate-90" }),
|
|
156
|
+
/* @__PURE__ */ e("span", { children: "Thinking" })
|
|
157
157
|
] }) }) }),
|
|
158
|
-
/* @__PURE__ */ e
|
|
159
|
-
|
|
158
|
+
/* @__PURE__ */ e(T, { forceMount: !0, children: /* @__PURE__ */ e(
|
|
159
|
+
k.div,
|
|
160
160
|
{
|
|
161
161
|
initial: !1,
|
|
162
|
-
animate:
|
|
162
|
+
animate: t ? "open" : "closed",
|
|
163
163
|
variants: {
|
|
164
164
|
open: { height: "auto", opacity: 1 },
|
|
165
165
|
closed: { height: 0, opacity: 0 }
|
|
166
166
|
},
|
|
167
167
|
transition: { duration: 0.3, ease: [0.04, 0.62, 0.23, 0.98] },
|
|
168
168
|
className: "border-t",
|
|
169
|
-
children: /* @__PURE__ */ e
|
|
169
|
+
children: /* @__PURE__ */ e("div", { className: "p-2", children: /* @__PURE__ */ e("div", { className: "whitespace-pre-wrap text-xs", children: a.reasoning }) })
|
|
170
170
|
}
|
|
171
171
|
) })
|
|
172
172
|
]
|
|
173
173
|
}
|
|
174
174
|
) });
|
|
175
175
|
};
|
|
176
|
-
function
|
|
177
|
-
toolInvocations:
|
|
176
|
+
function v({
|
|
177
|
+
toolInvocations: a
|
|
178
178
|
}) {
|
|
179
|
-
return
|
|
180
|
-
if (
|
|
181
|
-
return /* @__PURE__ */
|
|
179
|
+
return a != null && a.length ? /* @__PURE__ */ e("div", { className: "flex flex-col items-start gap-2", children: a.map((t, r) => {
|
|
180
|
+
if (t.state === "result" && t.result.__cancelled === !0)
|
|
181
|
+
return /* @__PURE__ */ l(
|
|
182
182
|
"div",
|
|
183
183
|
{
|
|
184
184
|
className: "flex items-center gap-2 rounded-lg border bg-muted/50 px-3 py-2 text-sm text-muted-foreground",
|
|
185
185
|
children: [
|
|
186
|
-
/* @__PURE__ */ e
|
|
187
|
-
/* @__PURE__ */
|
|
186
|
+
/* @__PURE__ */ e(M, { className: "h-4 w-4" }),
|
|
187
|
+
/* @__PURE__ */ l("span", { children: [
|
|
188
188
|
"Cancelled",
|
|
189
189
|
" ",
|
|
190
|
-
/* @__PURE__ */
|
|
190
|
+
/* @__PURE__ */ l("span", { className: "font-mono", children: [
|
|
191
191
|
"`",
|
|
192
|
-
|
|
192
|
+
t.toolName,
|
|
193
193
|
"`"
|
|
194
194
|
] })
|
|
195
195
|
] })
|
|
196
196
|
]
|
|
197
197
|
},
|
|
198
|
-
|
|
198
|
+
r
|
|
199
199
|
);
|
|
200
|
-
switch (
|
|
200
|
+
switch (t.state) {
|
|
201
201
|
case "partial-call":
|
|
202
202
|
case "call":
|
|
203
|
-
return /* @__PURE__ */
|
|
203
|
+
return /* @__PURE__ */ l(
|
|
204
204
|
"div",
|
|
205
205
|
{
|
|
206
206
|
className: "flex items-center gap-2 rounded-lg border bg-muted/50 px-3 py-2 text-sm text-muted-foreground",
|
|
207
207
|
children: [
|
|
208
|
-
/* @__PURE__ */ e
|
|
209
|
-
/* @__PURE__ */
|
|
208
|
+
/* @__PURE__ */ e($, { className: "h-4 w-4" }),
|
|
209
|
+
/* @__PURE__ */ l("span", { children: [
|
|
210
210
|
"Calling",
|
|
211
211
|
" ",
|
|
212
|
-
/* @__PURE__ */
|
|
212
|
+
/* @__PURE__ */ l("span", { className: "font-mono", children: [
|
|
213
213
|
"`",
|
|
214
|
-
|
|
214
|
+
t.toolName,
|
|
215
215
|
"`"
|
|
216
216
|
] }),
|
|
217
217
|
"..."
|
|
218
218
|
] }),
|
|
219
|
-
/* @__PURE__ */ e
|
|
219
|
+
/* @__PURE__ */ e(j, { className: "h-3 w-3 animate-spin" })
|
|
220
220
|
]
|
|
221
221
|
},
|
|
222
|
-
|
|
222
|
+
r
|
|
223
223
|
);
|
|
224
224
|
case "result":
|
|
225
|
-
return /* @__PURE__ */
|
|
225
|
+
return /* @__PURE__ */ l(
|
|
226
226
|
"div",
|
|
227
227
|
{
|
|
228
228
|
className: "flex flex-col gap-1.5 rounded-lg border bg-muted/50 px-3 py-2 text-sm",
|
|
229
229
|
children: [
|
|
230
|
-
/* @__PURE__ */
|
|
231
|
-
/* @__PURE__ */ e
|
|
232
|
-
/* @__PURE__ */
|
|
230
|
+
/* @__PURE__ */ l("div", { className: "flex items-center gap-2 text-muted-foreground", children: [
|
|
231
|
+
/* @__PURE__ */ e(R, { className: "h-4 w-4" }),
|
|
232
|
+
/* @__PURE__ */ l("span", { children: [
|
|
233
233
|
"Result from",
|
|
234
234
|
" ",
|
|
235
|
-
/* @__PURE__ */
|
|
235
|
+
/* @__PURE__ */ l("span", { className: "font-mono", children: [
|
|
236
236
|
"`",
|
|
237
|
-
|
|
237
|
+
t.toolName,
|
|
238
238
|
"`"
|
|
239
239
|
] })
|
|
240
240
|
] })
|
|
241
241
|
] }),
|
|
242
|
-
/* @__PURE__ */ e
|
|
242
|
+
/* @__PURE__ */ e("pre", { className: "overflow-x-auto whitespace-pre-wrap text-foreground", children: JSON.stringify(t.result, null, 2) })
|
|
243
243
|
]
|
|
244
244
|
},
|
|
245
|
-
|
|
245
|
+
r
|
|
246
246
|
);
|
|
247
247
|
default:
|
|
248
248
|
return null;
|
|
@@ -250,5 +250,5 @@ function b({
|
|
|
250
250
|
}) }) : null;
|
|
251
251
|
}
|
|
252
252
|
export {
|
|
253
|
-
|
|
253
|
+
Z as ChatMessage
|
|
254
254
|
};
|