@threadlabs/looma 0.28.12 → 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/editor/formatting-selection.d.ts +49 -0
- 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/editor/index.js +108 -65
- package/vue/host.ts +26 -6
package/vue/UiImage.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'
|
|
@@ -166,7 +166,7 @@ const root = ref<HTMLElement | null>(null)
|
|
|
166
166
|
const frameElement = useTemplateRef<HTMLElement>('frameElement')
|
|
167
167
|
checkHydratedRoot('figure', 'ui-image')
|
|
168
168
|
|
|
169
|
-
/** The values the styles' :host
|
|
169
|
+
/** The values the styles' :host() prop and state rules test. */
|
|
170
170
|
const hostState = computed(() =>
|
|
171
171
|
[
|
|
172
172
|
checkedProps.value.placement && 'placement',
|
|
@@ -222,30 +222,38 @@ useComponentHost(() => import('../components/ui-image/ui-image.js'), {
|
|
|
222
222
|
<figure
|
|
223
223
|
class="ui-image"
|
|
224
224
|
v-bind="nativeAttrs($attrs)"
|
|
225
|
+
data-hn
|
|
226
|
+
data-hn-ui-image
|
|
225
227
|
v-prop-validity="{ contract: propValidityContract, values: { ...props } }"
|
|
226
|
-
:data-alt="reflectedProp('alt', 'alt', checkedProps.alt, undefined, false)"
|
|
227
|
-
:data-height="reflectedProp('height', 'height', checkedProps.height, undefined, false)"
|
|
228
|
-
:data-placement="reflectedProp('placement', 'placement', checkedProps.placement, undefined, false)"
|
|
229
|
-
:data-resizable="reflectedProp('resizable', 'resizable', checkedProps.resizable, undefined, false)"
|
|
230
|
-
:data-selected="reflectedProp('selected', 'selected', checkedProps.selected, undefined, false)"
|
|
231
|
-
:data-src="reflectedProp('src', 'src', checkedProps.src, undefined, false)"
|
|
232
|
-
:data-width="reflectedProp('width', 'width', checkedProps.width, undefined, false)"
|
|
228
|
+
:data-ui-image-prop-alt="reflectedProp('alt', 'alt', checkedProps.alt, undefined, false)"
|
|
229
|
+
:data-ui-image-prop-height="reflectedProp('height', 'height', checkedProps.height, undefined, false)"
|
|
230
|
+
:data-ui-image-prop-placement="reflectedProp('placement', 'placement', checkedProps.placement, undefined, false)"
|
|
231
|
+
:data-ui-image-prop-resizable="reflectedProp('resizable', 'resizable', checkedProps.resizable, undefined, false)"
|
|
232
|
+
:data-ui-image-prop-selected="reflectedProp('selected', 'selected', checkedProps.selected, undefined, false)"
|
|
233
|
+
:data-ui-image-prop-src="reflectedProp('src', 'src', checkedProps.src, undefined, false)"
|
|
234
|
+
:data-ui-image-prop-width="reflectedProp('width', 'width', checkedProps.width, undefined, false)"
|
|
233
235
|
:data-ui-image-state="hostState || undefined"
|
|
234
236
|
ref="root"
|
|
235
237
|
>
|
|
236
|
-
<div class="frame" ref="frameElement">
|
|
238
|
+
<div class="frame" data-hn-ui-image ref="frameElement">
|
|
237
239
|
<slot name="media"><img
|
|
240
|
+
data-hn-ui-image
|
|
238
241
|
:src="checkedProps.src ?? undefined"
|
|
239
242
|
:alt="checkedProps.alt ?? undefined"
|
|
240
243
|
:width="checkedProps.width?.toString()"
|
|
241
244
|
:height="checkedProps.height?.toString()"
|
|
242
245
|
></slot>
|
|
243
|
-
<div
|
|
246
|
+
<div
|
|
247
|
+
class="handles"
|
|
248
|
+
data-hn-ui-image
|
|
249
|
+
:hidden="!(checkedProps.selected && checkedProps.resizable)"
|
|
250
|
+
>
|
|
244
251
|
<button
|
|
245
252
|
type="button"
|
|
246
253
|
class="handle"
|
|
247
254
|
data-corner="top-left"
|
|
248
255
|
aria-label="Resize image from top left"
|
|
256
|
+
data-hn-ui-image
|
|
249
257
|
>
|
|
250
258
|
</button>
|
|
251
259
|
<button
|
|
@@ -253,6 +261,7 @@ useComponentHost(() => import('../components/ui-image/ui-image.js'), {
|
|
|
253
261
|
class="handle"
|
|
254
262
|
data-corner="top-right"
|
|
255
263
|
aria-label="Resize image from top right"
|
|
264
|
+
data-hn-ui-image
|
|
256
265
|
>
|
|
257
266
|
</button>
|
|
258
267
|
<button
|
|
@@ -260,6 +269,7 @@ useComponentHost(() => import('../components/ui-image/ui-image.js'), {
|
|
|
260
269
|
class="handle"
|
|
261
270
|
data-corner="bottom-left"
|
|
262
271
|
aria-label="Resize image from bottom left"
|
|
272
|
+
data-hn-ui-image
|
|
263
273
|
>
|
|
264
274
|
</button>
|
|
265
275
|
<button
|
|
@@ -267,6 +277,7 @@ useComponentHost(() => import('../components/ui-image/ui-image.js'), {
|
|
|
267
277
|
class="handle"
|
|
268
278
|
data-corner="bottom-right"
|
|
269
279
|
aria-label="Resize image from bottom right"
|
|
280
|
+
data-hn-ui-image
|
|
270
281
|
>
|
|
271
282
|
</button>
|
|
272
283
|
</div>
|
|
@@ -276,8 +287,8 @@ useComponentHost(() => import('../components/ui-image/ui-image.js'), {
|
|
|
276
287
|
</template>
|
|
277
288
|
|
|
278
289
|
<style scoped>
|
|
279
|
-
@scope (.ui-image) {
|
|
280
|
-
:scope:where(
|
|
290
|
+
@scope (.ui-image) to ([data-hn]) {
|
|
291
|
+
:global(:scope:where([data-hn-ui-image])) {
|
|
281
292
|
display: flex;
|
|
282
293
|
justify-content: flex-start;
|
|
283
294
|
box-sizing: border-box;
|
|
@@ -286,33 +297,33 @@ useComponentHost(() => import('../components/ui-image/ui-image.js'), {
|
|
|
286
297
|
margin: 0;
|
|
287
298
|
padding: var(--ui-space-3) 0;
|
|
288
299
|
}
|
|
289
|
-
:
|
|
300
|
+
:global(:scope[data-ui-image-state~="placement=center"]:where([data-hn-ui-image])) {
|
|
290
301
|
justify-content: center;
|
|
291
302
|
}
|
|
292
|
-
:
|
|
303
|
+
:global(:scope[data-ui-image-state~="placement=wrap-left"]:where([data-hn-ui-image])) {
|
|
293
304
|
float: left;
|
|
294
305
|
padding-inline-end: var(--ui-space-4);
|
|
295
306
|
}
|
|
296
|
-
:
|
|
307
|
+
:global(:scope[data-ui-image-state~="placement=wrap-right"]:where([data-hn-ui-image])) {
|
|
297
308
|
float: right;
|
|
298
309
|
padding-inline-start: var(--ui-space-4);
|
|
299
310
|
}
|
|
300
|
-
:
|
|
311
|
+
:global(:scope:is(:scope[data-ui-image-state~="placement=wrap-left"], :scope[data-ui-image-state~="placement=wrap-right"]):where([data-hn-ui-image])) {
|
|
301
312
|
inline-size: calc(var(--_ui-image-width, calc(100% / 3)) + var(--ui-space-4));
|
|
302
313
|
}
|
|
303
|
-
:scope:is(:scope[data-ui-image-state~="placement=wrap-left"], :scope[data-ui-image-state~="placement=wrap-right"])
|
|
304
|
-
.frame {
|
|
314
|
+
:global(:scope:is(:scope[data-ui-image-state~="placement=wrap-left"], :scope[data-ui-image-state~="placement=wrap-right"])
|
|
315
|
+
.frame:where([data-hn-ui-image])) {
|
|
305
316
|
inline-size: 100%;
|
|
306
317
|
}
|
|
307
|
-
:scope:is(:scope[data-ui-image-state~="placement=wrap-left"], :scope[data-ui-image-state~="placement=wrap-right"])
|
|
318
|
+
:global(:scope:is(:scope[data-ui-image-state~="placement=wrap-left"], :scope[data-ui-image-state~="placement=wrap-right"])
|
|
308
319
|
.frame
|
|
309
|
-
img,
|
|
310
|
-
:scope:is(:scope[data-ui-image-state~="placement=wrap-left"], :scope[data-ui-image-state~="placement=wrap-right"])
|
|
320
|
+
img:where([data-hn-ui-image])),
|
|
321
|
+
:global(:scope:is(:scope[data-ui-image-state~="placement=wrap-left"], :scope[data-ui-image-state~="placement=wrap-right"])
|
|
311
322
|
.frame
|
|
312
|
-
:
|
|
323
|
+
:where(:not([data-hn-ui-image])):is(img)) {
|
|
313
324
|
inline-size: 100%;
|
|
314
325
|
}
|
|
315
|
-
.frame {
|
|
326
|
+
:global(.frame:where([data-hn-ui-image])) {
|
|
316
327
|
position: relative;
|
|
317
328
|
flex: 0 1 auto;
|
|
318
329
|
inline-size: var(--_ui-image-width, fit-content);
|
|
@@ -321,21 +332,23 @@ useComponentHost(() => import('../components/ui-image/ui-image.js'), {
|
|
|
321
332
|
align-self: flex-start;
|
|
322
333
|
border-radius: var(--ui-radius-md);
|
|
323
334
|
}
|
|
324
|
-
.frame img
|
|
335
|
+
:global(.frame img:where([data-hn-ui-image])),
|
|
336
|
+
:global(.frame :where(:not([data-hn-ui-image])):is(img)) {
|
|
325
337
|
display: block;
|
|
326
338
|
max-inline-size: 100%;
|
|
327
339
|
block-size: auto;
|
|
328
340
|
margin: 0;
|
|
329
341
|
border-radius: inherit;
|
|
330
342
|
}
|
|
331
|
-
:scope[data-resizing] .frame img
|
|
343
|
+
:global(:scope[data-resizing] .frame img:where([data-hn-ui-image])),
|
|
344
|
+
:global(:scope[data-resizing] .frame :where(:not([data-hn-ui-image])):is(img)) {
|
|
332
345
|
inline-size: 100%;
|
|
333
346
|
}
|
|
334
|
-
:scope[data-ui-image-state~="selected"] .frame {
|
|
347
|
+
:global(:scope[data-ui-image-state~="selected"] .frame:where([data-hn-ui-image])) {
|
|
335
348
|
outline: var(--ui-focus-width) solid var(--ui-focus-ring);
|
|
336
349
|
outline-offset: var(--ui-border-width);
|
|
337
350
|
}
|
|
338
|
-
.handle {
|
|
351
|
+
:global(.handle:where([data-hn-ui-image])) {
|
|
339
352
|
position: absolute;
|
|
340
353
|
z-index: 1;
|
|
341
354
|
inline-size: 24px;
|
|
@@ -345,7 +358,7 @@ useComponentHost(() => import('../components/ui-image/ui-image.js'), {
|
|
|
345
358
|
background: transparent;
|
|
346
359
|
touch-action: none;
|
|
347
360
|
}
|
|
348
|
-
.handle::after {
|
|
361
|
+
:global(.handle:where([data-hn-ui-image])::after) {
|
|
349
362
|
content: "";
|
|
350
363
|
position: absolute;
|
|
351
364
|
inset: 8px;
|
|
@@ -353,74 +366,76 @@ useComponentHost(() => import('../components/ui-image/ui-image.js'), {
|
|
|
353
366
|
border: var(--ui-border-width) solid var(--ui-focus-ring);
|
|
354
367
|
border-radius: var(--ui-radius-sm);
|
|
355
368
|
}
|
|
356
|
-
.handle:focus-visible {
|
|
369
|
+
:global(.handle:focus-visible:where([data-hn-ui-image])) {
|
|
357
370
|
outline: var(--ui-focus-width) solid var(--ui-focus-ring);
|
|
358
371
|
border-radius: var(--ui-radius-sm);
|
|
359
372
|
}
|
|
360
|
-
.handle[data-corner="top-left"] {
|
|
373
|
+
:global(.handle[data-corner="top-left"]:where([data-hn-ui-image])) {
|
|
361
374
|
top: -12px;
|
|
362
375
|
left: -12px;
|
|
363
376
|
cursor: nwse-resize;
|
|
364
377
|
}
|
|
365
|
-
.handle[data-corner="top-right"] {
|
|
378
|
+
:global(.handle[data-corner="top-right"]:where([data-hn-ui-image])) {
|
|
366
379
|
top: -12px;
|
|
367
380
|
right: -12px;
|
|
368
381
|
cursor: nesw-resize;
|
|
369
382
|
}
|
|
370
|
-
.handle[data-corner="bottom-left"] {
|
|
383
|
+
:global(.handle[data-corner="bottom-left"]:where([data-hn-ui-image])) {
|
|
371
384
|
bottom: -12px;
|
|
372
385
|
left: -12px;
|
|
373
386
|
cursor: nesw-resize;
|
|
374
387
|
}
|
|
375
|
-
.handle[data-corner="bottom-right"] {
|
|
388
|
+
:global(.handle[data-corner="bottom-right"]:where([data-hn-ui-image])) {
|
|
376
389
|
bottom: -12px;
|
|
377
390
|
right: -12px;
|
|
378
391
|
cursor: nwse-resize;
|
|
379
392
|
}
|
|
380
|
-
.handles[hidden]
|
|
393
|
+
:global(.handles[hidden]:where([data-hn-ui-image])),
|
|
394
|
+
:global(:scope[hidden]:where([data-hn-ui-image])) {
|
|
381
395
|
display: none;
|
|
382
396
|
}
|
|
383
397
|
@media (max-width: 767px) {
|
|
384
|
-
:
|
|
398
|
+
:global(:scope:is(:scope[data-ui-image-state~="placement=wrap-left"], :scope[data-ui-image-state~="placement=wrap-right"]):where([data-hn-ui-image])) {
|
|
385
399
|
float: none;
|
|
386
400
|
inline-size: 100%;
|
|
387
401
|
padding-inline: 0;
|
|
388
402
|
}
|
|
389
|
-
:scope:is(:scope[data-ui-image-state~="placement=wrap-left"], :scope[data-ui-image-state~="placement=wrap-right"])
|
|
390
|
-
.handles {
|
|
403
|
+
:global(:scope:is(:scope[data-ui-image-state~="placement=wrap-left"], :scope[data-ui-image-state~="placement=wrap-right"])
|
|
404
|
+
.handles:where([data-hn-ui-image])) {
|
|
391
405
|
display: none;
|
|
392
406
|
}
|
|
393
407
|
}
|
|
394
408
|
@media (pointer: coarse) {
|
|
395
|
-
.handle {
|
|
409
|
+
:global(.handle:where([data-hn-ui-image])) {
|
|
396
410
|
inline-size: 44px;
|
|
397
411
|
block-size: 44px;
|
|
398
412
|
}
|
|
399
|
-
.handle::after {
|
|
413
|
+
:global(.handle:where([data-hn-ui-image])::after) {
|
|
400
414
|
inset: 18px;
|
|
401
415
|
}
|
|
402
|
-
.handle[data-corner="top-left"] {
|
|
416
|
+
:global(.handle[data-corner="top-left"]:where([data-hn-ui-image])) {
|
|
403
417
|
top: -22px;
|
|
404
418
|
left: -22px;
|
|
405
419
|
}
|
|
406
|
-
.handle[data-corner="top-right"] {
|
|
420
|
+
:global(.handle[data-corner="top-right"]:where([data-hn-ui-image])) {
|
|
407
421
|
top: -22px;
|
|
408
422
|
right: -22px;
|
|
409
423
|
}
|
|
410
|
-
.handle[data-corner="bottom-left"] {
|
|
424
|
+
:global(.handle[data-corner="bottom-left"]:where([data-hn-ui-image])) {
|
|
411
425
|
bottom: -22px;
|
|
412
426
|
left: -22px;
|
|
413
427
|
}
|
|
414
|
-
.handle[data-corner="bottom-right"] {
|
|
428
|
+
:global(.handle[data-corner="bottom-right"]:where([data-hn-ui-image])) {
|
|
415
429
|
bottom: -22px;
|
|
416
430
|
right: -22px;
|
|
417
431
|
}
|
|
418
432
|
}
|
|
419
433
|
@media (forced-colors: active) {
|
|
420
|
-
:scope[data-ui-image-state~="selected"] .frame
|
|
434
|
+
:global(:scope[data-ui-image-state~="selected"] .frame:where([data-hn-ui-image])),
|
|
435
|
+
:global(.handle:focus-visible:where([data-hn-ui-image])) {
|
|
421
436
|
outline-color: Highlight;
|
|
422
437
|
}
|
|
423
|
-
.handle::after {
|
|
438
|
+
:global(.handle:where([data-hn-ui-image])::after) {
|
|
424
439
|
border-color: Highlight;
|
|
425
440
|
background: Canvas;
|
|
426
441
|
}
|
package/vue/UiInput.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
|
|
3
3
|
setup
|
|
4
4
|
lang="ts"
|
|
@@ -400,7 +400,7 @@ const model = computed({
|
|
|
400
400
|
const root = ref<HTMLElement | null>(null)
|
|
401
401
|
checkHydratedRoot('input', 'ui-input')
|
|
402
402
|
|
|
403
|
-
/** The values the styles' :host
|
|
403
|
+
/** The values the styles' :host() prop and state rules test. */
|
|
404
404
|
const hostState = computed(() =>
|
|
405
405
|
[
|
|
406
406
|
checkedProps.value.size && 'size',
|
|
@@ -438,19 +438,20 @@ useComponentHost(() => import('../components/ui-input/ui-input.js'), {
|
|
|
438
438
|
<input
|
|
439
439
|
class="ui-input"
|
|
440
440
|
v-bind="nativeAttrs($attrs)"
|
|
441
|
+
data-hn
|
|
441
442
|
:type="checkedProps.type ?? undefined"
|
|
442
443
|
:disabled="checkedProps.disabled ?? undefined"
|
|
443
444
|
:readonly="checkedProps.readonly ?? undefined"
|
|
444
445
|
:required="checkedProps.required ?? undefined"
|
|
445
446
|
:aria-invalid="checkedProps.invalid ?? undefined"
|
|
446
447
|
v-prop-validity="{ contract: propValidityContract, values: { ...props, type: checkedProps['type'] } }"
|
|
447
|
-
:data-disabled="reflectedProp('disabled', 'disabled', checkedProps.disabled, undefined, false)"
|
|
448
|
-
:data-invalid="reflectedProp('invalid', 'invalid', checkedProps.invalid, undefined, false)"
|
|
449
|
-
:data-readonly="reflectedProp('readonly', 'readonly', checkedProps.readonly, undefined, false)"
|
|
450
|
-
:data-required="reflectedProp('required', 'required', checkedProps.required, undefined, false)"
|
|
451
|
-
:data-size="reflectedProp('size', 'size', checkedProps.size, undefined, false)"
|
|
452
|
-
:data-type="reflectedProp('type', 'type', checkedProps.type, undefined, false)"
|
|
453
|
-
:data-value="reflectedProp('value', 'value', checkedProps.value, undefined, false)"
|
|
448
|
+
:data-ui-input-prop-disabled="reflectedProp('disabled', 'disabled', checkedProps.disabled, undefined, false)"
|
|
449
|
+
:data-ui-input-prop-invalid="reflectedProp('invalid', 'invalid', checkedProps.invalid, undefined, false)"
|
|
450
|
+
:data-ui-input-prop-readonly="reflectedProp('readonly', 'readonly', checkedProps.readonly, undefined, false)"
|
|
451
|
+
:data-ui-input-prop-required="reflectedProp('required', 'required', checkedProps.required, undefined, false)"
|
|
452
|
+
:data-ui-input-prop-size="reflectedProp('size', 'size', checkedProps.size, undefined, false)"
|
|
453
|
+
:data-ui-input-prop-type="reflectedProp('type', 'type', checkedProps.type, undefined, false)"
|
|
454
|
+
:data-ui-input-prop-value="reflectedProp('value', 'value', checkedProps.value, undefined, false)"
|
|
454
455
|
v-bind-control="{ tag: 'input', name: 'value', value: model, optionalValue: true, defaultValue: '' }"
|
|
455
456
|
@input="model = readBoundControl(
|
|
456
457
|
$event.currentTarget as HTMLInputElement | HTMLTextAreaElement | HTMLSelectElement,
|
|
@@ -532,8 +533,8 @@ useComponentHost(() => import('../components/ui-input/ui-input.js'), {
|
|
|
532
533
|
|
|
533
534
|
/* A component that sets its display still honours the hidden attribute on its root. */
|
|
534
535
|
|
|
535
|
-
@scope (.ui-input) {
|
|
536
|
-
:
|
|
536
|
+
@scope (.ui-input) to ([data-hn]) {
|
|
537
|
+
:global(:scope) {
|
|
537
538
|
box-sizing: border-box;
|
|
538
539
|
display: inline-block;
|
|
539
540
|
inline-size: var(--ui-input-inline-size, 100%);
|
|
@@ -571,7 +572,7 @@ useComponentHost(() => import('../components/ui-input/ui-input.js'), {
|
|
|
571
572
|
box-shadow var(--ui-motion-fast) var(--ui-motion-ease),
|
|
572
573
|
background-color var(--ui-motion-fast) var(--ui-motion-ease);
|
|
573
574
|
}
|
|
574
|
-
:
|
|
575
|
+
:global(:scope[data-ui-input-state~="size=sm"]) {
|
|
575
576
|
min-block-size: var(
|
|
576
577
|
--ui-input-min-block-size,
|
|
577
578
|
var(--_ui-default-input-min-block-size, var(--ui-control-size-sm))
|
|
@@ -580,7 +581,7 @@ useComponentHost(() => import('../components/ui-input/ui-input.js'), {
|
|
|
580
581
|
font-size: var(--ui-font-size-sm);
|
|
581
582
|
}
|
|
582
583
|
|
|
583
|
-
:
|
|
584
|
+
:global(:scope[data-ui-input-state~="size=lg"]) {
|
|
584
585
|
min-block-size: var(
|
|
585
586
|
--ui-input-min-block-size,
|
|
586
587
|
var(--_ui-default-input-min-block-size, var(--ui-control-size-lg))
|
|
@@ -589,7 +590,7 @@ useComponentHost(() => import('../components/ui-input/ui-input.js'), {
|
|
|
589
590
|
font-size: var(--ui-font-size-md);
|
|
590
591
|
}
|
|
591
592
|
@media (pointer: coarse) {
|
|
592
|
-
:
|
|
593
|
+
:global(:scope) {
|
|
593
594
|
min-block-size: var(
|
|
594
595
|
--ui-input-min-block-size,
|
|
595
596
|
var(
|
|
@@ -599,30 +600,30 @@ useComponentHost(() => import('../components/ui-input/ui-input.js'), {
|
|
|
599
600
|
);
|
|
600
601
|
}
|
|
601
602
|
|
|
602
|
-
:
|
|
603
|
-
:
|
|
604
|
-
:
|
|
603
|
+
:global(:scope),
|
|
604
|
+
:global(:scope[data-ui-input-state~="size=sm"]),
|
|
605
|
+
:global(:scope[data-ui-input-state~="size=lg"]) {
|
|
605
606
|
font-size: var(--ui-font-size-md);
|
|
606
607
|
}
|
|
607
608
|
|
|
608
|
-
:
|
|
609
|
+
:global(:scope[data-ui-input-state~="size=sm"]) {
|
|
609
610
|
min-block-size: var(
|
|
610
611
|
--ui-input-min-block-size,
|
|
611
612
|
var(--_ui-default-input-min-block-size, var(--ui-control-min-block-size))
|
|
612
613
|
);
|
|
613
614
|
}
|
|
614
615
|
}
|
|
615
|
-
:
|
|
616
|
+
:global(:scope::selection) {
|
|
616
617
|
background: color-mix(in srgb, var(--ui-accent-solid) 20%, transparent);
|
|
617
618
|
color: inherit;
|
|
618
619
|
}
|
|
619
620
|
|
|
620
|
-
:
|
|
621
|
+
:global(:scope::placeholder) {
|
|
621
622
|
color: var(--ui-control-placeholder, var(--ui-text-secondary));
|
|
622
623
|
opacity: 1;
|
|
623
624
|
}
|
|
624
625
|
|
|
625
|
-
:
|
|
626
|
+
:global(:scope:hover:not(:focus):not(:disabled):not(:read-only):not([aria-invalid="true"]):not(:is(:user-invalid, [data-user-invalid]))) {
|
|
626
627
|
border-color: var(
|
|
627
628
|
--ui-input-border-hover,
|
|
628
629
|
var(
|
|
@@ -632,7 +633,7 @@ useComponentHost(() => import('../components/ui-input/ui-input.js'), {
|
|
|
632
633
|
);
|
|
633
634
|
}
|
|
634
635
|
|
|
635
|
-
:
|
|
636
|
+
:global(:scope:focus-visible) {
|
|
636
637
|
border-color: var(
|
|
637
638
|
--ui-input-focus-border,
|
|
638
639
|
var(--_ui-default-input-focus-border, var(--ui-control-focus, var(--ui-accent-solid)))
|
|
@@ -647,15 +648,14 @@ useComponentHost(() => import('../components/ui-input/ui-input.js'), {
|
|
|
647
648
|
)
|
|
648
649
|
);
|
|
649
650
|
}
|
|
650
|
-
:
|
|
651
|
-
:scope:where(:scope):is(:is(:user-invalid, [data-user-invalid])) {
|
|
651
|
+
:global(:scope[aria-invalid="true"]), :global(:scope:is(:user-invalid, [data-user-invalid])) {
|
|
652
652
|
border-color: var(
|
|
653
653
|
--ui-input-invalid-border,
|
|
654
654
|
var(--_ui-default-input-invalid-border, var(--ui-field-danger, var(--ui-danger-solid)))
|
|
655
655
|
);
|
|
656
656
|
}
|
|
657
657
|
|
|
658
|
-
:
|
|
658
|
+
:global(:scope:is([aria-invalid="true"], :is(:user-invalid, [data-user-invalid])):focus-visible) {
|
|
659
659
|
box-shadow: var(
|
|
660
660
|
--ui-input-invalid-focus-shadow,
|
|
661
661
|
var(
|
|
@@ -670,14 +670,14 @@ useComponentHost(() => import('../components/ui-input/ui-input.js'), {
|
|
|
670
670
|
);
|
|
671
671
|
}
|
|
672
672
|
|
|
673
|
-
:
|
|
673
|
+
:global(:scope:disabled) {
|
|
674
674
|
background: var(--ui-control-surface-disabled, var(--ui-surface-muted));
|
|
675
675
|
color: var(--ui-disabled-text);
|
|
676
676
|
box-shadow: none;
|
|
677
677
|
cursor: not-allowed;
|
|
678
678
|
}
|
|
679
679
|
@media (forced-colors: active) {
|
|
680
|
-
:
|
|
680
|
+
:global(:scope:focus-visible) {
|
|
681
681
|
outline: var(
|
|
682
682
|
--ui-input-focus-outline,
|
|
683
683
|
var(--_ui-default-input-focus-outline, var(--ui-focus-width) solid Highlight)
|
|
@@ -685,7 +685,7 @@ useComponentHost(() => import('../components/ui-input/ui-input.js'), {
|
|
|
685
685
|
outline-offset: var(--ui-border-width);
|
|
686
686
|
}
|
|
687
687
|
}
|
|
688
|
-
:
|
|
688
|
+
:global(:scope[hidden]) {
|
|
689
689
|
display: none;
|
|
690
690
|
}
|
|
691
691
|
}
|