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,18 +1,18 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import * as
|
|
4
|
-
import { useState as o, useEffect as
|
|
5
|
-
import { useDebounce as
|
|
6
|
-
import { cva as
|
|
7
|
-
import { cn as
|
|
8
|
-
import { Button as
|
|
2
|
+
import { jsxs as r, jsx as t } from "react/jsx-runtime";
|
|
3
|
+
import * as Z from "react";
|
|
4
|
+
import { useState as o, useEffect as g, useCallback as _ } from "react";
|
|
5
|
+
import { useDebounce as V } from "../../hooks/use-debounce.js";
|
|
6
|
+
import { cva as ee } from "../../node_modules/class-variance-authority/dist/index.js";
|
|
7
|
+
import { cn as v } from "../../lib/utils.js";
|
|
8
|
+
import { Button as te } from "./button.js";
|
|
9
9
|
import { Label as se } from "./label.js";
|
|
10
|
-
import { Command as
|
|
11
|
-
import { Popover as
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
const
|
|
10
|
+
import { Command as ne, CommandInput as oe, CommandList as re, CommandEmpty as ae, CommandGroup as F, CommandItem as $ } from "./command.js";
|
|
11
|
+
import { Popover as ie, PopoverTrigger as le, PopoverContent as ce } from "./popover.js";
|
|
12
|
+
import me from "../../node_modules/lucide-react/dist/esm/icons/chevrons-up-down.js";
|
|
13
|
+
import de from "../../node_modules/lucide-react/dist/esm/icons/loader-circle.js";
|
|
14
|
+
import fe from "../../node_modules/lucide-react/dist/esm/icons/check.js";
|
|
15
|
+
const pe = ee(
|
|
16
16
|
"justify-between",
|
|
17
17
|
{
|
|
18
18
|
variants: {
|
|
@@ -27,148 +27,148 @@ const fe = V(
|
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
29
|
);
|
|
30
|
-
function
|
|
31
|
-
fetcher:
|
|
32
|
-
preload:
|
|
33
|
-
filterFn:
|
|
34
|
-
renderOption:
|
|
35
|
-
getOptionValue:
|
|
36
|
-
getDisplayValue:
|
|
37
|
-
notFound:
|
|
38
|
-
loadingSkeleton:
|
|
39
|
-
label:
|
|
40
|
-
labelClassName:
|
|
41
|
-
placeholder:
|
|
42
|
-
value:
|
|
43
|
-
onChange:
|
|
44
|
-
disabled:
|
|
45
|
-
width:
|
|
46
|
-
className:
|
|
47
|
-
triggerClassName:
|
|
48
|
-
noResultsMessage:
|
|
49
|
-
clearable:
|
|
50
|
-
size:
|
|
30
|
+
function Ee({
|
|
31
|
+
fetcher: l,
|
|
32
|
+
preload: m,
|
|
33
|
+
filterFn: y,
|
|
34
|
+
renderOption: A,
|
|
35
|
+
getOptionValue: i,
|
|
36
|
+
getDisplayValue: B,
|
|
37
|
+
notFound: G,
|
|
38
|
+
loadingSkeleton: M,
|
|
39
|
+
label: c,
|
|
40
|
+
labelClassName: R,
|
|
41
|
+
placeholder: U = "Select...",
|
|
42
|
+
value: a,
|
|
43
|
+
onChange: w,
|
|
44
|
+
disabled: S = !1,
|
|
45
|
+
width: b = "200px",
|
|
46
|
+
className: q,
|
|
47
|
+
triggerClassName: H,
|
|
48
|
+
noResultsMessage: J,
|
|
49
|
+
clearable: L = !0,
|
|
50
|
+
size: K
|
|
51
51
|
}) {
|
|
52
|
-
const [
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
}, [
|
|
56
|
-
if (
|
|
57
|
-
const
|
|
58
|
-
|
|
52
|
+
const [d, Q] = o(!1), [z, E] = o(!1), [n, f] = o([]), [x, p] = o(!1), [N, u] = o(null), [C, O] = o(a), [T, j] = o(null), [k, W] = o(""), h = V(k, m ? 0 : 300), [D, I] = o([]);
|
|
53
|
+
g(() => {
|
|
54
|
+
Q(!0), O(a);
|
|
55
|
+
}, [a]), g(() => {
|
|
56
|
+
if (a && n.length > 0) {
|
|
57
|
+
const s = n.find((e) => i(e) === a);
|
|
58
|
+
s && j(s);
|
|
59
59
|
}
|
|
60
|
-
}, [
|
|
61
|
-
|
|
60
|
+
}, [a, n, i]), g(() => {
|
|
61
|
+
d || (async () => {
|
|
62
62
|
try {
|
|
63
|
-
|
|
64
|
-
const
|
|
65
|
-
|
|
66
|
-
} catch (
|
|
67
|
-
|
|
63
|
+
p(!0), u(null);
|
|
64
|
+
const e = await l(a);
|
|
65
|
+
I(e), f(e);
|
|
66
|
+
} catch (e) {
|
|
67
|
+
u(e instanceof Error ? e.message : "Failed to fetch options");
|
|
68
68
|
} finally {
|
|
69
|
-
|
|
69
|
+
p(!1);
|
|
70
70
|
}
|
|
71
71
|
})();
|
|
72
|
-
}, [
|
|
73
|
-
const
|
|
72
|
+
}, [d, l, a]), g(() => {
|
|
73
|
+
const s = async () => {
|
|
74
74
|
try {
|
|
75
|
-
|
|
76
|
-
const
|
|
77
|
-
|
|
78
|
-
} catch (
|
|
79
|
-
|
|
75
|
+
p(!0), u(null);
|
|
76
|
+
const e = await l(h);
|
|
77
|
+
I(e), f(e);
|
|
78
|
+
} catch (e) {
|
|
79
|
+
u(e instanceof Error ? e.message : "Failed to fetch options");
|
|
80
80
|
} finally {
|
|
81
|
-
|
|
81
|
+
p(!1);
|
|
82
82
|
}
|
|
83
83
|
};
|
|
84
|
-
|
|
85
|
-
}, [
|
|
86
|
-
const
|
|
87
|
-
const
|
|
88
|
-
|
|
89
|
-
}, [
|
|
90
|
-
return /* @__PURE__ */
|
|
91
|
-
|
|
84
|
+
d && m ? m && f(h ? D.filter((e) => y ? y(e, h) : !0) : D) : s();
|
|
85
|
+
}, [l, h, d, m, y]);
|
|
86
|
+
const X = _((s) => {
|
|
87
|
+
const e = L && s === C ? "" : s;
|
|
88
|
+
O(e), j(n.find((Y) => i(Y) === e) || null), w(e), E(!1);
|
|
89
|
+
}, [C, w, L, n, i]), P = Z.useId();
|
|
90
|
+
return /* @__PURE__ */ r("div", { className: "space-y-1.5", children: [
|
|
91
|
+
c && /* @__PURE__ */ t(
|
|
92
92
|
se,
|
|
93
93
|
{
|
|
94
|
-
htmlFor:
|
|
95
|
-
className:
|
|
96
|
-
children:
|
|
94
|
+
htmlFor: P,
|
|
95
|
+
className: R,
|
|
96
|
+
children: c
|
|
97
97
|
}
|
|
98
98
|
),
|
|
99
|
-
/* @__PURE__ */
|
|
100
|
-
/* @__PURE__ */
|
|
101
|
-
|
|
99
|
+
/* @__PURE__ */ r(ie, { open: z, onOpenChange: E, children: [
|
|
100
|
+
/* @__PURE__ */ t(le, { asChild: !0, children: /* @__PURE__ */ r(
|
|
101
|
+
te,
|
|
102
102
|
{
|
|
103
|
-
id:
|
|
103
|
+
id: P,
|
|
104
104
|
variant: "outline",
|
|
105
105
|
role: "combobox",
|
|
106
|
-
"aria-expanded":
|
|
107
|
-
className:
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
106
|
+
"aria-expanded": z,
|
|
107
|
+
className: v(
|
|
108
|
+
pe({ size: K }),
|
|
109
|
+
S && "opacity-50 cursor-not-allowed",
|
|
110
|
+
H
|
|
111
111
|
),
|
|
112
|
-
style: { width:
|
|
113
|
-
disabled:
|
|
112
|
+
style: { width: b },
|
|
113
|
+
disabled: S,
|
|
114
114
|
children: [
|
|
115
|
-
|
|
116
|
-
/* @__PURE__ */
|
|
115
|
+
T ? B(T) : /* @__PURE__ */ t("span", { className: "text-muted-foreground hover:text-foreground", children: U }),
|
|
116
|
+
/* @__PURE__ */ t(me, { className: "opacity-50", size: 10 })
|
|
117
117
|
]
|
|
118
118
|
}
|
|
119
119
|
) }),
|
|
120
|
-
/* @__PURE__ */
|
|
121
|
-
/* @__PURE__ */
|
|
122
|
-
/* @__PURE__ */
|
|
123
|
-
|
|
120
|
+
/* @__PURE__ */ t(ce, { style: { width: b }, className: v("p-0", q), children: /* @__PURE__ */ r(ne, { shouldFilter: !1, children: [
|
|
121
|
+
/* @__PURE__ */ r("div", { className: "relative border-b w-full", children: [
|
|
122
|
+
/* @__PURE__ */ t(
|
|
123
|
+
oe,
|
|
124
124
|
{
|
|
125
|
-
placeholder: `Search ${typeof
|
|
126
|
-
value:
|
|
127
|
-
onValueChange: (
|
|
128
|
-
|
|
125
|
+
placeholder: `Search ${typeof c == "string" ? c.toLowerCase() : "options"}...`,
|
|
126
|
+
value: k,
|
|
127
|
+
onValueChange: (s) => {
|
|
128
|
+
W(s);
|
|
129
129
|
}
|
|
130
130
|
}
|
|
131
131
|
),
|
|
132
|
-
|
|
132
|
+
x && n.length > 0 && /* @__PURE__ */ t("div", { className: "absolute right-2 top-1/2 transform -translate-y-1/2 flex items-center", children: /* @__PURE__ */ t(de, { className: "h-4 w-4 animate-spin" }) })
|
|
133
133
|
] }),
|
|
134
|
-
/* @__PURE__ */
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
!
|
|
138
|
-
/* @__PURE__ */
|
|
139
|
-
|
|
134
|
+
/* @__PURE__ */ r(re, { children: [
|
|
135
|
+
N && /* @__PURE__ */ t("div", { className: "p-4 text-destructive text-center", children: N }),
|
|
136
|
+
x && n.length === 0 && (M || /* @__PURE__ */ t(ue, {})),
|
|
137
|
+
!x && !N && n.length === 0 && (G || /* @__PURE__ */ t(ae, { children: J ?? `No ${typeof c == "string" ? c.toLowerCase() : "options"} found.` })),
|
|
138
|
+
/* @__PURE__ */ t(F, { children: n.map((s) => /* @__PURE__ */ r(
|
|
139
|
+
$,
|
|
140
140
|
{
|
|
141
|
-
value:
|
|
142
|
-
onSelect:
|
|
141
|
+
value: i(s),
|
|
142
|
+
onSelect: X,
|
|
143
143
|
children: [
|
|
144
|
-
|
|
145
|
-
/* @__PURE__ */
|
|
146
|
-
|
|
144
|
+
A(s),
|
|
145
|
+
/* @__PURE__ */ t(
|
|
146
|
+
fe,
|
|
147
147
|
{
|
|
148
|
-
className:
|
|
148
|
+
className: v(
|
|
149
149
|
"ml-auto h-3 w-3",
|
|
150
|
-
|
|
150
|
+
C === i(s) ? "opacity-100" : "opacity-0"
|
|
151
151
|
)
|
|
152
152
|
}
|
|
153
153
|
)
|
|
154
154
|
]
|
|
155
155
|
},
|
|
156
|
-
|
|
156
|
+
i(s)
|
|
157
157
|
)) })
|
|
158
158
|
] })
|
|
159
159
|
] }) })
|
|
160
160
|
] })
|
|
161
161
|
] });
|
|
162
162
|
}
|
|
163
|
-
function
|
|
164
|
-
return /* @__PURE__ */
|
|
165
|
-
/* @__PURE__ */
|
|
166
|
-
/* @__PURE__ */
|
|
167
|
-
/* @__PURE__ */
|
|
168
|
-
/* @__PURE__ */
|
|
163
|
+
function ue() {
|
|
164
|
+
return /* @__PURE__ */ t(F, { children: [1, 2, 3].map((l) => /* @__PURE__ */ t($, { disabled: !0, children: /* @__PURE__ */ r("div", { className: "flex items-center gap-2 w-full", children: [
|
|
165
|
+
/* @__PURE__ */ t("div", { className: "h-6 w-6 rounded-full animate-pulse bg-muted" }),
|
|
166
|
+
/* @__PURE__ */ r("div", { className: "flex flex-col flex-1 gap-1", children: [
|
|
167
|
+
/* @__PURE__ */ t("div", { className: "h-4 w-24 animate-pulse bg-muted rounded" }),
|
|
168
|
+
/* @__PURE__ */ t("div", { className: "h-3 w-16 animate-pulse bg-muted rounded" })
|
|
169
169
|
] })
|
|
170
|
-
] }) },
|
|
170
|
+
] }) }, l)) });
|
|
171
171
|
}
|
|
172
172
|
export {
|
|
173
|
-
|
|
173
|
+
Ee as AsyncSelect
|
|
174
174
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
2
|
+
import { jsx as g } from "react/jsx-runtime";
|
|
3
3
|
import { useRef as i, useEffect as w } from "react";
|
|
4
4
|
const c = {
|
|
5
5
|
FFT_SIZE: 512,
|
|
@@ -19,23 +19,23 @@ const c = {
|
|
|
19
19
|
function F({
|
|
20
20
|
stream: u,
|
|
21
21
|
isRecording: l,
|
|
22
|
-
onClick:
|
|
22
|
+
onClick: S
|
|
23
23
|
}) {
|
|
24
|
-
const
|
|
24
|
+
const a = i(null), f = i(null), d = i(null), I = i(null), h = i(null), R = () => {
|
|
25
25
|
I.current && cancelAnimationFrame(I.current), f.current && f.current.close();
|
|
26
26
|
};
|
|
27
27
|
w(() => R, []), w(() => {
|
|
28
|
-
u && l ?
|
|
28
|
+
u && l ? C() : R();
|
|
29
29
|
}, [u, l]), w(() => {
|
|
30
30
|
const e = () => {
|
|
31
|
-
if (typeof window > "u" || !
|
|
32
|
-
const t = h.current, n =
|
|
31
|
+
if (typeof window > "u" || !a.current || !h.current) return;
|
|
32
|
+
const t = h.current, n = a.current, o = window.devicePixelRatio || 1, r = t.getBoundingClientRect();
|
|
33
33
|
n.width = (r.width - 2) * o, n.height = (r.height - 2) * o, n.style.width = `${r.width - 2}px`, n.style.height = `${r.height - 2}px`;
|
|
34
34
|
};
|
|
35
35
|
if (typeof window < "u")
|
|
36
36
|
return window.addEventListener("resize", e), e(), () => window.removeEventListener("resize", e);
|
|
37
37
|
}, []);
|
|
38
|
-
const
|
|
38
|
+
const C = async () => {
|
|
39
39
|
try {
|
|
40
40
|
const e = new AudioContext();
|
|
41
41
|
f.current = e;
|
|
@@ -44,48 +44,48 @@ function F({
|
|
|
44
44
|
} catch (e) {
|
|
45
45
|
console.error("Error starting visualization:", e);
|
|
46
46
|
}
|
|
47
|
-
},
|
|
47
|
+
}, E = (e) => {
|
|
48
48
|
const t = Math.floor(e * c.COLOR.INTENSITY_RANGE) + c.COLOR.MIN_INTENSITY;
|
|
49
49
|
return `rgb(${t}, ${t}, ${t})`;
|
|
50
|
-
},
|
|
51
|
-
e.fillStyle =
|
|
50
|
+
}, M = (e, t, n, o, r, s) => {
|
|
51
|
+
e.fillStyle = s, e.fillRect(t, n - r, o, r), e.fillRect(t, n, o, r);
|
|
52
52
|
}, p = () => {
|
|
53
53
|
if (!l) return;
|
|
54
|
-
const e =
|
|
54
|
+
const e = a.current, t = e == null ? void 0 : e.getContext("2d");
|
|
55
55
|
if (!e || !t || !d.current) return;
|
|
56
56
|
const n = window.devicePixelRatio || 1;
|
|
57
57
|
t.scale(n, n);
|
|
58
|
-
const o = d.current, r = o.frequencyBinCount,
|
|
59
|
-
I.current = requestAnimationFrame(A), o.getByteFrequencyData(
|
|
60
|
-
const
|
|
58
|
+
const o = d.current, r = o.frequencyBinCount, s = new Uint8Array(r), A = () => {
|
|
59
|
+
I.current = requestAnimationFrame(A), o.getByteFrequencyData(s), t.clearRect(0, 0, e.width / n, e.height / n);
|
|
60
|
+
const T = Math.max(
|
|
61
61
|
c.MIN_BAR_WIDTH,
|
|
62
62
|
e.width / n / r - c.BAR_SPACING
|
|
63
|
-
),
|
|
64
|
-
let
|
|
63
|
+
), _ = e.height / n / 2;
|
|
64
|
+
let m = 0;
|
|
65
65
|
for (let N = 0; N < r; N++) {
|
|
66
|
-
const y =
|
|
66
|
+
const y = s[N] / 255, B = Math.max(
|
|
67
67
|
c.MIN_BAR_HEIGHT,
|
|
68
|
-
y *
|
|
68
|
+
y * _
|
|
69
69
|
);
|
|
70
|
-
|
|
70
|
+
M(
|
|
71
71
|
t,
|
|
72
|
+
m,
|
|
72
73
|
_,
|
|
73
74
|
T,
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
), _ += m + c.BAR_SPACING;
|
|
75
|
+
B,
|
|
76
|
+
E(y)
|
|
77
|
+
), m += T + c.BAR_SPACING;
|
|
78
78
|
}
|
|
79
79
|
};
|
|
80
80
|
A();
|
|
81
81
|
};
|
|
82
|
-
return /* @__PURE__ */ g
|
|
82
|
+
return /* @__PURE__ */ g(
|
|
83
83
|
"div",
|
|
84
84
|
{
|
|
85
85
|
ref: h,
|
|
86
86
|
className: "h-full w-full cursor-pointer rounded-lg bg-background/80 backdrop-blur",
|
|
87
|
-
onClick:
|
|
88
|
-
children: /* @__PURE__ */ g
|
|
87
|
+
onClick: S,
|
|
88
|
+
children: /* @__PURE__ */ g("canvas", { ref: a, className: "h-full w-full" })
|
|
89
89
|
}
|
|
90
90
|
);
|
|
91
91
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import { Root as l, Image as
|
|
2
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
3
|
+
import { Root as l, Image as o, Fallback as s } from "../../node_modules/@radix-ui/react-avatar/dist/index.js";
|
|
4
4
|
import { cn as r } from "../../lib/utils.js";
|
|
5
5
|
function f({
|
|
6
6
|
className: a,
|
|
7
|
-
...
|
|
7
|
+
...e
|
|
8
8
|
}) {
|
|
9
|
-
return /* @__PURE__ */
|
|
9
|
+
return /* @__PURE__ */ t(
|
|
10
10
|
l,
|
|
11
11
|
{
|
|
12
12
|
"data-slot": "avatar",
|
|
@@ -14,41 +14,41 @@ function f({
|
|
|
14
14
|
"relative flex size-8 shrink-0 overflow-hidden rounded-full",
|
|
15
15
|
a
|
|
16
16
|
),
|
|
17
|
-
...
|
|
17
|
+
...e
|
|
18
18
|
}
|
|
19
19
|
);
|
|
20
20
|
}
|
|
21
|
-
function
|
|
21
|
+
function c({
|
|
22
22
|
className: a,
|
|
23
|
-
...
|
|
23
|
+
...e
|
|
24
24
|
}) {
|
|
25
|
-
return /* @__PURE__ */
|
|
26
|
-
|
|
25
|
+
return /* @__PURE__ */ t(
|
|
26
|
+
o,
|
|
27
27
|
{
|
|
28
28
|
"data-slot": "avatar-image",
|
|
29
29
|
className: r("aspect-square size-full", a),
|
|
30
|
-
...
|
|
30
|
+
...e
|
|
31
31
|
}
|
|
32
32
|
);
|
|
33
33
|
}
|
|
34
|
-
function
|
|
34
|
+
function m({
|
|
35
35
|
className: a,
|
|
36
|
-
...
|
|
36
|
+
...e
|
|
37
37
|
}) {
|
|
38
|
-
return /* @__PURE__ */
|
|
39
|
-
|
|
38
|
+
return /* @__PURE__ */ t(
|
|
39
|
+
s,
|
|
40
40
|
{
|
|
41
41
|
"data-slot": "avatar-fallback",
|
|
42
42
|
className: r(
|
|
43
43
|
"bg-muted flex size-full items-center justify-center rounded-full",
|
|
44
44
|
a
|
|
45
45
|
),
|
|
46
|
-
...
|
|
46
|
+
...e
|
|
47
47
|
}
|
|
48
48
|
);
|
|
49
49
|
}
|
|
50
50
|
export {
|
|
51
51
|
f as Avatar,
|
|
52
|
-
|
|
53
|
-
|
|
52
|
+
m as AvatarFallback,
|
|
53
|
+
c as AvatarImage
|
|
54
54
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import { Root as
|
|
4
|
-
import { cva as
|
|
5
|
-
import { cn as
|
|
6
|
-
const
|
|
2
|
+
import { jsx as a } from "react/jsx-runtime";
|
|
3
|
+
import { Root as o } from "../../node_modules/@radix-ui/react-slot/dist/index.js";
|
|
4
|
+
import { cva as n } from "../../node_modules/class-variance-authority/dist/index.js";
|
|
5
|
+
import { cn as s } from "../../lib/utils.js";
|
|
6
|
+
const d = n(
|
|
7
7
|
"inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",
|
|
8
8
|
{
|
|
9
9
|
variants: {
|
|
@@ -25,17 +25,16 @@ function b({
|
|
|
25
25
|
asChild: t = !1,
|
|
26
26
|
...i
|
|
27
27
|
}) {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
a,
|
|
28
|
+
return /* @__PURE__ */ a(
|
|
29
|
+
t ? o : "span",
|
|
31
30
|
{
|
|
32
31
|
"data-slot": "badge",
|
|
33
|
-
className: d(
|
|
32
|
+
className: s(d({ variant: e }), r),
|
|
34
33
|
...i
|
|
35
34
|
}
|
|
36
35
|
);
|
|
37
36
|
}
|
|
38
37
|
export {
|
|
39
38
|
b as Badge,
|
|
40
|
-
|
|
39
|
+
d as badgeVariants
|
|
41
40
|
};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
2
|
+
import { jsx as a, jsxs as n } from "react/jsx-runtime";
|
|
3
3
|
import { Root as o } from "../../node_modules/@radix-ui/react-slot/dist/index.js";
|
|
4
4
|
import { cn as t } from "../../lib/utils.js";
|
|
5
5
|
import i from "../../node_modules/lucide-react/dist/esm/icons/chevron-right.js";
|
|
6
6
|
import l from "../../node_modules/lucide-react/dist/esm/icons/ellipsis.js";
|
|
7
|
-
function
|
|
8
|
-
return /* @__PURE__ */ a
|
|
7
|
+
function f({ ...r }) {
|
|
8
|
+
return /* @__PURE__ */ a("nav", { "aria-label": "breadcrumb", "data-slot": "breadcrumb", ...r });
|
|
9
9
|
}
|
|
10
|
-
function
|
|
11
|
-
return /* @__PURE__ */ a
|
|
10
|
+
function g({ className: r, ...e }) {
|
|
11
|
+
return /* @__PURE__ */ a(
|
|
12
12
|
"ol",
|
|
13
13
|
{
|
|
14
14
|
"data-slot": "breadcrumb-list",
|
|
@@ -21,7 +21,7 @@ function f({ className: r, ...e }) {
|
|
|
21
21
|
);
|
|
22
22
|
}
|
|
23
23
|
function x({ className: r, ...e }) {
|
|
24
|
-
return /* @__PURE__ */ a
|
|
24
|
+
return /* @__PURE__ */ a(
|
|
25
25
|
"li",
|
|
26
26
|
{
|
|
27
27
|
"data-slot": "breadcrumb-item",
|
|
@@ -30,14 +30,13 @@ function x({ className: r, ...e }) {
|
|
|
30
30
|
}
|
|
31
31
|
);
|
|
32
32
|
}
|
|
33
|
-
function
|
|
33
|
+
function h({
|
|
34
34
|
asChild: r,
|
|
35
35
|
className: e,
|
|
36
36
|
...s
|
|
37
37
|
}) {
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
n,
|
|
38
|
+
return /* @__PURE__ */ a(
|
|
39
|
+
r ? o : "a",
|
|
41
40
|
{
|
|
42
41
|
"data-slot": "breadcrumb-link",
|
|
43
42
|
className: t("hover:text-foreground transition-colors", e),
|
|
@@ -45,8 +44,8 @@ function j({
|
|
|
45
44
|
}
|
|
46
45
|
);
|
|
47
46
|
}
|
|
48
|
-
function
|
|
49
|
-
return /* @__PURE__ */ a
|
|
47
|
+
function N({ className: r, ...e }) {
|
|
48
|
+
return /* @__PURE__ */ a(
|
|
50
49
|
"span",
|
|
51
50
|
{
|
|
52
51
|
"data-slot": "breadcrumb-page",
|
|
@@ -58,12 +57,12 @@ function g({ className: r, ...e }) {
|
|
|
58
57
|
}
|
|
59
58
|
);
|
|
60
59
|
}
|
|
61
|
-
function
|
|
60
|
+
function B({
|
|
62
61
|
children: r,
|
|
63
62
|
className: e,
|
|
64
63
|
...s
|
|
65
64
|
}) {
|
|
66
|
-
return /* @__PURE__ */ a
|
|
65
|
+
return /* @__PURE__ */ a(
|
|
67
66
|
"li",
|
|
68
67
|
{
|
|
69
68
|
"data-slot": "breadcrumb-separator",
|
|
@@ -71,15 +70,15 @@ function h({
|
|
|
71
70
|
"aria-hidden": "true",
|
|
72
71
|
className: t("[&>svg]:size-3.5", e),
|
|
73
72
|
...s,
|
|
74
|
-
children: r ?? /* @__PURE__ */ a
|
|
73
|
+
children: r ?? /* @__PURE__ */ a(i, {})
|
|
75
74
|
}
|
|
76
75
|
);
|
|
77
76
|
}
|
|
78
|
-
function
|
|
77
|
+
function k({
|
|
79
78
|
className: r,
|
|
80
79
|
...e
|
|
81
80
|
}) {
|
|
82
|
-
return /* @__PURE__ */
|
|
81
|
+
return /* @__PURE__ */ n(
|
|
83
82
|
"span",
|
|
84
83
|
{
|
|
85
84
|
"data-slot": "breadcrumb-ellipsis",
|
|
@@ -88,18 +87,18 @@ function N({
|
|
|
88
87
|
className: t("flex size-9 items-center justify-center", r),
|
|
89
88
|
...e,
|
|
90
89
|
children: [
|
|
91
|
-
/* @__PURE__ */ a
|
|
92
|
-
/* @__PURE__ */ a
|
|
90
|
+
/* @__PURE__ */ a(l, { className: "size-4" }),
|
|
91
|
+
/* @__PURE__ */ a("span", { className: "sr-only", children: "More" })
|
|
93
92
|
]
|
|
94
93
|
}
|
|
95
94
|
);
|
|
96
95
|
}
|
|
97
96
|
export {
|
|
98
|
-
|
|
99
|
-
|
|
97
|
+
f as Breadcrumb,
|
|
98
|
+
k as BreadcrumbEllipsis,
|
|
100
99
|
x as BreadcrumbItem,
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
100
|
+
h as BreadcrumbLink,
|
|
101
|
+
g as BreadcrumbList,
|
|
102
|
+
N as BreadcrumbPage,
|
|
103
|
+
B as BreadcrumbSeparator
|
|
105
104
|
};
|