@threadlabs/looma 0.44.6 → 0.45.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -876,6 +876,6 @@ var UiButton_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PUR
876
876
  }]]);
877
877
  };
878
878
  }
879
- }), [["__scopeId", "data-v-7cae6357"]]);
879
+ }), [["__scopeId", "data-v-3447d7a9"]]);
880
880
  //#endregion
881
881
  export { UiButton_default as t };
@@ -787,6 +787,20 @@ var UiIcon_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE_
787
787
  tag: "path",
788
788
  d: "M21 12a9 9 0 1 1-6.219-8.56"
789
789
  }],
790
+ menu: [
791
+ {
792
+ tag: "path",
793
+ d: "M4 5h16"
794
+ },
795
+ {
796
+ tag: "path",
797
+ d: "M4 12h16"
798
+ },
799
+ {
800
+ tag: "path",
801
+ d: "M4 19h16"
802
+ }
803
+ ],
790
804
  merge: [
791
805
  {
792
806
  tag: "path",
@@ -1342,6 +1356,6 @@ var UiIcon_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE_
1342
1356
  }]]);
1343
1357
  };
1344
1358
  }
1345
- }), [["__scopeId", "data-v-51a8f12d"]]);
1359
+ }), [["__scopeId", "data-v-405f1532"]]);
1346
1360
  //#endregion
1347
1361
  export { UiIcon_default as t };
@@ -464,6 +464,6 @@ var UiIconButton_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @_
464
464
  }]]);
465
465
  };
466
466
  }
467
- }), [["__scopeId", "data-v-f7af4fcd"]]);
467
+ }), [["__scopeId", "data-v-1d4c5c6b"]]);
468
468
  //#endregion
469
469
  export { UiIconButton_default as t };
@@ -1,6 +1,6 @@
1
- import { C as useReflectedProp, _ as nativeAttrs, a as checkHydratedRoot, t as _plugin_vue_export_helper_default } from "./_plugin-vue_export-helper.js";
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 { h as vuePropInputs, i as checkPropInput, m as vPropValidity, t as BINDING_INPUTS_PROP } from "./props.js";
3
- import { computed, createElementBlock, createElementVNode, createTextVNode, defineComponent, mergeProps, openBlock, renderSlot, toDisplayString, unref, watchSyncEffect, withDirectives } from "vue";
3
+ import { computed, createElementBlock, createElementVNode, createTextVNode, defineComponent, mergeProps, openBlock, renderSlot, toDisplayString, unref, useTemplateRef, watchSyncEffect, withDirectives } from "vue";
4
4
  //#region .build/vue/UiSection.vue?vue&type=script&setup=true&lang.ts
