@threadlabs/looma 0.24.1 → 0.25.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/components/ui-affordance-scope/ui-affordance-scope.html +1 -1
- package/components/ui-affordance-scope/ui-affordance-scope.js +6 -1
- package/components/ui-avatar/ui-avatar.html +4 -4
- package/components/ui-avatar/ui-avatar.js +6 -1
- package/components/ui-avatar-group/ui-avatar-group.html +2 -2
- package/components/ui-avatar-group/ui-avatar-group.js +6 -1
- package/components/ui-badge/ui-badge.html +30 -30
- package/components/ui-breadcrumb-item/ui-breadcrumb-item.html +1 -1
- package/components/ui-button/ui-button.html +33 -33
- package/components/ui-button/ui-button.js +6 -1
- package/components/ui-callout/ui-callout.html +4 -4
- package/components/ui-card/ui-card.html +9 -9
- package/components/ui-checkbox/ui-checkbox.html +11 -11
- package/components/ui-checkbox/ui-checkbox.js +6 -1
- package/components/ui-cluster/ui-cluster.html +12 -12
- package/components/ui-combobox/ui-combobox.html +15 -17
- package/components/ui-combobox/ui-combobox.js +13 -15
- package/components/ui-container/ui-container.html +5 -5
- package/components/ui-context-menu/ui-context-menu.js +6 -1
- package/components/ui-cover/ui-cover.html +1 -1
- package/components/ui-description-list/ui-description-list.html +10 -10
- package/components/ui-dialog/ui-dialog.html +4 -4
- package/components/ui-dialog/ui-dialog.js +6 -1
- package/components/ui-disclosure/ui-disclosure.html +13 -13
- package/components/ui-disclosure/ui-disclosure.js +6 -1
- package/components/ui-editable/ui-editable.html +1 -1
- package/components/ui-editable/ui-editable.js +6 -1
- package/components/ui-editor-insert-table-grid/ui-editor-insert-table-grid.js +6 -1
- package/components/ui-editor-mention-menu/ui-editor-mention-menu.js +6 -1
- package/components/ui-editor-slash-menu/ui-editor-slash-menu.js +6 -1
- package/components/ui-editor-table-context-menu/ui-editor-table-context-menu.js +6 -1
- package/components/ui-editor-table-overlay/ui-editor-table-overlay.js +6 -1
- package/components/ui-editor-table-toolbar/ui-editor-table-toolbar.js +6 -1
- package/components/ui-editor-toolbar/ui-editor-toolbar.html +4 -4
- package/components/ui-editor-toolbar/ui-editor-toolbar.js +6 -1
- package/components/ui-floating-action-button/ui-floating-action-button.html +1 -1
- package/components/ui-form-field/ui-form-field.html +1 -1
- package/components/ui-form-field/ui-form-field.js +6 -1
- package/components/ui-grid/ui-grid.html +7 -7
- package/components/ui-icon-button/ui-icon-button.html +26 -26
- package/components/ui-icon-button/ui-icon-button.js +6 -1
- package/components/ui-image/ui-image.html +11 -11
- package/components/ui-image/ui-image.js +6 -1
- package/components/ui-input/ui-input.html +9 -7
- package/components/ui-input/ui-input.js +6 -1
- package/components/ui-input-group/ui-input-group.html +37 -8
- package/components/ui-input-group/ui-input-group.js +8 -3
- package/components/ui-list/ui-list.html +6 -6
- package/components/ui-list-item/ui-list-item.html +8 -8
- package/components/ui-listbox/ui-listbox.js +6 -1
- package/components/ui-menu/ui-menu.html +3 -3
- package/components/ui-menu/ui-menu.js +6 -1
- package/components/ui-menu-item/ui-menu-item.html +3 -3
- package/components/ui-menu-item/ui-menu-item.js +6 -1
- package/components/ui-meter/ui-meter.html +7 -7
- package/components/ui-nav-item/ui-nav-item.html +6 -6
- package/components/ui-page-header/ui-page-header.html +2 -2
- package/components/ui-popover/ui-popover.html +3 -3
- package/components/ui-popover/ui-popover.js +6 -1
- package/components/ui-radio/ui-radio.html +10 -10
- package/components/ui-radio/ui-radio.js +6 -1
- package/components/ui-radio-group/ui-radio-group.html +2 -2
- package/components/ui-radio-group/ui-radio-group.js +6 -1
- package/components/ui-reel/ui-reel.html +11 -11
- package/components/ui-scroll-area/ui-scroll-area.html +4 -4
- package/components/ui-scroll-area/ui-scroll-area.js +6 -1
- package/components/ui-search-result-row/ui-search-result-row.html +5 -5
- package/components/ui-search-shell/ui-search-shell.js +6 -1
- package/components/ui-section/ui-section.html +4 -4
- package/components/ui-select/ui-select.html +3 -3
- package/components/ui-select/ui-select.js +6 -1
- package/components/ui-separator/ui-separator.html +4 -4
- package/components/ui-sidebar/ui-sidebar.html +6 -6
- package/components/ui-sidebar/ui-sidebar.js +6 -1
- package/components/ui-spinner/ui-spinner.html +1 -1
- package/components/ui-stack/ui-stack.html +12 -12
- package/components/ui-status-message/ui-status-message.html +4 -4
- package/components/ui-switch/ui-switch.html +11 -11
- package/components/ui-switch/ui-switch.js +6 -1
- package/components/ui-switcher/ui-switcher.html +11 -11
- package/components/ui-switcher/ui-switcher.js +6 -1
- package/components/ui-table/ui-table.html +2 -2
- package/components/ui-table/ui-table.js +6 -1
- package/components/ui-tabs/ui-tabs.html +8 -8
- package/components/ui-tabs/ui-tabs.js +6 -1
- package/components/ui-text/ui-text.html +20 -20
- package/components/ui-textarea/ui-textarea.html +46 -18
- package/components/ui-textarea/ui-textarea.js +6 -1
- package/components/ui-toast/ui-toast.html +4 -4
- package/components/ui-toast/ui-toast.js +6 -1
- package/components/ui-toast-region/ui-toast-region.html +16 -11
- package/components/ui-toast-region/ui-toast-region.js +12 -9
- package/components/ui-tooltip/ui-tooltip.html +1 -1
- package/components/ui-tooltip/ui-tooltip.js +6 -1
- package/components/ui-tree/ui-tree.html +2 -2
- package/components/ui-tree/ui-tree.js +6 -1
- package/components/ui-tree-item/ui-tree-item.html +4 -4
- package/components/ui-tree-item/ui-tree-item.js +6 -1
- package/dist/index.js +10 -4
- 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 +1 -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 +1 -1
- package/styles/ui-disclosure.css +2 -2
- package/styles/ui-editable.css +1 -1
- package/styles/ui-editor-insert-table-grid.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-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 +36 -6
- 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 +1 -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 +2 -2
- 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-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 +43 -15
- package/styles/ui-toast-region.css +1 -1
- package/styles/ui-toast.css +1 -1
- package/styles/ui-tooltip.css +1 -1
- package/styles/ui-top-bar.css +1 -1
- package/styles/ui-tree-item.css +1 -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 -3
- 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/UiEditorInsertTableGrid.d.ts +1 -1
- package/vanilla/UiEditorInsertTableGrid.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/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 +4 -4
- package/vanilla/UiInput.js +2 -2
- package/vanilla/UiInputGroup.d.ts +2 -1
- package/vanilla/UiInputGroup.js +2 -2
- 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 +1 -1
- 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/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 +2 -2
- package/vanilla/UiToastRegion.js +2 -2
- 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 +8 -1
- package/vue/UiAvatar.d.ts +6 -9
- package/vue/UiAvatar.vue +71 -20
- package/vue/UiAvatarGroup.d.ts +7 -10
- package/vue/UiAvatarGroup.vue +45 -12
- 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.d.ts +8 -11
- package/vue/UiCheckbox.vue +34 -11
- package/vue/UiCluster.vue +1 -1
- package/vue/UiCombobox.d.ts +60 -66
- package/vue/UiCombobox.vue +476 -124
- package/vue/UiContainer.vue +1 -1
- package/vue/UiContextMenu.vue +18 -9
- package/vue/UiCover.vue +1 -1
- package/vue/UiDescriptionItem.vue +1 -1
- package/vue/UiDescriptionList.vue +1 -1
- package/vue/UiDialog.d.ts +8 -11
- package/vue/UiDialog.vue +39 -12
- package/vue/UiDisclosure.d.ts +12 -15
- package/vue/UiDisclosure.vue +70 -24
- package/vue/UiEditable.d.ts +3 -3
- package/vue/UiEditable.vue +60 -21
- package/vue/UiEditorInsertTableGrid.d.ts +2 -2
- package/vue/UiEditorInsertTableGrid.vue +75 -14
- package/vue/UiEditorMentionMenu.d.ts +10 -13
- package/vue/UiEditorMentionMenu.vue +50 -7
- package/vue/UiEditorMentionMenuItem.vue +1 -1
- package/vue/UiEditorSlashMenu.d.ts +12 -15
- package/vue/UiEditorSlashMenu.vue +48 -7
- package/vue/UiEditorSlashMenuGroup.vue +1 -1
- package/vue/UiEditorSlashMenuItem.vue +1 -1
- package/vue/UiEditorTableContextMenu.vue +73 -4
- package/vue/UiEditorTableOverlay.d.ts +2 -2
- package/vue/UiEditorTableOverlay.vue +202 -38
- package/vue/UiEditorTableToolbar.d.ts +2 -2
- package/vue/UiEditorTableToolbar.vue +128 -7
- package/vue/UiEditorToolbar.vue +3 -3
- 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 +7 -6
- package/vue/UiInput.d.ts +5 -5
- package/vue/UiInput.vue +15 -3
- package/vue/UiInputGroup.d.ts +9 -0
- package/vue/UiInputGroup.vue +57 -8
- package/vue/UiList.vue +1 -1
- package/vue/UiListItem.vue +1 -1
- package/vue/UiListbox.d.ts +6 -9
- package/vue/UiListbox.vue +70 -19
- package/vue/UiMenu.vue +20 -10
- package/vue/UiMenuGroup.vue +1 -1
- package/vue/UiMenuItem.d.ts +13 -16
- package/vue/UiMenuItem.vue +30 -7
- package/vue/UiMeter.vue +1 -1
- package/vue/UiNavItem.vue +1 -1
- package/vue/UiPageHeader.vue +1 -1
- package/vue/UiPopover.vue +12 -4
- package/vue/UiRadio.d.ts +8 -11
- package/vue/UiRadio.vue +34 -11
- package/vue/UiRadioGroup.vue +16 -7
- package/vue/UiReel.vue +1 -1
- package/vue/UiScrollArea.vue +3 -3
- package/vue/UiSearchResultRow.vue +1 -1
- package/vue/UiSearchShell.vue +14 -6
- package/vue/UiSection.vue +1 -1
- package/vue/UiSelect.vue +3 -2
- package/vue/UiSeparator.vue +1 -1
- package/vue/UiSidebar.d.ts +7 -10
- package/vue/UiSidebar.vue +44 -12
- package/vue/UiSpinner.vue +1 -1
- package/vue/UiStack.vue +1 -1
- package/vue/UiStatusMessage.vue +1 -1
- package/vue/UiSwitch.d.ts +8 -11
- package/vue/UiSwitch.vue +34 -11
- package/vue/UiSwitcher.vue +8 -1
- package/vue/UiTable.vue +1 -1
- package/vue/UiTabs.vue +30 -8
- package/vue/UiText.vue +1 -1
- package/vue/UiTextarea.vue +78 -17
- package/vue/UiToast.vue +7 -6
- package/vue/UiToastRegion.d.ts +15 -3
- package/vue/UiToastRegion.vue +90 -45
- package/vue/UiTooltip.d.ts +9 -12
- package/vue/UiTooltip.vue +30 -7
- package/vue/UiTopBar.vue +1 -1
- package/vue/UiTree.vue +17 -13
- package/vue/UiTreeItem.d.ts +15 -18
- package/vue/UiTreeItem.vue +79 -30
- package/vue/chunks/UiActionBar.js +1 -1
- package/vue/chunks/UiAffordanceScope.js +6 -2
- package/vue/chunks/UiAvatar.js +37 -10
- package/vue/chunks/UiAvatarGroup.js +26 -7
- package/vue/chunks/UiBadge.js +2 -2
- package/vue/chunks/UiBreadcrumbItem.js +2 -2
- package/vue/chunks/UiBreadcrumbs.js +2 -2
- package/vue/chunks/UiButton.js +2 -2
- package/vue/chunks/UiCallout.js +2 -2
- package/vue/chunks/UiCard.js +2 -2
- package/vue/chunks/UiCheckbox.js +25 -12
- package/vue/chunks/UiCluster.js +2 -2
- package/vue/chunks/UiCombobox.js +628 -117
- package/vue/chunks/UiContainer.js +2 -2
- package/vue/chunks/UiContextMenu.js +14 -10
- package/vue/chunks/UiCover.js +2 -2
- package/vue/chunks/UiDescriptionItem.js +2 -2
- package/vue/chunks/UiDescriptionList.js +2 -2
- package/vue/chunks/UiDialog.js +29 -11
- package/vue/chunks/UiDisclosure.js +44 -14
- package/vue/chunks/UiEditable.js +33 -9
- package/vue/chunks/UiEditorInsertTableGrid.js +98 -14
- package/vue/chunks/UiEditorMentionMenu.js +76 -9
- package/vue/chunks/UiEditorMentionMenuItem.js +2 -2
- package/vue/chunks/UiEditorSlashMenu.js +70 -11
- package/vue/chunks/UiEditorSlashMenuGroup.js +2 -2
- package/vue/chunks/UiEditorSlashMenuItem.js +2 -2
- package/vue/chunks/UiEditorTableContextMenu.js +120 -2
- package/vue/chunks/UiEditorTableOverlay.js +306 -12
- package/vue/chunks/UiEditorTableToolbar.js +215 -3
- package/vue/chunks/UiEditorToolbar.js +8 -8
- package/vue/chunks/UiFloatingActionButton.js +2 -2
- package/vue/chunks/UiFormField.js +2 -2
- package/vue/chunks/UiGrid.js +2 -2
- package/vue/chunks/UiIcon.js +2 -2
- package/vue/chunks/UiIconButton.js +2 -2
- package/vue/chunks/UiImage.js +12 -12
- package/vue/chunks/UiInput.js +34 -4
- package/vue/chunks/UiInputGroup.js +30 -4
- package/vue/chunks/UiList.js +2 -2
- package/vue/chunks/UiListItem.js +2 -2
- package/vue/chunks/UiListbox.js +96 -12
- package/vue/chunks/UiMenu.js +6 -2
- package/vue/chunks/UiMenuGroup.js +2 -2
- package/vue/chunks/UiMenuItem.js +15 -3
- package/vue/chunks/UiMeter.js +2 -2
- package/vue/chunks/UiNavItem.js +2 -2
- package/vue/chunks/UiPageHeader.js +2 -2
- package/vue/chunks/UiPopover.js +6 -2
- package/vue/chunks/UiRadio.js +25 -12
- package/vue/chunks/UiRadioGroup.js +6 -2
- package/vue/chunks/UiReel.js +2 -2
- package/vue/chunks/UiScrollArea.js +8 -8
- package/vue/chunks/UiSearchResultRow.js +2 -2
- package/vue/chunks/UiSearchShell.js +9 -4
- package/vue/chunks/UiSection.js +2 -2
- package/vue/chunks/UiSelect.js +5 -3
- package/vue/chunks/UiSeparator.js +2 -2
- package/vue/chunks/UiSidebar.js +28 -5
- package/vue/chunks/UiSpinner.js +2 -2
- package/vue/chunks/UiStack.js +2 -2
- package/vue/chunks/UiStatusMessage.js +2 -2
- package/vue/chunks/UiSwitch.js +25 -12
- package/vue/chunks/UiSwitcher.js +6 -2
- package/vue/chunks/UiTable.js +2 -2
- package/vue/chunks/UiTabs.js +39 -10
- package/vue/chunks/UiText.js +2 -2
- package/vue/chunks/UiTextarea.js +3 -2
- package/vue/chunks/UiToast.js +8 -8
- package/vue/chunks/UiToastRegion.js +86 -20
- package/vue/chunks/UiTooltip.js +15 -3
- package/vue/chunks/UiTopBar.js +1 -1
- package/vue/chunks/UiTree.js +2 -2
- package/vue/chunks/UiTreeItem.js +84 -51
- package/vue/chunks/control.js +9 -2
- package/vue/chunks/host.js +203 -29
- package/vue/chunks/props.js +43 -7
- package/vue/components.css +1447 -1360
- package/vue/host.ts +286 -42
package/README.md
CHANGED
|
@@ -15,7 +15,7 @@ import "@threadlabs/looma/vue.css";
|
|
|
15
15
|
import { Button, TopBar } from "@threadlabs/looma/vue";
|
|
16
16
|
```
|
|
17
17
|
|
|
18
|
-
The Vue components are ordinary Vue 3.5 single-file components, compiled to JavaScript with
|
|
18
|
+
The Vue components are ordinary Vue 3.5.43+ single-file components, compiled to JavaScript with
|
|
19
19
|
declarations; the `.vue` sources ship beside them. They depend on Vue and Looma only.
|
|
20
20
|
|
|
21
21
|
The editor is Tiptap-based and needs `@tiptap/vue-3@^2.11.5`:
|
|
@@ -4,7 +4,7 @@ function distance(point, rect) {
|
|
|
4
4
|
return Math.hypot(dx, dy);
|
|
5
5
|
}
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
function connect(host) {
|
|
8
8
|
const element = host.element;
|
|
9
9
|
const owner = element.ownerDocument.defaultView;
|
|
10
10
|
let anchors = [];
|
|
@@ -74,3 +74,8 @@ export default function controller(host) {
|
|
|
74
74
|
clear();
|
|
75
75
|
};
|
|
76
76
|
}
|
|
77
|
+
|
|
78
|
+
/** Keep DOM setup and its cleanup tied to each connection, including reconnects. */
|
|
79
|
+
export default function controller(host) {
|
|
80
|
+
host.on("connect", () => connect(host));
|
|
81
|
+
}
|
|
@@ -76,14 +76,14 @@
|
|
|
76
76
|
text-transform: uppercase;
|
|
77
77
|
}
|
|
78
78
|
|
|
79
|
-
:host
|
|
79
|
+
:host([size="sm"]) {
|
|
80
80
|
--_ui-default-icon-size: 1rem;
|
|
81
81
|
inline-size: 1.75rem;
|
|
82
82
|
block-size: 1.75rem;
|
|
83
83
|
font-size: var(--ui-font-size-xs);
|
|
84
84
|
}
|
|
85
85
|
|
|
86
|
-
:host
|
|
86
|
+
:host([size="xs"]) {
|
|
87
87
|
--_ui-default-icon-size: 0.75rem;
|
|
88
88
|
inline-size: 1.25rem;
|
|
89
89
|
block-size: 1.25rem;
|
|
@@ -96,13 +96,13 @@
|
|
|
96
96
|
border-color: var(--ui-avatar-border, var(--ui-border-strong));
|
|
97
97
|
}
|
|
98
98
|
|
|
99
|
-
:host
|
|
99
|
+
:host([shape="square"]) {
|
|
100
100
|
border-radius: var(--ui-avatar-radius, var(--ui-radius-md));
|
|
101
101
|
}
|
|
102
102
|
|
|
103
103
|
/* An outline, not a dot: the avatar clips its content to the circle, and an outline is drawn
|
|
104
104
|
outside the box, so the ring survives the clip and the overlap in an Avatar Group. */
|
|
105
|
-
:host
|
|
105
|
+
:host([active]) {
|
|
106
106
|
outline: var(--ui-border-width) solid var(--ui-avatar-active-ring, var(--ui-accent-solid));
|
|
107
107
|
outline-offset: var(--ui-border-width);
|
|
108
108
|
}
|
|
@@ -6,7 +6,7 @@ function toInitials(value) {
|
|
|
6
6
|
}
|
|
7
7
|
|
|
8
8
|
// Shows an authored <img>, else the `src` image, else initials, and tracks whether the image loaded.
|
|
9
|
-
|
|
9
|
+
function connect(host) {
|
|
10
10
|
const element = host.element;
|
|
11
11
|
const managed = host.refs.image;
|
|
12
12
|
let active;
|
|
@@ -51,3 +51,8 @@ export default function controller(host) {
|
|
|
51
51
|
active?.removeEventListener("error", onError);
|
|
52
52
|
};
|
|
53
53
|
}
|
|
54
|
+
|
|
55
|
+
/** Keep DOM setup and its cleanup tied to each connection, including reconnects. */
|
|
56
|
+
export default function controller(host) {
|
|
57
|
+
host.on("connect", () => connect(host));
|
|
58
|
+
}
|
|
@@ -81,13 +81,13 @@
|
|
|
81
81
|
flex-shrink: 0;
|
|
82
82
|
}
|
|
83
83
|
|
|
84
|
-
:host
|
|
84
|
+
:host([size="sm"]) .overflow {
|
|
85
85
|
margin-inline-start: -0.25rem;
|
|
86
86
|
inline-size: 1.75rem;
|
|
87
87
|
block-size: 1.75rem;
|
|
88
88
|
}
|
|
89
89
|
|
|
90
|
-
:host
|
|
90
|
+
:host([size="xs"]) .overflow {
|
|
91
91
|
margin-inline-start: -0.1875rem;
|
|
92
92
|
inline-size: 1.25rem;
|
|
93
93
|
block-size: 1.25rem;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Hides avatars beyond `max`, counts them into the "+N" badge, and overlaps the rest. Projected
|
|
2
2
|
// avatars are component roots, which this component's styles do not reach, so the overlap is inline.
|
|
3
|
-
|
|
3
|
+
function connect(host) {
|
|
4
4
|
const element = host.element;
|
|
5
5
|
const update = () => {
|
|
6
6
|
const max = Number(host.props.max.value);
|
|
@@ -31,3 +31,8 @@ export default function controller(host) {
|
|
|
31
31
|
observer.disconnect();
|
|
32
32
|
};
|
|
33
33
|
}
|
|
34
|
+
|
|
35
|
+
/** Keep DOM setup and its cleanup tied to each connection, including reconnects. */
|
|
36
|
+
export default function controller(host) {
|
|
37
|
+
host.on("connect", () => connect(host));
|
|
38
|
+
}
|
|
@@ -126,7 +126,7 @@
|
|
|
126
126
|
}
|
|
127
127
|
}
|
|
128
128
|
|
|
129
|
-
:host
|
|
129
|
+
:host([size="xs"]) {
|
|
130
130
|
box-sizing: border-box;
|
|
131
131
|
min-inline-size: 1rem;
|
|
132
132
|
min-block-size: var(--ui-badge-min-block-size, 1rem);
|
|
@@ -135,61 +135,61 @@
|
|
|
135
135
|
line-height: var(--ui-badge-line-height, 1);
|
|
136
136
|
}
|
|
137
137
|
|
|
138
|
-
:host
|
|
138
|
+
:host([tone="accent"]) {
|
|
139
139
|
--_badge-surface: var(--ui-accent-strong-surface, var(--ui-accent-solid));
|
|
140
140
|
--_badge-border: var(--ui-accent-strong-surface, var(--ui-accent-solid));
|
|
141
141
|
--_badge-text: var(--ui-accent-on-strong, var(--ui-text-on-accent));
|
|
142
142
|
}
|
|
143
143
|
|
|
144
|
-
:host
|
|
144
|
+
:host([tone="danger"]) {
|
|
145
145
|
--_badge-surface: var(--ui-danger-strong-surface, var(--ui-danger-solid));
|
|
146
146
|
--_badge-border: var(--ui-danger-strong-surface, var(--ui-danger-solid));
|
|
147
147
|
--_badge-text: var(--ui-danger-on-strong, var(--ui-text-on-accent));
|
|
148
148
|
}
|
|
149
149
|
|
|
150
|
-
:host
|
|
150
|
+
:host([tone="success"]) {
|
|
151
151
|
--_badge-surface: var(--ui-success-strong-surface, var(--ui-success-solid));
|
|
152
152
|
--_badge-border: var(--ui-success-strong-surface, var(--ui-success-solid));
|
|
153
153
|
--_badge-text: var(--ui-success-on-strong, var(--ui-text-on-accent));
|
|
154
154
|
}
|
|
155
155
|
|
|
156
|
-
:host
|
|
156
|
+
:host([tone="warning"]) {
|
|
157
157
|
--_badge-surface: var(--ui-warning-strong-surface, var(--ui-warning-solid));
|
|
158
158
|
--_badge-border: var(--ui-warning-strong-surface, var(--ui-warning-solid));
|
|
159
159
|
--_badge-text: var(--ui-warning-on-strong, var(--ui-text-on-accent));
|
|
160
160
|
}
|
|
161
161
|
|
|
162
|
-
:host
|
|
162
|
+
:host([tone="info"]) {
|
|
163
163
|
--_badge-surface: var(--ui-info-strong-surface, var(--ui-info-solid));
|
|
164
164
|
--_badge-border: var(--ui-info-strong-surface, var(--ui-info-solid));
|
|
165
165
|
--_badge-text: var(--ui-info-on-strong, var(--ui-text-on-accent));
|
|
166
166
|
}
|
|
167
167
|
|
|
168
|
-
:host
|
|
168
|
+
:host([variant="subtle"][tone="accent"]) {
|
|
169
169
|
--_badge-surface: color-mix(in srgb, var(--ui-accent-solid) 19%, var(--ui-surface-default));
|
|
170
170
|
--_badge-border: color-mix(in srgb, var(--ui-accent-solid) 25%, var(--ui-surface-default));
|
|
171
171
|
--_badge-text: var(--ui-accent-subtle-text, var(--ui-accent-solid));
|
|
172
172
|
}
|
|
173
173
|
|
|
174
|
-
:host
|
|
174
|
+
:host([variant="subtle"][tone="danger"]) {
|
|
175
175
|
--_badge-surface: color-mix(in srgb, var(--ui-danger-solid) 19%, var(--ui-surface-default));
|
|
176
176
|
--_badge-border: color-mix(in srgb, var(--ui-danger-solid) 25%, var(--ui-surface-default));
|
|
177
177
|
--_badge-text: var(--ui-danger-subtle-text, var(--ui-danger-solid));
|
|
178
178
|
}
|
|
179
179
|
|
|
180
|
-
:host
|
|
180
|
+
:host([variant="subtle"][tone="success"]) {
|
|
181
181
|
--_badge-surface: color-mix(in srgb, var(--ui-success-solid) 19%, var(--ui-surface-default));
|
|
182
182
|
--_badge-border: color-mix(in srgb, var(--ui-success-solid) 25%, var(--ui-surface-default));
|
|
183
183
|
--_badge-text: var(--ui-success-subtle-text, var(--ui-success-solid));
|
|
184
184
|
}
|
|
185
185
|
|
|
186
|
-
:host
|
|
186
|
+
:host([variant="subtle"][tone="warning"]) {
|
|
187
187
|
--_badge-surface: color-mix(in srgb, var(--ui-warning-solid) 19%, var(--ui-surface-default));
|
|
188
188
|
--_badge-border: color-mix(in srgb, var(--ui-warning-solid) 25%, var(--ui-surface-default));
|
|
189
189
|
--_badge-text: var(--ui-warning-subtle-text, var(--ui-warning-solid));
|
|
190
190
|
}
|
|
191
191
|
|
|
192
|
-
:host
|
|
192
|
+
:host([variant="subtle"][tone="info"]) {
|
|
193
193
|
--_badge-surface: color-mix(in srgb, var(--ui-info-solid) 19%, var(--ui-surface-default));
|
|
194
194
|
--_badge-border: color-mix(in srgb, var(--ui-info-solid) 25%, var(--ui-surface-default));
|
|
195
195
|
--_badge-text: var(--ui-info-subtle-text, var(--ui-info-solid));
|
|
@@ -197,13 +197,13 @@
|
|
|
197
197
|
|
|
198
198
|
/* A solid colour fills with the ink. Its text is the page surface, mixed at 0% only so that it too is
|
|
199
199
|
invalid while the hook is unset. */
|
|
200
|
-
:host
|
|
200
|
+
:host([variant="solid"]) {
|
|
201
201
|
--_badge-color-surface: var(--_badge-color-ink);
|
|
202
202
|
--_badge-color-border: var(--_badge-color-ink);
|
|
203
203
|
--_badge-color-text: color-mix(in oklab, var(--_ui-badge-color) 0%, var(--ui-surface-default));
|
|
204
204
|
}
|
|
205
205
|
|
|
206
|
-
:host
|
|
206
|
+
:host([variant="outline"]) {
|
|
207
207
|
--_badge-surface: var(--ui-surface-default);
|
|
208
208
|
--_badge-border: var(--ui-border-strong);
|
|
209
209
|
--_badge-text: var(--ui-text-secondary);
|
|
@@ -212,33 +212,33 @@
|
|
|
212
212
|
--_badge-color-border: var(--_badge-color-ink);
|
|
213
213
|
}
|
|
214
214
|
|
|
215
|
-
:host
|
|
215
|
+
:host([variant="outline"][tone="accent"]) {
|
|
216
216
|
--_badge-border: var(--ui-accent-solid);
|
|
217
217
|
--_badge-text: var(--ui-accent-subtle-text, var(--ui-accent-solid));
|
|
218
218
|
}
|
|
219
219
|
|
|
220
|
-
:host
|
|
220
|
+
:host([variant="outline"][tone="danger"]) {
|
|
221
221
|
--_badge-border: var(--ui-danger-solid);
|
|
222
222
|
--_badge-text: var(--ui-danger-subtle-text, var(--ui-danger-solid));
|
|
223
223
|
}
|
|
224
224
|
|
|
225
|
-
:host
|
|
225
|
+
:host([variant="outline"][tone="success"]) {
|
|
226
226
|
--_badge-border: var(--ui-success-solid);
|
|
227
227
|
--_badge-text: var(--ui-success-subtle-text, var(--ui-success-solid));
|
|
228
228
|
}
|
|
229
229
|
|
|
230
|
-
:host
|
|
230
|
+
:host([variant="outline"][tone="warning"]) {
|
|
231
231
|
--_badge-border: var(--ui-warning-solid);
|
|
232
232
|
--_badge-text: var(--ui-warning-subtle-text, var(--ui-warning-solid));
|
|
233
233
|
}
|
|
234
234
|
|
|
235
|
-
:host
|
|
235
|
+
:host([variant="outline"][tone="info"]) {
|
|
236
236
|
--_badge-border: var(--ui-info-solid);
|
|
237
237
|
--_badge-text: var(--ui-info-subtle-text, var(--ui-info-solid));
|
|
238
238
|
}
|
|
239
239
|
|
|
240
240
|
/* An icon mark keeps the existing tone recipe and follows the global spacing and radius. */
|
|
241
|
-
:host
|
|
241
|
+
:host([shape="square"]) {
|
|
242
242
|
--_badge-square-size: var(--ui-badge-square-size, calc(var(--ui-space-4) * 2));
|
|
243
243
|
display: inline-flex;
|
|
244
244
|
box-sizing: border-box;
|
|
@@ -252,18 +252,18 @@
|
|
|
252
252
|
text-box-trim: none;
|
|
253
253
|
}
|
|
254
254
|
|
|
255
|
-
:host
|
|
255
|
+
:host([shape="square"][size="xs"]) {
|
|
256
256
|
--_badge-square-size: var(--ui-badge-square-size, calc(var(--ui-space-3) * 2));
|
|
257
257
|
}
|
|
258
258
|
|
|
259
|
-
:host
|
|
259
|
+
:host([shape="square"]) .label {
|
|
260
260
|
display: inline-flex;
|
|
261
261
|
align-items: center;
|
|
262
262
|
justify-content: center;
|
|
263
263
|
}
|
|
264
264
|
|
|
265
265
|
/* A dot uses the badge's tone recipe; only its silhouette and visible label change. */
|
|
266
|
-
:host
|
|
266
|
+
:host([shape="dot"]) {
|
|
267
267
|
position: relative;
|
|
268
268
|
box-sizing: border-box;
|
|
269
269
|
flex: none;
|
|
@@ -276,7 +276,7 @@
|
|
|
276
276
|
text-box-trim: none;
|
|
277
277
|
}
|
|
278
278
|
|
|
279
|
-
:host
|
|
279
|
+
:host([shape="dot"]) .label {
|
|
280
280
|
position: absolute;
|
|
281
281
|
inline-size: 1px;
|
|
282
282
|
block-size: 1px;
|
|
@@ -287,7 +287,7 @@
|
|
|
287
287
|
|
|
288
288
|
/* The clipped point needs an inset surface over an outer border-colour shape: a native border
|
|
289
289
|
has no diagonal edge to follow. Keep this edge for every tag variant. */
|
|
290
|
-
:host
|
|
290
|
+
:host([shape="tag"]) {
|
|
291
291
|
--_badge-point: var(--ui-badge-point, var(--ui-space-2));
|
|
292
292
|
|
|
293
293
|
position: relative;
|
|
@@ -299,7 +299,7 @@
|
|
|
299
299
|
clip-path: polygon(0 0, calc(100% - var(--_badge-point)) 0, 100% 50%, calc(100% - var(--_badge-point)) 100%, 0 100%);
|
|
300
300
|
}
|
|
301
301
|
|
|
302
|
-
:host
|
|
302
|
+
:host([shape="tag"])::before {
|
|
303
303
|
content: "";
|
|
304
304
|
position: absolute;
|
|
305
305
|
inset: 0;
|
|
@@ -309,30 +309,30 @@
|
|
|
309
309
|
pointer-events: none;
|
|
310
310
|
}
|
|
311
311
|
|
|
312
|
-
:host
|
|
312
|
+
:host([shape="tag"]):dir(rtl) {
|
|
313
313
|
padding-inline-end: var(--ui-badge-padding-inline, var(--ui-space-2));
|
|
314
314
|
padding-inline-start: calc(var(--ui-badge-padding-inline, var(--ui-space-2)) + var(--_badge-point));
|
|
315
315
|
clip-path: polygon(var(--_badge-point) 0, 100% 0, 100% 100%, var(--_badge-point) 100%, 0 50%);
|
|
316
316
|
}
|
|
317
317
|
|
|
318
|
-
:host
|
|
318
|
+
:host([shape="tag"]):dir(rtl)::before {
|
|
319
319
|
clip-path: polygon(var(--_badge-point) 0, 100% 0, 100% 100%, var(--_badge-point) 100%, 0 50%);
|
|
320
320
|
}
|
|
321
321
|
|
|
322
322
|
@media (forced-colors: active) {
|
|
323
|
-
:host
|
|
323
|
+
:host([shape="dot"]) {
|
|
324
324
|
forced-color-adjust: none;
|
|
325
325
|
border-color: CanvasText;
|
|
326
326
|
background: CanvasText;
|
|
327
327
|
}
|
|
328
328
|
|
|
329
|
-
:host
|
|
329
|
+
:host([shape="tag"]) {
|
|
330
330
|
forced-color-adjust: none;
|
|
331
331
|
background: CanvasText;
|
|
332
332
|
color: CanvasText;
|
|
333
333
|
}
|
|
334
334
|
|
|
335
|
-
:host
|
|
335
|
+
:host([shape="tag"])::before {
|
|
336
336
|
background: Canvas;
|
|
337
337
|
}
|
|
338
338
|
}
|
|
@@ -185,12 +185,12 @@
|
|
|
185
185
|
color: var(--_tone-text);
|
|
186
186
|
}
|
|
187
187
|
|
|
188
|
-
:host
|
|
188
|
+
:host([align="start"]) {
|
|
189
189
|
justify-content: flex-start;
|
|
190
190
|
text-align: start;
|
|
191
191
|
}
|
|
192
192
|
|
|
193
|
-
:host
|
|
193
|
+
:host([stretch]) {
|
|
194
194
|
display: flex;
|
|
195
195
|
inline-size: 100%;
|
|
196
196
|
}
|
|
@@ -241,23 +241,23 @@
|
|
|
241
241
|
}
|
|
242
242
|
}
|
|
243
243
|
|
|
244
|
-
:host
|
|
244
|
+
:host([size="xs"]) {
|
|
245
245
|
min-block-size: 1.5rem;
|
|
246
246
|
padding: calc(var(--ui-space-0-5) * 1.5) calc(var(--ui-space-1) * 1.25);
|
|
247
247
|
font-size: var(--ui-font-size-xs);
|
|
248
248
|
}
|
|
249
249
|
|
|
250
|
-
:host
|
|
250
|
+
:host([shape="pill"]) {
|
|
251
251
|
border-radius: var(--ui-button-radius, var(--ui-radius-round));
|
|
252
252
|
}
|
|
253
253
|
|
|
254
|
-
:host
|
|
254
|
+
:host([size="sm"]) {
|
|
255
255
|
min-block-size: var(--ui-control-size-sm);
|
|
256
256
|
padding: var(--ui-space-1) var(--ui-space-2);
|
|
257
257
|
font-size: var(--ui-font-size-sm);
|
|
258
258
|
}
|
|
259
259
|
|
|
260
|
-
:host
|
|
260
|
+
:host([size="lg"]) {
|
|
261
261
|
min-block-size: var(--ui-control-size-lg);
|
|
262
262
|
padding: var(--ui-space-3) var(--ui-space-4);
|
|
263
263
|
font-size: var(--ui-font-size-md);
|
|
@@ -265,7 +265,7 @@
|
|
|
265
265
|
|
|
266
266
|
/* Card actions inherit Button's palette and behavior; only their shared layout changes.
|
|
267
267
|
The icon may contain any decorative composition. Empty icons remove their column. */
|
|
268
|
-
:host
|
|
268
|
+
:host([variant="card"]) {
|
|
269
269
|
display: grid;
|
|
270
270
|
grid-template-columns: auto minmax(0, 1fr) auto;
|
|
271
271
|
align-content: center;
|
|
@@ -278,10 +278,10 @@
|
|
|
278
278
|
box-shadow: none;
|
|
279
279
|
background-image: none;
|
|
280
280
|
}
|
|
281
|
-
:host
|
|
281
|
+
:host([variant="card"][size="lg"]) {
|
|
282
282
|
min-block-size: max(var(--ui-control-min-block-size), var(--ui-control-size-lg));
|
|
283
283
|
}
|
|
284
|
-
:host
|
|
284
|
+
:host([variant="card"]):has(.card-icon:empty) {
|
|
285
285
|
grid-template-columns: minmax(0, 1fr) auto;
|
|
286
286
|
}
|
|
287
287
|
.card-icon {
|
|
@@ -314,19 +314,19 @@
|
|
|
314
314
|
box-shadow: var(--ui-pressed);
|
|
315
315
|
}
|
|
316
316
|
|
|
317
|
-
:host
|
|
317
|
+
:host([variant="solid"]), :host([variant="danger"]) {
|
|
318
318
|
border-color: var(--_tone);
|
|
319
319
|
background-color: var(--_tone);
|
|
320
320
|
color: var(--_on-tone);
|
|
321
321
|
box-shadow: var(--ui-button-solid-shadow, var(--ui-raised));
|
|
322
322
|
}
|
|
323
323
|
|
|
324
|
-
:is(:host
|
|
324
|
+
:is(:host([variant="solid"]), :host([variant="danger"])):hover:not(:disabled, [aria-disabled="true"]) {
|
|
325
325
|
background-color: var(--_tone-hover);
|
|
326
326
|
border-color: var(--_tone-hover);
|
|
327
327
|
}
|
|
328
328
|
|
|
329
|
-
:is(:host
|
|
329
|
+
:is(:host([variant="solid"]), :host([variant="danger"])):active:not(:disabled, [aria-disabled="true"]) {
|
|
330
330
|
background-color: var(--_tone-active);
|
|
331
331
|
border-color: var(--_tone-active);
|
|
332
332
|
background-image: none;
|
|
@@ -335,7 +335,7 @@
|
|
|
335
335
|
|
|
336
336
|
/* Tone is the colour, variant is the volume. Every pairing works: a danger outline is a
|
|
337
337
|
destructive secondary action, not a special case. */
|
|
338
|
-
:host
|
|
338
|
+
:host([tone="neutral"]) {
|
|
339
339
|
--_hue: var(--ui-text);
|
|
340
340
|
--_hue-hover: var(--ui-text);
|
|
341
341
|
--_hue-active: var(--ui-text);
|
|
@@ -343,7 +343,7 @@
|
|
|
343
343
|
--_on-hue: var(--ui-surface);
|
|
344
344
|
}
|
|
345
345
|
|
|
346
|
-
:host
|
|
346
|
+
:host([tone="danger"]), :host([variant="danger"]) {
|
|
347
347
|
--_hue: var(--ui-danger);
|
|
348
348
|
--_hue-hover: var(--ui-danger-hover);
|
|
349
349
|
--_hue-active: var(--ui-danger-hover);
|
|
@@ -351,7 +351,7 @@
|
|
|
351
351
|
--_on-hue: var(--ui-on-danger);
|
|
352
352
|
}
|
|
353
353
|
|
|
354
|
-
:host
|
|
354
|
+
:host([tone="success"]) {
|
|
355
355
|
--_hue: var(--ui-success);
|
|
356
356
|
--_hue-hover: color-mix(in srgb, var(--ui-success) 85%, #000);
|
|
357
357
|
--_hue-active: color-mix(in srgb, var(--ui-success) 75%, #000);
|
|
@@ -359,7 +359,7 @@
|
|
|
359
359
|
--_on-hue: var(--ui-surface);
|
|
360
360
|
}
|
|
361
361
|
|
|
362
|
-
:host
|
|
362
|
+
:host([tone="warning"]) {
|
|
363
363
|
--_hue: var(--ui-warning);
|
|
364
364
|
--_hue-hover: color-mix(in srgb, var(--ui-warning) 85%, #000);
|
|
365
365
|
--_hue-active: color-mix(in srgb, var(--ui-warning) 75%, #000);
|
|
@@ -367,7 +367,7 @@
|
|
|
367
367
|
--_on-hue: var(--ui-surface);
|
|
368
368
|
}
|
|
369
369
|
|
|
370
|
-
:host
|
|
370
|
+
:host([tone="info"]) {
|
|
371
371
|
--_hue: var(--ui-info);
|
|
372
372
|
--_hue-hover: color-mix(in srgb, var(--ui-info) 85%, #000);
|
|
373
373
|
--_hue-active: color-mix(in srgb, var(--ui-info) 75%, #000);
|
|
@@ -375,7 +375,7 @@
|
|
|
375
375
|
--_on-hue: var(--ui-surface);
|
|
376
376
|
}
|
|
377
377
|
|
|
378
|
-
:host
|
|
378
|
+
:host([variant="ghost"]) {
|
|
379
379
|
border-color: transparent;
|
|
380
380
|
background: transparent;
|
|
381
381
|
box-shadow: none;
|
|
@@ -383,14 +383,14 @@
|
|
|
383
383
|
}
|
|
384
384
|
|
|
385
385
|
/* Tints derive from the text colour, not a surface token, so hover and press show on any background. */
|
|
386
|
-
:host
|
|
386
|
+
:host([variant="ghost"]):hover:not(:disabled, [aria-disabled="true"]) {
|
|
387
387
|
background-color: var(--ui-button-ghost-hover-surface, oklch(from var(--_tone) l c h / 10%));
|
|
388
388
|
border-color: transparent;
|
|
389
389
|
}
|
|
390
390
|
|
|
391
391
|
/* Pressed, or holding its menu open, a ghost button sinks slightly: a light surface with a faint
|
|
392
392
|
edge and a soft inner shadow. Lighter than hover, so an open menu's trigger never reads as heavy. */
|
|
393
|
-
:host
|
|
393
|
+
:host([variant="ghost"]):is(:active, [aria-expanded="true"]):not(:disabled, [aria-disabled="true"]) {
|
|
394
394
|
background-color: var(--ui-button-ghost-active-surface, color-mix(in oklch, var(--ui-surface), var(--_tone) 3%));
|
|
395
395
|
border-color: transparent;
|
|
396
396
|
box-shadow: inset 0 0 0 1px oklch(from var(--_tone) l c h / 10%), inset 0 1px 2px oklch(from var(--_tone) l c h / 8%);
|
|
@@ -404,7 +404,7 @@
|
|
|
404
404
|
var(--ui-focus-halo);
|
|
405
405
|
}
|
|
406
406
|
|
|
407
|
-
:host
|
|
407
|
+
:host([variant="solid"]):focus-visible {
|
|
408
408
|
box-shadow:
|
|
409
409
|
var(--ui-button-solid-shadow, var(--ui-raised)),
|
|
410
410
|
var(--ui-focus-halo);
|
|
@@ -423,19 +423,19 @@
|
|
|
423
423
|
box-shadow: none;
|
|
424
424
|
}
|
|
425
425
|
|
|
426
|
-
:is(:host
|
|
426
|
+
:is(:host([loading]), :host([pending])):focus-visible {
|
|
427
427
|
box-shadow: var(--ui-focus-halo);
|
|
428
428
|
}
|
|
429
429
|
|
|
430
430
|
/* Ghost keeps no border, but gains the same neutral surface as other disabled buttons. */
|
|
431
|
-
:host
|
|
431
|
+
:host([variant="ghost"]):is(:disabled, [aria-disabled="true"]:not([aria-busy="true"])) {
|
|
432
432
|
background-color: var(--ui-disabled-surface);
|
|
433
433
|
border-color: transparent;
|
|
434
434
|
}
|
|
435
435
|
|
|
436
436
|
/* The size states outrank :host, so sm is named too, or a small button would stay small. */
|
|
437
437
|
@media (pointer: coarse) {
|
|
438
|
-
:host, :host
|
|
438
|
+
:host, :host([size="sm"]) {
|
|
439
439
|
min-block-size: var(--ui-control-min-block-size);
|
|
440
440
|
}
|
|
441
441
|
}
|
|
@@ -445,13 +445,13 @@
|
|
|
445
445
|
a link-style one keeps its text size, so a standalone one ("See all" under a list) needs the
|
|
446
446
|
area. xs sits inside a line of text the same way, so it keeps its size and gains the area too.
|
|
447
447
|
Only these need it: a hit area on every button would reach over its neighbours. */
|
|
448
|
-
html[data-ui-input-modality="touch"] :host
|
|
449
|
-
html[data-ui-input-modality="touch"] :host
|
|
448
|
+
html[data-ui-input-modality="touch"] :host([variant="link"]),
|
|
449
|
+
html[data-ui-input-modality="touch"] :host([size="xs"]) {
|
|
450
450
|
position: relative;
|
|
451
451
|
}
|
|
452
452
|
|
|
453
|
-
html[data-ui-input-modality="touch"] :host
|
|
454
|
-
html[data-ui-input-modality="touch"] :host
|
|
453
|
+
html[data-ui-input-modality="touch"] :host([variant="link"])::after,
|
|
454
|
+
html[data-ui-input-modality="touch"] :host([size="xs"])::after {
|
|
455
455
|
position: absolute;
|
|
456
456
|
inset: 50% auto auto 50%;
|
|
457
457
|
inline-size: max(100%, var(--ui-control-min-block-size));
|
|
@@ -462,7 +462,7 @@
|
|
|
462
462
|
|
|
463
463
|
/* Link: an inline text action. No box, padding, or minimum height (inline targets are exempt under
|
|
464
464
|
WCAG 2.5.8); the inherited font; an underline that strengthens on hover; a visible focus ring. */
|
|
465
|
-
:host
|
|
465
|
+
:host([variant="link"]) {
|
|
466
466
|
display: inline;
|
|
467
467
|
min-block-size: 0;
|
|
468
468
|
padding: 0;
|
|
@@ -479,24 +479,24 @@
|
|
|
479
479
|
transition: color var(--ui-motion-fast) var(--ui-motion-ease), text-decoration-color var(--ui-motion-fast) var(--ui-motion-ease);
|
|
480
480
|
}
|
|
481
481
|
|
|
482
|
-
:host
|
|
482
|
+
:host([variant="link"]):hover:not(:disabled, [aria-disabled="true"]) {
|
|
483
483
|
color: var(--ui-button-link-hover-text, var(--ui-text-primary));
|
|
484
484
|
text-decoration-color: currentColor;
|
|
485
485
|
background: none;
|
|
486
486
|
transform: none;
|
|
487
487
|
}
|
|
488
488
|
|
|
489
|
-
:host
|
|
489
|
+
:host([variant="link"]):active:not(:disabled, [aria-disabled="true"]) {
|
|
490
490
|
background: none;
|
|
491
491
|
transform: none;
|
|
492
492
|
}
|
|
493
493
|
|
|
494
|
-
:host
|
|
494
|
+
:host([variant="link"]):is(:disabled, [aria-disabled="true"]:not([aria-busy="true"])) {
|
|
495
495
|
background: none;
|
|
496
496
|
border-color: transparent;
|
|
497
497
|
}
|
|
498
498
|
|
|
499
|
-
:host
|
|
499
|
+
:host([variant="link"]):focus-visible {
|
|
500
500
|
box-shadow: none;
|
|
501
501
|
/* Fallback keeps the ring if the token is missing: an unresolved var() would void the outline. */
|
|
502
502
|
outline: var(--ui-focus-width) solid var(--ui-focus-ring);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// Loading actions retain focus but cannot activate, navigate, submit, or notify click consumers.
|
|
2
|
-
|
|
2
|
+
function connect(host) {
|
|
3
3
|
const onClick = (event) => {
|
|
4
4
|
if (!host.props.loading.value && !host.props.pending.value) return;
|
|
5
5
|
event.preventDefault();
|
|
@@ -8,3 +8,8 @@ export default function controller(host) {
|
|
|
8
8
|
host.element.addEventListener("click", onClick, true);
|
|
9
9
|
return () => host.element.removeEventListener("click", onClick, true);
|
|
10
10
|
}
|
|
11
|
+
|
|
12
|
+
/** Keep DOM setup and its cleanup tied to each connection, including reconnects. */
|
|
13
|
+
export default function controller(host) {
|
|
14
|
+
host.on("connect", () => connect(host));
|
|
15
|
+
}
|
|
@@ -136,25 +136,25 @@
|
|
|
136
136
|
min-inline-size: 0;
|
|
137
137
|
}
|
|
138
138
|
|
|
139
|
-
:host
|
|
139
|
+
:host([tone="neutral"]), :host([tone="note"]) {
|
|
140
140
|
--_callout-surface: var(--ui-surface-muted);
|
|
141
141
|
--_callout-border: var(--ui-border-strong);
|
|
142
142
|
--_callout-icon: var(--ui-text-secondary);
|
|
143
143
|
}
|
|
144
144
|
|
|
145
|
-
:host
|
|
145
|
+
:host([tone="warning"]) {
|
|
146
146
|
--_callout-surface: var(--ui-warning-soft);
|
|
147
147
|
--_callout-border: var(--ui-warning-solid);
|
|
148
148
|
--_callout-icon: var(--ui-warning-solid);
|
|
149
149
|
}
|
|
150
150
|
|
|
151
|
-
:host
|
|
151
|
+
:host([tone="success"]) {
|
|
152
152
|
--_callout-surface: var(--ui-success-soft);
|
|
153
153
|
--_callout-border: var(--ui-success-solid);
|
|
154
154
|
--_callout-icon: var(--ui-success-solid);
|
|
155
155
|
}
|
|
156
156
|
|
|
157
|
-
:host
|
|
157
|
+
:host([tone="danger"]) {
|
|
158
158
|
--_callout-surface: var(--ui-danger-soft);
|
|
159
159
|
--_callout-border: var(--ui-danger-solid);
|
|
160
160
|
--_callout-icon: var(--ui-danger-solid);
|