@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
|
@@ -0,0 +1,225 @@
|
|
|
1
|
+
import { StyledProps } from "../../lib/styled-props.mjs";
|
|
2
|
+
import { VariantProps } from "../../lib/tv.mjs";
|
|
3
|
+
import { ButtonProps } from "../button/button.mjs";
|
|
4
|
+
import { EmptyStateProps } from "../empty-state/empty-state.mjs";
|
|
5
|
+
import { useRender } from "@base-ui/react/use-render";
|
|
6
|
+
import { Popover } from "@base-ui/react/popover";
|
|
7
|
+
//#region src/components/notification-center/notification-center.d.ts
|
|
8
|
+
declare const notificationCenter: import("tailwind-variants/lite").TVReturnType<{
|
|
9
|
+
viewport: {
|
|
10
|
+
desktop: {
|
|
11
|
+
popup: string;
|
|
12
|
+
};
|
|
13
|
+
mobile: {
|
|
14
|
+
popup: string;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
size: {
|
|
18
|
+
sm: {
|
|
19
|
+
popup: string;
|
|
20
|
+
};
|
|
21
|
+
md: {
|
|
22
|
+
popup: string;
|
|
23
|
+
};
|
|
24
|
+
lg: {
|
|
25
|
+
popup: string;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
read: {
|
|
29
|
+
true: {
|
|
30
|
+
item: string[];
|
|
31
|
+
};
|
|
32
|
+
false: {
|
|
33
|
+
item: string[];
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
status: {
|
|
37
|
+
error: {
|
|
38
|
+
itemIcon: string[];
|
|
39
|
+
};
|
|
40
|
+
warning: {
|
|
41
|
+
itemIcon: string[];
|
|
42
|
+
};
|
|
43
|
+
info: {
|
|
44
|
+
itemIcon: string[];
|
|
45
|
+
};
|
|
46
|
+
success: {};
|
|
47
|
+
};
|
|
48
|
+
}, {
|
|
49
|
+
trigger: string[];
|
|
50
|
+
triggerIcon: string[];
|
|
51
|
+
triggerBell: string[];
|
|
52
|
+
triggerDot: string[];
|
|
53
|
+
popup: string[];
|
|
54
|
+
header: (string | string[])[];
|
|
55
|
+
title: string[];
|
|
56
|
+
count: string[];
|
|
57
|
+
scroller: string[];
|
|
58
|
+
list: never[];
|
|
59
|
+
item: string[];
|
|
60
|
+
itemRow: string[];
|
|
61
|
+
itemIcon: string[];
|
|
62
|
+
itemContent: string[];
|
|
63
|
+
itemTitle: string[];
|
|
64
|
+
itemBody: string[];
|
|
65
|
+
itemActions: string[];
|
|
66
|
+
actionButton: never[];
|
|
67
|
+
}, undefined, {
|
|
68
|
+
viewport: {
|
|
69
|
+
desktop: {
|
|
70
|
+
popup: string;
|
|
71
|
+
};
|
|
72
|
+
mobile: {
|
|
73
|
+
popup: string;
|
|
74
|
+
};
|
|
75
|
+
};
|
|
76
|
+
size: {
|
|
77
|
+
sm: {
|
|
78
|
+
popup: string;
|
|
79
|
+
};
|
|
80
|
+
md: {
|
|
81
|
+
popup: string;
|
|
82
|
+
};
|
|
83
|
+
lg: {
|
|
84
|
+
popup: string;
|
|
85
|
+
};
|
|
86
|
+
};
|
|
87
|
+
read: {
|
|
88
|
+
true: {
|
|
89
|
+
item: string[];
|
|
90
|
+
};
|
|
91
|
+
false: {
|
|
92
|
+
item: string[];
|
|
93
|
+
};
|
|
94
|
+
};
|
|
95
|
+
status: {
|
|
96
|
+
error: {
|
|
97
|
+
itemIcon: string[];
|
|
98
|
+
};
|
|
99
|
+
warning: {
|
|
100
|
+
itemIcon: string[];
|
|
101
|
+
};
|
|
102
|
+
info: {
|
|
103
|
+
itemIcon: string[];
|
|
104
|
+
};
|
|
105
|
+
success: {};
|
|
106
|
+
};
|
|
107
|
+
}, {
|
|
108
|
+
trigger: string[];
|
|
109
|
+
triggerIcon: string[];
|
|
110
|
+
triggerBell: string[];
|
|
111
|
+
triggerDot: string[];
|
|
112
|
+
popup: string[];
|
|
113
|
+
header: (string | string[])[];
|
|
114
|
+
title: string[];
|
|
115
|
+
count: string[];
|
|
116
|
+
scroller: string[];
|
|
117
|
+
list: never[];
|
|
118
|
+
item: string[];
|
|
119
|
+
itemRow: string[];
|
|
120
|
+
itemIcon: string[];
|
|
121
|
+
itemContent: string[];
|
|
122
|
+
itemTitle: string[];
|
|
123
|
+
itemBody: string[];
|
|
124
|
+
itemActions: string[];
|
|
125
|
+
actionButton: never[];
|
|
126
|
+
}, import("tailwind-variants/lite").TVReturnTypeLike<{
|
|
127
|
+
viewport: {
|
|
128
|
+
desktop: {
|
|
129
|
+
popup: string;
|
|
130
|
+
};
|
|
131
|
+
mobile: {
|
|
132
|
+
popup: string;
|
|
133
|
+
};
|
|
134
|
+
};
|
|
135
|
+
size: {
|
|
136
|
+
sm: {
|
|
137
|
+
popup: string;
|
|
138
|
+
};
|
|
139
|
+
md: {
|
|
140
|
+
popup: string;
|
|
141
|
+
};
|
|
142
|
+
lg: {
|
|
143
|
+
popup: string;
|
|
144
|
+
};
|
|
145
|
+
};
|
|
146
|
+
read: {
|
|
147
|
+
true: {
|
|
148
|
+
item: string[];
|
|
149
|
+
};
|
|
150
|
+
false: {
|
|
151
|
+
item: string[];
|
|
152
|
+
};
|
|
153
|
+
};
|
|
154
|
+
status: {
|
|
155
|
+
error: {
|
|
156
|
+
itemIcon: string[];
|
|
157
|
+
};
|
|
158
|
+
warning: {
|
|
159
|
+
itemIcon: string[];
|
|
160
|
+
};
|
|
161
|
+
info: {
|
|
162
|
+
itemIcon: string[];
|
|
163
|
+
};
|
|
164
|
+
success: {};
|
|
165
|
+
};
|
|
166
|
+
}, {
|
|
167
|
+
trigger: string[];
|
|
168
|
+
triggerIcon: string[];
|
|
169
|
+
triggerBell: string[];
|
|
170
|
+
triggerDot: string[];
|
|
171
|
+
popup: string[];
|
|
172
|
+
header: (string | string[])[];
|
|
173
|
+
title: string[];
|
|
174
|
+
count: string[];
|
|
175
|
+
scroller: string[];
|
|
176
|
+
list: never[];
|
|
177
|
+
item: string[];
|
|
178
|
+
itemRow: string[];
|
|
179
|
+
itemIcon: string[];
|
|
180
|
+
itemContent: string[];
|
|
181
|
+
itemTitle: string[];
|
|
182
|
+
itemBody: string[];
|
|
183
|
+
itemActions: string[];
|
|
184
|
+
actionButton: never[];
|
|
185
|
+
}>>;
|
|
186
|
+
export type NotificationCenterProps = Popover.Root.Props;
|
|
187
|
+
export declare function NotificationCenter({ modal, ...props }: NotificationCenterProps): import("react").JSX.Element;
|
|
188
|
+
export type NotificationCenterTriggerProps = StyledProps<Popover.Trigger.Props>;
|
|
189
|
+
export declare function NotificationCenterTrigger({ className, children, ...props }: NotificationCenterTriggerProps): import("react").JSX.Element;
|
|
190
|
+
export type NotificationCenterPortalProps = Popover.Portal.Props;
|
|
191
|
+
export type NotificationCenterPopupProps = StyledProps<Popover.Popup.Props> & Pick<VariantProps<typeof notificationCenter>, "size" | "viewport"> & Pick<Popover.Positioner.Props, "align" | "alignOffset" | "anchor" | "arrowPadding" | "collisionAvoidance" | "collisionBoundary" | "collisionPadding" | "disableAnchorTracking" | "positionMethod" | "side" | "sideOffset" | "sticky"> & {
|
|
192
|
+
portalProps?: NotificationCenterPortalProps;
|
|
193
|
+
};
|
|
194
|
+
export declare function NotificationCenterPopup({ viewport, size, className, initialFocus, align, alignOffset, anchor, arrowPadding, collisionAvoidance, collisionBoundary, collisionPadding, disableAnchorTracking, positionMethod, side, sideOffset, sticky, portalProps, ...props }: NotificationCenterPopupProps): import("react").JSX.Element;
|
|
195
|
+
export type NotificationCenterHeaderProps = useRender.ComponentProps<"div">;
|
|
196
|
+
export declare function NotificationCenterHeader({ render, className, ...props }: NotificationCenterHeaderProps): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
|
|
197
|
+
export type NotificationCenterTitleProps = useRender.ComponentProps<"span">;
|
|
198
|
+
export declare function NotificationCenterTitle({ render, className, ...props }: NotificationCenterTitleProps): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
|
|
199
|
+
export type NotificationCenterCountProps = useRender.ComponentProps<"span">;
|
|
200
|
+
export declare function NotificationCenterCount({ render, className, ...props }: NotificationCenterCountProps): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
|
|
201
|
+
export type NotificationCenterScrollerProps = useRender.ComponentProps<"div">;
|
|
202
|
+
export declare function NotificationCenterScroller({ render, className, ...props }: NotificationCenterScrollerProps): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
|
|
203
|
+
export type NotificationCenterListProps = useRender.ComponentProps<"ul">;
|
|
204
|
+
export declare function NotificationCenterList({ render, className, ...props }: NotificationCenterListProps): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
|
|
205
|
+
export type NotificationCenterItemProps = useRender.ComponentProps<"li"> & Pick<VariantProps<typeof notificationCenter>, "read">;
|
|
206
|
+
export declare function NotificationCenterItem({ read, render, className, ...props }: NotificationCenterItemProps): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
|
|
207
|
+
export type NotificationCenterItemRowProps = useRender.ComponentProps<"div">;
|
|
208
|
+
export declare function NotificationCenterItemRow({ render, className, ...props }: NotificationCenterItemRowProps): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
|
|
209
|
+
export type NotificationCenterItemIconProps = useRender.ComponentProps<"div"> & Pick<VariantProps<typeof notificationCenter>, "status">;
|
|
210
|
+
export declare function NotificationCenterItemIcon({ status, render, className, children, ...props }: NotificationCenterItemIconProps): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
|
|
211
|
+
export type NotificationCenterItemContentProps = useRender.ComponentProps<"div">;
|
|
212
|
+
export declare function NotificationCenterItemContent({ render, className, ...props }: NotificationCenterItemContentProps): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
|
|
213
|
+
export type NotificationCenterItemTitleProps = useRender.ComponentProps<"div">;
|
|
214
|
+
export declare function NotificationCenterItemTitle({ render, className, ...props }: NotificationCenterItemTitleProps): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
|
|
215
|
+
export type NotificationCenterItemBodyProps = useRender.ComponentProps<"div">;
|
|
216
|
+
export declare function NotificationCenterItemBody({ render, className, ...props }: NotificationCenterItemBodyProps): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
|
|
217
|
+
export type NotificationCenterItemActionsProps = useRender.ComponentProps<"div">;
|
|
218
|
+
export declare function NotificationCenterItemActions({ render, className, ...props }: NotificationCenterItemActionsProps): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
|
|
219
|
+
export type NotificationCenterActionButtonProps = Omit<ButtonProps, "className" | "size" | "variant"> & {
|
|
220
|
+
className?: string;
|
|
221
|
+
};
|
|
222
|
+
export declare function NotificationCenterActionButton({ className, ...props }: NotificationCenterActionButtonProps): import("react").JSX.Element;
|
|
223
|
+
export type NotificationCenterEmptyStateProps = EmptyStateProps;
|
|
224
|
+
export declare function NotificationCenterEmptyState(props: NotificationCenterEmptyStateProps): import("react").JSX.Element;
|
|
225
|
+
//#endregion
|
|
@@ -0,0 +1,340 @@
|
|
|
1
|
+
import { headEdgePull } from "../../lib/head-edges.mjs";
|
|
2
|
+
import { tv } from "../../lib/tv.mjs";
|
|
3
|
+
import { useThemeScopeProps } from "../../lib/theme/theme-scope.mjs";
|
|
4
|
+
import { Button } from "../button/button.mjs";
|
|
5
|
+
import { usePopupCollisionPadding } from "../../lib/frame-insets.mjs";
|
|
6
|
+
import { Status } from "../status/status.mjs";
|
|
7
|
+
import { EmptyState } from "../empty-state/empty-state.mjs";
|
|
8
|
+
import { AlertTriangle, Bell, CheckCircle2, Info } from "lucide-react";
|
|
9
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
10
|
+
import { mergeProps } from "@base-ui/react/merge-props";
|
|
11
|
+
import { useRender } from "@base-ui/react/use-render";
|
|
12
|
+
import { Popover } from "@base-ui/react/popover";
|
|
13
|
+
//#region src/components/notification-center/notification-center.tsx
|
|
14
|
+
const notificationCenter = tv({
|
|
15
|
+
slots: {
|
|
16
|
+
trigger: [
|
|
17
|
+
"relative inline-flex size-10 items-center justify-center overflow-visible p-0",
|
|
18
|
+
"rounded-control border-[1.5px] border-transparent bg-transparent text-foreground-on-frame",
|
|
19
|
+
"select-none outline-none",
|
|
20
|
+
"hover:bg-fill-frame-medium active:bg-fill-frame-medium data-popup-open:bg-fill-frame-medium",
|
|
21
|
+
"focus-visible:shadow-focus",
|
|
22
|
+
"[&_svg]:size-5 [&_svg]:shrink-0"
|
|
23
|
+
],
|
|
24
|
+
triggerIcon: ["relative inline-flex size-5 items-center justify-center"],
|
|
25
|
+
triggerBell: ["size-5 shrink-0 text-current"],
|
|
26
|
+
triggerDot: ["pointer-events-none absolute top-1.5 right-1.5"],
|
|
27
|
+
popup: [
|
|
28
|
+
"flex flex-col overflow-hidden",
|
|
29
|
+
"rounded-container bg-layer-popover text-foreground",
|
|
30
|
+
"shadow-float ring-1 ring-line-seam"
|
|
31
|
+
],
|
|
32
|
+
header: [
|
|
33
|
+
"flex items-center px-4",
|
|
34
|
+
"min-h-13 gap-2 border-b border-line-seam py-0",
|
|
35
|
+
headEdgePull
|
|
36
|
+
],
|
|
37
|
+
title: ["font-sans text-headline text-foreground"],
|
|
38
|
+
count: ["ml-auto", "font-mono text-mono-meta text-foreground-hint"],
|
|
39
|
+
scroller: ["min-h-0 flex-1 overflow-y-auto overscroll-contain"],
|
|
40
|
+
list: [],
|
|
41
|
+
item: [
|
|
42
|
+
"group/notification-center-item relative px-4 py-3",
|
|
43
|
+
"before:pointer-events-none before:absolute before:top-0 before:right-0 before:left-4 before:hidden before:border-t before:border-line-hairline",
|
|
44
|
+
"not-first:before:block has-data-[slot=notification-center-item-icon]:before:left-[63px]"
|
|
45
|
+
],
|
|
46
|
+
itemRow: ["flex items-start", "gap-3"],
|
|
47
|
+
itemIcon: [
|
|
48
|
+
"flex shrink-0 items-center justify-center",
|
|
49
|
+
"mt-0 size-[35px] rounded-sticker bg-fill-muted text-foreground-muted",
|
|
50
|
+
"[&_svg]:size-[18px]"
|
|
51
|
+
],
|
|
52
|
+
itemContent: ["min-w-0 flex-1"],
|
|
53
|
+
itemTitle: [
|
|
54
|
+
"wrap-break-word",
|
|
55
|
+
"font-sans text-subhead font-bold text-foreground",
|
|
56
|
+
"group-data-read/notification-center-item:font-semibold group-data-read/notification-center-item:text-foreground-muted"
|
|
57
|
+
],
|
|
58
|
+
itemBody: ["mt-0.5 wrap-break-word", "line-clamp-2 font-sans text-callout text-foreground-muted"],
|
|
59
|
+
itemActions: ["flex items-center", "mt-2 ml-0 flex-wrap justify-start gap-2"],
|
|
60
|
+
actionButton: []
|
|
61
|
+
},
|
|
62
|
+
variants: {
|
|
63
|
+
viewport: {
|
|
64
|
+
desktop: { popup: "w-[380px]" },
|
|
65
|
+
mobile: { popup: "w-[min(var(--available-width,calc(100vw-16px)),480px)]" }
|
|
66
|
+
},
|
|
67
|
+
size: {
|
|
68
|
+
sm: { popup: "h-56" },
|
|
69
|
+
md: { popup: "h-72" },
|
|
70
|
+
lg: { popup: "h-96" }
|
|
71
|
+
},
|
|
72
|
+
read: {
|
|
73
|
+
true: { item: ["opacity-100"] },
|
|
74
|
+
false: { item: [
|
|
75
|
+
"pr-[37px]",
|
|
76
|
+
"after:pointer-events-none after:absolute after:top-[calc(--spacing(3)+(var(--text-subhead--line-height)-10px)/2)] after:right-4 after:size-2.5",
|
|
77
|
+
"after:rounded-[2px] after:border-[1.5px] after:border-sticker-ink after:bg-attention-400"
|
|
78
|
+
] }
|
|
79
|
+
},
|
|
80
|
+
status: {
|
|
81
|
+
error: { itemIcon: ["bg-warning-soft text-foreground"] },
|
|
82
|
+
warning: { itemIcon: ["bg-warning-soft text-foreground"] },
|
|
83
|
+
info: { itemIcon: ["bg-info-soft text-foreground"] },
|
|
84
|
+
success: {}
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
defaultVariants: {
|
|
88
|
+
viewport: "desktop",
|
|
89
|
+
size: "md",
|
|
90
|
+
read: false,
|
|
91
|
+
status: "info"
|
|
92
|
+
}
|
|
93
|
+
});
|
|
94
|
+
/**
|
|
95
|
+
* On a phone the popup is as wide as the screen less 8px on each side, and the
|
|
96
|
+
* collision padding stops it 8px from the edge it is pushed against, so it
|
|
97
|
+
* lines up with the server list under the same top bar
|
|
98
|
+
* (design/foundations/elevation.md#popups).
|
|
99
|
+
*/
|
|
100
|
+
const PHONE_INSET = 8;
|
|
101
|
+
function NotificationCenter({ modal = false, ...props }) {
|
|
102
|
+
return /* @__PURE__ */ jsx(Popover.Root, {
|
|
103
|
+
modal,
|
|
104
|
+
...props
|
|
105
|
+
});
|
|
106
|
+
}
|
|
107
|
+
function NotificationCenterTriggerContent() {
|
|
108
|
+
const { triggerIcon, triggerBell, triggerDot } = notificationCenter();
|
|
109
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx("span", {
|
|
110
|
+
"aria-hidden": true,
|
|
111
|
+
className: triggerIcon(),
|
|
112
|
+
children: /* @__PURE__ */ jsx(Bell, {
|
|
113
|
+
className: triggerBell(),
|
|
114
|
+
strokeWidth: 2
|
|
115
|
+
})
|
|
116
|
+
}), /* @__PURE__ */ jsx(Status, {
|
|
117
|
+
"aria-hidden": true,
|
|
118
|
+
variant: "accent",
|
|
119
|
+
size: "md",
|
|
120
|
+
className: triggerDot()
|
|
121
|
+
})] });
|
|
122
|
+
}
|
|
123
|
+
function NotificationCenterTrigger({ className, children, ...props }) {
|
|
124
|
+
const { trigger } = notificationCenter();
|
|
125
|
+
return /* @__PURE__ */ jsx(Popover.Trigger, {
|
|
126
|
+
"data-slot": "notification-center-trigger",
|
|
127
|
+
className: trigger({ className }),
|
|
128
|
+
...props,
|
|
129
|
+
children: children ?? /* @__PURE__ */ jsx(NotificationCenterTriggerContent, {})
|
|
130
|
+
});
|
|
131
|
+
}
|
|
132
|
+
function NotificationCenterPortal(props) {
|
|
133
|
+
return /* @__PURE__ */ jsx(Popover.Portal, { ...useThemeScopeProps(props) });
|
|
134
|
+
}
|
|
135
|
+
function NotificationCenterFramePositioner({ collisionPadding, container, defaultCollisionPadding, ...props }) {
|
|
136
|
+
const padding = usePopupCollisionPadding(collisionPadding, defaultCollisionPadding, container);
|
|
137
|
+
return /* @__PURE__ */ jsx(Popover.Positioner, {
|
|
138
|
+
collisionPadding: padding,
|
|
139
|
+
...props
|
|
140
|
+
});
|
|
141
|
+
}
|
|
142
|
+
function NotificationCenterPopup({ viewport = "desktop", size = "md", className, initialFocus = false, align = "center", alignOffset = 0, anchor, arrowPadding, collisionAvoidance, collisionBoundary, collisionPadding, disableAnchorTracking, positionMethod = "fixed", side = "bottom", sideOffset = 4, sticky, portalProps, ...props }) {
|
|
143
|
+
const { popup } = notificationCenter({
|
|
144
|
+
viewport,
|
|
145
|
+
size
|
|
146
|
+
});
|
|
147
|
+
return /* @__PURE__ */ jsx(NotificationCenterPortal, {
|
|
148
|
+
...portalProps,
|
|
149
|
+
children: /* @__PURE__ */ jsx(NotificationCenterFramePositioner, {
|
|
150
|
+
align,
|
|
151
|
+
alignOffset,
|
|
152
|
+
anchor,
|
|
153
|
+
arrowPadding,
|
|
154
|
+
collisionAvoidance,
|
|
155
|
+
collisionBoundary,
|
|
156
|
+
collisionPadding,
|
|
157
|
+
container: portalProps?.container,
|
|
158
|
+
defaultCollisionPadding: viewport === "mobile" ? PHONE_INSET : 5,
|
|
159
|
+
disableAnchorTracking,
|
|
160
|
+
positionMethod,
|
|
161
|
+
side,
|
|
162
|
+
sideOffset,
|
|
163
|
+
sticky,
|
|
164
|
+
className: "isolate z-50 outline-none",
|
|
165
|
+
children: /* @__PURE__ */ jsx(Popover.Popup, {
|
|
166
|
+
"aria-label": props["aria-label"] ?? "Notification center",
|
|
167
|
+
"data-slot": "notification-center-popup",
|
|
168
|
+
"data-size": size,
|
|
169
|
+
"data-viewport": viewport,
|
|
170
|
+
initialFocus,
|
|
171
|
+
className: popup({ className }),
|
|
172
|
+
...props
|
|
173
|
+
})
|
|
174
|
+
})
|
|
175
|
+
});
|
|
176
|
+
}
|
|
177
|
+
function NotificationCenterHeader({ render, className, ...props }) {
|
|
178
|
+
const { header } = notificationCenter();
|
|
179
|
+
const defaultProps = { className: header({ className }) };
|
|
180
|
+
return useRender({
|
|
181
|
+
defaultTagName: "div",
|
|
182
|
+
render,
|
|
183
|
+
props: mergeProps(defaultProps, props),
|
|
184
|
+
state: { slot: "notification-center-header" }
|
|
185
|
+
});
|
|
186
|
+
}
|
|
187
|
+
function NotificationCenterTitle({ render, className, ...props }) {
|
|
188
|
+
const { title } = notificationCenter();
|
|
189
|
+
const defaultProps = { className: title({ className }) };
|
|
190
|
+
return useRender({
|
|
191
|
+
defaultTagName: "span",
|
|
192
|
+
render,
|
|
193
|
+
props: mergeProps(defaultProps, props),
|
|
194
|
+
state: { slot: "notification-center-title" }
|
|
195
|
+
});
|
|
196
|
+
}
|
|
197
|
+
function NotificationCenterCount({ render, className, ...props }) {
|
|
198
|
+
const { count } = notificationCenter();
|
|
199
|
+
const defaultProps = { className: count({ className }) };
|
|
200
|
+
return useRender({
|
|
201
|
+
defaultTagName: "span",
|
|
202
|
+
render,
|
|
203
|
+
props: mergeProps(defaultProps, props),
|
|
204
|
+
state: { slot: "notification-center-count" }
|
|
205
|
+
});
|
|
206
|
+
}
|
|
207
|
+
function NotificationCenterScroller({ render, className, ...props }) {
|
|
208
|
+
const { scroller } = notificationCenter();
|
|
209
|
+
const defaultProps = { className: scroller({ className }) };
|
|
210
|
+
return useRender({
|
|
211
|
+
defaultTagName: "div",
|
|
212
|
+
render,
|
|
213
|
+
props: mergeProps(defaultProps, props),
|
|
214
|
+
state: { slot: "notification-center-scroller" }
|
|
215
|
+
});
|
|
216
|
+
}
|
|
217
|
+
function NotificationCenterList({ render, className, ...props }) {
|
|
218
|
+
const { list } = notificationCenter();
|
|
219
|
+
const defaultProps = {
|
|
220
|
+
"aria-label": "Notifications",
|
|
221
|
+
className: list({ className })
|
|
222
|
+
};
|
|
223
|
+
return useRender({
|
|
224
|
+
defaultTagName: "ul",
|
|
225
|
+
render,
|
|
226
|
+
props: mergeProps(defaultProps, props),
|
|
227
|
+
state: { slot: "notification-center-list" }
|
|
228
|
+
});
|
|
229
|
+
}
|
|
230
|
+
function NotificationCenterItem({ read = false, render, className, ...props }) {
|
|
231
|
+
const { item } = notificationCenter({ read });
|
|
232
|
+
const defaultProps = { className: item({ className }) };
|
|
233
|
+
return useRender({
|
|
234
|
+
defaultTagName: "li",
|
|
235
|
+
render,
|
|
236
|
+
props: mergeProps(defaultProps, props),
|
|
237
|
+
state: {
|
|
238
|
+
slot: "notification-center-item",
|
|
239
|
+
read
|
|
240
|
+
}
|
|
241
|
+
});
|
|
242
|
+
}
|
|
243
|
+
function NotificationCenterItemRow({ render, className, ...props }) {
|
|
244
|
+
const { itemRow } = notificationCenter();
|
|
245
|
+
const defaultProps = { className: itemRow({ className }) };
|
|
246
|
+
return useRender({
|
|
247
|
+
defaultTagName: "div",
|
|
248
|
+
render,
|
|
249
|
+
props: mergeProps(defaultProps, props),
|
|
250
|
+
state: { slot: "notification-center-item-row" }
|
|
251
|
+
});
|
|
252
|
+
}
|
|
253
|
+
const STATUS_LABEL = {
|
|
254
|
+
error: "Error",
|
|
255
|
+
warning: "Warning",
|
|
256
|
+
info: "Info",
|
|
257
|
+
success: "Success"
|
|
258
|
+
};
|
|
259
|
+
const DEFAULT_STATUS_ICON = {
|
|
260
|
+
error: /* @__PURE__ */ jsx(AlertTriangle, {}),
|
|
261
|
+
warning: /* @__PURE__ */ jsx(AlertTriangle, {}),
|
|
262
|
+
info: /* @__PURE__ */ jsx(Info, {}),
|
|
263
|
+
success: /* @__PURE__ */ jsx(CheckCircle2, {})
|
|
264
|
+
};
|
|
265
|
+
function NotificationCenterItemIcon({ status = "info", render, className, children, ...props }) {
|
|
266
|
+
const { itemIcon } = notificationCenter({ status });
|
|
267
|
+
const defaultProps = {
|
|
268
|
+
role: "img",
|
|
269
|
+
"aria-label": STATUS_LABEL[status],
|
|
270
|
+
className: itemIcon({ className }),
|
|
271
|
+
children: children ?? DEFAULT_STATUS_ICON[status]
|
|
272
|
+
};
|
|
273
|
+
return useRender({
|
|
274
|
+
defaultTagName: "div",
|
|
275
|
+
render,
|
|
276
|
+
props: mergeProps(defaultProps, props),
|
|
277
|
+
state: {
|
|
278
|
+
slot: "notification-center-item-icon",
|
|
279
|
+
status
|
|
280
|
+
}
|
|
281
|
+
});
|
|
282
|
+
}
|
|
283
|
+
function NotificationCenterItemContent({ render, className, ...props }) {
|
|
284
|
+
const { itemContent } = notificationCenter();
|
|
285
|
+
const defaultProps = { className: itemContent({ className }) };
|
|
286
|
+
return useRender({
|
|
287
|
+
defaultTagName: "div",
|
|
288
|
+
render,
|
|
289
|
+
props: mergeProps(defaultProps, props),
|
|
290
|
+
state: { slot: "notification-center-item-content" }
|
|
291
|
+
});
|
|
292
|
+
}
|
|
293
|
+
function NotificationCenterItemTitle({ render, className, ...props }) {
|
|
294
|
+
const { itemTitle } = notificationCenter();
|
|
295
|
+
const defaultProps = { className: itemTitle({ className }) };
|
|
296
|
+
return useRender({
|
|
297
|
+
defaultTagName: "div",
|
|
298
|
+
render,
|
|
299
|
+
props: mergeProps(defaultProps, props),
|
|
300
|
+
state: { slot: "notification-center-item-title" }
|
|
301
|
+
});
|
|
302
|
+
}
|
|
303
|
+
function NotificationCenterItemBody({ render, className, ...props }) {
|
|
304
|
+
const { itemBody } = notificationCenter();
|
|
305
|
+
const defaultProps = { className: itemBody({ className }) };
|
|
306
|
+
return useRender({
|
|
307
|
+
defaultTagName: "div",
|
|
308
|
+
render,
|
|
309
|
+
props: mergeProps(defaultProps, props),
|
|
310
|
+
state: { slot: "notification-center-item-body" }
|
|
311
|
+
});
|
|
312
|
+
}
|
|
313
|
+
function NotificationCenterItemActions({ render, className, ...props }) {
|
|
314
|
+
const { itemActions } = notificationCenter();
|
|
315
|
+
const defaultProps = { className: itemActions({ className }) };
|
|
316
|
+
return useRender({
|
|
317
|
+
defaultTagName: "div",
|
|
318
|
+
render,
|
|
319
|
+
props: mergeProps(defaultProps, props),
|
|
320
|
+
state: { slot: "notification-center-item-actions" }
|
|
321
|
+
});
|
|
322
|
+
}
|
|
323
|
+
function NotificationCenterActionButton({ className, ...props }) {
|
|
324
|
+
const { actionButton } = notificationCenter();
|
|
325
|
+
return /* @__PURE__ */ jsx(Button, {
|
|
326
|
+
type: "button",
|
|
327
|
+
size: "md",
|
|
328
|
+
variant: "outline",
|
|
329
|
+
className: actionButton({ className }),
|
|
330
|
+
...props
|
|
331
|
+
});
|
|
332
|
+
}
|
|
333
|
+
function NotificationCenterEmptyState(props) {
|
|
334
|
+
return /* @__PURE__ */ jsx(EmptyState, {
|
|
335
|
+
"data-slot": "notification-center-empty-state",
|
|
336
|
+
...props
|
|
337
|
+
});
|
|
338
|
+
}
|
|
339
|
+
//#endregion
|
|
340
|
+
export { NotificationCenter, NotificationCenterActionButton, NotificationCenterCount, NotificationCenterEmptyState, NotificationCenterHeader, NotificationCenterItem, NotificationCenterItemActions, NotificationCenterItemBody, NotificationCenterItemContent, NotificationCenterItemIcon, NotificationCenterItemRow, NotificationCenterItemTitle, NotificationCenterList, NotificationCenterPopup, NotificationCenterScroller, NotificationCenterTitle, NotificationCenterTrigger };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { PanelAction, PanelActionProps } from "./panel-action.mjs";
|
|
2
|
+
import { Panel, PanelBody, PanelBodyProps, PanelEdge, PanelFooter, PanelFooterProps, PanelHeaderRoot, PanelHeaderRootProps, PanelProps, PanelScrollContent, PanelScrollContentProps, PanelScrollViewport, PanelScrollViewportProps, PanelSection, PanelSectionProps } from "./panel.mjs";
|
|
3
|
+
import { PanelActions, PanelActionsProps, PanelActivity, PanelActivityProps, PanelHeader, PanelHeaderContent, PanelHeaderContentProps, PanelHeaderIcon, PanelHeaderIconProps, PanelHeaderProps, PanelHeading, PanelHeadingProps, PanelMeta, PanelMetaProps, PanelSectionHeader, PanelSectionHeaderProps, PanelStatus, PanelStatusProps, PanelTitle, PanelTitleProps } from "./panel-header.mjs";
|
|
4
|
+
import { PanelToggleAction, PanelToggleActionProps } from "./panel-toggle-action.mjs";
|
|
5
|
+
import { PanelNotice, PanelNoticeActions, PanelNoticeActionsProps, PanelNoticeContent, PanelNoticeContentProps, PanelNoticeProps, PanelNoticeStatus } from "./panel-notice.mjs";
|
|
6
|
+
import { PanelSplitAction, PanelSplitActionMain, PanelSplitActionMainProps, PanelSplitActionMenu, PanelSplitActionMenuProps, PanelSplitActionProps, PanelSplitActionToggle, PanelSplitActionToggleProps } from "./panel-split-action.mjs";
|
|
7
|
+
export { Panel, PanelAction, type PanelActionProps, PanelActions, type PanelActionsProps, PanelActivity, type PanelActivityProps, PanelBody, type PanelBodyProps, type PanelEdge, PanelFooter, type PanelFooterProps, PanelHeader, PanelHeaderContent, type PanelHeaderContentProps, PanelHeaderIcon, type PanelHeaderIconProps, type PanelHeaderProps, PanelHeaderRoot, type PanelHeaderRootProps, PanelHeading, type PanelHeadingProps, PanelMeta, type PanelMetaProps, PanelNotice, PanelNoticeActions, type PanelNoticeActionsProps, PanelNoticeContent, type PanelNoticeContentProps, type PanelNoticeProps, type PanelNoticeStatus, type PanelProps, PanelScrollContent, type PanelScrollContentProps, PanelScrollViewport, type PanelScrollViewportProps, PanelSection, PanelSectionHeader, type PanelSectionHeaderProps, type PanelSectionProps, PanelSplitAction, PanelSplitActionMain, type PanelSplitActionMainProps, PanelSplitActionMenu, type PanelSplitActionMenuProps, type PanelSplitActionProps, PanelSplitActionToggle, type PanelSplitActionToggleProps, PanelStatus, type PanelStatusProps, PanelTitle, type PanelTitleProps, PanelToggleAction, type PanelToggleActionProps };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { StyledProps } from "../../lib/styled-props.mjs";
|
|
2
|
+
import { DataAttributes } from "../../lib/data-attributes.mjs";
|
|
3
|
+
import { Button } from "@base-ui/react/button";
|
|
4
|
+
//#region src/components/panel/panel-action.d.ts
|
|
5
|
+
export type PanelActionProps = Omit<StyledProps<Button.Props>, "type"> & DataAttributes & {
|
|
6
|
+
/**
|
|
7
|
+
* Activate when the finger lifts instead of on the click after it, so a
|
|
8
|
+
* tap that stops a scrolling page still acts. Give it to Back, the
|
|
9
|
+
* header's navigation; not to actions that change things
|
|
10
|
+
* (design/patterns/navigation.md#switching-on-finger-lift).
|
|
11
|
+
*/
|
|
12
|
+
activateOnTouchEnd?: boolean;
|
|
13
|
+
};
|
|
14
|
+
export declare function PanelAction({ className, render, nativeButton, activateOnTouchEnd, ref, ...props }: PanelActionProps): import("react").JSX.Element;
|
|
15
|
+
//#endregion
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { defaultNativeButton } from "../../lib/default-native-button.mjs";
|
|
2
|
+
import { useTapActivation } from "../../lib/tap-activation.mjs";
|
|
3
|
+
import { useMergedRef } from "../../lib/use-merged-ref.mjs";
|
|
4
|
+
import { panelAction } from "./panel-action.recipe.mjs";
|
|
5
|
+
import { jsx } from "react/jsx-runtime";
|
|
6
|
+
import { Button } from "@base-ui/react/button";
|
|
7
|
+
//#region src/components/panel/panel-action.tsx
|
|
8
|
+
function PanelAction({ className, render, nativeButton, activateOnTouchEnd = false, ref, ...props }) {
|
|
9
|
+
const tapRef = useTapActivation(activateOnTouchEnd);
|
|
10
|
+
const [setRef] = useMergedRef(tapRef, ref);
|
|
11
|
+
return /* @__PURE__ */ jsx(Button, {
|
|
12
|
+
...props,
|
|
13
|
+
ref: setRef,
|
|
14
|
+
render,
|
|
15
|
+
nativeButton: nativeButton ?? defaultNativeButton(render),
|
|
16
|
+
type: "button",
|
|
17
|
+
"data-slot": "panel-action",
|
|
18
|
+
"data-icon-inset": "",
|
|
19
|
+
className: panelAction({ className })
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
//#endregion
|
|
23
|
+
export { PanelAction };
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { controlIconInset } from "../../lib/head-edges.mjs";
|
|
2
|
+
import { tv } from "../../lib/tv.mjs";
|
|
3
|
+
//#region src/components/panel/panel-action.recipe.ts
|
|
4
|
+
const panelActionBase = tv({ base: [
|
|
5
|
+
"relative inline-flex w-auto shrink-0 items-center justify-center",
|
|
6
|
+
"overflow-visible font-sans leading-none tabular-nums select-none outline-none",
|
|
7
|
+
"transition-all duration-100",
|
|
8
|
+
"[&>svg]:pointer-events-none [&>svg]:shrink-0",
|
|
9
|
+
"h-control min-w-control rounded-control border-[1.5px] border-transparent bg-transparent py-0",
|
|
10
|
+
"px-2 md:pointer-fine:px-[5px]",
|
|
11
|
+
"after:absolute after:-inset-[calc(var(--spacing-control-hit)+1.5px)]",
|
|
12
|
+
"text-foreground",
|
|
13
|
+
"hover:bg-fill-medium active:bg-fill-medium",
|
|
14
|
+
"focus-visible:shadow-focus",
|
|
15
|
+
"[&>svg]:size-control-icon",
|
|
16
|
+
controlIconInset
|
|
17
|
+
] });
|
|
18
|
+
const panelAction = tv({
|
|
19
|
+
extend: panelActionBase,
|
|
20
|
+
base: [
|
|
21
|
+
"whitespace-nowrap",
|
|
22
|
+
"disabled:pointer-events-none disabled:transform-none",
|
|
23
|
+
"gap-1.5 text-control font-bold",
|
|
24
|
+
"disabled:bg-transparent disabled:text-foreground-disabled disabled:opacity-100",
|
|
25
|
+
"aria-pressed:border-sticker-ink aria-pressed:bg-selected aria-pressed:text-sticker-ink aria-pressed:ring-[1.5px] aria-pressed:ring-sticker-edge",
|
|
26
|
+
"aria-pressed:active:overlay-sticker-medium"
|
|
27
|
+
]
|
|
28
|
+
});
|
|
29
|
+
const panelToggleAction = tv({
|
|
30
|
+
extend: panelActionBase,
|
|
31
|
+
base: [
|
|
32
|
+
"data-disabled:pointer-events-none data-disabled:transform-none",
|
|
33
|
+
"gap-1.5 text-control font-bold",
|
|
34
|
+
"data-disabled:bg-transparent data-disabled:text-foreground-disabled data-disabled:opacity-100",
|
|
35
|
+
"data-pressed:border-sticker-ink data-pressed:bg-selected data-pressed:text-sticker-ink data-pressed:ring-[1.5px] data-pressed:ring-sticker-edge",
|
|
36
|
+
"data-pressed:active:overlay-sticker-medium"
|
|
37
|
+
]
|
|
38
|
+
});
|
|
39
|
+
//#endregion
|
|
40
|
+
export { panelAction, panelToggleAction };
|