@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,545 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
+
import { ArrowClockwiseIcon, ArrowUpIcon } from "@phosphor-icons/react";
|
|
3
|
+
import { isSameDay, isToday, isYesterday } from "date-fns";
|
|
4
|
+
import { Fragment, useEffect, useRef, useState, useSyncExternalStore, } from "react";
|
|
5
|
+
import { css, cva, cx } from "#primitives/css";
|
|
6
|
+
import { listMessageGroupPositions, } from "../chat/message-group-position.js";
|
|
7
|
+
import { Button, IconButton } from "./button.js";
|
|
8
|
+
import { Avatar } from "./data-display.js";
|
|
9
|
+
import { fileSquare, fileTypeIcon } from "./dropzone.js";
|
|
10
|
+
import { icon, Spinner } from "./icon.js";
|
|
11
|
+
import { Lightbox } from "./lightbox.js";
|
|
12
|
+
import { useCiridaeLocale } from "./locale.js";
|
|
13
|
+
import { MentionInput } from "./mention-input.js";
|
|
14
|
+
/*
|
|
15
|
+
* Two composers share one behaviour: `page` is the wide card of a chat page, and `sheet` the
|
|
16
|
+
* composer at the foot of the agent sheet, its parts side by side as a messaging app's: the tools
|
|
17
|
+
* as bare icons, the text in a box of its own and a round send, all level with the box's last
|
|
18
|
+
* line. The box reads as a pill while it holds one line and as a soft card as it grows, line by
|
|
19
|
+
* line to six before it scrolls; what goes with the message, such as files, waits as chips just
|
|
20
|
+
* above it. `feed` is the sheet's composer for a comment under an activity feed: Enter breaks the
|
|
21
|
+
* line there, and Cmd/Ctrl+Enter sends.
|
|
22
|
+
*/
|
|
23
|
+
const pageComposer = css({
|
|
24
|
+
display: "flex",
|
|
25
|
+
width: "100%",
|
|
26
|
+
flexDirection: "column",
|
|
27
|
+
overflow: "hidden",
|
|
28
|
+
maxWidth: "chat.composer",
|
|
29
|
+
minHeight: "chat.composerMinimum",
|
|
30
|
+
border: "1px solid token(colors.border.glass)",
|
|
31
|
+
borderRadius: "card",
|
|
32
|
+
background: "bg.surface",
|
|
33
|
+
boxShadow: "card",
|
|
34
|
+
_focusWithin: { borderColor: "border.focus", boxShadow: "focus" },
|
|
35
|
+
_phone: { borderRadius: "inset" },
|
|
36
|
+
"& > [data-attachments]": { paddingInline: "page.inline", paddingTop: "page.inline" },
|
|
37
|
+
});
|
|
38
|
+
const pageInput = css({
|
|
39
|
+
width: "100%",
|
|
40
|
+
minHeight: "chat.input",
|
|
41
|
+
maxHeight: "calc(10lh + 2 * token(spacing.page.inline))",
|
|
42
|
+
padding: "page.inline",
|
|
43
|
+
fontSize: "body",
|
|
44
|
+
lineHeight: "body",
|
|
45
|
+
_phone: { minHeight: "chat.inputMobile", padding: "panel.comfortable" },
|
|
46
|
+
});
|
|
47
|
+
const sheetComposer = css({
|
|
48
|
+
display: "flex",
|
|
49
|
+
alignItems: "flex-end",
|
|
50
|
+
gap: "layout.tightGap",
|
|
51
|
+
width: "100%",
|
|
52
|
+
minWidth: "0",
|
|
53
|
+
});
|
|
54
|
+
// The tools and send: as tall as the box at one line, so they stay level with its last line.
|
|
55
|
+
const sheetSide = css({
|
|
56
|
+
display: "flex",
|
|
57
|
+
flexShrink: "0",
|
|
58
|
+
alignItems: "center",
|
|
59
|
+
gap: "layout.tightGap",
|
|
60
|
+
height: "control.compact",
|
|
61
|
+
});
|
|
62
|
+
const sheetColumn = css({ display: "grid", flex: "1", minWidth: "0", gap: "layout.tightGap" });
|
|
63
|
+
const sheetBox = css({
|
|
64
|
+
display: "flex",
|
|
65
|
+
alignItems: "flex-end",
|
|
66
|
+
minWidth: "0",
|
|
67
|
+
border: "1px solid token(colors.border.control)",
|
|
68
|
+
// Half the one-line height: a pill at one line, a soft card past it.
|
|
69
|
+
borderRadius: "calc(token(sizes.control.compact) / 2)",
|
|
70
|
+
background: "bg.field",
|
|
71
|
+
_focusWithin: { borderColor: "border.focus", boxShadow: "focus" },
|
|
72
|
+
"& > [data-actions]": {
|
|
73
|
+
display: "flex",
|
|
74
|
+
flexShrink: "0",
|
|
75
|
+
alignItems: "center",
|
|
76
|
+
height: "calc(token(sizes.control.compact) - 2px)",
|
|
77
|
+
paddingInlineEnd: "control.trackInset",
|
|
78
|
+
},
|
|
79
|
+
});
|
|
80
|
+
// Each line keeps the one-line box's rhythm, so the first wrap only adds a line.
|
|
81
|
+
const sheetInput = css({
|
|
82
|
+
flex: "1",
|
|
83
|
+
paddingInline: "control.compactInline",
|
|
84
|
+
paddingBlock: "calc((token(sizes.control.compact) - 2px - 1lh) / 2)",
|
|
85
|
+
maxHeight: "calc(5lh + token(sizes.control.compact) - 2px)",
|
|
86
|
+
fontSize: "caption",
|
|
87
|
+
lineHeight: "compact",
|
|
88
|
+
});
|
|
89
|
+
const composerFooter = css({
|
|
90
|
+
display: "flex",
|
|
91
|
+
alignItems: "center",
|
|
92
|
+
justifyContent: "space-between",
|
|
93
|
+
gap: "layout.contentGap",
|
|
94
|
+
minHeight: "chat.footer",
|
|
95
|
+
paddingBlock: "panel.default",
|
|
96
|
+
paddingInline: "panel.comfortable",
|
|
97
|
+
borderTop: "1px solid token(colors.border.glass)",
|
|
98
|
+
_phone: {
|
|
99
|
+
flexWrap: "wrap",
|
|
100
|
+
padding: "panel.default",
|
|
101
|
+
"& > :last-child": { marginInlineStart: "auto", overflow: "visible" },
|
|
102
|
+
},
|
|
103
|
+
});
|
|
104
|
+
const actionGroup = css({
|
|
105
|
+
display: "flex",
|
|
106
|
+
alignItems: "center",
|
|
107
|
+
gap: "control.iconGap",
|
|
108
|
+
flexWrap: "wrap",
|
|
109
|
+
_phone: {
|
|
110
|
+
maxWidth: "100%",
|
|
111
|
+
flexWrap: "nowrap",
|
|
112
|
+
overflowX: "auto",
|
|
113
|
+
scrollbarWidth: "none",
|
|
114
|
+
},
|
|
115
|
+
});
|
|
116
|
+
const chatAction = css({
|
|
117
|
+
display: "inline-flex",
|
|
118
|
+
alignItems: "center",
|
|
119
|
+
gap: "control.iconGap",
|
|
120
|
+
height: "control.compact",
|
|
121
|
+
paddingInline: "control.compactInline",
|
|
122
|
+
border: "1px solid token(colors.border.control)",
|
|
123
|
+
borderRadius: "pill",
|
|
124
|
+
background: "bg.pill",
|
|
125
|
+
color: "fg.muted",
|
|
126
|
+
fontFamily: "sans",
|
|
127
|
+
fontSize: "caption",
|
|
128
|
+
lineHeight: "tight",
|
|
129
|
+
cursor: "pointer",
|
|
130
|
+
flexShrink: "0",
|
|
131
|
+
_hover: { color: "fg.primary", borderColor: "fg.muted" },
|
|
132
|
+
});
|
|
133
|
+
/*
|
|
134
|
+
* A message bubble in the agent sheet: the user's on the right in the primary face, the
|
|
135
|
+
* assistant's on the left in the neutral fill. The corner on its side is small where it joins the
|
|
136
|
+
* bubble above or below it, so a run of messages reads as one stack.
|
|
137
|
+
*/
|
|
138
|
+
const bubble = cva({
|
|
139
|
+
base: {
|
|
140
|
+
position: "relative",
|
|
141
|
+
maxWidth: "chat.bubble",
|
|
142
|
+
paddingBlock: "control.compactBlock",
|
|
143
|
+
paddingInline: "control.compactInline",
|
|
144
|
+
borderRadius: "field",
|
|
145
|
+
fontSize: "caption",
|
|
146
|
+
lineHeight: "log",
|
|
147
|
+
overflowWrap: "anywhere",
|
|
148
|
+
},
|
|
149
|
+
variants: {
|
|
150
|
+
side: {
|
|
151
|
+
user: {
|
|
152
|
+
alignSelf: "flex-end",
|
|
153
|
+
borderEndEndRadius: "keycap",
|
|
154
|
+
background: "bg.primary",
|
|
155
|
+
color: "bg.canvas",
|
|
156
|
+
_light: { color: "fg.onAccent" },
|
|
157
|
+
whiteSpace: "pre-wrap",
|
|
158
|
+
"&[data-group-position=middle], &[data-group-position=last]": {
|
|
159
|
+
borderStartEndRadius: "keycap",
|
|
160
|
+
},
|
|
161
|
+
},
|
|
162
|
+
assistant: {
|
|
163
|
+
alignSelf: "flex-start",
|
|
164
|
+
borderEndStartRadius: "keycap",
|
|
165
|
+
background: "bg.fill",
|
|
166
|
+
color: "fg.primary",
|
|
167
|
+
"&[data-group-position=middle], &[data-group-position=last]": {
|
|
168
|
+
borderStartStartRadius: "keycap",
|
|
169
|
+
},
|
|
170
|
+
},
|
|
171
|
+
},
|
|
172
|
+
},
|
|
173
|
+
});
|
|
174
|
+
/** A line about the conversation rather than in it, centered between bubbles. */
|
|
175
|
+
const systemLine = css({
|
|
176
|
+
alignSelf: "center",
|
|
177
|
+
maxWidth: "85%",
|
|
178
|
+
color: "fg.muted",
|
|
179
|
+
fontSize: "code",
|
|
180
|
+
lineHeight: "compact",
|
|
181
|
+
textAlign: "center",
|
|
182
|
+
overflowWrap: "anywhere",
|
|
183
|
+
"&[data-tone=error]": { color: "accent.red" },
|
|
184
|
+
});
|
|
185
|
+
const dayLabel = css({ marginBlock: "layout.controlGap", fontWeight: "medium" });
|
|
186
|
+
/*
|
|
187
|
+
* The thread: bubbles 4px apart, groups 12px apart, lines centered between them. Compact, as the
|
|
188
|
+
* agent sheet draws it, keeps 8px above and below and between groups.
|
|
189
|
+
*/
|
|
190
|
+
const thread = css({
|
|
191
|
+
display: "flex",
|
|
192
|
+
flexDirection: "column",
|
|
193
|
+
gap: "layout.tightGap",
|
|
194
|
+
padding: "panel.default",
|
|
195
|
+
"&[data-density=compact]": {
|
|
196
|
+
paddingBlock: "layout.controlGap",
|
|
197
|
+
"& > [data-group-position=single], & > [data-group-position=first]": {
|
|
198
|
+
marginTop: "layout.tightGap",
|
|
199
|
+
},
|
|
200
|
+
},
|
|
201
|
+
});
|
|
202
|
+
/* A reply's sources under its bubble: small links in a row. */
|
|
203
|
+
const sourceRow = css({
|
|
204
|
+
display: "flex",
|
|
205
|
+
flexWrap: "wrap",
|
|
206
|
+
alignItems: "center",
|
|
207
|
+
columnGap: "layout.controlGap",
|
|
208
|
+
rowGap: "control.trackInset",
|
|
209
|
+
paddingInline: "layout.tightGap",
|
|
210
|
+
color: "fg.muted",
|
|
211
|
+
fontSize: "code",
|
|
212
|
+
lineHeight: "compact",
|
|
213
|
+
"[data-side=assistant] > &": {
|
|
214
|
+
marginInlineStart: "calc(token(sizes.avatar.small) + token(spacing.control.iconGap))",
|
|
215
|
+
},
|
|
216
|
+
"& a": { color: "fg.secondary", textDecoration: "none", _hover: { color: "fg.primary" } },
|
|
217
|
+
});
|
|
218
|
+
/* Files sent with a message, as tiles over its bubble: image thumbnails, or a file's icon and name. */
|
|
219
|
+
const attachmentTiles = css({
|
|
220
|
+
display: "flex",
|
|
221
|
+
flexWrap: "wrap",
|
|
222
|
+
gap: "layout.tightGap",
|
|
223
|
+
maxWidth: "chat.bubble",
|
|
224
|
+
"[data-side=user] > &": { justifyContent: "flex-end" },
|
|
225
|
+
"[data-side=assistant] > &": {
|
|
226
|
+
marginInlineStart: "calc(token(sizes.avatar.small) + token(spacing.control.iconGap))",
|
|
227
|
+
},
|
|
228
|
+
});
|
|
229
|
+
/* Prompts to start from, stacked flush over the composer of an empty conversation. */
|
|
230
|
+
const suggestionList = css({
|
|
231
|
+
display: "flex",
|
|
232
|
+
flexDirection: "column",
|
|
233
|
+
alignItems: "flex-start",
|
|
234
|
+
justifyContent: "flex-end",
|
|
235
|
+
gap: "layout.tightGap",
|
|
236
|
+
minHeight: "100%",
|
|
237
|
+
padding: "panel.default",
|
|
238
|
+
});
|
|
239
|
+
const suggestion = css({
|
|
240
|
+
display: "inline-flex",
|
|
241
|
+
alignItems: "center",
|
|
242
|
+
maxWidth: "100%",
|
|
243
|
+
height: "control.small",
|
|
244
|
+
paddingInline: "control.compactInline",
|
|
245
|
+
border: "1px solid token(colors.border.control)",
|
|
246
|
+
borderRadius: "action",
|
|
247
|
+
background: "transparent",
|
|
248
|
+
color: "fg.primary",
|
|
249
|
+
font: "inherit",
|
|
250
|
+
fontSize: "caption",
|
|
251
|
+
lineHeight: "compact",
|
|
252
|
+
textAlign: "start",
|
|
253
|
+
cursor: "pointer",
|
|
254
|
+
_hover: { background: "bg.hover" },
|
|
255
|
+
_focusVisible: { focusRing: "outer" },
|
|
256
|
+
});
|
|
257
|
+
/* An entry: its bubble beside the avatar slot, and under the group's last one its footer. */
|
|
258
|
+
const entryBlock = css({
|
|
259
|
+
display: "flex",
|
|
260
|
+
flexDirection: "column",
|
|
261
|
+
gap: "layout.tightGap",
|
|
262
|
+
minWidth: "0",
|
|
263
|
+
"&[data-side=user]": { alignItems: "flex-end" },
|
|
264
|
+
"&[data-group-position=single], &[data-group-position=first]": {
|
|
265
|
+
marginTop: "layout.controlGap",
|
|
266
|
+
},
|
|
267
|
+
// A message's own controls, such as Copy, show while it is hovered or focused.
|
|
268
|
+
"& [data-entry-actions]": {
|
|
269
|
+
display: "inline-flex",
|
|
270
|
+
alignItems: "center",
|
|
271
|
+
alignSelf: "center",
|
|
272
|
+
flexShrink: "0",
|
|
273
|
+
opacity: "0",
|
|
274
|
+
transition: "opacity 120ms ease",
|
|
275
|
+
},
|
|
276
|
+
"&:hover [data-entry-actions], &:focus-within [data-entry-actions]": { opacity: "1" },
|
|
277
|
+
"@media (hover: none)": { "& [data-entry-actions]": { opacity: "1" } },
|
|
278
|
+
});
|
|
279
|
+
// Full width, so a bubble's maximum is a share of the thread rather than of its own text.
|
|
280
|
+
const entryRow = css({
|
|
281
|
+
display: "flex",
|
|
282
|
+
alignItems: "flex-end",
|
|
283
|
+
gap: "control.iconGap",
|
|
284
|
+
width: "100%",
|
|
285
|
+
minWidth: "0",
|
|
286
|
+
"[data-side=user] > &": { justifyContent: "flex-end" },
|
|
287
|
+
});
|
|
288
|
+
const avatarSlot = css({ flexShrink: "0", width: "avatar.small" });
|
|
289
|
+
const entryFooter = css({
|
|
290
|
+
display: "inline-flex",
|
|
291
|
+
alignItems: "center",
|
|
292
|
+
gap: "control.iconGap",
|
|
293
|
+
paddingInline: "layout.tightGap",
|
|
294
|
+
color: "fg.muted",
|
|
295
|
+
fontSize: "code",
|
|
296
|
+
lineHeight: "compact",
|
|
297
|
+
fontVariantNumeric: "tabular-nums",
|
|
298
|
+
"[data-side=assistant] > &": {
|
|
299
|
+
marginInlineStart: "calc(token(sizes.avatar.small) + token(spacing.control.iconGap))",
|
|
300
|
+
},
|
|
301
|
+
});
|
|
302
|
+
const attachmentList = css({
|
|
303
|
+
display: "flex",
|
|
304
|
+
flexWrap: "wrap",
|
|
305
|
+
gap: "layout.tightGap",
|
|
306
|
+
marginBlockStart: "layout.tightGap",
|
|
307
|
+
opacity: "0.8",
|
|
308
|
+
fontSize: "code",
|
|
309
|
+
"& a": { color: "inherit" },
|
|
310
|
+
});
|
|
311
|
+
const typingBubble = css({
|
|
312
|
+
display: "inline-flex",
|
|
313
|
+
alignItems: "center",
|
|
314
|
+
gap: "control.iconGap",
|
|
315
|
+
color: "fg.muted",
|
|
316
|
+
});
|
|
317
|
+
const errorBubble = css({
|
|
318
|
+
display: "flex",
|
|
319
|
+
flexWrap: "wrap",
|
|
320
|
+
alignItems: "center",
|
|
321
|
+
gap: "layout.controlGap",
|
|
322
|
+
border: "1px solid token(colors.border.error)",
|
|
323
|
+
background: "bg.errorSubtle",
|
|
324
|
+
});
|
|
325
|
+
const typingDots = css({
|
|
326
|
+
display: "inline-flex",
|
|
327
|
+
alignItems: "center",
|
|
328
|
+
gap: "control.trackInset",
|
|
329
|
+
height: "1lh",
|
|
330
|
+
"& > span": {
|
|
331
|
+
width: "indicator.live",
|
|
332
|
+
height: "indicator.live",
|
|
333
|
+
borderRadius: "round",
|
|
334
|
+
background: "fg.muted",
|
|
335
|
+
animation: "livePulse 1.2s ease-in-out infinite",
|
|
336
|
+
_motionReduce: { animation: "none" },
|
|
337
|
+
},
|
|
338
|
+
"& > span:nth-child(2)": { animationDelay: "0.2s" },
|
|
339
|
+
"& > span:nth-child(3)": { animationDelay: "0.4s" },
|
|
340
|
+
});
|
|
341
|
+
export function ChatComposer({ value, defaultValue = "", onValueChange, onSend, placeholder, ariaLabel: ownAriaLabel, tools, actions, submitLabel: ownSubmitLabel, sendDisabled = false, sendsWithoutText = false, attachments, variant = "page", autoFocus, mentions, mentionMark, mentionsLabel, inputProps, className, ...props }) {
|
|
342
|
+
const { labels } = useCiridaeLocale();
|
|
343
|
+
const ariaLabel = ownAriaLabel ?? labels.chat.message;
|
|
344
|
+
const submitLabel = ownSubmitLabel ?? labels.chat.sendMessage;
|
|
345
|
+
const [internalValue, setInternalValue] = useState(defaultValue);
|
|
346
|
+
const currentValue = value ?? internalValue;
|
|
347
|
+
const setValue = (nextValue) => {
|
|
348
|
+
if (value === undefined)
|
|
349
|
+
setInternalValue(nextValue);
|
|
350
|
+
onValueChange?.(nextValue);
|
|
351
|
+
};
|
|
352
|
+
const canSend = (sendsWithoutText || currentValue.trim().length > 0) && !sendDisabled;
|
|
353
|
+
const send = () => {
|
|
354
|
+
if (!canSend)
|
|
355
|
+
return;
|
|
356
|
+
onSend?.(currentValue);
|
|
357
|
+
setValue("");
|
|
358
|
+
};
|
|
359
|
+
const sheet = variant !== "page";
|
|
360
|
+
const input = (_jsx(MentionInput, { ...inputProps, "aria-label": ariaLabel, autoFocus: autoFocus, className: cx(sheet ? sheetInput : pageInput, inputProps?.className), value: currentValue, onValueChange: setValue, triggers: mentions, mentionMark: mentionMark, listLabel: mentionsLabel, placeholder: placeholder, submitOn: variant === "feed" ? "mod+enter" : "enter", onSubmit: send }));
|
|
361
|
+
// The sheet's send is quiet until there is something to send.
|
|
362
|
+
const sendButton = (_jsx(IconButton, { "aria-label": submitLabel, disabled: !canSend, onClick: send, variant: sheet ? (canSend ? "primary" : "ghost") : "raised", children: _jsx(ArrowUpIcon, { className: icon({ size: "small" }), weight: "bold" }) }));
|
|
363
|
+
const waiting = attachments ? _jsx("div", { "data-attachments": "", children: attachments }) : null;
|
|
364
|
+
if (sheet) {
|
|
365
|
+
return (_jsxs("div", { ...props, className: cx(sheetComposer, className), "data-ciridae-ui": "", children: [tools && _jsx("div", { className: sheetSide, children: tools }), _jsxs("div", { className: sheetColumn, children: [waiting, _jsxs("div", { className: sheetBox, children: [input, actions && _jsx("div", { "data-actions": "", children: actions })] })] }), _jsx("div", { className: sheetSide, children: sendButton })] }));
|
|
366
|
+
}
|
|
367
|
+
return (_jsxs("div", { ...props, className: cx(pageComposer, className), "data-ciridae-ui": "", children: [waiting, input, _jsxs("div", { className: composerFooter, children: [_jsx("div", { className: actionGroup, children: tools }), _jsxs("div", { className: actionGroup, children: [actions, sendButton] })] })] }));
|
|
368
|
+
}
|
|
369
|
+
/** A message bubble in the agent sheet. */
|
|
370
|
+
export function ChatBubble({ side, groupPosition, className, ...props }) {
|
|
371
|
+
return (_jsx("div", { ...props, className: cx(bubble({ side }), className), "data-ciridae-ui": "", "data-group-position": groupPosition }));
|
|
372
|
+
}
|
|
373
|
+
/** A centered line between bubbles: a finished tool call, a decision, something the page did. */
|
|
374
|
+
export function ChatSystemLine({ tone, className, ...props }) {
|
|
375
|
+
return (_jsx("div", { ...props, className: cx(systemLine, className), "data-ciridae-ui": "", "data-tone": tone === "error" ? "error" : undefined }));
|
|
376
|
+
}
|
|
377
|
+
/** Three pulsing dots: the assistant is typing. */
|
|
378
|
+
export function ChatTypingDots({ className, ...props }) {
|
|
379
|
+
return (_jsxs("span", { ...props, className: cx(typingDots, className), "data-ciridae-ui": "", "aria-hidden": "true", children: [_jsx("span", {}), _jsx("span", {}), _jsx("span", {})] }));
|
|
380
|
+
}
|
|
381
|
+
export function ChatAction({ className, ...props }) {
|
|
382
|
+
return (_jsx("button", { ...props, className: cx(chatAction, className), "data-ciridae-ui": "", type: props.type ?? "button" }));
|
|
383
|
+
}
|
|
384
|
+
/*
|
|
385
|
+
* A conversation in time order. Close messages from one author read as a group: bubbles 4px
|
|
386
|
+
* apart, groups 8px apart, the author's avatar beside the group's last bubble on the assistant's
|
|
387
|
+
* side and the author and time once under it. The nearest scrolling ancestor, or the thread
|
|
388
|
+
* itself, follows the newest entry.
|
|
389
|
+
*/
|
|
390
|
+
export function ChatThread({ entries, assistant, renderCustom, formatTime, density = "comfortable", attachmentTiles = false, dayLabels = false, className, }) {
|
|
391
|
+
const rootRef = useRef(null);
|
|
392
|
+
const { formatDateTime } = useCiridaeLocale();
|
|
393
|
+
const authorOf = (entry) => entry.kind === "line" || entrySide(entry) === "user"
|
|
394
|
+
? undefined
|
|
395
|
+
: ((entry.kind === "message" ? entry.author : undefined) ?? assistant);
|
|
396
|
+
const positions = listMessageGroupPositions(entries.map((entry) => ({
|
|
397
|
+
side: entry.kind === "line" ? null : entrySide(entry),
|
|
398
|
+
at: entry.at,
|
|
399
|
+
author: authorOf(entry)?.name,
|
|
400
|
+
})));
|
|
401
|
+
// Follows the newest entry.
|
|
402
|
+
const newestEntry = entries[entries.length - 1];
|
|
403
|
+
useEffect(() => {
|
|
404
|
+
const root = rootRef.current;
|
|
405
|
+
const scroller = root && findScrollContainer(root);
|
|
406
|
+
if (scroller)
|
|
407
|
+
scroller.scrollTop = scroller.scrollHeight;
|
|
408
|
+
}, [newestEntry?.id, entries.length]);
|
|
409
|
+
return (_jsx("div", { ref: rootRef, className: cx(thread, className), "data-ciridae-ui": "", "data-density": density === "compact" ? "compact" : undefined, children: entries.map((entry, index) => {
|
|
410
|
+
const previous = entries[index - 1];
|
|
411
|
+
const newDay = dayLabels && (!previous || !isSameDay(previous.at, entry.at));
|
|
412
|
+
const content = renderEntry(entry, index);
|
|
413
|
+
return newDay ? (_jsxs(Fragment, { children: [_jsx(DayLabel, { at: entry.at }), content] }, entry.id)) : (content);
|
|
414
|
+
}) }));
|
|
415
|
+
function renderEntry(entry, index) {
|
|
416
|
+
if (entry.kind === "line") {
|
|
417
|
+
return (_jsx(ChatSystemLine, { tone: entry.tone, children: entry.text }, entry.id));
|
|
418
|
+
}
|
|
419
|
+
const side = entrySide(entry);
|
|
420
|
+
const author = authorOf(entry);
|
|
421
|
+
const position = positions[index] ?? undefined;
|
|
422
|
+
const closesGroup = position === "single" || position === "last";
|
|
423
|
+
const message = entry.kind === "message" ? entry : null;
|
|
424
|
+
const tiles = attachmentTiles && message?.attachments && message.attachments.length > 0
|
|
425
|
+
? message.attachments
|
|
426
|
+
: null;
|
|
427
|
+
return (_jsxs("div", { className: entryBlock, "data-side": side, "data-group-position": position, children: [tiles && _jsx(AttachmentTiles, { attachments: tiles }), !(tiles && message?.body === "") && (_jsxs("div", { className: entryRow, title: message ? formatDateTime(entry.at) : undefined, children: [side === "assistant" && (_jsx("span", { className: avatarSlot, children: closesGroup && author && (_jsx(Avatar, { kind: author.kind, src: author.src, label: author.name, size: "small", "aria-hidden": "true" })) })), _jsx(ThreadEntryContent, { entry: entry, side: side, groupPosition: position, renderCustom: renderCustom, attachmentTiles: attachmentTiles }), message?.actions && !message.sending && (_jsx("span", { "data-entry-actions": "", children: message.actions }))] })), message?.sources && message.sources.length > 0 && (_jsx("span", { className: sourceRow, children: message.sources.map((source) => source.href ? (_jsx("a", { href: source.href, children: source.label }, source.id)) : (_jsx("span", { children: source.label }, source.id))) })), closesGroup && entry.kind !== "typing" && (_jsx("span", { className: entryFooter, children: message?.sending ? (_jsxs(_Fragment, { children: [_jsx(Spinner, { "aria-hidden": "true", size: "compact" }), "Sending"] })) : (_jsxs("span", { children: [author && (_jsxs(_Fragment, { children: [author.label ?? author.name, " · "] })), _jsx(MessageTime, { at: entry.at, format: formatTime, dated: !dayLabels })] })) }))] }, entry.id));
|
|
428
|
+
}
|
|
429
|
+
}
|
|
430
|
+
/** A day's heading in a thread that runs over days: Today, Yesterday, or the date. */
|
|
431
|
+
function DayLabel({ at }) {
|
|
432
|
+
const { labels, formatDate } = useCiridaeLocale();
|
|
433
|
+
return (_jsx(ChatSystemLine, { role: "separator", className: dayLabel, children: isToday(at)
|
|
434
|
+
? labels.dates.today
|
|
435
|
+
: isYesterday(at)
|
|
436
|
+
? labels.dates.yesterday
|
|
437
|
+
: formatDate(at, { weekday: "long", month: "short", day: "numeric" }) }));
|
|
438
|
+
}
|
|
439
|
+
/** Prompts to start a conversation from, stacked at the foot of an empty thread. */
|
|
440
|
+
export function ChatSuggestions({ suggestions, onSelect, className }) {
|
|
441
|
+
return (_jsx("div", { className: cx(suggestionList, className), "data-ciridae-ui": "", children: suggestions.map((text) => (_jsx("button", { type: "button", className: suggestion, onClick: () => onSelect(text), children: text }, text))) }));
|
|
442
|
+
}
|
|
443
|
+
function AttachmentTiles({ attachments }) {
|
|
444
|
+
const { labels } = useCiridaeLocale();
|
|
445
|
+
const [open, setOpen] = useState(null);
|
|
446
|
+
// The files the lightbox can show, in the message's order: those the service has a link for.
|
|
447
|
+
const viewable = attachments.flatMap((attachment) => attachment.url ? [{ ...attachment, url: attachment.url }] : []);
|
|
448
|
+
return (_jsxs("span", { className: attachmentTiles, children: [attachments.map((attachment) => {
|
|
449
|
+
const image = attachment.url && attachment.mediaType?.startsWith("image/");
|
|
450
|
+
const content = image ? (_jsx("img", { src: attachment.url ?? undefined, alt: attachment.name })) : (_jsxs(_Fragment, { children: [fileTypeIcon({ name: attachment.name, type: attachment.mediaType ?? "" }), _jsx("span", { children: attachment.name })] }));
|
|
451
|
+
const index = viewable.findIndex((item) => item.id === attachment.id);
|
|
452
|
+
return index >= 0 ? (_jsx("button", { type: "button", className: fileSquare, "data-image": image || undefined, "aria-label": labels.lightbox.preview(attachment.name), title: attachment.name, onClick: () => setOpen(index), children: content }, attachment.id)) : (_jsx("span", { className: fileSquare, title: attachment.name, children: content }, attachment.id));
|
|
453
|
+
}), _jsx(Lightbox, { items: viewable, index: open, onIndexChange: setOpen })] }));
|
|
454
|
+
}
|
|
455
|
+
function ThreadEntryContent({ entry, side, groupPosition, renderCustom, attachmentTiles: tiles, }) {
|
|
456
|
+
const { labels } = useCiridaeLocale();
|
|
457
|
+
switch (entry.kind) {
|
|
458
|
+
case "message":
|
|
459
|
+
return (_jsxs(ChatBubble, { side: side, groupPosition: groupPosition, "aria-busy": entry.sending || undefined, children: [entry.body, !tiles && entry.attachments && entry.attachments.length > 0 && (_jsx("span", { className: attachmentList, children: entry.attachments.map((attachment) => attachment.url ? (_jsx("a", { href: attachment.url, target: "_blank", rel: "noreferrer", children: attachment.name }, attachment.id)) : (_jsx("span", { children: attachment.name }, attachment.id))) }))] }));
|
|
460
|
+
case "typing":
|
|
461
|
+
return (_jsxs(ChatBubble, { side: side, groupPosition: groupPosition, className: typingBubble, role: "status", "aria-label": labels.chat.typing, children: [entry.label, _jsx(ChatTypingDots, {})] }));
|
|
462
|
+
case "failure":
|
|
463
|
+
return (_jsxs(ChatBubble, { side: side, groupPosition: groupPosition, className: errorBubble, role: "alert", children: [entry.message, _jsx(Button, { variant: "ghost", icon: _jsx(ArrowClockwiseIcon, { className: icon({ size: "small" }) }), onClick: entry.onRetry, children: "Retry" })] }));
|
|
464
|
+
case "custom":
|
|
465
|
+
return renderCustom?.(entry.data);
|
|
466
|
+
}
|
|
467
|
+
}
|
|
468
|
+
/** The side an entry sits on: typing and failures are the assistant's. */
|
|
469
|
+
function entrySide(entry) {
|
|
470
|
+
return entry.kind === "message" || entry.kind === "custom" ? entry.side : "assistant";
|
|
471
|
+
}
|
|
472
|
+
/* A message's time, which turns into its clock time while hovered. */
|
|
473
|
+
const messageTime = css({
|
|
474
|
+
"& > [data-exact]": { display: "none" },
|
|
475
|
+
"&:hover:has(> [data-exact]) > [data-shown]": { display: "none" },
|
|
476
|
+
"&:hover > [data-exact]": { display: "inline" },
|
|
477
|
+
});
|
|
478
|
+
/** How recent a message is still timed relative to now ("5m"), rather than by the clock. */
|
|
479
|
+
const relativeTimeWindowMs = 2 * 60 * 60 * 1000;
|
|
480
|
+
/* One minute clock every thread's times share, running while any is drawn. */
|
|
481
|
+
let minuteNow = Date.now();
|
|
482
|
+
const minuteListeners = new Set();
|
|
483
|
+
let minuteTimer = null;
|
|
484
|
+
function subscribeToMinute(listener) {
|
|
485
|
+
minuteListeners.add(listener);
|
|
486
|
+
// The clock may have stood still while nothing drew a time; React reads it again on subscribe.
|
|
487
|
+
if (!minuteTimer)
|
|
488
|
+
minuteNow = Date.now();
|
|
489
|
+
minuteTimer ?? (minuteTimer = setInterval(() => {
|
|
490
|
+
minuteNow = Date.now();
|
|
491
|
+
for (const each of minuteListeners)
|
|
492
|
+
each();
|
|
493
|
+
}, 60000));
|
|
494
|
+
return () => {
|
|
495
|
+
minuteListeners.delete(listener);
|
|
496
|
+
if (minuteListeners.size > 0 || !minuteTimer)
|
|
497
|
+
return;
|
|
498
|
+
clearInterval(minuteTimer);
|
|
499
|
+
minuteTimer = null;
|
|
500
|
+
};
|
|
501
|
+
}
|
|
502
|
+
function useMinuteNow() {
|
|
503
|
+
return useSyncExternalStore(subscribeToMinute, () => minuteNow, () => minuteNow);
|
|
504
|
+
}
|
|
505
|
+
/**
|
|
506
|
+
* Under two hours old, how long ago ("now", "5m", "1h 20m"); then the time of day, with the date
|
|
507
|
+
* before it when `dated` and the message is not from today. The exact time is its title.
|
|
508
|
+
*/
|
|
509
|
+
function MessageTime({ at, format: formatAt, dated, }) {
|
|
510
|
+
const { formatDateTime, formatTime, formatRelative, formatNumber } = useCiridaeLocale();
|
|
511
|
+
const age = useMinuteNow() - at;
|
|
512
|
+
const narrow = (value, unit) => formatNumber(value, { style: "unit", unit, unitDisplay: "narrow" });
|
|
513
|
+
const minutes = Math.floor(age / 60000);
|
|
514
|
+
const hours = Math.floor(minutes / 60);
|
|
515
|
+
// The clock time, with its date once it is not today: what a short or relative time turns
|
|
516
|
+
// into on hover.
|
|
517
|
+
const exact = isToday(at)
|
|
518
|
+
? formatTime(at)
|
|
519
|
+
: formatDateTime(at, { month: "short", day: "numeric", hour: "numeric", minute: "2-digit" });
|
|
520
|
+
const text = formatAt
|
|
521
|
+
? formatAt(at)
|
|
522
|
+
: age < 60000
|
|
523
|
+
? formatRelative(at, at)
|
|
524
|
+
: age < relativeTimeWindowMs
|
|
525
|
+
? [hours > 0 && narrow(hours, "hour"), minutes % 60 > 0 && narrow(minutes % 60, "minute")]
|
|
526
|
+
.filter(Boolean)
|
|
527
|
+
.join(" ")
|
|
528
|
+
: dated && !isToday(at)
|
|
529
|
+
? formatDateTime(at, {
|
|
530
|
+
month: "short",
|
|
531
|
+
day: "numeric",
|
|
532
|
+
hour: "numeric",
|
|
533
|
+
minute: "2-digit",
|
|
534
|
+
})
|
|
535
|
+
: formatTime(at);
|
|
536
|
+
return (_jsxs("time", { dateTime: new Date(at).toISOString(), className: messageTime, children: [_jsx("span", { "data-shown": "", children: text }), exact !== text && _jsx("span", { "data-exact": "", children: exact })] }));
|
|
537
|
+
}
|
|
538
|
+
function findScrollContainer(element) {
|
|
539
|
+
for (let node = element; node; node = node.parentElement) {
|
|
540
|
+
const { overflowY } = getComputedStyle(node);
|
|
541
|
+
if (overflowY === "auto" || overflowY === "scroll")
|
|
542
|
+
return node;
|
|
543
|
+
}
|
|
544
|
+
return null;
|
|
545
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Checkbox as BaseCheckbox } from "@base-ui/react/checkbox";
|
|
2
|
+
import type { ComponentProps, ReactNode } from "react";
|
|
3
|
+
export type CheckboxItemProps = Omit<ComponentProps<typeof BaseCheckbox.Root>, "children" | "className"> & {
|
|
4
|
+
children: ReactNode;
|
|
5
|
+
/** Shown muted at the row's end, such as where the item comes from. */
|
|
6
|
+
meta?: ReactNode;
|
|
7
|
+
/** Shows a drag handle on hover, for a row that can be reordered. */
|
|
8
|
+
grip?: boolean;
|
|
9
|
+
className?: string;
|
|
10
|
+
};
|
|
11
|
+
export declare function CheckboxItem({ children, meta, grip: showGrip, className, ...props }: CheckboxItemProps): import("@types/react").JSX.Element;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Checkbox as BaseCheckbox } from "@base-ui/react/checkbox";
|
|
3
|
+
import { CheckIcon, DotsSixVerticalIcon, MinusIcon } from "@phosphor-icons/react";
|
|
4
|
+
import { css, cx } from "#primitives/css";
|
|
5
|
+
import { checkIndicator, checkMark } from "./form-controls.js";
|
|
6
|
+
import { icon } from "./icon.js";
|
|
7
|
+
/*
|
|
8
|
+
* A checkbox as a whole row: the mark, its label, and what else the row has to say, with the hover
|
|
9
|
+
* wash and the focus ring on the row rather than on the mark. For a list whose rows are ticked or
|
|
10
|
+
* reordered, where `Checkbox` alone is for one choice inside a form.
|
|
11
|
+
*/
|
|
12
|
+
const row = css({
|
|
13
|
+
display: "flex",
|
|
14
|
+
alignItems: "center",
|
|
15
|
+
gap: "layout.controlGap",
|
|
16
|
+
minHeight: "control.row",
|
|
17
|
+
paddingInline: "control.block",
|
|
18
|
+
borderRadius: "control",
|
|
19
|
+
color: "fg.primary",
|
|
20
|
+
fontSize: "body",
|
|
21
|
+
fontWeight: "medium",
|
|
22
|
+
letterSpacing: "compact",
|
|
23
|
+
cursor: "pointer",
|
|
24
|
+
transitionProperty: "background",
|
|
25
|
+
transitionDuration: "fast",
|
|
26
|
+
_hover: { background: "bg.glass" },
|
|
27
|
+
"&:has(:focus-visible)": { focusRing: "outer" },
|
|
28
|
+
"&:has([data-disabled])": { opacity: "disabled", cursor: "not-allowed" },
|
|
29
|
+
});
|
|
30
|
+
// The grip only shows once the row is pointed at, so a list of rows is not a column of grips.
|
|
31
|
+
const grip = css({
|
|
32
|
+
display: "inline-flex",
|
|
33
|
+
flexShrink: "0",
|
|
34
|
+
color: "fg.muted",
|
|
35
|
+
cursor: "grab",
|
|
36
|
+
opacity: "0",
|
|
37
|
+
transitionProperty: "opacity",
|
|
38
|
+
transitionDuration: "fast",
|
|
39
|
+
"label:hover > &, label:focus-within > &": { opacity: "1" },
|
|
40
|
+
});
|
|
41
|
+
const labelText = css({ flex: "1", minWidth: "0" });
|
|
42
|
+
const metaText = css({ flexShrink: "0", color: "fg.subtle", fontSize: "code" });
|
|
43
|
+
export function CheckboxItem({ children, meta, grip: showGrip, className, ...props }) {
|
|
44
|
+
return (_jsxs("label", { className: cx(row, className), "data-ciridae-ui": "", children: [showGrip && (_jsx("span", { className: grip, "aria-hidden": "true", children: _jsx(DotsSixVerticalIcon, { className: icon({ size: "small" }) }) })), _jsx(BaseCheckbox.Root, { ...props, className: checkMark({ focus: "row" }), children: _jsx(BaseCheckbox.Indicator, { className: checkIndicator, children: props.indeterminate ? _jsx(MinusIcon, { weight: "bold" }) : _jsx(CheckIcon, { weight: "bold" }) }) }), _jsx("span", { className: labelText, children: children }), meta !== undefined && _jsx("span", { className: metaText, children: meta })] }));
|
|
45
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { type ReactNode } from "react";
|
|
2
|
+
import { type CiridaeLabels } from "./locale.js";
|
|
3
|
+
export type CheckboxListItem = {
|
|
4
|
+
key: string;
|
|
5
|
+
label: ReactNode;
|
|
6
|
+
detail?: ReactNode;
|
|
7
|
+
/**
|
|
8
|
+
* Supporting content under the row, such as what the item does. It sits outside the checkbox's
|
|
9
|
+
* label, so it can hold its own controls and does not become part of the checkbox's name.
|
|
10
|
+
*/
|
|
11
|
+
description?: ReactNode;
|
|
12
|
+
/** Items sharing a group `key` are listed under one `label` heading that ticks them all. */
|
|
13
|
+
group?: {
|
|
14
|
+
key: string;
|
|
15
|
+
label: string;
|
|
16
|
+
};
|
|
17
|
+
/** What a search finds the item by, such as its name and description; defaults to a text `label`. */
|
|
18
|
+
searchText?: readonly (string | null | undefined)[];
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* What a checklist shows: skeleton lines while its items load, a muted line in place of the list
|
|
22
|
+
* when they cannot be had, or the items with what to say when none are listed.
|
|
23
|
+
*/
|
|
24
|
+
export type CheckboxListProps = {
|
|
25
|
+
state: "loading";
|
|
26
|
+
} | {
|
|
27
|
+
state: "unavailable";
|
|
28
|
+
message: ReactNode;
|
|
29
|
+
} | {
|
|
30
|
+
state: "listed";
|
|
31
|
+
items: readonly CheckboxListItem[];
|
|
32
|
+
/** Shown in place of the list when `items` is empty, such as why a search matched nothing. */
|
|
33
|
+
emptyMessage: ReactNode;
|
|
34
|
+
selectedKeys: ReadonlySet<string>;
|
|
35
|
+
onChange: (keys: Set<string>) => void;
|
|
36
|
+
/** Shows the items but lets none change, such as while a form saves. */
|
|
37
|
+
disabled: boolean;
|
|
38
|
+
/** Offers a search over the items' `searchText` once at least this many are listed. */
|
|
39
|
+
searchFrom?: number;
|
|
40
|
+
/** Select all and Clear for the items shown, beside how many of all of them are ticked. */
|
|
41
|
+
bulkActions?: boolean;
|
|
42
|
+
labels?: Partial<CiridaeLabels["checklist"]>;
|
|
43
|
+
};
|
|
44
|
+
/**
|
|
45
|
+
* A list ticked item by item, each with an optional trailing detail and description, that scrolls
|
|
46
|
+
* inside a bounded height and shades its edges while more rows are out of view. Items with a
|
|
47
|
+
* `group` are listed under a heading, in order of first appearance, whose checkbox ticks the whole
|
|
48
|
+
* group. A long list can take a search, and bulk actions that touch only the items it leaves shown,
|
|
49
|
+
* so nothing is ticked or cleared out of sight.
|
|
50
|
+
*/
|
|
51
|
+
export declare function CheckboxList(props: CheckboxListProps): import("@types/react").JSX.Element;
|