@caipira/tamandua 0.0.67 → 0.0.69
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/Backdrop.js +2 -2
- package/dist/Backdrop.vue_vue_type_script_setup_true_lang-Dyo6_-EM.js +22 -0
- package/dist/ChartLine.css +1 -1
- package/dist/{Drawer-Cl9_4uHA.js → Drawer-y5xBARd2.js} +1 -1
- package/dist/Drawer.js +2 -2
- package/dist/Dropdown.js +2 -2
- package/dist/{Dropdown.vue_vue_type_script_setup_true_lang-CUPNdEz7.js → Dropdown.vue_vue_type_script_setup_true_lang-MuajPvzR.js} +23 -23
- package/dist/FileDrop.js +2 -2
- package/dist/{FileDrop.vue_vue_type_script_setup_true_lang-BDzMbrCN.js → FileDrop.vue_vue_type_script_setup_true_lang-Bq0lAgZ7.js} +1 -1
- package/dist/FormItem.js +2 -2
- package/dist/FormItem.vue_vue_type_script_setup_true_lang-CInvGeMR.js +71 -0
- package/dist/InputCheckbox.js +2 -2
- package/dist/{InputCheckbox.vue_vue_type_style_index_0_lang-Dp-FyMon.js → InputCheckbox.vue_vue_type_style_index_0_lang-DqRzwkVN.js} +4 -4
- package/dist/InputDate.js +2 -2
- package/dist/{InputDate.vue_vue_type_script_setup_true_lang-BdELykj8.js → InputDate.vue_vue_type_script_setup_true_lang-D0VnFq6E.js} +3 -3
- package/dist/InputPassword.js +2 -2
- package/dist/{InputPassword.vue_vue_type_script_setup_true_lang-BMChy2_E.js → InputPassword.vue_vue_type_script_setup_true_lang-ChHDOnS8.js} +35 -35
- package/dist/InputPrice.js +2 -2
- package/dist/{InputPrice.vue_vue_type_script_setup_true_lang-R3kHhxN2.js → InputPrice.vue_vue_type_script_setup_true_lang-9UZ7YqAf.js} +12 -12
- package/dist/InputRadio.js +2 -2
- package/dist/InputRadio.vue_vue_type_style_index_0_lang-DlTO78_z.js +35 -0
- package/dist/InputSelect.js +2 -2
- package/dist/{InputSelect.vue_vue_type_script_setup_true_lang-CGlaDHiJ.js → InputSelect.vue_vue_type_script_setup_true_lang-Dy5fjzHK.js} +19 -16
- package/dist/InputSwitch.js +2 -2
- package/dist/{InputSwitch.vue_vue_type_script_setup_true_lang-CgE_12vY.js → InputSwitch.vue_vue_type_script_setup_true_lang-BVGfQFZh.js} +10 -9
- package/dist/InputTextarea.js +2 -2
- package/dist/{InputTextarea.vue_vue_type_script_setup_true_lang-q9T4fINI.js → InputTextarea.vue_vue_type_script_setup_true_lang-C8f2hfeZ.js} +11 -11
- package/dist/Modal.js +2 -2
- package/dist/{Modal.vue_vue_type_script_setup_true_lang-DiUI27HX.js → Modal.vue_vue_type_script_setup_true_lang-60BGY-iH.js} +22 -22
- package/dist/Popover-Bq_SpOWb.js +73 -0
- package/dist/Popover.css +1 -0
- package/dist/Popover.js +2 -2
- package/dist/{ProgressCircle-Cpmi2CpO.js → ProgressCircle-C5CnEEoe.js} +14 -14
- package/dist/ProgressCircle.css +1 -1
- package/dist/ProgressCircle.js +2 -2
- package/dist/{ProgressLine-CTS0VOAI.js → ProgressLine-BqINh5jh.js} +13 -13
- package/dist/ProgressLine.css +1 -1
- package/dist/ProgressLine.js +2 -2
- package/dist/Skeleton.js +2 -2
- package/dist/Skeleton.vue_vue_type_script_setup_true_lang-Dsy_4Ftz.js +18 -0
- package/dist/Tab.js +2 -2
- package/dist/{Tab.vue_vue_type_script_setup_true_lang-6bgS8FOw.js → Tab.vue_vue_type_script_setup_true_lang-OuqLqd04.js} +16 -16
- package/dist/components.js +19 -19
- package/dist/index.css +77 -45
- package/dist/{plugin-BJyDH94F.js → plugin-3Ql4s0Jh.js} +1 -1
- package/dist/{plugin-CJ6sqqaI.js → plugin-43q0Kzto.js} +1 -1
- package/dist/{plugin-C-iGigb_.js → plugin-AU2qI2I9.js} +1 -1
- package/dist/{plugin-Ch67LOIy.js → plugin-CDKPVcLp.js} +1 -1
- package/dist/{plugin-CvohbpUQ.js → plugin-CEsqY6D6.js} +1 -1
- package/dist/{plugin-dX-bbpm5.js → plugin-CPpRqUnI.js} +1 -1
- package/dist/{plugin-MAzqwXys.js → plugin-CV6IjnsL.js} +1 -1
- package/dist/{plugin-C8Z-XgLn.js → plugin-Clp0zNY0.js} +1 -1
- package/dist/{plugin-RM2wZuwL.js → plugin-Co9LymNO.js} +1 -1
- package/dist/{plugin-x-Y35fqX.js → plugin-CzRCyET3.js} +1 -1
- package/dist/{plugin-wVt0wQNv.js → plugin-DBDBJ5_6.js} +1 -1
- package/dist/{plugin-BVJKxqmv.js → plugin-DIj5ypE6.js} +1 -1
- package/dist/{plugin-CZ2rAHjJ.js → plugin-DMGSStZm.js} +1 -1
- package/dist/{plugin-DxUJiAk-.js → plugin-DNJyBcDk.js} +1 -1
- package/dist/{plugin-Do2-cqMT.js → plugin-DXPEO1fb.js} +1 -1
- package/dist/{plugin-C1kAmMfE.js → plugin-DYHfPgzY.js} +1 -1
- package/dist/{plugin-CNwzCYlr.js → plugin-JMSzJgz5.js} +1 -1
- package/dist/plugin-RTst32IC.js +10 -0
- package/dist/{plugin-B63n9_uc.js → plugin-hQ-aWPlo.js} +1 -1
- package/dist/{plugins-3Yf4y3PS.js → plugins-BCnw00-W.js} +26 -26
- package/dist/plugins.js +26 -26
- package/dist/tamandua.js +1 -1
- package/dist/types/components/FormItem/types.d.ts +1 -1
- package/dist/types/components/Skeleton/Skeleton.vue.d.ts +29 -7
- package/dist/types/components/Skeleton/types.d.ts +4 -1
- package/package.json +1 -1
- package/dist/Backdrop.vue_vue_type_script_setup_true_lang-OaEBTmYK.js +0 -22
- package/dist/FormItem.vue_vue_type_script_setup_true_lang-D7a8YCgS.js +0 -64
- package/dist/InputRadio.vue_vue_type_style_index_0_lang-n0nJwz8x.js +0 -35
- package/dist/Popover.vue_vue_type_script_setup_true_lang-DoSN5ymu.js +0 -71
- package/dist/Skeleton.vue_vue_type_script_setup_true_lang-WahY1vGW.js +0 -11
- package/dist/plugin-ColpxTKB.js +0 -10
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import './InputRadio.css';
|
|
2
|
+
import { defineComponent as p, inject as r, openBlock as m, createElementBlock as u, createElementVNode as o, unref as a, toDisplayString as b } from "vue";
|
|
3
|
+
const v = { class: "h-9 inline-flex items-center" }, h = ["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 i = `radio_${++f}`, c = r("name", ""), e = t, l = r("model", ""), d = r("change", () => {
|
|
14
|
+
}), s = r("disabled", !1);
|
|
15
|
+
return (_, n) => (m(), u("div", v, [
|
|
16
|
+
o("input", {
|
|
17
|
+
value: e.value,
|
|
18
|
+
name: a(c),
|
|
19
|
+
id: i,
|
|
20
|
+
disabled: a(s),
|
|
21
|
+
checked: e.value === a(l),
|
|
22
|
+
type: "radio",
|
|
23
|
+
class: "form-radio w-5 h-5 border border-[var(--caipira-primary-inverted)] 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: n[0] || (n[0] = (y) => a(d)(e.value))
|
|
25
|
+
}, null, 40, h),
|
|
26
|
+
o("label", {
|
|
27
|
+
class: "cursor-pointer pl-2 mr-3 input-label",
|
|
28
|
+
for: i
|
|
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-Dy5fjzHK.js";
|
|
2
|
+
import { p as r } from "./plugin-DNJyBcDk.js";
|
|
3
3
|
export {
|
|
4
4
|
p as InputSelect,
|
|
5
5
|
r as InputSelectPlugin
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as ue, mergeModels as O, useModel as se, ref as
|
|
1
|
+
import { defineComponent as ue, mergeModels as O, useModel as se, ref as c, computed as E, onBeforeMount as ie, watch as I, resolveComponent as g, openBlock as i, createBlock as D, normalizeClass as x, withCtx as R, createElementVNode as N, withDirectives as K, createElementBlock as d, vModelText as re, createCommentVNode as z, createVNode as U, renderSlot as k, normalizeProps as _, mergeProps as M, Fragment as V, renderList as q, guardReactiveProps as G, toDisplayString as H, vShow as pe, createSlots as ce, createTextVNode as de, nextTick as fe } from "vue";
|
|
2
2
|
import { a as ve, E as me } from "./ui-J-lhC9qd.js";
|
|
3
3
|
const ye = ["placeholder", "disabled", "readonly"], he = { key: 1 }, we = {
|
|
4
4
|
key: 0,
|
|
@@ -36,7 +36,7 @@ const ye = ["placeholder", "disabled", "readonly"], he = { key: 1 }, we = {
|
|
|
36
36
|
setup(f, { emit: T }) {
|
|
37
37
|
const l = f;
|
|
38
38
|
let B = !1, S, P = "";
|
|
39
|
-
const J = T, u = se(f, "modelValue"), o =
|
|
39
|
+
const J = T, u = se(f, "modelValue"), o = c([]), p = c(""), j = c(null), F = c(), s = c(!1), L = c(null), a = c([]), $ = c(!1), v = c(null), h = E(() => a.value.length > 0), m = E(() => l.isSearchable && s.value), w = E(() => typeof l.resource == "function"), Q = (e) => !l.multiple || !u.value || !Array.isArray(u.value) ? !1 : u.value.includes(e.value), W = (e = u.value) => !(e === void 0 || e === "" || Array.isArray(e) && e.length === 0), X = (e) => {
|
|
40
40
|
J("update:model-value", e);
|
|
41
41
|
}, y = (e = u.value) => {
|
|
42
42
|
if (W(e))
|
|
@@ -49,7 +49,7 @@ const ye = ["placeholder", "disabled", "readonly"], he = { key: 1 }, we = {
|
|
|
49
49
|
~t && (a.value = [t]);
|
|
50
50
|
}
|
|
51
51
|
}, Y = async (e) => {
|
|
52
|
-
e.stopPropagation(), s.value = !s.value, s.value && m.value && fe(() => {
|
|
52
|
+
e.target.nodeName === "svg" && e.stopPropagation(), s.value = !s.value, s.value && m.value && fe(() => {
|
|
53
53
|
j.value?.focus();
|
|
54
54
|
});
|
|
55
55
|
}, A = (e) => o.value.findIndex(
|
|
@@ -59,16 +59,16 @@ const ye = ["placeholder", "disabled", "readonly"], he = { key: 1 }, we = {
|
|
|
59
59
|
return;
|
|
60
60
|
$.value = !0;
|
|
61
61
|
const t = {
|
|
62
|
-
t:
|
|
62
|
+
t: p.value,
|
|
63
63
|
r: "option"
|
|
64
64
|
};
|
|
65
|
-
e && v.value && v.value.pages > v.value.page ? t.page = v.value.page + 1 : e = !1, !
|
|
65
|
+
e && v.value && v.value.pages > v.value.page ? t.page = v.value.page + 1 : e = !1, !p.value && u.value && (t.i = u.value);
|
|
66
66
|
const r = await l.resource(t);
|
|
67
|
-
e ? o.value.push(...r.items.map(l.mapper)) : o.value = r.items.map(l.mapper), v.value = r.pagination, !w.value &&
|
|
67
|
+
e ? o.value.push(...r.items.map(l.mapper)) : o.value = r.items.map(l.mapper), v.value = r.pagination, !w.value && p.value && y(p.value), $.value = !1;
|
|
68
68
|
}, Z = () => {
|
|
69
|
-
!
|
|
70
|
-
P =
|
|
71
|
-
(e) => l.filter(
|
|
69
|
+
!p.value || P === p.value || (S && (clearTimeout(S), S = null), S = setTimeout(() => {
|
|
70
|
+
P = p.value, w.value ? (s.value || (s.value = !0), C()) : l.isSearchable && (o.value = l.options.filter(
|
|
71
|
+
(e) => l.filter(p.value, e)
|
|
72
72
|
));
|
|
73
73
|
}, 500));
|
|
74
74
|
}, ee = ({
|
|
@@ -127,7 +127,7 @@ const ye = ["placeholder", "disabled", "readonly"], he = { key: 1 }, we = {
|
|
|
127
127
|
ref: F
|
|
128
128
|
}, {
|
|
129
129
|
default: R(() => [
|
|
130
|
-
|
|
130
|
+
N("div", {
|
|
131
131
|
class: x([{
|
|
132
132
|
"h-9": !l.multiple,
|
|
133
133
|
"h-full *:min-h-9": l.multiple,
|
|
@@ -135,9 +135,9 @@ const ye = ["placeholder", "disabled", "readonly"], he = { key: 1 }, we = {
|
|
|
135
135
|
[l.roundnessClass]: !0
|
|
136
136
|
}, "flex justify-between items-center w-full max-w-96 input-text-color select-none input-bg-color"])
|
|
137
137
|
}, [
|
|
138
|
-
m.value ?
|
|
138
|
+
m.value ? K((i(), d("input", {
|
|
139
139
|
key: 0,
|
|
140
|
-
"onUpdate:modelValue": t[0] || (t[0] = (n) =>
|
|
140
|
+
"onUpdate:modelValue": t[0] || (t[0] = (n) => p.value = n),
|
|
141
141
|
type: "text",
|
|
142
142
|
ref_key: "inputRef",
|
|
143
143
|
ref: j,
|
|
@@ -148,7 +148,7 @@ const ye = ["placeholder", "disabled", "readonly"], he = { key: 1 }, we = {
|
|
|
148
148
|
onInput: Z,
|
|
149
149
|
onKeydown: te
|
|
150
150
|
}, null, 40, ye)), [
|
|
151
|
-
[re,
|
|
151
|
+
[re, p.value]
|
|
152
152
|
]) : z("", !0),
|
|
153
153
|
U(b, {
|
|
154
154
|
variant: "transparent",
|
|
@@ -161,10 +161,11 @@ const ye = ["placeholder", "disabled", "readonly"], he = { key: 1 }, we = {
|
|
|
161
161
|
"aria-describedby": F.value?.name,
|
|
162
162
|
icon: s.value === !0 ? "chevron-up" : "chevron-down",
|
|
163
163
|
"icon-position": m.value ? "left" : "right",
|
|
164
|
+
hover: !1,
|
|
164
165
|
onClick: Y
|
|
165
166
|
}, {
|
|
166
167
|
default: R(() => [
|
|
167
|
-
N(
|
|
168
|
+
K(N("div", {
|
|
168
169
|
class: x(["inline-flex items-center ml-2 max-w-[calc(100%-2.5rem)]", {
|
|
169
170
|
"overflow-hidden whitespace-nowrap": !l.multiple,
|
|
170
171
|
"flex-wrap gap-2 py-1": l.multiple
|
|
@@ -180,7 +181,7 @@ const ye = ["placeholder", "disabled", "readonly"], he = { key: 1 }, we = {
|
|
|
180
181
|
}, null, 8, ["text"]))), 128)) : (i(), d("span", he, H(o.value[a.value[0]]?.label), 1))
|
|
181
182
|
], 64)) : z("", !0)
|
|
182
183
|
], 2), [
|
|
183
|
-
[
|
|
184
|
+
[pe, !m.value]
|
|
184
185
|
])
|
|
185
186
|
]),
|
|
186
187
|
_: 3
|
|
@@ -195,9 +196,11 @@ const ye = ["placeholder", "disabled", "readonly"], he = { key: 1 }, we = {
|
|
|
195
196
|
"is-visible": s.value,
|
|
196
197
|
multiple: l.multiple,
|
|
197
198
|
loading: $.value,
|
|
199
|
+
"option-margin-class": "m-1",
|
|
200
|
+
"option-padding-class": "py-2 px-3",
|
|
198
201
|
onChange: ee,
|
|
199
202
|
onEndReached: le
|
|
200
|
-
},
|
|
203
|
+
}, ce({ _: 2 }, [
|
|
201
204
|
e.$slots.default || l.multiple ? {
|
|
202
205
|
name: "default",
|
|
203
206
|
fn: R((n) => [
|
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-BVGfQFZh.js";
|
|
2
|
+
import { p as i } from "./plugin-hQ-aWPlo.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 r, createElementBlock as i, createElementVNode as
|
|
1
|
+
import { defineComponent as b, ref as v, watch as f, openBlock as r, createElementBlock as i, createElementVNode as o, normalizeClass as t, 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({
|
|
@@ -22,16 +22,17 @@ const B = /* @__PURE__ */ b({
|
|
|
22
22
|
},
|
|
23
23
|
{ immediate: !0 }
|
|
24
24
|
), (l, n) => (r(), i("div", null, [
|
|
25
|
-
|
|
26
|
-
class:
|
|
25
|
+
o("div", {
|
|
26
|
+
class: t(["relative inline-block w-12 mr-2 align-middle select-none", {
|
|
27
27
|
"rounded-full": !e.value
|
|
28
28
|
}])
|
|
29
29
|
}, [
|
|
30
|
-
h(
|
|
30
|
+
h(o("input", {
|
|
31
31
|
"onUpdate:modelValue": n[0] || (n[0] = (m) => e.value = m),
|
|
32
32
|
type: "checkbox",
|
|
33
|
-
class:
|
|
34
|
-
"right-0": e.value
|
|
33
|
+
class: t(["absolute block w-6 h-6 rounded-full appearance-none cursor-pointer bg-caipira-primary input-outline border-2", {
|
|
34
|
+
"right-0 border-[var(--caipira-primary-inverted)]": e.value,
|
|
35
|
+
"input-border": !e.value
|
|
35
36
|
}]),
|
|
36
37
|
name: a,
|
|
37
38
|
id: a,
|
|
@@ -40,11 +41,11 @@ const B = /* @__PURE__ */ b({
|
|
|
40
41
|
}, null, 42, g), [
|
|
41
42
|
[k, e.value]
|
|
42
43
|
]),
|
|
43
|
-
|
|
44
|
+
o("label", {
|
|
44
45
|
for: a,
|
|
45
|
-
class:
|
|
46
|
+
class: t([{
|
|
46
47
|
"bg-caipira-primary-inverted": e.value,
|
|
47
|
-
"bg-
|
|
48
|
+
"bg-[var(--unfocused-bg-color)]": !e.value
|
|
48
49
|
}, "block overflow-hidden h-6 rounded-full cursor-pointer"])
|
|
49
50
|
}, null, 2)
|
|
50
51
|
], 2),
|
package/dist/InputTextarea.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _ as r } from "./InputTextarea.vue_vue_type_script_setup_true_lang-
|
|
2
|
-
import { p } from "./plugin-
|
|
1
|
+
import { _ as r } from "./InputTextarea.vue_vue_type_script_setup_true_lang-C8f2hfeZ.js";
|
|
2
|
+
import { p } from "./plugin-Clp0zNY0.js";
|
|
3
3
|
export {
|
|
4
4
|
r as InputTextarea,
|
|
5
5
|
p as InputTextareaPlugin
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as m, ref as d, inject as
|
|
2
|
-
const y = ["value", "type", "placeholder", "disabled"],
|
|
1
|
+
import { defineComponent as m, ref as d, inject as i, watch as f, openBlock as b, createElementBlock as v, normalizeClass as h, unref as t } from "vue";
|
|
2
|
+
const y = ["value", "type", "placeholder", "disabled"], g = /* @__PURE__ */ m({
|
|
3
3
|
name: "TInputTextarea",
|
|
4
4
|
__name: "InputTextarea",
|
|
5
5
|
props: {
|
|
@@ -10,8 +10,8 @@ const y = ["value", "type", "placeholder", "disabled"], x = /* @__PURE__ */ m({
|
|
|
10
10
|
disableStyle: { type: Boolean, default: !1 }
|
|
11
11
|
},
|
|
12
12
|
emits: ["update:model-value"],
|
|
13
|
-
setup(
|
|
14
|
-
const s =
|
|
13
|
+
setup(r, { emit: u }) {
|
|
14
|
+
const s = r, p = u, l = d(""), a = i("invalid", !1), o = i("validated", !1);
|
|
15
15
|
d("");
|
|
16
16
|
const c = ({ target: e }) => {
|
|
17
17
|
const n = e.value;
|
|
@@ -20,16 +20,16 @@ const y = ["value", "type", "placeholder", "disabled"], x = /* @__PURE__ */ m({
|
|
|
20
20
|
return f(
|
|
21
21
|
() => s.modelValue,
|
|
22
22
|
(e) => {
|
|
23
|
-
e && (
|
|
23
|
+
e && (l.value = e);
|
|
24
24
|
},
|
|
25
25
|
{ immediate: !0 }
|
|
26
26
|
), (e, n) => (b(), v("textarea", {
|
|
27
|
-
value:
|
|
27
|
+
value: l.value,
|
|
28
28
|
type: e.type,
|
|
29
|
-
class: h(["min-h-9 input-bg-color input-text-color input-outline border input-border input-roundnes input-padding
|
|
30
|
-
"border rounded-sm
|
|
31
|
-
"border-red-500": !t(o) && t(
|
|
32
|
-
"border-emerald-500": t(o) && !t(
|
|
29
|
+
class: h(["min-h-9 input-bg-color input-text-color input-outline border input-border input-roundnes input-padding w-full field-sizing-content", {
|
|
30
|
+
"border rounded-sm": !e.disableStyle,
|
|
31
|
+
"border-red-500": !t(o) && t(a),
|
|
32
|
+
"border-emerald-500": t(o) && !t(a)
|
|
33
33
|
}]),
|
|
34
34
|
placeholder: e.placeholder,
|
|
35
35
|
disabled: e.disabled,
|
|
@@ -38,5 +38,5 @@ const y = ["value", "type", "placeholder", "disabled"], x = /* @__PURE__ */ m({
|
|
|
38
38
|
}
|
|
39
39
|
});
|
|
40
40
|
export {
|
|
41
|
-
|
|
41
|
+
g as _
|
|
42
42
|
};
|
package/dist/Modal.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _ as r } from "./Modal.vue_vue_type_script_setup_true_lang-
|
|
2
|
-
import { p } from "./plugin-
|
|
1
|
+
import { _ as r } from "./Modal.vue_vue_type_script_setup_true_lang-60BGY-iH.js";
|
|
2
|
+
import { p } from "./plugin-CPpRqUnI.js";
|
|
3
3
|
export {
|
|
4
4
|
r as Modal,
|
|
5
5
|
p as ModalPlugin
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { defineComponent as m, ref as y, onMounted as b, resolveComponent as h, openBlock as o, createElementBlock as
|
|
2
|
-
import { _ as S } from "./Backdrop.vue_vue_type_script_setup_true_lang-
|
|
3
|
-
const
|
|
1
|
+
import { defineComponent as m, ref as y, onMounted as b, resolveComponent as h, openBlock as o, createElementBlock as s, normalizeClass as a, withKeys as _, createBlock as k, createCommentVNode as l, createElementVNode as c, createVNode as v, toDisplayString as w, renderSlot as n } from "vue";
|
|
2
|
+
import { _ as S } from "./Backdrop.vue_vue_type_script_setup_true_lang-Dyo6_-EM.js";
|
|
3
|
+
const B = {
|
|
4
4
|
key: 0,
|
|
5
5
|
class: "p-4 border-b border-color"
|
|
6
|
-
},
|
|
6
|
+
}, x = {
|
|
7
7
|
key: 0,
|
|
8
8
|
class: "block font-semibold uppercase"
|
|
9
9
|
}, C = {
|
|
10
10
|
key: 1,
|
|
11
11
|
class: "flex flex-row items-center justify-between p-4 border-t border-color"
|
|
12
|
-
},
|
|
12
|
+
}, g = /* @__PURE__ */ m({
|
|
13
13
|
name: "TModal",
|
|
14
14
|
__name: "Modal",
|
|
15
15
|
props: {
|
|
@@ -21,14 +21,14 @@ const x = {
|
|
|
21
21
|
},
|
|
22
22
|
emits: ["closed"],
|
|
23
23
|
setup(d, { emit: u }) {
|
|
24
|
-
const e = d,
|
|
25
|
-
t.stopPropagation(),
|
|
24
|
+
const e = d, f = u, i = y(null), r = (t) => {
|
|
25
|
+
t.stopPropagation(), f("closed");
|
|
26
26
|
};
|
|
27
27
|
return b(() => {
|
|
28
28
|
i.value?.focus();
|
|
29
|
-
}), (t,
|
|
30
|
-
const
|
|
31
|
-
return o(),
|
|
29
|
+
}), (t, j) => {
|
|
30
|
+
const p = h("t-button");
|
|
31
|
+
return o(), s("div", {
|
|
32
32
|
class: a(["fixed inset-0 focus-visible:outline-hidden z-10", {
|
|
33
33
|
"flex items-center": !e.disableStyle,
|
|
34
34
|
[e.injectStyle.wrapper]: !0
|
|
@@ -42,24 +42,24 @@ const x = {
|
|
|
42
42
|
key: 0,
|
|
43
43
|
class: "z-10",
|
|
44
44
|
onClick: r
|
|
45
|
-
})) :
|
|
45
|
+
})) : l("", !0),
|
|
46
46
|
c("div", {
|
|
47
47
|
class: a(["z-10 w-full md:w-[36rem] mx-auto", {
|
|
48
|
-
"
|
|
48
|
+
"relative floatable": !e.disableStyle,
|
|
49
49
|
[e.injectStyle.container]: !0
|
|
50
50
|
}])
|
|
51
51
|
}, [
|
|
52
|
-
v(
|
|
52
|
+
v(p, {
|
|
53
53
|
variant: "transparent",
|
|
54
|
-
size: "lg",
|
|
55
54
|
icon: "close",
|
|
56
|
-
|
|
55
|
+
size: "",
|
|
56
|
+
class: "absolute justify-center top-0 right-0 h-14 w-14",
|
|
57
57
|
onClick: r
|
|
58
58
|
}),
|
|
59
|
-
e.showHeader ? (o(),
|
|
60
|
-
e.title ? (o(),
|
|
61
|
-
t.$slots.header ? n(t.$slots, "header", { key: 1 }) :
|
|
62
|
-
])) :
|
|
59
|
+
e.showHeader ? (o(), s("div", B, [
|
|
60
|
+
e.title ? (o(), s("span", x, w(e.title), 1)) : l("", !0),
|
|
61
|
+
t.$slots.header ? n(t.$slots, "header", { key: 1 }) : l("", !0)
|
|
62
|
+
])) : l("", !0),
|
|
63
63
|
c("div", {
|
|
64
64
|
class: a(["flex flex-col flex-1 overflow-y-auto scrollbar", {
|
|
65
65
|
[e.injectStyle.body]: !0
|
|
@@ -68,14 +68,14 @@ const x = {
|
|
|
68
68
|
}, [
|
|
69
69
|
n(t.$slots, "default")
|
|
70
70
|
], 2),
|
|
71
|
-
t.$slots.footer ? (o(),
|
|
71
|
+
t.$slots.footer ? (o(), s("div", C, [
|
|
72
72
|
n(t.$slots, "footer")
|
|
73
|
-
])) :
|
|
73
|
+
])) : l("", !0)
|
|
74
74
|
], 2)
|
|
75
75
|
], 34);
|
|
76
76
|
};
|
|
77
77
|
}
|
|
78
78
|
});
|
|
79
79
|
export {
|
|
80
|
-
|
|
80
|
+
g as _
|
|
81
81
|
};
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import './Popover.css';
|
|
2
|
+
import { defineComponent as w, mergeModels as B, useModel as E, ref as n, computed as u, onBeforeMount as P, onBeforeUnmount as M, openBlock as c, createElementBlock as d, renderSlot as m, normalizeProps as v, guardReactiveProps as g, normalizeStyle as x, unref as z, normalizeClass as O, createCommentVNode as R } from "vue";
|
|
3
|
+
import { u as T } from "./useDomHelpers-CGVrQd35.js";
|
|
4
|
+
import { d as S, E as $ } from "./ui-J-lhC9qd.js";
|
|
5
|
+
import { o as L, s as W, a as I, u as U, b as j } from "./floating-ui.vue-B5QcGNjh.js";
|
|
6
|
+
import { _ as A } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
7
|
+
let D = 0;
|
|
8
|
+
const F = /* @__PURE__ */ w({
|
|
9
|
+
name: "TPopover",
|
|
10
|
+
__name: "Popover",
|
|
11
|
+
props: /* @__PURE__ */ B({
|
|
12
|
+
trigger: { default: S.CLICK },
|
|
13
|
+
disabled: { type: Boolean, default: !1 },
|
|
14
|
+
placement: { default: $.BOTTOM },
|
|
15
|
+
slotWrapperClasses: { default: "input-roundness" },
|
|
16
|
+
width: { default: "auto" }
|
|
17
|
+
}, {
|
|
18
|
+
open: { type: Boolean, default: !1 },
|
|
19
|
+
openModifiers: {}
|
|
20
|
+
}),
|
|
21
|
+
emits: ["update:open"],
|
|
22
|
+
setup(s, { expose: C }) {
|
|
23
|
+
const t = E(s, "open"), r = s, a = `popover_${++D}`, l = n(), y = u(() => r.placement), o = n(), { wasClickOutsideOfContainer: _ } = T(), b = u(
|
|
24
|
+
() => o.value?.firstChild?.nextElementSibling
|
|
25
|
+
), k = n([
|
|
26
|
+
L(5),
|
|
27
|
+
W({
|
|
28
|
+
apply({ elements: e }) {
|
|
29
|
+
if (r.width === "static")
|
|
30
|
+
return;
|
|
31
|
+
const f = e.reference.getBoundingClientRect();
|
|
32
|
+
Object.assign(e.floating.style, {
|
|
33
|
+
minWidth: `${f.width}px`
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
}),
|
|
37
|
+
I({ crossAxis: !0 })
|
|
38
|
+
]), { floatingStyles: h } = U(b, l, {
|
|
39
|
+
open: t,
|
|
40
|
+
placement: y,
|
|
41
|
+
middleware: k,
|
|
42
|
+
whileElementsMounted: j
|
|
43
|
+
}), i = (e = !t.value) => {
|
|
44
|
+
t.value = e;
|
|
45
|
+
}, p = (e) => t.value && o.value && _(e, o.value) ? (t.value = !1, !1) : !0;
|
|
46
|
+
return P(() => {
|
|
47
|
+
document.addEventListener("click", p);
|
|
48
|
+
}), M(() => {
|
|
49
|
+
document.removeEventListener("click", p);
|
|
50
|
+
}), C({ name: a }), (e, f) => (c(), d("div", {
|
|
51
|
+
ref_key: "wrapperRef",
|
|
52
|
+
ref: o
|
|
53
|
+
}, [
|
|
54
|
+
m(e.$slots, "default", v(g({ onTogglePopover: i })), void 0, !0),
|
|
55
|
+
t.value ? (c(), d("div", {
|
|
56
|
+
key: 0,
|
|
57
|
+
ref_key: "floating",
|
|
58
|
+
ref: l,
|
|
59
|
+
role: "tooltip",
|
|
60
|
+
id: a,
|
|
61
|
+
style: x(z(h)),
|
|
62
|
+
class: O(["popover-floatable bg-caipira-primary z-10", {
|
|
63
|
+
[r.slotWrapperClasses]: !0
|
|
64
|
+
}])
|
|
65
|
+
}, [
|
|
66
|
+
m(e.$slots, "content", v(g({ onTogglePopover: i })), void 0, !0)
|
|
67
|
+
], 6)) : R("", !0)
|
|
68
|
+
], 512));
|
|
69
|
+
}
|
|
70
|
+
}), q = /* @__PURE__ */ A(F, [["__scopeId", "data-v-4fbb6f53"]]);
|
|
71
|
+
export {
|
|
72
|
+
q as P
|
|
73
|
+
};
|
package/dist/Popover.css
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.popover-floatable[data-v-4fbb6f53]{scrollbar-gutter:stable}
|
package/dist/Popover.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { p as P } from "./plugin-
|
|
1
|
+
import { P as p } from "./Popover-Bq_SpOWb.js";
|
|
2
|
+
import { p as P } from "./plugin-RTst32IC.js";
|
|
3
3
|
export {
|
|
4
4
|
p as Popover,
|
|
5
5
|
P as PopoverPlugin
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import './ProgressCircle.css';
|
|
2
|
-
import { defineComponent as
|
|
2
|
+
import { defineComponent as i, computed as n, openBlock as r, createElementBlock as s, createElementVNode as l, renderSlot as f, createCommentVNode as h } from "vue";
|
|
3
3
|
import { _ as u } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
4
4
|
const k = { class: "relative w-min" }, _ = ["width", "heigh"], p = ["stroke-width", "stroke"], m = ["stroke-width", "stroke", "stroke-dashoffset"], v = {
|
|
5
5
|
key: 0,
|
|
6
6
|
class: "absolute transform -translate-x-1/2 -translate-y-1/2 top-2/4 left-2/4"
|
|
7
|
-
}, a = 90, w = /* @__PURE__ */
|
|
7
|
+
}, a = 90, w = /* @__PURE__ */ i({
|
|
8
8
|
name: "TProgressCircle",
|
|
9
9
|
__name: "ProgressCircle",
|
|
10
10
|
props: {
|
|
@@ -12,16 +12,16 @@ const k = { class: "relative w-min" }, _ = ["width", "heigh"], p = ["stroke-widt
|
|
|
12
12
|
width: { default: 90 },
|
|
13
13
|
strokeWidth: { default: 1 },
|
|
14
14
|
strokeColor: { default: "var(--caipira-blue)" },
|
|
15
|
-
backgroundColor: { default: "var(--
|
|
15
|
+
backgroundColor: { default: "var(--unfocused-bg-color)" }
|
|
16
16
|
},
|
|
17
17
|
setup(d) {
|
|
18
|
-
const e = d,
|
|
18
|
+
const e = d, c = n(() => {
|
|
19
19
|
const t = Math.PI * (a * 2);
|
|
20
|
-
let
|
|
21
|
-
return e.value < 0 && (
|
|
20
|
+
let o = e.value;
|
|
21
|
+
return e.value < 0 && (o = 0), e.value > 100 && (o = 100), (100 - o) / 100 * t;
|
|
22
22
|
});
|
|
23
|
-
return (t,
|
|
24
|
-
(
|
|
23
|
+
return (t, o) => (r(), s("div", k, [
|
|
24
|
+
(r(), s("svg", {
|
|
25
25
|
viewBox: "0 0 200 200",
|
|
26
26
|
width: e.width,
|
|
27
27
|
heigh: e.width
|
|
@@ -44,15 +44,15 @@ const k = { class: "relative w-min" }, _ = ["width", "heigh"], p = ["stroke-widt
|
|
|
44
44
|
r: a,
|
|
45
45
|
"stroke-width": e.strokeWidth,
|
|
46
46
|
stroke: e.strokeColor,
|
|
47
|
-
"stroke-dashoffset":
|
|
47
|
+
"stroke-dashoffset": c.value
|
|
48
48
|
}, null, 8, m)
|
|
49
49
|
], 8, _)),
|
|
50
|
-
t.$slots.default ? (
|
|
51
|
-
|
|
52
|
-
])) :
|
|
50
|
+
t.$slots.default ? (r(), s("div", v, [
|
|
51
|
+
f(t.$slots, "default", {}, void 0, !0)
|
|
52
|
+
])) : h("", !0)
|
|
53
53
|
]));
|
|
54
54
|
}
|
|
55
|
-
}),
|
|
55
|
+
}), b = /* @__PURE__ */ u(w, [["__scopeId", "data-v-fbcf1aaa"]]);
|
|
56
56
|
export {
|
|
57
|
-
|
|
57
|
+
b as P
|
|
58
58
|
};
|
package/dist/ProgressCircle.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
svg circle[data-v-
|
|
1
|
+
svg circle[data-v-fbcf1aaa]{transition:stroke-dashoffset 1s linear}
|
package/dist/ProgressCircle.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { P as o } from "./ProgressCircle-
|
|
2
|
-
import { p as P } from "./plugin-
|
|
1
|
+
import { P as o } from "./ProgressCircle-C5CnEEoe.js";
|
|
2
|
+
import { p as P } from "./plugin-CV6IjnsL.js";
|
|
3
3
|
export {
|
|
4
4
|
o as ProgressCircle,
|
|
5
5
|
P as ProgressCirclePlugin
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import './ProgressLine.css';
|
|
2
|
-
import { defineComponent as d, ref as u, watch as c, computed as f, openBlock as
|
|
3
|
-
import { _ as
|
|
2
|
+
import { defineComponent as d, ref as u, watch as c, computed as f, openBlock as l, createElementBlock as a, normalizeClass as t, createElementVNode as s, renderSlot as h, toDisplayString as v, createCommentVNode as g } from "vue";
|
|
3
|
+
import { _ as p } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
4
4
|
const m = ["aria-valuenow"], _ = ["height"], C = ["rx", "fill"], b = ["width", "rx", "fill"], w = {
|
|
5
5
|
key: 1,
|
|
6
6
|
class: "text-sm select-none"
|
|
@@ -17,26 +17,26 @@ const m = ["aria-valuenow"], _ = ["height"], C = ["rx", "fill"], b = ["width", "
|
|
|
17
17
|
overColor: { default: "var(--caipira-red)" },
|
|
18
18
|
progressColor: { default: "var(--caipira-blue)" },
|
|
19
19
|
finishedColor: { default: "var(--caipira-green)" },
|
|
20
|
-
backgroundColor: { default: "var(--
|
|
20
|
+
backgroundColor: { default: "var(--unfocused-bg-color)" }
|
|
21
21
|
},
|
|
22
22
|
setup(i) {
|
|
23
|
-
const e = i,
|
|
23
|
+
const e = i, o = u(0);
|
|
24
24
|
c(
|
|
25
25
|
() => e.value,
|
|
26
26
|
(r) => {
|
|
27
|
-
r && (
|
|
27
|
+
r && (o.value = Math.round(r));
|
|
28
28
|
},
|
|
29
29
|
{ immediate: !0 }
|
|
30
30
|
);
|
|
31
|
-
const n = f(() =>
|
|
32
|
-
return (r, x) => (
|
|
31
|
+
const n = f(() => o.value === 100 ? e.finishedColor : o.value > 100 ? e.overColor : e.progressColor);
|
|
32
|
+
return (r, x) => (l(), a("div", {
|
|
33
33
|
class: "flex items-center",
|
|
34
34
|
role: "progressbar",
|
|
35
35
|
"aria-valuemax": "100",
|
|
36
36
|
"aria-valuemin": "0",
|
|
37
|
-
"aria-valuenow":
|
|
37
|
+
"aria-valuenow": o.value
|
|
38
38
|
}, [
|
|
39
|
-
(
|
|
39
|
+
(l(), a("svg", {
|
|
40
40
|
width: "100%",
|
|
41
41
|
height: e.height,
|
|
42
42
|
class: t(["inline-block grow", e.svgClass])
|
|
@@ -54,15 +54,15 @@ const m = ["aria-valuenow"], _ = ["height"], C = ["rx", "fill"], b = ["width", "
|
|
|
54
54
|
fill: n.value
|
|
55
55
|
}, null, 8, b)
|
|
56
56
|
], 10, _)),
|
|
57
|
-
e.showPercentage ? (
|
|
57
|
+
e.showPercentage ? (l(), a("div", {
|
|
58
58
|
key: 0,
|
|
59
59
|
class: t(["flex-none ml-2", r.labelClass])
|
|
60
60
|
}, [
|
|
61
|
-
r.$slots.label ? h(r.$slots, "label", { key: 0 }, void 0, !0) : (
|
|
62
|
-
], 2)) :
|
|
61
|
+
r.$slots.label ? h(r.$slots, "label", { key: 0 }, void 0, !0) : (l(), a("span", w, v(o.value) + "% ", 1))
|
|
62
|
+
], 2)) : g("", !0)
|
|
63
63
|
], 8, m));
|
|
64
64
|
}
|
|
65
|
-
}), B = /* @__PURE__ */
|
|
65
|
+
}), B = /* @__PURE__ */ p(k, [["__scopeId", "data-v-6d5869e8"]]);
|
|
66
66
|
export {
|
|
67
67
|
B as P
|
|
68
68
|
};
|
package/dist/ProgressLine.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
svg rect[data-v-
|
|
1
|
+
svg rect[data-v-6d5869e8]{transition:width .3s linear}
|
package/dist/ProgressLine.js
CHANGED
package/dist/Skeleton.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _ as r } from "./Skeleton.vue_vue_type_script_setup_true_lang-
|
|
2
|
-
import { p as l } from "./plugin-
|
|
1
|
+
import { _ as r } from "./Skeleton.vue_vue_type_script_setup_true_lang-Dsy_4Ftz.js";
|
|
2
|
+
import { p as l } from "./plugin-DYHfPgzY.js";
|
|
3
3
|
export {
|
|
4
4
|
r as Skeleton,
|
|
5
5
|
l as SkeletonPlugin
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { defineComponent as n, openBlock as a, createElementBlock as l, normalizeClass as o } from "vue";
|
|
2
|
+
const m = /* @__PURE__ */ n({
|
|
3
|
+
name: "TSkeleton",
|
|
4
|
+
__name: "Skeleton",
|
|
5
|
+
props: {
|
|
6
|
+
marginClass: { default: "" },
|
|
7
|
+
sizeClass: { default: "w-full h-4" }
|
|
8
|
+
},
|
|
9
|
+
setup(s) {
|
|
10
|
+
const e = s;
|
|
11
|
+
return (r, t) => (a(), l("div", {
|
|
12
|
+
class: o(["animate-pulse bg-[var(--unfocused-bg-color)] rounded-sm", [e.marginClass, e.sizeClass]])
|
|
13
|
+
}, null, 2));
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
|
+
export {
|
|
17
|
+
m as _
|
|
18
|
+
};
|
package/dist/Tab.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _ as r } from "./Tab.vue_vue_type_script_setup_true_lang-
|
|
2
|
-
import { p as b } from "./plugin-
|
|
1
|
+
import { _ as r } from "./Tab.vue_vue_type_script_setup_true_lang-OuqLqd04.js";
|
|
2
|
+
import { p as b } from "./plugin-DBDBJ5_6.js";
|
|
3
3
|
export {
|
|
4
4
|
r as Tab,
|
|
5
5
|
b as TabPlugin
|