@threadlabs/looma 0.42.0 → 0.43.1
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 +36 -81
- package/components/ui-callout/ui-callout.html +30 -68
- package/components/ui-card/ui-card.html +47 -21
- package/components/ui-checkbox/ui-checkbox.html +1 -15
- 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 +1 -31
- package/components/ui-disclosure/ui-disclosure.html +1 -15
- package/components/ui-editor-mention-menu/ui-editor-mention-menu.js +3 -0
- package/components/ui-editor-slash-menu/ui-editor-slash-menu.js +4 -0
- package/components/ui-editor-table-overlay/ui-editor-table-overlay.html +3 -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 +52 -87
- package/components/ui-input/ui-input.html +5 -55
- package/components/ui-input-group/ui-input-group.html +1 -13
- 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 +0 -22
- package/components/ui-menu-item/ui-menu-item.html +0 -26
- 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 +0 -30
- package/components/ui-radio/ui-radio.html +7 -13
- 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-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-swatch/ui-swatch.html +0 -5
- package/components/ui-switch/ui-switch.html +1 -15
- package/components/ui-switcher/ui-switcher.html +1 -11
- package/components/ui-tabs/ui-tabs.html +1 -19
- package/components/ui-text/ui-text.html +19 -6
- 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 +1 -43
- 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 +13 -11
- package/docs/card.html +2 -6
- package/docs/card.js +7 -37
- package/docs/catalog.json +821 -202
- package/docs/catalog.mjs +1 -1
- package/docs/customizer-render.mjs +27 -14
- package/docs/customizer.js +42 -9
- package/docs/documentation.css +3 -7
- package/docs/examples/ui-button/examples/08-loading.behavior.js +1 -1
- package/docs/examples/ui-checkbox/examples/02-checked-indeterminate-and-disabled.behavior.js +1 -1
- package/docs/examples/ui-editor-mention-menu/examples/00-preview.behavior.js +1 -0
- package/docs/examples/ui-editor-slash-menu/examples/00-preview.behavior.js +81 -0
- package/docs/examples/ui-editor-table-overlay/examples/00-preview.behavior.js +24 -0
- package/docs/examples/ui-search-shell/examples/00-preview.behavior.js +14 -0
- package/docs/examples/ui-search-shell/examples/02-label-dismissible-status-and-footer.behavior.js +7 -7
- package/docs/examples/ui-toast/examples/01-authored.behavior.js +2 -2
- package/docs/index.d.ts +1 -1
- package/docs/local-server.mjs +2 -5
- package/docs/palette.mjs +5 -4
- package/docs/pastoral.svg +54 -0
- package/docs/portrait.svg +15 -0
- package/docs/render.mjs +33 -3
- package/docs/site.mjs +22 -54
- package/docs/theme.mjs +97 -35
- 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 +35 -83
- package/styles/ui-callout.css +32 -72
- package/styles/ui-card.css +42 -18
- package/styles/ui-checkbox.css +3 -19
- 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 +5 -67
- package/styles/ui-disclosure.css +3 -19
- package/styles/ui-editor-table-overlay.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 +51 -89
- 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-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 +2 -30
- package/styles/ui-menu.css +2 -26
- package/styles/ui-meter.css +8 -4
- package/styles/ui-nav-item.css +2 -22
- package/styles/ui-popover.css +2 -34
- package/styles/ui-radio-group.css +1 -6
- package/styles/ui-radio.css +9 -17
- 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-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-swatch.css +1 -6
- package/styles/ui-switch.css +3 -19
- package/styles/ui-switcher.css +2 -14
- package/styles/ui-tabs.css +3 -23
- package/styles/ui-text.css +10 -2
- 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 +3 -47
- 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 +6 -2
- package/tokens.css +55 -21
- 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/UiEditorTableOverlay.js +50 -36
- 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 +78 -97
- package/vue/UiCallout.vue +30 -71
- package/vue/UiCard.d.ts +2 -2
- package/vue/UiCard.vue +77 -26
- package/vue/UiCheckbox.vue +1 -15
- 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 +3 -33
- package/vue/UiDisclosure.vue +1 -15
- package/vue/UiEditorTableOverlay.d.ts +11 -1
- package/vue/UiEditorTableOverlay.vue +100 -65
- 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 +103 -99
- package/vue/UiInput.vue +1 -54
- package/vue/UiInputGroup.vue +8 -20
- package/vue/UiList.vue +2 -12
- package/vue/UiListItem.vue +8 -26
- package/vue/UiListbox.vue +0 -23
- package/vue/UiMenu.vue +1 -23
- package/vue/UiMenuItem.vue +0 -26
- package/vue/UiMeter.d.ts +2 -2
- package/vue/UiMeter.vue +47 -12
- package/vue/UiNavItem.vue +3 -21
- package/vue/UiPopover.vue +1 -32
- package/vue/UiRadio.vue +1 -11
- 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/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/UiSwatch.vue +1 -6
- package/vue/UiSwitch.vue +1 -15
- package/vue/UiSwitcher.vue +1 -14
- package/vue/UiTabs.vue +1 -19
- package/vue/UiText.d.ts +2 -2
- package/vue/UiText.vue +29 -4
- package/vue/UiTextarea.vue +0 -50
- package/vue/UiToast.vue +26 -34
- package/vue/UiToastRegion.vue +26 -55
- package/vue/UiTooltip.vue +1 -43
- 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/UiEditorTableOverlay.js +41 -13
- 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/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/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/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 +633 -2068
- package/vue/editor/index.js +7 -1
- package/docs/preview.js +0 -22
package/vue/UiSwitch.vue
CHANGED
|
@@ -291,20 +291,6 @@ useComponentHost(() => import('../components/ui-switch/ui-switch.js'), {
|
|
|
291
291
|
</template>
|
|
292
292
|
|
|
293
293
|
<style scoped>
|
|
294
|
-
/* This component's hooks style the element they are set on, and never a nested one. */
|
|
295
|
-
@property --ui-switch-gap {
|
|
296
|
-
syntax: "*";
|
|
297
|
-
inherits: false;
|
|
298
|
-
}
|
|
299
|
-
@property --ui-switch-track-height {
|
|
300
|
-
syntax: "*";
|
|
301
|
-
inherits: false;
|
|
302
|
-
}
|
|
303
|
-
@property --ui-switch-track-width {
|
|
304
|
-
syntax: "*";
|
|
305
|
-
inherits: false;
|
|
306
|
-
}
|
|
307
|
-
|
|
308
294
|
/* The label, and under it an optional line saying what the choice means. */
|
|
309
295
|
|
|
310
296
|
/* A sized switch keeps its track and aligns instead: the label takes that size's field type size,
|
|
@@ -315,7 +301,7 @@ useComponentHost(() => import('../components/ui-switch/ui-switch.js'), {
|
|
|
315
301
|
|
|
316
302
|
@scope (.ui-switch) to ([data-hn]) {
|
|
317
303
|
:global(:scope:where([data-hn-ui-switch])) {
|
|
318
|
-
/*
|
|
304
|
+
/* Resolve shared part values at the component root. */
|
|
319
305
|
--_ui-switch-track-width: var(--ui-switch-track-width, var(--ui-choice-track-width));
|
|
320
306
|
--_ui-switch-track-height: var(--ui-switch-track-height, var(--ui-choice-track-height));
|
|
321
307
|
|
package/vue/UiSwitcher.vue
CHANGED
|
@@ -40,7 +40,7 @@ const propValidityContract = {
|
|
|
40
40
|
required: false,
|
|
41
41
|
target: { attribute: 'gap' },
|
|
42
42
|
description:
|
|
43
|
-
'Space between items, on the spacing scale: xs is 0.5rem, s 0.75rem, m 1rem (also the default), l 1.5rem, and xl 2rem. The --ui-switcher-gap custom\n property, set on
|
|
43
|
+
'Space between items, on the spacing scale: xs is 0.5rem, s 0.75rem, m 1rem (also the default), l 1.5rem, and xl 2rem. The --ui-switcher-gap custom\n property, set on :root, an ancestor, or the component itself, overrides it.',
|
|
44
44
|
values: ['xs', 's', 'm', 'l', 'xl'],
|
|
45
45
|
},
|
|
46
46
|
limit: {
|
|
@@ -195,18 +195,7 @@ useComponentHost(() => import('../components/ui-switcher/ui-switcher.js'), {
|
|
|
195
195
|
</template>
|
|
196
196
|
|
|
197
197
|
<style scoped>
|
|
198
|
-
/* This component's hooks style the element they are set on, and never a nested one. */
|
|
199
|
-
@property --ui-switcher-gap {
|
|
200
|
-
syntax: "*";
|
|
201
|
-
inherits: false;
|
|
202
|
-
}
|
|
203
|
-
@property --ui-switcher-threshold {
|
|
204
|
-
syntax: "*";
|
|
205
|
-
inherits: false;
|
|
206
|
-
}
|
|
207
|
-
|
|
208
198
|
/* A component that sets its display still honours the hidden attribute on its root. */
|
|
209
|
-
|
|
210
199
|
@scope (.ui-switcher) to ([data-hn]) {
|
|
211
200
|
:global(:scope:where([data-hn-ui-switcher])) {
|
|
212
201
|
--_switcher-gap: var(--ui-space-4);
|
|
@@ -226,11 +215,9 @@ useComponentHost(() => import('../components/ui-switcher/ui-switcher.js'), {
|
|
|
226
215
|
max-inline-size: 100%;
|
|
227
216
|
margin: 0 !important;
|
|
228
217
|
}
|
|
229
|
-
|
|
230
218
|
:global(:scope[data-ui-switcher-state~="overLimit"]:where([data-hn-ui-switcher])) {
|
|
231
219
|
grid-template-columns: minmax(0, 1fr);
|
|
232
220
|
}
|
|
233
|
-
|
|
234
221
|
:global(:scope[data-ui-switcher-state~="gap=xs"]:where([data-hn-ui-switcher])) {
|
|
235
222
|
--_switcher-gap: var(--ui-space-2);
|
|
236
223
|
}
|
package/vue/UiTabs.vue
CHANGED
|
@@ -335,24 +335,6 @@ useComponentHost(() => import('../components/ui-tabs/ui-tabs.js'), {
|
|
|
335
335
|
</template>
|
|
336
336
|
|
|
337
337
|
<style scoped>
|
|
338
|
-
/* This component's hooks style the element they are set on, and never a nested one. */
|
|
339
|
-
@property --ui-tabs-tab-min-block-size {
|
|
340
|
-
syntax: "*";
|
|
341
|
-
inherits: false;
|
|
342
|
-
}
|
|
343
|
-
@property --ui-tabs-tab-padding-block {
|
|
344
|
-
syntax: "*";
|
|
345
|
-
inherits: false;
|
|
346
|
-
}
|
|
347
|
-
@property --ui-tabs-tab-padding-inline {
|
|
348
|
-
syntax: "*";
|
|
349
|
-
inherits: false;
|
|
350
|
-
}
|
|
351
|
-
@property --ui-tabs-panel-padding {
|
|
352
|
-
syntax: "*";
|
|
353
|
-
inherits: false;
|
|
354
|
-
}
|
|
355
|
-
|
|
356
338
|
/* Density resolves into the tab row's own values; the public tokens still override them. */
|
|
357
339
|
|
|
358
340
|
/* Centre the glyphs, not the line box: a label without descenders otherwise reads high. */
|
|
@@ -363,7 +345,7 @@ useComponentHost(() => import('../components/ui-tabs/ui-tabs.js'), {
|
|
|
363
345
|
|
|
364
346
|
@scope (.ui-tabs) to ([data-hn]) {
|
|
365
347
|
:global(:scope:where([data-hn-ui-tabs])) {
|
|
366
|
-
/*
|
|
348
|
+
/* Resolve shared part values at the component root. */
|
|
367
349
|
--_ui-tabs-tab-min-block-size: var(--ui-tabs-tab-min-block-size);
|
|
368
350
|
--_ui-tabs-tab-padding-block: var(--ui-tabs-tab-padding-block);
|
|
369
351
|
--_ui-tabs-tab-padding-inline: var(--ui-tabs-tab-padding-inline);
|
package/vue/UiText.d.ts
CHANGED
|
@@ -43,7 +43,7 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
43
43
|
type: PropType<"inherit" | "xs" | "sm" | "md" | "lg" | null>;
|
|
44
44
|
};
|
|
45
45
|
tone: {
|
|
46
|
-
type: PropType<"default" | "secondary" | "muted" | "accent" | "danger" | "success" | "info" | "warning" | null>;
|
|
46
|
+
type: PropType<"default" | "secondary" | "muted" | "accent" | "accent-secondary" | "accent-tertiary" | "danger" | "success" | "info" | "warning" | null>;
|
|
47
47
|
};
|
|
48
48
|
trim: {
|
|
49
49
|
type: PropType<boolean | null>;
|
|
@@ -80,7 +80,7 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
80
80
|
type: PropType<"inherit" | "xs" | "sm" | "md" | "lg" | null>;
|
|
81
81
|
};
|
|
82
82
|
tone: {
|
|
83
|
-
type: PropType<"default" | "secondary" | "muted" | "accent" | "danger" | "success" | "info" | "warning" | null>;
|
|
83
|
+
type: PropType<"default" | "secondary" | "muted" | "accent" | "accent-secondary" | "accent-tertiary" | "danger" | "success" | "info" | "warning" | null>;
|
|
84
84
|
};
|
|
85
85
|
trim: {
|
|
86
86
|
type: PropType<boolean | null>;
|
package/vue/UiText.vue
CHANGED
|
@@ -67,8 +67,19 @@ const propValidityContract = {
|
|
|
67
67
|
required: false,
|
|
68
68
|
target: { attribute: 'tone' },
|
|
69
69
|
description:
|
|
70
|
-
'The text\'s colour, by meaning. secondary is supporting prose such as a description; muted
|
|
71
|
-
values: [
|
|
70
|
+
'The text\'s colour, by meaning. default inherits its containing surface or control\'s foreground. secondary is supporting prose such as a description; muted\n is quieter still, for metadata and hints; accent draws the eye; danger states an error; success confirms one; info marks something moving forward\n normally; warning marks something that needs attention. Colour alone does not carry the meaning, so the words must say it too. Supporting brand families\n use accent-secondary and accent-tertiary; their usable colors derive from the theme, and unset families follow the primary accent.',
|
|
71
|
+
values: [
|
|
72
|
+
'default',
|
|
73
|
+
'secondary',
|
|
74
|
+
'muted',
|
|
75
|
+
'accent',
|
|
76
|
+
'accent-secondary',
|
|
77
|
+
'accent-tertiary',
|
|
78
|
+
'danger',
|
|
79
|
+
'success',
|
|
80
|
+
'info',
|
|
81
|
+
'warning',
|
|
82
|
+
],
|
|
72
83
|
default: 'default',
|
|
73
84
|
},
|
|
74
85
|
trim: {
|
|
@@ -143,6 +154,8 @@ const props = defineProps({
|
|
|
143
154
|
| 'secondary'
|
|
144
155
|
| 'muted'
|
|
145
156
|
| 'accent'
|
|
157
|
+
| 'accent-secondary'
|
|
158
|
+
| 'accent-tertiary'
|
|
146
159
|
| 'danger'
|
|
147
160
|
| 'success'
|
|
148
161
|
| 'info'
|
|
@@ -274,6 +287,8 @@ const checkedProps = computed(() => {
|
|
|
274
287
|
| 'secondary'
|
|
275
288
|
| 'muted'
|
|
276
289
|
| 'accent'
|
|
290
|
+
| 'accent-secondary'
|
|
291
|
+
| 'accent-tertiary'
|
|
277
292
|
| 'danger'
|
|
278
293
|
| 'success'
|
|
279
294
|
| 'info'
|
|
@@ -284,6 +299,8 @@ const checkedProps = computed(() => {
|
|
|
284
299
|
| 'secondary'
|
|
285
300
|
| 'muted'
|
|
286
301
|
| 'accent'
|
|
302
|
+
| 'accent-secondary'
|
|
303
|
+
| 'accent-tertiary'
|
|
287
304
|
| 'danger'
|
|
288
305
|
| 'success'
|
|
289
306
|
| 'info'
|
|
@@ -682,7 +699,7 @@ const hostState = computed(() =>
|
|
|
682
699
|
:global(:scope:where([data-hn-ui-text])) {
|
|
683
700
|
margin: 0 !important;
|
|
684
701
|
min-inline-size: 0;
|
|
685
|
-
color:
|
|
702
|
+
color: inherit;
|
|
686
703
|
text-align: start;
|
|
687
704
|
}
|
|
688
705
|
:global(:scope:is(h1, h2, h3, h4, h5, h6):where([data-hn-ui-text])) {
|
|
@@ -718,6 +735,14 @@ const hostState = computed(() =>
|
|
|
718
735
|
:global(:scope[data-ui-text-state~="tone=muted"]:where([data-hn-ui-text])) {
|
|
719
736
|
color: var(--ui-text-muted);
|
|
720
737
|
}
|
|
738
|
+
:global(:scope[data-ui-text-state~="tone=accent-secondary"]:where([data-hn-ui-text])) {
|
|
739
|
+
color: var(--ui-accent-secondary-subtle-text);
|
|
740
|
+
}
|
|
741
|
+
|
|
742
|
+
:global(:scope[data-ui-text-state~="tone=accent-tertiary"]:where([data-hn-ui-text])) {
|
|
743
|
+
color: var(--ui-accent-tertiary-subtle-text);
|
|
744
|
+
}
|
|
745
|
+
|
|
721
746
|
:global(:scope[data-ui-text-state~="tone=accent"]:where([data-hn-ui-text])) {
|
|
722
747
|
color: var(--ui-accent-subtle-text);
|
|
723
748
|
}
|
|
@@ -777,7 +802,7 @@ const hostState = computed(() =>
|
|
|
777
802
|
font-family: var(--ui-font-family-mono);
|
|
778
803
|
}
|
|
779
804
|
:global(:scope :where(:not([data-hn-ui-text])):is(a)) {
|
|
780
|
-
color: var(--ui-accent-subtle-text);
|
|
805
|
+
color: var(--ui-link-color, var(--ui-accent-subtle-text));
|
|
781
806
|
text-decoration: underline;
|
|
782
807
|
text-decoration-thickness: 0.06em;
|
|
783
808
|
text-underline-offset: 0.18em;
|
package/vue/UiTextarea.vue
CHANGED
|
@@ -307,56 +307,6 @@ useComponentHost(() => import('../components/ui-textarea/ui-textarea.js'), {
|
|
|
307
307
|
</template>
|
|
308
308
|
|
|
309
309
|
<style scoped>
|
|
310
|
-
/* This component's hooks style the element they are set on, and never a nested one. */
|
|
311
|
-
@property --ui-textarea-border-width {
|
|
312
|
-
syntax: "*";
|
|
313
|
-
inherits: false;
|
|
314
|
-
}
|
|
315
|
-
@property --ui-textarea-border {
|
|
316
|
-
syntax: "*";
|
|
317
|
-
inherits: false;
|
|
318
|
-
}
|
|
319
|
-
@property --ui-textarea-border-hover {
|
|
320
|
-
syntax: "*";
|
|
321
|
-
inherits: false;
|
|
322
|
-
}
|
|
323
|
-
@property --ui-textarea-focus-border {
|
|
324
|
-
syntax: "*";
|
|
325
|
-
inherits: false;
|
|
326
|
-
}
|
|
327
|
-
@property --ui-textarea-focus-outline {
|
|
328
|
-
syntax: "*";
|
|
329
|
-
inherits: false;
|
|
330
|
-
}
|
|
331
|
-
@property --ui-textarea-surface {
|
|
332
|
-
syntax: "*";
|
|
333
|
-
inherits: false;
|
|
334
|
-
}
|
|
335
|
-
@property --ui-textarea-focus-shadow {
|
|
336
|
-
syntax: "*";
|
|
337
|
-
inherits: false;
|
|
338
|
-
}
|
|
339
|
-
@property --ui-textarea-invalid-border {
|
|
340
|
-
syntax: "*";
|
|
341
|
-
inherits: false;
|
|
342
|
-
}
|
|
343
|
-
@property --ui-textarea-invalid-focus-shadow {
|
|
344
|
-
syntax: "*";
|
|
345
|
-
inherits: false;
|
|
346
|
-
}
|
|
347
|
-
@property --ui-textarea-radius {
|
|
348
|
-
syntax: "*";
|
|
349
|
-
inherits: false;
|
|
350
|
-
}
|
|
351
|
-
@property --ui-textarea-shadow {
|
|
352
|
-
syntax: "*";
|
|
353
|
-
inherits: false;
|
|
354
|
-
}
|
|
355
|
-
@property --ui-textarea-padding-inline-end {
|
|
356
|
-
syntax: "*";
|
|
357
|
-
inherits: false;
|
|
358
|
-
}
|
|
359
|
-
|
|
360
310
|
/* Tabbing into a field selects its text; tint that selection softly instead of the page highlight. */
|
|
361
311
|
|
|
362
312
|
/* The app's invalid flag, or the browser's own verdict once the user has left an invalid field. */
|
package/vue/UiToast.vue
CHANGED
|
@@ -200,30 +200,12 @@ useComponentHost(() => import('../components/ui-toast/ui-toast.js'), {
|
|
|
200
200
|
|
|
201
201
|
<style scoped>
|
|
202
202
|
/* Component hooks stay on this toast; group overlay values may inherit from the region. */
|
|
203
|
-
|
|
204
|
-
syntax: "*";
|
|
205
|
-
inherits: false;
|
|
206
|
-
}
|
|
207
|
-
@property --ui-toast-border {
|
|
208
|
-
syntax: "*";
|
|
209
|
-
inherits: false;
|
|
210
|
-
}
|
|
211
|
-
@property --ui-toast-radius {
|
|
212
|
-
syntax: "*";
|
|
213
|
-
inherits: false;
|
|
214
|
-
}
|
|
215
|
-
@property --ui-toast-shadow {
|
|
216
|
-
syntax: "*";
|
|
217
|
-
inherits: false;
|
|
218
|
-
}
|
|
219
|
-
@property --ui-toast-accent {
|
|
220
|
-
syntax: "*";
|
|
221
|
-
inherits: false;
|
|
222
|
-
}
|
|
203
|
+
|
|
223
204
|
@scope (.ui-toast) to ([data-hn]) {
|
|
224
205
|
:global(:scope:where([data-hn-ui-toast])) {
|
|
225
|
-
--_ui-toast-accent: var(--ui-border-strong);
|
|
226
|
-
--_ui-
|
|
206
|
+
--_ui-toast-accent: var(--ui-overlay-border, var(--ui-border-strong));
|
|
207
|
+
--_ui-surface-text: var(--ui-text-primary);
|
|
208
|
+
--_ui-toast-surface: var(--ui-overlay-surface, var(--ui-surface-muted));
|
|
227
209
|
|
|
228
210
|
display: flex !important;
|
|
229
211
|
align-items: center !important;
|
|
@@ -241,7 +223,7 @@ useComponentHost(() => import('../components/ui-toast/ui-toast.js'), {
|
|
|
241
223
|
);
|
|
242
224
|
border-radius: var(--ui-toast-radius, var(--ui-overlay-radius, var(--ui-radius-lg)));
|
|
243
225
|
background: var(--ui-toast-surface, var(--ui-overlay-surface, var(--_ui-toast-surface)));
|
|
244
|
-
color: var(--
|
|
226
|
+
color: var(--_ui-surface-text);
|
|
245
227
|
font-family: var(--ui-font-family-sans);
|
|
246
228
|
font-size: var(--ui-font-size-sm);
|
|
247
229
|
font-weight: var(--ui-font-normal);
|
|
@@ -254,19 +236,23 @@ useComponentHost(() => import('../components/ui-toast/ui-toast.js'), {
|
|
|
254
236
|
}
|
|
255
237
|
|
|
256
238
|
:global(:scope[data-ui-toast-state~="tone=info"]:where([data-hn-ui-toast])) {
|
|
257
|
-
--_ui-toast-accent: var(--ui-info-
|
|
239
|
+
--_ui-toast-accent: var(--ui-info-soft-border);
|
|
240
|
+
--_ui-surface-text: var(--ui-info-subtle-text);
|
|
258
241
|
--_ui-toast-surface: var(--ui-info-soft);
|
|
259
242
|
}
|
|
260
243
|
:global(:scope[data-ui-toast-state~="tone=success"]:where([data-hn-ui-toast])) {
|
|
261
|
-
--_ui-toast-accent: var(--ui-success-
|
|
244
|
+
--_ui-toast-accent: var(--ui-success-soft-border);
|
|
245
|
+
--_ui-surface-text: var(--ui-success-subtle-text);
|
|
262
246
|
--_ui-toast-surface: var(--ui-success-soft);
|
|
263
247
|
}
|
|
264
248
|
:global(:scope[data-ui-toast-state~="tone=warning"]:where([data-hn-ui-toast])) {
|
|
265
|
-
--_ui-toast-accent: var(--ui-warning-
|
|
249
|
+
--_ui-toast-accent: var(--ui-warning-soft-border);
|
|
250
|
+
--_ui-surface-text: var(--ui-warning-subtle-text);
|
|
266
251
|
--_ui-toast-surface: var(--ui-warning-soft);
|
|
267
252
|
}
|
|
268
253
|
:global(:scope[data-ui-toast-state~="tone=danger"]:where([data-hn-ui-toast])) {
|
|
269
|
-
--_ui-toast-accent: var(--ui-danger-
|
|
254
|
+
--_ui-toast-accent: var(--ui-danger-soft-border);
|
|
255
|
+
--_ui-surface-text: var(--ui-danger-subtle-text);
|
|
270
256
|
--_ui-toast-surface: var(--ui-danger-soft);
|
|
271
257
|
}
|
|
272
258
|
|
|
@@ -281,10 +267,12 @@ useComponentHost(() => import('../components/ui-toast/ui-toast.js'), {
|
|
|
281
267
|
display: none !important;
|
|
282
268
|
}
|
|
283
269
|
}
|
|
270
|
+
|
|
284
271
|
@scope ([data-slotted~="ui-toast"]:not([data-hn])) to ([data-hn], [data-slotted]) {
|
|
285
272
|
:global(:where(.ui-toast):where(:scope, :not([data-hn], [data-slotted]:not([data-slotted~="ui-toast"]))):where([data-hn-ui-toast])) {
|
|
286
|
-
--_ui-toast-accent: var(--ui-border-strong);
|
|
287
|
-
--_ui-
|
|
273
|
+
--_ui-toast-accent: var(--ui-overlay-border, var(--ui-border-strong));
|
|
274
|
+
--_ui-surface-text: var(--ui-text-primary);
|
|
275
|
+
--_ui-toast-surface: var(--ui-overlay-surface, var(--ui-surface-muted));
|
|
288
276
|
|
|
289
277
|
display: flex !important;
|
|
290
278
|
align-items: center !important;
|
|
@@ -302,7 +290,7 @@ useComponentHost(() => import('../components/ui-toast/ui-toast.js'), {
|
|
|
302
290
|
);
|
|
303
291
|
border-radius: var(--ui-toast-radius, var(--ui-overlay-radius, var(--ui-radius-lg)));
|
|
304
292
|
background: var(--ui-toast-surface, var(--ui-overlay-surface, var(--_ui-toast-surface)));
|
|
305
|
-
color: var(--
|
|
293
|
+
color: var(--_ui-surface-text);
|
|
306
294
|
font-family: var(--ui-font-family-sans);
|
|
307
295
|
font-size: var(--ui-font-size-sm);
|
|
308
296
|
font-weight: var(--ui-font-normal);
|
|
@@ -315,19 +303,23 @@ useComponentHost(() => import('../components/ui-toast/ui-toast.js'), {
|
|
|
315
303
|
}
|
|
316
304
|
|
|
317
305
|
:global(:where(.ui-toast)[data-ui-toast-state~="tone=info"]:where(:scope, :not([data-hn], [data-slotted]:not([data-slotted~="ui-toast"]))):where([data-hn-ui-toast])) {
|
|
318
|
-
--_ui-toast-accent: var(--ui-info-
|
|
306
|
+
--_ui-toast-accent: var(--ui-info-soft-border);
|
|
307
|
+
--_ui-surface-text: var(--ui-info-subtle-text);
|
|
319
308
|
--_ui-toast-surface: var(--ui-info-soft);
|
|
320
309
|
}
|
|
321
310
|
:global(:where(.ui-toast)[data-ui-toast-state~="tone=success"]:where(:scope, :not([data-hn], [data-slotted]:not([data-slotted~="ui-toast"]))):where([data-hn-ui-toast])) {
|
|
322
|
-
--_ui-toast-accent: var(--ui-success-
|
|
311
|
+
--_ui-toast-accent: var(--ui-success-soft-border);
|
|
312
|
+
--_ui-surface-text: var(--ui-success-subtle-text);
|
|
323
313
|
--_ui-toast-surface: var(--ui-success-soft);
|
|
324
314
|
}
|
|
325
315
|
:global(:where(.ui-toast)[data-ui-toast-state~="tone=warning"]:where(:scope, :not([data-hn], [data-slotted]:not([data-slotted~="ui-toast"]))):where([data-hn-ui-toast])) {
|
|
326
|
-
--_ui-toast-accent: var(--ui-warning-
|
|
316
|
+
--_ui-toast-accent: var(--ui-warning-soft-border);
|
|
317
|
+
--_ui-surface-text: var(--ui-warning-subtle-text);
|
|
327
318
|
--_ui-toast-surface: var(--ui-warning-soft);
|
|
328
319
|
}
|
|
329
320
|
:global(:where(.ui-toast)[data-ui-toast-state~="tone=danger"]:where(:scope, :not([data-hn], [data-slotted]:not([data-slotted~="ui-toast"]))):where([data-hn-ui-toast])) {
|
|
330
|
-
--_ui-toast-accent: var(--ui-danger-
|
|
321
|
+
--_ui-toast-accent: var(--ui-danger-soft-border);
|
|
322
|
+
--_ui-surface-text: var(--ui-danger-subtle-text);
|
|
331
323
|
--_ui-toast-surface: var(--ui-danger-soft);
|
|
332
324
|
}
|
|
333
325
|
|
package/vue/UiToastRegion.vue
CHANGED
|
@@ -293,32 +293,6 @@ useComponentHost(() => import('../components/ui-toast-region/ui-toast-region.js'
|
|
|
293
293
|
</template>
|
|
294
294
|
|
|
295
295
|
<style scoped>
|
|
296
|
-
/* This component's hooks style the element they are set on, and never a nested one. */
|
|
297
|
-
@property --ui-toast-region-surface {
|
|
298
|
-
syntax: "*";
|
|
299
|
-
inherits: false;
|
|
300
|
-
}
|
|
301
|
-
@property --ui-toast-region-border {
|
|
302
|
-
syntax: "*";
|
|
303
|
-
inherits: false;
|
|
304
|
-
}
|
|
305
|
-
@property --ui-toast-region-radius {
|
|
306
|
-
syntax: "*";
|
|
307
|
-
inherits: false;
|
|
308
|
-
}
|
|
309
|
-
@property --ui-toast-region-shadow {
|
|
310
|
-
syntax: "*";
|
|
311
|
-
inherits: false;
|
|
312
|
-
}
|
|
313
|
-
@property --ui-toast-region-enter-duration {
|
|
314
|
-
syntax: "*";
|
|
315
|
-
inherits: false;
|
|
316
|
-
}
|
|
317
|
-
@property --ui-toast-region-exit-duration {
|
|
318
|
-
syntax: "*";
|
|
319
|
-
inherits: false;
|
|
320
|
-
}
|
|
321
|
-
|
|
322
296
|
/* Leaving slides on down and fades; the controller removes the toast when this ends. */
|
|
323
297
|
|
|
324
298
|
@keyframes ui-toast-enter {
|
|
@@ -369,7 +343,7 @@ useComponentHost(() => import('../components/ui-toast-region/ui-toast-region.js'
|
|
|
369
343
|
|
|
370
344
|
@scope (.ui-toast-region) to ([data-hn]) {
|
|
371
345
|
:global(:scope:where([data-hn-ui-toast-region])) {
|
|
372
|
-
/*
|
|
346
|
+
/* Resolve shared part values at the component root. */
|
|
373
347
|
--_ui-toast-region-surface: var(--ui-toast-region-surface);
|
|
374
348
|
--_ui-toast-region-border: var(--ui-toast-region-border);
|
|
375
349
|
--_ui-toast-region-radius: var(--ui-toast-region-radius);
|
|
@@ -398,11 +372,9 @@ useComponentHost(() => import('../components/ui-toast-region/ui-toast-region.js'
|
|
|
398
372
|
box-shadow: none;
|
|
399
373
|
pointer-events: none;
|
|
400
374
|
}
|
|
401
|
-
|
|
402
375
|
:global(:scope:not(:popover-open):where([data-hn-ui-toast-region])) {
|
|
403
376
|
display: none !important;
|
|
404
377
|
}
|
|
405
|
-
|
|
406
378
|
:global(:scope[data-ui-toast-region-state~="placement=top-start"]:where([data-hn-ui-toast-region])),
|
|
407
379
|
:global(:scope[data-ui-toast-region-state~="placement=bottom-start"]:where([data-hn-ui-toast-region])) {
|
|
408
380
|
left: auto;
|
|
@@ -410,7 +382,6 @@ useComponentHost(() => import('../components/ui-toast-region/ui-toast-region.js'
|
|
|
410
382
|
inset-inline-start: calc(var(--ui-space-4) + env(safe-area-inset-left));
|
|
411
383
|
transform: none;
|
|
412
384
|
}
|
|
413
|
-
|
|
414
385
|
:global(:scope[data-ui-toast-region-state~="placement=top-end"]:where([data-hn-ui-toast-region])),
|
|
415
386
|
:global(:scope[data-ui-toast-region-state~="placement=bottom-end"]:where([data-hn-ui-toast-region])) {
|
|
416
387
|
left: auto;
|
|
@@ -418,22 +389,20 @@ useComponentHost(() => import('../components/ui-toast-region/ui-toast-region.js'
|
|
|
418
389
|
inset-inline-end: calc(var(--ui-space-4) + env(safe-area-inset-right));
|
|
419
390
|
transform: none;
|
|
420
391
|
}
|
|
421
|
-
|
|
422
392
|
:global(:scope[data-ui-toast-region-state~="placement=bottom"]:where([data-hn-ui-toast-region])),
|
|
423
393
|
:global(:scope[data-ui-toast-region-state~="placement=bottom-start"]:where([data-hn-ui-toast-region])),
|
|
424
394
|
:global(:scope[data-ui-toast-region-state~="placement=bottom-end"]:where([data-hn-ui-toast-region])) {
|
|
425
395
|
top: auto;
|
|
426
396
|
bottom: calc(var(--ui-space-4) + env(safe-area-inset-bottom));
|
|
427
397
|
}
|
|
428
|
-
|
|
429
398
|
:global(:scope > .toast:where([data-hn-ui-toast-region])),
|
|
430
399
|
:global(:scope > :where(:not([data-hn-ui-toast-region])):is(*)) {
|
|
431
400
|
pointer-events: auto;
|
|
432
401
|
}
|
|
433
|
-
|
|
434
402
|
:global(.toast:where([data-hn-ui-toast-region])) {
|
|
435
|
-
--_ui-toast-region-accent: var(--ui-border-strong);
|
|
436
|
-
--_ui-
|
|
403
|
+
--_ui-toast-region-accent: var(--ui-overlay-border, var(--ui-border-strong));
|
|
404
|
+
--_ui-surface-text: var(--ui-text-primary);
|
|
405
|
+
--_ui-toast-region-tone-surface: var(--ui-overlay-surface, var(--ui-surface-muted));
|
|
437
406
|
display: grid !important;
|
|
438
407
|
grid-template-columns: 1fr auto;
|
|
439
408
|
gap: var(--ui-space-2) !important;
|
|
@@ -448,7 +417,7 @@ useComponentHost(() => import('../components/ui-toast-region/ui-toast-region.js'
|
|
|
448
417
|
--_ui-toast-region-surface,
|
|
449
418
|
var(--ui-overlay-surface, var(--_ui-toast-region-tone-surface))
|
|
450
419
|
);
|
|
451
|
-
color: var(--
|
|
420
|
+
color: var(--_ui-surface-text);
|
|
452
421
|
font-family: var(--ui-font-family-sans);
|
|
453
422
|
font-size: var(--ui-font-size-sm);
|
|
454
423
|
font-weight: var(--ui-font-normal);
|
|
@@ -460,21 +429,24 @@ useComponentHost(() => import('../components/ui-toast-region/ui-toast-region.js'
|
|
|
460
429
|
animation: ui-toast-enter var(--_ui-toast-region-enter-duration, 0.32s)
|
|
461
430
|
var(--ui-motion-ease-out, cubic-bezier(0.16, 1, 0.3, 1)) both;
|
|
462
431
|
}
|
|
463
|
-
|
|
464
432
|
:global(.toast[data-tone="info"]:where([data-hn-ui-toast-region])) {
|
|
465
|
-
--_ui-toast-region-accent: var(--ui-info-
|
|
433
|
+
--_ui-toast-region-accent: var(--ui-info-soft-border);
|
|
434
|
+
--_ui-surface-text: var(--ui-info-subtle-text);
|
|
466
435
|
--_ui-toast-region-tone-surface: var(--ui-info-soft);
|
|
467
436
|
}
|
|
468
437
|
:global(.toast[data-tone="success"]:where([data-hn-ui-toast-region])) {
|
|
469
|
-
--_ui-toast-region-accent: var(--ui-success-
|
|
438
|
+
--_ui-toast-region-accent: var(--ui-success-soft-border);
|
|
439
|
+
--_ui-surface-text: var(--ui-success-subtle-text);
|
|
470
440
|
--_ui-toast-region-tone-surface: var(--ui-success-soft);
|
|
471
441
|
}
|
|
472
442
|
:global(.toast[data-tone="warning"]:where([data-hn-ui-toast-region])) {
|
|
473
|
-
--_ui-toast-region-accent: var(--ui-warning-
|
|
443
|
+
--_ui-toast-region-accent: var(--ui-warning-soft-border);
|
|
444
|
+
--_ui-surface-text: var(--ui-warning-subtle-text);
|
|
474
445
|
--_ui-toast-region-tone-surface: var(--ui-warning-soft);
|
|
475
446
|
}
|
|
476
447
|
:global(.toast[data-tone="danger"]:where([data-hn-ui-toast-region])) {
|
|
477
|
-
--_ui-toast-region-accent: var(--ui-danger-
|
|
448
|
+
--_ui-toast-region-accent: var(--ui-danger-soft-border);
|
|
449
|
+
--_ui-surface-text: var(--ui-danger-subtle-text);
|
|
478
450
|
--_ui-toast-region-tone-surface: var(--ui-danger-soft);
|
|
479
451
|
}
|
|
480
452
|
:global(.toast.closing:where([data-hn-ui-toast-region])) {
|
|
@@ -515,7 +487,7 @@ useComponentHost(() => import('../components/ui-toast-region/ui-toast-region.js'
|
|
|
515
487
|
|
|
516
488
|
@scope ([data-slotted~="ui-toast-region"]:not([data-hn])) to ([data-hn], [data-slotted]) {
|
|
517
489
|
:global(:where(.ui-toast-region):where(:scope, :not([data-hn], [data-slotted]:not([data-slotted~="ui-toast-region"]))):where([data-hn-ui-toast-region])) {
|
|
518
|
-
/*
|
|
490
|
+
/* Resolve shared part values at the component root. */
|
|
519
491
|
--_ui-toast-region-surface: var(--ui-toast-region-surface);
|
|
520
492
|
--_ui-toast-region-border: var(--ui-toast-region-border);
|
|
521
493
|
--_ui-toast-region-radius: var(--ui-toast-region-radius);
|
|
@@ -544,11 +516,9 @@ useComponentHost(() => import('../components/ui-toast-region/ui-toast-region.js'
|
|
|
544
516
|
box-shadow: none;
|
|
545
517
|
pointer-events: none;
|
|
546
518
|
}
|
|
547
|
-
|
|
548
519
|
:global(:where(.ui-toast-region):not(:popover-open):where(:scope, :not([data-hn], [data-slotted]:not([data-slotted~="ui-toast-region"]))):where([data-hn-ui-toast-region])) {
|
|
549
520
|
display: none !important;
|
|
550
521
|
}
|
|
551
|
-
|
|
552
522
|
:global(:where(.ui-toast-region)[data-ui-toast-region-state~="placement=top-start"]:where(:scope, :not([data-hn], [data-slotted]:not([data-slotted~="ui-toast-region"]))):where([data-hn-ui-toast-region])),
|
|
553
523
|
:global(:where(.ui-toast-region)[data-ui-toast-region-state~="placement=bottom-start"]:where(:scope, :not([data-hn], [data-slotted]:not([data-slotted~="ui-toast-region"]))):where([data-hn-ui-toast-region])) {
|
|
554
524
|
left: auto;
|
|
@@ -556,7 +526,6 @@ useComponentHost(() => import('../components/ui-toast-region/ui-toast-region.js'
|
|
|
556
526
|
inset-inline-start: calc(var(--ui-space-4) + env(safe-area-inset-left));
|
|
557
527
|
transform: none;
|
|
558
528
|
}
|
|
559
|
-
|
|
560
529
|
:global(:where(.ui-toast-region)[data-ui-toast-region-state~="placement=top-end"]:where(:scope, :not([data-hn], [data-slotted]:not([data-slotted~="ui-toast-region"]))):where([data-hn-ui-toast-region])),
|
|
561
530
|
:global(:where(.ui-toast-region)[data-ui-toast-region-state~="placement=bottom-end"]:where(:scope, :not([data-hn], [data-slotted]:not([data-slotted~="ui-toast-region"]))):where([data-hn-ui-toast-region])) {
|
|
562
531
|
left: auto;
|
|
@@ -564,17 +533,16 @@ useComponentHost(() => import('../components/ui-toast-region/ui-toast-region.js'
|
|
|
564
533
|
inset-inline-end: calc(var(--ui-space-4) + env(safe-area-inset-right));
|
|
565
534
|
transform: none;
|
|
566
535
|
}
|
|
567
|
-
|
|
568
536
|
:global(:where(.ui-toast-region)[data-ui-toast-region-state~="placement=bottom"]:where(:scope, :not([data-hn], [data-slotted]:not([data-slotted~="ui-toast-region"]))):where([data-hn-ui-toast-region])),
|
|
569
537
|
:global(:where(.ui-toast-region)[data-ui-toast-region-state~="placement=bottom-start"]:where(:scope, :not([data-hn], [data-slotted]:not([data-slotted~="ui-toast-region"]))):where([data-hn-ui-toast-region])),
|
|
570
538
|
:global(:where(.ui-toast-region)[data-ui-toast-region-state~="placement=bottom-end"]:where(:scope, :not([data-hn], [data-slotted]:not([data-slotted~="ui-toast-region"]))):where([data-hn-ui-toast-region])) {
|
|
571
539
|
top: auto;
|
|
572
540
|
bottom: calc(var(--ui-space-4) + env(safe-area-inset-bottom));
|
|
573
541
|
}
|
|
574
|
-
|
|
575
542
|
:global(.toast:where(:scope, :scope *):where([data-hn-ui-toast-region])) {
|
|
576
|
-
--_ui-toast-region-accent: var(--ui-border-strong);
|
|
577
|
-
--_ui-
|
|
543
|
+
--_ui-toast-region-accent: var(--ui-overlay-border, var(--ui-border-strong));
|
|
544
|
+
--_ui-surface-text: var(--ui-text-primary);
|
|
545
|
+
--_ui-toast-region-tone-surface: var(--ui-overlay-surface, var(--ui-surface-muted));
|
|
578
546
|
display: grid !important;
|
|
579
547
|
grid-template-columns: 1fr auto;
|
|
580
548
|
gap: var(--ui-space-2) !important;
|
|
@@ -589,7 +557,7 @@ useComponentHost(() => import('../components/ui-toast-region/ui-toast-region.js'
|
|
|
589
557
|
--_ui-toast-region-surface,
|
|
590
558
|
var(--ui-overlay-surface, var(--_ui-toast-region-tone-surface))
|
|
591
559
|
);
|
|
592
|
-
color: var(--
|
|
560
|
+
color: var(--_ui-surface-text);
|
|
593
561
|
font-family: var(--ui-font-family-sans);
|
|
594
562
|
font-size: var(--ui-font-size-sm);
|
|
595
563
|
font-weight: var(--ui-font-normal);
|
|
@@ -601,21 +569,24 @@ useComponentHost(() => import('../components/ui-toast-region/ui-toast-region.js'
|
|
|
601
569
|
animation: ui-toast-enter var(--_ui-toast-region-enter-duration, 0.32s)
|
|
602
570
|
var(--ui-motion-ease-out, cubic-bezier(0.16, 1, 0.3, 1)) both;
|
|
603
571
|
}
|
|
604
|
-
|
|
605
572
|
:global(.toast[data-tone="info"]:where(:scope, :scope *):where([data-hn-ui-toast-region])) {
|
|
606
|
-
--_ui-toast-region-accent: var(--ui-info-
|
|
573
|
+
--_ui-toast-region-accent: var(--ui-info-soft-border);
|
|
574
|
+
--_ui-surface-text: var(--ui-info-subtle-text);
|
|
607
575
|
--_ui-toast-region-tone-surface: var(--ui-info-soft);
|
|
608
576
|
}
|
|
609
577
|
:global(.toast[data-tone="success"]:where(:scope, :scope *):where([data-hn-ui-toast-region])) {
|
|
610
|
-
--_ui-toast-region-accent: var(--ui-success-
|
|
578
|
+
--_ui-toast-region-accent: var(--ui-success-soft-border);
|
|
579
|
+
--_ui-surface-text: var(--ui-success-subtle-text);
|
|
611
580
|
--_ui-toast-region-tone-surface: var(--ui-success-soft);
|
|
612
581
|
}
|
|
613
582
|
:global(.toast[data-tone="warning"]:where(:scope, :scope *):where([data-hn-ui-toast-region])) {
|
|
614
|
-
--_ui-toast-region-accent: var(--ui-warning-
|
|
583
|
+
--_ui-toast-region-accent: var(--ui-warning-soft-border);
|
|
584
|
+
--_ui-surface-text: var(--ui-warning-subtle-text);
|
|
615
585
|
--_ui-toast-region-tone-surface: var(--ui-warning-soft);
|
|
616
586
|
}
|
|
617
587
|
:global(.toast[data-tone="danger"]:where(:scope, :scope *):where([data-hn-ui-toast-region])) {
|
|
618
|
-
--_ui-toast-region-accent: var(--ui-danger-
|
|
588
|
+
--_ui-toast-region-accent: var(--ui-danger-soft-border);
|
|
589
|
+
--_ui-surface-text: var(--ui-danger-subtle-text);
|
|
619
590
|
--_ui-toast-region-tone-surface: var(--ui-danger-soft);
|
|
620
591
|
}
|
|
621
592
|
:global(.toast.closing:where(:scope, :scope *):where([data-hn-ui-toast-region])) {
|
package/vue/UiTooltip.vue
CHANGED
|
@@ -345,48 +345,6 @@ useComponentHost(() => import('../components/ui-tooltip/ui-tooltip.js'), {
|
|
|
345
345
|
</template>
|
|
346
346
|
|
|
347
347
|
<style scoped>
|
|
348
|
-
/* This component's hooks style the element they are set on, and never a nested one. */
|
|
349
|
-
@property --ui-tooltip-arrow-size {
|
|
350
|
-
syntax: "*";
|
|
351
|
-
inherits: false;
|
|
352
|
-
}
|
|
353
|
-
@property --ui-tooltip-border {
|
|
354
|
-
syntax: "*";
|
|
355
|
-
inherits: false;
|
|
356
|
-
}
|
|
357
|
-
@property --ui-tooltip-inverse-surface {
|
|
358
|
-
syntax: "*";
|
|
359
|
-
inherits: false;
|
|
360
|
-
}
|
|
361
|
-
@property --ui-tooltip-inverse-text {
|
|
362
|
-
syntax: "*";
|
|
363
|
-
inherits: false;
|
|
364
|
-
}
|
|
365
|
-
@property --ui-tooltip-max-inline-size {
|
|
366
|
-
syntax: "*";
|
|
367
|
-
inherits: false;
|
|
368
|
-
}
|
|
369
|
-
@property --ui-tooltip-offset {
|
|
370
|
-
syntax: "*";
|
|
371
|
-
inherits: false;
|
|
372
|
-
}
|
|
373
|
-
@property --ui-tooltip-radius {
|
|
374
|
-
syntax: "*";
|
|
375
|
-
inherits: false;
|
|
376
|
-
}
|
|
377
|
-
@property --ui-tooltip-shadow {
|
|
378
|
-
syntax: "*";
|
|
379
|
-
inherits: false;
|
|
380
|
-
}
|
|
381
|
-
@property --ui-tooltip-surface {
|
|
382
|
-
syntax: "*";
|
|
383
|
-
inherits: false;
|
|
384
|
-
}
|
|
385
|
-
@property --ui-tooltip-text {
|
|
386
|
-
syntax: "*";
|
|
387
|
-
inherits: false;
|
|
388
|
-
}
|
|
389
|
-
|
|
390
348
|
/* The label and the shortcut sit side by side, a gap apart, with the label wrapping on its own. */
|
|
391
349
|
|
|
392
350
|
/* Purpose and measured size shape one shared separation lever. The content plane stays opaque;
|
|
@@ -403,7 +361,7 @@ useComponentHost(() => import('../components/ui-tooltip/ui-tooltip.js'), {
|
|
|
403
361
|
@scope (.ui-tooltip) to ([data-hn]) {
|
|
404
362
|
:global(:scope:where([data-hn-ui-tooltip])) {
|
|
405
363
|
--_ui-material-scale: 0.08;
|
|
406
|
-
/*
|
|
364
|
+
/* Resolve shared part values at the component root. */
|
|
407
365
|
--_ui-tooltip-border: var(--ui-tooltip-border);
|
|
408
366
|
--_ui-tooltip-max-inline-size: var(--ui-tooltip-max-inline-size);
|
|
409
367
|
--_ui-tooltip-radius: var(--ui-tooltip-radius);
|