@exegia/corpora-ui 0.29.0 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +33 -11
- package/dist-lib/index.js +13006 -7914
- package/dist-lib/index.js.map +1 -1
- package/dist-lib/src/components/atoms/_layout.d.ts +4 -0
- package/dist-lib/src/components/atoms/avatar/base.d.ts +2 -0
- package/dist-lib/src/components/atoms/avatar/index.d.ts +2 -0
- package/dist-lib/src/components/atoms/avatar/types.d.ts +20 -0
- package/dist-lib/src/components/atoms/avatar/utils.d.ts +13 -0
- package/dist-lib/src/components/atoms/avatar/verified.d.ts +1 -0
- package/dist-lib/src/components/atoms/background/index.d.ts +6 -0
- package/dist-lib/src/components/atoms/background/texture.d.ts +2 -0
- package/dist-lib/src/components/atoms/background/type.d.ts +7 -0
- package/dist-lib/src/components/atoms/background/utils.d.ts +4 -0
- package/dist-lib/src/components/atoms/bubble/actions.d.ts +7 -0
- package/dist-lib/src/components/atoms/bubble/context.d.ts +4 -0
- package/dist-lib/src/components/atoms/bubble/default.d.ts +3 -0
- package/dist-lib/src/components/atoms/bubble/header.d.ts +8 -0
- package/dist-lib/src/components/atoms/bubble/index.d.ts +16 -0
- package/dist-lib/src/components/atoms/bubble/message.d.ts +3 -0
- package/dist-lib/src/components/atoms/bubble/reactions.d.ts +14 -0
- package/dist-lib/src/components/atoms/bubble/types.d.ts +59 -0
- package/dist-lib/src/components/atoms/bubble/utils.d.ts +13 -0
- package/dist-lib/src/components/atoms/chip.d.ts +15 -0
- package/dist-lib/src/components/atoms/index.d.ts +15 -0
- package/dist-lib/src/components/atoms/loader.d.ts +8 -0
- package/dist-lib/src/components/atoms/reference.d.ts +7 -0
- package/dist-lib/src/components/atoms/text/default.d.ts +1144 -0
- package/dist-lib/src/components/atoms/text/heading.d.ts +4 -0
- package/dist-lib/src/components/atoms/text/index.d.ts +21 -0
- package/dist-lib/src/components/atoms/text/label.d.ts +2 -0
- package/dist-lib/src/components/atoms/text/paragraph.d.ts +4 -0
- package/dist-lib/src/components/atoms/text/span.d.ts +3 -0
- package/dist-lib/src/components/atoms/text/types.d.ts +23 -0
- package/dist-lib/src/components/atoms/text/utils.d.ts +4 -0
- package/dist-lib/src/components/atoms/text-selection/click-popover.d.ts +3 -0
- package/dist-lib/src/components/atoms/text-selection/index.d.ts +6 -0
- package/dist-lib/src/components/atoms/text-selection/popover.d.ts +3 -0
- package/dist-lib/src/components/atoms/text-selection/selection-atom.d.ts +30 -0
- package/dist-lib/src/components/atoms/text-selection/selection.d.ts +3 -0
- package/dist-lib/src/components/atoms/text-selection/types.d.ts +90 -0
- package/dist-lib/src/components/atoms/text-selection/use-selection.d.ts +7 -0
- package/dist-lib/src/components/atoms/types.d.ts +17 -0
- package/dist-lib/src/components/blocks/auth/auth-flow-block.story.d.ts +3 -0
- package/dist-lib/src/components/blocks/auth/code-auth-block.story.d.ts +3 -0
- package/dist-lib/src/components/blocks/auth/forgot-password-block.story.d.ts +3 -0
- package/dist-lib/src/components/blocks/auth/linked-accounts-block.story.d.ts +3 -0
- package/dist-lib/src/components/blocks/auth/login-block.story.d.ts +3 -0
- package/dist-lib/src/components/blocks/auth/onboarding-block.story.d.ts +3 -0
- package/dist-lib/src/components/blocks/auth/passkey-manager-block.story.d.ts +3 -0
- package/dist-lib/src/components/blocks/auth/passkey-sign-in-block.story.d.ts +3 -0
- package/dist-lib/src/components/blocks/auth/signup-block.story.d.ts +3 -0
- package/dist-lib/src/components/blocks/auth/update-password-block.story.d.ts +3 -0
- package/dist-lib/src/components/blocks/chat/banners.d.ts +13 -0
- package/dist-lib/src/components/blocks/chat/base.d.ts +10 -0
- package/dist-lib/src/components/blocks/chat/base.story.d.ts +3 -0
- package/dist-lib/src/components/blocks/chat/header.d.ts +4 -0
- package/dist-lib/src/components/blocks/chat/index.d.ts +13 -0
- package/dist-lib/src/components/blocks/chat/recommendation-stack.d.ts +13 -0
- package/dist-lib/src/components/blocks/chat/shared.d.ts +8 -0
- package/dist-lib/src/components/blocks/chat/suggested-prompts.d.ts +3 -0
- package/dist-lib/src/components/blocks/chat/types.d.ts +64 -0
- package/dist-lib/src/components/blocks/chat/version-history-record.d.ts +3 -0
- package/dist-lib/{components → src/components}/blocks/profile/profile-card-block.d.ts +2 -7
- package/dist-lib/src/components/blocks/profile/profile-card-block.story.d.ts +3 -0
- package/dist-lib/{components → src/components}/blocks/profile/type.d.ts +2 -2
- package/dist-lib/src/components/blocks/scaffold/scaffold-root.story.d.ts +3 -0
- package/dist-lib/src/components/blocks/shell/shell-layout.story.d.ts +3 -0
- package/dist-lib/src/components/composed/action-bar/action.d.ts +18 -0
- package/dist-lib/src/components/composed/action-bar/emojis.d.ts +10 -0
- package/dist-lib/src/components/composed/action-bar/index.d.ts +12 -0
- package/dist-lib/src/components/composed/action-bar/toolbar.d.ts +2 -0
- package/dist-lib/src/components/composed/action-bar/types.d.ts +55 -0
- package/dist-lib/src/components/composed/action-bar/utils.d.ts +57 -0
- package/dist-lib/src/components/composed/ai/avatar.d.ts +1 -0
- package/dist-lib/src/components/composed/ai/index.d.ts +17 -0
- package/dist-lib/src/components/composed/ai/message.d.ts +7 -0
- package/dist-lib/src/components/composed/ai/research-answer.d.ts +30 -0
- package/dist-lib/src/components/composed/ai/shared.d.ts +19 -0
- package/dist-lib/src/components/composed/ai/streaming-text.d.ts +26 -0
- package/dist-lib/src/components/composed/ai/suggested-prompt.d.ts +35 -0
- package/dist-lib/src/components/composed/ai/types.d.ts +66 -0
- package/dist-lib/src/components/composed/attachment.story.d.ts +3 -0
- package/dist-lib/src/components/composed/chart.story.d.ts +3 -0
- package/dist-lib/src/components/composed/chat/__tests__/attachment.test.d.ts +1 -0
- package/dist-lib/src/components/composed/chat/__tests__/beautiful-ui.test.d.ts +1 -0
- package/dist-lib/src/components/composed/chat/__tests__/chart.test.d.ts +1 -0
- package/dist-lib/src/components/composed/chat/__tests__/code-block.test.d.ts +1 -0
- package/dist-lib/src/components/composed/chat/__tests__/composer-attachments.test.d.ts +1 -0
- package/dist-lib/src/components/composed/chat/__tests__/composer.test.d.ts +1 -0
- package/dist-lib/src/components/composed/chat/__tests__/flowchart.test.d.ts +1 -0
- package/dist-lib/src/components/composed/chat/__tests__/markdown.test.d.ts +1 -0
- package/dist-lib/src/components/composed/chat/actions.d.ts +2 -0
- package/dist-lib/src/components/composed/chat/attachment.d.ts +62 -0
- package/dist-lib/src/components/composed/chat/chart.d.ts +41 -0
- package/dist-lib/src/components/composed/chat/code-block.d.ts +26 -0
- package/dist-lib/src/components/composed/chat/composer/add-button.d.ts +5 -0
- package/dist-lib/src/components/composed/chat/composer/base.d.ts +8 -0
- package/dist-lib/src/components/composed/chat/composer/command-menu.d.ts +2 -0
- package/dist-lib/src/components/composed/chat/composer/hooks.d.ts +9 -0
- package/dist-lib/src/components/composed/chat/composer/index.d.ts +10 -0
- package/dist-lib/src/components/composed/chat/composer/send-button.d.ts +3 -0
- package/dist-lib/src/components/composed/chat/composer/suggestions.d.ts +7 -0
- package/dist-lib/src/components/composed/chat/composer/utils.d.ts +19 -0
- package/dist-lib/src/components/composed/chat/context-cards.d.ts +27 -0
- package/dist-lib/src/components/composed/chat/filter-table.d.ts +40 -0
- package/dist-lib/src/components/composed/chat/flowchart/chart-node.d.ts +2 -0
- package/dist-lib/src/components/composed/chat/flowchart/connector.d.ts +2 -0
- package/dist-lib/src/components/composed/chat/flowchart/constant.d.ts +15 -0
- package/dist-lib/src/components/composed/chat/flowchart/default.d.ts +7 -0
- package/dist-lib/src/components/composed/chat/flowchart/edge-toolbar.d.ts +9 -0
- package/dist-lib/src/components/composed/chat/flowchart/hooks.d.ts +290 -0
- package/dist-lib/src/components/composed/chat/flowchart/index.d.ts +11 -0
- package/dist-lib/src/components/composed/chat/flowchart/step-body.d.ts +6 -0
- package/dist-lib/src/components/composed/chat/flowchart/types.d.ts +91 -0
- package/dist-lib/src/components/composed/chat/flowchart/utils.d.ts +64 -0
- package/dist-lib/src/components/composed/chat/hint.d.ts +6 -0
- package/dist-lib/src/components/composed/chat/index.d.ts +15 -0
- package/dist-lib/src/components/composed/chat/insight-cards.d.ts +54 -0
- package/dist-lib/src/components/composed/chat/markdown-atom.d.ts +7 -0
- package/dist-lib/src/components/composed/chat/markdown.d.ts +22 -0
- package/dist-lib/src/components/composed/chat/recommendation/checkbox.d.ts +15 -0
- package/dist-lib/src/components/composed/chat/recommendation/constant.d.ts +6 -0
- package/dist-lib/src/components/composed/chat/recommendation/default.d.ts +7 -0
- package/dist-lib/src/components/composed/chat/recommendation/group.d.ts +8 -0
- package/dist-lib/src/components/composed/chat/recommendation/index.d.ts +15 -0
- package/dist-lib/src/components/composed/chat/recommendation/item.d.ts +12 -0
- package/dist-lib/src/components/composed/chat/recommendation/types.d.ts +53 -0
- package/dist-lib/src/components/composed/chat/records-table.d.ts +38 -0
- package/dist-lib/src/components/composed/chat/type.d.ts +86 -0
- package/dist-lib/src/components/composed/code-block.story.d.ts +3 -0
- package/dist-lib/src/components/composed/context-cards.story.d.ts +3 -0
- package/dist-lib/src/components/composed/emoji-action-bar.story.d.ts +3 -0
- package/dist-lib/src/components/composed/filter-table.story.d.ts +7 -0
- package/dist-lib/src/components/composed/flowchart.story.d.ts +3 -0
- package/dist-lib/src/components/composed/insight-cards.story.d.ts +3 -0
- package/dist-lib/src/components/composed/logo.story.d.ts +3 -0
- package/dist-lib/src/components/composed/markdown.story.d.ts +3 -0
- package/dist-lib/src/components/composed/password-input.story.d.ts +7 -0
- package/dist-lib/src/components/composed/reader/applied-mark.d.ts +3 -0
- package/dist-lib/src/components/composed/reader/apply-toast.d.ts +3 -0
- package/dist-lib/src/components/composed/reader/index.d.ts +7 -0
- package/dist-lib/src/components/composed/reader/selection-highlight.d.ts +3 -0
- package/dist-lib/src/components/composed/reader/selection-popover.d.ts +9 -0
- package/dist-lib/src/components/composed/reader/type.d.ts +40 -0
- package/dist-lib/src/components/composed/recommendation-card.story.d.ts +3 -0
- package/dist-lib/src/components/composed/records-table.story.d.ts +3 -0
- package/dist-lib/src/components/composed/research-answer.story.d.ts +3 -0
- package/dist-lib/src/components/composed/social-providers.story.d.ts +3 -0
- package/dist-lib/src/components/composed/streaming-text.story.d.ts +3 -0
- package/dist-lib/src/components/composed/tree/__tests__/tree-atom.test.d.ts +1 -0
- package/dist-lib/src/components/composed/tree/__tests__/tree.test.d.ts +1 -0
- package/dist-lib/src/components/composed/tree/__tests__/use-tree.test.d.ts +1 -0
- package/dist-lib/src/components/composed/tree.story.d.ts +6 -0
- package/dist-lib/src/components/composed/user/index.d.ts +11 -0
- package/dist-lib/src/components/composed/user/info.d.ts +12 -0
- package/dist-lib/src/components/composed/user/message.d.ts +3 -0
- package/dist-lib/src/components/composed/user/pill.d.ts +10 -0
- package/dist-lib/src/components/composed/user/types.d.ts +20 -0
- package/dist-lib/src/components/composed/user/utils.d.ts +1 -0
- package/dist-lib/src/components/composed/user.story.d.ts +8 -0
- package/dist-lib/src/components/composed/verse/__tests__/verse.test.d.ts +1 -0
- package/dist-lib/src/components/composed/verse/index.d.ts +2 -0
- package/dist-lib/src/components/composed/verse/types.d.ts +18 -0
- package/dist-lib/src/components/composed/verse/verse.d.ts +5 -0
- package/dist-lib/src/components/composed/verse.story.d.ts +3 -0
- package/dist-lib/src/components/docs/atoms-gallery.d.ts +3 -0
- package/dist-lib/{components → src/components}/docs/demo-controls.d.ts +3 -10
- package/dist-lib/src/components/docs/hero.d.ts +5 -0
- package/dist-lib/src/components/docs/mermaid.d.ts +3 -0
- package/dist-lib/src/components/icons/__tests__/icons.test.d.ts +1 -0
- package/dist-lib/src/components/motion/index.d.ts +1 -0
- package/dist-lib/src/components/ui/accordion.d.ts +7 -0
- package/dist-lib/src/components/ui/alert-dialog.d.ts +20 -0
- package/dist-lib/src/components/ui/alert.d.ts +10 -0
- package/dist-lib/src/components/ui/autocomplete.d.ts +34 -0
- package/dist-lib/src/components/ui/avatar.d.ts +11 -0
- package/dist-lib/src/components/ui/avatar.story.d.ts +7 -0
- package/dist-lib/src/components/ui/badge.d.ts +14 -0
- package/dist-lib/src/components/ui/bubble.story.d.ts +7 -0
- package/dist-lib/{components → src/components}/ui/button.d.ts +1 -1
- package/dist-lib/src/components/ui/button.story.d.ts +8 -0
- package/dist-lib/src/components/ui/card.story.d.ts +9 -0
- package/dist-lib/src/components/ui/chat/__tests__/segmented-toggle.test.d.ts +1 -0
- package/dist-lib/src/components/ui/chat/avatar-handle.d.ts +13 -0
- package/dist-lib/src/components/ui/chat/badges.d.ts +29 -0
- package/dist-lib/src/components/ui/chat/buttons.d.ts +29 -0
- package/dist-lib/src/components/ui/chat/chips.d.ts +48 -0
- package/dist-lib/src/components/ui/chat/dot.d.ts +30 -0
- package/dist-lib/src/components/ui/chat/icon-button.d.ts +18 -0
- package/dist-lib/src/components/ui/chat/icon-tile.d.ts +20 -0
- package/dist-lib/src/components/ui/chat/index.d.ts +12 -0
- package/dist-lib/src/components/ui/chat/inline-source.d.ts +20 -0
- package/dist-lib/src/components/ui/chat/segmented-toggle.d.ts +20 -0
- package/dist-lib/src/components/ui/chat/tag.d.ts +21 -0
- package/dist-lib/src/components/ui/chat/thumbnail.d.ts +13 -0
- package/dist-lib/src/components/ui/chat/waveform.d.ts +13 -0
- package/dist-lib/src/components/ui/chat-atoms.story.d.ts +22 -0
- package/dist-lib/src/components/ui/checkbox.story.d.ts +7 -0
- package/dist-lib/src/components/ui/collapsible.d.ts +6 -0
- package/dist-lib/src/components/ui/command.d.ts +25 -0
- package/dist-lib/src/components/ui/context-menu.d.ts +42 -0
- package/dist-lib/src/components/ui/emoji-picker.d.ts +7 -0
- package/dist-lib/src/components/ui/field.story.d.ts +7 -0
- package/dist-lib/src/components/ui/file-icons.story.d.ts +7 -0
- package/dist-lib/src/components/ui/frame.story.d.ts +9 -0
- package/dist-lib/{components → src/components}/ui/glasscn/glass-container.d.ts +7 -2
- package/dist-lib/src/components/ui/input-group.story.d.ts +7 -0
- package/dist-lib/src/components/ui/input.story.d.ts +9 -0
- package/dist-lib/src/components/ui/kbd.d.ts +3 -0
- package/dist-lib/src/components/ui/label.story.d.ts +9 -0
- package/dist-lib/src/components/ui/menu-command.d.ts +37 -0
- package/dist-lib/src/components/ui/menu-command.story.d.ts +7 -0
- package/dist-lib/src/components/ui/otp-field.story.d.ts +9 -0
- package/dist-lib/src/components/ui/password-input.story.d.ts +3 -0
- package/dist-lib/src/components/ui/popover-glass.d.ts +32 -0
- package/dist-lib/src/components/ui/popover.d.ts +18 -0
- package/dist-lib/src/components/ui/preview-card.d.ts +11 -0
- package/dist-lib/src/components/ui/reference.story.d.ts +10 -0
- package/dist-lib/src/components/ui/scroll-area.d.ts +11 -0
- package/dist-lib/{components → src/components}/ui/select.d.ts +1 -1
- package/dist-lib/src/components/ui/separator.story.d.ts +7 -0
- package/dist-lib/src/components/ui/tabs.d.ts +15 -0
- package/dist-lib/src/components/ui/text.story.d.ts +9 -0
- package/dist-lib/src/components/ui/textarea.story.d.ts +7 -0
- package/dist-lib/src/components/ui/toast.d.ts +15 -0
- package/dist-lib/src/components/ui/toolbar.d.ts +9 -0
- package/dist-lib/src/components/ui/tooltip.d.ts +14 -0
- package/dist-lib/{index.d.ts → src/index.d.ts} +13 -4
- package/dist-lib/{lib → src/lib}/ease.d.ts +9 -0
- package/dist-lib/src/lib/hooks/use-mobile.d.ts +1 -0
- package/dist-lib/src/lib/keyed-atom.d.ts +14 -0
- package/dist-lib/src/lib/segmented-control.d.ts +8 -0
- package/dist-lib/src/lib/utils.test.d.ts +1 -0
- package/package.json +40 -21
- package/src/assets/css/base.css +62 -0
- package/src/assets/css/chat.css +229 -0
- package/src/assets/css/shadows.css +157 -0
- package/src/assets/css/theme.css +321 -0
- package/src/components/AGENTS.md +0 -0
- package/src/components/atoms/_layout.tsx +9 -0
- package/src/components/atoms/avatar/base.tsx +70 -0
- package/src/components/atoms/avatar/index.ts +3 -0
- package/src/components/atoms/avatar/types.ts +24 -0
- package/src/components/atoms/avatar/utils.ts +54 -0
- package/src/components/atoms/avatar/verified.tsx +16 -0
- package/src/components/atoms/background/index.ts +8 -0
- package/src/components/atoms/background/texture.tsx +29 -0
- package/src/components/atoms/background/type.ts +10 -0
- package/src/components/atoms/background/utils.ts +13 -0
- package/src/components/atoms/bubble/__tests__/bubble.test.tsx +138 -0
- package/src/components/atoms/bubble/__tests__/reference.test.tsx +25 -0
- package/src/components/atoms/bubble/actions.tsx +28 -0
- package/src/components/atoms/bubble/context.ts +11 -0
- package/src/components/atoms/bubble/default.tsx +46 -0
- package/src/components/atoms/bubble/header.tsx +34 -0
- package/src/components/atoms/bubble/index.ts +37 -0
- package/src/components/atoms/bubble/message.tsx +25 -0
- package/src/components/atoms/bubble/reactions.tsx +194 -0
- package/src/components/atoms/bubble/types.ts +79 -0
- package/src/components/atoms/bubble/utils.ts +46 -0
- package/src/components/atoms/chip.tsx +61 -0
- package/src/components/atoms/index.ts +52 -0
- package/src/components/atoms/loader.tsx +42 -0
- package/src/components/atoms/reference.tsx +41 -0
- package/src/components/atoms/text/__tests__/text.test.tsx +47 -0
- package/src/components/atoms/text/default.tsx +59 -0
- package/src/components/atoms/text/heading.tsx +61 -0
- package/src/components/atoms/text/index.ts +24 -0
- package/src/components/atoms/text/label.tsx +16 -0
- package/src/components/atoms/text/paragraph.tsx +58 -0
- package/src/components/atoms/text/span.tsx +15 -0
- package/src/components/atoms/text/types.ts +31 -0
- package/src/components/atoms/text/utils.ts +16 -0
- package/src/components/atoms/text-selection/__tests__/click-popover.test.tsx +61 -0
- package/src/components/atoms/text-selection/__tests__/text-selection.test.tsx +90 -0
- package/src/components/atoms/text-selection/click-popover.tsx +62 -0
- package/src/components/atoms/text-selection/index.ts +30 -0
- package/src/components/atoms/text-selection/popover.tsx +100 -0
- package/src/components/atoms/text-selection/selection-atom.ts +51 -0
- package/src/components/atoms/text-selection/selection.tsx +56 -0
- package/src/components/atoms/text-selection/types.ts +125 -0
- package/src/components/atoms/text-selection/use-selection.ts +84 -0
- package/src/components/atoms/types.ts +18 -0
- package/src/components/blocks/auth/__tests__/auth-flow-block.test.tsx +1 -1
- package/src/components/blocks/auth/__tests__/auth-state-atom.test.tsx +1 -1
- package/src/components/blocks/auth/auth-flow-block.story.tsx +17 -0
- package/src/components/blocks/auth/code-auth-block.story.tsx +20 -0
- package/src/components/blocks/auth/forgot-password-block.story.tsx +14 -0
- package/src/components/blocks/auth/linked-accounts-block.story.tsx +23 -0
- package/src/components/blocks/auth/linked-accounts-block.tsx +1 -1
- package/src/components/blocks/auth/login-block.story.tsx +18 -0
- package/src/components/blocks/auth/onboarding/profile-step.tsx +1 -1
- package/src/components/blocks/auth/onboarding-block.story.tsx +14 -0
- package/src/components/blocks/auth/passkey-manager-block.story.tsx +18 -0
- package/src/components/blocks/auth/passkey-manager-block.tsx +2 -2
- package/src/components/blocks/auth/passkey-sign-in-block.story.tsx +14 -0
- package/src/components/blocks/auth/signup-block.story.tsx +18 -0
- package/src/components/blocks/auth/update-password-block.story.tsx +14 -0
- package/src/components/blocks/chat/__tests__/ai-panel.test.tsx +65 -0
- package/src/components/blocks/chat/banners.tsx +69 -0
- package/src/components/blocks/chat/base.story.tsx +19 -0
- package/src/components/blocks/chat/base.tsx +84 -0
- package/src/components/blocks/chat/header.tsx +60 -0
- package/src/components/blocks/chat/index.ts +39 -0
- package/src/components/blocks/chat/recommendation-stack.tsx +43 -0
- package/src/components/blocks/chat/shared.tsx +27 -0
- package/src/components/blocks/chat/suggested-prompts.tsx +45 -0
- package/src/components/blocks/chat/types.ts +81 -0
- package/src/components/blocks/chat/version-history-record.tsx +37 -0
- package/src/components/blocks/nav/sidebar/__tests__/ai-sidebar-atom.test.tsx +1 -1
- package/src/components/blocks/nav/sidebar/sidebar-row.tsx +2 -2
- package/src/components/blocks/nav/sidebar/use-ai-sidebar.ts +193 -190
- package/src/components/blocks/profile/__tests__/profile-card-block.test.tsx +208 -176
- package/src/components/blocks/profile/profile-card-block.story.tsx +18 -0
- package/src/components/blocks/profile/profile-card-block.tsx +15 -17
- package/src/components/blocks/profile/type.ts +3 -5
- package/src/components/blocks/profile/use-profile-card.ts +17 -11
- package/src/components/blocks/scaffold/scaffold-canvas.tsx +4 -1
- package/src/components/blocks/scaffold/scaffold-root.story.tsx +36 -0
- package/src/components/blocks/scaffold/scaffold-root.tsx +9 -6
- package/src/components/blocks/scaffold/utils.ts +1 -1
- package/src/components/blocks/shell/__tests__/shell-fit-atom.test.tsx +4 -4
- package/src/components/blocks/shell/__tests__/shell-layout.test.tsx +3 -3
- package/src/components/blocks/shell/animated-panel-inset.tsx +1 -1
- package/src/components/blocks/shell/shell-layout.story.tsx +19 -0
- package/src/components/blocks/shell/shell-layout.tsx +1 -1
- package/src/components/blocks/shell/use-shell-fit-state.ts +2 -2
- package/src/components/blocks/shell/use-shell-fit.ts +2 -2
- package/src/components/blocks/shell/use-shell-panels.ts +3 -3
- package/src/components/composed/action-bar/__tests__/action-bar.test.tsx +96 -0
- package/src/components/composed/action-bar/action.tsx +80 -0
- package/src/components/composed/action-bar/emojis.tsx +97 -0
- package/src/components/composed/action-bar/index.ts +24 -0
- package/src/components/composed/action-bar/toolbar.tsx +60 -0
- package/src/components/composed/action-bar/types.ts +58 -0
- package/src/components/composed/action-bar/utils.ts +141 -0
- package/src/components/composed/ai/__tests__/ai.test.tsx +67 -0
- package/src/components/composed/ai/avatar.tsx +20 -0
- package/src/components/composed/ai/index.ts +36 -0
- package/src/components/composed/ai/message.tsx +49 -0
- package/src/components/composed/ai/research-answer.tsx +157 -0
- package/src/components/composed/ai/shared.tsx +94 -0
- package/src/components/composed/ai/streaming-text.tsx +94 -0
- package/src/components/composed/ai/suggested-prompt.tsx +183 -0
- package/src/components/composed/ai/types.ts +81 -0
- package/src/components/composed/attachment.story.tsx +52 -0
- package/src/components/composed/chart.story.tsx +46 -0
- package/src/components/composed/chat/__tests__/attachment.test.tsx +45 -0
- package/src/components/composed/chat/__tests__/beautiful-ui.test.tsx +57 -0
- package/src/components/composed/chat/__tests__/chart.test.tsx +29 -0
- package/src/components/composed/chat/__tests__/code-block.test.tsx +12 -0
- package/src/components/composed/chat/__tests__/composer-attachments.test.tsx +53 -0
- package/src/components/composed/chat/__tests__/composer.test.tsx +81 -0
- package/src/components/composed/chat/__tests__/flowchart.test.tsx +132 -0
- package/src/components/composed/chat/__tests__/markdown.test.tsx +25 -0
- package/src/components/composed/chat/actions.tsx +81 -0
- package/src/components/composed/chat/attachment.tsx +228 -0
- package/src/components/composed/chat/chart.tsx +193 -0
- package/src/components/composed/chat/code-block.tsx +123 -0
- package/src/components/composed/chat/composer/add-button.tsx +22 -0
- package/src/components/composed/chat/composer/base.tsx +248 -0
- package/src/components/composed/chat/composer/command-menu.tsx +42 -0
- package/src/components/composed/chat/composer/hooks.ts +29 -0
- package/src/components/composed/chat/composer/index.ts +19 -0
- package/src/components/composed/chat/composer/send-button.tsx +44 -0
- package/src/components/composed/chat/composer/suggestions.tsx +115 -0
- package/src/components/composed/chat/composer/utils.ts +74 -0
- package/src/components/composed/chat/context-cards.tsx +63 -0
- package/src/components/composed/chat/filter-table.tsx +119 -0
- package/src/components/composed/chat/flowchart/chart-node.tsx +162 -0
- package/src/components/composed/chat/flowchart/connector.tsx +32 -0
- package/src/components/composed/chat/flowchart/constant.ts +26 -0
- package/src/components/composed/chat/flowchart/default.tsx +230 -0
- package/src/components/composed/chat/flowchart/edge-toolbar.tsx +73 -0
- package/src/components/composed/chat/flowchart/hooks.tsx +345 -0
- package/src/components/composed/chat/flowchart/index.ts +14 -0
- package/src/components/composed/chat/flowchart/step-body.tsx +82 -0
- package/src/components/composed/chat/flowchart/types.ts +89 -0
- package/src/components/composed/chat/flowchart/utils.ts +78 -0
- package/src/components/composed/chat/hint.tsx +59 -0
- package/src/components/composed/chat/index.ts +96 -0
- package/src/components/composed/chat/insight-cards.tsx +199 -0
- package/src/components/composed/chat/markdown-atom.ts +15 -0
- package/src/components/composed/chat/markdown.tsx +213 -0
- package/src/components/composed/chat/recommendation/checkbox.tsx +133 -0
- package/src/components/composed/chat/recommendation/constant.ts +25 -0
- package/src/components/composed/chat/recommendation/default.tsx +25 -0
- package/src/components/composed/chat/recommendation/group.tsx +43 -0
- package/src/components/composed/chat/recommendation/index.ts +19 -0
- package/src/components/composed/chat/recommendation/item.tsx +244 -0
- package/src/components/composed/chat/recommendation/types.ts +65 -0
- package/src/components/composed/chat/records-table.tsx +128 -0
- package/src/components/composed/chat/type.ts +126 -0
- package/src/components/composed/code-block.story.tsx +29 -0
- package/src/components/composed/context-cards.story.tsx +30 -0
- package/src/components/composed/emoji-action-bar.story.tsx +20 -0
- package/src/components/composed/filter-table.story.tsx +58 -0
- package/src/components/composed/flowchart.story.tsx +24 -0
- package/src/components/composed/insight-cards.story.tsx +51 -0
- package/src/components/composed/logo.story.tsx +21 -0
- package/src/components/composed/logo.tsx +24 -12
- package/src/components/composed/markdown.story.tsx +21 -0
- package/src/components/composed/password-input.story.tsx +38 -0
- package/src/components/composed/reader/applied-mark.tsx +32 -0
- package/src/components/composed/reader/apply-toast.tsx +49 -0
- package/src/components/composed/reader/index.ts +10 -0
- package/src/components/composed/reader/selection-highlight.tsx +26 -0
- package/src/components/composed/reader/selection-popover.tsx +149 -0
- package/src/components/composed/reader/type.ts +48 -0
- package/src/components/composed/recommendation-card.story.tsx +32 -0
- package/src/components/composed/records-table.story.tsx +46 -0
- package/src/components/composed/research-answer.story.tsx +32 -0
- package/src/components/composed/social-providers.story.tsx +24 -0
- package/src/components/composed/streaming-text.story.tsx +24 -0
- package/src/components/composed/tree/__tests__/tree-atom.test.tsx +1 -1
- package/src/components/composed/tree/__tests__/tree.test.tsx +1 -1
- package/src/components/composed/tree/tree-node.tsx +1 -1
- package/src/components/composed/tree/use-tree.ts +20 -16
- package/src/components/composed/tree.story.tsx +31 -0
- package/src/components/composed/user/index.ts +14 -0
- package/src/components/composed/user/info.tsx +48 -0
- package/src/components/composed/user/message.tsx +10 -0
- package/src/components/composed/user/pill.tsx +20 -0
- package/src/components/composed/user/types.ts +27 -0
- package/src/components/composed/user/utils.ts +0 -0
- package/src/components/composed/user.story.tsx +29 -0
- package/src/components/composed/verse/__tests__/verse.test.tsx +57 -0
- package/src/components/composed/verse/index.ts +2 -0
- package/src/components/composed/verse/types.ts +24 -0
- package/src/components/composed/verse/verse.tsx +100 -0
- package/src/components/composed/verse.story.tsx +21 -0
- package/src/components/docs/atoms-gallery.tsx +286 -0
- package/src/components/docs/code-block.tsx +2 -0
- package/src/components/docs/demo-controls.tsx +20 -20
- package/src/components/docs/hero.tsx +198 -0
- package/src/components/docs/mermaid.tsx +55 -0
- package/src/components/ui/accordion.tsx +68 -0
- package/src/components/ui/alert-dialog.tsx +167 -0
- package/src/components/ui/alert.tsx +84 -0
- package/src/components/ui/autocomplete.tsx +303 -0
- package/src/components/ui/avatar.story.tsx +33 -0
- package/src/components/ui/avatar.tsx +81 -24
- package/src/components/ui/badge.tsx +73 -24
- package/src/components/ui/bubble.story.tsx +45 -0
- package/src/components/ui/button-group.tsx +4 -4
- package/src/components/ui/button.story.tsx +62 -0
- package/src/components/ui/button.tsx +3 -3
- package/src/components/ui/card.story.tsx +36 -0
- package/src/components/ui/card.tsx +2 -2
- package/src/components/ui/chat/__tests__/segmented-toggle.test.tsx +27 -0
- package/src/components/ui/chat/avatar-handle.tsx +30 -0
- package/src/components/ui/chat/badges.tsx +85 -0
- package/src/components/ui/chat/buttons.tsx +94 -0
- package/src/components/ui/chat/chips.tsx +106 -0
- package/src/components/ui/chat/dot.tsx +81 -0
- package/src/components/ui/chat/icon-button.tsx +43 -0
- package/src/components/ui/chat/icon-tile.tsx +33 -0
- package/src/components/ui/chat/index.ts +12 -0
- package/src/components/ui/chat/inline-source.tsx +94 -0
- package/src/components/ui/chat/segmented-toggle.tsx +99 -0
- package/src/components/ui/chat/tag.tsx +61 -0
- package/src/components/ui/chat/thumbnail.tsx +31 -0
- package/src/components/ui/chat/waveform.tsx +30 -0
- package/src/components/ui/chat-atoms.story.tsx +94 -0
- package/src/components/ui/checkbox.story.tsx +30 -0
- package/src/components/ui/collapsible.tsx +42 -0
- package/src/components/ui/command.tsx +263 -0
- package/src/components/ui/context-menu.tsx +342 -0
- package/src/components/ui/emoji-picker.tsx +161 -0
- package/src/components/ui/field.story.tsx +32 -0
- package/src/components/ui/file-icons.story.tsx +24 -0
- package/src/components/ui/frame.story.tsx +32 -0
- package/src/components/ui/frame.tsx +2 -2
- package/src/components/ui/glasscn/glass-container.tsx +9 -3
- package/src/components/ui/glasscn/liquid-glass.tsx +5 -5
- package/src/components/ui/group.tsx +1 -1
- package/src/components/ui/input-group.story.tsx +27 -0
- package/src/components/ui/input-group.tsx +1 -1
- package/src/components/ui/input.story.tsx +42 -0
- package/src/components/ui/input.tsx +1 -1
- package/src/components/ui/kbd.tsx +32 -0
- package/src/components/ui/label.story.tsx +32 -0
- package/src/components/ui/menu-command.story.tsx +37 -0
- package/src/components/ui/menu-command.tsx +128 -0
- package/src/components/ui/otp-field.story.tsx +35 -0
- package/src/components/ui/otp-field.tsx +1 -1
- package/src/components/ui/password-input.story.tsx +19 -0
- package/src/components/ui/popover-glass.tsx +161 -0
- package/src/components/ui/popover.tsx +120 -0
- package/src/components/ui/preview-card.tsx +61 -0
- package/src/components/ui/reference.story.tsx +33 -0
- package/src/components/ui/scroll-area.tsx +80 -0
- package/src/components/ui/select.tsx +1 -1
- package/src/components/ui/separator.story.tsx +34 -0
- package/src/components/ui/tabs.tsx +120 -0
- package/src/components/ui/text.story.tsx +31 -0
- package/src/components/ui/textarea.story.tsx +34 -0
- package/src/components/ui/textarea.tsx +1 -1
- package/src/components/ui/toast.tsx +325 -0
- package/src/components/ui/toolbar.tsx +92 -0
- package/src/components/ui/tooltip.tsx +40 -39
- package/src/index.css +6 -250
- package/src/index.ts +25 -31
- package/src/lib/ease.ts +11 -0
- package/src/lib/hooks/use-mobile.ts +21 -0
- package/src/lib/keyed-atom.ts +60 -0
- package/src/lib/segmented-control.ts +42 -0
- package/src/{state → lib/state}/exegia-provider.tsx +5 -1
- package/src/lib/utils.ts +93 -1
- package/dist-lib/components/beste/piece/browser-frame.d.ts +0 -2
- package/dist-lib/components/beste/piece/type.d.ts +0 -9
- package/dist-lib/components/beste/piece/utils.d.ts +0 -3
- package/dist-lib/components/composed/user-avatar.d.ts +0 -7
- package/dist-lib/components/docs/component-preview.d.ts +0 -10
- package/dist-lib/components/docs/props-table.d.ts +0 -4
- package/dist-lib/components/ui/avatar.d.ts +0 -6
- package/dist-lib/components/ui/badge.d.ts +0 -7
- package/dist-lib/components/ui/tooltip.d.ts +0 -6
- package/dist-lib/components/user-avatar/audio-wave.d.ts +0 -2
- package/dist-lib/components/user-avatar/component.d.ts +0 -3
- package/dist-lib/components/user-avatar/fallback.d.ts +0 -5
- package/dist-lib/components/user-avatar/index.d.ts +0 -18
- package/dist-lib/components/user-avatar/presence-badge.d.ts +0 -16
- package/dist-lib/components/user-avatar/type.d.ts +0 -79
- package/dist-lib/components/user-avatar/use-user-avatar-state.d.ts +0 -26
- package/dist-lib/components/user-avatar/use-user-avatar.d.ts +0 -37
- package/dist-lib/components/user-avatar/user-avatar-atom.d.ts +0 -64
- package/dist-lib/components/user-avatar/utils.d.ts +0 -24
- package/src/components/beste/piece/browser-frame.tsx +0 -58
- package/src/components/beste/piece/type.ts +0 -11
- package/src/components/beste/piece/utils.ts +0 -21
- package/src/components/composed/__tests__/user-avatar.test.tsx +0 -85
- package/src/components/composed/user-avatar.tsx +0 -13
- package/src/components/docs/component-preview.tsx +0 -34
- package/src/components/docs/props-table.tsx +0 -35
- package/src/components/user-avatar/__tests__/user-avatar.test.tsx +0 -286
- package/src/components/user-avatar/audio-wave.tsx +0 -22
- package/src/components/user-avatar/component.tsx +0 -182
- package/src/components/user-avatar/fallback.tsx +0 -28
- package/src/components/user-avatar/index.ts +0 -34
- package/src/components/user-avatar/presence-badge.tsx +0 -56
- package/src/components/user-avatar/type.ts +0 -93
- package/src/components/user-avatar/use-user-avatar-state.ts +0 -60
- package/src/components/user-avatar/use-user-avatar.ts +0 -180
- package/src/components/user-avatar/user-avatar-atom.ts +0 -218
- package/src/components/user-avatar/utils.ts +0 -102
- /package/dist-lib/{components/blocks/auth/__tests__/auth-flow-block.test.d.ts → src/components/atoms/bubble/__tests__/bubble.test.d.ts} +0 -0
- /package/dist-lib/{components/blocks/auth/__tests__/auth-state-atom.test.d.ts → src/components/atoms/bubble/__tests__/reference.test.d.ts} +0 -0
- /package/dist-lib/{components/blocks/auth/__tests__/passkey-manager-block.test.d.ts → src/components/atoms/text/__tests__/text.test.d.ts} +0 -0
- /package/dist-lib/{components/blocks/auth/__tests__/linked-accounts-block.test.d.ts → src/components/atoms/text-selection/__tests__/click-popover.test.d.ts} +0 -0
- /package/dist-lib/{components/blocks/auth/__tests__/onboarding-block.test.d.ts → src/components/atoms/text-selection/__tests__/text-selection.test.d.ts} +0 -0
- /package/dist-lib/{components/blocks/auth/__tests__/passkey-sign-in-block.test.d.ts → src/components/blocks/auth/__tests__/auth-flow-block.test.d.ts} +0 -0
- /package/dist-lib/{components/blocks/auth/__tests__/signup-block.test.d.ts → src/components/blocks/auth/__tests__/auth-state-atom.test.d.ts} +0 -0
- /package/dist-lib/{components/blocks/auth/__tests__/update-password-block.test.d.ts → src/components/blocks/auth/__tests__/linked-accounts-block.test.d.ts} +0 -0
- /package/dist-lib/{components/blocks/nav/sidebar/__tests__/ai-sidebar-atom.test.d.ts → src/components/blocks/auth/__tests__/onboarding-block.test.d.ts} +0 -0
- /package/dist-lib/{components/blocks/nav/sidebar/__tests__/ai-sidebar.test.d.ts → src/components/blocks/auth/__tests__/passkey-manager-block.test.d.ts} +0 -0
- /package/dist-lib/{components/blocks/nav/sidebar/__tests__/use-ai-sidebar.test.d.ts → src/components/blocks/auth/__tests__/passkey-sign-in-block.test.d.ts} +0 -0
- /package/dist-lib/{components/blocks/profile/__tests__/profile-card-block.test.d.ts → src/components/blocks/auth/__tests__/signup-block.test.d.ts} +0 -0
- /package/dist-lib/{components/blocks/scaffold/__tests__/scaffold-atom.test.d.ts → src/components/blocks/auth/__tests__/update-password-block.test.d.ts} +0 -0
- /package/dist-lib/{components → src/components}/blocks/auth/auth-flow-atom.d.ts +0 -0
- /package/dist-lib/{components → src/components}/blocks/auth/auth-flow-block.d.ts +0 -0
- /package/dist-lib/{components → src/components}/blocks/auth/auth-session-atom.d.ts +0 -0
- /package/dist-lib/{components → src/components}/blocks/auth/auth-shell.d.ts +0 -0
- /package/dist-lib/{components → src/components}/blocks/auth/auth-state-type.d.ts +0 -0
- /package/dist-lib/{components → src/components}/blocks/auth/auth-state.d.ts +0 -0
- /package/dist-lib/{components → src/components}/blocks/auth/code-auth-block.d.ts +0 -0
- /package/dist-lib/{components → src/components}/blocks/auth/forgot-password-block.d.ts +0 -0
- /package/dist-lib/{components → src/components}/blocks/auth/linked-accounts-block.d.ts +0 -0
- /package/dist-lib/{components → src/components}/blocks/auth/login-block.d.ts +0 -0
- /package/dist-lib/{components → src/components}/blocks/auth/onboarding/profile-step.d.ts +0 -0
- /package/dist-lib/{components → src/components}/blocks/auth/onboarding-block.d.ts +0 -0
- /package/dist-lib/{components → src/components}/blocks/auth/passkey-manager-block.d.ts +0 -0
- /package/dist-lib/{components → src/components}/blocks/auth/passkey-sign-in-block.d.ts +0 -0
- /package/dist-lib/{components → src/components}/blocks/auth/signup-block.d.ts +0 -0
- /package/dist-lib/{components → src/components}/blocks/auth/update-password-block.d.ts +0 -0
- /package/dist-lib/{components → src/components}/blocks/auth/use-auth-state.d.ts +0 -0
- /package/dist-lib/{components/blocks/scaffold/__tests__/scaffold.test.d.ts → src/components/blocks/chat/__tests__/ai-panel.test.d.ts} +0 -0
- /package/dist-lib/{components → src/components}/blocks/layout.d.ts +0 -0
- /package/dist-lib/{components/blocks/shell/__tests__/shell-fit-atom.test.d.ts → src/components/blocks/nav/sidebar/__tests__/ai-sidebar-atom.test.d.ts} +0 -0
- /package/dist-lib/{components/blocks/shell/__tests__/shell-layout.test.d.ts → src/components/blocks/nav/sidebar/__tests__/ai-sidebar.test.d.ts} +0 -0
- /package/dist-lib/{components/blocks/shell/__tests__/shell-metrics.test.d.ts → src/components/blocks/nav/sidebar/__tests__/use-ai-sidebar.test.d.ts} +0 -0
- /package/dist-lib/{components → src/components}/blocks/nav/sidebar/ai-sidebar-atom.d.ts +0 -0
- /package/dist-lib/{components → src/components}/blocks/nav/sidebar/ai-sidebar.d.ts +0 -0
- /package/dist-lib/{components → src/components}/blocks/nav/sidebar/index.d.ts +0 -0
- /package/dist-lib/{components → src/components}/blocks/nav/sidebar/marquee-label.d.ts +0 -0
- /package/dist-lib/{components → src/components}/blocks/nav/sidebar/sidebar-context.d.ts +0 -0
- /package/dist-lib/{components → src/components}/blocks/nav/sidebar/sidebar-icon.d.ts +0 -0
- /package/dist-lib/{components → src/components}/blocks/nav/sidebar/sidebar-row.d.ts +0 -0
- /package/dist-lib/{components → src/components}/blocks/nav/sidebar/type.d.ts +0 -0
- /package/dist-lib/{components → src/components}/blocks/nav/sidebar/use-ai-sidebar-state.d.ts +0 -0
- /package/dist-lib/{components → src/components}/blocks/nav/sidebar/use-ai-sidebar.d.ts +0 -0
- /package/dist-lib/{components → src/components}/blocks/nav/sidebar/utils.d.ts +0 -0
- /package/dist-lib/{components/composed/__tests__/logo.test.d.ts → src/components/blocks/profile/__tests__/profile-card-block.test.d.ts} +0 -0
- /package/dist-lib/{components → src/components}/blocks/profile/index.d.ts +0 -0
- /package/dist-lib/{components → src/components}/blocks/profile/profile-card-atom.d.ts +0 -0
- /package/dist-lib/{components → src/components}/blocks/profile/use-profile-card-state.d.ts +0 -0
- /package/dist-lib/{components → src/components}/blocks/profile/use-profile-card.d.ts +0 -0
- /package/dist-lib/{components/composed/__tests__/user-avatar.test.d.ts → src/components/blocks/scaffold/__tests__/scaffold-atom.test.d.ts} +0 -0
- /package/dist-lib/{components/composed/tree/__tests__/tree-atom.test.d.ts → src/components/blocks/scaffold/__tests__/scaffold.test.d.ts} +0 -0
- /package/dist-lib/{components → src/components}/blocks/scaffold/constants.d.ts +0 -0
- /package/dist-lib/{components → src/components}/blocks/scaffold/index.d.ts +0 -0
- /package/dist-lib/{components → src/components}/blocks/scaffold/panel-close-button.d.ts +0 -0
- /package/dist-lib/{components → src/components}/blocks/scaffold/panel-menu-button.d.ts +0 -0
- /package/dist-lib/{components → src/components}/blocks/scaffold/scaffold-actions.d.ts +0 -0
- /package/dist-lib/{components → src/components}/blocks/scaffold/scaffold-atom.d.ts +0 -0
- /package/dist-lib/{components → src/components}/blocks/scaffold/scaffold-canvas.d.ts +0 -0
- /package/dist-lib/{components → src/components}/blocks/scaffold/scaffold-context.d.ts +0 -0
- /package/dist-lib/{components → src/components}/blocks/scaffold/scaffold-inspector.d.ts +0 -0
- /package/dist-lib/{components → src/components}/blocks/scaffold/scaffold-main.d.ts +0 -0
- /package/dist-lib/{components → src/components}/blocks/scaffold/scaffold-panel.d.ts +0 -0
- /package/dist-lib/{components → src/components}/blocks/scaffold/scaffold-root.d.ts +0 -0
- /package/dist-lib/{components → src/components}/blocks/scaffold/scaffold-sidebar.d.ts +0 -0
- /package/dist-lib/{components → src/components}/blocks/scaffold/scaffold-sub-panel.d.ts +0 -0
- /package/dist-lib/{components → src/components}/blocks/scaffold/scaffold-tab.d.ts +0 -0
- /package/dist-lib/{components → src/components}/blocks/scaffold/type.d.ts +0 -0
- /package/dist-lib/{components → src/components}/blocks/scaffold/use-scaffold-state.d.ts +0 -0
- /package/dist-lib/{components → src/components}/blocks/scaffold/use-scaffold.d.ts +0 -0
- /package/dist-lib/{components → src/components}/blocks/scaffold/utils.d.ts +0 -0
- /package/dist-lib/{components/composed/tree/__tests__/tree.test.d.ts → src/components/blocks/shell/__tests__/shell-fit-atom.test.d.ts} +0 -0
- /package/dist-lib/{components/composed/tree/__tests__/use-tree.test.d.ts → src/components/blocks/shell/__tests__/shell-layout.test.d.ts} +0 -0
- /package/dist-lib/{components/icons/__tests__/icons.test.d.ts → src/components/blocks/shell/__tests__/shell-metrics.test.d.ts} +0 -0
- /package/dist-lib/{components → src/components}/blocks/shell/animated-panel-inset.d.ts +0 -0
- /package/dist-lib/{components → src/components}/blocks/shell/animated-panel-provider.d.ts +0 -0
- /package/dist-lib/{components → src/components}/blocks/shell/animated-panel-trigger.d.ts +0 -0
- /package/dist-lib/{components → src/components}/blocks/shell/animated-panel.d.ts +0 -0
- /package/dist-lib/{components → src/components}/blocks/shell/index.d.ts +0 -0
- /package/dist-lib/{components → src/components}/blocks/shell/shell-fit-atom.d.ts +0 -0
- /package/dist-lib/{components → src/components}/blocks/shell/shell-layout.d.ts +0 -0
- /package/dist-lib/{components → src/components}/blocks/shell/shell-metrics.d.ts +0 -0
- /package/dist-lib/{components → src/components}/blocks/shell/type.d.ts +0 -0
- /package/dist-lib/{components → src/components}/blocks/shell/use-shell-fit-state.d.ts +0 -0
- /package/dist-lib/{components → src/components}/blocks/shell/use-shell-fit.d.ts +0 -0
- /package/dist-lib/{components → src/components}/blocks/shell/use-shell-panels.d.ts +0 -0
- /package/dist-lib/{components → src/components}/blocks/shell/utils.d.ts +0 -0
- /package/dist-lib/{components/motion/index.d.ts → src/components/composed/__tests__/logo.test.d.ts} +0 -0
- /package/dist-lib/{components/user-avatar/__tests__/user-avatar.test.d.ts → src/components/composed/action-bar/__tests__/action-bar.test.d.ts} +0 -0
- /package/dist-lib/{lib/utils.test.d.ts → src/components/composed/ai/__tests__/ai.test.d.ts} +0 -0
- /package/dist-lib/{components → src/components}/composed/logo.d.ts +0 -0
- /package/dist-lib/{components → src/components}/composed/password-input.d.ts +0 -0
- /package/dist-lib/{components → src/components}/composed/social-providers.d.ts +0 -0
- /package/dist-lib/{components → src/components}/composed/tree/constants.d.ts +0 -0
- /package/dist-lib/{components → src/components}/composed/tree/index.d.ts +0 -0
- /package/dist-lib/{components → src/components}/composed/tree/tree-atom.d.ts +0 -0
- /package/dist-lib/{components → src/components}/composed/tree/tree-context.d.ts +0 -0
- /package/dist-lib/{components → src/components}/composed/tree/tree-node.d.ts +0 -0
- /package/dist-lib/{components → src/components}/composed/tree/tree.d.ts +0 -0
- /package/dist-lib/{components → src/components}/composed/tree/type.d.ts +0 -0
- /package/dist-lib/{components → src/components}/composed/tree/use-tree-dnd.d.ts +0 -0
- /package/dist-lib/{components → src/components}/composed/tree/use-tree-state.d.ts +0 -0
- /package/dist-lib/{components → src/components}/composed/tree/use-tree.d.ts +0 -0
- /package/dist-lib/{components → src/components}/composed/tree/utils.d.ts +0 -0
- /package/dist-lib/{components → src/components}/docs/code-block.d.ts +0 -0
- /package/dist-lib/{components → src/components}/icons/file-badge-cfm.d.ts +0 -0
- /package/dist-lib/{components → src/components}/icons/file-badge-corpus.d.ts +0 -0
- /package/dist-lib/{components → src/components}/icons/file-badge-pdf.d.ts +0 -0
- /package/dist-lib/{components → src/components}/icons/file-badge-tei.d.ts +0 -0
- /package/dist-lib/{components → src/components}/icons/file-badge-tf.d.ts +0 -0
- /package/dist-lib/{components → src/components}/icons/file-badge-txt.d.ts +0 -0
- /package/dist-lib/{components → src/components}/icons/file-badge-xml.d.ts +0 -0
- /package/dist-lib/{components → src/components}/icons/file-wordmark-cfm.d.ts +0 -0
- /package/dist-lib/{components → src/components}/icons/file-wordmark-corpus.d.ts +0 -0
- /package/dist-lib/{components → src/components}/icons/file-wordmark-pdf.d.ts +0 -0
- /package/dist-lib/{components → src/components}/icons/file-wordmark-tei.d.ts +0 -0
- /package/dist-lib/{components → src/components}/icons/file-wordmark-tf.d.ts +0 -0
- /package/dist-lib/{components → src/components}/icons/file-wordmark-txt.d.ts +0 -0
- /package/dist-lib/{components → src/components}/icons/file-wordmark-xml.d.ts +0 -0
- /package/dist-lib/{components → src/components}/icons/index.d.ts +0 -0
- /package/dist-lib/{components → src/components}/icons/types.d.ts +0 -0
- /package/dist-lib/{components → src/components}/motion/overflow-actions.d.ts +0 -0
- /package/dist-lib/{components → src/components}/motion/popover-morph.d.ts +0 -0
- /package/dist-lib/{components → src/components}/motion/popover-position.d.ts +0 -0
- /package/dist-lib/{components → src/components}/motion/shared-layout-bg.d.ts +0 -0
- /package/dist-lib/{components → src/components}/theme-provider.d.ts +0 -0
- /package/dist-lib/{components → src/components}/ui/button-group.d.ts +0 -0
- /package/dist-lib/{components → src/components}/ui/card.d.ts +0 -0
- /package/dist-lib/{components → src/components}/ui/checkbox.d.ts +0 -0
- /package/dist-lib/{components → src/components}/ui/field.d.ts +0 -0
- /package/dist-lib/{components → src/components}/ui/frame.d.ts +0 -0
- /package/dist-lib/{components → src/components}/ui/glasscn/glass-button-group.d.ts +0 -0
- /package/dist-lib/{components → src/components}/ui/glasscn/glass-button.d.ts +0 -0
- /package/dist-lib/{components → src/components}/ui/glasscn/glass-separator.d.ts +0 -0
- /package/dist-lib/{components → src/components}/ui/glasscn/liquid-glass.d.ts +0 -0
- /package/dist-lib/{components → src/components}/ui/group.d.ts +0 -0
- /package/dist-lib/{components → src/components}/ui/input-group.d.ts +0 -0
- /package/dist-lib/{components → src/components}/ui/input.d.ts +0 -0
- /package/dist-lib/{components → src/components}/ui/label.d.ts +0 -0
- /package/dist-lib/{components → src/components}/ui/menu.d.ts +0 -0
- /package/dist-lib/{components → src/components}/ui/otp-field.d.ts +0 -0
- /package/dist-lib/{components → src/components}/ui/separator.d.ts +0 -0
- /package/dist-lib/{components → src/components}/ui/sheet.d.ts +0 -0
- /package/dist-lib/{components → src/components}/ui/skeleton.d.ts +0 -0
- /package/dist-lib/{components → src/components}/ui/spinner.d.ts +0 -0
- /package/dist-lib/{components → src/components}/ui/switch.d.ts +0 -0
- /package/dist-lib/{components → src/components}/ui/textarea.d.ts +0 -0
- /package/dist-lib/{lib → src/lib}/auth-accent.d.ts +0 -0
- /package/dist-lib/{lib → src/lib}/glass-variants.d.ts +0 -0
- /package/dist-lib/{lib → src/lib}/hooks/use-hover-capable.d.ts +0 -0
- /package/dist-lib/{lib → src/lib}/sound.d.ts +0 -0
- /package/dist-lib/{state → src/lib/state}/exegia-provider.d.ts +0 -0
- /package/dist-lib/{state → src/lib/state}/index.d.ts +0 -0
- /package/dist-lib/{state → src/lib/state}/store.d.ts +0 -0
- /package/dist-lib/{lib → src/lib}/utils.d.ts +0 -0
- /package/src/{state → lib/state}/index.ts +0 -0
- /package/src/{state → lib/state}/store.ts +0 -0
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ComponentProps } from 'react';
|
|
2
|
+
import { Avatar } from '../atoms/avatar';
|
|
3
|
+
type PreviewProps = Pick<ComponentProps<typeof Avatar>, "user" | "size" | "audio" | "loading">;
|
|
4
|
+
declare function AvatarPreview(props: PreviewProps): import("react").JSX.Element;
|
|
5
|
+
export declare const story: import('@fumadocs/story/vite/client').Story<typeof AvatarPreview>;
|
|
6
|
+
export declare const Preview: import('react').FC;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { useRender } from '@base-ui/react/use-render';
|
|
2
|
+
import { VariantProps } from 'class-variance-authority';
|
|
3
|
+
declare const badgeVariants: (props?: ({
|
|
4
|
+
variant?: "invert" | "default" | "destructive" | "destructive-outline" | "outline" | "secondary" | "focus" | "success" | "info" | "warning" | "primary-light" | "warning-light" | "success-light" | "info-light" | "destructive-light" | "invert-light" | "focus-light" | "primary-outline" | "warning-outline" | "success-outline" | "info-outline" | "invert-outline" | "focus-outline" | null | undefined;
|
|
5
|
+
size?: "xs" | "sm" | "default" | "lg" | "xl" | null | undefined;
|
|
6
|
+
radius?: "default" | "full" | null | undefined;
|
|
7
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
8
|
+
interface BadgeProps extends useRender.ComponentProps<"span"> {
|
|
9
|
+
variant?: VariantProps<typeof badgeVariants>["variant"];
|
|
10
|
+
size?: VariantProps<typeof badgeVariants>["size"];
|
|
11
|
+
radius?: VariantProps<typeof badgeVariants>["radius"];
|
|
12
|
+
}
|
|
13
|
+
declare function Badge({ className, variant, size, radius, render, ...props }: BadgeProps): import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>>;
|
|
14
|
+
export { Badge, badgeVariants, type BadgeProps };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ComponentProps } from 'react';
|
|
2
|
+
import { Bubble } from '../atoms/bubble';
|
|
3
|
+
type PreviewProps = Pick<ComponentProps<typeof Bubble>, "variant" | "continued">;
|
|
4
|
+
declare function BubblePreview(props: PreviewProps): import("react").JSX.Element;
|
|
5
|
+
export declare const story: import('@fumadocs/story/vite/client').Story<typeof BubblePreview>;
|
|
6
|
+
export declare const Preview: import('react').FC;
|
|
7
|
+
export {};
|
|
@@ -3,7 +3,7 @@ import { VariantProps } from 'class-variance-authority';
|
|
|
3
3
|
import { FrostGlassVariant } from '../../lib/glass-variants';
|
|
4
4
|
import type * as React from "react";
|
|
5
5
|
export declare const buttonVariants: (props?: ({
|
|
6
|
-
size?: "
|
|
6
|
+
size?: "xs" | "sm" | "default" | "lg" | "xl" | "icon" | "icon-lg" | "icon-sm" | "icon-xl" | "icon-xs" | null | undefined;
|
|
7
7
|
variant?: "link" | "default" | "destructive" | "destructive-outline" | "ghost" | "glass" | "outline" | "secondary" | null | undefined;
|
|
8
8
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
9
9
|
type ButtonVariant = VariantProps<typeof buttonVariants>["variant"];
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ButtonProps } from './button';
|
|
2
|
+
type PreviewProps = Pick<ButtonProps, "variant" | "glassVariant" | "size" | "loading" | "disabled" | "sound"> & {
|
|
3
|
+
children: string;
|
|
4
|
+
};
|
|
5
|
+
declare function ButtonPreview({ variant, glassVariant, size, children, ...props }: PreviewProps): import("react").JSX.Element;
|
|
6
|
+
export declare const story: import('@fumadocs/story/vite/client').Story<typeof ButtonPreview>;
|
|
7
|
+
export declare const Preview: import('react').FC;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ComponentProps } from 'react';
|
|
2
|
+
import { Card } from './card';
|
|
3
|
+
type PreviewProps = Pick<ComponentProps<typeof Card>, "className"> & {
|
|
4
|
+
children: string;
|
|
5
|
+
};
|
|
6
|
+
declare function CardPreview({ children, ...props }: PreviewProps): import("react").JSX.Element;
|
|
7
|
+
export declare const story: import('@fumadocs/story/vite/client').Story<typeof CardPreview>;
|
|
8
|
+
export declare const Preview: import('react').FC;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type * as React from "react";
|
|
2
|
+
export interface AvatarHandleProps extends React.ComponentPropsWithoutRef<"span"> {
|
|
3
|
+
src?: string;
|
|
4
|
+
/** Initials shown when no image loads; two characters at most. */
|
|
5
|
+
initials?: string;
|
|
6
|
+
size?: 16 | 20;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* 20px avatar for @-handle chips and reply headers.
|
|
10
|
+
*
|
|
11
|
+
* @sketch "Atom / Avatar / Handle 20"
|
|
12
|
+
*/
|
|
13
|
+
export declare function AvatarHandle({ src, initials, size, className, ...props }: AvatarHandleProps): React.ReactElement;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type * as React from "react";
|
|
2
|
+
/**
|
|
3
|
+
* 28×14 uppercase file-format badge ("PDF", "CSV").
|
|
4
|
+
*
|
|
5
|
+
* @sketch "Atom / Badge / File Type"
|
|
6
|
+
*/
|
|
7
|
+
export declare function FileTypeBadge({ className, children, ...props }: React.ComponentPropsWithoutRef<"span">): React.ReactElement;
|
|
8
|
+
export interface FaviconProps extends React.ComponentPropsWithoutRef<"span"> {
|
|
9
|
+
src?: string;
|
|
10
|
+
size?: 14 | 16;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* 16px site icon tile with a globe fallback.
|
|
14
|
+
*
|
|
15
|
+
* @sketch "Atom / Favicon"
|
|
16
|
+
*/
|
|
17
|
+
export declare function Favicon({ src, size, className, ...props }: FaviconProps): React.ReactElement;
|
|
18
|
+
/**
|
|
19
|
+
* Scrim pill with a mono duration ("0:42"), bottom-right of media previews.
|
|
20
|
+
*
|
|
21
|
+
* @sketch "Atom / Duration Pill"
|
|
22
|
+
*/
|
|
23
|
+
export declare function DurationPill({ className, children, ...props }: React.ComponentPropsWithoutRef<"span">): React.ReactElement;
|
|
24
|
+
/**
|
|
25
|
+
* 3px accent bar that rails a quote or reply.
|
|
26
|
+
*
|
|
27
|
+
* @sketch "Atom / Quote Rail"
|
|
28
|
+
*/
|
|
29
|
+
export declare function QuoteRail({ className, ...props }: React.ComponentPropsWithoutRef<"span">): React.ReactElement;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { ButtonProps } from '../button';
|
|
2
|
+
import type * as React from "react";
|
|
3
|
+
type IconButtonProps = Omit<ButtonProps, "variant" | "size" | "glassVariant" | "children">;
|
|
4
|
+
/**
|
|
5
|
+
* 18px filled circle with an inverse ✕, used on composer chips.
|
|
6
|
+
*
|
|
7
|
+
* @sketch "Atom / Button / Remove"
|
|
8
|
+
*/
|
|
9
|
+
export declare function RemoveButton({ className, ...props }: IconButtonProps): React.ReactElement;
|
|
10
|
+
/**
|
|
11
|
+
* 36px scrim circle with a white play glyph, centred on media previews.
|
|
12
|
+
*
|
|
13
|
+
* @sketch "Atom / Button / Play"
|
|
14
|
+
*/
|
|
15
|
+
export declare function PlayButton({ className, ...props }: IconButtonProps): React.ReactElement;
|
|
16
|
+
/**
|
|
17
|
+
* 26px ghost "+" for the composer's attach action.
|
|
18
|
+
*
|
|
19
|
+
* @sketch "Atom / Button / Add"
|
|
20
|
+
*/
|
|
21
|
+
export declare function AddButton({ className, ...props }: IconButtonProps): React.ReactElement;
|
|
22
|
+
export type SendButtonProps = Omit<ButtonProps, "variant" | "glassVariant">;
|
|
23
|
+
/**
|
|
24
|
+
* Brand-yellow 61×31 pill, radius 8, dark label.
|
|
25
|
+
*
|
|
26
|
+
* @sketch "Atom / Button / Send"
|
|
27
|
+
*/
|
|
28
|
+
export declare function SendButton({ className, children, ...props }: SendButtonProps): React.ReactElement;
|
|
29
|
+
export {};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { DotTone } from './dot';
|
|
2
|
+
import type * as React from "react";
|
|
3
|
+
export interface SourceChipProps extends React.ComponentPropsWithoutRef<"span"> {
|
|
4
|
+
favicon?: string;
|
|
5
|
+
/** Domain in mono ("scoopdata.io"). */
|
|
6
|
+
children: React.ReactNode;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* 18px pill with a favicon and a mono domain, inline in streamed text.
|
|
10
|
+
*
|
|
11
|
+
* @sketch "Atom / Source Chip"
|
|
12
|
+
*/
|
|
13
|
+
export declare function SourceChip({ favicon, className, children, ...props }: SourceChipProps): React.ReactElement;
|
|
14
|
+
export interface AvatarStackProps extends React.ComponentPropsWithoutRef<"span"> {
|
|
15
|
+
/** Up to three tones or image urls, rendered overlapping. */
|
|
16
|
+
items?: (DotTone | {
|
|
17
|
+
src: string;
|
|
18
|
+
})[];
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Three overlapping 14px circles.
|
|
22
|
+
*
|
|
23
|
+
* @sketch "Atom / Avatar Stack"
|
|
24
|
+
*/
|
|
25
|
+
export declare function AvatarStack({ items, className, ...props }: AvatarStackProps): React.ReactElement;
|
|
26
|
+
export interface StatProps extends React.ComponentPropsWithoutRef<"div"> {
|
|
27
|
+
tone?: DotTone;
|
|
28
|
+
label: React.ReactNode;
|
|
29
|
+
value: React.ReactNode;
|
|
30
|
+
/** Secondary mono line ("−$2,377.66"). */
|
|
31
|
+
delta?: React.ReactNode;
|
|
32
|
+
trend?: "positive" | "negative";
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* 152×64 stat: dot + label, big coloured value, mono delta.
|
|
36
|
+
*
|
|
37
|
+
* @sketch "Atom / Stat / {Positive, Negative}"
|
|
38
|
+
*/
|
|
39
|
+
export declare function Stat({ tone, label, value, delta, trend, className, ...props }: StatProps): React.ReactElement;
|
|
40
|
+
export interface FollowUpRowProps extends Omit<React.ComponentPropsWithoutRef<"button">, "onSelect"> {
|
|
41
|
+
onSelect?: () => void;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Full-width follow-up prompt with a return-arrow icon and a hairline base.
|
|
45
|
+
*
|
|
46
|
+
* @sketch "Atom / Follow-up Row"
|
|
47
|
+
*/
|
|
48
|
+
export declare function FollowUpRow({ onSelect, className, children, ...props }: FollowUpRowProps): React.ReactElement;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type * as React from "react";
|
|
2
|
+
export type DotTone = "success" | "warning" | "info" | "danger" | "neutral" | "accent" | "brand" | "series-1" | "series-2" | "series-3" | "series-4" | "series-5";
|
|
3
|
+
export declare const DOT_TONE_CLASSES: Record<DotTone, string>;
|
|
4
|
+
export interface DotProps extends React.ComponentPropsWithoutRef<"span"> {
|
|
5
|
+
tone?: DotTone;
|
|
6
|
+
size?: 6 | 8;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Status / series marker.
|
|
10
|
+
*
|
|
11
|
+
* @sketch "Atom / Dot / {Success, Warning, Info, Danger, Neutral, Accent, Brand, Series 3, Series 4}"
|
|
12
|
+
*/
|
|
13
|
+
export declare function Dot({ tone, size, className, ...props }: DotProps): React.ReactElement;
|
|
14
|
+
export interface LegendItemProps extends React.ComponentPropsWithoutRef<"span"> {
|
|
15
|
+
tone?: DotTone;
|
|
16
|
+
/** Optional trailing value ("42%"). */
|
|
17
|
+
value?: React.ReactNode;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Dot + label (+ value) row for chart legends.
|
|
21
|
+
*
|
|
22
|
+
* @sketch "Atom / Legend Item"
|
|
23
|
+
*/
|
|
24
|
+
export declare function LegendItem({ tone, value, className, children, ...props }: LegendItemProps): React.ReactElement;
|
|
25
|
+
/**
|
|
26
|
+
* 20px neutral pill for chart-type badges and counts.
|
|
27
|
+
*
|
|
28
|
+
* @sketch "Atom / Pill"
|
|
29
|
+
*/
|
|
30
|
+
export declare function Pill({ className, children, ...props }: React.ComponentPropsWithoutRef<"span">): React.ReactElement;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ButtonProps } from '../button';
|
|
2
|
+
import type * as React from "react";
|
|
3
|
+
export type IconButtonProps = Omit<ButtonProps, "variant" | "size" | "glassVariant" | "aria-label"> & {
|
|
4
|
+
/** Required: icon-only controls need a name. */
|
|
5
|
+
"aria-label": string;
|
|
6
|
+
};
|
|
7
|
+
/**
|
|
8
|
+
* 24px ghost control framing a 16px icon.
|
|
9
|
+
*
|
|
10
|
+
* @sketch "Atom / Icon Button"
|
|
11
|
+
*/
|
|
12
|
+
export declare function IconButton({ className, ...props }: IconButtonProps): React.ReactElement;
|
|
13
|
+
/**
|
|
14
|
+
* Violet "Agent" chip beside the assistant's name.
|
|
15
|
+
*
|
|
16
|
+
* @sketch "Atom / Badge / Agent"
|
|
17
|
+
*/
|
|
18
|
+
export declare function AgentBadge({ className, children, ...props }: React.ComponentPropsWithoutRef<"span">): React.ReactElement;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type * as React from "react";
|
|
2
|
+
declare const SIZES: {
|
|
3
|
+
readonly 28: "size-7 rounded-md";
|
|
4
|
+
readonly 32: "size-8 rounded-[10px]";
|
|
5
|
+
readonly 36: "size-9 rounded-[10px]";
|
|
6
|
+
readonly 40: "size-10 rounded-[10px]";
|
|
7
|
+
};
|
|
8
|
+
export interface IconTileProps extends React.ComponentPropsWithoutRef<"span"> {
|
|
9
|
+
/** Tile edge in px. The design uses 40 (attachments), 32 (agent avatar), 28 (research kicker), 36 (flowchart node). */
|
|
10
|
+
size?: keyof typeof SIZES;
|
|
11
|
+
/** Fill the tile with the accent-subtle tint instead of the neutral surface. */
|
|
12
|
+
tone?: "neutral" | "accent";
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Square tile that frames a 16px lucide icon.
|
|
16
|
+
*
|
|
17
|
+
* @sketch "Atom / Icon Tile"
|
|
18
|
+
*/
|
|
19
|
+
export declare function IconTile({ size, tone, className, children, ...props }: IconTileProps): React.ReactElement;
|
|
20
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export { IconTile, type IconTileProps } from './icon-tile';
|
|
2
|
+
export { Thumbnail, type ThumbnailProps } from './thumbnail';
|
|
3
|
+
export { AvatarHandle, type AvatarHandleProps } from './avatar-handle';
|
|
4
|
+
export { AddButton, PlayButton, RemoveButton, SendButton, type SendButtonProps } from './buttons';
|
|
5
|
+
export { DurationPill, Favicon, FileTypeBadge, QuoteRail, type FaviconProps } from './badges';
|
|
6
|
+
export { Waveform, type WaveformProps } from './waveform';
|
|
7
|
+
export { DOT_TONE_CLASSES, Dot, LegendItem, Pill, type DotProps, type DotTone, type LegendItemProps } from './dot';
|
|
8
|
+
export { SegmentedToggle, type SegmentedToggleOption, type SegmentedToggleProps } from './segmented-toggle';
|
|
9
|
+
export { AgentBadge, IconButton, type IconButtonProps } from './icon-button';
|
|
10
|
+
export { Signal, Tag, type SignalLevel, type SignalProps, type TagProps, type TagTone } from './tag';
|
|
11
|
+
export { AvatarStack, FollowUpRow, SourceChip, Stat, type AvatarStackProps, type FollowUpRowProps, type SourceChipProps, type StatProps } from './chips';
|
|
12
|
+
export { InlineSource, type InlineSourceProps } from './inline-source';
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type * as React from "react";
|
|
2
|
+
export interface InlineSourceProps extends Omit<React.ComponentPropsWithoutRef<"span">, "title"> {
|
|
3
|
+
/** Domain shown in the chip ("scoopdata.io"). */
|
|
4
|
+
domain: React.ReactNode;
|
|
5
|
+
favicon?: string;
|
|
6
|
+
/** Source title in the popover. */
|
|
7
|
+
title?: React.ReactNode;
|
|
8
|
+
/** Excerpt or summary in the popover. */
|
|
9
|
+
description?: React.ReactNode;
|
|
10
|
+
/** Opens the source in a new tab from the popover. */
|
|
11
|
+
href?: string;
|
|
12
|
+
openLabel?: React.ReactNode;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Inline citation: a SourceChip that, when it carries a title, description
|
|
16
|
+
* or href, opens a hover preview with an "Open source" button.
|
|
17
|
+
*
|
|
18
|
+
* @sketch "Atom / Inline Source"
|
|
19
|
+
*/
|
|
20
|
+
export declare function InlineSource({ domain, favicon, title, description, href, openLabel, className, ...props }: InlineSourceProps): React.ReactElement;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
export interface SegmentedToggleOption<T extends string> {
|
|
3
|
+
value: T;
|
|
4
|
+
label: React.ReactNode;
|
|
5
|
+
}
|
|
6
|
+
export interface SegmentedToggleProps<T extends string> extends Omit<React.ComponentPropsWithoutRef<"div">, "onChange" | "defaultValue"> {
|
|
7
|
+
options: readonly SegmentedToggleOption<T>[];
|
|
8
|
+
value?: T;
|
|
9
|
+
defaultValue?: T;
|
|
10
|
+
onValueChange?: (value: T) => void;
|
|
11
|
+
/** Accessible group name. */
|
|
12
|
+
label?: string;
|
|
13
|
+
sound?: boolean;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Two-or-more segment switch with a sliding active pill.
|
|
17
|
+
*
|
|
18
|
+
* @sketch "Atom / Segmented Toggle", "Atom / Segmented Toggle / Right"
|
|
19
|
+
*/
|
|
20
|
+
export declare function SegmentedToggle<T extends string>({ options, value, defaultValue, onValueChange, label, sound, className, ...props }: SegmentedToggleProps<T>): React.ReactElement;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type * as React from "react";
|
|
2
|
+
export type TagTone = "amber" | "purple" | "blue" | "green";
|
|
3
|
+
export interface TagProps extends React.ComponentPropsWithoutRef<"span"> {
|
|
4
|
+
tone?: TagTone;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* 22px tinted label with a hairline border.
|
|
8
|
+
*
|
|
9
|
+
* @sketch "Atom / Tag / {Amber, Purple, Blue, Green}"
|
|
10
|
+
*/
|
|
11
|
+
export declare function Tag({ tone, className, children, ...props }: TagProps): React.ReactElement;
|
|
12
|
+
export type SignalLevel = "high" | "medium" | "low";
|
|
13
|
+
export interface SignalProps extends React.ComponentPropsWithoutRef<"span"> {
|
|
14
|
+
level?: SignalLevel;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Three-bar confidence meter.
|
|
18
|
+
*
|
|
19
|
+
* @sketch "Atom / Signal / {High, Medium, Low}"
|
|
20
|
+
*/
|
|
21
|
+
export declare function Signal({ level, className, ...props }: SignalProps): React.ReactElement;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type * as React from "react";
|
|
2
|
+
export interface ThumbnailProps extends React.ComponentPropsWithoutRef<"span"> {
|
|
3
|
+
src?: string;
|
|
4
|
+
alt?: string;
|
|
5
|
+
/** `sm` is the 40px chip tile (radius 10); `lg` the 240×160 preview (radius 14). */
|
|
6
|
+
size?: "sm" | "lg";
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Image slot with a gradient placeholder when `src` is missing.
|
|
10
|
+
*
|
|
11
|
+
* @sketch "Atom / Thumbnail / Small", "Atom / Thumbnail / Large"
|
|
12
|
+
*/
|
|
13
|
+
export declare function Thumbnail({ src, alt, size, className, children, ...props }: ThumbnailProps): React.ReactElement;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type * as React from "react";
|
|
2
|
+
export interface WaveformProps extends React.ComponentPropsWithoutRef<"span"> {
|
|
3
|
+
/** Bar heights in 0…1. Defaults to a 20-bar sample. */
|
|
4
|
+
bars?: number[];
|
|
5
|
+
/** Bars up to this index render in the accent colour (playback progress). */
|
|
6
|
+
progress?: number;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Static 20px-tall bar waveform for audio attachments.
|
|
10
|
+
*
|
|
11
|
+
* @sketch "Atom / Waveform"
|
|
12
|
+
*/
|
|
13
|
+
export declare function Waveform({ bars, progress, className, ...props }: WaveformProps): React.ReactElement;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { ComponentProps } from 'react';
|
|
2
|
+
import { IconTile } from './chat/icon-tile';
|
|
3
|
+
import { Thumbnail } from './chat/thumbnail';
|
|
4
|
+
import { AvatarHandle } from './chat/avatar-handle';
|
|
5
|
+
import { Waveform } from './chat/waveform';
|
|
6
|
+
import { SendButton } from './chat/buttons';
|
|
7
|
+
declare function IconTilePreview(props: Pick<ComponentProps<typeof IconTile>, "size" | "tone">): import("react").JSX.Element;
|
|
8
|
+
declare function ThumbnailPreview(props: Pick<ComponentProps<typeof Thumbnail>, "size" | "src" | "alt">): import("react").JSX.Element;
|
|
9
|
+
declare function AvatarHandlePreview(props: Pick<ComponentProps<typeof AvatarHandle>, "size" | "initials" | "src">): import("react").JSX.Element;
|
|
10
|
+
declare function WaveformPreview(props: Pick<ComponentProps<typeof Waveform>, "bars" | "progress">): import("react").JSX.Element;
|
|
11
|
+
declare function SendButtonPreview(props: Pick<ComponentProps<typeof SendButton>, "disabled" | "loading" | "sound">): import("react").JSX.Element;
|
|
12
|
+
export declare const story: import('@fumadocs/story/vite/client').Story<typeof IconTilePreview>;
|
|
13
|
+
export declare const thumbnailStory: import('@fumadocs/story/vite/client').Story<typeof ThumbnailPreview>;
|
|
14
|
+
export declare const avatarHandleStory: import('@fumadocs/story/vite/client').Story<typeof AvatarHandlePreview>;
|
|
15
|
+
export declare const waveformStory: import('@fumadocs/story/vite/client').Story<typeof WaveformPreview>;
|
|
16
|
+
export declare const sendButtonStory: import('@fumadocs/story/vite/client').Story<typeof SendButtonPreview>;
|
|
17
|
+
export declare const Preview: import('react').FC;
|
|
18
|
+
export declare const ThumbnailPreviewControl: import('react').FC;
|
|
19
|
+
export declare const AvatarHandlePreviewControl: import('react').FC;
|
|
20
|
+
export declare const WaveformPreviewControl: import('react').FC;
|
|
21
|
+
export declare const SendButtonPreviewControl: import('react').FC;
|
|
22
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ComponentProps } from 'react';
|
|
2
|
+
import { Checkbox } from './checkbox';
|
|
3
|
+
type PreviewProps = Pick<ComponentProps<typeof Checkbox>, "indeterminate" | "disabled" | "sound">;
|
|
4
|
+
declare function CheckboxPreview(props: PreviewProps): import("react").JSX.Element;
|
|
5
|
+
export declare const story: import('@fumadocs/story/vite/client').Story<typeof CheckboxPreview>;
|
|
6
|
+
export declare const Preview: import('react').FC;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Collapsible as CollapsiblePrimitive } from '@base-ui/react/collapsible';
|
|
2
|
+
import { default as React } from 'react';
|
|
3
|
+
export declare function Collapsible({ ...props }: CollapsiblePrimitive.Root.Props): React.ReactElement;
|
|
4
|
+
export declare function CollapsibleTrigger({ className, ...props }: CollapsiblePrimitive.Trigger.Props): React.ReactElement;
|
|
5
|
+
export declare function CollapsiblePanel({ className, ...props }: CollapsiblePrimitive.Panel.Props): React.ReactElement;
|
|
6
|
+
export { CollapsiblePrimitive, CollapsiblePanel as CollapsibleContent };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { Dialog as CommandDialogPrimitive } from '@base-ui/react/dialog';
|
|
2
|
+
import { Autocomplete, AutocompleteEmpty, AutocompleteGroup, AutocompleteGroupLabel, AutocompleteInput, AutocompleteItem, AutocompleteList, AutocompleteSeparator } from './autocomplete';
|
|
3
|
+
import type * as React from "react";
|
|
4
|
+
export declare const CommandDialog: typeof CommandDialogPrimitive.Root;
|
|
5
|
+
export declare const CommandDialogPortal: typeof CommandDialogPrimitive.Portal;
|
|
6
|
+
export declare const CommandCreateHandle: typeof CommandDialogPrimitive.createHandle;
|
|
7
|
+
export declare function CommandDialogTrigger(props: CommandDialogPrimitive.Trigger.Props): React.ReactElement;
|
|
8
|
+
export declare function CommandDialogBackdrop({ className, ...props }: CommandDialogPrimitive.Backdrop.Props): React.ReactElement;
|
|
9
|
+
export declare function CommandDialogViewport({ className, ...props }: CommandDialogPrimitive.Viewport.Props): React.ReactElement;
|
|
10
|
+
export declare function CommandDialogPopup({ className, children, portalProps, ...props }: CommandDialogPrimitive.Popup.Props & {
|
|
11
|
+
portalProps?: CommandDialogPrimitive.Portal.Props;
|
|
12
|
+
}): React.ReactElement;
|
|
13
|
+
export declare function Command({ autoHighlight, keepHighlight, ...props }: React.ComponentProps<typeof Autocomplete>): React.ReactElement;
|
|
14
|
+
export declare function CommandInput({ className, placeholder, ...props }: React.ComponentProps<typeof AutocompleteInput>): React.ReactElement;
|
|
15
|
+
export declare function CommandList({ className, ...props }: React.ComponentProps<typeof AutocompleteList>): React.ReactElement;
|
|
16
|
+
export declare function CommandEmpty({ className, ...props }: React.ComponentProps<typeof AutocompleteEmpty>): React.ReactElement;
|
|
17
|
+
export declare function CommandPanel({ className, ...props }: React.ComponentProps<"div">): React.ReactElement;
|
|
18
|
+
export declare function CommandGroup({ className, ...props }: React.ComponentProps<typeof AutocompleteGroup>): React.ReactElement;
|
|
19
|
+
export declare function CommandGroupLabel({ className, ...props }: React.ComponentProps<typeof AutocompleteGroupLabel>): React.ReactElement;
|
|
20
|
+
export declare const CommandCollection: typeof import('@base-ui/react').ComboboxCollection;
|
|
21
|
+
export declare function CommandItem({ className, ...props }: React.ComponentProps<typeof AutocompleteItem>): React.ReactElement;
|
|
22
|
+
export declare function CommandSeparator({ className, ...props }: React.ComponentProps<typeof AutocompleteSeparator>): React.ReactElement;
|
|
23
|
+
export declare function CommandShortcut({ className, ...props }: React.ComponentProps<"kbd">): React.ReactElement;
|
|
24
|
+
export declare function CommandFooter({ className, ...props }: React.ComponentProps<"div">): React.ReactElement;
|
|
25
|
+
export { CommandDialogPrimitive };
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { ContextMenu as ContextMenuPrimitive } from '@base-ui/react/context-menu';
|
|
2
|
+
import type * as React from "react";
|
|
3
|
+
export declare const ContextMenu: typeof ContextMenuPrimitive.Root;
|
|
4
|
+
export declare const ContextMenuPortal: typeof ContextMenuPrimitive.Portal;
|
|
5
|
+
export declare function ContextMenuTrigger({ className, children, ...props }: ContextMenuPrimitive.Trigger.Props): React.ReactElement;
|
|
6
|
+
export declare function ContextMenuPopup({ children, className, sideOffset, align, alignOffset, side, anchor, portalProps, ...props }: ContextMenuPrimitive.Popup.Props & {
|
|
7
|
+
align?: ContextMenuPrimitive.Positioner.Props["align"];
|
|
8
|
+
sideOffset?: ContextMenuPrimitive.Positioner.Props["sideOffset"];
|
|
9
|
+
alignOffset?: ContextMenuPrimitive.Positioner.Props["alignOffset"];
|
|
10
|
+
side?: ContextMenuPrimitive.Positioner.Props["side"];
|
|
11
|
+
anchor?: ContextMenuPrimitive.Positioner.Props["anchor"];
|
|
12
|
+
portalProps?: ContextMenuPrimitive.Portal.Props;
|
|
13
|
+
}): React.ReactElement;
|
|
14
|
+
export declare function ContextMenuGroup(props: ContextMenuPrimitive.Group.Props): React.ReactElement;
|
|
15
|
+
export declare function ContextMenuItem({ className, inset, variant, ...props }: ContextMenuPrimitive.Item.Props & {
|
|
16
|
+
inset?: boolean;
|
|
17
|
+
variant?: "default" | "destructive";
|
|
18
|
+
}): React.ReactElement;
|
|
19
|
+
export declare function ContextMenuLinkItem({ className, inset, variant, closeOnClick, ...props }: ContextMenuPrimitive.LinkItem.Props & {
|
|
20
|
+
inset?: boolean;
|
|
21
|
+
variant?: "default" | "destructive";
|
|
22
|
+
}): React.ReactElement;
|
|
23
|
+
export declare function ContextMenuCheckboxItem({ className, children, checked, variant, ...props }: ContextMenuPrimitive.CheckboxItem.Props & {
|
|
24
|
+
variant?: "default" | "switch";
|
|
25
|
+
}): React.ReactElement;
|
|
26
|
+
export declare function ContextMenuRadioGroup(props: ContextMenuPrimitive.RadioGroup.Props): React.ReactElement;
|
|
27
|
+
export declare function ContextMenuRadioItem({ className, children, ...props }: ContextMenuPrimitive.RadioItem.Props): React.ReactElement;
|
|
28
|
+
export declare function ContextMenuGroupLabel({ className, inset, ...props }: ContextMenuPrimitive.GroupLabel.Props & {
|
|
29
|
+
inset?: boolean;
|
|
30
|
+
}): React.ReactElement;
|
|
31
|
+
export declare function ContextMenuSeparator({ className, ...props }: ContextMenuPrimitive.Separator.Props): React.ReactElement;
|
|
32
|
+
export declare function ContextMenuShortcut({ className, ...props }: React.ComponentProps<"kbd">): React.ReactElement;
|
|
33
|
+
export declare function ContextMenuSub(props: ContextMenuPrimitive.SubmenuRoot.Props): React.ReactElement;
|
|
34
|
+
export declare function ContextMenuSubTrigger({ className, inset, children, ...props }: ContextMenuPrimitive.SubmenuTrigger.Props & {
|
|
35
|
+
inset?: boolean;
|
|
36
|
+
}): React.ReactElement;
|
|
37
|
+
export declare function ContextMenuSubPopup({ className, sideOffset, alignOffset, align, ...props }: ContextMenuPrimitive.Popup.Props & {
|
|
38
|
+
align?: ContextMenuPrimitive.Positioner.Props["align"];
|
|
39
|
+
sideOffset?: ContextMenuPrimitive.Positioner.Props["sideOffset"];
|
|
40
|
+
alignOffset?: ContextMenuPrimitive.Positioner.Props["alignOffset"];
|
|
41
|
+
}): React.ReactElement;
|
|
42
|
+
export { ContextMenuPrimitive };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { EmojiPicker as EmojiPickerPrimitive } from 'frimousse';
|
|
2
|
+
import type * as React from "react";
|
|
3
|
+
declare function EmojiPicker({ className, ...props }: React.ComponentProps<typeof EmojiPickerPrimitive.Root>): React.JSX.Element;
|
|
4
|
+
declare function EmojiPickerSearch({ className, ...props }: React.ComponentProps<typeof EmojiPickerPrimitive.Search>): React.JSX.Element;
|
|
5
|
+
declare function EmojiPickerContent({ className, ...props }: React.ComponentProps<typeof EmojiPickerPrimitive.Viewport>): React.JSX.Element;
|
|
6
|
+
declare function EmojiPickerFooter({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
|
7
|
+
export { EmojiPicker, EmojiPickerSearch, EmojiPickerContent, EmojiPickerFooter };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ComponentProps } from 'react';
|
|
2
|
+
import { Field } from './field';
|
|
3
|
+
type PreviewProps = Pick<ComponentProps<typeof Field>, "disabled" | "invalid">;
|
|
4
|
+
declare function FieldPreview(props: PreviewProps): import("react").JSX.Element;
|
|
5
|
+
export declare const story: import('@fumadocs/story/vite/client').Story<typeof FieldPreview>;
|
|
6
|
+
export declare const Preview: import('react').FC;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ComponentProps } from 'react';
|
|
2
|
+
import { FileBadgeTei } from '../icons/file-badge-tei';
|
|
3
|
+
type PreviewProps = Pick<ComponentProps<typeof FileBadgeTei>, "size" | "title">;
|
|
4
|
+
declare function FileBadgeTeiPreview(props: PreviewProps): import("react").JSX.Element;
|
|
5
|
+
export declare const story: import('@fumadocs/story/vite/client').Story<typeof FileBadgeTeiPreview>;
|
|
6
|
+
export declare const Preview: import('react').FC;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ComponentProps } from 'react';
|
|
2
|
+
import { Frame } from './frame';
|
|
3
|
+
type PreviewProps = Pick<ComponentProps<typeof Frame>, "className"> & {
|
|
4
|
+
children: string;
|
|
5
|
+
};
|
|
6
|
+
declare function FramePreview({ children, ...props }: PreviewProps): import("react").JSX.Element;
|
|
7
|
+
export declare const story: import('@fumadocs/story/vite/client').Story<typeof FramePreview>;
|
|
8
|
+
export declare const Preview: import('react').FC;
|
|
9
|
+
export {};
|
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
import { FrostGlassVariant, FrostGlassVariantProp } from '../../../lib/glass-variants';
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
declare const glassSidebarVariableStyles: Record<FrostGlassVariant, string>;
|
|
4
|
-
type GlassSidebarProps = React.HTMLAttributes<HTMLDivElement> & FrostGlassVariantProp
|
|
5
|
-
|
|
4
|
+
type GlassSidebarProps = React.HTMLAttributes<HTMLDivElement> & FrostGlassVariantProp & {
|
|
5
|
+
refraction?: number;
|
|
6
|
+
bezel?: number;
|
|
7
|
+
saturation?: number;
|
|
8
|
+
blur?: number;
|
|
9
|
+
};
|
|
10
|
+
declare function GlassContainer({ glassVariant, className, children, refraction, bezel, blur, saturation, ...props }: GlassSidebarProps): React.JSX.Element;
|
|
6
11
|
export { GlassContainer, glassSidebarVariableStyles };
|
|
7
12
|
export type { FrostGlassVariant } from '../../../lib/glass-variants';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ComponentProps } from 'react';
|
|
2
|
+
import { InputGroup } from './input-group';
|
|
3
|
+
type PreviewProps = Pick<ComponentProps<typeof InputGroup>, "className">;
|
|
4
|
+
declare function InputGroupPreview(props: PreviewProps): import("react").JSX.Element;
|
|
5
|
+
export declare const story: import('@fumadocs/story/vite/client').Story<typeof InputGroupPreview>;
|
|
6
|
+
export declare const Preview: import('react').FC;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ComponentProps } from 'react';
|
|
2
|
+
import { Input } from './input';
|
|
3
|
+
type PreviewProps = Pick<ComponentProps<typeof Input>, "placeholder" | "size" | "disabled" | "type" | "readOnly"> & {
|
|
4
|
+
variant: "default" | "unstyled";
|
|
5
|
+
};
|
|
6
|
+
declare function InputPreview({ variant, ...props }: PreviewProps): import("react").JSX.Element;
|
|
7
|
+
export declare const story: import('@fumadocs/story/vite/client').Story<typeof InputPreview>;
|
|
8
|
+
export declare const Preview: import('react').FC;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ComponentProps } from 'react';
|
|
2
|
+
import { Label } from './label';
|
|
3
|
+
type PreviewProps = Pick<ComponentProps<typeof Label>, "sound"> & {
|
|
4
|
+
children: string;
|
|
5
|
+
};
|
|
6
|
+
declare function LabelPreview({ children, ...props }: PreviewProps): import("react").JSX.Element;
|
|
7
|
+
export declare const story: import('@fumadocs/story/vite/client').Story<typeof LabelPreview>;
|
|
8
|
+
export declare const Preview: import('react').FC;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { MenuPopup } from './menu';
|
|
2
|
+
import type * as React from "react";
|
|
3
|
+
export interface MenuCommandItem {
|
|
4
|
+
id: string;
|
|
5
|
+
label: React.ReactNode;
|
|
6
|
+
/** Muted copy after the label ("Upload from your computer"). */
|
|
7
|
+
description?: React.ReactNode;
|
|
8
|
+
icon?: React.ReactNode;
|
|
9
|
+
/** Right-aligned status ("Connected"). */
|
|
10
|
+
trailing?: React.ReactNode;
|
|
11
|
+
/** Renders the row as a link instead of a button. */
|
|
12
|
+
href?: string;
|
|
13
|
+
disabled?: boolean;
|
|
14
|
+
onSelect?: () => void;
|
|
15
|
+
}
|
|
16
|
+
export interface MenuCommandListProps {
|
|
17
|
+
items: MenuCommandItem[];
|
|
18
|
+
onSelect?: (item: MenuCommandItem) => void;
|
|
19
|
+
className?: string;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Command rows for a menu popup: icon · label · description · trailing
|
|
23
|
+
* status. Use inside any `MenuPopup`, or via `MenuCommand` for the wired
|
|
24
|
+
* trigger + popup pair.
|
|
25
|
+
*
|
|
26
|
+
* @sketch "Atom / Menu Command"
|
|
27
|
+
*/
|
|
28
|
+
export declare function MenuCommandList({ items, onSelect, className, }: MenuCommandListProps): React.ReactElement;
|
|
29
|
+
export interface MenuCommandProps extends MenuCommandListProps {
|
|
30
|
+
/** The trigger element; receives the menu's trigger props. */
|
|
31
|
+
children: React.ReactElement;
|
|
32
|
+
side?: React.ComponentProps<typeof MenuPopup>["side"];
|
|
33
|
+
align?: React.ComponentProps<typeof MenuPopup>["align"];
|
|
34
|
+
popupClassName?: string;
|
|
35
|
+
}
|
|
36
|
+
/** A trigger and a popup of command rows, wired together. */
|
|
37
|
+
export declare function MenuCommand({ children, items, onSelect, side, align, className, popupClassName, }: MenuCommandProps): React.ReactElement;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ComponentProps } from 'react';
|
|
2
|
+
import { MenuCommand } from './menu-command';
|
|
3
|
+
type PreviewProps = Pick<ComponentProps<typeof MenuCommand>, "side" | "align">;
|
|
4
|
+
declare function MenuCommandPreview(props: PreviewProps): import("react").JSX.Element;
|
|
5
|
+
export declare const story: import('@fumadocs/story/vite/client').Story<typeof MenuCommandPreview>;
|
|
6
|
+
export declare const Preview: import('react').FC;
|
|
7
|
+
export {};
|