arvue-ui 0.1.0 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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 +7 -5
- package/dist/dialog/dialogDescription.js.map +1 -1
- package/dist/dialog/dialogFooter.js +16 -10
- package/dist/dialog/dialogFooter.js.map +1 -1
- package/dist/dialog/dialogHeader.js +16 -10
- package/dist/dialog/dialogHeader.js.map +1 -1
- package/dist/dialog/dialogOverlay.js +1 -1
- package/dist/dialog/dialogTitle.js +7 -5
- package/dist/dialog/dialogTitle.js.map +1 -1
- package/dist/drawer/drawer.js +32 -0
- package/dist/drawer/drawer.js.map +1 -0
- package/dist/drawer/drawerClose.js +23 -0
- package/dist/drawer/drawerClose.js.map +1 -0
- package/dist/drawer/drawerContent.js +108 -0
- package/dist/drawer/drawerContent.js.map +1 -0
- package/dist/drawer/drawerDescription.js +33 -0
- package/dist/drawer/drawerDescription.js.map +1 -0
- package/dist/drawer/drawerFooter.js +33 -0
- package/dist/drawer/drawerFooter.js.map +1 -0
- package/dist/drawer/drawerHeader.js +33 -0
- package/dist/drawer/drawerHeader.js.map +1 -0
- package/dist/drawer/drawerOverlay.js +34 -0
- package/dist/drawer/drawerOverlay.js.map +1 -0
- package/dist/drawer/drawerTitle.js +33 -0
- package/dist/drawer/drawerTitle.js.map +1 -0
- package/dist/drawer/drawerTrigger.js +23 -0
- package/dist/drawer/drawerTrigger.js.map +1 -0
- package/dist/index.d.ts +577 -31
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1109 -125
- 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 +36 -0
- package/package.json +10 -4
- 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/DialogDescription.vue +13 -5
- package/src/dialog/DialogFooter.vue +9 -2
- package/src/dialog/DialogHeader.vue +9 -2
- package/src/dialog/DialogTitle.vue +13 -5
- package/src/dialog/dialog-content.css +1 -1
- package/src/dialog/dialog-description.css +2 -0
- package/src/dialog/dialog-overlay.css +1 -1
- package/src/dialog/dialog-title.css +1 -3
- package/src/drawer/Drawer.vue +27 -0
- package/src/drawer/DrawerClose.vue +19 -0
- package/src/drawer/DrawerContent.vue +99 -0
- package/src/drawer/DrawerDescription.vue +33 -0
- package/src/drawer/DrawerFooter.vue +31 -0
- package/src/drawer/DrawerHeader.vue +31 -0
- package/src/drawer/DrawerOverlay.vue +31 -0
- package/src/drawer/DrawerTitle.vue +33 -0
- package/src/drawer/DrawerTrigger.vue +17 -0
- package/src/drawer/drawer-content.css +68 -0
- package/src/drawer/drawer-description.css +5 -0
- package/src/drawer/drawer-footer.css +11 -0
- package/src/drawer/drawer-header.css +6 -0
- package/src/drawer/drawer-overlay.css +12 -0
- package/src/drawer/drawer-title.css +3 -0
- package/src/drawer/index.ts +38 -0
- package/src/index.ts +3 -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
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { clsx } from "../clsx.js";
|
|
2
|
-
import { createBlock, defineComponent,
|
|
3
|
-
import {
|
|
2
|
+
import { createBlock, defineComponent, mergeProps, openBlock, renderSlot, unref, withCtx } from "vue";
|
|
3
|
+
import { reactiveOmit } from "@vueuse/core";
|
|
4
|
+
import { DialogDescription } from "reka-ui";
|
|
4
5
|
//#region src/dialog/DialogDescription.vue
|
|
5
6
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
6
7
|
__name: "DialogDescription",
|
|
@@ -13,15 +14,16 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
13
14
|
Array
|
|
14
15
|
] },
|
|
15
16
|
asChild: { type: Boolean },
|
|
16
|
-
as: {}
|
|
17
|
+
as: { default: "p" }
|
|
17
18
|
},
|
|
18
19
|
setup(__props) {
|
|
19
20
|
const props = __props;
|
|
21
|
+
const delegatedProps = reactiveOmit(props, "class");
|
|
20
22
|
return (_ctx, _cache) => {
|
|
21
|
-
return openBlock(), createBlock(unref(
|
|
23
|
+
return openBlock(), createBlock(unref(DialogDescription), mergeProps({ class: unref(clsx)("arvue-dialog-description", props.class) }, unref(delegatedProps)), {
|
|
22
24
|
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
23
25
|
_: 3
|
|
24
|
-
},
|
|
26
|
+
}, 16, ["class"]);
|
|
25
27
|
};
|
|
26
28
|
}
|
|
27
29
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dialogDescription.js","names":[],"sources":["../../src/dialog/DialogDescription.vue"],"sourcesContent":["<style>\n@import \"./dialog-description.css\";\n</style>\n\n<template>\n <
|
|
1
|
+
{"version":3,"file":"dialogDescription.js","names":[],"sources":["../../src/dialog/DialogDescription.vue"],"sourcesContent":["<style>\n@import \"./dialog-description.css\";\n</style>\n\n<template>\n <DialogDescription\n :class=\"clsx('arvue-dialog-description', props.class)\"\n v-bind=\"delegatedProps\"\n >\n <slot/>\n </DialogDescription>\n</template>\n\n<script lang=\"ts\">\nimport type { DialogDescriptionProps as RekaDialogDescriptionProps } from 'reka-ui'\nimport type { HTMLAttributes } from 'vue'\n\nexport interface DialogDescriptionProps extends RekaDialogDescriptionProps {\n class?: HTMLAttributes['class']\n}\n</script>\n\n<script setup lang=\"ts\">\nimport { reactiveOmit } from '@vueuse/core'\nimport { clsx } from 'clsx'\nimport { DialogDescription } from 'reka-ui'\n\nconst props = withDefaults(defineProps<DialogDescriptionProps>(), {\n as: 'p',\n})\n\nconst delegatedProps = reactiveOmit(props, 'class')\n</script>\n"],"mappings":";;;;;;;;;;;;;;;;;;;EA2BA,MAAM,QAAQ;EAId,MAAM,iBAAiB,aAAa,OAAO,OAAO;;uBA1B9C,YAKoB,MAAA,iBAAA,GALpB,WAKoB,EAJf,OAAO,MAAA,IAAA,EAAI,4BAA6B,MAAM,KAAK,EAAA,GAC5C,MAAA,cAAA,CAAc,GAAA;2BAEf,CAAP,WAAO,KAAA,QAAA,SAAA,CAAA,CAAA"}
|
|
@@ -1,23 +1,29 @@
|
|
|
1
1
|
import { clsx } from "../clsx.js";
|
|
2
|
-
import { createBlock, defineComponent,
|
|
2
|
+
import { createBlock, defineComponent, mergeProps, openBlock, renderSlot, unref, withCtx } from "vue";
|
|
3
|
+
import { reactiveOmit } from "@vueuse/core";
|
|
3
4
|
import { Primitive } from "reka-ui";
|
|
4
5
|
//#region src/dialog/DialogFooter.vue
|
|
5
6
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
6
7
|
__name: "DialogFooter",
|
|
7
|
-
props: {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
8
|
+
props: {
|
|
9
|
+
class: { type: [
|
|
10
|
+
Boolean,
|
|
11
|
+
null,
|
|
12
|
+
String,
|
|
13
|
+
Object,
|
|
14
|
+
Array
|
|
15
|
+
] },
|
|
16
|
+
asChild: { type: Boolean },
|
|
17
|
+
as: {}
|
|
18
|
+
},
|
|
14
19
|
setup(__props) {
|
|
15
20
|
const props = __props;
|
|
21
|
+
const delegatedProps = reactiveOmit(props, "class");
|
|
16
22
|
return (_ctx, _cache) => {
|
|
17
|
-
return openBlock(), createBlock(unref(Primitive), { class:
|
|
23
|
+
return openBlock(), createBlock(unref(Primitive), mergeProps({ class: unref(clsx)("arvue-dialog-footer", props.class) }, unref(delegatedProps)), {
|
|
18
24
|
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
19
25
|
_: 3
|
|
20
|
-
},
|
|
26
|
+
}, 16, ["class"]);
|
|
21
27
|
};
|
|
22
28
|
}
|
|
23
29
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dialogFooter.js","names":[],"sources":["../../src/dialog/DialogFooter.vue"],"sourcesContent":["<style>\n@import \"./dialog-footer.css\";\n</style>\n\n<template>\n <Primitive
|
|
1
|
+
{"version":3,"file":"dialogFooter.js","names":[],"sources":["../../src/dialog/DialogFooter.vue"],"sourcesContent":["<style>\n@import \"./dialog-footer.css\";\n</style>\n\n<template>\n <Primitive\n :class=\"clsx('arvue-dialog-footer', props.class)\"\n v-bind=\"delegatedProps\"\n >\n <slot/>\n </Primitive>\n</template>\n\n<script lang=\"ts\">\nimport type { PrimitiveProps } from 'reka-ui'\nimport type { HTMLAttributes } from 'vue'\n\nexport interface DialogFooterProps extends PrimitiveProps {\n class?: HTMLAttributes['class']\n}\n</script>\n\n<script setup lang=\"ts\">\nimport { reactiveOmit } from '@vueuse/core'\nimport { clsx } from 'clsx'\nimport { Primitive } from 'reka-ui'\n\nconst props = defineProps<DialogFooterProps>()\n\nconst delegatedProps = reactiveOmit(props, 'class')\n</script>\n"],"mappings":";;;;;;;;;;;;;;;;;;;EA2BA,MAAM,QAAQ;EAEd,MAAM,iBAAiB,aAAa,OAAO,OAAO;;uBAxB9C,YAKY,MAAA,SAAA,GALZ,WAKY,EAJP,OAAO,MAAA,IAAA,EAAI,uBAAwB,MAAM,KAAK,EAAA,GACvC,MAAA,cAAA,CAAc,GAAA;2BAEf,CAAP,WAAO,KAAA,QAAA,SAAA,CAAA,CAAA"}
|
|
@@ -1,23 +1,29 @@
|
|
|
1
1
|
import { clsx } from "../clsx.js";
|
|
2
|
-
import { createBlock, defineComponent,
|
|
2
|
+
import { createBlock, defineComponent, mergeProps, openBlock, renderSlot, unref, withCtx } from "vue";
|
|
3
|
+
import { reactiveOmit } from "@vueuse/core";
|
|
3
4
|
import { Primitive } from "reka-ui";
|
|
4
5
|
//#region src/dialog/DialogHeader.vue
|
|
5
6
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
6
7
|
__name: "DialogHeader",
|
|
7
|
-
props: {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
8
|
+
props: {
|
|
9
|
+
class: { type: [
|
|
10
|
+
Boolean,
|
|
11
|
+
null,
|
|
12
|
+
String,
|
|
13
|
+
Object,
|
|
14
|
+
Array
|
|
15
|
+
] },
|
|
16
|
+
asChild: { type: Boolean },
|
|
17
|
+
as: {}
|
|
18
|
+
},
|
|
14
19
|
setup(__props) {
|
|
15
20
|
const props = __props;
|
|
21
|
+
const delegatedProps = reactiveOmit(props, "class");
|
|
16
22
|
return (_ctx, _cache) => {
|
|
17
|
-
return openBlock(), createBlock(unref(Primitive), { class:
|
|
23
|
+
return openBlock(), createBlock(unref(Primitive), mergeProps({ class: unref(clsx)("arvue-dialog-header", props.class) }, unref(delegatedProps)), {
|
|
18
24
|
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
19
25
|
_: 3
|
|
20
|
-
},
|
|
26
|
+
}, 16, ["class"]);
|
|
21
27
|
};
|
|
22
28
|
}
|
|
23
29
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dialogHeader.js","names":[],"sources":["../../src/dialog/DialogHeader.vue"],"sourcesContent":["<style>\n@import \"./dialog-header.css\";\n</style>\n\n<template>\n <Primitive
|
|
1
|
+
{"version":3,"file":"dialogHeader.js","names":[],"sources":["../../src/dialog/DialogHeader.vue"],"sourcesContent":["<style>\n@import \"./dialog-header.css\";\n</style>\n\n<template>\n <Primitive\n :class=\"clsx('arvue-dialog-header', props.class)\"\n v-bind=\"delegatedProps\"\n >\n <slot/>\n </Primitive>\n</template>\n\n<script lang=\"ts\">\nimport type { PrimitiveProps } from 'reka-ui'\nimport type { HTMLAttributes } from 'vue'\n\nexport interface DialogHeaderProps extends PrimitiveProps {\n class?: HTMLAttributes['class']\n}\n</script>\n\n<script setup lang=\"ts\">\nimport { reactiveOmit } from '@vueuse/core'\nimport { clsx } from 'clsx'\nimport { Primitive } from 'reka-ui'\n\nconst props = defineProps<DialogHeaderProps>()\n\nconst delegatedProps = reactiveOmit(props, 'class')\n</script>\n"],"mappings":";;;;;;;;;;;;;;;;;;;EA2BA,MAAM,QAAQ;EAEd,MAAM,iBAAiB,aAAa,OAAO,OAAO;;uBAxB9C,YAKY,MAAA,SAAA,GALZ,WAKY,EAJP,OAAO,MAAA,IAAA,EAAI,uBAAwB,MAAM,KAAK,EAAA,GACvC,MAAA,cAAA,CAAc,GAAA;2BAEf,CAAP,WAAO,KAAA,QAAA,SAAA,CAAA,CAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { clsx } from "../clsx.js";
|
|
2
2
|
import { createBlock, defineComponent, mergeProps, openBlock, renderSlot, unref, withCtx } from "vue";
|
|
3
|
-
import { DialogOverlay } from "reka-ui";
|
|
4
3
|
import { reactiveOmit } from "@vueuse/core";
|
|
4
|
+
import { DialogOverlay } from "reka-ui";
|
|
5
5
|
//#region src/dialog/DialogOverlay.vue
|
|
6
6
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
7
7
|
__name: "DialogOverlay",
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { clsx } from "../clsx.js";
|
|
2
|
-
import { createBlock, defineComponent,
|
|
3
|
-
import {
|
|
2
|
+
import { createBlock, defineComponent, mergeProps, openBlock, renderSlot, unref, withCtx } from "vue";
|
|
3
|
+
import { reactiveOmit } from "@vueuse/core";
|
|
4
|
+
import { DialogTitle } from "reka-ui";
|
|
4
5
|
//#region src/dialog/DialogTitle.vue
|
|
5
6
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
6
7
|
__name: "DialogTitle",
|
|
@@ -13,15 +14,16 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
13
14
|
Array
|
|
14
15
|
] },
|
|
15
16
|
asChild: { type: Boolean },
|
|
16
|
-
as: {}
|
|
17
|
+
as: { default: "h3" }
|
|
17
18
|
},
|
|
18
19
|
setup(__props) {
|
|
19
20
|
const props = __props;
|
|
21
|
+
const delegatedProps = reactiveOmit(props, "class");
|
|
20
22
|
return (_ctx, _cache) => {
|
|
21
|
-
return openBlock(), createBlock(unref(
|
|
23
|
+
return openBlock(), createBlock(unref(DialogTitle), mergeProps({ class: unref(clsx)("arvue-dialog-title", props.class) }, unref(delegatedProps)), {
|
|
22
24
|
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
23
25
|
_: 3
|
|
24
|
-
},
|
|
26
|
+
}, 16, ["class"]);
|
|
25
27
|
};
|
|
26
28
|
}
|
|
27
29
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dialogTitle.js","names":[],"sources":["../../src/dialog/DialogTitle.vue"],"sourcesContent":["<style>\n@import \"./dialog-title.css\";\n</style>\n\n<template>\n <
|
|
1
|
+
{"version":3,"file":"dialogTitle.js","names":[],"sources":["../../src/dialog/DialogTitle.vue"],"sourcesContent":["<style>\n@import \"./dialog-title.css\";\n</style>\n\n<template>\n <DialogTitle\n :class=\"clsx('arvue-dialog-title', props.class)\"\n v-bind=\"delegatedProps\"\n >\n <slot/>\n </DialogTitle>\n</template>\n\n<script lang=\"ts\">\nimport type { DialogTitleProps as RekaDialogTitleProps } from 'reka-ui'\nimport type { HTMLAttributes } from 'vue'\n\nexport interface DialogTitleProps extends RekaDialogTitleProps {\n class?: HTMLAttributes['class']\n}\n</script>\n\n<script setup lang=\"ts\">\nimport { reactiveOmit } from '@vueuse/core'\nimport { clsx } from 'clsx'\nimport { DialogTitle } from 'reka-ui'\n\nconst props = withDefaults(defineProps<DialogTitleProps>(), {\n as: 'h3',\n})\n\nconst delegatedProps = reactiveOmit(props, 'class')\n</script>\n"],"mappings":";;;;;;;;;;;;;;;;;;;EA2BA,MAAM,QAAQ;EAId,MAAM,iBAAiB,aAAa,OAAO,OAAO;;uBA1B9C,YAKc,MAAA,WAAA,GALd,WAKc,EAJT,OAAO,MAAA,IAAA,EAAI,sBAAuB,MAAM,KAAK,EAAA,GACtC,MAAA,cAAA,CAAc,GAAA;2BAEf,CAAP,WAAO,KAAA,QAAA,SAAA,CAAA,CAAA"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { createBlock, defineComponent, guardReactiveProps, normalizeProps, openBlock, renderSlot, unref, withCtx } from "vue";
|
|
2
|
+
import { DialogRoot, useForwardPropsEmits } from "reka-ui";
|
|
3
|
+
//#region src/drawer/Drawer.vue
|
|
4
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
5
|
+
__name: "Drawer",
|
|
6
|
+
props: {
|
|
7
|
+
class: { type: [
|
|
8
|
+
Boolean,
|
|
9
|
+
null,
|
|
10
|
+
String,
|
|
11
|
+
Object,
|
|
12
|
+
Array
|
|
13
|
+
] },
|
|
14
|
+
open: { type: Boolean },
|
|
15
|
+
defaultOpen: { type: Boolean },
|
|
16
|
+
modal: { type: Boolean }
|
|
17
|
+
},
|
|
18
|
+
emits: ["update:open"],
|
|
19
|
+
setup(__props, { emit: __emit }) {
|
|
20
|
+
const forwarded = useForwardPropsEmits(__props, __emit);
|
|
21
|
+
return (_ctx, _cache) => {
|
|
22
|
+
return openBlock(), createBlock(unref(DialogRoot), normalizeProps(guardReactiveProps(unref(forwarded))), {
|
|
23
|
+
default: withCtx((slotProps) => [renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(slotProps)))]),
|
|
24
|
+
_: 3
|
|
25
|
+
}, 16);
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
});
|
|
29
|
+
//#endregion
|
|
30
|
+
export { _sfc_main };
|
|
31
|
+
|
|
32
|
+
//# sourceMappingURL=drawer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"drawer.js","names":[],"sources":["../../src/drawer/Drawer.vue"],"sourcesContent":["<template>\n <DialogRoot\n v-slot=\"slotProps\"\n v-bind=\"forwarded\"\n >\n <slot v-bind=\"slotProps\"/>\n </DialogRoot>\n</template>\n\n<script lang=\"ts\">\nimport type { DialogRootEmits, DialogRootProps } from 'reka-ui'\nimport type { HTMLAttributes } from 'vue'\n\nexport interface DrawerProps extends DialogRootProps {\n class?: HTMLAttributes['class']\n}\nexport interface DrawerEmits extends DialogRootEmits {}\n</script>\n\n<script setup lang=\"ts\">\nimport { DialogRoot, useForwardPropsEmits } from 'reka-ui'\n\nconst props = defineProps<DrawerProps>()\nconst emits = defineEmits<DrawerEmits>()\n\nconst forwarded = useForwardPropsEmits(props, emits)\n</script>\n"],"mappings":";;;;;;;;;;;;;;;;;;;EAyBA,MAAM,YAAY,qBAAqB,SAAO,MAAK;;uBAxB/C,YAKa,MAAA,UAAA,GAAA,eAAA,mBAHD,MAAA,SAAA,CAAS,CAAA,GAAA;sBADT,cAAS,CAGjB,WAA0B,KAAA,QAAA,WAAA,eAAA,mBAAZ,SAAS,CAAA,CAAA,CAAA,CAAA"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { createBlock, defineComponent, guardReactiveProps, normalizeProps, openBlock, renderSlot, unref, withCtx } from "vue";
|
|
2
|
+
import { DialogClose } from "reka-ui";
|
|
3
|
+
//#region src/drawer/DrawerClose.vue
|
|
4
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
5
|
+
__name: "DrawerClose",
|
|
6
|
+
props: {
|
|
7
|
+
asChild: { type: Boolean },
|
|
8
|
+
as: { default: "a" }
|
|
9
|
+
},
|
|
10
|
+
setup(__props) {
|
|
11
|
+
const props = __props;
|
|
12
|
+
return (_ctx, _cache) => {
|
|
13
|
+
return openBlock(), createBlock(unref(DialogClose), normalizeProps(guardReactiveProps(props)), {
|
|
14
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
15
|
+
_: 3
|
|
16
|
+
}, 16);
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
//#endregion
|
|
21
|
+
export { _sfc_main };
|
|
22
|
+
|
|
23
|
+
//# sourceMappingURL=drawerClose.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"drawerClose.js","names":[],"sources":["../../src/drawer/DrawerClose.vue"],"sourcesContent":["<template>\n <DialogClose v-bind=\"props\">\n <slot/>\n </DialogClose>\n</template>\n\n<script lang=\"ts\">\nimport type { DialogCloseProps } from 'reka-ui'\n\nexport interface DrawerCloseProps extends DialogCloseProps {}\n</script>\n\n<script setup lang=\"ts\">\nimport { DialogClose } from 'reka-ui'\n\nconst props = withDefaults(defineProps<DrawerCloseProps>(), {\n as: 'a',\n})\n</script>\n"],"mappings":";;;;;;;;;;EAeA,MAAM,QAAQ;;uBAdV,YAEc,MAAA,WAAA,GAAA,eAAA,mBAFO,KAAK,CAAA,GAAA;2BACf,CAAP,WAAO,KAAA,QAAA,SAAA,CAAA,CAAA"}
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import { clsx } from "../clsx.js";
|
|
2
|
+
import { _sfc_main as _sfc_main$1 } from "./drawerClose.js";
|
|
3
|
+
import { _sfc_main as _sfc_main$2 } from "./drawerOverlay.js";
|
|
4
|
+
import { computed, createBlock, createCommentVNode, createElementVNode, createVNode, defineComponent, mergeProps, openBlock, renderSlot, unref, withCtx } from "vue";
|
|
5
|
+
import { reactiveOmit } from "@vueuse/core";
|
|
6
|
+
import { DialogContent, DialogPortal, useForwardPropsEmits } from "reka-ui";
|
|
7
|
+
import { AnimatePresence, Motion } from "motion-v";
|
|
8
|
+
//#region src/drawer/DrawerContent.vue
|
|
9
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
10
|
+
inheritAttrs: false,
|
|
11
|
+
__name: "DrawerContent",
|
|
12
|
+
props: {
|
|
13
|
+
class: { type: [
|
|
14
|
+
Boolean,
|
|
15
|
+
null,
|
|
16
|
+
String,
|
|
17
|
+
Object,
|
|
18
|
+
Array
|
|
19
|
+
] },
|
|
20
|
+
side: { default: "right" },
|
|
21
|
+
showCloseButton: {
|
|
22
|
+
type: Boolean,
|
|
23
|
+
default: true
|
|
24
|
+
},
|
|
25
|
+
forceMount: { type: Boolean },
|
|
26
|
+
disableOutsidePointerEvents: { type: Boolean },
|
|
27
|
+
asChild: { type: Boolean },
|
|
28
|
+
as: {}
|
|
29
|
+
},
|
|
30
|
+
emits: [
|
|
31
|
+
"escapeKeyDown",
|
|
32
|
+
"pointerDownOutside",
|
|
33
|
+
"focusOutside",
|
|
34
|
+
"interactOutside",
|
|
35
|
+
"openAutoFocus",
|
|
36
|
+
"closeAutoFocus"
|
|
37
|
+
],
|
|
38
|
+
setup(__props, { emit: __emit }) {
|
|
39
|
+
const props = __props;
|
|
40
|
+
const emits = __emit;
|
|
41
|
+
const forwarded = useForwardPropsEmits(reactiveOmit(props, "class", "side"), emits);
|
|
42
|
+
const sideMotion = {
|
|
43
|
+
top: {
|
|
44
|
+
initial: { y: "-100%" },
|
|
45
|
+
animate: { y: 0 },
|
|
46
|
+
exit: { y: "-100%" }
|
|
47
|
+
},
|
|
48
|
+
bottom: {
|
|
49
|
+
initial: { y: "100%" },
|
|
50
|
+
animate: { y: 0 },
|
|
51
|
+
exit: { y: "100%" }
|
|
52
|
+
},
|
|
53
|
+
left: {
|
|
54
|
+
initial: { x: "-100%" },
|
|
55
|
+
animate: { x: 0 },
|
|
56
|
+
exit: { x: "-100%" }
|
|
57
|
+
},
|
|
58
|
+
right: {
|
|
59
|
+
initial: { x: "100%" },
|
|
60
|
+
animate: { x: 0 },
|
|
61
|
+
exit: { x: "100%" }
|
|
62
|
+
}
|
|
63
|
+
};
|
|
64
|
+
const motionProps = computed(() => sideMotion[props.side]);
|
|
65
|
+
return (_ctx, _cache) => {
|
|
66
|
+
return openBlock(), createBlock(unref(DialogPortal), null, {
|
|
67
|
+
default: withCtx(() => [createVNode(unref(AnimatePresence), { as: "div" }, {
|
|
68
|
+
default: withCtx(() => [createVNode(unref(_sfc_main$2), { "as-child": "" }, {
|
|
69
|
+
default: withCtx(() => [createVNode(unref(Motion), {
|
|
70
|
+
initial: { opacity: 0 },
|
|
71
|
+
animate: { opacity: 1 },
|
|
72
|
+
exit: { opacity: 0 },
|
|
73
|
+
transition: {
|
|
74
|
+
duration: .3,
|
|
75
|
+
ease: "easeInOut"
|
|
76
|
+
}
|
|
77
|
+
})]),
|
|
78
|
+
_: 1
|
|
79
|
+
}), createVNode(unref(DialogContent), mergeProps({ class: unref(clsx)("arvue-drawer-content", __props.side === "top" && "top", __props.side === "right" && "right", __props.side === "bottom" && "bottom", __props.side === "left" && "left", props.class) }, {
|
|
80
|
+
..._ctx.$attrs,
|
|
81
|
+
...unref(forwarded)
|
|
82
|
+
}, { "as-child": "" }), {
|
|
83
|
+
default: withCtx(() => [createVNode(unref(Motion), mergeProps(motionProps.value, { transition: {
|
|
84
|
+
duration: .3,
|
|
85
|
+
ease: "easeIn"
|
|
86
|
+
} }), {
|
|
87
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default"), __props.showCloseButton ? (openBlock(), createBlock(unref(_sfc_main$1), {
|
|
88
|
+
key: 0,
|
|
89
|
+
class: "arvue-drawer-close-button icon"
|
|
90
|
+
}, {
|
|
91
|
+
default: withCtx(() => [..._cache[0] || (_cache[0] = [createElementVNode("i", { class: "fas fa-times" }, null, -1)])]),
|
|
92
|
+
_: 1
|
|
93
|
+
})) : createCommentVNode("v-if", true)]),
|
|
94
|
+
_: 3
|
|
95
|
+
}, 16)]),
|
|
96
|
+
_: 3
|
|
97
|
+
}, 16, ["class"])]),
|
|
98
|
+
_: 3
|
|
99
|
+
})]),
|
|
100
|
+
_: 3
|
|
101
|
+
});
|
|
102
|
+
};
|
|
103
|
+
}
|
|
104
|
+
});
|
|
105
|
+
//#endregion
|
|
106
|
+
export { _sfc_main };
|
|
107
|
+
|
|
108
|
+
//# sourceMappingURL=drawerContent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"drawerContent.js","names":["$attrs"],"sources":["../../src/drawer/DrawerContent.vue"],"sourcesContent":["<style>\n@import './drawer-content.css';\n</style>\n\n<template>\n <DialogPortal>\n <AnimatePresence as=\"div\">\n <DrawerOverlay as-child>\n <Motion\n :initial=\"{ opacity: 0 }\"\n :animate=\"{ opacity: 1 }\"\n :exit=\"{ opacity: 0 }\"\n :transition=\"{\n duration: .3,\n ease: 'easeInOut',\n }\"\n />\n </DrawerOverlay>\n <DialogContent\n :class=\"clsx(\n 'arvue-drawer-content',\n side === 'top' && 'top',\n side === 'right' && 'right',\n side === 'bottom' && 'bottom',\n side === 'left' && 'left',\n props.class,\n )\"\n v-bind=\"{ ...$attrs, ...forwarded }\"\n as-child\n >\n <Motion\n v-bind=\"motionProps\"\n :transition=\"{\n duration: .3,\n ease: 'easeIn',\n }\"\n >\n <slot/>\n <DrawerClose\n v-if=\"showCloseButton\"\n class=\"arvue-drawer-close-button icon\"\n >\n <i class=\"fas fa-times\"/>\n </DrawerClose>\n </Motion>\n </DialogContent>\n </AnimatePresence>\n </DialogPortal>\n</template>\n\n<script lang=\"ts\">\nimport type { DialogContentEmits, DialogContentProps } from 'reka-ui'\nimport type { HTMLAttributes } from 'vue'\n\nexport interface DrawerContentEmits extends DialogContentEmits {\n}\n\nexport interface DrawerContentProps extends DialogContentProps {\n class?: HTMLAttributes['class']\n side?: 'top' | 'right' | 'bottom' | 'left'\n showCloseButton?: boolean\n}\n</script>\n\n<script setup lang=\"ts\">\nimport { reactiveOmit } from '@vueuse/core'\nimport { clsx } from 'clsx'\nimport { AnimatePresence, Motion } from 'motion-v'\nimport {\n DialogContent,\n DialogPortal,\n useForwardPropsEmits,\n} from 'reka-ui'\nimport { computed } from 'vue'\nimport { DrawerClose, DrawerOverlay } from '.'\n\ndefineOptions({\n inheritAttrs: false,\n})\n\nconst props = withDefaults(defineProps<DrawerContentProps>(), {\n side: 'right',\n showCloseButton: true,\n})\nconst emits = defineEmits<DrawerContentEmits>()\n\nconst delegatedProps = reactiveOmit(props, 'class', 'side')\n\nconst forwarded = useForwardPropsEmits(delegatedProps, emits)\n\nconst sideMotion = {\n top: { initial: { y: '-100%' }, animate: { y: 0 }, exit: { y: '-100%' } },\n bottom: { initial: { y: '100%' }, animate: { y: 0 }, exit: { y: '100%' } },\n left: { initial: { x: '-100%' }, animate: { x: 0 }, exit: { x: '-100%' } },\n right: { initial: { x: '100%' }, animate: { x: 0 }, exit: { x: '100%' } },\n} satisfies Record<NonNullable<DrawerContentProps['side']>, object>\n\nconst motionProps = computed(() => sideMotion[props.side])\n</script>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgFA,MAAM,QAAQ;EAId,MAAM,QAAQ;EAId,MAAM,YAAY,qBAFK,aAAa,OAAO,SAAS,MAEb,GAAgB,KAAK;EAE5D,MAAM,aAAa;GACf,KAAK;IAAE,SAAS,EAAE,GAAG,QAAQ;IAAG,SAAS,EAAE,GAAG,EAAE;IAAG,MAAM,EAAE,GAAG,QAAQ;GAAE;GACxE,QAAQ;IAAE,SAAS,EAAE,GAAG,OAAO;IAAG,SAAS,EAAE,GAAG,EAAE;IAAG,MAAM,EAAE,GAAG,OAAO;GAAE;GACzE,MAAM;IAAE,SAAS,EAAE,GAAG,QAAQ;IAAG,SAAS,EAAE,GAAG,EAAE;IAAG,MAAM,EAAE,GAAG,QAAQ;GAAE;GACzE,OAAO;IAAE,SAAS,EAAE,GAAG,OAAO;IAAG,SAAS,EAAE,GAAG,EAAE;IAAG,MAAM,EAAE,GAAG,OAAO;GAAE;EAC5E;EAEA,MAAM,cAAc,eAAe,WAAW,MAAM,KAAK;;uBA5FrD,YA0Ce,MAAA,YAAA,GAAA,MAAA;2BADO,CAxClB,YAwCkB,MAAA,eAAA,GAAA,EAxCD,IAAG,MAAK,GAAA;4BAWL,CAVhB,YAUgB,MAAA,WAAA,GAAA,EAVD,YAAA,GAAQ,GAAA;6BASjB,CARF,YAQE,MAAA,MAAA,GAAA;OAPG,SAAS,EAAA,SAAA,EAAA;OACT,SAAS,EAAA,SAAA,EAAA;OACT,MAAM,EAAA,SAAA,EAAA;OACN,YAAY;;;;;;SAMrB,YA2BgB,MAAA,aAAA,GA3BhB,WA2BgB,EA1BX,OAAO,MAAA,IAAA,EAAA,wBAAsE,QAAA,SAAI,SAAA,OAAyC,QAAA,SAAI,WAAA,SAA6C,QAAA,SAAI,YAAA,UAA+C,QAAA,SAAI,UAAA,QAA2C,MAAM,KAAA,EAAA,GAAA;SAQvQA,KAAAA;MAAM,GAAK,MAAA,SAAA;KAAS,GAAA,EACjC,YAAA,GAAQ,CAAA,GAAA;6BAgBC,CAdT,YAcS,MAAA,MAAA,GAdT,WACY,YAaH,OAbc,EAClB,YAAY;;;QAGZ,CAAA,GAAA;8BAEM,CAAP,WAAO,KAAA,QAAA,SAAA,GAEG,QAAA,mBAAA,UAAA,GADV,YAKc,MAAA,WAAA,GAAA;;QAHV,OAAM;;+BAEmB,CAAA,GAAA,OAAA,OAAA,OAAA,KAAA,CAAzB,mBAAyB,KAAA,EAAtB,OAAM,eAAc,GAAA,MAAA,EAAA,CAAA,EAAA,CAAA"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { clsx } from "../clsx.js";
|
|
2
|
+
import { createBlock, defineComponent, mergeProps, openBlock, renderSlot, unref, withCtx } from "vue";
|
|
3
|
+
import { reactiveOmit } from "@vueuse/core";
|
|
4
|
+
import { DialogDescription } from "reka-ui";
|
|
5
|
+
//#region src/drawer/DrawerDescription.vue
|
|
6
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
7
|
+
__name: "DrawerDescription",
|
|
8
|
+
props: {
|
|
9
|
+
class: { type: [
|
|
10
|
+
Boolean,
|
|
11
|
+
null,
|
|
12
|
+
String,
|
|
13
|
+
Object,
|
|
14
|
+
Array
|
|
15
|
+
] },
|
|
16
|
+
asChild: { type: Boolean },
|
|
17
|
+
as: { default: "p" }
|
|
18
|
+
},
|
|
19
|
+
setup(__props) {
|
|
20
|
+
const props = __props;
|
|
21
|
+
const delegatedProps = reactiveOmit(props, "class");
|
|
22
|
+
return (_ctx, _cache) => {
|
|
23
|
+
return openBlock(), createBlock(unref(DialogDescription), mergeProps({ class: unref(clsx)("arvue-drawer-description", props.class) }, unref(delegatedProps)), {
|
|
24
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
25
|
+
_: 3
|
|
26
|
+
}, 16, ["class"]);
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
//#endregion
|
|
31
|
+
export { _sfc_main };
|
|
32
|
+
|
|
33
|
+
//# sourceMappingURL=drawerDescription.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"drawerDescription.js","names":[],"sources":["../../src/drawer/DrawerDescription.vue"],"sourcesContent":["<style>\n@import \"./drawer-description.css\";\n</style>\n\n<template>\n <DialogDescription\n :class=\"clsx('arvue-drawer-description', props.class)\"\n v-bind=\"delegatedProps\"\n >\n <slot/>\n </DialogDescription>\n</template>\n\n<script lang=\"ts\">\nimport type { DialogDescriptionProps } from 'reka-ui'\nimport type { HTMLAttributes } from 'vue'\n\nexport interface DrawerDescriptionProps extends DialogDescriptionProps {\n class?: HTMLAttributes['class']\n}\n</script>\n\n<script setup lang=\"ts\">\nimport { reactiveOmit } from '@vueuse/core'\nimport { clsx } from 'clsx'\nimport { DialogDescription } from 'reka-ui'\n\nconst props = withDefaults(defineProps<DrawerDescriptionProps>(), {\n as: 'p',\n})\n\nconst delegatedProps = reactiveOmit(props, 'class')\n</script>\n"],"mappings":";;;;;;;;;;;;;;;;;;;EA2BA,MAAM,QAAQ;EAId,MAAM,iBAAiB,aAAa,OAAO,OAAO;;uBA1B9C,YAKoB,MAAA,iBAAA,GALpB,WAKoB,EAJf,OAAO,MAAA,IAAA,EAAI,4BAA6B,MAAM,KAAK,EAAA,GAC5C,MAAA,cAAA,CAAc,GAAA;2BAEf,CAAP,WAAO,KAAA,QAAA,SAAA,CAAA,CAAA"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { clsx } from "../clsx.js";
|
|
2
|
+
import { createBlock, defineComponent, mergeProps, openBlock, renderSlot, unref, withCtx } from "vue";
|
|
3
|
+
import { reactiveOmit } from "@vueuse/core";
|
|
4
|
+
import { Primitive } from "reka-ui";
|
|
5
|
+
//#region src/drawer/DrawerFooter.vue
|
|
6
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
7
|
+
__name: "DrawerFooter",
|
|
8
|
+
props: {
|
|
9
|
+
class: { type: [
|
|
10
|
+
Boolean,
|
|
11
|
+
null,
|
|
12
|
+
String,
|
|
13
|
+
Object,
|
|
14
|
+
Array
|
|
15
|
+
] },
|
|
16
|
+
asChild: { type: Boolean },
|
|
17
|
+
as: {}
|
|
18
|
+
},
|
|
19
|
+
setup(__props) {
|
|
20
|
+
const props = __props;
|
|
21
|
+
const delegatedProps = reactiveOmit(props, "class");
|
|
22
|
+
return (_ctx, _cache) => {
|
|
23
|
+
return openBlock(), createBlock(unref(Primitive), mergeProps({ class: unref(clsx)("arvue-drawer-footer", props.class) }, unref(delegatedProps)), {
|
|
24
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
25
|
+
_: 3
|
|
26
|
+
}, 16, ["class"]);
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
//#endregion
|
|
31
|
+
export { _sfc_main };
|
|
32
|
+
|
|
33
|
+
//# sourceMappingURL=drawerFooter.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"drawerFooter.js","names":[],"sources":["../../src/drawer/DrawerFooter.vue"],"sourcesContent":["<style>\n@import \"./drawer-footer.css\";\n</style>\n\n<template>\n <Primitive\n :class=\"clsx('arvue-drawer-footer', props.class)\"\n v-bind=\"delegatedProps\"\n >\n <slot/>\n </Primitive>\n</template>\n\n<script lang=\"ts\">\nimport type { PrimitiveProps } from 'reka-ui'\nimport type { HTMLAttributes } from 'vue'\n\nexport interface DrawerFooterProps extends PrimitiveProps {\n class?: HTMLAttributes['class']\n}\n</script>\n\n<script setup lang=\"ts\">\nimport { reactiveOmit } from '@vueuse/core'\nimport { clsx } from 'clsx'\nimport { Primitive } from 'reka-ui'\n\nconst props = defineProps<DrawerFooterProps>()\n\nconst delegatedProps = reactiveOmit(props, 'class')\n</script>\n"],"mappings":";;;;;;;;;;;;;;;;;;;EA2BA,MAAM,QAAQ;EAEd,MAAM,iBAAiB,aAAa,OAAO,OAAO;;uBAxB9C,YAKY,MAAA,SAAA,GALZ,WAKY,EAJP,OAAO,MAAA,IAAA,EAAI,uBAAwB,MAAM,KAAK,EAAA,GACvC,MAAA,cAAA,CAAc,GAAA;2BAEf,CAAP,WAAO,KAAA,QAAA,SAAA,CAAA,CAAA"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { clsx } from "../clsx.js";
|
|
2
|
+
import { createBlock, defineComponent, mergeProps, openBlock, renderSlot, unref, withCtx } from "vue";
|
|
3
|
+
import { reactiveOmit } from "@vueuse/core";
|
|
4
|
+
import { Primitive } from "reka-ui";
|
|
5
|
+
//#region src/drawer/DrawerHeader.vue
|
|
6
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
7
|
+
__name: "DrawerHeader",
|
|
8
|
+
props: {
|
|
9
|
+
class: { type: [
|
|
10
|
+
Boolean,
|
|
11
|
+
null,
|
|
12
|
+
String,
|
|
13
|
+
Object,
|
|
14
|
+
Array
|
|
15
|
+
] },
|
|
16
|
+
asChild: { type: Boolean },
|
|
17
|
+
as: {}
|
|
18
|
+
},
|
|
19
|
+
setup(__props) {
|
|
20
|
+
const props = __props;
|
|
21
|
+
const delegatedProps = reactiveOmit(props, "class");
|
|
22
|
+
return (_ctx, _cache) => {
|
|
23
|
+
return openBlock(), createBlock(unref(Primitive), mergeProps({ class: unref(clsx)("arvue-drawer-header", props.class) }, unref(delegatedProps)), {
|
|
24
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
25
|
+
_: 3
|
|
26
|
+
}, 16, ["class"]);
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
//#endregion
|
|
31
|
+
export { _sfc_main };
|
|
32
|
+
|
|
33
|
+
//# sourceMappingURL=drawerHeader.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"drawerHeader.js","names":[],"sources":["../../src/drawer/DrawerHeader.vue"],"sourcesContent":["<style>\n@import \"./drawer-header.css\";\n</style>\n\n<template>\n <Primitive\n :class=\"clsx('arvue-drawer-header', props.class)\"\n v-bind=\"delegatedProps\"\n >\n <slot/>\n </Primitive>\n</template>\n\n<script lang=\"ts\">\nimport type { PrimitiveProps } from 'reka-ui'\nimport type { HTMLAttributes } from 'vue'\n\nexport interface DrawerHeaderProps extends PrimitiveProps {\n class?: HTMLAttributes['class']\n}\n</script>\n\n<script setup lang=\"ts\">\nimport { reactiveOmit } from '@vueuse/core'\nimport { clsx } from 'clsx'\nimport { Primitive } from 'reka-ui'\n\nconst props = defineProps<DrawerHeaderProps>()\n\nconst delegatedProps = reactiveOmit(props, 'class')\n</script>\n"],"mappings":";;;;;;;;;;;;;;;;;;;EA2BA,MAAM,QAAQ;EAEd,MAAM,iBAAiB,aAAa,OAAO,OAAO;;uBAxB9C,YAKY,MAAA,SAAA,GALZ,WAKY,EAJP,OAAO,MAAA,IAAA,EAAI,uBAAwB,MAAM,KAAK,EAAA,GACvC,MAAA,cAAA,CAAc,GAAA;2BAEf,CAAP,WAAO,KAAA,QAAA,SAAA,CAAA,CAAA"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { clsx } from "../clsx.js";
|
|
2
|
+
import { createBlock, defineComponent, mergeProps, openBlock, renderSlot, unref, withCtx } from "vue";
|
|
3
|
+
import { reactiveOmit } from "@vueuse/core";
|
|
4
|
+
import { DialogOverlay } from "reka-ui";
|
|
5
|
+
//#region src/drawer/DrawerOverlay.vue
|
|
6
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
7
|
+
__name: "DrawerOverlay",
|
|
8
|
+
props: {
|
|
9
|
+
class: { type: [
|
|
10
|
+
Boolean,
|
|
11
|
+
null,
|
|
12
|
+
String,
|
|
13
|
+
Object,
|
|
14
|
+
Array
|
|
15
|
+
] },
|
|
16
|
+
forceMount: { type: Boolean },
|
|
17
|
+
asChild: { type: Boolean },
|
|
18
|
+
as: {}
|
|
19
|
+
},
|
|
20
|
+
setup(__props) {
|
|
21
|
+
const props = __props;
|
|
22
|
+
const delegatedProps = reactiveOmit(props, "class");
|
|
23
|
+
return (_ctx, _cache) => {
|
|
24
|
+
return openBlock(), createBlock(unref(DialogOverlay), mergeProps(unref(delegatedProps), { class: unref(clsx)("arvue-drawer-overlay", props.class) }), {
|
|
25
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
26
|
+
_: 3
|
|
27
|
+
}, 16, ["class"]);
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
//#endregion
|
|
32
|
+
export { _sfc_main };
|
|
33
|
+
|
|
34
|
+
//# sourceMappingURL=drawerOverlay.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"drawerOverlay.js","names":[],"sources":["../../src/drawer/DrawerOverlay.vue"],"sourcesContent":["<style>\n@import './drawer-overlay.css';\n</style>\n\n<template>\n <DialogOverlay\n v-bind=\"delegatedProps\"\n :class=\"clsx('arvue-drawer-overlay', props.class)\"\n >\n <slot/>\n </DialogOverlay>\n</template>\n\n<script lang=\"ts\">\nimport type { DialogOverlayProps } from 'reka-ui'\nimport type { HTMLAttributes } from 'vue'\n\nexport interface DrawerOverlayProps extends DialogOverlayProps {\n class?: HTMLAttributes['class']\n}\n</script>\n\n<script setup lang=\"ts\">\nimport { reactiveOmit } from '@vueuse/core'\nimport { clsx } from 'clsx'\nimport { DialogOverlay } from 'reka-ui'\n\nconst props = defineProps<DrawerOverlayProps>()\n\nconst delegatedProps = reactiveOmit(props, 'class')\n</script>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;EA2BA,MAAM,QAAQ;EAEd,MAAM,iBAAiB,aAAa,OAAO,OAAO;;uBAxB9C,YAKgB,MAAA,aAAA,GALhB,WACY,MAII,cAAA,GAJU,EACrB,OAAO,MAAA,IAAA,EAAI,wBAAyB,MAAM,KAAK,EAAA,CAAA,GAAA;2BAEzC,CAAP,WAAO,KAAA,QAAA,SAAA,CAAA,CAAA"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { clsx } from "../clsx.js";
|
|
2
|
+
import { createBlock, defineComponent, mergeProps, openBlock, renderSlot, unref, withCtx } from "vue";
|
|
3
|
+
import { reactiveOmit } from "@vueuse/core";
|
|
4
|
+
import { DialogTitle } from "reka-ui";
|
|
5
|
+
//#region src/drawer/DrawerTitle.vue
|
|
6
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
7
|
+
__name: "DrawerTitle",
|
|
8
|
+
props: {
|
|
9
|
+
class: { type: [
|
|
10
|
+
Boolean,
|
|
11
|
+
null,
|
|
12
|
+
String,
|
|
13
|
+
Object,
|
|
14
|
+
Array
|
|
15
|
+
] },
|
|
16
|
+
asChild: { type: Boolean },
|
|
17
|
+
as: { default: "h3" }
|
|
18
|
+
},
|
|
19
|
+
setup(__props) {
|
|
20
|
+
const props = __props;
|
|
21
|
+
const delegatedProps = reactiveOmit(props, "class");
|
|
22
|
+
return (_ctx, _cache) => {
|
|
23
|
+
return openBlock(), createBlock(unref(DialogTitle), mergeProps({ class: unref(clsx)("arvue-drawer-title", props.class) }, unref(delegatedProps)), {
|
|
24
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
25
|
+
_: 3
|
|
26
|
+
}, 16, ["class"]);
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
//#endregion
|
|
31
|
+
export { _sfc_main };
|
|
32
|
+
|
|
33
|
+
//# sourceMappingURL=drawerTitle.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"drawerTitle.js","names":[],"sources":["../../src/drawer/DrawerTitle.vue"],"sourcesContent":["<style>\n@import \"./drawer-title.css\";\n</style>\n\n<template>\n <DialogTitle\n :class=\"clsx('arvue-drawer-title', props.class)\"\n v-bind=\"delegatedProps\"\n >\n <slot/>\n </DialogTitle>\n</template>\n\n<script lang=\"ts\">\nimport type { DialogTitleProps } from 'reka-ui'\nimport type { HTMLAttributes } from 'vue'\n\nexport interface DrawerTitleProps extends DialogTitleProps {\n class?: HTMLAttributes['class']\n}\n</script>\n\n<script setup lang=\"ts\">\nimport { reactiveOmit } from '@vueuse/core'\nimport { clsx } from 'clsx'\nimport { DialogTitle } from 'reka-ui'\n\nconst props = withDefaults(defineProps<DrawerTitleProps>(), {\n as: 'h3',\n})\n\nconst delegatedProps = reactiveOmit(props, 'class')\n</script>\n"],"mappings":";;;;;;;;;;;;;;;;;;;EA2BA,MAAM,QAAQ;EAId,MAAM,iBAAiB,aAAa,OAAO,OAAO;;uBA1B9C,YAKc,MAAA,WAAA,GALd,WAKc,EAJT,OAAO,MAAA,IAAA,EAAI,sBAAuB,MAAM,KAAK,EAAA,GACtC,MAAA,cAAA,CAAc,GAAA;2BAEf,CAAP,WAAO,KAAA,QAAA,SAAA,CAAA,CAAA"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { createBlock, defineComponent, guardReactiveProps, normalizeProps, openBlock, renderSlot, unref, withCtx } from "vue";
|
|
2
|
+
import { DialogTrigger } from "reka-ui";
|
|
3
|
+
//#region src/drawer/DrawerTrigger.vue
|
|
4
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
5
|
+
__name: "DrawerTrigger",
|
|
6
|
+
props: {
|
|
7
|
+
asChild: { type: Boolean },
|
|
8
|
+
as: {}
|
|
9
|
+
},
|
|
10
|
+
setup(__props) {
|
|
11
|
+
const props = __props;
|
|
12
|
+
return (_ctx, _cache) => {
|
|
13
|
+
return openBlock(), createBlock(unref(DialogTrigger), normalizeProps(guardReactiveProps(props)), {
|
|
14
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
15
|
+
_: 3
|
|
16
|
+
}, 16);
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
//#endregion
|
|
21
|
+
export { _sfc_main };
|
|
22
|
+
|
|
23
|
+
//# sourceMappingURL=drawerTrigger.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"drawerTrigger.js","names":[],"sources":["../../src/drawer/DrawerTrigger.vue"],"sourcesContent":["<template>\n <DialogTrigger v-bind=\"props\">\n <slot/>\n </DialogTrigger>\n</template>\n\n<script lang=\"ts\">\nimport type { DialogTriggerProps } from 'reka-ui'\n\nexport interface DrawerTriggerProps extends DialogTriggerProps {}\n</script>\n\n<script setup lang=\"ts\">\nimport { DialogTrigger } from 'reka-ui'\n\nconst props = defineProps<DrawerTriggerProps>()\n</script>\n"],"mappings":";;;;;;;;;;EAeA,MAAM,QAAQ;;uBAdV,YAEgB,MAAA,aAAA,GAAA,eAAA,mBAFO,KAAK,CAAA,GAAA;2BACjB,CAAP,WAAO,KAAA,QAAA,SAAA,CAAA,CAAA"}
|