@ansh-ui/vue 0.2.0 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (84) hide show
  1. package/dist/{chunk-B6OXKW5Q.js → chunk-AL4PPK25.js} +5 -2
  2. package/dist/chunk-AL4PPK25.js.map +1 -0
  3. package/dist/{chunk-2VSROZ2N.js → chunk-D3HH726R.js} +152 -144
  4. package/dist/chunk-D3HH726R.js.map +1 -0
  5. package/dist/{chunk-5BQEZYG6.cjs → chunk-EDAF7RAN.cjs} +163 -155
  6. package/dist/chunk-EDAF7RAN.cjs.map +1 -0
  7. package/dist/{chunk-TMG3M6TK.js → chunk-G2OX2NH2.js} +3 -3
  8. package/dist/chunk-G2OX2NH2.js.map +1 -0
  9. package/dist/{chunk-SOYRICHU.js → chunk-G3EIU6VM.js} +14 -8
  10. package/dist/chunk-G3EIU6VM.js.map +1 -0
  11. package/dist/{chunk-KCA7RNJ4.cjs → chunk-IHH6KMBY.cjs} +239 -5
  12. package/dist/chunk-IHH6KMBY.cjs.map +1 -0
  13. package/dist/{chunk-J2LA4GRP.cjs → chunk-IO6WJEJI.cjs} +122 -120
  14. package/dist/chunk-IO6WJEJI.cjs.map +1 -0
  15. package/dist/{chunk-IOXGBPOV.cjs → chunk-JJBYF7AH.cjs} +14 -8
  16. package/dist/chunk-JJBYF7AH.cjs.map +1 -0
  17. package/dist/{chunk-Z7XOFKM4.cjs → chunk-KKCZ5RUE.cjs} +4 -2
  18. package/dist/chunk-KKCZ5RUE.cjs.map +1 -0
  19. package/dist/{chunk-6ABPGOJP.js → chunk-LFGAOD32.js} +4 -2
  20. package/dist/chunk-LFGAOD32.js.map +1 -0
  21. package/dist/{chunk-EISHOEB6.cjs → chunk-MWGVDY6K.cjs} +3 -3
  22. package/dist/chunk-MWGVDY6K.cjs.map +1 -0
  23. package/dist/{chunk-FVKLCGA4.js → chunk-NJMTWLT2.js} +123 -121
  24. package/dist/chunk-NJMTWLT2.js.map +1 -0
  25. package/dist/{chunk-T425FIC7.js → chunk-NKRPZTQA.js} +238 -5
  26. package/dist/chunk-NKRPZTQA.js.map +1 -0
  27. package/dist/{chunk-JQ4YLXXM.cjs → chunk-PNR4RQ4T.cjs} +5 -2
  28. package/dist/chunk-PNR4RQ4T.cjs.map +1 -0
  29. package/dist/data.cjs +16 -16
  30. package/dist/data.d.cts +54 -52
  31. package/dist/data.d.ts +54 -52
  32. package/dist/data.js +1 -1
  33. package/dist/form.cjs +36 -36
  34. package/dist/form.d.cts +53 -45
  35. package/dist/form.d.ts +53 -45
  36. package/dist/form.js +1 -1
  37. package/dist/index.cjs +208 -180
  38. package/dist/index.cjs.map +1 -1
  39. package/dist/index.d.cts +33 -8
  40. package/dist/index.d.ts +33 -8
  41. package/dist/index.js +31 -15
  42. package/dist/index.js.map +1 -1
  43. package/dist/layout.cjs +13 -13
  44. package/dist/layout.d.cts +23 -14
  45. package/dist/layout.d.ts +23 -14
  46. package/dist/layout.js +1 -1
  47. package/dist/motion.cjs +11 -11
  48. package/dist/motion.d.cts +41 -37
  49. package/dist/motion.d.ts +41 -37
  50. package/dist/motion.js +1 -1
  51. package/dist/navigation.cjs +13 -9
  52. package/dist/navigation.d.cts +125 -4
  53. package/dist/navigation.d.ts +125 -4
  54. package/dist/navigation.js +2 -2
  55. package/dist/overlay.cjs +14 -14
  56. package/dist/overlay.d.cts +36 -33
  57. package/dist/overlay.d.ts +36 -33
  58. package/dist/overlay.js +2 -2
  59. package/dist/{position-Cn7qP1pn.d.cts → position-CiY171HP.d.cts} +2 -1
  60. package/dist/{position-Cn7qP1pn.d.ts → position-CiY171HP.d.ts} +2 -1
  61. package/dist/primitives.cjs +6 -6
  62. package/dist/primitives.d.cts +6 -5
  63. package/dist/primitives.d.ts +6 -5
  64. package/dist/primitives.js +1 -1
  65. package/dist/{sidebar-CTZ-Ckko.d.ts → sidebar-B9zDHMbn.d.cts} +5 -4
  66. package/dist/{sidebar-CQqEmpid.d.cts → sidebar-DMrKHqZ5.d.ts} +5 -4
  67. package/dist/styles.css +464 -0
  68. package/dist/{utils-IKPG3zcC.d.cts → utils-D4XwXDeX.d.cts} +2 -1
  69. package/dist/{utils-IKPG3zcC.d.ts → utils-D4XwXDeX.d.ts} +2 -1
  70. package/package.json +3 -3
  71. package/dist/chunk-2VSROZ2N.js.map +0 -1
  72. package/dist/chunk-5BQEZYG6.cjs.map +0 -1
  73. package/dist/chunk-6ABPGOJP.js.map +0 -1
  74. package/dist/chunk-B6OXKW5Q.js.map +0 -1
  75. package/dist/chunk-EISHOEB6.cjs.map +0 -1
  76. package/dist/chunk-FVKLCGA4.js.map +0 -1
  77. package/dist/chunk-IOXGBPOV.cjs.map +0 -1
  78. package/dist/chunk-J2LA4GRP.cjs.map +0 -1
  79. package/dist/chunk-JQ4YLXXM.cjs.map +0 -1
  80. package/dist/chunk-KCA7RNJ4.cjs.map +0 -1
  81. package/dist/chunk-SOYRICHU.js.map +0 -1
  82. package/dist/chunk-T425FIC7.js.map +0 -1
  83. package/dist/chunk-TMG3M6TK.js.map +0 -1
  84. package/dist/chunk-Z7XOFKM4.cjs.map +0 -1
