arvue-ui 0.1.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/LICENSE +21 -0
- package/README.md +99 -0
- package/dist/all.css +1 -0
- package/dist/clsx.js +18 -0
- package/dist/clsx.js.map +1 -0
- package/dist/dialog/dialog.js +32 -0
- package/dist/dialog/dialog.js.map +1 -0
- package/dist/dialog/dialogClose.js +23 -0
- package/dist/dialog/dialogClose.js.map +1 -0
- package/dist/dialog/dialogContent.js +101 -0
- package/dist/dialog/dialogContent.js.map +1 -0
- package/dist/dialog/dialogDescription.js +31 -0
- package/dist/dialog/dialogDescription.js.map +1 -0
- package/dist/dialog/dialogFooter.js +27 -0
- package/dist/dialog/dialogFooter.js.map +1 -0
- package/dist/dialog/dialogHeader.js +27 -0
- package/dist/dialog/dialogHeader.js.map +1 -0
- package/dist/dialog/dialogOverlay.js +34 -0
- package/dist/dialog/dialogOverlay.js.map +1 -0
- package/dist/dialog/dialogTitle.js +31 -0
- package/dist/dialog/dialogTitle.js.map +1 -0
- package/dist/dialog/dialogTrigger.js +23 -0
- package/dist/dialog/dialogTrigger.js.map +1 -0
- package/dist/index.d.ts +155 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +295 -0
- package/dist/index.js.map +1 -0
- package/dist/style.css +12 -0
- package/package.json +64 -0
- package/src/dialog/Dialog.vue +27 -0
- package/src/dialog/DialogClose.vue +19 -0
- package/src/dialog/DialogContent.vue +94 -0
- package/src/dialog/DialogDescription.vue +25 -0
- package/src/dialog/DialogFooter.vue +24 -0
- package/src/dialog/DialogHeader.vue +24 -0
- package/src/dialog/DialogOverlay.vue +31 -0
- package/src/dialog/DialogTitle.vue +25 -0
- package/src/dialog/DialogTrigger.vue +17 -0
- package/src/dialog/dialog-content.css +42 -0
- package/src/dialog/dialog-description.css +3 -0
- package/src/dialog/dialog-footer.css +16 -0
- package/src/dialog/dialog-header.css +12 -0
- package/src/dialog/dialog-overlay.css +12 -0
- package/src/dialog/dialog-title.css +5 -0
- package/src/dialog/index.ts +38 -0
- package/src/index.ts +1 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Articus Company
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
<h1 align="center">
|
|
2
|
+
Arvue UI
|
|
3
|
+
</h1>
|
|
4
|
+
|
|
5
|
+
## Установка
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
pnpm add arvue-ui
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
```bash
|
|
12
|
+
npm install arvue-ui
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
yarn add arvue-ui
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
## Использование
|
|
20
|
+
|
|
21
|
+
1. Подключите стили
|
|
22
|
+
|
|
23
|
+
```js
|
|
24
|
+
@import 'arvue-ui/all.css'
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
2. Используйте компоненты
|
|
28
|
+
|
|
29
|
+
```vue
|
|
30
|
+
<template>
|
|
31
|
+
<Dialog>
|
|
32
|
+
<DialogTrigger as-child>
|
|
33
|
+
<button>
|
|
34
|
+
Open Dialog
|
|
35
|
+
</button>
|
|
36
|
+
</DialogTrigger>
|
|
37
|
+
<DialogContent>
|
|
38
|
+
<DialogHeader>
|
|
39
|
+
<DialogTitle>
|
|
40
|
+
Edit profile
|
|
41
|
+
</DialogTitle>
|
|
42
|
+
<DialogDescription>
|
|
43
|
+
Make changes to your profile here. Click save when you're
|
|
44
|
+
done.
|
|
45
|
+
</DialogDescription>
|
|
46
|
+
</DialogHeader>
|
|
47
|
+
<div class="fields">
|
|
48
|
+
<div class="field">
|
|
49
|
+
<div class="name">
|
|
50
|
+
Name
|
|
51
|
+
</div>
|
|
52
|
+
<div class="value">
|
|
53
|
+
<input
|
|
54
|
+
class="full-width"
|
|
55
|
+
type="text"
|
|
56
|
+
value="Дед мороз"
|
|
57
|
+
>
|
|
58
|
+
</div>
|
|
59
|
+
</div>
|
|
60
|
+
<div class="field">
|
|
61
|
+
<div class="name">
|
|
62
|
+
Username
|
|
63
|
+
</div>
|
|
64
|
+
<div class="value">
|
|
65
|
+
<input
|
|
66
|
+
class="full-width"
|
|
67
|
+
type="text"
|
|
68
|
+
value="@deadmoroz"
|
|
69
|
+
>
|
|
70
|
+
</div>
|
|
71
|
+
</div>
|
|
72
|
+
</div>
|
|
73
|
+
<DialogFooter>
|
|
74
|
+
<DialogClose as-child>
|
|
75
|
+
<button class="outlined">
|
|
76
|
+
Cancel
|
|
77
|
+
</button>
|
|
78
|
+
</DialogClose>
|
|
79
|
+
<button type="submit">
|
|
80
|
+
Save changes
|
|
81
|
+
</button>
|
|
82
|
+
</DialogFooter>
|
|
83
|
+
</DialogContent>
|
|
84
|
+
</Dialog>
|
|
85
|
+
</template>
|
|
86
|
+
|
|
87
|
+
<script setup lang="ts">
|
|
88
|
+
import {
|
|
89
|
+
Dialog,
|
|
90
|
+
DialogClose,
|
|
91
|
+
DialogContent,
|
|
92
|
+
DialogDescription,
|
|
93
|
+
DialogFooter,
|
|
94
|
+
DialogHeader,
|
|
95
|
+
DialogTitle,
|
|
96
|
+
DialogTrigger,
|
|
97
|
+
} from 'arvue-ui'
|
|
98
|
+
</script>
|
|
99
|
+
```
|
package/dist/all.css
ADDED
|
@@ -0,0 +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}
|
package/dist/clsx.js
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
//#region ../../node_modules/.pnpm/clsx@2.1.1/node_modules/clsx/dist/clsx.mjs
|
|
2
|
+
function r(e) {
|
|
3
|
+
var t, f, n = "";
|
|
4
|
+
if ("string" == typeof e || "number" == typeof e) n += e;
|
|
5
|
+
else if ("object" == typeof e) if (Array.isArray(e)) {
|
|
6
|
+
var o = e.length;
|
|
7
|
+
for (t = 0; t < o; t++) e[t] && (f = r(e[t])) && (n && (n += " "), n += f);
|
|
8
|
+
} else for (f in e) e[f] && (n && (n += " "), n += f);
|
|
9
|
+
return n;
|
|
10
|
+
}
|
|
11
|
+
function clsx() {
|
|
12
|
+
for (var e, t, f = 0, n = "", o = arguments.length; f < o; f++) (e = arguments[f]) && (t = r(e)) && (n && (n += " "), n += t);
|
|
13
|
+
return n;
|
|
14
|
+
}
|
|
15
|
+
//#endregion
|
|
16
|
+
export { clsx };
|
|
17
|
+
|
|
18
|
+
//# sourceMappingURL=clsx.js.map
|
package/dist/clsx.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"clsx.js","names":[],"sources":["../../../node_modules/.pnpm/clsx@2.1.1/node_modules/clsx/dist/clsx.mjs"],"sourcesContent":["function r(e){var t,f,n=\"\";if(\"string\"==typeof e||\"number\"==typeof e)n+=e;else if(\"object\"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(f=r(e[t]))&&(n&&(n+=\" \"),n+=f)}else for(f in e)e[f]&&(n&&(n+=\" \"),n+=f);return n}export function clsx(){for(var e,t,f=0,n=\"\",o=arguments.length;f<o;f++)(e=arguments[f])&&(t=r(e))&&(n&&(n+=\" \"),n+=t);return n}export default clsx;"],"x_google_ignoreList":[0],"mappings":";AAAA,SAAS,EAAE,GAAE;CAAC,IAAI,GAAE,GAAE,IAAE;CAAG,IAAG,YAAU,OAAO,KAAG,YAAU,OAAO,GAAE,KAAG;MAAO,IAAG,YAAU,OAAO,GAAE,IAAG,MAAM,QAAQ,CAAC,GAAE;EAAC,IAAI,IAAE,EAAE;EAAO,KAAI,IAAE,GAAE,IAAE,GAAE,KAAI,EAAE,OAAK,IAAE,EAAE,EAAE,EAAE,OAAK,MAAI,KAAG,MAAK,KAAG;CAAE,OAAM,KAAI,KAAK,GAAE,EAAE,OAAK,MAAI,KAAG,MAAK,KAAG;CAAG,OAAO;AAAC;AAAC,SAAgB,OAAM;CAAC,KAAI,IAAI,GAAE,GAAE,IAAE,GAAE,IAAE,IAAG,IAAE,UAAU,QAAO,IAAE,GAAE,KAAI,CAAC,IAAE,UAAU,QAAM,IAAE,EAAE,CAAC,OAAK,MAAI,KAAG,MAAK,KAAG;CAAG,OAAO;AAAC"}
|
|
@@ -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/dialog/Dialog.vue
|
|
4
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
5
|
+
__name: "Dialog",
|
|
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=dialog.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dialog.js","names":[],"sources":["../../src/dialog/Dialog.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 DialogProps extends DialogRootProps {\n class?: HTMLAttributes['class']\n}\nexport interface DialogEmits extends DialogRootEmits {}\n</script>\n\n<script setup lang=\"ts\">\nimport { DialogRoot, useForwardPropsEmits } from 'reka-ui'\n\nconst props = defineProps<DialogProps>()\nconst emits = defineEmits<DialogEmits>()\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/dialog/DialogClose.vue
|
|
4
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
5
|
+
__name: "DialogClose",
|
|
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=dialogClose.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dialogClose.js","names":[],"sources":["../../src/dialog/DialogClose.vue"],"sourcesContent":["<template>\n <DialogClose v-bind=\"props\">\n <slot/>\n </DialogClose>\n</template>\n\n<script lang=\"ts\">\nimport type { DialogCloseProps as RekaDialogCloseProps } from 'reka-ui'\n\nexport interface DialogCloseProps extends RekaDialogCloseProps {}\n</script>\n\n<script setup lang=\"ts\">\nimport { DialogClose } from 'reka-ui'\n\nconst props = withDefaults(defineProps<DialogCloseProps>(), {\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,101 @@
|
|
|
1
|
+
import { _sfc_main as _sfc_main$1 } from "./dialogClose.js";
|
|
2
|
+
import { clsx } from "../clsx.js";
|
|
3
|
+
import { _sfc_main as _sfc_main$2 } from "./dialogOverlay.js";
|
|
4
|
+
import { 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/dialog/DialogContent.vue
|
|
9
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
10
|
+
inheritAttrs: false,
|
|
11
|
+
__name: "DialogContent",
|
|
12
|
+
props: {
|
|
13
|
+
class: { type: [
|
|
14
|
+
Boolean,
|
|
15
|
+
null,
|
|
16
|
+
String,
|
|
17
|
+
Object,
|
|
18
|
+
Array
|
|
19
|
+
] },
|
|
20
|
+
showCloseButton: {
|
|
21
|
+
type: Boolean,
|
|
22
|
+
default: true
|
|
23
|
+
},
|
|
24
|
+
forceMount: { type: Boolean },
|
|
25
|
+
disableOutsidePointerEvents: { type: Boolean },
|
|
26
|
+
asChild: { type: Boolean },
|
|
27
|
+
as: {}
|
|
28
|
+
},
|
|
29
|
+
emits: [
|
|
30
|
+
"escapeKeyDown",
|
|
31
|
+
"pointerDownOutside",
|
|
32
|
+
"focusOutside",
|
|
33
|
+
"interactOutside",
|
|
34
|
+
"openAutoFocus",
|
|
35
|
+
"closeAutoFocus"
|
|
36
|
+
],
|
|
37
|
+
setup(__props, { emit: __emit }) {
|
|
38
|
+
const props = __props;
|
|
39
|
+
const emits = __emit;
|
|
40
|
+
const forwarded = useForwardPropsEmits(reactiveOmit(props, "class"), emits);
|
|
41
|
+
return (_ctx, _cache) => {
|
|
42
|
+
return openBlock(), createBlock(unref(DialogPortal), null, {
|
|
43
|
+
default: withCtx(() => [createVNode(unref(AnimatePresence), { as: "div" }, {
|
|
44
|
+
default: withCtx(() => [createVNode(unref(_sfc_main$2), { "as-child": "" }, {
|
|
45
|
+
default: withCtx(() => [createVNode(unref(Motion), {
|
|
46
|
+
initial: { opacity: 0 },
|
|
47
|
+
animate: { opacity: 1 },
|
|
48
|
+
exit: { opacity: 0 },
|
|
49
|
+
transition: {
|
|
50
|
+
duration: .2,
|
|
51
|
+
ease: "easeInOut"
|
|
52
|
+
}
|
|
53
|
+
})]),
|
|
54
|
+
_: 1
|
|
55
|
+
}), createVNode(unref(DialogContent), mergeProps({
|
|
56
|
+
..._ctx.$attrs,
|
|
57
|
+
...unref(forwarded)
|
|
58
|
+
}, {
|
|
59
|
+
class: unref(clsx)("arvue-dialog-content", props.class),
|
|
60
|
+
"as-child": ""
|
|
61
|
+
}), {
|
|
62
|
+
default: withCtx(() => [createVNode(unref(Motion), {
|
|
63
|
+
initial: {
|
|
64
|
+
y: "2rem",
|
|
65
|
+
opacity: 0
|
|
66
|
+
},
|
|
67
|
+
animate: {
|
|
68
|
+
y: 0,
|
|
69
|
+
opacity: 1
|
|
70
|
+
},
|
|
71
|
+
exit: {
|
|
72
|
+
y: "2rem",
|
|
73
|
+
opacity: 0
|
|
74
|
+
},
|
|
75
|
+
transition: {
|
|
76
|
+
duration: .2,
|
|
77
|
+
ease: "easeInOut"
|
|
78
|
+
}
|
|
79
|
+
}, {
|
|
80
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default"), __props.showCloseButton ? (openBlock(), createBlock(unref(_sfc_main$1), {
|
|
81
|
+
key: 0,
|
|
82
|
+
class: "arvue-dialog-close-button icon"
|
|
83
|
+
}, {
|
|
84
|
+
default: withCtx(() => [..._cache[0] || (_cache[0] = [createElementVNode("i", { class: "fas fa-times" }, null, -1)])]),
|
|
85
|
+
_: 1
|
|
86
|
+
})) : createCommentVNode("v-if", true)]),
|
|
87
|
+
_: 3
|
|
88
|
+
})]),
|
|
89
|
+
_: 3
|
|
90
|
+
}, 16, ["class"])]),
|
|
91
|
+
_: 3
|
|
92
|
+
})]),
|
|
93
|
+
_: 3
|
|
94
|
+
});
|
|
95
|
+
};
|
|
96
|
+
}
|
|
97
|
+
});
|
|
98
|
+
//#endregion
|
|
99
|
+
export { _sfc_main };
|
|
100
|
+
|
|
101
|
+
//# sourceMappingURL=dialogContent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dialogContent.js","names":["$attrs"],"sources":["../../src/dialog/DialogContent.vue"],"sourcesContent":["<style>\n@import './dialog-content.css';\n</style>\n\n<template>\n <DialogPortal>\n <AnimatePresence as=\"div\">\n <DialogOverlay as-child>\n <Motion\n :initial=\"{ opacity: 0 }\"\n :animate=\"{ opacity: 1 }\"\n :exit=\"{ opacity: 0 }\"\n :transition=\"{\n duration: .2,\n ease: 'easeInOut',\n }\"\n />\n </DialogOverlay>\n <DialogContent\n v-bind=\"{ ...$attrs, ...forwarded }\"\n :class=\"clsx('arvue-dialog-content', props.class)\"\n as-child\n >\n <Motion\n :initial=\"{\n y: '2rem',\n opacity: 0,\n }\"\n :animate=\"{\n y: 0,\n opacity: 1,\n }\"\n :exit=\"{\n y: '2rem',\n opacity: 0,\n }\"\n :transition=\"{\n duration: .2,\n ease: 'easeInOut',\n }\"\n >\n <slot/>\n <DialogClose\n v-if=\"showCloseButton\"\n class=\"arvue-dialog-close-button icon\"\n >\n <i class=\"fas fa-times\"/>\n </DialogClose>\n </Motion>\n </DialogContent>\n </AnimatePresence>\n </DialogPortal>\n</template>\n\n<script lang=\"ts\">\nimport type {\n DialogContentEmits as RekaDialogContentEmits,\n DialogContentProps as RekaDialogContentProps,\n} from 'reka-ui'\nimport type { HTMLAttributes } from 'vue'\n\nexport interface DialogContentProps extends RekaDialogContentProps {\n class?: HTMLAttributes['class']\n showCloseButton?: boolean\n}\n\nexport interface DialogContentEmits extends RekaDialogContentEmits {\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 { DialogClose, DialogOverlay } from '.'\n\ndefineOptions({\n inheritAttrs: false,\n})\n\nconst props = withDefaults(defineProps<DialogContentProps>(), {\n showCloseButton: true,\n})\nconst emits = defineEmits<DialogContentEmits>()\n\nconst delegatedProps = reactiveOmit(props, 'class')\n\nconst forwarded = useForwardPropsEmits(delegatedProps, emits)\n</script>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAqFA,MAAM,QAAQ;EAGd,MAAM,QAAQ;EAId,MAAM,YAAY,qBAFK,aAAa,OAAO,OAEJ,GAAgB,KAAK;;uBAvFxD,YA8Ce,MAAA,YAAA,GAAA,MAAA;2BADO,CA5ClB,YA4CkB,MAAA,eAAA,GAAA,EA5CD,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,YA+BgB,MAAA,aAAA,GA/BhB,WA+BgB;MAAA,GA9BCA,KAAAA;MAAM,GAAK,MAAA,SAAA;KAAS,GAAA;MAChC,OAAO,MAAA,IAAA,EAAI,wBAAyB,MAAM,KAAK;MAChD,YAAA;;6BA2BS,CAzBT,YAyBS,MAAA,MAAA,GAAA;OAxBJ,SAAS;;;;OAIT,SAAS;;;;OAIT,MAAM;;;;OAIN,YAAY;;;;;8BAKN,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,31 @@
|
|
|
1
|
+
import { clsx } from "../clsx.js";
|
|
2
|
+
import { createBlock, defineComponent, normalizeClass, openBlock, renderSlot, unref, withCtx } from "vue";
|
|
3
|
+
import { Primitive } from "reka-ui";
|
|
4
|
+
//#region src/dialog/DialogDescription.vue
|
|
5
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
6
|
+
__name: "DialogDescription",
|
|
7
|
+
props: {
|
|
8
|
+
class: { type: [
|
|
9
|
+
Boolean,
|
|
10
|
+
null,
|
|
11
|
+
String,
|
|
12
|
+
Object,
|
|
13
|
+
Array
|
|
14
|
+
] },
|
|
15
|
+
asChild: { type: Boolean },
|
|
16
|
+
as: {}
|
|
17
|
+
},
|
|
18
|
+
setup(__props) {
|
|
19
|
+
const props = __props;
|
|
20
|
+
return (_ctx, _cache) => {
|
|
21
|
+
return openBlock(), createBlock(unref(Primitive), { class: normalizeClass(unref(clsx)("arvue-dialog-description", props.class)) }, {
|
|
22
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
23
|
+
_: 3
|
|
24
|
+
}, 8, ["class"]);
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
});
|
|
28
|
+
//#endregion
|
|
29
|
+
export { _sfc_main };
|
|
30
|
+
|
|
31
|
+
//# sourceMappingURL=dialogDescription.js.map
|
|
@@ -0,0 +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"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { clsx } from "../clsx.js";
|
|
2
|
+
import { createBlock, defineComponent, normalizeClass, openBlock, renderSlot, unref, withCtx } from "vue";
|
|
3
|
+
import { Primitive } from "reka-ui";
|
|
4
|
+
//#region src/dialog/DialogFooter.vue
|
|
5
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
6
|
+
__name: "DialogFooter",
|
|
7
|
+
props: { class: { type: [
|
|
8
|
+
Boolean,
|
|
9
|
+
null,
|
|
10
|
+
String,
|
|
11
|
+
Object,
|
|
12
|
+
Array
|
|
13
|
+
] } },
|
|
14
|
+
setup(__props) {
|
|
15
|
+
const props = __props;
|
|
16
|
+
return (_ctx, _cache) => {
|
|
17
|
+
return openBlock(), createBlock(unref(Primitive), { class: normalizeClass(unref(clsx)("arvue-dialog-footer", props.class)) }, {
|
|
18
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
19
|
+
_: 3
|
|
20
|
+
}, 8, ["class"]);
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
//#endregion
|
|
25
|
+
export { _sfc_main };
|
|
26
|
+
|
|
27
|
+
//# sourceMappingURL=dialogFooter.js.map
|
|
@@ -0,0 +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"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { clsx } from "../clsx.js";
|
|
2
|
+
import { createBlock, defineComponent, normalizeClass, openBlock, renderSlot, unref, withCtx } from "vue";
|
|
3
|
+
import { Primitive } from "reka-ui";
|
|
4
|
+
//#region src/dialog/DialogHeader.vue
|
|
5
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
6
|
+
__name: "DialogHeader",
|
|
7
|
+
props: { class: { type: [
|
|
8
|
+
Boolean,
|
|
9
|
+
null,
|
|
10
|
+
String,
|
|
11
|
+
Object,
|
|
12
|
+
Array
|
|
13
|
+
] } },
|
|
14
|
+
setup(__props) {
|
|
15
|
+
const props = __props;
|
|
16
|
+
return (_ctx, _cache) => {
|
|
17
|
+
return openBlock(), createBlock(unref(Primitive), { class: normalizeClass(unref(clsx)("arvue-dialog-header", props.class)) }, {
|
|
18
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
19
|
+
_: 3
|
|
20
|
+
}, 8, ["class"]);
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
//#endregion
|
|
25
|
+
export { _sfc_main };
|
|
26
|
+
|
|
27
|
+
//# sourceMappingURL=dialogHeader.js.map
|
|
@@ -0,0 +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"}
|
|
@@ -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/dialog/DialogOverlay.vue
|
|
6
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
7
|
+
__name: "DialogOverlay",
|
|
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-dialog-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=dialogOverlay.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dialogOverlay.js","names":[],"sources":["../../src/dialog/DialogOverlay.vue"],"sourcesContent":["<style>\n@import './dialog-overlay.css';\n</style>\n\n<template>\n <DialogOverlay\n v-bind=\"delegatedProps\"\n :class=\"clsx('arvue-dialog-overlay', props.class)\"\n >\n <slot/>\n </DialogOverlay>\n</template>\n\n<script lang=\"ts\">\nimport type { DialogOverlayProps as RekaDialogOverlayProps } from 'reka-ui'\nimport type { HTMLAttributes } from 'vue'\n\nexport interface DialogOverlayProps extends RekaDialogOverlayProps {\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<DialogOverlayProps>()\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,31 @@
|
|
|
1
|
+
import { clsx } from "../clsx.js";
|
|
2
|
+
import { createBlock, defineComponent, normalizeClass, openBlock, renderSlot, unref, withCtx } from "vue";
|
|
3
|
+
import { Primitive } from "reka-ui";
|
|
4
|
+
//#region src/dialog/DialogTitle.vue
|
|
5
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
6
|
+
__name: "DialogTitle",
|
|
7
|
+
props: {
|
|
8
|
+
class: { type: [
|
|
9
|
+
Boolean,
|
|
10
|
+
null,
|
|
11
|
+
String,
|
|
12
|
+
Object,
|
|
13
|
+
Array
|
|
14
|
+
] },
|
|
15
|
+
asChild: { type: Boolean },
|
|
16
|
+
as: {}
|
|
17
|
+
},
|
|
18
|
+
setup(__props) {
|
|
19
|
+
const props = __props;
|
|
20
|
+
return (_ctx, _cache) => {
|
|
21
|
+
return openBlock(), createBlock(unref(Primitive), { class: normalizeClass(unref(clsx)("arvue-dialog-title", props.class)) }, {
|
|
22
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
23
|
+
_: 3
|
|
24
|
+
}, 8, ["class"]);
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
});
|
|
28
|
+
//#endregion
|
|
29
|
+
export { _sfc_main };
|
|
30
|
+
|
|
31
|
+
//# sourceMappingURL=dialogTitle.js.map
|
|
@@ -0,0 +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"}
|
|
@@ -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/dialog/DialogTrigger.vue
|
|
4
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
5
|
+
__name: "DialogTrigger",
|
|
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=dialogTrigger.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dialogTrigger.js","names":[],"sources":["../../src/dialog/DialogTrigger.vue"],"sourcesContent":["<template>\n <DialogTrigger v-bind=\"props\">\n <slot/>\n </DialogTrigger>\n</template>\n\n<script lang=\"ts\">\nimport type { DialogTriggerProps as RekaDialogTriggerProps } from 'reka-ui'\n\nexport interface DialogTriggerProps extends RekaDialogTriggerProps {}\n</script>\n\n<script setup lang=\"ts\">\nimport { DialogTrigger } from 'reka-ui'\n\nconst props = defineProps<DialogTriggerProps>()\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"}
|