@threadlabs/looma 0.41.2 → 0.43.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/components/ui-action-bar/ui-action-bar.html +1 -7
- package/components/ui-affordance-scope/ui-affordance-scope.html +4 -4
- package/components/ui-avatar/ui-avatar.html +0 -22
- package/components/ui-avatar-group/ui-avatar-group.html +1 -11
- package/components/ui-badge/ui-badge.html +57 -78
- package/components/ui-button/ui-button.html +66 -90
- package/components/ui-button/ui-button.js +2 -2
- package/components/ui-callout/ui-callout.html +31 -69
- package/components/ui-card/ui-card.html +47 -21
- package/components/ui-checkbox/ui-checkbox.html +2 -16
- package/components/ui-cluster/ui-cluster.html +1 -7
- package/components/ui-combobox/ui-combobox.html +7 -70
- package/components/ui-container/ui-container.html +2 -12
- package/components/ui-context-menu/ui-context-menu.html +1 -23
- package/components/ui-dialog/ui-dialog.html +9 -41
- package/components/ui-disclosure/ui-disclosure.html +1 -15
- package/components/ui-editor-mention-menu/ui-editor-mention-menu.html +1 -1
- package/components/ui-editor-mention-menu-item/ui-editor-mention-menu-item.html +1 -1
- package/components/ui-editor-table-context-menu/ui-editor-table-context-menu.html +1 -1
- package/components/ui-editor-table-overlay/ui-editor-table-overlay.html +2 -2
- package/components/ui-editor-table-toolbar/ui-editor-table-toolbar.html +2 -2
- package/components/ui-floating-action-button/ui-floating-action-button.html +0 -14
- package/components/ui-form-field/ui-form-field.html +2 -32
- package/components/ui-grid/ui-grid.html +1 -11
- package/components/ui-icon/ui-icon.html +1 -12
- package/components/ui-icon-button/ui-icon-button.html +94 -94
- package/components/ui-input/ui-input.html +5 -55
- package/components/ui-input-group/ui-input-group.html +1 -13
- package/components/ui-light-editor/ui-light-editor.html +1 -1
- package/components/ui-list/ui-list.html +0 -10
- package/components/ui-list-item/ui-list-item.html +1 -19
- package/components/ui-listbox/ui-listbox.html +0 -21
- package/components/ui-menu/ui-menu.html +8 -32
- package/components/ui-menu-item/ui-menu-item.html +1 -27
- package/components/ui-meter/ui-meter.html +11 -6
- package/components/ui-nav-item/ui-nav-item.html +0 -18
- package/components/ui-popover/ui-popover.html +9 -41
- package/components/ui-radio/ui-radio.html +58 -12
- package/components/ui-radio-group/ui-radio-group.html +0 -5
- package/components/ui-reel/ui-reel.html +1 -11
- package/components/ui-search-result-row/ui-search-result-row.html +0 -34
- package/components/ui-search-shell/ui-search-shell.html +1 -43
- package/components/ui-section/ui-section.html +1 -1
- package/components/ui-select/ui-select.html +0 -42
- package/components/ui-separator/ui-separator.html +0 -6
- package/components/ui-sidebar/ui-sidebar.html +2 -24
- package/components/ui-site-header/ui-site-header.html +0 -25
- package/components/ui-skeleton/ui-skeleton.html +0 -9
- package/components/ui-stack/ui-stack.html +6 -11
- package/components/ui-status-message/ui-status-message.html +1 -1
- package/components/ui-swatch/ui-swatch.html +0 -5
- package/components/ui-switch/ui-switch.html +6 -17
- package/components/ui-switcher/ui-switcher.html +1 -11
- package/components/ui-tabs/ui-tabs.html +4 -22
- package/components/ui-text/ui-text.html +20 -7
- package/components/ui-textarea/ui-textarea.html +0 -50
- package/components/ui-toast/ui-toast.html +12 -27
- package/components/ui-toast-region/ui-toast-region.html +13 -34
- package/components/ui-tooltip/ui-tooltip.html +9 -53
- package/components/ui-top-bar/ui-top-bar.html +1 -31
- package/components/ui-tree/ui-tree.html +1 -16
- package/components/ui-tree-item/ui-tree-item.html +1 -23
- package/components/ui-tree-item/ui-tree-item.js +0 -1
- package/dist/index.js +1 -1
- package/docs/README.md +15 -9
- package/docs/catalog.json +973 -186
- package/docs/customizer-render.mjs +25 -9
- package/docs/customizer.js +42 -2
- package/docs/fonts.mjs +1 -1
- package/docs/palette.mjs +5 -4
- package/docs/theme.mjs +214 -51
- package/docs/value-editors.mjs +2 -1
- package/package.json +2 -2
- package/styles/ui-action-bar.css +3 -11
- package/styles/ui-affordance-scope.css +4 -4
- package/styles/ui-avatar-group.css +3 -15
- package/styles/ui-avatar.css +2 -26
- package/styles/ui-badge.css +56 -80
- package/styles/ui-button.css +65 -92
- package/styles/ui-callout.css +33 -73
- package/styles/ui-card.css +42 -18
- package/styles/ui-checkbox.css +4 -20
- package/styles/ui-cluster.css +2 -10
- package/styles/ui-combobox.css +7 -140
- package/styles/ui-container.css +2 -14
- package/styles/ui-context-menu.css +3 -27
- package/styles/ui-dialog.css +22 -88
- package/styles/ui-disclosure.css +3 -19
- package/styles/ui-editor-mention-menu-item.css +1 -1
- package/styles/ui-editor-mention-menu.css +1 -1
- package/styles/ui-editor-table-context-menu.css +1 -1
- package/styles/ui-editor-table-overlay.css +2 -2
- package/styles/ui-editor-table-toolbar.css +2 -2
- package/styles/ui-floating-action-button.css +2 -18
- package/styles/ui-form-field.css +4 -36
- package/styles/ui-grid.css +2 -14
- package/styles/ui-icon-button.css +93 -96
- package/styles/ui-icon.css +3 -16
- package/styles/ui-input-group.css +2 -14
- package/styles/ui-input.css +6 -57
- package/styles/ui-light-editor.css +2 -2
- package/styles/ui-list-item.css +3 -23
- package/styles/ui-list.css +2 -14
- package/styles/ui-listbox.css +2 -44
- package/styles/ui-menu-item.css +3 -31
- package/styles/ui-menu.css +11 -37
- package/styles/ui-meter.css +8 -4
- package/styles/ui-nav-item.css +2 -22
- package/styles/ui-popover.css +12 -46
- package/styles/ui-radio-group.css +1 -6
- package/styles/ui-radio.css +68 -15
- package/styles/ui-reel.css +2 -14
- package/styles/ui-search-result-row.css +2 -38
- package/styles/ui-search-shell.css +3 -47
- package/styles/ui-section.css +1 -1
- package/styles/ui-select.css +2 -46
- package/styles/ui-separator.css +2 -10
- package/styles/ui-sidebar.css +4 -28
- package/styles/ui-site-header.css +1 -26
- package/styles/ui-skeleton.css +2 -12
- package/styles/ui-stack.css +4 -12
- package/styles/ui-status-message.css +1 -1
- package/styles/ui-swatch.css +1 -6
- package/styles/ui-switch.css +8 -21
- package/styles/ui-switcher.css +2 -14
- package/styles/ui-tabs.css +6 -26
- package/styles/ui-text.css +11 -3
- package/styles/ui-textarea.css +2 -54
- package/styles/ui-toast-region.css +29 -73
- package/styles/ui-toast.css +24 -54
- package/styles/ui-tooltip.css +12 -58
- package/styles/ui-top-bar.css +3 -35
- package/styles/ui-tree-item.css +5 -51
- package/styles/ui-tree.css +3 -20
- package/theme-system.css +16 -10
- package/tokens.css +75 -18
- package/vanilla/UiBadge.d.ts +1 -1
- package/vanilla/UiBadge.js +1 -1
- package/vanilla/UiButton.d.ts +1 -1
- package/vanilla/UiButton.js +1 -1
- package/vanilla/UiCard.d.ts +1 -1
- package/vanilla/UiCard.js +1 -1
- package/vanilla/UiIconButton.d.ts +1 -1
- package/vanilla/UiIconButton.js +1 -1
- package/vanilla/UiMeter.d.ts +1 -1
- package/vanilla/UiMeter.js +1 -1
- package/vanilla/UiStack.js +1 -1
- package/vanilla/UiText.d.ts +1 -1
- package/vanilla/UiText.js +1 -1
- package/vue/UiActionBar.vue +3 -9
- package/vue/UiAffordanceScope.vue +4 -4
- package/vue/UiAvatar.vue +1 -28
- package/vue/UiAvatarGroup.vue +1 -11
- package/vue/UiBadge.d.ts +2 -2
- package/vue/UiBadge.vue +84 -81
- package/vue/UiButton.d.ts +2 -2
- package/vue/UiButton.vue +120 -106
- package/vue/UiCallout.vue +31 -72
- package/vue/UiCard.d.ts +2 -2
- package/vue/UiCard.vue +77 -32
- package/vue/UiCheckbox.vue +2 -16
- package/vue/UiCluster.vue +1 -10
- package/vue/UiCombobox.vue +13 -72
- package/vue/UiContainer.vue +1 -13
- package/vue/UiContextMenu.vue +1 -30
- package/vue/UiDialog.vue +23 -77
- package/vue/UiDisclosure.vue +1 -15
- package/vue/UiEditorMentionMenu.vue +1 -1
- package/vue/UiEditorMentionMenuItem.vue +1 -1
- package/vue/UiEditorTableContextMenu.vue +1 -1
- package/vue/UiEditorTableOverlay.vue +2 -2
- package/vue/UiEditorTableToolbar.vue +2 -2
- package/vue/UiFloatingActionButton.vue +0 -22
- package/vue/UiFormField.vue +6 -33
- package/vue/UiGrid.vue +1 -13
- package/vue/UiIcon.vue +1 -16
- package/vue/UiIconButton.d.ts +2 -2
- package/vue/UiIconButton.vue +145 -106
- package/vue/UiInput.vue +1 -54
- package/vue/UiInputGroup.vue +8 -20
- package/vue/UiLightEditor.vue +2 -2
- package/vue/UiList.vue +2 -12
- package/vue/UiListItem.vue +8 -26
- package/vue/UiListbox.vue +0 -23
- package/vue/UiMenu.vue +12 -44
- package/vue/UiMenuItem.vue +1 -27
- package/vue/UiMeter.d.ts +2 -2
- package/vue/UiMeter.vue +47 -12
- package/vue/UiNavItem.vue +3 -21
- package/vue/UiPopover.vue +12 -53
- package/vue/UiRadio.vue +58 -12
- package/vue/UiRadioGroup.vue +0 -11
- package/vue/UiReel.vue +1 -11
- package/vue/UiSearchResultRow.vue +0 -35
- package/vue/UiSearchShell.vue +1 -53
- package/vue/UiSection.vue +1 -1
- package/vue/UiSelect.vue +0 -42
- package/vue/UiSeparator.vue +0 -7
- package/vue/UiSidebar.vue +3 -26
- package/vue/UiSiteHeader.vue +0 -24
- package/vue/UiSkeleton.vue +0 -9
- package/vue/UiStack.vue +6 -11
- package/vue/UiStatusMessage.vue +1 -1
- package/vue/UiSwatch.vue +1 -6
- package/vue/UiSwitch.vue +6 -17
- package/vue/UiSwitcher.vue +1 -14
- package/vue/UiTabs.vue +4 -22
- package/vue/UiText.d.ts +2 -2
- package/vue/UiText.vue +30 -5
- package/vue/UiTextarea.vue +0 -50
- package/vue/UiToast.vue +26 -34
- package/vue/UiToastRegion.vue +26 -55
- package/vue/UiTooltip.vue +12 -64
- package/vue/UiTopBar.vue +1 -34
- package/vue/UiTree.vue +2 -17
- package/vue/UiTreeItem.vue +2 -28
- package/vue/chunks/UiActionBar.js +1 -1
- package/vue/chunks/UiAffordanceScope.js +1 -1
- package/vue/chunks/UiAvatar.js +1 -1
- package/vue/chunks/UiAvatarGroup.js +1 -1
- package/vue/chunks/UiBadge.js +4 -2
- package/vue/chunks/UiButton.js +4 -2
- package/vue/chunks/UiCallout.js +1 -1
- package/vue/chunks/UiCard.js +5 -3
- package/vue/chunks/UiCheckbox.js +1 -1
- package/vue/chunks/UiCluster.js +2 -2
- package/vue/chunks/UiCombobox.js +3 -3
- package/vue/chunks/UiContainer.js +2 -2
- package/vue/chunks/UiContextMenu.js +1 -1
- package/vue/chunks/UiDialog.js +1 -1
- package/vue/chunks/UiDisclosure.js +1 -1
- package/vue/chunks/UiEditorMentionMenu.js +1 -1
- package/vue/chunks/UiEditorMentionMenuItem.js +1 -1
- package/vue/chunks/UiEditorTableContextMenu.js +1 -1
- package/vue/chunks/UiEditorTableOverlay.js +1 -1
- package/vue/chunks/UiEditorTableToolbar.js +1 -1
- package/vue/chunks/UiFloatingActionButton.js +1 -1
- package/vue/chunks/UiFormField.js +1 -1
- package/vue/chunks/UiGrid.js +2 -2
- package/vue/chunks/UiIcon.js +1 -1
- package/vue/chunks/UiIconButton.js +4 -2
- package/vue/chunks/UiInput.js +1 -1
- package/vue/chunks/UiInputGroup.js +1 -1
- package/vue/chunks/UiLightEditor.js +1 -1
- package/vue/chunks/UiList.js +1 -1
- package/vue/chunks/UiListItem.js +1 -1
- package/vue/chunks/UiListbox.js +1 -1
- package/vue/chunks/UiMenu.js +1 -1
- package/vue/chunks/UiMenuItem.js +1 -1
- package/vue/chunks/UiMeter.js +4 -2
- package/vue/chunks/UiNavItem.js +1 -1
- package/vue/chunks/UiPopover.js +1 -1
- package/vue/chunks/UiRadio.js +1 -1
- package/vue/chunks/UiRadioGroup.js +1 -1
- package/vue/chunks/UiReel.js +2 -2
- package/vue/chunks/UiSearchResultRow.js +1 -1
- package/vue/chunks/UiSearchShell.js +1 -1
- package/vue/chunks/UiSection.js +1 -1
- package/vue/chunks/UiSelect.js +1 -1
- package/vue/chunks/UiSeparator.js +1 -1
- package/vue/chunks/UiSidebar.js +1 -1
- package/vue/chunks/UiSiteHeader.js +1 -1
- package/vue/chunks/UiSkeleton.js +1 -1
- package/vue/chunks/UiStack.js +3 -3
- package/vue/chunks/UiStatusMessage.js +1 -1
- package/vue/chunks/UiSwatch.js +1 -1
- package/vue/chunks/UiSwitch.js +1 -1
- package/vue/chunks/UiSwitcher.js +2 -2
- package/vue/chunks/UiTabs.js +1 -1
- package/vue/chunks/UiText.js +4 -2
- package/vue/chunks/UiTextarea.js +1 -1
- package/vue/chunks/UiToast.js +1 -1
- package/vue/chunks/UiToastRegion.js +1 -1
- package/vue/chunks/UiTooltip.js +1 -1
- package/vue/chunks/UiTopBar.js +1 -1
- package/vue/chunks/UiTree.js +1 -1
- package/vue/chunks/UiTreeItem.js +1 -1
- package/vue/components.css +857 -2184
- package/vue/editor/index.js +8 -2
package/styles/ui-disclosure.css
CHANGED
|
@@ -7,23 +7,9 @@
|
|
|
7
7
|
[data-component~="ui-disclosure"] { --html-next-scope-owner: "ui-disclosure" !important; }
|
|
8
8
|
}
|
|
9
9
|
@scope ([data-component~="ui-disclosure"]) to ([data-component], [data-slotted]) {
|
|
10
|
-
/*
|
|
11
|
-
@property --ui-disclosure-trigger-min-block-size {
|
|
12
|
-
syntax: "*";
|
|
13
|
-
inherits: false;
|
|
14
|
-
}
|
|
15
|
-
@property --ui-disclosure-trigger-padding-block {
|
|
16
|
-
syntax: "*";
|
|
17
|
-
inherits: false;
|
|
18
|
-
}
|
|
19
|
-
@property --ui-disclosure-trigger-padding-inline {
|
|
20
|
-
syntax: "*";
|
|
21
|
-
inherits: false;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
/* Density resolves into the summary row's own values; the public tokens still override them. */
|
|
10
|
+
/* Density resolves into the summary row's own values; the public tokens still override them. */
|
|
25
11
|
:scope:where([data-component~="ui-disclosure"]) {
|
|
26
|
-
/*
|
|
12
|
+
/* Resolve shared part values at the component root. */
|
|
27
13
|
--_ui-disclosure-trigger-min-block-size: var(--ui-disclosure-trigger-min-block-size);
|
|
28
14
|
--_ui-disclosure-trigger-padding-block: var(--ui-disclosure-trigger-padding-block);
|
|
29
15
|
--_ui-disclosure-trigger-padding-inline: var(--ui-disclosure-trigger-padding-inline);
|
|
@@ -205,9 +191,7 @@
|
|
|
205
191
|
}
|
|
206
192
|
}
|
|
207
193
|
@scope ([data-component~="ui-disclosure"]) to ([data-component]) {
|
|
208
|
-
/*
|
|
209
|
-
|
|
210
|
-
/* Density resolves into the summary row's own values; the public tokens still override them. */
|
|
194
|
+
/* Density resolves into the summary row's own values; the public tokens still override them. */
|
|
211
195
|
|
|
212
196
|
/* An accordion row, not a field: no enclosing box, just a divider, so it never reads as a
|
|
213
197
|
* select or combobox. Stacked disclosures share their dividers. */
|
|
@@ -110,7 +110,7 @@
|
|
|
110
110
|
width: 32px;
|
|
111
111
|
height: 32px;
|
|
112
112
|
flex: 0 0 auto;
|
|
113
|
-
color: var(--ui-accent-
|
|
113
|
+
color: var(--ui-accent-subtle-text);
|
|
114
114
|
background: var(--ui-accent-soft, var(--ui-accent-subtle));
|
|
115
115
|
border-radius: var(--ui-radius-round);
|
|
116
116
|
font-size: var(--ui-font-size-xs);
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
}
|
|
69
69
|
|
|
70
70
|
:scope:where([data-component~="ui-editor-table-context-menu"]) button.danger {
|
|
71
|
-
color: var(--ui-danger);
|
|
71
|
+
color: var(--ui-danger-subtle-text);
|
|
72
72
|
}
|
|
73
73
|
|
|
74
74
|
/* Swatches wrap like words: the row asks for the menu's full width, and a narrower menu fits fewer. */
|
|
@@ -149,7 +149,7 @@
|
|
|
149
149
|
height: var(--ui-affordance-guide-size);
|
|
150
150
|
border-radius: var(--ui-radius-round);
|
|
151
151
|
background: var(--ui-affordance-guide-color, var(--ui-border-strong));
|
|
152
|
-
opacity: calc(var(--ui-affordance-guide-opacity) * var(--
|
|
152
|
+
opacity: calc(var(--ui-affordance-guide-opacity) * var(--_ui-affordance-scope-guide, 1));
|
|
153
153
|
transition: opacity var(--ui-affordance-motion, var(--ui-motion-fast)) var(--ui-motion-ease);
|
|
154
154
|
}
|
|
155
155
|
|
|
@@ -244,7 +244,7 @@
|
|
|
244
244
|
inset: 50% auto auto 50%;
|
|
245
245
|
border-radius: var(--ui-radius-round);
|
|
246
246
|
background: var(--ui-affordance-guide-color, var(--ui-border-strong));
|
|
247
|
-
opacity: calc(var(--ui-affordance-guide-opacity) * var(--
|
|
247
|
+
opacity: calc(var(--ui-affordance-guide-opacity) * var(--_ui-affordance-scope-guide, 1));
|
|
248
248
|
transform: translate(-50%, -50%);
|
|
249
249
|
transition: opacity var(--ui-affordance-motion, var(--ui-motion-fast)) var(--ui-motion-ease);
|
|
250
250
|
pointer-events: none;
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
|
|
82
82
|
:scope:where([data-component~="ui-editor-table-toolbar"]) button.active {
|
|
83
83
|
background: var(--ui-accent-soft, var(--ui-accent-subtle));
|
|
84
|
-
color: var(--ui-accent-
|
|
84
|
+
color: var(--ui-accent-subtle-text);
|
|
85
85
|
}
|
|
86
86
|
|
|
87
87
|
.group button {
|
|
@@ -98,7 +98,7 @@
|
|
|
98
98
|
}
|
|
99
99
|
|
|
100
100
|
:scope:where([data-component~="ui-editor-table-toolbar"]) button.danger {
|
|
101
|
-
color: var(--ui-danger);
|
|
101
|
+
color: var(--ui-danger-subtle-text);
|
|
102
102
|
}
|
|
103
103
|
|
|
104
104
|
:scope:where([data-component~="ui-editor-table-toolbar"]) {
|
|
@@ -7,21 +7,7 @@
|
|
|
7
7
|
[data-component~="ui-floating-action-button"] { --html-next-scope-owner: "ui-floating-action-button" !important; }
|
|
8
8
|
}
|
|
9
9
|
@scope ([data-component~="ui-floating-action-button"]) to ([data-component], [data-slotted]) {
|
|
10
|
-
|
|
11
|
-
@property --ui-floating-action-button-inset-block-end {
|
|
12
|
-
syntax: "*";
|
|
13
|
-
inherits: false;
|
|
14
|
-
}
|
|
15
|
-
@property --ui-floating-action-button-inset-inline-end {
|
|
16
|
-
syntax: "*";
|
|
17
|
-
inherits: false;
|
|
18
|
-
}
|
|
19
|
-
@property --ui-floating-action-button-z-index {
|
|
20
|
-
syntax: "*";
|
|
21
|
-
inherits: false;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
:scope:where([data-component~="ui-floating-action-button"]) {
|
|
10
|
+
:scope:where([data-component~="ui-floating-action-button"]) {
|
|
25
11
|
position: fixed;
|
|
26
12
|
inset-block-end: calc(var(--ui-floating-action-button-inset-block-end, var(--ui-space-6)) + env(safe-area-inset-bottom));
|
|
27
13
|
inset-inline-end: max(
|
|
@@ -86,9 +72,7 @@
|
|
|
86
72
|
}
|
|
87
73
|
}
|
|
88
74
|
@scope ([data-component~="ui-floating-action-button"]) to ([data-component]) {
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
:where([data-slotted], [data-slotted] *):is(svg) {
|
|
75
|
+
:where([data-slotted], [data-slotted] *):is(svg) {
|
|
92
76
|
inline-size: var(--ui-icon-size-lg);
|
|
93
77
|
block-size: var(--ui-icon-size-lg);
|
|
94
78
|
flex-shrink: 0;
|
package/styles/ui-form-field.css
CHANGED
|
@@ -7,38 +7,8 @@
|
|
|
7
7
|
[data-component~="ui-form-field"] { --html-next-scope-owner: "ui-form-field" !important; }
|
|
8
8
|
}
|
|
9
9
|
@scope ([data-component~="ui-form-field"]) to ([data-component], [data-slotted]) {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
syntax: "*";
|
|
13
|
-
inherits: false;
|
|
14
|
-
}
|
|
15
|
-
@property --ui-form-field-help-font-size {
|
|
16
|
-
syntax: "*";
|
|
17
|
-
inherits: false;
|
|
18
|
-
}
|
|
19
|
-
@property --ui-form-field-help-min-block-size {
|
|
20
|
-
syntax: "*";
|
|
21
|
-
inherits: false;
|
|
22
|
-
}
|
|
23
|
-
@property --ui-form-field-help-text {
|
|
24
|
-
syntax: "*";
|
|
25
|
-
inherits: false;
|
|
26
|
-
}
|
|
27
|
-
@property --ui-form-field-label-font-size {
|
|
28
|
-
syntax: "*";
|
|
29
|
-
inherits: false;
|
|
30
|
-
}
|
|
31
|
-
@property --ui-form-field-label-text {
|
|
32
|
-
syntax: "*";
|
|
33
|
-
inherits: false;
|
|
34
|
-
}
|
|
35
|
-
@property --ui-form-field-min-inline-size {
|
|
36
|
-
syntax: "*";
|
|
37
|
-
inherits: false;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
:scope:where([data-component~="ui-form-field"]) {
|
|
41
|
-
/* Hooks do not inherit, so the parts below read them from the root. */
|
|
10
|
+
:scope:where([data-component~="ui-form-field"]) {
|
|
11
|
+
/* Resolve shared part values at the component root. */
|
|
42
12
|
--_ui-form-field-danger: var(--ui-form-field-danger);
|
|
43
13
|
--_ui-form-field-help-min-block-size: var(--ui-form-field-help-min-block-size);
|
|
44
14
|
--_ui-form-field-label-text: var(--ui-form-field-label-text);
|
|
@@ -63,7 +33,7 @@
|
|
|
63
33
|
|
|
64
34
|
.label {
|
|
65
35
|
color: var(--_ui-form-field-label-text, var(--ui-text-secondary));
|
|
66
|
-
font-size: var(--_ui-form-field-label-font-size, var(--ui-font-size-
|
|
36
|
+
font-size: var(--_ui-form-field-label-font-size, var(--ui-field-label-font-size, var(--ui-font-size-md)));
|
|
67
37
|
}
|
|
68
38
|
|
|
69
39
|
/* A label action, such as a small help button, sits after the label text in a box one line
|
|
@@ -107,9 +77,7 @@
|
|
|
107
77
|
}
|
|
108
78
|
}
|
|
109
79
|
@scope ([data-component~="ui-form-field"]) to ([data-component]) {
|
|
110
|
-
/*
|
|
111
|
-
|
|
112
|
-
/* Each named region styles whatever fills it, however it was slotted (slot="…" in HTML, #label
|
|
80
|
+
/* Each named region styles whatever fills it, however it was slotted (slot="…" in HTML, #label
|
|
113
81
|
in Vue), and generates no box of its own, so an empty region adds no gap. */
|
|
114
82
|
|
|
115
83
|
/* A label action, such as a small help button, sits after the label text in a box one line
|
package/styles/ui-grid.css
CHANGED
|
@@ -7,17 +7,7 @@
|
|
|
7
7
|
[data-component~="ui-grid"] { --html-next-scope-owner: "ui-grid" !important; }
|
|
8
8
|
}
|
|
9
9
|
@scope ([data-component~="ui-grid"]) to ([data-component], [data-slotted]) {
|
|
10
|
-
|
|
11
|
-
@property --ui-grid-gap {
|
|
12
|
-
syntax: "*";
|
|
13
|
-
inherits: false;
|
|
14
|
-
}
|
|
15
|
-
@property --ui-grid-min {
|
|
16
|
-
syntax: "*";
|
|
17
|
-
inherits: false;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
:scope:where([data-component~="ui-grid"]) {
|
|
10
|
+
:scope:where([data-component~="ui-grid"]) {
|
|
21
11
|
--_grid-gap: var(--ui-space-4);
|
|
22
12
|
--_grid-min: 12rem;
|
|
23
13
|
display: grid !important;
|
|
@@ -69,7 +59,5 @@
|
|
|
69
59
|
}
|
|
70
60
|
}
|
|
71
61
|
@scope ([data-component~="ui-grid"]) to ([data-component]) {
|
|
72
|
-
/*
|
|
73
|
-
|
|
74
|
-
/* A component that sets its display still honours the hidden attribute on its root. */
|
|
62
|
+
/* A component that sets its display still honours the hidden attribute on its root. */
|
|
75
63
|
}
|
|
@@ -7,88 +7,14 @@
|
|
|
7
7
|
[data-component~="ui-icon-button"] { --html-next-scope-owner: "ui-icon-button" !important; }
|
|
8
8
|
}
|
|
9
9
|
@scope ([data-component~="ui-icon-button"]) to ([data-component], [data-slotted]) {
|
|
10
|
-
|
|
11
|
-
@property --ui-icon-button-active-scale {
|
|
12
|
-
syntax: "*";
|
|
13
|
-
inherits: false;
|
|
14
|
-
}
|
|
15
|
-
@property --ui-icon-button-active-surface {
|
|
16
|
-
syntax: "*";
|
|
17
|
-
inherits: false;
|
|
18
|
-
}
|
|
19
|
-
@property --ui-icon-button-border {
|
|
20
|
-
syntax: "*";
|
|
21
|
-
inherits: false;
|
|
22
|
-
}
|
|
23
|
-
@property --ui-icon-button-disabled-filter {
|
|
24
|
-
syntax: "*";
|
|
25
|
-
inherits: false;
|
|
26
|
-
}
|
|
27
|
-
@property --ui-icon-button-disabled-opacity {
|
|
28
|
-
syntax: "*";
|
|
29
|
-
inherits: false;
|
|
30
|
-
}
|
|
31
|
-
@property --ui-icon-button-hover-border {
|
|
32
|
-
syntax: "*";
|
|
33
|
-
inherits: false;
|
|
34
|
-
}
|
|
35
|
-
@property --ui-icon-button-hover-surface {
|
|
36
|
-
syntax: "*";
|
|
37
|
-
inherits: false;
|
|
38
|
-
}
|
|
39
|
-
@property --ui-icon-button-hover-text {
|
|
40
|
-
syntax: "*";
|
|
41
|
-
inherits: false;
|
|
42
|
-
}
|
|
43
|
-
@property --ui-icon-button-icon-size {
|
|
44
|
-
syntax: "*";
|
|
45
|
-
inherits: false;
|
|
46
|
-
}
|
|
47
|
-
@property --ui-icon-button-icon-stroke-width {
|
|
48
|
-
syntax: "*";
|
|
49
|
-
inherits: false;
|
|
50
|
-
}
|
|
51
|
-
@property --ui-icon-button-outline-surface {
|
|
52
|
-
syntax: "*";
|
|
53
|
-
inherits: false;
|
|
54
|
-
}
|
|
55
|
-
@property --ui-icon-button-outline-text {
|
|
56
|
-
syntax: "*";
|
|
57
|
-
inherits: false;
|
|
58
|
-
}
|
|
59
|
-
@property --ui-icon-button-radius {
|
|
60
|
-
syntax: "*";
|
|
61
|
-
inherits: false;
|
|
62
|
-
}
|
|
63
|
-
@property --ui-icon-button-size {
|
|
64
|
-
syntax: "*";
|
|
65
|
-
inherits: false;
|
|
66
|
-
}
|
|
67
|
-
@property --ui-icon-button-solid-hover-surface {
|
|
68
|
-
syntax: "*";
|
|
69
|
-
inherits: false;
|
|
70
|
-
}
|
|
71
|
-
@property --ui-icon-button-solid-shadow {
|
|
72
|
-
syntax: "*";
|
|
73
|
-
inherits: false;
|
|
74
|
-
}
|
|
75
|
-
@property --ui-icon-button-solid-surface {
|
|
76
|
-
syntax: "*";
|
|
77
|
-
inherits: false;
|
|
78
|
-
}
|
|
79
|
-
@property --ui-icon-button-solid-text {
|
|
80
|
-
syntax: "*";
|
|
81
|
-
inherits: false;
|
|
82
|
-
}
|
|
83
|
-
@property --ui-icon-button-surface {
|
|
84
|
-
syntax: "*";
|
|
85
|
-
inherits: false;
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
:scope:where([data-component~="ui-icon-button"]) {
|
|
10
|
+
:scope:where([data-component~="ui-icon-button"]) {
|
|
89
11
|
/* Optional inherited action-group values keep text and icon actions under the same light.
|
|
90
12
|
One fine top/start highlight follows the bottom/end lowlight at a joined action seam.
|
|
91
13
|
The shared theme supplies reflections and glow independently of the resting lift. */
|
|
14
|
+
--_solid-border: var(--ui-accent-border, var(--ui-accent-solid));
|
|
15
|
+
--_solid-hover-border: var(--ui-accent-hover-border, var(--ui-accent-hover));
|
|
16
|
+
--_solid-active-border: var(--ui-accent-active-border, var(--ui-accent-active));
|
|
17
|
+
--_solid-active-surface: var(--ui-accent-active, var(--ui-accent-hover));
|
|
92
18
|
--_tone-highlight: var(--ui-accent-highlight, none);
|
|
93
19
|
--_tone-glow: var(--ui-accent-glow, 0 0 transparent);
|
|
94
20
|
--_ui-action-start: 1px;
|
|
@@ -98,7 +24,7 @@
|
|
|
98
24
|
inset calc(-1 * var(--_ui-action-start)) -1px 0 light-dark(rgb(0 0 0 / 0.08), rgb(0 0 0 / 0.08))
|
|
99
25
|
);
|
|
100
26
|
--_ui-action-shadow: var(--_ui-action-edge), 0 1px 2px light-dark(rgb(0 0 0 / 0.10), rgb(0 0 0 / 0.20));
|
|
101
|
-
/*
|
|
27
|
+
/* Resolve shared part values at the component root. */
|
|
102
28
|
--_ui-icon-button-icon-size: var(--ui-icon-button-icon-size);
|
|
103
29
|
--_ui-icon-button-icon-stroke-width: var(--ui-icon-button-icon-stroke-width);
|
|
104
30
|
|
|
@@ -110,21 +36,63 @@
|
|
|
110
36
|
--_ui-action-start: -1px;
|
|
111
37
|
}
|
|
112
38
|
|
|
39
|
+
:scope:where([data-component~="ui-icon-button"])[data-tone="accent-secondary"] {
|
|
40
|
+
--_solid-border: var(--ui-accent-secondary-border, var(--ui-accent-secondary));
|
|
41
|
+
--_solid-hover-border: var(--ui-accent-secondary-hover-border, var(--ui-accent-secondary-hover));
|
|
42
|
+
--_solid-active-border: var(--ui-accent-secondary-active-border, var(--ui-accent-secondary-active));
|
|
43
|
+
--_solid-active-surface: var(--ui-accent-secondary-active, var(--ui-accent-secondary-hover));
|
|
44
|
+
--_tone-highlight: var(--ui-accent-secondary-highlight, none);
|
|
45
|
+
--_tone-glow: var(--ui-accent-secondary-glow, 0 0 transparent);
|
|
46
|
+
--_icon-button-border: var(--ui-accent-secondary-subtle-text);
|
|
47
|
+
--_icon-button-hover-border: var(--ui-accent-secondary-subtle-text);
|
|
48
|
+
--_icon-button-text: var(--ui-accent-secondary-subtle-text, var(--ui-accent-secondary-solid));
|
|
49
|
+
--_icon-button-outline-surface: color-mix(in srgb, var(--ui-accent-secondary-solid) 5%, var(--ui-surface-default));
|
|
50
|
+
--_icon-button-solid-surface: var(--ui-accent-secondary);
|
|
51
|
+
--_icon-button-solid-hover-surface: var(--ui-accent-secondary-hover);
|
|
52
|
+
--_icon-button-solid-text: var(--ui-on-accent-secondary);
|
|
53
|
+
color: var(--_icon-button-text);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
:scope:where([data-component~="ui-icon-button"])[data-tone="accent-tertiary"] {
|
|
57
|
+
--_solid-border: var(--ui-accent-tertiary-border, var(--ui-accent-tertiary));
|
|
58
|
+
--_solid-hover-border: var(--ui-accent-tertiary-hover-border, var(--ui-accent-tertiary-hover));
|
|
59
|
+
--_solid-active-border: var(--ui-accent-tertiary-active-border, var(--ui-accent-tertiary-active));
|
|
60
|
+
--_solid-active-surface: var(--ui-accent-tertiary-active, var(--ui-accent-tertiary-hover));
|
|
61
|
+
--_tone-highlight: var(--ui-accent-tertiary-highlight, none);
|
|
62
|
+
--_tone-glow: var(--ui-accent-tertiary-glow, 0 0 transparent);
|
|
63
|
+
--_icon-button-border: var(--ui-accent-tertiary-subtle-text);
|
|
64
|
+
--_icon-button-hover-border: var(--ui-accent-tertiary-subtle-text);
|
|
65
|
+
--_icon-button-text: var(--ui-accent-tertiary-subtle-text, var(--ui-accent-tertiary-solid));
|
|
66
|
+
--_icon-button-outline-surface: color-mix(in srgb, var(--ui-accent-tertiary-solid) 5%, var(--ui-surface-default));
|
|
67
|
+
--_icon-button-solid-surface: var(--ui-accent-tertiary);
|
|
68
|
+
--_icon-button-solid-hover-surface: var(--ui-accent-tertiary-hover);
|
|
69
|
+
--_icon-button-solid-text: var(--ui-on-accent-tertiary);
|
|
70
|
+
color: var(--_icon-button-text);
|
|
71
|
+
}
|
|
72
|
+
|
|
113
73
|
:scope:where([data-component~="ui-icon-button"])[data-tone="accent"] {
|
|
74
|
+
--_solid-border: var(--ui-accent-border, var(--ui-accent));
|
|
75
|
+
--_solid-hover-border: var(--ui-accent-hover-border, var(--ui-accent-hover));
|
|
76
|
+
--_solid-active-border: var(--ui-accent-active-border, var(--ui-accent-active));
|
|
77
|
+
--_solid-active-surface: var(--ui-accent-active, var(--ui-accent-hover));
|
|
114
78
|
--_tone-highlight: var(--ui-accent-highlight, none);
|
|
115
79
|
--_tone-glow: var(--ui-accent-glow, 0 0 transparent);
|
|
116
|
-
--_icon-button-border: var(--ui-accent-
|
|
117
|
-
--_icon-button-hover-border: var(--ui-accent-
|
|
80
|
+
--_icon-button-border: var(--ui-accent-subtle-text);
|
|
81
|
+
--_icon-button-hover-border: var(--ui-accent-subtle-text);
|
|
118
82
|
--_icon-button-text: var(--ui-accent-subtle-text, var(--ui-accent-solid));
|
|
119
83
|
--_icon-button-outline-surface: color-mix(in srgb, var(--ui-accent-solid) 5%, var(--ui-surface-default));
|
|
120
84
|
color: var(--_icon-button-text);
|
|
121
85
|
}
|
|
122
86
|
|
|
123
87
|
:scope:where([data-component~="ui-icon-button"])[data-tone="danger"] {
|
|
88
|
+
--_solid-border: var(--ui-danger-border, var(--ui-danger));
|
|
89
|
+
--_solid-hover-border: var(--ui-danger-hover-border, var(--ui-danger-hover));
|
|
90
|
+
--_solid-active-border: var(--ui-danger-active-border, var(--ui-danger-active));
|
|
91
|
+
--_solid-active-surface: var(--ui-danger-active, var(--ui-danger-hover));
|
|
124
92
|
--_tone-highlight: var(--ui-danger-highlight, none);
|
|
125
93
|
--_tone-glow: var(--ui-danger-glow, 0 0 transparent);
|
|
126
|
-
--_icon-button-border: var(--ui-danger);
|
|
127
|
-
--_icon-button-hover-border: var(--ui-danger-
|
|
94
|
+
--_icon-button-border: var(--ui-danger-subtle-text);
|
|
95
|
+
--_icon-button-hover-border: var(--ui-danger-subtle-text);
|
|
128
96
|
--_icon-button-text: var(--ui-danger-subtle-text);
|
|
129
97
|
--_icon-button-outline-surface: color-mix(in srgb, var(--ui-danger) 5%, var(--ui-surface-default));
|
|
130
98
|
--_icon-button-solid-surface: var(--ui-danger);
|
|
@@ -134,10 +102,14 @@
|
|
|
134
102
|
}
|
|
135
103
|
|
|
136
104
|
:scope:where([data-component~="ui-icon-button"])[data-tone="success"] {
|
|
105
|
+
--_solid-border: var(--ui-success-border, var(--ui-success));
|
|
106
|
+
--_solid-hover-border: var(--ui-success-hover-border, var(--ui-success-hover));
|
|
107
|
+
--_solid-active-border: var(--ui-success-active-border, var(--ui-success-active));
|
|
108
|
+
--_solid-active-surface: var(--ui-success-active, var(--ui-success-hover));
|
|
137
109
|
--_tone-highlight: var(--ui-success-highlight, none);
|
|
138
110
|
--_tone-glow: var(--ui-success-glow, 0 0 transparent);
|
|
139
|
-
--_icon-button-border: var(--ui-success);
|
|
140
|
-
--_icon-button-hover-border: var(--ui-success-
|
|
111
|
+
--_icon-button-border: var(--ui-success-subtle-text);
|
|
112
|
+
--_icon-button-hover-border: var(--ui-success-subtle-text);
|
|
141
113
|
--_icon-button-text: var(--ui-success-subtle-text);
|
|
142
114
|
--_icon-button-outline-surface: color-mix(in srgb, var(--ui-success) 5%, var(--ui-surface-default));
|
|
143
115
|
--_icon-button-solid-surface: var(--ui-success);
|
|
@@ -147,10 +119,14 @@
|
|
|
147
119
|
}
|
|
148
120
|
|
|
149
121
|
:scope:where([data-component~="ui-icon-button"])[data-tone="warning"] {
|
|
122
|
+
--_solid-border: var(--ui-warning-border, var(--ui-warning));
|
|
123
|
+
--_solid-hover-border: var(--ui-warning-hover-border, var(--ui-warning-hover));
|
|
124
|
+
--_solid-active-border: var(--ui-warning-active-border, var(--ui-warning-active));
|
|
125
|
+
--_solid-active-surface: var(--ui-warning-active, var(--ui-warning-hover));
|
|
150
126
|
--_tone-highlight: var(--ui-warning-highlight, none);
|
|
151
127
|
--_tone-glow: var(--ui-warning-glow, 0 0 transparent);
|
|
152
|
-
--_icon-button-border: var(--ui-warning);
|
|
153
|
-
--_icon-button-hover-border: var(--ui-warning-
|
|
128
|
+
--_icon-button-border: var(--ui-warning-subtle-text);
|
|
129
|
+
--_icon-button-hover-border: var(--ui-warning-subtle-text);
|
|
154
130
|
--_icon-button-text: var(--ui-warning-subtle-text);
|
|
155
131
|
--_icon-button-outline-surface: color-mix(in srgb, var(--ui-warning) 5%, var(--ui-surface-default));
|
|
156
132
|
--_icon-button-solid-surface: var(--ui-warning);
|
|
@@ -160,10 +136,14 @@
|
|
|
160
136
|
}
|
|
161
137
|
|
|
162
138
|
:scope:where([data-component~="ui-icon-button"])[data-tone="info"] {
|
|
139
|
+
--_solid-border: var(--ui-info-border, var(--ui-info));
|
|
140
|
+
--_solid-hover-border: var(--ui-info-hover-border, var(--ui-info-hover));
|
|
141
|
+
--_solid-active-border: var(--ui-info-active-border, var(--ui-info-active));
|
|
142
|
+
--_solid-active-surface: var(--ui-info-active, var(--ui-info-hover));
|
|
163
143
|
--_tone-highlight: var(--ui-info-highlight, none);
|
|
164
144
|
--_tone-glow: var(--ui-info-glow, 0 0 transparent);
|
|
165
|
-
--_icon-button-border: var(--ui-info);
|
|
166
|
-
--_icon-button-hover-border: var(--ui-info-
|
|
145
|
+
--_icon-button-border: var(--ui-info-subtle-text);
|
|
146
|
+
--_icon-button-hover-border: var(--ui-info-subtle-text);
|
|
167
147
|
--_icon-button-text: var(--ui-info-subtle-text);
|
|
168
148
|
--_icon-button-outline-surface: color-mix(in srgb, var(--ui-info) 5%, var(--ui-surface-default));
|
|
169
149
|
--_icon-button-solid-surface: var(--ui-info);
|
|
@@ -172,13 +152,17 @@
|
|
|
172
152
|
color: var(--_icon-button-text);
|
|
173
153
|
}
|
|
174
154
|
|
|
175
|
-
/* Neutral actions
|
|
155
|
+
/* Neutral actions and form fields share the control boundary. */
|
|
176
156
|
:scope:where([data-component~="ui-icon-button"])[data-tone="neutral"] {
|
|
157
|
+
--_solid-border: var(--ui-control-border, var(--ui-neutral-surface));
|
|
158
|
+
--_solid-hover-border: var(--ui-control-border-hover, var(--ui-neutral-hover));
|
|
159
|
+
--_solid-active-border: var(--ui-control-border-hover, var(--ui-neutral-active));
|
|
160
|
+
--_solid-active-surface: var(--ui-neutral-active, var(--ui-neutral-hover));
|
|
177
161
|
--_tone-highlight: var(--ui-neutral-highlight, none);
|
|
178
162
|
--_tone-glow: var(--ui-neutral-glow, 0 0 transparent);
|
|
179
163
|
--_icon-button-outline-surface: transparent;
|
|
180
164
|
--_icon-button-border: var(--ui-control-border);
|
|
181
|
-
--_icon-button-hover-border: var(--ui-control-border-hover
|
|
165
|
+
--_icon-button-hover-border: var(--ui-control-border-hover);
|
|
182
166
|
--_icon-button-text: var(--ui-text);
|
|
183
167
|
--_icon-button-solid-surface: var(--ui-neutral-surface);
|
|
184
168
|
--_icon-button-solid-hover-surface: var(--ui-neutral-hover);
|
|
@@ -198,7 +182,7 @@
|
|
|
198
182
|
block-size: var(--ui-affordance-guide-size);
|
|
199
183
|
border-radius: var(--ui-radius-round);
|
|
200
184
|
background: var(--ui-affordance-guide-color, var(--ui-border-strong));
|
|
201
|
-
opacity: calc(var(--ui-affordance-guide-opacity) * var(--
|
|
185
|
+
opacity: calc(var(--ui-affordance-guide-opacity) * var(--_ui-affordance-scope-guide, 1));
|
|
202
186
|
transform: translate(-50%, -50%);
|
|
203
187
|
transition: opacity var(--ui-affordance-motion, var(--ui-motion-fast)) var(--ui-motion-ease);
|
|
204
188
|
pointer-events: none;
|
|
@@ -350,6 +334,7 @@
|
|
|
350
334
|
}
|
|
351
335
|
|
|
352
336
|
:scope:where([data-component~="ui-icon-button"])[data-appearance="solid"] {
|
|
337
|
+
border-color: var(--ui-icon-button-border, var(--_solid-border));
|
|
353
338
|
background-color: var(--ui-icon-button-solid-surface, var(--_icon-button-solid-surface, var(--ui-accent-solid)));
|
|
354
339
|
background-image: var(--_tone-highlight);
|
|
355
340
|
color: var(--ui-icon-button-solid-text, var(--_icon-button-solid-text, var(--ui-text-on-accent)));
|
|
@@ -358,6 +343,14 @@
|
|
|
358
343
|
var(--_tone-glow);
|
|
359
344
|
}
|
|
360
345
|
|
|
346
|
+
:scope:where([data-component~="ui-icon-button"])[data-tone="neutral"][data-appearance="outline"] {
|
|
347
|
+
box-shadow: var(--ui-neutral-shadow);
|
|
348
|
+
}
|
|
349
|
+
:scope:where([data-component~="ui-icon-button"])[data-tone="neutral"][data-appearance="solid"] {
|
|
350
|
+
border-color: var(--ui-icon-button-border, var(--ui-control-border));
|
|
351
|
+
box-shadow: var(--ui-icon-button-solid-shadow, var(--ui-neutral-shadow));
|
|
352
|
+
}
|
|
353
|
+
|
|
361
354
|
:scope:where([data-component~="ui-icon-button"]):hover:enabled:not([aria-disabled="true"]) {
|
|
362
355
|
/* Derived from the text colour so the ghost hover shows on any background. */
|
|
363
356
|
background-color: var(--ui-icon-button-hover-surface, color-mix(in srgb, currentColor 8%, transparent));
|
|
@@ -375,6 +368,7 @@
|
|
|
375
368
|
}
|
|
376
369
|
|
|
377
370
|
:scope:where([data-component~="ui-icon-button"])[data-appearance="solid"]:hover:enabled:not([aria-disabled="true"]) {
|
|
371
|
+
border-color: var(--ui-icon-button-hover-border, var(--_solid-hover-border));
|
|
378
372
|
background-color: var(--ui-icon-button-solid-hover-surface, var(--_icon-button-solid-hover-surface, var(--ui-accent-hover)));
|
|
379
373
|
}
|
|
380
374
|
|
|
@@ -436,6 +430,11 @@
|
|
|
436
430
|
var(--ui-focus-halo);
|
|
437
431
|
}
|
|
438
432
|
|
|
433
|
+
:scope:where([data-component~="ui-icon-button"])[data-appearance="solid"]:active:enabled:not([aria-disabled="true"]) {
|
|
434
|
+
background-color: var(--ui-icon-button-active-surface, var(--_solid-active-surface));
|
|
435
|
+
border-color: var(--_solid-active-border);
|
|
436
|
+
}
|
|
437
|
+
|
|
439
438
|
:scope:where([data-component~="ui-icon-button"]):is(:scope:where([data-component~="ui-icon-button"])[data-appearance="outline"], :scope:where([data-component~="ui-icon-button"])[data-appearance="solid"]):active:enabled:not([aria-disabled="true"]) {
|
|
440
439
|
background-image: none;
|
|
441
440
|
box-shadow: var(--ui-pressed);
|
|
@@ -495,9 +494,7 @@
|
|
|
495
494
|
}
|
|
496
495
|
}
|
|
497
496
|
@scope ([data-component~="ui-icon-button"]) to ([data-component]) {
|
|
498
|
-
/*
|
|
499
|
-
|
|
500
|
-
/* Neutral actions share the same quiet surface and border roles as fields. */
|
|
497
|
+
/* Neutral actions and form fields share the control boundary. */
|
|
501
498
|
|
|
502
499
|
/* At rest an anticipatory button shows only its guide dot. The icon grows into place when
|
|
503
500
|
proximity, hover, or focus reveals it; the button's hit area and guide remain stable. */
|
package/styles/ui-icon.css
CHANGED
|
@@ -7,19 +7,8 @@
|
|
|
7
7
|
[data-component~="ui-icon"] { --html-next-scope-owner: "ui-icon" !important; }
|
|
8
8
|
}
|
|
9
9
|
@scope ([data-component~="ui-icon"]) to ([data-component], [data-slotted]) {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
syntax: "*";
|
|
13
|
-
inherits: false;
|
|
14
|
-
}
|
|
15
|
-
@property --ui-icon-stroke-width {
|
|
16
|
-
syntax: "*";
|
|
17
|
-
inherits: false;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
:scope:where([data-component~="ui-icon"]) {
|
|
21
|
-
/* Hooks do not inherit, so the svg reads the stroke from the root. A Looma component that
|
|
22
|
-
sizes the icons it renders sets --_ui-default-icon-*, which the icon's own hooks override. */
|
|
10
|
+
:scope:where([data-component~="ui-icon"]) {
|
|
11
|
+
/* Resolve the SVG stroke at the root. A Looma component that sizes its icons sets --_ui-default-icon-*, which the icon's own hooks override. */
|
|
23
12
|
--_ui-icon-stroke-width: var(--ui-icon-stroke-width, var(--_ui-default-icon-stroke-width));
|
|
24
13
|
|
|
25
14
|
display: inline-flex !important;
|
|
@@ -48,7 +37,5 @@
|
|
|
48
37
|
}
|
|
49
38
|
}
|
|
50
39
|
@scope ([data-component~="ui-icon"]) to ([data-component]) {
|
|
51
|
-
/*
|
|
52
|
-
|
|
53
|
-
/* A component that sets its display still honours the hidden attribute on its root. */
|
|
40
|
+
/* A component that sets its display still honours the hidden attribute on its root. */
|
|
54
41
|
}
|
|
@@ -7,19 +7,7 @@
|
|
|
7
7
|
[data-component~="ui-input-group"] { --html-next-scope-owner: "ui-input-group" !important; }
|
|
8
8
|
}
|
|
9
9
|
@scope ([data-component~="ui-input-group"]) to ([data-component], [data-slotted]) {
|
|
10
|
-
|
|
11
|
-
syntax: "*";
|
|
12
|
-
inherits: false;
|
|
13
|
-
}
|
|
14
|
-
@property --ui-input-group-invalid-border {
|
|
15
|
-
syntax: "*";
|
|
16
|
-
inherits: false;
|
|
17
|
-
}
|
|
18
|
-
@property --ui-input-group-invalid-focus-shadow {
|
|
19
|
-
syntax: "*";
|
|
20
|
-
inherits: false;
|
|
21
|
-
}
|
|
22
|
-
/* An input with fixed text before or after it, such as a domain after a site's name
|
|
10
|
+
/* An input with fixed text before or after it, such as a domain after a site's name
|
|
23
11
|
("acme" + ".example.com") or slashes around a path. The group draws the field's border and
|
|
24
12
|
focus ring around the input and its affixes together; the input inside drops its own through
|
|
25
13
|
its custom properties, so it is still the one ui-input, with its form behaviour intact. The
|
|
@@ -29,7 +17,7 @@
|
|
|
29
17
|
and not the form's. */
|
|
30
18
|
:scope:where([data-component~="ui-input-group"]) {
|
|
31
19
|
/* The group's own border and height stand for the input's, so the group is a lone Input's height.
|
|
32
|
-
|
|
20
|
+
These are defaults for the input; public hooks still win. */
|
|
33
21
|
--_ui-default-input-border-width: 0;
|
|
34
22
|
--_ui-default-input-min-block-size: 0;
|
|
35
23
|
--_ui-default-input-frame-width: calc(2 * var(--ui-border-width));
|