@agimon-ai/po-web-components 0.0.0-alpha.213 → 0.0.0-alpha.214
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/po-runtime-identity.json +1 -1
- package/dist/src/components/Button.cjs +1 -1
- package/dist/src/components/Button.cjs.map +1 -1
- package/dist/src/components/Button.mjs +1 -1
- package/dist/src/components/Button.mjs.map +1 -1
- package/dist/src/components/Select.cjs +1 -1
- package/dist/src/components/Select.cjs.map +1 -1
- package/dist/src/components/Select.mjs +1 -1
- package/dist/src/components/Select.mjs.map +1 -1
- package/package.json +5 -5
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":1,"platformRequirements":{},"sourceFiles":["LICENSE","NOTICE","README.md","llms.txt","locales/vi.json","locales/zh-CN.json","package.json","src/components/Accordion.stories.tsx","src/components/Accordion.tsx","src/components/AgentAvatar.stories.tsx","src/components/AgentAvatar.tsx","src/components/AnsiText.stories.tsx","src/components/AnsiText.tsx","src/components/Avatar.stories.tsx","src/components/Avatar.tsx","src/components/Badge.stories.tsx","src/components/Badge.tsx","src/components/BrandPalette.stories.tsx","src/components/Breadcrumb.stories.tsx","src/components/Breadcrumb.tsx","src/components/Button.stories.tsx","src/components/Button.tsx","src/components/Checkbox.stories.tsx","src/components/Checkbox.tsx","src/components/CodeBlock.stories.tsx","src/components/CodeBlock.tsx","src/components/CodeEditor.stories.tsx","src/components/CodeEditor.tsx","src/components/CodeEditorView.stories.tsx","src/components/CodeEditorView.tsx","src/components/Collapsible.stories.tsx","src/components/Collapsible.tsx","src/components/Command.stories.tsx","src/components/Command.tsx","src/components/CopyButton.stories.tsx","src/components/CopyButton.tsx","src/components/CtaCard.stories.tsx","src/components/CtaCard.tsx","src/components/Dialog.stories.tsx","src/components/Dialog.tsx","src/components/DiffView.stories.tsx","src/components/DiffView.tsx","src/components/Dot.stories.tsx","src/components/Dot.tsx","src/components/Drawer.stories.tsx","src/components/Drawer.tsx","src/components/DropdownMenu.stories.tsx","src/components/DropdownMenu.tsx","src/components/EmptyState.stories.tsx","src/components/EmptyState.tsx","src/components/FileBrowser.stories.tsx","src/components/FileBrowser.tsx","src/components/FilePreview.stories.tsx","src/components/FilePreview.tsx","src/components/FlowGraph.stories.tsx","src/components/FlowGraph.tsx","src/components/HashlineLines.stories.tsx","src/components/HashlineLines.tsx","src/components/Input.stories.tsx","src/components/Input.tsx","src/components/Kbd.stories.tsx","src/components/Kbd.tsx","src/components/Label.stories.tsx","src/components/Label.tsx","src/components/LiveDuration.tsx","src/components/LoadingState.stories.tsx","src/components/LoadingState.tsx","src/components/Markdown.stories.tsx","src/components/Markdown.tsx","src/components/McpApp.tsx","src/components/McpToolWidget.stories.tsx","src/components/McpToolWidget.tsx","src/components/MediaPreview.stories.tsx","src/components/MediaPreview.tsx","src/components/MediaViewerDialog.stories.tsx","src/components/MediaViewerDialog.tsx","src/components/MermaidDiagram.stories.tsx","src/components/MermaidDiagram.tsx","src/components/MessageItem.stories.tsx","src/components/MessageItem.tsx","src/components/MessageLines.stories.tsx","src/components/MessageLines.tsx","src/components/OptionList.stories.tsx","src/components/OptionList.tsx","src/components/Panel.stories.tsx","src/components/Panel.tsx","src/components/PathText.stories.tsx","src/components/PathText.tsx","src/components/PdfPreview.stories.tsx","src/components/PdfPreview.tsx","src/components/Picker.stories.tsx","src/components/Picker.tsx","src/components/Popover.stories.tsx","src/components/Popover.tsx","src/components/ProfilePicker.stories.tsx","src/components/ProfilePicker.tsx","src/components/Progress.stories.tsx","src/components/Progress.tsx","src/components/QrCode.stories.tsx","src/components/QrCode.tsx","src/components/RadioGroup.stories.tsx","src/components/RadioGroup.tsx","src/components/ReferenceChip.stories.tsx","src/components/ReferenceChip.tsx","src/components/ReviewCommentDraft.stories.tsx","src/components/ReviewCommentDraft.tsx","src/components/ScrollArea.stories.tsx","src/components/ScrollArea.tsx","src/components/SectionLabel.stories.tsx","src/components/SectionLabel.tsx","src/components/Select.stories.tsx","src/components/Select.tsx","src/components/Separator.stories.tsx","src/components/Separator.tsx","src/components/Settings.tsx","src/components/SetupRow.stories.tsx","src/components/SetupRow.tsx","src/components/Sheet.stories.tsx","src/components/Sheet.tsx","src/components/Skeleton.stories.tsx","src/components/Skeleton.tsx","src/components/Spinner.stories.tsx","src/components/Spinner.tsx","src/components/StatusBadge.stories.tsx","src/components/StatusBadge.tsx","src/components/StreamCursor.stories.tsx","src/components/StreamCursor.tsx","src/components/Switch.stories.tsx","src/components/Switch.tsx","src/components/SyntaxText.stories.tsx","src/components/SyntaxText.tsx","src/components/Tabs.stories.tsx","src/components/Tabs.tsx","src/components/TerminalView.stories.tsx","src/components/TerminalView.tsx","src/components/Textarea.stories.tsx","src/components/Textarea.tsx","src/components/Toast.stories.tsx","src/components/Toast.tsx","src/components/ToolPathLink.stories.tsx","src/components/ToolPathLink.tsx","src/components/Tooltip.stories.tsx","src/components/Tooltip.tsx","src/components/ViewableImage.stories.tsx","src/components/ViewableImage.tsx","src/exports/index.ts","src/exports/markdownMediaSlot.ts","src/exports/mcpAppHost.ts","src/exports/mcpWidget.ts","src/exports/nativeTheme.ts","src/exports/text.ts","src/exports/theme.ts","src/icons/icons.ts","src/lib/ansiSpans.ts","src/lib/cn.ts","src/lib/collapse.ts","src/lib/editorController.ts","src/lib/editorLanguage.ts","src/lib/editorTheme.ts","src/lib/fenceGrammar.ts","src/lib/fileDownload.ts","src/lib/files.ts","src/lib/hashlineHighlight.ts","src/lib/hashlineView.ts","src/lib/markdownMedia.ts","src/lib/markdownMediaSlot.ts","src/lib/markdownReferences.ts","src/lib/mcpAppFrame.ts","src/lib/mcpAppSandbox.ts","src/lib/mcpOpenAiBootstrap.ts","src/lib/media.ts","src/lib/mediaPlayback.ts","src/lib/mermaidDiagram.ts","src/lib/optionList.ts","src/lib/pathGroups.ts","src/lib/picker.ts","src/lib/profilePicker.ts","src/lib/qrMatrix.ts","src/lib/review.ts","src/lib/runDuration.ts","src/lib/syntaxHighlight.ts","src/lib/tone.ts","src/theme/apply.ts","src/theme/builtinThemes.ts","src/theme/derive.ts","src/theme/nativeTheme.ts","src/theme/parse.ts","src/theme/piTheme.ts","src/theme/preference.ts","src/types/diff.ts","src/types/editor.ts","src/types/theme.ts","src/types/tone.ts","styles/mcp.css","styles/preview.css","styles/theme.css","styles/tokens.css","themes/po-nord-dark.json","themes/po-one-light.json","tsdown.config.ts"],"sourceRevision":"ebb907e59b1d200f20a9b58069b4ece5","manifestRevision":"a8a33957d67f2f32da53259c0e810cc3","outputFiles":["LICENSE","NOTICE","README.md","dist/_virtual/_rolldown/runtime.cjs","dist/index.cjs","dist/index.mjs","dist/markdownMediaSlot.cjs","dist/markdownMediaSlot.mjs","dist/mcpAppHost.cjs","dist/mcpAppHost.mjs","dist/mcpWidget.cjs","dist/mcpWidget.mjs","dist/nativeTheme.cjs","dist/nativeTheme.mjs","dist/src/components/Accordion.cjs","dist/src/components/Accordion.mjs","dist/src/components/AgentAvatar.cjs","dist/src/components/AgentAvatar.mjs","dist/src/components/AnsiText.cjs","dist/src/components/AnsiText.mjs","dist/src/components/Avatar.cjs","dist/src/components/Avatar.mjs","dist/src/components/Badge.cjs","dist/src/components/Badge.mjs","dist/src/components/Breadcrumb.cjs","dist/src/components/Breadcrumb.mjs","dist/src/components/Button.cjs","dist/src/components/Button.mjs","dist/src/components/Checkbox.cjs","dist/src/components/Checkbox.mjs","dist/src/components/CodeBlock.cjs","dist/src/components/CodeBlock.mjs","dist/src/components/CodeEditor.cjs","dist/src/components/CodeEditor.mjs","dist/src/components/CodeEditorView.cjs","dist/src/components/CodeEditorView.mjs","dist/src/components/Collapsible.cjs","dist/src/components/Collapsible.mjs","dist/src/components/Command.cjs","dist/src/components/Command.mjs","dist/src/components/CopyButton.cjs","dist/src/components/CopyButton.mjs","dist/src/components/CtaCard.cjs","dist/src/components/CtaCard.mjs","dist/src/components/Dialog.cjs","dist/src/components/Dialog.mjs","dist/src/components/DiffView.cjs","dist/src/components/DiffView.mjs","dist/src/components/Dot.cjs","dist/src/components/Dot.mjs","dist/src/components/Drawer.cjs","dist/src/components/Drawer.mjs","dist/src/components/DropdownMenu.cjs","dist/src/components/DropdownMenu.mjs","dist/src/components/EmptyState.cjs","dist/src/components/EmptyState.mjs","dist/src/components/FileBrowser.cjs","dist/src/components/FileBrowser.mjs","dist/src/components/FilePreview.cjs","dist/src/components/FilePreview.mjs","dist/src/components/FlowGraph.cjs","dist/src/components/FlowGraph.mjs","dist/src/components/HashlineLines.cjs","dist/src/components/HashlineLines.mjs","dist/src/components/Input.cjs","dist/src/components/Input.mjs","dist/src/components/Kbd.cjs","dist/src/components/Kbd.mjs","dist/src/components/Label.cjs","dist/src/components/Label.mjs","dist/src/components/LiveDuration.cjs","dist/src/components/LiveDuration.mjs","dist/src/components/LoadingState.cjs","dist/src/components/LoadingState.mjs","dist/src/components/Markdown.cjs","dist/src/components/Markdown.mjs","dist/src/components/McpApp.cjs","dist/src/components/McpApp.mjs","dist/src/components/McpToolWidget.cjs","dist/src/components/McpToolWidget.mjs","dist/src/components/MediaPreview.cjs","dist/src/components/MediaPreview.mjs","dist/src/components/MediaViewerDialog.cjs","dist/src/components/MediaViewerDialog.mjs","dist/src/components/MermaidDiagram.cjs","dist/src/components/MermaidDiagram.mjs","dist/src/components/MessageItem.cjs","dist/src/components/MessageItem.mjs","dist/src/components/MessageLines.cjs","dist/src/components/MessageLines.mjs","dist/src/components/OptionList.cjs","dist/src/components/OptionList.mjs","dist/src/components/Panel.cjs","dist/src/components/Panel.mjs","dist/src/components/PathText.cjs","dist/src/components/PathText.mjs","dist/src/components/PdfPreview.cjs","dist/src/components/PdfPreview.mjs","dist/src/components/Picker.cjs","dist/src/components/Picker.mjs","dist/src/components/Popover.cjs","dist/src/components/Popover.mjs","dist/src/components/ProfilePicker.cjs","dist/src/components/ProfilePicker.mjs","dist/src/components/Progress.cjs","dist/src/components/Progress.mjs","dist/src/components/QrCode.cjs","dist/src/components/QrCode.mjs","dist/src/components/RadioGroup.cjs","dist/src/components/RadioGroup.mjs","dist/src/components/ReferenceChip.cjs","dist/src/components/ReferenceChip.mjs","dist/src/components/ReviewCommentDraft.cjs","dist/src/components/ReviewCommentDraft.mjs","dist/src/components/ScrollArea.cjs","dist/src/components/ScrollArea.mjs","dist/src/components/SectionLabel.cjs","dist/src/components/SectionLabel.mjs","dist/src/components/Select.cjs","dist/src/components/Select.mjs","dist/src/components/Separator.cjs","dist/src/components/Separator.mjs","dist/src/components/Settings.cjs","dist/src/components/Settings.mjs","dist/src/components/SetupRow.cjs","dist/src/components/SetupRow.mjs","dist/src/components/Sheet.cjs","dist/src/components/Sheet.mjs","dist/src/components/Skeleton.cjs","dist/src/components/Skeleton.mjs","dist/src/components/Spinner.cjs","dist/src/components/Spinner.mjs","dist/src/components/StatusBadge.cjs","dist/src/components/StatusBadge.mjs","dist/src/components/StreamCursor.cjs","dist/src/components/StreamCursor.mjs","dist/src/components/Switch.cjs","dist/src/components/Switch.mjs","dist/src/components/SyntaxText.cjs","dist/src/components/SyntaxText.mjs","dist/src/components/Tabs.cjs","dist/src/components/Tabs.mjs","dist/src/components/TerminalView.cjs","dist/src/components/TerminalView.mjs","dist/src/components/Textarea.cjs","dist/src/components/Textarea.mjs","dist/src/components/Toast.cjs","dist/src/components/Toast.mjs","dist/src/components/ToolPathLink.cjs","dist/src/components/ToolPathLink.mjs","dist/src/components/Tooltip.cjs","dist/src/components/Tooltip.mjs","dist/src/components/ViewableImage.cjs","dist/src/components/ViewableImage.mjs","dist/src/icons/icons.cjs","dist/src/icons/icons.mjs","dist/src/lib/ansiSpans.cjs","dist/src/lib/ansiSpans.mjs","dist/src/lib/cn.cjs","dist/src/lib/cn.mjs","dist/src/lib/collapse.cjs","dist/src/lib/collapse.mjs","dist/src/lib/editorController.cjs","dist/src/lib/editorController.mjs","dist/src/lib/editorLanguage.cjs","dist/src/lib/editorLanguage.mjs","dist/src/lib/editorTheme.cjs","dist/src/lib/editorTheme.mjs","dist/src/lib/fenceGrammar.cjs","dist/src/lib/fenceGrammar.mjs","dist/src/lib/fileDownload.cjs","dist/src/lib/fileDownload.mjs","dist/src/lib/files.cjs","dist/src/lib/files.mjs","dist/src/lib/hashlineHighlight.cjs","dist/src/lib/hashlineHighlight.mjs","dist/src/lib/hashlineView.cjs","dist/src/lib/hashlineView.mjs","dist/src/lib/markdownMedia.cjs","dist/src/lib/markdownMedia.mjs","dist/src/lib/markdownMediaSlot.cjs","dist/src/lib/markdownMediaSlot.mjs","dist/src/lib/markdownReferences.cjs","dist/src/lib/markdownReferences.mjs","dist/src/lib/mcpAppFrame.cjs","dist/src/lib/mcpAppFrame.mjs","dist/src/lib/mcpAppSandbox.cjs","dist/src/lib/mcpAppSandbox.mjs","dist/src/lib/mcpOpenAiBootstrap.cjs","dist/src/lib/mcpOpenAiBootstrap.mjs","dist/src/lib/media.cjs","dist/src/lib/media.mjs","dist/src/lib/mediaPlayback.cjs","dist/src/lib/mediaPlayback.mjs","dist/src/lib/mermaidDiagram.cjs","dist/src/lib/mermaidDiagram.mjs","dist/src/lib/optionList.cjs","dist/src/lib/optionList.mjs","dist/src/lib/pathGroups.cjs","dist/src/lib/pathGroups.mjs","dist/src/lib/picker.cjs","dist/src/lib/picker.mjs","dist/src/lib/profilePicker.cjs","dist/src/lib/profilePicker.mjs","dist/src/lib/qrMatrix.cjs","dist/src/lib/qrMatrix.mjs","dist/src/lib/review.cjs","dist/src/lib/review.mjs","dist/src/lib/runDuration.cjs","dist/src/lib/runDuration.mjs","dist/src/lib/syntaxHighlight.cjs","dist/src/lib/syntaxHighlight.mjs","dist/src/lib/tone.cjs","dist/src/lib/tone.mjs","dist/src/theme/apply.cjs","dist/src/theme/apply.mjs","dist/src/theme/builtinThemes.cjs","dist/src/theme/builtinThemes.mjs","dist/src/theme/derive.cjs","dist/src/theme/derive.mjs","dist/src/theme/nativeTheme.cjs","dist/src/theme/nativeTheme.mjs","dist/src/theme/parse.cjs","dist/src/theme/parse.mjs","dist/src/theme/piTheme.cjs","dist/src/theme/piTheme.mjs","dist/src/theme/preference.cjs","dist/src/theme/preference.mjs","dist/src/types/editor.cjs","dist/src/types/editor.mjs","dist/src/types/theme.cjs","dist/src/types/theme.mjs","dist/src/types/tone.cjs","dist/src/types/tone.mjs","dist/text.cjs","dist/text.mjs","dist/theme.cjs","dist/theme.mjs","dist/themes/po-nord-dark.cjs","dist/themes/po-nord-dark.mjs","dist/themes/po-one-light.cjs","dist/themes/po-one-light.mjs","llms.txt","locales/vi.json","locales/zh-CN.json","styles/mcp.css","styles/preview.css","styles/theme.css","styles/tokens.css","themes/po-nord-dark.json","themes/po-one-light.json"],"outputRevision":"7d5f57d4fc3194a3a4fcfd93b5e90b33"}
|
|
1
|
+
{"version":1,"platformRequirements":{},"sourceFiles":["LICENSE","NOTICE","README.md","llms.txt","locales/vi.json","locales/zh-CN.json","package.json","src/components/Accordion.stories.tsx","src/components/Accordion.tsx","src/components/AgentAvatar.stories.tsx","src/components/AgentAvatar.tsx","src/components/AnsiText.stories.tsx","src/components/AnsiText.tsx","src/components/Avatar.stories.tsx","src/components/Avatar.tsx","src/components/Badge.stories.tsx","src/components/Badge.tsx","src/components/BrandPalette.stories.tsx","src/components/Breadcrumb.stories.tsx","src/components/Breadcrumb.tsx","src/components/Button.stories.tsx","src/components/Button.tsx","src/components/Checkbox.stories.tsx","src/components/Checkbox.tsx","src/components/CodeBlock.stories.tsx","src/components/CodeBlock.tsx","src/components/CodeEditor.stories.tsx","src/components/CodeEditor.tsx","src/components/CodeEditorView.stories.tsx","src/components/CodeEditorView.tsx","src/components/Collapsible.stories.tsx","src/components/Collapsible.tsx","src/components/Command.stories.tsx","src/components/Command.tsx","src/components/CopyButton.stories.tsx","src/components/CopyButton.tsx","src/components/CtaCard.stories.tsx","src/components/CtaCard.tsx","src/components/Dialog.stories.tsx","src/components/Dialog.tsx","src/components/DiffView.stories.tsx","src/components/DiffView.tsx","src/components/Dot.stories.tsx","src/components/Dot.tsx","src/components/Drawer.stories.tsx","src/components/Drawer.tsx","src/components/DropdownMenu.stories.tsx","src/components/DropdownMenu.tsx","src/components/EmptyState.stories.tsx","src/components/EmptyState.tsx","src/components/FileBrowser.stories.tsx","src/components/FileBrowser.tsx","src/components/FilePreview.stories.tsx","src/components/FilePreview.tsx","src/components/FlowGraph.stories.tsx","src/components/FlowGraph.tsx","src/components/HashlineLines.stories.tsx","src/components/HashlineLines.tsx","src/components/Input.stories.tsx","src/components/Input.tsx","src/components/Kbd.stories.tsx","src/components/Kbd.tsx","src/components/Label.stories.tsx","src/components/Label.tsx","src/components/LiveDuration.tsx","src/components/LoadingState.stories.tsx","src/components/LoadingState.tsx","src/components/Markdown.stories.tsx","src/components/Markdown.tsx","src/components/McpApp.tsx","src/components/McpToolWidget.stories.tsx","src/components/McpToolWidget.tsx","src/components/MediaPreview.stories.tsx","src/components/MediaPreview.tsx","src/components/MediaViewerDialog.stories.tsx","src/components/MediaViewerDialog.tsx","src/components/MermaidDiagram.stories.tsx","src/components/MermaidDiagram.tsx","src/components/MessageItem.stories.tsx","src/components/MessageItem.tsx","src/components/MessageLines.stories.tsx","src/components/MessageLines.tsx","src/components/OptionList.stories.tsx","src/components/OptionList.tsx","src/components/Panel.stories.tsx","src/components/Panel.tsx","src/components/PathText.stories.tsx","src/components/PathText.tsx","src/components/PdfPreview.stories.tsx","src/components/PdfPreview.tsx","src/components/Picker.stories.tsx","src/components/Picker.tsx","src/components/Popover.stories.tsx","src/components/Popover.tsx","src/components/ProfilePicker.stories.tsx","src/components/ProfilePicker.tsx","src/components/Progress.stories.tsx","src/components/Progress.tsx","src/components/QrCode.stories.tsx","src/components/QrCode.tsx","src/components/RadioGroup.stories.tsx","src/components/RadioGroup.tsx","src/components/ReferenceChip.stories.tsx","src/components/ReferenceChip.tsx","src/components/ReviewCommentDraft.stories.tsx","src/components/ReviewCommentDraft.tsx","src/components/ScrollArea.stories.tsx","src/components/ScrollArea.tsx","src/components/SectionLabel.stories.tsx","src/components/SectionLabel.tsx","src/components/Select.stories.tsx","src/components/Select.tsx","src/components/Separator.stories.tsx","src/components/Separator.tsx","src/components/Settings.tsx","src/components/SetupRow.stories.tsx","src/components/SetupRow.tsx","src/components/Sheet.stories.tsx","src/components/Sheet.tsx","src/components/Skeleton.stories.tsx","src/components/Skeleton.tsx","src/components/Spinner.stories.tsx","src/components/Spinner.tsx","src/components/StatusBadge.stories.tsx","src/components/StatusBadge.tsx","src/components/StreamCursor.stories.tsx","src/components/StreamCursor.tsx","src/components/Switch.stories.tsx","src/components/Switch.tsx","src/components/SyntaxText.stories.tsx","src/components/SyntaxText.tsx","src/components/Tabs.stories.tsx","src/components/Tabs.tsx","src/components/TerminalView.stories.tsx","src/components/TerminalView.tsx","src/components/Textarea.stories.tsx","src/components/Textarea.tsx","src/components/Toast.stories.tsx","src/components/Toast.tsx","src/components/ToolPathLink.stories.tsx","src/components/ToolPathLink.tsx","src/components/Tooltip.stories.tsx","src/components/Tooltip.tsx","src/components/ViewableImage.stories.tsx","src/components/ViewableImage.tsx","src/exports/index.ts","src/exports/markdownMediaSlot.ts","src/exports/mcpAppHost.ts","src/exports/mcpWidget.ts","src/exports/nativeTheme.ts","src/exports/text.ts","src/exports/theme.ts","src/icons/icons.ts","src/lib/ansiSpans.ts","src/lib/cn.ts","src/lib/collapse.ts","src/lib/editorController.ts","src/lib/editorLanguage.ts","src/lib/editorTheme.ts","src/lib/fenceGrammar.ts","src/lib/fileDownload.ts","src/lib/files.ts","src/lib/hashlineHighlight.ts","src/lib/hashlineView.ts","src/lib/markdownMedia.ts","src/lib/markdownMediaSlot.ts","src/lib/markdownReferences.ts","src/lib/mcpAppFrame.ts","src/lib/mcpAppSandbox.ts","src/lib/mcpOpenAiBootstrap.ts","src/lib/media.ts","src/lib/mediaPlayback.ts","src/lib/mermaidDiagram.ts","src/lib/optionList.ts","src/lib/pathGroups.ts","src/lib/picker.ts","src/lib/profilePicker.ts","src/lib/qrMatrix.ts","src/lib/review.ts","src/lib/runDuration.ts","src/lib/syntaxHighlight.ts","src/lib/tone.ts","src/theme/apply.ts","src/theme/builtinThemes.ts","src/theme/derive.ts","src/theme/nativeTheme.ts","src/theme/parse.ts","src/theme/piTheme.ts","src/theme/preference.ts","src/types/diff.ts","src/types/editor.ts","src/types/theme.ts","src/types/tone.ts","styles/mcp.css","styles/preview.css","styles/theme.css","styles/tokens.css","themes/po-nord-dark.json","themes/po-one-light.json","tsdown.config.ts"],"sourceRevision":"6302b60ef3db9e144e6d272946e923d8","manifestRevision":"43164e31d72545cfbe09b709e8d2989f","outputFiles":["LICENSE","NOTICE","README.md","dist/_virtual/_rolldown/runtime.cjs","dist/index.cjs","dist/index.mjs","dist/markdownMediaSlot.cjs","dist/markdownMediaSlot.mjs","dist/mcpAppHost.cjs","dist/mcpAppHost.mjs","dist/mcpWidget.cjs","dist/mcpWidget.mjs","dist/nativeTheme.cjs","dist/nativeTheme.mjs","dist/src/components/Accordion.cjs","dist/src/components/Accordion.mjs","dist/src/components/AgentAvatar.cjs","dist/src/components/AgentAvatar.mjs","dist/src/components/AnsiText.cjs","dist/src/components/AnsiText.mjs","dist/src/components/Avatar.cjs","dist/src/components/Avatar.mjs","dist/src/components/Badge.cjs","dist/src/components/Badge.mjs","dist/src/components/Breadcrumb.cjs","dist/src/components/Breadcrumb.mjs","dist/src/components/Button.cjs","dist/src/components/Button.mjs","dist/src/components/Checkbox.cjs","dist/src/components/Checkbox.mjs","dist/src/components/CodeBlock.cjs","dist/src/components/CodeBlock.mjs","dist/src/components/CodeEditor.cjs","dist/src/components/CodeEditor.mjs","dist/src/components/CodeEditorView.cjs","dist/src/components/CodeEditorView.mjs","dist/src/components/Collapsible.cjs","dist/src/components/Collapsible.mjs","dist/src/components/Command.cjs","dist/src/components/Command.mjs","dist/src/components/CopyButton.cjs","dist/src/components/CopyButton.mjs","dist/src/components/CtaCard.cjs","dist/src/components/CtaCard.mjs","dist/src/components/Dialog.cjs","dist/src/components/Dialog.mjs","dist/src/components/DiffView.cjs","dist/src/components/DiffView.mjs","dist/src/components/Dot.cjs","dist/src/components/Dot.mjs","dist/src/components/Drawer.cjs","dist/src/components/Drawer.mjs","dist/src/components/DropdownMenu.cjs","dist/src/components/DropdownMenu.mjs","dist/src/components/EmptyState.cjs","dist/src/components/EmptyState.mjs","dist/src/components/FileBrowser.cjs","dist/src/components/FileBrowser.mjs","dist/src/components/FilePreview.cjs","dist/src/components/FilePreview.mjs","dist/src/components/FlowGraph.cjs","dist/src/components/FlowGraph.mjs","dist/src/components/HashlineLines.cjs","dist/src/components/HashlineLines.mjs","dist/src/components/Input.cjs","dist/src/components/Input.mjs","dist/src/components/Kbd.cjs","dist/src/components/Kbd.mjs","dist/src/components/Label.cjs","dist/src/components/Label.mjs","dist/src/components/LiveDuration.cjs","dist/src/components/LiveDuration.mjs","dist/src/components/LoadingState.cjs","dist/src/components/LoadingState.mjs","dist/src/components/Markdown.cjs","dist/src/components/Markdown.mjs","dist/src/components/McpApp.cjs","dist/src/components/McpApp.mjs","dist/src/components/McpToolWidget.cjs","dist/src/components/McpToolWidget.mjs","dist/src/components/MediaPreview.cjs","dist/src/components/MediaPreview.mjs","dist/src/components/MediaViewerDialog.cjs","dist/src/components/MediaViewerDialog.mjs","dist/src/components/MermaidDiagram.cjs","dist/src/components/MermaidDiagram.mjs","dist/src/components/MessageItem.cjs","dist/src/components/MessageItem.mjs","dist/src/components/MessageLines.cjs","dist/src/components/MessageLines.mjs","dist/src/components/OptionList.cjs","dist/src/components/OptionList.mjs","dist/src/components/Panel.cjs","dist/src/components/Panel.mjs","dist/src/components/PathText.cjs","dist/src/components/PathText.mjs","dist/src/components/PdfPreview.cjs","dist/src/components/PdfPreview.mjs","dist/src/components/Picker.cjs","dist/src/components/Picker.mjs","dist/src/components/Popover.cjs","dist/src/components/Popover.mjs","dist/src/components/ProfilePicker.cjs","dist/src/components/ProfilePicker.mjs","dist/src/components/Progress.cjs","dist/src/components/Progress.mjs","dist/src/components/QrCode.cjs","dist/src/components/QrCode.mjs","dist/src/components/RadioGroup.cjs","dist/src/components/RadioGroup.mjs","dist/src/components/ReferenceChip.cjs","dist/src/components/ReferenceChip.mjs","dist/src/components/ReviewCommentDraft.cjs","dist/src/components/ReviewCommentDraft.mjs","dist/src/components/ScrollArea.cjs","dist/src/components/ScrollArea.mjs","dist/src/components/SectionLabel.cjs","dist/src/components/SectionLabel.mjs","dist/src/components/Select.cjs","dist/src/components/Select.mjs","dist/src/components/Separator.cjs","dist/src/components/Separator.mjs","dist/src/components/Settings.cjs","dist/src/components/Settings.mjs","dist/src/components/SetupRow.cjs","dist/src/components/SetupRow.mjs","dist/src/components/Sheet.cjs","dist/src/components/Sheet.mjs","dist/src/components/Skeleton.cjs","dist/src/components/Skeleton.mjs","dist/src/components/Spinner.cjs","dist/src/components/Spinner.mjs","dist/src/components/StatusBadge.cjs","dist/src/components/StatusBadge.mjs","dist/src/components/StreamCursor.cjs","dist/src/components/StreamCursor.mjs","dist/src/components/Switch.cjs","dist/src/components/Switch.mjs","dist/src/components/SyntaxText.cjs","dist/src/components/SyntaxText.mjs","dist/src/components/Tabs.cjs","dist/src/components/Tabs.mjs","dist/src/components/TerminalView.cjs","dist/src/components/TerminalView.mjs","dist/src/components/Textarea.cjs","dist/src/components/Textarea.mjs","dist/src/components/Toast.cjs","dist/src/components/Toast.mjs","dist/src/components/ToolPathLink.cjs","dist/src/components/ToolPathLink.mjs","dist/src/components/Tooltip.cjs","dist/src/components/Tooltip.mjs","dist/src/components/ViewableImage.cjs","dist/src/components/ViewableImage.mjs","dist/src/icons/icons.cjs","dist/src/icons/icons.mjs","dist/src/lib/ansiSpans.cjs","dist/src/lib/ansiSpans.mjs","dist/src/lib/cn.cjs","dist/src/lib/cn.mjs","dist/src/lib/collapse.cjs","dist/src/lib/collapse.mjs","dist/src/lib/editorController.cjs","dist/src/lib/editorController.mjs","dist/src/lib/editorLanguage.cjs","dist/src/lib/editorLanguage.mjs","dist/src/lib/editorTheme.cjs","dist/src/lib/editorTheme.mjs","dist/src/lib/fenceGrammar.cjs","dist/src/lib/fenceGrammar.mjs","dist/src/lib/fileDownload.cjs","dist/src/lib/fileDownload.mjs","dist/src/lib/files.cjs","dist/src/lib/files.mjs","dist/src/lib/hashlineHighlight.cjs","dist/src/lib/hashlineHighlight.mjs","dist/src/lib/hashlineView.cjs","dist/src/lib/hashlineView.mjs","dist/src/lib/markdownMedia.cjs","dist/src/lib/markdownMedia.mjs","dist/src/lib/markdownMediaSlot.cjs","dist/src/lib/markdownMediaSlot.mjs","dist/src/lib/markdownReferences.cjs","dist/src/lib/markdownReferences.mjs","dist/src/lib/mcpAppFrame.cjs","dist/src/lib/mcpAppFrame.mjs","dist/src/lib/mcpAppSandbox.cjs","dist/src/lib/mcpAppSandbox.mjs","dist/src/lib/mcpOpenAiBootstrap.cjs","dist/src/lib/mcpOpenAiBootstrap.mjs","dist/src/lib/media.cjs","dist/src/lib/media.mjs","dist/src/lib/mediaPlayback.cjs","dist/src/lib/mediaPlayback.mjs","dist/src/lib/mermaidDiagram.cjs","dist/src/lib/mermaidDiagram.mjs","dist/src/lib/optionList.cjs","dist/src/lib/optionList.mjs","dist/src/lib/pathGroups.cjs","dist/src/lib/pathGroups.mjs","dist/src/lib/picker.cjs","dist/src/lib/picker.mjs","dist/src/lib/profilePicker.cjs","dist/src/lib/profilePicker.mjs","dist/src/lib/qrMatrix.cjs","dist/src/lib/qrMatrix.mjs","dist/src/lib/review.cjs","dist/src/lib/review.mjs","dist/src/lib/runDuration.cjs","dist/src/lib/runDuration.mjs","dist/src/lib/syntaxHighlight.cjs","dist/src/lib/syntaxHighlight.mjs","dist/src/lib/tone.cjs","dist/src/lib/tone.mjs","dist/src/theme/apply.cjs","dist/src/theme/apply.mjs","dist/src/theme/builtinThemes.cjs","dist/src/theme/builtinThemes.mjs","dist/src/theme/derive.cjs","dist/src/theme/derive.mjs","dist/src/theme/nativeTheme.cjs","dist/src/theme/nativeTheme.mjs","dist/src/theme/parse.cjs","dist/src/theme/parse.mjs","dist/src/theme/piTheme.cjs","dist/src/theme/piTheme.mjs","dist/src/theme/preference.cjs","dist/src/theme/preference.mjs","dist/src/types/editor.cjs","dist/src/types/editor.mjs","dist/src/types/theme.cjs","dist/src/types/theme.mjs","dist/src/types/tone.cjs","dist/src/types/tone.mjs","dist/text.cjs","dist/text.mjs","dist/theme.cjs","dist/theme.mjs","dist/themes/po-nord-dark.cjs","dist/themes/po-nord-dark.mjs","dist/themes/po-one-light.cjs","dist/themes/po-one-light.mjs","llms.txt","locales/vi.json","locales/zh-CN.json","styles/mcp.css","styles/preview.css","styles/theme.css","styles/tokens.css","themes/po-nord-dark.json","themes/po-one-light.json"],"outputRevision":"6286bfc714eb2b301116631fe3cad399"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const e=require("../lib/cn.cjs"),t=require("./Spinner.cjs");let n=require("radix-ui"),r=require("react/jsx-runtime");const i=(0,require("class-variance-authority").cva)(`inline-flex min-h-6 min-w-6 shrink-0 cursor-pointer items-center justify-center gap-1.5 whitespace-nowrap rounded-md font-medium transition-[color,background-color,border-color,filter] outline-none focus-visible:ring-2 focus-visible:ring-po-green/
|
|
1
|
+
const e=require("../lib/cn.cjs"),t=require("./Spinner.cjs");let n=require("radix-ui"),r=require("react/jsx-runtime");const i=(0,require("class-variance-authority").cva)(`inline-flex min-h-6 min-w-6 shrink-0 cursor-pointer items-center justify-center gap-1.5 whitespace-nowrap rounded-md font-medium transition-[color,background-color,border-color,filter] outline-none focus-visible:ring-2 focus-visible:ring-po-green/70 disabled:pointer-events-none disabled:opacity-40 [&_svg]:pointer-events-none [&_svg]:shrink-0`,{variants:{variant:{primary:`bg-po-selected font-semibold text-po-on-selected hover:brightness-110`,secondary:`border border-po-edge-magenta bg-po-tint-magenta font-semibold text-po-magenta hover:brightness-110`,outline:`border border-po-border text-po-dim hover:border-po-green/50 hover:text-po-hi`,ghost:`text-po-dim hover:bg-po-panel hover:text-po-hi`,subtle:`bg-po-panel text-po-dim hover:bg-po-deep hover:text-po-hi`,danger:`bg-po-red font-semibold text-po-rail hover:brightness-110`,"danger-outline":`border border-po-edge-red bg-po-tint-red font-semibold text-po-red hover:brightness-110`,success:`bg-po-green font-semibold text-po-rail hover:brightness-110`,link:`text-po-blue hover:underline`},size:{xs:`h-6 rounded px-1.5 text-sm`,sm:`h-7 px-2.5 text-sm`,md:`h-8 px-3 text-base`,lg:`h-9 px-3.5 text-base`,icon:`h-6 w-6 rounded p-0`,"icon-md":`h-8 w-8 p-0`,card:`h-auto w-full flex-col items-stretch justify-start gap-1 px-[11px] py-2.5 text-left whitespace-normal`}},defaultVariants:{variant:`outline`,size:`md`}});function a({className:a,variant:o,size:s,asChild:c=!1,loading:l=!1,loadingLabel:u,disabled:d,type:f,children:p,...m}){let h=c?n.Slot.Root:`button`,g=!c&&l;return/* @__PURE__ */ (0,r.jsx)(h,{"data-slot":`button`,type:c?void 0:f??`button`,"aria-busy":g?!0:void 0,disabled:c?void 0:d??g,className:e.cn(i({variant:o,size:s}),a),...m,children:c?p:/* @__PURE__ */ (0,r.jsxs)(r.Fragment,{children:[g?/* @__PURE__ */ (0,r.jsx)(t.Spinner,{label:u}):null,p]})})}exports.Button=a,exports.buttonVariants=i;
|
|
2
2
|
//# sourceMappingURL=Button.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.cjs","names":["cva","Slot","cn","Spinner","require_cn","require_Spinner","radix_ui","react_jsx_runtime","buttonVariants","Button","props","Component","asChild","busy","loading","type","disabled","className","children","loadingLabel"],"sources":["../../../src/components/Button.tsx"],"sourcesContent":["import { cva, type VariantProps } from 'class-variance-authority';\nimport { Slot } from 'radix-ui';\nimport type { ComponentProps } from 'react';\n\nimport { cn } from '../lib/cn';\nimport { Spinner } from './Spinner';\n\nexport const buttonVariants = cva(\n 'inline-flex min-h-6 min-w-6 shrink-0 cursor-pointer items-center justify-center gap-1.5 whitespace-nowrap rounded-md font-medium transition-[color,background-color,border-color,filter] outline-none focus-visible:ring-2 focus-visible:ring-po-green/
|
|
1
|
+
{"version":3,"file":"Button.cjs","names":["cva","Slot","cn","Spinner","require_cn","require_Spinner","radix_ui","react_jsx_runtime","buttonVariants","Button","props","Component","asChild","busy","loading","type","disabled","className","children","loadingLabel"],"sources":["../../../src/components/Button.tsx"],"sourcesContent":["import { cva, type VariantProps } from 'class-variance-authority';\nimport { Slot } from 'radix-ui';\nimport type { ComponentProps } from 'react';\n\nimport { cn } from '../lib/cn';\nimport { Spinner } from './Spinner';\n\nexport const buttonVariants = cva(\n 'inline-flex min-h-6 min-w-6 shrink-0 cursor-pointer items-center justify-center gap-1.5 whitespace-nowrap rounded-md font-medium transition-[color,background-color,border-color,filter] outline-none focus-visible:ring-2 focus-visible:ring-po-green/70 disabled:pointer-events-none disabled:opacity-40 [&_svg]:pointer-events-none [&_svg]:shrink-0',\n {\n variants: {\n variant: {\n primary: 'bg-po-selected font-semibold text-po-on-selected hover:brightness-110',\n /** Rose: the caring second choice (review, adjust a preference), never urgency. */\n secondary:\n 'border border-po-edge-magenta bg-po-tint-magenta font-semibold text-po-magenta hover:brightness-110',\n outline: 'border border-po-border text-po-dim hover:border-po-green/50 hover:text-po-hi',\n ghost: 'text-po-dim hover:bg-po-panel hover:text-po-hi',\n subtle: 'bg-po-panel text-po-dim hover:bg-po-deep hover:text-po-hi',\n danger: 'bg-po-red font-semibold text-po-rail hover:brightness-110',\n 'danger-outline': 'border border-po-edge-red bg-po-tint-red font-semibold text-po-red hover:brightness-110',\n success: 'bg-po-green font-semibold text-po-rail hover:brightness-110',\n link: 'text-po-blue hover:underline',\n },\n size: {\n xs: 'h-6 rounded px-1.5 text-sm',\n sm: 'h-7 px-2.5 text-sm',\n md: 'h-8 px-3 text-base',\n lg: 'h-9 px-3.5 text-base',\n icon: 'h-6 w-6 rounded p-0',\n 'icon-md': 'h-8 w-8 p-0',\n /**\n * A whole card that is one click target: a session in the rail, a run\n * in a panel. It keeps the button's focus ring and cursor and gives up\n * the button's single-line box, which is what a card-shaped <button>\n * would otherwise have to restate.\n */\n card: 'h-auto w-full flex-col items-stretch justify-start gap-1 px-[11px] py-2.5 text-left whitespace-normal',\n },\n },\n defaultVariants: { variant: 'outline', size: 'md' },\n },\n);\n\nexport type ButtonVariant = NonNullable<VariantProps<typeof buttonVariants>['variant']>;\nexport type ButtonSize = NonNullable<VariantProps<typeof buttonVariants>['size']>;\n\nexport interface ButtonProps extends ComponentProps<'button'>, VariantProps<typeof buttonVariants> {\n /** Render the child element instead of a <button>, passing the classes down (shadcn's asChild). */\n asChild?: boolean;\n /**\n * Work is in flight: the button shows a spinner and stops accepting clicks.\n * Ignored under asChild, where the child owns its own content.\n */\n loading?: boolean;\n /** What the spinner announces while loading; omit it and the wait is silent. */\n loadingLabel?: string;\n}\n\n/** The one button: every variant is a theme token, so it recolours with the theme. */\nexport function Button({\n className,\n variant,\n size,\n asChild = false,\n loading = false,\n loadingLabel,\n disabled,\n type,\n children,\n ...props\n}: ButtonProps) {\n const Component = asChild ? Slot.Root : 'button';\n const busy = !asChild && loading;\n return (\n <Component\n data-slot=\"button\"\n type={asChild ? undefined : (type ?? 'button')}\n aria-busy={busy ? true : undefined}\n disabled={asChild ? undefined : (disabled ?? busy)}\n className={cn(buttonVariants({ variant, size }), className)}\n {...props}\n >\n {/* Slot takes exactly one child, so asChild hands its element straight through. */}\n {asChild ? (\n children\n ) : (\n <>\n {busy ? <Spinner label={loadingLabel} /> : null}\n {children}\n </>\n )}\n </Component>\n );\n}\n"],"mappings":"A,qHAOA,MAAaQ,GAAA,E,kCAAiBR,CAAAA,CAAAA,IAAAA,CAC5B,0VACA,CACE,SAAU,CACR,QAAS,CACP,QAAS,wEAET,UACE,sGACF,QAAS,gFACT,MAAO,iDACP,OAAQ,4DACR,OAAQ,4DACR,iBAAkB,0FAClB,QAAS,8DACT,KAAM,8BACR,EACA,KAAM,CACJ,GAAI,6BACJ,GAAI,qBACJ,GAAI,qBACJ,GAAI,uBACJ,KAAM,sBACN,UAAW,cAOX,KAAM,uGACR,CACF,EACA,gBAAiB,CAAE,QAAS,UAAW,KAAM,IAAK,CACpD,CACF,EAkBA,SAAgBS,EAAO,CACrB,YACA,UACA,OACA,UAAU,GACV,UAAU,GACV,eACA,WACA,OACA,WACA,GAAGC,GACW,CACd,IAAMC,EAAYC,EAAUX,EAAAA,KAAK,KAAO,SAClCY,EAAO,CAACD,GAAWE,EACzB,MACE,iBAAA,EAAAP,EAAA,IAAA,CAACI,EAAD,CACE,YAAU,SACV,KAAMC,EAAU,IAAA,GAAaG,GAAQ,SACrC,YAAWF,EAAO,GAAO,IAAA,GACzB,SAAUD,EAAU,IAAA,GAAaI,GAAYH,EAC7C,UAAWX,EAAAA,GAAGM,EAAe,CAAE,UAAS,MAAK,CAAC,EAAGS,CAAS,EAC1D,GAAIP,EAGH,SAAAE,EACCM,EAEA,iBAAA,EAAAX,EAAA,KAAA,CAAAA,EAAA,SAAA,CAAA,SAAA,CACGM,EAAO,iBAAA,EAAAN,EAAA,IAAA,CAACJ,EAAAA,QAAD,CAAS,MAAOgB,CAAe,CAAA,EAAI,KAC1CD,CACD,CAAA,CAAA,CAEK,CAAA,CAEf,C"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{cn as e}from"../lib/cn.mjs";import{Spinner as t}from"./Spinner.mjs";import{Slot as n}from"radix-ui";import{Fragment as r,jsx as i,jsxs as a}from"react/jsx-runtime";import{cva as o}from"class-variance-authority";const s=o(`inline-flex min-h-6 min-w-6 shrink-0 cursor-pointer items-center justify-center gap-1.5 whitespace-nowrap rounded-md font-medium transition-[color,background-color,border-color,filter] outline-none focus-visible:ring-2 focus-visible:ring-po-green/
|
|
1
|
+
import{cn as e}from"../lib/cn.mjs";import{Spinner as t}from"./Spinner.mjs";import{Slot as n}from"radix-ui";import{Fragment as r,jsx as i,jsxs as a}from"react/jsx-runtime";import{cva as o}from"class-variance-authority";const s=o(`inline-flex min-h-6 min-w-6 shrink-0 cursor-pointer items-center justify-center gap-1.5 whitespace-nowrap rounded-md font-medium transition-[color,background-color,border-color,filter] outline-none focus-visible:ring-2 focus-visible:ring-po-green/70 disabled:pointer-events-none disabled:opacity-40 [&_svg]:pointer-events-none [&_svg]:shrink-0`,{variants:{variant:{primary:`bg-po-selected font-semibold text-po-on-selected hover:brightness-110`,secondary:`border border-po-edge-magenta bg-po-tint-magenta font-semibold text-po-magenta hover:brightness-110`,outline:`border border-po-border text-po-dim hover:border-po-green/50 hover:text-po-hi`,ghost:`text-po-dim hover:bg-po-panel hover:text-po-hi`,subtle:`bg-po-panel text-po-dim hover:bg-po-deep hover:text-po-hi`,danger:`bg-po-red font-semibold text-po-rail hover:brightness-110`,"danger-outline":`border border-po-edge-red bg-po-tint-red font-semibold text-po-red hover:brightness-110`,success:`bg-po-green font-semibold text-po-rail hover:brightness-110`,link:`text-po-blue hover:underline`},size:{xs:`h-6 rounded px-1.5 text-sm`,sm:`h-7 px-2.5 text-sm`,md:`h-8 px-3 text-base`,lg:`h-9 px-3.5 text-base`,icon:`h-6 w-6 rounded p-0`,"icon-md":`h-8 w-8 p-0`,card:`h-auto w-full flex-col items-stretch justify-start gap-1 px-[11px] py-2.5 text-left whitespace-normal`}},defaultVariants:{variant:`outline`,size:`md`}});function c({className:o,variant:c,size:l,asChild:u=!1,loading:d=!1,loadingLabel:f,disabled:p,type:m,children:h,...g}){let _=u?n.Root:`button`,v=!u&&d;return/* @__PURE__ */ i(_,{"data-slot":`button`,type:u?void 0:m??`button`,"aria-busy":v?!0:void 0,disabled:u?void 0:p??v,className:e(s({variant:c,size:l}),o),...g,children:u?h:/* @__PURE__ */ a(r,{children:[v?/* @__PURE__ */ i(t,{label:f}):null,h]})})}export{c as Button,s as buttonVariants};
|
|
2
2
|
//# sourceMappingURL=Button.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.mjs","names":["buttonVariants","cva","Button","props","Component","asChild","Slot","busy","loading","type","disabled","cn","className","children","Fragment","Spinner","loadingLabel"],"sources":["../../../src/components/Button.tsx"],"sourcesContent":["import { cva, type VariantProps } from 'class-variance-authority';\nimport { Slot } from 'radix-ui';\nimport type { ComponentProps } from 'react';\n\nimport { cn } from '../lib/cn';\nimport { Spinner } from './Spinner';\n\nexport const buttonVariants = cva(\n 'inline-flex min-h-6 min-w-6 shrink-0 cursor-pointer items-center justify-center gap-1.5 whitespace-nowrap rounded-md font-medium transition-[color,background-color,border-color,filter] outline-none focus-visible:ring-2 focus-visible:ring-po-green/
|
|
1
|
+
{"version":3,"file":"Button.mjs","names":["buttonVariants","cva","Button","props","Component","asChild","Slot","busy","loading","type","disabled","cn","className","children","Fragment","Spinner","loadingLabel"],"sources":["../../../src/components/Button.tsx"],"sourcesContent":["import { cva, type VariantProps } from 'class-variance-authority';\nimport { Slot } from 'radix-ui';\nimport type { ComponentProps } from 'react';\n\nimport { cn } from '../lib/cn';\nimport { Spinner } from './Spinner';\n\nexport const buttonVariants = cva(\n 'inline-flex min-h-6 min-w-6 shrink-0 cursor-pointer items-center justify-center gap-1.5 whitespace-nowrap rounded-md font-medium transition-[color,background-color,border-color,filter] outline-none focus-visible:ring-2 focus-visible:ring-po-green/70 disabled:pointer-events-none disabled:opacity-40 [&_svg]:pointer-events-none [&_svg]:shrink-0',\n {\n variants: {\n variant: {\n primary: 'bg-po-selected font-semibold text-po-on-selected hover:brightness-110',\n /** Rose: the caring second choice (review, adjust a preference), never urgency. */\n secondary:\n 'border border-po-edge-magenta bg-po-tint-magenta font-semibold text-po-magenta hover:brightness-110',\n outline: 'border border-po-border text-po-dim hover:border-po-green/50 hover:text-po-hi',\n ghost: 'text-po-dim hover:bg-po-panel hover:text-po-hi',\n subtle: 'bg-po-panel text-po-dim hover:bg-po-deep hover:text-po-hi',\n danger: 'bg-po-red font-semibold text-po-rail hover:brightness-110',\n 'danger-outline': 'border border-po-edge-red bg-po-tint-red font-semibold text-po-red hover:brightness-110',\n success: 'bg-po-green font-semibold text-po-rail hover:brightness-110',\n link: 'text-po-blue hover:underline',\n },\n size: {\n xs: 'h-6 rounded px-1.5 text-sm',\n sm: 'h-7 px-2.5 text-sm',\n md: 'h-8 px-3 text-base',\n lg: 'h-9 px-3.5 text-base',\n icon: 'h-6 w-6 rounded p-0',\n 'icon-md': 'h-8 w-8 p-0',\n /**\n * A whole card that is one click target: a session in the rail, a run\n * in a panel. It keeps the button's focus ring and cursor and gives up\n * the button's single-line box, which is what a card-shaped <button>\n * would otherwise have to restate.\n */\n card: 'h-auto w-full flex-col items-stretch justify-start gap-1 px-[11px] py-2.5 text-left whitespace-normal',\n },\n },\n defaultVariants: { variant: 'outline', size: 'md' },\n },\n);\n\nexport type ButtonVariant = NonNullable<VariantProps<typeof buttonVariants>['variant']>;\nexport type ButtonSize = NonNullable<VariantProps<typeof buttonVariants>['size']>;\n\nexport interface ButtonProps extends ComponentProps<'button'>, VariantProps<typeof buttonVariants> {\n /** Render the child element instead of a <button>, passing the classes down (shadcn's asChild). */\n asChild?: boolean;\n /**\n * Work is in flight: the button shows a spinner and stops accepting clicks.\n * Ignored under asChild, where the child owns its own content.\n */\n loading?: boolean;\n /** What the spinner announces while loading; omit it and the wait is silent. */\n loadingLabel?: string;\n}\n\n/** The one button: every variant is a theme token, so it recolours with the theme. */\nexport function Button({\n className,\n variant,\n size,\n asChild = false,\n loading = false,\n loadingLabel,\n disabled,\n type,\n children,\n ...props\n}: ButtonProps) {\n const Component = asChild ? Slot.Root : 'button';\n const busy = !asChild && loading;\n return (\n <Component\n data-slot=\"button\"\n type={asChild ? undefined : (type ?? 'button')}\n aria-busy={busy ? true : undefined}\n disabled={asChild ? undefined : (disabled ?? busy)}\n className={cn(buttonVariants({ variant, size }), className)}\n {...props}\n >\n {/* Slot takes exactly one child, so asChild hands its element straight through. */}\n {asChild ? (\n children\n ) : (\n <>\n {busy ? <Spinner label={loadingLabel} /> : null}\n {children}\n </>\n )}\n </Component>\n );\n}\n"],"mappings":"A,0NAOA,MAAaA,EAAiBC,EAC5B,0VACA,CACE,SAAU,CACR,QAAS,CACP,QAAS,wEAET,UACE,sGACF,QAAS,gFACT,MAAO,iDACP,OAAQ,4DACR,OAAQ,4DACR,iBAAkB,0FAClB,QAAS,8DACT,KAAM,8BACR,EACA,KAAM,CACJ,GAAI,6BACJ,GAAI,qBACJ,GAAI,qBACJ,GAAI,uBACJ,KAAM,sBACN,UAAW,cAOX,KAAM,uGACR,CACF,EACA,gBAAiB,CAAE,QAAS,UAAW,KAAM,IAAK,CACpD,CACF,EAkBA,SAAgBC,EAAO,CACrB,YACA,UACA,OACA,UAAU,GACV,UAAU,GACV,eACA,WACA,OACA,WACA,GAAGC,GACW,CACd,IAAMC,EAAYC,EAAUC,EAAK,KAAO,SAClCC,EAAO,CAACF,GAAWG,EACzB,MACE,kBAACJ,EAAD,CACE,YAAU,SACV,KAAMC,EAAU,IAAA,GAAaI,GAAQ,SACrC,YAAWF,EAAO,GAAO,IAAA,GACzB,SAAUF,EAAU,IAAA,GAAaK,GAAYH,EAC7C,UAAWI,EAAGX,EAAe,CAAE,UAAS,MAAK,CAAC,EAAGY,CAAS,EAC1D,GAAIT,EAGH,SAAAE,EACCQ,EAEA,kBAAAC,EAAA,CAAA,SAAA,CACGP,EAAO,kBAACQ,EAAD,CAAS,MAAOC,CAAe,CAAA,EAAI,KAC1CH,CACD,CAAA,CAAA,CAEK,CAAA,CAEf,C"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
require("../icons/icons.cjs");const e=require("../lib/cn.cjs");let t=require("radix-ui"),n=require("react/jsx-runtime"),r=require("lucide-react");function i(e){return/* @__PURE__ */ (0,n.jsx)(t.Select.Root,{"data-slot":`select`,...e})}function a(e){return/* @__PURE__ */ (0,n.jsx)(t.Select.Group,{"data-slot":`select-group`,...e})}function o(e){return/* @__PURE__ */ (0,n.jsx)(t.Select.Value,{"data-slot":`select-value`,...e})}function s({className:i,children:a,...o}){return/* @__PURE__ */ (0,n.jsxs)(t.Select.Trigger,{"data-slot":`select-trigger`,className:e.cn(`flex h-7 cursor-pointer items-center justify-between gap-2 rounded border border-po-border bg-po-deep px-2.5 text-left text-base text-po-hi outline-none transition-colors hover:border-po-green/50 focus-visible:ring-2 focus-visible:ring-po-green/
|
|
1
|
+
require("../icons/icons.cjs");const e=require("../lib/cn.cjs");let t=require("radix-ui"),n=require("react/jsx-runtime"),r=require("lucide-react");function i(e){return/* @__PURE__ */ (0,n.jsx)(t.Select.Root,{"data-slot":`select`,...e})}function a(e){return/* @__PURE__ */ (0,n.jsx)(t.Select.Group,{"data-slot":`select-group`,...e})}function o(e){return/* @__PURE__ */ (0,n.jsx)(t.Select.Value,{"data-slot":`select-value`,...e})}function s({className:i,children:a,...o}){return/* @__PURE__ */ (0,n.jsxs)(t.Select.Trigger,{"data-slot":`select-trigger`,className:e.cn(`flex h-7 cursor-pointer items-center justify-between gap-2 rounded border border-po-border bg-po-deep px-2.5 text-left text-base text-po-hi outline-none transition-colors hover:border-po-green/50 focus-visible:ring-2 focus-visible:ring-po-green/70 disabled:pointer-events-none disabled:opacity-40 data-[placeholder]:text-po-faint *:data-[slot=select-value]:truncate`,i),...o,children:[a,/* @__PURE__ */ (0,n.jsx)(t.Select.Icon,{asChild:!0,children:/* @__PURE__ */ (0,n.jsx)(r.ChevronDown,{className:`h-3 w-3 shrink-0 text-po-faint`})})]})}function c({className:r,position:i=`popper`,sideOffset:a=4,children:o,...s}){return/* @__PURE__ */ (0,n.jsx)(t.Select.Portal,{children:/* @__PURE__ */ (0,n.jsx)(t.Select.Content,{"data-slot":`select-content`,position:i,sideOffset:a,className:e.cn(`z-50 max-h-[320px] min-w-[var(--radix-select-trigger-width)] overflow-hidden rounded border border-po-border bg-po-panel shadow-xl outline-none data-[state=open]:animate-po-rise`,r),...s,children:/* @__PURE__ */ (0,n.jsx)(t.Select.Viewport,{className:`p-1`,children:o})})})}function l({className:r,...i}){return/* @__PURE__ */ (0,n.jsx)(t.Select.Label,{"data-slot":`select-label`,className:e.cn(`px-2 py-1 text-sm font-semibold text-po-dim first-letter:uppercase`,r),...i})}function u({className:i,children:a,...o}){return/* @__PURE__ */ (0,n.jsxs)(t.Select.Item,{"data-slot":`select-item`,className:e.cn(`relative flex cursor-pointer items-center gap-2 rounded-sm py-1.5 pr-2 pl-7 text-base text-po-hi outline-none select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-40 data-[highlighted]:bg-po-deep`,i),...o,children:[/* @__PURE__ */ (0,n.jsx)(`span`,{className:`pointer-events-none absolute left-2 flex h-3 w-3 items-center justify-center`,children:/* @__PURE__ */ (0,n.jsx)(t.Select.ItemIndicator,{children:/* @__PURE__ */ (0,n.jsx)(r.Check,{className:`h-3 w-3 text-po-green`})})}),/* @__PURE__ */ (0,n.jsx)(t.Select.ItemText,{children:a})]})}function d({className:r,...i}){return/* @__PURE__ */ (0,n.jsx)(t.Select.Separator,{"data-slot":`select-separator`,className:e.cn(`my-1 h-px bg-po-border-soft`,r),...i})}exports.Select=i,exports.SelectContent=c,exports.SelectGroup=a,exports.SelectItem=u,exports.SelectLabel=l,exports.SelectSeparator=d,exports.SelectTrigger=s,exports.SelectValue=o;
|
|
2
2
|
//# sourceMappingURL=Select.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Select.cjs","names":["SelectPrimitive","cn","ChevronDownIcon","CheckIcon","require_cn","radix_ui","react_jsx_runtime","lucide_react","Select","props","SelectGroup","SelectValue","SelectTrigger","className","children","SelectContent","SelectLabel","SelectItem","SelectSeparator"],"sources":["../../../src/components/Select.tsx"],"sourcesContent":["import { Select as SelectPrimitive } from 'radix-ui';\nimport type { ComponentProps } from 'react';\n\nimport { CheckIcon, ChevronDownIcon } from '../icons/icons';\nimport { cn } from '../lib/cn';\n\n/**\n * A single choice from a list, on Radix rather than a native <select>: a\n * native one cannot be styled to the palette on every platform, and the\n * cockpit's model and mode pickers need the same surface a popover has.\n */\nexport function Select(props: ComponentProps<typeof SelectPrimitive.Root>) {\n return <SelectPrimitive.Root data-slot=\"select\" {...props} />;\n}\n\nexport function SelectGroup(props: ComponentProps<typeof SelectPrimitive.Group>) {\n return <SelectPrimitive.Group data-slot=\"select-group\" {...props} />;\n}\n\nexport function SelectValue(props: ComponentProps<typeof SelectPrimitive.Value>) {\n return <SelectPrimitive.Value data-slot=\"select-value\" {...props} />;\n}\n\nexport function SelectTrigger({ className, children, ...props }: ComponentProps<typeof SelectPrimitive.Trigger>) {\n return (\n <SelectPrimitive.Trigger\n data-slot=\"select-trigger\"\n className={cn(\n 'flex h-7 cursor-pointer items-center justify-between gap-2 rounded border border-po-border bg-po-deep px-2.5 text-left text-base text-po-hi outline-none transition-colors hover:border-po-green/50 focus-visible:ring-2 focus-visible:ring-po-green/
|
|
1
|
+
{"version":3,"file":"Select.cjs","names":["SelectPrimitive","cn","ChevronDownIcon","CheckIcon","require_cn","radix_ui","react_jsx_runtime","lucide_react","Select","props","SelectGroup","SelectValue","SelectTrigger","className","children","SelectContent","SelectLabel","SelectItem","SelectSeparator"],"sources":["../../../src/components/Select.tsx"],"sourcesContent":["import { Select as SelectPrimitive } from 'radix-ui';\nimport type { ComponentProps } from 'react';\n\nimport { CheckIcon, ChevronDownIcon } from '../icons/icons';\nimport { cn } from '../lib/cn';\n\n/**\n * A single choice from a list, on Radix rather than a native <select>: a\n * native one cannot be styled to the palette on every platform, and the\n * cockpit's model and mode pickers need the same surface a popover has.\n */\nexport function Select(props: ComponentProps<typeof SelectPrimitive.Root>) {\n return <SelectPrimitive.Root data-slot=\"select\" {...props} />;\n}\n\nexport function SelectGroup(props: ComponentProps<typeof SelectPrimitive.Group>) {\n return <SelectPrimitive.Group data-slot=\"select-group\" {...props} />;\n}\n\nexport function SelectValue(props: ComponentProps<typeof SelectPrimitive.Value>) {\n return <SelectPrimitive.Value data-slot=\"select-value\" {...props} />;\n}\n\nexport function SelectTrigger({ className, children, ...props }: ComponentProps<typeof SelectPrimitive.Trigger>) {\n return (\n <SelectPrimitive.Trigger\n data-slot=\"select-trigger\"\n className={cn(\n 'flex h-7 cursor-pointer items-center justify-between gap-2 rounded border border-po-border bg-po-deep px-2.5 text-left text-base text-po-hi outline-none transition-colors hover:border-po-green/50 focus-visible:ring-2 focus-visible:ring-po-green/70 disabled:pointer-events-none disabled:opacity-40 data-[placeholder]:text-po-faint *:data-[slot=select-value]:truncate',\n className,\n )}\n {...props}\n >\n {children}\n <SelectPrimitive.Icon asChild>\n <ChevronDownIcon className=\"h-3 w-3 shrink-0 text-po-faint\" />\n </SelectPrimitive.Icon>\n </SelectPrimitive.Trigger>\n );\n}\n\nexport function SelectContent({\n className,\n position = 'popper',\n sideOffset = 4,\n children,\n ...props\n}: ComponentProps<typeof SelectPrimitive.Content>) {\n return (\n <SelectPrimitive.Portal>\n <SelectPrimitive.Content\n data-slot=\"select-content\"\n position={position}\n sideOffset={sideOffset}\n className={cn(\n 'z-50 max-h-[320px] min-w-[var(--radix-select-trigger-width)] overflow-hidden rounded border border-po-border bg-po-panel shadow-xl outline-none data-[state=open]:animate-po-rise',\n className,\n )}\n {...props}\n >\n <SelectPrimitive.Viewport className=\"p-1\">{children}</SelectPrimitive.Viewport>\n </SelectPrimitive.Content>\n </SelectPrimitive.Portal>\n );\n}\n\nexport function SelectLabel({ className, ...props }: ComponentProps<typeof SelectPrimitive.Label>) {\n return (\n <SelectPrimitive.Label\n data-slot=\"select-label\"\n className={cn('px-2 py-1 text-sm font-semibold text-po-dim first-letter:uppercase', className)}\n {...props}\n />\n );\n}\n\nexport function SelectItem({ className, children, ...props }: ComponentProps<typeof SelectPrimitive.Item>) {\n return (\n <SelectPrimitive.Item\n data-slot=\"select-item\"\n className={cn(\n 'relative flex cursor-pointer items-center gap-2 rounded-sm py-1.5 pr-2 pl-7 text-base text-po-hi outline-none select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-40 data-[highlighted]:bg-po-deep',\n className,\n )}\n {...props}\n >\n <span className=\"pointer-events-none absolute left-2 flex h-3 w-3 items-center justify-center\">\n <SelectPrimitive.ItemIndicator>\n <CheckIcon className=\"h-3 w-3 text-po-green\" />\n </SelectPrimitive.ItemIndicator>\n </span>\n <SelectPrimitive.ItemText>{children}</SelectPrimitive.ItemText>\n </SelectPrimitive.Item>\n );\n}\n\nexport function SelectSeparator({ className, ...props }: ComponentProps<typeof SelectPrimitive.Separator>) {\n return (\n <SelectPrimitive.Separator\n data-slot=\"select-separator\"\n className={cn('my-1 h-px bg-po-border-soft', className)}\n {...props}\n />\n );\n}\n"],"mappings":"A,kJAWA,SAAgBQ,EAAO,EAAoD,CACzE,MAAO,iBAAA,EAAAF,EAAA,IAAA,CAACN,EAAAA,OAAgB,KAAjB,CAAsB,YAAU,SAAS,GAAIS,CAAQ,CAAA,CAC9D,CAEA,SAAgBC,EAAY,EAAqD,CAC/E,MAAO,iBAAA,EAAAJ,EAAA,IAAA,CAACN,EAAAA,OAAgB,MAAjB,CAAuB,YAAU,eAAe,GAAIS,CAAQ,CAAA,CACrE,CAEA,SAAgBE,EAAY,EAAqD,CAC/E,MAAO,iBAAA,EAAAL,EAAA,IAAA,CAACN,EAAAA,OAAgB,MAAjB,CAAuB,YAAU,eAAe,GAAIS,CAAQ,CAAA,CACrE,CAEA,SAAgBG,EAAc,CAAE,YAAW,WAAU,GAAGH,GAAyD,CAC/G,MACE,iBAAA,EAAAH,EAAA,KAAA,CAACN,EAAAA,OAAgB,QAAjB,CACE,YAAU,iBACV,UAAWC,EAAAA,GACT,gXACAY,CACF,EACA,GAAIJ,EANN,SAAA,CAQGK,EACD,iBAAA,EAAAR,EAAA,IAAA,CAACN,EAAAA,OAAgB,KAAjB,CAAsB,QAAA,GACpB,SAAA,iBAAA,EAAAM,EAAA,IAAA,CAACJ,EAAAA,YAAD,CAAiB,UAAU,gCAAkC,CAAA,CACzC,CAAA,CACC,C,EAE7B,CAEA,SAAgBa,EAAc,CAC5B,YACA,WAAW,SACX,aAAa,EACb,WACA,GAAGN,GAC8C,CACjD,MACE,iBAAA,EAAAH,EAAA,IAAA,CAACN,EAAAA,OAAgB,OAAjB,CAAA,SACE,iBAAA,EAAAM,EAAA,IAAA,CAACN,EAAAA,OAAgB,QAAjB,CACE,YAAU,iBACA,WACE,aACZ,UAAWC,EAAAA,GACT,oLACAY,CACF,EACA,GAAIJ,EAEJ,SAAA,iBAAA,EAAAH,EAAA,IAAA,CAACN,EAAAA,OAAgB,SAAjB,CAA0B,UAAU,MAAO,UAAmC,CAAA,CACvD,CAAA,CACH,CAAA,CAE5B,CAEA,SAAgBgB,EAAY,CAAE,YAAW,GAAGP,GAAuD,CACjG,MACE,iBAAA,EAAAH,EAAA,IAAA,CAACN,EAAAA,OAAgB,MAAjB,CACE,YAAU,eACV,UAAWC,EAAAA,GAAG,qEAAsEY,CAAS,EAC7F,GAAIJ,CACL,CAAA,CAEL,CAEA,SAAgBQ,EAAW,CAAE,YAAW,WAAU,GAAGR,GAAsD,CACzG,MACE,iBAAA,EAAAH,EAAA,KAAA,CAACN,EAAAA,OAAgB,KAAjB,CACE,YAAU,cACV,UAAWC,EAAAA,GACT,yNACAY,CACF,EACA,GAAIJ,EANN,SAAA,CAQE,iBAAA,EAAAH,EAAA,IAAA,CAAC,OAAD,CAAM,UAAU,+EACd,SAAA,iBAAA,EAAAA,EAAA,IAAA,CAACN,EAAAA,OAAgB,cAAjB,CAAA,SACE,iBAAA,EAAAM,EAAA,IAAA,CAACH,EAAAA,MAAD,CAAW,UAAU,uBAAyB,CAAA,CACjB,CAAA,CAC3B,CAAA,EACN,iBAAA,EAAAG,EAAA,IAAA,CAACN,EAAAA,OAAgB,SAAjB,CAA2B,UAAmC,CAAA,CAC1C,C,EAE1B,CAEA,SAAgBkB,EAAgB,CAAE,YAAW,GAAGT,GAA2D,CACzG,MACE,iBAAA,EAAAH,EAAA,IAAA,CAACN,EAAAA,OAAgB,UAAjB,CACE,YAAU,mBACV,UAAWC,EAAAA,GAAG,8BAA+BY,CAAS,EACtD,GAAIJ,CACL,CAAA,CAEL,C"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{CheckIcon as e,ChevronDownIcon as t}from"../icons/icons.mjs";import{cn as n}from"../lib/cn.mjs";import{Select as r}from"radix-ui";import{jsx as i,jsxs as a}from"react/jsx-runtime";function o(e){return/* @__PURE__ */ i(r.Root,{"data-slot":`select`,...e})}function s(e){return/* @__PURE__ */ i(r.Group,{"data-slot":`select-group`,...e})}function c(e){return/* @__PURE__ */ i(r.Value,{"data-slot":`select-value`,...e})}function l({className:e,children:o,...s}){return/* @__PURE__ */ a(r.Trigger,{"data-slot":`select-trigger`,className:n(`flex h-7 cursor-pointer items-center justify-between gap-2 rounded border border-po-border bg-po-deep px-2.5 text-left text-base text-po-hi outline-none transition-colors hover:border-po-green/50 focus-visible:ring-2 focus-visible:ring-po-green/
|
|
1
|
+
import{CheckIcon as e,ChevronDownIcon as t}from"../icons/icons.mjs";import{cn as n}from"../lib/cn.mjs";import{Select as r}from"radix-ui";import{jsx as i,jsxs as a}from"react/jsx-runtime";function o(e){return/* @__PURE__ */ i(r.Root,{"data-slot":`select`,...e})}function s(e){return/* @__PURE__ */ i(r.Group,{"data-slot":`select-group`,...e})}function c(e){return/* @__PURE__ */ i(r.Value,{"data-slot":`select-value`,...e})}function l({className:e,children:o,...s}){return/* @__PURE__ */ a(r.Trigger,{"data-slot":`select-trigger`,className:n(`flex h-7 cursor-pointer items-center justify-between gap-2 rounded border border-po-border bg-po-deep px-2.5 text-left text-base text-po-hi outline-none transition-colors hover:border-po-green/50 focus-visible:ring-2 focus-visible:ring-po-green/70 disabled:pointer-events-none disabled:opacity-40 data-[placeholder]:text-po-faint *:data-[slot=select-value]:truncate`,e),...s,children:[o,/* @__PURE__ */ i(r.Icon,{asChild:!0,children:/* @__PURE__ */ i(t,{className:`h-3 w-3 shrink-0 text-po-faint`})})]})}function u({className:e,position:t=`popper`,sideOffset:a=4,children:o,...s}){return/* @__PURE__ */ i(r.Portal,{children:/* @__PURE__ */ i(r.Content,{"data-slot":`select-content`,position:t,sideOffset:a,className:n(`z-50 max-h-[320px] min-w-[var(--radix-select-trigger-width)] overflow-hidden rounded border border-po-border bg-po-panel shadow-xl outline-none data-[state=open]:animate-po-rise`,e),...s,children:/* @__PURE__ */ i(r.Viewport,{className:`p-1`,children:o})})})}function d({className:e,...t}){return/* @__PURE__ */ i(r.Label,{"data-slot":`select-label`,className:n(`px-2 py-1 text-sm font-semibold text-po-dim first-letter:uppercase`,e),...t})}function f({className:t,children:o,...s}){return/* @__PURE__ */ a(r.Item,{"data-slot":`select-item`,className:n(`relative flex cursor-pointer items-center gap-2 rounded-sm py-1.5 pr-2 pl-7 text-base text-po-hi outline-none select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-40 data-[highlighted]:bg-po-deep`,t),...s,children:[/* @__PURE__ */ i(`span`,{className:`pointer-events-none absolute left-2 flex h-3 w-3 items-center justify-center`,children:/* @__PURE__ */ i(r.ItemIndicator,{children:/* @__PURE__ */ i(e,{className:`h-3 w-3 text-po-green`})})}),/* @__PURE__ */ i(r.ItemText,{children:o})]})}function p({className:e,...t}){return/* @__PURE__ */ i(r.Separator,{"data-slot":`select-separator`,className:n(`my-1 h-px bg-po-border-soft`,e),...t})}export{o as Select,u as SelectContent,s as SelectGroup,f as SelectItem,d as SelectLabel,p as SelectSeparator,l as SelectTrigger,c as SelectValue};
|
|
2
2
|
//# sourceMappingURL=Select.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Select.mjs","names":["Select","SelectPrimitive","Select$1","Select","props","SelectGroup","SelectValue","SelectTrigger","cn","className","children","ChevronDownIcon","SelectContent","SelectLabel","SelectItem","CheckIcon","SelectSeparator"],"sources":["../../../src/components/Select.tsx"],"sourcesContent":["import { Select as SelectPrimitive } from 'radix-ui';\nimport type { ComponentProps } from 'react';\n\nimport { CheckIcon, ChevronDownIcon } from '../icons/icons';\nimport { cn } from '../lib/cn';\n\n/**\n * A single choice from a list, on Radix rather than a native <select>: a\n * native one cannot be styled to the palette on every platform, and the\n * cockpit's model and mode pickers need the same surface a popover has.\n */\nexport function Select(props: ComponentProps<typeof SelectPrimitive.Root>) {\n return <SelectPrimitive.Root data-slot=\"select\" {...props} />;\n}\n\nexport function SelectGroup(props: ComponentProps<typeof SelectPrimitive.Group>) {\n return <SelectPrimitive.Group data-slot=\"select-group\" {...props} />;\n}\n\nexport function SelectValue(props: ComponentProps<typeof SelectPrimitive.Value>) {\n return <SelectPrimitive.Value data-slot=\"select-value\" {...props} />;\n}\n\nexport function SelectTrigger({ className, children, ...props }: ComponentProps<typeof SelectPrimitive.Trigger>) {\n return (\n <SelectPrimitive.Trigger\n data-slot=\"select-trigger\"\n className={cn(\n 'flex h-7 cursor-pointer items-center justify-between gap-2 rounded border border-po-border bg-po-deep px-2.5 text-left text-base text-po-hi outline-none transition-colors hover:border-po-green/50 focus-visible:ring-2 focus-visible:ring-po-green/
|
|
1
|
+
{"version":3,"file":"Select.mjs","names":["Select","SelectPrimitive","Select$1","Select","props","SelectGroup","SelectValue","SelectTrigger","cn","className","children","ChevronDownIcon","SelectContent","SelectLabel","SelectItem","CheckIcon","SelectSeparator"],"sources":["../../../src/components/Select.tsx"],"sourcesContent":["import { Select as SelectPrimitive } from 'radix-ui';\nimport type { ComponentProps } from 'react';\n\nimport { CheckIcon, ChevronDownIcon } from '../icons/icons';\nimport { cn } from '../lib/cn';\n\n/**\n * A single choice from a list, on Radix rather than a native <select>: a\n * native one cannot be styled to the palette on every platform, and the\n * cockpit's model and mode pickers need the same surface a popover has.\n */\nexport function Select(props: ComponentProps<typeof SelectPrimitive.Root>) {\n return <SelectPrimitive.Root data-slot=\"select\" {...props} />;\n}\n\nexport function SelectGroup(props: ComponentProps<typeof SelectPrimitive.Group>) {\n return <SelectPrimitive.Group data-slot=\"select-group\" {...props} />;\n}\n\nexport function SelectValue(props: ComponentProps<typeof SelectPrimitive.Value>) {\n return <SelectPrimitive.Value data-slot=\"select-value\" {...props} />;\n}\n\nexport function SelectTrigger({ className, children, ...props }: ComponentProps<typeof SelectPrimitive.Trigger>) {\n return (\n <SelectPrimitive.Trigger\n data-slot=\"select-trigger\"\n className={cn(\n 'flex h-7 cursor-pointer items-center justify-between gap-2 rounded border border-po-border bg-po-deep px-2.5 text-left text-base text-po-hi outline-none transition-colors hover:border-po-green/50 focus-visible:ring-2 focus-visible:ring-po-green/70 disabled:pointer-events-none disabled:opacity-40 data-[placeholder]:text-po-faint *:data-[slot=select-value]:truncate',\n className,\n )}\n {...props}\n >\n {children}\n <SelectPrimitive.Icon asChild>\n <ChevronDownIcon className=\"h-3 w-3 shrink-0 text-po-faint\" />\n </SelectPrimitive.Icon>\n </SelectPrimitive.Trigger>\n );\n}\n\nexport function SelectContent({\n className,\n position = 'popper',\n sideOffset = 4,\n children,\n ...props\n}: ComponentProps<typeof SelectPrimitive.Content>) {\n return (\n <SelectPrimitive.Portal>\n <SelectPrimitive.Content\n data-slot=\"select-content\"\n position={position}\n sideOffset={sideOffset}\n className={cn(\n 'z-50 max-h-[320px] min-w-[var(--radix-select-trigger-width)] overflow-hidden rounded border border-po-border bg-po-panel shadow-xl outline-none data-[state=open]:animate-po-rise',\n className,\n )}\n {...props}\n >\n <SelectPrimitive.Viewport className=\"p-1\">{children}</SelectPrimitive.Viewport>\n </SelectPrimitive.Content>\n </SelectPrimitive.Portal>\n );\n}\n\nexport function SelectLabel({ className, ...props }: ComponentProps<typeof SelectPrimitive.Label>) {\n return (\n <SelectPrimitive.Label\n data-slot=\"select-label\"\n className={cn('px-2 py-1 text-sm font-semibold text-po-dim first-letter:uppercase', className)}\n {...props}\n />\n );\n}\n\nexport function SelectItem({ className, children, ...props }: ComponentProps<typeof SelectPrimitive.Item>) {\n return (\n <SelectPrimitive.Item\n data-slot=\"select-item\"\n className={cn(\n 'relative flex cursor-pointer items-center gap-2 rounded-sm py-1.5 pr-2 pl-7 text-base text-po-hi outline-none select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-40 data-[highlighted]:bg-po-deep',\n className,\n )}\n {...props}\n >\n <span className=\"pointer-events-none absolute left-2 flex h-3 w-3 items-center justify-center\">\n <SelectPrimitive.ItemIndicator>\n <CheckIcon className=\"h-3 w-3 text-po-green\" />\n </SelectPrimitive.ItemIndicator>\n </span>\n <SelectPrimitive.ItemText>{children}</SelectPrimitive.ItemText>\n </SelectPrimitive.Item>\n );\n}\n\nexport function SelectSeparator({ className, ...props }: ComponentProps<typeof SelectPrimitive.Separator>) {\n return (\n <SelectPrimitive.Separator\n data-slot=\"select-separator\"\n className={cn('my-1 h-px bg-po-border-soft', className)}\n {...props}\n />\n );\n}\n"],"mappings":"A,2LAWA,SAAgBA,EAAO,EAAoD,CACzE,MAAO,kBAACC,EAAgB,KAAjB,CAAsB,YAAU,SAAS,GAAIG,CAAQ,CAAA,CAC9D,CAEA,SAAgBC,EAAY,EAAqD,CAC/E,MAAO,kBAACJ,EAAgB,MAAjB,CAAuB,YAAU,eAAe,GAAIG,CAAQ,CAAA,CACrE,CAEA,SAAgBE,EAAY,EAAqD,CAC/E,MAAO,kBAACL,EAAgB,MAAjB,CAAuB,YAAU,eAAe,GAAIG,CAAQ,CAAA,CACrE,CAEA,SAAgBG,EAAc,CAAE,YAAW,WAAU,GAAGH,GAAyD,CAC/G,MACE,kBAACH,EAAgB,QAAjB,CACE,YAAU,iBACV,UAAWO,EACT,gXACAC,CACF,EACA,GAAIL,EANN,SAAA,CAQGM,EACD,kBAACT,EAAgB,KAAjB,CAAsB,QAAA,GACpB,SAAA,kBAACU,EAAD,CAAiB,UAAU,gCAAkC,CAAA,CACzC,CAAA,CACC,C,EAE7B,CAEA,SAAgBC,EAAc,CAC5B,YACA,WAAW,SACX,aAAa,EACb,WACA,GAAGR,GAC8C,CACjD,MACE,kBAACH,EAAgB,OAAjB,CAAA,SACE,kBAACA,EAAgB,QAAjB,CACE,YAAU,iBACA,WACE,aACZ,UAAWO,EACT,oLACAC,CACF,EACA,GAAIL,EAEJ,SAAA,kBAACH,EAAgB,SAAjB,CAA0B,UAAU,MAAO,UAAmC,CAAA,CACvD,CAAA,CACH,CAAA,CAE5B,CAEA,SAAgBY,EAAY,CAAE,YAAW,GAAGT,GAAuD,CACjG,MACE,kBAACH,EAAgB,MAAjB,CACE,YAAU,eACV,UAAWO,EAAG,qEAAsEC,CAAS,EAC7F,GAAIL,CACL,CAAA,CAEL,CAEA,SAAgBU,EAAW,CAAE,YAAW,WAAU,GAAGV,GAAsD,CACzG,MACE,kBAACH,EAAgB,KAAjB,CACE,YAAU,cACV,UAAWO,EACT,yNACAC,CACF,EACA,GAAIL,EANN,SAAA,CAQE,kBAAC,OAAD,CAAM,UAAU,+EACd,SAAA,kBAACH,EAAgB,cAAjB,CAAA,SACE,kBAACc,EAAD,CAAW,UAAU,uBAAyB,CAAA,CACjB,CAAA,CAC3B,CAAA,EACN,kBAACd,EAAgB,SAAjB,CAA2B,UAAmC,CAAA,CAC1C,C,EAE1B,CAEA,SAAgBe,EAAgB,CAAE,YAAW,GAAGZ,GAA2D,CACzG,MACE,kBAACH,EAAgB,UAAjB,CACE,YAAU,mBACV,UAAWO,EAAG,8BAA+BC,CAAS,EACtD,GAAIL,CACL,CAAA,CAEL,C"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agimon-ai/po-web-components",
|
|
3
|
-
"version": "0.0.0-alpha.
|
|
3
|
+
"version": "0.0.0-alpha.214",
|
|
4
4
|
"description": "Shared web components and theme tokens for the Po cockpit and its web plugins: shadcn-style primitives on Radix, tuned to the Po palette, with runtime theme configs.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ai",
|
|
@@ -122,9 +122,9 @@
|
|
|
122
122
|
"tailwind-merge": "3.7.0"
|
|
123
123
|
},
|
|
124
124
|
"devDependencies": {
|
|
125
|
-
"@agimon-ai/po-build": "0.0.0-alpha.
|
|
126
|
-
"@agimon-ai/po-core": "0.0.0-alpha.
|
|
127
|
-
"@agimon-ai/vibe-lint-plugin-po-web": "0.0.0-alpha.
|
|
125
|
+
"@agimon-ai/po-build": "0.0.0-alpha.214",
|
|
126
|
+
"@agimon-ai/po-core": "0.0.0-alpha.214",
|
|
127
|
+
"@agimon-ai/vibe-lint-plugin-po-web": "0.0.0-alpha.214",
|
|
128
128
|
"@types/node": "26.6.5",
|
|
129
129
|
"@types/react": "19.3.0",
|
|
130
130
|
"@types/react-dom": "19.3.0",
|
|
@@ -137,7 +137,7 @@
|
|
|
137
137
|
"vitest": "5.0.4"
|
|
138
138
|
},
|
|
139
139
|
"peerDependencies": {
|
|
140
|
-
"@agimon-ai/po-core": "0.0.0-alpha.
|
|
140
|
+
"@agimon-ai/po-core": "0.0.0-alpha.214",
|
|
141
141
|
"react": "^19.0.0",
|
|
142
142
|
"react-dom": "^19.0.0"
|
|
143
143
|
},
|