@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,136 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { CheckIcon, CopyIcon } from "@phosphor-icons/react";
|
|
3
|
+
import { useEffect, useRef, useState } from "react";
|
|
4
|
+
import { css, cx } from "#primitives/css";
|
|
5
|
+
import { IconButton } from "./button.js";
|
|
6
|
+
import { icon } from "./icon.js";
|
|
7
|
+
import { useCiridaeLocale } from "./locale.js";
|
|
8
|
+
const copyableId = css({
|
|
9
|
+
display: "inline-flex",
|
|
10
|
+
alignItems: "center",
|
|
11
|
+
gap: "control.iconGap",
|
|
12
|
+
padding: "none",
|
|
13
|
+
border: "0",
|
|
14
|
+
background: "transparent",
|
|
15
|
+
color: "fg.muted",
|
|
16
|
+
fontSize: "caption",
|
|
17
|
+
cursor: "pointer",
|
|
18
|
+
"& > code": { fontFamily: "numeric", color: "fg.primary" },
|
|
19
|
+
_hover: { "& > code": { textDecoration: "underline" } },
|
|
20
|
+
_focusVisible: { focusRing: "outer" },
|
|
21
|
+
});
|
|
22
|
+
const shownLength = 8;
|
|
23
|
+
const copiedFeedbackMs = 1500;
|
|
24
|
+
/**
|
|
25
|
+
* Copies `value` (or what it returns, read at the moment of copying) and reports `copied` for a
|
|
26
|
+
* moment afterwards, for a check-mark confirmation.
|
|
27
|
+
*/
|
|
28
|
+
export function useCopy(value, onCopied) {
|
|
29
|
+
const [copied, setCopied] = useState(false);
|
|
30
|
+
useEffect(() => {
|
|
31
|
+
if (!copied)
|
|
32
|
+
return;
|
|
33
|
+
const timer = setTimeout(() => setCopied(false), copiedFeedbackMs);
|
|
34
|
+
return () => clearTimeout(timer);
|
|
35
|
+
}, [copied]);
|
|
36
|
+
const copy = () => void navigator.clipboard.writeText(typeof value === "function" ? value() : value).then(() => {
|
|
37
|
+
setCopied(true);
|
|
38
|
+
onCopied?.();
|
|
39
|
+
});
|
|
40
|
+
return { copied, copy };
|
|
41
|
+
}
|
|
42
|
+
const inlineCopy = css({
|
|
43
|
+
display: "inline-flex",
|
|
44
|
+
alignItems: "center",
|
|
45
|
+
padding: "none",
|
|
46
|
+
border: "0",
|
|
47
|
+
background: "transparent",
|
|
48
|
+
color: "inherit",
|
|
49
|
+
cursor: "pointer",
|
|
50
|
+
_hover: { color: "fg.primary" },
|
|
51
|
+
_focusVisible: { focusRing: "outer", borderRadius: "control" },
|
|
52
|
+
});
|
|
53
|
+
/** A button that copies `value`, its icon turning into a check once copied. */
|
|
54
|
+
export function CopyButton({ value, label, variant = "raised", size, onCopied, className, }) {
|
|
55
|
+
const { copied, copy } = useCopy(value, onCopied);
|
|
56
|
+
const { labels } = useCiridaeLocale();
|
|
57
|
+
const name = copied
|
|
58
|
+
? labels.common.copied
|
|
59
|
+
: label === undefined
|
|
60
|
+
? labels.common.copyAction
|
|
61
|
+
: labels.common.copy(label);
|
|
62
|
+
const Icon = copied ? CheckIcon : CopyIcon;
|
|
63
|
+
if (variant === "inline") {
|
|
64
|
+
return (_jsx("button", { type: "button", className: cx(inlineCopy, className), "aria-label": name, "data-ciridae-ui": "", onClick: copy, children: _jsx(Icon, { className: icon({ size: "compact" }) }) }));
|
|
65
|
+
}
|
|
66
|
+
return (_jsx(IconButton, { "aria-label": name, className: className, size: size, variant: variant, onClick: copy, children: _jsx(Icon, { className: icon({ size: "small" }) }) }));
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* A long identifier, such as an error's trace ID, shown short and copied whole on click so a
|
|
70
|
+
* reader can hand it to support.
|
|
71
|
+
*/
|
|
72
|
+
export function CopyableId({ value, label = "ID", className, }) {
|
|
73
|
+
const { copied, copy } = useCopy(value);
|
|
74
|
+
const { labels } = useCiridaeLocale();
|
|
75
|
+
return (_jsxs("button", { type: "button", className: cx(copyableId, className), title: value, "aria-label": labels.common.copyValue(label, value), "data-ciridae-ui": "", onClick: copy, children: [label, _jsx("code", { children: value.slice(0, shownLength) }), copied ? (_jsx(CheckIcon, { className: icon({ size: "small" }) })) : (_jsx(CopyIcon, { className: icon({ size: "small" }) }))] }));
|
|
76
|
+
}
|
|
77
|
+
// The copy control shows while the text is hovered or focused and turns into a check once copied;
|
|
78
|
+
// hidden, it takes no room, so the text keeps the whole width. Text wider than its box (set its
|
|
79
|
+
// `maxWidth` through `className`) scrolls on hover to show the rest, then slides back.
|
|
80
|
+
const copyableText = css({
|
|
81
|
+
display: "flex",
|
|
82
|
+
alignItems: "center",
|
|
83
|
+
minWidth: "0",
|
|
84
|
+
"&:hover > button, &:focus-within > button, & > button[data-copied]": {
|
|
85
|
+
width: "auto",
|
|
86
|
+
marginInlineStart: "control.iconGap",
|
|
87
|
+
opacity: "1",
|
|
88
|
+
},
|
|
89
|
+
"&:hover > span > span": {
|
|
90
|
+
transform: "translateX(calc(var(--marquee-shift, 0px) * -1))",
|
|
91
|
+
},
|
|
92
|
+
});
|
|
93
|
+
const marqueeBox = css({
|
|
94
|
+
display: "block",
|
|
95
|
+
minWidth: "0",
|
|
96
|
+
overflow: "hidden",
|
|
97
|
+
whiteSpace: "nowrap",
|
|
98
|
+
"& > span": {
|
|
99
|
+
display: "inline-block",
|
|
100
|
+
transitionProperty: "transform",
|
|
101
|
+
transitionTimingFunction: "linear",
|
|
102
|
+
transitionDuration: "var(--marquee-duration, 0s)",
|
|
103
|
+
},
|
|
104
|
+
_motionReduce: { "& > span": { transitionDuration: "0s" } },
|
|
105
|
+
});
|
|
106
|
+
const copyTextButton = css({
|
|
107
|
+
display: "inline-flex",
|
|
108
|
+
flexShrink: "0",
|
|
109
|
+
padding: "none",
|
|
110
|
+
border: "0",
|
|
111
|
+
background: "transparent",
|
|
112
|
+
color: "fg.muted",
|
|
113
|
+
cursor: "pointer",
|
|
114
|
+
width: "0",
|
|
115
|
+
overflow: "hidden",
|
|
116
|
+
opacity: "0",
|
|
117
|
+
_hover: { color: "fg.primary" },
|
|
118
|
+
_focusVisible: { focusRing: "outer" },
|
|
119
|
+
});
|
|
120
|
+
/** Scroll speed of overflowing text, in pixels per second. */
|
|
121
|
+
const marqueeSpeed = 60;
|
|
122
|
+
/** Text shown in full with a copy control; `label` names what gets copied, such as a key's name. */
|
|
123
|
+
export function CopyableText({ text, label, className, }) {
|
|
124
|
+
const box = useRef(null);
|
|
125
|
+
const { copied, copy } = useCopy(text);
|
|
126
|
+
const { labels } = useCiridaeLocale();
|
|
127
|
+
const measureOverflow = () => {
|
|
128
|
+
const element = box.current;
|
|
129
|
+
if (!element)
|
|
130
|
+
return;
|
|
131
|
+
const overflow = Math.max(element.scrollWidth - element.clientWidth, 0);
|
|
132
|
+
element.style.setProperty("--marquee-shift", `${overflow}px`);
|
|
133
|
+
element.style.setProperty("--marquee-duration", `${overflow / marqueeSpeed}s`);
|
|
134
|
+
};
|
|
135
|
+
return (_jsxs("span", { className: copyableText, "data-ciridae-ui": "", onMouseEnter: measureOverflow, children: [_jsx("span", { ref: box, className: cx(marqueeBox, className), title: text, children: _jsx("span", { children: text }) }), _jsx("button", { type: "button", className: copyTextButton, "aria-label": labels.common.copy(label), "data-copied": copied || undefined, onClick: copy, children: copied ? (_jsx(CheckIcon, { className: icon({ size: "small" }) })) : (_jsx(CopyIcon, { className: icon({ size: "small" }) })) })] }));
|
|
136
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { Separator as BaseSeparator } from "@base-ui/react/separator";
|
|
2
|
+
import type { ComponentProps, ReactNode } from "react";
|
|
3
|
+
export type AvatarColor = "neutral" | "blue" | "violet" | "green" | "teal" | "yellow" | "orange" | "pink" | "red";
|
|
4
|
+
/** 12, 16, 20, 24, 26, 32, and 44 pixels; the Round 2 set is `menu` through `large`. */
|
|
5
|
+
export type AvatarSize = "micro" | "mark" | "small" | "menu" | "row" | "medium" | "large";
|
|
6
|
+
/**
|
|
7
|
+
* The one mark for a person, an organization, a project, or the agent: `src` shows the photo or
|
|
8
|
+
* logo, and the initials derived from `label` stand in until it loads or when there is none. A
|
|
9
|
+
* `user` is a circle, an `organization` a rounded-square tile lettered with one initial, a
|
|
10
|
+
* `project` a pale tile, and the `agent` a circle with the sparkle. `badge` sits at the
|
|
11
|
+
* bottom-right corner, e.g. a tiny organization avatar on a user.
|
|
12
|
+
*/
|
|
13
|
+
export declare function Avatar({ label, src, size, kind, icon, badge, color, className, ...props }: ComponentProps<"span"> & {
|
|
14
|
+
label: string;
|
|
15
|
+
src?: string | null;
|
|
16
|
+
size?: AvatarSize;
|
|
17
|
+
kind?: "user" | "project" | "organization" | "agent";
|
|
18
|
+
/** A mark in place of initials, for a non-person actor such as a sync or a rule. */
|
|
19
|
+
icon?: ReactNode;
|
|
20
|
+
badge?: ReactNode;
|
|
21
|
+
color?: AvatarColor;
|
|
22
|
+
}): import("@types/react").JSX.Element;
|
|
23
|
+
export declare function Divider({ inset, className, ...props }: Omit<ComponentProps<typeof BaseSeparator>, "className"> & {
|
|
24
|
+
className?: string;
|
|
25
|
+
/** `menu` insets it to a menu's or a popover's rows. */
|
|
26
|
+
inset?: "none" | "menu";
|
|
27
|
+
}): import("@types/react").JSX.Element;
|
|
28
|
+
export type DescriptionRow = [label: string, value: ReactNode];
|
|
29
|
+
/**
|
|
30
|
+
* Label-value pairs in two columns. Rows whose value is `null` or `undefined` are left out, so
|
|
31
|
+
* callers can list every field a record may carry. `compact` tightens the rows for dense output.
|
|
32
|
+
* `loading` keeps every row's label and draws a placeholder for its value, so the list arrives at
|
|
33
|
+
* the size it loads to; build the rows from the record that may not have loaded yet.
|
|
34
|
+
*/
|
|
35
|
+
export declare function DescriptionList({ rows, density, loading, className, ...props }: ComponentProps<"dl"> & {
|
|
36
|
+
rows: DescriptionRow[];
|
|
37
|
+
density?: "default" | "compact";
|
|
38
|
+
loading?: boolean;
|
|
39
|
+
}): import("@types/react").JSX.Element;
|
|
40
|
+
/**
|
|
41
|
+
* Scrollable block of literal text, such as a command or a generated file. `copy` adds a copy
|
|
42
|
+
* button with that text, which can differ from what is shown (e.g. masked secrets).
|
|
43
|
+
*/
|
|
44
|
+
export declare function CodeBlock({ className, copy, copyLabel, ...props }: ComponentProps<"pre"> & {
|
|
45
|
+
copy?: string;
|
|
46
|
+
copyLabel?: string;
|
|
47
|
+
}): import("@types/react").JSX.Element;
|
|
@@ -0,0 +1,221 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Avatar as BaseAvatar } from "@base-ui/react/avatar";
|
|
3
|
+
import { Separator as BaseSeparator } from "@base-ui/react/separator";
|
|
4
|
+
import { SparkleIcon } from "@phosphor-icons/react";
|
|
5
|
+
import { Fragment } from "react";
|
|
6
|
+
import { css, cva, cx } from "#primitives/css";
|
|
7
|
+
import { CopyButton } from "./copyable-id.js";
|
|
8
|
+
import { Skeleton } from "./skeleton.js";
|
|
9
|
+
// The neutral avatar is the Round 2 one: a person or the agent on the raised glass face, an
|
|
10
|
+
// organization as the text-colored tile the workspace switcher shows. A colored one derives its
|
|
11
|
+
// fill, text, and border from one `--avatar-hue`, mixed toward the surface or the text color so it
|
|
12
|
+
// holds in both themes. The hues are brighter than the accent tokens so avatars read apart.
|
|
13
|
+
const avatar = css({
|
|
14
|
+
display: "inline-grid",
|
|
15
|
+
placeItems: "center",
|
|
16
|
+
flexShrink: "0",
|
|
17
|
+
width: "control.compact",
|
|
18
|
+
height: "control.compact",
|
|
19
|
+
// Every variant keeps a 1px border in its box, so the glass ring never shifts the initials.
|
|
20
|
+
border: "1px solid transparent",
|
|
21
|
+
fontSize: "code",
|
|
22
|
+
fontWeight: "medium",
|
|
23
|
+
lineHeight: "tight",
|
|
24
|
+
position: "relative",
|
|
25
|
+
// Each hue is the palette's: an accent, or the mix of two for the hues a palette has no accent
|
|
26
|
+
// for, so avatars follow whichever palette the product picked.
|
|
27
|
+
"&[data-color=blue]": { "--avatar-hue": "token(colors.accent.blue)" },
|
|
28
|
+
"&[data-color=violet]": {
|
|
29
|
+
"--avatar-hue": "color-mix(in oklch, token(colors.accent.blue) 55%, token(colors.accent.red))",
|
|
30
|
+
},
|
|
31
|
+
"&[data-color=green]": { "--avatar-hue": "token(colors.accent.green)" },
|
|
32
|
+
"&[data-color=teal]": {
|
|
33
|
+
"--avatar-hue": "color-mix(in oklch, token(colors.accent.green) 55%, token(colors.accent.blue))",
|
|
34
|
+
},
|
|
35
|
+
"&[data-color=yellow]": { "--avatar-hue": "token(colors.accent.yellow)" },
|
|
36
|
+
"&[data-color=orange]": { "--avatar-hue": "token(colors.accent.bronze)" },
|
|
37
|
+
"&[data-color=pink]": {
|
|
38
|
+
"--avatar-hue": "color-mix(in oklch, token(colors.accent.red) 60%, token(colors.accent.brand))",
|
|
39
|
+
},
|
|
40
|
+
"&[data-color=red]": { "--avatar-hue": "token(colors.accent.red)" },
|
|
41
|
+
// A person, or the agent: a circle on the glass face, or a pale circle in its hue.
|
|
42
|
+
"&[data-kind=user], &[data-kind=agent]": {
|
|
43
|
+
borderRadius: "round",
|
|
44
|
+
background: "bg.raised",
|
|
45
|
+
color: "fg.primary",
|
|
46
|
+
},
|
|
47
|
+
"&[data-kind=agent], &[data-icon]": { color: "fg.secondary" },
|
|
48
|
+
// An icon fills the same share of every size, so marks match whatever avatar they sit beside.
|
|
49
|
+
"&:is([data-kind=agent], [data-icon]) svg": { width: "58%", height: "58%" },
|
|
50
|
+
// An icon stands on its own, with no circle or ring, so it fills most of its box.
|
|
51
|
+
"&[data-icon]": { background: "transparent", "& svg": { width: "80%", height: "80%" } },
|
|
52
|
+
"&:is([data-kind=user], [data-kind=agent]):not([data-color=neutral])": {
|
|
53
|
+
borderColor: "color-mix(in srgb, var(--avatar-hue) 30%, token(colors.bg.card))",
|
|
54
|
+
background: "color-mix(in srgb, var(--avatar-hue) 16%, token(colors.bg.card))",
|
|
55
|
+
color: "color-mix(in srgb, var(--avatar-hue) 70%, token(colors.fg.primary))",
|
|
56
|
+
},
|
|
57
|
+
// A project: a pale tile edged and lettered in the hue's strong shade.
|
|
58
|
+
"&[data-kind=project]": {
|
|
59
|
+
borderRadius: "20%",
|
|
60
|
+
borderColor: "color-mix(in srgb, var(--avatar-hue) 70%, token(colors.bg.card))",
|
|
61
|
+
background: "color-mix(in srgb, var(--avatar-hue) 14%, token(colors.bg.card))",
|
|
62
|
+
color: "color-mix(in srgb, var(--avatar-hue) 75%, token(colors.fg.primary))",
|
|
63
|
+
fontWeight: "semibold",
|
|
64
|
+
},
|
|
65
|
+
"&[data-kind=project][data-color=neutral]": { "--avatar-hue": "token(colors.fg.muted)" },
|
|
66
|
+
// An organization's logo: a squircle tile, in the text color or in its hue, bold enough to anchor
|
|
67
|
+
// a person or project. Its radius scales with the box, so even a micro badge never turns round.
|
|
68
|
+
"&[data-kind=organization]": {
|
|
69
|
+
borderRadius: "28%",
|
|
70
|
+
background: "fg.primary",
|
|
71
|
+
color: "bg.canvas",
|
|
72
|
+
fontWeight: "semibold",
|
|
73
|
+
},
|
|
74
|
+
"&[data-kind=organization]:not([data-color=neutral])": {
|
|
75
|
+
borderColor: "color-mix(in srgb, var(--avatar-hue) 75%, black)",
|
|
76
|
+
background: "var(--avatar-hue)",
|
|
77
|
+
color: "white",
|
|
78
|
+
},
|
|
79
|
+
// A photo fills the whole box: the fill and edge behind it would show as a ring around it.
|
|
80
|
+
"&[data-kind]:has(img)": { border: "0", background: "transparent" },
|
|
81
|
+
"&[data-size=large]": {
|
|
82
|
+
width: "avatar.large",
|
|
83
|
+
height: "avatar.large",
|
|
84
|
+
fontSize: "heading",
|
|
85
|
+
},
|
|
86
|
+
// A list row's owner, and the workspace switcher's mark.
|
|
87
|
+
"&[data-size=row]": { width: "avatar.row", height: "avatar.row" },
|
|
88
|
+
// A menu item's leading avatar.
|
|
89
|
+
"&[data-size=menu]": { width: "avatar.menu", height: "avatar.menu" },
|
|
90
|
+
"&[data-size=small]": { width: "avatar.small", height: "avatar.small", fontSize: "avatar.small" },
|
|
91
|
+
// The inline mark's size, so a project's tile lines up with icons and provider logos.
|
|
92
|
+
"&[data-size=mark]": { width: "mark.inline", height: "mark.inline", fontSize: "avatar.mark" },
|
|
93
|
+
// Sized to sit in another avatar's corner without covering its initials.
|
|
94
|
+
"&[data-size=micro]": { width: "avatar.micro", height: "avatar.micro", fontSize: "avatar.micro" },
|
|
95
|
+
});
|
|
96
|
+
// Fills the avatar, so an icon's share of it is measured against the whole box.
|
|
97
|
+
const avatarFallback = css({
|
|
98
|
+
display: "grid",
|
|
99
|
+
placeItems: "center",
|
|
100
|
+
width: "100%",
|
|
101
|
+
height: "100%",
|
|
102
|
+
});
|
|
103
|
+
const avatarImage = css({
|
|
104
|
+
width: "100%",
|
|
105
|
+
height: "100%",
|
|
106
|
+
borderRadius: "inherit",
|
|
107
|
+
objectFit: "cover",
|
|
108
|
+
});
|
|
109
|
+
const avatarBadge = css({
|
|
110
|
+
position: "absolute",
|
|
111
|
+
// Inside the circle: an overhang is clipped by scroll containers such as the compact header.
|
|
112
|
+
insetInlineEnd: "-1px",
|
|
113
|
+
bottom: "-1px",
|
|
114
|
+
display: "inline-flex",
|
|
115
|
+
// The badge separates with its own edge: a ring would have to match every surface the
|
|
116
|
+
// avatar sits on, and its corners never matched the badge's.
|
|
117
|
+
});
|
|
118
|
+
/**
|
|
119
|
+
* The one mark for a person, an organization, a project, or the agent: `src` shows the photo or
|
|
120
|
+
* logo, and the initials derived from `label` stand in until it loads or when there is none. A
|
|
121
|
+
* `user` is a circle, an `organization` a rounded-square tile lettered with one initial, a
|
|
122
|
+
* `project` a pale tile, and the `agent` a circle with the sparkle. `badge` sits at the
|
|
123
|
+
* bottom-right corner, e.g. a tiny organization avatar on a user.
|
|
124
|
+
*/
|
|
125
|
+
export function Avatar({ label, src, size = "medium", kind = "user", icon, badge, color = "neutral", className, ...props }) {
|
|
126
|
+
const initials = labelInitials(label, kind === "organization" ? 1 : 2);
|
|
127
|
+
const glass = !icon && color === "neutral" && (kind === "user" || kind === "agent");
|
|
128
|
+
return (_jsxs(BaseAvatar.Root, { ...props, "aria-label": label, "data-ciridae-ui": "", "data-size": size, "data-kind": kind, "data-color": color, "data-icon": icon ? "" : undefined, "data-edge": glass ? "glass" : undefined, className: cx(avatar, className), children: [src && _jsx(BaseAvatar.Image, { src: src, alt: "", className: avatarImage }), _jsx(BaseAvatar.Fallback, { className: avatarFallback, children: icon ?? (kind === "agent" ? _jsx(SparkleIcon, { weight: "fill" }) : initials) }), badge && _jsx("span", { className: avatarBadge, children: badge })] }));
|
|
129
|
+
}
|
|
130
|
+
/** Up to `count` capital initials from a name's first words. */
|
|
131
|
+
function labelInitials(label, count) {
|
|
132
|
+
return label
|
|
133
|
+
.split(/\s+/)
|
|
134
|
+
.map((part) => part[0])
|
|
135
|
+
.join("")
|
|
136
|
+
.slice(0, count)
|
|
137
|
+
.toUpperCase();
|
|
138
|
+
}
|
|
139
|
+
const divider = cva({
|
|
140
|
+
base: { width: "100%", height: "border.hairline", border: "0", background: "border.subtle" },
|
|
141
|
+
variants: {
|
|
142
|
+
inset: {
|
|
143
|
+
none: {},
|
|
144
|
+
// Between a menu's or a popover's groups: inset to its rows' text, a little room above and
|
|
145
|
+
// below.
|
|
146
|
+
menu: {
|
|
147
|
+
width: "auto",
|
|
148
|
+
marginBlock: "layout.tightGap",
|
|
149
|
+
marginInline: "menu.itemInline",
|
|
150
|
+
background: "border.panel",
|
|
151
|
+
},
|
|
152
|
+
},
|
|
153
|
+
},
|
|
154
|
+
});
|
|
155
|
+
export function Divider({ inset = "none", className, ...props }) {
|
|
156
|
+
return (_jsx(BaseSeparator, { ...props, "data-ciridae-ui": "", className: cx(divider({ inset }), className) }));
|
|
157
|
+
}
|
|
158
|
+
const descriptionList = cva({
|
|
159
|
+
base: {
|
|
160
|
+
display: "grid",
|
|
161
|
+
gridTemplateColumns: "max-content minmax(0, 1fr)",
|
|
162
|
+
margin: "none",
|
|
163
|
+
"& dt": { color: "fg.muted" },
|
|
164
|
+
"& dd": { margin: "none", overflowWrap: "anywhere" },
|
|
165
|
+
"& a": { color: "inherit" },
|
|
166
|
+
},
|
|
167
|
+
variants: {
|
|
168
|
+
density: {
|
|
169
|
+
default: { rowGap: "layout.controlGap", columnGap: "layout.sectionGap" },
|
|
170
|
+
compact: { rowGap: "control.trackInset", columnGap: "layout.clusterGap" },
|
|
171
|
+
},
|
|
172
|
+
},
|
|
173
|
+
});
|
|
174
|
+
const placeholderValueWidths = [96, 120, 144];
|
|
175
|
+
/**
|
|
176
|
+
* Label-value pairs in two columns. Rows whose value is `null` or `undefined` are left out, so
|
|
177
|
+
* callers can list every field a record may carry. `compact` tightens the rows for dense output.
|
|
178
|
+
* `loading` keeps every row's label and draws a placeholder for its value, so the list arrives at
|
|
179
|
+
* the size it loads to; build the rows from the record that may not have loaded yet.
|
|
180
|
+
*/
|
|
181
|
+
export function DescriptionList({ rows, density = "default", loading = false, className, ...props }) {
|
|
182
|
+
return (_jsx("dl", { ...props, "aria-busy": loading || undefined, "data-ciridae-ui": "", className: cx(descriptionList({ density }), className), children: rows.map(([label, value], index) => loading ? (_jsxs(Fragment, { children: [_jsx("dt", { children: label }), _jsx("dd", { children: _jsx(Skeleton, { shape: "text", style: { width: placeholderValueWidths[index % placeholderValueWidths.length] } }) })] }, label)) : value === null || value === undefined ? null : (_jsxs(Fragment, { children: [_jsx("dt", { children: label }), _jsx("dd", { children: value })] }, label))) }));
|
|
183
|
+
}
|
|
184
|
+
const codeBlock = css({
|
|
185
|
+
margin: "none",
|
|
186
|
+
padding: "panel.default",
|
|
187
|
+
maxHeight: "code.maximum",
|
|
188
|
+
overflow: "auto",
|
|
189
|
+
border: "1px solid token(colors.border.control)",
|
|
190
|
+
borderRadius: "field",
|
|
191
|
+
background: "bg.canvas",
|
|
192
|
+
fontFamily: "mono",
|
|
193
|
+
fontSize: "code",
|
|
194
|
+
lineHeight: "body",
|
|
195
|
+
whiteSpace: "pre",
|
|
196
|
+
});
|
|
197
|
+
// The copy button sits in the block's corner outside the scroller, so it stays put while the text
|
|
198
|
+
// scrolls; the text keeps clear of it.
|
|
199
|
+
const codeBlockFrame = css({
|
|
200
|
+
position: "relative",
|
|
201
|
+
minWidth: "0",
|
|
202
|
+
"& > pre": {
|
|
203
|
+
paddingInlineEnd: "calc(token(sizes.control.compact) + token(spacing.panel.default) * 2)",
|
|
204
|
+
},
|
|
205
|
+
});
|
|
206
|
+
const codeBlockCopy = css({
|
|
207
|
+
display: "flex",
|
|
208
|
+
position: "absolute",
|
|
209
|
+
top: "panel.compact",
|
|
210
|
+
insetInlineEnd: "panel.compact",
|
|
211
|
+
});
|
|
212
|
+
/**
|
|
213
|
+
* Scrollable block of literal text, such as a command or a generated file. `copy` adds a copy
|
|
214
|
+
* button with that text, which can differ from what is shown (e.g. masked secrets).
|
|
215
|
+
*/
|
|
216
|
+
export function CodeBlock({ className, copy, copyLabel = "text", ...props }) {
|
|
217
|
+
const block = _jsx("pre", { ...props, "data-ciridae-ui": "", className: cx(codeBlock, className) });
|
|
218
|
+
if (copy === undefined)
|
|
219
|
+
return block;
|
|
220
|
+
return (_jsxs("div", { className: codeBlockFrame, children: [block, _jsx("span", { className: codeBlockCopy, children: _jsx(CopyButton, { value: copy, label: copyLabel }) })] }));
|
|
221
|
+
}
|
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
import { type ColumnHelper, type ColumnOrderState, type ColumnVisibilityState, type RowData, type RowSelectionState, type SortingState } from "@tanstack/react-table";
|
|
2
|
+
import { type ComponentProps, type KeyboardEvent, type MouseEvent, type ReactElement, type ReactNode } from "react";
|
|
3
|
+
import { type FilterField, type FilterValue } from "./filter-bar.js";
|
|
4
|
+
import { type CiridaeLabels } from "./locale.js";
|
|
5
|
+
export type { ColumnOrderState, ColumnVisibilityState, RowSelectionState, SortingState };
|
|
6
|
+
/** Per-column options read by `DataGrid` and `Table`, set as a column's `meta`. */
|
|
7
|
+
export type TableColumnMeta = {
|
|
8
|
+
/** The column's name where its header is not plain text: menus, column settings. */
|
|
9
|
+
label?: string;
|
|
10
|
+
align?: "start" | "end";
|
|
11
|
+
/** A pixel width, or any grid track such as `"minmax(180px, 1fr)"`. */
|
|
12
|
+
width?: number | string;
|
|
13
|
+
/** The least a flexible column needs before the list drops lower-priority columns. */
|
|
14
|
+
minWidth?: number;
|
|
15
|
+
/** Takes the room left over and shrinks with an ellipsis. */
|
|
16
|
+
truncate?: boolean;
|
|
17
|
+
/**
|
|
18
|
+
* Dropped as the list's own width narrows, lowest first, before the list scrolls sideways.
|
|
19
|
+
* Leave it out for a column that always stays.
|
|
20
|
+
*/
|
|
21
|
+
priority?: number;
|
|
22
|
+
/** Once dropped, its cell shows under this column's cell instead of going. */
|
|
23
|
+
foldInto?: string;
|
|
24
|
+
/** Pinned to the start edge while the rest scroll under it; only the first column can pin. */
|
|
25
|
+
sticky?: "start";
|
|
26
|
+
/** The filter the column head's menu sets, for a list with `filters`. */
|
|
27
|
+
filter?: FilterField;
|
|
28
|
+
/** `false` keeps a plain head where the list has `headerMenu`. */
|
|
29
|
+
headerMenu?: boolean;
|
|
30
|
+
/** The column head menu's sort items, such as `["Lowest first", "Highest first"]`. */
|
|
31
|
+
sortLabels?: readonly [ascending: string, descending: string];
|
|
32
|
+
/** Always shown, first, and not movable in column settings or hideable from its head. */
|
|
33
|
+
locked?: boolean;
|
|
34
|
+
/** Holds the row's own link instead of the first column, when the first holds links of its own. */
|
|
35
|
+
rowLink?: boolean;
|
|
36
|
+
skeleton?: ReactNode;
|
|
37
|
+
/** Drops the column on phone-width screens, so the columns that identify a row keep their room. */
|
|
38
|
+
hideOnNarrow?: boolean;
|
|
39
|
+
};
|
|
40
|
+
declare const tableFeatureSet: {
|
|
41
|
+
rowSortingFeature: import("@tanstack/react-table/dist").TableFeature;
|
|
42
|
+
columnVisibilityFeature: import("@tanstack/react-table/dist").TableFeature;
|
|
43
|
+
columnOrderingFeature: import("@tanstack/react-table/dist").TableFeature;
|
|
44
|
+
sortedRowModel: (table: import("@tanstack/react-table/dist").Table<any, any>) => () => import("@tanstack/react-table/dist").RowModel<any, any>;
|
|
45
|
+
columnMeta: TableColumnMeta;
|
|
46
|
+
};
|
|
47
|
+
export type TableFeatureSet = typeof tableFeatureSet;
|
|
48
|
+
/** Columns built with `createTableColumns<Row>().columns([...])`, which erases per-column value types. */
|
|
49
|
+
export type TableColumns<Row extends RowData> = ReturnType<ColumnHelper<TableFeatureSet, Row>["columns"]>;
|
|
50
|
+
/**
|
|
51
|
+
* Column helper bound to the list's features: `accessor` columns sort by their value, `display`
|
|
52
|
+
* columns render without one. See `TableColumnMeta` for the per-column options.
|
|
53
|
+
*/
|
|
54
|
+
export declare function createTableColumns<Row extends RowData>(): ColumnHelper<{
|
|
55
|
+
rowSortingFeature: import("@tanstack/react-table/dist").TableFeature;
|
|
56
|
+
columnVisibilityFeature: import("@tanstack/react-table/dist").TableFeature;
|
|
57
|
+
columnOrderingFeature: import("@tanstack/react-table/dist").TableFeature;
|
|
58
|
+
sortedRowModel: (table: import("@tanstack/react-table/dist").Table<any, any>) => () => import("@tanstack/react-table/dist").RowModel<any, any>;
|
|
59
|
+
columnMeta: TableColumnMeta;
|
|
60
|
+
}, Row>;
|
|
61
|
+
/** A column's id and name as column settings list them. */
|
|
62
|
+
export type DataGridColumnInfo = {
|
|
63
|
+
id: string;
|
|
64
|
+
label: string;
|
|
65
|
+
locked: boolean;
|
|
66
|
+
};
|
|
67
|
+
/** Each column's id, plain-text name and whether it is locked, in definition order. */
|
|
68
|
+
export declare function columnInfoOf<Row extends RowData>(columns: TableColumns<Row>): DataGridColumnInfo[];
|
|
69
|
+
/** A group of rows under one heading, as `renderGroupRow` receives it. */
|
|
70
|
+
export type DataGridGroup<Row> = {
|
|
71
|
+
key: string;
|
|
72
|
+
rows: readonly Row[];
|
|
73
|
+
rowIds: readonly string[];
|
|
74
|
+
/** How much of the group is ticked, for a group checkbox. */
|
|
75
|
+
selected: "all" | "some" | "none";
|
|
76
|
+
toggleSelected: (selected: boolean) => void;
|
|
77
|
+
};
|
|
78
|
+
export type DataGridProps<Row extends RowData> = Omit<ComponentProps<"div">, "children" | "onClick"> & {
|
|
79
|
+
data: readonly Row[];
|
|
80
|
+
columns: TableColumns<Row>;
|
|
81
|
+
getRowId: (row: Row) => string;
|
|
82
|
+
/** `framed` draws the list as a card with sentence-case heads; `plain` sits flush, heads in caps. */
|
|
83
|
+
variant?: "framed" | "plain";
|
|
84
|
+
density?: "default" | "compact";
|
|
85
|
+
sorting?: SortingState;
|
|
86
|
+
defaultSorting?: SortingState;
|
|
87
|
+
onSortingChange?: (sorting: SortingState) => void;
|
|
88
|
+
/** The rows arrive in the order `sorting` asks for, such as from a server. */
|
|
89
|
+
manualSorting?: boolean;
|
|
90
|
+
/** Adds a checkbox column; a function says which rows can be ticked. */
|
|
91
|
+
enableRowSelection?: boolean | ((row: Row) => boolean);
|
|
92
|
+
rowSelection?: RowSelectionState;
|
|
93
|
+
defaultRowSelection?: RowSelectionState;
|
|
94
|
+
onRowSelectionChange?: (rowSelection: RowSelectionState) => void;
|
|
95
|
+
/** Pins the checkbox column while the rest scroll sideways under it. */
|
|
96
|
+
stickySelectColumn?: boolean;
|
|
97
|
+
columnVisibility?: ColumnVisibilityState;
|
|
98
|
+
defaultColumnVisibility?: ColumnVisibilityState;
|
|
99
|
+
onColumnVisibilityChange?: (columnVisibility: ColumnVisibilityState) => void;
|
|
100
|
+
columnOrder?: ColumnOrderState;
|
|
101
|
+
defaultColumnOrder?: ColumnOrderState;
|
|
102
|
+
onColumnOrderChange?: (columnOrder: ColumnOrderState) => void;
|
|
103
|
+
/** A menu on every column head: sort either way, filter by it (with `filters`), hide it. */
|
|
104
|
+
headerMenu?: boolean;
|
|
105
|
+
/** The list's filters, which a column head's "Filter by" edits. */
|
|
106
|
+
filters?: readonly FilterValue[];
|
|
107
|
+
onFiltersChange?: (filters: FilterValue[]) => void;
|
|
108
|
+
/** Where a row leads: its first cell, or the `rowLink` column's, holds a real link. */
|
|
109
|
+
getRowHref?: (row: Row) => string | undefined;
|
|
110
|
+
/** The row link's element, such as a router `<Link to={href} />`. */
|
|
111
|
+
renderRowLink?: (href: string) => ReactElement<ComponentProps<"a">>;
|
|
112
|
+
/** Pressing a row (not one of its controls), or Enter on it; a modified click still follows its link. */
|
|
113
|
+
onRowClick?: (row: Row, event: MouseEvent<HTMLElement> | KeyboardEvent<HTMLElement>) => void;
|
|
114
|
+
/** The row open elsewhere, such as in a side panel; it takes the selected wash. */
|
|
115
|
+
activeRowId?: string | null;
|
|
116
|
+
/**
|
|
117
|
+
* The page's list keys: J / K focus the next or previous row (from the focused or active one),
|
|
118
|
+
* Enter opens it, X ticks it, Shift+X ticks every row from the last one ticked, and Escape
|
|
119
|
+
* clears the ticks. Paused while an overlay is open; one list on a page should take it.
|
|
120
|
+
*/
|
|
121
|
+
keyboardNavigation?: boolean;
|
|
122
|
+
/**
|
|
123
|
+
* Draws only the rows near the view, for a long list: the head, pinned columns, groups and the
|
|
124
|
+
* list keys work as before. A `fill` list scrolls itself; otherwise the nearest scrolling
|
|
125
|
+
* ancestor does.
|
|
126
|
+
*/
|
|
127
|
+
virtualize?: boolean;
|
|
128
|
+
/** A row's own controls, in a fixed end column shown on hover, focus or selection (always on touch). */
|
|
129
|
+
rowActions?: (row: Row) => ReactNode;
|
|
130
|
+
/** A full-width line under a row's cells, such as a warning. */
|
|
131
|
+
renderRowDetail?: (row: Row) => ReactNode;
|
|
132
|
+
/** Rows with the same key list under one heading, in the order the keys first appear. */
|
|
133
|
+
groupBy?: (row: Row) => string;
|
|
134
|
+
renderGroupRow?: (group: DataGridGroup<Row>) => ReactNode;
|
|
135
|
+
/** Keeps the head and shows placeholder rows. */
|
|
136
|
+
loading?: boolean;
|
|
137
|
+
/** Shown when there are no rows at all; `labels.nothingToShow` by default. */
|
|
138
|
+
empty?: ReactNode;
|
|
139
|
+
/** Shown instead of `empty` when filters left nothing; set `filtered` or pass non-empty `filters`. */
|
|
140
|
+
noResults?: ReactNode;
|
|
141
|
+
filtered?: boolean;
|
|
142
|
+
hideHeader?: boolean;
|
|
143
|
+
/** Fill the rest of a flex-column page, scrolling inside with the head pinned. */
|
|
144
|
+
fill?: boolean;
|
|
145
|
+
/** `stacked` lists each row on phones with its first cell on a line of its own and the rest under it. */
|
|
146
|
+
narrowScreenLayout?: "columns" | "stacked";
|
|
147
|
+
/** After the last row, inside the list's scrolling frame, such as a paged list's load-more marker. */
|
|
148
|
+
footer?: ReactNode;
|
|
149
|
+
labels?: Partial<CiridaeLabels["table"]>;
|
|
150
|
+
/** The frame's class; `className` styles the table element inside it. */
|
|
151
|
+
frameClassName?: string;
|
|
152
|
+
};
|
|
153
|
+
/**
|
|
154
|
+
* The list: sortable heads (or a head menu), row selection with a select-all box, hidden and
|
|
155
|
+
* reordered columns, columns that drop by `priority` as the list narrows, row links and presses,
|
|
156
|
+
* hover-revealed row actions, groups, loading, empty and no-results states. `role="table"`; Enter
|
|
157
|
+
* on a pressable row opens it.
|
|
158
|
+
*/
|
|
159
|
+
export declare function DataGrid<Row extends RowData>({ data, columns, getRowId, variant, density, sorting: sortingProp, defaultSorting, onSortingChange, manualSorting, enableRowSelection, rowSelection: rowSelectionProp, defaultRowSelection, onRowSelectionChange, stickySelectColumn, columnVisibility: columnVisibilityProp, defaultColumnVisibility, onColumnVisibilityChange, columnOrder: columnOrderProp, defaultColumnOrder, onColumnOrderChange, headerMenu, filters, onFiltersChange, getRowHref, renderRowLink, onRowClick, activeRowId, keyboardNavigation, virtualize, rowActions, renderRowDetail, groupBy, renderGroupRow, loading, empty, noResults, filtered, hideHeader, fill, narrowScreenLayout, footer, labels: ownLabels, className, frameClassName, style, ...props }: DataGridProps<Row>): import("@types/react").JSX.Element;
|
|
160
|
+
export type TableProps<Row extends RowData> = Omit<DataGridProps<Row>, "defaultSorting" | "empty"> & {
|
|
161
|
+
/** The sort the table starts with; `defaultSorting` on `DataGrid`. */
|
|
162
|
+
initialSorting?: SortingState;
|
|
163
|
+
/** Shown when there are no rows; `empty` on `DataGrid`. */
|
|
164
|
+
emptyMessage?: ReactNode;
|
|
165
|
+
};
|
|
166
|
+
/**
|
|
167
|
+
* `DataGrid` with the plain look: flush with its section, heads in caps, rows that light on hover
|
|
168
|
+
* when they lead somewhere.
|
|
169
|
+
*/
|
|
170
|
+
export declare function Table<Row extends RowData>({ variant, initialSorting, emptyMessage, ...props }: TableProps<Row>): import("@types/react").JSX.Element;
|