@caipira/tamandua 0.0.43 → 0.0.45

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.
Files changed (72) hide show
  1. package/dist/{Button-CAiIEdkK.js → Button-DxCwFAWy.js} +21 -23
  2. package/dist/Button.css +1 -1
  3. package/dist/Button.js +2 -2
  4. package/dist/Drawer-BNQfu7JD.js +76 -0
  5. package/dist/Drawer.css +1 -1
  6. package/dist/Drawer.js +2 -2
  7. package/dist/FormItem.js +2 -2
  8. package/dist/FormItem.vue_vue_type_script_setup_true_lang-CV7IVjE4.js +84 -0
  9. package/dist/GraphySubtitle.js +2 -2
  10. package/dist/GraphySubtitle.vue_vue_type_script_setup_true_lang-DsBHn2gS.js +18 -0
  11. package/dist/InputCheckbox.css +1 -0
  12. package/dist/InputCheckbox.js +2 -2
  13. package/dist/{InputCheckbox.vue_vue_type_script_setup_true_lang-Bh8HA3Ay.js → InputCheckbox.vue_vue_type_style_index_0_lang-BONJ9l1D.js} +1 -0
  14. package/dist/InputMultiplier.js +2 -2
  15. package/dist/InputMultiplier.vue_vue_type_script_setup_true_lang-BFDBZk2M.js +66 -0
  16. package/dist/InputRadio.css +1 -0
  17. package/dist/InputRadio.js +2 -2
  18. package/dist/{InputRadio.vue_vue_type_script_setup_true_lang-Cu7lzDAh.js → InputRadio.vue_vue_type_style_index_0_lang-IqPZ9Qzl.js} +1 -0
  19. package/dist/InputText.js +2 -2
  20. package/dist/InputText.vue_vue_type_script_setup_true_lang-D4nIMRiz.js +39 -0
  21. package/dist/Link.js +2 -2
  22. package/dist/{Link.vue_vue_type_script_setup_true_lang-DBYJfl5l.js → Link.vue_vue_type_script_setup_true_lang-gTf77Jvd.js} +10 -10
  23. package/dist/{ProgressCircle-BY2eeyGY.js → ProgressCircle-Cpmi2CpO.js} +4 -4
  24. package/dist/ProgressCircle.css +1 -1
  25. package/dist/ProgressCircle.js +2 -2
  26. package/dist/components.js +10 -10
  27. package/dist/index.css +1 -29
  28. package/dist/{plugin-DLFPglIt.js → plugin-BjXXC0b-.js} +1 -1
  29. package/dist/{plugin-DRcJuXpS.js → plugin-D0o7F2L4.js} +1 -1
  30. package/dist/{plugin-Bog7k3Qf.js → plugin-D6dx276z.js} +1 -1
  31. package/dist/{plugin-Bbt6pP0l.js → plugin-DDUNw6fL.js} +1 -1
  32. package/dist/{plugin-BDFttGl1.js → plugin-DHstqRmE.js} +1 -1
  33. package/dist/{plugin-DcWjzc_X.js → plugin-DQ6digu2.js} +1 -1
  34. package/dist/{plugin-DLkeyKDM.js → plugin-Dz7BPW4D.js} +1 -1
  35. package/dist/{plugin-DN54VuID.js → plugin-F3dxY_wr.js} +1 -1
  36. package/dist/{plugin-DXSsGfRI.js → plugin-MAzqwXys.js} +1 -1
  37. package/dist/{plugin-U6NcpOUL.js → plugin-WcNmSb_y.js} +1 -1
  38. package/dist/{plugins-DXwzOgCo.js → plugins-C7Uur4I5.js} +18 -16
  39. package/dist/plugins.js +92 -90
  40. package/dist/tamandua.js +1 -1
  41. package/dist/types/components/Button/Button.vue.d.ts +47 -6
  42. package/dist/types/components/ChartTreemap/ChartTreemap.vue.d.ts +12 -3
  43. package/dist/types/components/Drawer/Drawer.story.d.ts +31 -0
  44. package/dist/types/components/Drawer/Drawer.vue.d.ts +44 -2
  45. package/dist/types/components/Dropdown/Dropdown.vue.d.ts +87 -4
  46. package/dist/types/components/Dropdown/types.d.ts +2 -3
  47. package/dist/types/components/GraphyLabel/GraphyLabel.vue.d.ts +12 -3
  48. package/dist/types/components/GraphySubtitle/GraphySubtitle.vue.d.ts +25 -2
  49. package/dist/types/components/GraphyTitle/GraphyTitle.vue.d.ts +12 -3
  50. package/dist/types/components/Icon/Icon.vue.d.ts +30 -3
  51. package/dist/types/components/InputAvatar/InputAvatar.vue.d.ts +1 -1
  52. package/dist/types/components/InputCheckbox/InputCheckbox.vue.d.ts +37 -2
  53. package/dist/types/components/InputColor/InputColor.vue.d.ts +32 -2
  54. package/dist/types/components/InputDate/InputDate.vue.d.ts +16 -3
  55. package/dist/types/components/InputMultiplier/InputMultiplier.vue.d.ts +40 -2
  56. package/dist/types/components/InputRadio/InputRadio.vue.d.ts +12 -3
  57. package/dist/types/components/InputRadio/InputRadioGroup.vue.d.ts +29 -2
  58. package/dist/types/components/InputSwitch/InputSwitch.vue.d.ts +32 -2
  59. package/dist/types/components/InputText/InputText.vue.d.ts +46 -38
  60. package/dist/types/components/InputText/types.d.ts +0 -2
  61. package/dist/types/components/InputTextarea/InputTextarea.vue.d.ts +38 -2
  62. package/dist/types/components/Modal/Modal.vue.d.ts +49 -2
  63. package/dist/types/components/Pagination/Pagination.vue.d.ts +39 -2
  64. package/dist/types/components/Popconfirm/Popconfirm.vue.d.ts +33 -2
  65. package/dist/types/components/Popover/Popover.vue.d.ts +9 -9
  66. package/dist/types/components/ProgressCircle/ProgressCircle.vue.d.ts +37 -2
  67. package/package.json +1 -1
  68. package/dist/Drawer-omdZnBPG.js +0 -74
  69. package/dist/FormItem.vue_vue_type_script_setup_true_lang-CjW-P8Xf.js +0 -80
  70. package/dist/GraphySubtitle.vue_vue_type_script_setup_true_lang-DtAmgZWp.js +0 -18
  71. package/dist/InputMultiplier.vue_vue_type_script_setup_true_lang-BJJQTQzF.js +0 -74
  72. package/dist/InputText.vue_vue_type_script_setup_true_lang-Dyvx9Ob-.js +0 -40
