@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-badge.css
CHANGED
|
@@ -7,69 +7,7 @@
|
|
|
7
7
|
[data-component~="ui-badge"] { --html-next-scope-owner: "ui-badge" !important; }
|
|
8
8
|
}
|
|
9
9
|
@scope ([data-component~="ui-badge"]) to ([data-component], [data-slotted]) {
|
|
10
|
-
|
|
11
|
-
@property --ui-badge-border {
|
|
12
|
-
syntax: "*";
|
|
13
|
-
inherits: false;
|
|
14
|
-
}
|
|
15
|
-
@property --ui-badge-square-size {
|
|
16
|
-
syntax: "*";
|
|
17
|
-
inherits: false;
|
|
18
|
-
}
|
|
19
|
-
@property --ui-badge-circle-size {
|
|
20
|
-
syntax: "*";
|
|
21
|
-
inherits: false;
|
|
22
|
-
}
|
|
23
|
-
@property --ui-badge-circle-opacity {
|
|
24
|
-
syntax: "*";
|
|
25
|
-
inherits: false;
|
|
26
|
-
}
|
|
27
|
-
@property --ui-badge-dot-size {
|
|
28
|
-
syntax: "*";
|
|
29
|
-
inherits: false;
|
|
30
|
-
}
|
|
31
|
-
@property --ui-badge-color {
|
|
32
|
-
syntax: "*";
|
|
33
|
-
inherits: false;
|
|
34
|
-
}
|
|
35
|
-
@property --ui-badge-font-size {
|
|
36
|
-
syntax: "*";
|
|
37
|
-
inherits: false;
|
|
38
|
-
}
|
|
39
|
-
@property --ui-badge-font-weight {
|
|
40
|
-
syntax: "*";
|
|
41
|
-
inherits: false;
|
|
42
|
-
}
|
|
43
|
-
@property --ui-badge-line-height {
|
|
44
|
-
syntax: "*";
|
|
45
|
-
inherits: false;
|
|
46
|
-
}
|
|
47
|
-
@property --ui-badge-min-block-size {
|
|
48
|
-
syntax: "*";
|
|
49
|
-
inherits: false;
|
|
50
|
-
}
|
|
51
|
-
@property --ui-badge-padding-block {
|
|
52
|
-
syntax: "*";
|
|
53
|
-
inherits: false;
|
|
54
|
-
}
|
|
55
|
-
@property --ui-badge-padding-inline {
|
|
56
|
-
syntax: "*";
|
|
57
|
-
inherits: false;
|
|
58
|
-
}
|
|
59
|
-
@property --ui-badge-point {
|
|
60
|
-
syntax: "*";
|
|
61
|
-
inherits: false;
|
|
62
|
-
}
|
|
63
|
-
@property --ui-badge-surface {
|
|
64
|
-
syntax: "*";
|
|
65
|
-
inherits: false;
|
|
66
|
-
}
|
|
67
|
-
@property --ui-badge-text {
|
|
68
|
-
syntax: "*";
|
|
69
|
-
inherits: false;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
:scope:where([data-component~="ui-badge"]) {
|
|
10
|
+
:scope:where([data-component~="ui-badge"]) {
|
|
73
11
|
--_badge-surface: color-mix(in srgb, var(--ui-surface-subtle) 80%, var(--ui-surface-default));
|
|
74
12
|
--_badge-text: var(--ui-text-secondary);
|
|
75
13
|
/* Sit between the soft fill and its stronger theme ink. */
|
|
@@ -174,6 +112,40 @@
|
|
|
174
112
|
line-height: var(--ui-badge-line-height, 1);
|
|
175
113
|
}
|
|
176
114
|
|
|
115
|
+
:scope:where([data-component~="ui-badge"])[data-ui-badge-state~="tone=accent-secondary"] {
|
|
116
|
+
--_badge-surface: var(--ui-accent-secondary-strong-surface, var(--ui-accent-secondary-solid));
|
|
117
|
+
--_badge-border: var(--ui-accent-secondary-strong-surface, var(--ui-accent-secondary-solid));
|
|
118
|
+
--_badge-text: var(--ui-accent-secondary-on-strong, var(--ui-text-on-accent));
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
:scope:where([data-component~="ui-badge"])[data-ui-badge-state~="tone=accent-tertiary"] {
|
|
122
|
+
--_badge-surface: var(--ui-accent-tertiary-strong-surface, var(--ui-accent-tertiary-solid));
|
|
123
|
+
--_badge-border: var(--ui-accent-tertiary-strong-surface, var(--ui-accent-tertiary-solid));
|
|
124
|
+
--_badge-text: var(--ui-accent-tertiary-on-strong, var(--ui-text-on-accent));
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
:scope:where([data-component~="ui-badge"])[data-ui-badge-state~="variant=subtle"][data-ui-badge-state~="tone=accent-secondary"] {
|
|
128
|
+
--_badge-surface: var(--ui-accent-secondary-soft);
|
|
129
|
+
--_badge-border: var(--ui-accent-secondary-soft-border);
|
|
130
|
+
--_badge-text: var(--ui-accent-secondary-subtle-text, var(--ui-accent-secondary-solid));
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
:scope:where([data-component~="ui-badge"])[data-ui-badge-state~="variant=subtle"][data-ui-badge-state~="tone=accent-tertiary"] {
|
|
134
|
+
--_badge-surface: var(--ui-accent-tertiary-soft);
|
|
135
|
+
--_badge-border: var(--ui-accent-tertiary-soft-border);
|
|
136
|
+
--_badge-text: var(--ui-accent-tertiary-subtle-text, var(--ui-accent-tertiary-solid));
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
:scope:where([data-component~="ui-badge"])[data-ui-badge-state~="variant=outline"][data-ui-badge-state~="tone=accent-secondary"] {
|
|
140
|
+
--_badge-border: var(--ui-accent-secondary-solid);
|
|
141
|
+
--_badge-text: var(--ui-accent-secondary-subtle-text, var(--ui-accent-secondary-solid));
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
:scope:where([data-component~="ui-badge"])[data-ui-badge-state~="variant=outline"][data-ui-badge-state~="tone=accent-tertiary"] {
|
|
145
|
+
--_badge-border: var(--ui-accent-tertiary-solid);
|
|
146
|
+
--_badge-text: var(--ui-accent-tertiary-subtle-text, var(--ui-accent-tertiary-solid));
|
|
147
|
+
}
|
|
148
|
+
|
|
177
149
|
:scope:where([data-component~="ui-badge"])[data-ui-badge-state~="tone=accent"] {
|
|
178
150
|
--_badge-surface: var(--ui-accent-strong-surface, var(--ui-accent-solid));
|
|
179
151
|
--_badge-border: var(--ui-accent-strong-surface, var(--ui-accent-solid));
|
|
@@ -205,32 +177,32 @@
|
|
|
205
177
|
}
|
|
206
178
|
|
|
207
179
|
:scope:where([data-component~="ui-badge"])[data-ui-badge-state~="variant=subtle"][data-ui-badge-state~="tone=accent"] {
|
|
208
|
-
--_badge-surface:
|
|
209
|
-
--_badge-border:
|
|
180
|
+
--_badge-surface: var(--ui-accent-soft);
|
|
181
|
+
--_badge-border: var(--ui-accent-soft-border);
|
|
210
182
|
--_badge-text: var(--ui-accent-subtle-text, var(--ui-accent-solid));
|
|
211
183
|
}
|
|
212
184
|
|
|
213
185
|
:scope:where([data-component~="ui-badge"])[data-ui-badge-state~="variant=subtle"][data-ui-badge-state~="tone=danger"] {
|
|
214
|
-
--_badge-surface:
|
|
215
|
-
--_badge-border:
|
|
186
|
+
--_badge-surface: var(--ui-danger-soft);
|
|
187
|
+
--_badge-border: var(--ui-danger-soft-border);
|
|
216
188
|
--_badge-text: var(--ui-danger-subtle-text, var(--ui-danger-solid));
|
|
217
189
|
}
|
|
218
190
|
|
|
219
191
|
:scope:where([data-component~="ui-badge"])[data-ui-badge-state~="variant=subtle"][data-ui-badge-state~="tone=success"] {
|
|
220
|
-
--_badge-surface:
|
|
221
|
-
--_badge-border:
|
|
192
|
+
--_badge-surface: var(--ui-success-soft);
|
|
193
|
+
--_badge-border: var(--ui-success-soft-border);
|
|
222
194
|
--_badge-text: var(--ui-success-subtle-text, var(--ui-success-solid));
|
|
223
195
|
}
|
|
224
196
|
|
|
225
197
|
:scope:where([data-component~="ui-badge"])[data-ui-badge-state~="variant=subtle"][data-ui-badge-state~="tone=warning"] {
|
|
226
|
-
--_badge-surface:
|
|
227
|
-
--_badge-border:
|
|
198
|
+
--_badge-surface: var(--ui-warning-soft);
|
|
199
|
+
--_badge-border: var(--ui-warning-soft-border);
|
|
228
200
|
--_badge-text: var(--ui-warning-subtle-text, var(--ui-warning-solid));
|
|
229
201
|
}
|
|
230
202
|
|
|
231
203
|
:scope:where([data-component~="ui-badge"])[data-ui-badge-state~="variant=subtle"][data-ui-badge-state~="tone=info"] {
|
|
232
|
-
--_badge-surface:
|
|
233
|
-
--_badge-border:
|
|
204
|
+
--_badge-surface: var(--ui-info-soft);
|
|
205
|
+
--_badge-border: var(--ui-info-soft-border);
|
|
234
206
|
--_badge-text: var(--ui-info-subtle-text, var(--ui-info-solid));
|
|
235
207
|
}
|
|
236
208
|
|
|
@@ -303,10 +275,16 @@
|
|
|
303
275
|
border-color: var(--ui-badge-border, var(--_badge-color-border, var(--_badge-outline-surface)));
|
|
304
276
|
}
|
|
305
277
|
:scope:where([data-component~="ui-badge"])[data-ui-badge-state~="variant=inverse"][data-ui-badge-state~="tone=neutral"][data-ui-badge-state~="shape=circle"] {
|
|
306
|
-
--_badge-outline-surface: var(
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
278
|
+
--_badge-outline-surface: var(
|
|
279
|
+
--ui-badge-surface,
|
|
280
|
+
var(
|
|
281
|
+
--_badge-color-surface,
|
|
282
|
+
light-dark(
|
|
283
|
+
color-mix(in srgb, var(--ui-surface-raised) var(--ui-badge-circle-opacity, 66%), transparent),
|
|
284
|
+
color-mix(in srgb, var(--ui-surface-raised) var(--ui-badge-circle-opacity, 56%), transparent)
|
|
285
|
+
)
|
|
286
|
+
)
|
|
287
|
+
);
|
|
310
288
|
}
|
|
311
289
|
|
|
312
290
|
:scope:where([data-component~="ui-badge"])[data-ui-badge-state~="variant=outline"] {
|
|
@@ -511,9 +489,7 @@
|
|
|
511
489
|
}
|
|
512
490
|
}
|
|
513
491
|
@scope ([data-component~="ui-badge"]) to ([data-component]) {
|
|
514
|
-
/*
|
|
515
|
-
|
|
516
|
-
/* A constrained badge keeps its surface intact and ellipsizes only its label. The full
|
|
492
|
+
/* A constrained badge keeps its surface intact and ellipsizes only its label. The full
|
|
517
493
|
text stays in the DOM for accessible names and consumers' selected values. */
|
|
518
494
|
|
|
519
495
|
/* Icon content has its own flex item so label ellipsis never clips its strokes. */
|
package/styles/ui-button.css
CHANGED
|
@@ -7,81 +7,7 @@
|
|
|
7
7
|
[data-component~="ui-button"] { --html-next-scope-owner: "ui-button" !important; }
|
|
8
8
|
}
|
|
9
9
|
@scope ([data-component~="ui-button"]) to ([data-component], [data-slotted]) {
|
|
10
|
-
|
|
11
|
-
@property --ui-button-active-surface {
|
|
12
|
-
syntax: "*";
|
|
13
|
-
inherits: false;
|
|
14
|
-
}
|
|
15
|
-
@property --ui-button-border {
|
|
16
|
-
syntax: "*";
|
|
17
|
-
inherits: false;
|
|
18
|
-
}
|
|
19
|
-
@property --ui-button-disabled-filter {
|
|
20
|
-
syntax: "*";
|
|
21
|
-
inherits: false;
|
|
22
|
-
}
|
|
23
|
-
@property --ui-button-disabled-opacity {
|
|
24
|
-
syntax: "*";
|
|
25
|
-
inherits: false;
|
|
26
|
-
}
|
|
27
|
-
@property --ui-button-ghost-active-surface {
|
|
28
|
-
syntax: "*";
|
|
29
|
-
inherits: false;
|
|
30
|
-
}
|
|
31
|
-
@property --ui-button-ghost-hover-surface {
|
|
32
|
-
syntax: "*";
|
|
33
|
-
inherits: false;
|
|
34
|
-
}
|
|
35
|
-
@property --ui-button-ghost-text {
|
|
36
|
-
syntax: "*";
|
|
37
|
-
inherits: false;
|
|
38
|
-
}
|
|
39
|
-
@property --ui-button-hover-border {
|
|
40
|
-
syntax: "*";
|
|
41
|
-
inherits: false;
|
|
42
|
-
}
|
|
43
|
-
@property --ui-button-hover-surface {
|
|
44
|
-
syntax: "*";
|
|
45
|
-
inherits: false;
|
|
46
|
-
}
|
|
47
|
-
@property --ui-button-link-hover-text {
|
|
48
|
-
syntax: "*";
|
|
49
|
-
inherits: false;
|
|
50
|
-
}
|
|
51
|
-
@property --ui-button-link-text {
|
|
52
|
-
syntax: "*";
|
|
53
|
-
inherits: false;
|
|
54
|
-
}
|
|
55
|
-
@property --ui-button-min-block-size {
|
|
56
|
-
syntax: "*";
|
|
57
|
-
inherits: false;
|
|
58
|
-
}
|
|
59
|
-
@property --ui-button-radius {
|
|
60
|
-
syntax: "*";
|
|
61
|
-
inherits: false;
|
|
62
|
-
}
|
|
63
|
-
@property --ui-button-shadow {
|
|
64
|
-
syntax: "*";
|
|
65
|
-
inherits: false;
|
|
66
|
-
}
|
|
67
|
-
@property --ui-button-solid-shadow {
|
|
68
|
-
syntax: "*";
|
|
69
|
-
inherits: false;
|
|
70
|
-
}
|
|
71
|
-
@property --ui-button-surface {
|
|
72
|
-
syntax: "*";
|
|
73
|
-
inherits: false;
|
|
74
|
-
}
|
|
75
|
-
@property --ui-button-text {
|
|
76
|
-
syntax: "*";
|
|
77
|
-
inherits: false;
|
|
78
|
-
}
|
|
79
|
-
@property --ui-button-white-space {
|
|
80
|
-
syntax: "*";
|
|
81
|
-
inherits: false;
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
:scope:where([data-component~="ui-button"]) {
|
|
10
|
+
:scope:where([data-component~="ui-button"]) {
|
|
85
11
|
/* Optional inherited action-group values keep text and icon actions under the same light.
|
|
86
12
|
One fine top/start highlight follows the bottom/end lowlight at a joined action seam.
|
|
87
13
|
The shared theme supplies reflections and glow independently of the resting lift. */
|
|
@@ -92,12 +18,15 @@
|
|
|
92
18
|
inset calc(-1 * var(--_ui-action-start)) -1px 0 light-dark(rgb(0 0 0 / 0.08), rgb(0 0 0 / 0.08))
|
|
93
19
|
);
|
|
94
20
|
--_ui-action-shadow: var(--_ui-action-edge), 0 1px 2px light-dark(rgb(0 0 0 / 0.10), rgb(0 0 0 / 0.20));
|
|
21
|
+
--_tone-border: var(--ui-accent-border, var(--ui-accent));
|
|
22
|
+
--_tone-hover-border: var(--ui-accent-hover-border, var(--ui-accent-hover));
|
|
23
|
+
--_tone-active-border: var(--ui-accent-active-border, var(--ui-accent-active));
|
|
95
24
|
--_tone-highlight: var(--ui-accent-highlight, none);
|
|
96
25
|
--_tone-glow: var(--ui-accent-glow, 0 0 transparent);
|
|
97
26
|
--_hue: var(--ui-accent);
|
|
98
27
|
--_hue-hover: var(--ui-accent-hover);
|
|
99
28
|
--_hue-active: var(--ui-accent-active);
|
|
100
|
-
--_hue-text: var(--ui-accent-
|
|
29
|
+
--_hue-text: var(--ui-accent-subtle-text);
|
|
101
30
|
--_on-hue: var(--ui-on-accent);
|
|
102
31
|
|
|
103
32
|
--_tone: var(--_hue);
|
|
@@ -135,9 +64,9 @@
|
|
|
135
64
|
min-block-size: var(--ui-button-min-block-size, var(--ui-control-size-md));
|
|
136
65
|
border-style: solid;
|
|
137
66
|
border-width: var(--ui-border-width);
|
|
138
|
-
border-color: var(--ui-button-border, var(--_tone));
|
|
67
|
+
border-color: var(--ui-button-border, var(--_tone-text));
|
|
139
68
|
border-radius: var(--ui-button-radius, var(--ui-action-radius, var(--ui-radius-md)));
|
|
140
|
-
background-color: var(--ui-button-surface, oklch(from var(--_tone) l c h / 5%));
|
|
69
|
+
background-color: var(--ui-button-surface, oklch(from var(--_tone) l c h / calc(5% * var(--ui-tonal-opacity, 1))));
|
|
141
70
|
color: var(--ui-button-text, var(--_tone-text));
|
|
142
71
|
font: inherit;
|
|
143
72
|
font-weight: var(--ui-font-medium);
|
|
@@ -280,8 +209,8 @@
|
|
|
280
209
|
/* A link is never :enabled, so interactive states test "not unavailable" instead: for a button that
|
|
281
210
|
is exactly :enabled, at the same specificity, and it also matches a link that can be followed. */
|
|
282
211
|
:scope:where([data-component~="ui-button"]):hover:not(:disabled, [aria-disabled="true"]) {
|
|
283
|
-
border-color: var(--ui-button-hover-border, var(--_tone-
|
|
284
|
-
background-color: var(--ui-button-hover-surface, oklch(from var(--_tone) l c h / 12%));
|
|
212
|
+
border-color: var(--ui-button-hover-border, var(--_tone-text));
|
|
213
|
+
background-color: var(--ui-button-hover-surface, oklch(from var(--_tone) l c h / calc(12% * var(--ui-tonal-opacity, 1))));
|
|
285
214
|
}
|
|
286
215
|
|
|
287
216
|
:scope:where([data-component~="ui-button"])[data-appearance="card"][data-tone="neutral"] {
|
|
@@ -301,13 +230,13 @@
|
|
|
301
230
|
/* Pressed reads as pressed in: the highlight goes, and the shadow moves inside. */
|
|
302
231
|
:scope:where([data-component~="ui-button"]):active:not(:disabled, [aria-disabled="true"]) {
|
|
303
232
|
scale: var(--ui-press-scale, 1);
|
|
304
|
-
background-color: var(--ui-button-active-surface, oklch(from var(--_tone) l c h / 18%));
|
|
233
|
+
background-color: var(--ui-button-active-surface, oklch(from var(--_tone) l c h / calc(18% * var(--ui-tonal-opacity, 1))));
|
|
305
234
|
background-image: none;
|
|
306
235
|
box-shadow: var(--ui-pressed);
|
|
307
236
|
}
|
|
308
237
|
|
|
309
238
|
:scope:where([data-component~="ui-button"])[data-appearance="solid"], :scope:where([data-component~="ui-button"])[data-appearance="danger"] {
|
|
310
|
-
border-color: var(--_tone);
|
|
239
|
+
border-color: var(--ui-button-border, var(--_tone-border));
|
|
311
240
|
background-color: var(--_tone);
|
|
312
241
|
color: var(--_on-tone);
|
|
313
242
|
background-image: var(--_tone-highlight);
|
|
@@ -316,21 +245,51 @@
|
|
|
316
245
|
var(--_tone-glow);
|
|
317
246
|
}
|
|
318
247
|
|
|
319
|
-
:
|
|
248
|
+
:scope:where([data-component~="ui-button"])[data-appearance="solid"]:hover:not(:disabled, [aria-disabled="true"]),
|
|
249
|
+
:scope:where([data-component~="ui-button"])[data-appearance="danger"]:hover:not(:disabled, [aria-disabled="true"]) {
|
|
320
250
|
background-color: var(--_tone-hover);
|
|
321
|
-
border-color: var(--_tone-hover);
|
|
251
|
+
border-color: var(--ui-button-hover-border, var(--_tone-hover-border));
|
|
322
252
|
}
|
|
323
253
|
|
|
324
254
|
:is(:scope:where([data-component~="ui-button"])[data-appearance="solid"], :scope:where([data-component~="ui-button"])[data-appearance="danger"]):active:not(:disabled, [aria-disabled="true"]) {
|
|
325
255
|
background-color: var(--_tone-active);
|
|
326
|
-
border-color: var(--_tone-active);
|
|
256
|
+
border-color: var(--_tone-active-border);
|
|
327
257
|
background-image: none;
|
|
328
258
|
box-shadow: var(--ui-pressed);
|
|
329
259
|
}
|
|
330
260
|
|
|
331
261
|
/* Tone is the colour, variant is the volume. Every pairing works: a danger outline is a
|
|
332
262
|
destructive secondary action, not a special case. */
|
|
263
|
+
:scope:where([data-component~="ui-button"])[data-tone="accent-secondary"] {
|
|
264
|
+
--_tone-border: var(--ui-accent-secondary-border, var(--ui-accent-secondary));
|
|
265
|
+
--_tone-hover-border: var(--ui-accent-secondary-hover-border, var(--ui-accent-secondary-hover));
|
|
266
|
+
--_tone-active-border: var(--ui-accent-secondary-active-border, var(--ui-accent-secondary-active));
|
|
267
|
+
--_tone-highlight: var(--ui-accent-secondary-highlight, none);
|
|
268
|
+
--_tone-glow: var(--ui-accent-secondary-glow, 0 0 transparent);
|
|
269
|
+
--_hue: var(--ui-accent-secondary);
|
|
270
|
+
--_hue-hover: var(--ui-accent-secondary-hover);
|
|
271
|
+
--_hue-active: var(--ui-accent-secondary-active);
|
|
272
|
+
--_hue-text: var(--ui-accent-secondary-subtle-text);
|
|
273
|
+
--_on-hue: var(--ui-accent-secondary-on-strong);
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
:scope:where([data-component~="ui-button"])[data-tone="accent-tertiary"] {
|
|
277
|
+
--_tone-border: var(--ui-accent-tertiary-border, var(--ui-accent-tertiary));
|
|
278
|
+
--_tone-hover-border: var(--ui-accent-tertiary-hover-border, var(--ui-accent-tertiary-hover));
|
|
279
|
+
--_tone-active-border: var(--ui-accent-tertiary-active-border, var(--ui-accent-tertiary-active));
|
|
280
|
+
--_tone-highlight: var(--ui-accent-tertiary-highlight, none);
|
|
281
|
+
--_tone-glow: var(--ui-accent-tertiary-glow, 0 0 transparent);
|
|
282
|
+
--_hue: var(--ui-accent-tertiary);
|
|
283
|
+
--_hue-hover: var(--ui-accent-tertiary-hover);
|
|
284
|
+
--_hue-active: var(--ui-accent-tertiary-active);
|
|
285
|
+
--_hue-text: var(--ui-accent-tertiary-subtle-text);
|
|
286
|
+
--_on-hue: var(--ui-accent-tertiary-on-strong);
|
|
287
|
+
}
|
|
288
|
+
|
|
333
289
|
:scope:where([data-component~="ui-button"])[data-tone="neutral"] {
|
|
290
|
+
--_tone-border: var(--ui-control-border, var(--ui-neutral-surface));
|
|
291
|
+
--_tone-hover-border: var(--ui-control-border-hover, var(--ui-neutral-hover));
|
|
292
|
+
--_tone-active-border: var(--ui-control-border-hover, var(--ui-neutral-active));
|
|
334
293
|
--_tone-highlight: var(--ui-neutral-highlight, none);
|
|
335
294
|
--_tone-glow: var(--ui-neutral-glow, 0 0 transparent);
|
|
336
295
|
--_hue: var(--ui-text);
|
|
@@ -341,30 +300,37 @@
|
|
|
341
300
|
}
|
|
342
301
|
|
|
343
302
|
:scope:where([data-component~="ui-button"])[data-tone="neutral"][data-appearance="solid"] {
|
|
344
|
-
border-color: var(--ui-button-border, var(--
|
|
303
|
+
border-color: var(--ui-button-border, var(--_tone-border));
|
|
345
304
|
background-color: var(--ui-button-surface, var(--ui-neutral-surface));
|
|
305
|
+
box-shadow: var(--ui-button-solid-shadow, var(--ui-button-shadow, var(--ui-neutral-shadow)));
|
|
346
306
|
color: var(--ui-button-text, var(--ui-text));
|
|
347
307
|
}
|
|
348
308
|
:scope:where([data-component~="ui-button"])[data-tone="neutral"][data-appearance="outline"] {
|
|
349
309
|
border-color: var(--ui-button-border, var(--ui-control-border));
|
|
350
310
|
background-color: var(--ui-button-surface, transparent);
|
|
311
|
+
box-shadow: var(--ui-button-shadow, var(--ui-neutral-shadow));
|
|
351
312
|
}
|
|
352
313
|
:scope:where([data-component~="ui-button"])[data-tone="neutral"][data-appearance="outline"]:hover:not(:disabled, [aria-disabled="true"]) {
|
|
353
|
-
border-color: var(--ui-button-hover-border, var(--ui-control-border-hover
|
|
314
|
+
border-color: var(--ui-button-hover-border, var(--ui-control-border-hover));
|
|
354
315
|
background-color: var(--ui-button-hover-surface, var(--ui-neutral-hover));
|
|
355
316
|
}
|
|
356
317
|
:scope:where([data-component~="ui-button"])[data-tone="neutral"][data-appearance="outline"]:active:not(:disabled, [aria-disabled="true"]) {
|
|
357
|
-
border-color: var(--ui-button-hover-border, var(--ui-control-border-hover
|
|
318
|
+
border-color: var(--ui-button-hover-border, var(--ui-control-border-hover));
|
|
358
319
|
background-color: var(--ui-button-active-surface, var(--ui-neutral-active));
|
|
359
320
|
}
|
|
360
321
|
:scope:where([data-component~="ui-button"])[data-tone="neutral"][data-appearance="solid"]:hover:not(:disabled, [aria-disabled="true"]) {
|
|
322
|
+
border-color: var(--ui-button-hover-border, var(--_tone-hover-border));
|
|
361
323
|
background-color: var(--ui-button-hover-surface, var(--ui-neutral-hover));
|
|
362
324
|
}
|
|
363
325
|
:scope:where([data-component~="ui-button"])[data-tone="neutral"][data-appearance="solid"]:active:not(:disabled, [aria-disabled="true"]) {
|
|
326
|
+
border-color: var(--_tone-active-border);
|
|
364
327
|
background-color: var(--ui-button-active-surface, var(--ui-neutral-active));
|
|
365
328
|
}
|
|
366
329
|
|
|
367
330
|
:scope:where([data-component~="ui-button"])[data-tone="danger"], :scope:where([data-component~="ui-button"])[data-appearance="danger"] {
|
|
331
|
+
--_tone-border: var(--ui-danger-border, var(--ui-danger));
|
|
332
|
+
--_tone-hover-border: var(--ui-danger-hover-border, var(--ui-danger-hover));
|
|
333
|
+
--_tone-active-border: var(--ui-danger-active-border, var(--ui-danger-active));
|
|
368
334
|
--_tone-highlight: var(--ui-danger-highlight, none);
|
|
369
335
|
--_tone-glow: var(--ui-danger-glow, 0 0 transparent);
|
|
370
336
|
--_hue: var(--ui-danger);
|
|
@@ -375,6 +341,9 @@
|
|
|
375
341
|
}
|
|
376
342
|
|
|
377
343
|
:scope:where([data-component~="ui-button"])[data-tone="success"] {
|
|
344
|
+
--_tone-border: var(--ui-success-border, var(--ui-success));
|
|
345
|
+
--_tone-hover-border: var(--ui-success-hover-border, var(--ui-success-hover));
|
|
346
|
+
--_tone-active-border: var(--ui-success-active-border, var(--ui-success-active));
|
|
378
347
|
--_tone-highlight: var(--ui-success-highlight, none);
|
|
379
348
|
--_tone-glow: var(--ui-success-glow, 0 0 transparent);
|
|
380
349
|
--_hue: var(--ui-success);
|
|
@@ -385,6 +354,9 @@
|
|
|
385
354
|
}
|
|
386
355
|
|
|
387
356
|
:scope:where([data-component~="ui-button"])[data-tone="warning"] {
|
|
357
|
+
--_tone-border: var(--ui-warning-border, var(--ui-warning));
|
|
358
|
+
--_tone-hover-border: var(--ui-warning-hover-border, var(--ui-warning-hover));
|
|
359
|
+
--_tone-active-border: var(--ui-warning-active-border, var(--ui-warning-active));
|
|
388
360
|
--_tone-highlight: var(--ui-warning-highlight, none);
|
|
389
361
|
--_tone-glow: var(--ui-warning-glow, 0 0 transparent);
|
|
390
362
|
--_hue: var(--ui-warning);
|
|
@@ -395,6 +367,9 @@
|
|
|
395
367
|
}
|
|
396
368
|
|
|
397
369
|
:scope:where([data-component~="ui-button"])[data-tone="info"] {
|
|
370
|
+
--_tone-border: var(--ui-info-border, var(--ui-info));
|
|
371
|
+
--_tone-hover-border: var(--ui-info-hover-border, var(--ui-info-hover));
|
|
372
|
+
--_tone-active-border: var(--ui-info-active-border, var(--ui-info-active));
|
|
398
373
|
--_tone-highlight: var(--ui-info-highlight, none);
|
|
399
374
|
--_tone-glow: var(--ui-info-glow, 0 0 transparent);
|
|
400
375
|
--_hue: var(--ui-info);
|
|
@@ -440,7 +415,7 @@
|
|
|
440
415
|
|
|
441
416
|
/* Tints derive from the text colour, not a surface token, so hover and press show on any background. */
|
|
442
417
|
:scope:where([data-component~="ui-button"])[data-appearance="ghost"]:hover:not(:disabled, [aria-disabled="true"]) {
|
|
443
|
-
background-color: var(--ui-button-ghost-hover-surface, oklch(from var(--_tone) l c h / 10%));
|
|
418
|
+
background-color: var(--ui-button-ghost-hover-surface, oklch(from var(--_tone) l c h / calc(10% * var(--ui-tonal-opacity, 1))));
|
|
444
419
|
border-color: transparent;
|
|
445
420
|
}
|
|
446
421
|
|
|
@@ -566,9 +541,7 @@
|
|
|
566
541
|
}
|
|
567
542
|
}
|
|
568
543
|
@scope ([data-component~="ui-button"]) to ([data-component]) {
|
|
569
|
-
/*
|
|
570
|
-
|
|
571
|
-
/* An anchor keeps the boxed button look even when an app styles ordinary links. */
|
|
544
|
+
/* An anchor keeps the boxed button look even when an app styles ordinary links. */
|
|
572
545
|
|
|
573
546
|
/* A count is an adornment, not another line of label text. Keep the standard control height
|
|
574
547
|
with enough inset for a 24px mark; large content can still grow the button naturally. */
|
package/styles/ui-callout.css
CHANGED
|
@@ -7,63 +7,15 @@
|
|
|
7
7
|
[data-component~="ui-callout"] { --html-next-scope-owner: "ui-callout" !important; }
|
|
8
8
|
}
|
|
9
9
|
@scope ([data-component~="ui-callout"]) to ([data-component], [data-slotted]) {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
syntax: "*";
|
|
13
|
-
inherits: false;
|
|
14
|
-
}
|
|
15
|
-
@property --ui-callout-border-width {
|
|
16
|
-
syntax: "*";
|
|
17
|
-
inherits: false;
|
|
18
|
-
}
|
|
19
|
-
@property --ui-callout-gap {
|
|
20
|
-
syntax: "*";
|
|
21
|
-
inherits: false;
|
|
22
|
-
}
|
|
23
|
-
@property --ui-callout-icon {
|
|
24
|
-
syntax: "*";
|
|
25
|
-
inherits: false;
|
|
26
|
-
}
|
|
27
|
-
@property --ui-callout-icon-column {
|
|
28
|
-
syntax: "*";
|
|
29
|
-
inherits: false;
|
|
30
|
-
}
|
|
31
|
-
@property --ui-callout-icon-size {
|
|
32
|
-
syntax: "*";
|
|
33
|
-
inherits: false;
|
|
34
|
-
}
|
|
35
|
-
@property --ui-callout-leading-border-width {
|
|
36
|
-
syntax: "*";
|
|
37
|
-
inherits: false;
|
|
38
|
-
}
|
|
39
|
-
@property --ui-callout-padding-block {
|
|
40
|
-
syntax: "*";
|
|
41
|
-
inherits: false;
|
|
42
|
-
}
|
|
43
|
-
@property --ui-callout-padding-inline {
|
|
44
|
-
syntax: "*";
|
|
45
|
-
inherits: false;
|
|
46
|
-
}
|
|
47
|
-
@property --ui-callout-surface {
|
|
48
|
-
syntax: "*";
|
|
49
|
-
inherits: false;
|
|
50
|
-
}
|
|
51
|
-
@property --ui-callout-text {
|
|
52
|
-
syntax: "*";
|
|
53
|
-
inherits: false;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
:scope:where([data-component~="ui-callout"]) {
|
|
57
|
-
/* Hooks do not inherit, so the parts below read them from the root. */
|
|
10
|
+
:scope:where([data-component~="ui-callout"]) {
|
|
11
|
+
/* Resolve shared part values at the component root. */
|
|
58
12
|
--_ui-callout-icon-column: var(--ui-callout-icon-column);
|
|
59
13
|
--_ui-callout-icon: var(--ui-callout-icon);
|
|
60
14
|
--_ui-callout-icon-size: var(--ui-callout-icon-size);
|
|
61
15
|
|
|
62
|
-
|
|
63
|
-
--_callout-
|
|
64
|
-
|
|
65
|
-
oklch(from var(--_callout-border) 25% min(c, 0.035) h)
|
|
66
|
-
);
|
|
16
|
+
--_callout-surface: var(--ui-info-soft);
|
|
17
|
+
--_callout-tone-text: var(--ui-info-subtle-text);
|
|
18
|
+
--_ui-surface-text: var(--ui-callout-text, var(--_callout-tone-text));
|
|
67
19
|
--_ui-selection-context-surface: light-dark(
|
|
68
20
|
oklch(from var(--ui-callout-surface, var(--_callout-surface)) calc(l - 0.045) calc(max(c, min(0.045, c * 3))) h),
|
|
69
21
|
oklch(from var(--ui-callout-surface, var(--_callout-surface)) calc(l + 0.045) calc(max(c, min(0.045, c * 3))) h)
|
|
@@ -74,8 +26,8 @@
|
|
|
74
26
|
);
|
|
75
27
|
--_ui-selection-context-text: var(--ui-text-primary);
|
|
76
28
|
|
|
77
|
-
--_callout-border: var(--ui-info-
|
|
78
|
-
--_callout-icon: var(--ui-info-
|
|
29
|
+
--_callout-border: var(--ui-info-soft-border);
|
|
30
|
+
--_callout-icon: var(--ui-info-subtle-text);
|
|
79
31
|
|
|
80
32
|
display: grid !important;
|
|
81
33
|
grid-template-columns: var(--ui-callout-icon-column, 1.125rem) minmax(0, 1fr);
|
|
@@ -85,13 +37,12 @@
|
|
|
85
37
|
padding-block: var(--ui-callout-padding-block, var(--ui-space-2)) !important;
|
|
86
38
|
padding-inline-start: var(--ui-callout-padding-inline, var(--ui-space-2)) !important;
|
|
87
39
|
padding-inline-end: var(--ui-callout-padding-inline, var(--ui-space-3)) !important;
|
|
88
|
-
border: var(--ui-callout-border-width, var(--ui-border-width)) solid
|
|
89
|
-
color-mix(in srgb, var(--ui-callout-border, var(--_callout-border)) 35%, transparent);
|
|
40
|
+
border: var(--ui-callout-border-width, var(--ui-border-width)) solid var(--ui-callout-border, var(--_callout-border));
|
|
90
41
|
border-inline-start: var(--ui-callout-leading-border-width, var(--ui-callout-border-width, var(--ui-border-width))) solid
|
|
91
|
-
|
|
42
|
+
var(--ui-callout-border, var(--_callout-border));
|
|
92
43
|
border-radius: var(--ui-radius-md);
|
|
93
44
|
background: var(--ui-callout-surface, var(--_callout-surface));
|
|
94
|
-
color: var(--ui-callout-text, var(--
|
|
45
|
+
color: var(--ui-callout-text, var(--_ui-surface-text));
|
|
95
46
|
font-family: var(--ui-font-family-sans);
|
|
96
47
|
font-size: var(--ui-font-size-sm);
|
|
97
48
|
font-weight: var(--ui-font-normal);
|
|
@@ -126,33 +77,44 @@
|
|
|
126
77
|
--_ui-selection-context-border: initial;
|
|
127
78
|
--_ui-selection-context-text: initial;
|
|
128
79
|
--_callout-surface: var(--ui-surface-muted);
|
|
80
|
+
--_callout-tone-text: var(--ui-text-primary);
|
|
129
81
|
--_callout-border: var(--ui-border-strong);
|
|
130
82
|
--_callout-icon: var(--ui-text-secondary);
|
|
131
83
|
}
|
|
132
84
|
|
|
133
85
|
:scope:where([data-component~="ui-callout"])[data-ui-callout-state~="tone=tip"] {
|
|
134
|
-
--_callout-border: var(--ui-success-
|
|
135
|
-
--_callout-
|
|
86
|
+
--_callout-border: var(--ui-success-soft-border);
|
|
87
|
+
--_callout-surface: var(--ui-success-soft);
|
|
88
|
+
--_callout-tone-text: var(--ui-success-subtle-text);
|
|
89
|
+
--_callout-icon: var(--ui-success-subtle-text);
|
|
136
90
|
}
|
|
137
91
|
|
|
138
92
|
:scope:where([data-component~="ui-callout"])[data-ui-callout-state~="tone=important"] {
|
|
139
|
-
--_callout-border: var(--ui-accent-
|
|
140
|
-
--_callout-
|
|
93
|
+
--_callout-border: var(--ui-accent-soft-border);
|
|
94
|
+
--_callout-surface: var(--ui-accent-soft);
|
|
95
|
+
--_callout-tone-text: var(--ui-accent-subtle-text);
|
|
96
|
+
--_callout-icon: var(--ui-accent-subtle-text);
|
|
141
97
|
}
|
|
142
98
|
|
|
143
99
|
:scope:where([data-component~="ui-callout"])[data-ui-callout-state~="tone=warning"] {
|
|
144
|
-
--_callout-border: var(--ui-warning-
|
|
145
|
-
--_callout-
|
|
100
|
+
--_callout-border: var(--ui-warning-soft-border);
|
|
101
|
+
--_callout-surface: var(--ui-warning-soft);
|
|
102
|
+
--_callout-tone-text: var(--ui-warning-subtle-text);
|
|
103
|
+
--_callout-icon: var(--ui-warning-subtle-text);
|
|
146
104
|
}
|
|
147
105
|
|
|
148
106
|
:scope:where([data-component~="ui-callout"])[data-ui-callout-state~="tone=success"] {
|
|
149
|
-
--_callout-border: var(--ui-success-
|
|
150
|
-
--_callout-
|
|
107
|
+
--_callout-border: var(--ui-success-soft-border);
|
|
108
|
+
--_callout-surface: var(--ui-success-soft);
|
|
109
|
+
--_callout-tone-text: var(--ui-success-subtle-text);
|
|
110
|
+
--_callout-icon: var(--ui-success-subtle-text);
|
|
151
111
|
}
|
|
152
112
|
|
|
153
113
|
:scope:where([data-component~="ui-callout"])[data-ui-callout-state~="tone=danger"], :scope:where([data-component~="ui-callout"])[data-ui-callout-state~="tone=caution"] {
|
|
154
|
-
--_callout-border: var(--ui-danger-
|
|
155
|
-
--_callout-
|
|
114
|
+
--_callout-border: var(--ui-danger-soft-border);
|
|
115
|
+
--_callout-surface: var(--ui-danger-soft);
|
|
116
|
+
--_callout-tone-text: var(--ui-danger-subtle-text);
|
|
117
|
+
--_callout-icon: var(--ui-danger-subtle-text);
|
|
156
118
|
}
|
|
157
119
|
|
|
158
120
|
/* A link in the callout's text is underlined, so it reads as a link by more than colour. */
|
|
@@ -163,13 +125,11 @@
|
|
|
163
125
|
}
|
|
164
126
|
}
|
|
165
127
|
@scope ([data-component~="ui-callout"]) to ([data-component]) {
|
|
166
|
-
/*
|
|
167
|
-
|
|
168
|
-
/* One line box tall, so the icon centres on the first line of text. */
|
|
128
|
+
/* One line box tall, so the icon centres on the first line of text. */
|
|
169
129
|
|
|
170
130
|
/* A link in the callout's text is underlined, so it reads as a link by more than colour. */
|
|
171
131
|
.content :where([data-slotted], [data-slotted] *):is(a) {
|
|
172
|
-
color: var(--ui-accent-
|
|
132
|
+
color: var(--ui-accent-subtle-text);
|
|
173
133
|
text-decoration: underline;
|
|
174
134
|
text-decoration-thickness: 0.06em;
|
|
175
135
|
text-underline-offset: 0.18em;
|