@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
package/vue/UiCallout.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'
|
|
@@ -86,7 +86,7 @@ const reflectedProp = useReflectedProp()
|
|
|
86
86
|
|
|
87
87
|
checkHydratedRoot('div', 'ui-callout')
|
|
88
88
|
|
|
89
|
-
/** The values the styles' :host
|
|
89
|
+
/** The values the styles' :host() prop and state rules test. */
|
|
90
90
|
const hostState = computed(() =>
|
|
91
91
|
[
|
|
92
92
|
checkedProps.value.tone && 'tone',
|
|
@@ -100,12 +100,14 @@ const hostState = computed(() =>
|
|
|
100
100
|
class="ui-callout"
|
|
101
101
|
role="note"
|
|
102
102
|
v-bind="nativeAttrs($attrs)"
|
|
103
|
+
data-hn
|
|
104
|
+
data-hn-ui-callout
|
|
103
105
|
v-prop-validity="{ contract: propValidityContract, values: { ...props } }"
|
|
104
|
-
:data-heading="reflectedProp('heading', 'heading', checkedProps.heading, undefined, false)"
|
|
105
|
-
:data-tone="reflectedProp('tone', 'tone', checkedProps.tone, undefined, false)"
|
|
106
|
+
:data-ui-callout-prop-heading="reflectedProp('heading', 'heading', checkedProps.heading, undefined, false)"
|
|
107
|
+
:data-ui-callout-prop-tone="reflectedProp('tone', 'tone', checkedProps.tone, undefined, false)"
|
|
106
108
|
:data-ui-callout-state="hostState || undefined"
|
|
107
109
|
>
|
|
108
|
-
<span class="icon" aria-hidden="true"><svg
|
|
110
|
+
<span class="icon" aria-hidden="true" data-hn-ui-callout><svg
|
|
109
111
|
v-if="checkedProps.tone === 'info'"
|
|
110
112
|
viewBox="0 0 24 24"
|
|
111
113
|
fill="none"
|
|
@@ -113,10 +115,11 @@ const hostState = computed(() =>
|
|
|
113
115
|
stroke-width="2"
|
|
114
116
|
stroke-linecap="round"
|
|
115
117
|
stroke-linejoin="round"
|
|
118
|
+
data-hn-ui-callout
|
|
116
119
|
>
|
|
117
|
-
<circle cx="12" cy="12" r="10"></circle>
|
|
118
|
-
<path d="M12 16v-4"></path>
|
|
119
|
-
<path d="M12 8h.01"></path>
|
|
120
|
+
<circle cx="12" cy="12" r="10" data-hn-ui-callout></circle>
|
|
121
|
+
<path d="M12 16v-4" data-hn-ui-callout></path>
|
|
122
|
+
<path d="M12 8h.01" data-hn-ui-callout></path>
|
|
120
123
|
</svg>
|
|
121
124
|
<svg
|
|
122
125
|
v-if="checkedProps.tone === 'neutral' || checkedProps.tone === 'note'"
|
|
@@ -126,10 +129,15 @@ const hostState = computed(() =>
|
|
|
126
129
|
stroke-width="2"
|
|
127
130
|
stroke-linecap="round"
|
|
128
131
|
stroke-linejoin="round"
|
|
132
|
+
data-hn-ui-callout
|
|
129
133
|
>
|
|
130
|
-
<path
|
|
131
|
-
|
|
132
|
-
|
|
134
|
+
<path
|
|
135
|
+
d="M13.5 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8.5L13.5 2Z"
|
|
136
|
+
data-hn-ui-callout
|
|
137
|
+
>
|
|
138
|
+
</path>
|
|
139
|
+
<path d="M13 2v7h7" data-hn-ui-callout></path>
|
|
140
|
+
<path d="m9.5 17.5 4-4 2 2-4 4H9.5v-2Z" data-hn-ui-callout></path>
|
|
133
141
|
</svg>
|
|
134
142
|
<svg
|
|
135
143
|
v-if="checkedProps.tone === 'tip'"
|
|
@@ -139,11 +147,15 @@ const hostState = computed(() =>
|
|
|
139
147
|
stroke-width="2"
|
|
140
148
|
stroke-linecap="round"
|
|
141
149
|
stroke-linejoin="round"
|
|
150
|
+
data-hn-ui-callout
|
|
142
151
|
>
|
|
143
|
-
<path
|
|
152
|
+
<path
|
|
153
|
+
d="M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5"
|
|
154
|
+
data-hn-ui-callout
|
|
155
|
+
>
|
|
144
156
|
</path>
|
|
145
|
-
<path d="M9 18h6"></path>
|
|
146
|
-
<path d="M10 22h4"></path>
|
|
157
|
+
<path d="M9 18h6" data-hn-ui-callout></path>
|
|
158
|
+
<path d="M10 22h4" data-hn-ui-callout></path>
|
|
147
159
|
</svg>
|
|
148
160
|
<svg
|
|
149
161
|
v-if="checkedProps.tone === 'important'"
|
|
@@ -153,11 +165,15 @@ const hostState = computed(() =>
|
|
|
153
165
|
stroke-width="2"
|
|
154
166
|
stroke-linecap="round"
|
|
155
167
|
stroke-linejoin="round"
|
|
168
|
+
data-hn-ui-callout
|
|
156
169
|
>
|
|
157
|
-
<path
|
|
170
|
+
<path
|
|
171
|
+
d="M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z"
|
|
172
|
+
data-hn-ui-callout
|
|
173
|
+
>
|
|
158
174
|
</path>
|
|
159
|
-
<path d="M12 15h.01"></path>
|
|
160
|
-
<path d="M12 7v4"></path>
|
|
175
|
+
<path d="M12 15h.01" data-hn-ui-callout></path>
|
|
176
|
+
<path d="M12 7v4" data-hn-ui-callout></path>
|
|
161
177
|
</svg>
|
|
162
178
|
<svg
|
|
163
179
|
v-if="checkedProps.tone === 'warning'"
|
|
@@ -167,10 +183,15 @@ const hostState = computed(() =>
|
|
|
167
183
|
stroke-width="2"
|
|
168
184
|
stroke-linecap="round"
|
|
169
185
|
stroke-linejoin="round"
|
|
186
|
+
data-hn-ui-callout
|
|
170
187
|
>
|
|
171
|
-
<path
|
|
172
|
-
|
|
173
|
-
|
|
188
|
+
<path
|
|
189
|
+
d="m21.73 18-8-14a2 2 0 0 0-3.46 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z"
|
|
190
|
+
data-hn-ui-callout
|
|
191
|
+
>
|
|
192
|
+
</path>
|
|
193
|
+
<path d="M12 9v4" data-hn-ui-callout></path>
|
|
194
|
+
<path d="M12 17h.01" data-hn-ui-callout></path>
|
|
174
195
|
</svg>
|
|
175
196
|
<svg
|
|
176
197
|
v-if="checkedProps.tone === 'success'"
|
|
@@ -180,9 +201,10 @@ const hostState = computed(() =>
|
|
|
180
201
|
stroke-width="2"
|
|
181
202
|
stroke-linecap="round"
|
|
182
203
|
stroke-linejoin="round"
|
|
204
|
+
data-hn-ui-callout
|
|
183
205
|
>
|
|
184
|
-
<circle cx="12" cy="12" r="10"></circle>
|
|
185
|
-
<path d="m9 12 2 2 4-4"></path>
|
|
206
|
+
<circle cx="12" cy="12" r="10" data-hn-ui-callout></circle>
|
|
207
|
+
<path d="m9 12 2 2 4-4" data-hn-ui-callout></path>
|
|
186
208
|
</svg>
|
|
187
209
|
<svg
|
|
188
210
|
v-if="checkedProps.tone === 'danger' || checkedProps.tone === 'caution'"
|
|
@@ -192,13 +214,16 @@ const hostState = computed(() =>
|
|
|
192
214
|
stroke-width="2"
|
|
193
215
|
stroke-linecap="round"
|
|
194
216
|
stroke-linejoin="round"
|
|
217
|
+
data-hn-ui-callout
|
|
195
218
|
>
|
|
196
|
-
<circle cx="12" cy="12" r="10"></circle>
|
|
197
|
-
<path d="m15 9-6 6"></path>
|
|
198
|
-
<path d="m9 9 6 6"></path>
|
|
219
|
+
<circle cx="12" cy="12" r="10" data-hn-ui-callout></circle>
|
|
220
|
+
<path d="m15 9-6 6" data-hn-ui-callout></path>
|
|
221
|
+
<path d="m9 9 6 6" data-hn-ui-callout></path>
|
|
199
222
|
</svg></span>
|
|
200
|
-
<div class="content">
|
|
201
|
-
<strong v-if="checkedProps.heading" class="heading">{{
|
|
223
|
+
<div class="content" data-hn-ui-callout>
|
|
224
|
+
<strong v-if="checkedProps.heading" class="heading" data-hn-ui-callout>{{
|
|
225
|
+
checkedProps.heading
|
|
226
|
+
}}</strong>
|
|
202
227
|
<slot />
|
|
203
228
|
</div>
|
|
204
229
|
</div>
|
|
@@ -257,8 +282,8 @@ const hostState = computed(() =>
|
|
|
257
282
|
|
|
258
283
|
/* A component that sets its display still honours the hidden attribute on its root. */
|
|
259
284
|
|
|
260
|
-
@scope (.ui-callout) {
|
|
261
|
-
:scope:where(
|
|
285
|
+
@scope (.ui-callout) to ([data-hn]) {
|
|
286
|
+
:global(:scope:where([data-hn-ui-callout])) {
|
|
262
287
|
/* Hooks do not inherit, so the parts below read them from the root. */
|
|
263
288
|
--_ui-callout-icon-column: var(--ui-callout-icon-column);
|
|
264
289
|
--_ui-callout-icon: var(--ui-callout-icon);
|
|
@@ -320,7 +345,7 @@ const hostState = computed(() =>
|
|
|
320
345
|
font-weight: var(--ui-font-normal);
|
|
321
346
|
line-height: var(--ui-line-height-md);
|
|
322
347
|
}
|
|
323
|
-
.icon {
|
|
348
|
+
:global(.icon:where([data-hn-ui-callout])) {
|
|
324
349
|
display: grid;
|
|
325
350
|
place-items: center;
|
|
326
351
|
inline-size: var(--_ui-callout-icon-column, 1.125rem);
|
|
@@ -328,22 +353,22 @@ const hostState = computed(() =>
|
|
|
328
353
|
color: var(--_ui-callout-icon, var(--_callout-icon));
|
|
329
354
|
}
|
|
330
355
|
|
|
331
|
-
.icon svg {
|
|
356
|
+
:global(.icon svg:where([data-hn-ui-callout])) {
|
|
332
357
|
inline-size: var(--_ui-callout-icon-size, 1.125rem);
|
|
333
358
|
block-size: var(--_ui-callout-icon-size, 1.125rem);
|
|
334
359
|
}
|
|
335
360
|
|
|
336
|
-
.content {
|
|
361
|
+
:global(.content:where([data-hn-ui-callout])) {
|
|
337
362
|
min-inline-size: 0;
|
|
338
363
|
}
|
|
339
364
|
|
|
340
|
-
.heading {
|
|
365
|
+
:global(.heading:where([data-hn-ui-callout])) {
|
|
341
366
|
display: block;
|
|
342
367
|
font-weight: var(--ui-font-semibold);
|
|
343
368
|
}
|
|
344
369
|
|
|
345
|
-
:
|
|
346
|
-
:
|
|
370
|
+
:global(:scope[data-ui-callout-state~="tone=neutral"]:where([data-hn-ui-callout])),
|
|
371
|
+
:global(:scope[data-ui-callout-state~="tone=note"]:where([data-hn-ui-callout])) {
|
|
347
372
|
--_ui-selection-context-surface: initial;
|
|
348
373
|
--_ui-selection-context-border: initial;
|
|
349
374
|
--_ui-selection-context-text: initial;
|
|
@@ -352,43 +377,43 @@ const hostState = computed(() =>
|
|
|
352
377
|
--_callout-icon: var(--ui-text-secondary);
|
|
353
378
|
}
|
|
354
379
|
|
|
355
|
-
:
|
|
380
|
+
:global(:scope[data-ui-callout-state~="tone=tip"]:where([data-hn-ui-callout])) {
|
|
356
381
|
--_callout-surface: var(--ui-success-soft);
|
|
357
382
|
--_callout-border: var(--ui-success-solid);
|
|
358
383
|
--_callout-icon: var(--ui-success-solid);
|
|
359
384
|
}
|
|
360
385
|
|
|
361
|
-
:
|
|
386
|
+
:global(:scope[data-ui-callout-state~="tone=important"]:where([data-hn-ui-callout])) {
|
|
362
387
|
--_callout-surface: var(--ui-accent-soft);
|
|
363
388
|
--_callout-border: var(--ui-accent-solid);
|
|
364
389
|
--_callout-icon: var(--ui-accent-solid);
|
|
365
390
|
}
|
|
366
391
|
|
|
367
|
-
:
|
|
392
|
+
:global(:scope[data-ui-callout-state~="tone=warning"]:where([data-hn-ui-callout])) {
|
|
368
393
|
--_callout-surface: var(--ui-warning-soft);
|
|
369
394
|
--_callout-border: var(--ui-warning-solid);
|
|
370
395
|
--_callout-icon: var(--ui-warning-solid);
|
|
371
396
|
}
|
|
372
397
|
|
|
373
|
-
:
|
|
398
|
+
:global(:scope[data-ui-callout-state~="tone=success"]:where([data-hn-ui-callout])) {
|
|
374
399
|
--_callout-surface: var(--ui-success-soft);
|
|
375
400
|
--_callout-border: var(--ui-success-solid);
|
|
376
401
|
--_callout-icon: var(--ui-success-solid);
|
|
377
402
|
}
|
|
378
403
|
|
|
379
|
-
:
|
|
380
|
-
:
|
|
404
|
+
:global(:scope[data-ui-callout-state~="tone=danger"]:where([data-hn-ui-callout])),
|
|
405
|
+
:global(:scope[data-ui-callout-state~="tone=caution"]:where([data-hn-ui-callout])) {
|
|
381
406
|
--_callout-surface: var(--ui-danger-soft);
|
|
382
407
|
--_callout-border: var(--ui-danger-solid);
|
|
383
408
|
--_callout-icon: var(--ui-danger-solid);
|
|
384
409
|
}
|
|
385
|
-
.content :
|
|
410
|
+
:global(.content :where(:not([data-hn-ui-callout])):is(a)) {
|
|
386
411
|
color: var(--ui-accent-active);
|
|
387
412
|
text-decoration: underline;
|
|
388
413
|
text-decoration-thickness: 0.06em;
|
|
389
414
|
text-underline-offset: 0.18em;
|
|
390
415
|
}
|
|
391
|
-
:
|
|
416
|
+
:global(:scope[hidden]:where([data-hn-ui-callout])) {
|
|
392
417
|
display: none;
|
|
393
418
|
}
|
|
394
419
|
}
|
package/vue/UiCard.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'
|
|
@@ -139,7 +139,7 @@ checkHydratedRoot(
|
|
|
139
139
|
'ui-card',
|
|
140
140
|
)
|
|
141
141
|
|
|
142
|
-
/** The values the styles' :host
|
|
142
|
+
/** The values the styles' :host() prop and state rules test. */
|
|
143
143
|
const hostState = computed(() =>
|
|
144
144
|
[
|
|
145
145
|
checkedProps.value.padding && 'padding',
|
|
@@ -161,12 +161,14 @@ const hostState = computed(() =>
|
|
|
161
161
|
v-if="checkedProps.as === 'section'"
|
|
162
162
|
class="ui-card"
|
|
163
163
|
v-bind="nativeAttrs($attrs)"
|
|
164
|
+
data-hn
|
|
165
|
+
data-hn-ui-card
|
|
164
166
|
v-prop-validity="{ contract: propValidityContract, values: { ...props } }"
|
|
165
|
-
:data-as="reflectedProp('as', 'as', checkedProps.as, undefined, false)"
|
|
166
|
-
:data-padding="reflectedProp('padding', 'padding', checkedProps.padding, undefined, false)"
|
|
167
|
-
:data-size="reflectedProp('size', 'size', checkedProps.size, undefined, false)"
|
|
168
|
-
:data-tone="reflectedProp('tone', 'tone', checkedProps.tone, undefined, false)"
|
|
169
|
-
:data-variant="reflectedProp('variant', 'variant', checkedProps.variant, undefined, false)"
|
|
167
|
+
:data-ui-card-prop-as="reflectedProp('as', 'as', checkedProps.as, undefined, false)"
|
|
168
|
+
:data-ui-card-prop-padding="reflectedProp('padding', 'padding', checkedProps.padding, undefined, false)"
|
|
169
|
+
:data-ui-card-prop-size="reflectedProp('size', 'size', checkedProps.size, undefined, false)"
|
|
170
|
+
:data-ui-card-prop-tone="reflectedProp('tone', 'tone', checkedProps.tone, undefined, false)"
|
|
171
|
+
:data-ui-card-prop-variant="reflectedProp('variant', 'variant', checkedProps.variant, undefined, false)"
|
|
170
172
|
:data-ui-card-state="hostState || undefined"
|
|
171
173
|
ref="@html-next/root"
|
|
172
174
|
>
|
|
@@ -176,12 +178,14 @@ const hostState = computed(() =>
|
|
|
176
178
|
v-else-if="checkedProps.as === 'article'"
|
|
177
179
|
class="ui-card"
|
|
178
180
|
v-bind="nativeAttrs($attrs)"
|
|
181
|
+
data-hn
|
|
182
|
+
data-hn-ui-card
|
|
179
183
|
v-prop-validity="{ contract: propValidityContract, values: { ...props } }"
|
|
180
|
-
:data-as="reflectedProp('as', 'as', checkedProps.as, undefined, false)"
|
|
181
|
-
:data-padding="reflectedProp('padding', 'padding', checkedProps.padding, undefined, false)"
|
|
182
|
-
:data-size="reflectedProp('size', 'size', checkedProps.size, undefined, false)"
|
|
183
|
-
:data-tone="reflectedProp('tone', 'tone', checkedProps.tone, undefined, false)"
|
|
184
|
-
:data-variant="reflectedProp('variant', 'variant', checkedProps.variant, undefined, false)"
|
|
184
|
+
:data-ui-card-prop-as="reflectedProp('as', 'as', checkedProps.as, undefined, false)"
|
|
185
|
+
:data-ui-card-prop-padding="reflectedProp('padding', 'padding', checkedProps.padding, undefined, false)"
|
|
186
|
+
:data-ui-card-prop-size="reflectedProp('size', 'size', checkedProps.size, undefined, false)"
|
|
187
|
+
:data-ui-card-prop-tone="reflectedProp('tone', 'tone', checkedProps.tone, undefined, false)"
|
|
188
|
+
:data-ui-card-prop-variant="reflectedProp('variant', 'variant', checkedProps.variant, undefined, false)"
|
|
185
189
|
:data-ui-card-state="hostState || undefined"
|
|
186
190
|
ref="@html-next/root"
|
|
187
191
|
>
|
|
@@ -191,12 +195,14 @@ const hostState = computed(() =>
|
|
|
191
195
|
v-else-if="checkedProps.as === 'aside'"
|
|
192
196
|
class="ui-card"
|
|
193
197
|
v-bind="nativeAttrs($attrs)"
|
|
198
|
+
data-hn
|
|
199
|
+
data-hn-ui-card
|
|
194
200
|
v-prop-validity="{ contract: propValidityContract, values: { ...props } }"
|
|
195
|
-
:data-as="reflectedProp('as', 'as', checkedProps.as, undefined, false)"
|
|
196
|
-
:data-padding="reflectedProp('padding', 'padding', checkedProps.padding, undefined, false)"
|
|
197
|
-
:data-size="reflectedProp('size', 'size', checkedProps.size, undefined, false)"
|
|
198
|
-
:data-tone="reflectedProp('tone', 'tone', checkedProps.tone, undefined, false)"
|
|
199
|
-
:data-variant="reflectedProp('variant', 'variant', checkedProps.variant, undefined, false)"
|
|
201
|
+
:data-ui-card-prop-as="reflectedProp('as', 'as', checkedProps.as, undefined, false)"
|
|
202
|
+
:data-ui-card-prop-padding="reflectedProp('padding', 'padding', checkedProps.padding, undefined, false)"
|
|
203
|
+
:data-ui-card-prop-size="reflectedProp('size', 'size', checkedProps.size, undefined, false)"
|
|
204
|
+
:data-ui-card-prop-tone="reflectedProp('tone', 'tone', checkedProps.tone, undefined, false)"
|
|
205
|
+
:data-ui-card-prop-variant="reflectedProp('variant', 'variant', checkedProps.variant, undefined, false)"
|
|
200
206
|
:data-ui-card-state="hostState || undefined"
|
|
201
207
|
ref="@html-next/root"
|
|
202
208
|
>
|
|
@@ -206,12 +212,14 @@ const hostState = computed(() =>
|
|
|
206
212
|
v-else
|
|
207
213
|
class="ui-card"
|
|
208
214
|
v-bind="nativeAttrs($attrs)"
|
|
215
|
+
data-hn
|
|
216
|
+
data-hn-ui-card
|
|
209
217
|
v-prop-validity="{ contract: propValidityContract, values: { ...props } }"
|
|
210
|
-
:data-as="reflectedProp('as', 'as', checkedProps.as, undefined, false)"
|
|
211
|
-
:data-padding="reflectedProp('padding', 'padding', checkedProps.padding, undefined, false)"
|
|
212
|
-
:data-size="reflectedProp('size', 'size', checkedProps.size, undefined, false)"
|
|
213
|
-
:data-tone="reflectedProp('tone', 'tone', checkedProps.tone, undefined, false)"
|
|
214
|
-
:data-variant="reflectedProp('variant', 'variant', checkedProps.variant, undefined, false)"
|
|
218
|
+
:data-ui-card-prop-as="reflectedProp('as', 'as', checkedProps.as, undefined, false)"
|
|
219
|
+
:data-ui-card-prop-padding="reflectedProp('padding', 'padding', checkedProps.padding, undefined, false)"
|
|
220
|
+
:data-ui-card-prop-size="reflectedProp('size', 'size', checkedProps.size, undefined, false)"
|
|
221
|
+
:data-ui-card-prop-tone="reflectedProp('tone', 'tone', checkedProps.tone, undefined, false)"
|
|
222
|
+
:data-ui-card-prop-variant="reflectedProp('variant', 'variant', checkedProps.variant, undefined, false)"
|
|
215
223
|
:data-ui-card-state="hostState || undefined"
|
|
216
224
|
ref="@html-next/root"
|
|
217
225
|
>
|
|
@@ -227,8 +235,8 @@ const hostState = computed(() =>
|
|
|
227
235
|
|
|
228
236
|
/* A component that sets its display still honours the hidden attribute on its root. */
|
|
229
237
|
|
|
230
|
-
@scope (.ui-card) {
|
|
231
|
-
:scope:where(
|
|
238
|
+
@scope (.ui-card) to ([data-hn]) {
|
|
239
|
+
:global(:scope:where([data-hn-ui-card])) {
|
|
232
240
|
--_ui-card-surface: var(--ui-surface-raised);
|
|
233
241
|
--_ui-selection-context-surface: initial;
|
|
234
242
|
--_ui-selection-context-border: initial;
|
|
@@ -245,54 +253,54 @@ const hostState = computed(() =>
|
|
|
245
253
|
color: var(--ui-text-primary);
|
|
246
254
|
}
|
|
247
255
|
|
|
248
|
-
:
|
|
256
|
+
:global(:scope[data-ui-card-state~="padding=xs"]:where([data-hn-ui-card])) {
|
|
249
257
|
gap: var(--ui-space-1);
|
|
250
258
|
padding: var(--ui-space-2);
|
|
251
259
|
}
|
|
252
|
-
:
|
|
260
|
+
:global(:scope[data-ui-card-state~="padding=sm"]:where([data-hn-ui-card])) {
|
|
253
261
|
gap: var(--ui-space-2);
|
|
254
262
|
padding: var(--ui-space-3);
|
|
255
263
|
}
|
|
256
264
|
|
|
257
|
-
:
|
|
265
|
+
:global(:scope[data-ui-card-state~="padding=lg"]:where([data-hn-ui-card])) {
|
|
258
266
|
padding: var(--ui-space-6);
|
|
259
267
|
}
|
|
260
268
|
|
|
261
|
-
:
|
|
269
|
+
:global(:scope[data-ui-card-state~="variant=subtle"]:where([data-hn-ui-card])) {
|
|
262
270
|
border-color: transparent;
|
|
263
271
|
--_ui-card-surface: var(--ui-surface-muted);
|
|
264
272
|
}
|
|
265
273
|
|
|
266
|
-
:
|
|
274
|
+
:global(:scope[data-ui-card-state~="variant=elevated"]:where([data-hn-ui-card])) {
|
|
267
275
|
border-color: var(--ui-border-subtle);
|
|
268
276
|
box-shadow: var(--ui-shadow-lg);
|
|
269
277
|
}
|
|
270
278
|
|
|
271
|
-
:
|
|
279
|
+
:global(:scope[data-ui-card-state~="tone=accent"]:where([data-hn-ui-card])) {
|
|
272
280
|
border-color: color-mix(in srgb, var(--ui-accent) 25%, var(--ui-border-default));
|
|
273
281
|
--_ui-card-surface: color-mix(in srgb, var(--ui-accent) 6%, var(--ui-surface-default));
|
|
274
282
|
}
|
|
275
283
|
|
|
276
|
-
:
|
|
284
|
+
:global(:scope[data-ui-card-state~="tone=info"]:where([data-hn-ui-card])) {
|
|
277
285
|
border-color: color-mix(in srgb, var(--ui-info) 25%, var(--ui-border-default));
|
|
278
286
|
--_ui-card-surface: color-mix(in srgb, var(--ui-info) 6%, var(--ui-surface-default));
|
|
279
287
|
}
|
|
280
288
|
|
|
281
|
-
:
|
|
289
|
+
:global(:scope[data-ui-card-state~="tone=success"]:where([data-hn-ui-card])) {
|
|
282
290
|
border-color: color-mix(in srgb, var(--ui-success) 25%, var(--ui-border-default));
|
|
283
291
|
--_ui-card-surface: color-mix(in srgb, var(--ui-success) 6%, var(--ui-surface-default));
|
|
284
292
|
}
|
|
285
293
|
|
|
286
|
-
:
|
|
294
|
+
:global(:scope[data-ui-card-state~="tone=warning"]:where([data-hn-ui-card])) {
|
|
287
295
|
border-color: color-mix(in srgb, var(--ui-warning) 25%, var(--ui-border-default));
|
|
288
296
|
--_ui-card-surface: color-mix(in srgb, var(--ui-warning) 6%, var(--ui-surface-default));
|
|
289
297
|
}
|
|
290
298
|
|
|
291
|
-
:
|
|
299
|
+
:global(:scope[data-ui-card-state~="variant=subtle"]:is([data-ui-card-state~="tone=accent"], [data-ui-card-state~="tone=info"], [data-ui-card-state~="tone=success"], [data-ui-card-state~="tone=warning"]):where([data-hn-ui-card])) {
|
|
292
300
|
border-color: transparent;
|
|
293
301
|
}
|
|
294
302
|
|
|
295
|
-
:
|
|
303
|
+
:global(:scope[data-ui-card-state~="tone=danger"]:where([data-hn-ui-card])) {
|
|
296
304
|
border-color: color-mix(in srgb, var(--ui-danger) 45%, var(--ui-border-default));
|
|
297
305
|
border-inline-start: var(--ui-accent-line-width) solid var(--ui-danger);
|
|
298
306
|
/* An accent edge keeps the corners on its side straight. */
|
|
@@ -300,11 +308,11 @@ const hostState = computed(() =>
|
|
|
300
308
|
border-end-start-radius: 0;
|
|
301
309
|
--_ui-card-surface: var(--ui-danger-soft);
|
|
302
310
|
}
|
|
303
|
-
:
|
|
304
|
-
:
|
|
305
|
-
:
|
|
306
|
-
:
|
|
307
|
-
:
|
|
311
|
+
:global(:scope[data-ui-card-state~="tone=accent"]:where([data-hn-ui-card])),
|
|
312
|
+
:global(:scope[data-ui-card-state~="tone=info"]:where([data-hn-ui-card])),
|
|
313
|
+
:global(:scope[data-ui-card-state~="tone=success"]:where([data-hn-ui-card])),
|
|
314
|
+
:global(:scope[data-ui-card-state~="tone=warning"]:where([data-hn-ui-card])),
|
|
315
|
+
:global(:scope[data-ui-card-state~="tone=danger"]:where([data-hn-ui-card])) {
|
|
308
316
|
--_ui-selection-context-surface: light-dark(
|
|
309
317
|
oklch(from var(--_ui-card-surface) calc(l - 0.045) calc(max(c, min(0.045, c * 3))) h),
|
|
310
318
|
oklch(from var(--_ui-card-surface) calc(l + 0.045) calc(max(c, min(0.045, c * 3))) h)
|
|
@@ -316,19 +324,19 @@ const hostState = computed(() =>
|
|
|
316
324
|
--_ui-selection-context-text: var(--ui-text-primary);
|
|
317
325
|
}
|
|
318
326
|
|
|
319
|
-
:
|
|
327
|
+
:global(:scope[data-ui-card-state~="size=sm"]:where([data-hn-ui-card])) {
|
|
320
328
|
inline-size: min(22rem, calc(100vw - var(--ui-space-2) * 2));
|
|
321
329
|
max-inline-size: min(22rem, calc(100vw - var(--ui-space-2) * 2));
|
|
322
330
|
}
|
|
323
|
-
:
|
|
331
|
+
:global(:scope[data-ui-card-state~="size=md"]:where([data-hn-ui-card])) {
|
|
324
332
|
inline-size: min(28rem, calc(100vw - var(--ui-space-2) * 2));
|
|
325
333
|
max-inline-size: min(28rem, calc(100vw - var(--ui-space-2) * 2));
|
|
326
334
|
}
|
|
327
|
-
:
|
|
335
|
+
:global(:scope[data-ui-card-state~="size=lg"]:where([data-hn-ui-card])) {
|
|
328
336
|
inline-size: min(36rem, calc(100vw - var(--ui-space-2) * 2));
|
|
329
337
|
max-inline-size: min(36rem, calc(100vw - var(--ui-space-2) * 2));
|
|
330
338
|
}
|
|
331
|
-
:
|
|
339
|
+
:global(:scope[hidden]:where([data-hn-ui-card])) {
|
|
332
340
|
display: none;
|
|
333
341
|
}
|
|
334
342
|
}
|