@caipira/tamandua 0.0.63 → 0.0.65

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 (29) hide show
  1. package/dist/Dropdown.js +2 -2
  2. package/dist/{Dropdown.vue_vue_type_script_setup_true_lang-ByO3ZI8p.js → Dropdown.vue_vue_type_script_setup_true_lang-DeY4vid5.js} +28 -28
  3. package/dist/FileDrop.js +2 -2
  4. package/dist/{FileDrop.vue_vue_type_script_setup_true_lang-DLEH_LLX.js → FileDrop.vue_vue_type_script_setup_true_lang-BDzMbrCN.js} +26 -26
  5. package/dist/InputCheckbox.js +2 -2
  6. package/dist/{InputCheckbox.vue_vue_type_style_index_0_lang-BOY41cD-.js → InputCheckbox.vue_vue_type_style_index_0_lang-Dp-FyMon.js} +9 -9
  7. package/dist/InputDate.js +2 -2
  8. package/dist/{InputDate.vue_vue_type_script_setup_true_lang-UQywr42W.js → InputDate.vue_vue_type_script_setup_true_lang-BdELykj8.js} +3 -3
  9. package/dist/InputRadio.js +2 -2
  10. package/dist/InputRadio.vue_vue_type_style_index_0_lang-n0nJwz8x.js +35 -0
  11. package/dist/InputSwitch.js +2 -2
  12. package/dist/{InputSwitch.vue_vue_type_script_setup_true_lang-Q3wQlqfk.js → InputSwitch.vue_vue_type_script_setup_true_lang-CgE_12vY.js} +10 -11
  13. package/dist/{Table-DAdBSj3C.js → Table-vjjmPzlZ.js} +23 -23
  14. package/dist/Table.css +1 -1
  15. package/dist/Table.js +2 -2
  16. package/dist/components.js +7 -7
  17. package/dist/index.css +17 -32
  18. package/dist/{plugin-BpdfpzgE.js → plugin-6KewRQ9w.js} +1 -1
  19. package/dist/{plugin-BZOU6h10.js → plugin-B63n9_uc.js} +1 -1
  20. package/dist/{plugin-BQqeQUxM.js → plugin-BVJKxqmv.js} +1 -1
  21. package/dist/{plugin-BscWXR9h.js → plugin-CJ6sqqaI.js} +1 -1
  22. package/dist/{plugin-B1ev5kjp.js → plugin-Ch67LOIy.js} +1 -1
  23. package/dist/{plugin-Y4yYnlO3.js → plugin-Do2-cqMT.js} +1 -1
  24. package/dist/{plugin-8nvB-f8B.js → plugin-DrKx8l8j.js} +1 -1
  25. package/dist/{plugins-B3Md0lwW.js → plugins-cn0dSxZb.js} +10 -10
  26. package/dist/plugins.js +10 -10
  27. package/dist/tamandua.js +1 -1
  28. package/package.json +1 -1
  29. package/dist/InputRadio.vue_vue_type_style_index_0_lang-DusKEybQ.js +0 -35
