arvue-ui 0.2.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.
- package/dist/all.css +1 -1
- package/dist/autocomplete/autocomplete.js +52 -0
- package/dist/autocomplete/autocomplete.js.map +1 -0
- package/dist/autocomplete/autocompleteAnchor.js +24 -0
- package/dist/autocomplete/autocompleteAnchor.js.map +1 -0
- package/dist/autocomplete/autocompleteArrow.js +26 -0
- package/dist/autocomplete/autocompleteArrow.js.map +1 -0
- package/dist/autocomplete/autocompleteCancel.js +23 -0
- package/dist/autocomplete/autocompleteCancel.js.map +1 -0
- package/dist/autocomplete/autocompleteContent.js +77 -0
- package/dist/autocomplete/autocompleteContent.js.map +1 -0
- package/dist/autocomplete/autocompleteEmpty.js +33 -0
- package/dist/autocomplete/autocompleteEmpty.js.map +1 -0
- package/dist/autocomplete/autocompleteGroup.js +23 -0
- package/dist/autocomplete/autocompleteGroup.js.map +1 -0
- package/dist/autocomplete/autocompleteInput.js +65 -0
- package/dist/autocomplete/autocompleteInput.js.map +1 -0
- package/dist/autocomplete/autocompleteItem.js +36 -0
- package/dist/autocomplete/autocompleteItem.js.map +1 -0
- package/dist/autocomplete/autocompleteLabel.js +34 -0
- package/dist/autocomplete/autocompleteLabel.js.map +1 -0
- package/dist/autocomplete/autocompletePortal.js +25 -0
- package/dist/autocomplete/autocompletePortal.js.map +1 -0
- package/dist/autocomplete/autocompleteSeparator.js +33 -0
- package/dist/autocomplete/autocompleteSeparator.js.map +1 -0
- package/dist/autocomplete/autocompleteTrigger.js +24 -0
- package/dist/autocomplete/autocompleteTrigger.js.map +1 -0
- package/dist/autocomplete/autocompleteViewport.js +24 -0
- package/dist/autocomplete/autocompleteViewport.js.map +1 -0
- package/dist/dialog/dialogContent.js +2 -2
- package/dist/dialog/dialogDescription.js +1 -1
- package/dist/dialog/dialogFooter.js +1 -1
- package/dist/dialog/dialogHeader.js +1 -1
- package/dist/dialog/dialogOverlay.js +1 -1
- package/dist/dialog/dialogTitle.js +1 -1
- package/dist/drawer/drawerContent.js +1 -1
- package/dist/drawer/drawerDescription.js +1 -1
- package/dist/drawer/drawerFooter.js +1 -1
- package/dist/drawer/drawerHeader.js +1 -1
- package/dist/drawer/drawerOverlay.js +1 -1
- package/dist/drawer/drawerTitle.js +1 -1
- package/dist/index.d.ts +442 -56
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +720 -40
- package/dist/index.js.map +1 -1
- package/dist/sheet/sheet.js +54 -0
- package/dist/sheet/sheet.js.map +1 -0
- package/dist/sheet/sheetClose.js +23 -0
- package/dist/sheet/sheetClose.js.map +1 -0
- package/dist/sheet/sheetContent.js +61 -0
- package/dist/sheet/sheetContent.js.map +1 -0
- package/dist/sheet/sheetDescription.js +33 -0
- package/dist/sheet/sheetDescription.js.map +1 -0
- package/dist/sheet/sheetFooter.js +33 -0
- package/dist/sheet/sheetFooter.js.map +1 -0
- package/dist/sheet/sheetHeader.js +33 -0
- package/dist/sheet/sheetHeader.js.map +1 -0
- package/dist/sheet/sheetOverlay.js +34 -0
- package/dist/sheet/sheetOverlay.js.map +1 -0
- package/dist/sheet/sheetTitle.js +33 -0
- package/dist/sheet/sheetTitle.js.map +1 -0
- package/dist/sheet/sheetTrigger.js +23 -0
- package/dist/sheet/sheetTrigger.js.map +1 -0
- package/dist/style.css +24 -0
- package/package.json +3 -2
- package/src/autocomplete/Autocomplete.vue +36 -0
- package/src/autocomplete/AutocompleteAnchor.vue +17 -0
- package/src/autocomplete/AutocompleteArrow.vue +17 -0
- package/src/autocomplete/AutocompleteCancel.vue +17 -0
- package/src/autocomplete/AutocompleteContent.vue +45 -0
- package/src/autocomplete/AutocompleteEmpty.vue +31 -0
- package/src/autocomplete/AutocompleteGroup.vue +17 -0
- package/src/autocomplete/AutocompleteInput.vue +63 -0
- package/src/autocomplete/AutocompleteItem.vue +32 -0
- package/src/autocomplete/AutocompleteLabel.vue +31 -0
- package/src/autocomplete/AutocompletePortal.vue +17 -0
- package/src/autocomplete/AutocompleteSeparator.vue +31 -0
- package/src/autocomplete/AutocompleteTrigger.vue +17 -0
- package/src/autocomplete/AutocompleteViewport.vue +17 -0
- package/src/autocomplete/autocomplete-content.css +7 -0
- package/src/autocomplete/autocomplete-empty.css +7 -0
- package/src/autocomplete/autocomplete-item.css +14 -0
- package/src/autocomplete/autocomplete-label.css +6 -0
- package/src/autocomplete/autocomplete-separator.css +5 -0
- package/src/autocomplete/autocomplete.css +4 -0
- package/src/autocomplete/index.ts +60 -0
- package/src/dialog/dialog-description.css +1 -0
- package/src/drawer/drawer-description.css +1 -0
- package/src/index.ts +2 -0
- package/src/sheet/Sheet.vue +29 -0
- package/src/sheet/SheetClose.vue +19 -0
- package/src/sheet/SheetContent.vue +53 -0
- package/src/sheet/SheetDescription.vue +33 -0
- package/src/sheet/SheetFooter.vue +31 -0
- package/src/sheet/SheetHeader.vue +31 -0
- package/src/sheet/SheetOverlay.vue +31 -0
- package/src/sheet/SheetTitle.vue +33 -0
- package/src/sheet/SheetTrigger.vue +17 -0
- package/src/sheet/index.ts +38 -0
- package/src/sheet/sheet-content.css +67 -0
- package/src/sheet/sheet-description.css +5 -0
- package/src/sheet/sheet-footer.css +11 -0
- package/src/sheet/sheet-header.css +6 -0
- package/src/sheet/sheet-overlay.css +12 -0
- package/src/sheet/sheet-title.css +3 -0
package/dist/index.js
CHANGED
|
@@ -1,9 +1,437 @@
|
|
|
1
|
-
import { computed, createBlock, createCommentVNode, createElementVNode, createVNode, defineComponent, guardReactiveProps, mergeProps, normalizeProps, openBlock, renderSlot, unref, withCtx } from "vue";
|
|
2
|
-
import { DialogClose, DialogContent, DialogDescription, DialogOverlay, DialogPortal, DialogRoot, DialogTitle, 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
|
+
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
|
|
22
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
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
|
|
5
433
|
//#region src/dialog/Dialog.vue
|
|
6
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
434
|
+
const _sfc_main$14 = /* @__PURE__ */ defineComponent({
|
|
7
435
|
__name: "Dialog",
|
|
8
436
|
props: {
|
|
9
437
|
class: { type: [
|
|
@@ -30,7 +458,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
30
458
|
});
|
|
31
459
|
//#endregion
|
|
32
460
|
//#region src/dialog/DialogClose.vue
|
|
33
|
-
const _sfc_main$
|
|
461
|
+
const _sfc_main$15 = /* @__PURE__ */ defineComponent({
|
|
34
462
|
__name: "DialogClose",
|
|
35
463
|
props: {
|
|
36
464
|
asChild: { type: Boolean },
|
|
@@ -47,23 +475,8 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
47
475
|
}
|
|
48
476
|
});
|
|
49
477
|
//#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
478
|
//#region src/dialog/DialogContent.vue
|
|
66
|
-
const _sfc_main$
|
|
479
|
+
const _sfc_main$16 = /* @__PURE__ */ defineComponent({
|
|
67
480
|
inheritAttrs: false,
|
|
68
481
|
__name: "DialogContent",
|
|
69
482
|
props: {
|
|
@@ -98,7 +511,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
98
511
|
return (_ctx, _cache) => {
|
|
99
512
|
return openBlock(), createBlock(unref(DialogPortal), null, {
|
|
100
513
|
default: withCtx(() => [createVNode(unref(AnimatePresence), { as: "div" }, {
|
|
101
|
-
default: withCtx(() => [createVNode(unref(_sfc_main$
|
|
514
|
+
default: withCtx(() => [createVNode(unref(_sfc_main$20), { "as-child": "" }, {
|
|
102
515
|
default: withCtx(() => [createVNode(unref(Motion), {
|
|
103
516
|
initial: { opacity: 0 },
|
|
104
517
|
animate: { opacity: 1 },
|
|
@@ -134,7 +547,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
134
547
|
ease: "easeInOut"
|
|
135
548
|
}
|
|
136
549
|
}, {
|
|
137
|
-
default: withCtx(() => [renderSlot(_ctx.$slots, "default"), __props.showCloseButton ? (openBlock(), createBlock(unref(_sfc_main$
|
|
550
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default"), __props.showCloseButton ? (openBlock(), createBlock(unref(_sfc_main$15), {
|
|
138
551
|
key: 0,
|
|
139
552
|
class: "arvue-dialog-close-button icon"
|
|
140
553
|
}, {
|
|
@@ -154,7 +567,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
154
567
|
});
|
|
155
568
|
//#endregion
|
|
156
569
|
//#region src/dialog/DialogDescription.vue
|
|
157
|
-
const _sfc_main$
|
|
570
|
+
const _sfc_main$17 = /* @__PURE__ */ defineComponent({
|
|
158
571
|
__name: "DialogDescription",
|
|
159
572
|
props: {
|
|
160
573
|
class: { type: [
|
|
@@ -180,7 +593,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
180
593
|
});
|
|
181
594
|
//#endregion
|
|
182
595
|
//#region src/dialog/DialogFooter.vue
|
|
183
|
-
const _sfc_main$
|
|
596
|
+
const _sfc_main$18 = /* @__PURE__ */ defineComponent({
|
|
184
597
|
__name: "DialogFooter",
|
|
185
598
|
props: {
|
|
186
599
|
class: { type: [
|
|
@@ -206,7 +619,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
206
619
|
});
|
|
207
620
|
//#endregion
|
|
208
621
|
//#region src/dialog/DialogHeader.vue
|
|
209
|
-
const _sfc_main$
|
|
622
|
+
const _sfc_main$19 = /* @__PURE__ */ defineComponent({
|
|
210
623
|
__name: "DialogHeader",
|
|
211
624
|
props: {
|
|
212
625
|
class: { type: [
|
|
@@ -232,7 +645,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
232
645
|
});
|
|
233
646
|
//#endregion
|
|
234
647
|
//#region src/dialog/DialogOverlay.vue
|
|
235
|
-
const _sfc_main$
|
|
648
|
+
const _sfc_main$20 = /* @__PURE__ */ defineComponent({
|
|
236
649
|
__name: "DialogOverlay",
|
|
237
650
|
props: {
|
|
238
651
|
class: { type: [
|
|
@@ -259,7 +672,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
259
672
|
});
|
|
260
673
|
//#endregion
|
|
261
674
|
//#region src/dialog/DialogTitle.vue
|
|
262
|
-
const _sfc_main$
|
|
675
|
+
const _sfc_main$21 = /* @__PURE__ */ defineComponent({
|
|
263
676
|
__name: "DialogTitle",
|
|
264
677
|
props: {
|
|
265
678
|
class: { type: [
|
|
@@ -285,7 +698,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
285
698
|
});
|
|
286
699
|
//#endregion
|
|
287
700
|
//#region src/dialog/DialogTrigger.vue
|
|
288
|
-
const _sfc_main$
|
|
701
|
+
const _sfc_main$22 = /* @__PURE__ */ defineComponent({
|
|
289
702
|
__name: "DialogTrigger",
|
|
290
703
|
props: {
|
|
291
704
|
asChild: { type: Boolean },
|
|
@@ -303,7 +716,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
303
716
|
});
|
|
304
717
|
//#endregion
|
|
305
718
|
//#region src/drawer/Drawer.vue
|
|
306
|
-
const _sfc_main$
|
|
719
|
+
const _sfc_main$23 = /* @__PURE__ */ defineComponent({
|
|
307
720
|
__name: "Drawer",
|
|
308
721
|
props: {
|
|
309
722
|
class: { type: [
|
|
@@ -330,7 +743,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
330
743
|
});
|
|
331
744
|
//#endregion
|
|
332
745
|
//#region src/drawer/DrawerClose.vue
|
|
333
|
-
const _sfc_main$
|
|
746
|
+
const _sfc_main$24 = /* @__PURE__ */ defineComponent({
|
|
334
747
|
__name: "DrawerClose",
|
|
335
748
|
props: {
|
|
336
749
|
asChild: { type: Boolean },
|
|
@@ -348,7 +761,7 @@ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
|
|
|
348
761
|
});
|
|
349
762
|
//#endregion
|
|
350
763
|
//#region src/drawer/DrawerContent.vue
|
|
351
|
-
const _sfc_main$
|
|
764
|
+
const _sfc_main$25 = /* @__PURE__ */ defineComponent({
|
|
352
765
|
inheritAttrs: false,
|
|
353
766
|
__name: "DrawerContent",
|
|
354
767
|
props: {
|
|
@@ -407,7 +820,7 @@ const _sfc_main$11 = /* @__PURE__ */ defineComponent({
|
|
|
407
820
|
return (_ctx, _cache) => {
|
|
408
821
|
return openBlock(), createBlock(unref(DialogPortal), null, {
|
|
409
822
|
default: withCtx(() => [createVNode(unref(AnimatePresence), { as: "div" }, {
|
|
410
|
-
default: withCtx(() => [createVNode(unref(_sfc_main$
|
|
823
|
+
default: withCtx(() => [createVNode(unref(_sfc_main$29), { "as-child": "" }, {
|
|
411
824
|
default: withCtx(() => [createVNode(unref(Motion), {
|
|
412
825
|
initial: { opacity: 0 },
|
|
413
826
|
animate: { opacity: 1 },
|
|
@@ -426,7 +839,7 @@ const _sfc_main$11 = /* @__PURE__ */ defineComponent({
|
|
|
426
839
|
duration: .3,
|
|
427
840
|
ease: "easeIn"
|
|
428
841
|
} }), {
|
|
429
|
-
default: withCtx(() => [renderSlot(_ctx.$slots, "default"), __props.showCloseButton ? (openBlock(), createBlock(unref(_sfc_main$
|
|
842
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default"), __props.showCloseButton ? (openBlock(), createBlock(unref(_sfc_main$24), {
|
|
430
843
|
key: 0,
|
|
431
844
|
class: "arvue-drawer-close-button icon"
|
|
432
845
|
}, {
|
|
@@ -446,7 +859,7 @@ const _sfc_main$11 = /* @__PURE__ */ defineComponent({
|
|
|
446
859
|
});
|
|
447
860
|
//#endregion
|
|
448
861
|
//#region src/drawer/DrawerDescription.vue
|
|
449
|
-
const _sfc_main$
|
|
862
|
+
const _sfc_main$26 = /* @__PURE__ */ defineComponent({
|
|
450
863
|
__name: "DrawerDescription",
|
|
451
864
|
props: {
|
|
452
865
|
class: { type: [
|
|
@@ -472,7 +885,7 @@ const _sfc_main$12 = /* @__PURE__ */ defineComponent({
|
|
|
472
885
|
});
|
|
473
886
|
//#endregion
|
|
474
887
|
//#region src/drawer/DrawerFooter.vue
|
|
475
|
-
const _sfc_main$
|
|
888
|
+
const _sfc_main$27 = /* @__PURE__ */ defineComponent({
|
|
476
889
|
__name: "DrawerFooter",
|
|
477
890
|
props: {
|
|
478
891
|
class: { type: [
|
|
@@ -498,7 +911,7 @@ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
|
|
|
498
911
|
});
|
|
499
912
|
//#endregion
|
|
500
913
|
//#region src/drawer/DrawerHeader.vue
|
|
501
|
-
const _sfc_main$
|
|
914
|
+
const _sfc_main$28 = /* @__PURE__ */ defineComponent({
|
|
502
915
|
__name: "DrawerHeader",
|
|
503
916
|
props: {
|
|
504
917
|
class: { type: [
|
|
@@ -524,7 +937,7 @@ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
|
|
|
524
937
|
});
|
|
525
938
|
//#endregion
|
|
526
939
|
//#region src/drawer/DrawerOverlay.vue
|
|
527
|
-
const _sfc_main$
|
|
940
|
+
const _sfc_main$29 = /* @__PURE__ */ defineComponent({
|
|
528
941
|
__name: "DrawerOverlay",
|
|
529
942
|
props: {
|
|
530
943
|
class: { type: [
|
|
@@ -551,7 +964,7 @@ const _sfc_main$15 = /* @__PURE__ */ defineComponent({
|
|
|
551
964
|
});
|
|
552
965
|
//#endregion
|
|
553
966
|
//#region src/drawer/DrawerTitle.vue
|
|
554
|
-
const _sfc_main$
|
|
967
|
+
const _sfc_main$30 = /* @__PURE__ */ defineComponent({
|
|
555
968
|
__name: "DrawerTitle",
|
|
556
969
|
props: {
|
|
557
970
|
class: { type: [
|
|
@@ -577,7 +990,7 @@ const _sfc_main$16 = /* @__PURE__ */ defineComponent({
|
|
|
577
990
|
});
|
|
578
991
|
//#endregion
|
|
579
992
|
//#region src/drawer/DrawerTrigger.vue
|
|
580
|
-
const _sfc_main$
|
|
993
|
+
const _sfc_main$31 = /* @__PURE__ */ defineComponent({
|
|
581
994
|
__name: "DrawerTrigger",
|
|
582
995
|
props: {
|
|
583
996
|
asChild: { type: Boolean },
|
|
@@ -594,6 +1007,273 @@ const _sfc_main$17 = /* @__PURE__ */ defineComponent({
|
|
|
594
1007
|
}
|
|
595
1008
|
});
|
|
596
1009
|
//#endregion
|
|
597
|
-
|
|
1010
|
+
//#region src/sheet/Sheet.vue
|
|
1011
|
+
const _sfc_main$32 = /* @__PURE__ */ defineComponent({
|
|
1012
|
+
__name: "Sheet",
|
|
1013
|
+
props: {
|
|
1014
|
+
class: { type: [
|
|
1015
|
+
Boolean,
|
|
1016
|
+
null,
|
|
1017
|
+
String,
|
|
1018
|
+
Object,
|
|
1019
|
+
Array
|
|
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 },
|
|
1029
|
+
open: { type: Boolean },
|
|
1030
|
+
defaultOpen: { type: Boolean },
|
|
1031
|
+
nested: { type: Boolean },
|
|
1032
|
+
direction: {},
|
|
1033
|
+
noBodyStyles: { type: Boolean },
|
|
1034
|
+
handleOnly: { type: Boolean },
|
|
1035
|
+
preventScrollRestoration: { type: Boolean },
|
|
1036
|
+
snapPoints: {},
|
|
1037
|
+
fadeFromIndex: {}
|
|
1038
|
+
},
|
|
1039
|
+
emits: [
|
|
1040
|
+
"drag",
|
|
1041
|
+
"release",
|
|
1042
|
+
"close",
|
|
1043
|
+
"update:open",
|
|
1044
|
+
"update:activeSnapPoint",
|
|
1045
|
+
"animationEnd"
|
|
1046
|
+
],
|
|
1047
|
+
setup(__props, { emit: __emit }) {
|
|
1048
|
+
const forwarded = useForwardPropsEmits(__props, __emit);
|
|
1049
|
+
return (_ctx, _cache) => {
|
|
1050
|
+
return openBlock(), createBlock(unref(DrawerRoot), normalizeProps(guardReactiveProps(unref(forwarded))), {
|
|
1051
|
+
default: withCtx((slotProps) => [renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(slotProps)))]),
|
|
1052
|
+
_: 3
|
|
1053
|
+
}, 16);
|
|
1054
|
+
};
|
|
1055
|
+
}
|
|
1056
|
+
});
|
|
1057
|
+
//#endregion
|
|
1058
|
+
//#region src/sheet/SheetClose.vue
|
|
1059
|
+
const _sfc_main$33 = /* @__PURE__ */ defineComponent({
|
|
1060
|
+
__name: "SheetClose",
|
|
1061
|
+
props: {
|
|
1062
|
+
asChild: { type: Boolean },
|
|
1063
|
+
as: { default: "a" }
|
|
1064
|
+
},
|
|
1065
|
+
setup(__props) {
|
|
1066
|
+
const props = __props;
|
|
1067
|
+
return (_ctx, _cache) => {
|
|
1068
|
+
return openBlock(), createBlock(unref(DrawerClose), normalizeProps(guardReactiveProps(props)), {
|
|
1069
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
1070
|
+
_: 3
|
|
1071
|
+
}, 16);
|
|
1072
|
+
};
|
|
1073
|
+
}
|
|
1074
|
+
});
|
|
1075
|
+
//#endregion
|
|
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({
|
|
1082
|
+
inheritAttrs: false,
|
|
1083
|
+
__name: "SheetContent",
|
|
1084
|
+
props: {
|
|
1085
|
+
class: { type: [
|
|
1086
|
+
Boolean,
|
|
1087
|
+
null,
|
|
1088
|
+
String,
|
|
1089
|
+
Object,
|
|
1090
|
+
Array
|
|
1091
|
+
] },
|
|
1092
|
+
showHandle: {
|
|
1093
|
+
type: Boolean,
|
|
1094
|
+
default: true
|
|
1095
|
+
},
|
|
1096
|
+
forceMount: { type: Boolean },
|
|
1097
|
+
disableOutsidePointerEvents: { type: Boolean },
|
|
1098
|
+
asChild: { type: Boolean },
|
|
1099
|
+
as: {}
|
|
1100
|
+
},
|
|
1101
|
+
emits: [
|
|
1102
|
+
"escapeKeyDown",
|
|
1103
|
+
"pointerDownOutside",
|
|
1104
|
+
"focusOutside",
|
|
1105
|
+
"interactOutside",
|
|
1106
|
+
"openAutoFocus",
|
|
1107
|
+
"closeAutoFocus"
|
|
1108
|
+
],
|
|
1109
|
+
setup(__props, { emit: __emit }) {
|
|
1110
|
+
const props = __props;
|
|
1111
|
+
const emits = __emit;
|
|
1112
|
+
const forwarded = useForwardPropsEmits(reactiveOmit(props, "class"), emits);
|
|
1113
|
+
return (_ctx, _cache) => {
|
|
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")]),
|
|
1120
|
+
_: 3
|
|
1121
|
+
}, 16, ["class"])]),
|
|
1122
|
+
_: 3
|
|
1123
|
+
});
|
|
1124
|
+
};
|
|
1125
|
+
}
|
|
1126
|
+
});
|
|
1127
|
+
//#endregion
|
|
1128
|
+
//#region src/sheet/SheetDescription.vue
|
|
1129
|
+
const _sfc_main$35 = /* @__PURE__ */ defineComponent({
|
|
1130
|
+
__name: "SheetDescription",
|
|
1131
|
+
props: {
|
|
1132
|
+
class: { type: [
|
|
1133
|
+
Boolean,
|
|
1134
|
+
null,
|
|
1135
|
+
String,
|
|
1136
|
+
Object,
|
|
1137
|
+
Array
|
|
1138
|
+
] },
|
|
1139
|
+
asChild: { type: Boolean },
|
|
1140
|
+
as: { default: "p" }
|
|
1141
|
+
},
|
|
1142
|
+
setup(__props) {
|
|
1143
|
+
const props = __props;
|
|
1144
|
+
const delegatedProps = reactiveOmit(props, "class");
|
|
1145
|
+
return (_ctx, _cache) => {
|
|
1146
|
+
return openBlock(), createBlock(unref(DrawerDescription), mergeProps({ class: unref(clsx)("arvue-sheet-description", props.class) }, unref(delegatedProps)), {
|
|
1147
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
1148
|
+
_: 3
|
|
1149
|
+
}, 16, ["class"]);
|
|
1150
|
+
};
|
|
1151
|
+
}
|
|
1152
|
+
});
|
|
1153
|
+
//#endregion
|
|
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
|
+
},
|
|
1168
|
+
setup(__props) {
|
|
1169
|
+
const props = __props;
|
|
1170
|
+
const delegatedProps = reactiveOmit(props, "class");
|
|
1171
|
+
return (_ctx, _cache) => {
|
|
1172
|
+
return openBlock(), createBlock(unref(Primitive), mergeProps({ class: unref(clsx)("arvue-sheet-footer", props.class) }, unref(delegatedProps)), {
|
|
1173
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
1174
|
+
_: 3
|
|
1175
|
+
}, 16, ["class"]);
|
|
1176
|
+
};
|
|
1177
|
+
}
|
|
1178
|
+
});
|
|
1179
|
+
//#endregion
|
|
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
|
+
},
|
|
1194
|
+
setup(__props) {
|
|
1195
|
+
const props = __props;
|
|
1196
|
+
const delegatedProps = reactiveOmit(props, "class");
|
|
1197
|
+
return (_ctx, _cache) => {
|
|
1198
|
+
return openBlock(), createBlock(unref(Primitive), mergeProps({ class: unref(clsx)("arvue-sheet-header", props.class) }, unref(delegatedProps)), {
|
|
1199
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
1200
|
+
_: 3
|
|
1201
|
+
}, 16, ["class"]);
|
|
1202
|
+
};
|
|
1203
|
+
}
|
|
1204
|
+
});
|
|
1205
|
+
//#endregion
|
|
1206
|
+
//#region src/sheet/SheetOverlay.vue
|
|
1207
|
+
const _sfc_main$38 = /* @__PURE__ */ defineComponent({
|
|
1208
|
+
__name: "SheetOverlay",
|
|
1209
|
+
props: {
|
|
1210
|
+
class: { type: [
|
|
1211
|
+
Boolean,
|
|
1212
|
+
null,
|
|
1213
|
+
String,
|
|
1214
|
+
Object,
|
|
1215
|
+
Array
|
|
1216
|
+
] },
|
|
1217
|
+
forceMount: { type: Boolean },
|
|
1218
|
+
asChild: { type: Boolean },
|
|
1219
|
+
as: {}
|
|
1220
|
+
},
|
|
1221
|
+
setup(__props) {
|
|
1222
|
+
const props = __props;
|
|
1223
|
+
const delegatedProps = reactiveOmit(props, "class");
|
|
1224
|
+
return (_ctx, _cache) => {
|
|
1225
|
+
return openBlock(), createBlock(unref(DrawerOverlay), mergeProps({ class: unref(clsx)("arvue-sheet-overlay", props.class) }, unref(delegatedProps)), {
|
|
1226
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
1227
|
+
_: 3
|
|
1228
|
+
}, 16, ["class"]);
|
|
1229
|
+
};
|
|
1230
|
+
}
|
|
1231
|
+
});
|
|
1232
|
+
//#endregion
|
|
1233
|
+
//#region src/sheet/SheetTitle.vue
|
|
1234
|
+
const _sfc_main$39 = /* @__PURE__ */ defineComponent({
|
|
1235
|
+
__name: "SheetTitle",
|
|
1236
|
+
props: {
|
|
1237
|
+
class: { type: [
|
|
1238
|
+
Boolean,
|
|
1239
|
+
null,
|
|
1240
|
+
String,
|
|
1241
|
+
Object,
|
|
1242
|
+
Array
|
|
1243
|
+
] },
|
|
1244
|
+
asChild: { type: Boolean },
|
|
1245
|
+
as: { default: "h3" }
|
|
1246
|
+
},
|
|
1247
|
+
setup(__props) {
|
|
1248
|
+
const props = __props;
|
|
1249
|
+
const delegatedProps = reactiveOmit(props, "class");
|
|
1250
|
+
return (_ctx, _cache) => {
|
|
1251
|
+
return openBlock(), createBlock(unref(DrawerTitle), mergeProps({ class: unref(clsx)("arvue-sheet-title", props.class) }, unref(delegatedProps)), {
|
|
1252
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
1253
|
+
_: 3
|
|
1254
|
+
}, 16, ["class"]);
|
|
1255
|
+
};
|
|
1256
|
+
}
|
|
1257
|
+
});
|
|
1258
|
+
//#endregion
|
|
1259
|
+
//#region src/sheet/SheetTrigger.vue
|
|
1260
|
+
const _sfc_main$40 = /* @__PURE__ */ defineComponent({
|
|
1261
|
+
__name: "SheetTrigger",
|
|
1262
|
+
props: {
|
|
1263
|
+
asChild: { type: Boolean },
|
|
1264
|
+
as: {}
|
|
1265
|
+
},
|
|
1266
|
+
setup(__props) {
|
|
1267
|
+
const props = __props;
|
|
1268
|
+
return (_ctx, _cache) => {
|
|
1269
|
+
return openBlock(), createBlock(unref(DrawerTrigger), normalizeProps(guardReactiveProps(props)), {
|
|
1270
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
1271
|
+
_: 3
|
|
1272
|
+
}, 16);
|
|
1273
|
+
};
|
|
1274
|
+
}
|
|
1275
|
+
});
|
|
1276
|
+
//#endregion
|
|
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 };
|
|
598
1278
|
|
|
599
1279
|
//# sourceMappingURL=index.js.map
|