@ciridae/ui 0.16.1 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +17 -12
- package/dist/chat/chat-api-error.d.ts +14 -0
- package/dist/chat/chat-api-error.js +11 -0
- package/dist/chat/chat-client.d.ts +37 -0
- package/dist/chat/chat-client.js +66 -0
- package/dist/chat/chat-hooks.d.ts +4 -0
- package/dist/chat/chat-hooks.js +4 -0
- package/dist/chat/chat-query-keys.d.ts +10 -0
- package/dist/chat/chat-query-keys.js +8 -0
- package/dist/chat/contract.d.ts +488 -0
- package/dist/chat/contract.js +223 -0
- package/dist/chat/conversation-items-query-options.d.ts +382 -0
- package/dist/chat/conversation-items-query-options.js +15 -0
- package/dist/chat/describe-tool-call.d.ts +5 -0
- package/dist/chat/describe-tool-call.js +33 -0
- package/dist/chat/fetch-new-conversation-items.d.ts +10 -0
- package/dist/chat/fetch-new-conversation-items.js +38 -0
- package/dist/chat/message-group-position.d.ts +17 -0
- package/dist/chat/message-group-position.js +25 -0
- package/dist/chat/message-text.d.ts +23 -0
- package/dist/chat/message-text.js +118 -0
- package/dist/chat/mock-chat-client.d.ts +97 -0
- package/dist/chat/mock-chat-client.js +566 -0
- package/dist/chat/use-chat-conversation.d.ts +43 -0
- package/dist/chat/use-chat-conversation.js +156 -0
- package/dist/chat/use-conversation-list.d.ts +32 -0
- package/dist/chat/use-conversation-list.js +19 -0
- package/dist/ciridae.css +60 -479
- package/dist/components/activity-feed.d.ts +80 -0
- package/dist/components/activity-feed.js +373 -0
- package/dist/components/agent-work.d.ts +76 -0
- package/dist/components/agent-work.js +224 -0
- package/dist/components/app-navigation.d.ts +66 -0
- package/dist/components/app-navigation.js +102 -0
- package/dist/components/badge.d.ts +14 -0
- package/dist/components/badge.js +107 -0
- package/dist/components/brand-icons.d.ts +17 -0
- package/dist/components/brand-icons.js +21 -0
- package/dist/components/breakpoint.d.ts +7 -0
- package/dist/components/breakpoint.js +16 -0
- package/dist/components/bulk-action-bar.d.ts +15 -0
- package/dist/components/bulk-action-bar.js +45 -0
- package/dist/components/button.d.ts +52 -0
- package/dist/components/button.js +272 -0
- package/dist/components/calendar.d.ts +14 -0
- package/dist/components/calendar.js +158 -0
- package/dist/components/centered-page.d.ts +21 -0
- package/dist/components/centered-page.js +55 -0
- package/dist/components/chart.d.ts +22 -0
- package/dist/components/chart.js +116 -0
- package/dist/components/chat-page.d.ts +34 -0
- package/dist/components/chat-page.js +171 -0
- package/dist/components/chat-sheet-controller.d.ts +50 -0
- package/dist/components/chat-sheet-controller.js +133 -0
- package/dist/components/chat-sheet.d.ts +80 -0
- package/dist/components/chat-sheet.js +544 -0
- package/dist/components/chat.d.ts +135 -0
- package/dist/components/chat.js +545 -0
- package/dist/components/checkbox-item.d.ts +11 -0
- package/dist/components/checkbox-item.js +45 -0
- package/dist/components/checkbox-list.d.ts +51 -0
- package/dist/components/checkbox-list.js +167 -0
- package/dist/components/chip.d.ts +17 -0
- package/dist/components/chip.js +43 -0
- package/dist/components/collapsible.d.ts +8 -0
- package/dist/components/collapsible.js +41 -0
- package/dist/components/color-theme.d.ts +40 -0
- package/dist/components/color-theme.js +109 -0
- package/dist/components/column-settings.d.ts +22 -0
- package/dist/components/column-settings.js +112 -0
- package/dist/components/command-match.d.ts +7 -0
- package/dist/components/command-match.js +50 -0
- package/dist/components/command-menu.d.ts +43 -0
- package/dist/components/command-menu.js +339 -0
- package/dist/components/command-palette.d.ts +36 -0
- package/dist/components/command-palette.js +77 -0
- package/dist/components/controllable-state.d.ts +5 -0
- package/dist/components/controllable-state.js +15 -0
- package/dist/components/copyable-id.d.ts +37 -0
- package/dist/components/copyable-id.js +136 -0
- package/dist/components/data-display.d.ts +47 -0
- package/dist/components/data-display.js +221 -0
- package/dist/components/data-grid.d.ts +170 -0
- package/dist/components/data-grid.js +829 -0
- package/dist/components/date-range-picker.d.ts +44 -0
- package/dist/components/date-range-picker.js +153 -0
- package/dist/components/date-time.d.ts +11 -0
- package/dist/components/date-time.js +44 -0
- package/dist/components/dialog-height-context.d.ts +2 -0
- package/dist/components/dialog-height-context.js +3 -0
- package/dist/components/document-viewer.d.ts +62 -0
- package/dist/components/document-viewer.js +419 -0
- package/dist/components/drawer.d.ts +44 -0
- package/dist/components/drawer.js +236 -0
- package/dist/components/dropzone.d.ts +47 -0
- package/dist/components/dropzone.js +370 -0
- package/dist/components/editable-field.d.ts +99 -0
- package/dist/components/editable-field.js +422 -0
- package/dist/components/email-input.d.ts +12 -0
- package/dist/components/email-input.js +83 -0
- package/dist/components/environment-frame.d.ts +13 -0
- package/dist/components/environment-frame.js +42 -0
- package/dist/components/expandable-text.d.ts +9 -0
- package/dist/components/expandable-text.js +48 -0
- package/dist/components/feedback-screenshot.d.ts +19 -0
- package/dist/components/feedback-screenshot.js +162 -0
- package/dist/components/feedback-sheet.d.ts +80 -0
- package/dist/components/feedback-sheet.js +475 -0
- package/dist/components/field-context.d.ts +23 -0
- package/dist/components/field-context.js +15 -0
- package/dist/components/filter-bar.d.ts +77 -0
- package/dist/components/filter-bar.js +350 -0
- package/dist/components/form-controls.d.ts +53 -0
- package/dist/components/form-controls.js +123 -0
- package/dist/components/form-layout.d.ts +32 -0
- package/dist/components/form-layout.js +72 -0
- package/dist/components/hotkeys.d.ts +27 -0
- package/dist/components/hotkeys.js +70 -0
- package/dist/components/icon.d.ts +58 -0
- package/dist/components/icon.js +42 -0
- package/dist/components/input.d.ts +36 -0
- package/dist/components/input.js +249 -0
- package/dist/components/keyboard-shortcuts.d.ts +10 -0
- package/dist/components/keyboard-shortcuts.js +91 -0
- package/dist/components/keycap.d.ts +12 -0
- package/dist/components/keycap.js +45 -0
- package/dist/components/layout.d.ts +174 -0
- package/dist/components/layout.js +282 -0
- package/dist/components/lightbox.d.ts +14 -0
- package/dist/components/lightbox.js +117 -0
- package/dist/components/link.d.ts +13 -0
- package/dist/components/link.js +37 -0
- package/dist/components/locale.d.ts +463 -0
- package/dist/components/locale.js +501 -0
- package/dist/components/log-list.d.ts +20 -0
- package/dist/components/log-list.js +92 -0
- package/dist/components/mention-input.d.ts +50 -0
- package/dist/components/mention-input.js +503 -0
- package/dist/components/menu.d.ts +76 -0
- package/dist/components/menu.js +112 -0
- package/dist/components/meter.d.ts +14 -0
- package/dist/components/meter.js +44 -0
- package/dist/components/navigation.d.ts +21 -0
- package/dist/components/navigation.js +75 -0
- package/dist/components/notification-tray.d.ts +47 -0
- package/dist/components/notification-tray.js +218 -0
- package/dist/components/overlays.d.ts +107 -0
- package/dist/components/overlays.js +240 -0
- package/dist/components/page-frame.d.ts +65 -0
- package/dist/components/page-frame.js +94 -0
- package/dist/components/panel.d.ts +24 -0
- package/dist/components/panel.js +107 -0
- package/dist/components/profile-header.d.ts +15 -0
- package/dist/components/profile-header.js +40 -0
- package/dist/components/progress.d.ts +5 -0
- package/dist/components/progress.js +18 -0
- package/dist/components/project-avatar.d.ts +12 -0
- package/dist/components/project-avatar.js +22 -0
- package/dist/components/radio-card.d.ts +22 -0
- package/dist/components/radio-card.js +66 -0
- package/dist/components/recent-items.d.ts +28 -0
- package/dist/components/recent-items.js +63 -0
- package/dist/components/record.d.ts +95 -0
- package/dist/components/record.js +282 -0
- package/dist/components/scroll-area.d.ts +16 -0
- package/dist/components/scroll-area.js +50 -0
- package/dist/components/secret-dialog.d.ts +10 -0
- package/dist/components/secret-dialog.js +12 -0
- package/dist/components/segmented-bar.d.ts +23 -0
- package/dist/components/segmented-bar.js +75 -0
- package/dist/components/select.d.ts +84 -0
- package/dist/components/select.js +374 -0
- package/dist/components/settings.d.ts +34 -0
- package/dist/components/settings.js +56 -0
- package/dist/components/shell-skeleton.d.ts +7 -0
- package/dist/components/shell-skeleton.js +15 -0
- package/dist/components/shell.d.ts +62 -0
- package/dist/components/shell.js +415 -0
- package/dist/components/side-panel.d.ts +36 -0
- package/dist/components/side-panel.js +184 -0
- package/dist/components/sidebar.d.ts +35 -0
- package/dist/components/sidebar.js +207 -0
- package/dist/components/site-banner.d.ts +25 -0
- package/dist/components/site-banner.js +30 -0
- package/dist/components/skeleton.d.ts +15 -0
- package/dist/components/skeleton.js +61 -0
- package/dist/components/skeletons.d.ts +28 -0
- package/dist/components/skeletons.js +60 -0
- package/dist/components/stages.d.ts +97 -0
- package/dist/components/stages.js +365 -0
- package/dist/components/stat-card.d.ts +34 -0
- package/dist/components/stat-card.js +117 -0
- package/dist/components/status-banner.d.ts +17 -0
- package/dist/components/status-banner.js +132 -0
- package/dist/components/status.d.ts +32 -0
- package/dist/components/status.js +93 -0
- package/dist/components/steps.d.ts +17 -0
- package/dist/components/steps.js +51 -0
- package/dist/components/switch.d.ts +6 -0
- package/dist/components/switch.js +39 -0
- package/dist/components/tabs.d.ts +48 -0
- package/dist/components/tabs.js +247 -0
- package/dist/components/theme-customizer.d.ts +53 -0
- package/dist/components/theme-customizer.js +116 -0
- package/dist/components/toast.d.ts +23 -0
- package/dist/components/toast.js +140 -0
- package/dist/components/user-chip.d.ts +66 -0
- package/dist/components/user-chip.js +174 -0
- package/dist/components/wizard.d.ts +33 -0
- package/dist/components/wizard.js +91 -0
- package/dist/feedback/client.d.ts +37 -0
- package/dist/feedback/client.js +125 -0
- package/dist/feedback/comment-types.d.ts +17 -0
- package/dist/feedback/contract.d.ts +252 -0
- package/dist/feedback/contract.js +32 -0
- package/dist/feedback/feedback-cache.d.ts +6 -0
- package/dist/feedback/feedback-cache.js +58 -0
- package/dist/feedback/feedback-center-model.d.ts +8 -0
- package/dist/feedback/feedback-center-model.js +37 -0
- package/dist/feedback/feedback-composer-types.d.ts +11 -0
- package/dist/feedback/feedback-controller.d.ts +56 -0
- package/dist/feedback/feedback-controller.js +181 -0
- package/dist/feedback/feedback-tracking-types.d.ts +14 -0
- package/dist/feedback/generated/index.d.ts +1 -0
- package/dist/feedback/generated/index.js +2 -0
- package/dist/feedback/generated/types.gen.d.ts +737 -0
- package/dist/feedback/generated/types.gen.js +2 -0
- package/dist/feedback/generated/zod.gen.d.ts +738 -0
- package/dist/feedback/generated/zod.gen.js +293 -0
- package/dist/feedback/get-response-error-id.d.ts +1 -0
- package/dist/feedback/get-response-error-id.js +7 -0
- package/dist/feedback/operator-client.d.ts +21 -0
- package/dist/feedback/operator-client.js +96 -0
- package/dist/feedback/operator-contract.d.ts +111 -0
- package/dist/feedback/operator-contract.js +22 -0
- package/dist/feedback/operator-controller.d.ts +80 -0
- package/dist/feedback/operator-controller.js +43 -0
- package/dist/feedback/require-config.d.ts +2 -0
- package/dist/feedback/require-config.js +7 -0
- package/dist/feedback/submit-feedback-with-attachments.d.ts +10 -0
- package/dist/feedback/submit-feedback-with-attachments.js +10 -0
- package/dist/format/compact-number.d.ts +2 -0
- package/dist/format/compact-number.js +8 -0
- package/dist/format/money.d.ts +13 -0
- package/dist/format/money.js +21 -0
- package/dist/format/usd.d.ts +2 -0
- package/dist/format/usd.js +16 -0
- package/dist/preset.d.ts +18 -0
- package/dist/preset.js +470 -0
- package/dist/styled-system/css/conditions.mjs +1 -1
- package/dist/styled-system/css/css.mjs +3 -3
- package/dist/styled-system/patterns/box.d.ts +1 -1
- package/dist/styled-system/patterns/container.d.ts +1 -1
- package/dist/styled-system/patterns/link-overlay.d.ts +1 -1
- package/dist/styled-system/patterns/visually-hidden.d.ts +1 -1
- package/dist/styled-system/styles.css +7834 -458
- package/dist/styled-system/tokens/index.mjs +1465 -677
- package/dist/styled-system/tokens/tokens.d.ts +32 -26
- package/dist/styled-system/types/conditions.d.ts +11 -1
- package/dist/styled-system/types/prop-type.d.ts +12 -23
- package/dist/styled-system/types/style-props.d.ts +25 -24
- package/dist/styles.css +60 -479
- package/dist/theme/breakpoints.d.ts +15 -0
- package/dist/theme/breakpoints.js +12 -0
- package/dist/theme/color.d.ts +2 -0
- package/dist/theme/color.js +27 -0
- package/dist/theme/derive.d.ts +5 -0
- package/dist/theme/derive.js +43 -0
- package/dist/theme/index.d.ts +4 -0
- package/dist/theme/index.js +9 -0
- package/dist/theme/options.d.ts +32 -0
- package/dist/theme/options.js +9 -0
- package/dist/theme/palettes.d.ts +60 -0
- package/dist/theme/palettes.js +185 -0
- package/dist/theme/tokens.d.ts +29 -0
- package/dist/theme/tokens.js +188 -0
- package/package.json +475 -68
- package/dist/assets/ciridae/brand-background-dark.webp +0 -0
- package/dist/assets/ciridae/brand-background-light.webp +0 -0
- package/dist/assets/ciridae/ciridae-black.svg +0 -17
- package/dist/assets/ciridae/ciridae-brand-assets.d.ts +0 -25
- package/dist/assets/ciridae/ciridae-brand-assets.js +0 -25
- package/dist/assets/ciridae/ciridae-icon-black.png +0 -0
- package/dist/assets/ciridae/ciridae-icon-white.png +0 -0
- package/dist/assets/ciridae/ciridae-ui-wordmark-black.png +0 -0
- package/dist/assets/ciridae/ciridae-ui-wordmark-white.png +0 -0
- package/dist/assets/ciridae/ciridae-white.svg +0 -17
- package/dist/assets/ciridae/ciridae-wordmark-black.png +0 -0
- package/dist/assets/ciridae/ciridae-wordmark-white.png +0 -0
- package/dist/assets/ciridae/favicon.ico +0 -0
- package/dist/assets/ciridae/logo-white.png +0 -0
- package/dist/assets/ciridae/sign-in-screenshot.png +0 -0
- package/dist/components/blocks/admin-users-table.d.ts +0 -22
- package/dist/components/blocks/admin-users-table.js +0 -115
- package/dist/components/blocks/comment-composer.d.ts +0 -18
- package/dist/components/blocks/comment-composer.js +0 -137
- package/dist/components/blocks/comment-item.d.ts +0 -8
- package/dist/components/blocks/comment-item.js +0 -45
- package/dist/components/blocks/comment-thread.d.ts +0 -19
- package/dist/components/blocks/comment-thread.js +0 -37
- package/dist/components/blocks/comment-types.d.ts +0 -18
- package/dist/components/blocks/comment-types.js +0 -11
- package/dist/components/blocks/copy-field.d.ts +0 -18
- package/dist/components/blocks/copy-field.js +0 -61
- package/dist/components/blocks/feedback-center-comments.d.ts +0 -16
- package/dist/components/blocks/feedback-center-comments.js +0 -61
- package/dist/components/blocks/feedback-center-footer.d.ts +0 -12
- package/dist/components/blocks/feedback-center-footer.js +0 -10
- package/dist/components/blocks/feedback-center-sheet-parts.d.ts +0 -40
- package/dist/components/blocks/feedback-center-sheet-parts.js +0 -39
- package/dist/components/blocks/feedback-center-sheet.d.ts +0 -28
- package/dist/components/blocks/feedback-center-sheet.js +0 -105
- package/dist/components/blocks/feedback-composer-parts.d.ts +0 -16
- package/dist/components/blocks/feedback-composer-parts.js +0 -43
- package/dist/components/blocks/feedback-composer-types.d.ts +0 -12
- package/dist/components/blocks/feedback-composer.d.ts +0 -23
- package/dist/components/blocks/feedback-composer.js +0 -82
- package/dist/components/blocks/feedback-date-format.d.ts +0 -5
- package/dist/components/blocks/feedback-date-format.js +0 -11
- package/dist/components/blocks/feedback-detail-sheet.d.ts +0 -15
- package/dist/components/blocks/feedback-detail-sheet.js +0 -59
- package/dist/components/blocks/feedback-emergency-fields.d.ts +0 -17
- package/dist/components/blocks/feedback-emergency-fields.js +0 -32
- package/dist/components/blocks/feedback-metrics.d.ts +0 -6
- package/dist/components/blocks/feedback-metrics.js +0 -15
- package/dist/components/blocks/feedback-sheet.d.ts +0 -8
- package/dist/components/blocks/feedback-sheet.js +0 -29
- package/dist/components/blocks/feedback-status-badge.d.ts +0 -6
- package/dist/components/blocks/feedback-status-badge.js +0 -15
- package/dist/components/blocks/feedback-table-row.d.ts +0 -6
- package/dist/components/blocks/feedback-table-row.js +0 -27
- package/dist/components/blocks/feedback-table-sort.d.ts +0 -11
- package/dist/components/blocks/feedback-table-sort.js +0 -82
- package/dist/components/blocks/feedback-table.d.ts +0 -16
- package/dist/components/blocks/feedback-table.js +0 -45
- package/dist/components/blocks/feedback-tracking-types.d.ts +0 -102
- package/dist/components/blocks/feedback-tracking-types.js +0 -54
- package/dist/components/blocks/feedback-triage-timeline.d.ts +0 -11
- package/dist/components/blocks/feedback-triage-timeline.js +0 -17
- package/dist/components/blocks/feedback-type-badge.d.ts +0 -11
- package/dist/components/blocks/feedback-type-badge.js +0 -18
- package/dist/components/blocks/feedback-unread-badge.d.ts +0 -6
- package/dist/components/blocks/feedback-unread-badge.js +0 -9
- package/dist/components/blocks/feedback-user-detail.d.ts +0 -11
- package/dist/components/blocks/feedback-user-detail.js +0 -63
- package/dist/components/blocks/feedback-user-list.d.ts +0 -11
- package/dist/components/blocks/feedback-user-list.js +0 -41
- package/dist/components/blocks/generated-connect-link.d.ts +0 -22
- package/dist/components/blocks/generated-connect-link.js +0 -68
- package/dist/components/blocks/invite-user-sheet.d.ts +0 -20
- package/dist/components/blocks/invite-user-sheet.js +0 -72
- package/dist/components/blocks/kanban-board-parts.d.ts +0 -26
- package/dist/components/blocks/kanban-board-parts.js +0 -83
- package/dist/components/blocks/kanban-board-utils.d.ts +0 -58
- package/dist/components/blocks/kanban-board-utils.js +0 -140
- package/dist/components/blocks/kanban-board.d.ts +0 -16
- package/dist/components/blocks/kanban-board.js +0 -35
- package/dist/components/blocks/kanban-card.d.ts +0 -10
- package/dist/components/blocks/kanban-card.js +0 -34
- package/dist/components/blocks/kanban-column.d.ts +0 -17
- package/dist/components/blocks/kanban-column.js +0 -34
- package/dist/components/blocks/kanban-detail-sheet.d.ts +0 -17
- package/dist/components/blocks/kanban-detail-sheet.js +0 -34
- package/dist/components/blocks/kanban-types.d.ts +0 -24
- package/dist/components/blocks/mcp-access-grouped-tool-picker.d.ts +0 -19
- package/dist/components/blocks/mcp-access-grouped-tool-picker.js +0 -116
- package/dist/components/blocks/mcp-access-tool-picker-internals.d.ts +0 -35
- package/dist/components/blocks/mcp-access-tool-picker-internals.js +0 -24
- package/dist/components/blocks/mcp-access-tool-picker.d.ts +0 -22
- package/dist/components/blocks/mcp-access-tool-picker.js +0 -33
- package/dist/components/blocks/mcp-access-types.d.ts +0 -42
- package/dist/components/blocks/mcp-access-types.js +0 -7
- package/dist/components/blocks/mcp-client-setup.d.ts +0 -29
- package/dist/components/blocks/mcp-client-setup.js +0 -58
- package/dist/components/blocks/mcp-connect-clients.d.ts +0 -43
- package/dist/components/blocks/mcp-connect-clients.js +0 -66
- package/dist/components/blocks/mcp-plan-choice.d.ts +0 -17
- package/dist/components/blocks/mcp-plan-choice.js +0 -28
- package/dist/components/blocks/submit-feedback-composer.d.ts +0 -5
- package/dist/components/blocks/submit-feedback-composer.js +0 -40
- package/dist/components/blocks/timestamp-format.d.ts +0 -14
- package/dist/components/blocks/timestamp-format.js +0 -72
- package/dist/components/blocks/use-feedback-composer-state.d.ts +0 -27
- package/dist/components/blocks/use-feedback-composer-state.js +0 -60
- package/dist/components/blocks/use-reveal-thread-end.d.ts +0 -11
- package/dist/components/blocks/use-reveal-thread-end.js +0 -25
- package/dist/components/pages/admin-users-page.d.ts +0 -11
- package/dist/components/pages/admin-users-page.js +0 -30
- package/dist/components/pages/feedback-stakeholder-page-parts.d.ts +0 -18
- package/dist/components/pages/feedback-stakeholder-page-parts.js +0 -36
- package/dist/components/pages/feedback-stakeholder-page.d.ts +0 -9
- package/dist/components/pages/feedback-stakeholder-page.js +0 -66
- package/dist/components/pages/kanban-page.d.ts +0 -13
- package/dist/components/pages/kanban-page.js +0 -68
- package/dist/components/ui/accordion.d.ts +0 -7
- package/dist/components/ui/accordion.js +0 -17
- package/dist/components/ui/alert-dialog.d.ts +0 -22
- package/dist/components/ui/alert-dialog.js +0 -51
- package/dist/components/ui/alert.d.ts +0 -9
- package/dist/components/ui/alert.js +0 -24
- package/dist/components/ui/app-shell-page.d.ts +0 -22
- package/dist/components/ui/app-shell-page.js +0 -21
- package/dist/components/ui/app-shell.d.ts +0 -45
- package/dist/components/ui/app-shell.js +0 -44
- package/dist/components/ui/aspect-ratio.d.ts +0 -3
- package/dist/components/ui/aspect-ratio.js +0 -7
- package/dist/components/ui/avatar.d.ts +0 -11
- package/dist/components/ui/avatar.js +0 -22
- package/dist/components/ui/badge-variants.d.ts +0 -100
- package/dist/components/ui/badge-variants.js +0 -140
- package/dist/components/ui/badge.d.ts +0 -6
- package/dist/components/ui/badge.js +0 -9
- package/dist/components/ui/breadcrumb.d.ts +0 -11
- package/dist/components/ui/breadcrumb.js +0 -27
- package/dist/components/ui/button-group-variants.d.ts +0 -6
- package/dist/components/ui/button-group-variants.js +0 -13
- package/dist/components/ui/button-group.d.ts +0 -8
- package/dist/components/ui/button-group.js +0 -16
- package/dist/components/ui/button-variants.d.ts +0 -133
- package/dist/components/ui/button-variants.js +0 -170
- package/dist/components/ui/button.d.ts +0 -8
- package/dist/components/ui/button.js +0 -59
- package/dist/components/ui/calendar.d.ts +0 -10
- package/dist/components/ui/calendar.js +0 -99
- package/dist/components/ui/card.d.ts +0 -14
- package/dist/components/ui/card.js +0 -28
- package/dist/components/ui/carousel.d.ts +0 -19
- package/dist/components/ui/carousel.js +0 -104
- package/dist/components/ui/chart-context.d.ts +0 -33
- package/dist/components/ui/chart-context.js +0 -36
- package/dist/components/ui/chart-panel.d.ts +0 -11
- package/dist/components/ui/chart-panel.js +0 -6
- package/dist/components/ui/chart-tooltip.d.ts +0 -13
- package/dist/components/ui/chart-tooltip.js +0 -84
- package/dist/components/ui/chart.d.ts +0 -23
- package/dist/components/ui/chart.js +0 -52
- package/dist/components/ui/checkbox.d.ts +0 -4
- package/dist/components/ui/checkbox.js +0 -9
- package/dist/components/ui/ciridae-ui-provider.d.ts +0 -8
- package/dist/components/ui/ciridae-ui-provider.js +0 -14
- package/dist/components/ui/collapsible.d.ts +0 -5
- package/dist/components/ui/collapsible.js +0 -12
- package/dist/components/ui/color-theme-context.d.ts +0 -28
- package/dist/components/ui/color-theme-context.js +0 -3
- package/dist/components/ui/color-theme.d.ts +0 -5
- package/dist/components/ui/color-theme.js +0 -147
- package/dist/components/ui/combobox-anchor.d.ts +0 -3
- package/dist/components/ui/combobox-anchor.js +0 -5
- package/dist/components/ui/combobox.d.ts +0 -24
- package/dist/components/ui/combobox.js +0 -54
- package/dist/components/ui/command.d.ts +0 -19
- package/dist/components/ui/command.js +0 -38
- package/dist/components/ui/context-menu.d.ts +0 -30
- package/dist/components/ui/context-menu.js +0 -63
- package/dist/components/ui/data-table-column-settings.d.ts +0 -23
- package/dist/components/ui/data-table-column-settings.js +0 -170
- package/dist/components/ui/data-table-context.d.ts +0 -8
- package/dist/components/ui/data-table-context.js +0 -53
- package/dist/components/ui/data-table-controls.d.ts +0 -9
- package/dist/components/ui/data-table-controls.js +0 -30
- package/dist/components/ui/data-table-facet-filter.d.ts +0 -39
- package/dist/components/ui/data-table-facet-filter.js +0 -65
- package/dist/components/ui/data-table-grid.d.ts +0 -10
- package/dist/components/ui/data-table-grid.js +0 -34
- package/dist/components/ui/data-table-pagination.d.ts +0 -17
- package/dist/components/ui/data-table-pagination.js +0 -89
- package/dist/components/ui/data-table-search-input.d.ts +0 -14
- package/dist/components/ui/data-table-search-input.js +0 -15
- package/dist/components/ui/data-table-state.d.ts +0 -19
- package/dist/components/ui/data-table-state.js +0 -8
- package/dist/components/ui/data-table-tanstack.d.ts +0 -99
- package/dist/components/ui/data-table-tanstack.js +0 -128
- package/dist/components/ui/data-table.d.ts +0 -19
- package/dist/components/ui/data-table.js +0 -35
- package/dist/components/ui/dialog.d.ts +0 -23
- package/dist/components/ui/dialog.js +0 -48
- package/dist/components/ui/direction-context.d.ts +0 -3
- package/dist/components/ui/direction-context.js +0 -3
- package/dist/components/ui/direction.d.ts +0 -6
- package/dist/components/ui/direction.js +0 -7
- package/dist/components/ui/drawer.d.ts +0 -18
- package/dist/components/ui/drawer.js +0 -47
- package/dist/components/ui/dropdown-menu.d.ts +0 -30
- package/dist/components/ui/dropdown-menu.js +0 -63
- package/dist/components/ui/empty.d.ts +0 -11
- package/dist/components/ui/empty.js +0 -33
- package/dist/components/ui/expandable-data-table.d.ts +0 -24
- package/dist/components/ui/expandable-data-table.js +0 -62
- package/dist/components/ui/field.d.ts +0 -26
- package/dist/components/ui/field.js +0 -74
- package/dist/components/ui/file-upload-field-parts.d.ts +0 -21
- package/dist/components/ui/file-upload-field-parts.js +0 -55
- package/dist/components/ui/file-upload-field.d.ts +0 -16
- package/dist/components/ui/file-upload-field.js +0 -85
- package/dist/components/ui/form-context.d.ts +0 -23
- package/dist/components/ui/form-context.js +0 -35
- package/dist/components/ui/form-sheet.d.ts +0 -22
- package/dist/components/ui/form-sheet.js +0 -74
- package/dist/components/ui/form.d.ts +0 -12
- package/dist/components/ui/form.js +0 -38
- package/dist/components/ui/hover-card.d.ts +0 -10
- package/dist/components/ui/hover-card.js +0 -22
- package/dist/components/ui/input-group.d.ts +0 -16
- package/dist/components/ui/input-group.js +0 -62
- package/dist/components/ui/input-otp.d.ts +0 -11
- package/dist/components/ui/input-otp.js +0 -21
- package/dist/components/ui/input.d.ts +0 -3
- package/dist/components/ui/input.js +0 -6
- package/dist/components/ui/item.d.ts +0 -24
- package/dist/components/ui/item.js +0 -73
- package/dist/components/ui/kbd.d.ts +0 -3
- package/dist/components/ui/kbd.js +0 -9
- package/dist/components/ui/label.d.ts +0 -4
- package/dist/components/ui/label.js +0 -7
- package/dist/components/ui/loading-state.d.ts +0 -27
- package/dist/components/ui/loading-state.js +0 -44
- package/dist/components/ui/menubar.d.ts +0 -30
- package/dist/components/ui/menubar.js +0 -63
- package/dist/components/ui/metrics-strip.d.ts +0 -7
- package/dist/components/ui/metrics-strip.js +0 -18
- package/dist/components/ui/native-select.d.ts +0 -7
- package/dist/components/ui/native-select.js +0 -13
- package/dist/components/ui/navigation-menu-variants.d.ts +0 -2
- package/dist/components/ui/navigation-menu-variants.js +0 -3
- package/dist/components/ui/navigation-menu.d.ts +0 -13
- package/dist/components/ui/navigation-menu.js +0 -30
- package/dist/components/ui/page-header.d.ts +0 -33
- package/dist/components/ui/page-header.js +0 -54
- package/dist/components/ui/pagination.d.ts +0 -13
- package/dist/components/ui/pagination.js +0 -29
- package/dist/components/ui/popover.d.ts +0 -14
- package/dist/components/ui/popover.js +0 -34
- package/dist/components/ui/progress.d.ts +0 -4
- package/dist/components/ui/progress.js +0 -8
- package/dist/components/ui/property-list.d.ts +0 -6
- package/dist/components/ui/property-list.js +0 -15
- package/dist/components/ui/radio-group.d.ts +0 -5
- package/dist/components/ui/radio-group.js +0 -11
- package/dist/components/ui/registry-docs-api.d.ts +0 -11
- package/dist/components/ui/registry-docs-api.js +0 -9
- package/dist/components/ui/registry-docs-code.d.ts +0 -19
- package/dist/components/ui/registry-docs-code.js +0 -78
- package/dist/components/ui/registry-docs-showcase.d.ts +0 -11
- package/dist/components/ui/registry-docs-showcase.js +0 -27
- package/dist/components/ui/registry-docs.d.ts +0 -27
- package/dist/components/ui/registry-docs.js +0 -32
- package/dist/components/ui/resizable.d.ts +0 -14
- package/dist/components/ui/resizable.js +0 -15
- package/dist/components/ui/scroll-area.d.ts +0 -7
- package/dist/components/ui/scroll-area.js +0 -10
- package/dist/components/ui/select.d.ts +0 -15
- package/dist/components/ui/select.js +0 -38
- package/dist/components/ui/separator.d.ts +0 -4
- package/dist/components/ui/separator.js +0 -7
- package/dist/components/ui/sheet.d.ts +0 -21
- package/dist/components/ui/sheet.js +0 -62
- package/dist/components/ui/sidebar/context.d.ts +0 -27
- package/dist/components/ui/sidebar/context.js +0 -23
- package/dist/components/ui/sidebar/group.d.ts +0 -10
- package/dist/components/ui/sidebar/group.js +0 -18
- package/dist/components/ui/sidebar/layout.d.ts +0 -17
- package/dist/components/ui/sidebar/layout.js +0 -78
- package/dist/components/ui/sidebar/menu.d.ts +0 -30
- package/dist/components/ui/sidebar/menu.js +0 -64
- package/dist/components/ui/sidebar/provider.d.ts +0 -7
- package/dist/components/ui/sidebar/provider.js +0 -53
- package/dist/components/ui/sidebar/rail.d.ts +0 -3
- package/dist/components/ui/sidebar/rail.js +0 -12
- package/dist/components/ui/sidebar/trigger.d.ts +0 -4
- package/dist/components/ui/sidebar/trigger.js +0 -16
- package/dist/components/ui/sidebar-account-menu-theme.d.ts +0 -7
- package/dist/components/ui/sidebar-account-menu-theme.js +0 -32
- package/dist/components/ui/sidebar-account-menu.d.ts +0 -16
- package/dist/components/ui/sidebar-account-menu.js +0 -51
- package/dist/components/ui/sidebar.d.ts +0 -7
- package/dist/components/ui/sidebar.js +0 -7
- package/dist/components/ui/skeleton.d.ts +0 -2
- package/dist/components/ui/skeleton.js +0 -15
- package/dist/components/ui/slider.d.ts +0 -4
- package/dist/components/ui/slider.js +0 -9
- package/dist/components/ui/sonner.d.ts +0 -3
- package/dist/components/ui/sonner.js +0 -33
- package/dist/components/ui/spinner.d.ts +0 -2
- package/dist/components/ui/spinner.js +0 -16
- package/dist/components/ui/switch.d.ts +0 -6
- package/dist/components/ui/switch.js +0 -7
- package/dist/components/ui/table.d.ts +0 -21
- package/dist/components/ui/table.js +0 -34
- package/dist/components/ui/tabs-variants.d.ts +0 -6
- package/dist/components/ui/tabs-variants.js +0 -13
- package/dist/components/ui/tabs.d.ts +0 -8
- package/dist/components/ui/tabs.js +0 -17
- package/dist/components/ui/textarea.d.ts +0 -3
- package/dist/components/ui/textarea.js +0 -6
- package/dist/components/ui/toggle-group.d.ts +0 -9
- package/dist/components/ui/toggle-group.js +0 -24
- package/dist/components/ui/toggle-variants.d.ts +0 -7
- package/dist/components/ui/toggle-variants.js +0 -19
- package/dist/components/ui/toggle.d.ts +0 -5
- package/dist/components/ui/toggle.js +0 -9
- package/dist/components/ui/tooltip.d.ts +0 -14
- package/dist/components/ui/tooltip.js +0 -25
- package/dist/components/ui/use-color-theme.d.ts +0 -2
- package/dist/components/ui/use-color-theme.js +0 -10
- package/dist/components/ui/workflow-timeline.d.ts +0 -20
- package/dist/components/ui/workflow-timeline.js +0 -92
- package/dist/components/walkthrough/presentation/WalkthroughCoach.d.ts +0 -14
- package/dist/components/walkthrough/presentation/WalkthroughCoach.js +0 -32
- package/dist/components/walkthrough/presentation/WalkthroughHighlight.d.ts +0 -5
- package/dist/components/walkthrough/presentation/WalkthroughHighlight.js +0 -9
- package/dist/components/walkthrough/presentation/WalkthroughOverlay.d.ts +0 -1
- package/dist/components/walkthrough/presentation/WalkthroughOverlay.js +0 -70
- package/dist/components/walkthrough/presentation/positionWalkthroughCoach.d.ts +0 -11
- package/dist/components/walkthrough/presentation/positionWalkthroughCoach.js +0 -24
- package/dist/components/walkthrough/presentation/useWalkthroughCoachPosition.d.ts +0 -4
- package/dist/components/walkthrough/presentation/useWalkthroughCoachPosition.js +0 -17
- package/dist/components/walkthrough/runtime/WalkthroughContextDefinition.d.ts +0 -20
- package/dist/components/walkthrough/runtime/WalkthroughContextDefinition.js +0 -2
- package/dist/components/walkthrough/runtime/WalkthroughProvider.d.ts +0 -12
- package/dist/components/walkthrough/runtime/WalkthroughProvider.js +0 -190
- package/dist/components/walkthrough/runtime/useWalkthrough.d.ts +0 -1
- package/dist/components/walkthrough/runtime/useWalkthrough.js +0 -8
- package/dist/components/walkthrough/runtime/walkthroughEvents.d.ts +0 -3
- package/dist/components/walkthrough/runtime/walkthroughEvents.js +0 -55
- package/dist/components/walkthrough/runtime/walkthroughLocation.d.ts +0 -2
- package/dist/components/walkthrough/runtime/walkthroughLocation.js +0 -27
- package/dist/components/walkthrough/runtime/walkthroughStorage.d.ts +0 -3
- package/dist/components/walkthrough/runtime/walkthroughStorage.js +0 -54
- package/dist/components/walkthrough/runtime/walkthroughTypes.d.ts +0 -32
- package/dist/components/walkthrough/targeting/listenForOutsideWalkthroughInteraction.d.ts +0 -2
- package/dist/components/walkthrough/targeting/listenForOutsideWalkthroughInteraction.js +0 -19
- package/dist/components/walkthrough/targeting/useWalkthroughTargetRect.d.ts +0 -15
- package/dist/components/walkthrough/targeting/useWalkthroughTargetRect.js +0 -54
- package/dist/components/walkthrough/targeting/walkthroughTarget.d.ts +0 -6
- package/dist/components/walkthrough/targeting/walkthroughTarget.js +0 -24
- package/dist/components/walkthrough.d.ts +0 -4
- package/dist/components/walkthrough.js +0 -2
- package/dist/entries/accordion.d.ts +0 -1
- package/dist/entries/accordion.js +0 -1
- package/dist/entries/admin-users-page.d.ts +0 -1
- package/dist/entries/admin-users-page.js +0 -1
- package/dist/entries/admin-users-table.d.ts +0 -1
- package/dist/entries/admin-users-table.js +0 -1
- package/dist/entries/alert-dialog.d.ts +0 -1
- package/dist/entries/alert-dialog.js +0 -1
- package/dist/entries/alert.d.ts +0 -1
- package/dist/entries/alert.js +0 -1
- package/dist/entries/app-shell-page.d.ts +0 -1
- package/dist/entries/app-shell-page.js +0 -1
- package/dist/entries/app-shell.d.ts +0 -1
- package/dist/entries/app-shell.js +0 -1
- package/dist/entries/aspect-ratio.d.ts +0 -1
- package/dist/entries/aspect-ratio.js +0 -1
- package/dist/entries/avatar.d.ts +0 -1
- package/dist/entries/avatar.js +0 -1
- package/dist/entries/badge-variants.d.ts +0 -1
- package/dist/entries/badge-variants.js +0 -1
- package/dist/entries/badge.d.ts +0 -1
- package/dist/entries/badge.js +0 -1
- package/dist/entries/breadcrumb.d.ts +0 -1
- package/dist/entries/breadcrumb.js +0 -1
- package/dist/entries/button-group-variants.d.ts +0 -1
- package/dist/entries/button-group-variants.js +0 -1
- package/dist/entries/button-group.d.ts +0 -1
- package/dist/entries/button-group.js +0 -1
- package/dist/entries/button-variants.d.ts +0 -1
- package/dist/entries/button-variants.js +0 -1
- package/dist/entries/button.d.ts +0 -1
- package/dist/entries/button.js +0 -1
- package/dist/entries/calendar.d.ts +0 -1
- package/dist/entries/calendar.js +0 -1
- package/dist/entries/card.d.ts +0 -1
- package/dist/entries/card.js +0 -1
- package/dist/entries/carousel.d.ts +0 -1
- package/dist/entries/carousel.js +0 -1
- package/dist/entries/chart-context.d.ts +0 -1
- package/dist/entries/chart-context.js +0 -1
- package/dist/entries/chart-panel.d.ts +0 -1
- package/dist/entries/chart-panel.js +0 -1
- package/dist/entries/chart-tooltip.d.ts +0 -1
- package/dist/entries/chart-tooltip.js +0 -1
- package/dist/entries/chart.d.ts +0 -1
- package/dist/entries/chart.js +0 -1
- package/dist/entries/checkbox.d.ts +0 -1
- package/dist/entries/checkbox.js +0 -1
- package/dist/entries/ciridae-brand-assets.d.ts +0 -1
- package/dist/entries/ciridae-brand-assets.js +0 -1
- package/dist/entries/ciridae-ui-provider.d.ts +0 -1
- package/dist/entries/ciridae-ui-provider.js +0 -1
- package/dist/entries/collapsible.d.ts +0 -1
- package/dist/entries/collapsible.js +0 -1
- package/dist/entries/color-theme-context.d.ts +0 -1
- package/dist/entries/color-theme-context.js +0 -1
- package/dist/entries/color-theme.d.ts +0 -1
- package/dist/entries/color-theme.js +0 -1
- package/dist/entries/combobox-anchor.d.ts +0 -1
- package/dist/entries/combobox-anchor.js +0 -1
- package/dist/entries/combobox.d.ts +0 -1
- package/dist/entries/combobox.js +0 -1
- package/dist/entries/command.d.ts +0 -1
- package/dist/entries/command.js +0 -1
- package/dist/entries/comment-composer.d.ts +0 -1
- package/dist/entries/comment-composer.js +0 -1
- package/dist/entries/comment-item.d.ts +0 -1
- package/dist/entries/comment-item.js +0 -1
- package/dist/entries/comment-thread.d.ts +0 -1
- package/dist/entries/comment-thread.js +0 -1
- package/dist/entries/comment-types.d.ts +0 -1
- package/dist/entries/comment-types.js +0 -1
- package/dist/entries/context-menu.d.ts +0 -1
- package/dist/entries/context-menu.js +0 -1
- package/dist/entries/copy-field.d.ts +0 -1
- package/dist/entries/copy-field.js +0 -1
- package/dist/entries/data-table-column-settings.d.ts +0 -1
- package/dist/entries/data-table-column-settings.js +0 -1
- package/dist/entries/data-table-context.d.ts +0 -1
- package/dist/entries/data-table-context.js +0 -1
- package/dist/entries/data-table-controls.d.ts +0 -1
- package/dist/entries/data-table-controls.js +0 -1
- package/dist/entries/data-table-facet-filter.d.ts +0 -1
- package/dist/entries/data-table-facet-filter.js +0 -1
- package/dist/entries/data-table-grid.d.ts +0 -1
- package/dist/entries/data-table-grid.js +0 -1
- package/dist/entries/data-table-pagination.d.ts +0 -1
- package/dist/entries/data-table-pagination.js +0 -1
- package/dist/entries/data-table-search-input.d.ts +0 -1
- package/dist/entries/data-table-search-input.js +0 -1
- package/dist/entries/data-table-state.d.ts +0 -1
- package/dist/entries/data-table-state.js +0 -1
- package/dist/entries/data-table-tanstack.d.ts +0 -1
- package/dist/entries/data-table-tanstack.js +0 -1
- package/dist/entries/data-table.d.ts +0 -1
- package/dist/entries/data-table.js +0 -1
- package/dist/entries/dialog.d.ts +0 -1
- package/dist/entries/dialog.js +0 -1
- package/dist/entries/direction-context.d.ts +0 -1
- package/dist/entries/direction-context.js +0 -1
- package/dist/entries/direction.d.ts +0 -1
- package/dist/entries/direction.js +0 -1
- package/dist/entries/drawer.d.ts +0 -1
- package/dist/entries/drawer.js +0 -1
- package/dist/entries/dropdown-menu.d.ts +0 -1
- package/dist/entries/dropdown-menu.js +0 -1
- package/dist/entries/empty.d.ts +0 -1
- package/dist/entries/empty.js +0 -1
- package/dist/entries/expandable-data-table.d.ts +0 -1
- package/dist/entries/expandable-data-table.js +0 -1
- package/dist/entries/feedback-center-comments.d.ts +0 -1
- package/dist/entries/feedback-center-comments.js +0 -1
- package/dist/entries/feedback-center-footer.d.ts +0 -1
- package/dist/entries/feedback-center-footer.js +0 -1
- package/dist/entries/feedback-center-sheet-parts.d.ts +0 -1
- package/dist/entries/feedback-center-sheet-parts.js +0 -1
- package/dist/entries/feedback-center-sheet.d.ts +0 -1
- package/dist/entries/feedback-center-sheet.js +0 -1
- package/dist/entries/feedback-composer-parts.d.ts +0 -1
- package/dist/entries/feedback-composer-parts.js +0 -1
- package/dist/entries/feedback-composer-types.d.ts +0 -1
- package/dist/entries/feedback-composer-types.js +0 -1
- package/dist/entries/feedback-composer.d.ts +0 -1
- package/dist/entries/feedback-composer.js +0 -1
- package/dist/entries/feedback-date-format.d.ts +0 -1
- package/dist/entries/feedback-date-format.js +0 -1
- package/dist/entries/feedback-detail-sheet.d.ts +0 -1
- package/dist/entries/feedback-detail-sheet.js +0 -1
- package/dist/entries/feedback-emergency-fields.d.ts +0 -1
- package/dist/entries/feedback-emergency-fields.js +0 -1
- package/dist/entries/feedback-metrics.d.ts +0 -1
- package/dist/entries/feedback-metrics.js +0 -1
- package/dist/entries/feedback-sheet.d.ts +0 -1
- package/dist/entries/feedback-sheet.js +0 -1
- package/dist/entries/feedback-stakeholder-page-parts.d.ts +0 -1
- package/dist/entries/feedback-stakeholder-page-parts.js +0 -1
- package/dist/entries/feedback-stakeholder-page.d.ts +0 -1
- package/dist/entries/feedback-stakeholder-page.js +0 -1
- package/dist/entries/feedback-status-badge.d.ts +0 -1
- package/dist/entries/feedback-status-badge.js +0 -1
- package/dist/entries/feedback-table-row.d.ts +0 -1
- package/dist/entries/feedback-table-row.js +0 -1
- package/dist/entries/feedback-table-sort.d.ts +0 -1
- package/dist/entries/feedback-table-sort.js +0 -1
- package/dist/entries/feedback-table.d.ts +0 -1
- package/dist/entries/feedback-table.js +0 -1
- package/dist/entries/feedback-tracking-types.d.ts +0 -1
- package/dist/entries/feedback-tracking-types.js +0 -1
- package/dist/entries/feedback-triage-timeline.d.ts +0 -1
- package/dist/entries/feedback-triage-timeline.js +0 -1
- package/dist/entries/feedback-type-badge.d.ts +0 -1
- package/dist/entries/feedback-type-badge.js +0 -1
- package/dist/entries/feedback-unread-badge.d.ts +0 -1
- package/dist/entries/feedback-unread-badge.js +0 -1
- package/dist/entries/feedback-user-detail.d.ts +0 -1
- package/dist/entries/feedback-user-detail.js +0 -1
- package/dist/entries/feedback-user-list.d.ts +0 -1
- package/dist/entries/feedback-user-list.js +0 -1
- package/dist/entries/field.d.ts +0 -1
- package/dist/entries/field.js +0 -1
- package/dist/entries/file-upload-field-parts.d.ts +0 -1
- package/dist/entries/file-upload-field-parts.js +0 -1
- package/dist/entries/file-upload-field.d.ts +0 -1
- package/dist/entries/file-upload-field.js +0 -1
- package/dist/entries/form-context.d.ts +0 -1
- package/dist/entries/form-context.js +0 -1
- package/dist/entries/form-sheet.d.ts +0 -1
- package/dist/entries/form-sheet.js +0 -1
- package/dist/entries/form.d.ts +0 -1
- package/dist/entries/form.js +0 -1
- package/dist/entries/generated-connect-link.d.ts +0 -1
- package/dist/entries/generated-connect-link.js +0 -1
- package/dist/entries/hover-card.d.ts +0 -1
- package/dist/entries/hover-card.js +0 -1
- package/dist/entries/input-group.d.ts +0 -1
- package/dist/entries/input-group.js +0 -1
- package/dist/entries/input-otp.d.ts +0 -1
- package/dist/entries/input-otp.js +0 -1
- package/dist/entries/input.d.ts +0 -1
- package/dist/entries/input.js +0 -1
- package/dist/entries/invite-user-sheet.d.ts +0 -1
- package/dist/entries/invite-user-sheet.js +0 -1
- package/dist/entries/item.d.ts +0 -1
- package/dist/entries/item.js +0 -1
- package/dist/entries/kanban-board-parts.d.ts +0 -1
- package/dist/entries/kanban-board-parts.js +0 -1
- package/dist/entries/kanban-board-utils.d.ts +0 -1
- package/dist/entries/kanban-board-utils.js +0 -1
- package/dist/entries/kanban-board.d.ts +0 -1
- package/dist/entries/kanban-board.js +0 -1
- package/dist/entries/kanban-card.d.ts +0 -1
- package/dist/entries/kanban-card.js +0 -1
- package/dist/entries/kanban-column.d.ts +0 -1
- package/dist/entries/kanban-column.js +0 -1
- package/dist/entries/kanban-detail-sheet.d.ts +0 -1
- package/dist/entries/kanban-detail-sheet.js +0 -1
- package/dist/entries/kanban-page.d.ts +0 -1
- package/dist/entries/kanban-page.js +0 -1
- package/dist/entries/kanban-types.d.ts +0 -1
- package/dist/entries/kanban-types.js +0 -1
- package/dist/entries/kbd.d.ts +0 -1
- package/dist/entries/kbd.js +0 -1
- package/dist/entries/label.d.ts +0 -1
- package/dist/entries/label.js +0 -1
- package/dist/entries/loading-state.d.ts +0 -1
- package/dist/entries/loading-state.js +0 -1
- package/dist/entries/mcp-access-grouped-tool-picker.d.ts +0 -1
- package/dist/entries/mcp-access-grouped-tool-picker.js +0 -1
- package/dist/entries/mcp-access-tool-picker.d.ts +0 -1
- package/dist/entries/mcp-access-tool-picker.js +0 -1
- package/dist/entries/mcp-access-types.d.ts +0 -1
- package/dist/entries/mcp-access-types.js +0 -1
- package/dist/entries/mcp-client-setup.d.ts +0 -1
- package/dist/entries/mcp-client-setup.js +0 -1
- package/dist/entries/mcp-connect-clients.d.ts +0 -1
- package/dist/entries/mcp-connect-clients.js +0 -1
- package/dist/entries/mcp-plan-choice.d.ts +0 -1
- package/dist/entries/mcp-plan-choice.js +0 -1
- package/dist/entries/menubar.d.ts +0 -1
- package/dist/entries/menubar.js +0 -1
- package/dist/entries/metrics-strip.d.ts +0 -1
- package/dist/entries/metrics-strip.js +0 -1
- package/dist/entries/native-select.d.ts +0 -1
- package/dist/entries/native-select.js +0 -1
- package/dist/entries/navigation-menu-variants.d.ts +0 -1
- package/dist/entries/navigation-menu-variants.js +0 -1
- package/dist/entries/navigation-menu.d.ts +0 -1
- package/dist/entries/navigation-menu.js +0 -1
- package/dist/entries/page-header.d.ts +0 -1
- package/dist/entries/page-header.js +0 -1
- package/dist/entries/pagination.d.ts +0 -1
- package/dist/entries/pagination.js +0 -1
- package/dist/entries/palette.d.ts +0 -2
- package/dist/entries/palette.js +0 -2
- package/dist/entries/popover.d.ts +0 -1
- package/dist/entries/popover.js +0 -1
- package/dist/entries/progress.d.ts +0 -1
- package/dist/entries/progress.js +0 -1
- package/dist/entries/property-list.d.ts +0 -1
- package/dist/entries/property-list.js +0 -1
- package/dist/entries/radio-group.d.ts +0 -1
- package/dist/entries/radio-group.js +0 -1
- package/dist/entries/registry-docs-api.d.ts +0 -1
- package/dist/entries/registry-docs-api.js +0 -1
- package/dist/entries/registry-docs-code.d.ts +0 -1
- package/dist/entries/registry-docs-code.js +0 -1
- package/dist/entries/registry-docs-showcase.d.ts +0 -1
- package/dist/entries/registry-docs-showcase.js +0 -1
- package/dist/entries/registry-docs.d.ts +0 -1
- package/dist/entries/registry-docs.js +0 -1
- package/dist/entries/resizable.d.ts +0 -1
- package/dist/entries/resizable.js +0 -1
- package/dist/entries/scroll-area.d.ts +0 -1
- package/dist/entries/scroll-area.js +0 -1
- package/dist/entries/select.d.ts +0 -1
- package/dist/entries/select.js +0 -1
- package/dist/entries/separator.d.ts +0 -1
- package/dist/entries/separator.js +0 -1
- package/dist/entries/sheet.d.ts +0 -1
- package/dist/entries/sheet.js +0 -1
- package/dist/entries/sidebar/context.d.ts +0 -1
- package/dist/entries/sidebar/context.js +0 -1
- package/dist/entries/sidebar/group.d.ts +0 -1
- package/dist/entries/sidebar/group.js +0 -1
- package/dist/entries/sidebar/layout.d.ts +0 -1
- package/dist/entries/sidebar/layout.js +0 -1
- package/dist/entries/sidebar/menu.d.ts +0 -1
- package/dist/entries/sidebar/menu.js +0 -1
- package/dist/entries/sidebar/provider.d.ts +0 -1
- package/dist/entries/sidebar/provider.js +0 -1
- package/dist/entries/sidebar/rail.d.ts +0 -1
- package/dist/entries/sidebar/rail.js +0 -1
- package/dist/entries/sidebar/trigger.d.ts +0 -1
- package/dist/entries/sidebar/trigger.js +0 -1
- package/dist/entries/sidebar-account-menu-theme.d.ts +0 -1
- package/dist/entries/sidebar-account-menu-theme.js +0 -1
- package/dist/entries/sidebar-account-menu.d.ts +0 -1
- package/dist/entries/sidebar-account-menu.js +0 -1
- package/dist/entries/sidebar.d.ts +0 -1
- package/dist/entries/sidebar.js +0 -1
- package/dist/entries/skeleton.d.ts +0 -1
- package/dist/entries/skeleton.js +0 -1
- package/dist/entries/slider.d.ts +0 -1
- package/dist/entries/slider.js +0 -1
- package/dist/entries/sonner.d.ts +0 -1
- package/dist/entries/sonner.js +0 -1
- package/dist/entries/spinner.d.ts +0 -1
- package/dist/entries/spinner.js +0 -1
- package/dist/entries/submit-feedback-composer.d.ts +0 -1
- package/dist/entries/submit-feedback-composer.js +0 -1
- package/dist/entries/switch.d.ts +0 -1
- package/dist/entries/switch.js +0 -1
- package/dist/entries/table.d.ts +0 -1
- package/dist/entries/table.js +0 -1
- package/dist/entries/tabs-variants.d.ts +0 -1
- package/dist/entries/tabs-variants.js +0 -1
- package/dist/entries/tabs.d.ts +0 -1
- package/dist/entries/tabs.js +0 -1
- package/dist/entries/textarea.d.ts +0 -1
- package/dist/entries/textarea.js +0 -1
- package/dist/entries/timestamp-format.d.ts +0 -1
- package/dist/entries/timestamp-format.js +0 -1
- package/dist/entries/toggle-group.d.ts +0 -1
- package/dist/entries/toggle-group.js +0 -1
- package/dist/entries/toggle-variants.d.ts +0 -1
- package/dist/entries/toggle-variants.js +0 -1
- package/dist/entries/toggle.d.ts +0 -1
- package/dist/entries/toggle.js +0 -1
- package/dist/entries/tooltip.d.ts +0 -1
- package/dist/entries/tooltip.js +0 -1
- package/dist/entries/use-color-theme.d.ts +0 -1
- package/dist/entries/use-color-theme.js +0 -1
- package/dist/entries/use-feedback-composer-state.d.ts +0 -1
- package/dist/entries/use-feedback-composer-state.js +0 -1
- package/dist/entries/use-mobile.d.ts +0 -1
- package/dist/entries/use-mobile.js +0 -1
- package/dist/entries/utils.d.ts +0 -1
- package/dist/entries/utils.js +0 -1
- package/dist/entries/walkthrough.d.ts +0 -1
- package/dist/entries/walkthrough.js +0 -1
- package/dist/entries/workflow-timeline.d.ts +0 -1
- package/dist/entries/workflow-timeline.js +0 -1
- package/dist/hooks/use-mobile.d.ts +0 -1
- package/dist/hooks/use-mobile.js +0 -17
- package/dist/lib/browser-storage.d.ts +0 -12
- package/dist/lib/browser-storage.js +0 -42
- package/dist/lib/palette-presets.d.ts +0 -17
- package/dist/lib/palette-presets.js +0 -42
- package/dist/lib/palette-tokens.d.ts +0 -39
- package/dist/lib/palette-tokens.js +0 -133
- package/dist/lib/palette.d.ts +0 -83
- package/dist/lib/palette.js +0 -151
- package/dist/lib/utils.d.ts +0 -5
- package/dist/lib/utils.js +0 -8
- package/dist/style-imports.d.ts +0 -3
- /package/dist/{components/blocks/feedback-composer-types.js → feedback/comment-types.js} +0 -0
- /package/dist/{components/blocks/kanban-types.js → feedback/feedback-composer-types.js} +0 -0
- /package/dist/{components/walkthrough/runtime/walkthroughTypes.js → feedback/feedback-tracking-types.js} +0 -0
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { Avatar } from "./data-display.js";
|
|
3
|
+
// No neutral, so every project gets a color; no red, which beside a status reads as a failure.
|
|
4
|
+
const projectAvatarColors = [
|
|
5
|
+
"blue",
|
|
6
|
+
"violet",
|
|
7
|
+
"green",
|
|
8
|
+
"teal",
|
|
9
|
+
"yellow",
|
|
10
|
+
"orange",
|
|
11
|
+
"pink",
|
|
12
|
+
];
|
|
13
|
+
/**
|
|
14
|
+
* A project's avatar, its color picked from the project id so every app shows the same one.
|
|
15
|
+
* Decorative: the project's name always sits beside it.
|
|
16
|
+
*/
|
|
17
|
+
export function ProjectAvatar({ projectId, name, size, className, }) {
|
|
18
|
+
let hash = 0;
|
|
19
|
+
for (const char of projectId)
|
|
20
|
+
hash = (hash * 31 + (char.codePointAt(0) ?? 0)) >>> 0;
|
|
21
|
+
return (_jsx(Avatar, { kind: "project", label: name, size: size, color: projectAvatarColors[hash % projectAvatarColors.length], className: className, "aria-hidden": "true" }));
|
|
22
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { Radio as BaseRadio } from "@base-ui/react/radio";
|
|
2
|
+
import { RadioGroup as BaseRadioGroup } from "@base-ui/react/radio-group";
|
|
3
|
+
import type { ComponentProps, ReactNode } from "react";
|
|
4
|
+
export type RadioCardGroupProps = Omit<ComponentProps<typeof BaseRadioGroup>, "defaultValue" | "name" | "onValueChange" | "value"> & {
|
|
5
|
+
name: string;
|
|
6
|
+
label: string;
|
|
7
|
+
className?: string;
|
|
8
|
+
defaultValue?: string;
|
|
9
|
+
value?: string;
|
|
10
|
+
onValueChange?: (value: string) => void;
|
|
11
|
+
};
|
|
12
|
+
export declare function RadioCardGroup({ name, label, defaultValue, value, onValueChange, className, ...props }: RadioCardGroupProps): import("@types/react").JSX.Element;
|
|
13
|
+
export type RadioCardProps = Omit<ComponentProps<typeof BaseRadio.Root>, "children" | "className"> & {
|
|
14
|
+
value: string;
|
|
15
|
+
title: ReactNode;
|
|
16
|
+
detail?: ReactNode;
|
|
17
|
+
/** Where the option comes from, shown muted at the card's end, such as a provider mark and name. */
|
|
18
|
+
source?: ReactNode;
|
|
19
|
+
className?: string;
|
|
20
|
+
};
|
|
21
|
+
/** One option of a `RadioCardGroup`. */
|
|
22
|
+
export declare function RadioCard({ title, detail, source: sourceContent, className, ...props }: RadioCardProps): import("@types/react").JSX.Element;
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Radio as BaseRadio } from "@base-ui/react/radio";
|
|
3
|
+
import { RadioGroup as BaseRadioGroup } from "@base-ui/react/radio-group";
|
|
4
|
+
import { css, cx } from "#primitives/css";
|
|
5
|
+
import { checkMark, radioDot } from "./form-controls.js";
|
|
6
|
+
/*
|
|
7
|
+
* A choice drawn as a card: the radio, a title with its detail, and where the option comes from
|
|
8
|
+
* at the far edge. The whole card is the radio, so it takes the hover wash, the focus ring, and,
|
|
9
|
+
* once chosen, the accent wash under the accent's edge.
|
|
10
|
+
*/
|
|
11
|
+
const cards = css({ display: "grid", gap: "layout.controlGap" });
|
|
12
|
+
const card = css({
|
|
13
|
+
display: "flex",
|
|
14
|
+
alignItems: "flex-start",
|
|
15
|
+
gap: "layout.contentGap",
|
|
16
|
+
width: "100%",
|
|
17
|
+
padding: "panel.default",
|
|
18
|
+
border: "1px solid token(colors.border.control)",
|
|
19
|
+
borderRadius: "action",
|
|
20
|
+
background: "transparent",
|
|
21
|
+
color: "fg.primary",
|
|
22
|
+
fontFamily: "sans",
|
|
23
|
+
fontSize: "body",
|
|
24
|
+
fontWeight: "medium",
|
|
25
|
+
letterSpacing: "compact",
|
|
26
|
+
lineHeight: "tight",
|
|
27
|
+
textAlign: "start",
|
|
28
|
+
cursor: "pointer",
|
|
29
|
+
transitionProperty: "background, border-color",
|
|
30
|
+
transitionDuration: "fast",
|
|
31
|
+
_hover: { background: "bg.glassHover" },
|
|
32
|
+
"&[data-checked]": {
|
|
33
|
+
background: "bg.selected",
|
|
34
|
+
borderColor: "border.selected",
|
|
35
|
+
},
|
|
36
|
+
_focusVisible: { focusRing: "outer" },
|
|
37
|
+
"&[data-disabled]": { opacity: "disabled", cursor: "not-allowed" },
|
|
38
|
+
});
|
|
39
|
+
// The card's own hover darkens the mark's edge too, as a label's hover does for a loose checkbox.
|
|
40
|
+
const mark = css({
|
|
41
|
+
// Centered on the title's first line, which is one `em` tall, so a detail line below it can't pull
|
|
42
|
+
// the mark down.
|
|
43
|
+
marginTop: "calc((1em - token(sizes.control.radio)) / 2)",
|
|
44
|
+
"[data-checked] > &": {
|
|
45
|
+
background: "bg.primary",
|
|
46
|
+
borderColor: "transparent",
|
|
47
|
+
},
|
|
48
|
+
"[data-checked]:hover > &": { background: "bg.primaryHover" },
|
|
49
|
+
});
|
|
50
|
+
const copy = css({ flex: "1", minWidth: "0", display: "grid", gap: "layout.tightGap" });
|
|
51
|
+
const detailText = css({ color: "fg.muted", fontSize: "code" });
|
|
52
|
+
const source = css({
|
|
53
|
+
display: "inline-flex",
|
|
54
|
+
alignItems: "center",
|
|
55
|
+
flexShrink: "0",
|
|
56
|
+
gap: "control.iconGap",
|
|
57
|
+
color: "fg.muted",
|
|
58
|
+
fontSize: "code",
|
|
59
|
+
});
|
|
60
|
+
export function RadioCardGroup({ name, label, defaultValue, value, onValueChange, className, ...props }) {
|
|
61
|
+
return (_jsx(BaseRadioGroup, { ...props, className: cx(cards, className), "aria-label": props["aria-label"] ?? label, "data-ciridae-ui": "", defaultValue: defaultValue, name: name, onValueChange: (nextValue) => onValueChange?.(String(nextValue)), value: value }));
|
|
62
|
+
}
|
|
63
|
+
/** One option of a `RadioCardGroup`. */
|
|
64
|
+
export function RadioCard({ title, detail, source: sourceContent, className, ...props }) {
|
|
65
|
+
return (_jsxs(BaseRadio.Root, { ...props, className: cx(card, className), "data-ciridae-ui": "", children: [_jsx("span", { className: cx(checkMark({ shape: "round", focus: "row" }), mark), children: _jsx(BaseRadio.Indicator, { className: radioDot }) }), _jsxs("span", { className: copy, children: [_jsx("span", { children: title }), detail !== undefined && _jsx("span", { className: detailText, children: detail })] }), sourceContent !== undefined && _jsx("span", { className: source, children: sourceContent })] }));
|
|
66
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
type RecentItemsStorage<Item> = {
|
|
2
|
+
storageKey?: undefined;
|
|
3
|
+
parseItem?: undefined;
|
|
4
|
+
} | {
|
|
5
|
+
/** Keeps both lists in `localStorage` as `{ recent, pinned }`. */
|
|
6
|
+
storageKey: string;
|
|
7
|
+
/** Reads one stored entry back, or null to drop it, such as a record that is gone. */
|
|
8
|
+
parseItem: (stored: unknown) => Item | null;
|
|
9
|
+
};
|
|
10
|
+
export type UseRecentItemsOptions<Item> = RecentItemsStorage<Item> & {
|
|
11
|
+
/** What makes two items the same, such as a record's route. */
|
|
12
|
+
getId: (item: Item) => string;
|
|
13
|
+
/** The open item; it joins Recent unless it is pinned or already listed. */
|
|
14
|
+
current?: Item | null;
|
|
15
|
+
/** Recent's length; 10 by default. */
|
|
16
|
+
limit?: number;
|
|
17
|
+
/** Recent while nothing is stored. */
|
|
18
|
+
seed?: readonly Item[];
|
|
19
|
+
};
|
|
20
|
+
export declare function useRecentItems<Item>({ getId, current, limit, seed, storageKey, parseItem, }: UseRecentItemsOptions<Item>): {
|
|
21
|
+
recent: readonly Item[];
|
|
22
|
+
pinned: readonly Item[];
|
|
23
|
+
isPinned: (item: Item) => boolean;
|
|
24
|
+
pin: (item: Item) => void;
|
|
25
|
+
unpin: (item: Item) => void;
|
|
26
|
+
togglePin: (item: Item) => void;
|
|
27
|
+
};
|
|
28
|
+
export {};
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* The items a person opened lately and the ones they pinned, for a sidebar's Pinned and Recent
|
|
3
|
+
* sections. An item joins Recent at the top the first time it opens; one already listed keeps its
|
|
4
|
+
* place, so reopening never reshuffles the list under the pointer. Pinning moves an item out of
|
|
5
|
+
* Recent to the end of Pinned; unpinning puts it back in Recent. Recent holds `limit` items.
|
|
6
|
+
*/
|
|
7
|
+
import { useCallback, useEffect, useState } from "react";
|
|
8
|
+
const DEFAULT_LIMIT = 10;
|
|
9
|
+
function readStored(storageKey, parseItem) {
|
|
10
|
+
try {
|
|
11
|
+
const text = globalThis.localStorage?.getItem(storageKey);
|
|
12
|
+
if (!text)
|
|
13
|
+
return null;
|
|
14
|
+
const stored = JSON.parse(text);
|
|
15
|
+
if (typeof stored !== "object" || stored === null)
|
|
16
|
+
return null;
|
|
17
|
+
const list = (value) => Array.isArray(value) ? value.flatMap((entry) => parseItem(entry) ?? []) : [];
|
|
18
|
+
return {
|
|
19
|
+
recent: "recent" in stored ? list(stored.recent) : [],
|
|
20
|
+
pinned: "pinned" in stored ? list(stored.pinned) : [],
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
catch {
|
|
24
|
+
// Unreadable storage starts from the seed.
|
|
25
|
+
return null;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
export function useRecentItems({ getId, current, limit = DEFAULT_LIMIT, seed = [], storageKey, parseItem, }) {
|
|
29
|
+
const [state, setState] = useState(() => {
|
|
30
|
+
const stored = storageKey && parseItem ? readStored(storageKey, parseItem) : null;
|
|
31
|
+
return stored ?? { recent: seed.slice(0, limit), pinned: [] };
|
|
32
|
+
});
|
|
33
|
+
const listed = useCallback((items, item) => items.some((other) => getId(other) === getId(item)), [getId]);
|
|
34
|
+
const without = useCallback((items, item) => items.filter((other) => getId(other) !== getId(item)), [getId]);
|
|
35
|
+
const withRecent = useCallback((items, item) => listed(items, item) ? items : [item, ...items].slice(0, limit), [listed, limit]);
|
|
36
|
+
useEffect(() => {
|
|
37
|
+
if (!current)
|
|
38
|
+
return;
|
|
39
|
+
setState((previous) => listed(previous.pinned, current) || listed(previous.recent, current)
|
|
40
|
+
? previous
|
|
41
|
+
: { ...previous, recent: withRecent(previous.recent, current) });
|
|
42
|
+
}, [current, listed, withRecent]);
|
|
43
|
+
useEffect(() => {
|
|
44
|
+
if (!storageKey)
|
|
45
|
+
return;
|
|
46
|
+
try {
|
|
47
|
+
globalThis.localStorage?.setItem(storageKey, JSON.stringify(state));
|
|
48
|
+
}
|
|
49
|
+
catch {
|
|
50
|
+
// Storage is a convenience; the lists still work for this visit.
|
|
51
|
+
}
|
|
52
|
+
}, [state, storageKey]);
|
|
53
|
+
const pin = useCallback((item) => setState(({ recent, pinned }) => listed(pinned, item)
|
|
54
|
+
? { recent, pinned }
|
|
55
|
+
: { pinned: [...pinned, item], recent: without(recent, item) }), [listed, without]);
|
|
56
|
+
const unpin = useCallback((item) => setState(({ recent, pinned }) => ({
|
|
57
|
+
pinned: without(pinned, item),
|
|
58
|
+
recent: withRecent(recent, item),
|
|
59
|
+
})), [without, withRecent]);
|
|
60
|
+
const isPinned = (item) => listed(state.pinned, item);
|
|
61
|
+
const togglePin = (item) => (isPinned(item) ? unpin(item) : pin(item));
|
|
62
|
+
return { recent: state.recent, pinned: state.pinned, isPinned, pin, unpin, togglePin };
|
|
63
|
+
}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { useRender } from "@base-ui/react/use-render";
|
|
2
|
+
import { type ComponentProps, type ReactNode } from "react";
|
|
3
|
+
import { type StepStatus } from "./stages.js";
|
|
4
|
+
import { TabsRoot } from "./tabs.js";
|
|
5
|
+
import type { Tone } from "./badge.js";
|
|
6
|
+
export type DetailLayoutProps = Omit<ComponentProps<"div">, "children"> & {
|
|
7
|
+
/** The record's title row: it opens the work's column, or sits over the tab row once tabbed. */
|
|
8
|
+
header?: ReactNode;
|
|
9
|
+
main: ReactNode;
|
|
10
|
+
aside?: ReactNode;
|
|
11
|
+
/** The layout's width under which the aside stacks below the main column. Defaults to 900. */
|
|
12
|
+
stackBelow?: number;
|
|
13
|
+
/** Beside the main column, the aside sticks and holds the window's height. */
|
|
14
|
+
stickyAside?: boolean;
|
|
15
|
+
/** Stacked, `below` puts the aside under the work; `tabs` shows one at a time under a tab row. */
|
|
16
|
+
stacking?: "below" | "tabs";
|
|
17
|
+
/** The tab row's names for the work and the aside. Default to the locale's. */
|
|
18
|
+
tabLabels?: {
|
|
19
|
+
main: ReactNode;
|
|
20
|
+
aside: ReactNode;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
export declare function DetailLayout({ header, main, aside, stackBelow, stickyAside, stacking, tabLabels, className, ...props }: DetailLayoutProps): import("@types/react").JSX.Element;
|
|
24
|
+
/** The record's title row is the page's: `PageHeading`, with `leading`, `badge` and menu `actions`. */
|
|
25
|
+
export { PageHeading, type PageHeadingProps } from "./page-frame.js";
|
|
26
|
+
export type RelatedTab = {
|
|
27
|
+
value: string;
|
|
28
|
+
label: ReactNode;
|
|
29
|
+
/** Muted after the label, such as how many rows the tab holds. */
|
|
30
|
+
count?: number;
|
|
31
|
+
/** At the end of the tab row while the tab is open, such as which part it shows. */
|
|
32
|
+
meta?: ReactNode;
|
|
33
|
+
content: ReactNode;
|
|
34
|
+
};
|
|
35
|
+
export type RelatedTabsProps = Omit<ComponentProps<typeof TabsRoot>, "children" | "value" | "defaultValue" | "onValueChange"> & {
|
|
36
|
+
tabs: readonly RelatedTab[];
|
|
37
|
+
value?: string;
|
|
38
|
+
/** The first tab by default. */
|
|
39
|
+
defaultValue?: string;
|
|
40
|
+
onValueChange?: (value: string) => void;
|
|
41
|
+
};
|
|
42
|
+
export declare function RelatedTabs({ tabs, value, defaultValue, onValueChange, className, ...props }: RelatedTabsProps): import("@types/react").JSX.Element | null;
|
|
43
|
+
export type ItemCardField = {
|
|
44
|
+
label: ReactNode;
|
|
45
|
+
value: ReactNode;
|
|
46
|
+
/** The column's share of the row, as a grid `fr`. Defaults to 1. */
|
|
47
|
+
weight?: number;
|
|
48
|
+
};
|
|
49
|
+
export type ItemCardProps = Omit<useRender.ComponentProps<"button">, "children" | "onSelect"> & {
|
|
50
|
+
title: ReactNode;
|
|
51
|
+
/** One segment per stage, in its status's color. */
|
|
52
|
+
progress?: readonly StepStatus[];
|
|
53
|
+
fields: readonly ItemCardField[];
|
|
54
|
+
/** The footer's start: the stage the item is at. */
|
|
55
|
+
status: {
|
|
56
|
+
label: ReactNode;
|
|
57
|
+
status: StepStatus;
|
|
58
|
+
};
|
|
59
|
+
/** The footer's end, such as what comes next. */
|
|
60
|
+
footer?: ReactNode;
|
|
61
|
+
selected?: boolean;
|
|
62
|
+
/** Makes the card a button; `href` or a router link as `render` makes it a link. */
|
|
63
|
+
onSelect?: () => void;
|
|
64
|
+
href?: string;
|
|
65
|
+
};
|
|
66
|
+
export declare function ItemCard({ title, progress, fields, status, footer, selected, onSelect, href, render, className, style, ...props }: ItemCardProps): import("@types/react").ReactElement<unknown, string | import("@types/react").JSXElementConstructor<any>>;
|
|
67
|
+
export type RelatedListItem = {
|
|
68
|
+
id: string;
|
|
69
|
+
title: ReactNode;
|
|
70
|
+
/** In the item's tile, such as the record type's icon. */
|
|
71
|
+
icon?: ReactNode;
|
|
72
|
+
/** The line under the title, joined by separators, such as its type and number. */
|
|
73
|
+
details?: readonly ReactNode[];
|
|
74
|
+
/** Last on that line, in its tone's color. */
|
|
75
|
+
status?: {
|
|
76
|
+
label: ReactNode;
|
|
77
|
+
tone?: Tone;
|
|
78
|
+
};
|
|
79
|
+
/** Makes the row a link; a router link as `render` routes it. */
|
|
80
|
+
href?: string;
|
|
81
|
+
render?: useRender.ComponentProps<"a">["render"];
|
|
82
|
+
/** Makes the row a button. */
|
|
83
|
+
onOpen?: () => void;
|
|
84
|
+
};
|
|
85
|
+
export type RelatedListGroup = {
|
|
86
|
+
id: string;
|
|
87
|
+
label: ReactNode;
|
|
88
|
+
items: readonly RelatedListItem[];
|
|
89
|
+
};
|
|
90
|
+
export type RelatedListProps = Omit<ComponentProps<"div">, "children"> & {
|
|
91
|
+
groups: readonly RelatedListGroup[];
|
|
92
|
+
/** After the groups, such as a button that links another record. */
|
|
93
|
+
footer?: ReactNode;
|
|
94
|
+
};
|
|
95
|
+
export declare function RelatedList({ groups, footer, className, ...props }: RelatedListProps): import("@types/react").JSX.Element;
|
|
@@ -0,0 +1,282 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
+
/*
|
|
3
|
+
* The pieces a record's page is laid out with. `DetailLayout` splits it into the work and a side
|
|
4
|
+
* column; `PageHeading` (also exported here) is the record's title row; `RelatedTabs` is the tabbed card of what the
|
|
5
|
+
* record holds; `ItemCard` is one of a record's parts, such as a shipment or a draw; `RelatedList`
|
|
6
|
+
* lists the records and documents it points at.
|
|
7
|
+
*/
|
|
8
|
+
import { useRender } from "@base-ui/react/use-render";
|
|
9
|
+
import { CaretRightIcon } from "@phosphor-icons/react";
|
|
10
|
+
import { useLayoutEffect, useRef, useState, } from "react";
|
|
11
|
+
import { css, cx } from "#primitives/css";
|
|
12
|
+
import { useControllableState } from "./controllable-state.js";
|
|
13
|
+
import { directional, icon } from "./icon.js";
|
|
14
|
+
import { MutedText } from "./layout.js";
|
|
15
|
+
import { useCiridaeLocale } from "./locale.js";
|
|
16
|
+
import { cardSurface } from "./panel.js";
|
|
17
|
+
import { StepDot } from "./stages.js";
|
|
18
|
+
import { TabsList, TabsPanel, TabsRoot, TabsTab } from "./tabs.js";
|
|
19
|
+
/*
|
|
20
|
+
* Detail layout: the work in two thirds, the side column in the last, while the layout's own box
|
|
21
|
+
* is at least `stackBelow` wide; under it the side column follows the work. By the box, not the
|
|
22
|
+
* window, so a docked sheet narrows it as a small screen does.
|
|
23
|
+
*/
|
|
24
|
+
const detailLayout = css({
|
|
25
|
+
display: "grid",
|
|
26
|
+
gridTemplateColumns: "minmax(0, 2fr) minmax(0, 1fr)",
|
|
27
|
+
gap: "layout.contentGap",
|
|
28
|
+
// The side column runs the full height of the work beside it.
|
|
29
|
+
alignItems: "stretch",
|
|
30
|
+
"&[data-stacked]": { gridTemplateColumns: "minmax(0, 1fr)" },
|
|
31
|
+
"& > [hidden]": { display: "none" },
|
|
32
|
+
});
|
|
33
|
+
// The tab row starts where the title over it does: inside the heading's own inset.
|
|
34
|
+
const detailTabs = css({
|
|
35
|
+
"&[data-variant=underline]:is([data-ciridae-ui] > *)": { paddingInline: "layout.tightGap" },
|
|
36
|
+
});
|
|
37
|
+
const detailMain = css({ display: "grid", alignContent: "start", gap: "layout.contentGap" });
|
|
38
|
+
const detailAside = css({
|
|
39
|
+
display: "flex",
|
|
40
|
+
flexDirection: "column",
|
|
41
|
+
minWidth: "0",
|
|
42
|
+
"& > *": { flex: "1", minHeight: "0" },
|
|
43
|
+
// Beside the work, a sticky aside holds the window's height, so whatever it ends with sits at the
|
|
44
|
+
// foot of the screen: the shell's content box less its insets.
|
|
45
|
+
_notWide: {
|
|
46
|
+
"[data-sticky-aside]:not([data-stacked]) > &": {
|
|
47
|
+
position: "sticky",
|
|
48
|
+
top: "0",
|
|
49
|
+
alignSelf: "start",
|
|
50
|
+
height: "calc(100dvh - token(spacing.panel.compact) * 2 - token(sizes.shell.header) - var(--app-content-inset) * 2 - 3px)",
|
|
51
|
+
},
|
|
52
|
+
},
|
|
53
|
+
});
|
|
54
|
+
/** True while `element` is narrower than `width`, measured before paint. */
|
|
55
|
+
function useNarrowerThan(width) {
|
|
56
|
+
const ref = useRef(null);
|
|
57
|
+
const [narrow, setNarrow] = useState(false);
|
|
58
|
+
useLayoutEffect(() => {
|
|
59
|
+
const element = ref.current;
|
|
60
|
+
if (!element)
|
|
61
|
+
return;
|
|
62
|
+
const measure = () => setNarrow(element.getBoundingClientRect().width < width);
|
|
63
|
+
measure();
|
|
64
|
+
const observer = new ResizeObserver(measure);
|
|
65
|
+
observer.observe(element);
|
|
66
|
+
return () => observer.disconnect();
|
|
67
|
+
}, [width]);
|
|
68
|
+
return [ref, narrow];
|
|
69
|
+
}
|
|
70
|
+
export function DetailLayout({ header, main, aside, stackBelow = 900, stickyAside = false, stacking = "below", tabLabels, className, ...props }) {
|
|
71
|
+
const [ref, stacked] = useNarrowerThan(stackBelow);
|
|
72
|
+
const { labels } = useCiridaeLocale();
|
|
73
|
+
const [tab, setTab] = useState("main");
|
|
74
|
+
const tabbed = stacked && stacking === "tabs" && aside !== undefined;
|
|
75
|
+
// Both columns stay mounted across the switch, so a draft or an open tab inside survives it.
|
|
76
|
+
return (_jsxs(TabsRoot, { ref: ref, ...props, value: tab, onValueChange: (value) => setTab(value), className: cx(detailLayout, className), "data-ciridae-ui": "", "data-stacked": stacked || aside === undefined || undefined, "data-sticky-aside": stickyAside || undefined, children: [tabbed && header, tabbed && (_jsxs(TabsList, { variant: "underline", className: detailTabs, children: [_jsx(TabsTab, { value: "main", children: tabLabels?.main ?? labels.record.mainTab }), _jsx(TabsTab, { value: "aside", children: tabLabels?.aside ?? labels.record.asideTab })] })), _jsxs("div", { className: detailMain, hidden: tabbed && tab !== "main", children: [!tabbed && header, main] }), aside !== undefined && (_jsx("div", { className: detailAside, hidden: tabbed && tab !== "aside", children: aside }))] }));
|
|
77
|
+
}
|
|
78
|
+
/** The record's title row is the page's: `PageHeading`, with `leading`, `badge` and menu `actions`. */
|
|
79
|
+
export { PageHeading } from "./page-frame.js";
|
|
80
|
+
/* Related tabs: one card, its tabs on the header row with the open tab's meta at the end. */
|
|
81
|
+
const relatedCard = css({
|
|
82
|
+
containerType: "inline-size",
|
|
83
|
+
display: "grid",
|
|
84
|
+
gridTemplateColumns: "minmax(0, 1fr)",
|
|
85
|
+
alignContent: "start",
|
|
86
|
+
gap: "layout.tightGap",
|
|
87
|
+
paddingInline: "layout.tightGap",
|
|
88
|
+
paddingBottom: "layout.tightGap",
|
|
89
|
+
border: "1px solid token(colors.border.panel)",
|
|
90
|
+
borderRadius: "inset",
|
|
91
|
+
background: "bg.panel",
|
|
92
|
+
minWidth: "0",
|
|
93
|
+
});
|
|
94
|
+
const relatedHeader = css({
|
|
95
|
+
display: "flex",
|
|
96
|
+
alignItems: "center",
|
|
97
|
+
justifyContent: "space-between",
|
|
98
|
+
flexWrap: "wrap",
|
|
99
|
+
gap: "layout.controlGap",
|
|
100
|
+
minHeight: "control.field",
|
|
101
|
+
paddingInlineEnd: "panel.default",
|
|
102
|
+
"& > :first-child": { minWidth: "0", maxWidth: "100%" },
|
|
103
|
+
});
|
|
104
|
+
// Wrapped under the tabs, the meta keeps the rows' inset.
|
|
105
|
+
const relatedMeta = css({ paddingInlineStart: "control.block", fontSize: "code" });
|
|
106
|
+
export function RelatedTabs({ tabs, value, defaultValue, onValueChange, className, ...props }) {
|
|
107
|
+
const [chosen, setChosen] = useControllableState(value, defaultValue ?? tabs[0]?.value ?? "", onValueChange);
|
|
108
|
+
const open = tabs.find((tab) => tab.value === chosen) ?? tabs[0];
|
|
109
|
+
if (!open)
|
|
110
|
+
return null;
|
|
111
|
+
return (_jsxs(TabsRoot, { value: open.value, onValueChange: (next) => setChosen(String(next)), ...props, className: cx(relatedCard, className), "data-ciridae-ui": "", children: [_jsxs("div", { className: relatedHeader, children: [_jsx(TabsList, { variant: "contained", children: tabs.map((tab) => (_jsx(TabsTab, { value: tab.value, count: tab.count, children: tab.label }, tab.value))) }), open.meta !== undefined && _jsx(MutedText, { className: relatedMeta, children: open.meta })] }), tabs.map((tab) => (_jsx(TabsPanel, { value: tab.value, children: tab.content }, tab.value)))] }));
|
|
112
|
+
}
|
|
113
|
+
/* Item card: one of a record's parts, with its progress as a thin segmented bar. */
|
|
114
|
+
const itemCard = css(cardSurface, {
|
|
115
|
+
display: "grid",
|
|
116
|
+
gap: "layout.clusterGap",
|
|
117
|
+
padding: "panel.comfortable",
|
|
118
|
+
textAlign: "start",
|
|
119
|
+
color: "fg.primary",
|
|
120
|
+
font: "inherit",
|
|
121
|
+
letterSpacing: "compact",
|
|
122
|
+
textDecoration: "none",
|
|
123
|
+
"&:is(button, a)": { cursor: "pointer", _hover: { borderColor: "border.glass" } },
|
|
124
|
+
"&[data-selected]": { borderColor: "accent.green", _hover: { borderColor: "accent.green" } },
|
|
125
|
+
_focusVisible: { focusRing: "outer" },
|
|
126
|
+
});
|
|
127
|
+
const itemHeader = css({
|
|
128
|
+
display: "flex",
|
|
129
|
+
alignItems: "center",
|
|
130
|
+
justifyContent: "space-between",
|
|
131
|
+
gap: "layout.controlGap",
|
|
132
|
+
fontSize: "body",
|
|
133
|
+
fontWeight: "medium",
|
|
134
|
+
whiteSpace: "nowrap",
|
|
135
|
+
});
|
|
136
|
+
const progressBar = css({ display: "inline-flex", alignItems: "center", gap: "2px" });
|
|
137
|
+
const progressSegment = css({
|
|
138
|
+
width: "14px",
|
|
139
|
+
height: "4px",
|
|
140
|
+
borderRadius: "1px",
|
|
141
|
+
background: "bg.fill",
|
|
142
|
+
"&[data-status=done]": { background: "accent.green" },
|
|
143
|
+
"&[data-status=current]": { background: "accent.yellow" },
|
|
144
|
+
"&[data-status=agent]": { background: "accent.blue" },
|
|
145
|
+
"&[data-status=blocked]": { background: "accent.red" },
|
|
146
|
+
"&[data-status=waiting]": { background: "fg.muted" },
|
|
147
|
+
});
|
|
148
|
+
const itemFields = css({
|
|
149
|
+
display: "grid",
|
|
150
|
+
gap: "layout.controlGap",
|
|
151
|
+
paddingBottom: "panel.default",
|
|
152
|
+
fontSize: "code",
|
|
153
|
+
fontWeight: "medium",
|
|
154
|
+
});
|
|
155
|
+
const itemFieldLabel = css({
|
|
156
|
+
display: "block",
|
|
157
|
+
marginBottom: "layout.controlGap",
|
|
158
|
+
color: "fg.muted",
|
|
159
|
+
fontWeight: "regular",
|
|
160
|
+
letterSpacing: "normal",
|
|
161
|
+
});
|
|
162
|
+
const itemFooter = css({
|
|
163
|
+
display: "flex",
|
|
164
|
+
alignItems: "center",
|
|
165
|
+
justifyContent: "space-between",
|
|
166
|
+
gap: "layout.controlGap",
|
|
167
|
+
paddingTop: "panel.default",
|
|
168
|
+
borderTop: "1px solid token(colors.border.panel)",
|
|
169
|
+
color: "fg.muted",
|
|
170
|
+
fontSize: "code",
|
|
171
|
+
fontWeight: "medium",
|
|
172
|
+
});
|
|
173
|
+
const itemStatus = css({ display: "inline-flex", alignItems: "center", gap: "layout.tightGap" });
|
|
174
|
+
export function ItemCard({ title, progress, fields, status, footer, selected = false, onSelect, href, render, className, style, ...props }) {
|
|
175
|
+
const interactive = onSelect !== undefined || href !== undefined || render !== undefined;
|
|
176
|
+
const columns = {
|
|
177
|
+
gridTemplateColumns: fields.map((field) => `minmax(0, ${field.weight ?? 1}fr)`).join(" "),
|
|
178
|
+
};
|
|
179
|
+
return useRender({
|
|
180
|
+
defaultTagName: href !== undefined ? "a" : interactive ? "button" : "div",
|
|
181
|
+
render,
|
|
182
|
+
props: {
|
|
183
|
+
...(href !== undefined ? { href } : interactive ? { type: "button" } : {}),
|
|
184
|
+
...props,
|
|
185
|
+
style,
|
|
186
|
+
onClick: onSelect,
|
|
187
|
+
className: cx(itemCard, className),
|
|
188
|
+
"data-ciridae-ui": "",
|
|
189
|
+
"data-selected": selected || undefined,
|
|
190
|
+
"aria-pressed": onSelect !== undefined && href === undefined ? selected : undefined,
|
|
191
|
+
children: (_jsxs(_Fragment, { children: [_jsxs("span", { className: itemHeader, children: [title, progress && (_jsx("span", { className: progressBar, "aria-hidden": "true", children: progress.map((segment, index) => (_jsx("span", { className: progressSegment, "data-status": segment }, index))) }))] }), _jsxs("span", { className: css({ display: "grid" }), children: [_jsx("span", { className: itemFields, style: columns, children: fields.map((field, index) => (_jsxs("span", { children: [_jsx("span", { className: itemFieldLabel, children: field.label }), field.value] }, index))) }), _jsxs("span", { className: itemFooter, children: [_jsxs("span", { className: itemStatus, children: [_jsx(StepDot, { status: status.status, size: "small" }), status.label] }), footer] })] })] })),
|
|
192
|
+
},
|
|
193
|
+
});
|
|
194
|
+
}
|
|
195
|
+
/* Related list: the records and documents a record points at, grouped by relation. */
|
|
196
|
+
const groupHeader = css({
|
|
197
|
+
display: "flex",
|
|
198
|
+
alignItems: "baseline",
|
|
199
|
+
gap: "control.iconGap",
|
|
200
|
+
margin: "none",
|
|
201
|
+
paddingTop: "panel.comfortable",
|
|
202
|
+
paddingInline: "panel.default",
|
|
203
|
+
paddingBottom: "control.iconGap",
|
|
204
|
+
color: "fg.muted",
|
|
205
|
+
font: "inherit",
|
|
206
|
+
fontSize: "code",
|
|
207
|
+
fontWeight: "medium",
|
|
208
|
+
"section:first-child > &": { paddingTop: "layout.tightGap" },
|
|
209
|
+
});
|
|
210
|
+
const relatedRows = css({ margin: "none", padding: "none", listStyle: "none" });
|
|
211
|
+
const relatedRow = css({
|
|
212
|
+
display: "flex",
|
|
213
|
+
alignItems: "center",
|
|
214
|
+
gap: "layout.contentGap",
|
|
215
|
+
width: "100%",
|
|
216
|
+
padding: "panel.default",
|
|
217
|
+
border: "0",
|
|
218
|
+
borderRadius: "action",
|
|
219
|
+
background: "transparent",
|
|
220
|
+
color: "fg.primary",
|
|
221
|
+
font: "inherit",
|
|
222
|
+
textAlign: "start",
|
|
223
|
+
textDecoration: "none",
|
|
224
|
+
"&:is(button, a)": { cursor: "pointer", _hover: { background: "bg.rowHover" } },
|
|
225
|
+
_focusVisible: { focusRing: "outer" },
|
|
226
|
+
});
|
|
227
|
+
const tile = css({
|
|
228
|
+
display: "inline-grid",
|
|
229
|
+
placeItems: "center",
|
|
230
|
+
flexShrink: "0",
|
|
231
|
+
width: "control.compact",
|
|
232
|
+
height: "control.compact",
|
|
233
|
+
border: "1px solid token(colors.border.panel)",
|
|
234
|
+
borderRadius: "action",
|
|
235
|
+
background: "bg.panel",
|
|
236
|
+
color: "fg.secondary",
|
|
237
|
+
"& svg": { fontSize: "icon.small" },
|
|
238
|
+
});
|
|
239
|
+
const rowTitle = css({
|
|
240
|
+
display: "block",
|
|
241
|
+
fontSize: "body",
|
|
242
|
+
fontWeight: "medium",
|
|
243
|
+
letterSpacing: "compact",
|
|
244
|
+
lineHeight: "tight",
|
|
245
|
+
});
|
|
246
|
+
const rowMeta = css({
|
|
247
|
+
display: "flex",
|
|
248
|
+
flexWrap: "wrap",
|
|
249
|
+
gap: "control.iconGap",
|
|
250
|
+
marginTop: "layout.tightGap",
|
|
251
|
+
color: "fg.secondary",
|
|
252
|
+
fontSize: "code",
|
|
253
|
+
fontWeight: "medium",
|
|
254
|
+
"& [data-separator]": { color: "fg.muted" },
|
|
255
|
+
"& [data-tone=info]": { color: "accent.blue" },
|
|
256
|
+
"& [data-tone=success]": { color: "accent.green" },
|
|
257
|
+
"& [data-tone=warning]": { color: "accent.yellow" },
|
|
258
|
+
"& [data-tone=danger]": { color: "accent.red" },
|
|
259
|
+
});
|
|
260
|
+
const listFooter = css({ paddingTop: "panel.comfortable", paddingInline: "panel.default" });
|
|
261
|
+
function RelatedListRow({ item }) {
|
|
262
|
+
const link = item.href !== undefined || item.render !== undefined;
|
|
263
|
+
const interactive = link || item.onOpen !== undefined;
|
|
264
|
+
const line = [
|
|
265
|
+
...(item.details ?? []).map((detail, index) => ({ key: `detail-${index}`, node: detail })),
|
|
266
|
+
...(item.status ? [{ key: "status", node: item.status.label, tone: item.status.tone }] : []),
|
|
267
|
+
];
|
|
268
|
+
return useRender({
|
|
269
|
+
defaultTagName: link ? "a" : interactive ? "button" : "div",
|
|
270
|
+
render: item.render,
|
|
271
|
+
props: {
|
|
272
|
+
...(item.href !== undefined ? { href: item.href } : {}),
|
|
273
|
+
...(!link && interactive ? { type: "button" } : {}),
|
|
274
|
+
className: relatedRow,
|
|
275
|
+
onClick: item.onOpen,
|
|
276
|
+
children: (_jsxs(_Fragment, { children: [item.icon !== undefined && _jsx("span", { className: tile, children: item.icon }), _jsxs("span", { className: css({ flex: "1", minWidth: "0" }), children: [_jsx("span", { className: rowTitle, children: item.title }), line.length > 0 && (_jsx("span", { className: rowMeta, children: line.map((part, index) => (_jsxs("span", { className: css({ display: "contents" }), children: [index > 0 && (_jsx("span", { "data-separator": "", "aria-hidden": "true", children: "\u00B7" })), _jsx("span", { "data-tone": "tone" in part ? part.tone : undefined, children: part.node })] }, part.key))) }))] }), interactive && _jsx(CaretRightIcon, { className: cx(icon({ size: "small" }), directional) })] })),
|
|
277
|
+
},
|
|
278
|
+
});
|
|
279
|
+
}
|
|
280
|
+
export function RelatedList({ groups, footer, className, ...props }) {
|
|
281
|
+
return (_jsxs("div", { ...props, className: className, "data-ciridae-ui": "", children: [groups.map((group) => (_jsxs("section", { children: [_jsxs("h3", { className: groupHeader, children: [group.label, _jsx("span", { children: group.items.length })] }), _jsx("ul", { className: relatedRows, children: group.items.map((item) => (_jsx("li", { children: _jsx(RelatedListRow, { item: item }) }, item.id))) })] }, group.id))), footer !== undefined && _jsx("div", { className: listFooter, children: footer })] }));
|
|
282
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
/**
|
|
3
|
+
* A region that scrolls inside its own bounds and shows a slim scrollbar while it overflows. Size
|
|
4
|
+
* the viewport with `viewportClassName`, such as a `maxHeight`; content taller than that scrolls.
|
|
5
|
+
*/
|
|
6
|
+
export declare function ScrollArea({ className, viewportClassName, scrollDirections, children, ...viewportProps }: {
|
|
7
|
+
className?: string;
|
|
8
|
+
viewportClassName: string;
|
|
9
|
+
/**
|
|
10
|
+
* Omit to scroll up and down only; `vertical-and-horizontal` also scrolls sideways, for content
|
|
11
|
+
* wider than the area such as a table on a phone.
|
|
12
|
+
*/
|
|
13
|
+
scrollDirections?: "vertical" | "vertical-and-horizontal";
|
|
14
|
+
children: ReactNode;
|
|
15
|
+
"aria-label"?: string;
|
|
16
|
+
}): import("@types/react").JSX.Element;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { ScrollArea as BaseScrollArea } from "@base-ui/react/scroll-area";
|
|
3
|
+
import { css, cx } from "#primitives/css";
|
|
4
|
+
const root = css({
|
|
5
|
+
position: "relative",
|
|
6
|
+
display: "flex",
|
|
7
|
+
flexDirection: "column",
|
|
8
|
+
minWidth: "0",
|
|
9
|
+
minHeight: "0",
|
|
10
|
+
});
|
|
11
|
+
// Scrolling past either end carries on to the page, so a list in the middle of a form never
|
|
12
|
+
// stops the reader short of what follows it.
|
|
13
|
+
const viewport = css({
|
|
14
|
+
minHeight: "0",
|
|
15
|
+
_focusVisible: { focusRing: "inset" },
|
|
16
|
+
});
|
|
17
|
+
// Always drawn while there is overflow, rather than only on hover, so a list shows it scrolls.
|
|
18
|
+
const scrollbar = css({
|
|
19
|
+
zIndex: "scrollbar",
|
|
20
|
+
display: "flex",
|
|
21
|
+
padding: "1px",
|
|
22
|
+
opacity: "0.7",
|
|
23
|
+
transitionProperty: "opacity",
|
|
24
|
+
transitionDuration: "fast",
|
|
25
|
+
"&[data-orientation=vertical]": {
|
|
26
|
+
width: "scroll.bar",
|
|
27
|
+
marginBlock: "2px",
|
|
28
|
+
marginInlineEnd: "1px",
|
|
29
|
+
},
|
|
30
|
+
"&[data-orientation=horizontal]": {
|
|
31
|
+
height: "scroll.bar",
|
|
32
|
+
marginInline: "2px",
|
|
33
|
+
marginBottom: "1px",
|
|
34
|
+
},
|
|
35
|
+
"&[data-hovering], &[data-scrolling]": { opacity: "1" },
|
|
36
|
+
});
|
|
37
|
+
// Base UI sizes the thumb along its track; it fills the track's other axis.
|
|
38
|
+
const thumb = css({
|
|
39
|
+
borderRadius: "round",
|
|
40
|
+
background: "border.control",
|
|
41
|
+
"&[data-orientation=vertical]": { width: "100%" },
|
|
42
|
+
"&[data-orientation=horizontal]": { height: "100%" },
|
|
43
|
+
});
|
|
44
|
+
/**
|
|
45
|
+
* A region that scrolls inside its own bounds and shows a slim scrollbar while it overflows. Size
|
|
46
|
+
* the viewport with `viewportClassName`, such as a `maxHeight`; content taller than that scrolls.
|
|
47
|
+
*/
|
|
48
|
+
export function ScrollArea({ className, viewportClassName, scrollDirections = "vertical", children, ...viewportProps }) {
|
|
49
|
+
return (_jsxs(BaseScrollArea.Root, { className: cx(root, className), "data-ciridae-ui": "", children: [_jsx(BaseScrollArea.Viewport, { ...viewportProps, className: cx(viewport, viewportClassName), children: _jsx(BaseScrollArea.Content, { style: scrollDirections === "vertical" ? { minWidth: 0 } : undefined, children: children }) }), _jsx(BaseScrollArea.Scrollbar, { orientation: "vertical", className: scrollbar, children: _jsx(BaseScrollArea.Thumb, { className: thumb }) }), scrollDirections === "vertical-and-horizontal" && (_jsx(BaseScrollArea.Scrollbar, { orientation: "horizontal", className: scrollbar, children: _jsx(BaseScrollArea.Thumb, { className: thumb }) }))] }));
|
|
50
|
+
}
|