@caipira/tamandua 0.0.68 → 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/FormItem.js CHANGED
@@ -1,5 +1,5 @@
1
- import { _ as r } from "./FormItem.vue_vue_type_script_setup_true_lang-D7a8YCgS.js";
2
- import { p as t } from "./plugin-CvohbpUQ.js";
1
+ import { _ as r } from "./FormItem.vue_vue_type_script_setup_true_lang-CInvGeMR.js";
2
+ import { p as t } from "./plugin-CEsqY6D6.js";
3
3
  export {
4
4
  r as FormItem,
5
5
  t as FormItemPlugin
@@ -0,0 +1,71 @@
1
+ import { defineComponent as b, useSlots as x, inject as g, computed as u, resolveComponent as k, openBlock as l, createElementBlock as a, createElementVNode as i, normalizeClass as s, createBlock as z, unref as c, withCtx as C, renderSlot as f, Fragment as S, renderList as B, toDisplayString as F, createCommentVNode as I } from "vue";
2
+ const w = { class: "w-full" }, E = {
3
+ key: 0,
4
+ class: "float-right"
5
+ }, T = /* @__PURE__ */ b({
6
+ name: "TFormItem",
7
+ __name: "FormItem",
8
+ props: {
9
+ label: {},
10
+ rules: {},
11
+ layout: {}
12
+ },
13
+ setup(d) {
14
+ const o = d, n = x(), m = [], e = g("formStyle", {
15
+ label: "",
16
+ input: "",
17
+ layout: "horizontal"
18
+ }), y = u(() => {
19
+ if (!n || !n.default)
20
+ return !1;
21
+ const t = n?.default();
22
+ return t ? t[0].type.name : !1;
23
+ }), p = u(() => y.value === "TInputMultiplier"), r = u(() => o.layout ? o.layout : e.layout ? e.layout : "horizontal");
24
+ return (t, M) => {
25
+ const h = k("t-graphy-label");
26
+ return l(), a("div", w, [
27
+ i("div", {
28
+ class: s(["flex gap-2 my-5", {
29
+ "flex-col": r.value === "vertical",
30
+ "items-center": r.value === "horizontal" && !p.value,
31
+ "items-start": p.value
32
+ }])
33
+ }, [
34
+ o.label ? (l(), z(h, {
35
+ key: 0,
36
+ text: o.label,
37
+ class: s({
38
+ [c(e).label]: !0,
39
+ "text-right": r.value === "horizontal"
40
+ })
41
+ }, {
42
+ default: C(() => [
43
+ f(t.$slots, "label")
44
+ ]),
45
+ _: 3
46
+ }, 8, ["text", "class"])) : (l(), a("div", {
47
+ key: 1,
48
+ class: s({
49
+ [c(e).label]: !0,
50
+ "text-right": r.value === "horizontal"
51
+ })
52
+ }, null, 2)),
53
+ i("div", {
54
+ class: s({ [c(e).input]: !0 })
55
+ }, [
56
+ f(t.$slots, "default")
57
+ ], 2)
58
+ ], 2),
59
+ m ? (l(), a("div", E, [
60
+ (l(), a(S, null, B(m, (v, _) => i("span", {
61
+ class: "text-sm text-red-600",
62
+ key: _
63
+ }, F(v), 1)), 64))
64
+ ])) : I("", !0)
65
+ ]);
66
+ };
67
+ }
68
+ });
69
+ export {
70
+ T as _
71
+ };
package/dist/InputDate.js CHANGED
@@ -1,5 +1,5 @@
1
- import { _ as a } from "./InputDate.vue_vue_type_script_setup_true_lang-BUEAELkk.js";
2
- import { p as o } from "./plugin-DSHWwE9A.js";
1
+ import { _ as a } from "./InputDate.vue_vue_type_script_setup_true_lang-D0VnFq6E.js";
2
+ import { p as o } from "./plugin-CDKPVcLp.js";
3
3
  export {
4
4
  a as InputDate,
5
5
  o as InputDatePlugin
@@ -4,7 +4,7 @@ import { f as E } from "./format-BZx-8XXc.js";
4
4
  const oe = ["value"], le = {
5
5
  class: "p-4 select-none floatable input-roundness",
6
6
  style: { width: "17rem" }
7
- }, ne = { class: "flex justify-between items-center mb-2" }, ae = { class: "text-lg font-bold" }, se = ["value", "selected"], re = ["disabled"], ue = ["disabled"], ie = { class: "flex flex-wrap mb-3 -mx-1" }, de = { class: "font-medium text-center text-xs" }, ce = { class: "flex flex-wrap -mx-1" }, ve = ["onClick"], k = !0, he = /* @__PURE__ */ J({
7
+ }, ne = { class: "flex justify-between items-center mb-6" }, ae = { class: "text-lg font-bold" }, se = ["value", "selected"], re = ["disabled"], ue = ["disabled"], ie = { class: "flex flex-wrap mb-3 -mx-1" }, de = { class: "font-medium text-center text-xs" }, ce = { class: "flex flex-wrap -mx-1" }, ve = ["onClick"], k = !0, he = /* @__PURE__ */ J({
8
8
  name: "TInputDate",
9
9
  __name: "InputDate",
10
10
  props: {
@@ -1,5 +1,5 @@
1
- import { _ as r } from "./InputTextarea.vue_vue_type_script_setup_true_lang-q9T4fINI.js";
2
- import { p } from "./plugin-C8Z-XgLn.js";
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 r, watch as f, openBlock as b, createElementBlock as v, normalizeClass as h, unref as t } from "vue";
2
- const y = ["value", "type", "placeholder", "disabled"], x = /* @__PURE__ */ m({
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(i, { emit: u }) {
14
- const s = i, p = u, a = d(""), l = r("invalid", !1), o = r("validated", !1);
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 && (a.value = e);
23
+ e && (l.value = e);
24
24
  },
25
25
  { immediate: !0 }
26
26
  ), (e, n) => (b(), v("textarea", {
27
- value: a.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 input-roundness", {
30
- "border rounded-sm h-9": !e.disableStyle,
31
- "border-red-500": !t(o) && t(l),
32
- "border-emerald-500": t(o) && !t(l)
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
- x as _
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-BvUk8ebI.js";
2
- import { p } from "./plugin-n_PnyR3n.js";
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 l, normalizeClass as a, withKeys as _, createBlock as k, createCommentVNode as s, createElementVNode as c, createVNode as v, toDisplayString as w, renderSlot as n } from "vue";
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
2
  import { _ as S } from "./Backdrop.vue_vue_type_script_setup_true_lang-Dyo6_-EM.js";
3
- const x = {
3
+ const B = {
4
4
  key: 0,
5
5
  class: "p-4 border-b border-color"
6
- }, B = {
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
- }, z = /* @__PURE__ */ m({
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, p = u, i = y(null), r = (t) => {
25
- t.stopPropagation(), p("closed");
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, g) => {
30
- const f = h("t-button");
31
- return o(), l("div", {
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
- })) : s("", !0),
45
+ })) : l("", !0),
46
46
  c("div", {
47
47
  class: a(["z-10 w-full md:w-[36rem] mx-auto", {
48
- "bg-caipira-primary input-roundness shadow-2xl relative": !e.disableStyle,
48
+ "relative floatable": !e.disableStyle,
49
49
  [e.injectStyle.container]: !0
50
50
  }])
51
51
  }, [
52
- v(f, {
52
+ v(p, {
53
53
  variant: "transparent",
54
- size: "lg",
55
54
  icon: "close",
56
- class: "absolute top-0 right-0",
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(), l("div", x, [
60
- e.title ? (o(), l("span", B, w(e.title), 1)) : s("", !0),
61
- t.$slots.header ? n(t.$slots, "header", { key: 1 }) : s("", !0)
62
- ])) : s("", !0),
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(), l("div", C, [
71
+ t.$slots.footer ? (o(), s("div", C, [
72
72
  n(t.$slots, "footer")
73
- ])) : s("", !0)
73
+ ])) : l("", !0)
74
74
  ], 2)
75
75
  ], 34);
76
76
  };
77
77
  }
78
78
  });
79
79
  export {
80
- z as _
80
+ g as _
81
81
  };
@@ -7,7 +7,7 @@ import { D as u } from "./Drawer-y5xBARd2.js";
7
7
  import { _ as l } from "./Dropdown.vue_vue_type_script_setup_true_lang-MuajPvzR.js";
8
8
  import { _ as c } from "./FileDrop.vue_vue_type_script_setup_true_lang-Bq0lAgZ7.js";
9
9
  import { _ as T } from "./Form.vue_vue_type_script_setup_true_lang-CNGNCak7.js";
10
- import { _ as C } from "./FormItem.vue_vue_type_script_setup_true_lang-D7a8YCgS.js";
10
+ import { _ as C } from "./FormItem.vue_vue_type_script_setup_true_lang-CInvGeMR.js";
11
11
  import { _ as b } from "./GraphyEmpty.vue_vue_type_script_setup_true_lang-B-hAjDCw.js";
12
12
  import { _ as G } from "./GraphyLabel.vue_vue_type_script_setup_true_lang-DIKuG0Po.js";
13
13
  import { _ as g } from "./GraphyPrice.vue_vue_type_script_setup_true_lang-BDYxfzF6.js";
@@ -18,7 +18,7 @@ import { _ as B } from "./InputAvatar.vue_vue_type_script_setup_true_lang-coNpUH
18
18
  import { _ as R } from "./InputCheckbox.vue_vue_type_style_index_0_lang-DqRzwkVN.js";
19
19
  import { _ as q } from "./InputCryptoCurrency.vue_vue_type_script_setup_true_lang-BIUT5eCh.js";
20
20
  import { _ as H } from "./InputColor.vue_vue_type_script_setup_true_lang-DT-MAgI2.js";
21
- import { _ as K } from "./InputDate.vue_vue_type_script_setup_true_lang-BUEAELkk.js";
21
+ import { _ as K } from "./InputDate.vue_vue_type_script_setup_true_lang-D0VnFq6E.js";
22
22
  import { _ as O } from "./InputMultiplier.vue_vue_type_script_setup_true_lang-BguqKGGe.js";
23
23
  import { _ as U } from "./InputPassword.vue_vue_type_script_setup_true_lang-ChHDOnS8.js";
24
24
  import { _ as W } from "./InputPhone.vue_vue_type_script_setup_true_lang-B4TULqLW.js";
@@ -28,9 +28,9 @@ import "vue";
28
28
  import { _ as or } from "./InputSelect.vue_vue_type_script_setup_true_lang-Dy5fjzHK.js";
29
29
  import { _ as er } from "./InputSwitch.vue_vue_type_script_setup_true_lang-BVGfQFZh.js";
30
30
  import { _ as ar } from "./InputText.vue_vue_type_script_setup_true_lang-JLAlUE_2.js";
31
- import { _ as sr } from "./InputTextarea.vue_vue_type_script_setup_true_lang-q9T4fINI.js";
31
+ import { _ as sr } from "./InputTextarea.vue_vue_type_script_setup_true_lang-C8f2hfeZ.js";
32
32
  import { _ as fr } from "./Link.vue_vue_type_script_setup_true_lang-BE-Gh_jJ.js";
33
- import { _ as nr } from "./Modal.vue_vue_type_script_setup_true_lang-BvUk8ebI.js";
33
+ import { _ as nr } from "./Modal.vue_vue_type_script_setup_true_lang-60BGY-iH.js";
34
34
  import { _ as ur } from "./ModalForm.vue_vue_type_script_setup_true_lang-RfK0Mn81.js";
35
35
  import { _ as lr } from "./Pagination.vue_vue_type_script_setup_true_lang-BCQUrEVO.js";
36
36
  import { _ as cr } from "./Popconfirm.vue_vue_type_script_setup_true_lang-C37pLEUq.js";
package/dist/index.css CHANGED
@@ -7,15 +7,15 @@
7
7
  /* Light theme */
8
8
  --caipira-light-primary: #fff;
9
9
  --caipira-light-secondary: #f5f5f5;
10
- --caipira-light-red: #e64553;
11
- --caipira-light-green: #16a34ae6;
10
+ --caipira-light-red: #d32f2f;
11
+ --caipira-light-green: #2e7d32;
12
12
  --caipira-light-yellow: #df8e1d;
13
13
  --caipira-light-blue: #1e66f5;
14
14
 
15
15
  /* Dark theme */
16
- --caipira-dark-primary: #000;
16
+ --caipira-dark-primary: #0f0f0f;
17
17
  --caipira-dark-secondary: #1e1e1e;
18
- --caipira-dark-red: #f85149;
18
+ --caipira-dark-red: #c62828;
19
19
  --caipira-dark-green: #3fb950;
20
20
  --caipira-dark-yellow: #df8e1d;
21
21
  --caipira-dark-blue: #4089ff;
@@ -79,6 +79,8 @@
79
79
  --text-color: var(--caipira-primary-inverted);
80
80
 
81
81
  --input-radius: var(--radius-sm);
82
+
83
+ --content-radius: var(--radius-md);
82
84
  }
83
85
  }
84
86
 
@@ -181,14 +183,20 @@
181
183
  color: var(--text-color);
182
184
  }
183
185
  .input-padding {
184
- @apply pl-2 pr-1;
186
+ padding: calc(var(--spacing) * 2);
185
187
  }
186
188
 
187
189
  /* Card */
188
190
  .card {
189
- @apply relative max-w-md w-full rounded-sm border p-4;
191
+ width: 100%;
192
+ max-width: var(--container-md);
193
+ position: relative;
194
+ border-style: var(--tw-border-style);
195
+ border-width: 1px;
190
196
  border-color: var(--border-color);
191
197
  background-color: var(--bg-color);
198
+ padding: calc(var(--spacing) * 4);
199
+ border-radius: var(--content-radius);
192
200
  }
193
201
  .card-grid {
194
202
  @apply flex flex-wrap justify-start md:justify-start items-stretch gap-3;
@@ -204,9 +212,12 @@
204
212
 
205
213
  /* Floatables (Modal, Popover, etc) */
206
214
  .floatable {
207
- @apply shadow-xs border;
215
+ @apply shadow-xs;
216
+ border-style: var(--tw-border-style);
217
+ border-width: 1px;
208
218
  border-color: var(--border-color);
209
219
  background-color: var(--bg-color);
220
+ border-radius: var(--content-radius);
210
221
  }
211
222
 
212
223
  /* Scrollbar */
@@ -1,5 +1,5 @@
1
1
  import { r } from "./register-component-B-fdqewb.js";
2
- import { _ as s } from "./InputDate.vue_vue_type_script_setup_true_lang-BUEAELkk.js";
2
+ import { _ as s } from "./InputDate.vue_vue_type_script_setup_true_lang-D0VnFq6E.js";
3
3
  const m = {
4
4
  install(o) {
5
5
  r(o, s);
@@ -1,5 +1,5 @@
1
1
  import { r } from "./register-component-B-fdqewb.js";
2
- import { _ as s } from "./FormItem.vue_vue_type_script_setup_true_lang-D7a8YCgS.js";
2
+ import { _ as s } from "./FormItem.vue_vue_type_script_setup_true_lang-CInvGeMR.js";
3
3
  const m = {
4
4
  install(o) {
5
5
  r(o, s);
@@ -1,5 +1,5 @@
1
1
  import { r } from "./register-component-B-fdqewb.js";
2
- import { _ as s } from "./Modal.vue_vue_type_script_setup_true_lang-BvUk8ebI.js";
2
+ import { _ as s } from "./Modal.vue_vue_type_script_setup_true_lang-60BGY-iH.js";
3
3
  const m = {
4
4
  install(o) {
5
5
  r(o, s);
@@ -1,5 +1,5 @@
1
1
  import { r } from "./register-component-B-fdqewb.js";
2
- import { _ as s } from "./InputTextarea.vue_vue_type_script_setup_true_lang-q9T4fINI.js";
2
+ import { _ as s } from "./InputTextarea.vue_vue_type_script_setup_true_lang-C8f2hfeZ.js";
3
3
  const m = {
4
4
  install(o) {
5
5
  r(o, s);
@@ -14,7 +14,7 @@ import { p as u } from "./plugin-CzRCyET3.js";
14
14
  import { p as l } from "./plugin-43q0Kzto.js";
15
15
  import "./Form.vue_vue_type_script_setup_true_lang-CNGNCak7.js";
16
16
  import { p as t } from "./plugin-BuU0zOfE.js";
17
- import { p as g } from "./plugin-CvohbpUQ.js";
17
+ import { p as g } from "./plugin-CEsqY6D6.js";
18
18
  import { p as a } from "./plugin-Buc7eEox.js";
19
19
  import { p as s } from "./plugin-CC97Vx-s.js";
20
20
  import "./GraphyPrice.vue_vue_type_script_setup_true_lang-BDYxfzF6.js";
@@ -28,7 +28,7 @@ import "./InputCheckbox.vue_vue_type_style_index_0_lang-DqRzwkVN.js";
28
28
  import { p as c } from "./plugin-DIj5ypE6.js";
29
29
  import { p as h } from "./plugin-Bq4nQPd4.js";
30
30
  import { p as y } from "./plugin-D9KHvOM3.js";
31
- import { p as b } from "./plugin-DSHWwE9A.js";
31
+ import { p as b } from "./plugin-CDKPVcLp.js";
32
32
  import { p as d } from "./plugin-Br-QOjhk.js";
33
33
  import { p as T } from "./plugin-3Ql4s0Jh.js";
34
34
  import { p as C } from "./plugin-CrHDShgh.js";
@@ -39,10 +39,10 @@ import "./InputSelect.vue_vue_type_script_setup_true_lang-Dy5fjzHK.js";
39
39
  import { p as G } from "./plugin-DNJyBcDk.js";
40
40
  import { p as k } from "./plugin-hQ-aWPlo.js";
41
41
  import { p as w } from "./plugin-lYDlOt8p.js";
42
- import { p as x } from "./plugin-C8Z-XgLn.js";
42
+ import { p as x } from "./plugin-Clp0zNY0.js";
43
43
  import "./Link.vue_vue_type_script_setup_true_lang-BE-Gh_jJ.js";
44
44
  import { p as D } from "./plugin-CEByTREY.js";
45
- import { p as F } from "./plugin-n_PnyR3n.js";
45
+ import { p as F } from "./plugin-CPpRqUnI.js";
46
46
  import { p as L } from "./plugin-DNXazWwT.js";
47
47
  import { p as M } from "./plugin-jyvJNavM.js";
48
48
  import "./Popconfirm.vue_vue_type_script_setup_true_lang-C37pLEUq.js";
package/dist/plugins.js CHANGED
@@ -14,7 +14,7 @@ import { p as A } from "./plugin-CzRCyET3.js";
14
14
  import { p as E } from "./plugin-43q0Kzto.js";
15
15
  import "./Form.vue_vue_type_script_setup_true_lang-CNGNCak7.js";
16
16
  import { p as j } from "./plugin-BuU0zOfE.js";
17
- import { p as z } from "./plugin-CvohbpUQ.js";
17
+ import { p as z } from "./plugin-CEsqY6D6.js";
18
18
  import { p as J } from "./plugin-Buc7eEox.js";
19
19
  import { p as N } from "./plugin-CC97Vx-s.js";
20
20
  import "./GraphyPrice.vue_vue_type_script_setup_true_lang-BDYxfzF6.js";
@@ -28,7 +28,7 @@ import "./InputCheckbox.vue_vue_type_style_index_0_lang-DqRzwkVN.js";
28
28
  import { p as or } from "./plugin-DIj5ypE6.js";
29
29
  import { p as tr } from "./plugin-Bq4nQPd4.js";
30
30
  import { p as er } from "./plugin-D9KHvOM3.js";
31
- import { p as nr } from "./plugin-DSHWwE9A.js";
31
+ import { p as nr } from "./plugin-CDKPVcLp.js";
32
32
  import { p as ur } from "./plugin-Br-QOjhk.js";
33
33
  import { p as Pr } from "./plugin-3Ql4s0Jh.js";
34
34
  import { p as gr } from "./plugin-CrHDShgh.js";
@@ -39,10 +39,10 @@ import "./InputSelect.vue_vue_type_script_setup_true_lang-Dy5fjzHK.js";
39
39
  import { p as yr } from "./plugin-DNJyBcDk.js";
40
40
  import { p as Cr } from "./plugin-hQ-aWPlo.js";
41
41
  import { p as br } from "./plugin-lYDlOt8p.js";
42
- import { p as Sr } from "./plugin-C8Z-XgLn.js";
42
+ import { p as Sr } from "./plugin-Clp0zNY0.js";
43
43
  import "./Link.vue_vue_type_script_setup_true_lang-BE-Gh_jJ.js";
44
44
  import { p as vr } from "./plugin-CEByTREY.js";
45
- import { p as Dr } from "./plugin-n_PnyR3n.js";
45
+ import { p as Dr } from "./plugin-CPpRqUnI.js";
46
46
  import { p as Lr } from "./plugin-DNXazWwT.js";
47
47
  import { p as Ar } from "./plugin-jyvJNavM.js";
48
48
  import "./Popconfirm.vue_vue_type_script_setup_true_lang-C37pLEUq.js";
package/dist/tamandua.js CHANGED
@@ -1,4 +1,4 @@
1
- import { p as n } from "./plugins-CEGTMSZE.js";
1
+ import { p as n } from "./plugins-BCnw00-W.js";
2
2
  const o = {
3
3
  install(s) {
4
4
  for (const i in n)
@@ -1,7 +1,7 @@
1
1
  import { FormLayout } from '../Form/types.js';
2
2
 
3
3
  export type FormItemProps = {
4
- label: string;
4
+ label?: string;
5
5
  rules?: any;
6
6
  layout?: FormLayout;
7
7
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@caipira/tamandua",
3
- "version": "0.0.68",
3
+ "version": "0.0.69",
4
4
  "private": false,
5
5
  "description": "UI library for the Caipira ecosystem",
6
6
  "license": "GPL-3.0-only",
@@ -1,64 +0,0 @@
1
- import { defineComponent as x, useSlots as b, inject as g, computed as a, resolveComponent as z, openBlock as s, createElementBlock as n, createElementVNode as u, normalizeClass as i, createVNode as C, unref as p, withCtx as S, renderSlot as f, Fragment as k, renderList as F, toDisplayString as I, createCommentVNode as N } from "vue";
2
- const V = { class: "w-full" }, w = {
3
- key: 0,
4
- class: "float-right"
5
- }, M = /* @__PURE__ */ x({
6
- name: "TFormItem",
7
- __name: "FormItem",
8
- props: {
9
- label: {},
10
- rules: {},
11
- layout: {}
12
- },
13
- setup(d) {
14
- const l = d, o = b(), c = [], t = g("formStyle", {
15
- label: "",
16
- input: "",
17
- layout: "horizontal"
18
- }), y = a(() => {
19
- if (!o || !o.default)
20
- return !1;
21
- const e = o?.default();
22
- return e ? e[0].type.name : !1;
23
- }), m = a(() => y.value === "TInputMultiplier"), r = a(() => l.layout ? l.layout : t.layout ? t.layout : "horizontal");
24
- return (e, B) => {
25
- const _ = z("t-graphy-label");
26
- return s(), n("div", V, [
27
- u("div", {
28
- class: i(["flex gap-2 my-5", {
29
- "flex-col": r.value === "vertical",
30
- "items-center": r.value === "horizontal" && !m.value,
31
- "items-start": m.value
32
- }])
33
- }, [
34
- C(_, {
35
- text: l.label,
36
- class: i({
37
- [p(t).label]: !0,
38
- "text-right": r.value === "horizontal"
39
- })
40
- }, {
41
- default: S(() => [
42
- f(e.$slots, "label")
43
- ]),
44
- _: 3
45
- }, 8, ["text", "class"]),
46
- u("div", {
47
- class: i({ [p(t).input]: !0 })
48
- }, [
49
- f(e.$slots, "default")
50
- ], 2)
51
- ], 2),
52
- c ? (s(), n("div", w, [
53
- (s(), n(k, null, F(c, (h, v) => u("span", {
54
- class: "text-sm text-red-600",
55
- key: v
56
- }, I(h), 1)), 64))
57
- ])) : N("", !0)
58
- ]);
59
- };
60
- }
61
- });
62
- export {
63
- M as _
64
- };