@botiverse/raft-ui 0.93.0 → 0.95.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +24 -0
- package/codemods/button-sizes.mjs +14 -2
- package/dist/cn.d.mts +0 -2
- package/dist/cn.mjs +1 -2
- package/dist/components/activity-inbox/activity-inbox-shell.d.mts +1 -3
- package/dist/components/activity-inbox/activity-inbox-shell.mjs +2 -3
- package/dist/components/activity-inbox/activity-inbox-shell.recipe.mjs +1 -2
- package/dist/components/activity-inbox/activity-inbox-sidebar.d.mts +1 -3
- package/dist/components/activity-inbox/activity-inbox-sidebar.mjs +1 -2
- package/dist/components/activity-inbox/activity-inbox-sidebar.recipe.mjs +1 -2
- package/dist/components/activity-inbox/activity-inbox-toolbar.d.mts +1 -3
- package/dist/components/activity-inbox/activity-inbox-toolbar.mjs +1 -2
- package/dist/components/activity-inbox/activity-inbox-toolbar.recipe.mjs +1 -2
- package/dist/components/alert-dialog/alert-dialog.d.mts +1 -3
- package/dist/components/alert-dialog/alert-dialog.mjs +1 -2
- package/dist/components/announcement-dialog/announcement-dialog.d.mts +2 -4
- package/dist/components/announcement-dialog/announcement-dialog.mjs +2 -3
- package/dist/components/app-link-card/app-link-card.d.mts +1 -3
- package/dist/components/app-link-card/app-link-card.mjs +1 -2
- package/dist/components/app-rail/app-rail.d.mts +1 -3
- package/dist/components/app-rail/app-rail.mjs +1 -2
- package/dist/components/app-rail/app-rail.recipe.mjs +1 -2
- package/dist/components/app-shell/app-shell.d.mts +1 -3
- package/dist/components/app-shell/app-shell.mjs +2 -3
- package/dist/components/avatar/avatar.d.mts +4 -92
- package/dist/components/avatar/avatar.mjs +2 -3
- package/dist/components/badge/badge.d.mts +13 -66
- package/dist/components/badge/badge.mjs +1 -2
- package/dist/components/banner/banner.d.mts +3 -74
- package/dist/components/banner/banner.mjs +1 -2
- package/dist/components/button/button-split.d.mts +1 -2
- package/dist/components/button/button-split.mjs +1 -2
- package/dist/components/button/button.d.mts +3 -155
- package/dist/components/button/button.mjs +2 -3
- package/dist/components/card/card.d.mts +1 -3
- package/dist/components/card/card.mjs +1 -2
- package/dist/components/card/card.recipe.d.mts +2 -72
- package/dist/components/card/card.recipe.mjs +1 -2
- package/dist/components/checkbox/checkbox-indicator.d.mts +7 -62
- package/dist/components/checkbox/checkbox-indicator.mjs +1 -2
- package/dist/components/checkbox/checkbox.d.mts +0 -2
- package/dist/components/checkbox/checkbox.mjs +1 -2
- package/dist/components/choice-list/choice-list.d.mts +1 -2
- package/dist/components/choice-list/choice-list.mjs +3 -4
- package/dist/components/choice-list/choice-list.recipe.mjs +1 -2
- package/dist/components/code-block/code-block.d.mts +1 -3
- package/dist/components/code-block/code-block.mjs +1 -2
- package/dist/components/code-block/code-block.recipe.mjs +1 -2
- package/dist/components/combobox/combobox.d.mts +0 -2
- package/dist/components/combobox/combobox.mjs +4 -5
- package/dist/components/combobox-select/combobox-select.d.mts +1 -3
- package/dist/components/combobox-select/combobox-select.list-side.mjs +1 -2
- package/dist/components/combobox-select/combobox-select.mjs +4 -5
- package/dist/components/combobox-select/combobox-select.options.mjs +1 -2
- package/dist/components/combobox-select/combobox-select.types.d.mts +1 -2
- package/dist/components/combobox-select/index.d.mts +1 -1
- package/dist/components/comment/comment-card.d.mts +1 -3
- package/dist/components/comment/comment-card.mjs +1 -2
- package/dist/components/comment/comment-entry.d.mts +1 -3
- package/dist/components/comment/comment-entry.mjs +1 -2
- package/dist/components/comment/comment-highlight.d.mts +1 -3
- package/dist/components/comment/comment-highlight.mjs +1 -2
- package/dist/components/comment/comment-margin-layout.d.mts +1 -3
- package/dist/components/comment/comment-margin-layout.mjs +1 -2
- package/dist/components/comment/comment-margin.d.mts +1 -3
- package/dist/components/comment/comment-margin.mjs +1 -2
- package/dist/components/comment/comment-marker.d.mts +2 -4
- package/dist/components/comment/comment-marker.mjs +1 -2
- package/dist/components/comment/comment.recipe.mjs +1 -2
- package/dist/components/comment/use-comment-margin-fits.d.mts +1 -3
- package/dist/components/comment/use-comment-margin-fits.mjs +1 -2
- package/dist/components/composer/composer-attachment.recipe.mjs +1 -2
- package/dist/components/composer/composer-attachments-scroll-area.d.mts +1 -3
- package/dist/components/composer/composer-attachments-scroll-area.mjs +1 -2
- package/dist/components/composer/composer-attachments.d.mts +1 -3
- package/dist/components/composer/composer-attachments.mjs +1 -2
- package/dist/components/composer/composer-drop-overlay.d.mts +1 -3
- package/dist/components/composer/composer-drop-overlay.mjs +1 -2
- package/dist/components/composer/composer-drop-overlay.recipe.mjs +1 -2
- package/dist/components/composer/composer-root.d.mts +1 -3
- package/dist/components/composer/composer-root.mjs +1 -2
- package/dist/components/composer/composer-suggestion-list.d.mts +3 -78
- package/dist/components/composer/composer-suggestion-list.mjs +1 -2
- package/dist/components/composer/composer-toolbar-label.d.mts +1 -3
- package/dist/components/composer/composer-toolbar-label.mjs +1 -2
- package/dist/components/composer/composer.d.mts +2 -4
- package/dist/components/composer/composer.mjs +1 -2
- package/dist/components/composer/composer.recipe.mjs +2 -3
- package/dist/components/composer/sortable-composer-attachments.d.mts +1 -3
- package/dist/components/composer/sortable-composer-attachments.mjs +2 -3
- package/dist/components/composer/use-composer-suggestions.d.mts +1 -2
- package/dist/components/composer/use-composer-suggestions.mjs +1 -2
- package/dist/components/context-menu/context-menu.d.mts +2 -4
- package/dist/components/context-menu/context-menu.mjs +3 -4
- package/dist/components/conversation-panel/conversation-panel-empty-state.d.mts +1 -3
- package/dist/components/conversation-panel/conversation-panel-empty-state.mjs +1 -2
- package/dist/components/conversation-panel/conversation-panel.d.mts +1 -3
- package/dist/components/conversation-panel/conversation-panel.mjs +1 -2
- package/dist/components/conversation-panel/conversation-panel.recipe.mjs +1 -2
- package/dist/components/copyable-code/copyable-code.d.mts +3 -34
- package/dist/components/copyable-code/copyable-code.mjs +2 -3
- package/dist/components/description-list/description-list.d.mts +3 -34
- package/dist/components/description-list/description-list.mjs +2 -3
- package/dist/components/dialog/dialog-sheet-context.mjs +1 -2
- package/dist/components/dialog/dialog-sheet.d.mts +1 -3
- package/dist/components/dialog/dialog-sheet.mjs +3 -4
- package/dist/components/dialog/dialog.d.mts +2 -4
- package/dist/components/dialog/dialog.mjs +5 -6
- package/dist/components/drag/drag-announcements.d.mts +1 -3
- package/dist/components/drag/drag-announcements.mjs +1 -2
- package/dist/components/drag/drag-lift.d.mts +0 -2
- package/dist/components/drag/drag-lift.mjs +1 -2
- package/dist/components/drag/drag-lists.d.mts +1 -3
- package/dist/components/drag/drag-lists.mjs +2 -3
- package/dist/components/drag/drag-sensors.d.mts +1 -3
- package/dist/components/drag/drag-sensors.mjs +1 -2
- package/dist/components/drag/drag.recipe.d.mts +1 -3
- package/dist/components/drag/drag.recipe.mjs +1 -2
- package/dist/components/drag/drop-placeholder.d.mts +1 -3
- package/dist/components/drag/drop-placeholder.mjs +1 -2
- package/dist/components/drag/index.d.mts +3 -3
- package/dist/components/drawer/drawer.d.mts +0 -2
- package/dist/components/drawer/drawer.mjs +2 -3
- package/dist/components/drawer/drawer.recipe.mjs +1 -2
- package/dist/components/dropdown-menu/dropdown-menu.d.mts +4 -6
- package/dist/components/dropdown-menu/dropdown-menu.mjs +4 -5
- package/dist/components/ellipsis/ellipsis.d.mts +1 -3
- package/dist/components/ellipsis/ellipsis.mjs +2 -3
- package/dist/components/empty-state/empty-state.d.mts +1 -3
- package/dist/components/empty-state/empty-state.mjs +1 -2
- package/dist/components/field/field.d.mts +3 -39
- package/dist/components/field/field.mjs +1 -2
- package/dist/components/file-preview/file-preview.d.mts +1 -3
- package/dist/components/file-preview/file-preview.mjs +1 -2
- package/dist/components/file-preview/file-preview.recipe.d.mts +2 -68
- package/dist/components/file-preview/file-preview.recipe.mjs +1 -2
- package/dist/components/files/files.d.mts +1 -2
- package/dist/components/files/files.mjs +1 -2
- package/dist/components/files/files.recipe.mjs +1 -2
- package/dist/components/filter-chip/filter-chip.d.mts +2 -4
- package/dist/components/filter-chip/filter-chip.mjs +3 -4
- package/dist/components/fit-toolbar/fit-toolbar.d.mts +1 -3
- package/dist/components/fit-toolbar/fit-toolbar.mjs +5 -6
- package/dist/components/fit-toolbar/fit-toolbar.recipe.mjs +1 -2
- package/dist/components/form-section/form-section.d.mts +1 -3
- package/dist/components/form-section/form-section.mjs +1 -2
- package/dist/components/icon-tile/icon-tile.d.mts +3 -60
- package/dist/components/icon-tile/icon-tile.mjs +1 -2
- package/dist/components/inbox-item/inbox-item-leading-badge.d.mts +1 -3
- package/dist/components/inbox-item/inbox-item-leading-badge.mjs +1 -2
- package/dist/components/inbox-item/inbox-item-skeleton.d.mts +1 -2
- package/dist/components/inbox-item/inbox-item-skeleton.mjs +1 -2
- package/dist/components/inbox-item/inbox-item-skeleton.recipe.mjs +1 -2
- package/dist/components/inbox-item/inbox-item.d.mts +1 -3
- package/dist/components/inbox-item/inbox-item.mjs +3 -4
- package/dist/components/inbox-item/inbox-item.recipe.mjs +2 -3
- package/dist/components/inline-code/inline-code.d.mts +1 -3
- package/dist/components/inline-code/inline-code.mjs +1 -2
- package/dist/components/input/input.d.mts +1 -3
- package/dist/components/input/input.mjs +1 -2
- package/dist/components/input/input.recipe.mjs +1 -2
- package/dist/components/input-group/input-group.d.mts +4 -65
- package/dist/components/input-group/input-group.mjs +1 -2
- package/dist/components/kbd/kbd-keys.d.mts +1 -3
- package/dist/components/kbd/kbd-keys.mjs +1 -2
- package/dist/components/kbd/kbd-shortcut.d.mts +2 -4
- package/dist/components/kbd/kbd-shortcut.mjs +3 -4
- package/dist/components/kbd/kbd.d.mts +3 -28
- package/dist/components/kbd/kbd.mjs +2 -3
- package/dist/components/kbd-button/kbd-button.d.mts +2 -4
- package/dist/components/kbd-button/kbd-button.mjs +1 -2
- package/dist/components/label/label.d.mts +3 -30
- package/dist/components/label/label.mjs +1 -2
- package/dist/components/lightbox/lightbox.d.mts +1 -3
- package/dist/components/lightbox/lightbox.mjs +3 -4
- package/dist/components/list-row/list-row-skeleton.d.mts +1 -3
- package/dist/components/list-row/list-row-skeleton.mjs +2 -3
- package/dist/components/list-row/list-row.d.mts +2 -4
- package/dist/components/list-row/list-row.mjs +1 -2
- package/dist/components/list-row/list-row.recipe.d.mts +2 -96
- package/dist/components/list-row/list-row.recipe.mjs +1 -2
- package/dist/components/logo/raft-logo.d.mts +1 -3
- package/dist/components/logo/raft-logo.mjs +1 -2
- package/dist/components/markdown/markdown-parts.d.mts +4 -5
- package/dist/components/markdown/markdown-parts.mjs +2 -3
- package/dist/components/markdown/markdown.recipe.mjs +2 -3
- package/dist/components/message-action-card/message-action-card-content.recipe.mjs +1 -2
- package/dist/components/message-action-card/message-action-card.d.mts +3 -5
- package/dist/components/message-action-card/message-action-card.mjs +3 -4
- package/dist/components/message-action-card/message-action-card.recipe.mjs +1 -2
- package/dist/components/message-attachment/message-attachment.d.mts +1 -3
- package/dist/components/message-attachment/message-attachment.mjs +1 -2
- package/dist/components/message-attachment/message-attachment.recipe.mjs +1 -2
- package/dist/components/message-attachment/message-image-gallery-rows.d.mts +1 -3
- package/dist/components/message-attachment/message-image-gallery-rows.mjs +1 -2
- package/dist/components/message-attachment/message-image-gallery.d.mts +1 -3
- package/dist/components/message-attachment/message-image-gallery.mjs +1 -2
- package/dist/components/message-attachment/message-image-gallery.recipe.mjs +1 -2
- package/dist/components/message-attachment/message-video-preview.d.mts +1 -3
- package/dist/components/message-attachment/message-video-preview.mjs +1 -2
- package/dist/components/message-attachment/message-video-preview.recipe.mjs +1 -2
- package/dist/components/message-embed/message-embed.d.mts +1 -2
- package/dist/components/message-embed/message-embed.mjs +1 -2
- package/dist/components/message-embed/message-embed.recipe.d.mts +4 -131
- package/dist/components/message-embed/message-embed.recipe.mjs +1 -2
- package/dist/components/message-forwarded-bundle/message-forwarded-bundle.d.mts +1 -2
- package/dist/components/message-forwarded-bundle/message-forwarded-bundle.mjs +2 -3
- package/dist/components/message-forwarded-bundle/message-forwarded-bundle.recipe.mjs +1 -2
- package/dist/components/message-item/message-footer.d.mts +1 -3
- package/dist/components/message-item/message-footer.mjs +1 -2
- package/dist/components/message-item/message-footer.recipe.mjs +1 -2
- package/dist/components/message-item/message-item-content.d.mts +1 -3
- package/dist/components/message-item/message-item-content.mjs +1 -2
- package/dist/components/message-item/message-item-delegated.d.mts +1 -3
- package/dist/components/message-item/message-item-delegated.mjs +1 -2
- package/dist/components/message-item/message-item-gutter.d.mts +1 -3
- package/dist/components/message-item/message-item-gutter.mjs +1 -2
- package/dist/components/message-item/message-item-header.d.mts +1 -3
- package/dist/components/message-item/message-item-header.mjs +1 -2
- package/dist/components/message-item/message-item-label.mjs +1 -2
- package/dist/components/message-item/message-item-root.d.mts +1 -3
- package/dist/components/message-item/message-item-root.mjs +1 -2
- package/dist/components/message-item/message-item-toolbar.d.mts +1 -3
- package/dist/components/message-item/message-item-toolbar.mjs +1 -2
- package/dist/components/message-item/message-item.recipe.d.mts +3 -71
- package/dist/components/message-item/message-item.recipe.mjs +2 -3
- package/dist/components/message-item/message-multi-select.d.mts +1 -3
- package/dist/components/message-item/message-multi-select.mjs +1 -2
- package/dist/components/message-item/message-multi-select.recipe.mjs +1 -2
- package/dist/components/message-item/message-reaction.d.mts +1 -3
- package/dist/components/message-item/message-reaction.mjs +1 -2
- package/dist/components/message-item/message-reaction.recipe.mjs +1 -2
- package/dist/components/message-item/message-reference.d.mts +0 -2
- package/dist/components/message-item/message-reference.mjs +1 -2
- package/dist/components/message-item/message-reference.recipe.d.mts +1 -3
- package/dist/components/message-item/message-reference.recipe.mjs +2 -3
- package/dist/components/message-list/message-list-jump.d.mts +2 -4
- package/dist/components/message-list/message-list-jump.mjs +1 -2
- package/dist/components/message-list/message-list-markers.d.mts +1 -3
- package/dist/components/message-list/message-list-markers.mjs +1 -2
- package/dist/components/message-list/message-list.d.mts +1 -3
- package/dist/components/message-list/message-list.mjs +2 -3
- package/dist/components/message-list/message-list.recipe.mjs +1 -2
- package/dist/components/message-quoted-preview/message-quoted-preview.d.mts +1 -2
- package/dist/components/message-quoted-preview/message-quoted-preview.mjs +1 -2
- package/dist/components/message-quoted-preview/message-quoted-preview.recipe.mjs +1 -2
- package/dist/components/message-replies/message-replies.d.mts +1 -3
- package/dist/components/message-replies/message-replies.mjs +1 -2
- package/dist/components/message-replies/message-replies.recipe.mjs +1 -2
- package/dist/components/message-translation/message-translation.d.mts +1 -3
- package/dist/components/message-translation/message-translation.mjs +1 -2
- package/dist/components/message-translation/message-translation.recipe.mjs +1 -2
- package/dist/components/meter/meter.d.mts +3 -39
- package/dist/components/meter/meter.mjs +1 -2
- package/dist/components/mobile-nav/mobile-nav-server.d.mts +2 -4
- package/dist/components/mobile-nav/mobile-nav-server.mjs +4 -5
- package/dist/components/mobile-nav/mobile-nav.d.mts +1 -3
- package/dist/components/mobile-nav/mobile-nav.mjs +2 -3
- package/dist/components/notification-center/notification-center.d.mts +5 -124
- package/dist/components/notification-center/notification-center.mjs +5 -6
- package/dist/components/panel/index.d.mts +1 -1
- package/dist/components/panel/panel-action.d.mts +2 -4
- package/dist/components/panel/panel-action.mjs +2 -3
- package/dist/components/panel/panel-action.recipe.mjs +1 -2
- package/dist/components/panel/panel-header.d.mts +1 -3
- package/dist/components/panel/panel-header.mjs +2 -3
- package/dist/components/panel/panel-header.recipe.mjs +1 -2
- package/dist/components/panel/panel-notice.d.mts +1 -3
- package/dist/components/panel/panel-notice.mjs +1 -2
- package/dist/components/panel/panel-split-action.d.mts +2 -4
- package/dist/components/panel/panel-split-action.mjs +1 -2
- package/dist/components/panel/panel-split-action.recipe.mjs +1 -2
- package/dist/components/panel/panel-toggle-action.d.mts +1 -3
- package/dist/components/panel/panel-toggle-action.mjs +1 -2
- package/dist/components/panel/panel.d.mts +1 -3
- package/dist/components/panel/panel.mjs +1 -2
- package/dist/components/panel/panel.recipe.mjs +1 -2
- package/dist/components/picker-trigger-button/picker-trigger-button.d.mts +2 -4
- package/dist/components/picker-trigger-button/picker-trigger-button.mjs +2 -3
- package/dist/components/popover/popover.d.mts +0 -2
- package/dist/components/popover/popover.mjs +3 -4
- package/dist/components/preview-card/preview-card.d.mts +0 -2
- package/dist/components/preview-card/preview-card.mjs +4 -5
- package/dist/components/profile-panel/profile-panel.d.mts +1 -3
- package/dist/components/profile-panel/profile-panel.mjs +2 -3
- package/dist/components/profile-panel/profile-panel.recipe.mjs +1 -2
- package/dist/components/progress/progress.d.mts +3 -71
- package/dist/components/progress/progress.mjs +1 -2
- package/dist/components/pull-to-refresh/pull-to-refresh-gesture.d.mts +1 -3
- package/dist/components/pull-to-refresh/pull-to-refresh-gesture.mjs +1 -2
- package/dist/components/pull-to-refresh/pull-to-refresh-indicator.d.mts +1 -3
- package/dist/components/pull-to-refresh/pull-to-refresh-indicator.mjs +1 -2
- package/dist/components/pull-to-refresh/pull-to-refresh-material-progress.mjs +1 -2
- package/dist/components/pull-to-refresh/use-pull-to-refresh.d.mts +1 -3
- package/dist/components/pull-to-refresh/use-pull-to-refresh.mjs +1 -2
- package/dist/components/radio-group/radio-group.d.mts +0 -2
- package/dist/components/radio-group/radio-group.mjs +2 -3
- package/dist/components/resizable/resizable.d.mts +1 -3
- package/dist/components/resizable/resizable.mjs +1 -2
- package/dist/components/resizable/resizable.recipe.mjs +1 -2
- package/dist/components/save-status/save-status.d.mts +1 -3
- package/dist/components/save-status/save-status.mjs +1 -2
- package/dist/components/scroll-area/class-names.mjs +1 -2
- package/dist/components/scroll-area/gutters-binding.mjs +1 -2
- package/dist/components/scroll-area/index.d.mts +1 -1
- package/dist/components/scroll-area/scroll-area-gutters.d.mts +1 -3
- package/dist/components/scroll-area/scroll-area-gutters.mjs +1 -2
- package/dist/components/scroll-area/scroll-area-textarea.d.mts +1 -3
- package/dist/components/scroll-area/scroll-area-textarea.mjs +1 -2
- package/dist/components/scroll-area/scroll-area.d.mts +1 -3
- package/dist/components/scroll-area/scroll-area.mjs +1 -2
- package/dist/components/scroll-area/scroll-geometry.mjs +1 -2
- package/dist/components/scroll-area/scroll-to-element.mjs +1 -2
- package/dist/components/scroll-area/types.d.mts +1 -2
- package/dist/components/scroll-area/use-rail-pointer.mjs +1 -2
- package/dist/components/scroll-area/use-scroll-area-container.d.mts +1 -3
- package/dist/components/scroll-area/use-scroll-area-container.mjs +1 -2
- package/dist/components/scroll-area/use-scrollbars.mjs +1 -2
- package/dist/components/search/search-entity.d.mts +1 -2
- package/dist/components/search/search-entity.mjs +1 -2
- package/dist/components/search/search-entity.recipe.mjs +2 -3
- package/dist/components/search/search-message.d.mts +1 -2
- package/dist/components/search/search-message.mjs +1 -2
- package/dist/components/search/search-message.recipe.mjs +3 -4
- package/dist/components/search/search-thread.d.mts +1 -3
- package/dist/components/search/search-thread.mjs +1 -2
- package/dist/components/search/search-thread.recipe.mjs +1 -2
- package/dist/components/search/search-trigger.d.mts +1 -3
- package/dist/components/search/search-trigger.mjs +1 -2
- package/dist/components/search/search.d.mts +1 -3
- package/dist/components/search/search.mjs +2 -3
- package/dist/components/search/search.recipe.mjs +1 -2
- package/dist/components/segmented-control/segmented-control.d.mts +1 -3
- package/dist/components/segmented-control/segmented-control.mjs +3 -4
- package/dist/components/select/select.d.mts +1 -3
- package/dist/components/select/select.mjs +3 -4
- package/dist/components/selection-toolbar/selection-toolbar.d.mts +1 -3
- package/dist/components/selection-toolbar/selection-toolbar.mjs +2 -3
- package/dist/components/selection-toolbar/selection-toolbar.recipe.mjs +1 -2
- package/dist/components/separator/separator.d.mts +0 -2
- package/dist/components/separator/separator.mjs +1 -2
- package/dist/components/sidebar/sidebar-item.d.mts +3 -5
- package/dist/components/sidebar/sidebar-item.mjs +2 -3
- package/dist/components/sidebar/sidebar-item.recipe.mjs +2 -3
- package/dist/components/sidebar/sidebar-menu.d.mts +1 -3
- package/dist/components/sidebar/sidebar-menu.mjs +1 -2
- package/dist/components/sidebar/sidebar-menu.recipe.mjs +1 -2
- package/dist/components/sidebar/sidebar-section.d.mts +1 -3
- package/dist/components/sidebar/sidebar-section.mjs +1 -2
- package/dist/components/sidebar/sidebar-section.recipe.mjs +1 -2
- package/dist/components/sidebar/sidebar.d.mts +1 -3
- package/dist/components/sidebar/sidebar.mjs +2 -3
- package/dist/components/sidebar/sidebar.recipe.mjs +1 -2
- package/dist/components/skeleton/skeleton.d.mts +3 -32
- package/dist/components/skeleton/skeleton.mjs +1 -2
- package/dist/components/spinner/spinner.d.mts +3 -50
- package/dist/components/spinner/spinner.mjs +1 -2
- package/dist/components/status/status.d.mts +4 -91
- package/dist/components/status/status.mjs +2 -3
- package/dist/components/steps/otter-animation-visibility.mjs +1 -2
- package/dist/components/steps/otter-indicator.d.mts +1 -3
- package/dist/components/steps/otter-indicator.mjs +1 -2
- package/dist/components/steps/steps.d.mts +1 -3
- package/dist/components/steps/steps.mjs +1 -2
- package/dist/components/switch/switch.d.mts +0 -2
- package/dist/components/switch/switch.mjs +1 -2
- package/dist/components/system-message/system-message.d.mts +1 -3
- package/dist/components/system-message/system-message.mjs +1 -2
- package/dist/components/system-message/system-message.recipe.mjs +1 -2
- package/dist/components/table/table.d.mts +0 -2
- package/dist/components/table/table.mjs +1 -2
- package/dist/components/table/table.recipe.mjs +1 -2
- package/dist/components/tabs/tabs.d.mts +4 -88
- package/dist/components/tabs/tabs.mjs +5 -6
- package/dist/components/task-board/task-board-column.recipe.mjs +1 -2
- package/dist/components/task-board/task-board.d.mts +1 -3
- package/dist/components/task-board/task-board.mjs +1 -2
- package/dist/components/task-card/task-card-status.recipe.mjs +1 -2
- package/dist/components/task-card/task-card.d.mts +1 -3
- package/dist/components/task-card/task-card.mjs +2 -3
- package/dist/components/task-card/task-card.recipe.mjs +1 -2
- package/dist/components/task-completion-control/task-completion-control.d.mts +1 -2
- package/dist/components/task-completion-control/task-completion-control.mjs +1 -2
- package/dist/components/task-dnd/task-dnd.d.mts +1 -3
- package/dist/components/task-dnd/task-dnd.mjs +3 -4
- package/dist/components/task-dnd/task-dnd.recipe.mjs +1 -2
- package/dist/components/task-list/task-list-section.recipe.mjs +1 -2
- package/dist/components/task-list/task-list.d.mts +1 -3
- package/dist/components/task-list/task-list.mjs +1 -2
- package/dist/components/tasks/task-chip.d.mts +1 -3
- package/dist/components/tasks/task-chip.mjs +2 -3
- package/dist/components/tasks/task-loading.d.mts +1 -3
- package/dist/components/tasks/task-loading.mjs +1 -2
- package/dist/components/tasks/task-loading.recipe.mjs +1 -2
- package/dist/components/tasks/task-status-badge.d.mts +2 -3
- package/dist/components/tasks/task-status-badge.mjs +2 -3
- package/dist/components/tasks/task-status-icon.d.mts +1 -3
- package/dist/components/tasks/task-status-icon.mjs +1 -2
- package/dist/components/tasks/task-status.recipe.d.mts +16 -54
- package/dist/components/tasks/task-status.recipe.mjs +1 -2
- package/dist/components/tasks/tasks-panel.d.mts +1 -3
- package/dist/components/tasks/tasks-panel.mjs +1 -2
- package/dist/components/tasks/tasks-panel.recipe.mjs +1 -2
- package/dist/components/text/text.d.mts +7 -120
- package/dist/components/text/text.mjs +1 -2
- package/dist/components/text-link/text-link.d.mts +3 -15
- package/dist/components/text-link/text-link.mjs +1 -2
- package/dist/components/text-selection-toolbar/text-selection-anchor.d.mts +1 -3
- package/dist/components/text-selection-toolbar/text-selection-anchor.mjs +1 -2
- package/dist/components/text-selection-toolbar/text-selection-toolbar.d.mts +1 -3
- package/dist/components/text-selection-toolbar/text-selection-toolbar.mjs +1 -2
- package/dist/components/text-selection-toolbar/text-selection-toolbar.recipe.mjs +1 -2
- package/dist/components/textarea/textarea.d.mts +1 -3
- package/dist/components/textarea/textarea.mjs +1 -2
- package/dist/components/thread-panel/thread-panel.d.mts +1 -3
- package/dist/components/thread-panel/thread-panel.mjs +1 -2
- package/dist/components/thread-panel/thread-panel.recipe.mjs +1 -2
- package/dist/components/timeline/timeline.d.mts +1 -3
- package/dist/components/timeline/timeline.mjs +1 -2
- package/dist/components/toast/toast.d.mts +4 -99
- package/dist/components/toast/toast.mjs +3 -4
- package/dist/components/toggle-group/toggle-group.d.mts +0 -2
- package/dist/components/toggle-group/toggle-group.mjs +2 -3
- package/dist/components/tooltip/tooltip.d.mts +0 -2
- package/dist/components/tooltip/tooltip.mjs +2 -3
- package/dist/components/virtual-list/ItemColumns.mjs +1 -2
- package/dist/components/virtual-list/VirtualList.d.mts +1 -3
- package/dist/components/virtual-list/VirtualList.mjs +4 -5
- package/dist/components/virtual-list/VirtualListContext.mjs +1 -2
- package/dist/components/virtual-list/hooks/use-event-callback.mjs +1 -2
- package/dist/components/virtual-list/hooks/use-ios-momentum-compensation.mjs +1 -2
- package/dist/components/virtual-list/hooks/use-keyboard-scroll.mjs +1 -2
- package/dist/components/virtual-list/hooks/use-latest-ref.mjs +1 -2
- package/dist/components/virtual-list/hooks/use-layout-effect-with-previous.mjs +1 -2
- package/dist/components/virtual-list/hooks/use-memo-with-previous.mjs +1 -2
- package/dist/components/virtual-list/hooks/use-non-passive-wheel.mjs +1 -2
- package/dist/components/virtual-list/hooks/use-non-virtual-content-resize.mjs +1 -2
- package/dist/components/virtual-list/hooks/use-scroll-anchor.mjs +1 -2
- package/dist/components/virtual-list/index.d.mts +2 -2
- package/dist/components/virtual-list/public-types.d.mts +7 -9
- package/dist/components/virtual-list/resize-observer/ResizeObserverWrapper.d.mts +1 -3
- package/dist/components/virtual-list/resize-observer/ResizeObserverWrapper.mjs +2 -3
- package/dist/components/virtual-list/resize-observer/resize-observer-delegate.d.mts +1 -3
- package/dist/components/virtual-list/resize-observer/resize-observer-delegate.mjs +1 -2
- package/dist/components/virtual-list/utils/align.mjs +1 -2
- package/dist/components/virtual-list/utils/constants.mjs +1 -2
- package/dist/components/virtual-list/utils/fenwick-tree.mjs +1 -2
- package/dist/components/virtual-list/utils/items-anchor.mjs +1 -2
- package/dist/components/virtual-list/utils/measure.mjs +1 -2
- package/dist/components/virtual-list/utils/platform.mjs +0 -1
- package/dist/components/virtual-list/utils/range.mjs +1 -2
- package/dist/components/virtual-list/utils/size-cache.mjs +1 -2
- package/dist/components/web-top-bar/web-top-bar.d.mts +1 -3
- package/dist/components/web-top-bar/web-top-bar.mjs +1 -2
- package/dist/components/web-top-bar/web-top-bar.recipe.mjs +1 -2
- package/dist/components/workspace-button/workspace-button.d.mts +1 -3
- package/dist/components/workspace-button/workspace-button.mjs +1 -2
- package/dist/index-exports.d.mts +60 -64
- package/dist/index-exports.mjs +34 -37
- package/dist/index.d.mts +3 -6
- package/dist/lib/chip-remove.mjs +1 -2
- package/dist/lib/data-attributes.d.mts +1 -3
- package/dist/lib/decision-width.mjs +1 -2
- package/dist/lib/default-native-button.mjs +1 -2
- package/dist/lib/desktop-media.mjs +1 -2
- package/dist/lib/drag-escape.mjs +1 -2
- package/dist/lib/frame-insets.mjs +1 -2
- package/dist/lib/head-edges.mjs +1 -2
- package/dist/lib/hud-text-action.mjs +1 -2
- package/dist/lib/inline-chip.mjs +1 -2
- package/dist/lib/inline-part.mjs +1 -2
- package/dist/lib/input-modality.d.mts +1 -3
- package/dist/lib/input-modality.mjs +1 -2
- package/dist/lib/inside-overlay.d.mts +11 -2
- package/dist/lib/inside-overlay.mjs +17 -5
- package/dist/lib/label-value-fit.mjs +1 -2
- package/dist/lib/laid-out-children.mjs +1 -2
- package/dist/lib/list-cell.mjs +1 -2
- package/dist/lib/located.d.mts +1 -3
- package/dist/lib/located.mjs +1 -2
- package/dist/lib/overlay-depth.d.mts +1 -3
- package/dist/lib/overlay-depth.mjs +1 -2
- package/dist/lib/phone-media.mjs +1 -2
- package/dist/lib/presence.d.mts +1 -3
- package/dist/lib/presence.mjs +1 -2
- package/dist/lib/row-tone.d.mts +1 -3
- package/dist/lib/search-hit.mjs +1 -2
- package/dist/lib/stacked-actions.mjs +1 -2
- package/dist/lib/styled-props.d.mts +1 -3
- package/dist/lib/tap-activation.mjs +0 -1
- package/dist/lib/theme/theme-context.d.mts +1 -3
- package/dist/lib/theme/theme-context.mjs +1 -2
- package/dist/lib/theme/theme-provider.d.mts +1 -3
- package/dist/lib/theme/theme-provider.mjs +2 -3
- package/dist/lib/theme/theme-scope.mjs +1 -2
- package/dist/lib/theme/use-theme.d.mts +1 -3
- package/dist/lib/theme/use-theme.mjs +1 -2
- package/dist/lib/touch-drag.d.mts +1 -3
- package/dist/lib/touch-drag.mjs +1 -2
- package/dist/lib/truncation.d.mts +1 -3
- package/dist/lib/truncation.mjs +1 -2
- package/dist/lib/tv.mjs +1 -2
- package/dist/lib/use-attach-count.mjs +1 -2
- package/dist/lib/use-copy-to-clipboard.mjs +1 -2
- package/dist/lib/use-merged-ref.mjs +1 -2
- package/dist/lib/use-mobile-viewport.mjs +1 -2
- package/dist/lib/use-overflow-title.mjs +1 -2
- package/dist/lib/use-platform.d.mts +1 -3
- package/dist/lib/use-platform.mjs +1 -2
- package/dist/lib/use-scrollbar-size.d.mts +1 -3
- package/dist/lib/use-scrollbar-size.mjs +1 -2
- package/dist/lib/use-soft-keyboard.mjs +1 -2
- package/dist/lib/use-truncated.d.mts +1 -3
- package/dist/lib/use-truncated.mjs +1 -2
- package/dist/lib/without-children.d.mts +1 -3
- package/dist/lint/no-raw-z-index.mjs +1 -2
- package/dist/lint/prefer-scroll-area.d.mts +1 -3
- package/dist/lint/prefer-scroll-area.mjs +1 -2
- package/dist/lint.d.mts +0 -2
- package/dist/lint.mjs +2 -3
- package/dist/styles.css +3 -18
- package/dist/wip-exports.d.mts +32 -32
- package/dist/wip-exports.mjs +21 -21
- package/package.json +24 -21
- package/dist/components/icons/action-icons.d.mts +0 -36
- package/dist/components/icons/action-icons.mjs +0 -360
- package/dist/components/icons/conversation-icons.d.mts +0 -16
- package/dist/components/icons/conversation-icons.mjs +0 -112
- package/dist/components/icons/index.d.mts +0 -4
- package/dist/components/icons/object-icons.d.mts +0 -9
- package/dist/components/icons/object-icons.mjs +0 -30
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/lib/hud-text-action.ts
|
|
2
2
|
const hudTextAction = [
|
|
3
3
|
"font-sans text-callout font-bold text-foreground-on-hud",
|
|
4
4
|
"decoration-[1.5px] underline-offset-[3px] not-disabled:not-aria-disabled:hover:underline",
|
|
@@ -6,5 +6,4 @@ const hudTextAction = [
|
|
|
6
6
|
"active:after:bg-foreground-on-hud/15",
|
|
7
7
|
"outline-1 outline-offset-2 outline-transparent focus-visible:keyboard:outline-2 focus-visible:keyboard:outline-foreground-on-hud"
|
|
8
8
|
];
|
|
9
|
-
//#endregion
|
|
10
9
|
export { hudTextAction };
|
package/dist/lib/inline-chip.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/lib/inline-chip.ts
|
|
2
2
|
/**
|
|
3
3
|
* The one box every chip in message text shares: a reference chip (any
|
|
4
4
|
* variant, loading or unavailable too), the yellow sticker of a mention of the
|
|
@@ -26,5 +26,4 @@ const inlineChip = [
|
|
|
26
26
|
"[font-size:0.875em] leading-[var(--chip-line-height,calc(var(--text-body--line-height)-2px))] font-semibold",
|
|
27
27
|
"rounded-sticker"
|
|
28
28
|
];
|
|
29
|
-
//#endregion
|
|
30
29
|
export { inlineChip };
|
package/dist/lib/inline-part.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/lib/inline-part.ts
|
|
2
2
|
const INLINE_PART = Symbol.for("@botiverse/raft-ui/inline-part");
|
|
3
3
|
/** Mark a component as an inline part. */
|
|
4
4
|
function markInlinePart(component) {
|
|
@@ -9,5 +9,4 @@ function markInlinePart(component) {
|
|
|
9
9
|
function isInlinePart(type) {
|
|
10
10
|
return (typeof type === "function" || typeof type === "object" && type !== null) && INLINE_PART in type;
|
|
11
11
|
}
|
|
12
|
-
//#endregion
|
|
13
12
|
export { isInlinePart, markInlinePart };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/lib/input-modality.d.ts
|
|
2
1
|
/**
|
|
3
2
|
* Input modality: whether the person last moved through the page with a
|
|
4
3
|
* pointer, with the keyboard, or by a virtual cursor (a screen reader). raft-ui shows a focus indicator only after
|
|
@@ -32,5 +31,4 @@ export type InputModality = "pointer" | "keyboard" | "virtual";
|
|
|
32
31
|
* listeners. Returns a function that undoes this installation; the listeners
|
|
33
32
|
* and the attribute go once every installation is undone.
|
|
34
33
|
*/
|
|
35
|
-
export declare function installInputModality(doc?: Document): () => void;
|
|
36
|
-
//#endregion
|
|
34
|
+
export declare function installInputModality(doc?: Document): () => void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/lib/input-modality.ts
|
|
2
2
|
const INPUT_MODALITY_ATTRIBUTE = "data-input-modality";
|
|
3
3
|
/** Keys that move focus wherever focus is. */
|
|
4
4
|
const NAVIGATION_KEYS = /* @__PURE__ */ new Set(["Tab", "F6"]);
|
|
@@ -182,5 +182,4 @@ function installInputModality(doc) {
|
|
|
182
182
|
}
|
|
183
183
|
};
|
|
184
184
|
}
|
|
185
|
-
//#endregion
|
|
186
185
|
export { installInputModality };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/lib/inside-overlay.d.ts
|
|
2
1
|
/**
|
|
3
2
|
* Whether `node` is inside a raft-ui overlay: a popover, menu, select list,
|
|
4
3
|
* tooltip, preview card, dialog, drawer, lightbox or toast, rendered through
|
|
@@ -17,4 +16,14 @@
|
|
|
17
16
|
* (`createPortal`) or `DragLift`'s copy is not an overlay.
|
|
18
17
|
*/
|
|
19
18
|
export declare function isInsideOverlay(node: Node | null): boolean;
|
|
20
|
-
|
|
19
|
+
/**
|
|
20
|
+
* The portal container of the innermost raft-ui overlay `node` is inside, or
|
|
21
|
+
* `null` when it is in none (and for `null`). For a handler that needs the
|
|
22
|
+
* overlay itself, not only whether there is one: for example, whether a press
|
|
23
|
+
* in an overlay is in the same overlay as a region the page draws in it
|
|
24
|
+
* (`closestOverlay(target)?.contains(region)`). An overlay opened from another
|
|
25
|
+
* is portaled into that one's container, so for a node in it this is the inner
|
|
26
|
+
* one's container, which the outer one's contains. A text node counts by its
|
|
27
|
+
* parent element.
|
|
28
|
+
*/
|
|
29
|
+
export declare function closestOverlay(node: Node | null): Element | null;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/lib/inside-overlay.ts
|
|
2
2
|
/**
|
|
3
3
|
* The attribute on the portal container of every raft-ui overlay: Popover,
|
|
4
4
|
* DropdownMenu, ContextMenu, Select, Combobox, ComboboxSelect, Tooltip,
|
|
@@ -26,8 +26,20 @@ const OVERLAY_SELECTOR = `[${OVERLAY_PORTAL_ATTRIBUTE}]`;
|
|
|
26
26
|
* (`createPortal`) or `DragLift`'s copy is not an overlay.
|
|
27
27
|
*/
|
|
28
28
|
function isInsideOverlay(node) {
|
|
29
|
-
|
|
30
|
-
return (node.nodeType === 1 ? node : node.parentElement)?.closest(OVERLAY_SELECTOR) != null;
|
|
29
|
+
return closestOverlay(node) !== null;
|
|
31
30
|
}
|
|
32
|
-
|
|
33
|
-
|
|
31
|
+
/**
|
|
32
|
+
* The portal container of the innermost raft-ui overlay `node` is inside, or
|
|
33
|
+
* `null` when it is in none (and for `null`). For a handler that needs the
|
|
34
|
+
* overlay itself, not only whether there is one: for example, whether a press
|
|
35
|
+
* in an overlay is in the same overlay as a region the page draws in it
|
|
36
|
+
* (`closestOverlay(target)?.contains(region)`). An overlay opened from another
|
|
37
|
+
* is portaled into that one's container, so for a node in it this is the inner
|
|
38
|
+
* one's container, which the outer one's contains. A text node counts by its
|
|
39
|
+
* parent element.
|
|
40
|
+
*/
|
|
41
|
+
function closestOverlay(node) {
|
|
42
|
+
if (!node) return null;
|
|
43
|
+
return (node.nodeType === 1 ? node : node.parentElement)?.closest(OVERLAY_SELECTOR) ?? null;
|
|
44
|
+
}
|
|
45
|
+
export { OVERLAY_PORTAL_ATTRIBUTE, closestOverlay, isInsideOverlay };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useLayoutEffect } from "react";
|
|
2
|
-
|
|
2
|
+
// src/lib/label-value-fit.ts
|
|
3
3
|
/** The narrowest the label column gets: `minmax(88px, max-content)` in both lists. */
|
|
4
4
|
const minLabelColumn = 88;
|
|
5
5
|
/**
|
|
@@ -140,5 +140,4 @@ function useLabelValueFit(list, enabled, parts) {
|
|
|
140
140
|
value
|
|
141
141
|
]);
|
|
142
142
|
}
|
|
143
|
-
//#endregion
|
|
144
143
|
export { labelsGoAbove, useLabelValueFit };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/lib/laid-out-children.ts
|
|
2
2
|
/**
|
|
3
3
|
* The boxes a row lays out (design/patterns/responsive.md#switch-on-the-regions-width,
|
|
4
4
|
* "Measure only what is laid out in the row"): its children, looking through
|
|
@@ -28,5 +28,4 @@ function laidOutChildren(element) {
|
|
|
28
28
|
return width === 0 && height === 0 ? [] : [child];
|
|
29
29
|
});
|
|
30
30
|
}
|
|
31
|
-
//#endregion
|
|
32
31
|
export { laidOutChildren };
|
package/dist/lib/list-cell.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/lib/list-cell.ts
|
|
2
2
|
const listCell = [
|
|
3
3
|
"list-cell relative isolate bg-transparent shadow-none outline-none",
|
|
4
4
|
"[--cell-inset-x:8px] [--cell-pad-x:12px] [--cell-radius:var(--radius-control)]",
|
|
@@ -18,5 +18,4 @@ const listCellStates = [
|
|
|
18
18
|
"not-data-active:not-data-selected:has-data-popup-open:before:bg-fill-cell-hover"
|
|
19
19
|
];
|
|
20
20
|
const listCellFocus = ["focus-visible:keyboard:before:inset-ring-2 focus-visible:keyboard:before:inset-ring-foreground"];
|
|
21
|
-
//#endregion
|
|
22
21
|
export { listCell, listCellFocus, listCellStates };
|
package/dist/lib/located.d.mts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/lib/located.d.ts
|
|
2
1
|
/**
|
|
3
2
|
* How long the located highlight lasts: `info-soft` at once, held 1.2s, faded
|
|
4
3
|
* out by 2s (design/foundations/states.md#located). styles.css runs the
|
|
@@ -21,5 +20,4 @@ export declare const LOCATED_MS = 2000;
|
|
|
21
20
|
* hover comes back. Re-renders with the same request change nothing.
|
|
22
21
|
*/
|
|
23
22
|
export type LocatedRequest = string | number | null | undefined;
|
|
24
|
-
export declare function useLocated(request: LocatedRequest): boolean;
|
|
25
|
-
//#endregion
|
|
23
|
+
export declare function useLocated(request: LocatedRequest): boolean;
|
package/dist/lib/located.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useEffect, useState } from "react";
|
|
2
|
-
|
|
2
|
+
// src/lib/located.ts
|
|
3
3
|
/**
|
|
4
4
|
* How long the located highlight lasts: `info-soft` at once, held 1.2s, faded
|
|
5
5
|
* out by 2s (design/foundations/states.md#located). styles.css runs the
|
|
@@ -24,5 +24,4 @@ function useLocated(request) {
|
|
|
24
24
|
}, [request]);
|
|
25
25
|
return request != null && on === request;
|
|
26
26
|
}
|
|
27
|
-
//#endregion
|
|
28
27
|
export { LOCATED_MS, useLocated };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { ReactNode } from "react";
|
|
2
|
-
//#region src/lib/overlay-depth.d.ts
|
|
3
2
|
/**
|
|
4
3
|
* A modal surface: a centred dialog (Dialog, AlertDialog, or an app's own
|
|
5
4
|
* modal) or a sheet (Drawer).
|
|
@@ -38,5 +37,4 @@ export declare function OverlayLayerProvider({ kind, modal, children }: OverlayL
|
|
|
38
37
|
* tree this one is rendered in, portals included; one opened from outside
|
|
39
38
|
* that tree is not stacked on it here.
|
|
40
39
|
*/
|
|
41
|
-
export declare function useParentOverlayKind(): OverlayLayerKind | null;
|
|
42
|
-
//#endregion
|
|
40
|
+
export declare function useParentOverlayKind(): OverlayLayerKind | null;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createContext, useContext, useMemo } from "react";
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
|
-
|
|
3
|
+
// src/lib/overlay-depth.tsx
|
|
4
4
|
const OverlayStackContext = createContext([]);
|
|
5
5
|
/**
|
|
6
6
|
* Tells everything under it that a modal surface is open, so a raft-ui
|
|
@@ -55,5 +55,4 @@ function withOverlayLayer(kind, modal, children) {
|
|
|
55
55
|
children
|
|
56
56
|
});
|
|
57
57
|
}
|
|
58
|
-
//#endregion
|
|
59
58
|
export { OverlayLayerProvider, useParentOverlayKind, withOverlayLayer };
|
package/dist/lib/phone-media.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useSyncExternalStore } from "react";
|
|
2
|
-
|
|
2
|
+
// src/lib/phone-media.ts
|
|
3
3
|
/**
|
|
4
4
|
* A phone: a touch screen narrower than the desktop layout. The complement, on
|
|
5
5
|
* both axes, of the desktop query `(width >= 48rem) and (pointer: fine)`
|
|
@@ -20,5 +20,4 @@ function getSnapshot() {
|
|
|
20
20
|
function usePhoneMedia() {
|
|
21
21
|
return useSyncExternalStore(subscribe, getSnapshot, () => false);
|
|
22
22
|
}
|
|
23
|
-
//#endregion
|
|
24
23
|
export { PHONE_MEDIA_QUERY, usePhoneMedia };
|
package/dist/lib/presence.d.mts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/lib/presence.d.ts
|
|
2
1
|
/**
|
|
3
2
|
* The five status lights of the design system. Each colour is a fixed
|
|
4
3
|
* meaning: online green, busy (an agent at work) yellow, error orange,
|
|
@@ -12,5 +11,4 @@ export declare const PRESENCE_COLOR: {
|
|
|
12
11
|
readonly offline: "[--status-color:var(--presence-offline)]";
|
|
13
12
|
readonly external: "[--status-color:var(--presence-external)]";
|
|
14
13
|
};
|
|
15
|
-
export type Presence = keyof typeof PRESENCE_COLOR;
|
|
16
|
-
//#endregion
|
|
14
|
+
export type Presence = keyof typeof PRESENCE_COLOR;
|
package/dist/lib/presence.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/lib/presence.ts
|
|
2
2
|
/**
|
|
3
3
|
* The five status lights of the design system. Each colour is a fixed
|
|
4
4
|
* meaning: online green, busy (an agent at work) yellow, error orange,
|
|
@@ -12,5 +12,4 @@ const PRESENCE_COLOR = {
|
|
|
12
12
|
offline: "[--status-color:var(--presence-offline)]",
|
|
13
13
|
external: "[--status-color:var(--presence-external)]"
|
|
14
14
|
};
|
|
15
|
-
//#endregion
|
|
16
15
|
export { PRESENCE_COLOR };
|
package/dist/lib/row-tone.d.mts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/lib/row-tone.d.ts
|
|
2
1
|
/**
|
|
3
2
|
* What a place in a list is to you, shared by every row that lists places
|
|
4
3
|
* (ListRow, SidebarItem): something waits for you (`unread`), you muted it
|
|
@@ -11,5 +10,4 @@ export type RowTone = "default" | "unread" | "muted" | "away";
|
|
|
11
10
|
* undone (`danger`: red, Delete channel). The same names and meanings as
|
|
12
11
|
* Button's `warning` and `danger` (design/foundations/color.md#meanings-of-color).
|
|
13
12
|
*/
|
|
14
|
-
export type RiskTone = "warning" | "danger";
|
|
15
|
-
//#endregion
|
|
13
|
+
export type RiskTone = "warning" | "danger";
|
package/dist/lib/search-hit.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/lib/search-hit.ts
|
|
2
2
|
/**
|
|
3
3
|
* The DS search hit: what you looked for sits on a `you` fill, yellow in every
|
|
4
4
|
* theme, with ink type in the surrounding font and weight. No edge and no bold
|
|
@@ -14,5 +14,4 @@ const searchHit = [
|
|
|
14
14
|
"rounded-sticker bg-you px-[2px] py-px box-decoration-clone",
|
|
15
15
|
"text-sticker-ink"
|
|
16
16
|
];
|
|
17
|
-
//#endregion
|
|
18
17
|
export { searchHit };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { laidOutChildren } from "./laid-out-children.mjs";
|
|
2
2
|
import { useCallback, useLayoutEffect, useState } from "react";
|
|
3
|
-
|
|
3
|
+
// src/lib/stacked-actions.ts
|
|
4
4
|
/**
|
|
5
5
|
* The row of buttons while `data-stacked` is set: a full-width column. A
|
|
6
6
|
* button alone in a wrapper (a tooltip's trigger) fills the width too.
|
|
@@ -111,5 +111,4 @@ function useStackedActions(ref, inParent = false) {
|
|
|
111
111
|
}, [row, inParent]);
|
|
112
112
|
return [stacked, callbackRef];
|
|
113
113
|
}
|
|
114
|
-
//#endregion
|
|
115
114
|
export { stackedActions, useStackedActions };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { CSSProperties } from "react";
|
|
2
|
-
//#region src/lib/styled-props.d.ts
|
|
3
2
|
/**
|
|
4
3
|
* Base UI components type `className` as `string | ((state) => string)`, but our
|
|
5
4
|
* tv() recipes only accept a plain string. `StyledProps` narrows a Base UI
|
|
@@ -11,5 +10,4 @@ import { CSSProperties } from "react";
|
|
|
11
10
|
export type StyledProps<P> = Omit<P, "className" | "style"> & {
|
|
12
11
|
className?: string;
|
|
13
12
|
style?: CSSProperties;
|
|
14
|
-
};
|
|
15
|
-
//#endregion
|
|
13
|
+
};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/lib/theme/theme-context.d.ts
|
|
2
1
|
/** Colour mode. Raft is the only visual family; "system" follows the OS. */
|
|
3
2
|
export type ThemeMode = "light" | "dark" | "system";
|
|
4
3
|
export type ResolvedThemeMode = Exclude<ThemeMode, "system">;
|
|
@@ -6,5 +5,4 @@ export type ThemeState = {
|
|
|
6
5
|
mode: ThemeMode;
|
|
7
6
|
resolvedMode: ResolvedThemeMode;
|
|
8
7
|
setMode: (mode: ThemeMode) => void;
|
|
9
|
-
};
|
|
10
|
-
//#endregion
|
|
8
|
+
};
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { createContext } from "react";
|
|
2
|
-
|
|
2
|
+
// src/lib/theme/theme-context.ts
|
|
3
3
|
const ThemeStateContext = createContext({
|
|
4
4
|
mode: "light",
|
|
5
5
|
resolvedMode: "light",
|
|
6
6
|
setMode: () => void 0
|
|
7
7
|
});
|
|
8
|
-
//#endregion
|
|
9
8
|
export { ThemeStateContext };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { ThemeMode } from "./theme-context.mjs";
|
|
2
2
|
import { ReactNode } from "react";
|
|
3
|
-
//#region src/lib/theme/theme-provider.d.ts
|
|
4
3
|
export interface ThemeProviderProps {
|
|
5
4
|
/** Controlled colour mode. */
|
|
6
5
|
mode?: ThemeMode;
|
|
@@ -19,5 +18,4 @@ export interface ThemeProviderProps {
|
|
|
19
18
|
syncDom?: boolean;
|
|
20
19
|
children: ReactNode;
|
|
21
20
|
}
|
|
22
|
-
export declare function ThemeProvider({ mode, defaultMode, onModeChange, storageKey, syncDom, children }: ThemeProviderProps): import("react").JSX.Element;
|
|
23
|
-
//#endregion
|
|
21
|
+
export declare function ThemeProvider({ mode, defaultMode, onModeChange, storageKey, syncDom, children }: ThemeProviderProps): import("react").JSX.Element;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { ThemeStateContext } from "./theme-context.mjs";
|
|
3
2
|
import { installInputModality } from "../input-modality.mjs";
|
|
3
|
+
import { ThemeStateContext } from "./theme-context.mjs";
|
|
4
4
|
import { useCallback, useEffect, useMemo, useState, useSyncExternalStore } from "react";
|
|
5
5
|
import { jsx } from "react/jsx-runtime";
|
|
6
|
-
|
|
6
|
+
// src/lib/theme/theme-provider.tsx
|
|
7
7
|
function readStoredMode(storageKey, fallback) {
|
|
8
8
|
if (typeof window === "undefined" || !storageKey) return fallback;
|
|
9
9
|
const stored = window.localStorage.getItem(storageKey);
|
|
@@ -57,5 +57,4 @@ function ThemeProvider({ mode, defaultMode = "light", onModeChange, storageKey,
|
|
|
57
57
|
children
|
|
58
58
|
});
|
|
59
59
|
}
|
|
60
|
-
//#endregion
|
|
61
60
|
export { ThemeProvider };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { cn } from "../../cn.mjs";
|
|
2
2
|
import { useTheme } from "./use-theme.mjs";
|
|
3
|
-
|
|
3
|
+
// src/lib/theme/theme-scope.ts
|
|
4
4
|
/**
|
|
5
5
|
* Carry the provider's resolved mode (`light` / `dark`) onto content that
|
|
6
6
|
* renders outside its subtree (a portal), so a dark island's popup stays dark.
|
|
@@ -15,5 +15,4 @@ function resolveThemeScopeProps({ className, ...props }, { resolvedMode }) {
|
|
|
15
15
|
function useThemeScopeProps(props) {
|
|
16
16
|
return resolveThemeScopeProps(props, useTheme());
|
|
17
17
|
}
|
|
18
|
-
//#endregion
|
|
19
18
|
export { resolveThemeScopeProps, useThemeScopeProps };
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { ThemeStateContext } from "./theme-context.mjs";
|
|
2
2
|
import { use } from "react";
|
|
3
|
-
|
|
3
|
+
// src/lib/theme/use-theme.ts
|
|
4
4
|
/** Read and update the colour mode. */
|
|
5
5
|
function useTheme() {
|
|
6
6
|
return use(ThemeStateContext);
|
|
7
7
|
}
|
|
8
|
-
//#endregion
|
|
9
8
|
export { useTheme };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { PointerSensor, TouchSensor, TouchSensorOptions } from "@dnd-kit/core";
|
|
2
|
-
//#region src/lib/touch-drag.d.ts
|
|
3
2
|
/**
|
|
4
3
|
* How a finger picks up something that can be dragged
|
|
5
4
|
* (design/foundations/states.md#dragging-on-a-touch-screen):
|
|
@@ -51,5 +50,4 @@ export declare function useMouseOnlyPointerSensor(distance: number): import("@dn
|
|
|
51
50
|
activationConstraint: {
|
|
52
51
|
distance: number;
|
|
53
52
|
};
|
|
54
|
-
}>;
|
|
55
|
-
//#endregion
|
|
53
|
+
}>;
|
package/dist/lib/touch-drag.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { eventWindow, holdEscape, releaseEscape } from "./drag-escape.mjs";
|
|
2
2
|
import { useMemo } from "react";
|
|
3
3
|
import { PointerSensor, TouchSensor, useSensor } from "@dnd-kit/core";
|
|
4
|
-
|
|
4
|
+
// src/lib/touch-drag.ts
|
|
5
5
|
/**
|
|
6
6
|
* How a finger picks up something that can be dragged
|
|
7
7
|
* (design/foundations/states.md#dragging-on-a-touch-screen):
|
|
@@ -147,5 +147,4 @@ function useMouseOnlyPointerSensor(distance) {
|
|
|
147
147
|
const options = useMemo(() => ({ activationConstraint: { distance } }), [distance]);
|
|
148
148
|
return useSensor(MouseOnlyPointerSensor, options);
|
|
149
149
|
}
|
|
150
|
-
//#endregion
|
|
151
150
|
export { HoldThenMoveTouchSensor, MouseOnlyPointerSensor, TOUCH_DRAG_DISTANCE_PX, TOUCH_DRAG_HOLD_MS, TOUCH_DRAG_TOLERANCE_PX, useHoldThenMoveTouchSensor, useMouseOnlyPointerSensor };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/lib/truncation.d.ts
|
|
2
1
|
/**
|
|
3
2
|
* Whether a text is cut off, and when to look again: the one way raft-ui
|
|
4
3
|
* measures truncation (Ellipsis, `useTruncated`, and the `title` that
|
|
@@ -22,5 +21,4 @@
|
|
|
22
21
|
* request made while a frame is handled is queued for the next one.
|
|
23
22
|
*/
|
|
24
23
|
/** `undefined`: not known yet, or the element has no box (hidden, not laid out). */
|
|
25
|
-
export type Truncation = boolean | undefined;
|
|
26
|
-
//#endregion
|
|
24
|
+
export type Truncation = boolean | undefined;
|
package/dist/lib/truncation.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { flushSync } from "react-dom";
|
|
2
|
-
|
|
2
|
+
// src/lib/truncation.ts
|
|
3
3
|
/** Overflow smaller than this is rounding, not a cut. */
|
|
4
4
|
const TOLERANCE = .5;
|
|
5
5
|
function contentBox(element) {
|
|
@@ -149,5 +149,4 @@ function observeTruncation(target) {
|
|
|
149
149
|
}
|
|
150
150
|
};
|
|
151
151
|
}
|
|
152
|
-
//#endregion
|
|
153
152
|
export { TOLERANCE, measureContent, measureElement, observeTruncation, readNow, scheduleMeasure };
|
package/dist/lib/tv.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { cn } from "../cn.mjs";
|
|
2
2
|
import { tv } from "tailwind-variants/lite";
|
|
3
|
-
|
|
3
|
+
// src/lib/tv.ts
|
|
4
4
|
const tv$1 = ((options) => {
|
|
5
5
|
const recipe = tv(options);
|
|
6
6
|
const wrappedRecipe = ((props) => {
|
|
@@ -10,5 +10,4 @@ const tv$1 = ((options) => {
|
|
|
10
10
|
});
|
|
11
11
|
return Object.assign(wrappedRecipe, recipe);
|
|
12
12
|
});
|
|
13
|
-
//#endregion
|
|
14
13
|
export { tv$1 as tv };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useLayoutEffect, useState } from "react";
|
|
2
|
-
|
|
2
|
+
// src/lib/use-attach-count.ts
|
|
3
3
|
/**
|
|
4
4
|
* How many times `element` has been attached to its document after it was
|
|
5
5
|
* committed outside it: 0 for an element that was in the document when it
|
|
@@ -37,5 +37,4 @@ function useAttachCount(element) {
|
|
|
37
37
|
}, [element]);
|
|
38
38
|
return count;
|
|
39
39
|
}
|
|
40
|
-
//#endregion
|
|
41
40
|
export { useAttachCount };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useCallback, useEffect, useRef, useState } from "react";
|
|
2
|
-
|
|
2
|
+
// src/lib/use-copy-to-clipboard.ts
|
|
3
3
|
function legacyCopy(value) {
|
|
4
4
|
try {
|
|
5
5
|
const area = document.createElement("textarea");
|
|
@@ -54,5 +54,4 @@ function useCopyToClipboard({ timeout = 1400 } = {}) {
|
|
|
54
54
|
reset
|
|
55
55
|
};
|
|
56
56
|
}
|
|
57
|
-
//#endregion
|
|
58
57
|
export { useCopyToClipboard };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useCallback, useLayoutEffect, useRef } from "react";
|
|
2
|
-
|
|
2
|
+
// src/lib/use-merged-ref.ts
|
|
3
3
|
function attach(ref, el) {
|
|
4
4
|
if (typeof ref == "function") {
|
|
5
5
|
const cleanup = ref(el);
|
|
@@ -82,5 +82,4 @@ function useMergedRef(...refs) {
|
|
|
82
82
|
});
|
|
83
83
|
return [setRef, getRef];
|
|
84
84
|
}
|
|
85
|
-
//#endregion
|
|
86
85
|
export { useMergedRef };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useSyncExternalStore } from "react";
|
|
2
|
-
|
|
2
|
+
// src/lib/use-mobile-viewport.ts
|
|
3
3
|
const MOBILE_QUERY = "(max-width: 767px)";
|
|
4
4
|
function canMatchMedia() {
|
|
5
5
|
return typeof window !== "undefined" && typeof window.matchMedia === "function";
|
|
@@ -16,5 +16,4 @@ function getMobileViewportSnapshot() {
|
|
|
16
16
|
function useMobileViewport() {
|
|
17
17
|
return useSyncExternalStore(subscribeMobileViewport, getMobileViewportSnapshot, () => false);
|
|
18
18
|
}
|
|
19
|
-
//#endregion
|
|
20
19
|
export { useMobileViewport };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { measureElement, observeTruncation } from "./truncation.mjs";
|
|
2
2
|
import { useCallback, useRef } from "react";
|
|
3
|
-
|
|
3
|
+
// src/lib/use-overflow-title.ts
|
|
4
4
|
function cut(element) {
|
|
5
5
|
return measureElement(element) === true;
|
|
6
6
|
}
|
|
@@ -45,5 +45,4 @@ function useOverflowTitle(ref, title) {
|
|
|
45
45
|
});
|
|
46
46
|
}, [own, ref]);
|
|
47
47
|
}
|
|
48
|
-
//#endregion
|
|
49
48
|
export { useOverflowTitle };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/lib/use-platform.d.ts
|
|
2
1
|
/**
|
|
3
2
|
* The keyboard a shortcut is written for: `mac` (macOS, iOS and iPadOS, whose
|
|
4
3
|
* keyboards have Command and Option) or `other` (Windows, Linux, ChromeOS,
|
|
@@ -9,5 +8,4 @@ export type KeyboardPlatform = "mac" | "other";
|
|
|
9
8
|
* The platform the page runs on. The server render and hydration use `other`,
|
|
10
9
|
* so the markup matches; the client then renders with the detected platform.
|
|
11
10
|
*/
|
|
12
|
-
export declare function useKeyboardPlatform(): KeyboardPlatform;
|
|
13
|
-
//#endregion
|
|
11
|
+
export declare function useKeyboardPlatform(): KeyboardPlatform;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useSyncExternalStore } from "react";
|
|
2
|
-
|
|
2
|
+
// src/lib/use-platform.ts
|
|
3
3
|
const APPLE = /mac|iphone|ipad|ipod/i;
|
|
4
4
|
/**
|
|
5
5
|
* The platform of a navigator: Client Hints first (`userAgentData.platform`,
|
|
@@ -25,5 +25,4 @@ const serverSnapshot = () => "other";
|
|
|
25
25
|
function useKeyboardPlatform() {
|
|
26
26
|
return useSyncExternalStore(subscribeNever, clientSnapshot, serverSnapshot);
|
|
27
27
|
}
|
|
28
|
-
//#endregion
|
|
29
28
|
export { detectKeyboardPlatform, useKeyboardPlatform };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/lib/use-scrollbar-size.d.ts
|
|
2
1
|
/**
|
|
3
2
|
* Publishes a scroller's classic scrollbar width as `--scrollbar-size` on the
|
|
4
3
|
* scroller, for the list cells inside it (lib/list-cell.ts): a cell gives
|
|
@@ -15,5 +14,4 @@
|
|
|
15
14
|
*
|
|
16
15
|
* Returns a ref callback for the scroller.
|
|
17
16
|
*/
|
|
18
|
-
export declare function useScrollbarSize<E extends HTMLElement>(): (el: E | null) => void;
|
|
19
|
-
//#endregion
|
|
17
|
+
export declare function useScrollbarSize<E extends HTMLElement>(): (el: E | null) => void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useCallback, useRef } from "react";
|
|
2
|
-
|
|
2
|
+
// src/lib/use-scrollbar-size.ts
|
|
3
3
|
/**
|
|
4
4
|
* Publishes a scroller's classic scrollbar width as `--scrollbar-size` on the
|
|
5
5
|
* scroller, for the list cells inside it (lib/list-cell.ts): a cell gives
|
|
@@ -45,5 +45,4 @@ function useScrollbarSize() {
|
|
|
45
45
|
};
|
|
46
46
|
}, []);
|
|
47
47
|
}
|
|
48
|
-
//#endregion
|
|
49
48
|
export { useScrollbarSize };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useEffect, useState } from "react";
|
|
2
|
-
|
|
2
|
+
// src/lib/use-soft-keyboard.ts
|
|
3
3
|
/** The keyboard takes more than this; a browser's toolbars take less. */
|
|
4
4
|
const KEYBOARD_MIN_PX = 100;
|
|
5
5
|
const NOT_TYPED = /* @__PURE__ */ new Set([
|
|
@@ -68,5 +68,4 @@ function useSoftKeyboard(active) {
|
|
|
68
68
|
}, [active]);
|
|
69
69
|
return active ? keyboard : null;
|
|
70
70
|
}
|
|
71
|
-
//#endregion
|
|
72
71
|
export { useSoftKeyboard };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { Truncation } from "./truncation.mjs";
|
|
2
2
|
import { RefObject } from "react";
|
|
3
|
-
//#region src/lib/use-truncated.d.ts
|
|
4
3
|
/**
|
|
5
4
|
* Whether the text in the element `ref` points at is cut off by its CSS
|
|
6
5
|
* (`truncate`, `line-clamp`, a fixed size with `overflow: hidden`): `true`,
|
|
@@ -16,5 +15,4 @@ import { RefObject } from "react";
|
|
|
16
15
|
* for the component's life, or give the component a `key` that changes with
|
|
17
16
|
* the element.
|
|
18
17
|
*/
|
|
19
|
-
export declare function useTruncated(ref: RefObject<Element | null>): Truncation;
|
|
20
|
-
//#endregion
|
|
18
|
+
export declare function useTruncated(ref: RefObject<Element | null>): Truncation;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { measureElement, observeTruncation } from "./truncation.mjs";
|
|
2
2
|
import { useLayoutEffect, useState } from "react";
|
|
3
|
-
|
|
3
|
+
// src/lib/use-truncated.ts
|
|
4
4
|
/**
|
|
5
5
|
* Whether the text in the element `ref` points at is cut off by its CSS
|
|
6
6
|
* (`truncate`, `line-clamp`, a fixed size with `overflow: hidden`): `true`,
|
|
@@ -30,5 +30,4 @@ function useTruncated(ref) {
|
|
|
30
30
|
}, [ref]);
|
|
31
31
|
return truncated;
|
|
32
32
|
}
|
|
33
|
-
//#endregion
|
|
34
33
|
export { useTruncated };
|