@botiverse/raft-ui 0.51.0 → 0.52.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 +26 -0
- package/dist/components/activity-inbox/activity-inbox-shell.d.mts +12 -0
- package/dist/components/activity-inbox/activity-inbox-shell.mjs +39 -0
- package/dist/components/activity-inbox/activity-inbox-shell.recipe.mjs +14 -0
- package/dist/components/activity-inbox/activity-inbox-sidebar.d.mts +6 -0
- package/dist/components/activity-inbox/activity-inbox-sidebar.mjs +22 -0
- package/dist/components/activity-inbox/activity-inbox-sidebar.recipe.mjs +22 -0
- package/dist/components/activity-inbox/activity-inbox-toolbar.d.mts +9 -0
- package/dist/components/activity-inbox/activity-inbox-toolbar.mjs +29 -0
- package/dist/components/activity-inbox/activity-inbox-toolbar.recipe.mjs +14 -0
- package/dist/components/activity-inbox/index.d.mts +4 -0
- package/dist/components/alert-dialog/alert-dialog.d.mts +41 -0
- package/dist/components/alert-dialog/alert-dialog.mjs +163 -0
- package/dist/components/alert-dialog/index.d.mts +2 -0
- package/dist/components/announcement-dialog/announcement-dialog.d.mts +18 -0
- package/dist/components/announcement-dialog/announcement-dialog.mjs +121 -0
- package/dist/components/announcement-dialog/index.d.mts +3 -0
- package/dist/components/app-rail/app-rail.d.mts +31 -0
- package/dist/components/app-rail/app-rail.mjs +126 -0
- package/dist/components/app-rail/app-rail.recipe.mjs +47 -0
- package/dist/components/app-rail/index.d.mts +2 -0
- package/dist/components/app-shell/app-shell.d.mts +27 -0
- package/dist/components/app-shell/app-shell.mjs +217 -0
- package/dist/components/app-shell/index.d.mts +2 -0
- package/dist/components/avatar/avatar.d.mts +169 -0
- package/dist/components/avatar/avatar.mjs +298 -0
- package/dist/components/avatar/index.d.mts +2 -0
- package/dist/components/badge/badge.d.mts +89 -0
- package/dist/components/badge/badge.mjs +203 -0
- package/dist/components/badge/index.d.mts +2 -0
- package/dist/components/banner/banner.d.mts +141 -0
- package/dist/components/banner/banner.mjs +228 -0
- package/dist/components/banner/index.d.mts +2 -0
- package/dist/components/button/button.d.mts +257 -0
- package/dist/components/button/button.mjs +177 -0
- package/dist/components/button/index.d.mts +2 -0
- package/dist/components/card/card.d.mts +21 -0
- package/dist/components/card/card.mjs +114 -0
- package/dist/components/card/card.recipe.d.mts +105 -0
- package/dist/components/card/card.recipe.mjs +67 -0
- package/dist/components/card/index.d.mts +2 -0
- package/dist/components/checkbox/checkbox-indicator.d.mts +92 -0
- package/dist/components/checkbox/checkbox-indicator.mjs +61 -0
- package/dist/components/checkbox/checkbox.d.mts +9 -0
- package/dist/components/checkbox/checkbox.mjs +40 -0
- package/dist/components/checkbox/index.d.mts +3 -0
- package/dist/components/choice-list/choice-list.d.mts +103 -0
- package/dist/components/choice-list/choice-list.mjs +301 -0
- package/dist/components/choice-list/choice-list.recipe.mjs +44 -0
- package/dist/components/choice-list/index.d.mts +2 -0
- package/dist/components/code-block/code-block.d.mts +30 -0
- package/dist/components/code-block/code-block.mjs +151 -0
- package/dist/components/code-block/code-block.recipe.mjs +47 -0
- package/dist/components/code-block/index.d.mts +2 -0
- package/dist/components/combobox/combobox.d.mts +69 -0
- package/dist/components/combobox/combobox.mjs +438 -0
- package/dist/components/combobox/index.d.mts +2 -0
- package/dist/components/combobox-select/combobox-select.d.mts +4 -0
- package/dist/components/combobox-select/combobox-select.list-side.mjs +16 -0
- package/dist/components/combobox-select/combobox-select.mjs +473 -0
- package/dist/components/combobox-select/combobox-select.options.mjs +21 -0
- package/dist/components/combobox-select/combobox-select.types.d.mts +83 -0
- package/dist/components/combobox-select/index.d.mts +3 -0
- package/dist/components/comment/comment-card.d.mts +40 -0
- package/dist/components/comment/comment-card.mjs +83 -0
- package/dist/components/comment/comment-entry.d.mts +24 -0
- package/dist/components/comment/comment-entry.mjs +75 -0
- package/dist/components/comment/comment-highlight.d.mts +18 -0
- package/dist/components/comment/comment-highlight.mjs +33 -0
- package/dist/components/comment/comment-margin-layout.d.mts +32 -0
- package/dist/components/comment/comment-margin-layout.mjs +44 -0
- package/dist/components/comment/comment-margin.d.mts +29 -0
- package/dist/components/comment/comment-margin.mjs +164 -0
- package/dist/components/comment/comment-marker.d.mts +16 -0
- package/dist/components/comment/comment-marker.mjs +24 -0
- package/dist/components/comment/comment.recipe.mjs +58 -0
- package/dist/components/comment/index.d.mts +8 -0
- package/dist/components/comment/use-comment-margin-fits.d.mts +16 -0
- package/dist/components/comment/use-comment-margin-fits.mjs +34 -0
- package/dist/components/composer/composer-attachment.recipe.mjs +85 -0
- package/dist/components/composer/composer-attachments-scroll-area.d.mts +5 -0
- package/dist/components/composer/composer-attachments-scroll-area.mjs +93 -0
- package/dist/components/composer/composer-attachments.d.mts +27 -0
- package/dist/components/composer/composer-attachments.mjs +147 -0
- package/dist/components/composer/composer-drop-overlay.d.mts +9 -0
- package/dist/components/composer/composer-drop-overlay.mjs +60 -0
- package/dist/components/composer/composer-drop-overlay.recipe.mjs +23 -0
- package/dist/components/composer/composer-root.d.mts +5 -0
- package/dist/components/composer/composer-root.mjs +18 -0
- package/dist/components/composer/composer-suggestion-list.d.mts +139 -0
- package/dist/components/composer/composer-suggestion-list.mjs +160 -0
- package/dist/components/composer/composer-toolbar-label.d.mts +5 -0
- package/dist/components/composer/composer-toolbar-label.mjs +24 -0
- package/dist/components/composer/composer.d.mts +20 -0
- package/dist/components/composer/composer.mjs +88 -0
- package/dist/components/composer/composer.recipe.mjs +29 -0
- package/dist/components/composer/index.d.mts +10 -0
- package/dist/components/composer/sortable-composer-attachments.d.mts +37 -0
- package/dist/components/composer/sortable-composer-attachments.mjs +247 -0
- package/dist/components/composer/use-composer-suggestions.d.mts +83 -0
- package/dist/components/composer/use-composer-suggestions.mjs +207 -0
- package/dist/components/context-menu/context-menu.d.mts +53 -0
- package/dist/components/context-menu/context-menu.mjs +275 -0
- package/dist/components/context-menu/index.d.mts +2 -0
- package/dist/components/conversation-panel/conversation-panel-empty-state.d.mts +9 -0
- package/dist/components/conversation-panel/conversation-panel-empty-state.mjs +57 -0
- package/dist/components/conversation-panel/conversation-panel.d.mts +20 -0
- package/dist/components/conversation-panel/conversation-panel.mjs +63 -0
- package/dist/components/conversation-panel/conversation-panel.recipe.mjs +15 -0
- package/dist/components/conversation-panel/index.d.mts +3 -0
- package/dist/components/copyable-code/copyable-code.d.mts +72 -0
- package/dist/components/copyable-code/copyable-code.mjs +153 -0
- package/dist/components/copyable-code/index.d.mts +2 -0
- package/dist/components/description-list/description-list.d.mts +59 -0
- package/dist/components/description-list/description-list.mjs +96 -0
- package/dist/components/description-list/index.d.mts +2 -0
- package/dist/components/dialog/dialog-sheet-context.mjs +58 -0
- package/dist/components/dialog/dialog-sheet.d.mts +31 -0
- package/dist/components/dialog/dialog-sheet.mjs +194 -0
- package/dist/components/dialog/dialog.d.mts +85 -0
- package/dist/components/dialog/dialog.mjs +371 -0
- package/dist/components/dialog/index.d.mts +3 -0
- package/dist/components/drag/drag-announcements.d.mts +72 -0
- package/dist/components/drag/drag-announcements.mjs +115 -0
- package/dist/components/drag/drag-lift.d.mts +100 -0
- package/dist/components/drag/drag-lift.mjs +276 -0
- package/dist/components/drag/drag-lists.d.mts +98 -0
- package/dist/components/drag/drag-lists.mjs +258 -0
- package/dist/components/drag/drag-sensors.d.mts +87 -0
- package/dist/components/drag/drag-sensors.mjs +169 -0
- package/dist/components/drag/drag.recipe.d.mts +7 -0
- package/dist/components/drag/drag.recipe.mjs +30 -0
- package/dist/components/drag/drop-placeholder.d.mts +41 -0
- package/dist/components/drag/drop-placeholder.mjs +161 -0
- package/dist/components/drag/index.d.mts +8 -0
- package/dist/components/drawer/drawer.d.mts +34 -0
- package/dist/components/drawer/drawer.mjs +202 -0
- package/dist/components/drawer/drawer.recipe.mjs +175 -0
- package/dist/components/drawer/index.d.mts +2 -0
- package/dist/components/dropdown-menu/dropdown-menu.d.mts +62 -0
- package/dist/components/dropdown-menu/dropdown-menu.mjs +319 -0
- package/dist/components/dropdown-menu/index.d.mts +2 -0
- package/dist/components/ellipsis/ellipsis.d.mts +55 -0
- package/dist/components/ellipsis/ellipsis.mjs +320 -0
- package/dist/components/ellipsis/index.d.mts +3 -0
- package/dist/components/empty-state/empty-state.d.mts +15 -0
- package/dist/components/empty-state/empty-state.mjs +102 -0
- package/dist/components/empty-state/index.d.mts +2 -0
- package/dist/components/field/field.d.mts +79 -0
- package/dist/components/field/field.mjs +100 -0
- package/dist/components/field/index.d.mts +2 -0
- package/dist/components/file-preview/file-preview.d.mts +17 -0
- package/dist/components/file-preview/file-preview.mjs +210 -0
- package/dist/components/file-preview/file-preview.recipe.d.mts +99 -0
- package/dist/components/file-preview/file-preview.recipe.mjs +39 -0
- package/dist/components/file-preview/index.d.mts +2 -0
- package/dist/components/files/files.d.mts +35 -0
- package/dist/components/files/files.mjs +69 -0
- package/dist/components/files/files.recipe.mjs +40 -0
- package/dist/components/files/index.d.mts +2 -0
- package/dist/components/filter-chip/filter-chip.d.mts +25 -0
- package/dist/components/filter-chip/filter-chip.mjs +59 -0
- package/dist/components/filter-chip/index.d.mts +2 -0
- package/dist/components/float-button/float-button.d.mts +36 -0
- package/dist/components/float-button/float-button.mjs +116 -0
- package/dist/components/float-button/float-button.position.d.mts +6 -0
- package/dist/components/float-button/float-button.position.mjs +41 -0
- package/dist/components/float-button/index.d.mts +3 -0
- package/dist/components/form-section/form-section.d.mts +16 -0
- package/dist/components/form-section/form-section.mjs +53 -0
- package/dist/components/form-section/index.d.mts +2 -0
- package/dist/components/icon-tile/icon-tile.d.mts +97 -0
- package/dist/components/icon-tile/icon-tile.mjs +49 -0
- package/dist/components/icon-tile/index.d.mts +2 -0
- package/dist/components/icons/action-icons.d.mts +34 -0
- package/dist/components/icons/action-icons.mjs +383 -0
- package/dist/components/icons/conversation-icons.d.mts +12 -0
- package/dist/components/icons/conversation-icons.mjs +147 -0
- package/dist/components/icons/index.d.mts +4 -0
- package/dist/components/icons/object-icons.d.mts +6 -0
- package/dist/components/icons/object-icons.mjs +27 -0
- package/dist/components/inbox-item/inbox-item-leading-badge.d.mts +13 -0
- package/dist/components/inbox-item/inbox-item-leading-badge.mjs +27 -0
- package/dist/components/inbox-item/inbox-item-skeleton.d.mts +46 -0
- package/dist/components/inbox-item/inbox-item-skeleton.mjs +89 -0
- package/dist/components/inbox-item/inbox-item-skeleton.recipe.mjs +20 -0
- package/dist/components/inbox-item/inbox-item.d.mts +71 -0
- package/dist/components/inbox-item/inbox-item.mjs +276 -0
- package/dist/components/inbox-item/inbox-item.recipe.mjs +137 -0
- package/dist/components/inbox-item/index.d.mts +2 -0
- package/dist/components/inline-code/index.d.mts +2 -0
- package/dist/components/inline-code/inline-code.d.mts +8 -0
- package/dist/components/inline-code/inline-code.mjs +30 -0
- package/dist/components/input/index.d.mts +2 -0
- package/dist/components/input/input.d.mts +16 -0
- package/dist/components/input/input.mjs +20 -0
- package/dist/components/input/input.recipe.mjs +12 -0
- package/dist/components/input-group/index.d.mts +2 -0
- package/dist/components/input-group/input-group.d.mts +93 -0
- package/dist/components/input-group/input-group.mjs +178 -0
- package/dist/components/kbd/index.d.mts +2 -0
- package/dist/components/kbd/kbd.d.mts +7 -0
- package/dist/components/kbd/kbd.mjs +34 -0
- package/dist/components/label/index.d.mts +2 -0
- package/dist/components/label/label.d.mts +60 -0
- package/dist/components/label/label.mjs +75 -0
- package/dist/components/legacy-task-panel/index.d.mts +2 -0
- package/dist/components/legacy-task-panel/legacy-task-panel.d.mts +57 -0
- package/dist/components/legacy-task-panel/legacy-task-panel.mjs +234 -0
- package/dist/components/legacy-task-panel/legacy-task-panel.recipe.mjs +30 -0
- package/dist/components/lightbox/index.d.mts +2 -0
- package/dist/components/lightbox/lightbox.d.mts +55 -0
- package/dist/components/lightbox/lightbox.mjs +336 -0
- package/dist/components/list-row/index.d.mts +2 -0
- package/dist/components/list-row/list-row-skeleton.d.mts +21 -0
- package/dist/components/list-row/list-row-skeleton.mjs +43 -0
- package/dist/components/list-row/list-row.d.mts +66 -0
- package/dist/components/list-row/list-row.mjs +167 -0
- package/dist/components/list-row/list-row.recipe.d.mts +126 -0
- package/dist/components/list-row/list-row.recipe.mjs +94 -0
- package/dist/components/live-agent-activity-bar/index.d.mts +2 -0
- package/dist/components/live-agent-activity-bar/live-agent-activity-bar.d.mts +25 -0
- package/dist/components/live-agent-activity-bar/live-agent-activity-bar.mjs +107 -0
- package/dist/components/logo/index.d.mts +2 -0
- package/dist/components/logo/raft-logo.d.mts +9 -0
- package/dist/components/logo/raft-logo.mjs +63 -0
- package/dist/components/markdown/index.d.mts +2 -0
- package/dist/components/markdown/markdown-parts.d.mts +54 -0
- package/dist/components/markdown/markdown-parts.mjs +153 -0
- package/dist/components/markdown/markdown.recipe.mjs +77 -0
- package/dist/components/message-action-card/index.d.mts +2 -0
- package/dist/components/message-action-card/message-action-card-content.recipe.mjs +50 -0
- package/dist/components/message-action-card/message-action-card.d.mts +95 -0
- package/dist/components/message-action-card/message-action-card.mjs +298 -0
- package/dist/components/message-action-card/message-action-card.recipe.mjs +47 -0
- package/dist/components/message-attachment/index.d.mts +5 -0
- package/dist/components/message-attachment/message-attachment.d.mts +27 -0
- package/dist/components/message-attachment/message-attachment.mjs +129 -0
- package/dist/components/message-attachment/message-attachment.recipe.mjs +36 -0
- package/dist/components/message-attachment/message-image-gallery-rows.d.mts +47 -0
- package/dist/components/message-attachment/message-image-gallery-rows.mjs +55 -0
- package/dist/components/message-attachment/message-image-gallery.d.mts +32 -0
- package/dist/components/message-attachment/message-image-gallery.mjs +105 -0
- package/dist/components/message-attachment/message-image-gallery.recipe.mjs +61 -0
- package/dist/components/message-attachment/message-video-preview.d.mts +19 -0
- package/dist/components/message-attachment/message-video-preview.mjs +92 -0
- package/dist/components/message-attachment/message-video-preview.recipe.mjs +33 -0
- package/dist/components/message-embed/index.d.mts +2 -0
- package/dist/components/message-embed/message-embed.d.mts +12 -0
- package/dist/components/message-embed/message-embed.mjs +42 -0
- package/dist/components/message-embed/message-embed.recipe.mjs +14 -0
- package/dist/components/message-forwarded-bundle/index.d.mts +2 -0
- package/dist/components/message-forwarded-bundle/message-forwarded-bundle.d.mts +92 -0
- package/dist/components/message-forwarded-bundle/message-forwarded-bundle.mjs +324 -0
- package/dist/components/message-forwarded-bundle/message-forwarded-bundle.recipe.mjs +81 -0
- package/dist/components/message-item/index.d.mts +13 -0
- package/dist/components/message-item/message-footer.d.mts +20 -0
- package/dist/components/message-item/message-footer.mjs +54 -0
- package/dist/components/message-item/message-footer.recipe.mjs +46 -0
- package/dist/components/message-item/message-item-content.d.mts +22 -0
- package/dist/components/message-item/message-item-content.mjs +81 -0
- package/dist/components/message-item/message-item-delegated.d.mts +38 -0
- package/dist/components/message-item/message-item-delegated.mjs +72 -0
- package/dist/components/message-item/message-item-gutter.d.mts +10 -0
- package/dist/components/message-item/message-item-gutter.mjs +41 -0
- package/dist/components/message-item/message-item-header.d.mts +29 -0
- package/dist/components/message-item/message-item-header.mjs +107 -0
- package/dist/components/message-item/message-item-label.mjs +113 -0
- package/dist/components/message-item/message-item-root.d.mts +25 -0
- package/dist/components/message-item/message-item-root.mjs +39 -0
- package/dist/components/message-item/message-item-toolbar.d.mts +9 -0
- package/dist/components/message-item/message-item-toolbar.mjs +131 -0
- package/dist/components/message-item/message-item.recipe.d.mts +101 -0
- package/dist/components/message-item/message-item.recipe.mjs +114 -0
- package/dist/components/message-item/message-multi-select.d.mts +15 -0
- package/dist/components/message-item/message-multi-select.mjs +49 -0
- package/dist/components/message-item/message-multi-select.recipe.mjs +23 -0
- package/dist/components/message-item/message-reaction.d.mts +39 -0
- package/dist/components/message-item/message-reaction.mjs +188 -0
- package/dist/components/message-item/message-reaction.recipe.mjs +76 -0
- package/dist/components/message-item/message-reference.d.mts +50 -0
- package/dist/components/message-item/message-reference.mjs +111 -0
- package/dist/components/message-item/message-reference.recipe.d.mts +6 -0
- package/dist/components/message-item/message-reference.recipe.mjs +63 -0
- package/dist/components/message-item/message-text-selection-toolbar.d.mts +24 -0
- package/dist/components/message-item/message-text-selection-toolbar.mjs +13 -0
- package/dist/components/message-list/index.d.mts +4 -0
- package/dist/components/message-list/message-list-jump.d.mts +21 -0
- package/dist/components/message-list/message-list-jump.mjs +73 -0
- package/dist/components/message-list/message-list-markers.d.mts +13 -0
- package/dist/components/message-list/message-list-markers.mjs +70 -0
- package/dist/components/message-list/message-list.d.mts +7 -0
- package/dist/components/message-list/message-list.mjs +52 -0
- package/dist/components/message-list/message-list.recipe.mjs +54 -0
- package/dist/components/message-quoted-preview/index.d.mts +2 -0
- package/dist/components/message-quoted-preview/message-quoted-preview.d.mts +40 -0
- package/dist/components/message-quoted-preview/message-quoted-preview.mjs +144 -0
- package/dist/components/message-quoted-preview/message-quoted-preview.recipe.mjs +38 -0
- package/dist/components/message-replies/index.d.mts +2 -0
- package/dist/components/message-replies/message-replies.d.mts +17 -0
- package/dist/components/message-replies/message-replies.mjs +79 -0
- package/dist/components/message-replies/message-replies.recipe.mjs +25 -0
- package/dist/components/message-translation/index.d.mts +2 -0
- package/dist/components/message-translation/message-translation.d.mts +20 -0
- package/dist/components/message-translation/message-translation.mjs +64 -0
- package/dist/components/message-translation/message-translation.recipe.mjs +27 -0
- package/dist/components/meter/index.d.mts +2 -0
- package/dist/components/meter/meter.d.mts +107 -0
- package/dist/components/meter/meter.mjs +118 -0
- package/dist/components/mobile-nav/index.d.mts +3 -0
- package/dist/components/mobile-nav/mobile-nav-server.d.mts +71 -0
- package/dist/components/mobile-nav/mobile-nav-server.mjs +287 -0
- package/dist/components/mobile-nav/mobile-nav.d.mts +12 -0
- package/dist/components/mobile-nav/mobile-nav.mjs +73 -0
- package/dist/components/mode-bar/index.d.mts +2 -0
- package/dist/components/mode-bar/mode-bar.d.mts +33 -0
- package/dist/components/mode-bar/mode-bar.mjs +115 -0
- package/dist/components/notification-center/index.d.mts +2 -0
- package/dist/components/notification-center/notification-center.d.mts +225 -0
- package/dist/components/notification-center/notification-center.mjs +340 -0
- package/dist/components/panel/index.d.mts +7 -0
- package/dist/components/panel/panel-action.d.mts +15 -0
- package/dist/components/panel/panel-action.mjs +23 -0
- package/dist/components/panel/panel-action.recipe.mjs +40 -0
- package/dist/components/panel/panel-header.d.mts +34 -0
- package/dist/components/panel/panel-header.mjs +135 -0
- package/dist/components/panel/panel-header.recipe.mjs +78 -0
- package/dist/components/panel/panel-notice.d.mts +16 -0
- package/dist/components/panel/panel-notice.mjs +77 -0
- package/dist/components/panel/panel-split-action.d.mts +34 -0
- package/dist/components/panel/panel-split-action.mjs +69 -0
- package/dist/components/panel/panel-split-action.recipe.mjs +53 -0
- package/dist/components/panel/panel-toggle-action.d.mts +6 -0
- package/dist/components/panel/panel-toggle-action.mjs +15 -0
- package/dist/components/panel/panel.d.mts +25 -0
- package/dist/components/panel/panel.mjs +96 -0
- package/dist/components/panel/panel.recipe.mjs +24 -0
- package/dist/components/picker-trigger-button/index.d.mts +2 -0
- package/dist/components/picker-trigger-button/picker-trigger-button.d.mts +7 -0
- package/dist/components/picker-trigger-button/picker-trigger-button.mjs +36 -0
- package/dist/components/popover/index.d.mts +2 -0
- package/dist/components/popover/popover.d.mts +41 -0
- package/dist/components/popover/popover.mjs +184 -0
- package/dist/components/preview-card/index.d.mts +2 -0
- package/dist/components/preview-card/preview-card.d.mts +43 -0
- package/dist/components/preview-card/preview-card.mjs +197 -0
- package/dist/components/profile-panel/index.d.mts +2 -0
- package/dist/components/profile-panel/profile-panel.d.mts +14 -0
- package/dist/components/profile-panel/profile-panel.mjs +46 -0
- package/dist/components/profile-panel/profile-panel.recipe.mjs +14 -0
- package/dist/components/progress/index.d.mts +2 -0
- package/dist/components/progress/progress.d.mts +119 -0
- package/dist/components/progress/progress.mjs +139 -0
- package/dist/components/pull-to-refresh/index.d.mts +4 -0
- package/dist/components/pull-to-refresh/pull-to-refresh-gesture.d.mts +30 -0
- package/dist/components/pull-to-refresh/pull-to-refresh-gesture.mjs +134 -0
- package/dist/components/pull-to-refresh/pull-to-refresh-indicator.d.mts +21 -0
- package/dist/components/pull-to-refresh/pull-to-refresh-indicator.mjs +153 -0
- package/dist/components/pull-to-refresh/pull-to-refresh-material-progress.mjs +150 -0
- package/dist/components/pull-to-refresh/use-pull-to-refresh.d.mts +55 -0
- package/dist/components/pull-to-refresh/use-pull-to-refresh.mjs +156 -0
- package/dist/components/radio-group/index.d.mts +2 -0
- package/dist/components/radio-group/radio-group.d.mts +14 -0
- package/dist/components/radio-group/radio-group.mjs +59 -0
- package/dist/components/resizable/index.d.mts +2 -0
- package/dist/components/resizable/resizable.d.mts +15 -0
- package/dist/components/resizable/resizable.mjs +39 -0
- package/dist/components/resizable/resizable.recipe.mjs +24 -0
- package/dist/components/scroll-area/index.d.mts +2 -0
- package/dist/components/scroll-area/scroll-area.d.mts +17 -0
- package/dist/components/scroll-area/scroll-area.mjs +55 -0
- package/dist/components/scroll-area/scroll-area.recipe.mjs +23 -0
- package/dist/components/search/index.d.mts +6 -0
- package/dist/components/search/search-entity.d.mts +24 -0
- package/dist/components/search/search-entity.mjs +106 -0
- package/dist/components/search/search-entity.recipe.mjs +41 -0
- package/dist/components/search/search-message.d.mts +25 -0
- package/dist/components/search/search-message.mjs +115 -0
- package/dist/components/search/search-message.recipe.mjs +32 -0
- package/dist/components/search/search-thread.d.mts +17 -0
- package/dist/components/search/search-thread.mjs +79 -0
- package/dist/components/search/search-thread.recipe.mjs +16 -0
- package/dist/components/search/search-trigger.d.mts +15 -0
- package/dist/components/search/search-trigger.mjs +59 -0
- package/dist/components/search/search.d.mts +23 -0
- package/dist/components/search/search.mjs +88 -0
- package/dist/components/search/search.recipe.mjs +22 -0
- package/dist/components/segmented-control/index.d.mts +2 -0
- package/dist/components/segmented-control/segmented-control.d.mts +38 -0
- package/dist/components/segmented-control/segmented-control.mjs +306 -0
- package/dist/components/select/index.d.mts +2 -0
- package/dist/components/select/select.d.mts +95 -0
- package/dist/components/select/select.mjs +483 -0
- package/dist/components/separator/index.d.mts +2 -0
- package/dist/components/separator/separator.d.mts +10 -0
- package/dist/components/separator/separator.mjs +49 -0
- package/dist/components/sidebar/index.d.mts +5 -0
- package/dist/components/sidebar/sidebar-item.d.mts +64 -0
- package/dist/components/sidebar/sidebar-item.mjs +201 -0
- package/dist/components/sidebar/sidebar-item.recipe.mjs +100 -0
- package/dist/components/sidebar/sidebar-menu.d.mts +13 -0
- package/dist/components/sidebar/sidebar-menu.mjs +67 -0
- package/dist/components/sidebar/sidebar-menu.recipe.mjs +22 -0
- package/dist/components/sidebar/sidebar-section.d.mts +41 -0
- package/dist/components/sidebar/sidebar-section.mjs +164 -0
- package/dist/components/sidebar/sidebar-section.recipe.mjs +45 -0
- package/dist/components/sidebar/sidebar.d.mts +17 -0
- package/dist/components/sidebar/sidebar.mjs +149 -0
- package/dist/components/sidebar/sidebar.recipe.mjs +37 -0
- package/dist/components/skeleton/index.d.mts +2 -0
- package/dist/components/skeleton/skeleton.d.mts +50 -0
- package/dist/components/skeleton/skeleton.mjs +29 -0
- package/dist/components/spinner/index.d.mts +2 -0
- package/dist/components/spinner/spinner.d.mts +77 -0
- package/dist/components/spinner/spinner.mjs +118 -0
- package/dist/components/status/index.d.mts +2 -0
- package/dist/components/status/status.d.mts +143 -0
- package/dist/components/status/status.mjs +56 -0
- package/dist/components/steps/index.d.mts +3 -0
- package/dist/components/steps/otter-indicator.d.mts +17 -0
- package/dist/components/steps/otter-indicator.mjs +331 -0
- package/dist/components/steps/steps.d.mts +50 -0
- package/dist/components/steps/steps.mjs +174 -0
- package/dist/components/switch/index.d.mts +2 -0
- package/dist/components/switch/switch.d.mts +9 -0
- package/dist/components/switch/switch.mjs +50 -0
- package/dist/components/system-message/index.d.mts +2 -0
- package/dist/components/system-message/system-message.d.mts +27 -0
- package/dist/components/system-message/system-message.mjs +113 -0
- package/dist/components/system-message/system-message.recipe.mjs +34 -0
- package/dist/components/table/index.d.mts +2 -0
- package/dist/components/table/table.d.mts +35 -0
- package/dist/components/table/table.mjs +102 -0
- package/dist/components/table/table.recipe.mjs +31 -0
- package/dist/components/tabs/index.d.mts +2 -0
- package/dist/components/tabs/tabs.d.mts +185 -0
- package/dist/components/tabs/tabs.mjs +528 -0
- package/dist/components/task-board/index.d.mts +2 -0
- package/dist/components/task-board/task-board-column.recipe.mjs +46 -0
- package/dist/components/task-board/task-board.d.mts +40 -0
- package/dist/components/task-board/task-board.mjs +155 -0
- package/dist/components/task-card/index.d.mts +2 -0
- package/dist/components/task-card/task-card-status.recipe.mjs +17 -0
- package/dist/components/task-card/task-card.d.mts +30 -0
- package/dist/components/task-card/task-card.mjs +141 -0
- package/dist/components/task-card/task-card.recipe.mjs +39 -0
- package/dist/components/task-dnd/index.d.mts +2 -0
- package/dist/components/task-dnd/task-dnd.d.mts +75 -0
- package/dist/components/task-dnd/task-dnd.mjs +341 -0
- package/dist/components/task-dnd/task-dnd.recipe.mjs +20 -0
- package/dist/components/task-list/index.d.mts +2 -0
- package/dist/components/task-list/task-list-section.recipe.mjs +37 -0
- package/dist/components/task-list/task-list.d.mts +34 -0
- package/dist/components/task-list/task-list.mjs +119 -0
- package/dist/components/tasks/index.d.mts +7 -0
- package/dist/components/tasks/task-chip.d.mts +14 -0
- package/dist/components/tasks/task-chip.mjs +81 -0
- package/dist/components/tasks/task-loading.d.mts +7 -0
- package/dist/components/tasks/task-loading.mjs +32 -0
- package/dist/components/tasks/task-loading.recipe.mjs +8 -0
- package/dist/components/tasks/task-status-badge.d.mts +24 -0
- package/dist/components/tasks/task-status-badge.mjs +24 -0
- package/dist/components/tasks/task-status-icon.d.mts +13 -0
- package/dist/components/tasks/task-status-icon.mjs +90 -0
- package/dist/components/tasks/task-status.recipe.d.mts +62 -0
- package/dist/components/tasks/task-status.recipe.mjs +33 -0
- package/dist/components/tasks/tasks-panel.d.mts +22 -0
- package/dist/components/tasks/tasks-panel.mjs +114 -0
- package/dist/components/tasks/tasks-panel.recipe.mjs +36 -0
- package/dist/components/text/index.d.mts +2 -0
- package/dist/components/text/text.d.mts +186 -0
- package/dist/components/text/text.mjs +114 -0
- package/dist/components/text-link/index.d.mts +2 -0
- package/dist/components/text-link/text-link.d.mts +36 -0
- package/dist/components/text-link/text-link.mjs +60 -0
- package/dist/components/text-selection-toolbar/index.d.mts +3 -0
- package/dist/components/text-selection-toolbar/text-selection-anchor.d.mts +22 -0
- package/dist/components/text-selection-toolbar/text-selection-anchor.mjs +106 -0
- package/dist/components/text-selection-toolbar/text-selection-toolbar.d.mts +20 -0
- package/dist/components/text-selection-toolbar/text-selection-toolbar.mjs +41 -0
- package/dist/components/text-selection-toolbar/text-selection-toolbar.recipe.mjs +19 -0
- package/dist/components/textarea/index.d.mts +2 -0
- package/dist/components/textarea/textarea.d.mts +16 -0
- package/dist/components/textarea/textarea.mjs +62 -0
- package/dist/components/thread-panel/index.d.mts +2 -0
- package/dist/components/thread-panel/thread-panel.d.mts +31 -0
- package/dist/components/thread-panel/thread-panel.mjs +162 -0
- package/dist/components/thread-panel/thread-panel.recipe.mjs +36 -0
- package/dist/components/timeline/index.d.mts +2 -0
- package/dist/components/timeline/timeline.d.mts +44 -0
- package/dist/components/timeline/timeline.mjs +81 -0
- package/dist/components/toast/index.d.mts +2 -0
- package/dist/components/toast/toast.d.mts +263 -0
- package/dist/components/toast/toast.mjs +556 -0
- package/dist/components/toggle-group/index.d.mts +2 -0
- package/dist/components/toggle-group/toggle-group.d.mts +15 -0
- package/dist/components/toggle-group/toggle-group.mjs +64 -0
- package/dist/components/tooltip/index.d.mts +2 -0
- package/dist/components/tooltip/tooltip.d.mts +18 -0
- package/dist/components/tooltip/tooltip.mjs +197 -0
- package/dist/components/virtual-list/ItemColumns.mjs +37 -0
- package/dist/components/virtual-list/VirtualList.d.mts +4 -0
- package/dist/components/virtual-list/VirtualList.mjs +1401 -0
- package/dist/components/virtual-list/VirtualListContext.mjs +5 -0
- package/dist/components/virtual-list/hooks/use-event-callback.mjs +10 -0
- package/dist/components/virtual-list/hooks/use-ios-momentum-compensation.mjs +148 -0
- package/dist/components/virtual-list/hooks/use-keyboard-scroll.mjs +42 -0
- package/dist/components/virtual-list/hooks/use-latest-ref.mjs +10 -0
- package/dist/components/virtual-list/hooks/use-layout-effect-with-previous.mjs +16 -0
- package/dist/components/virtual-list/hooks/use-memo-with-previous.mjs +22 -0
- package/dist/components/virtual-list/hooks/use-non-passive-wheel.mjs +23 -0
- package/dist/components/virtual-list/hooks/use-non-virtual-content-resize.mjs +28 -0
- package/dist/components/virtual-list/hooks/use-scroll-anchor.mjs +55 -0
- package/dist/components/virtual-list/index.d.mts +5 -0
- package/dist/components/virtual-list/public-types.d.mts +341 -0
- package/dist/components/virtual-list/resize-observer/ResizeObserverWrapper.d.mts +5 -0
- package/dist/components/virtual-list/resize-observer/ResizeObserverWrapper.mjs +70 -0
- package/dist/components/virtual-list/resize-observer/resize-observer-delegate.d.mts +6 -0
- package/dist/components/virtual-list/resize-observer/resize-observer-delegate.mjs +54 -0
- package/dist/components/virtual-list/utils/align.mjs +19 -0
- package/dist/components/virtual-list/utils/constants.mjs +30 -0
- package/dist/components/virtual-list/utils/fenwick-tree.mjs +66 -0
- package/dist/components/virtual-list/utils/items-anchor.mjs +49 -0
- package/dist/components/virtual-list/utils/measure.mjs +77 -0
- package/dist/components/virtual-list/utils/platform.mjs +39 -0
- package/dist/components/virtual-list/utils/range.mjs +103 -0
- package/dist/components/virtual-list/utils/size-cache.mjs +35 -0
- package/dist/components/workspace-button/index.d.mts +2 -0
- package/dist/components/workspace-button/workspace-button.d.mts +9 -0
- package/dist/components/workspace-button/workspace-button.mjs +28 -0
- package/dist/index.d.mts +239 -4864
- package/dist/index.mjs +142 -17054
- package/dist/lib/chip-remove.mjs +17 -0
- package/dist/lib/data-attributes.d.mts +5 -0
- package/dist/lib/decision-width.mjs +9 -0
- package/dist/lib/default-native-button.mjs +8 -0
- package/dist/lib/desktop-media.mjs +10 -0
- package/dist/lib/drag-escape.mjs +37 -0
- package/dist/lib/frame-insets.mjs +127 -0
- package/dist/lib/head-edges.mjs +44 -0
- package/dist/lib/hud-text-action.mjs +10 -0
- package/dist/lib/inline-chip.mjs +30 -0
- package/dist/lib/input-modality.d.mts +36 -0
- package/dist/lib/input-modality.mjs +186 -0
- package/dist/lib/list-cell.mjs +21 -0
- package/dist/lib/located.d.mts +25 -0
- package/dist/lib/located.mjs +28 -0
- package/dist/lib/overlay-depth.d.mts +42 -0
- package/dist/lib/overlay-depth.mjs +59 -0
- package/dist/lib/phone-media.mjs +24 -0
- package/dist/lib/presence.d.mts +16 -0
- package/dist/lib/presence.mjs +16 -0
- package/dist/lib/row-tone.d.mts +8 -0
- package/dist/lib/search-hit.mjs +18 -0
- package/dist/lib/stacked-actions.mjs +112 -0
- package/dist/lib/styled-props.d.mts +15 -0
- package/dist/lib/tap-activation.mjs +133 -0
- package/dist/lib/theme/theme-context.d.mts +10 -0
- package/dist/lib/theme/theme-context.mjs +9 -0
- package/dist/lib/theme/theme-provider.d.mts +23 -0
- package/dist/lib/theme/theme-provider.mjs +61 -0
- package/dist/lib/theme/theme-scope.mjs +19 -0
- package/dist/lib/theme/use-theme.d.mts +5 -0
- package/dist/lib/theme/use-theme.mjs +9 -0
- package/dist/lib/touch-drag.d.mts +55 -0
- package/dist/lib/touch-drag.mjs +151 -0
- package/dist/lib/truncation.d.mts +26 -0
- package/dist/lib/truncation.mjs +153 -0
- package/dist/lib/tv.d.mts +2 -0
- package/dist/lib/tv.mjs +14 -0
- package/dist/lib/use-copy-to-clipboard.mjs +58 -0
- package/dist/lib/use-merged-ref.mjs +60 -0
- package/dist/lib/use-mobile-viewport.mjs +17 -0
- package/dist/lib/use-overflow-title.mjs +49 -0
- package/dist/lib/use-scrollbar-size.d.mts +16 -0
- package/dist/lib/use-scrollbar-size.mjs +46 -0
- package/dist/lib/use-truncated.d.mts +20 -0
- package/dist/lib/use-truncated.mjs +34 -0
- package/dist/lib/without-children.d.mts +8 -0
- package/dist/wip.d.mts +61 -1190
- package/dist/wip.mjs +43 -2970
- package/package.json +8 -1
- package/dist/index-C3ymUW98.d.mts +0 -1816
- package/dist/mode-bar-tGnYByXp.mjs +0 -7564
- package/dist/style.css +0 -1395
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,29 @@
|
|
|
1
|
+
## [0.52.1](https://github.com/botiverse/raft-design/compare/v0.52.0...v0.52.1) (2026-10-29)
|
|
2
|
+
|
|
3
|
+
### Fixed
|
|
4
|
+
|
|
5
|
+
- **PanelAction hit area reaches 44px:** the ::after target is placed from inside the 1.5px border, so it was 41–42px tall; it now reaches past the border, as Button's does. This also fixes PanelSplitActionMenu's touch extension (42px). ([#889](https://github.com/botiverse/raft-design/pull/889))
|
|
6
|
+
|
|
7
|
+
## [0.52.0](https://github.com/botiverse/raft-design/compare/v0.51.0...v0.52.0) (2026-10-29)
|
|
8
|
+
|
|
9
|
+
### Added
|
|
10
|
+
|
|
11
|
+
- **PanelSplitAction** (wip): an action and its menu drawn as one control (`PanelSplitActionMain`, `PanelSplitActionToggle`, `PanelSplitActionMenu`), e.g. Comment and its ▾. The menu part is narrow and gets a 44×44 target on touch. ([#885](https://github.com/botiverse/raft-design/pull/885))
|
|
12
|
+
- **TextSelectionToolbar** (+ `TextSelectionToolbarButton`, `TextSelectionToolbarSeparator`, `createTextSelectionAnchor`): the generic name for the toolbar on selected text. The `MessageTextSelectionToolbar*` names stay as deprecated aliases. ([#885](https://github.com/botiverse/raft-design/pull/885))
|
|
13
|
+
|
|
14
|
+
### Changed
|
|
15
|
+
|
|
16
|
+
- **Tree-shakable build:** raft-ui ships one ESM module per source file and declares `sideEffects` (CSS, the entries, and the drag Escape guard, which now installs when raft-ui loads). Unused components drop out of consumers' bundles: a Button-only app went from 131.6 KB to 91.0 KB gzip. Entry points and exports are unchanged. ([#886](https://github.com/botiverse/raft-design/pull/886))
|
|
17
|
+
|
|
18
|
+
### Design System
|
|
19
|
+
|
|
20
|
+
- **Joined parts hover as one control:** the part under the pointer gets `fill-medium`, its joined neighbour `fill-subtle`. ([#885](https://github.com/botiverse/raft-design/pull/885))
|
|
21
|
+
- Docs: https://raft-design.botiverse.build/foundations/states/
|
|
22
|
+
- **Descriptive links take sentence case:** Title Case is for labels that name an action; "From a message in #general" is a phrase. ([#887](https://github.com/botiverse/raft-design/pull/887))
|
|
23
|
+
- Docs: https://raft-design.botiverse.build/content/writing/
|
|
24
|
+
- **Entry points on an edge take a band:** an always-present entry on a region's edge gets its own full-width band; the content never narrows around it and is never covered. ([#887](https://github.com/botiverse/raft-design/pull/887))
|
|
25
|
+
- Docs: https://raft-design.botiverse.build/foundations/elevation/
|
|
26
|
+
|
|
1
27
|
## [0.51.0](https://github.com/botiverse/raft-design/compare/v0.50.0...v0.51.0) (2026-10-29)
|
|
2
28
|
|
|
3
29
|
### Changed
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Panel } from "../panel/panel.mjs";
|
|
2
|
+
import { ComponentPropsWithRef } from "react";
|
|
3
|
+
//#region src/components/activity-inbox/activity-inbox-shell.d.ts
|
|
4
|
+
export type ActivityInboxPanelProps = ComponentPropsWithRef<typeof Panel>;
|
|
5
|
+
export declare function ActivityInboxPanel({ className, ...props }: ActivityInboxPanelProps): import("react").JSX.Element;
|
|
6
|
+
export type ActivityInboxViewportProps = ComponentPropsWithRef<"div">;
|
|
7
|
+
/** The list's scroller. It publishes its scrollbar's width for the item
|
|
8
|
+
* cells (useScrollbarSize), so their fills sit 8px from both edges. */
|
|
9
|
+
export declare function ActivityInboxViewport({ className, ref, ...props }: ActivityInboxViewportProps): import("react").JSX.Element;
|
|
10
|
+
export type ActivityInboxLoadingMoreProps = ComponentPropsWithRef<"div">;
|
|
11
|
+
export declare function ActivityInboxLoadingMore({ className, ...props }: ActivityInboxLoadingMoreProps): import("react").JSX.Element;
|
|
12
|
+
//#endregion
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { useMergedRef } from "../../lib/use-merged-ref.mjs";
|
|
2
|
+
import { Panel } from "../panel/panel.mjs";
|
|
3
|
+
import { useScrollbarSize } from "../../lib/use-scrollbar-size.mjs";
|
|
4
|
+
import { activityInboxShell } from "./activity-inbox-shell.recipe.mjs";
|
|
5
|
+
import { jsx } from "react/jsx-runtime";
|
|
6
|
+
//#region src/components/activity-inbox/activity-inbox-shell.tsx
|
|
7
|
+
function ActivityInboxPanel({ className, ...props }) {
|
|
8
|
+
const { panel } = activityInboxShell();
|
|
9
|
+
return /* @__PURE__ */ jsx(Panel, {
|
|
10
|
+
render: /* @__PURE__ */ jsx("div", {}),
|
|
11
|
+
edge: "inset",
|
|
12
|
+
"data-slot": "activity-inbox-root",
|
|
13
|
+
className: panel({ className }),
|
|
14
|
+
...props
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
/** The list's scroller. It publishes its scrollbar's width for the item
|
|
18
|
+
* cells (useScrollbarSize), so their fills sit 8px from both edges. */
|
|
19
|
+
function ActivityInboxViewport({ className, ref, ...props }) {
|
|
20
|
+
const { viewport } = activityInboxShell();
|
|
21
|
+
const scrollbarRef = useScrollbarSize();
|
|
22
|
+
const [setRef] = useMergedRef(ref, scrollbarRef);
|
|
23
|
+
return /* @__PURE__ */ jsx("div", {
|
|
24
|
+
"data-slot": "activity-inbox-viewport",
|
|
25
|
+
className: viewport({ className }),
|
|
26
|
+
...props,
|
|
27
|
+
ref: setRef
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
function ActivityInboxLoadingMore({ className, ...props }) {
|
|
31
|
+
const { loadingMore } = activityInboxShell();
|
|
32
|
+
return /* @__PURE__ */ jsx("div", {
|
|
33
|
+
"data-slot": "activity-inbox-loading-more",
|
|
34
|
+
className: loadingMore({ className }),
|
|
35
|
+
...props
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
//#endregion
|
|
39
|
+
export { ActivityInboxLoadingMore, ActivityInboxPanel, ActivityInboxViewport };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { listColumnMargin } from "../../lib/head-edges.mjs";
|
|
2
|
+
import { tv } from "../../lib/tv.mjs";
|
|
3
|
+
//#region src/components/activity-inbox/activity-inbox-shell.recipe.ts
|
|
4
|
+
const activityInboxShell = tv({ slots: {
|
|
5
|
+
panel: [
|
|
6
|
+
"flex h-full min-h-0 flex-1 flex-col overflow-hidden",
|
|
7
|
+
"bg-layer-canvas font-sans text-foreground",
|
|
8
|
+
listColumnMargin
|
|
9
|
+
],
|
|
10
|
+
viewport: ["relative flex flex-1 flex-col gap-0.5 overflow-y-auto scrollbar-list *:shrink-0", "bg-layer-canvas px-0 pt-2 pb-[calc(8px+env(safe-area-inset-bottom,0px))]"],
|
|
11
|
+
loadingMore: ["py-3 text-center", "text-caption text-foreground-hint"]
|
|
12
|
+
} });
|
|
13
|
+
//#endregion
|
|
14
|
+
export { activityInboxShell };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { SidebarRoot } from "../sidebar/sidebar.mjs";
|
|
2
|
+
import { ComponentPropsWithRef } from "react";
|
|
3
|
+
//#region src/components/activity-inbox/activity-inbox-sidebar.d.ts
|
|
4
|
+
export type ActivityInboxSidebarProps = ComponentPropsWithRef<typeof SidebarRoot>;
|
|
5
|
+
export declare function ActivityInboxSidebar({ className, children, ...props }: ActivityInboxSidebarProps): import("react").JSX.Element;
|
|
6
|
+
//#endregion
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { SidebarBody, SidebarContent, SidebarRoot } from "../sidebar/sidebar.mjs";
|
|
2
|
+
import { activityInboxSidebar } from "./activity-inbox-sidebar.recipe.mjs";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
//#region src/components/activity-inbox/activity-inbox-sidebar.tsx
|
|
5
|
+
function ActivityInboxSidebar({ className, children, ...props }) {
|
|
6
|
+
const { sidebar, sidebarBody, sidebarContent } = activityInboxSidebar();
|
|
7
|
+
return /* @__PURE__ */ jsx(SidebarRoot, {
|
|
8
|
+
render: /* @__PURE__ */ jsx("aside", {}),
|
|
9
|
+
"data-slot": "activity-inbox-sidebar",
|
|
10
|
+
className: sidebar({ className }),
|
|
11
|
+
...props,
|
|
12
|
+
children: /* @__PURE__ */ jsx(SidebarBody, {
|
|
13
|
+
className: sidebarBody(),
|
|
14
|
+
children: /* @__PURE__ */ jsx(SidebarContent, {
|
|
15
|
+
className: sidebarContent(),
|
|
16
|
+
children
|
|
17
|
+
})
|
|
18
|
+
})
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
//#endregion
|
|
22
|
+
export { ActivityInboxSidebar };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { tv } from "../../lib/tv.mjs";
|
|
2
|
+
//#region src/components/activity-inbox/activity-inbox-sidebar.recipe.ts
|
|
3
|
+
const activityInboxSidebar = tv({ slots: {
|
|
4
|
+
sidebar: [
|
|
5
|
+
"shrink-0",
|
|
6
|
+
"max-md:hidden",
|
|
7
|
+
"md:flex",
|
|
8
|
+
"w-56 border-r border-line-seam bg-layer-canvas"
|
|
9
|
+
],
|
|
10
|
+
sidebarBody: ["bg-layer-canvas"],
|
|
11
|
+
sidebarContent: [
|
|
12
|
+
"py-0",
|
|
13
|
+
"[&_[data-slot=sidebar-group-label]]:mt-3 [&_[data-slot=sidebar-group-label]]:mb-0",
|
|
14
|
+
"**:data-[slot=sidebar-group-label]:flex **:data-[slot=sidebar-group-label]:items-center [&_[data-slot=sidebar-group-label]]:gap-2",
|
|
15
|
+
"[&_[data-slot=sidebar-group-label]]:px-5 [&_[data-slot=sidebar-group-label]]:py-0",
|
|
16
|
+
"**:data-[slot=sidebar-group-label]:font-sans **:data-[slot=sidebar-group-label]:text-footnote [&_[data-slot=sidebar-group-label]]:font-bold",
|
|
17
|
+
"**:data-[slot=sidebar-group-label]:text-foreground-hint **:data-[slot=sidebar-group-label]:normal-case [&_[data-slot=sidebar-group-label]]:tracking-normal",
|
|
18
|
+
"**:data-activity-inbox-show-all:whitespace-nowrap"
|
|
19
|
+
]
|
|
20
|
+
} });
|
|
21
|
+
//#endregion
|
|
22
|
+
export { activityInboxSidebar };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ComponentPropsWithRef } from "react";
|
|
2
|
+
//#region src/components/activity-inbox/activity-inbox-toolbar.d.ts
|
|
3
|
+
export type ActivityInboxControlsProps = ComponentPropsWithRef<"div">;
|
|
4
|
+
export declare function ActivityInboxControls({ className, ...props }: ActivityInboxControlsProps): import("react").JSX.Element;
|
|
5
|
+
export type ActivityInboxSelectionToolbarProps = ComponentPropsWithRef<"div">;
|
|
6
|
+
export declare function ActivityInboxSelectionToolbar({ className, ...props }: ActivityInboxSelectionToolbarProps): import("react").JSX.Element;
|
|
7
|
+
export type ActivityInboxSelectionCountProps = ComponentPropsWithRef<"span">;
|
|
8
|
+
export declare function ActivityInboxSelectionCount({ className, ...props }: ActivityInboxSelectionCountProps): import("react").JSX.Element;
|
|
9
|
+
//#endregion
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { activityInboxToolbar } from "./activity-inbox-toolbar.recipe.mjs";
|
|
2
|
+
import { jsx } from "react/jsx-runtime";
|
|
3
|
+
//#region src/components/activity-inbox/activity-inbox-toolbar.tsx
|
|
4
|
+
function ActivityInboxControls({ className, ...props }) {
|
|
5
|
+
const { controls } = activityInboxToolbar();
|
|
6
|
+
return /* @__PURE__ */ jsx("div", {
|
|
7
|
+
"data-slot": "activity-inbox-controls",
|
|
8
|
+
className: controls({ className }),
|
|
9
|
+
...props
|
|
10
|
+
});
|
|
11
|
+
}
|
|
12
|
+
function ActivityInboxSelectionToolbar({ className, ...props }) {
|
|
13
|
+
const { selectionToolbar } = activityInboxToolbar();
|
|
14
|
+
return /* @__PURE__ */ jsx("div", {
|
|
15
|
+
"data-slot": "activity-inbox-selection-toolbar",
|
|
16
|
+
className: selectionToolbar({ className }),
|
|
17
|
+
...props
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
function ActivityInboxSelectionCount({ className, ...props }) {
|
|
21
|
+
const { selectionCount } = activityInboxToolbar();
|
|
22
|
+
return /* @__PURE__ */ jsx("span", {
|
|
23
|
+
"data-slot": "activity-inbox-selection-count",
|
|
24
|
+
className: selectionCount({ className }),
|
|
25
|
+
...props
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
//#endregion
|
|
29
|
+
export { ActivityInboxControls, ActivityInboxSelectionCount, ActivityInboxSelectionToolbar };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { tv } from "../../lib/tv.mjs";
|
|
2
|
+
//#region src/components/activity-inbox/activity-inbox-toolbar.recipe.ts
|
|
3
|
+
const activityInboxToolbar = tv({ slots: {
|
|
4
|
+
controls: ["flex shrink-0 flex-nowrap items-center gap-2", "bg-layer-canvas px-(--column-margin) py-3"],
|
|
5
|
+
selectionToolbar: [
|
|
6
|
+
"flex min-h-11 shrink-0 flex-wrap items-center gap-2 pt-1.5 pb-[5px]",
|
|
7
|
+
"border-b border-line-hairline bg-layer-canvas px-(--column-margin)",
|
|
8
|
+
"**:data-[activity-inbox-action=sort]:text-foreground-muted",
|
|
9
|
+
"**:data-[activity-inbox-action=sort]:hover:text-foreground"
|
|
10
|
+
],
|
|
11
|
+
selectionCount: ["mr-1", "text-footnote font-bold text-foreground"]
|
|
12
|
+
} });
|
|
13
|
+
//#endregion
|
|
14
|
+
export { activityInboxToolbar };
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { ActivityInboxLoadingMore, ActivityInboxLoadingMoreProps, ActivityInboxPanel, ActivityInboxPanelProps, ActivityInboxViewport, ActivityInboxViewportProps } from "./activity-inbox-shell.mjs";
|
|
2
|
+
import { ActivityInboxSidebar, ActivityInboxSidebarProps } from "./activity-inbox-sidebar.mjs";
|
|
3
|
+
import { ActivityInboxControls, ActivityInboxControlsProps, ActivityInboxSelectionCount, ActivityInboxSelectionCountProps, ActivityInboxSelectionToolbar, ActivityInboxSelectionToolbarProps } from "./activity-inbox-toolbar.mjs";
|
|
4
|
+
export { ActivityInboxControls, ActivityInboxControlsProps, ActivityInboxLoadingMore, ActivityInboxLoadingMoreProps, ActivityInboxPanel, ActivityInboxPanelProps, ActivityInboxSelectionCount, ActivityInboxSelectionCountProps, ActivityInboxSelectionToolbar, ActivityInboxSelectionToolbarProps, ActivityInboxSidebar, ActivityInboxSidebarProps, ActivityInboxViewport, ActivityInboxViewportProps };
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { StyledProps } from "../../lib/styled-props.mjs";
|
|
2
|
+
import { ButtonProps } from "../button/button.mjs";
|
|
3
|
+
import "../button/index.mjs";
|
|
4
|
+
import { Dialog } from "@base-ui/react/dialog";
|
|
5
|
+
import { ComponentPropsWithRef, ReactNode } from "react";
|
|
6
|
+
//#region src/components/alert-dialog/alert-dialog.d.ts
|
|
7
|
+
export type AlertDialogProps = Dialog.Root.Props;
|
|
8
|
+
export declare function AlertDialog({ children, ...props }: AlertDialogProps): import("react").JSX.Element;
|
|
9
|
+
export type AlertDialogTriggerProps = Dialog.Trigger.Props;
|
|
10
|
+
export declare function AlertDialogTrigger(props: AlertDialogTriggerProps): import("react").JSX.Element;
|
|
11
|
+
export type AlertDialogPortalProps = Dialog.Portal.Props;
|
|
12
|
+
export declare function AlertDialogPortal(props: AlertDialogPortalProps): import("react").JSX.Element;
|
|
13
|
+
export type AlertDialogCloseProps = Omit<Dialog.Close.Props, "render"> & Pick<ButtonProps, "variant" | "size"> & {
|
|
14
|
+
className?: string;
|
|
15
|
+
children?: ReactNode;
|
|
16
|
+
};
|
|
17
|
+
export declare function AlertDialogClose({ className, variant, size, children, "aria-label": ariaLabel, ...props }: AlertDialogCloseProps): import("react").JSX.Element;
|
|
18
|
+
export type AlertDialogOverlayProps = StyledProps<Dialog.Backdrop.Props>;
|
|
19
|
+
export declare function AlertDialogOverlay({ className, ...props }: AlertDialogOverlayProps): import("react").JSX.Element;
|
|
20
|
+
export type AlertDialogContentProps = StyledProps<Dialog.Popup.Props> & {
|
|
21
|
+
portalProps?: AlertDialogPortalProps;
|
|
22
|
+
overlay?: false | AlertDialogOverlayProps;
|
|
23
|
+
};
|
|
24
|
+
export declare function AlertDialogContent({ className, children, portalProps, overlay, ...props }: AlertDialogContentProps): import("react").JSX.Element;
|
|
25
|
+
export type AlertDialogHeaderProps = ComponentPropsWithRef<"div">;
|
|
26
|
+
export declare function AlertDialogHeader({ className, ...props }: AlertDialogHeaderProps): import("react").JSX.Element;
|
|
27
|
+
export type AlertDialogBodyProps = ComponentPropsWithRef<"div">;
|
|
28
|
+
export declare function AlertDialogBody({ className, ...props }: AlertDialogBodyProps): import("react").JSX.Element;
|
|
29
|
+
export type AlertDialogFooterProps = ComponentPropsWithRef<"div">;
|
|
30
|
+
export declare function AlertDialogFooter({ className, ref, ...props }: AlertDialogFooterProps): import("react").JSX.Element;
|
|
31
|
+
export type AlertDialogTitleProps = StyledProps<Dialog.Title.Props>;
|
|
32
|
+
export declare function AlertDialogTitle({ className, ...props }: AlertDialogTitleProps): import("react").JSX.Element;
|
|
33
|
+
export type AlertDialogDescriptionProps = StyledProps<Dialog.Description.Props>;
|
|
34
|
+
export declare function AlertDialogDescription({ className, ...props }: AlertDialogDescriptionProps): import("react").JSX.Element;
|
|
35
|
+
export type AlertDialogActionProps = ButtonProps;
|
|
36
|
+
export declare function AlertDialogAction(props: AlertDialogActionProps): import("react").JSX.Element;
|
|
37
|
+
export type AlertDialogCancelProps = Omit<Dialog.Close.Props, "render"> & Pick<ButtonProps, "variant" | "size"> & {
|
|
38
|
+
className?: string;
|
|
39
|
+
};
|
|
40
|
+
export declare function AlertDialogCancel({ className, variant, size, ...props }: AlertDialogCancelProps): import("react").JSX.Element;
|
|
41
|
+
//#endregion
|
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
import { cn } from "../../cn.mjs";
|
|
2
|
+
import { decisionWidth } from "../../lib/decision-width.mjs";
|
|
3
|
+
import { headEdgePull } from "../../lib/head-edges.mjs";
|
|
4
|
+
import { stackedActions, useStackedActions } from "../../lib/stacked-actions.mjs";
|
|
5
|
+
import { tv } from "../../lib/tv.mjs";
|
|
6
|
+
import { useThemeScopeProps } from "../../lib/theme/theme-scope.mjs";
|
|
7
|
+
import { useParentOverlayKind, withOverlayLayer } from "../../lib/overlay-depth.mjs";
|
|
8
|
+
import { Button } from "../button/button.mjs";
|
|
9
|
+
import { DialogSheetReset } from "../dialog/dialog-sheet-context.mjs";
|
|
10
|
+
import { Dialog } from "@base-ui/react/dialog";
|
|
11
|
+
import { X } from "lucide-react";
|
|
12
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
13
|
+
//#region src/components/alert-dialog/alert-dialog.tsx
|
|
14
|
+
const alertDialog = tv({
|
|
15
|
+
slots: {
|
|
16
|
+
overlay: ["fixed inset-0 z-50 bg-layer-backdrop"],
|
|
17
|
+
content: [
|
|
18
|
+
"fixed top-1/2 left-1/2 z-50 grid w-[calc(100%-2rem)] -translate-1/2 outline-none",
|
|
19
|
+
decisionWidth,
|
|
20
|
+
"overflow-clip rounded-dialog bg-layer-popover text-foreground",
|
|
21
|
+
"shadow-float ring-1 ring-line-seam"
|
|
22
|
+
],
|
|
23
|
+
header: [
|
|
24
|
+
"grid grid-cols-[minmax(0,1fr)_max-content] items-center min-w-0",
|
|
25
|
+
"gap-2 px-5 pt-5",
|
|
26
|
+
headEdgePull
|
|
27
|
+
],
|
|
28
|
+
body: [
|
|
29
|
+
"min-w-0",
|
|
30
|
+
"px-5 pt-1.5 pb-5 first:pt-5",
|
|
31
|
+
"font-sans text-subhead text-foreground-muted"
|
|
32
|
+
],
|
|
33
|
+
footer: [
|
|
34
|
+
"flex min-w-0 items-center justify-end",
|
|
35
|
+
...stackedActions,
|
|
36
|
+
"gap-2 px-5 pb-5 first:pt-5 [[data-slot=alert-dialog-header]+&]:pt-5"
|
|
37
|
+
],
|
|
38
|
+
title: ["m-0 min-w-0 text-foreground", "font-sans text-headline font-bold"],
|
|
39
|
+
description: ["m-0", "font-sans text-subhead text-foreground-muted"]
|
|
40
|
+
},
|
|
41
|
+
variants: { nested: {
|
|
42
|
+
false: {},
|
|
43
|
+
true: { overlay: ["bg-layer-backdrop-nested"] }
|
|
44
|
+
} }
|
|
45
|
+
});
|
|
46
|
+
function AlertDialog({ children, ...props }) {
|
|
47
|
+
return /* @__PURE__ */ jsx(Dialog.Root, {
|
|
48
|
+
"data-slot": "alert-dialog",
|
|
49
|
+
...props,
|
|
50
|
+
children: withOverlayLayer("dialog", props.modal !== false, children)
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
function AlertDialogTrigger(props) {
|
|
54
|
+
return /* @__PURE__ */ jsx(Dialog.Trigger, {
|
|
55
|
+
"data-slot": "alert-dialog-trigger",
|
|
56
|
+
...props
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
function AlertDialogPortal(props) {
|
|
60
|
+
return /* @__PURE__ */ jsx(Dialog.Portal, {
|
|
61
|
+
"data-slot": "alert-dialog-portal",
|
|
62
|
+
...useThemeScopeProps(props)
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
function AlertDialogClose({ className, variant, size, children, "aria-label": ariaLabel, ...props }) {
|
|
66
|
+
return /* @__PURE__ */ jsx(Dialog.Close, {
|
|
67
|
+
"data-slot": "alert-dialog-close",
|
|
68
|
+
render: /* @__PURE__ */ jsx(Button, {
|
|
69
|
+
variant: variant ?? "ghost",
|
|
70
|
+
size: size ?? "icon-md",
|
|
71
|
+
"aria-label": ariaLabel ?? "Close",
|
|
72
|
+
className: cn("-my-1.5", className)
|
|
73
|
+
}),
|
|
74
|
+
...props,
|
|
75
|
+
children: children ?? /* @__PURE__ */ jsx(X, { className: "size-4.5" })
|
|
76
|
+
});
|
|
77
|
+
}
|
|
78
|
+
function AlertDialogOverlay({ className, ...props }) {
|
|
79
|
+
const nested = useParentOverlayKind() != null;
|
|
80
|
+
const { overlay } = alertDialog({ nested });
|
|
81
|
+
return /* @__PURE__ */ jsx(Dialog.Backdrop, {
|
|
82
|
+
"data-slot": "alert-dialog-overlay",
|
|
83
|
+
"data-nested": nested ? "" : void 0,
|
|
84
|
+
forceRender: true,
|
|
85
|
+
className: overlay({ className }),
|
|
86
|
+
...props
|
|
87
|
+
});
|
|
88
|
+
}
|
|
89
|
+
function AlertDialogContent({ className, children, portalProps, overlay, ...props }) {
|
|
90
|
+
const { content } = alertDialog();
|
|
91
|
+
return /* @__PURE__ */ jsxs(AlertDialogPortal, {
|
|
92
|
+
...portalProps,
|
|
93
|
+
children: [overlay === false ? null : /* @__PURE__ */ jsx(AlertDialogOverlay, { ...overlay }), /* @__PURE__ */ jsx(Dialog.Popup, {
|
|
94
|
+
"data-slot": "alert-dialog-content",
|
|
95
|
+
className: content({ className }),
|
|
96
|
+
...props,
|
|
97
|
+
role: "alertdialog",
|
|
98
|
+
children: /* @__PURE__ */ jsx(DialogSheetReset, { children })
|
|
99
|
+
})]
|
|
100
|
+
});
|
|
101
|
+
}
|
|
102
|
+
function AlertDialogHeader({ className, ...props }) {
|
|
103
|
+
const { header } = alertDialog();
|
|
104
|
+
return /* @__PURE__ */ jsx("div", {
|
|
105
|
+
"data-slot": "alert-dialog-header",
|
|
106
|
+
className: header({ className }),
|
|
107
|
+
...props
|
|
108
|
+
});
|
|
109
|
+
}
|
|
110
|
+
function AlertDialogBody({ className, ...props }) {
|
|
111
|
+
const { body } = alertDialog();
|
|
112
|
+
return /* @__PURE__ */ jsx("div", {
|
|
113
|
+
"data-slot": "alert-dialog-body",
|
|
114
|
+
className: body({ className }),
|
|
115
|
+
...props
|
|
116
|
+
});
|
|
117
|
+
}
|
|
118
|
+
function AlertDialogFooter({ className, ref, ...props }) {
|
|
119
|
+
const { footer } = alertDialog();
|
|
120
|
+
const [stacked, rowRef] = useStackedActions(ref);
|
|
121
|
+
return /* @__PURE__ */ jsx("div", {
|
|
122
|
+
"data-slot": "alert-dialog-footer",
|
|
123
|
+
ref: rowRef,
|
|
124
|
+
className: footer({ className }),
|
|
125
|
+
...stacked ? { "data-stacked": "" } : {},
|
|
126
|
+
...props
|
|
127
|
+
});
|
|
128
|
+
}
|
|
129
|
+
function AlertDialogTitle({ className, ...props }) {
|
|
130
|
+
const { title } = alertDialog();
|
|
131
|
+
return /* @__PURE__ */ jsx(Dialog.Title, {
|
|
132
|
+
"data-slot": "alert-dialog-title",
|
|
133
|
+
className: title({ className }),
|
|
134
|
+
...props
|
|
135
|
+
});
|
|
136
|
+
}
|
|
137
|
+
function AlertDialogDescription({ className, ...props }) {
|
|
138
|
+
const { description } = alertDialog();
|
|
139
|
+
return /* @__PURE__ */ jsx(Dialog.Description, {
|
|
140
|
+
"data-slot": "alert-dialog-description",
|
|
141
|
+
className: description({ className }),
|
|
142
|
+
...props
|
|
143
|
+
});
|
|
144
|
+
}
|
|
145
|
+
function AlertDialogAction(props) {
|
|
146
|
+
return /* @__PURE__ */ jsx(Button, {
|
|
147
|
+
"data-slot": "alert-dialog-action",
|
|
148
|
+
...props
|
|
149
|
+
});
|
|
150
|
+
}
|
|
151
|
+
function AlertDialogCancel({ className, variant, size, ...props }) {
|
|
152
|
+
return /* @__PURE__ */ jsx(Dialog.Close, {
|
|
153
|
+
"data-slot": "alert-dialog-cancel",
|
|
154
|
+
render: /* @__PURE__ */ jsx(Button, {
|
|
155
|
+
className,
|
|
156
|
+
variant: variant ?? "ghost",
|
|
157
|
+
size: size ?? "md"
|
|
158
|
+
}),
|
|
159
|
+
...props
|
|
160
|
+
});
|
|
161
|
+
}
|
|
162
|
+
//#endregion
|
|
163
|
+
export { AlertDialog, AlertDialogAction, AlertDialogBody, AlertDialogCancel, AlertDialogClose, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { AlertDialog, AlertDialogAction, AlertDialogActionProps, AlertDialogBody, AlertDialogBodyProps, AlertDialogCancel, AlertDialogCancelProps, AlertDialogClose, AlertDialogCloseProps, AlertDialogContent, AlertDialogContentProps, AlertDialogDescription, AlertDialogDescriptionProps, AlertDialogFooter, AlertDialogFooterProps, AlertDialogHeader, AlertDialogHeaderProps, AlertDialogOverlay, AlertDialogOverlayProps, AlertDialogPortal, AlertDialogPortalProps, AlertDialogProps, AlertDialogTitle, AlertDialogTitleProps, AlertDialogTrigger, AlertDialogTriggerProps } from "./alert-dialog.mjs";
|
|
2
|
+
export { AlertDialog, AlertDialogAction, type AlertDialogActionProps, AlertDialogBody, type AlertDialogBodyProps, AlertDialogCancel, type AlertDialogCancelProps, AlertDialogClose, type AlertDialogCloseProps, AlertDialogContent, type AlertDialogContentProps, AlertDialogDescription, type AlertDialogDescriptionProps, AlertDialogFooter, type AlertDialogFooterProps, AlertDialogHeader, type AlertDialogHeaderProps, AlertDialogOverlay, type AlertDialogOverlayProps, AlertDialogPortal, type AlertDialogPortalProps, type AlertDialogProps, AlertDialogTitle, type AlertDialogTitleProps, AlertDialogTrigger, type AlertDialogTriggerProps };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ButtonProps } from "../button/button.mjs";
|
|
2
|
+
import "../button/index.mjs";
|
|
3
|
+
import { Dialog, DialogClose, DialogContentProps, DialogTitleProps, DialogTrigger } from "../dialog/dialog.mjs";
|
|
4
|
+
import "../dialog/index.mjs";
|
|
5
|
+
import { ComponentPropsWithRef } from "react";
|
|
6
|
+
//#region src/components/announcement-dialog/announcement-dialog.d.ts
|
|
7
|
+
export declare function AnnouncementDialogContent({ className, initialFocus, ref, ...props }: DialogContentProps): import("react").JSX.Element;
|
|
8
|
+
export declare function AnnouncementDialogBody({ className, ...props }: ComponentPropsWithRef<"div">): import("react").JSX.Element;
|
|
9
|
+
export declare function AnnouncementDialogHeader({ className, ...props }: ComponentPropsWithRef<"div">): import("react").JSX.Element;
|
|
10
|
+
export declare function AnnouncementDialogLabel({ className, children, ...props }: ComponentPropsWithRef<"div">): import("react").JSX.Element;
|
|
11
|
+
export declare function AnnouncementDialogTitle({ className, ...props }: DialogTitleProps): import("react").JSX.Element;
|
|
12
|
+
export declare function AnnouncementDialogPicture({ className, ...props }: ComponentPropsWithRef<"div">): import("react").JSX.Element;
|
|
13
|
+
export declare function AnnouncementDialogText({ className, ...props }: ComponentPropsWithRef<"div">): import("react").JSX.Element;
|
|
14
|
+
export declare function AnnouncementDialogFooter({ className, ...props }: ComponentPropsWithRef<"div">): import("react").JSX.Element;
|
|
15
|
+
export declare function AnnouncementDialogAction({ className, ...props }: Omit<ButtonProps, "variant">): import("react").JSX.Element;
|
|
16
|
+
export declare function AnnouncementDialogSecondaryAction({ className, ...props }: Omit<ButtonProps, "variant">): import("react").JSX.Element;
|
|
17
|
+
//#endregion
|
|
18
|
+
export { Dialog as AnnouncementDialog, DialogClose as AnnouncementDialogClose, DialogTrigger as AnnouncementDialogTrigger };
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
import { tv } from "../../lib/tv.mjs";
|
|
2
|
+
import { Button } from "../button/button.mjs";
|
|
3
|
+
import { Dialog, DialogClose, DialogContent, DialogTitle, DialogTrigger } from "../dialog/dialog.mjs";
|
|
4
|
+
import { useCallback, useRef } from "react";
|
|
5
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
+
//#region src/components/announcement-dialog/announcement-dialog.tsx
|
|
7
|
+
const announcement = tv({ slots: {
|
|
8
|
+
content: ["@container/announcement max-w-xl gap-0 overflow-clip p-0"],
|
|
9
|
+
body: [
|
|
10
|
+
"min-h-0 max-h-[70dvh] overflow-y-auto pb-5",
|
|
11
|
+
"[&_[data-slot=announcement-picture]+[data-slot=announcement-text]]:mt-5",
|
|
12
|
+
"px-5 pt-5"
|
|
13
|
+
],
|
|
14
|
+
header: ["flex min-w-0 items-center justify-between gap-3"],
|
|
15
|
+
label: ["flex min-w-0 items-center gap-2 wrap-break-word", "text-caption text-foreground-muted"],
|
|
16
|
+
dot: ["shrink-0", "size-2.5 rounded-[2px] border-[1.5px] border-sticker-ink bg-attention-400"],
|
|
17
|
+
title: ["mt-3 wrap-break-word normal-case", "text-headline font-bold tracking-normal"],
|
|
18
|
+
picture: ["mt-5 h-44 w-full overflow-hidden border border-line-hairline [&_img]:size-full [&_img]:object-contain", "rounded-container bg-fill-muted"],
|
|
19
|
+
text: [
|
|
20
|
+
"mt-3 min-w-0 wrap-break-word [&_p+p]:mt-3",
|
|
21
|
+
"[&_ul]:list-disc [&_ol]:list-decimal [&_ul]:pl-5 [&_ol]:pl-5 [&_h1]:text-xl [&_h2]:text-lg [&_h3]:text-base [&_h1]:font-bold [&_h2]:font-bold [&_h3]:font-bold [&_pre]:max-w-full [&_pre]:overflow-x-auto",
|
|
22
|
+
"text-subhead text-foreground-muted"
|
|
23
|
+
],
|
|
24
|
+
footer: ["flex shrink-0 flex-wrap items-center justify-between gap-3 border-line-hairline py-4 @max-[28rem]/announcement:flex-col", "border-t-0 px-5 pt-0 pb-5"],
|
|
25
|
+
action: ["ml-auto h-auto min-h-8 min-w-0 max-w-full py-1 whitespace-normal text-center font-bold @max-[28rem]/announcement:ml-0 @max-[28rem]/announcement:w-full"],
|
|
26
|
+
secondary: ["min-w-0 max-w-full whitespace-normal @max-[28rem]/announcement:w-full"]
|
|
27
|
+
} });
|
|
28
|
+
function AnnouncementDialogContent({ className, initialFocus, ref, ...props }) {
|
|
29
|
+
const localRef = useRef(null);
|
|
30
|
+
const setRef = useCallback((node) => {
|
|
31
|
+
localRef.current = node;
|
|
32
|
+
if (typeof ref === "function") return ref(node);
|
|
33
|
+
if (ref) ref.current = node;
|
|
34
|
+
}, [ref]);
|
|
35
|
+
const focusAction = useCallback(() => localRef.current?.querySelector("[data-announcement-action]:not(:disabled)") ?? true, []);
|
|
36
|
+
const { content } = announcement();
|
|
37
|
+
return /* @__PURE__ */ jsx(DialogContent, {
|
|
38
|
+
ref: setRef,
|
|
39
|
+
initialFocus: initialFocus ?? focusAction,
|
|
40
|
+
className: content({ className }),
|
|
41
|
+
...props
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
function AnnouncementDialogBody({ className, ...props }) {
|
|
45
|
+
const { body } = announcement();
|
|
46
|
+
return /* @__PURE__ */ jsx("div", {
|
|
47
|
+
"data-slot": "announcement-body",
|
|
48
|
+
className: body({ className }),
|
|
49
|
+
...props
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
function AnnouncementDialogHeader({ className, ...props }) {
|
|
53
|
+
const { header } = announcement();
|
|
54
|
+
return /* @__PURE__ */ jsx("div", {
|
|
55
|
+
"data-slot": "announcement-header",
|
|
56
|
+
className: header({ className }),
|
|
57
|
+
...props
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
function AnnouncementDialogLabel({ className, children, ...props }) {
|
|
61
|
+
const { label, dot } = announcement();
|
|
62
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
63
|
+
"data-slot": "announcement-label",
|
|
64
|
+
className: label({ className }),
|
|
65
|
+
...props,
|
|
66
|
+
children: [/* @__PURE__ */ jsx("span", {
|
|
67
|
+
"aria-hidden": "true",
|
|
68
|
+
className: dot()
|
|
69
|
+
}), children]
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
function AnnouncementDialogTitle({ className, ...props }) {
|
|
73
|
+
const { title } = announcement();
|
|
74
|
+
return /* @__PURE__ */ jsx(DialogTitle, {
|
|
75
|
+
className: title({ className }),
|
|
76
|
+
...props
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
function AnnouncementDialogPicture({ className, ...props }) {
|
|
80
|
+
const { picture } = announcement();
|
|
81
|
+
return /* @__PURE__ */ jsx("div", {
|
|
82
|
+
"data-slot": "announcement-picture",
|
|
83
|
+
className: picture({ className }),
|
|
84
|
+
...props
|
|
85
|
+
});
|
|
86
|
+
}
|
|
87
|
+
function AnnouncementDialogText({ className, ...props }) {
|
|
88
|
+
const { text } = announcement();
|
|
89
|
+
return /* @__PURE__ */ jsx("div", {
|
|
90
|
+
"data-slot": "announcement-text",
|
|
91
|
+
className: text({ className }),
|
|
92
|
+
...props
|
|
93
|
+
});
|
|
94
|
+
}
|
|
95
|
+
function AnnouncementDialogFooter({ className, ...props }) {
|
|
96
|
+
const { footer } = announcement();
|
|
97
|
+
return /* @__PURE__ */ jsx("div", {
|
|
98
|
+
"data-slot": "announcement-footer",
|
|
99
|
+
className: footer({ className }),
|
|
100
|
+
...props
|
|
101
|
+
});
|
|
102
|
+
}
|
|
103
|
+
function AnnouncementDialogAction({ className, ...props }) {
|
|
104
|
+
const { action } = announcement();
|
|
105
|
+
return /* @__PURE__ */ jsx(Button, {
|
|
106
|
+
variant: "accent",
|
|
107
|
+
"data-announcement-action": true,
|
|
108
|
+
className: action({ className }),
|
|
109
|
+
...props
|
|
110
|
+
});
|
|
111
|
+
}
|
|
112
|
+
function AnnouncementDialogSecondaryAction({ className, ...props }) {
|
|
113
|
+
const { secondary } = announcement();
|
|
114
|
+
return /* @__PURE__ */ jsx(Button, {
|
|
115
|
+
variant: "ghost",
|
|
116
|
+
className: secondary({ className }),
|
|
117
|
+
...props
|
|
118
|
+
});
|
|
119
|
+
}
|
|
120
|
+
//#endregion
|
|
121
|
+
export { Dialog as AnnouncementDialog, AnnouncementDialogAction, AnnouncementDialogBody, DialogClose as AnnouncementDialogClose, AnnouncementDialogContent, AnnouncementDialogFooter, AnnouncementDialogHeader, AnnouncementDialogLabel, AnnouncementDialogPicture, AnnouncementDialogSecondaryAction, AnnouncementDialogText, AnnouncementDialogTitle, DialogTrigger as AnnouncementDialogTrigger };
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { Dialog, DialogClose, DialogTrigger } from "../dialog/dialog.mjs";
|
|
2
|
+
import { AnnouncementDialogAction, AnnouncementDialogBody, AnnouncementDialogContent, AnnouncementDialogFooter, AnnouncementDialogHeader, AnnouncementDialogLabel, AnnouncementDialogPicture, AnnouncementDialogSecondaryAction, AnnouncementDialogText, AnnouncementDialogTitle } from "./announcement-dialog.mjs";
|
|
3
|
+
export { Dialog as AnnouncementDialog, AnnouncementDialogAction, AnnouncementDialogBody, DialogClose as AnnouncementDialogClose, AnnouncementDialogContent, AnnouncementDialogFooter, AnnouncementDialogHeader, AnnouncementDialogLabel, AnnouncementDialogPicture, AnnouncementDialogSecondaryAction, AnnouncementDialogText, AnnouncementDialogTitle, DialogTrigger as AnnouncementDialogTrigger };
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { StatusProps } from "../status/status.mjs";
|
|
2
|
+
import { useRender } from "@base-ui/react/use-render";
|
|
3
|
+
//#region src/components/app-rail/app-rail.d.ts
|
|
4
|
+
export type AppRailRootProps = useRender.ComponentProps<"div">;
|
|
5
|
+
export declare function AppRailRoot({ className, render, ...props }: AppRailRootProps): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
|
|
6
|
+
export type AppRailHeaderProps = useRender.ComponentProps<"div">;
|
|
7
|
+
export declare function AppRailHeader({ className, render, ...props }: AppRailHeaderProps): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
|
|
8
|
+
export type AppRailNavProps = useRender.ComponentProps<"nav">;
|
|
9
|
+
export declare function AppRailNav({ className, render, ...props }: AppRailNavProps): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
|
|
10
|
+
export type AppRailItemProps = useRender.ComponentProps<"button"> & {
|
|
11
|
+
nativeButton?: boolean;
|
|
12
|
+
selected?: boolean;
|
|
13
|
+
};
|
|
14
|
+
export declare function AppRailItem({ nativeButton, selected, disabled, className, render, ...props }: AppRailItemProps): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
|
|
15
|
+
export type AppRailItemIconProps = useRender.ComponentProps<"span">;
|
|
16
|
+
export declare function AppRailItemIcon({ className, render, ...props }: AppRailItemIconProps): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
|
|
17
|
+
/** The pink pixel on a rail item: something there waits for you. */
|
|
18
|
+
export type AppRailItemAttentionProps = {
|
|
19
|
+
/** Read to assistive tech; the pixel itself is decorative. */
|
|
20
|
+
title?: string;
|
|
21
|
+
};
|
|
22
|
+
export declare function AppRailItemAttention({ title }: AppRailItemAttentionProps): import("react").JSX.Element;
|
|
23
|
+
export type AppRailItemLabelProps = useRender.ComponentProps<"span">;
|
|
24
|
+
export declare function AppRailItemLabel({ className, render, ...props }: AppRailItemLabelProps): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
|
|
25
|
+
export type AppRailItemBadgeProps = useRender.ComponentProps<"span">;
|
|
26
|
+
export declare function AppRailItemBadge({ className, render, ...props }: AppRailItemBadgeProps): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
|
|
27
|
+
export type AppRailItemIndicatorProps = StatusProps;
|
|
28
|
+
export declare function AppRailItemIndicator({ className, size, variant, ...props }: AppRailItemIndicatorProps): import("react").JSX.Element;
|
|
29
|
+
export type AppRailFooterProps = useRender.ComponentProps<"div">;
|
|
30
|
+
export declare function AppRailFooter({ className, render, ...props }: AppRailFooterProps): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
|
|
31
|
+
//#endregion
|