@agimon-ai/po-web-components 0.0.0-alpha.21 → 0.0.0-alpha.211
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/LICENSE +1 -192
- package/NOTICE +61 -0
- package/README.md +7 -12
- package/dist/index.cjs +1 -1
- package/dist/index.d.mts +90 -70
- package/dist/index.mjs +1 -1
- package/dist/markdownMediaSlot.cjs +1 -0
- package/dist/markdownMediaSlot.d.mts +2 -0
- package/dist/markdownMediaSlot.mjs +1 -0
- package/dist/mcpAppHost.cjs +1 -0
- package/dist/mcpAppHost.d.mts +4 -0
- package/dist/mcpAppHost.mjs +1 -0
- package/dist/mcpWidget.d.mts +2 -2
- package/dist/mcpWidget.mjs +1 -1
- package/dist/nativeTheme.d.mts +2 -2
- package/dist/nativeTheme.mjs +1 -1
- package/dist/po-runtime-identity.json +1 -0
- package/dist/src/components/Accordion.cjs.map +1 -1
- package/dist/src/components/Accordion.d.mts.map +1 -0
- package/dist/src/components/Accordion.mjs.map +1 -0
- package/dist/src/components/AgentAvatar.cjs +1 -1
- package/dist/src/components/AgentAvatar.cjs.map +1 -1
- package/dist/{packages/core/po-web-components/src → src}/components/AgentAvatar.d.mts +6 -2
- package/dist/src/components/AgentAvatar.d.mts.map +1 -0
- package/dist/src/components/AgentAvatar.mjs +2 -0
- package/dist/src/components/AgentAvatar.mjs.map +1 -0
- package/dist/src/components/AnsiText.cjs.map +1 -1
- package/dist/src/components/AnsiText.d.mts.map +1 -0
- package/dist/src/components/AnsiText.mjs.map +1 -0
- package/dist/src/components/Avatar.cjs.map +1 -1
- package/dist/src/components/Avatar.d.mts.map +1 -0
- package/dist/src/components/Avatar.mjs.map +1 -0
- package/dist/src/components/Badge.cjs.map +1 -1
- package/dist/src/components/Badge.d.mts.map +1 -0
- package/dist/src/components/Badge.mjs.map +1 -0
- package/dist/src/components/Breadcrumb.cjs.map +1 -1
- package/dist/src/components/Breadcrumb.d.mts.map +1 -0
- package/dist/src/components/Breadcrumb.mjs.map +1 -0
- package/dist/src/components/Button.cjs.map +1 -1
- package/dist/src/components/Button.d.mts.map +1 -0
- package/dist/src/components/Button.mjs.map +1 -0
- package/dist/src/components/Checkbox.cjs.map +1 -1
- package/dist/src/components/Checkbox.d.mts.map +1 -0
- package/dist/src/components/Checkbox.mjs.map +1 -0
- package/dist/src/components/CodeBlock.cjs.map +1 -1
- package/dist/src/components/CodeBlock.d.mts.map +1 -0
- package/dist/src/components/CodeBlock.mjs.map +1 -0
- package/dist/src/components/CodeEditor.cjs.map +1 -1
- package/dist/src/components/CodeEditor.d.mts.map +1 -0
- package/dist/src/components/CodeEditor.mjs.map +1 -0
- package/dist/src/components/CodeEditorView.cjs.map +1 -1
- package/dist/src/components/CodeEditorView.mjs.map +1 -0
- package/dist/src/components/Collapsible.cjs.map +1 -1
- package/dist/src/components/Collapsible.d.mts.map +1 -0
- package/dist/src/components/Collapsible.mjs.map +1 -0
- package/dist/src/components/Command.cjs.map +1 -1
- package/dist/src/components/Command.d.mts.map +1 -0
- package/dist/src/components/Command.mjs.map +1 -0
- package/dist/src/components/CopyButton.cjs +1 -1
- package/dist/src/components/CopyButton.cjs.map +1 -1
- package/dist/src/components/CopyButton.mjs +2 -0
- package/dist/src/components/CopyButton.mjs.map +1 -0
- package/dist/src/components/CtaCard.cjs +2 -0
- package/dist/src/components/CtaCard.cjs.map +1 -0
- package/dist/src/components/CtaCard.d.mts +16 -0
- package/dist/src/components/CtaCard.d.mts.map +1 -0
- package/dist/src/components/CtaCard.mjs +2 -0
- package/dist/src/components/CtaCard.mjs.map +1 -0
- package/dist/src/components/Dialog.cjs +1 -1
- package/dist/src/components/Dialog.cjs.map +1 -1
- package/dist/src/components/Dialog.d.mts.map +1 -0
- package/dist/src/components/Dialog.mjs +2 -0
- package/dist/src/components/Dialog.mjs.map +1 -0
- package/dist/src/components/DiffView.cjs +1 -1
- package/dist/src/components/DiffView.cjs.map +1 -1
- package/dist/src/components/DiffView.d.mts.map +1 -0
- package/dist/src/components/DiffView.mjs +2 -0
- package/dist/src/components/DiffView.mjs.map +1 -0
- package/dist/src/components/Dot.cjs.map +1 -1
- package/dist/src/components/Dot.d.mts.map +1 -0
- package/dist/src/components/Dot.mjs.map +1 -0
- package/dist/src/components/Drawer.cjs.map +1 -1
- package/dist/src/components/Drawer.d.mts.map +1 -0
- package/dist/src/components/Drawer.mjs.map +1 -0
- package/dist/src/components/DropdownMenu.cjs +1 -1
- package/dist/src/components/DropdownMenu.cjs.map +1 -1
- package/dist/src/components/DropdownMenu.d.mts.map +1 -0
- package/dist/{packages/core/po-web-components/src → src}/components/DropdownMenu.mjs +1 -1
- package/dist/src/components/DropdownMenu.mjs.map +1 -0
- package/dist/src/components/EmptyState.cjs +1 -1
- package/dist/src/components/EmptyState.cjs.map +1 -1
- package/dist/src/components/EmptyState.d.mts +41 -0
- package/dist/src/components/EmptyState.d.mts.map +1 -0
- package/dist/src/components/EmptyState.mjs +2 -0
- package/dist/src/components/EmptyState.mjs.map +1 -0
- package/dist/src/components/FileBrowser.cjs +2 -0
- package/dist/src/components/FileBrowser.cjs.map +1 -0
- package/dist/src/components/FileBrowser.d.mts +62 -0
- package/dist/src/components/FileBrowser.d.mts.map +1 -0
- package/dist/src/components/FileBrowser.mjs +2 -0
- package/dist/src/components/FileBrowser.mjs.map +1 -0
- package/dist/src/components/FilePreview.cjs +2 -0
- package/dist/src/components/FilePreview.cjs.map +1 -0
- package/dist/src/components/FilePreview.d.mts +32 -0
- package/dist/src/components/FilePreview.d.mts.map +1 -0
- package/dist/src/components/FilePreview.mjs +2 -0
- package/dist/src/components/FilePreview.mjs.map +1 -0
- package/dist/src/components/FlowGraph.cjs +2 -0
- package/dist/src/components/FlowGraph.cjs.map +1 -0
- package/dist/src/components/FlowGraph.d.mts +119 -0
- package/dist/src/components/FlowGraph.d.mts.map +1 -0
- package/dist/src/components/FlowGraph.mjs +2 -0
- package/dist/src/components/FlowGraph.mjs.map +1 -0
- package/dist/src/components/HashlineLines.cjs +1 -1
- package/dist/src/components/HashlineLines.cjs.map +1 -1
- package/dist/src/components/HashlineLines.d.mts.map +1 -0
- package/dist/src/components/HashlineLines.mjs +2 -0
- package/dist/src/components/HashlineLines.mjs.map +1 -0
- package/dist/src/components/Input.cjs +1 -1
- package/dist/src/components/Input.cjs.map +1 -1
- package/dist/src/components/Input.d.mts.map +1 -0
- package/dist/src/components/Input.mjs +2 -0
- package/dist/src/components/Input.mjs.map +1 -0
- package/dist/src/components/Kbd.cjs.map +1 -1
- package/dist/src/components/Kbd.d.mts.map +1 -0
- package/dist/src/components/Kbd.mjs.map +1 -0
- package/dist/src/components/Label.cjs.map +1 -1
- package/dist/src/components/Label.d.mts.map +1 -0
- package/dist/src/components/Label.mjs.map +1 -0
- package/dist/src/components/LiveDuration.cjs +2 -0
- package/dist/src/components/LiveDuration.cjs.map +1 -0
- package/dist/src/components/LiveDuration.d.mts +15 -0
- package/dist/src/components/LiveDuration.d.mts.map +1 -0
- package/dist/src/components/LiveDuration.mjs +2 -0
- package/dist/src/components/LiveDuration.mjs.map +1 -0
- package/dist/src/components/LoadingState.cjs +2 -0
- package/dist/src/components/LoadingState.cjs.map +1 -0
- package/dist/src/components/LoadingState.d.mts +17 -0
- package/dist/src/components/LoadingState.d.mts.map +1 -0
- package/dist/src/components/LoadingState.mjs +2 -0
- package/dist/src/components/LoadingState.mjs.map +1 -0
- package/dist/src/components/Markdown.cjs +2 -2
- package/dist/src/components/Markdown.cjs.map +1 -1
- package/dist/src/components/Markdown.d.mts +38 -0
- package/dist/src/components/Markdown.d.mts.map +1 -0
- package/dist/src/components/Markdown.mjs +3 -0
- package/dist/src/components/Markdown.mjs.map +1 -0
- package/dist/src/components/McpApp.cjs +1 -1
- package/dist/src/components/McpApp.cjs.map +1 -1
- package/dist/{packages/core/po-web-components/src → src}/components/McpApp.d.mts +1 -2
- package/dist/src/components/McpApp.d.mts.map +1 -0
- package/dist/src/components/McpApp.mjs +2 -0
- package/dist/src/components/McpApp.mjs.map +1 -0
- package/dist/src/components/McpToolWidget.cjs +2 -2
- package/dist/src/components/McpToolWidget.cjs.map +1 -1
- package/dist/{packages/core/po-web-components/src → src}/components/McpToolWidget.d.mts +1 -2
- package/dist/src/components/McpToolWidget.d.mts.map +1 -0
- package/dist/src/components/McpToolWidget.mjs +3 -0
- package/dist/src/components/McpToolWidget.mjs.map +1 -0
- package/dist/src/components/MediaPreview.cjs +1 -1
- package/dist/src/components/MediaPreview.cjs.map +1 -1
- package/dist/src/components/MediaPreview.d.mts.map +1 -0
- package/dist/src/components/MediaPreview.mjs +2 -0
- package/dist/src/components/MediaPreview.mjs.map +1 -0
- package/dist/src/components/MediaViewerDialog.cjs +2 -0
- package/dist/src/components/MediaViewerDialog.cjs.map +1 -0
- package/dist/src/components/MediaViewerDialog.d.mts +20 -0
- package/dist/src/components/MediaViewerDialog.d.mts.map +1 -0
- package/dist/src/components/MediaViewerDialog.mjs +2 -0
- package/dist/src/components/MediaViewerDialog.mjs.map +1 -0
- package/dist/src/components/MermaidDiagram.cjs +1 -1
- package/dist/src/components/MermaidDiagram.cjs.map +1 -1
- package/dist/src/components/MermaidDiagram.mjs +2 -0
- package/dist/src/components/MermaidDiagram.mjs.map +1 -0
- package/dist/src/components/MessageItem.cjs +1 -1
- package/dist/src/components/MessageItem.cjs.map +1 -1
- package/dist/{packages/core/po-web-components/src → src}/components/MessageItem.d.mts +9 -2
- package/dist/src/components/MessageItem.d.mts.map +1 -0
- package/dist/src/components/MessageItem.mjs +2 -0
- package/dist/src/components/MessageItem.mjs.map +1 -0
- package/dist/src/components/MessageLines.cjs.map +1 -1
- package/dist/src/components/MessageLines.d.mts.map +1 -0
- package/dist/src/components/MessageLines.mjs.map +1 -0
- package/dist/src/components/OptionList.cjs +1 -1
- package/dist/src/components/OptionList.cjs.map +1 -1
- package/dist/src/components/OptionList.d.mts.map +1 -0
- package/dist/src/components/OptionList.mjs +2 -0
- package/dist/src/components/OptionList.mjs.map +1 -0
- package/dist/src/components/Panel.cjs.map +1 -1
- package/dist/src/components/Panel.d.mts.map +1 -0
- package/dist/src/components/Panel.mjs.map +1 -0
- package/dist/src/components/PathText.cjs +2 -0
- package/dist/src/components/PathText.cjs.map +1 -0
- package/dist/src/components/PathText.d.mts +15 -0
- package/dist/src/components/PathText.d.mts.map +1 -0
- package/dist/src/components/PathText.mjs +2 -0
- package/dist/src/components/PathText.mjs.map +1 -0
- package/dist/src/components/PdfPreview.cjs +1 -1
- package/dist/src/components/PdfPreview.cjs.map +1 -1
- package/dist/src/components/PdfPreview.d.mts.map +1 -0
- package/dist/src/components/PdfPreview.mjs +2 -0
- package/dist/src/components/PdfPreview.mjs.map +1 -0
- package/dist/src/components/Picker.cjs +1 -1
- package/dist/src/components/Picker.cjs.map +1 -1
- package/dist/{packages/core/po-web-components/src → src}/components/Picker.d.mts +19 -6
- package/dist/src/components/Picker.d.mts.map +1 -0
- package/dist/src/components/Picker.mjs +2 -0
- package/dist/src/components/Picker.mjs.map +1 -0
- package/dist/src/components/Popover.cjs.map +1 -1
- package/dist/src/components/Popover.d.mts.map +1 -0
- package/dist/src/components/Popover.mjs.map +1 -0
- package/dist/src/components/ProfilePicker.cjs +2 -0
- package/dist/src/components/ProfilePicker.cjs.map +1 -0
- package/dist/src/components/ProfilePicker.d.mts +34 -0
- package/dist/src/components/ProfilePicker.d.mts.map +1 -0
- package/dist/src/components/ProfilePicker.mjs +2 -0
- package/dist/src/components/ProfilePicker.mjs.map +1 -0
- package/dist/src/components/Progress.cjs.map +1 -1
- package/dist/src/components/Progress.d.mts.map +1 -0
- package/dist/src/components/Progress.mjs.map +1 -0
- package/dist/src/components/QrCode.cjs +2 -0
- package/dist/src/components/QrCode.cjs.map +1 -0
- package/dist/src/components/QrCode.d.mts +22 -0
- package/dist/src/components/QrCode.d.mts.map +1 -0
- package/dist/src/components/QrCode.mjs +2 -0
- package/dist/src/components/QrCode.mjs.map +1 -0
- package/dist/src/components/RadioGroup.cjs.map +1 -1
- package/dist/src/components/RadioGroup.d.mts.map +1 -0
- package/dist/src/components/RadioGroup.mjs.map +1 -0
- package/dist/src/components/ReferenceChip.cjs +2 -0
- package/dist/src/components/ReferenceChip.cjs.map +1 -0
- package/dist/src/components/ReferenceChip.d.mts +17 -0
- package/dist/src/components/ReferenceChip.d.mts.map +1 -0
- package/dist/src/components/ReferenceChip.mjs +2 -0
- package/dist/src/components/ReferenceChip.mjs.map +1 -0
- package/dist/src/components/ReviewCommentDraft.cjs +1 -1
- package/dist/src/components/ReviewCommentDraft.cjs.map +1 -1
- package/dist/src/components/ReviewCommentDraft.d.mts.map +1 -0
- package/dist/src/components/ReviewCommentDraft.mjs +2 -0
- package/dist/src/components/ReviewCommentDraft.mjs.map +1 -0
- package/dist/src/components/ScrollArea.cjs.map +1 -1
- package/dist/src/components/ScrollArea.d.mts.map +1 -0
- package/dist/src/components/ScrollArea.mjs.map +1 -0
- package/dist/src/components/SectionLabel.cjs.map +1 -1
- package/dist/{packages/core/po-web-components/src → src}/components/SectionLabel.d.mts +1 -1
- package/dist/src/components/SectionLabel.d.mts.map +1 -0
- package/dist/src/components/SectionLabel.mjs.map +1 -0
- package/dist/src/components/Select.cjs.map +1 -1
- package/dist/src/components/Select.d.mts.map +1 -0
- package/dist/src/components/Select.mjs.map +1 -0
- package/dist/src/components/Separator.cjs.map +1 -1
- package/dist/src/components/Separator.d.mts.map +1 -0
- package/dist/src/components/Separator.mjs.map +1 -0
- package/dist/src/components/Settings.cjs.map +1 -1
- package/dist/src/components/Settings.d.mts.map +1 -0
- package/dist/src/components/Settings.mjs.map +1 -0
- package/dist/src/components/SetupRow.cjs +2 -0
- package/dist/src/components/SetupRow.cjs.map +1 -0
- package/dist/src/components/SetupRow.d.mts +17 -0
- package/dist/src/components/SetupRow.d.mts.map +1 -0
- package/dist/src/components/SetupRow.mjs +2 -0
- package/dist/src/components/SetupRow.mjs.map +1 -0
- package/dist/src/components/Sheet.cjs +1 -1
- package/dist/src/components/Sheet.cjs.map +1 -1
- package/dist/src/components/Sheet.d.mts.map +1 -0
- package/dist/src/components/Sheet.mjs +2 -0
- package/dist/src/components/Sheet.mjs.map +1 -0
- package/dist/src/components/Skeleton.cjs.map +1 -1
- package/dist/src/components/Skeleton.d.mts.map +1 -0
- package/dist/src/components/Skeleton.mjs.map +1 -0
- package/dist/src/components/Spinner.cjs.map +1 -1
- package/dist/src/components/Spinner.d.mts.map +1 -0
- package/dist/src/components/Spinner.mjs.map +1 -0
- package/dist/src/components/StatusBadge.cjs.map +1 -1
- package/dist/src/components/StatusBadge.d.mts.map +1 -0
- package/dist/src/components/StatusBadge.mjs.map +1 -0
- package/dist/src/components/StreamCursor.cjs.map +1 -1
- package/dist/src/components/StreamCursor.d.mts.map +1 -0
- package/dist/src/components/StreamCursor.mjs.map +1 -0
- package/dist/src/components/Switch.cjs.map +1 -1
- package/dist/src/components/Switch.d.mts.map +1 -0
- package/dist/src/components/Switch.mjs.map +1 -0
- package/dist/src/components/SyntaxText.cjs +1 -1
- package/dist/src/components/SyntaxText.cjs.map +1 -1
- package/dist/src/components/SyntaxText.d.mts.map +1 -0
- package/dist/{packages/core/po-web-components/src → src}/components/SyntaxText.mjs +1 -1
- package/dist/src/components/SyntaxText.mjs.map +1 -0
- package/dist/src/components/Tabs.cjs +1 -1
- package/dist/src/components/Tabs.cjs.map +1 -1
- package/dist/{packages/core/po-web-components/src → src}/components/Tabs.d.mts +7 -3
- package/dist/src/components/Tabs.d.mts.map +1 -0
- package/dist/src/components/Tabs.mjs +2 -0
- package/dist/src/components/Tabs.mjs.map +1 -0
- package/dist/src/components/TerminalView.cjs.map +1 -1
- package/dist/src/components/TerminalView.d.mts.map +1 -0
- package/dist/src/components/TerminalView.mjs.map +1 -0
- package/dist/src/components/Textarea.cjs.map +1 -1
- package/dist/src/components/Textarea.d.mts.map +1 -0
- package/dist/src/components/Textarea.mjs.map +1 -0
- package/dist/src/components/Toast.cjs +1 -1
- package/dist/src/components/Toast.cjs.map +1 -1
- package/dist/src/components/Toast.d.mts.map +1 -0
- package/dist/src/components/Toast.mjs +2 -0
- package/dist/src/components/Toast.mjs.map +1 -0
- package/dist/src/components/ToolPathLink.cjs +1 -1
- package/dist/src/components/ToolPathLink.cjs.map +1 -1
- package/dist/src/components/ToolPathLink.d.mts.map +1 -0
- package/dist/src/components/ToolPathLink.mjs +2 -0
- package/dist/src/components/ToolPathLink.mjs.map +1 -0
- package/dist/src/components/Tooltip.cjs.map +1 -1
- package/dist/src/components/Tooltip.d.mts.map +1 -0
- package/dist/src/components/Tooltip.mjs.map +1 -0
- package/dist/src/components/ViewableImage.cjs +2 -0
- package/dist/src/components/ViewableImage.cjs.map +1 -0
- package/dist/src/components/ViewableImage.d.mts +19 -0
- package/dist/src/components/ViewableImage.d.mts.map +1 -0
- package/dist/src/components/ViewableImage.mjs +2 -0
- package/dist/src/components/ViewableImage.mjs.map +1 -0
- package/dist/src/icons/icons.cjs +1 -1
- package/dist/src/icons/icons.d.mts +2 -0
- package/dist/src/icons/icons.mjs +1 -0
- package/dist/src/lib/ansiSpans.cjs.map +1 -1
- package/dist/src/lib/ansiSpans.d.mts.map +1 -0
- package/dist/src/lib/ansiSpans.mjs.map +1 -0
- package/dist/src/lib/cn.cjs.map +1 -1
- package/dist/src/lib/cn.d.mts.map +1 -0
- package/dist/src/lib/cn.mjs.map +1 -0
- package/dist/src/lib/collapse.cjs.map +1 -1
- package/dist/src/lib/collapse.d.mts.map +1 -0
- package/dist/src/lib/collapse.mjs.map +1 -0
- package/dist/src/lib/editorController.cjs.map +1 -1
- package/dist/src/lib/editorController.mjs.map +1 -0
- package/dist/src/lib/editorLanguage.cjs.map +1 -1
- package/dist/src/lib/editorLanguage.d.mts.map +1 -0
- package/dist/src/lib/editorLanguage.mjs.map +1 -0
- package/dist/src/lib/editorTheme.cjs.map +1 -1
- package/dist/src/lib/editorTheme.d.mts.map +1 -0
- package/dist/src/lib/editorTheme.mjs.map +1 -0
- package/dist/src/lib/fenceGrammar.cjs.map +1 -1
- package/dist/src/lib/fenceGrammar.mjs.map +1 -0
- package/dist/src/lib/fileDownload.cjs +2 -0
- package/dist/src/lib/fileDownload.cjs.map +1 -0
- package/dist/src/lib/fileDownload.d.mts +25 -0
- package/dist/src/lib/fileDownload.d.mts.map +1 -0
- package/dist/src/lib/fileDownload.mjs +2 -0
- package/dist/src/lib/fileDownload.mjs.map +1 -0
- package/dist/src/lib/files.cjs +2 -0
- package/dist/src/lib/files.cjs.map +1 -0
- package/dist/src/lib/files.d.mts +61 -0
- package/dist/src/lib/files.d.mts.map +1 -0
- package/dist/src/lib/files.mjs +2 -0
- package/dist/src/lib/files.mjs.map +1 -0
- package/dist/src/lib/hashlineHighlight.cjs +1 -1
- package/dist/src/lib/hashlineHighlight.cjs.map +1 -1
- package/dist/src/lib/hashlineHighlight.d.mts.map +1 -0
- package/dist/{packages/core/po-web-components/src → src}/lib/hashlineHighlight.mjs +1 -1
- package/dist/src/lib/hashlineHighlight.mjs.map +1 -0
- package/dist/src/lib/hashlineView.cjs.map +1 -1
- package/dist/src/lib/hashlineView.d.mts.map +1 -0
- package/dist/src/lib/hashlineView.mjs.map +1 -0
- package/dist/src/lib/markdownMedia.cjs +2 -0
- package/dist/src/lib/markdownMedia.cjs.map +1 -0
- package/dist/src/lib/markdownMedia.d.mts +56 -0
- package/dist/src/lib/markdownMedia.d.mts.map +1 -0
- package/dist/src/lib/markdownMedia.mjs +2 -0
- package/dist/src/lib/markdownMedia.mjs.map +1 -0
- package/dist/src/lib/markdownMediaSlot.cjs +2 -0
- package/dist/src/lib/markdownMediaSlot.cjs.map +1 -0
- package/dist/src/lib/markdownMediaSlot.d.mts +10 -0
- package/dist/src/lib/markdownMediaSlot.d.mts.map +1 -0
- package/dist/src/lib/markdownMediaSlot.mjs +2 -0
- package/dist/src/lib/markdownMediaSlot.mjs.map +1 -0
- package/dist/src/lib/markdownReferences.cjs +2 -0
- package/dist/src/lib/markdownReferences.cjs.map +1 -0
- package/dist/src/lib/markdownReferences.mjs +2 -0
- package/dist/src/lib/markdownReferences.mjs.map +1 -0
- package/dist/src/lib/mcpAppFrame.cjs +3 -0
- package/dist/src/lib/mcpAppFrame.cjs.map +1 -0
- package/dist/src/lib/mcpAppFrame.d.mts +47 -0
- package/dist/src/lib/mcpAppFrame.d.mts.map +1 -0
- package/dist/src/lib/mcpAppFrame.mjs +3 -0
- package/dist/src/lib/mcpAppFrame.mjs.map +1 -0
- package/dist/src/lib/mcpAppSandbox.cjs +2 -0
- package/dist/src/lib/mcpAppSandbox.cjs.map +1 -0
- package/dist/src/lib/mcpAppSandbox.d.mts +19 -0
- package/dist/src/lib/mcpAppSandbox.d.mts.map +1 -0
- package/dist/src/lib/mcpAppSandbox.mjs +2 -0
- package/dist/src/lib/mcpAppSandbox.mjs.map +1 -0
- package/dist/src/lib/mcpOpenAiBootstrap.cjs +2 -0
- package/dist/src/lib/mcpOpenAiBootstrap.cjs.map +1 -0
- package/dist/src/lib/mcpOpenAiBootstrap.d.mts +32 -0
- package/dist/src/lib/mcpOpenAiBootstrap.d.mts.map +1 -0
- package/dist/src/lib/mcpOpenAiBootstrap.mjs +2 -0
- package/dist/src/lib/mcpOpenAiBootstrap.mjs.map +1 -0
- package/dist/src/lib/media.cjs.map +1 -1
- package/dist/src/lib/media.d.mts.map +1 -0
- package/dist/src/lib/media.mjs.map +1 -0
- package/dist/src/lib/mediaPlayback.cjs.map +1 -1
- package/dist/src/lib/mediaPlayback.mjs.map +1 -0
- package/dist/src/lib/mermaidDiagram.cjs +1 -1
- package/dist/src/lib/mermaidDiagram.cjs.map +1 -1
- package/dist/src/lib/mermaidDiagram.mjs +2 -0
- package/dist/src/lib/mermaidDiagram.mjs.map +1 -0
- package/dist/src/lib/optionList.cjs.map +1 -1
- package/dist/src/lib/optionList.d.mts.map +1 -0
- package/dist/src/lib/optionList.mjs.map +1 -0
- package/dist/src/lib/pathGroups.cjs.map +1 -1
- package/dist/src/lib/pathGroups.d.mts.map +1 -0
- package/dist/src/lib/pathGroups.mjs.map +1 -0
- package/dist/src/lib/picker.cjs +1 -1
- package/dist/src/lib/picker.cjs.map +1 -1
- package/dist/src/lib/picker.d.mts.map +1 -0
- package/dist/src/lib/picker.mjs +2 -0
- package/dist/src/lib/picker.mjs.map +1 -0
- package/dist/src/lib/profilePicker.cjs +2 -0
- package/dist/src/lib/profilePicker.cjs.map +1 -0
- package/dist/src/lib/profilePicker.d.mts +43 -0
- package/dist/src/lib/profilePicker.d.mts.map +1 -0
- package/dist/src/lib/profilePicker.mjs +2 -0
- package/dist/src/lib/profilePicker.mjs.map +1 -0
- package/dist/src/lib/qrMatrix.cjs +2 -0
- package/dist/src/lib/qrMatrix.cjs.map +1 -0
- package/dist/src/lib/qrMatrix.d.mts +5 -0
- package/dist/src/lib/qrMatrix.d.mts.map +1 -0
- package/dist/src/lib/qrMatrix.mjs +2 -0
- package/dist/src/lib/qrMatrix.mjs.map +1 -0
- package/dist/src/lib/review.cjs.map +1 -1
- package/dist/src/lib/review.d.mts.map +1 -0
- package/dist/src/lib/review.mjs.map +1 -0
- package/dist/src/lib/runDuration.cjs +2 -0
- package/dist/src/lib/runDuration.cjs.map +1 -0
- package/dist/src/lib/runDuration.d.mts +12 -0
- package/dist/src/lib/runDuration.d.mts.map +1 -0
- package/dist/src/lib/runDuration.mjs +2 -0
- package/dist/src/lib/runDuration.mjs.map +1 -0
- package/dist/src/lib/syntaxHighlight.cjs +1 -1
- package/dist/src/lib/syntaxHighlight.cjs.map +1 -1
- package/dist/{packages/core/po-web-components/src → src}/lib/syntaxHighlight.d.mts +6 -8
- package/dist/src/lib/syntaxHighlight.d.mts.map +1 -0
- package/dist/{packages/core/po-web-components/src → src}/lib/syntaxHighlight.mjs +1 -1
- package/dist/src/lib/syntaxHighlight.mjs.map +1 -0
- package/dist/src/lib/tone.cjs.map +1 -1
- package/dist/src/lib/tone.d.mts.map +1 -0
- package/dist/src/lib/tone.mjs.map +1 -0
- package/dist/src/theme/apply.cjs.map +1 -1
- package/dist/src/theme/apply.d.mts.map +1 -0
- package/dist/src/theme/apply.mjs.map +1 -0
- package/dist/src/theme/builtinThemes.cjs.map +1 -1
- package/dist/src/theme/builtinThemes.d.mts.map +1 -0
- package/dist/src/theme/builtinThemes.mjs.map +1 -0
- package/dist/src/theme/derive.cjs.map +1 -1
- package/dist/src/theme/derive.d.mts.map +1 -0
- package/dist/src/theme/derive.mjs.map +1 -0
- package/dist/src/theme/nativeTheme.cjs.map +1 -1
- package/dist/src/theme/nativeTheme.d.mts.map +1 -0
- package/dist/src/theme/nativeTheme.mjs.map +1 -0
- package/dist/src/theme/parse.cjs.map +1 -1
- package/dist/src/theme/parse.d.mts.map +1 -0
- package/dist/src/theme/parse.mjs.map +1 -0
- package/dist/src/theme/piTheme.cjs.map +1 -1
- package/dist/src/theme/piTheme.d.mts.map +1 -0
- package/dist/src/theme/piTheme.mjs.map +1 -0
- package/dist/src/theme/preference.cjs.map +1 -1
- package/dist/src/theme/preference.d.mts.map +1 -0
- package/dist/src/theme/preference.mjs.map +1 -0
- package/dist/src/types/diff.d.mts.map +1 -0
- package/dist/src/types/editor.cjs.map +1 -1
- package/dist/src/types/editor.d.mts.map +1 -0
- package/dist/src/types/editor.mjs.map +1 -0
- package/dist/src/types/theme.cjs.map +1 -1
- package/dist/src/types/theme.d.mts.map +1 -0
- package/dist/src/types/theme.mjs.map +1 -0
- package/dist/src/types/tone.cjs.map +1 -1
- package/dist/src/types/tone.d.mts.map +1 -0
- package/dist/src/types/tone.mjs.map +1 -0
- package/dist/text.cjs +1 -1
- package/dist/text.d.mts +13 -4
- package/dist/text.mjs +1 -1
- package/dist/theme.d.mts +7 -7
- package/dist/theme.mjs +1 -1
- package/dist/themes/po-nord-dark.cjs +1 -1
- package/dist/{packages/core/po-web-components/themes → themes}/po-nord-dark.mjs +1 -1
- package/dist/{packages/core/po-web-components/themes → themes}/po-nord-dark.mjs.map +1 -1
- package/dist/{packages/core/po-web-components/themes → themes}/po-one-light.mjs.map +1 -1
- package/locales/vi.json +168 -0
- package/locales/zh-CN.json +168 -0
- package/package.json +30 -11
- package/styles/theme.css +23 -0
- package/themes/po-nord-dark.json +1 -1
- package/dist/node_modules/.pnpm/@modelcontextprotocol_server@2.3.1/node_modules/@modelcontextprotocol/server/dist/createMcpHandler-D4NN8WsG.d.mts +0 -26
- package/dist/node_modules/.pnpm/@modelcontextprotocol_server@2.3.1/node_modules/@modelcontextprotocol/server/dist/createMcpHandler-D4NN8WsG.d.mts.map +0 -1
- package/dist/node_modules/.pnpm/@modelcontextprotocol_server@2.3.1/node_modules/@modelcontextprotocol/server/dist/index.d.mts +0 -2
- package/dist/node_modules/.pnpm/zod@4.6.6/node_modules/zod/v4/classic/compat.d.mts +0 -8
- package/dist/node_modules/.pnpm/zod@4.6.6/node_modules/zod/v4/classic/compat.d.mts.map +0 -1
- package/dist/node_modules/.pnpm/zod@4.6.6/node_modules/zod/v4/classic/errors.d.mts +0 -21
- package/dist/node_modules/.pnpm/zod@4.6.6/node_modules/zod/v4/classic/errors.d.mts.map +0 -1
- package/dist/node_modules/.pnpm/zod@4.6.6/node_modules/zod/v4/classic/parse.d.mts +0 -15
- package/dist/node_modules/.pnpm/zod@4.6.6/node_modules/zod/v4/classic/parse.d.mts.map +0 -1
- package/dist/node_modules/.pnpm/zod@4.6.6/node_modules/zod/v4/classic/schemas.d.mts +0 -169
- package/dist/node_modules/.pnpm/zod@4.6.6/node_modules/zod/v4/classic/schemas.d.mts.map +0 -1
- package/dist/node_modules/.pnpm/zod@4.6.6/node_modules/zod/v4/core/api.d.mts +0 -38
- package/dist/node_modules/.pnpm/zod@4.6.6/node_modules/zod/v4/core/api.d.mts.map +0 -1
- package/dist/node_modules/.pnpm/zod@4.6.6/node_modules/zod/v4/core/checks.d.mts +0 -63
- package/dist/node_modules/.pnpm/zod@4.6.6/node_modules/zod/v4/core/checks.d.mts.map +0 -1
- package/dist/node_modules/.pnpm/zod@4.6.6/node_modules/zod/v4/core/core.d.mts +0 -50
- package/dist/node_modules/.pnpm/zod@4.6.6/node_modules/zod/v4/core/core.d.mts.map +0 -1
- package/dist/node_modules/.pnpm/zod@4.6.6/node_modules/zod/v4/core/errors.d.mts +0 -135
- package/dist/node_modules/.pnpm/zod@4.6.6/node_modules/zod/v4/core/errors.d.mts.map +0 -1
- package/dist/node_modules/.pnpm/zod@4.6.6/node_modules/zod/v4/core/json-schema.d.mts +0 -70
- package/dist/node_modules/.pnpm/zod@4.6.6/node_modules/zod/v4/core/json-schema.d.mts.map +0 -1
- package/dist/node_modules/.pnpm/zod@4.6.6/node_modules/zod/v4/core/registries.d.mts +0 -31
- package/dist/node_modules/.pnpm/zod@4.6.6/node_modules/zod/v4/core/registries.d.mts.map +0 -1
- package/dist/node_modules/.pnpm/zod@4.6.6/node_modules/zod/v4/core/schemas.d.mts +0 -806
- package/dist/node_modules/.pnpm/zod@4.6.6/node_modules/zod/v4/core/schemas.d.mts.map +0 -1
- package/dist/node_modules/.pnpm/zod@4.6.6/node_modules/zod/v4/core/standard-schema.d.mts +0 -120
- package/dist/node_modules/.pnpm/zod@4.6.6/node_modules/zod/v4/core/standard-schema.d.mts.map +0 -1
- package/dist/node_modules/.pnpm/zod@4.6.6/node_modules/zod/v4/core/to-json-schema.d.mts +0 -128
- package/dist/node_modules/.pnpm/zod@4.6.6/node_modules/zod/v4/core/to-json-schema.d.mts.map +0 -1
- package/dist/node_modules/.pnpm/zod@4.6.6/node_modules/zod/v4/core/util.d.mts +0 -38
- package/dist/node_modules/.pnpm/zod@4.6.6/node_modules/zod/v4/core/util.d.mts.map +0 -1
- package/dist/node_modules/.pnpm/zod@4.6.6/node_modules/zod/v4/core/versions.d.mts +0 -8
- package/dist/node_modules/.pnpm/zod@4.6.6/node_modules/zod/v4/core/versions.d.mts.map +0 -1
- package/dist/packages/core/po-core/dist/mcpWidget.d.mts +0 -2
- package/dist/packages/core/po-core/dist/src/extensions/webPlugin.d.mts +0 -2
- package/dist/packages/core/po-core/dist/src/web/models/globalStore.d.mts +0 -1
- package/dist/packages/core/po-core/dist/src/web/models/sessionStore.d.mts +0 -1
- package/dist/packages/core/po-core/dist/src/web/models/workspaceStore.d.mts +0 -1
- package/dist/packages/core/po-core/dist/src/web/schemas/template.d.mts +0 -2
- package/dist/packages/core/po-core/dist/src/web/services/mcpWidget.d.mts +0 -1
- package/dist/packages/core/po-core/dist/src/web/types/extensionFile.d.mts +0 -3
- package/dist/packages/core/po-core/dist/src/web/types/mcpWidget.d.mts +0 -17
- package/dist/packages/core/po-core/dist/src/web/types/mcpWidget.d.mts.map +0 -1
- package/dist/packages/core/po-core/dist/src/web/types/nativeTemplate.d.mts +0 -2
- package/dist/packages/core/po-core/dist/src/web/types/template.d.mts +0 -1
- package/dist/packages/core/po-core/dist/src/web/types/webPlugin.d.mts +0 -3
- package/dist/packages/core/po-core/dist/web.d.mts +0 -12
- package/dist/packages/core/po-web-components/src/components/Accordion.d.mts.map +0 -1
- package/dist/packages/core/po-web-components/src/components/Accordion.mjs.map +0 -1
- package/dist/packages/core/po-web-components/src/components/AgentAvatar.d.mts.map +0 -1
- package/dist/packages/core/po-web-components/src/components/AgentAvatar.mjs +0 -2
- package/dist/packages/core/po-web-components/src/components/AgentAvatar.mjs.map +0 -1
- package/dist/packages/core/po-web-components/src/components/AnsiText.d.mts.map +0 -1
- package/dist/packages/core/po-web-components/src/components/AnsiText.mjs.map +0 -1
- package/dist/packages/core/po-web-components/src/components/Avatar.d.mts.map +0 -1
- package/dist/packages/core/po-web-components/src/components/Avatar.mjs.map +0 -1
- package/dist/packages/core/po-web-components/src/components/Badge.d.mts.map +0 -1
- package/dist/packages/core/po-web-components/src/components/Badge.mjs.map +0 -1
- package/dist/packages/core/po-web-components/src/components/Breadcrumb.d.mts.map +0 -1
- package/dist/packages/core/po-web-components/src/components/Breadcrumb.mjs.map +0 -1
- package/dist/packages/core/po-web-components/src/components/Button.d.mts.map +0 -1
- package/dist/packages/core/po-web-components/src/components/Button.mjs.map +0 -1
- package/dist/packages/core/po-web-components/src/components/Checkbox.d.mts.map +0 -1
- package/dist/packages/core/po-web-components/src/components/Checkbox.mjs.map +0 -1
- package/dist/packages/core/po-web-components/src/components/CodeBlock.d.mts.map +0 -1
- package/dist/packages/core/po-web-components/src/components/CodeBlock.mjs.map +0 -1
- package/dist/packages/core/po-web-components/src/components/CodeEditor.d.mts.map +0 -1
- package/dist/packages/core/po-web-components/src/components/CodeEditor.mjs.map +0 -1
- package/dist/packages/core/po-web-components/src/components/CodeEditorView.mjs.map +0 -1
- package/dist/packages/core/po-web-components/src/components/Collapsible.d.mts.map +0 -1
- package/dist/packages/core/po-web-components/src/components/Collapsible.mjs.map +0 -1
- package/dist/packages/core/po-web-components/src/components/Command.d.mts.map +0 -1
- package/dist/packages/core/po-web-components/src/components/Command.mjs.map +0 -1
- package/dist/packages/core/po-web-components/src/components/CopyButton.mjs +0 -2
- package/dist/packages/core/po-web-components/src/components/CopyButton.mjs.map +0 -1
- package/dist/packages/core/po-web-components/src/components/Dialog.d.mts.map +0 -1
- package/dist/packages/core/po-web-components/src/components/Dialog.mjs +0 -2
- package/dist/packages/core/po-web-components/src/components/Dialog.mjs.map +0 -1
- package/dist/packages/core/po-web-components/src/components/DiffView.d.mts.map +0 -1
- package/dist/packages/core/po-web-components/src/components/DiffView.mjs +0 -2
- package/dist/packages/core/po-web-components/src/components/DiffView.mjs.map +0 -1
- package/dist/packages/core/po-web-components/src/components/Dot.d.mts.map +0 -1
- package/dist/packages/core/po-web-components/src/components/Dot.mjs.map +0 -1
- package/dist/packages/core/po-web-components/src/components/Drawer.d.mts.map +0 -1
- package/dist/packages/core/po-web-components/src/components/Drawer.mjs.map +0 -1
- package/dist/packages/core/po-web-components/src/components/DropdownMenu.d.mts.map +0 -1
- package/dist/packages/core/po-web-components/src/components/DropdownMenu.mjs.map +0 -1
- package/dist/packages/core/po-web-components/src/components/EmptyState.d.mts +0 -17
- package/dist/packages/core/po-web-components/src/components/EmptyState.d.mts.map +0 -1
- package/dist/packages/core/po-web-components/src/components/EmptyState.mjs +0 -2
- package/dist/packages/core/po-web-components/src/components/EmptyState.mjs.map +0 -1
- package/dist/packages/core/po-web-components/src/components/HashlineLines.d.mts.map +0 -1
- package/dist/packages/core/po-web-components/src/components/HashlineLines.mjs +0 -2
- package/dist/packages/core/po-web-components/src/components/HashlineLines.mjs.map +0 -1
- package/dist/packages/core/po-web-components/src/components/Input.d.mts.map +0 -1
- package/dist/packages/core/po-web-components/src/components/Input.mjs +0 -2
- package/dist/packages/core/po-web-components/src/components/Input.mjs.map +0 -1
- package/dist/packages/core/po-web-components/src/components/Kbd.d.mts.map +0 -1
- package/dist/packages/core/po-web-components/src/components/Kbd.mjs.map +0 -1
- package/dist/packages/core/po-web-components/src/components/Label.d.mts.map +0 -1
- package/dist/packages/core/po-web-components/src/components/Label.mjs.map +0 -1
- package/dist/packages/core/po-web-components/src/components/Markdown.d.mts +0 -23
- package/dist/packages/core/po-web-components/src/components/Markdown.d.mts.map +0 -1
- package/dist/packages/core/po-web-components/src/components/Markdown.mjs +0 -3
- package/dist/packages/core/po-web-components/src/components/Markdown.mjs.map +0 -1
- package/dist/packages/core/po-web-components/src/components/McpApp.d.mts.map +0 -1
- package/dist/packages/core/po-web-components/src/components/McpApp.mjs +0 -2
- package/dist/packages/core/po-web-components/src/components/McpApp.mjs.map +0 -1
- package/dist/packages/core/po-web-components/src/components/McpToolWidget.d.mts.map +0 -1
- package/dist/packages/core/po-web-components/src/components/McpToolWidget.mjs +0 -3
- package/dist/packages/core/po-web-components/src/components/McpToolWidget.mjs.map +0 -1
- package/dist/packages/core/po-web-components/src/components/MediaPreview.d.mts.map +0 -1
- package/dist/packages/core/po-web-components/src/components/MediaPreview.mjs +0 -2
- package/dist/packages/core/po-web-components/src/components/MediaPreview.mjs.map +0 -1
- package/dist/packages/core/po-web-components/src/components/MermaidDiagram.mjs +0 -2
- package/dist/packages/core/po-web-components/src/components/MermaidDiagram.mjs.map +0 -1
- package/dist/packages/core/po-web-components/src/components/MessageItem.d.mts.map +0 -1
- package/dist/packages/core/po-web-components/src/components/MessageItem.mjs +0 -2
- package/dist/packages/core/po-web-components/src/components/MessageItem.mjs.map +0 -1
- package/dist/packages/core/po-web-components/src/components/MessageLines.d.mts.map +0 -1
- package/dist/packages/core/po-web-components/src/components/MessageLines.mjs.map +0 -1
- package/dist/packages/core/po-web-components/src/components/OptionList.d.mts.map +0 -1
- package/dist/packages/core/po-web-components/src/components/OptionList.mjs +0 -2
- package/dist/packages/core/po-web-components/src/components/OptionList.mjs.map +0 -1
- package/dist/packages/core/po-web-components/src/components/Panel.d.mts.map +0 -1
- package/dist/packages/core/po-web-components/src/components/Panel.mjs.map +0 -1
- package/dist/packages/core/po-web-components/src/components/PdfPreview.d.mts.map +0 -1
- package/dist/packages/core/po-web-components/src/components/PdfPreview.mjs +0 -2
- package/dist/packages/core/po-web-components/src/components/PdfPreview.mjs.map +0 -1
- package/dist/packages/core/po-web-components/src/components/Picker.d.mts.map +0 -1
- package/dist/packages/core/po-web-components/src/components/Picker.mjs +0 -2
- package/dist/packages/core/po-web-components/src/components/Picker.mjs.map +0 -1
- package/dist/packages/core/po-web-components/src/components/Popover.d.mts.map +0 -1
- package/dist/packages/core/po-web-components/src/components/Popover.mjs.map +0 -1
- package/dist/packages/core/po-web-components/src/components/Progress.d.mts.map +0 -1
- package/dist/packages/core/po-web-components/src/components/Progress.mjs.map +0 -1
- package/dist/packages/core/po-web-components/src/components/RadioGroup.d.mts.map +0 -1
- package/dist/packages/core/po-web-components/src/components/RadioGroup.mjs.map +0 -1
- package/dist/packages/core/po-web-components/src/components/ReviewCommentDraft.d.mts.map +0 -1
- package/dist/packages/core/po-web-components/src/components/ReviewCommentDraft.mjs +0 -2
- package/dist/packages/core/po-web-components/src/components/ReviewCommentDraft.mjs.map +0 -1
- package/dist/packages/core/po-web-components/src/components/ScrollArea.d.mts.map +0 -1
- package/dist/packages/core/po-web-components/src/components/ScrollArea.mjs.map +0 -1
- package/dist/packages/core/po-web-components/src/components/SectionLabel.d.mts.map +0 -1
- package/dist/packages/core/po-web-components/src/components/SectionLabel.mjs.map +0 -1
- package/dist/packages/core/po-web-components/src/components/Select.d.mts.map +0 -1
- package/dist/packages/core/po-web-components/src/components/Select.mjs.map +0 -1
- package/dist/packages/core/po-web-components/src/components/Separator.d.mts.map +0 -1
- package/dist/packages/core/po-web-components/src/components/Separator.mjs.map +0 -1
- package/dist/packages/core/po-web-components/src/components/Settings.d.mts.map +0 -1
- package/dist/packages/core/po-web-components/src/components/Settings.mjs.map +0 -1
- package/dist/packages/core/po-web-components/src/components/Sheet.d.mts.map +0 -1
- package/dist/packages/core/po-web-components/src/components/Sheet.mjs +0 -2
- package/dist/packages/core/po-web-components/src/components/Sheet.mjs.map +0 -1
- package/dist/packages/core/po-web-components/src/components/Skeleton.d.mts.map +0 -1
- package/dist/packages/core/po-web-components/src/components/Skeleton.mjs.map +0 -1
- package/dist/packages/core/po-web-components/src/components/Spinner.d.mts.map +0 -1
- package/dist/packages/core/po-web-components/src/components/Spinner.mjs.map +0 -1
- package/dist/packages/core/po-web-components/src/components/StatusBadge.d.mts.map +0 -1
- package/dist/packages/core/po-web-components/src/components/StatusBadge.mjs.map +0 -1
- package/dist/packages/core/po-web-components/src/components/StreamCursor.d.mts.map +0 -1
- package/dist/packages/core/po-web-components/src/components/StreamCursor.mjs.map +0 -1
- package/dist/packages/core/po-web-components/src/components/Switch.d.mts.map +0 -1
- package/dist/packages/core/po-web-components/src/components/Switch.mjs.map +0 -1
- package/dist/packages/core/po-web-components/src/components/SyntaxText.d.mts.map +0 -1
- package/dist/packages/core/po-web-components/src/components/SyntaxText.mjs.map +0 -1
- package/dist/packages/core/po-web-components/src/components/Tabs.d.mts.map +0 -1
- package/dist/packages/core/po-web-components/src/components/Tabs.mjs +0 -2
- package/dist/packages/core/po-web-components/src/components/Tabs.mjs.map +0 -1
- package/dist/packages/core/po-web-components/src/components/TerminalView.d.mts.map +0 -1
- package/dist/packages/core/po-web-components/src/components/TerminalView.mjs.map +0 -1
- package/dist/packages/core/po-web-components/src/components/Textarea.d.mts.map +0 -1
- package/dist/packages/core/po-web-components/src/components/Textarea.mjs.map +0 -1
- package/dist/packages/core/po-web-components/src/components/Toast.d.mts.map +0 -1
- package/dist/packages/core/po-web-components/src/components/Toast.mjs +0 -2
- package/dist/packages/core/po-web-components/src/components/Toast.mjs.map +0 -1
- package/dist/packages/core/po-web-components/src/components/ToolPathLink.d.mts.map +0 -1
- package/dist/packages/core/po-web-components/src/components/ToolPathLink.mjs +0 -2
- package/dist/packages/core/po-web-components/src/components/ToolPathLink.mjs.map +0 -1
- package/dist/packages/core/po-web-components/src/components/Tooltip.d.mts.map +0 -1
- package/dist/packages/core/po-web-components/src/components/Tooltip.mjs.map +0 -1
- package/dist/packages/core/po-web-components/src/icons/icons.d.mts +0 -2
- package/dist/packages/core/po-web-components/src/icons/icons.mjs +0 -1
- package/dist/packages/core/po-web-components/src/lib/ansiSpans.d.mts.map +0 -1
- package/dist/packages/core/po-web-components/src/lib/ansiSpans.mjs.map +0 -1
- package/dist/packages/core/po-web-components/src/lib/cn.d.mts.map +0 -1
- package/dist/packages/core/po-web-components/src/lib/cn.mjs.map +0 -1
- package/dist/packages/core/po-web-components/src/lib/collapse.d.mts.map +0 -1
- package/dist/packages/core/po-web-components/src/lib/collapse.mjs.map +0 -1
- package/dist/packages/core/po-web-components/src/lib/editorController.mjs.map +0 -1
- package/dist/packages/core/po-web-components/src/lib/editorLanguage.d.mts.map +0 -1
- package/dist/packages/core/po-web-components/src/lib/editorLanguage.mjs.map +0 -1
- package/dist/packages/core/po-web-components/src/lib/editorTheme.d.mts.map +0 -1
- package/dist/packages/core/po-web-components/src/lib/editorTheme.mjs.map +0 -1
- package/dist/packages/core/po-web-components/src/lib/fenceGrammar.mjs.map +0 -1
- package/dist/packages/core/po-web-components/src/lib/hashlineHighlight.d.mts.map +0 -1
- package/dist/packages/core/po-web-components/src/lib/hashlineHighlight.mjs.map +0 -1
- package/dist/packages/core/po-web-components/src/lib/hashlineView.d.mts.map +0 -1
- package/dist/packages/core/po-web-components/src/lib/hashlineView.mjs.map +0 -1
- package/dist/packages/core/po-web-components/src/lib/media.d.mts.map +0 -1
- package/dist/packages/core/po-web-components/src/lib/media.mjs.map +0 -1
- package/dist/packages/core/po-web-components/src/lib/mediaPlayback.mjs.map +0 -1
- package/dist/packages/core/po-web-components/src/lib/mermaidDiagram.mjs +0 -2
- package/dist/packages/core/po-web-components/src/lib/mermaidDiagram.mjs.map +0 -1
- package/dist/packages/core/po-web-components/src/lib/optionList.d.mts.map +0 -1
- package/dist/packages/core/po-web-components/src/lib/optionList.mjs.map +0 -1
- package/dist/packages/core/po-web-components/src/lib/pathGroups.d.mts.map +0 -1
- package/dist/packages/core/po-web-components/src/lib/pathGroups.mjs.map +0 -1
- package/dist/packages/core/po-web-components/src/lib/picker.d.mts.map +0 -1
- package/dist/packages/core/po-web-components/src/lib/picker.mjs +0 -2
- package/dist/packages/core/po-web-components/src/lib/picker.mjs.map +0 -1
- package/dist/packages/core/po-web-components/src/lib/review.d.mts.map +0 -1
- package/dist/packages/core/po-web-components/src/lib/review.mjs.map +0 -1
- package/dist/packages/core/po-web-components/src/lib/syntaxHighlight.d.mts.map +0 -1
- package/dist/packages/core/po-web-components/src/lib/syntaxHighlight.mjs.map +0 -1
- package/dist/packages/core/po-web-components/src/lib/tone.d.mts.map +0 -1
- package/dist/packages/core/po-web-components/src/lib/tone.mjs.map +0 -1
- package/dist/packages/core/po-web-components/src/theme/apply.d.mts.map +0 -1
- package/dist/packages/core/po-web-components/src/theme/apply.mjs.map +0 -1
- package/dist/packages/core/po-web-components/src/theme/builtinThemes.d.mts.map +0 -1
- package/dist/packages/core/po-web-components/src/theme/builtinThemes.mjs.map +0 -1
- package/dist/packages/core/po-web-components/src/theme/derive.d.mts.map +0 -1
- package/dist/packages/core/po-web-components/src/theme/derive.mjs.map +0 -1
- package/dist/packages/core/po-web-components/src/theme/nativeTheme.d.mts.map +0 -1
- package/dist/packages/core/po-web-components/src/theme/nativeTheme.mjs.map +0 -1
- package/dist/packages/core/po-web-components/src/theme/parse.d.mts.map +0 -1
- package/dist/packages/core/po-web-components/src/theme/parse.mjs.map +0 -1
- package/dist/packages/core/po-web-components/src/theme/piTheme.d.mts.map +0 -1
- package/dist/packages/core/po-web-components/src/theme/piTheme.mjs.map +0 -1
- package/dist/packages/core/po-web-components/src/theme/preference.d.mts.map +0 -1
- package/dist/packages/core/po-web-components/src/theme/preference.mjs.map +0 -1
- package/dist/packages/core/po-web-components/src/types/diff.d.mts.map +0 -1
- package/dist/packages/core/po-web-components/src/types/editor.d.mts.map +0 -1
- package/dist/packages/core/po-web-components/src/types/editor.mjs.map +0 -1
- package/dist/packages/core/po-web-components/src/types/theme.d.mts.map +0 -1
- package/dist/packages/core/po-web-components/src/types/theme.mjs.map +0 -1
- package/dist/packages/core/po-web-components/src/types/tone.d.mts.map +0 -1
- package/dist/packages/core/po-web-components/src/types/tone.mjs.map +0 -1
- /package/dist/{packages/core/po-web-components/src → src}/components/Accordion.d.mts +0 -0
- /package/dist/{packages/core/po-web-components/src → src}/components/Accordion.mjs +0 -0
- /package/dist/{packages/core/po-web-components/src → src}/components/AnsiText.d.mts +0 -0
- /package/dist/{packages/core/po-web-components/src → src}/components/AnsiText.mjs +0 -0
- /package/dist/{packages/core/po-web-components/src → src}/components/Avatar.d.mts +0 -0
- /package/dist/{packages/core/po-web-components/src → src}/components/Avatar.mjs +0 -0
- /package/dist/{packages/core/po-web-components/src → src}/components/Badge.d.mts +0 -0
- /package/dist/{packages/core/po-web-components/src → src}/components/Badge.mjs +0 -0
- /package/dist/{packages/core/po-web-components/src → src}/components/Breadcrumb.d.mts +0 -0
- /package/dist/{packages/core/po-web-components/src → src}/components/Breadcrumb.mjs +0 -0
- /package/dist/{packages/core/po-web-components/src → src}/components/Button.d.mts +0 -0
- /package/dist/{packages/core/po-web-components/src → src}/components/Button.mjs +0 -0
- /package/dist/{packages/core/po-web-components/src → src}/components/Checkbox.d.mts +0 -0
- /package/dist/{packages/core/po-web-components/src → src}/components/Checkbox.mjs +0 -0
- /package/dist/{packages/core/po-web-components/src → src}/components/CodeBlock.d.mts +0 -0
- /package/dist/{packages/core/po-web-components/src → src}/components/CodeBlock.mjs +0 -0
- /package/dist/{packages/core/po-web-components/src → src}/components/CodeEditor.d.mts +0 -0
- /package/dist/{packages/core/po-web-components/src → src}/components/CodeEditor.mjs +0 -0
- /package/dist/{packages/core/po-web-components/src → src}/components/CodeEditorView.mjs +0 -0
- /package/dist/{packages/core/po-web-components/src → src}/components/Collapsible.d.mts +0 -0
- /package/dist/{packages/core/po-web-components/src → src}/components/Collapsible.mjs +0 -0
- /package/dist/{packages/core/po-web-components/src → src}/components/Command.d.mts +0 -0
- /package/dist/{packages/core/po-web-components/src → src}/components/Command.mjs +0 -0
- /package/dist/{packages/core/po-web-components/src → src}/components/Dialog.d.mts +0 -0
- /package/dist/{packages/core/po-web-components/src → src}/components/DiffView.d.mts +0 -0
- /package/dist/{packages/core/po-web-components/src → src}/components/Dot.d.mts +0 -0
- /package/dist/{packages/core/po-web-components/src → src}/components/Dot.mjs +0 -0
- /package/dist/{packages/core/po-web-components/src → src}/components/Drawer.d.mts +0 -0
- /package/dist/{packages/core/po-web-components/src → src}/components/Drawer.mjs +0 -0
- /package/dist/{packages/core/po-web-components/src → src}/components/DropdownMenu.d.mts +0 -0
- /package/dist/{packages/core/po-web-components/src → src}/components/HashlineLines.d.mts +0 -0
- /package/dist/{packages/core/po-web-components/src → src}/components/Input.d.mts +0 -0
- /package/dist/{packages/core/po-web-components/src → src}/components/Kbd.d.mts +0 -0
- /package/dist/{packages/core/po-web-components/src → src}/components/Kbd.mjs +0 -0
- /package/dist/{packages/core/po-web-components/src → src}/components/Label.d.mts +0 -0
- /package/dist/{packages/core/po-web-components/src → src}/components/Label.mjs +0 -0
- /package/dist/{packages/core/po-web-components/src → src}/components/MediaPreview.d.mts +0 -0
- /package/dist/{packages/core/po-web-components/src → src}/components/MessageLines.d.mts +0 -0
- /package/dist/{packages/core/po-web-components/src → src}/components/MessageLines.mjs +0 -0
- /package/dist/{packages/core/po-web-components/src → src}/components/OptionList.d.mts +0 -0
- /package/dist/{packages/core/po-web-components/src → src}/components/Panel.d.mts +0 -0
- /package/dist/{packages/core/po-web-components/src → src}/components/Panel.mjs +0 -0
- /package/dist/{packages/core/po-web-components/src → src}/components/PdfPreview.d.mts +0 -0
- /package/dist/{packages/core/po-web-components/src → src}/components/Popover.d.mts +0 -0
- /package/dist/{packages/core/po-web-components/src → src}/components/Popover.mjs +0 -0
- /package/dist/{packages/core/po-web-components/src → src}/components/Progress.d.mts +0 -0
- /package/dist/{packages/core/po-web-components/src → src}/components/Progress.mjs +0 -0
- /package/dist/{packages/core/po-web-components/src → src}/components/RadioGroup.d.mts +0 -0
- /package/dist/{packages/core/po-web-components/src → src}/components/RadioGroup.mjs +0 -0
- /package/dist/{packages/core/po-web-components/src → src}/components/ReviewCommentDraft.d.mts +0 -0
- /package/dist/{packages/core/po-web-components/src → src}/components/ScrollArea.d.mts +0 -0
- /package/dist/{packages/core/po-web-components/src → src}/components/ScrollArea.mjs +0 -0
- /package/dist/{packages/core/po-web-components/src → src}/components/SectionLabel.mjs +0 -0
- /package/dist/{packages/core/po-web-components/src → src}/components/Select.d.mts +0 -0
- /package/dist/{packages/core/po-web-components/src → src}/components/Select.mjs +0 -0
- /package/dist/{packages/core/po-web-components/src → src}/components/Separator.d.mts +0 -0
- /package/dist/{packages/core/po-web-components/src → src}/components/Separator.mjs +0 -0
- /package/dist/{packages/core/po-web-components/src → src}/components/Settings.d.mts +0 -0
- /package/dist/{packages/core/po-web-components/src → src}/components/Settings.mjs +0 -0
- /package/dist/{packages/core/po-web-components/src → src}/components/Sheet.d.mts +0 -0
- /package/dist/{packages/core/po-web-components/src → src}/components/Skeleton.d.mts +0 -0
- /package/dist/{packages/core/po-web-components/src → src}/components/Skeleton.mjs +0 -0
- /package/dist/{packages/core/po-web-components/src → src}/components/Spinner.d.mts +0 -0
- /package/dist/{packages/core/po-web-components/src → src}/components/Spinner.mjs +0 -0
- /package/dist/{packages/core/po-web-components/src → src}/components/StatusBadge.d.mts +0 -0
- /package/dist/{packages/core/po-web-components/src → src}/components/StatusBadge.mjs +0 -0
- /package/dist/{packages/core/po-web-components/src → src}/components/StreamCursor.d.mts +0 -0
- /package/dist/{packages/core/po-web-components/src → src}/components/StreamCursor.mjs +0 -0
- /package/dist/{packages/core/po-web-components/src → src}/components/Switch.d.mts +0 -0
- /package/dist/{packages/core/po-web-components/src → src}/components/Switch.mjs +0 -0
- /package/dist/{packages/core/po-web-components/src → src}/components/SyntaxText.d.mts +0 -0
- /package/dist/{packages/core/po-web-components/src → src}/components/TerminalView.d.mts +0 -0
- /package/dist/{packages/core/po-web-components/src → src}/components/TerminalView.mjs +0 -0
- /package/dist/{packages/core/po-web-components/src → src}/components/Textarea.d.mts +0 -0
- /package/dist/{packages/core/po-web-components/src → src}/components/Textarea.mjs +0 -0
- /package/dist/{packages/core/po-web-components/src → src}/components/Toast.d.mts +0 -0
- /package/dist/{packages/core/po-web-components/src → src}/components/ToolPathLink.d.mts +0 -0
- /package/dist/{packages/core/po-web-components/src → src}/components/Tooltip.d.mts +0 -0
- /package/dist/{packages/core/po-web-components/src → src}/components/Tooltip.mjs +0 -0
- /package/dist/{packages/core/po-web-components/src → src}/lib/ansiSpans.d.mts +0 -0
- /package/dist/{packages/core/po-web-components/src → src}/lib/ansiSpans.mjs +0 -0
- /package/dist/{packages/core/po-web-components/src → src}/lib/cn.d.mts +0 -0
- /package/dist/{packages/core/po-web-components/src → src}/lib/cn.mjs +0 -0
- /package/dist/{packages/core/po-web-components/src → src}/lib/collapse.d.mts +0 -0
- /package/dist/{packages/core/po-web-components/src → src}/lib/collapse.mjs +0 -0
- /package/dist/{packages/core/po-web-components/src → src}/lib/editorController.mjs +0 -0
- /package/dist/{packages/core/po-web-components/src → src}/lib/editorLanguage.d.mts +0 -0
- /package/dist/{packages/core/po-web-components/src → src}/lib/editorLanguage.mjs +0 -0
- /package/dist/{packages/core/po-web-components/src → src}/lib/editorTheme.d.mts +0 -0
- /package/dist/{packages/core/po-web-components/src → src}/lib/editorTheme.mjs +0 -0
- /package/dist/{packages/core/po-web-components/src → src}/lib/fenceGrammar.mjs +0 -0
- /package/dist/{packages/core/po-web-components/src → src}/lib/hashlineHighlight.d.mts +0 -0
- /package/dist/{packages/core/po-web-components/src → src}/lib/hashlineView.d.mts +0 -0
- /package/dist/{packages/core/po-web-components/src → src}/lib/hashlineView.mjs +0 -0
- /package/dist/{packages/core/po-web-components/src → src}/lib/media.d.mts +0 -0
- /package/dist/{packages/core/po-web-components/src → src}/lib/media.mjs +0 -0
- /package/dist/{packages/core/po-web-components/src → src}/lib/mediaPlayback.mjs +0 -0
- /package/dist/{packages/core/po-web-components/src → src}/lib/optionList.d.mts +0 -0
- /package/dist/{packages/core/po-web-components/src → src}/lib/optionList.mjs +0 -0
- /package/dist/{packages/core/po-web-components/src → src}/lib/pathGroups.d.mts +0 -0
- /package/dist/{packages/core/po-web-components/src → src}/lib/pathGroups.mjs +0 -0
- /package/dist/{packages/core/po-web-components/src → src}/lib/picker.d.mts +0 -0
- /package/dist/{packages/core/po-web-components/src → src}/lib/review.d.mts +0 -0
- /package/dist/{packages/core/po-web-components/src → src}/lib/review.mjs +0 -0
- /package/dist/{packages/core/po-web-components/src → src}/lib/tone.d.mts +0 -0
- /package/dist/{packages/core/po-web-components/src → src}/lib/tone.mjs +0 -0
- /package/dist/{packages/core/po-web-components/src → src}/theme/apply.d.mts +0 -0
- /package/dist/{packages/core/po-web-components/src → src}/theme/apply.mjs +0 -0
- /package/dist/{packages/core/po-web-components/src → src}/theme/builtinThemes.d.mts +0 -0
- /package/dist/{packages/core/po-web-components/src → src}/theme/builtinThemes.mjs +0 -0
- /package/dist/{packages/core/po-web-components/src → src}/theme/derive.d.mts +0 -0
- /package/dist/{packages/core/po-web-components/src → src}/theme/derive.mjs +0 -0
- /package/dist/{packages/core/po-web-components/src → src}/theme/nativeTheme.d.mts +0 -0
- /package/dist/{packages/core/po-web-components/src → src}/theme/nativeTheme.mjs +0 -0
- /package/dist/{packages/core/po-web-components/src → src}/theme/parse.d.mts +0 -0
- /package/dist/{packages/core/po-web-components/src → src}/theme/parse.mjs +0 -0
- /package/dist/{packages/core/po-web-components/src → src}/theme/piTheme.d.mts +0 -0
- /package/dist/{packages/core/po-web-components/src → src}/theme/piTheme.mjs +0 -0
- /package/dist/{packages/core/po-web-components/src → src}/theme/preference.d.mts +0 -0
- /package/dist/{packages/core/po-web-components/src → src}/theme/preference.mjs +0 -0
- /package/dist/{packages/core/po-web-components/src → src}/types/diff.d.mts +0 -0
- /package/dist/{packages/core/po-web-components/src → src}/types/editor.d.mts +0 -0
- /package/dist/{packages/core/po-web-components/src → src}/types/editor.mjs +0 -0
- /package/dist/{packages/core/po-web-components/src → src}/types/theme.d.mts +0 -0
- /package/dist/{packages/core/po-web-components/src → src}/types/theme.mjs +0 -0
- /package/dist/{packages/core/po-web-components/src → src}/types/tone.d.mts +0 -0
- /package/dist/{packages/core/po-web-components/src → src}/types/tone.mjs +0 -0
- /package/dist/{packages/core/po-web-components/themes → themes}/po-one-light.mjs +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StreamCursor.mjs","names":["StreamCursor","props","cn","className"],"sources":["../../../src/components/StreamCursor.tsx"],"sourcesContent":["import type { ComponentProps } from 'react';\n\nimport { cn } from '../lib/cn';\n\n/** The blinking block that marks text still arriving. */\nexport function StreamCursor({ className, ...props }: ComponentProps<'span'>) {\n return (\n <span\n data-slot=\"stream-cursor\"\n aria-hidden\n className={cn('ml-0.5 inline-block h-3.5 w-2 translate-y-0.5 animate-po-blink bg-po-blue', className)}\n {...props}\n />\n );\n}\n"],"mappings":"A,2EAKA,SAAgBA,EAAa,CAAE,YAAW,GAAGC,GAAiC,CAC5E,MACE,kBAAC,OAAD,CACE,YAAU,gBACV,cAAA,GACA,UAAWC,EAAG,4EAA6EC,CAAS,EACpG,GAAIF,CACL,CAAA,CAEL,C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Switch.cjs","names":["SwitchPrimitive","cn","require_cn","radix_ui","react_jsx_runtime","Switch","props","className"],"sources":["../../../src/components/Switch.tsx"],"sourcesContent":["import { Switch as SwitchPrimitive } from 'radix-ui';\nimport type { ComponentProps } from 'react';\n\nimport { cn } from '../lib/cn';\n\n/** An on/off track; use it where the change takes effect immediately, a checkbox where it needs a save. */\nexport function Switch({ className, ...props }: ComponentProps<typeof SwitchPrimitive.Root>) {\n return (\n <SwitchPrimitive.Root\n data-slot=\"switch\"\n className={cn(\n 'inline-flex h-4 w-7 shrink-0 cursor-pointer items-center rounded-full border border-po-border bg-po-deep p-px outline-none transition-colors focus-visible:ring-2 focus-visible:ring-po-green/50 disabled:pointer-events-none disabled:opacity-40 data-[state=checked]:border-po-green data-[state=checked]:bg-po-tint-green',\n className,\n )}\n {...props}\n >\n <SwitchPrimitive.Thumb\n data-slot=\"switch-thumb\"\n className=\"block h-3 w-3 rounded-full bg-po-faint transition-transform data-[state=checked]:translate-x-3 data-[state=checked]:bg-po-green\"\n />\n </SwitchPrimitive.Root>\n );\n}\n"],"mappings":"0FAMA,SAAgBK,EAAO,CAAE,YAAW,GAAGC,GAAsD,CAC3F,MACE,iBAAA,EAAAF,EAAA,IAAA,CAACJ,EAAAA,OAAgB,KAAjB,CACE,YAAU,SACV,UAAWC,EAAAA,GACT,+TACAM,CACF,EACA,GAAID,EAEJ,SAAA,iBAAA,EAAAF,EAAA,IAAA,CAACJ,EAAAA,OAAgB,MAAjB,CACE,YAAU,eACV,UAAU,iIACX,CAAA,CACmB,CAAA,CAE1B"}
|
|
1
|
+
{"version":3,"file":"Switch.cjs","names":["SwitchPrimitive","cn","require_cn","radix_ui","react_jsx_runtime","Switch","props","className"],"sources":["../../../src/components/Switch.tsx"],"sourcesContent":["import { Switch as SwitchPrimitive } from 'radix-ui';\nimport type { ComponentProps } from 'react';\n\nimport { cn } from '../lib/cn';\n\n/** An on/off track; use it where the change takes effect immediately, a checkbox where it needs a save. */\nexport function Switch({ className, ...props }: ComponentProps<typeof SwitchPrimitive.Root>) {\n return (\n <SwitchPrimitive.Root\n data-slot=\"switch\"\n className={cn(\n 'inline-flex h-4 w-7 shrink-0 cursor-pointer items-center rounded-full border border-po-border bg-po-deep p-px outline-none transition-colors focus-visible:ring-2 focus-visible:ring-po-green/50 disabled:pointer-events-none disabled:opacity-40 data-[state=checked]:border-po-green data-[state=checked]:bg-po-tint-green',\n className,\n )}\n {...props}\n >\n <SwitchPrimitive.Thumb\n data-slot=\"switch-thumb\"\n className=\"block h-3 w-3 rounded-full bg-po-faint transition-transform data-[state=checked]:translate-x-3 data-[state=checked]:bg-po-green\"\n />\n </SwitchPrimitive.Root>\n );\n}\n"],"mappings":"A,0FAMA,SAAgBK,EAAO,CAAE,YAAW,GAAGC,GAAsD,CAC3F,MACE,iBAAA,EAAAF,EAAA,IAAA,CAACJ,EAAAA,OAAgB,KAAjB,CACE,YAAU,SACV,UAAWC,EAAAA,GACT,+TACAM,CACF,EACA,GAAID,EAEJ,SAAA,iBAAA,EAAAF,EAAA,IAAA,CAACJ,EAAAA,OAAgB,MAAjB,CACE,YAAU,eACV,UAAU,iIACX,CAAA,CACmB,CAAA,CAE1B,C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Switch.d.mts","names":["Switch","SwitchPrimitive"],"sources":["../../../src/components/Switch.tsx"],"mappings":";;;;iBAMgBA,WAAS,cAAc,SAAS,sBAAsBC,OAAgB,wBAAK,IAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Switch.mjs","names":["Switch","SwitchPrimitive","Switch$1","props","Switch","cn","className"],"sources":["../../../src/components/Switch.tsx"],"sourcesContent":["import { Switch as SwitchPrimitive } from 'radix-ui';\nimport type { ComponentProps } from 'react';\n\nimport { cn } from '../lib/cn';\n\n/** An on/off track; use it where the change takes effect immediately, a checkbox where it needs a save. */\nexport function Switch({ className, ...props }: ComponentProps<typeof SwitchPrimitive.Root>) {\n return (\n <SwitchPrimitive.Root\n data-slot=\"switch\"\n className={cn(\n 'inline-flex h-4 w-7 shrink-0 cursor-pointer items-center rounded-full border border-po-border bg-po-deep p-px outline-none transition-colors focus-visible:ring-2 focus-visible:ring-po-green/50 disabled:pointer-events-none disabled:opacity-40 data-[state=checked]:border-po-green data-[state=checked]:bg-po-tint-green',\n className,\n )}\n {...props}\n >\n <SwitchPrimitive.Thumb\n data-slot=\"switch-thumb\"\n className=\"block h-3 w-3 rounded-full bg-po-faint transition-transform data-[state=checked]:translate-x-3 data-[state=checked]:bg-po-green\"\n />\n </SwitchPrimitive.Root>\n );\n}\n"],"mappings":"A,6GAMA,SAAgBA,EAAO,CAAE,YAAW,GAAGG,GAAsD,CAC3F,MACE,kBAACF,EAAgB,KAAjB,CACE,YAAU,SACV,UAAWI,EACT,+TACAC,CACF,EACA,GAAIH,EAEJ,SAAA,kBAACF,EAAgB,MAAjB,CACE,YAAU,eACV,UAAU,iIACX,CAAA,CACmB,CAAA,CAE1B,C"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const e=require("../lib/cn.cjs"),t=require("../lib/syntaxHighlight.cjs");let n=require("react/jsx-runtime"),r=require("react");function i(e,n={}){let{path:i,grammar:a}=n,o=a??t.detectGrammar({path:i,text:e}),s=`${o??``}\u0000${e}`,[c,l]=(0,r.useState)(void 0);return(0,r.useEffect)(()=>{if(o===void 0)return;let n=!0;return t.highlightToLines(e,o).then(e=>{n&&e!==void 0&&l({signature:s,lines:e})},()=>void 0),()=>{n=!1}},[e,o,s]),c?.signature===s?c.lines:void 0}function a({spans:e,text:r,...i}){return e===void 0?/* @__PURE__ */ (0,n.jsx)(`span`,{...i,children:r}):/* @__PURE__ */ (0,n.jsx)(`span`,{...i,children:e.map((e,r)=>/* @__PURE__ */ (0,n.jsx)(`span`,{style:t.syntaxStyleOf(e.token),children:e.text},r))})}function o({className:t,text:o,path:s,grammar:c,...l}){let u=i(o,{path:s,grammar:c}),d=o.split(`
|
|
1
|
+
const e=require("../lib/cn.cjs"),t=require("../lib/syntaxHighlight.cjs");let n=require("react/jsx-runtime"),r=require("react");function i(e,n={}){let{path:i,grammar:a}=n,o=a??t.detectGrammar({path:i,text:e}),s=`${o??``}\u0000${e}`,[c,l]=(0,r.useState)(void 0);return(0,r.useEffect)(()=>{if(o===void 0)return;let n=!0,r=new AbortController;return t.highlightToLines(e,o,r.signal).then(e=>{n&&e!==void 0&&l({signature:s,lines:e})},()=>void 0),()=>{n=!1,r.abort()}},[e,o,s]),c?.signature===s?c.lines:void 0}function a({spans:e,text:r,...i}){return e===void 0?/* @__PURE__ */ (0,n.jsx)(`span`,{...i,children:r}):/* @__PURE__ */ (0,n.jsx)(`span`,{...i,children:e.map((e,r)=>/* @__PURE__ */ (0,n.jsx)(`span`,{style:t.syntaxStyleOf(e.token),children:e.text},r))})}function o({className:t,text:o,path:s,grammar:c,...l}){let u=i(o,{path:s,grammar:c}),d=o.split(`
|
|
2
2
|
`);return/* @__PURE__ */ (0,n.jsx)(`pre`,{"data-slot":`syntax-text`,"data-highlighted":u!==void 0,className:e.cn(`whitespace-pre-wrap break-words [overflow-wrap:anywhere] font-mono`,t),...l,children:(u??d).map((e,t)=>/* @__PURE__ */ (0,n.jsxs)(r.Fragment,{children:[t>0?`
|
|
3
3
|
`:null,/* @__PURE__ */ (0,n.jsx)(a,{spans:typeof e==`string`?void 0:e,text:typeof e==`string`?e:``})]},t))})}exports.SyntaxLine=a,exports.SyntaxText=o,exports.useSyntaxLines=i;
|
|
4
4
|
//# sourceMappingURL=SyntaxText.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SyntaxText.cjs","names":["detectGrammar","useState","highlightToLines","syntaxStyleOf","cn","Fragment","require_cn","require_syntaxHighlight","react_jsx_runtime","react","useSyntaxLines","query","key","grammar","signature","text","done","setDone","live","result","SyntaxLine","props","spans","span","index","SyntaxText","lines","plain","className","entry"],"sources":["../../../src/components/SyntaxText.tsx"],"sourcesContent":["import { type ComponentProps, Fragment, useEffect, useState } from 'react';\n\nimport { cn } from '../lib/cn';\nimport type { GrammarKey } from '../lib/editorLanguage';\nimport {\n detectGrammar,\n highlightToLines,\n type SyntaxLines,\n type SyntaxSpan,\n syntaxStyleOf,\n} from '../lib/syntaxHighlight';\n\n/**\n * Read-only code with the editor's colours.\n *\n * Two shapes over one hook, because the cards need both: `SyntaxText` for a\n * block of code that owns its own element, and `SyntaxLine` for a card that\n * already renders a line at a time next to a gutter. Highlighting is\n * asynchronous, so both show the plain text first and swap in spans once the\n * grammar has loaded; a result that never highlights simply stays plain.\n *\n * DESIGN PATTERNS:\n * - Plain text is the fallback, never a spinner: colour is decoration.\n * - The hook keys on the text, so a streaming result re-highlights as it grows.\n *\n * AVOID:\n * - Highlighting one line at a time. A line is not a parse unit; pass the whole\n * block to `useSyntaxLines` and render the line you want out of the result.\n */\n\nexport interface SyntaxQuery {\n /** The file the code came from, when the tool knows one. */\n path?: string | undefined;\n /** Skips detection when the caller already knows the grammar. */\n grammar?: GrammarKey | undefined;\n}\n\n/**\n * Colours `text`, or hands back undefined while that is still loading and for\n * anything with no grammar. Rendering the result is the caller's business.\n *\n * The finished spans are stored with the text they belong to, so text that has\n * changed since reads as plain during render rather than showing the previous\n * result's colours over the new lines.\n */\nexport function useSyntaxLines(text: string, query: SyntaxQuery = {}): SyntaxLines | undefined {\n const { path, grammar } = query;\n const key = grammar ?? detectGrammar({ path, text });\n const signature = `${key ?? ''}\\u0000${text}`;\n const [done, setDone] = useState<{ signature: string; lines: SyntaxLines } | undefined>(undefined);\n\n useEffect(() => {\n if (key === undefined) return;\n let live = true;\n void highlightToLines(text, key).then(\n (result) => {\n if (live && result !== undefined) setDone({ signature, lines: result });\n },\n // A grammar chunk that fails to load leaves the plain text in place: the\n // card stays readable and the network failure is the browser's to report.\n () => undefined,\n );\n return () => {\n live = false;\n };\n }, [text, key, signature]);\n\n return done?.signature === signature ? done.lines : undefined;\n}\n\nexport interface SyntaxLineProps extends Omit<ComponentProps<'span'>, 'children'> {\n /** The line's spans from `useSyntaxLines`, or undefined to show `text` plain. */\n spans?: readonly SyntaxSpan[] | undefined;\n text: string;\n}\n\n/** One line: coloured when its spans are in, the plain text until then. */\nexport function SyntaxLine({ spans, text, ...props }: SyntaxLineProps) {\n if (spans === undefined) return <span {...props}>{text}</span>;\n return (\n <span {...props}>\n {spans.map((span, index) => (\n <span key={index} style={syntaxStyleOf(span.token)}>\n {span.text}\n </span>\n ))}\n </span>\n );\n}\n\nexport interface SyntaxTextProps extends Omit<ComponentProps<'pre'>, 'children'>, SyntaxQuery {\n text: string;\n}\n\n/** A block of code, wrapped rather than clipped, coloured when a grammar is known. */\nexport function SyntaxText({ className, text, path, grammar, ...props }: SyntaxTextProps) {\n const lines = useSyntaxLines(text, { path, grammar });\n const plain = text.split('\\n');\n return (\n <pre\n data-slot=\"syntax-text\"\n data-highlighted={lines !== undefined}\n className={cn('whitespace-pre-wrap break-words [overflow-wrap:anywhere] font-mono', className)}\n {...props}\n >\n {(lines ?? plain).map((entry, index) => (\n <Fragment key={index}>\n {index > 0 ? '\\n' : null}\n <SyntaxLine\n spans={typeof entry === 'string' ? undefined : entry}\n text={typeof entry === 'string' ? entry : ''}\n />\n </Fragment>\n ))}\n </pre>\n );\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"SyntaxText.cjs","names":["detectGrammar","useState","highlightToLines","syntaxStyleOf","cn","Fragment","require_cn","require_syntaxHighlight","react_jsx_runtime","react","useSyntaxLines","query","key","grammar","signature","text","done","setDone","live","controller","result","SyntaxLine","props","spans","span","index","SyntaxText","lines","plain","className","entry"],"sources":["../../../src/components/SyntaxText.tsx"],"sourcesContent":["import { type ComponentProps, Fragment, useEffect, useState } from 'react';\n\nimport { cn } from '../lib/cn';\nimport type { GrammarKey } from '../lib/editorLanguage';\nimport {\n detectGrammar,\n highlightToLines,\n type SyntaxLines,\n type SyntaxSpan,\n syntaxStyleOf,\n} from '../lib/syntaxHighlight';\n\n/**\n * Read-only code with the editor's colours.\n *\n * Two shapes over one hook, because the cards need both: `SyntaxText` for a\n * block of code that owns its own element, and `SyntaxLine` for a card that\n * already renders a line at a time next to a gutter. Highlighting is\n * asynchronous, so both show the plain text first and swap in spans once the\n * grammar has loaded; a result that never highlights simply stays plain.\n *\n * DESIGN PATTERNS:\n * - Plain text is the fallback, never a spinner: colour is decoration.\n * - The hook keys on the text, so a streaming result re-highlights as it grows.\n *\n * AVOID:\n * - Highlighting one line at a time. A line is not a parse unit; pass the whole\n * block to `useSyntaxLines` and render the line you want out of the result.\n */\n\nexport interface SyntaxQuery {\n /** The file the code came from, when the tool knows one. */\n path?: string | undefined;\n /** Skips detection when the caller already knows the grammar. */\n grammar?: GrammarKey | undefined;\n}\n\n/**\n * Colours `text`, or hands back undefined while that is still loading and for\n * anything with no grammar. Rendering the result is the caller's business.\n *\n * The finished spans are stored with the text they belong to, so text that has\n * changed since reads as plain during render rather than showing the previous\n * result's colours over the new lines.\n */\nexport function useSyntaxLines(text: string, query: SyntaxQuery = {}): SyntaxLines | undefined {\n const { path, grammar } = query;\n const key = grammar ?? detectGrammar({ path, text });\n const signature = `${key ?? ''}\\u0000${text}`;\n const [done, setDone] = useState<{ signature: string; lines: SyntaxLines } | undefined>(undefined);\n\n useEffect(() => {\n if (key === undefined) return;\n let live = true;\n const controller = new AbortController();\n void highlightToLines(text, key, controller.signal).then(\n (result) => {\n if (live && result !== undefined) setDone({ signature, lines: result });\n },\n // A grammar chunk that fails to load leaves the plain text in place: the\n // card stays readable and the network failure is the browser's to report.\n () => undefined,\n );\n return () => {\n live = false;\n controller.abort();\n };\n }, [text, key, signature]);\n\n return done?.signature === signature ? done.lines : undefined;\n}\n\nexport interface SyntaxLineProps extends Omit<ComponentProps<'span'>, 'children'> {\n /** The line's spans from `useSyntaxLines`, or undefined to show `text` plain. */\n spans?: readonly SyntaxSpan[] | undefined;\n text: string;\n}\n\n/** One line: coloured when its spans are in, the plain text until then. */\nexport function SyntaxLine({ spans, text, ...props }: SyntaxLineProps) {\n if (spans === undefined) return <span {...props}>{text}</span>;\n return (\n <span {...props}>\n {spans.map((span, index) => (\n <span key={index} style={syntaxStyleOf(span.token)}>\n {span.text}\n </span>\n ))}\n </span>\n );\n}\n\nexport interface SyntaxTextProps extends Omit<ComponentProps<'pre'>, 'children'>, SyntaxQuery {\n text: string;\n}\n\n/** A block of code, wrapped rather than clipped, coloured when a grammar is known. */\nexport function SyntaxText({ className, text, path, grammar, ...props }: SyntaxTextProps) {\n const lines = useSyntaxLines(text, { path, grammar });\n const plain = text.split('\\n');\n return (\n <pre\n data-slot=\"syntax-text\"\n data-highlighted={lines !== undefined}\n className={cn('whitespace-pre-wrap break-words [overflow-wrap:anywhere] font-mono', className)}\n {...props}\n >\n {(lines ?? plain).map((entry, index) => (\n <Fragment key={index}>\n {index > 0 ? '\\n' : null}\n <SyntaxLine\n spans={typeof entry === 'string' ? undefined : entry}\n text={typeof entry === 'string' ? entry : ''}\n />\n </Fragment>\n ))}\n </pre>\n );\n}\n"],"mappings":"A,+HA6CA,SAAgBU,EAAe,EAAc,EAAqB,CAAC,EAA4B,CAC7F,GAAM,CAAE,OAAM,WAAYC,EACpBC,EAAMC,GAAWb,EAAAA,cAAc,CAAE,OAAM,MAAK,CAAC,EAC7Cc,EAAY,GAAGF,GAAO,GAAG,QAAQG,IACjC,CAACC,EAAMC,IAAA,EAAWhB,EAAAA,SAAAA,CAAgE,IAAA,EAAS,EAoBjG,OAlBA,EAAAQ,EAAA,UAAA,KAAgB,CACd,GAAIG,IAAQ,IAAA,GAAW,OACvB,IAAIM,EAAO,GACLC,EAAa,IAAI,gBASvB,OARAZ,EAAKL,iBAAiBa,EAAMH,EAAKO,EAAW,MAAM,CAAC,CAAC,KACjD,GAAW,CACND,GAAQE,IAAW,IAAA,IAAWH,EAAQ,CAAE,YAAW,MAAOG,CAAO,CAAC,CACxE,MAGM,IAAA,EACR,MACa,CACX,EAAO,GACPD,EAAW,MAAM,CACnB,CACF,EAAG,CAACJ,EAAMH,EAAKE,CAAS,CAAC,EAElBE,GAAM,YAAcF,EAAYE,EAAK,MAAQ,IAAA,EACtD,CASA,SAAgBK,EAAW,CAAE,QAAO,OAAM,GAAGC,GAA0B,CAErE,OADIC,IAAU,IAAA,GAAkB,iBAAA,EAAAf,EAAA,IAAA,CAAC,OAAD,CAAM,GAAIc,EAAQ,SAAAP,CAAW,CAAA,EAE3D,iBAAA,EAAAP,EAAA,IAAA,CAAC,OAAD,CAAM,GAAIc,EACP,SAAAC,EAAM,KAAK,EAAM,IAChB,iBAAA,EAAAf,EAAA,IAAA,CAAC,OAAD,CAAkB,MAAOL,EAAAA,cAAcqB,EAAK,KAAK,EAC9C,SAAAA,EAAK,IACF,EAFKC,CAEL,CACP,CACG,CAAA,CAEV,CAOA,SAAgBC,EAAW,CAAE,YAAW,OAAM,OAAM,UAAS,GAAGJ,GAA0B,CACxF,IAAMK,EAAQjB,EAAeK,EAAM,CAAE,OAAM,SAAQ,CAAC,EAC9Ca,EAAQb,EAAK,MAAM;CAAI,EAC7B,MACE,iBAAA,EAAAP,EAAA,IAAA,CAAC,MAAD,CACE,YAAU,cACV,mBAAkBmB,IAAU,IAAA,GAC5B,UAAWvB,EAAAA,GAAG,qEAAsEyB,CAAS,EAC7F,GAAIP,EAEF,UAAAK,GAASC,EAAA,CAAO,KAAK,EAAO,IAC5B,iBAAA,EAAApB,EAAA,KAAA,CAACH,EAAAA,SAAD,CAAA,SAAA,CACGoB,EAAQ,EAAI;EAAO,KACpB,iBAAA,EAAAjB,EAAA,IAAA,CAACa,EAAD,CACE,MAAO,OAAOS,GAAU,SAAW,IAAA,GAAYA,EAC/C,KAAM,OAAOA,GAAU,SAAWA,EAAQ,EAC3C,CAAA,CACO,CAAA,EANKL,CAML,CACX,CACE,CAAA,CAET,C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SyntaxText.d.mts","names":[],"sources":["../../../src/components/SyntaxText.tsx"],"mappings":";;;;;;;;;;;;;;;;;;;;;iBA8BiB;;EAEf;;EAEA,UAAU;;;;;;;;;;wBAWI,eAAe,cAAc,QAAO,cAAmB;iBA2BtD,wBAAwB,KAAK;;EAE5C,iBAAiB;EACjB;;;wBAIc,aAAa,OAAO,SAAS,SAAS,kCAAe,IAAA;iBAapD,wBAAwB,KAAK,oCAAoC;EAChF;;;wBAIc,aAAa,WAAW,MAAM,MAAM,YAAY,SAAS,kCAAe,IAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{cn as e}from"../lib/cn.mjs";import{detectGrammar as t,highlightToLines as n,syntaxStyleOf as r}from"../lib/syntaxHighlight.mjs";import{jsx as i,jsxs as a}from"react/jsx-runtime";import{Fragment as o,useEffect as s,useState as c}from"react";function l(e,r={}){let{path:i,grammar:a}=r,o=a??t({path:i,text:e}),l=`${o??``}\u0000${e}`,[u,d]=c(void 0);return s(()=>{if(o===void 0)return;let t=!0;return n(e,o).then(e=>{t&&e!==void 0&&d({signature:l,lines:e})},()=>void 0),()=>{t=!1}},[e,o,l]),u?.signature===l?u.lines:void 0}function u({spans:e,text:t,...n}){return e===void 0?/* @__PURE__ */ i(`span`,{...n,children:t}):/* @__PURE__ */ i(`span`,{...n,children:e.map((e,t)=>/* @__PURE__ */ i(`span`,{style:r(e.token),children:e.text},t))})}function d({className:t,text:n,path:r,grammar:s,...c}){let d=l(n,{path:r,grammar:s}),f=n.split(`
|
|
1
|
+
import{cn as e}from"../lib/cn.mjs";import{detectGrammar as t,highlightToLines as n,syntaxStyleOf as r}from"../lib/syntaxHighlight.mjs";import{jsx as i,jsxs as a}from"react/jsx-runtime";import{Fragment as o,useEffect as s,useState as c}from"react";function l(e,r={}){let{path:i,grammar:a}=r,o=a??t({path:i,text:e}),l=`${o??``}\u0000${e}`,[u,d]=c(void 0);return s(()=>{if(o===void 0)return;let t=!0,r=new AbortController;return n(e,o,r.signal).then(e=>{t&&e!==void 0&&d({signature:l,lines:e})},()=>void 0),()=>{t=!1,r.abort()}},[e,o,l]),u?.signature===l?u.lines:void 0}function u({spans:e,text:t,...n}){return e===void 0?/* @__PURE__ */ i(`span`,{...n,children:t}):/* @__PURE__ */ i(`span`,{...n,children:e.map((e,t)=>/* @__PURE__ */ i(`span`,{style:r(e.token),children:e.text},t))})}function d({className:t,text:n,path:r,grammar:s,...c}){let d=l(n,{path:r,grammar:s}),f=n.split(`
|
|
2
2
|
`);return/* @__PURE__ */ i(`pre`,{"data-slot":`syntax-text`,"data-highlighted":d!==void 0,className:e(`whitespace-pre-wrap break-words [overflow-wrap:anywhere] font-mono`,t),...c,children:(d??f).map((e,t)=>/* @__PURE__ */ a(o,{children:[t>0?`
|
|
3
3
|
`:null,/* @__PURE__ */ i(u,{spans:typeof e==`string`?void 0:e,text:typeof e==`string`?e:``})]},t))})}export{u as SyntaxLine,d as SyntaxText,l as useSyntaxLines};
|
|
4
4
|
//# sourceMappingURL=SyntaxText.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SyntaxText.mjs","names":["Fragment","Fragment$1","useSyntaxLines","query","key","grammar","detectGrammar","signature","text","done","setDone","useState","useEffect","live","controller","highlightToLines","result","SyntaxLine","props","spans","syntaxStyleOf","span","index","SyntaxText","lines","plain","cn","className","entry"],"sources":["../../../src/components/SyntaxText.tsx"],"sourcesContent":["import { type ComponentProps, Fragment, useEffect, useState } from 'react';\n\nimport { cn } from '../lib/cn';\nimport type { GrammarKey } from '../lib/editorLanguage';\nimport {\n detectGrammar,\n highlightToLines,\n type SyntaxLines,\n type SyntaxSpan,\n syntaxStyleOf,\n} from '../lib/syntaxHighlight';\n\n/**\n * Read-only code with the editor's colours.\n *\n * Two shapes over one hook, because the cards need both: `SyntaxText` for a\n * block of code that owns its own element, and `SyntaxLine` for a card that\n * already renders a line at a time next to a gutter. Highlighting is\n * asynchronous, so both show the plain text first and swap in spans once the\n * grammar has loaded; a result that never highlights simply stays plain.\n *\n * DESIGN PATTERNS:\n * - Plain text is the fallback, never a spinner: colour is decoration.\n * - The hook keys on the text, so a streaming result re-highlights as it grows.\n *\n * AVOID:\n * - Highlighting one line at a time. A line is not a parse unit; pass the whole\n * block to `useSyntaxLines` and render the line you want out of the result.\n */\n\nexport interface SyntaxQuery {\n /** The file the code came from, when the tool knows one. */\n path?: string | undefined;\n /** Skips detection when the caller already knows the grammar. */\n grammar?: GrammarKey | undefined;\n}\n\n/**\n * Colours `text`, or hands back undefined while that is still loading and for\n * anything with no grammar. Rendering the result is the caller's business.\n *\n * The finished spans are stored with the text they belong to, so text that has\n * changed since reads as plain during render rather than showing the previous\n * result's colours over the new lines.\n */\nexport function useSyntaxLines(text: string, query: SyntaxQuery = {}): SyntaxLines | undefined {\n const { path, grammar } = query;\n const key = grammar ?? detectGrammar({ path, text });\n const signature = `${key ?? ''}\\u0000${text}`;\n const [done, setDone] = useState<{ signature: string; lines: SyntaxLines } | undefined>(undefined);\n\n useEffect(() => {\n if (key === undefined) return;\n let live = true;\n const controller = new AbortController();\n void highlightToLines(text, key, controller.signal).then(\n (result) => {\n if (live && result !== undefined) setDone({ signature, lines: result });\n },\n // A grammar chunk that fails to load leaves the plain text in place: the\n // card stays readable and the network failure is the browser's to report.\n () => undefined,\n );\n return () => {\n live = false;\n controller.abort();\n };\n }, [text, key, signature]);\n\n return done?.signature === signature ? done.lines : undefined;\n}\n\nexport interface SyntaxLineProps extends Omit<ComponentProps<'span'>, 'children'> {\n /** The line's spans from `useSyntaxLines`, or undefined to show `text` plain. */\n spans?: readonly SyntaxSpan[] | undefined;\n text: string;\n}\n\n/** One line: coloured when its spans are in, the plain text until then. */\nexport function SyntaxLine({ spans, text, ...props }: SyntaxLineProps) {\n if (spans === undefined) return <span {...props}>{text}</span>;\n return (\n <span {...props}>\n {spans.map((span, index) => (\n <span key={index} style={syntaxStyleOf(span.token)}>\n {span.text}\n </span>\n ))}\n </span>\n );\n}\n\nexport interface SyntaxTextProps extends Omit<ComponentProps<'pre'>, 'children'>, SyntaxQuery {\n text: string;\n}\n\n/** A block of code, wrapped rather than clipped, coloured when a grammar is known. */\nexport function SyntaxText({ className, text, path, grammar, ...props }: SyntaxTextProps) {\n const lines = useSyntaxLines(text, { path, grammar });\n const plain = text.split('\\n');\n return (\n <pre\n data-slot=\"syntax-text\"\n data-highlighted={lines !== undefined}\n className={cn('whitespace-pre-wrap break-words [overflow-wrap:anywhere] font-mono', className)}\n {...props}\n >\n {(lines ?? plain).map((entry, index) => (\n <Fragment key={index}>\n {index > 0 ? '\\n' : null}\n <SyntaxLine\n spans={typeof entry === 'string' ? undefined : entry}\n text={typeof entry === 'string' ? entry : ''}\n />\n </Fragment>\n ))}\n </pre>\n );\n}\n"],"mappings":"A,uPA6CA,SAAgBE,EAAe,EAAc,EAAqB,CAAC,EAA4B,CAC7F,GAAM,CAAE,OAAM,WAAYC,EACpBC,EAAMC,GAAWC,EAAc,CAAE,OAAM,MAAK,CAAC,EAC7CC,EAAY,GAAGH,GAAO,GAAG,QAAQI,IACjC,CAACC,EAAMC,GAAWC,EAAgE,IAAA,EAAS,EAoBjG,OAlBAC,MAAgB,CACd,GAAIR,IAAQ,IAAA,GAAW,OACvB,IAAIS,EAAO,GACLC,EAAa,IAAI,gBASvB,OARAC,EAAsBP,EAAMJ,EAAKU,EAAW,MAAM,CAAC,CAAC,KACjD,GAAW,CACND,GAAQG,IAAW,IAAA,IAAWN,EAAQ,CAAE,YAAW,MAAOM,CAAO,CAAC,CACxE,MAGM,IAAA,EACR,MACa,CACX,EAAO,GACPF,EAAW,MAAM,CACnB,CACF,EAAG,CAACN,EAAMJ,EAAKG,CAAS,CAAC,EAElBE,GAAM,YAAcF,EAAYE,EAAK,MAAQ,IAAA,EACtD,CASA,SAAgBQ,EAAW,CAAE,QAAO,OAAM,GAAGC,GAA0B,CAErE,OADIC,IAAU,IAAA,GAAkB,kBAAC,OAAD,CAAM,GAAID,EAAQ,SAAAV,CAAW,CAAA,EAE3D,kBAAC,OAAD,CAAM,GAAIU,EACP,SAAAC,EAAM,KAAK,EAAM,IAChB,kBAAC,OAAD,CAAkB,MAAOC,EAAcC,EAAK,KAAK,EAC9C,SAAAA,EAAK,IACF,EAFKC,CAEL,CACP,CACG,CAAA,CAEV,CAOA,SAAgBC,EAAW,CAAE,YAAW,OAAM,OAAM,UAAS,GAAGL,GAA0B,CACxF,IAAMM,EAAQtB,EAAeM,EAAM,CAAE,OAAM,SAAQ,CAAC,EAC9CiB,EAAQjB,EAAK,MAAM;CAAI,EAC7B,MACE,kBAAC,MAAD,CACE,YAAU,cACV,mBAAkBgB,IAAU,IAAA,GAC5B,UAAWE,EAAG,qEAAsEC,CAAS,EAC7F,GAAIT,EAEF,UAAAM,GAASC,EAAA,CAAO,KAAK,EAAO,IAC5B,kBAACzB,EAAD,CAAA,SAAA,CACGsB,EAAQ,EAAI;EAAO,KACpB,kBAACL,EAAD,CACE,MAAO,OAAOW,GAAU,SAAW,IAAA,GAAYA,EAC/C,KAAM,OAAOA,GAAU,SAAWA,EAAQ,EAC3C,CAAA,CACO,CAAA,EANKN,CAML,CACX,CACE,CAAA,CAET,C"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const e=require("../lib/cn.cjs");let t=require("radix-ui"),n=require("react/jsx-runtime"),r=require("class-variance-authority");const i=(0,r.cva)(`flex min-h-6 min-w-6 cursor-pointer items-center gap-1.5 rounded px-2 py-1 text-base font-medium transition-colors outline-none`,{variants:{active:{true:`bg-po-tint-green font-semibold text-po-green`,false:`text-po-dim hover:bg-po-panel hover:text-po-hi`}},defaultVariants:{active:!1}}),a=(0,r.cva)(`flex h-[15px] min-w-[15px] items-center justify-center rounded-full px-1 text-2xs font-semibold`,{variants:{active:{true:`bg-po-green text-po-rail`,false:`bg-po-panel text-po-dim`}},defaultVariants:{active:!1}});function o({className:r,active:a,asChild:o=!1,...s}){let c=o?t.Slot.Root:`a`;return/* @__PURE__ */ (0,n.jsx)(c,{"data-slot":`nav-tab`,"data-active":a??!1,className:e.cn(i({active:a}),r),...s})}function s({className:t,active:r,...
|
|
1
|
+
const e=require("../lib/cn.cjs");let t=require("radix-ui"),n=require("react/jsx-runtime"),r=require("class-variance-authority");const i=(0,r.cva)(`flex min-h-6 min-w-6 cursor-pointer items-center gap-1.5 rounded px-2 py-1 text-base font-medium transition-colors outline-none`,{variants:{active:{true:`bg-po-tint-green font-semibold text-po-green`,false:`text-po-dim hover:bg-po-panel hover:text-po-hi`}},defaultVariants:{active:!1}}),a=(0,r.cva)(`flex h-[15px] min-w-[15px] items-center justify-center rounded-full px-1 text-2xs font-semibold`,{variants:{active:{true:`bg-po-green text-po-rail`,false:`bg-po-panel text-po-dim`},ask:{true:`bg-po-magenta text-po-bg`}},defaultVariants:{active:!1}});function o({className:r,active:a,asChild:o=!1,...s}){let c=o?t.Slot.Root:`a`;return/* @__PURE__ */ (0,n.jsx)(c,{"data-slot":`nav-tab`,"data-active":a??!1,className:e.cn(i({active:a}),r),...s})}function s({className:t,active:r,ask:i,...o}){return/* @__PURE__ */ (0,n.jsx)(`span`,{"data-slot":`nav-tab-badge`,className:e.cn(a({active:r,ask:i}),t),...o})}function c(e){return/* @__PURE__ */ (0,n.jsx)(t.Tabs.Root,{"data-slot":`tabs`,...e})}function l({className:r,...i}){return/* @__PURE__ */ (0,n.jsx)(t.Tabs.List,{"data-slot":`tabs-list`,className:e.cn(`flex items-center gap-1`,r),...i})}function u({className:r,...a}){return/* @__PURE__ */ (0,n.jsx)(t.Tabs.Trigger,{"data-slot":`tabs-trigger`,className:e.cn(i({active:!1}),`data-[state=active]:bg-po-tint-green data-[state=active]:font-semibold data-[state=active]:text-po-green`,r),...a})}function d({className:r,...i}){return/* @__PURE__ */ (0,n.jsx)(t.Tabs.Content,{"data-slot":`tabs-content`,className:e.cn(`min-h-0 flex-1`,r),...i})}exports.NavTab=o,exports.NavTabBadge=s,exports.Tabs=c,exports.TabsContent=d,exports.TabsList=l,exports.TabsTrigger=u,exports.tabBadgeVariants=a,exports.tabVariants=i;
|
|
2
2
|
//# sourceMappingURL=Tabs.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tabs.cjs","names":["cva","Slot","cn","TabsPrimitive","require_cn","radix_ui","react_jsx_runtime","class_variance_authority","tabVariants","tabBadgeVariants","NavTab","props","Component","asChild","active","className","NavTabBadge","Tabs","TabsList","TabsTrigger","TabsContent"],"sources":["../../../src/components/Tabs.tsx"],"sourcesContent":["import { cva, type VariantProps } from 'class-variance-authority';\nimport { Tabs as TabsPrimitive } from 'radix-ui';\nimport { Slot } from 'radix-ui';\nimport type { ComponentProps } from 'react';\n\nimport { cn } from '../lib/cn';\n\n/**\n * The look a tab wears, whether Radix drives it or a router link does. It is\n * exported because the cockpit's own tabs navigate routes rather than swap\n * panels, and a link that looks like a tab must not be a second implementation.\n */\nexport const tabVariants = cva(\n 'flex min-h-6 min-w-6 cursor-pointer items-center gap-1.5 rounded px-2 py-1 text-base font-medium transition-colors outline-none',\n {\n variants: {\n active: {\n true: 'bg-po-tint-green font-semibold text-po-green',\n false: 'text-po-dim hover:bg-po-panel hover:text-po-hi',\n },\n },\n defaultVariants: { active: false },\n },\n);\n\n
|
|
1
|
+
{"version":3,"file":"Tabs.cjs","names":["cva","Slot","cn","TabsPrimitive","require_cn","radix_ui","react_jsx_runtime","class_variance_authority","tabVariants","tabBadgeVariants","NavTab","props","Component","asChild","active","className","NavTabBadge","Tabs","TabsList","TabsTrigger","TabsContent"],"sources":["../../../src/components/Tabs.tsx"],"sourcesContent":["import { cva, type VariantProps } from 'class-variance-authority';\nimport { Tabs as TabsPrimitive } from 'radix-ui';\nimport { Slot } from 'radix-ui';\nimport type { ComponentProps } from 'react';\n\nimport { cn } from '../lib/cn';\n\n/**\n * The look a tab wears, whether Radix drives it or a router link does. It is\n * exported because the cockpit's own tabs navigate routes rather than swap\n * panels, and a link that looks like a tab must not be a second implementation.\n */\nexport const tabVariants = cva(\n 'flex min-h-6 min-w-6 cursor-pointer items-center gap-1.5 rounded px-2 py-1 text-base font-medium transition-colors outline-none',\n {\n variants: {\n active: {\n true: 'bg-po-tint-green font-semibold text-po-green',\n false: 'text-po-dim hover:bg-po-panel hover:text-po-hi',\n },\n },\n defaultVariants: { active: false },\n },\n);\n\n/**\n * The count a tab carries; it inverts on the active tab so it stays readable on the tint.\n * `ask` counts things waiting on the person, in rose whatever the tab's state.\n */\nexport const tabBadgeVariants = cva(\n 'flex h-[15px] min-w-[15px] items-center justify-center rounded-full px-1 text-2xs font-semibold',\n {\n variants: {\n active: {\n true: 'bg-po-green text-po-rail',\n false: 'bg-po-panel text-po-dim',\n },\n ask: { true: 'bg-po-magenta text-po-bg' },\n },\n defaultVariants: { active: false },\n },\n);\n\nexport interface NavTabProps extends ComponentProps<'a'>, VariantProps<typeof tabVariants> {\n /** Render the child element instead of an <a>, so a router Link can be the tab. */\n asChild?: boolean;\n}\n\n/**\n * A tab that navigates. Radix Tabs owns panels and roving focus over content\n * it renders; a route-driven tab strip has neither, so it gets the styling and\n * leaves the semantics to the router.\n */\nexport function NavTab({ className, active, asChild = false, ...props }: NavTabProps) {\n const Component = asChild ? Slot.Root : 'a';\n return (\n <Component\n data-slot=\"nav-tab\"\n data-active={active ?? false}\n className={cn(tabVariants({ active }), className)}\n {...props}\n />\n );\n}\n\n/** The count beside a tab's label, or on an icon's corner. */\nexport function NavTabBadge({\n className,\n active,\n ask,\n ...props\n}: ComponentProps<'span'> & VariantProps<typeof tabBadgeVariants>) {\n return <span data-slot=\"nav-tab-badge\" className={cn(tabBadgeVariants({ active, ask }), className)} {...props} />;\n}\n\n/** Radix Tabs, for a surface that swaps panels in place rather than navigating. */\nexport function Tabs(props: ComponentProps<typeof TabsPrimitive.Root>) {\n return <TabsPrimitive.Root data-slot=\"tabs\" {...props} />;\n}\n\nexport function TabsList({ className, ...props }: ComponentProps<typeof TabsPrimitive.List>) {\n return <TabsPrimitive.List data-slot=\"tabs-list\" className={cn('flex items-center gap-1', className)} {...props} />;\n}\n\nexport function TabsTrigger({ className, ...props }: ComponentProps<typeof TabsPrimitive.Trigger>) {\n return (\n <TabsPrimitive.Trigger\n data-slot=\"tabs-trigger\"\n className={cn(\n tabVariants({ active: false }),\n 'data-[state=active]:bg-po-tint-green data-[state=active]:font-semibold data-[state=active]:text-po-green',\n className,\n )}\n {...props}\n />\n );\n}\n\nexport function TabsContent({ className, ...props }: ComponentProps<typeof TabsPrimitive.Content>) {\n return <TabsPrimitive.Content data-slot=\"tabs-content\" className={cn('min-h-0 flex-1', className)} {...props} />;\n}\n"],"mappings":"A,gIAYA,MAAaQ,GAAA,EAAcR,EAAAA,IAAAA,CACzB,kIACA,CACE,SAAU,CACR,OAAQ,CACN,KAAM,+CACN,MAAO,gDACT,CACF,EACA,gBAAiB,CAAE,OAAQ,EAAM,CACnC,CACF,EAMaS,GAAA,EAAmBT,EAAAA,IAAAA,CAC9B,kGACA,CACE,SAAU,CACR,OAAQ,CACN,KAAM,2BACN,MAAO,yBACT,EACA,IAAK,CAAE,KAAM,0BAA2B,CAC1C,EACA,gBAAiB,CAAE,OAAQ,EAAM,CACnC,CACF,EAYA,SAAgBU,EAAO,CAAE,YAAW,SAAQ,UAAU,GAAO,GAAGC,GAAsB,CACpF,IAAMC,EAAYC,EAAUZ,EAAAA,KAAK,KAAO,IACxC,MACE,iBAAA,EAAAK,EAAA,IAAA,CAACM,EAAD,CACE,YAAU,UACV,cAAaE,GAAU,GACvB,UAAWZ,EAAAA,GAAGM,EAAY,CAAE,QAAO,CAAC,EAAGO,CAAS,EAChD,GAAIJ,CACL,CAAA,CAEL,CAGA,SAAgBK,EAAY,CAC1B,YACA,SACA,MACA,GAAGL,GAC8D,CACjE,MAAO,iBAAA,EAAAL,EAAA,IAAA,CAAC,OAAD,CAAM,YAAU,gBAAgB,UAAWJ,EAAAA,GAAGO,EAAiB,CAAE,SAAQ,KAAI,CAAC,EAAGM,CAAS,EAAG,GAAIJ,CAAQ,CAAA,CAClH,CAGA,SAAgBM,EAAK,EAAkD,CACrE,MAAO,iBAAA,EAAAX,EAAA,IAAA,CAACH,EAAAA,KAAc,KAAf,CAAoB,YAAU,OAAO,GAAIQ,CAAQ,CAAA,CAC1D,CAEA,SAAgBO,EAAS,CAAE,YAAW,GAAGP,GAAoD,CAC3F,MAAO,iBAAA,EAAAL,EAAA,IAAA,CAACH,EAAAA,KAAc,KAAf,CAAoB,YAAU,YAAY,UAAWD,EAAAA,GAAG,0BAA2Ba,CAAS,EAAG,GAAIJ,CAAQ,CAAA,CACpH,CAEA,SAAgBQ,EAAY,CAAE,YAAW,GAAGR,GAAuD,CACjG,MACE,iBAAA,EAAAL,EAAA,IAAA,CAACH,EAAAA,KAAc,QAAf,CACE,YAAU,eACV,UAAWD,EAAAA,GACTM,EAAY,CAAE,OAAQ,EAAM,CAAC,EAC7B,2GACAO,CACF,EACA,GAAIJ,CACL,CAAA,CAEL,CAEA,SAAgBS,EAAY,CAAE,YAAW,GAAGT,GAAuD,CACjG,MAAO,iBAAA,EAAAL,EAAA,IAAA,CAACH,EAAAA,KAAc,QAAf,CAAuB,YAAU,eAAe,UAAWD,EAAAA,GAAG,iBAAkBa,CAAS,EAAG,GAAIJ,CAAQ,CAAA,CACjH,C"}
|
|
@@ -10,9 +10,13 @@ import { VariantProps } from "class-variance-authority";
|
|
|
10
10
|
export declare const tabVariants: (props?: ({
|
|
11
11
|
active?: boolean | null | undefined;
|
|
12
12
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
13
|
-
/**
|
|
13
|
+
/**
|
|
14
|
+
* The count a tab carries; it inverts on the active tab so it stays readable on the tint.
|
|
15
|
+
* `ask` counts things waiting on the person, in rose whatever the tab's state.
|
|
16
|
+
*/
|
|
14
17
|
export declare const tabBadgeVariants: (props?: ({
|
|
15
18
|
active?: boolean | null | undefined;
|
|
19
|
+
ask?: boolean | null | undefined;
|
|
16
20
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
17
21
|
export interface NavTabProps extends ComponentProps<'a'>, VariantProps<typeof tabVariants> {
|
|
18
22
|
/** Render the child element instead of an <a>, so a router Link can be the tab. */
|
|
@@ -24,8 +28,8 @@ export interface NavTabProps extends ComponentProps<'a'>, VariantProps<typeof ta
|
|
|
24
28
|
* leaves the semantics to the router.
|
|
25
29
|
*/
|
|
26
30
|
export declare function NavTab({ className, active, asChild, ...props }: NavTabProps): import("react").JSX.Element;
|
|
27
|
-
/** The count beside a tab's label. */
|
|
28
|
-
export declare function NavTabBadge({ className, active, ...props }: ComponentProps<'span'> & VariantProps<typeof tabBadgeVariants>): import("react").JSX.Element;
|
|
31
|
+
/** The count beside a tab's label, or on an icon's corner. */
|
|
32
|
+
export declare function NavTabBadge({ className, active, ask, ...props }: ComponentProps<'span'> & VariantProps<typeof tabBadgeVariants>): import("react").JSX.Element;
|
|
29
33
|
/** Radix Tabs, for a surface that swaps panels in place rather than navigating. */
|
|
30
34
|
declare function Tabs$1(props: ComponentProps<typeof Tabs.Root>): import("react").JSX.Element;
|
|
31
35
|
export declare function TabsList({ className, ...props }: ComponentProps<typeof Tabs.List>): import("react").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Tabs.d.mts","names":["Tabs","TabsPrimitive"],"sources":["../../../src/components/Tabs.tsx"],"mappings":";;;;;;;;;qBAYa,cAAW;;6CAWvB;;;;;qBAMY,mBAAgB;;;6CAY5B;iBAEgB,oBAAoB,qBAAqB,oBAAoB;;EAE5E;;;;;;;wBAQc,SAAS,WAAW,QAAQ,YAAoB,SAAS,8BAAW,IAAA;;wBAapE,cACd,WACA,QACA,QACG,SACF,yBAAyB,oBAAoB,oCAAiB,IAAA;;iBAKjDA,OAAK,OAAO,sBAAsBC,KAAc,wBAAK,IAAA;wBAIrD,WAAW,cAAc,SAAS,sBAAsBA,KAAc,wBAAK,IAAA;wBAI3E,cAAc,cAAc,SAAS,sBAAsBA,KAAc,2BAAQ,IAAA;wBAcjF,cAAc,cAAc,SAAS,sBAAsBA,KAAc,2BAAQ,IAAA"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{cn as e}from"../lib/cn.mjs";import{Slot as t,Tabs as n}from"radix-ui";import{jsx as r}from"react/jsx-runtime";import{cva as i}from"class-variance-authority";const a=i(`flex min-h-6 min-w-6 cursor-pointer items-center gap-1.5 rounded px-2 py-1 text-base font-medium transition-colors outline-none`,{variants:{active:{true:`bg-po-tint-green font-semibold text-po-green`,false:`text-po-dim hover:bg-po-panel hover:text-po-hi`}},defaultVariants:{active:!1}}),o=i(`flex h-[15px] min-w-[15px] items-center justify-center rounded-full px-1 text-2xs font-semibold`,{variants:{active:{true:`bg-po-green text-po-rail`,false:`bg-po-panel text-po-dim`},ask:{true:`bg-po-magenta text-po-bg`}},defaultVariants:{active:!1}});function s({className:n,active:i,asChild:o=!1,...s}){let c=o?t.Root:`a`;return/* @__PURE__ */ r(c,{"data-slot":`nav-tab`,"data-active":i??!1,className:e(a({active:i}),n),...s})}function c({className:t,active:n,ask:i,...a}){return/* @__PURE__ */ r(`span`,{"data-slot":`nav-tab-badge`,className:e(o({active:n,ask:i}),t),...a})}function l(e){return/* @__PURE__ */ r(n.Root,{"data-slot":`tabs`,...e})}function u({className:t,...i}){return/* @__PURE__ */ r(n.List,{"data-slot":`tabs-list`,className:e(`flex items-center gap-1`,t),...i})}function d({className:t,...i}){return/* @__PURE__ */ r(n.Trigger,{"data-slot":`tabs-trigger`,className:e(a({active:!1}),`data-[state=active]:bg-po-tint-green data-[state=active]:font-semibold data-[state=active]:text-po-green`,t),...i})}function f({className:t,...i}){return/* @__PURE__ */ r(n.Content,{"data-slot":`tabs-content`,className:e(`min-h-0 flex-1`,t),...i})}export{s as NavTab,c as NavTabBadge,l as Tabs,f as TabsContent,u as TabsList,d as TabsTrigger,o as tabBadgeVariants,a as tabVariants};
|
|
2
|
+
//# sourceMappingURL=Tabs.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Tabs.mjs","names":["Tabs","TabsPrimitive","tabVariants","cva","tabBadgeVariants","NavTab","props","Component","asChild","Slot","active","cn","className","NavTabBadge","Tabs$1","Tabs","TabsList","TabsTrigger","TabsContent"],"sources":["../../../src/components/Tabs.tsx"],"sourcesContent":["import { cva, type VariantProps } from 'class-variance-authority';\nimport { Tabs as TabsPrimitive } from 'radix-ui';\nimport { Slot } from 'radix-ui';\nimport type { ComponentProps } from 'react';\n\nimport { cn } from '../lib/cn';\n\n/**\n * The look a tab wears, whether Radix drives it or a router link does. It is\n * exported because the cockpit's own tabs navigate routes rather than swap\n * panels, and a link that looks like a tab must not be a second implementation.\n */\nexport const tabVariants = cva(\n 'flex min-h-6 min-w-6 cursor-pointer items-center gap-1.5 rounded px-2 py-1 text-base font-medium transition-colors outline-none',\n {\n variants: {\n active: {\n true: 'bg-po-tint-green font-semibold text-po-green',\n false: 'text-po-dim hover:bg-po-panel hover:text-po-hi',\n },\n },\n defaultVariants: { active: false },\n },\n);\n\n/**\n * The count a tab carries; it inverts on the active tab so it stays readable on the tint.\n * `ask` counts things waiting on the person, in rose whatever the tab's state.\n */\nexport const tabBadgeVariants = cva(\n 'flex h-[15px] min-w-[15px] items-center justify-center rounded-full px-1 text-2xs font-semibold',\n {\n variants: {\n active: {\n true: 'bg-po-green text-po-rail',\n false: 'bg-po-panel text-po-dim',\n },\n ask: { true: 'bg-po-magenta text-po-bg' },\n },\n defaultVariants: { active: false },\n },\n);\n\nexport interface NavTabProps extends ComponentProps<'a'>, VariantProps<typeof tabVariants> {\n /** Render the child element instead of an <a>, so a router Link can be the tab. */\n asChild?: boolean;\n}\n\n/**\n * A tab that navigates. Radix Tabs owns panels and roving focus over content\n * it renders; a route-driven tab strip has neither, so it gets the styling and\n * leaves the semantics to the router.\n */\nexport function NavTab({ className, active, asChild = false, ...props }: NavTabProps) {\n const Component = asChild ? Slot.Root : 'a';\n return (\n <Component\n data-slot=\"nav-tab\"\n data-active={active ?? false}\n className={cn(tabVariants({ active }), className)}\n {...props}\n />\n );\n}\n\n/** The count beside a tab's label, or on an icon's corner. */\nexport function NavTabBadge({\n className,\n active,\n ask,\n ...props\n}: ComponentProps<'span'> & VariantProps<typeof tabBadgeVariants>) {\n return <span data-slot=\"nav-tab-badge\" className={cn(tabBadgeVariants({ active, ask }), className)} {...props} />;\n}\n\n/** Radix Tabs, for a surface that swaps panels in place rather than navigating. */\nexport function Tabs(props: ComponentProps<typeof TabsPrimitive.Root>) {\n return <TabsPrimitive.Root data-slot=\"tabs\" {...props} />;\n}\n\nexport function TabsList({ className, ...props }: ComponentProps<typeof TabsPrimitive.List>) {\n return <TabsPrimitive.List data-slot=\"tabs-list\" className={cn('flex items-center gap-1', className)} {...props} />;\n}\n\nexport function TabsTrigger({ className, ...props }: ComponentProps<typeof TabsPrimitive.Trigger>) {\n return (\n <TabsPrimitive.Trigger\n data-slot=\"tabs-trigger\"\n className={cn(\n tabVariants({ active: false }),\n 'data-[state=active]:bg-po-tint-green data-[state=active]:font-semibold data-[state=active]:text-po-green',\n className,\n )}\n {...props}\n />\n );\n}\n\nexport function TabsContent({ className, ...props }: ComponentProps<typeof TabsPrimitive.Content>) {\n return <TabsPrimitive.Content data-slot=\"tabs-content\" className={cn('min-h-0 flex-1', className)} {...props} />;\n}\n"],"mappings":"A,oKAYA,MAAaE,EAAcC,EACzB,kIACA,CACE,SAAU,CACR,OAAQ,CACN,KAAM,+CACN,MAAO,gDACT,CACF,EACA,gBAAiB,CAAE,OAAQ,EAAM,CACnC,CACF,EAMaC,EAAmBD,EAC9B,kGACA,CACE,SAAU,CACR,OAAQ,CACN,KAAM,2BACN,MAAO,yBACT,EACA,IAAK,CAAE,KAAM,0BAA2B,CAC1C,EACA,gBAAiB,CAAE,OAAQ,EAAM,CACnC,CACF,EAYA,SAAgBE,EAAO,CAAE,YAAW,SAAQ,UAAU,GAAO,GAAGC,GAAsB,CACpF,IAAMC,EAAYC,EAAUC,EAAK,KAAO,IACxC,MACE,kBAACF,EAAD,CACE,YAAU,UACV,cAAaG,GAAU,GACvB,UAAWC,EAAGT,EAAY,CAAE,QAAO,CAAC,EAAGU,CAAS,EAChD,GAAIN,CACL,CAAA,CAEL,CAGA,SAAgBO,EAAY,CAC1B,YACA,SACA,MACA,GAAGP,GAC8D,CACjE,MAAO,kBAAC,OAAD,CAAM,YAAU,gBAAgB,UAAWK,EAAGP,EAAiB,CAAE,SAAQ,KAAI,CAAC,EAAGQ,CAAS,EAAG,GAAIN,CAAQ,CAAA,CAClH,CAGA,SAAgBN,EAAK,EAAkD,CACrE,MAAO,kBAACC,EAAc,KAAf,CAAoB,YAAU,OAAO,GAAIK,CAAQ,CAAA,CAC1D,CAEA,SAAgBU,EAAS,CAAE,YAAW,GAAGV,GAAoD,CAC3F,MAAO,kBAACL,EAAc,KAAf,CAAoB,YAAU,YAAY,UAAWU,EAAG,0BAA2BC,CAAS,EAAG,GAAIN,CAAQ,CAAA,CACpH,CAEA,SAAgBW,EAAY,CAAE,YAAW,GAAGX,GAAuD,CACjG,MACE,kBAACL,EAAc,QAAf,CACE,YAAU,eACV,UAAWU,EACTT,EAAY,CAAE,OAAQ,EAAM,CAAC,EAC7B,2GACAU,CACF,EACA,GAAIN,CACL,CAAA,CAEL,CAEA,SAAgBY,EAAY,CAAE,YAAW,GAAGZ,GAAuD,CACjG,MAAO,kBAACL,EAAc,QAAf,CAAuB,YAAU,eAAe,UAAWU,EAAG,iBAAkBC,CAAS,EAAG,GAAIN,CAAQ,CAAA,CACjH,C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TerminalView.cjs","names":["themeVariable","useRef","useState","cn","require_cn","require_theme","react_jsx_runtime","react","tokenColour","root","token","TerminalView","props","mount","handle","dataRef","onData","ready","setReady","ref","data","element","disposed","dispose","terminal","Terminal","text","onReady","className"],"sources":["../../../src/components/TerminalView.tsx"],"sourcesContent":["import { type ComponentProps, useEffect, useImperativeHandle, useRef, useState } from 'react';\n\nimport { cn } from '../lib/cn';\nimport { themeVariable } from '../types/theme';\n\n/**\n * A terminal emulator, for output that is a screen rather than a document.\n *\n * `AnsiText` beside it renders colour in text that happens to carry escapes.\n * This is the other thing: a full VT emulator that keeps a cursor, a grid and\n * an alternate screen, so a prompt, a progress bar or a full-screen program\n * behaves the way it would in a shell. Give it the bytes a pty produced and it\n * draws them; take its `onData` and you have what the reader typed.\n *\n * The emulator is loaded on mount rather than with the bundle. It is not a\n * small dependency, and most surfaces never show a terminal.\n */\n\nexport interface TerminalHandle {\n /** Writes pane bytes, escapes and all. */\n write(data: Uint8Array | string): void;\n /** Clears the screen and scrollback, for a stream that restarted. */\n reset(): void;\n}\n\nexport interface TerminalViewProps extends Omit<ComponentProps<'div'>, 'children' | 'onData' | 'ref'> {\n /** What the reader typed, already encoded the way a terminal sends it. */\n onData?: (text: string) => void;\n /** Called once the emulator is live, so a caller can start feeding it. */\n onReady?: () => void;\n ref?: React.Ref<TerminalHandle>;\n fontSize?: number;\n}\n\nconst DEFAULT_FONT_SIZE = 11;\nconst FONT_STACK = 'ui-monospace, SFMono-Regular, Menlo, monospace';\n\n/** Reads a theme token from the document, so the terminal follows the active theme. */\nfunction tokenColour(root: HTMLElement, token: Parameters<typeof themeVariable>[0]): string {\n return getComputedStyle(root).getPropertyValue(themeVariable(token)).trim();\n}\n\nexport function TerminalView({\n onData,\n onReady,\n ref,\n fontSize = DEFAULT_FONT_SIZE,\n className,\n ...props\n}: TerminalViewProps) {\n const mount = useRef<HTMLDivElement | null>(null);\n const handle = useRef<TerminalHandle | undefined>(undefined);\n const dataRef = useRef<((text: string) => void) | undefined>(onData);\n const [ready, setReady] = useState(false);\n\n useEffect(() => {\n dataRef.current = onData;\n });\n\n useImperativeHandle(ref, () => ({\n write: (data) => handle.current?.write(data),\n reset: () => handle.current?.reset(),\n }));\n\n useEffect(() => {\n const element = mount.current;\n if (element === null) return;\n let disposed = false;\n let dispose = (): void => undefined;\n\n void (async () => {\n const [{ Terminal }] = await Promise.all([import('@xterm/xterm'), import('@xterm/xterm/css/xterm.css')]);\n if (disposed) return;\n const terminal = new Terminal({\n cursorBlink: true,\n fontFamily: FONT_STACK,\n fontSize,\n allowTransparency: true,\n // Taken from the document's own custom properties rather than written\n // here, so a theme switch is the only place a colour is ever decided.\n theme: {\n background: tokenColour(element, 'deep'),\n foreground: tokenColour(element, 'dim'),\n cursor: tokenColour(element, 'hi'),\n selectionBackground: tokenColour(element, 'selected'),\n },\n });\n terminal.open(element);\n terminal.onData((text) => dataRef.current?.(text));\n handle.current = {\n write: (data) => terminal.write(data),\n reset: () => terminal.reset(),\n };\n setReady(true);\n onReady?.();\n\n dispose = () => {\n handle.current = undefined;\n terminal.dispose();\n };\n })();\n\n return () => {\n disposed = true;\n dispose();\n };\n // The emulator is built once for the life of the surface; later prop\n // changes reach it through the refs above rather than rebuilding it.\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, []);\n\n return (\n <div\n ref={mount}\n data-slot=\"terminal-view\"\n data-ready={ready}\n className={cn('h-full min-w-0 w-full overflow-auto', className)}\n {...props}\n />\n );\n}\n"],"mappings":"uHAsCA,SAASQ,EAAY,EAAmB,EAAoD,CAC1F,OAAO,iBAAiBC,CAAI,CAAC,CAAC,iBAAiBT,EAAAA,cAAcU,CAAK,CAAC,CAAC,CAAC,KAAK,CAC5E,CAEA,SAAgBC,EAAa,CAC3B,SACA,UACA,MACA,WAAW,GACX,YACA,GAAGC,GACiB,CACpB,IAAMC,GAAA,EAAQZ,EAAAA,OAAAA,CAA8B,IAAI,EAC1Ca,GAAA,EAASb,EAAAA,OAAAA,CAAmC,IAAA,EAAS,EACrDc,GAAA,EAAUd,EAAAA,OAAAA,CAA6Ce,CAAM,EAC7D,CAACC,EAAOC,IAAA,EAAYhB,EAAAA,SAAAA,CAAS,EAAK,EA0DxC,OAxDA,EAAAK,EAAA,UAAA,KAAgB,CACd,EAAQ,QAAUS,CACpB,CAAC,GAED,EAAAT,EAAA,oBAAA,CAAoBY,OAAY,CAC9B,MAAQ,GAASL,EAAO,SAAS,MAAMM,CAAI,EAC3C,UAAaN,EAAO,SAAS,MAAM,CACrC,EAAE,GAEF,EAAAP,EAAA,UAAA,KAAgB,CACd,IAAMc,EAAUR,EAAM,QACtB,GAAIQ,IAAY,KAAM,OACtB,IAAIC,EAAW,GACXC,MAAsB,IAAA,GAkC1B,OAhCM,SAAY,CAChB,GAAM,CAAC,CAAE,aAAc,MAAM,QAAQ,IAAI,CAAC,OAAO,gBAAiB,OAAO,6BAA6B,CAAC,EACvG,GAAID,EAAU,OACd,IAAME,EAAW,IAAIC,EAAS,CAC5B,YAAa,GACb,WAAY,iDACZ,WACA,kBAAmB,GAGnB,MAAO,CACL,WAAYjB,EAAYa,EAAS,MAAM,EACvC,WAAYb,EAAYa,EAAS,KAAK,EACtC,OAAQb,EAAYa,EAAS,IAAI,EACjC,oBAAqBb,EAAYa,EAAS,UAAU,CACtD,CACF,CAAC,EACDG,EAAS,KAAKH,CAAO,EACrBG,EAAS,OAAQ,GAAST,EAAQ,UAAUW,CAAI,CAAC,EACjD,EAAO,QAAU,CACf,MAAQ,GAASF,EAAS,MAAMJ,CAAI,EACpC,UAAaI,EAAS,MAAM,CAC9B,EACAN,EAAS,EAAI,EACbS,IAAU,EAEV,MAAgB,CACd,EAAO,QAAU,IAAA,GACjBH,EAAS,QAAQ,CACnB,CACF,EAAA,CAAG,MAEU,CACX,EAAW,GACXD,EAAQ,CACV,CAIF,EAAG,CAAC,CAAC,EAGH,iBAAA,EAAAjB,EAAA,IAAA,CAAC,MAAD,CACE,IAAKO,EACL,YAAU,gBACV,aAAYI,EACZ,UAAWd,EAAAA,GAAG,sCAAuCyB,CAAS,EAC9D,GAAIhB,CACL,CAAA,CAEL"}
|
|
1
|
+
{"version":3,"file":"TerminalView.cjs","names":["themeVariable","useRef","useState","cn","require_cn","require_theme","react_jsx_runtime","react","tokenColour","root","token","TerminalView","props","mount","handle","dataRef","onData","ready","setReady","ref","data","element","disposed","dispose","terminal","Terminal","text","onReady","className"],"sources":["../../../src/components/TerminalView.tsx"],"sourcesContent":["import { type ComponentProps, useEffect, useImperativeHandle, useRef, useState } from 'react';\n\nimport { cn } from '../lib/cn';\nimport { themeVariable } from '../types/theme';\n\n/**\n * A terminal emulator, for output that is a screen rather than a document.\n *\n * `AnsiText` beside it renders colour in text that happens to carry escapes.\n * This is the other thing: a full VT emulator that keeps a cursor, a grid and\n * an alternate screen, so a prompt, a progress bar or a full-screen program\n * behaves the way it would in a shell. Give it the bytes a pty produced and it\n * draws them; take its `onData` and you have what the reader typed.\n *\n * The emulator is loaded on mount rather than with the bundle. It is not a\n * small dependency, and most surfaces never show a terminal.\n */\n\nexport interface TerminalHandle {\n /** Writes pane bytes, escapes and all. */\n write(data: Uint8Array | string): void;\n /** Clears the screen and scrollback, for a stream that restarted. */\n reset(): void;\n}\n\nexport interface TerminalViewProps extends Omit<ComponentProps<'div'>, 'children' | 'onData' | 'ref'> {\n /** What the reader typed, already encoded the way a terminal sends it. */\n onData?: (text: string) => void;\n /** Called once the emulator is live, so a caller can start feeding it. */\n onReady?: () => void;\n ref?: React.Ref<TerminalHandle>;\n fontSize?: number;\n}\n\nconst DEFAULT_FONT_SIZE = 11;\nconst FONT_STACK = 'ui-monospace, SFMono-Regular, Menlo, monospace';\n\n/** Reads a theme token from the document, so the terminal follows the active theme. */\nfunction tokenColour(root: HTMLElement, token: Parameters<typeof themeVariable>[0]): string {\n return getComputedStyle(root).getPropertyValue(themeVariable(token)).trim();\n}\n\nexport function TerminalView({\n onData,\n onReady,\n ref,\n fontSize = DEFAULT_FONT_SIZE,\n className,\n ...props\n}: TerminalViewProps) {\n const mount = useRef<HTMLDivElement | null>(null);\n const handle = useRef<TerminalHandle | undefined>(undefined);\n const dataRef = useRef<((text: string) => void) | undefined>(onData);\n const [ready, setReady] = useState(false);\n\n useEffect(() => {\n dataRef.current = onData;\n });\n\n useImperativeHandle(ref, () => ({\n write: (data) => handle.current?.write(data),\n reset: () => handle.current?.reset(),\n }));\n\n useEffect(() => {\n const element = mount.current;\n if (element === null) return;\n let disposed = false;\n let dispose = (): void => undefined;\n\n void (async () => {\n const [{ Terminal }] = await Promise.all([import('@xterm/xterm'), import('@xterm/xterm/css/xterm.css')]);\n if (disposed) return;\n const terminal = new Terminal({\n cursorBlink: true,\n fontFamily: FONT_STACK,\n fontSize,\n allowTransparency: true,\n // Taken from the document's own custom properties rather than written\n // here, so a theme switch is the only place a colour is ever decided.\n theme: {\n background: tokenColour(element, 'deep'),\n foreground: tokenColour(element, 'dim'),\n cursor: tokenColour(element, 'hi'),\n selectionBackground: tokenColour(element, 'selected'),\n },\n });\n terminal.open(element);\n terminal.onData((text) => dataRef.current?.(text));\n handle.current = {\n write: (data) => terminal.write(data),\n reset: () => terminal.reset(),\n };\n setReady(true);\n onReady?.();\n\n dispose = () => {\n handle.current = undefined;\n terminal.dispose();\n };\n })();\n\n return () => {\n disposed = true;\n dispose();\n };\n // The emulator is built once for the life of the surface; later prop\n // changes reach it through the refs above rather than rebuilding it.\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, []);\n\n return (\n <div\n ref={mount}\n data-slot=\"terminal-view\"\n data-ready={ready}\n className={cn('h-full min-w-0 w-full overflow-auto', className)}\n {...props}\n />\n );\n}\n"],"mappings":"A,uHAsCA,SAASQ,EAAY,EAAmB,EAAoD,CAC1F,OAAO,iBAAiBC,CAAI,CAAC,CAAC,iBAAiBT,EAAAA,cAAcU,CAAK,CAAC,CAAC,CAAC,KAAK,CAC5E,CAEA,SAAgBC,EAAa,CAC3B,SACA,UACA,MACA,WAAW,GACX,YACA,GAAGC,GACiB,CACpB,IAAMC,GAAA,EAAQZ,EAAAA,OAAAA,CAA8B,IAAI,EAC1Ca,GAAA,EAASb,EAAAA,OAAAA,CAAmC,IAAA,EAAS,EACrDc,GAAA,EAAUd,EAAAA,OAAAA,CAA6Ce,CAAM,EAC7D,CAACC,EAAOC,IAAA,EAAYhB,EAAAA,SAAAA,CAAS,EAAK,EA0DxC,OAxDA,EAAAK,EAAA,UAAA,KAAgB,CACd,EAAQ,QAAUS,CACpB,CAAC,GAED,EAAAT,EAAA,oBAAA,CAAoBY,OAAY,CAC9B,MAAQ,GAASL,EAAO,SAAS,MAAMM,CAAI,EAC3C,UAAaN,EAAO,SAAS,MAAM,CACrC,EAAE,GAEF,EAAAP,EAAA,UAAA,KAAgB,CACd,IAAMc,EAAUR,EAAM,QACtB,GAAIQ,IAAY,KAAM,OACtB,IAAIC,EAAW,GACXC,MAAsB,IAAA,GAkC1B,OAhCM,SAAY,CAChB,GAAM,CAAC,CAAE,aAAc,MAAM,QAAQ,IAAI,CAAC,OAAO,gBAAiB,OAAO,6BAA6B,CAAC,EACvG,GAAID,EAAU,OACd,IAAME,EAAW,IAAIC,EAAS,CAC5B,YAAa,GACb,WAAY,iDACZ,WACA,kBAAmB,GAGnB,MAAO,CACL,WAAYjB,EAAYa,EAAS,MAAM,EACvC,WAAYb,EAAYa,EAAS,KAAK,EACtC,OAAQb,EAAYa,EAAS,IAAI,EACjC,oBAAqBb,EAAYa,EAAS,UAAU,CACtD,CACF,CAAC,EACDG,EAAS,KAAKH,CAAO,EACrBG,EAAS,OAAQ,GAAST,EAAQ,UAAUW,CAAI,CAAC,EACjD,EAAO,QAAU,CACf,MAAQ,GAASF,EAAS,MAAMJ,CAAI,EACpC,UAAaI,EAAS,MAAM,CAC9B,EACAN,EAAS,EAAI,EACbS,IAAU,EAEV,MAAgB,CACd,EAAO,QAAU,IAAA,GACjBH,EAAS,QAAQ,CACnB,CACF,EAAA,CAAG,MAEU,CACX,EAAW,GACXD,EAAQ,CACV,CAIF,EAAG,CAAC,CAAC,EAGH,iBAAA,EAAAjB,EAAA,IAAA,CAAC,MAAD,CACE,IAAKO,EACL,YAAU,gBACV,aAAYI,EACZ,UAAWd,EAAAA,GAAG,sCAAuCyB,CAAS,EAC9D,GAAIhB,CACL,CAAA,CAEL,C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TerminalView.d.mts","names":[],"sources":["../../../src/components/TerminalView.tsx"],"mappings":";;;;;;;;;;;;;;iBAkBiB;;EAEf,MAAM,MAAM;;EAEZ;;iBAGe,0BAA0B,KAAK;;EAE9C,UAAU;;EAEV;EACA,MAAM,MAAM,IAAI;EAChB;;wBAWc,eACd,QACA,SACA,KACA,UACA,cACG,SACF,oCAAiB,IAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TerminalView.mjs","names":["tokenColour","root","themeVariable","token","TerminalView","props","mount","useRef","handle","dataRef","onData","ready","setReady","useState","useEffect","useImperativeHandle","ref","data","element","disposed","dispose","terminal","Terminal","text","onReady","cn","className"],"sources":["../../../src/components/TerminalView.tsx"],"sourcesContent":["import { type ComponentProps, useEffect, useImperativeHandle, useRef, useState } from 'react';\n\nimport { cn } from '../lib/cn';\nimport { themeVariable } from '../types/theme';\n\n/**\n * A terminal emulator, for output that is a screen rather than a document.\n *\n * `AnsiText` beside it renders colour in text that happens to carry escapes.\n * This is the other thing: a full VT emulator that keeps a cursor, a grid and\n * an alternate screen, so a prompt, a progress bar or a full-screen program\n * behaves the way it would in a shell. Give it the bytes a pty produced and it\n * draws them; take its `onData` and you have what the reader typed.\n *\n * The emulator is loaded on mount rather than with the bundle. It is not a\n * small dependency, and most surfaces never show a terminal.\n */\n\nexport interface TerminalHandle {\n /** Writes pane bytes, escapes and all. */\n write(data: Uint8Array | string): void;\n /** Clears the screen and scrollback, for a stream that restarted. */\n reset(): void;\n}\n\nexport interface TerminalViewProps extends Omit<ComponentProps<'div'>, 'children' | 'onData' | 'ref'> {\n /** What the reader typed, already encoded the way a terminal sends it. */\n onData?: (text: string) => void;\n /** Called once the emulator is live, so a caller can start feeding it. */\n onReady?: () => void;\n ref?: React.Ref<TerminalHandle>;\n fontSize?: number;\n}\n\nconst DEFAULT_FONT_SIZE = 11;\nconst FONT_STACK = 'ui-monospace, SFMono-Regular, Menlo, monospace';\n\n/** Reads a theme token from the document, so the terminal follows the active theme. */\nfunction tokenColour(root: HTMLElement, token: Parameters<typeof themeVariable>[0]): string {\n return getComputedStyle(root).getPropertyValue(themeVariable(token)).trim();\n}\n\nexport function TerminalView({\n onData,\n onReady,\n ref,\n fontSize = DEFAULT_FONT_SIZE,\n className,\n ...props\n}: TerminalViewProps) {\n const mount = useRef<HTMLDivElement | null>(null);\n const handle = useRef<TerminalHandle | undefined>(undefined);\n const dataRef = useRef<((text: string) => void) | undefined>(onData);\n const [ready, setReady] = useState(false);\n\n useEffect(() => {\n dataRef.current = onData;\n });\n\n useImperativeHandle(ref, () => ({\n write: (data) => handle.current?.write(data),\n reset: () => handle.current?.reset(),\n }));\n\n useEffect(() => {\n const element = mount.current;\n if (element === null) return;\n let disposed = false;\n let dispose = (): void => undefined;\n\n void (async () => {\n const [{ Terminal }] = await Promise.all([import('@xterm/xterm'), import('@xterm/xterm/css/xterm.css')]);\n if (disposed) return;\n const terminal = new Terminal({\n cursorBlink: true,\n fontFamily: FONT_STACK,\n fontSize,\n allowTransparency: true,\n // Taken from the document's own custom properties rather than written\n // here, so a theme switch is the only place a colour is ever decided.\n theme: {\n background: tokenColour(element, 'deep'),\n foreground: tokenColour(element, 'dim'),\n cursor: tokenColour(element, 'hi'),\n selectionBackground: tokenColour(element, 'selected'),\n },\n });\n terminal.open(element);\n terminal.onData((text) => dataRef.current?.(text));\n handle.current = {\n write: (data) => terminal.write(data),\n reset: () => terminal.reset(),\n };\n setReady(true);\n onReady?.();\n\n dispose = () => {\n handle.current = undefined;\n terminal.dispose();\n };\n })();\n\n return () => {\n disposed = true;\n dispose();\n };\n // The emulator is built once for the life of the surface; later prop\n // changes reach it through the refs above rather than rebuilding it.\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, []);\n\n return (\n <div\n ref={mount}\n data-slot=\"terminal-view\"\n data-ready={ready}\n className={cn('h-full min-w-0 w-full overflow-auto', className)}\n {...props}\n />\n );\n}\n"],"mappings":"A,mNAsCA,SAASA,EAAY,EAAmB,EAAoD,CAC1F,OAAO,iBAAiBC,CAAI,CAAC,CAAC,iBAAiBC,EAAcC,CAAK,CAAC,CAAC,CAAC,KAAK,CAC5E,CAEA,SAAgBC,EAAa,CAC3B,SACA,UACA,MACA,WAAW,GACX,YACA,GAAGC,GACiB,CACpB,IAAMC,EAAQC,EAA8B,IAAI,EAC1CC,EAASD,EAAmC,IAAA,EAAS,EACrDE,EAAUF,EAA6CG,CAAM,EAC7D,CAACC,EAAOC,GAAYC,EAAS,EAAK,EA0DxC,OAxDAC,MAAgB,CACd,EAAQ,QAAUJ,CACpB,CAAC,EAEDK,EAAoBC,OAAY,CAC9B,MAAQ,GAASR,EAAO,SAAS,MAAMS,CAAI,EAC3C,UAAaT,EAAO,SAAS,MAAM,CACrC,EAAE,EAEFM,MAAgB,CACd,IAAMI,EAAUZ,EAAM,QACtB,GAAIY,IAAY,KAAM,OACtB,IAAIC,EAAW,GACXC,MAAsB,IAAA,GAkC1B,OAhCM,SAAY,CAChB,GAAM,CAAC,CAAE,aAAc,MAAM,QAAQ,IAAI,CAAC,OAAO,gBAAiB,OAAO,6BAA6B,CAAC,EACvG,GAAID,EAAU,OACd,IAAME,EAAW,IAAIC,EAAS,CAC5B,YAAa,GACb,WAAY,iDACZ,WACA,kBAAmB,GAGnB,MAAO,CACL,WAAYtB,EAAYkB,EAAS,MAAM,EACvC,WAAYlB,EAAYkB,EAAS,KAAK,EACtC,OAAQlB,EAAYkB,EAAS,IAAI,EACjC,oBAAqBlB,EAAYkB,EAAS,UAAU,CACtD,CACF,CAAC,EACDG,EAAS,KAAKH,CAAO,EACrBG,EAAS,OAAQ,GAASZ,EAAQ,UAAUc,CAAI,CAAC,EACjD,EAAO,QAAU,CACf,MAAQ,GAASF,EAAS,MAAMJ,CAAI,EACpC,UAAaI,EAAS,MAAM,CAC9B,EACAT,EAAS,EAAI,EACbY,IAAU,EAEV,MAAgB,CACd,EAAO,QAAU,IAAA,GACjBH,EAAS,QAAQ,CACnB,CACF,EAAA,CAAG,MAEU,CACX,EAAW,GACXD,EAAQ,CACV,CAIF,EAAG,CAAC,CAAC,EAGH,kBAAC,MAAD,CACE,IAAKd,EACL,YAAU,gBACV,aAAYK,EACZ,UAAWc,EAAG,sCAAuCC,CAAS,EAC9D,GAAIrB,CACL,CAAA,CAEL,C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Textarea.cjs","names":["cn","fieldVariants","require_cn","require_Input","react_jsx_runtime","Textarea","props","className"],"sources":["../../../src/components/Textarea.tsx"],"sourcesContent":["import type { VariantProps } from 'class-variance-authority';\nimport type { ComponentProps } from 'react';\n\nimport { cn } from '../lib/cn';\nimport { fieldVariants } from './Input';\n\nexport interface TextareaProps extends Omit<ComponentProps<'textarea'>, 'size'>, VariantProps<typeof fieldVariants> {}\n\n/** The multi-line field, styled as the Input; `bare` drops the well for a composer that draws its own. */\nexport function Textarea({ className, variant, size, ...props }: TextareaProps) {\n return (\n <textarea\n data-slot=\"textarea\"\n className={cn('resize-none', fieldVariants({ variant, size }), className)}\n {...props}\n />\n );\n}\n"],"mappings":"6FASA,SAAgBK,EAAS,CAAE,YAAW,UAAS,OAAM,GAAGC,GAAwB,CAC9E,MACE,iBAAA,EAAAF,EAAA,IAAA,CAAC,WAAD,CACE,YAAU,WACV,UAAWJ,EAAAA,GAAG,cAAeC,EAAAA,cAAc,CAAE,UAAS,MAAK,CAAC,EAAGM,CAAS,EACxE,GAAID,CACL,CAAA,CAEL"}
|
|
1
|
+
{"version":3,"file":"Textarea.cjs","names":["cn","fieldVariants","require_cn","require_Input","react_jsx_runtime","Textarea","props","className"],"sources":["../../../src/components/Textarea.tsx"],"sourcesContent":["import type { VariantProps } from 'class-variance-authority';\nimport type { ComponentProps } from 'react';\n\nimport { cn } from '../lib/cn';\nimport { fieldVariants } from './Input';\n\nexport interface TextareaProps extends Omit<ComponentProps<'textarea'>, 'size'>, VariantProps<typeof fieldVariants> {}\n\n/** The multi-line field, styled as the Input; `bare` drops the well for a composer that draws its own. */\nexport function Textarea({ className, variant, size, ...props }: TextareaProps) {\n return (\n <textarea\n data-slot=\"textarea\"\n className={cn('resize-none', fieldVariants({ variant, size }), className)}\n {...props}\n />\n );\n}\n"],"mappings":"A,6FASA,SAAgBK,EAAS,CAAE,YAAW,UAAS,OAAM,GAAGC,GAAwB,CAC9E,MACE,iBAAA,EAAAF,EAAA,IAAA,CAAC,WAAD,CACE,YAAU,WACV,UAAWJ,EAAAA,GAAG,cAAeC,EAAAA,cAAc,CAAE,UAAS,MAAK,CAAC,EAAGM,CAAS,EACxE,GAAID,CACL,CAAA,CAEL,C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Textarea.d.mts","names":[],"sources":["../../../src/components/Textarea.tsx"],"mappings":";;;;iBAMiB,sBAAsB,KAAK,qCAAqC,oBAAoB;;wBAGrF,WAAW,WAAW,SAAS,SAAS,SAAS,gCAAa,IAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Textarea.mjs","names":["Textarea","props","cn","fieldVariants","className"],"sources":["../../../src/components/Textarea.tsx"],"sourcesContent":["import type { VariantProps } from 'class-variance-authority';\nimport type { ComponentProps } from 'react';\n\nimport { cn } from '../lib/cn';\nimport { fieldVariants } from './Input';\n\nexport interface TextareaProps extends Omit<ComponentProps<'textarea'>, 'size'>, VariantProps<typeof fieldVariants> {}\n\n/** The multi-line field, styled as the Input; `bare` drops the well for a composer that draws its own. */\nexport function Textarea({ className, variant, size, ...props }: TextareaProps) {\n return (\n <textarea\n data-slot=\"textarea\"\n className={cn('resize-none', fieldVariants({ variant, size }), className)}\n {...props}\n />\n );\n}\n"],"mappings":"A,uHASA,SAAgBA,EAAS,CAAE,YAAW,UAAS,OAAM,GAAGC,GAAwB,CAC9E,MACE,kBAAC,WAAD,CACE,YAAU,WACV,UAAWC,EAAG,cAAeC,EAAc,CAAE,UAAS,MAAK,CAAC,EAAGC,CAAS,EACxE,GAAIH,CACL,CAAA,CAEL,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("class-variance-authority"),
|
|
1
|
+
require("../icons/icons.cjs");const e=require("../lib/cn.cjs");let t=require("radix-ui"),n=require("react/jsx-runtime"),r=require("@agimon-ai/po-core/web"),i=require("class-variance-authority"),a=require("lucide-react");function o(e){return/* @__PURE__ */ (0,n.jsx)(t.Toast.Provider,{...e})}function s({className:r,...i}){return/* @__PURE__ */ (0,n.jsx)(t.Toast.Viewport,{"data-slot":`toast-viewport`,className:e.cn(`fixed right-4 bottom-4 z-50 flex w-[360px] max-w-full flex-col gap-2 outline-none`,r),...i})}const c=(0,i.cva)(`flex items-start gap-3 rounded-md border bg-po-panel px-3 py-2.5 shadow-2xl data-[state=open]:animate-po-rise`,{variants:{tone:{neutral:`border-po-border`,running:`border-po-edge-yellow`,ok:`border-po-edge-green`,error:`border-po-edge-red`,info:`border-po-edge-blue`,accent:`border-po-edge-magenta`}},defaultVariants:{tone:`neutral`}});function l({className:r,tone:i,...a}){return/* @__PURE__ */ (0,n.jsx)(t.Toast.Root,{"data-slot":`toast`,className:e.cn(c({tone:i}),r),...a})}function u({className:r,...i}){return/* @__PURE__ */ (0,n.jsx)(t.Toast.Title,{"data-slot":`toast-title`,className:e.cn(`text-base font-semibold text-po-hi`,r),...i})}function d({className:r,...i}){return/* @__PURE__ */ (0,n.jsx)(t.Toast.Description,{"data-slot":`toast-description`,className:e.cn(`text-sm leading-relaxed text-po-dim`,r),...i})}function f(e){return/* @__PURE__ */ (0,n.jsx)(t.Toast.Action,{"data-slot":`toast-action`,...e})}function p({className:i,...o}){let s=(0,r.useT)();return/* @__PURE__ */ (0,n.jsx)(t.Toast.Close,{"data-slot":`toast-close`,"aria-label":s(`webComponents.toast.dismiss`,`dismiss`),className:e.cn(`inline-flex h-6 w-6 shrink-0 cursor-pointer items-center justify-center rounded text-po-faint transition-colors hover:text-po-hi`,i),...o,children:/* @__PURE__ */ (0,n.jsx)(a.X,{className:`h-3 w-3`})})}exports.Toast=l,exports.ToastAction=f,exports.ToastClose=p,exports.ToastDescription=d,exports.ToastProvider=o,exports.ToastTitle=u,exports.ToastViewport=s,exports.toastVariants=c;
|
|
2
2
|
//# sourceMappingURL=Toast.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Toast.cjs","names":["ToastPrimitive","cn","cva","CloseIcon","require_cn","radix_ui","react_jsx_runtime","class_variance_authority","lucide_react","ToastProvider","props","ToastViewport","className","toastVariants","Toast","ToastTitle","ToastDescription","ToastAction","ToastClose"],"sources":["../../../src/components/Toast.tsx"],"sourcesContent":["import { cva, type VariantProps } from 'class-variance-authority';\nimport { Toast as ToastPrimitive } from 'radix-ui';\nimport type { ComponentProps } from 'react';\n\nimport { CloseIcon } from '../icons/icons';\nimport { cn } from '../lib/cn';\nimport type { StatusTone } from '../types/tone';\n\n/**\n * A transient notice. Radix owns the part that is easy to get wrong: it\n * announces through a live region, pauses its timer on hover and on window\n * blur, and restores focus when it leaves. Mount one ToastProvider and one\n * ToastViewport per page.\n */\nexport function ToastProvider(props: ComponentProps<typeof ToastPrimitive.Provider>) {\n return <ToastPrimitive.Provider {...props} />;\n}\n\nexport function ToastViewport({ className, ...props }: ComponentProps<typeof ToastPrimitive.Viewport>) {\n return (\n <ToastPrimitive.Viewport\n data-slot=\"toast-viewport\"\n className={cn('fixed right-4 bottom-4 z-50 flex w-[360px] max-w-full flex-col gap-2 outline-none', className)}\n {...props}\n />\n );\n}\n\nexport const toastVariants = cva(\n 'flex items-start gap-3 rounded-md border bg-po-panel px-3 py-2.5 shadow-2xl data-[state=open]:animate-po-rise',\n {\n variants: {\n tone: {\n neutral: 'border-po-border',\n running: 'border-po-edge-yellow',\n ok: 'border-po-edge-green',\n error: 'border-po-edge-red',\n info: 'border-po-edge-blue',\n accent: 'border-po-edge-magenta',\n } satisfies Record<StatusTone, string>,\n },\n defaultVariants: { tone: 'neutral' },\n },\n);\n\nexport interface ToastProps extends ComponentProps<typeof ToastPrimitive.Root>, VariantProps<typeof toastVariants> {}\n\nexport function Toast({ className, tone, ...props }: ToastProps) {\n return <ToastPrimitive.Root data-slot=\"toast\" className={cn(toastVariants({ tone }), className)} {...props} />;\n}\n\nexport function ToastTitle({ className, ...props }: ComponentProps<typeof ToastPrimitive.Title>) {\n return (\n <ToastPrimitive.Title\n data-slot=\"toast-title\"\n className={cn('text-base font-semibold text-po-hi', className)}\n {...props}\n />\n );\n}\n\nexport function ToastDescription({ className, ...props }: ComponentProps<typeof ToastPrimitive.Description>) {\n return (\n <ToastPrimitive.Description\n data-slot=\"toast-description\"\n className={cn('text-sm leading-relaxed text-po-dim', className)}\n {...props}\n />\n );\n}\n\nexport function ToastAction(props: ComponentProps<typeof ToastPrimitive.Action>) {\n return <ToastPrimitive.Action data-slot=\"toast-action\" {...props} />;\n}\n\nexport function ToastClose({ className, ...props }: ComponentProps<typeof ToastPrimitive.Close>) {\n return (\n <ToastPrimitive.Close\n data-slot=\"toast-close\"\n aria-label
|
|
1
|
+
{"version":3,"file":"Toast.cjs","names":["ToastPrimitive","cn","cva","useT","CloseIcon","require_cn","radix_ui","react_jsx_runtime","_agimon_ai_po_core_web","class_variance_authority","lucide_react","ToastProvider","props","ToastViewport","className","toastVariants","Toast","ToastTitle","ToastDescription","ToastAction","ToastClose","t"],"sources":["../../../src/components/Toast.tsx"],"sourcesContent":["import { useT } from '@agimon-ai/po-core/web';\nimport { cva, type VariantProps } from 'class-variance-authority';\nimport { Toast as ToastPrimitive } from 'radix-ui';\nimport type { ComponentProps } from 'react';\n\nimport { CloseIcon } from '../icons/icons';\nimport { cn } from '../lib/cn';\nimport type { StatusTone } from '../types/tone';\n\n/**\n * A transient notice. Radix owns the part that is easy to get wrong: it\n * announces through a live region, pauses its timer on hover and on window\n * blur, and restores focus when it leaves. Mount one ToastProvider and one\n * ToastViewport per page.\n */\nexport function ToastProvider(props: ComponentProps<typeof ToastPrimitive.Provider>) {\n return <ToastPrimitive.Provider {...props} />;\n}\n\nexport function ToastViewport({ className, ...props }: ComponentProps<typeof ToastPrimitive.Viewport>) {\n return (\n <ToastPrimitive.Viewport\n data-slot=\"toast-viewport\"\n className={cn('fixed right-4 bottom-4 z-50 flex w-[360px] max-w-full flex-col gap-2 outline-none', className)}\n {...props}\n />\n );\n}\n\nexport const toastVariants = cva(\n 'flex items-start gap-3 rounded-md border bg-po-panel px-3 py-2.5 shadow-2xl data-[state=open]:animate-po-rise',\n {\n variants: {\n tone: {\n neutral: 'border-po-border',\n running: 'border-po-edge-yellow',\n ok: 'border-po-edge-green',\n error: 'border-po-edge-red',\n info: 'border-po-edge-blue',\n accent: 'border-po-edge-magenta',\n } satisfies Record<StatusTone, string>,\n },\n defaultVariants: { tone: 'neutral' },\n },\n);\n\nexport interface ToastProps extends ComponentProps<typeof ToastPrimitive.Root>, VariantProps<typeof toastVariants> {}\n\nexport function Toast({ className, tone, ...props }: ToastProps) {\n return <ToastPrimitive.Root data-slot=\"toast\" className={cn(toastVariants({ tone }), className)} {...props} />;\n}\n\nexport function ToastTitle({ className, ...props }: ComponentProps<typeof ToastPrimitive.Title>) {\n return (\n <ToastPrimitive.Title\n data-slot=\"toast-title\"\n className={cn('text-base font-semibold text-po-hi', className)}\n {...props}\n />\n );\n}\n\nexport function ToastDescription({ className, ...props }: ComponentProps<typeof ToastPrimitive.Description>) {\n return (\n <ToastPrimitive.Description\n data-slot=\"toast-description\"\n className={cn('text-sm leading-relaxed text-po-dim', className)}\n {...props}\n />\n );\n}\n\nexport function ToastAction(props: ComponentProps<typeof ToastPrimitive.Action>) {\n return <ToastPrimitive.Action data-slot=\"toast-action\" {...props} />;\n}\n\nexport function ToastClose({ className, ...props }: ComponentProps<typeof ToastPrimitive.Close>) {\n const t = useT();\n return (\n <ToastPrimitive.Close\n data-slot=\"toast-close\"\n aria-label={t('webComponents.toast.dismiss', 'dismiss')}\n className={cn(\n 'inline-flex h-6 w-6 shrink-0 cursor-pointer items-center justify-center rounded text-po-faint transition-colors hover:text-po-hi',\n className,\n )}\n {...props}\n >\n <CloseIcon className=\"h-3 w-3\" />\n </ToastPrimitive.Close>\n );\n}\n"],"mappings":"A,4NAeA,SAAgBW,EAAc,EAAuD,CACnF,MAAO,iBAAA,EAAAJ,EAAA,IAAA,CAACP,EAAAA,MAAe,SAAhB,CAAyB,GAAIY,CAAQ,CAAA,CAC9C,CAEA,SAAgBC,EAAc,CAAE,YAAW,GAAGD,GAAyD,CACrG,MACE,iBAAA,EAAAL,EAAA,IAAA,CAACP,EAAAA,MAAe,SAAhB,CACE,YAAU,iBACV,UAAWC,EAAAA,GAAG,oFAAqFa,CAAS,EAC5G,GAAIF,CACL,CAAA,CAEL,CAEA,MAAaG,GAAA,EAAgBb,EAAAA,IAAAA,CAC3B,gHACA,CACE,SAAU,CACR,KAAM,CACJ,QAAS,mBACT,QAAS,wBACT,GAAI,uBACJ,MAAO,qBACP,KAAM,sBACN,OAAQ,wBACV,CACF,EACA,gBAAiB,CAAE,KAAM,SAAU,CACrC,CACF,EAIA,SAAgBc,EAAM,CAAE,YAAW,OAAM,GAAGJ,GAAqB,CAC/D,MAAO,iBAAA,EAAAL,EAAA,IAAA,CAACP,EAAAA,MAAe,KAAhB,CAAqB,YAAU,QAAQ,UAAWC,EAAAA,GAAGc,EAAc,CAAE,MAAK,CAAC,EAAGD,CAAS,EAAG,GAAIF,CAAQ,CAAA,CAC/G,CAEA,SAAgBK,EAAW,CAAE,YAAW,GAAGL,GAAsD,CAC/F,MACE,iBAAA,EAAAL,EAAA,IAAA,CAACP,EAAAA,MAAe,MAAhB,CACE,YAAU,cACV,UAAWC,EAAAA,GAAG,qCAAsCa,CAAS,EAC7D,GAAIF,CACL,CAAA,CAEL,CAEA,SAAgBM,EAAiB,CAAE,YAAW,GAAGN,GAA4D,CAC3G,MACE,iBAAA,EAAAL,EAAA,IAAA,CAACP,EAAAA,MAAe,YAAhB,CACE,YAAU,oBACV,UAAWC,EAAAA,GAAG,sCAAuCa,CAAS,EAC9D,GAAIF,CACL,CAAA,CAEL,CAEA,SAAgBO,EAAY,EAAqD,CAC/E,MAAO,iBAAA,EAAAZ,EAAA,IAAA,CAACP,EAAAA,MAAe,OAAhB,CAAuB,YAAU,eAAe,GAAIY,CAAQ,CAAA,CACrE,CAEA,SAAgBQ,EAAW,CAAE,YAAW,GAAGR,GAAsD,CAC/F,IAAMS,GAAA,EAAIlB,EAAAA,KAAAA,CAAK,EACf,MACE,iBAAA,EAAAI,EAAA,IAAA,CAACP,EAAAA,MAAe,MAAhB,CACE,YAAU,cACV,aAAYqB,EAAE,8BAA+B,SAAS,EACtD,UAAWpB,EAAAA,GACT,mIACAa,CACF,EACA,GAAIF,EAEJ,SAAA,iBAAA,EAAAL,EAAA,IAAA,CAACH,EAAAA,EAAD,CAAW,UAAU,SAAW,CAAA,CACZ,CAAA,CAE1B,C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Toast.d.mts","names":["ToastPrimitive","Toast"],"sources":["../../../src/components/Toast.tsx"],"mappings":";;;;;;;;;;wBAegB,cAAc,OAAO,sBAAsBA,MAAe,4BAAS,IAAA;wBAInE,gBAAgB,cAAc,SAAS,sBAAsBA,MAAe,4BAAS,IAAA;qBAUxF,gBAAa;;6CAezB;iBAEgB,mBAAmB,sBAAsBA,MAAe,OAAO,oBAAoB;iBAEpFC,UAAQ,WAAW,SAAS,SAAS,6BAAU,IAAA;wBAI/C,aAAa,cAAc,SAAS,sBAAsBD,MAAe,yBAAM,IAAA;wBAU/E,mBAAmB,cAAc,SAAS,sBAAsBA,MAAe,+BAAY,IAAA;wBAU3F,YAAY,OAAO,sBAAsBA,MAAe,0BAAO,IAAA;wBAI/D,aAAa,cAAc,SAAS,sBAAsBA,MAAe,yBAAM,IAAA"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{CloseIcon as e}from"../icons/icons.mjs";import{cn as t}from"../lib/cn.mjs";import{Toast as n}from"radix-ui";import{jsx as r}from"react/jsx-runtime";import{useT as i}from"@agimon-ai/po-core/web";import{cva as a}from"class-variance-authority";function o(e){return/* @__PURE__ */ r(n.Provider,{...e})}function s({className:e,...i}){return/* @__PURE__ */ r(n.Viewport,{"data-slot":`toast-viewport`,className:t(`fixed right-4 bottom-4 z-50 flex w-[360px] max-w-full flex-col gap-2 outline-none`,e),...i})}const c=a(`flex items-start gap-3 rounded-md border bg-po-panel px-3 py-2.5 shadow-2xl data-[state=open]:animate-po-rise`,{variants:{tone:{neutral:`border-po-border`,running:`border-po-edge-yellow`,ok:`border-po-edge-green`,error:`border-po-edge-red`,info:`border-po-edge-blue`,accent:`border-po-edge-magenta`}},defaultVariants:{tone:`neutral`}});function l({className:e,tone:i,...a}){return/* @__PURE__ */ r(n.Root,{"data-slot":`toast`,className:t(c({tone:i}),e),...a})}function u({className:e,...i}){return/* @__PURE__ */ r(n.Title,{"data-slot":`toast-title`,className:t(`text-base font-semibold text-po-hi`,e),...i})}function d({className:e,...i}){return/* @__PURE__ */ r(n.Description,{"data-slot":`toast-description`,className:t(`text-sm leading-relaxed text-po-dim`,e),...i})}function f(e){return/* @__PURE__ */ r(n.Action,{"data-slot":`toast-action`,...e})}function p({className:a,...o}){let s=i();return/* @__PURE__ */ r(n.Close,{"data-slot":`toast-close`,"aria-label":s(`webComponents.toast.dismiss`,`dismiss`),className:t(`inline-flex h-6 w-6 shrink-0 cursor-pointer items-center justify-center rounded text-po-faint transition-colors hover:text-po-hi`,a),...o,children:/* @__PURE__ */ r(e,{className:`h-3 w-3`})})}export{l as Toast,f as ToastAction,p as ToastClose,d as ToastDescription,o as ToastProvider,u as ToastTitle,s as ToastViewport,c as toastVariants};
|
|
2
|
+
//# sourceMappingURL=Toast.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Toast.mjs","names":["ToastPrimitive","Toast","ToastProvider","Toast","props","ToastViewport","cn","className","toastVariants","cva","Toast$1","ToastTitle","ToastDescription","ToastAction","ToastClose","t","useT","CloseIcon"],"sources":["../../../src/components/Toast.tsx"],"sourcesContent":["import { useT } from '@agimon-ai/po-core/web';\nimport { cva, type VariantProps } from 'class-variance-authority';\nimport { Toast as ToastPrimitive } from 'radix-ui';\nimport type { ComponentProps } from 'react';\n\nimport { CloseIcon } from '../icons/icons';\nimport { cn } from '../lib/cn';\nimport type { StatusTone } from '../types/tone';\n\n/**\n * A transient notice. Radix owns the part that is easy to get wrong: it\n * announces through a live region, pauses its timer on hover and on window\n * blur, and restores focus when it leaves. Mount one ToastProvider and one\n * ToastViewport per page.\n */\nexport function ToastProvider(props: ComponentProps<typeof ToastPrimitive.Provider>) {\n return <ToastPrimitive.Provider {...props} />;\n}\n\nexport function ToastViewport({ className, ...props }: ComponentProps<typeof ToastPrimitive.Viewport>) {\n return (\n <ToastPrimitive.Viewport\n data-slot=\"toast-viewport\"\n className={cn('fixed right-4 bottom-4 z-50 flex w-[360px] max-w-full flex-col gap-2 outline-none', className)}\n {...props}\n />\n );\n}\n\nexport const toastVariants = cva(\n 'flex items-start gap-3 rounded-md border bg-po-panel px-3 py-2.5 shadow-2xl data-[state=open]:animate-po-rise',\n {\n variants: {\n tone: {\n neutral: 'border-po-border',\n running: 'border-po-edge-yellow',\n ok: 'border-po-edge-green',\n error: 'border-po-edge-red',\n info: 'border-po-edge-blue',\n accent: 'border-po-edge-magenta',\n } satisfies Record<StatusTone, string>,\n },\n defaultVariants: { tone: 'neutral' },\n },\n);\n\nexport interface ToastProps extends ComponentProps<typeof ToastPrimitive.Root>, VariantProps<typeof toastVariants> {}\n\nexport function Toast({ className, tone, ...props }: ToastProps) {\n return <ToastPrimitive.Root data-slot=\"toast\" className={cn(toastVariants({ tone }), className)} {...props} />;\n}\n\nexport function ToastTitle({ className, ...props }: ComponentProps<typeof ToastPrimitive.Title>) {\n return (\n <ToastPrimitive.Title\n data-slot=\"toast-title\"\n className={cn('text-base font-semibold text-po-hi', className)}\n {...props}\n />\n );\n}\n\nexport function ToastDescription({ className, ...props }: ComponentProps<typeof ToastPrimitive.Description>) {\n return (\n <ToastPrimitive.Description\n data-slot=\"toast-description\"\n className={cn('text-sm leading-relaxed text-po-dim', className)}\n {...props}\n />\n );\n}\n\nexport function ToastAction(props: ComponentProps<typeof ToastPrimitive.Action>) {\n return <ToastPrimitive.Action data-slot=\"toast-action\" {...props} />;\n}\n\nexport function ToastClose({ className, ...props }: ComponentProps<typeof ToastPrimitive.Close>) {\n const t = useT();\n return (\n <ToastPrimitive.Close\n data-slot=\"toast-close\"\n aria-label={t('webComponents.toast.dismiss', 'dismiss')}\n className={cn(\n 'inline-flex h-6 w-6 shrink-0 cursor-pointer items-center justify-center rounded text-po-faint transition-colors hover:text-po-hi',\n className,\n )}\n {...props}\n >\n <CloseIcon className=\"h-3 w-3\" />\n </ToastPrimitive.Close>\n );\n}\n"],"mappings":"A,wPAeA,SAAgBE,EAAc,EAAuD,CACnF,MAAO,kBAACF,EAAe,SAAhB,CAAyB,GAAII,CAAQ,CAAA,CAC9C,CAEA,SAAgBC,EAAc,CAAE,YAAW,GAAGD,GAAyD,CACrG,MACE,kBAACJ,EAAe,SAAhB,CACE,YAAU,iBACV,UAAWM,EAAG,oFAAqFC,CAAS,EAC5G,GAAIH,CACL,CAAA,CAEL,CAEA,MAAaI,EAAgBC,EAC3B,gHACA,CACE,SAAU,CACR,KAAM,CACJ,QAAS,mBACT,QAAS,wBACT,GAAI,uBACJ,MAAO,qBACP,KAAM,sBACN,OAAQ,wBACV,CACF,EACA,gBAAiB,CAAE,KAAM,SAAU,CACrC,CACF,EAIA,SAAgBR,EAAM,CAAE,YAAW,OAAM,GAAGG,GAAqB,CAC/D,MAAO,kBAACJ,EAAe,KAAhB,CAAqB,YAAU,QAAQ,UAAWM,EAAGE,EAAc,CAAE,MAAK,CAAC,EAAGD,CAAS,EAAG,GAAIH,CAAQ,CAAA,CAC/G,CAEA,SAAgBO,EAAW,CAAE,YAAW,GAAGP,GAAsD,CAC/F,MACE,kBAACJ,EAAe,MAAhB,CACE,YAAU,cACV,UAAWM,EAAG,qCAAsCC,CAAS,EAC7D,GAAIH,CACL,CAAA,CAEL,CAEA,SAAgBQ,EAAiB,CAAE,YAAW,GAAGR,GAA4D,CAC3G,MACE,kBAACJ,EAAe,YAAhB,CACE,YAAU,oBACV,UAAWM,EAAG,sCAAuCC,CAAS,EAC9D,GAAIH,CACL,CAAA,CAEL,CAEA,SAAgBS,EAAY,EAAqD,CAC/E,MAAO,kBAACb,EAAe,OAAhB,CAAuB,YAAU,eAAe,GAAII,CAAQ,CAAA,CACrE,CAEA,SAAgBU,EAAW,CAAE,YAAW,GAAGV,GAAsD,CAC/F,IAAMW,EAAIC,EAAK,EACf,MACE,kBAAChB,EAAe,MAAhB,CACE,YAAU,cACV,aAAYe,EAAE,8BAA+B,SAAS,EACtD,UAAWT,EACT,mIACAC,CACF,EACA,GAAIH,EAEJ,SAAA,kBAACa,EAAD,CAAW,UAAU,SAAW,CAAA,CACZ,CAAA,CAE1B,C"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const e=require("../lib/cn.cjs");let t=require("react/jsx-runtime");function
|
|
1
|
+
const e=require("../lib/cn.cjs");let t=require("react/jsx-runtime"),n=require("@agimon-ai/po-core/web");function r({path:r,onOpen:i,className:a,"data-testid":o=`tool-path`,...s}){let c=(0,n.useT)();return i===void 0?/* @__PURE__ */ (0,t.jsx)(`span`,{"data-slot":`tool-path`,"data-testid":o,className:e.cn(`inline-block max-w-full min-w-0 truncate align-bottom text-po-text`,a),...s,children:r}):/* @__PURE__ */ (0,t.jsx)(`button`,{type:`button`,"data-slot":`tool-path`,"data-testid":o,title:c(`webComponents.fileLink.open`,`open {path}`,{path:r}),onClick:i,className:e.cn(`min-h-6 max-w-full min-w-0 cursor-pointer truncate text-left text-po-text hover:text-po-blue hover:underline`,a),...s,children:r})}exports.ToolPathLink=r;
|
|
2
2
|
//# sourceMappingURL=ToolPathLink.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ToolPathLink.cjs","names":["cn","require_cn","react_jsx_runtime","ToolPathLink","testId","props","onOpen","className","path"],"sources":["../../../src/components/ToolPathLink.tsx"],"sourcesContent":["import { cn } from '../lib/cn';\n\n/**\n * The file path in a tool call's header, as a link when something can open it.\n *\n * A read, a write and an edit all put a path in the same place, and a reader\n * who wants to see that file should not have to go looking for it in a file\n * list. Whether the path can be opened is not this component's business: the\n * host resolves it against whatever plugin owns files, and hands the answer\n * down as `onOpen`. Without one the path stays exactly what it was, plain\n * text, because a link that opens nothing is worse than no link.\n */\n\nexport interface ToolPathLinkProps {\n path: string;\n /** Opens the file; omitted when nothing installed can show it. */\n onOpen?: () => void;\n className?: string;\n /** Defaults to `tool-path`, which is how a test finds the link inside a call header. */\n 'data-testid'?: string;\n}\n\nexport function ToolPathLink({\n path,\n onOpen,\n className,\n 'data-testid': testId = 'tool-path',\n ...props\n}: ToolPathLinkProps) {\n if (onOpen === undefined) {\n return (\n <span\n data-slot=\"tool-path\"\n data-testid={testId}\n className={cn('inline-block max-w-full min-w-0 truncate align-bottom text-po-text', className)}\n {...props}\n >\n {path}\n </span>\n );\n }\n return (\n <button\n type=\"button\"\n data-slot=\"tool-path\"\n data-testid={testId}\n title={
|
|
1
|
+
{"version":3,"file":"ToolPathLink.cjs","names":["useT","cn","require_cn","react_jsx_runtime","_agimon_ai_po_core_web","ToolPathLink","testId","props","t","onOpen","className","path"],"sources":["../../../src/components/ToolPathLink.tsx"],"sourcesContent":["import { useT } from '@agimon-ai/po-core/web';\n\nimport { cn } from '../lib/cn';\n\n/**\n * The file path in a tool call's header, as a link when something can open it.\n *\n * A read, a write and an edit all put a path in the same place, and a reader\n * who wants to see that file should not have to go looking for it in a file\n * list. Whether the path can be opened is not this component's business: the\n * host resolves it against whatever plugin owns files, and hands the answer\n * down as `onOpen`. Without one the path stays exactly what it was, plain\n * text, because a link that opens nothing is worse than no link.\n */\n\nexport interface ToolPathLinkProps {\n path: string;\n /** Opens the file; omitted when nothing installed can show it. */\n onOpen?: () => void;\n className?: string;\n /** Defaults to `tool-path`, which is how a test finds the link inside a call header. */\n 'data-testid'?: string;\n}\n\nexport function ToolPathLink({\n path,\n onOpen,\n className,\n 'data-testid': testId = 'tool-path',\n ...props\n}: ToolPathLinkProps) {\n const t = useT();\n if (onOpen === undefined) {\n return (\n <span\n data-slot=\"tool-path\"\n data-testid={testId}\n className={cn('inline-block max-w-full min-w-0 truncate align-bottom text-po-text', className)}\n {...props}\n >\n {path}\n </span>\n );\n }\n return (\n <button\n type=\"button\"\n data-slot=\"tool-path\"\n data-testid={testId}\n title={t('webComponents.fileLink.open', 'open {path}', { path })}\n onClick={onOpen}\n className={cn(\n 'min-h-6 max-w-full min-w-0 cursor-pointer truncate text-left text-po-text hover:text-po-blue hover:underline',\n className,\n )}\n {...props}\n >\n {path}\n </button>\n );\n}\n"],"mappings":"A,wGAwBA,SAAgBK,EAAa,CAC3B,OACA,SACA,YACA,cAAeC,EAAS,YACxB,GAAGC,GACiB,CACpB,IAAMC,GAAA,EAAIR,EAAAA,KAAAA,CAAK,EAaf,OAZIS,IAAW,IAAA,GAEX,iBAAA,EAAAN,EAAA,IAAA,CAAC,OAAD,CACE,YAAU,YACV,cAAaG,EACb,UAAWL,EAAAA,GAAG,qEAAsES,CAAS,EAC7F,GAAIH,EAEH,SAAAI,CACG,CAAA,EAIR,iBAAA,EAAAR,EAAA,IAAA,CAAC,SAAD,CACE,KAAK,SACL,YAAU,YACV,cAAaG,EACb,MAAOE,EAAE,8BAA+B,cAAe,CAAE,MAAK,CAAC,EAC/D,QAASC,EACT,UAAWR,EAAAA,GACT,+GACAS,CACF,EACA,GAAIH,EAEH,SAAAI,CACK,CAAA,CAEZ,C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ToolPathLink.d.mts","names":[],"sources":["../../../src/components/ToolPathLink.tsx"],"mappings":";;;;;;;;;;;iBAeiB;EACf;;EAEA;EACA;;EAEA;;wBAGc,eACd,MACA,QACA,0BACe,WACZ,SACF,oCAAiB,IAAA"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{cn as e}from"../lib/cn.mjs";import{jsx as t}from"react/jsx-runtime";import{useT as n}from"@agimon-ai/po-core/web";function r({path:r,onOpen:i,className:a,"data-testid":o=`tool-path`,...s}){let c=n();return i===void 0?/* @__PURE__ */ t(`span`,{"data-slot":`tool-path`,"data-testid":o,className:e(`inline-block max-w-full min-w-0 truncate align-bottom text-po-text`,a),...s,children:r}):/* @__PURE__ */ t(`button`,{type:`button`,"data-slot":`tool-path`,"data-testid":o,title:c(`webComponents.fileLink.open`,`open {path}`,{path:r}),onClick:i,className:e(`min-h-6 max-w-full min-w-0 cursor-pointer truncate text-left text-po-text hover:text-po-blue hover:underline`,a),...s,children:r})}export{r as ToolPathLink};
|
|
2
|
+
//# sourceMappingURL=ToolPathLink.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ToolPathLink.mjs","names":["ToolPathLink","testId","props","t","useT","onOpen","cn","className","path"],"sources":["../../../src/components/ToolPathLink.tsx"],"sourcesContent":["import { useT } from '@agimon-ai/po-core/web';\n\nimport { cn } from '../lib/cn';\n\n/**\n * The file path in a tool call's header, as a link when something can open it.\n *\n * A read, a write and an edit all put a path in the same place, and a reader\n * who wants to see that file should not have to go looking for it in a file\n * list. Whether the path can be opened is not this component's business: the\n * host resolves it against whatever plugin owns files, and hands the answer\n * down as `onOpen`. Without one the path stays exactly what it was, plain\n * text, because a link that opens nothing is worse than no link.\n */\n\nexport interface ToolPathLinkProps {\n path: string;\n /** Opens the file; omitted when nothing installed can show it. */\n onOpen?: () => void;\n className?: string;\n /** Defaults to `tool-path`, which is how a test finds the link inside a call header. */\n 'data-testid'?: string;\n}\n\nexport function ToolPathLink({\n path,\n onOpen,\n className,\n 'data-testid': testId = 'tool-path',\n ...props\n}: ToolPathLinkProps) {\n const t = useT();\n if (onOpen === undefined) {\n return (\n <span\n data-slot=\"tool-path\"\n data-testid={testId}\n className={cn('inline-block max-w-full min-w-0 truncate align-bottom text-po-text', className)}\n {...props}\n >\n {path}\n </span>\n );\n }\n return (\n <button\n type=\"button\"\n data-slot=\"tool-path\"\n data-testid={testId}\n title={t('webComponents.fileLink.open', 'open {path}', { path })}\n onClick={onOpen}\n className={cn(\n 'min-h-6 max-w-full min-w-0 cursor-pointer truncate text-left text-po-text hover:text-po-blue hover:underline',\n className,\n )}\n {...props}\n >\n {path}\n </button>\n );\n}\n"],"mappings":"A,yHAwBA,SAAgBA,EAAa,CAC3B,OACA,SACA,YACA,cAAeC,EAAS,YACxB,GAAGC,GACiB,CACpB,IAAMC,EAAIC,EAAK,EAaf,OAZIC,IAAW,IAAA,GAEX,kBAAC,OAAD,CACE,YAAU,YACV,cAAaJ,EACb,UAAWK,EAAG,qEAAsEC,CAAS,EAC7F,GAAIL,EAEH,SAAAM,CACG,CAAA,EAIR,kBAAC,SAAD,CACE,KAAK,SACL,YAAU,YACV,cAAaP,EACb,MAAOE,EAAE,8BAA+B,cAAe,CAAE,MAAK,CAAC,EAC/D,QAASE,EACT,UAAWC,EACT,+GACAC,CACF,EACA,GAAIL,EAEH,SAAAM,CACK,CAAA,CAEZ,C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tooltip.cjs","names":["TooltipPrimitive","cn","require_cn","radix_ui","react_jsx_runtime","TooltipProvider","props","Tooltip","TooltipTrigger","TooltipContent","className"],"sources":["../../../src/components/Tooltip.tsx"],"sourcesContent":["import { Tooltip as TooltipPrimitive } from 'radix-ui';\nimport type { ComponentProps } from 'react';\n\nimport { cn } from '../lib/cn';\n\n/** Mount once near the root; every Tooltip below shares its delay. */\nexport function TooltipProvider({ delayDuration = 300, ...props }: ComponentProps<typeof TooltipPrimitive.Provider>) {\n return <TooltipPrimitive.Provider data-slot=\"tooltip-provider\" delayDuration={delayDuration} {...props} />;\n}\n\nexport function Tooltip(props: ComponentProps<typeof TooltipPrimitive.Root>) {\n return <TooltipPrimitive.Root data-slot=\"tooltip\" {...props} />;\n}\n\nexport function TooltipTrigger(props: ComponentProps<typeof TooltipPrimitive.Trigger>) {\n return <TooltipPrimitive.Trigger data-slot=\"tooltip-trigger\" {...props} />;\n}\n\nexport function TooltipContent({\n className,\n sideOffset = 4,\n children,\n ...props\n}: ComponentProps<typeof TooltipPrimitive.Content>) {\n return (\n <TooltipPrimitive.Portal>\n <TooltipPrimitive.Content\n data-slot=\"tooltip-content\"\n sideOffset={sideOffset}\n className={cn(\n 'z-50 rounded border border-po-border bg-po-deep px-2 py-1 text-sm text-po-text shadow-lg data-[state=delayed-open]:animate-po-fade',\n className,\n )}\n {...props}\n >\n {children}\n </TooltipPrimitive.Content>\n </TooltipPrimitive.Portal>\n );\n}\n"],"mappings":"0FAMA,SAAgBK,EAAgB,CAAE,gBAAgB,IAAK,GAAGC,GAA2D,CACnH,MAAO,iBAAA,EAAAF,EAAA,IAAA,CAACJ,EAAAA,QAAiB,SAAlB,CAA2B,YAAU,mBAAkC,gBAAe,GAAIM,CAAQ,CAAA,CAC3G,CAEA,SAAgBC,EAAQ,EAAqD,CAC3E,MAAO,iBAAA,EAAAH,EAAA,IAAA,CAACJ,EAAAA,QAAiB,KAAlB,CAAuB,YAAU,UAAU,GAAIM,CAAQ,CAAA,CAChE,CAEA,SAAgBE,EAAe,EAAwD,CACrF,MAAO,iBAAA,EAAAJ,EAAA,IAAA,CAACJ,EAAAA,QAAiB,QAAlB,CAA0B,YAAU,kBAAkB,GAAIM,CAAQ,CAAA,CAC3E,CAEA,SAAgBG,EAAe,CAC7B,YACA,aAAa,EACb,WACA,GAAGH,GAC+C,CAClD,MACE,iBAAA,EAAAF,EAAA,IAAA,CAACJ,EAAAA,QAAiB,OAAlB,CAAA,SACE,iBAAA,EAAAI,EAAA,IAAA,CAACJ,EAAAA,QAAiB,QAAlB,CACE,YAAU,kBACE,aACZ,UAAWC,EAAAA,GACT,qIACAS,CACF,EACA,GAAIJ,EAEH,UACuB,CAAA,CACH,CAAA,CAE7B"}
|
|
1
|
+
{"version":3,"file":"Tooltip.cjs","names":["TooltipPrimitive","cn","require_cn","radix_ui","react_jsx_runtime","TooltipProvider","props","Tooltip","TooltipTrigger","TooltipContent","className"],"sources":["../../../src/components/Tooltip.tsx"],"sourcesContent":["import { Tooltip as TooltipPrimitive } from 'radix-ui';\nimport type { ComponentProps } from 'react';\n\nimport { cn } from '../lib/cn';\n\n/** Mount once near the root; every Tooltip below shares its delay. */\nexport function TooltipProvider({ delayDuration = 300, ...props }: ComponentProps<typeof TooltipPrimitive.Provider>) {\n return <TooltipPrimitive.Provider data-slot=\"tooltip-provider\" delayDuration={delayDuration} {...props} />;\n}\n\nexport function Tooltip(props: ComponentProps<typeof TooltipPrimitive.Root>) {\n return <TooltipPrimitive.Root data-slot=\"tooltip\" {...props} />;\n}\n\nexport function TooltipTrigger(props: ComponentProps<typeof TooltipPrimitive.Trigger>) {\n return <TooltipPrimitive.Trigger data-slot=\"tooltip-trigger\" {...props} />;\n}\n\nexport function TooltipContent({\n className,\n sideOffset = 4,\n children,\n ...props\n}: ComponentProps<typeof TooltipPrimitive.Content>) {\n return (\n <TooltipPrimitive.Portal>\n <TooltipPrimitive.Content\n data-slot=\"tooltip-content\"\n sideOffset={sideOffset}\n className={cn(\n 'z-50 rounded border border-po-border bg-po-deep px-2 py-1 text-sm text-po-text shadow-lg data-[state=delayed-open]:animate-po-fade',\n className,\n )}\n {...props}\n >\n {children}\n </TooltipPrimitive.Content>\n </TooltipPrimitive.Portal>\n );\n}\n"],"mappings":"A,0FAMA,SAAgBK,EAAgB,CAAE,gBAAgB,IAAK,GAAGC,GAA2D,CACnH,MAAO,iBAAA,EAAAF,EAAA,IAAA,CAACJ,EAAAA,QAAiB,SAAlB,CAA2B,YAAU,mBAAkC,gBAAe,GAAIM,CAAQ,CAAA,CAC3G,CAEA,SAAgBC,EAAQ,EAAqD,CAC3E,MAAO,iBAAA,EAAAH,EAAA,IAAA,CAACJ,EAAAA,QAAiB,KAAlB,CAAuB,YAAU,UAAU,GAAIM,CAAQ,CAAA,CAChE,CAEA,SAAgBE,EAAe,EAAwD,CACrF,MAAO,iBAAA,EAAAJ,EAAA,IAAA,CAACJ,EAAAA,QAAiB,QAAlB,CAA0B,YAAU,kBAAkB,GAAIM,CAAQ,CAAA,CAC3E,CAEA,SAAgBG,EAAe,CAC7B,YACA,aAAa,EACb,WACA,GAAGH,GAC+C,CAClD,MACE,iBAAA,EAAAF,EAAA,IAAA,CAACJ,EAAAA,QAAiB,OAAlB,CAAA,SACE,iBAAA,EAAAI,EAAA,IAAA,CAACJ,EAAAA,QAAiB,QAAlB,CACE,YAAU,kBACE,aACZ,UAAWC,EAAAA,GACT,qIACAS,CACF,EACA,GAAIJ,EAEH,UACuB,CAAA,CACH,CAAA,CAE7B,C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Tooltip.d.mts","names":["TooltipPrimitive","Tooltip"],"sources":["../../../src/components/Tooltip.tsx"],"mappings":";;;;wBAMgB,kBAAkB,kBAAwB,SAAS,sBAAsBA,QAAiB,4BAAS,IAAA;iBAInGC,UAAQ,OAAO,sBAAsBD,QAAiB,wBAAK,IAAA;wBAI3D,eAAe,OAAO,sBAAsBA,QAAiB,2BAAQ,IAAA;wBAIrE,iBACd,WACA,YACA,aACG,SACF,sBAAsBA,QAAiB,2BAAQ,IAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Tooltip.mjs","names":["TooltipPrimitive","Tooltip","TooltipProvider","props","Tooltip","Tooltip$1","TooltipTrigger","TooltipContent","cn","className"],"sources":["../../../src/components/Tooltip.tsx"],"sourcesContent":["import { Tooltip as TooltipPrimitive } from 'radix-ui';\nimport type { ComponentProps } from 'react';\n\nimport { cn } from '../lib/cn';\n\n/** Mount once near the root; every Tooltip below shares its delay. */\nexport function TooltipProvider({ delayDuration = 300, ...props }: ComponentProps<typeof TooltipPrimitive.Provider>) {\n return <TooltipPrimitive.Provider data-slot=\"tooltip-provider\" delayDuration={delayDuration} {...props} />;\n}\n\nexport function Tooltip(props: ComponentProps<typeof TooltipPrimitive.Root>) {\n return <TooltipPrimitive.Root data-slot=\"tooltip\" {...props} />;\n}\n\nexport function TooltipTrigger(props: ComponentProps<typeof TooltipPrimitive.Trigger>) {\n return <TooltipPrimitive.Trigger data-slot=\"tooltip-trigger\" {...props} />;\n}\n\nexport function TooltipContent({\n className,\n sideOffset = 4,\n children,\n ...props\n}: ComponentProps<typeof TooltipPrimitive.Content>) {\n return (\n <TooltipPrimitive.Portal>\n <TooltipPrimitive.Content\n data-slot=\"tooltip-content\"\n sideOffset={sideOffset}\n className={cn(\n 'z-50 rounded border border-po-border bg-po-deep px-2 py-1 text-sm text-po-text shadow-lg data-[state=delayed-open]:animate-po-fade',\n className,\n )}\n {...props}\n >\n {children}\n </TooltipPrimitive.Content>\n </TooltipPrimitive.Portal>\n );\n}\n"],"mappings":"A,8GAMA,SAAgBE,EAAgB,CAAE,gBAAgB,IAAK,GAAGC,GAA2D,CACnH,MAAO,kBAACH,EAAiB,SAAlB,CAA2B,YAAU,mBAAkC,gBAAe,GAAIG,CAAQ,CAAA,CAC3G,CAEA,SAAgBF,EAAQ,EAAqD,CAC3E,MAAO,kBAACD,EAAiB,KAAlB,CAAuB,YAAU,UAAU,GAAIG,CAAQ,CAAA,CAChE,CAEA,SAAgBG,EAAe,EAAwD,CACrF,MAAO,kBAACN,EAAiB,QAAlB,CAA0B,YAAU,kBAAkB,GAAIG,CAAQ,CAAA,CAC3E,CAEA,SAAgBI,EAAe,CAC7B,YACA,aAAa,EACb,WACA,GAAGJ,GAC+C,CAClD,MACE,kBAACH,EAAiB,OAAlB,CAAA,SACE,kBAACA,EAAiB,QAAlB,CACE,YAAU,kBACE,aACZ,UAAWQ,EACT,qIACAC,CACF,EACA,GAAIN,EAEH,UACuB,CAAA,CACH,CAAA,CAE7B,C"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
const e=require("./MediaViewerDialog.cjs");let t=require("react/jsx-runtime"),n=require("react"),r=require("@agimon-ai/po-core/web");function i({src:i,alt:a,title:o,renderReview:s,...c}){let[l,u]=(0,n.useState)(),d=()=>u(void 0),f=(0,r.useT)(),p=o||a||f(`webComponents.media.image`,`Image`);return/* @__PURE__ */ (0,t.jsxs)(t.Fragment,{children:[/* @__PURE__ */ (0,t.jsx)(`button`,{type:`button`,"data-viewable-image":!0,"aria-label":f(`webComponents.media.openFullScreen`,`Open {name} full screen`,{name:p}),onClick:()=>u({kind:`image`,title:p,url:i}),className:`max-w-full cursor-zoom-in self-start rounded focus-visible:ring-2 focus-visible:ring-po-blue focus-visible:outline-none`,children:/* @__PURE__ */ (0,t.jsx)(`img`,{...c,src:i,alt:a})}),/* @__PURE__ */ (0,t.jsx)(e.MediaViewerDialog,{media:l,onClose:d,review:l===void 0?void 0:s?.(l,d)})]})}exports.ViewableImage=i;
|
|
2
|
+
//# sourceMappingURL=ViewableImage.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ViewableImage.cjs","names":["useState","useT","MediaViewerDialog","require_MediaViewerDialog","react_jsx_runtime","react","_agimon_ai_po_core_web","ViewableImage","image","opened","setOpened","close","t","name","title","alt","src","renderReview"],"sources":["../../../src/components/ViewableImage.tsx"],"sourcesContent":["import { useT } from '@agimon-ai/po-core/web';\nimport { useState, type ComponentProps } from 'react';\n\nimport type { MarkdownMedia, MarkdownMediaReview } from '../lib/markdownMedia';\nimport { MediaViewerDialog } from './MediaViewerDialog';\n\nexport interface ViewableImageProps extends Omit<ComponentProps<'img'>, 'src' | 'alt' | 'title'> {\n src: string;\n alt: string;\n /** The viewer's heading; defaults to `alt`. */\n title?: string;\n /** Footer action for the opened picture (Author's \"Open in Author\"); without it the viewer only pans and zooms. */\n renderReview?: MarkdownMediaReview;\n}\n\n/**\n * A picture outside Markdown (a tool result, an attachment) that opens the same full-screen viewer on click.\n * `data-viewable-image` lets a host that frames pictures itself, such as an outputs gallery, find it and take\n * the click first.\n */\nexport function ViewableImage({ src, alt, title, renderReview, ...image }: ViewableImageProps) {\n const [opened, setOpened] = useState<MarkdownMedia>();\n const close = () => setOpened(undefined);\n const t = useT();\n const name = title || alt || t('webComponents.media.image', 'Image');\n return (\n <>\n <button\n type=\"button\"\n data-viewable-image\n aria-label={t('webComponents.media.openFullScreen', 'Open {name} full screen', { name })}\n onClick={() => setOpened({ kind: 'image', title: name, url: src })}\n className=\"max-w-full cursor-zoom-in self-start rounded focus-visible:ring-2 focus-visible:ring-po-blue focus-visible:outline-none\"\n >\n <img {...image} src={src} alt={alt} />\n </button>\n <MediaViewerDialog\n media={opened}\n onClose={close}\n review={opened === undefined ? undefined : renderReview?.(opened, close)}\n />\n </>\n );\n}\n"],"mappings":"A,qIAoBA,SAAgBO,EAAc,CAAE,MAAK,MAAK,QAAO,eAAc,GAAGC,GAA6B,CAC7F,GAAM,CAACC,EAAQC,IAAA,EAAaV,EAAAA,SAAAA,CAAwB,EAC9CW,MAAcD,EAAU,IAAA,EAAS,EACjCE,GAAA,EAAIX,EAAAA,KAAAA,CAAK,EACTY,EAAOC,GAASC,GAAOH,EAAE,4BAA6B,OAAO,EACnE,MACE,iBAAA,EAAAR,EAAA,KAAA,CAAAA,EAAA,SAAA,CAAA,SAAA,CACE,iBAAA,EAAAA,EAAA,IAAA,CAAC,SAAD,CACE,KAAK,SACL,sBAAA,GACA,aAAYQ,EAAE,qCAAsC,0BAA2B,CAAE,MAAK,CAAC,EACvF,YAAeF,EAAU,CAAE,KAAM,QAAS,MAAOG,EAAM,IAAKG,CAAI,CAAC,EACjE,UAAU,0HAEV,SAAA,iBAAA,EAAAZ,EAAA,IAAA,CAAC,MAAD,CAAK,GAAII,EAAY,MAAU,KAAM,CAAA,CAC/B,CAAA,EACR,iBAAA,EAAAJ,EAAA,IAAA,CAACF,EAAAA,kBAAD,CACE,MAAOO,EACP,QAASE,EACT,OAAQF,IAAW,IAAA,GAAY,IAAA,GAAYQ,IAAeR,EAAQE,CAAK,CACxE,CAAA,CACD,CAAA,CAAA,CAEN,C"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { MarkdownMediaReview } from "../lib/markdownMedia.mjs";
|
|
2
|
+
import { ComponentProps } from "react";
|
|
3
|
+
//#region src/components/ViewableImage.d.ts
|
|
4
|
+
export interface ViewableImageProps extends Omit<ComponentProps<'img'>, 'src' | 'alt' | 'title'> {
|
|
5
|
+
src: string;
|
|
6
|
+
alt: string;
|
|
7
|
+
/** The viewer's heading; defaults to `alt`. */
|
|
8
|
+
title?: string;
|
|
9
|
+
/** Footer action for the opened picture (Author's "Open in Author"); without it the viewer only pans and zooms. */
|
|
10
|
+
renderReview?: MarkdownMediaReview;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* A picture outside Markdown (a tool result, an attachment) that opens the same full-screen viewer on click.
|
|
14
|
+
* `data-viewable-image` lets a host that frames pictures itself, such as an outputs gallery, find it and take
|
|
15
|
+
* the click first.
|
|
16
|
+
*/
|
|
17
|
+
export declare function ViewableImage({ src, alt, title, renderReview, ...image }: ViewableImageProps): import("react").JSX.Element;
|
|
18
|
+
//#endregion
|
|
19
|
+
//# sourceMappingURL=ViewableImage.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ViewableImage.d.mts","names":[],"sources":["../../../src/components/ViewableImage.tsx"],"mappings":";;;iBAMiB,2BAA2B,KAAK;EAC/C;EACA;;EAEA;;EAEA,eAAe;;;;;;;wBAQD,gBAAgB,KAAK,KAAK,OAAO,iBAAiB,SAAS,qCAAkB,IAAA"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{MediaViewerDialog as e}from"./MediaViewerDialog.mjs";import{Fragment as t,jsx as n,jsxs as r}from"react/jsx-runtime";import{useState as i}from"react";import{useT as a}from"@agimon-ai/po-core/web";function o({src:o,alt:s,title:c,renderReview:l,...u}){let[d,f]=i(),p=()=>f(void 0),m=a(),h=c||s||m(`webComponents.media.image`,`Image`);return/* @__PURE__ */ r(t,{children:[/* @__PURE__ */ n(`button`,{type:`button`,"data-viewable-image":!0,"aria-label":m(`webComponents.media.openFullScreen`,`Open {name} full screen`,{name:h}),onClick:()=>f({kind:`image`,title:h,url:o}),className:`max-w-full cursor-zoom-in self-start rounded focus-visible:ring-2 focus-visible:ring-po-blue focus-visible:outline-none`,children:/* @__PURE__ */ n(`img`,{...u,src:o,alt:s})}),/* @__PURE__ */ n(e,{media:d,onClose:p,review:d===void 0?void 0:l?.(d,p)})]})}export{o as ViewableImage};
|
|
2
|
+
//# sourceMappingURL=ViewableImage.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ViewableImage.mjs","names":["ViewableImage","image","opened","setOpened","useState","close","t","useT","name","title","alt","Fragment","src","MediaViewerDialog","renderReview"],"sources":["../../../src/components/ViewableImage.tsx"],"sourcesContent":["import { useT } from '@agimon-ai/po-core/web';\nimport { useState, type ComponentProps } from 'react';\n\nimport type { MarkdownMedia, MarkdownMediaReview } from '../lib/markdownMedia';\nimport { MediaViewerDialog } from './MediaViewerDialog';\n\nexport interface ViewableImageProps extends Omit<ComponentProps<'img'>, 'src' | 'alt' | 'title'> {\n src: string;\n alt: string;\n /** The viewer's heading; defaults to `alt`. */\n title?: string;\n /** Footer action for the opened picture (Author's \"Open in Author\"); without it the viewer only pans and zooms. */\n renderReview?: MarkdownMediaReview;\n}\n\n/**\n * A picture outside Markdown (a tool result, an attachment) that opens the same full-screen viewer on click.\n * `data-viewable-image` lets a host that frames pictures itself, such as an outputs gallery, find it and take\n * the click first.\n */\nexport function ViewableImage({ src, alt, title, renderReview, ...image }: ViewableImageProps) {\n const [opened, setOpened] = useState<MarkdownMedia>();\n const close = () => setOpened(undefined);\n const t = useT();\n const name = title || alt || t('webComponents.media.image', 'Image');\n return (\n <>\n <button\n type=\"button\"\n data-viewable-image\n aria-label={t('webComponents.media.openFullScreen', 'Open {name} full screen', { name })}\n onClick={() => setOpened({ kind: 'image', title: name, url: src })}\n className=\"max-w-full cursor-zoom-in self-start rounded focus-visible:ring-2 focus-visible:ring-po-blue focus-visible:outline-none\"\n >\n <img {...image} src={src} alt={alt} />\n </button>\n <MediaViewerDialog\n media={opened}\n onClose={close}\n review={opened === undefined ? undefined : renderReview?.(opened, close)}\n />\n </>\n );\n}\n"],"mappings":"A,2MAoBA,SAAgBA,EAAc,CAAE,MAAK,MAAK,QAAO,eAAc,GAAGC,GAA6B,CAC7F,GAAM,CAACC,EAAQC,GAAaC,EAAwB,EAC9CC,MAAcF,EAAU,IAAA,EAAS,EACjCG,EAAIC,EAAK,EACTC,EAAOC,GAASC,GAAOJ,EAAE,4BAA6B,OAAO,EACnE,MACE,kBAAAK,EAAA,CAAA,SAAA,CACE,kBAAC,SAAD,CACE,KAAK,SACL,sBAAA,GACA,aAAYL,EAAE,qCAAsC,0BAA2B,CAAE,MAAK,CAAC,EACvF,YAAeH,EAAU,CAAE,KAAM,QAAS,MAAOK,EAAM,IAAKI,CAAI,CAAC,EACjE,UAAU,0HAEV,SAAA,kBAAC,MAAD,CAAK,GAAIX,EAAY,MAAU,KAAM,CAAA,CAC/B,CAAA,EACR,kBAACY,EAAD,CACE,MAAOX,EACP,QAASG,EACT,OAAQH,IAAW,IAAA,GAAY,IAAA,GAAYY,IAAeZ,EAAQG,CAAK,CACxE,CAAA,CACD,CAAA,CAAA,CAEN,C"}
|
package/dist/src/icons/icons.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
let e=require("lucide-react");Object.defineProperty(exports,"ActivityIcon",{enumerable:!0,get:function(){return e.Activity}}),Object.defineProperty(exports,"AlertIcon",{enumerable:!0,get:function(){return e.CircleAlert}}),Object.defineProperty(exports,"ArrowRightIcon",{enumerable:!0,get:function(){return e.ArrowRight}}),Object.defineProperty(exports,"AudioLinesIcon",{enumerable:!0,get:function(){return e.AudioLines}}),Object.defineProperty(exports,"BookmarkPlusIcon",{enumerable:!0,get:function(){return e.BookmarkPlus}}),Object.defineProperty(exports,"BranchIcon",{enumerable:!0,get:function(){return e.GitBranch}}),Object.defineProperty(exports,"CheckIcon",{enumerable:!0,get:function(){return e.Check}}),Object.defineProperty(exports,"ChevronDownIcon",{enumerable:!0,get:function(){return e.ChevronDown}}),Object.defineProperty(exports,"ChevronRightIcon",{enumerable:!0,get:function(){return e.ChevronRight}}),Object.defineProperty(exports,"ChevronUpIcon",{enumerable:!0,get:function(){return e.ChevronUp}}),Object.defineProperty(exports,"CloseIcon",{enumerable:!0,get:function(){return e.X}}),Object.defineProperty(exports,"CopyIcon",{enumerable:!0,get:function(){return e.Copy}}),Object.defineProperty(exports,"EditIcon",{enumerable:!0,get:function(){return e.Pencil}}),Object.defineProperty(exports,"EnterIcon",{enumerable:!0,get:function(){return e.CornerDownLeft}}),Object.defineProperty(exports,"ExternalLinkIcon",{enumerable:!0,get:function(){return e.ExternalLink}}),Object.defineProperty(exports,"FileIcon",{enumerable:!0,get:function(){return e.FileText}}),Object.defineProperty(exports,"FolderIcon",{enumerable:!0,get:function(){return e.Folder}}),Object.defineProperty(exports,"ForkIcon",{enumerable:!0,get:function(){return e.GitFork}}),Object.defineProperty(exports,"GearIcon",{enumerable:!0,get:function(){return e.Settings}}),Object.defineProperty(exports,"GlobeIcon",{enumerable:!0,get:function(){return e.Globe}}),Object.defineProperty(exports,"GridIcon",{enumerable:!0,get:function(){return e.LayoutGrid}}),Object.defineProperty(exports,"HomeIcon",{enumerable:!0,get:function(){return e.House}}),Object.defineProperty(exports,"ImageIcon",{enumerable:!0,get:function(){return e.Image}}),Object.defineProperty(exports,"KebabIcon",{enumerable:!0,get:function(){return e.MoreVertical}}),Object.defineProperty(exports,"LightbulbIcon",{enumerable:!0,get:function(){return e.Lightbulb}}),Object.defineProperty(exports,"ListIcon",{enumerable:!0,get:function(){return e.List}}),Object.defineProperty(exports,"LoaderIcon",{enumerable:!0,get:function(){return e.Loader2}}),Object.defineProperty(exports,"LockIcon",{enumerable:!0,get:function(){return e.Lock}}),Object.defineProperty(exports,"MessageIcon",{enumerable:!0,get:function(){return e.MessageCircle}}),Object.defineProperty(exports,"MicIcon",{enumerable:!0,get:function(){return e.Mic}}),Object.defineProperty(exports,"PaletteIcon",{enumerable:!0,get:function(){return e.Palette}}),Object.defineProperty(exports,"PaperclipIcon",{enumerable:!0,get:function(){return e.Paperclip}}),Object.defineProperty(exports,"PlayCircleIcon",{enumerable:!0,get:function(){return e.CirclePlay}}),Object.defineProperty(exports,"PlusIcon",{enumerable:!0,get:function(){return e.Plus}}),Object.defineProperty(exports,"QuoteIcon",{enumerable:!0,get:function(){return e.Quote}}),Object.defineProperty(exports,"RefreshIcon",{enumerable:!0,get:function(){return e.RefreshCw}}),Object.defineProperty(exports,"RewindIcon",{enumerable:!0,get:function(){return e.Rewind}}),Object.defineProperty(exports,"SearchIcon",{enumerable:!0,get:function(){return e.Search}}),Object.defineProperty(exports,"SendIcon",{enumerable:!0,get:function(){return e.Send}}),Object.defineProperty(exports,"ShieldIcon",{enumerable:!0,get:function(){return e.ShieldCheck}}),Object.defineProperty(exports,"SlidersIcon",{enumerable:!0,get:function(){return e.SlidersHorizontal}}),Object.defineProperty(exports,"SparklesIcon",{enumerable:!0,get:function(){return e.Sparkles}}),Object.defineProperty(exports,"StopIcon",{enumerable:!0,get:function(){return e.Square}}),Object.defineProperty(exports,"TaskIcon",{enumerable:!0,get:function(){return e.SquareCheckBig}}),Object.defineProperty(exports,"TrashIcon",{enumerable:!0,get:function(){return e.Trash2}}),Object.defineProperty(exports,"UnlockIcon",{enumerable:!0,get:function(){return e.LockOpen}}),Object.defineProperty(exports,"UserIcon",{enumerable:!0,get:function(){return e.UserRound}}),Object.defineProperty(exports,"UsersIcon",{enumerable:!0,get:function(){return e.Users}}),Object.defineProperty(exports,"VolumeIcon",{enumerable:!0,get:function(){return e.Volume2}}),Object.defineProperty(exports,"WorkflowIcon",{enumerable:!0,get:function(){return e.Workflow}}),Object.defineProperty(exports,"WrenchIcon",{enumerable:!0,get:function(){return e.Wrench}});
|
|
1
|
+
let e=require("lucide-react");Object.defineProperty(exports,"ActivityIcon",{enumerable:!0,get:function(){return e.Activity}}),Object.defineProperty(exports,"AlertIcon",{enumerable:!0,get:function(){return e.CircleAlert}}),Object.defineProperty(exports,"AppWindowIcon",{enumerable:!0,get:function(){return e.AppWindow}}),Object.defineProperty(exports,"ArrowLeftIcon",{enumerable:!0,get:function(){return e.ArrowLeft}}),Object.defineProperty(exports,"ArrowRightIcon",{enumerable:!0,get:function(){return e.ArrowRight}}),Object.defineProperty(exports,"ArrowUpRightIcon",{enumerable:!0,get:function(){return e.ArrowUpRight}}),Object.defineProperty(exports,"AudioLinesIcon",{enumerable:!0,get:function(){return e.AudioLines}}),Object.defineProperty(exports,"Back10Icon",{enumerable:!0,get:function(){return e.RotateCcw}}),Object.defineProperty(exports,"BellIcon",{enumerable:!0,get:function(){return e.Bell}}),Object.defineProperty(exports,"BookmarkPlusIcon",{enumerable:!0,get:function(){return e.BookmarkPlus}}),Object.defineProperty(exports,"BoxIcon",{enumerable:!0,get:function(){return e.Square}}),Object.defineProperty(exports,"BranchIcon",{enumerable:!0,get:function(){return e.GitBranch}}),Object.defineProperty(exports,"CalendarIcon",{enumerable:!0,get:function(){return e.Calendar}}),Object.defineProperty(exports,"CheckIcon",{enumerable:!0,get:function(){return e.Check}}),Object.defineProperty(exports,"ChevronDownIcon",{enumerable:!0,get:function(){return e.ChevronDown}}),Object.defineProperty(exports,"ChevronRightIcon",{enumerable:!0,get:function(){return e.ChevronRight}}),Object.defineProperty(exports,"ChevronUpIcon",{enumerable:!0,get:function(){return e.ChevronUp}}),Object.defineProperty(exports,"CloseIcon",{enumerable:!0,get:function(){return e.X}}),Object.defineProperty(exports,"ConnectorIcon",{enumerable:!0,get:function(){return e.Spline}}),Object.defineProperty(exports,"CopyIcon",{enumerable:!0,get:function(){return e.Copy}}),Object.defineProperty(exports,"DownloadIcon",{enumerable:!0,get:function(){return e.Download}}),Object.defineProperty(exports,"EditIcon",{enumerable:!0,get:function(){return e.Pencil}}),Object.defineProperty(exports,"EnterIcon",{enumerable:!0,get:function(){return e.CornerDownLeft}}),Object.defineProperty(exports,"EraserIcon",{enumerable:!0,get:function(){return e.Eraser}}),Object.defineProperty(exports,"ExternalLinkIcon",{enumerable:!0,get:function(){return e.ExternalLink}}),Object.defineProperty(exports,"FileIcon",{enumerable:!0,get:function(){return e.FileText}}),Object.defineProperty(exports,"FitIcon",{enumerable:!0,get:function(){return e.Scan}}),Object.defineProperty(exports,"FolderIcon",{enumerable:!0,get:function(){return e.Folder}}),Object.defineProperty(exports,"ForkIcon",{enumerable:!0,get:function(){return e.GitFork}}),Object.defineProperty(exports,"Forward10Icon",{enumerable:!0,get:function(){return e.RotateCw}}),Object.defineProperty(exports,"GearIcon",{enumerable:!0,get:function(){return e.Settings}}),Object.defineProperty(exports,"GlobeIcon",{enumerable:!0,get:function(){return e.Globe}}),Object.defineProperty(exports,"GridIcon",{enumerable:!0,get:function(){return e.LayoutGrid}}),Object.defineProperty(exports,"HandIcon",{enumerable:!0,get:function(){return e.Hand}}),Object.defineProperty(exports,"HelpIcon",{enumerable:!0,get:function(){return e.CircleHelp}}),Object.defineProperty(exports,"HighlighterIcon",{enumerable:!0,get:function(){return e.Highlighter}}),Object.defineProperty(exports,"HomeIcon",{enumerable:!0,get:function(){return e.House}}),Object.defineProperty(exports,"IdCardIcon",{enumerable:!0,get:function(){return e.IdCard}}),Object.defineProperty(exports,"ImageIcon",{enumerable:!0,get:function(){return e.Image}}),Object.defineProperty(exports,"KebabIcon",{enumerable:!0,get:function(){return e.MoreVertical}}),Object.defineProperty(exports,"LanguagesIcon",{enumerable:!0,get:function(){return e.Languages}}),Object.defineProperty(exports,"LightbulbIcon",{enumerable:!0,get:function(){return e.Lightbulb}}),Object.defineProperty(exports,"ListIcon",{enumerable:!0,get:function(){return e.List}}),Object.defineProperty(exports,"LoaderIcon",{enumerable:!0,get:function(){return e.Loader2}}),Object.defineProperty(exports,"LockIcon",{enumerable:!0,get:function(){return e.Lock}}),Object.defineProperty(exports,"MenuIcon",{enumerable:!0,get:function(){return e.Menu}}),Object.defineProperty(exports,"MessageIcon",{enumerable:!0,get:function(){return e.MessageCircle}}),Object.defineProperty(exports,"MicIcon",{enumerable:!0,get:function(){return e.Mic}}),Object.defineProperty(exports,"MinusIcon",{enumerable:!0,get:function(){return e.Minus}}),Object.defineProperty(exports,"MonitorIcon",{enumerable:!0,get:function(){return e.Monitor}}),Object.defineProperty(exports,"NoteIcon",{enumerable:!0,get:function(){return e.StickyNote}}),Object.defineProperty(exports,"PaletteIcon",{enumerable:!0,get:function(){return e.Palette}}),Object.defineProperty(exports,"PaperclipIcon",{enumerable:!0,get:function(){return e.Paperclip}}),Object.defineProperty(exports,"PauseIcon",{enumerable:!0,get:function(){return e.Pause}}),Object.defineProperty(exports,"PinIcon",{enumerable:!0,get:function(){return e.MapPin}}),Object.defineProperty(exports,"PlayCircleIcon",{enumerable:!0,get:function(){return e.CirclePlay}}),Object.defineProperty(exports,"PlayIcon",{enumerable:!0,get:function(){return e.Play}}),Object.defineProperty(exports,"PlusIcon",{enumerable:!0,get:function(){return e.Plus}}),Object.defineProperty(exports,"PointerIcon",{enumerable:!0,get:function(){return e.MousePointer2}}),Object.defineProperty(exports,"PuzzleIcon",{enumerable:!0,get:function(){return e.Puzzle}}),Object.defineProperty(exports,"QuoteIcon",{enumerable:!0,get:function(){return e.Quote}}),Object.defineProperty(exports,"RedoIcon",{enumerable:!0,get:function(){return e.Redo2}}),Object.defineProperty(exports,"RefreshIcon",{enumerable:!0,get:function(){return e.RefreshCw}}),Object.defineProperty(exports,"RewindIcon",{enumerable:!0,get:function(){return e.Rewind}}),Object.defineProperty(exports,"SearchIcon",{enumerable:!0,get:function(){return e.Search}}),Object.defineProperty(exports,"SendIcon",{enumerable:!0,get:function(){return e.Send}}),Object.defineProperty(exports,"ServerIcon",{enumerable:!0,get:function(){return e.Server}}),Object.defineProperty(exports,"ShieldIcon",{enumerable:!0,get:function(){return e.ShieldCheck}}),Object.defineProperty(exports,"ShrinkIcon",{enumerable:!0,get:function(){return e.Shrink}}),Object.defineProperty(exports,"SidebarIcon",{enumerable:!0,get:function(){return e.PanelLeft}}),Object.defineProperty(exports,"SlidersIcon",{enumerable:!0,get:function(){return e.SlidersHorizontal}}),Object.defineProperty(exports,"SmartphoneIcon",{enumerable:!0,get:function(){return e.Smartphone}}),Object.defineProperty(exports,"SparklesIcon",{enumerable:!0,get:function(){return e.Sparkles}}),Object.defineProperty(exports,"StepBackIcon",{enumerable:!0,get:function(){return e.StepBack}}),Object.defineProperty(exports,"StepForwardIcon",{enumerable:!0,get:function(){return e.StepForward}}),Object.defineProperty(exports,"StopIcon",{enumerable:!0,get:function(){return e.Square}}),Object.defineProperty(exports,"TargetIcon",{enumerable:!0,get:function(){return e.Target}}),Object.defineProperty(exports,"TaskIcon",{enumerable:!0,get:function(){return e.SquareCheckBig}}),Object.defineProperty(exports,"TerminalIcon",{enumerable:!0,get:function(){return e.SquareTerminal}}),Object.defineProperty(exports,"TrashIcon",{enumerable:!0,get:function(){return e.Trash2}}),Object.defineProperty(exports,"UndoIcon",{enumerable:!0,get:function(){return e.Undo2}}),Object.defineProperty(exports,"UnlockIcon",{enumerable:!0,get:function(){return e.LockOpen}}),Object.defineProperty(exports,"UserIcon",{enumerable:!0,get:function(){return e.UserRound}}),Object.defineProperty(exports,"UsersIcon",{enumerable:!0,get:function(){return e.Users}}),Object.defineProperty(exports,"VolumeIcon",{enumerable:!0,get:function(){return e.Volume2}}),Object.defineProperty(exports,"WorkflowIcon",{enumerable:!0,get:function(){return e.Workflow}}),Object.defineProperty(exports,"WrenchIcon",{enumerable:!0,get:function(){return e.Wrench}});
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { Activity as ActivityIcon, AppWindow as AppWindowIcon, ArrowLeft as ArrowLeftIcon, ArrowRight as ArrowRightIcon, ArrowUpRight as ArrowUpRightIcon, AudioLines as AudioLinesIcon, Bell as BellIcon, BookmarkPlus as BookmarkPlusIcon, Calendar as CalendarIcon, Check as CheckIcon, ChevronDown as ChevronDownIcon, ChevronRight as ChevronRightIcon, ChevronUp as ChevronUpIcon, CircleAlert as AlertIcon, CircleHelp as HelpIcon, CirclePlay as PlayCircleIcon, Copy as CopyIcon, CornerDownLeft as EnterIcon, Download as DownloadIcon, Eraser as EraserIcon, ExternalLink as ExternalLinkIcon, FileText as FileIcon, Folder as FolderIcon, GitBranch as BranchIcon, GitFork as ForkIcon, Globe as GlobeIcon, Hand as HandIcon, Highlighter as HighlighterIcon, House as HomeIcon, IdCard as IdCardIcon, Image as ImageIcon, Languages as LanguagesIcon, LayoutGrid as GridIcon, Lightbulb as LightbulbIcon, List as ListIcon, Loader2 as LoaderIcon, Lock as LockIcon, LockOpen as UnlockIcon, MapPin as PinIcon, Menu as MenuIcon, MessageCircle as MessageIcon, Mic as MicIcon, Minus as MinusIcon, Monitor as MonitorIcon, MoreVertical as KebabIcon, MousePointer2 as PointerIcon, Palette as PaletteIcon, PanelLeft as SidebarIcon, Paperclip as PaperclipIcon, Pause as PauseIcon, Pencil as EditIcon, Play as PlayIcon, Plus as PlusIcon, Puzzle as PuzzleIcon, Quote as QuoteIcon, Redo2 as RedoIcon, RefreshCw as RefreshIcon, Rewind as RewindIcon, RotateCcw as Back10Icon, RotateCw as Forward10Icon, Scan as FitIcon, Search as SearchIcon, Send as SendIcon, Server as ServerIcon, Settings as GearIcon, ShieldCheck as ShieldIcon, Shrink as ShrinkIcon, SlidersHorizontal as SlidersIcon, Smartphone as SmartphoneIcon, Sparkles as SparklesIcon, Spline as ConnectorIcon, Square as BoxIcon, Square as StopIcon, SquareCheckBig as TaskIcon, SquareTerminal as TerminalIcon, StepBack as StepBackIcon, StepForward as StepForwardIcon, StickyNote as NoteIcon, Target as TargetIcon, Trash2 as TrashIcon, Undo2 as UndoIcon, UserRound as UserIcon, Users as UsersIcon, Volume2 as VolumeIcon, Workflow as WorkflowIcon, Wrench as WrenchIcon, X as CloseIcon } from "lucide-react";
|
|
2
|
+
export { ActivityIcon, AlertIcon, AppWindowIcon, ArrowLeftIcon, ArrowRightIcon, ArrowUpRightIcon, AudioLinesIcon, Back10Icon, BellIcon, BookmarkPlusIcon, BoxIcon, BranchIcon, CalendarIcon, CheckIcon, ChevronDownIcon, ChevronRightIcon, ChevronUpIcon, CloseIcon, ConnectorIcon, CopyIcon, DownloadIcon, EditIcon, EnterIcon, EraserIcon, ExternalLinkIcon, FileIcon, FitIcon, FolderIcon, ForkIcon, Forward10Icon, GearIcon, GlobeIcon, GridIcon, HandIcon, HelpIcon, HighlighterIcon, HomeIcon, IdCardIcon, ImageIcon, KebabIcon, LanguagesIcon, LightbulbIcon, ListIcon, LoaderIcon, LockIcon, MenuIcon, MessageIcon, MicIcon, MinusIcon, MonitorIcon, NoteIcon, PaletteIcon, PaperclipIcon, PauseIcon, PinIcon, PlayCircleIcon, PlayIcon, PlusIcon, PointerIcon, PuzzleIcon, QuoteIcon, RedoIcon, RefreshIcon, RewindIcon, SearchIcon, SendIcon, ServerIcon, ShieldIcon, ShrinkIcon, SidebarIcon, SlidersIcon, SmartphoneIcon, SparklesIcon, StepBackIcon, StepForwardIcon, StopIcon, TargetIcon, TaskIcon, TerminalIcon, TrashIcon, UndoIcon, UnlockIcon, UserIcon, UsersIcon, VolumeIcon, WorkflowIcon, WrenchIcon };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{Activity as ActivityIcon,CircleAlert as AlertIcon,AppWindow as AppWindowIcon,ArrowLeft as ArrowLeftIcon,ArrowRight as ArrowRightIcon,ArrowUpRight as ArrowUpRightIcon,AudioLines as AudioLinesIcon,RotateCcw as Back10Icon,Bell as BellIcon,BookmarkPlus as BookmarkPlusIcon,Square as BoxIcon,GitBranch as BranchIcon,Calendar as CalendarIcon,Check as CheckIcon,ChevronDown as ChevronDownIcon,ChevronRight as ChevronRightIcon,ChevronUp as ChevronUpIcon,X as CloseIcon,Spline as ConnectorIcon,Copy as CopyIcon,Download as DownloadIcon,Pencil as EditIcon,CornerDownLeft as EnterIcon,Eraser as EraserIcon,ExternalLink as ExternalLinkIcon,FileText as FileIcon,Scan as FitIcon,Folder as FolderIcon,GitFork as ForkIcon,RotateCw as Forward10Icon,Settings as GearIcon,Globe as GlobeIcon,LayoutGrid as GridIcon,Hand as HandIcon,CircleHelp as HelpIcon,Highlighter as HighlighterIcon,House as HomeIcon,IdCard as IdCardIcon,Image as ImageIcon,MoreVertical as KebabIcon,Languages as LanguagesIcon,Lightbulb as LightbulbIcon,List as ListIcon,Loader2 as LoaderIcon,Lock as LockIcon,Menu as MenuIcon,MessageCircle as MessageIcon,Mic as MicIcon,Minus as MinusIcon,Monitor as MonitorIcon,StickyNote as NoteIcon,Palette as PaletteIcon,Paperclip as PaperclipIcon,Pause as PauseIcon,MapPin as PinIcon,CirclePlay as PlayCircleIcon,Play as PlayIcon,Plus as PlusIcon,MousePointer2 as PointerIcon,Puzzle as PuzzleIcon,Quote as QuoteIcon,Redo2 as RedoIcon,RefreshCw as RefreshIcon,Rewind as RewindIcon,Search as SearchIcon,Send as SendIcon,Server as ServerIcon,ShieldCheck as ShieldIcon,Shrink as ShrinkIcon,PanelLeft as SidebarIcon,SlidersHorizontal as SlidersIcon,Smartphone as SmartphoneIcon,Sparkles as SparklesIcon,StepBack as StepBackIcon,StepForward as StepForwardIcon,Square as StopIcon,Target as TargetIcon,SquareCheckBig as TaskIcon,SquareTerminal as TerminalIcon,Trash2 as TrashIcon,Undo2 as UndoIcon,LockOpen as UnlockIcon,UserRound as UserIcon,Users as UsersIcon,Volume2 as VolumeIcon,Workflow as WorkflowIcon,Wrench as WrenchIcon}from"lucide-react";
|