@hydrateless/vue 0.5.0 → 0.7.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 CHANGED
@@ -10,7 +10,7 @@ enhancers, with automatic cleanup when components unmount.
10
10
  npm install hydrateless @hydrateless/vue
11
11
  ```
12
12
 
13
- Import the CSS once (e.g. in your entry):
13
+ Import the CSS once (e.g., in your entry):
14
14
 
15
15
  ```ts
16
16
  import 'hydrateless/hydrateless.css';
@@ -43,9 +43,39 @@ Then use the directives in any template:
43
43
 
44
44
  Available directives: `v-hl-accordion`, `v-hl-disclosure`, `v-hl-tabs`,
45
45
  `v-hl-dropdown`, `v-hl-modal`, `v-hl-drawer`, `v-hl-popover`, `v-hl-tooltip`,
46
- `v-hl-toc`. You can also import individual directives (e.g. `vHlTabs`) and
46
+ `v-hl-toc`. You can also import individual directives (e.g., `vHlTabs`) and
47
47
  register them locally.
48
48
 
49
+ ## Components
50
+
51
+ Interactive components support `v-model` on their state:
52
+
53
+ ```vue
54
+ <script setup lang="ts">
55
+ import { ref } from 'vue';
56
+ import { Tabs, TabList, Tab, TabPanel, Modal, ModalBody } from '@hydrateless/vue';
57
+
58
+ const tab = ref('overview');
59
+ const open = ref(false);
60
+ </script>
61
+
62
+ <template>
63
+ <Tabs v-model="tab">
64
+ <TabList>
65
+ <Tab value="overview">Overview</Tab>
66
+ <Tab value="install">Install</Tab>
67
+ </TabList>
68
+ <TabPanel>Zero runtime by default.</TabPanel>
69
+ <TabPanel><code>npm i hydrateless</code></TabPanel>
70
+ </Tabs>
71
+
72
+ <button @click="open = true">Open</button>
73
+ <Modal v-model:open="open">
74
+ <ModalBody>Body content.</ModalBody>
75
+ </Modal>
76
+ </template>
77
+ ```
78
+
49
79
  ## Composables
50
80
 
51
81
  ```vue
@@ -55,9 +85,10 @@ import { useEnhancer, useToast } from '@hydrateless/vue';
55
85
  import { enhanceDropdown } from '@hydrateless/enhancers';
56
86
 
57
87
  const menu = ref<HTMLElement | null>(null);
58
- useEnhancer(menu, enhanceDropdown);
88
+ const dropdown = useEnhancer(menu, enhanceDropdown);
89
+ // dropdown.value?.setOpen(true)
59
90
 
60
- const toast = useToast();
91
+ const toast = useToast(); // no provider required
61
92
  </script>
62
93
 
63
94
  <template>
package/dist/index.d.ts CHANGED
@@ -1,28 +1,28 @@
1
1
  import * as vue from 'vue';
2
- import { Ref, Plugin, Directive, PropType } from 'vue';
3
- import { Disposer, ToastOptions, EnhanceTabsOptions, EnhanceDropdownOptions, EnhanceMenuOptions, EnhanceComboboxOptions } from '@hydrateless/enhancers';
4
- export { Disposer } from '@hydrateless/enhancers';
2
+ import { Ref, ShallowRef, Plugin, Directive, PropType } from 'vue';
3
+ import * as _hydrateless_enhancers from '@hydrateless/enhancers';
4
+ import { EnhancerHandle, EnhanceToastOptions, ToastApi, EnhanceTabsOptions, EnhanceDropdownOptions, EnhanceMenuOptions, EnhanceComboboxOptions } from '@hydrateless/enhancers';
5
+ export { AccordionApi, ComboboxApi, Disposer, DrawerApi, DropdownApi, EnhancerHandle, ModalApi, PopoverApi, TabsApi, ToastApi, TooltipApi } from '@hydrateless/enhancers';
5
6
 
6
7
  /**
7
8
  * Attach any Hydrateless enhancer to a template ref for the lifetime of a
8
- * component. The enhancer's disposer is called automatically on unmount.
9
+ * component. Returns a shallow ref to the enhancer's imperative API; the
10
+ * instance is destroyed automatically on unmount.
9
11
  *
10
12
  * ```ts
11
13
  * const el = ref<HTMLElement | null>(null);
