@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/UiMeter.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'
|
|
@@ -784,7 +784,7 @@ const guardedBinding7 = computed(() => {
|
|
|
784
784
|
})
|
|
785
785
|
checkHydratedRoot('span', 'ui-meter')
|
|
786
786
|
|
|
787
|
-
/** The values the styles' :host
|
|
787
|
+
/** The values the styles' :host() prop and state rules test. */
|
|
788
788
|
const hostState = computed(() =>
|
|
789
789
|
[
|
|
790
790
|
checkedProps.value.size && 'size',
|
|
@@ -802,6 +802,7 @@ const hostState = computed(() =>
|
|
|
802
802
|
<span
|
|
803
803
|
class="ui-meter"
|
|
804
804
|
v-bind="nativeAttrs($attrs)"
|
|
805
|
+
data-hn
|
|
805
806
|
:role="guarded"
|
|
806
807
|
:aria-valuemin="guardedBinding"
|
|
807
808
|
:aria-valuemax="guardedBinding2"
|
|
@@ -810,15 +811,15 @@ const hostState = computed(() =>
|
|
|
810
811
|
:aria-label="guardedBinding5"
|
|
811
812
|
:data-ui-meter-segments="guardedBinding6"
|
|
812
813
|
v-prop-validity="{ contract: propValidityContract, values: { ...props } }"
|
|
813
|
-
:data-label="reflectedProp('label', 'label', checkedProps.label, undefined, false)"
|
|
814
|
-
:data-max="reflectedProp('max', 'max', checkedProps.max, undefined, false)"
|
|
815
|
-
:data-parts="reflectedProp('parts', 'parts', checkedProps.parts, undefined, false)"
|
|
816
|
-
:data-segments="reflectedProp('segments', 'segments', checkedProps.segments, undefined, false)"
|
|
817
|
-
:data-size="reflectedProp('size', 'size', checkedProps.size, undefined, false)"
|
|
818
|
-
:data-tone="reflectedProp('tone', 'tone', checkedProps.tone, undefined, false)"
|
|
819
|
-
:data-value="reflectedProp('value', 'value', checkedProps.value, undefined, false)"
|
|
820
|
-
:data-value-text="reflectedProp('valueText', 'value-text', checkedProps.valueText, undefined, false)"
|
|
821
|
-
:data-variant="reflectedProp('variant', 'variant', checkedProps.variant, undefined, false)"
|
|
814
|
+
:data-ui-meter-prop-label="reflectedProp('label', 'label', checkedProps.label, undefined, false)"
|
|
815
|
+
:data-ui-meter-prop-max="reflectedProp('max', 'max', checkedProps.max, undefined, false)"
|
|
816
|
+
:data-ui-meter-prop-parts="reflectedProp('parts', 'parts', checkedProps.parts, undefined, false)"
|
|
817
|
+
:data-ui-meter-prop-segments="reflectedProp('segments', 'segments', checkedProps.segments, undefined, false)"
|
|
818
|
+
:data-ui-meter-prop-size="reflectedProp('size', 'size', checkedProps.size, undefined, false)"
|
|
819
|
+
:data-ui-meter-prop-tone="reflectedProp('tone', 'tone', checkedProps.tone, undefined, false)"
|
|
820
|
+
:data-ui-meter-prop-value="reflectedProp('value', 'value', checkedProps.value, undefined, false)"
|
|
821
|
+
:data-ui-meter-prop-value-text="reflectedProp('valueText', 'value-text', checkedProps.valueText, undefined, false)"
|
|
822
|
+
:data-ui-meter-prop-variant="reflectedProp('variant', 'variant', checkedProps.variant, undefined, false)"
|
|
822
823
|
:data-ui-meter-state="hostState || undefined"
|
|
823
824
|
><span
|
|
824
825
|
v-if="checkedProps.variant === 'progress'"
|
|
@@ -826,7 +827,7 @@ const hostState = computed(() =>
|
|
|
826
827
|
:style="{ 'inline-size': guardedBinding7 }"
|
|
827
828
|
></span>
|
|
828
829
|
<template v-if="checkedProps.variant === 'distribution'"><template
|
|
829
|
-
v-for="(part, index) in checkedProps.parts"
|
|
830
|
+
v-for="(part, index) in checkedProps.parts ?? []"
|
|
830
831
|
:key="index"
|
|
831
832
|
><span
|
|
832
833
|
v-if="part.value > 0 && (decimalSubtract(part.value, part.value)) === 0"
|
|
@@ -861,8 +862,8 @@ const hostState = computed(() =>
|
|
|
861
862
|
|
|
862
863
|
/* A component that sets its display still honours the hidden attribute on its root. */
|
|
863
864
|
|
|
864
|
-
@scope (.ui-meter) {
|
|
865
|
-
:
|
|
865
|
+
@scope (.ui-meter) to ([data-hn]) {
|
|
866
|
+
:global(:scope) {
|
|
866
867
|
--_meter-fill: var(--ui-text-muted);
|
|
867
868
|
|
|
868
869
|
display: inline-block;
|
|
@@ -879,12 +880,12 @@ const hostState = computed(() =>
|
|
|
879
880
|
outline: var(--ui-border-width) solid transparent;
|
|
880
881
|
}
|
|
881
882
|
|
|
882
|
-
:
|
|
883
|
+
:global(:scope[data-ui-meter-state~="size=sm"]) {
|
|
883
884
|
inline-size: var(--ui-meter-inline-size, 5rem);
|
|
884
885
|
block-size: var(--ui-space-1);
|
|
885
886
|
}
|
|
886
887
|
|
|
887
|
-
.fill {
|
|
888
|
+
:global(.fill) {
|
|
888
889
|
display: block;
|
|
889
890
|
block-size: 100%;
|
|
890
891
|
background-color: var(--_meter-fill);
|
|
@@ -892,70 +893,70 @@ const hostState = computed(() =>
|
|
|
892
893
|
box-shadow: inset 0 1px rgb(255 255 255 / 0.26), inset 0 -1px rgb(0 0 0 / 0.1);
|
|
893
894
|
}
|
|
894
895
|
|
|
895
|
-
:
|
|
896
|
+
:global(:scope[data-ui-meter-state~="tone=accent"]) {
|
|
896
897
|
--_meter-fill: var(--ui-accent-solid);
|
|
897
898
|
}
|
|
898
899
|
|
|
899
|
-
:
|
|
900
|
+
:global(:scope[data-ui-meter-state~="tone=info"]) {
|
|
900
901
|
--_meter-fill: var(--ui-info-solid);
|
|
901
902
|
}
|
|
902
903
|
|
|
903
|
-
:
|
|
904
|
+
:global(:scope[data-ui-meter-state~="tone=success"]) {
|
|
904
905
|
--_meter-fill: var(--ui-success-solid);
|
|
905
906
|
}
|
|
906
907
|
|
|
907
|
-
:
|
|
908
|
+
:global(:scope[data-ui-meter-state~="tone=warning"]) {
|
|
908
909
|
--_meter-fill: var(--ui-warning-solid);
|
|
909
910
|
}
|
|
910
911
|
|
|
911
|
-
:
|
|
912
|
+
:global(:scope[data-ui-meter-state~="tone=danger"]) {
|
|
912
913
|
--_meter-fill: var(--ui-danger-solid);
|
|
913
914
|
}
|
|
914
|
-
:
|
|
915
|
+
:global(:scope[data-ui-meter-segments="2"]) {
|
|
915
916
|
--_segments: 2;
|
|
916
917
|
}
|
|
917
918
|
|
|
918
|
-
:
|
|
919
|
+
:global(:scope[data-ui-meter-segments="3"]) {
|
|
919
920
|
--_segments: 3;
|
|
920
921
|
}
|
|
921
922
|
|
|
922
|
-
:
|
|
923
|
+
:global(:scope[data-ui-meter-segments="4"]) {
|
|
923
924
|
--_segments: 4;
|
|
924
925
|
}
|
|
925
926
|
|
|
926
|
-
:
|
|
927
|
+
:global(:scope[data-ui-meter-segments="5"]) {
|
|
927
928
|
--_segments: 5;
|
|
928
929
|
}
|
|
929
930
|
|
|
930
|
-
:
|
|
931
|
+
:global(:scope[data-ui-meter-segments="6"]) {
|
|
931
932
|
--_segments: 6;
|
|
932
933
|
}
|
|
933
934
|
|
|
934
|
-
:
|
|
935
|
+
:global(:scope[data-ui-meter-segments="7"]) {
|
|
935
936
|
--_segments: 7;
|
|
936
937
|
}
|
|
937
938
|
|
|
938
|
-
:
|
|
939
|
+
:global(:scope[data-ui-meter-segments="8"]) {
|
|
939
940
|
--_segments: 8;
|
|
940
941
|
}
|
|
941
942
|
|
|
942
|
-
:
|
|
943
|
+
:global(:scope[data-ui-meter-segments="9"]) {
|
|
943
944
|
--_segments: 9;
|
|
944
945
|
}
|
|
945
946
|
|
|
946
|
-
:
|
|
947
|
+
:global(:scope[data-ui-meter-segments="10"]) {
|
|
947
948
|
--_segments: 10;
|
|
948
949
|
}
|
|
949
950
|
|
|
950
|
-
:
|
|
951
|
+
:global(:scope[data-ui-meter-segments="11"]) {
|
|
951
952
|
--_segments: 11;
|
|
952
953
|
}
|
|
953
954
|
|
|
954
|
-
:
|
|
955
|
+
:global(:scope[data-ui-meter-segments="12"]) {
|
|
955
956
|
--_segments: 12;
|
|
956
957
|
}
|
|
957
958
|
|
|
958
|
-
:
|
|
959
|
+
:global(:scope[data-ui-meter-segments]) {
|
|
959
960
|
--_meter-gap: var(--ui-space-1);
|
|
960
961
|
--_meter-period: calc((100% + var(--_meter-gap)) / var(--_segments));
|
|
961
962
|
--_meter-segment: calc(var(--_meter-period) - var(--_meter-gap));
|
|
@@ -967,28 +968,28 @@ const hostState = computed(() =>
|
|
|
967
968
|
);
|
|
968
969
|
}
|
|
969
970
|
|
|
970
|
-
:
|
|
971
|
+
:global(:scope[data-ui-meter-state~="size=sm"][data-ui-meter-segments]) {
|
|
971
972
|
--_meter-gap: var(--ui-space-0-5);
|
|
972
973
|
}
|
|
973
|
-
:
|
|
974
|
+
:global(:scope[data-ui-meter-state~="variant=distribution"]) {
|
|
974
975
|
display: flex;
|
|
975
976
|
inline-size: 100%;
|
|
976
977
|
block-size: var(--ui-space-4);
|
|
977
978
|
gap: var(--ui-space-0-5);
|
|
978
979
|
}
|
|
979
980
|
|
|
980
|
-
:
|
|
981
|
+
:global(:scope[data-ui-meter-state~="variant=distribution"][size="sm"]) {
|
|
981
982
|
block-size: var(--ui-space-2);
|
|
982
983
|
}
|
|
983
984
|
|
|
984
|
-
.part {
|
|
985
|
+
:global(.part) {
|
|
985
986
|
flex-basis: 0;
|
|
986
987
|
min-inline-size: 0;
|
|
987
988
|
block-size: 100%;
|
|
988
989
|
}
|
|
989
990
|
|
|
990
991
|
@media (forced-colors: active) {
|
|
991
|
-
.part {
|
|
992
|
+
:global(.part) {
|
|
992
993
|
forced-color-adjust: none;
|
|
993
994
|
background: CanvasText !important;
|
|
994
995
|
outline: var(--ui-border-width) solid Canvas;
|
|
@@ -996,14 +997,14 @@ const hostState = computed(() =>
|
|
|
996
997
|
}
|
|
997
998
|
}
|
|
998
999
|
@media (forced-colors: active) {
|
|
999
|
-
.fill {
|
|
1000
|
+
:global(.fill) {
|
|
1000
1001
|
forced-color-adjust: none;
|
|
1001
1002
|
background: CanvasText;
|
|
1002
1003
|
}
|
|
1003
1004
|
|
|
1004
1005
|
/* The mask clips the track's outline, so each segment draws its own: the inset shadow draws the
|
|
1005
1006
|
top and bottom edges and the gradient the ends. */
|
|
1006
|
-
:
|
|
1007
|
+
:global(:scope[data-ui-meter-segments]) {
|
|
1007
1008
|
forced-color-adjust: none;
|
|
1008
1009
|
background: repeating-linear-gradient(
|
|
1009
1010
|
to right,
|
|
@@ -1015,7 +1016,7 @@ const hostState = computed(() =>
|
|
|
1015
1016
|
box-shadow: inset 0 0 0 1px CanvasText;
|
|
1016
1017
|
}
|
|
1017
1018
|
}
|
|
1018
|
-
:
|
|
1019
|
+
:global(:scope[hidden]) {
|
|
1019
1020
|
display: none;
|
|
1020
1021
|
}
|
|
1021
1022
|
}
|
package/vue/UiNavItem.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, useTemplateRef, watchSyncEffect } from 'vue'
|
|
4
4
|
import type { PropType } from 'vue'
|
|
@@ -236,7 +236,7 @@ const guardedBinding = computed(() => {
|
|
|
236
236
|
})
|
|
237
237
|
checkHydratedRoot((checkedProps.value.as === 'a') ? 'a' : ('button'), 'ui-nav-item')
|
|
238
238
|
|
|
239
|
-
/** The values the styles' :host
|
|
239
|
+
/** The values the styles' :host() prop and state rules test. */
|
|
240
240
|
const hostState = computed(() =>
|
|
241
241
|
[
|
|
242
242
|
checkedProps.value.variant && 'variant',
|
|
@@ -254,47 +254,57 @@ const hostState = computed(() =>
|
|
|
254
254
|
v-if="checkedProps.as === 'a'"
|
|
255
255
|
class="ui-nav-item"
|
|
256
256
|
v-bind="nativeAttrs($attrs)"
|
|
257
|
+
data-hn
|
|
258
|
+
data-hn-ui-nav-item
|
|
257
259
|
:href="checkedProps.href ?? undefined"
|
|
258
260
|
:target="checkedProps.target ?? undefined"
|
|
259
261
|
:rel="checkedProps.rel ?? undefined"
|
|
260
262
|
:aria-current="guarded"
|
|
261
263
|
v-prop-validity="{ contract: propValidityContract, values: { ...props } }"
|
|
262
|
-
:data-as="reflectedProp('as', 'as', checkedProps.as, undefined, false)"
|
|
263
|
-
:data-current="reflectedProp('current', 'current', checkedProps.current, undefined, false)"
|
|
264
|
-
:data-density="reflectedProp('density', 'density', checkedProps.density, undefined, false)"
|
|
265
|
-
:data-href="reflectedProp('href', 'href', checkedProps.href, undefined, false)"
|
|
266
|
-
:data-rel="reflectedProp('rel', 'rel', checkedProps.rel, undefined, false)"
|
|
267
|
-
:data-target="reflectedProp('target', 'target', checkedProps.target, undefined, false)"
|
|
268
|
-
:data-variant="reflectedProp('variant', 'variant', checkedProps.variant, undefined, false)"
|
|
264
|
+
:data-ui-nav-item-prop-as="reflectedProp('as', 'as', checkedProps.as, undefined, false)"
|
|
265
|
+
:data-ui-nav-item-prop-current="reflectedProp('current', 'current', checkedProps.current, undefined, false)"
|
|
266
|
+
:data-ui-nav-item-prop-density="reflectedProp('density', 'density', checkedProps.density, undefined, false)"
|
|
267
|
+
:data-ui-nav-item-prop-href="reflectedProp('href', 'href', checkedProps.href, undefined, false)"
|
|
268
|
+
:data-ui-nav-item-prop-rel="reflectedProp('rel', 'rel', checkedProps.rel, undefined, false)"
|
|
269
|
+
:data-ui-nav-item-prop-target="reflectedProp('target', 'target', checkedProps.target, undefined, false)"
|
|
270
|
+
:data-ui-nav-item-prop-variant="reflectedProp('variant', 'variant', checkedProps.variant, undefined, false)"
|
|
269
271
|
:data-ui-nav-item-state="hostState || undefined"
|
|
270
272
|
ref="@html-next/root"
|
|
271
|
-
><span class="indicator" aria-hidden="true"></span>
|
|
272
|
-
<span class="leading"><slot name="leading" /></span>
|
|
273
|
-
<span class="content"
|
|
274
|
-
|
|
275
|
-
|
|
273
|
+
><span class="indicator" aria-hidden="true" data-hn-ui-nav-item></span>
|
|
274
|
+
<span class="leading" data-hn-ui-nav-item><slot name="leading" /></span>
|
|
275
|
+
<span class="content" data-hn-ui-nav-item><span
|
|
276
|
+
class="label"
|
|
277
|
+
data-hn-ui-nav-item
|
|
278
|
+
><slot /></span>
|
|
279
|
+
<span class="description" data-hn-ui-nav-item><slot name="description" /></span></span>
|
|
280
|
+
<span class="trailing" data-hn-ui-nav-item><slot name="trailing" /></span></a>
|
|
276
281
|
<button
|
|
277
282
|
v-else
|
|
278
283
|
class="ui-nav-item"
|
|
279
284
|
type="button"
|
|
280
285
|
v-bind="nativeAttrs($attrs)"
|
|
286
|
+
data-hn
|
|
287
|
+
data-hn-ui-nav-item
|
|
281
288
|
:aria-current="guardedBinding"
|
|
282
289
|
v-prop-validity="{ contract: propValidityContract, values: { ...props } }"
|
|
283
|
-
:data-as="reflectedProp('as', 'as', checkedProps.as, undefined, false)"
|
|
284
|
-
:data-current="reflectedProp('current', 'current', checkedProps.current, undefined, false)"
|
|
285
|
-
:data-density="reflectedProp('density', 'density', checkedProps.density, undefined, false)"
|
|
286
|
-
:data-href="reflectedProp('href', 'href', checkedProps.href, undefined, false)"
|
|
287
|
-
:data-rel="reflectedProp('rel', 'rel', checkedProps.rel, undefined, false)"
|
|
288
|
-
:data-target="reflectedProp('target', 'target', checkedProps.target, undefined, false)"
|
|
289
|
-
:data-variant="reflectedProp('variant', 'variant', checkedProps.variant, undefined, false)"
|
|
290
|
+
:data-ui-nav-item-prop-as="reflectedProp('as', 'as', checkedProps.as, undefined, false)"
|
|
291
|
+
:data-ui-nav-item-prop-current="reflectedProp('current', 'current', checkedProps.current, undefined, false)"
|
|
292
|
+
:data-ui-nav-item-prop-density="reflectedProp('density', 'density', checkedProps.density, undefined, false)"
|
|
293
|
+
:data-ui-nav-item-prop-href="reflectedProp('href', 'href', checkedProps.href, undefined, false)"
|
|
294
|
+
:data-ui-nav-item-prop-rel="reflectedProp('rel', 'rel', checkedProps.rel, undefined, false)"
|
|
295
|
+
:data-ui-nav-item-prop-target="reflectedProp('target', 'target', checkedProps.target, undefined, false)"
|
|
296
|
+
:data-ui-nav-item-prop-variant="reflectedProp('variant', 'variant', checkedProps.variant, undefined, false)"
|
|
290
297
|
:data-ui-nav-item-state="hostState || undefined"
|
|
291
298
|
ref="@html-next/root"
|
|
292
299
|
>
|
|
293
|
-
<span class="indicator" aria-hidden="true"></span>
|
|
294
|
-
<span class="leading"><slot name="leading" /></span>
|
|
295
|
-
<span class="content"
|
|
296
|
-
|
|
297
|
-
|
|
300
|
+
<span class="indicator" aria-hidden="true" data-hn-ui-nav-item></span>
|
|
301
|
+
<span class="leading" data-hn-ui-nav-item><slot name="leading" /></span>
|
|
302
|
+
<span class="content" data-hn-ui-nav-item><span
|
|
303
|
+
class="label"
|
|
304
|
+
data-hn-ui-nav-item
|
|
305
|
+
><slot /></span>
|
|
306
|
+
<span class="description" data-hn-ui-nav-item><slot name="description" /></span></span>
|
|
307
|
+
<span class="trailing" data-hn-ui-nav-item><slot name="trailing" /></span>
|
|
298
308
|
</button>
|
|
299
309
|
</template>
|
|
300
310
|
|
|
@@ -337,8 +347,8 @@ const hostState = computed(() =>
|
|
|
337
347
|
|
|
338
348
|
/* A component that sets its display still honours the hidden attribute on its root. */
|
|
339
349
|
|
|
340
|
-
@scope (.ui-nav-item) {
|
|
341
|
-
:scope:where(
|
|
350
|
+
@scope (.ui-nav-item) to ([data-hn]) {
|
|
351
|
+
:global(:scope:where([data-hn-ui-nav-item])) {
|
|
342
352
|
--_indicator-width: var(--ui-nav-item-indicator-width, var(--ui-accent-line-width));
|
|
343
353
|
--_indicator-color: var(--ui-nav-item-indicator-color, var(--ui-accent));
|
|
344
354
|
position: relative;
|
|
@@ -367,31 +377,31 @@ const hostState = computed(() =>
|
|
|
367
377
|
color var(--ui-motion-fast) var(--ui-motion-ease);
|
|
368
378
|
}
|
|
369
379
|
|
|
370
|
-
:
|
|
380
|
+
:global(:scope:hover:not([aria-current]):where([data-hn-ui-nav-item])) {
|
|
371
381
|
background: var(--_ui-selection-context-surface, var(--ui-nav-hover-surface));
|
|
372
382
|
color: var(--ui-text-primary);
|
|
373
383
|
}
|
|
374
|
-
:
|
|
384
|
+
:global(:scope:focus-visible:where([data-hn-ui-nav-item])) {
|
|
375
385
|
outline: var(--ui-focus-width) solid var(--ui-focus-ring);
|
|
376
386
|
outline-offset: calc(-1 * var(--ui-focus-width));
|
|
377
387
|
}
|
|
378
388
|
|
|
379
|
-
:
|
|
389
|
+
:global(:scope[aria-current]:where([data-hn-ui-nav-item])) {
|
|
380
390
|
background: var(
|
|
381
391
|
--ui-nav-item-current-surface,
|
|
382
392
|
var(--_ui-selection-context-surface, var(--ui-selection-surface))
|
|
383
393
|
);
|
|
384
394
|
color: var(--_ui-selection-context-text, var(--ui-selection-text));
|
|
385
395
|
}
|
|
386
|
-
:
|
|
396
|
+
:global(:scope[data-ui-nav-item-state~="variant=surface"]:is(:hover, [aria-current]):where([data-hn-ui-nav-item])) {
|
|
387
397
|
box-shadow: inset 0 0 0 var(--ui-border-width)
|
|
388
398
|
var(--_ui-selection-context-border, var(--ui-selection-border));
|
|
389
399
|
}
|
|
390
400
|
|
|
391
|
-
:
|
|
401
|
+
:global(:scope[data-ui-nav-item-state~="variant=line"]:where([data-hn-ui-nav-item])) {
|
|
392
402
|
border-radius: 0;
|
|
393
403
|
}
|
|
394
|
-
.indicator {
|
|
404
|
+
:global(.indicator:where([data-hn-ui-nav-item])) {
|
|
395
405
|
position: absolute;
|
|
396
406
|
inset-block: 0;
|
|
397
407
|
inset-inline-start: 0;
|
|
@@ -399,23 +409,24 @@ const hostState = computed(() =>
|
|
|
399
409
|
border-inline-start: var(--_indicator-width) solid var(--_indicator-color);
|
|
400
410
|
}
|
|
401
411
|
|
|
402
|
-
:scope[data-ui-nav-item-state~="variant=line"][aria-current]
|
|
412
|
+
:global(:scope[data-ui-nav-item-state~="variant=line"][aria-current]
|
|
413
|
+
.indicator:where([data-hn-ui-nav-item])) {
|
|
403
414
|
display: block;
|
|
404
415
|
}
|
|
405
416
|
|
|
406
417
|
@media (forced-colors: active) {
|
|
407
418
|
/* System colors may erase the selected fill. Trace the complete surface, without
|
|
408
419
|
creating an edge stripe; the stronger keyboard focus outline keeps precedence. */
|
|
409
|
-
:
|
|
420
|
+
:global(:scope[data-ui-nav-item-state~="variant=surface"][aria-current]:not(:focus-visible):where([data-hn-ui-nav-item])) {
|
|
410
421
|
outline: var(--ui-border-width) solid Highlight;
|
|
411
422
|
outline-offset: calc(-1 * var(--ui-border-width));
|
|
412
423
|
}
|
|
413
|
-
.indicator {
|
|
424
|
+
:global(.indicator:where([data-hn-ui-nav-item])) {
|
|
414
425
|
border-inline-start-color: Highlight;
|
|
415
426
|
}
|
|
416
427
|
}
|
|
417
428
|
|
|
418
|
-
.leading, .trailing {
|
|
429
|
+
:global(.leading:where([data-hn-ui-nav-item])), :global(.trailing:where([data-hn-ui-nav-item])) {
|
|
419
430
|
display: inline-flex;
|
|
420
431
|
flex: none;
|
|
421
432
|
align-items: center;
|
|
@@ -425,7 +436,7 @@ const hostState = computed(() =>
|
|
|
425
436
|
font-size: var(--ui-nav-icon-size);
|
|
426
437
|
}
|
|
427
438
|
|
|
428
|
-
.content {
|
|
439
|
+
:global(.content:where([data-hn-ui-nav-item])) {
|
|
429
440
|
display: flex;
|
|
430
441
|
flex: 1;
|
|
431
442
|
flex-direction: column;
|
|
@@ -433,7 +444,7 @@ const hostState = computed(() =>
|
|
|
433
444
|
min-inline-size: 0;
|
|
434
445
|
}
|
|
435
446
|
|
|
436
|
-
.label, .description {
|
|
447
|
+
:global(.label:where([data-hn-ui-nav-item])), :global(.description:where([data-hn-ui-nav-item])) {
|
|
437
448
|
display: block;
|
|
438
449
|
min-inline-size: 0;
|
|
439
450
|
overflow: hidden;
|
|
@@ -441,36 +452,38 @@ const hostState = computed(() =>
|
|
|
441
452
|
white-space: nowrap;
|
|
442
453
|
}
|
|
443
454
|
|
|
444
|
-
.label {
|
|
455
|
+
:global(.label:where([data-hn-ui-nav-item])) {
|
|
445
456
|
font-size: var(--ui-font-size-md);
|
|
446
457
|
line-height: var(--ui-line-height-tight);
|
|
447
458
|
}
|
|
448
459
|
|
|
449
|
-
.description {
|
|
460
|
+
:global(.description:where([data-hn-ui-nav-item])) {
|
|
450
461
|
color: var(--ui-text-muted);
|
|
451
462
|
font-size: var(--ui-font-size-sm);
|
|
452
463
|
font-weight: var(--ui-font-normal);
|
|
453
464
|
line-height: var(--ui-line-height-tight);
|
|
454
465
|
}
|
|
455
466
|
|
|
456
|
-
:
|
|
467
|
+
:global(:scope[data-ui-nav-item-state~="density=compact"]:where([data-hn-ui-nav-item])) {
|
|
457
468
|
min-block-size: var(--ui-nav-compact-min-block-size);
|
|
458
469
|
padding-block: var(--ui-nav-compact-padding-block);
|
|
459
470
|
padding-inline: var(--ui-nav-compact-padding-inline);
|
|
460
471
|
}
|
|
461
|
-
:scope[data-ui-nav-item-state~="density=compact"] .label {
|
|
472
|
+
:global(:scope[data-ui-nav-item-state~="density=compact"] .label:where([data-hn-ui-nav-item])) {
|
|
462
473
|
font-size: var(--ui-font-size-sm);
|
|
463
474
|
}
|
|
464
475
|
|
|
465
476
|
@media (pointer: coarse) {
|
|
466
|
-
:
|
|
477
|
+
:global(:scope[data-ui-nav-item-state~="density=compact"]:where([data-hn-ui-nav-item])) {
|
|
467
478
|
min-block-size: var(--ui-control-min-block-size);
|
|
468
479
|
}
|
|
469
480
|
}
|
|
470
|
-
.leading:empty
|
|
481
|
+
:global(.leading:empty:where([data-hn-ui-nav-item])),
|
|
482
|
+
:global(.trailing:empty:where([data-hn-ui-nav-item])),
|
|
483
|
+
:global(.description:empty:where([data-hn-ui-nav-item])) {
|
|
471
484
|
display: none;
|
|
472
485
|
}
|
|
473
|
-
:
|
|
486
|
+
:global(:scope[hidden]:where([data-hn-ui-nav-item])) {
|
|
474
487
|
display: none;
|
|
475
488
|
}
|
|
476
489
|
}
|
package/vue/UiPageHeader.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('header', 'ui-page-header')
|
|
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.align && 'align',
|
|
@@ -54,15 +54,19 @@ const hostState = computed(() =>
|
|
|
54
54
|
<header
|
|
55
55
|
class="ui-page-header"
|
|
56
56
|
v-bind="nativeAttrs($attrs)"
|
|
57
|
+
data-hn
|
|
58
|
+
data-hn-ui-page-header
|
|
57
59
|
v-prop-validity="{ contract: propValidityContract, values: { ...props } }"
|
|
58
|
-
:data-align="reflectedProp('align', 'align', checkedProps.align, undefined, false)"
|
|
60
|
+
:data-ui-page-header-prop-align="reflectedProp('align', 'align', checkedProps.align, undefined, false)"
|
|
59
61
|
:data-ui-page-header-state="hostState || undefined"
|
|
60
62
|
>
|
|
61
|
-
<span class="leading"><slot name="leading" /></span>
|
|
62
|
-
<span class="copy"><span class="eyebrow"><slot
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
63
|
+
<span class="leading" data-hn-ui-page-header><slot name="leading" /></span>
|
|
64
|
+
<span class="copy" data-hn-ui-page-header><span class="eyebrow" data-hn-ui-page-header><slot
|
|
65
|
+
name="eyebrow"
|
|
66
|
+
/></span>
|
|
67
|
+
<h1 class="title" data-hn-ui-page-header><slot /></h1>
|
|
68
|
+
<span class="description" data-hn-ui-page-header><slot name="description" /></span></span>
|
|
69
|
+
<span class="actions" data-hn-ui-page-header><slot name="actions" /></span>
|
|
66
70
|
</header>
|
|
67
71
|
</template>
|
|
68
72
|
|
|
@@ -73,8 +77,8 @@ const hostState = computed(() =>
|
|
|
73
77
|
|
|
74
78
|
/* A component that sets its display still honours the hidden attribute on its root. */
|
|
75
79
|
|
|
76
|
-
@scope (.ui-page-header) {
|
|
77
|
-
:scope:where(
|
|
80
|
+
@scope (.ui-page-header) to ([data-hn]) {
|
|
81
|
+
:global(:scope:where([data-hn-ui-page-header])) {
|
|
78
82
|
display: flex;
|
|
79
83
|
flex-wrap: wrap;
|
|
80
84
|
inline-size: 100%;
|
|
@@ -83,7 +87,7 @@ const hostState = computed(() =>
|
|
|
83
87
|
min-inline-size: 0;
|
|
84
88
|
}
|
|
85
89
|
|
|
86
|
-
.leading {
|
|
90
|
+
:global(.leading:where([data-hn-ui-page-header])) {
|
|
87
91
|
display: inline-flex;
|
|
88
92
|
flex: none;
|
|
89
93
|
align-self: center;
|
|
@@ -91,7 +95,7 @@ const hostState = computed(() =>
|
|
|
91
95
|
font-size: var(--ui-font-size-2xl);
|
|
92
96
|
}
|
|
93
97
|
|
|
94
|
-
.copy {
|
|
98
|
+
:global(.copy:where([data-hn-ui-page-header])) {
|
|
95
99
|
display: flex;
|
|
96
100
|
flex: 1 1 16rem;
|
|
97
101
|
flex-direction: column;
|
|
@@ -99,7 +103,7 @@ const hostState = computed(() =>
|
|
|
99
103
|
min-inline-size: 0;
|
|
100
104
|
}
|
|
101
105
|
|
|
102
|
-
.eyebrow {
|
|
106
|
+
:global(.eyebrow:where([data-hn-ui-page-header])) {
|
|
103
107
|
color: var(--ui-text-muted);
|
|
104
108
|
font-size: var(--ui-font-size-xs);
|
|
105
109
|
font-weight: var(--ui-font-semibold);
|
|
@@ -107,7 +111,7 @@ const hostState = computed(() =>
|
|
|
107
111
|
text-transform: uppercase;
|
|
108
112
|
}
|
|
109
113
|
|
|
110
|
-
.title {
|
|
114
|
+
:global(.title:where([data-hn-ui-page-header])) {
|
|
111
115
|
margin: 0;
|
|
112
116
|
color: var(--ui-text-primary);
|
|
113
117
|
font-size: var(--ui-font-size-2xl);
|
|
@@ -116,13 +120,13 @@ const hostState = computed(() =>
|
|
|
116
120
|
overflow-wrap: anywhere;
|
|
117
121
|
}
|
|
118
122
|
|
|
119
|
-
.description {
|
|
123
|
+
:global(.description:where([data-hn-ui-page-header])) {
|
|
120
124
|
color: var(--ui-text-secondary);
|
|
121
125
|
font-size: var(--ui-font-size-md);
|
|
122
126
|
line-height: var(--ui-line-height);
|
|
123
127
|
}
|
|
124
128
|
|
|
125
|
-
.actions {
|
|
129
|
+
:global(.actions:where([data-hn-ui-page-header])) {
|
|
126
130
|
display: inline-flex;
|
|
127
131
|
flex: none;
|
|
128
132
|
flex-wrap: wrap;
|
|
@@ -130,20 +134,23 @@ const hostState = computed(() =>
|
|
|
130
134
|
gap: var(--ui-space-2);
|
|
131
135
|
}
|
|
132
136
|
|
|
133
|
-
:
|
|
137
|
+
:global(:scope[data-ui-page-header-state~="align=center"]:where([data-hn-ui-page-header])) {
|
|
134
138
|
flex-direction: column;
|
|
135
139
|
text-align: center;
|
|
136
140
|
}
|
|
137
141
|
|
|
138
|
-
:scope[data-ui-page-header-state~="align=center"] .copy {
|
|
142
|
+
:global(:scope[data-ui-page-header-state~="align=center"] .copy:where([data-hn-ui-page-header])) {
|
|
139
143
|
align-items: center;
|
|
140
144
|
flex-basis: auto;
|
|
141
145
|
}
|
|
142
146
|
|
|
143
|
-
.leading:empty
|
|
147
|
+
:global(.leading:empty:where([data-hn-ui-page-header])),
|
|
148
|
+
:global(.eyebrow:empty:where([data-hn-ui-page-header])),
|
|
149
|
+
:global(.description:empty:where([data-hn-ui-page-header])),
|
|
150
|
+
:global(.actions:empty:where([data-hn-ui-page-header])) {
|
|
144
151
|
display: none;
|
|
145
152
|
}
|
|
146
|
-
:
|
|
153
|
+
:global(:scope[hidden]:where([data-hn-ui-page-header])) {
|
|
147
154
|
display: none;
|
|
148
155
|
}
|
|
149
156
|
}
|