@caipira/tamandua 0.0.64 → 0.0.66
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/Avatar.js +2 -2
- package/dist/{Avatar.vue_vue_type_script_setup_true_lang-BbcM5CB3.js → Avatar.vue_vue_type_script_setup_true_lang-D7NdR9hu.js} +1 -1
- package/dist/Button.js +2 -2
- package/dist/{Button-BThdMs5-.js → Button.vue_vue_type_script_setup_true_lang-CUPz7wT9.js} +81 -79
- package/dist/FileDrop.js +2 -2
- package/dist/{FileDrop.vue_vue_type_script_setup_true_lang-DLEH_LLX.js → FileDrop.vue_vue_type_script_setup_true_lang-BDzMbrCN.js} +26 -26
- package/dist/GraphyPrice.js +2 -2
- package/dist/{GraphyPrice.vue_vue_type_script_setup_true_lang-DI2x-MAS.js → GraphyPrice.vue_vue_type_script_setup_true_lang-BDYxfzF6.js} +1 -1
- package/dist/Icon.js +2 -2
- package/dist/{Icon.vue_vue_type_script_setup_true_lang-CDJweTzy.js → Icon.vue_vue_type_script_setup_true_lang-C2QvF2xM.js} +1 -1
- package/dist/InputCheckbox.js +2 -2
- package/dist/{InputCheckbox.vue_vue_type_style_index_0_lang-BOY41cD-.js → InputCheckbox.vue_vue_type_style_index_0_lang-Dp-FyMon.js} +9 -9
- package/dist/InputRadio.js +2 -2
- package/dist/InputRadio.vue_vue_type_style_index_0_lang-n0nJwz8x.js +35 -0
- package/dist/InputSelect.js +2 -2
- package/dist/{InputSelect.vue_vue_type_script_setup_true_lang-W2S_TcOu.js → InputSelect.vue_vue_type_script_setup_true_lang-BuO105oW.js} +1 -1
- package/dist/InputSwitch.js +2 -2
- package/dist/{InputSwitch.vue_vue_type_script_setup_true_lang-Q3wQlqfk.js → InputSwitch.vue_vue_type_script_setup_true_lang-CgE_12vY.js} +10 -11
- package/dist/Link.js +2 -2
- package/dist/{Link.vue_vue_type_script_setup_true_lang-DIzaFPvW.js → Link.vue_vue_type_script_setup_true_lang-BE-Gh_jJ.js} +1 -1
- package/dist/Pagination.js +2 -2
- package/dist/Pagination.vue_vue_type_script_setup_true_lang-BB6dLKpi.js +106 -0
- package/dist/Popconfirm.js +2 -2
- package/dist/{Popconfirm.vue_vue_type_script_setup_true_lang-CgWeJEGu.js → Popconfirm.vue_vue_type_script_setup_true_lang-C37pLEUq.js} +1 -1
- package/dist/Popover.js +2 -2
- package/dist/{Popover.vue_vue_type_script_setup_true_lang-MaJDdAe0.js → Popover.vue_vue_type_script_setup_true_lang-DoSN5ymu.js} +6 -6
- package/dist/Tag.js +2 -2
- package/dist/{Tag.vue_vue_type_script_setup_true_lang-CkDz2_qz.js → Tag.vue_vue_type_script_setup_true_lang-CKzb-As0.js} +1 -1
- package/dist/Toast.js +2 -2
- package/dist/{Toast.vue_vue_type_script_setup_true_lang-Lw1lJoH3.js → Toast.vue_vue_type_script_setup_true_lang-DcVS4Iyg.js} +1 -1
- package/dist/components.js +20 -20
- package/dist/enums.js +1 -1
- package/dist/index.css +18 -25
- package/dist/{plugin-BU44OLnf.js → plugin-2Cr_XUjp.js} +1 -1
- package/dist/{plugin-BZOU6h10.js → plugin-B63n9_uc.js} +1 -1
- package/dist/{plugin-6ziw5jJj.js → plugin-BShPzL82.js} +1 -1
- package/dist/{plugin-BQqeQUxM.js → plugin-BVJKxqmv.js} +1 -1
- package/dist/{plugin-BOewyU0C.js → plugin-BdTrCTL4.js} +1 -1
- package/dist/{plugin-Bw-AW29_.js → plugin-CEByTREY.js} +1 -1
- package/dist/{plugin-aR9suX-A.js → plugin-CGE6W117.js} +1 -1
- package/dist/{plugin-BscWXR9h.js → plugin-CJ6sqqaI.js} +1 -1
- package/dist/{plugin-hcORPz_I.js → plugin-ColpxTKB.js} +1 -1
- package/dist/plugin-Cr3oXX-8.js +10 -0
- package/dist/{plugin-B5vbbM7n.js → plugin-DJlVAL-g.js} +1 -1
- package/dist/{plugin-DqD4mnko.js → plugin-DNwjBl_u.js} +1 -1
- package/dist/{plugin-CZiSoM73.js → plugin-DPAnsB4s.js} +1 -1
- package/dist/{plugin-Y4yYnlO3.js → plugin-Do2-cqMT.js} +1 -1
- package/dist/{plugin-DPcsc5tO.js → plugin-DxG6Hhao.js} +1 -1
- package/dist/{plugins-CXIwZwnV.js → plugins-BFVTdy-_.js} +26 -26
- package/dist/plugins.js +26 -26
- package/dist/tamandua.js +1 -1
- package/dist/types/components/Button/Button.vue.d.ts +23 -17
- package/dist/types/components/Button/types.d.ts +15 -13
- package/dist/types/components/InputSelect/InputSelect.vue.d.ts +6 -6
- package/dist/{ui-BSiRZzeZ.js → ui-J-lhC9qd.js} +2 -2
- package/package.json +1 -1
- package/dist/Button.css +0 -1
- package/dist/InputRadio.vue_vue_type_style_index_0_lang-DusKEybQ.js +0 -35
- package/dist/Pagination.vue_vue_type_script_setup_true_lang-BNeFZWgA.js +0 -108
- package/dist/plugin-BoP2-VzO.js +0 -10
package/dist/Avatar.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _ as o } from "./Avatar.vue_vue_type_script_setup_true_lang-
|
|
2
|
-
import { p } from "./plugin-
|
|
1
|
+
import { _ as o } from "./Avatar.vue_vue_type_script_setup_true_lang-D7NdR9hu.js";
|
|
2
|
+
import { p } from "./plugin-DNwjBl_u.js";
|
|
3
3
|
export {
|
|
4
4
|
o as Avatar,
|
|
5
5
|
p as AvatarPlugin
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as c, computed as d, resolveComponent as m, openBlock as a, createElementBlock as o, normalizeClass as u, unref as t, createBlock as p, toDisplayString as f, createCommentVNode as h } from "vue";
|
|
2
|
-
import { a as l, b as i } from "./ui-
|
|
2
|
+
import { a as l, b as i } from "./ui-J-lhC9qd.js";
|
|
3
3
|
const _ = ["role"], y = ["src"], S = { key: 2 }, w = /* @__PURE__ */ c({
|
|
4
4
|
name: "TAvatar",
|
|
5
5
|
__name: "Avatar",
|
package/dist/Button.js
CHANGED
|
@@ -1,99 +1,101 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
import { _ as O } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
7
|
-
const W = ["multiple"], V = /* @__PURE__ */ _({
|
|
1
|
+
import { defineComponent as A, useSlots as U, ref as b, computed as c, resolveComponent as _, openBlock as p, createBlock as d, resolveDynamicComponent as z, normalizeClass as D, unref as a, withCtx as P, mergeProps as y, createCommentVNode as u, renderSlot as k, createElementBlock as h, Fragment as L, createTextVNode as F, toDisplayString as M } from "vue";
|
|
2
|
+
import { b as f, a as i, c as t, B as r } from "./ui-J-lhC9qd.js";
|
|
3
|
+
import { g } from "./index-CVD_wAsU.js";
|
|
4
|
+
import "./Icon.vue_vue_type_script_setup_true_lang-C2QvF2xM.js";
|
|
5
|
+
const G = ["multiple"], K = /* @__PURE__ */ A({
|
|
8
6
|
name: "TButton",
|
|
9
7
|
__name: "Button",
|
|
10
8
|
props: {
|
|
9
|
+
animate: {},
|
|
10
|
+
bold: { type: Boolean, default: !1 },
|
|
11
|
+
disabled: { type: Boolean, default: !1 },
|
|
12
|
+
hover: { type: Boolean, default: !0 },
|
|
11
13
|
icon: {},
|
|
12
|
-
|
|
13
|
-
|
|
14
|
+
iconPosition: { default: "left" },
|
|
15
|
+
iconProps: { default: () => ({}) },
|
|
14
16
|
label: { default: "" },
|
|
15
|
-
shape: { default: d.Rounded },
|
|
16
|
-
hover: { type: Boolean, default: !0 },
|
|
17
|
-
variant: { default: r.DEFAULT },
|
|
18
|
-
outline: { type: Boolean, default: !1 },
|
|
19
17
|
multiple: { type: Boolean, default: !1 },
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
18
|
+
outline: { type: Boolean, default: !1 },
|
|
19
|
+
shape: { default: f.Rounded },
|
|
20
|
+
size: { default: i.Default },
|
|
21
|
+
type: { default: t.BUTTON },
|
|
22
|
+
variant: { default: r.DEFAULT }
|
|
23
23
|
},
|
|
24
24
|
emits: ["upload"],
|
|
25
|
-
setup(
|
|
26
|
-
const e =
|
|
25
|
+
setup(S, { expose: T, emit: E }) {
|
|
26
|
+
const e = S, x = E, B = U(), m = b(), s = b(null), R = c(() => {
|
|
27
27
|
switch (e.type) {
|
|
28
|
-
case
|
|
28
|
+
case t.SUBMIT:
|
|
29
29
|
return "submit";
|
|
30
|
-
case
|
|
31
|
-
case
|
|
30
|
+
case t.BUTTON:
|
|
31
|
+
case t.FILE:
|
|
32
32
|
default:
|
|
33
33
|
return "button";
|
|
34
34
|
}
|
|
35
|
-
}),
|
|
35
|
+
}), w = c(() => e.type === t.SUBMIT ? e.label : void 0), N = c(() => {
|
|
36
36
|
switch (e.type) {
|
|
37
|
-
case
|
|
37
|
+
case t.SUBMIT:
|
|
38
38
|
return "input";
|
|
39
|
-
case
|
|
40
|
-
case
|
|
39
|
+
case t.BUTTON:
|
|
40
|
+
case t.FILE:
|
|
41
41
|
default:
|
|
42
42
|
return "button";
|
|
43
43
|
}
|
|
44
|
-
}), C = (
|
|
45
|
-
if (e.type ===
|
|
46
|
-
let
|
|
47
|
-
e.animate.target === "icon" && (
|
|
44
|
+
}), C = (o) => {
|
|
45
|
+
if (e.type === t.SUBMIT && o.preventDefault(), e.type === t.FILE && m.value?.click(), e.animate) {
|
|
46
|
+
let n = null;
|
|
47
|
+
e.animate.target === "icon" && (n = s.value?.reference), n && g.to(n, {
|
|
48
48
|
duration: 0.2,
|
|
49
49
|
...e.animate.animation,
|
|
50
50
|
ease: "power3.easeInOut",
|
|
51
51
|
onComplete: () => {
|
|
52
|
-
|
|
52
|
+
g.set(n, e.animate?.reset);
|
|
53
53
|
}
|
|
54
54
|
});
|
|
55
55
|
}
|
|
56
|
-
}, I = (
|
|
57
|
-
|
|
58
|
-
const
|
|
59
|
-
!
|
|
60
|
-
},
|
|
56
|
+
}, I = (o) => {
|
|
57
|
+
o.stopPropagation();
|
|
58
|
+
const l = o.target.files;
|
|
59
|
+
!l || !l.length || x("upload", l);
|
|
60
|
+
}, v = c(() => {
|
|
61
61
|
switch (e.size) {
|
|
62
|
-
case
|
|
62
|
+
case i.ExtraSmall:
|
|
63
63
|
return 12;
|
|
64
|
-
case
|
|
64
|
+
case i.Small:
|
|
65
65
|
return 16;
|
|
66
|
-
case
|
|
66
|
+
case i.Default:
|
|
67
67
|
return 20;
|
|
68
|
-
case
|
|
68
|
+
case i.Large:
|
|
69
69
|
return 24;
|
|
70
|
-
case
|
|
70
|
+
case i.ExtraLarge:
|
|
71
71
|
return 28;
|
|
72
72
|
default:
|
|
73
73
|
return 20;
|
|
74
74
|
}
|
|
75
|
-
})
|
|
76
|
-
return
|
|
77
|
-
const
|
|
78
|
-
return
|
|
79
|
-
type:
|
|
80
|
-
value:
|
|
75
|
+
});
|
|
76
|
+
return c(() => !!e.label || !!B.default), T({ iconReference: s }), (o, n) => {
|
|
77
|
+
const l = _("t-icon");
|
|
78
|
+
return p(), d(z(N.value), {
|
|
79
|
+
type: R.value,
|
|
80
|
+
value: w.value,
|
|
81
81
|
disabled: e.disabled,
|
|
82
82
|
class: D([{
|
|
83
83
|
// Size
|
|
84
|
-
"text-xs px-1 h-4": e.size === a(
|
|
85
|
-
"text-sm px-2 h-7": e.size === a(
|
|
86
|
-
"text-base px-3 h-9": e.size === a(
|
|
87
|
-
"text-lg px-3.5 h-12": e.size === a(
|
|
88
|
-
"text-xl px-4 h-14": e.size === a(
|
|
84
|
+
"text-xs px-1 h-4": e.size === a(i).ExtraSmall,
|
|
85
|
+
"text-sm px-2 h-7": e.size === a(i).Small,
|
|
86
|
+
"text-base px-3 h-9": e.size === a(i).Default,
|
|
87
|
+
"text-lg px-3.5 h-12": e.size === a(i).Large,
|
|
88
|
+
"text-xl px-4 h-14": e.size === a(i).ExtraLarge,
|
|
89
89
|
// Border
|
|
90
|
-
border: e.outline,
|
|
90
|
+
"border border-color": e.outline,
|
|
91
91
|
// Shape
|
|
92
|
-
"rounded-full": e.shape === a(
|
|
93
|
-
"input-roundness": e.shape === a(
|
|
92
|
+
"rounded-full": e.shape === a(f).Circle,
|
|
93
|
+
"input-roundness": e.shape === a(f).Rounded,
|
|
94
94
|
// Enabled/Disabled
|
|
95
|
-
"cursor-not-allowed
|
|
95
|
+
"cursor-not-allowed": e.disabled,
|
|
96
96
|
"cursor-pointer": !e.disabled,
|
|
97
|
+
// Bold
|
|
98
|
+
"font-bold": e.bold,
|
|
97
99
|
// Default color
|
|
98
100
|
"border-caipira-primary-inverted fill-caipira-primary-inverted": e.variant === a(r).DEFAULT,
|
|
99
101
|
"bg-transparent color-caipira-primary-inverted hover:bg-caipira-primary-inverted hover:color-caipira-primary hover:fill-white": e.variant === a(r).DEFAULT && e.outline,
|
|
@@ -118,45 +120,45 @@ const W = ["multiple"], V = /* @__PURE__ */ _({
|
|
|
118
120
|
"color-caipira-primary-inverted underline font-bold": e.variant === a(r).LINK,
|
|
119
121
|
// Transparent
|
|
120
122
|
"transparent-button": e.variant === a(r).TRANSPARENT,
|
|
121
|
-
"
|
|
122
|
-
}, "input-outline flex items-center select-none whitespace-nowrap"]),
|
|
123
|
+
"hover:bg-[var(--hover-color)]": e.variant === a(r).TRANSPARENT && e.hover
|
|
124
|
+
}, "input-outline inline-flex gap-1 items-center select-none whitespace-nowrap"]),
|
|
123
125
|
role: "button",
|
|
124
126
|
onClick: C
|
|
125
127
|
}, {
|
|
126
|
-
default:
|
|
127
|
-
|
|
128
|
-
e.icon ? (s(), y(p, F({
|
|
128
|
+
default: P(() => [
|
|
129
|
+
e.icon && e.iconPosition === "left" ? (p(), d(l, y({
|
|
129
130
|
key: 0,
|
|
130
131
|
ref_key: "iconReference",
|
|
131
|
-
ref:
|
|
132
|
-
size:
|
|
133
|
-
icon: e.icon
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
}
|
|
141
|
-
}, e.iconProps), null, 16, ["size", "icon", "class"])) : m("", !0),
|
|
142
|
-
e.label && e.type !== a(i).SUBMIT ? (s(), h(P, { key: 1 }, [
|
|
143
|
-
M(G(e.label), 1)
|
|
144
|
-
], 64)) : m("", !0),
|
|
145
|
-
e.type === "file" ? (s(), h("input", {
|
|
132
|
+
ref: s,
|
|
133
|
+
size: v.value,
|
|
134
|
+
icon: e.icon
|
|
135
|
+
}, e.iconProps), null, 16, ["size", "icon"])) : u("", !0),
|
|
136
|
+
k(o.$slots, "default"),
|
|
137
|
+
e.label && e.type !== a(t).SUBMIT ? (p(), h(L, { key: 1 }, [
|
|
138
|
+
F(M(e.label), 1)
|
|
139
|
+
], 64)) : u("", !0),
|
|
140
|
+
e.icon && e.iconPosition === "right" ? (p(), d(l, y({
|
|
146
141
|
key: 2,
|
|
142
|
+
ref_key: "iconReference",
|
|
143
|
+
ref: s,
|
|
144
|
+
size: v.value,
|
|
145
|
+
icon: e.icon
|
|
146
|
+
}, e.iconProps), null, 16, ["size", "icon"])) : u("", !0),
|
|
147
|
+
e.type === "file" ? (p(), h("input", {
|
|
148
|
+
key: 3,
|
|
147
149
|
multiple: e.multiple,
|
|
148
150
|
type: "file",
|
|
149
151
|
ref_key: "fileInput",
|
|
150
|
-
ref:
|
|
152
|
+
ref: m,
|
|
151
153
|
class: "hidden",
|
|
152
154
|
onChange: I
|
|
153
|
-
}, null, 40,
|
|
155
|
+
}, null, 40, G)) : u("", !0)
|
|
154
156
|
]),
|
|
155
157
|
_: 3
|
|
156
158
|
}, 8, ["type", "value", "disabled", "class"]);
|
|
157
159
|
};
|
|
158
160
|
}
|
|
159
|
-
})
|
|
161
|
+
});
|
|
160
162
|
export {
|
|
161
|
-
|
|
163
|
+
K as _
|
|
162
164
|
};
|
package/dist/FileDrop.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _ as p } from "./FileDrop.vue_vue_type_script_setup_true_lang-
|
|
2
|
-
import { p as i } from "./plugin-
|
|
1
|
+
import { _ as p } from "./FileDrop.vue_vue_type_script_setup_true_lang-BDzMbrCN.js";
|
|
2
|
+
import { p as i } from "./plugin-CJ6sqqaI.js";
|
|
3
3
|
export {
|
|
4
4
|
p as FileDrop,
|
|
5
5
|
i as FileDropPlugin
|
|
@@ -5,10 +5,10 @@ const I = { class: "flex items-center justify-center w-full" }, M = {
|
|
|
5
5
|
}, N = { class: "text-xs" }, j = {
|
|
6
6
|
key: 1,
|
|
7
7
|
class: "flex items-center justify-evenly my-4 w-full"
|
|
8
|
-
}, B = { class: "text-center" }, A = /* @__PURE__ */ n("p", { class: "mb-2 text-sm
|
|
8
|
+
}, B = { class: "text-center" }, A = /* @__PURE__ */ n("p", { class: "mb-2 text-sm" }, [
|
|
9
9
|
/* @__PURE__ */ n("span", { class: "font-semibold" }, "Click to upload"),
|
|
10
10
|
/* @__PURE__ */ G(" or drag and drop ")
|
|
11
|
-
], -1), E = { class: "text-xs
|
|
11
|
+
], -1), E = { class: "text-xs" }, K = ["multiple"], J = /* @__PURE__ */ k({
|
|
12
12
|
name: "TFileDrop",
|
|
13
13
|
__name: "FileDrop",
|
|
14
14
|
props: /* @__PURE__ */ F({
|
|
@@ -20,39 +20,39 @@ const I = { class: "flex items-center justify-center w-full" }, M = {
|
|
|
20
20
|
}),
|
|
21
21
|
emits: ["update:modelValue"],
|
|
22
22
|
setup(c, { emit: S }) {
|
|
23
|
-
const _ = c,
|
|
23
|
+
const _ = c, o = C(c, "modelValue"), u = V(null), v = p(() => o.value.length > 0), h = p(() => {
|
|
24
24
|
switch (_.types) {
|
|
25
25
|
default:
|
|
26
26
|
return "SVG, PNG, JPG or GIF";
|
|
27
27
|
}
|
|
28
|
-
}),
|
|
29
|
-
e.stopPropagation(), e.preventDefault(),
|
|
30
|
-
},
|
|
28
|
+
}), x = (e, i) => {
|
|
29
|
+
e.stopPropagation(), e.preventDefault(), o.value = o.value.filter((l) => l.name !== i);
|
|
30
|
+
}, y = (e) => {
|
|
31
31
|
e.stopPropagation();
|
|
32
|
-
const
|
|
33
|
-
if (!
|
|
32
|
+
const l = e.target.files;
|
|
33
|
+
if (!l || !l.length)
|
|
34
34
|
return;
|
|
35
|
-
const
|
|
36
|
-
|
|
37
|
-
...
|
|
38
|
-
...Array.from(
|
|
39
|
-
(t) => !
|
|
35
|
+
const r = o.value.flatMap((t) => t.name);
|
|
36
|
+
o.value = [
|
|
37
|
+
...o.value,
|
|
38
|
+
...Array.from(l).filter(
|
|
39
|
+
(t) => !r.includes(t.name)
|
|
40
40
|
)
|
|
41
41
|
];
|
|
42
|
-
},
|
|
42
|
+
}, g = (e) => {
|
|
43
43
|
e.stopPropagation(), u.value?.click();
|
|
44
44
|
};
|
|
45
|
-
return (e,
|
|
46
|
-
const
|
|
45
|
+
return (e, i) => {
|
|
46
|
+
const l = d("t-button"), r = d("t-icon");
|
|
47
47
|
return s(), a("div", I, [
|
|
48
48
|
n("label", {
|
|
49
49
|
for: "dropzone-file",
|
|
50
50
|
tabindex: "0",
|
|
51
|
-
class: "flex flex-col items-center justify-center w-full h-full cursor-pointer border input-border
|
|
52
|
-
onKeyup: w(
|
|
51
|
+
class: "flex flex-col items-center justify-center w-full h-full cursor-pointer border input-border input-roundness input-text-color input-bg-color input-outline",
|
|
52
|
+
onKeyup: w(g, ["space", "enter"])
|
|
53
53
|
}, [
|
|
54
|
-
|
|
55
|
-
(s(!0), a(z, null, D(
|
|
54
|
+
v.value ? (s(), a("div", M, [
|
|
55
|
+
(s(!0), a(z, null, D(o.value, (t) => (s(), a("div", {
|
|
56
56
|
key: t.name,
|
|
57
57
|
class: "flex items-center"
|
|
58
58
|
}, [
|
|
@@ -60,26 +60,26 @@ const I = { class: "flex items-center justify-center w-full" }, M = {
|
|
|
60
60
|
class: P(["fs mr-1", [t.name.split(".").pop()]])
|
|
61
61
|
}, null, 2),
|
|
62
62
|
n("span", N, m(t.name), 1),
|
|
63
|
-
f(
|
|
63
|
+
f(l, {
|
|
64
64
|
variant: "transparent",
|
|
65
65
|
size: "sm",
|
|
66
66
|
hover: !1,
|
|
67
67
|
icon: "trash-can-outline",
|
|
68
68
|
class: "text-red-400",
|
|
69
69
|
role: "button",
|
|
70
|
-
onClick: (b) =>
|
|
70
|
+
onClick: (b) => x(b, t.name)
|
|
71
71
|
}, null, 8, ["onClick"])
|
|
72
72
|
]))), 128))
|
|
73
73
|
])) : (s(), a("div", j, [
|
|
74
|
-
f(
|
|
75
|
-
class: "
|
|
74
|
+
f(r, {
|
|
75
|
+
class: "text-[var(--unfocused-color)]",
|
|
76
76
|
icon: "upload",
|
|
77
77
|
role: "button",
|
|
78
78
|
size: "lg"
|
|
79
79
|
}),
|
|
80
80
|
n("div", B, [
|
|
81
81
|
A,
|
|
82
|
-
n("p", E, m(
|
|
82
|
+
n("p", E, m(h.value), 1)
|
|
83
83
|
])
|
|
84
84
|
])),
|
|
85
85
|
n("input", {
|
|
@@ -90,7 +90,7 @@ const I = { class: "flex items-center justify-center w-full" }, M = {
|
|
|
90
90
|
type: "file",
|
|
91
91
|
class: "hidden",
|
|
92
92
|
multiple: e.multiple,
|
|
93
|
-
onChange:
|
|
93
|
+
onChange: y
|
|
94
94
|
}, null, 40, K)
|
|
95
95
|
], 32)
|
|
96
96
|
]);
|
package/dist/GraphyPrice.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _ as a } from "./GraphyPrice.vue_vue_type_script_setup_true_lang-
|
|
2
|
-
import { p as o } from "./plugin-
|
|
1
|
+
import { _ as a } from "./GraphyPrice.vue_vue_type_script_setup_true_lang-BDYxfzF6.js";
|
|
2
|
+
import { p as o } from "./plugin-CGE6W117.js";
|
|
3
3
|
export {
|
|
4
4
|
a as GraphyPrice,
|
|
5
5
|
o as GraphyPricePlugin
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as c, reactive as p, watch as l, openBlock as s, createElementBlock as u, normalizeClass as m, unref as r, toDisplayString as v } from "vue";
|
|
2
|
-
import { G as e } from "./ui-
|
|
2
|
+
import { G as e } from "./ui-J-lhC9qd.js";
|
|
3
3
|
import { g as f } from "./index-CVD_wAsU.js";
|
|
4
4
|
import { useI18n as y } from "vue-i18n";
|
|
5
5
|
const _ = /* @__PURE__ */ c({
|
package/dist/Icon.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _ as n } from "./Icon.vue_vue_type_script_setup_true_lang-
|
|
2
|
-
import { p as a } from "./plugin-
|
|
1
|
+
import { _ as n } from "./Icon.vue_vue_type_script_setup_true_lang-C2QvF2xM.js";
|
|
2
|
+
import { p as a } from "./plugin-BShPzL82.js";
|
|
3
3
|
export {
|
|
4
4
|
n as Icon,
|
|
5
5
|
a as IconPlugin
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as u, ref as m, computed as p, watch as h, openBlock as f, createElementBlock as d, normalizeClass as b, unref as o, normalizeStyle as k } from "vue";
|
|
2
|
-
import { a as t } from "./ui-
|
|
2
|
+
import { a as t } from "./ui-J-lhC9qd.js";
|
|
3
3
|
const x = (n, i) => {
|
|
4
4
|
const s = n[i];
|
|
5
5
|
return s ? typeof s == "function" ? s() : Promise.resolve(s) : new Promise((r, e) => {
|
package/dist/InputCheckbox.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _ as e } from "./InputCheckbox.vue_vue_type_style_index_0_lang-
|
|
2
|
-
import { p as t } from "./plugin-
|
|
1
|
+
import { _ as e } from "./InputCheckbox.vue_vue_type_style_index_0_lang-Dp-FyMon.js";
|
|
2
|
+
import { p as t } from "./plugin-BVJKxqmv.js";
|
|
3
3
|
export {
|
|
4
4
|
e as InputCheckbox,
|
|
5
5
|
t as InputCheckboxPlugin
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import './InputCheckbox.css';
|
|
2
|
-
import { defineComponent as u, ref as m, watch as f, resolveComponent as b, openBlock as i, createElementBlock as h, withDirectives as v, createElementVNode as
|
|
2
|
+
import { defineComponent as u, ref as m, watch as f, resolveComponent as b, openBlock as i, createElementBlock as h, withDirectives as v, createElementVNode as _, mergeProps as k, vModelCheckbox as y, createBlock as x, withCtx as B, createTextVNode as C, toDisplayString as V, createCommentVNode as g } from "vue";
|
|
3
3
|
const I = { class: "h-9 inline-flex items-center" }, w = ["indeterminate", "disabled"];
|
|
4
4
|
let N = 0;
|
|
5
5
|
const D = /* @__PURE__ */ u({
|
|
@@ -14,35 +14,35 @@ const D = /* @__PURE__ */ u({
|
|
|
14
14
|
},
|
|
15
15
|
emits: ["update:model-value", "input"],
|
|
16
16
|
setup(r, { emit: d }) {
|
|
17
|
-
const t = r,
|
|
17
|
+
const t = r, l = d, o = `checkbox_${++N}`, a = m(!1), s = () => {
|
|
18
18
|
const e = !a.value;
|
|
19
|
-
|
|
19
|
+
l("update:model-value", e), l("input", e);
|
|
20
20
|
};
|
|
21
21
|
return f(
|
|
22
22
|
() => t.modelValue,
|
|
23
23
|
(e) => {
|
|
24
|
-
t.initializeValue && typeof e > "u" &&
|
|
24
|
+
t.initializeValue && typeof e > "u" && l("update:model-value", !1), a.value = e;
|
|
25
25
|
},
|
|
26
26
|
{ immediate: !0 }
|
|
27
27
|
), (e, n) => {
|
|
28
28
|
const p = b("t-graphy-label");
|
|
29
29
|
return i(), h("div", I, [
|
|
30
|
-
v(
|
|
30
|
+
v(_("input", k({
|
|
31
31
|
"onUpdate:modelValue": n[0] || (n[0] = (c) => a.value = c)
|
|
32
32
|
}, e.$attrs, {
|
|
33
33
|
type: "checkbox",
|
|
34
|
-
class: "form-checkbox w-5 h-5 border input-border input-roundness
|
|
34
|
+
class: "form-checkbox w-5 h-5 border input-border input-roundness bg-caipira-primary checked:bg-caipira-primary-inverted input-outline",
|
|
35
35
|
indeterminate: t.isIndeterminate,
|
|
36
|
-
id:
|
|
36
|
+
id: o,
|
|
37
37
|
disabled: e.disabled,
|
|
38
38
|
onInput: s
|
|
39
39
|
}), null, 16, w), [
|
|
40
|
-
[
|
|
40
|
+
[y, a.value]
|
|
41
41
|
]),
|
|
42
42
|
t.label ? (i(), x(p, {
|
|
43
43
|
key: 0,
|
|
44
44
|
class: "cursor-pointer pl-2 mr-3",
|
|
45
|
-
for:
|
|
45
|
+
for: o
|
|
46
46
|
}, {
|
|
47
47
|
default: B(() => [
|
|
48
48
|
C(V(t.label), 1)
|
package/dist/InputRadio.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _ as a } from "./InputRadio.vue_vue_type_style_index_0_lang-
|
|
2
|
-
import { p as t } from "./plugin-
|
|
1
|
+
import { _ as a } from "./InputRadio.vue_vue_type_style_index_0_lang-n0nJwz8x.js";
|
|
2
|
+
import { p as t } from "./plugin-Do2-cqMT.js";
|
|
3
3
|
export {
|
|
4
4
|
a as InputRadio,
|
|
5
5
|
t as InputRadioPlugin
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import './InputRadio.css';
|
|
2
|
+
import { defineComponent as p, inject as r, openBlock as u, createElementBlock as m, createElementVNode as o, unref as a, toDisplayString as b } from "vue";
|
|
3
|
+
const h = { class: "h-9 inline-flex items-center" }, v = ["value", "name", "disabled", "checked"];
|
|
4
|
+
let f = 0;
|
|
5
|
+
const g = /* @__PURE__ */ p({
|
|
6
|
+
name: "TInputRadio",
|
|
7
|
+
__name: "InputRadio",
|
|
8
|
+
props: {
|
|
9
|
+
value: {},
|
|
10
|
+
label: {}
|
|
11
|
+
},
|
|
12
|
+
setup(t) {
|
|
13
|
+
const n = `radio_${++f}`, c = r("name", ""), e = t, l = r("model", ""), d = r("change", () => {
|
|
14
|
+
}), s = r("disabled", !1);
|
|
15
|
+
return (_, i) => (u(), m("div", h, [
|
|
16
|
+
o("input", {
|
|
17
|
+
value: e.value,
|
|
18
|
+
name: a(c),
|
|
19
|
+
id: n,
|
|
20
|
+
disabled: a(s),
|
|
21
|
+
checked: e.value === a(l),
|
|
22
|
+
type: "radio",
|
|
23
|
+
class: "form-radio w-5 h-5 border input-border checked:hover:border-caipira-primary-inverted checked:focus:border-caipira-primary-inverted checked:border-caipira-primary-inverted input-outline focus:input-outline bg-caipira-primary color-caipira-primary",
|
|
24
|
+
onChange: i[0] || (i[0] = (k) => a(d)(e.value))
|
|
25
|
+
}, null, 40, v),
|
|
26
|
+
o("label", {
|
|
27
|
+
class: "cursor-pointer pl-2 mr-3 input-label",
|
|
28
|
+
for: n
|
|
29
|
+
}, b(e.label), 1)
|
|
30
|
+
]));
|
|
31
|
+
}
|
|
32
|
+
});
|
|
33
|
+
export {
|
|
34
|
+
g as _
|
|
35
|
+
};
|
package/dist/InputSelect.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _ as p } from "./InputSelect.vue_vue_type_script_setup_true_lang-
|
|
2
|
-
import { p as r } from "./plugin-
|
|
1
|
+
import { _ as p } from "./InputSelect.vue_vue_type_script_setup_true_lang-BuO105oW.js";
|
|
2
|
+
import { p as r } from "./plugin-DPAnsB4s.js";
|
|
3
3
|
export {
|
|
4
4
|
p as InputSelect,
|
|
5
5
|
r as InputSelectPlugin
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as ue, mergeModels as O, useModel as ne, ref as d, computed as I, onBeforeMount as oe, watch as D, resolveComponent as k, openBlock as o, createBlock as z, normalizeClass as x, withCtx as R, createElementVNode as se, createVNode as K, createElementBlock as p, renderSlot as g, normalizeProps as _, mergeProps as M, Fragment as V, renderList as N, guardReactiveProps as U, toDisplayString as q, createCommentVNode as T, withDirectives as ie, vModelText as re, createSlots as ce, createTextVNode as pe, nextTick as de } from "vue";
|
|
2
|
-
import { a as fe, E as ve } from "./ui-
|
|
2
|
+
import { a as fe, E as ve } from "./ui-J-lhC9qd.js";
|
|
3
3
|
const me = { key: 1 }, ye = ["placeholder", "disabled", "readonly"], he = {
|
|
4
4
|
key: 0,
|
|
5
5
|
class: "inline-flex w-full justify-between items-center"
|
package/dist/InputSwitch.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _ as o } from "./InputSwitch.vue_vue_type_script_setup_true_lang-
|
|
2
|
-
import { p as i } from "./plugin-
|
|
1
|
+
import { _ as o } from "./InputSwitch.vue_vue_type_script_setup_true_lang-CgE_12vY.js";
|
|
2
|
+
import { p as i } from "./plugin-B63n9_uc.js";
|
|
3
3
|
export {
|
|
4
4
|
o as InputSwitch,
|
|
5
5
|
i as InputSwitchPlugin
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as b, ref as v, watch as f, openBlock as
|
|
1
|
+
import { defineComponent as b, ref as v, watch as f, openBlock as r, createElementBlock as i, createElementVNode as t, normalizeClass as o, withDirectives as h, vModelCheckbox as k, toDisplayString as w, createCommentVNode as y } from "vue";
|
|
2
2
|
const g = ["disabled"];
|
|
3
3
|
let V = 0;
|
|
4
4
|
const B = /* @__PURE__ */ b({
|
|
@@ -10,8 +10,8 @@ const B = /* @__PURE__ */ b({
|
|
|
10
10
|
modelValue: { type: Boolean }
|
|
11
11
|
},
|
|
12
12
|
emits: ["update:model-value"],
|
|
13
|
-
setup(
|
|
14
|
-
const s =
|
|
13
|
+
setup(u, { emit: d }) {
|
|
14
|
+
const s = u, c = d, a = `switch_${++V}`, e = v(!1), p = () => {
|
|
15
15
|
const l = !e.value;
|
|
16
16
|
c("update:model-value", l);
|
|
17
17
|
};
|
|
@@ -21,25 +21,24 @@ const B = /* @__PURE__ */ b({
|
|
|
21
21
|
e.value = !!l;
|
|
22
22
|
},
|
|
23
23
|
{ immediate: !0 }
|
|
24
|
-
), (l,
|
|
24
|
+
), (l, n) => (r(), i("div", null, [
|
|
25
25
|
t("div", {
|
|
26
26
|
class: o(["relative inline-block w-12 mr-2 align-middle select-none", {
|
|
27
27
|
"rounded-full": !e.value
|
|
28
28
|
}])
|
|
29
29
|
}, [
|
|
30
30
|
h(t("input", {
|
|
31
|
-
"onUpdate:modelValue":
|
|
31
|
+
"onUpdate:modelValue": n[0] || (n[0] = (m) => e.value = m),
|
|
32
32
|
type: "checkbox",
|
|
33
|
-
class: o(["absolute block w-6 h-6 rounded-full appearance-none cursor-pointer bg-caipira-primary border input-
|
|
34
|
-
"right-0
|
|
35
|
-
"border-caipira-tertiary": !e.value
|
|
33
|
+
class: o(["absolute block w-6 h-6 rounded-full appearance-none cursor-pointer bg-caipira-primary input-outline border input-border", {
|
|
34
|
+
"right-0": e.value
|
|
36
35
|
}]),
|
|
37
36
|
name: a,
|
|
38
37
|
id: a,
|
|
39
38
|
disabled: l.disabled,
|
|
40
39
|
onInput: p
|
|
41
40
|
}, null, 42, g), [
|
|
42
|
-
[
|
|
41
|
+
[k, e.value]
|
|
43
42
|
]),
|
|
44
43
|
t("label", {
|
|
45
44
|
for: a,
|
|
@@ -49,11 +48,11 @@ const B = /* @__PURE__ */ b({
|
|
|
49
48
|
}, "block overflow-hidden h-6 rounded-full cursor-pointer"])
|
|
50
49
|
}, null, 2)
|
|
51
50
|
], 2),
|
|
52
|
-
l.label ? (
|
|
51
|
+
l.label ? (r(), i("label", {
|
|
53
52
|
key: 0,
|
|
54
53
|
class: "text-base cursor-pointer select-none",
|
|
55
54
|
for: a
|
|
56
|
-
},
|
|
55
|
+
}, w(l.label), 1)) : y("", !0)
|
|
57
56
|
]));
|
|
58
57
|
}
|
|
59
58
|
});
|
package/dist/Link.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _ as i } from "./Link.vue_vue_type_script_setup_true_lang-
|
|
2
|
-
import { p } from "./plugin-
|
|
1
|
+
import { _ as i } from "./Link.vue_vue_type_script_setup_true_lang-BE-Gh_jJ.js";
|
|
2
|
+
import { p } from "./plugin-CEByTREY.js";
|
|
3
3
|
export {
|
|
4
4
|
i as Link,
|
|
5
5
|
p as LinkPlugin
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as p, computed as o, resolveComponent as u, openBlock as t, createBlock as r, resolveDynamicComponent as m, mergeProps as d, withCtx as f, renderSlot as _, createElementBlock as k, Fragment as y, createTextVNode as b, toDisplayString as g, createCommentVNode as h } from "vue";
|
|
2
|
-
import { L as a } from "./ui-
|
|
2
|
+
import { L as a } from "./ui-J-lhC9qd.js";
|
|
3
3
|
const w = /* @__PURE__ */ p({
|
|
4
4
|
name: "TLink",
|
|
5
5
|
__name: "Link",
|
package/dist/Pagination.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _ as i } from "./Pagination.vue_vue_type_script_setup_true_lang-
|
|
2
|
-
import { p as r } from "./plugin-
|
|
1
|
+
import { _ as i } from "./Pagination.vue_vue_type_script_setup_true_lang-BB6dLKpi.js";
|
|
2
|
+
import { p as r } from "./plugin-DxG6Hhao.js";
|
|
3
3
|
export {
|
|
4
4
|
i as Pagination,
|
|
5
5
|
r as PaginationPlugin
|