@threadlabs/looma 0.51.5 → 0.52.0
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 +4 -4
- package/components/shared/overlay.js +7 -2
- package/components/ui-breadcrumb-item/ui-breadcrumb-item.html +1 -0
- package/components/ui-calendar/ui-calendar.js +11 -7
- package/components/ui-card/ui-card.html +7 -0
- package/components/ui-date-field/ui-date-field.js +0 -5
- package/components/ui-disclosure/ui-disclosure.js +19 -4
- package/components/ui-editor-link-form/ui-editor-link-form.js +5 -0
- package/components/ui-editor-mention-menu-item/ui-editor-mention-menu-item.html +2 -3
- package/components/ui-editor-table-context-menu/ui-editor-table-context-menu.html +10 -1
- package/components/ui-file-input/ui-file-input.js +0 -2
- package/components/ui-status-message/ui-status-message.html +1 -0
- package/components/ui-tabs/ui-tabs.html +1 -0
- package/components/ui-tooltip/ui-tooltip.html +11 -32
- package/dist/index.js +14 -8
- package/docs/catalog.json +592 -131
- package/editor/components.css +530 -551
- package/editor/index.js +72 -47
- package/package.json +30 -35
- package/styles/ui-action-bar.css +8 -8
- package/styles/ui-affordance-scope.css +10 -10
- package/styles/ui-avatar-group.css +11 -11
- package/styles/ui-avatar.css +14 -14
- package/styles/ui-badge.css +67 -67
- package/styles/ui-breadcrumb-item.css +10 -10
- package/styles/ui-breadcrumbs.css +8 -8
- package/styles/ui-button.css +99 -99
- package/styles/ui-calendar.css +1 -1
- package/styles/ui-callout.css +14 -14
- package/styles/ui-card-group.css +11 -11
- package/styles/ui-card.css +40 -35
- package/styles/ui-checkbox.css +28 -28
- package/styles/ui-cluster.css +30 -30
- package/styles/ui-color-picker.css +16 -16
- package/styles/ui-combobox.css +50 -50
- package/styles/ui-compact-content.css +1 -1
- package/styles/ui-compact-editor.css +1 -1
- package/styles/ui-compact-mark.css +1 -1
- package/styles/ui-compact-node.css +1 -1
- package/styles/ui-container.css +14 -14
- package/styles/ui-context-menu.css +8 -8
- package/styles/ui-cover.css +9 -9
- package/styles/ui-curve-editor.css +9 -9
- package/styles/ui-cycle-button.css +10 -10
- package/styles/ui-date-field.css +1 -1
- package/styles/ui-date-picker.css +1 -1
- package/styles/ui-date-range-picker.css +1 -1
- package/styles/ui-description-item.css +8 -8
- package/styles/ui-description-list.css +18 -18
- package/styles/ui-dialog.css +37 -37
- package/styles/ui-disclosure.css +26 -26
- package/styles/ui-editable.css +13 -13
- 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 -1
- package/styles/ui-editor-image-toolbar.css +1 -1
- package/styles/ui-editor-insert-table-grid.css +9 -9
- 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 +13 -15
- package/styles/ui-editor-mention-menu.css +12 -12
- package/styles/ui-editor-slash-menu-group.css +7 -7
- package/styles/ui-editor-slash-menu-item.css +12 -12
- package/styles/ui-editor-slash-menu.css +13 -13
- package/styles/ui-editor-surface.css +8 -8
- package/styles/ui-editor-table-context-menu.css +19 -15
- package/styles/ui-editor-table-overlay.css +15 -15
- package/styles/ui-editor-table-toolbar.css +19 -19
- package/styles/ui-editor-toolbar.css +16 -16
- package/styles/ui-editor.css +1 -1
- package/styles/ui-file-input.css +1 -1
- package/styles/ui-floating-action-button.css +14 -14
- package/styles/ui-form-field.css +9 -9
- package/styles/ui-grid.css +19 -19
- package/styles/ui-icon-button.css +73 -73
- package/styles/ui-icon.css +11 -11
- package/styles/ui-image.css +23 -23
- package/styles/ui-input-group.css +26 -26
- package/styles/ui-input.css +23 -23
- package/styles/ui-light-editor.css +15 -15
- package/styles/ui-list-item.css +25 -25
- package/styles/ui-list.css +16 -16
- package/styles/ui-listbox.css +22 -22
- package/styles/ui-menu-group.css +7 -7
- package/styles/ui-menu-item.css +20 -20
- package/styles/ui-menu.css +20 -20
- package/styles/ui-meter.css +32 -32
- package/styles/ui-nav-item.css +18 -18
- package/styles/ui-number-input.css +12 -12
- package/styles/ui-page-header.css +10 -10
- package/styles/ui-pagination.css +1 -1
- package/styles/ui-popover.css +17 -17
- package/styles/ui-radio-group.css +10 -10
- package/styles/ui-radio.css +25 -25
- package/styles/ui-reel.css +21 -21
- package/styles/ui-scroll-area.css +20 -20
- package/styles/ui-search-result-row.css +16 -16
- package/styles/ui-search-shell.css +10 -10
- package/styles/ui-section.css +18 -18
- package/styles/ui-select.css +22 -22
- package/styles/ui-separator.css +12 -12
- package/styles/ui-sidebar.css +26 -26
- package/styles/ui-site-header.css +65 -65
- package/styles/ui-skeleton.css +18 -18
- package/styles/ui-slider.css +11 -11
- package/styles/ui-spinner.css +9 -9
- package/styles/ui-stack.css +22 -22
- package/styles/ui-status-message.css +12 -12
- package/styles/ui-swatch.css +14 -14
- package/styles/ui-switch.css +23 -23
- package/styles/ui-switcher.css +20 -20
- package/styles/ui-table.css +12 -12
- package/styles/ui-tabs.css +18 -17
- package/styles/ui-text.css +40 -40
- package/styles/ui-textarea.css +21 -21
- package/styles/ui-time-field.css +1 -1
- package/styles/ui-time-picker.css +1 -1
- package/styles/ui-toast-region.css +29 -29
- package/styles/ui-toast.css +19 -19
- package/styles/ui-tooltip.css +37 -58
- package/styles/ui-top-bar.css +8 -8
- package/styles/ui-tree-item.css +112 -112
- package/styles/ui-tree.css +11 -11
- package/vanilla/UiActionBar.d.ts +1 -1
- package/vanilla/UiActionBar.js +2 -2
- package/vanilla/UiAffordanceScope.d.ts +1 -1
- package/vanilla/UiAffordanceScope.js +2 -2
- package/vanilla/UiAvatar.d.ts +1 -1
- package/vanilla/UiAvatar.js +2 -2
- package/vanilla/UiAvatarGroup.d.ts +1 -1
- package/vanilla/UiAvatarGroup.js +2 -2
- package/vanilla/UiBadge.d.ts +1 -1
- package/vanilla/UiBadge.js +2 -2
- package/vanilla/UiBreadcrumbItem.d.ts +1 -1
- package/vanilla/UiBreadcrumbItem.js +2 -2
- package/vanilla/UiBreadcrumbs.d.ts +1 -1
- package/vanilla/UiBreadcrumbs.js +2 -2
- package/vanilla/UiButton.d.ts +1 -1
- package/vanilla/UiButton.js +5 -5
- package/vanilla/UiCalendar.d.ts +1 -1
- package/vanilla/UiCalendar.js +10 -10
- package/vanilla/UiCallout.d.ts +1 -1
- package/vanilla/UiCallout.js +2 -2
- package/vanilla/UiCard.d.ts +2 -1
- package/vanilla/UiCard.js +18 -18
- package/vanilla/UiCardGroup.d.ts +1 -1
- package/vanilla/UiCardGroup.js +2 -2
- package/vanilla/UiCheckbox.d.ts +1 -1
- package/vanilla/UiCheckbox.js +2 -2
- package/vanilla/UiCluster.d.ts +1 -1
- package/vanilla/UiCluster.js +2 -2
- package/vanilla/UiColorPicker.d.ts +1 -1
- package/vanilla/UiColorPicker.js +2 -2
- package/vanilla/UiCombobox.d.ts +1 -1
- package/vanilla/UiCombobox.js +8 -8
- package/vanilla/UiCompactContent.d.ts +1 -1
- package/vanilla/UiCompactContent.js +4 -4
- package/vanilla/UiCompactEditor.d.ts +1 -1
- package/vanilla/UiCompactEditor.js +2 -2
- package/vanilla/UiCompactMark.d.ts +1 -1
- package/vanilla/UiCompactMark.js +5 -5
- package/vanilla/UiCompactNode.d.ts +1 -1
- package/vanilla/UiCompactNode.js +8 -8
- package/vanilla/UiContainer.d.ts +1 -1
- package/vanilla/UiContainer.js +2 -2
- package/vanilla/UiContextMenu.d.ts +1 -1
- package/vanilla/UiContextMenu.js +2 -2
- package/vanilla/UiCover.d.ts +1 -1
- package/vanilla/UiCover.js +2 -2
- package/vanilla/UiCurveEditor.d.ts +1 -1
- package/vanilla/UiCurveEditor.js +2 -2
- package/vanilla/UiCycleButton.d.ts +1 -1
- package/vanilla/UiCycleButton.js +2 -2
- package/vanilla/UiDateField.d.ts +1 -1
- package/vanilla/UiDateField.js +2 -2
- package/vanilla/UiDatePicker.d.ts +1 -1
- package/vanilla/UiDatePicker.js +2 -2
- package/vanilla/UiDateRangePicker.d.ts +1 -1
- package/vanilla/UiDateRangePicker.js +4 -4
- package/vanilla/UiDescriptionItem.d.ts +1 -1
- package/vanilla/UiDescriptionItem.js +2 -2
- package/vanilla/UiDescriptionList.d.ts +1 -1
- package/vanilla/UiDescriptionList.js +2 -2
- package/vanilla/UiDialog.d.ts +1 -1
- package/vanilla/UiDialog.js +2 -2
- package/vanilla/UiDisclosure.d.ts +1 -1
- package/vanilla/UiDisclosure.js +2 -2
- package/vanilla/UiEditable.d.ts +1 -1
- package/vanilla/UiEditable.js +2 -2
- package/vanilla/UiEditor.d.ts +1 -1
- package/vanilla/UiEditor.js +6 -6
- package/vanilla/UiEditorBlockActions.d.ts +1 -1
- package/vanilla/UiEditorBlockActions.js +2 -2
- package/vanilla/UiEditorChipEditor.d.ts +1 -1
- package/vanilla/UiEditorChipEditor.js +2 -2
- package/vanilla/UiEditorCodeLanguage.d.ts +1 -1
- package/vanilla/UiEditorCodeLanguage.js +4 -4
- package/vanilla/UiEditorFootnoteEditor.d.ts +1 -1
- package/vanilla/UiEditorFootnoteEditor.js +2 -2
- package/vanilla/UiEditorFormattingTools.d.ts +1 -1
- package/vanilla/UiEditorFormattingTools.js +4 -4
- package/vanilla/UiEditorImageToolbar.d.ts +1 -1
- package/vanilla/UiEditorImageToolbar.js +2 -2
- package/vanilla/UiEditorInsertTableGrid.d.ts +1 -1
- package/vanilla/UiEditorInsertTableGrid.js +4 -4
- package/vanilla/UiEditorLinkCard.d.ts +1 -1
- package/vanilla/UiEditorLinkCard.js +2 -2
- package/vanilla/UiEditorLinkForm.d.ts +1 -1
- package/vanilla/UiEditorLinkForm.js +4 -4
- package/vanilla/UiEditorMentionMenu.d.ts +1 -1
- package/vanilla/UiEditorMentionMenu.js +4 -4
- package/vanilla/UiEditorMentionMenuItem.d.ts +1 -1
- package/vanilla/UiEditorMentionMenuItem.js +2 -2
- package/vanilla/UiEditorSlashMenu.d.ts +1 -1
- package/vanilla/UiEditorSlashMenu.js +4 -4
- package/vanilla/UiEditorSlashMenuGroup.d.ts +1 -1
- package/vanilla/UiEditorSlashMenuGroup.js +2 -2
- package/vanilla/UiEditorSlashMenuItem.d.ts +1 -1
- package/vanilla/UiEditorSlashMenuItem.js +2 -2
- package/vanilla/UiEditorSurface.d.ts +1 -1
- package/vanilla/UiEditorSurface.js +2 -2
- package/vanilla/UiEditorTableContextMenu.d.ts +1 -1
- package/vanilla/UiEditorTableContextMenu.js +7 -6
- package/vanilla/UiEditorTableOverlay.d.ts +1 -1
- package/vanilla/UiEditorTableOverlay.js +5 -5
- package/vanilla/UiEditorTableToolbar.d.ts +1 -1
- package/vanilla/UiEditorTableToolbar.js +8 -8
- package/vanilla/UiEditorToolbar.d.ts +1 -1
- package/vanilla/UiEditorToolbar.js +2 -2
- package/vanilla/UiFileInput.d.ts +1 -1
- package/vanilla/UiFileInput.js +4 -4
- package/vanilla/UiFloatingActionButton.d.ts +1 -1
- package/vanilla/UiFloatingActionButton.js +2 -2
- package/vanilla/UiFormField.d.ts +1 -1
- package/vanilla/UiFormField.js +2 -2
- package/vanilla/UiGrid.d.ts +1 -1
- package/vanilla/UiGrid.js +4 -4
- package/vanilla/UiIcon.d.ts +1 -1
- package/vanilla/UiIcon.js +4 -4
- package/vanilla/UiIconButton.d.ts +1 -1
- package/vanilla/UiIconButton.js +2 -2
- package/vanilla/UiImage.d.ts +1 -1
- package/vanilla/UiImage.js +2 -2
- package/vanilla/UiInput.d.ts +1 -1
- package/vanilla/UiInput.js +2 -2
- package/vanilla/UiInputGroup.d.ts +1 -1
- package/vanilla/UiInputGroup.js +2 -2
- package/vanilla/UiLightEditor.d.ts +1 -1
- package/vanilla/UiLightEditor.js +2 -2
- package/vanilla/UiList.d.ts +1 -1
- package/vanilla/UiList.js +3 -3
- package/vanilla/UiListItem.d.ts +1 -1
- package/vanilla/UiListItem.js +2 -2
- package/vanilla/UiListbox.d.ts +1 -1
- package/vanilla/UiListbox.js +5 -5
- package/vanilla/UiMenu.d.ts +1 -1
- package/vanilla/UiMenu.js +2 -2
- package/vanilla/UiMenuGroup.d.ts +1 -1
- package/vanilla/UiMenuGroup.js +2 -2
- package/vanilla/UiMenuItem.d.ts +1 -1
- package/vanilla/UiMenuItem.js +3 -3
- package/vanilla/UiMeter.d.ts +1 -1
- package/vanilla/UiMeter.js +4 -4
- package/vanilla/UiNavItem.d.ts +1 -1
- package/vanilla/UiNavItem.js +3 -3
- package/vanilla/UiNumberInput.d.ts +1 -1
- package/vanilla/UiNumberInput.js +2 -2
- package/vanilla/UiPageHeader.d.ts +1 -1
- package/vanilla/UiPageHeader.js +2 -2
- package/vanilla/UiPagination.d.ts +1 -1
- package/vanilla/UiPagination.js +4 -4
- package/vanilla/UiPopover.d.ts +1 -1
- package/vanilla/UiPopover.js +2 -2
- package/vanilla/UiRadio.d.ts +1 -1
- package/vanilla/UiRadio.js +2 -2
- package/vanilla/UiRadioGroup.d.ts +1 -1
- package/vanilla/UiRadioGroup.js +2 -2
- package/vanilla/UiReel.d.ts +1 -1
- package/vanilla/UiReel.js +2 -2
- package/vanilla/UiScrollArea.d.ts +1 -1
- package/vanilla/UiScrollArea.js +2 -2
- package/vanilla/UiSearchResultRow.d.ts +1 -1
- package/vanilla/UiSearchResultRow.js +2 -2
- package/vanilla/UiSearchShell.d.ts +1 -1
- package/vanilla/UiSearchShell.js +2 -2
- package/vanilla/UiSection.d.ts +1 -1
- package/vanilla/UiSection.js +3 -3
- package/vanilla/UiSelect.d.ts +1 -1
- package/vanilla/UiSelect.js +2 -2
- package/vanilla/UiSeparator.d.ts +1 -1
- package/vanilla/UiSeparator.js +2 -2
- package/vanilla/UiSidebar.d.ts +1 -1
- package/vanilla/UiSidebar.js +2 -2
- package/vanilla/UiSiteHeader.d.ts +1 -1
- package/vanilla/UiSiteHeader.js +2 -2
- package/vanilla/UiSkeleton.d.ts +1 -1
- package/vanilla/UiSkeleton.js +2 -2
- package/vanilla/UiSlider.d.ts +1 -1
- package/vanilla/UiSlider.js +2 -2
- package/vanilla/UiSpinner.d.ts +1 -1
- package/vanilla/UiSpinner.js +2 -2
- package/vanilla/UiStack.d.ts +1 -1
- package/vanilla/UiStack.js +2 -2
- package/vanilla/UiStatusMessage.d.ts +1 -1
- package/vanilla/UiStatusMessage.js +2 -2
- package/vanilla/UiSwatch.d.ts +1 -1
- package/vanilla/UiSwatch.js +2 -2
- package/vanilla/UiSwitch.d.ts +1 -1
- package/vanilla/UiSwitch.js +2 -2
- package/vanilla/UiSwitcher.d.ts +1 -1
- package/vanilla/UiSwitcher.js +2 -2
- package/vanilla/UiTable.d.ts +1 -1
- package/vanilla/UiTable.js +2 -2
- package/vanilla/UiTabs.d.ts +1 -1
- package/vanilla/UiTabs.js +4 -4
- package/vanilla/UiText.d.ts +1 -1
- package/vanilla/UiText.js +13 -13
- package/vanilla/UiTextarea.d.ts +1 -1
- package/vanilla/UiTextarea.js +2 -2
- package/vanilla/UiTimeField.d.ts +1 -1
- package/vanilla/UiTimeField.js +2 -2
- package/vanilla/UiTimePicker.d.ts +1 -1
- package/vanilla/UiTimePicker.js +6 -6
- package/vanilla/UiToast.d.ts +1 -1
- package/vanilla/UiToast.js +2 -2
- package/vanilla/UiToastRegion.d.ts +1 -1
- package/vanilla/UiToastRegion.js +4 -4
- package/vanilla/UiTooltip.d.ts +1 -1
- package/vanilla/UiTooltip.js +2 -2
- package/vanilla/UiTopBar.d.ts +1 -1
- package/vanilla/UiTopBar.js +2 -2
- package/vanilla/UiTree.d.ts +1 -1
- package/vanilla/UiTree.js +2 -2
- package/vanilla/UiTreeItem.d.ts +1 -1
- package/vanilla/UiTreeItem.js +2 -2
- package/bin/looma-docs.mjs +0 -3
- package/docs/README.md +0 -323
- package/docs/card.html +0 -79
- package/docs/card.js +0 -18
- package/docs/catalog-view.js +0 -24
- package/docs/catalog-view.mjs +0 -13
- package/docs/catalog.mjs +0 -131
- package/docs/cli.mjs +0 -26
- package/docs/commands.mjs +0 -94
- package/docs/customizer-render.mjs +0 -157
- package/docs/customizer.js +0 -494
- package/docs/documentation.css +0 -14
- package/docs/example-invocations.mjs +0 -63
- package/docs/fonts.mjs +0 -73
- package/docs/framework-examples.d.mts +0 -9
- package/docs/framework-examples.mjs +0 -195
- package/docs/index.d.ts +0 -59
- package/docs/index.mjs +0 -4
- package/docs/local-server.mjs +0 -65
- package/docs/navigation.mjs +0 -26
- package/docs/palette.mjs +0 -68
- package/docs/pastoral.svg +0 -54
- package/docs/portrait.svg +0 -15
- package/docs/reference.html +0 -1
- package/docs/reference.js +0 -36
- package/docs/render.mjs +0 -97
- package/docs/site.mjs +0 -237
- package/docs/store.mjs +0 -92
- package/docs/theme-session.mjs +0 -72
- package/docs/theme.mjs +0 -669
- package/docs/value-editors.mjs +0 -37
- package/docs/workspace.mjs +0 -32
package/styles/ui-list-item.css
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
/* Generated by HTML Next 1.0.0-alpha.
|
|
1
|
+
/* Generated by HTML Next 1.0.0-alpha.82. Do not edit. */
|
|
2
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; }
|
|
3
|
+
:where(:is([component]:not(template), [data-component]:not([component])), [data-slotted]) { --html-next-scope-owner: boundary; }
|
|
4
|
+
:where([data-slotted]:not(:is([component]:not(template), [data-component]:not([component])))) { --html-next-scope-owner: projected !important; }
|
|
5
5
|
}
|
|
6
6
|
@supports (-moz-appearance: none) {
|
|
7
|
-
[data-component~="ui-list-item"] { --html-next-scope-owner: "ui-list-item" !important; }
|
|
7
|
+
:is([component~="ui-list-item"]:not(template), [data-component~="ui-list-item"]:not([component])) { --html-next-scope-owner: "ui-list-item" !important; }
|
|
8
8
|
}
|
|
9
|
-
@scope ([data-component~="ui-list-item"]) to ([data-component], [data-slotted]) {
|
|
9
|
+
@scope (:is([component~="ui-list-item"]:not(template), [data-component~="ui-list-item"]:not([component]))) to (:is([component]:not(template), [data-component]:not([component])), [data-slotted]) {
|
|
10
10
|
/* One entry in a list: something to recognise (leading, usually an icon), its name (the default
|
|
11
11
|
slot), one line about it (description), and what it offers (trailing, such as a button or a
|
|
12
12
|
badge). The title and description are one line each and end in an ellipsis, so every item in a
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
padding follow it too, and the item takes the link's focus ring. The link stays a real link, so
|
|
17
17
|
a router, a modified click, and "open in new tab" all work. Trailing controls sit above it and
|
|
18
18
|
stay their own. */
|
|
19
|
-
:scope:where([data-component~="ui-list-item"]) {
|
|
19
|
+
:scope:where(:is([component~="ui-list-item"]:not(template), [data-component~="ui-list-item"]:not([component]))) {
|
|
20
20
|
/* Resolve shared part values at the component root. */
|
|
21
21
|
--_ui-list-item-icon-size: var(--ui-list-item-icon-size);
|
|
22
22
|
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
transition: background-color var(--ui-motion-fast) var(--ui-motion-ease), border-color var(--ui-motion-fast) var(--ui-motion-ease);
|
|
35
35
|
}
|
|
36
36
|
|
|
37
|
-
:scope:where([data-component~="ui-list-item"])[data-ui-list-item-state~="variant=card"] {
|
|
37
|
+
:scope:where(:is([component~="ui-list-item"]:not(template), [data-component~="ui-list-item"]:not([component])))[data-ui-list-item-state~="variant=card"] {
|
|
38
38
|
padding-block: var(--ui-list-item-padding-block, var(--ui-space-3)) !important;
|
|
39
39
|
padding-inline: var(--ui-list-item-padding-inline, var(--ui-space-4)) !important;
|
|
40
40
|
border: var(--ui-border-width) solid var(--ui-border-strong);
|
|
@@ -42,27 +42,27 @@
|
|
|
42
42
|
background: var(--ui-surface-raised);
|
|
43
43
|
}
|
|
44
44
|
|
|
45
|
-
:scope:where([data-component~="ui-list-item"]):where(:has(.title a[href])):hover,
|
|
46
|
-
:scope:where([data-component~="ui-list-item"])[data-ui-list-item-state~="highlighted"],
|
|
47
|
-
:scope:where([data-component~="ui-list-item"])[data-ui-list-item-state~="current"] {
|
|
45
|
+
:scope:where(:is([component~="ui-list-item"]:not(template), [data-component~="ui-list-item"]:not([component]))):where(:has(.title a[href])):hover,
|
|
46
|
+
:scope:where(:is([component~="ui-list-item"]:not(template), [data-component~="ui-list-item"]:not([component])))[data-ui-list-item-state~="highlighted"],
|
|
47
|
+
:scope:where(:is([component~="ui-list-item"]:not(template), [data-component~="ui-list-item"]:not([component])))[data-ui-list-item-state~="current"] {
|
|
48
48
|
background: var(--_ui-selection-context-surface, var(--ui-selection-surface));
|
|
49
49
|
box-shadow: inset 0 0 0 var(--ui-border-width) var(--_ui-selection-context-border, var(--ui-selection-border));
|
|
50
50
|
}
|
|
51
51
|
|
|
52
|
-
:scope:where([data-component~="ui-list-item"])[data-ui-list-item-state~="variant=card"]:where(:has(.title a[href])):hover {
|
|
52
|
+
:scope:where(:is([component~="ui-list-item"]:not(template), [data-component~="ui-list-item"]:not([component])))[data-ui-list-item-state~="variant=card"]:where(:has(.title a[href])):hover {
|
|
53
53
|
border-color: var(--ui-border-strong);
|
|
54
54
|
}
|
|
55
55
|
|
|
56
|
-
:scope:where([data-component~="ui-list-item"])[data-ui-list-item-state~="current"] {
|
|
56
|
+
:scope:where(:is([component~="ui-list-item"]:not(template), [data-component~="ui-list-item"]:not([component])))[data-ui-list-item-state~="current"] {
|
|
57
57
|
color: var(--_ui-selection-context-text, var(--ui-selection-text));
|
|
58
58
|
}
|
|
59
59
|
|
|
60
60
|
/* Framed cards already have their own edge; the stronger focus ring stays separate. */
|
|
61
|
-
:scope:where([data-component~="ui-list-item"])[data-ui-list-item-state~="variant=card"] {
|
|
61
|
+
:scope:where(:is([component~="ui-list-item"]:not(template), [data-component~="ui-list-item"]:not([component])))[data-ui-list-item-state~="variant=card"] {
|
|
62
62
|
box-shadow: none;
|
|
63
63
|
}
|
|
64
64
|
|
|
65
|
-
:scope:where([data-component~="ui-list-item"]):has(.title a[href]:focus-visible) {
|
|
65
|
+
:scope:where(:is([component~="ui-list-item"]:not(template), [data-component~="ui-list-item"]:not([component]))):has(.title a[href]:focus-visible) {
|
|
66
66
|
box-shadow: 0 0 0 var(--ui-focus-width) var(--ui-focus-ring);
|
|
67
67
|
}
|
|
68
68
|
|
|
@@ -79,12 +79,12 @@
|
|
|
79
79
|
font-size: var(--_ui-list-item-icon-size, var(--ui-font-size-lg));
|
|
80
80
|
}
|
|
81
81
|
|
|
82
|
-
:scope:where([data-component~="ui-list-item"])[data-ui-list-item-state~="current"] .leading {
|
|
82
|
+
:scope:where(:is([component~="ui-list-item"]:not(template), [data-component~="ui-list-item"]:not([component])))[data-ui-list-item-state~="current"] .leading {
|
|
83
83
|
color: var(--_ui-selection-context-text, var(--ui-selection-text));
|
|
84
84
|
}
|
|
85
85
|
|
|
86
86
|
/* An explicitly independent leading control sits above the stretched row link. */
|
|
87
|
-
:scope:where([data-component~="ui-list-item"])[data-ui-list-item-state~="leadingInteractive"] .leading {
|
|
87
|
+
:scope:where(:is([component~="ui-list-item"]:not(template), [data-component~="ui-list-item"]:not([component])))[data-ui-list-item-state~="leadingInteractive"] .leading {
|
|
88
88
|
position: relative;
|
|
89
89
|
z-index: 1;
|
|
90
90
|
}
|
|
@@ -114,8 +114,8 @@
|
|
|
114
114
|
white-space: nowrap;
|
|
115
115
|
}
|
|
116
116
|
|
|
117
|
-
:scope:where([data-component~="ui-list-item"])[data-ui-list-item-state~="wrap"] .title,
|
|
118
|
-
:scope:where([data-component~="ui-list-item"])[data-ui-list-item-state~="wrap"] .description {
|
|
117
|
+
:scope:where(:is([component~="ui-list-item"]:not(template), [data-component~="ui-list-item"]:not([component])))[data-ui-list-item-state~="wrap"] .title,
|
|
118
|
+
:scope:where(:is([component~="ui-list-item"]:not(template), [data-component~="ui-list-item"]:not([component])))[data-ui-list-item-state~="wrap"] .description {
|
|
119
119
|
white-space: normal;
|
|
120
120
|
overflow-wrap: anywhere;
|
|
121
121
|
}
|
|
@@ -127,12 +127,12 @@
|
|
|
127
127
|
}
|
|
128
128
|
|
|
129
129
|
/* Keep identity and disclosure marks beside the first line, even with a long description. */
|
|
130
|
-
:scope:where([data-component~="ui-list-item"])[data-ui-list-item-state~="align=title"] {
|
|
130
|
+
:scope:where(:is([component~="ui-list-item"]:not(template), [data-component~="ui-list-item"]:not([component])))[data-ui-list-item-state~="align=title"] {
|
|
131
131
|
align-items: flex-start !important;
|
|
132
132
|
}
|
|
133
133
|
|
|
134
|
-
:scope:where([data-component~="ui-list-item"])[data-ui-list-item-state~="align=title"] .leading,
|
|
135
|
-
:scope:where([data-component~="ui-list-item"])[data-ui-list-item-state~="align=title"] .trailing {
|
|
134
|
+
:scope:where(:is([component~="ui-list-item"]:not(template), [data-component~="ui-list-item"]:not([component])))[data-ui-list-item-state~="align=title"] .leading,
|
|
135
|
+
:scope:where(:is([component~="ui-list-item"]:not(template), [data-component~="ui-list-item"]:not([component])))[data-ui-list-item-state~="align=title"] .trailing {
|
|
136
136
|
min-block-size: calc(var(--ui-font-size-md) * var(--ui-line-height-tight));
|
|
137
137
|
}
|
|
138
138
|
|
|
@@ -150,22 +150,22 @@
|
|
|
150
150
|
}
|
|
151
151
|
|
|
152
152
|
@media (forced-colors: active) {
|
|
153
|
-
:scope:where([data-component~="ui-list-item"]):has(a:focus-visible) {
|
|
153
|
+
:scope:where(:is([component~="ui-list-item"]:not(template), [data-component~="ui-list-item"]:not([component]))):has(a:focus-visible) {
|
|
154
154
|
outline: var(--ui-focus-width) solid Highlight;
|
|
155
155
|
outline-offset: calc(-1 * var(--ui-focus-width));
|
|
156
156
|
}
|
|
157
|
-
:is(:scope:where([data-component~="ui-list-item"])[data-ui-list-item-state~="current"], :scope:where([data-component~="ui-list-item"])[data-ui-list-item-state~="highlighted"]):not(:has(a:focus-visible)) {
|
|
157
|
+
:is(:scope:where(:is([component~="ui-list-item"]:not(template), [data-component~="ui-list-item"]:not([component])))[data-ui-list-item-state~="current"], :scope:where(:is([component~="ui-list-item"]:not(template), [data-component~="ui-list-item"]:not([component])))[data-ui-list-item-state~="highlighted"]):not(:has(a:focus-visible)) {
|
|
158
158
|
outline: var(--ui-border-width) solid Highlight;
|
|
159
159
|
outline-offset: calc(-1 * var(--ui-border-width));
|
|
160
160
|
}
|
|
161
161
|
}
|
|
162
162
|
|
|
163
163
|
/* A component that sets its display still honours the hidden attribute on its root. */
|
|
164
|
-
:scope:where([data-component~="ui-list-item"])[hidden] {
|
|
164
|
+
:scope:where(:is([component~="ui-list-item"]:not(template), [data-component~="ui-list-item"]:not([component])))[hidden] {
|
|
165
165
|
display: none !important;
|
|
166
166
|
}
|
|
167
167
|
}
|
|
168
|
-
@scope ([data-component~="ui-list-item"]) to ([data-component]) {
|
|
168
|
+
@scope (:is([component~="ui-list-item"]:not(template), [data-component~="ui-list-item"]:not([component]))) to (:is([component]:not(template), [data-component]:not([component]))) {
|
|
169
169
|
/* One entry in a list: something to recognise (leading, usually an icon), its name (the default
|
|
170
170
|
slot), one line about it (description), and what it offers (trailing, such as a button or a
|
|
171
171
|
badge). The title and description are one line each and end in an ellipsis, so every item in a
|
package/styles/ui-list.css
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
/* Generated by HTML Next 1.0.0-alpha.
|
|
1
|
+
/* Generated by HTML Next 1.0.0-alpha.82. Do not edit. */
|
|
2
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; }
|
|
3
|
+
:where(:is([component]:not(template), [data-component]:not([component])), [data-slotted]) { --html-next-scope-owner: boundary; }
|
|
4
|
+
:where([data-slotted]:not(:is([component]:not(template), [data-component]:not([component])))) { --html-next-scope-owner: projected !important; }
|
|
5
5
|
}
|
|
6
6
|
@supports (-moz-appearance: none) {
|
|
7
|
-
[data-component~="ui-list"] { --html-next-scope-owner: "ui-list" !important; }
|
|
7
|
+
:is([component~="ui-list"]:not(template), [data-component~="ui-list"]:not([component])) { --html-next-scope-owner: "ui-list" !important; }
|
|
8
8
|
}
|
|
9
|
-
@scope ([data-component~="ui-list"]) to ([data-component], [data-slotted]) {
|
|
9
|
+
@scope (:is([component~="ui-list"]:not(template), [data-component~="ui-list"]:not([component]))) to (:is([component]:not(template), [data-component]:not([component])), [data-slotted]) {
|
|
10
10
|
/* A list of native li elements or structured ui-list-item components. It owns the spacing between them, so a view never sets it. The
|
|
11
11
|
explicit list role keeps the list announced as one: some browsers drop it from a list with no
|
|
12
12
|
markers. */
|
|
13
|
-
:scope:where([data-component~="ui-list"]) {
|
|
13
|
+
:scope:where(:is([component~="ui-list"]:not(template), [data-component~="ui-list"]:not([component]))) {
|
|
14
14
|
--_list-gap: var(--ui-list-gap, var(--ui-space-1));
|
|
15
15
|
--_list-min-item-width: var(--ui-list-min-item-width, 14rem);
|
|
16
16
|
display: flex !important;
|
|
@@ -23,21 +23,21 @@
|
|
|
23
23
|
list-style: none;
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
-
:scope:where([data-component~="ui-list"])[data-ui-list-state~="as=ol"],
|
|
27
|
-
:scope:where([data-component~="ui-list"])[data-ui-list-state~="markers=disc"] {
|
|
26
|
+
:scope:where(:is([component~="ui-list"]:not(template), [data-component~="ui-list"]:not([component])))[data-ui-list-state~="as=ol"],
|
|
27
|
+
:scope:where(:is([component~="ui-list"]:not(template), [data-component~="ui-list"]:not([component])))[data-ui-list-state~="markers=disc"] {
|
|
28
28
|
padding-inline-start: var(--ui-space-5) !important;
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
-
:scope:where([data-component~="ui-list"])[data-ui-list-state~="as=ol"] {
|
|
31
|
+
:scope:where(:is([component~="ui-list"]:not(template), [data-component~="ui-list"]:not([component])))[data-ui-list-state~="as=ol"] {
|
|
32
32
|
list-style: decimal;
|
|
33
33
|
}
|
|
34
34
|
|
|
35
|
-
:scope:where([data-component~="ui-list"])[data-ui-list-state~="markers=disc"] {
|
|
35
|
+
:scope:where(:is([component~="ui-list"]:not(template), [data-component~="ui-list"]:not([component])))[data-ui-list-state~="markers=disc"] {
|
|
36
36
|
list-style: disc;
|
|
37
37
|
}
|
|
38
38
|
|
|
39
39
|
/* Compact passes its size to the items through private properties, which cross into each item. */
|
|
40
|
-
:scope:where([data-component~="ui-list"])[data-ui-list-state~="density=compact"] {
|
|
40
|
+
:scope:where(:is([component~="ui-list"]:not(template), [data-component~="ui-list"]:not([component])))[data-ui-list-state~="density=compact"] {
|
|
41
41
|
--_list-gap: var(--ui-list-gap, var(--ui-space-2));
|
|
42
42
|
--_ui-list-item-min-size: 0;
|
|
43
43
|
--_ui-list-item-padding-block: 0;
|
|
@@ -47,23 +47,23 @@
|
|
|
47
47
|
--_ui-list-native-padding-inline: 0;
|
|
48
48
|
}
|
|
49
49
|
|
|
50
|
-
:scope:where([data-component~="ui-list"])[data-ui-list-state~="layout=grid"] {
|
|
50
|
+
:scope:where(:is([component~="ui-list"]:not(template), [data-component~="ui-list"]:not([component])))[data-ui-list-state~="layout=grid"] {
|
|
51
51
|
--_list-gap: var(--ui-list-gap, var(--ui-space-3));
|
|
52
52
|
display: grid !important;
|
|
53
53
|
grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--_list-min-item-width)), 1fr));
|
|
54
54
|
}
|
|
55
55
|
|
|
56
56
|
/* A component that sets its display still honours the hidden attribute on its root. */
|
|
57
|
-
:scope:where([data-component~="ui-list"])[hidden] {
|
|
57
|
+
:scope:where(:is([component~="ui-list"]:not(template), [data-component~="ui-list"]:not([component])))[hidden] {
|
|
58
58
|
display: none !important;
|
|
59
59
|
}
|
|
60
60
|
}
|
|
61
|
-
@scope ([data-component~="ui-list"]) to ([data-component]) {
|
|
61
|
+
@scope (:is([component~="ui-list"]:not(template), [data-component~="ui-list"]:not([component]))) to (:is([component]:not(template), [data-component]:not([component]))) {
|
|
62
62
|
/* A list of native li elements or structured ui-list-item components. It owns the spacing between them, so a view never sets it. The
|
|
63
63
|
explicit list role keeps the list announced as one: some browsers drop it from a list with no
|
|
64
64
|
markers. */
|
|
65
65
|
|
|
66
|
-
:scope:where([data-component~="ui-list"]) > :where([data-slotted], [data-slotted] *):is(li) {
|
|
66
|
+
:scope:where(:is([component~="ui-list"]:not(template), [data-component~="ui-list"]:not([component]))) > :where([data-slotted], [data-slotted] *):is(li) {
|
|
67
67
|
box-sizing: border-box !important;
|
|
68
68
|
min-inline-size: 0;
|
|
69
69
|
padding: var(--_ui-list-native-padding-block, var(--ui-space-2)) var(--_ui-list-native-padding-inline, var(--ui-space-3)) !important;
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
list-style: inherit;
|
|
73
73
|
}
|
|
74
74
|
|
|
75
|
-
:scope:where([data-component~="ui-list"]) > :where([data-slotted], [data-slotted] *):is(li.card) {
|
|
75
|
+
:scope:where(:is([component~="ui-list"]:not(template), [data-component~="ui-list"]:not([component]))) > :where([data-slotted], [data-slotted] *):is(li.card) {
|
|
76
76
|
padding: var(--_ui-list-native-padding-block, var(--ui-space-3)) var(--_ui-list-native-padding-inline, var(--ui-space-4)) !important;
|
|
77
77
|
border: var(--ui-border-width) solid var(--ui-border-strong);
|
|
78
78
|
border-radius: var(--ui-radius-lg);
|
package/styles/ui-listbox.css
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
/* Generated by HTML Next 1.0.0-alpha.
|
|
1
|
+
/* Generated by HTML Next 1.0.0-alpha.82. Do not edit. */
|
|
2
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; }
|
|
3
|
+
:where(:is([component]:not(template), [data-component]:not([component])), [data-slotted]) { --html-next-scope-owner: boundary; }
|
|
4
|
+
:where([data-slotted]:not(:is([component]:not(template), [data-component]:not([component])))) { --html-next-scope-owner: projected !important; }
|
|
5
5
|
}
|
|
6
6
|
@supports (-moz-appearance: none) {
|
|
7
|
-
[data-component~="ui-listbox"] { --html-next-scope-owner: "ui-listbox" !important; }
|
|
7
|
+
:is([component~="ui-listbox"]:not(template), [data-component~="ui-listbox"]:not([component])) { --html-next-scope-owner: "ui-listbox" !important; }
|
|
8
8
|
}
|
|
9
|
-
@scope ([data-component~="ui-listbox"]) to ([data-component], [data-slotted]) {
|
|
10
|
-
:scope:where([data-component~="ui-listbox"]) {
|
|
9
|
+
@scope (:is([component~="ui-listbox"]:not(template), [data-component~="ui-listbox"]:not([component]))) to (:is([component]:not(template), [data-component]:not([component])), [data-slotted]) {
|
|
10
|
+
:scope:where(:is([component~="ui-listbox"]:not(template), [data-component~="ui-listbox"]:not([component]))) {
|
|
11
11
|
position: relative;
|
|
12
12
|
box-sizing: border-box !important;
|
|
13
13
|
display: block !important;
|
|
@@ -32,15 +32,15 @@
|
|
|
32
32
|
max-block-size: calc(max(2, var(--_rows, 5)) * var(--ui-control-size-md));
|
|
33
33
|
}
|
|
34
34
|
|
|
35
|
-
:scope:where([data-component~="ui-listbox"]):not([data-enhanced]) {
|
|
35
|
+
:scope:where(:is([component~="ui-listbox"]:not(template), [data-component~="ui-listbox"]:not([component]))):not([data-enhanced]) {
|
|
36
36
|
padding: 0 !important;
|
|
37
37
|
border: 0;
|
|
38
38
|
background: transparent;
|
|
39
39
|
box-shadow: none;
|
|
40
40
|
}
|
|
41
41
|
|
|
42
|
-
:scope:where([data-component~="ui-listbox"]):not([data-enhanced]) .choices,
|
|
43
|
-
:scope:where([data-component~="ui-listbox"])[data-enhanced] .fallback {
|
|
42
|
+
:scope:where(:is([component~="ui-listbox"]:not(template), [data-component~="ui-listbox"]:not([component]))):not([data-enhanced]) .choices,
|
|
43
|
+
:scope:where(:is([component~="ui-listbox"]:not(template), [data-component~="ui-listbox"]:not([component])))[data-enhanced] .fallback {
|
|
44
44
|
display: none !important;
|
|
45
45
|
}
|
|
46
46
|
|
|
@@ -60,33 +60,33 @@
|
|
|
60
60
|
pointer-events: none;
|
|
61
61
|
}
|
|
62
62
|
|
|
63
|
-
:scope:where([data-component~="ui-listbox"]):focus-visible {
|
|
63
|
+
:scope:where(:is([component~="ui-listbox"]:not(template), [data-component~="ui-listbox"]:not([component]))):focus-visible {
|
|
64
64
|
border-color: var(--ui-control-focus);
|
|
65
65
|
outline: var(--ui-focus-width) solid var(--ui-focus-ring);
|
|
66
66
|
outline-offset: var(--ui-focus-width);
|
|
67
67
|
box-shadow: var(--ui-listbox-focus-shadow, var(--ui-focus-halo));
|
|
68
68
|
}
|
|
69
69
|
|
|
70
|
-
:scope:where([data-component~="ui-listbox"])[aria-invalid="true"] {
|
|
70
|
+
:scope:where(:is([component~="ui-listbox"]:not(template), [data-component~="ui-listbox"]:not([component])))[aria-invalid="true"] {
|
|
71
71
|
border-color: var(--ui-listbox-invalid-border, var(--ui-field-danger, var(--ui-danger)));
|
|
72
72
|
}
|
|
73
73
|
|
|
74
|
-
:scope:where([data-component~="ui-listbox"])[aria-disabled="true"] {
|
|
74
|
+
:scope:where(:is([component~="ui-listbox"]:not(template), [data-component~="ui-listbox"]:not([component])))[aria-disabled="true"] {
|
|
75
75
|
background: var(--ui-control-surface-disabled);
|
|
76
76
|
color: var(--ui-disabled-text);
|
|
77
77
|
box-shadow: none;
|
|
78
78
|
cursor: not-allowed;
|
|
79
79
|
}
|
|
80
80
|
|
|
81
|
-
:scope:where([data-component~="ui-listbox"])[hidden] {
|
|
81
|
+
:scope:where(:is([component~="ui-listbox"]:not(template), [data-component~="ui-listbox"]:not([component])))[hidden] {
|
|
82
82
|
display: none !important;
|
|
83
83
|
}
|
|
84
84
|
}
|
|
85
|
-
@scope ([data-component~="ui-listbox"]) to ([data-component]) {
|
|
85
|
+
@scope (:is([component~="ui-listbox"]:not(template), [data-component~="ui-listbox"]:not([component]))) to (:is([component]:not(template), [data-component]:not([component]))) {
|
|
86
86
|
/* Its own box around the nested Scroll Area, which it shrinks into so the choices scroll. */
|
|
87
87
|
}
|
|
88
|
-
@scope ([data-slotted~="ui-listbox"]:not([data-component])) to ([data-component], [data-slotted]) {
|
|
89
|
-
:where([data-component~="ui-listbox"]):where(:scope, :not([data-component], [data-slotted]:not([data-slotted~="ui-listbox"]))) {
|
|
88
|
+
@scope ([data-slotted~="ui-listbox"]:not(:is([component]:not(template), [data-component]:not([component])))) to (:is([component]:not(template), [data-component]:not([component])), [data-slotted]) {
|
|
89
|
+
:where(:is([component~="ui-listbox"]:not(template), [data-component~="ui-listbox"]:not([component]))):where(:scope, :not(:is([component]:not(template), [data-component]:not([component])), [data-slotted]:not([data-slotted~="ui-listbox"]))) {
|
|
90
90
|
position: relative;
|
|
91
91
|
box-sizing: border-box !important;
|
|
92
92
|
display: block !important;
|
|
@@ -111,14 +111,14 @@
|
|
|
111
111
|
max-block-size: calc(max(2, var(--_rows, 5)) * var(--ui-control-size-md));
|
|
112
112
|
}
|
|
113
113
|
|
|
114
|
-
:where([data-component~="ui-listbox"]):not([data-enhanced]):where(:scope, :not([data-component], [data-slotted]:not([data-slotted~="ui-listbox"]))) {
|
|
114
|
+
:where(:is([component~="ui-listbox"]:not(template), [data-component~="ui-listbox"]:not([component]))):not([data-enhanced]):where(:scope, :not(:is([component]:not(template), [data-component]:not([component])), [data-slotted]:not([data-slotted~="ui-listbox"]))) {
|
|
115
115
|
padding: 0 !important;
|
|
116
116
|
border: 0;
|
|
117
117
|
background: transparent;
|
|
118
118
|
box-shadow: none;
|
|
119
119
|
}
|
|
120
120
|
|
|
121
|
-
:where([data-component~="ui-listbox"]):not([data-enhanced]) .choices:where(:scope, :not([data-component], [data-slotted]:not([data-slotted~="ui-listbox"]))), :where([data-component~="ui-listbox"])[data-enhanced] .fallback:where(:scope, :not([data-component], [data-slotted]:not([data-slotted~="ui-listbox"]))) {
|
|
121
|
+
:where(:is([component~="ui-listbox"]:not(template), [data-component~="ui-listbox"]:not([component]))):not([data-enhanced]) .choices:where(:scope, :not(:is([component]:not(template), [data-component]:not([component])), [data-slotted]:not([data-slotted~="ui-listbox"]))), :where(:is([component~="ui-listbox"]:not(template), [data-component~="ui-listbox"]:not([component])))[data-enhanced] .fallback:where(:scope, :not(:is([component]:not(template), [data-component]:not([component])), [data-slotted]:not([data-slotted~="ui-listbox"]))) {
|
|
122
122
|
display: none !important;
|
|
123
123
|
}
|
|
124
124
|
|
|
@@ -138,25 +138,25 @@
|
|
|
138
138
|
pointer-events: none;
|
|
139
139
|
}
|
|
140
140
|
|
|
141
|
-
:where([data-component~="ui-listbox"]):focus-visible:where(:scope, :not([data-component], [data-slotted]:not([data-slotted~="ui-listbox"]))) {
|
|
141
|
+
:where(:is([component~="ui-listbox"]:not(template), [data-component~="ui-listbox"]:not([component]))):focus-visible:where(:scope, :not(:is([component]:not(template), [data-component]:not([component])), [data-slotted]:not([data-slotted~="ui-listbox"]))) {
|
|
142
142
|
border-color: var(--ui-control-focus);
|
|
143
143
|
outline: var(--ui-focus-width) solid var(--ui-focus-ring);
|
|
144
144
|
outline-offset: var(--ui-focus-width);
|
|
145
145
|
box-shadow: var(--ui-listbox-focus-shadow, var(--ui-focus-halo));
|
|
146
146
|
}
|
|
147
147
|
|
|
148
|
-
:where([data-component~="ui-listbox"])[aria-invalid="true"]:where(:scope, :not([data-component], [data-slotted]:not([data-slotted~="ui-listbox"]))) {
|
|
148
|
+
:where(:is([component~="ui-listbox"]:not(template), [data-component~="ui-listbox"]:not([component])))[aria-invalid="true"]:where(:scope, :not(:is([component]:not(template), [data-component]:not([component])), [data-slotted]:not([data-slotted~="ui-listbox"]))) {
|
|
149
149
|
border-color: var(--ui-listbox-invalid-border, var(--ui-field-danger, var(--ui-danger)));
|
|
150
150
|
}
|
|
151
151
|
|
|
152
|
-
:where([data-component~="ui-listbox"])[aria-disabled="true"]:where(:scope, :not([data-component], [data-slotted]:not([data-slotted~="ui-listbox"]))) {
|
|
152
|
+
:where(:is([component~="ui-listbox"]:not(template), [data-component~="ui-listbox"]:not([component])))[aria-disabled="true"]:where(:scope, :not(:is([component]:not(template), [data-component]:not([component])), [data-slotted]:not([data-slotted~="ui-listbox"]))) {
|
|
153
153
|
background: var(--ui-control-surface-disabled);
|
|
154
154
|
color: var(--ui-disabled-text);
|
|
155
155
|
box-shadow: none;
|
|
156
156
|
cursor: not-allowed;
|
|
157
157
|
}
|
|
158
158
|
|
|
159
|
-
:where([data-component~="ui-listbox"])[hidden]:where(:scope, :not([data-component], [data-slotted]:not([data-slotted~="ui-listbox"]))) {
|
|
159
|
+
:where(:is([component~="ui-listbox"]:not(template), [data-component~="ui-listbox"]:not([component])))[hidden]:where(:scope, :not(:is([component]:not(template), [data-component]:not([component])), [data-slotted]:not([data-slotted~="ui-listbox"]))) {
|
|
160
160
|
display: none !important;
|
|
161
161
|
}
|
|
162
162
|
}
|
package/styles/ui-menu-group.css
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
/* Generated by HTML Next 1.0.0-alpha.
|
|
1
|
+
/* Generated by HTML Next 1.0.0-alpha.82. Do not edit. */
|
|
2
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; }
|
|
3
|
+
:where(:is([component]:not(template), [data-component]:not([component])), [data-slotted]) { --html-next-scope-owner: boundary; }
|
|
4
|
+
:where([data-slotted]:not(:is([component]:not(template), [data-component]:not([component])))) { --html-next-scope-owner: projected !important; }
|
|
5
5
|
}
|
|
6
6
|
@supports (-moz-appearance: none) {
|
|
7
|
-
[data-component~="ui-menu-group"] { --html-next-scope-owner: "ui-menu-group" !important; }
|
|
7
|
+
:is([component~="ui-menu-group"]:not(template), [data-component~="ui-menu-group"]:not([component])) { --html-next-scope-owner: "ui-menu-group" !important; }
|
|
8
8
|
}
|
|
9
|
-
@scope ([data-component~="ui-menu-group"]) to ([data-component], [data-slotted]) {
|
|
10
|
-
:scope:where([data-component~="ui-menu-group"]) {
|
|
9
|
+
@scope (:is([component~="ui-menu-group"]:not(template), [data-component~="ui-menu-group"]:not([component]))) to (:is([component]:not(template), [data-component]:not([component])), [data-slotted]) {
|
|
10
|
+
:scope:where(:is([component~="ui-menu-group"]:not(template), [data-component~="ui-menu-group"]:not([component]))) {
|
|
11
11
|
display: flex !important;
|
|
12
12
|
flex-direction: column !important;
|
|
13
13
|
min-inline-size: 0;
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
font-weight: var(--ui-font-semibold);
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
-
:scope:where([data-component~="ui-menu-group"])[hidden] {
|
|
23
|
+
:scope:where(:is([component~="ui-menu-group"]:not(template), [data-component~="ui-menu-group"]:not([component])))[hidden] {
|
|
24
24
|
display: none !important;
|
|
25
25
|
}
|
|
26
26
|
}
|
package/styles/ui-menu-item.css
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
/* Generated by HTML Next 1.0.0-alpha.
|
|
1
|
+
/* Generated by HTML Next 1.0.0-alpha.82. Do not edit. */
|
|
2
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; }
|
|
3
|
+
:where(:is([component]:not(template), [data-component]:not([component])), [data-slotted]) { --html-next-scope-owner: boundary; }
|
|
4
|
+
:where([data-slotted]:not(:is([component]:not(template), [data-component]:not([component])))) { --html-next-scope-owner: projected !important; }
|
|
5
5
|
}
|
|
6
6
|
@supports (-moz-appearance: none) {
|
|
7
|
-
[data-component~="ui-menu-item"] { --html-next-scope-owner: "ui-menu-item" !important; }
|
|
7
|
+
:is([component~="ui-menu-item"]:not(template), [data-component~="ui-menu-item"]:not([component])) { --html-next-scope-owner: "ui-menu-item" !important; }
|
|
8
8
|
}
|
|
9
|
-
@scope ([data-component~="ui-menu-item"]) to ([data-component], [data-slotted]) {
|
|
10
|
-
:scope:where([data-component~="ui-menu-item"]) {
|
|
9
|
+
@scope (:is([component~="ui-menu-item"]:not(template), [data-component~="ui-menu-item"]:not([component]))) to (:is([component]:not(template), [data-component]:not([component])), [data-slotted]) {
|
|
10
|
+
:scope:where(:is([component~="ui-menu-item"]:not(template), [data-component~="ui-menu-item"]:not([component]))) {
|
|
11
11
|
display: flex !important;
|
|
12
12
|
align-items: center !important;
|
|
13
13
|
gap: var(--ui-space-2) !important;
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
display: inline-flex !important;
|
|
41
41
|
}
|
|
42
42
|
|
|
43
|
-
:scope:where([data-component~="ui-menu-item"])[data-ui-menu-item-state~="tone=danger"] {
|
|
43
|
+
:scope:where(:is([component~="ui-menu-item"]:not(template), [data-component~="ui-menu-item"]:not([component])))[data-ui-menu-item-state~="tone=danger"] {
|
|
44
44
|
color: var(--ui-danger-subtle-text);
|
|
45
45
|
}
|
|
46
46
|
|
|
@@ -66,18 +66,18 @@
|
|
|
66
66
|
--_ui-default-icon-size: 0.75rem;
|
|
67
67
|
}
|
|
68
68
|
|
|
69
|
-
:scope:where([data-component~="ui-menu-item"])[data-ui-menu-item-state~="type=action"] .indicator {
|
|
69
|
+
:scope:where(:is([component~="ui-menu-item"]:not(template), [data-component~="ui-menu-item"]:not([component])))[data-ui-menu-item-state~="type=action"] .indicator {
|
|
70
70
|
display: none !important;
|
|
71
71
|
}
|
|
72
72
|
|
|
73
|
-
:scope:where([data-component~="ui-menu-item"])[data-ui-menu-item-state~="type=checkbox"][aria-checked="true"] .indicator {
|
|
73
|
+
:scope:where(:is([component~="ui-menu-item"]:not(template), [data-component~="ui-menu-item"]:not([component])))[data-ui-menu-item-state~="type=checkbox"][aria-checked="true"] .indicator {
|
|
74
74
|
border-color: var(--ui-accent);
|
|
75
75
|
background: var(--ui-accent);
|
|
76
76
|
}
|
|
77
77
|
|
|
78
78
|
/* A menu marks its chosen item with a check, as menus conventionally do; a radio circle reads
|
|
79
79
|
as a form control. The empty slot keeps unchosen labels aligned with the chosen one. */
|
|
80
|
-
:scope:where([data-component~="ui-menu-item"])[data-ui-menu-item-state~="type=radio"] .indicator {
|
|
80
|
+
:scope:where(:is([component~="ui-menu-item"]:not(template), [data-component~="ui-menu-item"]:not([component])))[data-ui-menu-item-state~="type=radio"] .indicator {
|
|
81
81
|
border-color: transparent;
|
|
82
82
|
color: var(--ui-text-secondary);
|
|
83
83
|
}
|
|
@@ -97,55 +97,55 @@
|
|
|
97
97
|
|
|
98
98
|
/* Keep the text row at the shared control height where cap trimming is available. */
|
|
99
99
|
@supports (text-box-trim: trim-both) {
|
|
100
|
-
:scope:where([data-component~="ui-menu-item"]) {
|
|
100
|
+
:scope:where(:is([component~="ui-menu-item"]:not(template), [data-component~="ui-menu-item"]:not([component]))) {
|
|
101
101
|
min-block-size: var(--ui-menu-item-min-block-size, var(--_ui-default-menu-item-min-block-size, var(--ui-control-size-md, 2.5rem)));
|
|
102
102
|
text-box-trim: trim-both;
|
|
103
103
|
text-box-edge: cap alphabetic;
|
|
104
104
|
}
|
|
105
105
|
}
|
|
106
106
|
|
|
107
|
-
:scope:where([data-component~="ui-menu-item"]):is(:hover, :focus-visible):not([aria-disabled="true"]) {
|
|
107
|
+
:scope:where(:is([component~="ui-menu-item"]:not(template), [data-component~="ui-menu-item"]:not([component]))):is(:hover, :focus-visible):not([aria-disabled="true"]) {
|
|
108
108
|
background: var(--ui-menu-item-hover-surface, var(--ui-accent-subtle));
|
|
109
109
|
}
|
|
110
110
|
|
|
111
|
-
:scope:where([data-component~="ui-menu-item"])[aria-checked="true"]:not([aria-disabled="true"]) {
|
|
111
|
+
:scope:where(:is([component~="ui-menu-item"]:not(template), [data-component~="ui-menu-item"]:not([component])))[aria-checked="true"]:not([aria-disabled="true"]) {
|
|
112
112
|
background: var(--ui-selection-surface);
|
|
113
113
|
color: var(--ui-selection-text);
|
|
114
114
|
}
|
|
115
115
|
|
|
116
|
-
:scope:where([data-component~="ui-menu-item"]):focus-visible {
|
|
116
|
+
:scope:where(:is([component~="ui-menu-item"]:not(template), [data-component~="ui-menu-item"]:not([component]))):focus-visible {
|
|
117
117
|
outline: var(--ui-focus-width) solid var(--ui-focus-ring);
|
|
118
118
|
outline-offset: calc(-1 * var(--ui-focus-width));
|
|
119
119
|
}
|
|
120
120
|
|
|
121
|
-
:scope:where([data-component~="ui-menu-item"])[aria-disabled="true"] {
|
|
121
|
+
:scope:where(:is([component~="ui-menu-item"]:not(template), [data-component~="ui-menu-item"]:not([component])))[aria-disabled="true"] {
|
|
122
122
|
background: var(--ui-disabled-surface);
|
|
123
123
|
color: var(--ui-disabled-text);
|
|
124
124
|
cursor: not-allowed;
|
|
125
125
|
}
|
|
126
126
|
|
|
127
|
-
:scope:where([data-component~="ui-menu-item"])[aria-disabled="true"] .indicator {
|
|
127
|
+
:scope:where(:is([component~="ui-menu-item"]:not(template), [data-component~="ui-menu-item"]:not([component])))[aria-disabled="true"] .indicator {
|
|
128
128
|
border-color: var(--ui-disabled-border);
|
|
129
129
|
background: transparent;
|
|
130
130
|
color: var(--ui-disabled-text);
|
|
131
131
|
}
|
|
132
132
|
|
|
133
|
-
:scope:where([data-component~="ui-menu-item"])[aria-disabled="true"] .indicator:where(:not([data-component], [data-slotted]))::after {
|
|
133
|
+
:scope:where(:is([component~="ui-menu-item"]:not(template), [data-component~="ui-menu-item"]:not([component])))[aria-disabled="true"] .indicator:where(:not(:is([component]:not(template), [data-component]:not([component])), [data-slotted]))::after {
|
|
134
134
|
background: var(--ui-disabled-text);
|
|
135
135
|
}
|
|
136
136
|
|
|
137
137
|
@media (forced-colors: active) {
|
|
138
|
-
:scope:where([data-component~="ui-menu-item"]):focus-visible {
|
|
138
|
+
:scope:where(:is([component~="ui-menu-item"]:not(template), [data-component~="ui-menu-item"]:not([component]))):focus-visible {
|
|
139
139
|
outline-color: Highlight;
|
|
140
140
|
}
|
|
141
141
|
}
|
|
142
142
|
|
|
143
143
|
/* A component that sets its display still honours the hidden attribute on its root. */
|
|
144
|
-
:scope:where([data-component~="ui-menu-item"])[hidden] {
|
|
144
|
+
:scope:where(:is([component~="ui-menu-item"]:not(template), [data-component~="ui-menu-item"]:not([component])))[hidden] {
|
|
145
145
|
display: none !important;
|
|
146
146
|
}
|
|
147
147
|
}
|
|
148
|
-
@scope ([data-component~="ui-menu-item"]) to ([data-component]) {
|
|
148
|
+
@scope (:is([component~="ui-menu-item"]:not(template), [data-component~="ui-menu-item"]:not([component]))) to (:is([component]:not(template), [data-component]:not([component]))) {
|
|
149
149
|
/* A named icon has a fixed column; an icon-enabled menu reserves it on every row. */
|
|
150
150
|
|
|
151
151
|
.icon :where([data-slotted], [data-slotted] *):is(svg) {
|