@botiverse/raft-ui 0.94.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 +15 -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 +59 -63
- package/dist/index-exports.mjs +34 -37
- package/dist/index.d.mts +2 -5
- 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 +1 -3
- package/dist/lib/inside-overlay.mjs +1 -2
- 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
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { hudTextAction } from "../../lib/hud-text-action.mjs";
|
|
2
2
|
import { tv } from "../../lib/tv.mjs";
|
|
3
3
|
import { useThemeScopeProps } from "../../lib/theme/theme-scope.mjs";
|
|
4
4
|
import { Spinner } from "../spinner/spinner.mjs";
|
|
5
|
-
import {
|
|
5
|
+
import { cn } from "../../cn.mjs";
|
|
6
6
|
import { CircleCheck, Info, TriangleAlert } from "lucide-react";
|
|
7
7
|
import { cloneElement, createContext, isValidElement, useCallback, useContext, useLayoutEffect, useMemo, useRef } from "react";
|
|
8
8
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
9
9
|
import { Toast } from "@base-ui/react/toast";
|
|
10
|
-
|
|
10
|
+
// src/components/toast/toast.tsx
|
|
11
11
|
const toastStyles = tv({
|
|
12
12
|
slots: {
|
|
13
13
|
viewport: ["pointer-events-none isolate z-toast w-[min(24rem,calc(100vw-2rem))]", "outline-none"],
|
|
@@ -553,5 +553,4 @@ function ToastArrowSvg(props) {
|
|
|
553
553
|
})
|
|
554
554
|
});
|
|
555
555
|
}
|
|
556
|
-
//#endregion
|
|
557
556
|
export { ToastAction, ToastActions, ToastArrow, ToastBody, ToastClose, ToastContent, ToastDescription, ToastIcon, ToastPortal, ToastPositioner, ToastProgress, ToastProvider, ToastRoot, ToastTitle, ToastViewport, createToastManager, toast, useToastManager };
|
|
@@ -2,7 +2,6 @@ import { StyledProps } from "../../lib/styled-props.mjs";
|
|
|
2
2
|
import { ComponentPropsWithRef } from "react";
|
|
3
3
|
import { Toggle } from "@base-ui/react/toggle";
|
|
4
4
|
import { ToggleGroup } from "@base-ui/react/toggle-group";
|
|
5
|
-
//#region src/components/toggle-group/toggle-group.d.ts
|
|
6
5
|
export type ToggleGroupProps<T extends string = string> = StyledProps<ToggleGroup.Props<T>>;
|
|
7
6
|
declare function ToggleGroup$1<T extends string = string>({ className, ...props }: ToggleGroupProps<T>): import("react").JSX.Element;
|
|
8
7
|
export type ToggleGroupItemProps<T extends string = string> = StyledProps<Omit<Toggle.Props<T>, "defaultPressed" | "pressed">> & {
|
|
@@ -11,5 +10,4 @@ export type ToggleGroupItemProps<T extends string = string> = StyledProps<Omit<T
|
|
|
11
10
|
export declare function ToggleGroupItem<T extends string = string>({ className, nativeButton, render, ref, ...props }: ToggleGroupItemProps<T>): import("react").JSX.Element;
|
|
12
11
|
export type ToggleGroupLabelProps = ComponentPropsWithRef<"span">;
|
|
13
12
|
export declare function ToggleGroupLabel({ className, ...props }: ToggleGroupLabelProps): import("react").JSX.Element;
|
|
14
|
-
//#endregion
|
|
15
13
|
export { ToggleGroup$1 as ToggleGroup };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { tv } from "../../lib/tv.mjs";
|
|
2
2
|
import { defaultNativeButton } from "../../lib/default-native-button.mjs";
|
|
3
|
-
import { useMergedRef } from "../../lib/use-merged-ref.mjs";
|
|
4
3
|
import { useTapActivation } from "../../lib/tap-activation.mjs";
|
|
4
|
+
import { useMergedRef } from "../../lib/use-merged-ref.mjs";
|
|
5
5
|
import { jsx } from "react/jsx-runtime";
|
|
6
6
|
import { Toggle } from "@base-ui/react/toggle";
|
|
7
7
|
import { ToggleGroup } from "@base-ui/react/toggle-group";
|
|
8
|
-
|
|
8
|
+
// src/components/toggle-group/toggle-group.tsx
|
|
9
9
|
const toggleGroup = tv({ slots: {
|
|
10
10
|
root: [
|
|
11
11
|
"inline-flex max-w-full items-center",
|
|
@@ -60,5 +60,4 @@ function ToggleGroupLabel({ className, ...props }) {
|
|
|
60
60
|
...props
|
|
61
61
|
});
|
|
62
62
|
}
|
|
63
|
-
//#endregion
|
|
64
63
|
export { ToggleGroup$1 as ToggleGroup, ToggleGroupItem, ToggleGroupLabel };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { StyledProps } from "../../lib/styled-props.mjs";
|
|
2
2
|
import { Tooltip } from "@base-ui/react/tooltip";
|
|
3
|
-
//#region src/components/tooltip/tooltip.d.ts
|
|
4
3
|
export type TooltipProviderProps = Tooltip.Provider.Props;
|
|
5
4
|
export declare function TooltipProvider({ delay, ...props }: TooltipProviderProps): import("react").JSX.Element;
|
|
6
5
|
export type TooltipProps = Tooltip.Root.Props;
|
|
@@ -14,5 +13,4 @@ export type TooltipContentProps = StyledProps<Tooltip.Popup.Props> & Pick<Toolti
|
|
|
14
13
|
portalProps?: TooltipPortalProps;
|
|
15
14
|
};
|
|
16
15
|
export declare function TooltipContent({ align, alignOffset, anchor, arrowPadding, collisionAvoidance, collisionBoundary, collisionPadding, disableAnchorTracking, positionMethod, side, sideOffset, sticky, container, portalProps, className, children, ...props }: TooltipContentProps): import("react").JSX.Element;
|
|
17
|
-
//#endregion
|
|
18
16
|
export { Tooltip$1 as Tooltip };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
+
import { usePopupCollision } from "../../lib/frame-insets.mjs";
|
|
1
2
|
import { tv } from "../../lib/tv.mjs";
|
|
2
3
|
import { useThemeScopeProps } from "../../lib/theme/theme-scope.mjs";
|
|
3
|
-
import { usePopupCollision } from "../../lib/frame-insets.mjs";
|
|
4
4
|
import { isInlinePart } from "../../lib/inline-part.mjs";
|
|
5
5
|
import { Children, Fragment, isValidElement } from "react";
|
|
6
6
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
7
|
import { Tooltip } from "@base-ui/react/tooltip";
|
|
8
|
-
|
|
8
|
+
// src/components/tooltip/tooltip.tsx
|
|
9
9
|
const tooltip = tv({
|
|
10
10
|
slots: {
|
|
11
11
|
trigger: ["select-none"],
|
|
@@ -205,5 +205,4 @@ function TooltipContent({ align = "center", alignOffset = 0, anchor, arrowPaddin
|
|
|
205
205
|
})
|
|
206
206
|
});
|
|
207
207
|
}
|
|
208
|
-
//#endregion
|
|
209
208
|
export { Tooltip$1 as Tooltip, TooltipContent, TooltipPortal, TooltipProvider, TooltipTrigger };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createContext, useContext } from "react";
|
|
2
|
-
|
|
2
|
+
// src/components/virtual-list/ItemColumns.tsx
|
|
3
3
|
const ColumnsContext = createContext(null);
|
|
4
4
|
/**
|
|
5
5
|
* Renders the item's columns in the current column range: `renderItemWithCols` once, else
|
|
@@ -33,5 +33,4 @@ function ItemColumns(props) {
|
|
|
33
33
|
}
|
|
34
34
|
return null;
|
|
35
35
|
}
|
|
36
|
-
//#endregion
|
|
37
36
|
export { ColumnsContext, ItemColumns };
|
|
@@ -1,4 +1,2 @@
|
|
|
1
1
|
import { VirtualListProps } from "./public-types.mjs";
|
|
2
|
-
|
|
3
|
-
export declare function VirtualList<T>(props: VirtualListProps<T>): import("react").JSX.Element;
|
|
4
|
-
//#endregion
|
|
2
|
+
export declare function VirtualList<T>(props: VirtualListProps<T>): import("react").JSX.Element;
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import { cn } from "../../cn.mjs";
|
|
2
|
-
import { useMergedRef } from "../../lib/use-merged-ref.mjs";
|
|
3
1
|
import { EMPTY_ARRAY, ITEM_KEY_ATTR, NON_VIRTUAL_VISIBLE_ITEMS_STYLE, RENDER_THRASHING_WINDOW_MS, VIRTUAL_VISIBLE_ITEMS_STYLE } from "./utils/constants.mjs";
|
|
4
2
|
import { FenwickTree } from "./utils/fenwick-tree.mjs";
|
|
5
3
|
import { findItemsAnchor, getAnchoredRange } from "./utils/items-anchor.mjs";
|
|
@@ -7,6 +5,7 @@ import { useEventCallback } from "./hooks/use-event-callback.mjs";
|
|
|
7
5
|
import { useLatestRef } from "./hooks/use-latest-ref.mjs";
|
|
8
6
|
import { useLayoutEffectWithPrevious } from "./hooks/use-layout-effect-with-previous.mjs";
|
|
9
7
|
import { useMemoWithPrevious } from "./hooks/use-memo-with-previous.mjs";
|
|
8
|
+
import { useMergedRef } from "../../lib/use-merged-ref.mjs";
|
|
10
9
|
import { useNonPassiveWheel } from "./hooks/use-non-passive-wheel.mjs";
|
|
11
10
|
import { ColumnsContext, ItemColumns } from "./ItemColumns.mjs";
|
|
12
11
|
import { createLatestInNextFrame, getWheelDeltaScale, isCoarsePointer, isIOS } from "./utils/platform.mjs";
|
|
@@ -14,17 +13,18 @@ import { getAlignedScrollTop } from "./utils/align.mjs";
|
|
|
14
13
|
import { measureRowSpans, measureRowStart } from "./utils/measure.mjs";
|
|
15
14
|
import { createTypicalSizeCache, getTypicalSize, recordMeasuredSize } from "./utils/size-cache.mjs";
|
|
16
15
|
import { getHorizontalRange, getNeededEnd, getOverscannedRange, getVerticalRange, haveSameKeys, isHiddenByDisplayNone, px } from "./utils/range.mjs";
|
|
17
|
-
import { getResizeObserverDelegate } from "./resize-observer/resize-observer-delegate.mjs";
|
|
18
16
|
import { ResizeObserverWrapper } from "./resize-observer/ResizeObserverWrapper.mjs";
|
|
17
|
+
import { getResizeObserverDelegate } from "./resize-observer/resize-observer-delegate.mjs";
|
|
19
18
|
import { useIosMomentumCompensation } from "./hooks/use-ios-momentum-compensation.mjs";
|
|
20
19
|
import { useKeyboardScroll } from "./hooks/use-keyboard-scroll.mjs";
|
|
21
20
|
import { useNonVirtualContentResize } from "./hooks/use-non-virtual-content-resize.mjs";
|
|
22
21
|
import { useScrollAnchor } from "./hooks/use-scroll-anchor.mjs";
|
|
23
22
|
import { VirtualListContext } from "./VirtualListContext.mjs";
|
|
23
|
+
import { cn } from "../../cn.mjs";
|
|
24
24
|
import { createElement, useCallback, useImperativeHandle, useLayoutEffect, useMemo, useRef, useState } from "react";
|
|
25
25
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
26
26
|
import { flushSync } from "react-dom";
|
|
27
|
-
|
|
27
|
+
// src/components/virtual-list/VirtualList.tsx
|
|
28
28
|
/**
|
|
29
29
|
* The most range updates one aligned jump goes through before it stops (each one mounts and measures the
|
|
30
30
|
* rows the previous position brought into view; it is usually stable after 2-3).
|
|
@@ -1394,5 +1394,4 @@ function VirtualList(props) {
|
|
|
1394
1394
|
})
|
|
1395
1395
|
});
|
|
1396
1396
|
}
|
|
1397
|
-
//#endregion
|
|
1398
1397
|
export { VirtualList };
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { useCallback, useRef } from "react";
|
|
2
|
-
|
|
2
|
+
// src/components/virtual-list/hooks/use-event-callback.ts
|
|
3
3
|
/** A stable function that calls the `fn` of the latest render. */
|
|
4
4
|
function useEventCallback(fn) {
|
|
5
5
|
const fnRef = useRef(fn);
|
|
6
6
|
fnRef.current = fn;
|
|
7
7
|
return useCallback((...args) => fnRef.current(...args), []);
|
|
8
8
|
}
|
|
9
|
-
//#endregion
|
|
10
9
|
export { useEventCallback };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useEventCallback } from "./use-event-callback.mjs";
|
|
2
2
|
import { useLayoutEffect, useRef } from "react";
|
|
3
|
-
|
|
3
|
+
// src/components/virtual-list/hooks/use-ios-momentum-compensation.ts
|
|
4
4
|
/**
|
|
5
5
|
* On iOS, writing `scrollTop` during momentum scrolling stops the fling. So while a touch scroll is
|
|
6
6
|
* active, size changes above the view are accumulated and applied as `translateY(-compensation)` on
|
|
@@ -144,5 +144,4 @@ function useIosMomentumCompensation({ enabled, listElRef, itemsElRef, syncViewpo
|
|
|
144
144
|
})
|
|
145
145
|
};
|
|
146
146
|
}
|
|
147
|
-
//#endregion
|
|
148
147
|
export { useIosMomentumCompensation };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useCallback, useRef } from "react";
|
|
2
|
-
|
|
2
|
+
// src/components/virtual-list/hooks/use-keyboard-scroll.ts
|
|
3
3
|
/**
|
|
4
4
|
* PageUp / PageDown / Space (Shift+Space up) scroll by the list's height minus `pageBottomOcclusion`
|
|
5
5
|
* (what covers the bottom of the list, e.g. an input box) minus 32 px; Home / End and Cmd+Up / Cmd+Down
|
|
@@ -38,5 +38,4 @@ function useKeyboardScroll(scrollTo, { pageBottomOcclusion = 0 } = {}) {
|
|
|
38
38
|
}
|
|
39
39
|
}, [scrollTo]) };
|
|
40
40
|
}
|
|
41
|
-
//#endregion
|
|
42
41
|
export { useKeyboardScroll };
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { useRef } from "react";
|
|
2
|
-
|
|
2
|
+
// src/components/virtual-list/hooks/use-latest-ref.ts
|
|
3
3
|
/** A ref whose `current` is the value of the latest render. */
|
|
4
4
|
function useLatestRef(value) {
|
|
5
5
|
const ref = useRef(value);
|
|
6
6
|
ref.current = value;
|
|
7
7
|
return ref;
|
|
8
8
|
}
|
|
9
|
-
//#endregion
|
|
10
9
|
export { useLatestRef };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useLayoutEffect, useRef } from "react";
|
|
2
|
-
|
|
2
|
+
// src/components/virtual-list/hooks/use-layout-effect-with-previous.ts
|
|
3
3
|
/**
|
|
4
4
|
* `useLayoutEffect(() => fn(previousDeps), deps)`: the layout-effect form of useMemoWithPrevious;
|
|
5
5
|
* `fn` may return a cleanup.
|
|
@@ -12,5 +12,4 @@ function useLayoutEffectWithPrevious(fn, deps) {
|
|
|
12
12
|
return cleanup;
|
|
13
13
|
}, deps);
|
|
14
14
|
}
|
|
15
|
-
//#endregion
|
|
16
15
|
export { useLayoutEffectWithPrevious };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useLayoutEffect, useMemo, useRef } from "react";
|
|
2
|
-
|
|
2
|
+
// src/components/virtual-list/hooks/use-memo-with-previous.ts
|
|
3
3
|
/**
|
|
4
4
|
* `useMemo(() => fn(previousDeps), deps)`: runs `fn` while rendering whenever `deps` change, with the
|
|
5
5
|
* deps of the last committed render (`undefined` before the first commit).
|
|
@@ -18,5 +18,4 @@ function useMemoWithPrevious(fn, deps) {
|
|
|
18
18
|
previousRef.current = deps;
|
|
19
19
|
});
|
|
20
20
|
}
|
|
21
|
-
//#endregion
|
|
22
21
|
export { useMemoWithPrevious };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useLayoutEffect } from "react";
|
|
2
|
-
|
|
2
|
+
// src/components/virtual-list/hooks/use-non-passive-wheel.ts
|
|
3
3
|
/**
|
|
4
4
|
* Adds a non-passive `wheel` listener (so it may call `preventDefault`) to the element `getTarget`
|
|
5
5
|
* returns, in a layout effect, only while `enabled` (a non-passive listener can hold up scrolling, so
|
|
@@ -19,5 +19,4 @@ function useNonPassiveWheel(getTarget, listener, enabled) {
|
|
|
19
19
|
enabled
|
|
20
20
|
]);
|
|
21
21
|
}
|
|
22
|
-
//#endregion
|
|
23
22
|
export { useNonPassiveWheel };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useEventCallback } from "./use-event-callback.mjs";
|
|
2
2
|
import { getResizeObserverDelegate } from "../resize-observer/resize-observer-delegate.mjs";
|
|
3
3
|
import { useLayoutEffect } from "react";
|
|
4
|
-
|
|
4
|
+
// src/components/virtual-list/hooks/use-non-virtual-content-resize.ts
|
|
5
5
|
/**
|
|
6
6
|
* While `nonVirtual`, observes the items element and calls `onContentResize` when it resizes (with
|
|
7
7
|
* virtualization on, the list calls it from its own measurements).
|
|
@@ -24,5 +24,4 @@ function useNonVirtualContentResize(itemsElRef, onContentResize, nonVirtual) {
|
|
|
24
24
|
nonVirtual
|
|
25
25
|
]);
|
|
26
26
|
}
|
|
27
|
-
//#endregion
|
|
28
27
|
export { useNonVirtualContentResize };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useCallback, useRef } from "react";
|
|
2
|
-
|
|
2
|
+
// src/components/virtual-list/hooks/use-scroll-anchor.ts
|
|
3
3
|
/**
|
|
4
4
|
* Finds the first child of `container` whose box crosses the top of `scroller` (a binary search over
|
|
5
5
|
* `getBoundingClientRect()`) and saves it with its top in `anchorRef`, or null when there is none.
|
|
@@ -51,5 +51,4 @@ function useScrollAnchor(listElRef, getVisibleItemsEl) {
|
|
|
51
51
|
}, [])
|
|
52
52
|
};
|
|
53
53
|
}
|
|
54
|
-
//#endregion
|
|
55
54
|
export { useScrollAnchor };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ObservedResizeEntry } from "./resize-observer/resize-observer-delegate.mjs";
|
|
2
2
|
import { MeasuredRef } from "./resize-observer/ResizeObserverWrapper.mjs";
|
|
3
|
-
import { Column, FooterRender, ItemRenderProps, RenderAnomaly, RenderColInfo, RenderItemWithColsInfo, RenderReason, ScrollAlign, ScrollPosition, VirtualListApi, VirtualListProps, VirtualListScrollToOptions } from "./public-types.mjs";
|
|
4
3
|
import { VirtualList } from "./VirtualList.mjs";
|
|
5
|
-
|
|
4
|
+
import { Column, ItemRenderProps, RenderAnomaly, RenderReason, ScrollAlign, ScrollPosition, VirtualListApi, VirtualListFooterRender, VirtualListProps, VirtualListRenderColInfo, VirtualListRenderItemWithColsInfo, VirtualListScrollToOptions } from "./public-types.mjs";
|
|
5
|
+
export { VirtualList, type VirtualListApi, type Column as VirtualListColumn, type VirtualListFooterRender, type ItemRenderProps as VirtualListItemRenderProps, type MeasuredRef as VirtualListMeasuredRef, type VirtualListProps, type RenderAnomaly as VirtualListRenderAnomaly, type VirtualListRenderColInfo, type VirtualListRenderItemWithColsInfo, type RenderReason as VirtualListRenderReason, type ObservedResizeEntry as VirtualListResizeEntry, type ScrollAlign as VirtualListScrollAlign, type ScrollPosition as VirtualListScrollPosition, type VirtualListScrollToOptions };
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import { ObservedResizeEntry } from "./resize-observer/resize-observer-delegate.mjs";
|
|
2
2
|
import { MeasuredRef } from "./resize-observer/ResizeObserverWrapper.mjs";
|
|
3
3
|
import { CSSProperties, ComponentType, ElementType, HTMLAttributes, ReactElement, ReactNode, Ref, RefObject } from "react";
|
|
4
|
-
//#region src/components/virtual-list/public-types.d.ts
|
|
5
4
|
/** A column: only `width` is read (summed into the column Fenwick tree). */
|
|
6
5
|
export interface Column {
|
|
7
6
|
width: number;
|
|
8
7
|
}
|
|
9
8
|
/** What `renderCol` receives for one column of a row. */
|
|
10
|
-
export interface
|
|
9
|
+
export interface VirtualListRenderColInfo {
|
|
11
10
|
/** The column (undefined past the last one). */
|
|
12
11
|
column: Column | undefined;
|
|
13
12
|
/** The column's left edge, in px: the sum of the widths before it. */
|
|
@@ -18,7 +17,7 @@ export interface RenderColInfo {
|
|
|
18
17
|
key: number;
|
|
19
18
|
}
|
|
20
19
|
/** What `renderItemWithCols` receives for a row. */
|
|
21
|
-
export interface
|
|
20
|
+
export interface VirtualListRenderItemWithColsInfo {
|
|
22
21
|
/** The row's index in `items`. */
|
|
23
22
|
itemIndex: number | undefined;
|
|
24
23
|
/** The first column in view. */
|
|
@@ -121,7 +120,7 @@ export interface RenderAnomaly {
|
|
|
121
120
|
itemCount: number;
|
|
122
121
|
};
|
|
123
122
|
}
|
|
124
|
-
export type
|
|
123
|
+
export type VirtualListFooterRender = (props: {
|
|
125
124
|
domRef: MeasuredRef;
|
|
126
125
|
}) => ReactNode;
|
|
127
126
|
/**
|
|
@@ -159,12 +158,12 @@ export interface VirtualListProps<T> extends VirtualListNativeProps {
|
|
|
159
158
|
*/
|
|
160
159
|
columns?: readonly Column[] | undefined;
|
|
161
160
|
/** With `columns`: renders one column of a row; its result is the row's `renderedCols`. */
|
|
162
|
-
renderCol?: ((info:
|
|
161
|
+
renderCol?: ((info: VirtualListRenderColInfo) => ReactNode) | undefined;
|
|
163
162
|
/**
|
|
164
163
|
* With `columns`: renders the columns in view of a row at once (in place of `renderCol`); its
|
|
165
164
|
* result is the row's `renderedItemWithCols`.
|
|
166
165
|
*/
|
|
167
|
-
renderItemWithCols?: ((info:
|
|
166
|
+
renderItemWithCols?: ((info: VirtualListRenderItemWithColsInfo) => ReactNode) | undefined;
|
|
168
167
|
/**
|
|
169
168
|
* The items, one row each, in order. Treat them as immutable: a mounted row is rendered again only
|
|
170
169
|
* when its item (by reference) or its index changes, or a render prop does (`children`,
|
|
@@ -246,7 +245,7 @@ export interface VirtualListProps<T> extends VirtualListNativeProps {
|
|
|
246
245
|
* Rendered in place of the rows when there are no items. A function gets a `domRef`: when its
|
|
247
246
|
* element resizes, `onContentResize` is called.
|
|
248
247
|
*/
|
|
249
|
-
empty?: ReactNode |
|
|
248
|
+
empty?: ReactNode | VirtualListFooterRender;
|
|
250
249
|
/**
|
|
251
250
|
* Where `empty` sits: at the top (`"start"`) or in the middle of the list (`"center"`).
|
|
252
251
|
* @default "start"
|
|
@@ -262,7 +261,7 @@ export interface VirtualListProps<T> extends VirtualListNativeProps {
|
|
|
262
261
|
* Rendered below the rows, inside the scroller. A function gets a `domRef`: when its element
|
|
263
262
|
* resizes, `onContentResize` is called.
|
|
264
263
|
*/
|
|
265
|
-
footer?: ReactNode |
|
|
264
|
+
footer?: ReactNode | VirtualListFooterRender;
|
|
266
265
|
/** Rendered last in the scroller, after `paddingBottom`. */
|
|
267
266
|
footerAfterBottomPadding?: ReactNode;
|
|
268
267
|
/**
|
|
@@ -341,5 +340,4 @@ export interface VirtualListProps<T> extends VirtualListNativeProps {
|
|
|
341
340
|
*/
|
|
342
341
|
canAnchorItem?: ((item: T) => boolean) | undefined;
|
|
343
342
|
}
|
|
344
|
-
//#endregion
|
|
345
343
|
export type { MeasuredRef, ObservedResizeEntry };
|
|
@@ -1,5 +1,3 @@
|
|
|
1
1
|
import { ReactNode, Ref } from "react";
|
|
2
|
-
//#region src/components/virtual-list/resize-observer/ResizeObserverWrapper.d.ts
|
|
3
2
|
/** The ref callback ResizeObserverWrapper hands to its child. */
|
|
4
|
-
export type MeasuredRef = (el: HTMLElement | null) => void;
|
|
5
|
-
//#endregion
|
|
3
|
+
export type MeasuredRef = (el: HTMLElement | null) => void;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { useMergedRef } from "../../../lib/use-merged-ref.mjs";
|
|
2
1
|
import { useEventCallback } from "../hooks/use-event-callback.mjs";
|
|
2
|
+
import { useMergedRef } from "../../../lib/use-merged-ref.mjs";
|
|
3
3
|
import { getResizeObserverDelegate } from "./resize-observer-delegate.mjs";
|
|
4
4
|
import { useLayoutEffect, useRef } from "react";
|
|
5
|
-
|
|
5
|
+
// src/components/virtual-list/resize-observer/ResizeObserverWrapper.tsx
|
|
6
6
|
/**
|
|
7
7
|
* Calls `children({ ref })` and observes the element `ref` receives. `onRefUpdate` runs synchronously
|
|
8
8
|
* whenever the ref is set (VirtualList measures a new item there, before paint), and again in a
|
|
@@ -66,5 +66,4 @@ function ResizeObserverWrapper(props) {
|
|
|
66
66
|
}
|
|
67
67
|
}) });
|
|
68
68
|
}
|
|
69
|
-
//#endregion
|
|
70
69
|
export { ResizeObserverWrapper };
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
//#region src/components/virtual-list/resize-observer/resize-observer-delegate.d.ts
|
|
2
1
|
/** The entries the delegate passes on are for the elements `observe()` was called with. */
|
|
3
2
|
export type ObservedResizeEntry = ResizeObserverEntry & {
|
|
4
3
|
target: HTMLElement;
|
|
5
|
-
};
|
|
6
|
-
//#endregion
|
|
4
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/components/virtual-list/resize-observer/resize-observer-delegate.ts
|
|
2
2
|
/**
|
|
3
3
|
* Observes elements with one ResizeObserver, created on the first `observe()`, and calls each
|
|
4
4
|
* element's own callback. Entries whose target is detached (no `parentElement`) are ignored.
|
|
@@ -50,5 +50,4 @@ function getResizeObserverDelegate() {
|
|
|
50
50
|
resizeObserverDelegate ||= new ResizeObserverDelegate();
|
|
51
51
|
return resizeObserverDelegate;
|
|
52
52
|
}
|
|
53
|
-
//#endregion
|
|
54
53
|
export { getResizeObserverDelegate };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/components/virtual-list/utils/align.ts
|
|
2
2
|
/**
|
|
3
3
|
* The `scrollTop` that puts an item (its top `itemTop` in the list's content, its height `itemSize`) at
|
|
4
4
|
* `align` in a view `viewportHeight` high, inside the margins: its top `scrollMarginTop` below the view's
|
|
@@ -15,5 +15,4 @@ function getAlignedScrollTop({ itemTop, itemSize, viewportHeight, align, scrollM
|
|
|
15
15
|
}
|
|
16
16
|
return Math.max(0, Math.min(top, Math.max(0, maxScrollTop)));
|
|
17
17
|
}
|
|
18
|
-
//#endregion
|
|
19
18
|
export { getAlignedScrollTop };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/components/virtual-list/utils/constants.ts
|
|
2
2
|
/**
|
|
3
3
|
* Written on the root element of every measured item: maps the DOM to item keys (kept selections,
|
|
4
4
|
* and what other code uses to find an item).
|
|
@@ -26,5 +26,4 @@ const NON_VIRTUAL_VISIBLE_ITEMS_STYLE = {
|
|
|
26
26
|
};
|
|
27
27
|
/** ... within this window (ms). */
|
|
28
28
|
const RENDER_THRASHING_WINDOW_MS = 1e3;
|
|
29
|
-
//#endregion
|
|
30
29
|
export { EMPTY_ARRAY, ITEM_KEY_ATTR, NON_VIRTUAL_VISIBLE_ITEMS_STYLE, RENDER_THRASHING_WINDOW_MS, VIRTUAL_VISIBLE_ITEMS_STYLE };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/components/virtual-list/utils/fenwick-tree.ts
|
|
2
2
|
/**
|
|
3
3
|
* Sizes of `l` items, each `estimated` plus a delta stored in the tree: `sum(i)` (the offset of item
|
|
4
4
|
* `i`) is `i * estimated` plus the prefix sum of the deltas, in O(log n); `getBound(offset)` maps an
|
|
@@ -62,5 +62,4 @@ var FenwickTree = class {
|
|
|
62
62
|
return lo;
|
|
63
63
|
}
|
|
64
64
|
};
|
|
65
|
-
//#endregion
|
|
66
65
|
export { FenwickTree };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/components/virtual-list/utils/items-anchor.ts
|
|
2
2
|
/**
|
|
3
3
|
* Finds the row at `top` (the view's top, in item coordinates: `scrollTop + compensation - paddingTop`)
|
|
4
4
|
* in the previous items and returns it with where it is now. If that row is gone, the first row after
|
|
@@ -45,5 +45,4 @@ function getAnchoredRange(start, end, anchorIndex, itemCount) {
|
|
|
45
45
|
if (end < start) return [anchorIndex, anchorIndex - 1];
|
|
46
46
|
return [anchorIndex, Math.min(anchorIndex + (end - start), itemCount - 1)];
|
|
47
47
|
}
|
|
48
|
-
//#endregion
|
|
49
48
|
export { findItemsAnchor, getAnchoredRange };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/components/virtual-list/utils/measure.ts
|
|
2
2
|
/**
|
|
3
3
|
* Where each in-flow row starts in the visible-items element `container`, and where the rows end: in one
|
|
4
4
|
* pass of reads, no writes, so the browser lays out at most once.
|
|
@@ -73,5 +73,4 @@ function measureRowSpans(container, rows) {
|
|
|
73
73
|
function toLayoutUnit(value) {
|
|
74
74
|
return Math.round(value * 64) / 64;
|
|
75
75
|
}
|
|
76
|
-
//#endregion
|
|
77
76
|
export { measureRowSpans, measureRowStart, measureRowStarts };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/components/virtual-list/utils/range.ts
|
|
2
2
|
/**
|
|
3
3
|
* The items to render: from the item at `scrollTop - paddingTop` through as many items as fit in
|
|
4
4
|
* `listHeight` at their minimum size, plus one (the overscan is `getOverscannedRange`'s). Empty
|
|
@@ -99,5 +99,4 @@ function isHiddenByDisplayNone(el) {
|
|
|
99
99
|
function px(value) {
|
|
100
100
|
if (value !== void 0) return `${value}px`;
|
|
101
101
|
}
|
|
102
|
-
//#endregion
|
|
103
102
|
export { getHorizontalRange, getNeededEnd, getOverscannedRange, getVerticalRange, haveSameKeys, isHiddenByDisplayNone, px };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/components/virtual-list/utils/size-cache.ts
|
|
2
2
|
/**
|
|
3
3
|
* Records `size` as the measured size of row `key` in `offsets`, kept even when it equals the estimate
|
|
4
4
|
* (an offset of 0), so the row counts as measured. Returns whether the cache changed.
|
|
@@ -31,5 +31,4 @@ function getTypicalSize(cache, offsets, version, itemEstimatedSize, itemMinSize)
|
|
|
31
31
|
}
|
|
32
32
|
return Math.max(cache.size, itemMinSize, 1);
|
|
33
33
|
}
|
|
34
|
-
//#endregion
|
|
35
34
|
export { createTypicalSizeCache, getTypicalSize, recordMeasuredSize };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { useRender } from "@base-ui/react/use-render";
|
|
2
|
-
//#region src/components/web-top-bar/web-top-bar.d.ts
|
|
3
2
|
export type WebTopBarRootProps = useRender.ComponentProps<"div">;
|
|
4
3
|
/**
|
|
5
4
|
* The web top bar: the frame's row above the rail from 768px on the web, and
|
|
@@ -16,5 +15,4 @@ export type WebTopBarCenterProps = useRender.ComponentProps<"div">;
|
|
|
16
15
|
export declare function WebTopBarCenter({ className, render, ...props }: WebTopBarCenterProps): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
|
|
17
16
|
export type WebTopBarEndProps = useRender.ComponentProps<"div">;
|
|
18
17
|
/** The end of the bar: who is working and the bell. A last icon button's icon box ends on the column margin. */
|
|
19
|
-
export declare function WebTopBarEnd({ className, render, ...props }: WebTopBarEndProps): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
|
|
20
|
-
//#endregion
|
|
18
|
+
export declare function WebTopBarEnd({ className, render, ...props }: WebTopBarEndProps): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { webTopBar } from "./web-top-bar.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/web-top-bar/web-top-bar.tsx
|
|
5
5
|
/**
|
|
6
6
|
* The web top bar: the frame's row above the rail from 768px on the web, and
|
|
7
7
|
* a desktop app's title bar at every width. Holds `WebTopBarStart`,
|
|
@@ -59,5 +59,4 @@ function WebTopBarEnd({ className, render, ...props }) {
|
|
|
59
59
|
props: mergeProps(defaultProps, props)
|
|
60
60
|
});
|
|
61
61
|
}
|
|
62
|
-
//#endregion
|
|
63
62
|
export { WebTopBarCenter, WebTopBarEnd, WebTopBarRoot, WebTopBarStart };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { tv } from "../../lib/tv.mjs";
|
|
2
|
-
|
|
2
|
+
// src/components/web-top-bar/web-top-bar.recipe.ts
|
|
3
3
|
const webTopBar = tv({ slots: {
|
|
4
4
|
root: [
|
|
5
5
|
"grid grid-cols-[1fr_auto_1fr] items-center",
|
|
@@ -19,5 +19,4 @@ const webTopBar = tv({ slots: {
|
|
|
19
19
|
"[&>[data-icon-inset]:nth-last-child(1_of_:not([data-base-ui-focus-guard],[aria-owns]))]:-me-icon-inset"
|
|
20
20
|
]
|
|
21
21
|
} });
|
|
22
|
-
//#endregion
|
|
23
22
|
export { webTopBar };
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import { ButtonProps } from "../button/button.mjs";
|
|
2
2
|
import "../button/index.mjs";
|
|
3
3
|
import { ComponentPropsWithRef } from "react";
|
|
4
|
-
//#region src/components/workspace-button/workspace-button.d.ts
|
|
5
4
|
export type WorkspaceButtonProps = Omit<ButtonProps, "variant" | "size">;
|
|
6
5
|
export declare function WorkspaceButton({ className, children, ...props }: WorkspaceButtonProps): import("react").JSX.Element;
|
|
7
6
|
export type WorkspaceButtonNameProps = ComponentPropsWithRef<"span">;
|
|
8
|
-
export declare function WorkspaceButtonName({ className, ...props }: WorkspaceButtonNameProps): import("react").JSX.Element;
|
|
9
|
-
//#endregion
|
|
7
|
+
export declare function WorkspaceButtonName({ className, ...props }: WorkspaceButtonNameProps): import("react").JSX.Element;
|
|
@@ -2,7 +2,7 @@ import { cn } from "../../cn.mjs";
|
|
|
2
2
|
import { Button } from "../button/button.mjs";
|
|
3
3
|
import { ChevronDown } from "lucide-react";
|
|
4
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
|
-
|
|
5
|
+
// src/components/workspace-button/workspace-button.tsx
|
|
6
6
|
function WorkspaceButton({ className, children, ...props }) {
|
|
7
7
|
return /* @__PURE__ */ jsxs(Button, {
|
|
8
8
|
...props,
|
|
@@ -24,5 +24,4 @@ function WorkspaceButtonName({ className, ...props }) {
|
|
|
24
24
|
...props
|
|
25
25
|
});
|
|
26
26
|
}
|
|
27
|
-
//#endregion
|
|
28
27
|
export { WorkspaceButton, WorkspaceButtonName };
|