@agrotools1/at-components 2.0.34 → 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.
@@ -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":"AA2CA,OAAO,KAAK,EAAuB,mBAAmB,EAAE,MAAM,SAAS,CAAA;AACvE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,KAAK,CAAA;AASzC,KAAK,WAAW,GAAG,mBAAmB,GAAG;IAAE,KAAK,CAAC,EAAE,cAAc,CAAC,OAAO,CAAC,CAAA;CAAE,CAAC;AAqB7E,iBAAS,cAAc;WAsDT,OAAO,IAA6B;;yBAVpB,GAAG;;;;EAehC;AAcD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;6EAQnB,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":"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 l, createBlock as p, openBlock as c, unref as e, withCtx as a, createVNode as f, mergeProps as u, renderSlot as m } from "vue";
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 y, PopoverPortal as h, PopoverContent as B } from "reka-ui";
4
- import { cn as P } from "../lib/utils.js";
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 o = i, s = n, r = g(o, "class"), d = y(r, s);
35
- return (t, v) => (c(), p(e(h), null, {
36
- default: a(() => [
37
- f(e(B), u({ "data-slot": "popover-content" }, { ...e(d), ...t.$attrs }, {
38
- class: e(P)(
39
- "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",
40
- o.class
41
- )
42
- }), {
43
- default: a(() => [
44
- m(t.$slots, "default")
45
- ]),
46
- _: 3
47
- }, 16, ["class"])
48
- ]),
49
- _: 3
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
- _ as default
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":"AA4DA,OAAO,KAAK,EAAsB,kBAAkB,EAAE,MAAM,SAAS,CAAA;AACrE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,KAAK,CAAA;AAazC,KAAK,WAAW,GAAG,kBAAkB,GAAG;IAAE,KAAK,CAAC,EAAE,cAAc,CAAC,OAAO,CAAC,CAAA;CAAE,CAAC;AAmB5E,iBAAS,cAAc;WA+FT,OAAO,IAA6B;;yBAVpB,GAAG;;;;EAehC;AAiBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;6EAQnB,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":"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, createBlock as m, openBlock as f, unref as e, withCtx as a, createVNode as o, mergeProps as u, normalizeClass as g, renderSlot as h } from "vue";
2
- import { reactiveOmit as y } from "@vueuse/core";
3
- import { useForwardPropsEmits as w, SelectPortal as B, SelectContent as v, SelectViewport as b } from "reka-ui";
4
- import { cn as s } from "../lib/utils.js";
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 $ = /* @__PURE__ */ c({
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: n }) {
37
- const i = r, l = n, d = y(i, "class"), p = w(d, l);
38
- return (t, S) => (f(), m(e(B), null, {
39
- default: a(() => [
40
- o(e(v), u({ "data-slot": "select-content" }, { ...e(p), ...t.$attrs }, {
41
- class: e(s)(
42
- "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 relative z-50 max-h-(--reka-select-content-available-height) min-w-[8rem] overflow-x-hidden overflow-y-auto rounded-xl border shadow-md",
43
- t.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",
44
- i.class
45
- )
46
- }), {
47
- default: a(() => [
48
- o(P),
49
- o(e(b), {
50
- class: g(
51
- e(s)(
52
- "p-2",
53
- t.position === "popper" && "h-[var(--reka-select-trigger-height)] w-full min-w-[var(--reka-select-trigger-width)] scroll-my-1"
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
- default: a(() => [
58
- h(t.$slots, "default")
59
- ]),
60
- _: 3
61
- }, 8, ["class"]),
62
- o(_)
63
- ]),
64
- _: 3
65
- }, 16, ["class"])
66
- ]),
67
- _: 3
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
- $ as default
75
+ D as default
73
76
  };
@@ -1 +1 @@
1
- {"version":3,"file":"SheetContent.vue.d.ts","sourceRoot":"","sources":["../../src/sheet/SheetContent.vue"],"names":[],"mappings":"AAgEA,OAAO,KAAK,EAAsB,kBAAkB,EAAE,MAAM,SAAS,CAAA;AACrE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,KAAK,CAAA;AASzC,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;WAqGT,OAAO,IAA6B;;yBAVpB,GAAG;;;;EAehC;AAiBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;UAnJZ,KAAK,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM;6EA2J1C,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":"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 f, openBlock as m, unref as e, withCtx as s, createVNode as o, mergeProps as c, renderSlot as g, createElementVNode as b } from "vue";
2
- import { reactiveOmit as h } from "@vueuse/core";
3
- import { useForwardPropsEmits as w, DialogPortal as y, DialogContent as C, DialogClose as x } from "reka-ui";
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 "./SheetOverlay.vue.js";
6
- import O 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";
7
- const _ = /* @__PURE__ */ p({
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(n, { emit: i }) {
20
- const a = n, d = i, l = h(a, "class", "side"), u = w(l, d);
21
- return (t, r) => (m(), f(e(y), null, {
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
- o(D),
24
- o(e(C), c({
24
+ t(O),
25
+ t(e(b), m({
25
26
  "data-slot": "sheet-content",
26
- class: e(B)(
27
- "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",
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(t.$slots, "default"),
37
- o(e(x), { 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" }, {
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
- o(e(O), { class: "size-6" }),
40
- r[0] || (r[0] = b("span", { class: "sr-only" }, "Close", -1))
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
- _ as default
47
+ $ as default
54
48
  };
@@ -1,4 +1,4 @@
1
- import { defineComponent as s, createElementBlock as r, openBlock as a, normalizeClass as l, unref as n, renderSlot as c } from "vue";
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, f) => (a(), r("div", {
10
+ return (t, m) => (a(), r("div", {
11
11
  "data-slot": "sheet-footer",
12
- class: l(n(p)("mt-auto flex flex-col gap-2 p-4", o.class))
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
+ };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@agrotools1/at-components",
3
3
  "type": "module",
4
- "version": "2.0.34",
4
+ "version": "2.0.36",
5
5
  "private": false,
6
6
  "description": "Componentes da Agrotools - Versão 2 (com re-export da V1)",
7
7
  "author": "Agrotools",
@@ -57,8 +57,8 @@
57
57
  "tw-animate-css": "^1.3.4",
58
58
  "vue-component-type-helpers": "^2.2.0",
59
59
  "vue-sonner": "^2.0.8",
60
- "@agrotools1/at-tailwind-config": "0.2.0",
61
- "@agrotools1/at-icons": "1.0.13"
60
+ "@agrotools1/at-icons": "1.0.13",
61
+ "@agrotools1/at-tailwind-config": "0.2.0"
62
62
  },
63
63
  "devDependencies": {
64
64
  "@internationalized/date": "^3.8.2",