@major-tech/ui 0.0.0-stage → 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/CHANGELOG.md +107 -0
- package/THIRD_PARTY_NOTICES.md +27 -0
- package/dist/components/accordion.d.ts +33 -0
- package/dist/components/accordion.d.ts.map +1 -0
- package/dist/components/accordion.js +51 -0
- package/dist/components/accordion.js.map +1 -0
- package/dist/components/activity-chart.d.ts +26 -0
- package/dist/components/activity-chart.d.ts.map +1 -0
- package/dist/components/activity-chart.js +56 -0
- package/dist/components/activity-chart.js.map +1 -0
- package/dist/components/alert-dialog.d.ts +28 -0
- package/dist/components/alert-dialog.d.ts.map +1 -0
- package/dist/components/alert-dialog.js +51 -0
- package/dist/components/alert-dialog.js.map +1 -0
- package/dist/components/alert.d.ts +34 -0
- package/dist/components/alert.d.ts.map +1 -0
- package/dist/components/alert.js +59 -0
- package/dist/components/alert.js.map +1 -0
- package/dist/components/ask-user-question.d.ts +103 -0
- package/dist/components/ask-user-question.d.ts.map +1 -0
- package/dist/components/ask-user-question.js +401 -0
- package/dist/components/ask-user-question.js.map +1 -0
- package/dist/components/attachment-gallery.d.ts +137 -0
- package/dist/components/attachment-gallery.d.ts.map +1 -0
- package/dist/components/attachment-gallery.js +317 -0
- package/dist/components/attachment-gallery.js.map +1 -0
- package/dist/components/avatar.d.ts +37 -0
- package/dist/components/avatar.d.ts.map +1 -0
- package/dist/components/avatar.js +62 -0
- package/dist/components/avatar.js.map +1 -0
- package/dist/components/badge.d.ts +29 -0
- package/dist/components/badge.d.ts.map +1 -0
- package/dist/components/badge.js +50 -0
- package/dist/components/badge.js.map +1 -0
- package/dist/components/brand-tile.d.ts +33 -0
- package/dist/components/brand-tile.d.ts.map +1 -0
- package/dist/components/brand-tile.js +36 -0
- package/dist/components/brand-tile.js.map +1 -0
- package/dist/components/button.d.ts +51 -0
- package/dist/components/button.d.ts.map +1 -0
- package/dist/components/button.js +90 -0
- package/dist/components/button.js.map +1 -0
- package/dist/components/calendar.d.ts +18 -0
- package/dist/components/calendar.d.ts.map +1 -0
- package/dist/components/calendar.js +78 -0
- package/dist/components/calendar.js.map +1 -0
- package/dist/components/card.d.ts +18 -0
- package/dist/components/card.d.ts.map +1 -0
- package/dist/components/card.js +34 -0
- package/dist/components/card.js.map +1 -0
- package/dist/components/carousel.d.ts +48 -0
- package/dist/components/carousel.d.ts.map +1 -0
- package/dist/components/carousel.js +227 -0
- package/dist/components/carousel.js.map +1 -0
- package/dist/components/catalog-card.d.ts +29 -0
- package/dist/components/catalog-card.d.ts.map +1 -0
- package/dist/components/catalog-card.js +20 -0
- package/dist/components/catalog-card.js.map +1 -0
- package/dist/components/chart.d.ts +118 -0
- package/dist/components/chart.d.ts.map +1 -0
- package/dist/components/chart.js +209 -0
- package/dist/components/chart.js.map +1 -0
- package/dist/components/checkbox.d.ts +8 -0
- package/dist/components/checkbox.d.ts.map +1 -0
- package/dist/components/checkbox.js +14 -0
- package/dist/components/checkbox.js.map +1 -0
- package/dist/components/chip.d.ts +68 -0
- package/dist/components/chip.d.ts.map +1 -0
- package/dist/components/chip.js +100 -0
- package/dist/components/chip.js.map +1 -0
- package/dist/components/code-block.d.ts +99 -0
- package/dist/components/code-block.d.ts.map +1 -0
- package/dist/components/code-block.js +144 -0
- package/dist/components/code-block.js.map +1 -0
- package/dist/components/collapsible.d.ts +17 -0
- package/dist/components/collapsible.d.ts.map +1 -0
- package/dist/components/collapsible.js +25 -0
- package/dist/components/collapsible.js.map +1 -0
- package/dist/components/command.d.ts +51 -0
- package/dist/components/command.d.ts.map +1 -0
- package/dist/components/command.js +120 -0
- package/dist/components/command.js.map +1 -0
- package/dist/components/composer.d.ts +211 -0
- package/dist/components/composer.d.ts.map +1 -0
- package/dist/components/composer.js +605 -0
- package/dist/components/composer.js.map +1 -0
- package/dist/components/connector-request.d.ts +63 -0
- package/dist/components/connector-request.d.ts.map +1 -0
- package/dist/components/connector-request.js +57 -0
- package/dist/components/connector-request.js.map +1 -0
- package/dist/components/context-menu.d.ts +26 -0
- package/dist/components/context-menu.d.ts.map +1 -0
- package/dist/components/context-menu.js +33 -0
- package/dist/components/context-menu.js.map +1 -0
- package/dist/components/data-table.d.ts +61 -0
- package/dist/components/data-table.d.ts.map +1 -0
- package/dist/components/data-table.js +79 -0
- package/dist/components/data-table.js.map +1 -0
- package/dist/components/date-range-picker.d.ts +54 -0
- package/dist/components/date-range-picker.d.ts.map +1 -0
- package/dist/components/date-range-picker.js +451 -0
- package/dist/components/date-range-picker.js.map +1 -0
- package/dist/components/dialog.d.ts +46 -0
- package/dist/components/dialog.d.ts.map +1 -0
- package/dist/components/dialog.js +75 -0
- package/dist/components/dialog.js.map +1 -0
- package/dist/components/drawer.d.ts +85 -0
- package/dist/components/drawer.d.ts.map +1 -0
- package/dist/components/drawer.js +166 -0
- package/dist/components/drawer.js.map +1 -0
- package/dist/components/dropdown-menu.d.ts +77 -0
- package/dist/components/dropdown-menu.d.ts.map +1 -0
- package/dist/components/dropdown-menu.js +112 -0
- package/dist/components/dropdown-menu.js.map +1 -0
- package/dist/components/editor-tabs.d.ts +49 -0
- package/dist/components/editor-tabs.d.ts.map +1 -0
- package/dist/components/editor-tabs.js +159 -0
- package/dist/components/editor-tabs.js.map +1 -0
- package/dist/components/empty-state.d.ts +21 -0
- package/dist/components/empty-state.d.ts.map +1 -0
- package/dist/components/empty-state.js +14 -0
- package/dist/components/empty-state.js.map +1 -0
- package/dist/components/entity-card.d.ts +301 -0
- package/dist/components/entity-card.d.ts.map +1 -0
- package/dist/components/entity-card.js +392 -0
- package/dist/components/entity-card.js.map +1 -0
- package/dist/components/entity-row.d.ts +37 -0
- package/dist/components/entity-row.d.ts.map +1 -0
- package/dist/components/entity-row.js +65 -0
- package/dist/components/entity-row.js.map +1 -0
- package/dist/components/env-var-request.d.ts +51 -0
- package/dist/components/env-var-request.d.ts.map +1 -0
- package/dist/components/env-var-request.js +50 -0
- package/dist/components/env-var-request.js.map +1 -0
- package/dist/components/field.d.ts +30 -0
- package/dist/components/field.d.ts.map +1 -0
- package/dist/components/field.js +48 -0
- package/dist/components/field.js.map +1 -0
- package/dist/components/file-upload.d.ts +108 -0
- package/dist/components/file-upload.d.ts.map +1 -0
- package/dist/components/file-upload.js +217 -0
- package/dist/components/file-upload.js.map +1 -0
- package/dist/components/hover-card.d.ts +18 -0
- package/dist/components/hover-card.d.ts.map +1 -0
- package/dist/components/hover-card.js +84 -0
- package/dist/components/hover-card.js.map +1 -0
- package/dist/components/input-group.d.ts +29 -0
- package/dist/components/input-group.d.ts.map +1 -0
- package/dist/components/input-group.js +61 -0
- package/dist/components/input-group.js.map +1 -0
- package/dist/components/input.d.ts +9 -0
- package/dist/components/input.d.ts.map +1 -0
- package/dist/components/input.js +13 -0
- package/dist/components/input.js.map +1 -0
- package/dist/components/island.d.ts +18 -0
- package/dist/components/island.d.ts.map +1 -0
- package/dist/components/island.js +30 -0
- package/dist/components/island.js.map +1 -0
- package/dist/components/kbd.d.ts +7 -0
- package/dist/components/kbd.d.ts.map +1 -0
- package/dist/components/kbd.js +11 -0
- package/dist/components/kbd.js.map +1 -0
- package/dist/components/label.d.ts +8 -0
- package/dist/components/label.d.ts.map +1 -0
- package/dist/components/label.js +12 -0
- package/dist/components/label.js.map +1 -0
- package/dist/components/markdown.d.ts +24 -0
- package/dist/components/markdown.d.ts.map +1 -0
- package/dist/components/markdown.js +38 -0
- package/dist/components/markdown.js.map +1 -0
- package/dist/components/message.d.ts +38 -0
- package/dist/components/message.d.ts.map +1 -0
- package/dist/components/message.js +25 -0
- package/dist/components/message.js.map +1 -0
- package/dist/components/page-header.d.ts +31 -0
- package/dist/components/page-header.d.ts.map +1 -0
- package/dist/components/page-header.js +94 -0
- package/dist/components/page-header.js.map +1 -0
- package/dist/components/pagination.d.ts +22 -0
- package/dist/components/pagination.d.ts.map +1 -0
- package/dist/components/pagination.js +36 -0
- package/dist/components/pagination.js.map +1 -0
- package/dist/components/password-input.d.ts +5 -0
- package/dist/components/password-input.d.ts.map +1 -0
- package/dist/components/password-input.js +12 -0
- package/dist/components/password-input.js.map +1 -0
- package/dist/components/pepper.d.ts +92 -0
- package/dist/components/pepper.d.ts.map +1 -0
- package/dist/components/pepper.js +1279 -0
- package/dist/components/pepper.js.map +1 -0
- package/dist/components/permission-request.d.ts +53 -0
- package/dist/components/permission-request.d.ts.map +1 -0
- package/dist/components/permission-request.js +54 -0
- package/dist/components/permission-request.js.map +1 -0
- package/dist/components/popover.d.ts +42 -0
- package/dist/components/popover.d.ts.map +1 -0
- package/dist/components/popover.js +76 -0
- package/dist/components/popover.js.map +1 -0
- package/dist/components/progress.d.ts +9 -0
- package/dist/components/progress.d.ts.map +1 -0
- package/dist/components/progress.js +12 -0
- package/dist/components/progress.js.map +1 -0
- package/dist/components/progressive-blur.d.ts +31 -0
- package/dist/components/progressive-blur.d.ts.map +1 -0
- package/dist/components/progressive-blur.js +44 -0
- package/dist/components/progressive-blur.js.map +1 -0
- package/dist/components/radio-group.d.ts +8 -0
- package/dist/components/radio-group.d.ts.map +1 -0
- package/dist/components/radio-group.js +15 -0
- package/dist/components/radio-group.js.map +1 -0
- package/dist/components/request-card.d.ts +34 -0
- package/dist/components/request-card.d.ts.map +1 -0
- package/dist/components/request-card.js +50 -0
- package/dist/components/request-card.js.map +1 -0
- package/dist/components/resizable.d.ts +24 -0
- package/dist/components/resizable.d.ts.map +1 -0
- package/dist/components/resizable.js +40 -0
- package/dist/components/resizable.js.map +1 -0
- package/dist/components/responsive-overlay.d.ts +136 -0
- package/dist/components/responsive-overlay.d.ts.map +1 -0
- package/dist/components/responsive-overlay.js +302 -0
- package/dist/components/responsive-overlay.js.map +1 -0
- package/dist/components/scroll-shadows.d.ts +11 -0
- package/dist/components/scroll-shadows.d.ts.map +1 -0
- package/dist/components/scroll-shadows.js +53 -0
- package/dist/components/scroll-shadows.js.map +1 -0
- package/dist/components/search-field.d.ts +16 -0
- package/dist/components/search-field.d.ts.map +1 -0
- package/dist/components/search-field.js +50 -0
- package/dist/components/search-field.js.map +1 -0
- package/dist/components/searchable-select.d.ts +43 -0
- package/dist/components/searchable-select.d.ts.map +1 -0
- package/dist/components/searchable-select.js +39 -0
- package/dist/components/searchable-select.js.map +1 -0
- package/dist/components/select.d.ts +60 -0
- package/dist/components/select.d.ts.map +1 -0
- package/dist/components/select.js +94 -0
- package/dist/components/select.js.map +1 -0
- package/dist/components/separator.d.ts +7 -0
- package/dist/components/separator.d.ts.map +1 -0
- package/dist/components/separator.js +12 -0
- package/dist/components/separator.js.map +1 -0
- package/dist/components/settings-section.d.ts +41 -0
- package/dist/components/settings-section.d.ts.map +1 -0
- package/dist/components/settings-section.js +50 -0
- package/dist/components/settings-section.js.map +1 -0
- package/dist/components/sidebar-item.d.ts +41 -0
- package/dist/components/sidebar-item.d.ts.map +1 -0
- package/dist/components/sidebar-item.js +59 -0
- package/dist/components/sidebar-item.js.map +1 -0
- package/dist/components/skeleton.d.ts +7 -0
- package/dist/components/skeleton.d.ts.map +1 -0
- package/dist/components/skeleton.js +11 -0
- package/dist/components/skeleton.js.map +1 -0
- package/dist/components/slider.d.ts +10 -0
- package/dist/components/slider.d.ts.map +1 -0
- package/dist/components/slider.js +36 -0
- package/dist/components/slider.js.map +1 -0
- package/dist/components/sonner.d.ts +8 -0
- package/dist/components/sonner.d.ts.map +1 -0
- package/dist/components/sonner.js +21 -0
- package/dist/components/sonner.js.map +1 -0
- package/dist/components/spinner.d.ts +7 -0
- package/dist/components/spinner.d.ts.map +1 -0
- package/dist/components/spinner.js +12 -0
- package/dist/components/spinner.js.map +1 -0
- package/dist/components/stat-strip.d.ts +20 -0
- package/dist/components/stat-strip.d.ts.map +1 -0
- package/dist/components/stat-strip.js +11 -0
- package/dist/components/stat-strip.js.map +1 -0
- package/dist/components/status-dot.d.ts +25 -0
- package/dist/components/status-dot.d.ts.map +1 -0
- package/dist/components/status-dot.js +31 -0
- package/dist/components/status-dot.js.map +1 -0
- package/dist/components/subagent-run.d.ts +27 -0
- package/dist/components/subagent-run.d.ts.map +1 -0
- package/dist/components/subagent-run.js +38 -0
- package/dist/components/subagent-run.js.map +1 -0
- package/dist/components/switch.d.ts +8 -0
- package/dist/components/switch.d.ts.map +1 -0
- package/dist/components/switch.js +13 -0
- package/dist/components/switch.js.map +1 -0
- package/dist/components/system-notice.d.ts +34 -0
- package/dist/components/system-notice.d.ts.map +1 -0
- package/dist/components/system-notice.js +52 -0
- package/dist/components/system-notice.js.map +1 -0
- package/dist/components/table.d.ts +27 -0
- package/dist/components/table.d.ts.map +1 -0
- package/dist/components/table.js +37 -0
- package/dist/components/table.js.map +1 -0
- package/dist/components/tabs.d.ts +40 -0
- package/dist/components/tabs.d.ts.map +1 -0
- package/dist/components/tabs.js +52 -0
- package/dist/components/tabs.js.map +1 -0
- package/dist/components/textarea.d.ts +5 -0
- package/dist/components/textarea.d.ts.map +1 -0
- package/dist/components/textarea.js +9 -0
- package/dist/components/textarea.js.map +1 -0
- package/dist/components/thinking-indicator.d.ts +21 -0
- package/dist/components/thinking-indicator.d.ts.map +1 -0
- package/dist/components/thinking-indicator.js +136 -0
- package/dist/components/thinking-indicator.js.map +1 -0
- package/dist/components/thread-status.d.ts +25 -0
- package/dist/components/thread-status.d.ts.map +1 -0
- package/dist/components/thread-status.js +41 -0
- package/dist/components/thread-status.js.map +1 -0
- package/dist/components/todo-list.d.ts +52 -0
- package/dist/components/todo-list.d.ts.map +1 -0
- package/dist/components/todo-list.js +137 -0
- package/dist/components/todo-list.js.map +1 -0
- package/dist/components/toggle-group.d.ts +17 -0
- package/dist/components/toggle-group.d.ts.map +1 -0
- package/dist/components/toggle-group.js +26 -0
- package/dist/components/toggle-group.js.map +1 -0
- package/dist/components/toggle.d.ts +27 -0
- package/dist/components/toggle.d.ts.map +1 -0
- package/dist/components/toggle.js +44 -0
- package/dist/components/toggle.js.map +1 -0
- package/dist/components/tool-call.d.ts +60 -0
- package/dist/components/tool-call.d.ts.map +1 -0
- package/dist/components/tool-call.js +94 -0
- package/dist/components/tool-call.js.map +1 -0
- package/dist/components/tool-result.d.ts +127 -0
- package/dist/components/tool-result.d.ts.map +1 -0
- package/dist/components/tool-result.js +155 -0
- package/dist/components/tool-result.js.map +1 -0
- package/dist/components/tooltip.d.ts +18 -0
- package/dist/components/tooltip.d.ts.map +1 -0
- package/dist/components/tooltip.js +38 -0
- package/dist/components/tooltip.js.map +1 -0
- package/dist/components/trace.d.ts +38 -0
- package/dist/components/trace.d.ts.map +1 -0
- package/dist/components/trace.js +52 -0
- package/dist/components/trace.js.map +1 -0
- package/dist/components/turn-summary.d.ts +17 -0
- package/dist/components/turn-summary.d.ts.map +1 -0
- package/dist/components/turn-summary.js +19 -0
- package/dist/components/turn-summary.js.map +1 -0
- package/dist/components/usage-meter.d.ts +16 -0
- package/dist/components/usage-meter.d.ts.map +1 -0
- package/dist/components/usage-meter.js +10 -0
- package/dist/components/usage-meter.js.map +1 -0
- package/dist/components/view-switcher.d.ts +25 -0
- package/dist/components/view-switcher.d.ts.map +1 -0
- package/dist/components/view-switcher.js +196 -0
- package/dist/components/view-switcher.js.map +1 -0
- package/dist/docs/components/accordion.md +151 -0
- package/dist/docs/components/activity-chart.md +104 -0
- package/dist/docs/components/alert-dialog.md +216 -0
- package/dist/docs/components/alert.md +203 -0
- package/dist/docs/components/ask-user-question.md +429 -0
- package/dist/docs/components/attachment-gallery.md +377 -0
- package/dist/docs/components/avatar.md +197 -0
- package/dist/docs/components/badge.md +162 -0
- package/dist/docs/components/brand-tile.md +138 -0
- package/dist/docs/components/button.md +392 -0
- package/dist/docs/components/calendar.md +113 -0
- package/dist/docs/components/card.md +157 -0
- package/dist/docs/components/carousel.md +144 -0
- package/dist/docs/components/catalog-card.md +136 -0
- package/dist/docs/components/chart.md +608 -0
- package/dist/docs/components/checkbox.md +164 -0
- package/dist/docs/components/chip.md +411 -0
- package/dist/docs/components/code-block.md +389 -0
- package/dist/docs/components/collapsible.md +93 -0
- package/dist/docs/components/command.md +276 -0
- package/dist/docs/components/composer.md +1092 -0
- package/dist/docs/components/connector-request.md +497 -0
- package/dist/docs/components/context-menu.md +127 -0
- package/dist/docs/components/data-table.md +462 -0
- package/dist/docs/components/date-range-picker.md +425 -0
- package/dist/docs/components/dialog.md +263 -0
- package/dist/docs/components/drawer.md +505 -0
- package/dist/docs/components/dropdown-menu.md +336 -0
- package/dist/docs/components/editor-tabs.md +284 -0
- package/dist/docs/components/empty-state.md +134 -0
- package/dist/docs/components/entity-card.md +640 -0
- package/dist/docs/components/entity-row.md +291 -0
- package/dist/docs/components/env-var-request.md +223 -0
- package/dist/docs/components/field.md +272 -0
- package/dist/docs/components/file-upload.md +255 -0
- package/dist/docs/components/hover-card.md +335 -0
- package/dist/docs/components/input-group.md +134 -0
- package/dist/docs/components/input.md +97 -0
- package/dist/docs/components/island.md +97 -0
- package/dist/docs/components/kbd.md +91 -0
- package/dist/docs/components/markdown.md +180 -0
- package/dist/docs/components/message.md +336 -0
- package/dist/docs/components/page-header.md +203 -0
- package/dist/docs/components/pagination.md +211 -0
- package/dist/docs/components/password-input.md +68 -0
- package/dist/docs/components/pepper.md +238 -0
- package/dist/docs/components/permission-request.md +265 -0
- package/dist/docs/components/popover.md +206 -0
- package/dist/docs/components/progress.md +142 -0
- package/dist/docs/components/progressive-blur.md +195 -0
- package/dist/docs/components/radio-group.md +129 -0
- package/dist/docs/components/request-card.md +305 -0
- package/dist/docs/components/resizable.md +318 -0
- package/dist/docs/components/responsive-overlay.md +449 -0
- package/dist/docs/components/scroll-shadows.md +161 -0
- package/dist/docs/components/search-field.md +86 -0
- package/dist/docs/components/searchable-select.md +144 -0
- package/dist/docs/components/select.md +331 -0
- package/dist/docs/components/separator.md +80 -0
- package/dist/docs/components/settings-section.md +246 -0
- package/dist/docs/components/sidebar-item.md +307 -0
- package/dist/docs/components/skeleton.md +107 -0
- package/dist/docs/components/slider.md +171 -0
- package/dist/docs/components/sonner.md +122 -0
- package/dist/docs/components/spinner.md +112 -0
- package/dist/docs/components/stat-strip.md +85 -0
- package/dist/docs/components/status-dot.md +190 -0
- package/dist/docs/components/subagent-run.md +196 -0
- package/dist/docs/components/switch.md +91 -0
- package/dist/docs/components/system-notice.md +144 -0
- package/dist/docs/components/table.md +201 -0
- package/dist/docs/components/tabs.md +233 -0
- package/dist/docs/components/textarea.md +89 -0
- package/dist/docs/components/thinking-indicator.md +164 -0
- package/dist/docs/components/thread-status.md +143 -0
- package/dist/docs/components/todo-list.md +225 -0
- package/dist/docs/components/toggle-group.md +117 -0
- package/dist/docs/components/toggle.md +132 -0
- package/dist/docs/components/tool-call.md +237 -0
- package/dist/docs/components/tool-result.md +418 -0
- package/dist/docs/components/tooltip.md +136 -0
- package/dist/docs/components/trace.md +319 -0
- package/dist/docs/components/turn-summary.md +218 -0
- package/dist/docs/components/usage-meter.md +69 -0
- package/dist/docs/components/view-switcher.md +193 -0
- package/dist/docs/foundations/colors.md +83 -0
- package/dist/docs/foundations/elevation.md +19 -0
- package/dist/docs/foundations/iconography.md +34 -0
- package/dist/docs/foundations/layout.md +42 -0
- package/dist/docs/foundations/logo.md +111 -0
- package/dist/docs/foundations/motion.md +91 -0
- package/dist/docs/foundations/radius.md +13 -0
- package/dist/docs/foundations/spacing.md +23 -0
- package/dist/docs/foundations/typography.md +42 -0
- package/dist/docs/getting-started/installation.md +116 -0
- package/dist/docs/getting-started/releases.md +59 -0
- package/dist/docs/getting-started/theming.md +58 -0
- package/dist/docs/guidelines/accessibility.md +28 -0
- package/dist/docs/guidelines/content.md +36 -0
- package/dist/docs/guidelines/forms.md +36 -0
- package/dist/docs/guidelines/principles.md +30 -0
- package/dist/docs/hooks/use-is-mobile.md +134 -0
- package/dist/docs/index.md +182 -0
- package/dist/docs/overview.md +35 -0
- package/dist/docs/patterns/chat.md +477 -0
- package/dist/docs/patterns/index.md +13 -0
- package/dist/docs/patterns/login.md +311 -0
- package/dist/docs/patterns/share.md +415 -0
- package/dist/hooks/use-is-mobile.d.ts +9 -0
- package/dist/hooks/use-is-mobile.d.ts.map +1 -0
- package/dist/hooks/use-is-mobile.js +26 -0
- package/dist/hooks/use-is-mobile.js.map +1 -0
- package/dist/lib/cn.d.ts +4 -0
- package/dist/lib/cn.d.ts.map +1 -0
- package/dist/lib/cn.js +31 -0
- package/dist/lib/cn.js.map +1 -0
- package/dist/lib/code-language.d.ts +8 -0
- package/dist/lib/code-language.d.ts.map +1 -0
- package/dist/lib/code-language.js +48 -0
- package/dist/lib/code-language.js.map +1 -0
- package/dist/lib/date-range.d.ts +122 -0
- package/dist/lib/date-range.d.ts.map +1 -0
- package/dist/lib/date-range.js +281 -0
- package/dist/lib/date-range.js.map +1 -0
- package/dist/lib/major-tokens.d.ts +40 -0
- package/dist/lib/major-tokens.d.ts.map +1 -0
- package/dist/lib/major-tokens.js +602 -0
- package/dist/lib/major-tokens.js.map +1 -0
- package/dist/lib/markdown.d.ts +25 -0
- package/dist/lib/markdown.d.ts.map +1 -0
- package/dist/lib/markdown.js +87 -0
- package/dist/lib/markdown.js.map +1 -0
- package/dist/lib/overlay-portal-branch.d.ts +6 -0
- package/dist/lib/overlay-portal-branch.d.ts.map +1 -0
- package/dist/lib/overlay-portal-branch.js +15 -0
- package/dist/lib/overlay-portal-branch.js.map +1 -0
- package/dist/lib/pepper-matcap.d.ts +2 -0
- package/dist/lib/pepper-matcap.d.ts.map +1 -0
- package/dist/lib/pepper-matcap.js +4 -0
- package/dist/lib/pepper-matcap.js.map +1 -0
- package/dist/lib/scroll-fade.d.ts +28 -0
- package/dist/lib/scroll-fade.d.ts.map +1 -0
- package/dist/lib/scroll-fade.js +57 -0
- package/dist/lib/scroll-fade.js.map +1 -0
- package/dist/tailwind.css +7 -0
- package/dist/theme.css +428 -0
- package/package.json +145 -3
- package/tokens.json +841 -0
- package/README.md +0 -3
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"popover.js","sourceRoot":"","sources":["../../src/components/popover.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,EAAE,QAAQ,EA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CAAC;AAED,MAAM,eAAe,GAAG,CAAC,KAAqB,EAAE,EAAE,CAAC,KAAK,CAAC,cAAc,EAAE,CAAC;AAe1E;;;;GAIG;AACH,MAAM,UAAU,YAAY,CAAC,EAAE,YAAY,EAAE,SAAS,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,SAAS,EAAE,QAAQ,EAAqB;IACxH,MAAM,CAAC,IAAI,CAAC,GAAG,QAAQ,CAAC,GAAG,EAAE,CAAC,SAAS,IAAI,mBAAmB,CAAC,YAAY,EAAE,EAAE,SAAS,CAAC,CAAC,CAAC;IAC3F,MAAM,MAAM,GAAG,EAAE,qBAAqB,EAAE,GAAG,EAAE,CAAC,YAAY,EAAE,IAAI,IAAI,OAAO,EAAE,EAAE,CAAC;IAEhF,MAAM,gBAAgB,GAAG,CAAC,MAAe,EAAE,EAAE;QAC3C,IAAI,CAAC,MAAM,EAAE,CAAC;YACZ,OAAO,EAAE,CAAC;QACZ,CAAC;IACH,CAAC,CAAC;IAEF,OAAO,CACL,KAAC,OAAO,IAAC,IAAI,QAAC,YAAY,EAAE,gBAAgB,YAC1C,KAAC,cAAc,IACb,IAAI,EAAE,IAAI,EACV,KAAK,EAAC,OAAO,EACb,UAAU,EAAE,eAAe,EAC3B,gBAAgB,EAAE,0BAA0B,EAC5C,MAAM,EAAE,MAAM,EACd,YAAY,EAAE,KAAK,EACnB,UAAU,EAAE,KAAK;YACjB,oGAAoG;YACpG,WAAW,EAAE,eAAe,EAC5B,KAAK,EAAE,EAAE,SAAS,EAAE,OAAO,SAAS,8BAA8B,EAAE,EACpE,SAAS,EAAE,EAAE,CAAC,mCAAmC,EAAE,SAAS,CAAC,YAE5D,QAAQ,GACM,GACT,CACX,CAAC;AACJ,CAAC","sourcesContent":["\"use client\";\n\nimport { useState, type ReactNode, type SyntheticEvent } from \"react\";\nimport { Popover as PopoverPrimitive } from \"@base-ui/react/popover\";\nimport { cn } from \"../lib/cn.ts\";\nimport { eventTargetsOverlayPortalBranch } from \"../lib/overlay-portal-branch.ts\";\n\n/**\n * Collision handling as before the move to Base UI: flip to the opposite side, slide along it to stay on screen,\n * never flip the alignment or move to another axis.\n */\nconst COLLISION_AVOIDANCE = { side: \"flip\", align: \"shift\", fallbackAxisSide: \"none\" } as const;\n\n/**\n * Root of an anchored, non-blocking surface: the publish dialog under its button, a mention's details. A click inside\n * an element marked `data-overlay-portal-branch` (a list portaled out of it) doesn't close it.\n */\nexport function Popover({ onOpenChange, ...props }: PopoverPrimitive.Root.Props) {\n const handleOpenChange: PopoverPrimitive.Root.Props[\"onOpenChange\"] = (open, eventDetails) => {\n const isOutsideReason = eventDetails.reason === \"outside-press\" || eventDetails.reason === \"focus-out\";\n\n if (!open && isOutsideReason && eventTargetsOverlayPortalBranch(eventDetails.event)) {\n eventDetails.cancel();\n return;\n }\n\n onOpenChange?.(open, eventDetails);\n };\n\n return <PopoverPrimitive.Root data-slot=\"popover\" onOpenChange={handleOpenChange} {...props} />;\n}\n\n/** Pass the anchor as `render`: `<PopoverTrigger render={<Button … />}>Publish</PopoverTrigger>`. */\nexport function PopoverTrigger(props: PopoverPrimitive.Trigger.Props) {\n return <PopoverPrimitive.Trigger data-slot=\"popover-trigger\" {...props} />;\n}\n\nexport function PopoverClose(props: PopoverPrimitive.Close.Props) {\n return <PopoverPrimitive.Close data-slot=\"popover-close\" {...props} />;\n}\n\ntype PopoverContentProps = PopoverPrimitive.Popup.Props &\n Pick<\n PopoverPrimitive.Positioner.Props,\n \"align\" | \"alignOffset\" | \"side\" | \"sideOffset\" | \"collisionPadding\" | \"collisionAvoidance\" | \"anchor\"\n >;\n\n/**\n * The sheet: `surface`, `rounded-xl`, `panel-edge` border, `shadow-pop`, 6px below its anchor. Pops in over 160ms.\n * 288px by default; size it between 320 and 460px with `className`. Padding is set by its content. `anchor` positions\n * it against something other than its trigger.\n */\nexport function PopoverContent({\n className,\n side = \"bottom\",\n sideOffset = 6,\n align = \"center\",\n alignOffset = 0,\n collisionPadding = 0,\n collisionAvoidance = COLLISION_AVOIDANCE,\n anchor,\n ...props\n}: PopoverContentProps) {\n return (\n <PopoverPrimitive.Portal>\n <PopoverPrimitive.Positioner\n side={side}\n sideOffset={sideOffset}\n align={align}\n alignOffset={alignOffset}\n collisionPadding={collisionPadding}\n collisionAvoidance={collisionAvoidance}\n anchor={anchor}\n className=\"isolate z-50\"\n >\n <PopoverPrimitive.Popup\n data-slot=\"popover-content\"\n className={cn(\n \"z-50 w-72 rounded-xl border border-panel-edge bg-surface text-ink shadow-pop outline-none data-open:animate-pop-in\",\n className\n )}\n {...props}\n />\n </PopoverPrimitive.Positioner>\n </PopoverPrimitive.Portal>\n );\n}\n\n// Keeps the sheet off the window edge, and a line's height clear of the caret.\nconst CARET_COLLISION_PADDING_PX = 8;\nconst CARET_OFFSET_PX = 4;\n\nexport const CARET_POPOVER_SIDES = {\n TOP: \"top\",\n BOTTOM: \"bottom\",\n} as const;\n\nexport type CaretPopoverSide = (typeof CARET_POPOVER_SIDES)[keyof typeof CARET_POPOVER_SIDES];\n\n// Below the caret when the whole sheet fits there, else on the roomier side.\nfunction getCaretPopoverSide(caret: DOMRect | null, maxHeight: number): CaretPopoverSide {\n if (!caret) {\n return CARET_POPOVER_SIDES.BOTTOM;\n }\n\n const spaceBelow = window.innerHeight - caret.bottom;\n const isFittingBelow = spaceBelow >= maxHeight + CARET_OFFSET_PX + CARET_COLLISION_PADDING_PX;\n\n return isFittingBelow || spaceBelow >= caret.top ? CARET_POPOVER_SIDES.BOTTOM : CARET_POPOVER_SIDES.TOP;\n}\n\nconst keepEditorFocus = (event: SyntheticEvent) => event.preventDefault();\n\nexport interface CaretPopoverProps {\n /** The caret's viewport rect, as the editor reports it (TipTap suggestion's `clientRect`). */\n getCaretRect: () => DOMRect | null;\n /** The sheet's full height in px: it opens on the side that fits it, and never grows past the room there. */\n maxHeight: number;\n /** Escape or a click outside. */\n onClose: () => void;\n /** A fixed side instead of the one that fits: the Composer's menu always opens over the conversation. */\n side?: CaretPopoverSide;\n className?: string;\n children?: ReactNode;\n}\n\n/**\n * A Popover at a text caret, for an editor's `@` and `/` menus. Mount it when the menu opens: it picks its side then,\n * below the caret when the sheet fits, and keeps it, so a list that loads or filters never flips it. Focus stays in\n * the editor, and a press inside doesn't take it away. Its content scrolls itself (`min-h-0 overflow-y-auto`).\n */\nexport function CaretPopover({ getCaretRect, maxHeight, onClose, side: fixedSide, className, children }: CaretPopoverProps) {\n const [side] = useState(() => fixedSide ?? getCaretPopoverSide(getCaretRect(), maxHeight));\n const anchor = { getBoundingClientRect: () => getCaretRect() ?? new DOMRect() };\n\n const handleOpenChange = (isOpen: boolean) => {\n if (!isOpen) {\n onClose();\n }\n };\n\n return (\n <Popover open onOpenChange={handleOpenChange}>\n <PopoverContent\n side={side}\n align=\"start\"\n sideOffset={CARET_OFFSET_PX}\n collisionPadding={CARET_COLLISION_PADDING_PX}\n anchor={anchor}\n initialFocus={false}\n finalFocus={false}\n // A press inside would otherwise blur the editor, which ends the suggestion before the click lands.\n onMouseDown={keepEditorFocus}\n style={{ maxHeight: `min(${maxHeight}px, var(--available-height))` }}\n className={cn(\"flex flex-col overflow-hidden p-0\", className)}\n >\n {children}\n </PopoverContent>\n </Popover>\n );\n}\n"]}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Progress as ProgressPrimitive } from "@base-ui/react/progress";
|
|
2
|
+
/**
|
|
3
|
+
* A 4px bar for a known amount: `secondary` track, `success` fill that eases over 600ms. A labelled meter is the
|
|
4
|
+
* UsageMeter composite; a short known sequence is a StepList; anything else is a Spinner in the control that started it.
|
|
5
|
+
*/
|
|
6
|
+
export declare function Progress({ className, value, ...props }: Omit<ProgressPrimitive.Root.Props, "value"> & {
|
|
7
|
+
value?: number | null;
|
|
8
|
+
}): import("react").JSX.Element;
|
|
9
|
+
//# sourceMappingURL=progress.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"progress.d.ts","sourceRoot":"","sources":["../../src/components/progress.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,IAAI,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAGxE;;;GAGG;AACH,wBAAgB,QAAQ,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,GAAG,KAAK,EAAE,EAAE,IAAI,CAAC,iBAAiB,CAAC,IAAI,CAAC,KAAK,EAAE,OAAO,CAAC,GAAG;IAAE,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CAAE,+BAgB/H"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
+
import { Progress as ProgressPrimitive } from "@base-ui/react/progress";
|
|
4
|
+
import { cn } from "../lib/cn.js";
|
|
5
|
+
/**
|
|
6
|
+
* A 4px bar for a known amount: `secondary` track, `success` fill that eases over 600ms. A labelled meter is the
|
|
7
|
+
* UsageMeter composite; a short known sequence is a StepList; anything else is a Spinner in the control that started it.
|
|
8
|
+
*/
|
|
9
|
+
export function Progress({ className, value, ...props }) {
|
|
10
|
+
return (_jsx(ProgressPrimitive.Root, { "data-slot": "progress", value: value ?? 0, className: cn("relative h-1 w-full overflow-hidden rounded-full bg-secondary", className), ...props, children: _jsx(ProgressPrimitive.Track, { "data-slot": "progress-track", className: "block size-full", children: _jsx(ProgressPrimitive.Indicator, { "data-slot": "progress-indicator", className: "block h-full rounded-full bg-success transition-[width] duration-600 ease-out" }) }) }));
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=progress.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"progress.js","sourceRoot":"","sources":["../../src/components/progress.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,EAAE,QAAQ,IAAI,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AACxE,OAAO,EAAE,EAAE,EAAE,MAAM,cAAc,CAAC;AAElC;;;GAGG;AACH,MAAM,UAAU,QAAQ,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,GAAG,KAAK,EAA2E;IAC9H,OAAO,CACL,KAAC,iBAAiB,CAAC,IAAI,iBACX,UAAU,EACpB,KAAK,EAAE,KAAK,IAAI,CAAC,EACjB,SAAS,EAAE,EAAE,CAAC,+DAA+D,EAAE,SAAS,CAAC,KACrF,KAAK,YAET,KAAC,iBAAiB,CAAC,KAAK,iBAAW,gBAAgB,EAAC,SAAS,EAAC,iBAAiB,YAC7E,KAAC,iBAAiB,CAAC,SAAS,iBAChB,oBAAoB,EAC9B,SAAS,EAAC,+EAA+E,GACzF,GACsB,GACH,CAC1B,CAAC;AACJ,CAAC","sourcesContent":["\"use client\";\n\nimport { Progress as ProgressPrimitive } from \"@base-ui/react/progress\";\nimport { cn } from \"../lib/cn.ts\";\n\n/**\n * A 4px bar for a known amount: `secondary` track, `success` fill that eases over 600ms. A labelled meter is the\n * UsageMeter composite; a short known sequence is a StepList; anything else is a Spinner in the control that started it.\n */\nexport function Progress({ className, value, ...props }: Omit<ProgressPrimitive.Root.Props, \"value\"> & { value?: number | null }) {\n return (\n <ProgressPrimitive.Root\n data-slot=\"progress\"\n value={value ?? 0}\n className={cn(\"relative h-1 w-full overflow-hidden rounded-full bg-secondary\", className)}\n {...props}\n >\n <ProgressPrimitive.Track data-slot=\"progress-track\" className=\"block size-full\">\n <ProgressPrimitive.Indicator\n data-slot=\"progress-indicator\"\n className=\"block h-full rounded-full bg-success transition-[width] duration-600 ease-out\"\n />\n </ProgressPrimitive.Track>\n </ProgressPrimitive.Root>\n );\n}\n"]}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { ComponentProps } from "react";
|
|
2
|
+
export declare const PROGRESSIVE_BLUR_SIDES: {
|
|
3
|
+
/** Under a header that floats over a scrolled list or transcript. */
|
|
4
|
+
readonly TOP: "top";
|
|
5
|
+
readonly RIGHT: "right";
|
|
6
|
+
/** Above what floats at the bottom: the stack over the composer. */
|
|
7
|
+
readonly BOTTOM: "bottom";
|
|
8
|
+
/** Beside a panel that slides in from the left over the page. */
|
|
9
|
+
readonly LEFT: "left";
|
|
10
|
+
};
|
|
11
|
+
type ProgressiveBlurSide = (typeof PROGRESSIVE_BLUR_SIDES)[keyof typeof PROGRESSIVE_BLUR_SIDES];
|
|
12
|
+
export interface ProgressiveBlurProps extends Omit<ComponentProps<"div">, "children" | "color"> {
|
|
13
|
+
/** The edge the blur sits against and is strongest at; it fades out away from it. */
|
|
14
|
+
side: ProgressiveBlurSide;
|
|
15
|
+
/** The surface it sits on, as its colour token (`var(--color-panel)`): the strongest edge fades from it. */
|
|
16
|
+
color: string;
|
|
17
|
+
/** How far it reaches from the edge, in px at the default text size. */
|
|
18
|
+
size?: number;
|
|
19
|
+
/** The blur at the edge, in px; each band further in has half the one before. */
|
|
20
|
+
blurMax?: number;
|
|
21
|
+
/** Stacked blur bands. More is smoother and costs more to draw. */
|
|
22
|
+
segments?: number;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* A blur that is strongest at one edge of its positioned parent and fades to nothing away from it, for content
|
|
26
|
+
* that scrolls or slides under something floating. Stacked `backdrop-filter` bands, each half as strong as the
|
|
27
|
+
* one before, with the surface's own colour over the strongest edge.
|
|
28
|
+
*/
|
|
29
|
+
export declare function ProgressiveBlur({ side, color, size, blurMax, segments, className, style, ...props }: ProgressiveBlurProps): import("react").JSX.Element;
|
|
30
|
+
export {};
|
|
31
|
+
//# sourceMappingURL=progressive-blur.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"progressive-blur.d.ts","sourceRoot":"","sources":["../../src/components/progressive-blur.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAG5C,eAAO,MAAM,sBAAsB;IACjC,qEAAqE;;;IAGrE,oEAAoE;;IAEpE,iEAAiE;;CAEzD,CAAC;AAEX,KAAK,mBAAmB,GAAG,CAAC,OAAO,sBAAsB,CAAC,CAAC,MAAM,OAAO,sBAAsB,CAAC,CAAC;AAehG,MAAM,WAAW,oBAAqB,SAAQ,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,UAAU,GAAG,OAAO,CAAC;IAC7F,qFAAqF;IACrF,IAAI,EAAE,mBAAmB,CAAC;IAC1B,4GAA4G;IAC5G,KAAK,EAAE,MAAM,CAAC;IACd,wEAAwE;IACxE,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,iFAAiF;IACjF,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,mEAAmE;IACnE,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAYD;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,EAC9B,IAAI,EACJ,KAAK,EACL,IAAS,EACT,OAAY,EACZ,QAAY,EACZ,SAAS,EACT,KAAK,EACL,GAAG,KAAK,EACT,EAAE,oBAAoB,+BA4BtB"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { cn } from "../lib/cn.js";
|
|
4
|
+
export const PROGRESSIVE_BLUR_SIDES = {
|
|
5
|
+
/** Under a header that floats over a scrolled list or transcript. */
|
|
6
|
+
TOP: "top",
|
|
7
|
+
RIGHT: "right",
|
|
8
|
+
/** Above what floats at the bottom: the stack over the composer. */
|
|
9
|
+
BOTTOM: "bottom",
|
|
10
|
+
/** Beside a panel that slides in from the left over the page. */
|
|
11
|
+
LEFT: "left",
|
|
12
|
+
};
|
|
13
|
+
/** Sizes are written in px at the browser's default text size and rendered in rem, so the band scales with it. */
|
|
14
|
+
const ROOT_FONT_SIZE_PX = 16;
|
|
15
|
+
/** How far each band's fade runs into its neighbours, as a share of a band: enough that no step shows. */
|
|
16
|
+
const BAND_OVERLAP = 0.6;
|
|
17
|
+
const SIDE_LAYOUTS = {
|
|
18
|
+
[PROGRESSIVE_BLUR_SIDES.TOP]: { anchor: "inset-x-0 top-0", fade: "to bottom", dimension: "height" },
|
|
19
|
+
[PROGRESSIVE_BLUR_SIDES.RIGHT]: { anchor: "inset-y-0 right-0", fade: "to left", dimension: "width" },
|
|
20
|
+
[PROGRESSIVE_BLUR_SIDES.BOTTOM]: { anchor: "inset-x-0 bottom-0", fade: "to top", dimension: "height" },
|
|
21
|
+
[PROGRESSIVE_BLUR_SIDES.LEFT]: { anchor: "inset-y-0 left-0", fade: "to right", dimension: "width" },
|
|
22
|
+
};
|
|
23
|
+
/** One band's mask: opaque over its share of the size, fading into its neighbours on both sides. */
|
|
24
|
+
function getBandMask(index, total, fade) {
|
|
25
|
+
const bandSize = 100 / total;
|
|
26
|
+
const start = index * bandSize;
|
|
27
|
+
const end = start + bandSize;
|
|
28
|
+
const overlap = bandSize * BAND_OVERLAP;
|
|
29
|
+
return `linear-gradient(${fade}, transparent ${Math.max(0, start - overlap)}%, black ${start}%, black ${end}%, transparent ${Math.min(100, end + overlap)}%)`;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* A blur that is strongest at one edge of its positioned parent and fades to nothing away from it, for content
|
|
33
|
+
* that scrolls or slides under something floating. Stacked `backdrop-filter` bands, each half as strong as the
|
|
34
|
+
* one before, with the surface's own colour over the strongest edge.
|
|
35
|
+
*/
|
|
36
|
+
export function ProgressiveBlur({ side, color, size = 64, blurMax = 16, segments = 8, className, style, ...props }) {
|
|
37
|
+
const { anchor, fade, dimension } = SIDE_LAYOUTS[side];
|
|
38
|
+
return (_jsxs("div", { "aria-hidden": true, "data-slot": "progressive-blur", "data-side": side, className: cn("pointer-events-none absolute", anchor, className), style: { [dimension]: `${size / ROOT_FONT_SIZE_PX}rem`, ...style }, ...props, children: [Array.from({ length: segments }, (_, index) => {
|
|
39
|
+
const blur = `blur(${blurMax * 2 ** -index}px)`;
|
|
40
|
+
const mask = getBandMask(index, segments, fade);
|
|
41
|
+
return (_jsx("div", { className: "absolute inset-0", style: { backdropFilter: blur, WebkitBackdropFilter: blur, mask, WebkitMask: mask } }, index));
|
|
42
|
+
}), _jsx("div", { className: "absolute inset-0", style: { background: `linear-gradient(${fade}, ${color}, transparent)` } })] }));
|
|
43
|
+
}
|
|
44
|
+
//# sourceMappingURL=progressive-blur.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"progressive-blur.js","sourceRoot":"","sources":["../../src/components/progressive-blur.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAGb,OAAO,EAAE,EAAE,EAAE,MAAM,cAAc,CAAC;AAElC,MAAM,CAAC,MAAM,sBAAsB,GAAG;IACpC,qEAAqE;IACrE,GAAG,EAAE,KAAK;IACV,KAAK,EAAE,OAAO;IACd,oEAAoE;IACpE,MAAM,EAAE,QAAQ;IAChB,iEAAiE;IACjE,IAAI,EAAE,MAAM;CACJ,CAAC;AAIX,kHAAkH;AAClH,MAAM,iBAAiB,GAAG,EAAE,CAAC;AAE7B,0GAA0G;AAC1G,MAAM,YAAY,GAAG,GAAG,CAAC;AAEzB,MAAM,YAAY,GAAG;IACnB,CAAC,sBAAsB,CAAC,GAAG,CAAC,EAAE,EAAE,MAAM,EAAE,iBAAiB,EAAE,IAAI,EAAE,WAAW,EAAE,SAAS,EAAE,QAAQ,EAAE;IACnG,CAAC,sBAAsB,CAAC,KAAK,CAAC,EAAE,EAAE,MAAM,EAAE,mBAAmB,EAAE,IAAI,EAAE,SAAS,EAAE,SAAS,EAAE,OAAO,EAAE;IACpG,CAAC,sBAAsB,CAAC,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,oBAAoB,EAAE,IAAI,EAAE,QAAQ,EAAE,SAAS,EAAE,QAAQ,EAAE;IACtG,CAAC,sBAAsB,CAAC,IAAI,CAAC,EAAE,EAAE,MAAM,EAAE,kBAAkB,EAAE,IAAI,EAAE,UAAU,EAAE,SAAS,EAAE,OAAO,EAAE;CACY,CAAC;AAelH,oGAAoG;AACpG,SAAS,WAAW,CAAC,KAAa,EAAE,KAAa,EAAE,IAAY;IAC7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KAAK,EAAE,EAAE,cAAc,EAAE,IAAI,EAAE,oBAAoB,EAAE,IAAI,EAAE,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE,IAF9E,KAAK,CAGV,CACH,CAAC;YACJ,CAAC,CAAC,EAEF,cAAK,SAAS,EAAC,kBAAkB,EAAC,KAAK,EAAE,EAAE,UAAU,EAAE,mBAAmB,IAAI,KAAK,KAAK,gBAAgB,EAAE,GAAI,IAC1G,CACP,CAAC;AACJ,CAAC","sourcesContent":["\"use client\";\n\nimport type { ComponentProps } from \"react\";\nimport { cn } from \"../lib/cn.ts\";\n\nexport const PROGRESSIVE_BLUR_SIDES = {\n /** Under a header that floats over a scrolled list or transcript. */\n TOP: \"top\",\n RIGHT: \"right\",\n /** Above what floats at the bottom: the stack over the composer. */\n BOTTOM: \"bottom\",\n /** Beside a panel that slides in from the left over the page. */\n LEFT: \"left\",\n} as const;\n\ntype ProgressiveBlurSide = (typeof PROGRESSIVE_BLUR_SIDES)[keyof typeof PROGRESSIVE_BLUR_SIDES];\n\n/** Sizes are written in px at the browser's default text size and rendered in rem, so the band scales with it. */\nconst ROOT_FONT_SIZE_PX = 16;\n\n/** How far each band's fade runs into its neighbours, as a share of a band: enough that no step shows. */\nconst BAND_OVERLAP = 0.6;\n\nconst SIDE_LAYOUTS = {\n [PROGRESSIVE_BLUR_SIDES.TOP]: { anchor: \"inset-x-0 top-0\", fade: \"to bottom\", dimension: \"height\" },\n [PROGRESSIVE_BLUR_SIDES.RIGHT]: { anchor: \"inset-y-0 right-0\", fade: \"to left\", dimension: \"width\" },\n [PROGRESSIVE_BLUR_SIDES.BOTTOM]: { anchor: \"inset-x-0 bottom-0\", fade: \"to top\", dimension: \"height\" },\n [PROGRESSIVE_BLUR_SIDES.LEFT]: { anchor: \"inset-y-0 left-0\", fade: \"to right\", dimension: \"width\" },\n} as const satisfies Record<ProgressiveBlurSide, { anchor: string; fade: string; dimension: \"height\" | \"width\" }>;\n\nexport interface ProgressiveBlurProps extends Omit<ComponentProps<\"div\">, \"children\" | \"color\"> {\n /** The edge the blur sits against and is strongest at; it fades out away from it. */\n side: ProgressiveBlurSide;\n /** The surface it sits on, as its colour token (`var(--color-panel)`): the strongest edge fades from it. */\n color: string;\n /** How far it reaches from the edge, in px at the default text size. */\n size?: number;\n /** The blur at the edge, in px; each band further in has half the one before. */\n blurMax?: number;\n /** Stacked blur bands. More is smoother and costs more to draw. */\n segments?: number;\n}\n\n/** One band's mask: opaque over its share of the size, fading into its neighbours on both sides. */\nfunction getBandMask(index: number, total: number, fade: string) {\n const bandSize = 100 / total;\n const start = index * bandSize;\n const end = start + bandSize;\n const overlap = bandSize * BAND_OVERLAP;\n\n return `linear-gradient(${fade}, transparent ${Math.max(0, start - overlap)}%, black ${start}%, black ${end}%, transparent ${Math.min(100, end + overlap)}%)`;\n}\n\n/**\n * A blur that is strongest at one edge of its positioned parent and fades to nothing away from it, for content\n * that scrolls or slides under something floating. Stacked `backdrop-filter` bands, each half as strong as the\n * one before, with the surface's own colour over the strongest edge.\n */\nexport function ProgressiveBlur({\n side,\n color,\n size = 64,\n blurMax = 16,\n segments = 8,\n className,\n style,\n ...props\n}: ProgressiveBlurProps) {\n const { anchor, fade, dimension } = SIDE_LAYOUTS[side];\n\n return (\n <div\n aria-hidden\n data-slot=\"progressive-blur\"\n data-side={side}\n className={cn(\"pointer-events-none absolute\", anchor, className)}\n style={{ [dimension]: `${size / ROOT_FONT_SIZE_PX}rem`, ...style }}\n {...props}\n >\n {Array.from({ length: segments }, (_, index) => {\n const blur = `blur(${blurMax * 2 ** -index}px)`;\n const mask = getBandMask(index, segments, fade);\n\n return (\n <div\n key={index}\n className=\"absolute inset-0\"\n style={{ backdropFilter: blur, WebkitBackdropFilter: blur, mask, WebkitMask: mask }}\n />\n );\n })}\n {/* The surface's colour over the strongest edge, so nothing sharp shows through while it scrolls. */}\n <div className=\"absolute inset-0\" style={{ background: `linear-gradient(${fade}, ${color}, transparent)` }} />\n </div>\n );\n}\n"]}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Radio as RadioPrimitive } from "@base-ui/react/radio";
|
|
2
|
+
import { RadioGroup as RadioGroupPrimitive } from "@base-ui/react/radio-group";
|
|
3
|
+
/** Picks exactly one of a short visible list (2 to 5). Arrow keys move between the options. */
|
|
4
|
+
declare function RadioGroup({ className, ...props }: RadioGroupPrimitive.Props<string>): import("react").JSX.Element;
|
|
5
|
+
/** One 16px circle; selected, it gets a `link` border and dot. Just the circle: label it with a horizontal `Field`. */
|
|
6
|
+
declare function RadioGroupItem({ className, ...props }: RadioPrimitive.Root.Props<string>): import("react").JSX.Element;
|
|
7
|
+
export { RadioGroup, RadioGroupItem };
|
|
8
|
+
//# sourceMappingURL=radio-group.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"radio-group.d.ts","sourceRoot":"","sources":["../../src/components/radio-group.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,IAAI,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAC/D,OAAO,EAAE,UAAU,IAAI,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAG/E,+FAA+F;AAC/F,iBAAS,UAAU,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,mBAAmB,CAAC,KAAK,CAAC,MAAM,CAAC,+BAE7E;AAED,uHAAuH;AACvH,iBAAS,cAAc,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,cAAc,CAAC,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,+BAejF;AAED,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
+
import { Radio as RadioPrimitive } from "@base-ui/react/radio";
|
|
4
|
+
import { RadioGroup as RadioGroupPrimitive } from "@base-ui/react/radio-group";
|
|
5
|
+
import { cn } from "../lib/cn.js";
|
|
6
|
+
/** Picks exactly one of a short visible list (2 to 5). Arrow keys move between the options. */
|
|
7
|
+
function RadioGroup({ className, ...props }) {
|
|
8
|
+
return _jsx(RadioGroupPrimitive, { "data-slot": "radio-group", className: cn("grid gap-space-12", className), ...props });
|
|
9
|
+
}
|
|
10
|
+
/** One 16px circle; selected, it gets a `link` border and dot. Just the circle: label it with a horizontal `Field`. */
|
|
11
|
+
function RadioGroupItem({ className, ...props }) {
|
|
12
|
+
return (_jsx(RadioPrimitive.Root, { "data-slot": "radio-group-item", className: cn("peer mt-px grid size-4 shrink-0 cursor-pointer place-items-center rounded-full border-[1.5px] border-faint bg-surface outline-none transition-colors duration-120", "hover:border-ink-2 focus-visible:ring-2 focus-visible:ring-secondary focus-visible:outline-solid focus-visible:outline-1 focus-visible:outline-faint data-checked:border-link", "data-disabled:cursor-not-allowed data-disabled:opacity-50", className), ...props, children: _jsx(RadioPrimitive.Indicator, { "data-slot": "radio-group-indicator", className: "block size-1.75 rounded-full bg-link" }) }));
|
|
13
|
+
}
|
|
14
|
+
export { RadioGroup, RadioGroupItem };
|
|
15
|
+
//# sourceMappingURL=radio-group.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"radio-group.js","sourceRoot":"","sources":["../../src/components/radio-group.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,EAAE,KAAK,IAAI,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAC/D,OAAO,EAAE,UAAU,IAAI,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAC/E,OAAO,EAAE,EAAE,EAAE,MAAM,cAAc,CAAC;AAElC,+FAA+F;AAC/F,SAAS,UAAU,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAqC;IAC5E,OAAO,KAAC,mBAAmB,iBAAW,aAAa,EAAC,SAAS,EAAE,EAAE,CAAC,mBAAmB,EAAE,SAAS,CAAC,KAAM,KAAK,GAAI,CAAC;AACnH,CAAC;AAED,uHAAuH;AACvH,SAAS,cAAc,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAqC;IAChF,OAAO,CACL,KAAC,cAAc,CAAC,IAAI,iBACR,kBAAkB,EAC5B,SAAS,EAAE,EAAE,CACX,mKAAmK,EACnK,+KAA+K,EAC/K,2DAA2D,EAC3D,SAAS,CACV,KACG,KAAK,YAET,KAAC,cAAc,CAAC,SAAS,iBAAW,uBAAuB,EAAC,SAAS,EAAC,sCAAsC,GAAG,GAC3F,CACvB,CAAC;AACJ,CAAC;AAED,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,CAAC","sourcesContent":["\"use client\";\n\nimport { Radio as RadioPrimitive } from \"@base-ui/react/radio\";\nimport { RadioGroup as RadioGroupPrimitive } from \"@base-ui/react/radio-group\";\nimport { cn } from \"../lib/cn.ts\";\n\n/** Picks exactly one of a short visible list (2 to 5). Arrow keys move between the options. */\nfunction RadioGroup({ className, ...props }: RadioGroupPrimitive.Props<string>) {\n return <RadioGroupPrimitive data-slot=\"radio-group\" className={cn(\"grid gap-space-12\", className)} {...props} />;\n}\n\n/** One 16px circle; selected, it gets a `link` border and dot. Just the circle: label it with a horizontal `Field`. */\nfunction RadioGroupItem({ className, ...props }: RadioPrimitive.Root.Props<string>) {\n return (\n <RadioPrimitive.Root\n data-slot=\"radio-group-item\"\n className={cn(\n \"peer mt-px grid size-4 shrink-0 cursor-pointer place-items-center rounded-full border-[1.5px] border-faint bg-surface outline-none transition-colors duration-120\",\n \"hover:border-ink-2 focus-visible:ring-2 focus-visible:ring-secondary focus-visible:outline-solid focus-visible:outline-1 focus-visible:outline-faint data-checked:border-link\",\n \"data-disabled:cursor-not-allowed data-disabled:opacity-50\",\n className\n )}\n {...props}\n >\n <RadioPrimitive.Indicator data-slot=\"radio-group-indicator\" className=\"block size-1.75 rounded-full bg-link\" />\n </RadioPrimitive.Root>\n );\n}\n\nexport { RadioGroup, RadioGroupItem };\n"]}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type { ComponentProps } from "react";
|
|
2
|
+
export declare const REQUEST_CARD_SIZES: {
|
|
3
|
+
/** 320px: a permission, a connector, a sign-in. */
|
|
4
|
+
readonly DEFAULT: "default";
|
|
5
|
+
/** 480px: room for code the request shows, or answers with mockups. */
|
|
6
|
+
readonly WIDE: "wide";
|
|
7
|
+
};
|
|
8
|
+
export type RequestCardSize = (typeof REQUEST_CARD_SIZES)[keyof typeof REQUEST_CARD_SIZES];
|
|
9
|
+
export type RequestCardProps = ComponentProps<"div"> & {
|
|
10
|
+
size?: RequestCardSize;
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* The frame every request Major stops on sits in, in its reply: a permission, environment variables, a connector to
|
|
14
|
+
* set up, a sign-in (AskUserQuestion draws the same frame). A `surface` card with `rounded-xl` and `shadow-card`:
|
|
15
|
+
* a RequestCardKicker, a RequestCardHeader, optional RequestCardBody content and a RequestCardFooter with the
|
|
16
|
+
* actions. Name it for assistive tech with `aria-label` (“Permission request”).
|
|
17
|
+
*/
|
|
18
|
+
export declare function RequestCard({ className, size, ...props }: RequestCardProps): import("react").JSX.Element;
|
|
19
|
+
/** The small line naming the kind of request (“Permission request”), in 12px `muted` after a 14px `faint` icon. */
|
|
20
|
+
export declare function RequestCardKicker({ className, ...props }: ComponentProps<"p">): import("react").JSX.Element;
|
|
21
|
+
/** The title and its description, 6px under the kicker (12px from the top when there is none). */
|
|
22
|
+
export declare function RequestCardHeader({ className, ...props }: ComponentProps<"div">): import("react").JSX.Element;
|
|
23
|
+
/** What Major asks for, in the card's title type: 14px semibold `ink`. */
|
|
24
|
+
export declare function RequestCardTitle({ className, ...props }: ComponentProps<"p">): import("react").JSX.Element;
|
|
25
|
+
/** Why, or what happens next, in 13px `muted`. */
|
|
26
|
+
export declare function RequestCardDescription({ className, ...props }: ComponentProps<"p">): import("react").JSX.Element;
|
|
27
|
+
/** Whatever the request shows under its header (code, fields, a connector), 12px below it, at the card's 14px inset. */
|
|
28
|
+
export declare function RequestCardBody({ className, ...props }: ComponentProps<"div">): import("react").JSX.Element;
|
|
29
|
+
/**
|
|
30
|
+
* The actions under a `line` rule, at the right: the main one last. A quiet action that stands apart (Skip, Always
|
|
31
|
+
* approve) goes first with `className="me-auto"`, so it sits at the left.
|
|
32
|
+
*/
|
|
33
|
+
export declare function RequestCardFooter({ className, ...props }: ComponentProps<"div">): import("react").JSX.Element;
|
|
34
|
+
//# sourceMappingURL=request-card.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"request-card.d.ts","sourceRoot":"","sources":["../../src/components/request-card.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAG5C,eAAO,MAAM,kBAAkB;IAC7B,mDAAmD;;IAEnD,uEAAuE;;CAE/D,CAAC;AAEX,MAAM,MAAM,eAAe,GAAG,CAAC,OAAO,kBAAkB,CAAC,CAAC,MAAM,OAAO,kBAAkB,CAAC,CAAC;AAO3F,MAAM,MAAM,gBAAgB,GAAG,cAAc,CAAC,KAAK,CAAC,GAAG;IACrD,IAAI,CAAC,EAAE,eAAe,CAAC;CACxB,CAAC;AAEF;;;;;GAKG;AACH,wBAAgB,WAAW,CAAC,EAAE,SAAS,EAAE,IAAiC,EAAE,GAAG,KAAK,EAAE,EAAE,gBAAgB,+BAUvG;AAED,mHAAmH;AACnH,wBAAgB,iBAAiB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,cAAc,CAAC,GAAG,CAAC,+BAW7E;AAED,kGAAkG;AAClG,wBAAgB,iBAAiB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,cAAc,CAAC,KAAK,CAAC,+BAQ/E;AAED,0EAA0E;AAC1E,wBAAgB,gBAAgB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,cAAc,CAAC,GAAG,CAAC,+BAI5E;AAED,kDAAkD;AAClD,wBAAgB,sBAAsB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,cAAc,CAAC,GAAG,CAAC,+BAElF;AAED,wHAAwH;AACxH,wBAAgB,eAAe,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,cAAc,CAAC,KAAK,CAAC,+BAE7E;AAED;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,cAAc,CAAC,KAAK,CAAC,+BAQ/E"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
+
import { cn } from "../lib/cn.js";
|
|
4
|
+
export const REQUEST_CARD_SIZES = {
|
|
5
|
+
/** 320px: a permission, a connector, a sign-in. */
|
|
6
|
+
DEFAULT: "default",
|
|
7
|
+
/** 480px: room for code the request shows, or answers with mockups. */
|
|
8
|
+
WIDE: "wide",
|
|
9
|
+
};
|
|
10
|
+
const SIZE_CLASSES = {
|
|
11
|
+
[REQUEST_CARD_SIZES.DEFAULT]: "w-80",
|
|
12
|
+
[REQUEST_CARD_SIZES.WIDE]: "w-120",
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* The frame every request Major stops on sits in, in its reply: a permission, environment variables, a connector to
|
|
16
|
+
* set up, a sign-in (AskUserQuestion draws the same frame). A `surface` card with `rounded-xl` and `shadow-card`:
|
|
17
|
+
* a RequestCardKicker, a RequestCardHeader, optional RequestCardBody content and a RequestCardFooter with the
|
|
18
|
+
* actions. Name it for assistive tech with `aria-label` (“Permission request”).
|
|
19
|
+
*/
|
|
20
|
+
export function RequestCard({ className, size = REQUEST_CARD_SIZES.DEFAULT, ...props }) {
|
|
21
|
+
return (_jsx("div", { role: "group", "data-slot": "request-card", "data-size": size, className: cn("max-w-full rounded-xl border border-line bg-surface font-sans shadow-card", SIZE_CLASSES[size], className), ...props }));
|
|
22
|
+
}
|
|
23
|
+
/** The small line naming the kind of request (“Permission request”), in 12px `muted` after a 14px `faint` icon. */
|
|
24
|
+
export function RequestCardKicker({ className, ...props }) {
|
|
25
|
+
return (_jsx("p", { "data-slot": "request-card-kicker", className: cn("m-0 flex items-center gap-space-6 px-space-14 pt-space-12 text-small font-medium text-muted [&>svg]:size-3.5 [&>svg]:shrink-0 [&>svg]:text-faint", className), ...props }));
|
|
26
|
+
}
|
|
27
|
+
/** The title and its description, 6px under the kicker (12px from the top when there is none). */
|
|
28
|
+
export function RequestCardHeader({ className, ...props }) {
|
|
29
|
+
return (_jsx("div", { "data-slot": "request-card-header", className: cn("flex flex-col gap-space-4 px-space-14 pt-space-6 first:pt-space-12", className), ...props }));
|
|
30
|
+
}
|
|
31
|
+
/** What Major asks for, in the card's title type: 14px semibold `ink`. */
|
|
32
|
+
export function RequestCardTitle({ className, ...props }) {
|
|
33
|
+
return (_jsx("p", { "data-slot": "request-card-title", className: cn("m-0 text-body leading-5 font-semibold text-ink", className), ...props }));
|
|
34
|
+
}
|
|
35
|
+
/** Why, or what happens next, in 13px `muted`. */
|
|
36
|
+
export function RequestCardDescription({ className, ...props }) {
|
|
37
|
+
return _jsx("p", { "data-slot": "request-card-description", className: cn("m-0 text-ui text-muted", className), ...props });
|
|
38
|
+
}
|
|
39
|
+
/** Whatever the request shows under its header (code, fields, a connector), 12px below it, at the card's 14px inset. */
|
|
40
|
+
export function RequestCardBody({ className, ...props }) {
|
|
41
|
+
return _jsx("div", { "data-slot": "request-card-body", className: cn("px-space-14 pt-space-12", className), ...props });
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* The actions under a `line` rule, at the right: the main one last. A quiet action that stands apart (Skip, Always
|
|
45
|
+
* approve) goes first with `className="me-auto"`, so it sits at the left.
|
|
46
|
+
*/
|
|
47
|
+
export function RequestCardFooter({ className, ...props }) {
|
|
48
|
+
return (_jsx("div", { "data-slot": "request-card-footer", className: cn("mt-space-12 flex items-center justify-end gap-space-8 border-t border-line px-space-14 py-space-10", className), ...props }));
|
|
49
|
+
}
|
|
50
|
+
//# sourceMappingURL=request-card.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"request-card.js","sourceRoot":"","sources":["../../src/components/request-card.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAGb,OAAO,EAAE,EAAE,EAAE,MAAM,cAAc,CAAC;AAElC,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAChC,mDAAmD;IACnD,OAAO,EAAE,SAAS;IAClB,uEAAuE;IACvE,IAAI,EAAE,MAAM;CACJ,CAAC;AAIX,MAAM,YAAY,GAAG;IACnB,CAAC,kBAAkB,CAAC,OAAO,CAAC,EAAE,MAAM;IACpC,CAAC,kBAAkB,CAAC,IAAI,CAAC,EAAE,OAAO;CACO,CAAC;AAM5C;;;;;GAKG;AACH,MAAM,UAAU,WAAW,CAAC,EAAE,SAAS,EAAE,IAAI,GAAG,kBAAkB,CAAC,OAAO,EAAE,GAAG,KAAK,EAAoB;IACtG,OAAO,CACL,cACE,IAAI,EAAC,OAAO,eACF,cAAc,eACb,IAAI,EACf,SAAS,EAAE,EAAE,CAAC,2EAA2E,EAAE,YAAY,CAAC,IAAI,CAAC,EAAE,SAAS,CAAC,KACrH,KAAK,GACT,CACH,CAAC;AACJ,CAAC;AAED,mHAAmH;AACnH,MAAM,UAAU,iBAAiB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAuB;IAC5E,OAAO,CACL,yBACY,qBAAqB,EAC/B,SAAS,EAAE,EAAE,CACX,kJAAkJ,EAClJ,SAAS,CACV,KACG,KAAK,GACT,CACH,CAAC;AACJ,CAAC;AAED,kGAAkG;AAClG,MAAM,UAAU,iBAAiB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAyB;IAC9E,OAAO,CACL,2BACY,qBAAqB,EAC/B,SAAS,EAAE,EAAE,CAAC,oEAAoE,EAAE,SAAS,CAAC,KAC1F,KAAK,GACT,CACH,CAAC;AACJ,CAAC;AAED,0EAA0E;AAC1E,MAAM,UAAU,gBAAgB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAuB;IAC3E,OAAO,CACL,yBAAa,oBAAoB,EAAC,SAAS,EAAE,EAAE,CAAC,gDAAgD,EAAE,SAAS,CAAC,KAAM,KAAK,GAAI,CAC5H,CAAC;AACJ,CAAC;AAED,kDAAkD;AAClD,MAAM,UAAU,sBAAsB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAuB;IACjF,OAAO,yBAAa,0BAA0B,EAAC,SAAS,EAAE,EAAE,CAAC,wBAAwB,EAAE,SAAS,CAAC,KAAM,KAAK,GAAI,CAAC;AACnH,CAAC;AAED,wHAAwH;AACxH,MAAM,UAAU,eAAe,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAyB;IAC5E,OAAO,2BAAe,mBAAmB,EAAC,SAAS,EAAE,EAAE,CAAC,yBAAyB,EAAE,SAAS,CAAC,KAAM,KAAK,GAAI,CAAC;AAC/G,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,iBAAiB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAyB;IAC9E,OAAO,CACL,2BACY,qBAAqB,EAC/B,SAAS,EAAE,EAAE,CAAC,oGAAoG,EAAE,SAAS,CAAC,KAC1H,KAAK,GACT,CACH,CAAC;AACJ,CAAC","sourcesContent":["\"use client\";\n\nimport type { ComponentProps } from \"react\";\nimport { cn } from \"../lib/cn.ts\";\n\nexport const REQUEST_CARD_SIZES = {\n /** 320px: a permission, a connector, a sign-in. */\n DEFAULT: \"default\",\n /** 480px: room for code the request shows, or answers with mockups. */\n WIDE: \"wide\",\n} as const;\n\nexport type RequestCardSize = (typeof REQUEST_CARD_SIZES)[keyof typeof REQUEST_CARD_SIZES];\n\nconst SIZE_CLASSES = {\n [REQUEST_CARD_SIZES.DEFAULT]: \"w-80\",\n [REQUEST_CARD_SIZES.WIDE]: \"w-120\",\n} satisfies Record<RequestCardSize, string>;\n\nexport type RequestCardProps = ComponentProps<\"div\"> & {\n size?: RequestCardSize;\n};\n\n/**\n * The frame every request Major stops on sits in, in its reply: a permission, environment variables, a connector to\n * set up, a sign-in (AskUserQuestion draws the same frame). A `surface` card with `rounded-xl` and `shadow-card`:\n * a RequestCardKicker, a RequestCardHeader, optional RequestCardBody content and a RequestCardFooter with the\n * actions. Name it for assistive tech with `aria-label` (“Permission request”).\n */\nexport function RequestCard({ className, size = REQUEST_CARD_SIZES.DEFAULT, ...props }: RequestCardProps) {\n return (\n <div\n role=\"group\"\n data-slot=\"request-card\"\n data-size={size}\n className={cn(\"max-w-full rounded-xl border border-line bg-surface font-sans shadow-card\", SIZE_CLASSES[size], className)}\n {...props}\n />\n );\n}\n\n/** The small line naming the kind of request (“Permission request”), in 12px `muted` after a 14px `faint` icon. */\nexport function RequestCardKicker({ className, ...props }: ComponentProps<\"p\">) {\n return (\n <p\n data-slot=\"request-card-kicker\"\n className={cn(\n \"m-0 flex items-center gap-space-6 px-space-14 pt-space-12 text-small font-medium text-muted [&>svg]:size-3.5 [&>svg]:shrink-0 [&>svg]:text-faint\",\n className\n )}\n {...props}\n />\n );\n}\n\n/** The title and its description, 6px under the kicker (12px from the top when there is none). */\nexport function RequestCardHeader({ className, ...props }: ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"request-card-header\"\n className={cn(\"flex flex-col gap-space-4 px-space-14 pt-space-6 first:pt-space-12\", className)}\n {...props}\n />\n );\n}\n\n/** What Major asks for, in the card's title type: 14px semibold `ink`. */\nexport function RequestCardTitle({ className, ...props }: ComponentProps<\"p\">) {\n return (\n <p data-slot=\"request-card-title\" className={cn(\"m-0 text-body leading-5 font-semibold text-ink\", className)} {...props} />\n );\n}\n\n/** Why, or what happens next, in 13px `muted`. */\nexport function RequestCardDescription({ className, ...props }: ComponentProps<\"p\">) {\n return <p data-slot=\"request-card-description\" className={cn(\"m-0 text-ui text-muted\", className)} {...props} />;\n}\n\n/** Whatever the request shows under its header (code, fields, a connector), 12px below it, at the card's 14px inset. */\nexport function RequestCardBody({ className, ...props }: ComponentProps<\"div\">) {\n return <div data-slot=\"request-card-body\" className={cn(\"px-space-14 pt-space-12\", className)} {...props} />;\n}\n\n/**\n * The actions under a `line` rule, at the right: the main one last. A quiet action that stands apart (Skip, Always\n * approve) goes first with `className=\"me-auto\"`, so it sits at the left.\n */\nexport function RequestCardFooter({ className, ...props }: ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"request-card-footer\"\n className={cn(\"mt-space-12 flex items-center justify-end gap-space-8 border-t border-line px-space-14 py-space-10\", className)}\n {...props}\n />\n );\n}\n"]}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { type GroupProps, type PanelProps, type SeparatorProps } from "react-resizable-panels";
|
|
2
|
+
/** A ref for ResizablePanel's `panelRef` (resize, collapse, expand from code), and a layout remembered in localStorage. */
|
|
3
|
+
export { useDefaultLayout, usePanelRef } from "react-resizable-panels";
|
|
4
|
+
export declare const RESIZABLE_HANDLE_VARIANTS: {
|
|
5
|
+
/** A 1px `line` rule between panes on one surface; it turns `accent` on hover, drag and focus. */
|
|
6
|
+
readonly LINE: "line";
|
|
7
|
+
/** A 4px gap between two islands, where the app background shows; a 2px accent line on hover, drag and focus. */
|
|
8
|
+
readonly GAP: "gap";
|
|
9
|
+
};
|
|
10
|
+
export type ResizableHandleVariant = (typeof RESIZABLE_HANDLE_VARIANTS)[keyof typeof RESIZABLE_HANDLE_VARIANTS];
|
|
11
|
+
/**
|
|
12
|
+
* The row (or, with `orientation="vertical"`, the column) of panels and handles. It fills its parent: the library
|
|
13
|
+
* sets its size, direction and overflow inline, so size the parent rather than the group.
|
|
14
|
+
*/
|
|
15
|
+
export declare function ResizablePanelGroup(props: GroupProps): import("react").JSX.Element;
|
|
16
|
+
/** One pane. `className` and `style` go to its inner box, which holds the content; the outer one clips it. */
|
|
17
|
+
export declare function ResizablePanel(props: PanelProps): import("react").JSX.Element;
|
|
18
|
+
export type ResizableHandleProps = SeparatorProps & {
|
|
19
|
+
/** `line` between panes on one surface, `gap` between two islands. */
|
|
20
|
+
variant?: ResizableHandleVariant;
|
|
21
|
+
};
|
|
22
|
+
/** The separator between two panels: drag it, step it with the arrow keys, double-click it to reset. */
|
|
23
|
+
export declare function ResizableHandle({ variant, className, ...props }: ResizableHandleProps): import("react").JSX.Element;
|
|
24
|
+
//# sourceMappingURL=resizable.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resizable.d.ts","sourceRoot":"","sources":["../../src/components/resizable.tsx"],"names":[],"mappings":"AAEA,OAAO,EAA2B,KAAK,UAAU,EAAE,KAAK,UAAU,EAAE,KAAK,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAMxH,2HAA2H;AAC3H,OAAO,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAEvE,eAAO,MAAM,yBAAyB;IACpC,kGAAkG;;IAElG,iHAAiH;;CAEzG,CAAC;AAEX,MAAM,MAAM,sBAAsB,GAAG,CAAC,OAAO,yBAAyB,CAAC,CAAC,MAAM,OAAO,yBAAyB,CAAC,CAAC;AAehH;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,UAAU,+BAEpD;AAED,8GAA8G;AAC9G,wBAAgB,cAAc,CAAC,KAAK,EAAE,UAAU,+BAE/C;AAED,MAAM,MAAM,oBAAoB,GAAG,cAAc,GAAG;IAClD,sEAAsE;IACtE,OAAO,CAAC,EAAE,sBAAsB,CAAC;CAClC,CAAC;AAEF,wGAAwG;AACxG,wBAAgB,eAAe,CAAC,EAC9B,OAAwC,EACxC,SAAS,EACT,GAAG,KAAK,EACT,EAAE,oBAAoB,+BAatB"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
+
import { Group, Panel, Separator } from "react-resizable-panels";
|
|
4
|
+
import { cn } from "../lib/cn.js";
|
|
5
|
+
// Panels side by side or stacked, split by a handle people drag: the web's components/ui/resizable on
|
|
6
|
+
// react-resizable-panels. Sizes are pixels when they are numbers (`defaultSize={360}`), percentages as strings ("30%").
|
|
7
|
+
/** A ref for ResizablePanel's `panelRef` (resize, collapse, expand from code), and a layout remembered in localStorage. */
|
|
8
|
+
export { useDefaultLayout, usePanelRef } from "react-resizable-panels";
|
|
9
|
+
export const RESIZABLE_HANDLE_VARIANTS = {
|
|
10
|
+
/** A 1px `line` rule between panes on one surface; it turns `accent` on hover, drag and focus. */
|
|
11
|
+
LINE: "line",
|
|
12
|
+
/** A 4px gap between two islands, where the app background shows; a 2px accent line on hover, drag and focus. */
|
|
13
|
+
GAP: "gap",
|
|
14
|
+
};
|
|
15
|
+
// The handle's aria-orientation is across its group's: "vertical" between panels side by side, "horizontal" in a
|
|
16
|
+
// vertical group. The library widens its hit area to 10px (20px on touch) and sets the cursor; `data-separator` is
|
|
17
|
+
// its state: inactive, hover, active (dragging) or disabled.
|
|
18
|
+
const HANDLE_VARIANT_CLASSES = {
|
|
19
|
+
// Both variants turn accent on hover, drag and focus: the line itself, or a 2px line in the gap. It shows a beat after
|
|
20
|
+
// the pointer arrives, so passing over doesn't flash. In the gap it also fades out over its ends (150px, or a quarter
|
|
21
|
+
// of a short split).
|
|
22
|
+
[RESIZABLE_HANDLE_VARIANTS.LINE]: "w-px bg-line transition-colors focus-visible:bg-accent data-[separator=active]:bg-accent data-[separator=hover]:bg-accent data-[separator=hover]:delay-100 aria-[orientation=horizontal]:h-px aria-[orientation=horizontal]:w-full",
|
|
23
|
+
[RESIZABLE_HANDLE_VARIANTS.GAP]: "w-1 after:absolute after:inset-y-0 after:inset-x-px after:rounded-full after:bg-accent after:opacity-0 after:transition-opacity after:[mask-image:linear-gradient(to_bottom,transparent,black_min(9.375rem,25%),black_calc(100%_-_min(9.375rem,25%)),transparent)] focus-visible:after:opacity-100 data-[separator=active]:after:opacity-100 data-[separator=hover]:after:opacity-100 data-[separator=hover]:after:delay-100 aria-[orientation=horizontal]:h-1 aria-[orientation=horizontal]:w-full aria-[orientation=horizontal]:after:inset-x-0 aria-[orientation=horizontal]:after:inset-y-px aria-[orientation=horizontal]:after:[mask-image:linear-gradient(to_right,transparent,black_min(9.375rem,25%),black_calc(100%_-_min(9.375rem,25%)),transparent)]",
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* The row (or, with `orientation="vertical"`, the column) of panels and handles. It fills its parent: the library
|
|
27
|
+
* sets its size, direction and overflow inline, so size the parent rather than the group.
|
|
28
|
+
*/
|
|
29
|
+
export function ResizablePanelGroup(props) {
|
|
30
|
+
return _jsx(Group, { "data-slot": "resizable-panel-group", ...props });
|
|
31
|
+
}
|
|
32
|
+
/** One pane. `className` and `style` go to its inner box, which holds the content; the outer one clips it. */
|
|
33
|
+
export function ResizablePanel(props) {
|
|
34
|
+
return _jsx(Panel, { "data-slot": "resizable-panel", ...props });
|
|
35
|
+
}
|
|
36
|
+
/** The separator between two panels: drag it, step it with the arrow keys, double-click it to reset. */
|
|
37
|
+
export function ResizableHandle({ variant = RESIZABLE_HANDLE_VARIANTS.LINE, className, ...props }) {
|
|
38
|
+
return (_jsx(Separator, { "data-slot": "resizable-handle", "data-variant": variant, className: cn("relative outline-hidden", HANDLE_VARIANT_CLASSES[variant], className), ...props }));
|
|
39
|
+
}
|
|
40
|
+
//# sourceMappingURL=resizable.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resizable.js","sourceRoot":"","sources":["../../src/components/resizable.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,SAAS,EAAyD,MAAM,wBAAwB,CAAC;AACxH,OAAO,EAAE,EAAE,EAAE,MAAM,cAAc,CAAC;AAElC,sGAAsG;AACtG,wHAAwH;AAExH,2HAA2H;AAC3H,OAAO,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAEvE,MAAM,CAAC,MAAM,yBAAyB,GAAG;IACvC,kGAAkG;IAClG,IAAI,EAAE,MAAM;IACZ,iHAAiH;IACjH,GAAG,EAAE,KAAK;CACF,CAAC;AAIX,iHAAiH;AACjH,mHAAmH;AACnH,6DAA6D;AAC7D,MAAM,sBAAsB,GAAG;IAC7B,uHAAuH;IACvH,sHAAsH;IACtH,qBAAqB;IACrB,CAAC,yBAAyB,CAAC,IAAI,CAAC,EAC9B,oOAAoO;IACtO,CAAC,yBAAyB,CAAC,GAAG,CAAC,EAC7B,kuBAAkuB;CACprB,CAAC;AAEnD;;;GAGG;AACH,MAAM,UAAU,mBAAmB,CAAC,KAAiB;IACnD,OAAO,KAAC,KAAK,iBAAW,uBAAuB,KAAK,KAAK,GAAI,CAAC;AAChE,CAAC;AAED,8GAA8G;AAC9G,MAAM,UAAU,cAAc,CAAC,KAAiB;IAC9C,OAAO,KAAC,KAAK,iBAAW,iBAAiB,KAAK,KAAK,GAAI,CAAC;AAC1D,CAAC;AAOD,wGAAwG;AACxG,MAAM,UAAU,eAAe,CAAC,EAC9B,OAAO,GAAG,yBAAyB,CAAC,IAAI,EACxC,SAAS,EACT,GAAG,KAAK,EACa;IACrB,OAAO,CACL,KAAC,SAAS,iBACE,kBAAkB,kBACd,OAAO,EACrB,SAAS,EAAE,EAAE,CACX,yBAAyB,EACzB,sBAAsB,CAAC,OAAO,CAAC,EAC/B,SAAS,CACV,KACG,KAAK,GACT,CACH,CAAC;AACJ,CAAC","sourcesContent":["\"use client\";\n\nimport { Group, Panel, Separator, type GroupProps, type PanelProps, type SeparatorProps } from \"react-resizable-panels\";\nimport { cn } from \"../lib/cn.ts\";\n\n// Panels side by side or stacked, split by a handle people drag: the web's components/ui/resizable on\n// react-resizable-panels. Sizes are pixels when they are numbers (`defaultSize={360}`), percentages as strings (\"30%\").\n\n/** A ref for ResizablePanel's `panelRef` (resize, collapse, expand from code), and a layout remembered in localStorage. */\nexport { useDefaultLayout, usePanelRef } from \"react-resizable-panels\";\n\nexport const RESIZABLE_HANDLE_VARIANTS = {\n /** A 1px `line` rule between panes on one surface; it turns `accent` on hover, drag and focus. */\n LINE: \"line\",\n /** A 4px gap between two islands, where the app background shows; a 2px accent line on hover, drag and focus. */\n GAP: \"gap\",\n} as const;\n\nexport type ResizableHandleVariant = (typeof RESIZABLE_HANDLE_VARIANTS)[keyof typeof RESIZABLE_HANDLE_VARIANTS];\n\n// The handle's aria-orientation is across its group's: \"vertical\" between panels side by side, \"horizontal\" in a\n// vertical group. The library widens its hit area to 10px (20px on touch) and sets the cursor; `data-separator` is\n// its state: inactive, hover, active (dragging) or disabled.\nconst HANDLE_VARIANT_CLASSES = {\n // Both variants turn accent on hover, drag and focus: the line itself, or a 2px line in the gap. It shows a beat after\n // the pointer arrives, so passing over doesn't flash. In the gap it also fades out over its ends (150px, or a quarter\n // of a short split).\n [RESIZABLE_HANDLE_VARIANTS.LINE]:\n \"w-px bg-line transition-colors focus-visible:bg-accent data-[separator=active]:bg-accent data-[separator=hover]:bg-accent data-[separator=hover]:delay-100 aria-[orientation=horizontal]:h-px aria-[orientation=horizontal]:w-full\",\n [RESIZABLE_HANDLE_VARIANTS.GAP]:\n \"w-1 after:absolute after:inset-y-0 after:inset-x-px after:rounded-full after:bg-accent after:opacity-0 after:transition-opacity after:[mask-image:linear-gradient(to_bottom,transparent,black_min(9.375rem,25%),black_calc(100%_-_min(9.375rem,25%)),transparent)] focus-visible:after:opacity-100 data-[separator=active]:after:opacity-100 data-[separator=hover]:after:opacity-100 data-[separator=hover]:after:delay-100 aria-[orientation=horizontal]:h-1 aria-[orientation=horizontal]:w-full aria-[orientation=horizontal]:after:inset-x-0 aria-[orientation=horizontal]:after:inset-y-px aria-[orientation=horizontal]:after:[mask-image:linear-gradient(to_right,transparent,black_min(9.375rem,25%),black_calc(100%_-_min(9.375rem,25%)),transparent)]\",\n} satisfies Record<ResizableHandleVariant, string>;\n\n/**\n * The row (or, with `orientation=\"vertical\"`, the column) of panels and handles. It fills its parent: the library\n * sets its size, direction and overflow inline, so size the parent rather than the group.\n */\nexport function ResizablePanelGroup(props: GroupProps) {\n return <Group data-slot=\"resizable-panel-group\" {...props} />;\n}\n\n/** One pane. `className` and `style` go to its inner box, which holds the content; the outer one clips it. */\nexport function ResizablePanel(props: PanelProps) {\n return <Panel data-slot=\"resizable-panel\" {...props} />;\n}\n\nexport type ResizableHandleProps = SeparatorProps & {\n /** `line` between panes on one surface, `gap` between two islands. */\n variant?: ResizableHandleVariant;\n};\n\n/** The separator between two panels: drag it, step it with the arrow keys, double-click it to reset. */\nexport function ResizableHandle({\n variant = RESIZABLE_HANDLE_VARIANTS.LINE,\n className,\n ...props\n}: ResizableHandleProps) {\n return (\n <Separator\n data-slot=\"resizable-handle\"\n data-variant={variant}\n className={cn(\n \"relative outline-hidden\",\n HANDLE_VARIANT_CLASSES[variant],\n className\n )}\n {...props}\n />\n );\n}\n"]}
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
import { type ComponentProps, type HTMLAttributes, type MouseEvent, type ReactElement, type ReactNode } from "react";
|
|
2
|
+
import { DROPDOWN_MENU_ITEM_VARIANTS, DropdownMenuContent } from "./dropdown-menu.tsx";
|
|
3
|
+
/** What it opens as from 768px up. Below that it is always a sheet from the bottom. */
|
|
4
|
+
export declare const RESPONSIVE_OVERLAY_DESKTOP_VARIANTS: {
|
|
5
|
+
readonly DIALOG: "dialog";
|
|
6
|
+
readonly POPOVER: "popover";
|
|
7
|
+
readonly DROPDOWN: "dropdown";
|
|
8
|
+
};
|
|
9
|
+
type DesktopVariant = (typeof RESPONSIVE_OVERLAY_DESKTOP_VARIANTS)[keyof typeof RESPONSIVE_OVERLAY_DESKTOP_VARIANTS];
|
|
10
|
+
type ItemVariant = (typeof DROPDOWN_MENU_ITEM_VARIANTS)[keyof typeof DROPDOWN_MENU_ITEM_VARIANTS];
|
|
11
|
+
export interface ResponsiveOverlayProps {
|
|
12
|
+
open?: boolean;
|
|
13
|
+
defaultOpen?: boolean;
|
|
14
|
+
onOpenChange?: (open: boolean) => void;
|
|
15
|
+
/** What it opens as from 768px up: a dialog (default), a popover or a dropdown menu. */
|
|
16
|
+
desktopVariant?: DesktopVariant;
|
|
17
|
+
modal?: boolean;
|
|
18
|
+
children?: ReactNode;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* One overlay for both widths: a Dialog, Popover or DropdownMenu from 768px up, a Drawer from the bottom below it.
|
|
22
|
+
* The parts render the matching parts of whichever it is, so a screen writes its overlay once. Open state is held
|
|
23
|
+
* here, so the overlay stays open when the window crosses 768px, and a row can close it in every form.
|
|
24
|
+
*/
|
|
25
|
+
export declare function ResponsiveOverlay({ open, defaultOpen, onOpenChange, desktopVariant, modal, children, }: ResponsiveOverlayProps): import("react").JSX.Element;
|
|
26
|
+
/** Closes the whole overlay from inside it, for a pick that isn't one of its rows (a searchable list's item). */
|
|
27
|
+
export declare function useResponsiveOverlayClose(): () => void;
|
|
28
|
+
/** Whether this part sits in the phone's sheet: the overlay's own answer, not a second viewport check. */
|
|
29
|
+
export declare function useIsInResponsiveOverlayDrawer(): boolean;
|
|
30
|
+
type ResponsiveOverlayTriggerProps = Omit<HTMLAttributes<HTMLElement>, "children"> & {
|
|
31
|
+
/** The control, as the system's triggers take it (`render={<Button />}`); its label goes in children. */
|
|
32
|
+
render: ReactElement;
|
|
33
|
+
children?: ReactNode;
|
|
34
|
+
};
|
|
35
|
+
/** The control that opens it. Props a wrapping trigger adds (a Tooltip's) pass through to it. */
|
|
36
|
+
export declare function ResponsiveOverlayTrigger({ render, children, ...props }: ResponsiveOverlayTriggerProps): import("react").JSX.Element;
|
|
37
|
+
type ContentPosition = Pick<ComponentProps<typeof DropdownMenuContent>, "align" | "side" | "sideOffset">;
|
|
38
|
+
export interface ResponsiveOverlayContentProps extends ContentPosition {
|
|
39
|
+
className?: string;
|
|
40
|
+
children?: ReactNode;
|
|
41
|
+
/** The dialog's ×. */
|
|
42
|
+
showCloseButton?: boolean;
|
|
43
|
+
/** The sheet's grab handle. */
|
|
44
|
+
showHandle?: boolean;
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* The surface. A dialog fills the width up to 512px; size it with a `w-*` (up to 512px) or an `sm:max-w-*` class. A
|
|
48
|
+
* popover pads 16px unless the className sets its own. `align`, `side` and `sideOffset` place a popover or a
|
|
49
|
+
* dropdown; the sheet ignores them and every width.
|
|
50
|
+
*/
|
|
51
|
+
export declare function ResponsiveOverlayContent({ className, children, align, side, sideOffset, showCloseButton, showHandle, }: ResponsiveOverlayContentProps): import("react").JSX.Element;
|
|
52
|
+
interface SlotProps {
|
|
53
|
+
className?: string;
|
|
54
|
+
children?: ReactNode;
|
|
55
|
+
}
|
|
56
|
+
/** The title and description. The sheet has no ×: a swipe, the dimmed page or a pick closes it. */
|
|
57
|
+
export declare function ResponsiveOverlayHeader({ className, children }: SlotProps): import("react").JSX.Element;
|
|
58
|
+
/**
|
|
59
|
+
* Names the overlay, and a submenu's sheet on a phone. In a dropdown it is the menu's label (hide it with `sr-only`
|
|
60
|
+
* where the trigger already says it); in a dropdown's submenu it is read by screen readers only, since the row
|
|
61
|
+
* beside it names it.
|
|
62
|
+
*/
|
|
63
|
+
export declare function ResponsiveOverlayTitle({ className, children }: SlotProps): import("react").JSX.Element;
|
|
64
|
+
export declare function ResponsiveOverlayDescription({ className, children }: SlotProps): import("react").JSX.Element;
|
|
65
|
+
/** The actions. In the sheet they stack full width. */
|
|
66
|
+
export declare function ResponsiveOverlayFooter({ className, children }: SlotProps): import("react").JSX.Element;
|
|
67
|
+
interface RowElementProps {
|
|
68
|
+
className?: string;
|
|
69
|
+
onClick?: (event: MouseEvent) => void;
|
|
70
|
+
}
|
|
71
|
+
export interface ResponsiveOverlayItemProps extends SlotProps {
|
|
72
|
+
/** Runs on a pick; then the whole overlay closes. Optional for a link row, which navigates on its own. */
|
|
73
|
+
onSelect?: () => void;
|
|
74
|
+
/** The element the row is drawn as (a Link), as the system's menu items take it. */
|
|
75
|
+
render?: ReactElement<RowElementProps>;
|
|
76
|
+
disabled?: boolean;
|
|
77
|
+
/** `destructive` (Delete): danger text and icon, last, after a separator. */
|
|
78
|
+
variant?: ItemVariant;
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* A row that closes the whole overlay on a pick: a menu item in the dropdown (arrow keys, typeahead), a button
|
|
82
|
+
* elsewhere. A 16px icon, then the label, as children.
|
|
83
|
+
*/
|
|
84
|
+
export declare function ResponsiveOverlayItem({ className, children, onSelect, render, disabled, variant }: ResponsiveOverlayItemProps): import("react").JSX.Element;
|
|
85
|
+
/**
|
|
86
|
+
* A section header over the rows that follow it, in every form. DropdownMenuLabel must sit inside a group; this one
|
|
87
|
+
* doesn't, so it draws the label's look itself.
|
|
88
|
+
*/
|
|
89
|
+
export declare function ResponsiveOverlayLabel({ className, children }: SlotProps): import("react").JSX.Element;
|
|
90
|
+
export declare function ResponsiveOverlaySeparator(): import("react").JSX.Element;
|
|
91
|
+
export interface ResponsiveOverlayRadioGroupProps {
|
|
92
|
+
value: string;
|
|
93
|
+
onChange: (value: string) => void;
|
|
94
|
+
children?: ReactNode;
|
|
95
|
+
}
|
|
96
|
+
/** One pick among options: the dropdown's radio items, rows with a check elsewhere. */
|
|
97
|
+
export declare function ResponsiveOverlayRadioGroup({ value, onChange, children }: ResponsiveOverlayRadioGroupProps): import("react").JSX.Element;
|
|
98
|
+
export interface ResponsiveOverlayRadioItemProps extends SlotProps {
|
|
99
|
+
value: string;
|
|
100
|
+
/** A second line in 12px `muted`, such as why the option is off. */
|
|
101
|
+
description?: ReactNode;
|
|
102
|
+
disabled?: boolean;
|
|
103
|
+
}
|
|
104
|
+
/** One option; the current one shows a `link` check on the right. A pick closes the whole overlay. */
|
|
105
|
+
export declare function ResponsiveOverlayRadioItem({ value, description, disabled, className, children }: ResponsiveOverlayRadioItemProps): import("react").JSX.Element;
|
|
106
|
+
export interface ResponsiveOverlayCheckboxItemProps extends SlotProps {
|
|
107
|
+
checked: boolean;
|
|
108
|
+
onCheckedChange: (checked: boolean) => void;
|
|
109
|
+
/** A second line in 12px `muted`, such as why the option is off. */
|
|
110
|
+
description?: ReactNode;
|
|
111
|
+
disabled?: boolean;
|
|
112
|
+
}
|
|
113
|
+
/**
|
|
114
|
+
* One of several options that can be on together (a filter's values): a `link` check on the right while it is on. A
|
|
115
|
+
* pick keeps the overlay open, so several can be ticked in one go.
|
|
116
|
+
*/
|
|
117
|
+
export declare function ResponsiveOverlayCheckboxItem({ checked, onCheckedChange, description, disabled, className, children, }: ResponsiveOverlayCheckboxItemProps): import("react").JSX.Element;
|
|
118
|
+
/**
|
|
119
|
+
* A submenu: a flyout in the dropdown, a second sheet over the first on a phone (the first steps back), a popover
|
|
120
|
+
* beside its row in a dialog or a popover.
|
|
121
|
+
*/
|
|
122
|
+
export declare function ResponsiveOverlaySub({ children }: {
|
|
123
|
+
children?: ReactNode;
|
|
124
|
+
}): import("react").JSX.Element;
|
|
125
|
+
/** The row that opens the submenu, with a `muted` chevron on the right. */
|
|
126
|
+
export declare function ResponsiveOverlaySubTrigger({ className, children }: SlotProps): import("react").JSX.Element;
|
|
127
|
+
export interface ResponsiveOverlaySubContentProps extends SlotProps {
|
|
128
|
+
sideOffset?: number;
|
|
129
|
+
}
|
|
130
|
+
/**
|
|
131
|
+
* The submenu's rows, under a ResponsiveOverlayTitle that names its sheet on a phone. A submenu's sheet is always a
|
|
132
|
+
* list of rows, padded like a menu's.
|
|
133
|
+
*/
|
|
134
|
+
export declare function ResponsiveOverlaySubContent({ className, children, sideOffset }: ResponsiveOverlaySubContentProps): import("react").JSX.Element;
|
|
135
|
+
export {};
|
|
136
|
+
//# sourceMappingURL=responsive-overlay.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"responsive-overlay.d.ts","sourceRoot":"","sources":["../../src/components/responsive-overlay.tsx"],"names":[],"mappings":"AAEA,OAAO,EAML,KAAK,cAAc,EACnB,KAAK,cAAc,EACnB,KAAK,UAAU,EACf,KAAK,YAAY,EACjB,KAAK,SAAS,EACf,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