@threadlabs/looma 0.47.2 → 0.47.4

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.
@@ -0,0 +1,25 @@
1
+ // Generated by HTML Next 1.0.0-alpha.69 for Vanilla DOM. Do not edit.
2
+ export interface UiCardGroupEventMap {
3
+ }
4
+ export interface UiCardGroupElement extends HTMLDivElement {
5
+ addEventListener<K extends keyof UiCardGroupEventMap>(type: K, listener: (this: UiCardGroupElement, event: UiCardGroupEventMap[K]) => unknown, options?: boolean | AddEventListenerOptions): void;
6
+ addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: UiCardGroupElement, event: HTMLElementEventMap[K]) => unknown, options?: boolean | AddEventListenerOptions): void;
7
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
8
+ removeEventListener<K extends keyof UiCardGroupEventMap>(type: K, listener: (this: UiCardGroupElement, event: UiCardGroupEventMap[K]) => unknown, options?: boolean | EventListenerOptions): void;
9
+ removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: UiCardGroupElement, event: HTMLElementEventMap[K]) => unknown, options?: boolean | EventListenerOptions): void;
10
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
11
+ }
12
+ export interface UiCardGroupProps {
13
+ columns?: number | null;
14
+ gap?: "xs" | "s" | "m" | "l" | "xl" | null;
15
+ min?: "sm" | "md" | "lg" | null;
16
+ attributes?: Readonly<Record<string, string | number | boolean | null | undefined>>;
17
+ children?: readonly (string | Node)[];
18
+ slots?: Readonly<Record<string, readonly (string | Node)[]>>;
19
+ }
20
+ export declare function createUiCardGroup(props?: UiCardGroupProps): UiCardGroupElement;
21
+ declare global {
22
+ interface ComponentTagMap {
23
+ "ui-card-group": { element: UiCardGroupElement; props: Omit<UiCardGroupProps, "attributes" | "children" | "slots"> };
24
+ }
25
+ }
@@ -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
- default?: (props: typeof __VLS_1) => any;
5
+ header?: (props: typeof __VLS_1) => any;
6
6
  } & {
7
7
  default?: (props: typeof __VLS_3) => any;
8
8
  } & {
9
- default?: (props: typeof __VLS_5) => any;
9
+ actions?: (props: typeof __VLS_5) => any;
10
10
  } & {
11
- default?: (props: typeof __VLS_7) => any;
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
- display: flex !important;
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,2 @@
1
+ import { t as UiCardGroup_default } from "./chunks/UiCardGroup.js";
2
+ export { UiCardGroup_default as default };
@@ -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>
@@ -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
- --_entry-row: max(var(--ui-badge-min-block-size, 1.5rem), var(--_item-row));
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
- --_entry-row: max(var(--ui-badge-min-block-size, 1.5rem), var(--_item-row));
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(
@@ -291,7 +291,7 @@ useComponentHost(() => import('../components/ui-site-header/ui-site-header.js'),
291
291
  </template>
292
292
 
293
293
  <style scoped>
294
- /* Text shares a baseline inside one group; the group is centred beside any control height. */
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: baseline !important;
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: baseline !important;
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: baseline !important;
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: baseline !important;
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: baseline !important;
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: baseline !important;
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: baseline !important;
692
+ align-items: center !important;
689
693
  min-inline-size: 0;
690
694
  max-inline-size: none;
691
695
  margin: 0 !important;
@@ -361,6 +361,8 @@ useComponentHost(() => import('../components/ui-toast-region/ui-toast-region.js'
361
361
  display: grid !important;
362
362
  gap: var(--ui-space-2) !important;
363
363
  inline-size: min(24rem, calc(100vw - var(--ui-space-4) * 2));
364
+ /* Prevent fixed popover grid tracks from stretching in older WebKit. */
365
+ align-content: start !important;
364
366
  max-inline-size: 100%;
365
367
  box-sizing: border-box !important;
366
368
  margin: 0 !important;
@@ -505,6 +507,8 @@ useComponentHost(() => import('../components/ui-toast-region/ui-toast-region.js'
505
507
  display: grid !important;
506
508
  gap: var(--ui-space-2) !important;
507
509
  inline-size: min(24rem, calc(100vw - var(--ui-space-4) * 2));
510
+ /* Prevent fixed popover grid tracks from stretching in older WebKit. */
511
+ align-content: start !important;
508
512
  max-inline-size: 100%;
509
513
  box-sizing: border-box !important;
510
514
  margin: 0 !important;