@agrotools1/at-components 2.0.16 → 2.0.17

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.
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/changelog/versions/components/index.ts"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAA;AAE9C,4EAA4E;AAC5E,eAAO,MAAM,kBAAkB,EAAE,WAAW,EAQ3C,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/changelog/versions/components/index.ts"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAA;AAE9C,4EAA4E;AAC5E,eAAO,MAAM,kBAAkB,EAAE,WAAW,EAS3C,CAAA"}
@@ -0,0 +1,4 @@
1
+ import { VersionData } from '../../types';
2
+ declare const v2_0_16: VersionData;
3
+ export default v2_0_16;
4
+ //# sourceMappingURL=v2.0.16.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"v2.0.16.d.ts","sourceRoot":"","sources":["../../../../src/changelog/versions/components/v2.0.16.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":"MultiSelectTrigger.vue.d.ts","sourceRoot":"","sources":["../../src/multi-select/MultiSelectTrigger.vue"],"names":[],"mappings":"AAsEA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAA;AAClD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,KAAK,CAAA;AAQzC,MAAM,WAAW,uBAAwB,SAAQ,mBAAmB;IAClE,KAAK,CAAC,EAAE,cAAc,CAAC,OAAO,CAAC,CAAA;IAC/B,WAAW,CAAC,EAAE,MA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 @@
1
- import { defineComponent as u, createBlock as p, openBlock as s, unref as a, mergeProps as b, withCtx as m, renderSlot as f, createElementVNode as r, createElementBlock as g, createCommentVNode as v, createVNode as i } from "vue";
1
+ import { defineComponent as u, createBlock as p, openBlock as r, unref as a, mergeProps as b, withCtx as m, renderSlot as g, createElementVNode as l, createElementBlock as f, createCommentVNode as v, createVNode as i } from "vue";
2
2
  import { cn as h } from "../lib/utils.js";
3
3
  import x from "../popover/PopoverTrigger.vue.js";
4
4
  import { injectMultiSelectContext as C } from "./contexts.js";
