@ciridae/ui 0.17.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +17 -12
- package/dist/chat/chat-api-error.d.ts +14 -0
- package/dist/chat/chat-api-error.js +11 -0
- package/dist/chat/chat-client.d.ts +37 -0
- package/dist/chat/chat-client.js +66 -0
- package/dist/chat/chat-hooks.d.ts +4 -0
- package/dist/chat/chat-hooks.js +4 -0
- package/dist/chat/chat-query-keys.d.ts +10 -0
- package/dist/chat/chat-query-keys.js +8 -0
- package/dist/chat/contract.d.ts +488 -0
- package/dist/chat/contract.js +223 -0
- package/dist/chat/conversation-items-query-options.d.ts +382 -0
- package/dist/chat/conversation-items-query-options.js +15 -0
- package/dist/chat/describe-tool-call.d.ts +5 -0
- package/dist/chat/describe-tool-call.js +33 -0
- package/dist/chat/fetch-new-conversation-items.d.ts +10 -0
- package/dist/chat/fetch-new-conversation-items.js +38 -0
- package/dist/chat/message-group-position.d.ts +17 -0
- package/dist/chat/message-group-position.js +25 -0
- package/dist/chat/message-text.d.ts +23 -0
- package/dist/chat/message-text.js +118 -0
- package/dist/chat/mock-chat-client.d.ts +97 -0
- package/dist/chat/mock-chat-client.js +566 -0
- package/dist/chat/use-chat-conversation.d.ts +43 -0
- package/dist/chat/use-chat-conversation.js +156 -0
- package/dist/chat/use-conversation-list.d.ts +32 -0
- package/dist/chat/use-conversation-list.js +19 -0
- package/dist/ciridae.css +60 -479
- package/dist/components/activity-feed.d.ts +80 -0
- package/dist/components/activity-feed.js +373 -0
- package/dist/components/agent-work.d.ts +76 -0
- package/dist/components/agent-work.js +224 -0
- package/dist/components/app-navigation.d.ts +66 -0
- package/dist/components/app-navigation.js +102 -0
- package/dist/components/badge.d.ts +14 -0
- package/dist/components/badge.js +107 -0
- package/dist/components/brand-icons.d.ts +17 -0
- package/dist/components/brand-icons.js +21 -0
- package/dist/components/breakpoint.d.ts +7 -0
- package/dist/components/breakpoint.js +16 -0
- package/dist/components/bulk-action-bar.d.ts +15 -0
- package/dist/components/bulk-action-bar.js +45 -0
- package/dist/components/button.d.ts +52 -0
- package/dist/components/button.js +272 -0
- package/dist/components/calendar.d.ts +14 -0
- package/dist/components/calendar.js +158 -0
- package/dist/components/centered-page.d.ts +21 -0
- package/dist/components/centered-page.js +55 -0
- package/dist/components/chart.d.ts +22 -0
- package/dist/components/chart.js +116 -0
- package/dist/components/chat-page.d.ts +34 -0
- package/dist/components/chat-page.js +171 -0
- package/dist/components/chat-sheet-controller.d.ts +50 -0
- package/dist/components/chat-sheet-controller.js +133 -0
- package/dist/components/chat-sheet.d.ts +80 -0
- package/dist/components/chat-sheet.js +544 -0
- package/dist/components/chat.d.ts +135 -0
- package/dist/components/chat.js +545 -0
- package/dist/components/checkbox-item.d.ts +11 -0
- package/dist/components/checkbox-item.js +45 -0
- package/dist/components/checkbox-list.d.ts +51 -0
- package/dist/components/checkbox-list.js +167 -0
- package/dist/components/chip.d.ts +17 -0
- package/dist/components/chip.js +43 -0
- package/dist/components/collapsible.d.ts +8 -0
- package/dist/components/collapsible.js +41 -0
- package/dist/components/color-theme.d.ts +40 -0
- package/dist/components/color-theme.js +109 -0
- package/dist/components/column-settings.d.ts +22 -0
- package/dist/components/column-settings.js +112 -0
- package/dist/components/command-match.d.ts +7 -0
- package/dist/components/command-match.js +50 -0
- package/dist/components/command-menu.d.ts +43 -0
- package/dist/components/command-menu.js +339 -0
- package/dist/components/command-palette.d.ts +36 -0
- package/dist/components/command-palette.js +77 -0
- package/dist/components/controllable-state.d.ts +5 -0
- package/dist/components/controllable-state.js +15 -0
- package/dist/components/copyable-id.d.ts +37 -0
- package/dist/components/copyable-id.js +136 -0
- package/dist/components/data-display.d.ts +47 -0
- package/dist/components/data-display.js +221 -0
- package/dist/components/data-grid.d.ts +170 -0
- package/dist/components/data-grid.js +829 -0
- package/dist/components/date-range-picker.d.ts +44 -0
- package/dist/components/date-range-picker.js +153 -0
- package/dist/components/date-time.d.ts +11 -0
- package/dist/components/date-time.js +44 -0
- package/dist/components/dialog-height-context.d.ts +2 -0
- package/dist/components/dialog-height-context.js +3 -0
- package/dist/components/document-viewer.d.ts +62 -0
- package/dist/components/document-viewer.js +419 -0
- package/dist/components/drawer.d.ts +44 -0
- package/dist/components/drawer.js +236 -0
- package/dist/components/dropzone.d.ts +47 -0
- package/dist/components/dropzone.js +370 -0
- package/dist/components/editable-field.d.ts +99 -0
- package/dist/components/editable-field.js +422 -0
- package/dist/components/email-input.d.ts +12 -0
- package/dist/components/email-input.js +83 -0
- package/dist/components/environment-frame.d.ts +13 -0
- package/dist/components/environment-frame.js +42 -0
- package/dist/components/expandable-text.d.ts +9 -0
- package/dist/components/expandable-text.js +48 -0
- package/dist/components/feedback-screenshot.d.ts +19 -0
- package/dist/components/feedback-screenshot.js +162 -0
- package/dist/components/feedback-sheet.d.ts +80 -0
- package/dist/components/feedback-sheet.js +475 -0
- package/dist/components/field-context.d.ts +23 -0
- package/dist/components/field-context.js +15 -0
- package/dist/components/filter-bar.d.ts +77 -0
- package/dist/components/filter-bar.js +350 -0
- package/dist/components/form-controls.d.ts +53 -0
- package/dist/components/form-controls.js +123 -0
- package/dist/components/form-layout.d.ts +32 -0
- package/dist/components/form-layout.js +72 -0
- package/dist/components/hotkeys.d.ts +27 -0
- package/dist/components/hotkeys.js +70 -0
- package/dist/components/icon.d.ts +58 -0
- package/dist/components/icon.js +42 -0
- package/dist/components/input.d.ts +36 -0
- package/dist/components/input.js +249 -0
- package/dist/components/keyboard-shortcuts.d.ts +10 -0
- package/dist/components/keyboard-shortcuts.js +91 -0
- package/dist/components/keycap.d.ts +12 -0
- package/dist/components/keycap.js +45 -0
- package/dist/components/layout.d.ts +174 -0
- package/dist/components/layout.js +282 -0
- package/dist/components/lightbox.d.ts +14 -0
- package/dist/components/lightbox.js +117 -0
- package/dist/components/link.d.ts +13 -0
- package/dist/components/link.js +37 -0
- package/dist/components/locale.d.ts +463 -0
- package/dist/components/locale.js +501 -0
- package/dist/components/log-list.d.ts +20 -0
- package/dist/components/log-list.js +92 -0
- package/dist/components/mention-input.d.ts +50 -0
- package/dist/components/mention-input.js +503 -0
- package/dist/components/menu.d.ts +76 -0
- package/dist/components/menu.js +112 -0
- package/dist/components/meter.d.ts +14 -0
- package/dist/components/meter.js +44 -0
- package/dist/components/navigation.d.ts +21 -0
- package/dist/components/navigation.js +75 -0
- package/dist/components/notification-tray.d.ts +47 -0
- package/dist/components/notification-tray.js +218 -0
- package/dist/components/overlays.d.ts +107 -0
- package/dist/components/overlays.js +240 -0
- package/dist/components/page-frame.d.ts +65 -0
- package/dist/components/page-frame.js +94 -0
- package/dist/components/panel.d.ts +24 -0
- package/dist/components/panel.js +107 -0
- package/dist/components/profile-header.d.ts +15 -0
- package/dist/components/profile-header.js +40 -0
- package/dist/components/progress.d.ts +5 -0
- package/dist/components/progress.js +18 -0
- package/dist/components/project-avatar.d.ts +12 -0
- package/dist/components/project-avatar.js +22 -0
- package/dist/components/radio-card.d.ts +22 -0
- package/dist/components/radio-card.js +66 -0
- package/dist/components/recent-items.d.ts +28 -0
- package/dist/components/recent-items.js +63 -0
- package/dist/components/record.d.ts +95 -0
- package/dist/components/record.js +282 -0
- package/dist/components/scroll-area.d.ts +16 -0
- package/dist/components/scroll-area.js +50 -0
- package/dist/components/secret-dialog.d.ts +10 -0
- package/dist/components/secret-dialog.js +12 -0
- package/dist/components/segmented-bar.d.ts +23 -0
- package/dist/components/segmented-bar.js +75 -0
- package/dist/components/select.d.ts +84 -0
- package/dist/components/select.js +374 -0
- package/dist/components/settings.d.ts +34 -0
- package/dist/components/settings.js +56 -0
- package/dist/components/shell-skeleton.d.ts +7 -0
- package/dist/components/shell-skeleton.js +15 -0
- package/dist/components/shell.d.ts +62 -0
- package/dist/components/shell.js +415 -0
- package/dist/components/side-panel.d.ts +36 -0
- package/dist/components/side-panel.js +184 -0
- package/dist/components/sidebar.d.ts +35 -0
- package/dist/components/sidebar.js +207 -0
- package/dist/components/site-banner.d.ts +25 -0
- package/dist/components/site-banner.js +30 -0
- package/dist/components/skeleton.d.ts +15 -0
- package/dist/components/skeleton.js +61 -0
- package/dist/components/skeletons.d.ts +28 -0
- package/dist/components/skeletons.js +60 -0
- package/dist/components/stages.d.ts +97 -0
- package/dist/components/stages.js +365 -0
- package/dist/components/stat-card.d.ts +34 -0
- package/dist/components/stat-card.js +117 -0
- package/dist/components/status-banner.d.ts +17 -0
- package/dist/components/status-banner.js +132 -0
- package/dist/components/status.d.ts +32 -0
- package/dist/components/status.js +93 -0
- package/dist/components/steps.d.ts +17 -0
- package/dist/components/steps.js +51 -0
- package/dist/components/switch.d.ts +6 -0
- package/dist/components/switch.js +39 -0
- package/dist/components/tabs.d.ts +48 -0
- package/dist/components/tabs.js +247 -0
- package/dist/components/theme-customizer.d.ts +53 -0
- package/dist/components/theme-customizer.js +116 -0
- package/dist/components/toast.d.ts +23 -0
- package/dist/components/toast.js +140 -0
- package/dist/components/user-chip.d.ts +66 -0
- package/dist/components/user-chip.js +174 -0
- package/dist/components/wizard.d.ts +33 -0
- package/dist/components/wizard.js +91 -0
- package/dist/feedback/client.d.ts +37 -0
- package/dist/feedback/client.js +125 -0
- package/dist/feedback/comment-types.d.ts +17 -0
- package/dist/feedback/contract.d.ts +252 -0
- package/dist/feedback/contract.js +32 -0
- package/dist/feedback/feedback-cache.d.ts +6 -0
- package/dist/feedback/feedback-cache.js +58 -0
- package/dist/feedback/feedback-center-model.d.ts +8 -0
- package/dist/feedback/feedback-center-model.js +37 -0
- package/dist/feedback/feedback-composer-types.d.ts +11 -0
- package/dist/feedback/feedback-controller.d.ts +56 -0
- package/dist/feedback/feedback-controller.js +181 -0
- package/dist/feedback/feedback-tracking-types.d.ts +14 -0
- package/dist/feedback/generated/index.d.ts +1 -0
- package/dist/feedback/generated/index.js +2 -0
- package/dist/feedback/generated/types.gen.d.ts +737 -0
- package/dist/feedback/generated/types.gen.js +2 -0
- package/dist/feedback/generated/zod.gen.d.ts +738 -0
- package/dist/feedback/generated/zod.gen.js +293 -0
- package/dist/feedback/get-response-error-id.d.ts +1 -0
- package/dist/feedback/get-response-error-id.js +7 -0
- package/dist/feedback/operator-client.d.ts +21 -0
- package/dist/feedback/operator-client.js +96 -0
- package/dist/feedback/operator-contract.d.ts +111 -0
- package/dist/feedback/operator-contract.js +22 -0
- package/dist/feedback/operator-controller.d.ts +80 -0
- package/dist/feedback/operator-controller.js +43 -0
- package/dist/feedback/require-config.d.ts +2 -0
- package/dist/feedback/require-config.js +7 -0
- package/dist/feedback/submit-feedback-with-attachments.d.ts +10 -0
- package/dist/feedback/submit-feedback-with-attachments.js +10 -0
- package/dist/format/compact-number.d.ts +2 -0
- package/dist/format/compact-number.js +8 -0
- package/dist/format/money.d.ts +13 -0
- package/dist/format/money.js +21 -0
- package/dist/format/usd.d.ts +2 -0
- package/dist/format/usd.js +16 -0
- package/dist/preset.d.ts +18 -0
- package/dist/preset.js +470 -0
- package/dist/styled-system/css/conditions.mjs +1 -1
- package/dist/styled-system/css/css.mjs +3 -3
- package/dist/styled-system/patterns/box.d.ts +1 -1
- package/dist/styled-system/patterns/container.d.ts +1 -1
- package/dist/styled-system/patterns/link-overlay.d.ts +1 -1
- package/dist/styled-system/patterns/visually-hidden.d.ts +1 -1
- package/dist/styled-system/styles.css +7834 -458
- package/dist/styled-system/tokens/index.mjs +1465 -677
- package/dist/styled-system/tokens/tokens.d.ts +32 -26
- package/dist/styled-system/types/conditions.d.ts +11 -1
- package/dist/styled-system/types/prop-type.d.ts +12 -23
- package/dist/styled-system/types/style-props.d.ts +25 -24
- package/dist/styles.css +60 -479
- package/dist/theme/breakpoints.d.ts +15 -0
- package/dist/theme/breakpoints.js +12 -0
- package/dist/theme/color.d.ts +2 -0
- package/dist/theme/color.js +27 -0
- package/dist/theme/derive.d.ts +5 -0
- package/dist/theme/derive.js +43 -0
- package/dist/theme/index.d.ts +4 -0
- package/dist/theme/index.js +9 -0
- package/dist/theme/options.d.ts +32 -0
- package/dist/theme/options.js +9 -0
- package/dist/theme/palettes.d.ts +60 -0
- package/dist/theme/palettes.js +185 -0
- package/dist/theme/tokens.d.ts +29 -0
- package/dist/theme/tokens.js +188 -0
- package/package.json +475 -68
- package/dist/assets/ciridae/brand-background-dark.webp +0 -0
- package/dist/assets/ciridae/brand-background-light.webp +0 -0
- package/dist/assets/ciridae/ciridae-black.svg +0 -17
- package/dist/assets/ciridae/ciridae-brand-assets.d.ts +0 -25
- package/dist/assets/ciridae/ciridae-brand-assets.js +0 -25
- package/dist/assets/ciridae/ciridae-icon-black.png +0 -0
- package/dist/assets/ciridae/ciridae-icon-white.png +0 -0
- package/dist/assets/ciridae/ciridae-ui-wordmark-black.png +0 -0
- package/dist/assets/ciridae/ciridae-ui-wordmark-white.png +0 -0
- package/dist/assets/ciridae/ciridae-white.svg +0 -17
- package/dist/assets/ciridae/ciridae-wordmark-black.png +0 -0
- package/dist/assets/ciridae/ciridae-wordmark-white.png +0 -0
- package/dist/assets/ciridae/favicon.ico +0 -0
- package/dist/assets/ciridae/logo-white.png +0 -0
- package/dist/assets/ciridae/sign-in-screenshot.png +0 -0
- package/dist/components/blocks/admin-users-table.d.ts +0 -22
- package/dist/components/blocks/admin-users-table.js +0 -115
- package/dist/components/blocks/comment-composer.d.ts +0 -18
- package/dist/components/blocks/comment-composer.js +0 -137
- package/dist/components/blocks/comment-item.d.ts +0 -8
- package/dist/components/blocks/comment-item.js +0 -45
- package/dist/components/blocks/comment-thread.d.ts +0 -19
- package/dist/components/blocks/comment-thread.js +0 -37
- package/dist/components/blocks/comment-types.d.ts +0 -18
- package/dist/components/blocks/comment-types.js +0 -11
- package/dist/components/blocks/copy-field.d.ts +0 -18
- package/dist/components/blocks/copy-field.js +0 -61
- package/dist/components/blocks/feedback-center-comments.d.ts +0 -16
- package/dist/components/blocks/feedback-center-comments.js +0 -61
- package/dist/components/blocks/feedback-center-footer.d.ts +0 -12
- package/dist/components/blocks/feedback-center-footer.js +0 -10
- package/dist/components/blocks/feedback-center-sheet-parts.d.ts +0 -40
- package/dist/components/blocks/feedback-center-sheet-parts.js +0 -39
- package/dist/components/blocks/feedback-center-sheet.d.ts +0 -28
- package/dist/components/blocks/feedback-center-sheet.js +0 -106
- package/dist/components/blocks/feedback-composer-parts.d.ts +0 -16
- package/dist/components/blocks/feedback-composer-parts.js +0 -43
- package/dist/components/blocks/feedback-composer-types.d.ts +0 -12
- package/dist/components/blocks/feedback-composer.d.ts +0 -24
- package/dist/components/blocks/feedback-composer.js +0 -82
- package/dist/components/blocks/feedback-date-format.d.ts +0 -5
- package/dist/components/blocks/feedback-date-format.js +0 -11
- package/dist/components/blocks/feedback-detail-sheet.d.ts +0 -15
- package/dist/components/blocks/feedback-detail-sheet.js +0 -59
- package/dist/components/blocks/feedback-emergency-fields.d.ts +0 -17
- package/dist/components/blocks/feedback-emergency-fields.js +0 -32
- package/dist/components/blocks/feedback-metrics.d.ts +0 -6
- package/dist/components/blocks/feedback-metrics.js +0 -15
- package/dist/components/blocks/feedback-sheet.d.ts +0 -8
- package/dist/components/blocks/feedback-sheet.js +0 -29
- package/dist/components/blocks/feedback-status-badge.d.ts +0 -6
- package/dist/components/blocks/feedback-status-badge.js +0 -15
- package/dist/components/blocks/feedback-table-row.d.ts +0 -6
- package/dist/components/blocks/feedback-table-row.js +0 -27
- package/dist/components/blocks/feedback-table-sort.d.ts +0 -11
- package/dist/components/blocks/feedback-table-sort.js +0 -82
- package/dist/components/blocks/feedback-table.d.ts +0 -16
- package/dist/components/blocks/feedback-table.js +0 -45
- package/dist/components/blocks/feedback-tracking-types.d.ts +0 -102
- package/dist/components/blocks/feedback-tracking-types.js +0 -54
- package/dist/components/blocks/feedback-triage-timeline.d.ts +0 -11
- package/dist/components/blocks/feedback-triage-timeline.js +0 -17
- package/dist/components/blocks/feedback-type-badge.d.ts +0 -11
- package/dist/components/blocks/feedback-type-badge.js +0 -18
- package/dist/components/blocks/feedback-unread-badge.d.ts +0 -6
- package/dist/components/blocks/feedback-unread-badge.js +0 -9
- package/dist/components/blocks/feedback-user-detail.d.ts +0 -11
- package/dist/components/blocks/feedback-user-detail.js +0 -63
- package/dist/components/blocks/feedback-user-list.d.ts +0 -11
- package/dist/components/blocks/feedback-user-list.js +0 -41
- package/dist/components/blocks/generated-connect-link.d.ts +0 -22
- package/dist/components/blocks/generated-connect-link.js +0 -68
- package/dist/components/blocks/invite-user-sheet.d.ts +0 -20
- package/dist/components/blocks/invite-user-sheet.js +0 -72
- package/dist/components/blocks/kanban-board-parts.d.ts +0 -26
- package/dist/components/blocks/kanban-board-parts.js +0 -83
- package/dist/components/blocks/kanban-board-utils.d.ts +0 -58
- package/dist/components/blocks/kanban-board-utils.js +0 -140
- package/dist/components/blocks/kanban-board.d.ts +0 -16
- package/dist/components/blocks/kanban-board.js +0 -35
- package/dist/components/blocks/kanban-card.d.ts +0 -10
- package/dist/components/blocks/kanban-card.js +0 -34
- package/dist/components/blocks/kanban-column.d.ts +0 -17
- package/dist/components/blocks/kanban-column.js +0 -34
- package/dist/components/blocks/kanban-detail-sheet.d.ts +0 -17
- package/dist/components/blocks/kanban-detail-sheet.js +0 -34
- package/dist/components/blocks/kanban-types.d.ts +0 -24
- package/dist/components/blocks/mcp-access-grouped-tool-picker.d.ts +0 -19
- package/dist/components/blocks/mcp-access-grouped-tool-picker.js +0 -116
- package/dist/components/blocks/mcp-access-tool-picker-internals.d.ts +0 -35
- package/dist/components/blocks/mcp-access-tool-picker-internals.js +0 -24
- package/dist/components/blocks/mcp-access-tool-picker.d.ts +0 -22
- package/dist/components/blocks/mcp-access-tool-picker.js +0 -33
- package/dist/components/blocks/mcp-access-types.d.ts +0 -42
- package/dist/components/blocks/mcp-access-types.js +0 -7
- package/dist/components/blocks/mcp-client-setup.d.ts +0 -29
- package/dist/components/blocks/mcp-client-setup.js +0 -58
- package/dist/components/blocks/mcp-connect-clients.d.ts +0 -43
- package/dist/components/blocks/mcp-connect-clients.js +0 -66
- package/dist/components/blocks/mcp-plan-choice.d.ts +0 -17
- package/dist/components/blocks/mcp-plan-choice.js +0 -28
- package/dist/components/blocks/submit-feedback-composer.d.ts +0 -5
- package/dist/components/blocks/submit-feedback-composer.js +0 -40
- package/dist/components/blocks/timestamp-format.d.ts +0 -14
- package/dist/components/blocks/timestamp-format.js +0 -72
- package/dist/components/blocks/use-feedback-composer-state.d.ts +0 -27
- package/dist/components/blocks/use-feedback-composer-state.js +0 -60
- package/dist/components/blocks/use-reveal-thread-end.d.ts +0 -11
- package/dist/components/blocks/use-reveal-thread-end.js +0 -25
- package/dist/components/pages/admin-users-page.d.ts +0 -11
- package/dist/components/pages/admin-users-page.js +0 -30
- package/dist/components/pages/feedback-stakeholder-page-parts.d.ts +0 -18
- package/dist/components/pages/feedback-stakeholder-page-parts.js +0 -36
- package/dist/components/pages/feedback-stakeholder-page.d.ts +0 -9
- package/dist/components/pages/feedback-stakeholder-page.js +0 -66
- package/dist/components/pages/kanban-page.d.ts +0 -13
- package/dist/components/pages/kanban-page.js +0 -68
- package/dist/components/ui/accordion.d.ts +0 -7
- package/dist/components/ui/accordion.js +0 -17
- package/dist/components/ui/alert-dialog.d.ts +0 -22
- package/dist/components/ui/alert-dialog.js +0 -51
- package/dist/components/ui/alert.d.ts +0 -9
- package/dist/components/ui/alert.js +0 -24
- package/dist/components/ui/app-shell-page.d.ts +0 -22
- package/dist/components/ui/app-shell-page.js +0 -21
- package/dist/components/ui/app-shell.d.ts +0 -45
- package/dist/components/ui/app-shell.js +0 -44
- package/dist/components/ui/aspect-ratio.d.ts +0 -3
- package/dist/components/ui/aspect-ratio.js +0 -7
- package/dist/components/ui/avatar.d.ts +0 -11
- package/dist/components/ui/avatar.js +0 -22
- package/dist/components/ui/badge-variants.d.ts +0 -100
- package/dist/components/ui/badge-variants.js +0 -140
- package/dist/components/ui/badge.d.ts +0 -6
- package/dist/components/ui/badge.js +0 -9
- package/dist/components/ui/breadcrumb.d.ts +0 -11
- package/dist/components/ui/breadcrumb.js +0 -27
- package/dist/components/ui/button-group-variants.d.ts +0 -6
- package/dist/components/ui/button-group-variants.js +0 -13
- package/dist/components/ui/button-group.d.ts +0 -8
- package/dist/components/ui/button-group.js +0 -16
- package/dist/components/ui/button-variants.d.ts +0 -133
- package/dist/components/ui/button-variants.js +0 -170
- package/dist/components/ui/button.d.ts +0 -8
- package/dist/components/ui/button.js +0 -59
- package/dist/components/ui/calendar.d.ts +0 -10
- package/dist/components/ui/calendar.js +0 -99
- package/dist/components/ui/card.d.ts +0 -14
- package/dist/components/ui/card.js +0 -28
- package/dist/components/ui/carousel.d.ts +0 -19
- package/dist/components/ui/carousel.js +0 -104
- package/dist/components/ui/chart-context.d.ts +0 -33
- package/dist/components/ui/chart-context.js +0 -36
- package/dist/components/ui/chart-panel.d.ts +0 -11
- package/dist/components/ui/chart-panel.js +0 -6
- package/dist/components/ui/chart-tooltip.d.ts +0 -13
- package/dist/components/ui/chart-tooltip.js +0 -84
- package/dist/components/ui/chart.d.ts +0 -23
- package/dist/components/ui/chart.js +0 -52
- package/dist/components/ui/checkbox.d.ts +0 -4
- package/dist/components/ui/checkbox.js +0 -9
- package/dist/components/ui/ciridae-ui-provider.d.ts +0 -8
- package/dist/components/ui/ciridae-ui-provider.js +0 -14
- package/dist/components/ui/collapsible.d.ts +0 -5
- package/dist/components/ui/collapsible.js +0 -12
- package/dist/components/ui/color-theme-context.d.ts +0 -28
- package/dist/components/ui/color-theme-context.js +0 -3
- package/dist/components/ui/color-theme.d.ts +0 -5
- package/dist/components/ui/color-theme.js +0 -147
- package/dist/components/ui/combobox-anchor.d.ts +0 -3
- package/dist/components/ui/combobox-anchor.js +0 -5
- package/dist/components/ui/combobox.d.ts +0 -24
- package/dist/components/ui/combobox.js +0 -54
- package/dist/components/ui/command.d.ts +0 -19
- package/dist/components/ui/command.js +0 -38
- package/dist/components/ui/context-menu.d.ts +0 -30
- package/dist/components/ui/context-menu.js +0 -63
- package/dist/components/ui/data-table-column-settings.d.ts +0 -23
- package/dist/components/ui/data-table-column-settings.js +0 -170
- package/dist/components/ui/data-table-context.d.ts +0 -8
- package/dist/components/ui/data-table-context.js +0 -53
- package/dist/components/ui/data-table-controls.d.ts +0 -9
- package/dist/components/ui/data-table-controls.js +0 -30
- package/dist/components/ui/data-table-facet-filter.d.ts +0 -39
- package/dist/components/ui/data-table-facet-filter.js +0 -65
- package/dist/components/ui/data-table-grid.d.ts +0 -10
- package/dist/components/ui/data-table-grid.js +0 -34
- package/dist/components/ui/data-table-pagination.d.ts +0 -17
- package/dist/components/ui/data-table-pagination.js +0 -89
- package/dist/components/ui/data-table-search-input.d.ts +0 -14
- package/dist/components/ui/data-table-search-input.js +0 -15
- package/dist/components/ui/data-table-state.d.ts +0 -19
- package/dist/components/ui/data-table-state.js +0 -8
- package/dist/components/ui/data-table-tanstack.d.ts +0 -99
- package/dist/components/ui/data-table-tanstack.js +0 -128
- package/dist/components/ui/data-table.d.ts +0 -19
- package/dist/components/ui/data-table.js +0 -35
- package/dist/components/ui/dialog.d.ts +0 -23
- package/dist/components/ui/dialog.js +0 -48
- package/dist/components/ui/direction-context.d.ts +0 -3
- package/dist/components/ui/direction-context.js +0 -3
- package/dist/components/ui/direction.d.ts +0 -6
- package/dist/components/ui/direction.js +0 -7
- package/dist/components/ui/drawer.d.ts +0 -18
- package/dist/components/ui/drawer.js +0 -47
- package/dist/components/ui/dropdown-menu.d.ts +0 -30
- package/dist/components/ui/dropdown-menu.js +0 -63
- package/dist/components/ui/empty.d.ts +0 -11
- package/dist/components/ui/empty.js +0 -33
- package/dist/components/ui/expandable-data-table.d.ts +0 -24
- package/dist/components/ui/expandable-data-table.js +0 -62
- package/dist/components/ui/field.d.ts +0 -26
- package/dist/components/ui/field.js +0 -74
- package/dist/components/ui/file-upload-field-parts.d.ts +0 -21
- package/dist/components/ui/file-upload-field-parts.js +0 -55
- package/dist/components/ui/file-upload-field.d.ts +0 -16
- package/dist/components/ui/file-upload-field.js +0 -85
- package/dist/components/ui/form-context.d.ts +0 -23
- package/dist/components/ui/form-context.js +0 -35
- package/dist/components/ui/form-sheet.d.ts +0 -22
- package/dist/components/ui/form-sheet.js +0 -74
- package/dist/components/ui/form.d.ts +0 -12
- package/dist/components/ui/form.js +0 -38
- package/dist/components/ui/hover-card.d.ts +0 -10
- package/dist/components/ui/hover-card.js +0 -22
- package/dist/components/ui/input-group.d.ts +0 -16
- package/dist/components/ui/input-group.js +0 -62
- package/dist/components/ui/input-otp.d.ts +0 -11
- package/dist/components/ui/input-otp.js +0 -21
- package/dist/components/ui/input.d.ts +0 -3
- package/dist/components/ui/input.js +0 -6
- package/dist/components/ui/item.d.ts +0 -24
- package/dist/components/ui/item.js +0 -73
- package/dist/components/ui/kbd.d.ts +0 -3
- package/dist/components/ui/kbd.js +0 -9
- package/dist/components/ui/label.d.ts +0 -4
- package/dist/components/ui/label.js +0 -7
- package/dist/components/ui/loading-state.d.ts +0 -27
- package/dist/components/ui/loading-state.js +0 -44
- package/dist/components/ui/menubar.d.ts +0 -30
- package/dist/components/ui/menubar.js +0 -63
- package/dist/components/ui/metrics-strip.d.ts +0 -7
- package/dist/components/ui/metrics-strip.js +0 -18
- package/dist/components/ui/native-select.d.ts +0 -7
- package/dist/components/ui/native-select.js +0 -13
- package/dist/components/ui/navigation-menu-variants.d.ts +0 -2
- package/dist/components/ui/navigation-menu-variants.js +0 -3
- package/dist/components/ui/navigation-menu.d.ts +0 -13
- package/dist/components/ui/navigation-menu.js +0 -30
- package/dist/components/ui/page-header.d.ts +0 -33
- package/dist/components/ui/page-header.js +0 -54
- package/dist/components/ui/pagination.d.ts +0 -13
- package/dist/components/ui/pagination.js +0 -29
- package/dist/components/ui/popover.d.ts +0 -14
- package/dist/components/ui/popover.js +0 -34
- package/dist/components/ui/progress.d.ts +0 -4
- package/dist/components/ui/progress.js +0 -8
- package/dist/components/ui/property-list.d.ts +0 -6
- package/dist/components/ui/property-list.js +0 -15
- package/dist/components/ui/radio-group.d.ts +0 -5
- package/dist/components/ui/radio-group.js +0 -11
- package/dist/components/ui/registry-docs-api.d.ts +0 -11
- package/dist/components/ui/registry-docs-api.js +0 -9
- package/dist/components/ui/registry-docs-code.d.ts +0 -19
- package/dist/components/ui/registry-docs-code.js +0 -78
- package/dist/components/ui/registry-docs-showcase.d.ts +0 -11
- package/dist/components/ui/registry-docs-showcase.js +0 -27
- package/dist/components/ui/registry-docs.d.ts +0 -27
- package/dist/components/ui/registry-docs.js +0 -32
- package/dist/components/ui/resizable.d.ts +0 -14
- package/dist/components/ui/resizable.js +0 -15
- package/dist/components/ui/scroll-area.d.ts +0 -7
- package/dist/components/ui/scroll-area.js +0 -10
- package/dist/components/ui/select.d.ts +0 -15
- package/dist/components/ui/select.js +0 -38
- package/dist/components/ui/separator.d.ts +0 -4
- package/dist/components/ui/separator.js +0 -7
- package/dist/components/ui/sheet.d.ts +0 -21
- package/dist/components/ui/sheet.js +0 -62
- package/dist/components/ui/sidebar/context.d.ts +0 -27
- package/dist/components/ui/sidebar/context.js +0 -23
- package/dist/components/ui/sidebar/group.d.ts +0 -10
- package/dist/components/ui/sidebar/group.js +0 -18
- package/dist/components/ui/sidebar/layout.d.ts +0 -17
- package/dist/components/ui/sidebar/layout.js +0 -78
- package/dist/components/ui/sidebar/menu.d.ts +0 -30
- package/dist/components/ui/sidebar/menu.js +0 -64
- package/dist/components/ui/sidebar/provider.d.ts +0 -7
- package/dist/components/ui/sidebar/provider.js +0 -53
- package/dist/components/ui/sidebar/rail.d.ts +0 -3
- package/dist/components/ui/sidebar/rail.js +0 -12
- package/dist/components/ui/sidebar/trigger.d.ts +0 -4
- package/dist/components/ui/sidebar/trigger.js +0 -16
- package/dist/components/ui/sidebar-account-menu-theme.d.ts +0 -7
- package/dist/components/ui/sidebar-account-menu-theme.js +0 -32
- package/dist/components/ui/sidebar-account-menu.d.ts +0 -16
- package/dist/components/ui/sidebar-account-menu.js +0 -51
- package/dist/components/ui/sidebar.d.ts +0 -7
- package/dist/components/ui/sidebar.js +0 -7
- package/dist/components/ui/skeleton.d.ts +0 -2
- package/dist/components/ui/skeleton.js +0 -15
- package/dist/components/ui/slider.d.ts +0 -4
- package/dist/components/ui/slider.js +0 -9
- package/dist/components/ui/sonner.d.ts +0 -3
- package/dist/components/ui/sonner.js +0 -33
- package/dist/components/ui/spinner.d.ts +0 -2
- package/dist/components/ui/spinner.js +0 -16
- package/dist/components/ui/switch.d.ts +0 -6
- package/dist/components/ui/switch.js +0 -7
- package/dist/components/ui/table.d.ts +0 -21
- package/dist/components/ui/table.js +0 -34
- package/dist/components/ui/tabs-variants.d.ts +0 -6
- package/dist/components/ui/tabs-variants.js +0 -13
- package/dist/components/ui/tabs.d.ts +0 -8
- package/dist/components/ui/tabs.js +0 -17
- package/dist/components/ui/textarea.d.ts +0 -3
- package/dist/components/ui/textarea.js +0 -6
- package/dist/components/ui/toggle-group.d.ts +0 -9
- package/dist/components/ui/toggle-group.js +0 -24
- package/dist/components/ui/toggle-variants.d.ts +0 -7
- package/dist/components/ui/toggle-variants.js +0 -19
- package/dist/components/ui/toggle.d.ts +0 -5
- package/dist/components/ui/toggle.js +0 -9
- package/dist/components/ui/tooltip.d.ts +0 -14
- package/dist/components/ui/tooltip.js +0 -25
- package/dist/components/ui/use-color-theme.d.ts +0 -2
- package/dist/components/ui/use-color-theme.js +0 -10
- package/dist/components/ui/workflow-timeline.d.ts +0 -20
- package/dist/components/ui/workflow-timeline.js +0 -92
- package/dist/components/walkthrough/presentation/WalkthroughCoach.d.ts +0 -14
- package/dist/components/walkthrough/presentation/WalkthroughCoach.js +0 -32
- package/dist/components/walkthrough/presentation/WalkthroughHighlight.d.ts +0 -5
- package/dist/components/walkthrough/presentation/WalkthroughHighlight.js +0 -9
- package/dist/components/walkthrough/presentation/WalkthroughOverlay.d.ts +0 -1
- package/dist/components/walkthrough/presentation/WalkthroughOverlay.js +0 -70
- package/dist/components/walkthrough/presentation/positionWalkthroughCoach.d.ts +0 -11
- package/dist/components/walkthrough/presentation/positionWalkthroughCoach.js +0 -24
- package/dist/components/walkthrough/presentation/useWalkthroughCoachPosition.d.ts +0 -4
- package/dist/components/walkthrough/presentation/useWalkthroughCoachPosition.js +0 -17
- package/dist/components/walkthrough/runtime/WalkthroughContextDefinition.d.ts +0 -20
- package/dist/components/walkthrough/runtime/WalkthroughContextDefinition.js +0 -2
- package/dist/components/walkthrough/runtime/WalkthroughProvider.d.ts +0 -12
- package/dist/components/walkthrough/runtime/WalkthroughProvider.js +0 -190
- package/dist/components/walkthrough/runtime/useWalkthrough.d.ts +0 -1
- package/dist/components/walkthrough/runtime/useWalkthrough.js +0 -8
- package/dist/components/walkthrough/runtime/walkthroughEvents.d.ts +0 -3
- package/dist/components/walkthrough/runtime/walkthroughEvents.js +0 -55
- package/dist/components/walkthrough/runtime/walkthroughLocation.d.ts +0 -2
- package/dist/components/walkthrough/runtime/walkthroughLocation.js +0 -27
- package/dist/components/walkthrough/runtime/walkthroughStorage.d.ts +0 -3
- package/dist/components/walkthrough/runtime/walkthroughStorage.js +0 -54
- package/dist/components/walkthrough/runtime/walkthroughTypes.d.ts +0 -32
- package/dist/components/walkthrough/targeting/listenForOutsideWalkthroughInteraction.d.ts +0 -2
- package/dist/components/walkthrough/targeting/listenForOutsideWalkthroughInteraction.js +0 -19
- package/dist/components/walkthrough/targeting/useWalkthroughTargetRect.d.ts +0 -15
- package/dist/components/walkthrough/targeting/useWalkthroughTargetRect.js +0 -54
- package/dist/components/walkthrough/targeting/walkthroughTarget.d.ts +0 -6
- package/dist/components/walkthrough/targeting/walkthroughTarget.js +0 -24
- package/dist/components/walkthrough.d.ts +0 -4
- package/dist/components/walkthrough.js +0 -2
- package/dist/entries/accordion.d.ts +0 -1
- package/dist/entries/accordion.js +0 -1
- package/dist/entries/admin-users-page.d.ts +0 -1
- package/dist/entries/admin-users-page.js +0 -1
- package/dist/entries/admin-users-table.d.ts +0 -1
- package/dist/entries/admin-users-table.js +0 -1
- package/dist/entries/alert-dialog.d.ts +0 -1
- package/dist/entries/alert-dialog.js +0 -1
- package/dist/entries/alert.d.ts +0 -1
- package/dist/entries/alert.js +0 -1
- package/dist/entries/app-shell-page.d.ts +0 -1
- package/dist/entries/app-shell-page.js +0 -1
- package/dist/entries/app-shell.d.ts +0 -1
- package/dist/entries/app-shell.js +0 -1
- package/dist/entries/aspect-ratio.d.ts +0 -1
- package/dist/entries/aspect-ratio.js +0 -1
- package/dist/entries/avatar.d.ts +0 -1
- package/dist/entries/avatar.js +0 -1
- package/dist/entries/badge-variants.d.ts +0 -1
- package/dist/entries/badge-variants.js +0 -1
- package/dist/entries/badge.d.ts +0 -1
- package/dist/entries/badge.js +0 -1
- package/dist/entries/breadcrumb.d.ts +0 -1
- package/dist/entries/breadcrumb.js +0 -1
- package/dist/entries/button-group-variants.d.ts +0 -1
- package/dist/entries/button-group-variants.js +0 -1
- package/dist/entries/button-group.d.ts +0 -1
- package/dist/entries/button-group.js +0 -1
- package/dist/entries/button-variants.d.ts +0 -1
- package/dist/entries/button-variants.js +0 -1
- package/dist/entries/button.d.ts +0 -1
- package/dist/entries/button.js +0 -1
- package/dist/entries/calendar.d.ts +0 -1
- package/dist/entries/calendar.js +0 -1
- package/dist/entries/card.d.ts +0 -1
- package/dist/entries/card.js +0 -1
- package/dist/entries/carousel.d.ts +0 -1
- package/dist/entries/carousel.js +0 -1
- package/dist/entries/chart-context.d.ts +0 -1
- package/dist/entries/chart-context.js +0 -1
- package/dist/entries/chart-panel.d.ts +0 -1
- package/dist/entries/chart-panel.js +0 -1
- package/dist/entries/chart-tooltip.d.ts +0 -1
- package/dist/entries/chart-tooltip.js +0 -1
- package/dist/entries/chart.d.ts +0 -1
- package/dist/entries/chart.js +0 -1
- package/dist/entries/checkbox.d.ts +0 -1
- package/dist/entries/checkbox.js +0 -1
- package/dist/entries/ciridae-brand-assets.d.ts +0 -1
- package/dist/entries/ciridae-brand-assets.js +0 -1
- package/dist/entries/ciridae-ui-provider.d.ts +0 -1
- package/dist/entries/ciridae-ui-provider.js +0 -1
- package/dist/entries/collapsible.d.ts +0 -1
- package/dist/entries/collapsible.js +0 -1
- package/dist/entries/color-theme-context.d.ts +0 -1
- package/dist/entries/color-theme-context.js +0 -1
- package/dist/entries/color-theme.d.ts +0 -1
- package/dist/entries/color-theme.js +0 -1
- package/dist/entries/combobox-anchor.d.ts +0 -1
- package/dist/entries/combobox-anchor.js +0 -1
- package/dist/entries/combobox.d.ts +0 -1
- package/dist/entries/combobox.js +0 -1
- package/dist/entries/command.d.ts +0 -1
- package/dist/entries/command.js +0 -1
- package/dist/entries/comment-composer.d.ts +0 -1
- package/dist/entries/comment-composer.js +0 -1
- package/dist/entries/comment-item.d.ts +0 -1
- package/dist/entries/comment-item.js +0 -1
- package/dist/entries/comment-thread.d.ts +0 -1
- package/dist/entries/comment-thread.js +0 -1
- package/dist/entries/comment-types.d.ts +0 -1
- package/dist/entries/comment-types.js +0 -1
- package/dist/entries/context-menu.d.ts +0 -1
- package/dist/entries/context-menu.js +0 -1
- package/dist/entries/copy-field.d.ts +0 -1
- package/dist/entries/copy-field.js +0 -1
- package/dist/entries/data-table-column-settings.d.ts +0 -1
- package/dist/entries/data-table-column-settings.js +0 -1
- package/dist/entries/data-table-context.d.ts +0 -1
- package/dist/entries/data-table-context.js +0 -1
- package/dist/entries/data-table-controls.d.ts +0 -1
- package/dist/entries/data-table-controls.js +0 -1
- package/dist/entries/data-table-facet-filter.d.ts +0 -1
- package/dist/entries/data-table-facet-filter.js +0 -1
- package/dist/entries/data-table-grid.d.ts +0 -1
- package/dist/entries/data-table-grid.js +0 -1
- package/dist/entries/data-table-pagination.d.ts +0 -1
- package/dist/entries/data-table-pagination.js +0 -1
- package/dist/entries/data-table-search-input.d.ts +0 -1
- package/dist/entries/data-table-search-input.js +0 -1
- package/dist/entries/data-table-state.d.ts +0 -1
- package/dist/entries/data-table-state.js +0 -1
- package/dist/entries/data-table-tanstack.d.ts +0 -1
- package/dist/entries/data-table-tanstack.js +0 -1
- package/dist/entries/data-table.d.ts +0 -1
- package/dist/entries/data-table.js +0 -1
- package/dist/entries/dialog.d.ts +0 -1
- package/dist/entries/dialog.js +0 -1
- package/dist/entries/direction-context.d.ts +0 -1
- package/dist/entries/direction-context.js +0 -1
- package/dist/entries/direction.d.ts +0 -1
- package/dist/entries/direction.js +0 -1
- package/dist/entries/drawer.d.ts +0 -1
- package/dist/entries/drawer.js +0 -1
- package/dist/entries/dropdown-menu.d.ts +0 -1
- package/dist/entries/dropdown-menu.js +0 -1
- package/dist/entries/empty.d.ts +0 -1
- package/dist/entries/empty.js +0 -1
- package/dist/entries/expandable-data-table.d.ts +0 -1
- package/dist/entries/expandable-data-table.js +0 -1
- package/dist/entries/feedback-center-comments.d.ts +0 -1
- package/dist/entries/feedback-center-comments.js +0 -1
- package/dist/entries/feedback-center-footer.d.ts +0 -1
- package/dist/entries/feedback-center-footer.js +0 -1
- package/dist/entries/feedback-center-sheet-parts.d.ts +0 -1
- package/dist/entries/feedback-center-sheet-parts.js +0 -1
- package/dist/entries/feedback-center-sheet.d.ts +0 -1
- package/dist/entries/feedback-center-sheet.js +0 -1
- package/dist/entries/feedback-composer-parts.d.ts +0 -1
- package/dist/entries/feedback-composer-parts.js +0 -1
- package/dist/entries/feedback-composer-types.d.ts +0 -1
- package/dist/entries/feedback-composer-types.js +0 -1
- package/dist/entries/feedback-composer.d.ts +0 -1
- package/dist/entries/feedback-composer.js +0 -1
- package/dist/entries/feedback-date-format.d.ts +0 -1
- package/dist/entries/feedback-date-format.js +0 -1
- package/dist/entries/feedback-detail-sheet.d.ts +0 -1
- package/dist/entries/feedback-detail-sheet.js +0 -1
- package/dist/entries/feedback-emergency-fields.d.ts +0 -1
- package/dist/entries/feedback-emergency-fields.js +0 -1
- package/dist/entries/feedback-metrics.d.ts +0 -1
- package/dist/entries/feedback-metrics.js +0 -1
- package/dist/entries/feedback-sheet.d.ts +0 -1
- package/dist/entries/feedback-sheet.js +0 -1
- package/dist/entries/feedback-stakeholder-page-parts.d.ts +0 -1
- package/dist/entries/feedback-stakeholder-page-parts.js +0 -1
- package/dist/entries/feedback-stakeholder-page.d.ts +0 -1
- package/dist/entries/feedback-stakeholder-page.js +0 -1
- package/dist/entries/feedback-status-badge.d.ts +0 -1
- package/dist/entries/feedback-status-badge.js +0 -1
- package/dist/entries/feedback-table-row.d.ts +0 -1
- package/dist/entries/feedback-table-row.js +0 -1
- package/dist/entries/feedback-table-sort.d.ts +0 -1
- package/dist/entries/feedback-table-sort.js +0 -1
- package/dist/entries/feedback-table.d.ts +0 -1
- package/dist/entries/feedback-table.js +0 -1
- package/dist/entries/feedback-tracking-types.d.ts +0 -1
- package/dist/entries/feedback-tracking-types.js +0 -1
- package/dist/entries/feedback-triage-timeline.d.ts +0 -1
- package/dist/entries/feedback-triage-timeline.js +0 -1
- package/dist/entries/feedback-type-badge.d.ts +0 -1
- package/dist/entries/feedback-type-badge.js +0 -1
- package/dist/entries/feedback-unread-badge.d.ts +0 -1
- package/dist/entries/feedback-unread-badge.js +0 -1
- package/dist/entries/feedback-user-detail.d.ts +0 -1
- package/dist/entries/feedback-user-detail.js +0 -1
- package/dist/entries/feedback-user-list.d.ts +0 -1
- package/dist/entries/feedback-user-list.js +0 -1
- package/dist/entries/field.d.ts +0 -1
- package/dist/entries/field.js +0 -1
- package/dist/entries/file-upload-field-parts.d.ts +0 -1
- package/dist/entries/file-upload-field-parts.js +0 -1
- package/dist/entries/file-upload-field.d.ts +0 -1
- package/dist/entries/file-upload-field.js +0 -1
- package/dist/entries/form-context.d.ts +0 -1
- package/dist/entries/form-context.js +0 -1
- package/dist/entries/form-sheet.d.ts +0 -1
- package/dist/entries/form-sheet.js +0 -1
- package/dist/entries/form.d.ts +0 -1
- package/dist/entries/form.js +0 -1
- package/dist/entries/generated-connect-link.d.ts +0 -1
- package/dist/entries/generated-connect-link.js +0 -1
- package/dist/entries/hover-card.d.ts +0 -1
- package/dist/entries/hover-card.js +0 -1
- package/dist/entries/input-group.d.ts +0 -1
- package/dist/entries/input-group.js +0 -1
- package/dist/entries/input-otp.d.ts +0 -1
- package/dist/entries/input-otp.js +0 -1
- package/dist/entries/input.d.ts +0 -1
- package/dist/entries/input.js +0 -1
- package/dist/entries/invite-user-sheet.d.ts +0 -1
- package/dist/entries/invite-user-sheet.js +0 -1
- package/dist/entries/item.d.ts +0 -1
- package/dist/entries/item.js +0 -1
- package/dist/entries/kanban-board-parts.d.ts +0 -1
- package/dist/entries/kanban-board-parts.js +0 -1
- package/dist/entries/kanban-board-utils.d.ts +0 -1
- package/dist/entries/kanban-board-utils.js +0 -1
- package/dist/entries/kanban-board.d.ts +0 -1
- package/dist/entries/kanban-board.js +0 -1
- package/dist/entries/kanban-card.d.ts +0 -1
- package/dist/entries/kanban-card.js +0 -1
- package/dist/entries/kanban-column.d.ts +0 -1
- package/dist/entries/kanban-column.js +0 -1
- package/dist/entries/kanban-detail-sheet.d.ts +0 -1
- package/dist/entries/kanban-detail-sheet.js +0 -1
- package/dist/entries/kanban-page.d.ts +0 -1
- package/dist/entries/kanban-page.js +0 -1
- package/dist/entries/kanban-types.d.ts +0 -1
- package/dist/entries/kanban-types.js +0 -1
- package/dist/entries/kbd.d.ts +0 -1
- package/dist/entries/kbd.js +0 -1
- package/dist/entries/label.d.ts +0 -1
- package/dist/entries/label.js +0 -1
- package/dist/entries/loading-state.d.ts +0 -1
- package/dist/entries/loading-state.js +0 -1
- package/dist/entries/mcp-access-grouped-tool-picker.d.ts +0 -1
- package/dist/entries/mcp-access-grouped-tool-picker.js +0 -1
- package/dist/entries/mcp-access-tool-picker.d.ts +0 -1
- package/dist/entries/mcp-access-tool-picker.js +0 -1
- package/dist/entries/mcp-access-types.d.ts +0 -1
- package/dist/entries/mcp-access-types.js +0 -1
- package/dist/entries/mcp-client-setup.d.ts +0 -1
- package/dist/entries/mcp-client-setup.js +0 -1
- package/dist/entries/mcp-connect-clients.d.ts +0 -1
- package/dist/entries/mcp-connect-clients.js +0 -1
- package/dist/entries/mcp-plan-choice.d.ts +0 -1
- package/dist/entries/mcp-plan-choice.js +0 -1
- package/dist/entries/menubar.d.ts +0 -1
- package/dist/entries/menubar.js +0 -1
- package/dist/entries/metrics-strip.d.ts +0 -1
- package/dist/entries/metrics-strip.js +0 -1
- package/dist/entries/native-select.d.ts +0 -1
- package/dist/entries/native-select.js +0 -1
- package/dist/entries/navigation-menu-variants.d.ts +0 -1
- package/dist/entries/navigation-menu-variants.js +0 -1
- package/dist/entries/navigation-menu.d.ts +0 -1
- package/dist/entries/navigation-menu.js +0 -1
- package/dist/entries/page-header.d.ts +0 -1
- package/dist/entries/page-header.js +0 -1
- package/dist/entries/pagination.d.ts +0 -1
- package/dist/entries/pagination.js +0 -1
- package/dist/entries/palette.d.ts +0 -2
- package/dist/entries/palette.js +0 -2
- package/dist/entries/popover.d.ts +0 -1
- package/dist/entries/popover.js +0 -1
- package/dist/entries/progress.d.ts +0 -1
- package/dist/entries/progress.js +0 -1
- package/dist/entries/property-list.d.ts +0 -1
- package/dist/entries/property-list.js +0 -1
- package/dist/entries/radio-group.d.ts +0 -1
- package/dist/entries/radio-group.js +0 -1
- package/dist/entries/registry-docs-api.d.ts +0 -1
- package/dist/entries/registry-docs-api.js +0 -1
- package/dist/entries/registry-docs-code.d.ts +0 -1
- package/dist/entries/registry-docs-code.js +0 -1
- package/dist/entries/registry-docs-showcase.d.ts +0 -1
- package/dist/entries/registry-docs-showcase.js +0 -1
- package/dist/entries/registry-docs.d.ts +0 -1
- package/dist/entries/registry-docs.js +0 -1
- package/dist/entries/resizable.d.ts +0 -1
- package/dist/entries/resizable.js +0 -1
- package/dist/entries/scroll-area.d.ts +0 -1
- package/dist/entries/scroll-area.js +0 -1
- package/dist/entries/select.d.ts +0 -1
- package/dist/entries/select.js +0 -1
- package/dist/entries/separator.d.ts +0 -1
- package/dist/entries/separator.js +0 -1
- package/dist/entries/sheet.d.ts +0 -1
- package/dist/entries/sheet.js +0 -1
- package/dist/entries/sidebar/context.d.ts +0 -1
- package/dist/entries/sidebar/context.js +0 -1
- package/dist/entries/sidebar/group.d.ts +0 -1
- package/dist/entries/sidebar/group.js +0 -1
- package/dist/entries/sidebar/layout.d.ts +0 -1
- package/dist/entries/sidebar/layout.js +0 -1
- package/dist/entries/sidebar/menu.d.ts +0 -1
- package/dist/entries/sidebar/menu.js +0 -1
- package/dist/entries/sidebar/provider.d.ts +0 -1
- package/dist/entries/sidebar/provider.js +0 -1
- package/dist/entries/sidebar/rail.d.ts +0 -1
- package/dist/entries/sidebar/rail.js +0 -1
- package/dist/entries/sidebar/trigger.d.ts +0 -1
- package/dist/entries/sidebar/trigger.js +0 -1
- package/dist/entries/sidebar-account-menu-theme.d.ts +0 -1
- package/dist/entries/sidebar-account-menu-theme.js +0 -1
- package/dist/entries/sidebar-account-menu.d.ts +0 -1
- package/dist/entries/sidebar-account-menu.js +0 -1
- package/dist/entries/sidebar.d.ts +0 -1
- package/dist/entries/sidebar.js +0 -1
- package/dist/entries/skeleton.d.ts +0 -1
- package/dist/entries/skeleton.js +0 -1
- package/dist/entries/slider.d.ts +0 -1
- package/dist/entries/slider.js +0 -1
- package/dist/entries/sonner.d.ts +0 -1
- package/dist/entries/sonner.js +0 -1
- package/dist/entries/spinner.d.ts +0 -1
- package/dist/entries/spinner.js +0 -1
- package/dist/entries/submit-feedback-composer.d.ts +0 -1
- package/dist/entries/submit-feedback-composer.js +0 -1
- package/dist/entries/switch.d.ts +0 -1
- package/dist/entries/switch.js +0 -1
- package/dist/entries/table.d.ts +0 -1
- package/dist/entries/table.js +0 -1
- package/dist/entries/tabs-variants.d.ts +0 -1
- package/dist/entries/tabs-variants.js +0 -1
- package/dist/entries/tabs.d.ts +0 -1
- package/dist/entries/tabs.js +0 -1
- package/dist/entries/textarea.d.ts +0 -1
- package/dist/entries/textarea.js +0 -1
- package/dist/entries/timestamp-format.d.ts +0 -1
- package/dist/entries/timestamp-format.js +0 -1
- package/dist/entries/toggle-group.d.ts +0 -1
- package/dist/entries/toggle-group.js +0 -1
- package/dist/entries/toggle-variants.d.ts +0 -1
- package/dist/entries/toggle-variants.js +0 -1
- package/dist/entries/toggle.d.ts +0 -1
- package/dist/entries/toggle.js +0 -1
- package/dist/entries/tooltip.d.ts +0 -1
- package/dist/entries/tooltip.js +0 -1
- package/dist/entries/use-color-theme.d.ts +0 -1
- package/dist/entries/use-color-theme.js +0 -1
- package/dist/entries/use-feedback-composer-state.d.ts +0 -1
- package/dist/entries/use-feedback-composer-state.js +0 -1
- package/dist/entries/use-mobile.d.ts +0 -1
- package/dist/entries/use-mobile.js +0 -1
- package/dist/entries/utils.d.ts +0 -1
- package/dist/entries/utils.js +0 -1
- package/dist/entries/walkthrough.d.ts +0 -1
- package/dist/entries/walkthrough.js +0 -1
- package/dist/entries/workflow-timeline.d.ts +0 -1
- package/dist/entries/workflow-timeline.js +0 -1
- package/dist/hooks/use-mobile.d.ts +0 -1
- package/dist/hooks/use-mobile.js +0 -17
- package/dist/lib/browser-storage.d.ts +0 -12
- package/dist/lib/browser-storage.js +0 -42
- package/dist/lib/palette-presets.d.ts +0 -17
- package/dist/lib/palette-presets.js +0 -42
- package/dist/lib/palette-tokens.d.ts +0 -39
- package/dist/lib/palette-tokens.js +0 -133
- package/dist/lib/palette.d.ts +0 -83
- package/dist/lib/palette.js +0 -151
- package/dist/lib/utils.d.ts +0 -5
- package/dist/lib/utils.js +0 -8
- package/dist/style-imports.d.ts +0 -3
- /package/dist/{components/blocks/feedback-composer-types.js → feedback/comment-types.js} +0 -0
- /package/dist/{components/blocks/kanban-types.js → feedback/feedback-composer-types.js} +0 -0
- /package/dist/{components/walkthrough/runtime/walkthroughTypes.js → feedback/feedback-tracking-types.js} +0 -0
|
@@ -0,0 +1,247 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Tabs as BaseTabs } from "@base-ui/react/tabs";
|
|
3
|
+
import { DotsThreeIcon } from "@phosphor-icons/react";
|
|
4
|
+
import { createContext, useContext, useLayoutEffect, useMemo, useRef, useState } from "react";
|
|
5
|
+
import { createPortal } from "react-dom";
|
|
6
|
+
import { css, cx } from "#primitives/css";
|
|
7
|
+
import { icon } from "./icon.js";
|
|
8
|
+
import { useCiridaeLocale } from "./locale.js";
|
|
9
|
+
import { Menu } from "./menu.js";
|
|
10
|
+
// Shrinkable by default, so a tab row in a flex or grid row scrolls inside itself rather than
|
|
11
|
+
// widening the page.
|
|
12
|
+
const root = css({ minWidth: "0", maxWidth: "100%" });
|
|
13
|
+
export function TabsRoot({ className, ...props }) {
|
|
14
|
+
return _jsx(BaseTabs.Root, { ...props, className: cx(root, className) });
|
|
15
|
+
}
|
|
16
|
+
export const TabsPanel = BaseTabs.Panel;
|
|
17
|
+
const list = css({
|
|
18
|
+
display: "flex",
|
|
19
|
+
maxWidth: "100%",
|
|
20
|
+
alignItems: "center",
|
|
21
|
+
gap: "none",
|
|
22
|
+
overflowX: "auto",
|
|
23
|
+
scrollbarWidth: "none",
|
|
24
|
+
});
|
|
25
|
+
/** Finalization "Menu Tabs": tabs sit inside a bordered pill with a hairline inset. */
|
|
26
|
+
const containedList = css({
|
|
27
|
+
width: "max-content",
|
|
28
|
+
padding: "control.trackInset",
|
|
29
|
+
border: "1px solid token(colors.border.control)",
|
|
30
|
+
borderRadius: "pill",
|
|
31
|
+
background: "bg.control",
|
|
32
|
+
gap: "control.trackInset",
|
|
33
|
+
});
|
|
34
|
+
/* Text tabs: words only, the open one in the primary text, for a tray's or a sheet's filters. */
|
|
35
|
+
const textList = css({ "&[data-variant=text]": { gap: "layout.contentGap" } });
|
|
36
|
+
/* Underline tabs: words on a hairline, the open one underlined, for a panel's or a sheet's head. */
|
|
37
|
+
const underlineList = css({
|
|
38
|
+
// Raised over the base list's own gap, as the text list's is.
|
|
39
|
+
"&[data-variant=underline]": {
|
|
40
|
+
gap: "layout.clusterGap",
|
|
41
|
+
paddingInline: "panel.comfortable",
|
|
42
|
+
borderBottom: "1px solid token(colors.border.panel)",
|
|
43
|
+
},
|
|
44
|
+
});
|
|
45
|
+
const count = css({ color: "fg.muted", fontSize: "code", fontVariantNumeric: "tabular-nums" });
|
|
46
|
+
const tab = css({
|
|
47
|
+
display: "inline-flex",
|
|
48
|
+
alignItems: "center",
|
|
49
|
+
justifyContent: "center",
|
|
50
|
+
gap: "control.iconGap",
|
|
51
|
+
height: "control.small",
|
|
52
|
+
paddingInline: "control.tabInline",
|
|
53
|
+
border: "1px solid transparent",
|
|
54
|
+
borderRadius: "pill",
|
|
55
|
+
background: "transparent",
|
|
56
|
+
color: "fg.muted",
|
|
57
|
+
fontFamily: "sans",
|
|
58
|
+
fontSize: "body",
|
|
59
|
+
fontWeight: "medium",
|
|
60
|
+
lineHeight: "tight",
|
|
61
|
+
letterSpacing: "compact",
|
|
62
|
+
cursor: "pointer",
|
|
63
|
+
flexShrink: "0",
|
|
64
|
+
"&[data-icon-tone=bronze] svg": { color: "accent.bronze" },
|
|
65
|
+
_before: { display: "none" },
|
|
66
|
+
_hover: {
|
|
67
|
+
background: "bg.hover",
|
|
68
|
+
color: "fg.primary",
|
|
69
|
+
"& svg": { color: "inherit" },
|
|
70
|
+
_before: { display: "block" },
|
|
71
|
+
},
|
|
72
|
+
"&[data-active]": {
|
|
73
|
+
background: "bg.selected",
|
|
74
|
+
color: "fg.primary",
|
|
75
|
+
"& svg": { color: "inherit" },
|
|
76
|
+
_before: { display: "block" },
|
|
77
|
+
},
|
|
78
|
+
// Words only: no face, no inset, and focus underlines the word rather than boxing it.
|
|
79
|
+
"[data-variant=text] > &": {
|
|
80
|
+
height: "auto",
|
|
81
|
+
paddingBlock: "layout.tightGap",
|
|
82
|
+
paddingInline: "none",
|
|
83
|
+
border: "0",
|
|
84
|
+
background: "transparent",
|
|
85
|
+
_hover: { background: "transparent" },
|
|
86
|
+
"&[data-active]": { background: "transparent" },
|
|
87
|
+
// No glass edge either: the open word is the only mark.
|
|
88
|
+
"&::before, &:hover::before, &[data-active]::before": { display: "none" },
|
|
89
|
+
_focusVisible: {
|
|
90
|
+
boxShadow: "none",
|
|
91
|
+
outline: "none",
|
|
92
|
+
color: "fg.primary",
|
|
93
|
+
textDecoration: "underline",
|
|
94
|
+
textUnderlineOffset: "3px",
|
|
95
|
+
},
|
|
96
|
+
},
|
|
97
|
+
"[data-variant=underline] > &": {
|
|
98
|
+
height: "control.search",
|
|
99
|
+
paddingInline: "none",
|
|
100
|
+
border: "0",
|
|
101
|
+
borderBottom: "2px solid transparent",
|
|
102
|
+
borderRadius: "0",
|
|
103
|
+
marginBottom: "-1px",
|
|
104
|
+
background: "transparent",
|
|
105
|
+
_hover: { background: "transparent" },
|
|
106
|
+
"&[data-active]": { background: "transparent", borderBottomColor: "fg.primary" },
|
|
107
|
+
"&::before, &:hover::before, &[data-active]::before": { display: "none" },
|
|
108
|
+
_phone: { height: "control.search", paddingInline: "none" },
|
|
109
|
+
},
|
|
110
|
+
// Past the row's width, a tab waits in the "more" menu at the row's end.
|
|
111
|
+
"&[data-overflowed]": { display: "none" },
|
|
112
|
+
// Inside the tab: the list scrolls, so it clips anything past its 2px inset.
|
|
113
|
+
_focusVisible: { focusRing: "inset" },
|
|
114
|
+
"&:disabled, &[data-disabled]": { opacity: "disabled", cursor: "not-allowed" },
|
|
115
|
+
_phone: {
|
|
116
|
+
height: "control.compact",
|
|
117
|
+
paddingInline: "control.compactInline",
|
|
118
|
+
fontSize: "caption",
|
|
119
|
+
},
|
|
120
|
+
});
|
|
121
|
+
const group = css({ display: "flex", flexShrink: "0", borderRadius: "pill" });
|
|
122
|
+
export function TabsGroup({ border = "control", className, ...props }) {
|
|
123
|
+
return _jsx("span", { ...props, className: cx(group, className), "data-ciridae-ui": "", "data-edge": border });
|
|
124
|
+
}
|
|
125
|
+
const InTabsBarContext = createContext(false);
|
|
126
|
+
/*
|
|
127
|
+
* Moves the tabs that do not fit the row's width into a trailing "more" menu, measuring every tab
|
|
128
|
+
* as it would sit in the row. Runs whenever the tabs or the row's room change.
|
|
129
|
+
*/
|
|
130
|
+
function useOverflowedTabs(enabled, tabs) {
|
|
131
|
+
const listRef = useRef(null);
|
|
132
|
+
const moreRef = useRef(null);
|
|
133
|
+
const [overflowed, setOverflowed] = useState([]);
|
|
134
|
+
const [room, setRoom] = useState(0);
|
|
135
|
+
useLayoutEffect(() => {
|
|
136
|
+
const list = listRef.current;
|
|
137
|
+
const container = list?.parentElement;
|
|
138
|
+
if (!enabled || !container)
|
|
139
|
+
return;
|
|
140
|
+
const observer = new ResizeObserver(() => setRoom(container.clientWidth));
|
|
141
|
+
observer.observe(container);
|
|
142
|
+
return () => observer.disconnect();
|
|
143
|
+
}, [enabled]);
|
|
144
|
+
useLayoutEffect(() => {
|
|
145
|
+
const list = listRef.current;
|
|
146
|
+
const container = list?.parentElement;
|
|
147
|
+
if (!list || !container)
|
|
148
|
+
return;
|
|
149
|
+
const elements = [...list.children].filter((child) => child instanceof HTMLElement && child.getAttribute("role") === "tab");
|
|
150
|
+
for (const element of elements)
|
|
151
|
+
element.removeAttribute("data-overflowed");
|
|
152
|
+
const available = container.clientWidth;
|
|
153
|
+
const reserve = (moreRef.current?.offsetWidth ?? 0) + 4;
|
|
154
|
+
const fits = (element, width) => element.offsetLeft - list.offsetLeft + element.offsetWidth <= width;
|
|
155
|
+
const last = elements[elements.length - 1];
|
|
156
|
+
let firstHidden = elements.length;
|
|
157
|
+
if (enabled && last && !fits(last, available)) {
|
|
158
|
+
firstHidden = elements.findIndex((element) => !fits(element, available - reserve));
|
|
159
|
+
}
|
|
160
|
+
const next = elements.slice(firstHidden).map((element, offset) => {
|
|
161
|
+
element.setAttribute("data-overflowed", "");
|
|
162
|
+
const countText = element.querySelector("[data-tab-count]")?.textContent ?? undefined;
|
|
163
|
+
const label = [...element.childNodes]
|
|
164
|
+
.filter((node) => !(node instanceof Element && node.hasAttribute("data-tab-count")))
|
|
165
|
+
.map((node) => node.textContent ?? "")
|
|
166
|
+
.join("")
|
|
167
|
+
.trim();
|
|
168
|
+
return {
|
|
169
|
+
index: firstHidden + offset,
|
|
170
|
+
label,
|
|
171
|
+
count: countText,
|
|
172
|
+
active: element.hasAttribute("data-active"),
|
|
173
|
+
};
|
|
174
|
+
});
|
|
175
|
+
const key = (items) => items
|
|
176
|
+
.map((item) => `${item.index}:${item.label}:${item.count ?? ""}:${item.active}`)
|
|
177
|
+
.join("|");
|
|
178
|
+
if (key(next) !== key(overflowed))
|
|
179
|
+
setOverflowed(next);
|
|
180
|
+
}, [enabled, tabs, room, overflowed]);
|
|
181
|
+
const activate = (index) => {
|
|
182
|
+
const element = listRef.current?.querySelectorAll(":scope > [role=tab]")[index];
|
|
183
|
+
element?.click();
|
|
184
|
+
};
|
|
185
|
+
const activeHidden = overflowed.some((item) => item.active);
|
|
186
|
+
return { listRef, moreRef, overflowed, activeHidden, activate, room };
|
|
187
|
+
}
|
|
188
|
+
export function TabsList({ className, variant = "plain", overflow: ownOverflow, children, ...props }) {
|
|
189
|
+
const inBar = useContext(InTabsBarContext);
|
|
190
|
+
const overflow = ownOverflow ?? (inBar ? "menu" : "scroll");
|
|
191
|
+
const { labels } = useCiridaeLocale();
|
|
192
|
+
const { listRef, moreRef, overflowed, activeHidden, activate } = useOverflowedTabs(overflow === "menu", children);
|
|
193
|
+
return (_jsxs(BaseTabs.List, { ...props, ref: listRef, className: cx(list, variant === "contained" && containedList, variant === "text" && textList, variant === "underline" && underlineList, className), "data-ciridae-ui": "", "data-variant": variant, children: [children, overflow === "menu" && overflowed.length > 0 && (_jsx(Menu, { align: "end", trigger: _jsx("button", { type: "button", ref: moreRef, className: tab, "aria-label": labels.common.moreTabs, "data-ciridae-ui": "", "data-edge": "glass", "data-active": activeHidden || undefined, children: _jsx(DotsThreeIcon, { className: icon({ size: "small" }), weight: "bold" }) }), items: overflowed.map((item) => ({
|
|
194
|
+
label: item.label,
|
|
195
|
+
meta: item.count,
|
|
196
|
+
onSelect: () => activate(item.index),
|
|
197
|
+
})) }))] }));
|
|
198
|
+
}
|
|
199
|
+
export function TabsTab({ className, iconTone, href, render, count: tabCount, children, ...props }) {
|
|
200
|
+
const link = href !== undefined || render !== undefined;
|
|
201
|
+
return (_jsxs(BaseTabs.Tab, { ...props, render: render ?? (href !== undefined ? _jsx("a", { href: href }) : undefined), nativeButton: link ? false : props.nativeButton, className: cx(tab, className), "data-ciridae-ui": "", "data-edge": "glass", "data-icon-tone": iconTone, children: [children, tabCount !== undefined && tabCount !== null && (_jsx("span", { className: count, "data-tab-count": "", children: tabCount }))] }));
|
|
202
|
+
}
|
|
203
|
+
/*
|
|
204
|
+
* A page's tabs share one row with the open section's controls: tabs that do not fit go into the
|
|
205
|
+
* list's "more" menu rather than pushing the controls onto a line of their own. Only a phone
|
|
206
|
+
* drops the controls below.
|
|
207
|
+
*/
|
|
208
|
+
const bar = css({
|
|
209
|
+
display: "flex",
|
|
210
|
+
alignItems: "center",
|
|
211
|
+
justifyContent: "space-between",
|
|
212
|
+
flexWrap: "nowrap",
|
|
213
|
+
gap: "layout.contentGap",
|
|
214
|
+
minWidth: "0",
|
|
215
|
+
"& > :first-child": { flex: "1 1 auto", minWidth: "0", maxWidth: "100%" },
|
|
216
|
+
_phone: { flexWrap: "wrap" },
|
|
217
|
+
});
|
|
218
|
+
const barActions = css({
|
|
219
|
+
display: "flex",
|
|
220
|
+
alignItems: "center",
|
|
221
|
+
justifyContent: "flex-end",
|
|
222
|
+
flexWrap: "wrap",
|
|
223
|
+
gap: "layout.controlGap",
|
|
224
|
+
marginInlineStart: "auto",
|
|
225
|
+
flexShrink: "0",
|
|
226
|
+
"&:empty": { display: "none" },
|
|
227
|
+
});
|
|
228
|
+
const TabsBarSlotContext = createContext(null);
|
|
229
|
+
/**
|
|
230
|
+
* Wraps a page's `TabsBar` and the section below it, so the section can place its controls on the
|
|
231
|
+
* tab row with `TabsBarActions` while keeping its own state.
|
|
232
|
+
*/
|
|
233
|
+
export function TabsBarProvider({ children }) {
|
|
234
|
+
const [slot, setSlot] = useState(null);
|
|
235
|
+
const value = useMemo(() => ({ slot, setSlot }), [slot]);
|
|
236
|
+
return _jsx(TabsBarSlotContext.Provider, { value: value, children: children });
|
|
237
|
+
}
|
|
238
|
+
/** Section tabs (a `TabsRoot`) with a slot at the end of the row for the open section's controls. */
|
|
239
|
+
export function TabsBar({ className, children, ...props }) {
|
|
240
|
+
const context = useContext(TabsBarSlotContext);
|
|
241
|
+
return (_jsx(InTabsBarContext, { value: true, children: _jsxs("div", { ...props, className: cx(bar, className), "data-ciridae-ui": "", children: [children, _jsx("div", { ref: context?.setSlot, className: barActions })] }) }));
|
|
242
|
+
}
|
|
243
|
+
/** Renders the open section's controls at the end of the nearest `TabsBar` row. */
|
|
244
|
+
export function TabsBarActions({ children }) {
|
|
245
|
+
const slot = useContext(TabsBarSlotContext)?.slot;
|
|
246
|
+
return slot ? createPortal(children, slot) : null;
|
|
247
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { type ComponentProps } from "react";
|
|
2
|
+
import { type PaletteName } from "../theme/palettes.js";
|
|
3
|
+
import { type CiridaeLabels } from "./locale.js";
|
|
4
|
+
import type { CiridaeTheme } from "../theme/options.js";
|
|
5
|
+
/** A face the app offers: its id, its name in the menu and its CSS family. */
|
|
6
|
+
export type ThemeFontOption = {
|
|
7
|
+
id: string;
|
|
8
|
+
label: string;
|
|
9
|
+
family: string;
|
|
10
|
+
};
|
|
11
|
+
export type ThemeFontOptions = {
|
|
12
|
+
/** Heading faces; the body faces when left out. */
|
|
13
|
+
display?: readonly ThemeFontOption[];
|
|
14
|
+
sans: readonly ThemeFontOption[];
|
|
15
|
+
mono: readonly ThemeFontOption[];
|
|
16
|
+
};
|
|
17
|
+
/** The palette and the faces, by font id. */
|
|
18
|
+
export type ThemeCustomization = {
|
|
19
|
+
palette: PaletteName;
|
|
20
|
+
displayFont: string;
|
|
21
|
+
sansFont: string;
|
|
22
|
+
monoFont: string;
|
|
23
|
+
};
|
|
24
|
+
/** The palette and font families `ThemeProvider` (and `createCiridaePreset`) take for `value`. */
|
|
25
|
+
export declare function themeCustomizationTheme(value: ThemeCustomization, fonts: ThemeFontOptions): Pick<CiridaeTheme, "palette" | "fonts">;
|
|
26
|
+
/** A stored customization read back field by field, taking `fallback`'s for any it lacks. */
|
|
27
|
+
export declare function parseThemeCustomization(stored: unknown, fallback: ThemeCustomization, fonts: ThemeFontOptions): ThemeCustomization;
|
|
28
|
+
export type UseThemeCustomizationOptions<Value extends ThemeCustomization> = {
|
|
29
|
+
defaultValue: Value;
|
|
30
|
+
fonts: ThemeFontOptions;
|
|
31
|
+
/** Keeps the value in `localStorage`, as JSON, under this key. */
|
|
32
|
+
persistKey?: string;
|
|
33
|
+
/** Reads the stored JSON back; `parseThemeCustomization` covers a plain customization. */
|
|
34
|
+
parse: (stored: unknown) => Value;
|
|
35
|
+
};
|
|
36
|
+
/**
|
|
37
|
+
* A customization the app holds at its root: the value, a setter, and the `palette` and `fonts`
|
|
38
|
+
* to pass `ThemeProvider`. With `persistKey` it survives reloads; anything the app keeps beside
|
|
39
|
+
* the theme in `Value`, such as a brand name, is stored with it.
|
|
40
|
+
*/
|
|
41
|
+
export declare function useThemeCustomization<Value extends ThemeCustomization>({ defaultValue, fonts, persistKey, parse, }: UseThemeCustomizationOptions<Value>): {
|
|
42
|
+
value: Value;
|
|
43
|
+
setValue: import("@types/react").Dispatch<import("@types/react").SetStateAction<Value>>;
|
|
44
|
+
reset: () => void;
|
|
45
|
+
theme: Pick<CiridaeTheme, "fonts" | "palette">;
|
|
46
|
+
};
|
|
47
|
+
export type ThemeCustomizerProps<Value extends ThemeCustomization> = Omit<ComponentProps<"div">, "children" | "onChange"> & {
|
|
48
|
+
value: Value;
|
|
49
|
+
onValueChange: (value: Value) => void;
|
|
50
|
+
fonts: ThemeFontOptions;
|
|
51
|
+
labels?: Partial<CiridaeLabels["themeCustomizer"]>;
|
|
52
|
+
};
|
|
53
|
+
export declare function ThemeCustomizer<Value extends ThemeCustomization>({ value, onValueChange, fonts, labels: ownLabels, className, ...props }: ThemeCustomizerProps<Value>): import("@types/react").JSX.Element;
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
/*
|
|
3
|
+
* The Appearance controls: the palette (with each palette's swatches under the color theme on
|
|
4
|
+
* screen), the color theme (System, Light, Dark) and the display, body and mono faces from fonts
|
|
5
|
+
* the app offers. The palette and faces are the caller's `value`, which it hands to
|
|
6
|
+
* `ThemeProvider` (`useThemeCustomization` keeps one in `localStorage` and builds those props);
|
|
7
|
+
* the color theme is `ThemeProvider`'s own, so it is read and set through `useColorTheme`.
|
|
8
|
+
*/
|
|
9
|
+
import { useCallback, useEffect, useState } from "react";
|
|
10
|
+
import { css, cx } from "#primitives/css";
|
|
11
|
+
import { derivePaletteTokens } from "../theme/derive.js";
|
|
12
|
+
import { PALETTE_NAMES, palettes } from "../theme/palettes.js";
|
|
13
|
+
import { useColorTheme } from "./color-theme.js";
|
|
14
|
+
import { DrawerField, DrawerFieldRow } from "./drawer.js";
|
|
15
|
+
import { SegmentedControl, SegmentedOption } from "./form-layout.js";
|
|
16
|
+
import { useCiridaeLocale } from "./locale.js";
|
|
17
|
+
import { RadioCard, RadioCardGroup } from "./radio-card.js";
|
|
18
|
+
import { Select } from "./select.js";
|
|
19
|
+
function fontFamily(options, id) {
|
|
20
|
+
return options.find((option) => option.id === id)?.family;
|
|
21
|
+
}
|
|
22
|
+
/** The palette and font families `ThemeProvider` (and `createCiridaePreset`) take for `value`. */
|
|
23
|
+
export function themeCustomizationTheme(value, fonts) {
|
|
24
|
+
return {
|
|
25
|
+
palette: value.palette,
|
|
26
|
+
fonts: {
|
|
27
|
+
display: fontFamily(fonts.display ?? fonts.sans, value.displayFont),
|
|
28
|
+
sans: fontFamily(fonts.sans, value.sansFont),
|
|
29
|
+
mono: fontFamily(fonts.mono, value.monoFont),
|
|
30
|
+
},
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
/** A stored customization read back field by field, taking `fallback`'s for any it lacks. */
|
|
34
|
+
export function parseThemeCustomization(stored, fallback, fonts) {
|
|
35
|
+
if (typeof stored !== "object" || stored === null)
|
|
36
|
+
return fallback;
|
|
37
|
+
const fontId = (options, value, otherwise) => options.find((option) => option.id === value)?.id ?? otherwise;
|
|
38
|
+
const palette = "palette" in stored ? stored.palette : undefined;
|
|
39
|
+
return {
|
|
40
|
+
palette: PALETTE_NAMES.find((name) => name === palette) ?? fallback.palette,
|
|
41
|
+
displayFont: fontId(fonts.display ?? fonts.sans, "displayFont" in stored ? stored.displayFont : undefined, fallback.displayFont),
|
|
42
|
+
sansFont: fontId(fonts.sans, "sansFont" in stored ? stored.sansFont : undefined, fallback.sansFont),
|
|
43
|
+
monoFont: fontId(fonts.mono, "monoFont" in stored ? stored.monoFont : undefined, fallback.monoFont),
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* A customization the app holds at its root: the value, a setter, and the `palette` and `fonts`
|
|
48
|
+
* to pass `ThemeProvider`. With `persistKey` it survives reloads; anything the app keeps beside
|
|
49
|
+
* the theme in `Value`, such as a brand name, is stored with it.
|
|
50
|
+
*/
|
|
51
|
+
export function useThemeCustomization({ defaultValue, fonts, persistKey, parse, }) {
|
|
52
|
+
const [value, setValue] = useState(() => {
|
|
53
|
+
if (!persistKey)
|
|
54
|
+
return defaultValue;
|
|
55
|
+
try {
|
|
56
|
+
const text = globalThis.localStorage?.getItem(persistKey);
|
|
57
|
+
return text ? parse(JSON.parse(text)) : defaultValue;
|
|
58
|
+
}
|
|
59
|
+
catch {
|
|
60
|
+
return defaultValue;
|
|
61
|
+
}
|
|
62
|
+
});
|
|
63
|
+
useEffect(() => {
|
|
64
|
+
if (!persistKey)
|
|
65
|
+
return;
|
|
66
|
+
try {
|
|
67
|
+
globalThis.localStorage?.setItem(persistKey, JSON.stringify(value));
|
|
68
|
+
}
|
|
69
|
+
catch {
|
|
70
|
+
// The reader loses persistence across reloads, not the look they chose.
|
|
71
|
+
}
|
|
72
|
+
}, [persistKey, value]);
|
|
73
|
+
const reset = useCallback(() => setValue(defaultValue), [defaultValue]);
|
|
74
|
+
return { value, setValue, reset, theme: themeCustomizationTheme(value, fonts) };
|
|
75
|
+
}
|
|
76
|
+
const root = css({ display: "flex", flexDirection: "column", gap: "layout.clusterGap" });
|
|
77
|
+
const swatches = css({ display: "flex", gap: "layout.tightGap" });
|
|
78
|
+
const swatch = css({
|
|
79
|
+
width: "indicator.badge",
|
|
80
|
+
height: "indicator.badge",
|
|
81
|
+
borderRadius: "round",
|
|
82
|
+
boxShadow: "inset 0 0 0 1px token(colors.border.glass)",
|
|
83
|
+
});
|
|
84
|
+
/** The palette's accent, primary face and four status hues, under the color theme on screen. */
|
|
85
|
+
function PaletteSwatches({ name, colorTheme }) {
|
|
86
|
+
const tokens = derivePaletteTokens(palettes[name]);
|
|
87
|
+
const themed = (value) => colorTheme === "light" ? value._light : value.base;
|
|
88
|
+
const fills = [
|
|
89
|
+
themed(tokens.colors["accent.brand"]),
|
|
90
|
+
themed(tokens.colors["bg.primary"]),
|
|
91
|
+
themed(tokens.colors["accent.green"]),
|
|
92
|
+
themed(tokens.colors["accent.red"]),
|
|
93
|
+
themed(tokens.colors["accent.yellow"]),
|
|
94
|
+
themed(tokens.colors["accent.blue"]),
|
|
95
|
+
];
|
|
96
|
+
return (_jsx("span", { className: swatches, "aria-hidden": "true", children: fills.map((fill, index) => (_jsx("span", { className: swatch, style: { background: fill } }, index))) }));
|
|
97
|
+
}
|
|
98
|
+
export function ThemeCustomizer({ value, onValueChange, fonts, labels: ownLabels, className, ...props }) {
|
|
99
|
+
const { labels: localeLabels } = useCiridaeLocale();
|
|
100
|
+
const labels = { ...localeLabels.themeCustomizer, ...ownLabels };
|
|
101
|
+
const { theme, preference, setPreference } = useColorTheme();
|
|
102
|
+
const colorThemes = [
|
|
103
|
+
{ value: "system", label: labels.system },
|
|
104
|
+
{ value: "light", label: labels.light },
|
|
105
|
+
{ value: "dark", label: labels.dark },
|
|
106
|
+
];
|
|
107
|
+
const fontSelect = (label, options, selected, pick) => (_jsx(DrawerField, { label: label, children: _jsx(Select, { label: label, size: "medium", options: options.map((option) => ({ value: option.id, label: option.label })), value: selected, onValueChange: (id) => {
|
|
108
|
+
if (id !== null && options.some((option) => option.id === id))
|
|
109
|
+
pick(id);
|
|
110
|
+
} }) }));
|
|
111
|
+
return (_jsxs("div", { ...props, className: cx(root, className), "data-ciridae-ui": "", children: [_jsx(DrawerField, { label: labels.palette, children: _jsx(RadioCardGroup, { name: "palette", label: labels.palette, value: value.palette, onValueChange: (next) => {
|
|
112
|
+
const palette = PALETTE_NAMES.find((name) => name === next);
|
|
113
|
+
if (palette)
|
|
114
|
+
onValueChange({ ...value, palette });
|
|
115
|
+
}, children: PALETTE_NAMES.map((name) => (_jsx(RadioCard, { value: name, title: labels.paletteName(name), source: _jsx(PaletteSwatches, { name: name, colorTheme: theme }) }, name))) }) }), _jsx(DrawerField, { label: labels.colorTheme, children: _jsx(SegmentedControl, { "aria-label": labels.colorTheme, children: colorThemes.map((option) => (_jsx(SegmentedOption, { selected: option.value === preference, onClick: () => setPreference(option.value), children: option.label }, option.value))) }) }), _jsxs(DrawerFieldRow, { children: [fontSelect(labels.displayFont, fonts.display ?? fonts.sans, value.displayFont, (id) => onValueChange({ ...value, displayFont: id })), fontSelect(labels.sansFont, fonts.sans, value.sansFont, (id) => onValueChange({ ...value, sansFont: id }))] }), _jsx(DrawerFieldRow, { children: fontSelect(labels.monoFont, fonts.mono, value.monoFont, (id) => onValueChange({ ...value, monoFont: id })) })] }));
|
|
116
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { toast, type ToasterProps } from "sonner";
|
|
2
|
+
import type { ComponentProps, ReactNode } from "react";
|
|
3
|
+
export { toast };
|
|
4
|
+
/** The toast stack, in the kit's look: mount one at the app's root. */
|
|
5
|
+
export declare function Toaster(props: ToasterProps): import("@types/react").JSX.Element;
|
|
6
|
+
export type ToastVariant = "success" | "progress" | "info" | "warning" | "error";
|
|
7
|
+
export type ToastOptions = {
|
|
8
|
+
title: ReactNode;
|
|
9
|
+
/** One muted line under the message, such as an error ID to copy. */
|
|
10
|
+
description?: ReactNode;
|
|
11
|
+
variant?: ToastVariant;
|
|
12
|
+
/** Milliseconds it stays; `0` keeps it until dismissed. An error stays by default. */
|
|
13
|
+
timeout?: number;
|
|
14
|
+
/** One text button, such as Undo; its children are the label. */
|
|
15
|
+
actionProps?: Pick<ComponentProps<"button">, "children" | "onClick">;
|
|
16
|
+
};
|
|
17
|
+
/** Raises a toast with the kit's options, returning its id. */
|
|
18
|
+
declare function addToast({ title: message, description: detail, variant, timeout, actionProps, }: ToastOptions): string | number;
|
|
19
|
+
/** The kit's toast calls: `add` raises one and returns its id, `close` dismisses it. */
|
|
20
|
+
export declare function useToast(): {
|
|
21
|
+
add: typeof addToast;
|
|
22
|
+
close: (id?: string | number) => string | number;
|
|
23
|
+
};
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
/*
|
|
3
|
+
* Toasts are sonner's, in the kit's look: a compact card with a tone icon, the message, an
|
|
4
|
+
* optional muted line under it, an optional action and a close button. Mount one `Toaster` at the
|
|
5
|
+
* app's root; raise toasts with `toast` from anywhere, or `useToast().add` with the kit's options.
|
|
6
|
+
*/
|
|
7
|
+
import { CheckCircleIcon, InfoIcon, SpinnerGapIcon, WarningCircleIcon, WarningIcon, XIcon, } from "@phosphor-icons/react";
|
|
8
|
+
import { Toaster as SonnerToaster, toast } from "sonner";
|
|
9
|
+
import { css, cx } from "#primitives/css";
|
|
10
|
+
import { icon, spinning } from "./icon.js";
|
|
11
|
+
import { useCiridaeLocale } from "./locale.js";
|
|
12
|
+
export { toast };
|
|
13
|
+
const card = css({
|
|
14
|
+
display: "flex",
|
|
15
|
+
alignItems: "flex-start",
|
|
16
|
+
gap: "layout.controlGap",
|
|
17
|
+
width: "max-content",
|
|
18
|
+
maxWidth: "min(360px, calc(100vw - token(spacing.layout.pageGap) * 2))",
|
|
19
|
+
paddingBlock: "control.block",
|
|
20
|
+
paddingInline: "control.iconInline",
|
|
21
|
+
border: "1px solid token(colors.border.control)",
|
|
22
|
+
borderRadius: "action",
|
|
23
|
+
background: "bg.card",
|
|
24
|
+
color: "fg.primary",
|
|
25
|
+
boxShadow: "toast",
|
|
26
|
+
textStyle: "body",
|
|
27
|
+
fontFamily: "sans",
|
|
28
|
+
lineHeight: "compact",
|
|
29
|
+
pointerEvents: "auto",
|
|
30
|
+
});
|
|
31
|
+
const content = css({ display: "grid", gap: "2px", flex: "1", minWidth: "0" });
|
|
32
|
+
// Capped so a long message, such as a raw server error, can't grow the toast down the screen.
|
|
33
|
+
const title = css({ fontWeight: "medium", lineClamp: "3", overflowWrap: "anywhere" });
|
|
34
|
+
const description = css({
|
|
35
|
+
color: "fg.muted",
|
|
36
|
+
fontSize: "caption",
|
|
37
|
+
lineClamp: "2",
|
|
38
|
+
overflowWrap: "anywhere",
|
|
39
|
+
});
|
|
40
|
+
const iconSlot = css({
|
|
41
|
+
display: "inline-flex",
|
|
42
|
+
height: "1lh",
|
|
43
|
+
alignItems: "center",
|
|
44
|
+
flexShrink: "0",
|
|
45
|
+
});
|
|
46
|
+
const actionButton = css({
|
|
47
|
+
flexShrink: "0",
|
|
48
|
+
padding: "none",
|
|
49
|
+
border: "0",
|
|
50
|
+
background: "transparent",
|
|
51
|
+
color: "accent.brand",
|
|
52
|
+
font: "inherit",
|
|
53
|
+
fontWeight: "medium",
|
|
54
|
+
cursor: "pointer",
|
|
55
|
+
_hover: { textDecoration: "underline" },
|
|
56
|
+
_focusVisible: { focusRing: "outer" },
|
|
57
|
+
});
|
|
58
|
+
// Sonner places its close button in the card's corner; the kit's sits at the end of the row.
|
|
59
|
+
const closeButton = css({
|
|
60
|
+
position: "static!",
|
|
61
|
+
order: "1",
|
|
62
|
+
display: "grid",
|
|
63
|
+
placeItems: "center",
|
|
64
|
+
flexShrink: "0",
|
|
65
|
+
width: "control.mark",
|
|
66
|
+
height: "control.mark",
|
|
67
|
+
padding: "none",
|
|
68
|
+
border: "0",
|
|
69
|
+
borderRadius: "round",
|
|
70
|
+
background: "transparent",
|
|
71
|
+
color: "fg.muted",
|
|
72
|
+
transform: "none!",
|
|
73
|
+
cursor: "pointer",
|
|
74
|
+
_hover: { color: "fg.primary", background: "bg.hover" },
|
|
75
|
+
_focusVisible: { focusRing: "outer" },
|
|
76
|
+
});
|
|
77
|
+
const toneIcon = {
|
|
78
|
+
success: css({ color: "accent.green" }),
|
|
79
|
+
info: css({ color: "accent.blue" }),
|
|
80
|
+
warning: css({ color: "accent.yellow" }),
|
|
81
|
+
danger: css({ color: "accent.red" }),
|
|
82
|
+
};
|
|
83
|
+
/** The toast stack, in the kit's look: mount one at the app's root. */
|
|
84
|
+
export function Toaster(props) {
|
|
85
|
+
const { labels, dir } = useCiridaeLocale();
|
|
86
|
+
const small = icon({ size: "small" });
|
|
87
|
+
return (_jsx(SonnerToaster, { position: "bottom-right", gap: 6,
|
|
88
|
+
// Listed apart rather than stacked under each other, so every message reads at once.
|
|
89
|
+
expand: true, closeButton: true, dir: dir, icons: {
|
|
90
|
+
success: _jsx(CheckCircleIcon, { className: cx(small, toneIcon.success), weight: "fill" }),
|
|
91
|
+
info: _jsx(InfoIcon, { className: cx(small, toneIcon.info), weight: "fill" }),
|
|
92
|
+
warning: _jsx(WarningCircleIcon, { className: cx(small, toneIcon.warning), weight: "fill" }),
|
|
93
|
+
error: _jsx(WarningIcon, { className: cx(small, toneIcon.danger), weight: "fill" }),
|
|
94
|
+
loading: _jsx(SpinnerGapIcon, { className: cx(small, toneIcon.info, spinning) }),
|
|
95
|
+
close: _jsx(XIcon, { className: icon({ size: "compact" }) }),
|
|
96
|
+
}, containerAriaLabel: labels.notifications.title, ...props, toastOptions: {
|
|
97
|
+
unstyled: true,
|
|
98
|
+
...props.toastOptions,
|
|
99
|
+
classNames: {
|
|
100
|
+
toast: card,
|
|
101
|
+
content,
|
|
102
|
+
title,
|
|
103
|
+
description,
|
|
104
|
+
icon: iconSlot,
|
|
105
|
+
actionButton,
|
|
106
|
+
closeButton,
|
|
107
|
+
...props.toastOptions?.classNames,
|
|
108
|
+
},
|
|
109
|
+
} }));
|
|
110
|
+
}
|
|
111
|
+
/** Raises a toast with the kit's options, returning its id. */
|
|
112
|
+
function addToast({ title: message, description: detail, variant, timeout, actionProps, }) {
|
|
113
|
+
const duration = timeout ?? (variant === "error" ? 0 : undefined);
|
|
114
|
+
const options = {
|
|
115
|
+
description: detail,
|
|
116
|
+
duration: duration === 0 ? Infinity : duration,
|
|
117
|
+
action: actionProps && {
|
|
118
|
+
label: actionProps.children,
|
|
119
|
+
onClick: (event) => actionProps.onClick?.(event),
|
|
120
|
+
},
|
|
121
|
+
};
|
|
122
|
+
switch (variant) {
|
|
123
|
+
case "success":
|
|
124
|
+
return toast.success(message, options);
|
|
125
|
+
case "error":
|
|
126
|
+
return toast.error(message, options);
|
|
127
|
+
case "warning":
|
|
128
|
+
return toast.warning(message, options);
|
|
129
|
+
case "progress":
|
|
130
|
+
return toast.loading(message, options);
|
|
131
|
+
case "info":
|
|
132
|
+
return toast.info(message, options);
|
|
133
|
+
case undefined:
|
|
134
|
+
return toast(message, options);
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
/** The kit's toast calls: `add` raises one and returns its id, `close` dismisses it. */
|
|
138
|
+
export function useToast() {
|
|
139
|
+
return { add: addToast, close: (id) => toast.dismiss(id) };
|
|
140
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import type { ComponentProps, ReactElement, ReactNode } from "react";
|
|
2
|
+
export type UserChipAction = {
|
|
3
|
+
label: string;
|
|
4
|
+
onClick: () => void;
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
};
|
|
7
|
+
/** A row of the profile card, such as View profile or a persona's policies. */
|
|
8
|
+
export type UserProfileAction = UserChipAction & {
|
|
9
|
+
icon?: ReactNode;
|
|
10
|
+
};
|
|
11
|
+
export type UserProfile = {
|
|
12
|
+
/** Their role or what the agent does, such as "Controller" or "Payables agent". */
|
|
13
|
+
title?: string;
|
|
14
|
+
email?: string;
|
|
15
|
+
/** What you can do with them, as rows at the foot of the card. */
|
|
16
|
+
actions?: readonly UserProfileAction[];
|
|
17
|
+
};
|
|
18
|
+
type UserIdentity = {
|
|
19
|
+
name: string;
|
|
20
|
+
kind?: "user" | "agent";
|
|
21
|
+
/** A photo; without one the avatar shows initials. */
|
|
22
|
+
src?: string;
|
|
23
|
+
/** A mark in place of initials, for an actor that is not a person, such as a sync or a rule. */
|
|
24
|
+
icon?: ReactNode;
|
|
25
|
+
};
|
|
26
|
+
/** Where the name leads: an address, or a router's link element such as `<Link to="...">`. */
|
|
27
|
+
type UserLink = {
|
|
28
|
+
href?: string;
|
|
29
|
+
renderLink?: ReactElement;
|
|
30
|
+
};
|
|
31
|
+
export type UserChipProps = Omit<ComponentProps<"span">, "children"> & UserIdentity & UserLink & {
|
|
32
|
+
/** What they are doing, or their role. */
|
|
33
|
+
detail?: ReactNode;
|
|
34
|
+
action?: UserChipAction;
|
|
35
|
+
profile?: UserProfile;
|
|
36
|
+
size?: "regular" | "compact";
|
|
37
|
+
};
|
|
38
|
+
export declare function UserChip({ name, kind, src, icon, detail, action, profile, size, href, renderLink, className, ...props }: UserChipProps): import("@types/react").JSX.Element;
|
|
39
|
+
/** Just the name, opening the same profile card when there is one: an author under a message. */
|
|
40
|
+
export declare function UserName({ profile, href, renderLink, ...who }: UserIdentity & UserLink & {
|
|
41
|
+
profile?: UserProfile;
|
|
42
|
+
}): import("@types/react").JSX.Element;
|
|
43
|
+
/** Someone who takes part in a record: a person, or an agent persona, as the app knows them. */
|
|
44
|
+
export type ChipParticipant = {
|
|
45
|
+
id: string;
|
|
46
|
+
name: string;
|
|
47
|
+
kind: "user" | "agent";
|
|
48
|
+
/** Their role, or what the agent does: "Controller", "Payables agent". */
|
|
49
|
+
title?: string;
|
|
50
|
+
email?: string;
|
|
51
|
+
/** A photo; agents draw their own mark. */
|
|
52
|
+
src?: string;
|
|
53
|
+
/** What the agent does, in a sentence. */
|
|
54
|
+
duty?: string;
|
|
55
|
+
};
|
|
56
|
+
export type ParticipantChipProps = Omit<UserChipProps, "name" | "kind" | "src" | "icon" | "profile"> & {
|
|
57
|
+
participant: ChipParticipant;
|
|
58
|
+
/** Rows at the foot of the profile card, such as View profile. */
|
|
59
|
+
actions?: readonly UserProfileAction[];
|
|
60
|
+
};
|
|
61
|
+
/**
|
|
62
|
+
* A participant as a `UserChip` whose name opens their profile card: their title and email, and
|
|
63
|
+
* `actions`. `href` or `renderLink` makes the name lead to their page as well.
|
|
64
|
+
*/
|
|
65
|
+
export declare function ParticipantChip({ participant, actions, ...chipProps }: ParticipantChipProps): import("@types/react").JSX.Element;
|
|
66
|
+
export {};
|