@threadlabs/looma 0.47.2 → 0.47.3
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-card/ui-card.html +39 -5
- package/components/ui-card-group/ui-card-group.html +29 -0
- package/components/ui-combobox/ui-combobox.html +2 -1
- package/components/ui-site-header/ui-site-header.html +7 -5
- package/dist/index.js +1 -1
- package/docs/catalog.json +131 -8
- package/package.json +1 -1
- package/styles/ui-card-group.css +41 -0
- package/styles/ui-card.css +19 -1
- package/styles/ui-combobox.css +4 -2
- package/styles/ui-site-header.css +14 -10
- package/vanilla/UiCard.js +148 -36
- package/vanilla/UiCardGroup.d.ts +25 -0
- package/vanilla/UiCardGroup.js +59 -0
- package/vanilla/index.js +1 -0
- package/vue/UiCard.d.ts +20 -4
- package/vue/UiCard.vue +31 -5
- package/vue/UiCardGroup.d.ts +41 -0
- package/vue/UiCardGroup.js +2 -0
- package/vue/UiCardGroup.vue +168 -0
- package/vue/UiCombobox.vue +4 -2
- package/vue/UiSiteHeader.vue +12 -8
- package/vue/chunks/UiCard.js +73 -9
- package/vue/chunks/UiCardGroup.js +153 -0
- package/vue/chunks/UiCombobox.js +1 -1
- package/vue/chunks/UiSiteHeader.js +1 -1
- package/vue/components.css +122 -71
- package/vue/index.d.ts +1 -0
- package/vue/index.js +3 -2
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
// Generated by HTML Next 1.0.0-alpha.69 for Vanilla DOM. Do not edit.
|
|
2
|
+
import { attachGeneratedController, buildTemplate, toAttribute, writeAttribute, dispose, formatOf, keywordFormat, acceptProps, manageProps, generatedInputs, project, fillSlot, checkFormat, checkInteger, defineComponent } from "@nextwebwg/html-next/generated-runtime";
|
|
3
|
+
import "../styles/ui-card-group.css";
|
|
4
|
+
|
|
5
|
+
const T0 = ["",[],"\n ",["ui-grid",[],4],"\n "];
|
|
6
|
+
const T1 = ["",[]];
|
|
7
|
+
let P0, P1;
|
|
8
|
+
const S = { n: [], t: [], f: import.meta.url, g: "ui-card-group", b: generatedInputs };
|
|
9
|
+
const D = { g: "ui-card-group", props: { "columns": { "required":false, c: checkInteger, t: "integer", j: 0, m: "i" }, "gap": { "required":false,"values":["xs","s","m","l","xl"],"default":"l", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "min": { "required":false,"values":["sm","md","lg"],"default":"lg", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] } } };
|
|
10
|
+
|
|
11
|
+
export function createUiCardGroup(options = {}, html) {
|
|
12
|
+
const { attributes = {}, children = [], slots = {}, ...componentProps } = options;
|
|
13
|
+
const element = document.createElement("div");
|
|
14
|
+
for (const [name, value] of Object.entries(attributes)) {
|
|
15
|
+
if (value === null || value === undefined || value === false) continue;
|
|
16
|
+
element.setAttribute(name, value === true ? "" : String(value));
|
|
17
|
+
}
|
|
18
|
+
element.setAttribute("data-component", "ui-card-group");
|
|
19
|
+
element.append((P0 ??= buildTemplate(T0)).cloneNode(true));
|
|
20
|
+
const v = [null, null, null];
|
|
21
|
+
const B = acceptProps(element, D, S.n, v, componentProps, [], html);
|
|
22
|
+
const m1 = (d) => {
|
|
23
|
+
const n = (P1 ??= buildTemplate(T1)).cloneNode(true);
|
|
24
|
+
const r = { n };
|
|
25
|
+
p1(r, -1, d);
|
|
26
|
+
return r;
|
|
27
|
+
};
|
|
28
|
+
const p1 = (r, c, d) => {
|
|
29
|
+
};
|
|
30
|
+
const p0 = (r, c, d) => {
|
|
31
|
+
if (c & 1073741826) {
|
|
32
|
+
const x0 = v[1];
|
|
33
|
+
const s0 = toAttribute(x0, "gap");
|
|
34
|
+
if (s0 !== r.v0) writeAttribute(r.a0, "gap", r.v0 = s0);
|
|
35
|
+
}
|
|
36
|
+
if (c & 1073741828) {
|
|
37
|
+
const x1 = v[2];
|
|
38
|
+
const s1 = toAttribute(x1, "min");
|
|
39
|
+
if (s1 !== r.v1) writeAttribute(r.a0, "min", r.v1 = s1);
|
|
40
|
+
}
|
|
41
|
+
if (c & 1) {
|
|
42
|
+
const x2 = v[0];
|
|
43
|
+
const s2 = toAttribute(x2, "columns");
|
|
44
|
+
if (s2 !== r.v2) writeAttribute(r.a0, "columns", r.v2 = s2);
|
|
45
|
+
}
|
|
46
|
+
if (r.f0 === undefined) { r.f0 = 1; const at = fillSlot(r.a1, r.e0, "", J, false, undefined, d);
|
|
47
|
+
if (Array.isArray(at)) (r.z ??= []).push(() => { at[0].l.delete(at[1]); dispose(at[1]); }); else if (at !== undefined) { r.b0 = m1(d); at.before(r.b0.n); } }
|
|
48
|
+
else if (r.b0 !== undefined) p1(r.b0, c, d);
|
|
49
|
+
};
|
|
50
|
+
const t0 = element.firstChild.nextSibling;
|
|
51
|
+
const t1 = t0.firstChild;
|
|
52
|
+
const R = { a0: t0, v0: null, v1: null, v2: null, a1: t1, e0: t1.nextSibling, b0: undefined, f0: undefined };
|
|
53
|
+
const I = { B };
|
|
54
|
+
const J = project(I, children, slots);
|
|
55
|
+
attachGeneratedController(element, S, v, ((c, d) => p0(R, c, d)), undefined, undefined, I);
|
|
56
|
+
manageProps(I);
|
|
57
|
+
return element;
|
|
58
|
+
}
|
|
59
|
+
defineComponent("ui-card-group", createUiCardGroup, ["columns","gap","min"]);
|
package/vanilla/index.js
CHANGED
|
@@ -8,6 +8,7 @@ export * from "./UiBreadcrumbs.js";
|
|
|
8
8
|
export * from "./UiButton.js";
|
|
9
9
|
export * from "./UiCallout.js";
|
|
10
10
|
export * from "./UiCard.js";
|
|
11
|
+
export * from "./UiCardGroup.js";
|
|
11
12
|
export * from "./UiCheckbox.js";
|
|
12
13
|
export * from "./UiCluster.js";
|
|
13
14
|
export * from "./UiColorPicker.js";
|
package/vue/UiCard.d.ts
CHANGED
|
@@ -1,14 +1,30 @@
|
|
|
1
1
|
import type { PropType } from 'vue';
|
|
2
2
|
import { type InputBindings } from './props.js';
|
|
3
|
-
declare var __VLS_1: {}, __VLS_3: {}, __VLS_5: {}, __VLS_7: {};
|
|
3
|
+
declare var __VLS_1: {}, __VLS_3: {}, __VLS_5: {}, __VLS_7: {}, __VLS_9: {}, __VLS_11: {}, __VLS_13: {}, __VLS_15: {}, __VLS_17: {}, __VLS_19: {}, __VLS_21: {}, __VLS_23: {};
|
|
4
4
|
type __VLS_Slots = {} & {
|
|
5
|
-
|
|
5
|
+
header?: (props: typeof __VLS_1) => any;
|
|
6
6
|
} & {
|
|
7
7
|
default?: (props: typeof __VLS_3) => any;
|
|
8
8
|
} & {
|
|
9
|
-
|
|
9
|
+
actions?: (props: typeof __VLS_5) => any;
|
|
10
10
|
} & {
|
|
11
|
-
|
|
11
|
+
header?: (props: typeof __VLS_7) => any;
|
|
12
|
+
} & {
|
|
13
|
+
default?: (props: typeof __VLS_9) => any;
|
|
14
|
+
} & {
|
|
15
|
+
actions?: (props: typeof __VLS_11) => any;
|
|
16
|
+
} & {
|
|
17
|
+
header?: (props: typeof __VLS_13) => any;
|
|
18
|
+
} & {
|
|
19
|
+
default?: (props: typeof __VLS_15) => any;
|
|
20
|
+
} & {
|
|
21
|
+
actions?: (props: typeof __VLS_17) => any;
|
|
22
|
+
} & {
|
|
23
|
+
header?: (props: typeof __VLS_19) => any;
|
|
24
|
+
} & {
|
|
25
|
+
default?: (props: typeof __VLS_21) => any;
|
|
26
|
+
} & {
|
|
27
|
+
actions?: (props: typeof __VLS_23) => any;
|
|
12
28
|
};
|
|
13
29
|
declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
14
30
|
as: {
|
package/vue/UiCard.vue
CHANGED
|
@@ -250,7 +250,9 @@ const hostState = computed(() =>
|
|
|
250
250
|
:data-ui-card-state="hostState || undefined"
|
|
251
251
|
ref="@html-next/root"
|
|
252
252
|
>
|
|
253
|
-
<slot
|
|
253
|
+
<div class="header" data-hn-ui-card><slot name="header" /></div>
|
|
254
|
+
<div class="content" data-hn-ui-card><slot /></div>
|
|
255
|
+
<div class="actions" data-hn-ui-card><slot name="actions" /></div>
|
|
254
256
|
</section>
|
|
255
257
|
<article
|
|
256
258
|
v-else-if="checkedProps.as === 'article'"
|
|
@@ -268,7 +270,9 @@ const hostState = computed(() =>
|
|
|
268
270
|
:data-ui-card-state="hostState || undefined"
|
|
269
271
|
ref="@html-next/root"
|
|
270
272
|
>
|
|
271
|
-
<slot
|
|
273
|
+
<div class="header" data-hn-ui-card><slot name="header" /></div>
|
|
274
|
+
<div class="content" data-hn-ui-card><slot /></div>
|
|
275
|
+
<div class="actions" data-hn-ui-card><slot name="actions" /></div>
|
|
272
276
|
</article>
|
|
273
277
|
<aside
|
|
274
278
|
v-else-if="checkedProps.as === 'aside'"
|
|
@@ -286,7 +290,9 @@ const hostState = computed(() =>
|
|
|
286
290
|
:data-ui-card-state="hostState || undefined"
|
|
287
291
|
ref="@html-next/root"
|
|
288
292
|
>
|
|
289
|
-
<slot
|
|
293
|
+
<div class="header" data-hn-ui-card><slot name="header" /></div>
|
|
294
|
+
<div class="content" data-hn-ui-card><slot /></div>
|
|
295
|
+
<div class="actions" data-hn-ui-card><slot name="actions" /></div>
|
|
290
296
|
</aside>
|
|
291
297
|
<div
|
|
292
298
|
v-else
|
|
@@ -304,7 +310,9 @@ const hostState = computed(() =>
|
|
|
304
310
|
:data-ui-card-state="hostState || undefined"
|
|
305
311
|
ref="@html-next/root"
|
|
306
312
|
>
|
|
307
|
-
<slot
|
|
313
|
+
<div class="header" data-hn-ui-card><slot name="header" /></div>
|
|
314
|
+
<div class="content" data-hn-ui-card><slot /></div>
|
|
315
|
+
<div class="actions" data-hn-ui-card><slot name="actions" /></div>
|
|
308
316
|
</div>
|
|
309
317
|
</template>
|
|
310
318
|
|
|
@@ -324,7 +332,11 @@ const hostState = computed(() =>
|
|
|
324
332
|
--_ui-selection-context-surface: initial;
|
|
325
333
|
--_ui-selection-context-border: initial;
|
|
326
334
|
--_ui-selection-context-text: initial;
|
|
327
|
-
|
|
335
|
+
--_ui-card-layout: var(--_ui-card-group-layout, flex);
|
|
336
|
+
--_ui-card-region-layout: var(--_ui-card-group-region-layout, contents);
|
|
337
|
+
display: var(--_ui-card-layout) !important;
|
|
338
|
+
grid-template-rows: var(--_ui-card-group-rows, none) !important;
|
|
339
|
+
grid-row: var(--_ui-card-group-span, auto) !important;
|
|
328
340
|
flex-direction: column !important;
|
|
329
341
|
gap: var(--ui-space-4) !important;
|
|
330
342
|
box-sizing: border-box !important;
|
|
@@ -336,6 +348,20 @@ const hostState = computed(() =>
|
|
|
336
348
|
color: var(--_ui-surface-text, var(--ui-text-primary));
|
|
337
349
|
}
|
|
338
350
|
|
|
351
|
+
:global(.header:where([data-hn-ui-card])),
|
|
352
|
+
:global(.content:where([data-hn-ui-card])),
|
|
353
|
+
:global(.actions:where([data-hn-ui-card])) {
|
|
354
|
+
display: var(--_ui-card-region-layout) !important;
|
|
355
|
+
flex-direction: column !important;
|
|
356
|
+
gap: inherit !important;
|
|
357
|
+
min-inline-size: 0;
|
|
358
|
+
/* Group context stops at this card; nested cards start a fresh layout. */
|
|
359
|
+
--_ui-card-group-layout: initial;
|
|
360
|
+
--_ui-card-group-rows: initial;
|
|
361
|
+
--_ui-card-group-span: initial;
|
|
362
|
+
--_ui-card-group-region-layout: initial;
|
|
363
|
+
}
|
|
364
|
+
|
|
339
365
|
:global(:scope[data-ui-card-state~="padding=xs"]:where([data-hn-ui-card])) {
|
|
340
366
|
gap: var(--ui-space-1) !important;
|
|
341
367
|
padding: var(--ui-space-2) !important;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import type { PropType } from 'vue';
|
|
2
|
+
import { type InputBindings } from './props.js';
|
|
3
|
+
declare var __VLS_7: {};
|
|
4
|
+
type __VLS_Slots = {} & {
|
|
5
|
+
default?: (props: typeof __VLS_7) => any;
|
|
6
|
+
};
|
|
7
|
+
declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
8
|
+
columns: {
|
|
9
|
+
type: PropType<number | null>;
|
|
10
|
+
};
|
|
11
|
+
gap: {
|
|
12
|
+
type: PropType<"xs" | "s" | "m" | "l" | "xl" | null>;
|
|
13
|
+
};
|
|
14
|
+
min: {
|
|
15
|
+
type: PropType<"sm" | "md" | "lg" | null>;
|
|
16
|
+
};
|
|
17
|
+
"\0htmlNextInputStatus": {
|
|
18
|
+
type: PropType<InputBindings>;
|
|
19
|
+
};
|
|
20
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
21
|
+
columns: {
|
|
22
|
+
type: PropType<number | null>;
|
|
23
|
+
};
|
|
24
|
+
gap: {
|
|
25
|
+
type: PropType<"xs" | "s" | "m" | "l" | "xl" | null>;
|
|
26
|
+
};
|
|
27
|
+
min: {
|
|
28
|
+
type: PropType<"sm" | "md" | "lg" | null>;
|
|
29
|
+
};
|
|
30
|
+
"\0htmlNextInputStatus": {
|
|
31
|
+
type: PropType<InputBindings>;
|
|
32
|
+
};
|
|
33
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
34
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
35
|
+
declare const _default: typeof __VLS_export;
|
|
36
|
+
export default _default;
|
|
37
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
38
|
+
new (): {
|
|
39
|
+
$slots: S;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
<!-- Generated by HTML Next 1.0.0-alpha.69 for Vue 3.5. Do not edit. -->
|
|
2
|
+
<script setup lang="ts">
|
|
3
|
+
import { computed, watchSyncEffect } from 'vue'
|
|
4
|
+
import type { PropType } from 'vue'
|
|
5
|
+
import { checkHydratedRoot, nativeAttrs, useReflectedProp } from './host'
|
|
6
|
+
import {
|
|
7
|
+
BINDING_INPUTS_PROP,
|
|
8
|
+
checkedProp,
|
|
9
|
+
checkPropInput,
|
|
10
|
+
type InputBindings,
|
|
11
|
+
READY_INPUT,
|
|
12
|
+
requireInputStatus,
|
|
13
|
+
UNRESOLVED_INPUT,
|
|
14
|
+
vPropValidity,
|
|
15
|
+
vuePropInputs,
|
|
16
|
+
} from './props'
|
|
17
|
+
import UiGrid from './UiGrid.vue'
|
|
18
|
+
|
|
19
|
+
defineOptions({ inheritAttrs: false })
|
|
20
|
+
|
|
21
|
+
const propValidityContract = {
|
|
22
|
+
props: {
|
|
23
|
+
columns: {
|
|
24
|
+
type: { kind: 'terminal', name: 'integer' },
|
|
25
|
+
required: false,
|
|
26
|
+
target: { attribute: 'columns' },
|
|
27
|
+
description:
|
|
28
|
+
'Maximum columns when there is room. Omit for no cap; cards wrap as the container narrows.',
|
|
29
|
+
},
|
|
30
|
+
gap: {
|
|
31
|
+
type: { kind: 'terminal', name: 'keyword' },
|
|
32
|
+
required: false,
|
|
33
|
+
target: { attribute: 'gap' },
|
|
34
|
+
description:
|
|
35
|
+
'Space between cards, using Grid’s spacing scale. Grid’s public --ui-grid-gap custom property also applies.',
|
|
36
|
+
values: ['xs', 's', 'm', 'l', 'xl'],
|
|
37
|
+
default: 'l',
|
|
38
|
+
},
|
|
39
|
+
min: {
|
|
40
|
+
type: { kind: 'terminal', name: 'keyword' },
|
|
41
|
+
required: false,
|
|
42
|
+
target: { attribute: 'min' },
|
|
43
|
+
description:
|
|
44
|
+
'Minimum card column width: sm is 12rem, md 16rem and lg 20rem. A narrower container still fits one column.',
|
|
45
|
+
values: ['sm', 'md', 'lg'],
|
|
46
|
+
default: 'lg',
|
|
47
|
+
},
|
|
48
|
+
},
|
|
49
|
+
} as const
|
|
50
|
+
const props = defineProps({
|
|
51
|
+
columns: { type: null as unknown as PropType<number | null> },
|
|
52
|
+
gap: { type: null as unknown as PropType<'xs' | 's' | 'm' | 'l' | 'xl' | null> },
|
|
53
|
+
min: { type: null as unknown as PropType<'sm' | 'md' | 'lg' | null> },
|
|
54
|
+
[BINDING_INPUTS_PROP]: { type: null as unknown as PropType<InputBindings> },
|
|
55
|
+
})
|
|
56
|
+
const acceptedProps: Record<string, unknown> = { columns: null, gap: 'l', min: 'lg' }
|
|
57
|
+
const inputTracking = vuePropInputs(
|
|
58
|
+
acceptedProps,
|
|
59
|
+
{ gap: 'l', min: 'lg' },
|
|
60
|
+
(name, value, source, values) => {
|
|
61
|
+
switch (name) {
|
|
62
|
+
case 'columns':
|
|
63
|
+
return checkPropInput(value, { kind: 'terminal', name: 'integer' }, true, true)
|
|
64
|
+
case 'gap':
|
|
65
|
+
return checkPropInput(value, { kind: 'terminal', name: 'keyword' }, true, true)
|
|
66
|
+
case 'min':
|
|
67
|
+
return checkPropInput(value, { kind: 'terminal', name: 'keyword' }, true, true)
|
|
68
|
+
default:
|
|
69
|
+
return { ok: false }
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
() => {
|
|
73
|
+
void checkedProps.value
|
|
74
|
+
},
|
|
75
|
+
)
|
|
76
|
+
const propInputs = inputTracking.inputs
|
|
77
|
+
const checkedProps = computed(() => {
|
|
78
|
+
void inputTracking.version.value
|
|
79
|
+
return ({
|
|
80
|
+
columns: propInputs.value<number | null>(
|
|
81
|
+
'columns',
|
|
82
|
+
props['columns'],
|
|
83
|
+
props[BINDING_INPUTS_PROP],
|
|
84
|
+
),
|
|
85
|
+
gap: propInputs.value<'xs' | 's' | 'm' | 'l' | 'xl' | null>(
|
|
86
|
+
'gap',
|
|
87
|
+
props['gap'],
|
|
88
|
+
props[BINDING_INPUTS_PROP],
|
|
89
|
+
) as 'xs' | 's' | 'm' | 'l' | 'xl',
|
|
90
|
+
min: propInputs.value<'sm' | 'md' | 'lg' | null>(
|
|
91
|
+
'min',
|
|
92
|
+
props['min'],
|
|
93
|
+
props[BINDING_INPUTS_PROP],
|
|
94
|
+
) as 'sm' | 'md' | 'lg',
|
|
95
|
+
})
|
|
96
|
+
})
|
|
97
|
+
const inputStatus = (name: string, handlesError: boolean) => {
|
|
98
|
+
void checkedProps.value
|
|
99
|
+
void inputTracking.version.value
|
|
100
|
+
return requireInputStatus(propInputs.status(name), handlesError)
|
|
101
|
+
}
|
|
102
|
+
void checkedProps.value
|
|
103
|
+
watchSyncEffect(() => {
|
|
104
|
+
void checkedProps.value
|
|
105
|
+
})
|
|
106
|
+
const reflectedProp = useReflectedProp()
|
|
107
|
+
|
|
108
|
+
checkHydratedRoot('div', 'ui-card-group')
|
|
109
|
+
</script>
|
|
110
|
+
|
|
111
|
+
<template>
|
|
112
|
+
<div
|
|
113
|
+
class="ui-card-group"
|
|
114
|
+
v-bind="nativeAttrs($attrs)"
|
|
115
|
+
data-hn
|
|
116
|
+
data-hn-ui-card-group
|
|
117
|
+
v-prop-validity="{ contract: propValidityContract, values: { ...props } }"
|
|
118
|
+
:data-ui-card-group-prop-columns="reflectedProp('columns', 'columns', checkedProps.columns, undefined, false)"
|
|
119
|
+
:data-ui-card-group-prop-gap="reflectedProp('gap', 'gap', checkedProps.gap, undefined, false)"
|
|
120
|
+
:data-ui-card-group-prop-min="reflectedProp('min', 'min', checkedProps.min, undefined, false)"
|
|
121
|
+
>
|
|
122
|
+
<UiGrid
|
|
123
|
+
class="ui-grid"
|
|
124
|
+
:gap="checkedProps.gap"
|
|
125
|
+
:min="checkedProps.min"
|
|
126
|
+
:columns="checkedProps.columns"
|
|
127
|
+
v-bind="{
|
|
128
|
+
[BINDING_INPUTS_PROP]: {
|
|
129
|
+
gap: () => ({ value: checkedProps.gap, status: inputStatus('gap', true) }),
|
|
130
|
+
min: () => ({ value: checkedProps.min, status: inputStatus('min', true) }),
|
|
131
|
+
columns: () => ({ value: checkedProps.columns, status: inputStatus('columns', true) }),
|
|
132
|
+
},
|
|
133
|
+
}"
|
|
134
|
+
><slot /></UiGrid>
|
|
135
|
+
</div>
|
|
136
|
+
</template>
|
|
137
|
+
|
|
138
|
+
<style scoped>
|
|
139
|
+
/* Grid owns columns and spacing; Card owns its surface and three aligned regions. */
|
|
140
|
+
@scope (.ui-card-group) to ([data-hn]) {
|
|
141
|
+
:global(:scope:where([data-hn-ui-card-group])) {
|
|
142
|
+
display: block !important;
|
|
143
|
+
min-inline-size: 0;
|
|
144
|
+
max-inline-size: 100%;
|
|
145
|
+
--_ui-card-group-layout: grid;
|
|
146
|
+
--_ui-card-group-rows: subgrid;
|
|
147
|
+
--_ui-card-group-span: span 3;
|
|
148
|
+
--_ui-card-group-region-layout: flex;
|
|
149
|
+
}
|
|
150
|
+
:global(:scope[hidden]:where([data-hn-ui-card-group])) {
|
|
151
|
+
display: none !important;
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
@scope ([data-slotted~="ui-card-group"]:not([data-hn])) to ([data-hn], [data-slotted]) {
|
|
155
|
+
:global(:where(.ui-card-group):where(:scope, :not([data-hn], [data-slotted]:not([data-slotted~="ui-card-group"]))):where([data-hn-ui-card-group])) {
|
|
156
|
+
display: block !important;
|
|
157
|
+
min-inline-size: 0;
|
|
158
|
+
max-inline-size: 100%;
|
|
159
|
+
--_ui-card-group-layout: grid;
|
|
160
|
+
--_ui-card-group-rows: subgrid;
|
|
161
|
+
--_ui-card-group-span: span 3;
|
|
162
|
+
--_ui-card-group-region-layout: flex;
|
|
163
|
+
}
|
|
164
|
+
:global(:where(.ui-card-group)[hidden]:where(:scope, :not([data-hn], [data-slotted]:not([data-slotted~="ui-card-group"]))):where([data-hn-ui-card-group])) {
|
|
165
|
+
display: none !important;
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
</style>
|
package/vue/UiCombobox.vue
CHANGED
|
@@ -2457,7 +2457,8 @@ useComponentHost(() => import('../components/ui-combobox/ui-combobox.js'), {
|
|
|
2457
2457
|
}
|
|
2458
2458
|
:global(:scope[data-ui-combobox-state~="multiple"]
|
|
2459
2459
|
.entry.multiline:where([data-hn-ui-combobox])) {
|
|
2460
|
-
|
|
2460
|
+
/* The field owns its nominal row size; nested badges keep their own sizing hooks. */
|
|
2461
|
+
--_entry-row: max(1.5rem, var(--_item-row));
|
|
2461
2462
|
flex-wrap: wrap !important;
|
|
2462
2463
|
align-content: flex-start !important;
|
|
2463
2464
|
max-block-size: calc(
|
|
@@ -2851,7 +2852,8 @@ useComponentHost(() => import('../components/ui-combobox/ui-combobox.js'), {
|
|
|
2851
2852
|
}
|
|
2852
2853
|
:global(:where(.ui-combobox)[data-ui-combobox-state~="multiple"]
|
|
2853
2854
|
.entry.multiline:where(:scope, :not([data-hn], [data-slotted]:not([data-slotted~="ui-combobox"]))):where([data-hn-ui-combobox])) {
|
|
2854
|
-
|
|
2855
|
+
/* The field owns its nominal row size; nested badges keep their own sizing hooks. */
|
|
2856
|
+
--_entry-row: max(1.5rem, var(--_item-row));
|
|
2855
2857
|
flex-wrap: wrap !important;
|
|
2856
2858
|
align-content: flex-start !important;
|
|
2857
2859
|
max-block-size: calc(
|
package/vue/UiSiteHeader.vue
CHANGED
|
@@ -291,7 +291,7 @@ useComponentHost(() => import('../components/ui-site-header/ui-site-header.js'),
|
|
|
291
291
|
</template>
|
|
292
292
|
|
|
293
293
|
<style scoped>
|
|
294
|
-
/*
|
|
294
|
+
/* Brand, navigation and actions centre their own containers, including mixed font sizes. */
|
|
295
295
|
/* One live navigation stays inline until its native mobile dialog opens. */
|
|
296
296
|
/* Authored native sidebar triggers remain usable before JavaScript upgrades the header. */
|
|
297
297
|
@scope (.ui-site-header) to ([data-hn]) {
|
|
@@ -331,18 +331,20 @@ useComponentHost(() => import('../components/ui-site-header/ui-site-header.js'),
|
|
|
331
331
|
display: flex !important;
|
|
332
332
|
flex: 1 1 0;
|
|
333
333
|
flex-wrap: wrap !important;
|
|
334
|
-
align-items:
|
|
334
|
+
align-items: center !important;
|
|
335
335
|
gap: var(--ui-space-2) var(--ui-space-6) !important;
|
|
336
336
|
min-inline-size: 0;
|
|
337
337
|
}
|
|
338
338
|
:global(.brand:where([data-hn-ui-site-header])) {
|
|
339
|
+
display: flex !important;
|
|
340
|
+
align-items: center !important;
|
|
339
341
|
min-inline-size: 0;
|
|
340
342
|
font-size: var(--ui-font-size-lg);
|
|
341
343
|
font-weight: var(--ui-font-bold);
|
|
342
344
|
}
|
|
343
345
|
:global(.brand > :where(:not([data-hn-ui-site-header])):is(a)) {
|
|
344
346
|
display: inline-flex !important;
|
|
345
|
-
align-items:
|
|
347
|
+
align-items: center !important;
|
|
346
348
|
gap: var(--ui-space-3) !important;
|
|
347
349
|
min-inline-size: 0;
|
|
348
350
|
max-inline-size: 100%;
|
|
@@ -352,7 +354,7 @@ useComponentHost(() => import('../components/ui-site-header/ui-site-header.js'),
|
|
|
352
354
|
:global(.navigation:where([data-hn-ui-site-header])) {
|
|
353
355
|
display: flex !important;
|
|
354
356
|
flex-wrap: wrap !important;
|
|
355
|
-
align-items:
|
|
357
|
+
align-items: center !important;
|
|
356
358
|
gap: var(--ui-space-2) var(--ui-space-5) !important;
|
|
357
359
|
min-inline-size: 0;
|
|
358
360
|
font-size: var(--ui-font-size-sm);
|
|
@@ -397,7 +399,7 @@ useComponentHost(() => import('../components/ui-site-header/ui-site-header.js'),
|
|
|
397
399
|
:global(.inline-navigation:where([data-hn-ui-site-header])) {
|
|
398
400
|
position: static;
|
|
399
401
|
display: flex !important;
|
|
400
|
-
align-items:
|
|
402
|
+
align-items: center !important;
|
|
401
403
|
min-inline-size: 0;
|
|
402
404
|
max-inline-size: none;
|
|
403
405
|
margin: 0 !important;
|
|
@@ -641,11 +643,13 @@ useComponentHost(() => import('../components/ui-site-header/ui-site-header.js'),
|
|
|
641
643
|
display: flex !important;
|
|
642
644
|
flex: 1 1 0;
|
|
643
645
|
flex-wrap: wrap !important;
|
|
644
|
-
align-items:
|
|
646
|
+
align-items: center !important;
|
|
645
647
|
gap: var(--ui-space-2) var(--ui-space-6) !important;
|
|
646
648
|
min-inline-size: 0;
|
|
647
649
|
}
|
|
648
650
|
:global(.brand:where(:scope, :scope *):where([data-hn-ui-site-header])) {
|
|
651
|
+
display: flex !important;
|
|
652
|
+
align-items: center !important;
|
|
649
653
|
min-inline-size: 0;
|
|
650
654
|
font-size: var(--ui-font-size-lg);
|
|
651
655
|
font-weight: var(--ui-font-bold);
|
|
@@ -653,7 +657,7 @@ useComponentHost(() => import('../components/ui-site-header/ui-site-header.js'),
|
|
|
653
657
|
:global(.navigation:where(:scope, :scope *):where([data-hn-ui-site-header])) {
|
|
654
658
|
display: flex !important;
|
|
655
659
|
flex-wrap: wrap !important;
|
|
656
|
-
align-items:
|
|
660
|
+
align-items: center !important;
|
|
657
661
|
gap: var(--ui-space-2) var(--ui-space-5) !important;
|
|
658
662
|
min-inline-size: 0;
|
|
659
663
|
font-size: var(--ui-font-size-sm);
|
|
@@ -685,7 +689,7 @@ useComponentHost(() => import('../components/ui-site-header/ui-site-header.js'),
|
|
|
685
689
|
:global(.inline-navigation:where(:scope, :scope *):where([data-hn-ui-site-header])) {
|
|
686
690
|
position: static;
|
|
687
691
|
display: flex !important;
|
|
688
|
-
align-items:
|
|
692
|
+
align-items: center !important;
|
|
689
693
|
min-inline-size: 0;
|
|
690
694
|
max-inline-size: none;
|
|
691
695
|
margin: 0 !important;
|
package/vue/chunks/UiCard.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { C as useReflectedProp, _ as nativeAttrs, a as checkHydratedRoot, t as _plugin_vue_export_helper_default, y as preserveRootFocus } from "./_plugin-vue_export-helper.js";
|
|
2
2
|
import { a as checkPropInput, g as vuePropInputs, h as vPropValidity, t as BINDING_INPUTS_PROP } from "./props.js";
|
|
3
|
-
import { computed, createElementBlock, defineComponent, mergeProps, openBlock, renderSlot, unref, useTemplateRef, watchSyncEffect, withDirectives } from "vue";
|
|
3
|
+
import { computed, createElementBlock, createElementVNode, defineComponent, mergeProps, openBlock, renderSlot, unref, useTemplateRef, watchSyncEffect, withDirectives } from "vue";
|
|
4
4
|
//#region .build/vue/UiCard.vue?vue&type=script&setup=true&lang.ts
|
|
5
5
|
var _hoisted_1 = [
|
|
6
6
|
"data-ui-card-prop-as",
|
|
@@ -11,7 +11,19 @@ var _hoisted_1 = [
|
|
|
11
11
|
"data-ui-card-prop-variant",
|
|
12
12
|
"data-ui-card-state"
|
|
13
13
|
];
|
|
14
|
-
var _hoisted_2 =
|
|
14
|
+
var _hoisted_2 = {
|
|
15
|
+
class: "header",
|
|
16
|
+
"data-hn-ui-card": ""
|
|
17
|
+
};
|
|
18
|
+
var _hoisted_3 = {
|
|
19
|
+
class: "content",
|
|
20
|
+
"data-hn-ui-card": ""
|
|
21
|
+
};
|
|
22
|
+
var _hoisted_4 = {
|
|
23
|
+
class: "actions",
|
|
24
|
+
"data-hn-ui-card": ""
|
|
25
|
+
};
|
|
26
|
+
var _hoisted_5 = [
|
|
15
27
|
"data-ui-card-prop-as",
|
|
16
28
|
"data-ui-card-prop-padding",
|
|
17
29
|
"data-ui-card-prop-size",
|
|
@@ -20,7 +32,19 @@ var _hoisted_2 = [
|
|
|
20
32
|
"data-ui-card-prop-variant",
|
|
21
33
|
"data-ui-card-state"
|
|
22
34
|
];
|
|
23
|
-
var
|
|
35
|
+
var _hoisted_6 = {
|
|
36
|
+
class: "header",
|
|
37
|
+
"data-hn-ui-card": ""
|
|
38
|
+
};
|
|
39
|
+
var _hoisted_7 = {
|
|
40
|
+
class: "content",
|
|
41
|
+
"data-hn-ui-card": ""
|
|
42
|
+
};
|
|
43
|
+
var _hoisted_8 = {
|
|
44
|
+
class: "actions",
|
|
45
|
+
"data-hn-ui-card": ""
|
|
46
|
+
};
|
|
47
|
+
var _hoisted_9 = [
|
|
24
48
|
"data-ui-card-prop-as",
|
|
25
49
|
"data-ui-card-prop-padding",
|
|
26
50
|
"data-ui-card-prop-size",
|
|
@@ -29,7 +53,19 @@ var _hoisted_3 = [
|
|
|
29
53
|
"data-ui-card-prop-variant",
|
|
30
54
|
"data-ui-card-state"
|
|
31
55
|
];
|
|
32
|
-
var
|
|
56
|
+
var _hoisted_10 = {
|
|
57
|
+
class: "header",
|
|
58
|
+
"data-hn-ui-card": ""
|
|
59
|
+
};
|
|
60
|
+
var _hoisted_11 = {
|
|
61
|
+
class: "content",
|
|
62
|
+
"data-hn-ui-card": ""
|
|
63
|
+
};
|
|
64
|
+
var _hoisted_12 = {
|
|
65
|
+
class: "actions",
|
|
66
|
+
"data-hn-ui-card": ""
|
|
67
|
+
};
|
|
68
|
+
var _hoisted_13 = [
|
|
33
69
|
"data-ui-card-prop-as",
|
|
34
70
|
"data-ui-card-prop-padding",
|
|
35
71
|
"data-ui-card-prop-size",
|
|
@@ -38,6 +74,18 @@ var _hoisted_4 = [
|
|
|
38
74
|
"data-ui-card-prop-variant",
|
|
39
75
|
"data-ui-card-state"
|
|
40
76
|
];
|
|
77
|
+
var _hoisted_14 = {
|
|
78
|
+
class: "header",
|
|
79
|
+
"data-hn-ui-card": ""
|
|
80
|
+
};
|
|
81
|
+
var _hoisted_15 = {
|
|
82
|
+
class: "content",
|
|
83
|
+
"data-hn-ui-card": ""
|
|
84
|
+
};
|
|
85
|
+
var _hoisted_16 = {
|
|
86
|
+
class: "actions",
|
|
87
|
+
"data-hn-ui-card": ""
|
|
88
|
+
};
|
|
41
89
|
//#endregion
|
|
42
90
|
//#region .build/vue/UiCard.vue
|
|
43
91
|
var UiCard_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
|
|
@@ -243,7 +291,11 @@ var UiCard_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE_
|
|
|
243
291
|
"data-ui-card-prop-variant": unref(reflectedProp)("variant", "variant", checkedProps.value.variant, void 0, false),
|
|
244
292
|
"data-ui-card-state": hostState.value || void 0,
|
|
245
293
|
ref: "@html-next/root"
|
|
246
|
-
}), [
|
|
294
|
+
}), [
|
|
295
|
+
createElementVNode("div", _hoisted_2, [renderSlot(_ctx.$slots, "header", {}, void 0, true)]),
|
|
296
|
+
createElementVNode("div", _hoisted_3, [renderSlot(_ctx.$slots, "default", {}, void 0, true)]),
|
|
297
|
+
createElementVNode("div", _hoisted_4, [renderSlot(_ctx.$slots, "actions", {}, void 0, true)])
|
|
298
|
+
], 16, _hoisted_1)), [[unref(vPropValidity), {
|
|
247
299
|
contract: propValidityContract,
|
|
248
300
|
values: { ...props }
|
|
249
301
|
}]]) : checkedProps.value.as === "article" ? withDirectives((openBlock(), createElementBlock("article", mergeProps({
|
|
@@ -260,7 +312,11 @@ var UiCard_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE_
|
|
|
260
312
|
"data-ui-card-prop-variant": unref(reflectedProp)("variant", "variant", checkedProps.value.variant, void 0, false),
|
|
261
313
|
"data-ui-card-state": hostState.value || void 0,
|
|
262
314
|
ref: "@html-next/root"
|
|
263
|
-
}), [
|
|
315
|
+
}), [
|
|
316
|
+
createElementVNode("div", _hoisted_6, [renderSlot(_ctx.$slots, "header", {}, void 0, true)]),
|
|
317
|
+
createElementVNode("div", _hoisted_7, [renderSlot(_ctx.$slots, "default", {}, void 0, true)]),
|
|
318
|
+
createElementVNode("div", _hoisted_8, [renderSlot(_ctx.$slots, "actions", {}, void 0, true)])
|
|
319
|
+
], 16, _hoisted_5)), [[unref(vPropValidity), {
|
|
264
320
|
contract: propValidityContract,
|
|
265
321
|
values: { ...props }
|
|
266
322
|
}]]) : checkedProps.value.as === "aside" ? withDirectives((openBlock(), createElementBlock("aside", mergeProps({
|
|
@@ -277,7 +333,11 @@ var UiCard_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE_
|
|
|
277
333
|
"data-ui-card-prop-variant": unref(reflectedProp)("variant", "variant", checkedProps.value.variant, void 0, false),
|
|
278
334
|
"data-ui-card-state": hostState.value || void 0,
|
|
279
335
|
ref: "@html-next/root"
|
|
280
|
-
}), [
|
|
336
|
+
}), [
|
|
337
|
+
createElementVNode("div", _hoisted_10, [renderSlot(_ctx.$slots, "header", {}, void 0, true)]),
|
|
338
|
+
createElementVNode("div", _hoisted_11, [renderSlot(_ctx.$slots, "default", {}, void 0, true)]),
|
|
339
|
+
createElementVNode("div", _hoisted_12, [renderSlot(_ctx.$slots, "actions", {}, void 0, true)])
|
|
340
|
+
], 16, _hoisted_9)), [[unref(vPropValidity), {
|
|
281
341
|
contract: propValidityContract,
|
|
282
342
|
values: { ...props }
|
|
283
343
|
}]]) : withDirectives((openBlock(), createElementBlock("div", mergeProps({
|
|
@@ -294,12 +354,16 @@ var UiCard_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE_
|
|
|
294
354
|
"data-ui-card-prop-variant": unref(reflectedProp)("variant", "variant", checkedProps.value.variant, void 0, false),
|
|
295
355
|
"data-ui-card-state": hostState.value || void 0,
|
|
296
356
|
ref: "@html-next/root"
|
|
297
|
-
}), [
|
|
357
|
+
}), [
|
|
358
|
+
createElementVNode("div", _hoisted_14, [renderSlot(_ctx.$slots, "header", {}, void 0, true)]),
|
|
359
|
+
createElementVNode("div", _hoisted_15, [renderSlot(_ctx.$slots, "default", {}, void 0, true)]),
|
|
360
|
+
createElementVNode("div", _hoisted_16, [renderSlot(_ctx.$slots, "actions", {}, void 0, true)])
|
|
361
|
+
], 16, _hoisted_13)), [[unref(vPropValidity), {
|
|
298
362
|
contract: propValidityContract,
|
|
299
363
|
values: { ...props }
|
|
300
364
|
}]]);
|
|
301
365
|
};
|
|
302
366
|
}
|
|
303
|
-
}), [["__scopeId", "data-v-
|
|
367
|
+
}), [["__scopeId", "data-v-54ed7533"]]);
|
|
304
368
|
//#endregion
|
|
305
369
|
export { UiCard_default as t };
|