package/dist/Dropdown.js CHANGED
@@ -1,5 +1,5 @@
1
- import { _ as p } from "./Dropdown.vue_vue_type_script_setup_true_lang-ByO3ZI8p.js";
2
- import { p as a } from "./plugin-8nvB-f8B.js";
1
+ import { _ as p } from "./Dropdown.vue_vue_type_script_setup_true_lang-DeY4vid5.js";
2
+ import { p as a } from "./plugin-DrKx8l8j.js";
3
3
  export {
4
4
  p as Dropdown,
5
5
  a as DropdownPlugin
@@ -1,4 +1,4 @@
1
- import { defineComponent as T, ref as w, resolveComponent as V, openBlock as l, createElementBlock as a, normalizeClass as u, createVNode as z, Fragment as R, renderList as K, toDisplayString as P, withKeys as A, renderSlot as E, normalizeProps as G, mergeProps as $, createBlock as I, createCommentVNode as O, createTextVNode as F, createElementVNode as U } from "vue";
1
+ import { defineComponent as T, ref as w, resolveComponent as V, openBlock as n, createElementBlock as a, normalizeClass as u, createVNode as z, Fragment as R, renderList as K, toDisplayString as P, withKeys as A, renderSlot as E, normalizeProps as G, mergeProps as $, createBlock as I, createCommentVNode as O, createTextVNode as F, createElementVNode as U } from "vue";
2
2
  const j = /* @__PURE__ */ U("span", null, "Loading...", -1), q = ["aria-selected", "onKeydown", "onClick"], J = {
3
3
  key: 1,
4
4
  class: "inline-flex items-center select-none input-text-color"
@@ -18,11 +18,11 @@ const j = /* @__PURE__ */ U("span", null, "Loading...", -1), q = ["aria-selected
18
18
  },
19
19
  emits: ["change", "end-reached", "created"],
20
20
  setup(H, { expose: S, emit: B }) {
21
- const s = H, b = B, i = w(-1), y = w(null), d = w([]), f = w("keyboard"), v = (o = i.value, t = s.items[o], n = void 0) => {
22
- n?.stopPropagation(), b("change", {
21
+ const s = H, b = B, i = w(-1), v = w(null), d = w([]), f = w("keyboard"), y = (o = i.value, t = s.items[o], l = void 0) => {
22
+ l?.stopPropagation(), b("change", {
23
23
  index: o,
24
24
  option: t,
25
- hold: n?.ctrlKey ?? !1
25
+ hold: l?.ctrlKey ?? !1
26
26
  }), t.action && t.action();
27
27
  }, D = (o) => {
28
28
  if (!s.isVisible)
@@ -32,18 +32,18 @@ const j = /* @__PURE__ */ U("span", null, "Loading...", -1), q = ["aria-selected
32
32
  case "ArrowDown":
33
33
  return x(o);
34
34
  case "Enter":
35
- return v();
35
+ return y();
36
36
  }
37
37
  }, L = () => {
38
- const o = y.value;
38
+ const o = v.value;
39
39
  o.scrollTop = 0;
40
40
  }, x = (o) => {
41
- const t = o.key === "ArrowDown", n = s.items.length;
41
+ const t = o.key === "ArrowDown", l = s.items.length;
42
42
  let e = i.value;
43
43
  const r = () => s.items[e] ? "isGroupLabel" in s.items[e] && s.items[e].isGroupLabel : !1, p = () => {
44
- e === n - 1 ? e = 0 : e++;
44
+ e === l - 1 ? e = 0 : e++;
45
45
  }, N = () => {
46
- e === 0 ? e = n - 1 : e--;
46
+ e === 0 ? e = l - 1 : e--;
47
47
  };
48
48
  if (t)
49
49
  do
@@ -53,8 +53,8 @@ const j = /* @__PURE__ */ U("span", null, "Loading...", -1), q = ["aria-selected
53
53
  do
54
54
  N();
55
55
  while (r());
56
- e > -1 && e < n && (i.value = e);
57
- const C = y.value, k = d.value[i.value], m = k.offsetTop, g = k.offsetHeight, _ = C.offsetHeight, c = C.scrollTop;
56
+ e > -1 && e < l && (i.value = e);
57
+ const C = v.value, k = d.value[i.value], m = k.offsetTop, g = k.offsetHeight, _ = C.offsetHeight, c = C.scrollTop;
58
58
  let h = 0;
59
59
  if (k.focus(), m === 0 || c === 0)
60
60
  h = m - _ + g;
@@ -66,21 +66,21 @@ const j = /* @__PURE__ */ U("span", null, "Loading...", -1), q = ["aria-selected
66
66
  return !0;
67
67
  return C.scroll({ top: h }), !0;
68
68
  }, M = (o) => {
69
- const t = o.target, n = d.value[0];
70
- !t || !n || t.scrollTop + t.clientHeight + n.offsetHeight >= t.scrollHeight && b("end-reached");
69
+ const t = o.target, l = d.value[0];
70
+ !t || !l || t.scrollTop + t.clientHeight + l.offsetHeight >= t.scrollHeight && b("end-reached");
71
71
  };
72
72
  return S({ move: x, resetScroll: L }), (o, t) => {
73
- const n = V("t-icon");
74
- return l(), a("ul", {
73
+ const l = V("t-icon");
74
+ return n(), a("ul", {
75
75
  ref_key: "listRef",
76
- ref: y,
76
+ ref: v,
77
77
  role: "listbox",
78
78
  class: u(["text-left max-h-60 min-w-[12rem] z-10 overflow-y-auto scrollbar select-none floatable w-full", [s.wrapperRoundnessClass, s.wrapperPaddingClass]]),
79
79
  onScrollend: M,
80
80
  onMousemove: t[0] || (t[0] = () => f.value = "mouse"),
81
81
  onKeydown: D
82
82
  }, [
83
- s.loading ? (l(), a("li", {
83
+ s.loading ? (n(), a("li", {
84
84
  key: 0,
85
85
  role: "option",
86
86
  "aria-disabled": "true",
@@ -90,13 +90,13 @@ const j = /* @__PURE__ */ U("span", null, "Loading...", -1), q = ["aria-selected
90
90
  s.optionRoundnessClass
91
91
  ]])
92
92
  }, [
93
- z(n, {
93
+ z(l, {
94
94
  size: "sm",
95
95
  class: "w-12 h-12 animate-spin mr-3",
96
96
  icon: "loading"
97
97
  }),
98
98
  j
99
- ], 2)) : o.items.length === 0 ? (l(), a("li", {
99
+ ], 2)) : o.items.length === 0 ? (n(), a("li", {
100
100
  key: 1,
101
101
  role: "option",
102
102
  "aria-disabled": "true",
@@ -105,10 +105,10 @@ const j = /* @__PURE__ */ U("span", null, "Loading...", -1), q = ["aria-selected
105
105
  s.optionMarginClass,
106
106
  s.optionRoundnessClass
107
107
  ]])
108
- }, " Nothing here ", 2)) : (l(!0), a(R, { key: 2 }, K(o.items, (e, r) => (l(), a(R, {
108
+ }, " Nothing here ", 2)) : (n(!0), a(R, { key: 2 }, K(o.items, (e, r) => (n(), a(R, {
109
109
  key: e?.isGroupLabel ? r : e.value
110
110
  }, [
111
- e.isGroupLabel ? (l(), a("li", {
111
+ e.isGroupLabel ? (n(), a("li", {
112
112
  key: 0,
113
113
  class: u(["text-xs font-bold tracking-wider text-neutral-600", [
114
114
  s.optionPaddingClass,
@@ -118,11 +118,11 @@ const j = /* @__PURE__ */ U("span", null, "Loading...", -1), q = ["aria-selected
118
118
  ref_for: !0,
119
119
  ref_key: "itemRefs",
120
120
  ref: d
121
- }, P(e.label), 3)) : (l(), a("li", {
121
+ }, P(e.label), 3)) : (n(), a("li", {
122
122
  key: 1,
123
123
  class: u([{
124
- "bg-hover": r === i.value && f.value === "keyboard",
125
- "hover:bg-hover": f.value === "mouse",
124
+ "bg-[var(--hover-color)]": r === i.value && f.value === "keyboard",
125
+ "hover:bg-[var(--hover-color)]": f.value === "mouse",
126
126
  [s.optionMarginClass]: !0,
127
127
  [s.optionPaddingClass]: !0,
128
128
  [s.optionRoundnessClass]: !0
@@ -133,11 +133,11 @@ const j = /* @__PURE__ */ U("span", null, "Loading...", -1), q = ["aria-selected
133
133
  ref: d,
134
134
  tabindex: 0,
135
135
  "aria-selected": r === i.value,
136
- onKeydown: A((p) => v(r, e), ["enter"]),
137
- onClick: (p) => v(r, e, p)
136
+ onKeydown: A((p) => y(r, e), ["enter"]),
137
+ onClick: (p) => y(r, e, p)
138
138
  }, [
139
- o.$slots.default ? E(o.$slots, "default", G($({ key: 0 }, e))) : (l(), a("div", J, [
140
- e.icon ? (l(), I(n, {
139
+ o.$slots.default ? E(o.$slots, "default", G($({ key: 0 }, e))) : (n(), a("div", J, [
140
+ e.icon ? (n(), I(l, {
141
141
  key: 0,
142
142
  icon: e.icon,
143
143
  class: "mr-2",
package/dist/FileDrop.js CHANGED
@@ -1,5 +1,5 @@
1
- import { _ as p } from "./FileDrop.vue_vue_type_script_setup_true_lang-DLEH_LLX.js";
2
- import { p as i } from "./plugin-BscWXR9h.js";
1
+ import { _ as p } from "./FileDrop.vue_vue_type_script_setup_true_lang-BDzMbrCN.js";
2
+ import { p as i } from "./plugin-CJ6sqqaI.js";
3
3
  export {
4
4
  p as FileDrop,
5
5
  i as FileDropPlugin
@@ -5,10 +5,10 @@ const I = { class: "flex items-center justify-center w-full" }, M = {
5
5
  }, N = { class: "text-xs" }, j = {
6
6
  key: 1,
7
7
  class: "flex items-center justify-evenly my-4 w-full"
8
- }, B = { class: "text-center" }, A = /* @__PURE__ */ n("p", { class: "mb-2 text-sm text-gray-500 dark:text-gray-400" }, [
8
+ }, B = { class: "text-center" }, A = /* @__PURE__ */ n("p", { class: "mb-2 text-sm" }, [
9
9
  /* @__PURE__ */ n("span", { class: "font-semibold" }, "Click to upload"),
10
10
  /* @__PURE__ */ G(" or drag and drop ")
11
- ], -1), E = { class: "text-xs text-gray-500 dark:text-gray-400" }, K = ["multiple"], J = /* @__PURE__ */ k({
11
+ ], -1), E = { class: "text-xs" }, K = ["multiple"], J = /* @__PURE__ */ k({
12
12
  name: "TFileDrop",
13
13
  __name: "FileDrop",
14
14
  props: /* @__PURE__ */ F({
@@ -20,39 +20,39 @@ const I = { class: "flex items-center justify-center w-full" }, M = {
20
20
  }),
21
21
  emits: ["update:modelValue"],
22
22
  setup(c, { emit: S }) {
23
- const _ = c, l = C(c, "modelValue"), u = V(null), y = p(() => l.value.length > 0), g = p(() => {
23
+ const _ = c, o = C(c, "modelValue"), u = V(null), v = p(() => o.value.length > 0), h = p(() => {
24
24
  switch (_.types) {
25
25
  default:
26
26
  return "SVG, PNG, JPG or GIF";
27
27
  }
28
- }), h = (e, r) => {
29
- e.stopPropagation(), e.preventDefault(), l.value = l.value.filter((o) => o.name !== r);
30
- }, x = (e) => {
28
+ }), x = (e, i) => {
29
+ e.stopPropagation(), e.preventDefault(), o.value = o.value.filter((l) => l.name !== i);
30
+ }, y = (e) => {
31
31
  e.stopPropagation();
32
- const o = e.target.files;
33
- if (!o || !o.length)
32
+ const l = e.target.files;
33
+ if (!l || !l.length)
34
34
  return;
35
- const i = l.value.flatMap((t) => t.name);
36
- l.value = [
37
- ...l.value,
38
- ...Array.from(o).filter(
39
- (t) => !i.includes(t.name)
35
+ const r = o.value.flatMap((t) => t.name);
36
+ o.value = [
37
+ ...o.value,
38
+ ...Array.from(l).filter(
39
+ (t) => !r.includes(t.name)
40
40
  )
41
41
  ];
42
- }, v = (e) => {
42
+ }, g = (e) => {
43
43
  e.stopPropagation(), u.value?.click();
44
44
  };
45
- return (e, r) => {
46
- const o = d("t-button"), i = d("t-icon");
45
+ return (e, i) => {
46
+ const l = d("t-button"), r = d("t-icon");
47
47
  return s(), a("div", I, [
48
48
  n("label", {
49
49
  for: "dropzone-file",
50
50
  tabindex: "0",
51
- class: "flex flex-col items-center justify-center w-full h-full cursor-pointer border input-border border-dashed input-roundness input-text-color input-bg-color hover:bg-caipira-secondary input-outline",
52
- onKeyup: w(v, ["space", "enter"])
51
+ class: "flex flex-col items-center justify-center w-full h-full cursor-pointer border input-border input-roundness input-text-color input-bg-color input-outline",
52
+ onKeyup: w(g, ["space", "enter"])
53
53
  }, [
54
- y.value ? (s(), a("div", M, [
55
- (s(!0), a(z, null, D(l.value, (t) => (s(), a("div", {
54
+ v.value ? (s(), a("div", M, [
55
+ (s(!0), a(z, null, D(o.value, (t) => (s(), a("div", {
56
56
  key: t.name,
57
57
  class: "flex items-center"
58
58
  }, [
@@ -60,26 +60,26 @@ const I = { class: "flex items-center justify-center w-full" }, M = {
60
60
  class: P(["fs mr-1", [t.name.split(".").pop()]])
61
61
  }, null, 2),
62
62
  n("span", N, m(t.name), 1),
63
- f(o, {
63
+ f(l, {
64
64
  variant: "transparent",
65
65
  size: "sm",
66
66
  hover: !1,
67
67
  icon: "trash-can-outline",
68
68
  class: "text-red-400",
69
69
  role: "button",
70
- onClick: (b) => h(b, t.name)
70
+ onClick: (b) => x(b, t.name)
71
71
  }, null, 8, ["onClick"])
72
72
  ]))), 128))
73
73
  ])) : (s(), a("div", j, [
74
- f(i, {
75
- class: "fill-gray-500 dark:fill-gray-400",
74
+ f(r, {
75
+ class: "text-[var(--unfocused-color)]",
76
76
  icon: "upload",
77
77
  role: "button",
78
78
  size: "lg"
79
79
  }),
80
80
  n("div", B, [
81
81
  A,
82
- n("p", E, m(g.value), 1)
82
+ n("p", E, m(h.value), 1)
83
83
  ])
84
84
  ])),
85
85
  n("input", {
@@ -90,7 +90,7 @@ const I = { class: "flex items-center justify-center w-full" }, M = {
90
90
  type: "file",
91
91
  class: "hidden",
92
92
  multiple: e.multiple,
93
- onChange: x
93
+ onChange: y
94
94
  }, null, 40, K)
95
95
  ], 32)
96
96
  ]);
@@ -1,5 +1,5 @@
1
- import { _ as e } from "./InputCheckbox.vue_vue_type_style_index_0_lang-BOY41cD-.js";
2
- import { p as t } from "./plugin-BQqeQUxM.js";
1
+ import { _ as e } from "./InputCheckbox.vue_vue_type_style_index_0_lang-Dp-FyMon.js";
2
+ import { p as t } from "./plugin-BVJKxqmv.js";
3
3
  export {
4
4
  e as InputCheckbox,
5
5
  t as InputCheckboxPlugin
@@ -1,5 +1,5 @@
1
1
  import './InputCheckbox.css';
2
- import { defineComponent as u, ref as m, watch as f, resolveComponent as b, openBlock as i, createElementBlock as h, withDirectives as v, createElementVNode as y, mergeProps as _, vModelCheckbox as k, createBlock as x, withCtx as B, createTextVNode as C, toDisplayString as V, createCommentVNode as g } from "vue";
2
+ import { defineComponent as u, ref as m, watch as f, resolveComponent as b, openBlock as i, createElementBlock as h, withDirectives as v, createElementVNode as _, mergeProps as k, vModelCheckbox as y, createBlock as x, withCtx as B, createTextVNode as C, toDisplayString as V, createCommentVNode as g } from "vue";
3
3
  const I = { class: "h-9 inline-flex items-center" }, w = ["indeterminate", "disabled"];
4
4
  let N = 0;
5
5
  const D = /* @__PURE__ */ u({
@@ -14,35 +14,35 @@ const D = /* @__PURE__ */ u({
14
14
  },
15
15
  emits: ["update:model-value", "input"],
16
16
  setup(r, { emit: d }) {
17
- const t = r, o = d, l = `checkbox_${++N}`, a = m(!1), s = () => {
17
+ const t = r, l = d, o = `checkbox_${++N}`, a = m(!1), s = () => {
18
18
  const e = !a.value;
19
- o("update:model-value", e), o("input", e);
19
+ l("update:model-value", e), l("input", e);
20
20
  };
21
21
  return f(
22
22
  () => t.modelValue,
23
23
  (e) => {
24
- t.initializeValue && typeof e > "u" && o("update:model-value", !1), a.value = e;
24
+ t.initializeValue && typeof e > "u" && l("update:model-value", !1), a.value = e;
25
25
  },
26
26
  { immediate: !0 }
27
27
  ), (e, n) => {
28
28
  const p = b("t-graphy-label");
29
29
  return i(), h("div", I, [
30
- v(y("input", _({
30
+ v(_("input", k({
31
31
  "onUpdate:modelValue": n[0] || (n[0] = (c) => a.value = c)
32
32
  }, e.$attrs, {
33
33
  type: "checkbox",
34
- class: "form-checkbox w-5 h-5 border input-border input-roundness color-caipira-primary-inverted bg-caipira-primary checked:bg-caipira-primary-inverted input-outline",
34
+ class: "form-checkbox w-5 h-5 border input-border input-roundness bg-caipira-primary checked:bg-caipira-primary-inverted input-outline",
35
35
  indeterminate: t.isIndeterminate,
36
- id: l,
36
+ id: o,
37
37
  disabled: e.disabled,
38
38
  onInput: s
39
39
  }), null, 16, w), [
40
- [k, a.value]
40
+ [y, a.value]
41
41
  ]),
42
42
  t.label ? (i(), x(p, {
43
43
  key: 0,
44
44
  class: "cursor-pointer pl-2 mr-3",
45
- for: l
45
+ for: o
46
46
  }, {
47
47
  default: B(() => [
48
48
  C(V(t.label), 1)
package/dist/InputDate.js CHANGED
@@ -1,5 +1,5 @@
1
- import { _ as a } from "./InputDate.vue_vue_type_script_setup_true_lang-UQywr42W.js";
2
- import { p as o } from "./plugin-B1ev5kjp.js";
1
+ import { _ as a } from "./InputDate.vue_vue_type_script_setup_true_lang-BdELykj8.js";
2
+ import { p as o } from "./plugin-Ch67LOIy.js";
3
3
  export {
4
4
  a as InputDate,
5
5
  o as InputDatePlugin
@@ -130,7 +130,7 @@ const oe = ["value"], le = {
130
130
  a("div", null, [
131
131
  a("button", {
132
132
  type: "button",
133
- class: T(["transition ease-in-out duration-100 inline-flex cursor-pointer hover:bg-hover p-1 rounded-full", {
133
+ class: T(["transition ease-in-out duration-100 inline-flex cursor-pointer hover:bg-[var(--hover-color)] p-1 rounded-full", {
134
134
  "cursor-not-allowed opacity-25": !k
135
135
  }]),
136
136
  disabled: !k,
@@ -140,7 +140,7 @@ const oe = ["value"], le = {
140
140
  ], 10, re),
141
141
  a("button", {
142
142
  type: "button",
143
- class: T(["transition ease-in-out duration-100 inline-flex cursor-pointer p-1 rounded-full hover:bg-hover", {
143
+ class: T(["transition ease-in-out duration-100 inline-flex cursor-pointer p-1 rounded-full hover:bg-[var(--hover-color)]", {
144
144
  "cursor-not-allowed opacity-25": !k
145
145
  }]),
146
146
  disabled: !k,
@@ -168,7 +168,7 @@ const oe = ["value"], le = {
168
168
  a("div", {
169
169
  onClick: (_) => R(t),
170
170
  class: T(["cursor-pointer text-center text-sm rounded-sm leading-loose transition ease-in-out duration-100", {
171
- "hover:bg-hover": !t.selected,
171
+ "hover:bg-[var(--hover-color)]": !t.selected,
172
172
  "color-unfocused-text": t.overflow !== 0,
173
173
  "border border-caipira-primary-inverted": t.isToday,
174
174
  "color-caipira-primary bg-caipira-primary-inverted": t.selected
@@ -1,5 +1,5 @@
1
- import { _ as a } from "./InputRadio.vue_vue_type_style_index_0_lang-DusKEybQ.js";
2
- import { p as t } from "./plugin-Y4yYnlO3.js";
1
+ import { _ as a } from "./InputRadio.vue_vue_type_style_index_0_lang-n0nJwz8x.js";
2
+ import { p as t } from "./plugin-Do2-cqMT.js";
3
3
  export {
4
4
  a as InputRadio,
5
5
  t as InputRadioPlugin
@@ -0,0 +1,35 @@
1
+ import './InputRadio.css';
2
+ import { defineComponent as p, inject as r, openBlock as u, createElementBlock as m, createElementVNode as o, unref as a, toDisplayString as b } from "vue";
3
+ const h = { class: "h-9 inline-flex items-center" }, v = ["value", "name", "disabled", "checked"];
4
+ let f = 0;
5
+ const g = /* @__PURE__ */ p({
6
+ name: "TInputRadio",
7
+ __name: "InputRadio",
8
+ props: {
9
+ value: {},
10
+ label: {}
11
+ },
12
+ setup(t) {
13
+ const n = `radio_${++f}`, c = r("name", ""), e = t, l = r("model", ""), d = r("change", () => {
14
+ }), s = r("disabled", !1);
15
+ return (_, i) => (u(), m("div", h, [
16
+ o("input", {
17
+ value: e.value,
18
+ name: a(c),
19
+ id: n,
20
+ disabled: a(s),
21
+ checked: e.value === a(l),
22
+ type: "radio",
23
+ class: "form-radio w-5 h-5 border input-border checked:hover:border-caipira-primary-inverted checked:focus:border-caipira-primary-inverted checked:border-caipira-primary-inverted input-outline focus:input-outline bg-caipira-primary color-caipira-primary",
24
+ onChange: i[0] || (i[0] = (k) => a(d)(e.value))
25
+ }, null, 40, v),
26
+ o("label", {
27
+ class: "cursor-pointer pl-2 mr-3 input-label",
28
+ for: n
29
+ }, b(e.label), 1)
30
+ ]));
31
+ }
32
+ });
33
+ export {
34
+ g as _
35
+ };
@@ -1,5 +1,5 @@
1
- import { _ as o } from "./InputSwitch.vue_vue_type_script_setup_true_lang-Q3wQlqfk.js";
2
- import { p as i } from "./plugin-BZOU6h10.js";
1
+ import { _ as o } from "./InputSwitch.vue_vue_type_script_setup_true_lang-CgE_12vY.js";
2
+ import { p as i } from "./plugin-B63n9_uc.js";
3
3
  export {
4
4
  o as InputSwitch,
5
5
  i as InputSwitchPlugin
@@ -1,4 +1,4 @@
1
- import { defineComponent as b, ref as v, watch as f, openBlock as i, createElementBlock as n, createElementVNode as t, normalizeClass as o, withDirectives as h, vModelCheckbox as y, toDisplayString as k, createCommentVNode as w } from "vue";
1
+ import { defineComponent as b, ref as v, watch as f, openBlock as r, createElementBlock as i, createElementVNode as t, normalizeClass as o, withDirectives as h, vModelCheckbox as k, toDisplayString as w, createCommentVNode as y } from "vue";
2
2
  const g = ["disabled"];
3
3
  let V = 0;
4
4
  const B = /* @__PURE__ */ b({
@@ -10,8 +10,8 @@ const B = /* @__PURE__ */ b({
10
10
  modelValue: { type: Boolean }
11
11
  },
12
12
  emits: ["update:model-value"],
13
- setup(d, { emit: u }) {
14
- const s = d, c = u, a = `switch_${++V}`, e = v(!1), p = () => {
13
+ setup(u, { emit: d }) {
14
+ const s = u, c = d, a = `switch_${++V}`, e = v(!1), p = () => {
15
15
  const l = !e.value;
16
16
  c("update:model-value", l);
17
17
  };
@@ -21,25 +21,24 @@ const B = /* @__PURE__ */ b({
21
21
  e.value = !!l;
22
22
  },
23
23
  { immediate: !0 }
24
- ), (l, r) => (i(), n("div", null, [
24
+ ), (l, n) => (r(), i("div", null, [
25
25
  t("div", {
26
26
  class: o(["relative inline-block w-12 mr-2 align-middle select-none", {
27
27
  "rounded-full": !e.value
28
28
  }])
29
29
  }, [
30
30
  h(t("input", {
31
- "onUpdate:modelValue": r[0] || (r[0] = (m) => e.value = m),
31
+ "onUpdate:modelValue": n[0] || (n[0] = (m) => e.value = m),
32
32
  type: "checkbox",
33
- class: o(["absolute block w-6 h-6 rounded-full appearance-none cursor-pointer bg-caipira-primary border input-outline", {
34
- "right-0 border-caipira-primary-inverted": e.value,
35
- "border-caipira-tertiary": !e.value
33
+ class: o(["absolute block w-6 h-6 rounded-full appearance-none cursor-pointer bg-caipira-primary input-outline border input-border", {
34
+ "right-0": e.value
36
35
  }]),
37
36
  name: a,
38
37
  id: a,
39
38
  disabled: l.disabled,
40
39
  onInput: p
41
40
  }, null, 42, g), [
42
- [y, e.value]
41
+ [k, e.value]
43
42
  ]),
44
43
  t("label", {
45
44
  for: a,
@@ -49,11 +48,11 @@ const B = /* @__PURE__ */ b({
49
48
  }, "block overflow-hidden h-6 rounded-full cursor-pointer"])
50
49
  }, null, 2)
51
50
  ], 2),
52
- l.label ? (i(), n("label", {
51
+ l.label ? (r(), i("label", {
53
52
  key: 0,
54
53
  class: "text-base cursor-pointer select-none",
55
54
  for: a
56
- }, k(l.label), 1)) : w("", !0)
55
+ }, w(l.label), 1)) : y("", !0)
57
56
  ]));
58
57
  }
59
58
  });
@@ -1,5 +1,5 @@
1
1
  import './Table.css';
2
- import { defineComponent as M, useSlots as O, ref as k, reactive as F, computed as x, resolveComponent as K, openBlock as a, createElementBlock as s, createElementVNode as m, normalizeClass as p, createCommentVNode as c, createVNode as E, Fragment as b, renderList as V, toDisplayString as T, createBlock as h, renderSlot as $, createTextVNode as P } from "vue";
2
+ import { defineComponent as M, useSlots as O, ref as k, reactive as F, computed as x, resolveComponent as K, openBlock as a, createElementBlock as s, createElementVNode as m, normalizeClass as p, createCommentVNode as r, createVNode as E, Fragment as b, renderList as V, toDisplayString as T, createBlock as h, renderSlot as $, createTextVNode as P } from "vue";
3
3
  import { _ as q } from "./_plugin-vue_export-helper-CHgC5LLL.js";
4
4
  const G = { class: "w-full color-text" }, J = ["onClick"], Q = {
5
5
  key: 0,
@@ -21,13 +21,13 @@ const G = { class: "w-full color-text" }, J = ["onClick"], Q = {
21
21
  selectable: { type: Boolean, default: !1 },
22
22
  actionable: { type: Boolean, default: !1 },
23
23
  stickyHeader: { type: Boolean, default: !0 },
24
- rowClass: { default: "hover:bg-hover" },
24
+ rowClass: { default: "hover:bg-[var(--hover-color)]" },
25
25
  tableDataClass: { default: "px-2 py-2" }
26
26
  },
27
27
  emits: ["selected", "row-click", "action-click"],
28
28
  setup(z, { expose: H, emit: R }) {
29
29
  const e = z, v = R, D = O(), d = k(!1), n = k({}), y = k({}), _ = k(!1), f = k(!1);
30
- let r = F({});
30
+ let c = F({});
31
31
  const U = (t) => {
32
32
  t.stopPropagation();
33
33
  }, j = x(() => e.columns.length + (e.selectable ? 1 : 0) + (e.actionable ? 1 : 0) + (D.details ? 1 : 0) + 1), w = () => {
@@ -38,22 +38,22 @@ const G = { class: "w-full color-text" }, J = ["onClick"], Q = {
38
38
  (u) => n.value[u]
39
39
  );
40
40
  }, N = async (t, i) => {
41
- i ? r[t] = e.data.find(
41
+ i ? c[t] = e.data.find(
42
42
  (u) => u[e.rowKey] === t
43
- ) : delete r[t], v("selected", r), w();
43
+ ) : delete c[t], v("selected", c), w();
44
44
  }, I = () => {
45
45
  Object.keys(n.value).forEach((t) => {
46
46
  n.value[t] = !1, d.value = !1, f.value = !1, _.value = !1;
47
47
  });
48
- for (const t in r)
49
- r[t] = void 0;
50
- v("selected", r);
48
+ for (const t in c)
49
+ c[t] = void 0;
50
+ v("selected", c);
51
51
  }, L = () => {
52
52
  d.value ? e.data.forEach((t) => {
53
- n.value[t[e.rowKey]] = !0, r[t[e.rowKey]] = t;
53
+ n.value[t[e.rowKey]] = !0, c[t[e.rowKey]] = t;
54
54
  }) : e.data.forEach((t) => {
55
- n.value[t[e.rowKey]] = !1, delete r[t[e.rowKey]], _.value = !1;
56
- }), w(), v("selected", r);
55
+ n.value[t[e.rowKey]] = !1, delete c[t[e.rowKey]], _.value = !1;
56
+ }), w(), v("selected", c);
57
57
  }, S = x(() => e.loading && e.data.length === 0 ? Array.from({ length: 5 }, (t, i) => ({})) : e.data), C = x(() => D.details ? S.value.some(
58
58
  (t) => !("hasDetails" in t) || t?.hasDetails
59
59
  ) : !1);
@@ -68,7 +68,7 @@ const G = { class: "w-full color-text" }, J = ["onClick"], Q = {
68
68
  "sticky top-0": e.stickyHeader,
69
69
  [e.tableDataClass]: !0
70
70
  }])
71
- }, null, 2)) : c("", !0),
71
+ }, null, 2)) : r("", !0),
72
72
  e.selectable ? (a(), s("th", {
73
73
  key: 1,
74
74
  class: p(["text-center w-12 bg-caipira-primary", {
@@ -82,7 +82,7 @@ const G = { class: "w-full color-text" }, J = ["onClick"], Q = {
82
82
  "is-indeterminate": f.value,
83
83
  onInput: L
84
84
  }, null, 8, ["modelValue", "is-indeterminate"])
85
- ], 2)) : c("", !0),
85
+ ], 2)) : r("", !0),
86
86
  (a(!0), s(b, null, V(e.columns, (l, A) => (a(), s("th", {
87
87
  class: p(["text-base text-left select-none px-2 py-2 font-normal bg-caipira-primary", {
88
88
  "sticky top-0": e.stickyHeader,
@@ -96,7 +96,7 @@ const G = { class: "w-full color-text" }, J = ["onClick"], Q = {
96
96
  "sticky top-0": e.stickyHeader,
97
97
  [e.tableDataClass]: !0
98
98
  }])
99
- }, null, 2)) : c("", !0)
99
+ }, null, 2)) : r("", !0)
100
100
  ])
101
101
  ]),
102
102
  m("tbody", null, [
@@ -105,7 +105,7 @@ const G = { class: "w-full color-text" }, J = ["onClick"], Q = {
105
105
  }, [
106
106
  m("tr", {
107
107
  class: p({
108
- "bg-hover": n.value[l[e.rowKey]],
108
+ "bg-[var(--hover-color)]": n.value[l[e.rowKey]],
109
109
  [e.rowClass]: !0
110
110
  }),
111
111
  onClick: (o) => v("row-click", l)
@@ -121,8 +121,8 @@ const G = { class: "w-full color-text" }, J = ["onClick"], Q = {
121
121
  hover: !1,
122
122
  icon: y.value[l[e.rowKey]] ? "chevron-down" : "chevron-right",
123
123
  onClick: (o) => y.value[l[e.rowKey]] = !y.value[l[e.rowKey]]
124
- }, null, 8, ["modelValue", "onUpdate:modelValue", "icon", "onClick"])) : c("", !0)
125
- ])) : c("", !0),
124
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "icon", "onClick"])) : r("", !0)
125
+ ])) : r("", !0),
126
126
  e.selectable ? (a(), s("td", {
127
127
  key: 1,
128
128
  class: p(["text-center w-12", [e.tableDataClass]])
@@ -134,7 +134,7 @@ const G = { class: "w-full color-text" }, J = ["onClick"], Q = {
134
134
  onClick: U,
135
135
  onInput: (o) => N(l[e.rowKey], o)
136
136
  }, null, 8, ["modelValue", "onUpdate:modelValue", "onInput"])
137
- ], 2)) : c("", !0),
137
+ ], 2)) : r("", !0),
138
138
  (a(!0), s(b, null, V(e.columns, (o, ee) => (a(), s("td", {
139
139
  class: p(["whitespace-nowrap", {
140
140
  [e.tableDataClass]: !0
@@ -145,7 +145,7 @@ const G = { class: "w-full color-text" }, J = ["onClick"], Q = {
145
145
  row: l
146
146
  }, void 0, !0) : "property" in o ? (a(), s(b, { key: 2 }, [
147
147
  P(T(l[o.property]), 1)
148
- ], 64)) : c("", !0)
148
+ ], 64)) : r("", !0)
149
149
  ], 2))), 256)),
150
150
  e.actionable ? (a(), s("td", W, [
151
151
  e.loading ? (a(), h(g, { key: 0 })) : !("hasActions" in l) || l.hasActions ? (a(), h(B, {
@@ -158,20 +158,20 @@ const G = { class: "w-full color-text" }, J = ["onClick"], Q = {
158
158
  "icon-props": { size: 16 },
159
159
  hover: !1,
160
160
  onClick: (o) => v("action-click", l)
161
- }, null, 8, ["onClick"])) : c("", !0)
162
- ])) : c("", !0)
161
+ }, null, 8, ["onClick"])) : r("", !0)
162
+ ])) : r("", !0)
163
163
  ], 10, J),
164
164
  C.value && y.value[l[e.rowKey]] ? (a(), s("tr", X, [
165
165
  m("td", { colspan: j.value }, [
166
166
  $(t.$slots, "details", { row: l }, void 0, !0)
167
167
  ], 8, Y)
168
- ])) : c("", !0)
168
+ ])) : r("", !0)
169
169
  ], 64))), 128))
170
170
  ])
171
171
  ]);
172
172
  };
173
173
  }
174
- }), ae = /* @__PURE__ */ q(Z, [["__scopeId", "data-v-85210f97"]]);
174
+ }), ae = /* @__PURE__ */ q(Z, [["__scopeId", "data-v-ab8db7fb"]]);
175
175
  export {
176
176
  ae as T
177
177
  };
package/dist/Table.css CHANGED
@@ -1 +1 @@
1
- table>thead>tr[data-v-85210f97]{border-top:1px solid var(--border-color)}table th[data-v-85210f97],table td[data-v-85210f97]{border-bottom:1px solid var(--border-color)}
1
+ table>thead>tr[data-v-ab8db7fb]{border-top:1px solid var(--border-color)}table th[data-v-ab8db7fb],table td[data-v-ab8db7fb]{border-bottom:1px solid var(--border-color)}
package/dist/Table.js CHANGED
@@ -1,5 +1,5 @@
1
- import { T as o } from "./Table-DAdBSj3C.js";
2
- import { p as l } from "./plugin-BpdfpzgE.js";
1
+ import { T as o } from "./Table-vjjmPzlZ.js";
2
+ import { p as l } from "./plugin-6KewRQ9w.js";
3
3
  export {
4
4
  o as Table,
5
5
  l as TablePlugin
@@ -4,8 +4,8 @@ import { B as s } from "./Button-BThdMs5-.js";
4
4
  import { _ as f } from "./ChartLine.vue_vue_type_style_index_0_lang-DO_gKCe4.js";
5
5
  import { _ as n } from "./ChartTreemap.vue_vue_type_script_setup_true_lang-CLi_IXfP.js";
6
6
  import { D as u } from "./Drawer-Cl9_4uHA.js";
7
- import { _ as l } from "./Dropdown.vue_vue_type_script_setup_true_lang-ByO3ZI8p.js";
8
- import { _ as c } from "./FileDrop.vue_vue_type_script_setup_true_lang-DLEH_LLX.js";
7
+ import { _ as l } from "./Dropdown.vue_vue_type_script_setup_true_lang-DeY4vid5.js";
8
+ import { _ as c } from "./FileDrop.vue_vue_type_script_setup_true_lang-BDzMbrCN.js";
9
9
  import { _ as T } from "./Form.vue_vue_type_script_setup_true_lang-CNGNCak7.js";
10
10
  import { _ as C } from "./FormItem.vue_vue_type_script_setup_true_lang-D7a8YCgS.js";
11
11
  import { _ as b } from "./GraphyEmpty.vue_vue_type_script_setup_true_lang-B-hAjDCw.js";
@@ -15,18 +15,18 @@ import { _ as v } from "./GraphySubtitle.vue_vue_type_script_setup_true_lang-DsB
15
15
  import { _ as F } from "./GraphyTitle.vue_vue_type_script_setup_true_lang-DXnrZHV2.js";
16
16
  import { _ as B } from "./Icon.vue_vue_type_script_setup_true_lang-CDJweTzy.js";
17
17
  import { _ as A } from "./InputAvatar.vue_vue_type_script_setup_true_lang-coNpUH5g.js";
18
- import { _ as R } from "./InputCheckbox.vue_vue_type_style_index_0_lang-BOY41cD-.js";
18
+ import { _ as R } from "./InputCheckbox.vue_vue_type_style_index_0_lang-Dp-FyMon.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-UQywr42W.js";
21
+ import { _ as K } from "./InputDate.vue_vue_type_script_setup_true_lang-BdELykj8.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-BMChy2_E.js";
24
24
  import { _ as W } from "./InputPhone.vue_vue_type_script_setup_true_lang-B4TULqLW.js";
25
25
  import { _ as Y } from "./InputPrice.vue_vue_type_script_setup_true_lang-R3kHhxN2.js";
26
- import { _ as $ } from "./InputRadio.vue_vue_type_style_index_0_lang-DusKEybQ.js";
26
+ import { _ as $ } from "./InputRadio.vue_vue_type_style_index_0_lang-n0nJwz8x.js";
27
27
  import "vue";
28
28
  import { _ as or } from "./InputSelect.vue_vue_type_script_setup_true_lang-W2S_TcOu.js";
29
- import { _ as er } from "./InputSwitch.vue_vue_type_script_setup_true_lang-Q3wQlqfk.js";
29
+ import { _ as er } from "./InputSwitch.vue_vue_type_script_setup_true_lang-CgE_12vY.js";
30
30
  import { _ as ar } from "./InputText.vue_vue_type_script_setup_true_lang-JLAlUE_2.js";
31
31
  import { _ as sr } from "./InputTextarea.vue_vue_type_script_setup_true_lang-q9T4fINI.js";
32
32
  import { _ as fr } from "./Link.vue_vue_type_script_setup_true_lang-DIzaFPvW.js";
@@ -40,7 +40,7 @@ import { P as br } from "./ProgressLine-CTS0VOAI.js";
40
40
  import { _ as Gr } from "./SensitiveInfo.vue_vue_type_script_setup_true_lang-D288W5VF.js";
41
41
  import { _ as gr } from "./Skeleton.vue_vue_type_script_setup_true_lang-WahY1vGW.js";
42
42
  import { _ as vr } from "./Tab.vue_vue_type_script_setup_true_lang-6bgS8FOw.js";
43
- import { T as Fr } from "./Table-DAdBSj3C.js";
43
+ import { T as Fr } from "./Table-vjjmPzlZ.js";
44
44
  import { _ as Br } from "./Tag.vue_vue_type_script_setup_true_lang-CkDz2_qz.js";
45
45
  import { _ as Ar } from "./Toast.vue_vue_type_script_setup_true_lang-Lw1lJoH3.js";
46
46
  export {
package/dist/index.css CHANGED
@@ -7,33 +7,30 @@
7
7
  /*
8
8
  Theme configuration:
9
9
 
10
- --caipira-primary: [Accent color] Background color of content (pages, cards, etc)
11
- --caipira-secondary: [Contrast color] Hover color
12
- --caipira-tertiary: [Background color] Border color, unfocused text color, app background color
13
- --caipira-quaternary: [Unused]
14
- --caipira-quinary: [Unused]
10
+ --caipira-primary Background color of content (pages, cards, inputs, etc)
11
+ --caipira-secondary Text color
12
+ --caipira-tertiary Border color, unfocused text and containers color, app background color
13
+ --caipira-quaternary Hover color
15
14
  */
16
15
 
17
16
  /* Light theme */
18
17
  --caipira-light-primary: #fff;
19
- --caipira-light-secondary: #f1f3f4;
18
+ --caipira-light-secondary: #f5f5f5;
20
19
  --caipira-light-tertiary: #d3d3d3;
21
- --caipira-light-quaternary: #d1d1d1;
22
- --caipira-light-quinary: #efefef;
20
+ --caipira-light-quaternary: #efefef;
23
21
  --caipira-light-red: #e64553;
24
22
  --caipira-light-green: #16a34ae6;
25
23
  --caipira-light-yellow: #df8e1d;
26
24
  --caipira-light-blue: #1e66f5;
27
25
 
28
26
  /* Dark theme */
29
- --caipira-dark-primary: #121212;
30
- --caipira-dark-secondary: #282828;
31
- --caipira-dark-tertiary: #262626;
32
- --caipira-dark-quaternary: #525252;
33
- --caipira-dark-quinary: #202020;
34
- --caipira-dark-red: #f38ba8;
35
- --caipira-dark-green: #a6e3a1;
36
- --caipira-dark-yellow: #f9e2af;
27
+ --caipira-dark-primary: #0f0f0f;
28
+ --caipira-dark-secondary: #1e1e1e;
29
+ --caipira-dark-tertiary: #333333;
30
+ --caipira-dark-quaternary: #555555;
31
+ --caipira-dark-red: #e64553;
32
+ --caipira-dark-green: #16a34ae6;
33
+ --caipira-dark-yellow: #df8e1d;
37
34
  --caipira-dark-blue: #4089ff;
38
35
 
39
36
  &:not(.dark) {
@@ -43,7 +40,6 @@
43
40
  --caipira-secondary-inverted: var(--caipira-dark-secondary);
44
41
  --caipira-tertiary: var(--caipira-light-tertiary);
45
42
  --caipira-quaternary: var(--caipira-light-quaternary);
46
- --caipira-quinary: var(--caipira-light-quinary);
47
43
  --caipira-red: var(--caipira-light-red);
48
44
  --caipira-green: var(--caipira-light-green);
49
45
  --caipira-yellow: var(--caipira-light-yellow);
@@ -57,7 +53,6 @@
57
53
  --caipira-secondary-inverted: var(--caipira-light-secondary);
58
54
  --caipira-tertiary: var(--caipira-dark-tertiary);
59
55
  --caipira-quaternary: var(--caipira-dark-quaternary);
60
- --caipira-quinary: var(--caipira-dark-quinary);
61
56
  --caipira-red: var(--caipira-dark-red);
62
57
  --caipira-green: var(--caipira-dark-green);
63
58
  --caipira-yellow: var(--caipira-dark-yellow);
@@ -68,7 +63,7 @@
68
63
  --border-color: var(--caipira-tertiary);
69
64
  --bg-color: var(--caipira-primary);
70
65
  --unfocused-color: var(--caipira-tertiary);
71
- --hover-color: var(--caipira-quinary);
66
+ --hover-color: var(--caipira-quaternary);
72
67
  --color-text: var(--caipira-secondary-inverted);
73
68
  }
74
69
  }
@@ -80,9 +75,6 @@
80
75
  .bg-caipira-primary-inverted {
81
76
  background-color: var(--caipira-primary-inverted);
82
77
  }
83
- .bg-caipira-secondary {
84
- background-color: var(--caipira-secondary);
85
- }
86
78
  .bg-caipira-tertiary {
87
79
  background-color: var(--caipira-tertiary);
88
80
  }
@@ -98,9 +90,6 @@
98
90
  .bg-caipira-green {
99
91
  background-color: var(--caipira-green);
100
92
  }
101
- .bg-hover {
102
- background-color: var(--hover-color);
103
- }
104
93
 
105
94
  /* Border */
106
95
  .border-color {
@@ -109,9 +98,6 @@
109
98
  .border-caipira-primary-inverted {
110
99
  border-color: var(--caipira-primary-inverted);
111
100
  }
112
- .border-caipira-tertiary {
113
- border-color: var(--caipira-tertiary);
114
- }
115
101
  .border-caipira-blue {
116
102
  border-color: var(--caipira-blue);
117
103
  }
@@ -236,11 +222,7 @@
236
222
  /* Checkbox & Radio */
237
223
  .form-checkbox:checked,
238
224
  .form-radio:checked {
239
- border-color: transparent;
240
225
  background-color: currentColor;
241
- background-size: 100% 100%;
242
- background-position: center;
243
- background-repeat: no-repeat;
244
226
  }
245
227
  .form-checkbox,
246
228
  .form-radio {
@@ -262,3 +244,6 @@
262
244
  letter-spacing: inherit;
263
245
  cursor: pointer;
264
246
  }
247
+ .form-radio {
248
+ border-radius: 100%;
249
+ }
@@ -1,5 +1,5 @@
1
1
  import { r } from "./register-component-B-fdqewb.js";
2
- import { T as t } from "./Table-DAdBSj3C.js";
2
+ import { T as t } from "./Table-vjjmPzlZ.js";
3
3
  const a = {
4
4
  install(o) {
5
5
  r(o, t);
@@ -1,5 +1,5 @@
1
1
  import { r } from "./register-component-B-fdqewb.js";
2
- import { _ as s } from "./InputSwitch.vue_vue_type_script_setup_true_lang-Q3wQlqfk.js";
2
+ import { _ as s } from "./InputSwitch.vue_vue_type_script_setup_true_lang-CgE_12vY.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 "./InputCheckbox.vue_vue_type_style_index_0_lang-BOY41cD-.js";
2
+ import { _ as s } from "./InputCheckbox.vue_vue_type_style_index_0_lang-Dp-FyMon.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 "./FileDrop.vue_vue_type_script_setup_true_lang-DLEH_LLX.js";
2
+ import { _ as s } from "./FileDrop.vue_vue_type_script_setup_true_lang-BDzMbrCN.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 "./InputDate.vue_vue_type_script_setup_true_lang-UQywr42W.js";
2
+ import { _ as s } from "./InputDate.vue_vue_type_script_setup_true_lang-BdELykj8.js";
3
3
  const m = {
4
4
  install(o) {
5
5
  r(o, s);
@@ -1,5 +1,5 @@
1
1
  import { r as l } from "./register-component-B-fdqewb.js";
2
- import { _ as d } from "./InputRadio.vue_vue_type_style_index_0_lang-DusKEybQ.js";
2
+ import { _ as d } from "./InputRadio.vue_vue_type_style_index_0_lang-n0nJwz8x.js";
3
3
  import { defineComponent as s, onBeforeMount as u, provide as a, computed as p, renderSlot as c } from "vue";
4
4
  const f = /* @__PURE__ */ s({
5
5
  name: "TInputRadioGroup",
@@ -1,5 +1,5 @@
1
1
  import { r } from "./register-component-B-fdqewb.js";
2
- import { _ as s } from "./Dropdown.vue_vue_type_script_setup_true_lang-ByO3ZI8p.js";
2
+ import { _ as s } from "./Dropdown.vue_vue_type_script_setup_true_lang-DeY4vid5.js";
3
3
  const m = {
4
4
  install(o) {
5
5
  r(o, s);
@@ -10,8 +10,8 @@ import { p as o } from "./plugin-DDXOF4cU.js";
10
10
  import { p as n } from "./plugin-CyDnzy2n.js";
11
11
  import "./Drawer-Cl9_4uHA.js";
12
12
  import { p as m } from "./plugin-CNwzCYlr.js";
13
- import { p as u } from "./plugin-8nvB-f8B.js";
14
- import { p as l } from "./plugin-BscWXR9h.js";
13
+ import { p as u } from "./plugin-DrKx8l8j.js";
14
+ import { p as l } from "./plugin-CJ6sqqaI.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
17
  import { p as g } from "./plugin-CvohbpUQ.js";
@@ -24,20 +24,20 @@ import { p as e } from "./plugin-DOeDaXWj.js";
24
24
  import "./Icon.vue_vue_type_script_setup_true_lang-CDJweTzy.js";
25
25
  import { p as $ } from "./plugin-6ziw5jJj.js";
26
26
  import { p as I } from "./plugin--F5QK2vy.js";
27
- import "./InputCheckbox.vue_vue_type_style_index_0_lang-BOY41cD-.js";
28
- import { p as c } from "./plugin-BQqeQUxM.js";
27
+ import "./InputCheckbox.vue_vue_type_style_index_0_lang-Dp-FyMon.js";
28
+ import { p as c } from "./plugin-BVJKxqmv.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-B1ev5kjp.js";
31
+ import { p as b } from "./plugin-Ch67LOIy.js";
32
32
  import { p as d } from "./plugin-Br-QOjhk.js";
33
33
  import { p as T } from "./plugin-BJyDH94F.js";
34
34
  import { p as C } from "./plugin-CrHDShgh.js";
35
35
  import { p as S } from "./plugin-RM2wZuwL.js";
36
- import "./InputRadio.vue_vue_type_style_index_0_lang-DusKEybQ.js";
37
- import { p as v } from "./plugin-Y4yYnlO3.js";
36
+ import "./InputRadio.vue_vue_type_style_index_0_lang-n0nJwz8x.js";
37
+ import { p as v } from "./plugin-Do2-cqMT.js";
38
38
  import "./InputSelect.vue_vue_type_script_setup_true_lang-W2S_TcOu.js";
39
39
  import { p as G } from "./plugin-CZiSoM73.js";
40
- import { p as k } from "./plugin-BZOU6h10.js";
40
+ import { p as k } from "./plugin-B63n9_uc.js";
41
41
  import { p as w } from "./plugin-lYDlOt8p.js";
42
42
  import { p as x } from "./plugin-C8Z-XgLn.js";
43
43
  import "./Link.vue_vue_type_script_setup_true_lang-DIzaFPvW.js";
@@ -56,8 +56,8 @@ import { p as B } from "./plugin-CZ2rAHjJ.js";
56
56
  import { p as z } from "./plugin-BWfDY9pB.js";
57
57
  import { p as E } from "./plugin-C1kAmMfE.js";
58
58
  import { p as O } from "./plugin-wVt0wQNv.js";
59
- import "./Table-DAdBSj3C.js";
60
- import { p as q } from "./plugin-BpdfpzgE.js";
59
+ import "./Table-vjjmPzlZ.js";
60
+ import { p as q } from "./plugin-6KewRQ9w.js";
61
61
  import "./Tag.vue_vue_type_script_setup_true_lang-CkDz2_qz.js";
62
62
  import { p as H } from "./plugin-B5vbbM7n.js";
63
63
  import { p as R } from "./plugin-BOewyU0C.js";
package/dist/plugins.js CHANGED
@@ -10,8 +10,8 @@ import { p as v } from "./plugin-DDXOF4cU.js";
10
10
  import { p as D } from "./plugin-CyDnzy2n.js";
11
11
  import "./Drawer-Cl9_4uHA.js";
12
12
  import { p as L } from "./plugin-CNwzCYlr.js";
13
- import { p as A } from "./plugin-8nvB-f8B.js";
14
- import { p as E } from "./plugin-BscWXR9h.js";
13
+ import { p as A } from "./plugin-DrKx8l8j.js";
14
+ import { p as E } from "./plugin-CJ6sqqaI.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
17
  import { p as z } from "./plugin-CvohbpUQ.js";
@@ -24,20 +24,20 @@ import { p as X } from "./plugin-DOeDaXWj.js";
24
24
  import "./Icon.vue_vue_type_script_setup_true_lang-CDJweTzy.js";
25
25
  import { p as Z } from "./plugin-6ziw5jJj.js";
26
26
  import { p as $ } from "./plugin--F5QK2vy.js";
27
- import "./InputCheckbox.vue_vue_type_style_index_0_lang-BOY41cD-.js";
28
- import { p as or } from "./plugin-BQqeQUxM.js";
27
+ import "./InputCheckbox.vue_vue_type_style_index_0_lang-Dp-FyMon.js";
28
+ import { p as or } from "./plugin-BVJKxqmv.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-B1ev5kjp.js";
31
+ import { p as nr } from "./plugin-Ch67LOIy.js";
32
32
  import { p as ur } from "./plugin-Br-QOjhk.js";
33
33
  import { p as Pr } from "./plugin-BJyDH94F.js";
34
34
  import { p as gr } from "./plugin-CrHDShgh.js";
35
35
  import { p as fr } from "./plugin-RM2wZuwL.js";
36
- import "./InputRadio.vue_vue_type_style_index_0_lang-DusKEybQ.js";
37
- import { p as cr } from "./plugin-Y4yYnlO3.js";
36
+ import "./InputRadio.vue_vue_type_style_index_0_lang-n0nJwz8x.js";
37
+ import { p as cr } from "./plugin-Do2-cqMT.js";
38
38
  import "./InputSelect.vue_vue_type_script_setup_true_lang-W2S_TcOu.js";
39
39
  import { p as yr } from "./plugin-CZiSoM73.js";
40
- import { p as Cr } from "./plugin-BZOU6h10.js";
40
+ import { p as Cr } from "./plugin-B63n9_uc.js";
41
41
  import { p as br } from "./plugin-lYDlOt8p.js";
42
42
  import { p as Sr } from "./plugin-C8Z-XgLn.js";
43
43
  import "./Link.vue_vue_type_script_setup_true_lang-DIzaFPvW.js";
@@ -56,8 +56,8 @@ import { p as Jr } from "./plugin-CZ2rAHjJ.js";
56
56
  import { p as Nr } from "./plugin-BWfDY9pB.js";
57
57
  import { p as Qr } from "./plugin-C1kAmMfE.js";
58
58
  import { p as Vr } from "./plugin-wVt0wQNv.js";
59
- import "./Table-DAdBSj3C.js";
60
- import { p as Xr } from "./plugin-BpdfpzgE.js";
59
+ import "./Table-vjjmPzlZ.js";
60
+ import { p as Xr } from "./plugin-6KewRQ9w.js";
61
61
  import "./Tag.vue_vue_type_script_setup_true_lang-CkDz2_qz.js";
62
62
  import { p as Zr } from "./plugin-B5vbbM7n.js";
63
63
  import { p as $r } from "./plugin-BOewyU0C.js";
package/dist/tamandua.js CHANGED
@@ -1,4 +1,4 @@
1
- import { p as n } from "./plugins-B3Md0lwW.js";
1
+ import { p as n } from "./plugins-cn0dSxZb.js";
2
2
  const o = {
3
3
  install(s) {
4
4
  for (const i in n)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@caipira/tamandua",
3
- "version": "0.0.63",
3
+ "version": "0.0.65",
4
4
  "private": false,
5
5
  "description": "UI library for the Caipira ecosystem",
6
6
  "license": "GPL-3.0-only",
@@ -1,35 +0,0 @@
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-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
- };