@ciridae/ui 0.17.0 → 1.0.1
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 +17 -12
- package/dist/chat/chat-api-error.d.ts +14 -0
- package/dist/chat/chat-api-error.js +11 -0
- package/dist/chat/chat-client.d.ts +37 -0
- package/dist/chat/chat-client.js +66 -0
- package/dist/chat/chat-hooks.d.ts +4 -0
- package/dist/chat/chat-hooks.js +4 -0
- package/dist/chat/chat-query-keys.d.ts +10 -0
- package/dist/chat/chat-query-keys.js +8 -0
- package/dist/chat/contract.d.ts +488 -0
- package/dist/chat/contract.js +223 -0
- package/dist/chat/conversation-items-query-options.d.ts +382 -0
- package/dist/chat/conversation-items-query-options.js +15 -0
- package/dist/chat/describe-tool-call.d.ts +5 -0
- package/dist/chat/describe-tool-call.js +33 -0
- package/dist/chat/fetch-new-conversation-items.d.ts +10 -0
- package/dist/chat/fetch-new-conversation-items.js +38 -0
- package/dist/chat/message-group-position.d.ts +17 -0
- package/dist/chat/message-group-position.js +25 -0
- package/dist/chat/message-text.d.ts +23 -0
- package/dist/chat/message-text.js +118 -0
- package/dist/chat/mock-chat-client.d.ts +97 -0
- package/dist/chat/mock-chat-client.js +566 -0
- package/dist/chat/use-chat-conversation.d.ts +43 -0
- package/dist/chat/use-chat-conversation.js +156 -0
- package/dist/chat/use-conversation-list.d.ts +32 -0
- package/dist/chat/use-conversation-list.js +19 -0
- package/dist/ciridae.css +60 -479
- package/dist/components/activity-feed.d.ts +80 -0
- package/dist/components/activity-feed.js +373 -0
- package/dist/components/agent-work.d.ts +76 -0
- package/dist/components/agent-work.js +224 -0
- package/dist/components/app-navigation.d.ts +66 -0
- package/dist/components/app-navigation.js +102 -0
- package/dist/components/badge.d.ts +14 -0
- package/dist/components/badge.js +107 -0
- package/dist/components/brand-icons.d.ts +17 -0
- package/dist/components/brand-icons.js +21 -0
- package/dist/components/breakpoint.d.ts +7 -0
- package/dist/components/breakpoint.js +16 -0
- package/dist/components/bulk-action-bar.d.ts +15 -0
- package/dist/components/bulk-action-bar.js +45 -0
- package/dist/components/button.d.ts +52 -0
- package/dist/components/button.js +272 -0
- package/dist/components/calendar.d.ts +14 -0
- package/dist/components/calendar.js +158 -0
- package/dist/components/centered-page.d.ts +21 -0
- package/dist/components/centered-page.js +55 -0
- package/dist/components/chart.d.ts +22 -0
- package/dist/components/chart.js +116 -0
- package/dist/components/chat-page.d.ts +34 -0
- package/dist/components/chat-page.js +171 -0
- package/dist/components/chat-sheet-controller.d.ts +50 -0
- package/dist/components/chat-sheet-controller.js +133 -0
- package/dist/components/chat-sheet.d.ts +80 -0
- package/dist/components/chat-sheet.js +544 -0
- package/dist/components/chat.d.ts +135 -0
- package/dist/components/chat.js +545 -0
- package/dist/components/checkbox-item.d.ts +11 -0
- package/dist/components/checkbox-item.js +45 -0
- package/dist/components/checkbox-list.d.ts +51 -0
- package/dist/components/checkbox-list.js +167 -0
- package/dist/components/chip.d.ts +17 -0
- package/dist/components/chip.js +43 -0
- package/dist/components/collapsible.d.ts +8 -0
- package/dist/components/collapsible.js +41 -0
- package/dist/components/color-theme.d.ts +40 -0
- package/dist/components/color-theme.js +109 -0
- package/dist/components/column-settings.d.ts +22 -0
- package/dist/components/column-settings.js +112 -0
- package/dist/components/command-match.d.ts +7 -0
- package/dist/components/command-match.js +50 -0
- package/dist/components/command-menu.d.ts +43 -0
- package/dist/components/command-menu.js +339 -0
- package/dist/components/command-palette.d.ts +36 -0
- package/dist/components/command-palette.js +77 -0
- package/dist/components/controllable-state.d.ts +5 -0
- package/dist/components/controllable-state.js +15 -0
- package/dist/components/copyable-id.d.ts +37 -0
- package/dist/components/copyable-id.js +136 -0
- package/dist/components/data-display.d.ts +47 -0
- package/dist/components/data-display.js +221 -0
- package/dist/components/data-grid.d.ts +170 -0
- package/dist/components/data-grid.js +829 -0
- package/dist/components/date-range-picker.d.ts +44 -0
- package/dist/components/date-range-picker.js +153 -0
- package/dist/components/date-time.d.ts +11 -0
- package/dist/components/date-time.js +44 -0
- package/dist/components/dialog-height-context.d.ts +2 -0
- package/dist/components/dialog-height-context.js +3 -0
- package/dist/components/document-viewer.d.ts +62 -0
- package/dist/components/document-viewer.js +419 -0
- package/dist/components/drawer.d.ts +44 -0
- package/dist/components/drawer.js +236 -0
- package/dist/components/dropzone.d.ts +47 -0
- package/dist/components/dropzone.js +370 -0
- package/dist/components/editable-field.d.ts +99 -0
- package/dist/components/editable-field.js +422 -0
- package/dist/components/email-input.d.ts +12 -0
- package/dist/components/email-input.js +83 -0
- package/dist/components/environment-frame.d.ts +13 -0
- package/dist/components/environment-frame.js +42 -0
- package/dist/components/expandable-text.d.ts +9 -0
- package/dist/components/expandable-text.js +48 -0
- package/dist/components/feedback-screenshot.d.ts +19 -0
- package/dist/components/feedback-screenshot.js +162 -0
- package/dist/components/feedback-sheet.d.ts +80 -0
- package/dist/components/feedback-sheet.js +475 -0
- package/dist/components/field-context.d.ts +23 -0
- package/dist/components/field-context.js +15 -0
- package/dist/components/filter-bar.d.ts +77 -0
- package/dist/components/filter-bar.js +350 -0
- package/dist/components/form-controls.d.ts +53 -0
- package/dist/components/form-controls.js +123 -0
- package/dist/components/form-layout.d.ts +32 -0
- package/dist/components/form-layout.js +72 -0
- package/dist/components/hotkeys.d.ts +27 -0
- package/dist/components/hotkeys.js +70 -0
- package/dist/components/icon.d.ts +58 -0
- package/dist/components/icon.js +42 -0
- package/dist/components/input.d.ts +36 -0
- package/dist/components/input.js +249 -0
- package/dist/components/keyboard-shortcuts.d.ts +10 -0
- package/dist/components/keyboard-shortcuts.js +91 -0
- package/dist/components/keycap.d.ts +12 -0
- package/dist/components/keycap.js +45 -0
- package/dist/components/layout.d.ts +174 -0
- package/dist/components/layout.js +282 -0
- package/dist/components/lightbox.d.ts +14 -0
- package/dist/components/lightbox.js +117 -0
- package/dist/components/link.d.ts +13 -0
- package/dist/components/link.js +37 -0
- package/dist/components/locale.d.ts +463 -0
- package/dist/components/locale.js +501 -0
- package/dist/components/log-list.d.ts +20 -0
- package/dist/components/log-list.js +92 -0
- package/dist/components/mention-input.d.ts +50 -0
- package/dist/components/mention-input.js +503 -0
- package/dist/components/menu.d.ts +76 -0
- package/dist/components/menu.js +112 -0
- package/dist/components/meter.d.ts +14 -0
- package/dist/components/meter.js +44 -0
- package/dist/components/navigation.d.ts +21 -0
- package/dist/components/navigation.js +75 -0
- package/dist/components/notification-tray.d.ts +47 -0
- package/dist/components/notification-tray.js +218 -0
- package/dist/components/overlays.d.ts +107 -0
- package/dist/components/overlays.js +240 -0
- package/dist/components/page-frame.d.ts +65 -0
- package/dist/components/page-frame.js +94 -0
- package/dist/components/panel.d.ts +24 -0
- package/dist/components/panel.js +107 -0
- package/dist/components/profile-header.d.ts +15 -0
- package/dist/components/profile-header.js +40 -0
- package/dist/components/progress.d.ts +5 -0
- package/dist/components/progress.js +18 -0
- package/dist/components/project-avatar.d.ts +12 -0
- package/dist/components/project-avatar.js +22 -0
- package/dist/components/radio-card.d.ts +22 -0
- package/dist/components/radio-card.js +66 -0
- package/dist/components/recent-items.d.ts +28 -0
- package/dist/components/recent-items.js +63 -0
- package/dist/components/record.d.ts +95 -0
- package/dist/components/record.js +282 -0
- package/dist/components/scroll-area.d.ts +16 -0
- package/dist/components/scroll-area.js +50 -0
- package/dist/components/secret-dialog.d.ts +10 -0
- package/dist/components/secret-dialog.js +12 -0
- package/dist/components/segmented-bar.d.ts +23 -0
- package/dist/components/segmented-bar.js +75 -0
- package/dist/components/select.d.ts +84 -0
- package/dist/components/select.js +374 -0
- package/dist/components/settings.d.ts +34 -0
- package/dist/components/settings.js +56 -0
- package/dist/components/shell-skeleton.d.ts +7 -0
- package/dist/components/shell-skeleton.js +15 -0
- package/dist/components/shell.d.ts +62 -0
- package/dist/components/shell.js +415 -0
- package/dist/components/side-panel.d.ts +36 -0
- package/dist/components/side-panel.js +184 -0
- package/dist/components/sidebar.d.ts +35 -0
- package/dist/components/sidebar.js +207 -0
- package/dist/components/site-banner.d.ts +25 -0
- package/dist/components/site-banner.js +30 -0
- package/dist/components/skeleton.d.ts +15 -0
- package/dist/components/skeleton.js +61 -0
- package/dist/components/skeletons.d.ts +28 -0
- package/dist/components/skeletons.js +60 -0
- package/dist/components/stages.d.ts +97 -0
- package/dist/components/stages.js +365 -0
- package/dist/components/stat-card.d.ts +34 -0
- package/dist/components/stat-card.js +117 -0
- package/dist/components/status-banner.d.ts +17 -0
- package/dist/components/status-banner.js +132 -0
- package/dist/components/status.d.ts +32 -0
- package/dist/components/status.js +93 -0
- package/dist/components/steps.d.ts +17 -0
- package/dist/components/steps.js +51 -0
- package/dist/components/switch.d.ts +6 -0
- package/dist/components/switch.js +39 -0
- package/dist/components/tabs.d.ts +48 -0
- package/dist/components/tabs.js +247 -0
- package/dist/components/theme-customizer.d.ts +53 -0
- package/dist/components/theme-customizer.js +116 -0
- package/dist/components/toast.d.ts +23 -0
- package/dist/components/toast.js +140 -0
- package/dist/components/user-chip.d.ts +66 -0
- package/dist/components/user-chip.js +174 -0
- package/dist/components/wizard.d.ts +33 -0
- package/dist/components/wizard.js +91 -0
- package/dist/feedback/client.d.ts +37 -0
- package/dist/feedback/client.js +125 -0
- package/dist/feedback/comment-types.d.ts +17 -0
- package/dist/feedback/contract.d.ts +252 -0
- package/dist/feedback/contract.js +32 -0
- package/dist/feedback/feedback-cache.d.ts +6 -0
- package/dist/feedback/feedback-cache.js +58 -0
- package/dist/feedback/feedback-center-model.d.ts +8 -0
- package/dist/feedback/feedback-center-model.js +37 -0
- package/dist/feedback/feedback-composer-types.d.ts +11 -0
- package/dist/feedback/feedback-controller.d.ts +56 -0
- package/dist/feedback/feedback-controller.js +181 -0
- package/dist/feedback/feedback-tracking-types.d.ts +14 -0
- package/dist/feedback/generated/index.d.ts +1 -0
- package/dist/feedback/generated/index.js +2 -0
- package/dist/feedback/generated/types.gen.d.ts +737 -0
- package/dist/feedback/generated/types.gen.js +2 -0
- package/dist/feedback/generated/zod.gen.d.ts +738 -0
- package/dist/feedback/generated/zod.gen.js +293 -0
- package/dist/feedback/get-response-error-id.d.ts +1 -0
- package/dist/feedback/get-response-error-id.js +7 -0
- package/dist/feedback/operator-client.d.ts +21 -0
- package/dist/feedback/operator-client.js +96 -0
- package/dist/feedback/operator-contract.d.ts +111 -0
- package/dist/feedback/operator-contract.js +22 -0
- package/dist/feedback/operator-controller.d.ts +80 -0
- package/dist/feedback/operator-controller.js +43 -0
- package/dist/feedback/require-config.d.ts +2 -0
- package/dist/feedback/require-config.js +7 -0
- package/dist/feedback/submit-feedback-with-attachments.d.ts +10 -0
- package/dist/feedback/submit-feedback-with-attachments.js +10 -0
- package/dist/format/compact-number.d.ts +2 -0
- package/dist/format/compact-number.js +8 -0
- package/dist/format/money.d.ts +13 -0
- package/dist/format/money.js +21 -0
- package/dist/format/usd.d.ts +2 -0
- package/dist/format/usd.js +16 -0
- package/dist/preset.d.ts +18 -0
- package/dist/preset.js +470 -0
- package/dist/styled-system/css/conditions.mjs +1 -1
- package/dist/styled-system/css/css.mjs +3 -3
- package/dist/styled-system/patterns/box.d.ts +1 -1
- package/dist/styled-system/patterns/container.d.ts +1 -1
- package/dist/styled-system/patterns/link-overlay.d.ts +1 -1
- package/dist/styled-system/patterns/visually-hidden.d.ts +1 -1
- package/dist/styled-system/styles.css +7834 -458
- package/dist/styled-system/tokens/index.mjs +1465 -677
- package/dist/styled-system/tokens/tokens.d.ts +32 -26
- package/dist/styled-system/types/conditions.d.ts +11 -1
- package/dist/styled-system/types/prop-type.d.ts +12 -23
- package/dist/styled-system/types/style-props.d.ts +25 -24
- package/dist/styles.css +60 -479
- package/dist/theme/breakpoints.d.ts +15 -0
- package/dist/theme/breakpoints.js +12 -0
- package/dist/theme/color.d.ts +2 -0
- package/dist/theme/color.js +27 -0
- package/dist/theme/derive.d.ts +5 -0
- package/dist/theme/derive.js +43 -0
- package/dist/theme/index.d.ts +4 -0
- package/dist/theme/index.js +9 -0
- package/dist/theme/options.d.ts +32 -0
- package/dist/theme/options.js +9 -0
- package/dist/theme/palettes.d.ts +60 -0
- package/dist/theme/palettes.js +185 -0
- package/dist/theme/tokens.d.ts +29 -0
- package/dist/theme/tokens.js +188 -0
- package/package.json +475 -68
- package/dist/assets/ciridae/brand-background-dark.webp +0 -0
- package/dist/assets/ciridae/brand-background-light.webp +0 -0
- package/dist/assets/ciridae/ciridae-black.svg +0 -17
- package/dist/assets/ciridae/ciridae-brand-assets.d.ts +0 -25
- package/dist/assets/ciridae/ciridae-brand-assets.js +0 -25
- package/dist/assets/ciridae/ciridae-icon-black.png +0 -0
- package/dist/assets/ciridae/ciridae-icon-white.png +0 -0
- package/dist/assets/ciridae/ciridae-ui-wordmark-black.png +0 -0
- package/dist/assets/ciridae/ciridae-ui-wordmark-white.png +0 -0
- package/dist/assets/ciridae/ciridae-white.svg +0 -17
- package/dist/assets/ciridae/ciridae-wordmark-black.png +0 -0
- package/dist/assets/ciridae/ciridae-wordmark-white.png +0 -0
- package/dist/assets/ciridae/favicon.ico +0 -0
- package/dist/assets/ciridae/logo-white.png +0 -0
- package/dist/assets/ciridae/sign-in-screenshot.png +0 -0
- package/dist/components/blocks/admin-users-table.d.ts +0 -22
- package/dist/components/blocks/admin-users-table.js +0 -115
- package/dist/components/blocks/comment-composer.d.ts +0 -18
- package/dist/components/blocks/comment-composer.js +0 -137
- package/dist/components/blocks/comment-item.d.ts +0 -8
- package/dist/components/blocks/comment-item.js +0 -45
- package/dist/components/blocks/comment-thread.d.ts +0 -19
- package/dist/components/blocks/comment-thread.js +0 -37
- package/dist/components/blocks/comment-types.d.ts +0 -18
- package/dist/components/blocks/comment-types.js +0 -11
- package/dist/components/blocks/copy-field.d.ts +0 -18
- package/dist/components/blocks/copy-field.js +0 -61
- package/dist/components/blocks/feedback-center-comments.d.ts +0 -16
- package/dist/components/blocks/feedback-center-comments.js +0 -61
- package/dist/components/blocks/feedback-center-footer.d.ts +0 -12
- package/dist/components/blocks/feedback-center-footer.js +0 -10
- package/dist/components/blocks/feedback-center-sheet-parts.d.ts +0 -40
- package/dist/components/blocks/feedback-center-sheet-parts.js +0 -39
- package/dist/components/blocks/feedback-center-sheet.d.ts +0 -28
- package/dist/components/blocks/feedback-center-sheet.js +0 -106
- package/dist/components/blocks/feedback-composer-parts.d.ts +0 -16
- package/dist/components/blocks/feedback-composer-parts.js +0 -43
- package/dist/components/blocks/feedback-composer-types.d.ts +0 -12
- package/dist/components/blocks/feedback-composer.d.ts +0 -24
- package/dist/components/blocks/feedback-composer.js +0 -82
- package/dist/components/blocks/feedback-date-format.d.ts +0 -5
- package/dist/components/blocks/feedback-date-format.js +0 -11
- package/dist/components/blocks/feedback-detail-sheet.d.ts +0 -15
- package/dist/components/blocks/feedback-detail-sheet.js +0 -59
- package/dist/components/blocks/feedback-emergency-fields.d.ts +0 -17
- package/dist/components/blocks/feedback-emergency-fields.js +0 -32
- package/dist/components/blocks/feedback-metrics.d.ts +0 -6
- package/dist/components/blocks/feedback-metrics.js +0 -15
- package/dist/components/blocks/feedback-sheet.d.ts +0 -8
- package/dist/components/blocks/feedback-sheet.js +0 -29
- package/dist/components/blocks/feedback-status-badge.d.ts +0 -6
- package/dist/components/blocks/feedback-status-badge.js +0 -15
- package/dist/components/blocks/feedback-table-row.d.ts +0 -6
- package/dist/components/blocks/feedback-table-row.js +0 -27
- package/dist/components/blocks/feedback-table-sort.d.ts +0 -11
- package/dist/components/blocks/feedback-table-sort.js +0 -82
- package/dist/components/blocks/feedback-table.d.ts +0 -16
- package/dist/components/blocks/feedback-table.js +0 -45
- package/dist/components/blocks/feedback-tracking-types.d.ts +0 -102
- package/dist/components/blocks/feedback-tracking-types.js +0 -54
- package/dist/components/blocks/feedback-triage-timeline.d.ts +0 -11
- package/dist/components/blocks/feedback-triage-timeline.js +0 -17
- package/dist/components/blocks/feedback-type-badge.d.ts +0 -11
- package/dist/components/blocks/feedback-type-badge.js +0 -18
- package/dist/components/blocks/feedback-unread-badge.d.ts +0 -6
- package/dist/components/blocks/feedback-unread-badge.js +0 -9
- package/dist/components/blocks/feedback-user-detail.d.ts +0 -11
- package/dist/components/blocks/feedback-user-detail.js +0 -63
- package/dist/components/blocks/feedback-user-list.d.ts +0 -11
- package/dist/components/blocks/feedback-user-list.js +0 -41
- package/dist/components/blocks/generated-connect-link.d.ts +0 -22
- package/dist/components/blocks/generated-connect-link.js +0 -68
- package/dist/components/blocks/invite-user-sheet.d.ts +0 -20
- package/dist/components/blocks/invite-user-sheet.js +0 -72
- package/dist/components/blocks/kanban-board-parts.d.ts +0 -26
- package/dist/components/blocks/kanban-board-parts.js +0 -83
- package/dist/components/blocks/kanban-board-utils.d.ts +0 -58
- package/dist/components/blocks/kanban-board-utils.js +0 -140
- package/dist/components/blocks/kanban-board.d.ts +0 -16
- package/dist/components/blocks/kanban-board.js +0 -35
- package/dist/components/blocks/kanban-card.d.ts +0 -10
- package/dist/components/blocks/kanban-card.js +0 -34
- package/dist/components/blocks/kanban-column.d.ts +0 -17
- package/dist/components/blocks/kanban-column.js +0 -34
- package/dist/components/blocks/kanban-detail-sheet.d.ts +0 -17
- package/dist/components/blocks/kanban-detail-sheet.js +0 -34
- package/dist/components/blocks/kanban-types.d.ts +0 -24
- package/dist/components/blocks/mcp-access-grouped-tool-picker.d.ts +0 -19
- package/dist/components/blocks/mcp-access-grouped-tool-picker.js +0 -116
- package/dist/components/blocks/mcp-access-tool-picker-internals.d.ts +0 -35
- package/dist/components/blocks/mcp-access-tool-picker-internals.js +0 -24
- package/dist/components/blocks/mcp-access-tool-picker.d.ts +0 -22
- package/dist/components/blocks/mcp-access-tool-picker.js +0 -33
- package/dist/components/blocks/mcp-access-types.d.ts +0 -42
- package/dist/components/blocks/mcp-access-types.js +0 -7
- package/dist/components/blocks/mcp-client-setup.d.ts +0 -29
- package/dist/components/blocks/mcp-client-setup.js +0 -58
- package/dist/components/blocks/mcp-connect-clients.d.ts +0 -43
- package/dist/components/blocks/mcp-connect-clients.js +0 -66
- package/dist/components/blocks/mcp-plan-choice.d.ts +0 -17
- package/dist/components/blocks/mcp-plan-choice.js +0 -28
- package/dist/components/blocks/submit-feedback-composer.d.ts +0 -5
- package/dist/components/blocks/submit-feedback-composer.js +0 -40
- package/dist/components/blocks/timestamp-format.d.ts +0 -14
- package/dist/components/blocks/timestamp-format.js +0 -72
- package/dist/components/blocks/use-feedback-composer-state.d.ts +0 -27
- package/dist/components/blocks/use-feedback-composer-state.js +0 -60
- package/dist/components/blocks/use-reveal-thread-end.d.ts +0 -11
- package/dist/components/blocks/use-reveal-thread-end.js +0 -25
- package/dist/components/pages/admin-users-page.d.ts +0 -11
- package/dist/components/pages/admin-users-page.js +0 -30
- package/dist/components/pages/feedback-stakeholder-page-parts.d.ts +0 -18
- package/dist/components/pages/feedback-stakeholder-page-parts.js +0 -36
- package/dist/components/pages/feedback-stakeholder-page.d.ts +0 -9
- package/dist/components/pages/feedback-stakeholder-page.js +0 -66
- package/dist/components/pages/kanban-page.d.ts +0 -13
- package/dist/components/pages/kanban-page.js +0 -68
- package/dist/components/ui/accordion.d.ts +0 -7
- package/dist/components/ui/accordion.js +0 -17
- package/dist/components/ui/alert-dialog.d.ts +0 -22
- package/dist/components/ui/alert-dialog.js +0 -51
- package/dist/components/ui/alert.d.ts +0 -9
- package/dist/components/ui/alert.js +0 -24
- package/dist/components/ui/app-shell-page.d.ts +0 -22
- package/dist/components/ui/app-shell-page.js +0 -21
- package/dist/components/ui/app-shell.d.ts +0 -45
- package/dist/components/ui/app-shell.js +0 -44
- package/dist/components/ui/aspect-ratio.d.ts +0 -3
- package/dist/components/ui/aspect-ratio.js +0 -7
- package/dist/components/ui/avatar.d.ts +0 -11
- package/dist/components/ui/avatar.js +0 -22
- package/dist/components/ui/badge-variants.d.ts +0 -100
- package/dist/components/ui/badge-variants.js +0 -140
- package/dist/components/ui/badge.d.ts +0 -6
- package/dist/components/ui/badge.js +0 -9
- package/dist/components/ui/breadcrumb.d.ts +0 -11
- package/dist/components/ui/breadcrumb.js +0 -27
- package/dist/components/ui/button-group-variants.d.ts +0 -6
- package/dist/components/ui/button-group-variants.js +0 -13
- package/dist/components/ui/button-group.d.ts +0 -8
- package/dist/components/ui/button-group.js +0 -16
- package/dist/components/ui/button-variants.d.ts +0 -133
- package/dist/components/ui/button-variants.js +0 -170
- package/dist/components/ui/button.d.ts +0 -8
- package/dist/components/ui/button.js +0 -59
- package/dist/components/ui/calendar.d.ts +0 -10
- package/dist/components/ui/calendar.js +0 -99
- package/dist/components/ui/card.d.ts +0 -14
- package/dist/components/ui/card.js +0 -28
- package/dist/components/ui/carousel.d.ts +0 -19
- package/dist/components/ui/carousel.js +0 -104
- package/dist/components/ui/chart-context.d.ts +0 -33
- package/dist/components/ui/chart-context.js +0 -36
- package/dist/components/ui/chart-panel.d.ts +0 -11
- package/dist/components/ui/chart-panel.js +0 -6
- package/dist/components/ui/chart-tooltip.d.ts +0 -13
- package/dist/components/ui/chart-tooltip.js +0 -84
- package/dist/components/ui/chart.d.ts +0 -23
- package/dist/components/ui/chart.js +0 -52
- package/dist/components/ui/checkbox.d.ts +0 -4
- package/dist/components/ui/checkbox.js +0 -9
- package/dist/components/ui/ciridae-ui-provider.d.ts +0 -8
- package/dist/components/ui/ciridae-ui-provider.js +0 -14
- package/dist/components/ui/collapsible.d.ts +0 -5
- package/dist/components/ui/collapsible.js +0 -12
- package/dist/components/ui/color-theme-context.d.ts +0 -28
- package/dist/components/ui/color-theme-context.js +0 -3
- package/dist/components/ui/color-theme.d.ts +0 -5
- package/dist/components/ui/color-theme.js +0 -147
- package/dist/components/ui/combobox-anchor.d.ts +0 -3
- package/dist/components/ui/combobox-anchor.js +0 -5
- package/dist/components/ui/combobox.d.ts +0 -24
- package/dist/components/ui/combobox.js +0 -54
- package/dist/components/ui/command.d.ts +0 -19
- package/dist/components/ui/command.js +0 -38
- package/dist/components/ui/context-menu.d.ts +0 -30
- package/dist/components/ui/context-menu.js +0 -63
- package/dist/components/ui/data-table-column-settings.d.ts +0 -23
- package/dist/components/ui/data-table-column-settings.js +0 -170
- package/dist/components/ui/data-table-context.d.ts +0 -8
- package/dist/components/ui/data-table-context.js +0 -53
- package/dist/components/ui/data-table-controls.d.ts +0 -9
- package/dist/components/ui/data-table-controls.js +0 -30
- package/dist/components/ui/data-table-facet-filter.d.ts +0 -39
- package/dist/components/ui/data-table-facet-filter.js +0 -65
- package/dist/components/ui/data-table-grid.d.ts +0 -10
- package/dist/components/ui/data-table-grid.js +0 -34
- package/dist/components/ui/data-table-pagination.d.ts +0 -17
- package/dist/components/ui/data-table-pagination.js +0 -89
- package/dist/components/ui/data-table-search-input.d.ts +0 -14
- package/dist/components/ui/data-table-search-input.js +0 -15
- package/dist/components/ui/data-table-state.d.ts +0 -19
- package/dist/components/ui/data-table-state.js +0 -8
- package/dist/components/ui/data-table-tanstack.d.ts +0 -99
- package/dist/components/ui/data-table-tanstack.js +0 -128
- package/dist/components/ui/data-table.d.ts +0 -19
- package/dist/components/ui/data-table.js +0 -35
- package/dist/components/ui/dialog.d.ts +0 -23
- package/dist/components/ui/dialog.js +0 -48
- package/dist/components/ui/direction-context.d.ts +0 -3
- package/dist/components/ui/direction-context.js +0 -3
- package/dist/components/ui/direction.d.ts +0 -6
- package/dist/components/ui/direction.js +0 -7
- package/dist/components/ui/drawer.d.ts +0 -18
- package/dist/components/ui/drawer.js +0 -47
- package/dist/components/ui/dropdown-menu.d.ts +0 -30
- package/dist/components/ui/dropdown-menu.js +0 -63
- package/dist/components/ui/empty.d.ts +0 -11
- package/dist/components/ui/empty.js +0 -33
- package/dist/components/ui/expandable-data-table.d.ts +0 -24
- package/dist/components/ui/expandable-data-table.js +0 -62
- package/dist/components/ui/field.d.ts +0 -26
- package/dist/components/ui/field.js +0 -74
- package/dist/components/ui/file-upload-field-parts.d.ts +0 -21
- package/dist/components/ui/file-upload-field-parts.js +0 -55
- package/dist/components/ui/file-upload-field.d.ts +0 -16
- package/dist/components/ui/file-upload-field.js +0 -85
- package/dist/components/ui/form-context.d.ts +0 -23
- package/dist/components/ui/form-context.js +0 -35
- package/dist/components/ui/form-sheet.d.ts +0 -22
- package/dist/components/ui/form-sheet.js +0 -74
- package/dist/components/ui/form.d.ts +0 -12
- package/dist/components/ui/form.js +0 -38
- package/dist/components/ui/hover-card.d.ts +0 -10
- package/dist/components/ui/hover-card.js +0 -22
- package/dist/components/ui/input-group.d.ts +0 -16
- package/dist/components/ui/input-group.js +0 -62
- package/dist/components/ui/input-otp.d.ts +0 -11
- package/dist/components/ui/input-otp.js +0 -21
- package/dist/components/ui/input.d.ts +0 -3
- package/dist/components/ui/input.js +0 -6
- package/dist/components/ui/item.d.ts +0 -24
- package/dist/components/ui/item.js +0 -73
- package/dist/components/ui/kbd.d.ts +0 -3
- package/dist/components/ui/kbd.js +0 -9
- package/dist/components/ui/label.d.ts +0 -4
- package/dist/components/ui/label.js +0 -7
- package/dist/components/ui/loading-state.d.ts +0 -27
- package/dist/components/ui/loading-state.js +0 -44
- package/dist/components/ui/menubar.d.ts +0 -30
- package/dist/components/ui/menubar.js +0 -63
- package/dist/components/ui/metrics-strip.d.ts +0 -7
- package/dist/components/ui/metrics-strip.js +0 -18
- package/dist/components/ui/native-select.d.ts +0 -7
- package/dist/components/ui/native-select.js +0 -13
- package/dist/components/ui/navigation-menu-variants.d.ts +0 -2
- package/dist/components/ui/navigation-menu-variants.js +0 -3
- package/dist/components/ui/navigation-menu.d.ts +0 -13
- package/dist/components/ui/navigation-menu.js +0 -30
- package/dist/components/ui/page-header.d.ts +0 -33
- package/dist/components/ui/page-header.js +0 -54
- package/dist/components/ui/pagination.d.ts +0 -13
- package/dist/components/ui/pagination.js +0 -29
- package/dist/components/ui/popover.d.ts +0 -14
- package/dist/components/ui/popover.js +0 -34
- package/dist/components/ui/progress.d.ts +0 -4
- package/dist/components/ui/progress.js +0 -8
- package/dist/components/ui/property-list.d.ts +0 -6
- package/dist/components/ui/property-list.js +0 -15
- package/dist/components/ui/radio-group.d.ts +0 -5
- package/dist/components/ui/radio-group.js +0 -11
- package/dist/components/ui/registry-docs-api.d.ts +0 -11
- package/dist/components/ui/registry-docs-api.js +0 -9
- package/dist/components/ui/registry-docs-code.d.ts +0 -19
- package/dist/components/ui/registry-docs-code.js +0 -78
- package/dist/components/ui/registry-docs-showcase.d.ts +0 -11
- package/dist/components/ui/registry-docs-showcase.js +0 -27
- package/dist/components/ui/registry-docs.d.ts +0 -27
- package/dist/components/ui/registry-docs.js +0 -32
- package/dist/components/ui/resizable.d.ts +0 -14
- package/dist/components/ui/resizable.js +0 -15
- package/dist/components/ui/scroll-area.d.ts +0 -7
- package/dist/components/ui/scroll-area.js +0 -10
- package/dist/components/ui/select.d.ts +0 -15
- package/dist/components/ui/select.js +0 -38
- package/dist/components/ui/separator.d.ts +0 -4
- package/dist/components/ui/separator.js +0 -7
- package/dist/components/ui/sheet.d.ts +0 -21
- package/dist/components/ui/sheet.js +0 -62
- package/dist/components/ui/sidebar/context.d.ts +0 -27
- package/dist/components/ui/sidebar/context.js +0 -23
- package/dist/components/ui/sidebar/group.d.ts +0 -10
- package/dist/components/ui/sidebar/group.js +0 -18
- package/dist/components/ui/sidebar/layout.d.ts +0 -17
- package/dist/components/ui/sidebar/layout.js +0 -78
- package/dist/components/ui/sidebar/menu.d.ts +0 -30
- package/dist/components/ui/sidebar/menu.js +0 -64
- package/dist/components/ui/sidebar/provider.d.ts +0 -7
- package/dist/components/ui/sidebar/provider.js +0 -53
- package/dist/components/ui/sidebar/rail.d.ts +0 -3
- package/dist/components/ui/sidebar/rail.js +0 -12
- package/dist/components/ui/sidebar/trigger.d.ts +0 -4
- package/dist/components/ui/sidebar/trigger.js +0 -16
- package/dist/components/ui/sidebar-account-menu-theme.d.ts +0 -7
- package/dist/components/ui/sidebar-account-menu-theme.js +0 -32
- package/dist/components/ui/sidebar-account-menu.d.ts +0 -16
- package/dist/components/ui/sidebar-account-menu.js +0 -51
- package/dist/components/ui/sidebar.d.ts +0 -7
- package/dist/components/ui/sidebar.js +0 -7
- package/dist/components/ui/skeleton.d.ts +0 -2
- package/dist/components/ui/skeleton.js +0 -15
- package/dist/components/ui/slider.d.ts +0 -4
- package/dist/components/ui/slider.js +0 -9
- package/dist/components/ui/sonner.d.ts +0 -3
- package/dist/components/ui/sonner.js +0 -33
- package/dist/components/ui/spinner.d.ts +0 -2
- package/dist/components/ui/spinner.js +0 -16
- package/dist/components/ui/switch.d.ts +0 -6
- package/dist/components/ui/switch.js +0 -7
- package/dist/components/ui/table.d.ts +0 -21
- package/dist/components/ui/table.js +0 -34
- package/dist/components/ui/tabs-variants.d.ts +0 -6
- package/dist/components/ui/tabs-variants.js +0 -13
- package/dist/components/ui/tabs.d.ts +0 -8
- package/dist/components/ui/tabs.js +0 -17
- package/dist/components/ui/textarea.d.ts +0 -3
- package/dist/components/ui/textarea.js +0 -6
- package/dist/components/ui/toggle-group.d.ts +0 -9
- package/dist/components/ui/toggle-group.js +0 -24
- package/dist/components/ui/toggle-variants.d.ts +0 -7
- package/dist/components/ui/toggle-variants.js +0 -19
- package/dist/components/ui/toggle.d.ts +0 -5
- package/dist/components/ui/toggle.js +0 -9
- package/dist/components/ui/tooltip.d.ts +0 -14
- package/dist/components/ui/tooltip.js +0 -25
- package/dist/components/ui/use-color-theme.d.ts +0 -2
- package/dist/components/ui/use-color-theme.js +0 -10
- package/dist/components/ui/workflow-timeline.d.ts +0 -20
- package/dist/components/ui/workflow-timeline.js +0 -92
- package/dist/components/walkthrough/presentation/WalkthroughCoach.d.ts +0 -14
- package/dist/components/walkthrough/presentation/WalkthroughCoach.js +0 -32
- package/dist/components/walkthrough/presentation/WalkthroughHighlight.d.ts +0 -5
- package/dist/components/walkthrough/presentation/WalkthroughHighlight.js +0 -9
- package/dist/components/walkthrough/presentation/WalkthroughOverlay.d.ts +0 -1
- package/dist/components/walkthrough/presentation/WalkthroughOverlay.js +0 -70
- package/dist/components/walkthrough/presentation/positionWalkthroughCoach.d.ts +0 -11
- package/dist/components/walkthrough/presentation/positionWalkthroughCoach.js +0 -24
- package/dist/components/walkthrough/presentation/useWalkthroughCoachPosition.d.ts +0 -4
- package/dist/components/walkthrough/presentation/useWalkthroughCoachPosition.js +0 -17
- package/dist/components/walkthrough/runtime/WalkthroughContextDefinition.d.ts +0 -20
- package/dist/components/walkthrough/runtime/WalkthroughContextDefinition.js +0 -2
- package/dist/components/walkthrough/runtime/WalkthroughProvider.d.ts +0 -12
- package/dist/components/walkthrough/runtime/WalkthroughProvider.js +0 -190
- package/dist/components/walkthrough/runtime/useWalkthrough.d.ts +0 -1
- package/dist/components/walkthrough/runtime/useWalkthrough.js +0 -8
- package/dist/components/walkthrough/runtime/walkthroughEvents.d.ts +0 -3
- package/dist/components/walkthrough/runtime/walkthroughEvents.js +0 -55
- package/dist/components/walkthrough/runtime/walkthroughLocation.d.ts +0 -2
- package/dist/components/walkthrough/runtime/walkthroughLocation.js +0 -27
- package/dist/components/walkthrough/runtime/walkthroughStorage.d.ts +0 -3
- package/dist/components/walkthrough/runtime/walkthroughStorage.js +0 -54
- package/dist/components/walkthrough/runtime/walkthroughTypes.d.ts +0 -32
- package/dist/components/walkthrough/targeting/listenForOutsideWalkthroughInteraction.d.ts +0 -2
- package/dist/components/walkthrough/targeting/listenForOutsideWalkthroughInteraction.js +0 -19
- package/dist/components/walkthrough/targeting/useWalkthroughTargetRect.d.ts +0 -15
- package/dist/components/walkthrough/targeting/useWalkthroughTargetRect.js +0 -54
- package/dist/components/walkthrough/targeting/walkthroughTarget.d.ts +0 -6
- package/dist/components/walkthrough/targeting/walkthroughTarget.js +0 -24
- package/dist/components/walkthrough.d.ts +0 -4
- package/dist/components/walkthrough.js +0 -2
- package/dist/entries/accordion.d.ts +0 -1
- package/dist/entries/accordion.js +0 -1
- package/dist/entries/admin-users-page.d.ts +0 -1
- package/dist/entries/admin-users-page.js +0 -1
- package/dist/entries/admin-users-table.d.ts +0 -1
- package/dist/entries/admin-users-table.js +0 -1
- package/dist/entries/alert-dialog.d.ts +0 -1
- package/dist/entries/alert-dialog.js +0 -1
- package/dist/entries/alert.d.ts +0 -1
- package/dist/entries/alert.js +0 -1
- package/dist/entries/app-shell-page.d.ts +0 -1
- package/dist/entries/app-shell-page.js +0 -1
- package/dist/entries/app-shell.d.ts +0 -1
- package/dist/entries/app-shell.js +0 -1
- package/dist/entries/aspect-ratio.d.ts +0 -1
- package/dist/entries/aspect-ratio.js +0 -1
- package/dist/entries/avatar.d.ts +0 -1
- package/dist/entries/avatar.js +0 -1
- package/dist/entries/badge-variants.d.ts +0 -1
- package/dist/entries/badge-variants.js +0 -1
- package/dist/entries/badge.d.ts +0 -1
- package/dist/entries/badge.js +0 -1
- package/dist/entries/breadcrumb.d.ts +0 -1
- package/dist/entries/breadcrumb.js +0 -1
- package/dist/entries/button-group-variants.d.ts +0 -1
- package/dist/entries/button-group-variants.js +0 -1
- package/dist/entries/button-group.d.ts +0 -1
- package/dist/entries/button-group.js +0 -1
- package/dist/entries/button-variants.d.ts +0 -1
- package/dist/entries/button-variants.js +0 -1
- package/dist/entries/button.d.ts +0 -1
- package/dist/entries/button.js +0 -1
- package/dist/entries/calendar.d.ts +0 -1
- package/dist/entries/calendar.js +0 -1
- package/dist/entries/card.d.ts +0 -1
- package/dist/entries/card.js +0 -1
- package/dist/entries/carousel.d.ts +0 -1
- package/dist/entries/carousel.js +0 -1
- package/dist/entries/chart-context.d.ts +0 -1
- package/dist/entries/chart-context.js +0 -1
- package/dist/entries/chart-panel.d.ts +0 -1
- package/dist/entries/chart-panel.js +0 -1
- package/dist/entries/chart-tooltip.d.ts +0 -1
- package/dist/entries/chart-tooltip.js +0 -1
- package/dist/entries/chart.d.ts +0 -1
- package/dist/entries/chart.js +0 -1
- package/dist/entries/checkbox.d.ts +0 -1
- package/dist/entries/checkbox.js +0 -1
- package/dist/entries/ciridae-brand-assets.d.ts +0 -1
- package/dist/entries/ciridae-brand-assets.js +0 -1
- package/dist/entries/ciridae-ui-provider.d.ts +0 -1
- package/dist/entries/ciridae-ui-provider.js +0 -1
- package/dist/entries/collapsible.d.ts +0 -1
- package/dist/entries/collapsible.js +0 -1
- package/dist/entries/color-theme-context.d.ts +0 -1
- package/dist/entries/color-theme-context.js +0 -1
- package/dist/entries/color-theme.d.ts +0 -1
- package/dist/entries/color-theme.js +0 -1
- package/dist/entries/combobox-anchor.d.ts +0 -1
- package/dist/entries/combobox-anchor.js +0 -1
- package/dist/entries/combobox.d.ts +0 -1
- package/dist/entries/combobox.js +0 -1
- package/dist/entries/command.d.ts +0 -1
- package/dist/entries/command.js +0 -1
- package/dist/entries/comment-composer.d.ts +0 -1
- package/dist/entries/comment-composer.js +0 -1
- package/dist/entries/comment-item.d.ts +0 -1
- package/dist/entries/comment-item.js +0 -1
- package/dist/entries/comment-thread.d.ts +0 -1
- package/dist/entries/comment-thread.js +0 -1
- package/dist/entries/comment-types.d.ts +0 -1
- package/dist/entries/comment-types.js +0 -1
- package/dist/entries/context-menu.d.ts +0 -1
- package/dist/entries/context-menu.js +0 -1
- package/dist/entries/copy-field.d.ts +0 -1
- package/dist/entries/copy-field.js +0 -1
- package/dist/entries/data-table-column-settings.d.ts +0 -1
- package/dist/entries/data-table-column-settings.js +0 -1
- package/dist/entries/data-table-context.d.ts +0 -1
- package/dist/entries/data-table-context.js +0 -1
- package/dist/entries/data-table-controls.d.ts +0 -1
- package/dist/entries/data-table-controls.js +0 -1
- package/dist/entries/data-table-facet-filter.d.ts +0 -1
- package/dist/entries/data-table-facet-filter.js +0 -1
- package/dist/entries/data-table-grid.d.ts +0 -1
- package/dist/entries/data-table-grid.js +0 -1
- package/dist/entries/data-table-pagination.d.ts +0 -1
- package/dist/entries/data-table-pagination.js +0 -1
- package/dist/entries/data-table-search-input.d.ts +0 -1
- package/dist/entries/data-table-search-input.js +0 -1
- package/dist/entries/data-table-state.d.ts +0 -1
- package/dist/entries/data-table-state.js +0 -1
- package/dist/entries/data-table-tanstack.d.ts +0 -1
- package/dist/entries/data-table-tanstack.js +0 -1
- package/dist/entries/data-table.d.ts +0 -1
- package/dist/entries/data-table.js +0 -1
- package/dist/entries/dialog.d.ts +0 -1
- package/dist/entries/dialog.js +0 -1
- package/dist/entries/direction-context.d.ts +0 -1
- package/dist/entries/direction-context.js +0 -1
- package/dist/entries/direction.d.ts +0 -1
- package/dist/entries/direction.js +0 -1
- package/dist/entries/drawer.d.ts +0 -1
- package/dist/entries/drawer.js +0 -1
- package/dist/entries/dropdown-menu.d.ts +0 -1
- package/dist/entries/dropdown-menu.js +0 -1
- package/dist/entries/empty.d.ts +0 -1
- package/dist/entries/empty.js +0 -1
- package/dist/entries/expandable-data-table.d.ts +0 -1
- package/dist/entries/expandable-data-table.js +0 -1
- package/dist/entries/feedback-center-comments.d.ts +0 -1
- package/dist/entries/feedback-center-comments.js +0 -1
- package/dist/entries/feedback-center-footer.d.ts +0 -1
- package/dist/entries/feedback-center-footer.js +0 -1
- package/dist/entries/feedback-center-sheet-parts.d.ts +0 -1
- package/dist/entries/feedback-center-sheet-parts.js +0 -1
- package/dist/entries/feedback-center-sheet.d.ts +0 -1
- package/dist/entries/feedback-center-sheet.js +0 -1
- package/dist/entries/feedback-composer-parts.d.ts +0 -1
- package/dist/entries/feedback-composer-parts.js +0 -1
- package/dist/entries/feedback-composer-types.d.ts +0 -1
- package/dist/entries/feedback-composer-types.js +0 -1
- package/dist/entries/feedback-composer.d.ts +0 -1
- package/dist/entries/feedback-composer.js +0 -1
- package/dist/entries/feedback-date-format.d.ts +0 -1
- package/dist/entries/feedback-date-format.js +0 -1
- package/dist/entries/feedback-detail-sheet.d.ts +0 -1
- package/dist/entries/feedback-detail-sheet.js +0 -1
- package/dist/entries/feedback-emergency-fields.d.ts +0 -1
- package/dist/entries/feedback-emergency-fields.js +0 -1
- package/dist/entries/feedback-metrics.d.ts +0 -1
- package/dist/entries/feedback-metrics.js +0 -1
- package/dist/entries/feedback-sheet.d.ts +0 -1
- package/dist/entries/feedback-sheet.js +0 -1
- package/dist/entries/feedback-stakeholder-page-parts.d.ts +0 -1
- package/dist/entries/feedback-stakeholder-page-parts.js +0 -1
- package/dist/entries/feedback-stakeholder-page.d.ts +0 -1
- package/dist/entries/feedback-stakeholder-page.js +0 -1
- package/dist/entries/feedback-status-badge.d.ts +0 -1
- package/dist/entries/feedback-status-badge.js +0 -1
- package/dist/entries/feedback-table-row.d.ts +0 -1
- package/dist/entries/feedback-table-row.js +0 -1
- package/dist/entries/feedback-table-sort.d.ts +0 -1
- package/dist/entries/feedback-table-sort.js +0 -1
- package/dist/entries/feedback-table.d.ts +0 -1
- package/dist/entries/feedback-table.js +0 -1
- package/dist/entries/feedback-tracking-types.d.ts +0 -1
- package/dist/entries/feedback-tracking-types.js +0 -1
- package/dist/entries/feedback-triage-timeline.d.ts +0 -1
- package/dist/entries/feedback-triage-timeline.js +0 -1
- package/dist/entries/feedback-type-badge.d.ts +0 -1
- package/dist/entries/feedback-type-badge.js +0 -1
- package/dist/entries/feedback-unread-badge.d.ts +0 -1
- package/dist/entries/feedback-unread-badge.js +0 -1
- package/dist/entries/feedback-user-detail.d.ts +0 -1
- package/dist/entries/feedback-user-detail.js +0 -1
- package/dist/entries/feedback-user-list.d.ts +0 -1
- package/dist/entries/feedback-user-list.js +0 -1
- package/dist/entries/field.d.ts +0 -1
- package/dist/entries/field.js +0 -1
- package/dist/entries/file-upload-field-parts.d.ts +0 -1
- package/dist/entries/file-upload-field-parts.js +0 -1
- package/dist/entries/file-upload-field.d.ts +0 -1
- package/dist/entries/file-upload-field.js +0 -1
- package/dist/entries/form-context.d.ts +0 -1
- package/dist/entries/form-context.js +0 -1
- package/dist/entries/form-sheet.d.ts +0 -1
- package/dist/entries/form-sheet.js +0 -1
- package/dist/entries/form.d.ts +0 -1
- package/dist/entries/form.js +0 -1
- package/dist/entries/generated-connect-link.d.ts +0 -1
- package/dist/entries/generated-connect-link.js +0 -1
- package/dist/entries/hover-card.d.ts +0 -1
- package/dist/entries/hover-card.js +0 -1
- package/dist/entries/input-group.d.ts +0 -1
- package/dist/entries/input-group.js +0 -1
- package/dist/entries/input-otp.d.ts +0 -1
- package/dist/entries/input-otp.js +0 -1
- package/dist/entries/input.d.ts +0 -1
- package/dist/entries/input.js +0 -1
- package/dist/entries/invite-user-sheet.d.ts +0 -1
- package/dist/entries/invite-user-sheet.js +0 -1
- package/dist/entries/item.d.ts +0 -1
- package/dist/entries/item.js +0 -1
- package/dist/entries/kanban-board-parts.d.ts +0 -1
- package/dist/entries/kanban-board-parts.js +0 -1
- package/dist/entries/kanban-board-utils.d.ts +0 -1
- package/dist/entries/kanban-board-utils.js +0 -1
- package/dist/entries/kanban-board.d.ts +0 -1
- package/dist/entries/kanban-board.js +0 -1
- package/dist/entries/kanban-card.d.ts +0 -1
- package/dist/entries/kanban-card.js +0 -1
- package/dist/entries/kanban-column.d.ts +0 -1
- package/dist/entries/kanban-column.js +0 -1
- package/dist/entries/kanban-detail-sheet.d.ts +0 -1
- package/dist/entries/kanban-detail-sheet.js +0 -1
- package/dist/entries/kanban-page.d.ts +0 -1
- package/dist/entries/kanban-page.js +0 -1
- package/dist/entries/kanban-types.d.ts +0 -1
- package/dist/entries/kanban-types.js +0 -1
- package/dist/entries/kbd.d.ts +0 -1
- package/dist/entries/kbd.js +0 -1
- package/dist/entries/label.d.ts +0 -1
- package/dist/entries/label.js +0 -1
- package/dist/entries/loading-state.d.ts +0 -1
- package/dist/entries/loading-state.js +0 -1
- package/dist/entries/mcp-access-grouped-tool-picker.d.ts +0 -1
- package/dist/entries/mcp-access-grouped-tool-picker.js +0 -1
- package/dist/entries/mcp-access-tool-picker.d.ts +0 -1
- package/dist/entries/mcp-access-tool-picker.js +0 -1
- package/dist/entries/mcp-access-types.d.ts +0 -1
- package/dist/entries/mcp-access-types.js +0 -1
- package/dist/entries/mcp-client-setup.d.ts +0 -1
- package/dist/entries/mcp-client-setup.js +0 -1
- package/dist/entries/mcp-connect-clients.d.ts +0 -1
- package/dist/entries/mcp-connect-clients.js +0 -1
- package/dist/entries/mcp-plan-choice.d.ts +0 -1
- package/dist/entries/mcp-plan-choice.js +0 -1
- package/dist/entries/menubar.d.ts +0 -1
- package/dist/entries/menubar.js +0 -1
- package/dist/entries/metrics-strip.d.ts +0 -1
- package/dist/entries/metrics-strip.js +0 -1
- package/dist/entries/native-select.d.ts +0 -1
- package/dist/entries/native-select.js +0 -1
- package/dist/entries/navigation-menu-variants.d.ts +0 -1
- package/dist/entries/navigation-menu-variants.js +0 -1
- package/dist/entries/navigation-menu.d.ts +0 -1
- package/dist/entries/navigation-menu.js +0 -1
- package/dist/entries/page-header.d.ts +0 -1
- package/dist/entries/page-header.js +0 -1
- package/dist/entries/pagination.d.ts +0 -1
- package/dist/entries/pagination.js +0 -1
- package/dist/entries/palette.d.ts +0 -2
- package/dist/entries/palette.js +0 -2
- package/dist/entries/popover.d.ts +0 -1
- package/dist/entries/popover.js +0 -1
- package/dist/entries/progress.d.ts +0 -1
- package/dist/entries/progress.js +0 -1
- package/dist/entries/property-list.d.ts +0 -1
- package/dist/entries/property-list.js +0 -1
- package/dist/entries/radio-group.d.ts +0 -1
- package/dist/entries/radio-group.js +0 -1
- package/dist/entries/registry-docs-api.d.ts +0 -1
- package/dist/entries/registry-docs-api.js +0 -1
- package/dist/entries/registry-docs-code.d.ts +0 -1
- package/dist/entries/registry-docs-code.js +0 -1
- package/dist/entries/registry-docs-showcase.d.ts +0 -1
- package/dist/entries/registry-docs-showcase.js +0 -1
- package/dist/entries/registry-docs.d.ts +0 -1
- package/dist/entries/registry-docs.js +0 -1
- package/dist/entries/resizable.d.ts +0 -1
- package/dist/entries/resizable.js +0 -1
- package/dist/entries/scroll-area.d.ts +0 -1
- package/dist/entries/scroll-area.js +0 -1
- package/dist/entries/select.d.ts +0 -1
- package/dist/entries/select.js +0 -1
- package/dist/entries/separator.d.ts +0 -1
- package/dist/entries/separator.js +0 -1
- package/dist/entries/sheet.d.ts +0 -1
- package/dist/entries/sheet.js +0 -1
- package/dist/entries/sidebar/context.d.ts +0 -1
- package/dist/entries/sidebar/context.js +0 -1
- package/dist/entries/sidebar/group.d.ts +0 -1
- package/dist/entries/sidebar/group.js +0 -1
- package/dist/entries/sidebar/layout.d.ts +0 -1
- package/dist/entries/sidebar/layout.js +0 -1
- package/dist/entries/sidebar/menu.d.ts +0 -1
- package/dist/entries/sidebar/menu.js +0 -1
- package/dist/entries/sidebar/provider.d.ts +0 -1
- package/dist/entries/sidebar/provider.js +0 -1
- package/dist/entries/sidebar/rail.d.ts +0 -1
- package/dist/entries/sidebar/rail.js +0 -1
- package/dist/entries/sidebar/trigger.d.ts +0 -1
- package/dist/entries/sidebar/trigger.js +0 -1
- package/dist/entries/sidebar-account-menu-theme.d.ts +0 -1
- package/dist/entries/sidebar-account-menu-theme.js +0 -1
- package/dist/entries/sidebar-account-menu.d.ts +0 -1
- package/dist/entries/sidebar-account-menu.js +0 -1
- package/dist/entries/sidebar.d.ts +0 -1
- package/dist/entries/sidebar.js +0 -1
- package/dist/entries/skeleton.d.ts +0 -1
- package/dist/entries/skeleton.js +0 -1
- package/dist/entries/slider.d.ts +0 -1
- package/dist/entries/slider.js +0 -1
- package/dist/entries/sonner.d.ts +0 -1
- package/dist/entries/sonner.js +0 -1
- package/dist/entries/spinner.d.ts +0 -1
- package/dist/entries/spinner.js +0 -1
- package/dist/entries/submit-feedback-composer.d.ts +0 -1
- package/dist/entries/submit-feedback-composer.js +0 -1
- package/dist/entries/switch.d.ts +0 -1
- package/dist/entries/switch.js +0 -1
- package/dist/entries/table.d.ts +0 -1
- package/dist/entries/table.js +0 -1
- package/dist/entries/tabs-variants.d.ts +0 -1
- package/dist/entries/tabs-variants.js +0 -1
- package/dist/entries/tabs.d.ts +0 -1
- package/dist/entries/tabs.js +0 -1
- package/dist/entries/textarea.d.ts +0 -1
- package/dist/entries/textarea.js +0 -1
- package/dist/entries/timestamp-format.d.ts +0 -1
- package/dist/entries/timestamp-format.js +0 -1
- package/dist/entries/toggle-group.d.ts +0 -1
- package/dist/entries/toggle-group.js +0 -1
- package/dist/entries/toggle-variants.d.ts +0 -1
- package/dist/entries/toggle-variants.js +0 -1
- package/dist/entries/toggle.d.ts +0 -1
- package/dist/entries/toggle.js +0 -1
- package/dist/entries/tooltip.d.ts +0 -1
- package/dist/entries/tooltip.js +0 -1
- package/dist/entries/use-color-theme.d.ts +0 -1
- package/dist/entries/use-color-theme.js +0 -1
- package/dist/entries/use-feedback-composer-state.d.ts +0 -1
- package/dist/entries/use-feedback-composer-state.js +0 -1
- package/dist/entries/use-mobile.d.ts +0 -1
- package/dist/entries/use-mobile.js +0 -1
- package/dist/entries/utils.d.ts +0 -1
- package/dist/entries/utils.js +0 -1
- package/dist/entries/walkthrough.d.ts +0 -1
- package/dist/entries/walkthrough.js +0 -1
- package/dist/entries/workflow-timeline.d.ts +0 -1
- package/dist/entries/workflow-timeline.js +0 -1
- package/dist/hooks/use-mobile.d.ts +0 -1
- package/dist/hooks/use-mobile.js +0 -17
- package/dist/lib/browser-storage.d.ts +0 -12
- package/dist/lib/browser-storage.js +0 -42
- package/dist/lib/palette-presets.d.ts +0 -17
- package/dist/lib/palette-presets.js +0 -42
- package/dist/lib/palette-tokens.d.ts +0 -39
- package/dist/lib/palette-tokens.js +0 -133
- package/dist/lib/palette.d.ts +0 -83
- package/dist/lib/palette.js +0 -151
- package/dist/lib/utils.d.ts +0 -5
- package/dist/lib/utils.js +0 -8
- package/dist/style-imports.d.ts +0 -3
- /package/dist/{components/blocks/feedback-composer-types.js → feedback/comment-types.js} +0 -0
- /package/dist/{components/blocks/kanban-types.js → feedback/feedback-composer-types.js} +0 -0
- /package/dist/{components/walkthrough/runtime/walkthroughTypes.js → feedback/feedback-tracking-types.js} +0 -0
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
+
import { Menu as BaseMenu } from "@base-ui/react/menu";
|
|
3
|
+
import { CaretRightIcon, CheckIcon, DotsThreeIcon } from "@phosphor-icons/react";
|
|
4
|
+
import { css, cx } from "#primitives/css";
|
|
5
|
+
import { IconButton } from "./button.js";
|
|
6
|
+
import { HotkeyLayer } from "./hotkeys.js";
|
|
7
|
+
import { directional, icon, Spinner } from "./icon.js";
|
|
8
|
+
import { ShortcutHint } from "./keycap.js";
|
|
9
|
+
/* Flush, like the select menu: rows run edge to edge and the popup's corners clip them. */
|
|
10
|
+
const popup = css({
|
|
11
|
+
minWidth: "overlay.menu",
|
|
12
|
+
padding: "none",
|
|
13
|
+
overflow: "hidden",
|
|
14
|
+
border: "1px solid token(colors.border.control)",
|
|
15
|
+
borderRadius: "action",
|
|
16
|
+
background: "bg.card",
|
|
17
|
+
color: "fg.primary",
|
|
18
|
+
textStyle: "body",
|
|
19
|
+
boxShadow: "card",
|
|
20
|
+
});
|
|
21
|
+
// A submenu joins its parent: the corner it opens from goes square, so the two read as one panel.
|
|
22
|
+
const submenuPopup = css({
|
|
23
|
+
"&:is([data-side=right], [data-side=inline-end])": { borderStartStartRadius: "0" },
|
|
24
|
+
"&:is([data-side=left], [data-side=inline-start])": { borderStartEndRadius: "0" },
|
|
25
|
+
});
|
|
26
|
+
/** The positioner is the positioned element, so it carries the stacking order. */
|
|
27
|
+
const positioner = css({ zIndex: "popover" });
|
|
28
|
+
const item = css({
|
|
29
|
+
display: "flex",
|
|
30
|
+
alignItems: "center",
|
|
31
|
+
gap: "layout.controlGap",
|
|
32
|
+
minHeight: "menu.item",
|
|
33
|
+
paddingInline: "control.compactInline",
|
|
34
|
+
fontSize: "caption",
|
|
35
|
+
lineHeight: "body",
|
|
36
|
+
cursor: "pointer",
|
|
37
|
+
outline: "none",
|
|
38
|
+
"&[data-highlighted], &[data-popup-open]": { background: "bg.rowHover" },
|
|
39
|
+
"&[data-disabled]": { opacity: "disabled", cursor: "not-allowed" },
|
|
40
|
+
"& > [data-label]": { flex: "1", minWidth: "0" },
|
|
41
|
+
"& > [data-trailing]": { color: "fg.muted" },
|
|
42
|
+
});
|
|
43
|
+
const danger = css({ color: "accent.red" });
|
|
44
|
+
/* Not an item: a row that names what the menu belongs to, such as the signed-in account. */
|
|
45
|
+
const header = css({
|
|
46
|
+
display: "flex",
|
|
47
|
+
alignItems: "center",
|
|
48
|
+
gap: "layout.controlGap",
|
|
49
|
+
paddingInline: "control.compactInline",
|
|
50
|
+
paddingBlock: "control.compactBlock",
|
|
51
|
+
fontSize: "caption",
|
|
52
|
+
lineHeight: "compact",
|
|
53
|
+
cursor: "default",
|
|
54
|
+
});
|
|
55
|
+
const headerCopy = css({
|
|
56
|
+
display: "grid",
|
|
57
|
+
flex: "1",
|
|
58
|
+
minWidth: "0",
|
|
59
|
+
"& > *": { overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "nowrap" },
|
|
60
|
+
"& > :first-child": { fontWeight: "medium" },
|
|
61
|
+
"& > :last-child:not(:first-child)": { color: "fg.muted" },
|
|
62
|
+
});
|
|
63
|
+
const groupHeading = css({
|
|
64
|
+
display: "flex",
|
|
65
|
+
alignItems: "center",
|
|
66
|
+
minHeight: "menu.item",
|
|
67
|
+
paddingInline: "control.compactInline",
|
|
68
|
+
color: "fg.muted",
|
|
69
|
+
fontSize: "code",
|
|
70
|
+
fontWeight: "medium",
|
|
71
|
+
letterSpacing: "compact",
|
|
72
|
+
cursor: "default",
|
|
73
|
+
});
|
|
74
|
+
const itemMeta = css({
|
|
75
|
+
minWidth: "0",
|
|
76
|
+
overflow: "hidden",
|
|
77
|
+
textOverflow: "ellipsis",
|
|
78
|
+
whiteSpace: "nowrap",
|
|
79
|
+
color: "fg.muted",
|
|
80
|
+
});
|
|
81
|
+
const separator = css({
|
|
82
|
+
height: "border.hairline",
|
|
83
|
+
background: "border.subtle",
|
|
84
|
+
});
|
|
85
|
+
export function Menu({ trigger, items, align = "start", ...rootProps }) {
|
|
86
|
+
return (_jsxs(BaseMenu.Root, { ...rootProps, children: [_jsx(BaseMenu.Trigger, { render: trigger }), _jsx(BaseMenu.Portal, { children: _jsx(HotkeyLayer, { children: _jsx(BaseMenu.Positioner, { className: positioner, sideOffset: 6, align: align, children: _jsx(BaseMenu.Popup, { className: popup, "data-ciridae-ui": "", children: _jsx(MenuItems, { items: items }) }) }) }) })] }));
|
|
87
|
+
}
|
|
88
|
+
/** The "more" button: an `IconButton` with three dots that opens a `Menu` of `items`. */
|
|
89
|
+
export function OverflowMenu({ label, size = "medium", variant = "raised", align = "end", disabled, ref, ...props }) {
|
|
90
|
+
return (_jsx(Menu, { ...props, align: align, trigger: _jsx(IconButton, { ref: ref, "aria-label": label, size: size, variant: variant, disabled: disabled, children: _jsx(DotsThreeIcon, { className: icon({ size: size === "large" ? "medium" : "small" }), weight: "bold" }) }) }));
|
|
91
|
+
}
|
|
92
|
+
function MenuItems({ items }) {
|
|
93
|
+
return items.map((menuItem, index) => {
|
|
94
|
+
if ("separator" in menuItem)
|
|
95
|
+
return _jsx(BaseMenu.Separator, { className: separator }, index);
|
|
96
|
+
if ("group" in menuItem) {
|
|
97
|
+
return (_jsx("div", { className: groupHeading, role: "presentation", children: menuItem.label }, index));
|
|
98
|
+
}
|
|
99
|
+
if ("header" in menuItem) {
|
|
100
|
+
return (_jsxs("div", { className: header, role: "presentation", children: [menuItem.icon, _jsxs("span", { className: headerCopy, children: [_jsx("span", { children: menuItem.label }), menuItem.detail && _jsx("span", { children: menuItem.detail })] })] }, index));
|
|
101
|
+
}
|
|
102
|
+
if (menuItem.items) {
|
|
103
|
+
return (_jsxs(BaseMenu.SubmenuRoot, { children: [_jsxs(BaseMenu.SubmenuTrigger, { className: item, disabled: menuItem.disabled, children: [menuItem.icon, _jsx("span", { "data-label": "", children: menuItem.label }), _jsx(CaretRightIcon, { "data-trailing": "", className: cx(icon({ size: "tiny" }), directional) })] }), _jsx(BaseMenu.Portal, { children: _jsx(BaseMenu.Positioner, { className: positioner, sideOffset: 0, align: "start", alignOffset: -1, children: _jsx(BaseMenu.Popup, { className: cx(popup, submenuPopup), "data-ciridae-ui": "", children: _jsx(MenuItems, { items: menuItem.items }) }) }) })] }, menuItem.label));
|
|
104
|
+
}
|
|
105
|
+
const content = (_jsxs(_Fragment, { children: [menuItem.loading ? _jsx(Spinner, { "aria-hidden": "true" }) : menuItem.icon, _jsxs("span", { "data-label": "", children: [menuItem.label, menuItem.meta !== undefined && _jsxs("span", { className: itemMeta, children: [" ", menuItem.meta] })] }), menuItem.shortcut && _jsx(ShortcutHint, { "data-trailing": "", hotkey: menuItem.shortcut }), menuItem.checked && _jsx(CheckIcon, { "data-trailing": "", className: icon({ size: "small" }) })] }));
|
|
106
|
+
const className = cx(item, menuItem.variant === "danger" && danger);
|
|
107
|
+
if (menuItem.href !== undefined || menuItem.render !== undefined) {
|
|
108
|
+
return (_jsx(BaseMenu.LinkItem, { className: className, href: menuItem.href, render: menuItem.render, closeOnClick: true, onClick: menuItem.onSelect, children: content }, menuItem.label));
|
|
109
|
+
}
|
|
110
|
+
return (_jsx(BaseMenu.Item, { className: className, disabled: menuItem.disabled || menuItem.loading, onClick: menuItem.onSelect, children: content }, menuItem.label));
|
|
111
|
+
});
|
|
112
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { Tone } from "./badge.js";
|
|
2
|
+
import type { ComponentProps, ReactNode } from "react";
|
|
3
|
+
export type MeterProps = Omit<ComponentProps<"span">, "children"> & {
|
|
4
|
+
value: number;
|
|
5
|
+
/** 1 by default, so a share can be passed as is. */
|
|
6
|
+
max?: number;
|
|
7
|
+
/** `info` by default; `warning` once it nears the limit, say. */
|
|
8
|
+
tone?: Tone;
|
|
9
|
+
/** Names the meter for assistive tech, such as the job whose budget it is. */
|
|
10
|
+
label: string;
|
|
11
|
+
/** The figure shown above the track, such as "92%"; nothing is shown without it. */
|
|
12
|
+
valueLabel?: ReactNode;
|
|
13
|
+
};
|
|
14
|
+
export declare function Meter({ value, max, tone, label, valueLabel, className, ...props }: MeterProps): import("@types/react").JSX.Element;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
/*
|
|
3
|
+
* A measured amount against its limit, such as a budget spent: a thin track filled to
|
|
4
|
+
* `value / max`, with the figure above it at the end. Past the limit the track stays full. It is
|
|
5
|
+
* phrasing content, so it can sit inside a row's button.
|
|
6
|
+
*/
|
|
7
|
+
import { css, cva, cx } from "#primitives/css";
|
|
8
|
+
const meter = css({
|
|
9
|
+
display: "flex",
|
|
10
|
+
flexDirection: "column",
|
|
11
|
+
alignItems: "flex-end",
|
|
12
|
+
gap: "layout.tightGap",
|
|
13
|
+
fontSize: "body",
|
|
14
|
+
fontWeight: "medium",
|
|
15
|
+
fontVariantNumeric: "tabular-nums",
|
|
16
|
+
});
|
|
17
|
+
const track = cva({
|
|
18
|
+
base: { width: "100%", height: "6px", borderRadius: "control", overflow: "hidden" },
|
|
19
|
+
variants: {
|
|
20
|
+
tone: {
|
|
21
|
+
neutral: { background: "bg.hover" },
|
|
22
|
+
info: { background: "bg.infoSubtle" },
|
|
23
|
+
success: { background: "bg.successSubtle" },
|
|
24
|
+
warning: { background: "bg.warningSubtle" },
|
|
25
|
+
danger: { background: "bg.errorSubtle" },
|
|
26
|
+
},
|
|
27
|
+
},
|
|
28
|
+
});
|
|
29
|
+
const fill = cva({
|
|
30
|
+
base: { display: "block", height: "100%", borderRadius: "control" },
|
|
31
|
+
variants: {
|
|
32
|
+
tone: {
|
|
33
|
+
neutral: { background: "fg.subtle" },
|
|
34
|
+
info: { background: "accent.blue" },
|
|
35
|
+
success: { background: "accent.green" },
|
|
36
|
+
warning: { background: "accent.yellow" },
|
|
37
|
+
danger: { background: "accent.red" },
|
|
38
|
+
},
|
|
39
|
+
},
|
|
40
|
+
});
|
|
41
|
+
export function Meter({ value, max = 1, tone = "info", label, valueLabel, className, ...props }) {
|
|
42
|
+
const share = max > 0 ? Math.min(Math.max(value / max, 0), 1) : 0;
|
|
43
|
+
return (_jsxs("span", { role: "meter", "aria-label": label, "aria-valuenow": value, "aria-valuemin": 0, "aria-valuemax": max, "aria-valuetext": typeof valueLabel === "string" ? valueLabel : undefined, ...props, className: cx(meter, className), "data-ciridae-ui": "", children: [valueLabel, _jsx("span", { className: track({ tone }), children: _jsx("span", { className: fill({ tone }), style: { width: `${share * 100}%` } }) })] }));
|
|
44
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { type CiridaeLabels } from "./locale.js";
|
|
2
|
+
import type { ComponentProps, ReactNode } from "react";
|
|
3
|
+
export type PaginationProps = Omit<ComponentProps<"nav">, "children"> & {
|
|
4
|
+
page: number;
|
|
5
|
+
pages: number;
|
|
6
|
+
onPageChange: (page: number) => void;
|
|
7
|
+
labels?: Partial<CiridaeLabels["pagination"]>;
|
|
8
|
+
};
|
|
9
|
+
export declare function Pagination({ page, pages, onPageChange, labels: ownLabels, className, ...props }: PaginationProps): import("@types/react").JSX.Element;
|
|
10
|
+
export type EmptyStateProps = Omit<ComponentProps<"section">, "title"> & {
|
|
11
|
+
icon?: ReactNode;
|
|
12
|
+
title: ReactNode;
|
|
13
|
+
description?: ReactNode;
|
|
14
|
+
action?: ReactNode;
|
|
15
|
+
/**
|
|
16
|
+
* `block` frames a page's or panel's empty state; `bare` is the same without the frame, its icon
|
|
17
|
+
* in a ring, for a table or card that frames it; `inline` is one muted line in a list.
|
|
18
|
+
*/
|
|
19
|
+
variant?: "block" | "bare" | "inline";
|
|
20
|
+
};
|
|
21
|
+
export declare function EmptyState({ icon, title, description, action, variant, className, ...props }: EmptyStateProps): import("@types/react").JSX.Element;
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { css, cva, cx } from "#primitives/css";
|
|
3
|
+
import { Button } from "./button.js";
|
|
4
|
+
import { Heading } from "./layout.js";
|
|
5
|
+
import { useCiridaeLocale } from "./locale.js";
|
|
6
|
+
export function Pagination({ page, pages, onPageChange, labels: ownLabels, className, ...props }) {
|
|
7
|
+
const locale = useCiridaeLocale();
|
|
8
|
+
const labels = { ...locale.labels.pagination, ...ownLabels };
|
|
9
|
+
const visible = Array.from({ length: pages }, (_, index) => index + 1);
|
|
10
|
+
return (_jsxs("nav", { "aria-label": labels.label, ...props, className: cx(css({ display: "flex", gap: "layout.tightGap" }), className), "data-ciridae-ui": "", children: [_jsx(Button, { variant: "ghost", disabled: pages === 0 || page <= 1, onClick: () => onPageChange(Math.max(1, page - 1)), children: labels.previous }), visible.map((value) => (_jsx(Button, { variant: value === page ? "primary" : "ghost", "aria-current": value === page ? "page" : undefined, onClick: () => onPageChange(value), children: locale.formatNumber(value) }, value))), _jsx(Button, { variant: "ghost", disabled: pages === 0 || page >= pages, onClick: () => onPageChange(Math.min(pages, page + 1)), children: labels.next })] }));
|
|
11
|
+
}
|
|
12
|
+
const emptyState = cva({
|
|
13
|
+
base: { display: "grid", placeItems: "center", textAlign: "center" },
|
|
14
|
+
variants: {
|
|
15
|
+
variant: {
|
|
16
|
+
// A page or panel with nothing in it yet: a dashed frame with room for a heading.
|
|
17
|
+
block: {
|
|
18
|
+
minHeight: "emptyState.minimum",
|
|
19
|
+
padding: "panel.roomy",
|
|
20
|
+
border: "1px dashed token(colors.border.control)",
|
|
21
|
+
borderRadius: "inset",
|
|
22
|
+
},
|
|
23
|
+
// Inside a table or a card that frames it already: the icon in a ring, no frame of its own.
|
|
24
|
+
bare: {
|
|
25
|
+
justifyItems: "center",
|
|
26
|
+
gap: "layout.clusterGap",
|
|
27
|
+
paddingBlock: "panel.roomy",
|
|
28
|
+
paddingInline: "panel.comfortable",
|
|
29
|
+
},
|
|
30
|
+
// A list or section with nothing to show: one muted line, no frame.
|
|
31
|
+
inline: {
|
|
32
|
+
padding: "panel.default",
|
|
33
|
+
color: "fg.muted",
|
|
34
|
+
fontSize: "caption",
|
|
35
|
+
fontWeight: "medium",
|
|
36
|
+
},
|
|
37
|
+
},
|
|
38
|
+
},
|
|
39
|
+
defaultVariants: { variant: "block" },
|
|
40
|
+
});
|
|
41
|
+
const emptyRing = css({
|
|
42
|
+
display: "grid",
|
|
43
|
+
placeItems: "center",
|
|
44
|
+
width: "brand.logo",
|
|
45
|
+
height: "brand.logo",
|
|
46
|
+
border: "1px solid token(colors.border.control)",
|
|
47
|
+
borderRadius: "round",
|
|
48
|
+
background: "bg.field",
|
|
49
|
+
color: "fg.muted",
|
|
50
|
+
fontSize: "icon.small",
|
|
51
|
+
});
|
|
52
|
+
const emptyCopy = css({ display: "grid", gap: "control.iconGap", maxWidth: "card.centered" });
|
|
53
|
+
const emptyDescription = css({
|
|
54
|
+
margin: "none",
|
|
55
|
+
color: "fg.muted",
|
|
56
|
+
fontSize: "code",
|
|
57
|
+
fontWeight: "medium",
|
|
58
|
+
letterSpacing: "compact",
|
|
59
|
+
lineHeight: "body",
|
|
60
|
+
});
|
|
61
|
+
const emptyActions = css({
|
|
62
|
+
display: "flex",
|
|
63
|
+
flexWrap: "wrap",
|
|
64
|
+
justifyContent: "center",
|
|
65
|
+
gap: "layout.controlGap",
|
|
66
|
+
});
|
|
67
|
+
export function EmptyState({ icon, title, description, action, variant = "block", className, ...props }) {
|
|
68
|
+
if (variant === "inline") {
|
|
69
|
+
return (_jsxs("section", { ...props, "data-ciridae-ui": "", className: cx(emptyState({ variant }), className), children: [_jsxs("span", { className: css({ display: "inline-flex", alignItems: "center", gap: "control.iconGap" }), children: [icon, title] }), description && _jsx("span", { children: description }), action] }));
|
|
70
|
+
}
|
|
71
|
+
if (variant === "bare") {
|
|
72
|
+
return (_jsxs("section", { ...props, "data-ciridae-ui": "", className: cx(emptyState({ variant }), className), children: [icon && (_jsx("span", { className: emptyRing, "aria-hidden": "true", children: icon })), _jsxs("div", { className: emptyCopy, children: [_jsx(Heading, { level: 2, size: "small", children: title }), description && _jsx("p", { className: emptyDescription, children: description })] }), action && _jsx("div", { className: emptyActions, children: action })] }));
|
|
73
|
+
}
|
|
74
|
+
return (_jsx("section", { ...props, "data-ciridae-ui": "", className: cx(emptyState({ variant }), className), children: _jsxs("div", { className: css({ display: "grid", justifyItems: "center", gap: "layout.contentGap" }), children: [icon, _jsx(Heading, { level: 2, children: title }), description && _jsx("p", { className: css({ margin: "none", color: "fg.muted" }), children: description }), action] }) }));
|
|
75
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { type ReactElement } from "react";
|
|
2
|
+
import { type IconButtonProps } from "./button.js";
|
|
3
|
+
import { type CiridaeLabels } from "./locale.js";
|
|
4
|
+
import type { UserChipProps } from "./user-chip.js";
|
|
5
|
+
export type NotificationActor = Pick<UserChipProps, "name" | "kind" | "src" | "profile">;
|
|
6
|
+
export type NotificationKind = "update" | "mention" | "assigned";
|
|
7
|
+
export type Notification = {
|
|
8
|
+
id: string;
|
|
9
|
+
actor: NotificationActor;
|
|
10
|
+
/** What they did, read after their name: "signed INV-4819". */
|
|
11
|
+
text: string;
|
|
12
|
+
/** The record it is about, as "Invoice · INV-4819". */
|
|
13
|
+
record: string;
|
|
14
|
+
at: number;
|
|
15
|
+
read: boolean;
|
|
16
|
+
/** A mention of you, or something assigned to you; the tray's filters pick these out. */
|
|
17
|
+
kind?: NotificationKind;
|
|
18
|
+
/** One thing to do from the row, such as Approve, beside opening the record. */
|
|
19
|
+
action?: {
|
|
20
|
+
label: string;
|
|
21
|
+
onClick: () => void;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
export type NotificationTrayProps = {
|
|
25
|
+
/** The bell; the tray sets its badge to the unread count and opens from it. */
|
|
26
|
+
trigger: ReactElement<IconButtonProps>;
|
|
27
|
+
notifications: readonly Notification[];
|
|
28
|
+
/** Opens the notification's record; the host marks it read. */
|
|
29
|
+
onOpen: (notification: Notification) => void;
|
|
30
|
+
onMarkAllRead: () => void;
|
|
31
|
+
/** A link at the foot, such as the activity log. */
|
|
32
|
+
footerAction?: {
|
|
33
|
+
label: string;
|
|
34
|
+
onClick: () => void;
|
|
35
|
+
};
|
|
36
|
+
/** `drawer` on a phone, where a popover has no room. */
|
|
37
|
+
placement?: "popover" | "drawer";
|
|
38
|
+
/** When now is, for the relative times and the Today group; the render's time otherwise. */
|
|
39
|
+
now?: number;
|
|
40
|
+
/** Rewords the tray's labels over the locale's. */
|
|
41
|
+
labels?: Partial<NotificationLabels>;
|
|
42
|
+
/** Whether the tray is open, for a host that opens it too, such as from a hotkey. */
|
|
43
|
+
open?: boolean;
|
|
44
|
+
onOpenChange?: (open: boolean) => void;
|
|
45
|
+
};
|
|
46
|
+
export type NotificationLabels = CiridaeLabels["notifications"];
|
|
47
|
+
export declare function NotificationTray({ trigger, notifications, onOpen, onMarkAllRead, footerAction, placement, now, labels: ownLabels, open: ownOpen, onOpenChange, }: NotificationTrayProps): import("@types/react").JSX.Element;
|
|
@@ -0,0 +1,218 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
+
/*
|
|
3
|
+
* The notification tray: what happened on the records you follow, newest first, as a flush
|
|
4
|
+
* popover from the header's bell, or as a drawer on a phone. Each row is who did it, what they
|
|
5
|
+
* did, the record it is about and when; an unread row carries a dot, and a row can offer one
|
|
6
|
+
* action, such as Approve, beside opening its record. The host owns the notifications: it marks
|
|
7
|
+
* them read and opens their records. The bell's badge counts the unread ones.
|
|
8
|
+
*/
|
|
9
|
+
import { Popover as BasePopover } from "@base-ui/react/popover";
|
|
10
|
+
import { ArrowRightIcon, BellIcon } from "@phosphor-icons/react";
|
|
11
|
+
import { addDays, isSameDay } from "date-fns";
|
|
12
|
+
import { cloneElement, useState } from "react";
|
|
13
|
+
import { css, cx } from "#primitives/css";
|
|
14
|
+
import { Button } from "./button.js";
|
|
15
|
+
import { useControllableState } from "./controllable-state.js";
|
|
16
|
+
import { Avatar } from "./data-display.js";
|
|
17
|
+
import { Drawer, DrawerBody } from "./drawer.js";
|
|
18
|
+
import { HotkeyLayer } from "./hotkeys.js";
|
|
19
|
+
import { directional, icon } from "./icon.js";
|
|
20
|
+
import { heading } from "./layout.js";
|
|
21
|
+
import { useCiridaeLocale } from "./locale.js";
|
|
22
|
+
import { TabsList, TabsRoot, TabsTab } from "./tabs.js";
|
|
23
|
+
const FILTERS = [
|
|
24
|
+
{ value: "all", label: "all", empty: "noNotifications" },
|
|
25
|
+
{ value: "mentions", label: "mentions", empty: "noMentions" },
|
|
26
|
+
{ value: "assigned", label: "assigned", empty: "nothingAssigned" },
|
|
27
|
+
];
|
|
28
|
+
function passesFilter(notification, filter) {
|
|
29
|
+
if (filter === "all")
|
|
30
|
+
return true;
|
|
31
|
+
return filter === "mentions" ? notification.kind === "mention" : notification.kind === "assigned";
|
|
32
|
+
}
|
|
33
|
+
/** "8 minutes ago", "yesterday", "3 days ago". */
|
|
34
|
+
function relativeTime(at, now, locale) {
|
|
35
|
+
if (isSameDay(at, addDays(now, -1)))
|
|
36
|
+
return locale.labels.dates.yesterday;
|
|
37
|
+
return locale.formatRelative(at, now);
|
|
38
|
+
}
|
|
39
|
+
/* Flush, like a menu: the rows run edge to edge and the popup's corners clip them. */
|
|
40
|
+
const positioner = css({ zIndex: "popover" });
|
|
41
|
+
const popup = css({
|
|
42
|
+
display: "flex",
|
|
43
|
+
flexDirection: "column",
|
|
44
|
+
width: "overlay.tray",
|
|
45
|
+
maxWidth: "calc(100vw - token(spacing.layout.pageGap) * 2)",
|
|
46
|
+
padding: "none",
|
|
47
|
+
overflow: "hidden",
|
|
48
|
+
border: "1px solid token(colors.border.control)",
|
|
49
|
+
borderRadius: "action",
|
|
50
|
+
background: "bg.card",
|
|
51
|
+
color: "fg.primary",
|
|
52
|
+
textStyle: "body",
|
|
53
|
+
boxShadow: "card",
|
|
54
|
+
outline: "none",
|
|
55
|
+
});
|
|
56
|
+
const header = css({
|
|
57
|
+
display: "flex",
|
|
58
|
+
alignItems: "center",
|
|
59
|
+
justifyContent: "space-between",
|
|
60
|
+
gap: "layout.controlGap",
|
|
61
|
+
paddingBlock: "panel.default",
|
|
62
|
+
paddingInlineStart: "panel.comfortable",
|
|
63
|
+
paddingInlineEnd: "panel.default",
|
|
64
|
+
});
|
|
65
|
+
const caughtUp = css({ color: "fg.muted", fontSize: "caption", fontWeight: "medium" });
|
|
66
|
+
const filters = css({
|
|
67
|
+
paddingInline: "panel.comfortable",
|
|
68
|
+
paddingBottom: "layout.tightGap",
|
|
69
|
+
borderBottom: "1px solid token(colors.border.control)",
|
|
70
|
+
});
|
|
71
|
+
const list = css({
|
|
72
|
+
display: "grid",
|
|
73
|
+
alignContent: "start",
|
|
74
|
+
overflowY: "auto",
|
|
75
|
+
"&[data-placement=popover]": { maxHeight: "overlay.trayList" },
|
|
76
|
+
});
|
|
77
|
+
const groupLabel = css({
|
|
78
|
+
paddingTop: "control.block",
|
|
79
|
+
paddingBottom: "layout.tightGap",
|
|
80
|
+
paddingInline: "panel.comfortable",
|
|
81
|
+
color: "fg.muted",
|
|
82
|
+
fontSize: "code",
|
|
83
|
+
fontWeight: "medium",
|
|
84
|
+
letterSpacing: "compact",
|
|
85
|
+
});
|
|
86
|
+
const emptyLabel = css({
|
|
87
|
+
padding: "panel.roomy",
|
|
88
|
+
color: "fg.muted",
|
|
89
|
+
fontSize: "caption",
|
|
90
|
+
fontWeight: "medium",
|
|
91
|
+
textAlign: "center",
|
|
92
|
+
});
|
|
93
|
+
// Compact rows: the actor's avatar in its own column, one or two lines of caption text beside it.
|
|
94
|
+
const row = css({
|
|
95
|
+
position: "relative",
|
|
96
|
+
display: "flex",
|
|
97
|
+
alignItems: "flex-start",
|
|
98
|
+
gap: "layout.controlGap",
|
|
99
|
+
paddingBlock: "control.block",
|
|
100
|
+
paddingInline: "panel.comfortable",
|
|
101
|
+
_hover: { background: "bg.rowHover" },
|
|
102
|
+
"&:has(> [data-open]:focus-visible)": { background: "bg.rowHover" },
|
|
103
|
+
});
|
|
104
|
+
/* The whole row opens the record; the chip and the action sit above it with their own targets. */
|
|
105
|
+
const openButton = css({
|
|
106
|
+
position: "absolute",
|
|
107
|
+
inset: "none",
|
|
108
|
+
border: "0",
|
|
109
|
+
background: "transparent",
|
|
110
|
+
cursor: "pointer",
|
|
111
|
+
outline: "none",
|
|
112
|
+
_focusVisible: { focusRing: "inset" },
|
|
113
|
+
});
|
|
114
|
+
const rowBody = css({
|
|
115
|
+
position: "relative",
|
|
116
|
+
display: "grid",
|
|
117
|
+
flex: "1",
|
|
118
|
+
minWidth: "0",
|
|
119
|
+
gap: "2px",
|
|
120
|
+
pointerEvents: "none",
|
|
121
|
+
"& button": { pointerEvents: "auto" },
|
|
122
|
+
});
|
|
123
|
+
const sentence = css({
|
|
124
|
+
color: "fg.secondary",
|
|
125
|
+
fontSize: "caption",
|
|
126
|
+
lineHeight: "compact",
|
|
127
|
+
letterSpacing: "compact",
|
|
128
|
+
"& > strong": { color: "fg.primary", fontWeight: "medium" },
|
|
129
|
+
"[data-unread] &": { color: "fg.primary" },
|
|
130
|
+
});
|
|
131
|
+
const meta = css({
|
|
132
|
+
color: "fg.muted",
|
|
133
|
+
fontSize: "code",
|
|
134
|
+
fontWeight: "medium",
|
|
135
|
+
letterSpacing: "compact",
|
|
136
|
+
overflow: "hidden",
|
|
137
|
+
textOverflow: "ellipsis",
|
|
138
|
+
whiteSpace: "nowrap",
|
|
139
|
+
});
|
|
140
|
+
const trailing = css({
|
|
141
|
+
position: "relative",
|
|
142
|
+
display: "flex",
|
|
143
|
+
alignItems: "center",
|
|
144
|
+
gap: "layout.controlGap",
|
|
145
|
+
flexShrink: "0",
|
|
146
|
+
minHeight: "avatar.small",
|
|
147
|
+
});
|
|
148
|
+
const unreadDot = css({
|
|
149
|
+
width: "indicator.live",
|
|
150
|
+
height: "indicator.live",
|
|
151
|
+
borderRadius: "round",
|
|
152
|
+
background: "accent.blue",
|
|
153
|
+
});
|
|
154
|
+
const footer = css({
|
|
155
|
+
display: "flex",
|
|
156
|
+
alignItems: "center",
|
|
157
|
+
gap: "control.iconGap",
|
|
158
|
+
minHeight: "control.row",
|
|
159
|
+
paddingInline: "panel.comfortable",
|
|
160
|
+
border: "0",
|
|
161
|
+
borderTop: "1px solid token(colors.border.control)",
|
|
162
|
+
background: "transparent",
|
|
163
|
+
color: "fg.muted",
|
|
164
|
+
font: "inherit",
|
|
165
|
+
fontSize: "caption",
|
|
166
|
+
fontWeight: "medium",
|
|
167
|
+
letterSpacing: "compact",
|
|
168
|
+
textAlign: "start",
|
|
169
|
+
cursor: "pointer",
|
|
170
|
+
outline: "none",
|
|
171
|
+
_hover: { background: "bg.rowHover", color: "fg.primary" },
|
|
172
|
+
_focusVisible: { focusRing: "inset" },
|
|
173
|
+
});
|
|
174
|
+
export function NotificationTray({ trigger, notifications, onOpen, onMarkAllRead, footerAction, placement = "popover", now = Date.now(), labels: ownLabels, open: ownOpen, onOpenChange, }) {
|
|
175
|
+
const locale = useCiridaeLocale();
|
|
176
|
+
const labels = { ...locale.labels.notifications, ...ownLabels };
|
|
177
|
+
const [open, setOpen] = useControllableState(ownOpen, false, onOpenChange);
|
|
178
|
+
const [filter, setFilter] = useState("all");
|
|
179
|
+
const unreadCount = notifications.filter((notification) => !notification.read).length;
|
|
180
|
+
const bell = cloneElement(trigger, { badge: unreadCount });
|
|
181
|
+
const openRecord = (notification) => {
|
|
182
|
+
setOpen(false);
|
|
183
|
+
onOpen(notification);
|
|
184
|
+
};
|
|
185
|
+
const markAllRead = unreadCount > 0 ? (_jsx(Button, { variant: "ghost", onClick: onMarkAllRead, children: labels.markAllRead })) : (_jsx("span", { className: caughtUp, children: labels.allCaughtUp }));
|
|
186
|
+
const body = (_jsxs(_Fragment, { children: [_jsx(TabsRoot, { value: filter, onValueChange: (value) => {
|
|
187
|
+
const next = FILTERS.find((candidate) => candidate.value === value);
|
|
188
|
+
if (next)
|
|
189
|
+
setFilter(next.value);
|
|
190
|
+
}, children: _jsx(TabsList, { variant: "text", className: filters, "aria-label": labels.show, children: FILTERS.map((candidate) => (_jsx(TabsTab, { value: candidate.value, children: labels[candidate.label] }, candidate.value))) }) }), _jsx(NotificationList, { notifications: notifications.filter((notification) => passesFilter(notification, filter)), empty: labels[FILTERS.find((candidate) => candidate.value === filter)?.empty ?? "noNotifications"], labels: labels, locale: locale, placement: placement, now: now, onOpen: openRecord }), footerAction && (_jsxs("button", { type: "button", className: footer, onClick: () => {
|
|
191
|
+
setOpen(false);
|
|
192
|
+
footerAction.onClick();
|
|
193
|
+
}, children: [footerAction.label, _jsx(ArrowRightIcon, { className: cx(icon({ size: "small" }), directional) })] }))] }));
|
|
194
|
+
if (placement === "drawer") {
|
|
195
|
+
return (_jsxs(_Fragment, { children: [cloneElement(bell, { onClick: () => setOpen(true) }), _jsx(Drawer, { open: open, onOpenChange: setOpen, title: labels.title, icon: _jsx(BellIcon, { className: icon({ size: "small" }), weight: "fill" }), actions: markAllRead, size: "narrow", children: _jsx(DrawerBody, { flush: true, children: body }) })] }));
|
|
196
|
+
}
|
|
197
|
+
return (_jsxs(BasePopover.Root, { open: open, onOpenChange: setOpen, children: [_jsx(BasePopover.Trigger, { render: bell }), _jsx(BasePopover.Portal, { children: _jsx(HotkeyLayer, { children: _jsx(BasePopover.Positioner, { className: positioner, sideOffset: 6, align: "end", children: _jsxs(BasePopover.Popup, { className: popup, "data-ciridae-ui": "", "aria-label": labels.title, children: [_jsxs("div", { className: header, children: [_jsx(BasePopover.Title, { className: heading({ size: "small" }), children: labels.title }), markAllRead] }), body] }) }) }) })] }));
|
|
198
|
+
}
|
|
199
|
+
/** The rows, newest first, under Today and Earlier; one label when there are none. */
|
|
200
|
+
function NotificationList({ notifications, empty, placement, now, onOpen, labels, locale, }) {
|
|
201
|
+
const sorted = [...notifications].sort((left, right) => right.at - left.at);
|
|
202
|
+
const today = sorted.filter((notification) => isSameDay(notification.at, now));
|
|
203
|
+
const earlier = sorted.filter((notification) => !isSameDay(notification.at, now));
|
|
204
|
+
const groups = [
|
|
205
|
+
{ label: labels.today, items: today },
|
|
206
|
+
{ label: labels.earlier, items: earlier },
|
|
207
|
+
];
|
|
208
|
+
return (_jsxs("div", { className: list, "data-placement": placement, role: "list", children: [sorted.length === 0 && _jsx("span", { className: emptyLabel, children: empty }), groups
|
|
209
|
+
.filter((group) => group.items.length > 0)
|
|
210
|
+
.map((group) => (_jsx(NotificationGroup, { label: group.label, children: group.items.map((notification) => (_jsx(NotificationRow, { notification: notification, now: now, onOpen: onOpen, labels: labels, locale: locale }, notification.id))) }, group.label)))] }));
|
|
211
|
+
}
|
|
212
|
+
function NotificationGroup({ label, children }) {
|
|
213
|
+
return (_jsxs(_Fragment, { children: [_jsx("span", { className: groupLabel, children: label }), children] }));
|
|
214
|
+
}
|
|
215
|
+
function NotificationRow({ notification, now, onOpen, labels, locale, }) {
|
|
216
|
+
const { actor, text, record, at, read, action } = notification;
|
|
217
|
+
return (_jsxs("div", { className: row, "data-unread": read ? undefined : "", role: "listitem", children: [_jsx("button", { type: "button", className: openButton, "data-open": "", "aria-label": labels.rowLabel(actor.name, text, record), onClick: () => onOpen(notification) }), _jsx(Avatar, { label: actor.name, kind: actor.kind, src: actor.src, size: "small", "aria-hidden": "true" }), _jsxs("div", { className: rowBody, children: [_jsx("span", { className: sentence, children: labels.sentence({ actor: _jsx("strong", { children: actor.name }), action: text }) }), _jsx("span", { className: meta, children: labels.meta({ record, time: relativeTime(at, now, locale) }) })] }), _jsxs("span", { className: trailing, children: [action && (_jsx(Button, { variant: "secondary", onClick: action.onClick, children: action.label })), !read && _jsx("span", { className: unreadDot, "aria-hidden": "true" })] })] }));
|
|
218
|
+
}
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import { AlertDialog as BaseAlertDialog } from "@base-ui/react/alert-dialog";
|
|
2
|
+
import { Dialog as BaseDialog } from "@base-ui/react/dialog";
|
|
3
|
+
import { Popover as BasePopover } from "@base-ui/react/popover";
|
|
4
|
+
import { Tooltip as BaseTooltip } from "@base-ui/react/tooltip";
|
|
5
|
+
import { type ComponentProps, type ReactElement, type ReactNode } from "react";
|
|
6
|
+
export type DialogProps = Omit<ComponentProps<typeof BaseDialog.Root>, "children"> & {
|
|
7
|
+
/** Omit for a dialog opened only through controlled `open`. */
|
|
8
|
+
trigger?: ReactElement;
|
|
9
|
+
/** Restore focus to an external control, such as a menu trigger, when this dialog closes. */
|
|
10
|
+
finalFocus?: ComponentProps<typeof BaseDialog.Popup>["finalFocus"];
|
|
11
|
+
title: ReactNode;
|
|
12
|
+
/**
|
|
13
|
+
* `hidden` keeps the title for assistive technology only, for content that already names
|
|
14
|
+
* itself, such as a wizard's result.
|
|
15
|
+
*/
|
|
16
|
+
titleVisibility?: "visible" | "hidden";
|
|
17
|
+
/** An identifying mark beside the title, such as the provider being connected. */
|
|
18
|
+
icon?: ReactNode;
|
|
19
|
+
description?: ReactNode;
|
|
20
|
+
children?: ReactNode;
|
|
21
|
+
actions?: ReactNode;
|
|
22
|
+
/** Footer actions kept at its start, away from the primary action, such as Back. */
|
|
23
|
+
leadingActions?: ReactNode;
|
|
24
|
+
/**
|
|
25
|
+
* What the dialog is, which sets how it is dismissed: a `form` has a footer Cancel beside its
|
|
26
|
+
* submit action; `info` is read-only and closes from an X beside the title; a `wizard` closes
|
|
27
|
+
* from the same X, leaving the footer to its steps' actions and `leadingActions` such as Back.
|
|
28
|
+
*/
|
|
29
|
+
kind?: "form" | "info" | "wizard";
|
|
30
|
+
/** Override the dismiss location independently of the dialog's content kind. */
|
|
31
|
+
dismiss?: "header" | "footer";
|
|
32
|
+
/** Disables user dismissal, including X, Cancel, Escape, and backdrop. */
|
|
33
|
+
closable?: boolean;
|
|
34
|
+
/** Blocks dismissal while an operation is running. */
|
|
35
|
+
pending?: boolean;
|
|
36
|
+
/** The form owns dirty state. Dirty dialogs ignore Escape/backdrop; explicit dismissal stays in its chosen location. */
|
|
37
|
+
dirty?: boolean;
|
|
38
|
+
/** Overrides the dismiss label: the footer button's text for a form, the X's name otherwise. */
|
|
39
|
+
closeLabel?: string;
|
|
40
|
+
/**
|
|
41
|
+
* `narrow` matches a centered form card, for a dialog over one; `wide` fits content such as code
|
|
42
|
+
* blocks that a form-width dialog would wrap.
|
|
43
|
+
*/
|
|
44
|
+
size?: "narrow" | "regular" | "wide";
|
|
45
|
+
/** Keeps the tallest height within a wizard step (or while open), so filtering does not shrink it. */
|
|
46
|
+
holdHeight?: boolean;
|
|
47
|
+
/**
|
|
48
|
+
* A panel beside the title, body, and actions, flush to the dialog's edges, such as a setup
|
|
49
|
+
* guide; it widens the dialog and stacks below on a narrow screen.
|
|
50
|
+
*/
|
|
51
|
+
aside?: {
|
|
52
|
+
label: string;
|
|
53
|
+
content: ReactNode;
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
export declare function Dialog({ trigger, finalFocus, title, titleVisibility, icon: titleIcon, description, children, actions, leadingActions, kind, dismiss, closable, pending, dirty, closeLabel: ownCloseLabel, size, holdHeight, aside, onOpenChange, ...rootProps }: DialogProps): import("@types/react").JSX.Element;
|
|
57
|
+
export type AlertDialogProps = Omit<ComponentProps<typeof BaseAlertDialog.Root>, "children" | "actionsRef"> & {
|
|
58
|
+
/** Omit for a dialog opened only through controlled `open`. */
|
|
59
|
+
trigger?: ReactElement;
|
|
60
|
+
title: ReactNode;
|
|
61
|
+
children?: ReactNode;
|
|
62
|
+
confirmLabel: ReactNode;
|
|
63
|
+
cancelLabel?: ReactNode;
|
|
64
|
+
/**
|
|
65
|
+
* Runs the confirmed action. A returned promise keeps the dialog open with the confirm button
|
|
66
|
+
* loading until it settles: it closes on success and stays open on failure, so the reader can
|
|
67
|
+
* retry or cancel.
|
|
68
|
+
*/
|
|
69
|
+
onConfirm: () => void | Promise<unknown>;
|
|
70
|
+
/** `danger` presents the confirming action as destructive, in the danger button. */
|
|
71
|
+
variant?: "default" | "danger";
|
|
72
|
+
};
|
|
73
|
+
/**
|
|
74
|
+
* A confirmation the reader must answer. Unlike `Dialog` it carries the
|
|
75
|
+
* `alertdialog` role and ignores an outside click, so the decision is made
|
|
76
|
+
* through one of the two actions rather than by clicking away. Escape still
|
|
77
|
+
* closes it, which Base UI keeps as the cancelling path, except while an
|
|
78
|
+
* async confirmation is pending.
|
|
79
|
+
*/
|
|
80
|
+
export declare function AlertDialog({ trigger, title, children, confirmLabel, cancelLabel, onConfirm, variant, onOpenChange, ...rootProps }: AlertDialogProps): import("@types/react").JSX.Element;
|
|
81
|
+
export type PopoverProps = Omit<ComponentProps<typeof BasePopover.Root>, "children"> & {
|
|
82
|
+
/** The button that opens it. Leave it out and pass `anchor` to open it from elsewhere, such as a menu item. */
|
|
83
|
+
trigger?: ReactElement;
|
|
84
|
+
/** What it points at when it has no trigger of its own, such as the menu button it was chosen from. */
|
|
85
|
+
anchor?: Element | null;
|
|
86
|
+
children: ReactNode;
|
|
87
|
+
/**
|
|
88
|
+
* `compact` tightens the inset for a panel of compact controls; `flush` drops it, so rows run
|
|
89
|
+
* edge to edge like a menu's.
|
|
90
|
+
*/
|
|
91
|
+
density?: "regular" | "compact" | "flush";
|
|
92
|
+
/** A fixed width for a small form, such as a filter or an export; it fits its content when left out. */
|
|
93
|
+
width?: "narrow" | "regular" | "wide";
|
|
94
|
+
/** Which edge of the trigger it lines up with. */
|
|
95
|
+
align?: "start" | "center" | "end";
|
|
96
|
+
/**
|
|
97
|
+
* Also opens while the trigger is hovered, after a short delay, and closes soon after the
|
|
98
|
+
* pointer leaves. Focus moves into it only when a keyboard opened it.
|
|
99
|
+
*/
|
|
100
|
+
openOnHover?: boolean;
|
|
101
|
+
};
|
|
102
|
+
export declare function Popover({ trigger, anchor, children, density, width, align, openOnHover, ...rootProps }: PopoverProps): import("@types/react").JSX.Element;
|
|
103
|
+
export type TooltipProps = Omit<ComponentProps<typeof BaseTooltip.Root>, "children"> & {
|
|
104
|
+
children: ReactElement;
|
|
105
|
+
content: ReactNode;
|
|
106
|
+
};
|
|
107
|
+
export declare function Tooltip({ children, content, ...rootProps }: TooltipProps): import("@types/react").JSX.Element;
|