@agrotools1/at-components 2.0.18 → 2.0.20

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.
@@ -0,0 +1,4 @@
1
+ import { VersionData } from '../../types';
2
+ declare const v2_0_19: VersionData;
3
+ export default v2_0_19;
4
+ //# sourceMappingURL=v2.0.19.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"v2.0.19.d.ts","sourceRoot":"","sources":["../../../../src/changelog/versions/components/v2.0.19.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAA;AAE9C,QAAA,MAAM,OAAO,EAAE,WAcd,CAAA;AAED,eAAe,OAAO,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"ComboboxInput.vue.d.ts","sourceRoot":"","sources":["../../src/combobox/ComboboxInput.vue"],"names":[],"mappings":"AAqGA,OAAO,KAAK,EAAuC,kBAAkB,EAAE,MAAM,SAAS,CAAA;AAEtF,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,KAAK,CAAA;AASzC,KAAK,WAAW,GAAG,kBAAkB,GAAG;IAClC,KAAK,CAAC,EAAE,cAAc,CAAC,OAAO,CAAC,CAAA;IAC/B,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,eAAe,CAAC,EAAE,OAAO,CAAA;CAC1B,CAAC;AAqCN,iBAAS,cAAc;WA0GT,OAAO,IAA6B;;yBAVpB,GAAG;;;;EAehC;AAmBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;qBAzKG,OAAO;6EAiL7B,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":"ComboboxInput.vue.d.ts","sourceRoot":"","sources":["../../src/combobox/ComboboxInput.vue"],"names":[],"mappings":"AAyGA,OAAO,KAAK,EAAuC,kBAAkB,EAAE,MAAM,SAAS,CAAA;AAEtF,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,KAAK,CAAA;AASzC,KAAK,WAAW,GAAG,kBAAkB,GAAG;IAClC,KAAK,CAAC,EAAE,cAAc,CAAC,OAAO,CAAC,CAAA;IAC/B,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,eAAe,CAAC,EAAE,OAAO,CAAA;CAC1B,CAAC;AAqCN,iBAAS,cAAc;WA8GT,OAAO,IAA6B;;yBAVpB,GAAG;;;;EAehC;AAmBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;qBA7KG,OAAO;6EAqL7B,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,11 +1,11 @@
1
- import { defineComponent as x, computed as y, createElementBlock as a, openBlock as n, normalizeClass as d, unref as t, createBlock as w, createCommentVNode as s, createVNode as l, mergeProps as C, withCtx as B, renderSlot as k } from "vue";
2
- import { reactiveOmit as V } from "@vueuse/core";
3
- import { injectComboboxRootContext as I, useForwardPropsEmits as z, ComboboxInput as P } from "reka-ui";
4
- import { cn as p } from "../lib/utils.js";
1
+ import { defineComponent as x, computed as w, createElementBlock as s, openBlock as a, normalizeClass as p, unref as t, createBlock as C, createCommentVNode as l, createVNode as i, mergeProps as B, withCtx as k, renderSlot as V } from "vue";
2
+ import { reactiveOmit as I } from "@vueuse/core";
3
+ import { injectComboboxRootContext as $, useForwardPropsEmits as z, ComboboxInput as P } from "reka-ui";
4
+ import { cn as m } from "../lib/utils.js";
5
5
  import A 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/search.js";
