@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-card.css
CHANGED
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
needs no layout of its own. */
|
|
12
12
|
:scope:where([data-component~="ui-card"]) {
|
|
13
13
|
--_ui-card-surface: var(--ui-surface-raised);
|
|
14
|
+
--_ui-surface-text: initial;
|
|
14
15
|
--_ui-card-elevation: 0 0 0 transparent;
|
|
15
16
|
--_ui-selection-context-surface: initial;
|
|
16
17
|
--_ui-selection-context-border: initial;
|
|
@@ -24,7 +25,7 @@
|
|
|
24
25
|
border: var(--ui-border-width) solid var(--ui-border-strong);
|
|
25
26
|
border-radius: var(--ui-radius-lg);
|
|
26
27
|
background: var(--_ui-card-surface);
|
|
27
|
-
color: var(--ui-text-primary);
|
|
28
|
+
color: var(--_ui-surface-text, var(--ui-text-primary));
|
|
28
29
|
}
|
|
29
30
|
|
|
30
31
|
:scope:where([data-component~="ui-card"])[data-ui-card-state~="padding=xs"] {
|
|
@@ -52,9 +53,9 @@
|
|
|
52
53
|
}
|
|
53
54
|
|
|
54
55
|
:scope:where([data-component~="ui-card"])[data-ui-card-state~="treatment=expressive"] {
|
|
55
|
-
--_ui-panel-glass:
|
|
56
|
+
--_ui-panel-glass: clamp(0, var(--ui-glassiness, 0), 1);
|
|
56
57
|
--_ui-panel-separation: clamp(0, var(--ui-surface-separation, 0), 1);
|
|
57
|
-
--_ui-panel-rim: calc(
|
|
58
|
+
--_ui-panel-rim: calc(var(--_ui-panel-separation) * 8px);
|
|
58
59
|
border-width: calc(var(--ui-border-width) + var(--_ui-panel-rim));
|
|
59
60
|
border-color: transparent;
|
|
60
61
|
background:
|
|
@@ -66,8 +67,8 @@
|
|
|
66
67
|
var(--_ui-card-elevation),
|
|
67
68
|
var(--ui-material-glow, 0 0 transparent),
|
|
68
69
|
inset 0 0 0 var(--ui-border-width) var(--ui-material-edge, var(--ui-border-strong));
|
|
69
|
-
backdrop-filter: blur(calc(var(--_ui-panel-glass) *
|
|
70
|
-
|
|
70
|
+
-webkit-backdrop-filter: blur(calc(var(--_ui-panel-glass) * 32px));
|
|
71
|
+
backdrop-filter: blur(calc(var(--_ui-panel-glass) * 32px));
|
|
71
72
|
}
|
|
72
73
|
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
|
|
73
74
|
:scope:where([data-component~="ui-card"])[data-ui-card-state~="treatment=expressive"] {
|
|
@@ -79,8 +80,8 @@
|
|
|
79
80
|
background: var(--_ui-card-surface);
|
|
80
81
|
border-width: var(--ui-border-width);
|
|
81
82
|
border-color: var(--ui-border-strong);
|
|
82
|
-
backdrop-filter: none;
|
|
83
83
|
-webkit-backdrop-filter: none;
|
|
84
|
+
backdrop-filter: none;
|
|
84
85
|
}
|
|
85
86
|
}
|
|
86
87
|
@media (forced-colors: active) {
|
|
@@ -89,42 +90,65 @@
|
|
|
89
90
|
color: CanvasText;
|
|
90
91
|
border: var(--ui-border-width) solid CanvasText;
|
|
91
92
|
box-shadow: none;
|
|
92
|
-
backdrop-filter: none;
|
|
93
93
|
-webkit-backdrop-filter: none;
|
|
94
|
+
backdrop-filter: none;
|
|
94
95
|
}
|
|
95
96
|
}
|
|
96
97
|
|
|
98
|
+
:scope:where([data-component~="ui-card"])[data-ui-card-state~="tone=accent-secondary"] {
|
|
99
|
+
border-color: var(--ui-accent-secondary-soft-border);
|
|
100
|
+
--_ui-card-surface: var(--ui-accent-secondary-soft);
|
|
101
|
+
--_ui-surface-text: var(--ui-accent-secondary-subtle-text);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
:scope:where([data-component~="ui-card"])[data-ui-card-state~="tone=accent-tertiary"] {
|
|
105
|
+
border-color: var(--ui-accent-tertiary-soft-border);
|
|
106
|
+
--_ui-card-surface: var(--ui-accent-tertiary-soft);
|
|
107
|
+
--_ui-surface-text: var(--ui-accent-tertiary-subtle-text);
|
|
108
|
+
}
|
|
109
|
+
|
|
97
110
|
:scope:where([data-component~="ui-card"])[data-ui-card-state~="tone=accent"] {
|
|
98
|
-
border-color:
|
|
99
|
-
--_ui-card-surface:
|
|
111
|
+
border-color: var(--ui-accent-soft-border);
|
|
112
|
+
--_ui-card-surface: var(--ui-accent-soft);
|
|
113
|
+
--_ui-surface-text: var(--ui-accent-subtle-text);
|
|
100
114
|
}
|
|
101
115
|
|
|
102
116
|
:scope:where([data-component~="ui-card"])[data-ui-card-state~="tone=info"] {
|
|
103
|
-
border-color:
|
|
104
|
-
--_ui-card-surface:
|
|
117
|
+
border-color: var(--ui-info-soft-border);
|
|
118
|
+
--_ui-card-surface: var(--ui-info-soft);
|
|
119
|
+
--_ui-surface-text: var(--ui-info-subtle-text);
|
|
105
120
|
}
|
|
106
121
|
|
|
107
122
|
:scope:where([data-component~="ui-card"])[data-ui-card-state~="tone=success"] {
|
|
108
|
-
border-color:
|
|
109
|
-
--_ui-card-surface:
|
|
123
|
+
border-color: var(--ui-success-soft-border);
|
|
124
|
+
--_ui-card-surface: var(--ui-success-soft);
|
|
125
|
+
--_ui-surface-text: var(--ui-success-subtle-text);
|
|
110
126
|
}
|
|
111
127
|
|
|
112
128
|
:scope:where([data-component~="ui-card"])[data-ui-card-state~="tone=warning"] {
|
|
113
|
-
border-color:
|
|
114
|
-
--_ui-card-surface:
|
|
129
|
+
border-color: var(--ui-warning-soft-border);
|
|
130
|
+
--_ui-card-surface: var(--ui-warning-soft);
|
|
131
|
+
--_ui-surface-text: var(--ui-warning-subtle-text);
|
|
115
132
|
}
|
|
116
133
|
|
|
117
|
-
:scope:where([data-component~="ui-card"])[data-ui-card-state~="variant=subtle"]:is([data-ui-card-state~="tone=accent"], [data-ui-card-state~="tone=info"], [data-ui-card-state~="tone=success"], [data-ui-card-state~="tone=warning"]) {
|
|
134
|
+
:scope:where([data-component~="ui-card"])[data-ui-card-state~="variant=subtle"]:is([data-ui-card-state~="tone=accent"], [data-ui-card-state~="tone=accent-secondary"], [data-ui-card-state~="tone=accent-tertiary"], [data-ui-card-state~="tone=info"], [data-ui-card-state~="tone=success"], [data-ui-card-state~="tone=warning"]) {
|
|
118
135
|
border-color: transparent;
|
|
119
136
|
}
|
|
120
137
|
|
|
121
138
|
:scope:where([data-component~="ui-card"])[data-ui-card-state~="tone=danger"] {
|
|
122
|
-
border-color:
|
|
139
|
+
border-color: var(--ui-danger-soft-border);
|
|
123
140
|
--_ui-card-surface: var(--ui-danger-soft);
|
|
141
|
+
--_ui-surface-text: var(--ui-danger-subtle-text);
|
|
124
142
|
}
|
|
125
143
|
|
|
126
144
|
/* A colored panel shades rows in its own hue, without changing button intent. */
|
|
127
|
-
:scope:where([data-component~="ui-card"])[data-ui-card-state~="tone=accent"],
|
|
145
|
+
:scope:where([data-component~="ui-card"])[data-ui-card-state~="tone=accent"],
|
|
146
|
+
:scope:where([data-component~="ui-card"])[data-ui-card-state~="tone=accent-secondary"],
|
|
147
|
+
:scope:where([data-component~="ui-card"])[data-ui-card-state~="tone=accent-tertiary"],
|
|
148
|
+
:scope:where([data-component~="ui-card"])[data-ui-card-state~="tone=info"],
|
|
149
|
+
:scope:where([data-component~="ui-card"])[data-ui-card-state~="tone=success"],
|
|
150
|
+
:scope:where([data-component~="ui-card"])[data-ui-card-state~="tone=warning"],
|
|
151
|
+
:scope:where([data-component~="ui-card"])[data-ui-card-state~="tone=danger"] {
|
|
128
152
|
--_ui-selection-context-surface: light-dark(
|
|
129
153
|
oklch(from var(--_ui-card-surface) calc(l - 0.045) calc(max(c, min(0.045, c * 3))) h),
|
|
130
154
|
oklch(from var(--_ui-card-surface) calc(l + 0.045) calc(max(c, min(0.045, c * 3))) h)
|
package/styles/ui-checkbox.css
CHANGED
|
@@ -7,22 +7,8 @@
|
|
|
7
7
|
[data-component~="ui-checkbox"] { --html-next-scope-owner: "ui-checkbox" !important; }
|
|
8
8
|
}
|
|
9
9
|
@scope ([data-component~="ui-checkbox"]) to ([data-component], [data-slotted]) {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
syntax: "*";
|
|
13
|
-
inherits: false;
|
|
14
|
-
}
|
|
15
|
-
@property --ui-checkbox-invalid-border {
|
|
16
|
-
syntax: "*";
|
|
17
|
-
inherits: false;
|
|
18
|
-
}
|
|
19
|
-
@property --ui-checkbox-size {
|
|
20
|
-
syntax: "*";
|
|
21
|
-
inherits: false;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
:scope:where([data-component~="ui-checkbox"]) {
|
|
25
|
-
/* Hooks do not inherit, so the parts below read them from the root. */
|
|
10
|
+
:scope:where([data-component~="ui-checkbox"]) {
|
|
11
|
+
/* Resolve shared part values at the component root. */
|
|
26
12
|
--_ui-checkbox-size: var(--ui-checkbox-size, var(--ui-choice-mark-size));
|
|
27
13
|
--_ui-checkbox-invalid-border: var(--ui-checkbox-invalid-border, var(--ui-field-danger, var(--ui-danger-solid)));
|
|
28
14
|
|
|
@@ -114,7 +100,7 @@
|
|
|
114
100
|
border-color: var(--ui-accent-solid);
|
|
115
101
|
background-color: var(--ui-accent-solid);
|
|
116
102
|
background-image: var(--ui-accent-highlight, none);
|
|
117
|
-
box-shadow:
|
|
103
|
+
box-shadow: none;
|
|
118
104
|
}
|
|
119
105
|
|
|
120
106
|
/* The SVG's painted bounds are centred in its viewBox, including its round stroke.
|
|
@@ -232,9 +218,7 @@
|
|
|
232
218
|
}
|
|
233
219
|
}
|
|
234
220
|
@scope ([data-component~="ui-checkbox"]) to ([data-component]) {
|
|
235
|
-
/*
|
|
236
|
-
|
|
237
|
-
/* The label, and under it an optional line saying what the choice means. */
|
|
221
|
+
/* The label, and under it an optional line saying what the choice means. */
|
|
238
222
|
|
|
239
223
|
/* The SVG's painted bounds are centred in its viewBox, including its round stroke.
|
|
240
224
|
Centre that box directly; rotated border boxes do not centre the visible check. */
|
package/styles/ui-cluster.css
CHANGED
|
@@ -7,13 +7,7 @@
|
|
|
7
7
|
[data-component~="ui-cluster"] { --html-next-scope-owner: "ui-cluster" !important; }
|
|
8
8
|
}
|
|
9
9
|
@scope ([data-component~="ui-cluster"]) to ([data-component], [data-slotted]) {
|
|
10
|
-
|
|
11
|
-
@property --ui-cluster-gap {
|
|
12
|
-
syntax: "*";
|
|
13
|
-
inherits: false;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
:scope:where([data-component~="ui-cluster"]) {
|
|
10
|
+
:scope:where([data-component~="ui-cluster"]) {
|
|
17
11
|
--_layout-gap: var(--ui-space-3);
|
|
18
12
|
display: flex !important;
|
|
19
13
|
flex-wrap: wrap !important;
|
|
@@ -95,7 +89,5 @@
|
|
|
95
89
|
}
|
|
96
90
|
}
|
|
97
91
|
@scope ([data-component~="ui-cluster"]) to ([data-component]) {
|
|
98
|
-
/*
|
|
99
|
-
|
|
100
|
-
/* A component that sets its display still honours the hidden attribute on its root. */
|
|
92
|
+
/* A component that sets its display still honours the hidden attribute on its root. */
|
|
101
93
|
}
|
package/styles/ui-combobox.css
CHANGED
|
@@ -7,74 +7,8 @@
|
|
|
7
7
|
[data-component~="ui-combobox"] { --html-next-scope-owner: "ui-combobox" !important; }
|
|
8
8
|
}
|
|
9
9
|
@scope ([data-component~="ui-combobox"]) to ([data-component], [data-slotted]) {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
syntax: "*";
|
|
13
|
-
inherits: false;
|
|
14
|
-
}
|
|
15
|
-
@property --ui-combobox-item-input-min-inline-size {
|
|
16
|
-
syntax: "*";
|
|
17
|
-
inherits: false;
|
|
18
|
-
}
|
|
19
|
-
@property --ui-combobox-item-item-max-inline-size {
|
|
20
|
-
syntax: "*";
|
|
21
|
-
inherits: false;
|
|
22
|
-
}
|
|
23
|
-
@property --ui-combobox-item-min-block-size {
|
|
24
|
-
syntax: "*";
|
|
25
|
-
inherits: false;
|
|
26
|
-
}
|
|
27
|
-
@property --ui-combobox-label-font-size {
|
|
28
|
-
syntax: "*";
|
|
29
|
-
inherits: false;
|
|
30
|
-
}
|
|
31
|
-
@property --ui-combobox-label-text {
|
|
32
|
-
syntax: "*";
|
|
33
|
-
inherits: false;
|
|
34
|
-
}
|
|
35
|
-
@property --ui-combobox-max-block-size {
|
|
36
|
-
syntax: "*";
|
|
37
|
-
inherits: false;
|
|
38
|
-
}
|
|
39
|
-
@property --ui-combobox-message-text {
|
|
40
|
-
syntax: "*";
|
|
41
|
-
inherits: false;
|
|
42
|
-
}
|
|
43
|
-
@property --ui-combobox-option-check {
|
|
44
|
-
syntax: "*";
|
|
45
|
-
inherits: false;
|
|
46
|
-
}
|
|
47
|
-
@property --ui-combobox-option-text {
|
|
48
|
-
syntax: "*";
|
|
49
|
-
inherits: false;
|
|
50
|
-
}
|
|
51
|
-
@property --ui-combobox-radius {
|
|
52
|
-
syntax: "*";
|
|
53
|
-
inherits: false;
|
|
54
|
-
}
|
|
55
|
-
@property --ui-combobox-invalid-border {
|
|
56
|
-
syntax: "*";
|
|
57
|
-
inherits: false;
|
|
58
|
-
}
|
|
59
|
-
@property --ui-combobox-popup-surface {
|
|
60
|
-
syntax: "*";
|
|
61
|
-
inherits: false;
|
|
62
|
-
}
|
|
63
|
-
@property --ui-combobox-popup-border {
|
|
64
|
-
syntax: "*";
|
|
65
|
-
inherits: false;
|
|
66
|
-
}
|
|
67
|
-
@property --ui-combobox-popup-radius {
|
|
68
|
-
syntax: "*";
|
|
69
|
-
inherits: false;
|
|
70
|
-
}
|
|
71
|
-
@property --ui-combobox-popup-shadow {
|
|
72
|
-
syntax: "*";
|
|
73
|
-
inherits: false;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
:scope:where([data-component~="ui-combobox"]) {
|
|
77
|
-
/* Hooks do not inherit, so the parts below read them from the root. */
|
|
10
|
+
:scope:where([data-component~="ui-combobox"]) {
|
|
11
|
+
/* Resolve shared part values at the component root. */
|
|
78
12
|
--_ui-combobox-label-text: var(--ui-combobox-label-text);
|
|
79
13
|
--_ui-combobox-label-font-size: var(--ui-combobox-label-font-size);
|
|
80
14
|
--_ui-combobox-affordance-text: var(--ui-combobox-affordance-text);
|
|
@@ -101,7 +35,7 @@
|
|
|
101
35
|
}
|
|
102
36
|
label {
|
|
103
37
|
color: var(--_ui-combobox-label-text, var(--ui-text-primary));
|
|
104
|
-
font-size: var(--_ui-combobox-label-font-size, var(--ui-font-size-
|
|
38
|
+
font-size: var(--_ui-combobox-label-font-size, var(--ui-field-label-font-size, var(--ui-font-size-md)));
|
|
105
39
|
font-weight: 500;
|
|
106
40
|
}
|
|
107
41
|
/* The field and anything that annotates it sit on one row; the help button is beside the box,
|
|
@@ -414,8 +348,7 @@
|
|
|
414
348
|
}
|
|
415
349
|
}
|
|
416
350
|
@scope ([data-component~="ui-combobox"]) to ([data-component]) {
|
|
417
|
-
/*
|
|
418
|
-
/* The field and anything that annotates it sit on one row; the help button is beside the box,
|
|
351
|
+
/* The field and anything that annotates it sit on one row; the help button is beside the box,
|
|
419
352
|
not inside it, because a control's box holds its value. */
|
|
420
353
|
/* A ghost icon button: the affordance is the mark, not a box around it. */
|
|
421
354
|
/* A row with a tag or a description: the label and its tag on one line, the description under them. */
|
|
@@ -432,74 +365,8 @@
|
|
|
432
365
|
/* A component that sets its display still honours the hidden attribute on its root. */
|
|
433
366
|
}
|
|
434
367
|
@scope ([data-slotted~="ui-combobox"]:not([data-component])) to ([data-component], [data-slotted]) {
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
syntax: "*";
|
|
438
|
-
inherits: false;
|
|
439
|
-
}
|
|
440
|
-
@property --ui-combobox-item-input-min-inline-size {
|
|
441
|
-
syntax: "*";
|
|
442
|
-
inherits: false;
|
|
443
|
-
}
|
|
444
|
-
@property --ui-combobox-item-item-max-inline-size {
|
|
445
|
-
syntax: "*";
|
|
446
|
-
inherits: false;
|
|
447
|
-
}
|
|
448
|
-
@property --ui-combobox-item-min-block-size {
|
|
449
|
-
syntax: "*";
|
|
450
|
-
inherits: false;
|
|
451
|
-
}
|
|
452
|
-
@property --ui-combobox-label-font-size {
|
|
453
|
-
syntax: "*";
|
|
454
|
-
inherits: false;
|
|
455
|
-
}
|
|
456
|
-
@property --ui-combobox-label-text {
|
|
457
|
-
syntax: "*";
|
|
458
|
-
inherits: false;
|
|
459
|
-
}
|
|
460
|
-
@property --ui-combobox-max-block-size {
|
|
461
|
-
syntax: "*";
|
|
462
|
-
inherits: false;
|
|
463
|
-
}
|
|
464
|
-
@property --ui-combobox-message-text {
|
|
465
|
-
syntax: "*";
|
|
466
|
-
inherits: false;
|
|
467
|
-
}
|
|
468
|
-
@property --ui-combobox-option-check {
|
|
469
|
-
syntax: "*";
|
|
470
|
-
inherits: false;
|
|
471
|
-
}
|
|
472
|
-
@property --ui-combobox-option-text {
|
|
473
|
-
syntax: "*";
|
|
474
|
-
inherits: false;
|
|
475
|
-
}
|
|
476
|
-
@property --ui-combobox-radius {
|
|
477
|
-
syntax: "*";
|
|
478
|
-
inherits: false;
|
|
479
|
-
}
|
|
480
|
-
@property --ui-combobox-invalid-border {
|
|
481
|
-
syntax: "*";
|
|
482
|
-
inherits: false;
|
|
483
|
-
}
|
|
484
|
-
@property --ui-combobox-popup-surface {
|
|
485
|
-
syntax: "*";
|
|
486
|
-
inherits: false;
|
|
487
|
-
}
|
|
488
|
-
@property --ui-combobox-popup-border {
|
|
489
|
-
syntax: "*";
|
|
490
|
-
inherits: false;
|
|
491
|
-
}
|
|
492
|
-
@property --ui-combobox-popup-radius {
|
|
493
|
-
syntax: "*";
|
|
494
|
-
inherits: false;
|
|
495
|
-
}
|
|
496
|
-
@property --ui-combobox-popup-shadow {
|
|
497
|
-
syntax: "*";
|
|
498
|
-
inherits: false;
|
|
499
|
-
}
|
|
500
|
-
|
|
501
|
-
:where([data-component~="ui-combobox"]):where(:scope, :not([data-component], [data-slotted]:not([data-slotted~="ui-combobox"]))) {
|
|
502
|
-
/* Hooks do not inherit, so the parts below read them from the root. */
|
|
368
|
+
:where([data-component~="ui-combobox"]):where(:scope, :not([data-component], [data-slotted]:not([data-slotted~="ui-combobox"]))) {
|
|
369
|
+
/* Resolve shared part values at the component root. */
|
|
503
370
|
--_ui-combobox-label-text: var(--ui-combobox-label-text);
|
|
504
371
|
--_ui-combobox-label-font-size: var(--ui-combobox-label-font-size);
|
|
505
372
|
--_ui-combobox-affordance-text: var(--ui-combobox-affordance-text);
|
|
@@ -526,7 +393,7 @@
|
|
|
526
393
|
}
|
|
527
394
|
label:where(:scope, :scope *) {
|
|
528
395
|
color: var(--_ui-combobox-label-text, var(--ui-text-primary));
|
|
529
|
-
font-size: var(--_ui-combobox-label-font-size, var(--ui-font-size-
|
|
396
|
+
font-size: var(--_ui-combobox-label-font-size, var(--ui-field-label-font-size, var(--ui-font-size-md)));
|
|
530
397
|
font-weight: 500;
|
|
531
398
|
}
|
|
532
399
|
/* The field and anything that annotates it sit on one row; the help button is beside the box,
|
package/styles/ui-container.css
CHANGED
|
@@ -7,17 +7,7 @@
|
|
|
7
7
|
[data-component~="ui-container"] { --html-next-scope-owner: "ui-container" !important; }
|
|
8
8
|
}
|
|
9
9
|
@scope ([data-component~="ui-container"]) to ([data-component], [data-slotted]) {
|
|
10
|
-
|
|
11
|
-
@property --ui-container-gutters {
|
|
12
|
-
syntax: "*";
|
|
13
|
-
inherits: false;
|
|
14
|
-
}
|
|
15
|
-
@property --ui-container-measure {
|
|
16
|
-
syntax: "*";
|
|
17
|
-
inherits: false;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
:scope:where([data-component~="ui-container"]) {
|
|
10
|
+
:scope:where([data-component~="ui-container"]) {
|
|
21
11
|
--_container-measure: 65ch;
|
|
22
12
|
--_container-gutters: var(--ui-space-4);
|
|
23
13
|
display: block !important;
|
|
@@ -57,7 +47,5 @@
|
|
|
57
47
|
}
|
|
58
48
|
}
|
|
59
49
|
@scope ([data-component~="ui-container"]) to ([data-component]) {
|
|
60
|
-
/*
|
|
61
|
-
|
|
62
|
-
/* A component that sets its display still honours the hidden attribute on its root. */
|
|
50
|
+
/* A component that sets its display still honours the hidden attribute on its root. */
|
|
63
51
|
}
|
|
@@ -7,30 +7,8 @@
|
|
|
7
7
|
[data-component~="ui-context-menu"] { --html-next-scope-owner: "ui-context-menu" !important; }
|
|
8
8
|
}
|
|
9
9
|
@scope ([data-component~="ui-context-menu"]) to ([data-component], [data-slotted]) {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
syntax: "*";
|
|
13
|
-
inherits: false;
|
|
14
|
-
}
|
|
15
|
-
@property --ui-context-menu-border {
|
|
16
|
-
syntax: "*";
|
|
17
|
-
inherits: false;
|
|
18
|
-
}
|
|
19
|
-
@property --ui-context-menu-radius {
|
|
20
|
-
syntax: "*";
|
|
21
|
-
inherits: false;
|
|
22
|
-
}
|
|
23
|
-
@property --ui-context-menu-shadow {
|
|
24
|
-
syntax: "*";
|
|
25
|
-
inherits: false;
|
|
26
|
-
}
|
|
27
|
-
@property --ui-context-menu-z-index {
|
|
28
|
-
syntax: "*";
|
|
29
|
-
inherits: false;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
:scope:where([data-component~="ui-context-menu"]) {
|
|
33
|
-
/* Hooks do not inherit, so the parts below read them from the root. */
|
|
10
|
+
:scope:where([data-component~="ui-context-menu"]) {
|
|
11
|
+
/* Resolve shared part values at the component root. */
|
|
34
12
|
--_ui-context-menu-surface: var(--ui-context-menu-surface);
|
|
35
13
|
--_ui-context-menu-border: var(--ui-context-menu-border);
|
|
36
14
|
--_ui-context-menu-radius: var(--ui-context-menu-radius);
|
|
@@ -102,9 +80,7 @@
|
|
|
102
80
|
}
|
|
103
81
|
}
|
|
104
82
|
@scope ([data-component~="ui-context-menu"]) to ([data-component]) {
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
@starting-style {
|
|
83
|
+
@starting-style {
|
|
108
84
|
}
|
|
109
85
|
|
|
110
86
|
@media (prefers-reduced-motion: reduce) {
|
package/styles/ui-dialog.css
CHANGED
|
@@ -7,39 +7,9 @@
|
|
|
7
7
|
[data-component~="ui-dialog"] { --html-next-scope-owner: "ui-dialog" !important; }
|
|
8
8
|
}
|
|
9
9
|
@scope ([data-component~="ui-dialog"]) to ([data-component], [data-slotted]) {
|
|
10
|
-
|
|
11
|
-
@property --ui-dialog-duration {
|
|
12
|
-
syntax: "*";
|
|
13
|
-
inherits: false;
|
|
14
|
-
}
|
|
15
|
-
@property --ui-dialog-surface {
|
|
16
|
-
syntax: "*";
|
|
17
|
-
inherits: false;
|
|
18
|
-
}
|
|
19
|
-
@property --ui-dialog-border {
|
|
20
|
-
syntax: "*";
|
|
21
|
-
inherits: false;
|
|
22
|
-
}
|
|
23
|
-
@property --ui-dialog-radius {
|
|
24
|
-
syntax: "*";
|
|
25
|
-
inherits: false;
|
|
26
|
-
}
|
|
27
|
-
@property --ui-dialog-shadow {
|
|
28
|
-
syntax: "*";
|
|
29
|
-
inherits: false;
|
|
30
|
-
}
|
|
31
|
-
@property --ui-dialog-max-width {
|
|
32
|
-
syntax: "*";
|
|
33
|
-
inherits: false;
|
|
34
|
-
}
|
|
35
|
-
@property --ui-dialog-viewport-gap {
|
|
36
|
-
syntax: "*";
|
|
37
|
-
inherits: false;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
:scope:where([data-component~="ui-dialog"]) {
|
|
10
|
+
:scope:where([data-component~="ui-dialog"]) {
|
|
41
11
|
--_ui-material-scale: 1;
|
|
42
|
-
/*
|
|
12
|
+
/* Resolve shared part values at the component root. */
|
|
43
13
|
--_ui-dialog-duration: var(--ui-dialog-duration);
|
|
44
14
|
|
|
45
15
|
position: fixed;
|
|
@@ -72,12 +42,12 @@
|
|
|
72
42
|
}
|
|
73
43
|
|
|
74
44
|
/* Purpose and measured size shape one shared separation lever. The content plane stays opaque;
|
|
75
|
-
transparency,
|
|
45
|
+
transparency, frosting and edge light belong to the surrounding decorative material. */
|
|
76
46
|
:scope:where([data-component~="ui-dialog"]) {
|
|
77
|
-
--_ui-material-glassiness:
|
|
47
|
+
--_ui-material-glassiness: clamp(0, var(--ui-glassiness, 0), 1);
|
|
78
48
|
--_ui-material-separation: clamp(0, var(--ui-surface-separation, 0), 1);
|
|
79
|
-
--_ui-material-active: clamp(0, calc(
|
|
80
|
-
--_ui-material-rim: calc(
|
|
49
|
+
--_ui-material-active: clamp(0, calc(var(--_ui-material-separation) * 100000), 1);
|
|
50
|
+
--_ui-material-rim: calc(var(--_ui-material-separation) * var(--_ui-material-scale, 1) * 8px);
|
|
81
51
|
--_ui-material-content-color: var(--ui-dialog-surface, var(--ui-material-content, var(--ui-overlay-surface, var(--ui-surface-elevated))));
|
|
82
52
|
--_ui-material-rim-color: color-mix(in srgb, var(--ui-material-glass, var(--ui-surface-elevated)) calc(var(--_ui-material-active) * 100%), transparent);
|
|
83
53
|
background:
|
|
@@ -102,10 +72,8 @@
|
|
|
102
72
|
var(--ui-elevation-dialog, var(--ui-shadow-xl))
|
|
103
73
|
)
|
|
104
74
|
);
|
|
105
|
-
backdrop-filter: blur(calc(var(--_ui-material-glassiness) * var(--_ui-material-scale, 1) *
|
|
106
|
-
|
|
107
|
-
-webkit-backdrop-filter: blur(calc(var(--_ui-material-glassiness) * var(--_ui-material-scale, 1) * 18px))
|
|
108
|
-
saturate(calc(1 + var(--_ui-material-glassiness) * var(--_ui-material-scale, 1) * 0.18));
|
|
75
|
+
-webkit-backdrop-filter: blur(calc(var(--_ui-material-glassiness) * var(--_ui-material-scale, 1) * 32px));
|
|
76
|
+
backdrop-filter: blur(calc(var(--_ui-material-glassiness) * var(--_ui-material-scale, 1) * 32px));
|
|
109
77
|
}
|
|
110
78
|
|
|
111
79
|
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
|
|
@@ -117,8 +85,8 @@
|
|
|
117
85
|
@media (prefers-reduced-transparency: reduce) {
|
|
118
86
|
:scope:where([data-component~="ui-dialog"]) {
|
|
119
87
|
background: var(--_ui-material-content-color);
|
|
120
|
-
backdrop-filter: none;
|
|
121
88
|
-webkit-backdrop-filter: none;
|
|
89
|
+
backdrop-filter: none;
|
|
122
90
|
}
|
|
123
91
|
}
|
|
124
92
|
|
|
@@ -127,8 +95,8 @@
|
|
|
127
95
|
background: Canvas;
|
|
128
96
|
border-color: CanvasText;
|
|
129
97
|
box-shadow: none;
|
|
130
|
-
backdrop-filter: none;
|
|
131
98
|
-webkit-backdrop-filter: none;
|
|
99
|
+
backdrop-filter: none;
|
|
132
100
|
}
|
|
133
101
|
}
|
|
134
102
|
|
|
@@ -253,10 +221,8 @@
|
|
|
253
221
|
}
|
|
254
222
|
}
|
|
255
223
|
@scope ([data-component~="ui-dialog"]) to ([data-component]) {
|
|
256
|
-
/*
|
|
257
|
-
|
|
258
|
-
/* Purpose and measured size shape one shared separation lever. The content plane stays opaque;
|
|
259
|
-
transparency, saturation and edge light belong to the surrounding decorative material. */
|
|
224
|
+
/* Purpose and measured size shape one shared separation lever. The content plane stays opaque;
|
|
225
|
+
transparency, frosting and edge light belong to the surrounding decorative material. */
|
|
260
226
|
|
|
261
227
|
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
|
|
262
228
|
}
|
|
@@ -274,39 +240,9 @@
|
|
|
274
240
|
/* :host-qualified so page heading rules that reach in cannot outrank the dialog chrome. */
|
|
275
241
|
}
|
|
276
242
|
@scope ([data-slotted~="ui-dialog"]:not([data-component])) to ([data-component], [data-slotted]) {
|
|
277
|
-
|
|
278
|
-
@property --ui-dialog-duration {
|
|
279
|
-
syntax: "*";
|
|
280
|
-
inherits: false;
|
|
281
|
-
}
|
|
282
|
-
@property --ui-dialog-surface {
|
|
283
|
-
syntax: "*";
|
|
284
|
-
inherits: false;
|
|
285
|
-
}
|
|
286
|
-
@property --ui-dialog-border {
|
|
287
|
-
syntax: "*";
|
|
288
|
-
inherits: false;
|
|
289
|
-
}
|
|
290
|
-
@property --ui-dialog-radius {
|
|
291
|
-
syntax: "*";
|
|
292
|
-
inherits: false;
|
|
293
|
-
}
|
|
294
|
-
@property --ui-dialog-shadow {
|
|
295
|
-
syntax: "*";
|
|
296
|
-
inherits: false;
|
|
297
|
-
}
|
|
298
|
-
@property --ui-dialog-max-width {
|
|
299
|
-
syntax: "*";
|
|
300
|
-
inherits: false;
|
|
301
|
-
}
|
|
302
|
-
@property --ui-dialog-viewport-gap {
|
|
303
|
-
syntax: "*";
|
|
304
|
-
inherits: false;
|
|
305
|
-
}
|
|
306
|
-
|
|
307
|
-
:where([data-component~="ui-dialog"]):where(:scope, :not([data-component], [data-slotted]:not([data-slotted~="ui-dialog"]))) {
|
|
243
|
+
:where([data-component~="ui-dialog"]):where(:scope, :not([data-component], [data-slotted]:not([data-slotted~="ui-dialog"]))) {
|
|
308
244
|
--_ui-material-scale: 1;
|
|
309
|
-
/*
|
|
245
|
+
/* Resolve shared part values at the component root. */
|
|
310
246
|
--_ui-dialog-duration: var(--ui-dialog-duration);
|
|
311
247
|
|
|
312
248
|
position: fixed;
|
|
@@ -339,12 +275,12 @@
|
|
|
339
275
|
}
|
|
340
276
|
|
|
341
277
|
/* Purpose and measured size shape one shared separation lever. The content plane stays opaque;
|
|
342
|
-
transparency,
|
|
278
|
+
transparency, frosting and edge light belong to the surrounding decorative material. */
|
|
343
279
|
:where([data-component~="ui-dialog"]):where(:scope, :not([data-component], [data-slotted]:not([data-slotted~="ui-dialog"]))) {
|
|
344
|
-
--_ui-material-glassiness:
|
|
280
|
+
--_ui-material-glassiness: clamp(0, var(--ui-glassiness, 0), 1);
|
|
345
281
|
--_ui-material-separation: clamp(0, var(--ui-surface-separation, 0), 1);
|
|
346
|
-
--_ui-material-active: clamp(0, calc(
|
|
347
|
-
--_ui-material-rim: calc(
|
|
282
|
+
--_ui-material-active: clamp(0, calc(var(--_ui-material-separation) * 100000), 1);
|
|
283
|
+
--_ui-material-rim: calc(var(--_ui-material-separation) * var(--_ui-material-scale, 1) * 8px);
|
|
348
284
|
--_ui-material-content-color: var(--ui-dialog-surface, var(--ui-material-content, var(--ui-overlay-surface, var(--ui-surface-elevated))));
|
|
349
285
|
--_ui-material-rim-color: color-mix(in srgb, var(--ui-material-glass, var(--ui-surface-elevated)) calc(var(--_ui-material-active) * 100%), transparent);
|
|
350
286
|
background:
|
|
@@ -369,10 +305,8 @@
|
|
|
369
305
|
var(--ui-elevation-dialog, var(--ui-shadow-xl))
|
|
370
306
|
)
|
|
371
307
|
);
|
|
372
|
-
backdrop-filter: blur(calc(var(--_ui-material-glassiness) * var(--_ui-material-scale, 1) *
|
|
373
|
-
|
|
374
|
-
-webkit-backdrop-filter: blur(calc(var(--_ui-material-glassiness) * var(--_ui-material-scale, 1) * 18px))
|
|
375
|
-
saturate(calc(1 + var(--_ui-material-glassiness) * var(--_ui-material-scale, 1) * 0.18));
|
|
308
|
+
-webkit-backdrop-filter: blur(calc(var(--_ui-material-glassiness) * var(--_ui-material-scale, 1) * 32px));
|
|
309
|
+
backdrop-filter: blur(calc(var(--_ui-material-glassiness) * var(--_ui-material-scale, 1) * 32px));
|
|
376
310
|
}
|
|
377
311
|
|
|
378
312
|
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
|
|
@@ -384,8 +318,8 @@
|
|
|
384
318
|
@media (prefers-reduced-transparency: reduce) {
|
|
385
319
|
:where([data-component~="ui-dialog"]):where(:scope, :not([data-component], [data-slotted]:not([data-slotted~="ui-dialog"]))) {
|
|
386
320
|
background: var(--_ui-material-content-color);
|
|
387
|
-
backdrop-filter: none;
|
|
388
321
|
-webkit-backdrop-filter: none;
|
|
322
|
+
backdrop-filter: none;
|
|
389
323
|
}
|
|
390
324
|
}
|
|
391
325
|
|
|
@@ -394,8 +328,8 @@
|
|
|
394
328
|
background: Canvas;
|
|
395
329
|
border-color: CanvasText;
|
|
396
330
|
box-shadow: none;
|
|
397
|
-
backdrop-filter: none;
|
|
398
331
|
-webkit-backdrop-filter: none;
|
|
332
|
+
backdrop-filter: none;
|
|
399
333
|
}
|
|
400
334
|
}
|
|
401
335
|
|