5
5
  var _hoisted_1 = [
6
6
  "data-ui-section-prop-heading",
@@ -8,24 +8,55 @@ var _hoisted_1 = [
8
8
  "data-ui-section-prop-variant",
9
9
  "data-ui-section-state"
10
10
  ];
11
- var _hoisted_2 = {
11
+ var _hoisted_2 = ["hidden"];
12
+ var _hoisted_3 = {
13
+ class: "heading",
14
+ "data-hn-ui-section": ""
15
+ };
16
+ var _hoisted_4 = {
12
17
  class: "head",
13
18
  "data-hn-ui-section": ""
14
19
  };
15
- var _hoisted_3 = {
20
+ var _hoisted_5 = {
16
21
  class: "copy",
17
22
  "data-hn-ui-section": ""
18
23
  };
19
- var _hoisted_4 = ["hidden"];
20
- var _hoisted_5 = {
24
+ var _hoisted_6 = {
21
25
  class: "description",
22
26
  "data-hn-ui-section": ""
23
27
  };
24
- var _hoisted_6 = {
28
+ var _hoisted_7 = {
25
29
  class: "actions",
26
30
  "data-hn-ui-section": ""
27
31
  };
28
- var _hoisted_7 = {
32
+ var _hoisted_8 = {
33
+ class: "body",
34
+ "data-hn-ui-section": ""
35
+ };
36
+ var _hoisted_9 = [
37
+ "data-ui-section-prop-heading",
38
+ "data-ui-section-prop-tone",
39
+ "data-ui-section-prop-variant",
40
+ "data-ui-section-state"
41
+ ];
42
+ var _hoisted_10 = {
43
+ class: "head",
44
+ "data-hn-ui-section": ""
45
+ };
46
+ var _hoisted_11 = {
47
+ class: "copy",
48
+ "data-hn-ui-section": ""
49
+ };
50
+ var _hoisted_12 = ["hidden"];
51
+ var _hoisted_13 = {
52
+ class: "description",
53
+ "data-hn-ui-section": ""
54
+ };
55
+ var _hoisted_14 = {
56
+ class: "actions",
57
+ "data-hn-ui-section": ""
58
+ };
59
+ var _hoisted_15 = {
29
60
  class: "body",
30
61
  "data-hn-ui-section": ""
31
62
  };
@@ -59,7 +90,7 @@ var UiSection_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PU
59
90
  },
60
91
  required: false,
61
92
  target: { attribute: "tone" },
62
- description: "danger marks a section of destructive actions (a danger zone): its heading and a card's border take the danger colour.",
93
+ description: "danger marks a section of destructive actions (a danger zone): its heading and a framed section's border take the danger colour.",
63
94
  values: ["neutral", "danger"],
64
95
  default: "neutral"
65
96
  },
@@ -70,11 +101,12 @@ var UiSection_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PU
70
101
  },
71
102
  required: false,
72
103
  target: { attribute: "variant" },
73
- description: "How the section is set apart. plain is a heading and content in the flow of the page; card sits it on a bordered surface, for a settings group; divided\n rules it off from the section before it, for a long form.",
104
+ description: "How the section is set apart. plain is a heading and content in the flow of the page; card sits it on a bordered surface, for a settings group; divided\n rules it off from the section before it, for a long form. fieldset joins the heading to a bordered frame using a native legend.",
74
105
  values: [
75
106
  "plain",
76
107
  "card",
77
- "divided"
108
+ "divided",
109
+ "fieldset"
78
110
  ],
79
111
  default: "plain"
80
112
  }
@@ -121,7 +153,9 @@ var UiSection_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PU
121
153
  checkedProps.value;
122
154
  });
123
155
  const reflectedProp = useReflectedProp();
124
- checkHydratedRoot("section", "ui-section");
156
+ const root = useTemplateRef("@html-next/root");
157
+ preserveRootFocus(root);
158
+ checkHydratedRoot(checkedProps.value.variant === "fieldset" ? "fieldset" : "section", "ui-section");
125
159
  /** The values the styles' :host() and :state() rules test. */
126
160
  const hostState = computed(() => [
127
161
  checkedProps.value.variant && "variant",
@@ -130,31 +164,62 @@ var UiSection_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PU
130
164
  checkedProps.value.tone != null && `tone=${encodeURIComponent(checkedProps.value.tone)}`
131
165
  ].filter(Boolean).join(" "));
