arvue-ui 0.1.0 → 0.3.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.
Files changed (143) hide show
  1. package/dist/all.css +1 -1
  2. package/dist/autocomplete/autocomplete.js +52 -0
  3. package/dist/autocomplete/autocomplete.js.map +1 -0
  4. package/dist/autocomplete/autocompleteAnchor.js +24 -0
  5. package/dist/autocomplete/autocompleteAnchor.js.map +1 -0
  6. package/dist/autocomplete/autocompleteArrow.js +26 -0
  7. package/dist/autocomplete/autocompleteArrow.js.map +1 -0
  8. package/dist/autocomplete/autocompleteCancel.js +23 -0
  9. package/dist/autocomplete/autocompleteCancel.js.map +1 -0
  10. package/dist/autocomplete/autocompleteContent.js +77 -0
  11. package/dist/autocomplete/autocompleteContent.js.map +1 -0
  12. package/dist/autocomplete/autocompleteEmpty.js +33 -0
  13. package/dist/autocomplete/autocompleteEmpty.js.map +1 -0
  14. package/dist/autocomplete/autocompleteGroup.js +23 -0
  15. package/dist/autocomplete/autocompleteGroup.js.map +1 -0
  16. package/dist/autocomplete/autocompleteInput.js +65 -0
  17. package/dist/autocomplete/autocompleteInput.js.map +1 -0
  18. package/dist/autocomplete/autocompleteItem.js +36 -0
  19. package/dist/autocomplete/autocompleteItem.js.map +1 -0
  20. package/dist/autocomplete/autocompleteLabel.js +34 -0
  21. package/dist/autocomplete/autocompleteLabel.js.map +1 -0
  22. package/dist/autocomplete/autocompletePortal.js +25 -0
  23. package/dist/autocomplete/autocompletePortal.js.map +1 -0
  24. package/dist/autocomplete/autocompleteSeparator.js +33 -0
  25. package/dist/autocomplete/autocompleteSeparator.js.map +1 -0
  26. package/dist/autocomplete/autocompleteTrigger.js +24 -0
  27. package/dist/autocomplete/autocompleteTrigger.js.map +1 -0
  28. package/dist/autocomplete/autocompleteViewport.js +24 -0
  29. package/dist/autocomplete/autocompleteViewport.js.map +1 -0
  30. package/dist/dialog/dialogContent.js +2 -2
  31. package/dist/dialog/dialogDescription.js +7 -5
  32. package/dist/dialog/dialogDescription.js.map +1 -1
  33. package/dist/dialog/dialogFooter.js +16 -10
  34. package/dist/dialog/dialogFooter.js.map +1 -1
  35. package/dist/dialog/dialogHeader.js +16 -10
  36. package/dist/dialog/dialogHeader.js.map +1 -1
  37. package/dist/dialog/dialogOverlay.js +1 -1
  38. package/dist/dialog/dialogTitle.js +7 -5
  39. package/dist/dialog/dialogTitle.js.map +1 -1
  40. package/dist/drawer/drawer.js +32 -0
  41. package/dist/drawer/drawer.js.map +1 -0
  42. package/dist/drawer/drawerClose.js +23 -0
  43. package/dist/drawer/drawerClose.js.map +1 -0
  44. package/dist/drawer/drawerContent.js +108 -0
  45. package/dist/drawer/drawerContent.js.map +1 -0
  46. package/dist/drawer/drawerDescription.js +33 -0
  47. package/dist/drawer/drawerDescription.js.map +1 -0
  48. package/dist/drawer/drawerFooter.js +33 -0
  49. package/dist/drawer/drawerFooter.js.map +1 -0
  50. package/dist/drawer/drawerHeader.js +33 -0
  51. package/dist/drawer/drawerHeader.js.map +1 -0
  52. package/dist/drawer/drawerOverlay.js +34 -0
  53. package/dist/drawer/drawerOverlay.js.map +1 -0
  54. package/dist/drawer/drawerTitle.js +33 -0
  55. package/dist/drawer/drawerTitle.js.map +1 -0
  56. package/dist/drawer/drawerTrigger.js +23 -0
  57. package/dist/drawer/drawerTrigger.js.map +1 -0
  58. package/dist/index.d.ts +577 -31
  59. package/dist/index.d.ts.map +1 -1
  60. package/dist/index.js +1109 -125
  61. package/dist/index.js.map +1 -1
  62. package/dist/sheet/sheet.js +54 -0
  63. package/dist/sheet/sheet.js.map +1 -0
  64. package/dist/sheet/sheetClose.js +23 -0
  65. package/dist/sheet/sheetClose.js.map +1 -0
  66. package/dist/sheet/sheetContent.js +61 -0
  67. package/dist/sheet/sheetContent.js.map +1 -0
  68. package/dist/sheet/sheetDescription.js +33 -0
  69. package/dist/sheet/sheetDescription.js.map +1 -0
  70. package/dist/sheet/sheetFooter.js +33 -0
  71. package/dist/sheet/sheetFooter.js.map +1 -0
  72. package/dist/sheet/sheetHeader.js +33 -0
  73. package/dist/sheet/sheetHeader.js.map +1 -0
  74. package/dist/sheet/sheetOverlay.js +34 -0
  75. package/dist/sheet/sheetOverlay.js.map +1 -0
  76. package/dist/sheet/sheetTitle.js +33 -0
  77. package/dist/sheet/sheetTitle.js.map +1 -0
  78. package/dist/sheet/sheetTrigger.js +23 -0
  79. package/dist/sheet/sheetTrigger.js.map +1 -0
  80. package/dist/style.css +36 -0
  81. package/package.json +10 -4
  82. package/src/autocomplete/Autocomplete.vue +36 -0
  83. package/src/autocomplete/AutocompleteAnchor.vue +17 -0
  84. package/src/autocomplete/AutocompleteArrow.vue +17 -0
  85. package/src/autocomplete/AutocompleteCancel.vue +17 -0
  86. package/src/autocomplete/AutocompleteContent.vue +45 -0
  87. package/src/autocomplete/AutocompleteEmpty.vue +31 -0
  88. package/src/autocomplete/AutocompleteGroup.vue +17 -0
  89. package/src/autocomplete/AutocompleteInput.vue +63 -0
  90. package/src/autocomplete/AutocompleteItem.vue +32 -0
  91. package/src/autocomplete/AutocompleteLabel.vue +31 -0
  92. package/src/autocomplete/AutocompletePortal.vue +17 -0
  93. package/src/autocomplete/AutocompleteSeparator.vue +31 -0
  94. package/src/autocomplete/AutocompleteTrigger.vue +17 -0
  95. package/src/autocomplete/AutocompleteViewport.vue +17 -0
  96. package/src/autocomplete/autocomplete-content.css +7 -0
  97. package/src/autocomplete/autocomplete-empty.css +7 -0
  98. package/src/autocomplete/autocomplete-item.css +14 -0
  99. package/src/autocomplete/autocomplete-label.css +6 -0
  100. package/src/autocomplete/autocomplete-separator.css +5 -0
  101. package/src/autocomplete/autocomplete.css +4 -0
  102. package/src/autocomplete/index.ts +60 -0
  103. package/src/dialog/DialogDescription.vue +13 -5
  104. package/src/dialog/DialogFooter.vue +9 -2
  105. package/src/dialog/DialogHeader.vue +9 -2
  106. package/src/dialog/DialogTitle.vue +13 -5
  107. package/src/dialog/dialog-content.css +1 -1
  108. package/src/dialog/dialog-description.css +2 -0
  109. package/src/dialog/dialog-overlay.css +1 -1
  110. package/src/dialog/dialog-title.css +1 -3
  111. package/src/drawer/Drawer.vue +27 -0
  112. package/src/drawer/DrawerClose.vue +19 -0
  113. package/src/drawer/DrawerContent.vue +99 -0
  114. package/src/drawer/DrawerDescription.vue +33 -0
  115. package/src/drawer/DrawerFooter.vue +31 -0
  116. package/src/drawer/DrawerHeader.vue +31 -0
  117. package/src/drawer/DrawerOverlay.vue +31 -0
  118. package/src/drawer/DrawerTitle.vue +33 -0
  119. package/src/drawer/DrawerTrigger.vue +17 -0
  120. package/src/drawer/drawer-content.css +68 -0
  121. package/src/drawer/drawer-description.css +5 -0
  122. package/src/drawer/drawer-footer.css +11 -0
  123. package/src/drawer/drawer-header.css +6 -0
  124. package/src/drawer/drawer-overlay.css +12 -0
  125. package/src/drawer/drawer-title.css +3 -0
  126. package/src/drawer/index.ts +38 -0
  127. package/src/index.ts +3 -0
  128. package/src/sheet/Sheet.vue +29 -0
  129. package/src/sheet/SheetClose.vue +19 -0
  130. package/src/sheet/SheetContent.vue +53 -0
  131. package/src/sheet/SheetDescription.vue +33 -0
  132. package/src/sheet/SheetFooter.vue +31 -0
  133. package/src/sheet/SheetHeader.vue +31 -0
  134. package/src/sheet/SheetOverlay.vue +31 -0
  135. package/src/sheet/SheetTitle.vue +33 -0
  136. package/src/sheet/SheetTrigger.vue +17 -0
  137. package/src/sheet/index.ts +38 -0
  138. package/src/sheet/sheet-content.css +67 -0
  139. package/src/sheet/sheet-description.css +5 -0
  140. package/src/sheet/sheet-footer.css +11 -0
  141. package/src/sheet/sheet-header.css +6 -0
  142. package/src/sheet/sheet-overlay.css +12 -0
  143. package/src/sheet/sheet-title.css +3 -0
