@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,45 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
/* What to do with a list's ticked rows: the count, Clear (and Select all), then the actions. */
|
|
3
|
+
import { css, cx } from "#primitives/css";
|
|
4
|
+
import { Button } from "./button.js";
|
|
5
|
+
import { useCiridaeLocale } from "./locale.js";
|
|
6
|
+
// On a phone the actions drop under the count rather than squeezing it into a column.
|
|
7
|
+
const bar = css({
|
|
8
|
+
display: "flex",
|
|
9
|
+
alignItems: "center",
|
|
10
|
+
justifyContent: "space-between",
|
|
11
|
+
flexWrap: "wrap",
|
|
12
|
+
gap: "layout.contentGap",
|
|
13
|
+
minHeight: "56px",
|
|
14
|
+
paddingBlock: "panel.compact",
|
|
15
|
+
paddingInlineStart: "panel.comfortable",
|
|
16
|
+
paddingInlineEnd: "panel.compact",
|
|
17
|
+
border: "1px solid token(colors.border.panel)",
|
|
18
|
+
borderRadius: "action",
|
|
19
|
+
background: "bg.hover",
|
|
20
|
+
fontSize: "body",
|
|
21
|
+
fontWeight: "medium",
|
|
22
|
+
letterSpacing: "compact",
|
|
23
|
+
_light: { background: "bg.card" },
|
|
24
|
+
});
|
|
25
|
+
const leading = css({
|
|
26
|
+
display: "flex",
|
|
27
|
+
alignItems: "center",
|
|
28
|
+
gap: "layout.contentGap",
|
|
29
|
+
whiteSpace: "nowrap",
|
|
30
|
+
});
|
|
31
|
+
const actionRow = css({
|
|
32
|
+
display: "flex",
|
|
33
|
+
alignItems: "center",
|
|
34
|
+
flexWrap: "wrap",
|
|
35
|
+
gap: "layout.tightGap",
|
|
36
|
+
});
|
|
37
|
+
/**
|
|
38
|
+
* Shown in place of a list's footer while rows are ticked. `actions` are the buttons for the ticked
|
|
39
|
+
* rows; `onSelectAll` with `total` offers to tick every row the list holds, beyond the page.
|
|
40
|
+
*/
|
|
41
|
+
export function BulkActionBar({ count, onClear, actions, onSelectAll, total, labels: ownLabels, className, ...props }) {
|
|
42
|
+
const { labels: localeLabels } = useCiridaeLocale();
|
|
43
|
+
const labels = { ...localeLabels.table, ...ownLabels };
|
|
44
|
+
return (_jsxs("div", { role: "toolbar", "aria-label": labels.selectedItems, ...props, className: cx(bar, className), "data-ciridae-ui": "", children: [_jsxs("span", { className: leading, children: [labels.selectedCount(count), onSelectAll && total !== undefined && (_jsx(Button, { variant: "link", onClick: onSelectAll, children: labels.selectAllCount(total) })), _jsx(Button, { variant: "link", onClick: onClear, children: labels.clearSelection })] }), actions && _jsx("span", { className: actionRow, children: actions })] }));
|
|
45
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { type ButtonProps as BaseButtonProps } from "@base-ui/react/button";
|
|
2
|
+
import { type ReactNode } from "react";
|
|
3
|
+
import { type Hotkey } from "./hotkeys.js";
|
|
4
|
+
export type ButtonProps = Omit<BaseButtonProps, "className"> & {
|
|
5
|
+
className?: string;
|
|
6
|
+
variant?: "primary" | "secondary" | "subtle" | "ghost" | "tinted" | "secondaryDanger" | "danger" | "success"
|
|
7
|
+
/** Text-style: the words alone, set in the line around them. */
|
|
8
|
+
| "link";
|
|
9
|
+
size?: "small" | "medium" | "large";
|
|
10
|
+
fullWidth?: boolean;
|
|
11
|
+
loading?: boolean;
|
|
12
|
+
icon?: ReactNode;
|
|
13
|
+
/** The hotkey that does what the button does, shown after its label; the host binds it. */
|
|
14
|
+
shortcut?: Hotkey;
|
|
15
|
+
};
|
|
16
|
+
export declare function Button({ className, variant, size, fullWidth, loading, icon, shortcut, children, disabled, ...props }: ButtonProps): import("@types/react").JSX.Element;
|
|
17
|
+
export type DataButtonState = "idle" | "pending" | "error" | "success";
|
|
18
|
+
export type DataButtonProps = Omit<ButtonProps, "children" | "icon" | "loading"> & {
|
|
19
|
+
state: DataButtonState;
|
|
20
|
+
idleLabel: ReactNode;
|
|
21
|
+
pendingLabel?: ReactNode;
|
|
22
|
+
errorLabel?: ReactNode;
|
|
23
|
+
successLabel?: ReactNode;
|
|
24
|
+
icon?: ReactNode;
|
|
25
|
+
};
|
|
26
|
+
/** Async action button with consistent pending, retry, and completion feedback. */
|
|
27
|
+
export declare function DataButton({ state, idleLabel, pendingLabel, errorLabel, successLabel, variant, icon, disabled, ...props }: DataButtonProps): import("@types/react").JSX.Element;
|
|
28
|
+
type IconButtonSize = "compact" | "small" | "medium" | "large";
|
|
29
|
+
/**
|
|
30
|
+
* The size an `IconButton` takes where it does not set its own, so the container decides: the
|
|
31
|
+
* sidebar rail's icons are large, and the same icon shown in the phone header matches the header's
|
|
32
|
+
* small buttons.
|
|
33
|
+
*/
|
|
34
|
+
export declare const IconButtonSizeContext: import("@types/react").Context<IconButtonSize>;
|
|
35
|
+
export type IconButtonProps = Omit<BaseButtonProps, "className" | "aria-label"> & {
|
|
36
|
+
className?: string;
|
|
37
|
+
"aria-label": string;
|
|
38
|
+
size?: IconButtonSize;
|
|
39
|
+
variant?: "raised" | "ghost" | "primary";
|
|
40
|
+
/**
|
|
41
|
+
* `true` marks the button with a dot; a number shows that count, nothing at zero, and joins the
|
|
42
|
+
* button's name so assistive tech hears it too.
|
|
43
|
+
*/
|
|
44
|
+
badge?: boolean | number;
|
|
45
|
+
/**
|
|
46
|
+
* The hotkey that does what the button does, announced to assistive tech; the host binds it,
|
|
47
|
+
* and `KeyboardShortcuts` lists it.
|
|
48
|
+
*/
|
|
49
|
+
shortcut?: Hotkey;
|
|
50
|
+
};
|
|
51
|
+
export declare function IconButton({ className, size, variant, badge, shortcut, children, "aria-label": label, ...props }: IconButtonProps): import("@types/react").JSX.Element;
|
|
52
|
+
export {};
|
|
@@ -0,0 +1,272 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Button as BaseButton } from "@base-ui/react/button";
|
|
3
|
+
import { CheckCircleIcon, WarningCircleIcon } from "@phosphor-icons/react";
|
|
4
|
+
import { createContext, useContext } from "react";
|
|
5
|
+
import { css, cva, cx } from "#primitives/css";
|
|
6
|
+
import { formatForDisplay } from "./hotkeys.js";
|
|
7
|
+
import { icon as iconStyle, Spinner } from "./icon.js";
|
|
8
|
+
import { ShortcutHint } from "./keycap.js";
|
|
9
|
+
import { useCiridaeLocale } from "./locale.js";
|
|
10
|
+
const action = cva({
|
|
11
|
+
base: {
|
|
12
|
+
display: "inline-flex",
|
|
13
|
+
textDecoration: "none",
|
|
14
|
+
alignItems: "center",
|
|
15
|
+
justifyContent: "center",
|
|
16
|
+
gap: "control.iconGap",
|
|
17
|
+
border: "1px solid",
|
|
18
|
+
borderRadius: "action",
|
|
19
|
+
height: "control.default",
|
|
20
|
+
paddingInline: "control.inline",
|
|
21
|
+
fontFamily: "sans",
|
|
22
|
+
fontSize: "body",
|
|
23
|
+
fontWeight: "medium",
|
|
24
|
+
letterSpacing: "compact",
|
|
25
|
+
lineHeight: "tight",
|
|
26
|
+
cursor: "pointer",
|
|
27
|
+
transitionProperty: "translate, background, color",
|
|
28
|
+
transitionDuration: "fast",
|
|
29
|
+
_focusVisible: { focusRing: "outer" },
|
|
30
|
+
"&:disabled, &[data-disabled]": {
|
|
31
|
+
opacity: "disabled",
|
|
32
|
+
cursor: "not-allowed",
|
|
33
|
+
// A control that cannot be pressed should not look like it is waiting to be.
|
|
34
|
+
translate: "none",
|
|
35
|
+
},
|
|
36
|
+
},
|
|
37
|
+
variants: {
|
|
38
|
+
variant: {
|
|
39
|
+
// Round 2 buttons cast no shadow: each face is told apart by its fill and its edge alone.
|
|
40
|
+
primary: {
|
|
41
|
+
background: "bg.primary",
|
|
42
|
+
color: "bg.canvas",
|
|
43
|
+
_light: { color: "fg.onAccent" },
|
|
44
|
+
borderColor: "transparent",
|
|
45
|
+
_hover: { background: "bg.primaryHover" },
|
|
46
|
+
_active: { translate: "0 1px" },
|
|
47
|
+
},
|
|
48
|
+
secondary: {
|
|
49
|
+
background: "bg.raised",
|
|
50
|
+
color: "fg.primary",
|
|
51
|
+
borderColor: "transparent",
|
|
52
|
+
_hover: { background: "bg.raisedHover" },
|
|
53
|
+
_active: { translate: "0 1px" },
|
|
54
|
+
},
|
|
55
|
+
subtle: {
|
|
56
|
+
background: "bg.fill",
|
|
57
|
+
color: "fg.muted",
|
|
58
|
+
borderColor: "transparent",
|
|
59
|
+
_hover: { color: "fg.primary" },
|
|
60
|
+
_active: { translate: "0 1px" },
|
|
61
|
+
},
|
|
62
|
+
// White in dark, muted in light: the one face whose text follows the theme differently.
|
|
63
|
+
ghost: {
|
|
64
|
+
background: "transparent",
|
|
65
|
+
color: "fg.primary",
|
|
66
|
+
_light: { color: "fg.muted" },
|
|
67
|
+
borderColor: "transparent",
|
|
68
|
+
_hover: { color: "fg.primary", background: "bg.hover" },
|
|
69
|
+
},
|
|
70
|
+
// Warm glass with an amber edge and the warm accent for its text.
|
|
71
|
+
tinted: {
|
|
72
|
+
background: "bg.tinted",
|
|
73
|
+
color: "accent.yellow",
|
|
74
|
+
_light: { color: "accent.bronze" },
|
|
75
|
+
borderColor: "transparent",
|
|
76
|
+
_hover: { background: "bg.raisedHover" },
|
|
77
|
+
_active: { translate: "0 1px" },
|
|
78
|
+
},
|
|
79
|
+
// The secondary face with red text, for a destructive action that asks for confirmation:
|
|
80
|
+
// it names the risk without being the loudest thing on the page. The confirmation's own
|
|
81
|
+
// button is `danger`.
|
|
82
|
+
secondaryDanger: {
|
|
83
|
+
background: "bg.raised",
|
|
84
|
+
color: "accent.red",
|
|
85
|
+
borderColor: "transparent",
|
|
86
|
+
_hover: { background: "bg.raisedHover" },
|
|
87
|
+
_active: { translate: "0 1px" },
|
|
88
|
+
},
|
|
89
|
+
danger: {
|
|
90
|
+
background: "bg.danger",
|
|
91
|
+
color: "fg.onAccent",
|
|
92
|
+
borderColor: "transparent",
|
|
93
|
+
_hover: { filter: "brightness(1.05)" },
|
|
94
|
+
_active: { translate: "0 1px" },
|
|
95
|
+
},
|
|
96
|
+
success: {
|
|
97
|
+
background: "accent.green",
|
|
98
|
+
color: "bg.canvas",
|
|
99
|
+
borderColor: "transparent",
|
|
100
|
+
_hover: { filter: "brightness(1.05)" },
|
|
101
|
+
_active: { translate: "0 1px" },
|
|
102
|
+
},
|
|
103
|
+
// Words only, in the text around it: no face, no height, underlined on hover.
|
|
104
|
+
link: {
|
|
105
|
+
background: "transparent",
|
|
106
|
+
color: "fg.primary",
|
|
107
|
+
borderColor: "transparent",
|
|
108
|
+
borderWidth: "0",
|
|
109
|
+
fontFamily: "inherit",
|
|
110
|
+
fontWeight: "inherit",
|
|
111
|
+
letterSpacing: "inherit",
|
|
112
|
+
lineHeight: "inherit",
|
|
113
|
+
_hover: { textDecoration: "underline" },
|
|
114
|
+
},
|
|
115
|
+
},
|
|
116
|
+
size: {
|
|
117
|
+
small: {
|
|
118
|
+
height: "control.small",
|
|
119
|
+
paddingInline: "control.compactInline",
|
|
120
|
+
fontSize: "caption",
|
|
121
|
+
},
|
|
122
|
+
medium: {},
|
|
123
|
+
large: { height: "control.field", paddingInline: "control.largeInline", fontSize: "heading" },
|
|
124
|
+
},
|
|
125
|
+
fullWidth: { true: { width: "100%" } },
|
|
126
|
+
},
|
|
127
|
+
compoundVariants: [
|
|
128
|
+
{
|
|
129
|
+
variant: "link",
|
|
130
|
+
size: ["small", "medium", "large"],
|
|
131
|
+
css: { height: "auto", paddingInline: "none", fontSize: "inherit", flexShrink: "0" },
|
|
132
|
+
},
|
|
133
|
+
],
|
|
134
|
+
// Small is the everyday button; medium and large are for a page's one main action.
|
|
135
|
+
defaultVariants: { variant: "primary", size: "small" },
|
|
136
|
+
});
|
|
137
|
+
// The glass faces draw a hairline, which is their outline; a filled face draws none.
|
|
138
|
+
const buttonEdges = {
|
|
139
|
+
primary: undefined,
|
|
140
|
+
secondary: "glass",
|
|
141
|
+
subtle: "glass",
|
|
142
|
+
ghost: undefined,
|
|
143
|
+
tinted: undefined,
|
|
144
|
+
secondaryDanger: "glass",
|
|
145
|
+
danger: undefined,
|
|
146
|
+
success: undefined,
|
|
147
|
+
link: undefined,
|
|
148
|
+
};
|
|
149
|
+
// In the button's own color, quieter than its label.
|
|
150
|
+
const buttonHint = css({ color: "inherit", opacity: "0.6" });
|
|
151
|
+
export function Button({ className, variant = "primary", size = "small", fullWidth, loading, icon, shortcut, children, disabled, ...props }) {
|
|
152
|
+
return (_jsxs(BaseButton, { ...props, disabled: disabled || loading, "aria-busy": loading || undefined, className: cx(action({ variant, size, fullWidth }), className), "data-ciridae-ui": "", "data-edge": buttonEdges[variant], children: [loading ? _jsx(Spinner, { "aria-hidden": "true" }) : icon, children, shortcut && _jsx(ShortcutHint, { hotkey: shortcut, className: buttonHint })] }));
|
|
153
|
+
}
|
|
154
|
+
/** Async action button with consistent pending, retry, and completion feedback. */
|
|
155
|
+
export function DataButton({ state, idleLabel, pendingLabel, errorLabel, successLabel, variant = "primary", icon, disabled, ...props }) {
|
|
156
|
+
const { labels } = useCiridaeLocale();
|
|
157
|
+
const presentation = state === "pending"
|
|
158
|
+
? {
|
|
159
|
+
label: pendingLabel ?? labels.common.working,
|
|
160
|
+
icon: _jsx(Spinner, { "aria-hidden": "true" }),
|
|
161
|
+
variant,
|
|
162
|
+
}
|
|
163
|
+
: state === "error"
|
|
164
|
+
? {
|
|
165
|
+
label: errorLabel ?? labels.common.retry,
|
|
166
|
+
icon: _jsx(WarningCircleIcon, { className: iconStyle({ size: "small" }) }),
|
|
167
|
+
variant: "danger",
|
|
168
|
+
}
|
|
169
|
+
: state === "success"
|
|
170
|
+
? {
|
|
171
|
+
label: successLabel ?? labels.common.done,
|
|
172
|
+
icon: _jsx(CheckCircleIcon, { className: iconStyle({ size: "small" }) }),
|
|
173
|
+
variant: "success",
|
|
174
|
+
}
|
|
175
|
+
: { label: idleLabel, icon, variant };
|
|
176
|
+
return (_jsx(Button, { ...props, variant: presentation.variant, disabled: disabled || state === "success", loading: state === "pending", icon: presentation.icon, children: presentation.label }));
|
|
177
|
+
}
|
|
178
|
+
const round = cva({
|
|
179
|
+
base: {
|
|
180
|
+
textDecoration: "none",
|
|
181
|
+
position: "relative",
|
|
182
|
+
display: "inline-flex",
|
|
183
|
+
alignItems: "center",
|
|
184
|
+
justifyContent: "center",
|
|
185
|
+
padding: "none",
|
|
186
|
+
border: "1px solid transparent",
|
|
187
|
+
borderRadius: "pill",
|
|
188
|
+
color: "fg.muted",
|
|
189
|
+
background: "bg.raised",
|
|
190
|
+
cursor: "pointer",
|
|
191
|
+
flexShrink: "0",
|
|
192
|
+
transitionProperty: "translate, background, color",
|
|
193
|
+
transitionDuration: "fast",
|
|
194
|
+
_hover: { color: "fg.primary", background: "bg.raisedHover" },
|
|
195
|
+
_active: { translate: "0 1px" },
|
|
196
|
+
_focusVisible: { focusRing: "outer" },
|
|
197
|
+
"&:disabled, &[data-disabled]": {
|
|
198
|
+
opacity: "disabled",
|
|
199
|
+
cursor: "not-allowed",
|
|
200
|
+
translate: "none",
|
|
201
|
+
},
|
|
202
|
+
},
|
|
203
|
+
variants: {
|
|
204
|
+
variant: {
|
|
205
|
+
raised: {},
|
|
206
|
+
ghost: {
|
|
207
|
+
background: "transparent",
|
|
208
|
+
_hover: { background: "bg.hover" },
|
|
209
|
+
_active: { translate: "none" },
|
|
210
|
+
},
|
|
211
|
+
// The primary face as a round button: a composer's send.
|
|
212
|
+
primary: {
|
|
213
|
+
background: "bg.primary",
|
|
214
|
+
color: "bg.canvas",
|
|
215
|
+
_light: { color: "fg.onAccent" },
|
|
216
|
+
_hover: { color: "bg.canvas", background: "bg.primaryHover" },
|
|
217
|
+
},
|
|
218
|
+
},
|
|
219
|
+
size: {
|
|
220
|
+
compact: { width: "control.shortcut", height: "control.shortcut" },
|
|
221
|
+
small: { width: "control.small", height: "control.small" },
|
|
222
|
+
medium: { width: "control.compact", height: "control.compact" },
|
|
223
|
+
large: { width: "control.default", height: "control.default" },
|
|
224
|
+
},
|
|
225
|
+
},
|
|
226
|
+
defaultVariants: { size: "medium", variant: "raised" },
|
|
227
|
+
});
|
|
228
|
+
const badgeDot = css({
|
|
229
|
+
position: "absolute",
|
|
230
|
+
top: "control.block",
|
|
231
|
+
insetInlineEnd: "control.block",
|
|
232
|
+
width: "indicator.badge",
|
|
233
|
+
height: "indicator.badge",
|
|
234
|
+
borderRadius: "round",
|
|
235
|
+
background: "accent.red",
|
|
236
|
+
border: "1px solid token(colors.border.panel)",
|
|
237
|
+
boxShadow: "badge",
|
|
238
|
+
});
|
|
239
|
+
/* A count sits on the button's corner, where the dot alone would not say how many. */
|
|
240
|
+
const badgeCount = css({
|
|
241
|
+
position: "absolute",
|
|
242
|
+
top: "calc(token(spacing.layout.tightGap) * -1)",
|
|
243
|
+
insetInlineEnd: "calc(token(spacing.layout.tightGap) * -1)",
|
|
244
|
+
display: "inline-flex",
|
|
245
|
+
alignItems: "center",
|
|
246
|
+
justifyContent: "center",
|
|
247
|
+
minWidth: "indicator.count",
|
|
248
|
+
height: "indicator.count",
|
|
249
|
+
paddingInline: "layout.tightGap",
|
|
250
|
+
borderRadius: "round",
|
|
251
|
+
background: "accent.red",
|
|
252
|
+
border: "1px solid token(colors.border.panel)",
|
|
253
|
+
boxShadow: "badge",
|
|
254
|
+
color: "bg.canvas",
|
|
255
|
+
fontSize: "avatar.small",
|
|
256
|
+
fontWeight: "medium",
|
|
257
|
+
lineHeight: "1",
|
|
258
|
+
fontVariantNumeric: "tabular-nums",
|
|
259
|
+
});
|
|
260
|
+
/**
|
|
261
|
+
* The size an `IconButton` takes where it does not set its own, so the container decides: the
|
|
262
|
+
* sidebar rail's icons are large, and the same icon shown in the phone header matches the header's
|
|
263
|
+
* small buttons.
|
|
264
|
+
*/
|
|
265
|
+
export const IconButtonSizeContext = createContext("medium");
|
|
266
|
+
const iconButtonEdges = { raised: "glass", ghost: undefined, primary: undefined };
|
|
267
|
+
export function IconButton({ className, size, variant = "raised", badge, shortcut, children, "aria-label": label, ...props }) {
|
|
268
|
+
const containerSize = useContext(IconButtonSizeContext);
|
|
269
|
+
const { labels } = useCiridaeLocale();
|
|
270
|
+
const count = typeof badge === "number" && badge > 0 ? badge : 0;
|
|
271
|
+
return (_jsxs(BaseButton, { ...props, "aria-label": count > 0 ? labels.common.withCount(label, count) : label, "aria-keyshortcuts": shortcut && formatForDisplay(shortcut, { useSymbols: false }), className: cx(round({ size: size ?? containerSize, variant }), className), "data-ciridae-ui": "", "data-edge": iconButtonEdges[variant], children: [children, badge === true && _jsx("span", { className: badgeDot, "aria-hidden": "true" }), count > 0 && (_jsx("span", { className: badgeCount, "aria-hidden": "true", children: count > 99 ? "99+" : count }))] }));
|
|
272
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { type CiridaeLabels } from "./locale.js";
|
|
2
|
+
type WeekStartsOn = 0 | 1 | 2 | 3 | 4 | 5 | 6;
|
|
3
|
+
export type CalendarProps = {
|
|
4
|
+
month: Date;
|
|
5
|
+
selected?: Date;
|
|
6
|
+
onMonthChange: (month: Date) => void;
|
|
7
|
+
onSelect: (date: Date) => void;
|
|
8
|
+
/** The `CiridaeLocaleProvider`'s locale by default. */
|
|
9
|
+
locale?: string | string[];
|
|
10
|
+
weekStartsOn?: WeekStartsOn;
|
|
11
|
+
labels?: Partial<CiridaeLabels["calendar"]>;
|
|
12
|
+
};
|
|
13
|
+
export declare function Calendar({ month, selected, onMonthChange, onSelect, locale: ownLocale, weekStartsOn, labels: ownLabels, }: CalendarProps): import("@types/react").JSX.Element;
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { ArrowRightIcon } from "@phosphor-icons/react";
|
|
3
|
+
import { useEffect, useId, useMemo, useRef, useState } from "react";
|
|
4
|
+
import { css, cx } from "#primitives/css";
|
|
5
|
+
import { IconButton } from "./button.js";
|
|
6
|
+
import { directional, icon } from "./icon.js";
|
|
7
|
+
import { useCiridaeLocale } from "./locale.js";
|
|
8
|
+
const grid = css({
|
|
9
|
+
display: "grid",
|
|
10
|
+
gridTemplateColumns: "repeat(7, minmax(0, 1fr))",
|
|
11
|
+
justifyItems: "center",
|
|
12
|
+
gap: "layout.tightGap",
|
|
13
|
+
});
|
|
14
|
+
const row = css({
|
|
15
|
+
display: "grid",
|
|
16
|
+
gridColumn: "1 / -1",
|
|
17
|
+
gridTemplateColumns: "subgrid",
|
|
18
|
+
width: "100%",
|
|
19
|
+
});
|
|
20
|
+
const previousMonthIcon = css({ transform: "rotate(180deg)" });
|
|
21
|
+
const day = css({
|
|
22
|
+
width: "control.compact",
|
|
23
|
+
height: "control.compact",
|
|
24
|
+
border: "0",
|
|
25
|
+
borderRadius: "round",
|
|
26
|
+
background: "transparent",
|
|
27
|
+
color: "fg.primary",
|
|
28
|
+
cursor: "pointer",
|
|
29
|
+
transitionProperty: "background, color",
|
|
30
|
+
transitionDuration: "fast",
|
|
31
|
+
"&:hover:not(:disabled):not([aria-selected=true])": {
|
|
32
|
+
background: "bg.fill",
|
|
33
|
+
},
|
|
34
|
+
"&[aria-selected=true]": { background: "fg.primary", color: "bg.canvas" },
|
|
35
|
+
_disabled: { color: "fg.muted", opacity: "disabled", cursor: "default" },
|
|
36
|
+
_focusVisible: { focusRing: "outer" },
|
|
37
|
+
});
|
|
38
|
+
function firstDayOfMonth(date) {
|
|
39
|
+
return new Date(date.getFullYear(), date.getMonth(), 1);
|
|
40
|
+
}
|
|
41
|
+
function addDays(date, amount) {
|
|
42
|
+
const nextDate = new Date(date);
|
|
43
|
+
nextDate.setDate(nextDate.getDate() + amount);
|
|
44
|
+
return nextDate;
|
|
45
|
+
}
|
|
46
|
+
function isSameDay(first, second) {
|
|
47
|
+
return (!!first &&
|
|
48
|
+
!!second &&
|
|
49
|
+
first.getFullYear() === second.getFullYear() &&
|
|
50
|
+
first.getMonth() === second.getMonth() &&
|
|
51
|
+
first.getDate() === second.getDate());
|
|
52
|
+
}
|
|
53
|
+
function isSameMonth(first, second) {
|
|
54
|
+
return first.getFullYear() === second.getFullYear() && first.getMonth() === second.getMonth();
|
|
55
|
+
}
|
|
56
|
+
function dateKey(date) {
|
|
57
|
+
return `${date.getFullYear()}-${date.getMonth() + 1}-${date.getDate()}`;
|
|
58
|
+
}
|
|
59
|
+
function addMonths(date, amount) {
|
|
60
|
+
const targetMonth = new Date(date.getFullYear(), date.getMonth() + amount, 1);
|
|
61
|
+
const lastDay = new Date(targetMonth.getFullYear(), targetMonth.getMonth() + 1, 0).getDate();
|
|
62
|
+
return new Date(targetMonth.getFullYear(), targetMonth.getMonth(), Math.min(date.getDate(), lastDay));
|
|
63
|
+
}
|
|
64
|
+
export function Calendar({ month, selected, onMonthChange, onSelect, locale: ownLocale, weekStartsOn = 0, labels: ownLabels, }) {
|
|
65
|
+
const ciridaeLocale = useCiridaeLocale();
|
|
66
|
+
const locale = ownLocale ?? ciridaeLocale.locale;
|
|
67
|
+
const labels = { ...ciridaeLocale.labels.calendar, ...ownLabels };
|
|
68
|
+
// Under right-to-left text the days run from the right, so the arrows swap.
|
|
69
|
+
const forward = ciridaeLocale.dir === "rtl" ? "ArrowLeft" : "ArrowRight";
|
|
70
|
+
const backward = ciridaeLocale.dir === "rtl" ? "ArrowRight" : "ArrowLeft";
|
|
71
|
+
const monthLabelId = useId();
|
|
72
|
+
const monthYear = month.getFullYear();
|
|
73
|
+
const monthIndex = month.getMonth();
|
|
74
|
+
const currentMonth = useMemo(() => new Date(monthYear, monthIndex, 1), [monthIndex, monthYear]);
|
|
75
|
+
const initialFocusedDate = selected && isSameMonth(selected, currentMonth) ? selected : currentMonth;
|
|
76
|
+
const [focusedDate, setFocusedDate] = useState(initialFocusedDate);
|
|
77
|
+
const shouldMoveFocus = useRef(false);
|
|
78
|
+
const dayButtons = useRef(new Map());
|
|
79
|
+
const days = useMemo(() => {
|
|
80
|
+
const precedingDays = (currentMonth.getDay() - weekStartsOn + 7) % 7;
|
|
81
|
+
const firstVisibleDate = addDays(currentMonth, -precedingDays);
|
|
82
|
+
return Array.from({ length: 42 }, (_, index) => addDays(firstVisibleDate, index));
|
|
83
|
+
}, [currentMonth, weekStartsOn]);
|
|
84
|
+
const weekDays = useMemo(() => {
|
|
85
|
+
const sunday = new Date(2024, 0, 7);
|
|
86
|
+
return Array.from({ length: 7 }, (_, index) => addDays(sunday, weekStartsOn + index));
|
|
87
|
+
}, [weekStartsOn]);
|
|
88
|
+
useEffect(() => {
|
|
89
|
+
if (!isSameMonth(focusedDate, currentMonth)) {
|
|
90
|
+
setFocusedDate(selected && isSameMonth(selected, currentMonth) ? selected : currentMonth);
|
|
91
|
+
}
|
|
92
|
+
}, [currentMonth, focusedDate, selected]);
|
|
93
|
+
useEffect(() => {
|
|
94
|
+
if (!shouldMoveFocus.current)
|
|
95
|
+
return;
|
|
96
|
+
dayButtons.current.get(dateKey(focusedDate))?.focus();
|
|
97
|
+
shouldMoveFocus.current = false;
|
|
98
|
+
}, [currentMonth, focusedDate]);
|
|
99
|
+
function moveFocus(nextDate) {
|
|
100
|
+
shouldMoveFocus.current = true;
|
|
101
|
+
setFocusedDate(nextDate);
|
|
102
|
+
if (!isSameMonth(nextDate, currentMonth))
|
|
103
|
+
onMonthChange(firstDayOfMonth(nextDate));
|
|
104
|
+
}
|
|
105
|
+
function handleDayKeyDown(event, date) {
|
|
106
|
+
const dayOfWeek = (date.getDay() - weekStartsOn + 7) % 7;
|
|
107
|
+
const nextDate = event.key === backward
|
|
108
|
+
? addDays(date, -1)
|
|
109
|
+
: event.key === forward
|
|
110
|
+
? addDays(date, 1)
|
|
111
|
+
: event.key === "ArrowUp"
|
|
112
|
+
? addDays(date, -7)
|
|
113
|
+
: event.key === "ArrowDown"
|
|
114
|
+
? addDays(date, 7)
|
|
115
|
+
: event.key === "Home"
|
|
116
|
+
? addDays(date, -dayOfWeek)
|
|
117
|
+
: event.key === "End"
|
|
118
|
+
? addDays(date, 6 - dayOfWeek)
|
|
119
|
+
: event.key === "PageUp"
|
|
120
|
+
? addMonths(date, -1)
|
|
121
|
+
: event.key === "PageDown"
|
|
122
|
+
? addMonths(date, 1)
|
|
123
|
+
: null;
|
|
124
|
+
if (!nextDate)
|
|
125
|
+
return;
|
|
126
|
+
event.preventDefault();
|
|
127
|
+
moveFocus(nextDate);
|
|
128
|
+
}
|
|
129
|
+
const monthFormatter = new Intl.DateTimeFormat(locale, { month: "long", year: "numeric" });
|
|
130
|
+
const dayFormatter = new Intl.DateTimeFormat(locale, {
|
|
131
|
+
weekday: "long",
|
|
132
|
+
year: "numeric",
|
|
133
|
+
month: "long",
|
|
134
|
+
day: "numeric",
|
|
135
|
+
});
|
|
136
|
+
const weekDayFormatter = new Intl.DateTimeFormat(locale, { weekday: "narrow" });
|
|
137
|
+
const fullWeekDayFormatter = new Intl.DateTimeFormat(locale, { weekday: "long" });
|
|
138
|
+
return (_jsxs("section", { className: css({
|
|
139
|
+
width: "calendar.width",
|
|
140
|
+
padding: "panel.compact",
|
|
141
|
+
border: "1px solid token(colors.border.control)",
|
|
142
|
+
borderRadius: "inset",
|
|
143
|
+
background: "bg.card",
|
|
144
|
+
}), "data-ciridae-ui": "", children: [_jsxs("header", { className: css({
|
|
145
|
+
display: "flex",
|
|
146
|
+
alignItems: "center",
|
|
147
|
+
justifyContent: "space-between",
|
|
148
|
+
marginBottom: "panel.compact",
|
|
149
|
+
}), children: [_jsx(IconButton, { "aria-label": labels.previousMonth, size: "compact", type: "button", onClick: () => onMonthChange(new Date(month.getFullYear(), month.getMonth() - 1, 1)), children: _jsx(ArrowRightIcon, { className: cx(icon(), directional, previousMonthIcon) }) }), _jsx("strong", { id: monthLabelId, children: monthFormatter.format(month) }), _jsx(IconButton, { "aria-label": labels.nextMonth, size: "compact", type: "button", onClick: () => onMonthChange(new Date(month.getFullYear(), month.getMonth() + 1, 1)), children: _jsx(ArrowRightIcon, { className: cx(icon(), directional) }) })] }), _jsxs("div", { className: grid, role: "grid", "aria-labelledby": monthLabelId, children: [_jsx("div", { className: row, role: "row", children: weekDays.map((date) => (_jsx("span", { "aria-label": fullWeekDayFormatter.format(date), className: css({ textAlign: "center", color: "fg.muted", fontSize: "caption" }), role: "columnheader", children: weekDayFormatter.format(date) }, date.getDay()))) }), Array.from({ length: 6 }, (_, weekIndex) => (_jsx("div", { className: row, role: "row", children: days.slice(weekIndex * 7, weekIndex * 7 + 7).map((date) => {
|
|
150
|
+
const inCurrentMonth = isSameMonth(date, currentMonth);
|
|
151
|
+
return (_jsx("button", { type: "button", "aria-label": dayFormatter.format(date), "aria-selected": inCurrentMonth && isSameDay(date, selected), className: day, disabled: !inCurrentMonth, onClick: () => onSelect(date), onFocus: () => setFocusedDate(date), onKeyDown: (event) => handleDayKeyDown(event, date), ref: (element) => {
|
|
152
|
+
if (element)
|
|
153
|
+
dayButtons.current.set(dateKey(date), element);
|
|
154
|
+
else
|
|
155
|
+
dayButtons.current.delete(dateKey(date));
|
|
156
|
+
}, role: "gridcell", tabIndex: inCurrentMonth && isSameDay(date, focusedDate) ? 0 : -1, children: ciridaeLocale.formatNumber(date.getDate()) }, dateKey(date)));
|
|
157
|
+
}) }, weekIndex)))] })] }));
|
|
158
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
export type CenteredPageProps = {
|
|
3
|
+
/** The mark above the card: `true` for the Ciridae mark, or a product's own logo. */
|
|
4
|
+
brand?: ReactNode | true;
|
|
5
|
+
/** Across from the brand, such as a sign-out link. */
|
|
6
|
+
aside?: ReactNode;
|
|
7
|
+
/** The card's title, as the page's h1, with `description` muted under it. */
|
|
8
|
+
title?: ReactNode;
|
|
9
|
+
description?: ReactNode;
|
|
10
|
+
/** Above the card in place of the brand row, for anything else. */
|
|
11
|
+
header?: ReactNode;
|
|
12
|
+
width?: "form" | "regular" | "wide";
|
|
13
|
+
children?: ReactNode;
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* One card centered on an otherwise empty page, for flows outside the app frame such as sign-in
|
|
17
|
+
* and consent: a `brand` mark and `aside` above it, then the card's `title`, `description` and
|
|
18
|
+
* content. `form` width narrows both for a short form; `wide` suits a card holding a list whose
|
|
19
|
+
* rows carry a label, a detail, and a control.
|
|
20
|
+
*/
|
|
21
|
+
export declare function CenteredPage({ brand, aside, title, description, header, width, children, }: CenteredPageProps): import("@types/react").JSX.Element;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { css, cx } from "#primitives/css";
|
|
3
|
+
import { CiridaeMark } from "./brand-icons.js";
|
|
4
|
+
const page = css({
|
|
5
|
+
boxSizing: "border-box",
|
|
6
|
+
minHeight: "100dvh",
|
|
7
|
+
display: "flex",
|
|
8
|
+
alignItems: "center",
|
|
9
|
+
justifyContent: "center",
|
|
10
|
+
// A phone keeps a thin margin around the card rather than giving its width away.
|
|
11
|
+
padding: "panel.compact",
|
|
12
|
+
"@media(min-width: 640px)": { padding: "page.inline" },
|
|
13
|
+
background: "bg.canvas",
|
|
14
|
+
color: "fg.primary",
|
|
15
|
+
});
|
|
16
|
+
const column = css({
|
|
17
|
+
display: "flex",
|
|
18
|
+
flexDirection: "column",
|
|
19
|
+
gap: "layout.contentGap",
|
|
20
|
+
width: "100%",
|
|
21
|
+
maxWidth: "card.centered",
|
|
22
|
+
});
|
|
23
|
+
const formColumn = css({ maxWidth: "card.centeredForm" });
|
|
24
|
+
const wideColumn = css({ maxWidth: "card.centeredWide" });
|
|
25
|
+
// Lines the mark and aside up with the card's content.
|
|
26
|
+
const headerRow = css({
|
|
27
|
+
display: "flex",
|
|
28
|
+
alignItems: "center",
|
|
29
|
+
justifyContent: "space-between",
|
|
30
|
+
gap: "layout.contentGap",
|
|
31
|
+
paddingInline: "panel.roomy",
|
|
32
|
+
});
|
|
33
|
+
const brandMark = css({ width: "brand.logo", height: "brand.logo", color: "fg.primary" });
|
|
34
|
+
const content = css({ display: "flex", flexDirection: "column", gap: "layout.sectionGap" });
|
|
35
|
+
const titleGroup = css({ display: "grid", gap: "layout.tightGap" });
|
|
36
|
+
const titleText = css({ margin: "none", fontSize: "heading.section", fontWeight: "medium" });
|
|
37
|
+
const descriptionText = css({ margin: "none", color: "fg.muted", fontSize: "caption" });
|
|
38
|
+
const card = css({
|
|
39
|
+
boxSizing: "border-box",
|
|
40
|
+
width: "100%",
|
|
41
|
+
padding: "panel.roomy",
|
|
42
|
+
borderRadius: "card",
|
|
43
|
+
border: "1px solid token(colors.border.card)",
|
|
44
|
+
background: "bg.card",
|
|
45
|
+
});
|
|
46
|
+
/**
|
|
47
|
+
* One card centered on an otherwise empty page, for flows outside the app frame such as sign-in
|
|
48
|
+
* and consent: a `brand` mark and `aside` above it, then the card's `title`, `description` and
|
|
49
|
+
* content. `form` width narrows both for a short form; `wide` suits a card holding a list whose
|
|
50
|
+
* rows carry a label, a detail, and a control.
|
|
51
|
+
*/
|
|
52
|
+
export function CenteredPage({ brand, aside, title, description, header, width = "regular", children, }) {
|
|
53
|
+
const brandRow = (brand !== undefined || aside !== undefined) && (_jsxs("div", { className: headerRow, children: [brand === true ? _jsx(CiridaeMark, { className: brandMark, title: "Ciridae" }) : brand, aside] }));
|
|
54
|
+
return (_jsx("div", { className: page, "data-ciridae-ui": "", children: _jsxs("div", { className: cx(column, width === "form" && formColumn, width === "wide" && wideColumn), children: [header ?? brandRow, _jsx("div", { className: card, children: title === undefined ? (children) : (_jsxs("div", { className: content, children: [_jsxs("div", { className: titleGroup, children: [_jsx("h1", { className: titleText, children: title }), description !== undefined && _jsx("p", { className: descriptionText, children: description })] }), children] })) })] }) }));
|
|
55
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { ComponentProps } from "react";
|
|
2
|
+
/** One line on the chart: a label and its `[unixSeconds, value]` samples. */
|
|
3
|
+
export type TimeSeries = {
|
|
4
|
+
label: string;
|
|
5
|
+
points: readonly (readonly [number, number])[];
|
|
6
|
+
};
|
|
7
|
+
/**
|
|
8
|
+
* Lines over a fixed time window. Samples from different series are joined on their timestamp, so
|
|
9
|
+
* a series missing a sample leaves a gap rather than a line drawn through it.
|
|
10
|
+
*/
|
|
11
|
+
export declare function TimeSeriesChart({ series, start, end, formatValue, formatTimestamp, height, allowDecimals, className, ...props }: ComponentProps<"div"> & {
|
|
12
|
+
series: readonly TimeSeries[];
|
|
13
|
+
/** Window bounds in unix seconds; the axis spans them even where no samples fall. */
|
|
14
|
+
start: number;
|
|
15
|
+
end: number;
|
|
16
|
+
formatValue: (value: number) => string;
|
|
17
|
+
/** Optional axis and tooltip labels for a caller-owned time zone or calendar grain. */
|
|
18
|
+
formatTimestamp?: (unixSeconds: number) => string;
|
|
19
|
+
height?: number;
|
|
20
|
+
/** Disable fractional axis ticks for discrete counts such as users. */
|
|
21
|
+
allowDecimals?: boolean;
|
|
22
|
+
}): import("@types/react").JSX.Element;
|