@sprawlify/vue 0.0.109 → 0.0.111
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/{alert-dialog-anatomy-BPWHupYd.d.ts → alert-dialog-anatomy-Cmbo81mV.d.ts} +1 -1
- package/dist/{carousel-anatomy-Bm8A0IeH.d.ts → carousel-anatomy-CYo6B4BR.d.ts} +1 -1
- package/dist/{collapsible-34jXSu79.js → collapsible-BO89DMDT.js} +2 -2
- package/dist/{collection-D4ZZsQpB.js → collection-CMkl1XB0.js} +1 -1
- package/dist/color-picker-anatomy-09BXGqLT.d.ts +6 -0
- package/dist/{combobox-anatomy-MfUvUUEB.d.ts → combobox-anatomy-fBVJeObj.d.ts} +1 -1
- package/dist/components/accordion/index.d.ts +4 -4
- package/dist/components/accordion/index.js +5 -5
- package/dist/components/alert-dialog/index.d.ts +9 -9
- package/dist/components/alert-dialog/index.js +4 -4
- package/dist/components/anatomy.d.ts +9 -9
- package/dist/components/anatomy.js +2 -2
- package/dist/components/angle-slider/index.d.ts +1 -1
- package/dist/components/angle-slider/index.js +2 -2
- package/dist/components/aspect-ratio/index.js +2 -2
- package/dist/components/avatar/index.js +2 -2
- package/dist/components/carousel/index.d.ts +5 -5
- package/dist/components/carousel/index.js +2 -2
- package/dist/components/checkbox/index.d.ts +4 -4
- package/dist/components/checkbox/index.js +4 -4
- package/dist/components/clipboard/index.js +2 -2
- package/dist/components/collapsible/index.d.ts +2 -2
- package/dist/components/collapsible/index.js +2 -2
- package/dist/components/collection/index.js +1 -1
- package/dist/components/color-picker/index.d.ts +10 -10
- package/dist/components/color-picker/index.js +5 -5
- package/dist/components/combobox/index.d.ts +8 -8
- package/dist/components/combobox/index.js +6 -6
- package/dist/components/date-picker/index.d.ts +8 -8
- package/dist/components/date-picker/index.js +4 -4
- package/dist/components/dialog/index.d.ts +8 -8
- package/dist/components/dialog/index.js +4 -4
- package/dist/components/download-trigger/index.js +1 -1
- package/dist/components/drawer/index.d.ts +343 -0
- package/dist/components/drawer/index.js +519 -0
- package/dist/components/dropdown-menu/index.d.ts +10 -10
- package/dist/components/dropdown-menu/index.js +4 -4
- package/dist/components/editable/index.d.ts +7 -7
- package/dist/components/editable/index.js +3 -3
- package/dist/components/field/index.d.ts +1 -1
- package/dist/components/field/index.js +2 -2
- package/dist/components/fieldset/index.js +2 -2
- package/dist/components/file-upload/index.d.ts +2 -2
- package/dist/components/file-upload/index.js +3 -3
- package/dist/components/floating-panel/index.d.ts +2 -2
- package/dist/components/floating-panel/index.js +3 -3
- package/dist/components/focus-trap/index.js +2 -2
- package/dist/components/highlight/index.js +1 -1
- package/dist/components/hover-card/index.d.ts +5 -5
- package/dist/components/hover-card/index.js +4 -4
- package/dist/components/image-cropper/index.js +2 -2
- package/dist/components/json-tree-view/index.d.ts +2 -2
- package/dist/components/json-tree-view/index.js +6 -6
- package/dist/components/listbox/index.d.ts +3 -3
- package/dist/components/listbox/index.js +3 -3
- package/dist/components/marquee/index.js +2 -2
- package/dist/components/navigation-menu/index.js +4 -4
- package/dist/components/number-input/index.d.ts +3 -3
- package/dist/components/number-input/index.js +3 -3
- package/dist/components/pagination/index.d.ts +2 -2
- package/dist/components/pagination/index.js +2 -2
- package/dist/components/password-input/index.d.ts +1 -1
- package/dist/components/password-input/index.js +3 -3
- package/dist/components/pin-input/index.d.ts +4 -4
- package/dist/components/pin-input/index.js +3 -3
- package/dist/components/popover/index.d.ts +8 -8
- package/dist/components/popover/index.js +4 -4
- package/dist/components/presence/index.d.ts +1 -1
- package/dist/components/presence/index.js +2 -2
- package/dist/components/progress/index.js +2 -2
- package/dist/components/qr-code/index.js +2 -2
- package/dist/components/radio-group/index.d.ts +1 -1
- package/dist/components/radio-group/index.js +3 -3
- package/dist/components/rating-group/index.d.ts +1 -1
- package/dist/components/rating-group/index.js +3 -3
- package/dist/components/scroll-area/index.js +2 -2
- package/dist/components/segment-group/index.js +2 -2
- package/dist/components/select/index.d.ts +5 -5
- package/dist/components/select/index.js +6 -6
- package/dist/components/separator/index.js +2 -2
- package/dist/components/signature-pad/index.js +3 -3
- package/dist/components/slider/index.d.ts +3 -3
- package/dist/components/slider/index.js +2 -2
- package/dist/components/splitter/index.js +2 -2
- package/dist/components/steps/index.js +2 -2
- package/dist/components/switch/index.d.ts +3 -3
- package/dist/components/switch/index.js +3 -3
- package/dist/components/tabs/index.d.ts +4 -4
- package/dist/components/tabs/index.js +4 -4
- package/dist/components/tags-input/index.d.ts +8 -8
- package/dist/components/tags-input/index.js +3 -3
- package/dist/components/timer/index.js +2 -2
- package/dist/components/toast/index.js +1 -1
- package/dist/components/toggle/index.js +2 -2
- package/dist/components/toggle-group/index.d.ts +2 -2
- package/dist/components/toggle-group/index.js +2 -2
- package/dist/components/tooltip/index.d.ts +4 -4
- package/dist/components/tooltip/index.js +4 -4
- package/dist/components/tour/index.d.ts +1 -1
- package/dist/components/tour/index.js +4 -4
- package/dist/components/tree-view/index.d.ts +1 -1
- package/dist/components/tree-view/index.js +5 -5
- package/dist/{date-picker-anatomy-B6E2JeQx.d.ts → date-picker-anatomy-CTaSCl_Q.d.ts} +1 -1
- package/dist/drawer-anatomy-BQkMauTu.d.ts +2 -0
- package/dist/drawer-anatomy-yHqvQAPn.js +2 -0
- package/dist/{factory-Bd0Y5x-7.js → factory-pEq4L11-.js} +2 -2
- package/dist/{field-CzfgOnwc.js → field-COxjRzcf.js} +1 -1
- package/dist/{fieldset-D2ag4AsT.js → fieldset-DwMrmSml.js} +1 -1
- package/dist/{index-BVUxZEZF.d.ts → index-C7sz_n_w.d.ts} +2 -2
- package/dist/{index-CrEdjEeE.d.ts → index-DdyrLXRD.d.ts} +2 -2
- package/dist/index.js +1 -1
- package/dist/{listbox-anatomy-BqnzOQRJ.d.ts → listbox-anatomy-BIheOi8j.d.ts} +1 -1
- package/dist/{presence-Bv9Yv6KI.js → presence-C1Yo35j8.js} +1 -1
- package/dist/{tour-anatomy-oArGJeu1.d.ts → tour-anatomy-DltwPG-R.d.ts} +1 -1
- package/dist/{tree-view-DFYD5U4h.js → tree-view-CV0sK_Ab.js} +5 -5
- package/package.json +6 -6
- package/dist/bottom-sheet-anatomy-C70fosOT.js +0 -2
- package/dist/bottom-sheet-anatomy-DoteJlEZ.d.ts +0 -2
- package/dist/color-picker-anatomy-CAFzTTD9.d.ts +0 -6
- package/dist/components/bottom-sheet/index.d.ts +0 -242
- package/dist/components/bottom-sheet/index.js +0 -375
- /package/dist/{clean-props-qyW2RH6G.js → clean-props-C5aydRx_.js} +0 -0
- /package/dist/{create-split-props-Cz6On1aq.js → create-split-props-D32I38aE.js} +0 -0
- /package/dist/{use-render-strategy-Cq147Bb0.js → use-render-strategy-QgtvU85q.js} +0 -0
|
@@ -1,375 +0,0 @@
|
|
|
1
|
-
import { t as __exportAll } from "../../chunk-pbuEa-1d.js";
|
|
2
|
-
import { n as useMachine, r as normalizeProps$1, t as mergeProps$1 } from "../../core-DFdl8jS7.js";
|
|
3
|
-
import { a as DEFAULT_LOCALE, c as DEFAULT_ENVIRONMENT, l as useEnvironmentContext, o as useLocaleContext } from "../../providers-CicBbUXG.js";
|
|
4
|
-
import { t as createContext } from "../../create-context-BqbKqBMN.js";
|
|
5
|
-
import "../../utils-BL0VqhHN.js";
|
|
6
|
-
import { n as sprawlify, r as useForwardExpose } from "../../factory-Bd0Y5x-7.js";
|
|
7
|
-
import { t as bottomSheetAnatomy } from "../../bottom-sheet-anatomy-C70fosOT.js";
|
|
8
|
-
import { t as cleanProps } from "../../clean-props-qyW2RH6G.js";
|
|
9
|
-
import { n as useRenderStrategyProps, t as RenderStrategyPropsProvider } from "../../use-render-strategy-Cq147Bb0.js";
|
|
10
|
-
import { i as usePresence, n as PresenceProvider, r as usePresenceContext } from "../../presence-Bv9Yv6KI.js";
|
|
11
|
-
import { t as createSplitProps } from "../../create-split-props-Cz6On1aq.js";
|
|
12
|
-
import { computed, createBlock, createCommentVNode, defineComponent, guardReactiveProps, mergeDefaults, mergeProps, normalizeProps, openBlock, renderSlot, toValue, unref, useId, withCtx } from "vue";
|
|
13
|
-
import * as bottomSheet from "@sprawlify/primitives/machines/bottom-sheet";
|
|
14
|
-
//#region src/components/bottom-sheet/use-bottom-sheet-context.ts
|
|
15
|
-
const [BottomSheetProvider, useBottomSheetContext] = createContext("BottomSheetContext");
|
|
16
|
-
//#endregion
|
|
17
|
-
//#region src/components/bottom-sheet/bottom-sheet-backdrop.vue
|
|
18
|
-
var bottom_sheet_backdrop_default = /* @__PURE__ */ defineComponent({
|
|
19
|
-
__name: "bottom-sheet-backdrop",
|
|
20
|
-
props: { asChild: {
|
|
21
|
-
type: Boolean,
|
|
22
|
-
required: false
|
|
23
|
-
} },
|
|
24
|
-
setup(__props) {
|
|
25
|
-
const bottomSheet = useBottomSheetContext();
|
|
26
|
-
const renderStrategy = useRenderStrategyProps();
|
|
27
|
-
const presence = usePresence(computed(() => ({
|
|
28
|
-
...renderStrategy.value,
|
|
29
|
-
present: bottomSheet.value.open
|
|
30
|
-
})));
|
|
31
|
-
const mergedProps = computed(() => mergeProps$1(bottomSheet.value.getBackdropProps(), presence.value.presenceProps));
|
|
32
|
-
useForwardExpose();
|
|
33
|
-
return (_ctx, _cache) => {
|
|
34
|
-
return !unref(presence).unmounted ? (openBlock(), createBlock(unref(sprawlify).div, mergeProps({ key: 0 }, mergedProps.value, { "as-child": __props.asChild }), {
|
|
35
|
-
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
36
|
-
_: 3
|
|
37
|
-
}, 16, ["as-child"])) : createCommentVNode("v-if", true);
|
|
38
|
-
};
|
|
39
|
-
}
|
|
40
|
-
});
|
|
41
|
-
//#endregion
|
|
42
|
-
//#region src/components/bottom-sheet/bottom-sheet-close-trigger.vue
|
|
43
|
-
var bottom_sheet_close_trigger_default = /* @__PURE__ */ defineComponent({
|
|
44
|
-
__name: "bottom-sheet-close-trigger",
|
|
45
|
-
props: { asChild: {
|
|
46
|
-
type: Boolean,
|
|
47
|
-
required: false
|
|
48
|
-
} },
|
|
49
|
-
setup(__props) {
|
|
50
|
-
const bottomSheet = useBottomSheetContext();
|
|
51
|
-
useForwardExpose();
|
|
52
|
-
return (_ctx, _cache) => {
|
|
53
|
-
return openBlock(), createBlock(unref(sprawlify).button, mergeProps(unref(bottomSheet).getCloseTriggerProps(), { "as-child": __props.asChild }), {
|
|
54
|
-
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
55
|
-
_: 3
|
|
56
|
-
}, 16, ["as-child"]);
|
|
57
|
-
};
|
|
58
|
-
}
|
|
59
|
-
});
|
|
60
|
-
//#endregion
|
|
61
|
-
//#region src/components/bottom-sheet/bottom-sheet-content.vue
|
|
62
|
-
var bottom_sheet_content_default = /* @__PURE__ */ defineComponent({
|
|
63
|
-
__name: "bottom-sheet-content",
|
|
64
|
-
props: {
|
|
65
|
-
asChild: {
|
|
66
|
-
type: Boolean,
|
|
67
|
-
required: false
|
|
68
|
-
},
|
|
69
|
-
draggable: {
|
|
70
|
-
type: Boolean,
|
|
71
|
-
required: false,
|
|
72
|
-
skipCheck: true,
|
|
73
|
-
default: true
|
|
74
|
-
}
|
|
75
|
-
},
|
|
76
|
-
setup(__props) {
|
|
77
|
-
const props = __props;
|
|
78
|
-
const [contentProps, localProps] = createSplitProps()(props, ["draggable"]);
|
|
79
|
-
const bottomSheet = useBottomSheetContext();
|
|
80
|
-
const presence = usePresenceContext();
|
|
81
|
-
const mergedProps = computed(() => mergeProps$1(bottomSheet.value.getContentProps({
|
|
82
|
-
draggable: true,
|
|
83
|
-
...contentProps
|
|
84
|
-
}), presence.value.presenceProps, localProps));
|
|
85
|
-
useForwardExpose();
|
|
86
|
-
return (_ctx, _cache) => {
|
|
87
|
-
return !unref(presence).unmounted ? (openBlock(), createBlock(unref(sprawlify).div, mergeProps({ key: 0 }, mergedProps.value, { "as-child": __props.asChild }), {
|
|
88
|
-
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
89
|
-
_: 3
|
|
90
|
-
}, 16, ["as-child"])) : createCommentVNode("v-if", true);
|
|
91
|
-
};
|
|
92
|
-
}
|
|
93
|
-
});
|
|
94
|
-
//#endregion
|
|
95
|
-
//#region src/components/bottom-sheet/bottom-sheet-context.vue
|
|
96
|
-
var bottom_sheet_context_default = /* @__PURE__ */ defineComponent({
|
|
97
|
-
__name: "bottom-sheet-context",
|
|
98
|
-
setup(__props) {
|
|
99
|
-
const bottomSheet = useBottomSheetContext();
|
|
100
|
-
return (_ctx, _cache) => {
|
|
101
|
-
return renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(unref(bottomSheet))));
|
|
102
|
-
};
|
|
103
|
-
}
|
|
104
|
-
});
|
|
105
|
-
//#endregion
|
|
106
|
-
//#region src/components/bottom-sheet/bottom-sheet-grabber.vue
|
|
107
|
-
var bottom_sheet_grabber_default = /* @__PURE__ */ defineComponent({
|
|
108
|
-
__name: "bottom-sheet-grabber",
|
|
109
|
-
props: { asChild: {
|
|
110
|
-
type: Boolean,
|
|
111
|
-
required: false
|
|
112
|
-
} },
|
|
113
|
-
setup(__props) {
|
|
114
|
-
const bottomSheet = useBottomSheetContext();
|
|
115
|
-
useForwardExpose();
|
|
116
|
-
return (_ctx, _cache) => {
|
|
117
|
-
return openBlock(), createBlock(unref(sprawlify).div, mergeProps(unref(bottomSheet).getGrabberProps(), { "as-child": __props.asChild }), {
|
|
118
|
-
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
119
|
-
_: 3
|
|
120
|
-
}, 16, ["as-child"]);
|
|
121
|
-
};
|
|
122
|
-
}
|
|
123
|
-
});
|
|
124
|
-
//#endregion
|
|
125
|
-
//#region src/components/bottom-sheet/bottom-sheet-grabber-indicator.vue
|
|
126
|
-
var bottom_sheet_grabber_indicator_default = /* @__PURE__ */ defineComponent({
|
|
127
|
-
__name: "bottom-sheet-grabber-indicator",
|
|
128
|
-
props: { asChild: {
|
|
129
|
-
type: Boolean,
|
|
130
|
-
required: false
|
|
131
|
-
} },
|
|
132
|
-
setup(__props) {
|
|
133
|
-
const bottomSheet = useBottomSheetContext();
|
|
134
|
-
useForwardExpose();
|
|
135
|
-
return (_ctx, _cache) => {
|
|
136
|
-
return openBlock(), createBlock(unref(sprawlify).div, mergeProps(unref(bottomSheet).getGrabberIndicatorProps(), { "as-child": __props.asChild }), {
|
|
137
|
-
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
138
|
-
_: 3
|
|
139
|
-
}, 16, ["as-child"]);
|
|
140
|
-
};
|
|
141
|
-
}
|
|
142
|
-
});
|
|
143
|
-
//#endregion
|
|
144
|
-
//#region src/components/bottom-sheet/use-bottom-sheet.ts
|
|
145
|
-
const useBottomSheet = (props = {}, emit) => {
|
|
146
|
-
const id = useId();
|
|
147
|
-
const env = useEnvironmentContext(DEFAULT_ENVIRONMENT);
|
|
148
|
-
const locale = useLocaleContext(DEFAULT_LOCALE);
|
|
149
|
-
const context = computed(() => {
|
|
150
|
-
const localeProps = toValue(props);
|
|
151
|
-
return {
|
|
152
|
-
id,
|
|
153
|
-
dir: locale.value.dir,
|
|
154
|
-
getRootNode: env?.value.getRootNode,
|
|
155
|
-
...cleanProps(localeProps),
|
|
156
|
-
onOpenChange: (details) => {
|
|
157
|
-
emit?.("openChange", details);
|
|
158
|
-
localeProps.onOpenChange?.(details);
|
|
159
|
-
},
|
|
160
|
-
onActiveSnapPointChange: (details) => {
|
|
161
|
-
emit?.("activeSnapPointChange", details);
|
|
162
|
-
localeProps.onActiveSnapPointChange?.(details);
|
|
163
|
-
}
|
|
164
|
-
};
|
|
165
|
-
});
|
|
166
|
-
const service = useMachine(bottomSheet.machine, context);
|
|
167
|
-
return computed(() => bottomSheet.connect(service, normalizeProps$1));
|
|
168
|
-
};
|
|
169
|
-
//#endregion
|
|
170
|
-
//#region src/components/bottom-sheet/bottom-sheet-root.vue
|
|
171
|
-
var bottom_sheet_root_default = /* @__PURE__ */ defineComponent({
|
|
172
|
-
__name: "bottom-sheet-root",
|
|
173
|
-
props: /* @__PURE__ */ mergeDefaults({
|
|
174
|
-
id: {
|
|
175
|
-
type: String,
|
|
176
|
-
required: false
|
|
177
|
-
},
|
|
178
|
-
ids: {
|
|
179
|
-
type: Object,
|
|
180
|
-
required: false
|
|
181
|
-
},
|
|
182
|
-
trapFocus: {
|
|
183
|
-
type: Boolean,
|
|
184
|
-
required: false
|
|
185
|
-
},
|
|
186
|
-
preventScroll: {
|
|
187
|
-
type: Boolean,
|
|
188
|
-
required: false
|
|
189
|
-
},
|
|
190
|
-
modal: {
|
|
191
|
-
type: Boolean,
|
|
192
|
-
required: false
|
|
193
|
-
},
|
|
194
|
-
initialFocusEl: {
|
|
195
|
-
type: Function,
|
|
196
|
-
required: false
|
|
197
|
-
},
|
|
198
|
-
finalFocusEl: {
|
|
199
|
-
type: Function,
|
|
200
|
-
required: false
|
|
201
|
-
},
|
|
202
|
-
restoreFocus: {
|
|
203
|
-
type: Boolean,
|
|
204
|
-
required: false
|
|
205
|
-
},
|
|
206
|
-
role: {
|
|
207
|
-
type: String,
|
|
208
|
-
required: false
|
|
209
|
-
},
|
|
210
|
-
open: {
|
|
211
|
-
type: Boolean,
|
|
212
|
-
required: false
|
|
213
|
-
},
|
|
214
|
-
defaultOpen: {
|
|
215
|
-
type: Boolean,
|
|
216
|
-
required: false
|
|
217
|
-
},
|
|
218
|
-
closeOnInteractOutside: {
|
|
219
|
-
type: Boolean,
|
|
220
|
-
required: false
|
|
221
|
-
},
|
|
222
|
-
closeOnEscape: {
|
|
223
|
-
type: Boolean,
|
|
224
|
-
required: false
|
|
225
|
-
},
|
|
226
|
-
snapPoints: {
|
|
227
|
-
type: Array,
|
|
228
|
-
required: false
|
|
229
|
-
},
|
|
230
|
-
swipeVelocityThreshold: {
|
|
231
|
-
type: Number,
|
|
232
|
-
required: false
|
|
233
|
-
},
|
|
234
|
-
closeThreshold: {
|
|
235
|
-
type: Number,
|
|
236
|
-
required: false
|
|
237
|
-
},
|
|
238
|
-
preventDragOnScroll: {
|
|
239
|
-
type: Boolean,
|
|
240
|
-
required: false
|
|
241
|
-
},
|
|
242
|
-
activeSnapPoint: {
|
|
243
|
-
type: [Number, String],
|
|
244
|
-
required: false
|
|
245
|
-
},
|
|
246
|
-
defaultActiveSnapPoint: {
|
|
247
|
-
type: [Number, String],
|
|
248
|
-
required: false
|
|
249
|
-
},
|
|
250
|
-
lazyMount: {
|
|
251
|
-
type: Boolean,
|
|
252
|
-
required: false
|
|
253
|
-
},
|
|
254
|
-
unmountOnExit: {
|
|
255
|
-
type: Boolean,
|
|
256
|
-
required: false
|
|
257
|
-
}
|
|
258
|
-
}, {
|
|
259
|
-
closeOnEscape: void 0,
|
|
260
|
-
closeOnInteractOutside: void 0,
|
|
261
|
-
defaultOpen: void 0,
|
|
262
|
-
modal: void 0,
|
|
263
|
-
open: void 0,
|
|
264
|
-
preventScroll: void 0,
|
|
265
|
-
restoreFocus: void 0,
|
|
266
|
-
trapFocus: void 0,
|
|
267
|
-
preventDragOnScroll: void 0
|
|
268
|
-
}),
|
|
269
|
-
emits: ["openChange", "activeSnapPointChange"],
|
|
270
|
-
setup(__props, { emit: __emit }) {
|
|
271
|
-
const props = __props;
|
|
272
|
-
const bottomSheet = useBottomSheet(props, __emit);
|
|
273
|
-
BottomSheetProvider(bottomSheet);
|
|
274
|
-
RenderStrategyPropsProvider(computed(() => ({
|
|
275
|
-
lazyMount: props.lazyMount,
|
|
276
|
-
unmountOnExit: props.unmountOnExit
|
|
277
|
-
})));
|
|
278
|
-
PresenceProvider(usePresence(computed(() => ({
|
|
279
|
-
present: bottomSheet.value.open,
|
|
280
|
-
lazyMount: props.lazyMount,
|
|
281
|
-
unmountOnExit: props.unmountOnExit
|
|
282
|
-
}))));
|
|
283
|
-
useForwardExpose();
|
|
284
|
-
return (_ctx, _cache) => {
|
|
285
|
-
return renderSlot(_ctx.$slots, "default");
|
|
286
|
-
};
|
|
287
|
-
}
|
|
288
|
-
});
|
|
289
|
-
//#endregion
|
|
290
|
-
//#region src/components/bottom-sheet/bottom-sheet-root-provider.vue
|
|
291
|
-
var bottom_sheet_root_provider_default = /* @__PURE__ */ defineComponent({
|
|
292
|
-
__name: "bottom-sheet-root-provider",
|
|
293
|
-
props: {
|
|
294
|
-
value: {
|
|
295
|
-
type: null,
|
|
296
|
-
required: true
|
|
297
|
-
},
|
|
298
|
-
lazyMount: {
|
|
299
|
-
type: Boolean,
|
|
300
|
-
required: false
|
|
301
|
-
},
|
|
302
|
-
unmountOnExit: {
|
|
303
|
-
type: Boolean,
|
|
304
|
-
required: false
|
|
305
|
-
}
|
|
306
|
-
},
|
|
307
|
-
setup(__props) {
|
|
308
|
-
const props = __props;
|
|
309
|
-
const bottomSheet = computed(() => props.value);
|
|
310
|
-
BottomSheetProvider(bottomSheet);
|
|
311
|
-
RenderStrategyPropsProvider(computed(() => ({
|
|
312
|
-
lazyMount: props.lazyMount,
|
|
313
|
-
unmountOnExit: props.unmountOnExit
|
|
314
|
-
})));
|
|
315
|
-
PresenceProvider(usePresence(computed(() => ({ present: bottomSheet.value.open }))));
|
|
316
|
-
useForwardExpose();
|
|
317
|
-
return (_ctx, _cache) => {
|
|
318
|
-
return renderSlot(_ctx.$slots, "default");
|
|
319
|
-
};
|
|
320
|
-
}
|
|
321
|
-
});
|
|
322
|
-
//#endregion
|
|
323
|
-
//#region src/components/bottom-sheet/bottom-sheet-title.vue
|
|
324
|
-
var bottom_sheet_title_default = /* @__PURE__ */ defineComponent({
|
|
325
|
-
__name: "bottom-sheet-title",
|
|
326
|
-
props: { asChild: {
|
|
327
|
-
type: Boolean,
|
|
328
|
-
required: false
|
|
329
|
-
} },
|
|
330
|
-
setup(__props) {
|
|
331
|
-
const bottomSheet = useBottomSheetContext();
|
|
332
|
-
useForwardExpose();
|
|
333
|
-
return (_ctx, _cache) => {
|
|
334
|
-
return openBlock(), createBlock(unref(sprawlify).h2, mergeProps(unref(bottomSheet).getTitleProps(), { "as-child": __props.asChild }), {
|
|
335
|
-
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
336
|
-
_: 3
|
|
337
|
-
}, 16, ["as-child"]);
|
|
338
|
-
};
|
|
339
|
-
}
|
|
340
|
-
});
|
|
341
|
-
//#endregion
|
|
342
|
-
//#region src/components/bottom-sheet/bottom-sheet-trigger.vue
|
|
343
|
-
var bottom_sheet_trigger_default = /* @__PURE__ */ defineComponent({
|
|
344
|
-
__name: "bottom-sheet-trigger",
|
|
345
|
-
props: { asChild: {
|
|
346
|
-
type: Boolean,
|
|
347
|
-
required: false
|
|
348
|
-
} },
|
|
349
|
-
setup(__props) {
|
|
350
|
-
const bottomSheet = useBottomSheetContext();
|
|
351
|
-
useForwardExpose();
|
|
352
|
-
return (_ctx, _cache) => {
|
|
353
|
-
return openBlock(), createBlock(unref(sprawlify).button, mergeProps(unref(bottomSheet).getTriggerProps(), { "as-child": __props.asChild }), {
|
|
354
|
-
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
355
|
-
_: 3
|
|
356
|
-
}, 16, ["as-child"]);
|
|
357
|
-
};
|
|
358
|
-
}
|
|
359
|
-
});
|
|
360
|
-
//#endregion
|
|
361
|
-
//#region src/components/bottom-sheet/bottom-sheet.ts
|
|
362
|
-
var bottom_sheet_exports = /* @__PURE__ */ __exportAll({
|
|
363
|
-
Backdrop: () => bottom_sheet_backdrop_default,
|
|
364
|
-
CloseTrigger: () => bottom_sheet_close_trigger_default,
|
|
365
|
-
Content: () => bottom_sheet_content_default,
|
|
366
|
-
Context: () => bottom_sheet_context_default,
|
|
367
|
-
Grabber: () => bottom_sheet_grabber_default,
|
|
368
|
-
GrabberIndicator: () => bottom_sheet_grabber_indicator_default,
|
|
369
|
-
Root: () => bottom_sheet_root_default,
|
|
370
|
-
RootProvider: () => bottom_sheet_root_provider_default,
|
|
371
|
-
Title: () => bottom_sheet_title_default,
|
|
372
|
-
Trigger: () => bottom_sheet_trigger_default
|
|
373
|
-
});
|
|
374
|
-
//#endregion
|
|
375
|
-
export { bottom_sheet_exports as BottomSheet, bottom_sheet_backdrop_default as BottomSheetBackdrop, bottom_sheet_close_trigger_default as BottomSheetCloseTrigger, bottom_sheet_content_default as BottomSheetContent, bottom_sheet_context_default as BottomSheetContext, bottom_sheet_grabber_default as BottomSheetGrabber, bottom_sheet_grabber_indicator_default as BottomSheetGrabberIndicator, bottom_sheet_root_default as BottomSheetRoot, bottom_sheet_root_provider_default as BottomSheetRootProvider, bottom_sheet_title_default as BottomSheetTitle, bottom_sheet_trigger_default as BottomSheetTrigger, bottomSheetAnatomy, useBottomSheet, useBottomSheetContext };
|
|
File without changes
|
|
File without changes
|
|
File without changes
|