@threadlabs/looma 0.46.3 → 0.46.5

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/docs/catalog.json CHANGED
@@ -463,7 +463,7 @@
463
463
  ],
464
464
  "schemaVersion": 1,
465
465
  "package": "@threadlabs/looma",
466
- "version": "0.46.3",
466
+ "version": "0.46.5",
467
467
  "groups": [
468
468
  {
469
469
  "id": "layout",
@@ -17985,7 +17985,7 @@
17985
17985
  "tag": "ui-site-header",
17986
17986
  "package": "@threadlabs/looma",
17987
17987
  "root": "header",
17988
- "description": "Supply brand, navigation, and optional actions once. Below the breakpoint, SiteHeader automatically puts the hamburger in the inline navigation's position beside the brand, with the same gap (mirrored in RTL). Optional actions stay at the trailing edge. It presents the same navigation in a full-height, scrollable drawer with a dark backdrop. It handles focus, Escape, outside press, link selection, and page scroll locking. Applications supply links and routing; no menu slot, duplicate links, IDs, or drawer wiring are needed. Before JavaScript, navigation remains available inline unless a custom native menu supplies its mobile navigation. Native custom menu controls remain usable before upgrade. Use TopBar for contextual application tools.",
17988
+ "description": "Supply brand, navigation, and optional actions once. Below the breakpoint, SiteHeader automatically puts the hamburger in the inline navigation's position beside the brand, with compact mobile spacing (mirrored in RTL). Optional actions stay at the trailing edge. It presents the same navigation in a full-height, scrollable drawer with a dark backdrop. It handles focus, Escape, outside press, link selection, and page scroll locking. Applications supply links and routing; no menu slot, duplicate links, IDs, or drawer wiring are needed. Before JavaScript, navigation remains available inline unless a custom native menu supplies its mobile navigation. Native custom menu controls remain usable before upgrade. Use TopBar for contextual application tools.",
17989
17989
  "designTokens": {
17990
17990
  "sources": [
17991
17991
  "packages/looma/src/components/ui-site-header/ui-site-header.html"
@@ -18261,7 +18261,7 @@
18261
18261
  "id": "@threadlabs/looma/ui-site-header/01-default",
18262
18262
  "name": "01-default",
18263
18263
  "title": "Site navigation",
18264
- "description": "A full-width header keeps its logo visible, places desktop navigation beside it, and puts search and account controls at the trailing edge. Below 64rem, the hamburger takes the inline navigation's position beside the logo, keeping the same gap. It opens the same navigation in a full-height, scrollable drawer with a dark backdrop. No menu trigger, duplicate links, IDs, or event wiring are needed. Pass actions individually so the header reserves their adjustable hit areas.",
18264
+ "description": "A full-width header keeps its logo visible, places desktop navigation beside it, and puts search and account controls at the trailing edge. Below 64rem, the hamburger takes the inline navigation's position beside the logo, using compact mobile spacing. It opens the same navigation in a full-height, scrollable drawer with a dark backdrop. No menu trigger, duplicate links, IDs, or event wiring are needed. Pass actions individually so the header reserves their adjustable hit areas.",
18265
18265
  "markup": "<ui-site-header>\n <a slot=\"brand\" href=\"#home\" aria-label=\"Folio home\"><ui-icon name=\"compass\"></ui-icon>Folio</a>\n <a slot=\"navigation\" href=\"#guide\" aria-current=\"page\">Guide</a>\n <a slot=\"navigation\" href=\"#components\">Components</a>\n <a slot=\"navigation\" href=\"#journal\">Journal</a>\n <ui-icon-button slot=\"actions\" id=\"site-header-search-trigger\" size=\"sm\" label=\"Search pages\"><ui-icon name=\"search\"></ui-icon></ui-icon-button>\n <ui-icon-button slot=\"actions\" id=\"site-header-account-trigger\" size=\"sm\" label=\"Account\"><ui-icon name=\"user-round\"></ui-icon></ui-icon-button>\n</ui-site-header>\n<ui-popover for=\"site-header-search-trigger\"><ui-form-field>\n <label slot=\"label\" for=\"site-header-search\">Search pages</label><ui-input id=\"site-header-search\" type=\"search\" placeholder=\"Find a page\"></ui-input>\n </ui-form-field></ui-popover>\n<ui-popover for=\"site-header-account-trigger\"><nav aria-label=\"Account\">\n <ui-stack gap=\"s\"><a href=\"#profile\">Your profile</a><a href=\"#settings\">Settings</a></ui-stack>\n </nav></ui-popover>",
18266
18266
  "resizable": false,
18267
18267
  "bindings": "",
@@ -528,7 +528,7 @@ var displayText = (node, references) => {
528
528
  if (node.type === "mention") return `@${references[`mention:${node.attrs?.id}`]?.label ?? string(node.attrs?.label, string(node.attrs?.id))}`;
529
529
  return node.text ?? (node.content ?? []).map((child) => displayText(child, references)).join("");
530
530
  };
531
- function headingsOf(document, references) {
531
+ function headingsOf(document, references, includeNavigation = false) {
532
532
  const headings = [];
533
533
  const visit = (node) => {
534
534
  if (node.type === "heading") headings.push({
@@ -536,16 +536,15 @@ function headingsOf(document, references) {
536
536
  text: displayText(node, references).trim(),
537
537
  id: node.attrs?.id ? string(node.attrs.id) : void 0
538
538
  });
539
- else if (node.type !== "loomaTableOfContents") for (const child of node.content ?? []) visit(child);
539
+ else if (includeNavigation || node.type !== "loomaTableOfContents") for (const child of node.content ?? []) visit(child);
540
540
  };
541
541
  visit(document);
542
542
  return headings;
543
543
  }
544
- function tocBody(headings, depth, ordered) {
545
- const ids = assignLoomaHeadingIds(headings);
544
+ function tocBody(headings, depth, ordered, ids) {
546
545
  const roots = [];
547
546
  const stack = [];
548
- headings.forEach((heading, index) => {
547
+ headings.forEach((heading) => {
549
548
  const level = Number(heading.node.attrs?.level ?? 1);
550
549
  if (level > depth || !heading.text) return;
551
550
  while (stack.length && stack[stack.length - 1].level >= level) stack.pop();
@@ -555,7 +554,7 @@ function tocBody(headings, depth, ordered) {
555
554
  type: "paragraph",
556
555
  children: [{
557
556
  type: "link",
558
- url: `#${ids[index]}`,
557
+ url: `#${ids.get(heading.node)}`,
559
558
  value: heading.text,
560
559
  attributes: {
561
560
  target: "_self",
@@ -705,7 +704,7 @@ function toBareNode(node, path, context) {
705
704
  case "paragraph": return plain("paragraph");
706
705
  case "heading": return plain("heading", ["level", "id"], {
707
706
  level: Number(attrs.level ?? 1),
708
- ...context.custom.has(node) ? { id: string(attrs.id) } : {}
707
+ ...context.headingIds.has(node) ? { id: context.headingIds.get(node) } : context.custom.has(node) ? { id: string(attrs.id) } : {}
709
708
  });
710
709
  case "blockquote": return block("blockquote");
711
710
  case "horizontalRule":
@@ -956,7 +955,7 @@ function toBareNode(node, path, context) {
956
955
  depth: String(depth),
957
956
  format
958
957
  },
959
- body: node.content?.length ? blocks() : tocBody(context.headings, depth, format === "numbered")
958
+ body: node.content?.length ? blocks() : tocBody(context.headings, depth, format === "numbered", context.headingIds)
960
959
  };
961
960
  }
962
961
  default: return fail(path, `node ${node.type ?? "unknown"}`);
@@ -1021,20 +1020,24 @@ function editorDocumentToExpressmark(document, options = {}) {
1021
1020
  visit(document);
1022
1021
  const references = options.references ?? {};
1023
1022
  const headings = headingsOf(document, references);
1023
+ const anchored = options.tableOfContents === "entries" ? headingsOf(document, references, true) : [];
1024
1024
  const authored = /* @__PURE__ */ new Set();
1025
- for (const { id } of headings) {
1025
+ for (const { id } of options.tableOfContents === "entries" ? anchored : headings) {
1026
1026
  if (id && authored.has(id)) options.onDiagnostic?.({
1027
1027
  code: "duplicate-id",
1028
1028
  severity: "warning",
1029
- message: `Authored heading ID "${id}" is repeated and was preserved.`
1029
+ message: options.tableOfContents === "entries" ? `Authored heading ID "${id}" is repeated; portable output assigns a unique anchor.` : `Authored heading ID "${id}" is repeated and was preserved.`
1030
1030
  });
1031
1031
  if (id) authored.add(id);
1032
1032
  }
1033
+ const ids = assignLoomaHeadingIds(anchored);
1034
+ const headingIds = new WeakMap(anchored.map((heading, index) => [heading.node, ids[index]]));
1033
1035
  const context = {
1034
1036
  custom: customHeadings(headings),
1035
1037
  definitions,
1036
1038
  references,
1037
1039
  headings,
1040
+ headingIds,
1038
1041
  tableOfContents: options.tableOfContents
1039
1042
  };
1040
1043
  return {
@@ -1551,7 +1554,8 @@ function keepAuthored(source, edited, options) {
1551
1554
  const found = keys.findIndex((key, block) => block > used && key.length > 0 && key.every((value, at) => current[index + at] === value));
1552
1555
  if (found >= 0) {
1553
1556
  const original = source.body[found];
1554
- body.push(options.tableOfContents === "entries" && original.type === "leaf" && original.subType === "toc" ? edited.body[index] : original);
1557
+ if (options.tableOfContents === "entries" && findNode(original, (node) => node.type === "heading" || node.type === "leaf" && node.subType === "toc")) body.push(...edited.body.slice(index, index + keys[found].length).map((node) => respell(node, original)));
1558
+ else body.push(original);
1555
1559
  index += keys[found].length;
1556
1560
  used = found;
1557
1561
  continue;
@@ -1569,6 +1573,7 @@ function keepAuthored(source, edited, options) {
1569
1573
  * Writes an editor document using Expressmark's shared parser/writer and safe HTML policy.
1570
1574
  * @contract With `original`, an unedited document is written back byte for byte, and an edit
1571
1575
  * leaves the source of every other block, the front matter and the spacing between them alone.
1576
+ * Portable entries deliberately expand placeholders and pin heading IDs even with `original`.
1572
1577
  * @failure Unsupported editor data raises EditorMarkdownConversionError before any input is changed.
1573
1578
  */
1574
1579
  function editorDocumentToMarkdown(document, options = {}) {
@@ -4,7 +4,7 @@ import { type LoomaReferenceMap } from "./reference-display.js";
4
4
  /** Conversion-time display snapshot, independent from the authored editor document. */
5
5
  export interface EditorMarkdownConversionOptions extends ConversionOptions {
6
6
  references?: LoomaReferenceMap;
7
- /** Write current links for portable exports; authored navigation is always preserved. Defaults to a reader-built placeholder. */
7
+ /** Write current links and stable heading IDs for portable exports; authored navigation is preserved. Defaults to a reader-built placeholder. */
8
8
  tableOfContents?: "placeholder" | "entries";
9
9
  /**
10
10
  * The Markdown the document was read from. Its front matter, every block the editor left
@@ -39,6 +39,7 @@ export declare function expressmarkToEditorDocument(document: Document): JSONCon
39
39
  * Writes an editor document using Expressmark's shared parser/writer and safe HTML policy.
40
40
  * @contract With `original`, an unedited document is written back byte for byte, and an edit
41
41
  * leaves the source of every other block, the front matter and the spacing between them alone.
42
+ * Portable entries deliberately expand placeholders and pin heading IDs even with `original`.
42
43
  * @failure Unsupported editor data raises EditorMarkdownConversionError before any input is changed.
43
44
  */
44
45
  export declare function editorDocumentToMarkdown(document: JSONContent, options?: EditorMarkdownConversionOptions): string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@threadlabs/looma",
3
- "version": "0.46.3",
3
+ "version": "0.46.5",
4
4
  "type": "module",
5
5
  "description": "Looma components as HTML, Vue, and plain DOM, with design tokens.",
6
6
  "license": "MIT",
@@ -97,10 +97,13 @@
97
97
  color: inherit;
98
98
  }
99
99
  :scope:where([data-component~="ui-site-header"])[data-ui-site-header-state~="drawer"] .inline-navigation,
100
- .navigation-panel:not([open]), .menu, .panel-heading {
100
+ .navigation-panel:not([open]),
101
+ .menu,
102
+ .panel-heading {
101
103
  display: none !important;
102
104
  }
103
105
  :scope:where([data-component~="ui-site-header"])[data-ui-site-header-state~="drawer"] .identity {
106
+ column-gap: var(--ui-space-2) !important;
104
107
  flex-wrap: nowrap !important;
105
108
  align-items: center !important;
106
109
  }
@@ -112,22 +115,52 @@
112
115
  }
113
116
  /* Authored native sidebar triggers remain usable before JavaScript upgrades the header. */
114
117
  @media (width < 40rem) {
115
- :scope:where([data-component~="ui-site-header"])[data-ui-site-header-state~="breakpoint=sm"]:not([data-ui-site-header-state~="enhanced"]):has(.custom-menu:not(:empty)) .identity { flex-wrap: nowrap !important; align-items: center !important; }
116
- :scope:where([data-component~="ui-site-header"])[data-ui-site-header-state~="breakpoint=sm"]:not([data-ui-site-header-state~="enhanced"]):has(.custom-menu:not(:empty)) .brand { flex: 1 1 0; }
117
- :scope:where([data-component~="ui-site-header"])[data-ui-site-header-state~="breakpoint=sm"]:not([data-ui-site-header-state~="enhanced"]):has(.custom-menu:not(:empty)) .menu { display: grid !important; grid-template-columns: minmax(max-content, var(--ui-control-min-block-size)) !important; justify-items: center !important; flex: none; }
118
- :scope:where([data-component~="ui-site-header"])[data-ui-site-header-state~="breakpoint=sm"]:not([data-ui-site-header-state~="enhanced"]):has(.custom-menu:not(:empty)) .inline-navigation { display: none !important; }
118
+ :scope:where([data-component~="ui-site-header"])[data-ui-site-header-state~="breakpoint=sm"]:not([data-ui-site-header-state~="enhanced"]):has(.custom-menu:not(:empty)) .identity {
119
+ flex-wrap: nowrap !important;
120
+ align-items: center !important;
121
+ column-gap: var(--ui-space-2) !important;
122
+ }
123
+ :scope:where([data-component~="ui-site-header"])[data-ui-site-header-state~="breakpoint=sm"]:not([data-ui-site-header-state~="enhanced"]):has(.custom-menu:not(:empty)) .menu {
124
+ display: grid !important;
125
+ grid-template-columns: minmax(max-content, var(--ui-control-min-block-size)) !important;
126
+ justify-items: center !important;
127
+ flex: none;
128
+ }
129
+ :scope:where([data-component~="ui-site-header"])[data-ui-site-header-state~="breakpoint=sm"]:not([data-ui-site-header-state~="enhanced"]):has(.custom-menu:not(:empty)) .inline-navigation {
130
+ display: none !important;
131
+ }
119
132
  }
120
133
  @media (width < 48rem) {
121
- :scope:where([data-component~="ui-site-header"])[data-ui-site-header-state~="breakpoint=md"]:not([data-ui-site-header-state~="enhanced"]):has(.custom-menu:not(:empty)) .identity { flex-wrap: nowrap !important; align-items: center !important; }
122
- :scope:where([data-component~="ui-site-header"])[data-ui-site-header-state~="breakpoint=md"]:not([data-ui-site-header-state~="enhanced"]):has(.custom-menu:not(:empty)) .brand { flex: 1 1 0; }
123
- :scope:where([data-component~="ui-site-header"])[data-ui-site-header-state~="breakpoint=md"]:not([data-ui-site-header-state~="enhanced"]):has(.custom-menu:not(:empty)) .menu { display: grid !important; grid-template-columns: minmax(max-content, var(--ui-control-min-block-size)) !important; justify-items: center !important; flex: none; }
124
- :scope:where([data-component~="ui-site-header"])[data-ui-site-header-state~="breakpoint=md"]:not([data-ui-site-header-state~="enhanced"]):has(.custom-menu:not(:empty)) .inline-navigation { display: none !important; }
134
+ :scope:where([data-component~="ui-site-header"])[data-ui-site-header-state~="breakpoint=md"]:not([data-ui-site-header-state~="enhanced"]):has(.custom-menu:not(:empty)) .identity {
135
+ flex-wrap: nowrap !important;
136
+ align-items: center !important;
137
+ column-gap: var(--ui-space-2) !important;
138
+ }
139
+ :scope:where([data-component~="ui-site-header"])[data-ui-site-header-state~="breakpoint=md"]:not([data-ui-site-header-state~="enhanced"]):has(.custom-menu:not(:empty)) .menu {
140
+ display: grid !important;
141
+ grid-template-columns: minmax(max-content, var(--ui-control-min-block-size)) !important;
142
+ justify-items: center !important;
143
+ flex: none;
144
+ }
145
+ :scope:where([data-component~="ui-site-header"])[data-ui-site-header-state~="breakpoint=md"]:not([data-ui-site-header-state~="enhanced"]):has(.custom-menu:not(:empty)) .inline-navigation {
146
+ display: none !important;
147
+ }
125
148
  }
126
149
  @media (width < 64rem) {
127
- :scope:where([data-component~="ui-site-header"])[data-ui-site-header-state~="breakpoint=lg"]:not([data-ui-site-header-state~="enhanced"]):has(.custom-menu:not(:empty)) .identity { flex-wrap: nowrap !important; align-items: center !important; }
128
- :scope:where([data-component~="ui-site-header"])[data-ui-site-header-state~="breakpoint=lg"]:not([data-ui-site-header-state~="enhanced"]):has(.custom-menu:not(:empty)) .brand { flex: 1 1 0; }
129
- :scope:where([data-component~="ui-site-header"])[data-ui-site-header-state~="breakpoint=lg"]:not([data-ui-site-header-state~="enhanced"]):has(.custom-menu:not(:empty)) .menu { display: grid !important; grid-template-columns: minmax(max-content, var(--ui-control-min-block-size)) !important; justify-items: center !important; flex: none; }
130
- :scope:where([data-component~="ui-site-header"])[data-ui-site-header-state~="breakpoint=lg"]:not([data-ui-site-header-state~="enhanced"]):has(.custom-menu:not(:empty)) .inline-navigation { display: none !important; }
150
+ :scope:where([data-component~="ui-site-header"])[data-ui-site-header-state~="breakpoint=lg"]:not([data-ui-site-header-state~="enhanced"]):has(.custom-menu:not(:empty)) .identity {
151
+ flex-wrap: nowrap !important;
152
+ align-items: center !important;
153
+ column-gap: var(--ui-space-2) !important;
154
+ }
155
+ :scope:where([data-component~="ui-site-header"])[data-ui-site-header-state~="breakpoint=lg"]:not([data-ui-site-header-state~="enhanced"]):has(.custom-menu:not(:empty)) .menu {
156
+ display: grid !important;
157
+ grid-template-columns: minmax(max-content, var(--ui-control-min-block-size)) !important;
158
+ justify-items: center !important;
159
+ flex: none;
160
+ }
161
+ :scope:where([data-component~="ui-site-header"])[data-ui-site-header-state~="breakpoint=lg"]:not([data-ui-site-header-state~="enhanced"]):has(.custom-menu:not(:empty)) .inline-navigation {
162
+ display: none !important;
163
+ }
131
164
  }
132
165
 
133
166
  .automatic-menu {
@@ -373,6 +406,7 @@
373
406
  display: none !important;
374
407
  }
375
408
  :where([data-component~="ui-site-header"])[data-ui-site-header-state~="drawer"] .identity:where(:scope, :not([data-component], [data-slotted]:not([data-slotted~="ui-site-header"]))) {
409
+ column-gap: var(--ui-space-2) !important;
376
410
  flex-wrap: nowrap !important;
377
411
  align-items: center !important;
378
412
  }
@@ -384,22 +418,52 @@
384
418
  }
385
419
  /* Authored native sidebar triggers remain usable before JavaScript upgrades the header. */
386
420
  @media (width < 40rem) {
387
- :where([data-component~="ui-site-header"])[data-ui-site-header-state~="breakpoint=sm"]:not([data-ui-site-header-state~="enhanced"]):has(.custom-menu:not(:empty)) .identity:where(:scope, :not([data-component], [data-slotted]:not([data-slotted~="ui-site-header"]))) { flex-wrap: nowrap !important; align-items: center !important; }
388
- :where([data-component~="ui-site-header"])[data-ui-site-header-state~="breakpoint=sm"]:not([data-ui-site-header-state~="enhanced"]):has(.custom-menu:not(:empty)) .brand:where(:scope, :not([data-component], [data-slotted]:not([data-slotted~="ui-site-header"]))) { flex: 1 1 0; }
389
- :where([data-component~="ui-site-header"])[data-ui-site-header-state~="breakpoint=sm"]:not([data-ui-site-header-state~="enhanced"]):has(.custom-menu:not(:empty)) .menu:where(:scope, :not([data-component], [data-slotted]:not([data-slotted~="ui-site-header"]))) { display: grid !important; grid-template-columns: minmax(max-content, var(--ui-control-min-block-size)) !important; justify-items: center !important; flex: none; }
390
- :where([data-component~="ui-site-header"])[data-ui-site-header-state~="breakpoint=sm"]:not([data-ui-site-header-state~="enhanced"]):has(.custom-menu:not(:empty)) .inline-navigation:where(:scope, :not([data-component], [data-slotted]:not([data-slotted~="ui-site-header"]))) { display: none !important; }
421
+ :where([data-component~="ui-site-header"])[data-ui-site-header-state~="breakpoint=sm"]:not([data-ui-site-header-state~="enhanced"]):has(.custom-menu:not(:empty)) .identity:where(:scope, :not([data-component], [data-slotted]:not([data-slotted~="ui-site-header"]))) {
422
+ flex-wrap: nowrap !important;
423
+ align-items: center !important;
424
+ column-gap: var(--ui-space-2) !important;
425
+ }
426
+ :where([data-component~="ui-site-header"])[data-ui-site-header-state~="breakpoint=sm"]:not([data-ui-site-header-state~="enhanced"]):has(.custom-menu:not(:empty)) .menu:where(:scope, :not([data-component], [data-slotted]:not([data-slotted~="ui-site-header"]))) {
427
+ display: grid !important;
428
+ grid-template-columns: minmax(max-content, var(--ui-control-min-block-size)) !important;
429
+ justify-items: center !important;
430
+ flex: none;
431
+ }
432
+ :where([data-component~="ui-site-header"])[data-ui-site-header-state~="breakpoint=sm"]:not([data-ui-site-header-state~="enhanced"]):has(.custom-menu:not(:empty)) .inline-navigation:where(:scope, :not([data-component], [data-slotted]:not([data-slotted~="ui-site-header"]))) {
433
+ display: none !important;
434
+ }
391
435
  }
392
436
  @media (width < 48rem) {
393
- :where([data-component~="ui-site-header"])[data-ui-site-header-state~="breakpoint=md"]:not([data-ui-site-header-state~="enhanced"]):has(.custom-menu:not(:empty)) .identity:where(:scope, :not([data-component], [data-slotted]:not([data-slotted~="ui-site-header"]))) { flex-wrap: nowrap !important; align-items: center !important; }
394
- :where([data-component~="ui-site-header"])[data-ui-site-header-state~="breakpoint=md"]:not([data-ui-site-header-state~="enhanced"]):has(.custom-menu:not(:empty)) .brand:where(:scope, :not([data-component], [data-slotted]:not([data-slotted~="ui-site-header"]))) { flex: 1 1 0; }
395
- :where([data-component~="ui-site-header"])[data-ui-site-header-state~="breakpoint=md"]:not([data-ui-site-header-state~="enhanced"]):has(.custom-menu:not(:empty)) .menu:where(:scope, :not([data-component], [data-slotted]:not([data-slotted~="ui-site-header"]))) { display: grid !important; grid-template-columns: minmax(max-content, var(--ui-control-min-block-size)) !important; justify-items: center !important; flex: none; }
396
- :where([data-component~="ui-site-header"])[data-ui-site-header-state~="breakpoint=md"]:not([data-ui-site-header-state~="enhanced"]):has(.custom-menu:not(:empty)) .inline-navigation:where(:scope, :not([data-component], [data-slotted]:not([data-slotted~="ui-site-header"]))) { display: none !important; }
437
+ :where([data-component~="ui-site-header"])[data-ui-site-header-state~="breakpoint=md"]:not([data-ui-site-header-state~="enhanced"]):has(.custom-menu:not(:empty)) .identity:where(:scope, :not([data-component], [data-slotted]:not([data-slotted~="ui-site-header"]))) {
438
+ flex-wrap: nowrap !important;
439
+ align-items: center !important;
440
+ column-gap: var(--ui-space-2) !important;
441
+ }
442
+ :where([data-component~="ui-site-header"])[data-ui-site-header-state~="breakpoint=md"]:not([data-ui-site-header-state~="enhanced"]):has(.custom-menu:not(:empty)) .menu:where(:scope, :not([data-component], [data-slotted]:not([data-slotted~="ui-site-header"]))) {
443
+ display: grid !important;
444
+ grid-template-columns: minmax(max-content, var(--ui-control-min-block-size)) !important;
445
+ justify-items: center !important;
446
+ flex: none;
447
+ }
448
+ :where([data-component~="ui-site-header"])[data-ui-site-header-state~="breakpoint=md"]:not([data-ui-site-header-state~="enhanced"]):has(.custom-menu:not(:empty)) .inline-navigation:where(:scope, :not([data-component], [data-slotted]:not([data-slotted~="ui-site-header"]))) {
449
+ display: none !important;
450
+ }
397
451
  }
398
452
  @media (width < 64rem) {
399
- :where([data-component~="ui-site-header"])[data-ui-site-header-state~="breakpoint=lg"]:not([data-ui-site-header-state~="enhanced"]):has(.custom-menu:not(:empty)) .identity:where(:scope, :not([data-component], [data-slotted]:not([data-slotted~="ui-site-header"]))) { flex-wrap: nowrap !important; align-items: center !important; }
400
- :where([data-component~="ui-site-header"])[data-ui-site-header-state~="breakpoint=lg"]:not([data-ui-site-header-state~="enhanced"]):has(.custom-menu:not(:empty)) .brand:where(:scope, :not([data-component], [data-slotted]:not([data-slotted~="ui-site-header"]))) { flex: 1 1 0; }
401
- :where([data-component~="ui-site-header"])[data-ui-site-header-state~="breakpoint=lg"]:not([data-ui-site-header-state~="enhanced"]):has(.custom-menu:not(:empty)) .menu:where(:scope, :not([data-component], [data-slotted]:not([data-slotted~="ui-site-header"]))) { display: grid !important; grid-template-columns: minmax(max-content, var(--ui-control-min-block-size)) !important; justify-items: center !important; flex: none; }
402
- :where([data-component~="ui-site-header"])[data-ui-site-header-state~="breakpoint=lg"]:not([data-ui-site-header-state~="enhanced"]):has(.custom-menu:not(:empty)) .inline-navigation:where(:scope, :not([data-component], [data-slotted]:not([data-slotted~="ui-site-header"]))) { display: none !important; }
453
+ :where([data-component~="ui-site-header"])[data-ui-site-header-state~="breakpoint=lg"]:not([data-ui-site-header-state~="enhanced"]):has(.custom-menu:not(:empty)) .identity:where(:scope, :not([data-component], [data-slotted]:not([data-slotted~="ui-site-header"]))) {
454
+ flex-wrap: nowrap !important;
455
+ align-items: center !important;
456
+ column-gap: var(--ui-space-2) !important;
457
+ }
458
+ :where([data-component~="ui-site-header"])[data-ui-site-header-state~="breakpoint=lg"]:not([data-ui-site-header-state~="enhanced"]):has(.custom-menu:not(:empty)) .menu:where(:scope, :not([data-component], [data-slotted]:not([data-slotted~="ui-site-header"]))) {
459
+ display: grid !important;
460
+ grid-template-columns: minmax(max-content, var(--ui-control-min-block-size)) !important;
461
+ justify-items: center !important;
462
+ flex: none;
463
+ }
464
+ :where([data-component~="ui-site-header"])[data-ui-site-header-state~="breakpoint=lg"]:not([data-ui-site-header-state~="enhanced"]):has(.custom-menu:not(:empty)) .inline-navigation:where(:scope, :not([data-component], [data-slotted]:not([data-slotted~="ui-site-header"]))) {
465
+ display: none !important;
466
+ }
403
467
  }
404
468
 
405
469
  .automatic-menu:where(:scope, :scope *) {
@@ -3,7 +3,7 @@ import { attachGeneratedController, buildTemplate, toAttribute, toText, writeAtt
3
3
  import * as controller from "../components/ui-site-header/ui-site-header.js";
4
4
  import "../styles/ui-site-header.css";
5
5
 
6
- const T0 = ["",[],"\n ",["div",["class","identity"],"\n ",["div",["class","brand"],4],"\n ",["div",["class","menu"],"\n ",["div",["class","custom-menu"],4],"\n ",["div",["class","automatic-menu"],"\n ",["ui-icon-button",["size","sm","aria-haspopup","dialog","aria-expanded","false"],["ui-icon",["name","menu"]]],"\n "],"\n "],"\n ",["div",["class","inline-navigation"],["nav",["class","navigation"],4]],"\n ",["dialog",["class","navigation-panel"],"\n ",["div",["class","panel-heading"],"\n ",["span",["class","panel-title"],0],"\n ",["ui-icon-button",["size","sm"],["ui-icon",["name","x"]]],"\n "],"\n "],"\n "],"\n ",["div",["class","actions"],4],"\n "];
6
+ const T0 = ["",[],"\n ",["div",["class","identity"],"\n ",["div",["class","brand"],4],"\n ",["div",["class","menu"],"\n ",["div",["class","custom-menu"],4],"\n ",["div",["class","automatic-menu"],"\n ",["ui-icon-button",["size","sm","aria-haspopup","dialog","aria-expanded","false"],["ui-icon",["name","menu"]]],"\n "],"\n "],"\n ",["div",["class","inline-navigation"],"\n ",["nav",["class","navigation"],4],"\n "],"\n ",["dialog",["class","navigation-panel"],"\n ",["div",["class","panel-heading"],"\n ",["span",["class","panel-title"],0],"\n ",["ui-icon-button",["size","sm"],["ui-icon",["name","x"]]],"\n "],"\n "],"\n "],"\n ",["div",["class","actions"],4],"\n "];
7
7
  const T1 = ["",[]];
8
8
  const T2 = ["",[]];
9
9
  const T3 = ["",[]];
@@ -102,7 +102,7 @@ export function createUiSiteHeader(options = {}, html) {
102
102
  const t5 = t4.firstChild;
103
103
  const t6 = t4.nextSibling.nextSibling.firstChild.nextSibling;
104
104
  const t7 = t3.nextSibling.nextSibling;
105
- const t8 = t7.firstChild;
105
+ const t8 = t7.firstChild.nextSibling;
106
106
  const t9 = t8.firstChild;
107
107
  const t10 = t7.nextSibling.nextSibling;
108
108
  const t11 = t10.firstChild.nextSibling;
@@ -414,6 +414,7 @@ useComponentHost(() => import('../components/ui-site-header/ui-site-header.js'),
414
414
  display: none !important;
415
415
  }
416
416
  :global(:scope[data-ui-site-header-state~="drawer"] .identity:where([data-hn-ui-site-header])) {
417
+ column-gap: var(--ui-space-2) !important;
417
418
  flex-wrap: nowrap !important;
418
419
  align-items: center !important;
419
420
  }
@@ -429,10 +430,7 @@ useComponentHost(() => import('../components/ui-site-header/ui-site-header.js'),
429
430
  .identity:where([data-hn-ui-site-header])) {
430
431
  flex-wrap: nowrap !important;
431
432
  align-items: center !important;
432
- }
433
- :global(:scope[data-ui-site-header-state~="breakpoint=sm"]:not([data-ui-site-header-state~="enhanced"]):has(.custom-menu:not(:empty))
434
- .brand:where([data-hn-ui-site-header])) {
435
- flex: 1 1 0;
433
+ column-gap: var(--ui-space-2) !important;
436
434
  }
437
435
  :global(:scope[data-ui-site-header-state~="breakpoint=sm"]:not([data-ui-site-header-state~="enhanced"]):has(.custom-menu:not(:empty))
438
436
  .menu:where([data-hn-ui-site-header])) {
@@ -451,10 +449,7 @@ useComponentHost(() => import('../components/ui-site-header/ui-site-header.js'),
451
449
  .identity:where([data-hn-ui-site-header])) {
452
450
  flex-wrap: nowrap !important;
453
451
  align-items: center !important;
454
- }
455
- :global(:scope[data-ui-site-header-state~="breakpoint=md"]:not([data-ui-site-header-state~="enhanced"]):has(.custom-menu:not(:empty))
456
- .brand:where([data-hn-ui-site-header])) {
457
- flex: 1 1 0;
452
+ column-gap: var(--ui-space-2) !important;
458
453
  }
459
454
  :global(:scope[data-ui-site-header-state~="breakpoint=md"]:not([data-ui-site-header-state~="enhanced"]):has(.custom-menu:not(:empty))
460
455
  .menu:where([data-hn-ui-site-header])) {
@@ -473,10 +468,7 @@ useComponentHost(() => import('../components/ui-site-header/ui-site-header.js'),
473
468
  .identity:where([data-hn-ui-site-header])) {
474
469
  flex-wrap: nowrap !important;
475
470
  align-items: center !important;
476
- }
477
- :global(:scope[data-ui-site-header-state~="breakpoint=lg"]:not([data-ui-site-header-state~="enhanced"]):has(.custom-menu:not(:empty))
478
- .brand:where([data-hn-ui-site-header])) {
479
- flex: 1 1 0;
471
+ column-gap: var(--ui-space-2) !important;
480
472
  }
481
473
  :global(:scope[data-ui-site-header-state~="breakpoint=lg"]:not([data-ui-site-header-state~="enhanced"]):has(.custom-menu:not(:empty))
482
474
  .menu:where([data-hn-ui-site-header])) {
@@ -711,6 +703,7 @@ useComponentHost(() => import('../components/ui-site-header/ui-site-header.js'),
711
703
  }
712
704
  :global(:where(.ui-site-header)[data-ui-site-header-state~="drawer"]
713
705
  .identity:where(:scope, :not([data-hn], [data-slotted]:not([data-slotted~="ui-site-header"]))):where([data-hn-ui-site-header])) {
706
+ column-gap: var(--ui-space-2) !important;
714
707
  flex-wrap: nowrap !important;
715
708
  align-items: center !important;
716
709
  }
@@ -726,10 +719,7 @@ useComponentHost(() => import('../components/ui-site-header/ui-site-header.js'),
726
719
  .identity:where(:scope, :not([data-hn], [data-slotted]:not([data-slotted~="ui-site-header"]))):where([data-hn-ui-site-header])) {
727
720
  flex-wrap: nowrap !important;
728
721
  align-items: center !important;
729
- }
730
- :global(:where(.ui-site-header)[data-ui-site-header-state~="breakpoint=sm"]:not([data-ui-site-header-state~="enhanced"]):has(.custom-menu:not(:empty))
731
- .brand:where(:scope, :not([data-hn], [data-slotted]:not([data-slotted~="ui-site-header"]))):where([data-hn-ui-site-header])) {
732
- flex: 1 1 0;
722
+ column-gap: var(--ui-space-2) !important;
733
723
  }
734
724
  :global(:where(.ui-site-header)[data-ui-site-header-state~="breakpoint=sm"]:not([data-ui-site-header-state~="enhanced"]):has(.custom-menu:not(:empty))
735
725
  .menu:where(:scope, :not([data-hn], [data-slotted]:not([data-slotted~="ui-site-header"]))):where([data-hn-ui-site-header])) {
@@ -748,10 +738,7 @@ useComponentHost(() => import('../components/ui-site-header/ui-site-header.js'),
748
738
  .identity:where(:scope, :not([data-hn], [data-slotted]:not([data-slotted~="ui-site-header"]))):where([data-hn-ui-site-header])) {
749
739
  flex-wrap: nowrap !important;
750
740
  align-items: center !important;
751
- }
752
- :global(:where(.ui-site-header)[data-ui-site-header-state~="breakpoint=md"]:not([data-ui-site-header-state~="enhanced"]):has(.custom-menu:not(:empty))
753
- .brand:where(:scope, :not([data-hn], [data-slotted]:not([data-slotted~="ui-site-header"]))):where([data-hn-ui-site-header])) {
754
- flex: 1 1 0;
741
+ column-gap: var(--ui-space-2) !important;
755
742
  }
756
743
  :global(:where(.ui-site-header)[data-ui-site-header-state~="breakpoint=md"]:not([data-ui-site-header-state~="enhanced"]):has(.custom-menu:not(:empty))
757
744
  .menu:where(:scope, :not([data-hn], [data-slotted]:not([data-slotted~="ui-site-header"]))):where([data-hn-ui-site-header])) {
@@ -770,10 +757,7 @@ useComponentHost(() => import('../components/ui-site-header/ui-site-header.js'),
770
757
  .identity:where(:scope, :not([data-hn], [data-slotted]:not([data-slotted~="ui-site-header"]))):where([data-hn-ui-site-header])) {
771
758
  flex-wrap: nowrap !important;
772
759
  align-items: center !important;
773
- }
774
- :global(:where(.ui-site-header)[data-ui-site-header-state~="breakpoint=lg"]:not([data-ui-site-header-state~="enhanced"]):has(.custom-menu:not(:empty))
775
- .brand:where(:scope, :not([data-hn], [data-slotted]:not([data-slotted~="ui-site-header"]))):where([data-hn-ui-site-header])) {
776
- flex: 1 1 0;
760
+ column-gap: var(--ui-space-2) !important;
777
761
  }
778
762
  :global(:where(.ui-site-header)[data-ui-site-header-state~="breakpoint=lg"]:not([data-ui-site-header-state~="enhanced"]):has(.custom-menu:not(:empty))
779
763
  .menu:where(:scope, :not([data-hn], [data-slotted]:not([data-slotted~="ui-site-header"]))):where([data-hn-ui-site-header])) {
@@ -330,6 +330,6 @@ var UiSiteHeader_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @_
330
330
  }]]);
331
331
  };
332
332
  }
333
- }), [["__scopeId", "data-v-3bb48d57"]]);
333
+ }), [["__scopeId", "data-v-6833d445"]]);
334
334
  //#endregion
335
335
  export { UiSiteHeader_default as t };
@@ -10190,6 +10190,7 @@ dialog:where([data-hn-ui-search-shell]) {
10190
10190
  display: none !important;
10191
10191
  }
10192
10192
  :scope[data-ui-site-header-state~="drawer"] .identity:where([data-hn-ui-site-header]) {
10193
+ column-gap: var(--ui-space-2) !important;
10193
10194
  flex-wrap: nowrap !important;
10194
10195
  align-items: center !important;
10195
10196
  }
@@ -10205,10 +10206,7 @@ dialog:where([data-hn-ui-search-shell]) {
10205
10206
  .identity:where([data-hn-ui-site-header]) {
10206
10207
  flex-wrap: nowrap !important;
10207
10208
  align-items: center !important;
10208
- }
10209
- :scope[data-ui-site-header-state~="breakpoint=sm"]:not([data-ui-site-header-state~="enhanced"]):has(.custom-menu:not(:empty))
10210
- .brand:where([data-hn-ui-site-header]) {
10211
- flex: 1 1 0;
10209
+ column-gap: var(--ui-space-2) !important;
10212
10210
  }
10213
10211
  :scope[data-ui-site-header-state~="breakpoint=sm"]:not([data-ui-site-header-state~="enhanced"]):has(.custom-menu:not(:empty))
10214
10212
  .menu:where([data-hn-ui-site-header]) {
@@ -10227,10 +10225,7 @@ dialog:where([data-hn-ui-search-shell]) {
10227
10225
  .identity:where([data-hn-ui-site-header]) {
10228
10226
  flex-wrap: nowrap !important;
10229
10227
  align-items: center !important;
10230
- }
10231
- :scope[data-ui-site-header-state~="breakpoint=md"]:not([data-ui-site-header-state~="enhanced"]):has(.custom-menu:not(:empty))
10232
- .brand:where([data-hn-ui-site-header]) {
10233
- flex: 1 1 0;
10228
+ column-gap: var(--ui-space-2) !important;
10234
10229
  }
10235
10230
  :scope[data-ui-site-header-state~="breakpoint=md"]:not([data-ui-site-header-state~="enhanced"]):has(.custom-menu:not(:empty))
10236
10231
  .menu:where([data-hn-ui-site-header]) {
@@ -10249,10 +10244,7 @@ dialog:where([data-hn-ui-search-shell]) {
10249
10244
  .identity:where([data-hn-ui-site-header]) {
10250
10245
  flex-wrap: nowrap !important;
10251
10246
  align-items: center !important;
10252
- }
10253
- :scope[data-ui-site-header-state~="breakpoint=lg"]:not([data-ui-site-header-state~="enhanced"]):has(.custom-menu:not(:empty))
10254
- .brand:where([data-hn-ui-site-header]) {
10255
- flex: 1 1 0;
10247
+ column-gap: var(--ui-space-2) !important;
10256
10248
  }
10257
10249
  :scope[data-ui-site-header-state~="breakpoint=lg"]:not([data-ui-site-header-state~="enhanced"]):has(.custom-menu:not(:empty))
10258
10250
  .menu:where([data-hn-ui-site-header]) {
@@ -10480,6 +10472,7 @@ dialog:where([data-hn-ui-search-shell]) {
10480
10472
  }
10481
10473
  :where(.ui-site-header)[data-ui-site-header-state~="drawer"]
10482
10474
  .identity:where(:scope, :not([data-hn], [data-slotted]:not([data-slotted~="ui-site-header"]))):where([data-hn-ui-site-header]) {
10475
+ column-gap: var(--ui-space-2) !important;
10483
10476
  flex-wrap: nowrap !important;
10484
10477
  align-items: center !important;
10485
10478
  }
@@ -10495,10 +10488,7 @@ dialog:where([data-hn-ui-search-shell]) {
10495
10488
  .identity:where(:scope, :not([data-hn], [data-slotted]:not([data-slotted~="ui-site-header"]))):where([data-hn-ui-site-header]) {
10496
10489
  flex-wrap: nowrap !important;
10497
10490
  align-items: center !important;
10498
- }
10499
- :where(.ui-site-header)[data-ui-site-header-state~="breakpoint=sm"]:not([data-ui-site-header-state~="enhanced"]):has(.custom-menu:not(:empty))
10500
- .brand:where(:scope, :not([data-hn], [data-slotted]:not([data-slotted~="ui-site-header"]))):where([data-hn-ui-site-header]) {
10501
- flex: 1 1 0;
10491
+ column-gap: var(--ui-space-2) !important;
10502
10492
  }
10503
10493
  :where(.ui-site-header)[data-ui-site-header-state~="breakpoint=sm"]:not([data-ui-site-header-state~="enhanced"]):has(.custom-menu:not(:empty))
10504
10494
  .menu:where(:scope, :not([data-hn], [data-slotted]:not([data-slotted~="ui-site-header"]))):where([data-hn-ui-site-header]) {
@@ -10517,10 +10507,7 @@ dialog:where([data-hn-ui-search-shell]) {
10517
10507
  .identity:where(:scope, :not([data-hn], [data-slotted]:not([data-slotted~="ui-site-header"]))):where([data-hn-ui-site-header]) {
10518
10508
  flex-wrap: nowrap !important;
10519
10509
  align-items: center !important;
10520
- }
10521
- :where(.ui-site-header)[data-ui-site-header-state~="breakpoint=md"]:not([data-ui-site-header-state~="enhanced"]):has(.custom-menu:not(:empty))
10522
- .brand:where(:scope, :not([data-hn], [data-slotted]:not([data-slotted~="ui-site-header"]))):where([data-hn-ui-site-header]) {
10523
- flex: 1 1 0;
10510
+ column-gap: var(--ui-space-2) !important;
10524
10511
  }
10525
10512
  :where(.ui-site-header)[data-ui-site-header-state~="breakpoint=md"]:not([data-ui-site-header-state~="enhanced"]):has(.custom-menu:not(:empty))
10526
10513
  .menu:where(:scope, :not([data-hn], [data-slotted]:not([data-slotted~="ui-site-header"]))):where([data-hn-ui-site-header]) {
@@ -10539,10 +10526,7 @@ dialog:where([data-hn-ui-search-shell]) {
10539
10526
  .identity:where(:scope, :not([data-hn], [data-slotted]:not([data-slotted~="ui-site-header"]))):where([data-hn-ui-site-header]) {
10540
10527
  flex-wrap: nowrap !important;
10541
10528
  align-items: center !important;
10542
- }
10543
- :where(.ui-site-header)[data-ui-site-header-state~="breakpoint=lg"]:not([data-ui-site-header-state~="enhanced"]):has(.custom-menu:not(:empty))
10544
- .brand:where(:scope, :not([data-hn], [data-slotted]:not([data-slotted~="ui-site-header"]))):where([data-hn-ui-site-header]) {
10545
- flex: 1 1 0;
10529
+ column-gap: var(--ui-space-2) !important;
10546
10530
  }
10547
10531
  :where(.ui-site-header)[data-ui-site-header-state~="breakpoint=lg"]:not([data-ui-site-header-state~="enhanced"]):has(.custom-menu:not(:empty))
10548
10532
  .menu:where(:scope, :not([data-hn], [data-slotted]:not([data-slotted~="ui-site-header"]))):where([data-hn-ui-site-header]) {