@botiverse/raft-ui 0.93.0 → 0.95.0
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 +24 -0
- package/codemods/button-sizes.mjs +14 -2
- package/dist/cn.d.mts +0 -2
- package/dist/cn.mjs +1 -2
- package/dist/components/activity-inbox/activity-inbox-shell.d.mts +1 -3
- package/dist/components/activity-inbox/activity-inbox-shell.mjs +2 -3
- package/dist/components/activity-inbox/activity-inbox-shell.recipe.mjs +1 -2
- package/dist/components/activity-inbox/activity-inbox-sidebar.d.mts +1 -3
- package/dist/components/activity-inbox/activity-inbox-sidebar.mjs +1 -2
- package/dist/components/activity-inbox/activity-inbox-sidebar.recipe.mjs +1 -2
- package/dist/components/activity-inbox/activity-inbox-toolbar.d.mts +1 -3
- package/dist/components/activity-inbox/activity-inbox-toolbar.mjs +1 -2
- package/dist/components/activity-inbox/activity-inbox-toolbar.recipe.mjs +1 -2
- package/dist/components/alert-dialog/alert-dialog.d.mts +1 -3
- package/dist/components/alert-dialog/alert-dialog.mjs +1 -2
- package/dist/components/announcement-dialog/announcement-dialog.d.mts +2 -4
- package/dist/components/announcement-dialog/announcement-dialog.mjs +2 -3
- package/dist/components/app-link-card/app-link-card.d.mts +1 -3
- package/dist/components/app-link-card/app-link-card.mjs +1 -2
- package/dist/components/app-rail/app-rail.d.mts +1 -3
- package/dist/components/app-rail/app-rail.mjs +1 -2
- package/dist/components/app-rail/app-rail.recipe.mjs +1 -2
- package/dist/components/app-shell/app-shell.d.mts +1 -3
- package/dist/components/app-shell/app-shell.mjs +2 -3
- package/dist/components/avatar/avatar.d.mts +4 -92
- package/dist/components/avatar/avatar.mjs +2 -3
- package/dist/components/badge/badge.d.mts +13 -66
- package/dist/components/badge/badge.mjs +1 -2
- package/dist/components/banner/banner.d.mts +3 -74
- package/dist/components/banner/banner.mjs +1 -2
- package/dist/components/button/button-split.d.mts +1 -2
- package/dist/components/button/button-split.mjs +1 -2
- package/dist/components/button/button.d.mts +3 -155
- package/dist/components/button/button.mjs +2 -3
- package/dist/components/card/card.d.mts +1 -3
- package/dist/components/card/card.mjs +1 -2
- package/dist/components/card/card.recipe.d.mts +2 -72
- package/dist/components/card/card.recipe.mjs +1 -2
- package/dist/components/checkbox/checkbox-indicator.d.mts +7 -62
- package/dist/components/checkbox/checkbox-indicator.mjs +1 -2
- package/dist/components/checkbox/checkbox.d.mts +0 -2
- package/dist/components/checkbox/checkbox.mjs +1 -2
- package/dist/components/choice-list/choice-list.d.mts +1 -2
- package/dist/components/choice-list/choice-list.mjs +3 -4
- package/dist/components/choice-list/choice-list.recipe.mjs +1 -2
- package/dist/components/code-block/code-block.d.mts +1 -3
- package/dist/components/code-block/code-block.mjs +1 -2
- package/dist/components/code-block/code-block.recipe.mjs +1 -2
- package/dist/components/combobox/combobox.d.mts +0 -2
- package/dist/components/combobox/combobox.mjs +4 -5
- package/dist/components/combobox-select/combobox-select.d.mts +1 -3
- package/dist/components/combobox-select/combobox-select.list-side.mjs +1 -2
- package/dist/components/combobox-select/combobox-select.mjs +4 -5
- package/dist/components/combobox-select/combobox-select.options.mjs +1 -2
- package/dist/components/combobox-select/combobox-select.types.d.mts +1 -2
- package/dist/components/combobox-select/index.d.mts +1 -1
- package/dist/components/comment/comment-card.d.mts +1 -3
- package/dist/components/comment/comment-card.mjs +1 -2
- package/dist/components/comment/comment-entry.d.mts +1 -3
- package/dist/components/comment/comment-entry.mjs +1 -2
- package/dist/components/comment/comment-highlight.d.mts +1 -3
- package/dist/components/comment/comment-highlight.mjs +1 -2
- package/dist/components/comment/comment-margin-layout.d.mts +1 -3
- package/dist/components/comment/comment-margin-layout.mjs +1 -2
- package/dist/components/comment/comment-margin.d.mts +1 -3
- package/dist/components/comment/comment-margin.mjs +1 -2
- package/dist/components/comment/comment-marker.d.mts +2 -4
- package/dist/components/comment/comment-marker.mjs +1 -2
- package/dist/components/comment/comment.recipe.mjs +1 -2
- package/dist/components/comment/use-comment-margin-fits.d.mts +1 -3
- package/dist/components/comment/use-comment-margin-fits.mjs +1 -2
- package/dist/components/composer/composer-attachment.recipe.mjs +1 -2
- package/dist/components/composer/composer-attachments-scroll-area.d.mts +1 -3
- package/dist/components/composer/composer-attachments-scroll-area.mjs +1 -2
- package/dist/components/composer/composer-attachments.d.mts +1 -3
- package/dist/components/composer/composer-attachments.mjs +1 -2
- package/dist/components/composer/composer-drop-overlay.d.mts +1 -3
- package/dist/components/composer/composer-drop-overlay.mjs +1 -2
- package/dist/components/composer/composer-drop-overlay.recipe.mjs +1 -2
- package/dist/components/composer/composer-root.d.mts +1 -3
- package/dist/components/composer/composer-root.mjs +1 -2
- package/dist/components/composer/composer-suggestion-list.d.mts +3 -78
- package/dist/components/composer/composer-suggestion-list.mjs +1 -2
- package/dist/components/composer/composer-toolbar-label.d.mts +1 -3
- package/dist/components/composer/composer-toolbar-label.mjs +1 -2
- package/dist/components/composer/composer.d.mts +2 -4
- package/dist/components/composer/composer.mjs +1 -2
- package/dist/components/composer/composer.recipe.mjs +2 -3
- package/dist/components/composer/sortable-composer-attachments.d.mts +1 -3
- package/dist/components/composer/sortable-composer-attachments.mjs +2 -3
- package/dist/components/composer/use-composer-suggestions.d.mts +1 -2
- package/dist/components/composer/use-composer-suggestions.mjs +1 -2
- package/dist/components/context-menu/context-menu.d.mts +2 -4
- package/dist/components/context-menu/context-menu.mjs +3 -4
- package/dist/components/conversation-panel/conversation-panel-empty-state.d.mts +1 -3
- package/dist/components/conversation-panel/conversation-panel-empty-state.mjs +1 -2
- package/dist/components/conversation-panel/conversation-panel.d.mts +1 -3
- package/dist/components/conversation-panel/conversation-panel.mjs +1 -2
- package/dist/components/conversation-panel/conversation-panel.recipe.mjs +1 -2
- package/dist/components/copyable-code/copyable-code.d.mts +3 -34
- package/dist/components/copyable-code/copyable-code.mjs +2 -3
- package/dist/components/description-list/description-list.d.mts +3 -34
- package/dist/components/description-list/description-list.mjs +2 -3
- package/dist/components/dialog/dialog-sheet-context.mjs +1 -2
- package/dist/components/dialog/dialog-sheet.d.mts +1 -3
- package/dist/components/dialog/dialog-sheet.mjs +3 -4
- package/dist/components/dialog/dialog.d.mts +2 -4
- package/dist/components/dialog/dialog.mjs +5 -6
- package/dist/components/drag/drag-announcements.d.mts +1 -3
- package/dist/components/drag/drag-announcements.mjs +1 -2
- package/dist/components/drag/drag-lift.d.mts +0 -2
- package/dist/components/drag/drag-lift.mjs +1 -2
- package/dist/components/drag/drag-lists.d.mts +1 -3
- package/dist/components/drag/drag-lists.mjs +2 -3
- package/dist/components/drag/drag-sensors.d.mts +1 -3
- package/dist/components/drag/drag-sensors.mjs +1 -2
- package/dist/components/drag/drag.recipe.d.mts +1 -3
- package/dist/components/drag/drag.recipe.mjs +1 -2
- package/dist/components/drag/drop-placeholder.d.mts +1 -3
- package/dist/components/drag/drop-placeholder.mjs +1 -2
- package/dist/components/drag/index.d.mts +3 -3
- package/dist/components/drawer/drawer.d.mts +0 -2
- package/dist/components/drawer/drawer.mjs +2 -3
- package/dist/components/drawer/drawer.recipe.mjs +1 -2
- package/dist/components/dropdown-menu/dropdown-menu.d.mts +4 -6
- package/dist/components/dropdown-menu/dropdown-menu.mjs +4 -5
- package/dist/components/ellipsis/ellipsis.d.mts +1 -3
- package/dist/components/ellipsis/ellipsis.mjs +2 -3
- package/dist/components/empty-state/empty-state.d.mts +1 -3
- package/dist/components/empty-state/empty-state.mjs +1 -2
- package/dist/components/field/field.d.mts +3 -39
- package/dist/components/field/field.mjs +1 -2
- package/dist/components/file-preview/file-preview.d.mts +1 -3
- package/dist/components/file-preview/file-preview.mjs +1 -2
- package/dist/components/file-preview/file-preview.recipe.d.mts +2 -68
- package/dist/components/file-preview/file-preview.recipe.mjs +1 -2
- package/dist/components/files/files.d.mts +1 -2
- package/dist/components/files/files.mjs +1 -2
- package/dist/components/files/files.recipe.mjs +1 -2
- package/dist/components/filter-chip/filter-chip.d.mts +2 -4
- package/dist/components/filter-chip/filter-chip.mjs +3 -4
- package/dist/components/fit-toolbar/fit-toolbar.d.mts +1 -3
- package/dist/components/fit-toolbar/fit-toolbar.mjs +5 -6
- package/dist/components/fit-toolbar/fit-toolbar.recipe.mjs +1 -2
- package/dist/components/form-section/form-section.d.mts +1 -3
- package/dist/components/form-section/form-section.mjs +1 -2
- package/dist/components/icon-tile/icon-tile.d.mts +3 -60
- package/dist/components/icon-tile/icon-tile.mjs +1 -2
- package/dist/components/inbox-item/inbox-item-leading-badge.d.mts +1 -3
- package/dist/components/inbox-item/inbox-item-leading-badge.mjs +1 -2
- package/dist/components/inbox-item/inbox-item-skeleton.d.mts +1 -2
- package/dist/components/inbox-item/inbox-item-skeleton.mjs +1 -2
- package/dist/components/inbox-item/inbox-item-skeleton.recipe.mjs +1 -2
- package/dist/components/inbox-item/inbox-item.d.mts +1 -3
- package/dist/components/inbox-item/inbox-item.mjs +3 -4
- package/dist/components/inbox-item/inbox-item.recipe.mjs +2 -3
- package/dist/components/inline-code/inline-code.d.mts +1 -3
- package/dist/components/inline-code/inline-code.mjs +1 -2
- package/dist/components/input/input.d.mts +1 -3
- package/dist/components/input/input.mjs +1 -2
- package/dist/components/input/input.recipe.mjs +1 -2
- package/dist/components/input-group/input-group.d.mts +4 -65
- package/dist/components/input-group/input-group.mjs +1 -2
- package/dist/components/kbd/kbd-keys.d.mts +1 -3
- package/dist/components/kbd/kbd-keys.mjs +1 -2
- package/dist/components/kbd/kbd-shortcut.d.mts +2 -4
- package/dist/components/kbd/kbd-shortcut.mjs +3 -4
- package/dist/components/kbd/kbd.d.mts +3 -28
- package/dist/components/kbd/kbd.mjs +2 -3
- package/dist/components/kbd-button/kbd-button.d.mts +2 -4
- package/dist/components/kbd-button/kbd-button.mjs +1 -2
- package/dist/components/label/label.d.mts +3 -30
- package/dist/components/label/label.mjs +1 -2
- package/dist/components/lightbox/lightbox.d.mts +1 -3
- package/dist/components/lightbox/lightbox.mjs +3 -4
- package/dist/components/list-row/list-row-skeleton.d.mts +1 -3
- package/dist/components/list-row/list-row-skeleton.mjs +2 -3
- package/dist/components/list-row/list-row.d.mts +2 -4
- package/dist/components/list-row/list-row.mjs +1 -2
- package/dist/components/list-row/list-row.recipe.d.mts +2 -96
- package/dist/components/list-row/list-row.recipe.mjs +1 -2
- package/dist/components/logo/raft-logo.d.mts +1 -3
- package/dist/components/logo/raft-logo.mjs +1 -2
- package/dist/components/markdown/markdown-parts.d.mts +4 -5
- package/dist/components/markdown/markdown-parts.mjs +2 -3
- package/dist/components/markdown/markdown.recipe.mjs +2 -3
- package/dist/components/message-action-card/message-action-card-content.recipe.mjs +1 -2
- package/dist/components/message-action-card/message-action-card.d.mts +3 -5
- package/dist/components/message-action-card/message-action-card.mjs +3 -4
- package/dist/components/message-action-card/message-action-card.recipe.mjs +1 -2
- package/dist/components/message-attachment/message-attachment.d.mts +1 -3
- package/dist/components/message-attachment/message-attachment.mjs +1 -2
- package/dist/components/message-attachment/message-attachment.recipe.mjs +1 -2
- package/dist/components/message-attachment/message-image-gallery-rows.d.mts +1 -3
- package/dist/components/message-attachment/message-image-gallery-rows.mjs +1 -2
- package/dist/components/message-attachment/message-image-gallery.d.mts +1 -3
- package/dist/components/message-attachment/message-image-gallery.mjs +1 -2
- package/dist/components/message-attachment/message-image-gallery.recipe.mjs +1 -2
- package/dist/components/message-attachment/message-video-preview.d.mts +1 -3
- package/dist/components/message-attachment/message-video-preview.mjs +1 -2
- package/dist/components/message-attachment/message-video-preview.recipe.mjs +1 -2
- package/dist/components/message-embed/message-embed.d.mts +1 -2
- package/dist/components/message-embed/message-embed.mjs +1 -2
- package/dist/components/message-embed/message-embed.recipe.d.mts +4 -131
- package/dist/components/message-embed/message-embed.recipe.mjs +1 -2
- package/dist/components/message-forwarded-bundle/message-forwarded-bundle.d.mts +1 -2
- package/dist/components/message-forwarded-bundle/message-forwarded-bundle.mjs +2 -3
- package/dist/components/message-forwarded-bundle/message-forwarded-bundle.recipe.mjs +1 -2
- package/dist/components/message-item/message-footer.d.mts +1 -3
- package/dist/components/message-item/message-footer.mjs +1 -2
- package/dist/components/message-item/message-footer.recipe.mjs +1 -2
- package/dist/components/message-item/message-item-content.d.mts +1 -3
- package/dist/components/message-item/message-item-content.mjs +1 -2
- package/dist/components/message-item/message-item-delegated.d.mts +1 -3
- package/dist/components/message-item/message-item-delegated.mjs +1 -2
- package/dist/components/message-item/message-item-gutter.d.mts +1 -3
- package/dist/components/message-item/message-item-gutter.mjs +1 -2
- package/dist/components/message-item/message-item-header.d.mts +1 -3
- package/dist/components/message-item/message-item-header.mjs +1 -2
- package/dist/components/message-item/message-item-label.mjs +1 -2
- package/dist/components/message-item/message-item-root.d.mts +1 -3
- package/dist/components/message-item/message-item-root.mjs +1 -2
- package/dist/components/message-item/message-item-toolbar.d.mts +1 -3
- package/dist/components/message-item/message-item-toolbar.mjs +1 -2
- package/dist/components/message-item/message-item.recipe.d.mts +3 -71
- package/dist/components/message-item/message-item.recipe.mjs +2 -3
- package/dist/components/message-item/message-multi-select.d.mts +1 -3
- package/dist/components/message-item/message-multi-select.mjs +1 -2
- package/dist/components/message-item/message-multi-select.recipe.mjs +1 -2
- package/dist/components/message-item/message-reaction.d.mts +1 -3
- package/dist/components/message-item/message-reaction.mjs +1 -2
- package/dist/components/message-item/message-reaction.recipe.mjs +1 -2
- package/dist/components/message-item/message-reference.d.mts +0 -2
- package/dist/components/message-item/message-reference.mjs +1 -2
- package/dist/components/message-item/message-reference.recipe.d.mts +1 -3
- package/dist/components/message-item/message-reference.recipe.mjs +2 -3
- package/dist/components/message-list/message-list-jump.d.mts +2 -4
- package/dist/components/message-list/message-list-jump.mjs +1 -2
- package/dist/components/message-list/message-list-markers.d.mts +1 -3
- package/dist/components/message-list/message-list-markers.mjs +1 -2
- package/dist/components/message-list/message-list.d.mts +1 -3
- package/dist/components/message-list/message-list.mjs +2 -3
- package/dist/components/message-list/message-list.recipe.mjs +1 -2
- package/dist/components/message-quoted-preview/message-quoted-preview.d.mts +1 -2
- package/dist/components/message-quoted-preview/message-quoted-preview.mjs +1 -2
- package/dist/components/message-quoted-preview/message-quoted-preview.recipe.mjs +1 -2
- package/dist/components/message-replies/message-replies.d.mts +1 -3
- package/dist/components/message-replies/message-replies.mjs +1 -2
- package/dist/components/message-replies/message-replies.recipe.mjs +1 -2
- package/dist/components/message-translation/message-translation.d.mts +1 -3
- package/dist/components/message-translation/message-translation.mjs +1 -2
- package/dist/components/message-translation/message-translation.recipe.mjs +1 -2
- package/dist/components/meter/meter.d.mts +3 -39
- package/dist/components/meter/meter.mjs +1 -2
- package/dist/components/mobile-nav/mobile-nav-server.d.mts +2 -4
- package/dist/components/mobile-nav/mobile-nav-server.mjs +4 -5
- package/dist/components/mobile-nav/mobile-nav.d.mts +1 -3
- package/dist/components/mobile-nav/mobile-nav.mjs +2 -3
- package/dist/components/notification-center/notification-center.d.mts +5 -124
- package/dist/components/notification-center/notification-center.mjs +5 -6
- package/dist/components/panel/index.d.mts +1 -1
- package/dist/components/panel/panel-action.d.mts +2 -4
- package/dist/components/panel/panel-action.mjs +2 -3
- package/dist/components/panel/panel-action.recipe.mjs +1 -2
- package/dist/components/panel/panel-header.d.mts +1 -3
- package/dist/components/panel/panel-header.mjs +2 -3
- package/dist/components/panel/panel-header.recipe.mjs +1 -2
- package/dist/components/panel/panel-notice.d.mts +1 -3
- package/dist/components/panel/panel-notice.mjs +1 -2
- package/dist/components/panel/panel-split-action.d.mts +2 -4
- package/dist/components/panel/panel-split-action.mjs +1 -2
- package/dist/components/panel/panel-split-action.recipe.mjs +1 -2
- package/dist/components/panel/panel-toggle-action.d.mts +1 -3
- package/dist/components/panel/panel-toggle-action.mjs +1 -2
- package/dist/components/panel/panel.d.mts +1 -3
- package/dist/components/panel/panel.mjs +1 -2
- package/dist/components/panel/panel.recipe.mjs +1 -2
- package/dist/components/picker-trigger-button/picker-trigger-button.d.mts +2 -4
- package/dist/components/picker-trigger-button/picker-trigger-button.mjs +2 -3
- package/dist/components/popover/popover.d.mts +0 -2
- package/dist/components/popover/popover.mjs +3 -4
- package/dist/components/preview-card/preview-card.d.mts +0 -2
- package/dist/components/preview-card/preview-card.mjs +4 -5
- package/dist/components/profile-panel/profile-panel.d.mts +1 -3
- package/dist/components/profile-panel/profile-panel.mjs +2 -3
- package/dist/components/profile-panel/profile-panel.recipe.mjs +1 -2
- package/dist/components/progress/progress.d.mts +3 -71
- package/dist/components/progress/progress.mjs +1 -2
- package/dist/components/pull-to-refresh/pull-to-refresh-gesture.d.mts +1 -3
- package/dist/components/pull-to-refresh/pull-to-refresh-gesture.mjs +1 -2
- package/dist/components/pull-to-refresh/pull-to-refresh-indicator.d.mts +1 -3
- package/dist/components/pull-to-refresh/pull-to-refresh-indicator.mjs +1 -2
- package/dist/components/pull-to-refresh/pull-to-refresh-material-progress.mjs +1 -2
- package/dist/components/pull-to-refresh/use-pull-to-refresh.d.mts +1 -3
- package/dist/components/pull-to-refresh/use-pull-to-refresh.mjs +1 -2
- package/dist/components/radio-group/radio-group.d.mts +0 -2
- package/dist/components/radio-group/radio-group.mjs +2 -3
- package/dist/components/resizable/resizable.d.mts +1 -3
- package/dist/components/resizable/resizable.mjs +1 -2
- package/dist/components/resizable/resizable.recipe.mjs +1 -2
- package/dist/components/save-status/save-status.d.mts +1 -3
- package/dist/components/save-status/save-status.mjs +1 -2
- package/dist/components/scroll-area/class-names.mjs +1 -2
- package/dist/components/scroll-area/gutters-binding.mjs +1 -2
- package/dist/components/scroll-area/index.d.mts +1 -1
- package/dist/components/scroll-area/scroll-area-gutters.d.mts +1 -3
- package/dist/components/scroll-area/scroll-area-gutters.mjs +1 -2
- package/dist/components/scroll-area/scroll-area-textarea.d.mts +1 -3
- package/dist/components/scroll-area/scroll-area-textarea.mjs +1 -2
- package/dist/components/scroll-area/scroll-area.d.mts +1 -3
- package/dist/components/scroll-area/scroll-area.mjs +1 -2
- package/dist/components/scroll-area/scroll-geometry.mjs +1 -2
- package/dist/components/scroll-area/scroll-to-element.mjs +1 -2
- package/dist/components/scroll-area/types.d.mts +1 -2
- package/dist/components/scroll-area/use-rail-pointer.mjs +1 -2
- package/dist/components/scroll-area/use-scroll-area-container.d.mts +1 -3
- package/dist/components/scroll-area/use-scroll-area-container.mjs +1 -2
- package/dist/components/scroll-area/use-scrollbars.mjs +1 -2
- package/dist/components/search/search-entity.d.mts +1 -2
- package/dist/components/search/search-entity.mjs +1 -2
- package/dist/components/search/search-entity.recipe.mjs +2 -3
- package/dist/components/search/search-message.d.mts +1 -2
- package/dist/components/search/search-message.mjs +1 -2
- package/dist/components/search/search-message.recipe.mjs +3 -4
- package/dist/components/search/search-thread.d.mts +1 -3
- package/dist/components/search/search-thread.mjs +1 -2
- package/dist/components/search/search-thread.recipe.mjs +1 -2
- package/dist/components/search/search-trigger.d.mts +1 -3
- package/dist/components/search/search-trigger.mjs +1 -2
- package/dist/components/search/search.d.mts +1 -3
- package/dist/components/search/search.mjs +2 -3
- package/dist/components/search/search.recipe.mjs +1 -2
- package/dist/components/segmented-control/segmented-control.d.mts +1 -3
- package/dist/components/segmented-control/segmented-control.mjs +3 -4
- package/dist/components/select/select.d.mts +1 -3
- package/dist/components/select/select.mjs +3 -4
- package/dist/components/selection-toolbar/selection-toolbar.d.mts +1 -3
- package/dist/components/selection-toolbar/selection-toolbar.mjs +2 -3
- package/dist/components/selection-toolbar/selection-toolbar.recipe.mjs +1 -2
- package/dist/components/separator/separator.d.mts +0 -2
- package/dist/components/separator/separator.mjs +1 -2
- package/dist/components/sidebar/sidebar-item.d.mts +3 -5
- package/dist/components/sidebar/sidebar-item.mjs +2 -3
- package/dist/components/sidebar/sidebar-item.recipe.mjs +2 -3
- package/dist/components/sidebar/sidebar-menu.d.mts +1 -3
- package/dist/components/sidebar/sidebar-menu.mjs +1 -2
- package/dist/components/sidebar/sidebar-menu.recipe.mjs +1 -2
- package/dist/components/sidebar/sidebar-section.d.mts +1 -3
- package/dist/components/sidebar/sidebar-section.mjs +1 -2
- package/dist/components/sidebar/sidebar-section.recipe.mjs +1 -2
- package/dist/components/sidebar/sidebar.d.mts +1 -3
- package/dist/components/sidebar/sidebar.mjs +2 -3
- package/dist/components/sidebar/sidebar.recipe.mjs +1 -2
- package/dist/components/skeleton/skeleton.d.mts +3 -32
- package/dist/components/skeleton/skeleton.mjs +1 -2
- package/dist/components/spinner/spinner.d.mts +3 -50
- package/dist/components/spinner/spinner.mjs +1 -2
- package/dist/components/status/status.d.mts +4 -91
- package/dist/components/status/status.mjs +2 -3
- package/dist/components/steps/otter-animation-visibility.mjs +1 -2
- package/dist/components/steps/otter-indicator.d.mts +1 -3
- package/dist/components/steps/otter-indicator.mjs +1 -2
- package/dist/components/steps/steps.d.mts +1 -3
- package/dist/components/steps/steps.mjs +1 -2
- package/dist/components/switch/switch.d.mts +0 -2
- package/dist/components/switch/switch.mjs +1 -2
- package/dist/components/system-message/system-message.d.mts +1 -3
- package/dist/components/system-message/system-message.mjs +1 -2
- package/dist/components/system-message/system-message.recipe.mjs +1 -2
- package/dist/components/table/table.d.mts +0 -2
- package/dist/components/table/table.mjs +1 -2
- package/dist/components/table/table.recipe.mjs +1 -2
- package/dist/components/tabs/tabs.d.mts +4 -88
- package/dist/components/tabs/tabs.mjs +5 -6
- package/dist/components/task-board/task-board-column.recipe.mjs +1 -2
- package/dist/components/task-board/task-board.d.mts +1 -3
- package/dist/components/task-board/task-board.mjs +1 -2
- package/dist/components/task-card/task-card-status.recipe.mjs +1 -2
- package/dist/components/task-card/task-card.d.mts +1 -3
- package/dist/components/task-card/task-card.mjs +2 -3
- package/dist/components/task-card/task-card.recipe.mjs +1 -2
- package/dist/components/task-completion-control/task-completion-control.d.mts +1 -2
- package/dist/components/task-completion-control/task-completion-control.mjs +1 -2
- package/dist/components/task-dnd/task-dnd.d.mts +1 -3
- package/dist/components/task-dnd/task-dnd.mjs +3 -4
- package/dist/components/task-dnd/task-dnd.recipe.mjs +1 -2
- package/dist/components/task-list/task-list-section.recipe.mjs +1 -2
- package/dist/components/task-list/task-list.d.mts +1 -3
- package/dist/components/task-list/task-list.mjs +1 -2
- package/dist/components/tasks/task-chip.d.mts +1 -3
- package/dist/components/tasks/task-chip.mjs +2 -3
- package/dist/components/tasks/task-loading.d.mts +1 -3
- package/dist/components/tasks/task-loading.mjs +1 -2
- package/dist/components/tasks/task-loading.recipe.mjs +1 -2
- package/dist/components/tasks/task-status-badge.d.mts +2 -3
- package/dist/components/tasks/task-status-badge.mjs +2 -3
- package/dist/components/tasks/task-status-icon.d.mts +1 -3
- package/dist/components/tasks/task-status-icon.mjs +1 -2
- package/dist/components/tasks/task-status.recipe.d.mts +16 -54
- package/dist/components/tasks/task-status.recipe.mjs +1 -2
- package/dist/components/tasks/tasks-panel.d.mts +1 -3
- package/dist/components/tasks/tasks-panel.mjs +1 -2
- package/dist/components/tasks/tasks-panel.recipe.mjs +1 -2
- package/dist/components/text/text.d.mts +7 -120
- package/dist/components/text/text.mjs +1 -2
- package/dist/components/text-link/text-link.d.mts +3 -15
- package/dist/components/text-link/text-link.mjs +1 -2
- package/dist/components/text-selection-toolbar/text-selection-anchor.d.mts +1 -3
- package/dist/components/text-selection-toolbar/text-selection-anchor.mjs +1 -2
- package/dist/components/text-selection-toolbar/text-selection-toolbar.d.mts +1 -3
- package/dist/components/text-selection-toolbar/text-selection-toolbar.mjs +1 -2
- package/dist/components/text-selection-toolbar/text-selection-toolbar.recipe.mjs +1 -2
- package/dist/components/textarea/textarea.d.mts +1 -3
- package/dist/components/textarea/textarea.mjs +1 -2
- package/dist/components/thread-panel/thread-panel.d.mts +1 -3
- package/dist/components/thread-panel/thread-panel.mjs +1 -2
- package/dist/components/thread-panel/thread-panel.recipe.mjs +1 -2
- package/dist/components/timeline/timeline.d.mts +1 -3
- package/dist/components/timeline/timeline.mjs +1 -2
- package/dist/components/toast/toast.d.mts +4 -99
- package/dist/components/toast/toast.mjs +3 -4
- package/dist/components/toggle-group/toggle-group.d.mts +0 -2
- package/dist/components/toggle-group/toggle-group.mjs +2 -3
- package/dist/components/tooltip/tooltip.d.mts +0 -2
- package/dist/components/tooltip/tooltip.mjs +2 -3
- package/dist/components/virtual-list/ItemColumns.mjs +1 -2
- package/dist/components/virtual-list/VirtualList.d.mts +1 -3
- package/dist/components/virtual-list/VirtualList.mjs +4 -5
- package/dist/components/virtual-list/VirtualListContext.mjs +1 -2
- package/dist/components/virtual-list/hooks/use-event-callback.mjs +1 -2
- package/dist/components/virtual-list/hooks/use-ios-momentum-compensation.mjs +1 -2
- package/dist/components/virtual-list/hooks/use-keyboard-scroll.mjs +1 -2
- package/dist/components/virtual-list/hooks/use-latest-ref.mjs +1 -2
- package/dist/components/virtual-list/hooks/use-layout-effect-with-previous.mjs +1 -2
- package/dist/components/virtual-list/hooks/use-memo-with-previous.mjs +1 -2
- package/dist/components/virtual-list/hooks/use-non-passive-wheel.mjs +1 -2
- package/dist/components/virtual-list/hooks/use-non-virtual-content-resize.mjs +1 -2
- package/dist/components/virtual-list/hooks/use-scroll-anchor.mjs +1 -2
- package/dist/components/virtual-list/index.d.mts +2 -2
- package/dist/components/virtual-list/public-types.d.mts +7 -9
- package/dist/components/virtual-list/resize-observer/ResizeObserverWrapper.d.mts +1 -3
- package/dist/components/virtual-list/resize-observer/ResizeObserverWrapper.mjs +2 -3
- package/dist/components/virtual-list/resize-observer/resize-observer-delegate.d.mts +1 -3
- package/dist/components/virtual-list/resize-observer/resize-observer-delegate.mjs +1 -2
- package/dist/components/virtual-list/utils/align.mjs +1 -2
- package/dist/components/virtual-list/utils/constants.mjs +1 -2
- package/dist/components/virtual-list/utils/fenwick-tree.mjs +1 -2
- package/dist/components/virtual-list/utils/items-anchor.mjs +1 -2
- package/dist/components/virtual-list/utils/measure.mjs +1 -2
- package/dist/components/virtual-list/utils/platform.mjs +0 -1
- package/dist/components/virtual-list/utils/range.mjs +1 -2
- package/dist/components/virtual-list/utils/size-cache.mjs +1 -2
- package/dist/components/web-top-bar/web-top-bar.d.mts +1 -3
- package/dist/components/web-top-bar/web-top-bar.mjs +1 -2
- package/dist/components/web-top-bar/web-top-bar.recipe.mjs +1 -2
- package/dist/components/workspace-button/workspace-button.d.mts +1 -3
- package/dist/components/workspace-button/workspace-button.mjs +1 -2
- package/dist/index-exports.d.mts +60 -64
- package/dist/index-exports.mjs +34 -37
- package/dist/index.d.mts +3 -6
- package/dist/lib/chip-remove.mjs +1 -2
- package/dist/lib/data-attributes.d.mts +1 -3
- package/dist/lib/decision-width.mjs +1 -2
- package/dist/lib/default-native-button.mjs +1 -2
- package/dist/lib/desktop-media.mjs +1 -2
- package/dist/lib/drag-escape.mjs +1 -2
- package/dist/lib/frame-insets.mjs +1 -2
- package/dist/lib/head-edges.mjs +1 -2
- package/dist/lib/hud-text-action.mjs +1 -2
- package/dist/lib/inline-chip.mjs +1 -2
- package/dist/lib/inline-part.mjs +1 -2
- package/dist/lib/input-modality.d.mts +1 -3
- package/dist/lib/input-modality.mjs +1 -2
- package/dist/lib/inside-overlay.d.mts +11 -2
- package/dist/lib/inside-overlay.mjs +17 -5
- package/dist/lib/label-value-fit.mjs +1 -2
- package/dist/lib/laid-out-children.mjs +1 -2
- package/dist/lib/list-cell.mjs +1 -2
- package/dist/lib/located.d.mts +1 -3
- package/dist/lib/located.mjs +1 -2
- package/dist/lib/overlay-depth.d.mts +1 -3
- package/dist/lib/overlay-depth.mjs +1 -2
- package/dist/lib/phone-media.mjs +1 -2
- package/dist/lib/presence.d.mts +1 -3
- package/dist/lib/presence.mjs +1 -2
- package/dist/lib/row-tone.d.mts +1 -3
- package/dist/lib/search-hit.mjs +1 -2
- package/dist/lib/stacked-actions.mjs +1 -2
- package/dist/lib/styled-props.d.mts +1 -3
- package/dist/lib/tap-activation.mjs +0 -1
- package/dist/lib/theme/theme-context.d.mts +1 -3
- package/dist/lib/theme/theme-context.mjs +1 -2
- package/dist/lib/theme/theme-provider.d.mts +1 -3
- package/dist/lib/theme/theme-provider.mjs +2 -3
- package/dist/lib/theme/theme-scope.mjs +1 -2
- package/dist/lib/theme/use-theme.d.mts +1 -3
- package/dist/lib/theme/use-theme.mjs +1 -2
- package/dist/lib/touch-drag.d.mts +1 -3
- package/dist/lib/touch-drag.mjs +1 -2
- package/dist/lib/truncation.d.mts +1 -3
- package/dist/lib/truncation.mjs +1 -2
- package/dist/lib/tv.mjs +1 -2
- package/dist/lib/use-attach-count.mjs +1 -2
- package/dist/lib/use-copy-to-clipboard.mjs +1 -2
- package/dist/lib/use-merged-ref.mjs +1 -2
- package/dist/lib/use-mobile-viewport.mjs +1 -2
- package/dist/lib/use-overflow-title.mjs +1 -2
- package/dist/lib/use-platform.d.mts +1 -3
- package/dist/lib/use-platform.mjs +1 -2
- package/dist/lib/use-scrollbar-size.d.mts +1 -3
- package/dist/lib/use-scrollbar-size.mjs +1 -2
- package/dist/lib/use-soft-keyboard.mjs +1 -2
- package/dist/lib/use-truncated.d.mts +1 -3
- package/dist/lib/use-truncated.mjs +1 -2
- package/dist/lib/without-children.d.mts +1 -3
- package/dist/lint/no-raw-z-index.mjs +1 -2
- package/dist/lint/prefer-scroll-area.d.mts +1 -3
- package/dist/lint/prefer-scroll-area.mjs +1 -2
- package/dist/lint.d.mts +0 -2
- package/dist/lint.mjs +2 -3
- package/dist/styles.css +3 -18
- package/dist/wip-exports.d.mts +32 -32
- package/dist/wip-exports.mjs +21 -21
- package/package.json +24 -21
- package/dist/components/icons/action-icons.d.mts +0 -36
- package/dist/components/icons/action-icons.mjs +0 -360
- package/dist/components/icons/conversation-icons.d.mts +0 -16
- package/dist/components/icons/conversation-icons.mjs +0 -112
- package/dist/components/icons/index.d.mts +0 -4
- package/dist/components/icons/object-icons.d.mts +0 -9
- package/dist/components/icons/object-icons.mjs +0 -30
|
@@ -3,7 +3,7 @@ import { useCallback, useLayoutEffect, useState } from "react";
|
|
|
3
3
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
4
4
|
import { mergeProps } from "@base-ui/react/merge-props";
|
|
5
5
|
import { useRender } from "@base-ui/react/use-render";
|
|
6
|
-
|
|
6
|
+
// src/components/code-block/code-block.tsx
|
|
7
7
|
const CORNERS = [
|
|
8
8
|
{
|
|
9
9
|
x: "left",
|
|
@@ -147,5 +147,4 @@ function CodeBlockPre({ render, ref, "aria-label": ariaLabel = "Code", ...props
|
|
|
147
147
|
state: { slot: "code-block-pre" }
|
|
148
148
|
});
|
|
149
149
|
}
|
|
150
|
-
//#endregion
|
|
151
150
|
export { CodeBlock, CodeBlockAction, CodeBlockActions, CodeBlockBody, CodeBlockHeader, CodeBlockPre, CodeBlockTitle };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { tv } from "../../lib/tv.mjs";
|
|
2
|
-
|
|
2
|
+
// src/components/code-block/code-block.recipe.ts
|
|
3
3
|
const codeBlock = tv({ slots: {
|
|
4
4
|
root: [
|
|
5
5
|
"group/code-block relative my-2 min-w-0",
|
|
@@ -43,5 +43,4 @@ const codeBlock = tv({ slots: {
|
|
|
43
43
|
"[&_svg:not([class*='size-'])]:size-4.5"
|
|
44
44
|
]
|
|
45
45
|
} });
|
|
46
|
-
//#endregion
|
|
47
46
|
export { codeBlock };
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { StyledProps } from "../../lib/styled-props.mjs";
|
|
2
2
|
import { ComponentPropsWithRef } from "react";
|
|
3
3
|
import { Combobox } from "@base-ui/react/combobox";
|
|
4
|
-
//#region src/components/combobox/combobox.d.ts
|
|
5
4
|
export type ComboboxProps<Value, Multiple extends boolean | undefined = false> = Combobox.Root.Props<Value, Multiple>;
|
|
6
5
|
declare function Combobox$1<Value, Multiple extends boolean | undefined = false>({ defaultInputValue, defaultValue, inputValue, onInputValueChange, onValueChange, value, ...props }: ComboboxProps<Value, Multiple>): import("react").JSX.Element;
|
|
7
6
|
export type ComboboxLabelProps = StyledProps<Combobox.Label.Props>;
|
|
@@ -71,5 +70,4 @@ export type ComboboxChipProps = StyledProps<Combobox.Chip.Props>;
|
|
|
71
70
|
export declare function ComboboxChip({ className, ref, title, ...props }: ComboboxChipProps): import("react").JSX.Element;
|
|
72
71
|
export type ComboboxChipRemoveProps = StyledProps<Combobox.ChipRemove.Props>;
|
|
73
72
|
export declare function ComboboxChipRemove({ className, children, ...props }: ComboboxChipRemoveProps): import("react").JSX.Element;
|
|
74
|
-
//#endregion
|
|
75
73
|
export { Combobox$1 as Combobox };
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
+
import { chipRemoveBase } from "../../lib/chip-remove.mjs";
|
|
2
|
+
import { usePopupCollision } from "../../lib/frame-insets.mjs";
|
|
1
3
|
import { cn } from "../../cn.mjs";
|
|
2
4
|
import { tv } from "../../lib/tv.mjs";
|
|
5
|
+
import { useOverflowTitle } from "../../lib/use-overflow-title.mjs";
|
|
3
6
|
import { useThemeScopeProps } from "../../lib/theme/theme-scope.mjs";
|
|
4
7
|
import { Button } from "../button/button.mjs";
|
|
5
8
|
import { ScrollAreaGutters } from "../scroll-area/scroll-area-gutters.mjs";
|
|
6
9
|
import { useScrollAreaContainer } from "../scroll-area/use-scroll-area-container.mjs";
|
|
7
|
-
import { usePopupCollision } from "../../lib/frame-insets.mjs";
|
|
8
|
-
import { useOverflowTitle } from "../../lib/use-overflow-title.mjs";
|
|
9
|
-
import { chipRemoveBase } from "../../lib/chip-remove.mjs";
|
|
10
10
|
import { Check, X } from "lucide-react";
|
|
11
11
|
import { createContext, use, useCallback, useMemo, useState } from "react";
|
|
12
12
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
13
13
|
import { Combobox } from "@base-ui/react/combobox";
|
|
14
|
-
|
|
14
|
+
// src/components/combobox/combobox.tsx
|
|
15
15
|
const combobox = tv({
|
|
16
16
|
slots: {
|
|
17
17
|
trigger: [
|
|
@@ -462,5 +462,4 @@ function ComboboxChipRemove({ className, children, ...props }) {
|
|
|
462
462
|
})
|
|
463
463
|
});
|
|
464
464
|
}
|
|
465
|
-
//#endregion
|
|
466
465
|
export { Combobox$1 as Combobox, ComboboxChip, ComboboxChipRemove, ComboboxChips, ComboboxClear, ComboboxCollection, ComboboxContent, ComboboxControl, ComboboxEmpty, ComboboxGroup, ComboboxGroupLabel, ComboboxHeader, ComboboxInput, ComboboxInputGroup, ComboboxItem, ComboboxItemIndicator, ComboboxLabel, ComboboxList, ComboboxPopup, ComboboxPortal, ComboboxRow, ComboboxSeparator, ComboboxTrigger, ComboboxTriggerCount, ComboboxTriggerIndicator, ComboboxValue };
|
|
@@ -1,4 +1,2 @@
|
|
|
1
1
|
import { ComboboxSelectOption, ComboboxSelectProps } from "./combobox-select.types.mjs";
|
|
2
|
-
|
|
3
|
-
export declare function ComboboxSelect<Option = ComboboxSelectOption, Multiple extends boolean | undefined = false>({ options, multiple, value, defaultValue, onValueChange, labelField, valueField, disabledField, fallbackOption, filterable, filter, remote, onSearch, loading, create, creatable, onCreate, clearable, showArrow, clearFilterAfterSelect, onClear, maxTagCount, size, status, placeholder, renderLabel, renderOption, renderTag, renderCreateLabel, emptyContent, loadingContent, messages, listMaxHeight, inputProps, portalProps, positionerProps, popupProps, className, style, id: idProp, ref, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy, "aria-describedby": ariaDescribedBy, "aria-invalid": ariaInvalid, inputValue, defaultInputValue, onInputValueChange, disabled, readOnly, autoHighlight, onOpenChange, ...rootProps }: ComboboxSelectProps<Option, Multiple>): import("react").JSX.Element;
|
|
4
|
-
//#endregion
|
|
2
|
+
export declare function ComboboxSelect<Option = ComboboxSelectOption, Multiple extends boolean | undefined = false>({ options, multiple, value, defaultValue, onValueChange, labelField, valueField, disabledField, fallbackOption, filterable, filter, remote, onSearch, loading, create, creatable, onCreate, clearable, showArrow, clearFilterAfterSelect, onClear, maxTagCount, size, status, placeholder, renderLabel, renderOption, renderTag, renderCreateLabel, emptyContent, loadingContent, messages, listMaxHeight, inputProps, portalProps, positionerProps, popupProps, className, style, id: idProp, ref, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy, "aria-describedby": ariaDescribedBy, "aria-invalid": ariaInvalid, inputValue, defaultInputValue, onInputValueChange, disabled, readOnly, autoHighlight, onOpenChange, ...rootProps }: ComboboxSelectProps<Option, Multiple>): import("react").JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/components/combobox-select/combobox-select.list-side.ts
|
|
2
2
|
/** One option row (36px) and the list's 6px padding above and below. */
|
|
3
3
|
const ROW = 36;
|
|
4
4
|
const LIST_PADDING = 12;
|
|
@@ -12,5 +12,4 @@ const SIDE_OFFSET = 4;
|
|
|
12
12
|
function roomBelowIsShort(field, viewport, rows = 3) {
|
|
13
13
|
return viewport.top + viewport.height - field.bottom - SIDE_OFFSET < rows * ROW + LIST_PADDING;
|
|
14
14
|
}
|
|
15
|
-
//#endregion
|
|
16
15
|
export { roomBelowIsShort };
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
+
import { usePopupCollision } from "../../lib/frame-insets.mjs";
|
|
2
|
+
import { usePhoneMedia } from "../../lib/phone-media.mjs";
|
|
1
3
|
import { useTheme } from "../../lib/theme/use-theme.mjs";
|
|
2
4
|
import { useThemeScopeProps } from "../../lib/theme/theme-scope.mjs";
|
|
5
|
+
import { useOverflowTitle } from "../../lib/use-overflow-title.mjs";
|
|
3
6
|
import { ScrollAreaGutters } from "../scroll-area/scroll-area-gutters.mjs";
|
|
4
7
|
import { useScrollAreaContainer } from "../scroll-area/use-scroll-area-container.mjs";
|
|
5
|
-
import { usePopupCollision } from "../../lib/frame-insets.mjs";
|
|
6
|
-
import { useOverflowTitle } from "../../lib/use-overflow-title.mjs";
|
|
7
|
-
import { usePhoneMedia } from "../../lib/phone-media.mjs";
|
|
8
8
|
import { roomBelowIsShort } from "./combobox-select.list-side.mjs";
|
|
9
9
|
import { isOptionGroup, normalizeOption, optionKey } from "./combobox-select.options.mjs";
|
|
10
10
|
import { Check, ChevronDown, LoaderCircle, Plus, X } from "lucide-react";
|
|
11
11
|
import { useCallback, useEffect, useId, useMemo, useRef, useState } from "react";
|
|
12
12
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
13
13
|
import { Combobox } from "@base-ui/react/combobox";
|
|
14
|
-
|
|
14
|
+
// src/components/combobox-select/combobox-select.tsx
|
|
15
15
|
const defaultMessages = {
|
|
16
16
|
clear: "Clear selection",
|
|
17
17
|
toggle: "Toggle options",
|
|
@@ -494,5 +494,4 @@ function ComboboxSelectList({ children, loading }) {
|
|
|
494
494
|
}), /* @__PURE__ */ jsx(ScrollAreaGutters, { ...guttersProps })]
|
|
495
495
|
});
|
|
496
496
|
}
|
|
497
|
-
//#endregion
|
|
498
497
|
export { ComboboxSelect };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/components/combobox-select/combobox-select.options.ts
|
|
2
2
|
function isOptionGroup(option) {
|
|
3
3
|
return typeof option === "object" && option !== null && "type" in option && option.type === "group" && "children" in option && Array.isArray(option.children);
|
|
4
4
|
}
|
|
@@ -17,5 +17,4 @@ function normalizeOption(option, labelField, valueField, disabledField) {
|
|
|
17
17
|
function optionKey(value) {
|
|
18
18
|
return `${typeof value}:${value}`;
|
|
19
19
|
}
|
|
20
|
-
//#endregion
|
|
21
20
|
export { isOptionGroup, normalizeOption, optionKey };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { CSSProperties, ComponentPropsWithRef, ReactNode } from "react";
|
|
2
2
|
import { Combobox } from "@base-ui/react/combobox";
|
|
3
|
-
//#region src/components/combobox-select/combobox-select.types.d.ts
|
|
4
3
|
export type ComboboxSelectValue = string | number;
|
|
5
4
|
export interface ComboboxSelectOption {
|
|
6
5
|
value: ComboboxSelectValue;
|
|
@@ -80,4 +79,4 @@ export type ComboboxSelectProps<Option = ComboboxSelectOption, Multiple extends
|
|
|
80
79
|
className?: string;
|
|
81
80
|
style?: CSSProperties;
|
|
82
81
|
};
|
|
83
|
-
|
|
82
|
+
export {};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { ComboboxSelectGroup, ComboboxSelectMessages, ComboboxSelectOption, ComboboxSelectProps, ComboboxSelectSelection, ComboboxSelectValue } from "./combobox-select.types.mjs";
|
|
2
1
|
import { ComboboxSelect } from "./combobox-select.mjs";
|
|
2
|
+
import { ComboboxSelectGroup, ComboboxSelectMessages, ComboboxSelectOption, ComboboxSelectProps, ComboboxSelectSelection, ComboboxSelectValue } from "./combobox-select.types.mjs";
|
|
3
3
|
export { ComboboxSelect, type ComboboxSelectGroup, type ComboboxSelectMessages, type ComboboxSelectOption, type ComboboxSelectProps, type ComboboxSelectSelection, type ComboboxSelectValue };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { useRender } from "@base-ui/react/use-render";
|
|
2
|
-
//#region src/components/comment/comment-card.d.ts
|
|
3
2
|
export type CommentCardProps = useRender.ComponentProps<"div"> & {
|
|
4
3
|
/** The discussion people are reading or replying to: an ink border, lifted. */
|
|
5
4
|
active?: boolean;
|
|
@@ -36,5 +35,4 @@ export type CommentCardQuoteProps = useRender.ComponentProps<"span">;
|
|
|
36
35
|
* `aria-describedby` of `CommentCardTrigger` or `CommentMarker` at it, so a
|
|
37
36
|
* screen reader says which passage a card is about.
|
|
38
37
|
*/
|
|
39
|
-
export declare function CommentCardQuote({ className, render, ...props }: CommentCardQuoteProps): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
|
|
40
|
-
//#endregion
|
|
38
|
+
export declare function CommentCardQuote({ className, render, ...props }: CommentCardQuoteProps): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { comment } from "./comment.recipe.mjs";
|
|
2
2
|
import { mergeProps } from "@base-ui/react/merge-props";
|
|
3
3
|
import { useRender } from "@base-ui/react/use-render";
|
|
4
|
-
|
|
4
|
+
// src/components/comment/comment-card.tsx
|
|
5
5
|
/**
|
|
6
6
|
* The card of one discussion: its comments, a line such as "2 replies", and
|
|
7
7
|
* the reply box when it is open. A `div`; which parts it holds (collapsed or
|
|
@@ -79,5 +79,4 @@ function CommentCardQuote({ className, render, ...props }) {
|
|
|
79
79
|
props: mergeProps(defaultProps, props)
|
|
80
80
|
});
|
|
81
81
|
}
|
|
82
|
-
//#endregion
|
|
83
82
|
export { CommentCard, CommentCardMeta, CommentCardQuote, CommentCardTrigger };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { useRender } from "@base-ui/react/use-render";
|
|
2
|
-
//#region src/components/comment/comment-entry.d.ts
|
|
3
2
|
export type CommentEntryProps = useRender.ComponentProps<"div">;
|
|
4
3
|
/** One comment in a discussion: its header, then its text. */
|
|
5
4
|
export declare function CommentEntry({ className, render, ...props }: CommentEntryProps): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
|
|
@@ -20,5 +19,4 @@ export type CommentEntryBodyProps = useRender.ComponentProps<"div"> & {
|
|
|
20
19
|
clamp?: boolean;
|
|
21
20
|
};
|
|
22
21
|
/** What the comment says. */
|
|
23
|
-
export declare function CommentEntryBody({ className, render, clamp, ...props }: CommentEntryBodyProps): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
|
|
24
|
-
//#endregion
|
|
22
|
+
export declare function CommentEntryBody({ className, render, clamp, ...props }: CommentEntryBodyProps): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { comment } from "./comment.recipe.mjs";
|
|
2
2
|
import { mergeProps } from "@base-ui/react/merge-props";
|
|
3
3
|
import { useRender } from "@base-ui/react/use-render";
|
|
4
|
-
|
|
4
|
+
// src/components/comment/comment-entry.tsx
|
|
5
5
|
/** One comment in a discussion: its header, then its text. */
|
|
6
6
|
function CommentEntry({ className, render, ...props }) {
|
|
7
7
|
const { entry } = comment();
|
|
@@ -71,5 +71,4 @@ function CommentEntryBody({ className, render, clamp = false, ...props }) {
|
|
|
71
71
|
props: mergeProps(defaultProps, props)
|
|
72
72
|
});
|
|
73
73
|
}
|
|
74
|
-
//#endregion
|
|
75
74
|
export { CommentEntry, CommentEntryAuthor, CommentEntryBody, CommentEntryHeader, CommentEntryTime };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/components/comment/comment-highlight.d.ts
|
|
2
1
|
/** The highlight of every passage that has comments (`::highlight(raft-comment)` in styles.css). */
|
|
3
2
|
export declare const COMMENT_HIGHLIGHT = "raft-comment";
|
|
4
3
|
/** The highlight of the passage of the open discussion (`::highlight(raft-comment-active)`). */
|
|
@@ -14,5 +13,4 @@ export declare const COMMENT_HIGHLIGHT_ACTIVE = "raft-comment-active";
|
|
|
14
13
|
* Where the browser has no `CSS.highlights`, it does nothing: the passages are
|
|
15
14
|
* not highlighted, and the cards still say where they belong.
|
|
16
15
|
*/
|
|
17
|
-
export declare function setCommentHighlights(name: string, ranges: Iterable<Range>): () => void;
|
|
18
|
-
//#endregion
|
|
16
|
+
export declare function setCommentHighlights(name: string, ranges: Iterable<Range>): () => void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/components/comment/comment-highlight.ts
|
|
2
2
|
/** The highlight of every passage that has comments (`::highlight(raft-comment)` in styles.css). */
|
|
3
3
|
const COMMENT_HIGHLIGHT = "raft-comment";
|
|
4
4
|
/** The highlight of the passage of the open discussion (`::highlight(raft-comment-active)`). */
|
|
@@ -29,5 +29,4 @@ function setCommentHighlights(name, ranges) {
|
|
|
29
29
|
if (registry.get(name) === highlight) registry.delete(name);
|
|
30
30
|
};
|
|
31
31
|
}
|
|
32
|
-
//#endregion
|
|
33
32
|
export { COMMENT_HIGHLIGHT, COMMENT_HIGHLIGHT_ACTIVE, setCommentHighlights };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/components/comment/comment-margin-layout.d.ts
|
|
2
1
|
/** One card in the margin: where its anchor is and how tall the card is, in px. */
|
|
3
2
|
export type CommentMarginLayoutItem = {
|
|
4
3
|
id: string;
|
|
@@ -28,5 +27,4 @@ export type CommentMarginLayout = {
|
|
|
28
27
|
* above 0: when the cards above the active one don't fit between 0 and its
|
|
29
28
|
* anchor, they stack from 0 and the active card follows them.
|
|
30
29
|
*/
|
|
31
|
-
export declare function resolveCommentMarginLayout(items: readonly CommentMarginLayoutItem[], { gap, activeId }?: CommentMarginLayoutOptions): CommentMarginLayout;
|
|
32
|
-
//#endregion
|
|
30
|
+
export declare function resolveCommentMarginLayout(items: readonly CommentMarginLayoutItem[], { gap, activeId }?: CommentMarginLayoutOptions): CommentMarginLayout;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/components/comment/comment-margin-layout.ts
|
|
2
2
|
/**
|
|
3
3
|
* Places the cards of a comment margin the way Google Docs does. Cards keep
|
|
4
4
|
* document order (by their anchor's top; equal tops keep the order given) and
|
|
@@ -40,5 +40,4 @@ function resolveCommentMarginLayout(items, { gap = 8, activeId = null } = {}) {
|
|
|
40
40
|
height
|
|
41
41
|
};
|
|
42
42
|
}
|
|
43
|
-
//#endregion
|
|
44
43
|
export { resolveCommentMarginLayout };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { useRender } from "@base-ui/react/use-render";
|
|
2
|
-
//#region src/components/comment/comment-margin.d.ts
|
|
3
2
|
export type CommentMarginProps = useRender.ComponentProps<"div"> & {
|
|
4
3
|
/** Space between two cards that would otherwise touch, in px. Default 8. */
|
|
5
4
|
gap?: number;
|
|
@@ -25,5 +24,4 @@ export type CommentMarginItemProps = useRender.ComponentProps<"div"> & {
|
|
|
25
24
|
* make room. Items with the same `top` keep the order they were first
|
|
26
25
|
* rendered in. The resolved top is `data-top`, applied as a `translateY`.
|
|
27
26
|
*/
|
|
28
|
-
export declare function CommentMarginItem({ className, render, style, top, active, ...props }: CommentMarginItemProps): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
|
|
29
|
-
//#endregion
|
|
27
|
+
export declare function CommentMarginItem({ className, render, style, top, active, ...props }: CommentMarginItemProps): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
|
|
@@ -4,7 +4,7 @@ import { createContext, use, useCallback, useEffect, useId, useLayoutEffect, use
|
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
import { mergeProps } from "@base-ui/react/merge-props";
|
|
6
6
|
import { useRender } from "@base-ui/react/use-render";
|
|
7
|
-
|
|
7
|
+
// src/components/comment/comment-margin.tsx
|
|
8
8
|
const CommentMarginContext = createContext(null);
|
|
9
9
|
function useCommentMargin() {
|
|
10
10
|
const context = use(CommentMarginContext);
|
|
@@ -161,5 +161,4 @@ function CommentMarginItem({ className, render, style, top, active = false, ...p
|
|
|
161
161
|
props: mergeProps(defaultProps, props)
|
|
162
162
|
});
|
|
163
163
|
}
|
|
164
|
-
//#endregion
|
|
165
164
|
export { CommentMargin, CommentMarginItem };
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { StyledProps } from "../../lib/styled-props.mjs";
|
|
2
1
|
import { DataAttributes } from "../../lib/data-attributes.mjs";
|
|
2
|
+
import { StyledProps } from "../../lib/styled-props.mjs";
|
|
3
3
|
import { Button } from "@base-ui/react/button";
|
|
4
|
-
//#region src/components/comment/comment-marker.d.ts
|
|
5
4
|
export type CommentMarkerProps = StyledProps<Button.Props> & DataAttributes & {
|
|
6
5
|
/** The marker of the discussion that is open. */
|
|
7
6
|
active?: boolean;
|
|
@@ -12,5 +11,4 @@ export type CommentMarkerProps = StyledProps<Button.Props> & DataAttributes & {
|
|
|
12
11
|
* `size="2xs"` avatars) and the count. It opens the discussion, in a bottom
|
|
13
12
|
* sheet. Give it an `aria-label` that starts with the count ("2 comments").
|
|
14
13
|
*/
|
|
15
|
-
export declare function CommentMarker({ className, render, nativeButton, active, ...props }: CommentMarkerProps): import("react").JSX.Element;
|
|
16
|
-
//#endregion
|
|
14
|
+
export declare function CommentMarker({ className, render, nativeButton, active, ...props }: CommentMarkerProps): import("react").JSX.Element;
|
|
@@ -2,7 +2,7 @@ import { defaultNativeButton } from "../../lib/default-native-button.mjs";
|
|
|
2
2
|
import { comment } from "./comment.recipe.mjs";
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
4
|
import { Button } from "@base-ui/react/button";
|
|
5
|
-
|
|
5
|
+
// src/components/comment/comment-marker.tsx
|
|
6
6
|
/**
|
|
7
7
|
* Where there is no room for a margin: a small button beside a passage that
|
|
8
8
|
* has comments, with the authors' avatars (an `AvatarGroup` of up to 3
|
|
@@ -20,5 +20,4 @@ function CommentMarker({ className, render, nativeButton, active = false, ...pro
|
|
|
20
20
|
className: marker({ className })
|
|
21
21
|
});
|
|
22
22
|
}
|
|
23
|
-
//#endregion
|
|
24
23
|
export { CommentMarker };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { tv } from "../../lib/tv.mjs";
|
|
2
|
-
|
|
2
|
+
// src/components/comment/comment.recipe.ts
|
|
3
3
|
const comment = tv({
|
|
4
4
|
slots: {
|
|
5
5
|
margin: ["relative min-w-0"],
|
|
@@ -53,5 +53,4 @@ const comment = tv({
|
|
|
53
53
|
},
|
|
54
54
|
variants: { clamp: { true: { entryBody: ["line-clamp-2"] } } }
|
|
55
55
|
});
|
|
56
|
-
//#endregion
|
|
57
56
|
export { comment };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/components/comment/use-comment-margin-fits.d.ts
|
|
2
1
|
export type UseCommentMarginFitsOptions = {
|
|
3
2
|
/** The narrowest the viewer may be for the margin to show, in px. Default 784. */
|
|
4
3
|
minWidth?: number;
|
|
@@ -12,5 +11,4 @@ export type UseCommentMarginFitsOptions = {
|
|
|
12
11
|
* are different trees, so this is measured in JavaScript (a
|
|
13
12
|
* `ResizeObserver` on the element), not decided by a container query.
|
|
14
13
|
*/
|
|
15
|
-
export declare function useCommentMarginFits(element: Element | null, { minWidth }?: UseCommentMarginFitsOptions): boolean;
|
|
16
|
-
//#endregion
|
|
14
|
+
export declare function useCommentMarginFits(element: Element | null, { minWidth }?: UseCommentMarginFitsOptions): boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DESKTOP_MEDIA_QUERY } from "../../lib/desktop-media.mjs";
|
|
2
2
|
import { useLayoutEffect, useState, useSyncExternalStore } from "react";
|
|
3
|
-
|
|
3
|
+
// src/components/comment/use-comment-margin-fits.ts
|
|
4
4
|
const canMatchMedia = () => typeof window !== "undefined" && typeof window.matchMedia === "function";
|
|
5
5
|
function subscribeDesktop(onChange) {
|
|
6
6
|
if (!canMatchMedia()) return () => void 0;
|
|
@@ -32,5 +32,4 @@ function useCommentMarginFits(element, { minWidth = 784 } = {}) {
|
|
|
32
32
|
}, [element]);
|
|
33
33
|
return desktop && element !== null && width >= minWidth;
|
|
34
34
|
}
|
|
35
|
-
//#endregion
|
|
36
35
|
export { useCommentMarginFits };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { tv } from "../../lib/tv.mjs";
|
|
2
|
-
|
|
2
|
+
// src/components/composer/composer-attachment.recipe.ts
|
|
3
3
|
const composerAttachment = tv({
|
|
4
4
|
slots: {
|
|
5
5
|
attachments: [
|
|
@@ -80,5 +80,4 @@ const composerAttachment = tv({
|
|
|
80
80
|
next: { attachmentsNav: "right-1.5" }
|
|
81
81
|
} }
|
|
82
82
|
});
|
|
83
|
-
//#endregion
|
|
84
83
|
export { composerAttachment };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { ComponentPropsWithoutRef } from "react";
|
|
2
|
-
//#region src/components/composer/composer-attachments-scroll-area.d.ts
|
|
3
2
|
export type ComposerAttachmentsScrollAreaProps = ComponentPropsWithoutRef<"div">;
|
|
4
3
|
/**
|
|
5
4
|
* One scrolling row of attachments: a horizontal ScrollArea (its thin
|
|
@@ -7,5 +6,4 @@ export type ComposerAttachmentsScrollAreaProps = ComponentPropsWithoutRef<"div">
|
|
|
7
6
|
* that has more attachments past it. The ScrollArea reports the edges, so
|
|
8
7
|
* the arrows follow scrolling, resizing and attachments coming and going.
|
|
9
8
|
*/
|
|
10
|
-
export declare function ComposerAttachmentsScrollArea({ children, className, onMouseEnter, onMouseLeave, ...props }: ComposerAttachmentsScrollAreaProps): import("react").JSX.Element;
|
|
11
|
-
//#endregion
|
|
9
|
+
export declare function ComposerAttachmentsScrollArea({ children, className, onMouseEnter, onMouseLeave, ...props }: ComposerAttachmentsScrollAreaProps): import("react").JSX.Element;
|
|
@@ -4,7 +4,7 @@ import { composerAttachment } from "./composer-attachment.recipe.mjs";
|
|
|
4
4
|
import { ChevronLeft, ChevronRight } from "lucide-react";
|
|
5
5
|
import { useCallback, useRef, useState } from "react";
|
|
6
6
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
|
-
|
|
7
|
+
// src/components/composer/composer-attachments-scroll-area.tsx
|
|
8
8
|
function scrollByPage(viewport, direction) {
|
|
9
9
|
if (!viewport) return;
|
|
10
10
|
const page = viewport.clientWidth;
|
|
@@ -78,5 +78,4 @@ function ComposerAttachmentsScrollArea({ children, className, onMouseEnter, onMo
|
|
|
78
78
|
]
|
|
79
79
|
});
|
|
80
80
|
}
|
|
81
|
-
//#endregion
|
|
82
81
|
export { ComposerAttachmentsScrollArea };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { useRender } from "@base-ui/react/use-render";
|
|
2
|
-
//#region src/components/composer/composer-attachments.d.ts
|
|
3
2
|
export type ComposerAttachmentsProps = useRender.ComponentProps<"div">;
|
|
4
3
|
export declare function ComposerAttachments({ className, render, ...props }: ComposerAttachmentsProps): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
|
|
5
4
|
export type ComposerAttachmentProps = useRender.ComponentProps<"div">;
|
|
@@ -23,5 +22,4 @@ export declare function ComposerAttachmentUploadProgressBar({ className, render,
|
|
|
23
22
|
export type ComposerAttachmentFailedOverlayProps = useRender.ComponentProps<"span">;
|
|
24
23
|
export declare function ComposerAttachmentFailedOverlay({ className, render, ...props }: ComposerAttachmentFailedOverlayProps): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
|
|
25
24
|
export type ComposerAttachmentRemoveProps = useRender.ComponentProps<"button">;
|
|
26
|
-
export declare function ComposerAttachmentRemove({ className, render, ...props }: ComposerAttachmentRemoveProps): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
|
|
27
|
-
//#endregion
|
|
25
|
+
export declare function ComposerAttachmentRemove({ className, render, ...props }: ComposerAttachmentRemoveProps): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
|
|
@@ -3,7 +3,7 @@ import { jsx } from "react/jsx-runtime";
|
|
|
3
3
|
import { Button } from "@base-ui/react/button";
|
|
4
4
|
import { mergeProps } from "@base-ui/react/merge-props";
|
|
5
5
|
import { useRender } from "@base-ui/react/use-render";
|
|
6
|
-
|
|
6
|
+
// src/components/composer/composer-attachments.tsx
|
|
7
7
|
function ComposerAttachments({ className, render, ...props }) {
|
|
8
8
|
const { attachments } = composerAttachment();
|
|
9
9
|
const defaultProps = {
|
|
@@ -143,5 +143,4 @@ function ComposerAttachmentRemove({ className, render, ...props }) {
|
|
|
143
143
|
props: mergeProps(defaultProps, props)
|
|
144
144
|
});
|
|
145
145
|
}
|
|
146
|
-
//#endregion
|
|
147
146
|
export { ComposerAttachment, ComposerAttachmentBody, ComposerAttachmentFailedOverlay, ComposerAttachmentFile, ComposerAttachmentImage, ComposerAttachmentMeta, ComposerAttachmentRemove, ComposerAttachmentTitle, ComposerAttachmentUploadProgressBar, ComposerAttachmentUploadingOverlay, ComposerAttachments };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { useRender } from "@base-ui/react/use-render";
|
|
3
|
-
//#region src/components/composer/composer-drop-overlay.d.ts
|
|
4
3
|
export type ComposerDropOverlayProps = useRender.ComponentProps<"div">;
|
|
5
4
|
export declare function ComposerDropOverlay({ className, render, ...props }: ComposerDropOverlayProps): React.ReactElement<unknown, string | React.JSXElementConstructor<any>>;
|
|
6
5
|
export type ComposerDropOverlayLabelProps = useRender.ComponentProps<"span">;
|
|
@@ -10,5 +9,4 @@ export type ComposerDropOverlayPromptProps = Omit<ComposerDropOverlayLabelProps,
|
|
|
10
9
|
children: React.ReactNode;
|
|
11
10
|
};
|
|
12
11
|
/** The label with the files-and-upload icon cluster above the caller's text. */
|
|
13
|
-
export declare function ComposerDropOverlayPrompt({ children, ...props }: ComposerDropOverlayPromptProps): React.JSX.Element;
|
|
14
|
-
//#endregion
|
|
12
|
+
export declare function ComposerDropOverlayPrompt({ children, ...props }: ComposerDropOverlayPromptProps): React.JSX.Element;
|
|
@@ -3,7 +3,7 @@ import { FileText, Image, Upload } from "lucide-react";
|
|
|
3
3
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
4
|
import { mergeProps } from "@base-ui/react/merge-props";
|
|
5
5
|
import { useRender } from "@base-ui/react/use-render";
|
|
6
|
-
|
|
6
|
+
// src/components/composer/composer-drop-overlay.tsx
|
|
7
7
|
function ComposerDropOverlay({ className, render, ...props }) {
|
|
8
8
|
const { dropOverlay } = composerDropOverlay();
|
|
9
9
|
const defaultProps = {
|
|
@@ -53,5 +53,4 @@ function ComposerDropOverlayPrompt({ children, ...props }) {
|
|
|
53
53
|
}), /* @__PURE__ */ jsx("span", { children })]
|
|
54
54
|
});
|
|
55
55
|
}
|
|
56
|
-
//#endregion
|
|
57
56
|
export { ComposerDropOverlay, ComposerDropOverlayLabel, ComposerDropOverlayPrompt };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { tv } from "../../lib/tv.mjs";
|
|
2
|
-
|
|
2
|
+
// src/components/composer/composer-drop-overlay.recipe.ts
|
|
3
3
|
const composerDropOverlay = tv({ slots: {
|
|
4
4
|
dropOverlay: [
|
|
5
5
|
"absolute inset-0 z-float flex items-center justify-center",
|
|
@@ -19,5 +19,4 @@ const composerDropOverlay = tv({ slots: {
|
|
|
19
19
|
"[&_svg]:size-4"
|
|
20
20
|
]
|
|
21
21
|
} });
|
|
22
|
-
//#endregion
|
|
23
22
|
export { composerDropOverlay };
|
|
@@ -1,5 +1,3 @@
|
|
|
1
1
|
import { useRender } from "@base-ui/react/use-render";
|
|
2
|
-
//#region src/components/composer/composer-root.d.ts
|
|
3
2
|
export type ComposerRootProps = useRender.ComponentProps<"form">;
|
|
4
|
-
export declare function ComposerRoot({ className, render, ...props }: ComposerRootProps): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
|
|
5
|
-
//#endregion
|
|
3
|
+
export declare function ComposerRoot({ className, render, ...props }: ComposerRootProps): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { tv } from "../../lib/tv.mjs";
|
|
2
2
|
import { mergeProps } from "@base-ui/react/merge-props";
|
|
3
3
|
import { useRender } from "@base-ui/react/use-render";
|
|
4
|
-
|
|
4
|
+
// src/components/composer/composer-root.tsx
|
|
5
5
|
const composerRoot = tv({ base: ["relative flex w-full flex-col", "gap-2"] });
|
|
6
6
|
function ComposerRoot({ className, render, ...props }) {
|
|
7
7
|
const defaultProps = {
|
|
@@ -14,5 +14,4 @@ function ComposerRoot({ className, render, ...props }) {
|
|
|
14
14
|
props: mergeProps(defaultProps, props)
|
|
15
15
|
});
|
|
16
16
|
}
|
|
17
|
-
//#endregion
|
|
18
17
|
export { ComposerRoot };
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { VariantProps } from "../../lib/tv.mjs";
|
|
2
2
|
import { ScrollAreaProps } from "../scroll-area/types.mjs";
|
|
3
3
|
import { useRender } from "@base-ui/react/use-render";
|
|
4
|
-
|
|
5
|
-
declare const composerSuggestionList: import("tailwind-variants/lite").TVReturnType<{
|
|
4
|
+
declare const composerSuggestionList: import("tailwind-variants/config").TVReturnType<{
|
|
6
5
|
separated: {
|
|
7
6
|
true: {
|
|
8
7
|
group: string[];
|
|
@@ -39,81 +38,7 @@ declare const composerSuggestionList: import("tailwind-variants/lite").TVReturnT
|
|
|
39
38
|
title: string[];
|
|
40
39
|
aside: string[];
|
|
41
40
|
meta: string[];
|
|
42
|
-
}, undefined,
|
|
43
|
-
separated: {
|
|
44
|
-
true: {
|
|
45
|
-
group: string[];
|
|
46
|
-
};
|
|
47
|
-
false: {};
|
|
48
|
-
};
|
|
49
|
-
iconVariant: {
|
|
50
|
-
avatar: {};
|
|
51
|
-
framed: {
|
|
52
|
-
icon: string[];
|
|
53
|
-
};
|
|
54
|
-
auxiliary: {
|
|
55
|
-
icon: string[];
|
|
56
|
-
};
|
|
57
|
-
inline: {
|
|
58
|
-
icon: string[];
|
|
59
|
-
};
|
|
60
|
-
};
|
|
61
|
-
metaVariant: {
|
|
62
|
-
text: {
|
|
63
|
-
meta: string;
|
|
64
|
-
};
|
|
65
|
-
code: {
|
|
66
|
-
meta: string[];
|
|
67
|
-
};
|
|
68
|
-
};
|
|
69
|
-
}, {
|
|
70
|
-
root: string[];
|
|
71
|
-
group: string[];
|
|
72
|
-
groupLabel: string[];
|
|
73
|
-
item: string[];
|
|
74
|
-
content: string[];
|
|
75
|
-
icon: string[];
|
|
76
|
-
title: string[];
|
|
77
|
-
aside: string[];
|
|
78
|
-
meta: string[];
|
|
79
|
-
}, import("tailwind-variants/lite").TVReturnTypeLike<{
|
|
80
|
-
separated: {
|
|
81
|
-
true: {
|
|
82
|
-
group: string[];
|
|
83
|
-
};
|
|
84
|
-
false: {};
|
|
85
|
-
};
|
|
86
|
-
iconVariant: {
|
|
87
|
-
avatar: {};
|
|
88
|
-
framed: {
|
|
89
|
-
icon: string[];
|
|
90
|
-
};
|
|
91
|
-
auxiliary: {
|
|
92
|
-
icon: string[];
|
|
93
|
-
};
|
|
94
|
-
inline: {
|
|
95
|
-
icon: string[];
|
|
96
|
-
};
|
|
97
|
-
};
|
|
98
|
-
metaVariant: {
|
|
99
|
-
text: {
|
|
100
|
-
meta: string;
|
|
101
|
-
};
|
|
102
|
-
code: {
|
|
103
|
-
meta: string[];
|
|
104
|
-
};
|
|
105
|
-
};
|
|
106
|
-
}, {
|
|
107
|
-
root: string[];
|
|
108
|
-
group: string[];
|
|
109
|
-
groupLabel: string[];
|
|
110
|
-
item: string[];
|
|
111
|
-
content: string[];
|
|
112
|
-
icon: string[];
|
|
113
|
-
title: string[];
|
|
114
|
-
aside: string[];
|
|
115
|
-
meta: string[];
|
|
116
|
-
}>>;
|
|
41
|
+
}, undefined, undefined, undefined, undefined>;
|
|
117
42
|
export type ComposerSuggestionListProps = ScrollAreaProps;
|
|
118
43
|
/** The suggestions' popup, a ScrollArea: `ref`, `className`, `render` and
|
|
119
44
|
* the native props (the listbox's role and id) are the scrolling element's. */
|
|
@@ -139,4 +64,4 @@ export type ComposerSuggestionMetaProps = useRender.ComponentProps<"span"> & {
|
|
|
139
64
|
variant?: ComposerSuggestionListVariantProps["metaVariant"];
|
|
140
65
|
};
|
|
141
66
|
export declare function ComposerSuggestionMeta({ variant, className, render, ...props }: ComposerSuggestionMetaProps): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
|
|
142
|
-
|
|
67
|
+
export {};
|
|
@@ -3,7 +3,7 @@ import { ScrollArea } from "../scroll-area/scroll-area.mjs";
|
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
4
|
import { mergeProps } from "@base-ui/react/merge-props";
|
|
5
5
|
import { useRender } from "@base-ui/react/use-render";
|
|
6
|
-
|
|
6
|
+
// src/components/composer/composer-suggestion-list.tsx
|
|
7
7
|
const composerSuggestionList = tv({
|
|
8
8
|
slots: {
|
|
9
9
|
root: [
|
|
@@ -158,5 +158,4 @@ function ComposerSuggestionMeta({ variant = "text", className, render, ...props
|
|
|
158
158
|
props: mergeProps(defaultProps, props)
|
|
159
159
|
});
|
|
160
160
|
}
|
|
161
|
-
//#endregion
|
|
162
161
|
export { ComposerSuggestionAside, ComposerSuggestionContent, ComposerSuggestionGroup, ComposerSuggestionGroupLabel, ComposerSuggestionIcon, ComposerSuggestionList, ComposerSuggestionMeta, ComposerSuggestionOption, ComposerSuggestionTitle };
|