@threadlabs/looma 0.47.0 → 0.47.2
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-button/ui-button.html +3 -7
- package/components/ui-combobox/ui-combobox.html +23 -4
- package/components/ui-combobox/ui-combobox.js +6 -0
- package/components/ui-icon-button/ui-icon-button.html +3 -8
- package/components/ui-top-bar/ui-top-bar.html +32 -2
- package/components/ui-top-bar/ui-top-bar.js +60 -0
- package/dist/index.js +4 -3
- package/docs/README.md +1 -1
- package/docs/catalog.json +67 -12
- package/docs/customizer-render.mjs +3 -3
- package/docs/customizer.js +1 -7
- package/docs/theme.mjs +43 -12
- package/package.json +1 -1
- package/styles/ui-button.css +3 -7
- package/styles/ui-combobox.css +40 -6
- package/styles/ui-icon-button.css +3 -8
- package/styles/ui-top-bar.css +24 -1
- package/vanilla/UiCombobox.d.ts +1 -0
- package/vanilla/UiCombobox.js +88 -82
- package/vanilla/UiTopBar.d.ts +1 -0
- package/vanilla/UiTopBar.js +50 -13
- package/vue/UiButton.vue +3 -7
- package/vue/UiCombobox.d.ts +6 -0
- package/vue/UiCombobox.vue +76 -9
- package/vue/UiIconButton.vue +3 -8
- package/vue/UiTopBar.d.ts +17 -1
- package/vue/UiTopBar.vue +171 -3
- 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 +1 -1
- package/vue/chunks/UiBreadcrumbItem.js +1 -1
- package/vue/chunks/UiBreadcrumbs.js +1 -1
- package/vue/chunks/UiButton.js +2 -2
- package/vue/chunks/UiCallout.js +1 -1
- package/vue/chunks/UiCard.js +1 -1
- package/vue/chunks/UiCheckbox.js +1 -1
- package/vue/chunks/UiCluster.js +1 -1
- package/vue/chunks/UiColorPicker.js +1 -1
- package/vue/chunks/UiCombobox.js +74 -53
- package/vue/chunks/UiContainer.js +1 -1
- package/vue/chunks/UiContextMenu.js +1 -1
- package/vue/chunks/UiCover.js +1 -1
- package/vue/chunks/UiCurveEditor.js +1 -1
- package/vue/chunks/UiCycleButton.js +1 -1
- package/vue/chunks/UiDescriptionItem.js +1 -1
- package/vue/chunks/UiDescriptionList.js +1 -1
- package/vue/chunks/UiDialog.js +1 -1
- package/vue/chunks/UiDisclosure.js +1 -1
- package/vue/chunks/UiEditable.js +1 -1
- package/vue/chunks/UiEditorBlockActions.js +1 -1
- package/vue/chunks/UiEditorChipEditor.js +1 -1
- package/vue/chunks/UiEditorCodeLanguage.js +1 -1
- package/vue/chunks/UiEditorFootnoteEditor.js +1 -1
- package/vue/chunks/UiEditorImageToolbar.js +1 -1
- package/vue/chunks/UiEditorInsertTableGrid.js +1 -1
- package/vue/chunks/UiEditorLinkCard.js +1 -1
- package/vue/chunks/UiEditorLinkForm.js +1 -1
- package/vue/chunks/UiEditorMentionMenu.js +1 -1
- package/vue/chunks/UiEditorMentionMenuItem.js +1 -1
- package/vue/chunks/UiEditorSlashMenu.js +1 -1
- package/vue/chunks/UiEditorSlashMenuGroup.js +1 -1
- package/vue/chunks/UiEditorSlashMenuItem.js +1 -1
- package/vue/chunks/UiEditorSurface.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/UiEditorToolbar.js +1 -1
- package/vue/chunks/UiFloatingActionButton.js +1 -1
- package/vue/chunks/UiFormField.js +1 -1
- package/vue/chunks/UiGrid.js +1 -1
- package/vue/chunks/UiIcon.js +1 -1
- package/vue/chunks/UiIconButton.js +2 -2
- package/vue/chunks/UiImage.js +1 -1
- 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/UiMenuGroup.js +1 -1
- package/vue/chunks/UiMenuItem.js +1 -1
- package/vue/chunks/UiMeter.js +1 -1
- package/vue/chunks/UiNavItem.js +1 -1
- package/vue/chunks/UiNumberInput.js +1 -1
- package/vue/chunks/UiPageHeader.js +1 -1
- package/vue/chunks/UiPagination.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 +1 -1
- package/vue/chunks/UiScrollArea.js +1 -1
- 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/UiSlider.js +1 -1
- package/vue/chunks/UiSpinner.js +1 -1
- package/vue/chunks/UiStack.js +1 -1
- 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 +1 -1
- package/vue/chunks/UiTable.js +1 -1
- package/vue/chunks/UiTabs.js +1 -1
- package/vue/chunks/UiText.js +1 -1
- 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 +105 -17
- package/vue/chunks/UiTree.js +1 -1
- package/vue/chunks/UiTreeItem.js +1 -1
- package/vue/chunks/props.js +1 -1
- package/vue/components.css +77 -38
package/vue/chunks/UiTopBar.js
CHANGED
|
@@ -1,19 +1,18 @@
|
|
|
1
|
-
import { _ as nativeAttrs, a as checkHydratedRoot, t as _plugin_vue_export_helper_default } from "./_plugin-vue_export-helper.js";
|
|
2
|
-
import {
|
|
1
|
+
import { C as useReflectedProp, S as useComponentHost, _ as nativeAttrs, a as checkHydratedRoot, c as cycleCheckedComputed, s as createDispatch, t as _plugin_vue_export_helper_default } from "./_plugin-vue_export-helper.js";
|
|
2
|
+
import { a as checkPropInput, d as inputRead, f as propValidityState, g as vuePropInputs, h as vPropValidity, i as acceptsControllerWrite, l as inputComputed, n as READY_INPUT, r as UNRESOLVED_INPUT, t as BINDING_INPUTS_PROP } from "./props.js";
|
|
3
|
+
import { computed, createElementBlock, createElementVNode, defineComponent, getCurrentInstance, mergeProps, normalizeClass, openBlock, provide, ref, renderSlot, unref, watchSyncEffect, withDirectives } from "vue";
|
|
3
4
|
//#region .build/vue/UiTopBar.vue?vue&type=script&setup=true&lang.ts
|
|
4
|
-
var _hoisted_1 =
|
|
5
|
-
class: "leading",
|
|
6
|
-
"data-hn-ui-top-bar": ""
|
|
7
|
-
};
|
|
5
|
+
var _hoisted_1 = ["data-ui-top-bar-prop-title-for"];
|
|
8
6
|
var _hoisted_2 = {
|
|
9
|
-
class: "
|
|
7
|
+
class: "leading",
|
|
10
8
|
"data-hn-ui-top-bar": ""
|
|
11
9
|
};
|
|
12
|
-
var _hoisted_3 =
|
|
10
|
+
var _hoisted_3 = ["aria-hidden", "inert"];
|
|
11
|
+
var _hoisted_4 = {
|
|
13
12
|
class: "search",
|
|
14
13
|
"data-hn-ui-top-bar": ""
|
|
15
14
|
};
|
|
16
|
-
var
|
|
15
|
+
var _hoisted_5 = {
|
|
17
16
|
class: "actions",
|
|
18
17
|
"data-hn-ui-top-bar": ""
|
|
19
18
|
};
|
|
@@ -22,20 +21,109 @@ var _hoisted_4 = {
|
|
|
22
21
|
var UiTopBar_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
|
|
23
22
|
inheritAttrs: false,
|
|
24
23
|
__name: "UiTopBar",
|
|
24
|
+
props: {
|
|
25
|
+
titleFor: { type: null },
|
|
26
|
+
[BINDING_INPUTS_PROP]: { type: null }
|
|
27
|
+
},
|
|
25
28
|
setup(__props) {
|
|
29
|
+
const propValidityContract = { props: { titleFor: {
|
|
30
|
+
type: {
|
|
31
|
+
kind: "terminal",
|
|
32
|
+
name: "string"
|
|
33
|
+
},
|
|
34
|
+
required: false,
|
|
35
|
+
target: { attribute: "titlefor" },
|
|
36
|
+
description: "The ID of the page heading represented by the default title slot. While that heading is visible below the sticky bar, its duplicate title is concealed.\n After the heading scrolls above the bar, the single-line title slides up and fades in. Leading and action slots stay available, and the bar keeps its\n size. Omit it for an always-visible title. Reduced motion removes the transition.",
|
|
37
|
+
default: ""
|
|
38
|
+
} } };
|
|
39
|
+
const props = __props;
|
|
40
|
+
const inputTracking = vuePropInputs({ titleFor: "" }, { titleFor: "" }, (name, value, source, values) => {
|
|
41
|
+
switch (name) {
|
|
42
|
+
case "titleFor": return checkPropInput(value, {
|
|
43
|
+
kind: "terminal",
|
|
44
|
+
name: "string"
|
|
45
|
+
}, true, true);
|
|
46
|
+
default: return { ok: false };
|
|
47
|
+
}
|
|
48
|
+
}, () => {
|
|
49
|
+
checkedProps.value;
|
|
50
|
+
});
|
|
51
|
+
const propInputs = inputTracking.inputs;
|
|
52
|
+
const checkedProps = computed(() => {
|
|
53
|
+
inputTracking.version.value;
|
|
54
|
+
return { titleFor: propInputs.value("titleFor", props["titleFor"], props[BINDING_INPUTS_PROP]) };
|
|
55
|
+
});
|
|
56
|
+
checkedProps.value;
|
|
57
|
+
watchSyncEffect(() => {
|
|
58
|
+
checkedProps.value;
|
|
59
|
+
});
|
|
60
|
+
const reflectedProp = useReflectedProp();
|
|
61
|
+
const hydrationInstance = getCurrentInstance();
|
|
62
|
+
const root = ref(null);
|
|
63
|
+
const titleOutOfView = ref(false);
|
|
64
|
+
const titleHidden = inputComputed(() => inputRead(checkedProps.value.titleFor, propInputs.status("titleFor")) !== "" && !inputRead(titleOutOfView.value, titleOutOfView.value === void 0 ? UNRESOLVED_INPUT : READY_INPUT), (read) => {
|
|
65
|
+
const value = cycleCheckedComputed(read);
|
|
66
|
+
return { get: () => value.value };
|
|
67
|
+
});
|
|
68
|
+
provide("html-next:ui-top-bar:titleOutOfView", titleOutOfView);
|
|
26
69
|
checkHydratedRoot("header", "ui-top-bar");
|
|
70
|
+
const dispatch = createDispatch(root);
|
|
71
|
+
useComponentHost(() => import("@threadlabs/looma/components/ui-top-bar/ui-top-bar.js"), {
|
|
72
|
+
root,
|
|
73
|
+
module: true,
|
|
74
|
+
dispatch,
|
|
75
|
+
acceptsState: (name, keys, value) => acceptsControllerWrite(value, { titleOutOfView: {
|
|
76
|
+
kind: "terminal",
|
|
77
|
+
name: "boolean"
|
|
78
|
+
} }[name], keys),
|
|
79
|
+
initials: { titleOutOfView: false },
|
|
80
|
+
controllerSource: {
|
|
81
|
+
specifier: "../components/ui-top-bar/ui-top-bar.js",
|
|
82
|
+
definition: "./components/ui-top-bar/ui-top-bar.html"
|
|
83
|
+
},
|
|
84
|
+
props: checkedProps,
|
|
85
|
+
inputs: propInputs,
|
|
86
|
+
inputTracking,
|
|
87
|
+
propInputs: (name) => {
|
|
88
|
+
const incoming = hydrationInstance?.vnode.props;
|
|
89
|
+
const kebab = name.replace(/[A-Z]/g, (letter) => "-" + letter.toLowerCase());
|
|
90
|
+
return incoming !== null && incoming !== void 0 ? incoming[name] ?? incoming[kebab] ?? null : null;
|
|
91
|
+
},
|
|
92
|
+
propNames: ["titleFor"],
|
|
93
|
+
propValidity: (name) => propValidityState({
|
|
94
|
+
contract: propValidityContract,
|
|
95
|
+
values: { ...props }
|
|
96
|
+
}, name),
|
|
97
|
+
state: { titleOutOfView },
|
|
98
|
+
computed: { titleHidden },
|
|
99
|
+
availability: { titleHidden: () => titleHidden.status() }
|
|
100
|
+
});
|
|
27
101
|
return (_ctx, _cache) => {
|
|
28
|
-
return openBlock(), createElementBlock("header", mergeProps({ class: "ui-top-bar" }, unref(nativeAttrs)(_ctx.$attrs), {
|
|
102
|
+
return withDirectives((openBlock(), createElementBlock("header", mergeProps({ class: "ui-top-bar" }, unref(nativeAttrs)(_ctx.$attrs), {
|
|
29
103
|
"data-hn": "",
|
|
30
|
-
"data-hn-ui-top-bar": ""
|
|
104
|
+
"data-hn-ui-top-bar": "",
|
|
105
|
+
"data-ui-top-bar-prop-title-for": unref(reflectedProp)("titleFor", "title-for", checkedProps.value.titleFor, void 0, false),
|
|
106
|
+
ref_key: "root",
|
|
107
|
+
ref: root
|
|
31
108
|
}), [
|
|
32
|
-
createElementVNode("div",
|
|
33
|
-
createElementVNode("div",
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
109
|
+
createElementVNode("div", _hoisted_2, [renderSlot(_ctx.$slots, "leading", {}, void 0, true)]),
|
|
110
|
+
createElementVNode("div", {
|
|
111
|
+
class: normalizeClass(["title", {
|
|
112
|
+
"scroll-title": checkedProps.value.titleFor !== "",
|
|
113
|
+
concealed: unref(titleHidden).get()
|
|
114
|
+
}]),
|
|
115
|
+
"data-hn-ui-top-bar": "",
|
|
116
|
+
"aria-hidden": unref(titleHidden).get() ?? void 0,
|
|
117
|
+
inert: unref(titleHidden).get() ?? void 0
|
|
118
|
+
}, [renderSlot(_ctx.$slots, "default", {}, void 0, true)], 10, _hoisted_3),
|
|
119
|
+
createElementVNode("div", _hoisted_4, [renderSlot(_ctx.$slots, "search", {}, void 0, true)]),
|
|
120
|
+
createElementVNode("div", _hoisted_5, [renderSlot(_ctx.$slots, "actions", {}, void 0, true)])
|
|
121
|
+
], 16, _hoisted_1)), [[unref(vPropValidity), {
|
|
122
|
+
contract: propValidityContract,
|
|
123
|
+
values: { ...props }
|
|
124
|
+
}]]);
|
|
37
125
|
};
|
|
38
126
|
}
|
|
39
|
-
}), [["__scopeId", "data-v-
|
|
127
|
+
}), [["__scopeId", "data-v-9784238d"]]);
|
|
40
128
|
//#endregion
|
|
41
129
|
export { UiTopBar_default as t };
|
package/vue/chunks/UiTree.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { C as useReflectedProp, S as useComponentHost, _ as nativeAttrs, a as checkHydratedRoot, s as createDispatch, t as _plugin_vue_export_helper_default } from "./_plugin-vue_export-helper.js";
|
|
2
|
-
import {
|
|
2
|
+
import { a as checkPropInput, f as propValidityState, g as vuePropInputs, h as vPropValidity, t as BINDING_INPUTS_PROP } from "./props.js";
|
|
3
3
|
import { computed, createElementBlock, defineComponent, getCurrentInstance, mergeProps, openBlock, ref, renderSlot, unref, watchSyncEffect, withDirectives } from "vue";
|
|
4
4
|
//#region .build/vue/UiTree.vue?vue&type=script&setup=true&lang.ts
|
|
5
5
|
var _hoisted_1 = [
|
package/vue/chunks/UiTreeItem.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { C as useReflectedProp, S as useComponentHost, _ as nativeAttrs, a as checkHydratedRoot, i as attribute, o as concat, s as createDispatch, t as _plugin_vue_export_helper_default } from "./_plugin-vue_export-helper.js";
|
|
2
|
-
import {
|
|
2
|
+
import { a as checkPropInput, f as propValidityState, g as vuePropInputs, h as vPropValidity, i as acceptsControllerWrite, t as BINDING_INPUTS_PROP } from "./props.js";
|
|
3
3
|
import { t as UiButton_default } from "./UiButton.js";
|
|
4
4
|
import { computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, defineComponent, getCurrentInstance, mergeProps, openBlock, provide, ref, renderSlot, toDisplayString, unref, useTemplateRef, watchSyncEffect, withCtx, withDirectives } from "vue";
|
|
5
5
|
//#region .build/vue/UiTreeItem.vue?vue&type=script&setup=true&lang.ts
|
package/vue/chunks/props.js
CHANGED
|
@@ -1225,4 +1225,4 @@ function vuePropInputs(values, defaults, check, prepare) {
|
|
|
1225
1225
|
};
|
|
1226
1226
|
}
|
|
1227
1227
|
//#endregion
|
|
1228
|
-
export {
|
|
1228
|
+
export { checkPropInput as a, evaluateInput as c, inputRead as d, propValidityState as f, vuePropInputs as g, vPropValidity as h, acceptsControllerWrite as i, inputComputed as l, selectedPropNode as m, READY_INPUT as n, checkedProp as o, requireInputStatus as p, UNRESOLVED_INPUT as r, copyStateSeed as s, BINDING_INPUTS_PROP as t, inputDefault as u };
|
package/vue/components.css
CHANGED
|
@@ -1187,14 +1187,11 @@ svg,.arc {
|
|
|
1187
1187
|
align-self: center;
|
|
1188
1188
|
}
|
|
1189
1189
|
:scope[data-appearance="outline"]:not([data-tone="neutral"]):where([data-hn-ui-button]) {
|
|
1190
|
-
--_outline-highlight: var(--ui-surface-highlight, linear-gradient(transparent, transparent));
|
|
1191
1190
|
--_outline-wash: var(--_tone-wash);
|
|
1192
1191
|
border-color: var(--ui-button-border, var(--_tone-outline-border, var(--_tone-text)));
|
|
1193
1192
|
background-color: var(--ui-button-surface, transparent);
|
|
1194
1193
|
box-shadow: var(--ui-button-shadow, var(--ui-neutral-shadow));
|
|
1195
|
-
background-image:
|
|
1196
|
-
linear-gradient(var(--_outline-wash), var(--_outline-wash)),
|
|
1197
|
-
var(--_outline-highlight);
|
|
1194
|
+
background-image: linear-gradient(var(--_outline-wash), var(--_outline-wash));
|
|
1198
1195
|
}
|
|
1199
1196
|
:scope[data-appearance="outline"]:not([data-tone="neutral"]):hover:not(:disabled, [aria-disabled="true"]):where([data-hn-ui-button]) {
|
|
1200
1197
|
--_outline-wash: var(--_tone-wash-hover);
|
|
@@ -1318,15 +1315,14 @@ svg,.arc {
|
|
|
1318
1315
|
:scope[data-tone="neutral"][data-appearance="outline"]:where([data-hn-ui-button]) {
|
|
1319
1316
|
border-color: var(--ui-button-border, var(--ui-control-border));
|
|
1320
1317
|
background-color: var(--ui-button-surface, transparent);
|
|
1318
|
+
background-image: none;
|
|
1321
1319
|
box-shadow: var(--ui-button-shadow, var(--ui-neutral-shadow));
|
|
1322
1320
|
}
|
|
1323
1321
|
:scope[data-tone="neutral"][data-appearance="outline"]:hover:not(:disabled, [aria-disabled="true"]):where([data-hn-ui-button]) {
|
|
1324
1322
|
border-color: var(--ui-button-hover-border, var(--ui-control-border-hover));
|
|
1325
1323
|
background-color: var(--ui-button-hover-surface, transparent);
|
|
1326
1324
|
--_outline-wash: var(--ui-neutral-wash-hover);
|
|
1327
|
-
background-image:
|
|
1328
|
-
linear-gradient(var(--_outline-wash), var(--_outline-wash)),
|
|
1329
|
-
var(--ui-surface-highlight, linear-gradient(transparent, transparent));
|
|
1325
|
+
background-image: linear-gradient(var(--_outline-wash), var(--_outline-wash));
|
|
1330
1326
|
}
|
|
1331
1327
|
:scope[data-tone="neutral"][data-appearance="outline"]:active:not(:disabled, [aria-disabled="true"]):where([data-hn-ui-button]) {
|
|
1332
1328
|
background-image: none;
|
|
@@ -2816,6 +2812,8 @@ input[type="range"]:where(:scope, :scope *) {
|
|
|
2816
2812
|
while the clear and disclosure controls remain fixed at the end of the field. */
|
|
2817
2813
|
/* Size variants keep their control height as selections are added. */
|
|
2818
2814
|
/* A large multiple field starts at the large control height, as sm starts at the small one. */
|
|
2815
|
+
/* Grow through the requested rows, then keep the typing row in a bounded field.
|
|
2816
|
+
The entry owns its scroll; clear/disclosure actions remain outside it. */
|
|
2819
2817
|
|
|
2820
2818
|
/* A component that sets its display still honours the hidden attribute on its root. */
|
|
2821
2819
|
@scope (.ui-combobox) to ([data-hn]) {
|
|
@@ -3101,6 +3099,7 @@ input:disabled:where([data-hn-ui-combobox]),button:disabled:where([data-hn-ui-co
|
|
|
3101
3099
|
}
|
|
3102
3100
|
}
|
|
3103
3101
|
:scope[data-ui-combobox-state~="multiple"] .field:where([data-hn-ui-combobox]) {
|
|
3102
|
+
--_item-row: 1.75rem;
|
|
3104
3103
|
align-items: center !important;
|
|
3105
3104
|
min-block-size: var(--_ui-combobox-item-min-block-size, var(--_row));
|
|
3106
3105
|
padding: var(--ui-space-1) !important;
|
|
@@ -3119,28 +3118,44 @@ input:disabled:where([data-hn-ui-combobox]),button:disabled:where([data-hn-ui-co
|
|
|
3119
3118
|
max-block-size: none;
|
|
3120
3119
|
flex: 1 0 var(--_ui-combobox-item-input-min-inline-size, 5rem);
|
|
3121
3120
|
width: auto;
|
|
3122
|
-
min-block-size:
|
|
3121
|
+
min-block-size: var(--_item-row);
|
|
3123
3122
|
padding: var(--ui-space-0-5) var(--ui-space-1) !important;
|
|
3124
3123
|
}
|
|
3125
3124
|
:scope[data-ui-combobox-state~="multiple"]:scope[data-ui-combobox-state~="size=sm"]
|
|
3126
3125
|
.field:where([data-hn-ui-combobox]) {
|
|
3126
|
+
--_item-row: calc(var(--_row) - 2 * var(--ui-border-width) - 2 * var(--ui-space-0-5));
|
|
3127
3127
|
min-block-size: 0;
|
|
3128
3128
|
padding: var(--ui-space-0-5) !important;
|
|
3129
3129
|
}
|
|
3130
3130
|
:scope[data-ui-combobox-state~="multiple"]:scope[data-ui-combobox-state~="size=sm"]
|
|
3131
3131
|
input:where([data-hn-ui-combobox]) {
|
|
3132
|
-
min-block-size:
|
|
3132
|
+
min-block-size: var(--_item-row);
|
|
3133
3133
|
padding: 0 var(--ui-space-1) !important;
|
|
3134
3134
|
}
|
|
3135
3135
|
:scope[data-ui-combobox-state~="multiple"]:scope[data-ui-combobox-state~="size=lg"]
|
|
3136
3136
|
.field:where([data-hn-ui-combobox]) {
|
|
3137
|
+
--_item-row: calc(
|
|
3138
|
+
var(--ui-control-size-lg) - 2 * var(--ui-border-width) - 2 * var(--ui-space-1)
|
|
3139
|
+
);
|
|
3137
3140
|
min-block-size: 0;
|
|
3138
3141
|
}
|
|
3139
3142
|
:scope[data-ui-combobox-state~="multiple"]:scope[data-ui-combobox-state~="size=lg"]
|
|
3140
3143
|
input:where([data-hn-ui-combobox]) {
|
|
3141
|
-
min-block-size:
|
|
3142
|
-
|
|
3144
|
+
min-block-size: var(--_item-row);
|
|
3145
|
+
}
|
|
3146
|
+
:scope[data-ui-combobox-state~="multiple"]
|
|
3147
|
+
.entry.multiline:where([data-hn-ui-combobox]) {
|
|
3148
|
+
--_entry-row: max(var(--ui-badge-min-block-size, 1.5rem), var(--_item-row));
|
|
3149
|
+
flex-wrap: wrap !important;
|
|
3150
|
+
align-content: flex-start !important;
|
|
3151
|
+
max-block-size: calc(
|
|
3152
|
+
var(--_max-rows) * var(--_entry-row) + (var(--_max-rows) - 1) * var(--ui-space-1)
|
|
3143
3153
|
);
|
|
3154
|
+
overflow-x: hidden;
|
|
3155
|
+
overflow-y: auto;
|
|
3156
|
+
}
|
|
3157
|
+
.entry.multiline .item:where([data-hn-ui-combobox]) {
|
|
3158
|
+
min-block-size: var(--_entry-row);
|
|
3144
3159
|
}
|
|
3145
3160
|
.item:where([data-hn-ui-combobox]) {
|
|
3146
3161
|
appearance: none;
|
|
@@ -3461,6 +3476,7 @@ input:disabled:where(:scope, :scope *):where([data-hn-ui-combobox]),button:disab
|
|
|
3461
3476
|
}
|
|
3462
3477
|
:where(.ui-combobox)[data-ui-combobox-state~="multiple"]
|
|
3463
3478
|
.field:where(:scope, :not([data-hn], [data-slotted]:not([data-slotted~="ui-combobox"]))):where([data-hn-ui-combobox]) {
|
|
3479
|
+
--_item-row: 1.75rem;
|
|
3464
3480
|
align-items: center !important;
|
|
3465
3481
|
min-block-size: var(--_ui-combobox-item-min-block-size, var(--_row));
|
|
3466
3482
|
padding: var(--ui-space-1) !important;
|
|
@@ -3481,28 +3497,44 @@ input:disabled:where(:scope, :scope *):where([data-hn-ui-combobox]),button:disab
|
|
|
3481
3497
|
max-block-size: none;
|
|
3482
3498
|
flex: 1 0 var(--_ui-combobox-item-input-min-inline-size, 5rem);
|
|
3483
3499
|
width: auto;
|
|
3484
|
-
min-block-size:
|
|
3500
|
+
min-block-size: var(--_item-row);
|
|
3485
3501
|
padding: var(--ui-space-0-5) var(--ui-space-1) !important;
|
|
3486
3502
|
}
|
|
3487
3503
|
:where(.ui-combobox)[data-ui-combobox-state~="multiple"]:where(.ui-combobox)[data-ui-combobox-state~="size=sm"]
|
|
3488
3504
|
.field:where(:scope, :not([data-hn], [data-slotted]:not([data-slotted~="ui-combobox"]))):where([data-hn-ui-combobox]) {
|
|
3505
|
+
--_item-row: calc(var(--_row) - 2 * var(--ui-border-width) - 2 * var(--ui-space-0-5));
|
|
3489
3506
|
min-block-size: 0;
|
|
3490
3507
|
padding: var(--ui-space-0-5) !important;
|
|
3491
3508
|
}
|
|
3492
3509
|
:where(.ui-combobox)[data-ui-combobox-state~="multiple"]:where(.ui-combobox)[data-ui-combobox-state~="size=sm"]
|
|
3493
3510
|
input:where(:scope, :not([data-hn], [data-slotted]:not([data-slotted~="ui-combobox"]))):where([data-hn-ui-combobox]) {
|
|
3494
|
-
min-block-size:
|
|
3511
|
+
min-block-size: var(--_item-row);
|
|
3495
3512
|
padding: 0 var(--ui-space-1) !important;
|
|
3496
3513
|
}
|
|
3497
3514
|
:where(.ui-combobox)[data-ui-combobox-state~="multiple"]:where(.ui-combobox)[data-ui-combobox-state~="size=lg"]
|
|
3498
3515
|
.field:where(:scope, :not([data-hn], [data-slotted]:not([data-slotted~="ui-combobox"]))):where([data-hn-ui-combobox]) {
|
|
3516
|
+
--_item-row: calc(
|
|
3517
|
+
var(--ui-control-size-lg) - 2 * var(--ui-border-width) - 2 * var(--ui-space-1)
|
|
3518
|
+
);
|
|
3499
3519
|
min-block-size: 0;
|
|
3500
3520
|
}
|
|
3501
3521
|
:where(.ui-combobox)[data-ui-combobox-state~="multiple"]:where(.ui-combobox)[data-ui-combobox-state~="size=lg"]
|
|
3502
3522
|
input:where(:scope, :not([data-hn], [data-slotted]:not([data-slotted~="ui-combobox"]))):where([data-hn-ui-combobox]) {
|
|
3503
|
-
min-block-size:
|
|
3504
|
-
|
|
3523
|
+
min-block-size: var(--_item-row);
|
|
3524
|
+
}
|
|
3525
|
+
:where(.ui-combobox)[data-ui-combobox-state~="multiple"]
|
|
3526
|
+
.entry.multiline:where(:scope, :not([data-hn], [data-slotted]:not([data-slotted~="ui-combobox"]))):where([data-hn-ui-combobox]) {
|
|
3527
|
+
--_entry-row: max(var(--ui-badge-min-block-size, 1.5rem), var(--_item-row));
|
|
3528
|
+
flex-wrap: wrap !important;
|
|
3529
|
+
align-content: flex-start !important;
|
|
3530
|
+
max-block-size: calc(
|
|
3531
|
+
var(--_max-rows) * var(--_entry-row) + (var(--_max-rows) - 1) * var(--ui-space-1)
|
|
3505
3532
|
);
|
|
3533
|
+
overflow-x: hidden;
|
|
3534
|
+
overflow-y: auto;
|
|
3535
|
+
}
|
|
3536
|
+
.entry.multiline:where(:scope, :scope *) .item:where([data-hn-ui-combobox]) {
|
|
3537
|
+
min-block-size: var(--_entry-row);
|
|
3506
3538
|
}
|
|
3507
3539
|
.item:where(:scope, :scope *):where([data-hn-ui-combobox]) {
|
|
3508
3540
|
appearance: none;
|
|
@@ -4070,7 +4102,7 @@ html[data-ui-input-modality="touch"] :scope:where([data-hn-ui-icon-button])::aft
|
|
|
4070
4102
|
--ui-icon-button-outline-surface,
|
|
4071
4103
|
var(--_icon-button-outline-surface, var(--ui-surface-default))
|
|
4072
4104
|
);
|
|
4073
|
-
background-image:
|
|
4105
|
+
background-image: none;
|
|
4074
4106
|
color: var(--ui-icon-button-outline-text, var(--_icon-button-text, var(--ui-text-primary)));
|
|
4075
4107
|
box-shadow: var(--ui-neutral-shadow);
|
|
4076
4108
|
}
|
|
@@ -4102,13 +4134,10 @@ html[data-ui-input-modality="touch"] :scope:where([data-hn-ui-icon-button])::aft
|
|
|
4102
4134
|
color: var(--ui-icon-button-hover-text, var(--_icon-button-text, var(--ui-text-primary)));
|
|
4103
4135
|
}
|
|
4104
4136
|
:scope[data-appearance="outline"]:not([data-tone="neutral"]):where([data-hn-ui-icon-button]) {
|
|
4105
|
-
--_outline-highlight: var(--ui-surface-highlight, linear-gradient(transparent, transparent));
|
|
4106
4137
|
--_outline-wash: var(--_tone-wash);
|
|
4107
4138
|
border-color: var(--ui-icon-button-border, var(--_tone-outline-border));
|
|
4108
4139
|
background-color: var(--ui-icon-button-outline-surface, transparent);
|
|
4109
|
-
background-image:
|
|
4110
|
-
linear-gradient(var(--_outline-wash), var(--_outline-wash)),
|
|
4111
|
-
var(--_outline-highlight);
|
|
4140
|
+
background-image: linear-gradient(var(--_outline-wash), var(--_outline-wash));
|
|
4112
4141
|
}
|
|
4113
4142
|
:scope[data-appearance="outline"]:not([data-tone="neutral"]):hover:enabled:not([aria-disabled="true"]):where([data-hn-ui-icon-button]) {
|
|
4114
4143
|
--_outline-wash: var(--_tone-wash-hover);
|
|
@@ -4124,9 +4153,7 @@ html[data-ui-input-modality="touch"] :scope:where([data-hn-ui-icon-button])::aft
|
|
|
4124
4153
|
:scope[data-tone="neutral"][data-appearance="outline"]:hover:enabled:not([aria-disabled="true"]):where([data-hn-ui-icon-button]) {
|
|
4125
4154
|
background-color: var(--ui-icon-button-hover-surface, transparent);
|
|
4126
4155
|
--_outline-wash: var(--ui-neutral-wash-hover);
|
|
4127
|
-
background-image:
|
|
4128
|
-
linear-gradient(var(--_outline-wash), var(--_outline-wash)),
|
|
4129
|
-
var(--ui-surface-highlight, linear-gradient(transparent, transparent));
|
|
4156
|
+
background-image: linear-gradient(var(--_outline-wash), var(--_outline-wash));
|
|
4130
4157
|
}
|
|
4131
4158
|
:scope[data-tone="neutral"][data-appearance="outline"]:active:enabled:not([aria-disabled="true"]):where([data-hn-ui-icon-button]) {
|
|
4132
4159
|
background-color: var(--ui-icon-button-active-surface, var(--ui-neutral-active));
|
|
@@ -11868,6 +11895,27 @@ to {
|
|
|
11868
11895
|
min-inline-size: 0;
|
|
11869
11896
|
flex: 1;
|
|
11870
11897
|
}
|
|
11898
|
+
.title.scroll-title:where([data-hn-ui-top-bar]) {
|
|
11899
|
+
overflow: hidden;
|
|
11900
|
+
white-space: nowrap;
|
|
11901
|
+
text-overflow: ellipsis;
|
|
11902
|
+
opacity: 1;
|
|
11903
|
+
transform: translateY(0);
|
|
11904
|
+
transition:
|
|
11905
|
+
opacity var(--ui-motion-fast) var(--ui-motion-ease),
|
|
11906
|
+
transform var(--ui-motion-fast) var(--ui-motion-ease);
|
|
11907
|
+
}
|
|
11908
|
+
.title.scroll-title.concealed:where([data-hn-ui-top-bar]) {
|
|
11909
|
+
opacity: 0;
|
|
11910
|
+
transform: translateY(var(--ui-space-2));
|
|
11911
|
+
pointer-events: none;
|
|
11912
|
+
}
|
|
11913
|
+
@media (prefers-reduced-motion: reduce) {
|
|
11914
|
+
.title.scroll-title:where([data-hn-ui-top-bar]),.title.scroll-title.concealed:where([data-hn-ui-top-bar]) {
|
|
11915
|
+
transition: none;
|
|
11916
|
+
transform: none;
|
|
11917
|
+
}
|
|
11918
|
+
}
|
|
11871
11919
|
.leading:empty:where([data-hn-ui-top-bar]),.search:empty:where([data-hn-ui-top-bar]),.actions:empty:where([data-hn-ui-top-bar]) {
|
|
11872
11920
|
display: none !important;
|
|
11873
11921
|
}
|
|
@@ -13949,14 +13997,11 @@ html[data-ui-input-modality="touch"]
|
|
|
13949
13997
|
}
|
|
13950
13998
|
|
|
13951
13999
|
:scope:where([data-component~="ui-button"])[data-appearance="outline"]:not([data-tone="neutral"]) {
|
|
13952
|
-
--_outline-highlight: var(--ui-surface-highlight, linear-gradient(transparent, transparent));
|
|
13953
14000
|
--_outline-wash: var(--_tone-wash);
|
|
13954
14001
|
border-color: var(--ui-button-border, var(--_tone-outline-border, var(--_tone-text)));
|
|
13955
14002
|
background-color: var(--ui-button-surface, transparent);
|
|
13956
14003
|
box-shadow: var(--ui-button-shadow, var(--ui-neutral-shadow));
|
|
13957
|
-
background-image:
|
|
13958
|
-
linear-gradient(var(--_outline-wash), var(--_outline-wash)),
|
|
13959
|
-
var(--_outline-highlight);
|
|
14004
|
+
background-image: linear-gradient(var(--_outline-wash), var(--_outline-wash));
|
|
13960
14005
|
}
|
|
13961
14006
|
|
|
13962
14007
|
:scope:where([data-component~="ui-button"])[data-appearance="outline"]:not([data-tone="neutral"]):hover:not(:disabled, [aria-disabled="true"]) {
|
|
@@ -14082,15 +14127,14 @@ html[data-ui-input-modality="touch"]
|
|
|
14082
14127
|
:scope:where([data-component~="ui-button"])[data-tone="neutral"][data-appearance="outline"] {
|
|
14083
14128
|
border-color: var(--ui-button-border, var(--ui-control-border));
|
|
14084
14129
|
background-color: var(--ui-button-surface, transparent);
|
|
14130
|
+
background-image: none;
|
|
14085
14131
|
box-shadow: var(--ui-button-shadow, var(--ui-neutral-shadow));
|
|
14086
14132
|
}
|
|
14087
14133
|
:scope:where([data-component~="ui-button"])[data-tone="neutral"][data-appearance="outline"]:hover:not(:disabled, [aria-disabled="true"]) {
|
|
14088
14134
|
border-color: var(--ui-button-hover-border, var(--ui-control-border-hover));
|
|
14089
14135
|
background-color: var(--ui-button-hover-surface, transparent);
|
|
14090
14136
|
--_outline-wash: var(--ui-neutral-wash-hover);
|
|
14091
|
-
background-image:
|
|
14092
|
-
linear-gradient(var(--_outline-wash), var(--_outline-wash)),
|
|
14093
|
-
var(--ui-surface-highlight, linear-gradient(transparent, transparent));
|
|
14137
|
+
background-image: linear-gradient(var(--_outline-wash), var(--_outline-wash));
|
|
14094
14138
|
}
|
|
14095
14139
|
:scope:where([data-component~="ui-button"])[data-tone="neutral"][data-appearance="outline"]:active:not(:disabled, [aria-disabled="true"]) {
|
|
14096
14140
|
background-image: none;
|
|
@@ -15030,7 +15074,7 @@ html[data-ui-input-modality="touch"]
|
|
|
15030
15074
|
:scope:where([data-component~="ui-icon-button"])[data-appearance="outline"] {
|
|
15031
15075
|
border-color: var(--ui-icon-button-border, var(--_icon-button-border, var(--ui-control-border, var(--ui-border-strong))));
|
|
15032
15076
|
background-color: var(--ui-icon-button-outline-surface, var(--_icon-button-outline-surface, var(--ui-surface-default)));
|
|
15033
|
-
background-image:
|
|
15077
|
+
background-image: none;
|
|
15034
15078
|
color: var(--ui-icon-button-outline-text, var(--_icon-button-text, var(--ui-text-primary)));
|
|
15035
15079
|
box-shadow: var(--ui-neutral-shadow);
|
|
15036
15080
|
}
|
|
@@ -15060,13 +15104,10 @@ html[data-ui-input-modality="touch"]
|
|
|
15060
15104
|
}
|
|
15061
15105
|
|
|
15062
15106
|
:scope:where([data-component~="ui-icon-button"])[data-appearance="outline"]:not([data-tone="neutral"]) {
|
|
15063
|
-
--_outline-highlight: var(--ui-surface-highlight, linear-gradient(transparent, transparent));
|
|
15064
15107
|
--_outline-wash: var(--_tone-wash);
|
|
15065
15108
|
border-color: var(--ui-icon-button-border, var(--_tone-outline-border));
|
|
15066
15109
|
background-color: var(--ui-icon-button-outline-surface, transparent);
|
|
15067
|
-
background-image:
|
|
15068
|
-
linear-gradient(var(--_outline-wash), var(--_outline-wash)),
|
|
15069
|
-
var(--_outline-highlight);
|
|
15110
|
+
background-image: linear-gradient(var(--_outline-wash), var(--_outline-wash));
|
|
15070
15111
|
}
|
|
15071
15112
|
|
|
15072
15113
|
:scope:where([data-component~="ui-icon-button"])[data-appearance="outline"]:not([data-tone="neutral"]):hover:enabled:not([aria-disabled="true"]) {
|
|
@@ -15081,9 +15122,7 @@ html[data-ui-input-modality="touch"]
|
|
|
15081
15122
|
:scope:where([data-component~="ui-icon-button"])[data-tone="neutral"][data-appearance="outline"]:hover:enabled:not([aria-disabled="true"]) {
|
|
15082
15123
|
background-color: var(--ui-icon-button-hover-surface, transparent);
|
|
15083
15124
|
--_outline-wash: var(--ui-neutral-wash-hover);
|
|
15084
|
-
background-image:
|
|
15085
|
-
linear-gradient(var(--_outline-wash), var(--_outline-wash)),
|
|
15086
|
-
var(--ui-surface-highlight, linear-gradient(transparent, transparent));
|
|
15125
|
+
background-image: linear-gradient(var(--_outline-wash), var(--_outline-wash));
|
|
15087
15126
|
}
|
|
15088
15127
|
:scope:where([data-component~="ui-icon-button"])[data-tone="neutral"][data-appearance="outline"]:active:enabled:not([aria-disabled="true"]) {
|
|
15089
15128
|
background-color: var(--ui-icon-button-active-surface, var(--ui-neutral-active));
|