@caipira/tamandua 0.0.45 → 0.0.46
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/{Button-DxCwFAWy.js → Button-DusGbcIs.js} +10 -10
- package/dist/Button.css +1 -1
- package/dist/Button.js +2 -2
- package/dist/Drawer-CKfQZ6rv.js +74 -0
- package/dist/Drawer.css +1 -1
- package/dist/Drawer.js +2 -2
- package/dist/Form.js +2 -2
- package/dist/{Form.vue_vue_type_script_setup_true_lang-CaCu47jH.js → Form.vue_vue_type_script_setup_true_lang-35_V6mw8.js} +83 -86
- package/dist/FormItem.js +2 -2
- package/dist/FormItem.vue_vue_type_script_setup_true_lang-D7a8YCgS.js +64 -0
- package/dist/InputCheckbox.js +2 -2
- package/dist/InputCheckbox.vue_vue_type_style_index_0_lang-D5J-rPuH.js +49 -0
- package/dist/InputMultiplier.js +2 -2
- package/dist/{InputMultiplier.vue_vue_type_script_setup_true_lang-BFDBZk2M.js → InputMultiplier.vue_vue_type_script_setup_true_lang-BguqKGGe.js} +5 -6
- package/dist/InputPassword.js +2 -2
- package/dist/{InputPassword.vue_vue_type_script_setup_true_lang-DtP-Tv-2.js → InputPassword.vue_vue_type_script_setup_true_lang-BghMiF8B.js} +1 -1
- package/dist/InputRadio.js +2 -2
- package/dist/InputRadio.vue_vue_type_style_index_0_lang-DusKEybQ.js +35 -0
- package/dist/InputSwitch.js +2 -2
- package/dist/{InputSwitch.vue_vue_type_script_setup_true_lang-Dq_U-mFJ.js → InputSwitch.vue_vue_type_script_setup_true_lang-Q3wQlqfk.js} +1 -1
- package/dist/InputText.js +2 -2
- package/dist/InputText.vue_vue_type_script_setup_true_lang-JLAlUE_2.js +38 -0
- package/dist/Modal.js +2 -2
- package/dist/{Modal.vue_vue_type_script_setup_true_lang-aQ-G7tuI.js → Modal.vue_vue_type_script_setup_true_lang-CEaX1svl.js} +10 -10
- package/dist/components.js +11 -11
- package/dist/{plugin-BN2jubTY.js → plugin-BT2ef1QG.js} +1 -1
- package/dist/{plugin-D0o7F2L4.js → plugin-BV0OSVIw.js} +1 -1
- package/dist/{plugin-DT7LVAli.js → plugin-BZOU6h10.js} +1 -1
- package/dist/{plugin-WcNmSb_y.js → plugin-Br-QOjhk.js} +1 -1
- package/dist/{plugin-BjXXC0b-.js → plugin-CvohbpUQ.js} +1 -1
- package/dist/{plugin-DQ6digu2.js → plugin-DH3hMjgo.js} +1 -1
- package/dist/{plugin-GUvrG7aO.js → plugin-DKjcKBPg.js} +1 -1
- package/dist/{plugin-Dz7BPW4D.js → plugin-DPCk5fFS.js} +1 -1
- package/dist/{plugin-uMlQixCx.js → plugin-DcQ8tvKe.js} +1 -1
- package/dist/{plugin-D6dx276z.js → plugin-Y4yYnlO3.js} +1 -1
- package/dist/{plugin-DDUNw6fL.js → plugin-lYDlOt8p.js} +1 -1
- package/dist/{plugins-C7Uur4I5.js → plugins-8zKsGUYL.js} +16 -16
- package/dist/plugins.js +16 -16
- package/dist/tamandua.js +1 -1
- package/dist/types/components/Form/{form.story.d.ts → Form.story.d.ts} +7 -1
- package/dist/types/components/Form/Form.vue.d.ts +6 -19
- package/dist/types/components/Form/types.d.ts +3 -5
- package/dist/types/components/FormItem/FormItem.vue.d.ts +2 -16
- package/dist/types/components/FormItem/types.d.ts +3 -1
- package/dist/types/components/InputCheckbox/InputCheckbox.vue.d.ts +3 -0
- package/dist/types/components/InputCheckbox/types.d.ts +1 -0
- package/dist/types/components/InputMultiplier/InputMultiplier.vue.d.ts +0 -3
- package/dist/types/components/InputMultiplier/types.d.ts +0 -1
- package/package.json +1 -1
- package/dist/Drawer-BNQfu7JD.js +0 -76
- package/dist/FormItem.vue_vue_type_script_setup_true_lang-CV7IVjE4.js +0 -84
- package/dist/InputCheckbox.vue_vue_type_style_index_0_lang-BONJ9l1D.js +0 -40
- package/dist/InputRadio.vue_vue_type_style_index_0_lang-IqPZ9Qzl.js +0 -35
- package/dist/InputText.vue_vue_type_script_setup_true_lang-D4nIMRiz.js +0 -39
- /package/dist/types/components/InputCheckbox/{input-checkbox.story.d.ts → Input-checkbox.story.d.ts} +0 -0
- /package/dist/types/components/InputPassword/{input-password.story.d.ts → Input-password.story.d.ts} +0 -0
|
@@ -2,20 +2,17 @@ import { InputMultiplierProps } from './types.js';
|
|
|
2
2
|
|
|
3
3
|
declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<InputMultiplierProps>, {
|
|
4
4
|
component: string;
|
|
5
|
-
label: string;
|
|
6
5
|
listeners: () => {};
|
|
7
6
|
inputProps: () => {};
|
|
8
7
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
9
8
|
"update:model-value": (value: any[]) => void;
|
|
10
9
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<InputMultiplierProps>, {
|
|
11
10
|
component: string;
|
|
12
|
-
label: string;
|
|
13
11
|
listeners: () => {};
|
|
14
12
|
inputProps: () => {};
|
|
15
13
|
}>>> & {
|
|
16
14
|
"onUpdate:model-value"?: ((value: any[]) => any) | undefined;
|
|
17
15
|
}, {
|
|
18
|
-
label: string;
|
|
19
16
|
component: import("vue").Component | "t-input-text" | "t-input-phone";
|
|
20
17
|
inputProps: any;
|
|
21
18
|
listeners: {
|
package/package.json
CHANGED
package/dist/Drawer-BNQfu7JD.js
DELETED
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
import './Drawer.css';
|
|
2
|
-
import { defineComponent as v, ref as b, onMounted as h, resolveComponent as c, openBlock as o, createElementBlock as l, withKeys as w, createVNode as d, createElementVNode as a, normalizeClass as f, createBlock as k, createCommentVNode as r, renderSlot as n } from "vue";
|
|
3
|
-
import { _ as x } from "./Backdrop.vue_vue_type_script_setup_true_lang-OaEBTmYK.js";
|
|
4
|
-
import { _ as g } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
5
|
-
const C = {
|
|
6
|
-
key: 0,
|
|
7
|
-
class: "flex justify-between items-center pl-4 py-1 pr-1 border-b border-color"
|
|
8
|
-
}, $ = { class: "flex flex-col flex-1 relative overflow-y-auto scrollbar" }, z = /* @__PURE__ */ v({
|
|
9
|
-
name: "TDrawer",
|
|
10
|
-
__name: "Drawer",
|
|
11
|
-
props: {
|
|
12
|
-
title: { default: "" },
|
|
13
|
-
style: { default: () => ({
|
|
14
|
-
footer: ""
|
|
15
|
-
}) },
|
|
16
|
-
direction: { default: "rtl" },
|
|
17
|
-
showHeader: { type: Boolean, default: !0 }
|
|
18
|
-
},
|
|
19
|
-
emits: ["closed"],
|
|
20
|
-
setup(u, { emit: p }) {
|
|
21
|
-
const t = u, m = p, i = b(null), s = (e) => {
|
|
22
|
-
e.stopPropagation(), m("closed");
|
|
23
|
-
};
|
|
24
|
-
return h(() => {
|
|
25
|
-
i.value?.focus();
|
|
26
|
-
}), (e, B) => {
|
|
27
|
-
const _ = c("t-graphy-subtitle"), y = c("t-button");
|
|
28
|
-
return o(), l("div", {
|
|
29
|
-
class: "fixed inset-0 flex items-center z-10",
|
|
30
|
-
tabindex: "0",
|
|
31
|
-
ref_key: "modal",
|
|
32
|
-
ref: i,
|
|
33
|
-
onKeyup: w(s, ["esc"])
|
|
34
|
-
}, [
|
|
35
|
-
d(x, { onClick: s }),
|
|
36
|
-
a("div", {
|
|
37
|
-
class: f(["w-[38rem] absolute inset-y-0 z-20 flex flex-col bg-caipira-primary drawer", {
|
|
38
|
-
"right-0 drop-shadow-lg": t.direction === "ltr",
|
|
39
|
-
"left-0": t.direction === "rtl"
|
|
40
|
-
}])
|
|
41
|
-
}, [
|
|
42
|
-
t.showHeader ? (o(), l("div", C, [
|
|
43
|
-
a("div", null, [
|
|
44
|
-
t.title ? (o(), k(_, {
|
|
45
|
-
key: 0,
|
|
46
|
-
text: t.title
|
|
47
|
-
}, null, 8, ["text"])) : r("", !0),
|
|
48
|
-
e.$slots.header ? n(e.$slots, "header", { key: 1 }, void 0, !0) : r("", !0)
|
|
49
|
-
]),
|
|
50
|
-
d(y, {
|
|
51
|
-
variant: "transparent",
|
|
52
|
-
class: "self-start",
|
|
53
|
-
size: "lg",
|
|
54
|
-
icon: "close",
|
|
55
|
-
onClick: s
|
|
56
|
-
})
|
|
57
|
-
])) : r("", !0),
|
|
58
|
-
a("div", $, [
|
|
59
|
-
n(e.$slots, "default", {}, void 0, !0)
|
|
60
|
-
]),
|
|
61
|
-
e.$slots.footer ? (o(), l("div", {
|
|
62
|
-
key: 1,
|
|
63
|
-
class: f(["p-4 border-t border-color", {
|
|
64
|
-
[e.style.footer]: !0
|
|
65
|
-
}])
|
|
66
|
-
}, [
|
|
67
|
-
n(e.$slots, "footer", {}, void 0, !0)
|
|
68
|
-
], 2)) : r("", !0)
|
|
69
|
-
], 2)
|
|
70
|
-
], 544);
|
|
71
|
-
};
|
|
72
|
-
}
|
|
73
|
-
}), E = /* @__PURE__ */ g(z, [["__scopeId", "data-v-1e2fe237"]]);
|
|
74
|
-
export {
|
|
75
|
-
E as D
|
|
76
|
-
};
|
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
import { defineComponent as C, useSlots as I, inject as S, computed as p, provide as $, resolveComponent as B, openBlock as t, createElementBlock as l, createElementVNode as o, normalizeClass as s, Fragment as d, unref as a, renderSlot as n, createVNode as x, withCtx as y, renderList as F, toDisplayString as N, createCommentVNode as T } from "vue";
|
|
2
|
-
const V = { class: "w-full" }, w = {
|
|
3
|
-
key: 0,
|
|
4
|
-
class: "float-right"
|
|
5
|
-
};
|
|
6
|
-
let E = 0;
|
|
7
|
-
const z = /* @__PURE__ */ C({
|
|
8
|
-
name: "TFormItem",
|
|
9
|
-
__name: "FormItem",
|
|
10
|
-
props: {
|
|
11
|
-
label: {},
|
|
12
|
-
rules: {},
|
|
13
|
-
inline: { type: Boolean, default: !0 }
|
|
14
|
-
},
|
|
15
|
-
setup(h) {
|
|
16
|
-
const u = h, i = `formitem_${++E}`, c = I(), f = [], r = S("formStyle", { label: "", input: "" }), v = p(() => {
|
|
17
|
-
if (!c || !c.default)
|
|
18
|
-
return !1;
|
|
19
|
-
const e = c?.default();
|
|
20
|
-
return e ? e[0].type.name : !1;
|
|
21
|
-
}), m = p(() => v.value === "TInputCheckbox"), _ = p(() => v.value === "TInputMultiplier");
|
|
22
|
-
return $("id", i), (e, M) => {
|
|
23
|
-
const b = B("t-graphy-label");
|
|
24
|
-
return t(), l("div", V, [
|
|
25
|
-
o("div", {
|
|
26
|
-
class: s(["flex gap-2 my-5", {
|
|
27
|
-
"flex-col": !u.inline,
|
|
28
|
-
"items-center": !_.value,
|
|
29
|
-
"items-start": _.value
|
|
30
|
-
}])
|
|
31
|
-
}, [
|
|
32
|
-
m.value ? (t(), l(d, { key: 0 }, [
|
|
33
|
-
o("div", {
|
|
34
|
-
class: s(["text-right", { [a(r).label]: !0 }])
|
|
35
|
-
}, [
|
|
36
|
-
n(e.$slots, "default")
|
|
37
|
-
], 2),
|
|
38
|
-
x(b, {
|
|
39
|
-
text: u.label,
|
|
40
|
-
for: i,
|
|
41
|
-
class: s([{
|
|
42
|
-
[a(r).input]: !0,
|
|
43
|
-
"cursor-pointer": m.value
|
|
44
|
-
}, "text-left"])
|
|
45
|
-
}, {
|
|
46
|
-
default: y(() => [
|
|
47
|
-
n(e.$slots, "label")
|
|
48
|
-
]),
|
|
49
|
-
_: 3
|
|
50
|
-
}, 8, ["text", "class"])
|
|
51
|
-
], 64)) : (t(), l(d, { key: 1 }, [
|
|
52
|
-
x(b, {
|
|
53
|
-
text: u.label,
|
|
54
|
-
for: i,
|
|
55
|
-
class: s([{
|
|
56
|
-
[a(r).label]: !0,
|
|
57
|
-
"cursor-pointer": m.value
|
|
58
|
-
}, "text-right"])
|
|
59
|
-
}, {
|
|
60
|
-
default: y(() => [
|
|
61
|
-
n(e.$slots, "label")
|
|
62
|
-
]),
|
|
63
|
-
_: 3
|
|
64
|
-
}, 8, ["text", "class"]),
|
|
65
|
-
o("div", {
|
|
66
|
-
class: s({ [a(r).input]: !0 })
|
|
67
|
-
}, [
|
|
68
|
-
n(e.$slots, "default")
|
|
69
|
-
], 2)
|
|
70
|
-
], 64))
|
|
71
|
-
], 2),
|
|
72
|
-
f ? (t(), l("div", w, [
|
|
73
|
-
(t(), l(d, null, F(f, (g, k) => o("span", {
|
|
74
|
-
class: "text-sm text-red-600",
|
|
75
|
-
key: k
|
|
76
|
-
}, N(g), 1)), 64))
|
|
77
|
-
])) : T("", !0)
|
|
78
|
-
]);
|
|
79
|
-
};
|
|
80
|
-
}
|
|
81
|
-
});
|
|
82
|
-
export {
|
|
83
|
-
z as _
|
|
84
|
-
};
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import './InputCheckbox.css';
|
|
2
|
-
import { defineComponent as p, inject as s, ref as c, watch as m, withDirectives as f, openBlock as b, createElementBlock as v, mergeProps as h, unref as k, vModelCheckbox as y } from "vue";
|
|
3
|
-
const B = ["indeterminate", "id", "disabled"], I = /* @__PURE__ */ p({
|
|
4
|
-
name: "TInputCheckbox",
|
|
5
|
-
__name: "InputCheckbox",
|
|
6
|
-
props: {
|
|
7
|
-
disabled: { type: Boolean, default: !1 },
|
|
8
|
-
modelValue: { type: Boolean },
|
|
9
|
-
isIndeterminate: { type: Boolean, default: !1 },
|
|
10
|
-
initializeValue: { type: Boolean, default: !1 }
|
|
11
|
-
},
|
|
12
|
-
emits: ["update:model-value", "input"],
|
|
13
|
-
setup(o, { emit: l }) {
|
|
14
|
-
const a = o, i = l, d = s("id", ""), t = c(!1), r = () => {
|
|
15
|
-
const e = !t.value;
|
|
16
|
-
i("update:model-value", e), i("input", e);
|
|
17
|
-
};
|
|
18
|
-
return m(
|
|
19
|
-
() => a.modelValue,
|
|
20
|
-
(e) => {
|
|
21
|
-
a.initializeValue && typeof e > "u" && i("update:model-value", !1), t.value = e;
|
|
22
|
-
},
|
|
23
|
-
{ immediate: !0 }
|
|
24
|
-
), (e, n) => f((b(), v("input", h({
|
|
25
|
-
"onUpdate:modelValue": n[0] || (n[0] = (u) => t.value = u)
|
|
26
|
-
}, e.$attrs, {
|
|
27
|
-
type: "checkbox",
|
|
28
|
-
class: "form-checkbox w-5 h-5 border input-border input-roundness color-caipira-primary-inverted bg-caipira-primary checked:bg-caipira-primary-inverted input-outline",
|
|
29
|
-
indeterminate: a.isIndeterminate,
|
|
30
|
-
id: k(d),
|
|
31
|
-
disabled: e.disabled,
|
|
32
|
-
onInput: r
|
|
33
|
-
}), null, 16, B)), [
|
|
34
|
-
[y, t.value]
|
|
35
|
-
]);
|
|
36
|
-
}
|
|
37
|
-
});
|
|
38
|
-
export {
|
|
39
|
-
I as _
|
|
40
|
-
};
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import './InputRadio.css';
|
|
2
|
-
import { defineComponent as m, inject as e, openBlock as u, createElementBlock as b, createElementVNode as o, unref as r, toDisplayString as v } from "vue";
|
|
3
|
-
const h = { class: "h-9 inline-flex items-center" }, f = ["value", "name", "disabled", "checked"];
|
|
4
|
-
let _ = 0;
|
|
5
|
-
const g = /* @__PURE__ */ m({
|
|
6
|
-
name: "TInputRadio",
|
|
7
|
-
__name: "InputRadio",
|
|
8
|
-
props: {
|
|
9
|
-
value: {},
|
|
10
|
-
label: {}
|
|
11
|
-
},
|
|
12
|
-
setup(t) {
|
|
13
|
-
const i = `radio_${++_}`, c = e("name", ""), a = t, l = e("model", ""), d = e("change", () => {
|
|
14
|
-
}), s = e("disabled", !1);
|
|
15
|
-
return (p, n) => (u(), b("div", h, [
|
|
16
|
-
o("input", {
|
|
17
|
-
value: a.value,
|
|
18
|
-
name: r(c),
|
|
19
|
-
id: i,
|
|
20
|
-
disabled: r(s),
|
|
21
|
-
checked: a.value === r(l),
|
|
22
|
-
type: "radio",
|
|
23
|
-
class: "form-radio w-5 h-5 border border-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) => r(d)(a.value))
|
|
25
|
-
}, null, 40, f),
|
|
26
|
-
o("label", {
|
|
27
|
-
class: "cursor-pointer pl-2 mr-3 input-label",
|
|
28
|
-
for: i
|
|
29
|
-
}, v(p.label), 1)
|
|
30
|
-
]));
|
|
31
|
-
}
|
|
32
|
-
});
|
|
33
|
-
export {
|
|
34
|
-
g as _
|
|
35
|
-
};
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { defineComponent as r, mergeModels as u, useModel as c, inject as l, withDirectives as m, openBlock as f, createElementBlock as b, normalizeClass as v, unref as t, vModelDynamic as y } from "vue";
|
|
2
|
-
const _ = ["type", "id", "placeholder", "autocomplete", "disabled"], M = /* @__PURE__ */ r({
|
|
3
|
-
name: "TInputText",
|
|
4
|
-
__name: "InputText",
|
|
5
|
-
props: /* @__PURE__ */ u({
|
|
6
|
-
type: { default: "text" },
|
|
7
|
-
placeholder: { default: void 0 },
|
|
8
|
-
autocomplete: { default: void 0 },
|
|
9
|
-
disabled: { type: Boolean, default: !1 },
|
|
10
|
-
disableStyle: { type: Boolean, default: !1 }
|
|
11
|
-
}, {
|
|
12
|
-
modelValue: {
|
|
13
|
-
default: ""
|
|
14
|
-
},
|
|
15
|
-
modelModifiers: {}
|
|
16
|
-
}),
|
|
17
|
-
emits: /* @__PURE__ */ u(["keyup.enter"], ["update:modelValue"]),
|
|
18
|
-
setup(o, { emit: h }) {
|
|
19
|
-
const d = c(o, "modelValue"), e = o, p = l("id", ""), a = l("invalid", !1), i = l("validated", !1);
|
|
20
|
-
return (x, n) => m((f(), b("input", {
|
|
21
|
-
"onUpdate:modelValue": n[0] || (n[0] = (s) => d.value = s),
|
|
22
|
-
type: e.type,
|
|
23
|
-
class: v({
|
|
24
|
-
"h-9 input-bg-color input-text-color input-outline border input-border input-roundness input-padding w-full": !e.disableStyle,
|
|
25
|
-
"border-red-500": !t(i) && t(a),
|
|
26
|
-
"border-emerald-500": t(i) && !t(a)
|
|
27
|
-
}),
|
|
28
|
-
id: t(p),
|
|
29
|
-
placeholder: e.placeholder,
|
|
30
|
-
autocomplete: e.autocomplete,
|
|
31
|
-
disabled: e.disabled
|
|
32
|
-
}, null, 10, _)), [
|
|
33
|
-
[y, d.value]
|
|
34
|
-
]);
|
|
35
|
-
}
|
|
36
|
-
});
|
|
37
|
-
export {
|
|
38
|
-
M as _
|
|
39
|
-
};
|
/package/dist/types/components/InputCheckbox/{input-checkbox.story.d.ts → Input-checkbox.story.d.ts}
RENAMED
|
File without changes
|
/package/dist/types/components/InputPassword/{input-password.story.d.ts → Input-password.story.d.ts}
RENAMED
|
File without changes
|