@threadlabs/looma 0.28.13 → 0.28.14
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/components/ui-affordance-scope/ui-affordance-scope.html +1 -1
- package/components/ui-avatar/ui-avatar.html +1 -1
- package/components/ui-combobox/ui-combobox.html +1 -1
- package/components/ui-disclosure/ui-disclosure.html +4 -4
- package/components/ui-editable/ui-editable.html +3 -3
- package/components/ui-menu/ui-menu.html +1 -1
- package/components/ui-popover/ui-popover.html +1 -1
- package/components/ui-sidebar/ui-sidebar.html +4 -4
- package/components/ui-switcher/ui-switcher.html +1 -1
- package/components/ui-tree-item/ui-tree-item.html +2 -2
- package/dist/index.js +1 -1
- 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-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-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 +1 -1
- package/styles/ui-menu-group.css +1 -1
- package/styles/ui-menu-item.css +1 -1
- package/styles/ui-menu.css +2 -2
- 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 +2 -2
- 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-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 +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 +2 -2
- package/vanilla/UiAvatar.d.ts +1 -1
- package/vanilla/UiAvatar.js +2 -2
- package/vanilla/UiAvatarGroup.d.ts +1 -1
- package/vanilla/UiAvatarGroup.js +2 -2
- package/vanilla/UiBadge.d.ts +1 -1
- package/vanilla/UiBadge.js +2 -2
- package/vanilla/UiBreadcrumbItem.d.ts +1 -1
- package/vanilla/UiBreadcrumbItem.js +2 -2
- package/vanilla/UiBreadcrumbs.d.ts +1 -1
- package/vanilla/UiBreadcrumbs.js +2 -2
- package/vanilla/UiButton.d.ts +1 -1
- package/vanilla/UiButton.js +3 -3
- package/vanilla/UiCallout.d.ts +1 -1
- package/vanilla/UiCallout.js +2 -2
- package/vanilla/UiCard.d.ts +1 -1
- package/vanilla/UiCard.js +3 -3
- package/vanilla/UiCheckbox.d.ts +1 -1
- package/vanilla/UiCheckbox.js +2 -2
- package/vanilla/UiCluster.d.ts +1 -1
- package/vanilla/UiCluster.js +2 -2
- package/vanilla/UiCombobox.d.ts +1 -1
- package/vanilla/UiCombobox.js +2 -2
- package/vanilla/UiContainer.d.ts +1 -1
- package/vanilla/UiContainer.js +2 -2
- package/vanilla/UiContextMenu.d.ts +1 -1
- package/vanilla/UiContextMenu.js +2 -2
- package/vanilla/UiCover.d.ts +1 -1
- package/vanilla/UiCover.js +2 -2
- package/vanilla/UiDescriptionItem.d.ts +1 -1
- package/vanilla/UiDescriptionItem.js +2 -2
- package/vanilla/UiDescriptionList.d.ts +1 -1
- package/vanilla/UiDescriptionList.js +2 -2
- package/vanilla/UiDialog.d.ts +1 -1
- package/vanilla/UiDialog.js +2 -2
- package/vanilla/UiDisclosure.d.ts +1 -1
- package/vanilla/UiDisclosure.js +2 -2
- package/vanilla/UiEditable.d.ts +1 -1
- package/vanilla/UiEditable.js +2 -2
- package/vanilla/UiEditorBlockActions.d.ts +1 -1
- package/vanilla/UiEditorBlockActions.js +2 -2
- package/vanilla/UiEditorChipEditor.d.ts +1 -1
- package/vanilla/UiEditorChipEditor.js +2 -2
- package/vanilla/UiEditorCodeLanguage.d.ts +1 -1
- package/vanilla/UiEditorCodeLanguage.js +2 -2
- package/vanilla/UiEditorImageToolbar.d.ts +1 -1
- package/vanilla/UiEditorImageToolbar.js +2 -2
- package/vanilla/UiEditorInsertTableGrid.d.ts +1 -1
- package/vanilla/UiEditorInsertTableGrid.js +2 -2
- package/vanilla/UiEditorLinkCard.d.ts +1 -1
- package/vanilla/UiEditorLinkCard.js +2 -2
- package/vanilla/UiEditorLinkForm.d.ts +1 -1
- package/vanilla/UiEditorLinkForm.js +2 -2
- package/vanilla/UiEditorMentionMenu.d.ts +1 -1
- package/vanilla/UiEditorMentionMenu.js +2 -2
- package/vanilla/UiEditorMentionMenuItem.d.ts +1 -1
- package/vanilla/UiEditorMentionMenuItem.js +3 -3
- package/vanilla/UiEditorSlashMenu.d.ts +1 -1
- package/vanilla/UiEditorSlashMenu.js +2 -2
- package/vanilla/UiEditorSlashMenuGroup.d.ts +1 -1
- package/vanilla/UiEditorSlashMenuGroup.js +2 -2
- package/vanilla/UiEditorSlashMenuItem.d.ts +1 -1
- package/vanilla/UiEditorSlashMenuItem.js +3 -3
- package/vanilla/UiEditorSurface.d.ts +1 -1
- package/vanilla/UiEditorSurface.js +2 -2
- package/vanilla/UiEditorTableContextMenu.d.ts +1 -1
- package/vanilla/UiEditorTableContextMenu.js +2 -2
- package/vanilla/UiEditorTableOverlay.d.ts +1 -1
- package/vanilla/UiEditorTableOverlay.js +2 -2
- package/vanilla/UiEditorTableToolbar.d.ts +1 -1
- package/vanilla/UiEditorTableToolbar.js +2 -2
- package/vanilla/UiEditorToolbar.d.ts +1 -1
- package/vanilla/UiEditorToolbar.js +2 -2
- package/vanilla/UiFloatingActionButton.d.ts +1 -1
- package/vanilla/UiFloatingActionButton.js +2 -2
- package/vanilla/UiFormField.d.ts +1 -1
- package/vanilla/UiFormField.js +2 -2
- package/vanilla/UiGrid.d.ts +1 -1
- package/vanilla/UiGrid.js +2 -2
- package/vanilla/UiIcon.d.ts +1 -1
- package/vanilla/UiIcon.js +2 -2
- package/vanilla/UiIconButton.d.ts +1 -1
- package/vanilla/UiIconButton.js +3 -3
- package/vanilla/UiImage.d.ts +1 -1
- package/vanilla/UiImage.js +2 -2
- package/vanilla/UiInput.d.ts +1 -1
- package/vanilla/UiInput.js +2 -2
- package/vanilla/UiInputGroup.d.ts +1 -1
- package/vanilla/UiInputGroup.js +2 -2
- package/vanilla/UiList.d.ts +1 -1
- package/vanilla/UiList.js +3 -3
- package/vanilla/UiListItem.d.ts +1 -1
- package/vanilla/UiListItem.js +2 -2
- package/vanilla/UiListbox.d.ts +1 -1
- package/vanilla/UiListbox.js +2 -2
- package/vanilla/UiMenu.d.ts +1 -1
- package/vanilla/UiMenu.js +2 -2
- package/vanilla/UiMenuGroup.d.ts +1 -1
- package/vanilla/UiMenuGroup.js +2 -2
- package/vanilla/UiMenuItem.d.ts +1 -1
- package/vanilla/UiMenuItem.js +4 -4
- package/vanilla/UiMeter.d.ts +1 -1
- package/vanilla/UiMeter.js +2 -2
- package/vanilla/UiNavItem.d.ts +1 -1
- package/vanilla/UiNavItem.js +3 -3
- package/vanilla/UiPageHeader.d.ts +1 -1
- package/vanilla/UiPageHeader.js +2 -2
- package/vanilla/UiPopover.d.ts +1 -1
- package/vanilla/UiPopover.js +2 -2
- package/vanilla/UiRadio.d.ts +1 -1
- package/vanilla/UiRadio.js +2 -2
- package/vanilla/UiRadioGroup.d.ts +1 -1
- package/vanilla/UiRadioGroup.js +2 -2
- package/vanilla/UiReel.d.ts +1 -1
- package/vanilla/UiReel.js +2 -2
- package/vanilla/UiScrollArea.d.ts +1 -1
- package/vanilla/UiScrollArea.js +2 -2
- package/vanilla/UiSearchResultRow.d.ts +1 -1
- package/vanilla/UiSearchResultRow.js +2 -2
- package/vanilla/UiSearchShell.d.ts +1 -1
- package/vanilla/UiSearchShell.js +2 -2
- package/vanilla/UiSection.d.ts +1 -1
- package/vanilla/UiSection.js +2 -2
- package/vanilla/UiSelect.d.ts +1 -1
- package/vanilla/UiSelect.js +2 -2
- package/vanilla/UiSeparator.d.ts +1 -1
- package/vanilla/UiSeparator.js +2 -2
- package/vanilla/UiSidebar.d.ts +1 -1
- package/vanilla/UiSidebar.js +2 -2
- package/vanilla/UiSpinner.d.ts +1 -1
- package/vanilla/UiSpinner.js +2 -2
- package/vanilla/UiStack.d.ts +1 -1
- package/vanilla/UiStack.js +2 -2
- package/vanilla/UiStatusMessage.d.ts +1 -1
- package/vanilla/UiStatusMessage.js +2 -2
- package/vanilla/UiSwatch.d.ts +1 -1
- package/vanilla/UiSwatch.js +2 -2
- package/vanilla/UiSwitch.d.ts +1 -1
- package/vanilla/UiSwitch.js +2 -2
- package/vanilla/UiSwitcher.d.ts +1 -1
- package/vanilla/UiSwitcher.js +2 -2
- package/vanilla/UiTable.d.ts +1 -1
- package/vanilla/UiTable.js +2 -2
- package/vanilla/UiTabs.d.ts +1 -1
- package/vanilla/UiTabs.js +2 -2
- package/vanilla/UiText.d.ts +1 -1
- package/vanilla/UiText.js +3 -3
- package/vanilla/UiTextarea.d.ts +1 -1
- package/vanilla/UiTextarea.js +2 -2
- package/vanilla/UiToast.d.ts +1 -1
- package/vanilla/UiToast.js +2 -2
- package/vanilla/UiToastRegion.d.ts +1 -1
- package/vanilla/UiToastRegion.js +2 -2
- package/vanilla/UiTooltip.d.ts +1 -1
- package/vanilla/UiTooltip.js +2 -2
- package/vanilla/UiTopBar.d.ts +1 -1
- package/vanilla/UiTopBar.js +1 -1
- package/vanilla/UiTree.d.ts +1 -1
- package/vanilla/UiTree.js +2 -2
- package/vanilla/UiTreeItem.d.ts +1 -1
- package/vanilla/UiTreeItem.js +3 -3
- package/vue/UiActionBar.vue +23 -15
- package/vue/UiAffordanceScope.vue +11 -9
- package/vue/UiAvatar.vue +34 -27
- package/vue/UiAvatarGroup.vue +22 -17
- package/vue/UiBadge.vue +78 -69
- package/vue/UiBreadcrumbItem.vue +17 -14
- package/vue/UiBreadcrumbs.vue +9 -7
- package/vue/UiButton.vue +150 -138
- package/vue/UiCallout.vue +68 -43
- package/vue/UiCard.vue +52 -44
- package/vue/UiCheckbox.vue +48 -40
- package/vue/UiCluster.vue +35 -33
- package/vue/UiCombobox.vue +158 -107
- package/vue/UiContainer.vue +16 -14
- package/vue/UiContextMenu.vue +24 -13
- package/vue/UiCover.vue +10 -8
- package/vue/UiDescriptionItem.vue +11 -9
- package/vue/UiDescriptionList.vue +20 -18
- package/vue/UiDialog.vue +41 -37
- package/vue/UiDisclosure.vue +65 -51
- package/vue/UiEditable.vue +34 -33
- package/vue/UiEditorBlockActions.vue +4 -3
- package/vue/UiEditorChipEditor.vue +4 -3
- package/vue/UiEditorCodeLanguage.vue +5 -4
- package/vue/UiEditorImageToolbar.vue +5 -4
- package/vue/UiEditorInsertTableGrid.vue +19 -18
- package/vue/UiEditorLinkCard.vue +7 -6
- package/vue/UiEditorLinkForm.vue +15 -14
- package/vue/UiEditorMentionMenu.vue +52 -37
- package/vue/UiEditorMentionMenuItem.vue +30 -20
- package/vue/UiEditorSlashMenu.vue +49 -36
- package/vue/UiEditorSlashMenuGroup.vue +16 -10
- package/vue/UiEditorSlashMenuItem.vue +36 -26
- package/vue/UiEditorSurface.vue +8 -6
- package/vue/UiEditorTableContextMenu.vue +26 -25
- package/vue/UiEditorTableOverlay.vue +56 -51
- package/vue/UiEditorTableToolbar.vue +37 -36
- package/vue/UiEditorToolbar.vue +24 -20
- package/vue/UiFloatingActionButton.vue +17 -15
- package/vue/UiFormField.vue +27 -22
- package/vue/UiGrid.vue +17 -15
- package/vue/UiIcon.vue +7 -6
- package/vue/UiIconButton.vue +75 -70
- package/vue/UiImage.vue +61 -46
- package/vue/UiInput.vue +28 -28
- package/vue/UiInputGroup.vue +48 -43
- package/vue/UiList.vue +25 -21
- package/vue/UiListItem.vue +54 -44
- package/vue/UiListbox.vue +29 -22
- package/vue/UiMenu.vue +25 -23
- package/vue/UiMenuGroup.vue +11 -7
- package/vue/UiMenuItem.vue +52 -43
- package/vue/UiMeter.vue +42 -41
- package/vue/UiNavItem.vue +60 -47
- package/vue/UiPageHeader.vue +27 -20
- package/vue/UiPopover.vue +21 -19
- package/vue/UiRadio.vue +32 -28
- package/vue/UiRadioGroup.vue +24 -19
- package/vue/UiReel.vue +24 -22
- package/vue/UiScrollArea.vue +30 -24
- package/vue/UiSearchResultRow.vue +41 -26
- package/vue/UiSearchShell.vue +37 -29
- package/vue/UiSection.vue +31 -24
- package/vue/UiSelect.vue +23 -21
- package/vue/UiSeparator.vue +14 -13
- package/vue/UiSidebar.vue +48 -40
- package/vue/UiSpinner.vue +14 -13
- package/vue/UiStack.vue +26 -24
- package/vue/UiStatusMessage.vue +26 -21
- package/vue/UiSwatch.vue +13 -12
- package/vue/UiSwitch.vue +37 -33
- package/vue/UiSwitcher.vue +27 -22
- package/vue/UiTable.vue +23 -19
- package/vue/UiTabs.vue +48 -33
- package/vue/UiText.vue +173 -151
- package/vue/UiTextarea.vue +27 -27
- package/vue/UiToast.vue +17 -15
- package/vue/UiToastRegion.vue +36 -31
- package/vue/UiTooltip.vue +40 -34
- package/vue/UiTopBar.vue +17 -13
- package/vue/UiTree.vue +17 -15
- package/vue/UiTreeItem.vue +202 -133
- package/vue/chunks/UiActionBar.js +21 -6
- package/vue/chunks/UiAffordanceScope.js +8 -6
- package/vue/chunks/UiAvatar.js +30 -20
- package/vue/chunks/UiAvatarGroup.js +16 -13
- package/vue/chunks/UiBadge.js +19 -13
- package/vue/chunks/UiBreadcrumbItem.js +13 -7
- package/vue/chunks/UiBreadcrumbs.js +9 -4
- package/vue/chunks/UiButton.js +158 -124
- package/vue/chunks/UiCallout.js +105 -37
- package/vue/chunks/UiCard.js +50 -42
- package/vue/chunks/UiCheckbox.js +32 -22
- package/vue/chunks/UiCluster.js +18 -16
- package/vue/chunks/UiCombobox.js +130 -73
- package/vue/chunks/UiContainer.js +10 -8
- package/vue/chunks/UiContextMenu.js +7 -4
- package/vue/chunks/UiCover.js +7 -5
- package/vue/chunks/UiDescriptionItem.js +9 -3
- package/vue/chunks/UiDescriptionList.js +10 -8
- package/vue/chunks/UiDialog.js +26 -19
- package/vue/chunks/UiDisclosure.js +43 -25
- package/vue/chunks/UiEditable.js +25 -24
- package/vue/chunks/UiEditorBlockActions.js +4 -3
- package/vue/chunks/UiEditorChipEditor.js +4 -3
- package/vue/chunks/UiEditorCodeLanguage.js +5 -4
- package/vue/chunks/UiEditorImageToolbar.js +7 -6
- package/vue/chunks/UiEditorInsertTableGrid.js +10 -9
- package/vue/chunks/UiEditorLinkCard.js +11 -10
- package/vue/chunks/UiEditorLinkForm.js +26 -25
- package/vue/chunks/UiEditorMentionMenu.js +41 -24
- package/vue/chunks/UiEditorMentionMenuItem.js +23 -11
- package/vue/chunks/UiEditorSlashMenu.js +41 -20
- package/vue/chunks/UiEditorSlashMenuGroup.js +16 -5
- package/vue/chunks/UiEditorSlashMenuItem.js +28 -14
- package/vue/chunks/UiEditorSurface.js +6 -4
- package/vue/chunks/UiEditorTableContextMenu.js +14 -13
- package/vue/chunks/UiEditorTableOverlay.js +6 -5
- package/vue/chunks/UiEditorTableToolbar.js +14 -13
- package/vue/chunks/UiEditorToolbar.js +8 -5
- package/vue/chunks/UiFloatingActionButton.js +11 -9
- package/vue/chunks/UiFormField.js +30 -16
- package/vue/chunks/UiGrid.js +10 -8
- package/vue/chunks/UiIcon.js +6 -3
- package/vue/chunks/UiIconButton.js +33 -26
- package/vue/chunks/UiImage.js +31 -22
- package/vue/chunks/UiInput.js +17 -16
- package/vue/chunks/UiInputGroup.js +30 -16
- package/vue/chunks/UiList.js +24 -20
- package/vue/chunks/UiListItem.js +39 -22
- package/vue/chunks/UiListbox.js +35 -25
- package/vue/chunks/UiMenu.js +22 -17
- package/vue/chunks/UiMenuGroup.js +7 -4
- package/vue/chunks/UiMenuItem.js +57 -38
- package/vue/chunks/UiMeter.js +22 -21
- package/vue/chunks/UiNavItem.js +78 -42
- package/vue/chunks/UiPageHeader.js +30 -10
- package/vue/chunks/UiPopover.js +16 -11
- package/vue/chunks/UiRadio.js +26 -16
- package/vue/chunks/UiRadioGroup.js +24 -19
- package/vue/chunks/UiReel.js +11 -9
- package/vue/chunks/UiScrollArea.js +16 -13
- package/vue/chunks/UiSearchResultRow.js +39 -19
- package/vue/chunks/UiSearchShell.js +36 -18
- package/vue/chunks/UiSection.js +31 -13
- package/vue/chunks/UiSelect.js +14 -12
- package/vue/chunks/UiSeparator.js +11 -10
- package/vue/chunks/UiSidebar.js +33 -23
- package/vue/chunks/UiSpinner.js +7 -6
- package/vue/chunks/UiStack.js +14 -12
- package/vue/chunks/UiStatusMessage.js +23 -11
- package/vue/chunks/UiSwatch.js +5 -4
- package/vue/chunks/UiSwitch.js +26 -16
- package/vue/chunks/UiSwitcher.js +13 -11
- package/vue/chunks/UiTable.js +9 -7
- package/vue/chunks/UiTabs.js +23 -18
- package/vue/chunks/UiText.js +277 -255
- package/vue/chunks/UiTextarea.js +21 -20
- package/vue/chunks/UiToast.js +13 -7
- package/vue/chunks/UiToastRegion.js +15 -8
- package/vue/chunks/UiTooltip.js +27 -19
- package/vue/chunks/UiTopBar.js +21 -6
- package/vue/chunks/UiTree.js +18 -16
- package/vue/chunks/UiTreeItem.js +82 -45
- package/vue/chunks/_plugin-vue_export-helper.js +17 -4
- package/vue/components.css +1507 -1479
- package/vue/host.ts +26 -6
package/vue/UiButton.vue
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!-- Generated by HTML Next 1.0.0-alpha.
|
|
1
|
+
<!-- Generated by HTML Next 1.0.0-alpha.52 for Vue 3.5. Do not edit. -->
|
|
2
2
|
<script setup lang="ts">
|
|
3
3
|
import { computed, getCurrentInstance, useTemplateRef, watchSyncEffect } from 'vue'
|
|
4
4
|
import type { PropType } from 'vue'
|
|
@@ -577,7 +577,7 @@ checkHydratedRoot(
|
|
|
577
577
|
'ui-button',
|
|
578
578
|
)
|
|
579
579
|
|
|
580
|
-
/** The values the styles' :host
|
|
580
|
+
/** The values the styles' :host() prop and state rules test. */
|
|
581
581
|
const hostState = computed(() =>
|
|
582
582
|
[
|
|
583
583
|
checkedProps.value.align && 'align',
|
|
@@ -640,6 +640,8 @@ useComponentHost(() => import('../components/ui-button/ui-button.js'), {
|
|
|
640
640
|
v-if="checkedProps.variant === 'card' && checkedProps.as === 'a'"
|
|
641
641
|
class="ui-button"
|
|
642
642
|
v-bind="nativeAttrs($attrs)"
|
|
643
|
+
data-hn
|
|
644
|
+
data-hn-ui-button
|
|
643
645
|
:href="guarded"
|
|
644
646
|
:target="checkedProps.target ?? undefined"
|
|
645
647
|
:rel="checkedProps.rel ?? undefined"
|
|
@@ -647,23 +649,23 @@ useComponentHost(() => import('../components/ui-button/ui-button.js'), {
|
|
|
647
649
|
:aria-busy="checkedProps.loading || checkedProps.pending"
|
|
648
650
|
:tabindex="guardedBinding2"
|
|
649
651
|
v-prop-validity="{ contract: propValidityContract, values: { ...props } }"
|
|
650
|
-
:data-align="reflectedProp('align', 'align', checkedProps.align, undefined, false)"
|
|
651
|
-
:data-as="reflectedProp('as', 'as', checkedProps.as, undefined, false)"
|
|
652
|
-
:data-disabled="reflectedProp('disabled', 'disabled', checkedProps.disabled, undefined, false)"
|
|
653
|
-
:data-href="reflectedProp('href', 'href', checkedProps.href, undefined, false)"
|
|
654
|
-
:data-loading="reflectedProp('loading', 'loading', checkedProps.loading, undefined, false)"
|
|
655
|
-
:data-pending="reflectedProp('pending', 'pending', checkedProps.pending, undefined, false)"
|
|
656
|
-
:data-rel="reflectedProp('rel', 'rel', checkedProps.rel, undefined, false)"
|
|
657
|
-
:data-shape="reflectedProp('shape', 'shape', checkedProps.shape, undefined, false)"
|
|
658
|
-
:data-size="reflectedProp('size', 'size', checkedProps.size, undefined, false)"
|
|
659
|
-
:data-stretch="reflectedProp('stretch', 'stretch', checkedProps.stretch, undefined, false)"
|
|
660
|
-
:data-target="reflectedProp('target', 'target', checkedProps.target, undefined, false)"
|
|
661
|
-
:data-tone="reflectedProp('tone', 'tone', checkedProps.tone, undefined, false)"
|
|
662
|
-
:data-type="reflectedProp('type', 'type', checkedProps.type, undefined, false)"
|
|
663
|
-
:data-variant="reflectedProp('variant', 'variant', checkedProps.variant, undefined, false)"
|
|
652
|
+
:data-ui-button-prop-align="reflectedProp('align', 'align', checkedProps.align, undefined, false)"
|
|
653
|
+
:data-ui-button-prop-as="reflectedProp('as', 'as', checkedProps.as, undefined, false)"
|
|
654
|
+
:data-ui-button-prop-disabled="reflectedProp('disabled', 'disabled', checkedProps.disabled, undefined, false)"
|
|
655
|
+
:data-ui-button-prop-href="reflectedProp('href', 'href', checkedProps.href, undefined, false)"
|
|
656
|
+
:data-ui-button-prop-loading="reflectedProp('loading', 'loading', checkedProps.loading, undefined, false)"
|
|
657
|
+
:data-ui-button-prop-pending="reflectedProp('pending', 'pending', checkedProps.pending, undefined, false)"
|
|
658
|
+
:data-ui-button-prop-rel="reflectedProp('rel', 'rel', checkedProps.rel, undefined, false)"
|
|
659
|
+
:data-ui-button-prop-shape="reflectedProp('shape', 'shape', checkedProps.shape, undefined, false)"
|
|
660
|
+
:data-ui-button-prop-size="reflectedProp('size', 'size', checkedProps.size, undefined, false)"
|
|
661
|
+
:data-ui-button-prop-stretch="reflectedProp('stretch', 'stretch', checkedProps.stretch, undefined, false)"
|
|
662
|
+
:data-ui-button-prop-target="reflectedProp('target', 'target', checkedProps.target, undefined, false)"
|
|
663
|
+
:data-ui-button-prop-tone="reflectedProp('tone', 'tone', checkedProps.tone, undefined, false)"
|
|
664
|
+
:data-ui-button-prop-type="reflectedProp('type', 'type', checkedProps.type, undefined, false)"
|
|
665
|
+
:data-ui-button-prop-variant="reflectedProp('variant', 'variant', checkedProps.variant, undefined, false)"
|
|
664
666
|
:data-ui-button-state="hostState || undefined"
|
|
665
667
|
ref="@html-next/root"
|
|
666
|
-
><span class="card-icon"><UiSpinner
|
|
668
|
+
><span class="card-icon" data-hn-ui-button><UiSpinner
|
|
667
669
|
v-if="checkedProps.loading || checkedProps.pending"
|
|
668
670
|
class="ui-spinner"
|
|
669
671
|
size="sm"
|
|
@@ -671,8 +673,8 @@ useComponentHost(() => import('../components/ui-button/ui-button.js'), {
|
|
|
671
673
|
<template v-if="!(checkedProps.loading || checkedProps.pending)"><slot
|
|
672
674
|
name="icon"
|
|
673
675
|
/></template></span>
|
|
674
|
-
<span class="card-content"><slot /></span>
|
|
675
|
-
<span class="card-action"><slot name="action"><UiIcon
|
|
676
|
+
<span class="card-content" data-hn-ui-button><slot /></span>
|
|
677
|
+
<span class="card-action" data-hn-ui-button><slot name="action"><UiIcon
|
|
676
678
|
class="ui-icon"
|
|
677
679
|
name="chevron-right"
|
|
678
680
|
aria-hidden="true"
|
|
@@ -681,29 +683,31 @@ useComponentHost(() => import('../components/ui-button/ui-button.js'), {
|
|
|
681
683
|
v-else-if="checkedProps.variant === 'card'"
|
|
682
684
|
class="ui-button"
|
|
683
685
|
v-bind="nativeAttrs($attrs)"
|
|
686
|
+
data-hn
|
|
687
|
+
data-hn-ui-button
|
|
684
688
|
:type="checkedProps.type ?? undefined"
|
|
685
689
|
:disabled="checkedProps.disabled ?? undefined"
|
|
686
690
|
:aria-disabled="guardedBinding3"
|
|
687
691
|
:aria-busy="checkedProps.loading || checkedProps.pending"
|
|
688
692
|
v-prop-validity="{ contract: propValidityContract, values: { ...props } }"
|
|
689
|
-
:data-align="reflectedProp('align', 'align', checkedProps.align, undefined, false)"
|
|
690
|
-
:data-as="reflectedProp('as', 'as', checkedProps.as, undefined, false)"
|
|
691
|
-
:data-disabled="reflectedProp('disabled', 'disabled', checkedProps.disabled, undefined, false)"
|
|
692
|
-
:data-href="reflectedProp('href', 'href', checkedProps.href, undefined, false)"
|
|
693
|
-
:data-loading="reflectedProp('loading', 'loading', checkedProps.loading, undefined, false)"
|
|
694
|
-
:data-pending="reflectedProp('pending', 'pending', checkedProps.pending, undefined, false)"
|
|
695
|
-
:data-rel="reflectedProp('rel', 'rel', checkedProps.rel, undefined, false)"
|
|
696
|
-
:data-shape="reflectedProp('shape', 'shape', checkedProps.shape, undefined, false)"
|
|
697
|
-
:data-size="reflectedProp('size', 'size', checkedProps.size, undefined, false)"
|
|
698
|
-
:data-stretch="reflectedProp('stretch', 'stretch', checkedProps.stretch, undefined, false)"
|
|
699
|
-
:data-target="reflectedProp('target', 'target', checkedProps.target, undefined, false)"
|
|
700
|
-
:data-tone="reflectedProp('tone', 'tone', checkedProps.tone, undefined, false)"
|
|
701
|
-
:data-type="reflectedProp('type', 'type', checkedProps.type, undefined, false)"
|
|
702
|
-
:data-variant="reflectedProp('variant', 'variant', checkedProps.variant, undefined, false)"
|
|
693
|
+
:data-ui-button-prop-align="reflectedProp('align', 'align', checkedProps.align, undefined, false)"
|
|
694
|
+
:data-ui-button-prop-as="reflectedProp('as', 'as', checkedProps.as, undefined, false)"
|
|
695
|
+
:data-ui-button-prop-disabled="reflectedProp('disabled', 'disabled', checkedProps.disabled, undefined, false)"
|
|
696
|
+
:data-ui-button-prop-href="reflectedProp('href', 'href', checkedProps.href, undefined, false)"
|
|
697
|
+
:data-ui-button-prop-loading="reflectedProp('loading', 'loading', checkedProps.loading, undefined, false)"
|
|
698
|
+
:data-ui-button-prop-pending="reflectedProp('pending', 'pending', checkedProps.pending, undefined, false)"
|
|
699
|
+
:data-ui-button-prop-rel="reflectedProp('rel', 'rel', checkedProps.rel, undefined, false)"
|
|
700
|
+
:data-ui-button-prop-shape="reflectedProp('shape', 'shape', checkedProps.shape, undefined, false)"
|
|
701
|
+
:data-ui-button-prop-size="reflectedProp('size', 'size', checkedProps.size, undefined, false)"
|
|
702
|
+
:data-ui-button-prop-stretch="reflectedProp('stretch', 'stretch', checkedProps.stretch, undefined, false)"
|
|
703
|
+
:data-ui-button-prop-target="reflectedProp('target', 'target', checkedProps.target, undefined, false)"
|
|
704
|
+
:data-ui-button-prop-tone="reflectedProp('tone', 'tone', checkedProps.tone, undefined, false)"
|
|
705
|
+
:data-ui-button-prop-type="reflectedProp('type', 'type', checkedProps.type, undefined, false)"
|
|
706
|
+
:data-ui-button-prop-variant="reflectedProp('variant', 'variant', checkedProps.variant, undefined, false)"
|
|
703
707
|
:data-ui-button-state="hostState || undefined"
|
|
704
708
|
ref="@html-next/root"
|
|
705
709
|
>
|
|
706
|
-
<span class="card-icon"><UiSpinner
|
|
710
|
+
<span class="card-icon" data-hn-ui-button><UiSpinner
|
|
707
711
|
v-if="checkedProps.loading || checkedProps.pending"
|
|
708
712
|
class="ui-spinner"
|
|
709
713
|
size="sm"
|
|
@@ -711,8 +715,8 @@ useComponentHost(() => import('../components/ui-button/ui-button.js'), {
|
|
|
711
715
|
<template v-if="!(checkedProps.loading || checkedProps.pending)"><slot
|
|
712
716
|
name="icon"
|
|
713
717
|
/></template></span>
|
|
714
|
-
<span class="card-content"><slot /></span>
|
|
715
|
-
<span class="card-action"><slot name="action"><UiIcon
|
|
718
|
+
<span class="card-content" data-hn-ui-button><slot /></span>
|
|
719
|
+
<span class="card-action" data-hn-ui-button><slot name="action"><UiIcon
|
|
716
720
|
class="ui-icon"
|
|
717
721
|
name="chevron-right"
|
|
718
722
|
aria-hidden="true"
|
|
@@ -722,6 +726,8 @@ useComponentHost(() => import('../components/ui-button/ui-button.js'), {
|
|
|
722
726
|
v-else-if="checkedProps.as === 'a'"
|
|
723
727
|
class="ui-button"
|
|
724
728
|
v-bind="nativeAttrs($attrs)"
|
|
729
|
+
data-hn
|
|
730
|
+
data-hn-ui-button
|
|
725
731
|
:href="guardedBinding4"
|
|
726
732
|
:target="checkedProps.target ?? undefined"
|
|
727
733
|
:rel="checkedProps.rel ?? undefined"
|
|
@@ -729,60 +735,64 @@ useComponentHost(() => import('../components/ui-button/ui-button.js'), {
|
|
|
729
735
|
:aria-busy="checkedProps.loading || checkedProps.pending"
|
|
730
736
|
:tabindex="guardedBinding6"
|
|
731
737
|
v-prop-validity="{ contract: propValidityContract, values: { ...props } }"
|
|
732
|
-
:data-align="reflectedProp('align', 'align', checkedProps.align, undefined, false)"
|
|
733
|
-
:data-as="reflectedProp('as', 'as', checkedProps.as, undefined, false)"
|
|
734
|
-
:data-disabled="reflectedProp('disabled', 'disabled', checkedProps.disabled, undefined, false)"
|
|
735
|
-
:data-href="reflectedProp('href', 'href', checkedProps.href, undefined, false)"
|
|
736
|
-
:data-loading="reflectedProp('loading', 'loading', checkedProps.loading, undefined, false)"
|
|
737
|
-
:data-pending="reflectedProp('pending', 'pending', checkedProps.pending, undefined, false)"
|
|
738
|
-
:data-rel="reflectedProp('rel', 'rel', checkedProps.rel, undefined, false)"
|
|
739
|
-
:data-shape="reflectedProp('shape', 'shape', checkedProps.shape, undefined, false)"
|
|
740
|
-
:data-size="reflectedProp('size', 'size', checkedProps.size, undefined, false)"
|
|
741
|
-
:data-stretch="reflectedProp('stretch', 'stretch', checkedProps.stretch, undefined, false)"
|
|
742
|
-
:data-target="reflectedProp('target', 'target', checkedProps.target, undefined, false)"
|
|
743
|
-
:data-tone="reflectedProp('tone', 'tone', checkedProps.tone, undefined, false)"
|
|
744
|
-
:data-type="reflectedProp('type', 'type', checkedProps.type, undefined, false)"
|
|
745
|
-
:data-variant="reflectedProp('variant', 'variant', checkedProps.variant, undefined, false)"
|
|
738
|
+
:data-ui-button-prop-align="reflectedProp('align', 'align', checkedProps.align, undefined, false)"
|
|
739
|
+
:data-ui-button-prop-as="reflectedProp('as', 'as', checkedProps.as, undefined, false)"
|
|
740
|
+
:data-ui-button-prop-disabled="reflectedProp('disabled', 'disabled', checkedProps.disabled, undefined, false)"
|
|
741
|
+
:data-ui-button-prop-href="reflectedProp('href', 'href', checkedProps.href, undefined, false)"
|
|
742
|
+
:data-ui-button-prop-loading="reflectedProp('loading', 'loading', checkedProps.loading, undefined, false)"
|
|
743
|
+
:data-ui-button-prop-pending="reflectedProp('pending', 'pending', checkedProps.pending, undefined, false)"
|
|
744
|
+
:data-ui-button-prop-rel="reflectedProp('rel', 'rel', checkedProps.rel, undefined, false)"
|
|
745
|
+
:data-ui-button-prop-shape="reflectedProp('shape', 'shape', checkedProps.shape, undefined, false)"
|
|
746
|
+
:data-ui-button-prop-size="reflectedProp('size', 'size', checkedProps.size, undefined, false)"
|
|
747
|
+
:data-ui-button-prop-stretch="reflectedProp('stretch', 'stretch', checkedProps.stretch, undefined, false)"
|
|
748
|
+
:data-ui-button-prop-target="reflectedProp('target', 'target', checkedProps.target, undefined, false)"
|
|
749
|
+
:data-ui-button-prop-tone="reflectedProp('tone', 'tone', checkedProps.tone, undefined, false)"
|
|
750
|
+
:data-ui-button-prop-type="reflectedProp('type', 'type', checkedProps.type, undefined, false)"
|
|
751
|
+
:data-ui-button-prop-variant="reflectedProp('variant', 'variant', checkedProps.variant, undefined, false)"
|
|
746
752
|
:data-ui-button-state="hostState || undefined"
|
|
747
753
|
ref="@html-next/root"
|
|
748
|
-
><span
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
754
|
+
><span
|
|
755
|
+
v-if="checkedProps.loading || checkedProps.pending"
|
|
756
|
+
class="spinner-wrap"
|
|
757
|
+
data-hn-ui-button
|
|
758
|
+
><UiSpinner class="ui-spinner" size="sm" /></span>
|
|
752
759
|
<slot />
|
|
753
|
-
<span class="badge"><slot name="badge" /></span></a>
|
|
760
|
+
<span class="badge" data-hn-ui-button><slot name="badge" /></span></a>
|
|
754
761
|
<button
|
|
755
762
|
v-else
|
|
756
763
|
class="ui-button"
|
|
757
764
|
v-bind="nativeAttrs($attrs)"
|
|
765
|
+
data-hn
|
|
766
|
+
data-hn-ui-button
|
|
758
767
|
:type="checkedProps.type ?? undefined"
|
|
759
768
|
:disabled="checkedProps.disabled ?? undefined"
|
|
760
769
|
:aria-disabled="guardedBinding7"
|
|
761
770
|
:aria-busy="checkedProps.loading || checkedProps.pending"
|
|
762
771
|
v-prop-validity="{ contract: propValidityContract, values: { ...props } }"
|
|
763
|
-
:data-align="reflectedProp('align', 'align', checkedProps.align, undefined, false)"
|
|
764
|
-
:data-as="reflectedProp('as', 'as', checkedProps.as, undefined, false)"
|
|
765
|
-
:data-disabled="reflectedProp('disabled', 'disabled', checkedProps.disabled, undefined, false)"
|
|
766
|
-
:data-href="reflectedProp('href', 'href', checkedProps.href, undefined, false)"
|
|
767
|
-
:data-loading="reflectedProp('loading', 'loading', checkedProps.loading, undefined, false)"
|
|
768
|
-
:data-pending="reflectedProp('pending', 'pending', checkedProps.pending, undefined, false)"
|
|
769
|
-
:data-rel="reflectedProp('rel', 'rel', checkedProps.rel, undefined, false)"
|
|
770
|
-
:data-shape="reflectedProp('shape', 'shape', checkedProps.shape, undefined, false)"
|
|
771
|
-
:data-size="reflectedProp('size', 'size', checkedProps.size, undefined, false)"
|
|
772
|
-
:data-stretch="reflectedProp('stretch', 'stretch', checkedProps.stretch, undefined, false)"
|
|
773
|
-
:data-target="reflectedProp('target', 'target', checkedProps.target, undefined, false)"
|
|
774
|
-
:data-tone="reflectedProp('tone', 'tone', checkedProps.tone, undefined, false)"
|
|
775
|
-
:data-type="reflectedProp('type', 'type', checkedProps.type, undefined, false)"
|
|
776
|
-
:data-variant="reflectedProp('variant', 'variant', checkedProps.variant, undefined, false)"
|
|
772
|
+
:data-ui-button-prop-align="reflectedProp('align', 'align', checkedProps.align, undefined, false)"
|
|
773
|
+
:data-ui-button-prop-as="reflectedProp('as', 'as', checkedProps.as, undefined, false)"
|
|
774
|
+
:data-ui-button-prop-disabled="reflectedProp('disabled', 'disabled', checkedProps.disabled, undefined, false)"
|
|
775
|
+
:data-ui-button-prop-href="reflectedProp('href', 'href', checkedProps.href, undefined, false)"
|
|
776
|
+
:data-ui-button-prop-loading="reflectedProp('loading', 'loading', checkedProps.loading, undefined, false)"
|
|
777
|
+
:data-ui-button-prop-pending="reflectedProp('pending', 'pending', checkedProps.pending, undefined, false)"
|
|
778
|
+
:data-ui-button-prop-rel="reflectedProp('rel', 'rel', checkedProps.rel, undefined, false)"
|
|
779
|
+
:data-ui-button-prop-shape="reflectedProp('shape', 'shape', checkedProps.shape, undefined, false)"
|
|
780
|
+
:data-ui-button-prop-size="reflectedProp('size', 'size', checkedProps.size, undefined, false)"
|
|
781
|
+
:data-ui-button-prop-stretch="reflectedProp('stretch', 'stretch', checkedProps.stretch, undefined, false)"
|
|
782
|
+
:data-ui-button-prop-target="reflectedProp('target', 'target', checkedProps.target, undefined, false)"
|
|
783
|
+
:data-ui-button-prop-tone="reflectedProp('tone', 'tone', checkedProps.tone, undefined, false)"
|
|
784
|
+
:data-ui-button-prop-type="reflectedProp('type', 'type', checkedProps.type, undefined, false)"
|
|
785
|
+
:data-ui-button-prop-variant="reflectedProp('variant', 'variant', checkedProps.variant, undefined, false)"
|
|
777
786
|
:data-ui-button-state="hostState || undefined"
|
|
778
787
|
ref="@html-next/root"
|
|
779
788
|
>
|
|
780
|
-
<span
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
789
|
+
<span
|
|
790
|
+
v-if="checkedProps.loading || checkedProps.pending"
|
|
791
|
+
class="spinner-wrap"
|
|
792
|
+
data-hn-ui-button
|
|
793
|
+
><UiSpinner class="ui-spinner" size="sm" /></span>
|
|
784
794
|
<slot />
|
|
785
|
-
<span class="badge"><slot name="badge" /></span>
|
|
795
|
+
<span class="badge" data-hn-ui-button><slot name="badge" /></span>
|
|
786
796
|
</button>
|
|
787
797
|
</template>
|
|
788
798
|
|
|
@@ -906,8 +916,8 @@ useComponentHost(() => import('../components/ui-button/ui-button.js'), {
|
|
|
906
916
|
|
|
907
917
|
/* A component that sets its display still honours the hidden attribute on its root. */
|
|
908
918
|
|
|
909
|
-
@scope (.ui-button) to (
|
|
910
|
-
:scope:where(
|
|
919
|
+
@scope (.ui-button) to ([data-hn]) {
|
|
920
|
+
:global(:scope:where([data-hn-ui-button])) {
|
|
911
921
|
/* Optional inherited action-group values keep text and icon actions under the same light.
|
|
912
922
|
One fine top/start highlight follows the bottom/end lowlight at a joined action seam.
|
|
913
923
|
A single ambient lift avoids stacking a face gradient or another inset bevel. */
|
|
@@ -946,21 +956,21 @@ useComponentHost(() => import('../components/ui-button/ui-button.js'), {
|
|
|
946
956
|
color: var(--_tone-text);
|
|
947
957
|
}
|
|
948
958
|
|
|
949
|
-
:
|
|
959
|
+
:global(:scope:dir(rtl):where([data-hn-ui-button])) {
|
|
950
960
|
--_ui-action-start: -1px;
|
|
951
961
|
}
|
|
952
962
|
|
|
953
|
-
:
|
|
963
|
+
:global(:scope[data-ui-button-state~="align=start"]:where([data-hn-ui-button])) {
|
|
954
964
|
justify-content: flex-start;
|
|
955
965
|
text-align: start;
|
|
956
966
|
}
|
|
957
967
|
|
|
958
|
-
:
|
|
968
|
+
:global(:scope[data-ui-button-state~="stretch"]:where([data-hn-ui-button])) {
|
|
959
969
|
display: flex;
|
|
960
970
|
inline-size: 100%;
|
|
961
971
|
}
|
|
962
972
|
|
|
963
|
-
:scope:where(
|
|
973
|
+
:global(:scope:where([data-hn-ui-button])) {
|
|
964
974
|
appearance: none;
|
|
965
975
|
min-block-size: var(--ui-button-min-block-size, var(--ui-control-size-md));
|
|
966
976
|
border-style: solid;
|
|
@@ -986,58 +996,58 @@ useComponentHost(() => import('../components/ui-button/ui-button.js'), {
|
|
|
986
996
|
box-shadow var(--ui-motion-base) var(--ui-motion-ease);
|
|
987
997
|
margin: 0;
|
|
988
998
|
}
|
|
989
|
-
:
|
|
999
|
+
:global(:scope:is(a):where([data-hn-ui-button])) {
|
|
990
1000
|
text-decoration: none;
|
|
991
1001
|
}
|
|
992
1002
|
|
|
993
|
-
.spinner-wrap {
|
|
1003
|
+
:global(.spinner-wrap:where([data-hn-ui-button])) {
|
|
994
1004
|
display: inline-flex;
|
|
995
1005
|
flex: none;
|
|
996
1006
|
vertical-align: middle;
|
|
997
1007
|
}
|
|
998
|
-
:
|
|
1008
|
+
:global(:scope:not([variant="link"]):has(.badge:not(:empty)):where([data-hn-ui-button])) {
|
|
999
1009
|
padding-block: var(--ui-space-0-5);
|
|
1000
1010
|
}
|
|
1001
1011
|
|
|
1002
|
-
.badge {
|
|
1012
|
+
:global(.badge:where([data-hn-ui-button])) {
|
|
1003
1013
|
display: inline-flex;
|
|
1004
1014
|
align-items: center;
|
|
1005
1015
|
flex: none;
|
|
1006
1016
|
}
|
|
1007
1017
|
|
|
1008
|
-
.badge:empty {
|
|
1018
|
+
:global(.badge:empty:where([data-hn-ui-button])) {
|
|
1009
1019
|
display: none;
|
|
1010
1020
|
}
|
|
1011
1021
|
|
|
1012
1022
|
@supports (text-box-trim: trim-both) {
|
|
1013
|
-
:scope:where(
|
|
1023
|
+
:global(:scope:where([data-hn-ui-button])) {
|
|
1014
1024
|
text-box-trim: trim-both;
|
|
1015
1025
|
text-box-edge: cap alphabetic;
|
|
1016
1026
|
}
|
|
1017
1027
|
}
|
|
1018
1028
|
|
|
1019
|
-
:
|
|
1029
|
+
:global(:scope[data-ui-button-state~="size=xs"]:where([data-hn-ui-button])) {
|
|
1020
1030
|
min-block-size: 1.5rem;
|
|
1021
1031
|
padding: calc(var(--ui-space-0-5) * 1.5) calc(var(--ui-space-1) * 1.25);
|
|
1022
1032
|
font-size: var(--ui-font-size-xs);
|
|
1023
1033
|
}
|
|
1024
1034
|
|
|
1025
|
-
:
|
|
1035
|
+
:global(:scope[data-ui-button-state~="shape=pill"]:where([data-hn-ui-button])) {
|
|
1026
1036
|
border-radius: var(--ui-button-radius, var(--ui-radius-round));
|
|
1027
1037
|
}
|
|
1028
1038
|
|
|
1029
|
-
:
|
|
1039
|
+
:global(:scope[data-ui-button-state~="size=sm"]:where([data-hn-ui-button])) {
|
|
1030
1040
|
min-block-size: var(--ui-control-size-sm);
|
|
1031
1041
|
padding: var(--ui-space-1) var(--ui-space-2);
|
|
1032
1042
|
font-size: var(--ui-font-size-sm);
|
|
1033
1043
|
}
|
|
1034
1044
|
|
|
1035
|
-
:
|
|
1045
|
+
:global(:scope[data-ui-button-state~="size=lg"]:where([data-hn-ui-button])) {
|
|
1036
1046
|
min-block-size: var(--ui-control-size-lg);
|
|
1037
1047
|
padding: var(--ui-space-3) var(--ui-space-4);
|
|
1038
1048
|
font-size: var(--ui-font-size-md);
|
|
1039
1049
|
}
|
|
1040
|
-
:
|
|
1050
|
+
:global(:scope[data-ui-button-state~="variant=card"]:where([data-hn-ui-button])) {
|
|
1041
1051
|
display: grid;
|
|
1042
1052
|
grid-template-columns: auto minmax(0, 1fr) auto;
|
|
1043
1053
|
align-content: center;
|
|
@@ -1050,64 +1060,64 @@ useComponentHost(() => import('../components/ui-button/ui-button.js'), {
|
|
|
1050
1060
|
box-shadow: none;
|
|
1051
1061
|
background-image: none;
|
|
1052
1062
|
}
|
|
1053
|
-
:
|
|
1063
|
+
:global(:scope[data-ui-button-state~="variant=card"][data-ui-button-state~="size=lg"]:where([data-hn-ui-button])) {
|
|
1054
1064
|
min-block-size: max(var(--ui-control-min-block-size), var(--ui-control-size-lg));
|
|
1055
1065
|
}
|
|
1056
|
-
:
|
|
1066
|
+
:global(:scope[data-ui-button-state~="variant=card"]:has(.card-icon:empty):where([data-hn-ui-button])) {
|
|
1057
1067
|
grid-template-columns: minmax(0, 1fr) auto;
|
|
1058
1068
|
}
|
|
1059
|
-
.card-icon {
|
|
1069
|
+
:global(.card-icon:where([data-hn-ui-button])) {
|
|
1060
1070
|
display: flex;
|
|
1061
1071
|
align-items: flex-start;
|
|
1062
1072
|
}
|
|
1063
|
-
.card-icon:empty {
|
|
1073
|
+
:global(.card-icon:empty:where([data-hn-ui-button])) {
|
|
1064
1074
|
display: none;
|
|
1065
1075
|
}
|
|
1066
|
-
.card-content {
|
|
1076
|
+
:global(.card-content:where([data-hn-ui-button])) {
|
|
1067
1077
|
min-inline-size: 0;
|
|
1068
1078
|
}
|
|
1069
|
-
.card-action {
|
|
1079
|
+
:global(.card-action:where([data-hn-ui-button])) {
|
|
1070
1080
|
display: flex;
|
|
1071
1081
|
align-items: center;
|
|
1072
1082
|
align-self: center;
|
|
1073
1083
|
}
|
|
1074
|
-
:
|
|
1084
|
+
:global(:scope:hover:not(:disabled, [aria-disabled="true"]):where([data-hn-ui-button])) {
|
|
1075
1085
|
border-color: var(--ui-button-hover-border, var(--_tone-hover));
|
|
1076
1086
|
background-color: var(--ui-button-hover-surface, oklch(from var(--_tone) l c h / 12%));
|
|
1077
1087
|
}
|
|
1078
|
-
:
|
|
1088
|
+
:global(:scope[data-ui-button-state~="variant=card"][data-ui-button-state~="tone=neutral"]:where([data-hn-ui-button])) {
|
|
1079
1089
|
border-color: var(--ui-button-border, var(--ui-border));
|
|
1080
1090
|
}
|
|
1081
1091
|
|
|
1082
|
-
:
|
|
1092
|
+
:global(:scope[data-ui-button-state~="variant=card"][data-ui-button-state~="tone=neutral"]:hover:not(:disabled, [aria-disabled="true"]):where([data-hn-ui-button])) {
|
|
1083
1093
|
border-color: var(--ui-button-hover-border, var(--ui-border-strong));
|
|
1084
1094
|
}
|
|
1085
|
-
:
|
|
1095
|
+
:global(:scope:active:not(:disabled, [aria-disabled="true"]):where([data-hn-ui-button])) {
|
|
1086
1096
|
background-color: var(--ui-button-active-surface, oklch(from var(--_tone) l c h / 18%));
|
|
1087
1097
|
background-image: none;
|
|
1088
1098
|
box-shadow: var(--ui-pressed);
|
|
1089
1099
|
}
|
|
1090
1100
|
|
|
1091
|
-
:
|
|
1092
|
-
:
|
|
1101
|
+
:global(:scope[data-ui-button-state~="variant=solid"]:where([data-hn-ui-button])),
|
|
1102
|
+
:global(:scope[data-ui-button-state~="variant=danger"]:where([data-hn-ui-button])) {
|
|
1093
1103
|
border-color: var(--_tone);
|
|
1094
1104
|
background-color: var(--_tone);
|
|
1095
1105
|
color: var(--_on-tone);
|
|
1096
1106
|
box-shadow: var(--ui-button-solid-shadow, var(--ui-action-shadow, var(--_ui-action-shadow)));
|
|
1097
1107
|
}
|
|
1098
1108
|
|
|
1099
|
-
:is(:scope[data-ui-button-state~="variant=solid"], :scope[data-ui-button-state~="variant=danger"]):hover:not(:disabled, [aria-disabled="true"]) {
|
|
1109
|
+
:global(:is(:scope[data-ui-button-state~="variant=solid"], :scope[data-ui-button-state~="variant=danger"]):hover:not(:disabled, [aria-disabled="true"]):where([data-hn-ui-button])) {
|
|
1100
1110
|
background-color: var(--_tone-hover);
|
|
1101
1111
|
border-color: var(--_tone-hover);
|
|
1102
1112
|
}
|
|
1103
1113
|
|
|
1104
|
-
:is(:scope[data-ui-button-state~="variant=solid"], :scope[data-ui-button-state~="variant=danger"]):active:not(:disabled, [aria-disabled="true"]) {
|
|
1114
|
+
:global(:is(:scope[data-ui-button-state~="variant=solid"], :scope[data-ui-button-state~="variant=danger"]):active:not(:disabled, [aria-disabled="true"]):where([data-hn-ui-button])) {
|
|
1105
1115
|
background-color: var(--_tone-active);
|
|
1106
1116
|
border-color: var(--_tone-active);
|
|
1107
1117
|
background-image: none;
|
|
1108
1118
|
box-shadow: var(--ui-pressed);
|
|
1109
1119
|
}
|
|
1110
|
-
:
|
|
1120
|
+
:global(:scope[data-ui-button-state~="tone=neutral"]:where([data-hn-ui-button])) {
|
|
1111
1121
|
--_hue: var(--ui-text);
|
|
1112
1122
|
--_hue-hover: var(--ui-text);
|
|
1113
1123
|
--_hue-active: var(--ui-text);
|
|
@@ -1115,8 +1125,8 @@ useComponentHost(() => import('../components/ui-button/ui-button.js'), {
|
|
|
1115
1125
|
--_on-hue: var(--ui-surface);
|
|
1116
1126
|
}
|
|
1117
1127
|
|
|
1118
|
-
:
|
|
1119
|
-
:
|
|
1128
|
+
:global(:scope[data-ui-button-state~="tone=danger"]:where([data-hn-ui-button])),
|
|
1129
|
+
:global(:scope[data-ui-button-state~="variant=danger"]:where([data-hn-ui-button])) {
|
|
1120
1130
|
--_hue: var(--ui-danger);
|
|
1121
1131
|
--_hue-hover: var(--ui-danger-hover);
|
|
1122
1132
|
--_hue-active: var(--ui-danger-hover);
|
|
@@ -1124,7 +1134,7 @@ useComponentHost(() => import('../components/ui-button/ui-button.js'), {
|
|
|
1124
1134
|
--_on-hue: var(--ui-on-danger);
|
|
1125
1135
|
}
|
|
1126
1136
|
|
|
1127
|
-
:
|
|
1137
|
+
:global(:scope[data-ui-button-state~="tone=success"]:where([data-hn-ui-button])) {
|
|
1128
1138
|
--_hue: var(--ui-success);
|
|
1129
1139
|
--_hue-hover: color-mix(in srgb, var(--ui-success) 85%, #000);
|
|
1130
1140
|
--_hue-active: color-mix(in srgb, var(--ui-success) 75%, #000);
|
|
@@ -1132,7 +1142,7 @@ useComponentHost(() => import('../components/ui-button/ui-button.js'), {
|
|
|
1132
1142
|
--_on-hue: var(--ui-surface);
|
|
1133
1143
|
}
|
|
1134
1144
|
|
|
1135
|
-
:
|
|
1145
|
+
:global(:scope[data-ui-button-state~="tone=warning"]:where([data-hn-ui-button])) {
|
|
1136
1146
|
--_hue: var(--ui-warning);
|
|
1137
1147
|
--_hue-hover: color-mix(in srgb, var(--ui-warning) 85%, #000);
|
|
1138
1148
|
--_hue-active: color-mix(in srgb, var(--ui-warning) 75%, #000);
|
|
@@ -1140,14 +1150,14 @@ useComponentHost(() => import('../components/ui-button/ui-button.js'), {
|
|
|
1140
1150
|
--_on-hue: var(--ui-surface);
|
|
1141
1151
|
}
|
|
1142
1152
|
|
|
1143
|
-
:
|
|
1153
|
+
:global(:scope[data-ui-button-state~="tone=info"]:where([data-hn-ui-button])) {
|
|
1144
1154
|
--_hue: var(--ui-info);
|
|
1145
1155
|
--_hue-hover: color-mix(in srgb, var(--ui-info) 85%, #000);
|
|
1146
1156
|
--_hue-active: color-mix(in srgb, var(--ui-info) 75%, #000);
|
|
1147
1157
|
--_hue-text: color-mix(in srgb, var(--ui-info) 85%, #000);
|
|
1148
1158
|
--_on-hue: var(--ui-surface);
|
|
1149
1159
|
}
|
|
1150
|
-
:
|
|
1160
|
+
:global(:scope[data-ui-button-state~="variant=field"]:where([data-hn-ui-button])) {
|
|
1151
1161
|
--_ui-field-shadow: var(--ui-shadow-sm);
|
|
1152
1162
|
border-color: var(--ui-button-border, var(--ui-control-border, var(--ui-border-strong)));
|
|
1153
1163
|
border-radius: var(--ui-button-radius, var(--ui-field-radius, var(--ui-radius-md)));
|
|
@@ -1160,7 +1170,7 @@ useComponentHost(() => import('../components/ui-button/ui-button.js'), {
|
|
|
1160
1170
|
box-shadow: var(--ui-button-shadow, var(--_ui-field-shadow));
|
|
1161
1171
|
}
|
|
1162
1172
|
|
|
1163
|
-
:
|
|
1173
|
+
:global(:scope[data-ui-button-state~="variant=field"]:hover:not(:disabled, [aria-disabled="true"]):where([data-hn-ui-button])) {
|
|
1164
1174
|
border-color: var(
|
|
1165
1175
|
--ui-button-hover-border,
|
|
1166
1176
|
var(--ui-control-border-hover, var(--ui-text-secondary))
|
|
@@ -1171,28 +1181,28 @@ useComponentHost(() => import('../components/ui-button/ui-button.js'), {
|
|
|
1171
1181
|
);
|
|
1172
1182
|
}
|
|
1173
1183
|
|
|
1174
|
-
:
|
|
1184
|
+
:global(:scope[data-ui-button-state~="variant=field"]:is(:active, [aria-expanded="true"]):not(:disabled, [aria-disabled="true"]):where([data-hn-ui-button])) {
|
|
1175
1185
|
--_ui-field-shadow: var(--ui-pressed);
|
|
1176
1186
|
}
|
|
1177
1187
|
|
|
1178
|
-
:
|
|
1188
|
+
:global(:scope[data-ui-button-state~="variant=field"]:focus-visible:where([data-hn-ui-button])) {
|
|
1179
1189
|
border-color: var(--ui-control-focus, var(--ui-accent-solid));
|
|
1180
1190
|
box-shadow:
|
|
1181
1191
|
var(--ui-button-shadow, var(--_ui-field-shadow)),
|
|
1182
1192
|
var(--ui-control-focus-halo-shadow);
|
|
1183
1193
|
}
|
|
1184
1194
|
|
|
1185
|
-
:
|
|
1195
|
+
:global(:scope[data-ui-button-state~="variant=ghost"]:where([data-hn-ui-button])) {
|
|
1186
1196
|
border-color: transparent;
|
|
1187
1197
|
background: transparent;
|
|
1188
1198
|
box-shadow: none;
|
|
1189
1199
|
color: var(--ui-button-ghost-text, var(--_tone-text));
|
|
1190
1200
|
}
|
|
1191
|
-
:
|
|
1201
|
+
:global(:scope[data-ui-button-state~="variant=ghost"]:hover:not(:disabled, [aria-disabled="true"]):where([data-hn-ui-button])) {
|
|
1192
1202
|
background-color: var(--ui-button-ghost-hover-surface, oklch(from var(--_tone) l c h / 10%));
|
|
1193
1203
|
border-color: transparent;
|
|
1194
1204
|
}
|
|
1195
|
-
:
|
|
1205
|
+
:global(:scope[data-ui-button-state~="variant=ghost"]:is(:active, [aria-expanded="true"]):not(:disabled, [aria-disabled="true"]):where([data-hn-ui-button])) {
|
|
1196
1206
|
background-color: var(
|
|
1197
1207
|
--ui-button-ghost-active-surface,
|
|
1198
1208
|
color-mix(in oklch, var(--ui-surface), var(--_tone) 3%)
|
|
@@ -1202,23 +1212,23 @@ useComponentHost(() => import('../components/ui-button/ui-button.js'), {
|
|
|
1202
1212
|
inset 0 0 0 1px oklch(from var(--_tone) l c h / 10%),
|
|
1203
1213
|
inset 0 1px 2px oklch(from var(--_tone) l c h / 8%);
|
|
1204
1214
|
}
|
|
1205
|
-
:
|
|
1215
|
+
:global(:scope:focus-visible:where([data-hn-ui-button])) {
|
|
1206
1216
|
outline: none;
|
|
1207
1217
|
box-shadow:
|
|
1208
1218
|
var(--ui-button-shadow, var(--ui-action-shadow, var(--_ui-action-shadow))),
|
|
1209
1219
|
var(--ui-focus-halo);
|
|
1210
1220
|
}
|
|
1211
1221
|
|
|
1212
|
-
:
|
|
1222
|
+
:global(:scope[data-ui-button-state~="variant=solid"]:focus-visible:where([data-hn-ui-button])) {
|
|
1213
1223
|
box-shadow:
|
|
1214
1224
|
var(--ui-button-solid-shadow, var(--ui-action-shadow, var(--_ui-action-shadow))),
|
|
1215
1225
|
var(--ui-focus-halo);
|
|
1216
1226
|
}
|
|
1217
1227
|
|
|
1218
|
-
:is(:scope[data-ui-button-state~="variant=ghost"], :scope[data-ui-button-state~="variant=link"], :scope[data-ui-button-state~="variant=card"]):focus-visible {
|
|
1228
|
+
:global(:is(:scope[data-ui-button-state~="variant=ghost"], :scope[data-ui-button-state~="variant=link"], :scope[data-ui-button-state~="variant=card"]):focus-visible:where([data-hn-ui-button])) {
|
|
1219
1229
|
box-shadow: var(--ui-focus-halo);
|
|
1220
1230
|
}
|
|
1221
|
-
:
|
|
1231
|
+
:global(:scope:is(:disabled, [aria-disabled="true"]:not([aria-busy="true"])):where([data-hn-ui-button])) {
|
|
1222
1232
|
border-color: var(--ui-disabled-border);
|
|
1223
1233
|
background-color: var(--ui-disabled-surface);
|
|
1224
1234
|
color: var(--ui-disabled-text);
|
|
@@ -1229,28 +1239,30 @@ useComponentHost(() => import('../components/ui-button/ui-button.js'), {
|
|
|
1229
1239
|
box-shadow: none;
|
|
1230
1240
|
}
|
|
1231
1241
|
|
|
1232
|
-
:is(:scope[data-ui-button-state~="loading"], :scope[data-ui-button-state~="pending"]):focus-visible {
|
|
1242
|
+
:global(:is(:scope[data-ui-button-state~="loading"], :scope[data-ui-button-state~="pending"]):focus-visible:where([data-hn-ui-button])) {
|
|
1233
1243
|
box-shadow: var(--ui-focus-halo);
|
|
1234
1244
|
}
|
|
1235
|
-
:
|
|
1245
|
+
:global(:scope[data-ui-button-state~="variant=ghost"]:is(:disabled, [aria-disabled="true"]:not([aria-busy="true"])):where([data-hn-ui-button])) {
|
|
1236
1246
|
background-color: var(--ui-disabled-surface);
|
|
1237
1247
|
border-color: transparent;
|
|
1238
1248
|
}
|
|
1239
1249
|
@media (pointer: coarse) {
|
|
1240
|
-
:
|
|
1250
|
+
:global(:scope:where([data-hn-ui-button])),
|
|
1251
|
+
:global(:scope[data-ui-button-state~="size=sm"]:where([data-hn-ui-button])) {
|
|
1241
1252
|
min-block-size: var(--ui-control-min-block-size);
|
|
1242
1253
|
}
|
|
1243
1254
|
}
|
|
1244
|
-
:
|
|
1245
|
-
[data-ui-button-state~="variant=link"]),
|
|
1246
|
-
:
|
|
1255
|
+
:global(html[data-ui-input-modality="touch"]
|
|
1256
|
+
:scope[data-ui-button-state~="variant=link"]:where([data-hn-ui-button])),
|
|
1257
|
+
:global(html[data-ui-input-modality="touch"]
|
|
1258
|
+
:scope[data-ui-button-state~="size=xs"]:where([data-hn-ui-button])) {
|
|
1247
1259
|
position: relative;
|
|
1248
1260
|
}
|
|
1249
1261
|
|
|
1250
|
-
:
|
|
1251
|
-
[data-ui-button-state~="variant=link"])::after,
|
|
1252
|
-
:
|
|
1253
|
-
[data-ui-button-state~="size=xs"])::after {
|
|
1262
|
+
:global(html[data-ui-input-modality="touch"]
|
|
1263
|
+
:scope[data-ui-button-state~="variant=link"]:where([data-hn-ui-button])::after),
|
|
1264
|
+
:global(html[data-ui-input-modality="touch"]
|
|
1265
|
+
:scope[data-ui-button-state~="size=xs"]:where([data-hn-ui-button])::after) {
|
|
1254
1266
|
position: absolute;
|
|
1255
1267
|
inset: 50% auto auto 50%;
|
|
1256
1268
|
inline-size: max(100%, var(--ui-control-min-block-size));
|
|
@@ -1258,7 +1270,7 @@ useComponentHost(() => import('../components/ui-button/ui-button.js'), {
|
|
|
1258
1270
|
transform: translate(-50%, -50%);
|
|
1259
1271
|
content: "";
|
|
1260
1272
|
}
|
|
1261
|
-
:
|
|
1273
|
+
:global(:scope[data-ui-button-state~="variant=link"]:where([data-hn-ui-button])) {
|
|
1262
1274
|
display: inline;
|
|
1263
1275
|
min-block-size: 0;
|
|
1264
1276
|
padding: 0;
|
|
@@ -1277,30 +1289,30 @@ useComponentHost(() => import('../components/ui-button/ui-button.js'), {
|
|
|
1277
1289
|
text-decoration-color var(--ui-motion-fast) var(--ui-motion-ease);
|
|
1278
1290
|
}
|
|
1279
1291
|
|
|
1280
|
-
:
|
|
1292
|
+
:global(:scope[data-ui-button-state~="variant=link"]:hover:not(:disabled, [aria-disabled="true"]):where([data-hn-ui-button])) {
|
|
1281
1293
|
color: var(--ui-button-link-hover-text, var(--ui-text-primary));
|
|
1282
1294
|
text-decoration-color: currentColor;
|
|
1283
1295
|
background: none;
|
|
1284
1296
|
transform: none;
|
|
1285
1297
|
}
|
|
1286
1298
|
|
|
1287
|
-
:
|
|
1299
|
+
:global(:scope[data-ui-button-state~="variant=link"]:active:not(:disabled, [aria-disabled="true"]):where([data-hn-ui-button])) {
|
|
1288
1300
|
background: none;
|
|
1289
1301
|
transform: none;
|
|
1290
1302
|
}
|
|
1291
1303
|
|
|
1292
|
-
:
|
|
1304
|
+
:global(:scope[data-ui-button-state~="variant=link"]:is(:disabled, [aria-disabled="true"]:not([aria-busy="true"])):where([data-hn-ui-button])) {
|
|
1293
1305
|
background: none;
|
|
1294
1306
|
border-color: transparent;
|
|
1295
1307
|
}
|
|
1296
1308
|
|
|
1297
|
-
:
|
|
1309
|
+
:global(:scope[data-ui-button-state~="variant=link"]:focus-visible:where([data-hn-ui-button])) {
|
|
1298
1310
|
box-shadow: none;
|
|
1299
1311
|
/* Fallback keeps the ring if the token is missing: an unresolved var() would void the outline. */
|
|
1300
1312
|
outline: var(--ui-focus-width) solid var(--ui-focus-ring);
|
|
1301
1313
|
outline-offset: var(--ui-focus-width);
|
|
1302
1314
|
}
|
|
1303
|
-
:
|
|
1315
|
+
:global(:scope[hidden]:where([data-hn-ui-button])) {
|
|
1304
1316
|
display: none;
|
|
1305
1317
|
}
|
|
1306
1318
|
}
|