@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,97 @@
|
|
|
1
|
+
import { type MenuItem } from "./menu.js";
|
|
2
|
+
import type { Tone } from "./badge.js";
|
|
3
|
+
import type { ComponentProps, ReactNode } from "react";
|
|
4
|
+
/**
|
|
5
|
+
* Where a step stands: `done`; `current`, the reader's to do; `waiting` on someone else; `agent`,
|
|
6
|
+
* an agent is on it; `blocked`; `locked` until an earlier step lands; `todo`, ahead.
|
|
7
|
+
*/
|
|
8
|
+
export type StepStatus = "done" | "current" | "waiting" | "agent" | "blocked" | "locked" | "todo";
|
|
9
|
+
export type StepDotProps = Omit<ComponentProps<"span">, "children"> & {
|
|
10
|
+
status: StepStatus;
|
|
11
|
+
/** `medium` 16px, `small` 14px on rows and the strip, `chip` 12px inside chips. */
|
|
12
|
+
size?: "chip" | "small" | "medium";
|
|
13
|
+
/** Drawn in place of the status icon, such as a count. */
|
|
14
|
+
children?: ReactNode;
|
|
15
|
+
};
|
|
16
|
+
/** A step's status as a dot; decorative, so the text beside it says the status. */
|
|
17
|
+
export declare function StepDot({ status, size, className, children, ...props }: StepDotProps): import("@types/react").JSX.Element;
|
|
18
|
+
export type Stage = {
|
|
19
|
+
id: string;
|
|
20
|
+
label: string;
|
|
21
|
+
/** Beside the label while there is room, such as the date the stage was reached. */
|
|
22
|
+
meta?: string;
|
|
23
|
+
status: StepStatus;
|
|
24
|
+
};
|
|
25
|
+
/** The stage a record is at: the first neither done nor ahead, else the last done, else the first. */
|
|
26
|
+
export declare function currentStageIndex(stages: readonly Pick<Stage, "status">[]): number;
|
|
27
|
+
export type StageStripProps = Omit<ComponentProps<"ol">, "children" | "defaultValue"> & {
|
|
28
|
+
stages: readonly Stage[];
|
|
29
|
+
/** The chosen stage's id; the current stage while neither this nor `defaultValue` is set. */
|
|
30
|
+
value?: string;
|
|
31
|
+
defaultValue?: string;
|
|
32
|
+
onValueChange?: (id: string) => void;
|
|
33
|
+
/** Past this many stages the strip windows itself around the current one. Defaults to 7. */
|
|
34
|
+
maxVisible?: number;
|
|
35
|
+
};
|
|
36
|
+
export declare function StageStrip({ stages, value, defaultValue, onValueChange, maxVisible, className, ...props }: StageStripProps): import("@types/react").JSX.Element;
|
|
37
|
+
/** A step's button: it runs `onClick`, or with `popover` opens that popover anchored to it. */
|
|
38
|
+
export type StepAction = {
|
|
39
|
+
label: ReactNode;
|
|
40
|
+
onClick?: () => void;
|
|
41
|
+
disabled?: boolean;
|
|
42
|
+
popover?: {
|
|
43
|
+
open: boolean;
|
|
44
|
+
onOpenChange: (open: boolean) => void;
|
|
45
|
+
content: ReactNode;
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
export type CurrentStepProps = Omit<ComponentProps<"div">, "title"> & {
|
|
49
|
+
/**
|
|
50
|
+
* What the step asks of the reader: `warning` theirs to do, `success` ready or landing,
|
|
51
|
+
* `info` an agent on it, `neutral` waiting on someone, `danger` stuck.
|
|
52
|
+
*/
|
|
53
|
+
tone: Tone;
|
|
54
|
+
/** The header line, such as who it waits on and since when. */
|
|
55
|
+
meta: ReactNode;
|
|
56
|
+
title: ReactNode;
|
|
57
|
+
description?: ReactNode;
|
|
58
|
+
primary?: StepAction;
|
|
59
|
+
secondary?: StepAction;
|
|
60
|
+
/** A "Not sure?" menu beside the actions. */
|
|
61
|
+
help?: readonly MenuItem[];
|
|
62
|
+
/** Something is under way: a spinner replaces the dot. */
|
|
63
|
+
busy?: boolean;
|
|
64
|
+
expanded?: boolean;
|
|
65
|
+
defaultExpanded?: boolean;
|
|
66
|
+
onExpandedChange?: (expanded: boolean) => void;
|
|
67
|
+
};
|
|
68
|
+
/** The step the reader acts on: a tinted header that folds the card with its title and actions. */
|
|
69
|
+
export declare function CurrentStep({ tone, meta, title, description, primary, secondary, help, busy, expanded: ownExpanded, defaultExpanded, onExpandedChange, className, ...props }: CurrentStepProps): import("@types/react").JSX.Element;
|
|
70
|
+
export type ConfirmationRowProps = Omit<ComponentProps<"div">, "children"> & {
|
|
71
|
+
message: ReactNode;
|
|
72
|
+
/** When the move landed. */
|
|
73
|
+
at: number | Date;
|
|
74
|
+
onUndo?: () => void;
|
|
75
|
+
labels?: Partial<{
|
|
76
|
+
undo: string;
|
|
77
|
+
}>;
|
|
78
|
+
};
|
|
79
|
+
/** A move that just landed, with when and an undo. */
|
|
80
|
+
export declare function ConfirmationRow({ message, at, onUndo, labels: ownLabels, className, ...props }: ConfirmationRowProps): import("@types/react").JSX.Element;
|
|
81
|
+
export type ChecklistStep = {
|
|
82
|
+
id?: string;
|
|
83
|
+
label: ReactNode;
|
|
84
|
+
status: StepStatus;
|
|
85
|
+
};
|
|
86
|
+
export type ChecklistGroup = {
|
|
87
|
+
id: string;
|
|
88
|
+
label: ReactNode;
|
|
89
|
+
/** At the heading's end, such as when and by whom it was passed; its progress by default. */
|
|
90
|
+
meta?: ReactNode;
|
|
91
|
+
steps: readonly ChecklistStep[];
|
|
92
|
+
};
|
|
93
|
+
export type StageChecklistProps = Omit<ComponentProps<"div">, "children"> & {
|
|
94
|
+
groups: readonly ChecklistGroup[];
|
|
95
|
+
};
|
|
96
|
+
/** Checklists side by side, each under its label with its meta or how many of its steps are done. */
|
|
97
|
+
export declare function StageChecklist({ groups, className, ...props }: StageChecklistProps): import("@types/react").JSX.Element;
|
|
@@ -0,0 +1,365 @@
|
|
|
1
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
/*
|
|
3
|
+
* A record's path through its stages, and the work at the stage it is at. `StepDot` marks a
|
|
4
|
+
* step's status wherever one is listed; `StageStrip` is the path as one row of arrowed segments,
|
|
5
|
+
* each a button that chooses its stage; `CurrentStep` is the attention row for the step the
|
|
6
|
+
* reader acts on; `StageChecklist` lists what stages need; `ConfirmationRow` says a move landed.
|
|
7
|
+
*/
|
|
8
|
+
import { CaretDownIcon, CaretUpIcon, CheckIcon, LockIcon, MinusIcon, SparkleIcon, WarningCircleIcon, } from "@phosphor-icons/react";
|
|
9
|
+
import { css, cva, cx } from "#primitives/css";
|
|
10
|
+
import { Button } from "./button.js";
|
|
11
|
+
import { useControllableState } from "./controllable-state.js";
|
|
12
|
+
import { DateTime } from "./date-time.js";
|
|
13
|
+
import { icon, Spinner } from "./icon.js";
|
|
14
|
+
import { Cluster, MutedText } from "./layout.js";
|
|
15
|
+
import { useCiridaeLocale } from "./locale.js";
|
|
16
|
+
import { Menu } from "./menu.js";
|
|
17
|
+
import { Popover } from "./overlays.js";
|
|
18
|
+
/* Step dot: 16 on the strip, 14 on rows, 12 inside chips. */
|
|
19
|
+
const stepDot = cva({
|
|
20
|
+
base: {
|
|
21
|
+
display: "inline-grid",
|
|
22
|
+
placeItems: "center",
|
|
23
|
+
flexShrink: "0",
|
|
24
|
+
borderRadius: "round",
|
|
25
|
+
border: "1px solid currentColor",
|
|
26
|
+
color: "fg.muted",
|
|
27
|
+
lineHeight: "tight",
|
|
28
|
+
},
|
|
29
|
+
variants: {
|
|
30
|
+
status: {
|
|
31
|
+
done: { background: "accent.green", borderColor: "accent.green", color: "fg.onAccent" },
|
|
32
|
+
current: { color: "accent.yellow" },
|
|
33
|
+
waiting: { color: "fg.muted" },
|
|
34
|
+
agent: { color: "accent.blue" },
|
|
35
|
+
blocked: { color: "accent.red" },
|
|
36
|
+
locked: { color: "fg.muted", opacity: "disabled" },
|
|
37
|
+
todo: { color: "border.panel" },
|
|
38
|
+
},
|
|
39
|
+
size: {
|
|
40
|
+
chip: { width: "avatar.micro", height: "avatar.micro", fontSize: "icon.tiny" },
|
|
41
|
+
small: { width: "control.knob", height: "control.knob", fontSize: "icon.tiny" },
|
|
42
|
+
medium: { width: "control.checkbox", height: "control.checkbox", fontSize: "icon.check" },
|
|
43
|
+
},
|
|
44
|
+
},
|
|
45
|
+
defaultVariants: { status: "todo", size: "medium" },
|
|
46
|
+
});
|
|
47
|
+
const stepDotCore = css({
|
|
48
|
+
width: "indicator.radio",
|
|
49
|
+
height: "indicator.radio",
|
|
50
|
+
borderRadius: "round",
|
|
51
|
+
background: "currentColor",
|
|
52
|
+
});
|
|
53
|
+
/** A step's status as a dot; decorative, so the text beside it says the status. */
|
|
54
|
+
export function StepDot({ status, size = "medium", className, children, ...props }) {
|
|
55
|
+
return (_jsx("span", { "aria-hidden": "true", ...props, className: cx(stepDot({ status, size }), className), "data-ciridae-ui": "", children: children ?? (_jsxs(_Fragment, { children: [status === "done" && _jsx(CheckIcon, { weight: "bold" }), status === "current" && _jsx("span", { className: stepDotCore }), status === "waiting" && _jsx(MinusIcon, { weight: "bold" }), status === "agent" && _jsx(SparkleIcon, { weight: "fill" }), status === "blocked" && _jsx(WarningCircleIcon, { weight: "bold" }), status === "locked" && _jsx(LockIcon, { weight: "bold" })] })) }));
|
|
56
|
+
}
|
|
57
|
+
/*
|
|
58
|
+
* Stage strip: one enclosed row of arrowed segments, each filled with its state, every one a
|
|
59
|
+
* button that chooses its stage. Segments share the width; as the box narrows, dates go first,
|
|
60
|
+
* then every stage but the current and the chosen one folds to its dot. Past `maxVisible` the
|
|
61
|
+
* strip windows itself around the current stage: it, its neighbours and the chosen stage stay, and
|
|
62
|
+
* the runs between them fold into one counted segment each, which lists its stages when pressed.
|
|
63
|
+
* The window never moves with the choice, so a segment stays where it was clicked.
|
|
64
|
+
*/
|
|
65
|
+
const strip = css({
|
|
66
|
+
"--stage-arrow": "10px",
|
|
67
|
+
display: "flex",
|
|
68
|
+
alignItems: "stretch",
|
|
69
|
+
gap: "panel.hairline",
|
|
70
|
+
minWidth: "0",
|
|
71
|
+
height: "control.compact",
|
|
72
|
+
margin: "none",
|
|
73
|
+
padding: "none",
|
|
74
|
+
listStyle: "none",
|
|
75
|
+
containerType: "inline-size",
|
|
76
|
+
"@container (max-width: 720px)": { "& [data-stage-meta]": { display: "none" } },
|
|
77
|
+
"@container (max-width: 520px)": {
|
|
78
|
+
"& > li > :not([data-current], [aria-pressed=true])": {
|
|
79
|
+
flex: "0 0 auto",
|
|
80
|
+
"& [data-stage-label]": { display: "none" },
|
|
81
|
+
},
|
|
82
|
+
"& > li > [data-folded]": {
|
|
83
|
+
paddingInline: "calc(var(--stage-arrow) + token(spacing.layout.tightGap))",
|
|
84
|
+
},
|
|
85
|
+
},
|
|
86
|
+
"&[data-many]": {
|
|
87
|
+
// A folded run is a summary, so it takes only what its count needs.
|
|
88
|
+
"& > li > [data-run]": { flex: "0 0 auto" },
|
|
89
|
+
"@container (max-width: 1100px)": { "& [data-stage-meta]": { display: "none" } },
|
|
90
|
+
"@container (max-width: 480px)": {
|
|
91
|
+
"& > li > :not([data-current], [aria-pressed=true])": {
|
|
92
|
+
flex: "0 0 auto",
|
|
93
|
+
"& [data-stage-label]": { display: "none" },
|
|
94
|
+
},
|
|
95
|
+
},
|
|
96
|
+
},
|
|
97
|
+
});
|
|
98
|
+
const stripItem = css({ display: "contents" });
|
|
99
|
+
const stage = css({
|
|
100
|
+
display: "flex",
|
|
101
|
+
alignItems: "center",
|
|
102
|
+
justifyContent: "center",
|
|
103
|
+
gap: "control.iconGap",
|
|
104
|
+
flex: "1 1 0",
|
|
105
|
+
minWidth: "0",
|
|
106
|
+
// Each segment tucks under the previous one's point, so the gap between reads as one chevron.
|
|
107
|
+
marginInlineStart: "calc(var(--stage-arrow) * -1)",
|
|
108
|
+
paddingInline: "calc(var(--stage-arrow) + token(spacing.control.block))",
|
|
109
|
+
clipPath: "polygon(0 0, calc(100% - var(--stage-arrow)) 0, 100% 50%, calc(100% - var(--stage-arrow)) 100%, 0 100%, var(--stage-arrow) 50%)",
|
|
110
|
+
// The grey fill, not glass: glass is near-white in light and the stages ahead vanished.
|
|
111
|
+
background: "bg.fill",
|
|
112
|
+
color: "fg.secondary",
|
|
113
|
+
fontSize: "caption",
|
|
114
|
+
fontWeight: "medium",
|
|
115
|
+
letterSpacing: "compact",
|
|
116
|
+
whiteSpace: "nowrap",
|
|
117
|
+
// Each segment is its item's only child, so the ends are found from the list item.
|
|
118
|
+
"li:first-child > &": {
|
|
119
|
+
marginInlineStart: "0",
|
|
120
|
+
paddingInlineStart: "control.compactInline",
|
|
121
|
+
borderStartStartRadius: "action",
|
|
122
|
+
borderEndStartRadius: "action",
|
|
123
|
+
clipPath: "polygon(0 0, calc(100% - var(--stage-arrow)) 0, 100% 50%, calc(100% - var(--stage-arrow)) 100%, 0 100%)",
|
|
124
|
+
},
|
|
125
|
+
"li:last-child > &": {
|
|
126
|
+
paddingInlineEnd: "control.compactInline",
|
|
127
|
+
borderStartEndRadius: "action",
|
|
128
|
+
borderEndEndRadius: "action",
|
|
129
|
+
clipPath: "polygon(0 0, 100% 0, 100% 100%, 0 100%, var(--stage-arrow) 50%)",
|
|
130
|
+
},
|
|
131
|
+
"&[data-state=done]": { background: "bg.successSubtle", color: "accent.green" },
|
|
132
|
+
"&[data-state=current]": { background: "bg.warningSubtle", color: "accent.yellow" },
|
|
133
|
+
"&[data-state=blocked]": { background: "bg.errorSubtle", color: "accent.red" },
|
|
134
|
+
"&[data-state=agent]": { background: "bg.infoSubtle", color: "accent.blue" },
|
|
135
|
+
"&[data-state=todo], &[data-state=locked]": {
|
|
136
|
+
color: "fg.muted",
|
|
137
|
+
// The dot's own hairline grey vanishes on the segment's fill.
|
|
138
|
+
"& > :first-child": { color: "fg.muted" },
|
|
139
|
+
},
|
|
140
|
+
// Every stage can be chosen: it takes the hover wash, and the chosen one keeps it.
|
|
141
|
+
border: "none",
|
|
142
|
+
font: "inherit",
|
|
143
|
+
cursor: "pointer",
|
|
144
|
+
_hover: { boxShadow: "inset 0 0 0 999px token(colors.bg.rowHover)" },
|
|
145
|
+
_focusVisible: { outline: "none", boxShadow: "inset 0 0 0 999px token(colors.bg.rowHover)" },
|
|
146
|
+
"&[aria-pressed=true]": { boxShadow: "inset 0 0 0 999px token(colors.bg.rowHover)" },
|
|
147
|
+
// A chosen stage ahead has no fill of its own, so its text lifts to show the choice.
|
|
148
|
+
"&[aria-pressed=true]:is([data-state=todo], [data-state=locked])": {
|
|
149
|
+
color: "fg.primary",
|
|
150
|
+
"& > :first-child": { color: "fg.primary" },
|
|
151
|
+
},
|
|
152
|
+
});
|
|
153
|
+
const stageLabel = css({ overflow: "hidden", textOverflow: "ellipsis" });
|
|
154
|
+
const stageMeta = css({ flexShrink: "0", opacity: "0.7", fontSize: "code" });
|
|
155
|
+
/* A folded run's dot carries its count instead of an icon. */
|
|
156
|
+
const countDot = css({ fontSize: "icon.tiny", fontWeight: "medium", lineHeight: "1" });
|
|
157
|
+
/** The stage a record is at: the first neither done nor ahead, else the last done, else the first. */
|
|
158
|
+
export function currentStageIndex(stages) {
|
|
159
|
+
const active = stages.findIndex((item) => item.status !== "done" && item.status !== "todo" && item.status !== "locked");
|
|
160
|
+
if (active >= 0)
|
|
161
|
+
return active;
|
|
162
|
+
const lastDone = stages.map((item) => item.status).lastIndexOf("done");
|
|
163
|
+
return lastDone >= 0 ? lastDone : 0;
|
|
164
|
+
}
|
|
165
|
+
/** The strip's segments: every stage, or past `maxVisible` the window around the current one. */
|
|
166
|
+
function stripItems(stages, maxVisible, currentIndex, selectedIndex) {
|
|
167
|
+
if (stages.length <= maxVisible) {
|
|
168
|
+
return stages.map((stage, index) => ({ kind: "stage", stage, index }));
|
|
169
|
+
}
|
|
170
|
+
const kept = new Set([currentIndex - 1, currentIndex, currentIndex + 1, selectedIndex]);
|
|
171
|
+
const items = [];
|
|
172
|
+
let run = [];
|
|
173
|
+
const closeRun = () => {
|
|
174
|
+
if (run.length === 1)
|
|
175
|
+
items.push({ kind: "stage", stage: stages[run[0]], index: run[0] });
|
|
176
|
+
if (run.length > 1) {
|
|
177
|
+
const done = run.every((index) => stages[index].status === "done");
|
|
178
|
+
items.push({ kind: "run", indices: run, status: done ? "done" : "todo" });
|
|
179
|
+
}
|
|
180
|
+
run = [];
|
|
181
|
+
};
|
|
182
|
+
stages.forEach((stage, index) => {
|
|
183
|
+
if (kept.has(index)) {
|
|
184
|
+
closeRun();
|
|
185
|
+
items.push({ kind: "stage", stage, index });
|
|
186
|
+
}
|
|
187
|
+
else {
|
|
188
|
+
run.push(index);
|
|
189
|
+
}
|
|
190
|
+
});
|
|
191
|
+
closeRun();
|
|
192
|
+
return items;
|
|
193
|
+
}
|
|
194
|
+
export function StageStrip({ stages, value, defaultValue, onValueChange, maxVisible = 7, className, ...props }) {
|
|
195
|
+
const { labels } = useCiridaeLocale();
|
|
196
|
+
const currentIndex = currentStageIndex(stages);
|
|
197
|
+
const [chosen, setChosen] = useControllableState(value, defaultValue ?? stages[currentIndex]?.id ?? "", onValueChange);
|
|
198
|
+
const chosenIndex = stages.findIndex((item) => item.id === chosen);
|
|
199
|
+
const selectedIndex = chosenIndex >= 0 ? chosenIndex : currentIndex;
|
|
200
|
+
const many = stages.length > maxVisible;
|
|
201
|
+
return (_jsx("ol", { "aria-label": labels.record.stages, ...props, className: cx(strip, className), "data-ciridae-ui": "", "data-many": many || undefined, children: stripItems(stages, maxVisible, currentIndex, selectedIndex).map((item) => item.kind === "stage" ? (_jsx("li", { className: stripItem, children: _jsxs("button", { type: "button", className: stage, "data-state": item.stage.status, "data-current": item.index === currentIndex || undefined, "data-folded": item.index !== currentIndex || undefined, title: item.stage.label, "aria-current": item.index === currentIndex ? "step" : undefined, "aria-pressed": item.index === selectedIndex, onClick: () => setChosen(item.stage.id), children: [_jsx(StepDot, { status: item.stage.status, size: "small" }), _jsx("span", { className: stageLabel, "data-stage-label": "", children: item.stage.label }), item.stage.meta && (_jsx("span", { className: stageMeta, "data-stage-meta": "", children: item.stage.meta }))] }) }, item.stage.id)) : (_jsx("li", { className: stripItem, children: _jsx(Menu, { trigger: _jsxs("button", { type: "button", className: stage, "data-state": item.status, "data-folded": "", "data-run": "", "aria-label": item.status === "done"
|
|
202
|
+
? labels.record.runDoneLabel(item.indices.length)
|
|
203
|
+
: labels.record.runToGoLabel(item.indices.length), children: [_jsx(StepDot, { status: item.status, size: "small", className: countDot, children: item.indices.length }), _jsx("span", { className: stageLabel, "data-stage-label": "", children: item.status === "done" ? labels.record.runDone : labels.record.runToGo })] }), items: item.indices.map((index) => ({
|
|
204
|
+
label: stages[index].label,
|
|
205
|
+
icon: _jsx(StepDot, { status: stages[index].status, size: "small" }),
|
|
206
|
+
onSelect: () => setChosen(stages[index].id),
|
|
207
|
+
})) }) }, `run-${item.indices[0]}`))) }));
|
|
208
|
+
}
|
|
209
|
+
/* Current step: the attention row, tinted to its tone, with the inner card when expanded. */
|
|
210
|
+
const attentionRow = cva({
|
|
211
|
+
base: {
|
|
212
|
+
// The step card stacks by its own width, so a narrow record column stacks it as a phone does.
|
|
213
|
+
containerType: "inline-size",
|
|
214
|
+
display: "grid",
|
|
215
|
+
gap: "layout.tightGap",
|
|
216
|
+
padding: "layout.tightGap",
|
|
217
|
+
border: "1px solid token(colors.border.panel)",
|
|
218
|
+
borderRadius: "action",
|
|
219
|
+
background: "bg.glass",
|
|
220
|
+
},
|
|
221
|
+
variants: {
|
|
222
|
+
tone: {
|
|
223
|
+
warning: { borderColor: "border.glass", background: "bg.tinted" },
|
|
224
|
+
success: { borderColor: "border.glass", background: "bg.successSubtle" },
|
|
225
|
+
info: { borderColor: "border.glass", background: "bg.infoSubtle" },
|
|
226
|
+
neutral: {},
|
|
227
|
+
danger: { borderColor: "border.glass", background: "bg.errorSubtle" },
|
|
228
|
+
},
|
|
229
|
+
},
|
|
230
|
+
});
|
|
231
|
+
const attentionHeader = css({
|
|
232
|
+
display: "flex",
|
|
233
|
+
alignItems: "center",
|
|
234
|
+
gap: "control.iconGap",
|
|
235
|
+
width: "100%",
|
|
236
|
+
height: "control.compact",
|
|
237
|
+
paddingInline: "control.block",
|
|
238
|
+
border: "none",
|
|
239
|
+
borderRadius: "control",
|
|
240
|
+
background: "transparent",
|
|
241
|
+
font: "inherit",
|
|
242
|
+
textAlign: "start",
|
|
243
|
+
cursor: "pointer",
|
|
244
|
+
_focusVisible: { focusRing: "inset" },
|
|
245
|
+
fontSize: "code",
|
|
246
|
+
fontWeight: "medium",
|
|
247
|
+
letterSpacing: "compact",
|
|
248
|
+
"&[data-tone=warning]": { color: "accent.yellow" },
|
|
249
|
+
"&[data-tone=success]": { color: "accent.green" },
|
|
250
|
+
"&[data-tone=info]": { color: "accent.blue" },
|
|
251
|
+
"&[data-tone=neutral]": { color: "fg.muted" },
|
|
252
|
+
"&[data-tone=danger]": { color: "accent.red" },
|
|
253
|
+
});
|
|
254
|
+
const attentionCard = css({
|
|
255
|
+
display: "flex",
|
|
256
|
+
alignItems: "center",
|
|
257
|
+
justifyContent: "space-between",
|
|
258
|
+
gap: "layout.clusterGap",
|
|
259
|
+
padding: "panel.default",
|
|
260
|
+
border: "1px solid token(colors.border.glass)",
|
|
261
|
+
borderRadius: "control",
|
|
262
|
+
background: "bg.panel",
|
|
263
|
+
"@container (max-width: 560px)": { flexDirection: "column", alignItems: "stretch" },
|
|
264
|
+
_phone: { padding: "panel.compact" },
|
|
265
|
+
});
|
|
266
|
+
// A narrow card stacks the step's buttons full width, the main one first.
|
|
267
|
+
const stepActions = css({
|
|
268
|
+
flexShrink: "0",
|
|
269
|
+
"@container (max-width: 560px)": { flexDirection: "column-reverse", alignItems: "stretch" },
|
|
270
|
+
});
|
|
271
|
+
const attentionTitle = css({
|
|
272
|
+
fontSize: "heading",
|
|
273
|
+
fontWeight: "medium",
|
|
274
|
+
letterSpacing: "compact",
|
|
275
|
+
lineHeight: "tight",
|
|
276
|
+
});
|
|
277
|
+
const attentionDescription = css({
|
|
278
|
+
color: "fg.secondary",
|
|
279
|
+
fontSize: "code",
|
|
280
|
+
fontWeight: "medium",
|
|
281
|
+
marginTop: "layout.tightGap",
|
|
282
|
+
});
|
|
283
|
+
const toneStatus = {
|
|
284
|
+
warning: "current",
|
|
285
|
+
success: "done",
|
|
286
|
+
info: "agent",
|
|
287
|
+
neutral: "waiting",
|
|
288
|
+
danger: "blocked",
|
|
289
|
+
};
|
|
290
|
+
function StepActionButton({ action, variant, }) {
|
|
291
|
+
const button = (_jsx(Button, { size: "medium", variant: variant, disabled: action.disabled, onClick: action.popover ? undefined : action.onClick, children: action.label }));
|
|
292
|
+
if (!action.popover)
|
|
293
|
+
return button;
|
|
294
|
+
return (_jsx(Popover, { trigger: button, open: action.popover.open, onOpenChange: action.popover.onOpenChange, children: action.popover.content }));
|
|
295
|
+
}
|
|
296
|
+
/** The step the reader acts on: a tinted header that folds the card with its title and actions. */
|
|
297
|
+
export function CurrentStep({ tone, meta, title, description, primary, secondary, help, busy = false, expanded: ownExpanded, defaultExpanded = true, onExpandedChange, className, ...props }) {
|
|
298
|
+
const { labels } = useCiridaeLocale();
|
|
299
|
+
const [expanded, setExpanded] = useControllableState(ownExpanded, defaultExpanded, onExpandedChange);
|
|
300
|
+
return (_jsxs("div", { ...props, className: cx(attentionRow({ tone }), className), "data-ciridae-ui": "", children: [_jsxs("button", { type: "button", className: attentionHeader, "data-tone": tone, "aria-expanded": expanded, onClick: () => setExpanded(!expanded), children: [busy ? (_jsx(Spinner, { size: "compact", "aria-hidden": "true" })) : (_jsx(StepDot, { status: toneStatus[tone], size: "small" })), _jsx("span", { className: css({ flex: "1" }), children: meta }), expanded ? (_jsx(CaretUpIcon, { className: icon({ size: "compact" }) })) : (_jsx(CaretDownIcon, { className: icon({ size: "compact" }) }))] }), expanded && (_jsxs("div", { className: attentionCard, children: [_jsxs("div", { className: css({ minWidth: "0" }), children: [_jsx("div", { className: attentionTitle, children: title }), description !== undefined && _jsx("div", { className: attentionDescription, children: description })] }), (help || secondary || primary) && (_jsxs(Cluster, { gap: "4", className: stepActions, children: [help && (_jsx(Menu, { align: "end", trigger: _jsx(Button, { variant: "ghost", children: labels.record.notSure }), items: help })), secondary && (_jsx(StepActionButton, { action: secondary, variant: tone === "warning" ? "tinted" : "secondary" })), primary && _jsx(StepActionButton, { action: primary, variant: "primary" })] }))] }))] }));
|
|
301
|
+
}
|
|
302
|
+
/* Confirmation row. */
|
|
303
|
+
const confirmation = css({
|
|
304
|
+
display: "flex",
|
|
305
|
+
alignItems: "center",
|
|
306
|
+
gap: "control.iconGap",
|
|
307
|
+
minHeight: "control.default",
|
|
308
|
+
paddingInlineStart: "control.compactInline",
|
|
309
|
+
paddingInlineEnd: "control.block",
|
|
310
|
+
border: "1px solid token(colors.border.glass)",
|
|
311
|
+
borderRadius: "action",
|
|
312
|
+
background: "bg.successSubtle",
|
|
313
|
+
color: "accent.green",
|
|
314
|
+
fontSize: "code",
|
|
315
|
+
fontWeight: "medium",
|
|
316
|
+
});
|
|
317
|
+
/** A move that just landed, with when and an undo. */
|
|
318
|
+
export function ConfirmationRow({ message, at, onUndo, labels: ownLabels, className, ...props }) {
|
|
319
|
+
const labels = { ...useCiridaeLocale().labels.record, ...ownLabels };
|
|
320
|
+
return (_jsxs("div", { role: "status", ...props, className: cx(confirmation, className), "data-ciridae-ui": "", children: [_jsx(StepDot, { status: "done", size: "small" }), _jsx("span", { className: css({ flex: "1" }), children: message }), _jsx(MutedText, { children: _jsx(DateTime, { value: at }) }), onUndo && (_jsx(Button, { variant: "secondary", onClick: onUndo, children: labels.undo }))] }));
|
|
321
|
+
}
|
|
322
|
+
/* Stage checklists: what each stage needs, needed or will need, as plain rows under its label. */
|
|
323
|
+
const checklist = css({
|
|
324
|
+
display: "grid",
|
|
325
|
+
gridTemplateColumns: "repeat(auto-fit, minmax(220px, 1fr))",
|
|
326
|
+
gap: "layout.clusterGap",
|
|
327
|
+
paddingInline: "control.block",
|
|
328
|
+
});
|
|
329
|
+
const checklistGroup = css({ display: "grid", alignContent: "start", minWidth: "0" });
|
|
330
|
+
const checklistHeading = css({
|
|
331
|
+
display: "flex",
|
|
332
|
+
alignItems: "center",
|
|
333
|
+
justifyContent: "space-between",
|
|
334
|
+
gap: "layout.controlGap",
|
|
335
|
+
height: "control.shortcut",
|
|
336
|
+
margin: "none",
|
|
337
|
+
color: "fg.muted",
|
|
338
|
+
font: "inherit",
|
|
339
|
+
fontSize: "code",
|
|
340
|
+
fontWeight: "medium",
|
|
341
|
+
});
|
|
342
|
+
const checklistList = css({ display: "grid", margin: "none", padding: "none", listStyle: "none" });
|
|
343
|
+
const checklistRow = css({
|
|
344
|
+
display: "flex",
|
|
345
|
+
alignItems: "center",
|
|
346
|
+
gap: "control.iconGap",
|
|
347
|
+
minHeight: "control.shortcut",
|
|
348
|
+
color: "fg.secondary",
|
|
349
|
+
fontSize: "code",
|
|
350
|
+
fontWeight: "medium",
|
|
351
|
+
letterSpacing: "compact",
|
|
352
|
+
"&[data-status=done]": { color: "fg.muted" },
|
|
353
|
+
"&[data-status=current]": { color: "fg.primary" },
|
|
354
|
+
"&[data-status=agent]": { color: "accent.blue" },
|
|
355
|
+
"&[data-status=blocked]": { color: "accent.red" },
|
|
356
|
+
"&[data-status=locked], &[data-status=todo]": { color: "fg.muted" },
|
|
357
|
+
});
|
|
358
|
+
/** Checklists side by side, each under its label with its meta or how many of its steps are done. */
|
|
359
|
+
export function StageChecklist({ groups, className, ...props }) {
|
|
360
|
+
const { labels } = useCiridaeLocale();
|
|
361
|
+
return (_jsx("div", { ...props, className: cx(checklist, className), "data-ciridae-ui": "", children: groups.map(({ id, label, meta, steps }) => {
|
|
362
|
+
const done = steps.filter((step) => step.status === "done").length;
|
|
363
|
+
return (_jsxs("section", { className: checklistGroup, children: [_jsxs("h3", { className: checklistHeading, children: [label, _jsx("span", { children: meta ?? (steps.length > 0 && labels.record.checklistProgress(done, steps.length)) })] }), _jsx("ul", { className: checklistList, children: steps.map((step, index) => (_jsxs("li", { className: checklistRow, "data-status": step.status, children: [_jsx(StepDot, { status: step.status, size: "chip" }), step.label] }, step.id ?? index))) })] }, id));
|
|
364
|
+
}) }));
|
|
365
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { useRender } from "@base-ui/react/use-render";
|
|
2
|
+
import type { ComponentProps, ReactNode } from "react";
|
|
3
|
+
export type TrendProps = {
|
|
4
|
+
direction: "up" | "down" | "flat";
|
|
5
|
+
/** The color, apart from the direction, since a fall in what is owed is good. */
|
|
6
|
+
tone?: "good" | "bad" | "neutral";
|
|
7
|
+
arrow?: boolean;
|
|
8
|
+
children: ReactNode;
|
|
9
|
+
};
|
|
10
|
+
export declare function Trend({ direction, tone, arrow, children }: TrendProps): import("@types/react").JSX.Element;
|
|
11
|
+
export type SparklineProps = Omit<ComponentProps<"div">, "children"> & {
|
|
12
|
+
values: readonly number[];
|
|
13
|
+
/** The value at the box's foot; by default far enough under the lowest that the line floats. */
|
|
14
|
+
low?: number;
|
|
15
|
+
/** The value at the box's top; the highest by default. */
|
|
16
|
+
high?: number;
|
|
17
|
+
strokeWidth?: number;
|
|
18
|
+
endPointSize?: number;
|
|
19
|
+
};
|
|
20
|
+
/** A run of values as a line filling its box; decorative, as the figure beside it says what it shows. */
|
|
21
|
+
export declare function Sparkline({ values, low: ownLow, high: ownHigh, strokeWidth, endPointSize, className, ...props }: SparklineProps): import("@types/react").JSX.Element;
|
|
22
|
+
export type MetricCardProps = Omit<useRender.ComponentProps<"div">, "children" | "onSelect"> & {
|
|
23
|
+
label: ReactNode;
|
|
24
|
+
value: ReactNode;
|
|
25
|
+
/** How the figure changed, under it; `arrow={false}` for a line that is not a change. */
|
|
26
|
+
change?: TrendProps;
|
|
27
|
+
/** The figure's recent run, beside it. */
|
|
28
|
+
sparkline?: readonly number[];
|
|
29
|
+
/** Makes the card a button, such as one that opens the list it counts. */
|
|
30
|
+
onSelect?: () => void;
|
|
31
|
+
/** Makes the card a link; a router's link as `render` routes it. */
|
|
32
|
+
href?: string;
|
|
33
|
+
};
|
|
34
|
+
export declare function MetricCard({ label, value, change, sparkline, onSelect, href, render, className, ...props }: MetricCardProps): import("@types/react").ReactElement<unknown, string | import("@types/react").JSXElementConstructor<any>>;
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
+
/*
|
|
3
|
+
* Figures for a dashboard. `MetricCard` is one figure: its label, its value, how it changed
|
|
4
|
+
* (`Trend`) and its recent run (`Sparkline`); it can open what it counts. `Sparkline` is a blue
|
|
5
|
+
* line over a flat tinted area that stretches to its box: the stroke keeps its width and the end
|
|
6
|
+
* point is HTML, so neither distorts.
|
|
7
|
+
*/
|
|
8
|
+
import { useRender } from "@base-ui/react/use-render";
|
|
9
|
+
import { ArrowDownIcon, ArrowRightIcon, ArrowUpIcon } from "@phosphor-icons/react";
|
|
10
|
+
import { css, cx } from "#primitives/css";
|
|
11
|
+
import { icon } from "./icon.js";
|
|
12
|
+
import { cardSurface } from "./panel.js";
|
|
13
|
+
/* A change beside a figure: which way it moved, and separately whether that is good. */
|
|
14
|
+
const trend = css({
|
|
15
|
+
display: "inline-flex",
|
|
16
|
+
alignItems: "center",
|
|
17
|
+
gap: "layout.tightGap",
|
|
18
|
+
minWidth: "0",
|
|
19
|
+
fontSize: "code",
|
|
20
|
+
fontWeight: "medium",
|
|
21
|
+
"&[data-tone=good]": { color: "accent.green" },
|
|
22
|
+
"&[data-tone=bad]": { color: "accent.red" },
|
|
23
|
+
"&[data-tone=neutral]": { color: "fg.muted" },
|
|
24
|
+
"& > svg": { flexShrink: "0" },
|
|
25
|
+
});
|
|
26
|
+
const trendText = css({ minWidth: "0", overflow: "hidden", textOverflow: "ellipsis" });
|
|
27
|
+
const TREND_ARROWS = { up: ArrowUpIcon, down: ArrowDownIcon, flat: ArrowRightIcon };
|
|
28
|
+
export function Trend({ direction, tone = "neutral", arrow = true, children }) {
|
|
29
|
+
const Arrow = TREND_ARROWS[direction];
|
|
30
|
+
return (_jsxs("span", { className: trend, "data-tone": tone, "data-ciridae-ui": "", children: [arrow && _jsx(Arrow, { className: icon({ size: "compact" }), weight: "bold", "aria-hidden": "true" }), _jsx("span", { className: trendText, children: children })] }));
|
|
31
|
+
}
|
|
32
|
+
/* Sparkline: drawn into a 100x100 box that stretches to its container. */
|
|
33
|
+
const plot = css({ position: "relative", color: "accent.blue" });
|
|
34
|
+
const svg = css({
|
|
35
|
+
position: "absolute",
|
|
36
|
+
inset: "0",
|
|
37
|
+
width: "100%",
|
|
38
|
+
height: "100%",
|
|
39
|
+
overflow: "visible",
|
|
40
|
+
});
|
|
41
|
+
const endPoint = css({
|
|
42
|
+
position: "absolute",
|
|
43
|
+
borderRadius: "round",
|
|
44
|
+
background: "accent.blue",
|
|
45
|
+
borderStyle: "solid",
|
|
46
|
+
borderColor: "bg.card",
|
|
47
|
+
translate: "-50% -50%",
|
|
48
|
+
});
|
|
49
|
+
/** A run of values as a line filling its box; decorative, as the figure beside it says what it shows. */
|
|
50
|
+
export function Sparkline({ values, low: ownLow, high: ownHigh, strokeWidth = 1.5, endPointSize = 6, className, ...props }) {
|
|
51
|
+
const lowest = Math.min(...values);
|
|
52
|
+
const high = ownHigh ?? Math.max(...values);
|
|
53
|
+
const low = ownLow ?? lowest - (high - lowest) * 0.4;
|
|
54
|
+
const span = high - low || 1;
|
|
55
|
+
const tops = values.map((value) => 100 - ((value - low) / span) * 100);
|
|
56
|
+
const step = 100 / Math.max(values.length - 1, 1);
|
|
57
|
+
const points = tops.map((top, index) => `${index * step},${top}`).join(" ");
|
|
58
|
+
const lastTop = tops[tops.length - 1] ?? 100;
|
|
59
|
+
return (_jsxs("div", { "aria-hidden": "true", ...props, className: cx(plot, className), "data-ciridae-ui": "", children: [_jsxs("svg", { className: svg, viewBox: "0 0 100 100", preserveAspectRatio: "none", children: [_jsx("polygon", { points: `0,100 ${points} 100,100`, fill: "currentColor", fillOpacity: 0.08 }), _jsx("polyline", { points: points, fill: "none", stroke: "currentColor", strokeWidth: strokeWidth, strokeLinejoin: "round", vectorEffect: "non-scaling-stroke" })] }), _jsx("span", { className: endPoint, style: {
|
|
60
|
+
insetInlineStart: "100%",
|
|
61
|
+
top: `${lastTop}%`,
|
|
62
|
+
width: endPointSize,
|
|
63
|
+
height: endPointSize,
|
|
64
|
+
borderWidth: strokeWidth,
|
|
65
|
+
} })] }));
|
|
66
|
+
}
|
|
67
|
+
/* Metric card: a figure with its change, and its run beside it. */
|
|
68
|
+
const metricCard = css(cardSurface, {
|
|
69
|
+
display: "flex",
|
|
70
|
+
gap: "layout.contentGap",
|
|
71
|
+
padding: "panel.comfortable",
|
|
72
|
+
color: "fg.primary",
|
|
73
|
+
font: "inherit",
|
|
74
|
+
textAlign: "start",
|
|
75
|
+
textDecoration: "none",
|
|
76
|
+
lineHeight: "tight",
|
|
77
|
+
"&:is(button, a)": { cursor: "pointer", _hover: { borderColor: "border.glass" } },
|
|
78
|
+
_focusVisible: { focusRing: "outer" },
|
|
79
|
+
"& > [data-sparkline]": {
|
|
80
|
+
width: "84px",
|
|
81
|
+
height: "25px",
|
|
82
|
+
flexShrink: "0",
|
|
83
|
+
alignSelf: "flex-end",
|
|
84
|
+
},
|
|
85
|
+
});
|
|
86
|
+
const metricCopy = css({
|
|
87
|
+
display: "flex",
|
|
88
|
+
flexDirection: "column",
|
|
89
|
+
gap: "layout.controlGap",
|
|
90
|
+
flex: "1",
|
|
91
|
+
minWidth: "0",
|
|
92
|
+
});
|
|
93
|
+
const metricLabel = css({ fontSize: "code", fontWeight: "medium" });
|
|
94
|
+
const metricValue = css({
|
|
95
|
+
fontSize: "heading.page",
|
|
96
|
+
fontWeight: "medium",
|
|
97
|
+
lineHeight: "tight",
|
|
98
|
+
fontVariantNumeric: "tabular-nums",
|
|
99
|
+
});
|
|
100
|
+
export function MetricCard({ label, value, change, sparkline, onSelect, href, render, className, ...props }) {
|
|
101
|
+
return useRender({
|
|
102
|
+
defaultTagName: href !== undefined ? "a" : onSelect !== undefined ? "button" : "div",
|
|
103
|
+
render,
|
|
104
|
+
props: {
|
|
105
|
+
...(href !== undefined
|
|
106
|
+
? { href }
|
|
107
|
+
: onSelect !== undefined
|
|
108
|
+
? { type: "button" }
|
|
109
|
+
: {}),
|
|
110
|
+
...props,
|
|
111
|
+
onClick: onSelect,
|
|
112
|
+
className: cx(metricCard, className),
|
|
113
|
+
"data-ciridae-ui": "",
|
|
114
|
+
children: (_jsxs(_Fragment, { children: [_jsxs("span", { className: metricCopy, children: [_jsx("span", { className: metricLabel, children: label }), _jsx("span", { className: metricValue, children: value }), change && _jsx(Trend, { ...change })] }), sparkline && _jsx(Sparkline, { values: sparkline, "data-sparkline": "" })] })),
|
|
115
|
+
},
|
|
116
|
+
});
|
|
117
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { Tone } from "./badge.js";
|
|
2
|
+
import type { ComponentProps, ReactNode } from "react";
|
|
3
|
+
export type StatusBannerProps = Omit<ComponentProps<"div">, "title"> & {
|
|
4
|
+
/** The message. */
|
|
5
|
+
title: ReactNode;
|
|
6
|
+
/** More about it, continuing on the same line in muted text. */
|
|
7
|
+
description?: ReactNode;
|
|
8
|
+
tone?: Tone;
|
|
9
|
+
/** `filled` for a state that blocks the reader; a `danger` banner is filled by default. */
|
|
10
|
+
emphasis?: "inline" | "filled";
|
|
11
|
+
/** A link or text button at the end of the message, such as Retry. */
|
|
12
|
+
action?: ReactNode;
|
|
13
|
+
onDismiss?: () => void;
|
|
14
|
+
/** The locale's "Dismiss" by default. */
|
|
15
|
+
dismissLabel?: string;
|
|
16
|
+
};
|
|
17
|
+
export declare function StatusBanner({ title, description, tone, emphasis, action, onDismiss, dismissLabel, className, ...props }: StatusBannerProps): import("@types/react").JSX.Element;
|