132
166
  return (_ctx, _cache) => {
133
- return withDirectives((openBlock(), createElementBlock("section", mergeProps({ class: "ui-section" }, unref(nativeAttrs)(_ctx.$attrs), {
167
+ return checkedProps.value.variant === "fieldset" ? withDirectives((openBlock(), createElementBlock("fieldset", mergeProps({
168
+ key: 0,
169
+ class: "ui-section"
170
+ }, unref(nativeAttrs)(_ctx.$attrs), {
134
171
  "data-hn": "",
135
172
  "data-hn-ui-section": "",
136
173
  "data-ui-section-prop-heading": unref(reflectedProp)("heading", "heading", checkedProps.value.heading, void 0, false),
137
174
  "data-ui-section-prop-tone": unref(reflectedProp)("tone", "tone", checkedProps.value.tone, void 0, false),
138
175
  "data-ui-section-prop-variant": unref(reflectedProp)("variant", "variant", checkedProps.value.variant, void 0, false),
139
- "data-ui-section-state": hostState.value || void 0
176
+ "data-ui-section-state": hostState.value || void 0,
177
+ ref: "@html-next/root"
140
178
  }), [
141
- createElementVNode("span", _hoisted_2, [
142
- createElementVNode("span", _hoisted_3, [createElementVNode("h2", {
143
- class: "heading",
144
- "data-hn-ui-section": "",
145
- hidden: !checkedProps.value.heading
146
- }, toDisplayString(checkedProps.value.heading), 9, _hoisted_4), createElementVNode("span", _hoisted_5, [renderSlot(_ctx.$slots, "description", {}, void 0, true)])]),
179
+ createElementVNode("legend", {
180
+ class: "legend",
181
+ "data-hn-ui-section": "",
182
+ hidden: !checkedProps.value.heading
183
+ }, [createElementVNode("h2", _hoisted_3, toDisplayString(checkedProps.value.heading), 1)], 8, _hoisted_2),
184
+ createElementVNode("span", _hoisted_4, [
185
+ createElementVNode("span", _hoisted_5, [createElementVNode("span", _hoisted_6, [renderSlot(_ctx.$slots, "description", {}, void 0, true)])]),
147
186
  _cache[0] || (_cache[0] = createTextVNode(toDisplayString(" "), -1)),
148
- createElementVNode("span", _hoisted_6, [renderSlot(_ctx.$slots, "actions", {}, void 0, true)])
187
+ createElementVNode("span", _hoisted_7, [renderSlot(_ctx.$slots, "actions", {}, void 0, true)])
149
188
  ]),
150
189
  _cache[1] || (_cache[1] = createTextVNode(toDisplayString(" "), -1)),
151
- createElementVNode("span", _hoisted_7, [renderSlot(_ctx.$slots, "default", {}, void 0, true)])
190
+ createElementVNode("span", _hoisted_8, [renderSlot(_ctx.$slots, "default", {}, void 0, true)])
152
191
  ], 16, _hoisted_1)), [[unref(vPropValidity), {
153
192
  contract: propValidityContract,
154
193
  values: { ...props }
194
+ }]]) : withDirectives((openBlock(), createElementBlock("section", mergeProps({
195
+ key: 1,
196
+ class: "ui-section"
197
+ }, unref(nativeAttrs)(_ctx.$attrs), {
198
+ "data-hn": "",
199
+ "data-hn-ui-section": "",
200
+ "data-ui-section-prop-heading": unref(reflectedProp)("heading", "heading", checkedProps.value.heading, void 0, false),
201
+ "data-ui-section-prop-tone": unref(reflectedProp)("tone", "tone", checkedProps.value.tone, void 0, false),
202
+ "data-ui-section-prop-variant": unref(reflectedProp)("variant", "variant", checkedProps.value.variant, void 0, false),
203
+ "data-ui-section-state": hostState.value || void 0,
204
+ ref: "@html-next/root"
205
+ }), [
206
+ createElementVNode("span", _hoisted_10, [
207
+ createElementVNode("span", _hoisted_11, [createElementVNode("h2", {
208
+ class: "heading",
209
+ "data-hn-ui-section": "",
210
+ hidden: !checkedProps.value.heading
211
+ }, toDisplayString(checkedProps.value.heading), 9, _hoisted_12), createElementVNode("span", _hoisted_13, [renderSlot(_ctx.$slots, "description", {}, void 0, true)])]),
212
+ _cache[2] || (_cache[2] = createTextVNode(toDisplayString(" "), -1)),
213
+ createElementVNode("span", _hoisted_14, [renderSlot(_ctx.$slots, "actions", {}, void 0, true)])
214
+ ]),
215
+ _cache[3] || (_cache[3] = createTextVNode(toDisplayString(" "), -1)),
216
+ createElementVNode("span", _hoisted_15, [renderSlot(_ctx.$slots, "default", {}, void 0, true)])
217
+ ], 16, _hoisted_9)), [[unref(vPropValidity), {
218
+ contract: propValidityContract,
219
+ values: { ...props }
155
220
  }]]);
156
221
  };
157
222
  }
158
- }), [["__scopeId", "data-v-3ef5dd37"]]);
223
+ }), [["__scopeId", "data-v-ccf42e80"]]);
159
224
  //#endregion