12
- * useEnhancer(el, enhanceTabs);
14
+ * const tabs = useEnhancer(el, enhanceTabs);
15
+ * tabs.value?.setValue('install');
13
16
  * ```
14
17
  */
15
- declare function useEnhancer(target: Ref<HTMLElement | null | undefined>, enhance: (container: HTMLElement) => Disposer): void;
18
+ declare function useEnhancer<Api = null>(target: Ref<HTMLElement | null | undefined>, enhance: (container: HTMLElement) => EnhancerHandle<Api>): ShallowRef<Api | null>;
16
19
 
17
- interface UseToastReturn {
18
- show: (message: string, options?: ToastOptions) => HTMLElement;
19
- dismiss: (toast: HTMLElement) => void;
20
- }
21
20
  /**
22
- * Sets up a toast region for the current component tree and returns an
23
- * imperative API. The region is torn down automatically on unmount.
21
+ * Imperative toast API backed by a lazily-created document-level region (or a
22
+ * `[data-hl-toast-region]` you render yourself, e.g. via `<ToastRegion>`).
23
+ * Safe to call from any component: no provider required.
24
24
  */
25
- declare function useToast(): UseToastReturn;
25
+ declare function useToast(options?: EnhanceToastOptions): ToastApi;
26
26
 
27
27
  /**
28
28
  * Registers every Hydrateless directive globally:
@@ -36,42 +36,85 @@ declare function useToast(): UseToastReturn;
36
36
  */
37
37
  declare const HydratelessPlugin: Plugin;
38
38
 
39
+ /** `v-hl-accordion` directive: single-open accordion behavior on the bound element. */
39
40
  declare const vHlAccordion: Directive<HTMLElement>;
41
+ /** `v-hl-disclosure` directive: groups `[data-hl-disclosure]` elements within the bound element. */
40
42
  declare const vHlDisclosure: Directive<HTMLElement>;
43
+ /** `v-hl-tabs` directive: ARIA and keyboard navigation for a `[data-hl-tabs]` element. */
41
44
  declare const vHlTabs: Directive<HTMLElement>;
45
+ /** `v-hl-dropdown` directive: menu-button behavior for a `[data-hl-dropdown]` element. */
42
46
  declare const vHlDropdown: Directive<HTMLElement>;
47
+ /** `v-hl-modal` directive: wires modal openers/closers and a focus trap within the bound element. */
43
48
  declare const vHlModal: Directive<HTMLElement>;
49
+ /** `v-hl-drawer` directive: wires drawer openers/closers within the bound element. */
44
50
  declare const vHlDrawer: Directive<HTMLElement>;
51
+ /** `v-hl-popover` directive: wires popover openers/closers within the bound element. */
45
52
  declare const vHlPopover: Directive<HTMLElement>;
53
+ /** `v-hl-tooltip` directive: wires `[data-hl-tooltip]` triggers within the bound element. */
46
54
  declare const vHlTooltip: Directive<HTMLElement>;
55
+ /** `v-hl-toc` directive: builds a table of contents from the surrounding document. */
47
56
  declare const vHlToc: Directive<HTMLElement>;
57
+ /** `v-hl-menu` directive: menubar/navigation behavior for a `[data-hl-menu]` element. */
48
58
  declare const vHlMenu: Directive<HTMLElement>;
59
+ /** `v-hl-combobox` directive: editable combobox behavior for a `[data-hl-combobox]` element. */
49
60
  declare const vHlCombobox: Directive<HTMLElement>;
61
+ /** `v-hl-command` directive: command-palette behavior for a `[data-hl-command]` element. */
50
62
  declare const vHlCommand: Directive<HTMLElement>;
51
63
  /** Map of directive names (without the `v-` prefix) to their definitions. */
52
64
  declare const directives: Record<string, Directive<HTMLElement>>;
53
65
 
54
66
  /**
55
- * Accordion root. Compose with `<AccordionItem>`. The enhancer enforces
56
- * single-open behavior (unless `allowMultiple`) and ARIA wiring.
67
+ * Accordion root of native `<details>` items. Compose with `<AccordionItem>`.
68
+ * Item values come from each `<AccordionItem value>`, defaulting to the index;
69
+ * open state works uncontrolled (`defaultValue` or `defaultOpen` on items) or
70
+ * with `v-model`.
57
71
  */
58
72
  declare const Accordion: vue.DefineComponent<vue.ExtractPropTypes<{
59
73
  allowMultiple: {
60
74
  type: BooleanConstructor;
61
75
  default: boolean;
62
76
  };
77
+ /** Controlled list of open item values (`v-model`). */
78
+ modelValue: {
79
+ type: PropType<string[]>;
80
+ default: undefined;
81
+ };
82
+ /** Initially open item values for uncontrolled usage. */
83
+ defaultValue: {
84
+ type: PropType<string[]>;
85
+ default: undefined;
86
+ };
63
87
  }>, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
64
88
  [key: string]: any;
65
- }>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
89
+ }>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", vue.PublicProps, Readonly<vue.ExtractPropTypes<{
66
90
  allowMultiple: {
67
91
  type: BooleanConstructor;
68
92
  default: boolean;
69
93
  };
70
- }>> & Readonly<{}>, {
94
+ /** Controlled list of open item values (`v-model`). */
95
+ modelValue: {
96
+ type: PropType<string[]>;
97
+ default: undefined;
98
+ };
99
+ /** Initially open item values for uncontrolled usage. */
100
+ defaultValue: {
101
+ type: PropType<string[]>;
102
+ default: undefined;
103
+ };
104
+ }>> & Readonly<{
105
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
106
+ }>, {
71
107
  allowMultiple: boolean;
108
+ modelValue: string[];
109
+ defaultValue: string[];
72
110
  }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
73
111
  /** A `<details>`-based accordion section. Use the `summary` slot for the trigger. */
74
112
  declare const AccordionItem: vue.DefineComponent<vue.ExtractPropTypes<{
113
+ /** Stable value identifying this item; defaults to its index. */
114
+ value: {
115
+ type: StringConstructor;
116
+ default: undefined;
117
+ };
75
118
  defaultOpen: {
76
119
  type: BooleanConstructor;
77
120
  default: boolean;
@@ -79,11 +122,17 @@ declare const AccordionItem: vue.DefineComponent<vue.ExtractPropTypes<{
79
122
  }>, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
80
123
  [key: string]: any;
81
124
  }>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
125
+ /** Stable value identifying this item; defaults to its index. */
126
+ value: {
127
+ type: StringConstructor;
128
+ default: undefined;
129
+ };
82
130
  defaultOpen: {
83
131
  type: BooleanConstructor;
84
132
  default: boolean;
85
133
  };
86
134
  }>> & Readonly<{}>, {
135
+ value: string;
87
136
  defaultOpen: boolean;
88
137
  }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
89
138
  /**
@@ -108,12 +157,14 @@ declare const Disclosure: vue.DefineComponent<vue.ExtractPropTypes<{
108
157
 
109
158
  /**
110
159
  * Tabbed interface root. Compose with `<TabList>`, `<Tab>`, and `<TabPanel>`.
160
+ * Tab values come from each `<Tab value>`, defaulting to the index; selection
161
+ * works uncontrolled (`defaultValue`) or with `v-model`.
111
162
  *
112
163
  * ```vue
113
- * <Tabs>
164
+ * <Tabs v-model="tab">
114
165
  * <TabList>
115
- * <Tab>Overview</Tab>
116
- * <Tab>Install</Tab>
166
+ * <Tab value="overview">Overview</Tab>
167
+ * <Tab value="install">Install</Tab>
117
168
  * </TabList>
118
169
  * <TabPanel>Zero runtime by default.</TabPanel>
119
170
  * <TabPanel>npm install hydrateless</TabPanel>
@@ -129,9 +180,19 @@ declare const Tabs: vue.DefineComponent<vue.ExtractPropTypes<{
129
180
  type: PropType<EnhanceTabsOptions["orientation"]>;
130
181
  default: undefined;
131
182
  };
183
+ /** Controlled value of the selected tab (`v-model`). */
184
+ modelValue: {
185
+ type: StringConstructor;
186
+ default: undefined;
187
+ };
188
+ /** Initial value for uncontrolled usage. */
189
+ defaultValue: {
190
+ type: StringConstructor;
191
+ default: undefined;
192
+ };
132
193
  }>, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
133
194
  [key: string]: any;
134
- }>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
195
+ }>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", vue.PublicProps, Readonly<vue.ExtractPropTypes<{
135
196
  activation: {
136
197
  type: PropType<EnhanceTabsOptions["activation"]>;
137
198
  default: undefined;
@@ -140,7 +201,21 @@ declare const Tabs: vue.DefineComponent<vue.ExtractPropTypes<{
140
201
  type: PropType<EnhanceTabsOptions["orientation"]>;
141
202
  default: undefined;
142
203
  };
143
- }>> & Readonly<{}>, {
204
+ /** Controlled value of the selected tab (`v-model`). */
205
+ modelValue: {
206
+ type: StringConstructor;
207
+ default: undefined;
208
+ };
209
+ /** Initial value for uncontrolled usage. */
210
+ defaultValue: {
211
+ type: StringConstructor;
212
+ default: undefined;
213
+ };
214
+ }>> & Readonly<{
215
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
216
+ }>, {
217
+ modelValue: string;
218
+ defaultValue: string;
144
219
  activation: "manual" | "automatic" | undefined;
145
220
  orientation: "horizontal" | "vertical" | undefined;
146
221
  }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
@@ -149,9 +224,23 @@ declare const TabList: vue.DefineComponent<{}, () => vue.VNode<vue.RendererNode,
149
224
  [key: string]: any;
150
225
  }>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
151
226
  /** A single tab trigger (`role="tab"`). */
152
- declare const Tab: vue.DefineComponent<{}, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
227
+ declare const Tab: vue.DefineComponent<vue.ExtractPropTypes<{
228
+ /** Stable value identifying this tab; defaults to its index. */
229
+ value: {
230
+ type: StringConstructor;
231
+ default: undefined;
232
+ };
233
+ }>, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
153
234
  [key: string]: any;
154
- }>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
235
+ }>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
236
+ /** Stable value identifying this tab; defaults to its index. */
237
+ value: {
238
+ type: StringConstructor;
239
+ default: undefined;
240
+ };
241
+ }>> & Readonly<{}>, {
242
+ value: string;
243
+ }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
155
244
  /** Content for the matching tab (`role="tabpanel"`). */
