@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/UiContainer.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, watchSyncEffect } from 'vue'
|
|
4
4
|
import type { PropType } from 'vue'
|
|
@@ -72,7 +72,7 @@ const reflectedProp = useReflectedProp()
|
|
|
72
72
|
|
|
73
73
|
checkHydratedRoot('div', 'ui-container')
|
|
74
74
|
|
|
75
|
-
/** The values the styles' :host
|
|
75
|
+
/** The values the styles' :host() prop and state rules test. */
|
|
76
76
|
const hostState = computed(() =>
|
|
77
77
|
[
|
|
78
78
|
checkedProps.value.measure && 'measure',
|
|
@@ -90,10 +90,12 @@ const hostState = computed(() =>
|
|
|
90
90
|
<div
|
|
91
91
|
class="ui-container"
|
|
92
92
|
v-bind="nativeAttrs($attrs)"
|
|
93
|
+
data-hn
|
|
94
|
+
data-hn-ui-container
|
|
93
95
|
v-prop-validity="{ contract: propValidityContract, values: { ...props } }"
|
|
94
|
-
:data-fill="reflectedProp('fill', 'fill', checkedProps.fill, undefined, false)"
|
|
95
|
-
:data-gutters="reflectedProp('gutters', 'gutters', checkedProps.gutters, undefined, false)"
|
|
96
|
-
:data-measure="reflectedProp('measure', 'measure', checkedProps.measure, undefined, false)"
|
|
96
|
+
:data-ui-container-prop-fill="reflectedProp('fill', 'fill', checkedProps.fill, undefined, false)"
|
|
97
|
+
:data-ui-container-prop-gutters="reflectedProp('gutters', 'gutters', checkedProps.gutters, undefined, false)"
|
|
98
|
+
:data-ui-container-prop-measure="reflectedProp('measure', 'measure', checkedProps.measure, undefined, false)"
|
|
97
99
|
:data-ui-container-state="hostState || undefined"
|
|
98
100
|
>
|
|
99
101
|
<slot />
|
|
@@ -113,8 +115,8 @@ const hostState = computed(() =>
|
|
|
113
115
|
|
|
114
116
|
/* A component that sets its display still honours the hidden attribute on its root. */
|
|
115
117
|
|
|
116
|
-
@scope (.ui-container) {
|
|
117
|
-
:scope:where(
|
|
118
|
+
@scope (.ui-container) to ([data-hn]) {
|
|
119
|
+
:global(:scope:where([data-hn-ui-container])) {
|
|
118
120
|
--_container-measure: 65ch;
|
|
119
121
|
--_container-gutters: var(--ui-space-4);
|
|
120
122
|
display: block;
|
|
@@ -124,10 +126,10 @@ const hostState = computed(() =>
|
|
|
124
126
|
padding-inline: var(--ui-container-gutters, var(--_container-gutters));
|
|
125
127
|
}
|
|
126
128
|
|
|
127
|
-
:
|
|
129
|
+
:global(:scope[data-ui-container-state~="measure=narrow"]:where([data-hn-ui-container])) {
|
|
128
130
|
--_container-measure: 45ch;
|
|
129
131
|
}
|
|
130
|
-
:
|
|
132
|
+
:global(:scope[data-ui-container-state~="fill"]:where([data-hn-ui-container])) {
|
|
131
133
|
box-sizing: border-box;
|
|
132
134
|
display: flex;
|
|
133
135
|
flex-direction: column;
|
|
@@ -135,19 +137,19 @@ const hostState = computed(() =>
|
|
|
135
137
|
min-inline-size: 0;
|
|
136
138
|
min-block-size: 0;
|
|
137
139
|
}
|
|
138
|
-
:
|
|
140
|
+
:global(:scope[data-ui-container-state~="measure=wide"]:where([data-hn-ui-container])) {
|
|
139
141
|
--_container-measure: 80ch;
|
|
140
142
|
}
|
|
141
|
-
:
|
|
143
|
+
:global(:scope[data-ui-container-state~="gutters=s"]:where([data-hn-ui-container])) {
|
|
142
144
|
--_container-gutters: var(--ui-space-3);
|
|
143
145
|
}
|
|
144
|
-
:
|
|
146
|
+
:global(:scope[data-ui-container-state~="gutters=m"]:where([data-hn-ui-container])) {
|
|
145
147
|
--_container-gutters: var(--ui-space-4);
|
|
146
148
|
}
|
|
147
|
-
:
|
|
149
|
+
:global(:scope[data-ui-container-state~="gutters=l"]:where([data-hn-ui-container])) {
|
|
148
150
|
--_container-gutters: var(--ui-space-5);
|
|
149
151
|
}
|
|
150
|
-
:
|
|
152
|
+
:global(:scope[hidden]:where([data-hn-ui-container])) {
|
|
151
153
|
display: none;
|
|
152
154
|
}
|
|
153
155
|
}
|
package/vue/UiContextMenu.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, provide, ref, useTemplateRef, watchSyncEffect } from 'vue'
|
|
4
4
|
import type { PropType } from 'vue'
|
|
@@ -161,11 +161,21 @@ useComponentHost(() => import('../components/ui-context-menu/ui-context-menu.js'
|
|
|
161
161
|
<span
|
|
162
162
|
class="ui-context-menu"
|
|
163
163
|
v-bind="nativeAttrs($attrs)"
|
|
164
|
+
data-hn
|
|
165
|
+
data-hn-ui-context-menu
|
|
164
166
|
v-prop-validity="{ contract: propValidityContract, values: { ...props } }"
|
|
165
|
-
:data-for="reflectedProp('for', 'for', checkedProps.for, undefined, false)"
|
|
166
|
-
:data-open="reflectedProp('open', 'open', checkedProps.open, undefined, false)"
|
|
167
|
+
:data-ui-context-menu-prop-for="reflectedProp('for', 'for', checkedProps.for, undefined, false)"
|
|
168
|
+
:data-ui-context-menu-prop-open="reflectedProp('open', 'open', checkedProps.open, undefined, false)"
|
|
167
169
|
ref="root"
|
|
168
|
-
><div
|
|
170
|
+
><div
|
|
171
|
+
class="menu"
|
|
172
|
+
role="menu"
|
|
173
|
+
aria-orientation="vertical"
|
|
174
|
+
data-hn-ui-context-menu
|
|
175
|
+
ref="menuElement"
|
|
176
|
+
>
|
|
177
|
+
<slot />
|
|
178
|
+
</div></span>
|
|
169
179
|
</template>
|
|
170
180
|
|
|
171
181
|
<style scoped>
|
|
@@ -193,8 +203,8 @@ useComponentHost(() => import('../components/ui-context-menu/ui-context-menu.js'
|
|
|
193
203
|
|
|
194
204
|
/* A component that sets its display still honours the hidden attribute on its root. */
|
|
195
205
|
|
|
196
|
-
@scope (.ui-context-menu) {
|
|
197
|
-
:scope:where(
|
|
206
|
+
@scope (.ui-context-menu) to ([data-hn]) {
|
|
207
|
+
:global(:scope:where([data-hn-ui-context-menu])) {
|
|
198
208
|
/* Hooks do not inherit, so the parts below read them from the root. */
|
|
199
209
|
--_ui-context-menu-surface: var(--ui-context-menu-surface);
|
|
200
210
|
--_ui-context-menu-border: var(--ui-context-menu-border);
|
|
@@ -205,7 +215,7 @@ useComponentHost(() => import('../components/ui-context-menu/ui-context-menu.js'
|
|
|
205
215
|
display: contents;
|
|
206
216
|
}
|
|
207
217
|
|
|
208
|
-
.menu {
|
|
218
|
+
:global(.menu:where([data-hn-ui-context-menu])) {
|
|
209
219
|
position: fixed;
|
|
210
220
|
inset: auto;
|
|
211
221
|
margin: 0;
|
|
@@ -237,7 +247,7 @@ useComponentHost(() => import('../components/ui-context-menu/ui-context-menu.js'
|
|
|
237
247
|
overlay var(--ui-motion-fast) allow-discrete;
|
|
238
248
|
}
|
|
239
249
|
|
|
240
|
-
.menu hr {
|
|
250
|
+
:global(.menu hr:where([data-hn-ui-context-menu])) {
|
|
241
251
|
align-self: stretch;
|
|
242
252
|
block-size: 0;
|
|
243
253
|
margin: var(--ui-space-1) 0;
|
|
@@ -245,28 +255,29 @@ useComponentHost(() => import('../components/ui-context-menu/ui-context-menu.js'
|
|
|
245
255
|
border-block-start: var(--ui-border-width) solid var(--ui-border-divider);
|
|
246
256
|
}
|
|
247
257
|
|
|
248
|
-
.menu:popover-open {
|
|
258
|
+
:global(.menu:popover-open:where([data-hn-ui-context-menu])) {
|
|
249
259
|
opacity: 1;
|
|
250
260
|
transform: translateY(0) scale(1);
|
|
251
261
|
}
|
|
252
262
|
|
|
253
263
|
@starting-style {
|
|
254
|
-
.menu:popover-open {
|
|
264
|
+
:global(.menu:popover-open:where([data-hn-ui-context-menu])) {
|
|
255
265
|
opacity: 0;
|
|
256
266
|
transform: translateY(-4px) scale(0.99);
|
|
257
267
|
}
|
|
258
268
|
}
|
|
259
269
|
|
|
260
|
-
.menu[hidden]
|
|
270
|
+
:global(.menu[hidden]:where([data-hn-ui-context-menu])),
|
|
271
|
+
:global(.menu[popover]:not(:popover-open):where([data-hn-ui-context-menu])) {
|
|
261
272
|
display: none;
|
|
262
273
|
}
|
|
263
274
|
|
|
264
275
|
@media (prefers-reduced-motion: reduce) {
|
|
265
|
-
.menu {
|
|
276
|
+
:global(.menu:where([data-hn-ui-context-menu])) {
|
|
266
277
|
transition: none;
|
|
267
278
|
}
|
|
268
279
|
}
|
|
269
|
-
:
|
|
280
|
+
:global(:scope[hidden]:where([data-hn-ui-context-menu])) {
|
|
270
281
|
display: none;
|
|
271
282
|
}
|
|
272
283
|
}
|
package/vue/UiCover.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, watchSyncEffect } from 'vue'
|
|
4
4
|
import type { PropType } from 'vue'
|
|
@@ -41,7 +41,7 @@ const reflectedProp = useReflectedProp()
|
|
|
41
41
|
|
|
42
42
|
checkHydratedRoot('div', 'ui-cover')
|
|
43
43
|
|
|
44
|
-
/** The values the styles' :host
|
|
44
|
+
/** The values the styles' :host() prop and state rules test. */
|
|
45
45
|
const hostState = computed(() =>
|
|
46
46
|
[
|
|
47
47
|
checkedProps.value.size && 'size',
|
|
@@ -54,8 +54,10 @@ const hostState = computed(() =>
|
|
|
54
54
|
<div
|
|
55
55
|
class="ui-cover"
|
|
56
56
|
v-bind="nativeAttrs($attrs)"
|
|
57
|
+
data-hn
|
|
58
|
+
data-hn-ui-cover
|
|
57
59
|
v-prop-validity="{ contract: propValidityContract, values: { ...props } }"
|
|
58
|
-
:data-size="reflectedProp('size', 'size', checkedProps.size, undefined, false)"
|
|
60
|
+
:data-ui-cover-prop-size="reflectedProp('size', 'size', checkedProps.size, undefined, false)"
|
|
59
61
|
:data-ui-cover-state="hostState || undefined"
|
|
60
62
|
>
|
|
61
63
|
<slot />
|
|
@@ -68,8 +70,8 @@ const hostState = computed(() =>
|
|
|
68
70
|
|
|
69
71
|
/* A component that sets its display still honours the hidden attribute on its root. */
|
|
70
72
|
|
|
71
|
-
@scope (.ui-cover) {
|
|
72
|
-
:scope:where(
|
|
73
|
+
@scope (.ui-cover) to ([data-hn]) {
|
|
74
|
+
:global(:scope:where([data-hn-ui-cover])) {
|
|
73
75
|
display: flex;
|
|
74
76
|
flex-direction: column;
|
|
75
77
|
align-items: center;
|
|
@@ -80,15 +82,15 @@ const hostState = computed(() =>
|
|
|
80
82
|
padding: var(--ui-space-6) var(--ui-space-4);
|
|
81
83
|
}
|
|
82
84
|
|
|
83
|
-
:
|
|
85
|
+
:global(:scope[data-ui-cover-state~="size=fill"]:where([data-hn-ui-cover])) {
|
|
84
86
|
flex: 1;
|
|
85
87
|
min-block-size: 100%;
|
|
86
88
|
}
|
|
87
89
|
|
|
88
|
-
:scope > :
|
|
90
|
+
:global(:scope > :where(:not([data-hn-ui-cover])):is(*)) {
|
|
89
91
|
max-inline-size: 100%;
|
|
90
92
|
}
|
|
91
|
-
:
|
|
93
|
+
:global(:scope[hidden]:where([data-hn-ui-cover])) {
|
|
92
94
|
display: none;
|
|
93
95
|
}
|
|
94
96
|
}
|
|
@@ -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, watchSyncEffect } from 'vue'
|
|
4
4
|
import type { PropType } from 'vue'
|
|
@@ -44,11 +44,13 @@ checkHydratedRoot('div', 'ui-description-item')
|
|
|
44
44
|
<div
|
|
45
45
|
class="ui-description-item"
|
|
46
46
|
v-bind="nativeAttrs($attrs)"
|
|
47
|
+
data-hn
|
|
48
|
+
data-hn-ui-description-item
|
|
47
49
|
v-prop-validity="{ contract: propValidityContract, values: { ...props } }"
|
|
48
|
-
:data-term="reflectedProp('term', 'term', checkedProps.term, undefined, false)"
|
|
50
|
+
:data-ui-description-item-prop-term="reflectedProp('term', 'term', checkedProps.term, undefined, false)"
|
|
49
51
|
>
|
|
50
|
-
<dt>{{ checkedProps.term }}</dt>
|
|
51
|
-
<dd><slot /></dd>
|
|
52
|
+
<dt data-hn-ui-description-item>{{ checkedProps.term }}</dt>
|
|
53
|
+
<dd data-hn-ui-description-item><slot /></dd>
|
|
52
54
|
</div>
|
|
53
55
|
</template>
|
|
54
56
|
|
|
@@ -57,8 +59,8 @@ checkHydratedRoot('div', 'ui-description-item')
|
|
|
57
59
|
|
|
58
60
|
/* A component that sets its display still honours the hidden attribute on its root. */
|
|
59
61
|
|
|
60
|
-
@scope (.ui-description-item) {
|
|
61
|
-
:scope:where(
|
|
62
|
+
@scope (.ui-description-item) to ([data-hn]) {
|
|
63
|
+
:global(:scope:where([data-hn-ui-description-item])) {
|
|
62
64
|
display: var(--_ui-description-display, grid);
|
|
63
65
|
grid-column: var(--_ui-description-column, 1 / -1);
|
|
64
66
|
grid-template-columns: subgrid;
|
|
@@ -74,11 +76,11 @@ checkHydratedRoot('div', 'ui-description-item')
|
|
|
74
76
|
font-size: var(--ui-font-size-sm);
|
|
75
77
|
}
|
|
76
78
|
|
|
77
|
-
dt {
|
|
79
|
+
:global(dt:where([data-hn-ui-description-item])) {
|
|
78
80
|
color: var(--ui-text-muted);
|
|
79
81
|
}
|
|
80
82
|
|
|
81
|
-
dd {
|
|
83
|
+
:global(dd:where([data-hn-ui-description-item])) {
|
|
82
84
|
margin: 0;
|
|
83
85
|
min-inline-size: 0;
|
|
84
86
|
color: var(--ui-text-primary);
|
|
@@ -87,7 +89,7 @@ checkHydratedRoot('div', 'ui-description-item')
|
|
|
87
89
|
text-align: start;
|
|
88
90
|
overflow-wrap: anywhere;
|
|
89
91
|
}
|
|
90
|
-
:
|
|
92
|
+
:global(:scope[hidden]:where([data-hn-ui-description-item])) {
|
|
91
93
|
display: none;
|
|
92
94
|
}
|
|
93
95
|
}
|
|
@@ -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, watchSyncEffect } from 'vue'
|
|
4
4
|
import type { PropType } from 'vue'
|
|
@@ -84,7 +84,7 @@ const reflectedProp = useReflectedProp()
|
|
|
84
84
|
|
|
85
85
|
checkHydratedRoot('dl', 'ui-description-list')
|
|
86
86
|
|
|
87
|
-
/** The values the styles' :host
|
|
87
|
+
/** The values the styles' :host() prop and state rules test. */
|
|
88
88
|
const hostState = computed(() =>
|
|
89
89
|
[
|
|
90
90
|
checkedProps.value.layout && 'layout',
|
|
@@ -103,10 +103,12 @@ const hostState = computed(() =>
|
|
|
103
103
|
<dl
|
|
104
104
|
class="ui-description-list"
|
|
105
105
|
v-bind="nativeAttrs($attrs)"
|
|
106
|
+
data-hn
|
|
107
|
+
data-hn-ui-description-list
|
|
106
108
|
v-prop-validity="{ contract: propValidityContract, values: { ...props } }"
|
|
107
|
-
:data-columns="reflectedProp('columns', 'columns', checkedProps.columns, undefined, false)"
|
|
108
|
-
:data-density="reflectedProp('density', 'density', checkedProps.density, undefined, false)"
|
|
109
|
-
:data-layout="reflectedProp('layout', 'layout', checkedProps.layout, undefined, false)"
|
|
109
|
+
:data-ui-description-list-prop-columns="reflectedProp('columns', 'columns', checkedProps.columns, undefined, false)"
|
|
110
|
+
:data-ui-description-list-prop-density="reflectedProp('density', 'density', checkedProps.density, undefined, false)"
|
|
111
|
+
:data-ui-description-list-prop-layout="reflectedProp('layout', 'layout', checkedProps.layout, undefined, false)"
|
|
110
112
|
:data-ui-description-list-state="hostState || undefined"
|
|
111
113
|
>
|
|
112
114
|
<slot />
|
|
@@ -127,8 +129,8 @@ const hostState = computed(() =>
|
|
|
127
129
|
|
|
128
130
|
/* A component that sets its display still honours the hidden attribute on its root. */
|
|
129
131
|
|
|
130
|
-
@scope (.ui-description-list) {
|
|
131
|
-
:scope:where(
|
|
132
|
+
@scope (.ui-description-list) to ([data-hn]) {
|
|
133
|
+
:global(:scope:where([data-hn-ui-description-list])) {
|
|
132
134
|
--_gap: var(--ui-space-2);
|
|
133
135
|
--_gap-compact: var(--ui-space-1);
|
|
134
136
|
--_column-gap: var(--ui-space-6);
|
|
@@ -141,9 +143,9 @@ const hostState = computed(() =>
|
|
|
141
143
|
min-inline-size: 0;
|
|
142
144
|
margin: 0;
|
|
143
145
|
}
|
|
144
|
-
:
|
|
145
|
-
:
|
|
146
|
-
:
|
|
146
|
+
:global(:scope[data-ui-description-list-state~="layout=stacked"]:where([data-hn-ui-description-list])),
|
|
147
|
+
:global(:scope[data-ui-description-list-state~="layout=grid"]:where([data-hn-ui-description-list])),
|
|
148
|
+
:global(:scope[data-ui-description-list-state~="layout=tiles"]:where([data-hn-ui-description-list])) {
|
|
147
149
|
--_ui-description-display: flex;
|
|
148
150
|
--_ui-description-column: auto;
|
|
149
151
|
--_ui-description-align: stretch;
|
|
@@ -151,13 +153,13 @@ const hostState = computed(() =>
|
|
|
151
153
|
--_gap-compact: var(--ui-space-2);
|
|
152
154
|
grid-template-columns: minmax(0, 1fr);
|
|
153
155
|
}
|
|
154
|
-
:
|
|
155
|
-
:
|
|
156
|
+
:global(:scope[data-ui-description-list-state~="layout=grid"]:where([data-hn-ui-description-list])),
|
|
157
|
+
:global(:scope[data-ui-description-list-state~="layout=tiles"]:where([data-hn-ui-description-list])) {
|
|
156
158
|
inline-size: 100%;
|
|
157
159
|
grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--_track)), 1fr));
|
|
158
160
|
}
|
|
159
161
|
|
|
160
|
-
:
|
|
162
|
+
:global(:scope[data-ui-description-list-state~="layout=tiles"]:where([data-hn-ui-description-list])) {
|
|
161
163
|
--_ui-description-align: flex-start;
|
|
162
164
|
--_ui-description-value-size: var(--ui-font-size-lg);
|
|
163
165
|
--_ui-description-padding: var(--_tile-padding);
|
|
@@ -168,20 +170,20 @@ const hostState = computed(() =>
|
|
|
168
170
|
--_column-gap: var(--_gap);
|
|
169
171
|
}
|
|
170
172
|
|
|
171
|
-
:
|
|
173
|
+
:global(:scope[data-ui-description-list-state~="columns=2"]:where([data-hn-ui-description-list])) {
|
|
172
174
|
--_track: max(var(--_min), (100% - var(--_column-gap)) / 2);
|
|
173
175
|
}
|
|
174
|
-
:
|
|
176
|
+
:global(:scope[data-ui-description-list-state~="columns=3"]:where([data-hn-ui-description-list])) {
|
|
175
177
|
--_track: max(var(--_min), (100% - 2 * var(--_column-gap)) / 3);
|
|
176
178
|
}
|
|
177
|
-
:
|
|
179
|
+
:global(:scope[data-ui-description-list-state~="columns=4"]:where([data-hn-ui-description-list])) {
|
|
178
180
|
--_track: max(var(--_min), (100% - 3 * var(--_column-gap)) / 4);
|
|
179
181
|
}
|
|
180
|
-
:
|
|
182
|
+
:global(:scope[data-ui-description-list-state~="density=compact"]:where([data-hn-ui-description-list])) {
|
|
181
183
|
--_gap: var(--_gap-compact);
|
|
182
184
|
--_tile-padding: var(--ui-space-2);
|
|
183
185
|
}
|
|
184
|
-
:
|
|
186
|
+
:global(:scope[hidden]:where([data-hn-ui-description-list])) {
|
|
185
187
|
display: none;
|
|
186
188
|
}
|
|
187
189
|
}
|
package/vue/UiDialog.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, provide, ref, useTemplateRef, watchSyncEffect } from 'vue'
|
|
4
4
|
import type { PropType } from 'vue'
|
|
@@ -202,7 +202,7 @@ provide('html-next:ui-dialog:internalOpen', internalOpen)
|
|
|
202
202
|
provide('html-next:ui-dialog:accessibleLabel', accessibleLabel)
|
|
203
203
|
checkHydratedRoot('dialog', 'ui-dialog')
|
|
204
204
|
|
|
205
|
-
/** The values the styles' :host
|
|
205
|
+
/** The values the styles' :host() prop and state rules test. */
|
|
206
206
|
const hostState = computed(() =>
|
|
207
207
|
[
|
|
208
208
|
checkedProps.value.size && 'size',
|
|
@@ -277,27 +277,30 @@ useComponentHost(() => import('../components/ui-dialog/ui-dialog.js'), {
|
|
|
277
277
|
<dialog
|
|
278
278
|
class="ui-dialog"
|
|
279
279
|
v-bind="nativeAttrs($attrs)"
|
|
280
|
+
data-hn
|
|
281
|
+
data-hn-ui-dialog
|
|
280
282
|
:aria-label="accessibleLabel"
|
|
281
283
|
v-prop-validity="{ contract: propValidityContract, values: { ...props } }"
|
|
282
|
-
:data-alert="reflectedProp('alert', 'alert', checkedProps.alert, undefined, false)"
|
|
283
|
-
:data-closedby="reflectedProp('closedby', 'closedby', checkedProps.closedby, undefined, false)"
|
|
284
|
-
:data-for="reflectedProp('for', 'for', checkedProps.for, undefined, false)"
|
|
285
|
-
:data-label="reflectedProp('label', 'label', checkedProps.label, undefined, false)"
|
|
286
|
-
:data-modal="reflectedProp('modal', 'modal', checkedProps.modal, undefined, false)"
|
|
287
|
-
:data-modeless="reflectedProp('modeless', 'modeless', checkedProps.modeless, undefined, false)"
|
|
288
|
-
:data-open="reflectedProp('open', 'open', checkedProps.open, undefined, false)"
|
|
289
|
-
:data-size="reflectedProp('size', 'size', checkedProps.size, undefined, false)"
|
|
284
|
+
:data-ui-dialog-prop-alert="reflectedProp('alert', 'alert', checkedProps.alert, undefined, false)"
|
|
285
|
+
:data-ui-dialog-prop-closedby="reflectedProp('closedby', 'closedby', checkedProps.closedby, undefined, false)"
|
|
286
|
+
:data-ui-dialog-prop-for="reflectedProp('for', 'for', checkedProps.for, undefined, false)"
|
|
287
|
+
:data-ui-dialog-prop-label="reflectedProp('label', 'label', checkedProps.label, undefined, false)"
|
|
288
|
+
:data-ui-dialog-prop-modal="reflectedProp('modal', 'modal', checkedProps.modal, undefined, false)"
|
|
289
|
+
:data-ui-dialog-prop-modeless="reflectedProp('modeless', 'modeless', checkedProps.modeless, undefined, false)"
|
|
290
|
+
:data-ui-dialog-prop-open="reflectedProp('open', 'open', checkedProps.open, undefined, false)"
|
|
291
|
+
:data-ui-dialog-prop-size="reflectedProp('size', 'size', checkedProps.size, undefined, false)"
|
|
290
292
|
:data-ui-dialog-state="hostState || undefined"
|
|
291
293
|
ref="root"
|
|
292
294
|
>
|
|
293
|
-
<header ref="headerElement">
|
|
294
|
-
<h2 v-if="checkedProps.label" class="title">{{ checkedProps.label }}</h2>
|
|
295
|
-
<button class="close" type="button" aria-label="Close" ref="closeElement"
|
|
295
|
+
<header data-hn-ui-dialog ref="headerElement">
|
|
296
|
+
<h2 v-if="checkedProps.label" class="title" data-hn-ui-dialog>{{ checkedProps.label }}</h2>
|
|
297
|
+
<button class="close" type="button" aria-label="Close" data-hn-ui-dialog ref="closeElement">
|
|
298
|
+
</button>
|
|
296
299
|
</header>
|
|
297
|
-
<div class="body" ref="bodyElement">
|
|
300
|
+
<div class="body" data-hn-ui-dialog ref="bodyElement">
|
|
298
301
|
<UiScrollArea class="ui-scroll-area" :trim="true"><slot /></UiScrollArea>
|
|
299
302
|
</div>
|
|
300
|
-
<footer ref="footerElement"><slot name="actions" /></footer>
|
|
303
|
+
<footer data-hn-ui-dialog ref="footerElement"><slot name="actions" /></footer>
|
|
301
304
|
</dialog>
|
|
302
305
|
</template>
|
|
303
306
|
|
|
@@ -353,8 +356,8 @@ useComponentHost(() => import('../components/ui-dialog/ui-dialog.js'), {
|
|
|
353
356
|
}
|
|
354
357
|
}
|
|
355
358
|
|
|
356
|
-
@scope (.ui-dialog) to (
|
|
357
|
-
:scope:where(
|
|
359
|
+
@scope (.ui-dialog) to ([data-hn]) {
|
|
360
|
+
:global(:scope:where([data-hn-ui-dialog])) {
|
|
358
361
|
/* Hooks do not inherit, so the parts below read them from the root. */
|
|
359
362
|
--_ui-dialog-duration: var(--ui-dialog-duration);
|
|
360
363
|
|
|
@@ -391,7 +394,7 @@ useComponentHost(() => import('../components/ui-dialog/ui-dialog.js'), {
|
|
|
391
394
|
overlay var(--ui-dialog-duration, var(--ui-motion-base)) var(--ui-motion-ease) allow-discrete;
|
|
392
395
|
}
|
|
393
396
|
|
|
394
|
-
:
|
|
397
|
+
:global(:scope[open]:where([data-hn-ui-dialog])) {
|
|
395
398
|
display: flex;
|
|
396
399
|
visibility: visible;
|
|
397
400
|
pointer-events: auto;
|
|
@@ -401,15 +404,15 @@ useComponentHost(() => import('../components/ui-dialog/ui-dialog.js'), {
|
|
|
401
404
|
var(--ui-motion-ease);
|
|
402
405
|
}
|
|
403
406
|
|
|
404
|
-
:
|
|
407
|
+
:global(:scope[data-ui-dialog-state~="size=sm"]:where([data-hn-ui-dialog])) {
|
|
405
408
|
--_ui-dialog-size: 360px;
|
|
406
409
|
}
|
|
407
410
|
|
|
408
|
-
:
|
|
411
|
+
:global(:scope[data-ui-dialog-state~="size=lg"]:where([data-hn-ui-dialog])) {
|
|
409
412
|
--_ui-dialog-size: 640px;
|
|
410
413
|
}
|
|
411
414
|
|
|
412
|
-
:
|
|
415
|
+
:global(:scope[data-ui-dialog-state~="size=fullscreen"]:where([data-hn-ui-dialog])) {
|
|
413
416
|
inset: 0;
|
|
414
417
|
inline-size: 100%;
|
|
415
418
|
block-size: 100dvh;
|
|
@@ -418,10 +421,10 @@ useComponentHost(() => import('../components/ui-dialog/ui-dialog.js'), {
|
|
|
418
421
|
border-radius: var(--ui-dialog-radius, 0);
|
|
419
422
|
}
|
|
420
423
|
|
|
421
|
-
:scope[data-ui-dialog-state~="alert"] .close {
|
|
424
|
+
:global(:scope[data-ui-dialog-state~="alert"] .close:where([data-hn-ui-dialog])) {
|
|
422
425
|
display: none;
|
|
423
426
|
}
|
|
424
|
-
header {
|
|
427
|
+
:global(header:where([data-hn-ui-dialog])) {
|
|
425
428
|
display: flex;
|
|
426
429
|
align-items: center;
|
|
427
430
|
gap: var(--ui-space-3);
|
|
@@ -431,7 +434,7 @@ useComponentHost(() => import('../components/ui-dialog/ui-dialog.js'), {
|
|
|
431
434
|
padding: calc(var(--ui-space-3) + var(--ui-space-1) / 2) var(--ui-space-3) var(--ui-space-3)
|
|
432
435
|
var(--ui-space-5);
|
|
433
436
|
}
|
|
434
|
-
:scope .title {
|
|
437
|
+
:global(:scope .title:where([data-hn-ui-dialog])) {
|
|
435
438
|
flex: 1;
|
|
436
439
|
min-inline-size: 0;
|
|
437
440
|
margin: 0;
|
|
@@ -444,7 +447,7 @@ useComponentHost(() => import('../components/ui-dialog/ui-dialog.js'), {
|
|
|
444
447
|
line-height: var(--ui-line-height-tight);
|
|
445
448
|
}
|
|
446
449
|
|
|
447
|
-
.close {
|
|
450
|
+
:global(.close:where([data-hn-ui-dialog])) {
|
|
448
451
|
display: inline-grid;
|
|
449
452
|
place-items: center;
|
|
450
453
|
flex: none;
|
|
@@ -461,7 +464,8 @@ useComponentHost(() => import('../components/ui-dialog/ui-dialog.js'), {
|
|
|
461
464
|
background-color var(--ui-motion-fast) var(--ui-motion-ease),
|
|
462
465
|
color var(--ui-motion-fast) var(--ui-motion-ease);
|
|
463
466
|
}
|
|
464
|
-
.close::before,
|
|
467
|
+
:global(.close:where([data-hn-ui-dialog])::before),
|
|
468
|
+
:global(.close:where([data-hn-ui-dialog])::after) {
|
|
465
469
|
content: "";
|
|
466
470
|
grid-area: 1 / 1;
|
|
467
471
|
inline-size: 0.875rem;
|
|
@@ -471,32 +475,32 @@ useComponentHost(() => import('../components/ui-dialog/ui-dialog.js'), {
|
|
|
471
475
|
transform: rotate(45deg);
|
|
472
476
|
}
|
|
473
477
|
|
|
474
|
-
.close::after {
|
|
478
|
+
:global(.close:where([data-hn-ui-dialog])::after) {
|
|
475
479
|
transform: rotate(-45deg);
|
|
476
480
|
}
|
|
477
481
|
|
|
478
|
-
.close:hover {
|
|
482
|
+
:global(.close:hover:where([data-hn-ui-dialog])) {
|
|
479
483
|
background: var(--ui-surface-muted);
|
|
480
484
|
color: var(--ui-text-primary);
|
|
481
485
|
}
|
|
482
486
|
|
|
483
|
-
.close:focus-visible {
|
|
487
|
+
:global(.close:focus-visible:where([data-hn-ui-dialog])) {
|
|
484
488
|
outline: var(--ui-focus-width) solid var(--ui-focus-ring);
|
|
485
489
|
outline-offset: var(--ui-focus-width);
|
|
486
490
|
}
|
|
487
491
|
@media (pointer: coarse) {
|
|
488
|
-
.close {
|
|
492
|
+
:global(.close:where([data-hn-ui-dialog])) {
|
|
489
493
|
inline-size: var(--ui-control-min-block-size);
|
|
490
494
|
block-size: var(--ui-control-min-block-size);
|
|
491
495
|
}
|
|
492
496
|
}
|
|
493
497
|
|
|
494
|
-
html[data-ui-input-modality="touch"] :scope .close {
|
|
498
|
+
:global(html[data-ui-input-modality="touch"] :scope .close:where([data-hn-ui-dialog])) {
|
|
495
499
|
inline-size: var(--ui-control-min-block-size);
|
|
496
500
|
block-size: var(--ui-control-min-block-size);
|
|
497
501
|
}
|
|
498
502
|
|
|
499
|
-
.body {
|
|
503
|
+
:global(.body:where([data-hn-ui-dialog])) {
|
|
500
504
|
display: flex;
|
|
501
505
|
flex-direction: column;
|
|
502
506
|
flex: 1 1 auto;
|
|
@@ -504,7 +508,7 @@ useComponentHost(() => import('../components/ui-dialog/ui-dialog.js'), {
|
|
|
504
508
|
padding: var(--ui-space-3) var(--ui-space-5) var(--ui-space-5);
|
|
505
509
|
}
|
|
506
510
|
|
|
507
|
-
footer {
|
|
511
|
+
:global(footer:where([data-hn-ui-dialog])) {
|
|
508
512
|
display: flex;
|
|
509
513
|
flex: none;
|
|
510
514
|
flex-wrap: wrap;
|
|
@@ -513,11 +517,11 @@ useComponentHost(() => import('../components/ui-dialog/ui-dialog.js'), {
|
|
|
513
517
|
padding: 0 var(--ui-space-5) var(--ui-space-5);
|
|
514
518
|
}
|
|
515
519
|
|
|
516
|
-
footer:empty {
|
|
520
|
+
:global(footer:empty:where([data-hn-ui-dialog])) {
|
|
517
521
|
display: none;
|
|
518
522
|
}
|
|
519
523
|
|
|
520
|
-
:scope:where(
|
|
524
|
+
:global(:scope:where([data-hn-ui-dialog])::backdrop) {
|
|
521
525
|
background-color: transparent;
|
|
522
526
|
transition:
|
|
523
527
|
background-color var(--_ui-dialog-duration, var(--ui-motion-base)) var(--ui-motion-ease),
|
|
@@ -527,13 +531,13 @@ useComponentHost(() => import('../components/ui-dialog/ui-dialog.js'), {
|
|
|
527
531
|
allow-discrete;
|
|
528
532
|
}
|
|
529
533
|
|
|
530
|
-
:
|
|
534
|
+
:global(:scope[open]:modal:where([data-hn-ui-dialog])::backdrop) {
|
|
531
535
|
background-color: var(--ui-overlay-backdrop);
|
|
532
536
|
animation: ui-dialog-backdrop-enter var(--_ui-dialog-duration, var(--ui-motion-base))
|
|
533
537
|
var(--ui-motion-ease);
|
|
534
538
|
}
|
|
535
539
|
|
|
536
|
-
:
|
|
540
|
+
:global(:scope[open][data-ui-backdrop-hidden]:where([data-hn-ui-dialog])::backdrop) {
|
|
537
541
|
background-color: transparent;
|
|
538
542
|
animation: none;
|
|
539
543
|
transition: none;
|