@agrotools1/at-components 2.0.37 → 2.0.39

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 (40) hide show
  1. package/dist/alert-dialog/AlertDialogContent.vue.d.ts +1 -0
  2. package/dist/alert-dialog/AlertDialogContent.vue.d.ts.map +1 -1
  3. package/dist/alert-dialog/AlertDialogContent.vue.js +26 -22
  4. package/dist/changelog/versions/components/index.d.ts.map +1 -1
  5. package/dist/changelog/versions/components/v2.0.38.d.ts +4 -0
  6. package/dist/changelog/versions/components/v2.0.38.d.ts.map +1 -0
  7. package/dist/changelog/versions/components/v2.0.39.d.ts +4 -0
  8. package/dist/changelog/versions/components/v2.0.39.d.ts.map +1 -0
  9. package/dist/composables/use-z-index-style.d.ts +3 -0
  10. package/dist/composables/use-z-index-style.d.ts.map +1 -0
  11. package/dist/composables/use-z-index-style.js +10 -0
  12. package/dist/dialog/DialogContent.vue.d.ts +1 -0
  13. package/dist/dialog/DialogContent.vue.d.ts.map +1 -1
  14. package/dist/dialog/DialogContent.vue.js +32 -26
  15. package/dist/dialog/DialogOverlay.vue.d.ts.map +1 -1
  16. package/dist/dialog/DialogOverlay.vue.js +13 -15
  17. package/dist/dialog/DialogScrollContent.vue.d.ts +1 -0
  18. package/dist/dialog/DialogScrollContent.vue.d.ts.map +1 -1
  19. package/dist/dialog/DialogScrollContent.vue.js +31 -25
  20. package/dist/dialog/index.d.ts +1 -0
  21. package/dist/dialog/index.d.ts.map +1 -1
  22. package/dist/dialog/index.js +21 -20
  23. package/dist/index.css +1 -1
  24. package/dist/index.js +316 -315
  25. package/dist/tabs/TabsList.vue.d.ts +412 -5
  26. package/dist/tabs/TabsList.vue.d.ts.map +1 -1
  27. package/dist/tabs/TabsList.vue.js +98 -21
  28. package/dist/tabs/TabsTrigger.vue.d.ts +1 -1
  29. package/dist/tabs/TabsTrigger.vue.d.ts.map +1 -1
  30. package/dist/tabs/TabsTrigger.vue.js +15 -12
  31. package/dist/tabs/index.d.ts +2 -5
  32. package/dist/tabs/index.d.ts.map +1 -1
  33. package/dist/tabs/index.js +10 -24
  34. package/dist/tabs/tabs.variants.d.ts +6 -0
  35. package/dist/tabs/tabs.variants.d.ts.map +1 -0
  36. package/dist/tabs/tabs.variants.js +18 -0
  37. package/dist/tabs/useTabsOverflow.d.ts +20 -0
  38. package/dist/tabs/useTabsOverflow.d.ts.map +1 -0
  39. package/dist/tabs/useTabsOverflow.js +51 -0
  40. package/package.json +1 -1
@@ -4,6 +4,7 @@ import { DialogContentVariants } from '../dialog';
4
4
  export interface Props extends AlertDialogContentProps {
5
5
  class?: HTMLAttributes['class'];
6
6
  variant?: DialogContentVariants['variant'];
7
+ zIndex?: number;
7
8
  }