156
245
  declare const TabPanel: vue.DefineComponent<{}, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
157
246
  [key: string]: any;
@@ -160,22 +249,47 @@ declare const TabPanel: vue.DefineComponent<{}, () => vue.VNode<vue.RendererNode
160
249
  /**
161
250
  * Button-triggered menu (WAI-ARIA menu-button pattern). Compose with
162
251
  * `<DropdownTrigger>`, `<DropdownMenu>`, `<DropdownItem>`, and
163
- * `<DropdownSeparator>`.
252
+ * `<DropdownSeparator>`. Open state works uncontrolled or with
253
+ * `v-model:open`.
164
254
  */
165
255
  declare const Dropdown: vue.DefineComponent<vue.ExtractPropTypes<{
166
256
  placement: {
167
257
  type: PropType<EnhanceDropdownOptions["placement"]>;
168
258
  default: undefined;
169
259
  };
260
+ /** Controlled open state (`v-model:open`). */
261
+ open: {
262
+ type: PropType<boolean | undefined>;
263
+ default: undefined;
264
+ };
265
+ /** Open the menu initially for uncontrolled usage. */
266
+ defaultOpen: {
267
+ type: BooleanConstructor;
268
+ default: boolean;
269
+ };
170
270
  }>, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
171
271
  [key: string]: any;
172
- }>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
272
+ }>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, "update:open"[], "update:open", vue.PublicProps, Readonly<vue.ExtractPropTypes<{
173
273
  placement: {
174
274
  type: PropType<EnhanceDropdownOptions["placement"]>;
175
275
  default: undefined;
176
276
  };
177
- }>> & Readonly<{}>, {
178
- placement: "bottom" | "top" | undefined;
277
+ /** Controlled open state (`v-model:open`). */
278
+ open: {
279
+ type: PropType<boolean | undefined>;
280
+ default: undefined;
281
+ };
282
+ /** Open the menu initially for uncontrolled usage. */
283
+ defaultOpen: {
284
+ type: BooleanConstructor;
285
+ default: boolean;
286
+ };
287
+ }>> & Readonly<{
288
+ "onUpdate:open"?: ((...args: any[]) => any) | undefined;
289
+ }>, {
290
+ defaultOpen: boolean;
291
+ placement: _hydrateless_enhancers.Placement | undefined;
292
+ open: boolean | undefined;
179
293
  }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
180
294
  /** The button that opens the menu. */
181
295
  declare const DropdownTrigger: vue.DefineComponent<{}, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
@@ -238,8 +352,9 @@ declare const MenuItem: vue.DefineComponent<vue.ExtractPropTypes<{
238
352
  }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
239
353
 
240
354
  /**
241
- * Controlled dialog overlay on the native `<dialog>`. Drive with `open`; listen
242
- * for `close` (fired on Escape/backdrop). Compose with `<ModalHeader>`,
355
+ * Controlled dialog overlay on the native `<dialog>` plus the modal enhancer
356
+ * (focus trap, scroll-lock, background `inert`). Drive with `v-model:open`;
357
+ * Escape and backdrop clicks emit `update:open`. Compose with `<ModalHeader>`,
243
358
  * `<ModalBody>`, `<ModalFooter>`.
244
359
  */
245
360
  declare const Modal: vue.DefineComponent<vue.ExtractPropTypes<{
@@ -253,7 +368,7 @@ declare const Modal: vue.DefineComponent<vue.ExtractPropTypes<{
253
368
  };
254
369
  }>, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
255
370
  [key: string]: any;
256
- }>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, "close"[], "close", vue.PublicProps, Readonly<vue.ExtractPropTypes<{
371
+ }>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, "update:open"[], "update:open", vue.PublicProps, Readonly<vue.ExtractPropTypes<{
257
372
  open: {
258
373
  type: BooleanConstructor;
259
374
  required: true;
@@ -263,14 +378,14 @@ declare const Modal: vue.DefineComponent<vue.ExtractPropTypes<{
263
378
  default: boolean;
264
379
  };
265
380
  }>> & Readonly<{
266
- onClose?: ((...args: any[]) => any) | undefined;
381
+ "onUpdate:open"?: ((...args: any[]) => any) | undefined;
267
382
  }>, {
268
383
  closeOnBackdrop: boolean;
269
384
  }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
270
385
  /**
271
- * Controlled off-canvas panel on the native `<dialog>`. Drive with `open`;
272
- * choose a `side`. Compose with `<DrawerHeader>`, `<DrawerBody>`,
273
- * `<DrawerFooter>`.
386
+ * Controlled off-canvas panel on the native `<dialog>` plus the drawer
387
+ * enhancer. Drive with `v-model:open`; choose a `side`. Compose with
388
+ * `<DrawerHeader>`, `<DrawerBody>`, `<DrawerFooter>`.
274
389
  */
275
390
  declare const Drawer: vue.DefineComponent<vue.ExtractPropTypes<{
276
391
  open: {
@@ -287,7 +402,7 @@ declare const Drawer: vue.DefineComponent<vue.ExtractPropTypes<{
287
402
  };
288
403
  }>, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
289
404
  [key: string]: any;
290
- }>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, "close"[], "close", vue.PublicProps, Readonly<vue.ExtractPropTypes<{
405
+ }>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, "update:open"[], "update:open", vue.PublicProps, Readonly<vue.ExtractPropTypes<{
291
406
  open: {
292
407
  type: BooleanConstructor;
293
408
  required: true;
@@ -301,30 +416,41 @@ declare const Drawer: vue.DefineComponent<vue.ExtractPropTypes<{
301
416
  default: boolean;
302
417
  };
303
418
  }>> & Readonly<{
304
- onClose?: ((...args: any[]) => any) | undefined;
419
+ "onUpdate:open"?: ((...args: any[]) => any) | undefined;
305
420
  }>, {
306
421
  closeOnBackdrop: boolean;
307
422
  side: "left" | "right";
308
423
  }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
424
+ /** Header region of a {@link Modal}. */
309
425
  declare const ModalHeader: vue.DefineComponent<{}, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
310
426
  [key: string]: any;
311
427
  }>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
428
+ /** Body region of a {@link Modal}. */
312
429
  declare const ModalBody: vue.DefineComponent<{}, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
313
430
  [key: string]: any;
314
431
  }>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
432
+ /** Footer region of a {@link Modal}. */
315
433
  declare const ModalFooter: vue.DefineComponent<{}, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
316
434
  [key: string]: any;
317
435
  }>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
436
+ /** Header region of a {@link Drawer}. */
318
437
  declare const DrawerHeader: vue.DefineComponent<{}, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
319
438
  [key: string]: any;
320
439
  }>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
440
+ /** Body region of a {@link Drawer}. */
321
441
  declare const DrawerBody: vue.DefineComponent<{}, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
322
442
  [key: string]: any;
323
443
  }>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
444
+ /** Footer region of a {@link Drawer}. */
324
445
  declare const DrawerFooter: vue.DefineComponent<{}, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
325
446
  [key: string]: any;
326
447
  }>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
