@threadlabs/looma 0.31.3 → 0.31.5
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/dist/index.js +1 -1
- package/editor/chunks/extensions.js +23 -13
- package/package.json +3 -3
- package/styles/ui-action-bar.css +1 -1
- package/styles/ui-affordance-scope.css +1 -1
- package/styles/ui-avatar-group.css +1 -1
- package/styles/ui-avatar.css +1 -1
- package/styles/ui-badge.css +1 -1
- package/styles/ui-breadcrumb-item.css +1 -1
- package/styles/ui-breadcrumbs.css +1 -1
- package/styles/ui-button.css +1 -1
- package/styles/ui-callout.css +1 -1
- package/styles/ui-card.css +1 -1
- package/styles/ui-checkbox.css +1 -1
- package/styles/ui-cluster.css +1 -1
- package/styles/ui-combobox.css +393 -1
- package/styles/ui-container.css +1 -1
- package/styles/ui-context-menu.css +1 -1
- package/styles/ui-cover.css +1 -1
- package/styles/ui-description-item.css +1 -1
- package/styles/ui-description-list.css +1 -1
- package/styles/ui-dialog.css +232 -1
- package/styles/ui-disclosure.css +1 -1
- package/styles/ui-editable.css +1 -1
- package/styles/ui-editor-block-actions.css +1 -1
- package/styles/ui-editor-chip-editor.css +1 -1
- package/styles/ui-editor-code-language.css +1 -1
- package/styles/ui-editor-footnote-editor.css +1 -1
- package/styles/ui-editor-image-toolbar.css +1 -1
- package/styles/ui-editor-insert-table-grid.css +1 -1
- package/styles/ui-editor-link-card.css +1 -1
- package/styles/ui-editor-link-form.css +1 -1
- package/styles/ui-editor-mention-menu-item.css +1 -1
- package/styles/ui-editor-mention-menu.css +1 -1
- package/styles/ui-editor-slash-menu-group.css +1 -1
- package/styles/ui-editor-slash-menu-item.css +1 -1
- package/styles/ui-editor-slash-menu.css +1 -1
- package/styles/ui-editor-surface.css +1 -1
- package/styles/ui-editor-table-context-menu.css +1 -1
- package/styles/ui-editor-table-overlay.css +1 -1
- package/styles/ui-editor-table-toolbar.css +1 -1
- package/styles/ui-editor-toolbar.css +1 -1
- package/styles/ui-floating-action-button.css +1 -1
- package/styles/ui-form-field.css +1 -1
- package/styles/ui-grid.css +1 -1
- package/styles/ui-icon-button.css +1 -1
- package/styles/ui-icon.css +1 -1
- package/styles/ui-image.css +1 -1
- package/styles/ui-input-group.css +1 -1
- package/styles/ui-input.css +1 -1
- package/styles/ui-list-item.css +1 -1
- package/styles/ui-list.css +1 -1
- package/styles/ui-listbox.css +97 -1
- package/styles/ui-menu-group.css +1 -1
- package/styles/ui-menu-item.css +1 -1
- package/styles/ui-menu.css +1 -1
- package/styles/ui-meter.css +1 -1
- package/styles/ui-nav-item.css +1 -1
- package/styles/ui-page-header.css +1 -1
- package/styles/ui-popover.css +1 -1
- package/styles/ui-radio-group.css +1 -1
- package/styles/ui-radio.css +1 -1
- package/styles/ui-reel.css +1 -1
- package/styles/ui-scroll-area.css +1 -1
- package/styles/ui-search-result-row.css +1 -1
- package/styles/ui-search-shell.css +1 -1
- package/styles/ui-section.css +1 -1
- package/styles/ui-select.css +1 -1
- package/styles/ui-separator.css +1 -1
- package/styles/ui-sidebar.css +1 -1
- package/styles/ui-spinner.css +1 -1
- package/styles/ui-stack.css +1 -1
- package/styles/ui-status-message.css +1 -1
- package/styles/ui-swatch.css +1 -1
- package/styles/ui-switch.css +1 -1
- package/styles/ui-switcher.css +1 -1
- package/styles/ui-table.css +1 -1
- package/styles/ui-tabs.css +1 -1
- package/styles/ui-text.css +1 -1
- package/styles/ui-textarea.css +1 -1
- package/styles/ui-toast-region.css +199 -1
- package/styles/ui-toast.css +77 -1
- package/styles/ui-tooltip.css +1 -1
- package/styles/ui-top-bar.css +1 -1
- package/styles/ui-tree-item.css +559 -1
- package/styles/ui-tree.css +1 -1
- package/vanilla/UiActionBar.d.ts +1 -1
- package/vanilla/UiActionBar.js +1 -1
- package/vanilla/UiAffordanceScope.d.ts +1 -1
- package/vanilla/UiAffordanceScope.js +1 -1
- package/vanilla/UiAvatar.d.ts +1 -1
- package/vanilla/UiAvatar.js +1 -1
- package/vanilla/UiAvatarGroup.d.ts +1 -1
- package/vanilla/UiAvatarGroup.js +1 -1
- package/vanilla/UiBadge.d.ts +1 -1
- package/vanilla/UiBadge.js +1 -1
- package/vanilla/UiBreadcrumbItem.d.ts +1 -1
- package/vanilla/UiBreadcrumbItem.js +1 -1
- package/vanilla/UiBreadcrumbs.d.ts +1 -1
- package/vanilla/UiBreadcrumbs.js +1 -1
- package/vanilla/UiButton.d.ts +1 -1
- package/vanilla/UiButton.js +1 -1
- package/vanilla/UiCallout.d.ts +1 -1
- package/vanilla/UiCallout.js +1 -1
- package/vanilla/UiCard.d.ts +1 -1
- package/vanilla/UiCard.js +1 -1
- package/vanilla/UiCheckbox.d.ts +1 -1
- package/vanilla/UiCheckbox.js +1 -1
- package/vanilla/UiCluster.d.ts +1 -1
- package/vanilla/UiCluster.js +1 -1
- package/vanilla/UiCombobox.d.ts +1 -1
- package/vanilla/UiCombobox.js +2 -2
- package/vanilla/UiContainer.d.ts +1 -1
- package/vanilla/UiContainer.js +1 -1
- package/vanilla/UiContextMenu.d.ts +1 -1
- package/vanilla/UiContextMenu.js +1 -1
- package/vanilla/UiCover.d.ts +1 -1
- package/vanilla/UiCover.js +1 -1
- package/vanilla/UiDescriptionItem.d.ts +1 -1
- package/vanilla/UiDescriptionItem.js +1 -1
- package/vanilla/UiDescriptionList.d.ts +1 -1
- package/vanilla/UiDescriptionList.js +1 -1
- package/vanilla/UiDialog.d.ts +1 -1
- package/vanilla/UiDialog.js +1 -1
- package/vanilla/UiDisclosure.d.ts +1 -1
- package/vanilla/UiDisclosure.js +1 -1
- package/vanilla/UiEditable.d.ts +1 -1
- package/vanilla/UiEditable.js +1 -1
- package/vanilla/UiEditorBlockActions.d.ts +1 -1
- package/vanilla/UiEditorBlockActions.js +1 -1
- package/vanilla/UiEditorChipEditor.d.ts +1 -1
- package/vanilla/UiEditorChipEditor.js +1 -1
- package/vanilla/UiEditorCodeLanguage.d.ts +1 -1
- package/vanilla/UiEditorCodeLanguage.js +1 -1
- package/vanilla/UiEditorFootnoteEditor.d.ts +1 -1
- package/vanilla/UiEditorFootnoteEditor.js +1 -1
- package/vanilla/UiEditorImageToolbar.d.ts +1 -1
- package/vanilla/UiEditorImageToolbar.js +1 -1
- package/vanilla/UiEditorInsertTableGrid.d.ts +1 -1
- package/vanilla/UiEditorInsertTableGrid.js +1 -1
- package/vanilla/UiEditorLinkCard.d.ts +1 -1
- package/vanilla/UiEditorLinkCard.js +1 -1
- package/vanilla/UiEditorLinkForm.d.ts +1 -1
- package/vanilla/UiEditorLinkForm.js +1 -1
- package/vanilla/UiEditorMentionMenu.d.ts +1 -1
- package/vanilla/UiEditorMentionMenu.js +1 -1
- package/vanilla/UiEditorMentionMenuItem.d.ts +1 -1
- package/vanilla/UiEditorMentionMenuItem.js +1 -1
- package/vanilla/UiEditorSlashMenu.d.ts +1 -1
- package/vanilla/UiEditorSlashMenu.js +1 -1
- package/vanilla/UiEditorSlashMenuGroup.d.ts +1 -1
- package/vanilla/UiEditorSlashMenuGroup.js +1 -1
- package/vanilla/UiEditorSlashMenuItem.d.ts +1 -1
- package/vanilla/UiEditorSlashMenuItem.js +1 -1
- package/vanilla/UiEditorSurface.d.ts +1 -1
- package/vanilla/UiEditorSurface.js +1 -1
- package/vanilla/UiEditorTableContextMenu.d.ts +1 -1
- package/vanilla/UiEditorTableContextMenu.js +1 -1
- package/vanilla/UiEditorTableOverlay.d.ts +1 -1
- package/vanilla/UiEditorTableOverlay.js +1 -1
- package/vanilla/UiEditorTableToolbar.d.ts +1 -1
- package/vanilla/UiEditorTableToolbar.js +1 -1
- package/vanilla/UiEditorToolbar.d.ts +1 -1
- package/vanilla/UiEditorToolbar.js +1 -1
- package/vanilla/UiFloatingActionButton.d.ts +1 -1
- package/vanilla/UiFloatingActionButton.js +1 -1
- package/vanilla/UiFormField.d.ts +1 -1
- package/vanilla/UiFormField.js +1 -1
- package/vanilla/UiGrid.d.ts +1 -1
- package/vanilla/UiGrid.js +1 -1
- package/vanilla/UiIcon.d.ts +1 -1
- package/vanilla/UiIcon.js +1 -1
- package/vanilla/UiIconButton.d.ts +1 -1
- package/vanilla/UiIconButton.js +1 -1
- package/vanilla/UiImage.d.ts +1 -1
- package/vanilla/UiImage.js +1 -1
- package/vanilla/UiInput.d.ts +1 -1
- package/vanilla/UiInput.js +1 -1
- package/vanilla/UiInputGroup.d.ts +1 -1
- package/vanilla/UiInputGroup.js +1 -1
- package/vanilla/UiList.d.ts +1 -1
- package/vanilla/UiList.js +1 -1
- package/vanilla/UiListItem.d.ts +1 -1
- package/vanilla/UiListItem.js +1 -1
- package/vanilla/UiListbox.d.ts +1 -1
- package/vanilla/UiListbox.js +2 -2
- package/vanilla/UiMenu.d.ts +1 -1
- package/vanilla/UiMenu.js +1 -1
- package/vanilla/UiMenuGroup.d.ts +1 -1
- package/vanilla/UiMenuGroup.js +1 -1
- package/vanilla/UiMenuItem.d.ts +1 -1
- package/vanilla/UiMenuItem.js +1 -1
- package/vanilla/UiMeter.d.ts +1 -1
- package/vanilla/UiMeter.js +1 -1
- package/vanilla/UiNavItem.d.ts +1 -1
- package/vanilla/UiNavItem.js +1 -1
- package/vanilla/UiPageHeader.d.ts +1 -1
- package/vanilla/UiPageHeader.js +1 -1
- package/vanilla/UiPopover.d.ts +1 -1
- package/vanilla/UiPopover.js +1 -1
- package/vanilla/UiRadio.d.ts +1 -1
- package/vanilla/UiRadio.js +1 -1
- package/vanilla/UiRadioGroup.d.ts +1 -1
- package/vanilla/UiRadioGroup.js +1 -1
- package/vanilla/UiReel.d.ts +1 -1
- package/vanilla/UiReel.js +1 -1
- package/vanilla/UiScrollArea.d.ts +1 -1
- package/vanilla/UiScrollArea.js +1 -1
- package/vanilla/UiSearchResultRow.d.ts +1 -1
- package/vanilla/UiSearchResultRow.js +1 -1
- package/vanilla/UiSearchShell.d.ts +1 -1
- package/vanilla/UiSearchShell.js +1 -1
- package/vanilla/UiSection.d.ts +1 -1
- package/vanilla/UiSection.js +1 -1
- package/vanilla/UiSelect.d.ts +1 -1
- package/vanilla/UiSelect.js +1 -1
- package/vanilla/UiSeparator.d.ts +1 -1
- package/vanilla/UiSeparator.js +1 -1
- package/vanilla/UiSidebar.d.ts +1 -1
- package/vanilla/UiSidebar.js +1 -1
- package/vanilla/UiSpinner.d.ts +1 -1
- package/vanilla/UiSpinner.js +1 -1
- package/vanilla/UiStack.d.ts +1 -1
- package/vanilla/UiStack.js +1 -1
- package/vanilla/UiStatusMessage.d.ts +1 -1
- package/vanilla/UiStatusMessage.js +1 -1
- package/vanilla/UiSwatch.d.ts +1 -1
- package/vanilla/UiSwatch.js +1 -1
- package/vanilla/UiSwitch.d.ts +1 -1
- package/vanilla/UiSwitch.js +1 -1
- package/vanilla/UiSwitcher.d.ts +1 -1
- package/vanilla/UiSwitcher.js +1 -1
- package/vanilla/UiTable.d.ts +1 -1
- package/vanilla/UiTable.js +1 -1
- package/vanilla/UiTabs.d.ts +1 -1
- package/vanilla/UiTabs.js +1 -1
- package/vanilla/UiText.d.ts +1 -1
- package/vanilla/UiText.js +1 -1
- package/vanilla/UiTextarea.d.ts +1 -1
- package/vanilla/UiTextarea.js +1 -1
- package/vanilla/UiToast.d.ts +1 -1
- package/vanilla/UiToast.js +1 -1
- package/vanilla/UiToastRegion.d.ts +1 -1
- package/vanilla/UiToastRegion.js +1 -1
- package/vanilla/UiTooltip.d.ts +1 -1
- package/vanilla/UiTooltip.js +1 -1
- package/vanilla/UiTopBar.d.ts +1 -1
- package/vanilla/UiTopBar.js +1 -1
- package/vanilla/UiTree.d.ts +1 -1
- package/vanilla/UiTree.js +1 -1
- package/vanilla/UiTreeItem.d.ts +1 -1
- package/vanilla/UiTreeItem.js +1 -1
- package/vue/UiActionBar.vue +1 -1
- package/vue/UiAffordanceScope.vue +1 -1
- package/vue/UiAvatar.vue +1 -1
- package/vue/UiAvatarGroup.vue +1 -1
- package/vue/UiBadge.vue +1 -1
- package/vue/UiBreadcrumbItem.vue +1 -1
- package/vue/UiBreadcrumbs.vue +1 -1
- package/vue/UiButton.vue +1 -1
- package/vue/UiCallout.vue +1 -1
- package/vue/UiCard.vue +1 -1
- package/vue/UiCheckbox.vue +1 -1
- package/vue/UiCluster.vue +1 -1
- package/vue/UiCombobox.vue +362 -4
- package/vue/UiContainer.vue +1 -1
- package/vue/UiContextMenu.vue +1 -1
- package/vue/UiCover.vue +1 -1
- package/vue/UiDescriptionItem.vue +1 -1
- package/vue/UiDescriptionList.vue +1 -1
- package/vue/UiDialog.vue +200 -1
- package/vue/UiDisclosure.vue +1 -1
- package/vue/UiEditable.vue +1 -1
- package/vue/UiEditorBlockActions.vue +1 -1
- package/vue/UiEditorChipEditor.vue +1 -1
- package/vue/UiEditorCodeLanguage.vue +1 -1
- package/vue/UiEditorFootnoteEditor.vue +1 -1
- package/vue/UiEditorImageToolbar.vue +1 -1
- package/vue/UiEditorInsertTableGrid.vue +1 -1
- package/vue/UiEditorLinkCard.vue +1 -1
- package/vue/UiEditorLinkForm.vue +1 -1
- package/vue/UiEditorMentionMenu.vue +1 -1
- package/vue/UiEditorMentionMenuItem.vue +1 -1
- package/vue/UiEditorSlashMenu.vue +1 -1
- package/vue/UiEditorSlashMenuGroup.vue +1 -1
- package/vue/UiEditorSlashMenuItem.vue +1 -1
- package/vue/UiEditorSurface.vue +1 -1
- package/vue/UiEditorTableContextMenu.vue +1 -1
- package/vue/UiEditorTableOverlay.vue +1 -1
- package/vue/UiEditorTableToolbar.vue +1 -1
- package/vue/UiEditorToolbar.vue +1 -1
- package/vue/UiFloatingActionButton.vue +1 -1
- package/vue/UiFormField.vue +1 -1
- package/vue/UiGrid.vue +1 -1
- package/vue/UiIcon.vue +1 -1
- package/vue/UiIconButton.vue +1 -1
- package/vue/UiImage.vue +1 -1
- package/vue/UiInput.vue +1 -1
- package/vue/UiInputGroup.vue +1 -1
- package/vue/UiList.vue +1 -1
- package/vue/UiListItem.vue +1 -1
- package/vue/UiListbox.vue +79 -1
- package/vue/UiMenu.vue +1 -1
- package/vue/UiMenuGroup.vue +1 -1
- package/vue/UiMenuItem.vue +1 -1
- package/vue/UiMeter.vue +1 -1
- package/vue/UiNavItem.vue +1 -1
- package/vue/UiPageHeader.vue +1 -1
- package/vue/UiPopover.vue +1 -1
- package/vue/UiRadio.vue +1 -1
- package/vue/UiRadioGroup.vue +1 -1
- package/vue/UiReel.vue +1 -1
- package/vue/UiScrollArea.vue +1 -1
- package/vue/UiSearchResultRow.vue +1 -1
- package/vue/UiSearchShell.vue +1 -1
- package/vue/UiSection.vue +1 -1
- package/vue/UiSelect.vue +1 -1
- package/vue/UiSeparator.vue +1 -1
- package/vue/UiSidebar.vue +1 -1
- package/vue/UiSpinner.vue +1 -1
- package/vue/UiStack.vue +1 -1
- package/vue/UiStatusMessage.vue +1 -1
- package/vue/UiSwatch.vue +1 -1
- package/vue/UiSwitch.vue +1 -1
- package/vue/UiSwitcher.vue +1 -1
- package/vue/UiTable.vue +1 -1
- package/vue/UiTabs.vue +1 -1
- package/vue/UiText.vue +1 -1
- package/vue/UiTextarea.vue +1 -1
- package/vue/UiToast.vue +62 -1
- package/vue/UiToastRegion.vue +142 -1
- package/vue/UiTooltip.vue +1 -1
- package/vue/UiTopBar.vue +1 -1
- package/vue/UiTree.vue +1 -1
- package/vue/UiTreeItem.vue +635 -1
- package/vue/chunks/UiActionBar.js +1 -1
- package/vue/chunks/UiAffordanceScope.js +1 -1
- package/vue/chunks/UiAvatar.js +1 -1
- package/vue/chunks/UiAvatarGroup.js +1 -1
- package/vue/chunks/UiBadge.js +1 -1
- package/vue/chunks/UiBreadcrumbItem.js +1 -1
- package/vue/chunks/UiBreadcrumbs.js +1 -1
- package/vue/chunks/UiButton.js +1 -1
- package/vue/chunks/UiCallout.js +1 -1
- package/vue/chunks/UiCard.js +1 -1
- package/vue/chunks/UiCheckbox.js +1 -1
- package/vue/chunks/UiCluster.js +1 -1
- package/vue/chunks/UiCombobox.js +2 -1
- package/vue/chunks/UiContainer.js +1 -1
- package/vue/chunks/UiContextMenu.js +1 -1
- package/vue/chunks/UiCover.js +1 -1
- package/vue/chunks/UiDescriptionItem.js +1 -1
- package/vue/chunks/UiDescriptionList.js +1 -1
- package/vue/chunks/UiDialog.js +1 -1
- package/vue/chunks/UiDisclosure.js +1 -1
- package/vue/chunks/UiEditable.js +1 -1
- package/vue/chunks/UiEditorInsertTableGrid.js +1 -1
- package/vue/chunks/UiEditorMentionMenu.js +1 -1
- package/vue/chunks/UiEditorMentionMenuItem.js +1 -1
- package/vue/chunks/UiEditorSlashMenu.js +1 -1
- package/vue/chunks/UiEditorSlashMenuGroup.js +1 -1
- package/vue/chunks/UiEditorSlashMenuItem.js +1 -1
- package/vue/chunks/UiEditorSurface.js +1 -1
- package/vue/chunks/UiEditorTableContextMenu.js +1 -1
- package/vue/chunks/UiEditorTableOverlay.js +1 -1
- package/vue/chunks/UiEditorTableToolbar.js +1 -1
- package/vue/chunks/UiEditorToolbar.js +1 -1
- package/vue/chunks/UiFloatingActionButton.js +1 -1
- package/vue/chunks/UiFormField.js +1 -1
- package/vue/chunks/UiGrid.js +1 -1
- package/vue/chunks/UiIcon.js +1 -1
- package/vue/chunks/UiIconButton.js +1 -1
- package/vue/chunks/UiImage.js +1 -1
- package/vue/chunks/UiInput.js +1 -1
- package/vue/chunks/UiInputGroup.js +1 -1
- package/vue/chunks/UiList.js +1 -1
- package/vue/chunks/UiListItem.js +1 -1
- package/vue/chunks/UiListbox.js +2 -1
- package/vue/chunks/UiMenu.js +1 -1
- package/vue/chunks/UiMenuGroup.js +1 -1
- package/vue/chunks/UiMenuItem.js +1 -1
- package/vue/chunks/UiMeter.js +1 -1
- package/vue/chunks/UiNavItem.js +1 -1
- package/vue/chunks/UiPageHeader.js +1 -1
- package/vue/chunks/UiPopover.js +1 -1
- package/vue/chunks/UiRadio.js +1 -1
- package/vue/chunks/UiRadioGroup.js +1 -1
- package/vue/chunks/UiReel.js +1 -1
- package/vue/chunks/UiScrollArea.js +1 -1
- package/vue/chunks/UiSearchResultRow.js +1 -1
- package/vue/chunks/UiSearchShell.js +1 -1
- package/vue/chunks/UiSection.js +1 -1
- package/vue/chunks/UiSelect.js +1 -1
- package/vue/chunks/UiSeparator.js +1 -1
- package/vue/chunks/UiSidebar.js +1 -1
- package/vue/chunks/UiSpinner.js +1 -1
- package/vue/chunks/UiStack.js +1 -1
- package/vue/chunks/UiStatusMessage.js +1 -1
- package/vue/chunks/UiSwatch.js +1 -1
- package/vue/chunks/UiSwitch.js +1 -1
- package/vue/chunks/UiSwitcher.js +1 -1
- package/vue/chunks/UiTable.js +1 -1
- package/vue/chunks/UiTabs.js +1 -1
- package/vue/chunks/UiText.js +1 -1
- package/vue/chunks/UiTextarea.js +1 -1
- package/vue/chunks/UiToast.js +1 -1
- package/vue/chunks/UiToastRegion.js +1 -1
- package/vue/chunks/UiTooltip.js +1 -1
- package/vue/chunks/UiTopBar.js +1 -1
- package/vue/chunks/UiTree.js +1 -1
- package/vue/chunks/UiTreeItem.js +1 -1
- package/vue/components.css +1705 -370
- package/vue/editor/index.js +7 -7
- package/vue/host.ts +1 -1
|
@@ -631,17 +631,17 @@ function appendBackLinks(item, label, number, count) {
|
|
|
631
631
|
paragraph.append(" ", link);
|
|
632
632
|
}
|
|
633
633
|
}
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
634
|
+
function installSerializer(schema) {
|
|
635
|
+
const serializer = DOMSerializer.fromSchema(schema);
|
|
636
|
+
if (Object.prototype.hasOwnProperty.call(serializer, "serializeFragment")) return;
|
|
637
|
+
const serializeFragment = serializer.serializeFragment;
|
|
638
|
+
serializer.serializeFragment = function(fragment, options = {}, target) {
|
|
639
|
+
const dom = serializeFragment.call(this, fragment, options, target);
|
|
637
640
|
fragment.forEach((node, _offset, index) => {
|
|
638
641
|
if (node.type.name === NOTE) appendBackLinks(dom.childNodes[index], String(node.attrs.label), index + 1, Number(node.attrs.count) || 1);
|
|
639
642
|
});
|
|
640
643
|
return dom;
|
|
641
|
-
}
|
|
642
|
-
};
|
|
643
|
-
function installSerializer(schema) {
|
|
644
|
-
if (!(schema.cached.domSerializer instanceof FootnoteSerializer)) schema.cached.domSerializer = new FootnoteSerializer(DOMSerializer.nodesFromSchema(schema), DOMSerializer.marksFromSchema(schema));
|
|
644
|
+
};
|
|
645
645
|
}
|
|
646
646
|
/**
|
|
647
647
|
* A footnote reference, `[^label]`, saved as `<sup><a data-footnote-ref>`. Typing or pasting
|
|
@@ -11155,21 +11155,31 @@ var TableHeader = Node$1.create({
|
|
|
11155
11155
|
});
|
|
11156
11156
|
//#endregion
|
|
11157
11157
|
//#region src/editor/extensions/table-formatting.ts
|
|
11158
|
-
/**
|
|
11159
|
-
|
|
11158
|
+
/**
|
|
11159
|
+
* Table chrome lives outside the horizontal scroller, within the table's document block.
|
|
11160
|
+
* @invariant It holds Tiptap's TableView rather than extending it: a bundler that lowers classes
|
|
11161
|
+
* calls the base as a function, which a native class rejects.
|
|
11162
|
+
*/
|
|
11163
|
+
var LoomaTableView = class {
|
|
11164
|
+
table;
|
|
11165
|
+
dom;
|
|
11166
|
+
contentDOM;
|
|
11160
11167
|
toolbarHost;
|
|
11161
11168
|
constructor(node, cellMinWidth) {
|
|
11162
|
-
|
|
11163
|
-
|
|
11169
|
+
this.table = new TableView(node, cellMinWidth);
|
|
11170
|
+
this.contentDOM = this.table.contentDOM;
|
|
11164
11171
|
this.dom = document.createElement("div");
|
|
11165
11172
|
this.dom.dataset.loomaTableBlock = "";
|
|
11166
11173
|
this.toolbarHost = document.createElement("div");
|
|
11167
11174
|
this.toolbarHost.dataset.loomaTableToolbarHost = "";
|
|
11168
11175
|
this.toolbarHost.contentEditable = "false";
|
|
11169
|
-
this.dom.append(
|
|
11176
|
+
this.dom.append(this.table.dom, this.toolbarHost);
|
|
11177
|
+
}
|
|
11178
|
+
update(node) {
|
|
11179
|
+
return this.table.update(node);
|
|
11170
11180
|
}
|
|
11171
11181
|
ignoreMutation(mutation) {
|
|
11172
|
-
return mutation.type !== "selection" && this.toolbarHost.contains(mutation.target) ||
|
|
11182
|
+
return mutation.type !== "selection" && this.toolbarHost.contains(mutation.target) || this.table.ignoreMutation(mutation);
|
|
11173
11183
|
}
|
|
11174
11184
|
stopEvent(event) {
|
|
11175
11185
|
return event.target instanceof globalThis.Node && this.toolbarHost.contains(event.target);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@threadlabs/looma",
|
|
3
|
-
"version": "0.31.
|
|
3
|
+
"version": "0.31.5",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Looma components as HTML, Vue, and plain DOM, with design tokens.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -112,7 +112,7 @@
|
|
|
112
112
|
"expressmark": "0.1.6"
|
|
113
113
|
},
|
|
114
114
|
"peerDependencies": {
|
|
115
|
-
"@nextwebwg/html-next": "1.0.0-alpha.
|
|
115
|
+
"@nextwebwg/html-next": "1.0.0-alpha.69",
|
|
116
116
|
"@tiptap/core": ">=2 <3",
|
|
117
117
|
"@tiptap/pm": ">=2 <3",
|
|
118
118
|
"@tiptap/vue-3": ">=2 <3",
|
|
@@ -133,7 +133,7 @@
|
|
|
133
133
|
}
|
|
134
134
|
},
|
|
135
135
|
"devDependencies": {
|
|
136
|
-
"@nextwebwg/html-next": "1.0.0-alpha.
|
|
136
|
+
"@nextwebwg/html-next": "1.0.0-alpha.69",
|
|
137
137
|
"@vitejs/plugin-vue": "^6.0.9",
|
|
138
138
|
"vite": "^8.3.0",
|
|
139
139
|
"vue": "^3.5.43",
|
package/styles/ui-action-bar.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* Generated by HTML Next 1.0.0-alpha.
|
|
1
|
+
/* Generated by HTML Next 1.0.0-alpha.69. Do not edit. */
|
|
2
2
|
@supports (-moz-appearance: none) {
|
|
3
3
|
:where([data-component], [data-slotted]) { --html-next-scope-owner: boundary; }
|
|
4
4
|
:where([data-slotted]:not([data-component])) { --html-next-scope-owner: projected !important; }
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* Generated by HTML Next 1.0.0-alpha.
|
|
1
|
+
/* Generated by HTML Next 1.0.0-alpha.69. Do not edit. */
|
|
2
2
|
@supports (-moz-appearance: none) {
|
|
3
3
|
:where([data-component], [data-slotted]) { --html-next-scope-owner: boundary; }
|
|
4
4
|
:where([data-slotted]:not([data-component])) { --html-next-scope-owner: projected !important; }
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* Generated by HTML Next 1.0.0-alpha.
|
|
1
|
+
/* Generated by HTML Next 1.0.0-alpha.69. Do not edit. */
|
|
2
2
|
@supports (-moz-appearance: none) {
|
|
3
3
|
:where([data-component], [data-slotted]) { --html-next-scope-owner: boundary; }
|
|
4
4
|
:where([data-slotted]:not([data-component])) { --html-next-scope-owner: projected !important; }
|
package/styles/ui-avatar.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* Generated by HTML Next 1.0.0-alpha.
|
|
1
|
+
/* Generated by HTML Next 1.0.0-alpha.69. Do not edit. */
|
|
2
2
|
@supports (-moz-appearance: none) {
|
|
3
3
|
:where([data-component], [data-slotted]) { --html-next-scope-owner: boundary; }
|
|
4
4
|
:where([data-slotted]:not([data-component])) { --html-next-scope-owner: projected !important; }
|
package/styles/ui-badge.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* Generated by HTML Next 1.0.0-alpha.
|
|
1
|
+
/* Generated by HTML Next 1.0.0-alpha.69. Do not edit. */
|
|
2
2
|
@supports (-moz-appearance: none) {
|
|
3
3
|
:where([data-component], [data-slotted]) { --html-next-scope-owner: boundary; }
|
|
4
4
|
:where([data-slotted]:not([data-component])) { --html-next-scope-owner: projected !important; }
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* Generated by HTML Next 1.0.0-alpha.
|
|
1
|
+
/* Generated by HTML Next 1.0.0-alpha.69. Do not edit. */
|
|
2
2
|
@supports (-moz-appearance: none) {
|
|
3
3
|
:where([data-component], [data-slotted]) { --html-next-scope-owner: boundary; }
|
|
4
4
|
:where([data-slotted]:not([data-component])) { --html-next-scope-owner: projected !important; }
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* Generated by HTML Next 1.0.0-alpha.
|
|
1
|
+
/* Generated by HTML Next 1.0.0-alpha.69. Do not edit. */
|
|
2
2
|
@supports (-moz-appearance: none) {
|
|
3
3
|
:where([data-component], [data-slotted]) { --html-next-scope-owner: boundary; }
|
|
4
4
|
:where([data-slotted]:not([data-component])) { --html-next-scope-owner: projected !important; }
|
package/styles/ui-button.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* Generated by HTML Next 1.0.0-alpha.
|
|
1
|
+
/* Generated by HTML Next 1.0.0-alpha.69. Do not edit. */
|
|
2
2
|
@supports (-moz-appearance: none) {
|
|
3
3
|
:where([data-component], [data-slotted]) { --html-next-scope-owner: boundary; }
|
|
4
4
|
:where([data-slotted]:not([data-component])) { --html-next-scope-owner: projected !important; }
|
package/styles/ui-callout.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* Generated by HTML Next 1.0.0-alpha.
|
|
1
|
+
/* Generated by HTML Next 1.0.0-alpha.69. Do not edit. */
|
|
2
2
|
@supports (-moz-appearance: none) {
|
|
3
3
|
:where([data-component], [data-slotted]) { --html-next-scope-owner: boundary; }
|
|
4
4
|
:where([data-slotted]:not([data-component])) { --html-next-scope-owner: projected !important; }
|
package/styles/ui-card.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* Generated by HTML Next 1.0.0-alpha.
|
|
1
|
+
/* Generated by HTML Next 1.0.0-alpha.69. Do not edit. */
|
|
2
2
|
@supports (-moz-appearance: none) {
|
|
3
3
|
:where([data-component], [data-slotted]) { --html-next-scope-owner: boundary; }
|
|
4
4
|
:where([data-slotted]:not([data-component])) { --html-next-scope-owner: projected !important; }
|
package/styles/ui-checkbox.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* Generated by HTML Next 1.0.0-alpha.
|
|
1
|
+
/* Generated by HTML Next 1.0.0-alpha.69. Do not edit. */
|
|
2
2
|
@supports (-moz-appearance: none) {
|
|
3
3
|
:where([data-component], [data-slotted]) { --html-next-scope-owner: boundary; }
|
|
4
4
|
:where([data-slotted]:not([data-component])) { --html-next-scope-owner: projected !important; }
|
package/styles/ui-cluster.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* Generated by HTML Next 1.0.0-alpha.
|
|
1
|
+
/* Generated by HTML Next 1.0.0-alpha.69. Do not edit. */
|
|
2
2
|
@supports (-moz-appearance: none) {
|
|
3
3
|
:where([data-component], [data-slotted]) { --html-next-scope-owner: boundary; }
|
|
4
4
|
:where([data-slotted]:not([data-component])) { --html-next-scope-owner: projected !important; }
|
package/styles/ui-combobox.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* Generated by HTML Next 1.0.0-alpha.
|
|
1
|
+
/* Generated by HTML Next 1.0.0-alpha.69. Do not edit. */
|
|
2
2
|
@supports (-moz-appearance: none) {
|
|
3
3
|
:where([data-component], [data-slotted]) { --html-next-scope-owner: boundary; }
|
|
4
4
|
:where([data-slotted]:not([data-component])) { --html-next-scope-owner: projected !important; }
|
|
@@ -421,3 +421,395 @@
|
|
|
421
421
|
|
|
422
422
|
/* A component that sets its display still honours the hidden attribute on its root. */
|
|
423
423
|
}
|
|
424
|
+
@scope ([data-slotted~="ui-combobox"]:not([data-component])) to ([data-component], [data-slotted]) {
|
|
425
|
+
/* This component's hooks style the element they are set on, and never a nested one. */
|
|
426
|
+
@property --ui-combobox-affordance-text {
|
|
427
|
+
syntax: "*";
|
|
428
|
+
inherits: false;
|
|
429
|
+
}
|
|
430
|
+
@property --ui-combobox-item-input-min-inline-size {
|
|
431
|
+
syntax: "*";
|
|
432
|
+
inherits: false;
|
|
433
|
+
}
|
|
434
|
+
@property --ui-combobox-item-item-max-inline-size {
|
|
435
|
+
syntax: "*";
|
|
436
|
+
inherits: false;
|
|
437
|
+
}
|
|
438
|
+
@property --ui-combobox-item-min-block-size {
|
|
439
|
+
syntax: "*";
|
|
440
|
+
inherits: false;
|
|
441
|
+
}
|
|
442
|
+
@property --ui-combobox-label-font-size {
|
|
443
|
+
syntax: "*";
|
|
444
|
+
inherits: false;
|
|
445
|
+
}
|
|
446
|
+
@property --ui-combobox-label-text {
|
|
447
|
+
syntax: "*";
|
|
448
|
+
inherits: false;
|
|
449
|
+
}
|
|
450
|
+
@property --ui-combobox-max-block-size {
|
|
451
|
+
syntax: "*";
|
|
452
|
+
inherits: false;
|
|
453
|
+
}
|
|
454
|
+
@property --ui-combobox-message-text {
|
|
455
|
+
syntax: "*";
|
|
456
|
+
inherits: false;
|
|
457
|
+
}
|
|
458
|
+
@property --ui-combobox-option-check {
|
|
459
|
+
syntax: "*";
|
|
460
|
+
inherits: false;
|
|
461
|
+
}
|
|
462
|
+
@property --ui-combobox-option-text {
|
|
463
|
+
syntax: "*";
|
|
464
|
+
inherits: false;
|
|
465
|
+
}
|
|
466
|
+
@property --ui-combobox-radius {
|
|
467
|
+
syntax: "*";
|
|
468
|
+
inherits: false;
|
|
469
|
+
}
|
|
470
|
+
@property --ui-combobox-invalid-border {
|
|
471
|
+
syntax: "*";
|
|
472
|
+
inherits: false;
|
|
473
|
+
}
|
|
474
|
+
@property --ui-combobox-popup-surface {
|
|
475
|
+
syntax: "*";
|
|
476
|
+
inherits: false;
|
|
477
|
+
}
|
|
478
|
+
@property --ui-combobox-popup-border {
|
|
479
|
+
syntax: "*";
|
|
480
|
+
inherits: false;
|
|
481
|
+
}
|
|
482
|
+
@property --ui-combobox-popup-radius {
|
|
483
|
+
syntax: "*";
|
|
484
|
+
inherits: false;
|
|
485
|
+
}
|
|
486
|
+
@property --ui-combobox-popup-shadow {
|
|
487
|
+
syntax: "*";
|
|
488
|
+
inherits: false;
|
|
489
|
+
}
|
|
490
|
+
|
|
491
|
+
:where([data-component~="ui-combobox"]):where(:scope, :not([data-component], [data-slotted]:not([data-slotted~="ui-combobox"]))) {
|
|
492
|
+
/* Hooks do not inherit, so the parts below read them from the root. */
|
|
493
|
+
--_ui-combobox-label-text: var(--ui-combobox-label-text);
|
|
494
|
+
--_ui-combobox-label-font-size: var(--ui-combobox-label-font-size);
|
|
495
|
+
--_ui-combobox-affordance-text: var(--ui-combobox-affordance-text);
|
|
496
|
+
--_ui-combobox-max-block-size: var(--ui-combobox-max-block-size);
|
|
497
|
+
--_ui-combobox-option-text: var(--ui-combobox-option-text);
|
|
498
|
+
--_ui-combobox-message-text: var(--ui-combobox-message-text);
|
|
499
|
+
--_ui-combobox-option-check: var(--ui-combobox-option-check);
|
|
500
|
+
--_ui-combobox-item-min-block-size: var(--ui-combobox-item-min-block-size);
|
|
501
|
+
--_ui-combobox-item-input-min-inline-size: var(--ui-combobox-item-input-min-inline-size);
|
|
502
|
+
--_ui-combobox-item-item-max-inline-size: var(--ui-combobox-item-item-max-inline-size);
|
|
503
|
+
--_ui-combobox-radius: var(--ui-combobox-radius);
|
|
504
|
+
--_ui-combobox-invalid-border: var(--ui-combobox-invalid-border);
|
|
505
|
+
--_ui-combobox-popup-surface: var(--ui-combobox-popup-surface);
|
|
506
|
+
--_ui-combobox-popup-border: var(--ui-combobox-popup-border);
|
|
507
|
+
--_ui-combobox-popup-radius: var(--ui-combobox-popup-radius);
|
|
508
|
+
--_ui-combobox-popup-shadow: var(--ui-combobox-popup-shadow);
|
|
509
|
+
|
|
510
|
+
--_row: var(--ui-control-size-md);
|
|
511
|
+
display: grid;
|
|
512
|
+
gap: var(--ui-space-1);
|
|
513
|
+
min-inline-size: 0;
|
|
514
|
+
color: var(--ui-text-primary);
|
|
515
|
+
font: inherit;
|
|
516
|
+
}
|
|
517
|
+
label:where(:scope, :scope *) {
|
|
518
|
+
color: var(--_ui-combobox-label-text, var(--ui-text-primary));
|
|
519
|
+
font-size: var(--_ui-combobox-label-font-size, var(--ui-font-size-sm));
|
|
520
|
+
font-weight: 500;
|
|
521
|
+
}
|
|
522
|
+
/* The field and anything that annotates it sit on one row; the help button is beside the box,
|
|
523
|
+
not inside it, because a control's box holds its value. */
|
|
524
|
+
.control:where(:scope, :scope *) {
|
|
525
|
+
display: flex;
|
|
526
|
+
align-items: center;
|
|
527
|
+
gap: var(--ui-space-2);
|
|
528
|
+
min-inline-size: 0;
|
|
529
|
+
}
|
|
530
|
+
|
|
531
|
+
.field:where(:scope, :scope *) {
|
|
532
|
+
box-sizing: border-box;
|
|
533
|
+
min-block-size: var(--_row);
|
|
534
|
+
flex: 1 1 auto;
|
|
535
|
+
display: flex;
|
|
536
|
+
min-inline-size: 0;
|
|
537
|
+
border: var(--ui-border-width) solid var(--ui-control-border, var(--ui-border-default));
|
|
538
|
+
border-radius: var(--_ui-combobox-radius, var(--ui-field-radius, var(--ui-radius-md)));
|
|
539
|
+
background: var(--ui-control-surface, var(--ui-surface-default));
|
|
540
|
+
box-shadow: var(--ui-control-inset);
|
|
541
|
+
transition: border-color var(--ui-motion-fast) var(--ui-motion-ease), box-shadow var(--ui-motion-fast) var(--ui-motion-ease);
|
|
542
|
+
}
|
|
543
|
+
.field:focus-within:where(:scope, :scope *) {
|
|
544
|
+
border-color: var(--ui-control-focus, var(--ui-accent-solid));
|
|
545
|
+
box-shadow:
|
|
546
|
+
var(--ui-control-inset),
|
|
547
|
+
var(--ui-control-focus-halo-shadow);
|
|
548
|
+
}
|
|
549
|
+
.entry:where(:scope, :scope *) {
|
|
550
|
+
display: flex;
|
|
551
|
+
flex: 1 1 auto;
|
|
552
|
+
min-inline-size: 0;
|
|
553
|
+
}
|
|
554
|
+
/* A ghost icon button: the affordance is the mark, not a box around it. */
|
|
555
|
+
.help:where(:scope, :scope *) {
|
|
556
|
+
flex: none;
|
|
557
|
+
display: inline-flex;
|
|
558
|
+
align-items: center;
|
|
559
|
+
justify-content: center;
|
|
560
|
+
inline-size: var(--ui-control-size-sm);
|
|
561
|
+
block-size: var(--ui-control-size-sm);
|
|
562
|
+
padding: 0;
|
|
563
|
+
border: 0;
|
|
564
|
+
border-radius: var(--ui-radius-round);
|
|
565
|
+
background: transparent;
|
|
566
|
+
color: var(--ui-text-secondary);
|
|
567
|
+
cursor: pointer;
|
|
568
|
+
transition: background-color var(--ui-motion-fast) var(--ui-motion-ease), color var(--ui-motion-fast) var(--ui-motion-ease);
|
|
569
|
+
}
|
|
570
|
+
|
|
571
|
+
.help:hover:enabled:where(:scope, :scope *), .help[aria-expanded="true"]:where(:scope, :scope *) {
|
|
572
|
+
background: color-mix(in srgb, currentColor 8%, transparent);
|
|
573
|
+
color: var(--ui-text-primary);
|
|
574
|
+
}
|
|
575
|
+
|
|
576
|
+
.help:focus-visible:where(:scope, :scope *) {
|
|
577
|
+
outline: none;
|
|
578
|
+
box-shadow: var(--ui-focus-halo);
|
|
579
|
+
}
|
|
580
|
+
|
|
581
|
+
.help:disabled:where(:scope, :scope *) {
|
|
582
|
+
color: var(--ui-disabled-text);
|
|
583
|
+
cursor: not-allowed;
|
|
584
|
+
}
|
|
585
|
+
|
|
586
|
+
.help-icon:where(:scope, :scope *) {
|
|
587
|
+
inline-size: var(--ui-icon-size-sm);
|
|
588
|
+
block-size: var(--ui-icon-size-sm);
|
|
589
|
+
}
|
|
590
|
+
|
|
591
|
+
input:where(:not([data-component], [data-slotted]:not([data-slotted~="ui-combobox"]))):where(:scope, :scope *)::selection {
|
|
592
|
+
background: color-mix(in srgb, var(--ui-accent-solid) 20%, transparent);
|
|
593
|
+
color: inherit;
|
|
594
|
+
}
|
|
595
|
+
input:where(:scope, :scope *) {
|
|
596
|
+
appearance: none;
|
|
597
|
+
width: 100%;
|
|
598
|
+
min-inline-size: 0;
|
|
599
|
+
min-block-size: calc(var(--_row) - 2 * var(--ui-border-width));
|
|
600
|
+
box-sizing: border-box;
|
|
601
|
+
border: 0;
|
|
602
|
+
border-radius: inherit;
|
|
603
|
+
background: transparent;
|
|
604
|
+
color: inherit;
|
|
605
|
+
font: inherit;
|
|
606
|
+
line-height: var(--ui-line-height-tight);
|
|
607
|
+
padding: var(--ui-space-2) var(--ui-space-3);
|
|
608
|
+
margin: 0;
|
|
609
|
+
outline: none;
|
|
610
|
+
}
|
|
611
|
+
:where([data-component~="ui-combobox"])[data-ui-combobox-state~="size=sm"]:where(:scope, :not([data-component], [data-slotted]:not([data-slotted~="ui-combobox"]))) {
|
|
612
|
+
--_row: var(--ui-control-size-sm);
|
|
613
|
+
}
|
|
614
|
+
:where([data-component~="ui-combobox"])[data-ui-combobox-state~="size=sm"] input:where(:scope, :not([data-component], [data-slotted]:not([data-slotted~="ui-combobox"]))) {
|
|
615
|
+
padding: var(--ui-space-1) var(--ui-space-2);
|
|
616
|
+
font-size: var(--ui-font-size-sm);
|
|
617
|
+
}
|
|
618
|
+
:where([data-component~="ui-combobox"])[data-ui-combobox-state~="size=lg"]:where(:scope, :not([data-component], [data-slotted]:not([data-slotted~="ui-combobox"]))) {
|
|
619
|
+
--_row: var(--ui-control-size-lg);
|
|
620
|
+
}
|
|
621
|
+
:where([data-component~="ui-combobox"])[data-ui-combobox-state~="size=lg"] input:where(:scope, :not([data-component], [data-slotted]:not([data-slotted~="ui-combobox"]))) {
|
|
622
|
+
padding: var(--ui-space-3) var(--ui-space-4);
|
|
623
|
+
font-size: var(--ui-font-size-md);
|
|
624
|
+
}
|
|
625
|
+
button:where(:scope, :scope *) {
|
|
626
|
+
appearance: none;
|
|
627
|
+
display: inline-grid;
|
|
628
|
+
place-items: center;
|
|
629
|
+
align-self: stretch;
|
|
630
|
+
border: 0;
|
|
631
|
+
border-radius: var(--ui-radius-md);
|
|
632
|
+
background: transparent;
|
|
633
|
+
color: var(--_ui-combobox-affordance-text, var(--ui-text-secondary));
|
|
634
|
+
font: inherit;
|
|
635
|
+
font-weight: 400;
|
|
636
|
+
min-inline-size: 2rem;
|
|
637
|
+
padding: 0 var(--ui-space-1);
|
|
638
|
+
cursor: pointer;
|
|
639
|
+
}
|
|
640
|
+
.affordance-icon:where(:scope, :scope *) {
|
|
641
|
+
display: block;
|
|
642
|
+
inline-size: var(--ui-icon-size-sm);
|
|
643
|
+
block-size: var(--ui-icon-size-sm);
|
|
644
|
+
}
|
|
645
|
+
button:hover:enabled:where(:scope, :scope *) {
|
|
646
|
+
background: var(--ui-surface-muted);
|
|
647
|
+
color: var(--ui-text-primary);
|
|
648
|
+
}
|
|
649
|
+
button:focus-visible:where(:scope, :scope *) {
|
|
650
|
+
outline: none;
|
|
651
|
+
background: var(--ui-surface-muted);
|
|
652
|
+
box-shadow: inset 0 0 0 var(--ui-focus-width) color-mix(in srgb, var(--ui-focus-ring) 45%, transparent);
|
|
653
|
+
}
|
|
654
|
+
input:disabled:where(:scope, :scope *), button:disabled:where(:scope, :scope *) {
|
|
655
|
+
color: var(--ui-disabled-text);
|
|
656
|
+
cursor: not-allowed;
|
|
657
|
+
}
|
|
658
|
+
.field:has(input:disabled):where(:scope, :scope *) {
|
|
659
|
+
background: var(--ui-control-surface-disabled, var(--ui-surface-muted));
|
|
660
|
+
}
|
|
661
|
+
:where([data-component~="ui-combobox"])[data-ui-combobox-state~="validationStatus=error"] .field:where(:scope, :not([data-component], [data-slotted]:not([data-slotted~="ui-combobox"]))), :where([data-component~="ui-combobox"])[data-ui-combobox-state~="invalid"] .field:where(:scope, :not([data-component], [data-slotted]:not([data-slotted~="ui-combobox"]))) {
|
|
662
|
+
border-color: var(--_ui-combobox-invalid-border, var(--ui-field-danger, var(--ui-danger-solid, var(--ui-accent-active))));
|
|
663
|
+
}
|
|
664
|
+
.popup:where(:scope, :scope *) {
|
|
665
|
+
box-sizing: border-box;
|
|
666
|
+
min-inline-size: 12rem;
|
|
667
|
+
max-inline-size: calc(100vw - 1rem);
|
|
668
|
+
max-block-size: var(--_ui-combobox-max-block-size, 18rem);
|
|
669
|
+
overflow: auto;
|
|
670
|
+
margin: 0;
|
|
671
|
+
padding: var(--ui-space-1);
|
|
672
|
+
border: var(--ui-border-width) solid var(--_ui-combobox-popup-border, var(--ui-overlay-border, var(--ui-border-strong)));
|
|
673
|
+
border-radius: var(--_ui-combobox-popup-radius, var(--ui-overlay-radius, var(--ui-radius-md)));
|
|
674
|
+
background: var(--_ui-combobox-popup-surface, var(--ui-overlay-surface, var(--ui-surface-elevated)));
|
|
675
|
+
color: var(--ui-text-primary);
|
|
676
|
+
box-shadow: var(--_ui-combobox-popup-shadow, var(--ui-overlay-shadow, var(--ui-elevation-overlay, var(--ui-shadow-lg))));
|
|
677
|
+
}
|
|
678
|
+
[hidden]:where(:scope, :scope *) {
|
|
679
|
+
display: none;
|
|
680
|
+
}
|
|
681
|
+
.option[aria-disabled="true"]:where(:scope, :scope *) .primary, .option[aria-disabled="true"]:where(:scope, :scope *) .secondary {
|
|
682
|
+
color: var(--ui-disabled-text);
|
|
683
|
+
}
|
|
684
|
+
.primary:where(:scope, :scope *) {
|
|
685
|
+
display: block;
|
|
686
|
+
color: var(--_ui-combobox-option-text, inherit);
|
|
687
|
+
font-weight: 500;
|
|
688
|
+
}
|
|
689
|
+
/* A row with a tag or a description: the label and its tag on one line, the description under them. */
|
|
690
|
+
.detail:where(:scope, :scope *) {
|
|
691
|
+
display: grid;
|
|
692
|
+
gap: var(--ui-space-0-5);
|
|
693
|
+
min-inline-size: 0;
|
|
694
|
+
}
|
|
695
|
+
.line:where(:scope, :scope *) {
|
|
696
|
+
display: flex;
|
|
697
|
+
flex-wrap: wrap;
|
|
698
|
+
align-items: center;
|
|
699
|
+
gap: var(--ui-space-2);
|
|
700
|
+
}
|
|
701
|
+
.description:where(:scope, :scope *) {
|
|
702
|
+
color: var(--ui-text-muted);
|
|
703
|
+
font-size: var(--ui-font-size-sm);
|
|
704
|
+
line-height: var(--ui-line-height-md);
|
|
705
|
+
}
|
|
706
|
+
.message:where(:scope, :scope *), .group:where(:scope, :scope *) {
|
|
707
|
+
color: var(--_ui-combobox-message-text, var(--ui-text-secondary));
|
|
708
|
+
font-weight: 400;
|
|
709
|
+
font-size: var(--ui-font-size-sm);
|
|
710
|
+
line-height: var(--ui-line-height-md);
|
|
711
|
+
overflow-wrap: anywhere;
|
|
712
|
+
}
|
|
713
|
+
.group:where(:scope, :scope *), .popup:where(:scope, :scope *) .message {
|
|
714
|
+
padding: var(--ui-space-2) var(--ui-space-3);
|
|
715
|
+
}
|
|
716
|
+
.sr-only:where(:scope, :scope *) {
|
|
717
|
+
position: absolute;
|
|
718
|
+
inline-size: 1px;
|
|
719
|
+
block-size: 1px;
|
|
720
|
+
overflow: hidden;
|
|
721
|
+
clip-path: inset(50%);
|
|
722
|
+
white-space: nowrap;
|
|
723
|
+
}
|
|
724
|
+
@media (pointer: coarse) {
|
|
725
|
+
:where([data-component~="ui-combobox"]):where(:scope, :not([data-component], [data-slotted]:not([data-slotted~="ui-combobox"]))) {
|
|
726
|
+
--_row: max(var(--ui-control-size-md), var(--ui-control-min-block-size));
|
|
727
|
+
}
|
|
728
|
+
button:where(:scope, :scope *) {
|
|
729
|
+
min-inline-size: 2.75rem;
|
|
730
|
+
min-block-size: calc(var(--_row) - 2 * var(--ui-border-width));
|
|
731
|
+
}
|
|
732
|
+
/* Under touch a small field is still a touch-sized target, as a small button is, and keeps
|
|
733
|
+
body-size text: below 16px, iOS zooms the page into the focused field. */
|
|
734
|
+
:where([data-component~="ui-combobox"])[data-ui-combobox-state~="size=sm"]:where(:scope, :not([data-component], [data-slotted]:not([data-slotted~="ui-combobox"]))) {
|
|
735
|
+
--_row: var(--ui-control-min-block-size);
|
|
736
|
+
}
|
|
737
|
+
:where([data-component~="ui-combobox"])[data-ui-combobox-state~="size=sm"] input:where(:scope, :not([data-component], [data-slotted]:not([data-slotted~="ui-combobox"]))) {
|
|
738
|
+
font-size: inherit;
|
|
739
|
+
}
|
|
740
|
+
}
|
|
741
|
+
@media (forced-colors: active) {
|
|
742
|
+
.field:where(:scope, :scope *), .popup:where(:scope, :scope *) {
|
|
743
|
+
border-color: CanvasText;
|
|
744
|
+
}
|
|
745
|
+
.option.active:where(:scope, :scope *) {
|
|
746
|
+
outline-color: Highlight;
|
|
747
|
+
}
|
|
748
|
+
}
|
|
749
|
+
|
|
750
|
+
/* Multiple mode keeps one control height. Chips and the input scroll within the entry,
|
|
751
|
+
while the clear and disclosure controls remain fixed at the end of the field. */
|
|
752
|
+
:where([data-component~="ui-combobox"])[data-ui-combobox-state~="multiple"] .field:where(:scope, :not([data-component], [data-slotted]:not([data-slotted~="ui-combobox"]))) {
|
|
753
|
+
align-items: center;
|
|
754
|
+
min-block-size: var(--_ui-combobox-item-min-block-size, var(--_row));
|
|
755
|
+
padding: var(--ui-space-1);
|
|
756
|
+
}
|
|
757
|
+
:where([data-component~="ui-combobox"])[data-ui-combobox-state~="multiple"] .entry:where(:scope, :not([data-component], [data-slotted]:not([data-slotted~="ui-combobox"]))) {
|
|
758
|
+
align-items: center;
|
|
759
|
+
gap: var(--ui-space-1);
|
|
760
|
+
overflow-x: auto;
|
|
761
|
+
scrollbar-width: none;
|
|
762
|
+
}
|
|
763
|
+
:where([data-component~="ui-combobox"])[data-ui-combobox-state~="multiple"] .entry:where(:scope, :not([data-component], [data-slotted]:not([data-slotted~="ui-combobox"])))::-webkit-scrollbar {
|
|
764
|
+
display: none;
|
|
765
|
+
}
|
|
766
|
+
:where([data-component~="ui-combobox"])[data-ui-combobox-state~="multiple"] input:where(:scope, :not([data-component], [data-slotted]:not([data-slotted~="ui-combobox"]))) {
|
|
767
|
+
flex: 1 0 var(--_ui-combobox-item-input-min-inline-size, 5rem);
|
|
768
|
+
width: auto;
|
|
769
|
+
min-block-size: 1.75rem;
|
|
770
|
+
padding: var(--ui-space-0-5) var(--ui-space-1);
|
|
771
|
+
}
|
|
772
|
+
/* Size variants keep their control height as selections are added. */
|
|
773
|
+
:where([data-component~="ui-combobox"])[data-ui-combobox-state~="multiple"]:where([data-component~="ui-combobox"])[data-ui-combobox-state~="size=sm"] .field:where(:scope, :not([data-component], [data-slotted]:not([data-slotted~="ui-combobox"]))) {
|
|
774
|
+
min-block-size: 0;
|
|
775
|
+
padding: var(--ui-space-0-5);
|
|
776
|
+
}
|
|
777
|
+
:where([data-component~="ui-combobox"])[data-ui-combobox-state~="multiple"]:where([data-component~="ui-combobox"])[data-ui-combobox-state~="size=sm"] input:where(:scope, :not([data-component], [data-slotted]:not([data-slotted~="ui-combobox"]))) {
|
|
778
|
+
min-block-size: calc(var(--_row) - 2 * var(--ui-border-width) - 2 * var(--ui-space-0-5));
|
|
779
|
+
padding: 0 var(--ui-space-1);
|
|
780
|
+
}
|
|
781
|
+
/* A large multiple field starts at the large control height, as sm starts at the small one. */
|
|
782
|
+
:where([data-component~="ui-combobox"])[data-ui-combobox-state~="multiple"]:where([data-component~="ui-combobox"])[data-ui-combobox-state~="size=lg"] .field:where(:scope, :not([data-component], [data-slotted]:not([data-slotted~="ui-combobox"]))) {
|
|
783
|
+
min-block-size: 0;
|
|
784
|
+
}
|
|
785
|
+
:where([data-component~="ui-combobox"])[data-ui-combobox-state~="multiple"]:where([data-component~="ui-combobox"])[data-ui-combobox-state~="size=lg"] input:where(:scope, :not([data-component], [data-slotted]:not([data-slotted~="ui-combobox"]))) {
|
|
786
|
+
min-block-size: calc(var(--ui-control-size-lg) - 2 * var(--ui-border-width) - 2 * var(--ui-space-1));
|
|
787
|
+
}
|
|
788
|
+
.item:where(:scope, :scope *) {
|
|
789
|
+
appearance: none;
|
|
790
|
+
display: inline-flex;
|
|
791
|
+
flex: none;
|
|
792
|
+
min-inline-size: 0;
|
|
793
|
+
max-inline-size: min(100%, var(--_ui-combobox-item-item-max-inline-size, 12rem));
|
|
794
|
+
overflow: hidden;
|
|
795
|
+
padding: 0;
|
|
796
|
+
border: 0;
|
|
797
|
+
border-radius: var(--ui-radius-sm);
|
|
798
|
+
background: transparent;
|
|
799
|
+
color: inherit;
|
|
800
|
+
font: inherit;
|
|
801
|
+
cursor: default;
|
|
802
|
+
}
|
|
803
|
+
.item:focus-visible:where(:scope, :scope *) {
|
|
804
|
+
outline: var(--ui-focus-width) solid var(--ui-focus-ring);
|
|
805
|
+
outline-offset: var(--ui-border-width);
|
|
806
|
+
}
|
|
807
|
+
.item:disabled:where(:scope, :scope *) {
|
|
808
|
+
color: var(--ui-disabled-text);
|
|
809
|
+
}
|
|
810
|
+
|
|
811
|
+
/* A component that sets its display still honours the hidden attribute on its root. */
|
|
812
|
+
:where([data-component~="ui-combobox"])[hidden]:where(:scope, :not([data-component], [data-slotted]:not([data-slotted~="ui-combobox"]))) {
|
|
813
|
+
display: none;
|
|
814
|
+
}
|
|
815
|
+
}
|
package/styles/ui-container.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* Generated by HTML Next 1.0.0-alpha.
|
|
1
|
+
/* Generated by HTML Next 1.0.0-alpha.69. Do not edit. */
|
|
2
2
|
@supports (-moz-appearance: none) {
|
|
3
3
|
:where([data-component], [data-slotted]) { --html-next-scope-owner: boundary; }
|
|
4
4
|
:where([data-slotted]:not([data-component])) { --html-next-scope-owner: projected !important; }
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* Generated by HTML Next 1.0.0-alpha.
|
|
1
|
+
/* Generated by HTML Next 1.0.0-alpha.69. Do not edit. */
|
|
2
2
|
@supports (-moz-appearance: none) {
|
|
3
3
|
:where([data-component], [data-slotted]) { --html-next-scope-owner: boundary; }
|
|
4
4
|
:where([data-slotted]:not([data-component])) { --html-next-scope-owner: projected !important; }
|
package/styles/ui-cover.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* Generated by HTML Next 1.0.0-alpha.
|
|
1
|
+
/* Generated by HTML Next 1.0.0-alpha.69. Do not edit. */
|
|
2
2
|
@supports (-moz-appearance: none) {
|
|
3
3
|
:where([data-component], [data-slotted]) { --html-next-scope-owner: boundary; }
|
|
4
4
|
:where([data-slotted]:not([data-component])) { --html-next-scope-owner: projected !important; }
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* Generated by HTML Next 1.0.0-alpha.
|
|
1
|
+
/* Generated by HTML Next 1.0.0-alpha.69. Do not edit. */
|
|
2
2
|
@supports (-moz-appearance: none) {
|
|
3
3
|
:where([data-component], [data-slotted]) { --html-next-scope-owner: boundary; }
|
|
4
4
|
:where([data-slotted]:not([data-component])) { --html-next-scope-owner: projected !important; }
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* Generated by HTML Next 1.0.0-alpha.
|
|
1
|
+
/* Generated by HTML Next 1.0.0-alpha.69. Do not edit. */
|
|
2
2
|
@supports (-moz-appearance: none) {
|
|
3
3
|
:where([data-component], [data-slotted]) { --html-next-scope-owner: boundary; }
|
|
4
4
|
:where([data-slotted]:not([data-component])) { --html-next-scope-owner: projected !important; }
|