@threadlabs/looma 0.28.13 → 0.28.15
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/image-delivery.d.ts +10 -1
- package/package.json +3 -3
- package/styles/ui-action-bar.css +1 -1
- package/styles/ui-affordance-scope.css +1 -1
- package/styles/ui-avatar-group.css +1 -1
- package/styles/ui-avatar.css +1 -1
- package/styles/ui-badge.css +1 -1
- package/styles/ui-breadcrumb-item.css +1 -1
- package/styles/ui-breadcrumbs.css +1 -1
- package/styles/ui-button.css +1 -1
- package/styles/ui-callout.css +1 -1
- package/styles/ui-card.css +1 -1
- package/styles/ui-checkbox.css +1 -1
- package/styles/ui-cluster.css +1 -1
- package/styles/ui-combobox.css +1 -1
- package/styles/ui-container.css +1 -1
- package/styles/ui-context-menu.css +1 -1
- package/styles/ui-cover.css +1 -1
- package/styles/ui-description-item.css +1 -1
- package/styles/ui-description-list.css +1 -1
- package/styles/ui-dialog.css +1 -1
- package/styles/ui-disclosure.css +2 -2
- package/styles/ui-editable.css +1 -1
- package/styles/ui-editor-block-actions.css +1 -1
- package/styles/ui-editor-chip-editor.css +1 -1
- package/styles/ui-editor-code-language.css +1 -1
- package/styles/ui-editor-image-toolbar.css +1 -1
- package/styles/ui-editor-insert-table-grid.css +1 -1
- package/styles/ui-editor-link-card.css +1 -1
- package/styles/ui-editor-link-form.css +1 -1
- package/styles/ui-editor-mention-menu-item.css +1 -1
- package/styles/ui-editor-mention-menu.css +1 -1
- package/styles/ui-editor-slash-menu-group.css +1 -1
- package/styles/ui-editor-slash-menu-item.css +1 -1
- package/styles/ui-editor-slash-menu.css +1 -1
- package/styles/ui-editor-surface.css +1 -1
- package/styles/ui-editor-table-context-menu.css +1 -1
- package/styles/ui-editor-table-overlay.css +1 -1
- package/styles/ui-editor-table-toolbar.css +1 -1
- package/styles/ui-editor-toolbar.css +1 -1
- package/styles/ui-floating-action-button.css +1 -1
- package/styles/ui-form-field.css +1 -1
- package/styles/ui-grid.css +1 -1
- package/styles/ui-icon-button.css +1 -1
- package/styles/ui-icon.css +1 -1
- package/styles/ui-image.css +1 -1
- package/styles/ui-input-group.css +1 -1
- package/styles/ui-input.css +1 -1
- package/styles/ui-list-item.css +1 -1
- package/styles/ui-list.css +1 -1
- package/styles/ui-listbox.css +1 -1
- package/styles/ui-menu-group.css +1 -1
- package/styles/ui-menu-item.css +1 -1
- package/styles/ui-menu.css +2 -2
- package/styles/ui-meter.css +1 -1
- package/styles/ui-nav-item.css +1 -1
- package/styles/ui-page-header.css +1 -1
- package/styles/ui-popover.css +2 -2
- package/styles/ui-radio-group.css +1 -1
- package/styles/ui-radio.css +1 -1
- package/styles/ui-reel.css +1 -1
- package/styles/ui-scroll-area.css +1 -1
- package/styles/ui-search-result-row.css +1 -1
- package/styles/ui-search-shell.css +1 -1
- package/styles/ui-section.css +1 -1
- package/styles/ui-select.css +1 -1
- package/styles/ui-separator.css +1 -1
- package/styles/ui-sidebar.css +2 -2
- package/styles/ui-spinner.css +1 -1
- package/styles/ui-stack.css +1 -1
- package/styles/ui-status-message.css +1 -1
- package/styles/ui-swatch.css +1 -1
- package/styles/ui-switch.css +1 -1
- package/styles/ui-switcher.css +1 -1
- package/styles/ui-table.css +1 -1
- package/styles/ui-tabs.css +1 -1
- package/styles/ui-text.css +1 -1
- package/styles/ui-textarea.css +1 -1
- package/styles/ui-toast-region.css +1 -1
- package/styles/ui-toast.css +1 -1
- package/styles/ui-tooltip.css +1 -1
- package/styles/ui-top-bar.css +1 -1
- package/styles/ui-tree-item.css +1 -1
- package/styles/ui-tree.css +1 -1
- package/vanilla/UiActionBar.d.ts +1 -1
- package/vanilla/UiActionBar.js +1 -1
- package/vanilla/UiAffordanceScope.d.ts +1 -1
- package/vanilla/UiAffordanceScope.js +2 -2
- package/vanilla/UiAvatar.d.ts +1 -1
- package/vanilla/UiAvatar.js +2 -2
- package/vanilla/UiAvatarGroup.d.ts +1 -1
- package/vanilla/UiAvatarGroup.js +2 -2
- package/vanilla/UiBadge.d.ts +1 -1
- package/vanilla/UiBadge.js +2 -2
- package/vanilla/UiBreadcrumbItem.d.ts +1 -1
- package/vanilla/UiBreadcrumbItem.js +2 -2
- package/vanilla/UiBreadcrumbs.d.ts +1 -1
- package/vanilla/UiBreadcrumbs.js +2 -2
- package/vanilla/UiButton.d.ts +1 -1
- package/vanilla/UiButton.js +3 -3
- package/vanilla/UiCallout.d.ts +1 -1
- package/vanilla/UiCallout.js +2 -2
- package/vanilla/UiCard.d.ts +1 -1
- package/vanilla/UiCard.js +3 -3
- package/vanilla/UiCheckbox.d.ts +1 -1
- package/vanilla/UiCheckbox.js +2 -2
- package/vanilla/UiCluster.d.ts +1 -1
- package/vanilla/UiCluster.js +2 -2
- package/vanilla/UiCombobox.d.ts +1 -1
- package/vanilla/UiCombobox.js +2 -2
- package/vanilla/UiContainer.d.ts +1 -1
- package/vanilla/UiContainer.js +2 -2
- package/vanilla/UiContextMenu.d.ts +1 -1
- package/vanilla/UiContextMenu.js +2 -2
- package/vanilla/UiCover.d.ts +1 -1
- package/vanilla/UiCover.js +2 -2
- package/vanilla/UiDescriptionItem.d.ts +1 -1
- package/vanilla/UiDescriptionItem.js +2 -2
- package/vanilla/UiDescriptionList.d.ts +1 -1
- package/vanilla/UiDescriptionList.js +2 -2
- package/vanilla/UiDialog.d.ts +1 -1
- package/vanilla/UiDialog.js +2 -2
- package/vanilla/UiDisclosure.d.ts +1 -1
- package/vanilla/UiDisclosure.js +2 -2
- package/vanilla/UiEditable.d.ts +1 -1
- package/vanilla/UiEditable.js +2 -2
- package/vanilla/UiEditorBlockActions.d.ts +1 -1
- package/vanilla/UiEditorBlockActions.js +2 -2
- package/vanilla/UiEditorChipEditor.d.ts +1 -1
- package/vanilla/UiEditorChipEditor.js +2 -2
- package/vanilla/UiEditorCodeLanguage.d.ts +1 -1
- package/vanilla/UiEditorCodeLanguage.js +2 -2
- package/vanilla/UiEditorImageToolbar.d.ts +1 -1
- package/vanilla/UiEditorImageToolbar.js +2 -2
- package/vanilla/UiEditorInsertTableGrid.d.ts +1 -1
- package/vanilla/UiEditorInsertTableGrid.js +2 -2
- package/vanilla/UiEditorLinkCard.d.ts +1 -1
- package/vanilla/UiEditorLinkCard.js +2 -2
- package/vanilla/UiEditorLinkForm.d.ts +1 -1
- package/vanilla/UiEditorLinkForm.js +2 -2
- package/vanilla/UiEditorMentionMenu.d.ts +1 -1
- package/vanilla/UiEditorMentionMenu.js +2 -2
- package/vanilla/UiEditorMentionMenuItem.d.ts +1 -1
- package/vanilla/UiEditorMentionMenuItem.js +3 -3
- package/vanilla/UiEditorSlashMenu.d.ts +1 -1
- package/vanilla/UiEditorSlashMenu.js +2 -2
- package/vanilla/UiEditorSlashMenuGroup.d.ts +1 -1
- package/vanilla/UiEditorSlashMenuGroup.js +2 -2
- package/vanilla/UiEditorSlashMenuItem.d.ts +1 -1
- package/vanilla/UiEditorSlashMenuItem.js +3 -3
- package/vanilla/UiEditorSurface.d.ts +1 -1
- package/vanilla/UiEditorSurface.js +2 -2
- package/vanilla/UiEditorTableContextMenu.d.ts +1 -1
- package/vanilla/UiEditorTableContextMenu.js +2 -2
- package/vanilla/UiEditorTableOverlay.d.ts +1 -1
- package/vanilla/UiEditorTableOverlay.js +2 -2
- package/vanilla/UiEditorTableToolbar.d.ts +1 -1
- package/vanilla/UiEditorTableToolbar.js +2 -2
- package/vanilla/UiEditorToolbar.d.ts +1 -1
- package/vanilla/UiEditorToolbar.js +2 -2
- package/vanilla/UiFloatingActionButton.d.ts +1 -1
- package/vanilla/UiFloatingActionButton.js +2 -2
- package/vanilla/UiFormField.d.ts +1 -1
- package/vanilla/UiFormField.js +2 -2
- package/vanilla/UiGrid.d.ts +1 -1
- package/vanilla/UiGrid.js +2 -2
- package/vanilla/UiIcon.d.ts +1 -1
- package/vanilla/UiIcon.js +2 -2
- package/vanilla/UiIconButton.d.ts +1 -1
- package/vanilla/UiIconButton.js +3 -3
- package/vanilla/UiImage.d.ts +1 -1
- package/vanilla/UiImage.js +2 -2
- package/vanilla/UiInput.d.ts +1 -1
- package/vanilla/UiInput.js +2 -2
- package/vanilla/UiInputGroup.d.ts +1 -1
- package/vanilla/UiInputGroup.js +2 -2
- package/vanilla/UiList.d.ts +1 -1
- package/vanilla/UiList.js +3 -3
- package/vanilla/UiListItem.d.ts +1 -1
- package/vanilla/UiListItem.js +2 -2
- package/vanilla/UiListbox.d.ts +1 -1
- package/vanilla/UiListbox.js +2 -2
- package/vanilla/UiMenu.d.ts +1 -1
- package/vanilla/UiMenu.js +2 -2
- package/vanilla/UiMenuGroup.d.ts +1 -1
- package/vanilla/UiMenuGroup.js +2 -2
- package/vanilla/UiMenuItem.d.ts +1 -1
- package/vanilla/UiMenuItem.js +4 -4
- package/vanilla/UiMeter.d.ts +1 -1
- package/vanilla/UiMeter.js +2 -2
- package/vanilla/UiNavItem.d.ts +1 -1
- package/vanilla/UiNavItem.js +3 -3
- package/vanilla/UiPageHeader.d.ts +1 -1
- package/vanilla/UiPageHeader.js +2 -2
- package/vanilla/UiPopover.d.ts +1 -1
- package/vanilla/UiPopover.js +2 -2
- package/vanilla/UiRadio.d.ts +1 -1
- package/vanilla/UiRadio.js +2 -2
- package/vanilla/UiRadioGroup.d.ts +1 -1
- package/vanilla/UiRadioGroup.js +2 -2
- package/vanilla/UiReel.d.ts +1 -1
- package/vanilla/UiReel.js +2 -2
- package/vanilla/UiScrollArea.d.ts +1 -1
- package/vanilla/UiScrollArea.js +2 -2
- package/vanilla/UiSearchResultRow.d.ts +1 -1
- package/vanilla/UiSearchResultRow.js +2 -2
- package/vanilla/UiSearchShell.d.ts +1 -1
- package/vanilla/UiSearchShell.js +2 -2
- package/vanilla/UiSection.d.ts +1 -1
- package/vanilla/UiSection.js +2 -2
- package/vanilla/UiSelect.d.ts +1 -1
- package/vanilla/UiSelect.js +2 -2
- package/vanilla/UiSeparator.d.ts +1 -1
- package/vanilla/UiSeparator.js +2 -2
- package/vanilla/UiSidebar.d.ts +1 -1
- package/vanilla/UiSidebar.js +2 -2
- package/vanilla/UiSpinner.d.ts +1 -1
- package/vanilla/UiSpinner.js +2 -2
- package/vanilla/UiStack.d.ts +1 -1
- package/vanilla/UiStack.js +2 -2
- package/vanilla/UiStatusMessage.d.ts +1 -1
- package/vanilla/UiStatusMessage.js +2 -2
- package/vanilla/UiSwatch.d.ts +1 -1
- package/vanilla/UiSwatch.js +2 -2
- package/vanilla/UiSwitch.d.ts +1 -1
- package/vanilla/UiSwitch.js +2 -2
- package/vanilla/UiSwitcher.d.ts +1 -1
- package/vanilla/UiSwitcher.js +2 -2
- package/vanilla/UiTable.d.ts +1 -1
- package/vanilla/UiTable.js +2 -2
- package/vanilla/UiTabs.d.ts +1 -1
- package/vanilla/UiTabs.js +2 -2
- package/vanilla/UiText.d.ts +1 -1
- package/vanilla/UiText.js +3 -3
- package/vanilla/UiTextarea.d.ts +1 -1
- package/vanilla/UiTextarea.js +2 -2
- package/vanilla/UiToast.d.ts +1 -1
- package/vanilla/UiToast.js +2 -2
- package/vanilla/UiToastRegion.d.ts +1 -1
- package/vanilla/UiToastRegion.js +2 -2
- package/vanilla/UiTooltip.d.ts +1 -1
- package/vanilla/UiTooltip.js +2 -2
- package/vanilla/UiTopBar.d.ts +1 -1
- package/vanilla/UiTopBar.js +1 -1
- package/vanilla/UiTree.d.ts +1 -1
- package/vanilla/UiTree.js +2 -2
- package/vanilla/UiTreeItem.d.ts +1 -1
- package/vanilla/UiTreeItem.js +3 -3
- package/vue/UiActionBar.vue +23 -15
- package/vue/UiAffordanceScope.vue +11 -9
- package/vue/UiAvatar.vue +34 -27
- package/vue/UiAvatarGroup.vue +22 -17
- package/vue/UiBadge.vue +78 -69
- package/vue/UiBreadcrumbItem.vue +17 -14
- package/vue/UiBreadcrumbs.vue +9 -7
- package/vue/UiButton.vue +150 -138
- package/vue/UiCallout.vue +68 -43
- package/vue/UiCard.vue +52 -44
- package/vue/UiCheckbox.vue +48 -40
- package/vue/UiCluster.vue +35 -33
- package/vue/UiCombobox.vue +158 -107
- package/vue/UiContainer.vue +16 -14
- package/vue/UiContextMenu.vue +24 -13
- package/vue/UiCover.vue +10 -8
- package/vue/UiDescriptionItem.vue +11 -9
- package/vue/UiDescriptionList.vue +20 -18
- package/vue/UiDialog.vue +41 -37
- package/vue/UiDisclosure.vue +65 -51
- package/vue/UiEditable.vue +34 -33
- package/vue/UiEditorBlockActions.vue +4 -3
- package/vue/UiEditorChipEditor.vue +4 -3
- package/vue/UiEditorCodeLanguage.vue +5 -4
- package/vue/UiEditorImageToolbar.vue +5 -4
- package/vue/UiEditorInsertTableGrid.vue +19 -18
- package/vue/UiEditorLinkCard.vue +7 -6
- package/vue/UiEditorLinkForm.vue +15 -14
- package/vue/UiEditorMentionMenu.vue +52 -37
- package/vue/UiEditorMentionMenuItem.vue +30 -20
- package/vue/UiEditorSlashMenu.vue +49 -36
- package/vue/UiEditorSlashMenuGroup.vue +16 -10
- package/vue/UiEditorSlashMenuItem.vue +36 -26
- package/vue/UiEditorSurface.vue +8 -6
- package/vue/UiEditorTableContextMenu.vue +26 -25
- package/vue/UiEditorTableOverlay.vue +56 -51
- package/vue/UiEditorTableToolbar.vue +37 -36
- package/vue/UiEditorToolbar.vue +24 -20
- package/vue/UiFloatingActionButton.vue +17 -15
- package/vue/UiFormField.vue +27 -22
- package/vue/UiGrid.vue +17 -15
- package/vue/UiIcon.vue +7 -6
- package/vue/UiIconButton.vue +75 -70
- package/vue/UiImage.vue +61 -46
- package/vue/UiInput.vue +28 -28
- package/vue/UiInputGroup.vue +48 -43
- package/vue/UiList.vue +25 -21
- package/vue/UiListItem.vue +54 -44
- package/vue/UiListbox.vue +29 -22
- package/vue/UiMenu.vue +25 -23
- package/vue/UiMenuGroup.vue +11 -7
- package/vue/UiMenuItem.vue +52 -43
- package/vue/UiMeter.vue +42 -41
- package/vue/UiNavItem.vue +60 -47
- package/vue/UiPageHeader.vue +27 -20
- package/vue/UiPopover.vue +21 -19
- package/vue/UiRadio.vue +32 -28
- package/vue/UiRadioGroup.vue +24 -19
- package/vue/UiReel.vue +24 -22
- package/vue/UiScrollArea.vue +30 -24
- package/vue/UiSearchResultRow.vue +41 -26
- package/vue/UiSearchShell.vue +37 -29
- package/vue/UiSection.vue +31 -24
- package/vue/UiSelect.vue +23 -21
- package/vue/UiSeparator.vue +14 -13
- package/vue/UiSidebar.vue +48 -40
- package/vue/UiSpinner.vue +14 -13
- package/vue/UiStack.vue +26 -24
- package/vue/UiStatusMessage.vue +26 -21
- package/vue/UiSwatch.vue +13 -12
- package/vue/UiSwitch.vue +37 -33
- package/vue/UiSwitcher.vue +27 -22
- package/vue/UiTable.vue +23 -19
- package/vue/UiTabs.vue +48 -33
- package/vue/UiText.vue +173 -151
- package/vue/UiTextarea.vue +27 -27
- package/vue/UiToast.vue +17 -15
- package/vue/UiToastRegion.vue +36 -31
- package/vue/UiTooltip.vue +40 -34
- package/vue/UiTopBar.vue +17 -13
- package/vue/UiTree.vue +17 -15
- package/vue/UiTreeItem.vue +202 -133
- package/vue/chunks/UiActionBar.js +21 -6
- package/vue/chunks/UiAffordanceScope.js +8 -6
- package/vue/chunks/UiAvatar.js +30 -20
- package/vue/chunks/UiAvatarGroup.js +16 -13
- package/vue/chunks/UiBadge.js +19 -13
- package/vue/chunks/UiBreadcrumbItem.js +13 -7
- package/vue/chunks/UiBreadcrumbs.js +9 -4
- package/vue/chunks/UiButton.js +158 -124
- package/vue/chunks/UiCallout.js +105 -37
- package/vue/chunks/UiCard.js +50 -42
- package/vue/chunks/UiCheckbox.js +32 -22
- package/vue/chunks/UiCluster.js +18 -16
- package/vue/chunks/UiCombobox.js +130 -73
- package/vue/chunks/UiContainer.js +10 -8
- package/vue/chunks/UiContextMenu.js +7 -4
- package/vue/chunks/UiCover.js +7 -5
- package/vue/chunks/UiDescriptionItem.js +9 -3
- package/vue/chunks/UiDescriptionList.js +10 -8
- package/vue/chunks/UiDialog.js +26 -19
- package/vue/chunks/UiDisclosure.js +43 -25
- package/vue/chunks/UiEditable.js +25 -24
- package/vue/chunks/UiEditorBlockActions.js +4 -3
- package/vue/chunks/UiEditorChipEditor.js +4 -3
- package/vue/chunks/UiEditorCodeLanguage.js +5 -4
- package/vue/chunks/UiEditorImageToolbar.js +7 -6
- package/vue/chunks/UiEditorInsertTableGrid.js +10 -9
- package/vue/chunks/UiEditorLinkCard.js +11 -10
- package/vue/chunks/UiEditorLinkForm.js +26 -25
- package/vue/chunks/UiEditorMentionMenu.js +41 -24
- package/vue/chunks/UiEditorMentionMenuItem.js +23 -11
- package/vue/chunks/UiEditorSlashMenu.js +41 -20
- package/vue/chunks/UiEditorSlashMenuGroup.js +16 -5
- package/vue/chunks/UiEditorSlashMenuItem.js +28 -14
- package/vue/chunks/UiEditorSurface.js +6 -4
- package/vue/chunks/UiEditorTableContextMenu.js +14 -13
- package/vue/chunks/UiEditorTableOverlay.js +6 -5
- package/vue/chunks/UiEditorTableToolbar.js +14 -13
- package/vue/chunks/UiEditorToolbar.js +8 -5
- package/vue/chunks/UiFloatingActionButton.js +11 -9
- package/vue/chunks/UiFormField.js +30 -16
- package/vue/chunks/UiGrid.js +10 -8
- package/vue/chunks/UiIcon.js +6 -3
- package/vue/chunks/UiIconButton.js +33 -26
- package/vue/chunks/UiImage.js +31 -22
- package/vue/chunks/UiInput.js +17 -16
- package/vue/chunks/UiInputGroup.js +30 -16
- package/vue/chunks/UiList.js +24 -20
- package/vue/chunks/UiListItem.js +39 -22
- package/vue/chunks/UiListbox.js +35 -25
- package/vue/chunks/UiMenu.js +22 -17
- package/vue/chunks/UiMenuGroup.js +7 -4
- package/vue/chunks/UiMenuItem.js +57 -38
- package/vue/chunks/UiMeter.js +22 -21
- package/vue/chunks/UiNavItem.js +78 -42
- package/vue/chunks/UiPageHeader.js +30 -10
- package/vue/chunks/UiPopover.js +16 -11
- package/vue/chunks/UiRadio.js +26 -16
- package/vue/chunks/UiRadioGroup.js +24 -19
- package/vue/chunks/UiReel.js +11 -9
- package/vue/chunks/UiScrollArea.js +16 -13
- package/vue/chunks/UiSearchResultRow.js +39 -19
- package/vue/chunks/UiSearchShell.js +36 -18
- package/vue/chunks/UiSection.js +31 -13
- package/vue/chunks/UiSelect.js +14 -12
- package/vue/chunks/UiSeparator.js +11 -10
- package/vue/chunks/UiSidebar.js +33 -23
- package/vue/chunks/UiSpinner.js +7 -6
- package/vue/chunks/UiStack.js +14 -12
- package/vue/chunks/UiStatusMessage.js +23 -11
- package/vue/chunks/UiSwatch.js +5 -4
- package/vue/chunks/UiSwitch.js +26 -16
- package/vue/chunks/UiSwitcher.js +13 -11
- package/vue/chunks/UiTable.js +9 -7
- package/vue/chunks/UiTabs.js +23 -18
- package/vue/chunks/UiText.js +277 -255
- package/vue/chunks/UiTextarea.js +21 -20
- package/vue/chunks/UiToast.js +13 -7
- package/vue/chunks/UiToastRegion.js +15 -8
- package/vue/chunks/UiTooltip.js +27 -19
- package/vue/chunks/UiTopBar.js +21 -6
- package/vue/chunks/UiTree.js +18 -16
- package/vue/chunks/UiTreeItem.js +82 -45
- package/vue/chunks/_plugin-vue_export-helper.js +17 -4
- package/vue/components.css +1507 -1479
- package/vue/editor/LoomaEditor.d.ts +10 -1
- package/vue/editor/index.d.ts +1 -1
- package/vue/editor/index.js +25 -11
- package/vue/host.ts +26 -6
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!-- Generated by HTML Next 1.0.0-alpha.
|
|
1
|
+
<!-- Generated by HTML Next 1.0.0-alpha.52 for Vue 3.5. Do not edit. -->
|
|
2
2
|
<script setup lang="ts">
|
|
3
3
|
import { computed, getCurrentInstance, provide, ref, watchSyncEffect } from 'vue'
|
|
4
4
|
import type { PropType } from 'vue'
|
|
@@ -492,14 +492,15 @@ useComponentHost(() => import('../components/ui-editor-table-toolbar/ui-editor-t
|
|
|
492
492
|
role="toolbar"
|
|
493
493
|
aria-label="Table actions"
|
|
494
494
|
v-bind="nativeAttrs($attrs)"
|
|
495
|
+
data-hn
|
|
495
496
|
:hidden="!checkedProps.open"
|
|
496
497
|
v-prop-validity="{ contract: propValidityContract, values: { ...props } }"
|
|
497
|
-
:data-actions="reflectedProp('actions', 'actions', checkedProps.actions, undefined, false)"
|
|
498
|
-
:data-cell-alignment="reflectedProp('cellAlignment', 'cell-alignment', checkedProps.cellAlignment, undefined, false)"
|
|
499
|
-
:data-cell-background="reflectedProp('cellBackground', 'cell-background', checkedProps.cellBackground, undefined, false)"
|
|
500
|
-
:data-header-column="reflectedProp('headerColumn', 'header-column', checkedProps.headerColumn, undefined, false)"
|
|
501
|
-
:data-header-row="reflectedProp('headerRow', 'header-row', checkedProps.headerRow, undefined, false)"
|
|
502
|
-
:data-open="reflectedProp('open', 'open', checkedProps.open, undefined, false)"
|
|
498
|
+
:data-ui-editor-table-toolbar-prop-actions="reflectedProp('actions', 'actions', checkedProps.actions, undefined, false)"
|
|
499
|
+
:data-ui-editor-table-toolbar-prop-cell-alignment="reflectedProp('cellAlignment', 'cell-alignment', checkedProps.cellAlignment, undefined, false)"
|
|
500
|
+
:data-ui-editor-table-toolbar-prop-cell-background="reflectedProp('cellBackground', 'cell-background', checkedProps.cellBackground, undefined, false)"
|
|
501
|
+
:data-ui-editor-table-toolbar-prop-header-column="reflectedProp('headerColumn', 'header-column', checkedProps.headerColumn, undefined, false)"
|
|
502
|
+
:data-ui-editor-table-toolbar-prop-header-row="reflectedProp('headerRow', 'header-row', checkedProps.headerRow, undefined, false)"
|
|
503
|
+
:data-ui-editor-table-toolbar-prop-open="reflectedProp('open', 'open', checkedProps.open, undefined, false)"
|
|
503
504
|
ref="root"
|
|
504
505
|
>
|
|
505
506
|
<div v-if="alignments.length" class="group" role="group" aria-label="Cell alignment">
|
|
@@ -624,8 +625,8 @@ useComponentHost(() => import('../components/ui-editor-table-toolbar/ui-editor-t
|
|
|
624
625
|
</template>
|
|
625
626
|
|
|
626
627
|
<style scoped>
|
|
627
|
-
@scope (.ui-editor-table-toolbar) to (
|
|
628
|
-
:
|
|
628
|
+
@scope (.ui-editor-table-toolbar) to ([data-hn]) {
|
|
629
|
+
:global(.looma-editor__mobile-toolbar-shell :scope) {
|
|
629
630
|
min-width: max-content;
|
|
630
631
|
min-height: 100%;
|
|
631
632
|
padding: 0;
|
|
@@ -635,15 +636,15 @@ useComponentHost(() => import('../components/ui-editor-table-toolbar/ui-editor-t
|
|
|
635
636
|
box-shadow: none;
|
|
636
637
|
backdrop-filter: none;
|
|
637
638
|
}
|
|
638
|
-
.looma-editor__mobile-toolbar-shell :scope button {
|
|
639
|
+
:global(.looma-editor__mobile-toolbar-shell :scope button) {
|
|
639
640
|
min-height: 44px;
|
|
640
641
|
background: transparent;
|
|
641
642
|
}
|
|
642
|
-
.looma-editor__mobile-toolbar-shell :scope button.active,
|
|
643
|
-
.looma-editor__mobile-toolbar-shell :scope button.selected {
|
|
643
|
+
:global(.looma-editor__mobile-toolbar-shell :scope button.active),
|
|
644
|
+
:global(.looma-editor__mobile-toolbar-shell :scope button.selected) {
|
|
644
645
|
background: var(--ui-accent-soft, var(--ui-accent-subtle));
|
|
645
646
|
}
|
|
646
|
-
:
|
|
647
|
+
:global(:scope) {
|
|
647
648
|
display: inline-flex;
|
|
648
649
|
align-items: center;
|
|
649
650
|
gap: var(--ui-space-1);
|
|
@@ -654,21 +655,21 @@ useComponentHost(() => import('../components/ui-editor-table-toolbar/ui-editor-t
|
|
|
654
655
|
box-shadow: var(--ui-shadow-lg, 0 10px 15px -3px rgb(0 0 0 / 0.1));
|
|
655
656
|
backdrop-filter: blur(10px);
|
|
656
657
|
}
|
|
657
|
-
.group {
|
|
658
|
+
:global(.group) {
|
|
658
659
|
display: inline-flex;
|
|
659
660
|
align-items: center;
|
|
660
661
|
gap: 2px;
|
|
661
662
|
overflow: hidden;
|
|
662
663
|
}
|
|
663
|
-
.sep {
|
|
664
|
+
:global(.sep) {
|
|
664
665
|
width: 1px;
|
|
665
666
|
align-self: stretch;
|
|
666
667
|
background: var(--ui-border-divider);
|
|
667
668
|
}
|
|
668
|
-
.overflow {
|
|
669
|
+
:global(.overflow) {
|
|
669
670
|
position: relative;
|
|
670
671
|
}
|
|
671
|
-
:scope button {
|
|
672
|
+
:global(:scope button) {
|
|
672
673
|
display: inline-flex;
|
|
673
674
|
align-items: center;
|
|
674
675
|
justify-content: center;
|
|
@@ -685,39 +686,39 @@ useComponentHost(() => import('../components/ui-editor-table-toolbar/ui-editor-t
|
|
|
685
686
|
padding: var(--ui-space-2) var(--ui-space-2);
|
|
686
687
|
white-space: nowrap;
|
|
687
688
|
}
|
|
688
|
-
:scope button:hover {
|
|
689
|
+
:global(:scope button:hover) {
|
|
689
690
|
background: var(--ui-surface-hover);
|
|
690
691
|
}
|
|
691
|
-
:scope button.active {
|
|
692
|
+
:global(:scope button.active) {
|
|
692
693
|
background: var(--ui-accent-soft, var(--ui-accent-subtle));
|
|
693
694
|
color: var(--ui-accent-active);
|
|
694
695
|
}
|
|
695
|
-
.group button {
|
|
696
|
+
:global(.group button) {
|
|
696
697
|
border-radius: var(--ui-radius-sm);
|
|
697
698
|
}
|
|
698
|
-
.group button + button {
|
|
699
|
+
:global(.group button + button) {
|
|
699
700
|
border-left: 0;
|
|
700
701
|
}
|
|
701
|
-
:scope .more {
|
|
702
|
+
:global(:scope .more) {
|
|
702
703
|
border: 0;
|
|
703
704
|
border-radius: var(--ui-radius-sm);
|
|
704
705
|
}
|
|
705
|
-
:scope button.danger {
|
|
706
|
+
:global(:scope button.danger) {
|
|
706
707
|
color: var(--ui-danger);
|
|
707
708
|
}
|
|
708
|
-
:
|
|
709
|
+
:global(:scope) {
|
|
709
710
|
--_ui-default-icon-size: var(--ui-editor-toolbar-icon-size, 1rem);
|
|
710
711
|
--_ui-default-icon-stroke-width: var(--ui-editor-toolbar-icon-stroke-width, 1.75);
|
|
711
712
|
}
|
|
712
|
-
.chevron {
|
|
713
|
+
:global(.chevron) {
|
|
713
714
|
display: inline-flex;
|
|
714
715
|
--_ui-default-icon-size: 0.875rem;
|
|
715
716
|
}
|
|
716
|
-
:scope .icon-button {
|
|
717
|
+
:global(:scope .icon-button) {
|
|
717
718
|
width: 32px;
|
|
718
719
|
padding-inline: 0;
|
|
719
720
|
}
|
|
720
|
-
.menu {
|
|
721
|
+
:global(.menu) {
|
|
721
722
|
box-sizing: border-box;
|
|
722
723
|
position: fixed;
|
|
723
724
|
inset: auto;
|
|
@@ -737,12 +738,12 @@ useComponentHost(() => import('../components/ui-editor-table-toolbar/ui-editor-t
|
|
|
737
738
|
overscroll-behavior: contain;
|
|
738
739
|
scrollbar-width: thin;
|
|
739
740
|
}
|
|
740
|
-
.menu-section + .menu-section {
|
|
741
|
+
:global(.menu-section + .menu-section) {
|
|
741
742
|
margin-top: var(--ui-space-1);
|
|
742
743
|
padding-top: var(--ui-space-1);
|
|
743
744
|
border-top: var(--ui-border-width) solid var(--ui-border-divider);
|
|
744
745
|
}
|
|
745
|
-
.menu-heading {
|
|
746
|
+
:global(.menu-heading) {
|
|
746
747
|
padding: var(--ui-space-1) var(--ui-space-2);
|
|
747
748
|
font-size: var(--ui-font-size-2xs);
|
|
748
749
|
font-weight: 700;
|
|
@@ -750,22 +751,22 @@ useComponentHost(() => import('../components/ui-editor-table-toolbar/ui-editor-t
|
|
|
750
751
|
text-transform: uppercase;
|
|
751
752
|
color: var(--ui-text-muted);
|
|
752
753
|
}
|
|
753
|
-
.menu button {
|
|
754
|
+
:global(.menu button) {
|
|
754
755
|
display: flex;
|
|
755
756
|
justify-content: flex-start;
|
|
756
757
|
width: 100%;
|
|
757
758
|
text-align: left;
|
|
758
759
|
}
|
|
759
|
-
.swatches {
|
|
760
|
+
:global(.swatches) {
|
|
760
761
|
display: grid;
|
|
761
762
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
762
763
|
gap: 2px;
|
|
763
764
|
}
|
|
764
|
-
:scope .swatch-button {
|
|
765
|
+
:global(:scope .swatch-button) {
|
|
765
766
|
gap: var(--ui-space-1);
|
|
766
767
|
justify-content: flex-start;
|
|
767
768
|
}
|
|
768
|
-
.swatch {
|
|
769
|
+
:global(.swatch) {
|
|
769
770
|
width: 14px;
|
|
770
771
|
height: 14px;
|
|
771
772
|
flex: 0 0 14px;
|
|
@@ -773,15 +774,15 @@ useComponentHost(() => import('../components/ui-editor-table-toolbar/ui-editor-t
|
|
|
773
774
|
border-radius: var(--ui-radius-round);
|
|
774
775
|
background: var(--_swatch);
|
|
775
776
|
}
|
|
776
|
-
.swatch.default {
|
|
777
|
+
:global(.swatch.default) {
|
|
777
778
|
background:
|
|
778
779
|
linear-gradient(135deg, transparent 44%, var(--ui-danger) 46% 54%, transparent 56%),
|
|
779
780
|
var(--ui-surface);
|
|
780
781
|
}
|
|
781
|
-
.swatch-button.selected {
|
|
782
|
+
:global(.swatch-button.selected) {
|
|
782
783
|
background: var(--ui-accent-soft, var(--ui-accent-subtle));
|
|
783
784
|
}
|
|
784
|
-
:
|
|
785
|
+
:global(:scope[hidden]) {
|
|
785
786
|
display: none;
|
|
786
787
|
}
|
|
787
788
|
}
|
package/vue/UiEditorToolbar.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'
|
|
@@ -49,7 +49,7 @@ const root = ref<HTMLElement | null>(null)
|
|
|
49
49
|
const stripElement = useTemplateRef<HTMLElement>('stripElement')
|
|
50
50
|
checkHydratedRoot('div', 'ui-editor-toolbar')
|
|
51
51
|
|
|
52
|
-
/** The values the styles' :host
|
|
52
|
+
/** The values the styles' :host() prop and state rules test. */
|
|
53
53
|
const hostState = computed(() =>
|
|
54
54
|
[
|
|
55
55
|
checkedProps.value.floating && 'floating',
|
|
@@ -86,12 +86,14 @@ useComponentHost(() => import('../components/ui-editor-toolbar/ui-editor-toolbar
|
|
|
86
86
|
role="toolbar"
|
|
87
87
|
aria-label="Editor toolbar"
|
|
88
88
|
v-bind="nativeAttrs($attrs)"
|
|
89
|
+
data-hn
|
|
90
|
+
data-hn-ui-editor-toolbar
|
|
89
91
|
v-prop-validity="{ contract: propValidityContract, values: { ...props } }"
|
|
90
|
-
:data-floating="reflectedProp('floating', 'floating', checkedProps.floating, undefined, false)"
|
|
92
|
+
:data-ui-editor-toolbar-prop-floating="reflectedProp('floating', 'floating', checkedProps.floating, undefined, false)"
|
|
91
93
|
:data-ui-editor-toolbar-state="hostState || undefined"
|
|
92
94
|
ref="root"
|
|
93
95
|
>
|
|
94
|
-
<div class="strip" ref="stripElement"><slot /></div>
|
|
96
|
+
<div class="strip" data-hn-ui-editor-toolbar ref="stripElement"><slot /></div>
|
|
95
97
|
</div>
|
|
96
98
|
</template>
|
|
97
99
|
|
|
@@ -108,8 +110,8 @@ useComponentHost(() => import('../components/ui-editor-toolbar/ui-editor-toolbar
|
|
|
108
110
|
|
|
109
111
|
/* A component that sets its display still honours the hidden attribute on its root. */
|
|
110
112
|
|
|
111
|
-
@scope (.ui-editor-toolbar) {
|
|
112
|
-
:scope:where(
|
|
113
|
+
@scope (.ui-editor-toolbar) to ([data-hn]) {
|
|
114
|
+
:global(:scope:where([data-hn-ui-editor-toolbar])) {
|
|
113
115
|
position: sticky;
|
|
114
116
|
top: 0;
|
|
115
117
|
z-index: var(--ui-editor-toolbar-z-index, 10);
|
|
@@ -122,7 +124,7 @@ useComponentHost(() => import('../components/ui-editor-toolbar/ui-editor-toolbar
|
|
|
122
124
|
border-bottom: var(--ui-border-width) solid
|
|
123
125
|
var(--ui-editor-toolbar-border, var(--ui-border-divider));
|
|
124
126
|
}
|
|
125
|
-
.strip {
|
|
127
|
+
:global(.strip:where([data-hn-ui-editor-toolbar])) {
|
|
126
128
|
display: flex;
|
|
127
129
|
flex: 1 1 auto;
|
|
128
130
|
align-items: center;
|
|
@@ -135,14 +137,14 @@ useComponentHost(() => import('../components/ui-editor-toolbar/ui-editor-toolbar
|
|
|
135
137
|
scrollbar-width: none;
|
|
136
138
|
}
|
|
137
139
|
|
|
138
|
-
.strip::-webkit-scrollbar {
|
|
140
|
+
:global(.strip:where([data-hn-ui-editor-toolbar])::-webkit-scrollbar) {
|
|
139
141
|
display: none;
|
|
140
142
|
}
|
|
141
143
|
|
|
142
|
-
.strip > :
|
|
144
|
+
:global(.strip > :where(:not([data-hn-ui-editor-toolbar])):is(*)) {
|
|
143
145
|
flex: 0 0 auto;
|
|
144
146
|
}
|
|
145
|
-
.strip {
|
|
147
|
+
:global(.strip:where([data-hn-ui-editor-toolbar])) {
|
|
146
148
|
--_ui-scroll-fade-direction: to right;
|
|
147
149
|
--_ui-scroll-fade-size: var(--ui-editor-toolbar-fade-size, var(--ui-scroll-fade-size, 24px));
|
|
148
150
|
mask-image: linear-gradient(
|
|
@@ -165,11 +167,11 @@ useComponentHost(() => import('../components/ui-editor-toolbar/ui-editor-toolbar
|
|
|
165
167
|
calc(100% - var(--_ui-scroll-fade-size)) 100%;
|
|
166
168
|
}
|
|
167
169
|
|
|
168
|
-
:scope:dir(rtl) .strip {
|
|
170
|
+
:global(:scope:dir(rtl) .strip:where([data-hn-ui-editor-toolbar])) {
|
|
169
171
|
--_ui-scroll-fade-direction: to left;
|
|
170
172
|
}
|
|
171
173
|
|
|
172
|
-
:
|
|
174
|
+
:global(:where(:not([data-hn-ui-editor-toolbar])):is(.divider)) {
|
|
173
175
|
width: 1px;
|
|
174
176
|
height: 20px;
|
|
175
177
|
background: var(--ui-editor-toolbar-divider, var(--ui-border-divider));
|
|
@@ -177,7 +179,7 @@ useComponentHost(() => import('../components/ui-editor-toolbar/ui-editor-toolbar
|
|
|
177
179
|
margin: 0 var(--ui-editor-toolbar-divider-margin, 4px);
|
|
178
180
|
}
|
|
179
181
|
|
|
180
|
-
:
|
|
182
|
+
:global(:scope[data-ui-editor-toolbar-state~="floating"]:where([data-hn-ui-editor-toolbar])) {
|
|
181
183
|
position: relative;
|
|
182
184
|
top: auto;
|
|
183
185
|
width: max-content;
|
|
@@ -199,7 +201,7 @@ useComponentHost(() => import('../components/ui-editor-toolbar/ui-editor-toolbar
|
|
|
199
201
|
}
|
|
200
202
|
|
|
201
203
|
@media (max-width: 767px) {
|
|
202
|
-
:scope:where(
|
|
204
|
+
:global(:scope:where([data-hn-ui-editor-toolbar])) {
|
|
203
205
|
position: fixed;
|
|
204
206
|
top: auto;
|
|
205
207
|
bottom: env(safe-area-inset-bottom);
|
|
@@ -212,7 +214,7 @@ useComponentHost(() => import('../components/ui-editor-toolbar/ui-editor-toolbar
|
|
|
212
214
|
box-shadow: var(--ui-editor-toolbar-mobile-shadow, 0 -2px 8px rgb(0 0 0 / 0.06));
|
|
213
215
|
}
|
|
214
216
|
|
|
215
|
-
:
|
|
217
|
+
:global(:scope[data-ui-editor-toolbar-state~="floating"]:where([data-hn-ui-editor-toolbar])) {
|
|
216
218
|
position: relative;
|
|
217
219
|
inset: auto;
|
|
218
220
|
min-height: auto;
|
|
@@ -224,15 +226,15 @@ useComponentHost(() => import('../components/ui-editor-toolbar/ui-editor-toolbar
|
|
|
224
226
|
);
|
|
225
227
|
}
|
|
226
228
|
}
|
|
227
|
-
:
|
|
229
|
+
:global(.looma-editor__sticky-toolbar-shell :scope:where([data-hn-ui-editor-toolbar])) {
|
|
228
230
|
position: relative;
|
|
229
231
|
min-height: var(--ui-editor-toolbar-min-height, 48px);
|
|
230
232
|
background: transparent;
|
|
231
233
|
border: 0;
|
|
232
234
|
box-shadow: none;
|
|
233
235
|
}
|
|
234
|
-
:
|
|
235
|
-
[data-ui-editor-toolbar-state~="floating"]) {
|
|
236
|
+
:global(.looma-editor__mobile-toolbar-shell
|
|
237
|
+
:scope[data-ui-editor-toolbar-state~="floating"]:where([data-hn-ui-editor-toolbar])) {
|
|
236
238
|
width: 100%;
|
|
237
239
|
max-width: none;
|
|
238
240
|
min-height: 100%;
|
|
@@ -244,10 +246,12 @@ useComponentHost(() => import('../components/ui-editor-toolbar/ui-editor-toolbar
|
|
|
244
246
|
backdrop-filter: none;
|
|
245
247
|
}
|
|
246
248
|
|
|
247
|
-
.looma-editor__mobile-toolbar-shell
|
|
249
|
+
:global(.looma-editor__mobile-toolbar-shell
|
|
250
|
+
:scope[data-ui-editor-toolbar-state~="floating"]
|
|
251
|
+
.strip:where([data-hn-ui-editor-toolbar])) {
|
|
248
252
|
scroll-snap-type: x mandatory;
|
|
249
253
|
}
|
|
250
|
-
:
|
|
254
|
+
:global(:scope[hidden]:where([data-hn-ui-editor-toolbar])) {
|
|
251
255
|
display: none;
|
|
252
256
|
}
|
|
253
257
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!-- Generated by HTML Next 1.0.0-alpha.
|
|
1
|
+
<!-- Generated by HTML Next 1.0.0-alpha.52 for Vue 3.5. Do not edit. -->
|
|
2
2
|
<script setup lang="ts">
|
|
3
3
|
import { computed, watchSyncEffect } from 'vue'
|
|
4
4
|
import type { PropType } from 'vue'
|
|
@@ -72,7 +72,7 @@ const reflectedProp = useReflectedProp()
|
|
|
72
72
|
|
|
73
73
|
checkHydratedRoot('button', 'ui-floating-action-button')
|
|
74
74
|
|
|
75
|
-
/** The values the styles' :host
|
|
75
|
+
/** The values the styles' :host() prop and state rules test. */
|
|
76
76
|
const hostState = computed(() =>
|
|
77
77
|
[
|
|
78
78
|
checkedProps.value.mobileOnly && 'mobileOnly',
|
|
@@ -85,12 +85,14 @@ const hostState = computed(() =>
|
|
|
85
85
|
class="ui-floating-action-button"
|
|
86
86
|
type="button"
|
|
87
87
|
v-bind="nativeAttrs($attrs)"
|
|
88
|
+
data-hn
|
|
89
|
+
data-hn-ui-floating-action-button
|
|
88
90
|
:aria-label="checkedProps.label ?? undefined"
|
|
89
91
|
:disabled="checkedProps.disabled ?? undefined"
|
|
90
92
|
v-prop-validity="{ contract: propValidityContract, values: { ...props } }"
|
|
91
|
-
:data-disabled="reflectedProp('disabled', 'disabled', checkedProps.disabled, undefined, false)"
|
|
92
|
-
:data-label="reflectedProp('label', 'label', checkedProps.label, undefined, false)"
|
|
93
|
-
:data-mobile-only="reflectedProp('mobileOnly', 'mobile-only', checkedProps.mobileOnly, undefined, false)"
|
|
93
|
+
:data-ui-floating-action-button-prop-disabled="reflectedProp('disabled', 'disabled', checkedProps.disabled, undefined, false)"
|
|
94
|
+
:data-ui-floating-action-button-prop-label="reflectedProp('label', 'label', checkedProps.label, undefined, false)"
|
|
95
|
+
:data-ui-floating-action-button-prop-mobile-only="reflectedProp('mobileOnly', 'mobile-only', checkedProps.mobileOnly, undefined, false)"
|
|
94
96
|
:data-ui-floating-action-button-state="hostState || undefined"
|
|
95
97
|
>
|
|
96
98
|
<slot />
|
|
@@ -114,8 +116,8 @@ const hostState = computed(() =>
|
|
|
114
116
|
|
|
115
117
|
/* A component that sets its display still honours the hidden attribute on its root. */
|
|
116
118
|
|
|
117
|
-
@scope (.ui-floating-action-button) {
|
|
118
|
-
:scope:where(
|
|
119
|
+
@scope (.ui-floating-action-button) to ([data-hn]) {
|
|
120
|
+
:global(:scope:where([data-hn-ui-floating-action-button])) {
|
|
119
121
|
position: fixed;
|
|
120
122
|
inset-block-end: calc(
|
|
121
123
|
var(--ui-floating-action-button-inset-block-end, var(--ui-space-6)) +
|
|
@@ -131,7 +133,7 @@ const hostState = computed(() =>
|
|
|
131
133
|
z-index: var(--ui-floating-action-button-z-index, 100);
|
|
132
134
|
}
|
|
133
135
|
|
|
134
|
-
:scope:where(
|
|
136
|
+
:global(:scope:where([data-hn-ui-floating-action-button])) {
|
|
135
137
|
appearance: none;
|
|
136
138
|
border: none;
|
|
137
139
|
border-radius: var(--ui-radius-round);
|
|
@@ -150,39 +152,39 @@ const hostState = computed(() =>
|
|
|
150
152
|
box-shadow var(--ui-motion-fast) var(--ui-motion-ease);
|
|
151
153
|
}
|
|
152
154
|
|
|
153
|
-
:
|
|
155
|
+
:global(:scope:hover:enabled:where([data-hn-ui-floating-action-button])) {
|
|
154
156
|
background: var(--ui-accent-hover);
|
|
155
157
|
box-shadow: 0 6px 16px color-mix(in srgb, var(--ui-accent) 50%, transparent);
|
|
156
158
|
}
|
|
157
159
|
|
|
158
|
-
:
|
|
160
|
+
:global(:scope:active:enabled:where([data-hn-ui-floating-action-button])) {
|
|
159
161
|
transform: scale(0.94);
|
|
160
162
|
}
|
|
161
163
|
|
|
162
|
-
:
|
|
164
|
+
:global(:scope:focus-visible:where([data-hn-ui-floating-action-button])) {
|
|
163
165
|
outline: var(--ui-focus-width) solid var(--ui-focus-ring);
|
|
164
166
|
outline-offset: var(--ui-focus-width);
|
|
165
167
|
}
|
|
166
168
|
|
|
167
|
-
:
|
|
169
|
+
:global(:scope:disabled:where([data-hn-ui-floating-action-button])) {
|
|
168
170
|
background: var(--ui-disabled-surface);
|
|
169
171
|
color: var(--ui-disabled-text);
|
|
170
172
|
box-shadow: none;
|
|
171
173
|
cursor: not-allowed;
|
|
172
174
|
}
|
|
173
175
|
|
|
174
|
-
:
|
|
176
|
+
:global(:where(:not([data-hn-ui-floating-action-button])):is(svg)) {
|
|
175
177
|
inline-size: var(--ui-icon-size-lg);
|
|
176
178
|
block-size: var(--ui-icon-size-lg);
|
|
177
179
|
flex-shrink: 0;
|
|
178
180
|
}
|
|
179
181
|
|
|
180
182
|
@media (min-width: 768px) {
|
|
181
|
-
:
|
|
183
|
+
:global(:scope[data-ui-floating-action-button-state~="mobileOnly"]:where([data-hn-ui-floating-action-button])) {
|
|
182
184
|
display: none;
|
|
183
185
|
}
|
|
184
186
|
}
|
|
185
|
-
:
|
|
187
|
+
:global(:scope[hidden]:where([data-hn-ui-floating-action-button])) {
|
|
186
188
|
display: none;
|
|
187
189
|
}
|
|
188
190
|
}
|
package/vue/UiFormField.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, watchSyncEffect } from 'vue'
|
|
4
4
|
import type { PropType } from 'vue'
|
|
@@ -80,7 +80,7 @@ const hydrationInstance = getCurrentInstance()
|
|
|
80
80
|
const root = ref<HTMLElement | null>(null)
|
|
81
81
|
checkHydratedRoot('div', 'ui-form-field')
|
|
82
82
|
|
|
83
|
-
/** The values the styles' :host
|
|
83
|
+
/** The values the styles' :host() prop and state rules test. */
|
|
84
84
|
const hostState = computed(() =>
|
|
85
85
|
[
|
|
86
86
|
checkedProps.value.invalid && 'invalid',
|
|
@@ -114,20 +114,22 @@ useComponentHost(() => import('../components/ui-form-field/ui-form-field.js'), {
|
|
|
114
114
|
<div
|
|
115
115
|
class="ui-form-field"
|
|
116
116
|
v-bind="nativeAttrs($attrs)"
|
|
117
|
+
data-hn
|
|
118
|
+
data-hn-ui-form-field
|
|
117
119
|
v-prop-validity="{ contract: propValidityContract, values: { ...props } }"
|
|
118
|
-
:data-disabled="reflectedProp('disabled', 'disabled', checkedProps.disabled, undefined, false)"
|
|
119
|
-
:data-invalid="reflectedProp('invalid', 'invalid', checkedProps.invalid, undefined, false)"
|
|
120
|
-
:data-required="reflectedProp('required', 'required', checkedProps.required, undefined, false)"
|
|
120
|
+
:data-ui-form-field-prop-disabled="reflectedProp('disabled', 'disabled', checkedProps.disabled, undefined, false)"
|
|
121
|
+
:data-ui-form-field-prop-invalid="reflectedProp('invalid', 'invalid', checkedProps.invalid, undefined, false)"
|
|
122
|
+
:data-ui-form-field-prop-required="reflectedProp('required', 'required', checkedProps.required, undefined, false)"
|
|
121
123
|
:data-ui-form-field-state="hostState || undefined"
|
|
122
124
|
ref="root"
|
|
123
125
|
>
|
|
124
|
-
<div class="label">
|
|
126
|
+
<div class="label" data-hn-ui-form-field>
|
|
125
127
|
<slot name="label" />
|
|
126
|
-
<span class="label-action"><slot name="label-action" /></span>
|
|
128
|
+
<span class="label-action" data-hn-ui-form-field><slot name="label-action" /></span>
|
|
127
129
|
</div>
|
|
128
130
|
<slot />
|
|
129
|
-
<div class="help"><slot name="help" /></div>
|
|
130
|
-
<div class="error"><slot name="error" /></div>
|
|
131
|
+
<div class="help" data-hn-ui-form-field><slot name="help" /></div>
|
|
132
|
+
<div class="error" data-hn-ui-form-field><slot name="error" /></div>
|
|
131
133
|
</div>
|
|
132
134
|
</template>
|
|
133
135
|
|
|
@@ -173,8 +175,8 @@ useComponentHost(() => import('../components/ui-form-field/ui-form-field.js'), {
|
|
|
173
175
|
|
|
174
176
|
/* A component that sets its display still honours the hidden attribute on its root. */
|
|
175
177
|
|
|
176
|
-
@scope (.ui-form-field) {
|
|
177
|
-
:scope:where(
|
|
178
|
+
@scope (.ui-form-field) to ([data-hn]) {
|
|
179
|
+
:global(:scope:where([data-hn-ui-form-field])) {
|
|
178
180
|
/* Hooks do not inherit, so the parts below read them from the root. */
|
|
179
181
|
--_ui-form-field-danger: var(--ui-form-field-danger);
|
|
180
182
|
--_ui-form-field-help-min-block-size: var(--ui-form-field-help-min-block-size);
|
|
@@ -189,52 +191,55 @@ useComponentHost(() => import('../components/ui-form-field/ui-form-field.js'), {
|
|
|
189
191
|
align-content: start;
|
|
190
192
|
color: var(--ui-text-primary);
|
|
191
193
|
}
|
|
192
|
-
.label,
|
|
194
|
+
:global(.label:where([data-hn-ui-form-field])),
|
|
195
|
+
:global(.help:where([data-hn-ui-form-field])),
|
|
196
|
+
:global(.error:where([data-hn-ui-form-field])) {
|
|
193
197
|
display: contents;
|
|
194
198
|
}
|
|
195
199
|
|
|
196
|
-
.label {
|
|
200
|
+
:global(.label:where([data-hn-ui-form-field])) {
|
|
197
201
|
color: var(--_ui-form-field-label-text, var(--ui-text-secondary));
|
|
198
202
|
font-size: var(--_ui-form-field-label-font-size, var(--ui-font-size-sm));
|
|
199
203
|
}
|
|
200
|
-
.label:has(> .label-action > *) {
|
|
204
|
+
:global(.label:has(> .label-action > *):where([data-hn-ui-form-field])) {
|
|
201
205
|
display: flex;
|
|
202
206
|
align-items: start;
|
|
203
207
|
gap: var(--ui-space-1);
|
|
204
208
|
}
|
|
205
209
|
|
|
206
|
-
.label-action {
|
|
210
|
+
:global(.label-action:where([data-hn-ui-form-field])) {
|
|
207
211
|
display: flex;
|
|
208
212
|
align-items: unsafe center;
|
|
209
213
|
block-size: 1lh;
|
|
210
214
|
}
|
|
211
215
|
|
|
212
|
-
.label-action:not(:has(> *)) {
|
|
216
|
+
:global(.label-action:not(:has(> *)):where([data-hn-ui-form-field])) {
|
|
213
217
|
display: none;
|
|
214
218
|
}
|
|
215
219
|
|
|
216
|
-
.help {
|
|
220
|
+
:global(.help:where([data-hn-ui-form-field])) {
|
|
217
221
|
color: var(--_ui-form-field-help-text, var(--ui-text-muted));
|
|
218
222
|
font-size: var(--_ui-form-field-help-font-size, var(--ui-font-size-sm));
|
|
219
223
|
line-height: var(--ui-line-height-md);
|
|
220
224
|
}
|
|
221
225
|
|
|
222
|
-
.help > :
|
|
226
|
+
:global(.help > :where(:not([data-hn-ui-form-field])):is(*)) {
|
|
223
227
|
min-block-size: var(--_ui-form-field-help-min-block-size, 0);
|
|
224
228
|
}
|
|
225
229
|
|
|
226
|
-
.error {
|
|
230
|
+
:global(.error:where([data-hn-ui-form-field])) {
|
|
227
231
|
display: none;
|
|
228
232
|
}
|
|
229
233
|
|
|
230
|
-
:scope[data-ui-form-field-state~="invalid"] .error {
|
|
234
|
+
:global(:scope[data-ui-form-field-state~="invalid"] .error:where([data-hn-ui-form-field])) {
|
|
231
235
|
display: contents;
|
|
232
236
|
}
|
|
233
|
-
.error
|
|
237
|
+
:global(.error:where([data-hn-ui-form-field])),
|
|
238
|
+
:global(:where(:not([data-hn-ui-form-field])):is([role="alert"])) {
|
|
234
239
|
color: var(--_ui-form-field-danger, var(--ui-field-danger, var(--ui-danger)));
|
|
235
240
|
font-size: var(--ui-font-size-sm);
|
|
236
241
|
}
|
|
237
|
-
:
|
|
242
|
+
:global(:scope[hidden]:where([data-hn-ui-form-field])) {
|
|
238
243
|
display: none;
|
|
239
244
|
}
|
|
240
245
|
}
|
package/vue/UiGrid.vue
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!-- Generated by HTML Next 1.0.0-alpha.
|
|
1
|
+
<!-- Generated by HTML Next 1.0.0-alpha.52 for Vue 3.5. Do not edit. -->
|
|
2
2
|
<script setup lang="ts">
|
|
3
3
|
import { computed, watchSyncEffect } from 'vue'
|
|
4
4
|
import type { PropType } from 'vue'
|
|
@@ -71,7 +71,7 @@ const reflectedProp = useReflectedProp()
|
|
|
71
71
|
|
|
72
72
|
checkHydratedRoot('div', 'ui-grid')
|
|
73
73
|
|
|
74
|
-
/** The values the styles' :host
|
|
74
|
+
/** The values the styles' :host() prop and state rules test. */
|
|
75
75
|
const hostState = computed(() =>
|
|
76
76
|
[
|
|
77
77
|
checkedProps.value.gap && 'gap',
|
|
@@ -86,11 +86,13 @@ const hostState = computed(() =>
|
|
|
86
86
|
<div
|
|
87
87
|
class="ui-grid"
|
|
88
88
|
v-bind="nativeAttrs($attrs)"
|
|
89
|
+
data-hn
|
|
90
|
+
data-hn-ui-grid
|
|
89
91
|
:style="{ '--_grid-column-cap': checkedProps.columns?.toString() }"
|
|
90
92
|
v-prop-validity="{ contract: propValidityContract, values: { ...props } }"
|
|
91
|
-
:data-columns="reflectedProp('columns', 'columns', checkedProps.columns, undefined, false)"
|
|
92
|
-
:data-gap="reflectedProp('gap', 'gap', checkedProps.gap, undefined, false)"
|
|
93
|
-
:data-min="reflectedProp('min', 'min', checkedProps.min, undefined, false)"
|
|
93
|
+
:data-ui-grid-prop-columns="reflectedProp('columns', 'columns', checkedProps.columns, undefined, false)"
|
|
94
|
+
:data-ui-grid-prop-gap="reflectedProp('gap', 'gap', checkedProps.gap, undefined, false)"
|
|
95
|
+
:data-ui-grid-prop-min="reflectedProp('min', 'min', checkedProps.min, undefined, false)"
|
|
94
96
|
:data-ui-grid-state="hostState || undefined"
|
|
95
97
|
>
|
|
96
98
|
<slot />
|
|
@@ -110,8 +112,8 @@ const hostState = computed(() =>
|
|
|
110
112
|
|
|
111
113
|
/* A component that sets its display still honours the hidden attribute on its root. */
|
|
112
114
|
|
|
113
|
-
@scope (.ui-grid) {
|
|
114
|
-
:scope:where(
|
|
115
|
+
@scope (.ui-grid) to ([data-hn]) {
|
|
116
|
+
:global(:scope:where([data-hn-ui-grid])) {
|
|
115
117
|
--_grid-gap: var(--ui-space-4);
|
|
116
118
|
--_grid-min: 12rem;
|
|
117
119
|
display: grid;
|
|
@@ -144,28 +146,28 @@ const hostState = computed(() =>
|
|
|
144
146
|
margin: 0;
|
|
145
147
|
}
|
|
146
148
|
|
|
147
|
-
:
|
|
149
|
+
:global(:scope[data-ui-grid-state~="gap=xs"]:where([data-hn-ui-grid])) {
|
|
148
150
|
--_grid-gap: var(--ui-space-2);
|
|
149
151
|
}
|
|
150
|
-
:
|
|
152
|
+
:global(:scope[data-ui-grid-state~="gap=s"]:where([data-hn-ui-grid])) {
|
|
151
153
|
--_grid-gap: var(--ui-space-3);
|
|
152
154
|
}
|
|
153
|
-
:
|
|
155
|
+
:global(:scope[data-ui-grid-state~="gap=m"]:where([data-hn-ui-grid])) {
|
|
154
156
|
--_grid-gap: var(--ui-space-4);
|
|
155
157
|
}
|
|
156
|
-
:
|
|
158
|
+
:global(:scope[data-ui-grid-state~="gap=l"]:where([data-hn-ui-grid])) {
|
|
157
159
|
--_grid-gap: var(--ui-space-5);
|
|
158
160
|
}
|
|
159
|
-
:
|
|
161
|
+
:global(:scope[data-ui-grid-state~="gap=xl"]:where([data-hn-ui-grid])) {
|
|
160
162
|
--_grid-gap: var(--ui-space-6);
|
|
161
163
|
}
|
|
162
|
-
:
|
|
164
|
+
:global(:scope[data-ui-grid-state~="min=md"]:where([data-hn-ui-grid])) {
|
|
163
165
|
--_grid-min: 16rem;
|
|
164
166
|
}
|
|
165
|
-
:
|
|
167
|
+
:global(:scope[data-ui-grid-state~="min=lg"]:where([data-hn-ui-grid])) {
|
|
166
168
|
--_grid-min: 20rem;
|
|
167
169
|
}
|
|
168
|
-
:
|
|
170
|
+
:global(:scope[hidden]:where([data-hn-ui-grid])) {
|
|
169
171
|
display: none;
|
|
170
172
|
}
|
|
171
173
|
}
|