@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
|
@@ -66,63 +66,15 @@
|
|
|
66
66
|
</div>
|
|
67
67
|
</div>
|
|
68
68
|
<style>
|
|
69
|
-
/* This component's hooks style the element they are set on, and never a nested one. */
|
|
70
|
-
@property --ui-callout-border {
|
|
71
|
-
syntax: "*";
|
|
72
|
-
inherits: false;
|
|
73
|
-
}
|
|
74
|
-
@property --ui-callout-border-width {
|
|
75
|
-
syntax: "*";
|
|
76
|
-
inherits: false;
|
|
77
|
-
}
|
|
78
|
-
@property --ui-callout-gap {
|
|
79
|
-
syntax: "*";
|
|
80
|
-
inherits: false;
|
|
81
|
-
}
|
|
82
|
-
@property --ui-callout-icon {
|
|
83
|
-
syntax: "*";
|
|
84
|
-
inherits: false;
|
|
85
|
-
}
|
|
86
|
-
@property --ui-callout-icon-column {
|
|
87
|
-
syntax: "*";
|
|
88
|
-
inherits: false;
|
|
89
|
-
}
|
|
90
|
-
@property --ui-callout-icon-size {
|
|
91
|
-
syntax: "*";
|
|
92
|
-
inherits: false;
|
|
93
|
-
}
|
|
94
|
-
@property --ui-callout-leading-border-width {
|
|
95
|
-
syntax: "*";
|
|
96
|
-
inherits: false;
|
|
97
|
-
}
|
|
98
|
-
@property --ui-callout-padding-block {
|
|
99
|
-
syntax: "*";
|
|
100
|
-
inherits: false;
|
|
101
|
-
}
|
|
102
|
-
@property --ui-callout-padding-inline {
|
|
103
|
-
syntax: "*";
|
|
104
|
-
inherits: false;
|
|
105
|
-
}
|
|
106
|
-
@property --ui-callout-surface {
|
|
107
|
-
syntax: "*";
|
|
108
|
-
inherits: false;
|
|
109
|
-
}
|
|
110
|
-
@property --ui-callout-text {
|
|
111
|
-
syntax: "*";
|
|
112
|
-
inherits: false;
|
|
113
|
-
}
|
|
114
|
-
|
|
115
69
|
:host {
|
|
116
|
-
/*
|
|
70
|
+
/* Resolve shared part values at the component root. */
|
|
117
71
|
--_ui-callout-icon-column: var(--ui-callout-icon-column);
|
|
118
72
|
--_ui-callout-icon: var(--ui-callout-icon);
|
|
119
73
|
--_ui-callout-icon-size: var(--ui-callout-icon-size);
|
|
120
74
|
|
|
121
|
-
|
|
122
|
-
--_callout-
|
|
123
|
-
|
|
124
|
-
oklch(from var(--_callout-border) 25% min(c, 0.035) h)
|
|
125
|
-
);
|
|
75
|
+
--_callout-surface: var(--ui-info-soft);
|
|
76
|
+
--_callout-tone-text: var(--ui-info-subtle-text);
|
|
77
|
+
--_ui-surface-text: var(--ui-callout-text, var(--_callout-tone-text));
|
|
126
78
|
--_ui-selection-context-surface: light-dark(
|
|
127
79
|
oklch(from var(--ui-callout-surface, var(--_callout-surface)) calc(l - 0.045) calc(max(c, min(0.045, c * 3))) h),
|
|
128
80
|
oklch(from var(--ui-callout-surface, var(--_callout-surface)) calc(l + 0.045) calc(max(c, min(0.045, c * 3))) h)
|
|
@@ -133,8 +85,8 @@
|
|
|
133
85
|
);
|
|
134
86
|
--_ui-selection-context-text: var(--ui-text-primary);
|
|
135
87
|
|
|
136
|
-
--_callout-border: var(--ui-info-
|
|
137
|
-
--_callout-icon: var(--ui-info-
|
|
88
|
+
--_callout-border: var(--ui-info-soft-border);
|
|
89
|
+
--_callout-icon: var(--ui-info-subtle-text);
|
|
138
90
|
|
|
139
91
|
display: grid !important;
|
|
140
92
|
grid-template-columns: var(--ui-callout-icon-column, 1.125rem) minmax(0, 1fr);
|
|
@@ -144,13 +96,12 @@
|
|
|
144
96
|
padding-block: var(--ui-callout-padding-block, var(--ui-space-2)) !important;
|
|
145
97
|
padding-inline-start: var(--ui-callout-padding-inline, var(--ui-space-2)) !important;
|
|
146
98
|
padding-inline-end: var(--ui-callout-padding-inline, var(--ui-space-3)) !important;
|
|
147
|
-
border: var(--ui-callout-border-width, var(--ui-border-width)) solid
|
|
148
|
-
color-mix(in srgb, var(--ui-callout-border, var(--_callout-border)) 35%, transparent);
|
|
99
|
+
border: var(--ui-callout-border-width, var(--ui-border-width)) solid var(--ui-callout-border, var(--_callout-border));
|
|
149
100
|
border-inline-start: var(--ui-callout-leading-border-width, var(--ui-callout-border-width, var(--ui-border-width))) solid
|
|
150
|
-
|
|
101
|
+
var(--ui-callout-border, var(--_callout-border));
|
|
151
102
|
border-radius: var(--ui-radius-md);
|
|
152
103
|
background: var(--ui-callout-surface, var(--_callout-surface));
|
|
153
|
-
color: var(--ui-callout-text, var(--
|
|
104
|
+
color: var(--ui-callout-text, var(--_ui-surface-text));
|
|
154
105
|
font-family: var(--ui-font-family-sans);
|
|
155
106
|
font-size: var(--ui-font-size-sm);
|
|
156
107
|
font-weight: var(--ui-font-normal);
|
|
@@ -185,38 +136,49 @@
|
|
|
185
136
|
--_ui-selection-context-border: initial;
|
|
186
137
|
--_ui-selection-context-text: initial;
|
|
187
138
|
--_callout-surface: var(--ui-surface-muted);
|
|
139
|
+
--_callout-tone-text: var(--ui-text-primary);
|
|
188
140
|
--_callout-border: var(--ui-border-strong);
|
|
189
141
|
--_callout-icon: var(--ui-text-secondary);
|
|
190
142
|
}
|
|
191
143
|
|
|
192
144
|
:host([tone="tip"]) {
|
|
193
|
-
--_callout-border: var(--ui-success-
|
|
194
|
-
--_callout-
|
|
145
|
+
--_callout-border: var(--ui-success-soft-border);
|
|
146
|
+
--_callout-surface: var(--ui-success-soft);
|
|
147
|
+
--_callout-tone-text: var(--ui-success-subtle-text);
|
|
148
|
+
--_callout-icon: var(--ui-success-subtle-text);
|
|
195
149
|
}
|
|
196
150
|
|
|
197
151
|
:host([tone="important"]) {
|
|
198
|
-
--_callout-border: var(--ui-accent-
|
|
199
|
-
--_callout-
|
|
152
|
+
--_callout-border: var(--ui-accent-soft-border);
|
|
153
|
+
--_callout-surface: var(--ui-accent-soft);
|
|
154
|
+
--_callout-tone-text: var(--ui-accent-subtle-text);
|
|
155
|
+
--_callout-icon: var(--ui-accent-subtle-text);
|
|
200
156
|
}
|
|
201
157
|
|
|
202
158
|
:host([tone="warning"]) {
|
|
203
|
-
--_callout-border: var(--ui-warning-
|
|
204
|
-
--_callout-
|
|
159
|
+
--_callout-border: var(--ui-warning-soft-border);
|
|
160
|
+
--_callout-surface: var(--ui-warning-soft);
|
|
161
|
+
--_callout-tone-text: var(--ui-warning-subtle-text);
|
|
162
|
+
--_callout-icon: var(--ui-warning-subtle-text);
|
|
205
163
|
}
|
|
206
164
|
|
|
207
165
|
:host([tone="success"]) {
|
|
208
|
-
--_callout-border: var(--ui-success-
|
|
209
|
-
--_callout-
|
|
166
|
+
--_callout-border: var(--ui-success-soft-border);
|
|
167
|
+
--_callout-surface: var(--ui-success-soft);
|
|
168
|
+
--_callout-tone-text: var(--ui-success-subtle-text);
|
|
169
|
+
--_callout-icon: var(--ui-success-subtle-text);
|
|
210
170
|
}
|
|
211
171
|
|
|
212
172
|
:host([tone="danger"]), :host([tone="caution"]) {
|
|
213
|
-
--_callout-border: var(--ui-danger-
|
|
214
|
-
--_callout-
|
|
173
|
+
--_callout-border: var(--ui-danger-soft-border);
|
|
174
|
+
--_callout-surface: var(--ui-danger-soft);
|
|
175
|
+
--_callout-tone-text: var(--ui-danger-subtle-text);
|
|
176
|
+
--_callout-icon: var(--ui-danger-subtle-text);
|
|
215
177
|
}
|
|
216
178
|
|
|
217
179
|
/* A link in the callout's text is underlined, so it reads as a link by more than colour. */
|
|
218
180
|
.content :slotted(a) {
|
|
219
|
-
color: var(--ui-accent-
|
|
181
|
+
color: var(--ui-accent-subtle-text);
|
|
220
182
|
text-decoration: underline;
|
|
221
183
|
text-decoration-thickness: 0.06em;
|
|
222
184
|
text-underline-offset: 0.18em;
|
|
@@ -7,12 +7,14 @@
|
|
|
7
7
|
elevated adds a subtle lift above the page, for a view's one card, such as sign-in. Treatment independently controls decorative material.</prop>
|
|
8
8
|
<prop name="treatment" type="keyword" values="standard, expressive" default="standard"
|
|
9
9
|
>How much of the theme's decorative material the surface expresses. standard preserves its restrained treatment; expressive uses the full material
|
|
10
|
-
treatment.
|
|
10
|
+
treatment. Its glass rim can transmit and frost the surrounding scene while content remains opaque. Surface separation controls the rim, independently of
|
|
11
|
+
frosting. This does not add elevation or require glass.</prop>
|
|
11
12
|
<prop name="padding" type="keyword" values="xs, sm, md, lg" default="md"
|
|
12
13
|
>The space inside the card: xs is compact (0.5rem), sm is snug (0.75rem), md is the default (1.5rem), and lg is roomy (2rem).</prop>
|
|
13
|
-
<prop name="tone" type="keyword" values="neutral, accent, info, success, warning, danger" default="neutral"
|
|
14
|
+
<prop name="tone" type="keyword" values="neutral, accent, accent-secondary, accent-tertiary, info, success, warning, danger" default="neutral"
|
|
14
15
|
>accent, info, success, warning and danger add a quiet semantic surface without changing card geometry. Row highlights follow the surface hue; action
|
|
15
|
-
controls retain their own intent
|
|
16
|
+
controls retain their own intent. Supporting brand families use accent-secondary and accent-tertiary; their usable colors derive from the theme, and unset
|
|
17
|
+
families follow the primary accent.</prop>
|
|
16
18
|
<prop name="as" type="keyword" values="div, section, article, aside" default="div"
|
|
17
19
|
>The native element the card renders. Choose the one that names the content: a section of a page, a self-contained article, or an aside.</prop>
|
|
18
20
|
</defs>
|
|
@@ -27,6 +29,7 @@
|
|
|
27
29
|
needs no layout of its own. */
|
|
28
30
|
:host {
|
|
29
31
|
--_ui-card-surface: var(--ui-surface-raised);
|
|
32
|
+
--_ui-surface-text: initial;
|
|
30
33
|
--_ui-card-elevation: 0 0 0 transparent;
|
|
31
34
|
--_ui-selection-context-surface: initial;
|
|
32
35
|
--_ui-selection-context-border: initial;
|
|
@@ -40,7 +43,7 @@
|
|
|
40
43
|
border: var(--ui-border-width) solid var(--ui-border-strong);
|
|
41
44
|
border-radius: var(--ui-radius-lg);
|
|
42
45
|
background: var(--_ui-card-surface);
|
|
43
|
-
color: var(--ui-text-primary);
|
|
46
|
+
color: var(--_ui-surface-text, var(--ui-text-primary));
|
|
44
47
|
}
|
|
45
48
|
|
|
46
49
|
:host([padding="xs"]) {
|
|
@@ -68,9 +71,9 @@
|
|
|
68
71
|
}
|
|
69
72
|
|
|
70
73
|
:host([treatment="expressive"]) {
|
|
71
|
-
--_ui-panel-glass:
|
|
74
|
+
--_ui-panel-glass: clamp(0, var(--ui-glassiness, 0), 1);
|
|
72
75
|
--_ui-panel-separation: clamp(0, var(--ui-surface-separation, 0), 1);
|
|
73
|
-
--_ui-panel-rim: calc(
|
|
76
|
+
--_ui-panel-rim: calc(var(--_ui-panel-separation) * 8px);
|
|
74
77
|
border-width: calc(var(--ui-border-width) + var(--_ui-panel-rim));
|
|
75
78
|
border-color: transparent;
|
|
76
79
|
background:
|
|
@@ -82,8 +85,8 @@
|
|
|
82
85
|
var(--_ui-card-elevation),
|
|
83
86
|
var(--ui-material-glow, 0 0 transparent),
|
|
84
87
|
inset 0 0 0 var(--ui-border-width) var(--ui-material-edge, var(--ui-border-strong));
|
|
85
|
-
backdrop-filter: blur(calc(var(--_ui-panel-glass) *
|
|
86
|
-
|
|
88
|
+
-webkit-backdrop-filter: blur(calc(var(--_ui-panel-glass) * 32px));
|
|
89
|
+
backdrop-filter: blur(calc(var(--_ui-panel-glass) * 32px));
|
|
87
90
|
}
|
|
88
91
|
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
|
|
89
92
|
:host([treatment="expressive"]) {
|
|
@@ -95,8 +98,8 @@
|
|
|
95
98
|
background: var(--_ui-card-surface);
|
|
96
99
|
border-width: var(--ui-border-width);
|
|
97
100
|
border-color: var(--ui-border-strong);
|
|
98
|
-
backdrop-filter: none;
|
|
99
101
|
-webkit-backdrop-filter: none;
|
|
102
|
+
backdrop-filter: none;
|
|
100
103
|
}
|
|
101
104
|
}
|
|
102
105
|
@media (forced-colors: active) {
|
|
@@ -105,42 +108,65 @@
|
|
|
105
108
|
color: CanvasText;
|
|
106
109
|
border: var(--ui-border-width) solid CanvasText;
|
|
107
110
|
box-shadow: none;
|
|
108
|
-
backdrop-filter: none;
|
|
109
111
|
-webkit-backdrop-filter: none;
|
|
112
|
+
backdrop-filter: none;
|
|
110
113
|
}
|
|
111
114
|
}
|
|
112
115
|
|
|
116
|
+
:host([tone="accent-secondary"]) {
|
|
117
|
+
border-color: var(--ui-accent-secondary-soft-border);
|
|
118
|
+
--_ui-card-surface: var(--ui-accent-secondary-soft);
|
|
119
|
+
--_ui-surface-text: var(--ui-accent-secondary-subtle-text);
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
:host([tone="accent-tertiary"]) {
|
|
123
|
+
border-color: var(--ui-accent-tertiary-soft-border);
|
|
124
|
+
--_ui-card-surface: var(--ui-accent-tertiary-soft);
|
|
125
|
+
--_ui-surface-text: var(--ui-accent-tertiary-subtle-text);
|
|
126
|
+
}
|
|
127
|
+
|
|
113
128
|
:host([tone="accent"]) {
|
|
114
|
-
border-color:
|
|
115
|
-
--_ui-card-surface:
|
|
129
|
+
border-color: var(--ui-accent-soft-border);
|
|
130
|
+
--_ui-card-surface: var(--ui-accent-soft);
|
|
131
|
+
--_ui-surface-text: var(--ui-accent-subtle-text);
|
|
116
132
|
}
|
|
117
133
|
|
|
118
134
|
:host([tone="info"]) {
|
|
119
|
-
border-color:
|
|
120
|
-
--_ui-card-surface:
|
|
135
|
+
border-color: var(--ui-info-soft-border);
|
|
136
|
+
--_ui-card-surface: var(--ui-info-soft);
|
|
137
|
+
--_ui-surface-text: var(--ui-info-subtle-text);
|
|
121
138
|
}
|
|
122
139
|
|
|
123
140
|
:host([tone="success"]) {
|
|
124
|
-
border-color:
|
|
125
|
-
--_ui-card-surface:
|
|
141
|
+
border-color: var(--ui-success-soft-border);
|
|
142
|
+
--_ui-card-surface: var(--ui-success-soft);
|
|
143
|
+
--_ui-surface-text: var(--ui-success-subtle-text);
|
|
126
144
|
}
|
|
127
145
|
|
|
128
146
|
:host([tone="warning"]) {
|
|
129
|
-
border-color:
|
|
130
|
-
--_ui-card-surface:
|
|
147
|
+
border-color: var(--ui-warning-soft-border);
|
|
148
|
+
--_ui-card-surface: var(--ui-warning-soft);
|
|
149
|
+
--_ui-surface-text: var(--ui-warning-subtle-text);
|
|
131
150
|
}
|
|
132
151
|
|
|
133
|
-
:host([variant="subtle"]:is([tone="accent"], [tone="info"], [tone="success"], [tone="warning"])) {
|
|
152
|
+
:host([variant="subtle"]:is([tone="accent"], [tone="accent-secondary"], [tone="accent-tertiary"], [tone="info"], [tone="success"], [tone="warning"])) {
|
|
134
153
|
border-color: transparent;
|
|
135
154
|
}
|
|
136
155
|
|
|
137
156
|
:host([tone="danger"]) {
|
|
138
|
-
border-color:
|
|
157
|
+
border-color: var(--ui-danger-soft-border);
|
|
139
158
|
--_ui-card-surface: var(--ui-danger-soft);
|
|
159
|
+
--_ui-surface-text: var(--ui-danger-subtle-text);
|
|
140
160
|
}
|
|
141
161
|
|
|
142
162
|
/* A colored panel shades rows in its own hue, without changing button intent. */
|
|
143
|
-
:host([tone="accent"]),
|
|
163
|
+
:host([tone="accent"]),
|
|
164
|
+
:host([tone="accent-secondary"]),
|
|
165
|
+
:host([tone="accent-tertiary"]),
|
|
166
|
+
:host([tone="info"]),
|
|
167
|
+
:host([tone="success"]),
|
|
168
|
+
:host([tone="warning"]),
|
|
169
|
+
:host([tone="danger"]) {
|
|
144
170
|
--_ui-selection-context-surface: light-dark(
|
|
145
171
|
oklch(from var(--_ui-card-surface) calc(l - 0.045) calc(max(c, min(0.045, c * 3))) h),
|
|
146
172
|
oklch(from var(--_ui-card-surface) calc(l + 0.045) calc(max(c, min(0.045, c * 3))) h)
|
|
@@ -46,22 +46,8 @@
|
|
|
46
46
|
</span>
|
|
47
47
|
</label>
|
|
48
48
|
<style>
|
|
49
|
-
/* This component's hooks style the element they are set on, and never a nested one. */
|
|
50
|
-
@property --ui-checkbox-gap {
|
|
51
|
-
syntax: "*";
|
|
52
|
-
inherits: false;
|
|
53
|
-
}
|
|
54
|
-
@property --ui-checkbox-invalid-border {
|
|
55
|
-
syntax: "*";
|
|
56
|
-
inherits: false;
|
|
57
|
-
}
|
|
58
|
-
@property --ui-checkbox-size {
|
|
59
|
-
syntax: "*";
|
|
60
|
-
inherits: false;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
49
|
:host {
|
|
64
|
-
/*
|
|
50
|
+
/* Resolve shared part values at the component root. */
|
|
65
51
|
--_ui-checkbox-size: var(--ui-checkbox-size, var(--ui-choice-mark-size));
|
|
66
52
|
--_ui-checkbox-invalid-border: var(--ui-checkbox-invalid-border, var(--ui-field-danger, var(--ui-danger-solid)));
|
|
67
53
|
|
|
@@ -153,7 +139,7 @@
|
|
|
153
139
|
border-color: var(--ui-accent-solid);
|
|
154
140
|
background-color: var(--ui-accent-solid);
|
|
155
141
|
background-image: var(--ui-accent-highlight, none);
|
|
156
|
-
box-shadow:
|
|
142
|
+
box-shadow: none;
|
|
157
143
|
}
|
|
158
144
|
|
|
159
145
|
/* The SVG's painted bounds are centred in its viewBox, including its round stroke.
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
<prop name="fixed" type="boolean" default="false">Keeps this group at its content size inside a flex layout.</prop>
|
|
8
8
|
<prop name="gap" type="keyword" values="xs, s, m, l, xl"
|
|
9
9
|
>Space between items, on the spacing scale: xs is 0.5rem, s 0.75rem (also the default), m 1rem, l 1.5rem, and xl 2rem. The --ui-cluster-gap custom property,
|
|
10
|
-
set on
|
|
10
|
+
set on :root, an ancestor, or the component itself, overrides it.</prop>
|
|
11
11
|
<prop name="align" type="keyword" values="start, center, end, stretch, baseline"
|
|
12
12
|
>How items line up within each row: center (the default) aligns their middles, start their tops, end their bottoms, and stretch makes every item as tall as
|
|
13
13
|
its row. baseline aligns the first text baselines, including multiline columns.</prop>
|
|
@@ -21,12 +21,6 @@
|
|
|
21
21
|
</defs>
|
|
22
22
|
<div><slot></slot></div>
|
|
23
23
|
<style>
|
|
24
|
-
/* This component's hooks style the element they are set on, and never a nested one. */
|
|
25
|
-
@property --ui-cluster-gap {
|
|
26
|
-
syntax: "*";
|
|
27
|
-
inherits: false;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
24
|
:host {
|
|
31
25
|
--_layout-gap: var(--ui-space-3);
|
|
32
26
|
display: flex !important;
|
|
@@ -6,7 +6,8 @@
|
|
|
6
6
|
>The field's label, tied to its input and shown above it; required adds an asterisk. It also names the suggestion list. Pair it with
|
|
7
7
|
labelVisibility="sr-only" when the context already labels the field visibly.</prop>
|
|
8
8
|
<prop name="muted" type="boolean" default="false"
|
|
9
|
-
>Shows the selected field value with supporting-text emphasis, for an inherited or default choice. Suggestions keep normal emphasis and the field stays
|
|
9
|
+
>Shows the selected field value with supporting-text emphasis, for an inherited or default choice. Suggestions keep normal emphasis and the field stays
|
|
10
|
+
interactive.</prop>
|
|
10
11
|
<prop name="placeholder" type="string" default=""
|
|
11
12
|
>Hint text shown in the empty input, as on a native input. It disappears as the user types, so it never replaces label.</prop>
|
|
12
13
|
<prop name="name" type="string" default=""
|
|
@@ -81,7 +82,9 @@
|
|
|
81
82
|
when the field is left empty. In multiple mode a chosen item satisfies it, whatever is left in the input.</prop>
|
|
82
83
|
<prop name="invalid" type="boolean" default="false"
|
|
83
84
|
>Exposes an externally validated error on the input and field. It remains until the consumer clears it, independently of native validation.</prop>
|
|
84
|
-
<prop name="openOnFocus" type="boolean" default="false"
|
|
85
|
+
<prop name="openOnFocus" type="boolean" default="false"
|
|
86
|
+
>Opens suggestions when the input receives focus or is clicked. A committed selection shows all choices until typing filters them; an explicitly supplied
|
|
87
|
+
query keeps its filtering.</prop>
|
|
85
88
|
<prop name="loading" type="boolean" default="false"
|
|
86
89
|
>Marks the suggestion list busy while the consumer loads options. It announces loading and suppresses the empty state and create offer until cleared.</prop>
|
|
87
90
|
<prop name="size" type="keyword" values="sm, md, lg" default="md"
|
|
@@ -571,74 +574,8 @@
|
|
|
571
574
|
<div class="authored-options" $ref="options" hidden aria-hidden="true"><slot></slot></div>
|
|
572
575
|
</div>
|
|
573
576
|
<style>
|
|
574
|
-
/* This component's hooks style the element they are set on, and never a nested one. */
|
|
575
|
-
@property --ui-combobox-affordance-text {
|
|
576
|
-
syntax: "*";
|
|
577
|
-
inherits: false;
|
|
578
|
-
}
|
|
579
|
-
@property --ui-combobox-item-input-min-inline-size {
|
|
580
|
-
syntax: "*";
|
|
581
|
-
inherits: false;
|
|
582
|
-
}
|
|
583
|
-
@property --ui-combobox-item-item-max-inline-size {
|
|
584
|
-
syntax: "*";
|
|
585
|
-
inherits: false;
|
|
586
|
-
}
|
|
587
|
-
@property --ui-combobox-item-min-block-size {
|
|
588
|
-
syntax: "*";
|
|
589
|
-
inherits: false;
|
|
590
|
-
}
|
|
591
|
-
@property --ui-combobox-label-font-size {
|
|
592
|
-
syntax: "*";
|
|
593
|
-
inherits: false;
|
|
594
|
-
}
|
|
595
|
-
@property --ui-combobox-label-text {
|
|
596
|
-
syntax: "*";
|
|
597
|
-
inherits: false;
|
|
598
|
-
}
|
|
599
|
-
@property --ui-combobox-max-block-size {
|
|
600
|
-
syntax: "*";
|
|
601
|
-
inherits: false;
|
|
602
|
-
}
|
|
603
|
-
@property --ui-combobox-message-text {
|
|
604
|
-
syntax: "*";
|
|
605
|
-
inherits: false;
|
|
606
|
-
}
|
|
607
|
-
@property --ui-combobox-option-check {
|
|
608
|
-
syntax: "*";
|
|
609
|
-
inherits: false;
|
|
610
|
-
}
|
|
611
|
-
@property --ui-combobox-option-text {
|
|
612
|
-
syntax: "*";
|
|
613
|
-
inherits: false;
|
|
614
|
-
}
|
|
615
|
-
@property --ui-combobox-radius {
|
|
616
|
-
syntax: "*";
|
|
617
|
-
inherits: false;
|
|
618
|
-
}
|
|
619
|
-
@property --ui-combobox-invalid-border {
|
|
620
|
-
syntax: "*";
|
|
621
|
-
inherits: false;
|
|
622
|
-
}
|
|
623
|
-
@property --ui-combobox-popup-surface {
|
|
624
|
-
syntax: "*";
|
|
625
|
-
inherits: false;
|
|
626
|
-
}
|
|
627
|
-
@property --ui-combobox-popup-border {
|
|
628
|
-
syntax: "*";
|
|
629
|
-
inherits: false;
|
|
630
|
-
}
|
|
631
|
-
@property --ui-combobox-popup-radius {
|
|
632
|
-
syntax: "*";
|
|
633
|
-
inherits: false;
|
|
634
|
-
}
|
|
635
|
-
@property --ui-combobox-popup-shadow {
|
|
636
|
-
syntax: "*";
|
|
637
|
-
inherits: false;
|
|
638
|
-
}
|
|
639
|
-
|
|
640
577
|
:host {
|
|
641
|
-
/*
|
|
578
|
+
/* Resolve shared part values at the component root. */
|
|
642
579
|
--_ui-combobox-label-text: var(--ui-combobox-label-text);
|
|
643
580
|
--_ui-combobox-label-font-size: var(--ui-combobox-label-font-size);
|
|
644
581
|
--_ui-combobox-affordance-text: var(--ui-combobox-affordance-text);
|
|
@@ -665,7 +602,7 @@
|
|
|
665
602
|
}
|
|
666
603
|
label {
|
|
667
604
|
color: var(--_ui-combobox-label-text, var(--ui-text-primary));
|
|
668
|
-
font-size: var(--_ui-combobox-label-font-size, var(--ui-font-size-
|
|
605
|
+
font-size: var(--_ui-combobox-label-font-size, var(--ui-field-label-font-size, var(--ui-font-size-md)));
|
|
669
606
|
font-weight: 500;
|
|
670
607
|
}
|
|
671
608
|
/* The field and anything that annotates it sit on one row; the help button is beside the box,
|
|
@@ -5,23 +5,13 @@
|
|
|
5
5
|
Omit it to keep the usual block layout.</prop>
|
|
6
6
|
<prop name="measure" type="keyword" values="narrow, wide"
|
|
7
7
|
>The container's maximum width, in characters of the current font: narrow is 45ch, wide is 80ch, and unset is 65ch, a comfortable reading line. The
|
|
8
|
-
container centres itself when its parent is wider. The --ui-container-measure custom property, set on
|
|
9
|
-
|
|
8
|
+
container centres itself when its parent is wider. The --ui-container-measure custom property, set on :root, an ancestor, or the container itself,
|
|
9
|
+
overrides it.</prop>
|
|
10
10
|
<prop name="gutters" type="keyword" values="s, m, l"
|
|
11
11
|
>Inline padding on both sides, which keeps content off the edges of a narrow screen: s is 0.75rem, m is 1rem (also the default), and l is 1.5rem.</prop>
|
|
12
12
|
</defs>
|
|
13
13
|
<div><slot></slot></div>
|
|
14
14
|
<style>
|
|
15
|
-
/* This component's hooks style the element they are set on, and never a nested one. */
|
|
16
|
-
@property --ui-container-gutters {
|
|
17
|
-
syntax: "*";
|
|
18
|
-
inherits: false;
|
|
19
|
-
}
|
|
20
|
-
@property --ui-container-measure {
|
|
21
|
-
syntax: "*";
|
|
22
|
-
inherits: false;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
15
|
:host {
|
|
26
16
|
--_container-measure: 65ch;
|
|
27
17
|
--_container-gutters: var(--ui-space-4);
|
|
@@ -27,30 +27,8 @@
|
|
|
27
27
|
</defs>
|
|
28
28
|
<span><div class="menu" $ref="menu" role="menu" aria-orientation="vertical"><slot></slot></div></span>
|
|
29
29
|
<style>
|
|
30
|
-
/* This component's hooks style the element they are set on, and never a nested one. */
|
|
31
|
-
@property --ui-context-menu-surface {
|
|
32
|
-
syntax: "*";
|
|
33
|
-
inherits: false;
|
|
34
|
-
}
|
|
35
|
-
@property --ui-context-menu-border {
|
|
36
|
-
syntax: "*";
|
|
37
|
-
inherits: false;
|
|
38
|
-
}
|
|
39
|
-
@property --ui-context-menu-radius {
|
|
40
|
-
syntax: "*";
|
|
41
|
-
inherits: false;
|
|
42
|
-
}
|
|
43
|
-
@property --ui-context-menu-shadow {
|
|
44
|
-
syntax: "*";
|
|
45
|
-
inherits: false;
|
|
46
|
-
}
|
|
47
|
-
@property --ui-context-menu-z-index {
|
|
48
|
-
syntax: "*";
|
|
49
|
-
inherits: false;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
30
|
:host {
|
|
53
|
-
/*
|
|
31
|
+
/* Resolve shared part values at the component root. */
|
|
54
32
|
--_ui-context-menu-surface: var(--ui-context-menu-surface);
|
|
55
33
|
--_ui-context-menu-border: var(--ui-context-menu-border);
|
|
56
34
|
--_ui-context-menu-radius: var(--ui-context-menu-radius);
|
|
@@ -47,39 +47,9 @@
|
|
|
47
47
|
<footer $ref="footer"><slot name="actions"></slot></footer>
|
|
48
48
|
</dialog>
|
|
49
49
|
<style>
|
|
50
|
-
/* This component's hooks style the element they are set on, and never a nested one. */
|
|
51
|
-
@property --ui-dialog-duration {
|
|
52
|
-
syntax: "*";
|
|
53
|
-
inherits: false;
|
|
54
|
-
}
|
|
55
|
-
@property --ui-dialog-surface {
|
|
56
|
-
syntax: "*";
|
|
57
|
-
inherits: false;
|
|
58
|
-
}
|
|
59
|
-
@property --ui-dialog-border {
|
|
60
|
-
syntax: "*";
|
|
61
|
-
inherits: false;
|
|
62
|
-
}
|
|
63
|
-
@property --ui-dialog-radius {
|
|
64
|
-
syntax: "*";
|
|
65
|
-
inherits: false;
|
|
66
|
-
}
|
|
67
|
-
@property --ui-dialog-shadow {
|
|
68
|
-
syntax: "*";
|
|
69
|
-
inherits: false;
|
|
70
|
-
}
|
|
71
|
-
@property --ui-dialog-max-width {
|
|
72
|
-
syntax: "*";
|
|
73
|
-
inherits: false;
|
|
74
|
-
}
|
|
75
|
-
@property --ui-dialog-viewport-gap {
|
|
76
|
-
syntax: "*";
|
|
77
|
-
inherits: false;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
50
|
:host {
|
|
81
51
|
--_ui-material-scale: 1;
|
|
82
|
-
/*
|
|
52
|
+
/* Resolve shared part values at the component root. */
|
|
83
53
|
--_ui-dialog-duration: var(--ui-dialog-duration);
|
|
84
54
|
|
|
85
55
|
position: fixed;
|
|
@@ -112,12 +82,12 @@
|
|
|
112
82
|
}
|
|
113
83
|
|
|
114
84
|
/* Purpose and measured size shape one shared separation lever. The content plane stays opaque;
|
|
115
|
-
transparency,
|
|
85
|
+
transparency, frosting and edge light belong to the surrounding decorative material. */
|
|
116
86
|
:host {
|
|
117
|
-
--_ui-material-glassiness:
|
|
87
|
+
--_ui-material-glassiness: clamp(0, var(--ui-glassiness, 0), 1);
|
|
118
88
|
--_ui-material-separation: clamp(0, var(--ui-surface-separation, 0), 1);
|
|
119
|
-
--_ui-material-active: clamp(0, calc(
|
|
120
|
-
--_ui-material-rim: calc(
|
|
89
|
+
--_ui-material-active: clamp(0, calc(var(--_ui-material-separation) * 100000), 1);
|
|
90
|
+
--_ui-material-rim: calc(var(--_ui-material-separation) * var(--_ui-material-scale, 1) * 8px);
|
|
121
91
|
--_ui-material-content-color: var(--ui-dialog-surface, var(--ui-material-content, var(--ui-overlay-surface, var(--ui-surface-elevated))));
|
|
122
92
|
--_ui-material-rim-color: color-mix(in srgb, var(--ui-material-glass, var(--ui-surface-elevated)) calc(var(--_ui-material-active) * 100%), transparent);
|
|
123
93
|
background:
|
|
@@ -142,10 +112,8 @@
|
|
|
142
112
|
var(--ui-elevation-dialog, var(--ui-shadow-xl))
|
|
143
113
|
)
|
|
144
114
|
);
|
|
145
|
-
backdrop-filter: blur(calc(var(--_ui-material-glassiness) * var(--_ui-material-scale, 1) *
|
|
146
|
-
|
|
147
|
-
-webkit-backdrop-filter: blur(calc(var(--_ui-material-glassiness) * var(--_ui-material-scale, 1) * 18px))
|
|
148
|
-
saturate(calc(1 + var(--_ui-material-glassiness) * var(--_ui-material-scale, 1) * 0.18));
|
|
115
|
+
-webkit-backdrop-filter: blur(calc(var(--_ui-material-glassiness) * var(--_ui-material-scale, 1) * 32px));
|
|
116
|
+
backdrop-filter: blur(calc(var(--_ui-material-glassiness) * var(--_ui-material-scale, 1) * 32px));
|
|
149
117
|
}
|
|
150
118
|
|
|
151
119
|
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
|
|
@@ -157,8 +125,8 @@
|
|
|
157
125
|
@media (prefers-reduced-transparency: reduce) {
|
|
158
126
|
:host {
|
|
159
127
|
background: var(--_ui-material-content-color);
|
|
160
|
-
backdrop-filter: none;
|
|
161
128
|
-webkit-backdrop-filter: none;
|
|
129
|
+
backdrop-filter: none;
|
|
162
130
|
}
|
|
163
131
|
}
|
|
164
132
|
|
|
@@ -167,8 +135,8 @@
|
|
|
167
135
|
background: Canvas;
|
|
168
136
|
border-color: CanvasText;
|
|
169
137
|
box-shadow: none;
|
|
170
|
-
backdrop-filter: none;
|
|
171
138
|
-webkit-backdrop-filter: none;
|
|
139
|
+
backdrop-filter: none;
|
|
172
140
|
}
|
|
173
141
|
}
|
|
174
142
|
|
|
@@ -54,23 +54,9 @@
|
|
|
54
54
|
<div class="panel" $ref="panel" from:id="$contentId"><div class="panel-inner"><slot></slot></div></div>
|
|
55
55
|
</div>
|
|
56
56
|
<style>
|
|
57
|
-
/* This component's hooks style the element they are set on, and never a nested one. */
|
|
58
|
-
@property --ui-disclosure-trigger-min-block-size {
|
|
59
|
-
syntax: "*";
|
|
60
|
-
inherits: false;
|
|
61
|
-
}
|
|
62
|
-
@property --ui-disclosure-trigger-padding-block {
|
|
63
|
-
syntax: "*";
|
|
64
|
-
inherits: false;
|
|
65
|
-
}
|
|
66
|
-
@property --ui-disclosure-trigger-padding-inline {
|
|
67
|
-
syntax: "*";
|
|
68
|
-
inherits: false;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
57
|
/* Density resolves into the summary row's own values; the public tokens still override them. */
|
|
72
58
|
:host {
|
|
73
|
-
/*
|
|
59
|
+
/* Resolve shared part values at the component root. */
|
|
74
60
|
--_ui-disclosure-trigger-min-block-size: var(--ui-disclosure-trigger-min-block-size);
|
|
75
61
|
--_ui-disclosure-trigger-padding-block: var(--ui-disclosure-trigger-padding-block);
|
|
76
62
|
--_ui-disclosure-trigger-padding-inline: var(--ui-disclosure-trigger-padding-inline);
|
|
@@ -147,7 +147,7 @@
|
|
|
147
147
|
width: 32px;
|
|
148
148
|
height: 32px;
|
|
149
149
|
flex: 0 0 auto;
|
|
150
|
-
color: var(--ui-accent-
|
|
150
|
+
color: var(--ui-accent-subtle-text);
|
|
151
151
|
background: var(--ui-accent-soft, var(--ui-accent-subtle));
|
|
152
152
|
border-radius: var(--ui-radius-round);
|
|
153
153
|
font-size: var(--ui-font-size-xs);
|