@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/UiPopover.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, watchSyncEffect } from 'vue'
|
|
4
4
|
import type { PropType } from 'vue'
|
|
@@ -177,7 +177,7 @@ const internalOpen = ref(false)
|
|
|
177
177
|
provide('html-next:ui-popover:internalOpen', internalOpen)
|
|
178
178
|
checkHydratedRoot('span', 'ui-popover')
|
|
179
179
|
|
|
180
|
-
/** The values the styles' :host
|
|
180
|
+
/** The values the styles' :host() prop and state rules test. */
|
|
181
181
|
const hostState = computed(() =>
|
|
182
182
|
[
|
|
183
183
|
internalOpen.value && 'internalOpen',
|
|
@@ -238,14 +238,16 @@ useComponentHost(() => import('../components/ui-popover/ui-popover.js'), {
|
|
|
238
238
|
<span
|
|
239
239
|
class="ui-popover"
|
|
240
240
|
v-bind="nativeAttrs($attrs)"
|
|
241
|
+
data-hn
|
|
242
|
+
data-hn-ui-popover
|
|
241
243
|
v-prop-validity="{ contract: propValidityContract, values: { ...props } }"
|
|
242
|
-
:data-for="reflectedProp('for', 'for', checkedProps.for, undefined, false)"
|
|
243
|
-
:data-open="reflectedProp('open', 'open', checkedProps.open, undefined, false)"
|
|
244
|
-
:data-placement="reflectedProp('placement', 'placement', checkedProps.placement, undefined, false)"
|
|
245
|
-
:data-size="reflectedProp('size', 'size', checkedProps.size, undefined, false)"
|
|
244
|
+
:data-ui-popover-prop-for="reflectedProp('for', 'for', checkedProps.for, undefined, false)"
|
|
245
|
+
:data-ui-popover-prop-open="reflectedProp('open', 'open', checkedProps.open, undefined, false)"
|
|
246
|
+
:data-ui-popover-prop-placement="reflectedProp('placement', 'placement', checkedProps.placement, undefined, false)"
|
|
247
|
+
:data-ui-popover-prop-size="reflectedProp('size', 'size', checkedProps.size, undefined, false)"
|
|
246
248
|
:data-ui-popover-state="hostState || undefined"
|
|
247
249
|
ref="root"
|
|
248
|
-
><div class="surface"><slot /></div></span>
|
|
250
|
+
><div class="surface" data-hn-ui-popover><slot /></div></span>
|
|
249
251
|
</template>
|
|
250
252
|
|
|
251
253
|
<style scoped>
|
|
@@ -278,8 +280,8 @@ useComponentHost(() => import('../components/ui-popover/ui-popover.js'), {
|
|
|
278
280
|
syntax: "*";
|
|
279
281
|
inherits: false;
|
|
280
282
|
}
|
|
281
|
-
@scope (.ui-popover) {
|
|
282
|
-
:scope:where(
|
|
283
|
+
@scope (.ui-popover) to ([data-hn]) {
|
|
284
|
+
:global(:scope:where([data-hn-ui-popover])) {
|
|
283
285
|
--_ui-popover-surface: var(--ui-popover-surface);
|
|
284
286
|
--_ui-popover-border: var(--ui-popover-border);
|
|
285
287
|
--_ui-popover-radius: var(--ui-popover-radius);
|
|
@@ -300,7 +302,7 @@ useComponentHost(() => import('../components/ui-popover/ui-popover.js'), {
|
|
|
300
302
|
box-shadow: none;
|
|
301
303
|
}
|
|
302
304
|
|
|
303
|
-
.surface {
|
|
305
|
+
:global(.surface:where([data-hn-ui-popover])) {
|
|
304
306
|
box-sizing: border-box;
|
|
305
307
|
max-inline-size: inherit;
|
|
306
308
|
max-block-size: inherit;
|
|
@@ -316,11 +318,11 @@ useComponentHost(() => import('../components/ui-popover/ui-popover.js'), {
|
|
|
316
318
|
);
|
|
317
319
|
}
|
|
318
320
|
|
|
319
|
-
:
|
|
321
|
+
:global(:scope:not([data-ui-popover-state~="internalOpen"]):where([data-hn-ui-popover])) {
|
|
320
322
|
display: none;
|
|
321
323
|
}
|
|
322
324
|
|
|
323
|
-
:
|
|
325
|
+
:global(:scope[popover]:where([data-hn-ui-popover])) {
|
|
324
326
|
position: fixed;
|
|
325
327
|
inset: auto;
|
|
326
328
|
margin: 0;
|
|
@@ -333,37 +335,37 @@ useComponentHost(() => import('../components/ui-popover/ui-popover.js'), {
|
|
|
333
335
|
overlay var(--ui-motion-fast) allow-discrete;
|
|
334
336
|
}
|
|
335
337
|
|
|
336
|
-
:
|
|
338
|
+
:global(:scope[popover]:popover-open:where([data-hn-ui-popover])) {
|
|
337
339
|
opacity: 1;
|
|
338
340
|
transform: translateY(0) scale(1);
|
|
339
341
|
}
|
|
340
342
|
|
|
341
343
|
@starting-style {
|
|
342
|
-
:
|
|
344
|
+
:global(:scope[popover]:popover-open:where([data-hn-ui-popover])) {
|
|
343
345
|
opacity: 0;
|
|
344
346
|
transform: translateY(-4px) scale(0.99);
|
|
345
347
|
}
|
|
346
348
|
}
|
|
347
349
|
|
|
348
|
-
:
|
|
350
|
+
:global(:scope[data-ui-popover-state~="size=sm"]:where([data-hn-ui-popover])) {
|
|
349
351
|
inline-size: min(22rem, calc(100vw - var(--ui-space-2) * 2));
|
|
350
352
|
max-inline-size: min(22rem, calc(100vw - var(--ui-space-2) * 2));
|
|
351
353
|
}
|
|
352
|
-
:
|
|
354
|
+
:global(:scope[data-ui-popover-state~="size=md"]:where([data-hn-ui-popover])) {
|
|
353
355
|
inline-size: min(28rem, calc(100vw - var(--ui-space-2) * 2));
|
|
354
356
|
max-inline-size: min(28rem, calc(100vw - var(--ui-space-2) * 2));
|
|
355
357
|
}
|
|
356
|
-
:
|
|
358
|
+
:global(:scope[data-ui-popover-state~="size=lg"]:where([data-hn-ui-popover])) {
|
|
357
359
|
inline-size: min(36rem, calc(100vw - var(--ui-space-2) * 2));
|
|
358
360
|
max-inline-size: min(36rem, calc(100vw - var(--ui-space-2) * 2));
|
|
359
361
|
}
|
|
360
362
|
|
|
361
|
-
:
|
|
363
|
+
:global(:scope[hidden]:where([data-hn-ui-popover])) {
|
|
362
364
|
display: none;
|
|
363
365
|
}
|
|
364
366
|
|
|
365
367
|
@media (prefers-reduced-motion: reduce) {
|
|
366
|
-
:
|
|
368
|
+
:global(:scope[popover]:where([data-hn-ui-popover])) {
|
|
367
369
|
transition: none;
|
|
368
370
|
}
|
|
369
371
|
}
|
package/vue/UiRadio.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'
|
|
@@ -155,7 +155,7 @@ const internalChecked = ref(false)
|
|
|
155
155
|
provide('html-next:ui-radio:internalChecked', internalChecked)
|
|
156
156
|
checkHydratedRoot('label', 'ui-radio')
|
|
157
157
|
|
|
158
|
-
/** The values the styles' :host
|
|
158
|
+
/** The values the styles' :host() prop and state rules test. */
|
|
159
159
|
const hostState = computed(() =>
|
|
160
160
|
[
|
|
161
161
|
checkedProps.value.disabled && 'disabled',
|
|
@@ -213,17 +213,20 @@ useComponentHost(() => import('../components/ui-radio/ui-radio.js'), {
|
|
|
213
213
|
<label
|
|
214
214
|
class="ui-radio"
|
|
215
215
|
v-bind="nativeAttrs($attrs)"
|
|
216
|
+
data-hn
|
|
217
|
+
data-hn-ui-radio
|
|
216
218
|
v-prop-validity="{ contract: propValidityContract, values: { ...props } }"
|
|
217
|
-
:data-checked="reflectedProp('checked', 'checked', checkedProps.checked, undefined, false)"
|
|
218
|
-
:data-disabled="reflectedProp('disabled', 'disabled', checkedProps.disabled, undefined, false)"
|
|
219
|
-
:data-name="reflectedProp('name', 'name', checkedProps.name, undefined, false)"
|
|
220
|
-
:data-required="reflectedProp('required', 'required', checkedProps.required, undefined, false)"
|
|
221
|
-
:data-size="reflectedProp('size', 'size', checkedProps.size, undefined, false)"
|
|
222
|
-
:data-value="reflectedProp('value', 'value', checkedProps.value, undefined, false)"
|
|
219
|
+
:data-ui-radio-prop-checked="reflectedProp('checked', 'checked', checkedProps.checked, undefined, false)"
|
|
220
|
+
:data-ui-radio-prop-disabled="reflectedProp('disabled', 'disabled', checkedProps.disabled, undefined, false)"
|
|
221
|
+
:data-ui-radio-prop-name="reflectedProp('name', 'name', checkedProps.name, undefined, false)"
|
|
222
|
+
:data-ui-radio-prop-required="reflectedProp('required', 'required', checkedProps.required, undefined, false)"
|
|
223
|
+
:data-ui-radio-prop-size="reflectedProp('size', 'size', checkedProps.size, undefined, false)"
|
|
224
|
+
:data-ui-radio-prop-value="reflectedProp('value', 'value', checkedProps.value, undefined, false)"
|
|
223
225
|
:data-ui-radio-state="hostState || undefined"
|
|
224
226
|
ref="root"
|
|
225
227
|
><input
|
|
226
228
|
type="radio"
|
|
229
|
+
data-hn-ui-radio
|
|
227
230
|
v-bind-control="{
|
|
228
231
|
tag: 'input',
|
|
229
232
|
name: 'checked',
|
|
@@ -237,8 +240,8 @@ useComponentHost(() => import('../components/ui-radio/ui-radio.js'), {
|
|
|
237
240
|
:name="checkedProps.name ?? undefined"
|
|
238
241
|
ref="inputElement"
|
|
239
242
|
>
|
|
240
|
-
<span class="text"><span class="label"><slot /></span>
|
|
241
|
-
<span class="description" aria-hidden="true" ref="descriptionElement"><slot
|
|
243
|
+
<span class="text" data-hn-ui-radio><span class="label" data-hn-ui-radio><slot /></span>
|
|
244
|
+
<span class="description" aria-hidden="true" data-hn-ui-radio ref="descriptionElement"><slot
|
|
242
245
|
name="description"
|
|
243
246
|
/></span></span></label>
|
|
244
247
|
</template>
|
|
@@ -262,8 +265,8 @@ useComponentHost(() => import('../components/ui-radio/ui-radio.js'), {
|
|
|
262
265
|
|
|
263
266
|
/* A component that sets its display still honours the hidden attribute on its root. */
|
|
264
267
|
|
|
265
|
-
@scope (.ui-radio) {
|
|
266
|
-
:scope:where(
|
|
268
|
+
@scope (.ui-radio) to ([data-hn]) {
|
|
269
|
+
:global(:scope:where([data-hn-ui-radio])) {
|
|
267
270
|
/* Hooks do not inherit, so the parts below read them from the root. */
|
|
268
271
|
--_ui-radio-size: var(--ui-radio-size);
|
|
269
272
|
|
|
@@ -274,29 +277,29 @@ useComponentHost(() => import('../components/ui-radio/ui-radio.js'), {
|
|
|
274
277
|
color: var(--ui-text-primary);
|
|
275
278
|
cursor: pointer;
|
|
276
279
|
}
|
|
277
|
-
.text {
|
|
280
|
+
:global(.text:where([data-hn-ui-radio])) {
|
|
278
281
|
display: flex;
|
|
279
282
|
flex-direction: column;
|
|
280
283
|
gap: var(--ui-space-1);
|
|
281
284
|
min-inline-size: 0;
|
|
282
285
|
}
|
|
283
286
|
|
|
284
|
-
.label {
|
|
287
|
+
:global(.label:where([data-hn-ui-radio])) {
|
|
285
288
|
min-inline-size: 0;
|
|
286
289
|
line-height: var(--ui-line-height-md);
|
|
287
290
|
}
|
|
288
291
|
|
|
289
|
-
.description {
|
|
292
|
+
:global(.description:where([data-hn-ui-radio])) {
|
|
290
293
|
color: var(--ui-text-secondary);
|
|
291
294
|
font-size: var(--ui-font-size-sm);
|
|
292
295
|
line-height: var(--ui-line-height);
|
|
293
296
|
}
|
|
294
297
|
|
|
295
|
-
.description:empty {
|
|
298
|
+
:global(.description:empty:where([data-hn-ui-radio])) {
|
|
296
299
|
display: none;
|
|
297
300
|
}
|
|
298
301
|
|
|
299
|
-
input {
|
|
302
|
+
:global(input:where([data-hn-ui-radio])) {
|
|
300
303
|
flex: 0 0 auto;
|
|
301
304
|
inline-size: var(--_ui-radio-size, 1.125rem);
|
|
302
305
|
block-size: var(--_ui-radio-size, 1.125rem);
|
|
@@ -305,48 +308,49 @@ useComponentHost(() => import('../components/ui-radio/ui-radio.js'), {
|
|
|
305
308
|
cursor: pointer;
|
|
306
309
|
}
|
|
307
310
|
|
|
308
|
-
input:focus-visible {
|
|
311
|
+
:global(input:focus-visible:where([data-hn-ui-radio])) {
|
|
309
312
|
outline: var(--ui-focus-width) solid var(--ui-focus-ring, var(--ui-accent-solid));
|
|
310
313
|
outline-offset: var(--ui-focus-width);
|
|
311
314
|
}
|
|
312
315
|
|
|
313
|
-
:
|
|
316
|
+
:global(:scope[data-ui-radio-state~="disabled"]:where([data-hn-ui-radio])) {
|
|
314
317
|
color: var(--ui-disabled-text);
|
|
315
318
|
cursor: not-allowed;
|
|
316
319
|
}
|
|
317
|
-
:scope[data-ui-radio-state~="disabled"] .description {
|
|
320
|
+
:global(:scope[data-ui-radio-state~="disabled"] .description:where([data-hn-ui-radio])) {
|
|
318
321
|
color: var(--ui-disabled-text);
|
|
319
322
|
}
|
|
320
|
-
:scope[data-ui-radio-state~="disabled"] input {
|
|
323
|
+
:global(:scope[data-ui-radio-state~="disabled"] input:where([data-hn-ui-radio])) {
|
|
321
324
|
cursor: not-allowed;
|
|
322
325
|
}
|
|
323
|
-
:
|
|
326
|
+
:global(:scope[data-ui-radio-state~="size=sm"]:where([data-hn-ui-radio])) {
|
|
324
327
|
--_font: var(--ui-font-size-sm);
|
|
325
328
|
--_row: var(--ui-control-size-sm);
|
|
326
329
|
}
|
|
327
330
|
|
|
328
|
-
:
|
|
331
|
+
:global(:scope[data-ui-radio-state~="size=lg"]:where([data-hn-ui-radio])) {
|
|
329
332
|
--_font: var(--ui-font-size-md);
|
|
330
333
|
--_row: var(--ui-control-size-lg);
|
|
331
334
|
}
|
|
332
335
|
|
|
333
|
-
:
|
|
334
|
-
:
|
|
336
|
+
:global(:scope[data-ui-radio-state~="size=sm"]:where([data-hn-ui-radio])),
|
|
337
|
+
:global(:scope[data-ui-radio-state~="size=lg"]:where([data-hn-ui-radio])) {
|
|
335
338
|
--_line: calc(var(--_font) * var(--ui-line-height-md));
|
|
336
339
|
font-size: var(--_font);
|
|
337
340
|
padding-block: calc((var(--_row) - var(--_line)) / 2);
|
|
338
341
|
}
|
|
339
342
|
|
|
340
|
-
:scope[data-ui-radio-state~="size=sm"] input
|
|
343
|
+
:global(:scope[data-ui-radio-state~="size=sm"] input:where([data-hn-ui-radio])),
|
|
344
|
+
:global(:scope[data-ui-radio-state~="size=lg"] input:where([data-hn-ui-radio])) {
|
|
341
345
|
margin-top: calc((var(--_line) - var(--_ui-radio-size, 1.125rem)) / 2 + 1px);
|
|
342
346
|
}
|
|
343
347
|
|
|
344
348
|
@media (pointer: coarse) {
|
|
345
|
-
:
|
|
349
|
+
:global(:scope[data-ui-radio-state~="size=sm"]:where([data-hn-ui-radio])) {
|
|
346
350
|
--_row: var(--ui-control-min-block-size);
|
|
347
351
|
}
|
|
348
352
|
}
|
|
349
|
-
:
|
|
353
|
+
:global(:scope[hidden]:where([data-hn-ui-radio])) {
|
|
350
354
|
display: none;
|
|
351
355
|
}
|
|
352
356
|
}
|
package/vue/UiRadioGroup.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, watchSyncEffect } from 'vue'
|
|
4
4
|
import type { PropType } from 'vue'
|
|
@@ -201,7 +201,7 @@ const internalValue = ref('')
|
|
|
201
201
|
provide('html-next:ui-radio-group:internalValue', internalValue)
|
|
202
202
|
checkHydratedRoot('fieldset', 'ui-radio-group')
|
|
203
203
|
|
|
204
|
-
/** The values the styles' :host
|
|
204
|
+
/** The values the styles' :host() prop and state rules test. */
|
|
205
205
|
const hostState = computed(() =>
|
|
206
206
|
[
|
|
207
207
|
checkedProps.value.invalid && 'invalid',
|
|
@@ -281,22 +281,27 @@ useComponentHost(() => import('../components/ui-radio-group/ui-radio-group.js'),
|
|
|
281
281
|
class="ui-radio-group"
|
|
282
282
|
role="radiogroup"
|
|
283
283
|
v-bind="nativeAttrs($attrs)"
|
|
284
|
+
data-hn
|
|
285
|
+
data-hn-ui-radio-group
|
|
284
286
|
:aria-required="checkedProps.required ?? undefined"
|
|
285
287
|
:aria-invalid="checkedProps.invalid ?? undefined"
|
|
286
288
|
:disabled="checkedProps.disabled ?? undefined"
|
|
287
289
|
v-prop-validity="{ contract: propValidityContract, values: { ...props } }"
|
|
288
|
-
:data-disabled="reflectedProp('disabled', 'disabled', checkedProps.disabled, undefined, false)"
|
|
289
|
-
:data-invalid="reflectedProp('invalid', 'invalid', checkedProps.invalid, undefined, false)"
|
|
290
|
-
:data-label="reflectedProp('label', 'label', checkedProps.label, undefined, false)"
|
|
291
|
-
:data-label-visibility="reflectedProp('labelVisibility', 'label-visibility', checkedProps.labelVisibility, undefined, false)"
|
|
292
|
-
:data-name="reflectedProp('name', 'name', checkedProps.name, undefined, false)"
|
|
293
|
-
:data-orientation="reflectedProp('orientation', 'orientation', checkedProps.orientation, undefined, false)"
|
|
294
|
-
:data-required="reflectedProp('required', 'required', checkedProps.required, undefined, false)"
|
|
295
|
-
:data-value="reflectedProp('value', 'value', checkedProps.value, undefined, false)"
|
|
290
|
+
:data-ui-radio-group-prop-disabled="reflectedProp('disabled', 'disabled', checkedProps.disabled, undefined, false)"
|
|
291
|
+
:data-ui-radio-group-prop-invalid="reflectedProp('invalid', 'invalid', checkedProps.invalid, undefined, false)"
|
|
292
|
+
:data-ui-radio-group-prop-label="reflectedProp('label', 'label', checkedProps.label, undefined, false)"
|
|
293
|
+
:data-ui-radio-group-prop-label-visibility="reflectedProp('labelVisibility', 'label-visibility', checkedProps.labelVisibility, undefined, false)"
|
|
294
|
+
:data-ui-radio-group-prop-name="reflectedProp('name', 'name', checkedProps.name, undefined, false)"
|
|
295
|
+
:data-ui-radio-group-prop-orientation="reflectedProp('orientation', 'orientation', checkedProps.orientation, undefined, false)"
|
|
296
|
+
:data-ui-radio-group-prop-required="reflectedProp('required', 'required', checkedProps.required, undefined, false)"
|
|
297
|
+
:data-ui-radio-group-prop-value="reflectedProp('value', 'value', checkedProps.value, undefined, false)"
|
|
296
298
|
:data-ui-radio-group-state="hostState || undefined"
|
|
297
299
|
ref="root"
|
|
298
300
|
>
|
|
299
|
-
<legend
|
|
301
|
+
<legend
|
|
302
|
+
data-hn-ui-radio-group
|
|
303
|
+
:class="{ 'sr-only': checkedProps.labelVisibility === 'sr-only' }"
|
|
304
|
+
>
|
|
300
305
|
{{ checkedProps.label }}
|
|
301
306
|
</legend>
|
|
302
307
|
<slot />
|
|
@@ -311,8 +316,8 @@ useComponentHost(() => import('../components/ui-radio-group/ui-radio-group.js'),
|
|
|
311
316
|
|
|
312
317
|
/* A component that sets its display still honours the hidden attribute on its root. */
|
|
313
318
|
|
|
314
|
-
@scope (.ui-radio-group) {
|
|
315
|
-
:scope:where(
|
|
319
|
+
@scope (.ui-radio-group) to ([data-hn]) {
|
|
320
|
+
:global(:scope:where([data-hn-ui-radio-group])) {
|
|
316
321
|
--_ui-radio-group-invalid-text: var(
|
|
317
322
|
--ui-radio-group-invalid-text,
|
|
318
323
|
var(--ui-field-danger, var(--ui-danger-solid))
|
|
@@ -326,7 +331,7 @@ useComponentHost(() => import('../components/ui-radio-group/ui-radio-group.js'),
|
|
|
326
331
|
border: 0;
|
|
327
332
|
}
|
|
328
333
|
|
|
329
|
-
legend {
|
|
334
|
+
:global(legend:where([data-hn-ui-radio-group])) {
|
|
330
335
|
float: inline-start;
|
|
331
336
|
inline-size: 100%;
|
|
332
337
|
margin: 0 0 var(--ui-space-2);
|
|
@@ -335,11 +340,11 @@ useComponentHost(() => import('../components/ui-radio-group/ui-radio-group.js'),
|
|
|
335
340
|
font-weight: var(--ui-font-medium);
|
|
336
341
|
}
|
|
337
342
|
|
|
338
|
-
legend +
|
|
343
|
+
:global(legend + *:where([data-hn-ui-radio-group])) {
|
|
339
344
|
clear: both;
|
|
340
345
|
}
|
|
341
346
|
|
|
342
|
-
legend.sr-only {
|
|
347
|
+
:global(legend.sr-only:where([data-hn-ui-radio-group])) {
|
|
343
348
|
position: absolute;
|
|
344
349
|
inline-size: 1px;
|
|
345
350
|
block-size: 1px;
|
|
@@ -348,15 +353,15 @@ useComponentHost(() => import('../components/ui-radio-group/ui-radio-group.js'),
|
|
|
348
353
|
white-space: nowrap;
|
|
349
354
|
}
|
|
350
355
|
|
|
351
|
-
:scope[data-ui-radio-group-state~="invalid"] legend {
|
|
356
|
+
:global(:scope[data-ui-radio-group-state~="invalid"] legend:where([data-hn-ui-radio-group])) {
|
|
352
357
|
color: var(--_ui-radio-group-invalid-text);
|
|
353
358
|
}
|
|
354
359
|
|
|
355
|
-
:
|
|
360
|
+
:global(:scope[data-ui-radio-group-state~="orientation=vertical"]:where([data-hn-ui-radio-group])) {
|
|
356
361
|
display: inline-grid;
|
|
357
362
|
justify-items: start;
|
|
358
363
|
}
|
|
359
|
-
:
|
|
364
|
+
:global(:scope[hidden]:where([data-hn-ui-radio-group])) {
|
|
360
365
|
display: none;
|
|
361
366
|
}
|
|
362
367
|
}
|
package/vue/UiReel.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-reel')
|
|
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.gap && 'gap',
|
|
@@ -92,10 +92,12 @@ const hostState = computed(() =>
|
|
|
92
92
|
role="region"
|
|
93
93
|
tabindex="0"
|
|
94
94
|
v-bind="nativeAttrs($attrs)"
|
|
95
|
+
data-hn
|
|
96
|
+
data-hn-ui-reel
|
|
95
97
|
v-prop-validity="{ contract: propValidityContract, values: { ...props } }"
|
|
96
|
-
:data-gap="reflectedProp('gap', 'gap', checkedProps.gap, undefined, false)"
|
|
97
|
-
:data-item-width="reflectedProp('itemWidth', 'item-width', checkedProps.itemWidth, undefined, false)"
|
|
98
|
-
:data-snap="reflectedProp('snap', 'snap', checkedProps.snap, undefined, false)"
|
|
98
|
+
:data-ui-reel-prop-gap="reflectedProp('gap', 'gap', checkedProps.gap, undefined, false)"
|
|
99
|
+
:data-ui-reel-prop-item-width="reflectedProp('itemWidth', 'item-width', checkedProps.itemWidth, undefined, false)"
|
|
100
|
+
:data-ui-reel-prop-snap="reflectedProp('snap', 'snap', checkedProps.snap, undefined, false)"
|
|
99
101
|
:data-ui-reel-state="hostState || undefined"
|
|
100
102
|
>
|
|
101
103
|
<slot />
|
|
@@ -117,8 +119,8 @@ const hostState = computed(() =>
|
|
|
117
119
|
|
|
118
120
|
/* A component that sets its display still honours the hidden attribute on its root. */
|
|
119
121
|
|
|
120
|
-
@scope (.ui-reel) {
|
|
121
|
-
:scope:where(
|
|
122
|
+
@scope (.ui-reel) to ([data-hn]) {
|
|
123
|
+
:global(:scope:where([data-hn-ui-reel])) {
|
|
122
124
|
/* Hooks do not inherit, so the parts below read them from the root. */
|
|
123
125
|
--_ui-reel-item-width: var(--ui-reel-item-width);
|
|
124
126
|
|
|
@@ -134,7 +136,7 @@ const hostState = computed(() =>
|
|
|
134
136
|
overflow-y: hidden;
|
|
135
137
|
overscroll-behavior-inline: contain;
|
|
136
138
|
}
|
|
137
|
-
:scope:where(
|
|
139
|
+
:global(:scope:where([data-hn-ui-reel])) {
|
|
138
140
|
--_ui-scroll-fade-direction: to right;
|
|
139
141
|
--_ui-scroll-fade-size: var(--ui-scroll-fade-size, 24px);
|
|
140
142
|
mask-image: linear-gradient(
|
|
@@ -157,49 +159,49 @@ const hostState = computed(() =>
|
|
|
157
159
|
calc(100% - var(--_ui-scroll-fade-size)) 100%;
|
|
158
160
|
}
|
|
159
161
|
|
|
160
|
-
:
|
|
162
|
+
:global(:scope:dir(rtl):where([data-hn-ui-reel])) {
|
|
161
163
|
--_ui-scroll-fade-direction: to left;
|
|
162
164
|
}
|
|
163
165
|
|
|
164
|
-
:scope > :
|
|
166
|
+
:global(:scope > :where(:not([data-hn-ui-reel])):is(*)) {
|
|
165
167
|
min-inline-size: 0;
|
|
166
168
|
flex: 0 0 var(--_ui-reel-item-width, var(--_reel-item-width));
|
|
167
169
|
}
|
|
168
170
|
|
|
169
|
-
:
|
|
171
|
+
:global(:scope[data-ui-reel-state~="gap=xs"]:where([data-hn-ui-reel])) {
|
|
170
172
|
--_reel-gap: var(--ui-space-2);
|
|
171
173
|
}
|
|
172
|
-
:
|
|
174
|
+
:global(:scope[data-ui-reel-state~="gap=s"]:where([data-hn-ui-reel])) {
|
|
173
175
|
--_reel-gap: var(--ui-space-3);
|
|
174
176
|
}
|
|
175
|
-
:
|
|
177
|
+
:global(:scope[data-ui-reel-state~="gap=m"]:where([data-hn-ui-reel])) {
|
|
176
178
|
--_reel-gap: var(--ui-space-4);
|
|
177
179
|
}
|
|
178
|
-
:
|
|
180
|
+
:global(:scope[data-ui-reel-state~="gap=l"]:where([data-hn-ui-reel])) {
|
|
179
181
|
--_reel-gap: var(--ui-space-5);
|
|
180
182
|
}
|
|
181
|
-
:
|
|
183
|
+
:global(:scope[data-ui-reel-state~="gap=xl"]:where([data-hn-ui-reel])) {
|
|
182
184
|
--_reel-gap: var(--ui-space-6);
|
|
183
185
|
}
|
|
184
|
-
:
|
|
186
|
+
:global(:scope[data-ui-reel-state~="itemWidth=sm"]:where([data-hn-ui-reel])) {
|
|
185
187
|
--_reel-item-width: 12rem;
|
|
186
188
|
}
|
|
187
|
-
:
|
|
189
|
+
:global(:scope[data-ui-reel-state~="itemWidth=md"]:where([data-hn-ui-reel])) {
|
|
188
190
|
--_reel-item-width: 16rem;
|
|
189
191
|
}
|
|
190
|
-
:
|
|
192
|
+
:global(:scope[data-ui-reel-state~="itemWidth=lg"]:where([data-hn-ui-reel])) {
|
|
191
193
|
--_reel-item-width: 20rem;
|
|
192
194
|
}
|
|
193
|
-
:
|
|
195
|
+
:global(:scope[data-ui-reel-state~="snap"]:where([data-hn-ui-reel])) {
|
|
194
196
|
scroll-snap-type: inline mandatory;
|
|
195
197
|
}
|
|
196
|
-
:scope[data-ui-reel-state~="snap=start"] > :
|
|
198
|
+
:global(:scope[data-ui-reel-state~="snap=start"] > :where(:not([data-hn-ui-reel])):is(*)) {
|
|
197
199
|
scroll-snap-align: start;
|
|
198
200
|
}
|
|
199
|
-
:scope[data-ui-reel-state~="snap=center"] > :
|
|
201
|
+
:global(:scope[data-ui-reel-state~="snap=center"] > :where(:not([data-hn-ui-reel])):is(*)) {
|
|
200
202
|
scroll-snap-align: center;
|
|
201
203
|
}
|
|
202
|
-
:
|
|
204
|
+
:global(:scope[hidden]:where([data-hn-ui-reel])) {
|
|
203
205
|
display: none;
|
|
204
206
|
}
|
|
205
207
|
}
|
package/vue/UiScrollArea.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, ref, useTemplateRef, watchSyncEffect } from 'vue'
|
|
4
4
|
import type { PropType } from 'vue'
|
|
@@ -131,7 +131,7 @@ const root = ref<HTMLElement | null>(null)
|
|
|
131
131
|
const contentElement = useTemplateRef<HTMLElement>('contentElement')
|
|
132
132
|
checkHydratedRoot('div', 'ui-scroll-area')
|
|
133
133
|
|
|
134
|
-
/** The values the styles' :host
|
|
134
|
+
/** The values the styles' :host() prop and state rules test. */
|
|
135
135
|
const hostState = computed(() =>
|
|
136
136
|
[
|
|
137
137
|
checkedProps.value.fill && 'fill',
|
|
@@ -175,16 +175,18 @@ useComponentHost(() => import('../components/ui-scroll-area/ui-scroll-area.js'),
|
|
|
175
175
|
<div
|
|
176
176
|
class="ui-scroll-area"
|
|
177
177
|
v-bind="nativeAttrs($attrs)"
|
|
178
|
+
data-hn
|
|
179
|
+
data-hn-ui-scroll-area
|
|
178
180
|
v-prop-validity="{ contract: propValidityContract, values: { ...props } }"
|
|
179
|
-
:data-fill="reflectedProp('fill', 'fill', checkedProps.fill, undefined, false)"
|
|
180
|
-
:data-orientation="reflectedProp('orientation', 'orientation', checkedProps.orientation, undefined, false)"
|
|
181
|
-
:data-padding="reflectedProp('padding', 'padding', checkedProps.padding, undefined, false)"
|
|
182
|
-
:data-size="reflectedProp('size', 'size', checkedProps.size, undefined, false)"
|
|
183
|
-
:data-trim="reflectedProp('trim', 'trim', checkedProps.trim, undefined, false)"
|
|
181
|
+
:data-ui-scroll-area-prop-fill="reflectedProp('fill', 'fill', checkedProps.fill, undefined, false)"
|
|
182
|
+
:data-ui-scroll-area-prop-orientation="reflectedProp('orientation', 'orientation', checkedProps.orientation, undefined, false)"
|
|
183
|
+
:data-ui-scroll-area-prop-padding="reflectedProp('padding', 'padding', checkedProps.padding, undefined, false)"
|
|
184
|
+
:data-ui-scroll-area-prop-size="reflectedProp('size', 'size', checkedProps.size, undefined, false)"
|
|
185
|
+
:data-ui-scroll-area-prop-trim="reflectedProp('trim', 'trim', checkedProps.trim, undefined, false)"
|
|
184
186
|
:data-ui-scroll-area-state="hostState || undefined"
|
|
185
187
|
ref="root"
|
|
186
188
|
>
|
|
187
|
-
<div class="content" ref="contentElement"><slot /></div>
|
|
189
|
+
<div class="content" data-hn-ui-scroll-area ref="contentElement"><slot /></div>
|
|
188
190
|
</div>
|
|
189
191
|
</template>
|
|
190
192
|
|
|
@@ -197,12 +199,12 @@ useComponentHost(() => import('../components/ui-scroll-area/ui-scroll-area.js'),
|
|
|
197
199
|
|
|
198
200
|
/* A component that sets its display still honours the hidden attribute on its root. */
|
|
199
201
|
|
|
200
|
-
@scope (.ui-scroll-area) {
|
|
201
|
-
:
|
|
202
|
+
@scope (.ui-scroll-area) to ([data-hn]) {
|
|
203
|
+
:global(:scope[data-ui-scroll-area-state~="fill"]:where([data-hn-ui-scroll-area])) {
|
|
202
204
|
flex: 1;
|
|
203
205
|
}
|
|
204
206
|
|
|
205
|
-
:scope:where(
|
|
207
|
+
:global(:scope:where([data-hn-ui-scroll-area])) {
|
|
206
208
|
display: block;
|
|
207
209
|
box-sizing: border-box;
|
|
208
210
|
min-block-size: 0;
|
|
@@ -222,50 +224,54 @@ useComponentHost(() => import('../components/ui-scroll-area/ui-scroll-area.js'),
|
|
|
222
224
|
);
|
|
223
225
|
}
|
|
224
226
|
|
|
225
|
-
.content {
|
|
227
|
+
:global(.content:where([data-hn-ui-scroll-area])) {
|
|
226
228
|
display: flow-root;
|
|
227
229
|
}
|
|
228
|
-
:scope[data-ui-scroll-area-state~="trim"]
|
|
230
|
+
:global(:scope[data-ui-scroll-area-state~="trim"]
|
|
231
|
+
.content
|
|
232
|
+
> :where(:not([data-hn-ui-scroll-area])):is(:first-child)) {
|
|
229
233
|
margin-block-start: 0;
|
|
230
234
|
}
|
|
231
235
|
|
|
232
|
-
:scope[data-ui-scroll-area-state~="trim"]
|
|
236
|
+
:global(:scope[data-ui-scroll-area-state~="trim"]
|
|
237
|
+
.content
|
|
238
|
+
> :where(:not([data-hn-ui-scroll-area])):is(:last-child)) {
|
|
233
239
|
margin-block-end: 0;
|
|
234
240
|
}
|
|
235
241
|
|
|
236
|
-
:
|
|
242
|
+
:global(:scope[data-ui-scroll-area-state~="orientation=horizontal"]:where([data-hn-ui-scroll-area])) {
|
|
237
243
|
overflow-x: auto;
|
|
238
244
|
overflow-y: hidden;
|
|
239
245
|
--_ui-scroll-fade-direction: var(--_ui-scroll-fade-inline);
|
|
240
246
|
}
|
|
241
247
|
|
|
242
|
-
:
|
|
248
|
+
:global(:scope:dir(rtl):where([data-hn-ui-scroll-area])) {
|
|
243
249
|
--_ui-scroll-fade-inline: to left;
|
|
244
250
|
}
|
|
245
251
|
|
|
246
|
-
:
|
|
252
|
+
:global(:scope[data-ui-scroll-area-state~="size=sm"]:where([data-hn-ui-scroll-area])) {
|
|
247
253
|
max-block-size: calc(9.375rem + var(--ui-scroll-fade-size, 24px));
|
|
248
254
|
}
|
|
249
|
-
:
|
|
255
|
+
:global(:scope[data-ui-scroll-area-state~="size=md"]:where([data-hn-ui-scroll-area])) {
|
|
250
256
|
max-block-size: 20rem;
|
|
251
257
|
}
|
|
252
|
-
:
|
|
258
|
+
:global(:scope[data-ui-scroll-area-state~="size=lg"]:where([data-hn-ui-scroll-area])) {
|
|
253
259
|
max-block-size: 30rem;
|
|
254
260
|
}
|
|
255
261
|
|
|
256
|
-
:
|
|
262
|
+
:global(:scope[data-ui-scroll-area-state~="padding=xs"]:where([data-hn-ui-scroll-area])) {
|
|
257
263
|
padding: var(--ui-space-2);
|
|
258
264
|
}
|
|
259
|
-
:
|
|
265
|
+
:global(:scope[data-ui-scroll-area-state~="padding=sm"]:where([data-hn-ui-scroll-area])) {
|
|
260
266
|
padding: var(--ui-space-3);
|
|
261
267
|
}
|
|
262
|
-
:
|
|
268
|
+
:global(:scope[data-ui-scroll-area-state~="padding=md"]:where([data-hn-ui-scroll-area])) {
|
|
263
269
|
padding: var(--ui-space-5);
|
|
264
270
|
}
|
|
265
|
-
:
|
|
271
|
+
:global(:scope[data-ui-scroll-area-state~="padding=lg"]:where([data-hn-ui-scroll-area])) {
|
|
266
272
|
padding: var(--ui-space-6);
|
|
267
273
|
}
|
|
268
|
-
:
|
|
274
|
+
:global(:scope[hidden]:where([data-hn-ui-scroll-area])) {
|
|
269
275
|
display: none;
|
|
270
276
|
}
|
|
271
277
|
}
|