@botiverse/raft-ui 0.94.0 → 0.95.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +35 -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 +2 -2
- package/dist/components/list-row/list-row.recipe.d.mts +2 -96
- package/dist/components/list-row/list-row.recipe.mjs +19 -7
- 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 +14 -6
- package/dist/components/select/select.mjs +100 -33
- 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
|
@@ -4,7 +4,7 @@ import { useHoldThenMoveTouchSensor, useMouseOnlyPointerSensor } from "../../lib
|
|
|
4
4
|
import { useLayoutEffect, useMemo, useRef } from "react";
|
|
5
5
|
import { KeyboardSensor, useDndContext, useSensor, useSensors } from "@dnd-kit/core";
|
|
6
6
|
import { sortableKeyboardCoordinates } from "@dnd-kit/sortable";
|
|
7
|
-
|
|
7
|
+
// src/components/drag/drag-sensors.ts
|
|
8
8
|
/**
|
|
9
9
|
* A mouse or a pen picks an item up once it has moved this far, so a click
|
|
10
10
|
* never moves anything (design/patterns/drag-and-drop.md#starting-a-drag).
|
|
@@ -165,5 +165,4 @@ function DragRemeasure({ version }) {
|
|
|
165
165
|
}, [version]);
|
|
166
166
|
return null;
|
|
167
167
|
}
|
|
168
|
-
//#endregion
|
|
169
168
|
export { DRAG_KEYBOARD_CODES, DragRemeasure, MOUSE_DRAG_DISTANCE_PX, listKeyboardCoordinates, useDragAcrossLists, useDragSensors };
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
//#region src/components/drag/drag.recipe.d.ts
|
|
2
1
|
/**
|
|
3
2
|
* The lift look, for a copy drawn outside `DragLift`: an opaque popover
|
|
4
3
|
* surface, `shadow-float` and the `line-seam` ring. No scale, no tilt.
|
|
5
4
|
*/
|
|
6
|
-
export declare const LIFT_CLASS = "bg-layer-popover shadow-float ring-1 ring-line-seam";
|
|
7
|
-
//#endregion
|
|
5
|
+
export declare const LIFT_CLASS = "bg-layer-popover shadow-float ring-1 ring-line-seam";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { tv } from "../../lib/tv.mjs";
|
|
2
|
-
|
|
2
|
+
// src/components/drag/drag.recipe.ts
|
|
3
3
|
/**
|
|
4
4
|
* The lift look, for a copy drawn outside `DragLift`: an opaque popover
|
|
5
5
|
* surface, `shadow-float` and the `line-seam` ring. No scale, no tilt.
|
|
@@ -26,5 +26,4 @@ const drag = tv({
|
|
|
26
26
|
},
|
|
27
27
|
variants: { opaque: { true: { placeholder: ["bg-layer-canvas", "bg-[linear-gradient(var(--fill-subtle),var(--fill-subtle))]"] } } }
|
|
28
28
|
});
|
|
29
|
-
//#endregion
|
|
30
29
|
export { LIFT_CLASS, drag };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { ComponentPropsWithRef } from "react";
|
|
2
2
|
import { useRender } from "@base-ui/react/use-render";
|
|
3
|
-
//#region src/components/drag/drop-placeholder.d.ts
|
|
4
3
|
export type DropPlaceholderProps = useRender.ComponentProps<"div"> & {
|
|
5
4
|
/**
|
|
6
5
|
* In a layout (the gap a column makes, a new column's strip): an opaque
|
|
@@ -37,5 +36,4 @@ export type DragRefusalHintProps = Omit<ComponentPropsWithRef<"div">, "children"
|
|
|
37
36
|
* above the pointer; it never sits under the copy, and always stays 8px inside
|
|
38
37
|
* the window. Its size is measured when its content changes, not every frame.
|
|
39
38
|
*/
|
|
40
|
-
export declare function DragRefusalHint({ children, container, className, style, ...props }: DragRefusalHintProps): import("react").ReactPortal | null;
|
|
41
|
-
//#endregion
|
|
39
|
+
export declare function DragRefusalHint({ children, container, className, style, ...props }: DragRefusalHintProps): import("react").ReactPortal | null;
|
|
@@ -7,7 +7,7 @@ import { mergeProps } from "@base-ui/react/merge-props";
|
|
|
7
7
|
import { useRender } from "@base-ui/react/use-render";
|
|
8
8
|
import { createPortal } from "react-dom";
|
|
9
9
|
import { useDndContext } from "@dnd-kit/core";
|
|
10
|
-
|
|
10
|
+
// src/components/drag/drop-placeholder.tsx
|
|
11
11
|
/**
|
|
12
12
|
* Where a dragged item will land (design/patterns/drag-and-drop.md#where-it-will-land):
|
|
13
13
|
* a 1.5px dashed `line-strong` outline on `fill-subtle`, with the item's
|
|
@@ -157,5 +157,4 @@ function DragRefusalHint({ children, container, className, style, ...props }) {
|
|
|
157
157
|
children
|
|
158
158
|
}), container ?? document.body);
|
|
159
159
|
}
|
|
160
|
-
//#endregion
|
|
161
160
|
export { DragRefusalHint, DropPlaceholder, placeRefusalHint };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { DEFAULT_DRAG_MESSAGES, DragAnnouncementSource, DragMessages, DragNamed, DragPlace, createDragAnnouncements, dragInstructions, dragMessages } from "./drag-announcements.mjs";
|
|
2
|
-
import { HoldThenMoveOptions, HoldThenMoveTouchSensor, MouseOnlyPointerSensor, TOUCH_DRAG_DISTANCE_PX, TOUCH_DRAG_HOLD_MS, TOUCH_DRAG_TOLERANCE_PX, useHoldThenMoveTouchSensor, useMouseOnlyPointerSensor } from "../../lib/touch-drag.mjs";
|
|
3
1
|
import { DRAG_KEYBOARD_CODES, DragAcrossLists, DragRemeasure, DragRemeasureProps, DragSensorsOptions, MOUSE_DRAG_DISTANCE_PX, listKeyboardCoordinates, useDragAcrossLists, useDragSensors } from "./drag-sensors.mjs";
|
|
4
|
-
import { LIFT_CLASS } from "./drag.recipe.mjs";
|
|
5
2
|
import { DRAG_AUTO_SCROLL_ZONE_PX, DRAG_KEYBOARD_OFFSET_PX, DRAG_LIFT_Z_INDEX, DRAG_SETTLE, DRAG_SIBLING_TRANSITION, DROP_GLIDE, DragLift, DragLiftProps, ORIGIN_OPACITY, cancelDrag, keepGrabInside, useDragSiblingTransition } from "./drag-lift.mjs";
|
|
6
3
|
import { DragRefusalHint, DragRefusalHintProps, DropPlaceholder, DropPlaceholderProps } from "./drop-placeholder.mjs";
|
|
4
|
+
import { LIFT_CLASS } from "./drag.recipe.mjs";
|
|
5
|
+
import { DEFAULT_DRAG_MESSAGES, DragAnnouncementSource, DragMessages, DragNamed, DragPlace, createDragAnnouncements, dragInstructions, dragMessages } from "./drag-announcements.mjs";
|
|
6
|
+
import { HoldThenMoveOptions, HoldThenMoveTouchSensor, MouseOnlyPointerSensor, TOUCH_DRAG_DISTANCE_PX, TOUCH_DRAG_HOLD_MS, TOUCH_DRAG_TOLERANCE_PX, useHoldThenMoveTouchSensor, useMouseOnlyPointerSensor } from "../../lib/touch-drag.mjs";
|
|
7
7
|
import { DragListsItems, DragLiveRegion, DraggedSlot, DraggedSlotProps, UseDragListsOptions, dragListStrategy, useDragAnnouncer, useDragLists } from "./drag-lists.mjs";
|
|
8
8
|
export { DEFAULT_DRAG_MESSAGES, DRAG_AUTO_SCROLL_ZONE_PX, DRAG_KEYBOARD_CODES, DRAG_KEYBOARD_OFFSET_PX, DRAG_LIFT_Z_INDEX, DRAG_SETTLE, DRAG_SIBLING_TRANSITION, DROP_GLIDE, type DragAcrossLists, type DragAnnouncementSource, DragLift, type DragLiftProps, type DragListsItems, DragLiveRegion, type DragMessages, type DragNamed, type DragPlace, DragRefusalHint, type DragRefusalHintProps, DragRemeasure, type DragRemeasureProps, type DragSensorsOptions, DraggedSlot, type DraggedSlotProps, DropPlaceholder, type DropPlaceholderProps, type HoldThenMoveOptions, HoldThenMoveTouchSensor, LIFT_CLASS, MOUSE_DRAG_DISTANCE_PX, MouseOnlyPointerSensor, ORIGIN_OPACITY, TOUCH_DRAG_DISTANCE_PX, TOUCH_DRAG_HOLD_MS, TOUCH_DRAG_TOLERANCE_PX, type UseDragListsOptions, cancelDrag, createDragAnnouncements, dragInstructions, dragListStrategy, dragMessages, keepGrabInside, listKeyboardCoordinates, useDragAcrossLists, useDragAnnouncer, useDragLists, useDragSensors, useDragSiblingTransition, useHoldThenMoveTouchSensor, useMouseOnlyPointerSensor };
|
|
@@ -3,7 +3,6 @@ import { ButtonProps } from "../button/button.mjs";
|
|
|
3
3
|
import "../button/index.mjs";
|
|
4
4
|
import { useRender } from "@base-ui/react/use-render";
|
|
5
5
|
import { Drawer } from "@base-ui/react/drawer";
|
|
6
|
-
//#region src/components/drawer/drawer.d.ts
|
|
7
6
|
export type DrawerProps = Drawer.Root.Props;
|
|
8
7
|
declare function Drawer$1({ modal, snapPoints, swipeDirection, children, ...props }: DrawerProps): import("react").JSX.Element;
|
|
9
8
|
export type DrawerTriggerProps = Drawer.Trigger.Props;
|
|
@@ -30,5 +29,4 @@ export type DrawerTitleProps = StyledProps<Drawer.Title.Props>;
|
|
|
30
29
|
export declare function DrawerTitle({ className, ...props }: DrawerTitleProps): import("react").JSX.Element;
|
|
31
30
|
export type DrawerDescriptionProps = StyledProps<Drawer.Description.Props>;
|
|
32
31
|
export declare function DrawerDescription({ className, ...props }: DrawerDescriptionProps): import("react").JSX.Element;
|
|
33
|
-
//#endregion
|
|
34
32
|
export { Drawer$1 as Drawer };
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { cn } from "../../cn.mjs";
|
|
2
2
|
import { useThemeScopeProps } from "../../lib/theme/theme-scope.mjs";
|
|
3
|
-
import { useParentOverlayKind, withOverlayLayer } from "../../lib/overlay-depth.mjs";
|
|
4
3
|
import { Button } from "../button/button.mjs";
|
|
5
4
|
import { DialogSheetReset } from "../dialog/dialog-sheet-context.mjs";
|
|
6
5
|
import { drawer } from "./drawer.recipe.mjs";
|
|
6
|
+
import { useParentOverlayKind, withOverlayLayer } from "../../lib/overlay-depth.mjs";
|
|
7
7
|
import { X } from "lucide-react";
|
|
8
8
|
import { createContext, useContext, useMemo } from "react";
|
|
9
9
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
10
10
|
import { mergeProps } from "@base-ui/react/merge-props";
|
|
11
11
|
import { useRender } from "@base-ui/react/use-render";
|
|
12
12
|
import { Drawer } from "@base-ui/react/drawer";
|
|
13
|
-
|
|
13
|
+
// src/components/drawer/drawer.tsx
|
|
14
14
|
const DrawerConfigContext = createContext(null);
|
|
15
15
|
function useDrawerConfig() {
|
|
16
16
|
const context = useContext(DrawerConfigContext);
|
|
@@ -200,5 +200,4 @@ function DrawerDescription({ className, ...props }) {
|
|
|
200
200
|
...props
|
|
201
201
|
});
|
|
202
202
|
}
|
|
203
|
-
//#endregion
|
|
204
203
|
export { Drawer$1 as Drawer, DrawerActions, DrawerBody, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { barButton } from "../../lib/head-edges.mjs";
|
|
2
2
|
import { tv } from "../../lib/tv.mjs";
|
|
3
3
|
import { panelHeadEdges } from "../panel/panel-header.recipe.mjs";
|
|
4
|
-
|
|
4
|
+
// src/components/drawer/drawer.recipe.ts
|
|
5
5
|
const drawerMotion = tv({
|
|
6
6
|
slots: {
|
|
7
7
|
overlay: [
|
|
@@ -172,5 +172,4 @@ const drawer = tv({
|
|
|
172
172
|
class: { popup: ["[--drawer-content-height:100dvh]"] }
|
|
173
173
|
}]
|
|
174
174
|
});
|
|
175
|
-
//#endregion
|
|
176
175
|
export { drawer };
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import { StyledProps } from "../../lib/styled-props.mjs";
|
|
2
|
-
import { BadgeProps } from "../badge/badge.mjs";
|
|
3
1
|
import "../badge/index.mjs";
|
|
4
|
-
import {
|
|
2
|
+
import { BadgeProps } from "../badge/badge.mjs";
|
|
5
3
|
import "../kbd/index.mjs";
|
|
4
|
+
import { KbdProps } from "../kbd/kbd.mjs";
|
|
5
|
+
import { StyledProps } from "../../lib/styled-props.mjs";
|
|
6
6
|
import { ComponentPropsWithRef } from "react";
|
|
7
7
|
import { Menu } from "@base-ui/react/menu";
|
|
8
|
-
//#region src/components/dropdown-menu/dropdown-menu.d.ts
|
|
9
8
|
export type DropdownMenuProps = Menu.Root.Props;
|
|
10
9
|
export declare function DropdownMenu(props: DropdownMenuProps): import("react").JSX.Element;
|
|
11
10
|
export type DropdownMenuSubmenuProps = Menu.SubmenuRoot.Props;
|
|
@@ -58,5 +57,4 @@ export type DropdownMenuLinkItemProps = StyledProps<Menu.LinkItem.Props> & {
|
|
|
58
57
|
* language: a link, so it opens in a new tab and can be copied. Its
|
|
59
58
|
* `href` goes on the item; `current` marks the page being shown.
|
|
60
59
|
*/
|
|
61
|
-
export declare function DropdownMenuLinkItem({ current, className, children, ...props }: DropdownMenuLinkItemProps): import("react").JSX.Element;
|
|
62
|
-
//#endregion
|
|
60
|
+
export declare function DropdownMenuLinkItem({ current, className, children, ...props }: DropdownMenuLinkItemProps): import("react").JSX.Element;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
+
import { usePopupCollision } from "../../lib/frame-insets.mjs";
|
|
1
2
|
import { tv } from "../../lib/tv.mjs";
|
|
2
|
-
import { useThemeScopeProps } from "../../lib/theme/theme-scope.mjs";
|
|
3
|
-
import { Button } from "../button/button.mjs";
|
|
4
3
|
import { Badge } from "../badge/badge.mjs";
|
|
5
|
-
import {
|
|
4
|
+
import { Button } from "../button/button.mjs";
|
|
6
5
|
import { Kbd } from "../kbd/kbd.mjs";
|
|
6
|
+
import { useThemeScopeProps } from "../../lib/theme/theme-scope.mjs";
|
|
7
7
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
8
|
import { Menu } from "@base-ui/react/menu";
|
|
9
|
-
|
|
9
|
+
// src/components/dropdown-menu/dropdown-menu.tsx
|
|
10
10
|
const dropdownMenu = tv({ slots: {
|
|
11
11
|
trigger: ["select-none"],
|
|
12
12
|
positioner: ["isolate z-popup outline-none"],
|
|
@@ -316,5 +316,4 @@ function DropdownMenuLinkItem({ current = false, className, children, ...props }
|
|
|
316
316
|
}) : null]
|
|
317
317
|
});
|
|
318
318
|
}
|
|
319
|
-
//#endregion
|
|
320
319
|
export { DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuCheckboxItemIndicator, DropdownMenuContent, DropdownMenuFooter, DropdownMenuItem, DropdownMenuItemCount, DropdownMenuItemLabel, DropdownMenuLabel, DropdownMenuLinkItem, DropdownMenuPopup, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuRadioItemIndicator, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSubmenu, DropdownMenuSubmenuTrigger, DropdownMenuTrigger };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { TextLinkProps } from "../text-link/text-link.mjs";
|
|
2
2
|
import { ComponentProps, ReactNode } from "react";
|
|
3
|
-
//#region src/components/ellipsis/ellipsis.d.ts
|
|
4
3
|
/** What a function passed as `after` receives. */
|
|
5
4
|
export interface EllipsisState {
|
|
6
5
|
/** The text is cut off right now. `false` while it is expanded. */
|
|
@@ -51,5 +50,4 @@ export type EllipsisToggleProps = Omit<TextLinkProps, "aria-expanded" | "aria-co
|
|
|
51
50
|
* `after`. A real button, with `aria-expanded` and `aria-controls` pointing
|
|
52
51
|
* at the text. The label is the caller's: "Show more" / "Show less".
|
|
53
52
|
*/
|
|
54
|
-
export declare function EllipsisToggle({ onClick, ...props }: EllipsisToggleProps): import("react").JSX.Element;
|
|
55
|
-
//#endregion
|
|
53
|
+
export declare function EllipsisToggle({ onClick, ...props }: EllipsisToggleProps): import("react").JSX.Element;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
+
import { measureContent, observeTruncation, readNow } from "../../lib/truncation.mjs";
|
|
1
2
|
import { tv } from "../../lib/tv.mjs";
|
|
2
3
|
import { TextLink } from "../text-link/text-link.mjs";
|
|
3
4
|
import { Tooltip, TooltipContent, TooltipTrigger } from "../tooltip/tooltip.mjs";
|
|
4
|
-
import { measureContent, observeTruncation, readNow } from "../../lib/truncation.mjs";
|
|
5
5
|
import { createContext, useCallback, useContext, useId, useLayoutEffect, useMemo, useRef, useState } from "react";
|
|
6
6
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
7
|
-
|
|
7
|
+
// src/components/ellipsis/ellipsis.tsx
|
|
8
8
|
const ellipsis = tv({
|
|
9
9
|
slots: {
|
|
10
10
|
root: ["group/ellipsis min-w-0 max-w-full"],
|
|
@@ -316,5 +316,4 @@ function EllipsisToggle({ onClick, ...props }) {
|
|
|
316
316
|
...props
|
|
317
317
|
});
|
|
318
318
|
}
|
|
319
|
-
//#endregion
|
|
320
319
|
export { Ellipsis, EllipsisToggle };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { useRender } from "@base-ui/react/use-render";
|
|
2
|
-
//#region src/components/empty-state/empty-state.d.ts
|
|
3
2
|
export type EmptyStateProps = useRender.ComponentProps<"div">;
|
|
4
3
|
export declare function EmptyState({ render, className, ...props }: EmptyStateProps): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
|
|
5
4
|
export type EmptyStateContentProps = useRender.ComponentProps<"div">;
|
|
@@ -11,5 +10,4 @@ export declare function EmptyStateTitle({ render, className, ...props }: EmptySt
|
|
|
11
10
|
export type EmptyStateDescriptionProps = useRender.ComponentProps<"div">;
|
|
12
11
|
export declare function EmptyStateDescription({ render, className, ...props }: EmptyStateDescriptionProps): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
|
|
13
12
|
export type EmptyStateActionsProps = useRender.ComponentProps<"div">;
|
|
14
|
-
export declare function EmptyStateActions({ render, className, ...props }: EmptyStateActionsProps): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
|
|
15
|
-
//#endregion
|
|
13
|
+
export declare function EmptyStateActions({ render, className, ...props }: EmptyStateActionsProps): 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/empty-state/empty-state.tsx
|
|
5
5
|
const emptyState = tv({ slots: {
|
|
6
6
|
root: ["flex w-full min-w-0 flex-col items-center justify-center px-6 md:pointer-fine:px-(--page-inset) py-12 text-center"],
|
|
7
7
|
content: [
|
|
@@ -98,5 +98,4 @@ function EmptyStateActions({ render, className, ...props }) {
|
|
|
98
98
|
state: { slot: "empty-state-actions" }
|
|
99
99
|
});
|
|
100
100
|
}
|
|
101
|
-
//#endregion
|
|
102
101
|
export { EmptyState, EmptyStateActions, EmptyStateContent, EmptyStateDescription, EmptyStateIcon, EmptyStateTitle };
|
|
@@ -1,43 +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 { ReactNode } from "react";
|
|
4
4
|
import { Field } from "@base-ui/react/field";
|
|
5
|
-
|
|
6
|
-
declare const field: import("tailwind-variants/lite").TVReturnType<{
|
|
7
|
-
size: {
|
|
8
|
-
sm: {
|
|
9
|
-
item: string[];
|
|
10
|
-
label: string[];
|
|
11
|
-
};
|
|
12
|
-
md: {
|
|
13
|
-
item: string[];
|
|
14
|
-
label: string[];
|
|
15
|
-
};
|
|
16
|
-
};
|
|
17
|
-
}, {
|
|
18
|
-
root: string[];
|
|
19
|
-
item: string[];
|
|
20
|
-
label: string[];
|
|
21
|
-
description: string[];
|
|
22
|
-
error: string[];
|
|
23
|
-
}, undefined, {
|
|
24
|
-
size: {
|
|
25
|
-
sm: {
|
|
26
|
-
item: string[];
|
|
27
|
-
label: string[];
|
|
28
|
-
};
|
|
29
|
-
md: {
|
|
30
|
-
item: string[];
|
|
31
|
-
label: string[];
|
|
32
|
-
};
|
|
33
|
-
};
|
|
34
|
-
}, {
|
|
35
|
-
root: string[];
|
|
36
|
-
item: string[];
|
|
37
|
-
label: string[];
|
|
38
|
-
description: string[];
|
|
39
|
-
error: string[];
|
|
40
|
-
}, import("tailwind-variants/lite").TVReturnTypeLike<{
|
|
5
|
+
declare const field: import("tailwind-variants/config").TVReturnType<{
|
|
41
6
|
size: {
|
|
42
7
|
sm: {
|
|
43
8
|
item: string[];
|
|
@@ -54,7 +19,7 @@ declare const field: import("tailwind-variants/lite").TVReturnType<{
|
|
|
54
19
|
label: string[];
|
|
55
20
|
description: string[];
|
|
56
21
|
error: string[];
|
|
57
|
-
}
|
|
22
|
+
}, undefined, undefined, undefined, undefined>;
|
|
58
23
|
export type FieldProps = StyledProps<Field.Root.Props>;
|
|
59
24
|
declare function Field$1({ className, ...props }: FieldProps): import("react").JSX.Element;
|
|
60
25
|
export type FieldItemProps = StyledProps<Field.Item.Props> & VariantProps<typeof field>;
|
|
@@ -82,5 +47,4 @@ export type FieldControlProps = Field.Control.Props;
|
|
|
82
47
|
export declare function FieldControl(props: FieldControlProps): import("react").JSX.Element;
|
|
83
48
|
export type FieldValidityProps = Field.Validity.Props;
|
|
84
49
|
export declare function FieldValidity(props: FieldValidityProps): import("react").JSX.Element;
|
|
85
|
-
//#endregion
|
|
86
50
|
export { Field$1 as Field };
|
|
@@ -2,7 +2,7 @@ import { tv } from "../../lib/tv.mjs";
|
|
|
2
2
|
import { LabelAsterisk, LabelOptional } from "../label/label.mjs";
|
|
3
3
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
4
|
import { Field } from "@base-ui/react/field";
|
|
5
|
-
|
|
5
|
+
// src/components/field/field.tsx
|
|
6
6
|
const field = tv({
|
|
7
7
|
slots: {
|
|
8
8
|
root: ["group/field flex flex-col gap-1.5"],
|
|
@@ -103,5 +103,4 @@ function FieldControl(props) {
|
|
|
103
103
|
function FieldValidity(props) {
|
|
104
104
|
return /* @__PURE__ */ jsx(Field.Validity, { ...props });
|
|
105
105
|
}
|
|
106
|
-
//#endregion
|
|
107
106
|
export { Field$1 as Field, FieldControl, FieldDescription, FieldError, FieldItem, FieldLabel, FieldValidity };
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { VariantProps } from "../../lib/tv.mjs";
|
|
2
2
|
import { filePreview } from "./file-preview.recipe.mjs";
|
|
3
3
|
import { useRender } from "@base-ui/react/use-render";
|
|
4
|
-
//#region src/components/file-preview/file-preview.d.ts
|
|
5
4
|
export type FilePreviewProps = useRender.ComponentProps<"span">;
|
|
6
5
|
export declare function FilePreview({ className, render, ...props }: FilePreviewProps): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
|
|
7
6
|
export type FilePreviewDocumentProps = useRender.ComponentProps<"span">;
|
|
@@ -13,5 +12,4 @@ export declare function FilePreviewCode({ children, className, render, ...props
|
|
|
13
12
|
export type FilePreviewBadgeProps = useRender.ComponentProps<"span"> & Pick<VariantProps<typeof filePreview>, "placement">;
|
|
14
13
|
export declare function FilePreviewBadge({ placement, className, render, ...props }: FilePreviewBadgeProps): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
|
|
15
14
|
export type FilePreviewMediaProps = useRender.ComponentProps<"span">;
|
|
16
|
-
export declare function FilePreviewMedia({ children, className, render, ...props }: FilePreviewMediaProps): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
|
|
17
|
-
//#endregion
|
|
15
|
+
export declare function FilePreviewMedia({ children, className, render, ...props }: FilePreviewMediaProps): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
|
|
@@ -2,7 +2,7 @@ import { filePreview } from "./file-preview.recipe.mjs";
|
|
|
2
2
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { mergeProps } from "@base-ui/react/merge-props";
|
|
4
4
|
import { useRender } from "@base-ui/react/use-render";
|
|
5
|
-
|
|
5
|
+
// src/components/file-preview/file-preview.tsx
|
|
6
6
|
function FilePreview({ className, render, ...props }) {
|
|
7
7
|
const { root } = filePreview();
|
|
8
8
|
const defaultProps = {
|
|
@@ -206,5 +206,4 @@ function FilePreviewMedia({ children, className, render, ...props }) {
|
|
|
206
206
|
props: mergeProps(defaultProps, props)
|
|
207
207
|
});
|
|
208
208
|
}
|
|
209
|
-
//#endregion
|
|
210
209
|
export { FilePreview, FilePreviewBadge, FilePreviewCode, FilePreviewDocument, FilePreviewFile, FilePreviewMedia };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const filePreview: import("tailwind-variants/lite").TVReturnType<{
|
|
1
|
+
export declare const filePreview: import("tailwind-variants/config").TVReturnType<{
|
|
3
2
|
placement: {
|
|
4
3
|
corner: {
|
|
5
4
|
badge: string;
|
|
@@ -31,69 +30,4 @@ export declare const filePreview: import("tailwind-variants/lite").TVReturnType<
|
|
|
31
30
|
codeSelfClosingLine: string[];
|
|
32
31
|
badge: string[];
|
|
33
32
|
media: string[];
|
|
34
|
-
}, undefined,
|
|
35
|
-
placement: {
|
|
36
|
-
corner: {
|
|
37
|
-
badge: string;
|
|
38
|
-
};
|
|
39
|
-
inline: {
|
|
40
|
-
badge: string;
|
|
41
|
-
};
|
|
42
|
-
};
|
|
43
|
-
}, {
|
|
44
|
-
root: string[];
|
|
45
|
-
document: string[];
|
|
46
|
-
file: string[];
|
|
47
|
-
code: string[];
|
|
48
|
-
fileZip: string[];
|
|
49
|
-
fileZipStack: string[];
|
|
50
|
-
fileZipTeeth: string[];
|
|
51
|
-
fileZipRow: string[];
|
|
52
|
-
fileZipDark: string[];
|
|
53
|
-
fileZipLight: string[];
|
|
54
|
-
fileZipPull: string[];
|
|
55
|
-
codeStack: string[];
|
|
56
|
-
codeRow: string[];
|
|
57
|
-
codeRowIndent: string[];
|
|
58
|
-
codeTextRow: string[];
|
|
59
|
-
codeGlyph: string[];
|
|
60
|
-
codeTagLine: string[];
|
|
61
|
-
codeAttributeLine: string[];
|
|
62
|
-
codeTextLine: string[];
|
|
63
|
-
codeSelfClosingLine: string[];
|
|
64
|
-
badge: string[];
|
|
65
|
-
media: string[];
|
|
66
|
-
}, import("tailwind-variants/lite").TVReturnTypeLike<{
|
|
67
|
-
placement: {
|
|
68
|
-
corner: {
|
|
69
|
-
badge: string;
|
|
70
|
-
};
|
|
71
|
-
inline: {
|
|
72
|
-
badge: string;
|
|
73
|
-
};
|
|
74
|
-
};
|
|
75
|
-
}, {
|
|
76
|
-
root: string[];
|
|
77
|
-
document: string[];
|
|
78
|
-
file: string[];
|
|
79
|
-
code: string[];
|
|
80
|
-
fileZip: string[];
|
|
81
|
-
fileZipStack: string[];
|
|
82
|
-
fileZipTeeth: string[];
|
|
83
|
-
fileZipRow: string[];
|
|
84
|
-
fileZipDark: string[];
|
|
85
|
-
fileZipLight: string[];
|
|
86
|
-
fileZipPull: string[];
|
|
87
|
-
codeStack: string[];
|
|
88
|
-
codeRow: string[];
|
|
89
|
-
codeRowIndent: string[];
|
|
90
|
-
codeTextRow: string[];
|
|
91
|
-
codeGlyph: string[];
|
|
92
|
-
codeTagLine: string[];
|
|
93
|
-
codeAttributeLine: string[];
|
|
94
|
-
codeTextLine: string[];
|
|
95
|
-
codeSelfClosingLine: string[];
|
|
96
|
-
badge: string[];
|
|
97
|
-
media: string[];
|
|
98
|
-
}>>;
|
|
99
|
-
//#endregion
|
|
33
|
+
}, undefined, undefined, undefined, undefined>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { tv } from "../../lib/tv.mjs";
|
|
2
|
-
|
|
2
|
+
// src/components/file-preview/file-preview.recipe.ts
|
|
3
3
|
const filePreview = tv({
|
|
4
4
|
slots: {
|
|
5
5
|
root: ["relative flex h-10 w-10 shrink-0 items-center justify-center"],
|
|
@@ -35,5 +35,4 @@ const filePreview = tv({
|
|
|
35
35
|
} },
|
|
36
36
|
defaultVariants: { placement: "corner" }
|
|
37
37
|
});
|
|
38
|
-
//#endregion
|
|
39
38
|
export { filePreview };
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { ButtonProps } from "../button/button.mjs";
|
|
2
2
|
import { ScrollAreaProps } from "../scroll-area/types.mjs";
|
|
3
3
|
import { useRender } from "@base-ui/react/use-render";
|
|
4
|
-
//#region src/components/files/files.d.ts
|
|
5
4
|
type FileTag = "button" | "div" | "img" | "section" | "span";
|
|
6
5
|
type DataAttributes = Record<`data-${string}`, string | undefined>;
|
|
7
6
|
type FileSlotProps<Tag extends FileTag> = useRender.ComponentProps<Tag> & DataAttributes;
|
|
@@ -35,4 +34,4 @@ export type FileActionsProps = FileSlotProps<"span">;
|
|
|
35
34
|
export declare function FileActions(props: FileActionsProps): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
|
|
36
35
|
export type FileActionProps = Omit<ButtonProps, "variant" | "size"> & Pick<Partial<ButtonProps>, "variant" | "size">;
|
|
37
36
|
export declare function FileAction({ variant, size, ...props }: FileActionProps): import("react").JSX.Element;
|
|
38
|
-
|
|
37
|
+
export {};
|
|
@@ -3,7 +3,7 @@ import { ScrollArea } from "../scroll-area/scroll-area.mjs";
|
|
|
3
3
|
import { files } from "./files.recipe.mjs";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
import { useRender } from "@base-ui/react/use-render";
|
|
6
|
-
|
|
6
|
+
// src/components/files/files.tsx
|
|
7
7
|
function useFileSlot(slotName, dataSlot, defaultTagName, props) {
|
|
8
8
|
const slot = files()[slotName];
|
|
9
9
|
const { className, render, ...otherProps } = props;
|
|
@@ -74,5 +74,4 @@ function FileAction({ variant, size = "icon-md", ...props }) {
|
|
|
74
74
|
...props
|
|
75
75
|
});
|
|
76
76
|
}
|
|
77
|
-
//#endregion
|
|
78
77
|
export { FileAction, FileActions, FileContent, FileImage, FileMeta, FileMetaItem, FileName, FileRow, FileRowOpen, FileThumbnail, FilesList, FilesPanel, FilesViewport };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { tv } from "../../lib/tv.mjs";
|
|
2
|
-
|
|
2
|
+
// src/components/files/files.recipe.ts
|
|
3
3
|
const files = tv({ slots: {
|
|
4
4
|
panel: ["flex min-h-0 flex-1 flex-col", "bg-layer-canvas text-foreground"],
|
|
5
5
|
viewport: ["min-h-0 flex-1"],
|
|
@@ -36,5 +36,4 @@ const files = tv({ slots: {
|
|
|
36
36
|
metaItem: ["inline-flex items-center gap-1 [&_svg]:size-3 [&_svg]:shrink-0"],
|
|
37
37
|
actions: ["flex shrink-0 self-center items-center gap-1.5"]
|
|
38
38
|
} });
|
|
39
|
-
//#endregion
|
|
40
39
|
export { files };
|
|
@@ -1,8 +1,7 @@
|
|
|
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 { ComponentPropsWithRef } from "react";
|
|
4
4
|
import { Button } from "@base-ui/react/button";
|
|
5
|
-
//#region src/components/filter-chip/filter-chip.d.ts
|
|
6
5
|
export type FilterChipProps = ComponentPropsWithRef<"span"> & DataAttributes;
|
|
7
6
|
/**
|
|
8
7
|
* The filter in effect, beside the filter button that chose it: an `info-soft`
|
|
@@ -21,5 +20,4 @@ export type FilterChipRemoveProps = Omit<StyledProps<Button.Props>, "aria-label"
|
|
|
21
20
|
"aria-label": string;
|
|
22
21
|
};
|
|
23
22
|
/** The × that resets the filter to its default. Shows an X unless given children. */
|
|
24
|
-
export declare function FilterChipRemove({ className, children, render, nativeButton, ...props }: FilterChipRemoveProps): import("react").JSX.Element;
|
|
25
|
-
//#endregion
|
|
23
|
+
export declare function FilterChipRemove({ className, children, render, nativeButton, ...props }: FilterChipRemoveProps): import("react").JSX.Element;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { tv } from "../../lib/tv.mjs";
|
|
2
|
-
import { defaultNativeButton } from "../../lib/default-native-button.mjs";
|
|
3
1
|
import { chipRemoveBase } from "../../lib/chip-remove.mjs";
|
|
2
|
+
import { defaultNativeButton } from "../../lib/default-native-button.mjs";
|
|
3
|
+
import { tv } from "../../lib/tv.mjs";
|
|
4
4
|
import { X } from "lucide-react";
|
|
5
5
|
import { jsx } from "react/jsx-runtime";
|
|
6
6
|
import { Button } from "@base-ui/react/button";
|
|
7
|
-
|
|
7
|
+
// src/components/filter-chip/filter-chip.tsx
|
|
8
8
|
const filterChip = tv({ slots: {
|
|
9
9
|
root: [
|
|
10
10
|
"inline-flex h-8 md:pointer-fine:h-control min-w-0 shrink items-center",
|
|
@@ -56,5 +56,4 @@ function FilterChipRemove({ className, children, render, nativeButton, ...props
|
|
|
56
56
|
children: children ?? /* @__PURE__ */ jsx(X, { "aria-hidden": true })
|
|
57
57
|
});
|
|
58
58
|
}
|
|
59
|
-
//#endregion
|
|
60
59
|
export { FilterChip, FilterChipLabel, FilterChipRemove };
|
|
@@ -5,7 +5,6 @@ import { InputGroupInputProps } from "../input-group/input-group.mjs";
|
|
|
5
5
|
import { PickerTriggerButtonProps } from "../picker-trigger-button/picker-trigger-button.mjs";
|
|
6
6
|
import { CSSProperties, ReactElement, ReactNode, Ref } from "react";
|
|
7
7
|
import { Toolbar } from "@base-ui/react/toolbar";
|
|
8
|
-
//#region src/components/fit-toolbar/fit-toolbar.d.ts
|
|
9
8
|
/**
|
|
10
9
|
* The ways an item gives way, each one step:
|
|
11
10
|
* - `label`: its label hides and its icon stays (the label stays its accessible name);
|
|
@@ -292,5 +291,4 @@ export type FitToolbarSearchProps = Omit<InputGroupInputProps, "className" | "va
|
|
|
292
291
|
* field closes once it is empty and loses focus, or on Esc. A search with
|
|
293
292
|
* text stays open. Put it straight in the FitToolbar, between its groups.
|
|
294
293
|
*/
|
|
295
|
-
export declare function FitToolbarSearch({ "aria-label": label, value, defaultValue, onValueChange, minWidth, collapseOrder, icon, clearLabel, className, style, onKeyDown, disabled, placeholder: hint, ref, ...props }: FitToolbarSearchProps): import("react").JSX.Element;
|
|
296
|
-
//#endregion
|
|
294
|
+
export declare function FitToolbarSearch({ "aria-label": label, value, defaultValue, onValueChange, minWidth, collapseOrder, icon, clearLabel, className, style, onKeyDown, disabled, placeholder: hint, ref, ...props }: FitToolbarSearchProps): import("react").JSX.Element;
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { laidOutChildren } from "../../lib/laid-out-children.mjs";
|
|
2
|
+
import { useAttachCount } from "../../lib/use-attach-count.mjs";
|
|
3
|
+
import { useMergedRef } from "../../lib/use-merged-ref.mjs";
|
|
2
4
|
import { Button } from "../button/button.mjs";
|
|
3
5
|
import { ButtonSplit, ButtonSplitMain, ButtonSplitMenu } from "../button/button-split.mjs";
|
|
4
|
-
import { useMergedRef } from "../../lib/use-merged-ref.mjs";
|
|
5
|
-
import { ScrollArea } from "../scroll-area/scroll-area.mjs";
|
|
6
|
-
import { Tooltip, TooltipContent, TooltipTrigger } from "../tooltip/tooltip.mjs";
|
|
7
6
|
import { InputGroup, InputGroupAddon, InputGroupInput } from "../input-group/input-group.mjs";
|
|
8
7
|
import { PickerTriggerButton } from "../picker-trigger-button/picker-trigger-button.mjs";
|
|
9
|
-
import {
|
|
8
|
+
import { ScrollArea } from "../scroll-area/scroll-area.mjs";
|
|
9
|
+
import { Tooltip, TooltipContent, TooltipTrigger } from "../tooltip/tooltip.mjs";
|
|
10
10
|
import { fitToolbar } from "./fit-toolbar.recipe.mjs";
|
|
11
11
|
import { ChevronDown, MoreHorizontal, Plus, Search, X } from "lucide-react";
|
|
12
12
|
import { Fragment, cloneElement, createContext, useCallback, useContext, useId, useLayoutEffect, useMemo, useRef, useState, useSyncExternalStore } from "react";
|
|
13
13
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
14
14
|
import { Toolbar } from "@base-ui/react/toolbar";
|
|
15
|
-
|
|
15
|
+
// src/components/fit-toolbar/fit-toolbar.tsx
|
|
16
16
|
const NONE = {
|
|
17
17
|
items: /* @__PURE__ */ new Map(),
|
|
18
18
|
more: [],
|
|
@@ -1248,5 +1248,4 @@ function FitToolbarSearch({ "aria-label": label, value, defaultValue = "", onVal
|
|
|
1248
1248
|
]
|
|
1249
1249
|
});
|
|
1250
1250
|
}
|
|
1251
|
-
//#endregion
|
|
1252
1251
|
export { FIT_SEARCH_MAX_LEAST, FitToolbar, FitToolbarButton, FitToolbarGroup, FitToolbarMore, FitToolbarMoreItems, FitToolbarPicker, FitToolbarSearch, FitToolbarSplitButton, useFitItem, useFitMore, useInFitToolbar };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { tv } from "../../lib/tv.mjs";
|
|
2
|
-
|
|
2
|
+
// src/components/fit-toolbar/fit-toolbar.recipe.ts
|
|
3
3
|
const fitToolbar = tv({
|
|
4
4
|
slots: {
|
|
5
5
|
root: [
|
|
@@ -59,5 +59,4 @@ const fitToolbar = tv({
|
|
|
59
59
|
} }
|
|
60
60
|
}
|
|
61
61
|
});
|
|
62
|
-
//#endregion
|
|
63
62
|
export { fitToolbar };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { ReactNode } from "react";
|
|
2
2
|
import { useRender } from "@base-ui/react/use-render";
|
|
3
|
-
//#region src/components/form-section/form-section.d.ts
|
|
4
3
|
export type FormSectionProps = Omit<useRender.ComponentProps<"section">, "title"> & {
|
|
5
4
|
title: ReactNode;
|
|
6
5
|
/** Where this part stands (Complete, Optional, Off …): a quiet tag. */
|
|
@@ -12,5 +11,4 @@ export type FormSectionProps = Omit<useRender.ComponentProps<"section">, "title"
|
|
|
12
11
|
* its status and a line on what it is for, then its fields. Consecutive
|
|
13
12
|
* sections are separated by a hairline.
|
|
14
13
|
*/
|
|
15
|
-
export declare function FormSection({ className, render, title, status, description, children, ...props }: FormSectionProps): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
|
|
16
|
-
//#endregion
|
|
14
|
+
export declare function FormSection({ className, render, title, status, description, children, ...props }: FormSectionProps): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
|
|
@@ -3,7 +3,7 @@ import { Badge } from "../badge/badge.mjs";
|
|
|
3
3
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
4
4
|
import { mergeProps } from "@base-ui/react/merge-props";
|
|
5
5
|
import { useRender } from "@base-ui/react/use-render";
|
|
6
|
-
|
|
6
|
+
// src/components/form-section/form-section.tsx
|
|
7
7
|
const formSection = tv({ slots: {
|
|
8
8
|
root: ["flex flex-col gap-(--field-gap) py-[calc(var(--section-gap)/2)] first:pt-0", "[[data-slot=form-section]+&]:border-t [[data-slot=form-section]+&]:border-line-hairline"],
|
|
9
9
|
head: ["flex min-w-0 flex-col", "gap-0.5"],
|
|
@@ -49,5 +49,4 @@ function FormSection({ className, render, title, status, description, children,
|
|
|
49
49
|
}, props)
|
|
50
50
|
});
|
|
51
51
|
}
|
|
52
|
-
//#endregion
|
|
53
52
|
export { FormSection };
|