arvue-ui 0.1.0 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (58) hide show
  1. package/dist/all.css +1 -1
  2. package/dist/dialog/dialogDescription.js +7 -5
  3. package/dist/dialog/dialogDescription.js.map +1 -1
  4. package/dist/dialog/dialogFooter.js +16 -10
  5. package/dist/dialog/dialogFooter.js.map +1 -1
  6. package/dist/dialog/dialogHeader.js +16 -10
  7. package/dist/dialog/dialogHeader.js.map +1 -1
  8. package/dist/dialog/dialogTitle.js +7 -5
  9. package/dist/dialog/dialogTitle.js.map +1 -1
  10. package/dist/drawer/drawer.js +32 -0
  11. package/dist/drawer/drawer.js.map +1 -0
  12. package/dist/drawer/drawerClose.js +23 -0
  13. package/dist/drawer/drawerClose.js.map +1 -0
  14. package/dist/drawer/drawerContent.js +108 -0
  15. package/dist/drawer/drawerContent.js.map +1 -0
  16. package/dist/drawer/drawerDescription.js +33 -0
  17. package/dist/drawer/drawerDescription.js.map +1 -0
  18. package/dist/drawer/drawerFooter.js +33 -0
  19. package/dist/drawer/drawerFooter.js.map +1 -0
  20. package/dist/drawer/drawerHeader.js +33 -0
  21. package/dist/drawer/drawerHeader.js.map +1 -0
  22. package/dist/drawer/drawerOverlay.js +34 -0
  23. package/dist/drawer/drawerOverlay.js.map +1 -0
  24. package/dist/drawer/drawerTitle.js +33 -0
  25. package/dist/drawer/drawerTitle.js.map +1 -0
  26. package/dist/drawer/drawerTrigger.js +23 -0
  27. package/dist/drawer/drawerTrigger.js.map +1 -0
  28. package/dist/index.d.ts +191 -31
  29. package/dist/index.d.ts.map +1 -1
  30. package/dist/index.js +331 -27
  31. package/dist/index.js.map +1 -1
  32. package/dist/style.css +12 -0
  33. package/package.json +8 -3
  34. package/src/dialog/DialogDescription.vue +13 -5
  35. package/src/dialog/DialogFooter.vue +9 -2
  36. package/src/dialog/DialogHeader.vue +9 -2
  37. package/src/dialog/DialogTitle.vue +13 -5
  38. package/src/dialog/dialog-content.css +1 -1
  39. package/src/dialog/dialog-description.css +1 -0
  40. package/src/dialog/dialog-overlay.css +1 -1
  41. package/src/dialog/dialog-title.css +1 -3
  42. package/src/drawer/Drawer.vue +27 -0
  43. package/src/drawer/DrawerClose.vue +19 -0
  44. package/src/drawer/DrawerContent.vue +99 -0
  45. package/src/drawer/DrawerDescription.vue +33 -0
  46. package/src/drawer/DrawerFooter.vue +31 -0
  47. package/src/drawer/DrawerHeader.vue +31 -0
  48. package/src/drawer/DrawerOverlay.vue +31 -0
  49. package/src/drawer/DrawerTitle.vue +33 -0
  50. package/src/drawer/DrawerTrigger.vue +17 -0
  51. package/src/drawer/drawer-content.css +68 -0
  52. package/src/drawer/drawer-description.css +4 -0
  53. package/src/drawer/drawer-footer.css +11 -0
  54. package/src/drawer/drawer-header.css +6 -0
  55. package/src/drawer/drawer-overlay.css +12 -0
  56. package/src/drawer/drawer-title.css +3 -0
  57. package/src/drawer/index.ts +38 -0
  58. package/src/index.ts +1 -0
