@ciridae/ui 0.16.1 → 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 -105
- 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 -23
- 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,240 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
+
import { AlertDialog as BaseAlertDialog } from "@base-ui/react/alert-dialog";
|
|
3
|
+
import { Dialog as BaseDialog } from "@base-ui/react/dialog";
|
|
4
|
+
import { Popover as BasePopover } from "@base-ui/react/popover";
|
|
5
|
+
import { Tooltip as BaseTooltip } from "@base-ui/react/tooltip";
|
|
6
|
+
import { XIcon } from "@phosphor-icons/react";
|
|
7
|
+
import { useCallback, useRef, useState, } from "react";
|
|
8
|
+
import { css, cx } from "#primitives/css";
|
|
9
|
+
import { Button, IconButton } from "./button.js";
|
|
10
|
+
import { DialogHeightResetContext } from "./dialog-height-context.js";
|
|
11
|
+
import { HotkeyLayer } from "./hotkeys.js";
|
|
12
|
+
import { icon } from "./icon.js";
|
|
13
|
+
import { heading } from "./layout.js";
|
|
14
|
+
import { useCiridaeLocale } from "./locale.js";
|
|
15
|
+
/** A positioned popup carries its own stacking order; a positioner-anchored one gets it there. */
|
|
16
|
+
const positioner = css({ zIndex: "popover" });
|
|
17
|
+
const tooltipPositioner = css({ zIndex: "tooltip" });
|
|
18
|
+
const popupStyle = css.raw({
|
|
19
|
+
maxWidth: "overlay.dialog",
|
|
20
|
+
padding: "panel.comfortable",
|
|
21
|
+
border: "1px solid token(colors.border.control)",
|
|
22
|
+
borderRadius: "inset",
|
|
23
|
+
backgroundColor: "bg.card",
|
|
24
|
+
color: "fg.primary",
|
|
25
|
+
textStyle: "body",
|
|
26
|
+
boxShadow: "card",
|
|
27
|
+
// A popup takes focus when it opens or when its focused content unmounts (a wizard changing
|
|
28
|
+
// step); it is a container, not a control, so it draws no ring.
|
|
29
|
+
outline: "none",
|
|
30
|
+
});
|
|
31
|
+
const popup = css(popupStyle);
|
|
32
|
+
// The title and footer stay put; a long body scrolls between them.
|
|
33
|
+
const dialogLayout = css.raw({
|
|
34
|
+
display: "grid",
|
|
35
|
+
gap: "layout.clusterGap",
|
|
36
|
+
gridTemplateRows: "auto minmax(0, 1fr)",
|
|
37
|
+
"&:has(> :nth-child(3))": { gridTemplateRows: "auto minmax(0, 1fr) auto" },
|
|
38
|
+
// A dialog's own inset, not the page margin, so page density changes leave it alone.
|
|
39
|
+
padding: "panel.comfortable",
|
|
40
|
+
});
|
|
41
|
+
const dialogPopup = css.raw(popupStyle, dialogLayout, {
|
|
42
|
+
zIndex: "dialog",
|
|
43
|
+
position: "fixed",
|
|
44
|
+
top: "50%",
|
|
45
|
+
left: "50%",
|
|
46
|
+
width: "calc(100vw - token(spacing.layout.pageGap) * 2)",
|
|
47
|
+
maxHeight: "calc(100dvh - token(spacing.layout.pageGap) * 2)",
|
|
48
|
+
border: "1px solid token(colors.border.card)",
|
|
49
|
+
borderRadius: "inset",
|
|
50
|
+
background: "bg.surface",
|
|
51
|
+
boxShadow: "panel",
|
|
52
|
+
transform: "translate(-50%, -50%)",
|
|
53
|
+
transitionProperty: "opacity, transform",
|
|
54
|
+
transitionDuration: "fast",
|
|
55
|
+
_motionReduce: { transition: "none" },
|
|
56
|
+
"&[data-starting-style], &[data-ending-style]": {
|
|
57
|
+
opacity: "0",
|
|
58
|
+
transform: "translate(-50%, calc(-50% + token(spacing.control.block)))",
|
|
59
|
+
},
|
|
60
|
+
});
|
|
61
|
+
const visuallyHidden = css({ srOnly: true });
|
|
62
|
+
const backdrop = css({
|
|
63
|
+
position: "fixed",
|
|
64
|
+
inset: "none",
|
|
65
|
+
background: "bg.backdrop",
|
|
66
|
+
zIndex: "dialog",
|
|
67
|
+
});
|
|
68
|
+
const dialogHeader = css({ display: "grid", gap: "layout.controlGap" });
|
|
69
|
+
/** Title and the close button on one row, for a dialog dismissed from its header. */
|
|
70
|
+
const dialogHeaderRow = css({
|
|
71
|
+
display: "flex",
|
|
72
|
+
alignItems: "flex-start",
|
|
73
|
+
justifyContent: "space-between",
|
|
74
|
+
gap: "layout.controlGap",
|
|
75
|
+
});
|
|
76
|
+
const dialogTitle = cx(heading(), css({ display: "flex", alignItems: "center", gap: "layout.controlGap", lineHeight: "tight" }));
|
|
77
|
+
const dialogDescription = css({
|
|
78
|
+
margin: "none",
|
|
79
|
+
color: "fg.muted",
|
|
80
|
+
fontSize: "body",
|
|
81
|
+
lineHeight: "compact",
|
|
82
|
+
});
|
|
83
|
+
// Bleeds past its edges by a control's focus ring, so scrolling does not clip the ring.
|
|
84
|
+
const dialogBody = css({
|
|
85
|
+
display: "grid",
|
|
86
|
+
// Long code stays inside its own scroller instead of widening every body section.
|
|
87
|
+
gridTemplateColumns: "minmax(0, 1fr)",
|
|
88
|
+
alignContent: "start",
|
|
89
|
+
// A terminal wizard result centers its icon, message, and actions together.
|
|
90
|
+
"&:has(> [data-wizard-state=result])": { alignContent: "center" },
|
|
91
|
+
gap: "layout.contentGap",
|
|
92
|
+
overflowY: "auto",
|
|
93
|
+
margin: "calc(token(spacing.control.block) * -1)",
|
|
94
|
+
padding: "control.block",
|
|
95
|
+
});
|
|
96
|
+
const dialogLeadingActions = css({
|
|
97
|
+
display: "flex",
|
|
98
|
+
gap: "layout.controlGap",
|
|
99
|
+
marginInlineEnd: "auto",
|
|
100
|
+
});
|
|
101
|
+
const dialogFooter = css({
|
|
102
|
+
display: "flex",
|
|
103
|
+
justifyContent: "flex-end",
|
|
104
|
+
gap: "layout.controlGap",
|
|
105
|
+
paddingTop: "layout.controlGap",
|
|
106
|
+
});
|
|
107
|
+
const narrowDialogPopup = css.raw({ maxWidth: "card.centeredForm" });
|
|
108
|
+
const wideDialogPopup = css.raw({ maxWidth: "overlay.dialogWide" });
|
|
109
|
+
// Beside the dialog's own column, flush to its edges; below it on a narrow screen.
|
|
110
|
+
const splitDialogPopup = css.raw({
|
|
111
|
+
padding: "none",
|
|
112
|
+
gap: "none",
|
|
113
|
+
gridTemplateRows: "auto auto",
|
|
114
|
+
gridTemplateColumns: "minmax(0, 1fr)",
|
|
115
|
+
overflowY: "auto",
|
|
116
|
+
_notPhone: {
|
|
117
|
+
gridTemplateRows: "minmax(0, 1fr)",
|
|
118
|
+
gridTemplateColumns: "minmax(0, 1fr) minmax(0, 1fr)",
|
|
119
|
+
overflowY: "visible",
|
|
120
|
+
},
|
|
121
|
+
});
|
|
122
|
+
const splitDialogMain = css(dialogLayout, { minHeight: "0" });
|
|
123
|
+
const splitDialogAside = css({
|
|
124
|
+
minHeight: "0",
|
|
125
|
+
overflowY: "auto",
|
|
126
|
+
padding: "panel.comfortable",
|
|
127
|
+
borderTop: "1px solid token(colors.border.card)",
|
|
128
|
+
backgroundColor: "bg.panel",
|
|
129
|
+
_notPhone: { borderTop: "none", borderInlineStart: "1px solid token(colors.border.card)" },
|
|
130
|
+
});
|
|
131
|
+
export function Dialog({ trigger, finalFocus, title, titleVisibility = "visible", icon: titleIcon, description, children, actions, leadingActions, kind = "form", dismiss = kind === "form" ? "footer" : "header", closable = true, pending = false, dirty = false, closeLabel: ownCloseLabel, size = "regular", holdHeight = false, aside, onOpenChange, ...rootProps }) {
|
|
132
|
+
const heldHeight = useRef({
|
|
133
|
+
popup: null,
|
|
134
|
+
tallest: 0,
|
|
135
|
+
});
|
|
136
|
+
const resetHeight = useCallback(() => {
|
|
137
|
+
const held = heldHeight.current;
|
|
138
|
+
held.tallest = 0;
|
|
139
|
+
if (!held.popup)
|
|
140
|
+
return;
|
|
141
|
+
held.popup.style.removeProperty("min-height");
|
|
142
|
+
held.tallest = held.popup.offsetHeight;
|
|
143
|
+
held.popup.style.minHeight = `${held.tallest}px`;
|
|
144
|
+
}, []);
|
|
145
|
+
const holdTallestHeight = useCallback((popup) => {
|
|
146
|
+
if (!popup)
|
|
147
|
+
return;
|
|
148
|
+
heldHeight.current = { popup, tallest: 0 };
|
|
149
|
+
const observer = new ResizeObserver(() => {
|
|
150
|
+
if (popup.offsetHeight <= heldHeight.current.tallest)
|
|
151
|
+
return;
|
|
152
|
+
heldHeight.current.tallest = popup.offsetHeight;
|
|
153
|
+
popup.style.minHeight = `${popup.offsetHeight}px`;
|
|
154
|
+
});
|
|
155
|
+
observer.observe(popup);
|
|
156
|
+
return () => {
|
|
157
|
+
observer.disconnect();
|
|
158
|
+
heldHeight.current = { popup: null, tallest: 0 };
|
|
159
|
+
};
|
|
160
|
+
}, []);
|
|
161
|
+
const { labels } = useCiridaeLocale();
|
|
162
|
+
const closeLabel = ownCloseLabel ?? (dismiss === "footer" ? labels.common.cancel : labels.common.close);
|
|
163
|
+
const dismissInHeader = dismiss === "header";
|
|
164
|
+
const showCancel = !dismissInHeader;
|
|
165
|
+
const dismissalDisabled = !closable || pending;
|
|
166
|
+
const dialogContent = (_jsxs(_Fragment, { children: [_jsxs("div", { className: dismissInHeader ? dialogHeaderRow : undefined, children: [_jsxs("div", { className: dialogHeader, children: [titleVisibility === "hidden" ? (_jsx(BaseDialog.Title, { className: visuallyHidden, children: title })) : (_jsxs(BaseDialog.Title, { className: dialogTitle, children: [titleIcon, title] })), description && (_jsx(BaseDialog.Description, { className: dialogDescription, children: description }))] }), dismissInHeader && closable && (_jsx(BaseDialog.Close, { disabled: pending, render: _jsx(IconButton, { "aria-label": closeLabel, size: "compact", variant: "ghost" }), children: _jsx(XIcon, { className: icon({ size: "small" }) }) }))] }), _jsx("div", { className: dialogBody, children: _jsx(DialogHeightResetContext, { value: holdHeight ? resetHeight : null, children: children }) }), ((showCancel && closable) || actions || leadingActions) && (_jsxs("div", { className: dialogFooter, children: [leadingActions && _jsx("div", { className: dialogLeadingActions, children: leadingActions }), showCancel && closable && (_jsx(BaseDialog.Close, { disabled: pending, render: _jsx(Button, { variant: "secondary" }), children: dismissInHeader ? labels.common.cancel : closeLabel })), actions] }))] }));
|
|
167
|
+
return (_jsxs(BaseDialog.Root, { ...rootProps, onOpenChange: (open, details) => {
|
|
168
|
+
if (!open && (dismissalDisabled || (dirty && details.reason !== "close-press"))) {
|
|
169
|
+
return details.cancel();
|
|
170
|
+
}
|
|
171
|
+
onOpenChange?.(open, details);
|
|
172
|
+
}, children: [trigger && _jsx(BaseDialog.Trigger, { render: trigger }), _jsx(BaseDialog.Portal, { children: _jsxs(HotkeyLayer, { children: [_jsx(BaseDialog.Backdrop, { "data-ciridae-ui": "", className: backdrop }), _jsx(BaseDialog.Popup, { finalFocus: finalFocus, ref: holdHeight ? holdTallestHeight : undefined, className: css(dialogPopup, size === "narrow" && aside === undefined && narrowDialogPopup, (size === "wide" || aside !== undefined) && wideDialogPopup, aside !== undefined && splitDialogPopup), "data-ciridae-ui": "", children: aside ? (_jsxs(_Fragment, { children: [_jsx("div", { className: splitDialogMain, children: dialogContent }), _jsx("aside", { className: splitDialogAside, "aria-label": aside.label, children: aside.content })] })) : (dialogContent) })] }) })] }));
|
|
173
|
+
}
|
|
174
|
+
/**
|
|
175
|
+
* A confirmation the reader must answer. Unlike `Dialog` it carries the
|
|
176
|
+
* `alertdialog` role and ignores an outside click, so the decision is made
|
|
177
|
+
* through one of the two actions rather than by clicking away. Escape still
|
|
178
|
+
* closes it, which Base UI keeps as the cancelling path, except while an
|
|
179
|
+
* async confirmation is pending.
|
|
180
|
+
*/
|
|
181
|
+
export function AlertDialog({ trigger, title, children, confirmLabel, cancelLabel, onConfirm, variant = "default", onOpenChange, ...rootProps }) {
|
|
182
|
+
const { labels } = useCiridaeLocale();
|
|
183
|
+
const actions = useRef(null);
|
|
184
|
+
// The ref answers the close guard synchronously; the state redraws the button.
|
|
185
|
+
const pendingRef = useRef(false);
|
|
186
|
+
const [pending, setPending] = useState(false);
|
|
187
|
+
const settle = () => {
|
|
188
|
+
pendingRef.current = false;
|
|
189
|
+
setPending(false);
|
|
190
|
+
};
|
|
191
|
+
const confirm = async () => {
|
|
192
|
+
const result = onConfirm();
|
|
193
|
+
if (!(result instanceof Promise))
|
|
194
|
+
return actions.current?.close();
|
|
195
|
+
pendingRef.current = true;
|
|
196
|
+
setPending(true);
|
|
197
|
+
try {
|
|
198
|
+
await result;
|
|
199
|
+
}
|
|
200
|
+
catch {
|
|
201
|
+
return settle();
|
|
202
|
+
}
|
|
203
|
+
settle();
|
|
204
|
+
actions.current?.close();
|
|
205
|
+
};
|
|
206
|
+
return (_jsxs(BaseAlertDialog.Root, { ...rootProps, actionsRef: actions, onOpenChange: (open, details) => {
|
|
207
|
+
if (!open && pendingRef.current)
|
|
208
|
+
return details.cancel();
|
|
209
|
+
onOpenChange?.(open, details);
|
|
210
|
+
}, children: [trigger && _jsx(BaseAlertDialog.Trigger, { render: trigger }), _jsx(BaseAlertDialog.Portal, { children: _jsxs(HotkeyLayer, { children: [_jsx(BaseAlertDialog.Backdrop, { "data-ciridae-ui": "", className: backdrop }), _jsxs(BaseAlertDialog.Popup, { className: css(dialogPopup), "data-ciridae-ui": "", children: [_jsx(BaseAlertDialog.Title, { className: dialogTitle, children: title }), children && _jsx("div", { className: dialogBody, children: children }), _jsxs("div", { className: dialogFooter, children: [_jsx(BaseAlertDialog.Close, { render: _jsx(Button, { variant: "secondary" }), disabled: pending, children: cancelLabel ?? labels.common.cancel }), _jsx(Button, { variant: variant === "danger" ? "danger" : "primary", loading: pending, onClick: () => void confirm(), children: confirmLabel })] })] })] }) })] }));
|
|
211
|
+
}
|
|
212
|
+
// Merged rather than layered, so the density's inset replaces the popup's.
|
|
213
|
+
const popoverPopups = {
|
|
214
|
+
regular: popup,
|
|
215
|
+
compact: css(popupStyle, { padding: "menu.inset", borderRadius: "action" }),
|
|
216
|
+
flush: css(popupStyle, { padding: "none", overflow: "hidden", borderRadius: "action" }),
|
|
217
|
+
};
|
|
218
|
+
const popoverWidths = {
|
|
219
|
+
narrow: css({ width: "overlay.popoverNarrow" }),
|
|
220
|
+
regular: css({ width: "overlay.popover" }),
|
|
221
|
+
wide: css({ width: "overlay.popoverWide" }),
|
|
222
|
+
};
|
|
223
|
+
const hoverOpenDelayMs = 300;
|
|
224
|
+
const hoverCloseDelayMs = 150;
|
|
225
|
+
export function Popover({ trigger, anchor, children, density = "regular", width, align, openOnHover = false, ...rootProps }) {
|
|
226
|
+
return (_jsxs(BasePopover.Root, { ...rootProps, children: [trigger && (_jsx(BasePopover.Trigger, { render: trigger, openOnHover: openOnHover, delay: hoverOpenDelayMs, closeDelay: hoverCloseDelayMs })), _jsx(BasePopover.Portal, { children: _jsx(HotkeyLayer, { enabled: !openOnHover, children: _jsx(BasePopover.Positioner, { className: positioner, sideOffset: 6, align: align, anchor: anchor, children: _jsx(BasePopover.Popup, { className: cx(popoverPopups[density], width && popoverWidths[width]), "data-ciridae-ui": "", initialFocus: openOnHover ? (openType) => openType === "keyboard" : undefined, children: children }) }) }) })] }));
|
|
227
|
+
}
|
|
228
|
+
export function Tooltip({ children, content, ...rootProps }) {
|
|
229
|
+
return (_jsx(BaseTooltip.Provider, { children: _jsxs(BaseTooltip.Root, { ...rootProps, children: [_jsx(BaseTooltip.Trigger, { render: children }), _jsx(BaseTooltip.Portal, { children: _jsx(BaseTooltip.Positioner, { className: tooltipPositioner, sideOffset: 6, children: _jsx(BaseTooltip.Popup, { className: css({
|
|
230
|
+
zIndex: "tooltip",
|
|
231
|
+
paddingBlock: "control.compactBlock",
|
|
232
|
+
paddingInline: "menu.itemInline",
|
|
233
|
+
borderRadius: "action",
|
|
234
|
+
background: "fg.primary",
|
|
235
|
+
color: "bg.canvas",
|
|
236
|
+
fontSize: "caption",
|
|
237
|
+
maxWidth: "overlay.tooltip",
|
|
238
|
+
textWrap: "pretty",
|
|
239
|
+
}), "data-ciridae-ui": "", children: content }) }) })] }) }));
|
|
240
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { type ReactElement, type ReactNode } from "react";
|
|
2
|
+
import { type MenuItem } from "./menu.js";
|
|
3
|
+
import type { ComponentProps } from "react";
|
|
4
|
+
/**
|
|
5
|
+
* One step of a trail: its label, and where it leads, as an address (`href`), a router's link
|
|
6
|
+
* element (`render`, such as `<Link to="..." />`), or an action (`onSelect`).
|
|
7
|
+
*/
|
|
8
|
+
export type Crumb = {
|
|
9
|
+
label: string;
|
|
10
|
+
href?: string;
|
|
11
|
+
render?: ReactElement;
|
|
12
|
+
onSelect?: () => void;
|
|
13
|
+
};
|
|
14
|
+
export type BreadcrumbsProps = ComponentProps<"nav"> & {
|
|
15
|
+
crumbs: readonly Crumb[];
|
|
16
|
+
/**
|
|
17
|
+
* The page's own crumb as any node, such as a title with a status or a switcher; every crumb in
|
|
18
|
+
* `crumbs` is then a parent. Left out, the last crumb is the page's.
|
|
19
|
+
*/
|
|
20
|
+
current?: ReactNode;
|
|
21
|
+
};
|
|
22
|
+
/** The page's trail: its parents, then the page itself as the trail's heading. */
|
|
23
|
+
export declare function Breadcrumbs({ crumbs, current: ownCurrent, ...props }: BreadcrumbsProps): import("@types/react").JSX.Element;
|
|
24
|
+
export type PageFrameProps = Omit<ComponentProps<"main">, "children"> & {
|
|
25
|
+
crumbs: readonly Crumb[];
|
|
26
|
+
/** The header's controls at its far edge, such as filters and the account menu. */
|
|
27
|
+
headerActions?: ReactNode;
|
|
28
|
+
children: ReactNode;
|
|
29
|
+
};
|
|
30
|
+
/** The main panel of a page: a header with its trail and actions, then the content. */
|
|
31
|
+
export declare function PageFrame({ crumbs, headerActions, children, ...props }: PageFrameProps): import("@types/react").JSX.Element;
|
|
32
|
+
export type PageHeadingProps = Omit<ComponentProps<"div">, "title"> & {
|
|
33
|
+
title: ReactNode;
|
|
34
|
+
/** Before the title, such as a record's avatar or a project's mark. */
|
|
35
|
+
leading?: ReactNode;
|
|
36
|
+
/** Beside the title, such as the record's status. */
|
|
37
|
+
badge?: ReactNode;
|
|
38
|
+
/** The muted line under the title, such as a `StatLine`, a subtitle or a record's number. */
|
|
39
|
+
meta?: ReactNode;
|
|
40
|
+
/** Menu items behind a "More actions" button, or the page's own controls, at the far edge. */
|
|
41
|
+
actions?: readonly MenuItem[] | ReactNode;
|
|
42
|
+
/** Whether the actions menu is open, for a host that opens it too, such as from a hotkey. */
|
|
43
|
+
actionsOpen?: boolean;
|
|
44
|
+
onActionsOpenChange?: (open: boolean) => void;
|
|
45
|
+
/** The title's outline level; 2 under a trail whose last crumb is the page's h1. */
|
|
46
|
+
level?: 1 | 2 | 3;
|
|
47
|
+
labels?: Partial<{
|
|
48
|
+
actions: string;
|
|
49
|
+
}>;
|
|
50
|
+
};
|
|
51
|
+
/**
|
|
52
|
+
* The title a page or a record opens with, the line under it, and its own actions: a node, or menu
|
|
53
|
+
* items behind an `OverflowMenu`.
|
|
54
|
+
*/
|
|
55
|
+
export declare function PageHeading({ title, leading, badge, meta, actions, actionsOpen, onActionsOpenChange, level, labels: ownLabels, className, ...props }: PageHeadingProps): import("@types/react").JSX.Element;
|
|
56
|
+
/** One count: the value that reads, and its muted label, as an object or a `[value, label]` pair. */
|
|
57
|
+
export type Stat = {
|
|
58
|
+
value: ReactNode;
|
|
59
|
+
label: ReactNode;
|
|
60
|
+
key?: string;
|
|
61
|
+
} | readonly [value: ReactNode, label: ReactNode];
|
|
62
|
+
/** A row of `value label` stats split by dots: the value reads, the label stays muted. */
|
|
63
|
+
export declare function StatLine({ stats, className, ...props }: ComponentProps<"span"> & {
|
|
64
|
+
stats: readonly Stat[];
|
|
65
|
+
}): import("@types/react").JSX.Element;
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
+
/*
|
|
3
|
+
* A page's frame and heading. `PageFrame` is the main panel: a header holding the page's trail
|
|
4
|
+
* of crumbs and its actions, then the scrolling content. `Breadcrumbs` is that trail: each parent
|
|
5
|
+
* crumb a link, a router link or a button, the last one the page's own heading; on a phone the
|
|
6
|
+
* parents fold into a menu so the page's own crumb keeps the room. `PageHeading` opens a page's or
|
|
7
|
+
* a record's content with the title, a meta line and its own actions; `StatLine` is a meta line of
|
|
8
|
+
* counts.
|
|
9
|
+
*/
|
|
10
|
+
import { DotsThreeIcon } from "@phosphor-icons/react";
|
|
11
|
+
import { Fragment } from "react";
|
|
12
|
+
import { css, cx } from "#primitives/css";
|
|
13
|
+
import { icon } from "./icon.js";
|
|
14
|
+
import { Cluster, Heading } from "./layout.js";
|
|
15
|
+
import { useCiridaeLocale } from "./locale.js";
|
|
16
|
+
import { Menu, OverflowMenu } from "./menu.js";
|
|
17
|
+
import { AppBreadcrumbButton, AppBreadcrumbCurrent, AppBreadcrumbParents, AppBreadcrumbs, AppBreadcrumbSeparator, AppContent, AppHeader, AppMain, } from "./shell.js";
|
|
18
|
+
/** The page's trail: its parents, then the page itself as the trail's heading. */
|
|
19
|
+
export function Breadcrumbs({ crumbs, current: ownCurrent, ...props }) {
|
|
20
|
+
const { labels } = useCiridaeLocale();
|
|
21
|
+
const parents = ownCurrent === undefined ? crumbs.slice(0, -1) : crumbs;
|
|
22
|
+
const current = ownCurrent === undefined ? crumbs[crumbs.length - 1]?.label : ownCurrent;
|
|
23
|
+
return (_jsxs(AppBreadcrumbs, { ...props, children: [parents.length > 0 && (_jsx(AppBreadcrumbParents, { compact: _jsxs(_Fragment, { children: [_jsx(Menu, { align: "start", trigger: _jsx(AppBreadcrumbButton, { "aria-label": labels.shell.parentPages, children: _jsx(DotsThreeIcon, { className: icon({ size: "small" }), weight: "bold" }) }), items: parents.map((crumb) => ({
|
|
24
|
+
label: crumb.label,
|
|
25
|
+
href: crumb.href,
|
|
26
|
+
render: crumb.render,
|
|
27
|
+
onSelect: crumb.onSelect,
|
|
28
|
+
})) }), _jsx(AppBreadcrumbSeparator, {})] }), children: parents.map((crumb, index) => (_jsxs(Fragment, { children: [_jsx(AppBreadcrumbButton, { href: crumb.href, render: crumb.render, onClick: crumb.onSelect, children: crumb.label }), _jsx(AppBreadcrumbSeparator, {})] }, `${index}-${crumb.label}`))) })), current !== undefined && _jsx(AppBreadcrumbCurrent, { children: current })] }));
|
|
29
|
+
}
|
|
30
|
+
/** The main panel of a page: a header with its trail and actions, then the content. */
|
|
31
|
+
export function PageFrame({ crumbs, headerActions, children, ...props }) {
|
|
32
|
+
return (_jsxs(AppMain, { ...props, children: [_jsx(AppHeader, { actions: headerActions !== undefined && _jsx(Cluster, { gap: "4", children: headerActions }), children: _jsx(Breadcrumbs, { crumbs: crumbs }) }), _jsx(AppContent, { children: children })] }));
|
|
33
|
+
}
|
|
34
|
+
// The actions drop under the title once both no longer fit one line.
|
|
35
|
+
const headingRow = css({
|
|
36
|
+
display: "flex",
|
|
37
|
+
alignItems: "center",
|
|
38
|
+
justifyContent: "space-between",
|
|
39
|
+
flexWrap: "wrap",
|
|
40
|
+
gap: "layout.contentGap",
|
|
41
|
+
paddingInline: "layout.tightGap",
|
|
42
|
+
// One "more" button stays beside the title, however long the title runs.
|
|
43
|
+
"&[data-overflow-actions]": { flexWrap: "nowrap", alignItems: "flex-start" },
|
|
44
|
+
});
|
|
45
|
+
const identity = css({
|
|
46
|
+
display: "flex",
|
|
47
|
+
alignItems: "center",
|
|
48
|
+
gap: "layout.contentGap",
|
|
49
|
+
minWidth: "0",
|
|
50
|
+
});
|
|
51
|
+
const titleBlock = css({ display: "grid", gap: "control.iconGap", minWidth: "0" });
|
|
52
|
+
const titleLine = css({
|
|
53
|
+
display: "flex",
|
|
54
|
+
alignItems: "center",
|
|
55
|
+
flexWrap: "wrap",
|
|
56
|
+
gap: "layout.controlGap",
|
|
57
|
+
minWidth: "0",
|
|
58
|
+
});
|
|
59
|
+
const metaLine = css({
|
|
60
|
+
display: "flex",
|
|
61
|
+
alignItems: "center",
|
|
62
|
+
flexWrap: "wrap",
|
|
63
|
+
gap: "layout.controlGap",
|
|
64
|
+
color: "fg.muted",
|
|
65
|
+
fontSize: "code",
|
|
66
|
+
fontWeight: "medium",
|
|
67
|
+
letterSpacing: "compact",
|
|
68
|
+
lineHeight: "tight",
|
|
69
|
+
});
|
|
70
|
+
function isMenuItems(value) {
|
|
71
|
+
return Array.isArray(value);
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* The title a page or a record opens with, the line under it, and its own actions: a node, or menu
|
|
75
|
+
* items behind an `OverflowMenu`.
|
|
76
|
+
*/
|
|
77
|
+
export function PageHeading({ title, leading, badge, meta, actions, actionsOpen, onActionsOpenChange, level = 2, labels: ownLabels, className, ...props }) {
|
|
78
|
+
const { labels } = useCiridaeLocale();
|
|
79
|
+
return (_jsxs("div", { ...props, className: cx(headingRow, className), "data-ciridae-ui": "", "data-overflow-actions": isMenuItems(actions) || undefined, children: [_jsxs("div", { className: identity, children: [leading, _jsxs("div", { className: titleBlock, children: [_jsxs("span", { className: titleLine, children: [_jsx(Heading, { level: level, size: "page", children: title }), badge] }), meta !== undefined && meta !== null && _jsx("div", { className: metaLine, children: meta })] })] }), isMenuItems(actions) ? (_jsx(OverflowMenu, { label: ownLabels?.actions ?? labels.common.moreActions, size: "large", items: actions, open: actionsOpen, onOpenChange: onActionsOpenChange })) : (actions !== undefined && _jsx(Cluster, { gap: "4", children: actions }))] }));
|
|
80
|
+
}
|
|
81
|
+
const statLine = css({
|
|
82
|
+
display: "flex",
|
|
83
|
+
alignItems: "center",
|
|
84
|
+
flexWrap: "wrap",
|
|
85
|
+
gap: "layout.controlGap",
|
|
86
|
+
"& b": { color: "fg.primary", fontWeight: "medium" },
|
|
87
|
+
});
|
|
88
|
+
/** A row of `value label` stats split by dots: the value reads, the label stays muted. */
|
|
89
|
+
export function StatLine({ stats, className, ...props }) {
|
|
90
|
+
return (_jsx("span", { ...props, className: cx(statLine, className), "data-ciridae-ui": "", children: stats.map((stat, index) => {
|
|
91
|
+
const { value, label, key } = "value" in stat ? stat : { value: stat[0], label: stat[1], key: undefined };
|
|
92
|
+
return (_jsxs(Fragment, { children: [index > 0 && _jsx("span", { "aria-hidden": "true", children: "\u00B7" }), _jsxs("span", { children: [_jsx("b", { children: value }), " ", label] })] }, key ?? index));
|
|
93
|
+
}) }));
|
|
94
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { useRender } from "@base-ui/react/use-render";
|
|
2
|
+
import type { ReactNode } from "react";
|
|
3
|
+
/** The card's surface as a style object, to merge into a `css()` call that adds layout. */
|
|
4
|
+
export declare const cardSurface: import("../../../src/styled-system/types/index.js").SystemStyleObject;
|
|
5
|
+
export type CardProps = useRender.ComponentProps<"div">;
|
|
6
|
+
export declare function Card({ render, className, ...props }: CardProps): import("@types/react").ReactElement<unknown, string | import("@types/react").JSXElementConstructor<any>>;
|
|
7
|
+
export type PanelProps = useRender.ComponentProps<"section"> & {
|
|
8
|
+
/** `default` pads a group of rows; `compact` insets cards by a hairline; `none` runs flush. */
|
|
9
|
+
padding?: "none" | "compact" | "default";
|
|
10
|
+
/** `panel` is the translucent lift off the page; `outline` is the edge alone. */
|
|
11
|
+
tone?: "panel" | "outline";
|
|
12
|
+
};
|
|
13
|
+
export declare function Panel({ padding, tone, render, className, ...props }: PanelProps): import("@types/react").ReactElement<unknown, string | import("@types/react").JSXElementConstructor<any>>;
|
|
14
|
+
export type PanelHeaderProps = Omit<useRender.ComponentProps<"div">, "title"> & {
|
|
15
|
+
title: ReactNode;
|
|
16
|
+
/** Muted beside the title, such as a count or the period it covers. */
|
|
17
|
+
meta?: ReactNode;
|
|
18
|
+
/** At the row's end, such as a link to the full list. */
|
|
19
|
+
actions?: ReactNode;
|
|
20
|
+
/** The title's heading level; a plain line when left out. */
|
|
21
|
+
level?: 2 | 3 | 4;
|
|
22
|
+
};
|
|
23
|
+
/** A panel's top row: its title and meta, and its actions at the far edge. */
|
|
24
|
+
export declare function PanelHeader({ title, meta, actions, level, render, className, ...props }: PanelHeaderProps): import("@types/react").ReactElement<unknown, string | import("@types/react").JSXElementConstructor<any>>;
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
+
/*
|
|
3
|
+
* The two surfaces a page's sections are built from. A `Panel` is a section's frame, with the
|
|
4
|
+
* inset radius. Its `padding` is `default` for a group of rows or fields, `compact` for the
|
|
5
|
+
* hairline inset round the cards inside it under a `PanelHeader` row, or `none` for a list that
|
|
6
|
+
* runs edge to edge; its `tone` is the translucent `panel` lift or a bare `outline`. A `Card` is
|
|
7
|
+
* the action surface inside a panel, or on its own: a list, a preview pane, a stat; a faint glass
|
|
8
|
+
* wash in dark, near white in light. Both render any element through `render`, such as a `<ul>`.
|
|
9
|
+
*/
|
|
10
|
+
import { useRender } from "@base-ui/react/use-render";
|
|
11
|
+
import { css, cva, cx } from "#primitives/css";
|
|
12
|
+
/** The card's surface as a style object, to merge into a `css()` call that adds layout. */
|
|
13
|
+
export const cardSurface = css.raw({
|
|
14
|
+
minWidth: "0",
|
|
15
|
+
border: "1px solid token(colors.border.panel)",
|
|
16
|
+
borderRadius: "action",
|
|
17
|
+
background: "bg.hover",
|
|
18
|
+
_light: { background: "bg.card" },
|
|
19
|
+
});
|
|
20
|
+
const card = css(cardSurface);
|
|
21
|
+
const panel = cva({
|
|
22
|
+
base: {
|
|
23
|
+
display: "flex",
|
|
24
|
+
flexDirection: "column",
|
|
25
|
+
minWidth: "0",
|
|
26
|
+
borderWidth: "1px",
|
|
27
|
+
borderStyle: "solid",
|
|
28
|
+
borderRadius: "inset",
|
|
29
|
+
},
|
|
30
|
+
variants: {
|
|
31
|
+
padding: {
|
|
32
|
+
none: { overflow: "hidden" },
|
|
33
|
+
// A `PanelHeader` on top is the panel's top inset; without one, the hairline runs round.
|
|
34
|
+
compact: {
|
|
35
|
+
paddingInline: "panel.hairline",
|
|
36
|
+
paddingBottom: "panel.hairline",
|
|
37
|
+
"&:not(:has(> [data-panel-header]:first-child))": { paddingTop: "panel.hairline" },
|
|
38
|
+
},
|
|
39
|
+
default: { gap: "layout.contentGap", padding: "panel.default" },
|
|
40
|
+
},
|
|
41
|
+
tone: {
|
|
42
|
+
panel: { borderColor: "border.panel", background: "bg.panel" },
|
|
43
|
+
outline: { borderColor: "border.control" },
|
|
44
|
+
},
|
|
45
|
+
},
|
|
46
|
+
defaultVariants: { padding: "default", tone: "panel" },
|
|
47
|
+
});
|
|
48
|
+
const panelHeader = css({
|
|
49
|
+
display: "flex",
|
|
50
|
+
alignItems: "center",
|
|
51
|
+
justifyContent: "space-between",
|
|
52
|
+
gap: "layout.tightGap",
|
|
53
|
+
height: "control.field",
|
|
54
|
+
flexShrink: "0",
|
|
55
|
+
paddingInline: "panel.comfortable",
|
|
56
|
+
fontSize: "body",
|
|
57
|
+
fontWeight: "medium",
|
|
58
|
+
// In a padded panel the header is one more row inside the padding.
|
|
59
|
+
"[data-panel-padding=default] > &": { height: "auto", paddingInline: "none" },
|
|
60
|
+
});
|
|
61
|
+
const panelHeaderTitle = css({
|
|
62
|
+
display: "flex",
|
|
63
|
+
alignItems: "center",
|
|
64
|
+
gap: "control.iconGap",
|
|
65
|
+
minWidth: "0",
|
|
66
|
+
margin: "none",
|
|
67
|
+
font: "inherit",
|
|
68
|
+
overflow: "hidden",
|
|
69
|
+
textOverflow: "ellipsis",
|
|
70
|
+
whiteSpace: "nowrap",
|
|
71
|
+
});
|
|
72
|
+
const panelHeaderMeta = css({ color: "fg.subtle", fontSize: "code" });
|
|
73
|
+
const panelHeaderActions = css({ display: "flex", alignItems: "center", gap: "layout.tightGap" });
|
|
74
|
+
export function Card({ render, className, ...props }) {
|
|
75
|
+
return useRender({
|
|
76
|
+
defaultTagName: "div",
|
|
77
|
+
render,
|
|
78
|
+
props: { ...props, className: cx(card, className), "data-ciridae-ui": "" },
|
|
79
|
+
});
|
|
80
|
+
}
|
|
81
|
+
export function Panel({ padding = "default", tone, render, className, ...props }) {
|
|
82
|
+
return useRender({
|
|
83
|
+
defaultTagName: "section",
|
|
84
|
+
render,
|
|
85
|
+
props: {
|
|
86
|
+
...props,
|
|
87
|
+
className: cx(panel({ padding, tone }), className),
|
|
88
|
+
"data-ciridae-ui": "",
|
|
89
|
+
"data-panel-padding": padding,
|
|
90
|
+
},
|
|
91
|
+
});
|
|
92
|
+
}
|
|
93
|
+
/** A panel's top row: its title and meta, and its actions at the far edge. */
|
|
94
|
+
export function PanelHeader({ title, meta, actions, level, render, className, ...props }) {
|
|
95
|
+
const Title = level ? `h${level}` : "span";
|
|
96
|
+
return useRender({
|
|
97
|
+
defaultTagName: "div",
|
|
98
|
+
render,
|
|
99
|
+
props: {
|
|
100
|
+
...props,
|
|
101
|
+
className: cx(panelHeader, className),
|
|
102
|
+
"data-ciridae-ui": "",
|
|
103
|
+
"data-panel-header": "",
|
|
104
|
+
children: (_jsxs(_Fragment, { children: [title !== undefined && title !== null && (_jsxs(Title, { className: panelHeaderTitle, children: [title, meta !== undefined && _jsx("span", { className: panelHeaderMeta, children: meta })] })), actions !== undefined && _jsx("span", { className: panelHeaderActions, children: actions })] })),
|
|
105
|
+
},
|
|
106
|
+
});
|
|
107
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { ComponentProps, ReactNode } from "react";
|
|
2
|
+
export type ProfileHeaderProps = Omit<ComponentProps<"header">, "children" | "title"> & {
|
|
3
|
+
name: string;
|
|
4
|
+
kind?: "user" | "agent";
|
|
5
|
+
/** The photo; initials stand in without one. */
|
|
6
|
+
src?: string;
|
|
7
|
+
/** Their role, such as "Site lead". */
|
|
8
|
+
title?: string;
|
|
9
|
+
team?: string;
|
|
10
|
+
email?: string;
|
|
11
|
+
/** What they do here, under the rest. */
|
|
12
|
+
description?: ReactNode;
|
|
13
|
+
actions?: ReactNode;
|
|
14
|
+
};
|
|
15
|
+
export declare function ProfileHeader({ name, kind, src, title, team, email, description, actions, className, ...props }: ProfileHeaderProps): import("@types/react").JSX.Element;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
/*
|
|
3
|
+
* The head of a person's or an agent's page: a large avatar, the name, their title and team,
|
|
4
|
+
* their email with a copy control, a line on what they do, and actions at the end. The actions
|
|
5
|
+
* drop under the name once the header is narrow.
|
|
6
|
+
*/
|
|
7
|
+
import { css, cx } from "#primitives/css";
|
|
8
|
+
import { CopyableText } from "./copyable-id.js";
|
|
9
|
+
import { Avatar } from "./data-display.js";
|
|
10
|
+
import { useCiridaeLocale } from "./locale.js";
|
|
11
|
+
const header = css({ containerType: "inline-size" });
|
|
12
|
+
const grid = css({
|
|
13
|
+
display: "grid",
|
|
14
|
+
gridTemplateColumns: "auto minmax(0, 1fr) auto",
|
|
15
|
+
alignItems: "start",
|
|
16
|
+
columnGap: "layout.contentGap",
|
|
17
|
+
rowGap: "layout.controlGap",
|
|
18
|
+
paddingInline: "layout.tightGap",
|
|
19
|
+
"@container (max-width: 480px)": {
|
|
20
|
+
gridTemplateColumns: "auto minmax(0, 1fr)",
|
|
21
|
+
"& > [data-actions]": { gridColumn: "1 / -1" },
|
|
22
|
+
},
|
|
23
|
+
});
|
|
24
|
+
const text = css({ display: "grid", gap: "layout.tightGap", minWidth: "0" });
|
|
25
|
+
const nameStyle = css({
|
|
26
|
+
margin: "none",
|
|
27
|
+
fontSize: "heading.page",
|
|
28
|
+
fontWeight: "medium",
|
|
29
|
+
letterSpacing: "compact",
|
|
30
|
+
lineHeight: "tight",
|
|
31
|
+
overflowWrap: "anywhere",
|
|
32
|
+
});
|
|
33
|
+
const muted = css({ color: "fg.muted", fontSize: "caption", fontWeight: "medium" });
|
|
34
|
+
const descriptionStyle = css({ margin: "none", color: "fg.secondary", fontSize: "body" });
|
|
35
|
+
const actionsStyle = css({ display: "flex", flexWrap: "wrap", gap: "layout.controlGap" });
|
|
36
|
+
export function ProfileHeader({ name, kind = "user", src, title, team, email, description, actions, className, ...props }) {
|
|
37
|
+
const { labels } = useCiridaeLocale();
|
|
38
|
+
const meta = [title, team].filter(Boolean).join(" · ");
|
|
39
|
+
return (_jsx("header", { ...props, className: cx(header, className), "data-ciridae-ui": "", children: _jsxs("div", { className: grid, children: [_jsx(Avatar, { label: name, kind: kind, src: src, size: "large", "aria-hidden": "true" }), _jsxs("div", { className: text, children: [_jsx("h2", { className: nameStyle, children: name }), meta && _jsx("span", { className: muted, children: meta }), email && (_jsx("span", { className: muted, children: _jsx(CopyableText, { text: email, label: labels.profileHeader.email }) })), description && _jsx("p", { className: descriptionStyle, children: description })] }), actions && (_jsx("div", { className: actionsStyle, "data-actions": "", children: actions }))] }) }));
|
|
40
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Progress as BaseProgress } from "@base-ui/react/progress";
|
|
3
|
+
import { css } from "#primitives/css";
|
|
4
|
+
import { useCiridaeLocale } from "./locale.js";
|
|
5
|
+
export function Progress({ value, label }) {
|
|
6
|
+
const { labels } = useCiridaeLocale();
|
|
7
|
+
return (_jsxs(BaseProgress.Root, { value: value, className: css({ display: "flex", flexDirection: "column", gap: "layout.controlGap" }), "data-ciridae-ui": "", children: [_jsxs("span", { className: css({ display: "flex", justifyContent: "space-between" }), children: [_jsx(BaseProgress.Label, { children: label ?? labels.common.progress }), _jsx(BaseProgress.Value, {})] }), _jsx(BaseProgress.Track, { className: css({
|
|
8
|
+
height: "progress.track",
|
|
9
|
+
borderRadius: "pill",
|
|
10
|
+
background: "border.control",
|
|
11
|
+
overflow: "hidden",
|
|
12
|
+
}), children: _jsx(BaseProgress.Indicator, { className: css({
|
|
13
|
+
height: "100%",
|
|
14
|
+
background: "accent.green",
|
|
15
|
+
transitionProperty: "width",
|
|
16
|
+
transitionDuration: "default",
|
|
17
|
+
}) }) })] }));
|
|
18
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Avatar } from "./data-display.js";
|
|
2
|
+
import type { ComponentProps } from "react";
|
|
3
|
+
/**
|
|
4
|
+
* A project's avatar, its color picked from the project id so every app shows the same one.
|
|
5
|
+
* Decorative: the project's name always sits beside it.
|
|
6
|
+
*/
|
|
7
|
+
export declare function ProjectAvatar({ projectId, name, size, className, }: {
|
|
8
|
+
projectId: string;
|
|
9
|
+
name: string;
|
|
10
|
+
size?: ComponentProps<typeof Avatar>["size"];
|
|
11
|
+
className?: string;
|
|
12
|
+
}): import("@types/react").JSX.Element;
|