@botiverse/raft-ui 0.51.0 → 0.52.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 +20 -0
- package/dist/components/activity-inbox/activity-inbox-shell.d.mts +12 -0
- package/dist/components/activity-inbox/activity-inbox-shell.mjs +39 -0
- package/dist/components/activity-inbox/activity-inbox-shell.recipe.mjs +14 -0
- package/dist/components/activity-inbox/activity-inbox-sidebar.d.mts +6 -0
- package/dist/components/activity-inbox/activity-inbox-sidebar.mjs +22 -0
- package/dist/components/activity-inbox/activity-inbox-sidebar.recipe.mjs +22 -0
- package/dist/components/activity-inbox/activity-inbox-toolbar.d.mts +9 -0
- package/dist/components/activity-inbox/activity-inbox-toolbar.mjs +29 -0
- package/dist/components/activity-inbox/activity-inbox-toolbar.recipe.mjs +14 -0
- package/dist/components/activity-inbox/index.d.mts +4 -0
- package/dist/components/alert-dialog/alert-dialog.d.mts +41 -0
- package/dist/components/alert-dialog/alert-dialog.mjs +163 -0
- package/dist/components/alert-dialog/index.d.mts +2 -0
- package/dist/components/announcement-dialog/announcement-dialog.d.mts +18 -0
- package/dist/components/announcement-dialog/announcement-dialog.mjs +121 -0
- package/dist/components/announcement-dialog/index.d.mts +3 -0
- package/dist/components/app-rail/app-rail.d.mts +31 -0
- package/dist/components/app-rail/app-rail.mjs +126 -0
- package/dist/components/app-rail/app-rail.recipe.mjs +47 -0
- package/dist/components/app-rail/index.d.mts +2 -0
- package/dist/components/app-shell/app-shell.d.mts +27 -0
- package/dist/components/app-shell/app-shell.mjs +217 -0
- package/dist/components/app-shell/index.d.mts +2 -0
- package/dist/components/avatar/avatar.d.mts +169 -0
- package/dist/components/avatar/avatar.mjs +298 -0
- package/dist/components/avatar/index.d.mts +2 -0
- package/dist/components/badge/badge.d.mts +89 -0
- package/dist/components/badge/badge.mjs +203 -0
- package/dist/components/badge/index.d.mts +2 -0
- package/dist/components/banner/banner.d.mts +141 -0
- package/dist/components/banner/banner.mjs +228 -0
- package/dist/components/banner/index.d.mts +2 -0
- package/dist/components/button/button.d.mts +257 -0
- package/dist/components/button/button.mjs +177 -0
- package/dist/components/button/index.d.mts +2 -0
- package/dist/components/card/card.d.mts +21 -0
- package/dist/components/card/card.mjs +114 -0
- package/dist/components/card/card.recipe.d.mts +105 -0
- package/dist/components/card/card.recipe.mjs +67 -0
- package/dist/components/card/index.d.mts +2 -0
- package/dist/components/checkbox/checkbox-indicator.d.mts +92 -0
- package/dist/components/checkbox/checkbox-indicator.mjs +61 -0
- package/dist/components/checkbox/checkbox.d.mts +9 -0
- package/dist/components/checkbox/checkbox.mjs +40 -0
- package/dist/components/checkbox/index.d.mts +3 -0
- package/dist/components/choice-list/choice-list.d.mts +103 -0
- package/dist/components/choice-list/choice-list.mjs +301 -0
- package/dist/components/choice-list/choice-list.recipe.mjs +44 -0
- package/dist/components/choice-list/index.d.mts +2 -0
- package/dist/components/code-block/code-block.d.mts +30 -0
- package/dist/components/code-block/code-block.mjs +151 -0
- package/dist/components/code-block/code-block.recipe.mjs +47 -0
- package/dist/components/code-block/index.d.mts +2 -0
- package/dist/components/combobox/combobox.d.mts +69 -0
- package/dist/components/combobox/combobox.mjs +438 -0
- package/dist/components/combobox/index.d.mts +2 -0
- package/dist/components/combobox-select/combobox-select.d.mts +4 -0
- package/dist/components/combobox-select/combobox-select.list-side.mjs +16 -0
- package/dist/components/combobox-select/combobox-select.mjs +473 -0
- package/dist/components/combobox-select/combobox-select.options.mjs +21 -0
- package/dist/components/combobox-select/combobox-select.types.d.mts +83 -0
- package/dist/components/combobox-select/index.d.mts +3 -0
- package/dist/components/comment/comment-card.d.mts +40 -0
- package/dist/components/comment/comment-card.mjs +83 -0
- package/dist/components/comment/comment-entry.d.mts +24 -0
- package/dist/components/comment/comment-entry.mjs +75 -0
- package/dist/components/comment/comment-highlight.d.mts +18 -0
- package/dist/components/comment/comment-highlight.mjs +33 -0
- package/dist/components/comment/comment-margin-layout.d.mts +32 -0
- package/dist/components/comment/comment-margin-layout.mjs +44 -0
- package/dist/components/comment/comment-margin.d.mts +29 -0
- package/dist/components/comment/comment-margin.mjs +164 -0
- package/dist/components/comment/comment-marker.d.mts +16 -0
- package/dist/components/comment/comment-marker.mjs +24 -0
- package/dist/components/comment/comment.recipe.mjs +58 -0
- package/dist/components/comment/index.d.mts +8 -0
- package/dist/components/comment/use-comment-margin-fits.d.mts +16 -0
- package/dist/components/comment/use-comment-margin-fits.mjs +34 -0
- package/dist/components/composer/composer-attachment.recipe.mjs +85 -0
- package/dist/components/composer/composer-attachments-scroll-area.d.mts +5 -0
- package/dist/components/composer/composer-attachments-scroll-area.mjs +93 -0
- package/dist/components/composer/composer-attachments.d.mts +27 -0
- package/dist/components/composer/composer-attachments.mjs +147 -0
- package/dist/components/composer/composer-drop-overlay.d.mts +9 -0
- package/dist/components/composer/composer-drop-overlay.mjs +60 -0
- package/dist/components/composer/composer-drop-overlay.recipe.mjs +23 -0
- package/dist/components/composer/composer-root.d.mts +5 -0
- package/dist/components/composer/composer-root.mjs +18 -0
- package/dist/components/composer/composer-suggestion-list.d.mts +139 -0
- package/dist/components/composer/composer-suggestion-list.mjs +160 -0
- package/dist/components/composer/composer-toolbar-label.d.mts +5 -0
- package/dist/components/composer/composer-toolbar-label.mjs +24 -0
- package/dist/components/composer/composer.d.mts +20 -0
- package/dist/components/composer/composer.mjs +88 -0
- package/dist/components/composer/composer.recipe.mjs +29 -0
- package/dist/components/composer/index.d.mts +10 -0
- package/dist/components/composer/sortable-composer-attachments.d.mts +37 -0
- package/dist/components/composer/sortable-composer-attachments.mjs +247 -0
- package/dist/components/composer/use-composer-suggestions.d.mts +83 -0
- package/dist/components/composer/use-composer-suggestions.mjs +207 -0
- package/dist/components/context-menu/context-menu.d.mts +53 -0
- package/dist/components/context-menu/context-menu.mjs +275 -0
- package/dist/components/context-menu/index.d.mts +2 -0
- package/dist/components/conversation-panel/conversation-panel-empty-state.d.mts +9 -0
- package/dist/components/conversation-panel/conversation-panel-empty-state.mjs +57 -0
- package/dist/components/conversation-panel/conversation-panel.d.mts +20 -0
- package/dist/components/conversation-panel/conversation-panel.mjs +63 -0
- package/dist/components/conversation-panel/conversation-panel.recipe.mjs +15 -0
- package/dist/components/conversation-panel/index.d.mts +3 -0
- package/dist/components/copyable-code/copyable-code.d.mts +72 -0
- package/dist/components/copyable-code/copyable-code.mjs +153 -0
- package/dist/components/copyable-code/index.d.mts +2 -0
- package/dist/components/description-list/description-list.d.mts +59 -0
- package/dist/components/description-list/description-list.mjs +96 -0
- package/dist/components/description-list/index.d.mts +2 -0
- package/dist/components/dialog/dialog-sheet-context.mjs +58 -0
- package/dist/components/dialog/dialog-sheet.d.mts +31 -0
- package/dist/components/dialog/dialog-sheet.mjs +194 -0
- package/dist/components/dialog/dialog.d.mts +85 -0
- package/dist/components/dialog/dialog.mjs +371 -0
- package/dist/components/dialog/index.d.mts +3 -0
- package/dist/components/drag/drag-announcements.d.mts +72 -0
- package/dist/components/drag/drag-announcements.mjs +115 -0
- package/dist/components/drag/drag-lift.d.mts +100 -0
- package/dist/components/drag/drag-lift.mjs +276 -0
- package/dist/components/drag/drag-lists.d.mts +98 -0
- package/dist/components/drag/drag-lists.mjs +258 -0
- package/dist/components/drag/drag-sensors.d.mts +87 -0
- package/dist/components/drag/drag-sensors.mjs +169 -0
- package/dist/components/drag/drag.recipe.d.mts +7 -0
- package/dist/components/drag/drag.recipe.mjs +30 -0
- package/dist/components/drag/drop-placeholder.d.mts +41 -0
- package/dist/components/drag/drop-placeholder.mjs +161 -0
- package/dist/components/drag/index.d.mts +8 -0
- package/dist/components/drawer/drawer.d.mts +34 -0
- package/dist/components/drawer/drawer.mjs +202 -0
- package/dist/components/drawer/drawer.recipe.mjs +175 -0
- package/dist/components/drawer/index.d.mts +2 -0
- package/dist/components/dropdown-menu/dropdown-menu.d.mts +62 -0
- package/dist/components/dropdown-menu/dropdown-menu.mjs +319 -0
- package/dist/components/dropdown-menu/index.d.mts +2 -0
- package/dist/components/ellipsis/ellipsis.d.mts +55 -0
- package/dist/components/ellipsis/ellipsis.mjs +320 -0
- package/dist/components/ellipsis/index.d.mts +3 -0
- package/dist/components/empty-state/empty-state.d.mts +15 -0
- package/dist/components/empty-state/empty-state.mjs +102 -0
- package/dist/components/empty-state/index.d.mts +2 -0
- package/dist/components/field/field.d.mts +79 -0
- package/dist/components/field/field.mjs +100 -0
- package/dist/components/field/index.d.mts +2 -0
- package/dist/components/file-preview/file-preview.d.mts +17 -0
- package/dist/components/file-preview/file-preview.mjs +210 -0
- package/dist/components/file-preview/file-preview.recipe.d.mts +99 -0
- package/dist/components/file-preview/file-preview.recipe.mjs +39 -0
- package/dist/components/file-preview/index.d.mts +2 -0
- package/dist/components/files/files.d.mts +35 -0
- package/dist/components/files/files.mjs +69 -0
- package/dist/components/files/files.recipe.mjs +40 -0
- package/dist/components/files/index.d.mts +2 -0
- package/dist/components/filter-chip/filter-chip.d.mts +25 -0
- package/dist/components/filter-chip/filter-chip.mjs +59 -0
- package/dist/components/filter-chip/index.d.mts +2 -0
- package/dist/components/float-button/float-button.d.mts +36 -0
- package/dist/components/float-button/float-button.mjs +116 -0
- package/dist/components/float-button/float-button.position.d.mts +6 -0
- package/dist/components/float-button/float-button.position.mjs +41 -0
- package/dist/components/float-button/index.d.mts +3 -0
- package/dist/components/form-section/form-section.d.mts +16 -0
- package/dist/components/form-section/form-section.mjs +53 -0
- package/dist/components/form-section/index.d.mts +2 -0
- package/dist/components/icon-tile/icon-tile.d.mts +97 -0
- package/dist/components/icon-tile/icon-tile.mjs +49 -0
- package/dist/components/icon-tile/index.d.mts +2 -0
- package/dist/components/icons/action-icons.d.mts +34 -0
- package/dist/components/icons/action-icons.mjs +383 -0
- package/dist/components/icons/conversation-icons.d.mts +12 -0
- package/dist/components/icons/conversation-icons.mjs +147 -0
- package/dist/components/icons/index.d.mts +4 -0
- package/dist/components/icons/object-icons.d.mts +6 -0
- package/dist/components/icons/object-icons.mjs +27 -0
- package/dist/components/inbox-item/inbox-item-leading-badge.d.mts +13 -0
- package/dist/components/inbox-item/inbox-item-leading-badge.mjs +27 -0
- package/dist/components/inbox-item/inbox-item-skeleton.d.mts +46 -0
- package/dist/components/inbox-item/inbox-item-skeleton.mjs +89 -0
- package/dist/components/inbox-item/inbox-item-skeleton.recipe.mjs +20 -0
- package/dist/components/inbox-item/inbox-item.d.mts +71 -0
- package/dist/components/inbox-item/inbox-item.mjs +276 -0
- package/dist/components/inbox-item/inbox-item.recipe.mjs +137 -0
- package/dist/components/inbox-item/index.d.mts +2 -0
- package/dist/components/inline-code/index.d.mts +2 -0
- package/dist/components/inline-code/inline-code.d.mts +8 -0
- package/dist/components/inline-code/inline-code.mjs +30 -0
- package/dist/components/input/index.d.mts +2 -0
- package/dist/components/input/input.d.mts +16 -0
- package/dist/components/input/input.mjs +20 -0
- package/dist/components/input/input.recipe.mjs +12 -0
- package/dist/components/input-group/index.d.mts +2 -0
- package/dist/components/input-group/input-group.d.mts +93 -0
- package/dist/components/input-group/input-group.mjs +178 -0
- package/dist/components/kbd/index.d.mts +2 -0
- package/dist/components/kbd/kbd.d.mts +7 -0
- package/dist/components/kbd/kbd.mjs +34 -0
- package/dist/components/label/index.d.mts +2 -0
- package/dist/components/label/label.d.mts +60 -0
- package/dist/components/label/label.mjs +75 -0
- package/dist/components/legacy-task-panel/index.d.mts +2 -0
- package/dist/components/legacy-task-panel/legacy-task-panel.d.mts +57 -0
- package/dist/components/legacy-task-panel/legacy-task-panel.mjs +234 -0
- package/dist/components/legacy-task-panel/legacy-task-panel.recipe.mjs +30 -0
- package/dist/components/lightbox/index.d.mts +2 -0
- package/dist/components/lightbox/lightbox.d.mts +55 -0
- package/dist/components/lightbox/lightbox.mjs +336 -0
- package/dist/components/list-row/index.d.mts +2 -0
- package/dist/components/list-row/list-row-skeleton.d.mts +21 -0
- package/dist/components/list-row/list-row-skeleton.mjs +43 -0
- package/dist/components/list-row/list-row.d.mts +66 -0
- package/dist/components/list-row/list-row.mjs +167 -0
- package/dist/components/list-row/list-row.recipe.d.mts +126 -0
- package/dist/components/list-row/list-row.recipe.mjs +94 -0
- package/dist/components/live-agent-activity-bar/index.d.mts +2 -0
- package/dist/components/live-agent-activity-bar/live-agent-activity-bar.d.mts +25 -0
- package/dist/components/live-agent-activity-bar/live-agent-activity-bar.mjs +107 -0
- package/dist/components/logo/index.d.mts +2 -0
- package/dist/components/logo/raft-logo.d.mts +9 -0
- package/dist/components/logo/raft-logo.mjs +63 -0
- package/dist/components/markdown/index.d.mts +2 -0
- package/dist/components/markdown/markdown-parts.d.mts +54 -0
- package/dist/components/markdown/markdown-parts.mjs +153 -0
- package/dist/components/markdown/markdown.recipe.mjs +77 -0
- package/dist/components/message-action-card/index.d.mts +2 -0
- package/dist/components/message-action-card/message-action-card-content.recipe.mjs +50 -0
- package/dist/components/message-action-card/message-action-card.d.mts +95 -0
- package/dist/components/message-action-card/message-action-card.mjs +298 -0
- package/dist/components/message-action-card/message-action-card.recipe.mjs +47 -0
- package/dist/components/message-attachment/index.d.mts +5 -0
- package/dist/components/message-attachment/message-attachment.d.mts +27 -0
- package/dist/components/message-attachment/message-attachment.mjs +129 -0
- package/dist/components/message-attachment/message-attachment.recipe.mjs +36 -0
- package/dist/components/message-attachment/message-image-gallery-rows.d.mts +47 -0
- package/dist/components/message-attachment/message-image-gallery-rows.mjs +55 -0
- package/dist/components/message-attachment/message-image-gallery.d.mts +32 -0
- package/dist/components/message-attachment/message-image-gallery.mjs +105 -0
- package/dist/components/message-attachment/message-image-gallery.recipe.mjs +61 -0
- package/dist/components/message-attachment/message-video-preview.d.mts +19 -0
- package/dist/components/message-attachment/message-video-preview.mjs +92 -0
- package/dist/components/message-attachment/message-video-preview.recipe.mjs +33 -0
- package/dist/components/message-embed/index.d.mts +2 -0
- package/dist/components/message-embed/message-embed.d.mts +12 -0
- package/dist/components/message-embed/message-embed.mjs +42 -0
- package/dist/components/message-embed/message-embed.recipe.mjs +14 -0
- package/dist/components/message-forwarded-bundle/index.d.mts +2 -0
- package/dist/components/message-forwarded-bundle/message-forwarded-bundle.d.mts +92 -0
- package/dist/components/message-forwarded-bundle/message-forwarded-bundle.mjs +324 -0
- package/dist/components/message-forwarded-bundle/message-forwarded-bundle.recipe.mjs +81 -0
- package/dist/components/message-item/index.d.mts +13 -0
- package/dist/components/message-item/message-footer.d.mts +20 -0
- package/dist/components/message-item/message-footer.mjs +54 -0
- package/dist/components/message-item/message-footer.recipe.mjs +46 -0
- package/dist/components/message-item/message-item-content.d.mts +22 -0
- package/dist/components/message-item/message-item-content.mjs +81 -0
- package/dist/components/message-item/message-item-delegated.d.mts +38 -0
- package/dist/components/message-item/message-item-delegated.mjs +72 -0
- package/dist/components/message-item/message-item-gutter.d.mts +10 -0
- package/dist/components/message-item/message-item-gutter.mjs +41 -0
- package/dist/components/message-item/message-item-header.d.mts +29 -0
- package/dist/components/message-item/message-item-header.mjs +107 -0
- package/dist/components/message-item/message-item-label.mjs +113 -0
- package/dist/components/message-item/message-item-root.d.mts +25 -0
- package/dist/components/message-item/message-item-root.mjs +39 -0
- package/dist/components/message-item/message-item-toolbar.d.mts +9 -0
- package/dist/components/message-item/message-item-toolbar.mjs +131 -0
- package/dist/components/message-item/message-item.recipe.d.mts +101 -0
- package/dist/components/message-item/message-item.recipe.mjs +114 -0
- package/dist/components/message-item/message-multi-select.d.mts +15 -0
- package/dist/components/message-item/message-multi-select.mjs +49 -0
- package/dist/components/message-item/message-multi-select.recipe.mjs +23 -0
- package/dist/components/message-item/message-reaction.d.mts +39 -0
- package/dist/components/message-item/message-reaction.mjs +188 -0
- package/dist/components/message-item/message-reaction.recipe.mjs +76 -0
- package/dist/components/message-item/message-reference.d.mts +50 -0
- package/dist/components/message-item/message-reference.mjs +111 -0
- package/dist/components/message-item/message-reference.recipe.d.mts +6 -0
- package/dist/components/message-item/message-reference.recipe.mjs +63 -0
- package/dist/components/message-item/message-text-selection-toolbar.d.mts +24 -0
- package/dist/components/message-item/message-text-selection-toolbar.mjs +13 -0
- package/dist/components/message-list/index.d.mts +4 -0
- package/dist/components/message-list/message-list-jump.d.mts +21 -0
- package/dist/components/message-list/message-list-jump.mjs +73 -0
- package/dist/components/message-list/message-list-markers.d.mts +13 -0
- package/dist/components/message-list/message-list-markers.mjs +70 -0
- package/dist/components/message-list/message-list.d.mts +7 -0
- package/dist/components/message-list/message-list.mjs +52 -0
- package/dist/components/message-list/message-list.recipe.mjs +54 -0
- package/dist/components/message-quoted-preview/index.d.mts +2 -0
- package/dist/components/message-quoted-preview/message-quoted-preview.d.mts +40 -0
- package/dist/components/message-quoted-preview/message-quoted-preview.mjs +144 -0
- package/dist/components/message-quoted-preview/message-quoted-preview.recipe.mjs +38 -0
- package/dist/components/message-replies/index.d.mts +2 -0
- package/dist/components/message-replies/message-replies.d.mts +17 -0
- package/dist/components/message-replies/message-replies.mjs +79 -0
- package/dist/components/message-replies/message-replies.recipe.mjs +25 -0
- package/dist/components/message-translation/index.d.mts +2 -0
- package/dist/components/message-translation/message-translation.d.mts +20 -0
- package/dist/components/message-translation/message-translation.mjs +64 -0
- package/dist/components/message-translation/message-translation.recipe.mjs +27 -0
- package/dist/components/meter/index.d.mts +2 -0
- package/dist/components/meter/meter.d.mts +107 -0
- package/dist/components/meter/meter.mjs +118 -0
- package/dist/components/mobile-nav/index.d.mts +3 -0
- package/dist/components/mobile-nav/mobile-nav-server.d.mts +71 -0
- package/dist/components/mobile-nav/mobile-nav-server.mjs +287 -0
- package/dist/components/mobile-nav/mobile-nav.d.mts +12 -0
- package/dist/components/mobile-nav/mobile-nav.mjs +73 -0
- package/dist/components/mode-bar/index.d.mts +2 -0
- package/dist/components/mode-bar/mode-bar.d.mts +33 -0
- package/dist/components/mode-bar/mode-bar.mjs +115 -0
- package/dist/components/notification-center/index.d.mts +2 -0
- package/dist/components/notification-center/notification-center.d.mts +225 -0
- package/dist/components/notification-center/notification-center.mjs +340 -0
- package/dist/components/panel/index.d.mts +7 -0
- package/dist/components/panel/panel-action.d.mts +15 -0
- package/dist/components/panel/panel-action.mjs +23 -0
- package/dist/components/panel/panel-action.recipe.mjs +40 -0
- package/dist/components/panel/panel-header.d.mts +34 -0
- package/dist/components/panel/panel-header.mjs +135 -0
- package/dist/components/panel/panel-header.recipe.mjs +78 -0
- package/dist/components/panel/panel-notice.d.mts +16 -0
- package/dist/components/panel/panel-notice.mjs +77 -0
- package/dist/components/panel/panel-split-action.d.mts +34 -0
- package/dist/components/panel/panel-split-action.mjs +69 -0
- package/dist/components/panel/panel-split-action.recipe.mjs +53 -0
- package/dist/components/panel/panel-toggle-action.d.mts +6 -0
- package/dist/components/panel/panel-toggle-action.mjs +15 -0
- package/dist/components/panel/panel.d.mts +25 -0
- package/dist/components/panel/panel.mjs +96 -0
- package/dist/components/panel/panel.recipe.mjs +24 -0
- package/dist/components/picker-trigger-button/index.d.mts +2 -0
- package/dist/components/picker-trigger-button/picker-trigger-button.d.mts +7 -0
- package/dist/components/picker-trigger-button/picker-trigger-button.mjs +36 -0
- package/dist/components/popover/index.d.mts +2 -0
- package/dist/components/popover/popover.d.mts +41 -0
- package/dist/components/popover/popover.mjs +184 -0
- package/dist/components/preview-card/index.d.mts +2 -0
- package/dist/components/preview-card/preview-card.d.mts +43 -0
- package/dist/components/preview-card/preview-card.mjs +197 -0
- package/dist/components/profile-panel/index.d.mts +2 -0
- package/dist/components/profile-panel/profile-panel.d.mts +14 -0
- package/dist/components/profile-panel/profile-panel.mjs +46 -0
- package/dist/components/profile-panel/profile-panel.recipe.mjs +14 -0
- package/dist/components/progress/index.d.mts +2 -0
- package/dist/components/progress/progress.d.mts +119 -0
- package/dist/components/progress/progress.mjs +139 -0
- package/dist/components/pull-to-refresh/index.d.mts +4 -0
- package/dist/components/pull-to-refresh/pull-to-refresh-gesture.d.mts +30 -0
- package/dist/components/pull-to-refresh/pull-to-refresh-gesture.mjs +134 -0
- package/dist/components/pull-to-refresh/pull-to-refresh-indicator.d.mts +21 -0
- package/dist/components/pull-to-refresh/pull-to-refresh-indicator.mjs +153 -0
- package/dist/components/pull-to-refresh/pull-to-refresh-material-progress.mjs +150 -0
- package/dist/components/pull-to-refresh/use-pull-to-refresh.d.mts +55 -0
- package/dist/components/pull-to-refresh/use-pull-to-refresh.mjs +156 -0
- package/dist/components/radio-group/index.d.mts +2 -0
- package/dist/components/radio-group/radio-group.d.mts +14 -0
- package/dist/components/radio-group/radio-group.mjs +59 -0
- package/dist/components/resizable/index.d.mts +2 -0
- package/dist/components/resizable/resizable.d.mts +15 -0
- package/dist/components/resizable/resizable.mjs +39 -0
- package/dist/components/resizable/resizable.recipe.mjs +24 -0
- package/dist/components/scroll-area/index.d.mts +2 -0
- package/dist/components/scroll-area/scroll-area.d.mts +17 -0
- package/dist/components/scroll-area/scroll-area.mjs +55 -0
- package/dist/components/scroll-area/scroll-area.recipe.mjs +23 -0
- package/dist/components/search/index.d.mts +6 -0
- package/dist/components/search/search-entity.d.mts +24 -0
- package/dist/components/search/search-entity.mjs +106 -0
- package/dist/components/search/search-entity.recipe.mjs +41 -0
- package/dist/components/search/search-message.d.mts +25 -0
- package/dist/components/search/search-message.mjs +115 -0
- package/dist/components/search/search-message.recipe.mjs +32 -0
- package/dist/components/search/search-thread.d.mts +17 -0
- package/dist/components/search/search-thread.mjs +79 -0
- package/dist/components/search/search-thread.recipe.mjs +16 -0
- package/dist/components/search/search-trigger.d.mts +15 -0
- package/dist/components/search/search-trigger.mjs +59 -0
- package/dist/components/search/search.d.mts +23 -0
- package/dist/components/search/search.mjs +88 -0
- package/dist/components/search/search.recipe.mjs +22 -0
- package/dist/components/segmented-control/index.d.mts +2 -0
- package/dist/components/segmented-control/segmented-control.d.mts +38 -0
- package/dist/components/segmented-control/segmented-control.mjs +306 -0
- package/dist/components/select/index.d.mts +2 -0
- package/dist/components/select/select.d.mts +95 -0
- package/dist/components/select/select.mjs +483 -0
- package/dist/components/separator/index.d.mts +2 -0
- package/dist/components/separator/separator.d.mts +10 -0
- package/dist/components/separator/separator.mjs +49 -0
- package/dist/components/sidebar/index.d.mts +5 -0
- package/dist/components/sidebar/sidebar-item.d.mts +64 -0
- package/dist/components/sidebar/sidebar-item.mjs +201 -0
- package/dist/components/sidebar/sidebar-item.recipe.mjs +100 -0
- package/dist/components/sidebar/sidebar-menu.d.mts +13 -0
- package/dist/components/sidebar/sidebar-menu.mjs +67 -0
- package/dist/components/sidebar/sidebar-menu.recipe.mjs +22 -0
- package/dist/components/sidebar/sidebar-section.d.mts +41 -0
- package/dist/components/sidebar/sidebar-section.mjs +164 -0
- package/dist/components/sidebar/sidebar-section.recipe.mjs +45 -0
- package/dist/components/sidebar/sidebar.d.mts +17 -0
- package/dist/components/sidebar/sidebar.mjs +149 -0
- package/dist/components/sidebar/sidebar.recipe.mjs +37 -0
- package/dist/components/skeleton/index.d.mts +2 -0
- package/dist/components/skeleton/skeleton.d.mts +50 -0
- package/dist/components/skeleton/skeleton.mjs +29 -0
- package/dist/components/spinner/index.d.mts +2 -0
- package/dist/components/spinner/spinner.d.mts +77 -0
- package/dist/components/spinner/spinner.mjs +118 -0
- package/dist/components/status/index.d.mts +2 -0
- package/dist/components/status/status.d.mts +143 -0
- package/dist/components/status/status.mjs +56 -0
- package/dist/components/steps/index.d.mts +3 -0
- package/dist/components/steps/otter-indicator.d.mts +17 -0
- package/dist/components/steps/otter-indicator.mjs +331 -0
- package/dist/components/steps/steps.d.mts +50 -0
- package/dist/components/steps/steps.mjs +174 -0
- package/dist/components/switch/index.d.mts +2 -0
- package/dist/components/switch/switch.d.mts +9 -0
- package/dist/components/switch/switch.mjs +50 -0
- package/dist/components/system-message/index.d.mts +2 -0
- package/dist/components/system-message/system-message.d.mts +27 -0
- package/dist/components/system-message/system-message.mjs +113 -0
- package/dist/components/system-message/system-message.recipe.mjs +34 -0
- package/dist/components/table/index.d.mts +2 -0
- package/dist/components/table/table.d.mts +35 -0
- package/dist/components/table/table.mjs +102 -0
- package/dist/components/table/table.recipe.mjs +31 -0
- package/dist/components/tabs/index.d.mts +2 -0
- package/dist/components/tabs/tabs.d.mts +185 -0
- package/dist/components/tabs/tabs.mjs +528 -0
- package/dist/components/task-board/index.d.mts +2 -0
- package/dist/components/task-board/task-board-column.recipe.mjs +46 -0
- package/dist/components/task-board/task-board.d.mts +40 -0
- package/dist/components/task-board/task-board.mjs +155 -0
- package/dist/components/task-card/index.d.mts +2 -0
- package/dist/components/task-card/task-card-status.recipe.mjs +17 -0
- package/dist/components/task-card/task-card.d.mts +30 -0
- package/dist/components/task-card/task-card.mjs +141 -0
- package/dist/components/task-card/task-card.recipe.mjs +39 -0
- package/dist/components/task-dnd/index.d.mts +2 -0
- package/dist/components/task-dnd/task-dnd.d.mts +75 -0
- package/dist/components/task-dnd/task-dnd.mjs +341 -0
- package/dist/components/task-dnd/task-dnd.recipe.mjs +20 -0
- package/dist/components/task-list/index.d.mts +2 -0
- package/dist/components/task-list/task-list-section.recipe.mjs +37 -0
- package/dist/components/task-list/task-list.d.mts +34 -0
- package/dist/components/task-list/task-list.mjs +119 -0
- package/dist/components/tasks/index.d.mts +7 -0
- package/dist/components/tasks/task-chip.d.mts +14 -0
- package/dist/components/tasks/task-chip.mjs +81 -0
- package/dist/components/tasks/task-loading.d.mts +7 -0
- package/dist/components/tasks/task-loading.mjs +32 -0
- package/dist/components/tasks/task-loading.recipe.mjs +8 -0
- package/dist/components/tasks/task-status-badge.d.mts +24 -0
- package/dist/components/tasks/task-status-badge.mjs +24 -0
- package/dist/components/tasks/task-status-icon.d.mts +13 -0
- package/dist/components/tasks/task-status-icon.mjs +90 -0
- package/dist/components/tasks/task-status.recipe.d.mts +62 -0
- package/dist/components/tasks/task-status.recipe.mjs +33 -0
- package/dist/components/tasks/tasks-panel.d.mts +22 -0
- package/dist/components/tasks/tasks-panel.mjs +114 -0
- package/dist/components/tasks/tasks-panel.recipe.mjs +36 -0
- package/dist/components/text/index.d.mts +2 -0
- package/dist/components/text/text.d.mts +186 -0
- package/dist/components/text/text.mjs +114 -0
- package/dist/components/text-link/index.d.mts +2 -0
- package/dist/components/text-link/text-link.d.mts +36 -0
- package/dist/components/text-link/text-link.mjs +60 -0
- package/dist/components/text-selection-toolbar/index.d.mts +3 -0
- package/dist/components/text-selection-toolbar/text-selection-anchor.d.mts +22 -0
- package/dist/components/text-selection-toolbar/text-selection-anchor.mjs +106 -0
- package/dist/components/text-selection-toolbar/text-selection-toolbar.d.mts +20 -0
- package/dist/components/text-selection-toolbar/text-selection-toolbar.mjs +41 -0
- package/dist/components/text-selection-toolbar/text-selection-toolbar.recipe.mjs +19 -0
- package/dist/components/textarea/index.d.mts +2 -0
- package/dist/components/textarea/textarea.d.mts +16 -0
- package/dist/components/textarea/textarea.mjs +62 -0
- package/dist/components/thread-panel/index.d.mts +2 -0
- package/dist/components/thread-panel/thread-panel.d.mts +31 -0
- package/dist/components/thread-panel/thread-panel.mjs +162 -0
- package/dist/components/thread-panel/thread-panel.recipe.mjs +36 -0
- package/dist/components/timeline/index.d.mts +2 -0
- package/dist/components/timeline/timeline.d.mts +44 -0
- package/dist/components/timeline/timeline.mjs +81 -0
- package/dist/components/toast/index.d.mts +2 -0
- package/dist/components/toast/toast.d.mts +263 -0
- package/dist/components/toast/toast.mjs +556 -0
- package/dist/components/toggle-group/index.d.mts +2 -0
- package/dist/components/toggle-group/toggle-group.d.mts +15 -0
- package/dist/components/toggle-group/toggle-group.mjs +64 -0
- package/dist/components/tooltip/index.d.mts +2 -0
- package/dist/components/tooltip/tooltip.d.mts +18 -0
- package/dist/components/tooltip/tooltip.mjs +197 -0
- package/dist/components/virtual-list/ItemColumns.mjs +37 -0
- package/dist/components/virtual-list/VirtualList.d.mts +4 -0
- package/dist/components/virtual-list/VirtualList.mjs +1401 -0
- package/dist/components/virtual-list/VirtualListContext.mjs +5 -0
- package/dist/components/virtual-list/hooks/use-event-callback.mjs +10 -0
- package/dist/components/virtual-list/hooks/use-ios-momentum-compensation.mjs +148 -0
- package/dist/components/virtual-list/hooks/use-keyboard-scroll.mjs +42 -0
- package/dist/components/virtual-list/hooks/use-latest-ref.mjs +10 -0
- package/dist/components/virtual-list/hooks/use-layout-effect-with-previous.mjs +16 -0
- package/dist/components/virtual-list/hooks/use-memo-with-previous.mjs +22 -0
- package/dist/components/virtual-list/hooks/use-non-passive-wheel.mjs +23 -0
- package/dist/components/virtual-list/hooks/use-non-virtual-content-resize.mjs +28 -0
- package/dist/components/virtual-list/hooks/use-scroll-anchor.mjs +55 -0
- package/dist/components/virtual-list/index.d.mts +5 -0
- package/dist/components/virtual-list/public-types.d.mts +341 -0
- package/dist/components/virtual-list/resize-observer/ResizeObserverWrapper.d.mts +5 -0
- package/dist/components/virtual-list/resize-observer/ResizeObserverWrapper.mjs +70 -0
- package/dist/components/virtual-list/resize-observer/resize-observer-delegate.d.mts +6 -0
- package/dist/components/virtual-list/resize-observer/resize-observer-delegate.mjs +54 -0
- package/dist/components/virtual-list/utils/align.mjs +19 -0
- package/dist/components/virtual-list/utils/constants.mjs +30 -0
- package/dist/components/virtual-list/utils/fenwick-tree.mjs +66 -0
- package/dist/components/virtual-list/utils/items-anchor.mjs +49 -0
- package/dist/components/virtual-list/utils/measure.mjs +77 -0
- package/dist/components/virtual-list/utils/platform.mjs +39 -0
- package/dist/components/virtual-list/utils/range.mjs +103 -0
- package/dist/components/virtual-list/utils/size-cache.mjs +35 -0
- package/dist/components/workspace-button/index.d.mts +2 -0
- package/dist/components/workspace-button/workspace-button.d.mts +9 -0
- package/dist/components/workspace-button/workspace-button.mjs +28 -0
- package/dist/index.d.mts +239 -4864
- package/dist/index.mjs +142 -17054
- package/dist/lib/chip-remove.mjs +17 -0
- package/dist/lib/data-attributes.d.mts +5 -0
- package/dist/lib/decision-width.mjs +9 -0
- package/dist/lib/default-native-button.mjs +8 -0
- package/dist/lib/desktop-media.mjs +10 -0
- package/dist/lib/drag-escape.mjs +37 -0
- package/dist/lib/frame-insets.mjs +127 -0
- package/dist/lib/head-edges.mjs +44 -0
- package/dist/lib/hud-text-action.mjs +10 -0
- package/dist/lib/inline-chip.mjs +30 -0
- package/dist/lib/input-modality.d.mts +36 -0
- package/dist/lib/input-modality.mjs +186 -0
- package/dist/lib/list-cell.mjs +21 -0
- package/dist/lib/located.d.mts +25 -0
- package/dist/lib/located.mjs +28 -0
- package/dist/lib/overlay-depth.d.mts +42 -0
- package/dist/lib/overlay-depth.mjs +59 -0
- package/dist/lib/phone-media.mjs +24 -0
- package/dist/lib/presence.d.mts +16 -0
- package/dist/lib/presence.mjs +16 -0
- package/dist/lib/row-tone.d.mts +8 -0
- package/dist/lib/search-hit.mjs +18 -0
- package/dist/lib/stacked-actions.mjs +112 -0
- package/dist/lib/styled-props.d.mts +15 -0
- package/dist/lib/tap-activation.mjs +133 -0
- package/dist/lib/theme/theme-context.d.mts +10 -0
- package/dist/lib/theme/theme-context.mjs +9 -0
- package/dist/lib/theme/theme-provider.d.mts +23 -0
- package/dist/lib/theme/theme-provider.mjs +61 -0
- package/dist/lib/theme/theme-scope.mjs +19 -0
- package/dist/lib/theme/use-theme.d.mts +5 -0
- package/dist/lib/theme/use-theme.mjs +9 -0
- package/dist/lib/touch-drag.d.mts +55 -0
- package/dist/lib/touch-drag.mjs +151 -0
- package/dist/lib/truncation.d.mts +26 -0
- package/dist/lib/truncation.mjs +153 -0
- package/dist/lib/tv.d.mts +2 -0
- package/dist/lib/tv.mjs +14 -0
- package/dist/lib/use-copy-to-clipboard.mjs +58 -0
- package/dist/lib/use-merged-ref.mjs +60 -0
- package/dist/lib/use-mobile-viewport.mjs +17 -0
- package/dist/lib/use-overflow-title.mjs +49 -0
- package/dist/lib/use-scrollbar-size.d.mts +16 -0
- package/dist/lib/use-scrollbar-size.mjs +46 -0
- package/dist/lib/use-truncated.d.mts +20 -0
- package/dist/lib/use-truncated.mjs +34 -0
- package/dist/lib/without-children.d.mts +8 -0
- package/dist/wip.d.mts +61 -1190
- package/dist/wip.mjs +43 -2970
- package/package.json +8 -1
- package/dist/index-C3ymUW98.d.mts +0 -1816
- package/dist/mode-bar-tGnYByXp.mjs +0 -7564
- package/dist/style.css +0 -1395
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
//#region src/components/logo/raft-logo.tsx
|
|
3
|
+
function RaftLogo(props) {
|
|
4
|
+
return /* @__PURE__ */ jsx("svg", {
|
|
5
|
+
viewBox: "0 0 113 104",
|
|
6
|
+
fill: "none",
|
|
7
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
8
|
+
...props,
|
|
9
|
+
children: /* @__PURE__ */ jsx(RaftMarkArtwork, {})
|
|
10
|
+
});
|
|
11
|
+
}
|
|
12
|
+
function RaftWordmark(props) {
|
|
13
|
+
return /* @__PURE__ */ jsx("svg", {
|
|
14
|
+
viewBox: "128 0 294 104",
|
|
15
|
+
fill: "none",
|
|
16
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
17
|
+
...props,
|
|
18
|
+
children: /* @__PURE__ */ jsx(RaftWordmarkArtwork, {})
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
function RaftLogoLockup(props) {
|
|
22
|
+
return /* @__PURE__ */ jsxs("svg", {
|
|
23
|
+
viewBox: "0 0 422 104",
|
|
24
|
+
fill: "none",
|
|
25
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
26
|
+
...props,
|
|
27
|
+
children: [/* @__PURE__ */ jsx(RaftMarkArtwork, {}), /* @__PURE__ */ jsx(RaftWordmarkArtwork, {})]
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
function RaftMarkArtwork() {
|
|
31
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
32
|
+
/* @__PURE__ */ jsx("path", {
|
|
33
|
+
fill: "#141111",
|
|
34
|
+
d: "m112.754 38.743-3.954-22.44c-.572-3.208-2.477-5.797-5.003-7.845-1.254-1.017-5.717-4.876-7.527-6.273C93.713.184 90.362-.325 87.186.184L21.82 11.84c-4.94.73-8.878 1.636-11.91 5.75-3.51 4.748-2.478 9.337-1.652 14.022l3.08 17.517c.128.715.334 1.382.556 2.033-4.32.762-7.734 2.318-9.814 5.383-2.255 3.32-2.43 5.75-1.684 10.005l3.526 20.01c.905 4.209 4.113 6.369 8.782 10.561 5.416 4.828 7.56 7.528 12.975 6.575l70.623-12.45c6.59-1.176 11.005-7.465 9.846-14.055l-3.875-22.012a12 12 0 0 0-.588-2.143l1.287-.239c6.543-1.19 10.926-7.495 9.782-14.038z"
|
|
35
|
+
}),
|
|
36
|
+
/* @__PURE__ */ jsx("path", {
|
|
37
|
+
fill: "#fffaef",
|
|
38
|
+
d: "M18.326 87.196 85.17 75.412a4.004 4.004 0 0 0 3.256-4.653l-3.208-18.232a4.004 4.004 0 0 0-4.653-3.255c-2.192.38-4.653.826-5.892 1.048-1.954.35-5.273-.858-5.844-4.066l-1.033-5.844-28.919 31.508c-.905.826-2.97 1.922-5.114 1.413-1.858-.444-3.208-2.064-3.541-3.938l-1.922-10.91-14.578 2.573c-2.192.397-3.653 2.477-3.272 4.653l3.208 18.215a4.004 4.004 0 0 0 4.653 3.256z"
|
|
39
|
+
}),
|
|
40
|
+
/* @__PURE__ */ jsx("path", {
|
|
41
|
+
fill: "#fffaef",
|
|
42
|
+
d: "M20.915 45.508c.397 2.192 2.477 3.653 4.653 3.271l5.923-1.048c2.732-.476 5.336 1.35 5.813 4.066l1.032 5.844 28.92-31.508a5.03 5.03 0 0 1 5.113-1.413 5.05 5.05 0 0 1 3.541 3.938l1.922 10.879 13.944-2.541a4.024 4.024 0 0 0 3.24-4.653l-3.288-18.66a4.01 4.01 0 0 0-4.67-3.256L20.868 22.195c-2.192.38-3.637 2.477-3.256 4.653L20.9 45.492z"
|
|
43
|
+
})
|
|
44
|
+
] });
|
|
45
|
+
}
|
|
46
|
+
function RaftWordmarkArtwork() {
|
|
47
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
48
|
+
/* @__PURE__ */ jsx("path", {
|
|
49
|
+
fill: "#141111",
|
|
50
|
+
d: "M190.396 17.32c8.719 0 17.39 3.747 14.897 15.642-.715 3.399-2.271 6.289-4.701 8.703q-3.645 3.597-9.767 6.336c5.495 1.906 8.258 6.528 7.845 13.849-.444 7.734-1.064 17.93-1.064 17.93h-22.503c.54-7.036 1.747-17.168-.27-20.328-1.858-2.922-9.179-1.35-9.179-1.35l-4.574 21.677s-21.661.08-21.757 0l13.134-62.444h37.939zM176.119 29.5h-4.51s-2.922 13.53-3.192 15.389c8.338-.19 14.785-3.383 16.278-8.989 1.699-6.4-5.129-6.4-8.576-6.4M274.756 79.875h-23.551l-.191-12.42-16.087.16-4.876 12.26h-24.314l29.46-62.603h33.096zm-23.583-27.268-.111-21.058h-3.272l-8.226 21.042h11.609zM339.011 33.042h-23.615l-2.113 10.052h22.52l-3.701 16.294h-22.249l-4.288 20.407h-21.757l13.118-62.317h45.483l-3.382 15.563zM401.232 34.264h-16.389l-9.576 45.531-21.598-.08 9.56-45.45h-15.182l3.446-16.787h52.344l-2.62 16.786z"
|
|
51
|
+
}),
|
|
52
|
+
/* @__PURE__ */ jsx("path", {
|
|
53
|
+
fill: "#141111",
|
|
54
|
+
d: "M419.051 17.002c-1.287-1.493-5.511-5.48-6.75-6.75-2.271-2.334-5.193-3.89-8.448-3.89H296.91a11.116 11.116 0 0 0-10.878 8.83l-.89 4.192c-1.254-2.732-3.462-4.272-5.574-6.4-3.255-3.256-6.479-6.845-11.275-6.845h-33.096a11.11 11.11 0 0 0-10.053 6.384l-5.13 10.895c-.381-.572-.746-1.128-1.159-1.588-1.715-1.859-5.669-5.67-6.749-6.75-5.209-5.24-12.372-8.893-21.694-8.893h-37.939a11.12 11.12 0 0 0-10.879 8.83L128.461 77.46a11.1 11.1 0 0 0 3.303 10.433c1.302 1.207 5.431 5.527 6.749 6.75 3.224 3.001 5.972 3.08 10.99 3.08h18.39c2.62 0 5.05-1.032 6.972-2.588 1.969 1.604 4.447 2.589 7.003 2.589h59.411c2.366 0 4.24-.763 5.971-2.589 2.033 2.271 3.335 2.589 7.719 2.589l57.346-.064c5.256 0 9.798-3.684 10.878-8.83l2.446-11.577h17.199l-.032.175c-.683 3.271-.032 6.813 2.239 9.274 1.461 1.588 5.686 5.654 6.75 6.75 2.318 2.414 5.256 4.113 8.607 4.129l21.598.08h.048c5.257 0 9.799-3.685 10.879-8.83l7.718-36.702h7.369c5.478 0 10.132-3.986 10.989-9.401l2.621-16.786a11.08 11.08 0 0 0-2.541-8.941z"
|
|
55
|
+
}),
|
|
56
|
+
/* @__PURE__ */ jsx("path", {
|
|
57
|
+
fill: "#fffaef",
|
|
58
|
+
d: "M190.396 17.32c8.719 0 17.39 3.747 14.897 15.642-.715 3.399-2.271 6.289-4.701 8.703q-3.645 3.597-9.767 6.336c5.495 1.906 8.258 6.528 7.845 13.849-.444 7.734-1.064 17.93-1.064 17.93h-22.503c.54-7.036 1.747-17.168-.27-20.328-1.858-2.922-9.179-1.35-9.179-1.35l-4.574 21.677s-21.661.08-21.757 0l13.134-62.444h37.939zM176.119 29.5h-4.51s-2.922 13.53-3.192 15.389c8.338-.19 14.785-3.383 16.278-8.989 1.699-6.4-5.129-6.4-8.576-6.4M274.756 79.875h-23.551l-.191-12.42-16.087.16-4.876 12.26h-24.314l29.46-62.603h33.096zm-23.583-27.268-.111-21.058h-3.272l-8.226 21.042h11.609zM339.011 33.042h-23.615l-2.113 10.052h22.52l-3.701 16.294h-22.249l-4.288 20.407h-21.757l13.118-62.317h45.483l-3.382 15.563zM401.232 34.264h-16.389l-9.576 45.531-21.598-.08 9.56-45.45h-15.182l3.446-16.787h52.344l-2.62 16.786z"
|
|
59
|
+
})
|
|
60
|
+
] });
|
|
61
|
+
}
|
|
62
|
+
//#endregion
|
|
63
|
+
export { RaftLogo, RaftLogoLockup, RaftWordmark };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { MarkdownBlockquote, MarkdownBlockquoteProps, MarkdownCell, MarkdownCellProps, MarkdownCheckbox, MarkdownCheckboxProps, MarkdownHeaderCell, MarkdownHeaderCellProps, MarkdownHeading, MarkdownHeadingLevel, MarkdownHeadingProps, MarkdownImage, MarkdownImageProps, MarkdownInlineCode, MarkdownInlineCodeProps, MarkdownLink, MarkdownLinkProps, MarkdownList, MarkdownListItem, MarkdownListItemProps, MarkdownListProps, MarkdownMark, MarkdownMarkProps, MarkdownOrderedList, MarkdownOrderedListProps, MarkdownParagraph, MarkdownParagraphProps, MarkdownRule, MarkdownRuleProps, MarkdownTable, MarkdownTableProps, MarkdownTableRow, MarkdownTableRowProps, MarkdownTableScroll, MarkdownTableScrollProps } from "./markdown-parts.mjs";
|
|
2
|
+
export { MarkdownBlockquote, type MarkdownBlockquoteProps, MarkdownCell, type MarkdownCellProps, MarkdownCheckbox, type MarkdownCheckboxProps, MarkdownHeaderCell, type MarkdownHeaderCellProps, MarkdownHeading, type MarkdownHeadingLevel, type MarkdownHeadingProps, MarkdownImage, type MarkdownImageProps, MarkdownInlineCode, type MarkdownInlineCodeProps, MarkdownLink, type MarkdownLinkProps, MarkdownList, MarkdownListItem, type MarkdownListItemProps, type MarkdownListProps, MarkdownMark, type MarkdownMarkProps, MarkdownOrderedList, type MarkdownOrderedListProps, MarkdownParagraph, type MarkdownParagraphProps, MarkdownRule, type MarkdownRuleProps, MarkdownTable, type MarkdownTableProps, MarkdownTableRow, type MarkdownTableRowProps, MarkdownTableScroll, type MarkdownTableScrollProps };
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { CheckboxProps } from "../checkbox/checkbox.mjs";
|
|
2
|
+
import "../checkbox/index.mjs";
|
|
3
|
+
import { InlineCodeProps } from "../inline-code/inline-code.mjs";
|
|
4
|
+
import "../inline-code/index.mjs";
|
|
5
|
+
import { ComponentPropsWithRef } from "react";
|
|
6
|
+
//#region src/components/markdown/markdown-parts.d.ts
|
|
7
|
+
declare const HEADING_TAGS: {
|
|
8
|
+
readonly 1: "h1";
|
|
9
|
+
readonly 2: "h2";
|
|
10
|
+
readonly 3: "h3";
|
|
11
|
+
readonly 4: "h4";
|
|
12
|
+
readonly 5: "h5";
|
|
13
|
+
readonly 6: "h6";
|
|
14
|
+
};
|
|
15
|
+
export type MarkdownHeadingLevel = keyof typeof HEADING_TAGS;
|
|
16
|
+
export type MarkdownHeadingProps = ComponentPropsWithRef<"h1"> & {
|
|
17
|
+
level: MarkdownHeadingLevel;
|
|
18
|
+
};
|
|
19
|
+
export declare function MarkdownHeading({ className, level, ...props }: MarkdownHeadingProps): import("react").JSX.Element;
|
|
20
|
+
export type MarkdownParagraphProps = ComponentPropsWithRef<"p">;
|
|
21
|
+
export declare function MarkdownParagraph({ className, ...props }: MarkdownParagraphProps): import("react").JSX.Element;
|
|
22
|
+
export type MarkdownLinkProps = ComponentPropsWithRef<"a">;
|
|
23
|
+
export declare function MarkdownLink({ className, ...props }: MarkdownLinkProps): import("react").JSX.Element;
|
|
24
|
+
export type MarkdownMarkProps = ComponentPropsWithRef<"mark">;
|
|
25
|
+
export declare function MarkdownMark({ className, ...props }: MarkdownMarkProps): import("react").JSX.Element;
|
|
26
|
+
export type MarkdownListProps = ComponentPropsWithRef<"ul">;
|
|
27
|
+
export declare function MarkdownList({ className, ...props }: MarkdownListProps): import("react").JSX.Element;
|
|
28
|
+
export type MarkdownOrderedListProps = ComponentPropsWithRef<"ol">;
|
|
29
|
+
export declare function MarkdownOrderedList({ className, ...props }: MarkdownOrderedListProps): import("react").JSX.Element;
|
|
30
|
+
export type MarkdownListItemProps = ComponentPropsWithRef<"li">;
|
|
31
|
+
export declare function MarkdownListItem({ className, ...props }: MarkdownListItemProps): import("react").JSX.Element;
|
|
32
|
+
export type MarkdownBlockquoteProps = ComponentPropsWithRef<"blockquote">;
|
|
33
|
+
export declare function MarkdownBlockquote({ className, ...props }: MarkdownBlockquoteProps): import("react").JSX.Element;
|
|
34
|
+
export type MarkdownRuleProps = ComponentPropsWithRef<"hr">;
|
|
35
|
+
export declare function MarkdownRule({ className, ...props }: MarkdownRuleProps): import("react").JSX.Element;
|
|
36
|
+
export type MarkdownTableScrollProps = ComponentPropsWithRef<"div">;
|
|
37
|
+
/** Horizontal scroll container for wide tables. */
|
|
38
|
+
export declare function MarkdownTableScroll({ className, ...props }: MarkdownTableScrollProps): import("react").JSX.Element;
|
|
39
|
+
export type MarkdownTableProps = ComponentPropsWithRef<"table">;
|
|
40
|
+
export declare function MarkdownTable({ className, ...props }: MarkdownTableProps): import("react").JSX.Element;
|
|
41
|
+
export type MarkdownTableRowProps = ComponentPropsWithRef<"tr">;
|
|
42
|
+
export declare function MarkdownTableRow({ className, ...props }: MarkdownTableRowProps): import("react").JSX.Element;
|
|
43
|
+
export type MarkdownHeaderCellProps = ComponentPropsWithRef<"th">;
|
|
44
|
+
export declare function MarkdownHeaderCell({ className, ...props }: MarkdownHeaderCellProps): import("react").JSX.Element;
|
|
45
|
+
export type MarkdownCellProps = ComponentPropsWithRef<"td">;
|
|
46
|
+
export declare function MarkdownCell({ className, ...props }: MarkdownCellProps): import("react").JSX.Element;
|
|
47
|
+
export type MarkdownImageProps = ComponentPropsWithRef<"img">;
|
|
48
|
+
export declare function MarkdownImage({ className, ...props }: MarkdownImageProps): import("react").JSX.Element;
|
|
49
|
+
export type MarkdownInlineCodeProps = InlineCodeProps;
|
|
50
|
+
export declare function MarkdownInlineCode({ className, ...props }: MarkdownInlineCodeProps): import("react").JSX.Element;
|
|
51
|
+
export type MarkdownCheckboxProps = CheckboxProps;
|
|
52
|
+
/** Task-list checkbox. Markdown task items are display-only, so it defaults to read-only. */
|
|
53
|
+
export declare function MarkdownCheckbox({ className, ...props }: MarkdownCheckboxProps): import("react").JSX.Element;
|
|
54
|
+
//#endregion
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
import { Checkbox } from "../checkbox/checkbox.mjs";
|
|
2
|
+
import { InlineCode } from "../inline-code/inline-code.mjs";
|
|
3
|
+
import { markdown } from "./markdown.recipe.mjs";
|
|
4
|
+
import { jsx } from "react/jsx-runtime";
|
|
5
|
+
//#region src/components/markdown/markdown-parts.tsx
|
|
6
|
+
const HEADING_TAGS = {
|
|
7
|
+
1: "h1",
|
|
8
|
+
2: "h2",
|
|
9
|
+
3: "h3",
|
|
10
|
+
4: "h4",
|
|
11
|
+
5: "h5",
|
|
12
|
+
6: "h6"
|
|
13
|
+
};
|
|
14
|
+
function MarkdownHeading({ className, level, ...props }) {
|
|
15
|
+
const { heading } = markdown({ level });
|
|
16
|
+
const Tag = HEADING_TAGS[level];
|
|
17
|
+
return /* @__PURE__ */ jsx(Tag, {
|
|
18
|
+
"data-slot": "markdown-heading",
|
|
19
|
+
className: heading({ className }),
|
|
20
|
+
...props
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
function MarkdownParagraph({ className, ...props }) {
|
|
24
|
+
const { paragraph } = markdown();
|
|
25
|
+
return /* @__PURE__ */ jsx("p", {
|
|
26
|
+
"data-slot": "markdown-paragraph",
|
|
27
|
+
className: paragraph({ className }),
|
|
28
|
+
...props
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
function MarkdownLink({ className, ...props }) {
|
|
32
|
+
const { link } = markdown();
|
|
33
|
+
return /* @__PURE__ */ jsx("a", {
|
|
34
|
+
"data-slot": "markdown-link",
|
|
35
|
+
className: link({ className }),
|
|
36
|
+
...props
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
function MarkdownMark({ className, ...props }) {
|
|
40
|
+
const { mark } = markdown();
|
|
41
|
+
return /* @__PURE__ */ jsx("mark", {
|
|
42
|
+
"data-slot": "markdown-mark",
|
|
43
|
+
className: mark({ className }),
|
|
44
|
+
...props
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
function MarkdownList({ className, ...props }) {
|
|
48
|
+
const { list } = markdown();
|
|
49
|
+
return /* @__PURE__ */ jsx("ul", {
|
|
50
|
+
"data-slot": "markdown-list",
|
|
51
|
+
className: list({ className }),
|
|
52
|
+
...props
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
function MarkdownOrderedList({ className, ...props }) {
|
|
56
|
+
const { list } = markdown({ ordered: true });
|
|
57
|
+
return /* @__PURE__ */ jsx("ol", {
|
|
58
|
+
"data-slot": "markdown-list",
|
|
59
|
+
className: list({ className }),
|
|
60
|
+
...props
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
function MarkdownListItem({ className, ...props }) {
|
|
64
|
+
const { listItem } = markdown();
|
|
65
|
+
return /* @__PURE__ */ jsx("li", {
|
|
66
|
+
"data-slot": "markdown-list-item",
|
|
67
|
+
className: listItem({ className }),
|
|
68
|
+
...props
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
function MarkdownBlockquote({ className, ...props }) {
|
|
72
|
+
const { blockquote } = markdown();
|
|
73
|
+
return /* @__PURE__ */ jsx("blockquote", {
|
|
74
|
+
"data-slot": "markdown-blockquote",
|
|
75
|
+
className: blockquote({ className }),
|
|
76
|
+
...props
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
function MarkdownRule({ className, ...props }) {
|
|
80
|
+
const { rule } = markdown();
|
|
81
|
+
return /* @__PURE__ */ jsx("hr", {
|
|
82
|
+
"data-slot": "markdown-rule",
|
|
83
|
+
className: rule({ className }),
|
|
84
|
+
...props
|
|
85
|
+
});
|
|
86
|
+
}
|
|
87
|
+
/** Horizontal scroll container for wide tables. */
|
|
88
|
+
function MarkdownTableScroll({ className, ...props }) {
|
|
89
|
+
const { tableScroll } = markdown();
|
|
90
|
+
return /* @__PURE__ */ jsx("div", {
|
|
91
|
+
"data-slot": "markdown-table-scroll",
|
|
92
|
+
className: tableScroll({ className }),
|
|
93
|
+
...props
|
|
94
|
+
});
|
|
95
|
+
}
|
|
96
|
+
function MarkdownTable({ className, ...props }) {
|
|
97
|
+
const { table } = markdown();
|
|
98
|
+
return /* @__PURE__ */ jsx("table", {
|
|
99
|
+
"data-slot": "markdown-table",
|
|
100
|
+
className: table({ className }),
|
|
101
|
+
...props
|
|
102
|
+
});
|
|
103
|
+
}
|
|
104
|
+
function MarkdownTableRow({ className, ...props }) {
|
|
105
|
+
const { tableRow } = markdown();
|
|
106
|
+
return /* @__PURE__ */ jsx("tr", {
|
|
107
|
+
"data-slot": "markdown-table-row",
|
|
108
|
+
className: tableRow({ className }),
|
|
109
|
+
...props
|
|
110
|
+
});
|
|
111
|
+
}
|
|
112
|
+
function MarkdownHeaderCell({ className, ...props }) {
|
|
113
|
+
const { headerCell } = markdown();
|
|
114
|
+
return /* @__PURE__ */ jsx("th", {
|
|
115
|
+
"data-slot": "markdown-header-cell",
|
|
116
|
+
className: headerCell({ className }),
|
|
117
|
+
...props
|
|
118
|
+
});
|
|
119
|
+
}
|
|
120
|
+
function MarkdownCell({ className, ...props }) {
|
|
121
|
+
const { cell } = markdown();
|
|
122
|
+
return /* @__PURE__ */ jsx("td", {
|
|
123
|
+
"data-slot": "markdown-cell",
|
|
124
|
+
className: cell({ className }),
|
|
125
|
+
...props
|
|
126
|
+
});
|
|
127
|
+
}
|
|
128
|
+
function MarkdownImage({ className, ...props }) {
|
|
129
|
+
const { image } = markdown();
|
|
130
|
+
return /* @__PURE__ */ jsx("img", {
|
|
131
|
+
"data-slot": "markdown-image",
|
|
132
|
+
className: image({ className }),
|
|
133
|
+
...props
|
|
134
|
+
});
|
|
135
|
+
}
|
|
136
|
+
function MarkdownInlineCode({ className, ...props }) {
|
|
137
|
+
const { inlineCode } = markdown();
|
|
138
|
+
return /* @__PURE__ */ jsx(InlineCode, {
|
|
139
|
+
className: inlineCode({ className }),
|
|
140
|
+
...props
|
|
141
|
+
});
|
|
142
|
+
}
|
|
143
|
+
/** Task-list checkbox. Markdown task items are display-only, so it defaults to read-only. */
|
|
144
|
+
function MarkdownCheckbox({ className, ...props }) {
|
|
145
|
+
const { checkbox } = markdown();
|
|
146
|
+
return /* @__PURE__ */ jsx(Checkbox, {
|
|
147
|
+
readOnly: true,
|
|
148
|
+
className: checkbox({ className }),
|
|
149
|
+
...props
|
|
150
|
+
});
|
|
151
|
+
}
|
|
152
|
+
//#endregion
|
|
153
|
+
export { MarkdownBlockquote, MarkdownCell, MarkdownCheckbox, MarkdownHeaderCell, MarkdownHeading, MarkdownImage, MarkdownInlineCode, MarkdownLink, MarkdownList, MarkdownListItem, MarkdownMark, MarkdownOrderedList, MarkdownParagraph, MarkdownRule, MarkdownTable, MarkdownTableRow, MarkdownTableScroll };
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { tv } from "../../lib/tv.mjs";
|
|
2
|
+
import { searchHit } from "../../lib/search-hit.mjs";
|
|
3
|
+
//#region src/components/markdown/markdown.recipe.ts
|
|
4
|
+
const markdown = tv({
|
|
5
|
+
slots: {
|
|
6
|
+
heading: ["leading-tight", "font-bold text-foreground"],
|
|
7
|
+
paragraph: ["mb-1 last:mb-0"],
|
|
8
|
+
link: [
|
|
9
|
+
"select-text underline decoration-2 underline-offset-2",
|
|
10
|
+
"rounded-[2px]",
|
|
11
|
+
"text-foreground-link hover:text-[color-mix(in_oklab,var(--foreground-link)_80%,var(--foreground))]",
|
|
12
|
+
"decoration-foreground-link/40 hover:decoration-current",
|
|
13
|
+
"outline-none focus-visible:shadow-focus"
|
|
14
|
+
],
|
|
15
|
+
mark: searchHit,
|
|
16
|
+
list: ["mb-1 pl-5"],
|
|
17
|
+
listItem: ["mb-0.5"],
|
|
18
|
+
blockquote: ["my-1 border-l-2 border-line-seam pl-2.5", "text-foreground-muted not-italic"],
|
|
19
|
+
rule: ["my-3 border-0 border-t border-line-hairline"],
|
|
20
|
+
tableScroll: [
|
|
21
|
+
"overflow-x-auto",
|
|
22
|
+
"my-2 w-fit max-w-full",
|
|
23
|
+
"rounded-container border border-line-hairline bg-layer-card"
|
|
24
|
+
],
|
|
25
|
+
table: ["border-collapse", "border-0 text-callout"],
|
|
26
|
+
tableRow: ["last:[&>td]:border-b-0"],
|
|
27
|
+
headerCell: [
|
|
28
|
+
"px-3 py-1.5",
|
|
29
|
+
"border-0 border-b border-line-hairline not-last:border-r",
|
|
30
|
+
"bg-fill-muted",
|
|
31
|
+
"text-left font-semibold whitespace-nowrap text-foreground"
|
|
32
|
+
],
|
|
33
|
+
cell: ["px-3 py-1.5", "border-0 border-b border-line-hairline not-last:border-r"],
|
|
34
|
+
checkbox: ["mr-1.5 align-middle"],
|
|
35
|
+
image: ["image-transparency-bg max-w-full", "my-2 rounded-container border border-line-hairline"],
|
|
36
|
+
inlineCode: ["inline leading-[inherit] wrap-anywhere"]
|
|
37
|
+
},
|
|
38
|
+
variants: {
|
|
39
|
+
level: {
|
|
40
|
+
1: { heading: "mt-3 mb-1 text-[1.286em]" },
|
|
41
|
+
2: { heading: "mt-2 mb-1 text-[1.143em]" },
|
|
42
|
+
3: { heading: "mt-2 mb-1 text-[1.071em]" },
|
|
43
|
+
4: { heading: "mt-1 mb-0.5 text-[1em]" },
|
|
44
|
+
5: { heading: "mt-1 mb-0.5 text-[1em]" },
|
|
45
|
+
6: { heading: "mt-1 mb-0.5 text-[1em]" }
|
|
46
|
+
},
|
|
47
|
+
ordered: {
|
|
48
|
+
false: { list: "list-disc" },
|
|
49
|
+
true: { list: "list-decimal" }
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
compoundVariants: [
|
|
53
|
+
{
|
|
54
|
+
level: 1,
|
|
55
|
+
class: { heading: "mt-4 mb-1 text-title" }
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
level: 2,
|
|
59
|
+
class: { heading: "mt-3 mb-1 text-headline" }
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
level: 3,
|
|
63
|
+
class: { heading: "mt-3 mb-0.5 text-subhead font-bold" }
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
level: [
|
|
67
|
+
4,
|
|
68
|
+
5,
|
|
69
|
+
6
|
|
70
|
+
],
|
|
71
|
+
class: { heading: "mt-2 mb-0.5 text-footnote font-bold text-foreground-muted" }
|
|
72
|
+
}
|
|
73
|
+
],
|
|
74
|
+
defaultVariants: { ordered: false }
|
|
75
|
+
});
|
|
76
|
+
//#endregion
|
|
77
|
+
export { markdown };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { MessageActionCard, MessageActionCardActions, MessageActionCardActionsNote, MessageActionCardActionsNoteProps, MessageActionCardActionsProps, MessageActionCardCollapseTrigger, MessageActionCardCollapseTriggerProps, MessageActionCardCompletion, MessageActionCardCompletionProps, MessageActionCardContent, MessageActionCardContentProps, MessageActionCardHeader, MessageActionCardHeaderDescription, MessageActionCardHeaderDescriptionProps, MessageActionCardHeaderIcon, MessageActionCardHeaderIconProps, MessageActionCardHeaderProps, MessageActionCardHeaderStatus, MessageActionCardHeaderStatusProps, MessageActionCardHeaderTitle, MessageActionCardHeaderTitleProps, MessageActionCardHint, MessageActionCardHintLabel, MessageActionCardHintLabelProps, MessageActionCardHintProps, MessageActionCardNotice, MessageActionCardNoticeProps, MessageActionCardProperties, MessageActionCardPropertiesProps, MessageActionCardProperty, MessageActionCardPropertyLabel, MessageActionCardPropertyLabelProps, MessageActionCardPropertyProps, MessageActionCardPropertyValue, MessageActionCardPropertyValueProps, MessageActionCardProps, MessageActionCardScope, MessageActionCardScopeDescription, MessageActionCardScopeDescriptionProps, MessageActionCardScopeList, MessageActionCardScopeListLabel, MessageActionCardScopeListLabelProps, MessageActionCardScopeListProps, MessageActionCardScopeListViewport, MessageActionCardScopeListViewportProps, MessageActionCardScopeName, MessageActionCardScopeNameProps, MessageActionCardScopeProps, MessageActionCardStatus, MessageActionCardStatusProps } from "./message-action-card.mjs";
|
|
2
|
+
export { MessageActionCard, MessageActionCardActions, MessageActionCardActionsNote, type MessageActionCardActionsNoteProps, type MessageActionCardActionsProps, MessageActionCardCollapseTrigger, type MessageActionCardCollapseTriggerProps, MessageActionCardCompletion, type MessageActionCardCompletionProps, MessageActionCardContent, type MessageActionCardContentProps, MessageActionCardHeader, MessageActionCardHeaderDescription, type MessageActionCardHeaderDescriptionProps, MessageActionCardHeaderIcon, type MessageActionCardHeaderIconProps, type MessageActionCardHeaderProps, MessageActionCardHeaderStatus, type MessageActionCardHeaderStatusProps, MessageActionCardHeaderTitle, type MessageActionCardHeaderTitleProps, MessageActionCardHint, MessageActionCardHintLabel, type MessageActionCardHintLabelProps, type MessageActionCardHintProps, MessageActionCardNotice, type MessageActionCardNoticeProps, MessageActionCardProperties, type MessageActionCardPropertiesProps, MessageActionCardProperty, MessageActionCardPropertyLabel, type MessageActionCardPropertyLabelProps, type MessageActionCardPropertyProps, MessageActionCardPropertyValue, type MessageActionCardPropertyValueProps, type MessageActionCardProps, MessageActionCardScope, MessageActionCardScopeDescription, type MessageActionCardScopeDescriptionProps, MessageActionCardScopeList, MessageActionCardScopeListLabel, type MessageActionCardScopeListLabelProps, type MessageActionCardScopeListProps, MessageActionCardScopeListViewport, type MessageActionCardScopeListViewportProps, MessageActionCardScopeName, type MessageActionCardScopeNameProps, type MessageActionCardScopeProps, MessageActionCardStatus, type MessageActionCardStatusProps };
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { tv } from "../../lib/tv.mjs";
|
|
2
|
+
//#region src/components/message-action-card/message-action-card-content.recipe.ts
|
|
3
|
+
const messageActionCardContent = tv({ slots: {
|
|
4
|
+
root: ["p-3", "@container/action-card flex flex-col gap-2 px-3 pt-0 pb-3"],
|
|
5
|
+
panel: [
|
|
6
|
+
"h-(--collapsible-panel-height) overflow-hidden",
|
|
7
|
+
"transition-[height] duration-200 ease-out motion-reduce:transition-none",
|
|
8
|
+
"data-starting-style:h-0 data-ending-style:h-0"
|
|
9
|
+
],
|
|
10
|
+
properties: [
|
|
11
|
+
"m-0 grid",
|
|
12
|
+
"@max-sm/action-card:grid-cols-1",
|
|
13
|
+
"grid-cols-[minmax(88px,max-content)_minmax(0,1fr)] items-baseline gap-x-4 gap-y-0.5"
|
|
14
|
+
],
|
|
15
|
+
property: ["contents"],
|
|
16
|
+
propertyLabel: [
|
|
17
|
+
"max-w-40 min-w-0 wrap-break-word",
|
|
18
|
+
"text-footnote font-medium text-foreground-hint",
|
|
19
|
+
"[[data-slot=message-action-card-property]+[data-slot=message-action-card-property]>&]:@max-sm/action-card:mt-2"
|
|
20
|
+
],
|
|
21
|
+
propertyValue: [
|
|
22
|
+
"m-0 min-w-0 wrap-break-word",
|
|
23
|
+
"min-h-8 py-1.5 text-callout text-foreground",
|
|
24
|
+
"@max-sm/action-card:min-h-0 @max-sm/action-card:py-0"
|
|
25
|
+
],
|
|
26
|
+
scopeList: ["mt-0 stack-y-1.5"],
|
|
27
|
+
scopeListViewport: ["overflow-y-auto overscroll-contain", "max-h-[164px] stack-y-1.5 pr-1"],
|
|
28
|
+
scopeListLabel: ["text-footnote font-medium text-foreground-hint"],
|
|
29
|
+
scope: ["min-w-0 border p-1.5", "rounded-control border-line-hairline bg-layer-card px-2.5 py-2"],
|
|
30
|
+
scopeName: ["break-all font-mono", "text-mono-meta font-normal text-foreground"],
|
|
31
|
+
scopeDescription: ["mt-0.5 text-footnote text-pretty text-foreground-muted"],
|
|
32
|
+
hintLabel: ["text-footnote font-medium text-foreground-hint"],
|
|
33
|
+
hint: [
|
|
34
|
+
"border-l-2 border-line-seam pl-2.5",
|
|
35
|
+
"text-footnote text-foreground-muted",
|
|
36
|
+
"[[data-slot=message-action-card-hint-label]+&]:-mt-1"
|
|
37
|
+
],
|
|
38
|
+
notice: [
|
|
39
|
+
"flex items-start gap-2",
|
|
40
|
+
"[&>svg]:size-3.5 [&>svg]:shrink-0",
|
|
41
|
+
"mb-0 rounded-control bg-fill-muted px-2.5 py-2",
|
|
42
|
+
"text-footnote text-foreground-muted",
|
|
43
|
+
"[&>svg]:mt-[calc((1lh-14px)/2)] [&>svg]:text-foreground-muted"
|
|
44
|
+
],
|
|
45
|
+
completion: ["inline-flex items-center gap-1.5 text-footnote text-foreground-muted", "[&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:text-foreground"],
|
|
46
|
+
actions: ["flex flex-wrap items-center justify-end", "mt-1 gap-2"],
|
|
47
|
+
actionsNote: ["min-w-0 flex-1 basis-40", "text-footnote text-foreground-muted"]
|
|
48
|
+
} });
|
|
49
|
+
//#endregion
|
|
50
|
+
export { messageActionCardContent };
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { BadgeProps } from "../badge/badge.mjs";
|
|
2
|
+
import "../badge/index.mjs";
|
|
3
|
+
import { ComponentProps, ReactNode } from "react";
|
|
4
|
+
import { useRender } from "@base-ui/react/use-render";
|
|
5
|
+
import { Collapsible } from "@base-ui/react/collapsible";
|
|
6
|
+
//#region src/components/message-action-card/message-action-card.d.ts
|
|
7
|
+
/**
|
|
8
|
+
* The card is a disclosure: open by default, and a consumer can fold a
|
|
9
|
+
* resolved or view-only card to its header with `defaultOpen={false}` (or
|
|
10
|
+
* control it with `open` / `onOpenChange`). The fold is offered by placing a
|
|
11
|
+
* MessageActionCardCollapseTrigger in the header; without one the card simply
|
|
12
|
+
* stays open.
|
|
13
|
+
*/
|
|
14
|
+
export declare function MessageActionCard({ className, render, open, defaultOpen, onOpenChange, ...props }: MessageActionCardProps): import("react").JSX.Element;
|
|
15
|
+
export declare function MessageActionCardContent({ className, render, ...props }: useRender.ComponentProps<"div">): import("react").JSX.Element;
|
|
16
|
+
/** The card type's icon. Without children it shows a generic action icon. */
|
|
17
|
+
export declare function MessageActionCardHeaderIcon({ className, render, children, ...props }: useRender.ComponentProps<"span">): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
|
|
18
|
+
export declare function MessageActionCardHeaderTitle({ className, render, ...props }: useRender.ComponentProps<"span">): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
|
|
19
|
+
/**
|
|
20
|
+
* A line under the title: what happened on a resolved card ("Installed by Ada
|
|
21
|
+
* → Lens"), or why you cannot act on a view-only one. Place it inside
|
|
22
|
+
* MessageActionCardHeaderTitle; it stays visible while the card is folded.
|
|
23
|
+
*/
|
|
24
|
+
export declare function MessageActionCardHeaderDescription({ className, render, ...props }: useRender.ComponentProps<"span">): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
|
|
25
|
+
/**
|
|
26
|
+
* The card's state label in the header: plain text led by a square pixel in
|
|
27
|
+
* the variant's colour, so a column of "Done" cards does not shout.
|
|
28
|
+
*/
|
|
29
|
+
export declare function MessageActionCardStatus({ className, appearance, ...props }: BadgeProps): import("react").JSX.Element;
|
|
30
|
+
/** Folds the card to its header and back. Needs an accessible `aria-label`. */
|
|
31
|
+
export declare function MessageActionCardCollapseTrigger({ className, ...props }: MessageActionCardCollapseTriggerProps): import("react").JSX.Element;
|
|
32
|
+
export declare function MessageActionCardHeader({ className, render, ...props }: useRender.ComponentProps<"div">): import("react").JSX.Element;
|
|
33
|
+
export declare function MessageActionCardHeaderStatus({ className, render, ...props }: useRender.ComponentProps<"span">): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
|
|
34
|
+
export declare function MessageActionCardProperties({ className, render, ...props }: useRender.ComponentProps<"dl">): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
|
|
35
|
+
export declare function MessageActionCardProperty({ className, render, ...props }: useRender.ComponentProps<"div">): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
|
|
36
|
+
export declare function MessageActionCardPropertyLabel({ className, render, ...props }: useRender.ComponentProps<"dt">): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
|
|
37
|
+
export declare function MessageActionCardPropertyValue({ className, render, ...props }: useRender.ComponentProps<"dd">): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
|
|
38
|
+
export declare function MessageActionCardScopeList({ className, render, ...props }: useRender.ComponentProps<"div">): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
|
|
39
|
+
export declare function MessageActionCardScopeListLabel({ className, render, ...props }: useRender.ComponentProps<"div">): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
|
|
40
|
+
/**
|
|
41
|
+
* Scrolls a long permission list. It is a Tab stop only while it overflows, so
|
|
42
|
+
* keyboard users can scroll it; a short list adds no empty stop.
|
|
43
|
+
*/
|
|
44
|
+
export declare function MessageActionCardScopeListViewport({ className, render, ...props }: MessageActionCardScopeListViewportProps): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
|
|
45
|
+
export declare function MessageActionCardScope({ className, render, ...props }: useRender.ComponentProps<"div">): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
|
|
46
|
+
export declare function MessageActionCardScopeName({ className, render, ...props }: useRender.ComponentProps<"div">): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
|
|
47
|
+
export declare function MessageActionCardScopeDescription({ className, render, ...props }: useRender.ComponentProps<"div">): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
|
|
48
|
+
export declare function MessageActionCardHintLabel({ className, render, ...props }: useRender.ComponentProps<"div">): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
|
|
49
|
+
export declare function MessageActionCardHint({ className, render, ...props }: useRender.ComponentProps<"div">): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
|
|
50
|
+
/** Raft's standing note. Leads with an info icon unless `icon` replaces it. */
|
|
51
|
+
export declare function MessageActionCardNotice({ className, render, icon, children, ...props }: MessageActionCardNoticeProps): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
|
|
52
|
+
export declare function MessageActionCardCompletion({ className, render, ...props }: useRender.ComponentProps<"div">): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
|
|
53
|
+
export declare function MessageActionCardActions({ className, render, ...props }: useRender.ComponentProps<"div">): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
|
|
54
|
+
export declare function MessageActionCardActionsNote({ className, render, ...props }: useRender.ComponentProps<"div">): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
|
|
55
|
+
export type MessageActionCardProps = useRender.ComponentProps<"div"> & {
|
|
56
|
+
/** Controlled open state. Open shows the content; closed folds to the header. */
|
|
57
|
+
open?: boolean;
|
|
58
|
+
/** Uncontrolled initial state. Defaults to open. */
|
|
59
|
+
defaultOpen?: boolean;
|
|
60
|
+
onOpenChange?: ComponentProps<typeof Collapsible.Root>["onOpenChange"];
|
|
61
|
+
};
|
|
62
|
+
export type MessageActionCardHeaderIconProps = useRender.ComponentProps<"span">;
|
|
63
|
+
export type MessageActionCardHeaderTitleProps = useRender.ComponentProps<"span">;
|
|
64
|
+
export type MessageActionCardHeaderDescriptionProps = useRender.ComponentProps<"span">;
|
|
65
|
+
export type MessageActionCardStatusProps = BadgeProps;
|
|
66
|
+
export type MessageActionCardCollapseTriggerProps = Omit<ComponentProps<typeof Collapsible.Trigger>, "className"> & {
|
|
67
|
+
className?: string;
|
|
68
|
+
"aria-label": string;
|
|
69
|
+
};
|
|
70
|
+
export type MessageActionCardScopeListViewportProps = useRender.ComponentProps<"div"> & {
|
|
71
|
+
/** Names the scroll area for screen readers, e.g. "Permissions". */
|
|
72
|
+
"aria-label": string;
|
|
73
|
+
};
|
|
74
|
+
export type MessageActionCardActionsNoteProps = useRender.ComponentProps<"div">;
|
|
75
|
+
export type MessageActionCardContentProps = useRender.ComponentProps<"div">;
|
|
76
|
+
export type MessageActionCardHeaderProps = useRender.ComponentProps<"div">;
|
|
77
|
+
export type MessageActionCardHeaderStatusProps = useRender.ComponentProps<"span">;
|
|
78
|
+
export type MessageActionCardPropertiesProps = useRender.ComponentProps<"dl">;
|
|
79
|
+
export type MessageActionCardPropertyProps = useRender.ComponentProps<"div">;
|
|
80
|
+
export type MessageActionCardPropertyLabelProps = useRender.ComponentProps<"dt">;
|
|
81
|
+
export type MessageActionCardPropertyValueProps = useRender.ComponentProps<"dd">;
|
|
82
|
+
export type MessageActionCardScopeListProps = useRender.ComponentProps<"div">;
|
|
83
|
+
export type MessageActionCardScopeListLabelProps = useRender.ComponentProps<"div">;
|
|
84
|
+
export type MessageActionCardScopeProps = useRender.ComponentProps<"div">;
|
|
85
|
+
export type MessageActionCardScopeNameProps = useRender.ComponentProps<"div">;
|
|
86
|
+
export type MessageActionCardScopeDescriptionProps = useRender.ComponentProps<"div">;
|
|
87
|
+
export type MessageActionCardHintProps = useRender.ComponentProps<"div">;
|
|
88
|
+
export type MessageActionCardHintLabelProps = useRender.ComponentProps<"div">;
|
|
89
|
+
export interface MessageActionCardNoticeProps extends useRender.ComponentProps<"div"> {
|
|
90
|
+
/** Replaces the default info icon. */
|
|
91
|
+
icon?: ReactNode;
|
|
92
|
+
}
|
|
93
|
+
export type MessageActionCardCompletionProps = useRender.ComponentProps<"div">;
|
|
94
|
+
export type MessageActionCardActionsProps = useRender.ComponentProps<"div">;
|
|
95
|
+
//#endregion
|