6
- import $ 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
- import D 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/chevron-down.js";
8
- const _ = /* @__PURE__ */ x({
6
+ import D 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
+ import E 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/chevron-down.js";
8
+ const G = /* @__PURE__ */ x({
9
9
  inheritAttrs: !1,
10
10
  __name: "ComboboxInput",
11
11
  props: {
@@ -20,67 +20,67 @@ const _ = /* @__PURE__ */ x({
20
20
  withClearButton: { type: Boolean, default: !0 }
21
21
  },
22
22
  emits: ["update:modelValue"],
23
- setup(c, { emit: m }) {
24
- const i = c, f = m, o = I(), h = V(i, "class", "withIcon"), v = z(h, f), b = y(() => {
23
+ setup(c, { emit: f }) {
24
+ const n = c, b = f, o = $(), h = I(n, "class", "withIcon"), g = z(h, b), v = w(() => {
25
25
  const e = o.modelValue.value;
26
26
  return Array.isArray(e) ? e.length > 0 : e != null && e !== "";
27
27
  });
28
- function g(e) {
28
+ function y(e) {
29
29
  e.stopPropagation(), e.preventDefault();
30
30
  const r = o.multiple.value ? [] : void 0;
31
31
  o.modelValue.value = r;
32
32
  }
33
33
  return (e, r) => {
34
- var u;
35
- return n(), a("div", {
34
+ var u, d;
35
+ return a(), s("div", {
36
36
  "data-slot": "command-input-wrapper",
37
- class: d(
38
- t(p)(
37
+ class: p(
38
+ t(m)(
39
39
  "selection:bg-primary selection:text-primary-foreground !border-input flex h-10 w-full items-center gap-3 rounded-xl border bg-transparent p-2.5 shadow-xs transition-[color,box-shadow]",
40
- "hover:ring-ring/24 hover:ring-[2px] has-[:disabled]:pointer-events-none",
40
+ (u = t(o).disabled) != null && u.value || n.disabled || e.$attrs.disabled !== void 0 && e.$attrs.disabled !== !1 ? "border-neutral-200 bg-gray-100" : "hover:ring-ring/24 hover:ring-[2px]",
41
41
  "focus-within:ring-ring/24 focus-within:border-none focus-within:ring-[2px]",
42
42
  "aria-invalid:ring-destructive/24 aria-invalid:border-destructive"
43
43
  )
44
44
  )
45
45
  }, [
46
- e.withIcon ? (n(), w(t(A), {
46
+ e.withIcon ? (a(), C(t(A), {
47
47
  key: 0,
48
48
  class: "size-4 shrink-0 opacity-50"
49
- })) : s("", !0),
50
- l(t(P), C({
49
+ })) : l("", !0),
50
+ i(t(P), B({
51
51
  "data-slot": "command-input",
52
- class: t(p)(
53
- "placeholder:text-muted-foreground flex h-full w-full bg-transparent text-sm text-gray-800 outline-hidden disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",
54
- i.class
52
+ class: t(m)(
53
+ "placeholder:text-muted-foreground flex h-full w-full bg-transparent text-sm text-gray-800 outline-hidden disabled:opacity-50 md:text-sm",
54
+ n.class
55
55
  )
56
- }, { ...e.$attrs, ...t(v) }), {
57
- default: B(() => [
58
- k(e.$slots, "default")
56
+ }, { ...e.$attrs, ...t(g) }), {
57
+ default: k(() => [
58
+ V(e.$slots, "default")
59
59
  ]),
60
60
  _: 3
61
61
  }, 16, ["class"]),
62
- e.withClearButton && b.value ? (n(), a("button", {
62
+ e.withClearButton && v.value ? (a(), s("button", {
63
63
  key: 1,
64
64
  type: "button",
65
65
  class: "text-muted-foreground hover:text-foreground cursor-pointer transition-colors",
66
- onClick: g
66
+ onClick: y
67
67
  }, [
68
- l(t($), { class: "size-4" })
69
- ])) : s("", !0),
70
- (u = t(o).disabled) != null && u.value ? s("", !0) : (n(), a("button", {
68
+ i(t(D), { class: "size-4" })
69
+ ])) : l("", !0),
70
+ (d = t(o).disabled) != null && d.value ? l("", !0) : (a(), s("button", {
71
71
  key: 2,
72
72
  type: "button",
73
- class: d(["text-muted-foreground hover:text-foreground cursor-pointer transition-transform", {
73
+ class: p(["text-muted-foreground hover:text-foreground cursor-pointer transition-transform", {
74
74
  "rotate-180": t(o).open.value
75
75
  }]),
76
- onClick: r[0] || (r[0] = (E) => t(o).onOpenChange(!t(o).open.value))
76
+ onClick: r[0] || (r[0] = (F) => t(o).onOpenChange(!t(o).open.value))
77
77
  }, [
78
- l(t(D), { class: "size-4" })
78
+ i(t(E), { class: "size-4" })
79
79
  ], 2))
80
80
  ], 2);
81
81
  };
82
82
  }
83
83
  });
84
84
  export {
85
- _ as default
85
+ G as default
86
86
  };
@@ -31,7 +31,7 @@ const k = { class: "inline-flex gap-1" }, _ = { "aria-hidden": "true" }, j = /*
31
31
  "hover:ring-ring/24 hover:ring-[2px]",
32
32
  "focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] outline-none",
33
33
  "aria-invalid:ring-destructive/20 aria-invalid:border-destructive",
34
- "shadow-xs flex w-fit items-center justify-between gap-2 whitespace-nowrap rounded-xl border bg-transparent p-2.5 text-sm transition-[color,box-shadow]",
34
+ "shadow-xs flex w-full h-10 items-center justify-between gap-2 whitespace-nowrap rounded-xl border bg-transparent p-2.5 text-sm transition-[color,box-shadow]",
35
35
  "disabled:pointer-events-none disabled:cursor-not-allowed disabled:!border-neutral-200 disabled:bg-gray-100 data-[disabled]:pointer-events-none",
36
36
  "*:data-[slot=select-value]:line-clamp-1 *:data-[slot=multi-select-value]:flex *:data-[slot=multi-select-value]:items-stretch *:data-[slot=multi-select-value]:gap-2 [&_svg]:shrink-0",
37
37
  n.class
@@ -1,6 +1,6 @@
1
- import { defineComponent as s, createBlock as c, openBlock as C, normalizeProps as a, guardReactiveProps as n, withCtx as h, createElementBlock as p, normalizeStyle as d, normalizeClass as m, createElementVNode as t } from "vue";
1
+ import { defineComponent as s, createBlock as a, openBlock as C, normalizeProps as c, guardReactiveProps as n, withCtx as h, createElementBlock as p, normalizeStyle as d, normalizeClass as m, createElementVNode as t } from "vue";
2
2
  import w from "../components/IconWrapper/IconWrapper.vue.js";
3
- const u = ["width", "height"], k = /* @__PURE__ */ s({
3
+ const f = ["width", "height"], k = /* @__PURE__ */ s({
4
4
  __name: "AtCirclePlusSolidIcon",
5
5
  props: {
6
6
  size: {},
@@ -11,7 +11,7 @@ const u = ["width", "height"], k = /* @__PURE__ */ s({
11
11
  },
12
12
  setup(o) {
13
13
  const i = o;
14
- return (f, l) => (C(), c(w, a(n(i)), {
14
+ return (u, l) => (C(), a(w, c(n(i)), {
15
15
  default: h(({ class: r, style: e }) => [
16
16
  (C(), p("svg", {
17
17
  class: m(r),
@@ -35,7 +35,7 @@ const u = ["width", "height"], k = /* @__PURE__ */ s({
35
35
  })
36
36
  ])
37
37
  ], -1)
38
- ]), 14, u))
38
+ ]), 14, f))
39
39
  ]),
40
40
  _: 1
41
41
  }, 16));
@@ -1,6 +1,6 @@
1
- import { defineComponent as a, createBlock as c, openBlock as o, normalizeProps as s, guardReactiveProps as n, withCtx as h, createElementBlock as p, normalizeStyle as d, normalizeClass as m, createElementVNode as t } from "vue";
1
+ import { defineComponent as a, createBlock as s, openBlock as o, normalizeProps as c, guardReactiveProps as n, withCtx as h, createElementBlock as p, normalizeStyle as d, normalizeClass as m, createElementVNode as t } from "vue";
2
2
  import w from "../components/IconWrapper/IconWrapper.vue.js";
3
- const g = ["width", "height"], _ = /* @__PURE__ */ a({
3
+ const f = ["width", "height"], _ = /* @__PURE__ */ a({
4
4
  __name: "AtOrdenacaoRegularIcon",
5
5
  props: {
6
6
  size: {},
@@ -11,7 +11,7 @@ const g = ["width", "height"], _ = /* @__PURE__ */ a({
11
11
  },
12
12
  setup(C) {
13
13
  const i = C;
14
- return (u, l) => (o(), c(w, s(n(i)), {
14
+ return (g, l) => (o(), s(w, c(n(i)), {
15
15
  default: h(({ class: r, style: e }) => [
16
16
  (o(), p("svg", {
17
17
  class: m(r),
@@ -35,7 +35,7 @@ const g = ["width", "height"], _ = /* @__PURE__ */ a({
35
35
  })
36
36
  ])
37
37
  ], -1)
38
- ]), 14, g))
38
+ ]), 14, f))
39
39
  ]),
40
40
  _: 1
41
41
  }, 16));
@@ -1,6 +1,6 @@
1
1
  import o from "./IconWrapper.vue2.js";
2
2
  import t from "../../_virtual/_plugin-vue_export-helper.js";
3
- const c = /* @__PURE__ */ t(o, [["__scopeId", "data-v-2c0814de"]]);
3
+ const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-f9855590"]]);
4
4
  export {
5
- c as default
5
+ a as default
6
6
  };
@@ -30,7 +30,7 @@ const N = { class: "flex items-center gap-2" }, I = /* @__PURE__ */ m({
30
30
  "hover:ring-ring/24 hover:ring-[2px]",
31
31
  "focus-visible:ring-ring/50 outline-none focus-visible:ring-[3px]",
32
32
  "aria-invalid:ring-destructive/20 aria-invalid:border-destructive",
33
- "flex w-fit items-center justify-between gap-2 rounded-xl border bg-transparent p-2.5 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow]",
33
+ "flex w-full h-10 items-center justify-between gap-2 rounded-xl border bg-transparent p-2.5 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow]",
34
34
  "disabled:pointer-events-none disabled:cursor-not-allowed disabled:!border-neutral-200 disabled:bg-gray-100 data-[disabled]:pointer-events-none",
35
35
  "*:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2",
36
36
  "[&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@agrotools1/at-components",
3
3
  "type": "module",
4
- "version": "2.0.18",
4
+ "version": "2.0.20",
5
5
  "private": false,
6
6
  "description": "Componentes da Agrotools - Versão 2 (com re-export da V1)",
7
7
  "author": "Agrotools",
@@ -1,4 +0,0 @@
1
- import { VersionData } from '../../types';
2
- declare const v2_0_18: VersionData;
3
- export default v2_0_18;
4
- //# sourceMappingURL=v2.0.18.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"v2.0.18.d.ts","sourceRoot":"","sources":["../../../../src/changelog/versions/components/v2.0.18.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAA;AAE9C,QAAA,MAAM,OAAO,EAAE,WAcd,CAAA;AAED,eAAe,OAAO,CAAA"}