@agrotools1/at-components 2.0.14-beta.6 → 2.0.14-beta.7
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/card/Card.vue.js +12 -12
- package/dist/data-table/DataTableColumnHeader.vue.js +7 -7
- package/dist/packages/at-icons/dist/AtCirclePlusSolidIcon/AtCirclePlusSolidIcon.vue.js +46 -0
- package/dist/packages/at-icons/dist/AtCirclePlusSolidIcon/index.js +5 -0
- package/dist/packages/at-icons/dist/AtOrdenacaoRegularIcon/AtOrdenacaoRegularIcon.vue.js +46 -0
- package/dist/packages/at-icons/dist/AtOrdenacaoRegularIcon/index.js +5 -0
- package/dist/packages/at-icons/dist/_virtual/_plugin-vue_export-helper.js +9 -0
- package/dist/packages/at-icons/dist/components/IconWrapper/IconWrapper.vue.js +6 -0
- package/dist/packages/at-icons/dist/components/IconWrapper/IconWrapper.vue2.js +30 -0
- package/package.json +2 -2
package/dist/card/Card.vue.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as i, createBlock as
|
|
2
|
-
import { cn as
|
|
3
|
-
import { AtCirclePlusSolidIcon as p } from "
|
|
1
|
+
import { defineComponent as i, createBlock as r, openBlock as t, unref as e, normalizeClass as a, withCtx as d, createElementVNode as c, renderSlot as u } from "vue";
|
|
2
|
+
import { cn as o } from "../lib/utils.js";
|
|
3
|
+
import { AtCirclePlusSolidIcon as p } from "../packages/at-icons/dist/AtCirclePlusSolidIcon/index.js";
|
|
4
4
|
import { Primitive as f } from "reka-ui";
|
|
5
5
|
import m from "../checkbox/Checkbox.vue.js";
|
|
6
6
|
const h = { class: "self-end-safe" }, w = /* @__PURE__ */ i({
|
|
@@ -12,31 +12,31 @@ const h = { class: "self-end-safe" }, w = /* @__PURE__ */ i({
|
|
|
12
12
|
as: { default: "div" }
|
|
13
13
|
},
|
|
14
14
|
setup(n) {
|
|
15
|
-
const
|
|
16
|
-
return (l, y) => (t(),
|
|
15
|
+
const s = n;
|
|
16
|
+
return (l, y) => (t(), r(e(f), {
|
|
17
17
|
"data-slot": "card",
|
|
18
18
|
role: "button",
|
|
19
19
|
as: l.as,
|
|
20
20
|
"as-child": l.asChild,
|
|
21
|
-
class:
|
|
22
|
-
e(
|
|
21
|
+
class: a(
|
|
22
|
+
e(o)(
|
|
23
23
|
"group relative flex h-full min-h-[184px] w-full max-w-[149px] cursor-pointer flex-col items-center justify-start gap-2 rounded-xl border border-neutral-200 bg-neutral-100 p-4 *:transition-all",
|
|
24
24
|
l.selected ? "bg-primary-100 border-primary-100 selected cursor-default" : "not-selected",
|
|
25
|
-
|
|
25
|
+
s.class
|
|
26
26
|
)
|
|
27
27
|
)
|
|
28
28
|
}, {
|
|
29
29
|
default: d(() => [
|
|
30
30
|
c("div", h, [
|
|
31
|
-
|
|
31
|
+
s.selected ? (t(), r(e(m), {
|
|
32
32
|
key: 0,
|
|
33
|
-
"default-value":
|
|
33
|
+
"default-value": s.selected,
|
|
34
34
|
size: "sm",
|
|
35
35
|
class: "pointer-events-none rounded-full"
|
|
36
|
-
}, null, 8, ["default-value"])) : (t(),
|
|
36
|
+
}, null, 8, ["default-value"])) : (t(), r(e(p), {
|
|
37
37
|
key: 1,
|
|
38
38
|
role: "button",
|
|
39
|
-
class:
|
|
39
|
+
class: a(e(o)("text-primary-500 h-4 w-4 min-w-full cursor-pointer")),
|
|
40
40
|
size: "16"
|
|
41
41
|
}, null, 8, ["class"]))
|
|
42
42
|
]),
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as r, createElementBlock as t, openBlock as
|
|
2
|
-
import { AtOrdenacaoRegularIcon as m } from "
|
|
1
|
+
import { defineComponent as r, createElementBlock as t, openBlock as a, normalizeClass as l, unref as s, createElementVNode as o, createVNode as i, toDisplayString as n, normalizeStyle as c } from "vue";
|
|
2
|
+
import { AtOrdenacaoRegularIcon as m } from "../packages/at-icons/dist/AtOrdenacaoRegularIcon/index.js";
|
|
3
3
|
import { cn as u } from "../lib/utils.js";
|
|
4
4
|
const p = {
|
|
5
5
|
inheritAttrs: !1
|
|
@@ -11,20 +11,20 @@ const p = {
|
|
|
11
11
|
title: {}
|
|
12
12
|
},
|
|
13
13
|
setup(f) {
|
|
14
|
-
return (e, d) => e.column.getCanSort() ? (
|
|
14
|
+
return (e, d) => e.column.getCanSort() ? (a(), t("div", {
|
|
15
15
|
key: 0,
|
|
16
|
-
class: s(
|
|
16
|
+
class: l(s(u)("flex items-center justify-between gap-2", e.$attrs.class ?? ""))
|
|
17
17
|
}, [
|
|
18
18
|
o("span", null, n(e.title), 1),
|
|
19
|
-
i(
|
|
19
|
+
i(s(m), {
|
|
20
20
|
size: "20",
|
|
21
21
|
style: c({
|
|
22
22
|
transform: `scaleY(${[!1, "desc"].includes(e.column.getIsSorted()) ? 1 : -1})`
|
|
23
23
|
})
|
|
24
24
|
}, null, 8, ["style"])
|
|
25
|
-
], 2)) : (
|
|
25
|
+
], 2)) : (a(), t("div", {
|
|
26
26
|
key: 1,
|
|
27
|
-
class:
|
|
27
|
+
class: l(e.$attrs.class)
|
|
28
28
|
}, n(e.title), 3));
|
|
29
29
|
}
|
|
30
30
|
});
|
|
@@ -0,0 +1,46 @@
|
|
|
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
|
+
import w from "../components/IconWrapper/IconWrapper.vue.js";
|
|
3
|
+
const f = ["width", "height"], k = /* @__PURE__ */ s({
|
|
4
|
+
__name: "AtCirclePlusSolidIcon",
|
|
5
|
+
props: {
|
|
6
|
+
size: {},
|
|
7
|
+
color: {},
|
|
8
|
+
class: {},
|
|
9
|
+
style: {},
|
|
10
|
+
onClickCallback: { type: Function }
|
|
11
|
+
},
|
|
12
|
+
setup(o) {
|
|
13
|
+
const i = o;
|
|
14
|
+
return (u, l) => (C(), a(w, c(n(i)), {
|
|
15
|
+
default: h(({ class: r, style: e }) => [
|
|
16
|
+
(C(), p("svg", {
|
|
17
|
+
class: m(r),
|
|
18
|
+
style: d(e),
|
|
19
|
+
fill: "currentColor",
|
|
20
|
+
width: e.width,
|
|
21
|
+
height: e.height,
|
|
22
|
+
viewBox: "0 0 28 28",
|
|
23
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
24
|
+
}, l[0] || (l[0] = [
|
|
25
|
+
t("g", { "clip-path": "url(#clip0_1779_5548)" }, [
|
|
26
|
+
t("path", { d: "M14 1C11.4288 1 8.91543 1.76244 6.77759 3.1909C4.63975 4.61935 2.97351 6.64968 1.98957 9.02512C1.00563 11.4006 0.748189 14.0144 1.2498 16.5362C1.75141 19.0579 2.98953 21.3743 4.80762 23.1924C6.6257 25.0105 8.94208 26.2486 11.4638 26.7502C13.9856 27.2518 16.5995 26.9944 18.9749 26.0104C21.3503 25.0265 23.3806 23.3603 24.8091 21.2224C26.2376 19.0846 27 16.5712 27 14C26.9963 10.5533 25.6254 7.24889 23.1883 4.81173C20.7511 2.37456 17.4467 1.00373 14 1ZM18.3333 15.0833H15.0833V18.3333C15.0833 18.6207 14.9692 18.8962 14.766 19.0994C14.5629 19.3025 14.2873 19.4167 14 19.4167C13.7127 19.4167 13.4371 19.3025 13.234 19.0994C13.0308 18.8962 12.9167 18.6207 12.9167 18.3333V15.0833H9.66667C9.37935 15.0833 9.1038 14.9692 8.90064 14.766C8.69748 14.5629 8.58334 14.2873 8.58334 14C8.58334 13.7127 8.69748 13.4371 8.90064 13.234C9.1038 13.0308 9.37935 12.9167 9.66667 12.9167H12.9167V9.66667C12.9167 9.37935 13.0308 9.1038 13.234 8.90063C13.4371 8.69747 13.7127 8.58333 14 8.58333C14.2873 8.58333 14.5629 8.69747 14.766 8.90063C14.9692 9.1038 15.0833 9.37935 15.0833 9.66667V12.9167H18.3333C18.6207 12.9167 18.8962 13.0308 19.0994 13.234C19.3025 13.4371 19.4167 13.7127 19.4167 14C19.4167 14.2873 19.3025 14.5629 19.0994 14.766C18.8962 14.9692 18.6207 15.0833 18.3333 15.0833Z" })
|
|
27
|
+
], -1),
|
|
28
|
+
t("defs", null, [
|
|
29
|
+
t("clipPath", { id: "clip0_1779_5548" }, [
|
|
30
|
+
t("rect", {
|
|
31
|
+
width: "26",
|
|
32
|
+
height: "26",
|
|
33
|
+
fill: "white",
|
|
34
|
+
transform: "translate(1 1)"
|
|
35
|
+
})
|
|
36
|
+
])
|
|
37
|
+
], -1)
|
|
38
|
+
]), 14, f))
|
|
39
|
+
]),
|
|
40
|
+
_: 1
|
|
41
|
+
}, 16));
|
|
42
|
+
}
|
|
43
|
+
});
|
|
44
|
+
export {
|
|
45
|
+
k as default
|
|
46
|
+
};
|
|
@@ -0,0 +1,46 @@
|
|
|
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
|
+
import w from "../components/IconWrapper/IconWrapper.vue.js";
|
|
3
|
+
const f = ["width", "height"], _ = /* @__PURE__ */ a({
|
|
4
|
+
__name: "AtOrdenacaoRegularIcon",
|
|
5
|
+
props: {
|
|
6
|
+
size: {},
|
|
7
|
+
color: {},
|
|
8
|
+
class: {},
|
|
9
|
+
style: {},
|
|
10
|
+
onClickCallback: { type: Function }
|
|
11
|
+
},
|
|
12
|
+
setup(C) {
|
|
13
|
+
const i = C;
|
|
14
|
+
return (g, l) => (o(), s(w, c(n(i)), {
|
|
15
|
+
default: h(({ class: r, style: e }) => [
|
|
16
|
+
(o(), p("svg", {
|
|
17
|
+
class: m(r),
|
|
18
|
+
style: d(e),
|
|
19
|
+
fill: "currentColor",
|
|
20
|
+
width: e.width,
|
|
21
|
+
height: e.height,
|
|
22
|
+
viewBox: "0 0 28 28",
|
|
23
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
24
|
+
}, l[0] || (l[0] = [
|
|
25
|
+
t("g", { "clip-path": "url(#clip0_2078_27)" }, [
|
|
26
|
+
t("path", { d: "M26.9999 2.08333C26.9999 2.68242 26.5146 3.16667 25.9166 3.16667H11.8333C11.2353 3.16667 10.7499 2.68242 10.7499 2.08333C10.7499 1.48425 11.2353 1 11.8333 1H25.9166C26.5146 1 26.9999 1.48425 26.9999 2.08333ZM22.6666 6.41667H11.8333C11.2353 6.41667 10.7499 6.90092 10.7499 7.5C10.7499 8.09908 11.2353 8.58333 11.8333 8.58333H22.6666C23.2646 8.58333 23.7499 8.09908 23.7499 7.5C23.7499 6.90092 23.2646 6.41667 22.6666 6.41667ZM19.4166 11.8333H11.8333C11.2353 11.8333 10.7499 12.3176 10.7499 12.9167C10.7499 13.5158 11.2353 14 11.8333 14H19.4166C20.0146 14 20.4999 13.5158 20.4999 12.9167C20.4999 12.3176 20.0146 11.8333 19.4166 11.8333ZM16.1666 17.25H11.8333C11.2353 17.25 10.7499 17.7343 10.7499 18.3333C10.7499 18.9324 11.2353 19.4167 11.8333 19.4167H16.1666C16.7646 19.4167 17.2499 18.9324 17.2499 18.3333C17.2499 17.7343 16.7646 17.25 16.1666 17.25ZM9.34919 21.9008L7.49994 23.75V2.08333C7.49994 1.48425 7.01461 1 6.41661 1C5.81861 1 5.33328 1.48425 5.33328 2.08333V23.75L3.48294 21.8997C3.05936 21.4761 2.37469 21.4761 1.95111 21.8997C1.52753 22.3233 1.52753 23.0079 1.95111 23.4315L4.88369 26.3641C5.30619 26.7866 5.86086 26.9978 6.41661 26.9978C6.97236 26.9978 7.52594 26.7866 7.94844 26.3641L10.881 23.4315C11.3046 23.0079 11.3046 22.3233 10.881 21.8997C10.4574 21.4761 9.77278 21.4772 9.34919 21.9008Z" })
|
|
27
|
+
], -1),
|
|
28
|
+
t("defs", null, [
|
|
29
|
+
t("clipPath", { id: "clip0_2078_27" }, [
|
|
30
|
+
t("rect", {
|
|
31
|
+
width: "26",
|
|
32
|
+
height: "26",
|
|
33
|
+
fill: "white",
|
|
34
|
+
transform: "translate(1 1)"
|
|
35
|
+
})
|
|
36
|
+
])
|
|
37
|
+
], -1)
|
|
38
|
+
]), 14, f))
|
|
39
|
+
]),
|
|
40
|
+
_: 1
|
|
41
|
+
}, 16));
|
|
42
|
+
}
|
|
43
|
+
});
|
|
44
|
+
export {
|
|
45
|
+
_ as default
|
|
46
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { defineComponent as u, toRefs as p, computed as l, useAttrs as m, createElementBlock as d, openBlock as f, mergeProps as k, renderSlot as v, normalizeStyle as z, normalizeClass as y, unref as C } from "vue";
|
|
2
|
+
const h = ["role"], g = "icon-wrapper", w = /* @__PURE__ */ u({
|
|
3
|
+
__name: "IconWrapper",
|
|
4
|
+
props: {
|
|
5
|
+
size: {},
|
|
6
|
+
color: {},
|
|
7
|
+
class: {},
|
|
8
|
+
style: {},
|
|
9
|
+
onClickCallback: { type: Function }
|
|
10
|
+
},
|
|
11
|
+
setup(r) {
|
|
12
|
+
const e = r, { class: s, style: o } = p(e), n = l(() => ({
|
|
13
|
+
fill: e.color,
|
|
14
|
+
width: e.size || "28",
|
|
15
|
+
height: e.size || "28"
|
|
16
|
+
})), a = m(), c = l(() => a.onClick ? "button" : "figure"), i = l(() => ({
|
|
17
|
+
...n.value,
|
|
18
|
+
...o == null ? void 0 : o.value
|
|
19
|
+
}));
|
|
20
|
+
return (t, S) => (f(), d("span", k(t.$attrs, { role: c.value }), [
|
|
21
|
+
v(t.$slots, "default", {
|
|
22
|
+
class: y([g, C(s)]),
|
|
23
|
+
style: z(i.value)
|
|
24
|
+
}, void 0, !0)
|
|
25
|
+
], 16, h));
|
|
26
|
+
}
|
|
27
|
+
});
|
|
28
|
+
export {
|
|
29
|
+
w as default
|
|
30
|
+
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agrotools1/at-components",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.0.14-beta.
|
|
4
|
+
"version": "2.0.14-beta.7",
|
|
5
5
|
"private": false,
|
|
6
6
|
"description": "Componentes da Agrotools - Versão 2 (com re-export da V1)",
|
|
7
7
|
"author": "Agrotools",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"vue-component-type-helpers": "^2.2.10"
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@agrotools1/at-components1": "^1.1.2-beta.
|
|
46
|
+
"@agrotools1/at-components1": "^1.1.2-beta.3",
|
|
47
47
|
"@floating-ui/dom": "^1.4.2",
|
|
48
48
|
"@floating-ui/vue": "^1.0.1",
|
|
49
49
|
"@vueuse/core": "^13.4.0",
|