@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,184 @@
|
|
|
1
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
/*
|
|
3
|
+
* The preview beside a list: one body, drawn as an aside next to the list above the shell's rail
|
|
4
|
+
* breakpoint and as a `Drawer` below it, where nothing fits beside a list. Its header row is as
|
|
5
|
+
* tall as a `DataGrid`'s head, so the rule under it continues the list's.
|
|
6
|
+
*/
|
|
7
|
+
import { CaretLeftIcon, CaretRightIcon, XIcon } from "@phosphor-icons/react";
|
|
8
|
+
import { useId } from "react";
|
|
9
|
+
import { css, cx } from "#primitives/css";
|
|
10
|
+
import { useBreakpoint } from "./breakpoint.js";
|
|
11
|
+
import { IconButton } from "./button.js";
|
|
12
|
+
import { Drawer, DrawerBody, DrawerFooter } from "./drawer.js";
|
|
13
|
+
import { HotkeysProvider, useHotkeys } from "./hotkeys.js";
|
|
14
|
+
import { directional, icon } from "./icon.js";
|
|
15
|
+
import { useCiridaeLocale } from "./locale.js";
|
|
16
|
+
const aside = css({
|
|
17
|
+
display: "flex",
|
|
18
|
+
flexDirection: "column",
|
|
19
|
+
flexShrink: "0",
|
|
20
|
+
width: "400px",
|
|
21
|
+
minWidth: "0",
|
|
22
|
+
minHeight: "0",
|
|
23
|
+
overflow: "hidden",
|
|
24
|
+
border: "1px solid token(colors.border.panel)",
|
|
25
|
+
borderRadius: "action",
|
|
26
|
+
background: "bg.hover",
|
|
27
|
+
_light: { background: "bg.card" },
|
|
28
|
+
});
|
|
29
|
+
const headerRow = css({
|
|
30
|
+
display: "flex",
|
|
31
|
+
alignItems: "center",
|
|
32
|
+
gap: "layout.controlGap",
|
|
33
|
+
// A list head's height: its block padding round one line of its text.
|
|
34
|
+
minHeight: "calc(token(spacing.panel.default) * 2 + 16px + 1px)",
|
|
35
|
+
paddingInlineStart: "panel.comfortable",
|
|
36
|
+
paddingInlineEnd: "panel.default",
|
|
37
|
+
borderBottom: "1px solid token(colors.border.panel)",
|
|
38
|
+
});
|
|
39
|
+
const headerLead = css({
|
|
40
|
+
display: "flex",
|
|
41
|
+
alignItems: "center",
|
|
42
|
+
gap: "layout.controlGap",
|
|
43
|
+
flex: "1",
|
|
44
|
+
minWidth: "0",
|
|
45
|
+
overflow: "hidden",
|
|
46
|
+
whiteSpace: "nowrap",
|
|
47
|
+
fontSize: "body",
|
|
48
|
+
fontWeight: "medium",
|
|
49
|
+
letterSpacing: "compact",
|
|
50
|
+
"&[data-eyebrow]": { color: "fg.muted", fontSize: "code" },
|
|
51
|
+
});
|
|
52
|
+
const headerActions = css({
|
|
53
|
+
display: "flex",
|
|
54
|
+
alignItems: "center",
|
|
55
|
+
gap: "layout.tightGap",
|
|
56
|
+
flexShrink: "0",
|
|
57
|
+
});
|
|
58
|
+
const titleBlock = css({
|
|
59
|
+
display: "grid",
|
|
60
|
+
gap: "layout.contentGap",
|
|
61
|
+
paddingBlockStart: "panel.default",
|
|
62
|
+
paddingInline: "panel.comfortable",
|
|
63
|
+
});
|
|
64
|
+
const titleLine = css({
|
|
65
|
+
display: "flex",
|
|
66
|
+
alignItems: "center",
|
|
67
|
+
flexWrap: "wrap",
|
|
68
|
+
gap: "layout.controlGap",
|
|
69
|
+
margin: "none",
|
|
70
|
+
fontSize: "heading",
|
|
71
|
+
fontWeight: "medium",
|
|
72
|
+
lineHeight: "tight",
|
|
73
|
+
});
|
|
74
|
+
const subtitleLine = css({
|
|
75
|
+
margin: "none",
|
|
76
|
+
color: "fg.muted",
|
|
77
|
+
fontSize: "code",
|
|
78
|
+
fontWeight: "medium",
|
|
79
|
+
letterSpacing: "compact",
|
|
80
|
+
});
|
|
81
|
+
const body = css({
|
|
82
|
+
display: "grid",
|
|
83
|
+
gridTemplateColumns: "minmax(0, 1fr)",
|
|
84
|
+
alignContent: "start",
|
|
85
|
+
gap: "layout.clusterGap",
|
|
86
|
+
flex: "1",
|
|
87
|
+
minHeight: "0",
|
|
88
|
+
overflowY: "auto",
|
|
89
|
+
padding: "panel.comfortable",
|
|
90
|
+
// A flush body holds its content edge to edge, such as tabs whose panels pad themselves.
|
|
91
|
+
"&[data-flush]": { display: "flex", flexDirection: "column", gap: "0", padding: "0" },
|
|
92
|
+
});
|
|
93
|
+
const footerRow = css({
|
|
94
|
+
display: "flex",
|
|
95
|
+
alignItems: "center",
|
|
96
|
+
justifyContent: "flex-end",
|
|
97
|
+
flexWrap: "wrap",
|
|
98
|
+
gap: "layout.controlGap",
|
|
99
|
+
paddingBlock: "panel.default",
|
|
100
|
+
paddingInline: "panel.comfortable",
|
|
101
|
+
borderTop: "1px solid token(colors.border.panel)",
|
|
102
|
+
});
|
|
103
|
+
const sheetBody = css({
|
|
104
|
+
display: "grid",
|
|
105
|
+
gridTemplateColumns: "minmax(0, 1fr)",
|
|
106
|
+
alignContent: "start",
|
|
107
|
+
gap: "layout.clusterGap",
|
|
108
|
+
});
|
|
109
|
+
const layout = css({
|
|
110
|
+
display: "flex",
|
|
111
|
+
alignItems: "stretch",
|
|
112
|
+
gap: "layout.contentGap",
|
|
113
|
+
minWidth: "0",
|
|
114
|
+
"& > :first-child": { flex: "1", minWidth: "0" },
|
|
115
|
+
});
|
|
116
|
+
const section = css({ display: "grid", gap: "layout.controlGap", minWidth: "0" });
|
|
117
|
+
const sectionLabel = css({
|
|
118
|
+
color: "fg.muted",
|
|
119
|
+
fontSize: "code",
|
|
120
|
+
fontWeight: "medium",
|
|
121
|
+
letterSpacing: "compact",
|
|
122
|
+
lineHeight: "tight",
|
|
123
|
+
});
|
|
124
|
+
/**
|
|
125
|
+
* [ and ] step to the previous and next item, and Escape closes the aside (the sheet closes on
|
|
126
|
+
* Escape by itself). Registered in the panel's own scope, nested in the page's, so its Escape wins
|
|
127
|
+
* over the list's.
|
|
128
|
+
*/
|
|
129
|
+
function SidePanelHotkeys({ onPrevious, onNext, onClose, }) {
|
|
130
|
+
const { labels } = useCiridaeLocale();
|
|
131
|
+
const group = labels.keyboard.panel;
|
|
132
|
+
useHotkeys([
|
|
133
|
+
{
|
|
134
|
+
hotkey: "[",
|
|
135
|
+
callback: () => onPrevious?.(),
|
|
136
|
+
options: {
|
|
137
|
+
enabled: onPrevious !== undefined,
|
|
138
|
+
meta: { group, name: labels.keyboard.previousItem },
|
|
139
|
+
},
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
hotkey: "]",
|
|
143
|
+
callback: () => onNext?.(),
|
|
144
|
+
options: { enabled: onNext !== undefined, meta: { group, name: labels.keyboard.nextItem } },
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
hotkey: "Escape",
|
|
148
|
+
callback: () => onClose?.(),
|
|
149
|
+
options: {
|
|
150
|
+
enabled: onClose !== undefined,
|
|
151
|
+
meta: { group, name: labels.keyboard.closePanel },
|
|
152
|
+
},
|
|
153
|
+
},
|
|
154
|
+
]);
|
|
155
|
+
return null;
|
|
156
|
+
}
|
|
157
|
+
/**
|
|
158
|
+
* A list's preview panel: the open item's header (an eyebrow, title, accessory, subtitle), an
|
|
159
|
+
* optional previous / next stepper, actions and close, a scrolling body and a footer. Put it beside
|
|
160
|
+
* the list in a `SidePanelLayout`.
|
|
161
|
+
*/
|
|
162
|
+
export function SidePanel({ title, eyebrow, subtitle, titleAccessory, actions, headerContent, footer, onClose, stepper = false, onPrevious, onNext, flushBody = false, bodyClassName, className, children, ...props }) {
|
|
163
|
+
const { labels } = useCiridaeLocale();
|
|
164
|
+
const narrowShell = useBreakpoint("rail");
|
|
165
|
+
const scope = `side-panel${useId()}`;
|
|
166
|
+
const stepHandlers = stepper ? { onPrevious, onNext } : {};
|
|
167
|
+
const stepButtons = stepper && (_jsxs(_Fragment, { children: [_jsx(IconButton, { "aria-label": labels.sidePanel.previous, size: "small", disabled: !onPrevious, onClick: onPrevious, children: _jsx(CaretLeftIcon, { className: cx(icon({ size: "small" }), directional) }) }), _jsx(IconButton, { "aria-label": labels.sidePanel.next, size: "small", disabled: !onNext, onClick: onNext, children: _jsx(CaretRightIcon, { className: cx(icon({ size: "small" }), directional) }) })] }));
|
|
168
|
+
if (narrowShell) {
|
|
169
|
+
return (_jsxs(Drawer, { open: true, onOpenChange: (open) => {
|
|
170
|
+
if (!open)
|
|
171
|
+
onClose();
|
|
172
|
+
}, title: title, subtitle: subtitle, eyebrow: eyebrow, titleAccessory: titleAccessory, actions: _jsxs(_Fragment, { children: [stepButtons, actions] }), children: [_jsxs(DrawerBody, { flush: flushBody, className: cx(!flushBody && sheetBody, bodyClassName), children: [_jsx(SidePanelHotkeys, { ...stepHandlers }), headerContent, children] }), footer && _jsx(DrawerFooter, { children: footer })] }));
|
|
173
|
+
}
|
|
174
|
+
const titleContent = (_jsxs(_Fragment, { children: [title, titleAccessory] }));
|
|
175
|
+
return (_jsxs(HotkeysProvider, { scope: scope, children: [_jsx(SidePanelHotkeys, { ...stepHandlers, onClose: onClose }), _jsxs("aside", { ...props, className: cx(aside, className), "data-ciridae-ui": "", children: [_jsxs("div", { className: headerRow, children: [_jsx("span", { className: headerLead, "data-eyebrow": eyebrow ? "" : undefined, children: eyebrow ?? titleContent }), _jsxs("span", { className: headerActions, children: [stepButtons, actions, _jsx(IconButton, { "aria-label": labels.common.close, size: "small", onClick: onClose, children: _jsx(XIcon, { className: icon({ size: "small" }) }) })] })] }), (eyebrow || subtitle || headerContent) && (_jsxs("div", { className: titleBlock, children: [eyebrow && _jsx("h2", { className: titleLine, children: titleContent }), subtitle && _jsx("p", { className: subtitleLine, children: subtitle }), headerContent] })), _jsx("div", { className: cx(body, bodyClassName), "data-flush": flushBody || undefined, children: children }), footer && _jsx("div", { className: footerRow, children: footer })] })] }));
|
|
176
|
+
}
|
|
177
|
+
/** A list and its `SidePanel` side by side; the list takes the room the panel leaves. */
|
|
178
|
+
export function SidePanelLayout({ className, ...props }) {
|
|
179
|
+
return _jsx("div", { ...props, className: cx(layout, className), "data-ciridae-ui": "" });
|
|
180
|
+
}
|
|
181
|
+
/** A labelled block of a side panel's body. */
|
|
182
|
+
export function SidePanelSection({ label, className, children, ...props }) {
|
|
183
|
+
return (_jsxs("section", { ...props, className: cx(section, className), children: [_jsx("span", { className: sectionLabel, children: label }), children] }));
|
|
184
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { useRender } from "@base-ui/react/use-render";
|
|
2
|
+
import type { ComponentProps, ReactNode } from "react";
|
|
3
|
+
export declare function SidebarNavigation({ className, ...props }: ComponentProps<"nav">): import("@types/react").JSX.Element;
|
|
4
|
+
export declare function SidebarDivider({ className, ...props }: ComponentProps<"hr">): import("@types/react").JSX.Element;
|
|
5
|
+
export declare function SidebarPanel({ className, ...props }: ComponentProps<"div">): import("@types/react").JSX.Element;
|
|
6
|
+
export declare function SidebarSection({ label, action, iconTone, className, children, ...props }: ComponentProps<"div"> & {
|
|
7
|
+
label?: ReactNode;
|
|
8
|
+
action?: ReactNode;
|
|
9
|
+
iconTone?: "bronze";
|
|
10
|
+
}): import("@types/react").JSX.Element;
|
|
11
|
+
/** The subject a sidebar is scoped to, such as the open project. */
|
|
12
|
+
export declare function SidebarHeading({ icon, className, children, ...props }: ComponentProps<"button"> & {
|
|
13
|
+
icon?: ReactNode;
|
|
14
|
+
}): import("@types/react").JSX.Element;
|
|
15
|
+
/**
|
|
16
|
+
* A sidebar row. Without children it renders icon-only, for the rail; give it an `aria-label`
|
|
17
|
+
* then, since the label is what names it.
|
|
18
|
+
*/
|
|
19
|
+
export type SidebarItemProps = useRender.ComponentProps<"button"> & {
|
|
20
|
+
/** Makes the row a link to this address; `render` takes a router's link, such as `<Link to>`. */
|
|
21
|
+
href?: string;
|
|
22
|
+
icon?: ReactNode;
|
|
23
|
+
trailing?: ReactNode;
|
|
24
|
+
/**
|
|
25
|
+
* A control at the row's end, such as a pin `IconButton` (compact unless it sets its size),
|
|
26
|
+
* shown on hover or focus and always on touch. It sits beside the row, so it never navigates.
|
|
27
|
+
*/
|
|
28
|
+
action?: ReactNode;
|
|
29
|
+
active?: boolean;
|
|
30
|
+
/** Tint the leading icon bronze while inactive, as the Projects hub sidebar does. */
|
|
31
|
+
iconTone?: "bronze";
|
|
32
|
+
/** `compact` is a secondary list's row, such as recently opened records. */
|
|
33
|
+
size?: "regular" | "compact";
|
|
34
|
+
};
|
|
35
|
+
export declare function SidebarItem({ icon, trailing, action, active, iconTone, size, href, render, className, children, ...props }: SidebarItemProps): import("@types/react").JSX.Element;
|
|
@@ -0,0 +1,207 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
+
import { useRender } from "@base-ui/react/use-render";
|
|
3
|
+
import { css, cx } from "#primitives/css";
|
|
4
|
+
import { IconButtonSizeContext } from "./button.js";
|
|
5
|
+
// Navigation sits in the shell's sidebar; it is not a panel of its own.
|
|
6
|
+
const navigation = css({
|
|
7
|
+
display: "flex",
|
|
8
|
+
width: "100%",
|
|
9
|
+
minWidth: "0",
|
|
10
|
+
flexDirection: "column",
|
|
11
|
+
gap: "layout.clusterGap",
|
|
12
|
+
});
|
|
13
|
+
const section = css({ display: "grid", gap: "control.trackInset" });
|
|
14
|
+
// A block of secondary sections, such as pinned and recent records, set apart by a fill.
|
|
15
|
+
const panel = css({
|
|
16
|
+
display: "grid",
|
|
17
|
+
gap: "layout.controlGap",
|
|
18
|
+
padding: "layout.tightGap",
|
|
19
|
+
borderRadius: "action",
|
|
20
|
+
background: "bg.hover",
|
|
21
|
+
});
|
|
22
|
+
const sectionLabel = css({
|
|
23
|
+
display: "flex",
|
|
24
|
+
alignItems: "center",
|
|
25
|
+
gap: "control.iconGap",
|
|
26
|
+
paddingInline: "control.compactInline",
|
|
27
|
+
paddingTop: "layout.tightGap",
|
|
28
|
+
paddingBottom: "control.compactBlock",
|
|
29
|
+
color: "fg.subtle",
|
|
30
|
+
fontSize: "code",
|
|
31
|
+
fontWeight: "medium",
|
|
32
|
+
lineHeight: "tight",
|
|
33
|
+
"&[data-icon-tone=bronze] > svg": { color: "accent.bronze" },
|
|
34
|
+
});
|
|
35
|
+
const sectionAction = css({ display: "inline-flex", marginInlineStart: "auto" });
|
|
36
|
+
const divider = css({
|
|
37
|
+
width: "100%",
|
|
38
|
+
height: "border.hairline",
|
|
39
|
+
margin: "none",
|
|
40
|
+
border: "0",
|
|
41
|
+
background: "border.hairline",
|
|
42
|
+
});
|
|
43
|
+
const item = css({
|
|
44
|
+
display: "flex",
|
|
45
|
+
alignItems: "center",
|
|
46
|
+
gap: "layout.controlGap",
|
|
47
|
+
width: "100%",
|
|
48
|
+
height: "control.small",
|
|
49
|
+
paddingInline: "control.compactInline",
|
|
50
|
+
border: "0",
|
|
51
|
+
borderRadius: "action",
|
|
52
|
+
background: "transparent",
|
|
53
|
+
// Muted against the dark canvas; light keeps every item at full contrast, as Round 2 does.
|
|
54
|
+
color: "fg.muted",
|
|
55
|
+
_light: { color: "fg.primary" },
|
|
56
|
+
fontFamily: "sans",
|
|
57
|
+
fontSize: "body",
|
|
58
|
+
fontWeight: "medium",
|
|
59
|
+
letterSpacing: "compact",
|
|
60
|
+
lineHeight: "tight",
|
|
61
|
+
textAlign: "start",
|
|
62
|
+
cursor: "pointer",
|
|
63
|
+
transitionProperty: "background, color",
|
|
64
|
+
transitionDuration: "fast",
|
|
65
|
+
"& > svg:first-child": { opacity: ".7" },
|
|
66
|
+
"&[data-icon-tone=bronze] > svg:first-child": { color: "accent.bronze" },
|
|
67
|
+
"&:hover, &[aria-pressed=true]": {
|
|
68
|
+
background: "bg.hover",
|
|
69
|
+
color: "fg.primary",
|
|
70
|
+
"& > svg:first-child": { color: "inherit" },
|
|
71
|
+
},
|
|
72
|
+
// The open page keeps the hover shape and size, so moving between pages shifts nothing; the
|
|
73
|
+
// accent wash and the panel's own edge are what mark it.
|
|
74
|
+
"&[aria-current=page]": {
|
|
75
|
+
background: "bg.selected",
|
|
76
|
+
boxShadow: "inset 0 0 0 1px token(colors.border.panel)",
|
|
77
|
+
color: "fg.primary",
|
|
78
|
+
"& > svg:first-child": { color: "inherit", opacity: "1" },
|
|
79
|
+
},
|
|
80
|
+
_focusVisible: { focusRing: "inset" },
|
|
81
|
+
// A secondary list under the navigation, such as recently opened records: a shorter row in
|
|
82
|
+
// smaller, quieter text, so it reads apart from the pages above it.
|
|
83
|
+
"&[data-size=compact]": {
|
|
84
|
+
height: "control.compact",
|
|
85
|
+
color: "fg.secondary",
|
|
86
|
+
fontSize: "caption",
|
|
87
|
+
},
|
|
88
|
+
// With no label it is the rail's square: the same hover, open-page fill and edge, icon only.
|
|
89
|
+
"&[data-icon-only]": {
|
|
90
|
+
justifyContent: "center",
|
|
91
|
+
width: "control.default",
|
|
92
|
+
height: "control.default",
|
|
93
|
+
paddingInline: "none",
|
|
94
|
+
"& > svg:first-child": { opacity: "1", fontSize: "icon.rail" },
|
|
95
|
+
},
|
|
96
|
+
});
|
|
97
|
+
const label = css({
|
|
98
|
+
minWidth: "0",
|
|
99
|
+
flex: "1",
|
|
100
|
+
overflow: "hidden",
|
|
101
|
+
textOverflow: "ellipsis",
|
|
102
|
+
whiteSpace: "nowrap",
|
|
103
|
+
lineHeight: "compact",
|
|
104
|
+
});
|
|
105
|
+
const trailingStyle = css({ display: "inline-flex", flexShrink: "0", color: "fg.subtle" });
|
|
106
|
+
// A row with an action: the group draws the row's hover, open-page fill and edge, so they span the
|
|
107
|
+
// action too, and the row inside it stays transparent.
|
|
108
|
+
const itemGroup = css({
|
|
109
|
+
display: "flex",
|
|
110
|
+
alignItems: "center",
|
|
111
|
+
width: "100%",
|
|
112
|
+
minWidth: "0",
|
|
113
|
+
borderRadius: "action",
|
|
114
|
+
transitionProperty: "background",
|
|
115
|
+
transitionDuration: "fast",
|
|
116
|
+
"&:hover": { background: "bg.hover" },
|
|
117
|
+
"&:hover > [data-sidebar-row]": { color: "fg.primary" },
|
|
118
|
+
"&:has(> [data-sidebar-row][aria-current=page])": {
|
|
119
|
+
background: "bg.selected",
|
|
120
|
+
boxShadow: "inset 0 0 0 1px token(colors.border.panel)",
|
|
121
|
+
},
|
|
122
|
+
// The group draws the one wash; the row inside never adds its own on hover or when current.
|
|
123
|
+
"& > [data-sidebar-row]": { minWidth: "0" },
|
|
124
|
+
"& > [data-sidebar-row], & > [data-sidebar-row]:is(:hover, [aria-current=page], [aria-pressed=true])": { background: "transparent", boxShadow: "none" },
|
|
125
|
+
// Focus rings the whole row, action included, not just the link inside it.
|
|
126
|
+
"& > [data-sidebar-row]:focus-visible": { outline: "none" },
|
|
127
|
+
"&:has(> [data-sidebar-row]:focus-visible)": { focusRing: "inset" },
|
|
128
|
+
"&:hover > [data-sidebar-action], & > [data-sidebar-action]:focus-within": { opacity: "1" },
|
|
129
|
+
});
|
|
130
|
+
// Revealed on hover or focus; always shown where there is no hover to reveal it.
|
|
131
|
+
const itemAction = css({
|
|
132
|
+
display: "inline-flex",
|
|
133
|
+
flexShrink: "0",
|
|
134
|
+
paddingInlineEnd: "control.trackInset",
|
|
135
|
+
opacity: "0",
|
|
136
|
+
transitionProperty: "opacity",
|
|
137
|
+
transitionDuration: "fast",
|
|
138
|
+
_phone: { opacity: "1" },
|
|
139
|
+
"@media (hover: none)": { opacity: "1" },
|
|
140
|
+
});
|
|
141
|
+
const heading = css({
|
|
142
|
+
display: "flex",
|
|
143
|
+
alignItems: "center",
|
|
144
|
+
gap: "sidebar.markGap",
|
|
145
|
+
width: "100%",
|
|
146
|
+
minWidth: "0",
|
|
147
|
+
paddingBlock: "control.block",
|
|
148
|
+
paddingInline: "control.block",
|
|
149
|
+
border: "0",
|
|
150
|
+
borderRadius: "field",
|
|
151
|
+
background: "transparent",
|
|
152
|
+
color: "inherit",
|
|
153
|
+
font: "inherit",
|
|
154
|
+
textAlign: "start",
|
|
155
|
+
cursor: "pointer",
|
|
156
|
+
_hover: { background: "bg.hover" },
|
|
157
|
+
"&[aria-current=page]": { background: "bg.selected" },
|
|
158
|
+
_focusVisible: { focusRing: "inset" },
|
|
159
|
+
});
|
|
160
|
+
const headingName = css({
|
|
161
|
+
overflow: "hidden",
|
|
162
|
+
textOverflow: "ellipsis",
|
|
163
|
+
whiteSpace: "nowrap",
|
|
164
|
+
fontSize: "heading",
|
|
165
|
+
fontWeight: "medium",
|
|
166
|
+
lineHeight: "compact",
|
|
167
|
+
});
|
|
168
|
+
export function SidebarNavigation({ className, ...props }) {
|
|
169
|
+
return _jsx("nav", { ...props, className: cx(navigation, className), "data-ciridae-ui": "" });
|
|
170
|
+
}
|
|
171
|
+
export function SidebarDivider({ className, ...props }) {
|
|
172
|
+
return _jsx("hr", { ...props, className: cx(divider, className), "data-ciridae-ui": "" });
|
|
173
|
+
}
|
|
174
|
+
export function SidebarPanel({ className, ...props }) {
|
|
175
|
+
return _jsx("div", { ...props, className: cx(panel, className), "data-ciridae-ui": "" });
|
|
176
|
+
}
|
|
177
|
+
export function SidebarSection({ label, action, iconTone, className, children, ...props }) {
|
|
178
|
+
return (_jsxs("div", { ...props, className: cx(section, className), "data-ciridae-ui": "", children: [label && (_jsxs("div", { className: sectionLabel, "data-icon-tone": iconTone, children: [label, action && _jsx("span", { className: sectionAction, children: action })] })), children] }));
|
|
179
|
+
}
|
|
180
|
+
/** The subject a sidebar is scoped to, such as the open project. */
|
|
181
|
+
export function SidebarHeading({ icon, className, children, ...props }) {
|
|
182
|
+
return (_jsxs("button", { ...props, className: cx(heading, className), "data-ciridae-ui": "", type: props.type ?? "button", children: [icon, _jsx("span", { className: headingName, children: children })] }));
|
|
183
|
+
}
|
|
184
|
+
export function SidebarItem({ icon, trailing, action, active, iconTone, size = "regular", href, render, className, children, ...props }) {
|
|
185
|
+
const link = href !== undefined || render !== undefined;
|
|
186
|
+
const row = useRender({
|
|
187
|
+
defaultTagName: href !== undefined ? "a" : "button",
|
|
188
|
+
render,
|
|
189
|
+
props: {
|
|
190
|
+
...(link ? {} : { type: "button" }),
|
|
191
|
+
...(href !== undefined ? { href } : {}),
|
|
192
|
+
...props,
|
|
193
|
+
"aria-current": active ? "page" : undefined,
|
|
194
|
+
className: cx(item, className),
|
|
195
|
+
"data-ciridae-ui": "",
|
|
196
|
+
"data-sidebar-row": "",
|
|
197
|
+
"data-icon-tone": iconTone,
|
|
198
|
+
"data-size": size,
|
|
199
|
+
"data-icon-only": children === undefined || undefined,
|
|
200
|
+
children: (_jsxs(_Fragment, { children: [icon, children !== undefined && _jsx("span", { className: label, children: children }), trailing && _jsx("span", { className: trailingStyle, children: trailing })] })),
|
|
201
|
+
},
|
|
202
|
+
});
|
|
203
|
+
// The rail's icon-only square has no room for one.
|
|
204
|
+
if (!action || children === undefined)
|
|
205
|
+
return row;
|
|
206
|
+
return (_jsxs("span", { className: itemGroup, "data-ciridae-ui": "", children: [row, _jsx("span", { className: itemAction, "data-sidebar-action": "", children: _jsx(IconButtonSizeContext, { value: "compact", children: action }) })] }));
|
|
207
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { type RecipeVariantProps } from "#primitives/css";
|
|
2
|
+
import type { ComponentProps } from "react";
|
|
3
|
+
declare const banner: import("../../../src/styled-system/types/index.js").RecipeRuntimeFn<{
|
|
4
|
+
tone: {
|
|
5
|
+
neutral: {
|
|
6
|
+
background: "bg.hover";
|
|
7
|
+
};
|
|
8
|
+
info: {
|
|
9
|
+
background: "bg.infoSubtle";
|
|
10
|
+
};
|
|
11
|
+
success: {
|
|
12
|
+
background: "bg.successSubtle";
|
|
13
|
+
};
|
|
14
|
+
warning: {
|
|
15
|
+
background: "bg.warningSubtle";
|
|
16
|
+
};
|
|
17
|
+
danger: {
|
|
18
|
+
background: "bg.errorSubtle";
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
}>;
|
|
22
|
+
export type SiteBannerProps = ComponentProps<"div"> & RecipeVariantProps<typeof banner>;
|
|
23
|
+
/** A quiet, full-width site notice, separate from page-level status banners. */
|
|
24
|
+
export declare function SiteBanner({ tone, className, ...props }: SiteBannerProps): import("@types/react").JSX.Element;
|
|
25
|
+
export {};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { cva, cx } from "#primitives/css";
|
|
3
|
+
const banner = cva({
|
|
4
|
+
base: {
|
|
5
|
+
flexShrink: "0",
|
|
6
|
+
width: "100%",
|
|
7
|
+
boxSizing: "border-box",
|
|
8
|
+
paddingBlock: "2px",
|
|
9
|
+
paddingInline: "16px",
|
|
10
|
+
textAlign: "start",
|
|
11
|
+
fontSize: "11px",
|
|
12
|
+
fontWeight: "medium",
|
|
13
|
+
lineHeight: "16px",
|
|
14
|
+
color: "fg.muted",
|
|
15
|
+
},
|
|
16
|
+
variants: {
|
|
17
|
+
tone: {
|
|
18
|
+
neutral: { background: "bg.hover" },
|
|
19
|
+
info: { background: "bg.infoSubtle" },
|
|
20
|
+
success: { background: "bg.successSubtle" },
|
|
21
|
+
warning: { background: "bg.warningSubtle" },
|
|
22
|
+
danger: { background: "bg.errorSubtle" },
|
|
23
|
+
},
|
|
24
|
+
},
|
|
25
|
+
defaultVariants: { tone: "info" },
|
|
26
|
+
});
|
|
27
|
+
/** A quiet, full-width site notice, separate from page-level status banners. */
|
|
28
|
+
export function SiteBanner({ tone, className, ...props }) {
|
|
29
|
+
return _jsx("div", { ...props, className: cx(banner({ tone }), className) });
|
|
30
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { ComponentProps } from "react";
|
|
2
|
+
export type SkeletonWidth = "short" | "medium" | "long" | "full" | `${number}%`;
|
|
3
|
+
export type SkeletonHeight = "text" | "caption" | "control" | "row" | "block" | "chart" | "chart.small" | "chart.medium" | "chart.large";
|
|
4
|
+
/**
|
|
5
|
+
* Loading placeholder with a shimmer. `block` fills its box, `text` takes one line of the
|
|
6
|
+
* surrounding text, `circle` stands in for avatars and icons, and `square` for logos and tiles. Size it with `width` (a token
|
|
7
|
+
* length, `full`, or a percentage of its box) and `height` (a line of text or caption, a control,
|
|
8
|
+
* a list row, the whole box, or a chart's height).
|
|
9
|
+
*/
|
|
10
|
+
export declare function Skeleton({ shape, width, height, className, style, ...props }: ComponentProps<"span"> & {
|
|
11
|
+
shape?: "block" | "text" | "circle" | "square";
|
|
12
|
+
/** A token width, for a value of roughly known length, or a share of the box such as `"60%"`. */
|
|
13
|
+
width?: SkeletonWidth;
|
|
14
|
+
height?: SkeletonHeight;
|
|
15
|
+
}): import("@types/react").JSX.Element;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { css, cx } from "#primitives/css";
|
|
3
|
+
const skeleton = css({
|
|
4
|
+
display: "block",
|
|
5
|
+
flexShrink: "0",
|
|
6
|
+
background: "token(gradients.skeleton)",
|
|
7
|
+
backgroundSize: "200% 100%",
|
|
8
|
+
animation: "skeletonShimmer 1.6s ease-in-out infinite",
|
|
9
|
+
_motionReduce: { animation: "none" },
|
|
10
|
+
"&[data-shape=block]": { minHeight: "skeleton.line", borderRadius: "action" },
|
|
11
|
+
// One line of the surrounding text: the bar is shorter than the line box and centered in it.
|
|
12
|
+
"&[data-shape=text]": {
|
|
13
|
+
width: "100%",
|
|
14
|
+
height: "0.75em",
|
|
15
|
+
marginBlock: "calc((1lh - 0.75em) / 2)",
|
|
16
|
+
borderRadius: "keycap",
|
|
17
|
+
},
|
|
18
|
+
"&[data-shape=circle]": {
|
|
19
|
+
width: "control.compact",
|
|
20
|
+
aspectRatio: "1",
|
|
21
|
+
borderRadius: "round",
|
|
22
|
+
},
|
|
23
|
+
"&[data-shape=square]": {
|
|
24
|
+
width: "control.compact",
|
|
25
|
+
aspectRatio: "1",
|
|
26
|
+
borderRadius: "action",
|
|
27
|
+
},
|
|
28
|
+
"&[data-shape][data-width=short]": { width: "skeleton.short" },
|
|
29
|
+
"&[data-shape][data-width=medium]": { width: "skeleton.medium" },
|
|
30
|
+
"&[data-shape][data-width=long]": { width: "skeleton.long" },
|
|
31
|
+
"&[data-shape][data-width=full]": { width: "100%" },
|
|
32
|
+
// A line of caption text, as `text` is a line of the surrounding text.
|
|
33
|
+
"&[data-shape][data-height=caption]": {
|
|
34
|
+
height: "calc(token(fontSizes.caption) * 0.75)",
|
|
35
|
+
marginBlock: "calc((1lh - token(fontSizes.caption) * 0.75) / 2)",
|
|
36
|
+
},
|
|
37
|
+
"&[data-shape][data-height=text]": {
|
|
38
|
+
height: "0.75em",
|
|
39
|
+
marginBlock: "calc((1lh - 0.75em) / 2)",
|
|
40
|
+
},
|
|
41
|
+
"&[data-shape][data-height=control]": { height: "control.default", marginBlock: "0" },
|
|
42
|
+
"&[data-shape][data-height=row]": { height: "control.field", marginBlock: "0" },
|
|
43
|
+
"&[data-shape][data-height=block]": { height: "100%", marginBlock: "0" },
|
|
44
|
+
"&[data-shape][data-height=chart], &[data-shape][data-height='chart.medium']": {
|
|
45
|
+
height: "chart.medium",
|
|
46
|
+
marginBlock: "0",
|
|
47
|
+
},
|
|
48
|
+
"&[data-shape][data-height='chart.small']": { height: "chart.small", marginBlock: "0" },
|
|
49
|
+
"&[data-shape][data-height='chart.large']": { height: "chart.large", marginBlock: "0" },
|
|
50
|
+
});
|
|
51
|
+
/**
|
|
52
|
+
* Loading placeholder with a shimmer. `block` fills its box, `text` takes one line of the
|
|
53
|
+
* surrounding text, `circle` stands in for avatars and icons, and `square` for logos and tiles. Size it with `width` (a token
|
|
54
|
+
* length, `full`, or a percentage of its box) and `height` (a line of text or caption, a control,
|
|
55
|
+
* a list row, the whole box, or a chart's height).
|
|
56
|
+
*/
|
|
57
|
+
export function Skeleton({ shape = "block", width, height, className, style, ...props }) {
|
|
58
|
+
const percent = width?.endsWith("%") ? width : undefined;
|
|
59
|
+
// A block-level span, so it is valid inside buttons, headings, and other phrasing content.
|
|
60
|
+
return (_jsx("span", { ...props, "aria-hidden": "true", "data-ciridae-ui": "", "data-shape": shape, "data-width": percent ? undefined : width, "data-height": height, style: percent ? { width: percent, ...style } : style, className: cx(skeleton, className) }));
|
|
61
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { type TableColumnMeta } from "./data-grid.js";
|
|
2
|
+
import type { ReactNode } from "react";
|
|
3
|
+
/** Stands in for a labelled group of sidebar rows: a section label, then icon-and-name rows. */
|
|
4
|
+
export declare function SidebarRowsSkeleton({ rows }: {
|
|
5
|
+
rows?: number;
|
|
6
|
+
}): import("@types/react").JSX.Element;
|
|
7
|
+
/** Stands in for a page header: optional avatar, title, meta line, and action buttons. */
|
|
8
|
+
export declare function PageHeaderSkeleton({ avatar, actions, }: {
|
|
9
|
+
avatar?: boolean;
|
|
10
|
+
actions?: number;
|
|
11
|
+
}): import("@types/react").JSX.Element;
|
|
12
|
+
/** Stands in for a panel of label-value rows. */
|
|
13
|
+
export declare function PanelSkeleton({ rows }: {
|
|
14
|
+
rows?: number;
|
|
15
|
+
}): import("@types/react").JSX.Element;
|
|
16
|
+
/** Placeholder for a row's compact edit and delete icon buttons. */
|
|
17
|
+
export declare function RowActionsSkeleton(): import("@types/react").JSX.Element;
|
|
18
|
+
/**
|
|
19
|
+
* A section's toolbar note and add button above its table header with placeholder rows, for
|
|
20
|
+
* tables whose real columns need loaded data.
|
|
21
|
+
*/
|
|
22
|
+
export declare function TableSectionSkeleton({ note, columns, }: {
|
|
23
|
+
note: ReactNode;
|
|
24
|
+
columns: {
|
|
25
|
+
header: string;
|
|
26
|
+
meta?: TableColumnMeta;
|
|
27
|
+
}[];
|
|
28
|
+
}): import("@types/react").JSX.Element;
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { css } from "#primitives/css";
|
|
3
|
+
import { createTableColumns, Table } from "./data-grid.js";
|
|
4
|
+
import { Cluster, MutedText, Stack, Text, Toolbar } from "./layout.js";
|
|
5
|
+
import { Panel, PanelHeader } from "./panel.js";
|
|
6
|
+
import { Skeleton } from "./skeleton.js";
|
|
7
|
+
// These placeholders stand in for product page chrome, so their spacing mirrors the page,
|
|
8
|
+
// panel, and sidebar layouts a Crucible screen builds around them.
|
|
9
|
+
/** Mirrors SidebarSection: its label's inset and the same gap between rows. */
|
|
10
|
+
const sidebarSection = css({ display: "grid", gap: "layout.tightGap" });
|
|
11
|
+
const sidebarLabel = css({
|
|
12
|
+
display: "flex",
|
|
13
|
+
alignItems: "center",
|
|
14
|
+
paddingInline: "control.compactInline",
|
|
15
|
+
marginBottom: "layout.controlGap",
|
|
16
|
+
fontSize: "body",
|
|
17
|
+
lineHeight: "tight",
|
|
18
|
+
});
|
|
19
|
+
const sidebarRow = css({
|
|
20
|
+
display: "flex",
|
|
21
|
+
alignItems: "center",
|
|
22
|
+
gap: "control.iconGap",
|
|
23
|
+
height: "control.compact",
|
|
24
|
+
paddingInline: "control.compactInline",
|
|
25
|
+
});
|
|
26
|
+
const pageTitle = css({ fontSize: "heading.section" });
|
|
27
|
+
const panelRow = css({
|
|
28
|
+
paddingBlock: "control.block",
|
|
29
|
+
borderTop: "1px solid token(colors.border.subtle)",
|
|
30
|
+
"&:first-of-type": { borderTop: "0" },
|
|
31
|
+
});
|
|
32
|
+
const textWidths = ["72%", "54%", "64%", "46%"];
|
|
33
|
+
/** Stands in for a labelled group of sidebar rows: a section label, then icon-and-name rows. */
|
|
34
|
+
export function SidebarRowsSkeleton({ rows = 3 }) {
|
|
35
|
+
return (_jsxs("div", { className: sidebarSection, children: [_jsx("span", { className: sidebarLabel, children: _jsx(Skeleton, { shape: "text", style: { width: 64 } }) }), Array.from({ length: rows }, (_, index) => (_jsxs("div", { className: sidebarRow, children: [_jsx(Skeleton, { shape: "circle", style: { width: 16 } }), _jsx(Skeleton, { shape: "text", style: { width: textWidths[index % textWidths.length] } })] }, index)))] }));
|
|
36
|
+
}
|
|
37
|
+
/** Stands in for a page header: optional avatar, title, meta line, and action buttons. */
|
|
38
|
+
export function PageHeaderSkeleton({ avatar = false, actions = 0, }) {
|
|
39
|
+
return (_jsxs(Toolbar, { render: _jsx("header", {}), gap: "16", justify: "between", stackOnPhone: true, children: [_jsxs(Cluster, { gap: "12", wrap: false, children: [avatar && _jsx(Skeleton, { shape: "circle", style: { width: 50 } }), _jsxs("div", { children: [_jsx("div", { className: pageTitle, children: _jsx(Skeleton, { shape: "text", style: { width: 220 } }) }), _jsx(Text, { render: _jsx("div", {}), size: "caption", children: _jsx(Skeleton, { shape: "text", style: { width: 160 } }) })] })] }), actions > 0 && (_jsx(Cluster, { gap: "12", wrap: false, children: Array.from({ length: actions }, (_, index) => (_jsx(Skeleton, { style: { width: 112, height: 38 } }, index))) }))] }));
|
|
40
|
+
}
|
|
41
|
+
/** Stands in for a panel of label-value rows. */
|
|
42
|
+
export function PanelSkeleton({ rows = 4 }) {
|
|
43
|
+
return (_jsxs(Panel, { tone: "outline", children: [_jsx(PanelHeader, { level: 2, title: _jsx(Skeleton, { shape: "text", style: { width: 120 } }) }), _jsx("div", { children: Array.from({ length: rows }, (_, index) => (_jsxs(Toolbar, { justify: "between", className: panelRow, children: [_jsx(Skeleton, { shape: "text", style: { width: 80 } }), _jsx(Skeleton, { shape: "text", style: { width: 96 + (index % 3) * 24 } })] }, index))) })] }));
|
|
44
|
+
}
|
|
45
|
+
/** Placeholder for a row's compact edit and delete icon buttons. */
|
|
46
|
+
export function RowActionsSkeleton() {
|
|
47
|
+
return (_jsxs(Cluster, { gap: "12", render: _jsx("span", {}), children: [_jsx(Skeleton, { shape: "circle", style: { width: 24 } }), _jsx(Skeleton, { shape: "circle", style: { width: 24 } })] }));
|
|
48
|
+
}
|
|
49
|
+
const placeholderColumn = createTableColumns();
|
|
50
|
+
/**
|
|
51
|
+
* A section's toolbar note and add button above its table header with placeholder rows, for
|
|
52
|
+
* tables whose real columns need loaded data.
|
|
53
|
+
*/
|
|
54
|
+
export function TableSectionSkeleton({ note, columns, }) {
|
|
55
|
+
return (_jsxs(Stack, { gap: "section", children: [_jsxs(Toolbar, { gap: "12", justify: "between", stackOnPhone: true, children: [_jsx(MutedText, { children: note }), _jsx(Skeleton, { style: { width: 128, height: 32 } })] }), _jsx(Table, { data: [], columns: placeholderColumn.columns(columns.map((column, index) => placeholderColumn.display({
|
|
56
|
+
id: String(index),
|
|
57
|
+
header: column.header,
|
|
58
|
+
meta: column.meta,
|
|
59
|
+
}))), getRowId: () => "", loading: true })] }));
|
|
60
|
+
}
|