@wirekyt/vue 0.0.1 → 0.0.2
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/accordion.cjs +273 -0
- package/dist/accordion.d.cts +195 -0
- package/dist/accordion.d.ts +195 -0
- package/dist/accordion.js +250 -0
- package/dist/angle-slider.cjs +268 -0
- package/dist/angle-slider.d.cts +228 -0
- package/dist/angle-slider.d.ts +228 -0
- package/dist/angle-slider.js +244 -0
- package/dist/avatar.cjs +145 -0
- package/dist/avatar.d.cts +114 -0
- package/dist/avatar.d.ts +114 -0
- package/dist/avatar.js +126 -0
- package/dist/boolean-BCaEpMxQ.js +6 -0
- package/dist/boolean-Dyu9-5Wp.cjs +11 -0
- package/dist/carousel.cjs +342 -0
- package/dist/carousel.d.cts +303 -0
- package/dist/carousel.d.ts +303 -0
- package/dist/carousel.js +320 -0
- package/dist/checkbox.cjs +345 -0
- package/dist/checkbox.d.cts +272 -0
- package/dist/checkbox.d.ts +272 -0
- package/dist/checkbox.js +324 -0
- package/dist/clean-props--1kqQE0Y.js +8 -0
- package/dist/clean-props-MyKqus13.cjs +13 -0
- package/dist/client-only.cjs +17 -0
- package/dist/client-only.d.cts +18 -0
- package/dist/client-only.d.ts +18 -0
- package/dist/client-only.js +16 -0
- package/dist/clipboard.cjs +229 -0
- package/dist/clipboard.d.cts +203 -0
- package/dist/clipboard.d.ts +203 -0
- package/dist/clipboard.js +206 -0
- package/dist/collapsible-CEjnJlpm.js +179 -0
- package/dist/collapsible-aSz4kYqo.cjs +232 -0
- package/dist/collapsible.cjs +23 -0
- package/dist/collapsible.d.cts +161 -0
- package/dist/collapsible.d.ts +161 -0
- package/dist/collapsible.js +2 -0
- package/dist/collection-1IjtyI-g.cjs +254 -0
- package/dist/collection-Ea6ZCZKK.js +211 -0
- package/dist/collection.cjs +9 -0
- package/dist/collection.d.cts +2 -0
- package/dist/collection.d.ts +2 -0
- package/dist/collection.js +2 -0
- package/dist/color-picker.cjs +804 -0
- package/dist/color-picker.d.cts +605 -0
- package/dist/color-picker.d.ts +605 -0
- package/dist/color-picker.js +759 -0
- package/dist/combobox.cjs +552 -0
- package/dist/combobox.d.cts +442 -0
- package/dist/combobox.d.ts +442 -0
- package/dist/combobox.js +521 -0
- package/dist/create-split-props-BBxrD7TV.js +10 -0
- package/dist/create-split-props-Jx-IEwdk.cjs +15 -0
- package/dist/date-input.cjs +293 -0
- package/dist/date-input.d.cts +212 -0
- package/dist/date-input.d.ts +212 -0
- package/dist/date-input.js +270 -0
- package/dist/date-picker.cjs +821 -0
- package/dist/date-picker.d.cts +637 -0
- package/dist/date-picker.d.ts +637 -0
- package/dist/date-picker.js +776 -0
- package/dist/dialog.cjs +333 -0
- package/dist/dialog.d.cts +272 -0
- package/dist/dialog.d.ts +272 -0
- package/dist/dialog.js +308 -0
- package/dist/download-trigger.cjs +65 -0
- package/dist/download-trigger.d.cts +34 -0
- package/dist/download-trigger.d.ts +34 -0
- package/dist/download-trigger.js +63 -0
- package/dist/drawer.cjs +448 -0
- package/dist/drawer.d.cts +346 -0
- package/dist/drawer.d.ts +346 -0
- package/dist/drawer.js +415 -0
- package/dist/editable.cjs +331 -0
- package/dist/editable.d.cts +285 -0
- package/dist/editable.d.ts +285 -0
- package/dist/editable.js +306 -0
- package/dist/factory-8Ao0DEy3.js +34 -0
- package/dist/factory-BNwuanv4.d.cts +21 -0
- package/dist/factory-BNwuanv4.d.ts +21 -0
- package/dist/factory-JL7MPjkk.cjs +45 -0
- package/dist/field-C3pLqz1S.js +435 -0
- package/dist/field-DRz-v4rB.cjs +524 -0
- package/dist/field.cjs +22 -0
- package/dist/field.d.cts +344 -0
- package/dist/field.d.ts +344 -0
- package/dist/field.js +2 -0
- package/dist/fieldset-ByP_r1Uq.js +216 -0
- package/dist/fieldset-C5aj6Ims.cjs +275 -0
- package/dist/fieldset.cjs +17 -0
- package/dist/fieldset.d.cts +159 -0
- package/dist/fieldset.d.ts +159 -0
- package/dist/fieldset.js +2 -0
- package/dist/file-upload.cjs +421 -0
- package/dist/file-upload.d.cts +327 -0
- package/dist/file-upload.d.ts +327 -0
- package/dist/file-upload.js +392 -0
- package/dist/floating-panel.cjs +412 -0
- package/dist/floating-panel.d.cts +337 -0
- package/dist/floating-panel.d.ts +337 -0
- package/dist/floating-panel.js +383 -0
- package/dist/focus-trap.cjs +79 -0
- package/dist/focus-trap.d.cts +46 -0
- package/dist/focus-trap.d.ts +46 -0
- package/dist/focus-trap.js +78 -0
- package/dist/format.cjs +116 -0
- package/dist/format.d.cts +46 -0
- package/dist/format.d.ts +46 -0
- package/dist/format.js +106 -0
- package/dist/frame.cjs +93 -0
- package/dist/frame.d.cts +37 -0
- package/dist/frame.d.ts +37 -0
- package/dist/frame.js +92 -0
- package/dist/highlight.cjs +44 -0
- package/dist/highlight.d.cts +32 -0
- package/dist/highlight.d.ts +32 -0
- package/dist/highlight.js +42 -0
- package/dist/hover-card.cjs +269 -0
- package/dist/hover-card.d.cts +202 -0
- package/dist/hover-card.d.ts +202 -0
- package/dist/hover-card.js +246 -0
- package/dist/image-cropper.cjs +252 -0
- package/dist/image-cropper.d.cts +207 -0
- package/dist/image-cropper.d.ts +207 -0
- package/dist/image-cropper.js +235 -0
- package/dist/index-B-o8jLyV.d.cts +31 -0
- package/dist/index-BSoF1D-v.d.ts +31 -0
- package/dist/index-BTNfeIXf.d.ts +104 -0
- package/dist/index-C6Q2DqG6.d.ts +37 -0
- package/dist/index-CG9mpPgL.d.cts +444 -0
- package/dist/index-Cc4qS0rQ.d.cts +38 -0
- package/dist/index-Cc4qS0rQ.d.ts +38 -0
- package/dist/index-DB2uALlJ.d.cts +74 -0
- package/dist/index-DXb0W_NP.d.cts +37 -0
- package/dist/index-Zc9P69Ka.d.cts +104 -0
- package/dist/index-aMWdJRGL.d.ts +444 -0
- package/dist/index-uLE-tXSk.d.ts +74 -0
- package/dist/index.cjs +43 -0
- package/dist/index.d.cts +5 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +7 -0
- package/dist/json-tree-view.cjs +346 -0
- package/dist/json-tree-view.d.cts +86 -0
- package/dist/json-tree-view.d.ts +86 -0
- package/dist/json-tree-view.js +336 -0
- package/dist/listbox.cjs +386 -0
- package/dist/listbox.d.cts +323 -0
- package/dist/listbox.d.ts +323 -0
- package/dist/listbox.js +361 -0
- package/dist/marquee.cjs +256 -0
- package/dist/marquee.d.cts +208 -0
- package/dist/marquee.d.ts +208 -0
- package/dist/marquee.js +235 -0
- package/dist/menu.cjs +650 -0
- package/dist/menu.d.cts +501 -0
- package/dist/menu.d.ts +501 -0
- package/dist/menu.js +613 -0
- package/dist/navigation-menu.cjs +408 -0
- package/dist/navigation-menu.d.cts +271 -0
- package/dist/navigation-menu.d.ts +271 -0
- package/dist/navigation-menu.js +380 -0
- package/dist/number-input.cjs +298 -0
- package/dist/number-input.d.cts +253 -0
- package/dist/number-input.d.ts +253 -0
- package/dist/number-input.js +274 -0
- package/dist/pagination.cjs +249 -0
- package/dist/pagination.d.cts +209 -0
- package/dist/pagination.d.ts +209 -0
- package/dist/pagination.js +226 -0
- package/dist/password-input.cjs +232 -0
- package/dist/password-input.d.cts +208 -0
- package/dist/password-input.d.ts +208 -0
- package/dist/password-input.js +210 -0
- package/dist/pin-input.cjs +245 -0
- package/dist/pin-input.d.cts +199 -0
- package/dist/pin-input.d.ts +199 -0
- package/dist/pin-input.js +224 -0
- package/dist/popover.cjs +377 -0
- package/dist/popover.d.cts +324 -0
- package/dist/popover.d.ts +324 -0
- package/dist/popover.js +349 -0
- package/dist/presence-DD3l4Tgb.cjs +60 -0
- package/dist/presence-jaHZaD_O.js +43 -0
- package/dist/presence.cjs +7 -0
- package/dist/presence.d.cts +3 -0
- package/dist/presence.d.ts +3 -0
- package/dist/presence.js +3 -0
- package/dist/progress.cjs +270 -0
- package/dist/progress.d.cts +229 -0
- package/dist/progress.d.ts +229 -0
- package/dist/progress.js +245 -0
- package/dist/providers-5QhcwgSd.cjs +190 -0
- package/dist/providers-C3XQH-uu.js +119 -0
- package/dist/qr-code.cjs +195 -0
- package/dist/qr-code.d.cts +157 -0
- package/dist/qr-code.d.ts +157 -0
- package/dist/qr-code.js +174 -0
- package/dist/radio-group.cjs +274 -0
- package/dist/radio-group.d.cts +230 -0
- package/dist/radio-group.d.ts +230 -0
- package/dist/radio-group.js +249 -0
- package/dist/rating-group.cjs +243 -0
- package/dist/rating-group.d.cts +200 -0
- package/dist/rating-group.d.ts +200 -0
- package/dist/rating-group.js +220 -0
- package/dist/rolldown-runtime-D7D4PA-g.js +13 -0
- package/dist/rolldown-runtime-DakpK96I.cjs +43 -0
- package/dist/scroll-area.cjs +206 -0
- package/dist/scroll-area.d.cts +169 -0
- package/dist/scroll-area.d.ts +169 -0
- package/dist/scroll-area.js +184 -0
- package/dist/segment-group.cjs +318 -0
- package/dist/segment-group.d.cts +229 -0
- package/dist/segment-group.d.ts +229 -0
- package/dist/segment-group.js +298 -0
- package/dist/select.cjs +560 -0
- package/dist/select.d.cts +430 -0
- package/dist/select.d.ts +430 -0
- package/dist/select.js +523 -0
- package/dist/signature-pad.cjs +260 -0
- package/dist/signature-pad.d.cts +200 -0
- package/dist/signature-pad.d.ts +200 -0
- package/dist/signature-pad.js +237 -0
- package/dist/slider.cjs +350 -0
- package/dist/slider.d.cts +299 -0
- package/dist/slider.d.ts +299 -0
- package/dist/slider.js +323 -0
- package/dist/splitter.cjs +225 -0
- package/dist/splitter.d.cts +166 -0
- package/dist/splitter.d.ts +166 -0
- package/dist/splitter.js +198 -0
- package/dist/steps.cjs +348 -0
- package/dist/steps.d.cts +289 -0
- package/dist/steps.d.ts +289 -0
- package/dist/steps.js +319 -0
- package/dist/swap.cjs +154 -0
- package/dist/swap.d.cts +98 -0
- package/dist/swap.d.ts +98 -0
- package/dist/swap.js +141 -0
- package/dist/switch.cjs +213 -0
- package/dist/switch.d.cts +177 -0
- package/dist/switch.d.ts +177 -0
- package/dist/switch.js +192 -0
- package/dist/tabs.cjs +240 -0
- package/dist/tabs.d.cts +179 -0
- package/dist/tabs.d.ts +179 -0
- package/dist/tabs.js +218 -0
- package/dist/tags-input.cjs +405 -0
- package/dist/tags-input.d.cts +340 -0
- package/dist/tags-input.d.ts +340 -0
- package/dist/tags-input.js +376 -0
- package/dist/timer.cjs +221 -0
- package/dist/timer.d.cts +176 -0
- package/dist/timer.d.ts +176 -0
- package/dist/timer.js +199 -0
- package/dist/toast.cjs +211 -0
- package/dist/toast.d.cts +157 -0
- package/dist/toast.d.ts +157 -0
- package/dist/toast.js +189 -0
- package/dist/toggle-group.cjs +150 -0
- package/dist/toggle-group.d.cts +122 -0
- package/dist/toggle-group.d.ts +122 -0
- package/dist/toggle-group.js +132 -0
- package/dist/toggle.cjs +107 -0
- package/dist/toggle.d.cts +98 -0
- package/dist/toggle.d.ts +98 -0
- package/dist/toggle.js +94 -0
- package/dist/tooltip.cjs +265 -0
- package/dist/tooltip.d.cts +204 -0
- package/dist/tooltip.d.ts +204 -0
- package/dist/tooltip.js +242 -0
- package/dist/tour.cjs +418 -0
- package/dist/tour.d.cts +304 -0
- package/dist/tour.d.ts +304 -0
- package/dist/tour.js +374 -0
- package/dist/tree-view-CWH9tv7s.cjs +651 -0
- package/dist/tree-view-CZcXMwi6.js +508 -0
- package/dist/tree-view.cjs +41 -0
- package/dist/tree-view.d.cts +3 -0
- package/dist/tree-view.d.ts +3 -0
- package/dist/tree-view.js +3 -0
- package/dist/types-rSRkzyd6.d.cts +13 -0
- package/dist/types-rSRkzyd6.d.ts +13 -0
- package/dist/use-presence-BSp_dR-C.d.cts +22 -0
- package/dist/use-presence-CtEY6ZT8.cjs +49 -0
- package/dist/use-presence-DkGU_j9h.d.ts +22 -0
- package/dist/use-presence-oNdFU2c2.js +42 -0
- package/dist/utils-D95V66v9.js +548 -0
- package/dist/utils-XrBZd2Yk.cjs +625 -0
- package/package.json +278 -6
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { a as PolymorphicProps } from "./factory-BNwuanv4.js";
|
|
2
|
+
import { a as MaybePromise } from "./index-BSoF1D-v.js";
|
|
3
|
+
import { ButtonHTMLAttributes, MaybeRefOrGetter } from "vue";
|
|
4
|
+
import { FileMimeType } from "@wirekyt/dom/file-utils";
|
|
5
|
+
//#region src/components/download-trigger/use-download.d.ts
|
|
6
|
+
type DownloadableData = string | Blob | File;
|
|
7
|
+
interface UseDownloadProps {
|
|
8
|
+
fileName: string;
|
|
9
|
+
mimeType: FileMimeType;
|
|
10
|
+
data: DownloadableData | (() => MaybePromise<DownloadableData>);
|
|
11
|
+
}
|
|
12
|
+
interface UseDownloadReturn {
|
|
13
|
+
download: () => void;
|
|
14
|
+
}
|
|
15
|
+
declare const useDownload: (props: MaybeRefOrGetter<UseDownloadProps>) => UseDownloadReturn;
|
|
16
|
+
//#endregion
|
|
17
|
+
//#region src/components/download-trigger/download-trigger.vue.d.ts
|
|
18
|
+
interface DownloadTriggerBaseProps extends PolymorphicProps, UseDownloadProps {}
|
|
19
|
+
interface DownloadTriggerProps extends DownloadTriggerBaseProps,
|
|
20
|
+
/**
|
|
21
|
+
* @vue-ignore
|
|
22
|
+
*/
|
|
23
|
+
ButtonHTMLAttributes {}
|
|
24
|
+
declare const _default: typeof __VLS_export;
|
|
25
|
+
declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<DownloadTriggerProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<DownloadTriggerProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
26
|
+
default?: (props: {}) => any;
|
|
27
|
+
}>;
|
|
28
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
29
|
+
new (): {
|
|
30
|
+
$slots: S;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
//#endregion
|
|
34
|
+
export { _default as DownloadTrigger, type DownloadTriggerBaseProps, type DownloadTriggerProps, type DownloadableData, type UseDownloadProps, type UseDownloadReturn, useDownload };
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { d as useForwardExpose } from "./utils-D95V66v9.js";
|
|
2
|
+
import { d as useEnvironmentContext, u as DEFAULT_ENVIRONMENT } from "./providers-C3XQH-uu.js";
|
|
3
|
+
import { n as wire } from "./factory-8Ao0DEy3.js";
|
|
4
|
+
import { createBlock, defineComponent, openBlock, renderSlot, toValue, unref, withCtx } from "vue";
|
|
5
|
+
import { downloadFile } from "@wirekyt/dom/file-utils";
|
|
6
|
+
//#region src/components/download-trigger/use-download.ts
|
|
7
|
+
const useDownload = (props) => {
|
|
8
|
+
const env = useEnvironmentContext(DEFAULT_ENVIRONMENT);
|
|
9
|
+
const download = () => {
|
|
10
|
+
const { fileName, mimeType, data } = toValue(props);
|
|
11
|
+
const win = env?.value.getWindow() || window;
|
|
12
|
+
const saveToDisk = (value) => {
|
|
13
|
+
downloadFile({
|
|
14
|
+
file: value,
|
|
15
|
+
name: fileName,
|
|
16
|
+
type: mimeType,
|
|
17
|
+
win
|
|
18
|
+
});
|
|
19
|
+
};
|
|
20
|
+
if (typeof data === "function") {
|
|
21
|
+
const maybePromise = data();
|
|
22
|
+
if (maybePromise instanceof Promise) maybePromise.then(saveToDisk);
|
|
23
|
+
else saveToDisk(maybePromise);
|
|
24
|
+
} else saveToDisk(data);
|
|
25
|
+
};
|
|
26
|
+
return { download };
|
|
27
|
+
};
|
|
28
|
+
//#endregion
|
|
29
|
+
//#region src/components/download-trigger/download-trigger.vue
|
|
30
|
+
const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
31
|
+
__name: "download-trigger",
|
|
32
|
+
props: {
|
|
33
|
+
asChild: { type: Boolean },
|
|
34
|
+
fileName: {},
|
|
35
|
+
mimeType: {},
|
|
36
|
+
data: { type: [String, Function] }
|
|
37
|
+
},
|
|
38
|
+
setup(__props) {
|
|
39
|
+
const props = __props;
|
|
40
|
+
const { download } = useDownload(() => ({
|
|
41
|
+
fileName: props.fileName,
|
|
42
|
+
mimeType: props.mimeType,
|
|
43
|
+
data: props.data
|
|
44
|
+
}));
|
|
45
|
+
const handleClick = (e) => {
|
|
46
|
+
if (e.defaultPrevented) return;
|
|
47
|
+
download();
|
|
48
|
+
};
|
|
49
|
+
useForwardExpose();
|
|
50
|
+
return (_ctx, _cache) => {
|
|
51
|
+
return openBlock(), createBlock(unref(wire).button, {
|
|
52
|
+
"as-child": __props.asChild,
|
|
53
|
+
type: "button",
|
|
54
|
+
onClick: handleClick
|
|
55
|
+
}, {
|
|
56
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
57
|
+
_: 3
|
|
58
|
+
}, 8, ["as-child"]);
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
});
|
|
62
|
+
//#endregion
|
|
63
|
+
export { _sfc_main as DownloadTrigger, useDownload };
|
package/dist/drawer.cjs
ADDED
|
@@ -0,0 +1,448 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_rolldown_runtime = require("./rolldown-runtime-DakpK96I.cjs");
|
|
3
|
+
const require_utils = require("./utils-XrBZd2Yk.cjs");
|
|
4
|
+
const require_providers = require("./providers-5QhcwgSd.cjs");
|
|
5
|
+
const require_clean_props = require("./clean-props-MyKqus13.cjs");
|
|
6
|
+
const require_create_split_props = require("./create-split-props-Jx-IEwdk.cjs");
|
|
7
|
+
const require_factory = require("./factory-JL7MPjkk.cjs");
|
|
8
|
+
const require_presence = require("./presence-DD3l4Tgb.cjs");
|
|
9
|
+
const require_use_presence = require("./use-presence-CtEY6ZT8.cjs");
|
|
10
|
+
let vue = require("vue");
|
|
11
|
+
let _wirekyt_dom_machines_drawer = require("@wirekyt/dom/machines/drawer");
|
|
12
|
+
let _wirekyt_dom_machines_drawer$1 = require_rolldown_runtime.__toESM(_wirekyt_dom_machines_drawer, 1);
|
|
13
|
+
_wirekyt_dom_machines_drawer = require_rolldown_runtime.__toESM(_wirekyt_dom_machines_drawer);
|
|
14
|
+
let _wirekyt_dom = require("@wirekyt/dom");
|
|
15
|
+
//#region src/components/drawer/use-context.ts
|
|
16
|
+
const [DrawerProvider, useDrawerContext] = require_utils.createContext("DrawerContext");
|
|
17
|
+
//#endregion
|
|
18
|
+
//#region src/components/drawer/backdrop.vue
|
|
19
|
+
const _sfc_main = /*@__PURE__*/ (0, vue.defineComponent)({
|
|
20
|
+
__name: "backdrop",
|
|
21
|
+
props: { asChild: { type: Boolean } },
|
|
22
|
+
setup(__props) {
|
|
23
|
+
const drawer = useDrawerContext();
|
|
24
|
+
const renderStrategy = require_utils.useRenderStrategyProps();
|
|
25
|
+
const presence = require_use_presence.usePresence((0, vue.computed)(() => ({
|
|
26
|
+
...renderStrategy.value,
|
|
27
|
+
present: drawer.value.open
|
|
28
|
+
})));
|
|
29
|
+
const mergedProps = (0, vue.computed)(() => (0, _wirekyt_dom.mergeProps)(drawer.value.getBackdropProps(), presence.value.presenceProps));
|
|
30
|
+
require_utils.useForwardExpose();
|
|
31
|
+
return (_ctx, _cache) => {
|
|
32
|
+
return !(0, vue.unref)(presence).unmounted ? ((0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(require_factory.wire).div, (0, vue.mergeProps)({ key: 0 }, mergedProps.value, { "as-child": __props.asChild }), {
|
|
33
|
+
default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "default")]),
|
|
34
|
+
_: 3
|
|
35
|
+
}, 16, ["as-child"])) : (0, vue.createCommentVNode)("v-if", true);
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
});
|
|
39
|
+
//#endregion
|
|
40
|
+
//#region src/components/drawer/close-trigger.vue
|
|
41
|
+
const _sfc_main$1 = /*@__PURE__*/ (0, vue.defineComponent)({
|
|
42
|
+
__name: "close-trigger",
|
|
43
|
+
props: { asChild: { type: Boolean } },
|
|
44
|
+
setup(__props) {
|
|
45
|
+
const drawer = useDrawerContext();
|
|
46
|
+
require_utils.useForwardExpose();
|
|
47
|
+
return (_ctx, _cache) => {
|
|
48
|
+
return (0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(require_factory.wire).button, (0, vue.mergeProps)((0, vue.unref)(drawer).getCloseTriggerProps(), { "as-child": __props.asChild }), {
|
|
49
|
+
default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "default")]),
|
|
50
|
+
_: 3
|
|
51
|
+
}, 16, ["as-child"]);
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
});
|
|
55
|
+
//#endregion
|
|
56
|
+
//#region src/components/drawer/content.vue
|
|
57
|
+
const _sfc_main$2 = /*@__PURE__*/ (0, vue.defineComponent)({
|
|
58
|
+
__name: "content",
|
|
59
|
+
props: {
|
|
60
|
+
asChild: { type: Boolean },
|
|
61
|
+
draggable: {
|
|
62
|
+
type: Boolean,
|
|
63
|
+
default: true
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
setup(__props) {
|
|
67
|
+
const props = __props;
|
|
68
|
+
const [contentProps, localProps] = require_create_split_props.createSplitProps()(props, ["draggable"]);
|
|
69
|
+
const drawer = useDrawerContext();
|
|
70
|
+
const presence = require_presence.usePresenceContext();
|
|
71
|
+
const mergedProps = (0, vue.computed)(() => (0, _wirekyt_dom.mergeProps)(drawer.value.getContentProps({
|
|
72
|
+
draggable: true,
|
|
73
|
+
...contentProps
|
|
74
|
+
}), presence.value.presenceProps, localProps));
|
|
75
|
+
require_utils.useForwardExpose();
|
|
76
|
+
return (_ctx, _cache) => {
|
|
77
|
+
return !(0, vue.unref)(presence).unmounted ? ((0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(require_factory.wire).div, (0, vue.mergeProps)({ key: 0 }, mergedProps.value, { "as-child": __props.asChild }), {
|
|
78
|
+
default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "default")]),
|
|
79
|
+
_: 3
|
|
80
|
+
}, 16, ["as-child"])) : (0, vue.createCommentVNode)("v-if", true);
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
});
|
|
84
|
+
//#endregion
|
|
85
|
+
//#region src/components/drawer/description.vue
|
|
86
|
+
const _sfc_main$4 = /*@__PURE__*/ (0, vue.defineComponent)({
|
|
87
|
+
__name: "description",
|
|
88
|
+
props: { asChild: { type: Boolean } },
|
|
89
|
+
setup(__props) {
|
|
90
|
+
const drawer = useDrawerContext();
|
|
91
|
+
require_utils.useForwardExpose();
|
|
92
|
+
return (_ctx, _cache) => {
|
|
93
|
+
return (0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(require_factory.wire).div, (0, vue.mergeProps)((0, vue.unref)(drawer).getDescriptionProps(), { "as-child": __props.asChild }), {
|
|
94
|
+
default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "default")]),
|
|
95
|
+
_: 3
|
|
96
|
+
}, 16, ["as-child"]);
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
});
|
|
100
|
+
//#endregion
|
|
101
|
+
//#region src/components/drawer/context.vue
|
|
102
|
+
const _sfc_main$3 = /*@__PURE__*/ (0, vue.defineComponent)({
|
|
103
|
+
__name: "context",
|
|
104
|
+
setup(__props) {
|
|
105
|
+
const drawer = useDrawerContext();
|
|
106
|
+
return (_ctx, _cache) => {
|
|
107
|
+
return (0, vue.renderSlot)(_ctx.$slots, "default", (0, vue.normalizeProps)((0, vue.guardReactiveProps)((0, vue.unref)(drawer))));
|
|
108
|
+
};
|
|
109
|
+
}
|
|
110
|
+
});
|
|
111
|
+
//#endregion
|
|
112
|
+
//#region src/components/drawer/positioner.vue
|
|
113
|
+
const _sfc_main$9 = /*@__PURE__*/ (0, vue.defineComponent)({
|
|
114
|
+
__name: "positioner",
|
|
115
|
+
props: { asChild: { type: Boolean } },
|
|
116
|
+
setup(__props) {
|
|
117
|
+
const drawer = useDrawerContext();
|
|
118
|
+
const presence = require_presence.usePresenceContext();
|
|
119
|
+
require_utils.useForwardExpose();
|
|
120
|
+
return (_ctx, _cache) => {
|
|
121
|
+
return !(0, vue.unref)(presence).unmounted ? ((0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(require_factory.wire).div, (0, vue.mergeProps)({ key: 0 }, (0, vue.unref)(drawer).getPositionerProps(), { "as-child": __props.asChild }), {
|
|
122
|
+
default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "default")]),
|
|
123
|
+
_: 3
|
|
124
|
+
}, 16, ["as-child"])) : (0, vue.createCommentVNode)("v-if", true);
|
|
125
|
+
};
|
|
126
|
+
}
|
|
127
|
+
});
|
|
128
|
+
//#endregion
|
|
129
|
+
//#region src/components/drawer/grabber.vue
|
|
130
|
+
const _sfc_main$5 = /*@__PURE__*/ (0, vue.defineComponent)({
|
|
131
|
+
__name: "grabber",
|
|
132
|
+
props: { asChild: { type: Boolean } },
|
|
133
|
+
setup(__props) {
|
|
134
|
+
const drawer = useDrawerContext();
|
|
135
|
+
require_utils.useForwardExpose();
|
|
136
|
+
return (_ctx, _cache) => {
|
|
137
|
+
return (0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(require_factory.wire).div, (0, vue.mergeProps)((0, vue.unref)(drawer).getGrabberProps(), { "as-child": __props.asChild }), {
|
|
138
|
+
default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "default")]),
|
|
139
|
+
_: 3
|
|
140
|
+
}, 16, ["as-child"]);
|
|
141
|
+
};
|
|
142
|
+
}
|
|
143
|
+
});
|
|
144
|
+
//#endregion
|
|
145
|
+
//#region src/components/drawer/grabber-indicator.vue
|
|
146
|
+
const _sfc_main$6 = /*@__PURE__*/ (0, vue.defineComponent)({
|
|
147
|
+
__name: "grabber-indicator",
|
|
148
|
+
props: { asChild: { type: Boolean } },
|
|
149
|
+
setup(__props) {
|
|
150
|
+
const drawer = useDrawerContext();
|
|
151
|
+
require_utils.useForwardExpose();
|
|
152
|
+
return (_ctx, _cache) => {
|
|
153
|
+
return (0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(require_factory.wire).div, (0, vue.mergeProps)((0, vue.unref)(drawer).getGrabberIndicatorProps(), { "as-child": __props.asChild }), {
|
|
154
|
+
default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "default")]),
|
|
155
|
+
_: 3
|
|
156
|
+
}, 16, ["as-child"]);
|
|
157
|
+
};
|
|
158
|
+
}
|
|
159
|
+
});
|
|
160
|
+
//#endregion
|
|
161
|
+
//#region src/components/drawer/use-stack-context.ts
|
|
162
|
+
const [DrawerStackProvider, useDrawerStackContext] = require_utils.createContext("DrawerStackContext");
|
|
163
|
+
//#endregion
|
|
164
|
+
//#region src/components/drawer/indent.vue
|
|
165
|
+
const _sfc_main$7 = /*@__PURE__*/ (0, vue.defineComponent)({
|
|
166
|
+
__name: "indent",
|
|
167
|
+
props: { asChild: { type: Boolean } },
|
|
168
|
+
setup(__props) {
|
|
169
|
+
const stackApi = useDrawerStackContext();
|
|
170
|
+
require_utils.useForwardExpose();
|
|
171
|
+
return (_ctx, _cache) => {
|
|
172
|
+
return (0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(require_factory.wire).div, (0, vue.mergeProps)((0, vue.unref)(stackApi).getIndentProps(), { "as-child": __props.asChild }), {
|
|
173
|
+
default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "default")]),
|
|
174
|
+
_: 3
|
|
175
|
+
}, 16, ["as-child"]);
|
|
176
|
+
};
|
|
177
|
+
}
|
|
178
|
+
});
|
|
179
|
+
//#endregion
|
|
180
|
+
//#region src/components/drawer/indent-background.vue
|
|
181
|
+
const _sfc_main$8 = /*@__PURE__*/ (0, vue.defineComponent)({
|
|
182
|
+
__name: "indent-background",
|
|
183
|
+
props: { asChild: { type: Boolean } },
|
|
184
|
+
setup(__props) {
|
|
185
|
+
const stackApi = useDrawerStackContext();
|
|
186
|
+
require_utils.useForwardExpose();
|
|
187
|
+
return (_ctx, _cache) => {
|
|
188
|
+
return (0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(require_factory.wire).div, (0, vue.mergeProps)((0, vue.unref)(stackApi).getIndentBackgroundProps(), { "as-child": __props.asChild }), {
|
|
189
|
+
default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "default")]),
|
|
190
|
+
_: 3
|
|
191
|
+
}, 16, ["as-child"]);
|
|
192
|
+
};
|
|
193
|
+
}
|
|
194
|
+
});
|
|
195
|
+
//#endregion
|
|
196
|
+
//#region src/components/drawer/use-stack-store.ts
|
|
197
|
+
const DRAWER_STACK_STORE_KEY = Symbol("DrawerStackStore");
|
|
198
|
+
const provideDrawerStackStore = (stack) => (0, vue.provide)(DRAWER_STACK_STORE_KEY, stack);
|
|
199
|
+
const useDrawerStackStore = () => (0, vue.inject)(DRAWER_STACK_STORE_KEY, void 0);
|
|
200
|
+
//#endregion
|
|
201
|
+
//#region src/components/drawer/use-drawer.ts
|
|
202
|
+
const useDrawer = (props = {}, emit) => {
|
|
203
|
+
const id = (0, vue.useId)();
|
|
204
|
+
const env = require_providers.useEnvironmentContext(require_providers.DEFAULT_ENVIRONMENT);
|
|
205
|
+
const locale = require_providers.useLocaleContext(require_providers.DEFAULT_LOCALE);
|
|
206
|
+
const stack = useDrawerStackStore();
|
|
207
|
+
const context = (0, vue.computed)(() => {
|
|
208
|
+
const localeProps = (0, vue.toValue)(props);
|
|
209
|
+
return {
|
|
210
|
+
id,
|
|
211
|
+
dir: locale.value.dir,
|
|
212
|
+
getRootNode: env?.value.getRootNode,
|
|
213
|
+
stack,
|
|
214
|
+
...require_clean_props.cleanProps(localeProps),
|
|
215
|
+
onOpenChange: (details) => {
|
|
216
|
+
emit?.("openChange", details);
|
|
217
|
+
localeProps.onOpenChange?.(details);
|
|
218
|
+
},
|
|
219
|
+
onTriggerValueChange: (details) => {
|
|
220
|
+
emit?.("triggerValueChange", details);
|
|
221
|
+
localeProps.onTriggerValueChange?.(details);
|
|
222
|
+
},
|
|
223
|
+
onSnapPointChange: (details) => {
|
|
224
|
+
emit?.("snapPointChange", details);
|
|
225
|
+
localeProps.onSnapPointChange?.(details);
|
|
226
|
+
}
|
|
227
|
+
};
|
|
228
|
+
});
|
|
229
|
+
const service = require_utils.useMachine(_wirekyt_dom_machines_drawer$1.machine, context);
|
|
230
|
+
return (0, vue.computed)(() => _wirekyt_dom_machines_drawer$1.connect(service, require_utils.normalizeProps));
|
|
231
|
+
};
|
|
232
|
+
//#endregion
|
|
233
|
+
//#region src/components/drawer/root.vue
|
|
234
|
+
const _sfc_main$10 = /*@__PURE__*/ (0, vue.defineComponent)({
|
|
235
|
+
__name: "root",
|
|
236
|
+
props: /*@__PURE__*/ (0, vue.mergeDefaults)({
|
|
237
|
+
id: {},
|
|
238
|
+
ids: {},
|
|
239
|
+
trapFocus: { type: Boolean },
|
|
240
|
+
preventScroll: { type: Boolean },
|
|
241
|
+
modal: { type: Boolean },
|
|
242
|
+
initialFocusEl: { type: Function },
|
|
243
|
+
finalFocusEl: { type: Function },
|
|
244
|
+
restoreFocus: { type: Boolean },
|
|
245
|
+
role: {},
|
|
246
|
+
open: { type: Boolean },
|
|
247
|
+
defaultOpen: { type: Boolean },
|
|
248
|
+
closeOnInteractOutside: { type: Boolean },
|
|
249
|
+
closeOnEscape: { type: Boolean },
|
|
250
|
+
snapPoints: {},
|
|
251
|
+
swipeDirection: {},
|
|
252
|
+
snapToSequentialPoints: { type: Boolean },
|
|
253
|
+
swipeVelocityThreshold: {},
|
|
254
|
+
closeThreshold: {},
|
|
255
|
+
preventDragOnScroll: { type: Boolean },
|
|
256
|
+
snapPoint: {},
|
|
257
|
+
defaultSnapPoint: {},
|
|
258
|
+
triggerValue: {},
|
|
259
|
+
defaultTriggerValue: {},
|
|
260
|
+
lazyMount: { type: Boolean },
|
|
261
|
+
unmountOnExit: { type: Boolean }
|
|
262
|
+
}, {
|
|
263
|
+
closeOnEscape: void 0,
|
|
264
|
+
closeOnInteractOutside: void 0,
|
|
265
|
+
defaultOpen: void 0,
|
|
266
|
+
modal: void 0,
|
|
267
|
+
open: void 0,
|
|
268
|
+
preventScroll: void 0,
|
|
269
|
+
restoreFocus: void 0,
|
|
270
|
+
snapToSequentialPoints: void 0,
|
|
271
|
+
trapFocus: void 0,
|
|
272
|
+
preventDragOnScroll: void 0
|
|
273
|
+
}),
|
|
274
|
+
emits: [
|
|
275
|
+
"openChange",
|
|
276
|
+
"snapPointChange",
|
|
277
|
+
"triggerValueChange"
|
|
278
|
+
],
|
|
279
|
+
setup(__props, { emit: __emit }) {
|
|
280
|
+
const props = __props;
|
|
281
|
+
const drawer = useDrawer(props, __emit);
|
|
282
|
+
DrawerProvider(drawer);
|
|
283
|
+
require_utils.RenderStrategyPropsProvider((0, vue.computed)(() => ({
|
|
284
|
+
lazyMount: props.lazyMount,
|
|
285
|
+
unmountOnExit: props.unmountOnExit
|
|
286
|
+
})));
|
|
287
|
+
require_presence.PresenceProvider(require_use_presence.usePresence((0, vue.computed)(() => ({
|
|
288
|
+
present: drawer.value.open,
|
|
289
|
+
lazyMount: props.lazyMount,
|
|
290
|
+
unmountOnExit: props.unmountOnExit
|
|
291
|
+
}))));
|
|
292
|
+
require_utils.useForwardExpose();
|
|
293
|
+
return (_ctx, _cache) => {
|
|
294
|
+
return (0, vue.renderSlot)(_ctx.$slots, "default");
|
|
295
|
+
};
|
|
296
|
+
}
|
|
297
|
+
});
|
|
298
|
+
//#endregion
|
|
299
|
+
//#region src/components/drawer/root-provider.vue
|
|
300
|
+
const _sfc_main$11 = /*@__PURE__*/ (0, vue.defineComponent)({
|
|
301
|
+
__name: "root-provider",
|
|
302
|
+
props: {
|
|
303
|
+
value: {},
|
|
304
|
+
lazyMount: { type: Boolean },
|
|
305
|
+
unmountOnExit: { type: Boolean }
|
|
306
|
+
},
|
|
307
|
+
setup(__props) {
|
|
308
|
+
const props = __props;
|
|
309
|
+
const drawer = (0, vue.computed)(() => props.value);
|
|
310
|
+
DrawerProvider(drawer);
|
|
311
|
+
require_utils.RenderStrategyPropsProvider((0, vue.computed)(() => ({
|
|
312
|
+
lazyMount: props.lazyMount,
|
|
313
|
+
unmountOnExit: props.unmountOnExit
|
|
314
|
+
})));
|
|
315
|
+
require_presence.PresenceProvider(require_use_presence.usePresence((0, vue.computed)(() => ({ present: drawer.value.open }))));
|
|
316
|
+
require_utils.useForwardExpose();
|
|
317
|
+
return (_ctx, _cache) => {
|
|
318
|
+
return (0, vue.renderSlot)(_ctx.$slots, "default");
|
|
319
|
+
};
|
|
320
|
+
}
|
|
321
|
+
});
|
|
322
|
+
//#endregion
|
|
323
|
+
//#region src/components/drawer/stack.vue
|
|
324
|
+
const _sfc_main$12 = /*@__PURE__*/ (0, vue.defineComponent)({
|
|
325
|
+
__name: "stack",
|
|
326
|
+
setup(__props) {
|
|
327
|
+
const stack = _wirekyt_dom_machines_drawer.createStack();
|
|
328
|
+
provideDrawerStackStore(stack);
|
|
329
|
+
const snapshot = (0, vue.ref)(stack.getSnapshot());
|
|
330
|
+
let unsubscribe;
|
|
331
|
+
(0, vue.onMounted)(() => {
|
|
332
|
+
unsubscribe = stack.subscribe(() => {
|
|
333
|
+
snapshot.value = stack.getSnapshot();
|
|
334
|
+
});
|
|
335
|
+
});
|
|
336
|
+
(0, vue.onUnmounted)(() => {
|
|
337
|
+
unsubscribe?.();
|
|
338
|
+
});
|
|
339
|
+
DrawerStackProvider((0, vue.computed)(() => _wirekyt_dom_machines_drawer.connectStack(snapshot.value, require_utils.normalizeProps)));
|
|
340
|
+
return (_ctx, _cache) => {
|
|
341
|
+
return (0, vue.renderSlot)(_ctx.$slots, "default");
|
|
342
|
+
};
|
|
343
|
+
}
|
|
344
|
+
});
|
|
345
|
+
//#endregion
|
|
346
|
+
//#region src/components/drawer/swipe-area.vue
|
|
347
|
+
const _sfc_main$13 = /*@__PURE__*/ (0, vue.defineComponent)({
|
|
348
|
+
__name: "swipe-area",
|
|
349
|
+
props: { asChild: { type: Boolean } },
|
|
350
|
+
setup(__props) {
|
|
351
|
+
const drawer = useDrawerContext();
|
|
352
|
+
require_utils.useForwardExpose();
|
|
353
|
+
return (_ctx, _cache) => {
|
|
354
|
+
return (0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(require_factory.wire).div, (0, vue.mergeProps)((0, vue.unref)(drawer).getSwipeAreaProps(), { "as-child": __props.asChild }), {
|
|
355
|
+
default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "default")]),
|
|
356
|
+
_: 3
|
|
357
|
+
}, 16, ["as-child"]);
|
|
358
|
+
};
|
|
359
|
+
}
|
|
360
|
+
});
|
|
361
|
+
//#endregion
|
|
362
|
+
//#region src/components/drawer/title.vue
|
|
363
|
+
const _sfc_main$14 = /*@__PURE__*/ (0, vue.defineComponent)({
|
|
364
|
+
__name: "title",
|
|
365
|
+
props: { asChild: { type: Boolean } },
|
|
366
|
+
setup(__props) {
|
|
367
|
+
const drawer = useDrawerContext();
|
|
368
|
+
require_utils.useForwardExpose();
|
|
369
|
+
return (_ctx, _cache) => {
|
|
370
|
+
return (0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(require_factory.wire).h2, (0, vue.mergeProps)((0, vue.unref)(drawer).getTitleProps(), { "as-child": __props.asChild }), {
|
|
371
|
+
default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "default")]),
|
|
372
|
+
_: 3
|
|
373
|
+
}, 16, ["as-child"]);
|
|
374
|
+
};
|
|
375
|
+
}
|
|
376
|
+
});
|
|
377
|
+
//#endregion
|
|
378
|
+
//#region src/components/drawer/trigger.vue
|
|
379
|
+
const _sfc_main$15 = /*@__PURE__*/ (0, vue.defineComponent)({
|
|
380
|
+
__name: "trigger",
|
|
381
|
+
props: {
|
|
382
|
+
value: {},
|
|
383
|
+
asChild: { type: Boolean }
|
|
384
|
+
},
|
|
385
|
+
setup(__props) {
|
|
386
|
+
const props = __props;
|
|
387
|
+
const drawer = useDrawerContext();
|
|
388
|
+
require_utils.useForwardExpose();
|
|
389
|
+
return (_ctx, _cache) => {
|
|
390
|
+
return (0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(require_factory.wire).button, (0, vue.mergeProps)((0, vue.unref)(drawer).getTriggerProps(props), { "as-child": __props.asChild }), {
|
|
391
|
+
default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "default")]),
|
|
392
|
+
_: 3
|
|
393
|
+
}, 16, ["as-child"]);
|
|
394
|
+
};
|
|
395
|
+
}
|
|
396
|
+
});
|
|
397
|
+
//#endregion
|
|
398
|
+
//#region src/components/drawer/drawer.ts
|
|
399
|
+
var drawer_exports = /* @__PURE__ */ require_rolldown_runtime.__exportAll({
|
|
400
|
+
Backdrop: () => _sfc_main,
|
|
401
|
+
CloseTrigger: () => _sfc_main$1,
|
|
402
|
+
Content: () => _sfc_main$2,
|
|
403
|
+
Context: () => _sfc_main$3,
|
|
404
|
+
Description: () => _sfc_main$4,
|
|
405
|
+
Grabber: () => _sfc_main$5,
|
|
406
|
+
GrabberIndicator: () => _sfc_main$6,
|
|
407
|
+
Indent: () => _sfc_main$7,
|
|
408
|
+
IndentBackground: () => _sfc_main$8,
|
|
409
|
+
Positioner: () => _sfc_main$9,
|
|
410
|
+
Root: () => _sfc_main$10,
|
|
411
|
+
RootProvider: () => _sfc_main$11,
|
|
412
|
+
Stack: () => _sfc_main$12,
|
|
413
|
+
SwipeArea: () => _sfc_main$13,
|
|
414
|
+
Title: () => _sfc_main$14,
|
|
415
|
+
Trigger: () => _sfc_main$15
|
|
416
|
+
});
|
|
417
|
+
//#endregion
|
|
418
|
+
Object.defineProperty(exports, "Drawer", {
|
|
419
|
+
enumerable: true,
|
|
420
|
+
get: function() {
|
|
421
|
+
return drawer_exports;
|
|
422
|
+
}
|
|
423
|
+
});
|
|
424
|
+
exports.DrawerBackdrop = _sfc_main;
|
|
425
|
+
exports.DrawerCloseTrigger = _sfc_main$1;
|
|
426
|
+
exports.DrawerContent = _sfc_main$2;
|
|
427
|
+
exports.DrawerContext = _sfc_main$3;
|
|
428
|
+
exports.DrawerDescription = _sfc_main$4;
|
|
429
|
+
exports.DrawerGrabber = _sfc_main$5;
|
|
430
|
+
exports.DrawerGrabberIndicator = _sfc_main$6;
|
|
431
|
+
exports.DrawerIndent = _sfc_main$7;
|
|
432
|
+
exports.DrawerIndentBackground = _sfc_main$8;
|
|
433
|
+
exports.DrawerPositioner = _sfc_main$9;
|
|
434
|
+
exports.DrawerRoot = _sfc_main$10;
|
|
435
|
+
exports.DrawerRootProvider = _sfc_main$11;
|
|
436
|
+
exports.DrawerStack = _sfc_main$12;
|
|
437
|
+
exports.DrawerSwipeArea = _sfc_main$13;
|
|
438
|
+
exports.DrawerTitle = _sfc_main$14;
|
|
439
|
+
exports.DrawerTrigger = _sfc_main$15;
|
|
440
|
+
Object.defineProperty(exports, "drawerAnatomy", {
|
|
441
|
+
enumerable: true,
|
|
442
|
+
get: function() {
|
|
443
|
+
return _wirekyt_dom_machines_drawer.anatomy;
|
|
444
|
+
}
|
|
445
|
+
});
|
|
446
|
+
exports.useDrawer = useDrawer;
|
|
447
|
+
exports.useDrawerContext = useDrawerContext;
|
|
448
|
+
exports.useDrawerStackContext = useDrawerStackContext;
|