@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/UiText.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'
|
|
@@ -280,7 +280,7 @@ checkHydratedRoot(
|
|
|
280
280
|
'ui-text',
|
|
281
281
|
)
|
|
282
282
|
|
|
283
|
-
/** The values the styles' :host
|
|
283
|
+
/** The values the styles' :host() prop and state rules test. */
|
|
284
284
|
const hostState = computed(() =>
|
|
285
285
|
[
|
|
286
286
|
checkedProps.value.grow && 'grow',
|
|
@@ -310,18 +310,20 @@ const hostState = computed(() =>
|
|
|
310
310
|
v-if="checkedProps.as === 'span'"
|
|
311
311
|
class="ui-text"
|
|
312
312
|
v-bind="nativeAttrs($attrs)"
|
|
313
|
+
data-hn
|
|
314
|
+
data-hn-ui-text
|
|
313
315
|
v-prop-validity="{ contract: propValidityContract, values: { ...props } }"
|
|
314
|
-
:data-align="reflectedProp('align', 'align', checkedProps.align, undefined, false)"
|
|
315
|
-
:data-as="reflectedProp('as', 'as', checkedProps.as, undefined, false)"
|
|
316
|
-
:data-font="reflectedProp('font', 'font', checkedProps.font, undefined, false)"
|
|
317
|
-
:data-grow="reflectedProp('grow', 'grow', checkedProps.grow, undefined, false)"
|
|
318
|
-
:data-size="reflectedProp('size', 'size', checkedProps.size, undefined, false)"
|
|
319
|
-
:data-tone="reflectedProp('tone', 'tone', checkedProps.tone, undefined, false)"
|
|
320
|
-
:data-trim="reflectedProp('trim', 'trim', checkedProps.trim, undefined, false)"
|
|
321
|
-
:data-truncate="reflectedProp('truncate', 'truncate', checkedProps.truncate, undefined, false)"
|
|
322
|
-
:data-variant="reflectedProp('variant', 'variant', checkedProps.variant, undefined, false)"
|
|
323
|
-
:data-weight="reflectedProp('weight', 'weight', checkedProps.weight, undefined, false)"
|
|
324
|
-
:data-wrap="reflectedProp('wrap', 'wrap', checkedProps.wrap, undefined, false)"
|
|
316
|
+
:data-ui-text-prop-align="reflectedProp('align', 'align', checkedProps.align, undefined, false)"
|
|
317
|
+
:data-ui-text-prop-as="reflectedProp('as', 'as', checkedProps.as, undefined, false)"
|
|
318
|
+
:data-ui-text-prop-font="reflectedProp('font', 'font', checkedProps.font, undefined, false)"
|
|
319
|
+
:data-ui-text-prop-grow="reflectedProp('grow', 'grow', checkedProps.grow, undefined, false)"
|
|
320
|
+
:data-ui-text-prop-size="reflectedProp('size', 'size', checkedProps.size, undefined, false)"
|
|
321
|
+
:data-ui-text-prop-tone="reflectedProp('tone', 'tone', checkedProps.tone, undefined, false)"
|
|
322
|
+
:data-ui-text-prop-trim="reflectedProp('trim', 'trim', checkedProps.trim, undefined, false)"
|
|
323
|
+
:data-ui-text-prop-truncate="reflectedProp('truncate', 'truncate', checkedProps.truncate, undefined, false)"
|
|
324
|
+
:data-ui-text-prop-variant="reflectedProp('variant', 'variant', checkedProps.variant, undefined, false)"
|
|
325
|
+
:data-ui-text-prop-weight="reflectedProp('weight', 'weight', checkedProps.weight, undefined, false)"
|
|
326
|
+
:data-ui-text-prop-wrap="reflectedProp('wrap', 'wrap', checkedProps.wrap, undefined, false)"
|
|
325
327
|
:data-ui-text-state="hostState || undefined"
|
|
326
328
|
ref="@html-next/root"
|
|
327
329
|
><slot /></span>
|
|
@@ -329,18 +331,20 @@ const hostState = computed(() =>
|
|
|
329
331
|
v-else-if="checkedProps.as === 'div'"
|
|
330
332
|
class="ui-text"
|
|
331
333
|
v-bind="nativeAttrs($attrs)"
|
|
334
|
+
data-hn
|
|
335
|
+
data-hn-ui-text
|
|
332
336
|
v-prop-validity="{ contract: propValidityContract, values: { ...props } }"
|
|
333
|
-
:data-align="reflectedProp('align', 'align', checkedProps.align, undefined, false)"
|
|
334
|
-
:data-as="reflectedProp('as', 'as', checkedProps.as, undefined, false)"
|
|
335
|
-
:data-font="reflectedProp('font', 'font', checkedProps.font, undefined, false)"
|
|
336
|
-
:data-grow="reflectedProp('grow', 'grow', checkedProps.grow, undefined, false)"
|
|
337
|
-
:data-size="reflectedProp('size', 'size', checkedProps.size, undefined, false)"
|
|
338
|
-
:data-tone="reflectedProp('tone', 'tone', checkedProps.tone, undefined, false)"
|
|
339
|
-
:data-trim="reflectedProp('trim', 'trim', checkedProps.trim, undefined, false)"
|
|
340
|
-
:data-truncate="reflectedProp('truncate', 'truncate', checkedProps.truncate, undefined, false)"
|
|
341
|
-
:data-variant="reflectedProp('variant', 'variant', checkedProps.variant, undefined, false)"
|
|
342
|
-
:data-weight="reflectedProp('weight', 'weight', checkedProps.weight, undefined, false)"
|
|
343
|
-
:data-wrap="reflectedProp('wrap', 'wrap', checkedProps.wrap, undefined, false)"
|
|
337
|
+
:data-ui-text-prop-align="reflectedProp('align', 'align', checkedProps.align, undefined, false)"
|
|
338
|
+
:data-ui-text-prop-as="reflectedProp('as', 'as', checkedProps.as, undefined, false)"
|
|
339
|
+
:data-ui-text-prop-font="reflectedProp('font', 'font', checkedProps.font, undefined, false)"
|
|
340
|
+
:data-ui-text-prop-grow="reflectedProp('grow', 'grow', checkedProps.grow, undefined, false)"
|
|
341
|
+
:data-ui-text-prop-size="reflectedProp('size', 'size', checkedProps.size, undefined, false)"
|
|
342
|
+
:data-ui-text-prop-tone="reflectedProp('tone', 'tone', checkedProps.tone, undefined, false)"
|
|
343
|
+
:data-ui-text-prop-trim="reflectedProp('trim', 'trim', checkedProps.trim, undefined, false)"
|
|
344
|
+
:data-ui-text-prop-truncate="reflectedProp('truncate', 'truncate', checkedProps.truncate, undefined, false)"
|
|
345
|
+
:data-ui-text-prop-variant="reflectedProp('variant', 'variant', checkedProps.variant, undefined, false)"
|
|
346
|
+
:data-ui-text-prop-weight="reflectedProp('weight', 'weight', checkedProps.weight, undefined, false)"
|
|
347
|
+
:data-ui-text-prop-wrap="reflectedProp('wrap', 'wrap', checkedProps.wrap, undefined, false)"
|
|
344
348
|
:data-ui-text-state="hostState || undefined"
|
|
345
349
|
ref="@html-next/root"
|
|
346
350
|
>
|
|
@@ -350,18 +354,20 @@ const hostState = computed(() =>
|
|
|
350
354
|
v-else-if="checkedProps.as === 'small'"
|
|
351
355
|
class="ui-text"
|
|
352
356
|
v-bind="nativeAttrs($attrs)"
|
|
357
|
+
data-hn
|
|
358
|
+
data-hn-ui-text
|
|
353
359
|
v-prop-validity="{ contract: propValidityContract, values: { ...props } }"
|
|
354
|
-
:data-align="reflectedProp('align', 'align', checkedProps.align, undefined, false)"
|
|
355
|
-
:data-as="reflectedProp('as', 'as', checkedProps.as, undefined, false)"
|
|
356
|
-
:data-font="reflectedProp('font', 'font', checkedProps.font, undefined, false)"
|
|
357
|
-
:data-grow="reflectedProp('grow', 'grow', checkedProps.grow, undefined, false)"
|
|
358
|
-
:data-size="reflectedProp('size', 'size', checkedProps.size, undefined, false)"
|
|
359
|
-
:data-tone="reflectedProp('tone', 'tone', checkedProps.tone, undefined, false)"
|
|
360
|
-
:data-trim="reflectedProp('trim', 'trim', checkedProps.trim, undefined, false)"
|
|
361
|
-
:data-truncate="reflectedProp('truncate', 'truncate', checkedProps.truncate, undefined, false)"
|
|
362
|
-
:data-variant="reflectedProp('variant', 'variant', checkedProps.variant, undefined, false)"
|
|
363
|
-
:data-weight="reflectedProp('weight', 'weight', checkedProps.weight, undefined, false)"
|
|
364
|
-
:data-wrap="reflectedProp('wrap', 'wrap', checkedProps.wrap, undefined, false)"
|
|
360
|
+
:data-ui-text-prop-align="reflectedProp('align', 'align', checkedProps.align, undefined, false)"
|
|
361
|
+
:data-ui-text-prop-as="reflectedProp('as', 'as', checkedProps.as, undefined, false)"
|
|
362
|
+
:data-ui-text-prop-font="reflectedProp('font', 'font', checkedProps.font, undefined, false)"
|
|
363
|
+
:data-ui-text-prop-grow="reflectedProp('grow', 'grow', checkedProps.grow, undefined, false)"
|
|
364
|
+
:data-ui-text-prop-size="reflectedProp('size', 'size', checkedProps.size, undefined, false)"
|
|
365
|
+
:data-ui-text-prop-tone="reflectedProp('tone', 'tone', checkedProps.tone, undefined, false)"
|
|
366
|
+
:data-ui-text-prop-trim="reflectedProp('trim', 'trim', checkedProps.trim, undefined, false)"
|
|
367
|
+
:data-ui-text-prop-truncate="reflectedProp('truncate', 'truncate', checkedProps.truncate, undefined, false)"
|
|
368
|
+
:data-ui-text-prop-variant="reflectedProp('variant', 'variant', checkedProps.variant, undefined, false)"
|
|
369
|
+
:data-ui-text-prop-weight="reflectedProp('weight', 'weight', checkedProps.weight, undefined, false)"
|
|
370
|
+
:data-ui-text-prop-wrap="reflectedProp('wrap', 'wrap', checkedProps.wrap, undefined, false)"
|
|
365
371
|
:data-ui-text-state="hostState || undefined"
|
|
366
372
|
ref="@html-next/root"
|
|
367
373
|
><slot /></small>
|
|
@@ -369,18 +375,20 @@ const hostState = computed(() =>
|
|
|
369
375
|
v-else-if="checkedProps.as === 'strong'"
|
|
370
376
|
class="ui-text"
|
|
371
377
|
v-bind="nativeAttrs($attrs)"
|
|
378
|
+
data-hn
|
|
379
|
+
data-hn-ui-text
|
|
372
380
|
v-prop-validity="{ contract: propValidityContract, values: { ...props } }"
|
|
373
|
-
:data-align="reflectedProp('align', 'align', checkedProps.align, undefined, false)"
|
|
374
|
-
:data-as="reflectedProp('as', 'as', checkedProps.as, undefined, false)"
|
|
375
|
-
:data-font="reflectedProp('font', 'font', checkedProps.font, undefined, false)"
|
|
376
|
-
:data-grow="reflectedProp('grow', 'grow', checkedProps.grow, undefined, false)"
|
|
377
|
-
:data-size="reflectedProp('size', 'size', checkedProps.size, undefined, false)"
|
|
378
|
-
:data-tone="reflectedProp('tone', 'tone', checkedProps.tone, undefined, false)"
|
|
379
|
-
:data-trim="reflectedProp('trim', 'trim', checkedProps.trim, undefined, false)"
|
|
380
|
-
:data-truncate="reflectedProp('truncate', 'truncate', checkedProps.truncate, undefined, false)"
|
|
381
|
-
:data-variant="reflectedProp('variant', 'variant', checkedProps.variant, undefined, false)"
|
|
382
|
-
:data-weight="reflectedProp('weight', 'weight', checkedProps.weight, undefined, false)"
|
|
383
|
-
:data-wrap="reflectedProp('wrap', 'wrap', checkedProps.wrap, undefined, false)"
|
|
381
|
+
:data-ui-text-prop-align="reflectedProp('align', 'align', checkedProps.align, undefined, false)"
|
|
382
|
+
:data-ui-text-prop-as="reflectedProp('as', 'as', checkedProps.as, undefined, false)"
|
|
383
|
+
:data-ui-text-prop-font="reflectedProp('font', 'font', checkedProps.font, undefined, false)"
|
|
384
|
+
:data-ui-text-prop-grow="reflectedProp('grow', 'grow', checkedProps.grow, undefined, false)"
|
|
385
|
+
:data-ui-text-prop-size="reflectedProp('size', 'size', checkedProps.size, undefined, false)"
|
|
386
|
+
:data-ui-text-prop-tone="reflectedProp('tone', 'tone', checkedProps.tone, undefined, false)"
|
|
387
|
+
:data-ui-text-prop-trim="reflectedProp('trim', 'trim', checkedProps.trim, undefined, false)"
|
|
388
|
+
:data-ui-text-prop-truncate="reflectedProp('truncate', 'truncate', checkedProps.truncate, undefined, false)"
|
|
389
|
+
:data-ui-text-prop-variant="reflectedProp('variant', 'variant', checkedProps.variant, undefined, false)"
|
|
390
|
+
:data-ui-text-prop-weight="reflectedProp('weight', 'weight', checkedProps.weight, undefined, false)"
|
|
391
|
+
:data-ui-text-prop-wrap="reflectedProp('wrap', 'wrap', checkedProps.wrap, undefined, false)"
|
|
384
392
|
:data-ui-text-state="hostState || undefined"
|
|
385
393
|
ref="@html-next/root"
|
|
386
394
|
><slot /></strong>
|
|
@@ -388,18 +396,20 @@ const hostState = computed(() =>
|
|
|
388
396
|
v-else-if="checkedProps.as === 'label'"
|
|
389
397
|
class="ui-text"
|
|
390
398
|
v-bind="nativeAttrs($attrs)"
|
|
399
|
+
data-hn
|
|
400
|
+
data-hn-ui-text
|
|
391
401
|
v-prop-validity="{ contract: propValidityContract, values: { ...props } }"
|
|
392
|
-
:data-align="reflectedProp('align', 'align', checkedProps.align, undefined, false)"
|
|
393
|
-
:data-as="reflectedProp('as', 'as', checkedProps.as, undefined, false)"
|
|
394
|
-
:data-font="reflectedProp('font', 'font', checkedProps.font, undefined, false)"
|
|
395
|
-
:data-grow="reflectedProp('grow', 'grow', checkedProps.grow, undefined, false)"
|
|
396
|
-
:data-size="reflectedProp('size', 'size', checkedProps.size, undefined, false)"
|
|
397
|
-
:data-tone="reflectedProp('tone', 'tone', checkedProps.tone, undefined, false)"
|
|
398
|
-
:data-trim="reflectedProp('trim', 'trim', checkedProps.trim, undefined, false)"
|
|
399
|
-
:data-truncate="reflectedProp('truncate', 'truncate', checkedProps.truncate, undefined, false)"
|
|
400
|
-
:data-variant="reflectedProp('variant', 'variant', checkedProps.variant, undefined, false)"
|
|
401
|
-
:data-weight="reflectedProp('weight', 'weight', checkedProps.weight, undefined, false)"
|
|
402
|
-
:data-wrap="reflectedProp('wrap', 'wrap', checkedProps.wrap, undefined, false)"
|
|
402
|
+
:data-ui-text-prop-align="reflectedProp('align', 'align', checkedProps.align, undefined, false)"
|
|
403
|
+
:data-ui-text-prop-as="reflectedProp('as', 'as', checkedProps.as, undefined, false)"
|
|
404
|
+
:data-ui-text-prop-font="reflectedProp('font', 'font', checkedProps.font, undefined, false)"
|
|
405
|
+
:data-ui-text-prop-grow="reflectedProp('grow', 'grow', checkedProps.grow, undefined, false)"
|
|
406
|
+
:data-ui-text-prop-size="reflectedProp('size', 'size', checkedProps.size, undefined, false)"
|
|
407
|
+
:data-ui-text-prop-tone="reflectedProp('tone', 'tone', checkedProps.tone, undefined, false)"
|
|
408
|
+
:data-ui-text-prop-trim="reflectedProp('trim', 'trim', checkedProps.trim, undefined, false)"
|
|
409
|
+
:data-ui-text-prop-truncate="reflectedProp('truncate', 'truncate', checkedProps.truncate, undefined, false)"
|
|
410
|
+
:data-ui-text-prop-variant="reflectedProp('variant', 'variant', checkedProps.variant, undefined, false)"
|
|
411
|
+
:data-ui-text-prop-weight="reflectedProp('weight', 'weight', checkedProps.weight, undefined, false)"
|
|
412
|
+
:data-ui-text-prop-wrap="reflectedProp('wrap', 'wrap', checkedProps.wrap, undefined, false)"
|
|
403
413
|
:data-ui-text-state="hostState || undefined"
|
|
404
414
|
ref="@html-next/root"
|
|
405
415
|
><slot /></label>
|
|
@@ -407,18 +417,20 @@ const hostState = computed(() =>
|
|
|
407
417
|
v-else-if="checkedProps.as === 'h2'"
|
|
408
418
|
class="ui-text"
|
|
409
419
|
v-bind="nativeAttrs($attrs)"
|
|
420
|
+
data-hn
|
|
421
|
+
data-hn-ui-text
|
|
410
422
|
v-prop-validity="{ contract: propValidityContract, values: { ...props } }"
|
|
411
|
-
:data-align="reflectedProp('align', 'align', checkedProps.align, undefined, false)"
|
|
412
|
-
:data-as="reflectedProp('as', 'as', checkedProps.as, undefined, false)"
|
|
413
|
-
:data-font="reflectedProp('font', 'font', checkedProps.font, undefined, false)"
|
|
414
|
-
:data-grow="reflectedProp('grow', 'grow', checkedProps.grow, undefined, false)"
|
|
415
|
-
:data-size="reflectedProp('size', 'size', checkedProps.size, undefined, false)"
|
|
416
|
-
:data-tone="reflectedProp('tone', 'tone', checkedProps.tone, undefined, false)"
|
|
417
|
-
:data-trim="reflectedProp('trim', 'trim', checkedProps.trim, undefined, false)"
|
|
418
|
-
:data-truncate="reflectedProp('truncate', 'truncate', checkedProps.truncate, undefined, false)"
|
|
419
|
-
:data-variant="reflectedProp('variant', 'variant', checkedProps.variant, undefined, false)"
|
|
420
|
-
:data-weight="reflectedProp('weight', 'weight', checkedProps.weight, undefined, false)"
|
|
421
|
-
:data-wrap="reflectedProp('wrap', 'wrap', checkedProps.wrap, undefined, false)"
|
|
423
|
+
:data-ui-text-prop-align="reflectedProp('align', 'align', checkedProps.align, undefined, false)"
|
|
424
|
+
:data-ui-text-prop-as="reflectedProp('as', 'as', checkedProps.as, undefined, false)"
|
|
425
|
+
:data-ui-text-prop-font="reflectedProp('font', 'font', checkedProps.font, undefined, false)"
|
|
426
|
+
:data-ui-text-prop-grow="reflectedProp('grow', 'grow', checkedProps.grow, undefined, false)"
|
|
427
|
+
:data-ui-text-prop-size="reflectedProp('size', 'size', checkedProps.size, undefined, false)"
|
|
428
|
+
:data-ui-text-prop-tone="reflectedProp('tone', 'tone', checkedProps.tone, undefined, false)"
|
|
429
|
+
:data-ui-text-prop-trim="reflectedProp('trim', 'trim', checkedProps.trim, undefined, false)"
|
|
430
|
+
:data-ui-text-prop-truncate="reflectedProp('truncate', 'truncate', checkedProps.truncate, undefined, false)"
|
|
431
|
+
:data-ui-text-prop-variant="reflectedProp('variant', 'variant', checkedProps.variant, undefined, false)"
|
|
432
|
+
:data-ui-text-prop-weight="reflectedProp('weight', 'weight', checkedProps.weight, undefined, false)"
|
|
433
|
+
:data-ui-text-prop-wrap="reflectedProp('wrap', 'wrap', checkedProps.wrap, undefined, false)"
|
|
422
434
|
:data-ui-text-state="hostState || undefined"
|
|
423
435
|
ref="@html-next/root"
|
|
424
436
|
>
|
|
@@ -428,18 +440,20 @@ const hostState = computed(() =>
|
|
|
428
440
|
v-else-if="checkedProps.as === 'h3'"
|
|
429
441
|
class="ui-text"
|
|
430
442
|
v-bind="nativeAttrs($attrs)"
|
|
443
|
+
data-hn
|
|
444
|
+
data-hn-ui-text
|
|
431
445
|
v-prop-validity="{ contract: propValidityContract, values: { ...props } }"
|
|
432
|
-
:data-align="reflectedProp('align', 'align', checkedProps.align, undefined, false)"
|
|
433
|
-
:data-as="reflectedProp('as', 'as', checkedProps.as, undefined, false)"
|
|
434
|
-
:data-font="reflectedProp('font', 'font', checkedProps.font, undefined, false)"
|
|
435
|
-
:data-grow="reflectedProp('grow', 'grow', checkedProps.grow, undefined, false)"
|
|
436
|
-
:data-size="reflectedProp('size', 'size', checkedProps.size, undefined, false)"
|
|
437
|
-
:data-tone="reflectedProp('tone', 'tone', checkedProps.tone, undefined, false)"
|
|
438
|
-
:data-trim="reflectedProp('trim', 'trim', checkedProps.trim, undefined, false)"
|
|
439
|
-
:data-truncate="reflectedProp('truncate', 'truncate', checkedProps.truncate, undefined, false)"
|
|
440
|
-
:data-variant="reflectedProp('variant', 'variant', checkedProps.variant, undefined, false)"
|
|
441
|
-
:data-weight="reflectedProp('weight', 'weight', checkedProps.weight, undefined, false)"
|
|
442
|
-
:data-wrap="reflectedProp('wrap', 'wrap', checkedProps.wrap, undefined, false)"
|
|
446
|
+
:data-ui-text-prop-align="reflectedProp('align', 'align', checkedProps.align, undefined, false)"
|
|
447
|
+
:data-ui-text-prop-as="reflectedProp('as', 'as', checkedProps.as, undefined, false)"
|
|
448
|
+
:data-ui-text-prop-font="reflectedProp('font', 'font', checkedProps.font, undefined, false)"
|
|
449
|
+
:data-ui-text-prop-grow="reflectedProp('grow', 'grow', checkedProps.grow, undefined, false)"
|
|
450
|
+
:data-ui-text-prop-size="reflectedProp('size', 'size', checkedProps.size, undefined, false)"
|
|
451
|
+
:data-ui-text-prop-tone="reflectedProp('tone', 'tone', checkedProps.tone, undefined, false)"
|
|
452
|
+
:data-ui-text-prop-trim="reflectedProp('trim', 'trim', checkedProps.trim, undefined, false)"
|
|
453
|
+
:data-ui-text-prop-truncate="reflectedProp('truncate', 'truncate', checkedProps.truncate, undefined, false)"
|
|
454
|
+
:data-ui-text-prop-variant="reflectedProp('variant', 'variant', checkedProps.variant, undefined, false)"
|
|
455
|
+
:data-ui-text-prop-weight="reflectedProp('weight', 'weight', checkedProps.weight, undefined, false)"
|
|
456
|
+
:data-ui-text-prop-wrap="reflectedProp('wrap', 'wrap', checkedProps.wrap, undefined, false)"
|
|
443
457
|
:data-ui-text-state="hostState || undefined"
|
|
444
458
|
ref="@html-next/root"
|
|
445
459
|
>
|
|
@@ -449,18 +463,20 @@ const hostState = computed(() =>
|
|
|
449
463
|
v-else-if="checkedProps.as === 'h4'"
|
|
450
464
|
class="ui-text"
|
|
451
465
|
v-bind="nativeAttrs($attrs)"
|
|
466
|
+
data-hn
|
|
467
|
+
data-hn-ui-text
|
|
452
468
|
v-prop-validity="{ contract: propValidityContract, values: { ...props } }"
|
|
453
|
-
:data-align="reflectedProp('align', 'align', checkedProps.align, undefined, false)"
|
|
454
|
-
:data-as="reflectedProp('as', 'as', checkedProps.as, undefined, false)"
|
|
455
|
-
:data-font="reflectedProp('font', 'font', checkedProps.font, undefined, false)"
|
|
456
|
-
:data-grow="reflectedProp('grow', 'grow', checkedProps.grow, undefined, false)"
|
|
457
|
-
:data-size="reflectedProp('size', 'size', checkedProps.size, undefined, false)"
|
|
458
|
-
:data-tone="reflectedProp('tone', 'tone', checkedProps.tone, undefined, false)"
|
|
459
|
-
:data-trim="reflectedProp('trim', 'trim', checkedProps.trim, undefined, false)"
|
|
460
|
-
:data-truncate="reflectedProp('truncate', 'truncate', checkedProps.truncate, undefined, false)"
|
|
461
|
-
:data-variant="reflectedProp('variant', 'variant', checkedProps.variant, undefined, false)"
|
|
462
|
-
:data-weight="reflectedProp('weight', 'weight', checkedProps.weight, undefined, false)"
|
|
463
|
-
:data-wrap="reflectedProp('wrap', 'wrap', checkedProps.wrap, undefined, false)"
|
|
469
|
+
:data-ui-text-prop-align="reflectedProp('align', 'align', checkedProps.align, undefined, false)"
|
|
470
|
+
:data-ui-text-prop-as="reflectedProp('as', 'as', checkedProps.as, undefined, false)"
|
|
471
|
+
:data-ui-text-prop-font="reflectedProp('font', 'font', checkedProps.font, undefined, false)"
|
|
472
|
+
:data-ui-text-prop-grow="reflectedProp('grow', 'grow', checkedProps.grow, undefined, false)"
|
|
473
|
+
:data-ui-text-prop-size="reflectedProp('size', 'size', checkedProps.size, undefined, false)"
|
|
474
|
+
:data-ui-text-prop-tone="reflectedProp('tone', 'tone', checkedProps.tone, undefined, false)"
|
|
475
|
+
:data-ui-text-prop-trim="reflectedProp('trim', 'trim', checkedProps.trim, undefined, false)"
|
|
476
|
+
:data-ui-text-prop-truncate="reflectedProp('truncate', 'truncate', checkedProps.truncate, undefined, false)"
|
|
477
|
+
:data-ui-text-prop-variant="reflectedProp('variant', 'variant', checkedProps.variant, undefined, false)"
|
|
478
|
+
:data-ui-text-prop-weight="reflectedProp('weight', 'weight', checkedProps.weight, undefined, false)"
|
|
479
|
+
:data-ui-text-prop-wrap="reflectedProp('wrap', 'wrap', checkedProps.wrap, undefined, false)"
|
|
464
480
|
:data-ui-text-state="hostState || undefined"
|
|
465
481
|
ref="@html-next/root"
|
|
466
482
|
>
|
|
@@ -470,18 +486,20 @@ const hostState = computed(() =>
|
|
|
470
486
|
v-else-if="checkedProps.as === 'h5'"
|
|
471
487
|
class="ui-text"
|
|
472
488
|
v-bind="nativeAttrs($attrs)"
|
|
489
|
+
data-hn
|
|
490
|
+
data-hn-ui-text
|
|
473
491
|
v-prop-validity="{ contract: propValidityContract, values: { ...props } }"
|
|
474
|
-
:data-align="reflectedProp('align', 'align', checkedProps.align, undefined, false)"
|
|
475
|
-
:data-as="reflectedProp('as', 'as', checkedProps.as, undefined, false)"
|
|
476
|
-
:data-font="reflectedProp('font', 'font', checkedProps.font, undefined, false)"
|
|
477
|
-
:data-grow="reflectedProp('grow', 'grow', checkedProps.grow, undefined, false)"
|
|
478
|
-
:data-size="reflectedProp('size', 'size', checkedProps.size, undefined, false)"
|
|
479
|
-
:data-tone="reflectedProp('tone', 'tone', checkedProps.tone, undefined, false)"
|
|
480
|
-
:data-trim="reflectedProp('trim', 'trim', checkedProps.trim, undefined, false)"
|
|
481
|
-
:data-truncate="reflectedProp('truncate', 'truncate', checkedProps.truncate, undefined, false)"
|
|
482
|
-
:data-variant="reflectedProp('variant', 'variant', checkedProps.variant, undefined, false)"
|
|
483
|
-
:data-weight="reflectedProp('weight', 'weight', checkedProps.weight, undefined, false)"
|
|
484
|
-
:data-wrap="reflectedProp('wrap', 'wrap', checkedProps.wrap, undefined, false)"
|
|
492
|
+
:data-ui-text-prop-align="reflectedProp('align', 'align', checkedProps.align, undefined, false)"
|
|
493
|
+
:data-ui-text-prop-as="reflectedProp('as', 'as', checkedProps.as, undefined, false)"
|
|
494
|
+
:data-ui-text-prop-font="reflectedProp('font', 'font', checkedProps.font, undefined, false)"
|
|
495
|
+
:data-ui-text-prop-grow="reflectedProp('grow', 'grow', checkedProps.grow, undefined, false)"
|
|
496
|
+
:data-ui-text-prop-size="reflectedProp('size', 'size', checkedProps.size, undefined, false)"
|
|
497
|
+
:data-ui-text-prop-tone="reflectedProp('tone', 'tone', checkedProps.tone, undefined, false)"
|
|
498
|
+
:data-ui-text-prop-trim="reflectedProp('trim', 'trim', checkedProps.trim, undefined, false)"
|
|
499
|
+
:data-ui-text-prop-truncate="reflectedProp('truncate', 'truncate', checkedProps.truncate, undefined, false)"
|
|
500
|
+
:data-ui-text-prop-variant="reflectedProp('variant', 'variant', checkedProps.variant, undefined, false)"
|
|
501
|
+
:data-ui-text-prop-weight="reflectedProp('weight', 'weight', checkedProps.weight, undefined, false)"
|
|
502
|
+
:data-ui-text-prop-wrap="reflectedProp('wrap', 'wrap', checkedProps.wrap, undefined, false)"
|
|
485
503
|
:data-ui-text-state="hostState || undefined"
|
|
486
504
|
ref="@html-next/root"
|
|
487
505
|
>
|
|
@@ -491,18 +509,20 @@ const hostState = computed(() =>
|
|
|
491
509
|
v-else-if="checkedProps.as === 'h6'"
|
|
492
510
|
class="ui-text"
|
|
493
511
|
v-bind="nativeAttrs($attrs)"
|
|
512
|
+
data-hn
|
|
513
|
+
data-hn-ui-text
|
|
494
514
|
v-prop-validity="{ contract: propValidityContract, values: { ...props } }"
|
|
495
|
-
:data-align="reflectedProp('align', 'align', checkedProps.align, undefined, false)"
|
|
496
|
-
:data-as="reflectedProp('as', 'as', checkedProps.as, undefined, false)"
|
|
497
|
-
:data-font="reflectedProp('font', 'font', checkedProps.font, undefined, false)"
|
|
498
|
-
:data-grow="reflectedProp('grow', 'grow', checkedProps.grow, undefined, false)"
|
|
499
|
-
:data-size="reflectedProp('size', 'size', checkedProps.size, undefined, false)"
|
|
500
|
-
:data-tone="reflectedProp('tone', 'tone', checkedProps.tone, undefined, false)"
|
|
501
|
-
:data-trim="reflectedProp('trim', 'trim', checkedProps.trim, undefined, false)"
|
|
502
|
-
:data-truncate="reflectedProp('truncate', 'truncate', checkedProps.truncate, undefined, false)"
|
|
503
|
-
:data-variant="reflectedProp('variant', 'variant', checkedProps.variant, undefined, false)"
|
|
504
|
-
:data-weight="reflectedProp('weight', 'weight', checkedProps.weight, undefined, false)"
|
|
505
|
-
:data-wrap="reflectedProp('wrap', 'wrap', checkedProps.wrap, undefined, false)"
|
|
515
|
+
:data-ui-text-prop-align="reflectedProp('align', 'align', checkedProps.align, undefined, false)"
|
|
516
|
+
:data-ui-text-prop-as="reflectedProp('as', 'as', checkedProps.as, undefined, false)"
|
|
517
|
+
:data-ui-text-prop-font="reflectedProp('font', 'font', checkedProps.font, undefined, false)"
|
|
518
|
+
:data-ui-text-prop-grow="reflectedProp('grow', 'grow', checkedProps.grow, undefined, false)"
|
|
519
|
+
:data-ui-text-prop-size="reflectedProp('size', 'size', checkedProps.size, undefined, false)"
|
|
520
|
+
:data-ui-text-prop-tone="reflectedProp('tone', 'tone', checkedProps.tone, undefined, false)"
|
|
521
|
+
:data-ui-text-prop-trim="reflectedProp('trim', 'trim', checkedProps.trim, undefined, false)"
|
|
522
|
+
:data-ui-text-prop-truncate="reflectedProp('truncate', 'truncate', checkedProps.truncate, undefined, false)"
|
|
523
|
+
:data-ui-text-prop-variant="reflectedProp('variant', 'variant', checkedProps.variant, undefined, false)"
|
|
524
|
+
:data-ui-text-prop-weight="reflectedProp('weight', 'weight', checkedProps.weight, undefined, false)"
|
|
525
|
+
:data-ui-text-prop-wrap="reflectedProp('wrap', 'wrap', checkedProps.wrap, undefined, false)"
|
|
506
526
|
:data-ui-text-state="hostState || undefined"
|
|
507
527
|
ref="@html-next/root"
|
|
508
528
|
>
|
|
@@ -512,18 +532,20 @@ const hostState = computed(() =>
|
|
|
512
532
|
v-else
|
|
513
533
|
class="ui-text"
|
|
514
534
|
v-bind="nativeAttrs($attrs)"
|
|
535
|
+
data-hn
|
|
536
|
+
data-hn-ui-text
|
|
515
537
|
v-prop-validity="{ contract: propValidityContract, values: { ...props } }"
|
|
516
|
-
:data-align="reflectedProp('align', 'align', checkedProps.align, undefined, false)"
|
|
517
|
-
:data-as="reflectedProp('as', 'as', checkedProps.as, undefined, false)"
|
|
518
|
-
:data-font="reflectedProp('font', 'font', checkedProps.font, undefined, false)"
|
|
519
|
-
:data-grow="reflectedProp('grow', 'grow', checkedProps.grow, undefined, false)"
|
|
520
|
-
:data-size="reflectedProp('size', 'size', checkedProps.size, undefined, false)"
|
|
521
|
-
:data-tone="reflectedProp('tone', 'tone', checkedProps.tone, undefined, false)"
|
|
522
|
-
:data-trim="reflectedProp('trim', 'trim', checkedProps.trim, undefined, false)"
|
|
523
|
-
:data-truncate="reflectedProp('truncate', 'truncate', checkedProps.truncate, undefined, false)"
|
|
524
|
-
:data-variant="reflectedProp('variant', 'variant', checkedProps.variant, undefined, false)"
|
|
525
|
-
:data-weight="reflectedProp('weight', 'weight', checkedProps.weight, undefined, false)"
|
|
526
|
-
:data-wrap="reflectedProp('wrap', 'wrap', checkedProps.wrap, undefined, false)"
|
|
538
|
+
:data-ui-text-prop-align="reflectedProp('align', 'align', checkedProps.align, undefined, false)"
|
|
539
|
+
:data-ui-text-prop-as="reflectedProp('as', 'as', checkedProps.as, undefined, false)"
|
|
540
|
+
:data-ui-text-prop-font="reflectedProp('font', 'font', checkedProps.font, undefined, false)"
|
|
541
|
+
:data-ui-text-prop-grow="reflectedProp('grow', 'grow', checkedProps.grow, undefined, false)"
|
|
542
|
+
:data-ui-text-prop-size="reflectedProp('size', 'size', checkedProps.size, undefined, false)"
|
|
543
|
+
:data-ui-text-prop-tone="reflectedProp('tone', 'tone', checkedProps.tone, undefined, false)"
|
|
544
|
+
:data-ui-text-prop-trim="reflectedProp('trim', 'trim', checkedProps.trim, undefined, false)"
|
|
545
|
+
:data-ui-text-prop-truncate="reflectedProp('truncate', 'truncate', checkedProps.truncate, undefined, false)"
|
|
546
|
+
:data-ui-text-prop-variant="reflectedProp('variant', 'variant', checkedProps.variant, undefined, false)"
|
|
547
|
+
:data-ui-text-prop-weight="reflectedProp('weight', 'weight', checkedProps.weight, undefined, false)"
|
|
548
|
+
:data-ui-text-prop-wrap="reflectedProp('wrap', 'wrap', checkedProps.wrap, undefined, false)"
|
|
527
549
|
:data-ui-text-state="hostState || undefined"
|
|
528
550
|
ref="@html-next/root"
|
|
529
551
|
>
|
|
@@ -550,113 +572,113 @@ const hostState = computed(() =>
|
|
|
550
572
|
|
|
551
573
|
/* A component that sets its display still honours the hidden attribute on its root. */
|
|
552
574
|
|
|
553
|
-
@scope (.ui-text) {
|
|
554
|
-
:
|
|
575
|
+
@scope (.ui-text) to ([data-hn]) {
|
|
576
|
+
:global(:scope[data-ui-text-state~="grow"]:where([data-hn-ui-text])) {
|
|
555
577
|
flex: 1;
|
|
556
578
|
}
|
|
557
579
|
|
|
558
|
-
:scope:where(
|
|
580
|
+
:global(:scope:where([data-hn-ui-text])) {
|
|
559
581
|
margin: 0;
|
|
560
582
|
min-inline-size: 0;
|
|
561
583
|
color: var(--ui-text-primary);
|
|
562
584
|
text-align: start;
|
|
563
585
|
}
|
|
564
|
-
:
|
|
586
|
+
:global(:scope:is(h2, h3, h4, h5, h6):where([data-hn-ui-text])) {
|
|
565
587
|
font-size: inherit;
|
|
566
588
|
font-weight: inherit;
|
|
567
589
|
}
|
|
568
590
|
|
|
569
|
-
:
|
|
591
|
+
:global(:scope[data-ui-text-state~="size=xs"]:where([data-hn-ui-text])) {
|
|
570
592
|
font-size: var(--ui-font-size-xs);
|
|
571
593
|
line-height: var(--ui-line-height);
|
|
572
594
|
}
|
|
573
|
-
:
|
|
595
|
+
:global(:scope[data-ui-text-state~="size=sm"]:where([data-hn-ui-text])) {
|
|
574
596
|
font-size: var(--ui-font-size-sm);
|
|
575
597
|
line-height: var(--ui-line-height);
|
|
576
598
|
}
|
|
577
|
-
:
|
|
599
|
+
:global(:scope[data-ui-text-state~="size=md"]:where([data-hn-ui-text])) {
|
|
578
600
|
font-size: var(--ui-font-size-md);
|
|
579
601
|
line-height: var(--ui-line-height);
|
|
580
602
|
}
|
|
581
|
-
:
|
|
603
|
+
:global(:scope[data-ui-text-state~="size=lg"]:where([data-hn-ui-text])) {
|
|
582
604
|
font-size: var(--ui-font-size-lg);
|
|
583
605
|
line-height: var(--ui-line-height-relaxed);
|
|
584
606
|
}
|
|
585
|
-
:
|
|
607
|
+
:global(:scope[data-ui-text-state~="trim"]:where([data-hn-ui-text])) {
|
|
586
608
|
text-box-trim: trim-both;
|
|
587
609
|
text-box-edge: cap alphabetic;
|
|
588
610
|
}
|
|
589
611
|
|
|
590
|
-
:
|
|
612
|
+
:global(:scope[data-ui-text-state~="tone=secondary"]:where([data-hn-ui-text])) {
|
|
591
613
|
color: var(--ui-text-secondary);
|
|
592
614
|
}
|
|
593
|
-
:
|
|
615
|
+
:global(:scope[data-ui-text-state~="tone=muted"]:where([data-hn-ui-text])) {
|
|
594
616
|
color: var(--ui-text-muted);
|
|
595
617
|
}
|
|
596
|
-
:
|
|
618
|
+
:global(:scope[data-ui-text-state~="tone=accent"]:where([data-hn-ui-text])) {
|
|
597
619
|
color: var(--ui-accent-active);
|
|
598
620
|
}
|
|
599
|
-
:
|
|
621
|
+
:global(:scope[data-ui-text-state~="tone=danger"]:where([data-hn-ui-text])) {
|
|
600
622
|
color: var(--ui-danger-subtle-text);
|
|
601
623
|
}
|
|
602
|
-
:
|
|
624
|
+
:global(:scope[data-ui-text-state~="tone=success"]:where([data-hn-ui-text])) {
|
|
603
625
|
color: var(--ui-success-subtle-text);
|
|
604
626
|
}
|
|
605
|
-
:
|
|
627
|
+
:global(:scope[data-ui-text-state~="tone=info"]:where([data-hn-ui-text])) {
|
|
606
628
|
color: var(--ui-info-subtle-text);
|
|
607
629
|
}
|
|
608
|
-
:
|
|
630
|
+
:global(:scope[data-ui-text-state~="tone=warning"]:where([data-hn-ui-text])) {
|
|
609
631
|
color: var(--ui-warning-subtle-text);
|
|
610
632
|
}
|
|
611
633
|
|
|
612
|
-
:
|
|
634
|
+
:global(:scope[data-ui-text-state~="weight=normal"]:where([data-hn-ui-text])) {
|
|
613
635
|
font-weight: var(--ui-font-normal);
|
|
614
636
|
}
|
|
615
|
-
:
|
|
637
|
+
:global(:scope[data-ui-text-state~="weight=medium"]:where([data-hn-ui-text])) {
|
|
616
638
|
font-weight: var(--ui-font-medium);
|
|
617
639
|
}
|
|
618
|
-
:
|
|
640
|
+
:global(:scope[data-ui-text-state~="weight=semibold"]:where([data-hn-ui-text])) {
|
|
619
641
|
font-weight: var(--ui-font-semibold);
|
|
620
642
|
}
|
|
621
643
|
|
|
622
|
-
:
|
|
644
|
+
:global(:scope[data-ui-text-state~="variant=eyebrow"]:where([data-hn-ui-text])) {
|
|
623
645
|
font-size: var(--ui-font-size-xs);
|
|
624
646
|
font-weight: var(--ui-font-semibold);
|
|
625
647
|
letter-spacing: 0.06em;
|
|
626
648
|
text-transform: uppercase;
|
|
627
649
|
}
|
|
628
|
-
:
|
|
650
|
+
:global(:scope[data-ui-text-state~="variant=code"]:where([data-hn-ui-text])) {
|
|
629
651
|
font-family: var(--ui-font-family-mono);
|
|
630
652
|
}
|
|
631
|
-
:scope :
|
|
653
|
+
:global(:scope :where(:not([data-hn-ui-text])):is(a)) {
|
|
632
654
|
color: var(--ui-accent-active);
|
|
633
655
|
text-decoration: underline;
|
|
634
656
|
text-decoration-thickness: 0.06em;
|
|
635
657
|
text-underline-offset: 0.18em;
|
|
636
658
|
}
|
|
637
659
|
|
|
638
|
-
:
|
|
660
|
+
:global(:scope[data-ui-text-state~="truncate"]:where([data-hn-ui-text])) {
|
|
639
661
|
overflow: hidden;
|
|
640
662
|
text-overflow: ellipsis;
|
|
641
663
|
white-space: nowrap;
|
|
642
664
|
}
|
|
643
|
-
:
|
|
665
|
+
:global(:scope[data-ui-text-state~="trim"][data-ui-text-state~="truncate"]:where([data-hn-ui-text])) {
|
|
644
666
|
overflow-x: clip;
|
|
645
667
|
overflow-y: visible;
|
|
646
668
|
}
|
|
647
669
|
|
|
648
|
-
:
|
|
670
|
+
:global(:scope[data-ui-text-state~="align=center"]:where([data-hn-ui-text])) {
|
|
649
671
|
text-align: center;
|
|
650
672
|
}
|
|
651
673
|
|
|
652
|
-
:
|
|
674
|
+
:global(:scope[data-ui-text-state~="font=sans"]:where([data-hn-ui-text])) {
|
|
653
675
|
font-family: var(--ui-font-family-sans, sans-serif);
|
|
654
676
|
}
|
|
655
677
|
|
|
656
|
-
:
|
|
678
|
+
:global(:scope[data-ui-text-state~="wrap=anywhere"]:where([data-hn-ui-text])) {
|
|
657
679
|
overflow-wrap: anywhere;
|
|
658
680
|
}
|
|
659
|
-
:
|
|
681
|
+
:global(:scope[hidden]:where([data-hn-ui-text])) {
|
|
660
682
|
display: none;
|
|
661
683
|
}
|
|
662
684
|
}
|