@hydrateless/vue 0.4.0 → 0.6.0
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/README.md +33 -2
- package/dist/index.d.ts +1398 -14
- package/dist/index.js +1441 -18
- package/package.json +6 -3
package/dist/index.js
CHANGED
|
@@ -1,31 +1,34 @@
|
|
|
1
1
|
// src/useEnhancer.ts
|
|
2
|
-
import { onMounted, onUnmounted } from "vue";
|
|
2
|
+
import { onMounted, onUnmounted, shallowRef } from "vue";
|
|
3
3
|
function useEnhancer(target, enhance) {
|
|
4
|
-
|
|
4
|
+
const api = shallowRef(null);
|
|
5
|
+
let destroy = null;
|
|
5
6
|
onMounted(() => {
|
|
6
|
-
if (target.value)
|
|
7
|
+
if (!target.value) return;
|
|
8
|
+
const handle = enhance(target.value);
|
|
9
|
+
api.value = handle.api;
|
|
10
|
+
destroy = handle.destroy;
|
|
7
11
|
});
|
|
8
12
|
onUnmounted(() => {
|
|
9
|
-
|
|
10
|
-
|
|
13
|
+
destroy?.();
|
|
14
|
+
destroy = null;
|
|
15
|
+
api.value = null;
|
|
11
16
|
});
|
|
17
|
+
return api;
|
|
12
18
|
}
|
|
13
19
|
|
|
14
20
|
// src/useToast.ts
|
|
15
|
-
import { onMounted as onMounted2, onUnmounted as onUnmounted2 } from "vue";
|
|
16
21
|
import { enhanceToast } from "@hydrateless/enhancers";
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
onMounted2(() => {
|
|
20
|
-
api = enhanceToast(document);
|
|
21
|
-
});
|
|
22
|
-
onUnmounted2(() => {
|
|
23
|
-
api?.destroy();
|
|
24
|
-
api = null;
|
|
25
|
-
});
|
|
22
|
+
var shared = null;
|
|
23
|
+
function useToast(options) {
|
|
26
24
|
return {
|
|
27
|
-
show
|
|
28
|
-
|
|
25
|
+
show(message, opts) {
|
|
26
|
+
const api = shared ?? (shared = enhanceToast(document, options).api);
|
|
27
|
+
return api.show(message, opts);
|
|
28
|
+
},
|
|
29
|
+
dismiss(toast) {
|
|
30
|
+
shared?.dismiss(toast);
|
|
31
|
+
}
|
|
29
32
|
};
|
|
30
33
|
}
|
|
31
34
|
|
|
@@ -48,7 +51,7 @@ function directiveFor(enhance) {
|
|
|
48
51
|
const disposers = /* @__PURE__ */ new WeakMap();
|
|
49
52
|
return {
|
|
50
53
|
mounted(el) {
|
|
51
|
-
disposers.set(el, enhance(el));
|
|
54
|
+
disposers.set(el, enhance(el).destroy);
|
|
52
55
|
},
|
|
53
56
|
unmounted(el) {
|
|
54
57
|
disposers.get(el)?.();
|
|
@@ -91,10 +94,1430 @@ var HydratelessPlugin = {
|
|
|
91
94
|
}
|
|
92
95
|
}
|
|
93
96
|
};
|
|
97
|
+
|
|
98
|
+
// src/components/disclosure.ts
|
|
99
|
+
import { defineComponent, h, onMounted as onMounted3, ref as ref2, watch } from "vue";
|
|
100
|
+
import { enhanceAccordion as enhanceAccordion2 } from "@hydrateless/enhancers";
|
|
101
|
+
|
|
102
|
+
// src/internal.ts
|
|
103
|
+
import { onBeforeUnmount, onMounted as onMounted2, ref, shallowRef as shallowRef2 } from "vue";
|
|
104
|
+
function cx(...classes) {
|
|
105
|
+
return classes.filter(Boolean).join(" ");
|
|
106
|
+
}
|
|
107
|
+
function useHostEnhancer(enhance) {
|
|
108
|
+
const host = ref(null);
|
|
109
|
+
const api = shallowRef2(null);
|
|
110
|
+
let destroy = null;
|
|
111
|
+
onMounted2(() => {
|
|
112
|
+
if (!host.value) return;
|
|
113
|
+
const handle = enhance(host.value);
|
|
114
|
+
api.value = handle.api;
|
|
115
|
+
destroy = handle.destroy;
|
|
116
|
+
});
|
|
117
|
+
onBeforeUnmount(() => {
|
|
118
|
+
destroy?.();
|
|
119
|
+
destroy = null;
|
|
120
|
+
api.value = null;
|
|
121
|
+
});
|
|
122
|
+
return { host, api };
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
// src/components/disclosure.ts
|
|
126
|
+
var Accordion = defineComponent({
|
|
127
|
+
name: "HlAccordion",
|
|
128
|
+
inheritAttrs: false,
|
|
129
|
+
props: {
|
|
130
|
+
allowMultiple: { type: Boolean, default: false },
|
|
131
|
+
/** Controlled list of open item values (`v-model`). */
|
|
132
|
+
modelValue: { type: Array, default: void 0 },
|
|
133
|
+
/** Initially open item values for uncontrolled usage. */
|
|
134
|
+
defaultValue: { type: Array, default: void 0 }
|
|
135
|
+
},
|
|
136
|
+
emits: ["update:modelValue"],
|
|
137
|
+
setup(props, { slots, attrs, emit }) {
|
|
138
|
+
const { host, api } = useHostEnhancer(
|
|
139
|
+
(el) => enhanceAccordion2(el, {
|
|
140
|
+
allowMultiple: props.allowMultiple,
|
|
141
|
+
defaultValue: props.modelValue ?? props.defaultValue,
|
|
142
|
+
onValueChange: (value) => emit("update:modelValue", value)
|
|
143
|
+
})
|
|
144
|
+
);
|
|
145
|
+
watch(
|
|
146
|
+
() => props.modelValue,
|
|
147
|
+
(value) => {
|
|
148
|
+
if (value != null) api.value?.setValue(value);
|
|
149
|
+
}
|
|
150
|
+
);
|
|
151
|
+
return () => h("div", { ...attrs, "data-hl-accordion": "", ref: host }, slots.default?.());
|
|
152
|
+
}
|
|
153
|
+
});
|
|
154
|
+
var AccordionItem = defineComponent({
|
|
155
|
+
name: "HlAccordionItem",
|
|
156
|
+
inheritAttrs: false,
|
|
157
|
+
props: {
|
|
158
|
+
/** Stable value identifying this item; defaults to its index. */
|
|
159
|
+
value: { type: String, default: void 0 },
|
|
160
|
+
defaultOpen: { type: Boolean, default: false }
|
|
161
|
+
},
|
|
162
|
+
setup(props, { slots, attrs }) {
|
|
163
|
+
const el = ref2(null);
|
|
164
|
+
onMounted3(() => {
|
|
165
|
+
if (el.value && props.defaultOpen) el.value.open = true;
|
|
166
|
+
});
|
|
167
|
+
return () => h("details", { ...attrs, "data-hl-value": props.value, ref: el }, [
|
|
168
|
+
h("summary", slots.summary?.()),
|
|
169
|
+
h("div", { class: "hl-accordion-panel" }, slots.default?.())
|
|
170
|
+
]);
|
|
171
|
+
}
|
|
172
|
+
});
|
|
173
|
+
var Disclosure = defineComponent({
|
|
174
|
+
name: "HlDisclosure",
|
|
175
|
+
inheritAttrs: false,
|
|
176
|
+
props: {
|
|
177
|
+
defaultOpen: { type: Boolean, default: false }
|
|
178
|
+
},
|
|
179
|
+
setup(props, { slots, attrs }) {
|
|
180
|
+
const el = ref2(null);
|
|
181
|
+
onMounted3(() => {
|
|
182
|
+
if (el.value && props.defaultOpen) el.value.open = true;
|
|
183
|
+
});
|
|
184
|
+
return () => h(
|
|
185
|
+
"details",
|
|
186
|
+
{
|
|
187
|
+
...attrs,
|
|
188
|
+
class: cx("hl-disclosure", attrs.class),
|
|
189
|
+
"data-hl-disclosure": "",
|
|
190
|
+
ref: el
|
|
191
|
+
},
|
|
192
|
+
[
|
|
193
|
+
h("summary", slots.summary?.()),
|
|
194
|
+
h("div", { class: "hl-disclosure-panel" }, slots.default?.())
|
|
195
|
+
]
|
|
196
|
+
);
|
|
197
|
+
}
|
|
198
|
+
});
|
|
199
|
+
|
|
200
|
+
// src/components/tabs.ts
|
|
201
|
+
import { defineComponent as defineComponent2, h as h2, watch as watch2 } from "vue";
|
|
202
|
+
import { enhanceTabs as enhanceTabs2 } from "@hydrateless/enhancers";
|
|
203
|
+
var Tabs = defineComponent2({
|
|
204
|
+
name: "HlTabs",
|
|
205
|
+
inheritAttrs: false,
|
|
206
|
+
props: {
|
|
207
|
+
activation: { type: String, default: void 0 },
|
|
208
|
+
orientation: {
|
|
209
|
+
type: String,
|
|
210
|
+
default: void 0
|
|
211
|
+
},
|
|
212
|
+
/** Controlled value of the selected tab (`v-model`). */
|
|
213
|
+
modelValue: { type: String, default: void 0 },
|
|
214
|
+
/** Initial value for uncontrolled usage. */
|
|
215
|
+
defaultValue: { type: String, default: void 0 }
|
|
216
|
+
},
|
|
217
|
+
emits: ["update:modelValue"],
|
|
218
|
+
setup(props, { slots, attrs, emit }) {
|
|
219
|
+
const { host, api } = useHostEnhancer(
|
|
220
|
+
(el) => enhanceTabs2(el, {
|
|
221
|
+
activation: props.activation,
|
|
222
|
+
orientation: props.orientation,
|
|
223
|
+
defaultValue: props.modelValue ?? props.defaultValue,
|
|
224
|
+
onValueChange: (value) => emit("update:modelValue", value)
|
|
225
|
+
})
|
|
226
|
+
);
|
|
227
|
+
watch2(
|
|
228
|
+
() => props.modelValue,
|
|
229
|
+
(value) => {
|
|
230
|
+
if (value != null) api.value?.setValue(value);
|
|
231
|
+
}
|
|
232
|
+
);
|
|
233
|
+
return () => h2("div", { ...attrs, "data-hl-tabs": "", ref: host }, slots.default?.());
|
|
234
|
+
}
|
|
235
|
+
});
|
|
236
|
+
var TabList = defineComponent2({
|
|
237
|
+
name: "HlTabList",
|
|
238
|
+
inheritAttrs: false,
|
|
239
|
+
setup(_, { slots, attrs }) {
|
|
240
|
+
return () => h2("div", { ...attrs, role: "tablist" }, slots.default?.());
|
|
241
|
+
}
|
|
242
|
+
});
|
|
243
|
+
var Tab = defineComponent2({
|
|
244
|
+
name: "HlTab",
|
|
245
|
+
inheritAttrs: false,
|
|
246
|
+
props: {
|
|
247
|
+
/** Stable value identifying this tab; defaults to its index. */
|
|
248
|
+
value: { type: String, default: void 0 }
|
|
249
|
+
},
|
|
250
|
+
setup(props, { slots, attrs }) {
|
|
251
|
+
return () => h2(
|
|
252
|
+
"button",
|
|
253
|
+
{ type: "button", ...attrs, role: "tab", "data-hl-value": props.value },
|
|
254
|
+
slots.default?.()
|
|
255
|
+
);
|
|
256
|
+
}
|
|
257
|
+
});
|
|
258
|
+
var TabPanel = defineComponent2({
|
|
259
|
+
name: "HlTabPanel",
|
|
260
|
+
inheritAttrs: false,
|
|
261
|
+
setup(_, { slots, attrs }) {
|
|
262
|
+
return () => h2("div", { ...attrs, role: "tabpanel" }, slots.default?.());
|
|
263
|
+
}
|
|
264
|
+
});
|
|
265
|
+
|
|
266
|
+
// src/components/dropdown.ts
|
|
267
|
+
import { defineComponent as defineComponent3, h as h3, watch as watch3 } from "vue";
|
|
268
|
+
import {
|
|
269
|
+
enhanceDropdown as enhanceDropdown2
|
|
270
|
+
} from "@hydrateless/enhancers";
|
|
271
|
+
var Dropdown = defineComponent3({
|
|
272
|
+
name: "HlDropdown",
|
|
273
|
+
inheritAttrs: false,
|
|
274
|
+
props: {
|
|
275
|
+
placement: {
|
|
276
|
+
type: String,
|
|
277
|
+
default: void 0
|
|
278
|
+
},
|
|
279
|
+
/** Controlled open state (`v-model:open`). */
|
|
280
|
+
open: { type: Boolean, default: void 0 },
|
|
281
|
+
/** Open the menu initially for uncontrolled usage. */
|
|
282
|
+
defaultOpen: { type: Boolean, default: false }
|
|
283
|
+
},
|
|
284
|
+
emits: ["update:open"],
|
|
285
|
+
setup(props, { slots, attrs, emit }) {
|
|
286
|
+
const { host, api } = useHostEnhancer(
|
|
287
|
+
(el) => enhanceDropdown2(el, {
|
|
288
|
+
placement: props.placement,
|
|
289
|
+
defaultOpen: props.open ?? props.defaultOpen,
|
|
290
|
+
onOpenChange: (open) => emit("update:open", open)
|
|
291
|
+
})
|
|
292
|
+
);
|
|
293
|
+
watch3(
|
|
294
|
+
() => props.open,
|
|
295
|
+
(open) => {
|
|
296
|
+
if (open != null) api.value?.setOpen(open);
|
|
297
|
+
}
|
|
298
|
+
);
|
|
299
|
+
return () => h3("div", { ...attrs, "data-hl-dropdown": "", ref: host }, slots.default?.());
|
|
300
|
+
}
|
|
301
|
+
});
|
|
302
|
+
var DropdownTrigger = defineComponent3({
|
|
303
|
+
name: "HlDropdownTrigger",
|
|
304
|
+
inheritAttrs: false,
|
|
305
|
+
setup(_, { slots, attrs }) {
|
|
306
|
+
return () => h3("button", { type: "button", ...attrs, "data-hl-dropdown-trigger": "" }, slots.default?.());
|
|
307
|
+
}
|
|
308
|
+
});
|
|
309
|
+
var DropdownMenu = defineComponent3({
|
|
310
|
+
name: "HlDropdownMenu",
|
|
311
|
+
inheritAttrs: false,
|
|
312
|
+
setup(_, { slots, attrs }) {
|
|
313
|
+
return () => h3("ul", { ...attrs, "data-hl-dropdown-menu": "" }, slots.default?.());
|
|
314
|
+
}
|
|
315
|
+
});
|
|
316
|
+
var DropdownItem = defineComponent3({
|
|
317
|
+
name: "HlDropdownItem",
|
|
318
|
+
inheritAttrs: false,
|
|
319
|
+
emits: ["select"],
|
|
320
|
+
setup(_, { slots, attrs, emit }) {
|
|
321
|
+
return () => h3("li", [
|
|
322
|
+
h3(
|
|
323
|
+
"button",
|
|
324
|
+
{
|
|
325
|
+
type: "button",
|
|
326
|
+
...attrs,
|
|
327
|
+
role: "menuitem",
|
|
328
|
+
onClick: () => emit("select")
|
|
329
|
+
},
|
|
330
|
+
slots.default?.()
|
|
331
|
+
)
|
|
332
|
+
]);
|
|
333
|
+
}
|
|
334
|
+
});
|
|
335
|
+
var DropdownSeparator = defineComponent3({
|
|
336
|
+
name: "HlDropdownSeparator",
|
|
337
|
+
inheritAttrs: false,
|
|
338
|
+
setup(_, { attrs }) {
|
|
339
|
+
return () => h3("li", { ...attrs, role: "separator" });
|
|
340
|
+
}
|
|
341
|
+
});
|
|
342
|
+
|
|
343
|
+
// src/components/menu.ts
|
|
344
|
+
import { defineComponent as defineComponent4, h as h4 } from "vue";
|
|
345
|
+
import { enhanceMenu as enhanceMenu2 } from "@hydrateless/enhancers";
|
|
346
|
+
var Menu = defineComponent4({
|
|
347
|
+
name: "HlMenu",
|
|
348
|
+
inheritAttrs: false,
|
|
349
|
+
props: {
|
|
350
|
+
orientation: {
|
|
351
|
+
type: String,
|
|
352
|
+
default: "horizontal"
|
|
353
|
+
}
|
|
354
|
+
},
|
|
355
|
+
setup(props, { slots, attrs }) {
|
|
356
|
+
const { host } = useHostEnhancer((el) => enhanceMenu2(el, { orientation: props.orientation }));
|
|
357
|
+
return () => h4(
|
|
358
|
+
"ul",
|
|
359
|
+
{
|
|
360
|
+
...attrs,
|
|
361
|
+
"data-hl-menu": "",
|
|
362
|
+
role: props.orientation === "vertical" ? "menu" : "menubar",
|
|
363
|
+
"aria-orientation": props.orientation,
|
|
364
|
+
ref: host
|
|
365
|
+
},
|
|
366
|
+
slots.default?.()
|
|
367
|
+
);
|
|
368
|
+
}
|
|
369
|
+
});
|
|
370
|
+
var MenuItem = defineComponent4({
|
|
371
|
+
name: "HlMenuItem",
|
|
372
|
+
inheritAttrs: false,
|
|
373
|
+
props: {
|
|
374
|
+
href: { type: String, default: void 0 }
|
|
375
|
+
},
|
|
376
|
+
emits: ["select"],
|
|
377
|
+
setup(props, { slots, attrs, emit }) {
|
|
378
|
+
return () => {
|
|
379
|
+
const hasSubmenu = !!slots.submenu;
|
|
380
|
+
const label = props.href && !hasSubmenu ? h4("a", { ...attrs, role: "menuitem", href: props.href }, slots.default?.()) : h4(
|
|
381
|
+
"button",
|
|
382
|
+
{ type: "button", ...attrs, role: "menuitem", onClick: () => emit("select") },
|
|
383
|
+
slots.default?.()
|
|
384
|
+
);
|
|
385
|
+
const children = [label];
|
|
386
|
+
if (hasSubmenu) {
|
|
387
|
+
children.push(
|
|
388
|
+
h4("ul", { role: "menu", "data-hl-menu-submenu": "", hidden: true }, slots.submenu?.())
|
|
389
|
+
);
|
|
390
|
+
}
|
|
391
|
+
return h4("li", { role: "none" }, children);
|
|
392
|
+
};
|
|
393
|
+
}
|
|
394
|
+
});
|
|
395
|
+
|
|
396
|
+
// src/components/overlay.ts
|
|
397
|
+
import { defineComponent as defineComponent5, h as h5, onBeforeUnmount as onBeforeUnmount2, onMounted as onMounted4, ref as ref3, watch as watch4 } from "vue";
|
|
398
|
+
import {
|
|
399
|
+
combine,
|
|
400
|
+
enhanceDrawer as enhanceDrawer2,
|
|
401
|
+
enhanceModal as enhanceModal2,
|
|
402
|
+
enhanceTooltip as enhanceTooltip2,
|
|
403
|
+
onClickOutside,
|
|
404
|
+
onEscape
|
|
405
|
+
} from "@hydrateless/enhancers";
|
|
406
|
+
function useDialogEnhancer(props, emit, enhance) {
|
|
407
|
+
const { host, api } = useHostEnhancer(
|
|
408
|
+
(el) => enhance(el, {
|
|
409
|
+
closeOnBackdrop: props.closeOnBackdrop,
|
|
410
|
+
onOpenChange: (open) => emit("update:open", open)
|
|
411
|
+
})
|
|
412
|
+
);
|
|
413
|
+
onMounted4(() => {
|
|
414
|
+
if (props.open) api.value?.setOpen(true);
|
|
415
|
+
});
|
|
416
|
+
watch4(
|
|
417
|
+
() => props.open,
|
|
418
|
+
(open) => api.value?.setOpen(open)
|
|
419
|
+
);
|
|
420
|
+
return host;
|
|
421
|
+
}
|
|
422
|
+
var Modal = defineComponent5({
|
|
423
|
+
name: "HlModal",
|
|
424
|
+
inheritAttrs: false,
|
|
425
|
+
props: {
|
|
426
|
+
open: { type: Boolean, required: true },
|
|
427
|
+
closeOnBackdrop: { type: Boolean, default: true }
|
|
428
|
+
},
|
|
429
|
+
emits: ["update:open"],
|
|
430
|
+
setup(props, { slots, attrs, emit }) {
|
|
431
|
+
const host = useDialogEnhancer(props, emit, enhanceModal2);
|
|
432
|
+
return () => h5(
|
|
433
|
+
"dialog",
|
|
434
|
+
{
|
|
435
|
+
...attrs,
|
|
436
|
+
class: cx("hl-modal", attrs.class),
|
|
437
|
+
"data-hl-modal": "",
|
|
438
|
+
ref: host
|
|
439
|
+
},
|
|
440
|
+
slots.default?.()
|
|
441
|
+
);
|
|
442
|
+
}
|
|
443
|
+
});
|
|
444
|
+
var Drawer = defineComponent5({
|
|
445
|
+
name: "HlDrawer",
|
|
446
|
+
inheritAttrs: false,
|
|
447
|
+
props: {
|
|
448
|
+
open: { type: Boolean, required: true },
|
|
449
|
+
side: { type: String, default: "right" },
|
|
450
|
+
closeOnBackdrop: { type: Boolean, default: true }
|
|
451
|
+
},
|
|
452
|
+
emits: ["update:open"],
|
|
453
|
+
setup(props, { slots, attrs, emit }) {
|
|
454
|
+
const host = useDialogEnhancer(props, emit, enhanceDrawer2);
|
|
455
|
+
return () => h5(
|
|
456
|
+
"dialog",
|
|
457
|
+
{
|
|
458
|
+
...attrs,
|
|
459
|
+
class: cx("hl-drawer", attrs.class),
|
|
460
|
+
"data-hl-drawer": "",
|
|
461
|
+
"data-side": props.side,
|
|
462
|
+
ref: host
|
|
463
|
+
},
|
|
464
|
+
slots.default?.()
|
|
465
|
+
);
|
|
466
|
+
}
|
|
467
|
+
});
|
|
468
|
+
function section(name, klass) {
|
|
469
|
+
return defineComponent5({
|
|
470
|
+
name,
|
|
471
|
+
inheritAttrs: false,
|
|
472
|
+
setup(_, { slots, attrs }) {
|
|
473
|
+
return () => h5("div", { ...attrs, class: cx(klass, attrs.class) }, slots.default?.());
|
|
474
|
+
}
|
|
475
|
+
});
|
|
476
|
+
}
|
|
477
|
+
var ModalHeader = section("HlModalHeader", "hl-modal-header");
|
|
478
|
+
var ModalBody = section("HlModalBody", "hl-modal-body");
|
|
479
|
+
var ModalFooter = section("HlModalFooter", "hl-modal-footer");
|
|
480
|
+
var DrawerHeader = section("HlDrawerHeader", "hl-drawer-header");
|
|
481
|
+
var DrawerBody = section("HlDrawerBody", "hl-drawer-body");
|
|
482
|
+
var DrawerFooter = section("HlDrawerFooter", "hl-drawer-footer");
|
|
483
|
+
var Popover = defineComponent5({
|
|
484
|
+
name: "HlPopover",
|
|
485
|
+
inheritAttrs: false,
|
|
486
|
+
props: {
|
|
487
|
+
open: { type: Boolean, default: false }
|
|
488
|
+
},
|
|
489
|
+
emits: ["update:open"],
|
|
490
|
+
setup(props, { slots, attrs, emit }) {
|
|
491
|
+
const host = ref3(null);
|
|
492
|
+
let dispose = null;
|
|
493
|
+
const sync = () => {
|
|
494
|
+
dispose?.();
|
|
495
|
+
dispose = null;
|
|
496
|
+
const el = host.value;
|
|
497
|
+
if (!el || !props.open) return;
|
|
498
|
+
const dismiss = () => emit("update:open", false);
|
|
499
|
+
dispose = combine([onClickOutside(el, dismiss), onEscape(dismiss, el.ownerDocument)]);
|
|
500
|
+
};
|
|
501
|
+
onMounted4(sync);
|
|
502
|
+
watch4(() => props.open, sync);
|
|
503
|
+
onBeforeUnmount2(() => {
|
|
504
|
+
dispose?.();
|
|
505
|
+
dispose = null;
|
|
506
|
+
});
|
|
507
|
+
return () => h5(
|
|
508
|
+
"div",
|
|
509
|
+
{ ...attrs, "data-hl-popover": "", role: "dialog", hidden: !props.open, ref: host },
|
|
510
|
+
slots.default?.()
|
|
511
|
+
);
|
|
512
|
+
}
|
|
513
|
+
});
|
|
514
|
+
var tipCounter = 0;
|
|
515
|
+
var Tooltip = defineComponent5({
|
|
516
|
+
name: "HlTooltip",
|
|
517
|
+
inheritAttrs: false,
|
|
518
|
+
props: {
|
|
519
|
+
label: { type: String, default: void 0 },
|
|
520
|
+
id: { type: String, default: void 0 }
|
|
521
|
+
},
|
|
522
|
+
setup(props, { slots, attrs }) {
|
|
523
|
+
const tipId = props.id ?? `hl-tip-${tipCounter += 1}`;
|
|
524
|
+
const host = ref3(null);
|
|
525
|
+
let destroy = null;
|
|
526
|
+
onMounted4(() => {
|
|
527
|
+
const trigger = host.value?.querySelector(":scope > :first-child");
|
|
528
|
+
if (trigger) {
|
|
529
|
+
trigger.setAttribute("data-hl-tooltip", tipId);
|
|
530
|
+
trigger.setAttribute("aria-describedby", tipId);
|
|
531
|
+
}
|
|
532
|
+
if (host.value) destroy = enhanceTooltip2(host.value).destroy;
|
|
533
|
+
});
|
|
534
|
+
onBeforeUnmount2(() => {
|
|
535
|
+
destroy?.();
|
|
536
|
+
destroy = null;
|
|
537
|
+
});
|
|
538
|
+
return () => h5("span", { ...attrs, ref: host, style: "position:relative;display:inline-block" }, [
|
|
539
|
+
slots.default?.(),
|
|
540
|
+
h5("span", { id: tipId, role: "tooltip", hidden: true }, props.label ?? slots.label?.())
|
|
541
|
+
]);
|
|
542
|
+
}
|
|
543
|
+
});
|
|
544
|
+
|
|
545
|
+
// src/components/breadcrumb.ts
|
|
546
|
+
import { defineComponent as defineComponent6, h as h6 } from "vue";
|
|
547
|
+
var Breadcrumb = defineComponent6({
|
|
548
|
+
name: "HlBreadcrumb",
|
|
549
|
+
inheritAttrs: false,
|
|
550
|
+
setup(_, { slots, attrs }) {
|
|
551
|
+
return () => h6(
|
|
552
|
+
"nav",
|
|
553
|
+
{
|
|
554
|
+
...attrs,
|
|
555
|
+
"data-hl-breadcrumb": "",
|
|
556
|
+
"aria-label": attrs["aria-label"] ?? "Breadcrumb"
|
|
557
|
+
},
|
|
558
|
+
[h6("ol", slots.default?.())]
|
|
559
|
+
);
|
|
560
|
+
}
|
|
561
|
+
});
|
|
562
|
+
var BreadcrumbItem = defineComponent6({
|
|
563
|
+
name: "HlBreadcrumbItem",
|
|
564
|
+
inheritAttrs: false,
|
|
565
|
+
props: {
|
|
566
|
+
href: { type: String, default: void 0 },
|
|
567
|
+
current: { type: Boolean, default: false }
|
|
568
|
+
},
|
|
569
|
+
setup(props, { slots, attrs }) {
|
|
570
|
+
return () => h6("li", { ...attrs }, [
|
|
571
|
+
props.current || !props.href ? h6("span", { "aria-current": props.current ? "page" : void 0 }, slots.default?.()) : h6("a", { href: props.href }, slots.default?.())
|
|
572
|
+
]);
|
|
573
|
+
}
|
|
574
|
+
});
|
|
575
|
+
|
|
576
|
+
// src/components/combobox.ts
|
|
577
|
+
import { defineComponent as defineComponent7, h as h7, watch as watch5 } from "vue";
|
|
578
|
+
import {
|
|
579
|
+
enhanceCombobox as enhanceCombobox2
|
|
580
|
+
} from "@hydrateless/enhancers";
|
|
581
|
+
var Combobox = defineComponent7({
|
|
582
|
+
name: "HlCombobox",
|
|
583
|
+
inheritAttrs: false,
|
|
584
|
+
props: {
|
|
585
|
+
filter: { type: Boolean, default: void 0 },
|
|
586
|
+
autoHighlight: {
|
|
587
|
+
type: Boolean,
|
|
588
|
+
default: void 0
|
|
589
|
+
},
|
|
590
|
+
/** Controlled committed value (`v-model`). */
|
|
591
|
+
modelValue: { type: String, default: void 0 },
|
|
592
|
+
/** Initial committed value for uncontrolled usage. */
|
|
593
|
+
defaultValue: { type: String, default: void 0 }
|
|
594
|
+
},
|
|
595
|
+
emits: ["select", "update:modelValue"],
|
|
596
|
+
setup(props, { slots, attrs, emit }) {
|
|
597
|
+
const { host, api } = useHostEnhancer(
|
|
598
|
+
(el) => enhanceCombobox2(el, {
|
|
599
|
+
filter: props.filter,
|
|
600
|
+
autoHighlight: props.autoHighlight,
|
|
601
|
+
defaultValue: props.modelValue ?? props.defaultValue,
|
|
602
|
+
onValueChange: (value) => {
|
|
603
|
+
emit("select", value);
|
|
604
|
+
emit("update:modelValue", value);
|
|
605
|
+
}
|
|
606
|
+
})
|
|
607
|
+
);
|
|
608
|
+
watch5(
|
|
609
|
+
() => props.modelValue,
|
|
610
|
+
(value) => {
|
|
611
|
+
if (value != null) api.value?.setValue(value);
|
|
612
|
+
}
|
|
613
|
+
);
|
|
614
|
+
return () => h7("div", { ...attrs, "data-hl-combobox": "", ref: host }, slots.default?.());
|
|
615
|
+
}
|
|
616
|
+
});
|
|
617
|
+
var ComboboxInput = defineComponent7({
|
|
618
|
+
name: "HlComboboxInput",
|
|
619
|
+
inheritAttrs: false,
|
|
620
|
+
props: {
|
|
621
|
+
styled: { type: Boolean, default: true }
|
|
622
|
+
},
|
|
623
|
+
setup(props, { attrs }) {
|
|
624
|
+
return () => h7("input", { ...attrs, class: cx(props.styled && "hl-input", attrs.class) });
|
|
625
|
+
}
|
|
626
|
+
});
|
|
627
|
+
var ComboboxList = defineComponent7({
|
|
628
|
+
name: "HlComboboxList",
|
|
629
|
+
inheritAttrs: false,
|
|
630
|
+
setup(_, { slots, attrs }) {
|
|
631
|
+
return () => h7("ul", { ...attrs, role: "listbox", hidden: true }, slots.default?.());
|
|
632
|
+
}
|
|
633
|
+
});
|
|
634
|
+
var ComboboxOption = defineComponent7({
|
|
635
|
+
name: "HlComboboxOption",
|
|
636
|
+
inheritAttrs: false,
|
|
637
|
+
props: {
|
|
638
|
+
value: { type: String, required: true }
|
|
639
|
+
},
|
|
640
|
+
setup(props, { slots, attrs }) {
|
|
641
|
+
return () => h7(
|
|
642
|
+
"li",
|
|
643
|
+
{ ...attrs, role: "option", "data-hl-value": props.value },
|
|
644
|
+
slots.default?.() ?? props.value
|
|
645
|
+
);
|
|
646
|
+
}
|
|
647
|
+
});
|
|
648
|
+
|
|
649
|
+
// src/components/command.ts
|
|
650
|
+
import { defineComponent as defineComponent8, h as h8 } from "vue";
|
|
651
|
+
import { enhanceCommand as enhanceCommand2 } from "@hydrateless/enhancers";
|
|
652
|
+
var Command = defineComponent8({
|
|
653
|
+
name: "HlCommand",
|
|
654
|
+
inheritAttrs: false,
|
|
655
|
+
props: {
|
|
656
|
+
hotkey: { type: String, default: void 0 }
|
|
657
|
+
},
|
|
658
|
+
emits: ["select"],
|
|
659
|
+
setup(props, { slots, attrs, emit }) {
|
|
660
|
+
const { host } = useHostEnhancer(
|
|
661
|
+
(el) => enhanceCommand2(el, {
|
|
662
|
+
hotkey: props.hotkey,
|
|
663
|
+
onCommand: (value) => emit("select", value)
|
|
664
|
+
})
|
|
665
|
+
);
|
|
666
|
+
return () => h8(
|
|
667
|
+
"div",
|
|
668
|
+
{ ...attrs, "data-hl-command": "", "data-hl-command-hotkey": props.hotkey, ref: host },
|
|
669
|
+
slots.default?.()
|
|
670
|
+
);
|
|
671
|
+
}
|
|
672
|
+
});
|
|
673
|
+
var CommandInput = defineComponent8({
|
|
674
|
+
name: "HlCommandInput",
|
|
675
|
+
inheritAttrs: false,
|
|
676
|
+
props: {
|
|
677
|
+
styled: { type: Boolean, default: true }
|
|
678
|
+
},
|
|
679
|
+
setup(props, { attrs }) {
|
|
680
|
+
return () => h8("input", {
|
|
681
|
+
...attrs,
|
|
682
|
+
class: cx(props.styled && "hl-input", attrs.class),
|
|
683
|
+
"data-hl-command-input": ""
|
|
684
|
+
});
|
|
685
|
+
}
|
|
686
|
+
});
|
|
687
|
+
var CommandList = defineComponent8({
|
|
688
|
+
name: "HlCommandList",
|
|
689
|
+
inheritAttrs: false,
|
|
690
|
+
setup(_, { slots, attrs }) {
|
|
691
|
+
return () => h8("div", { ...attrs, "data-hl-command-list": "", role: "listbox" }, slots.default?.());
|
|
692
|
+
}
|
|
693
|
+
});
|
|
694
|
+
var CommandGroup = defineComponent8({
|
|
695
|
+
name: "HlCommandGroup",
|
|
696
|
+
inheritAttrs: false,
|
|
697
|
+
setup(_, { slots, attrs }) {
|
|
698
|
+
return () => {
|
|
699
|
+
const children = [];
|
|
700
|
+
if (slots.label) {
|
|
701
|
+
children.push(
|
|
702
|
+
h8("div", { class: "hl-command-group-label", role: "presentation" }, slots.label())
|
|
703
|
+
);
|
|
704
|
+
}
|
|
705
|
+
if (slots.default) children.push(...slots.default());
|
|
706
|
+
return h8("div", { ...attrs, "data-hl-command-group": "" }, children);
|
|
707
|
+
};
|
|
708
|
+
}
|
|
709
|
+
});
|
|
710
|
+
var CommandItem = defineComponent8({
|
|
711
|
+
name: "HlCommandItem",
|
|
712
|
+
inheritAttrs: false,
|
|
713
|
+
props: {
|
|
714
|
+
value: { type: String, required: true },
|
|
715
|
+
keywords: { type: String, default: void 0 }
|
|
716
|
+
},
|
|
717
|
+
setup(props, { slots, attrs }) {
|
|
718
|
+
return () => h8(
|
|
719
|
+
"div",
|
|
720
|
+
{
|
|
721
|
+
...attrs,
|
|
722
|
+
role: "option",
|
|
723
|
+
"data-hl-value": props.value,
|
|
724
|
+
"data-hl-keywords": props.keywords
|
|
725
|
+
},
|
|
726
|
+
[slots.icon?.(), h8("span", slots.default?.())]
|
|
727
|
+
);
|
|
728
|
+
}
|
|
729
|
+
});
|
|
730
|
+
var CommandEmpty = defineComponent8({
|
|
731
|
+
name: "HlCommandEmpty",
|
|
732
|
+
inheritAttrs: false,
|
|
733
|
+
setup(_, { slots, attrs }) {
|
|
734
|
+
return () => h8(
|
|
735
|
+
"div",
|
|
736
|
+
{ ...attrs, "data-hl-command-empty": "", hidden: true },
|
|
737
|
+
slots.default?.() ?? "No results found."
|
|
738
|
+
);
|
|
739
|
+
}
|
|
740
|
+
});
|
|
741
|
+
|
|
742
|
+
// src/components/forms.ts
|
|
743
|
+
import {
|
|
744
|
+
computed,
|
|
745
|
+
defineComponent as defineComponent9,
|
|
746
|
+
h as h9,
|
|
747
|
+
inject,
|
|
748
|
+
provide
|
|
749
|
+
} from "vue";
|
|
750
|
+
var FieldKey = /* @__PURE__ */ Symbol("hl-field");
|
|
751
|
+
var fieldCounter = 0;
|
|
752
|
+
var Field = defineComponent9({
|
|
753
|
+
name: "HlField",
|
|
754
|
+
inheritAttrs: false,
|
|
755
|
+
props: {
|
|
756
|
+
id: { type: String, default: void 0 },
|
|
757
|
+
invalid: { type: Boolean, default: false },
|
|
758
|
+
required: { type: Boolean, default: false }
|
|
759
|
+
},
|
|
760
|
+
setup(props, { slots, attrs }) {
|
|
761
|
+
const baseId = props.id ?? `hl-field-${fieldCounter += 1}`;
|
|
762
|
+
provide(FieldKey, {
|
|
763
|
+
id: baseId,
|
|
764
|
+
helpId: `${baseId}-help`,
|
|
765
|
+
errorId: `${baseId}-error`,
|
|
766
|
+
invalid: props.invalid,
|
|
767
|
+
required: props.required
|
|
768
|
+
});
|
|
769
|
+
return () => h9(
|
|
770
|
+
"div",
|
|
771
|
+
{
|
|
772
|
+
...attrs,
|
|
773
|
+
class: cx("hl-field", attrs.class),
|
|
774
|
+
"data-hl-invalid": props.invalid || void 0
|
|
775
|
+
},
|
|
776
|
+
slots.default?.()
|
|
777
|
+
);
|
|
778
|
+
}
|
|
779
|
+
});
|
|
780
|
+
function useFieldBindings() {
|
|
781
|
+
const ctx = inject(FieldKey, null);
|
|
782
|
+
if (!ctx) return {};
|
|
783
|
+
const describedBy = [ctx.helpId, ctx.invalid ? ctx.errorId : null].filter(Boolean).join(" ");
|
|
784
|
+
return {
|
|
785
|
+
id: ctx.id,
|
|
786
|
+
"aria-describedby": describedBy || void 0,
|
|
787
|
+
"aria-invalid": ctx.invalid || void 0
|
|
788
|
+
};
|
|
789
|
+
}
|
|
790
|
+
var FieldLabel = defineComponent9({
|
|
791
|
+
name: "HlFieldLabel",
|
|
792
|
+
inheritAttrs: false,
|
|
793
|
+
setup(_, { slots, attrs }) {
|
|
794
|
+
const ctx = inject(FieldKey, null);
|
|
795
|
+
return () => h9(
|
|
796
|
+
"label",
|
|
797
|
+
{
|
|
798
|
+
...attrs,
|
|
799
|
+
for: attrs.for ?? ctx?.id,
|
|
800
|
+
class: cx("hl-label", attrs.class),
|
|
801
|
+
"data-hl-required": ctx?.required || void 0
|
|
802
|
+
},
|
|
803
|
+
slots.default?.()
|
|
804
|
+
);
|
|
805
|
+
}
|
|
806
|
+
});
|
|
807
|
+
var FieldHelp = defineComponent9({
|
|
808
|
+
name: "HlFieldHelp",
|
|
809
|
+
inheritAttrs: false,
|
|
810
|
+
setup(_, { slots, attrs }) {
|
|
811
|
+
const ctx = inject(FieldKey, null);
|
|
812
|
+
return () => h9(
|
|
813
|
+
"p",
|
|
814
|
+
{ ...attrs, id: ctx?.helpId, class: cx("hl-help", attrs.class) },
|
|
815
|
+
slots.default?.()
|
|
816
|
+
);
|
|
817
|
+
}
|
|
818
|
+
});
|
|
819
|
+
var FieldError = defineComponent9({
|
|
820
|
+
name: "HlFieldError",
|
|
821
|
+
inheritAttrs: false,
|
|
822
|
+
setup(_, { slots, attrs }) {
|
|
823
|
+
const ctx = inject(FieldKey, null);
|
|
824
|
+
return () => {
|
|
825
|
+
const content = slots.default?.();
|
|
826
|
+
if (!content || Array.isArray(content) && content.length === 0) return null;
|
|
827
|
+
return h9(
|
|
828
|
+
"p",
|
|
829
|
+
{ ...attrs, id: ctx?.errorId, role: "alert", class: cx("hl-error", attrs.class) },
|
|
830
|
+
content
|
|
831
|
+
);
|
|
832
|
+
};
|
|
833
|
+
}
|
|
834
|
+
});
|
|
835
|
+
var Fieldset = defineComponent9({
|
|
836
|
+
name: "HlFieldset",
|
|
837
|
+
inheritAttrs: false,
|
|
838
|
+
setup(_, { slots, attrs }) {
|
|
839
|
+
return () => {
|
|
840
|
+
const children = [];
|
|
841
|
+
if (slots.legend) children.push(h9("legend", { class: "hl-legend" }, slots.legend()));
|
|
842
|
+
if (slots.default) children.push(...slots.default());
|
|
843
|
+
return h9("fieldset", { ...attrs, class: cx("hl-fieldset", attrs.class) }, children);
|
|
844
|
+
};
|
|
845
|
+
}
|
|
846
|
+
});
|
|
847
|
+
var Input = defineComponent9({
|
|
848
|
+
name: "HlInput",
|
|
849
|
+
inheritAttrs: false,
|
|
850
|
+
props: {
|
|
851
|
+
modelValue: { type: [String, Number], default: void 0 },
|
|
852
|
+
size: { type: String, default: void 0 },
|
|
853
|
+
invalid: { type: Boolean, default: false }
|
|
854
|
+
},
|
|
855
|
+
emits: ["update:modelValue"],
|
|
856
|
+
setup(props, { attrs, emit }) {
|
|
857
|
+
const field = useFieldBindings();
|
|
858
|
+
return () => h9("input", {
|
|
859
|
+
...field,
|
|
860
|
+
...attrs,
|
|
861
|
+
class: cx("hl-input", attrs.class),
|
|
862
|
+
"data-hl-size": props.size,
|
|
863
|
+
"data-hl-invalid": props.invalid || void 0,
|
|
864
|
+
"aria-invalid": props.invalid || attrs["aria-invalid"] || void 0,
|
|
865
|
+
value: props.modelValue,
|
|
866
|
+
onInput: (e) => emit("update:modelValue", e.target.value)
|
|
867
|
+
});
|
|
868
|
+
}
|
|
869
|
+
});
|
|
870
|
+
var Textarea = defineComponent9({
|
|
871
|
+
name: "HlTextarea",
|
|
872
|
+
inheritAttrs: false,
|
|
873
|
+
props: {
|
|
874
|
+
modelValue: { type: String, default: void 0 },
|
|
875
|
+
size: { type: String, default: void 0 },
|
|
876
|
+
invalid: { type: Boolean, default: false }
|
|
877
|
+
},
|
|
878
|
+
emits: ["update:modelValue"],
|
|
879
|
+
setup(props, { attrs, emit }) {
|
|
880
|
+
const field = useFieldBindings();
|
|
881
|
+
return () => h9("textarea", {
|
|
882
|
+
...field,
|
|
883
|
+
...attrs,
|
|
884
|
+
class: cx("hl-textarea", attrs.class),
|
|
885
|
+
"data-hl-size": props.size,
|
|
886
|
+
"data-hl-invalid": props.invalid || void 0,
|
|
887
|
+
"aria-invalid": props.invalid || void 0,
|
|
888
|
+
value: props.modelValue,
|
|
889
|
+
onInput: (e) => emit("update:modelValue", e.target.value)
|
|
890
|
+
});
|
|
891
|
+
}
|
|
892
|
+
});
|
|
893
|
+
var Select = defineComponent9({
|
|
894
|
+
name: "HlSelect",
|
|
895
|
+
inheritAttrs: false,
|
|
896
|
+
props: {
|
|
897
|
+
modelValue: { type: String, default: void 0 },
|
|
898
|
+
size: { type: String, default: void 0 },
|
|
899
|
+
invalid: { type: Boolean, default: false }
|
|
900
|
+
},
|
|
901
|
+
emits: ["update:modelValue"],
|
|
902
|
+
setup(props, { slots, attrs, emit }) {
|
|
903
|
+
const field = useFieldBindings();
|
|
904
|
+
return () => h9("span", { class: "hl-select-wrapper" }, [
|
|
905
|
+
h9(
|
|
906
|
+
"select",
|
|
907
|
+
{
|
|
908
|
+
...field,
|
|
909
|
+
...attrs,
|
|
910
|
+
class: cx("hl-select", attrs.class),
|
|
911
|
+
"data-hl-size": props.size,
|
|
912
|
+
"data-hl-invalid": props.invalid || void 0,
|
|
913
|
+
"aria-invalid": props.invalid || void 0,
|
|
914
|
+
value: props.modelValue,
|
|
915
|
+
onChange: (e) => emit("update:modelValue", e.target.value)
|
|
916
|
+
},
|
|
917
|
+
slots.default?.()
|
|
918
|
+
)
|
|
919
|
+
]);
|
|
920
|
+
}
|
|
921
|
+
});
|
|
922
|
+
var Checkbox = defineComponent9({
|
|
923
|
+
name: "HlCheckbox",
|
|
924
|
+
inheritAttrs: false,
|
|
925
|
+
props: {
|
|
926
|
+
modelValue: { type: Boolean, default: void 0 }
|
|
927
|
+
},
|
|
928
|
+
emits: ["update:modelValue"],
|
|
929
|
+
setup(props, { slots, attrs, emit }) {
|
|
930
|
+
return () => h9("label", { class: cx("hl-checkbox", attrs.class) }, [
|
|
931
|
+
h9("input", {
|
|
932
|
+
...attrs,
|
|
933
|
+
class: void 0,
|
|
934
|
+
type: "checkbox",
|
|
935
|
+
checked: props.modelValue,
|
|
936
|
+
onChange: (e) => emit("update:modelValue", e.target.checked)
|
|
937
|
+
}),
|
|
938
|
+
slots.default ? h9("span", slots.default()) : null
|
|
939
|
+
]);
|
|
940
|
+
}
|
|
941
|
+
});
|
|
942
|
+
var Switch = defineComponent9({
|
|
943
|
+
name: "HlSwitch",
|
|
944
|
+
inheritAttrs: false,
|
|
945
|
+
props: {
|
|
946
|
+
modelValue: { type: Boolean, default: void 0 }
|
|
947
|
+
},
|
|
948
|
+
emits: ["update:modelValue"],
|
|
949
|
+
setup(props, { slots, attrs, emit }) {
|
|
950
|
+
return () => h9("label", { "data-hl-switch": "", class: attrs.class }, [
|
|
951
|
+
h9("input", {
|
|
952
|
+
...attrs,
|
|
953
|
+
class: void 0,
|
|
954
|
+
type: "checkbox",
|
|
955
|
+
role: "switch",
|
|
956
|
+
checked: props.modelValue,
|
|
957
|
+
onChange: (e) => emit("update:modelValue", e.target.checked)
|
|
958
|
+
}),
|
|
959
|
+
slots.default?.()
|
|
960
|
+
]);
|
|
961
|
+
}
|
|
962
|
+
});
|
|
963
|
+
var Slider = defineComponent9({
|
|
964
|
+
name: "HlSlider",
|
|
965
|
+
inheritAttrs: false,
|
|
966
|
+
props: {
|
|
967
|
+
modelValue: { type: [String, Number], default: void 0 }
|
|
968
|
+
},
|
|
969
|
+
emits: ["update:modelValue"],
|
|
970
|
+
setup(props, { attrs, emit }) {
|
|
971
|
+
return () => h9("input", {
|
|
972
|
+
...attrs,
|
|
973
|
+
type: "range",
|
|
974
|
+
class: cx("hl-slider", attrs.class),
|
|
975
|
+
value: props.modelValue,
|
|
976
|
+
onInput: (e) => emit("update:modelValue", e.target.value)
|
|
977
|
+
});
|
|
978
|
+
}
|
|
979
|
+
});
|
|
980
|
+
var RadioGroupKey = /* @__PURE__ */ Symbol("hl-radio-group");
|
|
981
|
+
var RadioGroup = defineComponent9({
|
|
982
|
+
name: "HlRadioGroup",
|
|
983
|
+
inheritAttrs: false,
|
|
984
|
+
props: {
|
|
985
|
+
modelValue: { type: String, default: void 0 },
|
|
986
|
+
name: { type: String, default: void 0 }
|
|
987
|
+
},
|
|
988
|
+
emits: ["update:modelValue"],
|
|
989
|
+
setup(props, { slots, attrs, emit }) {
|
|
990
|
+
provide(RadioGroupKey, {
|
|
991
|
+
get name() {
|
|
992
|
+
return props.name;
|
|
993
|
+
},
|
|
994
|
+
get value() {
|
|
995
|
+
return props.modelValue;
|
|
996
|
+
},
|
|
997
|
+
select: (value) => emit("update:modelValue", value)
|
|
998
|
+
});
|
|
999
|
+
return () => h9(
|
|
1000
|
+
"div",
|
|
1001
|
+
{ ...attrs, role: "radiogroup", class: cx("hl-radio-group", attrs.class) },
|
|
1002
|
+
slots.default?.()
|
|
1003
|
+
);
|
|
1004
|
+
}
|
|
1005
|
+
});
|
|
1006
|
+
var Radio = defineComponent9({
|
|
1007
|
+
name: "HlRadio",
|
|
1008
|
+
inheritAttrs: false,
|
|
1009
|
+
props: {
|
|
1010
|
+
value: { type: String, required: true }
|
|
1011
|
+
},
|
|
1012
|
+
setup(props, { slots, attrs }) {
|
|
1013
|
+
const group = inject(RadioGroupKey, null);
|
|
1014
|
+
const checked = computed(() => group ? group.value === props.value : void 0);
|
|
1015
|
+
return () => h9("label", { class: cx("hl-radio", attrs.class) }, [
|
|
1016
|
+
h9("input", {
|
|
1017
|
+
...attrs,
|
|
1018
|
+
class: void 0,
|
|
1019
|
+
type: "radio",
|
|
1020
|
+
name: attrs.name ?? group?.name,
|
|
1021
|
+
value: props.value,
|
|
1022
|
+
checked: checked.value,
|
|
1023
|
+
onChange: () => group?.select(props.value)
|
|
1024
|
+
}),
|
|
1025
|
+
slots.default ? h9("span", slots.default()) : null
|
|
1026
|
+
]);
|
|
1027
|
+
}
|
|
1028
|
+
});
|
|
1029
|
+
var SegmentedControl = defineComponent9({
|
|
1030
|
+
name: "HlSegmentedControl",
|
|
1031
|
+
inheritAttrs: false,
|
|
1032
|
+
props: {
|
|
1033
|
+
modelValue: { type: String, default: void 0 },
|
|
1034
|
+
options: {
|
|
1035
|
+
type: Array,
|
|
1036
|
+
default: () => []
|
|
1037
|
+
},
|
|
1038
|
+
name: { type: String, default: void 0 },
|
|
1039
|
+
size: { type: String, default: void 0 }
|
|
1040
|
+
},
|
|
1041
|
+
emits: ["update:modelValue"],
|
|
1042
|
+
setup(props, { attrs, emit }) {
|
|
1043
|
+
const groupName = props.name ?? `hl-seg-${fieldCounter += 1}`;
|
|
1044
|
+
return () => h9(
|
|
1045
|
+
"div",
|
|
1046
|
+
{
|
|
1047
|
+
...attrs,
|
|
1048
|
+
role: "radiogroup",
|
|
1049
|
+
class: cx("hl-segmented", attrs.class),
|
|
1050
|
+
"data-hl-size": props.size
|
|
1051
|
+
},
|
|
1052
|
+
props.options.map(
|
|
1053
|
+
(option) => h9("label", { class: "hl-segmented-item", key: option.value }, [
|
|
1054
|
+
h9("input", {
|
|
1055
|
+
type: "radio",
|
|
1056
|
+
name: groupName,
|
|
1057
|
+
value: option.value,
|
|
1058
|
+
checked: props.modelValue === option.value,
|
|
1059
|
+
disabled: option.disabled,
|
|
1060
|
+
onChange: () => emit("update:modelValue", option.value)
|
|
1061
|
+
}),
|
|
1062
|
+
h9("span", option.label)
|
|
1063
|
+
])
|
|
1064
|
+
)
|
|
1065
|
+
);
|
|
1066
|
+
}
|
|
1067
|
+
});
|
|
1068
|
+
|
|
1069
|
+
// src/components/button.ts
|
|
1070
|
+
import { defineComponent as defineComponent10, h as h10 } from "vue";
|
|
1071
|
+
var Button = defineComponent10({
|
|
1072
|
+
name: "HlButton",
|
|
1073
|
+
inheritAttrs: false,
|
|
1074
|
+
props: {
|
|
1075
|
+
variant: {
|
|
1076
|
+
type: String,
|
|
1077
|
+
default: void 0
|
|
1078
|
+
},
|
|
1079
|
+
intent: {
|
|
1080
|
+
type: String,
|
|
1081
|
+
default: void 0
|
|
1082
|
+
},
|
|
1083
|
+
size: { type: String, default: void 0 },
|
|
1084
|
+
block: { type: Boolean, default: false },
|
|
1085
|
+
icon: { type: Boolean, default: false },
|
|
1086
|
+
loading: { type: Boolean, default: false }
|
|
1087
|
+
},
|
|
1088
|
+
setup(props, { slots, attrs }) {
|
|
1089
|
+
return () => h10(
|
|
1090
|
+
"button",
|
|
1091
|
+
{
|
|
1092
|
+
type: "button",
|
|
1093
|
+
...attrs,
|
|
1094
|
+
class: cx("hl-button", attrs.class),
|
|
1095
|
+
"data-hl-variant": props.variant,
|
|
1096
|
+
"data-hl-intent": props.intent,
|
|
1097
|
+
"data-hl-size": props.size,
|
|
1098
|
+
"data-hl-block": props.block || void 0,
|
|
1099
|
+
"data-hl-icon": props.icon || void 0,
|
|
1100
|
+
"data-hl-loading": props.loading || void 0,
|
|
1101
|
+
"aria-busy": props.loading || void 0,
|
|
1102
|
+
disabled: attrs.disabled || props.loading || void 0
|
|
1103
|
+
},
|
|
1104
|
+
slots.default?.()
|
|
1105
|
+
);
|
|
1106
|
+
}
|
|
1107
|
+
});
|
|
1108
|
+
|
|
1109
|
+
// src/components/feedback.ts
|
|
1110
|
+
import { defineComponent as defineComponent11, h as h11 } from "vue";
|
|
1111
|
+
var Alert = defineComponent11({
|
|
1112
|
+
name: "HlAlert",
|
|
1113
|
+
inheritAttrs: false,
|
|
1114
|
+
props: {
|
|
1115
|
+
intent: { type: String, default: void 0 },
|
|
1116
|
+
title: { type: String, default: void 0 }
|
|
1117
|
+
},
|
|
1118
|
+
setup(props, { slots, attrs }) {
|
|
1119
|
+
return () => h11(
|
|
1120
|
+
"div",
|
|
1121
|
+
{
|
|
1122
|
+
...attrs,
|
|
1123
|
+
role: attrs.role ?? "alert",
|
|
1124
|
+
class: cx("hl-alert", attrs.class),
|
|
1125
|
+
"data-hl-intent": props.intent
|
|
1126
|
+
},
|
|
1127
|
+
[
|
|
1128
|
+
slots.icon?.(),
|
|
1129
|
+
h11("div", { class: "hl-alert-body" }, [
|
|
1130
|
+
props.title != null ? h11("p", { class: "hl-alert-title" }, props.title) : null,
|
|
1131
|
+
slots.default?.()
|
|
1132
|
+
])
|
|
1133
|
+
]
|
|
1134
|
+
);
|
|
1135
|
+
}
|
|
1136
|
+
});
|
|
1137
|
+
var Badge = defineComponent11({
|
|
1138
|
+
name: "HlBadge",
|
|
1139
|
+
inheritAttrs: false,
|
|
1140
|
+
props: {
|
|
1141
|
+
intent: { type: String, default: void 0 },
|
|
1142
|
+
variant: { type: String, default: void 0 },
|
|
1143
|
+
size: { type: String, default: void 0 }
|
|
1144
|
+
},
|
|
1145
|
+
setup(props, { slots, attrs }) {
|
|
1146
|
+
return () => h11(
|
|
1147
|
+
"span",
|
|
1148
|
+
{
|
|
1149
|
+
...attrs,
|
|
1150
|
+
class: cx("hl-badge", attrs.class),
|
|
1151
|
+
"data-hl-intent": props.intent,
|
|
1152
|
+
"data-hl-variant": props.variant,
|
|
1153
|
+
"data-hl-size": props.size
|
|
1154
|
+
},
|
|
1155
|
+
slots.default?.()
|
|
1156
|
+
);
|
|
1157
|
+
}
|
|
1158
|
+
});
|
|
1159
|
+
var Progress = defineComponent11({
|
|
1160
|
+
name: "HlProgress",
|
|
1161
|
+
inheritAttrs: false,
|
|
1162
|
+
props: {
|
|
1163
|
+
value: { type: Number, default: void 0 },
|
|
1164
|
+
max: { type: Number, default: 100 },
|
|
1165
|
+
intent: {
|
|
1166
|
+
type: String,
|
|
1167
|
+
default: void 0
|
|
1168
|
+
},
|
|
1169
|
+
size: { type: String, default: void 0 }
|
|
1170
|
+
},
|
|
1171
|
+
setup(props, { attrs }) {
|
|
1172
|
+
return () => h11("progress", {
|
|
1173
|
+
...attrs,
|
|
1174
|
+
class: cx("hl-progress", attrs.class),
|
|
1175
|
+
"data-hl-intent": props.intent,
|
|
1176
|
+
"data-hl-size": props.size,
|
|
1177
|
+
value: props.value,
|
|
1178
|
+
max: props.max
|
|
1179
|
+
});
|
|
1180
|
+
}
|
|
1181
|
+
});
|
|
1182
|
+
var Spinner = defineComponent11({
|
|
1183
|
+
name: "HlSpinner",
|
|
1184
|
+
inheritAttrs: false,
|
|
1185
|
+
props: {
|
|
1186
|
+
size: { type: String, default: void 0 },
|
|
1187
|
+
label: { type: String, default: "Loading" }
|
|
1188
|
+
},
|
|
1189
|
+
setup(props, { attrs }) {
|
|
1190
|
+
return () => h11("span", {
|
|
1191
|
+
...attrs,
|
|
1192
|
+
class: cx("hl-spinner", attrs.class),
|
|
1193
|
+
"data-hl-size": props.size,
|
|
1194
|
+
role: "status",
|
|
1195
|
+
"aria-label": props.label
|
|
1196
|
+
});
|
|
1197
|
+
}
|
|
1198
|
+
});
|
|
1199
|
+
var Skeleton = defineComponent11({
|
|
1200
|
+
name: "HlSkeleton",
|
|
1201
|
+
inheritAttrs: false,
|
|
1202
|
+
props: {
|
|
1203
|
+
variant: { type: String, default: void 0 },
|
|
1204
|
+
width: { type: [String, Number], default: void 0 },
|
|
1205
|
+
height: { type: [String, Number], default: void 0 }
|
|
1206
|
+
},
|
|
1207
|
+
setup(props, { attrs }) {
|
|
1208
|
+
return () => h11("span", {
|
|
1209
|
+
...attrs,
|
|
1210
|
+
class: cx("hl-skeleton", attrs.class),
|
|
1211
|
+
"data-hl-variant": props.variant,
|
|
1212
|
+
style: {
|
|
1213
|
+
...props.width != null ? { inlineSize: props.width } : {},
|
|
1214
|
+
...props.height != null ? { blockSize: props.height } : {},
|
|
1215
|
+
...typeof attrs.style === "object" ? attrs.style : {}
|
|
1216
|
+
},
|
|
1217
|
+
"aria-hidden": "true"
|
|
1218
|
+
});
|
|
1219
|
+
}
|
|
1220
|
+
});
|
|
1221
|
+
var ToastRegion = defineComponent11({
|
|
1222
|
+
name: "HlToastRegion",
|
|
1223
|
+
inheritAttrs: false,
|
|
1224
|
+
setup(_, { attrs }) {
|
|
1225
|
+
return () => h11("div", { ...attrs, "data-hl-toast-region": "" });
|
|
1226
|
+
}
|
|
1227
|
+
});
|
|
1228
|
+
|
|
1229
|
+
// src/components/data.ts
|
|
1230
|
+
import { defineComponent as defineComponent12, h as h12, ref as ref4 } from "vue";
|
|
1231
|
+
var Card = defineComponent12({
|
|
1232
|
+
name: "HlCard",
|
|
1233
|
+
inheritAttrs: false,
|
|
1234
|
+
props: {
|
|
1235
|
+
interactive: { type: Boolean, default: false }
|
|
1236
|
+
},
|
|
1237
|
+
setup(props, { slots, attrs }) {
|
|
1238
|
+
return () => h12(
|
|
1239
|
+
"div",
|
|
1240
|
+
{
|
|
1241
|
+
...attrs,
|
|
1242
|
+
class: cx("hl-card", attrs.class),
|
|
1243
|
+
"data-hl-interactive": props.interactive || void 0
|
|
1244
|
+
},
|
|
1245
|
+
slots.default?.()
|
|
1246
|
+
);
|
|
1247
|
+
}
|
|
1248
|
+
});
|
|
1249
|
+
function part(name, tag, klass) {
|
|
1250
|
+
return defineComponent12({
|
|
1251
|
+
name,
|
|
1252
|
+
inheritAttrs: false,
|
|
1253
|
+
setup(_, { slots, attrs }) {
|
|
1254
|
+
return () => h12(tag, { ...attrs, class: cx(klass, attrs.class) }, slots.default?.());
|
|
1255
|
+
}
|
|
1256
|
+
});
|
|
1257
|
+
}
|
|
1258
|
+
var CardHeader = part("HlCardHeader", "div", "hl-card-header");
|
|
1259
|
+
var CardBody = part("HlCardBody", "div", "hl-card-body");
|
|
1260
|
+
var CardFooter = part("HlCardFooter", "div", "hl-card-footer");
|
|
1261
|
+
var CardTitle = part("HlCardTitle", "h3", "hl-card-title");
|
|
1262
|
+
var CardDescription = part("HlCardDescription", "p", "hl-card-description");
|
|
1263
|
+
var Avatar = defineComponent12({
|
|
1264
|
+
name: "HlAvatar",
|
|
1265
|
+
inheritAttrs: false,
|
|
1266
|
+
props: {
|
|
1267
|
+
src: { type: String, default: void 0 },
|
|
1268
|
+
alt: { type: String, default: "" },
|
|
1269
|
+
size: { type: String, default: void 0 },
|
|
1270
|
+
shape: { type: String, default: void 0 }
|
|
1271
|
+
},
|
|
1272
|
+
setup(props, { slots, attrs }) {
|
|
1273
|
+
const failed = ref4(false);
|
|
1274
|
+
return () => h12(
|
|
1275
|
+
"span",
|
|
1276
|
+
{
|
|
1277
|
+
...attrs,
|
|
1278
|
+
class: cx("hl-avatar", attrs.class),
|
|
1279
|
+
"data-hl-size": props.size,
|
|
1280
|
+
"data-hl-shape": props.shape === "square" ? "square" : void 0
|
|
1281
|
+
},
|
|
1282
|
+
props.src && !failed.value ? h12("img", { src: props.src, alt: props.alt, onError: () => failed.value = true }) : slots.default?.()
|
|
1283
|
+
);
|
|
1284
|
+
}
|
|
1285
|
+
});
|
|
1286
|
+
var AvatarGroup = part("HlAvatarGroup", "div", "hl-avatar-group");
|
|
1287
|
+
var Kbd = part("HlKbd", "kbd", "hl-kbd");
|
|
1288
|
+
var Separator = defineComponent12({
|
|
1289
|
+
name: "HlSeparator",
|
|
1290
|
+
inheritAttrs: false,
|
|
1291
|
+
props: {
|
|
1292
|
+
orientation: { type: String, default: "horizontal" },
|
|
1293
|
+
decorative: { type: Boolean, default: false }
|
|
1294
|
+
},
|
|
1295
|
+
setup(props, { attrs }) {
|
|
1296
|
+
return () => h12("hr", {
|
|
1297
|
+
...attrs,
|
|
1298
|
+
class: cx("hl-separator", attrs.class),
|
|
1299
|
+
"data-hl-orientation": props.orientation === "vertical" ? "vertical" : void 0,
|
|
1300
|
+
"aria-orientation": props.orientation,
|
|
1301
|
+
role: props.decorative ? "presentation" : "separator"
|
|
1302
|
+
});
|
|
1303
|
+
}
|
|
1304
|
+
});
|
|
1305
|
+
|
|
1306
|
+
// src/components/navigation.ts
|
|
1307
|
+
import { defineComponent as defineComponent13, h as h13 } from "vue";
|
|
1308
|
+
import { enhanceToc as enhanceToc2 } from "@hydrateless/enhancers";
|
|
1309
|
+
var ELLIPSIS = "ellipsis";
|
|
1310
|
+
function range(start, end) {
|
|
1311
|
+
return Array.from({ length: end - start + 1 }, (_, i) => start + i);
|
|
1312
|
+
}
|
|
1313
|
+
function paginationRange(page, count, siblingCount) {
|
|
1314
|
+
const totalNumbers = siblingCount * 2 + 5;
|
|
1315
|
+
if (totalNumbers >= count) return range(1, count);
|
|
1316
|
+
const leftSibling = Math.max(page - siblingCount, 1);
|
|
1317
|
+
const rightSibling = Math.min(page + siblingCount, count);
|
|
1318
|
+
const showLeftDots = leftSibling > 2;
|
|
1319
|
+
const showRightDots = rightSibling < count - 1;
|
|
1320
|
+
if (!showLeftDots && showRightDots) return [...range(1, siblingCount * 2 + 3), ELLIPSIS, count];
|
|
1321
|
+
if (showLeftDots && !showRightDots)
|
|
1322
|
+
return [1, ELLIPSIS, ...range(count - (siblingCount * 2 + 2), count)];
|
|
1323
|
+
return [1, ELLIPSIS, ...range(leftSibling, rightSibling), ELLIPSIS, count];
|
|
1324
|
+
}
|
|
1325
|
+
var Pagination = defineComponent13({
|
|
1326
|
+
name: "HlPagination",
|
|
1327
|
+
inheritAttrs: false,
|
|
1328
|
+
props: {
|
|
1329
|
+
page: { type: Number, required: true },
|
|
1330
|
+
count: { type: Number, required: true },
|
|
1331
|
+
siblingCount: { type: Number, default: 1 },
|
|
1332
|
+
showControls: { type: Boolean, default: true },
|
|
1333
|
+
prevLabel: { type: String, default: "\u2039" },
|
|
1334
|
+
nextLabel: { type: String, default: "\u203A" }
|
|
1335
|
+
},
|
|
1336
|
+
emits: ["update:page"],
|
|
1337
|
+
setup(props, { attrs, emit }) {
|
|
1338
|
+
const go = (target) => {
|
|
1339
|
+
if (target >= 1 && target <= props.count && target !== props.page)
|
|
1340
|
+
emit("update:page", target);
|
|
1341
|
+
};
|
|
1342
|
+
return () => {
|
|
1343
|
+
const items = paginationRange(props.page, props.count, props.siblingCount);
|
|
1344
|
+
const lis = [];
|
|
1345
|
+
if (props.showControls) {
|
|
1346
|
+
lis.push(
|
|
1347
|
+
h13("li", [
|
|
1348
|
+
h13(
|
|
1349
|
+
"button",
|
|
1350
|
+
{
|
|
1351
|
+
type: "button",
|
|
1352
|
+
class: "hl-pagination-item",
|
|
1353
|
+
"aria-label": "Previous page",
|
|
1354
|
+
disabled: props.page <= 1,
|
|
1355
|
+
onClick: () => go(props.page - 1)
|
|
1356
|
+
},
|
|
1357
|
+
props.prevLabel
|
|
1358
|
+
)
|
|
1359
|
+
])
|
|
1360
|
+
);
|
|
1361
|
+
}
|
|
1362
|
+
items.forEach((item, i) => {
|
|
1363
|
+
if (item === ELLIPSIS) {
|
|
1364
|
+
lis.push(
|
|
1365
|
+
h13("li", { key: `e${i}`, "aria-hidden": "true" }, [
|
|
1366
|
+
h13("span", { class: "hl-pagination-ellipsis" }, "\u2026")
|
|
1367
|
+
])
|
|
1368
|
+
);
|
|
1369
|
+
} else {
|
|
1370
|
+
lis.push(
|
|
1371
|
+
h13("li", { key: item }, [
|
|
1372
|
+
h13(
|
|
1373
|
+
"button",
|
|
1374
|
+
{
|
|
1375
|
+
type: "button",
|
|
1376
|
+
class: "hl-pagination-item",
|
|
1377
|
+
"aria-current": item === props.page ? "page" : void 0,
|
|
1378
|
+
"aria-label": `Page ${item}`,
|
|
1379
|
+
onClick: () => go(item)
|
|
1380
|
+
},
|
|
1381
|
+
String(item)
|
|
1382
|
+
)
|
|
1383
|
+
])
|
|
1384
|
+
);
|
|
1385
|
+
}
|
|
1386
|
+
});
|
|
1387
|
+
if (props.showControls) {
|
|
1388
|
+
lis.push(
|
|
1389
|
+
h13("li", [
|
|
1390
|
+
h13(
|
|
1391
|
+
"button",
|
|
1392
|
+
{
|
|
1393
|
+
type: "button",
|
|
1394
|
+
class: "hl-pagination-item",
|
|
1395
|
+
"aria-label": "Next page",
|
|
1396
|
+
disabled: props.page >= props.count,
|
|
1397
|
+
onClick: () => go(props.page + 1)
|
|
1398
|
+
},
|
|
1399
|
+
props.nextLabel
|
|
1400
|
+
)
|
|
1401
|
+
])
|
|
1402
|
+
);
|
|
1403
|
+
}
|
|
1404
|
+
return h13(
|
|
1405
|
+
"nav",
|
|
1406
|
+
{
|
|
1407
|
+
...attrs,
|
|
1408
|
+
class: cx("hl-pagination", attrs.class),
|
|
1409
|
+
"aria-label": attrs["aria-label"] ?? "Pagination"
|
|
1410
|
+
},
|
|
1411
|
+
[h13("ul", lis)]
|
|
1412
|
+
);
|
|
1413
|
+
};
|
|
1414
|
+
}
|
|
1415
|
+
});
|
|
1416
|
+
var Toc = defineComponent13({
|
|
1417
|
+
name: "HlToc",
|
|
1418
|
+
inheritAttrs: false,
|
|
1419
|
+
props: {
|
|
1420
|
+
contentSelector: { type: String, default: void 0 },
|
|
1421
|
+
headings: { type: String, default: void 0 },
|
|
1422
|
+
scrollSpy: { type: Boolean, default: void 0 }
|
|
1423
|
+
},
|
|
1424
|
+
setup(props, { attrs }) {
|
|
1425
|
+
const { host } = useHostEnhancer(
|
|
1426
|
+
(el) => enhanceToc2(el.ownerDocument, {
|
|
1427
|
+
contentSelector: props.contentSelector,
|
|
1428
|
+
headings: props.headings,
|
|
1429
|
+
scrollSpy: props.scrollSpy
|
|
1430
|
+
})
|
|
1431
|
+
);
|
|
1432
|
+
return () => h13("nav", { ...attrs, "data-hl-toc": "", ref: host });
|
|
1433
|
+
}
|
|
1434
|
+
});
|
|
1435
|
+
var SkipLink = defineComponent13({
|
|
1436
|
+
name: "HlSkipLink",
|
|
1437
|
+
inheritAttrs: false,
|
|
1438
|
+
setup(_, { slots, attrs }) {
|
|
1439
|
+
return () => h13(
|
|
1440
|
+
"a",
|
|
1441
|
+
{ ...attrs, class: cx("hl-skip-link", attrs.class) },
|
|
1442
|
+
slots.default?.() ?? "Skip to content"
|
|
1443
|
+
);
|
|
1444
|
+
}
|
|
1445
|
+
});
|
|
94
1446
|
export {
|
|
1447
|
+
Accordion,
|
|
1448
|
+
AccordionItem,
|
|
1449
|
+
Alert,
|
|
1450
|
+
Avatar,
|
|
1451
|
+
AvatarGroup,
|
|
1452
|
+
Badge,
|
|
1453
|
+
Breadcrumb,
|
|
1454
|
+
BreadcrumbItem,
|
|
1455
|
+
Button,
|
|
1456
|
+
Card,
|
|
1457
|
+
CardBody,
|
|
1458
|
+
CardDescription,
|
|
1459
|
+
CardFooter,
|
|
1460
|
+
CardHeader,
|
|
1461
|
+
CardTitle,
|
|
1462
|
+
Checkbox,
|
|
1463
|
+
Combobox,
|
|
1464
|
+
ComboboxInput,
|
|
1465
|
+
ComboboxList,
|
|
1466
|
+
ComboboxOption,
|
|
1467
|
+
Command,
|
|
1468
|
+
CommandEmpty,
|
|
1469
|
+
CommandGroup,
|
|
1470
|
+
CommandInput,
|
|
1471
|
+
CommandItem,
|
|
1472
|
+
CommandList,
|
|
1473
|
+
Disclosure,
|
|
1474
|
+
Drawer,
|
|
1475
|
+
DrawerBody,
|
|
1476
|
+
DrawerFooter,
|
|
1477
|
+
DrawerHeader,
|
|
1478
|
+
Dropdown,
|
|
1479
|
+
DropdownItem,
|
|
1480
|
+
DropdownMenu,
|
|
1481
|
+
DropdownSeparator,
|
|
1482
|
+
DropdownTrigger,
|
|
1483
|
+
Field,
|
|
1484
|
+
FieldError,
|
|
1485
|
+
FieldHelp,
|
|
1486
|
+
FieldLabel,
|
|
1487
|
+
Fieldset,
|
|
95
1488
|
HydratelessPlugin,
|
|
1489
|
+
Input,
|
|
1490
|
+
Kbd,
|
|
1491
|
+
Menu,
|
|
1492
|
+
MenuItem,
|
|
1493
|
+
Modal,
|
|
1494
|
+
ModalBody,
|
|
1495
|
+
ModalFooter,
|
|
1496
|
+
ModalHeader,
|
|
1497
|
+
Pagination,
|
|
1498
|
+
Popover,
|
|
1499
|
+
Progress,
|
|
1500
|
+
Radio,
|
|
1501
|
+
RadioGroup,
|
|
1502
|
+
SegmentedControl,
|
|
1503
|
+
Select,
|
|
1504
|
+
Separator,
|
|
1505
|
+
Skeleton,
|
|
1506
|
+
SkipLink,
|
|
1507
|
+
Slider,
|
|
1508
|
+
Spinner,
|
|
1509
|
+
Switch,
|
|
1510
|
+
Tab,
|
|
1511
|
+
TabList,
|
|
1512
|
+
TabPanel,
|
|
1513
|
+
Tabs,
|
|
1514
|
+
Textarea,
|
|
1515
|
+
ToastRegion,
|
|
1516
|
+
Toc,
|
|
1517
|
+
Tooltip,
|
|
96
1518
|
directives,
|
|
97
1519
|
useEnhancer,
|
|
1520
|
+
useFieldBindings,
|
|
98
1521
|
useToast,
|
|
99
1522
|
vHlAccordion,
|
|
100
1523
|
vHlCombobox,
|