@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,174 @@
|
|
|
1
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { CheckIcon, CopyIcon } from "@phosphor-icons/react";
|
|
3
|
+
import { cloneElement } from "react";
|
|
4
|
+
import { css, cx } from "#primitives/css";
|
|
5
|
+
import { IconButton } from "./button.js";
|
|
6
|
+
import { useCopy } from "./copyable-id.js";
|
|
7
|
+
import { Avatar } from "./data-display.js";
|
|
8
|
+
import { icon as iconStyle } from "./icon.js";
|
|
9
|
+
import { useCiridaeLocale } from "./locale.js";
|
|
10
|
+
import { Popover } from "./overlays.js";
|
|
11
|
+
/*
|
|
12
|
+
* Someone in a line of text, a person or an agent persona: their avatar, name and what they are
|
|
13
|
+
* doing, with an optional action at the end, such as a nudge. Agents take their own mark in place
|
|
14
|
+
* of initials. With a `profile`, the name opens a card on hover, click or keyboard: who they are,
|
|
15
|
+
* their email to copy, and what you can do with them.
|
|
16
|
+
*/
|
|
17
|
+
const chip = css({
|
|
18
|
+
display: "inline-flex",
|
|
19
|
+
alignItems: "center",
|
|
20
|
+
gap: "layout.controlGap",
|
|
21
|
+
maxWidth: "100%",
|
|
22
|
+
minWidth: "0",
|
|
23
|
+
height: "workspace.avatar",
|
|
24
|
+
color: "fg.primary",
|
|
25
|
+
fontFamily: "sans",
|
|
26
|
+
fontSize: "body",
|
|
27
|
+
fontWeight: "medium",
|
|
28
|
+
letterSpacing: "compact",
|
|
29
|
+
whiteSpace: "nowrap",
|
|
30
|
+
// A table cell's chip: a row's height, a smaller avatar.
|
|
31
|
+
"&[data-size=compact]": {
|
|
32
|
+
gap: "control.iconGap",
|
|
33
|
+
height: "avatar.row",
|
|
34
|
+
fontSize: "caption",
|
|
35
|
+
},
|
|
36
|
+
});
|
|
37
|
+
const person = css({
|
|
38
|
+
display: "inline-flex",
|
|
39
|
+
alignItems: "center",
|
|
40
|
+
gap: "inherit",
|
|
41
|
+
minWidth: "0",
|
|
42
|
+
maxWidth: "100%",
|
|
43
|
+
padding: "none",
|
|
44
|
+
border: "0",
|
|
45
|
+
background: "transparent",
|
|
46
|
+
color: "inherit",
|
|
47
|
+
font: "inherit",
|
|
48
|
+
letterSpacing: "inherit",
|
|
49
|
+
textDecoration: "none",
|
|
50
|
+
"&:is(button, a)": {
|
|
51
|
+
cursor: "pointer",
|
|
52
|
+
_hover: { "& > [data-name], &[data-name]": { textDecoration: "underline" } },
|
|
53
|
+
},
|
|
54
|
+
_focusVisible: { focusRing: "outer" },
|
|
55
|
+
});
|
|
56
|
+
// The detail gives way first, then the name truncates.
|
|
57
|
+
const nameText = css({ minWidth: "0", overflow: "hidden", textOverflow: "ellipsis" });
|
|
58
|
+
const detailText = css({
|
|
59
|
+
flexShrink: "2",
|
|
60
|
+
minWidth: "0",
|
|
61
|
+
overflow: "hidden",
|
|
62
|
+
textOverflow: "ellipsis",
|
|
63
|
+
color: "fg.muted",
|
|
64
|
+
fontSize: "code",
|
|
65
|
+
});
|
|
66
|
+
const actionButton = css({
|
|
67
|
+
flexShrink: "0",
|
|
68
|
+
padding: "none",
|
|
69
|
+
border: "0",
|
|
70
|
+
background: "transparent",
|
|
71
|
+
color: "accent.brand",
|
|
72
|
+
font: "inherit",
|
|
73
|
+
cursor: "pointer",
|
|
74
|
+
_hover: { textDecoration: "underline" },
|
|
75
|
+
_focusVisible: { focusRing: "outer" },
|
|
76
|
+
_disabled: { cursor: "default", opacity: "disabled", textDecoration: "none" },
|
|
77
|
+
});
|
|
78
|
+
/* The card: flush sections like a menu's, its actions as rows under a hairline. */
|
|
79
|
+
const card = css({
|
|
80
|
+
display: "grid",
|
|
81
|
+
minWidth: "overlay.menu",
|
|
82
|
+
maxWidth: "min(token(sizes.overlay.tooltip), calc(100vw - token(spacing.layout.pageGap) * 2))",
|
|
83
|
+
color: "fg.primary",
|
|
84
|
+
fontSize: "caption",
|
|
85
|
+
fontWeight: "regular",
|
|
86
|
+
lineHeight: "compact",
|
|
87
|
+
letterSpacing: "compact",
|
|
88
|
+
whiteSpace: "normal",
|
|
89
|
+
});
|
|
90
|
+
// The avatar's column, then everything about them in one column beside it.
|
|
91
|
+
const cardHeader = css({
|
|
92
|
+
display: "grid",
|
|
93
|
+
gridTemplateColumns: "auto minmax(0, 1fr)",
|
|
94
|
+
alignItems: "center",
|
|
95
|
+
columnGap: "layout.controlGap",
|
|
96
|
+
rowGap: "control.compactBlock",
|
|
97
|
+
paddingInline: "control.compactInline",
|
|
98
|
+
paddingBlock: "control.compactInline",
|
|
99
|
+
});
|
|
100
|
+
const cardName = css({
|
|
101
|
+
display: "grid",
|
|
102
|
+
minWidth: "0",
|
|
103
|
+
fontSize: "body",
|
|
104
|
+
fontWeight: "medium",
|
|
105
|
+
"& > *": { overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "nowrap" },
|
|
106
|
+
});
|
|
107
|
+
const cardMuted = css({ color: "fg.muted", fontSize: "caption", fontWeight: "regular" });
|
|
108
|
+
const emailRow = css({
|
|
109
|
+
gridColumn: "2",
|
|
110
|
+
display: "flex",
|
|
111
|
+
alignItems: "center",
|
|
112
|
+
gap: "control.iconGap",
|
|
113
|
+
marginBlock: "calc(token(spacing.layout.tightGap) * -1)",
|
|
114
|
+
color: "fg.secondary",
|
|
115
|
+
"& > span": { flex: "1", minWidth: "0", overflow: "hidden", textOverflow: "ellipsis" },
|
|
116
|
+
});
|
|
117
|
+
const cardActions = css({
|
|
118
|
+
display: "grid",
|
|
119
|
+
paddingBlock: "menu.inset",
|
|
120
|
+
borderTop: "1px solid token(colors.border.subtle)",
|
|
121
|
+
});
|
|
122
|
+
const cardAction = css({
|
|
123
|
+
display: "flex",
|
|
124
|
+
alignItems: "center",
|
|
125
|
+
gap: "layout.controlGap",
|
|
126
|
+
minHeight: "menu.item",
|
|
127
|
+
paddingInline: "control.compactInline",
|
|
128
|
+
border: "0",
|
|
129
|
+
background: "transparent",
|
|
130
|
+
color: "fg.primary",
|
|
131
|
+
font: "inherit",
|
|
132
|
+
textAlign: "start",
|
|
133
|
+
cursor: "pointer",
|
|
134
|
+
outline: "none",
|
|
135
|
+
"& > svg": { color: "fg.muted" },
|
|
136
|
+
"&:hover, &:focus-visible": { background: "bg.rowHover" },
|
|
137
|
+
_disabled: { opacity: "disabled", cursor: "not-allowed" },
|
|
138
|
+
});
|
|
139
|
+
/** The name's element: a link where it leads somewhere, a button where it only opens the card. */
|
|
140
|
+
function nameElement({ href, renderLink }, props, opensCard) {
|
|
141
|
+
const shared = { ...props, "data-profile-trigger": opensCard ? "" : undefined };
|
|
142
|
+
if (renderLink)
|
|
143
|
+
return cloneElement(renderLink, shared);
|
|
144
|
+
if (href !== undefined)
|
|
145
|
+
return _jsx("a", { href: href, ...shared });
|
|
146
|
+
return opensCard ? _jsx("button", { type: "button", ...shared }) : _jsx("span", { ...shared });
|
|
147
|
+
}
|
|
148
|
+
export function UserChip({ name, kind = "user", src, icon, detail, action, profile, size = "regular", href, renderLink, className, ...props }) {
|
|
149
|
+
const who = (_jsxs(_Fragment, { children: [_jsx(Avatar, { label: name, kind: kind, src: src, icon: icon, size: size === "compact" ? "small" : "row", "aria-hidden": "true" }), _jsx("span", { className: nameText, "data-name": "", children: name }), detail && _jsx("span", { className: detailText, children: detail })] }));
|
|
150
|
+
return (_jsxs("span", { ...props, className: cx(chip, className), "data-size": size, "data-ciridae-ui": "", children: [profile ? (_jsx(ProfilePopover, { who: { name, kind, src, icon }, profile: profile, trigger: nameElement({ href, renderLink }, { className: person, children: who }, true) })) : (nameElement({ href, renderLink }, { className: person, children: who }, false)), action && (_jsx("button", { type: "button", className: actionButton, disabled: action.disabled, onClick: action.onClick, children: action.label }))] }));
|
|
151
|
+
}
|
|
152
|
+
/** Just the name, opening the same profile card when there is one: an author under a message. */
|
|
153
|
+
export function UserName({ profile, href, renderLink, ...who }) {
|
|
154
|
+
const name = nameElement({ href, renderLink }, { className: person, children: who.name, "data-name": "" }, profile !== undefined);
|
|
155
|
+
if (!profile)
|
|
156
|
+
return name;
|
|
157
|
+
return _jsx(ProfilePopover, { who: who, profile: profile, trigger: name });
|
|
158
|
+
}
|
|
159
|
+
function ProfilePopover({ who, profile, trigger, }) {
|
|
160
|
+
return (_jsx(Popover, { trigger: trigger, openOnHover: true, density: "flush", children: _jsxs("div", { className: card, children: [_jsxs("div", { className: cardHeader, children: [_jsx(Avatar, { label: who.name, kind: who.kind, src: who.src, icon: who.icon, size: "medium", "aria-hidden": "true" }), _jsxs("span", { className: cardName, children: [_jsx("span", { children: who.name }), profile.title && _jsx("span", { className: cardMuted, children: profile.title })] }), profile.email && _jsx(EmailRow, { email: profile.email })] }), profile.actions && profile.actions.length > 0 && (_jsx("div", { className: cardActions, children: profile.actions.map((action) => (_jsxs("button", { type: "button", className: cardAction, disabled: action.disabled, onClick: action.onClick, children: [action.icon, action.label] }, action.label))) }))] }) }));
|
|
161
|
+
}
|
|
162
|
+
function EmailRow({ email }) {
|
|
163
|
+
const { copied, copy } = useCopy(email);
|
|
164
|
+
const { labels } = useCiridaeLocale();
|
|
165
|
+
const Mark = copied ? CheckIcon : CopyIcon;
|
|
166
|
+
return (_jsxs("div", { className: emailRow, children: [_jsx("span", { title: email, children: email }), _jsx(IconButton, { "aria-label": labels.userChip.copyEmail, variant: "ghost", size: "compact", onClick: copy, children: _jsx(Mark, { className: iconStyle({ size: "small" }) }) })] }));
|
|
167
|
+
}
|
|
168
|
+
/**
|
|
169
|
+
* A participant as a `UserChip` whose name opens their profile card: their title and email, and
|
|
170
|
+
* `actions`. `href` or `renderLink` makes the name lead to their page as well.
|
|
171
|
+
*/
|
|
172
|
+
export function ParticipantChip({ participant, actions, ...chipProps }) {
|
|
173
|
+
return (_jsx(UserChip, { ...chipProps, name: participant.name, kind: participant.kind, src: participant.src, profile: { title: participant.title, email: participant.email || undefined, actions } }));
|
|
174
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { type ComponentProps, type ReactNode } from "react";
|
|
2
|
+
/**
|
|
3
|
+
* A multi-step flow shown one step at a time. Each step slides in from the right as the flow
|
|
4
|
+
* advances and from the left as it goes back; the direction comes from comparing `step` with the
|
|
5
|
+
* step shown before it. `steps` labels each step for the progress bar and assistive technology.
|
|
6
|
+
*/
|
|
7
|
+
export declare function Wizard({ step, steps, progress, showProgress, state, children, className, ...props }: ComponentProps<"div"> & {
|
|
8
|
+
/** Index of the step on screen. */
|
|
9
|
+
step: number;
|
|
10
|
+
steps: readonly string[];
|
|
11
|
+
/**
|
|
12
|
+
* Which of `steps` the progress bar shows as reached, when it differs from `step`: a detour,
|
|
13
|
+
* such as a guide opened from one step, slides like a step but does not advance the flow.
|
|
14
|
+
*/
|
|
15
|
+
progress?: number;
|
|
16
|
+
/** Hide the stepper without losing step transitions. Results always hide it. */
|
|
17
|
+
showProgress?: boolean;
|
|
18
|
+
/** Results skip the step slide and center in a Dialog body, without inheriting earlier steps' height. */
|
|
19
|
+
state?: "step" | "result";
|
|
20
|
+
/** The current step's content. */
|
|
21
|
+
children: ReactNode;
|
|
22
|
+
}): import("@types/react").JSX.Element;
|
|
23
|
+
/** The end of a wizard: what happened, and what the reader can do next. */
|
|
24
|
+
export declare function WizardResult({ variant, icon: mark, title, description, children, }: {
|
|
25
|
+
/** `progress` is the wait before an outcome, such as a sign-in still open in another tab. */
|
|
26
|
+
variant: "success" | "failure" | "progress";
|
|
27
|
+
/** The entity involved; the outcome remains visible as a status badge. */
|
|
28
|
+
icon?: ReactNode;
|
|
29
|
+
title: string;
|
|
30
|
+
description?: string;
|
|
31
|
+
/** Actions, such as opening what was made or trying again. */
|
|
32
|
+
children?: ReactNode;
|
|
33
|
+
}): import("@types/react").JSX.Element;
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { CheckCircleIcon, SpinnerGapIcon, WarningCircleIcon } from "@phosphor-icons/react";
|
|
3
|
+
import { useContext, useLayoutEffect, useState } from "react";
|
|
4
|
+
import { css, cx } from "#primitives/css";
|
|
5
|
+
import { DialogHeightResetContext } from "./dialog-height-context.js";
|
|
6
|
+
import { icon, spinning } from "./icon.js";
|
|
7
|
+
import { Heading } from "./layout.js";
|
|
8
|
+
const wizard = css({ display: "grid", gap: "layout.contentGap", minWidth: "0" });
|
|
9
|
+
const progressBar = css({ display: "flex", gap: "layout.tightGap" });
|
|
10
|
+
const segment = css({
|
|
11
|
+
flex: "1",
|
|
12
|
+
height: "progress.segment",
|
|
13
|
+
borderRadius: "round",
|
|
14
|
+
background: "border.subtle",
|
|
15
|
+
transitionProperty: "background",
|
|
16
|
+
transitionDuration: "default",
|
|
17
|
+
"&[data-reached]": { background: "fg.primary" },
|
|
18
|
+
});
|
|
19
|
+
// Clips the sliding steps, with room for a field's focus ring.
|
|
20
|
+
const viewport = css({ overflow: "hidden", minWidth: "0", ringRoom: true });
|
|
21
|
+
const panel = css({
|
|
22
|
+
display: "grid",
|
|
23
|
+
gap: "layout.contentGap",
|
|
24
|
+
minWidth: "0",
|
|
25
|
+
animationDuration: "fast",
|
|
26
|
+
animationTimingFunction: "ease-out",
|
|
27
|
+
animationFillMode: "both",
|
|
28
|
+
"&[data-direction=forward]": { animationName: "wizardEnterForward" },
|
|
29
|
+
"&[data-direction=back]": { animationName: "wizardEnterBack" },
|
|
30
|
+
_motionReduce: { animationName: "none!" },
|
|
31
|
+
});
|
|
32
|
+
const result = css({
|
|
33
|
+
display: "grid",
|
|
34
|
+
justifyItems: "center",
|
|
35
|
+
gap: "layout.controlGap",
|
|
36
|
+
paddingBlock: "layout.sectionGap",
|
|
37
|
+
textAlign: "center",
|
|
38
|
+
animationName: "wizardResultIn",
|
|
39
|
+
animationDuration: "fast",
|
|
40
|
+
animationTimingFunction: "ease-out",
|
|
41
|
+
_motionReduce: { animation: "none" },
|
|
42
|
+
});
|
|
43
|
+
const resultIcon = css({
|
|
44
|
+
"&[data-variant=success]": { color: "accent.green" },
|
|
45
|
+
"&[data-variant=failure]": { color: "accent.red" },
|
|
46
|
+
"&[data-variant=progress]": { color: "accent.blue" },
|
|
47
|
+
});
|
|
48
|
+
// An entity mark remains the focus; the smaller badge still communicates the outcome.
|
|
49
|
+
const resultMark = css({ display: "inline-flex", position: "relative" });
|
|
50
|
+
const resultBadge = css({
|
|
51
|
+
position: "absolute",
|
|
52
|
+
insetInlineEnd: "calc(token(spacing.layout.tightGap) * -1)",
|
|
53
|
+
bottom: "calc(token(spacing.layout.tightGap) * -1)",
|
|
54
|
+
background: "bg.card",
|
|
55
|
+
borderRadius: "round",
|
|
56
|
+
});
|
|
57
|
+
const resultDescription = css({ margin: "none", color: "fg.muted", fontSize: "caption" });
|
|
58
|
+
const resultActions = css({
|
|
59
|
+
display: "flex",
|
|
60
|
+
gap: "layout.controlGap",
|
|
61
|
+
marginTop: "layout.tightGap",
|
|
62
|
+
});
|
|
63
|
+
/**
|
|
64
|
+
* A multi-step flow shown one step at a time. Each step slides in from the right as the flow
|
|
65
|
+
* advances and from the left as it goes back; the direction comes from comparing `step` with the
|
|
66
|
+
* step shown before it. `steps` labels each step for the progress bar and assistive technology.
|
|
67
|
+
*/
|
|
68
|
+
export function Wizard({ step, steps, progress = step, showProgress = true, state = "step", children, className, ...props }) {
|
|
69
|
+
const resetDialogHeight = useContext(DialogHeightResetContext);
|
|
70
|
+
useLayoutEffect(() => {
|
|
71
|
+
resetDialogHeight?.();
|
|
72
|
+
}, [step, state, resetDialogHeight]);
|
|
73
|
+
// The step shown on the previous render, so a change of `step` knows which way it went.
|
|
74
|
+
const [previousStep, setPreviousStep] = useState(step);
|
|
75
|
+
const [direction, setDirection] = useState("none");
|
|
76
|
+
if (previousStep !== step) {
|
|
77
|
+
setPreviousStep(step);
|
|
78
|
+
setDirection(step > previousStep ? "forward" : "back");
|
|
79
|
+
}
|
|
80
|
+
return (_jsxs("div", { ...props, className: cx(wizard, className), "data-ciridae-ui": "", "data-wizard-state": state, children: [showProgress && state !== "result" && steps.length > 1 && (_jsx("div", { className: progressBar, role: "progressbar", "aria-valuemin": 1, "aria-valuemax": steps.length, "aria-valuenow": Math.min(progress + 1, steps.length), "aria-valuetext": steps[progress], children: steps.map((_label, index) => (_jsx("span", { className: segment, "data-reached": index <= progress ? "" : undefined }, index))) })), _jsx("div", { className: viewport, children: _jsx("div", { className: panel, "data-direction": state === "result" ? undefined : direction, children: children }, step) })] }));
|
|
81
|
+
}
|
|
82
|
+
/** The end of a wizard: what happened, and what the reader can do next. */
|
|
83
|
+
export function WizardResult({ variant, icon: mark, title, description, children, }) {
|
|
84
|
+
const Icon = variant === "success"
|
|
85
|
+
? CheckCircleIcon
|
|
86
|
+
: variant === "failure"
|
|
87
|
+
? WarningCircleIcon
|
|
88
|
+
: SpinnerGapIcon;
|
|
89
|
+
const statusIcon = (_jsx(Icon, { className: cx(resultIcon, icon({ size: mark ? "medium" : "large" }), mark ? resultBadge : undefined, variant === "progress" && spinning), "data-variant": variant, weight: variant === "progress" ? "bold" : "fill", "aria-hidden": "true" }));
|
|
90
|
+
return (_jsxs("div", { className: result, role: variant === "failure" ? "alert" : "status", children: [mark ? (_jsxs("span", { className: resultMark, "aria-hidden": "true", children: [mark, statusIcon] })) : (statusIcon), _jsx(Heading, { level: 3, children: title }), description && _jsx("p", { className: resultDescription, children: description }), children && _jsx("div", { className: resultActions, children: children })] }));
|
|
91
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { type FeedbackCreateInput, type FeedbackErrorCode, type FeedbackItem, type FeedbackMessage, type FeedbackSummary, type FeedbackUpdateInput } from "./contract.js";
|
|
2
|
+
type FeedbackClientConfig = {
|
|
3
|
+
baseUrl: string;
|
|
4
|
+
getBearerToken: () => Promise<string>;
|
|
5
|
+
};
|
|
6
|
+
type FeedbackClientErrorCode = FeedbackErrorCode | "feedback_invalid_response" | "feedback_request_failed";
|
|
7
|
+
type FeedbackCreateOptions = {
|
|
8
|
+
idempotencyKey?: string;
|
|
9
|
+
files?: File[];
|
|
10
|
+
};
|
|
11
|
+
type FeedbackReadOptions = {
|
|
12
|
+
signal?: AbortSignal;
|
|
13
|
+
};
|
|
14
|
+
declare class FeedbackApiError extends Error {
|
|
15
|
+
readonly code: FeedbackClientErrorCode;
|
|
16
|
+
readonly status: number;
|
|
17
|
+
readonly errorId: string | null;
|
|
18
|
+
constructor(message: string, options: {
|
|
19
|
+
code: FeedbackClientErrorCode;
|
|
20
|
+
status: number;
|
|
21
|
+
errorId?: string | null;
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
declare class FeedbackClient {
|
|
25
|
+
#private;
|
|
26
|
+
readonly baseUrl: string;
|
|
27
|
+
constructor(config: FeedbackClientConfig);
|
|
28
|
+
create(input: FeedbackCreateInput, options?: FeedbackCreateOptions): Promise<FeedbackItem>;
|
|
29
|
+
getAttachmentUrl(feedbackId: string, attachmentId: string): Promise<string>;
|
|
30
|
+
list(options?: FeedbackReadOptions): Promise<FeedbackSummary[]>;
|
|
31
|
+
get(feedbackId: string, options?: FeedbackReadOptions): Promise<FeedbackItem>;
|
|
32
|
+
update(feedbackId: string, input: FeedbackUpdateInput): Promise<FeedbackItem>;
|
|
33
|
+
withdraw(feedbackId: string): Promise<FeedbackItem>;
|
|
34
|
+
createMessage(feedbackId: string, body: string): Promise<FeedbackMessage>;
|
|
35
|
+
}
|
|
36
|
+
declare function createFeedbackClient(config: FeedbackClientConfig): FeedbackClient;
|
|
37
|
+
export { createFeedbackClient, FeedbackApiError, FeedbackClient, type FeedbackClientConfig, type FeedbackClientErrorCode, type FeedbackCreateOptions, type FeedbackReadOptions, };
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
|
|
2
|
+
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
3
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
4
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
5
|
+
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
6
|
+
};
|
|
7
|
+
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
8
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
9
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
10
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
11
|
+
};
|
|
12
|
+
var _FeedbackClient_instances, _FeedbackClient_basePath, _FeedbackClient_getBearerToken, _FeedbackClient_request;
|
|
13
|
+
import { feedbackErrorResponseSchema, feedbackItemSchema, feedbackListResponseSchema, feedbackMessageSchema, } from "./contract.js";
|
|
14
|
+
import { getResponseErrorId } from "./get-response-error-id.js";
|
|
15
|
+
import { requireConfig } from "./require-config.js";
|
|
16
|
+
class FeedbackApiError extends Error {
|
|
17
|
+
constructor(message, options) {
|
|
18
|
+
super(message);
|
|
19
|
+
this.name = "FeedbackApiError";
|
|
20
|
+
this.code = options.code;
|
|
21
|
+
this.status = options.status;
|
|
22
|
+
this.errorId = options.errorId ?? null;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
class FeedbackClient {
|
|
26
|
+
constructor(config) {
|
|
27
|
+
_FeedbackClient_instances.add(this);
|
|
28
|
+
_FeedbackClient_basePath.set(this, void 0);
|
|
29
|
+
_FeedbackClient_getBearerToken.set(this, void 0);
|
|
30
|
+
this.baseUrl = requireConfig(config.baseUrl, "baseUrl").replace(/\/$/, "");
|
|
31
|
+
__classPrivateFieldSet(this, _FeedbackClient_basePath, `${this.baseUrl}/feedback`, "f");
|
|
32
|
+
__classPrivateFieldSet(this, _FeedbackClient_getBearerToken, config.getBearerToken, "f");
|
|
33
|
+
}
|
|
34
|
+
async create(input, options) {
|
|
35
|
+
let form;
|
|
36
|
+
if (options?.files?.length) {
|
|
37
|
+
form = new FormData();
|
|
38
|
+
form.append("feedback", JSON.stringify(input));
|
|
39
|
+
for (const file of options.files)
|
|
40
|
+
form.append("files", file);
|
|
41
|
+
}
|
|
42
|
+
return __classPrivateFieldGet(this, _FeedbackClient_instances, "m", _FeedbackClient_request).call(this, "/", feedbackItemSchema, {
|
|
43
|
+
body: form ? undefined : input,
|
|
44
|
+
form,
|
|
45
|
+
headers: { "Idempotency-Key": options?.idempotencyKey ?? crypto.randomUUID() },
|
|
46
|
+
method: "POST",
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
async getAttachmentUrl(feedbackId, attachmentId) {
|
|
50
|
+
const item = await this.get(feedbackId);
|
|
51
|
+
const url = item.attachments?.find((file) => file.id === attachmentId)?.url;
|
|
52
|
+
if (!url)
|
|
53
|
+
throw new Error("File download is unavailable.");
|
|
54
|
+
return url;
|
|
55
|
+
}
|
|
56
|
+
async list(options) {
|
|
57
|
+
const response = await __classPrivateFieldGet(this, _FeedbackClient_instances, "m", _FeedbackClient_request).call(this, "/", feedbackListResponseSchema, options);
|
|
58
|
+
return response.items;
|
|
59
|
+
}
|
|
60
|
+
async get(feedbackId, options) {
|
|
61
|
+
return __classPrivateFieldGet(this, _FeedbackClient_instances, "m", _FeedbackClient_request).call(this, `/${encodeURIComponent(feedbackId)}`, feedbackItemSchema, options);
|
|
62
|
+
}
|
|
63
|
+
async update(feedbackId, input) {
|
|
64
|
+
return __classPrivateFieldGet(this, _FeedbackClient_instances, "m", _FeedbackClient_request).call(this, `/${encodeURIComponent(feedbackId)}`, feedbackItemSchema, {
|
|
65
|
+
body: input,
|
|
66
|
+
method: "PATCH",
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
async withdraw(feedbackId) {
|
|
70
|
+
return __classPrivateFieldGet(this, _FeedbackClient_instances, "m", _FeedbackClient_request).call(this, `/${encodeURIComponent(feedbackId)}/withdraw`, feedbackItemSchema, {
|
|
71
|
+
method: "POST",
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
async createMessage(feedbackId, body) {
|
|
75
|
+
return __classPrivateFieldGet(this, _FeedbackClient_instances, "m", _FeedbackClient_request).call(this, `/${encodeURIComponent(feedbackId)}/messages`, feedbackMessageSchema, {
|
|
76
|
+
body: { body },
|
|
77
|
+
method: "POST",
|
|
78
|
+
});
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
_FeedbackClient_basePath = new WeakMap(), _FeedbackClient_getBearerToken = new WeakMap(), _FeedbackClient_instances = new WeakSet(), _FeedbackClient_request = async function _FeedbackClient_request(path, schema, options) {
|
|
82
|
+
const bearer = await __classPrivateFieldGet(this, _FeedbackClient_getBearerToken, "f").call(this);
|
|
83
|
+
const response = await fetch(`${__classPrivateFieldGet(this, _FeedbackClient_basePath, "f")}${path}`, {
|
|
84
|
+
body: options?.form ?? (options?.body ? JSON.stringify(options.body) : undefined),
|
|
85
|
+
headers: {
|
|
86
|
+
Authorization: `Bearer ${bearer}`,
|
|
87
|
+
...(options?.body ? { "Content-Type": "application/json" } : {}),
|
|
88
|
+
...options?.headers,
|
|
89
|
+
},
|
|
90
|
+
method: options?.method ?? "GET",
|
|
91
|
+
signal: options?.signal,
|
|
92
|
+
});
|
|
93
|
+
const payload = await response.json().catch(() => undefined);
|
|
94
|
+
if (!response.ok)
|
|
95
|
+
throw parseFeedbackApiError(response, payload);
|
|
96
|
+
const parsed = schema.safeParse(payload);
|
|
97
|
+
if (!parsed.success) {
|
|
98
|
+
throw new FeedbackApiError("Feedback returned an invalid response.", {
|
|
99
|
+
code: "feedback_invalid_response",
|
|
100
|
+
status: response.status,
|
|
101
|
+
errorId: getResponseErrorId(response),
|
|
102
|
+
});
|
|
103
|
+
}
|
|
104
|
+
return parsed.data;
|
|
105
|
+
};
|
|
106
|
+
function createFeedbackClient(config) {
|
|
107
|
+
return new FeedbackClient(config);
|
|
108
|
+
}
|
|
109
|
+
function parseFeedbackApiError(response, payload) {
|
|
110
|
+
const errorId = getResponseErrorId(response);
|
|
111
|
+
const parsed = feedbackErrorResponseSchema.safeParse(payload);
|
|
112
|
+
if (parsed.success) {
|
|
113
|
+
return new FeedbackApiError(parsed.data.detail.detail, {
|
|
114
|
+
code: parsed.data.detail.code,
|
|
115
|
+
status: response.status,
|
|
116
|
+
errorId,
|
|
117
|
+
});
|
|
118
|
+
}
|
|
119
|
+
return new FeedbackApiError("Feedback request failed.", {
|
|
120
|
+
code: "feedback_request_failed",
|
|
121
|
+
status: response.status,
|
|
122
|
+
errorId,
|
|
123
|
+
});
|
|
124
|
+
}
|
|
125
|
+
export { createFeedbackClient, FeedbackApiError, FeedbackClient, };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
type CommentAuthor = {
|
|
2
|
+
avatarUrl?: string;
|
|
3
|
+
email?: string;
|
|
4
|
+
id: string;
|
|
5
|
+
name: string;
|
|
6
|
+
};
|
|
7
|
+
type CommentStatus = "sent" | "sending" | "failed";
|
|
8
|
+
/** A feedback thread message in the shape a comment list renders. */
|
|
9
|
+
type CommentItemData = {
|
|
10
|
+
author: CommentAuthor;
|
|
11
|
+
body: string;
|
|
12
|
+
createdAt: string;
|
|
13
|
+
id: string;
|
|
14
|
+
status?: CommentStatus;
|
|
15
|
+
updatedAt?: string;
|
|
16
|
+
};
|
|
17
|
+
export type { CommentAuthor, CommentItemData, CommentStatus };
|