8
9
  declare function __VLS_template(): {
9
10
  attrs: Partial<{}>;
@@ -1 +1 @@
1
- {"version":3,"file":"AlertDialogContent.vue.d.ts","sourceRoot":"","sources":["../../src/alert-dialog/AlertDialogContent.vue"],"names":[],"mappings":"AAoDA,OAAO,KAAK,EAA2B,uBAAuB,EAAE,MAAM,SAAS,CAAA;AAC/E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,KAAK,CAAA;AACzC,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,WAAW,CAAA;AAatD,MAAM,WAAW,KAAM,SAAQ,uBAAuB;IACpD,KAAK,CAAC,EAAE,cAAc,CAAC,OAAO,CAAC,CAAA;IAC/B,OAAO,CAAC,EAAE,qBAAqB,CAAC,SAAS,CAAC,CAAA;CAC3C;AAcD,iBAAS,cAAc;WAqET,OAAO,IAA6B;;yBAVpB,GAAG;;;;EAehC;AAgBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;6EASnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAapG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"AlertDialogContent.vue.d.ts","sourceRoot":"","sources":["../../src/alert-dialog/AlertDialogContent.vue"],"names":[],"mappings":"AA2DA,OAAO,KAAK,EAA2B,uBAAuB,EAAE,MAAM,SAAS,CAAA;AAO/E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,KAAK,CAAA;AACzC,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,WAAW,CAAA;AAOtD,MAAM,WAAW,KAAM,SAAQ,uBAAuB;IACpD,KAAK,CAAC,EAAE,cAAc,CAAC,OAAO,CAAC,CAAA;IAC/B,OAAO,CAAC,EAAE,qBAAqB,CAAC,SAAS,CAAC,CAAA;IAC1C,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB;AAgBD,iBAAS,cAAc;WAwET,OAAO,IAA6B;;yBAVpB,GAAG;;;;EAehC;AAkBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;6EASnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAapG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -1,44 +1,48 @@
1
- import { defineComponent as c, createBlock as m, openBlock as p, unref as t, withCtx as o, createVNode as s, mergeProps as u, renderSlot as f } from "vue";
2
- import { reactiveOmit as g } from "@vueuse/core";
3
- import { useForwardPropsEmits as v, AlertDialogPortal as w, AlertDialogOverlay as y, AlertDialogContent as x } from "reka-ui";
4
- import { cn as A } from "../lib/utils.js";
5
- import { dialogContentVariants as C } from "../dialog/index.js";
6
- const h = /* @__PURE__ */ c({
1
+ import { defineComponent as m, createBlock as p, openBlock as u, unref as t, withCtx as s, createVNode as l, normalizeStyle as f, normalizeClass as y, mergeProps as g, renderSlot as x } from "vue";
2
+ import { reactiveOmit as v } from "@vueuse/core";
3
+ import { useForwardPropsEmits as z, AlertDialogPortal as C, AlertDialogOverlay as w, AlertDialogContent as O } from "reka-ui";
4
+ import { useZIndexStyle as A } from "../composables/use-z-index-style.js";
5
+ import { cn as B } from "../lib/utils.js";
6
+ import { dialogOverlayBaseClass as D, dialogContentVariants as _ } from "../dialog/index.js";
7
+ const V = /* @__PURE__ */ m({
7
8
  __name: "AlertDialogContent",
8
9
  props: {
9
10
  class: {},
10
11
  variant: { default: "alert" },
12
+ zIndex: {},
11
13
  forceMount: { type: Boolean },
12
14
  disableOutsidePointerEvents: { type: Boolean },
13
15
  asChild: { type: Boolean },
14
16
  as: {}
15
17
  },
16
18
  emits: ["escapeKeyDown", "pointerDownOutside", "focusOutside", "interactOutside", "openAutoFocus", "closeAutoFocus"],
17
- setup(n, { emit: l }) {
18
- const a = n, r = l, i = g(a, "class"), d = v(i, r);
19
- return (e, D) => (p(), m(t(w), null, {
20
- default: o(() => [
21
- s(t(y), {
19
+ setup(n, { emit: r }) {
20
+ const e = n, i = r, d = v(e, "class", "zIndex"), c = z(d, i), a = A(() => e.zIndex);
21
+ return (o, I) => (u(), p(t(C), null, {
22
+ default: s(() => [
23
+ l(t(w), {
22
24
  "data-slot": "alert-dialog-overlay",
23
- class: "data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/80"
24
- }),
25
- s(t(x), u({ "data-slot": "alert-dialog-content" }, t(d), {
26
- class: t(A)(
27
- t(C)({ variant: e.variant }),
25
+ class: y(t(D)),
26
+ style: f(t(a))
27
+ }, null, 8, ["class", "style"]),
28
+ l(t(O), g({ "data-slot": "alert-dialog-content" }, t(c), {
29
+ class: t(B)(
30
+ t(_)({ variant: o.variant }),
28
31
  "data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed left-[50%] top-[50%] max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] sm:max-w-lg",
29
- a.class
30
- )
32
+ e.class
33
+ ),
34
+ style: t(a)
31
35
  }), {
32
- default: o(() => [
33
- f(e.$slots, "default")
36
+ default: s(() => [
37
+ x(o.$slots, "default")
34
38
  ]),
35
39
  _: 3
36
- }, 16, ["class"])
40
+ }, 16, ["class", "style"])
37
41
  ]),
38
42
  _: 3
39
43
  }));
40
44
  }
41
45
  });
42
46
  export {
43
- h as default
47
+ V as default
44
48
  };
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/changelog/versions/components/index.ts"],"names":[],"mappings":"AA6BA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAA;AAE9C,4EAA4E;AAC5E,eAAO,MAAM,kBAAkB,EAAE,WAAW,EAsB3C,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/changelog/versions/components/index.ts"],"names":[],"mappings":"AA+BA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAA;AAE9C,4EAA4E;AAC5E,eAAO,MAAM,kBAAkB,EAAE,WAAW,EAwB3C,CAAA"}
@@ -0,0 +1,4 @@
1
+ import { VersionData } from '../../types';
2
+ declare const v2_0_38: VersionData;
3
+ export default v2_0_38;
4
+ //# sourceMappingURL=v2.0.38.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"v2.0.38.d.ts","sourceRoot":"","sources":["../../../../src/changelog/versions/components/v2.0.38.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAA;AAE9C,QAAA,MAAM,OAAO,EAAE,WAqCd,CAAA;AAED,eAAe,OAAO,CAAA"}
@@ -0,0 +1,4 @@
1
+ import { VersionData } from '../../types';
2
+ declare const v2_0_39: VersionData;
3
+ export default v2_0_39;
4
+ //# sourceMappingURL=v2.0.39.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"v2.0.39.d.ts","sourceRoot":"","sources":["../../../../src/changelog/versions/components/v2.0.39.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAA;AAE9C,QAAA,MAAM,OAAO,EAAE,WAuBd,CAAA;AAED,eAAe,OAAO,CAAA"}
@@ -0,0 +1,3 @@
1
+ import { MaybeRefOrGetter, StyleValue } from 'vue';
2
+ export declare function useZIndexStyle(zIndex: MaybeRefOrGetter<number | undefined>): import('vue').ComputedRef<StyleValue>;
3
+ //# sourceMappingURL=use-z-index-style.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-z-index-style.d.ts","sourceRoot":"","sources":["../../src/composables/use-z-index-style.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,UAAU,EAAE,MAAM,KAAK,CAAA;AAGvD,wBAAgB,cAAc,CAAC,MAAM,EAAE,gBAAgB,CAAC,MAAM,GAAG,SAAS,CAAC,yCAK1E"}
@@ -0,0 +1,10 @@
1
+ import { computed as t, toValue as n } from "vue";
2
+ function u(o) {
3
+ return t(() => {
4
+ const e = n(o);
5
+ return e !== void 0 ? { zIndex: e } : void 0;
6
+ });
7
+ }
8
+ export {
9
+ u as useZIndexStyle
10
+ };
@@ -4,6 +4,7 @@ import { DialogContentVariants } from '.';
4
4
  export interface Props extends DialogContentProps {
5
5
  class?: HTMLAttributes['class'];
6
6
  variant?: DialogContentVariants['variant'];
7
+ zIndex?: number;
7
8
  }
8
9
  declare function __VLS_template(): {
9
10
  attrs: Partial<{}>;
@@ -1 +1 @@
1
- {"version":3,"file":"DialogContent.vue.d.ts","sourceRoot":"","sources":["../../src/dialog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A8FT,OAAO,IAA6B;;yBAVpB,GAAG;;;;EAehC;AAmBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;;;;kFAQnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAQpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -1,51 +1,57 @@
1
- import { defineComponent as p, createBlock as m, openBlock as u, unref as t, withCtx as o, createVNode as e, mergeProps as f, renderSlot as g, createElementVNode as _ } from "vue";
2
- import { reactiveOmit as v } from "@vueuse/core";
3
- import { useForwardPropsEmits as y, DialogPortal as C, DialogContent as w, DialogClose as x } from "reka-ui";
4
- import { cn as b } from "../lib/utils.js";
5
- import { dialogContentVariants as D } from "./index.js";
6
- import O from "./DialogOverlay.vue.js";
7
- import B from "../node_modules/.pnpm/lucide-vue-next@0.542.0_vue@3.5.16_typescript@5.8.3_/node_modules/lucide-vue-next/dist/esm/icons/x.js";
8
- const A = /* @__PURE__ */ p({
1
+ import { defineComponent as u, createBlock as m, openBlock as f, unref as e, withCtx as a, createVNode as t, normalizeStyle as g, normalizeClass as y, mergeProps as v, renderSlot as x, createElementVNode as z } from "vue";
2
+ import { reactiveOmit as C } from "@vueuse/core";
3
+ import { useForwardPropsEmits as _, DialogPortal as O, DialogOverlay as w, DialogContent as D, DialogClose as b } from "reka-ui";
4
+ import { useZIndexStyle as B } from "../composables/use-z-index-style.js";
5
+ import { cn as I } from "../lib/utils.js";
6
+ import { dialogOverlayBaseClass as P, dialogContentVariants as S } from "./index.js";
7
+ import h from "../node_modules/.pnpm/lucide-vue-next@0.542.0_vue@3.5.16_typescript@5.8.3_/node_modules/lucide-vue-next/dist/esm/icons/x.js";
8
+ const K = /* @__PURE__ */ u({
9
9
  __name: "DialogContent",
10
10
  props: {
11
11
  class: {},
12
12
  variant: {},
13
+ zIndex: {},
13
14
  forceMount: { type: Boolean },
14
15
  disableOutsidePointerEvents: { type: Boolean },
15
16
  asChild: { type: Boolean },
16
17
  as: { type: [String, Object, Function] }
17
18
  },
18
19
  emits: ["escapeKeyDown", "pointerDownOutside", "focusOutside", "interactOutside", "openAutoFocus", "closeAutoFocus"],
19
- setup(r, { emit: i }) {
20
- const a = r, l = i, d = v(a, "class"), c = y(d, l);
21
- return (s, n) => (u(), m(t(C), null, {
22
- default: o(() => [
23
- e(O),
24
- e(t(w), f({ "data-slot": "dialog-content" }, t(c), {
25
- class: t(b)(
26
- t(D)({ variant: s.variant }),
20
+ setup(l, { emit: i }) {
21
+ const o = l, d = i, c = C(o, "class", "zIndex"), p = _(c, d), s = B(() => o.zIndex);
22
+ return (n, r) => (f(), m(e(O), null, {
23
+ default: a(() => [
24
+ t(e(w), {
25
+ "data-slot": "dialog-overlay",
26
+ class: y(e(P)),
27
+ style: g(e(s))
28
+ }, null, 8, ["class", "style"]),
29
+ t(e(D), v({ "data-slot": "dialog-content" }, e(p), {
30
+ class: e(I)(
31
+ e(S)({ variant: n.variant }),
27
32
  "data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed left-[50%] top-[50%] max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] sm:max-w-lg",
28
- a.class
29
- )
33
+ o.class
34
+ ),
35
+ style: e(s)
30
36
  }), {
31
- default: o(() => [
32
- g(s.$slots, "default"),
33
- e(t(x), { class: "ring-offset-background focus:ring-ring data-[state=open]:text-primary-500 rounded-xs focus:outline-hidden absolute right-4 top-5 cursor-pointer focus:ring-2 focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-transparent [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0" }, {
34
- default: o(() => [
35
- e(t(B)),
36
- n[0] || (n[0] = _("span", { class: "sr-only" }, "Close", -1))
37
+ default: a(() => [
38
+ x(n.$slots, "default"),
39
+ t(e(b), { class: "ring-offset-background focus:ring-ring data-[state=open]:text-primary-500 rounded-xs focus:outline-hidden absolute right-4 top-5 cursor-pointer focus:ring-2 focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-transparent [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0" }, {
40
+ default: a(() => [
41
+ t(e(h)),
42
+ r[0] || (r[0] = z("span", { class: "sr-only" }, "Close", -1))
37
43
  ]),
38
44
  _: 1,
39
45
  __: [0]
40
46
  })
41
47
  ]),
42
48
  _: 3
43
- }, 16, ["class"])
49
+ }, 16, ["class", "style"])
44
50
  ]),
45
51
  _: 3
46
52
  }));
47
53
  }
48
54
  });
49
55
  export {
50
- A as default
56
+ K as default
51
57
  };
@@ -1 +1 @@
1
- {"version":3,"file":"DialogOverlay.vue.d.ts","sourceRoot":"","sources":["../../src/dialog/DialogOverlay.vue"],"names":[],"mappings":"AA4BA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAA;AACjD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,KAAK,CAAA;AAKzC,KAAK,WAAW,GAAG,kBAAkB,GAAG;IAAE,KAAK,CAAC,EAAE,cAAc,CAAC,OAAO,CAAC,CAAA;CAAE,CAAC;AAO5E,iBAAS,cAAc;WA8CT,OAAO,IAA6B;;yBAVrB,GAAG;;;;EAe/B;AAWD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,kSAOnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAQpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"DialogOverlay.vue.d.ts","sourceRoot":"","sources":["../../src/dialog/DialogOverlay.vue"],"names":[],"mappings":"AAyBA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAA;AACjD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,KAAK,CAAA;AAOzC,KAAK,WAAW,GAAG,kBAAkB,GAAG;IAAE,KAAK,CAAC,EAAE,cAAc,CAAC,OAAO,CAAC,CAAA;CAAE,CAAC;AAO5E,iBAAS,cAAc;WAoCT,OAAO,IAA6B;;yBAVrB,GAAG;;;;EAe/B;AAYD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,kSAOnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAQpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -1,8 +1,9 @@
1
- import { defineComponent as r, createBlock as n, openBlock as l, unref as e, mergeProps as c, withCtx as i, renderSlot as d } from "vue";
2
- import { reactiveOmit as p } from "@vueuse/core";
3
- import { DialogOverlay as m } from "reka-ui";
4
- import { cn as f } from "../lib/utils.js";
5
- const B = /* @__PURE__ */ r({
1
+ import { defineComponent as s, createBlock as l, openBlock as n, unref as o, mergeProps as c, withCtx as p, renderSlot as i } from "vue";
2
+ import { reactiveOmit as m } from "@vueuse/core";
3
+ import { DialogOverlay as f } from "reka-ui";
4
+ import { cn as d } from "../lib/utils.js";
5
+ import { dialogOverlayBaseClass as u } from "./index.js";
6
+ const C = /* @__PURE__ */ s({
6
7
  __name: "DialogOverlay",
7
8
  props: {
8
9
  forceMount: { type: Boolean },
@@ -10,21 +11,18 @@ const B = /* @__PURE__ */ r({
10
11
  as: { type: [String, Object, Function] },
11
12
  class: {}
12
13
  },
13
- setup(a) {
14
- const t = a, o = p(t, "class");
15
- return (s, u) => (l(), n(e(m), c({ "data-slot": "dialog-overlay" }, e(o), {
16
- class: e(f)(
17
- "data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/80",
18
- t.class
19
- )
14
+ setup(t) {
15
+ const e = t, a = m(e, "class");
16
+ return (r, g) => (n(), l(o(f), c({ "data-slot": "dialog-overlay" }, o(a), {
17
+ class: o(d)(o(u), e.class)
20
18
  }), {
21
- default: i(() => [
22
- d(s.$slots, "default")
19
+ default: p(() => [
20
+ i(r.$slots, "default")
23
21
  ]),
24
22
  _: 3
25
23
  }, 16, ["class"]));
26
24
  }
27
25
  });
28
26
  export {
29
- B as default
27
+ C as default
30
28
  };
@@ -4,6 +4,7 @@ import { DialogContentVariants } from '.';
4
4
  export interface Props extends DialogContentProps {
5
5
  class?: HTMLAttributes['class'];
6
6
  variant?: DialogContentVariants['variant'];
7
+ zIndex?: number;
7
8
  }
8
9
  declare function __VLS_template(): {
9
10
  attrs: Partial<{}>;
@@ -1 +1 @@
1
- {"version":3,"file":"DialogScrollContent.vue.d.ts","sourceRoot":"","sources":["../../src/dialog/DialogScrollContent.vue"],"names":[],"mappings":"AAwEA,OAAO,KAAK,EAAsB,kBAAkB,EAAE,MAAM,SAAS,CAAA;AACrE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,KAAK,CAAA;AACzC,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,GAAG,CAAA;AAe9C,MAAM,WAAW,KAAM,SAAQ,kBAAkB;IAC/C,KAAK,CAAC,EAAE,cAAc,CAAC,OAAO,CAAC,CAAA;IAC/B,OAAO,CAAC,EAAE,qBAAqB,CAAC,SAAS,CAAC,CAAA;CAC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AC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -1,59 +1,65 @@
1
- import { defineComponent as m, createBlock as g, openBlock as v, unref as t, withCtx as o, createVNode as s, mergeProps as y, renderSlot as w, createElementVNode as D } from "vue";
2
- import { reactiveOmit as _ } from "@vueuse/core";
3
- import { useForwardPropsEmits as b, DialogPortal as C, DialogOverlay as O, DialogContent as x, DialogClose as P } from "reka-ui";
4
- import { cn as k } from "../lib/utils.js";
5
- import { dialogContentVariants as B } from "./index.js";
6
- import E from "../node_modules/.pnpm/lucide-vue-next@0.542.0_vue@3.5.16_typescript@5.8.3_/node_modules/lucide-vue-next/dist/esm/icons/x.js";
7
- const N = /* @__PURE__ */ m({
1
+ import { defineComponent as y, createBlock as v, openBlock as x, unref as e, withCtx as o, createVNode as s, normalizeStyle as C, normalizeClass as w, mergeProps as D, renderSlot as O, createElementVNode as _ } from "vue";
2
+ import { reactiveOmit as z } from "@vueuse/core";
3
+ import { useForwardPropsEmits as b, DialogPortal as B, DialogOverlay as P, DialogContent as S, DialogClose as E } from "reka-ui";
4
+ import { useZIndexStyle as I } from "../composables/use-z-index-style.js";
5
+ import { cn as c } from "../lib/utils.js";
6
+ import { dialogOverlayBaseClass as h, dialogContentVariants as k } from "./index.js";
7
+ import F from "../node_modules/.pnpm/lucide-vue-next@0.542.0_vue@3.5.16_typescript@5.8.3_/node_modules/lucide-vue-next/dist/esm/icons/x.js";
8
+ const M = /* @__PURE__ */ y({
8
9
  __name: "DialogScrollContent",
9
10
  props: {
10
11
  class: {},
11
12
  variant: {},
13
+ zIndex: {},
12
14
  forceMount: { type: Boolean },
13
15
  disableOutsidePointerEvents: { type: Boolean },
14
16
  asChild: { type: Boolean },
15
17
  as: { type: [String, Object, Function] }
16
18
  },
17
19
  emits: ["escapeKeyDown", "pointerDownOutside", "focusOutside", "interactOutside", "openAutoFocus", "closeAutoFocus"],
18
- setup(d, { emit: c }) {
19
- const n = d, u = c, f = _(n, "class"), p = b(f, u);
20
- return (r, e) => (v(), g(t(C), null, {
20
+ setup(u, { emit: p }) {
21
+ const n = u, f = p, m = z(n, "class", "zIndex"), g = b(m, f), a = I(() => n.zIndex);
22
+ return (l, t) => (x(), v(e(B), null, {
21
23
  default: o(() => [
22
- s(t(O), { class: "data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 grid place-items-center overflow-y-auto bg-black/80" }, {
24
+ s(e(P), {
25
+ class: w(e(c)(e(h), "grid place-items-center overflow-y-auto")),
26
+ style: C(e(a))
27
+ }, {
23
28
  default: o(() => [
24
- s(t(x), y({
25
- class: t(k)(
26
- t(B)({ variant: r.variant }),
29
+ s(e(S), D({
30
+ class: e(c)(
31
+ e(k)({ variant: l.variant }),
27
32
  "relative my-8 max-w-lg sm:rounded-xl md:w-full",
28
33
  n.class
29
34
  )
30
- }, t(p), {
31
- onPointerDownOutside: e[0] || (e[0] = (i) => {
32
- const a = i.detail.originalEvent, l = a.target;
33
- (a.offsetX > l.clientWidth || a.offsetY > l.clientHeight) && i.preventDefault();
35
+ }, e(g), {
36
+ style: e(a),
37
+ onPointerDownOutside: t[0] || (t[0] = (i) => {
38
+ const r = i.detail.originalEvent, d = r.target;
39
+ (r.offsetX > d.clientWidth || r.offsetY > d.clientHeight) && i.preventDefault();
34
40
  })
35
41
  }), {
36
42
  default: o(() => [
37
- w(r.$slots, "default"),
38
- s(t(P), { class: "ring-offset-background focus:ring-ring data-[state=open]:text-primary-500 rounded-xs focus:outline-hidden absolute right-4 top-5 cursor-pointer focus:ring-2 focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-transparent [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0" }, {
43
+ O(l.$slots, "default"),
44
+ s(e(E), { class: "ring-offset-background focus:ring-ring data-[state=open]:text-primary-500 rounded-xs focus:outline-hidden absolute right-4 top-5 cursor-pointer focus:ring-2 focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-transparent [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0" }, {
39
45
  default: o(() => [
40
- s(t(E)),
41
- e[1] || (e[1] = D("span", { class: "sr-only" }, "Close", -1))
46
+ s(e(F)),
47
+ t[1] || (t[1] = _("span", { class: "sr-only" }, "Close", -1))
42
48
  ]),
43
49
  _: 1,
44
50
  __: [1]
45
51
  })
46
52
  ]),
47
53
  _: 3
48
- }, 16, ["class"])
54
+ }, 16, ["class", "style"])
49
55
  ]),
50
56
  _: 3
51
- })
57
+ }, 8, ["class", "style"])
52
58
  ]),
53
59
  _: 3
54
60
  }));
55
61
  }
56
62
  });
57
63
  export {
58
- N as default
64
+ M as default
59
65
  };
@@ -10,6 +10,7 @@ export { default as AgtDialogOverlay } from './DialogOverlay.vue';
10
10
  export { default as AgtDialogScrollContent } from './DialogScrollContent.vue';
11
11
  export { default as AgtDialogTitle } from './DialogTitle.vue';
12
12
  export { default as AgtDialogTrigger } from './DialogTrigger.vue';
13
+ export declare const dialogOverlayBaseClass = "data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/80";
13
14
  export declare const dialogContentVariants: (props?: ({
14
15
  variant?: "default" | "destructive" | "success" | "alert" | null | undefined;
15
16
  } & import('class-variance-authority/types').ClassProp) | undefined) => string;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/dialog/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAA;AAG5D,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,cAAc,CAAA;AACnD,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,kBAAkB,CAAA;AAC3D,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,mBAAmB,CAAA;AAC7D,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE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,OAAO,EAAE,OAAO,IAAI,sBAAsB,EAAE,MAAM,2BAA2B,CAAA;AAC7E,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,mBAAmB,CAAA;AAC7D,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,qBAAqB,CAAA;AAEjE,eAAO,MAAM,sBAAsB,2JACuH,CAAA;AAE1J,eAAO,MAAM,qBAAqB;;8EAejC,CAAA;AAED,MAAM,MAAM,qBAAqB,GAAG,YAAY,CAAC,OAAO,qBAAqB,CAAC,CAAA"}
@@ -1,16 +1,16 @@
1
1
  import { cva as t } from "class-variance-authority";
2
- import { default as l } from "./Dialog.vue.js";
3
- import { default as d } from "./DialogBody.vue.js";
4
- import { default as i } from "./DialogClose.vue.js";
2
+ import { default as d } from "./Dialog.vue.js";
3
+ import { default as s } from "./DialogBody.vue.js";
4
+ import { default as f } from "./DialogClose.vue.js";
5
5
  import { default as u } from "./DialogContent.vue.js";
6
- import { default as p } from "./DialogDescription.vue.js";
7
- import { default as x } from "./DialogFooter.vue.js";
6
+ import { default as m } from "./DialogDescription.vue.js";
7
+ import { default as D } from "./DialogFooter.vue.js";
8
8
  import { default as A } from "./DialogHeader.vue.js";
9
- import { default as b } from "./DialogOverlay.vue.js";
10
- import { default as y } from "./DialogScrollContent.vue.js";
11
- import { default as w } from "./DialogTitle.vue.js";
12
- import { default as V } from "./DialogTrigger.vue.js";
13
- const a = t(
9
+ import { default as v } from "./DialogOverlay.vue.js";
10
+ import { default as C } from "./DialogScrollContent.vue.js";
11
+ import { default as z } from "./DialogTitle.vue.js";
12
+ import { default as O } from "./DialogTrigger.vue.js";
13
+ const e = "data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/80", o = t(
14
14
  "z-50 border-t-8 rounded-xl bg-neutral-100 shadow-lg duration-200 grid w-full gap-4",
15
15
  {
16
16
  variants: {
@@ -27,16 +27,17 @@ const a = t(
27
27
  }
28
28
  );
29
29
  export {
30
- l as AgtDialog,
31
- d as AgtDialogBody,
32
- i as AgtDialogClose,
30
+ d as AgtDialog,
31
+ s as AgtDialogBody,
32
+ f as AgtDialogClose,
33
33
  u as AgtDialogContent,
34
- p as AgtDialogDescription,
35
- x as AgtDialogFooter,
34
+ m as AgtDialogDescription,
35
+ D as AgtDialogFooter,
36
36
  A as AgtDialogHeader,
37
- b as AgtDialogOverlay,
38
- y as AgtDialogScrollContent,
39
- w as AgtDialogTitle,
40
- V as AgtDialogTrigger,
41
- a as dialogContentVariants
37
+ v as AgtDialogOverlay,
38
+ C as AgtDialogScrollContent,
39
+ z as AgtDialogTitle,
40
+ O as AgtDialogTrigger,
41
+ o as dialogContentVariants,
42
+ e as dialogOverlayBaseClass
42
43
  };