160
225
  export { UiSection_default as t };
@@ -1,27 +1,48 @@
1
- import { C as useReflectedProp, _ as nativeAttrs, a as checkHydratedRoot, t as _plugin_vue_export_helper_default } from "./_plugin-vue_export-helper.js";
2
- import { h as vuePropInputs, i as checkPropInput, m as vPropValidity, t as BINDING_INPUTS_PROP } from "./props.js";
3
- import { computed, createElementBlock, createElementVNode, defineComponent, mergeProps, openBlock, renderSlot, unref, watchSyncEffect, withDirectives } from "vue";
1
+ import { C as useReflectedProp, S as useComponentHost, _ as nativeAttrs, a as checkHydratedRoot, i as attribute, o as concat, s as createDispatch, t as _plugin_vue_export_helper_default } from "./_plugin-vue_export-helper.js";
2
+ import { d as propValidityState, f as requireInputStatus, h as vuePropInputs, i as checkPropInput, m as vPropValidity, r as acceptsControllerWrite, t as BINDING_INPUTS_PROP } from "./props.js";
3
+ import { t as UiIcon_default } from "./UiIcon.js";
4
+ import { t as UiIconButton_default } from "./UiIconButton.js";
5
+ import { computed, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, getCurrentInstance, mergeProps, openBlock, provide, ref, renderSlot, toDisplayString, unref, useTemplateRef, watchSyncEffect, withCtx, withDirectives } from "vue";
4
6
  //#region .build/vue/UiSiteHeader.vue?vue&type=script&setup=true&lang.ts
5
7
  var _hoisted_1 = [
6
8
  "data-ui-site-header-prop-breakpoint",
9
+ "data-ui-site-header-prop-close-label",
7
10
  "data-ui-site-header-prop-label",
11
+ "data-ui-site-header-prop-menu-label",
8
12
  "data-ui-site-header-prop-sticky",
9
13
  "data-ui-site-header-state"
10
14
  ];
11
15
  var _hoisted_2 = {
12
- class: "menu",
16
+ class: "identity",
13
17
  "data-hn-ui-site-header": ""
14
18
  };
15
19
  var _hoisted_3 = {
16
- class: "identity",
20
+ class: "brand",
17
21
  "data-hn-ui-site-header": ""
18
22
  };
19
23
  var _hoisted_4 = {
20
- class: "brand",
24
+ class: "menu",
25
+ "data-hn-ui-site-header": ""
26
+ };
27
+ var _hoisted_5 = {
28
+ class: "custom-menu",
21
29
  "data-hn-ui-site-header": ""
22
30
  };
23
- var _hoisted_5 = ["aria-label"];
24
31
  var _hoisted_6 = {
32
+ class: "automatic-menu",
33
+ "data-hn-ui-site-header": ""
34
+ };
35
+ var _hoisted_7 = ["role", "aria-label"];
36
+ var _hoisted_8 = {
37
+ class: "panel-heading",
38
+ "data-hn-ui-site-header": ""
39
+ };
40
+ var _hoisted_9 = {
41
+ class: "panel-title",
42
+ "data-hn-ui-site-header": ""
43
+ };
44
+ var _hoisted_10 = ["aria-label"];
45
+ var _hoisted_11 = {
25
46
  class: "actions",
26
47
  "data-hn-ui-site-header": ""
27
48
  };
@@ -32,7 +53,9 @@ var UiSiteHeader_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @_
32
53
  __name: "UiSiteHeader",