@@ -1,10 +1,10 @@
1
1
  import './Button.css';
2
- import { defineComponent as _, useSlots as z, getCurrentInstance as A, ref as v, computed as p, resolveComponent as U, openBlock as s, createBlock as y, resolveDynamicComponent as D, normalizeClass as L, unref as a, withCtx as k, renderSlot as F, mergeProps as P, createCommentVNode as m, createElementBlock as h, Fragment as M, createTextVNode as G, toDisplayString as O } from "vue";
2
+ import { defineComponent as _, useSlots as z, ref as v, computed as p, resolveComponent as A, openBlock as s, createBlock as y, resolveDynamicComponent as U, normalizeClass as D, unref as a, withCtx as L, renderSlot as k, mergeProps as F, createCommentVNode as m, createElementBlock as h, Fragment as P, createTextVNode as M, toDisplayString as G } from "vue";
3
3
  import { c as i, a as t, b as d, B as r } from "./ui-BC6H9E93.js";
4
4
  import { g as b } from "./index-CVD_wAsU.js";
5
5
  import "./Icon.vue_vue_type_script_setup_true_lang-DXUyEtqW.js";
6
- import { _ as W } from "./_plugin-vue_export-helper-CHgC5LLL.js";
7
- const V = ["multiple"], Y = /* @__PURE__ */ _({
6
+ import { _ as O } from "./_plugin-vue_export-helper-CHgC5LLL.js";
7
+ const W = ["multiple"], V = /* @__PURE__ */ _({
8
8
  name: "TButton",
9
9
  __name: "Button",
10
10
  props: {
@@ -23,9 +23,7 @@ const V = ["multiple"], Y = /* @__PURE__ */ _({
23
23
  },
24
24
  emits: ["upload"],
25
25
  setup(g, { expose: S, emit: x }) {
26
- const e = g, E = x, T = z();
27
- A();
28
- const f = v(), u = v(null), B = p(() => {
26
+ const e = g, E = x, T = z(), f = v(), u = v(null), B = p(() => {
29
27
  switch (e.type) {
30
28
  case i.SUBMIT:
31
29
  return "submit";
@@ -34,7 +32,7 @@ const V = ["multiple"], Y = /* @__PURE__ */ _({
34
32
  default:
35
33
  return "button";
36
34
  }
37
- }), C = p(() => e.type === i.SUBMIT ? e.label : void 0), I = p(() => {
35
+ }), R = p(() => e.type === i.SUBMIT ? e.label : void 0), w = p(() => {
38
36
  switch (e.type) {
39
37
  case i.SUBMIT:
40
38
  return "input";
@@ -43,7 +41,7 @@ const V = ["multiple"], Y = /* @__PURE__ */ _({
43
41
  default:
44
42
  return "button";
45
43
  }
46
- }), R = (l) => {
44
+ }), C = (l) => {
47
45
  if (e.type === i.SUBMIT && l.preventDefault(), e.type === i.FILE && f.value?.click(), e.animate) {
48
46
  let o = null;
49
47
  e.animate.target === "icon" && (o = u.value?.reference), o && b.to(o, {
@@ -55,7 +53,7 @@ const V = ["multiple"], Y = /* @__PURE__ */ _({
55
53
  }
56
54
  });
57
55
  }
58
- }, w = (l) => {
56
+ }, I = (l) => {
59
57
  l.stopPropagation();
60
58
  const c = l.target.files;
61
59
  !c || !c.length || E("upload", c);
@@ -76,12 +74,12 @@ const V = ["multiple"], Y = /* @__PURE__ */ _({
76
74
  }
77
75
  }), n = p(() => !!e.label || !!T.default);
78
76
  return S({ iconReference: u }), (l, o) => {
79
- const c = U("t-icon");
80
- return s(), y(D(I.value), {
77
+ const c = A("t-icon");
78
+ return s(), y(U(w.value), {
81
79
  type: B.value,
82
- value: C.value,
80
+ value: R.value,
83
81
  disabled: e.disabled,
84
- class: L([{
82
+ class: D([{
85
83
  // Size
86
84
  "text-xs px-1 h-4": e.size === a(t).ExtraSmall,
87
85
  "text-sm px-2 h-7": e.size === a(t).Small,
@@ -122,11 +120,11 @@ const V = ["multiple"], Y = /* @__PURE__ */ _({
122
120
  "transparent-hover": e.variant === a(r).TRANSPARENT && e.hover
123
121
  }, "input-outline flex items-center select-none whitespace-nowrap"]),
124
122
  role: "button",
125
- onClick: R
123
+ onClick: C
126
124
  }, {
127
- default: k(() => [
128
- F(l.$slots, "default", {}, void 0, !0),
129
- e.icon ? (s(), y(c, P({
125
+ default: L(() => [
126
+ k(l.$slots, "default", {}, void 0, !0),
127
+ e.icon ? (s(), y(c, F({
130
128
  key: 0,
131
129
  ref_key: "iconReference",
132
130
  ref: u,
@@ -140,8 +138,8 @@ const V = ["multiple"], Y = /* @__PURE__ */ _({
140
138
  "mr-3": n.value && e.size === a(t).ExtraLarge
141
139
  }
142
140
  }, e.iconProps), null, 16, ["size", "icon", "class"])) : m("", !0),
143
- e.label && e.type !== a(i).SUBMIT ? (s(), h(M, { key: 1 }, [
144
- G(O(e.label), 1)
141
+ e.label && e.type !== a(i).SUBMIT ? (s(), h(P, { key: 1 }, [
142
+ M(G(e.label), 1)
145
143
  ], 64)) : m("", !0),
146
144
  e.type === "file" ? (s(), h("input", {
147
145
  key: 2,
@@ -150,14 +148,14 @@ const V = ["multiple"], Y = /* @__PURE__ */ _({
150
148
  ref_key: "fileInput",
151
149
  ref: f,
152
150
  class: "hidden",
153
- onChange: w
154
- }, null, 40, V)) : m("", !0)
151
+ onChange: I
152
+ }, null, 40, W)) : m("", !0)
155
153
  ]),
156
154
  _: 3
157
155
  }, 8, ["type", "value", "disabled", "class"]);
158
156
  };
159
157
  }
160
- }), J = /* @__PURE__ */ W(Y, [["__scopeId", "data-v-7e65a1ef"]]);
158
+ }), H = /* @__PURE__ */ O(V, [["__scopeId", "data-v-0b2ecce0"]]);
161
159
  export {
162
- J as B
160
+ H as B
163
161
  };
package/dist/Button.css CHANGED
@@ -1 +1 @@
1
- .transparent-hover[data-v-7e65a1ef]:hover{background-color:rgb(from var(--caipira-primary) r g b / 45%)}
1
+ .transparent-hover[data-v-0b2ecce0]:hover{background-color:rgb(from var(--caipira-primary) r g b / 45%)}
package/dist/Button.js CHANGED
@@ -1,5 +1,5 @@
1
- import { B as r } from "./Button-CAiIEdkK.js";
2
- import { p } from "./plugin-DcWjzc_X.js";
1
+ import { B as r } from "./Button-DxCwFAWy.js";
2
+ import { p } from "./plugin-DQ6digu2.js";
3
3
  export {
4
4
  r as Button,
5
5
  p as ButtonPlugin
@@ -0,0 +1,76 @@
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
+ };
package/dist/Drawer.css CHANGED
@@ -1 +1 @@
1
- .drawer[data-v-8ed9a90a]{box-shadow:#0003 0 8px 10px -5px,#00000024 0 16px 24px 2px,#0000001f 0 6px 30px 5px}
1
+ .drawer[data-v-1e2fe237]{box-shadow:#0003 0 8px 10px -5px,#00000024 0 16px 24px 2px,#0000001f 0 6px 30px 5px}
package/dist/Drawer.js CHANGED
@@ -1,5 +1,5 @@
1
- import { D as e } from "./Drawer-omdZnBPG.js";
2
- import { p } from "./plugin-DRcJuXpS.js";
1
+ import { D as e } from "./Drawer-BNQfu7JD.js";
2
+ import { p } from "./plugin-D0o7F2L4.js";
3
3
  export {
4
4
  e as Drawer,
5
5
  p as DrawerPlugin
package/dist/FormItem.js CHANGED
@@ -1,5 +1,5 @@
1
- import { _ as r } from "./FormItem.vue_vue_type_script_setup_true_lang-CjW-P8Xf.js";
2
- import { p as t } from "./plugin-DLFPglIt.js";
1
+ import { _ as r } from "./FormItem.vue_vue_type_script_setup_true_lang-CV7IVjE4.js";
2
+ import { p as t } from "./plugin-BjXXC0b-.js";
3
3
  export {
4
4
  r as FormItem,
5
5
  t as FormItemPlugin
@@ -0,0 +1,84 @@
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,5 +1,5 @@
1
- import { _ as p } from "./GraphySubtitle.vue_vue_type_script_setup_true_lang-DtAmgZWp.js";
2
- import { p as e } from "./plugin-DN54VuID.js";
1
+ import { _ as p } from "./GraphySubtitle.vue_vue_type_script_setup_true_lang-DsBHn2gS.js";
2
+ import { p as e } from "./plugin-F3dxY_wr.js";
3
3
  export {
4
4
  p as GraphySubtitle,
5
5
  e as GraphySubtitlePlugin
@@ -0,0 +1,18 @@
1
+ import { defineComponent as r, openBlock as n, createElementBlock as a, normalizeClass as l, toDisplayString as p } from "vue";
2
+ const i = /* @__PURE__ */ r({
3
+ name: "TGraphySubtitle",
4
+ __name: "GraphySubtitle",
5
+ props: {
6
+ text: {},
7
+ textColor: { default: "color-text" }
8
+ },
9
+ setup(t) {
10
+ const e = t;
11
+ return (o, c) => (n(), a("h2", {
12
+ class: l(["color-caipira-primary-inverted text-2xl select-none", [o.textColor]])
13
+ }, p(e.text), 3));
14
+ }
15
+ });
16
+ export {
17
+ i as _
18
+ };
@@ -0,0 +1 @@
1
+ &:not(.dark){.form-checkbox:checked{background-image:url("data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2016%2016'%20fill='%23fff'%3e%3cpath%20d='M12.207%204.793a1%201%200%20010%201.414l-5%205a1%201%200%2001-1.414%200l-2-2a1%201%200%20011.414-1.414L6.5%209.086l4.293-4.293a1%201%200%20011.414%200z'%20/%3e%3c/svg%3e")}.form-checkbox:indeterminate{background-image:url("data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20fill='none'%20viewBox='0%200%2016%2016'%3e%3cpath%20stroke='%23fff'%20stroke-linecap='round'%20stroke-linejoin='round'%20stroke-width='2'%20d='M4%208h8'%20/%3e%3c/svg%3e")}}&.dark{.form-checkbox:checked{background-image:url("data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2016%2016'%20fill='%23000'%3e%3cpath%20d='M12.207%204.793a1%201%200%20010%201.414l-5%205a1%201%200%2001-1.414%200l-2-2a1%201%200%20011.414-1.414L6.5%209.086l4.293-4.293a1%201%200%20011.414%200z'%20/%3e%3c/svg%3e")}.form-checkbox:indeterminate{background-image:url("data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20fill='none'%20viewBox='0%200%2016%2016'%3e%3cpath%20stroke='%23000'%20stroke-linecap='round'%20stroke-linejoin='round'%20stroke-width='2'%20d='M4%208h8'%20/%3e%3c/svg%3e")}}
@@ -1,5 +1,5 @@
1
- import { _ as e } from "./InputCheckbox.vue_vue_type_script_setup_true_lang-Bh8HA3Ay.js";
2
- import { p as t } from "./plugin-DLkeyKDM.js";
1
+ import { _ as e } from "./InputCheckbox.vue_vue_type_style_index_0_lang-BONJ9l1D.js";
2
+ import { p as t } from "./plugin-Dz7BPW4D.js";
3
3
  export {
4
4
  e as InputCheckbox,
5
5
  t as InputCheckboxPlugin
@@ -1,3 +1,4 @@
1
+ import './InputCheckbox.css';
1
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";
2
3
  const B = ["indeterminate", "id", "disabled"], I = /* @__PURE__ */ p({
3
4
  name: "TInputCheckbox",
@@ -1,5 +1,5 @@
1
- import { _ as t } from "./InputMultiplier.vue_vue_type_script_setup_true_lang-BJJQTQzF.js";
2
- import { p as l } from "./plugin-U6NcpOUL.js";
1
+ import { _ as t } from "./InputMultiplier.vue_vue_type_script_setup_true_lang-BFDBZk2M.js";
2
+ import { p as l } from "./plugin-WcNmSb_y.js";
3
3
  export {
4
4
  t as InputMultiplier,
5
5
  l as InputMultiplierPlugin
@@ -0,0 +1,66 @@
1
+ import { defineComponent as _, ref as V, watch as r, resolveComponent as k, openBlock as o, createElementBlock as a, createVNode as m, Fragment as C, renderList as y, createBlock as b, resolveDynamicComponent as I, mergeProps as h, toHandlers as B } from "vue";
2
+ const M = /* @__PURE__ */ _({
3
+ name: "TInputMultiplier",
4
+ __name: "InputMultiplier",
5
+ props: {
6
+ component: { default: "t-input-text" },
7
+ inputProps: { default: () => ({}) },
8
+ label: { default: "" },
9
+ listeners: { default: () => ({}) },
10
+ modelValue: {}
11
+ },
12
+ emits: ["update:model-value"],
13
+ setup(c, { emit: p }) {
14
+ const l = c, i = p, t = V([]), d = () => {
15
+ t.value.push("");
16
+ }, v = (e) => {
17
+ t.value = e;
18
+ }, f = (e) => {
19
+ t.value.splice(e, 1);
20
+ };
21
+ return r(
22
+ t,
23
+ (e) => {
24
+ i("update:model-value", e);
25
+ },
26
+ { deep: !0 }
27
+ ), r(
28
+ () => l.modelValue,
29
+ (e) => {
30
+ v(e ?? []);
31
+ },
32
+ { immediate: !0 }
33
+ ), (e, P) => {
34
+ const u = k("t-button");
35
+ return o(), a("div", null, [
36
+ m(u, {
37
+ label: "Add",
38
+ variant: "primary",
39
+ "is-outline": !0,
40
+ icon: "plus",
41
+ size: "sm",
42
+ onClick: d
43
+ }),
44
+ (o(!0), a(C, null, y(t.value, (g, n) => (o(), a("div", {
45
+ key: n,
46
+ class: "flex items-center justify-start mt-2"
47
+ }, [
48
+ (o(), b(I(l.component), h(l.inputProps, B(l.listeners), {
49
+ modelValue: t.value[n],
50
+ "onUpdate:modelValue": (s) => t.value[n] = s,
51
+ class: "my-1"
52
+ }), null, 16, ["modelValue", "onUpdate:modelValue"])),
53
+ m(u, {
54
+ variant: "transparent",
55
+ icon: "close",
56
+ class: "ml-0.5",
57
+ onClick: (s) => f(n)
58
+ }, null, 8, ["onClick"])
59
+ ]))), 128))
60
+ ]);
61
+ };
62
+ }
63
+ });
64
+ export {
65
+ M as _
66
+ };
@@ -0,0 +1 @@
1
+ &:not(.dark){.form-radio:checked{background-image:url("data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20fill='%23000'%20viewBox='0%200%2016%2016'%3e%3ccircle%20cx='8'%20cy='8'%20r='3'/%3e%3c/svg%3e")}}&.dark{.form-radio:checked{background-image:url("data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20fill='%23fff'%20viewBox='0%200%2016%2016'%3e%3ccircle%20cx='8'%20cy='8'%20r='3'/%3e%3c/svg%3e")}}
@@ -1,5 +1,5 @@
1
- import { _ as a } from "./InputRadio.vue_vue_type_script_setup_true_lang-Cu7lzDAh.js";
2
- import { p as t } from "./plugin-Bog7k3Qf.js";
1
+ import { _ as a } from "./InputRadio.vue_vue_type_style_index_0_lang-IqPZ9Qzl.js";
2
+ import { p as t } from "./plugin-D6dx276z.js";
3
3
  export {
4
4
  a as InputRadio,
5
5
  t as InputRadioPlugin
@@ -1,3 +1,4 @@
1
+ import './InputRadio.css';
1
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";
2
3
  const h = { class: "h-9 inline-flex items-center" }, f = ["value", "name", "disabled", "checked"];
3
4
  let _ = 0;
package/dist/InputText.js CHANGED
@@ -1,5 +1,5 @@
1
- import { _ as e } from "./InputText.vue_vue_type_script_setup_true_lang-Dyvx9Ob-.js";
2
- import { p as r } from "./plugin-Bbt6pP0l.js";
1
+ import { _ as e } from "./InputText.vue_vue_type_script_setup_true_lang-D4nIMRiz.js";
2
+ import { p as r } from "./plugin-DDUNw6fL.js";
3
3
  export {
4
4
  e as InputText,
5
5
  r as InputTextPlugin
@@ -0,0 +1,39 @@
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/Link.js CHANGED
@@ -1,5 +1,5 @@
1
- import { _ as i } from "./Link.vue_vue_type_script_setup_true_lang-DBYJfl5l.js";
2
- import { p } from "./plugin-BDFttGl1.js";
1
+ import { _ as i } from "./Link.vue_vue_type_script_setup_true_lang-gTf77Jvd.js";
2
+ import { p } from "./plugin-DHstqRmE.js";
3
3
  export {
4
4
  i as Link,
5
5
  p as LinkPlugin
@@ -1,6 +1,6 @@
1
- import { defineComponent as m, computed as o, resolveComponent as p, openBlock as t, createBlock as n, resolveDynamicComponent as d, mergeProps as u, withCtx as f, renderSlot as _, createElementBlock as k, Fragment as y, createTextVNode as b, toDisplayString as g, createCommentVNode as h } from "vue";
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
2
  import { L as a } from "./ui-BC6H9E93.js";
3
- const w = /* @__PURE__ */ m({
3
+ const w = /* @__PURE__ */ p({
4
4
  name: "TLink",
5
5
  __name: "Link",
6
6
  props: {
@@ -12,29 +12,29 @@ const w = /* @__PURE__ */ m({
12
12
  disabled: { type: Boolean, default: !1 }
13
13
  },
14
14
  setup(l, { emit: v }) {
15
- const e = l, s = o(() => {
15
+ const e = l, i = o(() => {
16
16
  switch (e.type) {
17
17
  case a.Router:
18
18
  return "router-link";
19
19
  default:
20
20
  return "a";
21
21
  }
22
- }), i = o(() => e.type === "router" ? {
22
+ }), s = o(() => e.type === "router" ? {
23
23
  to: e.to
24
24
  } : {
25
25
  href: e.href
26
26
  });
27
- return (r, C) => {
28
- const c = p("t-icon");
29
- return t(), n(d(s.value), u({
27
+ return (n, C) => {
28
+ const c = u("t-icon");
29
+ return t(), r(m(i.value), d({
30
30
  target: e.target,
31
31
  disabled: e.disabled
32
- }, i.value, { class: "color-caipira-primary-inverted underline font-bold inline-flex items-baseline" }), {
32
+ }, s.value, { class: "color-caipira-primary-inverted underline font-bold inline-flex items-baseline input-outline" }), {
33
33
  default: f(() => [
34
- r.$slots.default ? _(r.$slots, "default", { key: 0 }) : (t(), k(y, { key: 1 }, [
34
+ n.$slots.default ? _(n.$slots, "default", { key: 0 }) : (t(), k(y, { key: 1 }, [
35
35
  b(g(e.label), 1)
36
36
  ], 64)),
37
- e.target === "_blank" ? (t(), n(c, {
37
+ e.target === "_blank" ? (t(), r(c, {
38
38
  key: 2,
39
39
  size: 15,
40
40
  class: "ml-1",
@@ -1,6 +1,6 @@
1
1
  import './ProgressCircle.css';
2
- import { defineComponent as c, computed as n, openBlock as o, createElementBlock as s, createElementVNode as l, renderSlot as h, createCommentVNode as u } from "vue";
3
- import { _ as f } from "./_plugin-vue_export-helper-CHgC5LLL.js";
2
+ import { defineComponent as c, computed as n, openBlock as o, createElementBlock as s, createElementVNode as l, renderSlot as h, createCommentVNode as f } from "vue";
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"
@@ -49,10 +49,10 @@ const k = { class: "relative w-min" }, _ = ["width", "heigh"], p = ["stroke-widt
49
49
  ], 8, _)),
50
50
  t.$slots.default ? (o(), s("div", v, [
51
51
  h(t.$slots, "default", {}, void 0, !0)
52
- ])) : u("", !0)
52
+ ])) : f("", !0)
53
53
  ]));
54
54
  }
55
- }), y = /* @__PURE__ */ f(w, [["__scopeId", "data-v-ac99d00a"]]);
55
+ }), y = /* @__PURE__ */ u(w, [["__scopeId", "data-v-b9d5ffed"]]);
56
56
  export {
57
57
  y as P
58
58
  };
@@ -1 +1 @@
1
- svg circle[data-v-ac99d00a]{transition:stroke-dashoffset 1s linear}
1
+ svg circle[data-v-b9d5ffed]{transition:stroke-dashoffset 1s linear}
@@ -1,5 +1,5 @@
1
- import { P as o } from "./ProgressCircle-BY2eeyGY.js";
2
- import { p as P } from "./plugin-DXSsGfRI.js";
1
+ import { P as o } from "./ProgressCircle-Cpmi2CpO.js";
2
+ import { p as P } from "./plugin-MAzqwXys.js";
3
3
  export {
4
4
  o as ProgressCircle,
5
5
  P as ProgressCirclePlugin