package/dist/all.css CHANGED
@@ -1 +1 @@
1
- .arvue-dialog-content{z-index:10;width:100%;max-width:calc(100% - 2rem);box-shadow:0 0 70px var(--dialog-shadow-color);background:var(--background-color-blank);box-sizing:border-box;border-radius:.75rem;gap:2rem;padding:1.5rem;display:grid;position:absolute;top:50%;left:50%;translate:-50% -50%}@media (width>=760px){.arvue-dialog-content{max-width:600px}}.arvue-dialog-content .arvue-dialog-close-button{opacity:.7;transition:opacity var(--timing-fast) ease-in-out;width:1rem;height:1rem;color:inherit;border-radius:.125rem;position:absolute;top:1rem;right:1rem}.arvue-dialog-content .arvue-dialog-close-button:hover{opacity:1}.arvue-dialog-content .arvue-dialog-close-button:disabled{pointer-events:none}.arvue-dialog-description{font-size:.875rem}.arvue-dialog-footer{flex-direction:column-reverse;gap:.5rem;display:flex}.arvue-dialog-footer button{margin-right:0}@media (width>=760px){.arvue-dialog-footer{flex-direction:row;justify-content:flex-end}}.arvue-dialog-header{text-align:center;flex-direction:column;gap:.5rem;display:flex}@media (width>=760px){.arvue-dialog-header{text-align:left}}.arvue-dialog-overlay{z-index:5;box-sizing:border-box;background-color:var(--dialog-background-color);width:100%;height:100%;position:fixed;inset:0}.arvue-dialog-title{color:var(--text-color-stronger);font-size:1.5rem;font-weight:700}
1
+ .arvue-dialog-content{z-index:1060;width:100%;max-width:calc(100% - 2rem);box-shadow:0 0 70px var(--dialog-shadow-color);background:var(--background-color-blank);box-sizing:border-box;border-radius:.75rem;gap:2rem;padding:1.5rem;display:grid;position:absolute;top:50%;left:50%;translate:-50% -50%}@media (width>=760px){.arvue-dialog-content{max-width:600px}}.arvue-dialog-content .arvue-dialog-close-button{opacity:.7;transition:opacity var(--timing-fast) ease-in-out;width:1rem;height:1rem;color:inherit;border-radius:.125rem;position:absolute;top:1rem;right:1rem}.arvue-dialog-content .arvue-dialog-close-button:hover{opacity:1}.arvue-dialog-content .arvue-dialog-close-button:disabled{pointer-events:none}.arvue-dialog-description{margin:0;font-size:.875rem}.arvue-dialog-footer{flex-direction:column-reverse;gap:.5rem;display:flex}.arvue-dialog-footer button{margin-right:0}@media (width>=760px){.arvue-dialog-footer{flex-direction:row;justify-content:flex-end}}.arvue-dialog-header{text-align:center;flex-direction:column;gap:.5rem;display:flex}@media (width>=760px){.arvue-dialog-header{text-align:left}}.arvue-dialog-overlay{z-index:1055;box-sizing:border-box;background-color:var(--dialog-background-color);width:100%;height:100%;position:fixed;inset:0}.arvue-dialog-title{margin:0}.arvue-drawer-content{z-index:1045;box-shadow:0 0 70px var(--drawer-shadow-color);background:var(--background-color-blank);box-sizing:border-box;flex-direction:column;gap:1rem;display:flex;position:fixed}.arvue-drawer-content.right{width:75%;top:0;bottom:0;right:0}.arvue-drawer-content.left{width:75%;top:0;bottom:0;right:auto}.arvue-drawer-content.top{width:auto;height:auto;inset:0 0 auto}.arvue-drawer-content.bottom{width:auto;height:auto;inset:auto 0 0}@media (width>=760px){.arvue-drawer-content.right,.arvue-drawer-content.left{width:600px}}.arvue-drawer-content .arvue-drawer-close-button{opacity:.7;transition:opacity var(--timing-fast) ease-in-out;width:1rem;height:1rem;color:inherit;border-radius:.125rem;position:absolute;top:1rem;right:1rem}.arvue-drawer-content .arvue-drawer-close-button:hover{opacity:1}.arvue-drawer-content .arvue-drawer-close-button:disabled{pointer-events:none}.arvue-drawer-description{margin:0;font-size:.875rem}.arvue-drawer-footer{flex-direction:column;gap:.5rem;margin-top:auto;padding:1rem;display:flex}.arvue-drawer-footer button{margin-right:0}.arvue-drawer-header{flex-direction:column;gap:.375rem;padding:1rem;display:flex}.arvue-drawer-overlay{z-index:1040;box-sizing:border-box;background:var(--drawer-background-color);width:100%;height:100%;position:fixed;inset:0}.arvue-drawer-title{margin:0}
@@ -1,6 +1,7 @@
1
1
  import { clsx } from "../clsx.js";
2
- import { createBlock, defineComponent, normalizeClass, openBlock, renderSlot, unref, withCtx } from "vue";
3
- import { Primitive } from "reka-ui";
2
+ import { createBlock, defineComponent, mergeProps, openBlock, renderSlot, unref, withCtx } from "vue";
3
+ import { DialogDescription } from "reka-ui";
4
+ import { reactiveOmit } from "@vueuse/core";
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(Primitive), { class: normalizeClass(unref(clsx)("arvue-dialog-description", props.class)) }, {
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
- }, 8, ["class"]);
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 <Primitive :class=\"clsx('arvue-dialog-description', props.class)\">\n <slot/>\n </Primitive>\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 { clsx } from 'clsx'\nimport { Primitive } from 'reka-ui'\n\nconst props = defineProps<DialogDescriptionProps>()\n</script>\n"],"mappings":";;;;;;;;;;;;;;;;;;EAuBA,MAAM,QAAQ;;uBAlBV,YAEY,MAAA,SAAA,GAAA,EAFA,OAAK,eAAE,MAAA,IAAA,EAAI,4BAA6B,MAAM,KAAK,CAAA,EAAA,GAAA;2BACpD,CAAP,WAAO,KAAA,QAAA,SAAA,CAAA,CAAA"}
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, normalizeClass, openBlock, renderSlot, unref, withCtx } from "vue";
2
+ import { createBlock, defineComponent, mergeProps, openBlock, renderSlot, unref, withCtx } from "vue";
3
3
  import { Primitive } from "reka-ui";
4
+ import { reactiveOmit } from "@vueuse/core";
4
5
  //#region src/dialog/DialogFooter.vue