@@ -1,7 +1,7 @@
1
1
  import * as vue from 'vue';
2
2
  import { PropType } from 'vue';
3
- import { S as SlotContent } from './utils-IKPG3zcC.cjs';
4
- export { A as AppShell, N as NavItem, a as NavSection, S as Sidebar } from './sidebar-CQqEmpid.cjs';
3
+ import { SlotContent } from './index.cjs';
4
+ export { A as AppShell, N as NavItem, a as NavSection, S as Sidebar } from './sidebar-B9zDHMbn.cjs';
5
5
 
6
6
  interface TabItem {
7
7
  id: string;
@@ -138,6 +138,126 @@ declare const Tabs: vue.DefineComponent<vue.ExtractPropTypes<{
138
138
  activateOnFocus: boolean;
139
139
  }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
140
140
 
141
+ /**
142
+ * Carousel — the Vue counterpart of `@ansh-ui/react`'s `Carousel`.
143
+ *
144
+ * Same markup, same class names, same ARIA. The reasoning behind each decision lives in the React
145
+ * file; the ones that matter for reading this code:
146
+ *
147
+ * - The track is **translated**, not scrolled, so the index stays authoritative and a controlled
148
+ * `v-model` cannot fight a scroll position for control of it.
149
+ * - `aria-live` is `polite` only while idle and `off` while auto-playing, so a screen reader
150
+ * announces changes the user asked for and stays quiet during automatic ones.
151
+ * - Auto-play ships a real pause button, because WCAG 2.2.2 is not satisfied by pause-on-hover.
152
+ * - Off-screen slides are `inert`, or every control inside them sits in the tab order.
153
+ *
154
+ * `v-model` is the active slide index.
155
+ */
156
+ declare const Carousel: vue.DefineComponent<vue.ExtractPropTypes<{
157
+ items: {
158
+ type: PropType<readonly SlotContent[]>;
159
+ required: true;
160
+ };
161
+ modelValue: {
162
+ type: NumberConstructor;
163
+ default: undefined;
164
+ };
165
+ defaultValue: {
166
+ type: NumberConstructor;
167
+ default: number;
168
+ };
169
+ /** Wrap past the ends. */
170
+ loop: {
171
+ type: BooleanConstructor;
172
+ default: boolean;
173
+ };
174
+ /** Advance on a timer. */
175
+ autoPlay: {
176
+ type: BooleanConstructor;
177
+ default: boolean;
178
+ };
179
+ /** Seconds each slide is held when auto-playing. */
180
+ interval: {
181
+ type: NumberConstructor;
182
+ default: number;
183
+ };
184
+ showDots: {
185
+ type: BooleanConstructor;
186
+ default: boolean;
187
+ };
188
+ showArrows: {
189
+ type: BooleanConstructor;
190
+ default: boolean;
191
+ };
192
+ draggable: {
193
+ type: BooleanConstructor;
194
+ default: boolean;
195
+ };
196
+ /** Accessible name for the carousel region. */
197
+ label: {
198
+ type: StringConstructor;
199
+ required: true;
200
+ };
201
+ }>, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
202
+ [key: string]: any;
203
+ }> | null, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", vue.PublicProps, Readonly<vue.ExtractPropTypes<{
204
+ items: {
205
+ type: PropType<readonly SlotContent[]>;
206
+ required: true;
207
+ };
208
+ modelValue: {
209
+ type: NumberConstructor;
210
+ default: undefined;
211
+ };
212
+ defaultValue: {
213
+ type: NumberConstructor;
214
+ default: number;
215
+ };
216
+ /** Wrap past the ends. */
217
+ loop: {
218
+ type: BooleanConstructor;
219
+ default: boolean;
220
+ };
221
+ /** Advance on a timer. */
222
+ autoPlay: {
223
+ type: BooleanConstructor;
224
+ default: boolean;
225
+ };
226
+ /** Seconds each slide is held when auto-playing. */
227
+ interval: {
228
+ type: NumberConstructor;
229
+ default: number;
230
+ };
231
+ showDots: {
232
+ type: BooleanConstructor;
233
+ default: boolean;
234
+ };
235
+ showArrows: {
236
+ type: BooleanConstructor;
237
+ default: boolean;
238
+ };
239
+ draggable: {
240
+ type: BooleanConstructor;
241
+ default: boolean;
242
+ };
243
+ /** Accessible name for the carousel region. */
244
+ label: {
245
+ type: StringConstructor;
246
+ required: true;
247
+ };
248
+ }>> & Readonly<{
249
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
250
+ }>, {
251
+ loop: boolean;
252
+ modelValue: number;
253
+ defaultValue: number;
254
+ autoPlay: boolean;
255
+ interval: number;
256
+ showDots: boolean;
257
+ showArrows: boolean;
258
+ draggable: boolean;
259
+ }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
260
+
141
261
  interface Crumb {
142
262
  label: SlotContent;
143
263
  href?: string;
@@ -456,9 +576,9 @@ declare const Accordion: vue.DefineComponent<vue.ExtractPropTypes<{
456
576
  }>> & Readonly<{
457
577
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
458
578
  }>, {
579
+ multiple: boolean;
459
580
  modelValue: readonly string[];
460
581
  defaultValue: readonly string[];
461
- multiple: boolean;
462
582
  variant: AccordionVariant;
463
583
  }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
464
584
  interface DisclosureListProps {
@@ -512,4 +632,5 @@ declare const DisclosureList: vue.DefineComponent<vue.ExtractPropTypes<{
512
632
  lessLabel: string;
513
633
  }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
514
634
 
515
- export { Accordion, type AccordionItem, type AccordionVariant, Breadcrumbs, Collapsible, type CollapsibleProps, type Crumb, DisclosureList, type DisclosureListProps, type MegaMenuColumn, type MegaMenuLink, type NavMenuItem, NavigationMenu, type Step, Stepper, type StepperOrientation, type TabItem, Tabs, type TabsOrientation, type TabsSize, type TabsVariant };
635
+ export { Accordion, Breadcrumbs, Carousel, Collapsible, DisclosureList, NavigationMenu, Stepper, Tabs };
636
+ export type { AccordionItem, AccordionVariant, CollapsibleProps, Crumb, DisclosureListProps, MegaMenuColumn, MegaMenuLink, NavMenuItem, Step, StepperOrientation, TabItem, TabsOrientation, TabsSize, TabsVariant };
@@ -1,7 +1,7 @@
1
1
  import * as vue from 'vue';
2
2
  import { PropType } from 'vue';
3
- import { S as SlotContent } from './utils-IKPG3zcC.js';
4
- export { A as AppShell, N as NavItem, a as NavSection, S as Sidebar } from './sidebar-CTZ-Ckko.js';
3
+ import { SlotContent } from './index.js';
4
+ export { A as AppShell, N as NavItem, a as NavSection, S as Sidebar } from './sidebar-DMrKHqZ5.js';
5
5
 
6
6
  interface TabItem {
7
7
  id: string;
@@ -138,6 +138,126 @@ declare const Tabs: vue.DefineComponent<vue.ExtractPropTypes<{
138
138
  activateOnFocus: boolean;
139
139
  }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
140
140
 
141
+ /**
142
+ * Carousel — the Vue counterpart of `@ansh-ui/react`'s `Carousel`.
143
+ *
144
+ * Same markup, same class names, same ARIA. The reasoning behind each decision lives in the React
145
+ * file; the ones that matter for reading this code:
146
+ *
147
+ * - The track is **translated**, not scrolled, so the index stays authoritative and a controlled
148
+ * `v-model` cannot fight a scroll position for control of it.
149
+ * - `aria-live` is `polite` only while idle and `off` while auto-playing, so a screen reader
150
+ * announces changes the user asked for and stays quiet during automatic ones.
151
+ * - Auto-play ships a real pause button, because WCAG 2.2.2 is not satisfied by pause-on-hover.
152
+ * - Off-screen slides are `inert`, or every control inside them sits in the tab order.
153
+ *
154
+ * `v-model` is the active slide index.
155
+ */
156
+ declare const Carousel: vue.DefineComponent<vue.ExtractPropTypes<{
157
+ items: {
158
+ type: PropType<readonly SlotContent[]>;
159
+ required: true;
160
+ };
161
+ modelValue: {
162
+ type: NumberConstructor;
163
+ default: undefined;
164
+ };
165
+ defaultValue: {
166
+ type: NumberConstructor;
167
+ default: number;
168
+ };
169
+ /** Wrap past the ends. */
170
+ loop: {
171
+ type: BooleanConstructor;
172
+ default: boolean;
173
+ };
174
+ /** Advance on a timer. */
175
+ autoPlay: {
176
+ type: BooleanConstructor;
177
+ default: boolean;
178
+ };
179
+ /** Seconds each slide is held when auto-playing. */
180
+ interval: {
181
+ type: NumberConstructor;
182
+ default: number;
183
+ };
184
+ showDots: {
185
+ type: BooleanConstructor;
186
+ default: boolean;
187
+ };
188
+ showArrows: {
189
+ type: BooleanConstructor;
190
+ default: boolean;
191
+ };
192
+ draggable: {
193
+ type: BooleanConstructor;
194
+ default: boolean;
195
+ };
196
+ /** Accessible name for the carousel region. */
197
+ label: {
198
+ type: StringConstructor;
199
+ required: true;
200
+ };
201
+ }>, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
202
+ [key: string]: any;
203
+ }> | null, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", vue.PublicProps, Readonly<vue.ExtractPropTypes<{
204
+ items: {
205
+ type: PropType<readonly SlotContent[]>;
206
+ required: true;
207
+ };
208
+ modelValue: {
209
+ type: NumberConstructor;
210
+ default: undefined;
211
+ };
212
+ defaultValue: {
213
+ type: NumberConstructor;
214
+ default: number;
215
+ };
216
+ /** Wrap past the ends. */
217
+ loop: {
218
+ type: BooleanConstructor;
219
+ default: boolean;
220
+ };
221
+ /** Advance on a timer. */
222
+ autoPlay: {
223
+ type: BooleanConstructor;
224
+ default: boolean;
225
+ };
226
+ /** Seconds each slide is held when auto-playing. */
227
+ interval: {
228
+ type: NumberConstructor;
229
+ default: number;
230
+ };
231
+ showDots: {
232
+ type: BooleanConstructor;
233
+ default: boolean;
234
+ };
235
+ showArrows: {
236
+ type: BooleanConstructor;
237
+ default: boolean;
238
+ };
239
+ draggable: {
240
+ type: BooleanConstructor;
241
+ default: boolean;
242
+ };
243
+ /** Accessible name for the carousel region. */
244
+ label: {
245
+ type: StringConstructor;
246
+ required: true;
247
+ };
248
+ }>> & Readonly<{
249
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
250
+ }>, {
251
+ loop: boolean;
252
+ modelValue: number;
253
+ defaultValue: number;
254
+ autoPlay: boolean;
255
+ interval: number;
256
+ showDots: boolean;
257
+ showArrows: boolean;
258
+ draggable: boolean;
259
+ }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
260
+
141
261
  interface Crumb {
142
262
  label: SlotContent;
143
263
  href?: string;
@@ -456,9 +576,9 @@ declare const Accordion: vue.DefineComponent<vue.ExtractPropTypes<{
456
576
  }>> & Readonly<{
457
577
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
458
578
  }>, {
579
+ multiple: boolean;
459
580
  modelValue: readonly string[];
460
581
  defaultValue: readonly string[];
461
- multiple: boolean;
462
582
  variant: AccordionVariant;
463
583
  }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
464
584
  interface DisclosureListProps {
@@ -512,4 +632,5 @@ declare const DisclosureList: vue.DefineComponent<vue.ExtractPropTypes<{
512
632
  lessLabel: string;
513
633
  }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
514
634
 
515
- export { Accordion, type AccordionItem, type AccordionVariant, Breadcrumbs, Collapsible, type CollapsibleProps, type Crumb, DisclosureList, type DisclosureListProps, type MegaMenuColumn, type MegaMenuLink, type NavMenuItem, NavigationMenu, type Step, Stepper, type StepperOrientation, type TabItem, Tabs, type TabsOrientation, type TabsSize, type TabsVariant };
635
+ export { Accordion, Breadcrumbs, Carousel, Collapsible, DisclosureList, NavigationMenu, Stepper, Tabs };
636
+ export type { AccordionItem, AccordionVariant, CollapsibleProps, Crumb, DisclosureListProps, MegaMenuColumn, MegaMenuLink, NavMenuItem, Step, StepperOrientation, TabItem, TabsOrientation, TabsSize, TabsVariant };
@@ -1,6 +1,6 @@
1
- export { Accordion, Breadcrumbs, Collapsible, DisclosureList, NavigationMenu, Stepper, Tabs } from './chunk-T425FIC7.js';
1
+ export { Accordion, Breadcrumbs, Carousel, Collapsible, DisclosureList, NavigationMenu, Stepper, Tabs } from './chunk-NKRPZTQA.js';
2
2
  export { AppShell, Sidebar } from './chunk-ZGMXOMCB.js';
3
- import './chunk-TMG3M6TK.js';
3
+ import './chunk-G2OX2NH2.js';
4
4
  import './chunk-OAQ7MDYX.js';
5
5
  import './chunk-NJDDNO4C.js';
6
6
  //# sourceMappingURL=navigation.js.map
package/dist/overlay.cjs CHANGED
@@ -1,9 +1,9 @@
1
1
  'use strict';
2
2
 
3
- var chunk5BQEZYG6_cjs = require('./chunk-5BQEZYG6.cjs');
3
+ var chunkEDAF7RAN_cjs = require('./chunk-EDAF7RAN.cjs');
4
4
  require('./chunk-DMPNT3MY.cjs');
5
5
  require('./chunk-XLLSS464.cjs');
6
- require('./chunk-EISHOEB6.cjs');
6
+ require('./chunk-MWGVDY6K.cjs');
7
7
  require('./chunk-774WBLDR.cjs');
8
8
  require('./chunk-6732H4BQ.cjs');
9
9
 
@@ -11,51 +11,51 @@ require('./chunk-6732H4BQ.cjs');
11
11
 
12
12
  Object.defineProperty(exports, "AlertDialog", {
13
13
  enumerable: true,
14
- get: function () { return chunk5BQEZYG6_cjs.AlertDialog; }
14
+ get: function () { return chunkEDAF7RAN_cjs.AlertDialog; }
15
15
  });
16
16
  Object.defineProperty(exports, "ContextMenu", {
17
17
  enumerable: true,
18
- get: function () { return chunk5BQEZYG6_cjs.ContextMenu; }
18
+ get: function () { return chunkEDAF7RAN_cjs.ContextMenu; }
19
19
  });
20
20
  Object.defineProperty(exports, "Dialog", {
21
21
  enumerable: true,
22
- get: function () { return chunk5BQEZYG6_cjs.Dialog; }
22
+ get: function () { return chunkEDAF7RAN_cjs.Dialog; }
23
23
  });
24
24
  Object.defineProperty(exports, "DialogFooter", {
25
25
  enumerable: true,
26
- get: function () { return chunk5BQEZYG6_cjs.DialogFooter; }
26
+ get: function () { return chunkEDAF7RAN_cjs.DialogFooter; }
27
27
  });
28
28
  Object.defineProperty(exports, "Drawer", {
29
29
  enumerable: true,
30
- get: function () { return chunk5BQEZYG6_cjs.Drawer; }
30
+ get: function () { return chunkEDAF7RAN_cjs.Drawer; }
31
31
  });
32
32
  Object.defineProperty(exports, "DropdownMenu", {
33
33
  enumerable: true,
34
- get: function () { return chunk5BQEZYG6_cjs.DropdownMenu; }
34
+ get: function () { return chunkEDAF7RAN_cjs.DropdownMenu; }
35
35
  });
36
36
  Object.defineProperty(exports, "HoverCard", {
37
37
  enumerable: true,
38
- get: function () { return chunk5BQEZYG6_cjs.HoverCard; }
38
+ get: function () { return chunkEDAF7RAN_cjs.HoverCard; }
39
39
  });
40
40
  Object.defineProperty(exports, "Popover", {
41
41
  enumerable: true,
42
- get: function () { return chunk5BQEZYG6_cjs.Popover; }
42
+ get: function () { return chunkEDAF7RAN_cjs.Popover; }
43
43
  });
44
44
  Object.defineProperty(exports, "PopoverContent", {
45
45
  enumerable: true,
46
- get: function () { return chunk5BQEZYG6_cjs.PopoverContent; }
46
+ get: function () { return chunkEDAF7RAN_cjs.PopoverContent; }
47
47
  });
48
48
  Object.defineProperty(exports, "PopoverTrigger", {
49
49
  enumerable: true,
50
- get: function () { return chunk5BQEZYG6_cjs.PopoverTrigger; }
50
+ get: function () { return chunkEDAF7RAN_cjs.PopoverTrigger; }
51
51
  });
52
52
  Object.defineProperty(exports, "Tooltip", {
53
53
  enumerable: true,
54
- get: function () { return chunk5BQEZYG6_cjs.Tooltip; }
54
+ get: function () { return chunkEDAF7RAN_cjs.Tooltip; }
55
55
  });
56
56
  Object.defineProperty(exports, "TooltipProvider", {
57
57
  enumerable: true,
58
- get: function () { return chunk5BQEZYG6_cjs.TooltipProvider; }
58
+ get: function () { return chunkEDAF7RAN_cjs.TooltipProvider; }
59
59
  });
60
60
  //# sourceMappingURL=overlay.cjs.map
61
61
  //# sourceMappingURL=overlay.cjs.map
@@ -1,7 +1,7 @@
1
1
  import * as vue from 'vue';
2
- import { PropType, Ref, VNode } from 'vue';
3
- import { P as Placement } from './position-Cn7qP1pn.cjs';
4
- import { S as SlotContent } from './utils-IKPG3zcC.cjs';
2
+ import { PropType, Ref } from 'vue';
3
+ import { Placement } from './index.cjs';
4
+ import { SlotContent } from './index.cjs';
5
5
 
6
6
  declare const Popover: vue.DefineComponent<vue.ExtractPropTypes<{
7
7
  open: {
@@ -55,9 +55,9 @@ declare const Popover: vue.DefineComponent<vue.ExtractPropTypes<{
55
55
  "onUpdate:open"?: ((...args: any[]) => any) | undefined;
56
56
  }>, {
57
57
  open: boolean;
58
+ defaultOpen: boolean;
58
59
  placement: Placement;
59
60
  offset: number;
60
- defaultOpen: boolean;
61
61
  modal: boolean;
62
62
  }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
63
63
  declare const PopoverTrigger: vue.DefineComponent<vue.ExtractPropTypes<{
@@ -113,8 +113,8 @@ declare const PopoverContent: vue.DefineComponent<vue.ExtractPropTypes<{
113
113
  };
114
114
  }>> & Readonly<{}>, {
115
115
  label: string;
116
- matchWidth: boolean;
117
116
  arrow: boolean;
117
+ matchWidth: boolean;
118
118
  }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
119
119
  /**
120
120
  * A rich preview shown on hover — a user card on an @mention, a link preview.
@@ -255,8 +255,8 @@ declare const Tooltip: vue.DefineComponent<vue.ExtractPropTypes<{
255
255
  default: boolean;
256
256
  };
257
257
  }>> & Readonly<{}>, {
258
- disabled: boolean;
259
258
  delay: number;
259
+ disabled: boolean;
260
260
  placement: Placement;
261
261
  arrow: boolean;
262
262
  }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
@@ -595,36 +595,14 @@ declare const Drawer: vue.DefineComponent<vue.ExtractPropTypes<{
595
595
  }>, {
596
596
  size: string;
597
597
  description: SlotContent;
598
- open: boolean;
599
598
  side: DrawerSide;
599
+ open: boolean;
600
600
  defaultOpen: boolean;
601
601
  modal: boolean;
602
602
  showClose: boolean;
603
603
  dismissable: boolean;
604
604
  }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
605
605
 
606
- /**
607
- * Menus — dropdown and context. The Vue counterpart of `@ansh-ui/react`'s `DropdownMenu` /
608
- * `ContextMenu`.
609
- *
610
- * Data-driven (`:items="[…]"`) rather than compound. Menus are almost always built from a
611
- * configuration array anyway — permissions filter entries, a selection decides what's enabled — and
612
- * expressing that as template children means `v-if` scattered through the tree, which breaks keyboard
613
- * navigation indices in ways that are painful to debug.
614
- *
615
- * Follows the ARIA menu pattern, where **DOM focus moves to the item** (unlike a listbox, which
616
- * keeps focus on the container). That's what makes Right/Left arrow submenu traversal work the way
617
- * it does in every desktop application.
618
- *
619
- * Keyboard navigation (`Home`/`End`/arrows/typeahead) is implemented directly rather than through
620
- * `useRovingFocus`: that primitive's arrow-key stepping doesn't skip disabled rows, while this menu's
621
- * navigation must — landing the roving tab stop on a disabled item is the one behaviour the ARIA menu
622
- * pattern explicitly forbids. The tabindex-per-row wiring below (`0` on the active row, `-1`
623
- * elsewhere) is the same roving-tabindex shape `useRovingFocus` implements, just with the
624
- * skip-disabled search this menu needs and the extra keys (`Enter`, `Escape`, `Tab`, typeahead,
625
- * `ArrowRight`/`ArrowLeft` for submenus) a generic composite widget hook doesn't know about — ported
626
- * directly from `@ansh-ui/react`'s own hand-rolled `move()`/`activate()`.
627
- */
628
606
  interface MenuItemBase {
629
607
  id?: string;
630
608
  disabled?: boolean;
@@ -668,6 +646,29 @@ type MenuEntry = MenuAction | MenuCheckbox | MenuRadioGroup | MenuSubmenu | {
668
646
  type: 'label';
669
647
  label: SlotContent;
670
648
  };
649
+
650
+ /**
651
+ * Menus — dropdown and context. The Vue counterpart of `@ansh-ui/react`'s `DropdownMenu` /
652
+ * `ContextMenu`.
653
+ *
654
+ * Data-driven (`:items="[…]"`) rather than compound. Menus are almost always built from a
655
+ * configuration array anyway — permissions filter entries, a selection decides what's enabled — and
656
+ * expressing that as template children means `v-if` scattered through the tree, which breaks keyboard
657
+ * navigation indices in ways that are painful to debug.
658
+ *
659
+ * Follows the ARIA menu pattern, where **DOM focus moves to the item** (unlike a listbox, which
660
+ * keeps focus on the container). That's what makes Right/Left arrow submenu traversal work the way
661
+ * it does in every desktop application.
662
+ *
663
+ * Keyboard navigation (`Home`/`End`/arrows/typeahead) is implemented directly rather than through
664
+ * `useRovingFocus`: that primitive's arrow-key stepping doesn't skip disabled rows, while this menu's
665
+ * navigation must — landing the roving tab stop on a disabled item is the one behaviour the ARIA menu
666
+ * pattern explicitly forbids. The tabindex-per-row wiring below (`0` on the active row, `-1`
667
+ * elsewhere) is the same roving-tabindex shape `useRovingFocus` implements, just with the
668
+ * skip-disabled search this menu needs and the extra keys (`Enter`, `Escape`, `Tab`, typeahead,
669
+ * `ArrowRight`/`ArrowLeft` for submenus) a generic composite widget hook doesn't know about — ported
670
+ * directly from `@ansh-ui/react`'s own hand-rolled `move()`/`activate()`.
671
+ */
671
672
  /**
672
673
  * A dropdown menu.
673
674
  *
@@ -703,7 +704,7 @@ declare const DropdownMenu: vue.DefineComponent<vue.ExtractPropTypes<{
703
704
  type: BooleanConstructor;
704
705
  default: boolean;
705
706
  };
706
- }>, () => VNode<vue.RendererNode, vue.RendererElement, {
707
+ }>, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
707
708
  [key: string]: any;
708
709
  }>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, "update:open"[], "update:open", vue.PublicProps, Readonly<vue.ExtractPropTypes<{
709
710
  items: {
@@ -732,9 +733,10 @@ declare const DropdownMenu: vue.DefineComponent<vue.ExtractPropTypes<{
732
733
  }>, {
733
734
  label: string;
734
735
  open: boolean;
735
- placement: Placement;
736
736
  defaultOpen: boolean;
737
+ placement: Placement;
737
738
  }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
739
+
738
740
  /**
739
741
  * A right-click menu.
740
742
  *
@@ -754,7 +756,7 @@ declare const ContextMenu: vue.DefineComponent<vue.ExtractPropTypes<{
754
756
  type: StringConstructor;
755
757
  default: string;
756
758
  };
757
- }>, () => VNode<vue.RendererNode, vue.RendererElement, {
759
+ }>, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
758
760
  [key: string]: any;
759
761
  }>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
760
762
  items: {
@@ -769,4 +771,5 @@ declare const ContextMenu: vue.DefineComponent<vue.ExtractPropTypes<{
769
771
  label: string;
770
772
  }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
771
773
 
772
- export { AlertDialog, ContextMenu, Dialog, DialogFooter, type DialogSize, Drawer, type DrawerSide, DropdownMenu, HoverCard, type MenuAction, type MenuCheckbox, type MenuEntry, type MenuRadioGroup, type MenuSubmenu, Popover, PopoverContent, PopoverTrigger, Tooltip, TooltipProvider };
774
+ export { AlertDialog, ContextMenu, Dialog, DialogFooter, Drawer, DropdownMenu, HoverCard, Popover, PopoverContent, PopoverTrigger, Tooltip, TooltipProvider };
775
+ export type { DialogSize, DrawerSide, MenuAction, MenuCheckbox, MenuEntry, MenuRadioGroup, MenuSubmenu };
package/dist/overlay.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import * as vue from 'vue';
2
- import { PropType, Ref, VNode } from 'vue';
3
- import { P as Placement } from './position-Cn7qP1pn.js';
4
- import { S as SlotContent } from './utils-IKPG3zcC.js';
2
+ import { PropType, Ref } from 'vue';
3
+ import { Placement } from './index.js';
4
+ import { SlotContent } from './index.js';
5
5
 
6
6
  declare const Popover: vue.DefineComponent<vue.ExtractPropTypes<{
7
7
  open: {
@@ -55,9 +55,9 @@ declare const Popover: vue.DefineComponent<vue.ExtractPropTypes<{
55
55
  "onUpdate:open"?: ((...args: any[]) => any) | undefined;
56
56
  }>, {
57
57
  open: boolean;
58
+ defaultOpen: boolean;
58
59
  placement: Placement;
59
60
  offset: number;
60
- defaultOpen: boolean;
61
61
  modal: boolean;
62
62
  }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
63
63
  declare const PopoverTrigger: vue.DefineComponent<vue.ExtractPropTypes<{
@@ -113,8 +113,8 @@ declare const PopoverContent: vue.DefineComponent<vue.ExtractPropTypes<{
113
113
  };
114
114
  }>> & Readonly<{}>, {
115
115
  label: string;
116
- matchWidth: boolean;
117
116
  arrow: boolean;
117
+ matchWidth: boolean;
118
118
  }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
119
119
  /**
120
120
  * A rich preview shown on hover — a user card on an @mention, a link preview.
@@ -255,8 +255,8 @@ declare const Tooltip: vue.DefineComponent<vue.ExtractPropTypes<{
255
255
  default: boolean;
256
256
  };
257
257
  }>> & Readonly<{}>, {
258
- disabled: boolean;
259
258
  delay: number;
259
+ disabled: boolean;
260
260
  placement: Placement;
261
261
  arrow: boolean;
262
262
  }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
@@ -595,36 +595,14 @@ declare const Drawer: vue.DefineComponent<vue.ExtractPropTypes<{
595
595
  }>, {
596
596
  size: string;
597
597
  description: SlotContent;
598
- open: boolean;
599
598
  side: DrawerSide;
599
+ open: boolean;
600
600
  defaultOpen: boolean;
601
601
  modal: boolean;
602
602
  showClose: boolean;
603
603
  dismissable: boolean;
604
604
  }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
605
605
 
606
- /**
607
- * Menus — dropdown and context. The Vue counterpart of `@ansh-ui/react`'s `DropdownMenu` /
608
- * `ContextMenu`.
609
- *
610
- * Data-driven (`:items="[…]"`) rather than compound. Menus are almost always built from a
611
- * configuration array anyway — permissions filter entries, a selection decides what's enabled — and
612
- * expressing that as template children means `v-if` scattered through the tree, which breaks keyboard
613
- * navigation indices in ways that are painful to debug.
614
- *
615
- * Follows the ARIA menu pattern, where **DOM focus moves to the item** (unlike a listbox, which
616
- * keeps focus on the container). That's what makes Right/Left arrow submenu traversal work the way
617
- * it does in every desktop application.
618
- *
619
- * Keyboard navigation (`Home`/`End`/arrows/typeahead) is implemented directly rather than through
620
- * `useRovingFocus`: that primitive's arrow-key stepping doesn't skip disabled rows, while this menu's
621
- * navigation must — landing the roving tab stop on a disabled item is the one behaviour the ARIA menu
622
- * pattern explicitly forbids. The tabindex-per-row wiring below (`0` on the active row, `-1`
623
- * elsewhere) is the same roving-tabindex shape `useRovingFocus` implements, just with the
624
- * skip-disabled search this menu needs and the extra keys (`Enter`, `Escape`, `Tab`, typeahead,
625
- * `ArrowRight`/`ArrowLeft` for submenus) a generic composite widget hook doesn't know about — ported
626
- * directly from `@ansh-ui/react`'s own hand-rolled `move()`/`activate()`.
627
- */
628
606
  interface MenuItemBase {
629
607
  id?: string;
630
608
  disabled?: boolean;
@@ -668,6 +646,29 @@ type MenuEntry = MenuAction | MenuCheckbox | MenuRadioGroup | MenuSubmenu | {
668
646
  type: 'label';
669
647
  label: SlotContent;
670
648
  };
649
+
650
+ /**
651
+ * Menus — dropdown and context. The Vue counterpart of `@ansh-ui/react`'s `DropdownMenu` /
652
+ * `ContextMenu`.
653
+ *
654
+ * Data-driven (`:items="[…]"`) rather than compound. Menus are almost always built from a
655
+ * configuration array anyway — permissions filter entries, a selection decides what's enabled — and
656
+ * expressing that as template children means `v-if` scattered through the tree, which breaks keyboard
657
+ * navigation indices in ways that are painful to debug.
658
+ *
659
+ * Follows the ARIA menu pattern, where **DOM focus moves to the item** (unlike a listbox, which
660
+ * keeps focus on the container). That's what makes Right/Left arrow submenu traversal work the way
661
+ * it does in every desktop application.
662
+ *
663
+ * Keyboard navigation (`Home`/`End`/arrows/typeahead) is implemented directly rather than through
664
+ * `useRovingFocus`: that primitive's arrow-key stepping doesn't skip disabled rows, while this menu's
665
+ * navigation must — landing the roving tab stop on a disabled item is the one behaviour the ARIA menu
666
+ * pattern explicitly forbids. The tabindex-per-row wiring below (`0` on the active row, `-1`
667
+ * elsewhere) is the same roving-tabindex shape `useRovingFocus` implements, just with the
668
+ * skip-disabled search this menu needs and the extra keys (`Enter`, `Escape`, `Tab`, typeahead,
669
+ * `ArrowRight`/`ArrowLeft` for submenus) a generic composite widget hook doesn't know about — ported
670
+ * directly from `@ansh-ui/react`'s own hand-rolled `move()`/`activate()`.
671
+ */
671
672
  /**
672
673
  * A dropdown menu.
673
674
  *
@@ -703,7 +704,7 @@ declare const DropdownMenu: vue.DefineComponent<vue.ExtractPropTypes<{
703
704
  type: BooleanConstructor;
704
705
  default: boolean;
705
706
  };
706
- }>, () => VNode<vue.RendererNode, vue.RendererElement, {
707
+ }>, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
707
708
  [key: string]: any;
708
709
  }>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, "update:open"[], "update:open", vue.PublicProps, Readonly<vue.ExtractPropTypes<{
709
710
  items: {
@@ -732,9 +733,10 @@ declare const DropdownMenu: vue.DefineComponent<vue.ExtractPropTypes<{
732
733
  }>, {
733
734
  label: string;
734
735
  open: boolean;
735
- placement: Placement;
736
736
  defaultOpen: boolean;
737
+ placement: Placement;
737
738
  }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
739
+
738
740
  /**
739
741
  * A right-click menu.
740
742
  *
@@ -754,7 +756,7 @@ declare const ContextMenu: vue.DefineComponent<vue.ExtractPropTypes<{
754
756
  type: StringConstructor;
755
757
  default: string;
756
758
  };
757
- }>, () => VNode<vue.RendererNode, vue.RendererElement, {
759
+ }>, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
758
760
  [key: string]: any;
759
761
  }>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
760
762
  items: {
@@ -769,4 +771,5 @@ declare const ContextMenu: vue.DefineComponent<vue.ExtractPropTypes<{
769
771
  label: string;
770
772
  }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
771
773
 
772
- export { AlertDialog, ContextMenu, Dialog, DialogFooter, type DialogSize, Drawer, type DrawerSide, DropdownMenu, HoverCard, type MenuAction, type MenuCheckbox, type MenuEntry, type MenuRadioGroup, type MenuSubmenu, Popover, PopoverContent, PopoverTrigger, Tooltip, TooltipProvider };
774
+ export { AlertDialog, ContextMenu, Dialog, DialogFooter, Drawer, DropdownMenu, HoverCard, Popover, PopoverContent, PopoverTrigger, Tooltip, TooltipProvider };
775
+ export type { DialogSize, DrawerSide, MenuAction, MenuCheckbox, MenuEntry, MenuRadioGroup, MenuSubmenu };