@@ -19,34 +19,40 @@ const k = { class: "inline-flex gap-1" }, _ = { "aria-hidden": "true" }, j = /*
19
19
  e.stopPropagation(), t.clear();
20
20
  }
21
21
  return (e, B) => {
22
- var o, l;
23
- return s(), p(a(x), b({
22
+ var o, s;
23
+ return r(), p(a(x), b({
24
24
  "data-slot": "multi-select-trigger",
25
25
  as: e.as,
26
26
  "as-child": e.asChild,
27
27
  type: e.as === "button" ? "button" : void 0,
28
28
  role: "combobox",
29
29
  class: a(h)(
30
- "!border-input data-[placeholder]:text-muted-foreground enabled:hover:ring-ring/24 enabled:hover:ring-[2px] focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 aria-invalid:border-destructive shadow-xs flex w-fit items-center justify-between gap-2 whitespace-nowrap rounded-xl border bg-transparent p-2.5 text-sm outline-none transition-[color,box-shadow] focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:!border-neutral-200 disabled:bg-gray-100 *: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",
30
+ "!border-input data-[placeholder]:text-muted-foreground",
31
+ "hover:ring-ring/24 hover:ring-[2px] disabled:ring-0 disabled:hover:ring-0 data-[disabled]:ring-0 data-[disabled]:hover:ring-0",
32
+ "focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] outline-none",
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]",
35
+ "disabled:cursor-not-allowed disabled:!border-neutral-200 disabled:bg-gray-100",
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",
31
37
  n.class
32
38
  ),
33
39
  disabled: ((o = a(t).disabled) == null ? void 0 : o.value) || e.disabled,
34
40
  "aria-expanded": a(t).open.value || !1,
35
41
  "aria-haspopup": !0,
36
42
  "data-state": a(t).open.value ? "open" : "closed",
37
- "data-disabled": (l = a(t).disabled) != null && l.value || e.disabled ? "" : void 0
43
+ "data-disabled": (s = a(t).disabled) != null && s.value || e.disabled ? "" : void 0
38
44
  }, e.$attrs), {
39
45
  default: m(() => [
40
- f(e.$slots, "default"),
41
- r("div", k, [
42
- a(t).isEmptyModelValue.value ? v("", !0) : (s(), g("button", {
46
+ g(e.$slots, "default"),
47
+ l("div", k, [
48
+ a(t).isEmptyModelValue.value ? v("", !0) : (r(), f("button", {
43
49
  key: 0,
44
50
  class: "text-primary-500 cursor-pointer bg-none",
45
51
  onClick: c
46
52
  }, [
47
53
  i(a(y), { class: "size-5" })
48
54
  ])),
49
- r("span", _, [
55
+ l("span", _, [
50
56
  i(a(w), { class: "size-5 text-gray-800" })
51
57
  ])
52
58
  ])
@@ -1 +1 @@
1
- {"version":3,"file":"SelectTrigger.vue.d.ts","sourceRoot":"","sources":["../../src/select/SelectTrigger.vue"],"names":[],"mappings":"AA4EA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAA;AAEjD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,KAAK,CAAA;AAGzC,KAAK,WAAW,GAAG,kBAAkB,GAAG;IAAE,KAAK,CAAC,EAAE,cAAc,CAAC,OAAO,CAAC,CAAC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as m, computed as f, createBlock as g, openBlock as s, unref as t, mergeProps as v, withCtx as n, renderSlot as h, createElementVNode as b, createElementBlock as x, createCommentVNode as w, createVNode as r, withModifiers as C } from "vue";
1
+ import { defineComponent as g, computed as m, createBlock as v, openBlock as l, unref as t, mergeProps as f, withCtx as n, renderSlot as h, createElementVNode as b, createElementBlock as x, createCommentVNode as w, createVNode as r, withModifiers as C } from "vue";
2
2
  import { cn as _ } from "../lib/utils.js";
3
3
  import { reactiveOmit as y } from "@vueuse/core";
4
4
  import { useForwardProps as B, injectSelectRootContext as V, SelectTrigger as k, SelectIcon as P } from "reka-ui";
5
5
  import z 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";
6
6
  import S 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";
7
- const N = { class: "flex items-center gap-2" }, I = /* @__PURE__ */ m({
7
+ const N = { class: "flex items-center gap-2" }, I = /* @__PURE__ */ g({
8
8
  __name: "SelectTrigger",
9
9
  props: {
10
10
  disabled: { type: Boolean },
@@ -19,25 +19,32 @@ const N = { class: "flex items-center gap-2" }, I = /* @__PURE__ */ m({
19
19
  function u(e) {
20
20
  e.stopPropagation(), e.preventDefault(), o.multiple.value ? o.modelValue.value = [] : o.modelValue.value = void 0;
21
21
  }
22
- const p = f(() => {
22
+ const p = m(() => {
23
23
  const e = o.modelValue.value;
24
24
  return Array.isArray(e) ? e.length > 0 : e != null && e !== "";
25
25
  });
26
- return (e, l) => (s(), g(t(k), v({ "data-slot": "select-trigger" }, t(c), {
26
+ return (e, s) => (l(), v(t(k), f({ "data-slot": "select-trigger" }, t(c), {
27
27
  class: t(_)(
28
28
  // eslint-disable-next-line prettier/prettier
29
- "!border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground enabled:hover:ring-ring/24 enabled:hover:ring-[2px] focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 aria-invalid:border-destructive 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] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:!border-neutral-200 disabled:bg-gray-100 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
29
+ "!border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground",
30
+ "hover:ring-ring/24 hover:ring-[2px] disabled:ring-0 disabled:hover:ring-0 data-[disabled]:ring-0 data-[disabled]:hover:ring-0",
31
+ "focus-visible:ring-ring/50 outline-none focus-visible:ring-[3px]",
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]",
34
+ "disabled:cursor-not-allowed disabled:!border-neutral-200 disabled:bg-gray-100",
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
+ "[&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
30
37
  a.class
31
38
  )
32
39
  }), {
33
40
  default: n(() => [
34
41
  h(e.$slots, "default"),
35
42
  b("div", N, [
36
- e.withClearButton && p.value ? (s(), x("div", {
43
+ e.withClearButton && p.value ? (l(), x("div", {
37
44
  key: 0,
38
45
  role: "button",
39
46
  class: "text-muted-foreground hover:text-foreground z-10 cursor-pointer transition-colors",
40
- onPointerdown: l[0] || (l[0] = C(() => {
47
+ onPointerdown: s[0] || (s[0] = C(() => {
41
48
  }, ["stop"])),
42
49
  onClick: u
43
50
  }, [
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@agrotools1/at-components",
3
3
  "type": "module",
4
- "version": "2.0.16",
4
+ "version": "2.0.17",
5
5
  "private": false,
6
6
  "description": "Componentes da Agrotools - Versão 2 (com re-export da V1)",
7
7
  "author": "Agrotools",
@@ -55,8 +55,8 @@
55
55
  "tailwind-merge": "^3.3.1",
56
56
  "tw-animate-css": "^1.3.4",
57
57
  "vue-sonner": "^2.0.8",
58
- "@agrotools1/at-tailwind-config": "0.2.0",
59
- "@agrotools1/at-icons": "1.0.8"
58
+ "@agrotools1/at-icons": "1.0.8",
59
+ "@agrotools1/at-tailwind-config": "0.2.0"
60
60
  },
61
61
  "devDependencies": {
62
62
  "@internationalized/date": "^3.8.2",