@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/UiCheckbox.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'
|
|
@@ -205,7 +205,7 @@ const internalChecked = ref(false)
|
|
|
205
205
|
provide('html-next:ui-checkbox:internalChecked', internalChecked)
|
|
206
206
|
checkHydratedRoot('label', 'ui-checkbox')
|
|
207
207
|
|
|
208
|
-
/** The values the styles' :host
|
|
208
|
+
/** The values the styles' :host() prop and state rules test. */
|
|
209
209
|
const hostState = computed(() =>
|
|
210
210
|
[
|
|
211
211
|
checkedProps.value.invalid && 'invalid',
|
|
@@ -274,20 +274,23 @@ useComponentHost(() => import('../components/ui-checkbox/ui-checkbox.js'), {
|
|
|
274
274
|
<label
|
|
275
275
|
class="ui-checkbox"
|
|
276
276
|
v-bind="nativeAttrs($attrs)"
|
|
277
|
+
data-hn
|
|
278
|
+
data-hn-ui-checkbox
|
|
277
279
|
v-prop-validity="{ contract: propValidityContract, values: { ...props } }"
|
|
278
|
-
:data-checked="reflectedProp('checked', 'checked', checkedProps.checked, undefined, false)"
|
|
279
|
-
:data-disabled="reflectedProp('disabled', 'disabled', checkedProps.disabled, undefined, false)"
|
|
280
|
-
:data-indeterminate="reflectedProp('indeterminate', 'indeterminate', checkedProps.indeterminate, undefined, false)"
|
|
281
|
-
:data-invalid="reflectedProp('invalid', 'invalid', checkedProps.invalid, undefined, false)"
|
|
282
|
-
:data-label="reflectedProp('label', 'label', checkedProps.label, undefined, false)"
|
|
283
|
-
:data-name="reflectedProp('name', 'name', checkedProps.name, undefined, false)"
|
|
284
|
-
:data-required="reflectedProp('required', 'required', checkedProps.required, undefined, false)"
|
|
285
|
-
:data-size="reflectedProp('size', 'size', checkedProps.size, undefined, false)"
|
|
286
|
-
:data-value="reflectedProp('value', 'value', checkedProps.value, undefined, false)"
|
|
280
|
+
:data-ui-checkbox-prop-checked="reflectedProp('checked', 'checked', checkedProps.checked, undefined, false)"
|
|
281
|
+
:data-ui-checkbox-prop-disabled="reflectedProp('disabled', 'disabled', checkedProps.disabled, undefined, false)"
|
|
282
|
+
:data-ui-checkbox-prop-indeterminate="reflectedProp('indeterminate', 'indeterminate', checkedProps.indeterminate, undefined, false)"
|
|
283
|
+
:data-ui-checkbox-prop-invalid="reflectedProp('invalid', 'invalid', checkedProps.invalid, undefined, false)"
|
|
284
|
+
:data-ui-checkbox-prop-label="reflectedProp('label', 'label', checkedProps.label, undefined, false)"
|
|
285
|
+
:data-ui-checkbox-prop-name="reflectedProp('name', 'name', checkedProps.name, undefined, false)"
|
|
286
|
+
:data-ui-checkbox-prop-required="reflectedProp('required', 'required', checkedProps.required, undefined, false)"
|
|
287
|
+
:data-ui-checkbox-prop-size="reflectedProp('size', 'size', checkedProps.size, undefined, false)"
|
|
288
|
+
:data-ui-checkbox-prop-value="reflectedProp('value', 'value', checkedProps.value, undefined, false)"
|
|
287
289
|
:data-ui-checkbox-state="hostState || undefined"
|
|
288
290
|
ref="root"
|
|
289
291
|
><input
|
|
290
292
|
type="checkbox"
|
|
293
|
+
data-hn-ui-checkbox
|
|
291
294
|
v-bind-control="{
|
|
292
295
|
tag: 'input',
|
|
293
296
|
name: 'checked',
|
|
@@ -304,10 +307,13 @@ useComponentHost(() => import('../components/ui-checkbox/ui-checkbox.js'), {
|
|
|
304
307
|
:value.attr="checkedProps.value ?? undefined"
|
|
305
308
|
ref="inputElement"
|
|
306
309
|
>
|
|
307
|
-
<span class="text"><span class="label"><slot /></span>
|
|
308
|
-
<span
|
|
309
|
-
|
|
310
|
-
|
|
310
|
+
<span class="text" data-hn-ui-checkbox><span class="label" data-hn-ui-checkbox><slot /></span>
|
|
311
|
+
<span
|
|
312
|
+
class="description"
|
|
313
|
+
aria-hidden="true"
|
|
314
|
+
data-hn-ui-checkbox
|
|
315
|
+
ref="descriptionElement"
|
|
316
|
+
><slot name="description" /></span></span></label>
|
|
311
317
|
</template>
|
|
312
318
|
|
|
313
319
|
<style scoped>
|
|
@@ -350,8 +356,8 @@ useComponentHost(() => import('../components/ui-checkbox/ui-checkbox.js'), {
|
|
|
350
356
|
|
|
351
357
|
/* A component that sets its display still honours the hidden attribute on its root. */
|
|
352
358
|
|
|
353
|
-
@scope (.ui-checkbox) {
|
|
354
|
-
:scope:where(
|
|
359
|
+
@scope (.ui-checkbox) to ([data-hn]) {
|
|
360
|
+
:global(:scope:where([data-hn-ui-checkbox])) {
|
|
355
361
|
/* Hooks do not inherit, so the parts below read them from the root. */
|
|
356
362
|
--_ui-checkbox-size: var(--ui-checkbox-size);
|
|
357
363
|
--_ui-checkbox-invalid-border: var(
|
|
@@ -366,29 +372,29 @@ useComponentHost(() => import('../components/ui-checkbox/ui-checkbox.js'), {
|
|
|
366
372
|
color: var(--ui-text-primary);
|
|
367
373
|
cursor: pointer;
|
|
368
374
|
}
|
|
369
|
-
.text {
|
|
375
|
+
:global(.text:where([data-hn-ui-checkbox])) {
|
|
370
376
|
display: flex;
|
|
371
377
|
flex-direction: column;
|
|
372
378
|
gap: var(--ui-space-1);
|
|
373
379
|
min-inline-size: 0;
|
|
374
380
|
}
|
|
375
381
|
|
|
376
|
-
.label {
|
|
382
|
+
:global(.label:where([data-hn-ui-checkbox])) {
|
|
377
383
|
min-inline-size: 0;
|
|
378
384
|
line-height: var(--ui-line-height-md);
|
|
379
385
|
}
|
|
380
386
|
|
|
381
|
-
.description {
|
|
387
|
+
:global(.description:where([data-hn-ui-checkbox])) {
|
|
382
388
|
color: var(--ui-text-secondary);
|
|
383
389
|
font-size: var(--ui-font-size-sm);
|
|
384
390
|
line-height: var(--ui-line-height);
|
|
385
391
|
}
|
|
386
392
|
|
|
387
|
-
.description:empty {
|
|
393
|
+
:global(.description:empty:where([data-hn-ui-checkbox])) {
|
|
388
394
|
display: none;
|
|
389
395
|
}
|
|
390
396
|
|
|
391
|
-
input {
|
|
397
|
+
:global(input:where([data-hn-ui-checkbox])) {
|
|
392
398
|
appearance: none;
|
|
393
399
|
-webkit-appearance: none;
|
|
394
400
|
position: relative;
|
|
@@ -407,19 +413,20 @@ useComponentHost(() => import('../components/ui-checkbox/ui-checkbox.js'), {
|
|
|
407
413
|
box-shadow var(--ui-motion-fast) var(--ui-motion-ease);
|
|
408
414
|
}
|
|
409
415
|
|
|
410
|
-
input::after {
|
|
416
|
+
:global(input:where([data-hn-ui-checkbox])::after) {
|
|
411
417
|
content: "";
|
|
412
418
|
position: absolute;
|
|
413
419
|
opacity: 0;
|
|
414
420
|
transition: opacity 120ms var(--ui-motion-ease);
|
|
415
421
|
}
|
|
416
422
|
|
|
417
|
-
input:checked,
|
|
423
|
+
:global(input:checked:where([data-hn-ui-checkbox])),
|
|
424
|
+
:global(input:indeterminate:where([data-hn-ui-checkbox])) {
|
|
418
425
|
border-color: var(--ui-accent-solid);
|
|
419
426
|
background: var(--ui-accent-solid);
|
|
420
427
|
box-shadow: var(--ui-control-inset);
|
|
421
428
|
}
|
|
422
|
-
input:checked::after {
|
|
429
|
+
:global(input:checked:where([data-hn-ui-checkbox])::after) {
|
|
423
430
|
inset: 0;
|
|
424
431
|
margin: auto;
|
|
425
432
|
inline-size: 0.28rem;
|
|
@@ -435,7 +442,7 @@ useComponentHost(() => import('../components/ui-checkbox/ui-checkbox.js'), {
|
|
|
435
442
|
both;
|
|
436
443
|
}
|
|
437
444
|
|
|
438
|
-
input:indeterminate::after {
|
|
445
|
+
:global(input:indeterminate:where([data-hn-ui-checkbox])::after) {
|
|
439
446
|
inset: 50% 0.23rem auto;
|
|
440
447
|
block-size: 0.125rem;
|
|
441
448
|
border-radius: var(--ui-radius-round);
|
|
@@ -445,65 +452,66 @@ useComponentHost(() => import('../components/ui-checkbox/ui-checkbox.js'), {
|
|
|
445
452
|
}
|
|
446
453
|
|
|
447
454
|
@media (prefers-reduced-motion: reduce) {
|
|
448
|
-
input::after {
|
|
455
|
+
:global(input:where([data-hn-ui-checkbox])::after) {
|
|
449
456
|
transition: none;
|
|
450
457
|
animation: none;
|
|
451
458
|
}
|
|
452
459
|
}
|
|
453
460
|
|
|
454
|
-
input:hover:enabled {
|
|
461
|
+
:global(input:hover:enabled:where([data-hn-ui-checkbox])) {
|
|
455
462
|
border-color: var(--ui-accent-solid);
|
|
456
463
|
}
|
|
457
464
|
|
|
458
|
-
input:focus-visible {
|
|
465
|
+
:global(input:focus-visible:where([data-hn-ui-checkbox])) {
|
|
459
466
|
outline: var(--ui-focus-width) solid var(--ui-focus-ring, var(--ui-accent-solid));
|
|
460
467
|
outline-offset: var(--ui-focus-width);
|
|
461
468
|
}
|
|
462
469
|
|
|
463
|
-
:scope[data-ui-checkbox-state~="invalid"] input {
|
|
470
|
+
:global(:scope[data-ui-checkbox-state~="invalid"] input:where([data-hn-ui-checkbox])) {
|
|
464
471
|
border-color: var(--_ui-checkbox-invalid-border);
|
|
465
472
|
}
|
|
466
473
|
|
|
467
|
-
:
|
|
474
|
+
:global(:scope[data-ui-checkbox-state~="disabled"]:where([data-hn-ui-checkbox])) {
|
|
468
475
|
color: var(--ui-disabled-text);
|
|
469
476
|
cursor: not-allowed;
|
|
470
477
|
}
|
|
471
|
-
:scope[data-ui-checkbox-state~="disabled"] .description {
|
|
478
|
+
:global(:scope[data-ui-checkbox-state~="disabled"] .description:where([data-hn-ui-checkbox])) {
|
|
472
479
|
color: var(--ui-disabled-text);
|
|
473
480
|
}
|
|
474
|
-
:scope[data-ui-checkbox-state~="disabled"] input {
|
|
481
|
+
:global(:scope[data-ui-checkbox-state~="disabled"] input:where([data-hn-ui-checkbox])) {
|
|
475
482
|
border-color: var(--ui-disabled-border);
|
|
476
483
|
background: var(--ui-disabled-surface);
|
|
477
484
|
box-shadow: none;
|
|
478
485
|
cursor: not-allowed;
|
|
479
486
|
}
|
|
480
|
-
:
|
|
487
|
+
:global(:scope[data-ui-checkbox-state~="size=sm"]:where([data-hn-ui-checkbox])) {
|
|
481
488
|
--_font: var(--ui-font-size-sm);
|
|
482
489
|
--_row: var(--ui-control-size-sm);
|
|
483
490
|
}
|
|
484
491
|
|
|
485
|
-
:
|
|
492
|
+
:global(:scope[data-ui-checkbox-state~="size=lg"]:where([data-hn-ui-checkbox])) {
|
|
486
493
|
--_font: var(--ui-font-size-md);
|
|
487
494
|
--_row: var(--ui-control-size-lg);
|
|
488
495
|
}
|
|
489
496
|
|
|
490
|
-
:
|
|
491
|
-
:
|
|
497
|
+
:global(:scope[data-ui-checkbox-state~="size=sm"]:where([data-hn-ui-checkbox])),
|
|
498
|
+
:global(:scope[data-ui-checkbox-state~="size=lg"]:where([data-hn-ui-checkbox])) {
|
|
492
499
|
--_line: calc(var(--_font) * var(--ui-line-height-md));
|
|
493
500
|
font-size: var(--_font);
|
|
494
501
|
padding-block: calc((var(--_row) - var(--_line)) / 2);
|
|
495
502
|
}
|
|
496
503
|
|
|
497
|
-
:scope[data-ui-checkbox-state~="size=sm"] input
|
|
504
|
+
:global(:scope[data-ui-checkbox-state~="size=sm"] input:where([data-hn-ui-checkbox])),
|
|
505
|
+
:global(:scope[data-ui-checkbox-state~="size=lg"] input:where([data-hn-ui-checkbox])) {
|
|
498
506
|
margin-top: calc((var(--_line) - var(--_ui-checkbox-size, 1.125rem)) / 2);
|
|
499
507
|
}
|
|
500
508
|
|
|
501
509
|
@media (pointer: coarse) {
|
|
502
|
-
:
|
|
510
|
+
:global(:scope[data-ui-checkbox-state~="size=sm"]:where([data-hn-ui-checkbox])) {
|
|
503
511
|
--_row: var(--ui-control-min-block-size);
|
|
504
512
|
}
|
|
505
513
|
}
|
|
506
|
-
:
|
|
514
|
+
:global(:scope[hidden]:where([data-hn-ui-checkbox])) {
|
|
507
515
|
display: none;
|
|
508
516
|
}
|
|
509
517
|
}
|
package/vue/UiCluster.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'
|
|
@@ -153,7 +153,7 @@ const reflectedProp = useReflectedProp()
|
|
|
153
153
|
|
|
154
154
|
checkHydratedRoot('div', 'ui-cluster')
|
|
155
155
|
|
|
156
|
-
/** The values the styles' :host
|
|
156
|
+
/** The values the styles' :host() prop and state rules test. */
|
|
157
157
|
const hostState = computed(() =>
|
|
158
158
|
[
|
|
159
159
|
checkedProps.value.fixed && 'fixed',
|
|
@@ -180,14 +180,16 @@ const hostState = computed(() =>
|
|
|
180
180
|
<div
|
|
181
181
|
class="ui-cluster"
|
|
182
182
|
v-bind="nativeAttrs($attrs)"
|
|
183
|
+
data-hn
|
|
184
|
+
data-hn-ui-cluster
|
|
183
185
|
v-prop-validity="{ contract: propValidityContract, values: { ...props } }"
|
|
184
|
-
:data-align="reflectedProp('align', 'align', checkedProps.align, undefined, false)"
|
|
185
|
-
:data-fixed="reflectedProp('fixed', 'fixed', checkedProps.fixed, undefined, false)"
|
|
186
|
-
:data-gap="reflectedProp('gap', 'gap', checkedProps.gap, undefined, false)"
|
|
187
|
-
:data-justify="reflectedProp('justify', 'justify', checkedProps.justify, undefined, false)"
|
|
188
|
-
:data-padding="reflectedProp('padding', 'padding', checkedProps.padding, undefined, false)"
|
|
189
|
-
:data-padding-end="reflectedProp('paddingEnd', 'padding-end', checkedProps.paddingEnd, undefined, false)"
|
|
190
|
-
:data-wrap="reflectedProp('wrap', 'wrap', checkedProps.wrap, undefined, false)"
|
|
186
|
+
:data-ui-cluster-prop-align="reflectedProp('align', 'align', checkedProps.align, undefined, false)"
|
|
187
|
+
:data-ui-cluster-prop-fixed="reflectedProp('fixed', 'fixed', checkedProps.fixed, undefined, false)"
|
|
188
|
+
:data-ui-cluster-prop-gap="reflectedProp('gap', 'gap', checkedProps.gap, undefined, false)"
|
|
189
|
+
:data-ui-cluster-prop-justify="reflectedProp('justify', 'justify', checkedProps.justify, undefined, false)"
|
|
190
|
+
:data-ui-cluster-prop-padding="reflectedProp('padding', 'padding', checkedProps.padding, undefined, false)"
|
|
191
|
+
:data-ui-cluster-prop-padding-end="reflectedProp('paddingEnd', 'padding-end', checkedProps.paddingEnd, undefined, false)"
|
|
192
|
+
:data-ui-cluster-prop-wrap="reflectedProp('wrap', 'wrap', checkedProps.wrap, undefined, false)"
|
|
191
193
|
:data-ui-cluster-state="hostState || undefined"
|
|
192
194
|
>
|
|
193
195
|
<slot />
|
|
@@ -203,8 +205,8 @@ const hostState = computed(() =>
|
|
|
203
205
|
|
|
204
206
|
/* A component that sets its display still honours the hidden attribute on its root. */
|
|
205
207
|
|
|
206
|
-
@scope (.ui-cluster) {
|
|
207
|
-
:scope:where(
|
|
208
|
+
@scope (.ui-cluster) to ([data-hn]) {
|
|
209
|
+
:global(:scope:where([data-hn-ui-cluster])) {
|
|
208
210
|
--_layout-gap: var(--ui-space-3);
|
|
209
211
|
display: flex;
|
|
210
212
|
flex-wrap: wrap;
|
|
@@ -215,71 +217,71 @@ const hostState = computed(() =>
|
|
|
215
217
|
margin: 0;
|
|
216
218
|
}
|
|
217
219
|
|
|
218
|
-
:
|
|
220
|
+
:global(:scope[data-ui-cluster-state~="fixed"]:where([data-hn-ui-cluster])) {
|
|
219
221
|
flex: none;
|
|
220
222
|
}
|
|
221
|
-
:
|
|
223
|
+
:global(:scope[data-ui-cluster-state~="padding=s"]:where([data-hn-ui-cluster])) {
|
|
222
224
|
padding: var(--ui-space-2);
|
|
223
225
|
}
|
|
224
|
-
:
|
|
226
|
+
:global(:scope[data-ui-cluster-state~="padding=m"]:where([data-hn-ui-cluster])) {
|
|
225
227
|
padding: var(--ui-space-3);
|
|
226
228
|
}
|
|
227
|
-
:
|
|
229
|
+
:global(:scope[data-ui-cluster-state~="padding=l"]:where([data-hn-ui-cluster])) {
|
|
228
230
|
padding: var(--ui-space-4);
|
|
229
231
|
}
|
|
230
|
-
:
|
|
232
|
+
:global(:scope[data-ui-cluster-state~="paddingEnd=s"]:where([data-hn-ui-cluster])) {
|
|
231
233
|
padding-inline-end: var(--ui-space-2);
|
|
232
234
|
}
|
|
233
|
-
:
|
|
235
|
+
:global(:scope[data-ui-cluster-state~="paddingEnd=m"]:where([data-hn-ui-cluster])) {
|
|
234
236
|
padding-inline-end: var(--ui-space-3);
|
|
235
237
|
}
|
|
236
|
-
:
|
|
238
|
+
:global(:scope[data-ui-cluster-state~="paddingEnd=l"]:where([data-hn-ui-cluster])) {
|
|
237
239
|
padding-inline-end: var(--ui-space-4);
|
|
238
240
|
}
|
|
239
|
-
:
|
|
241
|
+
:global(:scope[data-ui-cluster-state~="paddingEnd=xl"]:where([data-hn-ui-cluster])) {
|
|
240
242
|
padding-inline-end: calc(var(--ui-space-4) * 4);
|
|
241
243
|
}
|
|
242
244
|
|
|
243
|
-
:
|
|
245
|
+
:global(:scope[data-ui-cluster-state~="gap=xs"]:where([data-hn-ui-cluster])) {
|
|
244
246
|
--_layout-gap: var(--ui-space-2);
|
|
245
247
|
}
|
|
246
|
-
:
|
|
248
|
+
:global(:scope[data-ui-cluster-state~="gap=s"]:where([data-hn-ui-cluster])) {
|
|
247
249
|
--_layout-gap: var(--ui-space-3);
|
|
248
250
|
}
|
|
249
|
-
:
|
|
251
|
+
:global(:scope[data-ui-cluster-state~="gap=m"]:where([data-hn-ui-cluster])) {
|
|
250
252
|
--_layout-gap: var(--ui-space-4);
|
|
251
253
|
}
|
|
252
|
-
:
|
|
254
|
+
:global(:scope[data-ui-cluster-state~="gap=l"]:where([data-hn-ui-cluster])) {
|
|
253
255
|
--_layout-gap: var(--ui-space-5);
|
|
254
256
|
}
|
|
255
|
-
:
|
|
257
|
+
:global(:scope[data-ui-cluster-state~="gap=xl"]:where([data-hn-ui-cluster])) {
|
|
256
258
|
--_layout-gap: var(--ui-space-6);
|
|
257
259
|
}
|
|
258
|
-
:
|
|
260
|
+
:global(:scope[data-ui-cluster-state~="align=start"]:where([data-hn-ui-cluster])) {
|
|
259
261
|
align-items: flex-start;
|
|
260
262
|
}
|
|
261
|
-
:
|
|
263
|
+
:global(:scope[data-ui-cluster-state~="align=end"]:where([data-hn-ui-cluster])) {
|
|
262
264
|
align-items: flex-end;
|
|
263
265
|
}
|
|
264
|
-
:
|
|
266
|
+
:global(:scope[data-ui-cluster-state~="align=baseline"]:where([data-hn-ui-cluster])) {
|
|
265
267
|
align-items: baseline;
|
|
266
268
|
}
|
|
267
|
-
:
|
|
269
|
+
:global(:scope[data-ui-cluster-state~="align=stretch"]:where([data-hn-ui-cluster])) {
|
|
268
270
|
align-items: stretch;
|
|
269
271
|
}
|
|
270
|
-
:
|
|
272
|
+
:global(:scope[data-ui-cluster-state~="justify=center"]:where([data-hn-ui-cluster])) {
|
|
271
273
|
justify-content: center;
|
|
272
274
|
}
|
|
273
|
-
:
|
|
275
|
+
:global(:scope[data-ui-cluster-state~="justify=end"]:where([data-hn-ui-cluster])) {
|
|
274
276
|
justify-content: flex-end;
|
|
275
277
|
}
|
|
276
|
-
:
|
|
278
|
+
:global(:scope[data-ui-cluster-state~="justify=between"]:where([data-hn-ui-cluster])) {
|
|
277
279
|
justify-content: space-between;
|
|
278
280
|
}
|
|
279
|
-
:
|
|
281
|
+
:global(:scope[data-ui-cluster-state~="wrap=nowrap"]:where([data-hn-ui-cluster])) {
|
|
280
282
|
flex-wrap: nowrap;
|
|
281
283
|
}
|
|
282
|
-
:
|
|
284
|
+
:global(:scope[hidden]:where([data-hn-ui-cluster])) {
|
|
283
285
|
display: none;
|
|
284
286
|
}
|
|
285
287
|
}
|