@elizaos/ui 2.0.0-alpha.13 → 2.0.0-alpha.140
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/package.json +76 -49
- package/packages/ui/src/components/composites/chat/chat-attachment-strip.d.ts +9 -0
- package/packages/ui/src/components/composites/chat/chat-attachment-strip.d.ts.map +1 -0
- package/packages/ui/src/components/composites/chat/chat-attachment-strip.js +8 -0
- package/packages/ui/src/components/composites/chat/chat-bubble.d.ts +14 -0
- package/packages/ui/src/components/composites/chat/chat-bubble.d.ts.map +1 -0
- package/packages/ui/src/components/composites/chat/chat-bubble.js +14 -0
- package/packages/ui/src/components/composites/chat/chat-composer-shell.d.ts +10 -0
- package/packages/ui/src/components/composites/chat/chat-composer-shell.d.ts.map +1 -0
- package/packages/ui/src/components/composites/chat/chat-composer-shell.js +16 -0
- package/packages/ui/src/components/composites/chat/chat-composer.d.ts +39 -0
- package/packages/ui/src/components/composites/chat/chat-composer.d.ts.map +1 -0
- package/packages/ui/src/components/composites/chat/chat-composer.js +148 -0
- package/packages/ui/src/components/composites/chat/chat-conversation-item.d.ts +21 -0
- package/packages/ui/src/components/composites/chat/chat-conversation-item.d.ts.map +1 -0
- package/packages/ui/src/components/composites/chat/chat-conversation-item.js +120 -0
- package/packages/ui/src/components/composites/chat/chat-conversation-rename-dialog.d.ts +22 -0
- package/packages/ui/src/components/composites/chat/chat-conversation-rename-dialog.d.ts.map +1 -0
- package/packages/ui/src/components/composites/chat/chat-conversation-rename-dialog.js +14 -0
- package/packages/ui/src/components/composites/chat/chat-empty-state.d.ts +19 -0
- package/packages/ui/src/components/composites/chat/chat-empty-state.d.ts.map +1 -0
- package/packages/ui/src/components/composites/chat/chat-empty-state.js +8 -0
- package/packages/ui/src/components/composites/chat/chat-message-actions.d.ts +14 -0
- package/packages/ui/src/components/composites/chat/chat-message-actions.d.ts.map +1 -0
- package/packages/ui/src/components/composites/chat/chat-message-actions.js +10 -0
- package/packages/ui/src/components/composites/chat/chat-message.d.ts +18 -0
- package/packages/ui/src/components/composites/chat/chat-message.d.ts.map +1 -0
- package/packages/ui/src/components/composites/chat/chat-message.js +275 -0
- package/packages/ui/src/components/composites/chat/chat-sidebar.d.ts +54 -0
- package/packages/ui/src/components/composites/chat/chat-sidebar.d.ts.map +1 -0
- package/packages/ui/src/components/composites/chat/chat-sidebar.js +64 -0
- package/packages/ui/src/components/composites/chat/chat-source.d.ts +19 -0
- package/packages/ui/src/components/composites/chat/chat-source.d.ts.map +1 -0
- package/packages/ui/src/components/composites/chat/chat-source.js +127 -0
- package/packages/ui/src/components/composites/chat/chat-thread-layout.d.ts +18 -0
- package/packages/ui/src/components/composites/chat/chat-thread-layout.d.ts.map +1 -0
- package/packages/ui/src/components/composites/chat/chat-thread-layout.js +28 -0
- package/packages/ui/src/components/composites/chat/chat-transcript.d.ts +19 -0
- package/packages/ui/src/components/composites/chat/chat-transcript.d.ts.map +1 -0
- package/packages/ui/src/components/composites/chat/chat-transcript.js +82 -0
- package/packages/ui/src/components/composites/chat/chat-types.d.ts +90 -0
- package/packages/ui/src/components/composites/chat/chat-types.d.ts.map +1 -0
- package/packages/ui/src/components/composites/chat/chat-types.js +1 -0
- package/packages/ui/src/components/composites/chat/chat-typing-indicator.d.ts +10 -0
- package/packages/ui/src/components/composites/chat/chat-typing-indicator.d.ts.map +1 -0
- package/packages/ui/src/components/composites/chat/chat-typing-indicator.js +11 -0
- package/packages/ui/src/components/composites/chat/create-task-popover.d.ts +8 -0
- package/packages/ui/src/components/composites/chat/create-task-popover.d.ts.map +1 -0
- package/packages/ui/src/components/composites/chat/create-task-popover.js +44 -0
- package/packages/ui/src/components/composites/chat/index.d.ts +17 -0
- package/packages/ui/src/components/composites/chat/index.d.ts.map +1 -0
- package/packages/ui/src/components/composites/chat/index.js +16 -0
- package/packages/ui/src/components/composites/form-field/form-field.d.ts +14 -0
- package/packages/ui/src/components/composites/form-field/form-field.d.ts.map +1 -0
- package/packages/ui/src/components/composites/form-field/form-field.js +8 -0
- package/packages/ui/src/components/composites/form-field/index.d.ts +2 -0
- package/packages/ui/src/components/composites/form-field/index.d.ts.map +1 -0
- package/packages/ui/src/components/composites/form-field/index.js +1 -0
- package/packages/ui/src/components/composites/index.d.ts +27 -0
- package/packages/ui/src/components/composites/index.d.ts.map +1 -0
- package/packages/ui/src/components/composites/index.js +26 -0
- package/packages/ui/src/components/composites/page-panel/index.d.ts +29 -0
- package/packages/ui/src/components/composites/page-panel/index.d.ts.map +1 -0
- package/packages/ui/src/components/composites/page-panel/index.js +28 -0
- package/packages/ui/src/components/composites/page-panel/page-panel-collapsible-section.d.ts +4 -0
- package/packages/ui/src/components/composites/page-panel/page-panel-collapsible-section.d.ts.map +1 -0
- package/packages/ui/src/components/composites/page-panel/page-panel-collapsible-section.js +60 -0
- package/packages/ui/src/components/composites/page-panel/page-panel-empty.d.ts +3 -0
- package/packages/ui/src/components/composites/page-panel/page-panel-empty.d.ts.map +1 -0
- package/packages/ui/src/components/composites/page-panel/page-panel-empty.js +15 -0
- package/packages/ui/src/components/composites/page-panel/page-panel-frame.d.ts +5 -0
- package/packages/ui/src/components/composites/page-panel/page-panel-frame.d.ts.map +1 -0
- package/packages/ui/src/components/composites/page-panel/page-panel-frame.js +9 -0
- package/packages/ui/src/components/composites/page-panel/page-panel-header.d.ts +7 -0
- package/packages/ui/src/components/composites/page-panel/page-panel-header.d.ts.map +1 -0
- package/packages/ui/src/components/composites/page-panel/page-panel-header.js +30 -0
- package/packages/ui/src/components/composites/page-panel/page-panel-loading.d.ts +3 -0
- package/packages/ui/src/components/composites/page-panel/page-panel-loading.d.ts.map +1 -0
- package/packages/ui/src/components/composites/page-panel/page-panel-loading.js +13 -0
- package/packages/ui/src/components/composites/page-panel/page-panel-root.d.ts +7 -0
- package/packages/ui/src/components/composites/page-panel/page-panel-root.d.ts.map +1 -0
- package/packages/ui/src/components/composites/page-panel/page-panel-root.js +17 -0
- package/packages/ui/src/components/composites/page-panel/page-panel-toolbar.d.ts +4 -0
- package/packages/ui/src/components/composites/page-panel/page-panel-toolbar.d.ts.map +1 -0
- package/packages/ui/src/components/composites/page-panel/page-panel-toolbar.js +6 -0
- package/packages/ui/src/components/composites/page-panel/page-panel-types.d.ts +66 -0
- package/packages/ui/src/components/composites/page-panel/page-panel-types.d.ts.map +1 -0
- package/packages/ui/src/components/composites/page-panel/page-panel-types.js +1 -0
- package/packages/ui/src/components/composites/search/index.d.ts +3 -0
- package/packages/ui/src/components/composites/search/index.d.ts.map +1 -0
- package/packages/ui/src/components/composites/search/index.js +2 -0
- package/packages/ui/src/components/composites/search/search-input.d.ts.map +1 -0
- package/{dist/components/ui → packages/ui/src/components/composites/search}/search-input.js +3 -2
- package/{dist/components/ui/search-bar.d.ts → packages/ui/src/components/composites/search/searchbar.d.ts} +8 -7
- package/packages/ui/src/components/composites/search/searchbar.d.ts.map +1 -0
- package/packages/ui/src/components/composites/search/searchbar.js +25 -0
- package/packages/ui/src/components/composites/sidebar/index.d.ts +11 -0
- package/packages/ui/src/components/composites/sidebar/index.d.ts.map +1 -0
- package/packages/ui/src/components/composites/sidebar/index.js +10 -0
- package/packages/ui/src/components/composites/sidebar/sidebar-auto-rail.d.ts +15 -0
- package/packages/ui/src/components/composites/sidebar/sidebar-auto-rail.d.ts.map +1 -0
- package/packages/ui/src/components/composites/sidebar/sidebar-auto-rail.js +292 -0
- package/packages/ui/src/components/composites/sidebar/sidebar-body.d.ts +4 -0
- package/packages/ui/src/components/composites/sidebar/sidebar-body.d.ts.map +1 -0
- package/packages/ui/src/components/composites/sidebar/sidebar-body.js +7 -0
- package/packages/ui/src/components/composites/sidebar/sidebar-collapsed-rail.d.ts +11 -0
- package/packages/ui/src/components/composites/sidebar/sidebar-collapsed-rail.d.ts.map +1 -0
- package/packages/ui/src/components/composites/sidebar/sidebar-collapsed-rail.js +13 -0
- package/packages/ui/src/components/composites/sidebar/sidebar-content.d.ts +78 -0
- package/packages/ui/src/components/composites/sidebar/sidebar-content.d.ts.map +1 -0
- package/packages/ui/src/components/composites/sidebar/sidebar-content.js +89 -0
- package/packages/ui/src/components/composites/sidebar/sidebar-filter-bar.d.ts +3 -0
- package/packages/ui/src/components/composites/sidebar/sidebar-filter-bar.d.ts.map +1 -0
- package/packages/ui/src/components/composites/sidebar/sidebar-filter-bar.js +14 -0
- package/packages/ui/src/components/composites/sidebar/sidebar-header-stack.d.ts +3 -0
- package/packages/ui/src/components/composites/sidebar/sidebar-header-stack.d.ts.map +1 -0
- package/packages/ui/src/components/composites/sidebar/sidebar-header-stack.js +6 -0
- package/packages/ui/src/components/composites/sidebar/sidebar-header.d.ts +9 -0
- package/packages/ui/src/components/composites/sidebar/sidebar-header.d.ts.map +1 -0
- package/packages/ui/src/components/composites/sidebar/sidebar-header.js +6 -0
- package/packages/ui/src/components/composites/sidebar/sidebar-panel.d.ts +3 -0
- package/packages/ui/src/components/composites/sidebar/sidebar-panel.d.ts.map +1 -0
- package/packages/ui/src/components/composites/sidebar/sidebar-panel.js +18 -0
- package/packages/ui/src/components/composites/sidebar/sidebar-root.d.ts +4 -0
- package/packages/ui/src/components/composites/sidebar/sidebar-root.d.ts.map +1 -0
- package/packages/ui/src/components/composites/sidebar/sidebar-root.js +448 -0
- package/packages/ui/src/components/composites/sidebar/sidebar-scroll-region.d.ts +3 -0
- package/packages/ui/src/components/composites/sidebar/sidebar-scroll-region.d.ts.map +1 -0
- package/packages/ui/src/components/composites/sidebar/sidebar-scroll-region.js +18 -0
- package/packages/ui/src/components/composites/sidebar/sidebar-types.d.ts +59 -0
- package/packages/ui/src/components/composites/sidebar/sidebar-types.d.ts.map +1 -0
- package/packages/ui/src/components/composites/sidebar/sidebar-types.js +1 -0
- package/packages/ui/src/components/composites/skills/index.d.ts +2 -0
- package/packages/ui/src/components/composites/skills/index.d.ts.map +1 -0
- package/packages/ui/src/components/composites/skills/index.js +1 -0
- package/packages/ui/src/components/composites/skills/skill-sidebar-item.d.ts +16 -0
- package/packages/ui/src/components/composites/skills/skill-sidebar-item.d.ts.map +1 -0
- package/packages/ui/src/components/composites/skills/skill-sidebar-item.js +7 -0
- package/packages/ui/src/components/composites/trajectories/index.d.ts +5 -0
- package/packages/ui/src/components/composites/trajectories/index.d.ts.map +1 -0
- package/packages/ui/src/components/composites/trajectories/index.js +4 -0
- package/packages/ui/src/components/composites/trajectories/trajectory-code-block.d.ts +13 -0
- package/packages/ui/src/components/composites/trajectories/trajectory-code-block.d.ts.map +1 -0
- package/packages/ui/src/components/composites/trajectories/trajectory-code-block.js +13 -0
- package/packages/ui/src/components/composites/trajectories/trajectory-llm-call-card.d.ts +34 -0
- package/packages/ui/src/components/composites/trajectories/trajectory-llm-call-card.d.ts.map +1 -0
- package/packages/ui/src/components/composites/trajectories/trajectory-llm-call-card.js +14 -0
- package/packages/ui/src/components/composites/trajectories/trajectory-pipeline-graph.d.ts +26 -0
- package/packages/ui/src/components/composites/trajectories/trajectory-pipeline-graph.d.ts.map +1 -0
- package/packages/ui/src/components/composites/trajectories/trajectory-pipeline-graph.js +46 -0
- package/packages/ui/src/components/composites/trajectories/trajectory-sidebar-item.d.ts +15 -0
- package/packages/ui/src/components/composites/trajectories/trajectory-sidebar-item.d.ts.map +1 -0
- package/packages/ui/src/components/composites/trajectories/trajectory-sidebar-item.js +8 -0
- package/packages/ui/src/components/primitives/index.d.ts +26 -0
- package/packages/ui/src/components/primitives/index.d.ts.map +1 -0
- package/packages/ui/src/components/primitives/index.js +25 -0
- package/packages/ui/src/components/ui/admin-dialog.d.ts +50 -0
- package/packages/ui/src/components/ui/admin-dialog.d.ts.map +1 -0
- package/packages/ui/src/components/ui/admin-dialog.js +48 -0
- package/{dist → packages/ui/src}/components/ui/badge.d.ts +1 -1
- package/packages/ui/src/components/ui/badge.d.ts.map +1 -0
- package/packages/ui/src/components/ui/banner.d.ts.map +1 -0
- package/{dist → packages/ui/src}/components/ui/banner.js +2 -1
- package/{dist → packages/ui/src}/components/ui/button.d.ts +1 -1
- package/packages/ui/src/components/ui/button.d.ts.map +1 -0
- package/packages/ui/src/components/ui/button.js +39 -0
- package/{dist → packages/ui/src}/components/ui/card.d.ts +8 -2
- package/packages/ui/src/components/ui/card.d.ts.map +1 -0
- package/{dist → packages/ui/src}/components/ui/card.js +17 -2
- package/packages/ui/src/components/ui/checkbox.d.ts.map +1 -0
- package/packages/ui/src/components/ui/confirm-delete.d.ts +20 -0
- package/packages/ui/src/components/ui/confirm-delete.d.ts.map +1 -0
- package/packages/ui/src/components/ui/confirm-delete.js +16 -0
- package/packages/ui/src/components/ui/confirm-dialog.d.ts +49 -0
- package/packages/ui/src/components/ui/confirm-dialog.d.ts.map +1 -0
- package/packages/ui/src/components/ui/confirm-dialog.js +90 -0
- package/{dist → packages/ui/src}/components/ui/connection-status.d.ts +6 -0
- package/packages/ui/src/components/ui/connection-status.d.ts.map +1 -0
- package/packages/ui/src/components/ui/connection-status.js +25 -0
- package/packages/ui/src/components/ui/copy-button.d.ts.map +1 -0
- package/{dist → packages/ui/src}/components/ui/dialog.d.ts +6 -1
- package/packages/ui/src/components/ui/dialog.d.ts.map +1 -0
- package/packages/ui/src/components/ui/dialog.js +23 -0
- package/packages/ui/src/components/ui/drawer-sheet.d.ts +19 -0
- package/packages/ui/src/components/ui/drawer-sheet.d.ts.map +1 -0
- package/packages/ui/src/components/ui/drawer-sheet.js +21 -0
- package/packages/ui/src/components/ui/dropdown-menu.d.ts.map +1 -0
- package/{dist → packages/ui/src}/components/ui/dropdown-menu.js +1 -1
- package/packages/ui/src/components/ui/empty-state.d.ts.map +1 -0
- package/{dist → packages/ui/src}/components/ui/error-boundary.d.ts +5 -1
- package/packages/ui/src/components/ui/error-boundary.d.ts.map +1 -0
- package/{dist → packages/ui/src}/components/ui/error-boundary.js +1 -1
- package/packages/ui/src/components/ui/field-switch.d.ts +8 -0
- package/packages/ui/src/components/ui/field-switch.d.ts.map +1 -0
- package/packages/ui/src/components/ui/field-switch.js +10 -0
- package/packages/ui/src/components/ui/field.d.ts +11 -0
- package/packages/ui/src/components/ui/field.d.ts.map +1 -0
- package/packages/ui/src/components/ui/field.js +21 -0
- package/packages/ui/src/components/ui/form-select.d.ts +13 -0
- package/packages/ui/src/components/ui/form-select.d.ts.map +1 -0
- package/packages/ui/src/components/ui/form-select.js +9 -0
- package/{dist → packages/ui/src}/components/ui/grid.d.ts +1 -1
- package/packages/ui/src/components/ui/grid.d.ts.map +1 -0
- package/packages/ui/src/components/ui/input.d.ts +12 -0
- package/packages/ui/src/components/ui/input.d.ts.map +1 -0
- package/packages/ui/src/components/ui/input.js +28 -0
- package/packages/ui/src/components/ui/label.d.ts.map +1 -0
- package/packages/ui/src/components/ui/new-action-button.d.ts +7 -0
- package/packages/ui/src/components/ui/new-action-button.d.ts.map +1 -0
- package/packages/ui/src/components/ui/new-action-button.js +13 -0
- package/packages/ui/src/components/ui/popover.d.ts.map +1 -0
- package/packages/ui/src/components/ui/save-footer.d.ts.map +1 -0
- package/packages/ui/src/components/ui/save-footer.js +10 -0
- package/packages/ui/src/components/ui/section-card.d.ts.map +1 -0
- package/{dist → packages/ui/src}/components/ui/section-card.js +3 -2
- package/packages/ui/src/components/ui/segmented-control.d.ts +18 -0
- package/packages/ui/src/components/ui/segmented-control.d.ts.map +1 -0
- package/packages/ui/src/components/ui/segmented-control.js +10 -0
- package/packages/ui/src/components/ui/select.d.ts.map +1 -0
- package/{dist → packages/ui/src}/components/ui/select.js +7 -6
- package/packages/ui/src/components/ui/separator.d.ts.map +1 -0
- package/packages/ui/src/components/ui/settings-controls.d.ts +41 -0
- package/packages/ui/src/components/ui/settings-controls.d.ts.map +1 -0
- package/packages/ui/src/components/ui/settings-controls.js +60 -0
- package/packages/ui/src/components/ui/skeleton.d.ts.map +1 -0
- package/{dist → packages/ui/src}/components/ui/skeleton.js +1 -2
- package/packages/ui/src/components/ui/slider.d.ts.map +1 -0
- package/{dist → packages/ui/src}/components/ui/slider.js +1 -1
- package/packages/ui/src/components/ui/sonner.d.ts +2 -0
- package/packages/ui/src/components/ui/sonner.d.ts.map +1 -0
- package/packages/ui/src/components/ui/sonner.js +1 -0
- package/packages/ui/src/components/ui/spinner.d.ts.map +1 -0
- package/{dist → packages/ui/src}/components/ui/stack.d.ts +1 -1
- package/packages/ui/src/components/ui/stack.d.ts.map +1 -0
- package/{dist → packages/ui/src}/components/ui/status-badge.d.ts +11 -4
- package/packages/ui/src/components/ui/status-badge.d.ts.map +1 -0
- package/packages/ui/src/components/ui/status-badge.js +70 -0
- package/packages/ui/src/components/ui/switch.d.ts.map +1 -0
- package/packages/ui/src/components/ui/switch.js +7 -0
- package/packages/ui/src/components/ui/tabs.d.ts.map +1 -0
- package/{dist → packages/ui/src}/components/ui/tabs.js +1 -1
- package/packages/ui/src/components/ui/tag-editor.d.ts +12 -0
- package/packages/ui/src/components/ui/tag-editor.d.ts.map +1 -0
- package/packages/ui/src/components/ui/tag-editor.js +34 -0
- package/packages/ui/src/components/ui/tag-input.d.ts +3 -0
- package/packages/ui/src/components/ui/tag-input.d.ts.map +1 -0
- package/packages/ui/src/components/ui/tag-input.js +1 -0
- package/packages/ui/src/components/ui/textarea.d.ts +12 -0
- package/packages/ui/src/components/ui/textarea.d.ts.map +1 -0
- package/packages/ui/src/components/ui/textarea.js +28 -0
- package/{dist → packages/ui/src}/components/ui/themed-select.d.ts +3 -8
- package/packages/ui/src/components/ui/themed-select.d.ts.map +1 -0
- package/packages/ui/src/components/ui/themed-select.js +137 -0
- package/{dist → packages/ui/src}/components/ui/tooltip-extended.d.ts +3 -25
- package/packages/ui/src/components/ui/tooltip-extended.d.ts.map +1 -0
- package/packages/ui/src/components/ui/tooltip-extended.js +116 -0
- package/{dist → packages/ui/src}/components/ui/tooltip.d.ts +10 -0
- package/packages/ui/src/components/ui/tooltip.d.ts.map +1 -0
- package/packages/ui/src/components/ui/tooltip.js +13 -0
- package/{dist → packages/ui/src}/components/ui/typography.d.ts +2 -2
- package/packages/ui/src/components/ui/typography.d.ts.map +1 -0
- package/{dist → packages/ui/src}/components/ui/typography.js +1 -1
- package/packages/ui/src/hooks/index.d.ts +6 -0
- package/packages/ui/src/hooks/index.d.ts.map +1 -0
- package/packages/ui/src/hooks/index.js +5 -0
- package/packages/ui/src/hooks/useClickOutside.d.ts +3 -0
- package/packages/ui/src/hooks/useClickOutside.d.ts.map +1 -0
- package/packages/ui/src/hooks/useClickOutside.js +22 -0
- package/packages/ui/src/hooks/useDocumentVisibility.d.ts +3 -0
- package/packages/ui/src/hooks/useDocumentVisibility.d.ts.map +1 -0
- package/packages/ui/src/hooks/useDocumentVisibility.js +28 -0
- package/packages/ui/src/hooks/useKeyboardShortcuts.d.ts +13 -0
- package/packages/ui/src/hooks/useKeyboardShortcuts.d.ts.map +1 -0
- package/packages/ui/src/hooks/useKeyboardShortcuts.js +34 -0
- package/packages/ui/src/hooks/useLinkedSidebarSelection.d.ts +16 -0
- package/packages/ui/src/hooks/useLinkedSidebarSelection.d.ts.map +1 -0
- package/packages/ui/src/hooks/useLinkedSidebarSelection.js +117 -0
- package/packages/ui/src/hooks/useTimeout.d.ts +5 -0
- package/packages/ui/src/hooks/useTimeout.d.ts.map +1 -0
- package/packages/ui/src/hooks/useTimeout.js +26 -0
- package/packages/ui/src/index.d.ts +8 -0
- package/packages/ui/src/index.d.ts.map +1 -0
- package/packages/ui/src/index.js +7 -0
- package/packages/ui/src/layouts/chat-panel-layout/chat-panel-layout.d.ts +11 -0
- package/packages/ui/src/layouts/chat-panel-layout/chat-panel-layout.d.ts.map +1 -0
- package/packages/ui/src/layouts/chat-panel-layout/chat-panel-layout.js +37 -0
- package/packages/ui/src/layouts/chat-panel-layout/index.d.ts +2 -0
- package/packages/ui/src/layouts/chat-panel-layout/index.d.ts.map +1 -0
- package/packages/ui/src/layouts/chat-panel-layout/index.js +1 -0
- package/packages/ui/src/layouts/content-layout/content-layout.d.ts +21 -0
- package/packages/ui/src/layouts/content-layout/content-layout.d.ts.map +1 -0
- package/packages/ui/src/layouts/content-layout/content-layout.js +5 -0
- package/packages/ui/src/layouts/content-layout/index.d.ts +2 -0
- package/packages/ui/src/layouts/content-layout/index.d.ts.map +1 -0
- package/packages/ui/src/layouts/content-layout/index.js +1 -0
- package/packages/ui/src/layouts/index.d.ts +5 -0
- package/packages/ui/src/layouts/index.d.ts.map +1 -0
- package/packages/ui/src/layouts/index.js +4 -0
- package/packages/ui/src/layouts/layout-test-utils.d.ts +6 -0
- package/packages/ui/src/layouts/layout-test-utils.d.ts.map +1 -0
- package/packages/ui/src/layouts/layout-test-utils.js +36 -0
- package/packages/ui/src/layouts/page-layout/index.d.ts +5 -0
- package/packages/ui/src/layouts/page-layout/index.d.ts.map +1 -0
- package/packages/ui/src/layouts/page-layout/index.js +4 -0
- package/packages/ui/src/layouts/page-layout/page-layout-header.d.ts +5 -0
- package/packages/ui/src/layouts/page-layout/page-layout-header.d.ts.map +1 -0
- package/packages/ui/src/layouts/page-layout/page-layout-header.js +5 -0
- package/packages/ui/src/layouts/page-layout/page-layout-mobile-drawer.d.ts +3 -0
- package/packages/ui/src/layouts/page-layout/page-layout-mobile-drawer.d.ts.map +1 -0
- package/packages/ui/src/layouts/page-layout/page-layout-mobile-drawer.js +18 -0
- package/packages/ui/src/layouts/page-layout/page-layout-types.d.ts +15 -0
- package/packages/ui/src/layouts/page-layout/page-layout-types.d.ts.map +1 -0
- package/packages/ui/src/layouts/page-layout/page-layout-types.js +1 -0
- package/packages/ui/src/layouts/page-layout/page-layout.d.ts +3 -0
- package/packages/ui/src/layouts/page-layout/page-layout.d.ts.map +1 -0
- package/packages/ui/src/layouts/page-layout/page-layout.js +5 -0
- package/packages/ui/src/layouts/workspace-layout/index.d.ts +3 -0
- package/packages/ui/src/layouts/workspace-layout/index.d.ts.map +1 -0
- package/packages/ui/src/layouts/workspace-layout/index.js +2 -0
- package/packages/ui/src/layouts/workspace-layout/workspace-layout-types.d.ts +19 -0
- package/packages/ui/src/layouts/workspace-layout/workspace-layout-types.d.ts.map +1 -0
- package/packages/ui/src/layouts/workspace-layout/workspace-layout-types.js +1 -0
- package/packages/ui/src/layouts/workspace-layout/workspace-layout.d.ts +3 -0
- package/packages/ui/src/layouts/workspace-layout/workspace-layout.d.ts.map +1 -0
- package/packages/ui/src/layouts/workspace-layout/workspace-layout.js +50 -0
- package/packages/ui/src/lib/floating-layers.d.ts +17 -0
- package/packages/ui/src/lib/floating-layers.d.ts.map +1 -0
- package/packages/ui/src/lib/floating-layers.js +20 -0
- package/packages/ui/src/lib/utils.d.ts +3 -0
- package/packages/ui/src/lib/utils.d.ts.map +1 -0
- package/{dist → packages/ui/src}/lib/utils.js +0 -3
- package/packages/ui/src/stories/layout-story-fixtures.d.ts +14 -0
- package/packages/ui/src/stories/layout-story-fixtures.d.ts.map +1 -0
- package/packages/ui/src/stories/layout-story-fixtures.js +33 -0
- package/styles/theme.css +7 -0
- package/README.md +0 -6
- package/dist/components/ui/badge.d.ts.map +0 -1
- package/dist/components/ui/banner.d.ts.map +0 -1
- package/dist/components/ui/button.d.ts.map +0 -1
- package/dist/components/ui/button.js +0 -33
- package/dist/components/ui/card.d.ts.map +0 -1
- package/dist/components/ui/chat-atoms.d.ts +0 -26
- package/dist/components/ui/chat-atoms.d.ts.map +0 -1
- package/dist/components/ui/chat-atoms.js +0 -17
- package/dist/components/ui/checkbox.d.ts.map +0 -1
- package/dist/components/ui/confirm-delete.d.ts +0 -12
- package/dist/components/ui/confirm-delete.d.ts.map +0 -1
- package/dist/components/ui/confirm-delete.js +0 -13
- package/dist/components/ui/confirm-dialog.d.ts +0 -24
- package/dist/components/ui/confirm-dialog.d.ts.map +0 -1
- package/dist/components/ui/confirm-dialog.js +0 -55
- package/dist/components/ui/connection-status.d.ts.map +0 -1
- package/dist/components/ui/connection-status.js +0 -25
- package/dist/components/ui/copy-button.d.ts.map +0 -1
- package/dist/components/ui/dialog.d.ts.map +0 -1
- package/dist/components/ui/dialog.js +0 -22
- package/dist/components/ui/dropdown-menu.d.ts.map +0 -1
- package/dist/components/ui/empty-state.d.ts.map +0 -1
- package/dist/components/ui/error-boundary.d.ts.map +0 -1
- package/dist/components/ui/grid.d.ts.map +0 -1
- package/dist/components/ui/input.d.ts +0 -6
- package/dist/components/ui/input.d.ts.map +0 -1
- package/dist/components/ui/input.js +0 -8
- package/dist/components/ui/label.d.ts.map +0 -1
- package/dist/components/ui/popover.d.ts.map +0 -1
- package/dist/components/ui/save-footer.d.ts.map +0 -1
- package/dist/components/ui/save-footer.js +0 -9
- package/dist/components/ui/search-bar.d.ts.map +0 -1
- package/dist/components/ui/search-bar.js +0 -19
- package/dist/components/ui/search-input.d.ts.map +0 -1
- package/dist/components/ui/section-card.d.ts.map +0 -1
- package/dist/components/ui/select.d.ts.map +0 -1
- package/dist/components/ui/separator.d.ts.map +0 -1
- package/dist/components/ui/skeleton.d.ts.map +0 -1
- package/dist/components/ui/slider.d.ts.map +0 -1
- package/dist/components/ui/sonner.d.ts +0 -5
- package/dist/components/ui/sonner.d.ts.map +0 -1
- package/dist/components/ui/sonner.js +0 -15
- package/dist/components/ui/spinner.d.ts.map +0 -1
- package/dist/components/ui/stack.d.ts.map +0 -1
- package/dist/components/ui/status-badge.d.ts.map +0 -1
- package/dist/components/ui/status-badge.js +0 -41
- package/dist/components/ui/switch.d.ts.map +0 -1
- package/dist/components/ui/switch.js +0 -7
- package/dist/components/ui/tabs.d.ts.map +0 -1
- package/dist/components/ui/tag-editor.d.ts +0 -24
- package/dist/components/ui/tag-editor.d.ts.map +0 -1
- package/dist/components/ui/tag-editor.js +0 -32
- package/dist/components/ui/tag-input.d.ts +0 -19
- package/dist/components/ui/tag-input.d.ts.map +0 -1
- package/dist/components/ui/tag-input.js +0 -28
- package/dist/components/ui/textarea.d.ts +0 -6
- package/dist/components/ui/textarea.d.ts.map +0 -1
- package/dist/components/ui/textarea.js +0 -8
- package/dist/components/ui/themed-select.d.ts.map +0 -1
- package/dist/components/ui/themed-select.js +0 -57
- package/dist/components/ui/tooltip-extended.d.ts.map +0 -1
- package/dist/components/ui/tooltip-extended.js +0 -128
- package/dist/components/ui/tooltip.d.ts.map +0 -1
- package/dist/components/ui/tooltip.js +0 -10
- package/dist/components/ui/typography.d.ts.map +0 -1
- package/dist/index.d.ts +0 -42
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js +0 -43
- package/dist/lib/button-styles.d.ts +0 -12
- package/dist/lib/button-styles.d.ts.map +0 -1
- package/dist/lib/button-styles.js +0 -11
- package/dist/lib/utils.d.ts +0 -6
- package/dist/lib/utils.d.ts.map +0 -1
- package/dist/package.json +0 -64
- package/dist/styles/theme.css +0 -193
- package/src/styles/theme.css +0 -193
- /package/{dist/components/ui → packages/ui/src/components/composites/search}/search-input.d.ts +0 -0
- /package/{dist → packages/ui/src}/components/ui/badge.js +0 -0
- /package/{dist → packages/ui/src}/components/ui/banner.d.ts +0 -0
- /package/{dist → packages/ui/src}/components/ui/checkbox.d.ts +0 -0
- /package/{dist → packages/ui/src}/components/ui/checkbox.js +0 -0
- /package/{dist → packages/ui/src}/components/ui/copy-button.d.ts +0 -0
- /package/{dist → packages/ui/src}/components/ui/copy-button.js +0 -0
- /package/{dist → packages/ui/src}/components/ui/dropdown-menu.d.ts +0 -0
- /package/{dist → packages/ui/src}/components/ui/empty-state.d.ts +0 -0
- /package/{dist → packages/ui/src}/components/ui/empty-state.js +0 -0
- /package/{dist → packages/ui/src}/components/ui/grid.js +0 -0
- /package/{dist → packages/ui/src}/components/ui/label.d.ts +0 -0
- /package/{dist → packages/ui/src}/components/ui/label.js +0 -0
- /package/{dist → packages/ui/src}/components/ui/popover.d.ts +0 -0
- /package/{dist → packages/ui/src}/components/ui/popover.js +0 -0
- /package/{dist → packages/ui/src}/components/ui/save-footer.d.ts +0 -0
- /package/{dist → packages/ui/src}/components/ui/section-card.d.ts +0 -0
- /package/{dist → packages/ui/src}/components/ui/select.d.ts +0 -0
- /package/{dist → packages/ui/src}/components/ui/separator.d.ts +0 -0
- /package/{dist → packages/ui/src}/components/ui/separator.js +0 -0
- /package/{dist → packages/ui/src}/components/ui/skeleton.d.ts +0 -0
- /package/{dist → packages/ui/src}/components/ui/slider.d.ts +0 -0
- /package/{dist → packages/ui/src}/components/ui/spinner.d.ts +0 -0
- /package/{dist → packages/ui/src}/components/ui/spinner.js +0 -0
- /package/{dist → packages/ui/src}/components/ui/stack.js +0 -0
- /package/{dist → packages/ui/src}/components/ui/switch.d.ts +0 -0
- /package/{dist → packages/ui/src}/components/ui/tabs.d.ts +0 -0
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
export interface TrajectoryLlmCallCardProps {
|
|
3
|
+
callLabel: React.ReactNode;
|
|
4
|
+
copyLabel: React.ReactNode;
|
|
5
|
+
copyToClipboardLabel?: string;
|
|
6
|
+
costLabel: React.ReactNode;
|
|
7
|
+
costValue: React.ReactNode;
|
|
8
|
+
inputLabel: React.ReactNode;
|
|
9
|
+
latencyLabel: React.ReactNode;
|
|
10
|
+
maxLabel: React.ReactNode;
|
|
11
|
+
maxValue: React.ReactNode;
|
|
12
|
+
model: React.ReactNode;
|
|
13
|
+
onCopy: (content: string) => void;
|
|
14
|
+
outputLabel: React.ReactNode;
|
|
15
|
+
purposeLabel: React.ReactNode;
|
|
16
|
+
response: string;
|
|
17
|
+
systemCollapseLabel: React.ReactNode;
|
|
18
|
+
systemExpandLabel: React.ReactNode;
|
|
19
|
+
systemLabel: React.ReactNode;
|
|
20
|
+
systemLinesLabel: React.ReactNode;
|
|
21
|
+
systemPrompt?: string | null;
|
|
22
|
+
systemPromptButtonLabel: React.ReactNode;
|
|
23
|
+
temperatureLabel: React.ReactNode;
|
|
24
|
+
temperatureValue: React.ReactNode;
|
|
25
|
+
tokensLabel: React.ReactNode;
|
|
26
|
+
totalTokensValue: React.ReactNode;
|
|
27
|
+
tokenBreakdownMeta: React.ReactNode;
|
|
28
|
+
tags?: readonly string[];
|
|
29
|
+
inputLinesLabel: React.ReactNode;
|
|
30
|
+
outputLinesLabel: React.ReactNode;
|
|
31
|
+
userPrompt: string;
|
|
32
|
+
}
|
|
33
|
+
export declare function TrajectoryLlmCallCard({ callLabel, copyLabel, copyToClipboardLabel, costLabel, costValue, inputLabel, latencyLabel, maxLabel, maxValue, model, onCopy, outputLabel, purposeLabel, response, systemCollapseLabel, systemExpandLabel, systemLabel, systemLinesLabel, systemPrompt, systemPromptButtonLabel, temperatureLabel, temperatureValue, tokensLabel, totalTokensValue, tokenBreakdownMeta, tags, inputLinesLabel, outputLinesLabel, userPrompt, }: TrajectoryLlmCallCardProps): import("react/jsx-runtime").JSX.Element;
|
|
34
|
+
//# sourceMappingURL=trajectory-llm-call-card.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"trajectory-llm-call-card.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/composites/trajectories/trajectory-llm-call-card.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AA0B/B,MAAM,WAAW,0BAA0B;IACzC,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,UAAU,EAAE,KAAK,CAAC,SAAS,CAAC;IAC5B,YAAY,EAAE,KAAK,CAAC,SAAS,CAAC;IAC9B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,MAAM,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,WAAW,EAAE,KAAK,CAAC,SAAS,CAAC;IAC7B,YAAY,EAAE,KAAK,CAAC,SAAS,CAAC;IAC9B,QAAQ,EAAE,MAAM,CAAC;IACjB,mBAAmB,EAAE,KAAK,CAAC,SAAS,CAAC;IACrC,iBAAiB,EAAE,KAAK,CAAC,SAAS,CAAC;IACnC,WAAW,EAAE,KAAK,CAAC,SAAS,CAAC;IAC7B,gBAAgB,EAAE,KAAK,CAAC,SAAS,CAAC;IAClC,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,uBAAuB,EAAE,KAAK,CAAC,SAAS,CAAC;IACzC,gBAAgB,EAAE,KAAK,CAAC,SAAS,CAAC;IAClC,gBAAgB,EAAE,KAAK,CAAC,SAAS,CAAC;IAClC,WAAW,EAAE,KAAK,CAAC,SAAS,CAAC;IAC7B,gBAAgB,EAAE,KAAK,CAAC,SAAS,CAAC;IAClC,kBAAkB,EAAE,KAAK,CAAC,SAAS,CAAC;IACpC,IAAI,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IACzB,eAAe,EAAE,KAAK,CAAC,SAAS,CAAC;IACjC,gBAAgB,EAAE,KAAK,CAAC,SAAS,CAAC;IAClC,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,wBAAgB,qBAAqB,CAAC,EACpC,SAAS,EACT,SAAS,EACT,oBAAoB,EACpB,SAAS,EACT,SAAS,EACT,UAAU,EACV,YAAY,EACZ,QAAQ,EACR,QAAQ,EACR,KAAK,EACL,MAAM,EACN,WAAW,EACX,YAAY,EACZ,QAAQ,EACR,mBAAmB,EACnB,iBAAiB,EACjB,WAAW,EACX,gBAAgB,EAChB,YAAY,EACZ,uBAAuB,EACvB,gBAAgB,EAChB,gBAAgB,EAChB,WAAW,EACX,gBAAgB,EAChB,kBAAkB,EAClB,IAAI,EACJ,eAAe,EACf,gBAAgB,EAChB,UAAU,GACX,EAAE,0BAA0B,2CAoH5B"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { ChevronDown, ChevronRight } from "lucide-react";
|
|
3
|
+
import * as React from "react";
|
|
4
|
+
import { Button } from "../../ui/button";
|
|
5
|
+
import { PagePanel } from "../page-panel";
|
|
6
|
+
import { TrajectoryCodeBlock } from "./trajectory-code-block";
|
|
7
|
+
function CallMetric({ label, value, meta }) {
|
|
8
|
+
return (_jsxs(PagePanel.SummaryCard, { compact: true, className: "px-4 py-3", children: [_jsx("div", { className: "text-xs-tight uppercase tracking-[0.14em] text-muted/70", children: label }), _jsx("div", { className: "mt-2 text-sm font-semibold text-txt", children: value }), meta ? (_jsx("div", { className: "mt-1 text-xs-tight text-muted", children: meta })) : null] }));
|
|
9
|
+
}
|
|
10
|
+
export function TrajectoryLlmCallCard({ callLabel, copyLabel, copyToClipboardLabel, costLabel, costValue, inputLabel, latencyLabel, maxLabel, maxValue, model, onCopy, outputLabel, purposeLabel, response, systemCollapseLabel, systemExpandLabel, systemLabel, systemLinesLabel, systemPrompt, systemPromptButtonLabel, temperatureLabel, temperatureValue, tokensLabel, totalTokensValue, tokenBreakdownMeta, tags, inputLinesLabel, outputLinesLabel, userPrompt, }) {
|
|
11
|
+
const [showSystem, setShowSystem] = React.useState(false);
|
|
12
|
+
const purposeValue = tags?.length ? tags.join(", ") : "Inference";
|
|
13
|
+
return (_jsxs(PagePanel, { variant: "section", className: "p-5", children: [_jsxs("div", { className: "flex flex-col gap-4", children: [_jsxs("div", { className: "flex flex-col gap-3 lg:flex-row lg:items-start lg:justify-between", children: [_jsxs("div", { className: "space-y-1.5", children: [_jsx("div", { className: "text-[11px] font-semibold uppercase tracking-[0.16em] text-muted", children: callLabel }), _jsx("div", { className: "text-lg font-semibold text-txt", children: model }), tags?.length ? (_jsx("div", { className: "flex flex-wrap gap-2", children: tags.map((tag) => (_jsx("span", { className: "rounded-full border border-border/50 bg-bg/60 px-2.5 py-1 text-[11px] font-medium text-muted", children: tag }, tag))) })) : null] }), systemPrompt ? (_jsxs(Button, { type: "button", variant: "outline", size: "sm", onClick: () => setShowSystem((current) => !current), className: "shrink-0 gap-2 self-start", children: [showSystem ? (_jsx(ChevronDown, { className: "h-3.5 w-3.5" })) : (_jsx(ChevronRight, { className: "h-3.5 w-3.5" })), showSystem ? systemCollapseLabel : systemPromptButtonLabel] })) : null] }), _jsxs("div", { className: "grid gap-3 md:grid-cols-2 xl:grid-cols-4", children: [_jsx(CallMetric, { label: purposeLabel, value: purposeValue, meta: callLabel }), _jsx(CallMetric, { label: latencyLabel, value: response.length, meta: outputLinesLabel }), _jsx(CallMetric, { label: costLabel, value: costValue, meta: temperatureLabel }), _jsx(CallMetric, { label: tokensLabel, value: totalTokensValue, meta: tokenBreakdownMeta }), _jsx(CallMetric, { label: maxLabel, value: maxValue, meta: inputLinesLabel }), _jsx(CallMetric, { label: temperatureLabel, value: temperatureValue, meta: systemPrompt ? systemLinesLabel : systemExpandLabel })] }), systemPrompt && showSystem ? (_jsx(TrajectoryCodeBlock, { content: systemPrompt, label: systemLabel, linesLabel: systemLinesLabel, copyLabel: copyLabel, copyToClipboardLabel: copyToClipboardLabel, collapseLabel: systemCollapseLabel, expandLabel: systemExpandLabel, onCopy: onCopy })) : null] }), _jsxs("div", { className: "mt-4 grid gap-4 xl:grid-cols-2", children: [_jsx(TrajectoryCodeBlock, { content: userPrompt, label: inputLabel, linesLabel: inputLinesLabel, copyLabel: copyLabel, copyToClipboardLabel: copyToClipboardLabel, collapseLabel: systemCollapseLabel, expandLabel: systemExpandLabel, onCopy: onCopy }), _jsx(TrajectoryCodeBlock, { content: response, label: outputLabel, linesLabel: outputLinesLabel, copyLabel: copyLabel, copyToClipboardLabel: copyToClipboardLabel, collapseLabel: systemCollapseLabel, expandLabel: systemExpandLabel, onCopy: onCopy })] })] }));
|
|
14
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* TrajectoryPipelineGraph — horizontal pipeline visualization showing
|
|
3
|
+
* agent processing stages: input → shouldRespond → plan → actions → evaluators.
|
|
4
|
+
*
|
|
5
|
+
* Pure presentational component. The parent owns filter state and passes
|
|
6
|
+
* pre-computed node data.
|
|
7
|
+
*/
|
|
8
|
+
import type { LucideIcon } from "lucide-react";
|
|
9
|
+
export type PipelineStageId = "input" | "should_respond" | "plan" | "actions" | "evaluators";
|
|
10
|
+
export interface PipelineNode {
|
|
11
|
+
id: PipelineStageId;
|
|
12
|
+
label: string;
|
|
13
|
+
callCount: number;
|
|
14
|
+
status: "active" | "skipped" | "error";
|
|
15
|
+
icon: LucideIcon;
|
|
16
|
+
}
|
|
17
|
+
export interface TrajectoryPipelineGraphProps {
|
|
18
|
+
/** Ordered array of pipeline nodes (typically 5). */
|
|
19
|
+
nodes: PipelineNode[];
|
|
20
|
+
/** Currently selected stage, or null for "show all". */
|
|
21
|
+
activeStageId: PipelineStageId | null;
|
|
22
|
+
/** Callback when a stage node is clicked. */
|
|
23
|
+
onStageClick: (stageId: PipelineStageId) => void;
|
|
24
|
+
}
|
|
25
|
+
export declare function TrajectoryPipelineGraph({ nodes, activeStageId, onStageClick, }: TrajectoryPipelineGraphProps): import("react/jsx-runtime").JSX.Element;
|
|
26
|
+
//# sourceMappingURL=trajectory-pipeline-graph.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"trajectory-pipeline-graph.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/composites/trajectories/trajectory-pipeline-graph.tsx"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAM/C,MAAM,MAAM,eAAe,GACvB,OAAO,GACP,gBAAgB,GAChB,MAAM,GACN,SAAS,GACT,YAAY,CAAC;AAEjB,MAAM,WAAW,YAAY;IAC3B,EAAE,EAAE,eAAe,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,QAAQ,GAAG,SAAS,GAAG,OAAO,CAAC;IACvC,IAAI,EAAE,UAAU,CAAC;CAClB;AAED,MAAM,WAAW,4BAA4B;IAC3C,qDAAqD;IACrD,KAAK,EAAE,YAAY,EAAE,CAAC;IACtB,wDAAwD;IACxD,aAAa,EAAE,eAAe,GAAG,IAAI,CAAC;IACtC,6CAA6C;IAC7C,YAAY,EAAE,CAAC,OAAO,EAAE,eAAe,KAAK,IAAI,CAAC;CAClD;AA4GD,wBAAgB,uBAAuB,CAAC,EACtC,KAAK,EACL,aAAa,EACb,YAAY,GACb,EAAE,4BAA4B,2CAsB9B"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
// ---------------------------------------------------------------------------
|
|
3
|
+
// Sub-components
|
|
4
|
+
// ---------------------------------------------------------------------------
|
|
5
|
+
function PipelineConnector({ dimmed }) {
|
|
6
|
+
return (_jsx("div", { className: `flex items-center ${dimmed ? "opacity-30" : "opacity-60"}`, children: _jsxs("svg", { width: "36", height: "12", viewBox: "0 0 36 12", fill: "none", className: "shrink-0", "aria-hidden": "true", focusable: "false", children: [_jsx("line", { x1: "0", y1: "6", x2: "28", y2: "6", stroke: "currentColor", strokeWidth: "1.5", className: "text-muted" }), _jsx("path", { d: "M28 2 L34 6 L28 10", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round", fill: "none", className: "text-muted" })] }) }));
|
|
7
|
+
}
|
|
8
|
+
function PipelineNodeButton({ node, selected, onClick, }) {
|
|
9
|
+
const Icon = node.icon;
|
|
10
|
+
const statusClasses = {
|
|
11
|
+
active: selected
|
|
12
|
+
? "border-primary/40 bg-primary/5 ring-2 ring-primary/30 shadow-sm"
|
|
13
|
+
: "border-border/40 hover:border-border/60 hover:shadow-sm",
|
|
14
|
+
skipped: selected
|
|
15
|
+
? "border-primary/30 bg-primary/5 ring-2 ring-primary/20 opacity-70"
|
|
16
|
+
: "border-border/25 border-dashed opacity-50 hover:opacity-70",
|
|
17
|
+
error: selected
|
|
18
|
+
? "border-danger/40 bg-danger/5 ring-2 ring-danger/30"
|
|
19
|
+
: "border-danger/30 hover:border-danger/40",
|
|
20
|
+
};
|
|
21
|
+
const iconColor = {
|
|
22
|
+
active: selected ? "text-primary" : "text-txt/70",
|
|
23
|
+
skipped: "text-muted/50",
|
|
24
|
+
error: "text-danger/80",
|
|
25
|
+
};
|
|
26
|
+
const countBg = {
|
|
27
|
+
active: selected ? "bg-primary/15 text-primary" : "bg-muted/10 text-txt/60",
|
|
28
|
+
skipped: "bg-muted/8 text-muted/40",
|
|
29
|
+
error: "bg-danger/10 text-danger/70",
|
|
30
|
+
};
|
|
31
|
+
return (_jsxs("button", { type: "button", onClick: onClick, className: `
|
|
32
|
+
flex min-w-[90px] flex-col items-center gap-1.5 rounded-xl border
|
|
33
|
+
px-3 py-2.5 transition-all duration-150 cursor-pointer select-none
|
|
34
|
+
${statusClasses[node.status]}
|
|
35
|
+
`, children: [_jsx(Icon, { className: `h-5 w-5 ${iconColor[node.status]}` }), _jsx("span", { className: "text-2xs font-semibold uppercase tracking-[0.12em] text-txt/70 whitespace-nowrap", children: node.label }), _jsx("span", { className: `
|
|
36
|
+
rounded-full px-2 py-0.5 text-2xs font-bold leading-none
|
|
37
|
+
${countBg[node.status]}
|
|
38
|
+
`, children: node.id === "input" ? "\u2713" : node.callCount })] }));
|
|
39
|
+
}
|
|
40
|
+
// ---------------------------------------------------------------------------
|
|
41
|
+
// Main component
|
|
42
|
+
// ---------------------------------------------------------------------------
|
|
43
|
+
export function TrajectoryPipelineGraph({ nodes, activeStageId, onStageClick, }) {
|
|
44
|
+
return (_jsx("div", { className: "flex items-center gap-1 overflow-x-auto py-1", children: nodes.map((node, i) => (_jsxs("div", { className: "contents", children: [i > 0 && (_jsx(PipelineConnector, { dimmed: node.status === "skipped" ||
|
|
45
|
+
(i > 0 && nodes[i - 1].status === "skipped") })), _jsx(PipelineNodeButton, { node: node, selected: activeStageId === node.id, onClick: () => onStageClick(node.id) })] }, node.id))) }));
|
|
46
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type * as React from "react";
|
|
2
|
+
export interface TrajectorySidebarItemProps {
|
|
3
|
+
active?: boolean;
|
|
4
|
+
callCount: React.ReactNode;
|
|
5
|
+
durationLabel: React.ReactNode;
|
|
6
|
+
onSelect?: () => void;
|
|
7
|
+
sourceColor?: string;
|
|
8
|
+
sourceLabel: React.ReactNode;
|
|
9
|
+
statusColor?: string;
|
|
10
|
+
statusLabel: React.ReactNode;
|
|
11
|
+
title: React.ReactNode;
|
|
12
|
+
tokenLabel: React.ReactNode;
|
|
13
|
+
}
|
|
14
|
+
export declare function TrajectorySidebarItem({ active, callCount, durationLabel, onSelect, sourceColor, sourceLabel, statusColor, statusLabel, title, tokenLabel, }: TrajectorySidebarItemProps): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
//# sourceMappingURL=trajectory-sidebar-item.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"trajectory-sidebar-item.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/composites/trajectories/trajectory-sidebar-item.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AAsBpC,MAAM,WAAW,0BAA0B;IACzC,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,aAAa,EAAE,KAAK,CAAC,SAAS,CAAC;IAC/B,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,KAAK,CAAC,SAAS,CAAC;IAC7B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,KAAK,CAAC,SAAS,CAAC;IAC7B,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,UAAU,EAAE,KAAK,CAAC,SAAS,CAAC;CAC7B;AAED,wBAAgB,qBAAqB,CAAC,EACpC,MAAc,EACd,SAAS,EACT,aAAa,EACb,QAAQ,EACR,WAAW,EACX,WAAW,EACX,WAAW,EACX,WAAW,EACX,KAAK,EACL,UAAU,GACX,EAAE,0BAA0B,2CA0B5B"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { SidebarContent } from "../sidebar";
|
|
3
|
+
function InlineMeta({ color, label, }) {
|
|
4
|
+
return (_jsxs("span", { className: "inline-flex items-center gap-1.5 text-2xs font-medium text-muted/85", children: [_jsx("span", { className: "h-1.5 w-1.5 rounded-full", style: color ? { backgroundColor: color } : undefined }), _jsx("span", { children: label })] }));
|
|
5
|
+
}
|
|
6
|
+
export function TrajectorySidebarItem({ active = false, callCount, durationLabel, onSelect, sourceColor, sourceLabel, statusColor, statusLabel, title, tokenLabel, }) {
|
|
7
|
+
return (_jsxs(SidebarContent.Item, { active: active, onClick: onSelect, "aria-current": active ? "page" : undefined, children: [_jsx(SidebarContent.ItemIcon, { active: active, className: "text-xs-tight font-bold", children: callCount }), _jsxs(SidebarContent.ItemBody, { children: [_jsx(SidebarContent.ItemTitle, { children: title }), _jsx(SidebarContent.ItemDescription, { children: _jsxs("span", { className: "flex flex-wrap items-center gap-x-2 gap-y-1", children: [_jsx(InlineMeta, { label: sourceLabel, color: sourceColor }), _jsx(InlineMeta, { label: statusLabel, color: statusColor }), _jsx("span", { children: tokenLabel }), _jsx("span", { children: durationLabel })] }) })] })] }));
|
|
8
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export * from "../ui/badge";
|
|
2
|
+
export * from "../ui/button";
|
|
3
|
+
export * from "../ui/card";
|
|
4
|
+
export * from "../ui/checkbox";
|
|
5
|
+
export * from "../ui/dialog";
|
|
6
|
+
export * from "../ui/drawer-sheet";
|
|
7
|
+
export * from "../ui/dropdown-menu";
|
|
8
|
+
export * from "../ui/grid";
|
|
9
|
+
export * from "../ui/input";
|
|
10
|
+
export * from "../ui/label";
|
|
11
|
+
export * from "../ui/popover";
|
|
12
|
+
export * from "../ui/select";
|
|
13
|
+
export * from "../ui/separator";
|
|
14
|
+
export * from "../ui/skeleton";
|
|
15
|
+
export * from "../ui/slider";
|
|
16
|
+
export * from "../ui/sonner";
|
|
17
|
+
export * from "../ui/spinner";
|
|
18
|
+
export * from "../ui/stack";
|
|
19
|
+
export * from "../ui/switch";
|
|
20
|
+
export * from "../ui/tabs";
|
|
21
|
+
export * from "../ui/tag-editor";
|
|
22
|
+
export * from "../ui/tag-input";
|
|
23
|
+
export * from "../ui/textarea";
|
|
24
|
+
export * from "../ui/tooltip";
|
|
25
|
+
export * from "../ui/typography";
|
|
26
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/primitives/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export * from "../ui/badge";
|
|
2
|
+
export * from "../ui/button";
|
|
3
|
+
export * from "../ui/card";
|
|
4
|
+
export * from "../ui/checkbox";
|
|
5
|
+
export * from "../ui/dialog";
|
|
6
|
+
export * from "../ui/drawer-sheet";
|
|
7
|
+
export * from "../ui/dropdown-menu";
|
|
8
|
+
export * from "../ui/grid";
|
|
9
|
+
export * from "../ui/input";
|
|
10
|
+
export * from "../ui/label";
|
|
11
|
+
export * from "../ui/popover";
|
|
12
|
+
export * from "../ui/select";
|
|
13
|
+
export * from "../ui/separator";
|
|
14
|
+
export * from "../ui/skeleton";
|
|
15
|
+
export * from "../ui/slider";
|
|
16
|
+
export * from "../ui/sonner";
|
|
17
|
+
export * from "../ui/spinner";
|
|
18
|
+
export * from "../ui/stack";
|
|
19
|
+
export * from "../ui/switch";
|
|
20
|
+
export * from "../ui/tabs";
|
|
21
|
+
export * from "../ui/tag-editor";
|
|
22
|
+
export * from "../ui/tag-input";
|
|
23
|
+
export * from "../ui/textarea";
|
|
24
|
+
export * from "../ui/tooltip";
|
|
25
|
+
export * from "../ui/typography";
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import type * as React from "react";
|
|
2
|
+
import { DialogContent } from "./dialog";
|
|
3
|
+
import { type InputProps } from "./input";
|
|
4
|
+
export interface AdminDialogContentProps extends React.ComponentPropsWithoutRef<typeof DialogContent> {
|
|
5
|
+
className?: string;
|
|
6
|
+
children?: React.ReactNode;
|
|
7
|
+
container?: HTMLElement | null;
|
|
8
|
+
}
|
|
9
|
+
export declare function AdminDialogContent({ className, ...props }: AdminDialogContentProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export interface AdminDialogHeaderProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
11
|
+
}
|
|
12
|
+
export declare function AdminDialogHeader({ className, ...props }: AdminDialogHeaderProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export interface AdminDialogFooterProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
14
|
+
}
|
|
15
|
+
export declare function AdminDialogFooterChrome({ className, ...props }: AdminDialogFooterProps): import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
export interface AdminDialogBodyScrollProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
17
|
+
}
|
|
18
|
+
export declare function AdminDialogBodyScroll({ className, ...props }: AdminDialogBodyScrollProps): import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
export interface AdminMetaBadgeProps extends React.HTMLAttributes<HTMLSpanElement> {
|
|
20
|
+
}
|
|
21
|
+
export declare function AdminMetaBadge({ className, ...props }: AdminMetaBadgeProps): import("react/jsx-runtime").JSX.Element;
|
|
22
|
+
export interface AdminMonoMetaProps extends React.HTMLAttributes<HTMLSpanElement> {
|
|
23
|
+
}
|
|
24
|
+
export declare function AdminMonoMeta({ className, ...props }: AdminMonoMetaProps): import("react/jsx-runtime").JSX.Element;
|
|
25
|
+
export interface AdminInputProps extends InputProps {
|
|
26
|
+
}
|
|
27
|
+
export declare function AdminInput({ className, ...props }: AdminInputProps): import("react/jsx-runtime").JSX.Element;
|
|
28
|
+
export interface AdminCodeEditorProps extends React.TextareaHTMLAttributes<HTMLTextAreaElement> {
|
|
29
|
+
}
|
|
30
|
+
export declare function AdminCodeEditor({ className, ...props }: AdminCodeEditorProps): import("react/jsx-runtime").JSX.Element;
|
|
31
|
+
export interface AdminSegmentedTabListProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
32
|
+
}
|
|
33
|
+
export declare function AdminSegmentedTabList({ className, ...props }: AdminSegmentedTabListProps): import("react/jsx-runtime").JSX.Element;
|
|
34
|
+
export interface AdminSegmentedTabProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
35
|
+
active?: boolean;
|
|
36
|
+
}
|
|
37
|
+
export declare function AdminSegmentedTab({ active, className, ...props }: AdminSegmentedTabProps): import("react/jsx-runtime").JSX.Element;
|
|
38
|
+
export declare const AdminDialog: {
|
|
39
|
+
Content: typeof AdminDialogContent;
|
|
40
|
+
Header: typeof AdminDialogHeader;
|
|
41
|
+
Footer: typeof AdminDialogFooterChrome;
|
|
42
|
+
BodyScroll: typeof AdminDialogBodyScroll;
|
|
43
|
+
MetaBadge: typeof AdminMetaBadge;
|
|
44
|
+
MonoMeta: typeof AdminMonoMeta;
|
|
45
|
+
Input: typeof AdminInput;
|
|
46
|
+
CodeEditor: typeof AdminCodeEditor;
|
|
47
|
+
SegmentedTabList: typeof AdminSegmentedTabList;
|
|
48
|
+
SegmentedTab: typeof AdminSegmentedTab;
|
|
49
|
+
};
|
|
50
|
+
//# sourceMappingURL=admin-dialog.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"admin-dialog.d.ts","sourceRoot":"","sources":["../../../../../../src/components/ui/admin-dialog.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AAGpC,OAAO,EAAE,aAAa,EAA8B,MAAM,UAAU,CAAC;AACrE,OAAO,EAAS,KAAK,UAAU,EAAE,MAAM,SAAS,CAAC;AAEjD,MAAM,WAAW,uBACf,SAAQ,KAAK,CAAC,wBAAwB,CAAC,OAAO,aAAa,CAAC;IAC5D,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,SAAS,CAAC,EAAE,WAAW,GAAG,IAAI,CAAC;CAChC;AAED,wBAAgB,kBAAkB,CAAC,EACjC,SAAS,EACT,GAAG,KAAK,EACT,EAAE,uBAAuB,2CAUzB;AAED,MAAM,WAAW,sBACf,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;CAAG;AAEjD,wBAAgB,iBAAiB,CAAC,EAChC,SAAS,EACT,GAAG,KAAK,EACT,EAAE,sBAAsB,2CAUxB;AAED,MAAM,WAAW,sBACf,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;CAAG;AAEjD,wBAAgB,uBAAuB,CAAC,EACtC,SAAS,EACT,GAAG,KAAK,EACT,EAAE,sBAAsB,2CAUxB;AAED,MAAM,WAAW,0BACf,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;CAAG;AAEjD,wBAAgB,qBAAqB,CAAC,EACpC,SAAS,EACT,GAAG,KAAK,EACT,EAAE,0BAA0B,2CAO5B;AAED,MAAM,WAAW,mBACf,SAAQ,KAAK,CAAC,cAAc,CAAC,eAAe,CAAC;CAAG;AAElD,wBAAgB,cAAc,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,mBAAmB,2CAU1E;AAED,MAAM,WAAW,kBACf,SAAQ,KAAK,CAAC,cAAc,CAAC,eAAe,CAAC;CAAG;AAElD,wBAAgB,aAAa,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,kBAAkB,2CAOxE;AAED,MAAM,WAAW,eAAgB,SAAQ,UAAU;CAAG;AAEtD,wBAAgB,UAAU,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,eAAe,2CAUlE;AAED,MAAM,WAAW,oBACf,SAAQ,KAAK,CAAC,sBAAsB,CAAC,mBAAmB,CAAC;CAAG;AAE9D,wBAAgB,eAAe,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,oBAAoB,2CAU5E;AAED,MAAM,WAAW,0BACf,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;CAAG;AAEjD,wBAAgB,qBAAqB,CAAC,EACpC,SAAS,EACT,GAAG,KAAK,EACT,EAAE,0BAA0B,2CAU5B;AAED,MAAM,WAAW,sBACf,SAAQ,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC;IACrD,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAED,wBAAgB,iBAAiB,CAAC,EAChC,MAAc,EACd,SAAS,EACT,GAAG,KAAK,EACT,EAAE,sBAAsB,2CAcxB;AAED,eAAO,MAAM,WAAW;;;;;;;;;;;CAWvB,CAAC"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { cn } from "../../lib/utils";
|
|
3
|
+
import { DialogContent, DialogFooter, DialogHeader } from "./dialog";
|
|
4
|
+
import { Input } from "./input";
|
|
5
|
+
export function AdminDialogContent({ className, ...props }) {
|
|
6
|
+
return (_jsx(DialogContent, { className: cn("flex w-full flex-col overflow-hidden rounded-2xl border border-border/60 bg-card/98 p-0 shadow-2xl", className), ...props }));
|
|
7
|
+
}
|
|
8
|
+
export function AdminDialogHeader({ className, ...props }) {
|
|
9
|
+
return (_jsx(DialogHeader, { className: cn("shrink-0 bg-card/80 px-5 py-4", className), ...props }));
|
|
10
|
+
}
|
|
11
|
+
export function AdminDialogFooterChrome({ className, ...props }) {
|
|
12
|
+
return (_jsx(DialogFooter, { className: cn("shrink-0 bg-card/80 px-5 py-4", className), ...props }));
|
|
13
|
+
}
|
|
14
|
+
export function AdminDialogBodyScroll({ className, ...props }) {
|
|
15
|
+
return (_jsx("div", { className: cn("custom-scrollbar flex-1 overflow-y-auto", className), ...props }));
|
|
16
|
+
}
|
|
17
|
+
export function AdminMetaBadge({ className, ...props }) {
|
|
18
|
+
return (_jsx("span", { className: cn("rounded-full border border-border/40 bg-bg-accent/80 px-2 py-0.5 text-2xs font-bold lowercase tracking-widest text-muted-strong", className), ...props }));
|
|
19
|
+
}
|
|
20
|
+
export function AdminMonoMeta({ className, ...props }) {
|
|
21
|
+
return (_jsx("span", { className: cn("text-2xs font-mono text-muted/70", className), ...props }));
|
|
22
|
+
}
|
|
23
|
+
export function AdminInput({ className, ...props }) {
|
|
24
|
+
return (_jsx(Input, { className: cn("h-10 w-full rounded-xl border border-border/50 bg-card/85 px-3 text-sm font-mono text-txt shadow-inner transition-[border-color,box-shadow,background-color] placeholder:text-muted/60 focus-visible:ring-accent", className), ...props }));
|
|
25
|
+
}
|
|
26
|
+
export function AdminCodeEditor({ className, ...props }) {
|
|
27
|
+
return (_jsx("textarea", { className: cn("h-full w-full resize-none border-0 bg-bg-hover p-5 font-mono text-sm leading-relaxed text-txt focus:outline-none focus-visible:ring-2 focus-visible:ring-accent/40 focus-visible:ring-inset", className), ...props }));
|
|
28
|
+
}
|
|
29
|
+
export function AdminSegmentedTabList({ className, ...props }) {
|
|
30
|
+
return (_jsx("div", { className: cn("flex bg-bg-accent/35", className), ...props }));
|
|
31
|
+
}
|
|
32
|
+
export function AdminSegmentedTab({ active = false, className, ...props }) {
|
|
33
|
+
return (_jsx("button", { type: "button", className: cn("flex-1 rounded-none border-b-2 px-4 py-2.5 text-xs-tight font-bold tracking-[0.1em] transition-[border-color,color,background-color]", active
|
|
34
|
+
? "border-accent text-accent"
|
|
35
|
+
: "border-transparent text-muted-strong hover:text-txt", className), ...props }));
|
|
36
|
+
}
|
|
37
|
+
export const AdminDialog = {
|
|
38
|
+
Content: AdminDialogContent,
|
|
39
|
+
Header: AdminDialogHeader,
|
|
40
|
+
Footer: AdminDialogFooterChrome,
|
|
41
|
+
BodyScroll: AdminDialogBodyScroll,
|
|
42
|
+
MetaBadge: AdminMetaBadge,
|
|
43
|
+
MonoMeta: AdminMonoMeta,
|
|
44
|
+
Input: AdminInput,
|
|
45
|
+
CodeEditor: AdminCodeEditor,
|
|
46
|
+
SegmentedTabList: AdminSegmentedTabList,
|
|
47
|
+
SegmentedTab: AdminSegmentedTab,
|
|
48
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type VariantProps } from "class-variance-authority";
|
|
2
2
|
import type * as React from "react";
|
|
3
3
|
declare const badgeVariants: (props?: ({
|
|
4
|
-
variant?: "default" | "
|
|
4
|
+
variant?: "default" | "destructive" | "outline" | "secondary" | null | undefined;
|
|
5
5
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
6
6
|
export interface BadgeProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof badgeVariants> {
|
|
7
7
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"badge.d.ts","sourceRoot":"","sources":["../../../../../../src/components/ui/badge.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AAIpC,QAAA,MAAM,aAAa;;8EAiBlB,CAAC;AAEF,MAAM,WAAW,UACf,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,EAC1C,YAAY,CAAC,OAAO,aAAa,CAAC;CAAG;AAEzC,iBAAS,KAAK,CAAC,EAAE,SAAS,EAAE,OAAO,EAAE,GAAG,KAAK,EAAE,EAAE,UAAU,2CAI1D;AAED,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"banner.d.ts","sourceRoot":"","sources":["../../../../../../src/components/ui/banner.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAElE,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,QAAA,MAAM,cAAc;;8EAcnB,CAAC;AAQF,MAAM,WAAW,WACf,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,EAC1C,YAAY,CAAC,OAAO,cAAc,CAAC;IACrC,6CAA6C;IAC7C,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB,0BAA0B;IAC1B,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,qCAAqC;IACrC,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;IACvB,oCAAoC;IACpC,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,eAAO,MAAM,MAAM,oFAwClB,CAAC"}
|
|
@@ -3,6 +3,7 @@ import { cva } from "class-variance-authority";
|
|
|
3
3
|
import { AlertTriangle, Info, X, XCircle } from "lucide-react";
|
|
4
4
|
import * as React from "react";
|
|
5
5
|
import { cn } from "../../lib/utils";
|
|
6
|
+
import { Button } from "./button";
|
|
6
7
|
const bannerVariants = cva("flex items-center gap-3 border px-4 py-2.5 text-xs", {
|
|
7
8
|
variants: {
|
|
8
9
|
variant: {
|
|
@@ -22,6 +23,6 @@ const ICONS = {
|
|
|
22
23
|
};
|
|
23
24
|
export const Banner = React.forwardRef(({ variant = "info", action, dismissible, onDismiss, dismissLabel = "Dismiss", className, children, ...props }, ref) => {
|
|
24
25
|
const Icon = ICONS[variant ?? "info"];
|
|
25
|
-
return (_jsxs("div", { ref: ref, className: cn(bannerVariants({ variant }), className), role: "alert", ...props, children: [_jsx(Icon, { className: "h-4 w-4 shrink-0" }), _jsx("span", { className: "flex-1", children: children }), action, dismissible && (_jsx(
|
|
26
|
+
return (_jsxs("div", { ref: ref, className: cn(bannerVariants({ variant }), className), role: "alert", ...props, children: [_jsx(Icon, { className: "h-4 w-4 shrink-0" }), _jsx("span", { className: "flex-1", children: children }), action, dismissible && (_jsx(Button, { variant: "ghost", size: "icon", onClick: onDismiss, className: "h-6 w-6 rounded-sm opacity-70 hover:opacity-100 transition-opacity", "aria-label": dismissLabel, children: _jsx(X, { className: "h-3.5 w-3.5" }) }))] }));
|
|
26
27
|
});
|
|
27
28
|
Banner.displayName = "Banner";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type VariantProps } from "class-variance-authority";
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
declare const buttonVariants: (props?: ({
|
|
4
|
-
variant?: "default" | "
|
|
4
|
+
variant?: "link" | "default" | "surface" | "surfaceAccent" | "surfaceDestructive" | "destructive" | "outline" | "secondary" | "ghost" | null | undefined;
|
|
5
5
|
size?: "default" | "sm" | "lg" | "icon" | null | undefined;
|
|
6
6
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
7
7
|
export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../../../../../src/components/ui/button.tsx"],"names":[],"mappings":"AACA,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,QAAA,MAAM,cAAc;;;8EAoCnB,CAAC;AAEF,MAAM,WAAW,WACf,SAAQ,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,EACnD,YAAY,CAAC,OAAO,cAAc,CAAC;IACrC,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,QAAA,MAAM,MAAM,uFAYX,CAAC;AAGF,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,CAAC"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { Slot } from "@radix-ui/react-slot";
|
|
3
|
+
import { cva } from "class-variance-authority";
|
|
4
|
+
import * as React from "react";
|
|
5
|
+
import { cn } from "../../lib/utils";
|
|
6
|
+
const buttonVariants = cva("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-bg transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 cursor-pointer [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0", {
|
|
7
|
+
variants: {
|
|
8
|
+
variant: {
|
|
9
|
+
default:
|
|
10
|
+
// Solid accent surfaces use text-accent-fg; translucent accent buttons
|
|
11
|
+
// switch to text-accent in dark mode to preserve contrast.
|
|
12
|
+
"border border-accent/45 bg-accent/18 text-accent-fg dark:text-accent shadow-sm hover:border-accent/70 hover:bg-accent/28",
|
|
13
|
+
surface: "border border-border/32 bg-[linear-gradient(180deg,color-mix(in_srgb,var(--card)_84%,transparent),color-mix(in_srgb,var(--bg)_95%,transparent))] text-muted-strong shadow-[inset_0_1px_0_rgba(255,255,255,0.14),0_14px_20px_-18px_rgba(15,23,42,0.14)] backdrop-blur-md transition-[border-color,background-color,color,transform,box-shadow] duration-200 hover:border-border/46 hover:bg-[linear-gradient(180deg,color-mix(in_srgb,var(--card)_90%,transparent),color-mix(in_srgb,var(--bg)_97%,transparent))] hover:text-txt hover:shadow-[inset_0_1px_0_rgba(255,255,255,0.16),0_16px_22px_-18px_rgba(15,23,42,0.16)] active:scale-95 disabled:hover:border-border/32 disabled:hover:bg-[linear-gradient(180deg,color-mix(in_srgb,var(--card)_84%,transparent),color-mix(in_srgb,var(--bg)_95%,transparent))] disabled:hover:text-muted-strong dark:shadow-[inset_0_1px_0_rgba(255,255,255,0.04),0_16px_24px_-20px_rgba(0,0,0,0.24)]",
|
|
14
|
+
surfaceAccent: "border border-accent/26 bg-[linear-gradient(180deg,rgba(var(--accent-rgb),0.16),rgba(var(--accent-rgb),0.07))] text-txt-strong shadow-[inset_0_1px_0_rgba(255,255,255,0.16),0_14px_22px_-18px_rgba(var(--accent-rgb),0.24)] ring-1 ring-inset ring-accent/10 hover:border-accent/42 hover:bg-[linear-gradient(180deg,rgba(var(--accent-rgb),0.2),rgba(var(--accent-rgb),0.1))] hover:text-txt-strong",
|
|
15
|
+
surfaceDestructive: "border border-danger/30 bg-[linear-gradient(180deg,rgba(239,68,68,0.12),rgba(239,68,68,0.06))] text-danger shadow-[inset_0_1px_0_rgba(255,255,255,0.12),0_14px_20px_-18px_rgba(127,29,29,0.18)] hover:border-danger/44 hover:bg-[linear-gradient(180deg,rgba(239,68,68,0.16),rgba(239,68,68,0.08))] hover:text-danger",
|
|
16
|
+
destructive: "border border-destructive/45 bg-destructive/92 text-destructive-fg shadow-sm hover:border-destructive/75 hover:bg-destructive",
|
|
17
|
+
outline: "border border-border bg-card/92 text-txt shadow-sm hover:border-border-strong hover:bg-bg-hover",
|
|
18
|
+
secondary: "border border-border bg-bg-accent text-txt shadow-sm hover:border-border-strong hover:bg-bg-hover",
|
|
19
|
+
ghost: "text-muted-strong hover:bg-bg-accent hover:text-txt",
|
|
20
|
+
link: "text-primary underline-offset-4 hover:underline",
|
|
21
|
+
},
|
|
22
|
+
size: {
|
|
23
|
+
default: "h-10 px-4 py-2",
|
|
24
|
+
sm: "h-9 rounded-md px-3 py-1.5",
|
|
25
|
+
lg: "h-11 rounded-md px-8 py-2.5",
|
|
26
|
+
icon: "h-10 w-10",
|
|
27
|
+
},
|
|
28
|
+
},
|
|
29
|
+
defaultVariants: {
|
|
30
|
+
variant: "default",
|
|
31
|
+
size: "default",
|
|
32
|
+
},
|
|
33
|
+
});
|
|
34
|
+
const Button = React.forwardRef(({ className, variant, size, asChild = false, style, ...props }, ref) => {
|
|
35
|
+
const Comp = asChild ? Slot : "button";
|
|
36
|
+
return (_jsx(Comp, { className: cn(buttonVariants({ variant, size, className })), ref: ref, style: style, ...props }));
|
|
37
|
+
});
|
|
38
|
+
Button.displayName = "Button";
|
|
39
|
+
export { Button, buttonVariants };
|
|
@@ -1,9 +1,15 @@
|
|
|
1
|
+
import { type VariantProps } from "class-variance-authority";
|
|
1
2
|
import * as React from "react";
|
|
2
|
-
declare const
|
|
3
|
+
declare const cardVariants: (props?: ({
|
|
4
|
+
variant?: "flat" | "status" | "default" | "interactive" | "setting" | null | undefined;
|
|
5
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
6
|
+
export interface CardProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof cardVariants> {
|
|
7
|
+
}
|
|
8
|
+
declare const Card: React.ForwardRefExoticComponent<CardProps & React.RefAttributes<HTMLDivElement>>;
|
|
3
9
|
declare const CardHeader: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
4
10
|
declare const CardTitle: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLHeadingElement> & React.RefAttributes<HTMLParagraphElement>>;
|
|
5
11
|
declare const CardDescription: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>;
|
|
6
12
|
declare const CardContent: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
7
13
|
declare const CardFooter: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
8
|
-
export { Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, };
|
|
14
|
+
export { Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, cardVariants, };
|
|
9
15
|
//# sourceMappingURL=card.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"card.d.ts","sourceRoot":"","sources":["../../../../../../src/components/ui/card.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,QAAA,MAAM,YAAY;;8EAkBjB,CAAC;AAEF,MAAM,WAAW,SACf,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,EAC1C,YAAY,CAAC,OAAO,YAAY,CAAC;CAAG;AAExC,QAAA,MAAM,IAAI,kFAQT,CAAC;AAGF,QAAA,MAAM,UAAU,6GASd,CAAC;AAGH,QAAA,MAAM,SAAS,uHASb,CAAC;AAGH,QAAA,MAAM,eAAe,yHAKnB,CAAC;AAGH,QAAA,MAAM,WAAW,6GAKf,CAAC;AAGH,QAAA,MAAM,UAAU,6GASd,CAAC;AAGH,OAAO,EACL,IAAI,EACJ,WAAW,EACX,eAAe,EACf,UAAU,EACV,UAAU,EACV,SAAS,EACT,YAAY,GACb,CAAC"}
|
|
@@ -1,7 +1,22 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { cva } from "class-variance-authority";
|
|
2
3
|
import * as React from "react";
|
|
3
4
|
import { cn } from "../../lib/utils";
|
|
4
|
-
const
|
|
5
|
+
const cardVariants = cva("rounded-xl border border-border bg-card text-card-fg", {
|
|
6
|
+
variants: {
|
|
7
|
+
variant: {
|
|
8
|
+
default: "shadow-[0_10px_28px_rgba(15,23,42,0.08)] dark:shadow-[0_16px_40px_rgba(0,0,0,0.28)]",
|
|
9
|
+
interactive: "shadow-[0_10px_28px_rgba(15,23,42,0.08)] dark:shadow-[0_16px_40px_rgba(0,0,0,0.28)] transition-[border-color,box-shadow] hover:border-border-strong hover:shadow-md cursor-pointer",
|
|
10
|
+
status: "shadow-sm",
|
|
11
|
+
setting: "shadow-sm p-0",
|
|
12
|
+
flat: "",
|
|
13
|
+
},
|
|
14
|
+
},
|
|
15
|
+
defaultVariants: {
|
|
16
|
+
variant: "default",
|
|
17
|
+
},
|
|
18
|
+
});
|
|
19
|
+
const Card = React.forwardRef(({ className, variant, ...props }, ref) => (_jsx("div", { ref: ref, className: cn(cardVariants({ variant }), className), ...props })));
|
|
5
20
|
Card.displayName = "Card";
|
|
6
21
|
const CardHeader = React.forwardRef(({ className, ...props }, ref) => (_jsx("div", { ref: ref, className: cn("flex flex-col space-y-1.5 p-6", className), ...props })));
|
|
7
22
|
CardHeader.displayName = "CardHeader";
|
|
@@ -13,4 +28,4 @@ const CardContent = React.forwardRef(({ className, ...props }, ref) => (_jsx("di
|
|
|
13
28
|
CardContent.displayName = "CardContent";
|
|
14
29
|
const CardFooter = React.forwardRef(({ className, ...props }, ref) => (_jsx("div", { ref: ref, className: cn("flex items-center p-6 pt-0", className), ...props })));
|
|
15
30
|
CardFooter.displayName = "CardFooter";
|
|
16
|
-
export { Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, };
|
|
31
|
+
export { Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, cardVariants, };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"checkbox.d.ts","sourceRoot":"","sources":["../../../../../../src/components/ui/checkbox.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,iBAAiB,MAAM,0BAA0B,CAAC;AAE9D,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,QAAA,MAAM,QAAQ,iKAkBZ,CAAC;AAGH,OAAO,EAAE,QAAQ,EAAE,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export interface ConfirmDeleteProps {
|
|
2
|
+
onConfirm: () => void;
|
|
3
|
+
disabled?: boolean;
|
|
4
|
+
triggerLabel?: string;
|
|
5
|
+
confirmLabel?: string;
|
|
6
|
+
cancelLabel?: string;
|
|
7
|
+
busyLabel?: string;
|
|
8
|
+
promptText?: string;
|
|
9
|
+
className?: string;
|
|
10
|
+
/** Override the trigger button class (replaces default). */
|
|
11
|
+
triggerClassName?: string;
|
|
12
|
+
/** Override the confirm button class (replaces default). */
|
|
13
|
+
confirmClassName?: string;
|
|
14
|
+
/** Override the cancel button class (replaces default). */
|
|
15
|
+
cancelClassName?: string;
|
|
16
|
+
/** Override the prompt text class (replaces default). */
|
|
17
|
+
promptClassName?: string;
|
|
18
|
+
}
|
|
19
|
+
export declare function ConfirmDelete({ onConfirm, disabled, triggerLabel, confirmLabel, cancelLabel, busyLabel, promptText, className, triggerClassName, confirmClassName, cancelClassName, promptClassName, }: ConfirmDeleteProps): import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
//# sourceMappingURL=confirm-delete.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"confirm-delete.d.ts","sourceRoot":"","sources":["../../../../../../src/components/ui/confirm-delete.tsx"],"names":[],"mappings":"AAGA,MAAM,WAAW,kBAAkB;IACjC,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,4DAA4D;IAC5D,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,4DAA4D;IAC5D,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,2DAA2D;IAC3D,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,yDAAyD;IACzD,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED,wBAAgB,aAAa,CAAC,EAC5B,SAAS,EACT,QAAgB,EAChB,YAAuB,EACvB,YAAwB,EACxB,WAAsB,EACtB,SAAS,EACT,UAAsB,EACtB,SAAS,EACT,gBAAgB,EAChB,gBAAgB,EAChB,eAAe,EACf,eAAe,GAChB,EAAE,kBAAkB,2CA0DpB"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import { cn } from "../../lib/utils";
|
|
4
|
+
export function ConfirmDelete({ onConfirm, disabled = false, triggerLabel = "Delete", confirmLabel = "Confirm", cancelLabel = "Cancel", busyLabel, promptText = "Delete?", className, triggerClassName, confirmClassName, cancelClassName, promptClassName, }) {
|
|
5
|
+
const [confirming, setConfirming] = React.useState(false);
|
|
6
|
+
if (!confirming) {
|
|
7
|
+
return (_jsx("button", { type: "button", className: triggerClassName ??
|
|
8
|
+
cn("rounded-md border border-border px-2 py-1 text-xs text-muted transition-colors hover:border-destructive hover:text-destructive", className), onClick: () => setConfirming(true), disabled: disabled, children: triggerLabel }));
|
|
9
|
+
}
|
|
10
|
+
return (_jsxs("span", { className: cn("inline-flex items-center gap-1.5", className), children: [_jsx("span", { className: promptClassName ?? "text-xs-tight text-destructive", children: promptText }), _jsx("button", { type: "button", className: confirmClassName ??
|
|
11
|
+
"rounded-md border border-destructive bg-destructive px-2 py-0.5 text-2xs font-medium text-destructive-fg transition-opacity hover:opacity-90 disabled:opacity-50", onClick: () => {
|
|
12
|
+
onConfirm();
|
|
13
|
+
setConfirming(false);
|
|
14
|
+
}, disabled: disabled, children: disabled && busyLabel ? busyLabel : confirmLabel }), _jsx("button", { type: "button", className: cancelClassName ??
|
|
15
|
+
"rounded-md border border-border px-2 py-0.5 text-2xs text-muted transition-colors hover:border-accent hover:text-accent disabled:opacity-50", onClick: () => setConfirming(false), disabled: disabled, children: cancelLabel })] }));
|
|
16
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
export type ConfirmVariant = "danger" | "warn" | "default";
|
|
2
|
+
export interface ConfirmDialogProps {
|
|
3
|
+
open: boolean;
|
|
4
|
+
title?: string;
|
|
5
|
+
message: string;
|
|
6
|
+
confirmLabel?: string;
|
|
7
|
+
cancelLabel?: string;
|
|
8
|
+
variant?: ConfirmVariant;
|
|
9
|
+
tone?: ConfirmVariant;
|
|
10
|
+
onConfirm: () => void;
|
|
11
|
+
onCancel: () => void;
|
|
12
|
+
}
|
|
13
|
+
export declare function ConfirmDialog({ open, title, message, confirmLabel, cancelLabel, variant: variantProp, tone, onConfirm, onCancel, }: ConfirmDialogProps): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export interface PromptDialogProps {
|
|
15
|
+
open: boolean;
|
|
16
|
+
title?: string;
|
|
17
|
+
message: string;
|
|
18
|
+
placeholder?: string;
|
|
19
|
+
defaultValue?: string;
|
|
20
|
+
confirmLabel?: string;
|
|
21
|
+
cancelLabel?: string;
|
|
22
|
+
onConfirm: (value: string) => void;
|
|
23
|
+
onCancel: () => void;
|
|
24
|
+
}
|
|
25
|
+
export declare function PromptDialog({ open, title, message, placeholder, defaultValue, confirmLabel, cancelLabel, onConfirm, onCancel, }: PromptDialogProps): import("react/jsx-runtime").JSX.Element;
|
|
26
|
+
export interface ConfirmOptions {
|
|
27
|
+
title?: string;
|
|
28
|
+
message: string;
|
|
29
|
+
confirmLabel?: string;
|
|
30
|
+
cancelLabel?: string;
|
|
31
|
+
variant?: ConfirmVariant;
|
|
32
|
+
}
|
|
33
|
+
export declare function useConfirm(): {
|
|
34
|
+
confirm: (opts: ConfirmOptions) => Promise<boolean>;
|
|
35
|
+
modalProps: ConfirmDialogProps;
|
|
36
|
+
};
|
|
37
|
+
export interface PromptOptions {
|
|
38
|
+
title?: string;
|
|
39
|
+
message: string;
|
|
40
|
+
placeholder?: string;
|
|
41
|
+
defaultValue?: string;
|
|
42
|
+
confirmLabel?: string;
|
|
43
|
+
cancelLabel?: string;
|
|
44
|
+
}
|
|
45
|
+
export declare function usePrompt(): {
|
|
46
|
+
prompt: (opts: PromptOptions) => Promise<string | null>;
|
|
47
|
+
modalProps: PromptDialogProps;
|
|
48
|
+
};
|
|
49
|
+
//# sourceMappingURL=confirm-dialog.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"confirm-dialog.d.ts","sourceRoot":"","sources":["../../../../../../src/components/ui/confirm-dialog.tsx"],"names":[],"mappings":"AAcA,MAAM,MAAM,cAAc,GAAG,QAAQ,GAAG,MAAM,GAAG,SAAS,CAAC;AAE3D,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,OAAO,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,cAAc,CAAC;IACzB,IAAI,CAAC,EAAE,cAAc,CAAC;IACtB,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,QAAQ,EAAE,MAAM,IAAI,CAAC;CACtB;AAED,wBAAgB,aAAa,CAAC,EAC5B,IAAI,EACJ,KAAiB,EACjB,OAAO,EACP,YAAwB,EACxB,WAAsB,EACtB,OAAO,EAAE,WAAW,EACpB,IAAI,EACJ,SAAS,EACT,QAAQ,GACT,EAAE,kBAAkB,2CAqCpB;AAED,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,OAAO,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,QAAQ,EAAE,MAAM,IAAI,CAAC;CACtB;AAED,wBAAgB,YAAY,CAAC,EAC3B,IAAI,EACJ,KAAqB,EACrB,OAAO,EACP,WAAW,EACX,YAAiB,EACjB,YAAwB,EACxB,WAAsB,EACtB,SAAS,EACT,QAAQ,GACT,EAAE,iBAAiB,2CAoDnB;AAED,MAAM,WAAW,cAAc;IAC7B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,cAAc,CAAC;CAC1B;AAED,wBAAgB,UAAU;oBAOf,cAAc,KAAG,OAAO,CAAC,OAAO,CAAC;;EA4B3C;AAED,MAAM,WAAW,aAAa;IAC5B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,wBAAgB,SAAS;mBAOd,aAAa,KAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC;;EA4BhD"}
|