@agrotools1/at-components 2.0.35 → 2.0.36
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/changelog/versions/components/index.d.ts.map +1 -1
- package/dist/changelog/versions/components/v2.0.35.d.ts.map +1 -1
- package/dist/changelog/versions/components/v2.0.36.d.ts +4 -0
- package/dist/changelog/versions/components/v2.0.36.d.ts.map +1 -0
- package/dist/combobox/ComboboxList.vue.d.ts +6 -2
- package/dist/combobox/ComboboxList.vue.d.ts.map +1 -1
- package/dist/combobox/ComboboxList.vue.js +29 -26
- package/dist/data-table/DataTable.vue.d.ts +0 -8
- package/dist/data-table/DataTable.vue.d.ts.map +1 -1
- package/dist/data-table/DataTable.vue.js +28 -31
- package/dist/document-input/DocumentAutoComplete.vue.d.ts.map +1 -1
- package/dist/document-input/DocumentAutoComplete.vue.js +1 -2
- package/dist/dropdown-menu/DropdownMenuContent.vue.d.ts +6 -2
- package/dist/dropdown-menu/DropdownMenuContent.vue.d.ts.map +1 -1
- package/dist/dropdown-menu/DropdownMenuContent.vue.js +28 -25
- package/dist/index.css +1 -1
- package/dist/popover/PopoverContent.vue.d.ts +4 -0
- package/dist/popover/PopoverContent.vue.d.ts.map +1 -1
- package/dist/popover/PopoverContent.vue.js +27 -24
- package/dist/select/SelectContent.vue.d.ts +4 -0
- package/dist/select/SelectContent.vue.d.ts.map +1 -1
- package/dist/select/SelectContent.vue.js +43 -40
- package/dist/sheet/SheetContent.vue.d.ts.map +1 -1
- package/dist/sheet/SheetContent.vue.js +19 -25
- package/dist/sheet/SheetFooter.vue.js +3 -3
- package/dist/sheet/sheetContent.variants.d.ts +6 -0
- package/dist/sheet/sheetContent.variants.d.ts.map +1 -0
- package/dist/sheet/sheetContent.variants.js +20 -0
- package/package.json +1 -1
|
@@ -2,6 +2,8 @@ import { PopoverContentProps } from 'reka-ui';
|
|
|
2
2
|
import { HTMLAttributes } from 'vue';
|
|
3
3
|
type __VLS_Props = PopoverContentProps & {
|
|
4
4
|
class?: HTMLAttributes['class'];
|
|
5
|
+
disablePortal?: boolean;
|
|
6
|
+
positionStrategy?: 'fixed' | 'absolute';
|
|
5
7
|
};
|
|
6
8
|
declare function __VLS_template(): {
|
|
7
9
|
attrs: Partial<{}>;
|
|
@@ -29,6 +31,8 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}
|
|
|
29
31
|
}>, {
|
|
30
32
|
align: "end" | "start" | "center";
|
|
31
33
|
sideOffset: number;
|
|
34
|
+
positionStrategy: "absolute" | "fixed";
|
|
35
|
+
disablePortal: boolean;
|
|
32
36
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
33
37
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
34
38
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PopoverContent.vue.d.ts","sourceRoot":"","sources":["../../src/popover/PopoverContent.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"PopoverContent.vue.d.ts","sourceRoot":"","sources":["../../src/popover/PopoverContent.vue"],"names":[],"mappings":"AAqDA,OAAO,KAAK,EAAuB,mBAAmB,EAAE,MAAM,SAAS,CAAA;AAEvE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,KAAK,CAAA;AAMzC,KAAK,WAAW,GAAG,mBAAmB,GAAG;IACnC,KAAK,CAAC,EAAE,cAAc,CAAC,OAAO,CAAC,CAAA;IAC/B,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,gBAAgB,CAAC,EAAE,OAAO,GAAG,UAAU,CAAA;CACxC,CAAC;AAyBN,iBAAS,cAAc;WA4DT,OAAO,IAA6B;;yBAVpB,GAAG;;;;EAehC;AAcD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;mBA3GC,OAAO;6EAmH3B,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,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as p, createElementBlock as c, openBlock as u, createVNode as a, unref as e, withCtx as s, mergeProps as f, renderSlot as m } from "vue";
|
|
2
|
+
import { cn as y } from "../lib/utils.js";
|
|
2
3
|
import { reactiveOmit as g } from "@vueuse/core";
|
|
3
|
-
import { useForwardPropsEmits as
|
|
4
|
-
|
|
5
|
-
const _ = /* @__PURE__ */ l({
|
|
4
|
+
import { useForwardPropsEmits as h, PopoverPortal as v, PopoverContent as B } from "reka-ui";
|
|
5
|
+
const P = { class: "relative" }, F = /* @__PURE__ */ p({
|
|
6
6
|
inheritAttrs: !1,
|
|
7
7
|
__name: "PopoverContent",
|
|
8
8
|
props: {
|
|
@@ -19,7 +19,7 @@ const _ = /* @__PURE__ */ l({
|
|
|
19
19
|
arrowPadding: {},
|
|
20
20
|
sticky: {},
|
|
21
21
|
hideWhenDetached: { type: Boolean },
|
|
22
|
-
positionStrategy: {},
|
|
22
|
+
positionStrategy: { default: "absolute" },
|
|
23
23
|
updatePositionStrategy: {},
|
|
24
24
|
disableUpdateOnLayoutShift: { type: Boolean },
|
|
25
25
|
prioritizePosition: { type: Boolean },
|
|
@@ -27,29 +27,32 @@ const _ = /* @__PURE__ */ l({
|
|
|
27
27
|
asChild: { type: Boolean },
|
|
28
28
|
as: {},
|
|
29
29
|
disableOutsidePointerEvents: { type: Boolean },
|
|
30
|
-
class: {}
|
|
30
|
+
class: {},
|
|
31
|
+
disablePortal: { type: Boolean, default: !0 }
|
|
31
32
|
},
|
|
32
33
|
emits: ["escapeKeyDown", "pointerDownOutside", "focusOutside", "interactOutside", "openAutoFocus", "closeAutoFocus"],
|
|
33
34
|
setup(i, { emit: n }) {
|
|
34
|
-
const
|
|
35
|
-
return (
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
35
|
+
const t = i, r = n, d = g(t, "class"), l = h(d, r);
|
|
36
|
+
return (o, b) => (u(), c("div", P, [
|
|
37
|
+
a(e(v), { disabled: !0 }, {
|
|
38
|
+
default: s(() => [
|
|
39
|
+
a(e(B), f({ "data-slot": "popover-content" }, { ...e(l), ...o.$attrs, strategy: "absolute" }, {
|
|
40
|
+
class: e(y)(
|
|
41
|
+
"border-input bg-popover text-popover-foreground 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 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-72 origin-(--reka-popover-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden relative",
|
|
42
|
+
t.class
|
|
43
|
+
)
|
|
44
|
+
}), {
|
|
45
|
+
default: s(() => [
|
|
46
|
+
m(o.$slots, "default")
|
|
47
|
+
]),
|
|
48
|
+
_: 3
|
|
49
|
+
}, 16, ["class"])
|
|
50
|
+
]),
|
|
51
|
+
_: 3
|
|
52
|
+
})
|
|
53
|
+
]));
|
|
51
54
|
}
|
|
52
55
|
});
|
|
53
56
|
export {
|
|
54
|
-
|
|
57
|
+
F as default
|
|
55
58
|
};
|
|
@@ -2,6 +2,8 @@ import { SelectContentProps } from 'reka-ui';
|
|
|
2
2
|
import { HTMLAttributes } from 'vue';
|
|
3
3
|
type __VLS_Props = SelectContentProps & {
|
|
4
4
|
class?: HTMLAttributes['class'];
|
|
5
|
+
disablePortal?: boolean;
|
|
6
|
+
positionStrategy?: 'fixed' | 'absolute';
|
|
5
7
|
};
|
|
6
8
|
declare function __VLS_template(): {
|
|
7
9
|
attrs: Partial<{}>;
|
|
@@ -22,6 +24,8 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}
|
|
|
22
24
|
onCloseAutoFocus?: ((event: Event) => any) | undefined;
|
|
23
25
|
}>, {
|
|
24
26
|
position: "item-aligned" | "popper";
|
|
27
|
+
positionStrategy: "absolute" | "fixed";
|
|
28
|
+
disablePortal: boolean;
|
|
25
29
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
26
30
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
27
31
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SelectContent.vue.d.ts","sourceRoot":"","sources":["../../src/select/SelectContent.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SelectContent.vue.d.ts","sourceRoot":"","sources":["../../src/select/SelectContent.vue"],"names":[],"mappings":"AAoEA,OAAO,KAAK,EAAsB,kBAAkB,EAAE,MAAM,SAAS,CAAA;AAErE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,KAAK,CAAA;AAQzC,KAAK,WAAW,GAAG,kBAAkB,GAAG;IAClC,KAAK,CAAC,EAAE,cAAc,CAAC,OAAO,CAAC,CAAA;IAC/B,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,gBAAgB,CAAC,EAAE,OAAO,GAAG,UAAU,CAAA;CACxC,CAAC;AAuBN,iBAAS,cAAc;WAqGT,OAAO,IAA6B;;yBAVpB,GAAG;;;;EAehC;AAiBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;mBArJC,OAAO;6EA6J3B,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,10 +1,10 @@
|
|
|
1
|
-
import { defineComponent as c,
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import { defineComponent as c, createElementBlock as m, openBlock as f, createVNode as t, unref as e, withCtx as a, mergeProps as u, normalizeClass as y, renderSlot as g } from "vue";
|
|
2
|
+
import { cn as i } from "../lib/utils.js";
|
|
3
|
+
import { reactiveOmit as h } from "@vueuse/core";
|
|
4
|
+
import { useForwardPropsEmits as w, SelectPortal as b, SelectContent as B, SelectViewport as v } from "reka-ui";
|
|
5
5
|
import _ from "./SelectScrollDownButton.vue.js";
|
|
6
6
|
import P from "./SelectScrollUpButton.vue.js";
|
|
7
|
-
const
|
|
7
|
+
const S = { class: "relative" }, D = /* @__PURE__ */ c({
|
|
8
8
|
inheritAttrs: !1,
|
|
9
9
|
__name: "SelectContent",
|
|
10
10
|
props: {
|
|
@@ -23,51 +23,54 @@ const $ = /* @__PURE__ */ c({
|
|
|
23
23
|
arrowPadding: {},
|
|
24
24
|
sticky: {},
|
|
25
25
|
hideWhenDetached: { type: Boolean },
|
|
26
|
-
positionStrategy: {},
|
|
26
|
+
positionStrategy: { default: "absolute" },
|
|
27
27
|
updatePositionStrategy: {},
|
|
28
28
|
disableUpdateOnLayoutShift: { type: Boolean },
|
|
29
29
|
prioritizePosition: { type: Boolean },
|
|
30
30
|
reference: {},
|
|
31
31
|
asChild: { type: Boolean },
|
|
32
32
|
as: {},
|
|
33
|
-
class: {}
|
|
33
|
+
class: {},
|
|
34
|
+
disablePortal: { type: Boolean, default: !0 }
|
|
34
35
|
},
|
|
35
36
|
emits: ["closeAutoFocus", "escapeKeyDown", "pointerDownOutside"],
|
|
36
|
-
setup(r, { emit:
|
|
37
|
-
const
|
|
38
|
-
return (
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
37
|
+
setup(r, { emit: l }) {
|
|
38
|
+
const s = r, n = l, d = h(s, "class"), p = w(d, n);
|
|
39
|
+
return (o, k) => (f(), m("div", S, [
|
|
40
|
+
t(e(b), { disabled: !0 }, {
|
|
41
|
+
default: a(() => [
|
|
42
|
+
t(e(B), u({ "data-slot": "select-content" }, { ...e(p), ...o.$attrs, strategy: "absolute" }, {
|
|
43
|
+
class: e(i)(
|
|
44
|
+
"bg-popover text-popover-foreground 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 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 max-h-(--reka-select-content-available-height) min-w-[8rem] overflow-x-hidden overflow-y-auto rounded-xl border shadow-md relative",
|
|
45
|
+
o.position === "popper" && "!border-input data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",
|
|
46
|
+
s.class
|
|
47
|
+
)
|
|
48
|
+
}), {
|
|
49
|
+
default: a(() => [
|
|
50
|
+
t(P),
|
|
51
|
+
t(e(v), {
|
|
52
|
+
class: y(
|
|
53
|
+
e(i)(
|
|
54
|
+
"p-2",
|
|
55
|
+
o.position === "popper" && "h-[var(--reka-select-trigger-height)] w-full min-w-[var(--reka-select-trigger-width)] scroll-my-1"
|
|
56
|
+
)
|
|
54
57
|
)
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
58
|
+
}, {
|
|
59
|
+
default: a(() => [
|
|
60
|
+
g(o.$slots, "default")
|
|
61
|
+
]),
|
|
62
|
+
_: 3
|
|
63
|
+
}, 8, ["class"]),
|
|
64
|
+
t(_)
|
|
65
|
+
]),
|
|
66
|
+
_: 3
|
|
67
|
+
}, 16, ["class"])
|
|
68
|
+
]),
|
|
69
|
+
_: 3
|
|
70
|
+
})
|
|
71
|
+
]));
|
|
69
72
|
}
|
|
70
73
|
});
|
|
71
74
|
export {
|
|
72
|
-
|
|
75
|
+
D as default
|
|
73
76
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SheetContent.vue.d.ts","sourceRoot":"","sources":["../../src/sheet/SheetContent.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SheetContent.vue.d.ts","sourceRoot":"","sources":["../../src/sheet/SheetContent.vue"],"names":[],"mappings":"AAsDA,OAAO,KAAK,EAAsB,kBAAkB,EAAE,MAAM,SAAS,CAAA;AAErE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,KAAK,CAAA;AAOzC,UAAU,iBAAkB,SAAQ,kBAAkB;IACpD,KAAK,CAAC,EAAE,cAAc,CAAC,OAAO,CAAC,CAAA;IAC/B,IAAI,CAAC,EAAE,KAAK,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM,CAAA;CAC3C;AAsBD,iBAAS,cAAc;WA2ET,OAAO,IAA6B;;yBAVpB,GAAG;;;;EAehC;AAkBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;UA1HZ,KAAK,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM;6EAkI1C,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,10 +1,11 @@
|
|
|
1
|
-
import { defineComponent as p, createBlock as
|
|
2
|
-
import { reactiveOmit as
|
|
3
|
-
import { useForwardPropsEmits as
|
|
1
|
+
import { defineComponent as p, createBlock as u, openBlock as f, unref as e, withCtx as s, createVNode as t, mergeProps as m, renderSlot as g, createElementVNode as h } from "vue";
|
|
2
|
+
import { reactiveOmit as C } from "@vueuse/core";
|
|
3
|
+
import { useForwardPropsEmits as _, DialogPortal as y, DialogContent as b, DialogClose as w } from "reka-ui";
|
|
4
4
|
import { cn as B } from "../lib/utils.js";
|
|
5
|
-
import D from "./
|
|
6
|
-
import O from "
|
|
7
|
-
|
|
5
|
+
import { sheetContentVariants as D } from "./sheetContent.variants.js";
|
|
6
|
+
import O from "./SheetOverlay.vue.js";
|
|
7
|
+
import P from "../node_modules/.pnpm/lucide-vue-next@0.542.0_vue@3.5.19_typescript@5.8.3_/node_modules/lucide-vue-next/dist/esm/icons/x.js";
|
|
8
|
+
const $ = /* @__PURE__ */ p({
|
|
8
9
|
inheritAttrs: !1,
|
|
9
10
|
__name: "SheetContent",
|
|
10
11
|
props: {
|
|
@@ -16,28 +17,21 @@ const _ = /* @__PURE__ */ p({
|
|
|
16
17
|
as: {}
|
|
17
18
|
},
|
|
18
19
|
emits: ["escapeKeyDown", "pointerDownOutside", "focusOutside", "interactOutside", "openAutoFocus", "closeAutoFocus"],
|
|
19
|
-
setup(
|
|
20
|
-
const
|
|
21
|
-
return (
|
|
20
|
+
setup(a, { emit: i }) {
|
|
21
|
+
const o = a, l = i, d = C(o, "class", "side"), c = _(d, l);
|
|
22
|
+
return (r, n) => (f(), u(e(y), null, {
|
|
22
23
|
default: s(() => [
|
|
23
|
-
|
|
24
|
-
|
|
24
|
+
t(O),
|
|
25
|
+
t(e(b), m({
|
|
25
26
|
"data-slot": "sheet-content",
|
|
26
|
-
class: e(B)(
|
|
27
|
-
|
|
28
|
-
t.side === "right" && "data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm",
|
|
29
|
-
t.side === "left" && "data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm",
|
|
30
|
-
t.side === "top" && "data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b",
|
|
31
|
-
t.side === "bottom" && "data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t",
|
|
32
|
-
a.class
|
|
33
|
-
)
|
|
34
|
-
}, { ...e(u), ...t.$attrs }), {
|
|
27
|
+
class: e(B)(e(D)({ side: o.side }), o.class)
|
|
28
|
+
}, { ...e(c), ...r.$attrs }), {
|
|
35
29
|
default: s(() => [
|
|
36
|
-
g(
|
|
37
|
-
|
|
30
|
+
g(r.$slots, "default"),
|
|
31
|
+
t(e(w), { class: "ring-offset-background focus:ring-ring rounded-xs focus:outline-hidden data-[state=open]:text-primary-500 absolute right-4 top-4 cursor-pointer focus:ring-2 focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-transparent" }, {
|
|
38
32
|
default: s(() => [
|
|
39
|
-
|
|
40
|
-
|
|
33
|
+
t(e(P), { class: "size-6" }),
|
|
34
|
+
n[0] || (n[0] = h("span", { class: "sr-only" }, "Close", -1))
|
|
41
35
|
]),
|
|
42
36
|
_: 1
|
|
43
37
|
})
|
|
@@ -50,5 +44,5 @@ const _ = /* @__PURE__ */ p({
|
|
|
50
44
|
}
|
|
51
45
|
});
|
|
52
46
|
export {
|
|
53
|
-
|
|
47
|
+
$ as default
|
|
54
48
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as s, createElementBlock as r, openBlock as a, normalizeClass as
|
|
1
|
+
import { defineComponent as s, createElementBlock as r, openBlock as a, normalizeClass as n, unref as l, renderSlot as c } from "vue";
|
|
2
2
|
import { cn as p } from "../lib/utils.js";
|
|
3
3
|
const d = /* @__PURE__ */ s({
|
|
4
4
|
__name: "SheetFooter",
|
|
@@ -7,9 +7,9 @@ const d = /* @__PURE__ */ s({
|
|
|
7
7
|
},
|
|
8
8
|
setup(e) {
|
|
9
9
|
const o = e;
|
|
10
|
-
return (t,
|
|
10
|
+
return (t, m) => (a(), r("div", {
|
|
11
11
|
"data-slot": "sheet-footer",
|
|
12
|
-
class: l(
|
|
12
|
+
class: n(l(p)("mt-auto flex gap-2 py-4", o.class))
|
|
13
13
|
}, [
|
|
14
14
|
c(t.$slots, "default")
|
|
15
15
|
], 2));
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { VariantProps } from 'class-variance-authority';
|
|
2
|
+
export declare const sheetContentVariants: (props?: ({
|
|
3
|
+
side?: "top" | "right" | "bottom" | "left" | null | undefined;
|
|
4
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
5
|
+
export type SheetContentVariants = VariantProps<typeof sheetContentVariants>;
|
|
6
|
+
//# sourceMappingURL=sheetContent.variants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sheetContent.variants.d.ts","sourceRoot":"","sources":["../../src/sheet/sheetContent.variants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAA;AAEjE,eAAO,MAAM,oBAAoB;;8EAiBhC,CAAA;AAED,MAAM,MAAM,oBAAoB,GAAG,YAAY,CAAC,OAAO,oBAAoB,CAAC,CAAA"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { cva as t } from "class-variance-authority";
|
|
2
|
+
const e = t(
|
|
3
|
+
"p-4 bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500",
|
|
4
|
+
{
|
|
5
|
+
variants: {
|
|
6
|
+
side: {
|
|
7
|
+
right: "data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm",
|
|
8
|
+
left: "data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm",
|
|
9
|
+
top: "data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b",
|
|
10
|
+
bottom: "data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t"
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
defaultVariants: {
|
|
14
|
+
side: "right"
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
);
|
|
18
|
+
export {
|
|
19
|
+
e as sheetContentVariants
|
|
20
|
+
};
|