@tetrascience-npm/tetrascience-react-ui 0.7.0 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +58 -4
- package/dist/ai/attachments.cjs +2 -0
- package/dist/ai/attachments.cjs.map +1 -0
- package/dist/ai/attachments.js +224 -0
- package/dist/ai/attachments.js.map +1 -0
- package/dist/ai/chain-of-thought.cjs +2 -0
- package/dist/ai/chain-of-thought.cjs.map +1 -0
- package/dist/ai/chain-of-thought.js +145 -0
- package/dist/ai/chain-of-thought.js.map +1 -0
- package/dist/ai/confirmation.cjs +2 -0
- package/dist/ai/confirmation.cjs.map +1 -0
- package/dist/ai/confirmation.js +109 -0
- package/dist/ai/confirmation.js.map +1 -0
- package/dist/ai/context.cjs +2 -0
- package/dist/ai/context.cjs.map +1 -0
- package/dist/ai/context.js +267 -0
- package/dist/ai/context.js.map +1 -0
- package/dist/ai/conversation.cjs +4 -0
- package/dist/ai/conversation.cjs.map +1 -0
- package/dist/ai/conversation.js +108 -0
- package/dist/ai/conversation.js.map +1 -0
- package/dist/ai/inline-citation.cjs +2 -0
- package/dist/ai/inline-citation.cjs.map +1 -0
- package/dist/ai/inline-citation.js +182 -0
- package/dist/ai/inline-citation.js.map +1 -0
- package/dist/ai/message.cjs +2 -0
- package/dist/ai/message.cjs.map +1 -0
- package/dist/ai/message.js +237 -0
- package/dist/ai/message.js.map +1 -0
- package/dist/ai/model-selector.cjs +2 -0
- package/dist/ai/model-selector.cjs.map +1 -0
- package/dist/ai/model-selector.js +77 -0
- package/dist/ai/model-selector.js.map +1 -0
- package/dist/ai/prompt-input.cjs +2 -0
- package/dist/ai/prompt-input.cjs.map +1 -0
- package/dist/ai/prompt-input.js +776 -0
- package/dist/ai/prompt-input.js.map +1 -0
- package/dist/ai/queue.cjs +2 -0
- package/dist/ai/queue.cjs.map +1 -0
- package/dist/ai/queue.js +209 -0
- package/dist/ai/queue.js.map +1 -0
- package/dist/ai/reasoning.cjs +2 -0
- package/dist/ai/reasoning.cjs.map +1 -0
- package/dist/ai/reasoning.js +129 -0
- package/dist/ai/reasoning.js.map +1 -0
- package/dist/ai/shimmer.cjs +2 -0
- package/dist/ai/shimmer.cjs.map +1 -0
- package/dist/ai/shimmer.js +49 -0
- package/dist/ai/shimmer.js.map +1 -0
- package/dist/ai/sources.cjs +2 -0
- package/dist/ai/sources.cjs.map +1 -0
- package/dist/ai/sources.js +54 -0
- package/dist/ai/sources.js.map +1 -0
- package/dist/ai/speech-input.cjs +2 -0
- package/dist/ai/speech-input.cjs.map +1 -0
- package/dist/ai/speech-input.js +123 -0
- package/dist/ai/speech-input.js.map +1 -0
- package/dist/ai/stream-status.cjs +2 -0
- package/dist/ai/stream-status.cjs.map +1 -0
- package/dist/ai/stream-status.js +108 -0
- package/dist/ai/stream-status.js.map +1 -0
- package/dist/ai/suggestion.cjs +2 -0
- package/dist/ai/suggestion.cjs.map +1 -0
- package/dist/ai/suggestion.js +38 -0
- package/dist/ai/suggestion.js.map +1 -0
- package/dist/ai/task.cjs +2 -0
- package/dist/ai/task.cjs.map +1 -0
- package/dist/ai/task.js +101 -0
- package/dist/ai/task.js.map +1 -0
- package/dist/ai/tool.cjs +2 -0
- package/dist/ai/tool.cjs.map +1 -0
- package/dist/ai/tool.js +139 -0
- package/dist/ai/tool.js.map +1 -0
- package/dist/charts/AreaPlot.cjs +2 -0
- package/dist/charts/AreaPlot.cjs.map +1 -0
- package/dist/charts/AreaPlot.js +5 -0
- package/dist/charts/AreaPlot.js.map +1 -0
- package/dist/charts/BarChart.cjs +2 -0
- package/dist/charts/BarChart.cjs.map +1 -0
- package/dist/charts/BarChart.js +5 -0
- package/dist/charts/BarChart.js.map +1 -0
- package/dist/charts/BoxPlot.cjs +2 -0
- package/dist/charts/BoxPlot.cjs.map +1 -0
- package/dist/charts/BoxPlot.js +5 -0
- package/dist/charts/BoxPlot.js.map +1 -0
- package/dist/charts/ChartTooltip.cjs +2 -0
- package/dist/charts/ChartTooltip.cjs.map +1 -0
- package/dist/charts/ChartTooltip.js +8 -0
- package/dist/charts/ChartTooltip.js.map +1 -0
- package/dist/charts/Chromatogram.cjs +2 -0
- package/dist/charts/Chromatogram.cjs.map +1 -0
- package/dist/charts/Chromatogram.js +5 -0
- package/dist/charts/Chromatogram.js.map +1 -0
- package/dist/charts/Electropherogram.cjs +2 -0
- package/dist/charts/Electropherogram.cjs.map +1 -0
- package/dist/charts/Electropherogram.js +5 -0
- package/dist/charts/Electropherogram.js.map +1 -0
- package/dist/charts/Histogram.cjs +2 -0
- package/dist/charts/Histogram.cjs.map +1 -0
- package/dist/charts/Histogram.js +5 -0
- package/dist/charts/Histogram.js.map +1 -0
- package/dist/charts/LinePlot.cjs +2 -0
- package/dist/charts/LinePlot.cjs.map +1 -0
- package/dist/charts/LinePlot.js +5 -0
- package/dist/charts/LinePlot.js.map +1 -0
- package/dist/charts/PieChart.cjs +2 -0
- package/dist/charts/PieChart.cjs.map +1 -0
- package/dist/charts/PieChart.js +5 -0
- package/dist/charts/PieChart.js.map +1 -0
- package/dist/charts/PlateMap.cjs +2 -0
- package/dist/charts/PlateMap.cjs.map +1 -0
- package/dist/charts/PlateMap.js +5 -0
- package/dist/charts/PlateMap.js.map +1 -0
- package/dist/charts/ScatterPlot.cjs +2 -0
- package/dist/charts/ScatterPlot.cjs.map +1 -0
- package/dist/charts/ScatterPlot.js +5 -0
- package/dist/charts/ScatterPlot.js.map +1 -0
- package/dist/charts/ScatterPlotInteractive.cjs +2 -0
- package/dist/charts/ScatterPlotInteractive.cjs.map +1 -0
- package/dist/charts/ScatterPlotInteractive.js +14 -0
- package/dist/charts/ScatterPlotInteractive.js.map +1 -0
- package/dist/charts/StackedChromatogram.cjs +2 -0
- package/dist/charts/StackedChromatogram.cjs.map +1 -0
- package/dist/charts/StackedChromatogram.js +7 -0
- package/dist/charts/StackedChromatogram.js.map +1 -0
- package/dist/components/ai/attachments.d.ts +54 -0
- package/dist/components/ai/chain-of-thought.d.ts +56 -0
- package/dist/components/ai/confirmation.d.ts +47 -0
- package/dist/components/ai/context.d.ts +40 -0
- package/dist/components/ai/conversation.d.ts +23 -0
- package/dist/components/ai/inline-citation.d.ts +38 -0
- package/dist/components/ai/message.d.ts +37 -0
- package/dist/components/ai/model-selector.d.ts +36 -0
- package/dist/components/ai/prompt-input.d.ts +158 -0
- package/dist/components/ai/queue.d.ts +72 -0
- package/dist/components/ai/reasoning.d.ts +26 -0
- package/dist/components/ai/shimmer.d.ts +17 -0
- package/dist/components/ai/sources.d.ts +12 -0
- package/dist/components/ai/speech-input.d.ts +54 -0
- package/dist/components/ai/stream-status.d.ts +66 -0
- package/dist/components/ai/streamdown-code-plugin.cjs +2 -0
- package/dist/components/ai/streamdown-code-plugin.cjs.map +1 -0
- package/dist/components/ai/streamdown-code-plugin.d.ts +2 -0
- package/dist/components/ai/streamdown-code-plugin.js +42 -0
- package/dist/components/ai/streamdown-code-plugin.js.map +1 -0
- package/dist/components/ai/streamdown-plugins.cjs +2 -0
- package/dist/components/ai/streamdown-plugins.cjs.map +1 -0
- package/dist/components/ai/streamdown-plugins.d.ts +2 -0
- package/dist/components/ai/streamdown-plugins.js +14 -0
- package/dist/components/ai/streamdown-plugins.js.map +1 -0
- package/dist/components/ai/suggestion.d.ts +9 -0
- package/dist/components/ai/task.d.ts +16 -0
- package/dist/components/ai/tool.d.ts +33 -0
- package/dist/components/ai/use-streamdown-plugins.cjs +2 -0
- package/dist/components/ai/use-streamdown-plugins.cjs.map +1 -0
- package/dist/components/ai/use-streamdown-plugins.d.ts +8 -0
- package/dist/components/ai/use-streamdown-plugins.js +25 -0
- package/dist/components/ai/use-streamdown-plugins.js.map +1 -0
- package/dist/components/charts/AreaPlot/AreaPlot.cjs +2 -0
- package/dist/components/charts/AreaPlot/AreaPlot.cjs.map +1 -0
- package/dist/components/charts/AreaPlot/AreaPlot.d.ts +39 -0
- package/dist/components/charts/AreaPlot/AreaPlot.js +270 -0
- package/dist/components/charts/AreaPlot/AreaPlot.js.map +1 -0
- package/dist/components/charts/AreaPlot/index.d.ts +2 -0
- package/dist/components/charts/BarChart/BarChart.cjs +2 -0
- package/dist/components/charts/BarChart/BarChart.cjs.map +1 -0
- package/dist/components/charts/BarChart/BarChart.d.ts +44 -0
- package/dist/components/charts/BarChart/BarChart.js +219 -0
- package/dist/components/charts/BarChart/BarChart.js.map +1 -0
- package/dist/components/charts/BarChart/index.d.ts +2 -0
- package/dist/components/charts/BoxPlot/BoxPlot.cjs +2 -0
- package/dist/components/charts/BoxPlot/BoxPlot.cjs.map +1 -0
- package/dist/components/charts/BoxPlot/BoxPlot.d.ts +33 -0
- package/dist/components/charts/BoxPlot/BoxPlot.js +208 -0
- package/dist/components/charts/BoxPlot/BoxPlot.js.map +1 -0
- package/dist/components/charts/BoxPlot/index.d.ts +2 -0
- package/dist/components/charts/ChartTooltip/ChartTooltip.cjs +1 -1
- package/dist/components/charts/ChartTooltip/ChartTooltip.cjs.map +1 -1
- package/dist/components/charts/ChartTooltip/ChartTooltip.d.ts +71 -0
- package/dist/components/charts/ChartTooltip/ChartTooltip.js +22 -22
- package/dist/components/charts/ChartTooltip/ChartTooltip.js.map +1 -1
- package/dist/components/charts/ChartTooltip/index.d.ts +2 -0
- package/dist/components/charts/ChartTooltip/lines.d.ts +54 -0
- package/dist/components/charts/Chromatogram/Chromatogram.cjs +1 -1
- package/dist/components/charts/Chromatogram/Chromatogram.cjs.map +1 -1
- package/dist/components/charts/Chromatogram/Chromatogram.d.ts +5 -0
- package/dist/components/charts/Chromatogram/Chromatogram.js +232 -170
- package/dist/components/charts/Chromatogram/Chromatogram.js.map +1 -1
- package/dist/components/charts/Chromatogram/annotations.cjs +2 -0
- package/dist/components/charts/Chromatogram/annotations.cjs.map +1 -0
- package/dist/components/charts/Chromatogram/annotations.d.ts +50 -0
- package/dist/components/charts/Chromatogram/annotations.js +137 -0
- package/dist/components/charts/Chromatogram/annotations.js.map +1 -0
- package/dist/components/charts/Chromatogram/boundaryMarkers.cjs +2 -0
- package/dist/components/charts/Chromatogram/boundaryMarkers.cjs.map +1 -0
- package/dist/components/charts/Chromatogram/boundaryMarkers.d.ts +14 -0
- package/dist/components/charts/Chromatogram/boundaryMarkers.js +34 -0
- package/dist/components/charts/Chromatogram/boundaryMarkers.js.map +1 -0
- package/dist/components/charts/Chromatogram/constants.cjs +2 -0
- package/dist/components/charts/Chromatogram/constants.cjs.map +1 -0
- package/dist/components/charts/Chromatogram/constants.d.ts +46 -0
- package/dist/components/charts/Chromatogram/constants.js +36 -0
- package/dist/components/charts/Chromatogram/constants.js.map +1 -0
- package/dist/components/charts/Chromatogram/dataProcessing.cjs +2 -0
- package/dist/components/charts/Chromatogram/dataProcessing.cjs.map +1 -0
- package/dist/components/charts/Chromatogram/dataProcessing.d.ts +49 -0
- package/dist/components/charts/Chromatogram/dataProcessing.js +90 -0
- package/dist/components/charts/Chromatogram/dataProcessing.js.map +1 -0
- package/dist/components/charts/Chromatogram/index.d.ts +2 -0
- package/dist/components/charts/Chromatogram/peakDetection.cjs.map +1 -0
- package/dist/components/charts/Chromatogram/peakDetection.d.ts +33 -0
- package/dist/components/charts/Chromatogram/peakDetection.js.map +1 -0
- package/dist/components/charts/Chromatogram/plotBuilder.cjs +2 -0
- package/dist/components/charts/Chromatogram/plotBuilder.cjs.map +1 -0
- package/dist/components/charts/Chromatogram/plotBuilder.d.ts +58 -0
- package/dist/components/charts/Chromatogram/plotBuilder.js +216 -0
- package/dist/components/charts/Chromatogram/plotBuilder.js.map +1 -0
- package/dist/components/charts/Chromatogram/regionOverlays.cjs +2 -0
- package/dist/components/charts/Chromatogram/regionOverlays.cjs.map +1 -0
- package/dist/components/charts/Chromatogram/regionOverlays.d.ts +9 -0
- package/dist/components/charts/Chromatogram/regionOverlays.js +26 -0
- package/dist/components/charts/Chromatogram/regionOverlays.js.map +1 -0
- package/dist/components/charts/Chromatogram/types.d.ts +258 -0
- package/dist/components/charts/Electropherogram/Electropherogram.cjs +2 -0
- package/dist/components/charts/Electropherogram/Electropherogram.cjs.map +1 -0
- package/dist/components/charts/Electropherogram/Electropherogram.d.ts +22 -0
- package/dist/components/charts/Electropherogram/Electropherogram.js +180 -0
- package/dist/components/charts/Electropherogram/Electropherogram.js.map +1 -0
- package/dist/components/charts/Electropherogram/index.d.ts +2 -0
- package/dist/components/charts/Histogram/Histogram.cjs +1 -1
- package/dist/components/charts/Histogram/Histogram.cjs.map +1 -1
- package/dist/components/charts/Histogram/Histogram.d.ts +36 -0
- package/dist/components/charts/Histogram/Histogram.js +107 -108
- package/dist/components/charts/Histogram/Histogram.js.map +1 -1
- package/dist/components/charts/Histogram/index.d.ts +2 -0
- package/dist/components/charts/LinePlot/LinePlot.cjs +2 -0
- package/dist/components/charts/LinePlot/LinePlot.cjs.map +1 -0
- package/dist/components/charts/LinePlot/LinePlot.d.ts +45 -0
- package/dist/components/charts/LinePlot/LinePlot.js +224 -0
- package/dist/components/charts/LinePlot/LinePlot.js.map +1 -0
- package/dist/components/charts/LinePlot/index.d.ts +2 -0
- package/dist/components/charts/PieChart/PieChart.cjs +1 -1
- package/dist/components/charts/PieChart/PieChart.cjs.map +1 -1
- package/dist/components/charts/PieChart/PieChart.d.ts +20 -0
- package/dist/components/charts/PieChart/PieChart.js +62 -61
- package/dist/components/charts/PieChart/PieChart.js.map +1 -1
- package/dist/components/charts/PieChart/index.d.ts +2 -0
- package/dist/components/charts/PlateMap/PlateMap.cjs +1 -1
- package/dist/components/charts/PlateMap/PlateMap.cjs.map +1 -1
- package/dist/components/charts/PlateMap/PlateMap.d.ts +29 -0
- package/dist/components/charts/PlateMap/PlateMap.js +246 -242
- package/dist/components/charts/PlateMap/PlateMap.js.map +1 -1
- package/dist/components/charts/PlateMap/constants.d.ts +75 -0
- package/dist/components/charts/PlateMap/index.d.ts +2 -0
- package/dist/components/charts/PlateMap/types.d.ts +322 -0
- package/dist/components/charts/PlateMap/utils.d.ts +133 -0
- package/dist/components/charts/ScatterPlot/ScatterPlot.cjs +2 -0
- package/dist/components/charts/ScatterPlot/ScatterPlot.cjs.map +1 -0
- package/dist/components/charts/ScatterPlot/ScatterPlot.d.ts +43 -0
- package/dist/components/charts/ScatterPlot/ScatterPlot.js +252 -0
- package/dist/components/charts/ScatterPlot/ScatterPlot.js.map +1 -0
- package/dist/components/charts/ScatterPlot/index.d.ts +2 -0
- package/dist/components/charts/ScatterPlotInteractive/ScatterPlotInteractive.cjs +2 -0
- package/dist/components/charts/ScatterPlotInteractive/ScatterPlotInteractive.cjs.map +1 -0
- package/dist/components/charts/ScatterPlotInteractive/ScatterPlotInteractive.d.ts +25 -0
- package/dist/components/charts/ScatterPlotInteractive/ScatterPlotInteractive.js +215 -0
- package/dist/components/charts/ScatterPlotInteractive/ScatterPlotInteractive.js.map +1 -0
- package/dist/components/charts/ScatterPlotInteractive/constants.cjs +2 -0
- package/dist/components/charts/ScatterPlotInteractive/constants.cjs.map +1 -0
- package/dist/components/charts/ScatterPlotInteractive/constants.d.ts +50 -0
- package/dist/components/charts/ScatterPlotInteractive/constants.js +38 -0
- package/dist/components/charts/ScatterPlotInteractive/constants.js.map +1 -0
- package/dist/components/charts/ScatterPlotInteractive/index.d.ts +3 -0
- package/dist/components/charts/ScatterPlotInteractive/types.d.ts +226 -0
- package/dist/components/charts/ScatterPlotInteractive/utils.cjs +2 -0
- package/dist/components/charts/ScatterPlotInteractive/utils.cjs.map +1 -0
- package/dist/components/charts/ScatterPlotInteractive/utils.d.ts +72 -0
- package/dist/components/charts/ScatterPlotInteractive/utils.js +261 -0
- package/dist/components/charts/ScatterPlotInteractive/utils.js.map +1 -0
- package/dist/components/charts/StackedChromatogram/StackedChromatogram.cjs +2 -0
- package/dist/components/charts/StackedChromatogram/StackedChromatogram.cjs.map +1 -0
- package/dist/components/charts/StackedChromatogram/StackedChromatogram.d.ts +3 -0
- package/dist/components/charts/StackedChromatogram/StackedChromatogram.js +40 -0
- package/dist/components/charts/StackedChromatogram/StackedChromatogram.js.map +1 -0
- package/dist/components/charts/StackedChromatogram/index.d.ts +3 -0
- package/dist/components/charts/StackedChromatogram/transforms.cjs +2 -0
- package/dist/components/charts/StackedChromatogram/transforms.cjs.map +1 -0
- package/dist/components/charts/StackedChromatogram/transforms.d.ts +9 -0
- package/dist/components/charts/StackedChromatogram/transforms.js +31 -0
- package/dist/components/charts/StackedChromatogram/transforms.js.map +1 -0
- package/dist/components/charts/StackedChromatogram/types.d.ts +26 -0
- package/dist/components/charts/plotly-loader.cjs +2 -0
- package/dist/components/charts/plotly-loader.cjs.map +1 -0
- package/dist/components/charts/plotly-loader.d.ts +29 -0
- package/dist/components/charts/plotly-loader.js +22 -0
- package/dist/components/charts/plotly-loader.js.map +1 -0
- package/dist/components/composed/AssistantLayout/AssistantLayout.cjs +2 -0
- package/dist/components/composed/AssistantLayout/AssistantLayout.cjs.map +1 -0
- package/dist/components/composed/AssistantLayout/AssistantLayout.d.ts +63 -0
- package/dist/components/composed/AssistantLayout/AssistantLayout.js +142 -0
- package/dist/components/composed/AssistantLayout/AssistantLayout.js.map +1 -0
- package/dist/components/composed/AssistantLayout/dockLayout.cjs +2 -0
- package/dist/components/composed/AssistantLayout/dockLayout.cjs.map +1 -0
- package/dist/components/composed/AssistantLayout/dockLayout.d.ts +15 -0
- package/dist/components/composed/AssistantLayout/dockLayout.js +10 -0
- package/dist/components/composed/AssistantLayout/dockLayout.js.map +1 -0
- package/dist/components/composed/AssistantLayout/index.d.ts +3 -0
- package/dist/components/composed/Chat/Chat.cjs +1 -1
- package/dist/components/composed/Chat/Chat.cjs.map +1 -1
- package/dist/components/composed/Chat/Chat.d.ts +35 -0
- package/dist/components/composed/Chat/Chat.js +28 -28
- package/dist/components/composed/Chat/Chat.js.map +1 -1
- package/dist/components/composed/Chat/index.d.ts +2 -0
- package/dist/components/composed/ConfirmDialog/ConfirmDialog.cjs +1 -1
- package/dist/components/composed/ConfirmDialog/ConfirmDialog.cjs.map +1 -1
- package/dist/components/composed/ConfirmDialog/ConfirmDialog.d.ts +23 -0
- package/dist/components/composed/ConfirmDialog/ConfirmDialog.js +33 -29
- package/dist/components/composed/ConfirmDialog/ConfirmDialog.js.map +1 -1
- package/dist/components/composed/ConfirmDialog/index.d.ts +1 -0
- package/dist/components/composed/DataAppShell/CollapseButton.cjs +2 -0
- package/dist/components/composed/DataAppShell/CollapseButton.cjs.map +1 -0
- package/dist/components/composed/DataAppShell/CollapseButton.d.ts +23 -0
- package/dist/components/composed/DataAppShell/CollapseButton.js +42 -0
- package/dist/components/composed/DataAppShell/CollapseButton.js.map +1 -0
- package/dist/components/composed/DataAppShell/DataAppShell.cjs +1 -1
- package/dist/components/composed/DataAppShell/DataAppShell.cjs.map +1 -1
- package/dist/components/composed/DataAppShell/DataAppShell.d.ts +88 -0
- package/dist/components/composed/DataAppShell/DataAppShell.js +350 -328
- package/dist/components/composed/DataAppShell/DataAppShell.js.map +1 -1
- package/dist/components/composed/DataAppShell/PrimaryNav.cjs +2 -0
- package/dist/components/composed/DataAppShell/PrimaryNav.cjs.map +1 -0
- package/dist/components/composed/DataAppShell/PrimaryNav.d.ts +64 -0
- package/dist/components/composed/DataAppShell/PrimaryNav.js +268 -0
- package/dist/components/composed/DataAppShell/PrimaryNav.js.map +1 -0
- package/dist/components/composed/DataAppShell/RightPanel.cjs +2 -0
- package/dist/components/composed/DataAppShell/RightPanel.cjs.map +1 -0
- package/dist/components/composed/DataAppShell/RightPanel.d.ts +95 -0
- package/dist/components/composed/DataAppShell/RightPanel.js +282 -0
- package/dist/components/composed/DataAppShell/RightPanel.js.map +1 -0
- package/dist/components/composed/DataAppShell/SecondaryNav.cjs +2 -0
- package/dist/components/composed/DataAppShell/SecondaryNav.cjs.map +1 -0
- package/dist/components/composed/DataAppShell/SecondaryNav.d.ts +63 -0
- package/dist/components/composed/DataAppShell/SecondaryNav.js +364 -0
- package/dist/components/composed/DataAppShell/SecondaryNav.js.map +1 -0
- package/dist/components/composed/DataAppShell/ShellContext.cjs +2 -0
- package/dist/components/composed/DataAppShell/ShellContext.cjs.map +1 -0
- package/dist/components/composed/DataAppShell/ShellContext.d.ts +20 -0
- package/dist/components/composed/DataAppShell/ShellContext.js +23 -0
- package/dist/components/composed/DataAppShell/ShellContext.js.map +1 -0
- package/dist/components/composed/DataAppShell/index.d.ts +12 -0
- package/dist/components/composed/EmptyState/EmptyState.d.ts +12 -0
- package/dist/components/composed/EmptyState/index.d.ts +2 -0
- package/dist/components/composed/FormPatterns/FormSection.cjs +1 -1
- package/dist/components/composed/FormPatterns/FormSection.cjs.map +1 -1
- package/dist/components/composed/FormPatterns/FormSection.d.ts +7 -0
- package/dist/components/composed/FormPatterns/FormSection.js +2 -2
- package/dist/components/composed/FormPatterns/index.d.ts +1 -0
- package/dist/components/composed/MoleculeStructure/MoleculeStructure.cjs +2 -0
- package/dist/components/composed/MoleculeStructure/MoleculeStructure.cjs.map +1 -0
- package/dist/components/composed/MoleculeStructure/MoleculeStructure.d.ts +43 -0
- package/dist/components/composed/MoleculeStructure/MoleculeStructure.js +87 -0
- package/dist/components/composed/MoleculeStructure/MoleculeStructure.js.map +1 -0
- package/dist/components/composed/MoleculeStructure/index.d.ts +3 -0
- package/dist/components/composed/MoleculeStructure/rdkit-loader.cjs +2 -0
- package/dist/components/composed/MoleculeStructure/rdkit-loader.cjs.map +1 -0
- package/dist/components/composed/MoleculeStructure/rdkit-loader.d.ts +104 -0
- package/dist/components/composed/MoleculeStructure/rdkit-loader.js +89 -0
- package/dist/components/composed/MoleculeStructure/rdkit-loader.js.map +1 -0
- package/dist/components/composed/MoleculeStructure/use-rdkit.cjs +2 -0
- package/dist/components/composed/MoleculeStructure/use-rdkit.cjs.map +1 -0
- package/dist/components/composed/MoleculeStructure/use-rdkit.d.ts +29 -0
- package/dist/components/composed/MoleculeStructure/use-rdkit.js +19 -0
- package/dist/components/composed/MoleculeStructure/use-rdkit.js.map +1 -0
- package/dist/components/composed/PlateMapEditor/ManifestFilterPopover.cjs +1 -1
- package/dist/components/composed/PlateMapEditor/ManifestFilterPopover.cjs.map +1 -1
- package/dist/components/composed/PlateMapEditor/ManifestFilterPopover.d.ts +12 -0
- package/dist/components/composed/PlateMapEditor/ManifestFilterPopover.js +21 -21
- package/dist/components/composed/PlateMapEditor/ManifestFilterPopover.js.map +1 -1
- package/dist/components/composed/PlateMapEditor/PlateMapActionsMenu.cjs +1 -1
- package/dist/components/composed/PlateMapEditor/PlateMapActionsMenu.cjs.map +1 -1
- package/dist/components/composed/PlateMapEditor/PlateMapActionsMenu.d.ts +22 -0
- package/dist/components/composed/PlateMapEditor/PlateMapActionsMenu.js +34 -34
- package/dist/components/composed/PlateMapEditor/PlateMapActionsMenu.js.map +1 -1
- package/dist/components/composed/PlateMapEditor/PlateMapEditor.cjs +1 -1
- package/dist/components/composed/PlateMapEditor/PlateMapEditor.cjs.map +1 -1
- package/dist/components/composed/PlateMapEditor/PlateMapEditor.d.ts +106 -0
- package/dist/components/composed/PlateMapEditor/PlateMapEditor.js +2 -2
- package/dist/components/composed/PlateMapEditor/PlateMapForm.cjs +1 -1
- package/dist/components/composed/PlateMapEditor/PlateMapForm.cjs.map +1 -1
- package/dist/components/composed/PlateMapEditor/PlateMapForm.d.ts +30 -0
- package/dist/components/composed/PlateMapEditor/PlateMapForm.js +1 -1
- package/dist/components/composed/PlateMapEditor/PlateMapGrid.cjs +1 -1
- package/dist/components/composed/PlateMapEditor/PlateMapGrid.cjs.map +1 -1
- package/dist/components/composed/PlateMapEditor/PlateMapGrid.d.ts +64 -0
- package/dist/components/composed/PlateMapEditor/PlateMapGrid.js +1 -1
- package/dist/components/composed/PlateMapEditor/PlateMapManifest.d.ts +29 -0
- package/dist/components/composed/PlateMapEditor/PlateMapPlateSelector.cjs +1 -1
- package/dist/components/composed/PlateMapEditor/PlateMapPlateSelector.cjs.map +1 -1
- package/dist/components/composed/PlateMapEditor/PlateMapPlateSelector.d.ts +19 -0
- package/dist/components/composed/PlateMapEditor/PlateMapPlateSelector.js +11 -11
- package/dist/components/composed/PlateMapEditor/PlateMapPlateSelector.js.map +1 -1
- package/dist/components/composed/PlateMapEditor/PlatePaintGrid.cjs +1 -1
- package/dist/components/composed/PlateMapEditor/PlatePaintGrid.cjs.map +1 -1
- package/dist/components/composed/PlateMapEditor/PlatePaintGrid.d.ts +73 -0
- package/dist/components/composed/PlateMapEditor/PlatePaintGrid.js +1 -1
- package/dist/components/composed/PlateMapEditor/PlatePaintGrid.js.map +1 -1
- package/dist/components/composed/PlateMapEditor/PlateZoomControl.cjs +1 -1
- package/dist/components/composed/PlateMapEditor/PlateZoomControl.cjs.map +1 -1
- package/dist/components/composed/PlateMapEditor/PlateZoomControl.d.ts +12 -0
- package/dist/components/composed/PlateMapEditor/PlateZoomControl.js +2 -2
- package/dist/components/composed/PlateMapEditor/TemplateIOPanel.cjs +1 -1
- package/dist/components/composed/PlateMapEditor/TemplateIOPanel.cjs.map +1 -1
- package/dist/components/composed/PlateMapEditor/TemplateIOPanel.d.ts +13 -0
- package/dist/components/composed/PlateMapEditor/TemplateIOPanel.js +4 -4
- package/dist/components/composed/PlateMapEditor/WellLegend.cjs +1 -1
- package/dist/components/composed/PlateMapEditor/WellLegend.cjs.map +1 -1
- package/dist/components/composed/PlateMapEditor/WellLegend.d.ts +21 -0
- package/dist/components/composed/PlateMapEditor/WellLegend.js +24 -12
- package/dist/components/composed/PlateMapEditor/WellLegend.js.map +1 -1
- package/dist/components/composed/PlateMapEditor/WellManifestTable.cjs +1 -1
- package/dist/components/composed/PlateMapEditor/WellManifestTable.cjs.map +1 -1
- package/dist/components/composed/PlateMapEditor/WellManifestTable.d.ts +46 -0
- package/dist/components/composed/PlateMapEditor/WellManifestTable.js +10 -10
- package/dist/components/composed/PlateMapEditor/WellManifestTable.js.map +1 -1
- package/dist/components/composed/PlateMapEditor/WellMetadataForm.cjs +1 -1
- package/dist/components/composed/PlateMapEditor/WellMetadataForm.cjs.map +1 -1
- package/dist/components/composed/PlateMapEditor/WellMetadataForm.d.ts +17 -0
- package/dist/components/composed/PlateMapEditor/WellMetadataForm.js +7 -7
- package/dist/components/composed/PlateMapEditor/autoFill.d.ts +26 -0
- package/dist/components/composed/PlateMapEditor/csvPlateTriage.d.ts +4 -0
- package/dist/components/composed/PlateMapEditor/helpers.d.ts +2 -0
- package/dist/components/composed/PlateMapEditor/index.d.ts +31 -0
- package/dist/components/composed/PlateMapEditor/types.d.ts +137 -0
- package/dist/components/composed/PlateMapEditor/wellGrid.d.ts +12 -0
- package/dist/components/composed/ProcessFlow/ProcessFlow.d.ts +32 -0
- package/dist/components/composed/ProcessFlow/ProcessFlow.utils.d.ts +86 -0
- package/dist/components/composed/ProcessFlow/index.d.ts +1 -0
- package/dist/components/composed/RichListItem/RichListItem.cjs +1 -1
- package/dist/components/composed/RichListItem/RichListItem.cjs.map +1 -1
- package/dist/components/composed/RichListItem/RichListItem.d.ts +22 -0
- package/dist/components/composed/RichListItem/RichListItem.js +2 -2
- package/dist/components/composed/RichListItem/index.d.ts +2 -0
- package/dist/components/composed/StatCard/StatCard.cjs +1 -1
- package/dist/components/composed/StatCard/StatCard.cjs.map +1 -1
- package/dist/components/composed/StatCard/StatCard.d.ts +11 -0
- package/dist/components/composed/StatCard/StatCard.js +1 -1
- package/dist/components/composed/StatCard/index.d.ts +1 -0
- package/dist/components/composed/TdpSearch/TdpSearch.cjs +1 -1
- package/dist/components/composed/TdpSearch/TdpSearch.cjs.map +1 -1
- package/dist/components/composed/TdpSearch/TdpSearch.d.ts +21 -0
- package/dist/components/composed/TdpSearch/TdpSearch.js +14 -13
- package/dist/components/composed/TdpSearch/TdpSearch.mocks.d.ts +5 -0
- package/dist/components/composed/TdpSearch/components/DefaultFilters.cjs +1 -1
- package/dist/components/composed/TdpSearch/components/DefaultFilters.cjs.map +1 -1
- package/dist/components/composed/TdpSearch/components/DefaultFilters.d.ts +3 -0
- package/dist/components/composed/TdpSearch/components/DefaultFilters.js +4 -4
- package/dist/components/composed/TdpSearch/components/DefaultFilters.js.map +1 -1
- package/dist/components/composed/TdpSearch/components/DefaultResults.cjs +1 -1
- package/dist/components/composed/TdpSearch/components/DefaultResults.cjs.map +1 -1
- package/dist/components/composed/TdpSearch/components/DefaultResults.d.ts +3 -0
- package/dist/components/composed/TdpSearch/components/DefaultResults.js +2 -2
- package/dist/components/composed/TdpSearch/components/DefaultSearchBar.cjs +1 -1
- package/dist/components/composed/TdpSearch/components/DefaultSearchBar.cjs.map +1 -1
- package/dist/components/composed/TdpSearch/components/DefaultSearchBar.d.ts +3 -0
- package/dist/components/composed/TdpSearch/components/DefaultSearchBar.js +2 -2
- package/dist/components/composed/TdpSearch/constants.d.ts +3 -0
- package/dist/components/composed/TdpSearch/hooks/useSearch.d.ts +2 -0
- package/dist/components/composed/TdpSearch/hooks/useTdpCredentials.d.ts +14 -0
- package/dist/components/composed/TdpSearch/index.d.ts +3 -0
- package/dist/components/composed/TdpSearch/types.d.ts +128 -0
- package/dist/components/composed/TdpSearch/utils.d.ts +3 -0
- package/dist/components/composed/TopBar/TopBar.cjs +2 -0
- package/dist/components/composed/TopBar/TopBar.cjs.map +1 -0
- package/dist/components/composed/TopBar/TopBar.d.ts +25 -0
- package/dist/components/composed/TopBar/TopBar.js +56 -0
- package/dist/components/composed/TopBar/TopBar.js.map +1 -0
- package/dist/components/composed/TopBar/index.d.ts +2 -0
- package/dist/components/composed/UserMenu/UserMenu.cjs +2 -0
- package/dist/components/composed/UserMenu/UserMenu.cjs.map +1 -0
- package/dist/components/composed/UserMenu/UserMenu.d.ts +53 -0
- package/dist/components/composed/UserMenu/UserMenu.js +99 -0
- package/dist/components/composed/UserMenu/UserMenu.js.map +1 -0
- package/dist/components/composed/UserMenu/index.d.ts +2 -0
- package/dist/components/composed/tdp-link.d.ts +110 -0
- package/dist/components/composed/tdp-url.d.ts +68 -0
- package/dist/components/ui/accordion.d.ts +7 -0
- package/dist/components/ui/alert-dialog.d.ts +18 -0
- package/dist/components/ui/alert.d.ts +10 -0
- package/dist/components/ui/aspect-ratio.d.ts +3 -0
- package/dist/components/ui/avatar.d.ts +11 -0
- package/dist/components/ui/badge.d.ts +9 -0
- package/dist/components/ui/banner.d.ts +19 -0
- package/dist/components/ui/breadcrumb.d.ts +11 -0
- package/dist/components/ui/button-group.d.ts +11 -0
- package/dist/components/ui/button.d.ts +10 -0
- package/dist/components/ui/calendar.d.ts +10 -0
- package/dist/components/ui/card.d.ts +11 -0
- package/dist/components/ui/carousel.d.ts +28 -0
- package/dist/components/ui/checkbox.d.ts +4 -0
- package/dist/components/ui/code-block.d.ts +45 -0
- package/dist/components/ui/code-editor.d.ts +18 -0
- package/dist/components/ui/collapsible.d.ts +5 -0
- package/dist/components/ui/combobox.d.ts +24 -0
- package/dist/components/ui/command.d.ts +18 -0
- package/dist/components/ui/context-menu.d.ts +31 -0
- package/dist/components/ui/data-table/data-table-column-toggle.cjs +1 -1
- package/dist/components/ui/data-table/data-table-column-toggle.cjs.map +1 -1
- package/dist/components/ui/data-table/data-table-column-toggle.d.ts +6 -0
- package/dist/components/ui/data-table/data-table-column-toggle.js +71 -63
- package/dist/components/ui/data-table/data-table-column-toggle.js.map +1 -1
- package/dist/components/ui/data-table/data-table-filter.cjs +1 -1
- package/dist/components/ui/data-table/data-table-filter.cjs.map +1 -1
- package/dist/components/ui/data-table/data-table-filter.d.ts +9 -0
- package/dist/components/ui/data-table/data-table-filter.js +26 -25
- package/dist/components/ui/data-table/data-table-filter.js.map +1 -1
- package/dist/components/ui/data-table/data-table-group.cjs +1 -1
- package/dist/components/ui/data-table/data-table-group.cjs.map +1 -1
- package/dist/components/ui/data-table/data-table-group.d.ts +9 -0
- package/dist/components/ui/data-table/data-table-group.js +18 -17
- package/dist/components/ui/data-table/data-table-group.js.map +1 -1
- package/dist/components/ui/data-table/data-table-pagination.cjs +1 -1
- package/dist/components/ui/data-table/data-table-pagination.cjs.map +1 -1
- package/dist/components/ui/data-table/data-table-pagination.d.ts +7 -0
- package/dist/components/ui/data-table/data-table-pagination.js +16 -16
- package/dist/components/ui/data-table/data-table-pagination.js.map +1 -1
- package/dist/components/ui/data-table/data-table.cjs +1 -1
- package/dist/components/ui/data-table/data-table.cjs.map +1 -1
- package/dist/components/ui/data-table/data-table.d.ts +82 -0
- package/dist/components/ui/data-table/data-table.js +191 -190
- package/dist/components/ui/data-table/data-table.js.map +1 -1
- package/dist/components/ui/data-table/index.d.ts +5 -0
- package/dist/components/ui/dialog.d.ts +18 -0
- package/dist/components/ui/dropdown-menu.d.ts +29 -0
- package/dist/components/ui/field.d.ts +24 -0
- package/dist/components/ui/hover-card.d.ts +6 -0
- package/dist/components/ui/input-group.d.ts +16 -0
- package/dist/components/ui/input.d.ts +3 -0
- package/dist/components/ui/item.d.ts +23 -0
- package/dist/components/ui/kbd.d.ts +3 -0
- package/dist/components/ui/label.d.ts +4 -0
- package/dist/components/ui/menubar.d.ts +30 -0
- package/dist/components/ui/navigation-menu.d.ts +14 -0
- package/dist/components/ui/popover.d.ts +7 -0
- package/dist/components/ui/progress.d.ts +4 -0
- package/dist/components/ui/radio-group.d.ts +5 -0
- package/dist/components/ui/resizable.d.ts +25 -0
- package/dist/components/ui/scroll-area.d.ts +5 -0
- package/dist/components/ui/select.d.ts +15 -0
- package/dist/components/ui/separator.d.ts +4 -0
- package/dist/components/ui/sheet.d.ts +14 -0
- package/dist/components/ui/sidebar.d.ts +69 -0
- package/dist/components/ui/skeleton.d.ts +2 -0
- package/dist/components/ui/slider.d.ts +4 -0
- package/dist/components/ui/snippet.d.ts +18 -0
- package/dist/components/ui/sonner.d.ts +3 -0
- package/dist/components/ui/spinner.d.ts +6 -0
- package/dist/components/ui/switch.d.ts +6 -0
- package/dist/components/ui/table.d.ts +22 -0
- package/dist/components/ui/tabs.d.ts +11 -0
- package/dist/components/ui/tetra-molecule-icon.d.ts +11 -0
- package/dist/components/ui/tetrascience-icon.d.ts +7 -0
- package/dist/components/ui/textarea.d.ts +3 -0
- package/dist/components/ui/toggle-group.d.ts +10 -0
- package/dist/components/ui/toggle.d.ts +9 -0
- package/dist/components/ui/tooltip.d.ts +7 -0
- package/dist/composed/AssistantLayout.cjs +2 -0
- package/dist/composed/AssistantLayout.cjs.map +1 -0
- package/dist/composed/AssistantLayout.js +10 -0
- package/dist/composed/AssistantLayout.js.map +1 -0
- package/dist/composed/Chat.cjs +2 -0
- package/dist/composed/Chat.cjs.map +1 -0
- package/dist/composed/Chat.js +5 -0
- package/dist/composed/Chat.js.map +1 -0
- package/dist/composed/ConfirmDialog.cjs +2 -0
- package/dist/composed/ConfirmDialog.cjs.map +1 -0
- package/dist/composed/ConfirmDialog.js +5 -0
- package/dist/composed/ConfirmDialog.js.map +1 -0
- package/dist/composed/DataAppShell.cjs +2 -0
- package/dist/composed/DataAppShell.cjs.map +1 -0
- package/dist/composed/DataAppShell.js +22 -0
- package/dist/composed/DataAppShell.js.map +1 -0
- package/dist/composed/EmptyState.cjs +2 -0
- package/dist/composed/EmptyState.cjs.map +1 -0
- package/dist/composed/EmptyState.js +5 -0
- package/dist/composed/EmptyState.js.map +1 -0
- package/dist/composed/FormPatterns.cjs +2 -0
- package/dist/composed/FormPatterns.cjs.map +1 -0
- package/dist/composed/FormPatterns.js +5 -0
- package/dist/composed/FormPatterns.js.map +1 -0
- package/dist/composed/MoleculeStructure.cjs +2 -0
- package/dist/composed/MoleculeStructure.cjs.map +1 -0
- package/dist/composed/MoleculeStructure.js +11 -0
- package/dist/composed/MoleculeStructure.js.map +1 -0
- package/dist/composed/PlateMapEditor.cjs +2 -0
- package/dist/composed/PlateMapEditor.cjs.map +1 -0
- package/dist/composed/PlateMapEditor.js +45 -0
- package/dist/composed/PlateMapEditor.js.map +1 -0
- package/dist/composed/ProcessFlow.cjs +2 -0
- package/dist/composed/ProcessFlow.cjs.map +1 -0
- package/dist/composed/ProcessFlow.js +7 -0
- package/dist/composed/ProcessFlow.js.map +1 -0
- package/dist/composed/RichListItem.cjs +2 -0
- package/dist/composed/RichListItem.cjs.map +1 -0
- package/dist/composed/RichListItem.js +6 -0
- package/dist/composed/RichListItem.js.map +1 -0
- package/dist/composed/StatCard.cjs +2 -0
- package/dist/composed/StatCard.cjs.map +1 -0
- package/dist/composed/StatCard.js +5 -0
- package/dist/composed/StatCard.js.map +1 -0
- package/dist/composed/TdpSearch.cjs +2 -0
- package/dist/composed/TdpSearch.cjs.map +1 -0
- package/dist/composed/TdpSearch.js +8 -0
- package/dist/composed/TdpSearch.js.map +1 -0
- package/dist/composed/TopBar.cjs +2 -0
- package/dist/composed/TopBar.cjs.map +1 -0
- package/dist/composed/TopBar.js +6 -0
- package/dist/composed/TopBar.js.map +1 -0
- package/dist/composed/UserMenu.cjs +2 -0
- package/dist/composed/UserMenu.cjs.map +1 -0
- package/dist/composed/UserMenu.js +7 -0
- package/dist/composed/UserMenu.js.map +1 -0
- package/dist/composed/tdp-link.cjs +2 -0
- package/dist/composed/tdp-link.cjs.map +1 -0
- package/dist/composed/tdp-link.js +84 -0
- package/dist/composed/tdp-link.js.map +1 -0
- package/dist/composed/tdp-url.cjs.map +1 -0
- package/dist/composed/tdp-url.js.map +1 -0
- package/dist/hooks/use-code-editor-theme.d.ts +34 -0
- package/dist/hooks/use-element-size.d.ts +25 -0
- package/dist/hooks/use-is-dark.d.ts +12 -0
- package/dist/hooks/use-mobile.d.ts +1 -0
- package/dist/hooks/use-plotly-theme.cjs +1 -1
- package/dist/hooks/use-plotly-theme.cjs.map +1 -1
- package/dist/hooks/use-plotly-theme.d.ts +49 -0
- package/dist/hooks/use-plotly-theme.js +4 -3
- package/dist/hooks/use-plotly-theme.js.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.css +1 -1
- package/dist/index.d.ts +102 -4404
- package/dist/index.js +698 -659
- package/dist/index.js.map +1 -1
- package/dist/index.tailwind.css +1 -1
- package/dist/jest-setup.cjs +4 -0
- package/dist/jest-setup.cjs.map +1 -0
- package/dist/jest-setup.d.ts +106 -0
- package/dist/jest-setup.js +218 -0
- package/dist/jest-setup.js.map +1 -0
- package/dist/lib/shiki.cjs +2 -0
- package/dist/lib/shiki.cjs.map +1 -0
- package/dist/lib/shiki.d.ts +32 -0
- package/dist/lib/shiki.js +72 -0
- package/dist/lib/shiki.js.map +1 -0
- package/dist/lib/utils.d.ts +2 -0
- package/dist/server/auth/JwtTokenManager.cjs +1 -1
- package/dist/server/auth/JwtTokenManager.cjs.map +1 -1
- package/dist/server/auth/JwtTokenManager.d.ts +113 -0
- package/dist/server/auth/JwtTokenManager.js +44 -21
- package/dist/server/auth/JwtTokenManager.js.map +1 -1
- package/dist/server/auth/index.d.ts +5 -0
- package/dist/server/index.d.ts +8 -0
- package/dist/server/providers/AthenaProvider.cjs +1 -1
- package/dist/server/providers/AthenaProvider.cjs.map +1 -1
- package/dist/server/providers/AthenaProvider.d.ts +75 -0
- package/dist/server/providers/DatabricksProvider.cjs +1 -1
- package/dist/server/providers/DatabricksProvider.cjs.map +1 -1
- package/dist/server/providers/DatabricksProvider.d.ts +38 -0
- package/dist/server/providers/SnowflakeProvider.cjs +1 -1
- package/dist/server/providers/SnowflakeProvider.cjs.map +1 -1
- package/dist/server/providers/SnowflakeProvider.d.ts +36 -0
- package/dist/server/providers/buildProvider.d.ts +39 -0
- package/dist/server/providers/entries/athena.d.ts +24 -0
- package/dist/server/providers/entries/databricks.d.ts +25 -0
- package/dist/server/providers/entries/snowflake.d.ts +25 -0
- package/dist/server/providers/exceptions.d.ts +36 -0
- package/dist/server/providers/getProviderConfigurations.d.ts +45 -0
- package/dist/server/providers/index.d.ts +31 -0
- package/dist/server/providers/providerDiscovery.d.ts +81 -0
- package/dist/server/providers/types.d.ts +145 -0
- package/dist/server/search/TdpSearchManager.d.ts +40 -0
- package/dist/server/search/index.d.ts +5 -0
- package/dist/server.d.ts +17 -540
- package/dist/ui/accordion.cjs +2 -0
- package/dist/ui/accordion.cjs.map +1 -0
- package/dist/ui/accordion.js +83 -0
- package/dist/ui/accordion.js.map +1 -0
- package/dist/ui/alert-dialog.cjs +2 -0
- package/dist/ui/alert-dialog.cjs.map +1 -0
- package/dist/ui/alert-dialog.js +181 -0
- package/dist/ui/alert-dialog.js.map +1 -0
- package/dist/ui/alert.cjs +2 -0
- package/dist/ui/alert.cjs.map +1 -0
- package/dist/ui/alert.js +81 -0
- package/dist/ui/alert.js.map +1 -0
- package/dist/ui/aspect-ratio.cjs.map +1 -0
- package/dist/ui/aspect-ratio.js.map +1 -0
- package/dist/ui/avatar.cjs +2 -0
- package/dist/ui/avatar.cjs.map +1 -0
- package/dist/ui/avatar.js +107 -0
- package/dist/ui/avatar.js.map +1 -0
- package/dist/ui/badge.cjs +2 -0
- package/dist/ui/badge.cjs.map +1 -0
- package/dist/ui/badge.js +47 -0
- package/dist/ui/badge.js.map +1 -0
- package/dist/ui/banner.cjs +2 -0
- package/dist/ui/banner.cjs.map +1 -0
- package/dist/ui/banner.js +80 -0
- package/dist/ui/banner.js.map +1 -0
- package/dist/ui/breadcrumb.cjs +2 -0
- package/dist/ui/breadcrumb.cjs.map +1 -0
- package/dist/ui/breadcrumb.js +118 -0
- package/dist/ui/breadcrumb.js.map +1 -0
- package/dist/ui/button-group.cjs +2 -0
- package/dist/ui/button-group.cjs.map +1 -0
- package/dist/ui/button-group.js +77 -0
- package/dist/ui/button-group.js.map +1 -0
- package/dist/ui/button.cjs +2 -0
- package/dist/ui/button.cjs.map +1 -0
- package/dist/ui/button.js +57 -0
- package/dist/ui/button.js.map +1 -0
- package/dist/ui/calendar.cjs +2 -0
- package/dist/ui/calendar.cjs.map +1 -0
- package/dist/ui/calendar.js +174 -0
- package/dist/ui/calendar.js.map +1 -0
- package/dist/ui/card.cjs +2 -0
- package/dist/ui/card.cjs.map +1 -0
- package/dist/ui/card.js +102 -0
- package/dist/ui/card.js.map +1 -0
- package/dist/ui/carousel.cjs +2 -0
- package/dist/ui/carousel.cjs.map +1 -0
- package/dist/ui/carousel.js +179 -0
- package/dist/ui/carousel.js.map +1 -0
- package/dist/ui/checkbox.cjs +2 -0
- package/dist/ui/checkbox.cjs.map +1 -0
- package/dist/ui/checkbox.js +35 -0
- package/dist/ui/checkbox.js.map +1 -0
- package/dist/ui/code-block.cjs +4 -0
- package/dist/ui/code-block.cjs.map +1 -0
- package/dist/ui/code-block.js +324 -0
- package/dist/ui/code-block.js.map +1 -0
- package/dist/ui/code-editor.cjs +2 -0
- package/dist/ui/code-editor.cjs.map +1 -0
- package/dist/ui/code-editor.js +106 -0
- package/dist/ui/code-editor.js.map +1 -0
- package/dist/ui/collapsible.cjs.map +1 -0
- package/dist/ui/collapsible.js.map +1 -0
- package/dist/ui/combobox.cjs +2 -0
- package/dist/ui/combobox.cjs.map +1 -0
- package/dist/ui/combobox.js +285 -0
- package/dist/ui/combobox.js.map +1 -0
- package/dist/ui/command.cjs +2 -0
- package/dist/ui/command.cjs.map +1 -0
- package/dist/ui/command.js +178 -0
- package/dist/ui/command.js.map +1 -0
- package/dist/ui/context-menu.cjs +2 -0
- package/dist/ui/context-menu.cjs.map +1 -0
- package/dist/ui/context-menu.js +236 -0
- package/dist/ui/context-menu.js.map +1 -0
- package/dist/ui/data-table.cjs +2 -0
- package/dist/ui/data-table.cjs.map +1 -0
- package/dist/ui/data-table.js +16 -0
- package/dist/ui/data-table.js.map +1 -0
- package/dist/ui/dialog.cjs +2 -0
- package/dist/ui/dialog.cjs.map +1 -0
- package/dist/ui/dialog.js +165 -0
- package/dist/ui/dialog.js.map +1 -0
- package/dist/ui/dropdown-menu.cjs +2 -0
- package/dist/ui/dropdown-menu.cjs.map +1 -0
- package/dist/ui/dropdown-menu.js +260 -0
- package/dist/ui/dropdown-menu.js.map +1 -0
- package/dist/ui/field.cjs +2 -0
- package/dist/ui/field.cjs.map +1 -0
- package/dist/ui/field.js +210 -0
- package/dist/ui/field.js.map +1 -0
- package/dist/ui/hover-card.cjs +2 -0
- package/dist/ui/hover-card.cjs.map +1 -0
- package/dist/ui/hover-card.js +39 -0
- package/dist/ui/hover-card.js.map +1 -0
- package/dist/ui/input-group.cjs +2 -0
- package/dist/ui/input-group.cjs.map +1 -0
- package/dist/ui/input-group.js +145 -0
- package/dist/ui/input-group.js.map +1 -0
- package/dist/ui/input.cjs +2 -0
- package/dist/ui/input.cjs.map +1 -0
- package/dist/ui/input.js +20 -0
- package/dist/ui/input.js.map +1 -0
- package/dist/ui/item.cjs +2 -0
- package/dist/ui/item.cjs.map +1 -0
- package/dist/ui/item.js +199 -0
- package/dist/ui/item.js.map +1 -0
- package/dist/ui/kbd.cjs +2 -0
- package/dist/ui/kbd.cjs.map +1 -0
- package/dist/ui/kbd.js +30 -0
- package/dist/ui/kbd.js.map +1 -0
- package/dist/ui/label.cjs +2 -0
- package/dist/ui/label.cjs.map +1 -0
- package/dist/ui/label.js +23 -0
- package/dist/ui/label.js.map +1 -0
- package/dist/ui/menubar.cjs +2 -0
- package/dist/ui/menubar.cjs.map +1 -0
- package/dist/ui/menubar.js +256 -0
- package/dist/ui/menubar.js.map +1 -0
- package/dist/ui/navigation-menu.cjs +2 -0
- package/dist/ui/navigation-menu.cjs.map +1 -0
- package/dist/ui/navigation-menu.js +164 -0
- package/dist/ui/navigation-menu.js.map +1 -0
- package/dist/ui/popover.cjs +2 -0
- package/dist/ui/popover.cjs.map +1 -0
- package/dist/ui/popover.js +45 -0
- package/dist/ui/popover.js.map +1 -0
- package/dist/ui/radio-group.cjs +2 -0
- package/dist/ui/radio-group.cjs.map +1 -0
- package/dist/ui/radio-group.js +45 -0
- package/dist/ui/radio-group.js.map +1 -0
- package/dist/ui/resizable.cjs +2 -0
- package/dist/ui/resizable.cjs.map +1 -0
- package/dist/ui/resizable.js +58 -0
- package/dist/ui/resizable.js.map +1 -0
- package/dist/ui/scroll-area.cjs +2 -0
- package/dist/ui/scroll-area.cjs.map +1 -0
- package/dist/ui/scroll-area.js +61 -0
- package/dist/ui/scroll-area.js.map +1 -0
- package/dist/ui/select.cjs +2 -0
- package/dist/ui/select.cjs.map +1 -0
- package/dist/ui/select.js +184 -0
- package/dist/ui/select.js.map +1 -0
- package/dist/ui/separator.cjs +2 -0
- package/dist/ui/separator.cjs.map +1 -0
- package/dist/ui/separator.js +27 -0
- package/dist/ui/separator.js.map +1 -0
- package/dist/ui/sheet.cjs +2 -0
- package/dist/ui/sheet.cjs.map +1 -0
- package/dist/ui/sheet.js +137 -0
- package/dist/ui/sheet.js.map +1 -0
- package/dist/ui/sidebar.cjs +2 -0
- package/dist/ui/sidebar.cjs.map +1 -0
- package/dist/ui/sidebar.js +579 -0
- package/dist/ui/sidebar.js.map +1 -0
- package/dist/ui/skeleton.cjs +2 -0
- package/dist/ui/skeleton.cjs.map +1 -0
- package/dist/ui/skeleton.js +24 -0
- package/dist/ui/skeleton.js.map +1 -0
- package/dist/ui/slider.cjs +2 -0
- package/dist/ui/slider.cjs.map +1 -0
- package/dist/ui/slider.js +61 -0
- package/dist/ui/slider.js.map +1 -0
- package/dist/ui/sonner.cjs +2 -0
- package/dist/ui/sonner.cjs.map +1 -0
- package/dist/ui/sonner.js +52 -0
- package/dist/ui/sonner.js.map +1 -0
- package/dist/ui/spinner.cjs +2 -0
- package/dist/ui/spinner.cjs.map +1 -0
- package/dist/ui/spinner.js +39 -0
- package/dist/ui/spinner.js.map +1 -0
- package/dist/ui/switch.cjs +2 -0
- package/dist/ui/switch.cjs.map +1 -0
- package/dist/ui/switch.js +32 -0
- package/dist/ui/switch.js.map +1 -0
- package/dist/ui/table.cjs +2 -0
- package/dist/ui/table.cjs.map +1 -0
- package/dist/ui/table.js +153 -0
- package/dist/ui/table.js.map +1 -0
- package/dist/ui/tabs.cjs +2 -0
- package/dist/ui/tabs.cjs.map +1 -0
- package/dist/ui/tabs.js +92 -0
- package/dist/ui/tabs.js.map +1 -0
- package/dist/ui/tetra-molecule-icon.cjs +2 -0
- package/dist/ui/tetra-molecule-icon.cjs.map +1 -0
- package/dist/ui/tetra-molecule-icon.js +50 -0
- package/dist/ui/tetra-molecule-icon.js.map +1 -0
- package/dist/ui/tetrascience-icon.cjs +2 -0
- package/dist/ui/tetrascience-icon.cjs.map +1 -0
- package/dist/ui/tetrascience-icon.js +47 -0
- package/dist/ui/tetrascience-icon.js.map +1 -0
- package/dist/ui/textarea.cjs +2 -0
- package/dist/ui/textarea.cjs.map +1 -0
- package/dist/ui/textarea.js +19 -0
- package/dist/ui/textarea.js.map +1 -0
- package/dist/ui/toggle-group.cjs +2 -0
- package/dist/ui/toggle-group.cjs.map +1 -0
- package/dist/ui/toggle-group.js +81 -0
- package/dist/ui/toggle-group.js.map +1 -0
- package/dist/ui/toggle.cjs +2 -0
- package/dist/ui/toggle.cjs.map +1 -0
- package/dist/ui/toggle.js +44 -0
- package/dist/ui/toggle.js.map +1 -0
- package/dist/ui/tooltip.cjs +2 -0
- package/dist/ui/tooltip.cjs.map +1 -0
- package/dist/ui/tooltip.js +56 -0
- package/dist/ui/tooltip.js.map +1 -0
- package/dist/utils/colors.d.ts +50 -0
- package/package.json +137 -24
- package/dist/athena.d.ts +0 -167
- package/dist/components/ai/attachments.cjs +0 -2
- package/dist/components/ai/attachments.cjs.map +0 -1
- package/dist/components/ai/attachments.js +0 -224
- package/dist/components/ai/attachments.js.map +0 -1
- package/dist/components/ai/chain-of-thought.cjs +0 -2
- package/dist/components/ai/chain-of-thought.cjs.map +0 -1
- package/dist/components/ai/chain-of-thought.js +0 -145
- package/dist/components/ai/chain-of-thought.js.map +0 -1
- package/dist/components/ai/confirmation.cjs +0 -2
- package/dist/components/ai/confirmation.cjs.map +0 -1
- package/dist/components/ai/confirmation.js +0 -109
- package/dist/components/ai/confirmation.js.map +0 -1
- package/dist/components/ai/context.cjs +0 -2
- package/dist/components/ai/context.cjs.map +0 -1
- package/dist/components/ai/context.js +0 -266
- package/dist/components/ai/context.js.map +0 -1
- package/dist/components/ai/conversation.cjs +0 -4
- package/dist/components/ai/conversation.cjs.map +0 -1
- package/dist/components/ai/conversation.js +0 -108
- package/dist/components/ai/conversation.js.map +0 -1
- package/dist/components/ai/inline-citation.cjs +0 -2
- package/dist/components/ai/inline-citation.cjs.map +0 -1
- package/dist/components/ai/inline-citation.js +0 -182
- package/dist/components/ai/inline-citation.js.map +0 -1
- package/dist/components/ai/message.cjs +0 -2
- package/dist/components/ai/message.cjs.map +0 -1
- package/dist/components/ai/message.js +0 -237
- package/dist/components/ai/message.js.map +0 -1
- package/dist/components/ai/model-selector.cjs +0 -2
- package/dist/components/ai/model-selector.cjs.map +0 -1
- package/dist/components/ai/model-selector.js +0 -77
- package/dist/components/ai/model-selector.js.map +0 -1
- package/dist/components/ai/prompt-input.cjs +0 -2
- package/dist/components/ai/prompt-input.cjs.map +0 -1
- package/dist/components/ai/prompt-input.js +0 -774
- package/dist/components/ai/prompt-input.js.map +0 -1
- package/dist/components/ai/queue.cjs +0 -2
- package/dist/components/ai/queue.cjs.map +0 -1
- package/dist/components/ai/queue.js +0 -209
- package/dist/components/ai/queue.js.map +0 -1
- package/dist/components/ai/reasoning.cjs +0 -2
- package/dist/components/ai/reasoning.cjs.map +0 -1
- package/dist/components/ai/reasoning.js +0 -129
- package/dist/components/ai/reasoning.js.map +0 -1
- package/dist/components/ai/shimmer.cjs +0 -2
- package/dist/components/ai/shimmer.cjs.map +0 -1
- package/dist/components/ai/shimmer.js +0 -49
- package/dist/components/ai/shimmer.js.map +0 -1
- package/dist/components/ai/sources.cjs +0 -2
- package/dist/components/ai/sources.cjs.map +0 -1
- package/dist/components/ai/sources.js +0 -54
- package/dist/components/ai/sources.js.map +0 -1
- package/dist/components/ai/speech-input.cjs +0 -2
- package/dist/components/ai/speech-input.cjs.map +0 -1
- package/dist/components/ai/speech-input.js +0 -123
- package/dist/components/ai/speech-input.js.map +0 -1
- package/dist/components/ai/stream-status.cjs +0 -2
- package/dist/components/ai/stream-status.cjs.map +0 -1
- package/dist/components/ai/stream-status.js +0 -106
- package/dist/components/ai/stream-status.js.map +0 -1
- package/dist/components/ai/suggestion.cjs +0 -2
- package/dist/components/ai/suggestion.cjs.map +0 -1
- package/dist/components/ai/suggestion.js +0 -38
- package/dist/components/ai/suggestion.js.map +0 -1
- package/dist/components/ai/task.cjs +0 -2
- package/dist/components/ai/task.cjs.map +0 -1
- package/dist/components/ai/task.js +0 -94
- package/dist/components/ai/task.js.map +0 -1
- package/dist/components/ai/tool.cjs +0 -2
- package/dist/components/ai/tool.cjs.map +0 -1
- package/dist/components/ai/tool.js +0 -143
- package/dist/components/ai/tool.js.map +0 -1
- package/dist/components/charts/AreaGraph/AreaGraph.cjs +0 -2
- package/dist/components/charts/AreaGraph/AreaGraph.cjs.map +0 -1
- package/dist/components/charts/AreaGraph/AreaGraph.js +0 -271
- package/dist/components/charts/AreaGraph/AreaGraph.js.map +0 -1
- package/dist/components/charts/BarGraph/BarGraph.cjs +0 -2
- package/dist/components/charts/BarGraph/BarGraph.cjs.map +0 -1
- package/dist/components/charts/BarGraph/BarGraph.js +0 -220
- package/dist/components/charts/BarGraph/BarGraph.js.map +0 -1
- package/dist/components/charts/Boxplot/Boxplot.cjs +0 -2
- package/dist/components/charts/Boxplot/Boxplot.cjs.map +0 -1
- package/dist/components/charts/Boxplot/Boxplot.js +0 -209
- package/dist/components/charts/Boxplot/Boxplot.js.map +0 -1
- package/dist/components/charts/ChromatogramChart/ChromatogramChart.cjs +0 -2
- package/dist/components/charts/ChromatogramChart/ChromatogramChart.cjs.map +0 -1
- package/dist/components/charts/ChromatogramChart/ChromatogramChart.js +0 -227
- package/dist/components/charts/ChromatogramChart/ChromatogramChart.js.map +0 -1
- package/dist/components/charts/ChromatogramChart/annotations.cjs +0 -2
- package/dist/components/charts/ChromatogramChart/annotations.cjs.map +0 -1
- package/dist/components/charts/ChromatogramChart/annotations.js +0 -73
- package/dist/components/charts/ChromatogramChart/annotations.js.map +0 -1
- package/dist/components/charts/ChromatogramChart/boundaryMarkers.cjs +0 -2
- package/dist/components/charts/ChromatogramChart/boundaryMarkers.cjs.map +0 -1
- package/dist/components/charts/ChromatogramChart/boundaryMarkers.js +0 -34
- package/dist/components/charts/ChromatogramChart/boundaryMarkers.js.map +0 -1
- package/dist/components/charts/ChromatogramChart/constants.cjs +0 -2
- package/dist/components/charts/ChromatogramChart/constants.cjs.map +0 -1
- package/dist/components/charts/ChromatogramChart/constants.js +0 -30
- package/dist/components/charts/ChromatogramChart/constants.js.map +0 -1
- package/dist/components/charts/ChromatogramChart/dataProcessing.cjs +0 -2
- package/dist/components/charts/ChromatogramChart/dataProcessing.cjs.map +0 -1
- package/dist/components/charts/ChromatogramChart/dataProcessing.js +0 -79
- package/dist/components/charts/ChromatogramChart/dataProcessing.js.map +0 -1
- package/dist/components/charts/ChromatogramChart/peakDetection.cjs.map +0 -1
- package/dist/components/charts/ChromatogramChart/peakDetection.js.map +0 -1
- package/dist/components/charts/DotPlot/DotPlot.cjs +0 -2
- package/dist/components/charts/DotPlot/DotPlot.cjs.map +0 -1
- package/dist/components/charts/DotPlot/DotPlot.js +0 -208
- package/dist/components/charts/DotPlot/DotPlot.js.map +0 -1
- package/dist/components/charts/Heatmap/Heatmap.cjs +0 -2
- package/dist/components/charts/Heatmap/Heatmap.cjs.map +0 -1
- package/dist/components/charts/Heatmap/Heatmap.js +0 -67
- package/dist/components/charts/Heatmap/Heatmap.js.map +0 -1
- package/dist/components/charts/LineGraph/LineGraph.cjs +0 -2
- package/dist/components/charts/LineGraph/LineGraph.cjs.map +0 -1
- package/dist/components/charts/LineGraph/LineGraph.js +0 -225
- package/dist/components/charts/LineGraph/LineGraph.js.map +0 -1
- package/dist/components/charts/ScatterGraph/ScatterGraph.cjs +0 -2
- package/dist/components/charts/ScatterGraph/ScatterGraph.cjs.map +0 -1
- package/dist/components/charts/ScatterGraph/ScatterGraph.js +0 -234
- package/dist/components/charts/ScatterGraph/ScatterGraph.js.map +0 -1
- package/dist/components/composed/tdp-link.cjs +0 -2
- package/dist/components/composed/tdp-link.cjs.map +0 -1
- package/dist/components/composed/tdp-link.js +0 -84
- package/dist/components/composed/tdp-link.js.map +0 -1
- package/dist/components/composed/tdp-url.cjs.map +0 -1
- package/dist/components/composed/tdp-url.js.map +0 -1
- package/dist/components/ui/accordion.cjs +0 -2
- package/dist/components/ui/accordion.cjs.map +0 -1
- package/dist/components/ui/accordion.js +0 -83
- package/dist/components/ui/accordion.js.map +0 -1
- package/dist/components/ui/alert-dialog.cjs +0 -2
- package/dist/components/ui/alert-dialog.cjs.map +0 -1
- package/dist/components/ui/alert-dialog.js +0 -181
- package/dist/components/ui/alert-dialog.js.map +0 -1
- package/dist/components/ui/alert.cjs +0 -2
- package/dist/components/ui/alert.cjs.map +0 -1
- package/dist/components/ui/alert.js +0 -81
- package/dist/components/ui/alert.js.map +0 -1
- package/dist/components/ui/aspect-ratio.cjs.map +0 -1
- package/dist/components/ui/aspect-ratio.js.map +0 -1
- package/dist/components/ui/avatar.cjs +0 -2
- package/dist/components/ui/avatar.cjs.map +0 -1
- package/dist/components/ui/avatar.js +0 -107
- package/dist/components/ui/avatar.js.map +0 -1
- package/dist/components/ui/badge.cjs +0 -2
- package/dist/components/ui/badge.cjs.map +0 -1
- package/dist/components/ui/badge.js +0 -47
- package/dist/components/ui/badge.js.map +0 -1
- package/dist/components/ui/banner.cjs +0 -2
- package/dist/components/ui/banner.cjs.map +0 -1
- package/dist/components/ui/banner.js +0 -80
- package/dist/components/ui/banner.js.map +0 -1
- package/dist/components/ui/breadcrumb.cjs +0 -2
- package/dist/components/ui/breadcrumb.cjs.map +0 -1
- package/dist/components/ui/breadcrumb.js +0 -118
- package/dist/components/ui/breadcrumb.js.map +0 -1
- package/dist/components/ui/button-group.cjs +0 -2
- package/dist/components/ui/button-group.cjs.map +0 -1
- package/dist/components/ui/button-group.js +0 -77
- package/dist/components/ui/button-group.js.map +0 -1
- package/dist/components/ui/button.cjs +0 -2
- package/dist/components/ui/button.cjs.map +0 -1
- package/dist/components/ui/button.js +0 -57
- package/dist/components/ui/button.js.map +0 -1
- package/dist/components/ui/calendar.cjs +0 -2
- package/dist/components/ui/calendar.cjs.map +0 -1
- package/dist/components/ui/calendar.js +0 -174
- package/dist/components/ui/calendar.js.map +0 -1
- package/dist/components/ui/card.cjs +0 -2
- package/dist/components/ui/card.cjs.map +0 -1
- package/dist/components/ui/card.js +0 -102
- package/dist/components/ui/card.js.map +0 -1
- package/dist/components/ui/carousel.cjs +0 -2
- package/dist/components/ui/carousel.cjs.map +0 -1
- package/dist/components/ui/carousel.js +0 -179
- package/dist/components/ui/carousel.js.map +0 -1
- package/dist/components/ui/checkbox.cjs +0 -2
- package/dist/components/ui/checkbox.cjs.map +0 -1
- package/dist/components/ui/checkbox.js +0 -35
- package/dist/components/ui/checkbox.js.map +0 -1
- package/dist/components/ui/code-block.cjs +0 -4
- package/dist/components/ui/code-block.cjs.map +0 -1
- package/dist/components/ui/code-block.js +0 -306
- package/dist/components/ui/code-block.js.map +0 -1
- package/dist/components/ui/code-editor.cjs +0 -2
- package/dist/components/ui/code-editor.cjs.map +0 -1
- package/dist/components/ui/code-editor.js +0 -103
- package/dist/components/ui/code-editor.js.map +0 -1
- package/dist/components/ui/collapsible.cjs.map +0 -1
- package/dist/components/ui/collapsible.js.map +0 -1
- package/dist/components/ui/combobox.cjs +0 -2
- package/dist/components/ui/combobox.cjs.map +0 -1
- package/dist/components/ui/combobox.js +0 -281
- package/dist/components/ui/combobox.js.map +0 -1
- package/dist/components/ui/command.cjs +0 -2
- package/dist/components/ui/command.cjs.map +0 -1
- package/dist/components/ui/command.js +0 -174
- package/dist/components/ui/command.js.map +0 -1
- package/dist/components/ui/context-menu.cjs +0 -2
- package/dist/components/ui/context-menu.cjs.map +0 -1
- package/dist/components/ui/context-menu.js +0 -236
- package/dist/components/ui/context-menu.js.map +0 -1
- package/dist/components/ui/dialog.cjs +0 -2
- package/dist/components/ui/dialog.cjs.map +0 -1
- package/dist/components/ui/dialog.js +0 -165
- package/dist/components/ui/dialog.js.map +0 -1
- package/dist/components/ui/drawer.cjs +0 -2
- package/dist/components/ui/drawer.cjs.map +0 -1
- package/dist/components/ui/drawer.js +0 -125
- package/dist/components/ui/drawer.js.map +0 -1
- package/dist/components/ui/dropdown-menu.cjs +0 -2
- package/dist/components/ui/dropdown-menu.cjs.map +0 -1
- package/dist/components/ui/dropdown-menu.js +0 -252
- package/dist/components/ui/dropdown-menu.js.map +0 -1
- package/dist/components/ui/field.cjs +0 -2
- package/dist/components/ui/field.cjs.map +0 -1
- package/dist/components/ui/field.js +0 -210
- package/dist/components/ui/field.js.map +0 -1
- package/dist/components/ui/hover-card.cjs +0 -2
- package/dist/components/ui/hover-card.cjs.map +0 -1
- package/dist/components/ui/hover-card.js +0 -39
- package/dist/components/ui/hover-card.js.map +0 -1
- package/dist/components/ui/input-group.cjs +0 -2
- package/dist/components/ui/input-group.cjs.map +0 -1
- package/dist/components/ui/input-group.js +0 -145
- package/dist/components/ui/input-group.js.map +0 -1
- package/dist/components/ui/input-otp.cjs +0 -2
- package/dist/components/ui/input-otp.cjs.map +0 -1
- package/dist/components/ui/input-otp.js +0 -82
- package/dist/components/ui/input-otp.js.map +0 -1
- package/dist/components/ui/input.cjs +0 -2
- package/dist/components/ui/input.cjs.map +0 -1
- package/dist/components/ui/input.js +0 -20
- package/dist/components/ui/input.js.map +0 -1
- package/dist/components/ui/item.cjs +0 -2
- package/dist/components/ui/item.cjs.map +0 -1
- package/dist/components/ui/item.js +0 -191
- package/dist/components/ui/item.js.map +0 -1
- package/dist/components/ui/kbd.cjs +0 -2
- package/dist/components/ui/kbd.cjs.map +0 -1
- package/dist/components/ui/kbd.js +0 -30
- package/dist/components/ui/kbd.js.map +0 -1
- package/dist/components/ui/label.cjs +0 -2
- package/dist/components/ui/label.cjs.map +0 -1
- package/dist/components/ui/label.js +0 -23
- package/dist/components/ui/label.js.map +0 -1
- package/dist/components/ui/menubar.cjs +0 -2
- package/dist/components/ui/menubar.cjs.map +0 -1
- package/dist/components/ui/menubar.js +0 -256
- package/dist/components/ui/menubar.js.map +0 -1
- package/dist/components/ui/navigation-menu.cjs +0 -2
- package/dist/components/ui/navigation-menu.cjs.map +0 -1
- package/dist/components/ui/navigation-menu.js +0 -164
- package/dist/components/ui/navigation-menu.js.map +0 -1
- package/dist/components/ui/popover.cjs +0 -2
- package/dist/components/ui/popover.cjs.map +0 -1
- package/dist/components/ui/popover.js +0 -45
- package/dist/components/ui/popover.js.map +0 -1
- package/dist/components/ui/radio-group.cjs +0 -2
- package/dist/components/ui/radio-group.cjs.map +0 -1
- package/dist/components/ui/radio-group.js +0 -45
- package/dist/components/ui/radio-group.js.map +0 -1
- package/dist/components/ui/resizable.cjs +0 -2
- package/dist/components/ui/resizable.cjs.map +0 -1
- package/dist/components/ui/resizable.js +0 -58
- package/dist/components/ui/resizable.js.map +0 -1
- package/dist/components/ui/scroll-area.cjs +0 -2
- package/dist/components/ui/scroll-area.cjs.map +0 -1
- package/dist/components/ui/scroll-area.js +0 -60
- package/dist/components/ui/scroll-area.js.map +0 -1
- package/dist/components/ui/select.cjs +0 -2
- package/dist/components/ui/select.cjs.map +0 -1
- package/dist/components/ui/select.js +0 -184
- package/dist/components/ui/select.js.map +0 -1
- package/dist/components/ui/separator.cjs +0 -2
- package/dist/components/ui/separator.cjs.map +0 -1
- package/dist/components/ui/separator.js +0 -27
- package/dist/components/ui/separator.js.map +0 -1
- package/dist/components/ui/sheet.cjs +0 -2
- package/dist/components/ui/sheet.cjs.map +0 -1
- package/dist/components/ui/sheet.js +0 -137
- package/dist/components/ui/sheet.js.map +0 -1
- package/dist/components/ui/sidebar.cjs +0 -2
- package/dist/components/ui/sidebar.cjs.map +0 -1
- package/dist/components/ui/sidebar.js +0 -579
- package/dist/components/ui/sidebar.js.map +0 -1
- package/dist/components/ui/skeleton.cjs +0 -2
- package/dist/components/ui/skeleton.cjs.map +0 -1
- package/dist/components/ui/skeleton.js +0 -24
- package/dist/components/ui/skeleton.js.map +0 -1
- package/dist/components/ui/slider.cjs +0 -2
- package/dist/components/ui/slider.cjs.map +0 -1
- package/dist/components/ui/slider.js +0 -60
- package/dist/components/ui/slider.js.map +0 -1
- package/dist/components/ui/sonner.cjs +0 -2
- package/dist/components/ui/sonner.cjs.map +0 -1
- package/dist/components/ui/sonner.js +0 -37
- package/dist/components/ui/sonner.js.map +0 -1
- package/dist/components/ui/spinner.cjs +0 -2
- package/dist/components/ui/spinner.cjs.map +0 -1
- package/dist/components/ui/spinner.js +0 -39
- package/dist/components/ui/spinner.js.map +0 -1
- package/dist/components/ui/switch.cjs +0 -2
- package/dist/components/ui/switch.cjs.map +0 -1
- package/dist/components/ui/switch.js +0 -32
- package/dist/components/ui/switch.js.map +0 -1
- package/dist/components/ui/table.cjs +0 -2
- package/dist/components/ui/table.cjs.map +0 -1
- package/dist/components/ui/table.js +0 -152
- package/dist/components/ui/table.js.map +0 -1
- package/dist/components/ui/tabs.cjs +0 -2
- package/dist/components/ui/tabs.cjs.map +0 -1
- package/dist/components/ui/tabs.js +0 -92
- package/dist/components/ui/tabs.js.map +0 -1
- package/dist/components/ui/tetrascience-icon.cjs +0 -2
- package/dist/components/ui/tetrascience-icon.cjs.map +0 -1
- package/dist/components/ui/tetrascience-icon.js +0 -46
- package/dist/components/ui/tetrascience-icon.js.map +0 -1
- package/dist/components/ui/textarea.cjs +0 -2
- package/dist/components/ui/textarea.cjs.map +0 -1
- package/dist/components/ui/textarea.js +0 -19
- package/dist/components/ui/textarea.js.map +0 -1
- package/dist/components/ui/toggle-group.cjs +0 -2
- package/dist/components/ui/toggle-group.cjs.map +0 -1
- package/dist/components/ui/toggle-group.js +0 -77
- package/dist/components/ui/toggle-group.js.map +0 -1
- package/dist/components/ui/toggle.cjs +0 -2
- package/dist/components/ui/toggle.cjs.map +0 -1
- package/dist/components/ui/toggle.js +0 -44
- package/dist/components/ui/toggle.js.map +0 -1
- package/dist/components/ui/tooltip.cjs +0 -2
- package/dist/components/ui/tooltip.cjs.map +0 -1
- package/dist/components/ui/tooltip.js +0 -56
- package/dist/components/ui/tooltip.js.map +0 -1
- package/dist/databricks.d.ts +0 -129
- package/dist/providers/athena.d.ts +0 -9
- package/dist/providers/databricks.d.ts +0 -9
- package/dist/providers/snowflake.d.ts +0 -9
- package/dist/snowflake.d.ts +0 -125
- /package/dist/components/charts/{ChromatogramChart → Chromatogram}/peakDetection.cjs +0 -0
- /package/dist/components/charts/{ChromatogramChart → Chromatogram}/peakDetection.js +0 -0
- /package/dist/{components/composed → composed}/tdp-url.cjs +0 -0
- /package/dist/{components/composed → composed}/tdp-url.js +0 -0
- /package/dist/{components/ui → ui}/aspect-ratio.cjs +0 -0
- /package/dist/{components/ui → ui}/aspect-ratio.js +0 -0
- /package/dist/{components/ui → ui}/collapsible.cjs +0 -0
- /package/dist/{components/ui → ui}/collapsible.js +0 -0
|
@@ -1,774 +0,0 @@
|
|
|
1
|
-
import { jsxs as j, Fragment as fe, jsx as n } from "react/jsx-runtime";
|
|
2
|
-
import { ImageIcon as he, Monitor as ge, PlusIcon as ve, CornerDownLeftIcon as Ie, SquareIcon as Pe, XIcon as ye } from "lucide-react";
|
|
3
|
-
import { createContext as G, useRef as O, useState as E, useEffect as U, useCallback as d, useMemo as W, Children as be, useContext as z } from "react";
|
|
4
|
-
import { Command as Ce, CommandEmpty as we, CommandGroup as xe, CommandInput as Ne, CommandItem as Te, CommandList as Se, CommandSeparator as De } from "../ui/command.js";
|
|
5
|
-
import { DropdownMenuItem as K, DropdownMenu as Le, DropdownMenuContent as Re, DropdownMenuTrigger as Ae } from "../ui/dropdown-menu.js";
|
|
6
|
-
import { HoverCard as Ue, HoverCardContent as ke, HoverCardTrigger as Me } from "../ui/hover-card.js";
|
|
7
|
-
import { InputGroup as Oe, InputGroupButton as Y, InputGroupAddon as ee, InputGroupTextarea as je } from "../ui/input-group.js";
|
|
8
|
-
import { Select as ze, SelectContent as Ee, SelectItem as _e, SelectTrigger as Be, SelectValue as Fe } from "../ui/select.js";
|
|
9
|
-
import { Spinner as He } from "../ui/spinner.js";
|
|
10
|
-
import { Tooltip as We, TooltipTrigger as Ge, TooltipContent as qe } from "../ui/tooltip.js";
|
|
11
|
-
import { cn as l } from "../../lib/utils.js";
|
|
12
|
-
const Ve = async (e) => {
|
|
13
|
-
try {
|
|
14
|
-
const r = await (await fetch(e)).blob();
|
|
15
|
-
return new Promise((o) => {
|
|
16
|
-
const c = new FileReader();
|
|
17
|
-
c.onloadend = () => o(c.result), c.onerror = () => o(null), c.readAsDataURL(r);
|
|
18
|
-
});
|
|
19
|
-
} catch {
|
|
20
|
-
return null;
|
|
21
|
-
}
|
|
22
|
-
}, Ke = async () => {
|
|
23
|
-
if (typeof navigator > "u" || !navigator.mediaDevices?.getDisplayMedia)
|
|
24
|
-
return null;
|
|
25
|
-
let e = null;
|
|
26
|
-
const t = document.createElement("video");
|
|
27
|
-
t.muted = !0, t.playsInline = !0;
|
|
28
|
-
try {
|
|
29
|
-
e = await navigator.mediaDevices.getDisplayMedia({
|
|
30
|
-
audio: !1,
|
|
31
|
-
video: !0
|
|
32
|
-
}), t.srcObject = e, await new Promise((v, C) => {
|
|
33
|
-
t.onloadedmetadata = () => v(), t.onerror = () => C(new Error("Failed to load screen stream"));
|
|
34
|
-
}), await t.play();
|
|
35
|
-
const r = t.videoWidth, o = t.videoHeight;
|
|
36
|
-
if (!r || !o)
|
|
37
|
-
return null;
|
|
38
|
-
const c = document.createElement("canvas");
|
|
39
|
-
c.width = r, c.height = o;
|
|
40
|
-
const i = c.getContext("2d");
|
|
41
|
-
if (!i)
|
|
42
|
-
return null;
|
|
43
|
-
i.drawImage(t, 0, 0, r, o);
|
|
44
|
-
const a = await new Promise((v) => {
|
|
45
|
-
c.toBlob(v, "image/png");
|
|
46
|
-
});
|
|
47
|
-
if (!a)
|
|
48
|
-
return null;
|
|
49
|
-
const g = (/* @__PURE__ */ new Date()).toISOString().replace(/[:.]/g, "-").replace("T", "_").replace("Z", "");
|
|
50
|
-
return new File([a], `screenshot-${g}.png`, {
|
|
51
|
-
lastModified: Date.now(),
|
|
52
|
-
type: "image/png"
|
|
53
|
-
});
|
|
54
|
-
} finally {
|
|
55
|
-
if (e)
|
|
56
|
-
for (const r of e.getTracks())
|
|
57
|
-
r.stop();
|
|
58
|
-
t.pause(), t.srcObject = null;
|
|
59
|
-
}
|
|
60
|
-
}, X = G(
|
|
61
|
-
null
|
|
62
|
-
), Z = G(
|
|
63
|
-
null
|
|
64
|
-
), ct = () => {
|
|
65
|
-
const e = z(X);
|
|
66
|
-
if (!e)
|
|
67
|
-
throw new Error(
|
|
68
|
-
"Wrap your component inside <PromptInputProvider> to use usePromptInputController()."
|
|
69
|
-
);
|
|
70
|
-
return e;
|
|
71
|
-
}, te = () => z(X), it = () => {
|
|
72
|
-
const e = z(Z);
|
|
73
|
-
if (!e)
|
|
74
|
-
throw new Error(
|
|
75
|
-
"Wrap your component inside <PromptInputProvider> to use useProviderAttachments()."
|
|
76
|
-
);
|
|
77
|
-
return e;
|
|
78
|
-
}, Xe = () => z(Z), lt = ({
|
|
79
|
-
initialInput: e = "",
|
|
80
|
-
children: t
|
|
81
|
-
}) => {
|
|
82
|
-
const [r, o] = E(e), c = d(() => o(""), []), [i, a] = E([]), g = O(null), v = O(() => {
|
|
83
|
-
}), C = d((u) => {
|
|
84
|
-
const b = [...u];
|
|
85
|
-
b.length !== 0 && a((R) => [
|
|
86
|
-
...R,
|
|
87
|
-
...b.map((D) => ({
|
|
88
|
-
filename: D.name,
|
|
89
|
-
id: crypto.randomUUID(),
|
|
90
|
-
mediaType: D.type,
|
|
91
|
-
type: "file",
|
|
92
|
-
url: URL.createObjectURL(D)
|
|
93
|
-
}))
|
|
94
|
-
]);
|
|
95
|
-
}, []), L = d((u) => {
|
|
96
|
-
a((b) => {
|
|
97
|
-
const R = b.find((D) => D.id === u);
|
|
98
|
-
return R?.url && URL.revokeObjectURL(R.url), b.filter((D) => D.id !== u);
|
|
99
|
-
});
|
|
100
|
-
}, []), f = d(() => {
|
|
101
|
-
a((u) => {
|
|
102
|
-
for (const b of u)
|
|
103
|
-
b.url && URL.revokeObjectURL(b.url);
|
|
104
|
-
return [];
|
|
105
|
-
});
|
|
106
|
-
}, []), I = O(i);
|
|
107
|
-
U(() => {
|
|
108
|
-
I.current = i;
|
|
109
|
-
}, [i]), U(
|
|
110
|
-
() => () => {
|
|
111
|
-
for (const u of I.current)
|
|
112
|
-
u.url && URL.revokeObjectURL(u.url);
|
|
113
|
-
},
|
|
114
|
-
[]
|
|
115
|
-
);
|
|
116
|
-
const T = d(() => {
|
|
117
|
-
v.current?.();
|
|
118
|
-
}, []), p = W(
|
|
119
|
-
() => ({
|
|
120
|
-
add: C,
|
|
121
|
-
clear: f,
|
|
122
|
-
fileInputRef: g,
|
|
123
|
-
files: i,
|
|
124
|
-
openFileDialog: T,
|
|
125
|
-
remove: L
|
|
126
|
-
}),
|
|
127
|
-
[i, C, L, f, T]
|
|
128
|
-
), N = d(
|
|
129
|
-
(u, b) => {
|
|
130
|
-
g.current = u.current, v.current = b;
|
|
131
|
-
},
|
|
132
|
-
[]
|
|
133
|
-
), S = W(
|
|
134
|
-
() => ({
|
|
135
|
-
__registerFileInput: N,
|
|
136
|
-
attachments: p,
|
|
137
|
-
textInput: {
|
|
138
|
-
clear: c,
|
|
139
|
-
setInput: o,
|
|
140
|
-
value: r
|
|
141
|
-
}
|
|
142
|
-
}),
|
|
143
|
-
[r, c, p, N]
|
|
144
|
-
);
|
|
145
|
-
return /* @__PURE__ */ n(X.Provider, { value: S, children: /* @__PURE__ */ n(Z.Provider, { value: p, children: t }) });
|
|
146
|
-
}, ne = G(null), $ = () => {
|
|
147
|
-
const e = Xe(), r = z(ne) ?? e;
|
|
148
|
-
if (!r)
|
|
149
|
-
throw new Error(
|
|
150
|
-
"usePromptInputAttachments must be used within a PromptInput or PromptInputProvider"
|
|
151
|
-
);
|
|
152
|
-
return r;
|
|
153
|
-
}, re = G(null), ut = () => {
|
|
154
|
-
const e = z(re);
|
|
155
|
-
if (!e)
|
|
156
|
-
throw new Error(
|
|
157
|
-
"usePromptInputReferencedSources must be used within a LocalReferencedSourcesContext.Provider"
|
|
158
|
-
);
|
|
159
|
-
return e;
|
|
160
|
-
}, mt = ({
|
|
161
|
-
label: e = "Add photos or files",
|
|
162
|
-
...t
|
|
163
|
-
}) => {
|
|
164
|
-
const r = $(), o = d(
|
|
165
|
-
(c) => {
|
|
166
|
-
c.preventDefault(), r.openFileDialog();
|
|
167
|
-
},
|
|
168
|
-
[r]
|
|
169
|
-
);
|
|
170
|
-
return /* @__PURE__ */ j(K, { ...t, onSelect: o, children: [
|
|
171
|
-
/* @__PURE__ */ n(he, { className: "mr-2 size-4" }),
|
|
172
|
-
" ",
|
|
173
|
-
e
|
|
174
|
-
] });
|
|
175
|
-
}, dt = ({
|
|
176
|
-
label: e = "Take screenshot",
|
|
177
|
-
onSelect: t,
|
|
178
|
-
...r
|
|
179
|
-
}) => {
|
|
180
|
-
const o = $(), c = d(
|
|
181
|
-
async (i) => {
|
|
182
|
-
if (t?.(i), !i.defaultPrevented)
|
|
183
|
-
try {
|
|
184
|
-
const a = await Ke();
|
|
185
|
-
a && o.add([a]);
|
|
186
|
-
} catch (a) {
|
|
187
|
-
if (a instanceof DOMException && (a.name === "NotAllowedError" || a.name === "AbortError"))
|
|
188
|
-
return;
|
|
189
|
-
throw a;
|
|
190
|
-
}
|
|
191
|
-
},
|
|
192
|
-
[t, o]
|
|
193
|
-
);
|
|
194
|
-
return /* @__PURE__ */ j(K, { ...r, onSelect: c, children: [
|
|
195
|
-
/* @__PURE__ */ n(ge, { className: "mr-2 size-4" }),
|
|
196
|
-
e
|
|
197
|
-
] });
|
|
198
|
-
}, pt = ({
|
|
199
|
-
className: e,
|
|
200
|
-
accept: t,
|
|
201
|
-
multiple: r,
|
|
202
|
-
globalDrop: o,
|
|
203
|
-
syncHiddenInput: c,
|
|
204
|
-
maxFiles: i,
|
|
205
|
-
maxFileSize: a,
|
|
206
|
-
onError: g,
|
|
207
|
-
onSubmit: v,
|
|
208
|
-
children: C,
|
|
209
|
-
...L
|
|
210
|
-
}) => {
|
|
211
|
-
const f = te(), I = !!f, T = O(null), p = O(null), [N, S] = E([]), u = I ? f.attachments.files : N, [b, R] = E([]), D = O(u);
|
|
212
|
-
U(() => {
|
|
213
|
-
D.current = u;
|
|
214
|
-
}, [u]);
|
|
215
|
-
const oe = d(() => {
|
|
216
|
-
T.current?.click();
|
|
217
|
-
}, []), _ = d(
|
|
218
|
-
(s) => !t || t.trim() === "" ? !0 : t.split(",").map((m) => m.trim()).filter(Boolean).some((m) => {
|
|
219
|
-
if (m.endsWith("/*")) {
|
|
220
|
-
const y = m.slice(0, -1);
|
|
221
|
-
return s.type.startsWith(y);
|
|
222
|
-
}
|
|
223
|
-
return s.type === m;
|
|
224
|
-
}),
|
|
225
|
-
[t]
|
|
226
|
-
), se = d(
|
|
227
|
-
(s) => {
|
|
228
|
-
const h = [...s], m = h.filter((w) => _(w));
|
|
229
|
-
if (h.length && m.length === 0) {
|
|
230
|
-
g?.({
|
|
231
|
-
code: "accept",
|
|
232
|
-
message: "No files match the accepted types."
|
|
233
|
-
});
|
|
234
|
-
return;
|
|
235
|
-
}
|
|
236
|
-
const y = (w) => a ? w.size <= a : !0, P = m.filter(y);
|
|
237
|
-
if (m.length > 0 && P.length === 0) {
|
|
238
|
-
g?.({
|
|
239
|
-
code: "max_file_size",
|
|
240
|
-
message: "All files exceed the maximum size."
|
|
241
|
-
});
|
|
242
|
-
return;
|
|
243
|
-
}
|
|
244
|
-
S((w) => {
|
|
245
|
-
const x = typeof i == "number" ? Math.max(0, i - w.length) : void 0, k = typeof x == "number" ? P.slice(0, x) : P;
|
|
246
|
-
typeof x == "number" && P.length > x && g?.({
|
|
247
|
-
code: "max_files",
|
|
248
|
-
message: "Too many files. Some were not added."
|
|
249
|
-
});
|
|
250
|
-
const M = [];
|
|
251
|
-
for (const V of k)
|
|
252
|
-
M.push({
|
|
253
|
-
filename: V.name,
|
|
254
|
-
id: crypto.randomUUID(),
|
|
255
|
-
mediaType: V.type,
|
|
256
|
-
type: "file",
|
|
257
|
-
url: URL.createObjectURL(V)
|
|
258
|
-
});
|
|
259
|
-
return [...w, ...M];
|
|
260
|
-
});
|
|
261
|
-
},
|
|
262
|
-
[_, i, a, g]
|
|
263
|
-
), ae = d(
|
|
264
|
-
(s) => S((h) => {
|
|
265
|
-
const m = h.find((y) => y.id === s);
|
|
266
|
-
return m?.url && URL.revokeObjectURL(m.url), h.filter((y) => y.id !== s);
|
|
267
|
-
}),
|
|
268
|
-
[]
|
|
269
|
-
), ce = d(
|
|
270
|
-
(s) => {
|
|
271
|
-
const h = [...s], m = h.filter((M) => _(M));
|
|
272
|
-
if (h.length && m.length === 0) {
|
|
273
|
-
g?.({
|
|
274
|
-
code: "accept",
|
|
275
|
-
message: "No files match the accepted types."
|
|
276
|
-
});
|
|
277
|
-
return;
|
|
278
|
-
}
|
|
279
|
-
const y = (M) => a ? M.size <= a : !0, P = m.filter(y);
|
|
280
|
-
if (m.length > 0 && P.length === 0) {
|
|
281
|
-
g?.({
|
|
282
|
-
code: "max_file_size",
|
|
283
|
-
message: "All files exceed the maximum size."
|
|
284
|
-
});
|
|
285
|
-
return;
|
|
286
|
-
}
|
|
287
|
-
const w = u.length, x = typeof i == "number" ? Math.max(0, i - w) : void 0, k = typeof x == "number" ? P.slice(0, x) : P;
|
|
288
|
-
typeof x == "number" && P.length > x && g?.({
|
|
289
|
-
code: "max_files",
|
|
290
|
-
message: "Too many files. Some were not added."
|
|
291
|
-
}), k.length > 0 && f?.attachments.add(k);
|
|
292
|
-
},
|
|
293
|
-
[_, a, i, g, u.length, f]
|
|
294
|
-
), B = d(
|
|
295
|
-
() => I ? f?.attachments.clear() : S((s) => {
|
|
296
|
-
for (const h of s)
|
|
297
|
-
h.url && URL.revokeObjectURL(h.url);
|
|
298
|
-
return [];
|
|
299
|
-
}),
|
|
300
|
-
[I, f]
|
|
301
|
-
), F = d(
|
|
302
|
-
() => R([]),
|
|
303
|
-
[]
|
|
304
|
-
), A = I ? ce : se, J = I ? f.attachments.remove : ae, Q = I ? f.attachments.openFileDialog : oe, q = d(() => {
|
|
305
|
-
B(), F();
|
|
306
|
-
}, [B, F]);
|
|
307
|
-
U(() => {
|
|
308
|
-
I && f.__registerFileInput(T, () => T.current?.click());
|
|
309
|
-
}, [I, f]), U(() => {
|
|
310
|
-
c && T.current && u.length === 0 && (T.current.value = "");
|
|
311
|
-
}, [u, c]);
|
|
312
|
-
const H = d(
|
|
313
|
-
(s, h) => {
|
|
314
|
-
const m = (P) => {
|
|
315
|
-
P.dataTransfer?.types?.includes("Files") && P.preventDefault();
|
|
316
|
-
}, y = (P) => {
|
|
317
|
-
const w = P;
|
|
318
|
-
w.dataTransfer?.types?.includes("Files") && P.preventDefault(), w.dataTransfer?.files && w.dataTransfer.files.length > 0 && h(w.dataTransfer.files);
|
|
319
|
-
};
|
|
320
|
-
return s.addEventListener("dragover", m), s.addEventListener("drop", y), () => {
|
|
321
|
-
s.removeEventListener("dragover", m), s.removeEventListener("drop", y);
|
|
322
|
-
};
|
|
323
|
-
},
|
|
324
|
-
[]
|
|
325
|
-
);
|
|
326
|
-
U(() => {
|
|
327
|
-
const s = p.current;
|
|
328
|
-
if (s && !o)
|
|
329
|
-
return H(s, A);
|
|
330
|
-
}, [A, o, H]), U(() => {
|
|
331
|
-
if (o)
|
|
332
|
-
return H(document, A);
|
|
333
|
-
}, [A, o, H]), U(
|
|
334
|
-
() => () => {
|
|
335
|
-
if (!I)
|
|
336
|
-
for (const s of D.current)
|
|
337
|
-
s.url && URL.revokeObjectURL(s.url);
|
|
338
|
-
},
|
|
339
|
-
[I]
|
|
340
|
-
);
|
|
341
|
-
const ie = d(
|
|
342
|
-
(s) => {
|
|
343
|
-
s.currentTarget.files && A(s.currentTarget.files), s.currentTarget.value = "";
|
|
344
|
-
},
|
|
345
|
-
[A]
|
|
346
|
-
), le = W(
|
|
347
|
-
() => ({
|
|
348
|
-
add: A,
|
|
349
|
-
clear: B,
|
|
350
|
-
fileInputRef: T,
|
|
351
|
-
files: u.map((s) => ({ ...s, id: s.id })),
|
|
352
|
-
openFileDialog: Q,
|
|
353
|
-
remove: J
|
|
354
|
-
}),
|
|
355
|
-
[u, A, J, B, Q]
|
|
356
|
-
), ue = W(
|
|
357
|
-
() => ({
|
|
358
|
-
add: (s) => {
|
|
359
|
-
const h = Array.isArray(s) ? s : [s];
|
|
360
|
-
R((m) => [
|
|
361
|
-
...m,
|
|
362
|
-
...h.map((y) => ({ ...y, id: crypto.randomUUID() }))
|
|
363
|
-
]);
|
|
364
|
-
},
|
|
365
|
-
clear: F,
|
|
366
|
-
remove: (s) => {
|
|
367
|
-
R((h) => h.filter((m) => m.id !== s));
|
|
368
|
-
},
|
|
369
|
-
sources: b
|
|
370
|
-
}),
|
|
371
|
-
[b, F]
|
|
372
|
-
), me = d(
|
|
373
|
-
async (s) => {
|
|
374
|
-
s.preventDefault();
|
|
375
|
-
const h = s.currentTarget, m = I ? f.textInput.value : new FormData(h).get("message") || "";
|
|
376
|
-
I || h.reset();
|
|
377
|
-
try {
|
|
378
|
-
const y = await Promise.all(
|
|
379
|
-
u.map(async ({ id: w, ...x }) => {
|
|
380
|
-
if (x.url?.startsWith("blob:")) {
|
|
381
|
-
const k = await Ve(x.url);
|
|
382
|
-
return {
|
|
383
|
-
...x,
|
|
384
|
-
url: k ?? x.url
|
|
385
|
-
};
|
|
386
|
-
}
|
|
387
|
-
return x;
|
|
388
|
-
})
|
|
389
|
-
), P = v({ files: y, text: m }, s);
|
|
390
|
-
if (P instanceof Promise)
|
|
391
|
-
try {
|
|
392
|
-
await P, q(), I && f.textInput.clear();
|
|
393
|
-
} catch {
|
|
394
|
-
}
|
|
395
|
-
else
|
|
396
|
-
q(), I && f.textInput.clear();
|
|
397
|
-
} catch {
|
|
398
|
-
}
|
|
399
|
-
},
|
|
400
|
-
[I, f, u, v, q]
|
|
401
|
-
), de = /* @__PURE__ */ j(fe, { children: [
|
|
402
|
-
/* @__PURE__ */ n(
|
|
403
|
-
"input",
|
|
404
|
-
{
|
|
405
|
-
accept: t,
|
|
406
|
-
"aria-label": "Upload files",
|
|
407
|
-
className: "hidden",
|
|
408
|
-
multiple: r,
|
|
409
|
-
onChange: ie,
|
|
410
|
-
ref: T,
|
|
411
|
-
title: "Upload files",
|
|
412
|
-
type: "file"
|
|
413
|
-
}
|
|
414
|
-
),
|
|
415
|
-
/* @__PURE__ */ n(
|
|
416
|
-
"form",
|
|
417
|
-
{
|
|
418
|
-
className: l("w-full", e),
|
|
419
|
-
onSubmit: me,
|
|
420
|
-
ref: p,
|
|
421
|
-
...L,
|
|
422
|
-
children: /* @__PURE__ */ n(Oe, { className: "border-border overflow-hidden has-[[data-slot=input-group-control]:focus-visible]:ring-0", children: C })
|
|
423
|
-
}
|
|
424
|
-
)
|
|
425
|
-
] }), pe = /* @__PURE__ */ n(re.Provider, { value: ue, children: de });
|
|
426
|
-
return /* @__PURE__ */ n(ne.Provider, { value: le, children: pe });
|
|
427
|
-
}, ft = ({
|
|
428
|
-
className: e,
|
|
429
|
-
...t
|
|
430
|
-
}) => /* @__PURE__ */ n("div", { className: l("contents", e), ...t }), ht = ({
|
|
431
|
-
onChange: e,
|
|
432
|
-
onKeyDown: t,
|
|
433
|
-
className: r,
|
|
434
|
-
placeholder: o = "What would you like to know?",
|
|
435
|
-
...c
|
|
436
|
-
}) => {
|
|
437
|
-
const i = te(), a = $(), [g, v] = E(!1), C = d(
|
|
438
|
-
(p) => {
|
|
439
|
-
if (t?.(p), !p.defaultPrevented) {
|
|
440
|
-
if (p.key === "Enter") {
|
|
441
|
-
if (g || p.nativeEvent.isComposing || p.shiftKey)
|
|
442
|
-
return;
|
|
443
|
-
p.preventDefault();
|
|
444
|
-
const { form: N } = p.currentTarget;
|
|
445
|
-
if (N?.querySelector(
|
|
446
|
-
'button[type="submit"]'
|
|
447
|
-
)?.disabled)
|
|
448
|
-
return;
|
|
449
|
-
N?.requestSubmit();
|
|
450
|
-
}
|
|
451
|
-
if (p.key === "Backspace" && p.currentTarget.value === "" && a.files.length > 0) {
|
|
452
|
-
p.preventDefault();
|
|
453
|
-
const N = a.files[a.files.length - 1];
|
|
454
|
-
N && a.remove(N.id);
|
|
455
|
-
}
|
|
456
|
-
}
|
|
457
|
-
},
|
|
458
|
-
[t, g, a]
|
|
459
|
-
), L = d(
|
|
460
|
-
(p) => {
|
|
461
|
-
const N = p.clipboardData?.items;
|
|
462
|
-
if (!N)
|
|
463
|
-
return;
|
|
464
|
-
const S = [];
|
|
465
|
-
for (const u of N)
|
|
466
|
-
if (u.kind === "file") {
|
|
467
|
-
const b = u.getAsFile();
|
|
468
|
-
b && S.push(b);
|
|
469
|
-
}
|
|
470
|
-
S.length > 0 && (p.preventDefault(), a.add(S));
|
|
471
|
-
},
|
|
472
|
-
[a]
|
|
473
|
-
), f = d(() => v(!1), []), I = d(() => v(!0), []), T = i ? {
|
|
474
|
-
onChange: (p) => {
|
|
475
|
-
i.textInput.setInput(p.currentTarget.value), e?.(p);
|
|
476
|
-
},
|
|
477
|
-
value: i.textInput.value
|
|
478
|
-
} : {
|
|
479
|
-
onChange: e
|
|
480
|
-
};
|
|
481
|
-
return /* @__PURE__ */ n(
|
|
482
|
-
je,
|
|
483
|
-
{
|
|
484
|
-
className: l("field-sizing-content max-h-48 min-h-16", r),
|
|
485
|
-
name: "message",
|
|
486
|
-
onCompositionEnd: f,
|
|
487
|
-
onCompositionStart: I,
|
|
488
|
-
onKeyDown: C,
|
|
489
|
-
onPaste: L,
|
|
490
|
-
placeholder: o,
|
|
491
|
-
...c,
|
|
492
|
-
...T
|
|
493
|
-
}
|
|
494
|
-
);
|
|
495
|
-
}, gt = ({
|
|
496
|
-
className: e,
|
|
497
|
-
...t
|
|
498
|
-
}) => /* @__PURE__ */ n(
|
|
499
|
-
ee,
|
|
500
|
-
{
|
|
501
|
-
align: "block-end",
|
|
502
|
-
className: l("order-first flex-wrap gap-1", e),
|
|
503
|
-
...t
|
|
504
|
-
}
|
|
505
|
-
), vt = ({
|
|
506
|
-
className: e,
|
|
507
|
-
...t
|
|
508
|
-
}) => /* @__PURE__ */ n(
|
|
509
|
-
ee,
|
|
510
|
-
{
|
|
511
|
-
align: "block-end",
|
|
512
|
-
className: l("justify-between gap-1", e),
|
|
513
|
-
...t
|
|
514
|
-
}
|
|
515
|
-
), It = ({
|
|
516
|
-
className: e,
|
|
517
|
-
...t
|
|
518
|
-
}) => /* @__PURE__ */ n(
|
|
519
|
-
"div",
|
|
520
|
-
{
|
|
521
|
-
className: l("flex min-w-0 items-center gap-1", e),
|
|
522
|
-
...t
|
|
523
|
-
}
|
|
524
|
-
), Ze = ({
|
|
525
|
-
variant: e = "ghost",
|
|
526
|
-
className: t,
|
|
527
|
-
size: r,
|
|
528
|
-
tooltip: o,
|
|
529
|
-
...c
|
|
530
|
-
}) => {
|
|
531
|
-
const i = r ?? (be.count(c.children) > 1 ? "sm" : "icon-sm"), a = /* @__PURE__ */ n(
|
|
532
|
-
Y,
|
|
533
|
-
{
|
|
534
|
-
className: l(t),
|
|
535
|
-
size: i,
|
|
536
|
-
type: "button",
|
|
537
|
-
variant: e,
|
|
538
|
-
...c
|
|
539
|
-
}
|
|
540
|
-
);
|
|
541
|
-
if (!o)
|
|
542
|
-
return a;
|
|
543
|
-
const g = typeof o == "string" ? o : o.content, v = typeof o == "string" ? void 0 : o.shortcut, C = typeof o == "string" ? "top" : o.side ?? "top";
|
|
544
|
-
return /* @__PURE__ */ j(We, { children: [
|
|
545
|
-
/* @__PURE__ */ n(Ge, { asChild: !0, children: a }),
|
|
546
|
-
/* @__PURE__ */ j(qe, { side: C, children: [
|
|
547
|
-
g,
|
|
548
|
-
v && /* @__PURE__ */ n("span", { className: "ml-2 text-muted-foreground", children: v })
|
|
549
|
-
] })
|
|
550
|
-
] });
|
|
551
|
-
}, Pt = (e) => /* @__PURE__ */ n(Le, { ...e }), yt = ({
|
|
552
|
-
className: e,
|
|
553
|
-
children: t,
|
|
554
|
-
tooltip: r,
|
|
555
|
-
"aria-label": o,
|
|
556
|
-
...c
|
|
557
|
-
}) => {
|
|
558
|
-
const i = o ?? (typeof r == "string" ? r : typeof r?.content == "string" ? r.content : void 0);
|
|
559
|
-
return /* @__PURE__ */ n(Ae, { asChild: !0, children: /* @__PURE__ */ n(
|
|
560
|
-
Ze,
|
|
561
|
-
{
|
|
562
|
-
"aria-label": i,
|
|
563
|
-
className: e,
|
|
564
|
-
tooltip: r,
|
|
565
|
-
...c,
|
|
566
|
-
children: t ?? /* @__PURE__ */ n(ve, { className: "size-4" })
|
|
567
|
-
}
|
|
568
|
-
) });
|
|
569
|
-
}, bt = ({
|
|
570
|
-
className: e,
|
|
571
|
-
...t
|
|
572
|
-
}) => /* @__PURE__ */ n(Re, { align: "start", className: l(e), ...t }), Ct = ({
|
|
573
|
-
className: e,
|
|
574
|
-
...t
|
|
575
|
-
}) => /* @__PURE__ */ n(K, { className: l(e), ...t }), wt = ({
|
|
576
|
-
className: e,
|
|
577
|
-
variant: t = "default",
|
|
578
|
-
size: r = "icon-sm",
|
|
579
|
-
status: o,
|
|
580
|
-
onStop: c,
|
|
581
|
-
onClick: i,
|
|
582
|
-
children: a,
|
|
583
|
-
...g
|
|
584
|
-
}) => {
|
|
585
|
-
const v = o === "submitted" || o === "streaming";
|
|
586
|
-
let C = /* @__PURE__ */ n(Ie, { className: "size-4" });
|
|
587
|
-
o === "submitted" ? C = /* @__PURE__ */ n(He, {}) : o === "streaming" ? C = /* @__PURE__ */ n(Pe, { className: "size-4" }) : o === "error" && (C = /* @__PURE__ */ n(ye, { className: "size-4" }));
|
|
588
|
-
const L = d(
|
|
589
|
-
(f) => {
|
|
590
|
-
if (v && c) {
|
|
591
|
-
f.preventDefault(), c();
|
|
592
|
-
return;
|
|
593
|
-
}
|
|
594
|
-
i?.(f);
|
|
595
|
-
},
|
|
596
|
-
[v, c, i]
|
|
597
|
-
);
|
|
598
|
-
return /* @__PURE__ */ n(
|
|
599
|
-
Y,
|
|
600
|
-
{
|
|
601
|
-
"aria-label": v ? "Stop" : "Submit",
|
|
602
|
-
className: l(e),
|
|
603
|
-
onClick: L,
|
|
604
|
-
size: r,
|
|
605
|
-
type: v && c ? "button" : "submit",
|
|
606
|
-
variant: t,
|
|
607
|
-
...g,
|
|
608
|
-
children: a ?? C
|
|
609
|
-
}
|
|
610
|
-
);
|
|
611
|
-
}, xt = (e) => /* @__PURE__ */ n(ze, { ...e }), Nt = ({
|
|
612
|
-
className: e,
|
|
613
|
-
...t
|
|
614
|
-
}) => /* @__PURE__ */ n(
|
|
615
|
-
Be,
|
|
616
|
-
{
|
|
617
|
-
className: l(
|
|
618
|
-
"border-none bg-transparent font-medium text-muted-foreground shadow-none transition-colors",
|
|
619
|
-
"hover:bg-accent hover:text-foreground aria-expanded:bg-accent aria-expanded:text-foreground",
|
|
620
|
-
e
|
|
621
|
-
),
|
|
622
|
-
...t
|
|
623
|
-
}
|
|
624
|
-
), Tt = ({
|
|
625
|
-
className: e,
|
|
626
|
-
...t
|
|
627
|
-
}) => /* @__PURE__ */ n(Ee, { className: l(e), ...t }), St = ({
|
|
628
|
-
className: e,
|
|
629
|
-
...t
|
|
630
|
-
}) => /* @__PURE__ */ n(_e, { className: l(e), ...t }), Dt = ({
|
|
631
|
-
className: e,
|
|
632
|
-
...t
|
|
633
|
-
}) => /* @__PURE__ */ n(Fe, { className: l(e), ...t }), Lt = ({
|
|
634
|
-
openDelay: e = 0,
|
|
635
|
-
closeDelay: t = 0,
|
|
636
|
-
...r
|
|
637
|
-
}) => /* @__PURE__ */ n(Ue, { closeDelay: t, openDelay: e, ...r }), Rt = (e) => /* @__PURE__ */ n(Me, { ...e }), At = ({
|
|
638
|
-
align: e = "start",
|
|
639
|
-
...t
|
|
640
|
-
}) => /* @__PURE__ */ n(ke, { align: e, ...t }), Ut = ({
|
|
641
|
-
a: e,
|
|
642
|
-
b: t,
|
|
643
|
-
show: r,
|
|
644
|
-
className: o
|
|
645
|
-
}) => /* @__PURE__ */ j(
|
|
646
|
-
"div",
|
|
647
|
-
{
|
|
648
|
-
className: l("relative inline-flex items-center justify-center", o),
|
|
649
|
-
children: [
|
|
650
|
-
/* @__PURE__ */ n(
|
|
651
|
-
"div",
|
|
652
|
-
{
|
|
653
|
-
"aria-hidden": r,
|
|
654
|
-
className: l(
|
|
655
|
-
"transition-all duration-200 ease-out",
|
|
656
|
-
r ? "pointer-events-none scale-75 opacity-0" : "scale-100 opacity-100"
|
|
657
|
-
),
|
|
658
|
-
children: e
|
|
659
|
-
}
|
|
660
|
-
),
|
|
661
|
-
/* @__PURE__ */ n(
|
|
662
|
-
"div",
|
|
663
|
-
{
|
|
664
|
-
"aria-hidden": !r,
|
|
665
|
-
className: l(
|
|
666
|
-
"absolute transition-all duration-200 ease-out",
|
|
667
|
-
r ? "scale-100 opacity-100" : "pointer-events-none scale-75 opacity-0"
|
|
668
|
-
),
|
|
669
|
-
children: t
|
|
670
|
-
}
|
|
671
|
-
)
|
|
672
|
-
]
|
|
673
|
-
}
|
|
674
|
-
), kt = ({
|
|
675
|
-
className: e,
|
|
676
|
-
...t
|
|
677
|
-
}) => /* @__PURE__ */ n("div", { className: l(e), ...t }), Mt = ({
|
|
678
|
-
className: e,
|
|
679
|
-
...t
|
|
680
|
-
}) => /* @__PURE__ */ n("div", { className: l(e), ...t }), Ot = ({
|
|
681
|
-
className: e,
|
|
682
|
-
children: t,
|
|
683
|
-
...r
|
|
684
|
-
}) => /* @__PURE__ */ n(
|
|
685
|
-
"h3",
|
|
686
|
-
{
|
|
687
|
-
className: l(
|
|
688
|
-
"mb-2 px-3 font-medium text-muted-foreground text-xs",
|
|
689
|
-
e
|
|
690
|
-
),
|
|
691
|
-
...r,
|
|
692
|
-
children: t
|
|
693
|
-
}
|
|
694
|
-
), jt = ({
|
|
695
|
-
className: e,
|
|
696
|
-
...t
|
|
697
|
-
}) => /* @__PURE__ */ n("div", { className: l("space-y-1", e), ...t }), zt = ({
|
|
698
|
-
className: e,
|
|
699
|
-
...t
|
|
700
|
-
}) => /* @__PURE__ */ n(
|
|
701
|
-
"div",
|
|
702
|
-
{
|
|
703
|
-
className: l(
|
|
704
|
-
"flex items-center gap-2 px-3 py-2 text-xs hover:bg-accent",
|
|
705
|
-
e
|
|
706
|
-
),
|
|
707
|
-
...t
|
|
708
|
-
}
|
|
709
|
-
), Et = ({
|
|
710
|
-
className: e,
|
|
711
|
-
...t
|
|
712
|
-
}) => /* @__PURE__ */ n(Ce, { className: l(e), ...t }), _t = ({
|
|
713
|
-
className: e,
|
|
714
|
-
...t
|
|
715
|
-
}) => /* @__PURE__ */ n(Ne, { className: l(e), ...t }), Bt = ({
|
|
716
|
-
className: e,
|
|
717
|
-
...t
|
|
718
|
-
}) => /* @__PURE__ */ n(Se, { className: l(e), ...t }), Ft = ({
|
|
719
|
-
className: e,
|
|
720
|
-
...t
|
|
721
|
-
}) => /* @__PURE__ */ n(we, { className: l(e), ...t }), Ht = ({
|
|
722
|
-
className: e,
|
|
723
|
-
...t
|
|
724
|
-
}) => /* @__PURE__ */ n(xe, { className: l(e), ...t }), Wt = ({
|
|
725
|
-
className: e,
|
|
726
|
-
...t
|
|
727
|
-
}) => /* @__PURE__ */ n(Te, { className: l(e), ...t }), Gt = ({
|
|
728
|
-
className: e,
|
|
729
|
-
...t
|
|
730
|
-
}) => /* @__PURE__ */ n(De, { className: l(e), ...t });
|
|
731
|
-
export {
|
|
732
|
-
re as LocalReferencedSourcesContext,
|
|
733
|
-
pt as PromptInput,
|
|
734
|
-
mt as PromptInputActionAddAttachments,
|
|
735
|
-
dt as PromptInputActionAddScreenshot,
|
|
736
|
-
Pt as PromptInputActionMenu,
|
|
737
|
-
bt as PromptInputActionMenuContent,
|
|
738
|
-
Ct as PromptInputActionMenuItem,
|
|
739
|
-
yt as PromptInputActionMenuTrigger,
|
|
740
|
-
ft as PromptInputBody,
|
|
741
|
-
Ze as PromptInputButton,
|
|
742
|
-
Et as PromptInputCommand,
|
|
743
|
-
Ft as PromptInputCommandEmpty,
|
|
744
|
-
Ht as PromptInputCommandGroup,
|
|
745
|
-
_t as PromptInputCommandInput,
|
|
746
|
-
Wt as PromptInputCommandItem,
|
|
747
|
-
Bt as PromptInputCommandList,
|
|
748
|
-
Gt as PromptInputCommandSeparator,
|
|
749
|
-
vt as PromptInputFooter,
|
|
750
|
-
gt as PromptInputHeader,
|
|
751
|
-
Lt as PromptInputHoverCard,
|
|
752
|
-
At as PromptInputHoverCardContent,
|
|
753
|
-
Rt as PromptInputHoverCardTrigger,
|
|
754
|
-
lt as PromptInputProvider,
|
|
755
|
-
xt as PromptInputSelect,
|
|
756
|
-
Tt as PromptInputSelectContent,
|
|
757
|
-
St as PromptInputSelectItem,
|
|
758
|
-
Nt as PromptInputSelectTrigger,
|
|
759
|
-
Dt as PromptInputSelectValue,
|
|
760
|
-
Ut as PromptInputSlotSwap,
|
|
761
|
-
wt as PromptInputSubmit,
|
|
762
|
-
Mt as PromptInputTab,
|
|
763
|
-
jt as PromptInputTabBody,
|
|
764
|
-
zt as PromptInputTabItem,
|
|
765
|
-
Ot as PromptInputTabLabel,
|
|
766
|
-
kt as PromptInputTabsList,
|
|
767
|
-
ht as PromptInputTextarea,
|
|
768
|
-
It as PromptInputTools,
|
|
769
|
-
$ as usePromptInputAttachments,
|
|
770
|
-
ct as usePromptInputController,
|
|
771
|
-
ut as usePromptInputReferencedSources,
|
|
772
|
-
it as useProviderAttachments
|
|
773
|
-
};
|
|
774
|
-
//# sourceMappingURL=prompt-input.js.map
|