327
- /** Controlled floating content. Visibility follows `open`. Pair with your own trigger. */
448
+ /**
449
+ * Controlled floating content built on the native Popover API. The surface
450
+ * lives in the top layer with light-dismiss and Escape handled by the browser;
451
+ * visibility follows `open` and `update:open` is emitted when the browser
452
+ * dismisses it, so `v-model:open` stays in sync. Pair with your own trigger.
453
+ */
328
454
  declare const Popover: vue.DefineComponent<vue.ExtractPropTypes<{
329
455
  open: {
330
456
  type: BooleanConstructor;
@@ -332,12 +458,14 @@ declare const Popover: vue.DefineComponent<vue.ExtractPropTypes<{
332
458
  };
333
459
  }>, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
334
460
  [key: string]: any;
335
- }>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
461
+ }>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, "update:open"[], "update:open", vue.PublicProps, Readonly<vue.ExtractPropTypes<{
336
462
  open: {
337
463
  type: BooleanConstructor;
338
464
  default: boolean;
339
465
  };
340
- }>> & Readonly<{}>, {
466
+ }>> & Readonly<{
467
+ "onUpdate:open"?: ((...args: any[]) => any) | undefined;
468
+ }>, {
341
469
  open: boolean;
342
470
  }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
343
471
  /**
@@ -404,8 +532,9 @@ declare const BreadcrumbItem: vue.DefineComponent<vue.ExtractPropTypes<{
404
532
 
405
533
  /**
406
534
  * Editable combobox (input + listbox), APG pattern. Compose with
407
- * `<ComboboxInput>`, `<ComboboxList>`, `<ComboboxOption>`. Emits
408
- * `update:value` (and `select`) with the committed value.
535
+ * `<ComboboxInput>`, `<ComboboxList>`, `<ComboboxOption>`. The committed
536
+ * value works uncontrolled (`defaultValue`) or with `v-model`; selection also
537
+ * emits `select`.
409
538
  */
410
539
  declare const Combobox: vue.DefineComponent<vue.ExtractPropTypes<{
411
540
  filter: {
@@ -416,9 +545,19 @@ declare const Combobox: vue.DefineComponent<vue.ExtractPropTypes<{
416
545
  type: PropType<EnhanceComboboxOptions["autoHighlight"]>;
417
546
  default: undefined;
418
547
  };
548
+ /** Controlled committed value (`v-model`). */
549
+ modelValue: {
550
+ type: StringConstructor;
551
+ default: undefined;
552
+ };
553
+ /** Initial committed value for uncontrolled usage. */
554
+ defaultValue: {
555
+ type: StringConstructor;
556
+ default: undefined;
557
+ };
419
558
  }>, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
420
559
  [key: string]: any;
421
- }>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, ("select" | "update:value")[], "select" | "update:value", vue.PublicProps, Readonly<vue.ExtractPropTypes<{
560
+ }>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, ("update:modelValue" | "select")[], "update:modelValue" | "select", vue.PublicProps, Readonly<vue.ExtractPropTypes<{
422
561
  filter: {
423
562
  type: PropType<EnhanceComboboxOptions["filter"]>;
424
563
  default: undefined;
@@ -427,10 +566,22 @@ declare const Combobox: vue.DefineComponent<vue.ExtractPropTypes<{
427
566
  type: PropType<EnhanceComboboxOptions["autoHighlight"]>;
428
567
  default: undefined;
429
568
  };
569
+ /** Controlled committed value (`v-model`). */
570
+ modelValue: {
571
+ type: StringConstructor;
572
+ default: undefined;
573
+ };
574
+ /** Initial committed value for uncontrolled usage. */
575
+ defaultValue: {
576
+ type: StringConstructor;
577
+ default: undefined;
578
+ };
430
579
  }>> & Readonly<{
580
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
431
581
  onSelect?: ((...args: any[]) => any) | undefined;
432
- "onUpdate:value"?: ((...args: any[]) => any) | undefined;
433
582
  }>, {
583
+ modelValue: string;
584
+ defaultValue: string;
434
585
  filter: boolean | undefined;
435
586
  autoHighlight: boolean | undefined;
436
587
  }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
@@ -593,15 +744,19 @@ declare function useFieldBindings(): {
593
744
  'aria-describedby': string | undefined;
594
745
  'aria-invalid': true | undefined;
595
746
  };
747
+ /** Label for a {@link Field}'s control, associated with it by id. */
596
748
  declare const FieldLabel: vue.DefineComponent<{}, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
597
749
  [key: string]: any;
598
750
  }>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
751
+ /** Help text for a {@link Field}, linked to its control via `aria-describedby`. */
599
752
  declare const FieldHelp: vue.DefineComponent<{}, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
600
753
  [key: string]: any;
601
754
  }>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
755
+ /** Validation message for a {@link Field}; renders nothing until it has content. */
602
756
  declare const FieldError: vue.DefineComponent<{}, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
603
757
  [key: string]: any;
604
758
  }> | null, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
759
+ /** Groups related controls in a native fieldset with an optional `legend` slot. */
605
760
  declare const Fieldset: vue.DefineComponent<{}, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
606
761
  [key: string]: any;
607
762
  }>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
@@ -637,8 +792,8 @@ declare const Input: vue.DefineComponent<vue.ExtractPropTypes<{
637
792
  }>> & Readonly<{
638
793
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
639
794
  }>, {
640
- invalid: boolean;
641
795
  modelValue: string | number;
796
+ invalid: boolean;
642
797
  size: Size;
643
798
  }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
644
799
  /** Multi-line text input. Supports `v-model`. */
@@ -673,8 +828,8 @@ declare const Textarea: vue.DefineComponent<vue.ExtractPropTypes<{
673
828
  }>> & Readonly<{
674
829
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
675
830
  }>, {
676
- invalid: boolean;
677
831
  modelValue: string;
832
+ invalid: boolean;
678
833
  size: Size;
679
834
  }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
680
835
  /** Native `<select>` styled with `hl-select`. Supports `v-model`. */
@@ -709,8 +864,8 @@ declare const Select: vue.DefineComponent<vue.ExtractPropTypes<{
709
864
  }>> & Readonly<{
710
865
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
711
866
  }>, {
712
- invalid: boolean;
713
867
  modelValue: string;
868
+ invalid: boolean;
714
869
  size: Size;
715
870
  }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
716
871
  /** Checkbox built on a native input, label-wrapped. Supports `v-model`. */
@@ -808,7 +963,7 @@ declare const Radio: vue.DefineComponent<vue.ExtractPropTypes<{
808
963
  required: true;
809
964
  };
810
965
  }>> & Readonly<{}>, {}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
