@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,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/panel/panel-action.d.ts
|
|
5
4
|
export type PanelActionProps = Omit<StyledProps<Button.Props>, "type"> & DataAttributes & {
|
|
6
5
|
/**
|
|
7
6
|
* Activate when the finger lifts instead of on the click after it, so a
|
|
@@ -11,5 +10,4 @@ export type PanelActionProps = Omit<StyledProps<Button.Props>, "type"> & DataAtt
|
|
|
11
10
|
*/
|
|
12
11
|
activateOnTouchEnd?: boolean;
|
|
13
12
|
};
|
|
14
|
-
export declare function PanelAction({ className, render, nativeButton, activateOnTouchEnd, ref, ...props }: PanelActionProps): import("react").JSX.Element;
|
|
15
|
-
//#endregion
|
|
13
|
+
export declare function PanelAction({ className, render, nativeButton, activateOnTouchEnd, ref, ...props }: PanelActionProps): import("react").JSX.Element;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { defaultNativeButton } from "../../lib/default-native-button.mjs";
|
|
2
|
-
import { useMergedRef } from "../../lib/use-merged-ref.mjs";
|
|
3
2
|
import { useTapActivation } from "../../lib/tap-activation.mjs";
|
|
3
|
+
import { useMergedRef } from "../../lib/use-merged-ref.mjs";
|
|
4
4
|
import { panelAction } from "./panel-action.recipe.mjs";
|
|
5
5
|
import { jsx } from "react/jsx-runtime";
|
|
6
6
|
import { Button } from "@base-ui/react/button";
|
|
7
|
-
|
|
7
|
+
// src/components/panel/panel-action.tsx
|
|
8
8
|
function PanelAction({ className, render, nativeButton, activateOnTouchEnd = false, ref, ...props }) {
|
|
9
9
|
const tapRef = useTapActivation(activateOnTouchEnd);
|
|
10
10
|
const [setRef] = useMergedRef(tapRef, ref);
|
|
@@ -19,5 +19,4 @@ function PanelAction({ className, render, nativeButton, activateOnTouchEnd = fal
|
|
|
19
19
|
className: panelAction({ className })
|
|
20
20
|
});
|
|
21
21
|
}
|
|
22
|
-
//#endregion
|
|
23
22
|
export { PanelAction };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { barButtonHit, barIconInset } from "../../lib/head-edges.mjs";
|
|
2
2
|
import { tv } from "../../lib/tv.mjs";
|
|
3
|
-
|
|
3
|
+
// src/components/panel/panel-action.recipe.ts
|
|
4
4
|
const panelActionBase = tv({ base: [
|
|
5
5
|
"relative inline-flex w-auto shrink-0 items-center justify-center",
|
|
6
6
|
"overflow-visible font-sans leading-none tabular-nums select-none outline-none",
|
|
@@ -36,5 +36,4 @@ const panelToggleAction = tv({
|
|
|
36
36
|
"data-pressed:active:overlay-sticker-medium"
|
|
37
37
|
]
|
|
38
38
|
});
|
|
39
|
-
//#endregion
|
|
40
39
|
export { panelAction, panelToggleAction };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { useRender } from "@base-ui/react/use-render";
|
|
2
|
-
//#region src/components/panel/panel-header.d.ts
|
|
3
2
|
export type PanelHeaderProps = useRender.ComponentProps<"div">;
|
|
4
3
|
export declare function PanelHeader({ children, className, render, ...props }: PanelHeaderProps): import("react").JSX.Element;
|
|
5
4
|
export type PanelSectionHeaderProps = useRender.ComponentProps<"div">;
|
|
@@ -30,5 +29,4 @@ export type PanelActivityProps = useRender.ComponentProps<"span">;
|
|
|
30
29
|
*/
|
|
31
30
|
export declare function PanelActivity({ className, render, ...props }: PanelActivityProps): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
|
|
32
31
|
export type PanelActionsProps = useRender.ComponentProps<"div">;
|
|
33
|
-
export declare function PanelActions({ className, render, ...props }: PanelActionsProps): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
|
|
34
|
-
//#endregion
|
|
32
|
+
export declare function PanelActions({ className, render, ...props }: PanelActionsProps): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { panelHeader } from "./panel-header.recipe.mjs";
|
|
2
1
|
import { PanelHeaderRoot } from "./panel.mjs";
|
|
2
|
+
import { panelHeader } from "./panel-header.recipe.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/panel/panel-header.tsx
|
|
7
7
|
function PanelHeader({ children, className, render, ...props }) {
|
|
8
8
|
const { header } = panelHeader();
|
|
9
9
|
return /* @__PURE__ */ jsx(PanelHeaderRoot, {
|
|
@@ -131,5 +131,4 @@ function PanelActions({ className, render, ...props }) {
|
|
|
131
131
|
props: mergeProps(defaultProps, props)
|
|
132
132
|
});
|
|
133
133
|
}
|
|
134
|
-
//#endregion
|
|
135
134
|
export { PanelActions, PanelActivity, PanelHeader, PanelHeaderContent, PanelHeaderIcon, PanelHeading, PanelMeta, PanelSectionHeader, PanelStatus, PanelTitle };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { barIconInset, headEdges } from "../../lib/head-edges.mjs";
|
|
2
2
|
import { tv } from "../../lib/tv.mjs";
|
|
3
|
-
|
|
3
|
+
// src/components/panel/panel-header.recipe.ts
|
|
4
4
|
/**
|
|
5
5
|
* Where a head's edge controls sit, shared by every head (panel, section,
|
|
6
6
|
* drawer, thread): see lib/head-edges.ts. Both sides pad by the content
|
|
@@ -75,5 +75,4 @@ const panelHeader = tv({
|
|
|
75
75
|
]
|
|
76
76
|
}]
|
|
77
77
|
});
|
|
78
|
-
//#endregion
|
|
79
78
|
export { panelHeadActions, panelHeadEdges, panelHeader };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { useRender } from "@base-ui/react/use-render";
|
|
2
|
-
//#region src/components/panel/panel-notice.d.ts
|
|
3
2
|
export type PanelNoticeStatus = "default" | "warning" | "destructive" | "info" | "success";
|
|
4
3
|
export type PanelNoticeProps = useRender.ComponentProps<"div"> & {
|
|
5
4
|
/** The tint: warning for something to fix (the default), destructive only
|
|
@@ -12,5 +11,4 @@ export type PanelNoticeContentProps = useRender.ComponentProps<"div">;
|
|
|
12
11
|
export declare function PanelNoticeContent({ className, render, ...props }: PanelNoticeContentProps): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
|
|
13
12
|
export type PanelNoticeActionsProps = useRender.ComponentProps<"div">;
|
|
14
13
|
/** Trailing controls (copy, a link, ×), centred on the first text line. */
|
|
15
|
-
export declare function PanelNoticeActions({ className, render, ...props }: PanelNoticeActionsProps): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
|
|
16
|
-
//#endregion
|
|
14
|
+
export declare function PanelNoticeActions({ className, render, ...props }: PanelNoticeActionsProps): 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/panel/panel-notice.tsx
|
|
5
5
|
/**
|
|
6
6
|
* A notice strip that runs the full width of a panel, under its head (a
|
|
7
7
|
* runtime error, a setting that failed to save). It is a region of its own,
|
|
@@ -73,5 +73,4 @@ function PanelNoticeActions({ className, render, ...props }) {
|
|
|
73
73
|
props: mergeProps(defaultProps, props)
|
|
74
74
|
});
|
|
75
75
|
}
|
|
76
|
-
//#endregion
|
|
77
76
|
export { PanelNotice, PanelNoticeActions, PanelNoticeContent };
|
|
@@ -1,9 +1,8 @@
|
|
|
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 { ComponentProps } from "react";
|
|
4
4
|
import { Button } from "@base-ui/react/button";
|
|
5
5
|
import { Toggle } from "@base-ui/react/toggle";
|
|
6
|
-
//#region src/components/panel/panel-split-action.d.ts
|
|
7
6
|
export type PanelSplitActionProps = ComponentProps<"div"> & DataAttributes;
|
|
8
7
|
/**
|
|
9
8
|
* One header action with a menu beside it, such as Comment and its ▾: a
|
|
@@ -30,5 +29,4 @@ export type PanelSplitActionMenuProps = Omit<StyledProps<Button.Props>, "type">
|
|
|
30
29
|
* default. Render it as the trigger of a DropdownMenu or a Popover:
|
|
31
30
|
* `<DropdownMenuTrigger render={<PanelSplitActionMenu aria-label="Comments" />} />`.
|
|
32
31
|
*/
|
|
33
|
-
export declare function PanelSplitActionMenu({ className, render, nativeButton, children, ...props }: PanelSplitActionMenuProps): import("react").JSX.Element;
|
|
34
|
-
//#endregion
|
|
32
|
+
export declare function PanelSplitActionMenu({ className, render, nativeButton, children, ...props }: PanelSplitActionMenuProps): import("react").JSX.Element;
|
|
@@ -4,7 +4,7 @@ import { ChevronDown } from "lucide-react";
|
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
import { Button } from "@base-ui/react/button";
|
|
6
6
|
import { Toggle } from "@base-ui/react/toggle";
|
|
7
|
-
|
|
7
|
+
// src/components/panel/panel-split-action.tsx
|
|
8
8
|
/**
|
|
9
9
|
* One header action with a menu beside it, such as Comment and its ▾: a
|
|
10
10
|
* `PanelSplitActionMain` (or `PanelSplitActionToggle`), then a `PanelSplitActionMenu` as the trigger of a
|
|
@@ -65,5 +65,4 @@ function PanelSplitActionMenu({ className, render, nativeButton, children, ...pr
|
|
|
65
65
|
children: children ?? /* @__PURE__ */ jsx(ChevronDown, { "aria-hidden": true })
|
|
66
66
|
});
|
|
67
67
|
}
|
|
68
|
-
//#endregion
|
|
69
68
|
export { PanelSplitAction, PanelSplitActionMain, PanelSplitActionMenu, PanelSplitActionToggle };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { tv } from "../../lib/tv.mjs";
|
|
2
2
|
import { panelAction, panelToggleAction } from "./panel-action.recipe.mjs";
|
|
3
|
-
|
|
3
|
+
// src/components/panel/panel-split-action.recipe.ts
|
|
4
4
|
/**
|
|
5
5
|
* A split action reads as one control: the group is one rounded shape, and
|
|
6
6
|
* whichever part is under the pointer takes the medium tier (`fill-medium`)
|
|
@@ -49,5 +49,4 @@ const panelSplitActionMenu = tv({
|
|
|
49
49
|
"[&>svg]:size-4"
|
|
50
50
|
]
|
|
51
51
|
});
|
|
52
|
-
//#endregion
|
|
53
52
|
export { panelSplitAction, panelSplitActionMain, panelSplitActionMenu, panelSplitActionToggle };
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
import { StyledProps } from "../../lib/styled-props.mjs";
|
|
2
2
|
import { Toggle } from "@base-ui/react/toggle";
|
|
3
|
-
//#region src/components/panel/panel-toggle-action.d.ts
|
|
4
3
|
export type PanelToggleActionProps = Omit<StyledProps<Toggle.Props>, "type">;
|
|
5
|
-
export declare function PanelToggleAction({ className, ...props }: PanelToggleActionProps): import("react").JSX.Element;
|
|
6
|
-
//#endregion
|
|
4
|
+
export declare function PanelToggleAction({ className, ...props }: PanelToggleActionProps): import("react").JSX.Element;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { panelToggleAction } from "./panel-action.recipe.mjs";
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
3
|
import { Toggle } from "@base-ui/react/toggle";
|
|
4
|
-
|
|
4
|
+
// src/components/panel/panel-toggle-action.tsx
|
|
5
5
|
function PanelToggleAction({ className, ...props }) {
|
|
6
6
|
return /* @__PURE__ */ jsx(Toggle, {
|
|
7
7
|
...props,
|
|
@@ -11,5 +11,4 @@ function PanelToggleAction({ className, ...props }) {
|
|
|
11
11
|
className: panelToggleAction({ className })
|
|
12
12
|
});
|
|
13
13
|
}
|
|
14
|
-
//#endregion
|
|
15
14
|
export { PanelToggleAction };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { ScrollAreaProps } from "../scroll-area/types.mjs";
|
|
2
2
|
import { useRender } from "@base-ui/react/use-render";
|
|
3
|
-
//#region src/components/panel/panel.d.ts
|
|
4
3
|
export type PanelEdge = "attached" | "inset";
|
|
5
4
|
export type PanelProps = useRender.ComponentProps<"section"> & {
|
|
6
5
|
edge?: PanelEdge;
|
|
@@ -29,5 +28,4 @@ export declare function PanelScrollContent({ className, render, ...props }: Pane
|
|
|
29
28
|
export type PanelSectionProps = useRender.ComponentProps<"section">;
|
|
30
29
|
export declare function PanelSection({ className, render, ...props }: PanelSectionProps): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
|
|
31
30
|
export type PanelFooterProps = useRender.ComponentProps<"div">;
|
|
32
|
-
export declare function PanelFooter({ className, render, ...props }: PanelFooterProps): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
|
|
33
|
-
//#endregion
|
|
31
|
+
export declare function PanelFooter({ className, render, ...props }: PanelFooterProps): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
|
|
@@ -3,7 +3,7 @@ import { panel } from "./panel.recipe.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/panel/panel.tsx
|
|
7
7
|
function Panel({ className, edge, render, ...props }) {
|
|
8
8
|
const { root } = panel({ edge });
|
|
9
9
|
const defaultProps = {
|
|
@@ -115,5 +115,4 @@ function PanelFooter({ className, render, ...props }) {
|
|
|
115
115
|
props: mergeProps(defaultProps, props)
|
|
116
116
|
});
|
|
117
117
|
}
|
|
118
|
-
//#endregion
|
|
119
118
|
export { Panel, PanelBody, PanelFooter, PanelHeaderRoot, PanelNativeScrollViewport, PanelScrollContent, PanelScrollViewport, PanelSection };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { tv } from "../../lib/tv.mjs";
|
|
2
|
-
|
|
2
|
+
// src/components/panel/panel.recipe.ts
|
|
3
3
|
const panel = tv({
|
|
4
4
|
slots: {
|
|
5
5
|
root: ["[--panel-footer-clearance:10rem]", "bg-layer-canvas text-foreground"],
|
|
@@ -21,5 +21,4 @@ const panel = tv({
|
|
|
21
21
|
attached: { root: ["group/panel-frame", "border-l border-line-seam max-md:border-l-0"] }
|
|
22
22
|
} }
|
|
23
23
|
});
|
|
24
|
-
//#endregion
|
|
25
24
|
export { panel };
|
|
@@ -1,7 +1,5 @@
|
|
|
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/picker-trigger-button/picker-trigger-button.d.ts
|
|
5
4
|
export type PickerTriggerButtonProps = StyledProps<Button.Props> & DataAttributes;
|
|
6
|
-
export declare function PickerTriggerButton({ className, render, nativeButton, ...props }: PickerTriggerButtonProps): import("react").JSX.Element;
|
|
7
|
-
//#endregion
|
|
5
|
+
export declare function PickerTriggerButton({ className, render, nativeButton, ...props }: PickerTriggerButtonProps): import("react").JSX.Element;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { tv } from "../../lib/tv.mjs";
|
|
2
1
|
import { defaultNativeButton } from "../../lib/default-native-button.mjs";
|
|
2
|
+
import { tv } from "../../lib/tv.mjs";
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
4
|
import { Button } from "@base-ui/react/button";
|
|
5
|
-
|
|
5
|
+
// src/components/picker-trigger-button/picker-trigger-button.tsx
|
|
6
6
|
const pickerTriggerButton = tv({ base: [
|
|
7
7
|
"relative inline-flex h-8 md:pointer-fine:h-control shrink-0 items-center justify-center",
|
|
8
8
|
"after:absolute after:inset-x-0 after:-inset-y-1.5 md:pointer-fine:after:hidden",
|
|
@@ -34,5 +34,4 @@ function PickerTriggerButton({ className, render, nativeButton, ...props }) {
|
|
|
34
34
|
className: pickerTriggerButton({ className })
|
|
35
35
|
});
|
|
36
36
|
}
|
|
37
|
-
//#endregion
|
|
38
37
|
export { PickerTriggerButton };
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { StyledProps } from "../../lib/styled-props.mjs";
|
|
2
2
|
import { ComponentPropsWithRef } from "react";
|
|
3
3
|
import { Popover } from "@base-ui/react/popover";
|
|
4
|
-
//#region src/components/popover/popover.d.ts
|
|
5
4
|
export type PopoverProps = Popover.Root.Props;
|
|
6
5
|
declare function Popover$1(props: PopoverProps): import("react").JSX.Element;
|
|
7
6
|
export type PopoverTriggerProps = StyledProps<Popover.Trigger.Props>;
|
|
@@ -46,5 +45,4 @@ export declare function PopoverBody({ className, ...props }: PopoverBodyProps):
|
|
|
46
45
|
export type PopoverActionsProps = ComponentPropsWithRef<"div">;
|
|
47
46
|
/** The panel's buttons, at its end, under `PopoverBody`: the way out first, then the confirm button. */
|
|
48
47
|
export declare function PopoverActions({ className, ...props }: PopoverActionsProps): import("react").JSX.Element;
|
|
49
|
-
//#endregion
|
|
50
48
|
export { Popover$1 as Popover };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { tv } from "../../lib/tv.mjs";
|
|
2
|
-
import { useThemeScopeProps } from "../../lib/theme/theme-scope.mjs";
|
|
3
1
|
import { usePopupCollision } from "../../lib/frame-insets.mjs";
|
|
2
|
+
import { tv } from "../../lib/tv.mjs";
|
|
4
3
|
import { messageCard } from "../message-embed/message-embed.recipe.mjs";
|
|
4
|
+
import { useThemeScopeProps } from "../../lib/theme/theme-scope.mjs";
|
|
5
5
|
import { createContext, useContext } from "react";
|
|
6
6
|
import { jsx } from "react/jsx-runtime";
|
|
7
7
|
import { Popover } from "@base-ui/react/popover";
|
|
8
|
-
|
|
8
|
+
// src/components/popover/popover.tsx
|
|
9
9
|
const popover = tv({
|
|
10
10
|
slots: {
|
|
11
11
|
trigger: ["select-none"],
|
|
@@ -194,5 +194,4 @@ function PopoverActions({ className, ...props }) {
|
|
|
194
194
|
...props
|
|
195
195
|
});
|
|
196
196
|
}
|
|
197
|
-
//#endregion
|
|
198
197
|
export { Popover$1 as Popover, PopoverActions, PopoverArrow, PopoverBackdrop, PopoverBody, PopoverClose, PopoverContent, PopoverDescription, PopoverHeader, PopoverPopup, PopoverPortal, PopoverSeparator, PopoverTitle, PopoverTrigger, PopoverViewport };
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { StyledProps } from "../../lib/styled-props.mjs";
|
|
2
2
|
import { ComponentPropsWithRef } from "react";
|
|
3
3
|
import { PreviewCard } from "@base-ui/react/preview-card";
|
|
4
|
-
//#region src/components/preview-card/preview-card.d.ts
|
|
5
4
|
export type PreviewCardProps = PreviewCard.Root.Props;
|
|
6
5
|
declare function PreviewCard$1(props: PreviewCardProps): import("react").JSX.Element;
|
|
7
6
|
export type PreviewCardTriggerProps = StyledProps<PreviewCard.Trigger.Props>;
|
|
@@ -46,5 +45,4 @@ export declare function PreviewCardActions({ className, ...props }: PreviewCardA
|
|
|
46
45
|
export type PreviewCardFooterProps = ComponentPropsWithRef<"p">;
|
|
47
46
|
/** The caption under a hairline at the bottom of the card: where the item comes from. */
|
|
48
47
|
export declare function PreviewCardFooter({ className, ...props }: PreviewCardFooterProps): import("react").JSX.Element;
|
|
49
|
-
//#endregion
|
|
50
48
|
export { PreviewCard$1 as PreviewCard };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { tv } from "../../lib/tv.mjs";
|
|
2
|
-
import { useTheme } from "../../lib/theme/use-theme.mjs";
|
|
3
|
-
import { resolveThemeScopeProps, useThemeScopeProps } from "../../lib/theme/theme-scope.mjs";
|
|
4
1
|
import { usePopupCollision } from "../../lib/frame-insets.mjs";
|
|
2
|
+
import { tv } from "../../lib/tv.mjs";
|
|
5
3
|
import { messageCard } from "../message-embed/message-embed.recipe.mjs";
|
|
4
|
+
import { resolveThemeScopeProps, useThemeScopeProps } from "../../lib/theme/theme-scope.mjs";
|
|
5
|
+
import { useTheme } from "../../lib/theme/use-theme.mjs";
|
|
6
6
|
import { createContext, useContext } from "react";
|
|
7
7
|
import { jsx } from "react/jsx-runtime";
|
|
8
8
|
import { PreviewCard } from "@base-ui/react/preview-card";
|
|
9
|
-
|
|
9
|
+
// src/components/preview-card/preview-card.tsx
|
|
10
10
|
const previewCard = tv({
|
|
11
11
|
slots: {
|
|
12
12
|
trigger: [],
|
|
@@ -199,5 +199,4 @@ function PreviewCardFooter({ className, ...props }) {
|
|
|
199
199
|
...props
|
|
200
200
|
});
|
|
201
201
|
}
|
|
202
|
-
//#endregion
|
|
203
202
|
export { PreviewCard$1 as PreviewCard, PreviewCardActions, PreviewCardArrow, PreviewCardBody, PreviewCardContent, PreviewCardDescription, PreviewCardEyebrow, PreviewCardFooter, PreviewCardHeader, PreviewCardMeta, PreviewCardPopup, PreviewCardPortal, PreviewCardSeparator, PreviewCardTitle, PreviewCardTrigger };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { PanelBodyProps, PanelProps, PanelSectionProps } from "../panel/panel.mjs";
|
|
2
2
|
import { PanelHeaderContentProps, PanelHeaderProps } from "../panel/panel-header.mjs";
|
|
3
|
-
//#region src/components/profile-panel/profile-panel.d.ts
|
|
4
3
|
export type ProfilePanelProps = PanelProps;
|
|
5
4
|
export declare function ProfilePanel({ className, edge, ...props }: ProfilePanelProps): import("react").JSX.Element;
|
|
6
5
|
export type ProfilePanelHeaderProps = PanelHeaderProps;
|
|
@@ -10,5 +9,4 @@ export declare function ProfilePanelHeaderContent({ className, ...props }: Profi
|
|
|
10
9
|
export type ProfilePanelBodyProps = PanelBodyProps;
|
|
11
10
|
export declare function ProfilePanelBody({ className, ...props }: ProfilePanelBodyProps): import("react").JSX.Element;
|
|
12
11
|
export type ProfilePanelSectionProps = PanelSectionProps;
|
|
13
|
-
export declare function ProfilePanelSection({ className, ...props }: ProfilePanelSectionProps): import("react").JSX.Element;
|
|
14
|
-
//#endregion
|
|
12
|
+
export declare function ProfilePanelSection({ className, ...props }: ProfilePanelSectionProps): import("react").JSX.Element;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { Panel, PanelBody, PanelSection } from "../panel/panel.mjs";
|
|
2
1
|
import { conversationPanel } from "../conversation-panel/conversation-panel.recipe.mjs";
|
|
2
|
+
import { Panel, PanelBody, PanelSection } from "../panel/panel.mjs";
|
|
3
3
|
import { PanelHeader, PanelHeaderContent } from "../panel/panel-header.mjs";
|
|
4
4
|
import { profilePanel } from "./profile-panel.recipe.mjs";
|
|
5
5
|
import { jsx } from "react/jsx-runtime";
|
|
6
|
-
|
|
6
|
+
// src/components/profile-panel/profile-panel.tsx
|
|
7
7
|
function ProfilePanel({ className, edge = "inset", ...props }) {
|
|
8
8
|
const { root } = profilePanel();
|
|
9
9
|
return /* @__PURE__ */ jsx(Panel, {
|
|
@@ -42,5 +42,4 @@ function ProfilePanelSection({ className, ...props }) {
|
|
|
42
42
|
className: section({ className })
|
|
43
43
|
});
|
|
44
44
|
}
|
|
45
|
-
//#endregion
|
|
46
45
|
export { ProfilePanel, ProfilePanelBody, ProfilePanelHeader, ProfilePanelHeaderContent, ProfilePanelSection };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { tv } from "../../lib/tv.mjs";
|
|
2
|
-
|
|
2
|
+
// src/components/profile-panel/profile-panel.recipe.ts
|
|
3
3
|
const profilePanel = tv({ slots: {
|
|
4
4
|
root: [
|
|
5
5
|
"flex h-full min-h-0 min-w-0 flex-1 flex-col",
|
|
@@ -10,5 +10,4 @@ const profilePanel = tv({ slots: {
|
|
|
10
10
|
headerContent: ["items-stretch gap-0"],
|
|
11
11
|
section: ["border-line-hairline px-(--surface-inset) py-4"]
|
|
12
12
|
} });
|
|
13
|
-
//#endregion
|
|
14
13
|
export { profilePanel };
|
|
@@ -1,75 +1,8 @@
|
|
|
1
|
-
import { StyledProps } from "../../lib/styled-props.mjs";
|
|
2
1
|
import { VariantProps } from "../../lib/tv.mjs";
|
|
2
|
+
import { StyledProps } from "../../lib/styled-props.mjs";
|
|
3
3
|
import { ComponentPropsWithRef } from "react";
|
|
4
4
|
import { Progress } from "@base-ui/react/progress";
|
|
5
|
-
|
|
6
|
-
declare const progress: import("tailwind-variants/lite").TVReturnType<{
|
|
7
|
-
variant: {
|
|
8
|
-
primary: {
|
|
9
|
-
root: string[];
|
|
10
|
-
};
|
|
11
|
-
information: {
|
|
12
|
-
root: string[];
|
|
13
|
-
};
|
|
14
|
-
accent: {
|
|
15
|
-
root: string[];
|
|
16
|
-
};
|
|
17
|
-
success: {
|
|
18
|
-
root: string[];
|
|
19
|
-
};
|
|
20
|
-
warning: {
|
|
21
|
-
root: string[];
|
|
22
|
-
};
|
|
23
|
-
danger: {
|
|
24
|
-
root: string[];
|
|
25
|
-
};
|
|
26
|
-
};
|
|
27
|
-
size: {
|
|
28
|
-
sm: {};
|
|
29
|
-
md: {};
|
|
30
|
-
lg: {};
|
|
31
|
-
};
|
|
32
|
-
}, {
|
|
33
|
-
root: string[];
|
|
34
|
-
header: string[];
|
|
35
|
-
label: string[];
|
|
36
|
-
value: string[];
|
|
37
|
-
track: string[];
|
|
38
|
-
indicator: string[];
|
|
39
|
-
}, undefined, {
|
|
40
|
-
variant: {
|
|
41
|
-
primary: {
|
|
42
|
-
root: string[];
|
|
43
|
-
};
|
|
44
|
-
information: {
|
|
45
|
-
root: string[];
|
|
46
|
-
};
|
|
47
|
-
accent: {
|
|
48
|
-
root: string[];
|
|
49
|
-
};
|
|
50
|
-
success: {
|
|
51
|
-
root: string[];
|
|
52
|
-
};
|
|
53
|
-
warning: {
|
|
54
|
-
root: string[];
|
|
55
|
-
};
|
|
56
|
-
danger: {
|
|
57
|
-
root: string[];
|
|
58
|
-
};
|
|
59
|
-
};
|
|
60
|
-
size: {
|
|
61
|
-
sm: {};
|
|
62
|
-
md: {};
|
|
63
|
-
lg: {};
|
|
64
|
-
};
|
|
65
|
-
}, {
|
|
66
|
-
root: string[];
|
|
67
|
-
header: string[];
|
|
68
|
-
label: string[];
|
|
69
|
-
value: string[];
|
|
70
|
-
track: string[];
|
|
71
|
-
indicator: string[];
|
|
72
|
-
}, import("tailwind-variants/lite").TVReturnTypeLike<{
|
|
5
|
+
declare const progress: import("tailwind-variants/config").TVReturnType<{
|
|
73
6
|
variant: {
|
|
74
7
|
primary: {
|
|
75
8
|
root: string[];
|
|
@@ -102,7 +35,7 @@ declare const progress: import("tailwind-variants/lite").TVReturnType<{
|
|
|
102
35
|
value: string[];
|
|
103
36
|
track: string[];
|
|
104
37
|
indicator: string[];
|
|
105
|
-
}
|
|
38
|
+
}, undefined, undefined, undefined, undefined>;
|
|
106
39
|
export type ProgressProps = StyledProps<Progress.Root.Props> & VariantProps<typeof progress>;
|
|
107
40
|
declare function Progress$1({ size, variant, className, ...props }: ProgressProps): import("react").JSX.Element;
|
|
108
41
|
export type ProgressHeaderProps = ComponentPropsWithRef<"div">;
|
|
@@ -115,5 +48,4 @@ export type ProgressTrackProps = StyledProps<Progress.Track.Props>;
|
|
|
115
48
|
export declare function ProgressTrack({ className, ...props }: ProgressTrackProps): import("react").JSX.Element;
|
|
116
49
|
export type ProgressIndicatorProps = StyledProps<Progress.Indicator.Props>;
|
|
117
50
|
export declare function ProgressIndicator({ className, ...props }: ProgressIndicatorProps): import("react").JSX.Element;
|
|
118
|
-
//#endregion
|
|
119
51
|
export { Progress$1 as Progress };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { tv } from "../../lib/tv.mjs";
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
3
|
import { Progress } from "@base-ui/react/progress";
|
|
4
|
-
|
|
4
|
+
// src/components/progress/progress.tsx
|
|
5
5
|
const PROGRESS_STYLE = `
|
|
6
6
|
@keyframes raft-progress-indeterminate {
|
|
7
7
|
0% {
|
|
@@ -135,5 +135,4 @@ function ProgressIndicator({ className, ...props }) {
|
|
|
135
135
|
children: progressStyle
|
|
136
136
|
});
|
|
137
137
|
}
|
|
138
|
-
//#endregion
|
|
139
138
|
export { Progress$1 as Progress, ProgressHeader, ProgressIndicator, ProgressLabel, ProgressTrack, ProgressValue };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/components/pull-to-refresh/pull-to-refresh-gesture.d.ts
|
|
2
1
|
/**
|
|
3
2
|
* The pull-to-refresh gesture as a pure state machine (pull-to-refresh.md,
|
|
4
3
|
* "Behavior"). `usePullToRefresh` feeds it the scroller's touch events; this
|
|
@@ -26,5 +25,4 @@ export declare const PULL_TO_REFRESH_DAMPING = 0.55;
|
|
|
26
25
|
* overshoot. Instant with reduced motion.
|
|
27
26
|
*/
|
|
28
27
|
export declare const PULL_TO_REFRESH_SNAP_BACK_MS = 300;
|
|
29
|
-
export type PullToRefreshState = "idle" | "pulling" | "refreshing";
|
|
30
|
-
//#endregion
|
|
28
|
+
export type PullToRefreshState = "idle" | "pulling" | "refreshing";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "../../lib/touch-drag.mjs";
|
|
2
|
-
|
|
2
|
+
// src/components/pull-to-refresh/pull-to-refresh-gesture.ts
|
|
3
3
|
/**
|
|
4
4
|
* The pull-to-refresh gesture as a pure state machine (pull-to-refresh.md,
|
|
5
5
|
* "Behavior"). `usePullToRefresh` feeds it the scroller's touch events; this
|
|
@@ -130,5 +130,4 @@ function stepPullGesture(gesture, event, config = DEFAULT_PULL_GESTURE_CONFIG) {
|
|
|
130
130
|
case "settle": return step(IDLE_PULL_GESTURE);
|
|
131
131
|
}
|
|
132
132
|
}
|
|
133
|
-
//#endregion
|
|
134
133
|
export { DEFAULT_PULL_GESTURE_CONFIG, IDLE_PULL_GESTURE, PULL_TO_REFRESH_DAMPING, PULL_TO_REFRESH_HOLD_DISTANCE, PULL_TO_REFRESH_IGNORE_SELECTOR, PULL_TO_REFRESH_LONG_PRESS_MS, PULL_TO_REFRESH_MAX_DISTANCE, PULL_TO_REFRESH_SNAP_BACK_MS, PULL_TO_REFRESH_THRESHOLD, PULL_TO_REFRESH_TOLERANCE, pullDistance, pullProgress, pullState, pullStep, stepPullGesture };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { PullToRefresh } from "./use-pull-to-refresh.mjs";
|
|
2
2
|
import { ComponentProps } from "react";
|
|
3
|
-
//#region src/components/pull-to-refresh/pull-to-refresh-indicator.d.ts
|
|
4
3
|
export type PullToRefreshIndicatorProps = Omit<ComponentProps<"div">, "children"> & {
|
|
5
4
|
/** The result of `usePullToRefresh`. */
|
|
6
5
|
pull: PullToRefresh;
|
|
@@ -17,5 +16,4 @@ export type PullToRefreshIndicatorProps = Omit<ComponentProps<"div">, "children"
|
|
|
17
16
|
* disc with a progress arc that travels down over the content. It holds a
|
|
18
17
|
* polite live region that announces `label` while refreshing.
|
|
19
18
|
*/
|
|
20
|
-
export declare function PullToRefreshIndicator({ pull, label, className, style, ...props }: PullToRefreshIndicatorProps): import("react").JSX.Element;
|
|
21
|
-
//#endregion
|
|
19
|
+
export declare function PullToRefreshIndicator({ pull, label, className, style, ...props }: PullToRefreshIndicatorProps): import("react").JSX.Element;
|
|
@@ -4,7 +4,7 @@ import { pullStep } from "./pull-to-refresh-gesture.mjs";
|
|
|
4
4
|
import { PullToRefreshMaterialProgress } from "./pull-to-refresh-material-progress.mjs";
|
|
5
5
|
import { useState } from "react";
|
|
6
6
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
|
-
|
|
7
|
+
// src/components/pull-to-refresh/pull-to-refresh-indicator.tsx
|
|
8
8
|
const pullStepStyle = /* @__PURE__ */ jsx("style", {
|
|
9
9
|
href: "raft-ui-pull-to-refresh",
|
|
10
10
|
precedence: "default",
|
|
@@ -149,5 +149,4 @@ function PullToRefreshIndicator({ pull, label, className, style, ...props }) {
|
|
|
149
149
|
]
|
|
150
150
|
});
|
|
151
151
|
}
|
|
152
|
-
//#endregion
|
|
153
152
|
export { PullToRefreshIndicator };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { tv } from "../../lib/tv.mjs";
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
-
|
|
3
|
+
// src/components/pull-to-refresh/pull-to-refresh-material-progress.tsx
|
|
4
4
|
/**
|
|
5
5
|
* Android's own pull-to-refresh progress, drawn as Material 3 draws it
|
|
6
6
|
* (Compose's `PullToRefreshDefaults.Indicator`, the one Chrome on Android
|
|
@@ -146,5 +146,4 @@ function PullToRefreshMaterialProgress({ state, progress }) {
|
|
|
146
146
|
})]
|
|
147
147
|
});
|
|
148
148
|
}
|
|
149
|
-
//#endregion
|
|
150
149
|
export { MATERIAL_ARC_RADIUS, MATERIAL_MAX_ARC, MATERIAL_STROKE_WIDTH, PullToRefreshMaterialProgress, materialArc };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { PullToRefreshState } from "./pull-to-refresh-gesture.mjs";
|
|
2
2
|
import { RefObject } from "react";
|
|
3
|
-
//#region src/components/pull-to-refresh/use-pull-to-refresh.d.ts
|
|
4
3
|
/** A primary pointer that is a finger: the only input pull to refresh answers. */
|
|
5
4
|
export declare const PULL_TO_REFRESH_POINTER_QUERY = "(pointer: coarse)";
|
|
6
5
|
/**
|
|
@@ -51,5 +50,4 @@ export type PullToRefresh = {
|
|
|
51
50
|
* doesn't run as well. `scrollRef` is read when the hook turns on; a
|
|
52
51
|
* scroller that is replaced later needs the hook remounted (a `key`).
|
|
53
52
|
*/
|
|
54
|
-
export declare function usePullToRefresh(scrollRef: RefObject<HTMLElement | null>, { onRefresh, disabled, threshold, maxDistance, holdDistance, platform: platformOverride }: UsePullToRefreshOptions): PullToRefresh;
|
|
55
|
-
//#endregion
|
|
53
|
+
export declare function usePullToRefresh(scrollRef: RefObject<HTMLElement | null>, { onRefresh, disabled, threshold, maxDistance, holdDistance, platform: platformOverride }: UsePullToRefreshOptions): PullToRefresh;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useLatestRef } from "../virtual-list/hooks/use-latest-ref.mjs";
|
|
2
2
|
import { DEFAULT_PULL_GESTURE_CONFIG, IDLE_PULL_GESTURE, PULL_TO_REFRESH_IGNORE_SELECTOR, PULL_TO_REFRESH_LONG_PRESS_MS, pullProgress, pullState, stepPullGesture } from "./pull-to-refresh-gesture.mjs";
|
|
3
3
|
import { useEffect, useRef, useState, useSyncExternalStore } from "react";
|
|
4
|
-
|
|
4
|
+
// src/components/pull-to-refresh/use-pull-to-refresh.ts
|
|
5
5
|
/** A primary pointer that is a finger: the only input pull to refresh answers. */
|
|
6
6
|
const PULL_TO_REFRESH_POINTER_QUERY = "(pointer: coarse)";
|
|
7
7
|
/** The one platform check: Android, by its user agent (Client Hints first). */
|
|
@@ -152,5 +152,4 @@ function usePullToRefresh(scrollRef, { onRefresh, disabled = false, threshold =
|
|
|
152
152
|
platform
|
|
153
153
|
};
|
|
154
154
|
}
|
|
155
|
-
//#endregion
|
|
156
155
|
export { PULL_TO_REFRESH_POINTER_QUERY, detectPullToRefreshPlatform, usePullToRefresh };
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { StyledProps } from "../../lib/styled-props.mjs";
|
|
2
2
|
import { Radio } from "@base-ui/react/radio";
|
|
3
3
|
import { RadioGroup } from "@base-ui/react/radio-group";
|
|
4
|
-
//#region src/components/radio-group/radio-group.d.ts
|
|
5
4
|
export type RadioGroupProps<T extends string = string> = StyledProps<RadioGroup.Props<T>>;
|
|
6
5
|
declare function RadioGroup$1<T extends string = string>({ className, ...props }: RadioGroupProps<T>): import("react").JSX.Element;
|
|
7
6
|
export type RadioGroupIndicatorProps = StyledProps<Radio.Indicator.Props>;
|
|
@@ -10,5 +9,4 @@ export type RadioGroupItemProps<T extends string = string> = StyledProps<Radio.R
|
|
|
10
9
|
appearance?: "default" | "none";
|
|
11
10
|
};
|
|
12
11
|
export declare function RadioGroupItem<T extends string = string>({ appearance, className, children, ...props }: RadioGroupItemProps<T>): import("react").JSX.Element;
|
|
13
|
-
//#endregion
|
|
14
12
|
export { RadioGroup$1 as RadioGroup };
|