@threadlabs/looma 0.28.5 → 0.28.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/ui-editor-block-actions/ui-editor-block-actions.html +20 -0
- package/components/ui-editor-block-actions/ui-editor-block-actions.js +14 -0
- package/components/ui-editor-image-toolbar/ui-editor-image-toolbar.html +7 -6
- package/components/ui-editor-image-toolbar/ui-editor-image-toolbar.js +2 -1
- package/components/ui-editor-link-card/ui-editor-link-card.html +57 -0
- package/components/ui-editor-link-card/ui-editor-link-card.js +27 -0
- package/components/ui-editor-mention-menu-item/ui-editor-mention-menu-item.html +3 -2
- package/dist/index.js +36 -34
- package/package.json +3 -2
- package/styles/ui-action-bar.css +13 -6
- package/styles/ui-affordance-scope.css +12 -5
- package/styles/ui-avatar-group.css +17 -10
- package/styles/ui-avatar.css +23 -16
- package/styles/ui-badge.css +78 -71
- package/styles/ui-breadcrumb-item.css +12 -5
- package/styles/ui-breadcrumbs.css +10 -3
- package/styles/ui-button.css +79 -72
- package/styles/ui-callout.css +29 -22
- package/styles/ui-card.css +25 -18
- package/styles/ui-checkbox.css +45 -37
- package/styles/ui-cluster.css +34 -27
- package/styles/ui-combobox.css +46 -39
- package/styles/ui-container.css +20 -13
- package/styles/ui-context-menu.css +17 -10
- package/styles/ui-cover.css +12 -5
- package/styles/ui-description-item.css +10 -3
- package/styles/ui-description-list.css +20 -13
- package/styles/ui-dialog.css +44 -35
- package/styles/ui-disclosure.css +32 -25
- package/styles/ui-editable.css +15 -8
- package/styles/ui-editor-block-actions.css +1 -0
- package/styles/ui-editor-image-toolbar.css +1 -1
- package/styles/ui-editor-insert-table-grid.css +11 -4
- package/styles/ui-editor-link-card.css +1 -0
- package/styles/ui-editor-mention-menu-item.css +17 -8
- package/styles/ui-editor-mention-menu.css +14 -7
- package/styles/ui-editor-slash-menu-group.css +10 -3
- package/styles/ui-editor-slash-menu-item.css +15 -8
- package/styles/ui-editor-slash-menu.css +15 -8
- package/styles/ui-editor-surface.css +10 -3
- package/styles/ui-editor-table-context-menu.css +17 -10
- package/styles/ui-editor-table-overlay.css +17 -10
- package/styles/ui-editor-table-toolbar.css +22 -15
- package/styles/ui-editor-toolbar.css +18 -11
- package/styles/ui-floating-action-button.css +21 -14
- package/styles/ui-form-field.css +20 -13
- package/styles/ui-grid.css +21 -14
- package/styles/ui-icon-button.css +80 -73
- package/styles/ui-icon.css +14 -7
- package/styles/ui-image.css +25 -18
- package/styles/ui-input-group.css +34 -27
- package/styles/ui-input.css +42 -35
- package/styles/ui-list-item.css +33 -26
- package/styles/ui-list.css +22 -15
- package/styles/ui-listbox.css +22 -14
- package/styles/ui-menu-group.css +10 -3
- package/styles/ui-menu-item.css +29 -22
- package/styles/ui-menu.css +25 -18
- package/styles/ui-meter.css +36 -29
- package/styles/ui-nav-item.css +26 -19
- package/styles/ui-page-header.css +12 -5
- package/styles/ui-popover.css +27 -20
- package/styles/ui-radio-group.css +14 -6
- package/styles/ui-radio.css +24 -17
- package/styles/ui-reel.css +28 -21
- package/styles/ui-scroll-area.css +22 -15
- package/styles/ui-search-result-row.css +28 -21
- package/styles/ui-search-shell.css +24 -17
- package/styles/ui-section.css +14 -7
- package/styles/ui-select.css +33 -26
- package/styles/ui-separator.css +17 -10
- package/styles/ui-sidebar.css +35 -28
- package/styles/ui-spinner.css +32 -23
- package/styles/ui-stack.css +29 -21
- package/styles/ui-status-message.css +14 -7
- package/styles/ui-switch.css +29 -22
- package/styles/ui-switcher.css +27 -20
- package/styles/ui-table.css +14 -7
- package/styles/ui-tabs.css +24 -17
- package/styles/ui-text.css +35 -28
- package/styles/ui-textarea.css +37 -30
- package/styles/ui-toast-region.css +74 -63
- package/styles/ui-toast.css +21 -14
- package/styles/ui-tooltip.css +38 -31
- package/styles/ui-top-bar.css +19 -12
- package/styles/ui-tree-item.css +79 -71
- package/styles/ui-tree.css +18 -11
- 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 +19 -57
- package/vanilla/UiCallout.d.ts +1 -1
- package/vanilla/UiCallout.js +25 -73
- package/vanilla/UiCard.d.ts +1 -1
- package/vanilla/UiCard.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/UiCombobox.d.ts +1 -1
- package/vanilla/UiCombobox.js +60 -166
- 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/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 +4 -10
- package/vanilla/UiDisclosure.d.ts +1 -1
- package/vanilla/UiDisclosure.js +1 -1
- package/vanilla/UiEditable.d.ts +1 -1
- package/vanilla/UiEditable.js +7 -19
- package/vanilla/UiEditorBlockActions.d.ts +16 -0
- package/vanilla/UiEditorBlockActions.js +41 -0
- package/vanilla/UiEditorImageToolbar.d.ts +1 -1
- package/vanilla/UiEditorImageToolbar.js +2 -2
- package/vanilla/UiEditorInsertTableGrid.d.ts +1 -1
- package/vanilla/UiEditorInsertTableGrid.js +1 -1
- package/vanilla/UiEditorLinkCard.d.ts +20 -0
- package/vanilla/UiEditorLinkCard.js +153 -0
- package/vanilla/UiEditorMentionMenu.d.ts +1 -1
- package/vanilla/UiEditorMentionMenu.js +17 -37
- package/vanilla/UiEditorMentionMenuItem.d.ts +1 -1
- package/vanilla/UiEditorMentionMenuItem.js +4 -10
- package/vanilla/UiEditorSlashMenu.d.ts +1 -1
- package/vanilla/UiEditorSlashMenu.js +5 -4
- package/vanilla/UiEditorSlashMenuGroup.d.ts +1 -1
- package/vanilla/UiEditorSlashMenuGroup.js +1 -1
- package/vanilla/UiEditorSlashMenuItem.d.ts +1 -1
- package/vanilla/UiEditorSlashMenuItem.js +7 -19
- package/vanilla/UiEditorSurface.d.ts +1 -1
- package/vanilla/UiEditorSurface.js +1 -1
- package/vanilla/UiEditorTableContextMenu.d.ts +1 -1
- package/vanilla/UiEditorTableContextMenu.js +6 -14
- package/vanilla/UiEditorTableOverlay.d.ts +1 -1
- package/vanilla/UiEditorTableOverlay.js +9 -25
- package/vanilla/UiEditorTableToolbar.d.ts +1 -1
- package/vanilla/UiEditorTableToolbar.js +25 -77
- 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 +15 -47
- package/vanilla/UiIconButton.d.ts +1 -1
- package/vanilla/UiIconButton.js +4 -10
- 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/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 +4 -10
- package/vanilla/UiMenu.d.ts +1 -1
- package/vanilla/UiMenu.js +1 -1
- package/vanilla/UiMenuGroup.d.ts +1 -1
- package/vanilla/UiMenuGroup.js +4 -10
- package/vanilla/UiMenuItem.d.ts +1 -1
- package/vanilla/UiMenuItem.js +4 -10
- package/vanilla/UiMeter.d.ts +1 -1
- package/vanilla/UiMeter.js +13 -33
- package/vanilla/UiNavItem.d.ts +1 -1
- package/vanilla/UiNavItem.js +1 -1
- package/vanilla/UiPageHeader.d.ts +1 -1
- package/vanilla/UiPageHeader.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 +1 -1
- package/vanilla/UiRadioGroup.js +1 -1
- 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/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/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 +7 -19
- package/vanilla/index.js +2 -0
- package/vue/UiActionBar.vue +46 -78
- package/vue/UiAffordanceScope.vue +27 -66
- package/vue/UiAvatar.d.ts +10 -7
- package/vue/UiAvatar.vue +100 -218
- package/vue/UiAvatarGroup.d.ts +10 -7
- package/vue/UiAvatarGroup.vue +78 -160
- package/vue/UiBadge.d.ts +1 -1
- package/vue/UiBadge.vue +483 -520
- package/vue/UiBreadcrumbItem.vue +52 -123
- package/vue/UiBreadcrumbs.vue +27 -70
- package/vue/UiButton.d.ts +2 -2
- package/vue/UiButton.vue +420 -471
- package/vue/UiCallout.vue +131 -175
- package/vue/UiCard.d.ts +1 -1
- package/vue/UiCard.vue +112 -151
- package/vue/UiCheckbox.d.ts +13 -10
- package/vue/UiCheckbox.vue +160 -221
- package/vue/UiCluster.d.ts +1 -1
- package/vue/UiCluster.vue +84 -128
- package/vue/UiCombobox.d.ts +71 -68
- package/vue/UiCombobox.vue +417 -743
- package/vue/UiContainer.vue +43 -87
- package/vue/UiContextMenu.d.ts +6 -6
- package/vue/UiContextMenu.vue +78 -117
- package/vue/UiCover.vue +29 -69
- package/vue/UiDescriptionItem.vue +39 -82
- package/vue/UiDescriptionList.vue +64 -107
- package/vue/UiDialog.d.ts +22 -19
- package/vue/UiDialog.vue +193 -246
- package/vue/UiDisclosure.d.ts +22 -19
- package/vue/UiDisclosure.vue +192 -283
- package/vue/UiEditable.d.ts +5 -5
- package/vue/UiEditable.vue +124 -207
- package/vue/UiEditorBlockActions.d.ts +33 -0
- package/vue/UiEditorBlockActions.js +2 -0
- package/vue/UiEditorBlockActions.vue +125 -0
- package/vue/UiEditorImageToolbar.d.ts +2 -2
- package/vue/UiEditorImageToolbar.vue +45 -256
- package/vue/UiEditorInsertTableGrid.d.ts +2 -2
- package/vue/UiEditorInsertTableGrid.vue +98 -266
- package/vue/UiEditorLinkCard.d.ts +58 -0
- package/vue/UiEditorLinkCard.js +2 -0
- package/vue/UiEditorLinkCard.vue +319 -0
- package/vue/UiEditorMentionMenu.d.ts +15 -12
- package/vue/UiEditorMentionMenu.vue +150 -239
- package/vue/UiEditorMentionMenuItem.vue +66 -110
- package/vue/UiEditorSlashMenu.d.ts +16 -13
- package/vue/UiEditorSlashMenu.vue +172 -253
- package/vue/UiEditorSlashMenuGroup.vue +25 -69
- package/vue/UiEditorSlashMenuItem.vue +67 -115
- package/vue/UiEditorSurface.vue +19 -63
- package/vue/UiEditorTableContextMenu.vue +135 -269
- package/vue/UiEditorTableOverlay.d.ts +2 -2
- package/vue/UiEditorTableOverlay.vue +310 -479
- package/vue/UiEditorTableToolbar.d.ts +2 -2
- package/vue/UiEditorTableToolbar.vue +182 -357
- package/vue/UiEditorToolbar.vue +143 -183
- package/vue/UiFloatingActionButton.vue +70 -114
- package/vue/UiFormField.d.ts +1 -1
- package/vue/UiFormField.vue +76 -117
- package/vue/UiGrid.d.ts +1 -1
- package/vue/UiGrid.vue +65 -103
- package/vue/UiIcon.vue +32 -106
- package/vue/UiIconButton.d.ts +2 -2
- package/vue/UiIconButton.vue +359 -411
- package/vue/UiImage.vue +145 -180
- package/vue/UiInput.vue +158 -190
- package/vue/UiInputGroup.vue +199 -239
- package/vue/UiList.vue +67 -109
- package/vue/UiListItem.vue +154 -201
- package/vue/UiListbox.d.ts +10 -7
- package/vue/UiListbox.vue +86 -260
- package/vue/UiMenu.d.ts +11 -11
- package/vue/UiMenu.vue +118 -152
- package/vue/UiMenuGroup.vue +21 -67
- package/vue/UiMenuItem.d.ts +19 -16
- package/vue/UiMenuItem.vue +169 -262
- package/vue/UiMeter.d.ts +4 -4
- package/vue/UiMeter.vue +166 -680
- package/vue/UiNavItem.vue +140 -213
- package/vue/UiPageHeader.vue +81 -127
- package/vue/UiPopover.d.ts +7 -7
- package/vue/UiPopover.vue +90 -129
- package/vue/UiRadio.d.ts +12 -9
- package/vue/UiRadio.vue +91 -149
- package/vue/UiRadioGroup.d.ts +2 -2
- package/vue/UiRadioGroup.vue +47 -85
- package/vue/UiReel.vue +89 -130
- package/vue/UiScrollArea.d.ts +1 -1
- package/vue/UiScrollArea.vue +78 -119
- package/vue/UiSearchResultRow.vue +96 -149
- package/vue/UiSearchShell.d.ts +2 -2
- package/vue/UiSearchShell.vue +159 -196
- package/vue/UiSection.vue +105 -149
- package/vue/UiSelect.d.ts +1 -1
- package/vue/UiSelect.vue +114 -146
- package/vue/UiSeparator.vue +42 -85
- package/vue/UiSidebar.d.ts +10 -7
- package/vue/UiSidebar.vue +193 -260
- package/vue/UiSpinner.vue +54 -130
- package/vue/UiStack.vue +66 -107
- package/vue/UiStatusMessage.d.ts +1 -1
- package/vue/UiStatusMessage.vue +61 -135
- package/vue/UiSwitch.d.ts +12 -9
- package/vue/UiSwitch.vue +136 -194
- package/vue/UiSwitcher.vue +69 -107
- package/vue/UiTable.vue +121 -156
- package/vue/UiTabs.d.ts +1 -1
- package/vue/UiTabs.vue +139 -267
- package/vue/UiText.d.ts +4 -4
- package/vue/UiText.vue +145 -184
- package/vue/UiTextarea.d.ts +2 -2
- package/vue/UiTextarea.vue +162 -194
- package/vue/UiToast.vue +70 -118
- package/vue/UiToastRegion.vue +157 -276
- package/vue/UiTooltip.d.ts +21 -18
- package/vue/UiTooltip.vue +174 -234
- package/vue/UiTopBar.vue +48 -76
- package/vue/UiTree.vue +46 -79
- package/vue/UiTreeItem.d.ts +18 -15
- package/vue/UiTreeItem.vue +526 -668
- package/vue/chunks/UiActionBar.js +5 -17
- package/vue/chunks/UiAffordanceScope.js +7 -26
- package/vue/chunks/UiAvatar.js +20 -74
- package/vue/chunks/UiAvatarGroup.js +14 -56
- package/vue/chunks/UiBadge.js +10 -28
- package/vue/chunks/UiBreadcrumbItem.js +11 -41
- package/vue/chunks/UiBreadcrumbs.js +7 -25
- package/vue/chunks/UiButton.js +80 -103
- package/vue/chunks/UiCallout.js +9 -27
- package/vue/chunks/UiCard.js +33 -53
- package/vue/chunks/UiCheckbox.js +14 -46
- package/vue/chunks/UiCluster.js +13 -31
- package/vue/chunks/UiCombobox.js +99 -237
- package/vue/chunks/UiContainer.js +9 -27
- package/vue/chunks/UiContextMenu.js +7 -26
- package/vue/chunks/UiCover.js +7 -25
- package/vue/chunks/UiDescriptionItem.js +6 -24
- package/vue/chunks/UiDescriptionList.js +9 -27
- package/vue/chunks/UiDialog.js +18 -47
- package/vue/chunks/UiDisclosure.js +19 -66
- package/vue/chunks/UiEditable.js +18 -60
- package/vue/chunks/UiEditorBlockActions.js +127 -0
- package/vue/chunks/UiEditorImageToolbar.js +40 -127
- package/vue/chunks/UiEditorInsertTableGrid.js +14 -112
- package/vue/chunks/UiEditorLinkCard.js +356 -0
- package/vue/chunks/UiEditorMentionMenu.js +16 -54
- package/vue/chunks/UiEditorMentionMenuItem.js +10 -28
- package/vue/chunks/UiEditorSlashMenu.js +17 -46
- package/vue/chunks/UiEditorSlashMenuGroup.js +7 -25
- package/vue/chunks/UiEditorSlashMenuItem.js +16 -31
- package/vue/chunks/UiEditorSurface.js +7 -25
- package/vue/chunks/UiEditorTableContextMenu.js +25 -102
- package/vue/chunks/UiEditorTableOverlay.js +41 -104
- package/vue/chunks/UiEditorTableToolbar.js +44 -122
- package/vue/chunks/UiEditorToolbar.js +7 -26
- package/vue/chunks/UiFloatingActionButton.js +10 -28
- package/vue/chunks/UiFormField.js +8 -27
- package/vue/chunks/UiGrid.js +10 -28
- package/vue/chunks/UiIcon.js +21 -74
- package/vue/chunks/UiIconButton.js +18 -50
- package/vue/chunks/UiImage.js +14 -33
- package/vue/chunks/UiInput.js +12 -31
- package/vue/chunks/UiInputGroup.js +10 -29
- package/vue/chunks/UiList.js +17 -37
- package/vue/chunks/UiListItem.js +12 -30
- package/vue/chunks/UiListbox.js +22 -124
- package/vue/chunks/UiMenu.js +13 -32
- package/vue/chunks/UiMenuGroup.js +8 -26
- package/vue/chunks/UiMenuItem.js +35 -80
- package/vue/chunks/UiMeter.js +17 -351
- package/vue/chunks/UiNavItem.js +23 -57
- package/vue/chunks/UiPageHeader.js +7 -25
- package/vue/chunks/UiPopover.js +9 -28
- package/vue/chunks/UiRadio.js +11 -43
- package/vue/chunks/UiRadioGroup.js +13 -32
- package/vue/chunks/UiReel.js +10 -28
- package/vue/chunks/UiScrollArea.js +10 -29
- package/vue/chunks/UiSearchResultRow.js +10 -28
- package/vue/chunks/UiSearchShell.js +9 -28
- package/vue/chunks/UiSection.js +9 -27
- package/vue/chunks/UiSelect.js +10 -29
- package/vue/chunks/UiSeparator.js +10 -28
- package/vue/chunks/UiSidebar.js +15 -47
- package/vue/chunks/UiSpinner.js +8 -44
- package/vue/chunks/UiStack.js +12 -30
- package/vue/chunks/UiStatusMessage.js +10 -42
- package/vue/chunks/UiSwitch.js +11 -43
- package/vue/chunks/UiSwitcher.js +9 -28
- package/vue/chunks/UiTable.js +7 -26
- package/vue/chunks/UiTabs.js +15 -91
- package/vue/chunks/UiText.js +148 -168
- package/vue/chunks/UiTextarea.js +16 -35
- package/vue/chunks/UiToast.js +13 -37
- package/vue/chunks/UiToastRegion.js +16 -88
- package/vue/chunks/UiTooltip.js +14 -46
- package/vue/chunks/UiTopBar.js +5 -17
- package/vue/chunks/UiTree.js +13 -32
- package/vue/chunks/UiTreeItem.js +34 -90
- package/vue/chunks/_plugin-vue_export-helper.js +904 -1
- package/vue/chunks/control.js +3 -0
- package/vue/chunks/props.js +1 -1
- package/vue/components.css +7689 -7617
- package/vue/editor/index.js +30 -95
- package/vue/editor/primitives.d.ts +8 -2
- package/vue/host.ts +999 -14
- package/vue/index.d.ts +2 -0
- package/vue/index.js +5 -3
- package/vue/chunks/host.js +0 -443
package/styles/ui-badge.css
CHANGED
|
@@ -1,68 +1,75 @@
|
|
|
1
|
-
/* Generated by HTML Next 1.0.0-alpha.
|
|
2
|
-
@
|
|
1
|
+
/* Generated by HTML Next 1.0.0-alpha.51. Do not edit. */
|
|
2
|
+
@supports (-moz-appearance: none) {
|
|
3
|
+
:where([data-component], [data-slotted]) { --html-next-scope-owner: boundary; }
|
|
4
|
+
:where([data-slotted]:not([data-component])) { --html-next-scope-owner: projected !important; }
|
|
5
|
+
}
|
|
6
|
+
@supports (-moz-appearance: none) {
|
|
7
|
+
[data-component~="ui-badge"] { --html-next-scope-owner: "ui-badge" !important; }
|
|
8
|
+
}
|
|
9
|
+
@scope ([data-component~="ui-badge"]) to ([data-component], [data-slotted]) {
|
|
10
|
+
/* This component's hooks style the element they are set on, and never a nested one. */
|
|
11
|
+
@property --ui-badge-border {
|
|
3
12
|
syntax: "*";
|
|
4
13
|
inherits: false;
|
|
5
14
|
}
|
|
6
|
-
@property --ui-badge-square-size {
|
|
15
|
+
@property --ui-badge-square-size {
|
|
7
16
|
syntax: "*";
|
|
8
17
|
inherits: false;
|
|
9
18
|
}
|
|
10
|
-
@property --ui-badge-circle-size {
|
|
19
|
+
@property --ui-badge-circle-size {
|
|
11
20
|
syntax: "*";
|
|
12
21
|
inherits: false;
|
|
13
22
|
}
|
|
14
|
-
@property --ui-badge-circle-opacity {
|
|
23
|
+
@property --ui-badge-circle-opacity {
|
|
15
24
|
syntax: "*";
|
|
16
25
|
inherits: false;
|
|
17
26
|
}
|
|
18
|
-
@property --ui-badge-dot-size {
|
|
27
|
+
@property --ui-badge-dot-size {
|
|
19
28
|
syntax: "*";
|
|
20
29
|
inherits: false;
|
|
21
30
|
}
|
|
22
|
-
@property --ui-badge-color {
|
|
31
|
+
@property --ui-badge-color {
|
|
23
32
|
syntax: "*";
|
|
24
33
|
inherits: false;
|
|
25
34
|
}
|
|
26
|
-
@property --ui-badge-font-size {
|
|
35
|
+
@property --ui-badge-font-size {
|
|
27
36
|
syntax: "*";
|
|
28
37
|
inherits: false;
|
|
29
38
|
}
|
|
30
|
-
@property --ui-badge-font-weight {
|
|
39
|
+
@property --ui-badge-font-weight {
|
|
31
40
|
syntax: "*";
|
|
32
41
|
inherits: false;
|
|
33
42
|
}
|
|
34
|
-
@property --ui-badge-line-height {
|
|
43
|
+
@property --ui-badge-line-height {
|
|
35
44
|
syntax: "*";
|
|
36
45
|
inherits: false;
|
|
37
46
|
}
|
|
38
|
-
@property --ui-badge-min-block-size {
|
|
47
|
+
@property --ui-badge-min-block-size {
|
|
39
48
|
syntax: "*";
|
|
40
49
|
inherits: false;
|
|
41
50
|
}
|
|
42
|
-
@property --ui-badge-padding-block {
|
|
51
|
+
@property --ui-badge-padding-block {
|
|
43
52
|
syntax: "*";
|
|
44
53
|
inherits: false;
|
|
45
54
|
}
|
|
46
|
-
@property --ui-badge-padding-inline {
|
|
55
|
+
@property --ui-badge-padding-inline {
|
|
47
56
|
syntax: "*";
|
|
48
57
|
inherits: false;
|
|
49
58
|
}
|
|
50
|
-
@property --ui-badge-point {
|
|
59
|
+
@property --ui-badge-point {
|
|
51
60
|
syntax: "*";
|
|
52
61
|
inherits: false;
|
|
53
62
|
}
|
|
54
|
-
@property --ui-badge-surface {
|
|
63
|
+
@property --ui-badge-surface {
|
|
55
64
|
syntax: "*";
|
|
56
65
|
inherits: false;
|
|
57
66
|
}
|
|
58
|
-
@property --ui-badge-text {
|
|
67
|
+
@property --ui-badge-text {
|
|
59
68
|
syntax: "*";
|
|
60
69
|
inherits: false;
|
|
61
70
|
}
|
|
62
|
-
@scope ([data-component~="ui-badge"]) to ([data-component], [data-slotted]) {
|
|
63
|
-
/* This component's hooks style the element they are set on, and never a nested one. */
|
|
64
71
|
|
|
65
|
-
:scope {
|
|
72
|
+
:scope:where([data-component~="ui-badge"]) {
|
|
66
73
|
--_badge-surface: color-mix(in srgb, var(--ui-surface-subtle) 80%, var(--ui-surface-default));
|
|
67
74
|
--_badge-text: var(--ui-text-secondary);
|
|
68
75
|
/* Sit between the soft fill and its stronger theme ink. */
|
|
@@ -131,15 +138,15 @@
|
|
|
131
138
|
/* Center the capital/baseline text box, while clipping only inline overflow for ellipsis.
|
|
132
139
|
Vertical ink remains visible so trimming never cuts off ascenders or descenders. */
|
|
133
140
|
@supports (text-box-trim: trim-both) {
|
|
134
|
-
:scope {
|
|
141
|
+
:scope:where([data-component~="ui-badge"]) {
|
|
135
142
|
display: inline-block;
|
|
136
143
|
min-block-size: var(--ui-badge-min-block-size, 1.5rem);
|
|
137
144
|
text-align: center;
|
|
138
145
|
align-content: center;
|
|
139
146
|
text-box-trim: none;
|
|
140
147
|
}
|
|
141
|
-
:scope:has(.icon:not(:empty)),
|
|
142
|
-
:scope:has(.label svg) {
|
|
148
|
+
:scope:where([data-component~="ui-badge"]):has(.icon:not(:empty)),
|
|
149
|
+
:scope:where([data-component~="ui-badge"]):has(.label svg) {
|
|
143
150
|
display: inline-flex;
|
|
144
151
|
text-box-trim: none;
|
|
145
152
|
}
|
|
@@ -151,7 +158,7 @@
|
|
|
151
158
|
}
|
|
152
159
|
}
|
|
153
160
|
|
|
154
|
-
:scope[data-ui-badge-state~="size=xs"] {
|
|
161
|
+
:scope:where([data-component~="ui-badge"])[data-ui-badge-state~="size=xs"] {
|
|
155
162
|
box-sizing: border-box;
|
|
156
163
|
min-inline-size: 1rem;
|
|
157
164
|
min-block-size: var(--ui-badge-min-block-size, 1rem);
|
|
@@ -162,66 +169,66 @@
|
|
|
162
169
|
line-height: var(--ui-badge-line-height, 1);
|
|
163
170
|
}
|
|
164
171
|
|
|
165
|
-
:scope[data-ui-badge-state~="size=sm"] {
|
|
172
|
+
:scope:where([data-component~="ui-badge"])[data-ui-badge-state~="size=sm"] {
|
|
166
173
|
font-size: var(--ui-badge-font-size, var(--ui-font-size-2xs));
|
|
167
174
|
line-height: var(--ui-badge-line-height, 1);
|
|
168
175
|
}
|
|
169
176
|
|
|
170
|
-
:scope[data-ui-badge-state~="tone=accent"] {
|
|
177
|
+
:scope:where([data-component~="ui-badge"])[data-ui-badge-state~="tone=accent"] {
|
|
171
178
|
--_badge-surface: var(--ui-accent-strong-surface, var(--ui-accent-solid));
|
|
172
179
|
--_badge-border: var(--ui-accent-strong-surface, var(--ui-accent-solid));
|
|
173
180
|
--_badge-text: var(--ui-accent-on-strong, var(--ui-text-on-accent));
|
|
174
181
|
}
|
|
175
182
|
|
|
176
|
-
:scope[data-ui-badge-state~="tone=danger"] {
|
|
183
|
+
:scope:where([data-component~="ui-badge"])[data-ui-badge-state~="tone=danger"] {
|
|
177
184
|
--_badge-surface: var(--ui-danger-strong-surface, var(--ui-danger-solid));
|
|
178
185
|
--_badge-border: var(--ui-danger-strong-surface, var(--ui-danger-solid));
|
|
179
186
|
--_badge-text: var(--ui-danger-on-strong, var(--ui-text-on-accent));
|
|
180
187
|
}
|
|
181
188
|
|
|
182
|
-
:scope[data-ui-badge-state~="tone=success"] {
|
|
189
|
+
:scope:where([data-component~="ui-badge"])[data-ui-badge-state~="tone=success"] {
|
|
183
190
|
--_badge-surface: var(--ui-success-strong-surface, var(--ui-success-solid));
|
|
184
191
|
--_badge-border: var(--ui-success-strong-surface, var(--ui-success-solid));
|
|
185
192
|
--_badge-text: var(--ui-success-on-strong, var(--ui-text-on-accent));
|
|
186
193
|
}
|
|
187
194
|
|
|
188
|
-
:scope[data-ui-badge-state~="tone=warning"] {
|
|
195
|
+
:scope:where([data-component~="ui-badge"])[data-ui-badge-state~="tone=warning"] {
|
|
189
196
|
--_badge-surface: var(--ui-warning-strong-surface, var(--ui-warning-solid));
|
|
190
197
|
--_badge-border: var(--ui-warning-strong-surface, var(--ui-warning-solid));
|
|
191
198
|
--_badge-text: var(--ui-warning-on-strong, var(--ui-text-on-accent));
|
|
192
199
|
}
|
|
193
200
|
|
|
194
|
-
:scope[data-ui-badge-state~="tone=info"] {
|
|
201
|
+
:scope:where([data-component~="ui-badge"])[data-ui-badge-state~="tone=info"] {
|
|
195
202
|
--_badge-surface: var(--ui-info-strong-surface, var(--ui-info-solid));
|
|
196
203
|
--_badge-border: var(--ui-info-strong-surface, var(--ui-info-solid));
|
|
197
204
|
--_badge-text: var(--ui-info-on-strong, var(--ui-text-on-accent));
|
|
198
205
|
}
|
|
199
206
|
|
|
200
|
-
:scope[data-ui-badge-state~="variant=subtle"][data-ui-badge-state~="tone=accent"] {
|
|
207
|
+
:scope:where([data-component~="ui-badge"])[data-ui-badge-state~="variant=subtle"][data-ui-badge-state~="tone=accent"] {
|
|
201
208
|
--_badge-surface: color-mix(in srgb, var(--ui-accent-solid) 19%, var(--ui-surface-default));
|
|
202
209
|
--_badge-border: color-mix(in srgb, var(--ui-accent-solid) 25%, var(--ui-surface-default));
|
|
203
210
|
--_badge-text: var(--ui-accent-subtle-text, var(--ui-accent-solid));
|
|
204
211
|
}
|
|
205
212
|
|
|
206
|
-
:scope[data-ui-badge-state~="variant=subtle"][data-ui-badge-state~="tone=danger"] {
|
|
213
|
+
:scope:where([data-component~="ui-badge"])[data-ui-badge-state~="variant=subtle"][data-ui-badge-state~="tone=danger"] {
|
|
207
214
|
--_badge-surface: color-mix(in srgb, var(--ui-danger-solid) 19%, var(--ui-surface-default));
|
|
208
215
|
--_badge-border: color-mix(in srgb, var(--ui-danger-solid) 25%, var(--ui-surface-default));
|
|
209
216
|
--_badge-text: var(--ui-danger-subtle-text, var(--ui-danger-solid));
|
|
210
217
|
}
|
|
211
218
|
|
|
212
|
-
:scope[data-ui-badge-state~="variant=subtle"][data-ui-badge-state~="tone=success"] {
|
|
219
|
+
:scope:where([data-component~="ui-badge"])[data-ui-badge-state~="variant=subtle"][data-ui-badge-state~="tone=success"] {
|
|
213
220
|
--_badge-surface: color-mix(in srgb, var(--ui-success-solid) 19%, var(--ui-surface-default));
|
|
214
221
|
--_badge-border: color-mix(in srgb, var(--ui-success-solid) 25%, var(--ui-surface-default));
|
|
215
222
|
--_badge-text: var(--ui-success-subtle-text, var(--ui-success-solid));
|
|
216
223
|
}
|
|
217
224
|
|
|
218
|
-
:scope[data-ui-badge-state~="variant=subtle"][data-ui-badge-state~="tone=warning"] {
|
|
225
|
+
:scope:where([data-component~="ui-badge"])[data-ui-badge-state~="variant=subtle"][data-ui-badge-state~="tone=warning"] {
|
|
219
226
|
--_badge-surface: color-mix(in srgb, var(--ui-warning-solid) 19%, var(--ui-surface-default));
|
|
220
227
|
--_badge-border: color-mix(in srgb, var(--ui-warning-solid) 25%, var(--ui-surface-default));
|
|
221
228
|
--_badge-text: var(--ui-warning-subtle-text, var(--ui-warning-solid));
|
|
222
229
|
}
|
|
223
230
|
|
|
224
|
-
:scope[data-ui-badge-state~="variant=subtle"][data-ui-badge-state~="tone=info"] {
|
|
231
|
+
:scope:where([data-component~="ui-badge"])[data-ui-badge-state~="variant=subtle"][data-ui-badge-state~="tone=info"] {
|
|
225
232
|
--_badge-surface: color-mix(in srgb, var(--ui-info-solid) 19%, var(--ui-surface-default));
|
|
226
233
|
--_badge-border: color-mix(in srgb, var(--ui-info-solid) 25%, var(--ui-surface-default));
|
|
227
234
|
--_badge-text: var(--ui-info-subtle-text, var(--ui-info-solid));
|
|
@@ -229,7 +236,7 @@
|
|
|
229
236
|
|
|
230
237
|
/* A solid colour fills with the ink. Its text is the page surface, mixed at 0% only so that it too is
|
|
231
238
|
invalid while the hook is unset. */
|
|
232
|
-
:scope[data-ui-badge-state~="variant=solid"] {
|
|
239
|
+
:scope:where([data-component~="ui-badge"])[data-ui-badge-state~="variant=solid"] {
|
|
233
240
|
--_badge-color-surface: var(--_badge-color-ink);
|
|
234
241
|
--_badge-color-border: var(--_badge-color-ink);
|
|
235
242
|
--_badge-color-text: color-mix(in oklab, var(--_ui-badge-color) 0%, var(--ui-surface-default));
|
|
@@ -237,7 +244,7 @@
|
|
|
237
244
|
|
|
238
245
|
/* A translucent inverse surface picks up its filled control's tone. Deepen the tone ink
|
|
239
246
|
toward the theme text to retain contrast against that composed surface. */
|
|
240
|
-
:scope[data-ui-badge-state~="variant=inverse"] {
|
|
247
|
+
:scope:where([data-component~="ui-badge"])[data-ui-badge-state~="variant=inverse"] {
|
|
241
248
|
--_badge-color-surface: color-mix(in srgb, color-mix(in oklab, var(--_ui-badge-color) 0%, var(--ui-surface-default)) 88%, transparent);
|
|
242
249
|
--_badge-color-border: var(--_badge-color-surface);
|
|
243
250
|
--_badge-color-text: color-mix(in srgb, var(--_badge-color-ink) 85%, var(--ui-text-primary));
|
|
@@ -250,7 +257,7 @@
|
|
|
250
257
|
|
|
251
258
|
/* A circular count has a tone-tinted surface, a separate lighter rim and readable tone ink.
|
|
252
259
|
Dark controls retain a shaded surface and theme ink with a quieter rim. */
|
|
253
|
-
:scope[data-ui-badge-state~="variant=inverse"][data-ui-badge-state~="shape=circle"] {
|
|
260
|
+
:scope:where([data-component~="ui-badge"])[data-ui-badge-state~="variant=inverse"][data-ui-badge-state~="shape=circle"] {
|
|
254
261
|
--_badge-color-surface: light-dark(
|
|
255
262
|
color-mix(in srgb, color-mix(in oklab, var(--_ui-badge-color) 0%, var(--ui-surface-default)) var(--ui-badge-circle-opacity, 66%), transparent),
|
|
256
263
|
color-mix(in srgb, color-mix(in oklab, var(--_ui-badge-color) 0%, var(--ui-surface-default)) var(--ui-badge-circle-opacity, 56%), transparent)
|
|
@@ -281,7 +288,7 @@
|
|
|
281
288
|
|
|
282
289
|
/* A count can keep its containing control's contrasting ink instead of reversing it.
|
|
283
290
|
The faint fill preserves text contrast; a quiet boundary separates the count from its control. */
|
|
284
|
-
:scope[data-ui-badge-state~="variant=overlay"] {
|
|
291
|
+
:scope:where([data-component~="ui-badge"])[data-ui-badge-state~="variant=overlay"] {
|
|
285
292
|
--_badge-outline-surface: var(--ui-badge-surface, color-mix(in srgb, currentColor 6%, transparent));
|
|
286
293
|
color: var(--ui-badge-text, inherit);
|
|
287
294
|
border-color: var(--ui-badge-border, color-mix(in srgb, currentColor 20%, transparent));
|
|
@@ -290,11 +297,11 @@
|
|
|
290
297
|
|
|
291
298
|
/* Neutral reverses a subtle surface/ink pair rather than a strong tone. Keep its original
|
|
292
299
|
surface ink: moving it toward dark-theme primary text would reduce overlay contrast. */
|
|
293
|
-
:scope[data-ui-badge-state~="variant=inverse"][data-ui-badge-state~="tone=neutral"] {
|
|
300
|
+
:scope:where([data-component~="ui-badge"])[data-ui-badge-state~="variant=inverse"][data-ui-badge-state~="tone=neutral"] {
|
|
294
301
|
color: var(--ui-badge-text, var(--_badge-color-text, var(--_badge-surface)));
|
|
295
302
|
}
|
|
296
303
|
|
|
297
|
-
:scope[data-ui-badge-state~="variant=outline"] {
|
|
304
|
+
:scope:where([data-component~="ui-badge"])[data-ui-badge-state~="variant=outline"] {
|
|
298
305
|
--_badge-surface: var(--ui-surface-default);
|
|
299
306
|
--_badge-border: var(--ui-border-strong);
|
|
300
307
|
--_badge-text: var(--ui-text-secondary);
|
|
@@ -303,33 +310,33 @@
|
|
|
303
310
|
--_badge-color-border: var(--_badge-color-ink);
|
|
304
311
|
}
|
|
305
312
|
|
|
306
|
-
:scope[data-ui-badge-state~="variant=outline"][data-ui-badge-state~="tone=accent"] {
|
|
313
|
+
:scope:where([data-component~="ui-badge"])[data-ui-badge-state~="variant=outline"][data-ui-badge-state~="tone=accent"] {
|
|
307
314
|
--_badge-border: var(--ui-accent-solid);
|
|
308
315
|
--_badge-text: var(--ui-accent-subtle-text, var(--ui-accent-solid));
|
|
309
316
|
}
|
|
310
317
|
|
|
311
|
-
:scope[data-ui-badge-state~="variant=outline"][data-ui-badge-state~="tone=danger"] {
|
|
318
|
+
:scope:where([data-component~="ui-badge"])[data-ui-badge-state~="variant=outline"][data-ui-badge-state~="tone=danger"] {
|
|
312
319
|
--_badge-border: var(--ui-danger-solid);
|
|
313
320
|
--_badge-text: var(--ui-danger-subtle-text, var(--ui-danger-solid));
|
|
314
321
|
}
|
|
315
322
|
|
|
316
|
-
:scope[data-ui-badge-state~="variant=outline"][data-ui-badge-state~="tone=success"] {
|
|
323
|
+
:scope:where([data-component~="ui-badge"])[data-ui-badge-state~="variant=outline"][data-ui-badge-state~="tone=success"] {
|
|
317
324
|
--_badge-border: var(--ui-success-solid);
|
|
318
325
|
--_badge-text: var(--ui-success-subtle-text, var(--ui-success-solid));
|
|
319
326
|
}
|
|
320
327
|
|
|
321
|
-
:scope[data-ui-badge-state~="variant=outline"][data-ui-badge-state~="tone=warning"] {
|
|
328
|
+
:scope:where([data-component~="ui-badge"])[data-ui-badge-state~="variant=outline"][data-ui-badge-state~="tone=warning"] {
|
|
322
329
|
--_badge-border: var(--ui-warning-solid);
|
|
323
330
|
--_badge-text: var(--ui-warning-subtle-text, var(--ui-warning-solid));
|
|
324
331
|
}
|
|
325
332
|
|
|
326
|
-
:scope[data-ui-badge-state~="variant=outline"][data-ui-badge-state~="tone=info"] {
|
|
333
|
+
:scope:where([data-component~="ui-badge"])[data-ui-badge-state~="variant=outline"][data-ui-badge-state~="tone=info"] {
|
|
327
334
|
--_badge-border: var(--ui-info-solid);
|
|
328
335
|
--_badge-text: var(--ui-info-subtle-text, var(--ui-info-solid));
|
|
329
336
|
}
|
|
330
337
|
|
|
331
338
|
/* An icon mark keeps the existing tone recipe and follows the global spacing and radius. */
|
|
332
|
-
:scope[data-ui-badge-state~="shape=square"] {
|
|
339
|
+
:scope:where([data-component~="ui-badge"])[data-ui-badge-state~="shape=square"] {
|
|
333
340
|
--_badge-square-size: var(--ui-badge-square-size, calc(var(--ui-space-4) * 2));
|
|
334
341
|
display: inline-flex;
|
|
335
342
|
box-sizing: border-box;
|
|
@@ -343,26 +350,26 @@
|
|
|
343
350
|
text-box-trim: none;
|
|
344
351
|
}
|
|
345
352
|
|
|
346
|
-
:scope[data-ui-badge-state~="shape=square"][data-ui-badge-state~="size=xs"] {
|
|
353
|
+
:scope:where([data-component~="ui-badge"])[data-ui-badge-state~="shape=square"][data-ui-badge-state~="size=xs"] {
|
|
347
354
|
--_badge-square-size: var(--ui-badge-square-size, calc(var(--ui-space-3) * 2));
|
|
348
355
|
}
|
|
349
356
|
|
|
350
|
-
:scope[data-ui-badge-state~="shape=square"][data-ui-badge-state~="size=lg"] {
|
|
357
|
+
:scope:where([data-component~="ui-badge"])[data-ui-badge-state~="shape=square"][data-ui-badge-state~="size=lg"] {
|
|
351
358
|
--_badge-square-size: var(--ui-badge-square-size, calc(var(--ui-space-4) * 2 + var(--ui-space-2)));
|
|
352
359
|
}
|
|
353
360
|
|
|
354
|
-
:scope[data-ui-badge-state~="shape=square"] .label {
|
|
361
|
+
:scope:where([data-component~="ui-badge"])[data-ui-badge-state~="shape=square"] .label {
|
|
355
362
|
display: inline-flex;
|
|
356
363
|
align-items: center;
|
|
357
364
|
justify-content: center;
|
|
358
365
|
}
|
|
359
366
|
|
|
360
|
-
:scope[data-ui-badge-state~="shape=square"] .label:empty {
|
|
367
|
+
:scope:where([data-component~="ui-badge"])[data-ui-badge-state~="shape=square"] .label:empty {
|
|
361
368
|
display: none;
|
|
362
369
|
}
|
|
363
370
|
|
|
364
371
|
/* A visible glyph needs fixed geometry, unlike a content-sized pill or a hidden-label dot. */
|
|
365
|
-
:scope[data-ui-badge-state~="shape=circle"] {
|
|
372
|
+
:scope:where([data-component~="ui-badge"])[data-ui-badge-state~="shape=circle"] {
|
|
366
373
|
--_badge-circle-size: var(--ui-badge-circle-size, calc(var(--ui-space-3) * 2));
|
|
367
374
|
display: inline-flex;
|
|
368
375
|
flex: none;
|
|
@@ -375,19 +382,19 @@
|
|
|
375
382
|
text-box-trim: none;
|
|
376
383
|
}
|
|
377
384
|
|
|
378
|
-
:scope[data-ui-badge-state~="shape=circle"][data-ui-badge-state~="size=sm"][data-ui-badge-state~="variant=overlay"] {
|
|
385
|
+
:scope:where([data-component~="ui-badge"])[data-ui-badge-state~="shape=circle"][data-ui-badge-state~="size=sm"][data-ui-badge-state~="variant=overlay"] {
|
|
379
386
|
--_badge-circle-size: var(--ui-badge-circle-size, calc(var(--ui-space-4) + var(--ui-space-1)));
|
|
380
387
|
}
|
|
381
388
|
|
|
382
|
-
:scope[data-ui-badge-state~="shape=circle"][data-ui-badge-state~="size=xs"] {
|
|
389
|
+
:scope:where([data-component~="ui-badge"])[data-ui-badge-state~="shape=circle"][data-ui-badge-state~="size=xs"] {
|
|
383
390
|
--_badge-circle-size: var(--ui-badge-circle-size, var(--ui-space-4));
|
|
384
391
|
}
|
|
385
392
|
|
|
386
|
-
:scope[data-ui-badge-state~="shape=circle"][data-ui-badge-state~="size=lg"] {
|
|
393
|
+
:scope:where([data-component~="ui-badge"])[data-ui-badge-state~="shape=circle"][data-ui-badge-state~="size=lg"] {
|
|
387
394
|
--_badge-circle-size: var(--ui-badge-circle-size, calc(var(--ui-space-4) * 2));
|
|
388
395
|
}
|
|
389
396
|
|
|
390
|
-
:scope[data-ui-badge-state~="shape=circle"] .label {
|
|
397
|
+
:scope:where([data-component~="ui-badge"])[data-ui-badge-state~="shape=circle"] .label {
|
|
391
398
|
display: inline-flex;
|
|
392
399
|
align-items: center;
|
|
393
400
|
justify-content: center;
|
|
@@ -395,15 +402,15 @@
|
|
|
395
402
|
text-box-trim: none;
|
|
396
403
|
}
|
|
397
404
|
|
|
398
|
-
:scope[data-ui-badge-state~="shape=circle"] .label:empty {
|
|
405
|
+
:scope:where([data-component~="ui-badge"])[data-ui-badge-state~="shape=circle"] .label:empty {
|
|
399
406
|
display: none;
|
|
400
407
|
}
|
|
401
408
|
|
|
402
409
|
/* Center capital and numeral ink, rather than the font's ascent/descent line box.
|
|
403
410
|
Icon labels retain flex geometry; untrimmed browsers keep that fallback too. */
|
|
404
411
|
@supports (text-box-trim: trim-both) {
|
|
405
|
-
:scope[data-ui-badge-state~="shape=circle"] .label:not(:has(svg)),
|
|
406
|
-
:scope[data-ui-badge-state~="shape=square"] .label:not(:has(svg)) {
|
|
412
|
+
:scope:where([data-component~="ui-badge"])[data-ui-badge-state~="shape=circle"] .label:not(:has(svg)),
|
|
413
|
+
:scope:where([data-component~="ui-badge"])[data-ui-badge-state~="shape=square"] .label:not(:has(svg)) {
|
|
407
414
|
display: block;
|
|
408
415
|
text-box-trim: trim-both;
|
|
409
416
|
text-box-edge: cap alphabetic;
|
|
@@ -412,7 +419,7 @@
|
|
|
412
419
|
}
|
|
413
420
|
|
|
414
421
|
/* A dot uses the badge's tone recipe; only its silhouette and visible label change. */
|
|
415
|
-
:scope[data-ui-badge-state~="shape=dot"] {
|
|
422
|
+
:scope:where([data-component~="ui-badge"])[data-ui-badge-state~="shape=dot"] {
|
|
416
423
|
position: relative;
|
|
417
424
|
box-sizing: border-box;
|
|
418
425
|
flex: none;
|
|
@@ -425,7 +432,7 @@
|
|
|
425
432
|
text-box-trim: none;
|
|
426
433
|
}
|
|
427
434
|
|
|
428
|
-
:scope[data-ui-badge-state~="shape=dot"] .label {
|
|
435
|
+
:scope:where([data-component~="ui-badge"])[data-ui-badge-state~="shape=dot"] .label {
|
|
429
436
|
position: absolute;
|
|
430
437
|
inline-size: 1px;
|
|
431
438
|
block-size: 1px;
|
|
@@ -436,7 +443,7 @@
|
|
|
436
443
|
|
|
437
444
|
/* The clipped point needs an inset surface over an outer border-colour shape: a native border
|
|
438
445
|
has no diagonal edge to follow. Keep this edge for every tag variant. */
|
|
439
|
-
:scope[data-ui-badge-state~="shape=tag"] {
|
|
446
|
+
:scope:where([data-component~="ui-badge"])[data-ui-badge-state~="shape=tag"] {
|
|
440
447
|
--_badge-point: var(--ui-badge-point, var(--ui-space-2));
|
|
441
448
|
|
|
442
449
|
position: relative;
|
|
@@ -448,7 +455,7 @@
|
|
|
448
455
|
clip-path: polygon(0 0, calc(100% - var(--_badge-point)) 0, 100% 50%, calc(100% - var(--_badge-point)) 100%, 0 100%);
|
|
449
456
|
}
|
|
450
457
|
|
|
451
|
-
:scope[data-ui-badge-state~="shape=tag"]::before {
|
|
458
|
+
:scope:where([data-component~="ui-badge"])[data-ui-badge-state~="shape=tag"]::before {
|
|
452
459
|
content: "";
|
|
453
460
|
position: absolute;
|
|
454
461
|
inset: 0;
|
|
@@ -458,40 +465,40 @@
|
|
|
458
465
|
pointer-events: none;
|
|
459
466
|
}
|
|
460
467
|
|
|
461
|
-
:scope[data-ui-badge-state~="shape=tag"][data-ui-badge-state~="variant=inverse"] {
|
|
468
|
+
:scope:where([data-component~="ui-badge"])[data-ui-badge-state~="shape=tag"][data-ui-badge-state~="variant=inverse"] {
|
|
462
469
|
background: var(--ui-badge-border, var(--_badge-color-border, var(--_badge-text)));
|
|
463
470
|
}
|
|
464
471
|
|
|
465
|
-
:scope[data-ui-badge-state~="shape=tag"]:dir(rtl) {
|
|
472
|
+
:scope:where([data-component~="ui-badge"])[data-ui-badge-state~="shape=tag"]:dir(rtl) {
|
|
466
473
|
padding-inline-end: var(--ui-badge-padding-inline, var(--ui-space-2));
|
|
467
474
|
padding-inline-start: calc(var(--ui-badge-padding-inline, var(--ui-space-2)) + var(--_badge-point));
|
|
468
475
|
clip-path: polygon(var(--_badge-point) 0, 100% 0, 100% 100%, var(--_badge-point) 100%, 0 50%);
|
|
469
476
|
}
|
|
470
477
|
|
|
471
|
-
:scope[data-ui-badge-state~="shape=tag"]:dir(rtl)::before {
|
|
478
|
+
:scope:where([data-component~="ui-badge"])[data-ui-badge-state~="shape=tag"]:dir(rtl)::before {
|
|
472
479
|
clip-path: polygon(var(--_badge-point) 0, 100% 0, 100% 100%, var(--_badge-point) 100%, 0 50%);
|
|
473
480
|
}
|
|
474
481
|
|
|
475
482
|
@media (forced-colors: active) {
|
|
476
|
-
:scope[data-ui-badge-state~="shape=dot"] {
|
|
483
|
+
:scope:where([data-component~="ui-badge"])[data-ui-badge-state~="shape=dot"] {
|
|
477
484
|
forced-color-adjust: none;
|
|
478
485
|
border-color: CanvasText;
|
|
479
486
|
background: CanvasText;
|
|
480
487
|
}
|
|
481
488
|
|
|
482
|
-
:scope[data-ui-badge-state~="shape=tag"] {
|
|
489
|
+
:scope:where([data-component~="ui-badge"])[data-ui-badge-state~="shape=tag"] {
|
|
483
490
|
forced-color-adjust: none;
|
|
484
491
|
background: CanvasText;
|
|
485
492
|
color: CanvasText;
|
|
486
493
|
}
|
|
487
494
|
|
|
488
|
-
:scope[data-ui-badge-state~="shape=tag"]::before {
|
|
495
|
+
:scope:where([data-component~="ui-badge"])[data-ui-badge-state~="shape=tag"]::before {
|
|
489
496
|
background: Canvas;
|
|
490
497
|
}
|
|
491
498
|
}
|
|
492
499
|
|
|
493
500
|
/* A component that sets its display still honours the hidden attribute on its root. */
|
|
494
|
-
:scope[hidden] {
|
|
501
|
+
:scope:where([data-component~="ui-badge"])[hidden] {
|
|
495
502
|
display: none;
|
|
496
503
|
}
|
|
497
504
|
}
|
|
@@ -540,13 +547,13 @@
|
|
|
540
547
|
|
|
541
548
|
/* An icon mark keeps the existing tone recipe and follows the global spacing and radius. */
|
|
542
549
|
|
|
543
|
-
:scope[data-ui-badge-state~="shape=square"] .label :where([data-slotted], [data-slotted] *):is(svg) {
|
|
550
|
+
:scope:where([data-component~="ui-badge"])[data-ui-badge-state~="shape=square"] .label :where([data-slotted], [data-slotted] *):is(svg) {
|
|
544
551
|
margin-inline-end: 0;
|
|
545
552
|
}
|
|
546
553
|
|
|
547
554
|
/* A visible glyph needs fixed geometry, unlike a content-sized pill or a hidden-label dot. */
|
|
548
555
|
|
|
549
|
-
:scope[data-ui-badge-state~="shape=circle"] .label :where([data-slotted], [data-slotted] *):is(svg) {
|
|
556
|
+
:scope:where([data-component~="ui-badge"])[data-ui-badge-state~="shape=circle"] .label :where([data-slotted], [data-slotted] *):is(svg) {
|
|
550
557
|
margin-inline-end: 0;
|
|
551
558
|
}
|
|
552
559
|
|
|
@@ -1,8 +1,15 @@
|
|
|
1
|
-
/* Generated by HTML Next 1.0.0-alpha.
|
|
1
|
+
/* Generated by HTML Next 1.0.0-alpha.51. Do not edit. */
|
|
2
|
+
@supports (-moz-appearance: none) {
|
|
3
|
+
:where([data-component], [data-slotted]) { --html-next-scope-owner: boundary; }
|
|
4
|
+
:where([data-slotted]:not([data-component])) { --html-next-scope-owner: projected !important; }
|
|
5
|
+
}
|
|
6
|
+
@supports (-moz-appearance: none) {
|
|
7
|
+
[data-component~="ui-breadcrumb-item"] { --html-next-scope-owner: "ui-breadcrumb-item" !important; }
|
|
8
|
+
}
|
|
2
9
|
@scope ([data-component~="ui-breadcrumb-item"]) to ([data-component], [data-slotted]) {
|
|
3
10
|
/* One step in a ui-breadcrumbs trail: a link up to that place, or the current view. A chevron leads
|
|
4
11
|
every step but the first. An icon slotted before the name sits with it. */
|
|
5
|
-
:scope {
|
|
12
|
+
:scope:where([data-component~="ui-breadcrumb-item"]) {
|
|
6
13
|
display: inline-flex;
|
|
7
14
|
align-items: center;
|
|
8
15
|
gap: var(--ui-space-2);
|
|
@@ -16,7 +23,7 @@
|
|
|
16
23
|
font-size: var(--ui-font-size-sm);
|
|
17
24
|
}
|
|
18
25
|
|
|
19
|
-
:scope:first-child .separator {
|
|
26
|
+
:scope:where([data-component~="ui-breadcrumb-item"]):first-child .separator {
|
|
20
27
|
display: none;
|
|
21
28
|
}
|
|
22
29
|
|
|
@@ -27,13 +34,13 @@
|
|
|
27
34
|
min-inline-size: 0;
|
|
28
35
|
}
|
|
29
36
|
|
|
30
|
-
:scope[data-ui-breadcrumb-item-state~="current"] .content {
|
|
37
|
+
:scope:where([data-component~="ui-breadcrumb-item"])[data-ui-breadcrumb-item-state~="current"] .content {
|
|
31
38
|
color: var(--ui-text-primary);
|
|
32
39
|
font-weight: var(--ui-font-medium);
|
|
33
40
|
}
|
|
34
41
|
|
|
35
42
|
/* A component that sets its display still honours the hidden attribute on its root. */
|
|
36
|
-
:scope[hidden] {
|
|
43
|
+
:scope:where([data-component~="ui-breadcrumb-item"])[hidden] {
|
|
37
44
|
display: none;
|
|
38
45
|
}
|
|
39
46
|
}
|
|
@@ -1,8 +1,15 @@
|
|
|
1
|
-
/* Generated by HTML Next 1.0.0-alpha.
|
|
1
|
+
/* Generated by HTML Next 1.0.0-alpha.51. Do not edit. */
|
|
2
|
+
@supports (-moz-appearance: none) {
|
|
3
|
+
:where([data-component], [data-slotted]) { --html-next-scope-owner: boundary; }
|
|
4
|
+
:where([data-slotted]:not([data-component])) { --html-next-scope-owner: projected !important; }
|
|
5
|
+
}
|
|
6
|
+
@supports (-moz-appearance: none) {
|
|
7
|
+
[data-component~="ui-breadcrumbs"] { --html-next-scope-owner: "ui-breadcrumbs" !important; }
|
|
8
|
+
}
|
|
2
9
|
@scope ([data-component~="ui-breadcrumbs"]) to ([data-component], [data-slotted]) {
|
|
3
10
|
/* Where a view sits: a trail of ui-breadcrumb-item, from the top down to the current view. It wraps
|
|
4
11
|
rather than scrolls, so every step stays reachable. */
|
|
5
|
-
:scope {
|
|
12
|
+
:scope:where([data-component~="ui-breadcrumbs"]) {
|
|
6
13
|
display: block;
|
|
7
14
|
min-inline-size: 0;
|
|
8
15
|
color: var(--ui-text-muted);
|
|
@@ -20,7 +27,7 @@
|
|
|
20
27
|
}
|
|
21
28
|
|
|
22
29
|
/* A component that sets its display still honours the hidden attribute on its root. */
|
|
23
|
-
:scope[hidden] {
|
|
30
|
+
:scope:where([data-component~="ui-breadcrumbs"])[hidden] {
|
|
24
31
|
display: none;
|
|
25
32
|
}
|
|
26
33
|
}
|