811
- /** Segmented control — a styled radiogroup. Supports `v-model`. */
966
+ /** Segmented control: a styled radiogroup. Supports `v-model`. */
812
967
  declare const SegmentedControl: vue.DefineComponent<vue.ExtractPropTypes<{
813
968
  modelValue: {
814
969
  type: StringConstructor;
@@ -866,7 +1021,7 @@ declare const SegmentedControl: vue.DefineComponent<vue.ExtractPropTypes<{
866
1021
  }[];
867
1022
  }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
868
1023
 
869
- /** Button primitive — `hl-button` with intent/variant/size modifiers. */
1024
+ /** Button primitive: `hl-button` with intent/variant/size modifiers. */
870
1025
  declare const Button: vue.DefineComponent<vue.ExtractPropTypes<{
871
1026
  variant: {
872
1027
  type: PropType<"solid" | "soft" | "outline" | "ghost" | "link">;
@@ -929,7 +1084,7 @@ declare const Button: vue.DefineComponent<vue.ExtractPropTypes<{
929
1084
  }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
930
1085
 
931
1086
  type Intent = 'neutral' | 'primary' | 'danger' | 'success' | 'warning' | 'info';
932
- /** Alert primitive — `hl-alert` with intent, optional `icon` slot + `title`. */
1087
+ /** Alert primitive: `hl-alert` with intent, optional `icon` slot + `title`. */
933
1088
  declare const Alert: vue.DefineComponent<vue.ExtractPropTypes<{
934
1089
  intent: {
935
1090
  type: PropType<Intent>;
@@ -954,7 +1109,7 @@ declare const Alert: vue.DefineComponent<vue.ExtractPropTypes<{
954
1109
  title: string;
955
1110
  intent: Intent;
956
1111
  }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
957
- /** Badge primitive — `hl-badge` with intent/variant/size modifiers. */
1112
+ /** Badge primitive: `hl-badge` with intent/variant/size modifiers. */
958
1113
  declare const Badge: vue.DefineComponent<vue.ExtractPropTypes<{
959
1114
  intent: {
960
1115
  type: PropType<Intent>;
@@ -988,7 +1143,7 @@ declare const Badge: vue.DefineComponent<vue.ExtractPropTypes<{
988
1143
  variant: "solid" | "soft" | "outline";
989
1144
  intent: Intent;
990
1145
  }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
991
- /** Progress primitive — native `<progress class="hl-progress">`. */
1146
+ /** Progress primitive: native `<progress class="hl-progress">`. */
992
1147
  declare const Progress: vue.DefineComponent<vue.ExtractPropTypes<{
993
1148
  value: {
994
1149
  type: NumberConstructor;
@@ -1031,7 +1186,7 @@ declare const Progress: vue.DefineComponent<vue.ExtractPropTypes<{
1031
1186
  intent: "primary" | "danger" | "success" | "warning" | "info";
1032
1187
  max: number;
1033
1188
  }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
1034
- /** Spinner primitive — `hl-spinner`, announced via `role="status"`. */
1189
+ /** Spinner primitive: `hl-spinner`, announced via `role="status"`. */
1035
1190
  declare const Spinner: vue.DefineComponent<vue.ExtractPropTypes<{
1036
1191
  size: {
1037
1192
  type: PropType<"sm" | "md" | "lg" | "xl">;
@@ -1056,7 +1211,7 @@ declare const Spinner: vue.DefineComponent<vue.ExtractPropTypes<{
1056
1211
  label: string;
1057
1212
  size: "sm" | "md" | "lg" | "xl";
1058
1213
  }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
1059
- /** Skeleton placeholder primitive — `hl-skeleton`. */
1214
+ /** Skeleton placeholder primitive: `hl-skeleton`. */
1060
1215
  declare const Skeleton: vue.DefineComponent<vue.ExtractPropTypes<{
1061
1216
  variant: {
1062
1217
  type: PropType<"rect" | "text" | "circle">;
@@ -1095,7 +1250,7 @@ declare const ToastRegion: vue.DefineComponent<{}, () => vue.VNode<vue.RendererN
1095
1250
  [key: string]: any;
1096
1251
  }>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
1097
1252
 
1098
- /** Card container — `hl-card`. Compose with the Card* parts. */
1253
+ /** Card container: `hl-card`. Compose with the Card* parts. */
1099
1254
  declare const Card: vue.DefineComponent<vue.ExtractPropTypes<{
1100
1255
  interactive: {
1101
1256
  type: BooleanConstructor;
@@ -1111,22 +1266,27 @@ declare const Card: vue.DefineComponent<vue.ExtractPropTypes<{
1111
1266
  }>> & Readonly<{}>, {
1112
1267
  interactive: boolean;
1113
1268
  }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
1269
+ /** Header region of a {@link Card}. */
1114
1270
  declare const CardHeader: vue.DefineComponent<{}, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
1115
1271
  [key: string]: any;
1116
1272
  }>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
1273
+ /** Body region of a {@link Card}. */
1117
1274
  declare const CardBody: vue.DefineComponent<{}, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
1118
1275
  [key: string]: any;
1119
1276
  }>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
1277
+ /** Footer region of a {@link Card}. */
1120
1278
  declare const CardFooter: vue.DefineComponent<{}, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
1121
1279
  [key: string]: any;
1122
1280
  }>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
1281
+ /** Title heading of a {@link Card}. */
1123
1282
  declare const CardTitle: vue.DefineComponent<{}, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
1124
1283
  [key: string]: any;
1125
1284
  }>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
1285
+ /** Descriptive text of a {@link Card}. */
1126
1286
  declare const CardDescription: vue.DefineComponent<{}, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
1127
1287
  [key: string]: any;
1128
1288
  }>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
1129
- /** Avatar primitive — `hl-avatar` with image + graceful fallback. */
1289
+ /** Avatar primitive: `hl-avatar` with image + graceful fallback. */
1130
1290
  declare const Avatar: vue.DefineComponent<vue.ExtractPropTypes<{
1131
1291
  src: {
1132
1292
  type: StringConstructor;
@@ -1173,11 +1333,11 @@ declare const Avatar: vue.DefineComponent<vue.ExtractPropTypes<{
1173
1333
  declare const AvatarGroup: vue.DefineComponent<{}, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
1174
1334
  [key: string]: any;
1175
1335
  }>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
1176
- /** Keyboard key primitive — `<kbd class="hl-kbd">`. */
1336
+ /** Keyboard key primitive: `<kbd class="hl-kbd">`. */
1177
1337
  declare const Kbd: vue.DefineComponent<{}, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
1178
1338
  [key: string]: any;
1179
1339
  }>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
1180
- /** Separator primitive — `<hr class="hl-separator">`. */
1340
+ /** Separator primitive: `<hr class="hl-separator">`. */
1181
1341
  declare const Separator: vue.DefineComponent<vue.ExtractPropTypes<{
1182
1342
  orientation: {
1183
1343
  type: PropType<"horizontal" | "vertical">;
@@ -1203,7 +1363,7 @@ declare const Separator: vue.DefineComponent<vue.ExtractPropTypes<{
1203
1363
  decorative: boolean;
1204
1364
  }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
1205
1365
 
1206
- /** Pagination primitive — `hl-pagination` with smart ellipsis truncation. Emits `update:page`. */
1366
+ /** Pagination primitive: `hl-pagination` with smart ellipsis truncation. Emits `update:page`. */
1207
1367
  declare const Pagination: vue.DefineComponent<vue.ExtractPropTypes<{
1208
1368
  page: {
1209
1369
  type: NumberConstructor;
@@ -1303,4 +1463,4 @@ declare const SkipLink: vue.DefineComponent<{}, () => vue.VNode<vue.RendererNode
1303
1463
  [key: string]: any;
1304
1464
  }>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
1305
1465
 
1306
- export { Accordion, AccordionItem, Alert, Avatar, AvatarGroup, Badge, Breadcrumb, BreadcrumbItem, Button, Card, CardBody, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, Combobox, ComboboxInput, ComboboxList, ComboboxOption, Command, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, Disclosure, Drawer, DrawerBody, DrawerFooter, DrawerHeader, Dropdown, DropdownItem, DropdownMenu, DropdownSeparator, DropdownTrigger, Field, FieldError, FieldHelp, FieldLabel, Fieldset, HydratelessPlugin, Input, Kbd, Menu, MenuItem, Modal, ModalBody, ModalFooter, ModalHeader, Pagination, Popover, Progress, Radio, RadioGroup, SegmentedControl, Select, Separator, Skeleton, SkipLink, Slider, Spinner, Switch, Tab, TabList, TabPanel, Tabs, Textarea, ToastRegion, Toc, Tooltip, type UseToastReturn, directives, useEnhancer, useFieldBindings, useToast, vHlAccordion, vHlCombobox, vHlCommand, vHlDisclosure, vHlDrawer, vHlDropdown, vHlMenu, vHlModal, vHlPopover, vHlTabs, vHlToc, vHlTooltip };
1466
+ export { Accordion, AccordionItem, Alert, Avatar, AvatarGroup, Badge, Breadcrumb, BreadcrumbItem, Button, Card, CardBody, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, Combobox, ComboboxInput, ComboboxList, ComboboxOption, Command, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, Disclosure, Drawer, DrawerBody, DrawerFooter, DrawerHeader, Dropdown, DropdownItem, DropdownMenu, DropdownSeparator, DropdownTrigger, Field, FieldError, FieldHelp, FieldLabel, Fieldset, HydratelessPlugin, Input, Kbd, Menu, MenuItem, Modal, ModalBody, ModalFooter, ModalHeader, Pagination, Popover, Progress, Radio, RadioGroup, SegmentedControl, Select, Separator, Skeleton, SkipLink, Slider, Spinner, Switch, Tab, TabList, TabPanel, Tabs, Textarea, ToastRegion, Toc, Tooltip, directives, useEnhancer, useFieldBindings, useToast, vHlAccordion, vHlCombobox, vHlCommand, vHlDisclosure, vHlDrawer, vHlDropdown, vHlMenu, vHlModal, vHlPopover, vHlTabs, vHlToc, vHlTooltip };
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
- let dispose = null;
4
+ const api = shallowRef(null);
5
+ let destroy = null;
5
6
  onMounted(() => {
6
- if (target.value) dispose = enhance(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
- dispose?.();
10
- dispose = null;
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
- function useToast() {
18
- let api = null;
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: (message, options) => api ? api.show(message, options) : document.createElement("div"),
28
- dismiss: (toast) => api?.dismiss(toast)
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)?.();
@@ -93,25 +96,30 @@ var HydratelessPlugin = {
93
96
  };
94
97
 
95
98
  // src/components/disclosure.ts
96
- import { defineComponent, h, onMounted as onMounted4, ref as ref2, watch } from "vue";
99
+ import { defineComponent, h, onMounted as onMounted3, ref as ref2, watch } from "vue";
97
100
  import { enhanceAccordion as enhanceAccordion2 } from "@hydrateless/enhancers";
98
101
 
99
102
  // src/internal.ts
100
- import { onBeforeUnmount, onMounted as onMounted3, ref } from "vue";
103
+ import { onBeforeUnmount, onMounted as onMounted2, ref, shallowRef as shallowRef2 } from "vue";
101
104
  function cx(...classes) {
102
105
  return classes.filter(Boolean).join(" ");
103
106
  }
104
107
  function useHostEnhancer(enhance) {
105
108
  const host = ref(null);
106
- let dispose = null;
107
- onMounted3(() => {
108
- if (host.value) dispose = enhance(host.value);
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;
109
116
  });
110
117
  onBeforeUnmount(() => {
111
- dispose?.();
112
- dispose = null;
118
+ destroy?.();
119
+ destroy = null;
120
+ api.value = null;
113
121
  });
114
- return host;
122
+ return { host, api };
115
123
  }
116
124
 
117
125
  // src/components/disclosure.ts
@@ -119,11 +127,26 @@ var Accordion = defineComponent({
119
127
  name: "HlAccordion",
120
128
  inheritAttrs: false,
121
129
  props: {
122
- allowMultiple: { type: Boolean, default: false }
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 }
123
135
  },
124
- setup(props, { slots, attrs }) {
125
- const host = useHostEnhancer(
126
- (el) => enhanceAccordion2(el, { allowMultiple: props.allowMultiple })
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
+ }
127
150
  );
128
151
  return () => h("div", { ...attrs, "data-hl-accordion": "", ref: host }, slots.default?.());
129
152
  }
@@ -132,22 +155,18 @@ var AccordionItem = defineComponent({
132
155
  name: "HlAccordionItem",
133
156
  inheritAttrs: false,
134
157
  props: {
158
+ /** Stable value identifying this item; defaults to its index. */
159
+ value: { type: String, default: void 0 },
135
160
  defaultOpen: { type: Boolean, default: false }
136
161
  },
137
162
  setup(props, { slots, attrs }) {
138
163
  const el = ref2(null);
139
- onMounted4(() => {
164
+ onMounted3(() => {
140
165
  if (el.value && props.defaultOpen) el.value.open = true;
141
166
  });
142
- watch(
143
- () => props.defaultOpen,
144
- (open) => {
145
- if (el.value) el.value.open = open;
146
- }
147
- );
148
- return () => h("details", { ...attrs, ref: el }, [
167
+ return () => h("details", { ...attrs, "data-hl-value": props.value, ref: el }, [
149
168
  h("summary", slots.summary?.()),
150
- h("div", { class: "accordion-panel" }, slots.default?.())
169
+ h("div", { class: "hl-accordion-panel" }, slots.default?.())
151
170
  ]);
152
171
  }
153
172
  });
@@ -159,22 +178,27 @@ var Disclosure = defineComponent({
159
178
  },
160
179
  setup(props, { slots, attrs }) {
161
180
  const el = ref2(null);
162
- onMounted4(() => {
181
+ onMounted3(() => {
163
182
  if (el.value && props.defaultOpen) el.value.open = true;
164
183
  });
165
184
  return () => h(
166
185
  "details",
167
- { ...attrs, class: "hydrateless-disclosure", "data-hl-disclosure": "", ref: el },
186
+ {
187
+ ...attrs,
188
+ class: cx("hl-disclosure", attrs.class),
189
+ "data-hl-disclosure": "",
190
+ ref: el
191
+ },
168
192
  [
169
193
  h("summary", slots.summary?.()),
170
- h("div", { class: "disclosure-panel" }, slots.default?.())
194
+ h("div", { class: "hl-disclosure-panel" }, slots.default?.())
171
195
  ]
172
196
  );
173
197
  }
174
198
  });
175
199
 
176
200
  // src/components/tabs.ts
177
- import { defineComponent as defineComponent2, h as h2 } from "vue";
201
+ import { defineComponent as defineComponent2, h as h2, watch as watch2 } from "vue";
178
202
  import { enhanceTabs as enhanceTabs2 } from "@hydrateless/enhancers";
179
203
  var Tabs = defineComponent2({
180
204
  name: "HlTabs",
@@ -184,11 +208,27 @@ var Tabs = defineComponent2({
184
208
  orientation: {
185
209
  type: String,
186
210
  default: void 0
187
- }
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 }
188
216
  },
189
- setup(props, { slots, attrs }) {
190
- const host = useHostEnhancer(
191
- (el) => enhanceTabs2(el, { activation: props.activation, orientation: props.orientation })
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
+ }
192
232
  );
193
233
  return () => h2("div", { ...attrs, "data-hl-tabs": "", ref: host }, slots.default?.());
194
234
  }
@@ -203,8 +243,16 @@ var TabList = defineComponent2({
203
243
  var Tab = defineComponent2({
204
244
  name: "HlTab",
205
245
  inheritAttrs: false,
206
- setup(_, { slots, attrs }) {
207
- return () => h2("button", { type: "button", ...attrs, role: "tab" }, slots.default?.());
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
+ );
208
256
  }
209
257
  });
210
258
  var TabPanel = defineComponent2({
@@ -216,8 +264,10 @@ var TabPanel = defineComponent2({
216
264
  });
217
265
 
218
266
  // src/components/dropdown.ts
219
- import { defineComponent as defineComponent3, h as h3 } from "vue";
220
- import { enhanceDropdown as enhanceDropdown2 } from "@hydrateless/enhancers";
267
+ import { defineComponent as defineComponent3, h as h3, watch as watch3 } from "vue";
268
+ import {
269
+ enhanceDropdown as enhanceDropdown2
270
+ } from "@hydrateless/enhancers";
221
271
  var Dropdown = defineComponent3({
222
272
  name: "HlDropdown",
223
273
  inheritAttrs: false,
@@ -225,10 +275,27 @@ var Dropdown = defineComponent3({
225
275
  placement: {
226
276
  type: String,
227
277
  default: void 0
228
- }
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 }
229
283
  },
230
- setup(props, { slots, attrs }) {
231
- const host = useHostEnhancer((el) => enhanceDropdown2(el, { placement: props.placement }));
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
+ );
232
299
  return () => h3("div", { ...attrs, "data-hl-dropdown": "", ref: host }, slots.default?.());
233
300
  }
234
301
  });
@@ -286,7 +353,7 @@ var Menu = defineComponent4({
286
353
  }
287
354
  },
288
355
  setup(props, { slots, attrs }) {
289
- const host = useHostEnhancer((el) => enhanceMenu2(el, { orientation: props.orientation }));
356
+ const { host } = useHostEnhancer((el) => enhanceMenu2(el, { orientation: props.orientation }));
290
357
  return () => h4(
291
358
  "ul",
292
359
  {
@@ -327,22 +394,28 @@ var MenuItem = defineComponent4({
327
394
  });
328
395
 
329
396
  // src/components/overlay.ts
330
- import { defineComponent as defineComponent5, h as h5, onBeforeUnmount as onBeforeUnmount2, onMounted as onMounted5, ref as ref3, watch as watch2 } from "vue";
331
- import { enhanceTooltip as enhanceTooltip2 } from "@hydrateless/enhancers";
332
- function useDialog(props, emit) {
333
- const el = ref3(null);
334
- const sync = () => {
335
- const dialog = el.value;
336
- if (!dialog) return;
337
- if (props.open && !dialog.open) dialog.showModal();
338
- else if (!props.open && dialog.open) dialog.close();
339
- };
340
- onMounted5(() => {
341
- el.value?.addEventListener("close", () => emit("close"));
342
- sync();
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
+ enhanceDrawer as enhanceDrawer2,
400
+ enhanceModal as enhanceModal2,
401
+ enhancePopover as enhancePopover2,
402
+ enhanceTooltip as enhanceTooltip2
403
+ } from "@hydrateless/enhancers";
404
+ function useDialogEnhancer(props, emit, enhance) {
405
+ const { host, api } = useHostEnhancer(
406
+ (el) => enhance(el, {
407
+ closeOnBackdrop: props.closeOnBackdrop,
408
+ onOpenChange: (open) => emit("update:open", open)
409
+ })
410
+ );
411
+ onMounted4(() => {
412
+ if (props.open) api.value?.setOpen(true);
343
413
  });
344
- watch2(() => props.open, sync);
345
- return el;
414
+ watch4(
415
+ () => props.open,
416
+ (open) => api.value?.setOpen(open)
417
+ );
418
+ return host;
346
419
  }
347
420
  var Modal = defineComponent5({
348
421
  name: "HlModal",
@@ -351,15 +424,17 @@ var Modal = defineComponent5({
351
424
  open: { type: Boolean, required: true },
352
425
  closeOnBackdrop: { type: Boolean, default: true }
353
426
  },
354
- emits: ["close"],
427
+ emits: ["update:open"],
355
428
  setup(props, { slots, attrs, emit }) {
356
- const el = useDialog(props, emit);
357
- const onClick = (e) => {
358
- if (props.closeOnBackdrop && e.target === el.value) emit("close");
359
- };
429
+ const host = useDialogEnhancer(props, emit, enhanceModal2);
360
430
  return () => h5(
361
431
  "dialog",
362
- { ...attrs, class: cx("hydrateless-modal", attrs.class), ref: el, onClick },
432
+ {
433
+ ...attrs,
434
+ class: cx("hl-modal", attrs.class),
435
+ "data-hl-modal": "",
436
+ ref: host
437
+ },
363
438
  slots.default?.()
364
439
  );
365
440
  }
@@ -372,20 +447,17 @@ var Drawer = defineComponent5({
372
447
  side: { type: String, default: "right" },
373
448
  closeOnBackdrop: { type: Boolean, default: true }
374
449
  },
375
- emits: ["close"],
450
+ emits: ["update:open"],
376
451
  setup(props, { slots, attrs, emit }) {
377
- const el = useDialog(props, emit);
378
- const onClick = (e) => {
379
- if (props.closeOnBackdrop && e.target === el.value) emit("close");
380
- };
452
+ const host = useDialogEnhancer(props, emit, enhanceDrawer2);
381
453
  return () => h5(
382
454
  "dialog",
383
455
  {
384
456
  ...attrs,
385
- class: cx("hydrateless-drawer", attrs.class),
457
+ class: cx("hl-drawer", attrs.class),
458
+ "data-hl-drawer": "",
386
459
  "data-side": props.side,
387
- ref: el,
388
- onClick
460
+ ref: host
389
461
  },
390
462
  slots.default?.()
391
463
  );
@@ -412,10 +484,21 @@ var Popover = defineComponent5({
412
484
  props: {
413
485
  open: { type: Boolean, default: false }
414
486
  },
415
- setup(props, { slots, attrs }) {
487
+ emits: ["update:open"],
488
+ setup(props, { slots, attrs, emit }) {
489
+ const { host, api } = useHostEnhancer(
490
+ (el) => enhancePopover2(el, { onOpenChange: (open) => emit("update:open", open) })
491
+ );
492
+ onMounted4(() => {
493
+ if (props.open) api.value?.setOpen(true);
494
+ });
495
+ watch4(
496
+ () => props.open,
497
+ (open) => api.value?.setOpen(open)
498
+ );
416
499
  return () => h5(
417
500
  "div",
418
- { ...attrs, "data-hl-popover": "", role: "dialog", hidden: !props.open },
501
+ { ...attrs, "data-hl-popover": "", popover: "auto", role: "dialog", ref: host },
419
502
  slots.default?.()
420
503
  );
421
504
  }
@@ -431,18 +514,18 @@ var Tooltip = defineComponent5({
431
514
  setup(props, { slots, attrs }) {
432
515
  const tipId = props.id ?? `hl-tip-${tipCounter += 1}`;
433
516
  const host = ref3(null);
434
- let dispose = null;
435
- onMounted5(() => {
517
+ let destroy = null;
518
+ onMounted4(() => {
436
519
  const trigger = host.value?.querySelector(":scope > :first-child");
437
520
  if (trigger) {
438
521
  trigger.setAttribute("data-hl-tooltip", tipId);
439
522
  trigger.setAttribute("aria-describedby", tipId);
440
523
  }
441
- if (host.value) dispose = enhanceTooltip2(host.value);
524
+ if (host.value) destroy = enhanceTooltip2(host.value).destroy;
442
525
  });
443
526
  onBeforeUnmount2(() => {
444
- dispose?.();
445
- dispose = null;
527
+ destroy?.();
528
+ destroy = null;
446
529
  });
447
530
  return () => h5("span", { ...attrs, ref: host, style: "position:relative;display:inline-block" }, [
448
531
  slots.default?.(),
@@ -483,8 +566,10 @@ var BreadcrumbItem = defineComponent6({
483
566
  });
484
567
 
485
568
  // src/components/combobox.ts
486
- import { defineComponent as defineComponent7, h as h7, onBeforeUnmount as onBeforeUnmount3, onMounted as onMounted6, ref as ref4 } from "vue";
487
- import { enhanceCombobox as enhanceCombobox2 } from "@hydrateless/enhancers";
569
+ import { defineComponent as defineComponent7, h as h7, watch as watch5 } from "vue";
570
+ import {
571
+ enhanceCombobox as enhanceCombobox2
572
+ } from "@hydrateless/enhancers";
488
573
  var Combobox = defineComponent7({
489
574
  name: "HlCombobox",
490
575
  inheritAttrs: false,
@@ -493,30 +578,31 @@ var Combobox = defineComponent7({
493
578
  autoHighlight: {
494
579
  type: Boolean,
495
580
  default: void 0
496
- }
581
+ },
582
+ /** Controlled committed value (`v-model`). */
583
+ modelValue: { type: String, default: void 0 },
584
+ /** Initial committed value for uncontrolled usage. */
585
+ defaultValue: { type: String, default: void 0 }
497
586
  },
498
- emits: ["select", "update:value"],
587
+ emits: ["select", "update:modelValue"],
499
588
  setup(props, { slots, attrs, emit }) {
500
- const host = ref4(null);
501
- let dispose = null;
502
- const onSelect = (e) => {
503
- const value = e.detail.value;
504
- emit("select", value);
505
- emit("update:value", value);
506
- };
507
- onMounted6(() => {
508
- if (!host.value) return;
509
- dispose = enhanceCombobox2(host.value, {
589
+ const { host, api } = useHostEnhancer(
590
+ (el) => enhanceCombobox2(el, {
510
591
  filter: props.filter,
511
- autoHighlight: props.autoHighlight
512
- });
513
- host.value.addEventListener("hl:select", onSelect);
514
- });
515
- onBeforeUnmount3(() => {
516
- host.value?.removeEventListener("hl:select", onSelect);
517
- dispose?.();
518
- dispose = null;
519
- });
592
+ autoHighlight: props.autoHighlight,
593
+ defaultValue: props.modelValue ?? props.defaultValue,
594
+ onValueChange: (value) => {
595
+ emit("select", value);
596
+ emit("update:modelValue", value);
597
+ }
598
+ })
599
+ );
600
+ watch5(
601
+ () => props.modelValue,
602
+ (value) => {
603
+ if (value != null) api.value?.setValue(value);
604
+ }
605
+ );
520
606
  return () => h7("div", { ...attrs, "data-hl-combobox": "", ref: host }, slots.default?.());
521
607
  }
522
608
  });
@@ -553,7 +639,7 @@ var ComboboxOption = defineComponent7({
553
639
  });
554
640
 
555
641
  // src/components/command.ts
556
- import { defineComponent as defineComponent8, h as h8, onBeforeUnmount as onBeforeUnmount4, onMounted as onMounted7, ref as ref5 } from "vue";
642
+ import { defineComponent as defineComponent8, h as h8 } from "vue";
557
643
  import { enhanceCommand as enhanceCommand2 } from "@hydrateless/enhancers";
558
644
  var Command = defineComponent8({
559
645
  name: "HlCommand",
@@ -563,19 +649,12 @@ var Command = defineComponent8({
563
649
  },
564
650
  emits: ["select"],
565
651
  setup(props, { slots, attrs, emit }) {
566
- const host = ref5(null);
567
- let dispose = null;
568
- const onCommand = (e) => emit("select", e.detail.value);
569
- onMounted7(() => {
570
- if (!host.value) return;
571
- dispose = enhanceCommand2(host.value, { hotkey: props.hotkey });
572
- host.value.addEventListener("hl:command", onCommand);
573
- });
574
- onBeforeUnmount4(() => {
575
- host.value?.removeEventListener("hl:command", onCommand);
576
- dispose?.();
577
- dispose = null;
578
- });
652
+ const { host } = useHostEnhancer(
653
+ (el) => enhanceCommand2(el, {
654
+ hotkey: props.hotkey,
655
+ onCommand: (value) => emit("select", value)
656
+ })
657
+ );
579
658
  return () => h8(
580
659
  "div",
581
660
  { ...attrs, "data-hl-command": "", "data-hl-command-hotkey": props.hotkey, ref: host },
@@ -1140,7 +1219,7 @@ var ToastRegion = defineComponent11({
1140
1219
  });
1141
1220
 
1142
1221
  // src/components/data.ts
1143
- import { defineComponent as defineComponent12, h as h12, ref as ref6 } from "vue";
1222
+ import { defineComponent as defineComponent12, h as h12, ref as ref4 } from "vue";
1144
1223
  var Card = defineComponent12({
1145
1224
  name: "HlCard",
1146
1225
  inheritAttrs: false,
@@ -1183,7 +1262,7 @@ var Avatar = defineComponent12({
1183
1262
  shape: { type: String, default: void 0 }
1184
1263
  },
1185
1264
  setup(props, { slots, attrs }) {
1186
- const failed = ref6(false);
1265
+ const failed = ref4(false);
1187
1266
  return () => h12(
1188
1267
  "span",
1189
1268
  {
@@ -1335,7 +1414,7 @@ var Toc = defineComponent13({
1335
1414
  scrollSpy: { type: Boolean, default: void 0 }
1336
1415
  },
1337
1416
  setup(props, { attrs }) {
1338
- const host = useHostEnhancer(
1417
+ const { host } = useHostEnhancer(
1339
1418
  (el) => enhanceToc2(el.ownerDocument, {
1340
1419
  contentSelector: props.contentSelector,
1341
1420
  headings: props.headings,
@@ -1351,7 +1430,7 @@ var SkipLink = defineComponent13({
1351
1430
  setup(_, { slots, attrs }) {
1352
1431
  return () => h13(
1353
1432
  "a",
1354
- { ...attrs, class: cx("a11y-skip-link", attrs.class) },
1433
+ { ...attrs, class: cx("hl-skip-link", attrs.class) },
1355
1434
  slots.default?.() ?? "Skip to content"
1356
1435
  );
1357
1436
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@hydrateless/vue",
3
- "version": "0.5.0",
4
- "description": "Vue 3 bindings for Hydrateless — first-class components, directives, composables, and a plugin.",
3
+ "version": "0.7.0",
4
+ "description": "Vue 3 bindings for Hydrateless: first-class components, directives, composables, and a plugin.",
5
5
  "license": "MIT",
6
6
  "repository": {
7
7
  "type": "git",
@@ -28,7 +28,7 @@
28
28
  "test": "vitest run"
29
29
  },
30
30
  "dependencies": {
31
- "@hydrateless/enhancers": "^0.5.0"
31
+ "@hydrateless/enhancers": "^0.7.0"
32
32
  },
33
33
  "peerDependencies": {
34
34
  "vue": ">=3.3"