33
54
  props: {
34
55
  breakpoint: { type: null },
56
+ closeLabel: { type: null },
35
57
  label: { type: null },
58
+ menuLabel: { type: null },
36
59
  sticky: { type: null },
37
60
  [BINDING_INPUTS_PROP]: { type: null }
38
61
  },
@@ -45,7 +68,7 @@ var UiSiteHeader_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @_
45
68
  },
46
69
  required: false,
47
70
  target: { attribute: "breakpoint" },
48
- description: "The viewport width at which navigation replaces the menu trigger: sm is 40rem, md 48rem, and lg 64rem. The consumer owns the menu or drawer the trigger\n opens.",
71
+ description: "The viewport width at which navigation changes from an automatic mobile drawer to inline links: sm is 40rem, md 48rem, and lg 64rem.",
49
72
  values: [
50
73
  "sm",
51
74
  "md",
@@ -53,6 +76,16 @@ var UiSiteHeader_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @_
53
76
  ],
54
77
  default: "lg"
55
78
  },
79
+ closeLabel: {
80
+ type: {
81
+ kind: "terminal",
82
+ name: "string"
83
+ },
84
+ required: false,
85
+ target: { attribute: "label" },
86
+ description: "Accessible name of the drawer's close button.",
87
+ default: "Close navigation"
88
+ },
56
89
  label: {
57
90
  type: {
58
91
  kind: "terminal",
@@ -63,6 +96,16 @@ var UiSiteHeader_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @_
63
96
  description: "Accessible name for the primary navigation region.",
64
97
  default: "Main"
65
98
  },
99
+ menuLabel: {
100
+ type: {
101
+ kind: "terminal",
102
+ name: "string"
103
+ },
104
+ required: false,
105
+ target: { attribute: "label" },
106
+ description: "Accessible name of the automatic mobile menu button.",
107
+ default: "Open navigation"
108
+ },
66
109
  sticky: {
67
110
  type: {
68
111
  kind: "terminal",
@@ -77,11 +120,15 @@ var UiSiteHeader_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @_
77
120
  const props = __props;
78
121
  const inputTracking = vuePropInputs({
79
122
  breakpoint: "lg",
123
+ closeLabel: "Close navigation",
80
124
  label: "Main",
125
+ menuLabel: "Open navigation",
81
126
  sticky: false
82
127
  }, {
83
128
  breakpoint: "lg",
129
+ closeLabel: "Close navigation",
84
130
  label: "Main",
131
+ menuLabel: "Open navigation",
85
132
  sticky: false
86
133
  }, (name, value, source, values) => {
87
134
  switch (name) {
@@ -89,10 +136,18 @@ var UiSiteHeader_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @_
89
136
  kind: "terminal",
90
137
  name: "keyword"
91
138
  }, true, true);
139
+ case "closeLabel": return checkPropInput(value, {
140
+ kind: "terminal",
141
+ name: "string"
142
+ }, true, true);
92
143
  case "label": return checkPropInput(value, {
93
144
  kind: "terminal",
94
145
  name: "string"
95
146
  }, true, true);
147
+ case "menuLabel": return checkPropInput(value, {
148
+ kind: "terminal",
149
+ name: "string"
150
+ }, true, true);
96
151
  case "sticky": return checkPropInput(value, {
97
152
  kind: "terminal",
98
153
  name: "boolean"
@@ -107,44 +162,196 @@ var UiSiteHeader_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @_
107
162
  inputTracking.version.value;
108
163
  return {
109
164
  breakpoint: propInputs.value("breakpoint", props["breakpoint"], props[BINDING_INPUTS_PROP]),
165
+ closeLabel: propInputs.value("closeLabel", props["closeLabel"], props[BINDING_INPUTS_PROP]),
110
166
  label: propInputs.value("label", props["label"], props[BINDING_INPUTS_PROP]),
167
+ menuLabel: propInputs.value("menuLabel", props["menuLabel"], props[BINDING_INPUTS_PROP]),
111
168
  sticky: propInputs.value("sticky", props["sticky"], props[BINDING_INPUTS_PROP])
112
169
  };
113
170
  });
171
+ const inputStatus = (name, handlesError) => {
172
+ checkedProps.value;
173
+ inputTracking.version.value;
174
+ return requireInputStatus(propInputs.status(name), handlesError);
175
+ };
114
176
  checkedProps.value;
115
177
  watchSyncEffect(() => {
116
178
  checkedProps.value;
117
179
  });
118
180
  const reflectedProp = useReflectedProp();
181
+ const hydrationInstance = getCurrentInstance();
182
+ const root = ref(null);
183
+ const triggerElement = useTemplateRef("triggerElement");
184
+ const panelElement = useTemplateRef("panelElement");
185
+ const closeElement = useTemplateRef("closeElement");
186
+ const navigationElement = useTemplateRef("navigationElement");
187
+ const enhanced = ref(false);
188
+ const drawer = ref(false);
189
+ let guardedPrevious = null;
190
+ const guarded = computed(() => {
191
+ if (((objectValue, indexValue) => objectValue === Symbol.for("html-next.invalid-result") || indexValue === Symbol.for("html-next.invalid-result") ? Symbol.for("html-next.invalid-result") : objectValue[indexValue])({
192
+ true: "dialog",
193
+ false: "none"
194
+ }, concat(drawer.value)) === Symbol.for("html-next.invalid-result")) return guardedPrevious;
195
+ return guardedPrevious = attribute(((objectValue, indexValue) => objectValue === Symbol.for("html-next.invalid-result") || indexValue === Symbol.for("html-next.invalid-result") ? Symbol.for("html-next.invalid-result") : objectValue[indexValue])({
196
+ true: "dialog",
197
+ false: "none"
198
+ }, concat(drawer.value)));
199
+ });
200
+ let guardedBindingPrevious = null;
201
+ const guardedBinding = computed(() => {
202
+ if (((objectValue, indexValue) => objectValue === Symbol.for("html-next.invalid-result") || indexValue === Symbol.for("html-next.invalid-result") ? Symbol.for("html-next.invalid-result") : objectValue[indexValue])({
203
+ true: checkedProps.value.label,
204
+ false: null
205
+ }, concat(drawer.value)) === Symbol.for("html-next.invalid-result")) return guardedBindingPrevious;
206
+ return guardedBindingPrevious = typeof ((objectValue, indexValue) => objectValue === Symbol.for("html-next.invalid-result") || indexValue === Symbol.for("html-next.invalid-result") ? Symbol.for("html-next.invalid-result") : objectValue[indexValue])({
207
+ true: checkedProps.value.label,
208
+ false: null
209
+ }, concat(drawer.value)) === "boolean" ? String(((objectValue, indexValue) => objectValue === Symbol.for("html-next.invalid-result") || indexValue === Symbol.for("html-next.invalid-result") ? Symbol.for("html-next.invalid-result") : objectValue[indexValue])({
210
+ true: checkedProps.value.label,
211
+ false: null
212
+ }, concat(drawer.value))) : attribute(((objectValue, indexValue) => objectValue === Symbol.for("html-next.invalid-result") || indexValue === Symbol.for("html-next.invalid-result") ? Symbol.for("html-next.invalid-result") : objectValue[indexValue])({
213
+ true: checkedProps.value.label,
214
+ false: null
215
+ }, concat(drawer.value)));
216
+ });
217
+ provide("html-next:ui-site-header:enhanced", enhanced);
218
+ provide("html-next:ui-site-header:drawer", drawer);
119
219
  checkHydratedRoot("header", "ui-site-header");
120
220
  /** The values the styles' :host() and :state() rules test. */
121
221
  const hostState = computed(() => [
122
222
  checkedProps.value.sticky && "sticky",
123
223
  checkedProps.value.breakpoint && "breakpoint",
124
- checkedProps.value.breakpoint != null && `breakpoint=${encodeURIComponent(checkedProps.value.breakpoint)}`
224
+ checkedProps.value.breakpoint != null && `breakpoint=${encodeURIComponent(checkedProps.value.breakpoint)}`,
225
+ drawer.value && "drawer",
226
+ enhanced.value && "enhanced"
125
227
  ].filter(Boolean).join(" "));
228
+ const dispatch = createDispatch(root);
229
+ useComponentHost(() => import("@threadlabs/looma/components/ui-site-header/ui-site-header.js"), {
230
+ root,
231
+ module: true,
232
+ dispatch,
233
+ acceptsState: (name, keys, value) => acceptsControllerWrite(value, {
234
+ enhanced: {
235
+ kind: "terminal",
236
+ name: "boolean"
237
+ },
238
+ drawer: {
239
+ kind: "terminal",
240
+ name: "boolean"
241
+ }
242
+ }[name], keys),
243
+ initials: {
244
+ enhanced: false,
245
+ drawer: false
246
+ },
247
+ controllerSource: {
248
+ specifier: "../components/ui-site-header/ui-site-header.js",
249
+ definition: "./components/ui-site-header/ui-site-header.html"
250
+ },
251
+ props: checkedProps,
252
+ inputs: propInputs,
253
+ inputTracking,
254
+ propInputs: (name) => {
255
+ const incoming = hydrationInstance?.vnode.props;
256
+ const kebab = name.replace(/[A-Z]/g, (letter) => "-" + letter.toLowerCase());
257
+ return incoming !== null && incoming !== void 0 ? incoming[name] ?? incoming[kebab] ?? null : null;
258
+ },
259
+ propNames: [
260
+ "breakpoint",
261
+ "closeLabel",
262
+ "label",
263
+ "menuLabel",
264
+ "sticky"
265
+ ],
266
+ propValidity: (name) => propValidityState({
267
+ contract: propValidityContract,
268
+ values: { ...props }
269
+ }, name),
270
+ refs: {
271
+ trigger: triggerElement,
272
+ panel: panelElement,
273
+ close: closeElement,
274
+ navigation: navigationElement
275
+ },
276
+ state: {
277
+ enhanced,
278
+ drawer
279
+ }
280
+ });
126
281
  return (_ctx, _cache) => {
127
282
  return withDirectives((openBlock(), createElementBlock("header", mergeProps({ class: "ui-site-header" }, unref(nativeAttrs)(_ctx.$attrs), {
128
283
  "data-hn": "",
129
284
  "data-hn-ui-site-header": "",
130
285
  "data-ui-site-header-prop-breakpoint": unref(reflectedProp)("breakpoint", "breakpoint", checkedProps.value.breakpoint, void 0, false),
286
+ "data-ui-site-header-prop-close-label": unref(reflectedProp)("closeLabel", "close-label", checkedProps.value.closeLabel, void 0, false),
131
287
  "data-ui-site-header-prop-label": unref(reflectedProp)("label", "label", checkedProps.value.label, void 0, false),
288
+ "data-ui-site-header-prop-menu-label": unref(reflectedProp)("menuLabel", "menu-label", checkedProps.value.menuLabel, void 0, false),
132
289
  "data-ui-site-header-prop-sticky": unref(reflectedProp)("sticky", "sticky", checkedProps.value.sticky, void 0, false),
133
- "data-ui-site-header-state": hostState.value || void 0
134
- }), [
135
- createElementVNode("span", _hoisted_2, [renderSlot(_ctx.$slots, "menu", {}, void 0, true)]),
136
- createElementVNode("div", _hoisted_3, [createElementVNode("div", _hoisted_4, [renderSlot(_ctx.$slots, "brand", {}, void 0, true)]), createElementVNode("nav", {
290
+ "data-ui-site-header-state": hostState.value || void 0,
291
+ ref_key: "root",
292
+ ref: root
293
+ }), [createElementVNode("div", _hoisted_2, [
294
+ createElementVNode("div", _hoisted_3, [renderSlot(_ctx.$slots, "brand", {}, void 0, true)]),
295
+ createElementVNode("div", _hoisted_4, [createElementVNode("div", _hoisted_5, [renderSlot(_ctx.$slots, "menu", {}, void 0, true)]), createElementVNode("div", _hoisted_6, [createVNode(UiIconButton_default, mergeProps({
296
+ class: "ui-icon-button",
297
+ size: "sm",
298
+ "aria-haspopup": "dialog",
299
+ "aria-expanded": "false",
300
+ label: checkedProps.value.menuLabel
301
+ }, { [unref(BINDING_INPUTS_PROP)]: { label: () => ({
302
+ value: checkedProps.value.menuLabel,
303
+ status: inputStatus("menuLabel", true)
304
+ }) } }, {
305
+ ref_key: "triggerElement",
306
+ ref: triggerElement
307
+ }), {
308
+ default: withCtx(() => [createVNode(UiIcon_default, {
309
+ class: "ui-icon",
310
+ name: "menu"
311
+ })]),
312
+ _: 1
313
+ }, 16, ["label"])])]),
314
+ createElementVNode("dialog", {
315
+ class: "navigation-panel",
316
+ "data-hn-ui-site-header": "",
317
+ open: true,
318
+ role: guarded.value,
319
+ "aria-label": guardedBinding.value,
320
+ ref_key: "panelElement",
321
+ ref: panelElement
322
+ }, [createElementVNode("div", _hoisted_8, [
323
+ createElementVNode("span", _hoisted_9, toDisplayString(checkedProps.value.label), 1),
324
+ _cache[0] || (_cache[0] = createTextVNode(toDisplayString(" "), -1)),
325
+ createVNode(UiIconButton_default, mergeProps({
326
+ class: "ui-icon-button",
327
+ size: "sm",
328
+ label: checkedProps.value.closeLabel
329
+ }, { [unref(BINDING_INPUTS_PROP)]: { label: () => ({
330
+ value: checkedProps.value.closeLabel,
331
+ status: inputStatus("closeLabel", true)
332
+ }) } }, {
333
+ ref_key: "closeElement",
334
+ ref: closeElement
335
+ }), {
336
+ default: withCtx(() => [createVNode(UiIcon_default, {
337
+ class: "ui-icon",
338
+ name: "x"
339
+ })]),
340
+ _: 1
341
+ }, 16, ["label"])
342
+ ]), createElementVNode("nav", {
137
343
  class: "navigation",
138
344
  "data-hn-ui-site-header": "",
139
- "aria-label": checkedProps.value.label ?? void 0
140
- }, [renderSlot(_ctx.$slots, "navigation", {}, void 0, true)], 8, _hoisted_5)]),
141
- createElementVNode("div", _hoisted_6, [renderSlot(_ctx.$slots, "actions", {}, void 0, true)])
142
- ], 16, _hoisted_1)), [[unref(vPropValidity), {
345
+ "aria-label": checkedProps.value.label ?? void 0,
346
+ ref_key: "navigationElement",
347
+ ref: navigationElement
348
+ }, [renderSlot(_ctx.$slots, "navigation", {}, void 0, true)], 8, _hoisted_10)], 8, _hoisted_7)
349
+ ]), createElementVNode("div", _hoisted_11, [renderSlot(_ctx.$slots, "actions", {}, void 0, true)])], 16, _hoisted_1)), [[unref(vPropValidity), {
143
350
  contract: propValidityContract,
144
351
  values: { ...props }
145
352
  }]]);
146
353
  };
147
354
  }
148
- }), [["__scopeId", "data-v-db97d3bd"]]);
355
+ }), [["__scopeId", "data-v-895d414f"]]);
149
356
  //#endregion
150
357
  export { UiSiteHeader_default as t };