package/dist/index.js CHANGED
@@ -1,10 +1,1015 @@
1
- import { createBlock, createCommentVNode, createElementVNode, createVNode, defineComponent, guardReactiveProps, mergeProps, normalizeClass, normalizeProps, openBlock, renderSlot, unref, withCtx } from "vue";
2
- import { DialogClose, DialogContent, DialogOverlay, DialogPortal, DialogRoot, DialogTrigger, Primitive, useForwardPropsEmits } from "reka-ui";
1
+ import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, guardReactiveProps, mergeProps, normalizeProps, openBlock, renderSlot, unref, useTemplateRef, withCtx } from "vue";
3
2
  import { reactiveOmit } from "@vueuse/core";
3
+ import { AutocompleteAnchor, AutocompleteArrow, AutocompleteCancel, AutocompleteContent, AutocompleteEmpty, AutocompleteGroup, AutocompleteInput, AutocompleteItem, AutocompleteLabel, AutocompletePortal, AutocompleteRoot, AutocompleteSeparator, AutocompleteTrigger, AutocompleteViewport, DialogClose, DialogContent, DialogDescription, DialogOverlay, DialogPortal, DialogRoot, DialogTitle, DialogTrigger, Primitive, useForwardPropsEmits } from "reka-ui";
4
4
  import { AnimatePresence, Motion } from "motion-v";