5
6
  const _sfc_main = /* @__PURE__ */ defineComponent({
6
7
  __name: "DialogFooter",
7
- props: { class: { type: [
8
- Boolean,
9
- null,
10
- String,
11
- Object,
12
- Array
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: normalizeClass(unref(clsx)("arvue-dialog-footer", props.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
- }, 8, ["class"]);
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 :class=\"clsx('arvue-dialog-footer', props.class)\">\n <slot/>\n </Primitive>\n</template>\n\n<script lang=\"ts\">\nimport type { HTMLAttributes } from 'vue'\n\nexport interface DialogFooterProps {\n class?: HTMLAttributes['class']\n}\n</script>\n\n<script setup lang=\"ts\">\nimport { clsx } from 'clsx'\nimport { Primitive } from 'reka-ui'\n\nconst props = defineProps<DialogFooterProps>()\n</script>\n"],"mappings":";;;;;;;;;;;;;;EAsBA,MAAM,QAAQ;;uBAjBV,YAEY,MAAA,SAAA,GAAA,EAFA,OAAK,eAAE,MAAA,IAAA,EAAI,uBAAwB,MAAM,KAAK,CAAA,EAAA,GAAA;2BAC/C,CAAP,WAAO,KAAA,QAAA,SAAA,CAAA,CAAA"}
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, normalizeClass, openBlock, renderSlot, unref, withCtx } from "vue";
2
+ import { createBlock, defineComponent, mergeProps, openBlock, renderSlot, unref, withCtx } from "vue";
3
3
  import { Primitive } from "reka-ui";
4
+ import { reactiveOmit } from "@vueuse/core";
4
5
  //#region src/dialog/DialogHeader.vue
5
6
  const _sfc_main = /* @__PURE__ */ defineComponent({
6
7
  __name: "DialogHeader",
7
- props: { class: { type: [
8
- Boolean,
9
- null,
10
- String,
11
- Object,
12
- Array
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: normalizeClass(unref(clsx)("arvue-dialog-header", props.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
- }, 8, ["class"]);
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 :class=\"clsx('arvue-dialog-header', props.class)\">\n <slot/>\n </Primitive>\n</template>\n\n<script lang=\"ts\">\nimport type { HTMLAttributes } from 'vue'\n\nexport interface DialogHeaderProps {\n class?: HTMLAttributes['class']\n}\n</script>\n\n<script setup lang=\"ts\">\nimport { clsx } from 'clsx'\nimport { Primitive } from 'reka-ui'\n\nconst props = defineProps<DialogHeaderProps>()\n</script>\n"],"mappings":";;;;;;;;;;;;;;EAsBA,MAAM,QAAQ;;uBAjBV,YAEY,MAAA,SAAA,GAAA,EAFA,OAAK,eAAE,MAAA,IAAA,EAAI,uBAAwB,MAAM,KAAK,CAAA,EAAA,GAAA;2BAC/C,CAAP,WAAO,KAAA,QAAA,SAAA,CAAA,CAAA"}
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,6 +1,7 @@
1
1
  import { clsx } from "../clsx.js";
2
- import { createBlock, defineComponent, normalizeClass, openBlock, renderSlot, unref, withCtx } from "vue";
3
- import { Primitive } from "reka-ui";
2
+ import { createBlock, defineComponent, mergeProps, openBlock, renderSlot, unref, withCtx } from "vue";
3
+ import { DialogTitle } from "reka-ui";
4
+ import { reactiveOmit } from "@vueuse/core";
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(Primitive), { class: normalizeClass(unref(clsx)("arvue-dialog-title", props.class)) }, {
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
- }, 8, ["class"]);
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 <Primitive :class=\"clsx('arvue-dialog-title', props.class)\">\n <slot/>\n </Primitive>\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 { clsx } from 'clsx'\nimport { Primitive } from 'reka-ui'\n\nconst props = defineProps<DialogTitleProps>()\n</script>\n"],"mappings":";;;;;;;;;;;;;;;;;;EAuBA,MAAM,QAAQ;;uBAlBV,YAEY,MAAA,SAAA,GAAA,EAFA,OAAK,eAAE,MAAA,IAAA,EAAI,sBAAuB,MAAM,KAAK,CAAA,EAAA,GAAA;2BAC9C,CAAP,WAAO,KAAA,QAAA,SAAA,CAAA,CAAA"}
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 { DialogContent, DialogPortal, useForwardPropsEmits } from "reka-ui";
6
+ import { reactiveOmit } from "@vueuse/core";
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 { DialogDescription } from "reka-ui";
4
+ import { reactiveOmit } from "@vueuse/core";
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 { Primitive } from "reka-ui";
4
+ import { reactiveOmit } from "@vueuse/core";
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 { Primitive } from "reka-ui";
4
+ import { reactiveOmit } from "@vueuse/core";
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 { DialogOverlay } from "reka-ui";
4
+ import { reactiveOmit } from "@vueuse/core";
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 { DialogTitle } from "reka-ui";
4
+ import { reactiveOmit } from "@vueuse/core";
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"}