@threadlabs/looma 0.47.6 → 0.49.1
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/README.md +40 -17
- package/components/shared/input-modality.d.ts +2 -0
- package/components/shared/input-modality.js +2 -0
- package/components/shared/overlay.js +9 -0
- package/components/ui-compact-content/ui-compact-content.html +8 -0
- package/components/ui-compact-content/ui-compact-content.js +1 -0
- package/components/ui-compact-editor/ui-compact-editor.css +39 -0
- package/components/ui-compact-editor/ui-compact-editor.html +22 -0
- package/components/ui-compact-editor/ui-compact-editor.js +30 -0
- package/components/ui-compact-mark/ui-compact-mark.html +26 -0
- package/components/ui-compact-node/ui-compact-node.html +14 -0
- package/components/ui-dialog/ui-dialog.html +4 -1
- package/components/ui-editor/ui-editor.css +531 -0
- package/components/ui-editor/ui-editor.html +414 -0
- package/components/ui-editor/ui-editor.js +87 -0
- package/components/ui-editor-chip-editor/ui-editor-chip-editor.html +2 -1
- package/components/ui-editor-chip-editor/ui-editor-chip-editor.js +6 -0
- package/components/ui-editor-formatting-tools/ui-editor-formatting-tools.html +59 -0
- package/components/ui-editor-formatting-tools/ui-editor-formatting-tools.js +44 -0
- package/components/ui-editor-link-form/ui-editor-link-form.html +1 -0
- package/components/ui-editor-link-form/ui-editor-link-form.js +7 -0
- package/components/ui-editor-surface/ui-editor-surface.css +109 -0
- package/components/ui-editor-table-context-menu/ui-editor-table-context-menu.html +1 -1
- package/components/ui-editor-table-toolbar/ui-editor-table-toolbar.js +7 -4
- package/components/ui-menu/ui-menu.html +4 -1
- package/components/ui-meter/ui-meter.html +7 -7
- package/components/ui-popover/ui-popover.html +4 -1
- package/components/ui-radio-group/ui-radio-group.html +3 -1
- package/components/ui-radio-group/ui-radio-group.js +5 -0
- package/dist/index.js +57 -53
- package/docs/README.md +5 -7
- package/docs/catalog.json +1080 -180
- package/docs/catalog.mjs +2 -2
- package/docs/framework-examples.d.mts +7 -0
- package/docs/framework-examples.mjs +89 -0
- package/docs/index.d.ts +1 -1
- package/docs/render.mjs +3 -40
- package/editor/chunks/content.js +29 -0
- package/{vue/chunks/compact.js → editor/chunks/dist.js} +103 -230
- package/editor/chunks/expressmark.js +1 -24
- package/editor/chunks/extensions.js +63 -455
- package/editor/chunks/session.js +61 -0
- package/editor/chunks/{ui.js → table-overlay.js} +51 -1
- package/editor/compact.d.ts +22 -0
- package/editor/compact.js +63 -0
- package/editor/components.css +3699 -0
- package/editor/document-session.d.ts +274 -0
- package/editor/extensions/index.js +2 -2
- package/editor/index.d.ts +4 -0
- package/editor/index.js +15578 -4
- package/editor/session.d.ts +1 -1
- package/editor/toolbar-tooltip.d.ts +5 -1
- package/editor/ui.js +1 -2
- package/package.json +31 -46
- 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-group.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-color-picker.css +1 -1
- package/styles/ui-combobox.css +1 -1
- package/styles/ui-compact-content.css +1 -0
- package/styles/ui-compact-editor.css +1 -0
- package/styles/ui-compact-mark.css +1 -0
- package/styles/ui-compact-node.css +1 -0
- 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-curve-editor.css +1 -1
- package/styles/ui-cycle-button.css +1 -1
- package/styles/ui-description-item.css +1 -1
- package/styles/ui-description-list.css +1 -1
- package/styles/ui-dialog.css +9 -3
- package/styles/ui-disclosure.css +1 -1
- 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-footnote-editor.css +1 -1
- package/styles/ui-editor-formatting-tools.css +1 -0
- 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-editor.css +1 -0
- 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-light-editor.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 +5 -2
- package/styles/ui-meter.css +8 -8
- package/styles/ui-nav-item.css +1 -1
- package/styles/ui-number-input.css +1 -1
- package/styles/ui-page-header.css +1 -1
- package/styles/ui-pagination.css +1 -1
- package/styles/ui-popover.css +5 -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 +1 -1
- package/styles/ui-site-header.css +1 -1
- package/styles/ui-skeleton.css +1 -1
- package/styles/ui-slider.css +1 -1
- 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 +1 -1
- package/vanilla/UiAvatar.d.ts +1 -1
- package/vanilla/UiAvatar.js +1 -1
- package/vanilla/UiAvatarGroup.d.ts +1 -1
- package/vanilla/UiAvatarGroup.js +1 -1
- package/vanilla/UiBadge.d.ts +1 -1
- package/vanilla/UiBadge.js +1 -1
- package/vanilla/UiBreadcrumbItem.d.ts +1 -1
- package/vanilla/UiBreadcrumbItem.js +1 -1
- package/vanilla/UiBreadcrumbs.d.ts +1 -1
- package/vanilla/UiBreadcrumbs.js +1 -1
- package/vanilla/UiButton.d.ts +1 -1
- package/vanilla/UiButton.js +1 -1
- package/vanilla/UiCallout.d.ts +1 -1
- package/vanilla/UiCallout.js +1 -1
- package/vanilla/UiCard.d.ts +1 -1
- package/vanilla/UiCard.js +1 -1
- package/vanilla/UiCardGroup.d.ts +1 -1
- package/vanilla/UiCardGroup.js +1 -1
- package/vanilla/UiCheckbox.d.ts +1 -1
- package/vanilla/UiCheckbox.js +1 -1
- package/vanilla/UiCluster.d.ts +1 -1
- package/vanilla/UiCluster.js +1 -1
- package/vanilla/UiColorPicker.d.ts +1 -1
- package/vanilla/UiColorPicker.js +1 -1
- package/vanilla/UiCombobox.d.ts +1 -1
- package/vanilla/UiCombobox.js +1 -1
- package/vanilla/UiCompactContent.d.ts +23 -0
- package/vanilla/UiCompactContent.js +51 -0
- package/vanilla/UiCompactEditor.d.ts +29 -0
- package/vanilla/UiCompactEditor.js +59 -0
- package/vanilla/UiCompactMark.d.ts +25 -0
- package/vanilla/UiCompactMark.js +206 -0
- package/vanilla/UiCompactNode.d.ts +23 -0
- package/vanilla/UiCompactNode.js +156 -0
- package/vanilla/UiContainer.d.ts +1 -1
- package/vanilla/UiContainer.js +1 -1
- package/vanilla/UiContextMenu.d.ts +1 -1
- package/vanilla/UiContextMenu.js +1 -1
- package/vanilla/UiCover.d.ts +1 -1
- package/vanilla/UiCover.js +1 -1
- package/vanilla/UiCurveEditor.d.ts +1 -1
- package/vanilla/UiCurveEditor.js +1 -1
- package/vanilla/UiCycleButton.d.ts +1 -1
- package/vanilla/UiCycleButton.js +1 -1
- package/vanilla/UiDescriptionItem.d.ts +1 -1
- package/vanilla/UiDescriptionItem.js +1 -1
- package/vanilla/UiDescriptionList.d.ts +1 -1
- package/vanilla/UiDescriptionList.js +1 -1
- package/vanilla/UiDialog.d.ts +1 -1
- package/vanilla/UiDialog.js +1 -1
- package/vanilla/UiDisclosure.d.ts +1 -1
- package/vanilla/UiDisclosure.js +1 -1
- package/vanilla/UiEditable.d.ts +1 -1
- package/vanilla/UiEditable.js +1 -1
- package/vanilla/UiEditor.d.ts +57 -0
- package/vanilla/UiEditor.js +1067 -0
- package/vanilla/UiEditorBlockActions.d.ts +1 -1
- package/vanilla/UiEditorBlockActions.js +1 -1
- package/vanilla/UiEditorChipEditor.d.ts +2 -1
- package/vanilla/UiEditorChipEditor.js +10 -10
- package/vanilla/UiEditorCodeLanguage.d.ts +1 -1
- package/vanilla/UiEditorCodeLanguage.js +1 -1
- package/vanilla/UiEditorFootnoteEditor.d.ts +1 -1
- package/vanilla/UiEditorFootnoteEditor.js +1 -1
- package/vanilla/UiEditorFormattingTools.d.ts +27 -0
- package/vanilla/UiEditorFormattingTools.js +188 -0
- package/vanilla/UiEditorImageToolbar.d.ts +1 -1
- package/vanilla/UiEditorImageToolbar.js +1 -1
- package/vanilla/UiEditorInsertTableGrid.d.ts +1 -1
- package/vanilla/UiEditorInsertTableGrid.js +1 -1
- package/vanilla/UiEditorLinkCard.d.ts +1 -1
- package/vanilla/UiEditorLinkCard.js +1 -1
- package/vanilla/UiEditorLinkForm.d.ts +2 -1
- package/vanilla/UiEditorLinkForm.js +41 -41
- package/vanilla/UiEditorMentionMenu.d.ts +1 -1
- package/vanilla/UiEditorMentionMenu.js +1 -1
- package/vanilla/UiEditorMentionMenuItem.d.ts +1 -1
- package/vanilla/UiEditorMentionMenuItem.js +1 -1
- package/vanilla/UiEditorSlashMenu.d.ts +1 -1
- package/vanilla/UiEditorSlashMenu.js +1 -1
- package/vanilla/UiEditorSlashMenuGroup.d.ts +1 -1
- package/vanilla/UiEditorSlashMenuGroup.js +1 -1
- package/vanilla/UiEditorSlashMenuItem.d.ts +1 -1
- package/vanilla/UiEditorSlashMenuItem.js +1 -1
- package/vanilla/UiEditorSurface.d.ts +1 -1
- package/vanilla/UiEditorSurface.js +1 -1
- package/vanilla/UiEditorTableContextMenu.d.ts +1 -1
- package/vanilla/UiEditorTableContextMenu.js +10 -5
- package/vanilla/UiEditorTableOverlay.d.ts +1 -1
- package/vanilla/UiEditorTableOverlay.js +1 -1
- package/vanilla/UiEditorTableToolbar.d.ts +1 -1
- package/vanilla/UiEditorTableToolbar.js +1 -1
- package/vanilla/UiEditorToolbar.d.ts +1 -1
- package/vanilla/UiEditorToolbar.js +1 -1
- package/vanilla/UiFloatingActionButton.d.ts +1 -1
- package/vanilla/UiFloatingActionButton.js +1 -1
- package/vanilla/UiFormField.d.ts +1 -1
- package/vanilla/UiFormField.js +1 -1
- package/vanilla/UiGrid.d.ts +1 -1
- package/vanilla/UiGrid.js +1 -1
- package/vanilla/UiIcon.d.ts +1 -1
- package/vanilla/UiIcon.js +1 -1
- package/vanilla/UiIconButton.d.ts +1 -1
- package/vanilla/UiIconButton.js +1 -1
- package/vanilla/UiImage.d.ts +1 -1
- package/vanilla/UiImage.js +1 -1
- package/vanilla/UiInput.d.ts +1 -1
- package/vanilla/UiInput.js +1 -1
- package/vanilla/UiInputGroup.d.ts +1 -1
- package/vanilla/UiInputGroup.js +1 -1
- package/vanilla/UiLightEditor.d.ts +1 -1
- package/vanilla/UiLightEditor.js +1 -1
- package/vanilla/UiList.d.ts +1 -1
- package/vanilla/UiList.js +1 -1
- package/vanilla/UiListItem.d.ts +1 -1
- package/vanilla/UiListItem.js +1 -1
- package/vanilla/UiListbox.d.ts +1 -1
- package/vanilla/UiListbox.js +1 -1
- package/vanilla/UiMenu.d.ts +1 -1
- package/vanilla/UiMenu.js +1 -1
- package/vanilla/UiMenuGroup.d.ts +1 -1
- package/vanilla/UiMenuGroup.js +1 -1
- package/vanilla/UiMenuItem.d.ts +1 -1
- package/vanilla/UiMenuItem.js +1 -1
- package/vanilla/UiMeter.d.ts +1 -1
- package/vanilla/UiMeter.js +1 -1
- package/vanilla/UiNavItem.d.ts +1 -1
- package/vanilla/UiNavItem.js +1 -1
- package/vanilla/UiNumberInput.d.ts +1 -1
- package/vanilla/UiNumberInput.js +1 -1
- package/vanilla/UiPageHeader.d.ts +1 -1
- package/vanilla/UiPageHeader.js +1 -1
- package/vanilla/UiPagination.d.ts +1 -1
- package/vanilla/UiPagination.js +1 -1
- package/vanilla/UiPopover.d.ts +1 -1
- package/vanilla/UiPopover.js +1 -1
- package/vanilla/UiRadio.d.ts +1 -1
- package/vanilla/UiRadio.js +1 -1
- package/vanilla/UiRadioGroup.d.ts +2 -1
- package/vanilla/UiRadioGroup.js +33 -28
- package/vanilla/UiReel.d.ts +1 -1
- package/vanilla/UiReel.js +1 -1
- package/vanilla/UiScrollArea.d.ts +1 -1
- package/vanilla/UiScrollArea.js +1 -1
- package/vanilla/UiSearchResultRow.d.ts +1 -1
- package/vanilla/UiSearchResultRow.js +1 -1
- package/vanilla/UiSearchShell.d.ts +1 -1
- package/vanilla/UiSearchShell.js +1 -1
- package/vanilla/UiSection.d.ts +1 -1
- package/vanilla/UiSection.js +1 -1
- package/vanilla/UiSelect.d.ts +1 -1
- package/vanilla/UiSelect.js +1 -1
- package/vanilla/UiSeparator.d.ts +1 -1
- package/vanilla/UiSeparator.js +1 -1
- package/vanilla/UiSidebar.d.ts +1 -1
- package/vanilla/UiSidebar.js +1 -1
- package/vanilla/UiSiteHeader.d.ts +1 -1
- package/vanilla/UiSiteHeader.js +1 -1
- package/vanilla/UiSkeleton.d.ts +1 -1
- package/vanilla/UiSkeleton.js +1 -1
- package/vanilla/UiSlider.d.ts +1 -1
- package/vanilla/UiSlider.js +1 -1
- package/vanilla/UiSpinner.d.ts +1 -1
- package/vanilla/UiSpinner.js +1 -1
- package/vanilla/UiStack.d.ts +1 -1
- package/vanilla/UiStack.js +1 -1
- package/vanilla/UiStatusMessage.d.ts +1 -1
- package/vanilla/UiStatusMessage.js +1 -1
- package/vanilla/UiSwatch.d.ts +1 -1
- package/vanilla/UiSwatch.js +1 -1
- package/vanilla/UiSwitch.d.ts +1 -1
- package/vanilla/UiSwitch.js +1 -1
- package/vanilla/UiSwitcher.d.ts +1 -1
- package/vanilla/UiSwitcher.js +1 -1
- package/vanilla/UiTable.d.ts +1 -1
- package/vanilla/UiTable.js +1 -1
- package/vanilla/UiTabs.d.ts +1 -1
- package/vanilla/UiTabs.js +1 -1
- package/vanilla/UiText.d.ts +1 -1
- package/vanilla/UiText.js +1 -1
- package/vanilla/UiTextarea.d.ts +1 -1
- package/vanilla/UiTextarea.js +1 -1
- package/vanilla/UiToast.d.ts +1 -1
- package/vanilla/UiToast.js +1 -1
- package/vanilla/UiToastRegion.d.ts +1 -1
- package/vanilla/UiToastRegion.js +1 -1
- package/vanilla/UiTooltip.d.ts +1 -1
- package/vanilla/UiTooltip.js +1 -1
- package/vanilla/UiTopBar.d.ts +1 -1
- package/vanilla/UiTopBar.js +1 -1
- package/vanilla/UiTree.d.ts +1 -1
- package/vanilla/UiTree.js +1 -1
- package/vanilla/UiTreeItem.d.ts +1 -1
- package/vanilla/UiTreeItem.js +1 -1
- package/vanilla/index.js +6 -0
- package/editor/chunks/table-backgrounds.js +0 -51
- package/vue/UiActionBar.d.ts +0 -19
- package/vue/UiActionBar.js +0 -2
- package/vue/UiActionBar.vue +0 -90
- package/vue/UiAffordanceScope.d.ts +0 -35
- package/vue/UiAffordanceScope.js +0 -2
- package/vue/UiAffordanceScope.vue +0 -182
- package/vue/UiAvatar.d.ts +0 -71
- package/vue/UiAvatar.js +0 -2
- package/vue/UiAvatar.vue +0 -394
- package/vue/UiAvatarGroup.d.ts +0 -53
- package/vue/UiAvatarGroup.js +0 -2
- package/vue/UiAvatarGroup.vue +0 -305
- package/vue/UiBadge.d.ts +0 -49
- package/vue/UiBadge.js +0 -2
- package/vue/UiBadge.vue +0 -810
- package/vue/UiBreadcrumbItem.d.ts +0 -29
- package/vue/UiBreadcrumbItem.js +0 -2
- package/vue/UiBreadcrumbItem.vue +0 -192
- package/vue/UiBreadcrumbs.d.ts +0 -29
- package/vue/UiBreadcrumbs.js +0 -2
- package/vue/UiBreadcrumbs.vue +0 -117
- package/vue/UiButton.d.ts +0 -131
- package/vue/UiButton.js +0 -2
- package/vue/UiButton.vue +0 -1609
- package/vue/UiCallout.d.ts +0 -35
- package/vue/UiCallout.js +0 -2
- package/vue/UiCallout.vue +0 -418
- package/vue/UiCard.d.ts +0 -81
- package/vue/UiCard.js +0 -2
- package/vue/UiCard.vue +0 -530
- package/vue/UiCardGroup.d.ts +0 -41
- package/vue/UiCardGroup.js +0 -2
- package/vue/UiCardGroup.vue +0 -168
- package/vue/UiCheckbox.d.ts +0 -95
- package/vue/UiCheckbox.js +0 -2
- package/vue/UiCheckbox.vue +0 -601
- package/vue/UiCluster.d.ts +0 -65
- package/vue/UiCluster.js +0 -2
- package/vue/UiCluster.vue +0 -304
- package/vue/UiColorPicker.d.ts +0 -71
- package/vue/UiColorPicker.js +0 -2
- package/vue/UiColorPicker.vue +0 -563
- package/vue/UiCombobox.d.ts +0 -538
- package/vue/UiCombobox.js +0 -2
- package/vue/UiCombobox.vue +0 -2894
- package/vue/UiContainer.d.ts +0 -41
- package/vue/UiContainer.js +0 -2
- package/vue/UiContainer.vue +0 -177
- package/vue/UiContextMenu.d.ts +0 -69
- package/vue/UiContextMenu.js +0 -2
- package/vue/UiContextMenu.vue +0 -289
- package/vue/UiCover.d.ts +0 -29
- package/vue/UiCover.js +0 -2
- package/vue/UiCover.vue +0 -127
- package/vue/UiCurveEditor.d.ts +0 -59
- package/vue/UiCurveEditor.js +0 -2
- package/vue/UiCurveEditor.vue +0 -429
- package/vue/UiCycleButton.d.ts +0 -69
- package/vue/UiCycleButton.js +0 -2
- package/vue/UiCycleButton.vue +0 -403
- package/vue/UiDescriptionItem.d.ts +0 -29
- package/vue/UiDescriptionItem.js +0 -2
- package/vue/UiDescriptionItem.vue +0 -124
- package/vue/UiDescriptionList.d.ts +0 -41
- package/vue/UiDescriptionList.js +0 -2
- package/vue/UiDescriptionList.vue +0 -217
- package/vue/UiDialog.d.ts +0 -97
- package/vue/UiDialog.js +0 -2
- package/vue/UiDialog.vue +0 -817
- package/vue/UiDisclosure.d.ts +0 -107
- package/vue/UiDisclosure.js +0 -2
- package/vue/UiDisclosure.vue +0 -605
- package/vue/UiEditable.d.ts +0 -113
- package/vue/UiEditable.js +0 -2
- package/vue/UiEditable.vue +0 -582
- package/vue/UiEditorBlockActions.d.ts +0 -33
- package/vue/UiEditorBlockActions.js +0 -2
- package/vue/UiEditorBlockActions.vue +0 -163
- package/vue/UiEditorChipEditor.d.ts +0 -45
- package/vue/UiEditorChipEditor.js +0 -2
- package/vue/UiEditorChipEditor.vue +0 -208
- package/vue/UiEditorCodeLanguage.d.ts +0 -41
- package/vue/UiEditorCodeLanguage.js +0 -2
- package/vue/UiEditorCodeLanguage.vue +0 -200
- package/vue/UiEditorFootnoteEditor.d.ts +0 -39
- package/vue/UiEditorFootnoteEditor.js +0 -2
- package/vue/UiEditorFootnoteEditor.vue +0 -152
- package/vue/UiEditorImageToolbar.d.ts +0 -51
- package/vue/UiEditorImageToolbar.js +0 -2
- package/vue/UiEditorImageToolbar.vue +0 -446
- package/vue/UiEditorInsertTableGrid.d.ts +0 -49
- package/vue/UiEditorInsertTableGrid.js +0 -2
- package/vue/UiEditorInsertTableGrid.vue +0 -367
- package/vue/UiEditorLinkCard.d.ts +0 -49
- package/vue/UiEditorLinkCard.js +0 -2
- package/vue/UiEditorLinkCard.vue +0 -385
- package/vue/UiEditorLinkForm.d.ts +0 -131
- package/vue/UiEditorLinkForm.js +0 -2
- package/vue/UiEditorLinkForm.vue +0 -664
- package/vue/UiEditorMentionMenu.d.ts +0 -121
- package/vue/UiEditorMentionMenu.js +0 -2
- package/vue/UiEditorMentionMenu.vue +0 -596
- package/vue/UiEditorMentionMenuItem.d.ts +0 -43
- package/vue/UiEditorMentionMenuItem.js +0 -2
- package/vue/UiEditorMentionMenuItem.vue +0 -205
- package/vue/UiEditorSlashMenu.d.ts +0 -111
- package/vue/UiEditorSlashMenu.js +0 -2
- package/vue/UiEditorSlashMenu.vue +0 -549
- package/vue/UiEditorSlashMenuGroup.d.ts +0 -29
- package/vue/UiEditorSlashMenuGroup.js +0 -2
- package/vue/UiEditorSlashMenuGroup.vue +0 -113
- package/vue/UiEditorSlashMenuItem.d.ts +0 -53
- package/vue/UiEditorSlashMenuItem.js +0 -2
- package/vue/UiEditorSlashMenuItem.vue +0 -249
- package/vue/UiEditorSurface.d.ts +0 -29
- package/vue/UiEditorSurface.js +0 -2
- package/vue/UiEditorSurface.vue +0 -117
- package/vue/UiEditorTableContextMenu.d.ts +0 -57
- package/vue/UiEditorTableContextMenu.js +0 -2
- package/vue/UiEditorTableContextMenu.vue +0 -694
- package/vue/UiEditorTableOverlay.d.ts +0 -191
- package/vue/UiEditorTableOverlay.js +0 -2
- package/vue/UiEditorTableOverlay.vue +0 -1099
- package/vue/UiEditorTableToolbar.d.ts +0 -57
- package/vue/UiEditorTableToolbar.js +0 -2
- package/vue/UiEditorTableToolbar.vue +0 -834
- package/vue/UiEditorToolbar.d.ts +0 -29
- package/vue/UiEditorToolbar.js +0 -2
- package/vue/UiEditorToolbar.vue +0 -296
- package/vue/UiFloatingActionButton.d.ts +0 -41
- package/vue/UiFloatingActionButton.js +0 -2
- package/vue/UiFloatingActionButton.vue +0 -201
- package/vue/UiFormField.d.ts +0 -49
- package/vue/UiFormField.js +0 -2
- package/vue/UiFormField.vue +0 -256
- package/vue/UiGrid.d.ts +0 -41
- package/vue/UiGrid.js +0 -2
- package/vue/UiGrid.vue +0 -190
- package/vue/UiIcon.d.ts +0 -25
- package/vue/UiIcon.js +0 -2
- package/vue/UiIcon.vue +0 -612
- package/vue/UiIconButton.d.ts +0 -101
- package/vue/UiIconButton.js +0 -2
- package/vue/UiIconButton.vue +0 -1141
- package/vue/UiImage.d.ts +0 -85
- package/vue/UiImage.js +0 -2
- package/vue/UiImage.vue +0 -462
- package/vue/UiInput.d.ts +0 -50
- package/vue/UiInput.js +0 -2
- package/vue/UiInput.vue +0 -671
- package/vue/UiInputGroup.d.ts +0 -59
- package/vue/UiInputGroup.js +0 -2
- package/vue/UiInputGroup.vue +0 -447
- package/vue/UiLightEditor.d.ts +0 -83
- package/vue/UiLightEditor.js +0 -2
- package/vue/UiLightEditor.vue +0 -537
- package/vue/UiList.d.ts +0 -49
- package/vue/UiList.js +0 -2
- package/vue/UiList.vue +0 -260
- package/vue/UiListItem.d.ts +0 -65
- package/vue/UiListItem.js +0 -2
- package/vue/UiListItem.vue +0 -407
- package/vue/UiListbox.d.ts +0 -87
- package/vue/UiListbox.js +0 -2
- package/vue/UiListbox.vue +0 -554
- package/vue/UiMenu.d.ts +0 -99
- package/vue/UiMenu.js +0 -2
- package/vue/UiMenu.vue +0 -541
- package/vue/UiMenuGroup.d.ts +0 -29
- package/vue/UiMenuGroup.js +0 -2
- package/vue/UiMenuGroup.vue +0 -105
- package/vue/UiMenuItem.d.ts +0 -89
- package/vue/UiMenuItem.js +0 -2
- package/vue/UiMenuItem.vue +0 -532
- package/vue/UiMeter.d.ts +0 -73
- package/vue/UiMeter.js +0 -2
- package/vue/UiMeter.vue +0 -1112
- package/vue/UiNavItem.d.ts +0 -79
- package/vue/UiNavItem.js +0 -2
- package/vue/UiNavItem.vue +0 -493
- package/vue/UiNumberInput.d.ts +0 -89
- package/vue/UiNumberInput.js +0 -2
- package/vue/UiNumberInput.vue +0 -445
- package/vue/UiPageHeader.d.ts +0 -37
- package/vue/UiPageHeader.js +0 -2
- package/vue/UiPageHeader.vue +0 -192
- package/vue/UiPagination.d.ts +0 -115
- package/vue/UiPagination.js +0 -2
- package/vue/UiPagination.vue +0 -596
- package/vue/UiPopover.d.ts +0 -77
- package/vue/UiPopover.js +0 -2
- package/vue/UiPopover.vue +0 -495
- package/vue/UiRadio.d.ts +0 -77
- package/vue/UiRadio.js +0 -2
- package/vue/UiRadio.vue +0 -475
- package/vue/UiRadioGroup.d.ts +0 -95
- package/vue/UiRadioGroup.js +0 -2
- package/vue/UiRadioGroup.vue +0 -393
- package/vue/UiReel.d.ts +0 -41
- package/vue/UiReel.js +0 -2
- package/vue/UiReel.vue +0 -223
- package/vue/UiScrollArea.d.ts +0 -53
- package/vue/UiScrollArea.js +0 -2
- package/vue/UiScrollArea.vue +0 -307
- package/vue/UiSearchResultRow.d.ts +0 -49
- package/vue/UiSearchResultRow.js +0 -2
- package/vue/UiSearchResultRow.vue +0 -268
- package/vue/UiSearchShell.d.ts +0 -67
- package/vue/UiSearchShell.js +0 -2
- package/vue/UiSearchShell.vue +0 -391
- package/vue/UiSection.d.ts +0 -51
- package/vue/UiSection.js +0 -2
- package/vue/UiSection.vue +0 -331
- package/vue/UiSelect.d.ts +0 -69
- package/vue/UiSelect.js +0 -2
- package/vue/UiSelect.vue +0 -391
- package/vue/UiSeparator.d.ts +0 -37
- package/vue/UiSeparator.js +0 -2
- package/vue/UiSeparator.vue +0 -199
- package/vue/UiSidebar.d.ts +0 -99
- package/vue/UiSidebar.js +0 -2
- package/vue/UiSidebar.vue +0 -579
- package/vue/UiSiteHeader.d.ts +0 -59
- package/vue/UiSiteHeader.js +0 -2
- package/vue/UiSiteHeader.vue +0 -904
- package/vue/UiSkeleton.d.ts +0 -37
- package/vue/UiSkeleton.js +0 -2
- package/vue/UiSkeleton.vue +0 -287
- package/vue/UiSlider.d.ts +0 -89
- package/vue/UiSlider.js +0 -2
- package/vue/UiSlider.vue +0 -448
- package/vue/UiSpinner.d.ts +0 -25
- package/vue/UiSpinner.js +0 -2
- package/vue/UiSpinner.vue +0 -330
- package/vue/UiStack.d.ts +0 -53
- package/vue/UiStack.js +0 -2
- package/vue/UiStack.vue +0 -247
- package/vue/UiStatusMessage.d.ts +0 -43
- package/vue/UiStatusMessage.js +0 -2
- package/vue/UiStatusMessage.vue +0 -239
- package/vue/UiSwatch.d.ts +0 -19
- package/vue/UiSwatch.js +0 -2
- package/vue/UiSwatch.vue +0 -188
- package/vue/UiSwitch.d.ts +0 -77
- package/vue/UiSwitch.js +0 -2
- package/vue/UiSwitch.vue +0 -478
- package/vue/UiSwitcher.d.ts +0 -47
- package/vue/UiSwitcher.js +0 -2
- package/vue/UiSwitcher.vue +0 -258
- package/vue/UiTable.d.ts +0 -35
- package/vue/UiTable.js +0 -2
- package/vue/UiTable.vue +0 -280
- package/vue/UiTabs.d.ts +0 -81
- package/vue/UiTabs.js +0 -2
- package/vue/UiTabs.vue +0 -493
- package/vue/UiText.d.ts +0 -111
- package/vue/UiText.js +0 -2
- package/vue/UiText.vue +0 -836
- package/vue/UiTextarea.d.ts +0 -77
- package/vue/UiTextarea.js +0 -2
- package/vue/UiTextarea.vue +0 -477
- package/vue/UiToast.d.ts +0 -49
- package/vue/UiToast.js +0 -2
- package/vue/UiToast.vue +0 -337
- package/vue/UiToastRegion.d.ts +0 -61
- package/vue/UiToastRegion.js +0 -2
- package/vue/UiToastRegion.vue +0 -631
- package/vue/UiTooltip.d.ts +0 -93
- package/vue/UiTooltip.js +0 -2
- package/vue/UiTooltip.vue +0 -627
- package/vue/UiTopBar.d.ts +0 -35
- package/vue/UiTopBar.js +0 -2
- package/vue/UiTopBar.vue +0 -240
- package/vue/UiTree.d.ts +0 -123
- package/vue/UiTree.js +0 -2
- package/vue/UiTree.vue +0 -419
- package/vue/UiTreeItem.d.ts +0 -133
- package/vue/UiTreeItem.js +0 -2
- package/vue/UiTreeItem.vue +0 -1962
- package/vue/chunks/UiActionBar.js +0 -42
- package/vue/chunks/UiAffordanceScope.js +0 -136
- package/vue/chunks/UiAvatar.js +0 -341
- package/vue/chunks/UiAvatarGroup.js +0 -234
- package/vue/chunks/UiBadge.js +0 -188
- package/vue/chunks/UiBreadcrumbItem.js +0 -104
- package/vue/chunks/UiBreadcrumbs.js +0 -67
- package/vue/chunks/UiButton.js +0 -881
- package/vue/chunks/UiCallout.js +0 -302
- package/vue/chunks/UiCard.js +0 -369
- package/vue/chunks/UiCardGroup.js +0 -153
- package/vue/chunks/UiCheckbox.js +0 -361
- package/vue/chunks/UiCluster.js +0 -236
- package/vue/chunks/UiColorPicker.js +0 -375
- package/vue/chunks/UiCombobox.js +0 -2186
- package/vue/chunks/UiContainer.js +0 -122
- package/vue/chunks/UiContextMenu.js +0 -157
- package/vue/chunks/UiCover.js +0 -66
- package/vue/chunks/UiCurveEditor.js +0 -415
- package/vue/chunks/UiCycleButton.js +0 -352
- package/vue/chunks/UiDescriptionItem.js +0 -64
- package/vue/chunks/UiDescriptionList.js +0 -133
- package/vue/chunks/UiDialog.js +0 -367
- package/vue/chunks/UiDisclosure.js +0 -403
- package/vue/chunks/UiEditable.js +0 -436
- package/vue/chunks/UiEditorBlockActions.js +0 -157
- package/vue/chunks/UiEditorChipEditor.js +0 -191
- package/vue/chunks/UiEditorCodeLanguage.js +0 -181
- package/vue/chunks/UiEditorFootnoteEditor.js +0 -114
- package/vue/chunks/UiEditorImageToolbar.js +0 -531
- package/vue/chunks/UiEditorInsertTableGrid.js +0 -325
- package/vue/chunks/UiEditorLinkCard.js +0 -391
- package/vue/chunks/UiEditorLinkForm.js +0 -711
- package/vue/chunks/UiEditorMentionMenu.js +0 -618
- package/vue/chunks/UiEditorMentionMenuItem.js +0 -140
- package/vue/chunks/UiEditorSlashMenu.js +0 -555
- package/vue/chunks/UiEditorSlashMenuGroup.js +0 -78
- package/vue/chunks/UiEditorSlashMenuItem.js +0 -197
- package/vue/chunks/UiEditorSurface.js +0 -66
- package/vue/chunks/UiEditorTableContextMenu.js +0 -500
- package/vue/chunks/UiEditorTableOverlay.js +0 -987
- package/vue/chunks/UiEditorTableToolbar.js +0 -707
- package/vue/chunks/UiEditorToolbar.js +0 -103
- package/vue/chunks/UiFloatingActionButton.js +0 -123
- package/vue/chunks/UiFormField.js +0 -172
- package/vue/chunks/UiGrid.js +0 -127
- package/vue/chunks/UiIcon.js +0 -1361
- package/vue/chunks/UiIconButton.js +0 -469
- package/vue/chunks/UiImage.js +0 -312
- package/vue/chunks/UiInput.js +0 -709
- package/vue/chunks/UiInputGroup.js +0 -225
- package/vue/chunks/UiLightEditor.js +0 -365
- package/vue/chunks/UiList.js +0 -178
- package/vue/chunks/UiListItem.js +0 -219
- package/vue/chunks/UiListbox.js +0 -489
- package/vue/chunks/UiMenu.js +0 -286
- package/vue/chunks/UiMenuGroup.js +0 -75
- package/vue/chunks/UiMenuItem.js +0 -374
- package/vue/chunks/UiMeter.js +0 -540
- package/vue/chunks/UiNavItem.js +0 -380
- package/vue/chunks/UiNumberInput.js +0 -432
- package/vue/chunks/UiPageHeader.js +0 -100
- package/vue/chunks/UiPagination.js +0 -537
- package/vue/chunks/UiPopover.js +0 -243
- package/vue/chunks/UiRadio.js +0 -291
- package/vue/chunks/UiRadioGroup.js +0 -300
- package/vue/chunks/UiReel.js +0 -133
- package/vue/chunks/UiScrollArea.js +0 -219
- package/vue/chunks/UiSearchResultRow.js +0 -164
- package/vue/chunks/UiSearchShell.js +0 -215
- package/vue/chunks/UiSection.js +0 -228
- package/vue/chunks/UiSelect.js +0 -251
- package/vue/chunks/UiSeparator.js +0 -144
- package/vue/chunks/UiSidebar.js +0 -358
- package/vue/chunks/UiSiteHeader.js +0 -335
- package/vue/chunks/UiSkeleton.js +0 -183
- package/vue/chunks/UiSlider.js +0 -427
- package/vue/chunks/UiSpinner.js +0 -181
- package/vue/chunks/UiStack.js +0 -177
- package/vue/chunks/UiStatusMessage.js +0 -176
- package/vue/chunks/UiSwatch.js +0 -93
- package/vue/chunks/UiSwitch.js +0 -292
- package/vue/chunks/UiSwitcher.js +0 -194
- package/vue/chunks/UiTable.js +0 -128
- package/vue/chunks/UiTabs.js +0 -334
- package/vue/chunks/UiText.js +0 -747
- package/vue/chunks/UiTextarea.js +0 -313
- package/vue/chunks/UiToast.js +0 -174
- package/vue/chunks/UiToastRegion.js +0 -275
- package/vue/chunks/UiTooltip.js +0 -297
- package/vue/chunks/UiTopBar.js +0 -129
- package/vue/chunks/UiTree.js +0 -282
- package/vue/chunks/UiTreeItem.js +0 -699
- package/vue/chunks/_plugin-vue_export-helper.js +0 -1265
- package/vue/chunks/control.js +0 -214
- package/vue/chunks/props.js +0 -1228
- package/vue/components.css +0 -17545
- package/vue/editor/LoomaEditor.d.ts +0 -433
- package/vue/editor/compact/index.d.ts +0 -84
- package/vue/editor/compact/index.js +0 -2
- package/vue/editor/index.d.ts +0 -5
- package/vue/editor/index.js +0 -17281
- package/vue/editor/primitives.d.ts +0 -120
- package/vue/host.ts +0 -2272
- package/vue/index.d.ts +0 -94
- package/vue/index.js +0 -95
- package/vue/props.d.ts +0 -272
- /package/{vue → editor}/chunks/1c.js +0 -0
- /package/{vue → editor}/chunks/abnf.js +0 -0
- /package/{vue → editor}/chunks/accesslog.js +0 -0
- /package/{vue → editor}/chunks/actionscript.js +0 -0
- /package/{vue → editor}/chunks/ada.js +0 -0
- /package/{vue → editor}/chunks/angelscript.js +0 -0
- /package/{vue → editor}/chunks/apache.js +0 -0
- /package/{vue → editor}/chunks/applescript.js +0 -0
- /package/{vue → editor}/chunks/arcade.js +0 -0
- /package/{vue → editor}/chunks/arduino.js +0 -0
- /package/{vue → editor}/chunks/armasm.js +0 -0
- /package/{vue → editor}/chunks/asciidoc.js +0 -0
- /package/{vue → editor}/chunks/aspectj.js +0 -0
- /package/{vue → editor}/chunks/autohotkey.js +0 -0
- /package/{vue → editor}/chunks/autoit.js +0 -0
- /package/{vue → editor}/chunks/avrasm.js +0 -0
- /package/{vue → editor}/chunks/awk.js +0 -0
- /package/{vue → editor}/chunks/axapta.js +0 -0
- /package/{vue → editor}/chunks/bash.js +0 -0
- /package/{vue → editor}/chunks/basic.js +0 -0
- /package/{vue → editor}/chunks/bnf.js +0 -0
- /package/{vue → editor}/chunks/brainfuck.js +0 -0
- /package/{vue → editor}/chunks/c.js +0 -0
- /package/{vue → editor}/chunks/cal.js +0 -0
- /package/{vue → editor}/chunks/capnproto.js +0 -0
- /package/{vue → editor}/chunks/ceylon.js +0 -0
- /package/{vue → editor}/chunks/clean.js +0 -0
- /package/{vue → editor}/chunks/clojure-repl.js +0 -0
- /package/{vue → editor}/chunks/clojure.js +0 -0
- /package/{vue → editor}/chunks/cmake.js +0 -0
- /package/{vue → editor}/chunks/coffeescript.js +0 -0
- /package/{vue → editor}/chunks/coq.js +0 -0
- /package/{vue → editor}/chunks/cos.js +0 -0
- /package/{vue → editor}/chunks/cpp.js +0 -0
- /package/{vue → editor}/chunks/crmsh.js +0 -0
- /package/{vue → editor}/chunks/crystal.js +0 -0
- /package/{vue → editor}/chunks/csharp.js +0 -0
- /package/{vue → editor}/chunks/csp.js +0 -0
- /package/{vue → editor}/chunks/css.js +0 -0
- /package/{vue → editor}/chunks/d.js +0 -0
- /package/{vue → editor}/chunks/dart.js +0 -0
- /package/{vue → editor}/chunks/delphi.js +0 -0
- /package/{vue → editor}/chunks/diff.js +0 -0
- /package/{vue → editor}/chunks/django.js +0 -0
- /package/{vue → editor}/chunks/dns.js +0 -0
- /package/{vue → editor}/chunks/dockerfile.js +0 -0
- /package/{vue → editor}/chunks/dos.js +0 -0
- /package/{vue → editor}/chunks/dsconfig.js +0 -0
- /package/{vue → editor}/chunks/dts.js +0 -0
- /package/{vue → editor}/chunks/dust.js +0 -0
- /package/{vue → editor}/chunks/ebnf.js +0 -0
- /package/{vue → editor}/chunks/elixir.js +0 -0
- /package/{vue → editor}/chunks/elm.js +0 -0
- /package/{vue → editor}/chunks/erb.js +0 -0
- /package/{vue → editor}/chunks/erlang-repl.js +0 -0
- /package/{vue → editor}/chunks/erlang.js +0 -0
- /package/{vue → editor}/chunks/excel.js +0 -0
- /package/{vue → editor}/chunks/fix.js +0 -0
- /package/{vue → editor}/chunks/flix.js +0 -0
- /package/{vue → editor}/chunks/fortran.js +0 -0
- /package/{vue → editor}/chunks/fsharp.js +0 -0
- /package/{vue → editor}/chunks/gams.js +0 -0
- /package/{vue → editor}/chunks/gauss.js +0 -0
- /package/{vue → editor}/chunks/gcode.js +0 -0
- /package/{vue → editor}/chunks/gherkin.js +0 -0
- /package/{vue → editor}/chunks/glsl.js +0 -0
- /package/{vue → editor}/chunks/gml.js +0 -0
- /package/{vue → editor}/chunks/go.js +0 -0
- /package/{vue → editor}/chunks/golo.js +0 -0
- /package/{vue → editor}/chunks/gradle.js +0 -0
- /package/{vue → editor}/chunks/graphql.js +0 -0
- /package/{vue → editor}/chunks/groovy.js +0 -0
- /package/{vue → editor}/chunks/haml.js +0 -0
- /package/{vue → editor}/chunks/handlebars.js +0 -0
- /package/{vue → editor}/chunks/haskell.js +0 -0
- /package/{vue → editor}/chunks/haxe.js +0 -0
- /package/{vue → editor}/chunks/hsp.js +0 -0
- /package/{vue → editor}/chunks/http.js +0 -0
- /package/{vue → editor}/chunks/hy.js +0 -0
- /package/{vue → editor}/chunks/inform7.js +0 -0
- /package/{vue → editor}/chunks/ini.js +0 -0
- /package/{vue → editor}/chunks/irpf90.js +0 -0
- /package/{vue → editor}/chunks/isbl.js +0 -0
- /package/{vue → editor}/chunks/java.js +0 -0
- /package/{vue → editor}/chunks/javascript.js +0 -0
- /package/{vue → editor}/chunks/jboss-cli.js +0 -0
- /package/{vue → editor}/chunks/json.js +0 -0
- /package/{vue → editor}/chunks/julia-repl.js +0 -0
- /package/{vue → editor}/chunks/julia.js +0 -0
- /package/{vue → editor}/chunks/kotlin.js +0 -0
- /package/{vue → editor}/chunks/lasso.js +0 -0
- /package/{vue → editor}/chunks/latex.js +0 -0
- /package/{vue → editor}/chunks/ldif.js +0 -0
- /package/{vue → editor}/chunks/leaf.js +0 -0
- /package/{vue → editor}/chunks/less.js +0 -0
- /package/{vue → editor}/chunks/lisp.js +0 -0
- /package/{vue → editor}/chunks/livecodeserver.js +0 -0
- /package/{vue → editor}/chunks/livescript.js +0 -0
- /package/{vue → editor}/chunks/llvm.js +0 -0
- /package/{vue → editor}/chunks/lsl.js +0 -0
- /package/{vue → editor}/chunks/lua.js +0 -0
- /package/{vue → editor}/chunks/makefile.js +0 -0
- /package/{vue → editor}/chunks/markdown.js +0 -0
- /package/{vue → editor}/chunks/mathematica.js +0 -0
- /package/{vue → editor}/chunks/matlab.js +0 -0
- /package/{vue → editor}/chunks/maxima.js +0 -0
- /package/{vue → editor}/chunks/mel.js +0 -0
- /package/{vue → editor}/chunks/mercury.js +0 -0
- /package/{vue → editor}/chunks/mipsasm.js +0 -0
- /package/{vue → editor}/chunks/mizar.js +0 -0
- /package/{vue → editor}/chunks/mojolicious.js +0 -0
- /package/{vue → editor}/chunks/monkey.js +0 -0
- /package/{vue → editor}/chunks/moonscript.js +0 -0
- /package/{vue → editor}/chunks/n1ql.js +0 -0
- /package/{vue → editor}/chunks/nestedtext.js +0 -0
- /package/{vue → editor}/chunks/nginx.js +0 -0
- /package/{vue → editor}/chunks/nim.js +0 -0
- /package/{vue → editor}/chunks/nix.js +0 -0
- /package/{vue → editor}/chunks/node-repl.js +0 -0
- /package/{vue → editor}/chunks/nsis.js +0 -0
- /package/{vue → editor}/chunks/objectivec.js +0 -0
- /package/{vue → editor}/chunks/ocaml.js +0 -0
- /package/{vue → editor}/chunks/openscad.js +0 -0
- /package/{vue → editor}/chunks/oxygene.js +0 -0
- /package/{vue → editor}/chunks/parser3.js +0 -0
- /package/{vue → editor}/chunks/perl.js +0 -0
- /package/{vue → editor}/chunks/pf.js +0 -0
- /package/{vue → editor}/chunks/pgsql.js +0 -0
- /package/{vue → editor}/chunks/php-template.js +0 -0
- /package/{vue → editor}/chunks/php.js +0 -0
- /package/{vue → editor}/chunks/plaintext.js +0 -0
- /package/{vue → editor}/chunks/pony.js +0 -0
- /package/{vue → editor}/chunks/powershell.js +0 -0
- /package/{vue → editor}/chunks/processing.js +0 -0
- /package/{vue → editor}/chunks/profile.js +0 -0
- /package/{vue → editor}/chunks/prolog.js +0 -0
- /package/{vue → editor}/chunks/properties.js +0 -0
- /package/{vue → editor}/chunks/protobuf.js +0 -0
- /package/{vue → editor}/chunks/puppet.js +0 -0
- /package/{vue → editor}/chunks/purebasic.js +0 -0
- /package/{vue → editor}/chunks/python-repl.js +0 -0
- /package/{vue → editor}/chunks/python.js +0 -0
- /package/{vue → editor}/chunks/q.js +0 -0
- /package/{vue → editor}/chunks/qml.js +0 -0
- /package/{vue → editor}/chunks/r.js +0 -0
- /package/{vue → editor}/chunks/reasonml.js +0 -0
- /package/{vue → editor}/chunks/rib.js +0 -0
- /package/{vue → editor}/chunks/roboconf.js +0 -0
- /package/{vue → editor}/chunks/routeros.js +0 -0
- /package/{vue → editor}/chunks/rsl.js +0 -0
- /package/{vue → editor}/chunks/ruby.js +0 -0
- /package/{vue → editor}/chunks/ruleslanguage.js +0 -0
- /package/{vue → editor}/chunks/rust.js +0 -0
- /package/{vue → editor}/chunks/sas.js +0 -0
- /package/{vue → editor}/chunks/scala.js +0 -0
- /package/{vue → editor}/chunks/scheme.js +0 -0
- /package/{vue → editor}/chunks/scilab.js +0 -0
- /package/{vue → editor}/chunks/scss.js +0 -0
- /package/{vue → editor}/chunks/shell.js +0 -0
- /package/{vue → editor}/chunks/smali.js +0 -0
- /package/{vue → editor}/chunks/smalltalk.js +0 -0
- /package/{vue → editor}/chunks/sml.js +0 -0
- /package/{vue → editor}/chunks/sqf.js +0 -0
- /package/{vue → editor}/chunks/sql.js +0 -0
- /package/{vue → editor}/chunks/stan.js +0 -0
- /package/{vue → editor}/chunks/stata.js +0 -0
- /package/{vue → editor}/chunks/step21.js +0 -0
- /package/{vue → editor}/chunks/stylus.js +0 -0
- /package/{vue → editor}/chunks/subunit.js +0 -0
- /package/{vue → editor}/chunks/swift.js +0 -0
- /package/{vue → editor}/chunks/taggerscript.js +0 -0
- /package/{vue → editor}/chunks/tap.js +0 -0
- /package/{vue → editor}/chunks/tcl.js +0 -0
- /package/{vue → editor}/chunks/thrift.js +0 -0
- /package/{vue → editor}/chunks/tp.js +0 -0
- /package/{vue → editor}/chunks/twig.js +0 -0
- /package/{vue → editor}/chunks/typescript.js +0 -0
- /package/{vue → editor}/chunks/vala.js +0 -0
- /package/{vue → editor}/chunks/vbnet.js +0 -0
- /package/{vue → editor}/chunks/vbscript-html.js +0 -0
- /package/{vue → editor}/chunks/vbscript.js +0 -0
- /package/{vue → editor}/chunks/verilog.js +0 -0
- /package/{vue → editor}/chunks/vhdl.js +0 -0
- /package/{vue → editor}/chunks/vim.js +0 -0
- /package/{vue → editor}/chunks/wasm.js +0 -0
- /package/{vue → editor}/chunks/wren.js +0 -0
- /package/{vue → editor}/chunks/x86asm.js +0 -0
- /package/{vue → editor}/chunks/xl.js +0 -0
- /package/{vue → editor}/chunks/xml.js +0 -0
- /package/{vue → editor}/chunks/xquery.js +0 -0
- /package/{vue → editor}/chunks/yaml.js +0 -0
- /package/{vue → editor}/chunks/zephir.js +0 -0
- /package/{vue/editor/compact/extensions.d.ts → editor/compact-extensions.d.ts} +0 -0
package/vue/UiButton.vue
DELETED
|
@@ -1,1609 +0,0 @@
|
|
|
1
|
-
<!-- Generated by HTML Next 1.0.0-alpha.69 for Vue 3.5. Do not edit. -->
|
|
2
|
-
<script setup lang="ts">
|
|
3
|
-
import { computed, getCurrentInstance, useTemplateRef, watchSyncEffect } from 'vue'
|
|
4
|
-
import type { PropType } from 'vue'
|
|
5
|
-
import {
|
|
6
|
-
attribute,
|
|
7
|
-
checkHydratedRoot,
|
|
8
|
-
concat,
|
|
9
|
-
createDispatch,
|
|
10
|
-
cycleCheckedComputed,
|
|
11
|
-
nativeAttrs,
|
|
12
|
-
preserveRootFocus,
|
|
13
|
-
useComponentHost,
|
|
14
|
-
useReflectedProp,
|
|
15
|
-
} from './host'
|
|
16
|
-
import {
|
|
17
|
-
BINDING_INPUTS_PROP,
|
|
18
|
-
checkedProp,
|
|
19
|
-
checkPropInput,
|
|
20
|
-
type InputBindings,
|
|
21
|
-
inputComputed,
|
|
22
|
-
inputDefault,
|
|
23
|
-
inputRead,
|
|
24
|
-
propValidityState,
|
|
25
|
-
READY_INPUT,
|
|
26
|
-
requireInputStatus,
|
|
27
|
-
UNRESOLVED_INPUT,
|
|
28
|
-
vPropValidity,
|
|
29
|
-
vuePropInputs,
|
|
30
|
-
} from './props'
|
|
31
|
-
import UiIcon from './UiIcon.vue'
|
|
32
|
-
import UiSpinner from './UiSpinner.vue'
|
|
33
|
-
|
|
34
|
-
defineOptions({ inheritAttrs: false })
|
|
35
|
-
|
|
36
|
-
const propValidityContract = {
|
|
37
|
-
props: {
|
|
38
|
-
align: {
|
|
39
|
-
type: { kind: 'terminal', name: 'keyword' },
|
|
40
|
-
required: false,
|
|
41
|
-
target: { attribute: 'align' },
|
|
42
|
-
description:
|
|
43
|
-
'Content alignment. start lays the content out like a list option: from the start edge, with start-aligned text.',
|
|
44
|
-
values: ['center', 'start'],
|
|
45
|
-
default: 'center',
|
|
46
|
-
},
|
|
47
|
-
disabled: {
|
|
48
|
-
type: { kind: 'terminal', name: 'boolean' },
|
|
49
|
-
required: false,
|
|
50
|
-
target: { attribute: 'disabled' },
|
|
51
|
-
description:
|
|
52
|
-
'Makes the button unavailable: it cannot be pressed, uses a flat neutral palette, and loses its raised look. A disabled link (with href) drops its href and\n states aria-disabled="true" instead, because a link has no native disabled state.',
|
|
53
|
-
default: false,
|
|
54
|
-
},
|
|
55
|
-
href: {
|
|
56
|
-
type: { kind: 'terminal', name: 'string' },
|
|
57
|
-
required: false,
|
|
58
|
-
target: { attribute: 'href' },
|
|
59
|
-
description:
|
|
60
|
-
'The link\'s destination. Supplying href automatically renders a native link instead of a button, including an empty href for the current document. A\n disabled link drops its href and states aria-disabled="true", so it cannot be followed.',
|
|
61
|
-
},
|
|
62
|
-
loading: {
|
|
63
|
-
type: { kind: 'terminal', name: 'boolean' },
|
|
64
|
-
required: false,
|
|
65
|
-
target: { attribute: 'loading' },
|
|
66
|
-
description:
|
|
67
|
-
'Keeps the action focusable and its label visible while work is in progress. It shows a decorative spinner, states aria-disabled and aria-busy, and prevents\n activation or form submission until cleared.',
|
|
68
|
-
default: false,
|
|
69
|
-
},
|
|
70
|
-
pending: {
|
|
71
|
-
type: { kind: 'terminal', name: 'boolean' },
|
|
72
|
-
required: false,
|
|
73
|
-
target: { attribute: 'pending' },
|
|
74
|
-
description: 'Deprecated alias for loading.',
|
|
75
|
-
default: false,
|
|
76
|
-
},
|
|
77
|
-
preset: {
|
|
78
|
-
type: { kind: 'terminal', name: 'keyword' },
|
|
79
|
-
required: false,
|
|
80
|
-
target: { attribute: 'preset' },
|
|
81
|
-
description:
|
|
82
|
-
'A shortcut that sets appearance and tone together: primary is solid accent, standard is solid neutral, quiet is ghost neutral, and destructive is solid\n danger. A named preset takes precedence over variant and tone. Leave it at none to choose variant and tone independently.',
|
|
83
|
-
values: ['none', 'primary', 'standard', 'quiet', 'destructive'],
|
|
84
|
-
default: 'none',
|
|
85
|
-
},
|
|
86
|
-
rel: {
|
|
87
|
-
type: { kind: 'terminal', name: 'string' },
|
|
88
|
-
required: false,
|
|
89
|
-
target: { attribute: 'rel' },
|
|
90
|
-
description:
|
|
91
|
-
'The link\'s relationship to its destination, as on a native link. Only meaningful with href.',
|
|
92
|
-
},
|
|
93
|
-
shape: {
|
|
94
|
-
type: { kind: 'terminal', name: 'keyword' },
|
|
95
|
-
required: false,
|
|
96
|
-
target: { attribute: 'shape' },
|
|
97
|
-
description:
|
|
98
|
-
'rounded uses the theme\'s action radius; pill rounds the ends fully, for a compact choice such as a status or a person.',
|
|
99
|
-
values: ['rounded', 'pill'],
|
|
100
|
-
default: 'rounded',
|
|
101
|
-
},
|
|
102
|
-
size: {
|
|
103
|
-
type: { kind: 'terminal', name: 'keyword' },
|
|
104
|
-
required: false,
|
|
105
|
-
target: { attribute: 'size' },
|
|
106
|
-
description:
|
|
107
|
-
'Height, padding, and type size. xs is 1.5rem with the smallest text, for a control inside a line of small text; sm is the small control height (2rem by\n default) with tighter padding and smaller text, md is the standard control height (2.5rem), and lg is taller (3rem) with roomier padding. Visible sizes\n stay the same on touch. Inline xs and link actions can gain an adjustable invisible hit area.',
|
|
108
|
-
values: ['xs', 'sm', 'md', 'lg'],
|
|
109
|
-
default: 'md',
|
|
110
|
-
},
|
|
111
|
-
square: {
|
|
112
|
-
type: { kind: 'terminal', name: 'boolean' },
|
|
113
|
-
required: false,
|
|
114
|
-
target: { attribute: 'square' },
|
|
115
|
-
description:
|
|
116
|
-
'Gives short labels and icons the same square minimum footprint at each size. Longer labels grow naturally. Applies to boxed actions; link and card variants\n keep their normal layout.',
|
|
117
|
-
default: false,
|
|
118
|
-
},
|
|
119
|
-
stretch: {
|
|
120
|
-
type: { kind: 'terminal', name: 'boolean' },
|
|
121
|
-
required: false,
|
|
122
|
-
target: { attribute: 'stretch' },
|
|
123
|
-
description: 'Fills the inline size of its container.',
|
|
124
|
-
default: false,
|
|
125
|
-
},
|
|
126
|
-
target: {
|
|
127
|
-
type: { kind: 'terminal', name: 'string' },
|
|
128
|
-
required: false,
|
|
129
|
-
target: { attribute: 'target' },
|
|
130
|
-
description: 'Where a link opens, as on a native link. Only meaningful with href.',
|
|
131
|
-
},
|
|
132
|
-
tone: {
|
|
133
|
-
type: { kind: 'terminal', name: 'keyword' },
|
|
134
|
-
required: false,
|
|
135
|
-
target: { attribute: 'tone' },
|
|
136
|
-
description:
|
|
137
|
-
'Which colour the button speaks in. It applies to every variant, so an outline, a ghost, and a solid in the same tone are the same action at three volumes:\n tone="danger" variant="outline" is a destructive secondary action. neutral is the quiet one, for a button that should not claim a colour. The field\n variant always uses neutral field colors. Supporting brand families use accent-secondary and accent-tertiary; their usable colors derive from the theme,\n and unset families follow the primary accent.',
|
|
138
|
-
values: [
|
|
139
|
-
'accent',
|
|
140
|
-
'accent-secondary',
|
|
141
|
-
'accent-tertiary',
|
|
142
|
-
'neutral',
|
|
143
|
-
'danger',
|
|
144
|
-
'success',
|
|
145
|
-
'warning',
|
|
146
|
-
'info',
|
|
147
|
-
],
|
|
148
|
-
default: 'neutral',
|
|
149
|
-
},
|
|
150
|
-
type: {
|
|
151
|
-
type: { kind: 'terminal', name: 'keyword' },
|
|
152
|
-
required: false,
|
|
153
|
-
target: { attribute: 'type' },
|
|
154
|
-
description:
|
|
155
|
-
'The button\'s type, as on a native button. button by default, so it never submits a form by accident. A link has no type.',
|
|
156
|
-
values: ['button', 'submit', 'reset'],
|
|
157
|
-
default: 'button',
|
|
158
|
-
},
|
|
159
|
-
variant: {
|
|
160
|
-
type: { kind: 'terminal', name: 'keyword' },
|
|
161
|
-
required: false,
|
|
162
|
-
target: { attribute: 'variant' },
|
|
163
|
-
description:
|
|
164
|
-
'Emphasis: how loudly the button asks. solid fills with its tone, outline draws its tone at the edge over a wash of it, ghost carries only text until it is\n hovered, and link is an inline text action that reads as a link. danger is solid in the danger tone, kept for the call sites that name it. card uses the\n same tone on a full-width action with an icon slot, wrapping content, and a centered action slot. field opens a custom value picker: it shares Select\'s\n quiet outline, neutral text and slightly raised surface, independently of action tone.',
|
|
165
|
-
values: ['outline', 'solid', 'danger', 'ghost', 'link', 'card', 'field'],
|
|
166
|
-
default: 'outline',
|
|
167
|
-
},
|
|
168
|
-
},
|
|
169
|
-
} as const
|
|
170
|
-
const props = defineProps({
|
|
171
|
-
align: { type: null as unknown as PropType<'center' | 'start' | null> },
|
|
172
|
-
disabled: { type: null as unknown as PropType<boolean | null> },
|
|
173
|
-
href: { type: null as unknown as PropType<string | null> },
|
|
174
|
-
loading: { type: null as unknown as PropType<boolean | null> },
|
|
175
|
-
pending: { type: null as unknown as PropType<boolean | null> },
|
|
176
|
-
preset: {
|
|
177
|
-
type: null as unknown as PropType<
|
|
178
|
-
'none' | 'primary' | 'standard' | 'quiet' | 'destructive' | null
|
|
179
|
-
>,
|
|
180
|
-
},
|
|
181
|
-
rel: { type: null as unknown as PropType<string | null> },
|
|
182
|
-
shape: { type: null as unknown as PropType<'rounded' | 'pill' | null> },
|
|
183
|
-
size: { type: null as unknown as PropType<'xs' | 'sm' | 'md' | 'lg' | null> },
|
|
184
|
-
square: { type: null as unknown as PropType<boolean | null> },
|
|
185
|
-
stretch: { type: null as unknown as PropType<boolean | null> },
|
|
186
|
-
target: { type: null as unknown as PropType<string | null> },
|
|
187
|
-
tone: {
|
|
188
|
-
type: null as unknown as PropType<
|
|
189
|
-
| 'accent'
|
|
190
|
-
| 'accent-secondary'
|
|
191
|
-
| 'accent-tertiary'
|
|
192
|
-
| 'neutral'
|
|
193
|
-
| 'danger'
|
|
194
|
-
| 'success'
|
|
195
|
-
| 'warning'
|
|
196
|
-
| 'info'
|
|
197
|
-
| null
|
|
198
|
-
>,
|
|
199
|
-
},
|
|
200
|
-
type: { type: null as unknown as PropType<'button' | 'submit' | 'reset' | null> },
|
|
201
|
-
variant: {
|
|
202
|
-
type: null as unknown as PropType<
|
|
203
|
-
'outline' | 'solid' | 'danger' | 'ghost' | 'link' | 'card' | 'field' | null
|
|
204
|
-
>,
|
|
205
|
-
},
|
|
206
|
-
[BINDING_INPUTS_PROP]: { type: null as unknown as PropType<InputBindings> },
|
|
207
|
-
})
|
|
208
|
-
const acceptedProps: Record<string, unknown> = {
|
|
209
|
-
align: 'center',
|
|
210
|
-
disabled: false,
|
|
211
|
-
href: null,
|
|
212
|
-
loading: false,
|
|
213
|
-
pending: false,
|
|
214
|
-
preset: 'none',
|
|
215
|
-
rel: null,
|
|
216
|
-
shape: 'rounded',
|
|
217
|
-
size: 'md',
|
|
218
|
-
square: false,
|
|
219
|
-
stretch: false,
|
|
220
|
-
target: null,
|
|
221
|
-
tone: 'neutral',
|
|
222
|
-
type: 'button',
|
|
223
|
-
variant: 'outline',
|
|
224
|
-
}
|
|
225
|
-
const inputTracking = vuePropInputs(acceptedProps, {
|
|
226
|
-
align: 'center',
|
|
227
|
-
disabled: false,
|
|
228
|
-
loading: false,
|
|
229
|
-
pending: false,
|
|
230
|
-
preset: 'none',
|
|
231
|
-
shape: 'rounded',
|
|
232
|
-
size: 'md',
|
|
233
|
-
square: false,
|
|
234
|
-
stretch: false,
|
|
235
|
-
tone: 'neutral',
|
|
236
|
-
type: 'button',
|
|
237
|
-
variant: 'outline',
|
|
238
|
-
}, (name, value, source, values) => {
|
|
239
|
-
switch (name) {
|
|
240
|
-
case 'align':
|
|
241
|
-
return checkPropInput(value, { kind: 'terminal', name: 'keyword' }, true, true)
|
|
242
|
-
case 'disabled':
|
|
243
|
-
return checkPropInput(value, { kind: 'terminal', name: 'boolean' }, true, true)
|
|
244
|
-
case 'href':
|
|
245
|
-
return checkPropInput(value, { kind: 'terminal', name: 'string' }, true, true)
|
|
246
|
-
case 'loading':
|
|
247
|
-
return checkPropInput(value, { kind: 'terminal', name: 'boolean' }, true, true)
|
|
248
|
-
case 'pending':
|
|
249
|
-
return checkPropInput(value, { kind: 'terminal', name: 'boolean' }, true, true)
|
|
250
|
-
case 'preset':
|
|
251
|
-
return checkPropInput(value, { kind: 'terminal', name: 'keyword' }, true, true)
|
|
252
|
-
case 'rel':
|
|
253
|
-
return checkPropInput(value, { kind: 'terminal', name: 'string' }, true, true)
|
|
254
|
-
case 'shape':
|
|
255
|
-
return checkPropInput(value, { kind: 'terminal', name: 'keyword' }, true, true)
|
|
256
|
-
case 'size':
|
|
257
|
-
return checkPropInput(value, { kind: 'terminal', name: 'keyword' }, true, true)
|
|
258
|
-
case 'square':
|
|
259
|
-
return checkPropInput(value, { kind: 'terminal', name: 'boolean' }, true, true)
|
|
260
|
-
case 'stretch':
|
|
261
|
-
return checkPropInput(value, { kind: 'terminal', name: 'boolean' }, true, true)
|
|
262
|
-
case 'target':
|
|
263
|
-
return checkPropInput(value, { kind: 'terminal', name: 'string' }, true, true)
|
|
264
|
-
case 'tone':
|
|
265
|
-
return checkPropInput(value, { kind: 'terminal', name: 'keyword' }, true, true)
|
|
266
|
-
case 'type':
|
|
267
|
-
return checkPropInput(value, { kind: 'terminal', name: 'keyword' }, true, true)
|
|
268
|
-
case 'variant':
|
|
269
|
-
return checkPropInput(value, { kind: 'terminal', name: 'keyword' }, true, true)
|
|
270
|
-
default:
|
|
271
|
-
return { ok: false }
|
|
272
|
-
}
|
|
273
|
-
}, () => {
|
|
274
|
-
void checkedProps.value
|
|
275
|
-
})
|
|
276
|
-
const propInputs = inputTracking.inputs
|
|
277
|
-
const checkedProps = computed(() => {
|
|
278
|
-
void inputTracking.version.value
|
|
279
|
-
return ({
|
|
280
|
-
align: propInputs.value<'center' | 'start' | null>(
|
|
281
|
-
'align',
|
|
282
|
-
props['align'],
|
|
283
|
-
props[BINDING_INPUTS_PROP],
|
|
284
|
-
) as 'center' | 'start',
|
|
285
|
-
disabled: propInputs.value<boolean | null>(
|
|
286
|
-
'disabled',
|
|
287
|
-
props['disabled'],
|
|
288
|
-
props[BINDING_INPUTS_PROP],
|
|
289
|
-
) as boolean,
|
|
290
|
-
href: propInputs.value<string | null>('href', props['href'], props[BINDING_INPUTS_PROP]),
|
|
291
|
-
loading: propInputs.value<boolean | null>(
|
|
292
|
-
'loading',
|
|
293
|
-
props['loading'],
|
|
294
|
-
props[BINDING_INPUTS_PROP],
|
|
295
|
-
) as boolean,
|
|
296
|
-
pending: propInputs.value<boolean | null>(
|
|
297
|
-
'pending',
|
|
298
|
-
props['pending'],
|
|
299
|
-
props[BINDING_INPUTS_PROP],
|
|
300
|
-
) as boolean,
|
|
301
|
-
preset: propInputs.value<'none' | 'primary' | 'standard' | 'quiet' | 'destructive' | null>(
|
|
302
|
-
'preset',
|
|
303
|
-
props['preset'],
|
|
304
|
-
props[BINDING_INPUTS_PROP],
|
|
305
|
-
) as 'none' | 'primary' | 'standard' | 'quiet' | 'destructive',
|
|
306
|
-
rel: propInputs.value<string | null>('rel', props['rel'], props[BINDING_INPUTS_PROP]),
|
|
307
|
-
shape: propInputs.value<'rounded' | 'pill' | null>(
|
|
308
|
-
'shape',
|
|
309
|
-
props['shape'],
|
|
310
|
-
props[BINDING_INPUTS_PROP],
|
|
311
|
-
) as 'rounded' | 'pill',
|
|
312
|
-
size: propInputs.value<'xs' | 'sm' | 'md' | 'lg' | null>(
|
|
313
|
-
'size',
|
|
314
|
-
props['size'],
|
|
315
|
-
props[BINDING_INPUTS_PROP],
|
|
316
|
-
) as 'xs' | 'sm' | 'md' | 'lg',
|
|
317
|
-
square: propInputs.value<boolean | null>(
|
|
318
|
-
'square',
|
|
319
|
-
props['square'],
|
|
320
|
-
props[BINDING_INPUTS_PROP],
|
|
321
|
-
) as boolean,
|
|
322
|
-
stretch: propInputs.value<boolean | null>(
|
|
323
|
-
'stretch',
|
|
324
|
-
props['stretch'],
|
|
325
|
-
props[BINDING_INPUTS_PROP],
|
|
326
|
-
) as boolean,
|
|
327
|
-
target: propInputs.value<string | null>('target', props['target'], props[BINDING_INPUTS_PROP]),
|
|
328
|
-
tone: propInputs.value<
|
|
329
|
-
| 'accent'
|
|
330
|
-
| 'accent-secondary'
|
|
331
|
-
| 'accent-tertiary'
|
|
332
|
-
| 'neutral'
|
|
333
|
-
| 'danger'
|
|
334
|
-
| 'success'
|
|
335
|
-
| 'warning'
|
|
336
|
-
| 'info'
|
|
337
|
-
| null
|
|
338
|
-
>('tone', props['tone'], props[BINDING_INPUTS_PROP]) as
|
|
339
|
-
| 'accent'
|
|
340
|
-
| 'accent-secondary'
|
|
341
|
-
| 'accent-tertiary'
|
|
342
|
-
| 'neutral'
|
|
343
|
-
| 'danger'
|
|
344
|
-
| 'success'
|
|
345
|
-
| 'warning'
|
|
346
|
-
| 'info',
|
|
347
|
-
type: propInputs.value<'button' | 'submit' | 'reset' | null>(
|
|
348
|
-
'type',
|
|
349
|
-
props['type'],
|
|
350
|
-
props[BINDING_INPUTS_PROP],
|
|
351
|
-
) as 'button' | 'submit' | 'reset',
|
|
352
|
-
variant: propInputs.value<
|
|
353
|
-
'outline' | 'solid' | 'danger' | 'ghost' | 'link' | 'card' | 'field' | null
|
|
354
|
-
>('variant', props['variant'], props[BINDING_INPUTS_PROP]) as
|
|
355
|
-
| 'outline'
|
|
356
|
-
| 'solid'
|
|
357
|
-
| 'danger'
|
|
358
|
-
| 'ghost'
|
|
359
|
-
| 'link'
|
|
360
|
-
| 'card'
|
|
361
|
-
| 'field',
|
|
362
|
-
})
|
|
363
|
-
})
|
|
364
|
-
const inputStatus = (name: string, handlesError: boolean) => {
|
|
365
|
-
void checkedProps.value
|
|
366
|
-
void inputTracking.version.value
|
|
367
|
-
return requireInputStatus(propInputs.status(name), handlesError)
|
|
368
|
-
}
|
|
369
|
-
void checkedProps.value
|
|
370
|
-
watchSyncEffect(() => {
|
|
371
|
-
void checkedProps.value
|
|
372
|
-
})
|
|
373
|
-
const reflectedProp = useReflectedProp()
|
|
374
|
-
const hydrationInstance = getCurrentInstance()
|
|
375
|
-
|
|
376
|
-
const rootArmElement = useTemplateRef<HTMLElement>('@html-next/root')
|
|
377
|
-
const root = rootArmElement
|
|
378
|
-
preserveRootFocus(root)
|
|
379
|
-
const appearance: ReturnType<typeof inputComputed<any>> = inputComputed<any>(
|
|
380
|
-
() =>
|
|
381
|
-
(({
|
|
382
|
-
none: inputRead(checkedProps.value.variant, propInputs.status('variant')),
|
|
383
|
-
primary: 'solid',
|
|
384
|
-
standard: 'solid',
|
|
385
|
-
quiet: 'ghost',
|
|
386
|
-
destructive: 'solid',
|
|
387
|
-
}) as Record<string, any>)[
|
|
388
|
-
inputRead(checkedProps.value.preset, propInputs.status('preset'))
|
|
389
|
-
] as any,
|
|
390
|
-
(read) => {
|
|
391
|
-
const value = cycleCheckedComputed(read)
|
|
392
|
-
return { get: () => value.value }
|
|
393
|
-
},
|
|
394
|
-
)
|
|
395
|
-
let colorTonePrevious: any = null
|
|
396
|
-
const colorTone: ReturnType<typeof inputComputed<any>> = inputComputed<any>(
|
|
397
|
-
() => {
|
|
398
|
-
return ((objectValue: any, indexValue: any) =>
|
|
399
|
-
objectValue === Symbol.for('html-next.invalid-result')
|
|
400
|
-
|| indexValue === Symbol.for('html-next.invalid-result')
|
|
401
|
-
? Symbol.for('html-next.invalid-result')
|
|
402
|
-
: objectValue[indexValue])(
|
|
403
|
-
(() => {
|
|
404
|
-
const value = {
|
|
405
|
-
none: ((objectValue: any, indexValue: any) =>
|
|
406
|
-
objectValue === Symbol.for('html-next.invalid-result')
|
|
407
|
-
|| indexValue === Symbol.for('html-next.invalid-result')
|
|
408
|
-
? Symbol.for('html-next.invalid-result')
|
|
409
|
-
: objectValue[indexValue])(
|
|
410
|
-
{
|
|
411
|
-
true: 'danger',
|
|
412
|
-
false: inputRead(checkedProps.value.tone, propInputs.status('tone')),
|
|
413
|
-
},
|
|
414
|
-
concat(
|
|
415
|
-
inputRead(checkedProps.value.variant, propInputs.status('variant')) === 'danger',
|
|
416
|
-
),
|
|
417
|
-
),
|
|
418
|
-
primary: 'accent',
|
|
419
|
-
standard: 'neutral',
|
|
420
|
-
quiet: 'neutral',
|
|
421
|
-
destructive: 'danger',
|
|
422
|
-
}
|
|
423
|
-
return Object.values(value).some((entry: unknown) =>
|
|
424
|
-
entry === Symbol.for('html-next.invalid-result')
|
|
425
|
-
)
|
|
426
|
-
? Symbol.for('html-next.invalid-result')
|
|
427
|
-
: value
|
|
428
|
-
})(),
|
|
429
|
-
inputRead(checkedProps.value.preset, propInputs.status('preset')),
|
|
430
|
-
) as any
|
|
431
|
-
},
|
|
432
|
-
(read) => {
|
|
433
|
-
const value = cycleCheckedComputed(read)
|
|
434
|
-
return { get: () => value.value }
|
|
435
|
-
},
|
|
436
|
-
next =>
|
|
437
|
-
(next as unknown) === Symbol.for('html-next.invalid-result')
|
|
438
|
-
? colorTonePrevious
|
|
439
|
-
: (colorTonePrevious = next),
|
|
440
|
-
)
|
|
441
|
-
let guardedPrevious: any = null
|
|
442
|
-
const guarded = computed(() => {
|
|
443
|
-
const candidate: any = ((objectValue: any, indexValue: any) =>
|
|
444
|
-
objectValue === Symbol.for('html-next.invalid-result')
|
|
445
|
-
|| indexValue === Symbol.for('html-next.invalid-result')
|
|
446
|
-
? Symbol.for('html-next.invalid-result')
|
|
447
|
-
: objectValue[indexValue])(
|
|
448
|
-
{ true: null, false: checkedProps.value.href },
|
|
449
|
-
concat(
|
|
450
|
-
checkedProps.value.disabled || checkedProps.value.loading || checkedProps.value.pending,
|
|
451
|
-
),
|
|
452
|
-
)
|
|
453
|
-
if (candidate === Symbol.for('html-next.invalid-result')) {
|
|
454
|
-
return guardedPrevious
|
|
455
|
-
}
|
|
456
|
-
return guardedPrevious = attribute(((objectValue: any, indexValue: any) =>
|
|
457
|
-
objectValue === Symbol.for('html-next.invalid-result')
|
|
458
|
-
|| indexValue === Symbol.for('html-next.invalid-result')
|
|
459
|
-
? Symbol.for('html-next.invalid-result')
|
|
460
|
-
: objectValue[indexValue])(
|
|
461
|
-
{ true: null, false: checkedProps.value.href },
|
|
462
|
-
concat(
|
|
463
|
-
checkedProps.value.disabled || checkedProps.value.loading || checkedProps.value.pending,
|
|
464
|
-
),
|
|
465
|
-
))
|
|
466
|
-
})
|
|
467
|
-
let guardedBindingPrevious: any = null
|
|
468
|
-
const guardedBinding = computed(() => {
|
|
469
|
-
const candidate: any = ((objectValue: any, indexValue: any) =>
|
|
470
|
-
objectValue === Symbol.for('html-next.invalid-result')
|
|
471
|
-
|| indexValue === Symbol.for('html-next.invalid-result')
|
|
472
|
-
? Symbol.for('html-next.invalid-result')
|
|
473
|
-
: objectValue[indexValue])(
|
|
474
|
-
{ true: 'true', false: null },
|
|
475
|
-
concat(
|
|
476
|
-
checkedProps.value.disabled || checkedProps.value.loading || checkedProps.value.pending,
|
|
477
|
-
),
|
|
478
|
-
)
|
|
479
|
-
if (candidate === Symbol.for('html-next.invalid-result')) {
|
|
480
|
-
return guardedBindingPrevious
|
|
481
|
-
}
|
|
482
|
-
return guardedBindingPrevious = typeof (((objectValue: any, indexValue: any) =>
|
|
483
|
-
objectValue === Symbol.for('html-next.invalid-result')
|
|
484
|
-
|| indexValue === Symbol.for('html-next.invalid-result')
|
|
485
|
-
? Symbol.for('html-next.invalid-result')
|
|
486
|
-
: objectValue[indexValue])(
|
|
487
|
-
{ true: 'true', false: null },
|
|
488
|
-
concat(
|
|
489
|
-
checkedProps.value.disabled || checkedProps.value.loading || checkedProps.value.pending,
|
|
490
|
-
),
|
|
491
|
-
)) === 'boolean'
|
|
492
|
-
? String(((objectValue: any, indexValue: any) =>
|
|
493
|
-
objectValue === Symbol.for('html-next.invalid-result')
|
|
494
|
-
|| indexValue === Symbol.for('html-next.invalid-result')
|
|
495
|
-
? Symbol.for('html-next.invalid-result')
|
|
496
|
-
: objectValue[indexValue])(
|
|
497
|
-
{ true: 'true', false: null },
|
|
498
|
-
concat(
|
|
499
|
-
checkedProps.value.disabled || checkedProps.value.loading || checkedProps.value.pending,
|
|
500
|
-
),
|
|
501
|
-
))
|
|
502
|
-
: attribute(((objectValue: any, indexValue: any) =>
|
|
503
|
-
objectValue === Symbol.for('html-next.invalid-result')
|
|
504
|
-
|| indexValue === Symbol.for('html-next.invalid-result')
|
|
505
|
-
? Symbol.for('html-next.invalid-result')
|
|
506
|
-
: objectValue[indexValue])(
|
|
507
|
-
{ true: 'true', false: null },
|
|
508
|
-
concat(
|
|
509
|
-
checkedProps.value.disabled || checkedProps.value.loading || checkedProps.value.pending,
|
|
510
|
-
),
|
|
511
|
-
))
|
|
512
|
-
})
|
|
513
|
-
let guardedBinding2Previous: any = null
|
|
514
|
-
const guardedBinding2 = computed(() => {
|
|
515
|
-
const candidate: any = ((objectValue: any, indexValue: any) =>
|
|
516
|
-
objectValue === Symbol.for('html-next.invalid-result')
|
|
517
|
-
|| indexValue === Symbol.for('html-next.invalid-result')
|
|
518
|
-
? Symbol.for('html-next.invalid-result')
|
|
519
|
-
: objectValue[indexValue])(
|
|
520
|
-
{ true: '0', false: null },
|
|
521
|
-
concat(
|
|
522
|
-
(checkedProps.value.loading || checkedProps.value.pending) && !checkedProps.value.disabled,
|
|
523
|
-
),
|
|
524
|
-
)
|
|
525
|
-
if (candidate === Symbol.for('html-next.invalid-result')) {
|
|
526
|
-
return guardedBinding2Previous
|
|
527
|
-
}
|
|
528
|
-
return guardedBinding2Previous = attribute(
|
|
529
|
-
((objectValue: any, indexValue: any) =>
|
|
530
|
-
objectValue === Symbol.for('html-next.invalid-result')
|
|
531
|
-
|| indexValue === Symbol.for('html-next.invalid-result')
|
|
532
|
-
? Symbol.for('html-next.invalid-result')
|
|
533
|
-
: objectValue[indexValue])(
|
|
534
|
-
{ true: '0', false: null },
|
|
535
|
-
concat(
|
|
536
|
-
(checkedProps.value.loading || checkedProps.value.pending)
|
|
537
|
-
&& !checkedProps.value.disabled,
|
|
538
|
-
),
|
|
539
|
-
),
|
|
540
|
-
)
|
|
541
|
-
})
|
|
542
|
-
let guardedBinding3Previous: any = null
|
|
543
|
-
const guardedBinding3 = computed(() => {
|
|
544
|
-
const candidate: any = ((objectValue: any, indexValue: any) =>
|
|
545
|
-
objectValue === Symbol.for('html-next.invalid-result')
|
|
546
|
-
|| indexValue === Symbol.for('html-next.invalid-result')
|
|
547
|
-
? Symbol.for('html-next.invalid-result')
|
|
548
|
-
: objectValue[indexValue])(
|
|
549
|
-
{ true: 'true', false: null },
|
|
550
|
-
concat(checkedProps.value.loading || checkedProps.value.pending),
|
|
551
|
-
)
|
|
552
|
-
if (candidate === Symbol.for('html-next.invalid-result')) {
|
|
553
|
-
return guardedBinding3Previous
|
|
554
|
-
}
|
|
555
|
-
return guardedBinding3Previous = typeof (((objectValue: any, indexValue: any) =>
|
|
556
|
-
objectValue === Symbol.for('html-next.invalid-result')
|
|
557
|
-
|| indexValue === Symbol.for('html-next.invalid-result')
|
|
558
|
-
? Symbol.for('html-next.invalid-result')
|
|
559
|
-
: objectValue[indexValue])(
|
|
560
|
-
{ true: 'true', false: null },
|
|
561
|
-
concat(checkedProps.value.loading || checkedProps.value.pending),
|
|
562
|
-
)) === 'boolean'
|
|
563
|
-
? String(((objectValue: any, indexValue: any) =>
|
|
564
|
-
objectValue === Symbol.for('html-next.invalid-result')
|
|
565
|
-
|| indexValue === Symbol.for('html-next.invalid-result')
|
|
566
|
-
? Symbol.for('html-next.invalid-result')
|
|
567
|
-
: objectValue[indexValue])(
|
|
568
|
-
{ true: 'true', false: null },
|
|
569
|
-
concat(checkedProps.value.loading || checkedProps.value.pending),
|
|
570
|
-
))
|
|
571
|
-
: attribute(((objectValue: any, indexValue: any) =>
|
|
572
|
-
objectValue === Symbol.for('html-next.invalid-result')
|
|
573
|
-
|| indexValue === Symbol.for('html-next.invalid-result')
|
|
574
|
-
? Symbol.for('html-next.invalid-result')
|
|
575
|
-
: objectValue[indexValue])(
|
|
576
|
-
{ true: 'true', false: null },
|
|
577
|
-
concat(checkedProps.value.loading || checkedProps.value.pending),
|
|
578
|
-
))
|
|
579
|
-
})
|
|
580
|
-
let guardedBinding4Previous: any = null
|
|
581
|
-
const guardedBinding4 = computed(() => {
|
|
582
|
-
const candidate: any = ((objectValue: any, indexValue: any) =>
|
|
583
|
-
objectValue === Symbol.for('html-next.invalid-result')
|
|
584
|
-
|| indexValue === Symbol.for('html-next.invalid-result')
|
|
585
|
-
? Symbol.for('html-next.invalid-result')
|
|
586
|
-
: objectValue[indexValue])(
|
|
587
|
-
{ true: null, false: checkedProps.value.href },
|
|
588
|
-
concat(
|
|
589
|
-
checkedProps.value.disabled || checkedProps.value.loading || checkedProps.value.pending,
|
|
590
|
-
),
|
|
591
|
-
)
|
|
592
|
-
if (candidate === Symbol.for('html-next.invalid-result')) {
|
|
593
|
-
return guardedBinding4Previous
|
|
594
|
-
}
|
|
595
|
-
return guardedBinding4Previous = attribute(((objectValue: any, indexValue: any) =>
|
|
596
|
-
objectValue === Symbol.for('html-next.invalid-result')
|
|
597
|
-
|| indexValue === Symbol.for('html-next.invalid-result')
|
|
598
|
-
? Symbol.for('html-next.invalid-result')
|
|
599
|
-
: objectValue[indexValue])(
|
|
600
|
-
{ true: null, false: checkedProps.value.href },
|
|
601
|
-
concat(
|
|
602
|
-
checkedProps.value.disabled || checkedProps.value.loading || checkedProps.value.pending,
|
|
603
|
-
),
|
|
604
|
-
))
|
|
605
|
-
})
|
|
606
|
-
let guardedBinding5Previous: any = null
|
|
607
|
-
const guardedBinding5 = computed(() => {
|
|
608
|
-
const candidate: any = ((objectValue: any, indexValue: any) =>
|
|
609
|
-
objectValue === Symbol.for('html-next.invalid-result')
|
|
610
|
-
|| indexValue === Symbol.for('html-next.invalid-result')
|
|
611
|
-
? Symbol.for('html-next.invalid-result')
|
|
612
|
-
: objectValue[indexValue])(
|
|
613
|
-
{ true: 'true', false: null },
|
|
614
|
-
concat(
|
|
615
|
-
checkedProps.value.disabled || checkedProps.value.loading || checkedProps.value.pending,
|
|
616
|
-
),
|
|
617
|
-
)
|
|
618
|
-
if (candidate === Symbol.for('html-next.invalid-result')) {
|
|
619
|
-
return guardedBinding5Previous
|
|
620
|
-
}
|
|
621
|
-
return guardedBinding5Previous = typeof (((objectValue: any, indexValue: any) =>
|
|
622
|
-
objectValue === Symbol.for('html-next.invalid-result')
|
|
623
|
-
|| indexValue === Symbol.for('html-next.invalid-result')
|
|
624
|
-
? Symbol.for('html-next.invalid-result')
|
|
625
|
-
: objectValue[indexValue])(
|
|
626
|
-
{ true: 'true', false: null },
|
|
627
|
-
concat(
|
|
628
|
-
checkedProps.value.disabled || checkedProps.value.loading || checkedProps.value.pending,
|
|
629
|
-
),
|
|
630
|
-
)) === 'boolean'
|
|
631
|
-
? String(((objectValue: any, indexValue: any) =>
|
|
632
|
-
objectValue === Symbol.for('html-next.invalid-result')
|
|
633
|
-
|| indexValue === Symbol.for('html-next.invalid-result')
|
|
634
|
-
? Symbol.for('html-next.invalid-result')
|
|
635
|
-
: objectValue[indexValue])(
|
|
636
|
-
{ true: 'true', false: null },
|
|
637
|
-
concat(
|
|
638
|
-
checkedProps.value.disabled || checkedProps.value.loading || checkedProps.value.pending,
|
|
639
|
-
),
|
|
640
|
-
))
|
|
641
|
-
: attribute(((objectValue: any, indexValue: any) =>
|
|
642
|
-
objectValue === Symbol.for('html-next.invalid-result')
|
|
643
|
-
|| indexValue === Symbol.for('html-next.invalid-result')
|
|
644
|
-
? Symbol.for('html-next.invalid-result')
|
|
645
|
-
: objectValue[indexValue])(
|
|
646
|
-
{ true: 'true', false: null },
|
|
647
|
-
concat(
|
|
648
|
-
checkedProps.value.disabled || checkedProps.value.loading || checkedProps.value.pending,
|
|
649
|
-
),
|
|
650
|
-
))
|
|
651
|
-
})
|
|
652
|
-
let guardedBinding6Previous: any = null
|
|
653
|
-
const guardedBinding6 = computed(() => {
|
|
654
|
-
const candidate: any = ((objectValue: any, indexValue: any) =>
|
|
655
|
-
objectValue === Symbol.for('html-next.invalid-result')
|
|
656
|
-
|| indexValue === Symbol.for('html-next.invalid-result')
|
|
657
|
-
? Symbol.for('html-next.invalid-result')
|
|
658
|
-
: objectValue[indexValue])(
|
|
659
|
-
{ true: '0', false: null },
|
|
660
|
-
concat(
|
|
661
|
-
(checkedProps.value.loading || checkedProps.value.pending) && !checkedProps.value.disabled,
|
|
662
|
-
),
|
|
663
|
-
)
|
|
664
|
-
if (candidate === Symbol.for('html-next.invalid-result')) {
|
|
665
|
-
return guardedBinding6Previous
|
|
666
|
-
}
|
|
667
|
-
return guardedBinding6Previous = attribute(
|
|
668
|
-
((objectValue: any, indexValue: any) =>
|
|
669
|
-
objectValue === Symbol.for('html-next.invalid-result')
|
|
670
|
-
|| indexValue === Symbol.for('html-next.invalid-result')
|
|
671
|
-
? Symbol.for('html-next.invalid-result')
|
|
672
|
-
: objectValue[indexValue])(
|
|
673
|
-
{ true: '0', false: null },
|
|
674
|
-
concat(
|
|
675
|
-
(checkedProps.value.loading || checkedProps.value.pending)
|
|
676
|
-
&& !checkedProps.value.disabled,
|
|
677
|
-
),
|
|
678
|
-
),
|
|
679
|
-
)
|
|
680
|
-
})
|
|
681
|
-
let guardedBinding7Previous: any = null
|
|
682
|
-
const guardedBinding7 = computed(() => {
|
|
683
|
-
const candidate: any = ((objectValue: any, indexValue: any) =>
|
|
684
|
-
objectValue === Symbol.for('html-next.invalid-result')
|
|
685
|
-
|| indexValue === Symbol.for('html-next.invalid-result')
|
|
686
|
-
? Symbol.for('html-next.invalid-result')
|
|
687
|
-
: objectValue[indexValue])(
|
|
688
|
-
{ true: 'true', false: null },
|
|
689
|
-
concat(checkedProps.value.loading || checkedProps.value.pending),
|
|
690
|
-
)
|
|
691
|
-
if (candidate === Symbol.for('html-next.invalid-result')) {
|
|
692
|
-
return guardedBinding7Previous
|
|
693
|
-
}
|
|
694
|
-
return guardedBinding7Previous = typeof (((objectValue: any, indexValue: any) =>
|
|
695
|
-
objectValue === Symbol.for('html-next.invalid-result')
|
|
696
|
-
|| indexValue === Symbol.for('html-next.invalid-result')
|
|
697
|
-
? Symbol.for('html-next.invalid-result')
|
|
698
|
-
: objectValue[indexValue])(
|
|
699
|
-
{ true: 'true', false: null },
|
|
700
|
-
concat(checkedProps.value.loading || checkedProps.value.pending),
|
|
701
|
-
)) === 'boolean'
|
|
702
|
-
? String(((objectValue: any, indexValue: any) =>
|
|
703
|
-
objectValue === Symbol.for('html-next.invalid-result')
|
|
704
|
-
|| indexValue === Symbol.for('html-next.invalid-result')
|
|
705
|
-
? Symbol.for('html-next.invalid-result')
|
|
706
|
-
: objectValue[indexValue])(
|
|
707
|
-
{ true: 'true', false: null },
|
|
708
|
-
concat(checkedProps.value.loading || checkedProps.value.pending),
|
|
709
|
-
))
|
|
710
|
-
: attribute(((objectValue: any, indexValue: any) =>
|
|
711
|
-
objectValue === Symbol.for('html-next.invalid-result')
|
|
712
|
-
|| indexValue === Symbol.for('html-next.invalid-result')
|
|
713
|
-
? Symbol.for('html-next.invalid-result')
|
|
714
|
-
: objectValue[indexValue])(
|
|
715
|
-
{ true: 'true', false: null },
|
|
716
|
-
concat(checkedProps.value.loading || checkedProps.value.pending),
|
|
717
|
-
))
|
|
718
|
-
})
|
|
719
|
-
checkHydratedRoot(
|
|
720
|
-
(appearance.get() === 'card' && checkedProps.value.href !== null)
|
|
721
|
-
? 'a'
|
|
722
|
-
: ((appearance.get() === 'card')
|
|
723
|
-
? 'button'
|
|
724
|
-
: ((checkedProps.value.href !== null) ? 'a' : ('button'))),
|
|
725
|
-
'ui-button',
|
|
726
|
-
)
|
|
727
|
-
|
|
728
|
-
/** The values the styles' :host() and :state() rules test. */
|
|
729
|
-
const hostState = computed(() =>
|
|
730
|
-
[
|
|
731
|
-
checkedProps.value.align && 'align',
|
|
732
|
-
checkedProps.value.align != null && `align=${encodeURIComponent(checkedProps.value.align)}`,
|
|
733
|
-
checkedProps.value.stretch && 'stretch',
|
|
734
|
-
checkedProps.value.size && 'size',
|
|
735
|
-
checkedProps.value.size != null && `size=${encodeURIComponent(checkedProps.value.size)}`,
|
|
736
|
-
checkedProps.value.shape && 'shape',
|
|
737
|
-
checkedProps.value.shape != null && `shape=${encodeURIComponent(checkedProps.value.shape)}`,
|
|
738
|
-
checkedProps.value.square && 'square',
|
|
739
|
-
checkedProps.value.loading && 'loading',
|
|
740
|
-
checkedProps.value.pending && 'pending',
|
|
741
|
-
].filter(Boolean).join(' ')
|
|
742
|
-
)
|
|
743
|
-
|
|
744
|
-
const dispatch = createDispatch(root)
|
|
745
|
-
|
|
746
|
-
useComponentHost(() => import('../components/ui-button/ui-button.js'), {
|
|
747
|
-
root,
|
|
748
|
-
module: true,
|
|
749
|
-
dispatch,
|
|
750
|
-
controllerSource: {
|
|
751
|
-
specifier: '../components/ui-button/ui-button.js',
|
|
752
|
-
definition: './components/ui-button/ui-button.html',
|
|
753
|
-
},
|
|
754
|
-
props: checkedProps,
|
|
755
|
-
inputs: propInputs,
|
|
756
|
-
inputTracking,
|
|
757
|
-
propInputs: (name: string) => {
|
|
758
|
-
const incoming = hydrationInstance?.vnode.props
|
|
759
|
-
const kebab = name.replace(/[A-Z]/g, (letter) => '-' + letter.toLowerCase())
|
|
760
|
-
return incoming !== null && incoming !== undefined
|
|
761
|
-
? (incoming[name] ?? incoming[kebab] ?? null)
|
|
762
|
-
: null
|
|
763
|
-
},
|
|
764
|
-
propNames: [
|
|
765
|
-
'align',
|
|
766
|
-
'disabled',
|
|
767
|
-
'href',
|
|
768
|
-
'loading',
|
|
769
|
-
'pending',
|
|
770
|
-
'preset',
|
|
771
|
-
'rel',
|
|
772
|
-
'shape',
|
|
773
|
-
'size',
|
|
774
|
-
'square',
|
|
775
|
-
'stretch',
|
|
776
|
-
'target',
|
|
777
|
-
'tone',
|
|
778
|
-
'type',
|
|
779
|
-
'variant',
|
|
780
|
-
],
|
|
781
|
-
propValidity: (name: string) =>
|
|
782
|
-
propValidityState({ contract: propValidityContract, values: { ...props } }, name),
|
|
783
|
-
computed: { appearance, colorTone },
|
|
784
|
-
availability: { appearance: () => appearance.status(), colorTone: () => colorTone.status() },
|
|
785
|
-
})
|
|
786
|
-
</script>
|
|
787
|
-
|
|
788
|
-
<template>
|
|
789
|
-
<a
|
|
790
|
-
v-if="appearance.get() === 'card' && checkedProps.href !== null"
|
|
791
|
-
class="ui-button"
|
|
792
|
-
v-bind="nativeAttrs($attrs)"
|
|
793
|
-
data-hn
|
|
794
|
-
data-hn-ui-button
|
|
795
|
-
:data-appearance="attribute(appearance.get())"
|
|
796
|
-
:data-tone="attribute(colorTone.get())"
|
|
797
|
-
:href="guarded"
|
|
798
|
-
:target="checkedProps.target ?? undefined"
|
|
799
|
-
:rel="checkedProps.rel ?? undefined"
|
|
800
|
-
:aria-disabled="guardedBinding"
|
|
801
|
-
:aria-busy="checkedProps.loading || checkedProps.pending"
|
|
802
|
-
:tabindex="guardedBinding2"
|
|
803
|
-
v-prop-validity="{ contract: propValidityContract, values: { ...props } }"
|
|
804
|
-
:data-ui-button-prop-align="reflectedProp('align', 'align', checkedProps.align, undefined, false)"
|
|
805
|
-
:data-ui-button-prop-disabled="reflectedProp('disabled', 'disabled', checkedProps.disabled, undefined, false)"
|
|
806
|
-
:data-ui-button-prop-href="reflectedProp('href', 'href', checkedProps.href, undefined, false)"
|
|
807
|
-
:data-ui-button-prop-loading="reflectedProp('loading', 'loading', checkedProps.loading, undefined, false)"
|
|
808
|
-
:data-ui-button-prop-pending="reflectedProp('pending', 'pending', checkedProps.pending, undefined, false)"
|
|
809
|
-
:data-ui-button-prop-preset="reflectedProp('preset', 'preset', checkedProps.preset, undefined, false)"
|
|
810
|
-
:data-ui-button-prop-rel="reflectedProp('rel', 'rel', checkedProps.rel, undefined, false)"
|
|
811
|
-
:data-ui-button-prop-shape="reflectedProp('shape', 'shape', checkedProps.shape, undefined, false)"
|
|
812
|
-
:data-ui-button-prop-size="reflectedProp('size', 'size', checkedProps.size, undefined, false)"
|
|
813
|
-
:data-ui-button-prop-square="reflectedProp('square', 'square', checkedProps.square, undefined, false)"
|
|
814
|
-
:data-ui-button-prop-stretch="reflectedProp('stretch', 'stretch', checkedProps.stretch, undefined, false)"
|
|
815
|
-
:data-ui-button-prop-target="reflectedProp('target', 'target', checkedProps.target, undefined, false)"
|
|
816
|
-
:data-ui-button-prop-tone="reflectedProp('tone', 'tone', checkedProps.tone, undefined, false)"
|
|
817
|
-
:data-ui-button-prop-type="reflectedProp('type', 'type', checkedProps.type, undefined, false)"
|
|
818
|
-
:data-ui-button-prop-variant="reflectedProp('variant', 'variant', checkedProps.variant, undefined, false)"
|
|
819
|
-
:data-ui-button-state="hostState || undefined"
|
|
820
|
-
ref="@html-next/root"
|
|
821
|
-
><span class="card-icon" data-hn-ui-button><UiSpinner
|
|
822
|
-
v-if="checkedProps.loading || checkedProps.pending"
|
|
823
|
-
class="ui-spinner"
|
|
824
|
-
size="sm"
|
|
825
|
-
/>
|
|
826
|
-
<template v-if="!(checkedProps.loading || checkedProps.pending)"><slot
|
|
827
|
-
name="icon"
|
|
828
|
-
/></template></span>{{ ' ' }}<span class="card-content" data-hn-ui-button><slot /></span>{{
|
|
829
|
-
' '
|
|
830
|
-
}}<span class="card-action" data-hn-ui-button><slot name="action"><UiIcon
|
|
831
|
-
class="ui-icon"
|
|
832
|
-
name="chevron-right"
|
|
833
|
-
aria-hidden="true"
|
|
834
|
-
/></slot></span></a>
|
|
835
|
-
<button
|
|
836
|
-
v-else-if="appearance.get() === 'card'"
|
|
837
|
-
class="ui-button"
|
|
838
|
-
v-bind="nativeAttrs($attrs)"
|
|
839
|
-
data-hn
|
|
840
|
-
data-hn-ui-button
|
|
841
|
-
:data-appearance="attribute(appearance.get())"
|
|
842
|
-
:data-tone="attribute(colorTone.get())"
|
|
843
|
-
:type="checkedProps.type ?? undefined"
|
|
844
|
-
:disabled="checkedProps.disabled ?? undefined"
|
|
845
|
-
:aria-disabled="guardedBinding3"
|
|
846
|
-
:aria-busy="checkedProps.loading || checkedProps.pending"
|
|
847
|
-
v-prop-validity="{ contract: propValidityContract, values: { ...props } }"
|
|
848
|
-
:data-ui-button-prop-align="reflectedProp('align', 'align', checkedProps.align, undefined, false)"
|
|
849
|
-
:data-ui-button-prop-disabled="reflectedProp('disabled', 'disabled', checkedProps.disabled, undefined, false)"
|
|
850
|
-
:data-ui-button-prop-href="reflectedProp('href', 'href', checkedProps.href, undefined, false)"
|
|
851
|
-
:data-ui-button-prop-loading="reflectedProp('loading', 'loading', checkedProps.loading, undefined, false)"
|
|
852
|
-
:data-ui-button-prop-pending="reflectedProp('pending', 'pending', checkedProps.pending, undefined, false)"
|
|
853
|
-
:data-ui-button-prop-preset="reflectedProp('preset', 'preset', checkedProps.preset, undefined, false)"
|
|
854
|
-
:data-ui-button-prop-rel="reflectedProp('rel', 'rel', checkedProps.rel, undefined, false)"
|
|
855
|
-
:data-ui-button-prop-shape="reflectedProp('shape', 'shape', checkedProps.shape, undefined, false)"
|
|
856
|
-
:data-ui-button-prop-size="reflectedProp('size', 'size', checkedProps.size, undefined, false)"
|
|
857
|
-
:data-ui-button-prop-square="reflectedProp('square', 'square', checkedProps.square, undefined, false)"
|
|
858
|
-
:data-ui-button-prop-stretch="reflectedProp('stretch', 'stretch', checkedProps.stretch, undefined, false)"
|
|
859
|
-
:data-ui-button-prop-target="reflectedProp('target', 'target', checkedProps.target, undefined, false)"
|
|
860
|
-
:data-ui-button-prop-tone="reflectedProp('tone', 'tone', checkedProps.tone, undefined, false)"
|
|
861
|
-
:data-ui-button-prop-type="reflectedProp('type', 'type', checkedProps.type, undefined, false)"
|
|
862
|
-
:data-ui-button-prop-variant="reflectedProp('variant', 'variant', checkedProps.variant, undefined, false)"
|
|
863
|
-
:data-ui-button-state="hostState || undefined"
|
|
864
|
-
ref="@html-next/root"
|
|
865
|
-
>
|
|
866
|
-
<span class="card-icon" data-hn-ui-button><UiSpinner
|
|
867
|
-
v-if="checkedProps.loading || checkedProps.pending"
|
|
868
|
-
class="ui-spinner"
|
|
869
|
-
size="sm"
|
|
870
|
-
/>
|
|
871
|
-
<template v-if="!(checkedProps.loading || checkedProps.pending)"><slot
|
|
872
|
-
name="icon"
|
|
873
|
-
/></template></span>{{ ' ' }}<span class="card-content" data-hn-ui-button><slot /></span>{{
|
|
874
|
-
' '
|
|
875
|
-
}}<span class="card-action" data-hn-ui-button><slot name="action"><UiIcon
|
|
876
|
-
class="ui-icon"
|
|
877
|
-
name="chevron-right"
|
|
878
|
-
aria-hidden="true"
|
|
879
|
-
/></slot></span>
|
|
880
|
-
</button>
|
|
881
|
-
<a
|
|
882
|
-
v-else-if="checkedProps.href !== null"
|
|
883
|
-
class="ui-button"
|
|
884
|
-
v-bind="nativeAttrs($attrs)"
|
|
885
|
-
data-hn
|
|
886
|
-
data-hn-ui-button
|
|
887
|
-
:data-appearance="attribute(appearance.get())"
|
|
888
|
-
:data-tone="attribute(colorTone.get())"
|
|
889
|
-
:href="guardedBinding4"
|
|
890
|
-
:target="checkedProps.target ?? undefined"
|
|
891
|
-
:rel="checkedProps.rel ?? undefined"
|
|
892
|
-
:aria-disabled="guardedBinding5"
|
|
893
|
-
:aria-busy="checkedProps.loading || checkedProps.pending"
|
|
894
|
-
:tabindex="guardedBinding6"
|
|
895
|
-
v-prop-validity="{ contract: propValidityContract, values: { ...props } }"
|
|
896
|
-
:data-ui-button-prop-align="reflectedProp('align', 'align', checkedProps.align, undefined, false)"
|
|
897
|
-
:data-ui-button-prop-disabled="reflectedProp('disabled', 'disabled', checkedProps.disabled, undefined, false)"
|
|
898
|
-
:data-ui-button-prop-href="reflectedProp('href', 'href', checkedProps.href, undefined, false)"
|
|
899
|
-
:data-ui-button-prop-loading="reflectedProp('loading', 'loading', checkedProps.loading, undefined, false)"
|
|
900
|
-
:data-ui-button-prop-pending="reflectedProp('pending', 'pending', checkedProps.pending, undefined, false)"
|
|
901
|
-
:data-ui-button-prop-preset="reflectedProp('preset', 'preset', checkedProps.preset, undefined, false)"
|
|
902
|
-
:data-ui-button-prop-rel="reflectedProp('rel', 'rel', checkedProps.rel, undefined, false)"
|
|
903
|
-
:data-ui-button-prop-shape="reflectedProp('shape', 'shape', checkedProps.shape, undefined, false)"
|
|
904
|
-
:data-ui-button-prop-size="reflectedProp('size', 'size', checkedProps.size, undefined, false)"
|
|
905
|
-
:data-ui-button-prop-square="reflectedProp('square', 'square', checkedProps.square, undefined, false)"
|
|
906
|
-
:data-ui-button-prop-stretch="reflectedProp('stretch', 'stretch', checkedProps.stretch, undefined, false)"
|
|
907
|
-
:data-ui-button-prop-target="reflectedProp('target', 'target', checkedProps.target, undefined, false)"
|
|
908
|
-
:data-ui-button-prop-tone="reflectedProp('tone', 'tone', checkedProps.tone, undefined, false)"
|
|
909
|
-
:data-ui-button-prop-type="reflectedProp('type', 'type', checkedProps.type, undefined, false)"
|
|
910
|
-
:data-ui-button-prop-variant="reflectedProp('variant', 'variant', checkedProps.variant, undefined, false)"
|
|
911
|
-
:data-ui-button-state="hostState || undefined"
|
|
912
|
-
ref="@html-next/root"
|
|
913
|
-
><span
|
|
914
|
-
v-if="checkedProps.loading || checkedProps.pending"
|
|
915
|
-
class="spinner-wrap"
|
|
916
|
-
data-hn-ui-button
|
|
917
|
-
><UiSpinner class="ui-spinner" size="sm" /></span>{{ ' ' }}<span
|
|
918
|
-
class="label"
|
|
919
|
-
data-hn-ui-button
|
|
920
|
-
><slot /></span>{{ ' ' }}<span class="badge" data-hn-ui-button><slot name="badge" /></span></a>
|
|
921
|
-
<button
|
|
922
|
-
v-else
|
|
923
|
-
class="ui-button"
|
|
924
|
-
v-bind="nativeAttrs($attrs)"
|
|
925
|
-
data-hn
|
|
926
|
-
data-hn-ui-button
|
|
927
|
-
:data-appearance="attribute(appearance.get())"
|
|
928
|
-
:data-tone="attribute(colorTone.get())"
|
|
929
|
-
:type="checkedProps.type ?? undefined"
|
|
930
|
-
:disabled="checkedProps.disabled ?? undefined"
|
|
931
|
-
:aria-disabled="guardedBinding7"
|
|
932
|
-
:aria-busy="checkedProps.loading || checkedProps.pending"
|
|
933
|
-
v-prop-validity="{ contract: propValidityContract, values: { ...props } }"
|
|
934
|
-
:data-ui-button-prop-align="reflectedProp('align', 'align', checkedProps.align, undefined, false)"
|
|
935
|
-
:data-ui-button-prop-disabled="reflectedProp('disabled', 'disabled', checkedProps.disabled, undefined, false)"
|
|
936
|
-
:data-ui-button-prop-href="reflectedProp('href', 'href', checkedProps.href, undefined, false)"
|
|
937
|
-
:data-ui-button-prop-loading="reflectedProp('loading', 'loading', checkedProps.loading, undefined, false)"
|
|
938
|
-
:data-ui-button-prop-pending="reflectedProp('pending', 'pending', checkedProps.pending, undefined, false)"
|
|
939
|
-
:data-ui-button-prop-preset="reflectedProp('preset', 'preset', checkedProps.preset, undefined, false)"
|
|
940
|
-
:data-ui-button-prop-rel="reflectedProp('rel', 'rel', checkedProps.rel, undefined, false)"
|
|
941
|
-
:data-ui-button-prop-shape="reflectedProp('shape', 'shape', checkedProps.shape, undefined, false)"
|
|
942
|
-
:data-ui-button-prop-size="reflectedProp('size', 'size', checkedProps.size, undefined, false)"
|
|
943
|
-
:data-ui-button-prop-square="reflectedProp('square', 'square', checkedProps.square, undefined, false)"
|
|
944
|
-
:data-ui-button-prop-stretch="reflectedProp('stretch', 'stretch', checkedProps.stretch, undefined, false)"
|
|
945
|
-
:data-ui-button-prop-target="reflectedProp('target', 'target', checkedProps.target, undefined, false)"
|
|
946
|
-
:data-ui-button-prop-tone="reflectedProp('tone', 'tone', checkedProps.tone, undefined, false)"
|
|
947
|
-
:data-ui-button-prop-type="reflectedProp('type', 'type', checkedProps.type, undefined, false)"
|
|
948
|
-
:data-ui-button-prop-variant="reflectedProp('variant', 'variant', checkedProps.variant, undefined, false)"
|
|
949
|
-
:data-ui-button-state="hostState || undefined"
|
|
950
|
-
ref="@html-next/root"
|
|
951
|
-
>
|
|
952
|
-
<span
|
|
953
|
-
v-if="checkedProps.loading || checkedProps.pending"
|
|
954
|
-
class="spinner-wrap"
|
|
955
|
-
data-hn-ui-button
|
|
956
|
-
><UiSpinner class="ui-spinner" size="sm" /></span>{{ ' ' }}<span
|
|
957
|
-
class="label"
|
|
958
|
-
data-hn-ui-button
|
|
959
|
-
><slot /></span>{{ ' ' }}<span class="badge" data-hn-ui-button><slot name="badge" /></span>
|
|
960
|
-
</button>
|
|
961
|
-
</template>
|
|
962
|
-
|
|
963
|
-
<style scoped>
|
|
964
|
-
/* An anchor keeps the boxed button look even when an app styles ordinary links. */
|
|
965
|
-
|
|
966
|
-
/* A count is an adornment, not another line of label text. Keep the standard control height
|
|
967
|
-
with enough inset for a 24px mark; large content can still grow the button naturally. */
|
|
968
|
-
|
|
969
|
-
/* Trim the text line itself: an anonymous flex item retains font-metric space in some fonts. */
|
|
970
|
-
|
|
971
|
-
/* Short numeric and icon actions share a minimum box; large values remain readable. */
|
|
972
|
-
|
|
973
|
-
/* Card actions inherit Button's palette and behavior; only their shared layout changes.
|
|
974
|
-
The icon may contain any decorative composition. Empty icons remove their column. */
|
|
975
|
-
|
|
976
|
-
/* A link is never :enabled, so interactive states test "not unavailable" instead: for a button that
|
|
977
|
-
is exactly :enabled, at the same specificity, and it also matches a link that can be followed. */
|
|
978
|
-
|
|
979
|
-
/* Pressed reads as pressed in: the highlight goes, and the shadow moves inside. */
|
|
980
|
-
|
|
981
|
-
/* Tone is the colour, variant is the volume. Every pairing works: a danger outline is a
|
|
982
|
-
destructive secondary action, not a special case. */
|
|
983
|
-
|
|
984
|
-
/* A value picker is a field, with Select's quiet edge and resting lift. */
|
|
985
|
-
|
|
986
|
-
/* Shared translucent paint keeps text and icon action feedback coordinated. */
|
|
987
|
-
|
|
988
|
-
/* A soft halo that transitions in with the other box-shadow changes, layered on the raised shadow. */
|
|
989
|
-
|
|
990
|
-
/* A loading action stays visually active; only an explicitly disabled action takes the
|
|
991
|
-
neutral disabled palette. Its flat surface and muted ink make the state unambiguous. */
|
|
992
|
-
|
|
993
|
-
/* Ghost keeps no border, but gains the same neutral surface as other disabled buttons. */
|
|
994
|
-
|
|
995
|
-
/* The size states outrank :host, so sm is named too, or a small button would stay small. */
|
|
996
|
-
|
|
997
|
-
/* Under touch, a link-style button's press lands within the control minimum: an invisible hit
|
|
998
|
-
area, centred on it, like IconButton's. A link-style action keeps its text size, so a standalone one ("See all" under a list) needs the
|
|
999
|
-
area. xs sits inside a line of text the same way, so it keeps its size and gains the area too.
|
|
1000
|
-
Only these need it: a hit area on every button would reach over its neighbours. */
|
|
1001
|
-
|
|
1002
|
-
/* Link: an inline text action. No box, padding, or minimum height (inline targets are exempt under
|
|
1003
|
-
WCAG 2.5.8); the inherited font; an underline that strengthens on hover; a visible focus ring. */
|
|
1004
|
-
|
|
1005
|
-
/* A component that sets its display still honours the hidden attribute on its root. */
|
|
1006
|
-
|
|
1007
|
-
@scope (.ui-button) to ([data-hn]) {
|
|
1008
|
-
:global(:scope:where([data-hn-ui-button])) {
|
|
1009
|
-
/* Optional inherited action-group values keep text and icon actions under the same light.
|
|
1010
|
-
One fine top/start highlight follows the bottom/end lowlight at a joined action seam.
|
|
1011
|
-
The shared theme supplies reflections and glow independently of the resting lift. */
|
|
1012
|
-
--_ui-action-start: 1px;
|
|
1013
|
-
--_ui-action-edge: var(
|
|
1014
|
-
--ui-action-edge,
|
|
1015
|
-
inset var(--_ui-action-start) 1px 0 light-dark(
|
|
1016
|
-
rgb(255 255 255 / 0.08),
|
|
1017
|
-
rgb(255 255 255 / 0.06)
|
|
1018
|
-
),
|
|
1019
|
-
inset calc(-1 * var(--_ui-action-start)) -1px 0 light-dark(
|
|
1020
|
-
rgb(0 0 0 / 0.08),
|
|
1021
|
-
rgb(0 0 0 / 0.08)
|
|
1022
|
-
)
|
|
1023
|
-
);
|
|
1024
|
-
--_ui-action-shadow:
|
|
1025
|
-
var(--_ui-action-edge),
|
|
1026
|
-
0 1px 2px light-dark(rgb(0 0 0 / 0.10), rgb(0 0 0 / 0.20));
|
|
1027
|
-
--_tone-border: var(--ui-accent-border, var(--ui-accent));
|
|
1028
|
-
--_tone-hover-border: var(--ui-accent-hover-border, var(--ui-accent-hover));
|
|
1029
|
-
--_tone-active-border: var(--ui-accent-active-border, var(--ui-accent-active));
|
|
1030
|
-
--_tone-highlight: var(--ui-accent-highlight, none);
|
|
1031
|
-
--_tone-hover-highlight: var(--ui-accent-hover-highlight, none);
|
|
1032
|
-
--_tone-outline-border: var(--ui-accent-outline-border, var(--ui-accent-subtle-text));
|
|
1033
|
-
--_tone-wash: var(--ui-accent-wash);
|
|
1034
|
-
--_tone-wash-hover: var(--ui-accent-wash-hover);
|
|
1035
|
-
--_tone-ghost-hover: var(--ui-accent-ghost-hover);
|
|
1036
|
-
--_tone-glow: var(--ui-accent-glow, 0 0 transparent);
|
|
1037
|
-
--_hue: var(--ui-accent);
|
|
1038
|
-
--_hue-hover: var(--ui-accent-hover);
|
|
1039
|
-
--_hue-active: var(--ui-accent-active);
|
|
1040
|
-
--_hue-text: var(--ui-accent-subtle-text);
|
|
1041
|
-
--_on-hue: var(--ui-on-accent);
|
|
1042
|
-
|
|
1043
|
-
--_tone: var(--_hue);
|
|
1044
|
-
--_tone-hover: var(--_hue-hover);
|
|
1045
|
-
--_tone-active: var(--_hue-active);
|
|
1046
|
-
--_tone-text: var(--_hue-text);
|
|
1047
|
-
--_on-tone: var(--_on-hue);
|
|
1048
|
-
|
|
1049
|
-
display: inline-flex !important;
|
|
1050
|
-
align-items: center !important;
|
|
1051
|
-
justify-content: center !important;
|
|
1052
|
-
column-gap: var(--ui-space-2) !important;
|
|
1053
|
-
vertical-align: middle;
|
|
1054
|
-
color: var(--_tone-text);
|
|
1055
|
-
}
|
|
1056
|
-
:global(:scope:dir(rtl):where([data-hn-ui-button])) {
|
|
1057
|
-
--_ui-action-start: -1px;
|
|
1058
|
-
}
|
|
1059
|
-
:global(:scope[data-ui-button-state~="align=start"]:where([data-hn-ui-button])) {
|
|
1060
|
-
justify-content: flex-start !important;
|
|
1061
|
-
text-align: start;
|
|
1062
|
-
}
|
|
1063
|
-
:global(:scope[data-ui-button-state~="stretch"]:where([data-hn-ui-button])) {
|
|
1064
|
-
display: flex !important;
|
|
1065
|
-
inline-size: 100%;
|
|
1066
|
-
}
|
|
1067
|
-
:global(:scope:where([data-hn-ui-button])) {
|
|
1068
|
-
--_button-square-size: var(--ui-button-min-block-size, var(--ui-control-size-md));
|
|
1069
|
-
box-sizing: border-box !important;
|
|
1070
|
-
appearance: none;
|
|
1071
|
-
min-block-size: var(--ui-button-min-block-size, var(--ui-control-size-md));
|
|
1072
|
-
border-style: solid;
|
|
1073
|
-
border-width: var(--ui-border-width);
|
|
1074
|
-
border-color: var(--ui-button-border, var(--_tone-text));
|
|
1075
|
-
border-radius: var(--ui-button-radius, var(--ui-action-radius, var(--ui-radius-md)));
|
|
1076
|
-
background-color: var(
|
|
1077
|
-
--ui-button-surface,
|
|
1078
|
-
oklch(from var(--_tone) l c h / calc(5% * var(--ui-tonal-opacity, 1)))
|
|
1079
|
-
);
|
|
1080
|
-
color: var(--ui-button-text, var(--_tone-text));
|
|
1081
|
-
font: inherit;
|
|
1082
|
-
font-weight: var(--ui-font-medium);
|
|
1083
|
-
text-decoration: none;
|
|
1084
|
-
/* Unset, a button wraps as its container does. */
|
|
1085
|
-
white-space: var(--ui-button-white-space, inherit);
|
|
1086
|
-
line-height: var(--ui-line-height-tight);
|
|
1087
|
-
padding: var(--ui-control-inset-block-md, var(--ui-space-2))
|
|
1088
|
-
var(--ui-action-inset-md, var(--ui-space-3)) !important;
|
|
1089
|
-
background-image: var(--ui-surface-highlight, none);
|
|
1090
|
-
box-shadow:
|
|
1091
|
-
var(--ui-button-shadow, var(--ui-action-shadow, var(--_ui-action-shadow))),
|
|
1092
|
-
var(--_tone-glow);
|
|
1093
|
-
cursor: pointer;
|
|
1094
|
-
transition:
|
|
1095
|
-
scale var(--ui-motion-press, var(--ui-motion-fast)) var(--ui-motion-ease),
|
|
1096
|
-
background-color var(--ui-motion-fast) var(--ui-motion-ease),
|
|
1097
|
-
border-color var(--ui-motion-fast) var(--ui-motion-ease),
|
|
1098
|
-
color var(--ui-motion-fast) var(--ui-motion-ease),
|
|
1099
|
-
box-shadow var(--ui-motion-base) var(--ui-motion-ease);
|
|
1100
|
-
margin: 0 !important;
|
|
1101
|
-
}
|
|
1102
|
-
:global(:scope:is(a):where([data-hn-ui-button])) {
|
|
1103
|
-
text-decoration: none;
|
|
1104
|
-
}
|
|
1105
|
-
|
|
1106
|
-
:global(.spinner-wrap:where([data-hn-ui-button])) {
|
|
1107
|
-
display: inline-flex !important;
|
|
1108
|
-
flex: none;
|
|
1109
|
-
vertical-align: middle;
|
|
1110
|
-
}
|
|
1111
|
-
:global(:scope:not([data-appearance="link"]):has(.badge:not(:empty)):where([data-hn-ui-button])) {
|
|
1112
|
-
padding-block: var(--ui-space-0-5) !important;
|
|
1113
|
-
}
|
|
1114
|
-
:global(.label:where([data-hn-ui-button])) {
|
|
1115
|
-
display: block !important;
|
|
1116
|
-
align-content: center !important;
|
|
1117
|
-
min-inline-size: 0 !important;
|
|
1118
|
-
min-block-size: 1lh !important;
|
|
1119
|
-
}
|
|
1120
|
-
|
|
1121
|
-
:global(.label:has(svg):where([data-hn-ui-button])) {
|
|
1122
|
-
display: inline-flex !important;
|
|
1123
|
-
align-items: center !important;
|
|
1124
|
-
gap: var(--ui-space-2) !important;
|
|
1125
|
-
text-box-trim: none;
|
|
1126
|
-
}
|
|
1127
|
-
|
|
1128
|
-
:global(.badge:where([data-hn-ui-button])) {
|
|
1129
|
-
display: inline-flex !important;
|
|
1130
|
-
align-items: center !important;
|
|
1131
|
-
flex: none;
|
|
1132
|
-
}
|
|
1133
|
-
|
|
1134
|
-
:global(.badge:empty:where([data-hn-ui-button])) {
|
|
1135
|
-
display: none !important;
|
|
1136
|
-
}
|
|
1137
|
-
|
|
1138
|
-
@supports (text-box-trim: trim-both) {
|
|
1139
|
-
:global(.label:not(:has(svg)):where([data-hn-ui-button])) {
|
|
1140
|
-
text-box-trim: trim-both;
|
|
1141
|
-
text-box-edge: cap alphabetic;
|
|
1142
|
-
}
|
|
1143
|
-
}
|
|
1144
|
-
|
|
1145
|
-
:global(:scope[data-ui-button-state~="size=xs"]:where([data-hn-ui-button])) {
|
|
1146
|
-
--_button-square-size: 1.5rem;
|
|
1147
|
-
min-block-size: 1.5rem;
|
|
1148
|
-
padding: calc(var(--ui-space-0-5) * 1.5) calc(var(--ui-space-1) * 1.25) !important;
|
|
1149
|
-
font-size: var(--ui-font-size-xs);
|
|
1150
|
-
}
|
|
1151
|
-
|
|
1152
|
-
:global(:scope[data-ui-button-state~="shape=pill"]:where([data-hn-ui-button])) {
|
|
1153
|
-
border-radius: var(--ui-button-radius, var(--ui-radius-round));
|
|
1154
|
-
}
|
|
1155
|
-
|
|
1156
|
-
:global(:scope[data-ui-button-state~="size=sm"]:where([data-hn-ui-button])) {
|
|
1157
|
-
--_button-square-size: var(--ui-control-size-sm);
|
|
1158
|
-
min-block-size: var(--ui-control-size-sm);
|
|
1159
|
-
padding: var(--ui-control-inset-block-sm, var(--ui-space-1))
|
|
1160
|
-
var(--ui-action-inset-sm, var(--ui-space-2)) !important;
|
|
1161
|
-
font-size: var(--ui-font-size-sm);
|
|
1162
|
-
}
|
|
1163
|
-
|
|
1164
|
-
:global(:scope[data-ui-button-state~="size=lg"]:where([data-hn-ui-button])) {
|
|
1165
|
-
--_button-square-size: var(--ui-control-size-lg);
|
|
1166
|
-
min-block-size: var(--ui-control-size-lg);
|
|
1167
|
-
padding: var(--ui-control-inset-block-lg, var(--ui-space-3))
|
|
1168
|
-
var(--ui-action-inset-lg, var(--ui-space-4)) !important;
|
|
1169
|
-
font-size: var(--ui-font-size-md);
|
|
1170
|
-
}
|
|
1171
|
-
:global(:scope[data-ui-button-state~="square"]:not([data-appearance="link"], [data-appearance="card"]):where([data-hn-ui-button])) {
|
|
1172
|
-
min-inline-size: var(--_button-square-size);
|
|
1173
|
-
padding-inline: var(--ui-space-1) !important;
|
|
1174
|
-
}
|
|
1175
|
-
:global(:scope[data-appearance="card"]:where([data-hn-ui-button])) {
|
|
1176
|
-
display: grid !important;
|
|
1177
|
-
grid-template-columns: auto minmax(0, 1fr) auto;
|
|
1178
|
-
align-content: center !important;
|
|
1179
|
-
align-items: start !important;
|
|
1180
|
-
gap: var(--ui-space-3) !important;
|
|
1181
|
-
inline-size: 100%;
|
|
1182
|
-
min-block-size: max(var(--ui-control-min-block-size), var(--ui-control-size-md));
|
|
1183
|
-
text-align: start;
|
|
1184
|
-
white-space: normal;
|
|
1185
|
-
box-shadow: none;
|
|
1186
|
-
background-image: none;
|
|
1187
|
-
}
|
|
1188
|
-
:global(:scope[data-appearance="card"][size="lg"]:where([data-hn-ui-button])) {
|
|
1189
|
-
min-block-size: max(var(--ui-control-min-block-size), var(--ui-control-size-lg));
|
|
1190
|
-
}
|
|
1191
|
-
:global(:scope[data-appearance="card"]:has(.card-icon:empty):where([data-hn-ui-button])) {
|
|
1192
|
-
grid-template-columns: minmax(0, 1fr) auto;
|
|
1193
|
-
}
|
|
1194
|
-
:global(.card-icon:where([data-hn-ui-button])) {
|
|
1195
|
-
display: flex !important;
|
|
1196
|
-
align-items: flex-start !important;
|
|
1197
|
-
}
|
|
1198
|
-
:global(.card-icon:empty:where([data-hn-ui-button])) {
|
|
1199
|
-
display: none !important;
|
|
1200
|
-
}
|
|
1201
|
-
:global(.card-content:where([data-hn-ui-button])) {
|
|
1202
|
-
min-inline-size: 0;
|
|
1203
|
-
}
|
|
1204
|
-
:global(.card-action:where([data-hn-ui-button])) {
|
|
1205
|
-
display: flex !important;
|
|
1206
|
-
align-items: center !important;
|
|
1207
|
-
align-self: center;
|
|
1208
|
-
}
|
|
1209
|
-
|
|
1210
|
-
:global(:scope[data-appearance="outline"]:not([data-tone="neutral"]):where([data-hn-ui-button])) {
|
|
1211
|
-
--_outline-wash: var(--_tone-wash);
|
|
1212
|
-
border-color: var(--ui-button-border, var(--_tone-outline-border, var(--_tone-text)));
|
|
1213
|
-
background-color: var(--ui-button-surface, transparent);
|
|
1214
|
-
box-shadow: var(--ui-button-shadow, var(--ui-neutral-shadow));
|
|
1215
|
-
background-image: linear-gradient(var(--_outline-wash), var(--_outline-wash));
|
|
1216
|
-
}
|
|
1217
|
-
|
|
1218
|
-
:global(:scope[data-appearance="outline"]:not([data-tone="neutral"]):hover:not(:disabled, [aria-disabled="true"]):where([data-hn-ui-button])) {
|
|
1219
|
-
--_outline-wash: var(--_tone-wash-hover);
|
|
1220
|
-
background-color: var(--ui-button-hover-surface, transparent);
|
|
1221
|
-
border-color: var(--ui-button-hover-border, var(--_tone-outline-border));
|
|
1222
|
-
}
|
|
1223
|
-
:global(:scope:hover:not(:disabled, [aria-disabled="true"]):where([data-hn-ui-button])) {
|
|
1224
|
-
border-color: var(--ui-button-hover-border, var(--_tone-text));
|
|
1225
|
-
background-color: var(
|
|
1226
|
-
--ui-button-hover-surface,
|
|
1227
|
-
oklch(from var(--_tone-text) l c h / calc(12% * var(--ui-tonal-opacity, 1)))
|
|
1228
|
-
);
|
|
1229
|
-
}
|
|
1230
|
-
|
|
1231
|
-
:global(:scope[data-appearance="card"][data-tone="neutral"]:where([data-hn-ui-button])) {
|
|
1232
|
-
border-color: var(--ui-button-border, var(--ui-border));
|
|
1233
|
-
}
|
|
1234
|
-
|
|
1235
|
-
:global(:scope[data-appearance="card"][data-tone="neutral"]:hover:not(:disabled, [aria-disabled="true"]):where([data-hn-ui-button])) {
|
|
1236
|
-
border-color: var(--ui-button-hover-border, var(--ui-border-strong));
|
|
1237
|
-
}
|
|
1238
|
-
|
|
1239
|
-
:global(:scope[data-appearance="card"][aria-pressed="true"]:where([data-hn-ui-button])) {
|
|
1240
|
-
background-color: var(--ui-selection-surface);
|
|
1241
|
-
border-color: var(--ui-selection-border);
|
|
1242
|
-
color: var(--ui-selection-text);
|
|
1243
|
-
}
|
|
1244
|
-
:global(:scope:active:not(:disabled, [aria-disabled="true"]):where([data-hn-ui-button])),
|
|
1245
|
-
:global(:scope[data-appearance="outline"]:active:not(:disabled, [aria-disabled="true"]):where([data-hn-ui-button])) {
|
|
1246
|
-
scale: var(--ui-press-scale, 1);
|
|
1247
|
-
background-color: var(
|
|
1248
|
-
--ui-button-active-surface,
|
|
1249
|
-
oklch(from var(--_tone) l c h / calc(18% * var(--ui-tonal-opacity, 1)))
|
|
1250
|
-
);
|
|
1251
|
-
background-image: none;
|
|
1252
|
-
box-shadow: var(--ui-pressed);
|
|
1253
|
-
}
|
|
1254
|
-
|
|
1255
|
-
:global(:scope[data-appearance="solid"]:where([data-hn-ui-button])),
|
|
1256
|
-
:global(:scope[data-appearance="danger"]:where([data-hn-ui-button])) {
|
|
1257
|
-
border-color: var(--ui-button-border, var(--_tone-border));
|
|
1258
|
-
background-color: var(--_tone);
|
|
1259
|
-
color: var(--_on-tone);
|
|
1260
|
-
background-image: var(--_tone-highlight);
|
|
1261
|
-
box-shadow:
|
|
1262
|
-
var(--ui-button-solid-shadow, var(--ui-action-shadow, var(--_ui-action-shadow))),
|
|
1263
|
-
var(--_tone-glow);
|
|
1264
|
-
}
|
|
1265
|
-
|
|
1266
|
-
:global(:scope[data-appearance="solid"]:hover:not(:disabled, [aria-disabled="true"]):where([data-hn-ui-button])),
|
|
1267
|
-
:global(:scope[data-appearance="danger"]:hover:not(:disabled, [aria-disabled="true"]):where([data-hn-ui-button])) {
|
|
1268
|
-
background-color: var(--_tone-hover);
|
|
1269
|
-
background-image: var(--_tone-hover-highlight);
|
|
1270
|
-
border-color: var(--ui-button-hover-border, var(--_tone-hover-border));
|
|
1271
|
-
}
|
|
1272
|
-
|
|
1273
|
-
:global(:is(:scope[data-appearance="solid"], :scope[data-appearance="danger"]):active:not(:disabled, [aria-disabled="true"]):where([data-hn-ui-button])) {
|
|
1274
|
-
background-color: var(--_tone-active);
|
|
1275
|
-
border-color: var(--_tone-active-border);
|
|
1276
|
-
background-image: none;
|
|
1277
|
-
box-shadow: var(--ui-pressed);
|
|
1278
|
-
}
|
|
1279
|
-
:global(:scope[data-tone="accent-secondary"]:where([data-hn-ui-button])) {
|
|
1280
|
-
--_tone-border: var(--ui-accent-secondary-border, var(--ui-accent-secondary));
|
|
1281
|
-
--_tone-hover-border: var(--ui-accent-secondary-hover-border, var(--ui-accent-secondary-hover));
|
|
1282
|
-
--_tone-active-border: var(
|
|
1283
|
-
--ui-accent-secondary-active-border,
|
|
1284
|
-
var(--ui-accent-secondary-active)
|
|
1285
|
-
);
|
|
1286
|
-
--_tone-highlight: var(--ui-accent-secondary-highlight, none);
|
|
1287
|
-
--_tone-hover-highlight: var(--ui-accent-secondary-hover-highlight, none);
|
|
1288
|
-
--_tone-outline-border: var(
|
|
1289
|
-
--ui-accent-secondary-outline-border,
|
|
1290
|
-
var(--ui-accent-secondary-subtle-text)
|
|
1291
|
-
);
|
|
1292
|
-
--_tone-wash: var(--ui-accent-secondary-wash);
|
|
1293
|
-
--_tone-wash-hover: var(--ui-accent-secondary-wash-hover);
|
|
1294
|
-
--_tone-ghost-hover: var(--ui-accent-secondary-ghost-hover);
|
|
1295
|
-
--_tone-glow: var(--ui-accent-secondary-glow, 0 0 transparent);
|
|
1296
|
-
--_hue: var(--ui-accent-secondary);
|
|
1297
|
-
--_hue-hover: var(--ui-accent-secondary-hover);
|
|
1298
|
-
--_hue-active: var(--ui-accent-secondary-active);
|
|
1299
|
-
--_hue-text: var(--ui-accent-secondary-subtle-text);
|
|
1300
|
-
--_on-hue: var(--ui-accent-secondary-on-strong);
|
|
1301
|
-
}
|
|
1302
|
-
|
|
1303
|
-
:global(:scope[data-tone="accent-tertiary"]:where([data-hn-ui-button])) {
|
|
1304
|
-
--_tone-border: var(--ui-accent-tertiary-border, var(--ui-accent-tertiary));
|
|
1305
|
-
--_tone-hover-border: var(--ui-accent-tertiary-hover-border, var(--ui-accent-tertiary-hover));
|
|
1306
|
-
--_tone-active-border: var(
|
|
1307
|
-
--ui-accent-tertiary-active-border,
|
|
1308
|
-
var(--ui-accent-tertiary-active)
|
|
1309
|
-
);
|
|
1310
|
-
--_tone-highlight: var(--ui-accent-tertiary-highlight, none);
|
|
1311
|
-
--_tone-hover-highlight: var(--ui-accent-tertiary-hover-highlight, none);
|
|
1312
|
-
--_tone-outline-border: var(
|
|
1313
|
-
--ui-accent-tertiary-outline-border,
|
|
1314
|
-
var(--ui-accent-tertiary-subtle-text)
|
|
1315
|
-
);
|
|
1316
|
-
--_tone-wash: var(--ui-accent-tertiary-wash);
|
|
1317
|
-
--_tone-wash-hover: var(--ui-accent-tertiary-wash-hover);
|
|
1318
|
-
--_tone-ghost-hover: var(--ui-accent-tertiary-ghost-hover);
|
|
1319
|
-
--_tone-glow: var(--ui-accent-tertiary-glow, 0 0 transparent);
|
|
1320
|
-
--_hue: var(--ui-accent-tertiary);
|
|
1321
|
-
--_hue-hover: var(--ui-accent-tertiary-hover);
|
|
1322
|
-
--_hue-active: var(--ui-accent-tertiary-active);
|
|
1323
|
-
--_hue-text: var(--ui-accent-tertiary-subtle-text);
|
|
1324
|
-
--_on-hue: var(--ui-accent-tertiary-on-strong);
|
|
1325
|
-
}
|
|
1326
|
-
|
|
1327
|
-
:global(:scope[data-tone="neutral"]:where([data-hn-ui-button])) {
|
|
1328
|
-
--_tone-border: var(--ui-control-border, var(--ui-neutral-surface));
|
|
1329
|
-
--_tone-hover-border: var(--ui-control-border-hover, var(--ui-neutral-hover));
|
|
1330
|
-
--_tone-active-border: var(--ui-control-border-hover, var(--ui-neutral-active));
|
|
1331
|
-
--_tone-highlight: var(--ui-neutral-highlight, none);
|
|
1332
|
-
--_tone-hover-highlight: var(--ui-neutral-hover-highlight, var(--_tone-highlight));
|
|
1333
|
-
--_tone-outline-border: var(--ui-control-border);
|
|
1334
|
-
--_tone-ghost-hover: var(--ui-neutral-ghost-hover);
|
|
1335
|
-
--_tone-glow: var(--ui-neutral-glow, 0 0 transparent);
|
|
1336
|
-
--_hue: var(--ui-text);
|
|
1337
|
-
--_hue-hover: var(--ui-text);
|
|
1338
|
-
--_hue-active: var(--ui-text);
|
|
1339
|
-
--_hue-text: var(--ui-text);
|
|
1340
|
-
--_on-hue: var(--ui-surface);
|
|
1341
|
-
}
|
|
1342
|
-
|
|
1343
|
-
:global(:scope[data-tone="neutral"][data-appearance="solid"]:where([data-hn-ui-button])) {
|
|
1344
|
-
border-color: var(--ui-button-border, var(--_tone-border));
|
|
1345
|
-
background-color: var(--ui-button-surface, var(--ui-neutral-surface));
|
|
1346
|
-
box-shadow: var(--ui-button-solid-shadow, var(--ui-button-shadow, var(--ui-neutral-shadow)));
|
|
1347
|
-
color: var(--ui-button-text, var(--ui-text));
|
|
1348
|
-
}
|
|
1349
|
-
:global(:scope[data-tone="neutral"][data-appearance="outline"]:where([data-hn-ui-button])) {
|
|
1350
|
-
border-color: var(--ui-button-border, var(--ui-control-border));
|
|
1351
|
-
background-color: var(--ui-button-surface, transparent);
|
|
1352
|
-
background-image: none;
|
|
1353
|
-
box-shadow: var(--ui-button-shadow, var(--ui-neutral-shadow));
|
|
1354
|
-
}
|
|
1355
|
-
:global(:scope[data-tone="neutral"][data-appearance="outline"]:hover:not(:disabled, [aria-disabled="true"]):where([data-hn-ui-button])) {
|
|
1356
|
-
border-color: var(--ui-button-hover-border, var(--ui-control-border-hover));
|
|
1357
|
-
background-color: var(--ui-button-hover-surface, transparent);
|
|
1358
|
-
--_outline-wash: var(--ui-neutral-wash-hover);
|
|
1359
|
-
background-image: linear-gradient(var(--_outline-wash), var(--_outline-wash));
|
|
1360
|
-
}
|
|
1361
|
-
:global(:scope[data-tone="neutral"][data-appearance="outline"]:active:not(:disabled, [aria-disabled="true"]):where([data-hn-ui-button])) {
|
|
1362
|
-
background-image: none;
|
|
1363
|
-
border-color: var(--ui-button-hover-border, var(--ui-control-border-hover));
|
|
1364
|
-
background-color: var(--ui-button-active-surface, var(--ui-neutral-active));
|
|
1365
|
-
}
|
|
1366
|
-
:global(:scope[data-tone="neutral"][data-appearance="solid"]:hover:not(:disabled, [aria-disabled="true"]):where([data-hn-ui-button])) {
|
|
1367
|
-
border-color: var(--ui-button-hover-border, var(--_tone-hover-border));
|
|
1368
|
-
background-color: var(--ui-button-hover-surface, var(--ui-neutral-hover));
|
|
1369
|
-
}
|
|
1370
|
-
:global(:scope[data-tone="neutral"][data-appearance="solid"]:active:not(:disabled, [aria-disabled="true"]):where([data-hn-ui-button])) {
|
|
1371
|
-
border-color: var(--_tone-active-border);
|
|
1372
|
-
background-color: var(--ui-button-active-surface, var(--ui-neutral-active));
|
|
1373
|
-
}
|
|
1374
|
-
|
|
1375
|
-
:global(:scope[data-tone="danger"]:where([data-hn-ui-button])),
|
|
1376
|
-
:global(:scope[data-appearance="danger"]:where([data-hn-ui-button])) {
|
|
1377
|
-
--_tone-border: var(--ui-danger-border, var(--ui-danger));
|
|
1378
|
-
--_tone-hover-border: var(--ui-danger-hover-border, var(--ui-danger-hover));
|
|
1379
|
-
--_tone-active-border: var(--ui-danger-active-border, var(--ui-danger-active));
|
|
1380
|
-
--_tone-highlight: var(--ui-danger-highlight, none);
|
|
1381
|
-
--_tone-hover-highlight: var(--ui-danger-hover-highlight, none);
|
|
1382
|
-
--_tone-outline-border: var(--ui-danger-outline-border, var(--ui-danger-subtle-text));
|
|
1383
|
-
--_tone-wash: var(--ui-danger-wash);
|
|
1384
|
-
--_tone-wash-hover: var(--ui-danger-wash-hover);
|
|
1385
|
-
--_tone-ghost-hover: var(--ui-danger-ghost-hover);
|
|
1386
|
-
--_tone-glow: var(--ui-danger-glow, 0 0 transparent);
|
|
1387
|
-
--_hue: var(--ui-danger);
|
|
1388
|
-
--_hue-hover: var(--ui-danger-hover);
|
|
1389
|
-
--_hue-active: var(--ui-danger-active, var(--ui-danger-hover));
|
|
1390
|
-
--_hue-text: var(--ui-danger-subtle-text);
|
|
1391
|
-
--_on-hue: var(--ui-on-danger);
|
|
1392
|
-
}
|
|
1393
|
-
|
|
1394
|
-
:global(:scope[data-tone="success"]:where([data-hn-ui-button])) {
|
|
1395
|
-
--_tone-border: var(--ui-success-border, var(--ui-success));
|
|
1396
|
-
--_tone-hover-border: var(--ui-success-hover-border, var(--ui-success-hover));
|
|
1397
|
-
--_tone-active-border: var(--ui-success-active-border, var(--ui-success-active));
|
|
1398
|
-
--_tone-highlight: var(--ui-success-highlight, none);
|
|
1399
|
-
--_tone-hover-highlight: var(--ui-success-hover-highlight, none);
|
|
1400
|
-
--_tone-outline-border: var(--ui-success-outline-border, var(--ui-success-subtle-text));
|
|
1401
|
-
--_tone-wash: var(--ui-success-wash);
|
|
1402
|
-
--_tone-wash-hover: var(--ui-success-wash-hover);
|
|
1403
|
-
--_tone-ghost-hover: var(--ui-success-ghost-hover);
|
|
1404
|
-
--_tone-glow: var(--ui-success-glow, 0 0 transparent);
|
|
1405
|
-
--_hue: var(--ui-success);
|
|
1406
|
-
--_hue-hover: var(--ui-success-hover);
|
|
1407
|
-
--_hue-active: var(--ui-success-active);
|
|
1408
|
-
--_hue-text: var(--ui-success-subtle-text);
|
|
1409
|
-
--_on-hue: var(--ui-success-on-strong);
|
|
1410
|
-
}
|
|
1411
|
-
|
|
1412
|
-
:global(:scope[data-tone="warning"]:where([data-hn-ui-button])) {
|
|
1413
|
-
--_tone-border: var(--ui-warning-border, var(--ui-warning));
|
|
1414
|
-
--_tone-hover-border: var(--ui-warning-hover-border, var(--ui-warning-hover));
|
|
1415
|
-
--_tone-active-border: var(--ui-warning-active-border, var(--ui-warning-active));
|
|
1416
|
-
--_tone-highlight: var(--ui-warning-highlight, none);
|
|
1417
|
-
--_tone-hover-highlight: var(--ui-warning-hover-highlight, none);
|
|
1418
|
-
--_tone-outline-border: var(--ui-warning-outline-border, var(--ui-warning-subtle-text));
|
|
1419
|
-
--_tone-wash: var(--ui-warning-wash);
|
|
1420
|
-
--_tone-wash-hover: var(--ui-warning-wash-hover);
|
|
1421
|
-
--_tone-ghost-hover: var(--ui-warning-ghost-hover);
|
|
1422
|
-
--_tone-glow: var(--ui-warning-glow, 0 0 transparent);
|
|
1423
|
-
--_hue: var(--ui-warning);
|
|
1424
|
-
--_hue-hover: var(--ui-warning-hover);
|
|
1425
|
-
--_hue-active: var(--ui-warning-active);
|
|
1426
|
-
--_hue-text: var(--ui-warning-subtle-text);
|
|
1427
|
-
--_on-hue: var(--ui-warning-on-strong);
|
|
1428
|
-
}
|
|
1429
|
-
|
|
1430
|
-
:global(:scope[data-tone="info"]:where([data-hn-ui-button])) {
|
|
1431
|
-
--_tone-border: var(--ui-info-border, var(--ui-info));
|
|
1432
|
-
--_tone-hover-border: var(--ui-info-hover-border, var(--ui-info-hover));
|
|
1433
|
-
--_tone-active-border: var(--ui-info-active-border, var(--ui-info-active));
|
|
1434
|
-
--_tone-highlight: var(--ui-info-highlight, none);
|
|
1435
|
-
--_tone-hover-highlight: var(--ui-info-hover-highlight, none);
|
|
1436
|
-
--_tone-outline-border: var(--ui-info-outline-border, var(--ui-info-subtle-text));
|
|
1437
|
-
--_tone-wash: var(--ui-info-wash);
|
|
1438
|
-
--_tone-wash-hover: var(--ui-info-wash-hover);
|
|
1439
|
-
--_tone-ghost-hover: var(--ui-info-ghost-hover);
|
|
1440
|
-
--_tone-glow: var(--ui-info-glow, 0 0 transparent);
|
|
1441
|
-
--_hue: var(--ui-info);
|
|
1442
|
-
--_hue-hover: var(--ui-info-hover);
|
|
1443
|
-
--_hue-active: var(--ui-info-active);
|
|
1444
|
-
--_hue-text: var(--ui-info-subtle-text);
|
|
1445
|
-
--_on-hue: var(--ui-info-on-strong);
|
|
1446
|
-
}
|
|
1447
|
-
:global(:scope[data-appearance="field"]:where([data-hn-ui-button])) {
|
|
1448
|
-
--_ui-field-shadow: var(--ui-shadow-sm);
|
|
1449
|
-
border-color: var(--ui-button-border, var(--ui-control-border, var(--ui-border-strong)));
|
|
1450
|
-
border-radius: var(--ui-button-radius, var(--ui-field-radius, var(--ui-radius-md)));
|
|
1451
|
-
background-color: var(
|
|
1452
|
-
--ui-button-surface,
|
|
1453
|
-
var(--ui-control-surface, var(--ui-surface-elevated))
|
|
1454
|
-
);
|
|
1455
|
-
color: var(--ui-button-text, var(--ui-text-primary));
|
|
1456
|
-
font-weight: var(--ui-font-normal);
|
|
1457
|
-
box-shadow: var(--ui-button-shadow, var(--_ui-field-shadow));
|
|
1458
|
-
}
|
|
1459
|
-
|
|
1460
|
-
:global(:scope[data-appearance="field"]:hover:not(:disabled, [aria-disabled="true"]):where([data-hn-ui-button])) {
|
|
1461
|
-
border-color: var(
|
|
1462
|
-
--ui-button-hover-border,
|
|
1463
|
-
var(--ui-control-border-hover, var(--ui-text-secondary))
|
|
1464
|
-
);
|
|
1465
|
-
background-color: var(
|
|
1466
|
-
--ui-button-hover-surface,
|
|
1467
|
-
var(--ui-control-surface, var(--ui-surface-elevated))
|
|
1468
|
-
);
|
|
1469
|
-
}
|
|
1470
|
-
|
|
1471
|
-
:global(:scope[data-appearance="field"]:is(:active, [aria-expanded="true"]):not(:disabled, [aria-disabled="true"]):where([data-hn-ui-button])) {
|
|
1472
|
-
--_ui-field-shadow: var(--ui-pressed);
|
|
1473
|
-
}
|
|
1474
|
-
|
|
1475
|
-
:global(:scope[data-appearance="field"]:focus-visible:where([data-hn-ui-button])) {
|
|
1476
|
-
border-color: var(--ui-control-focus, var(--ui-accent-solid));
|
|
1477
|
-
box-shadow:
|
|
1478
|
-
var(--ui-button-shadow, var(--_ui-field-shadow)),
|
|
1479
|
-
var(--ui-control-focus-halo-shadow);
|
|
1480
|
-
}
|
|
1481
|
-
|
|
1482
|
-
:global(:scope[data-appearance="ghost"]:where([data-hn-ui-button])) {
|
|
1483
|
-
border-color: transparent;
|
|
1484
|
-
background: transparent;
|
|
1485
|
-
box-shadow: none;
|
|
1486
|
-
color: var(--ui-button-ghost-text, var(--_tone-text));
|
|
1487
|
-
}
|
|
1488
|
-
:global(:scope[data-appearance="ghost"]:hover:not(:disabled, [aria-disabled="true"]):where([data-hn-ui-button])) {
|
|
1489
|
-
background-color: var(--ui-button-ghost-hover-surface, var(--_tone-ghost-hover));
|
|
1490
|
-
border-color: transparent;
|
|
1491
|
-
}
|
|
1492
|
-
|
|
1493
|
-
:global(:scope[data-appearance="ghost"]:is(:active, [aria-expanded="true"]):not(:disabled, [aria-disabled="true"]):where([data-hn-ui-button])) {
|
|
1494
|
-
background-color: var(--ui-button-ghost-active-surface, oklch(from var(--_tone) l c h / 18%));
|
|
1495
|
-
border-color: transparent;
|
|
1496
|
-
box-shadow:
|
|
1497
|
-
inset 0 0 0 1px oklch(from var(--_tone) l c h / 10%),
|
|
1498
|
-
inset 0 1px 2px oklch(from var(--_tone) l c h / 8%);
|
|
1499
|
-
}
|
|
1500
|
-
:global(:scope:focus-visible:where([data-hn-ui-button])) {
|
|
1501
|
-
outline: none;
|
|
1502
|
-
box-shadow:
|
|
1503
|
-
var(--ui-button-shadow, var(--ui-action-shadow, var(--_ui-action-shadow))),
|
|
1504
|
-
var(--ui-focus-halo);
|
|
1505
|
-
}
|
|
1506
|
-
|
|
1507
|
-
:global(:scope[data-appearance="outline"]:focus-visible:where([data-hn-ui-button])) {
|
|
1508
|
-
box-shadow:
|
|
1509
|
-
var(--ui-button-shadow, var(--ui-neutral-shadow)),
|
|
1510
|
-
var(--ui-focus-halo);
|
|
1511
|
-
}
|
|
1512
|
-
|
|
1513
|
-
:global(:scope[data-appearance="solid"]:focus-visible:where([data-hn-ui-button])) {
|
|
1514
|
-
box-shadow:
|
|
1515
|
-
var(--ui-button-solid-shadow, var(--ui-action-shadow, var(--_ui-action-shadow))),
|
|
1516
|
-
var(--ui-focus-halo);
|
|
1517
|
-
}
|
|
1518
|
-
|
|
1519
|
-
:global(:is(:scope[data-appearance="ghost"], :scope[data-appearance="link"], :scope[data-appearance="card"]):focus-visible:where([data-hn-ui-button])) {
|
|
1520
|
-
box-shadow: var(--ui-focus-halo);
|
|
1521
|
-
}
|
|
1522
|
-
:global(:scope:is(:disabled, [aria-disabled="true"]:not([aria-busy="true"])):where([data-hn-ui-button])) {
|
|
1523
|
-
border-color: var(--ui-disabled-border);
|
|
1524
|
-
background-color: var(--ui-disabled-surface);
|
|
1525
|
-
color: var(--ui-disabled-text);
|
|
1526
|
-
filter: var(--ui-button-disabled-filter, var(--ui-disabled-filter));
|
|
1527
|
-
opacity: var(--ui-button-disabled-opacity, 1);
|
|
1528
|
-
cursor: not-allowed;
|
|
1529
|
-
background-image: none;
|
|
1530
|
-
box-shadow: none;
|
|
1531
|
-
}
|
|
1532
|
-
|
|
1533
|
-
:global(:is(:scope[data-ui-button-state~="loading"], :scope[data-ui-button-state~="pending"]):focus-visible:where([data-hn-ui-button])) {
|
|
1534
|
-
box-shadow: var(--ui-focus-halo);
|
|
1535
|
-
}
|
|
1536
|
-
:global(:scope[data-appearance="ghost"]:is(:disabled, [aria-disabled="true"]:not([aria-busy="true"])):where([data-hn-ui-button])) {
|
|
1537
|
-
background-color: var(--ui-disabled-surface);
|
|
1538
|
-
border-color: transparent;
|
|
1539
|
-
}
|
|
1540
|
-
:global(html[data-ui-input-modality="touch"]
|
|
1541
|
-
:scope[data-appearance="link"]:where([data-hn-ui-button])),
|
|
1542
|
-
:global(html[data-ui-input-modality="touch"]
|
|
1543
|
-
:scope[data-ui-button-state~="size=xs"]:where([data-hn-ui-button])) {
|
|
1544
|
-
position: relative;
|
|
1545
|
-
}
|
|
1546
|
-
|
|
1547
|
-
:global(html[data-ui-input-modality="touch"]
|
|
1548
|
-
:scope[data-appearance="link"]:where([data-hn-ui-button])::after),
|
|
1549
|
-
:global(html[data-ui-input-modality="touch"]
|
|
1550
|
-
:scope[data-ui-button-state~="size=xs"]:where([data-hn-ui-button])::after) {
|
|
1551
|
-
position: absolute;
|
|
1552
|
-
inset: 50% auto auto 50%;
|
|
1553
|
-
inline-size: max(100%, var(--ui-control-min-block-size));
|
|
1554
|
-
block-size: max(100%, var(--ui-control-min-block-size));
|
|
1555
|
-
transform: translate(-50%, -50%);
|
|
1556
|
-
content: "";
|
|
1557
|
-
}
|
|
1558
|
-
:global(:scope[data-appearance="link"]:where([data-hn-ui-button])) {
|
|
1559
|
-
display: inline !important;
|
|
1560
|
-
min-block-size: 0;
|
|
1561
|
-
padding: 0 !important;
|
|
1562
|
-
border: 0;
|
|
1563
|
-
border-radius: var(--ui-radius-sm);
|
|
1564
|
-
background: none;
|
|
1565
|
-
box-shadow: none;
|
|
1566
|
-
font: inherit;
|
|
1567
|
-
color: var(--ui-button-link-text, var(--ui-text-secondary));
|
|
1568
|
-
text-decoration-line: underline;
|
|
1569
|
-
text-decoration-thickness: 1px;
|
|
1570
|
-
text-decoration-color: color-mix(in srgb, currentColor 40%, transparent);
|
|
1571
|
-
text-underline-offset: 0.2em;
|
|
1572
|
-
transition:
|
|
1573
|
-
color var(--ui-motion-fast) var(--ui-motion-ease),
|
|
1574
|
-
text-decoration-color var(--ui-motion-fast) var(--ui-motion-ease);
|
|
1575
|
-
}
|
|
1576
|
-
|
|
1577
|
-
:global(:scope[data-appearance="link"] .label:where([data-hn-ui-button])) {
|
|
1578
|
-
display: inline !important;
|
|
1579
|
-
text-box-trim: none;
|
|
1580
|
-
}
|
|
1581
|
-
|
|
1582
|
-
:global(:scope[data-appearance="link"]:hover:not(:disabled, [aria-disabled="true"]):where([data-hn-ui-button])) {
|
|
1583
|
-
color: var(--ui-button-link-hover-text, var(--ui-text-primary));
|
|
1584
|
-
text-decoration-color: currentColor;
|
|
1585
|
-
background: none;
|
|
1586
|
-
transform: none;
|
|
1587
|
-
}
|
|
1588
|
-
|
|
1589
|
-
:global(:scope[data-appearance="link"]:active:not(:disabled, [aria-disabled="true"]):where([data-hn-ui-button])) {
|
|
1590
|
-
background: none;
|
|
1591
|
-
transform: none;
|
|
1592
|
-
}
|
|
1593
|
-
|
|
1594
|
-
:global(:scope[data-appearance="link"]:is(:disabled, [aria-disabled="true"]:not([aria-busy="true"])):where([data-hn-ui-button])) {
|
|
1595
|
-
background: none;
|
|
1596
|
-
border-color: transparent;
|
|
1597
|
-
}
|
|
1598
|
-
|
|
1599
|
-
:global(:scope[data-appearance="link"]:focus-visible:where([data-hn-ui-button])) {
|
|
1600
|
-
box-shadow: none;
|
|
1601
|
-
/* Fallback keeps the ring if the token is missing: an unresolved var() would void the outline. */
|
|
1602
|
-
outline: var(--ui-focus-width) solid var(--ui-focus-ring);
|
|
1603
|
-
outline-offset: var(--ui-focus-width);
|
|
1604
|
-
}
|
|
1605
|
-
:global(:scope[hidden]:where([data-hn-ui-button])) {
|
|
1606
|
-
display: none !important;
|
|
1607
|
-
}
|
|
1608
|
-
}
|
|
1609
|
-
</style>
|