5
- //#region src/dialog/Dialog.vue
5
+ import { DrawerClose, DrawerContent, DrawerDescription, DrawerOverlay, DrawerPortal, DrawerRoot, DrawerTitle, DrawerTrigger } from "vaul-vue";
6
+ //#region ../../node_modules/.pnpm/clsx@2.1.1/node_modules/clsx/dist/clsx.mjs
7
+ function r(e) {
8
+ var t, f, n = "";
9
+ if ("string" == typeof e || "number" == typeof e) n += e;
10
+ else if ("object" == typeof e) if (Array.isArray(e)) {
11
+ var o = e.length;
12
+ for (t = 0; t < o; t++) e[t] && (f = r(e[t])) && (n && (n += " "), n += f);
13
+ } else for (f in e) e[f] && (n && (n += " "), n += f);
14
+ return n;
15
+ }
16
+ function clsx() {
17
+ for (var e, t, f = 0, n = "", o = arguments.length; f < o; f++) (e = arguments[f]) && (t = r(e)) && (n && (n += " "), n += t);
18
+ return n;
19
+ }
20
+ //#endregion
21
+ //#region src/autocomplete/Autocomplete.vue
6
22
  const _sfc_main = /* @__PURE__ */ defineComponent({
7
- __name: "Dialog",
23
+ __name: "Autocomplete",
24
+ props: {
25
+ class: { type: [
26
+ Boolean,
27
+ null,
28
+ String,
29
+ Object,
30
+ Array
31
+ ] },
32
+ modelValue: {},
33
+ defaultValue: {},
34
+ open: { type: Boolean },
35
+ defaultOpen: { type: Boolean },
36
+ disabled: { type: Boolean },
37
+ dir: {},
38
+ name: {},
39
+ required: { type: Boolean },
40
+ resetSearchTermOnBlur: { type: Boolean },
41
+ openOnFocus: { type: Boolean },
42
+ openOnClick: { type: Boolean },
43
+ ignoreFilter: { type: Boolean },
44
+ highlightOnHover: { type: Boolean },
45
+ asChild: { type: Boolean },
46
+ as: {}
47
+ },
48
+ emits: [
49
+ "update:modelValue",
50
+ "highlight",
51
+ "update:open"
52
+ ],
53
+ setup(__props, { emit: __emit }) {
54
+ const props = __props;
55
+ const emits = __emit;
56
+ const forwarded = useForwardPropsEmits(reactiveOmit(props, "class"), emits);
57
+ return (_ctx, _cache) => {
58
+ return openBlock(), createBlock(unref(AutocompleteRoot), mergeProps(unref(forwarded), { class: unref(clsx)("arvue-autocomplete", props.class) }), {
59
+ default: withCtx((slotProps) => [renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(slotProps)))]),
60
+ _: 3
61
+ }, 16, ["class"]);
62
+ };
63
+ }
64
+ });
65
+ //#endregion
66
+ //#region src/autocomplete/AutocompleteAnchor.vue
67
+ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
68
+ __name: "AutocompleteAnchor",
69
+ props: {
70
+ reference: {},
71
+ asChild: { type: Boolean },
72
+ as: {}
73
+ },
74
+ setup(__props) {
75
+ const props = __props;
76
+ return (_ctx, _cache) => {
77
+ return openBlock(), createBlock(unref(AutocompleteAnchor), normalizeProps(guardReactiveProps(props)), {
78
+ default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
79
+ _: 3
80
+ }, 16);
81
+ };
82
+ }
83
+ });
84
+ //#endregion
85
+ //#region src/autocomplete/AutocompleteArrow.vue
86
+ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
87
+ __name: "AutocompleteArrow",
88
+ props: {
89
+ width: {},
90
+ height: {},
91
+ rounded: { type: Boolean },
92
+ asChild: { type: Boolean },
93
+ as: {}
94
+ },
95
+ setup(__props) {
96
+ const props = __props;
97
+ return (_ctx, _cache) => {
98
+ return openBlock(), createBlock(unref(AutocompleteArrow), normalizeProps(guardReactiveProps(props)), {
99
+ default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
100
+ _: 3
101
+ }, 16);
102
+ };
103
+ }
104
+ });
105
+ //#endregion
106
+ //#region src/autocomplete/AutocompleteCancel.vue
107
+ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
108
+ __name: "AutocompleteCancel",
109
+ props: {
110
+ asChild: { type: Boolean },
111
+ as: {}
112
+ },
113
+ setup(__props) {
114
+ const props = __props;
115
+ return (_ctx, _cache) => {
116
+ return openBlock(), createBlock(unref(AutocompleteCancel), normalizeProps(guardReactiveProps(props)), {
117
+ default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
118
+ _: 3
119
+ }, 16);
120
+ };
121
+ }
122
+ });
123
+ //#endregion
124
+ //#region src/autocomplete/AutocompleteContent.vue
125
+ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
126
+ inheritAttrs: false,
127
+ __name: "AutocompleteContent",
128
+ props: {
129
+ class: { type: [
130
+ Boolean,
131
+ null,
132
+ String,
133
+ Object,
134
+ Array
135
+ ] },
136
+ forceMount: { type: Boolean },
137
+ bodyLock: { type: Boolean },
138
+ hideWhenEmpty: { type: Boolean },
139
+ side: {},
140
+ sideOffset: {},
141
+ sideFlip: { type: Boolean },
142
+ align: {},
143
+ alignOffset: {},
144
+ alignFlip: { type: Boolean },
145
+ avoidCollisions: { type: Boolean },
146
+ collisionBoundary: {},
147
+ collisionPadding: {},
148
+ arrowPadding: {},
149
+ hideShiftedArrow: { type: Boolean },
150
+ sticky: {},
151
+ hideWhenDetached: { type: Boolean },
152
+ positionStrategy: {},
153
+ updatePositionStrategy: {},
154
+ disableUpdateOnLayoutShift: { type: Boolean },
155
+ prioritizePosition: { type: Boolean },
156
+ reference: {},
157
+ asChild: { type: Boolean },
158
+ as: {},
159
+ disableOutsidePointerEvents: { type: Boolean }
160
+ },
161
+ emits: [
162
+ "escapeKeyDown",
163
+ "pointerDownOutside",
164
+ "focusOutside",
165
+ "interactOutside"
166
+ ],
167
+ setup(__props, { emit: __emit }) {
168
+ const props = __props;
169
+ const emits = __emit;
170
+ const forwarded = useForwardPropsEmits(reactiveOmit(props, "class"), emits);
171
+ return (_ctx, _cache) => {
172
+ return openBlock(), createBlock(unref(_sfc_main$10), null, {
173
+ default: withCtx(() => [createVNode(unref(AutocompleteContent), mergeProps({
174
+ ..._ctx.$attrs,
175
+ ...unref(forwarded)
176
+ }, {
177
+ class: unref(clsx)("arvue-autocomplete-content", props.class),
178
+ position: "popper"
179
+ }), {
180
+ default: withCtx(() => [createVNode(unref(_sfc_main$13), null, {
181
+ default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
182
+ _: 3
183
+ })]),
184
+ _: 3
185
+ }, 16, ["class"])]),
186
+ _: 3
187
+ });
188
+ };
189
+ }
190
+ });
191
+ //#endregion
192
+ //#region src/autocomplete/AutocompleteEmpty.vue
193
+ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
194
+ __name: "AutocompleteEmpty",
195
+ props: {
196
+ class: { type: [
197
+ Boolean,
198
+ null,
199
+ String,
200
+ Object,
201
+ Array
202
+ ] },
203
+ asChild: { type: Boolean },
204
+ as: {}
205
+ },
206
+ setup(__props) {
207
+ const props = __props;
208
+ const delegatedProps = reactiveOmit(props, "class");
209
+ return (_ctx, _cache) => {
210
+ return openBlock(), createBlock(unref(AutocompleteEmpty), mergeProps(unref(delegatedProps), { class: unref(clsx)("arvue-autocomplete-empty", props.class) }), {
211
+ default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
212
+ _: 3
213
+ }, 16, ["class"]);
214
+ };
215
+ }
216
+ });
217
+ //#endregion
218
+ //#region src/autocomplete/AutocompleteGroup.vue
219
+ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
220
+ __name: "AutocompleteGroup",
221
+ props: {
222
+ asChild: { type: Boolean },
223
+ as: {}
224
+ },
225
+ setup(__props) {
226
+ const props = __props;
227
+ return (_ctx, _cache) => {
228
+ return openBlock(), createBlock(unref(AutocompleteGroup), normalizeProps(guardReactiveProps(props)), {
229
+ default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
230
+ _: 3
231
+ }, 16);
232
+ };
233
+ }
234
+ });
235
+ //#endregion
236
+ //#region src/autocomplete/AutocompleteInput.vue
237
+ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
238
+ inheritAttrs: false,
239
+ __name: "AutocompleteInput",
240
+ props: {
241
+ showTriggerButton: {
242
+ type: Boolean,
243
+ default: true
244
+ },
245
+ showCancelButton: {
246
+ type: Boolean,
247
+ default: false
248
+ },
249
+ modelValue: {},
250
+ autoFocus: { type: Boolean },
251
+ disabled: { type: Boolean },
252
+ asChild: { type: Boolean },
253
+ as: {}
254
+ },
255
+ emits: ["cancel", "update:modelValue"],
256
+ setup(__props, { emit: __emit }) {
257
+ const props = __props;
258
+ const emits = __emit;
259
+ const forwarded = useForwardPropsEmits(reactiveOmit(props, "showCancelButton", "showTriggerButton"), emits);
260
+ const inputRef = useTemplateRef("inputRef");
261
+ return (_ctx, _cache) => {
262
+ return openBlock(), createElementBlock(Fragment, null, [createVNode(unref(_sfc_main$1), {
263
+ class: "state-with-inner-icon right",
264
+ reference: inputRef.value?.$el
265
+ }, {
266
+ default: withCtx(() => [createVNode(unref(AutocompleteInput), mergeProps({
267
+ ..._ctx.$attrs,
268
+ ...unref(forwarded)
269
+ }, {
270
+ ref_key: "inputRef",
271
+ ref: inputRef
272
+ }), null, 16), __props.showTriggerButton ? (openBlock(), createBlock(unref(_sfc_main$12), {
273
+ key: 0,
274
+ class: "icon"
275
+ }, {
276
+ default: withCtx(() => [..._cache[1] || (_cache[1] = [createElementVNode("i", { class: "fas fa-chevron-down" }, null, -1)])]),
277
+ _: 1
278
+ })) : createCommentVNode("v-if", true)]),
279
+ _: 1
280
+ }, 8, ["reference"]), __props.showCancelButton ? (openBlock(), createBlock(unref(_sfc_main$3), {
281
+ key: 0,
282
+ class: "icon",
283
+ onClick: _cache[0] || (_cache[0] = ($event) => emits("cancel"))
284
+ }, {
285
+ default: withCtx(() => [..._cache[2] || (_cache[2] = [createElementVNode("i", { class: "fas fa-times" }, null, -1)])]),
286
+ _: 1
287
+ })) : createCommentVNode("v-if", true)], 64);
288
+ };
289
+ }
290
+ });
291
+ //#endregion
292
+ //#region src/autocomplete/AutocompleteItem.vue
293
+ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
294
+ __name: "AutocompleteItem",
295
+ props: {
296
+ class: { type: [
297
+ Boolean,
298
+ null,
299
+ String,
300
+ Object,
301
+ Array
302
+ ] },
303
+ textValue: {},
304
+ value: {},
305
+ disabled: { type: Boolean },
306
+ asChild: { type: Boolean },
307
+ as: {}
308
+ },
309
+ emits: ["select"],
310
+ setup(__props, { emit: __emit }) {
311
+ const props = __props;
312
+ const forwarded = useForwardPropsEmits(props, __emit);
313
+ return (_ctx, _cache) => {
314
+ return openBlock(), createBlock(unref(AutocompleteItem), mergeProps(unref(forwarded), { class: unref(clsx)("arvue-autocomplete-item", props.class) }), {
315
+ default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
316
+ _: 3
317
+ }, 16, ["class"]);
318
+ };
319
+ }
320
+ });
321
+ //#endregion
322
+ //#region src/autocomplete/AutocompleteLabel.vue
323
+ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
324
+ __name: "AutocompleteLabel",
325
+ props: {
326
+ class: { type: [
327
+ Boolean,
328
+ null,
329
+ String,
330
+ Object,
331
+ Array
332
+ ] },
333
+ for: {},
334
+ asChild: { type: Boolean },
335
+ as: {}
336
+ },
337
+ setup(__props) {
338
+ const props = __props;
339
+ const delegatedProps = reactiveOmit(props, "class");
340
+ return (_ctx, _cache) => {
341
+ return openBlock(), createBlock(unref(AutocompleteLabel), mergeProps(unref(delegatedProps), { class: unref(clsx)("arvue-autocomplete-label", props.class) }), {
342
+ default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
343
+ _: 3
344
+ }, 16, ["class"]);
345
+ };
346
+ }
347
+ });
348
+ //#endregion
349
+ //#region src/autocomplete/AutocompletePortal.vue
350
+ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
351
+ __name: "AutocompletePortal",
352
+ props: {
353
+ to: {},
354
+ disabled: { type: Boolean },
355
+ defer: { type: Boolean },
356
+ forceMount: { type: Boolean }
357
+ },
358
+ setup(__props) {
359
+ const props = __props;
360
+ return (_ctx, _cache) => {
361
+ return openBlock(), createBlock(unref(AutocompletePortal), normalizeProps(guardReactiveProps(props)), {
362
+ default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
363
+ _: 3
364
+ }, 16);
365
+ };
366
+ }
367
+ });
368
+ //#endregion
369
+ //#region src/autocomplete/AutocompleteSeparator.vue
370
+ const _sfc_main$11 = /* @__PURE__ */ defineComponent({
371
+ __name: "AutocompleteSeparator",
372
+ props: {
373
+ class: { type: [
374
+ Boolean,
375
+ null,
376
+ String,
377
+ Object,
378
+ Array
379
+ ] },
380
+ asChild: { type: Boolean },
381
+ as: {}
382
+ },
383
+ setup(__props) {
384
+ const props = __props;
385
+ const delegatedProps = reactiveOmit(props, "class");
386
+ return (_ctx, _cache) => {
387
+ return openBlock(), createBlock(unref(AutocompleteSeparator), mergeProps(unref(delegatedProps), { class: unref(clsx)("arvue-autocomplete-separator", props.class) }), {
388
+ default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
389
+ _: 3
390
+ }, 16, ["class"]);
391
+ };
392
+ }
393
+ });
394
+ //#endregion
395
+ //#region src/autocomplete/AutocompleteTrigger.vue
396
+ const _sfc_main$12 = /* @__PURE__ */ defineComponent({
397
+ __name: "AutocompleteTrigger",
398
+ props: {
399
+ disabled: { type: Boolean },
400
+ asChild: { type: Boolean },
401
+ as: {}
402
+ },
403
+ setup(__props) {
404
+ const props = __props;
405
+ return (_ctx, _cache) => {
406
+ return openBlock(), createBlock(unref(AutocompleteTrigger), normalizeProps(guardReactiveProps(props)), {
407
+ default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
408
+ _: 3
409
+ }, 16);
410
+ };
411
+ }
412
+ });
413
+ //#endregion
414
+ //#region src/autocomplete/AutocompleteViewport.vue
415
+ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
416
+ __name: "AutocompleteViewport",
417
+ props: {
418
+ nonce: {},
419
+ asChild: { type: Boolean },
420
+ as: {}
421
+ },
422
+ setup(__props) {
423
+ const props = __props;
424
+ return (_ctx, _cache) => {
425
+ return openBlock(), createBlock(unref(AutocompleteViewport), normalizeProps(guardReactiveProps(props)), {
426
+ default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
427
+ _: 3
428
+ }, 16);
429
+ };
430
+ }
431
+ });
432
+ //#endregion
433
+ //#region src/dialog/Dialog.vue
434
+ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
435
+ __name: "Dialog",
436
+ props: {
437
+ class: { type: [
438
+ Boolean,
439
+ null,
440
+ String,
441
+ Object,
442
+ Array
443
+ ] },
444
+ open: { type: Boolean },
445
+ defaultOpen: { type: Boolean },
446
+ modal: { type: Boolean }
447
+ },
448
+ emits: ["update:open"],
449
+ setup(__props, { emit: __emit }) {
450
+ const forwarded = useForwardPropsEmits(__props, __emit);
451
+ return (_ctx, _cache) => {
452
+ return openBlock(), createBlock(unref(DialogRoot), normalizeProps(guardReactiveProps(unref(forwarded))), {
453
+ default: withCtx((slotProps) => [renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(slotProps)))]),
454
+ _: 3
455
+ }, 16);
456
+ };
457
+ }
458
+ });
459
+ //#endregion
460
+ //#region src/dialog/DialogClose.vue
461
+ const _sfc_main$15 = /* @__PURE__ */ defineComponent({
462
+ __name: "DialogClose",
463
+ props: {
464
+ asChild: { type: Boolean },
465
+ as: { default: "a" }
466
+ },
467
+ setup(__props) {
468
+ const props = __props;
469
+ return (_ctx, _cache) => {
470
+ return openBlock(), createBlock(unref(DialogClose), normalizeProps(guardReactiveProps(props)), {
471
+ default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
472
+ _: 3
473
+ }, 16);
474
+ };
475
+ }
476
+ });
477
+ //#endregion
478
+ //#region src/dialog/DialogContent.vue
479
+ const _sfc_main$16 = /* @__PURE__ */ defineComponent({
480
+ inheritAttrs: false,
481
+ __name: "DialogContent",
482
+ props: {
483
+ class: { type: [
484
+ Boolean,
485
+ null,
486
+ String,
487
+ Object,
488
+ Array
489
+ ] },
490
+ showCloseButton: {
491
+ type: Boolean,
492
+ default: true
493
+ },
494
+ forceMount: { type: Boolean },
495
+ disableOutsidePointerEvents: { type: Boolean },
496
+ asChild: { type: Boolean },
497
+ as: {}
498
+ },
499
+ emits: [
500
+ "escapeKeyDown",
501
+ "pointerDownOutside",
502
+ "focusOutside",
503
+ "interactOutside",
504
+ "openAutoFocus",
505
+ "closeAutoFocus"
506
+ ],
507
+ setup(__props, { emit: __emit }) {
508
+ const props = __props;
509
+ const emits = __emit;
510
+ const forwarded = useForwardPropsEmits(reactiveOmit(props, "class"), emits);
511
+ return (_ctx, _cache) => {
512
+ return openBlock(), createBlock(unref(DialogPortal), null, {
513
+ default: withCtx(() => [createVNode(unref(AnimatePresence), { as: "div" }, {
514
+ default: withCtx(() => [createVNode(unref(_sfc_main$20), { "as-child": "" }, {
515
+ default: withCtx(() => [createVNode(unref(Motion), {
516
+ initial: { opacity: 0 },
517
+ animate: { opacity: 1 },
518
+ exit: { opacity: 0 },
519
+ transition: {
520
+ duration: .2,
521
+ ease: "easeInOut"
522
+ }
523
+ })]),
524
+ _: 1
525
+ }), createVNode(unref(DialogContent), mergeProps({
526
+ ..._ctx.$attrs,
527
+ ...unref(forwarded)
528
+ }, {
529
+ class: unref(clsx)("arvue-dialog-content", props.class),
530
+ "as-child": ""
531
+ }), {
532
+ default: withCtx(() => [createVNode(unref(Motion), {
533
+ initial: {
534
+ y: "2rem",
535
+ opacity: 0
536
+ },
537
+ animate: {
538
+ y: 0,
539
+ opacity: 1
540
+ },
541
+ exit: {
542
+ y: "2rem",
543
+ opacity: 0
544
+ },
545
+ transition: {
546
+ duration: .2,
547
+ ease: "easeInOut"
548
+ }
549
+ }, {
550
+ default: withCtx(() => [renderSlot(_ctx.$slots, "default"), __props.showCloseButton ? (openBlock(), createBlock(unref(_sfc_main$15), {
551
+ key: 0,
552
+ class: "arvue-dialog-close-button icon"
553
+ }, {
554
+ default: withCtx(() => [..._cache[0] || (_cache[0] = [createElementVNode("i", { class: "fas fa-times" }, null, -1)])]),
555
+ _: 1
556
+ })) : createCommentVNode("v-if", true)]),
557
+ _: 3
558
+ })]),
559
+ _: 3
560
+ }, 16, ["class"])]),
561
+ _: 3
562
+ })]),
563
+ _: 3
564
+ });
565
+ };
566
+ }
567
+ });
568
+ //#endregion
569
+ //#region src/dialog/DialogDescription.vue
570
+ const _sfc_main$17 = /* @__PURE__ */ defineComponent({
571
+ __name: "DialogDescription",
572
+ props: {
573
+ class: { type: [
574
+ Boolean,
575
+ null,
576
+ String,
577
+ Object,
578
+ Array
579
+ ] },
580
+ asChild: { type: Boolean },
581
+ as: { default: "p" }
582
+ },
583
+ setup(__props) {
584
+ const props = __props;
585
+ const delegatedProps = reactiveOmit(props, "class");
586
+ return (_ctx, _cache) => {
587
+ return openBlock(), createBlock(unref(DialogDescription), mergeProps({ class: unref(clsx)("arvue-dialog-description", props.class) }, unref(delegatedProps)), {
588
+ default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
589
+ _: 3
590
+ }, 16, ["class"]);
591
+ };
592
+ }
593
+ });
594
+ //#endregion
595
+ //#region src/dialog/DialogFooter.vue
596
+ const _sfc_main$18 = /* @__PURE__ */ defineComponent({
597
+ __name: "DialogFooter",
598
+ props: {
599
+ class: { type: [
600
+ Boolean,
601
+ null,
602
+ String,
603
+ Object,
604
+ Array
605
+ ] },
606
+ asChild: { type: Boolean },
607
+ as: {}
608
+ },
609
+ setup(__props) {
610
+ const props = __props;
611
+ const delegatedProps = reactiveOmit(props, "class");
612
+ return (_ctx, _cache) => {
613
+ return openBlock(), createBlock(unref(Primitive), mergeProps({ class: unref(clsx)("arvue-dialog-footer", props.class) }, unref(delegatedProps)), {
614
+ default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
615
+ _: 3
616
+ }, 16, ["class"]);
617
+ };
618
+ }
619
+ });
620
+ //#endregion
621
+ //#region src/dialog/DialogHeader.vue
622
+ const _sfc_main$19 = /* @__PURE__ */ defineComponent({
623
+ __name: "DialogHeader",
624
+ props: {
625
+ class: { type: [
626
+ Boolean,
627
+ null,
628
+ String,
629
+ Object,
630
+ Array
631
+ ] },
632
+ asChild: { type: Boolean },
633
+ as: {}
634
+ },
635
+ setup(__props) {
636
+ const props = __props;
637
+ const delegatedProps = reactiveOmit(props, "class");
638
+ return (_ctx, _cache) => {
639
+ return openBlock(), createBlock(unref(Primitive), mergeProps({ class: unref(clsx)("arvue-dialog-header", props.class) }, unref(delegatedProps)), {
640
+ default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
641
+ _: 3
642
+ }, 16, ["class"]);
643
+ };
644
+ }
645
+ });
646
+ //#endregion
647
+ //#region src/dialog/DialogOverlay.vue
648
+ const _sfc_main$20 = /* @__PURE__ */ defineComponent({
649
+ __name: "DialogOverlay",
650
+ props: {
651
+ class: { type: [
652
+ Boolean,
653
+ null,
654
+ String,
655
+ Object,
656
+ Array
657
+ ] },
658
+ forceMount: { type: Boolean },
659
+ asChild: { type: Boolean },
660
+ as: {}
661
+ },
662
+ setup(__props) {
663
+ const props = __props;
664
+ const delegatedProps = reactiveOmit(props, "class");
665
+ return (_ctx, _cache) => {
666
+ return openBlock(), createBlock(unref(DialogOverlay), mergeProps(unref(delegatedProps), { class: unref(clsx)("arvue-dialog-overlay", props.class) }), {
667
+ default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
668
+ _: 3
669
+ }, 16, ["class"]);
670
+ };
671
+ }
672
+ });
673
+ //#endregion
674
+ //#region src/dialog/DialogTitle.vue
675
+ const _sfc_main$21 = /* @__PURE__ */ defineComponent({
676
+ __name: "DialogTitle",
677
+ props: {
678
+ class: { type: [
679
+ Boolean,
680
+ null,
681
+ String,
682
+ Object,
683
+ Array
684
+ ] },
685
+ asChild: { type: Boolean },
686
+ as: { default: "h3" }
687
+ },
688
+ setup(__props) {
689
+ const props = __props;
690
+ const delegatedProps = reactiveOmit(props, "class");
691
+ return (_ctx, _cache) => {
692
+ return openBlock(), createBlock(unref(DialogTitle), mergeProps({ class: unref(clsx)("arvue-dialog-title", props.class) }, unref(delegatedProps)), {
693
+ default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
694
+ _: 3
695
+ }, 16, ["class"]);
696
+ };
697
+ }
698
+ });
699
+ //#endregion
700
+ //#region src/dialog/DialogTrigger.vue
701
+ const _sfc_main$22 = /* @__PURE__ */ defineComponent({
702
+ __name: "DialogTrigger",
703
+ props: {
704
+ asChild: { type: Boolean },
705
+ as: {}
706
+ },
707
+ setup(__props) {
708
+ const props = __props;
709
+ return (_ctx, _cache) => {
710
+ return openBlock(), createBlock(unref(DialogTrigger), normalizeProps(guardReactiveProps(props)), {
711
+ default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
712
+ _: 3
713
+ }, 16);
714
+ };
715
+ }
716
+ });
717
+ //#endregion
718
+ //#region src/drawer/Drawer.vue
719
+ const _sfc_main$23 = /* @__PURE__ */ defineComponent({
720
+ __name: "Drawer",
721
+ props: {
722
+ class: { type: [
723
+ Boolean,
724
+ null,
725
+ String,
726
+ Object,
727
+ Array
728
+ ] },
729
+ open: { type: Boolean },
730
+ defaultOpen: { type: Boolean },
731
+ modal: { type: Boolean }
732
+ },
733
+ emits: ["update:open"],
734
+ setup(__props, { emit: __emit }) {
735
+ const forwarded = useForwardPropsEmits(__props, __emit);
736
+ return (_ctx, _cache) => {
737
+ return openBlock(), createBlock(unref(DialogRoot), normalizeProps(guardReactiveProps(unref(forwarded))), {
738
+ default: withCtx((slotProps) => [renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(slotProps)))]),
739
+ _: 3
740
+ }, 16);
741
+ };
742
+ }
743
+ });
744
+ //#endregion
745
+ //#region src/drawer/DrawerClose.vue
746
+ const _sfc_main$24 = /* @__PURE__ */ defineComponent({
747
+ __name: "DrawerClose",
748
+ props: {
749
+ asChild: { type: Boolean },
750
+ as: { default: "a" }
751
+ },
752
+ setup(__props) {
753
+ const props = __props;
754
+ return (_ctx, _cache) => {
755
+ return openBlock(), createBlock(unref(DialogClose), normalizeProps(guardReactiveProps(props)), {
756
+ default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
757
+ _: 3
758
+ }, 16);
759
+ };
760
+ }
761
+ });
762
+ //#endregion
763
+ //#region src/drawer/DrawerContent.vue
764
+ const _sfc_main$25 = /* @__PURE__ */ defineComponent({
765
+ inheritAttrs: false,
766
+ __name: "DrawerContent",
767
+ props: {
768
+ class: { type: [
769
+ Boolean,
770
+ null,
771
+ String,
772
+ Object,
773
+ Array
774
+ ] },
775
+ side: { default: "right" },
776
+ showCloseButton: {
777
+ type: Boolean,
778
+ default: true
779
+ },
780
+ forceMount: { type: Boolean },
781
+ disableOutsidePointerEvents: { type: Boolean },
782
+ asChild: { type: Boolean },
783
+ as: {}
784
+ },
785
+ emits: [
786
+ "escapeKeyDown",
787
+ "pointerDownOutside",
788
+ "focusOutside",
789
+ "interactOutside",
790
+ "openAutoFocus",
791
+ "closeAutoFocus"
792
+ ],
793
+ setup(__props, { emit: __emit }) {
794
+ const props = __props;
795
+ const emits = __emit;
796
+ const forwarded = useForwardPropsEmits(reactiveOmit(props, "class", "side"), emits);
797
+ const sideMotion = {
798
+ top: {
799
+ initial: { y: "-100%" },
800
+ animate: { y: 0 },
801
+ exit: { y: "-100%" }
802
+ },
803
+ bottom: {
804
+ initial: { y: "100%" },
805
+ animate: { y: 0 },
806
+ exit: { y: "100%" }
807
+ },
808
+ left: {
809
+ initial: { x: "-100%" },
810
+ animate: { x: 0 },
811
+ exit: { x: "-100%" }
812
+ },
813
+ right: {
814
+ initial: { x: "100%" },
815
+ animate: { x: 0 },
816
+ exit: { x: "100%" }
817
+ }
818
+ };
819
+ const motionProps = computed(() => sideMotion[props.side]);
820
+ return (_ctx, _cache) => {
821
+ return openBlock(), createBlock(unref(DialogPortal), null, {
822
+ default: withCtx(() => [createVNode(unref(AnimatePresence), { as: "div" }, {
823
+ default: withCtx(() => [createVNode(unref(_sfc_main$29), { "as-child": "" }, {
824
+ default: withCtx(() => [createVNode(unref(Motion), {
825
+ initial: { opacity: 0 },
826
+ animate: { opacity: 1 },
827
+ exit: { opacity: 0 },
828
+ transition: {
829
+ duration: .3,
830
+ ease: "easeInOut"
831
+ }
832
+ })]),
833
+ _: 1
834
+ }), createVNode(unref(DialogContent), mergeProps({ class: unref(clsx)("arvue-drawer-content", __props.side === "top" && "top", __props.side === "right" && "right", __props.side === "bottom" && "bottom", __props.side === "left" && "left", props.class) }, {
835
+ ..._ctx.$attrs,
836
+ ...unref(forwarded)
837
+ }, { "as-child": "" }), {
838
+ default: withCtx(() => [createVNode(unref(Motion), mergeProps(motionProps.value, { transition: {
839
+ duration: .3,
840
+ ease: "easeIn"
841
+ } }), {
842
+ default: withCtx(() => [renderSlot(_ctx.$slots, "default"), __props.showCloseButton ? (openBlock(), createBlock(unref(_sfc_main$24), {
843
+ key: 0,
844
+ class: "arvue-drawer-close-button icon"
845
+ }, {
846
+ default: withCtx(() => [..._cache[0] || (_cache[0] = [createElementVNode("i", { class: "fas fa-times" }, null, -1)])]),
847
+ _: 1
848
+ })) : createCommentVNode("v-if", true)]),
849
+ _: 3
850
+ }, 16)]),
851
+ _: 3
852
+ }, 16, ["class"])]),
853
+ _: 3
854
+ })]),
855
+ _: 3
856
+ });
857
+ };
858
+ }
859
+ });
860
+ //#endregion
861
+ //#region src/drawer/DrawerDescription.vue
862
+ const _sfc_main$26 = /* @__PURE__ */ defineComponent({
863
+ __name: "DrawerDescription",
864
+ props: {
865
+ class: { type: [
866
+ Boolean,
867
+ null,
868
+ String,
869
+ Object,
870
+ Array
871
+ ] },
872
+ asChild: { type: Boolean },
873
+ as: { default: "p" }
874
+ },
875
+ setup(__props) {
876
+ const props = __props;
877
+ const delegatedProps = reactiveOmit(props, "class");
878
+ return (_ctx, _cache) => {
879
+ return openBlock(), createBlock(unref(DialogDescription), mergeProps({ class: unref(clsx)("arvue-drawer-description", props.class) }, unref(delegatedProps)), {
880
+ default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
881
+ _: 3
882
+ }, 16, ["class"]);
883
+ };
884
+ }
885
+ });
886
+ //#endregion
887
+ //#region src/drawer/DrawerFooter.vue
888
+ const _sfc_main$27 = /* @__PURE__ */ defineComponent({
889
+ __name: "DrawerFooter",
890
+ props: {
891
+ class: { type: [
892
+ Boolean,
893
+ null,
894
+ String,
895
+ Object,
896
+ Array
897
+ ] },
898
+ asChild: { type: Boolean },
899
+ as: {}
900
+ },
901
+ setup(__props) {
902
+ const props = __props;
903
+ const delegatedProps = reactiveOmit(props, "class");
904
+ return (_ctx, _cache) => {
905
+ return openBlock(), createBlock(unref(Primitive), mergeProps({ class: unref(clsx)("arvue-drawer-footer", props.class) }, unref(delegatedProps)), {
906
+ default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
907
+ _: 3
908
+ }, 16, ["class"]);
909
+ };
910
+ }
911
+ });
912
+ //#endregion
913
+ //#region src/drawer/DrawerHeader.vue
914
+ const _sfc_main$28 = /* @__PURE__ */ defineComponent({
915
+ __name: "DrawerHeader",
916
+ props: {
917
+ class: { type: [
918
+ Boolean,
919
+ null,
920
+ String,
921
+ Object,
922
+ Array
923
+ ] },
924
+ asChild: { type: Boolean },
925
+ as: {}
926
+ },
927
+ setup(__props) {
928
+ const props = __props;
929
+ const delegatedProps = reactiveOmit(props, "class");
930
+ return (_ctx, _cache) => {
931
+ return openBlock(), createBlock(unref(Primitive), mergeProps({ class: unref(clsx)("arvue-drawer-header", props.class) }, unref(delegatedProps)), {
932
+ default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
933
+ _: 3
934
+ }, 16, ["class"]);
935
+ };
936
+ }
937
+ });
938
+ //#endregion
939
+ //#region src/drawer/DrawerOverlay.vue
940
+ const _sfc_main$29 = /* @__PURE__ */ defineComponent({
941
+ __name: "DrawerOverlay",
942
+ props: {
943
+ class: { type: [
944
+ Boolean,
945
+ null,
946
+ String,
947
+ Object,
948
+ Array
949
+ ] },
950
+ forceMount: { type: Boolean },
951
+ asChild: { type: Boolean },
952
+ as: {}
953
+ },
954
+ setup(__props) {
955
+ const props = __props;
956
+ const delegatedProps = reactiveOmit(props, "class");
957
+ return (_ctx, _cache) => {
958
+ return openBlock(), createBlock(unref(DialogOverlay), mergeProps(unref(delegatedProps), { class: unref(clsx)("arvue-drawer-overlay", props.class) }), {
959
+ default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
960
+ _: 3
961
+ }, 16, ["class"]);
962
+ };
963
+ }
964
+ });
965
+ //#endregion
966
+ //#region src/drawer/DrawerTitle.vue
967
+ const _sfc_main$30 = /* @__PURE__ */ defineComponent({
968
+ __name: "DrawerTitle",
969
+ props: {
970
+ class: { type: [
971
+ Boolean,
972
+ null,
973
+ String,
974
+ Object,
975
+ Array
976
+ ] },
977
+ asChild: { type: Boolean },
978
+ as: { default: "h3" }
979
+ },
980
+ setup(__props) {
981
+ const props = __props;
982
+ const delegatedProps = reactiveOmit(props, "class");
983
+ return (_ctx, _cache) => {
984
+ return openBlock(), createBlock(unref(DialogTitle), mergeProps({ class: unref(clsx)("arvue-drawer-title", props.class) }, unref(delegatedProps)), {
985
+ default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
986
+ _: 3
987
+ }, 16, ["class"]);
988
+ };
989
+ }
990
+ });
991
+ //#endregion
992
+ //#region src/drawer/DrawerTrigger.vue
993
+ const _sfc_main$31 = /* @__PURE__ */ defineComponent({
994
+ __name: "DrawerTrigger",
995
+ props: {
996
+ asChild: { type: Boolean },
997
+ as: {}
998
+ },
999
+ setup(__props) {
1000
+ const props = __props;
1001
+ return (_ctx, _cache) => {
1002
+ return openBlock(), createBlock(unref(DialogTrigger), normalizeProps(guardReactiveProps(props)), {
1003
+ default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
1004
+ _: 3
1005
+ }, 16);
1006
+ };
1007
+ }
1008
+ });
1009
+ //#endregion
1010
+ //#region src/sheet/Sheet.vue
1011
+ const _sfc_main$32 = /* @__PURE__ */ defineComponent({
1012
+ __name: "Sheet",
8
1013
  props: {
9
1014
  class: { type: [
10
1015
  Boolean,
@@ -13,15 +1018,36 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
13
1018
  Object,
14
1019
  Array
15
1020
  ] },
1021
+ activeSnapPoint: {},
1022
+ closeThreshold: {},
1023
+ shouldScaleBackground: { type: Boolean },
1024
+ setBackgroundColorOnScale: { type: Boolean },
1025
+ scrollLockTimeout: {},
1026
+ fixed: { type: Boolean },
1027
+ dismissible: { type: Boolean },
1028
+ modal: { type: Boolean },
16
1029
  open: { type: Boolean },
17
1030
  defaultOpen: { type: Boolean },
18
- modal: { type: Boolean }
1031
+ nested: { type: Boolean },
1032
+ direction: {},
1033
+ noBodyStyles: { type: Boolean },
1034
+ handleOnly: { type: Boolean },
1035
+ preventScrollRestoration: { type: Boolean },
1036
+ snapPoints: {},
1037
+ fadeFromIndex: {}
19
1038
  },
20
- emits: ["update:open"],
1039
+ emits: [
1040
+ "drag",
1041
+ "release",
1042
+ "close",
1043
+ "update:open",
1044
+ "update:activeSnapPoint",
1045
+ "animationEnd"
1046
+ ],
21
1047
  setup(__props, { emit: __emit }) {
22
1048
  const forwarded = useForwardPropsEmits(__props, __emit);
23
1049
  return (_ctx, _cache) => {
24
- return openBlock(), createBlock(unref(DialogRoot), normalizeProps(guardReactiveProps(unref(forwarded))), {
1050
+ return openBlock(), createBlock(unref(DrawerRoot), normalizeProps(guardReactiveProps(unref(forwarded))), {
25
1051
  default: withCtx((slotProps) => [renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(slotProps)))]),
26
1052
  _: 3
27
1053
  }, 16);
@@ -29,9 +1055,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
29
1055
  }
30
1056
  });
31
1057
  //#endregion
32
- //#region src/dialog/DialogClose.vue
33
- const _sfc_main$1 = /* @__PURE__ */ defineComponent({
34
- __name: "DialogClose",
1058
+ //#region src/sheet/SheetClose.vue
1059
+ const _sfc_main$33 = /* @__PURE__ */ defineComponent({
1060
+ __name: "SheetClose",
35
1061
  props: {
36
1062
  asChild: { type: Boolean },
37
1063
  as: { default: "a" }
@@ -39,7 +1065,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
39
1065
  setup(__props) {
40
1066
  const props = __props;
41
1067
  return (_ctx, _cache) => {
42
- return openBlock(), createBlock(unref(DialogClose), normalizeProps(guardReactiveProps(props)), {
1068
+ return openBlock(), createBlock(unref(DrawerClose), normalizeProps(guardReactiveProps(props)), {
43
1069
  default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
44
1070
  _: 3
45
1071
  }, 16);
@@ -47,25 +1073,14 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
47
1073
  }
48
1074
  });
49
1075
  //#endregion
50
- //#region ../../node_modules/.pnpm/clsx@2.1.1/node_modules/clsx/dist/clsx.mjs
51
- function r(e) {
52
- var t, f, n = "";
53
- if ("string" == typeof e || "number" == typeof e) n += e;
54
- else if ("object" == typeof e) if (Array.isArray(e)) {
55
- var o = e.length;
56
- for (t = 0; t < o; t++) e[t] && (f = r(e[t])) && (n && (n += " "), n += f);
57
- } else for (f in e) e[f] && (n && (n += " "), n += f);
58
- return n;
59
- }
60
- function clsx() {
61
- for (var e, t, f = 0, n = "", o = arguments.length; f < o; f++) (e = arguments[f]) && (t = r(e)) && (n && (n += " "), n += t);
62
- return n;
63
- }
64
- //#endregion
65
- //#region src/dialog/DialogContent.vue
66
- const _sfc_main$2 = /* @__PURE__ */ defineComponent({
1076
+ //#region src/sheet/SheetContent.vue
1077
+ const _hoisted_1 = {
1078
+ key: 0,
1079
+ class: "arvue-sheet-handle"
1080
+ };
1081
+ const _sfc_main$34 = /* @__PURE__ */ defineComponent({
67
1082
  inheritAttrs: false,
68
- __name: "DialogContent",
1083
+ __name: "SheetContent",
69
1084
  props: {
70
1085
  class: { type: [
71
1086
  Boolean,
@@ -74,7 +1089,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
74
1089
  Object,
75
1090
  Array
76
1091
  ] },
77
- showCloseButton: {
1092
+ showHandle: {
78
1093
  type: Boolean,
79
1094
  default: true
80
1095
  },
@@ -96,66 +1111,23 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
96
1111
  const emits = __emit;
97
1112
  const forwarded = useForwardPropsEmits(reactiveOmit(props, "class"), emits);
98
1113
  return (_ctx, _cache) => {
99
- return openBlock(), createBlock(unref(DialogPortal), null, {
100
- default: withCtx(() => [createVNode(unref(AnimatePresence), { as: "div" }, {
101
- default: withCtx(() => [createVNode(unref(_sfc_main$6), { "as-child": "" }, {
102
- default: withCtx(() => [createVNode(unref(Motion), {
103
- initial: { opacity: 0 },
104
- animate: { opacity: 1 },
105
- exit: { opacity: 0 },
106
- transition: {
107
- duration: .2,
108
- ease: "easeInOut"
109
- }
110
- })]),
111
- _: 1
112
- }), createVNode(unref(DialogContent), mergeProps({
113
- ..._ctx.$attrs,
114
- ...unref(forwarded)
115
- }, {
116
- class: unref(clsx)("arvue-dialog-content", props.class),
117
- "as-child": ""
118
- }), {
119
- default: withCtx(() => [createVNode(unref(Motion), {
120
- initial: {
121
- y: "2rem",
122
- opacity: 0
123
- },
124
- animate: {
125
- y: 0,
126
- opacity: 1
127
- },
128
- exit: {
129
- y: "2rem",
130
- opacity: 0
131
- },
132
- transition: {
133
- duration: .2,
134
- ease: "easeInOut"
135
- }
136
- }, {
137
- default: withCtx(() => [renderSlot(_ctx.$slots, "default"), __props.showCloseButton ? (openBlock(), createBlock(unref(_sfc_main$1), {
138
- key: 0,
139
- class: "arvue-dialog-close-button icon"
140
- }, {
141
- default: withCtx(() => [..._cache[0] || (_cache[0] = [createElementVNode("i", { class: "fas fa-times" }, null, -1)])]),
142
- _: 1
143
- })) : createCommentVNode("v-if", true)]),
144
- _: 3
145
- })]),
146
- _: 3
147
- }, 16, ["class"])]),
1114
+ return openBlock(), createBlock(unref(DrawerPortal), null, {
1115
+ default: withCtx(() => [createVNode(unref(_sfc_main$38)), createVNode(unref(DrawerContent), mergeProps({ class: unref(clsx)("arvue-sheet-content", props.class) }, {
1116
+ ..._ctx.$attrs,
1117
+ ...unref(forwarded)
1118
+ }), {
1119
+ default: withCtx(() => [__props.showHandle ? (openBlock(), createElementBlock("div", _hoisted_1)) : createCommentVNode("v-if", true), renderSlot(_ctx.$slots, "default")]),
148
1120
  _: 3
149
- })]),
1121
+ }, 16, ["class"])]),
150
1122
  _: 3
151
1123
  });
152
1124
  };
153
1125
  }
154
1126
  });
155
1127
  //#endregion
156
- //#region src/dialog/DialogDescription.vue
157
- const _sfc_main$3 = /* @__PURE__ */ defineComponent({
158
- __name: "DialogDescription",
1128
+ //#region src/sheet/SheetDescription.vue
1129
+ const _sfc_main$35 = /* @__PURE__ */ defineComponent({
1130
+ __name: "SheetDescription",
159
1131
  props: {
160
1132
  class: { type: [
161
1133
  Boolean,
@@ -165,64 +1137,75 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
165
1137
  Array
166
1138
  ] },
167
1139
  asChild: { type: Boolean },
168
- as: {}
1140
+ as: { default: "p" }
169
1141
  },
170
1142
  setup(__props) {
171
1143
  const props = __props;
1144
+ const delegatedProps = reactiveOmit(props, "class");
172
1145
  return (_ctx, _cache) => {
173
- return openBlock(), createBlock(unref(Primitive), { class: normalizeClass(unref(clsx)("arvue-dialog-description", props.class)) }, {
1146
+ return openBlock(), createBlock(unref(DrawerDescription), mergeProps({ class: unref(clsx)("arvue-sheet-description", props.class) }, unref(delegatedProps)), {
174
1147
  default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
175
1148
  _: 3
176
- }, 8, ["class"]);
1149
+ }, 16, ["class"]);
177
1150
  };
178
1151
  }
179
1152
  });
180
1153
  //#endregion
181
- //#region src/dialog/DialogFooter.vue
182
- const _sfc_main$4 = /* @__PURE__ */ defineComponent({
183
- __name: "DialogFooter",
184
- props: { class: { type: [
185
- Boolean,
186
- null,
187
- String,
188
- Object,
189
- Array
190
- ] } },
1154
+ //#region src/sheet/SheetFooter.vue
1155
+ const _sfc_main$36 = /* @__PURE__ */ defineComponent({
1156
+ __name: "SheetFooter",
1157
+ props: {
1158
+ class: { type: [
1159
+ Boolean,
1160
+ null,
1161
+ String,
1162
+ Object,
1163
+ Array
1164
+ ] },
1165
+ asChild: { type: Boolean },
1166
+ as: {}
1167
+ },
191
1168
  setup(__props) {
192
1169
  const props = __props;
1170
+ const delegatedProps = reactiveOmit(props, "class");
193
1171
  return (_ctx, _cache) => {
194
- return openBlock(), createBlock(unref(Primitive), { class: normalizeClass(unref(clsx)("arvue-dialog-footer", props.class)) }, {
1172
+ return openBlock(), createBlock(unref(Primitive), mergeProps({ class: unref(clsx)("arvue-sheet-footer", props.class) }, unref(delegatedProps)), {
195
1173
  default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
196
1174
  _: 3
197
- }, 8, ["class"]);
1175
+ }, 16, ["class"]);
198
1176
  };
199
1177
  }
200
1178
  });
201
1179
  //#endregion
202
- //#region src/dialog/DialogHeader.vue
203
- const _sfc_main$5 = /* @__PURE__ */ defineComponent({
204
- __name: "DialogHeader",
205
- props: { class: { type: [
206
- Boolean,
207
- null,
208
- String,
209
- Object,
210
- Array
211
- ] } },
1180
+ //#region src/sheet/SheetHeader.vue
1181
+ const _sfc_main$37 = /* @__PURE__ */ defineComponent({
1182
+ __name: "SheetHeader",
1183
+ props: {
1184
+ class: { type: [
1185
+ Boolean,
1186
+ null,
1187
+ String,
1188
+ Object,
1189
+ Array
1190
+ ] },
1191
+ asChild: { type: Boolean },
1192
+ as: {}
1193
+ },
212
1194
  setup(__props) {
213
1195
  const props = __props;
1196
+ const delegatedProps = reactiveOmit(props, "class");
214
1197
  return (_ctx, _cache) => {
215
- return openBlock(), createBlock(unref(Primitive), { class: normalizeClass(unref(clsx)("arvue-dialog-header", props.class)) }, {
1198
+ return openBlock(), createBlock(unref(Primitive), mergeProps({ class: unref(clsx)("arvue-sheet-header", props.class) }, unref(delegatedProps)), {
216
1199
  default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
217
1200
  _: 3
218
- }, 8, ["class"]);
1201
+ }, 16, ["class"]);
219
1202
  };
220
1203
  }
221
1204
  });
222
1205
  //#endregion
223
- //#region src/dialog/DialogOverlay.vue
224
- const _sfc_main$6 = /* @__PURE__ */ defineComponent({
225
- __name: "DialogOverlay",
1206
+ //#region src/sheet/SheetOverlay.vue
1207
+ const _sfc_main$38 = /* @__PURE__ */ defineComponent({
1208
+ __name: "SheetOverlay",
226
1209
  props: {
227
1210
  class: { type: [
228
1211
  Boolean,
@@ -239,7 +1222,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
239
1222
  const props = __props;
240
1223
  const delegatedProps = reactiveOmit(props, "class");
241
1224
  return (_ctx, _cache) => {
242
- return openBlock(), createBlock(unref(DialogOverlay), mergeProps(unref(delegatedProps), { class: unref(clsx)("arvue-dialog-overlay", props.class) }), {
1225
+ return openBlock(), createBlock(unref(DrawerOverlay), mergeProps({ class: unref(clsx)("arvue-sheet-overlay", props.class) }, unref(delegatedProps)), {
243
1226
  default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
244
1227
  _: 3
245
1228
  }, 16, ["class"]);
@@ -247,9 +1230,9 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
247
1230
  }
248
1231
  });
249
1232
  //#endregion
250
- //#region src/dialog/DialogTitle.vue
251
- const _sfc_main$7 = /* @__PURE__ */ defineComponent({
252
- __name: "DialogTitle",
1233
+ //#region src/sheet/SheetTitle.vue
1234
+ const _sfc_main$39 = /* @__PURE__ */ defineComponent({
1235
+ __name: "SheetTitle",
253
1236
  props: {
254
1237
  class: { type: [
255
1238
  Boolean,
@@ -259,22 +1242,23 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
259
1242
  Array
260
1243
  ] },
261
1244
  asChild: { type: Boolean },
262
- as: {}
1245
+ as: { default: "h3" }
263
1246
  },
264
1247
  setup(__props) {
265
1248
  const props = __props;
1249
+ const delegatedProps = reactiveOmit(props, "class");
266
1250
  return (_ctx, _cache) => {
267
- return openBlock(), createBlock(unref(Primitive), { class: normalizeClass(unref(clsx)("arvue-dialog-title", props.class)) }, {
1251
+ return openBlock(), createBlock(unref(DrawerTitle), mergeProps({ class: unref(clsx)("arvue-sheet-title", props.class) }, unref(delegatedProps)), {
268
1252
  default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
269
1253
  _: 3
270
- }, 8, ["class"]);
1254
+ }, 16, ["class"]);
271
1255
  };
272
1256
  }
273
1257
  });
274
1258
  //#endregion
275
- //#region src/dialog/DialogTrigger.vue
276
- const _sfc_main$8 = /* @__PURE__ */ defineComponent({
277
- __name: "DialogTrigger",
1259
+ //#region src/sheet/SheetTrigger.vue
1260
+ const _sfc_main$40 = /* @__PURE__ */ defineComponent({
1261
+ __name: "SheetTrigger",
278
1262
  props: {
279
1263
  asChild: { type: Boolean },
280
1264
  as: {}
@@ -282,7 +1266,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
282
1266
  setup(__props) {
283
1267
  const props = __props;
284
1268
  return (_ctx, _cache) => {
285
- return openBlock(), createBlock(unref(DialogTrigger), normalizeProps(guardReactiveProps(props)), {
1269
+ return openBlock(), createBlock(unref(DrawerTrigger), normalizeProps(guardReactiveProps(props)), {
286
1270
  default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
287
1271
  _: 3
288
1272
  }, 16);
@@ -290,6 +1274,6 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
290
1274
  }
291
1275
  });
292
1276
  //#endregion
293
- export { _sfc_main as Dialog, _sfc_main$1 as DialogClose, _sfc_main$2 as DialogContent, _sfc_main$3 as DialogDescription, _sfc_main$4 as DialogFooter, _sfc_main$5 as DialogHeader, _sfc_main$6 as DialogOverlay, _sfc_main$7 as DialogTitle, _sfc_main$8 as DialogTrigger };
1277
+ export { _sfc_main as Autocomplete, _sfc_main$1 as AutocompleteAnchor, _sfc_main$2 as AutocompleteArrow, _sfc_main$3 as AutocompleteCancel, _sfc_main$4 as AutocompleteContent, _sfc_main$5 as AutocompleteEmpty, _sfc_main$6 as AutocompleteGroup, _sfc_main$7 as AutocompleteInput, _sfc_main$8 as AutocompleteItem, _sfc_main$9 as AutocompleteLabel, _sfc_main$10 as AutocompletePortal, _sfc_main$11 as AutocompleteSeparator, _sfc_main$12 as AutocompleteTrigger, _sfc_main$13 as AutocompleteViewport, _sfc_main$14 as Dialog, _sfc_main$15 as DialogClose, _sfc_main$16 as DialogContent, _sfc_main$17 as DialogDescription, _sfc_main$18 as DialogFooter, _sfc_main$19 as DialogHeader, _sfc_main$20 as DialogOverlay, _sfc_main$21 as DialogTitle, _sfc_main$22 as DialogTrigger, _sfc_main$23 as Drawer, _sfc_main$24 as DrawerClose, _sfc_main$25 as DrawerContent, _sfc_main$26 as DrawerDescription, _sfc_main$27 as DrawerFooter, _sfc_main$28 as DrawerHeader, _sfc_main$29 as DrawerOverlay, _sfc_main$30 as DrawerTitle, _sfc_main$31 as DrawerTrigger, _sfc_main$32 as Sheet, _sfc_main$33 as SheetClose, _sfc_main$34 as SheetContent, _sfc_main$35 as SheetDescription, _sfc_main$36 as SheetFooter, _sfc_main$37 as SheetHeader, _sfc_main$38 as SheetOverlay, _sfc_main$39 as SheetTitle, _sfc_main$40 as SheetTrigger };
294
1278
 
295
1279
  //# sourceMappingURL=index.js.map