@caipira/tamandua 0.0.17 → 0.0.19

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 (95) hide show
  1. package/dist/Avatar.js +2 -2
  2. package/dist/Avatar.vue_vue_type_script_setup_true_lang-Cjz3Vlw9.js +51 -0
  3. package/dist/Button-BVvZv1Xl.js +6 -0
  4. package/dist/Button.css +1 -1
  5. package/dist/Button.js +2 -2
  6. package/dist/{Button.vue_vue_type_style_index_0_scoped_4208c238_lang-Blwygh_-.js → Button.vue_vue_type_style_index_0_scoped_028abb2a_lang-B8Np_xdG.js} +65 -68
  7. package/dist/ButtonCopy.js +2 -2
  8. package/dist/{ButtonCopy.vue_vue_type_script_setup_true_lang-CCdkF36R.js → ButtonCopy.vue_vue_type_script_setup_true_lang-B_Jorqip.js} +12 -11
  9. package/dist/Form.js +2 -2
  10. package/dist/{Form.vue_vue_type_script_setup_true_lang-GWUrHIHW.js → Form.vue_vue_type_script_setup_true_lang-hFd1xBcd.js} +1 -1
  11. package/dist/GraphyPrice.js +2 -2
  12. package/dist/{GraphyPrice.vue_vue_type_script_setup_true_lang-GY5TUNz8.js → GraphyPrice.vue_vue_type_script_setup_true_lang-BdCwug4U.js} +1 -1
  13. package/dist/Icon.js +2 -2
  14. package/dist/{Icon.vue_vue_type_script_setup_true_lang-CqJ-D4BM.js → Icon.vue_vue_type_script_setup_true_lang-CNUyv7CY.js} +18 -18
  15. package/dist/InputMultiplier.js +2 -2
  16. package/dist/InputMultiplier.vue_vue_type_script_setup_true_lang-DlITLRxb.js +74 -0
  17. package/dist/InputPassword.js +2 -2
  18. package/dist/{InputPassword.vue_vue_type_script_setup_true_lang-B-x3dFWK.js → InputPassword.vue_vue_type_script_setup_true_lang-D_xGJ0Ci.js} +1 -1
  19. package/dist/InputPhone.js +2 -2
  20. package/dist/{InputPhone.vue_vue_type_script_setup_true_lang-uNqXphQY.js → InputPhone.vue_vue_type_script_setup_true_lang-DvSNQmar.js} +13 -13
  21. package/dist/InputSelect.js +2 -2
  22. package/dist/{InputSelect.vue_vue_type_script_setup_true_lang-B93CKCR3.js → InputSelect.vue_vue_type_script_setup_true_lang-Cc2Knxl7.js} +30 -28
  23. package/dist/InputText.js +2 -2
  24. package/dist/{InputText.vue_vue_type_script_setup_true_lang-CkoBmp9p.js → InputText.vue_vue_type_script_setup_true_lang-BWM3bHKU.js} +5 -5
  25. package/dist/Link.js +2 -2
  26. package/dist/{Link.vue_vue_type_script_setup_true_lang-BJVsokc1.js → Link.vue_vue_type_script_setup_true_lang-DeBJ2UGi.js} +1 -1
  27. package/dist/ModalForm.js +2 -2
  28. package/dist/{ModalForm.vue_vue_type_script_setup_true_lang-CZBGpJCs.js → ModalForm.vue_vue_type_script_setup_true_lang-BaYQDOnJ.js} +11 -13
  29. package/dist/Popconfirm.js +2 -2
  30. package/dist/{Popconfirm.vue_vue_type_script_setup_true_lang-CGs37-Nn.js → Popconfirm.vue_vue_type_script_setup_true_lang-BNpLdXq7.js} +1 -1
  31. package/dist/Popover.js +2 -2
  32. package/dist/{Popover.vue_vue_type_script_setup_true_lang-B1brEdFx.js → Popover.vue_vue_type_script_setup_true_lang-B4Polh2y.js} +1 -1
  33. package/dist/{ProgressLine-1ZHGvPsm.js → ProgressLine-B_Teev3n.js} +25 -19
  34. package/dist/ProgressLine.css +1 -1
  35. package/dist/ProgressLine.js +2 -2
  36. package/dist/{Table-grkQ9tby.js → Table-CYnCf_CG.js} +12 -11
  37. package/dist/Table.css +1 -1
  38. package/dist/Table.js +2 -2
  39. package/dist/Tag.js +2 -2
  40. package/dist/{Tag.vue_vue_type_script_setup_true_lang-BohgPbhp.js → Tag.vue_vue_type_script_setup_true_lang-D-yGH5I5.js} +28 -26
  41. package/dist/Toast.js +2 -2
  42. package/dist/{Toast.vue_vue_type_script_setup_true_lang-a5tU5-sA.js → Toast.vue_vue_type_script_setup_true_lang-Dezwl4qF.js} +1 -1
  43. package/dist/components.js +65 -67
  44. package/dist/enums.js +1 -1
  45. package/dist/index.css +0 -6
  46. package/dist/{plugin-CwJMh4ht.js → plugin-5nhQC5Ck.js} +1 -1
  47. package/dist/{plugin-CCH1Q2cN.js → plugin-BGWPliCj.js} +1 -1
  48. package/dist/{plugin-BCt5Fd1Y.js → plugin-BOTI2tkp.js} +1 -1
  49. package/dist/{plugin-DyiLV5Qf.js → plugin-BOXtmhcZ.js} +1 -1
  50. package/dist/{plugin-BAUSOmg1.js → plugin-Bp0MadmC.js} +1 -1
  51. package/dist/{plugin-BkWUeqrs.js → plugin-BriPeDzu.js} +1 -1
  52. package/dist/{plugin-CX1WsfRO.js → plugin-Bt6de9ZA.js} +1 -1
  53. package/dist/{plugin-PahpuGjl.js → plugin-CXsVFJPx.js} +1 -1
  54. package/dist/{plugin-DXEt6BIK.js → plugin-Cg_Ls0OX.js} +1 -1
  55. package/dist/{plugin-CQQde2zY.js → plugin-CxYhyNRA.js} +1 -1
  56. package/dist/{plugin-CHQRlAGJ.js → plugin-D2cyoBNg.js} +1 -1
  57. package/dist/{plugin-2nTovNcx.js → plugin-DEybStkj.js} +1 -1
  58. package/dist/{plugin-DmfiHplR.js → plugin-DK-_BDxt.js} +1 -1
  59. package/dist/{plugin-D9DcbHK3.js → plugin-Dn96hI0e.js} +1 -1
  60. package/dist/{plugin-JgFOdNjC.js → plugin-Dp-F27SY.js} +1 -1
  61. package/dist/{plugin-1JFePZNV.js → plugin-GzMD7Mhm.js} +1 -1
  62. package/dist/{plugin-C8V0p_Rv.js → plugin-dL6oP11N.js} +1 -1
  63. package/dist/{plugin-CGg5IOSy.js → plugin-hr8-EXeF.js} +1 -1
  64. package/dist/{plugin-BRY5cGCc.js → plugin-xaGfuM5Z.js} +1 -1
  65. package/dist/plugins-C0eAws64.js +109 -0
  66. package/dist/plugins.js +92 -95
  67. package/dist/tamandua.js +1 -1
  68. package/dist/types/components/Avatar/Avatar.story.d.ts +1 -1
  69. package/dist/types/components/Avatar/Avatar.vue.d.ts +2 -2
  70. package/dist/types/components/Button/Button.story.d.ts +1 -1
  71. package/dist/types/components/Button/Button.vue.d.ts +7 -5
  72. package/dist/types/components/Button/types.d.ts +4 -1
  73. package/dist/types/components/Icon/Icon.story.d.ts +1 -1
  74. package/dist/types/components/InputMultiplier/input-multiplier.story.d.ts +0 -3
  75. package/dist/types/components/InputMultiplier/types.d.ts +4 -2
  76. package/dist/types/components/index.d.ts +2 -3
  77. package/dist/types/components/plugins.d.ts +1 -2
  78. package/dist/types/enums/ui.d.ts +10 -8
  79. package/dist/types/index.d.ts +0 -1
  80. package/dist/types/types/website.d.ts +1 -5
  81. package/dist/ui-BC6H9E93.js +13 -0
  82. package/package.json +1 -1
  83. package/volar.d.ts +0 -1
  84. package/dist/Avatar.vue_vue_type_script_setup_true_lang-BZy_UetF.js +0 -51
  85. package/dist/Button-42CN8gSf.js +0 -6
  86. package/dist/IconButton.js +0 -6
  87. package/dist/IconButton.vue_vue_type_script_setup_true_lang-CfILJjtd.js +0 -91
  88. package/dist/InputMultiplier.vue_vue_type_script_setup_true_lang-w2RuSz1R.js +0 -83
  89. package/dist/plugin-BJT9iz31.js +0 -10
  90. package/dist/plugins-DVzcsSnU.js +0 -112
  91. package/dist/types/components/IconButton/IconButton.vue.d.ts +0 -55
  92. package/dist/types/components/IconButton/index.d.ts +0 -5
  93. package/dist/types/components/IconButton/plugin.d.ts +0 -4
  94. package/dist/types/components/IconButton/types.d.ts +0 -17
  95. package/dist/ui-D3dPdT4S.js +0 -13
@@ -1,4 +1,4 @@
1
- import { defineComponent as w, ref as a, inject as I, onBeforeMount as h, watch as j, resolveComponent as c, openBlock as B, createElementBlock as S, normalizeClass as k, unref as E, createVNode as m, withCtx as f, createElementVNode as b, toDisplayString as l } from "vue";
1
+ import { defineComponent as w, ref as r, inject as I, onBeforeMount as h, watch as j, resolveComponent as c, openBlock as B, createElementBlock as S, normalizeClass as k, unref as E, createVNode as m, withCtx as f, createElementVNode as b, toDisplayString as l } from "vue";
2
2
  const P = /* @__PURE__ */ w({
3
3
  name: "TInputPhone",
4
4
  __name: "InputPhone",
@@ -8,31 +8,31 @@ const P = /* @__PURE__ */ w({
8
8
  },
9
9
  emits: ["update:model-value"],
10
10
  setup(v, { emit: C }) {
11
- const i = v, V = C, u = a(""), o = a(), s = a([]), r = a([]), _ = I("formStyle", { label: "", input: "" }), d = () => {
11
+ const u = v, V = C, a = r(""), o = r(), s = r([]), i = r([]), _ = I("formStyle", { label: "", input: "" }), d = () => {
12
12
  if (!o.value)
13
13
  return;
14
- const e = r.value.find(
14
+ const e = i.value.find(
15
15
  (n) => n.dialCode === o.value
16
16
  );
17
17
  e && V("update:model-value", {
18
18
  iso2: e.iso2,
19
19
  dialCode: e.dialCode,
20
- number: u.value ?? ""
20
+ number: a.value ?? ""
21
21
  });
22
22
  }, y = async () => {
23
- r.value = await i.resource(), s.value = r.value.map(
23
+ u.resource && (i.value = await u.resource(), s.value = i.value.map(
24
24
  (e) => ({
25
25
  label: e,
26
26
  value: e.dialCode
27
27
  })
28
- ) ?? [];
28
+ ) ?? []);
29
29
  }, p = async (e) => {
30
- e && typeof e == "object" && (o.value = e.dialCode, "number" in e && (u.value = e.number));
30
+ e && typeof e == "object" && (o.value = e.dialCode, "number" in e && (a.value = e.number));
31
31
  };
32
32
  return h(async () => {
33
- await y(), p(i.modelValue);
33
+ await y(), p(u.modelValue);
34
34
  }), j(
35
- () => i.modelValue,
35
+ () => u.modelValue,
36
36
  (e) => {
37
37
  p(e);
38
38
  },
@@ -40,7 +40,7 @@ const P = /* @__PURE__ */ w({
40
40
  ), (e, n) => {
41
41
  const x = c("t-input-select"), g = c("t-input-text");
42
42
  return B(), S("div", {
43
- class: k(["flex border h-9 input-bg-color input-text-color input-border input-roundness", { [E(_).input]: !0 }])
43
+ class: k(["h-9 flex input-bg-color input-text-color border input-border input-roundness", { [E(_).input]: !0 }])
44
44
  }, [
45
45
  m(x, {
46
46
  modelValue: o.value,
@@ -50,7 +50,7 @@ const P = /* @__PURE__ */ w({
50
50
  ],
51
51
  options: s.value,
52
52
  "disable-style": !0,
53
- class: "border-r w-min-20 flex justify-center items-center input-border"
53
+ class: "border-r min-w-20 flex justify-center items-center input-border"
54
54
  }, {
55
55
  default: f((t) => [
56
56
  b("span", null, l(t.flag) + " " + l(t.name) + " +" + l(t.dialCode), 1)
@@ -61,8 +61,8 @@ const P = /* @__PURE__ */ w({
61
61
  _: 1
62
62
  }, 8, ["modelValue", "options"]),
63
63
  m(g, {
64
- modelValue: u.value,
65
- "onUpdate:modelValue": n[1] || (n[1] = (t) => u.value = t),
64
+ modelValue: a.value,
65
+ "onUpdate:modelValue": n[1] || (n[1] = (t) => a.value = t),
66
66
  "disable-style": !0,
67
67
  class: "w-full input-bg-color input-text-color input-outline input-roundness input-padding",
68
68
  onInput: d
@@ -1,5 +1,5 @@
1
- import { _ as p } from "./InputSelect.vue_vue_type_script_setup_true_lang-B93CKCR3.js";
2
- import { p as r } from "./plugin-DmfiHplR.js";
1
+ import { _ as p } from "./InputSelect.vue_vue_type_script_setup_true_lang-Cc2Knxl7.js";
2
+ import { p as r } from "./plugin-DK-_BDxt.js";
3
3
  export {
4
4
  p as InputSelect,
5
5
  r as InputSelectPlugin
@@ -1,7 +1,7 @@
1
- import { defineComponent as ue, ref as p, inject as re, computed as $, onBeforeMount as ce, onBeforeUnmount as pe, watch as A, resolveComponent as b, openBlock as i, createElementBlock as c, normalizeClass as V, unref as M, createElementVNode as de, withKeys as fe, renderSlot as h, normalizeProps as k, mergeProps as D, Fragment as _, renderList as U, guardReactiveProps as H, createBlock as I, toDisplayString as me, createCommentVNode as N, withDirectives as ve, vModelText as ye, createVNode as P, withCtx as q, createSlots as be, nextTick as he } from "vue";
1
+ import { defineComponent as ue, ref as p, inject as re, computed as $, onBeforeMount as ce, onBeforeUnmount as pe, watch as D, resolveComponent as b, openBlock as i, createElementBlock as c, normalizeClass as V, unref as M, createElementVNode as de, withKeys as fe, renderSlot as h, normalizeProps as k, mergeProps as I, Fragment as S, renderList as U, guardReactiveProps as H, createBlock as P, toDisplayString as me, createCommentVNode as N, withDirectives as ve, vModelText as ye, createVNode as A, withCtx as q, createSlots as be, nextTick as he } from "vue";
2
2
  import { u as ke } from "./useDomHelpers-5CFMo6bx.js";
3
- import { a as we, E as ge } from "./ui-D3dPdT4S.js";
4
- const Ve = { key: 1 }, _e = ["placeholder", "disabled", "readonly"], Se = {
3
+ import { a as we, E as ge } from "./ui-BC6H9E93.js";
4
+ const Ve = { key: 1 }, Se = ["placeholder", "disabled", "readonly"], _e = {
5
5
  key: 0,
6
6
  class: "inline-flex w-full justify-between items-center"
7
7
  }, xe = {
@@ -13,10 +13,10 @@ const $e = /* @__PURE__ */ ue({
13
13
  name: "TInputSelect",
14
14
  __name: "InputSelect",
15
15
  props: {
16
- size: { default: we.DEFAULT },
16
+ size: { default: we.Default },
17
17
  options: { default: () => [] },
18
18
  mapper: { type: Function, default: (f) => ({ value: f.id ?? f.uuid, label: f }) },
19
- filter: { type: Function, default: (f, S) => S.label.toLowerCase().indexOf(f.toLowerCase()) >= 0 },
19
+ filter: { type: Function, default: (f, _) => _.label.toLowerCase().indexOf(f.toLowerCase()) >= 0 },
20
20
  tooltip: { default: "" },
21
21
  disabled: { type: Boolean },
22
22
  resource: {},
@@ -29,10 +29,10 @@ const $e = /* @__PURE__ */ ue({
29
29
  dropdownPlacement: { default: ge.BOTTOM }
30
30
  },
31
31
  emits: ["update:model-value"],
32
- setup(f, { emit: S }) {
32
+ setup(f, { emit: _ }) {
33
33
  const l = f;
34
34
  let x = !1, w, T = "";
35
- const G = S, J = `checkbox_${++Ce}`, r = p(""), o = p([]), L = p(null), O = re("formStyle", { label: "", input: "" }), C = p(null), n = p(!1), z = p(null), a = p([]), B = p(!1), { wasClickOutsideOfContainer: Q } = ke(), d = p(null), E = $(() => a.value.length > 0), F = $(() => l.isSearchable && n.value), v = $(() => typeof l.resource == "function"), W = (e) => !l.multiple || !l.modelValue || !Array.isArray(l.modelValue) ? !1 : l.modelValue.includes(e.value), X = (e = l.modelValue) => !(e === void 0 || e === "" || Array.isArray(e) && e.length === 0), Y = (e) => {
35
+ const G = _, J = `checkbox_${++Ce}`, r = p(""), o = p([]), z = p(null), L = re("formStyle", { label: "", input: "" }), C = p(null), n = p(!1), O = p(null), a = p([]), B = p(!1), { wasClickOutsideOfContainer: Q } = ke(), d = p(null), E = $(() => a.value.length > 0), F = $(() => l.isSearchable && n.value), v = $(() => typeof l.resource == "function"), W = (e) => !l.multiple || !l.modelValue || !Array.isArray(l.modelValue) ? !1 : l.modelValue.includes(e.value), X = (e = l.modelValue) => !(e === void 0 || e === "" || Array.isArray(e) && e.length === 0), Y = (e) => {
36
36
  G("update:model-value", e);
37
37
  }, m = (e = l.modelValue) => {
38
38
  if (X(e))
@@ -46,7 +46,7 @@ const $e = /* @__PURE__ */ ue({
46
46
  }
47
47
  }, K = (e) => {
48
48
  n.value = !n.value, n.value && F.value && he(() => {
49
- L.value?.focus();
49
+ z.value?.focus();
50
50
  }), e.stopPropagation();
51
51
  }, R = (e) => o.value.findIndex(
52
52
  (t) => t.value === e
@@ -90,7 +90,7 @@ const $e = /* @__PURE__ */ ue({
90
90
  }, oe = async (e) => {
91
91
  switch (e.key) {
92
92
  case "ArrowDown":
93
- z.value?.move(e);
93
+ O.value?.move(e);
94
94
  break;
95
95
  }
96
96
  };
@@ -98,12 +98,12 @@ const $e = /* @__PURE__ */ ue({
98
98
  v.value ? (await g(), m()) : l.options.length > 0 && (o.value = l.options), !l.modelValue && l.initialValue ? m(l.initialValue) : m(l.modelValue), document.addEventListener("click", j);
99
99
  }), pe(() => {
100
100
  document.removeEventListener("click", j);
101
- }), A(
101
+ }), D(
102
102
  () => l.modelValue,
103
103
  async (e) => {
104
104
  e && (R(e) < 0 && v.value && await g(), m(e));
105
105
  }
106
- ), A(
106
+ ), D(
107
107
  a,
108
108
  (e) => {
109
109
  const t = l.multiple ? o.value.filter(
@@ -112,15 +112,15 @@ const $e = /* @__PURE__ */ ue({
112
112
  x && (x = !1, Y(t));
113
113
  },
114
114
  { deep: !0 }
115
- ), A(
115
+ ), D(
116
116
  () => l.options,
117
117
  (e) => {
118
118
  e.length > 0 && (o.value = e, l.modelValue && a.value.length === 0 && m(l.modelValue));
119
119
  }
120
120
  ), (e, t) => {
121
- const u = b("t-tag"), y = b("t-icon-button"), ne = b("t-icon"), se = b("t-dropdown"), ie = b("t-popover");
121
+ const u = b("t-tag"), y = b("t-button"), ne = b("t-icon"), se = b("t-dropdown"), ie = b("t-popover");
122
122
  return i(), c("div", {
123
- class: V({ [M(O).input]: !l.disableStyle })
123
+ class: V({ [M(L).input]: !l.disableStyle })
124
124
  }, [
125
125
  de("div", {
126
126
  ref_key: "wrapperRef",
@@ -129,7 +129,7 @@ const $e = /* @__PURE__ */ ue({
129
129
  "h-9": !l.disableStyle && !l.multiple,
130
130
  "min-h-9": !l.disableStyle && l.multiple,
131
131
  "text-left select-none input-bg-color input-text-color border input-border input-roundness": !l.disableStyle,
132
- [M(O).input]: !l.disableStyle
132
+ [M(L).input]: !l.disableStyle
133
133
  }, "inline-flex justify-between items-center w-full text-left"]),
134
134
  role: "button",
135
135
  onClick: K,
@@ -141,7 +141,7 @@ const $e = /* @__PURE__ */ ue({
141
141
  "onUpdate:modelValue": t[0] || (t[0] = (s) => r.value = s),
142
142
  type: "text",
143
143
  ref_key: "inputRef",
144
- ref: L,
144
+ ref: z,
145
145
  placeholder: l.placeholder,
146
146
  disabled: l.disabled,
147
147
  readonly: !l.isSearchable,
@@ -149,7 +149,7 @@ const $e = /* @__PURE__ */ ue({
149
149
  onClick: t[1] || (t[1] = (s) => s.stopPropagation()),
150
150
  onInput: Z,
151
151
  onKeydown: oe
152
- }, null, 42, _e)), [
152
+ }, null, 42, Se)), [
153
153
  [ye, r.value]
154
154
  ]) : (i(), c("div", {
155
155
  key: 0,
@@ -158,31 +158,33 @@ const $e = /* @__PURE__ */ ue({
158
158
  "flex-wrap gap-2 py-1": l.multiple
159
159
  }])
160
160
  }, [
161
- e.$slots.selection && E.value ? h(e.$slots, "selection", k(D({ key: 0 }, o.value[a.value[0]].label))) : e.$slots.default && E.value ? (i(), c(_, { key: 1 }, [
162
- l.multiple ? (i(!0), c(_, { key: 0 }, U(a.value, (s) => h(e.$slots, "default", k(H(o.value[s].label)))), 256)) : h(e.$slots, "default", k(D({ key: 1 }, o.value[a.value[0]].label)))
163
- ], 64)) : E.value ? (i(), c(_, { key: 2 }, [
164
- l.multiple ? (i(!0), c(_, { key: 0 }, U(a.value, (s) => (i(), I(u, {
161
+ e.$slots.selection && E.value ? h(e.$slots, "selection", k(I({ key: 0 }, o.value[a.value[0]].label))) : e.$slots.default && E.value ? (i(), c(S, { key: 1 }, [
162
+ l.multiple ? (i(!0), c(S, { key: 0 }, U(a.value, (s) => h(e.$slots, "default", k(H(o.value[s].label)))), 256)) : h(e.$slots, "default", k(I({ key: 1 }, o.value[a.value[0]].label)))
163
+ ], 64)) : E.value ? (i(), c(S, { key: 2 }, [
164
+ l.multiple ? (i(!0), c(S, { key: 0 }, U(a.value, (s) => (i(), P(u, {
165
165
  key: s,
166
166
  text: o.value[s].label,
167
167
  color: "#6e6e6e"
168
168
  }, null, 8, ["text"]))), 128)) : (i(), c("span", Ve, me(o.value[a.value[0]]?.label), 1))
169
169
  ], 64)) : N("", !0)
170
170
  ], 2)),
171
- P(y, {
171
+ A(y, {
172
+ variant: "transparent",
173
+ size: "sm",
172
174
  "disable-style": !0,
173
175
  class: "h-9",
174
176
  icon: n.value === !0 ? "chevron-up" : "chevron-down",
175
177
  onClick: K
176
178
  }, null, 8, ["icon"])
177
179
  ], 34),
178
- P(ie, {
180
+ A(ie, {
179
181
  placement: l.dropdownPlacement,
180
182
  "is-visible": n.value
181
183
  }, {
182
184
  content: q(() => [
183
- P(se, {
185
+ A(se, {
184
186
  ref_key: "dropdownRef",
185
- ref: z,
187
+ ref: O,
186
188
  owner: J,
187
189
  items: o.value,
188
190
  "is-visible": n.value,
@@ -196,13 +198,13 @@ const $e = /* @__PURE__ */ ue({
196
198
  e.$slots.default || l.multiple ? {
197
199
  name: "default",
198
200
  fn: q((s) => [
199
- l.multiple ? (i(), c("div", Se, [
200
- e.$slots.default ? h(e.$slots, "default", k(D({ key: 0 }, s.label))) : (i(), I(u, {
201
+ l.multiple ? (i(), c("div", _e, [
202
+ e.$slots.default ? h(e.$slots, "default", k(I({ key: 0 }, s.label))) : (i(), P(u, {
201
203
  key: 1,
202
204
  text: s.label,
203
205
  class: "m-1"
204
206
  }, null, 8, ["text"])),
205
- W(s) ? (i(), I(ne, {
207
+ W(s) ? (i(), P(ne, {
206
208
  key: 2,
207
209
  icon: "check",
208
210
  size: "sm",
package/dist/InputText.js CHANGED
@@ -1,5 +1,5 @@
1
- import { _ as e } from "./InputText.vue_vue_type_script_setup_true_lang-CkoBmp9p.js";
2
- import { p as r } from "./plugin-CwJMh4ht.js";
1
+ import { _ as e } from "./InputText.vue_vue_type_script_setup_true_lang-BWM3bHKU.js";
2
+ import { p as r } from "./plugin-5nhQC5Ck.js";
3
3
  export {
4
4
  e as InputText,
5
5
  r as InputTextPlugin
@@ -11,18 +11,18 @@ const S = ["type", "id", "placeholder", "autocomplete", "disabled"], B = /* @__P
11
11
  disableStyle: { type: Boolean, default: !1 }
12
12
  },
13
13
  emits: ["update:model-value", "keyup.enter"],
14
- setup(i, { emit: p }) {
15
- const e = i, r = l("id", ""), s = p, d = l("invalid", !1), c = l("formStyle", { input: "w-full" }), a = l("validated", !1), n = v({
14
+ setup(u, { emit: p }) {
15
+ const e = u, r = l("id", ""), s = p, d = l("invalid", !1), c = l("formStyle", { input: "w-full" }), a = l("validated", !1), n = v({
16
16
  get: () => e.modelValue,
17
17
  set: (o) => {
18
18
  s("update:model-value", o);
19
19
  }
20
20
  });
21
- return (o, u) => y((b(), h("input", _({
22
- "onUpdate:modelValue": u[0] || (u[0] = (m) => n.value = m),
21
+ return (o, i) => y((b(), h("input", _({
22
+ "onUpdate:modelValue": i[0] || (i[0] = (m) => n.value = m),
23
23
  type: e.type,
24
24
  class: {
25
- "h-9 input-bg-color input-text-color input-outline border input-border input-roundnes input-padding input-roundness": !e.disableStyle,
25
+ "h-9 input-bg-color input-text-color input-outline border input-border input-roundness input-padding": !e.disableStyle,
26
26
  [t(c).input]: !e.disableStyle,
27
27
  "border-red-500": !t(a) && t(d),
28
28
  "border-emerald-500": t(a) && !t(d)
package/dist/Link.js CHANGED
@@ -1,5 +1,5 @@
1
- import { _ as i } from "./Link.vue_vue_type_script_setup_true_lang-BJVsokc1.js";
2
- import { p } from "./plugin-C8V0p_Rv.js";
1
+ import { _ as i } from "./Link.vue_vue_type_script_setup_true_lang-DeBJ2UGi.js";
2
+ import { p } from "./plugin-dL6oP11N.js";
3
3
  export {
4
4
  i as Link,
5
5
  p as LinkPlugin
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as s, computed as d, resolveComponent as c, openBlock as o, createBlock as n, resolveDynamicComponent as m, withCtx as u, renderSlot as p, createElementBlock as f, Fragment as _, createTextVNode as k, toDisplayString as y, createCommentVNode as b } from "vue";
2
- import { L as l } from "./ui-D3dPdT4S.js";
2
+ import { L as l } from "./ui-BC6H9E93.js";
3
3
  const B = /* @__PURE__ */ s({
4
4
  name: "TLink",
5
5
  __name: "Link",
package/dist/ModalForm.js CHANGED
@@ -1,5 +1,5 @@
1
- import { _ as a } from "./ModalForm.vue_vue_type_script_setup_true_lang-CZBGpJCs.js";
2
- import { p as l } from "./plugin-CCH1Q2cN.js";
1
+ import { _ as a } from "./ModalForm.vue_vue_type_script_setup_true_lang-BaYQDOnJ.js";
2
+ import { p as l } from "./plugin-BGWPliCj.js";
3
3
  export {
4
4
  a as ModalForm,
5
5
  l as ModalFormPlugin
@@ -23,8 +23,8 @@ const $ = {
23
23
  e.value?.close(), p("closed");
24
24
  };
25
25
  return C({ open: g, delete: x }), (r, t) => {
26
- const V = o("t-input-switch"), z = o("t-icon"), D = o("t-dropdown"), E = o("t-popover"), _ = o("t-button"), B = o("t-popconfirm"), h = o("t-modal");
27
- return e.value?.visible ? (l(), a(h, {
26
+ const V = o("t-input-switch"), D = o("t-icon"), E = o("t-dropdown"), B = o("t-popover"), _ = o("t-button"), h = o("t-popconfirm"), z = o("t-modal");
27
+ return e.value?.visible ? (l(), a(z, {
28
28
  key: 0,
29
29
  title: e.value?.title,
30
30
  onClosed: S
@@ -40,14 +40,14 @@ const $ = {
40
40
  ]),
41
41
  footer: n(() => [
42
42
  i.options.length ? (l(), M("div", $, [
43
- c(E, { placement: "bottom-start" }, {
43
+ c(B, { placement: "bottom-start" }, {
44
44
  content: n(() => [
45
- c(D, {
45
+ c(E, {
46
46
  items: i.options
47
47
  }, null, 8, ["items"])
48
48
  ]),
49
49
  default: n(() => [
50
- c(z, {
50
+ c(D, {
51
51
  icon: "dots-vertical",
52
52
  class: "text-lg mr-6",
53
53
  size: "xs",
@@ -57,7 +57,7 @@ const $ = {
57
57
  ]),
58
58
  _: 1
59
59
  })
60
- ])) : (l(), a(B, {
60
+ ])) : (l(), a(h, {
61
61
  key: 1,
62
62
  message: `Are you sure you want to delete this ${s.value?.title}?`,
63
63
  onConfirm: t[2] || (t[2] = () => e.value?.delete())
@@ -65,12 +65,11 @@ const $ = {
65
65
  default: n(() => [
66
66
  e.value?.isEditing ? (l(), a(_, {
67
67
  key: 0,
68
- "is-disabled": e.value?.isLoading,
69
68
  variant: "danger",
70
69
  icon: "trash-can-outline",
71
70
  label: "Delete",
72
- size: "sm",
73
- "aria-describedby": "tooltip"
71
+ "aria-describedby": "tooltip",
72
+ "is-disabled": e.value?.isLoading
74
73
  }, null, 8, ["is-disabled"])) : d("", !0)
75
74
  ]),
76
75
  _: 1
@@ -78,14 +77,13 @@ const $ = {
78
77
  c(_, {
79
78
  variant: "success",
80
79
  icon: "save",
80
+ label: "Save",
81
+ "is-disabled": e.value?.isLoading,
81
82
  class: b({
82
83
  "ml-auto": !e.value?.isEditing
83
84
  }),
84
- size: "sm",
85
- label: "Save",
86
- "is-disabled": e.value?.isLoading,
87
85
  onClick: t[3] || (t[3] = () => e.value?.save())
88
- }, null, 8, ["class", "is-disabled"])
86
+ }, null, 8, ["is-disabled", "class"])
89
87
  ]),
90
88
  default: n(() => [
91
89
  s.value ? (l(), a(N(s.value.component), {
@@ -1,5 +1,5 @@
1
- import { _ as p } from "./Popconfirm.vue_vue_type_script_setup_true_lang-CGs37-Nn.js";
2
- import { p as m } from "./plugin-CX1WsfRO.js";
1
+ import { _ as p } from "./Popconfirm.vue_vue_type_script_setup_true_lang-BNpLdXq7.js";
2
+ import { p as m } from "./plugin-Bt6de9ZA.js";
3
3
  export {
4
4
  p as Popconfirm,
5
5
  m as PopconfirmPlugin
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as b, ref as g, resolveComponent as t, openBlock as k, createBlock as y, withCtx as r, createElementVNode as o, createVNode as n, toDisplayString as P, renderSlot as w } from "vue";
2
- import { E as h } from "./ui-D3dPdT4S.js";
2
+ import { E as h } from "./ui-BC6H9E93.js";
3
3
  const z = { class: "text-sm mb-6 inline-flex items-center" }, B = { class: "color-text" }, E = { class: "flex justify-end gap-2" }, O = /* @__PURE__ */ b({
4
4
  name: "TPopconfirm",
5
5
  __name: "Popconfirm",
package/dist/Popover.js CHANGED
@@ -1,5 +1,5 @@
1
- import { _ as p } from "./Popover.vue_vue_type_script_setup_true_lang-B1brEdFx.js";
2
- import { p as P } from "./plugin-JgFOdNjC.js";
1
+ import { _ as p } from "./Popover.vue_vue_type_script_setup_true_lang-B4Polh2y.js";
2
+ import { p as P } from "./plugin-Dp-F27SY.js";
3
3
  export {
4
4
  p as Popover,
5
5
  P as PopoverPlugin
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as tt, useSlots as gt, ref as Ee, onBeforeMount as yt, onMounted as bt, onBeforeUnmount as wt, openBlock as Ae, createElementBlock as ze, createBlock as xt, withCtx as Ot, renderSlot as Ie, createCommentVNode as Xe, normalizeClass as Et, normalizeProps as At, guardReactiveProps as Pt } from "vue";
2
2
  import { u as Ct } from "./useDomHelpers-5CFMo6bx.js";
3
- import { d as Bt, E as Rt } from "./ui-D3dPdT4S.js";
3
+ import { d as Bt, E as Rt } from "./ui-BC6H9E93.js";
4
4
  import { u as kt } from "./useRender-D8PeooXE.js";
5
5
  var k = "top", L = "bottom", S = "right", D = "left", Be = "auto", fe = [k, L, S, D], Q = "start", ie = "end", Dt = "clippingParents", rt = "viewport", ne = "popper", $t = "reference", Ye = /* @__PURE__ */ fe.reduce(function(e, t) {
6
6
  return e.concat([t + "-" + Q, t + "-" + ie]);
@@ -1,10 +1,10 @@
1
1
  import './ProgressLine.css';
2
- import { defineComponent as d, ref as c, watch as u, computed as h, openBlock as t, createElementBlock as l, normalizeClass as s, createElementVNode as a, renderSlot as f, toDisplayString as p, createCommentVNode as g } from "vue";
3
- import { _ as v } from "./_plugin-vue_export-helper-CHgC5LLL.js";
4
- const m = { class: "flex items-center" }, _ = ["height"], C = ["rx", "fill"], b = ["width", "rx", "fill"], k = {
2
+ import { defineComponent as d, ref as u, watch as c, computed as h, openBlock as o, createElementBlock as l, normalizeClass as t, createElementVNode as s, renderSlot as f, toDisplayString as v, createCommentVNode as p } from "vue";
3
+ import { _ as g } from "./_plugin-vue_export-helper-CHgC5LLL.js";
4
+ const m = ["aria-valuenow"], _ = ["height"], C = ["rx", "fill"], b = ["width", "rx", "fill"], w = {
5
5
  key: 1,
6
6
  class: "text-sm"
7
- }, w = /* @__PURE__ */ d({
7
+ }, x = /* @__PURE__ */ d({
8
8
  name: "TProgressLine",
9
9
  __name: "ProgressLine",
10
10
  props: {
@@ -20,43 +20,49 @@ const m = { class: "flex items-center" }, _ = ["height"], C = ["rx", "fill"], b
20
20
  backgroundColor: { default: "var(--caipira-tertiary)" }
21
21
  },
22
22
  setup(i) {
23
- const e = i, o = c(0);
24
- u(
23
+ const e = i, a = u(0);
24
+ c(
25
25
  () => e.value,
26
26
  (r) => {
27
- r && (o.value = Math.round(r));
27
+ r && (a.value = Math.round(r));
28
28
  },
29
29
  { immediate: !0 }
30
30
  );
31
- const n = h(() => o.value === 100 ? e.finishedColor : o.value > 100 ? e.overColor : e.progressColor);
32
- return (r, x) => (t(), l("div", m, [
33
- (t(), l("svg", {
31
+ const n = h(() => a.value === 100 ? e.finishedColor : a.value > 100 ? e.overColor : e.progressColor);
32
+ return (r, k) => (o(), l("div", {
33
+ class: "flex items-center",
34
+ role: "progressbar",
35
+ "aria-valuemax": "100",
36
+ "aria-valuemin": "0",
37
+ "aria-valuenow": a.value
38
+ }, [
39
+ (o(), l("svg", {
34
40
  width: "100%",
35
41
  height: e.height,
36
- class: s(["inline-block flex-grow", e.svgClass])
42
+ class: t(["inline-block flex-grow", e.svgClass])
37
43
  }, [
38
- a("rect", {
44
+ s("rect", {
39
45
  width: "100%",
40
46
  height: "100%",
41
47
  rx: e.borderRadius,
42
48
  fill: e.backgroundColor
43
49
  }, null, 8, C),
44
- a("rect", {
50
+ s("rect", {
45
51
  height: "100%",
46
52
  width: `${e.value}%`,
47
53
  rx: e.borderRadius,
48
54
  fill: n.value
49
55
  }, null, 8, b)
50
56
  ], 10, _)),
51
- e.showPercentage ? (t(), l("div", {
57
+ e.showPercentage ? (o(), l("div", {
52
58
  key: 0,
53
- class: s(["flex-none ml-2", r.labelClass])
59
+ class: t(["flex-none ml-2", r.labelClass])
54
60
  }, [
55
- r.$slots.label ? f(r.$slots, "label", { key: 0 }, void 0, !0) : (t(), l("span", k, p(o.value) + "% ", 1))
56
- ], 2)) : g("", !0)
57
- ]));
61
+ r.$slots.label ? f(r.$slots, "label", { key: 0 }, void 0, !0) : (o(), l("span", w, v(a.value) + "% ", 1))
62
+ ], 2)) : p("", !0)
63
+ ], 8, m));
58
64
  }
59
- }), B = /* @__PURE__ */ v(w, [["__scopeId", "data-v-4e5ba132"]]);
65
+ }), B = /* @__PURE__ */ g(x, [["__scopeId", "data-v-e2eba543"]]);
60
66
  export {
61
67
  B as P
62
68
  };
@@ -1 +1 @@
1
- svg rect[data-v-4e5ba132]{transition:width .3s linear}
1
+ svg rect[data-v-e2eba543]{transition:width .3s linear}
@@ -1,5 +1,5 @@
1
- import { P as o } from "./ProgressLine-1ZHGvPsm.js";
2
- import { p as P } from "./plugin-BRY5cGCc.js";
1
+ import { P as o } from "./ProgressLine-B_Teev3n.js";
2
+ import { p as P } from "./plugin-xaGfuM5Z.js";
3
3
  export {
4
4
  o as ProgressLine,
5
5
  P as ProgressLinePlugin
@@ -1,7 +1,7 @@
1
1
  import './Table.css';
2
2
  import { defineComponent as z, useSlots as O, ref as b, reactive as L, computed as w, resolveComponent as S, openBlock as a, createElementBlock as s, createElementVNode as y, unref as g, normalizeClass as d, createCommentVNode as p, createVNode as D, Fragment as h, renderList as x, toDisplayString as B, createBlock as M, renderSlot as E, createTextVNode as F, pushScopeId as P, popScopeId as q } from "vue";
3
3
  import { _ as G } from "./_plugin-vue_export-helper-CHgC5LLL.js";
4
- const J = (v) => (P("data-v-e24c44aa"), v = v(), q(), v), Q = { class: "min-w-full relative color-text" }, W = ["onClick"], X = { class: "flex items-center" }, Y = {
4
+ const J = (f) => (P("data-v-a29223b6"), f = f(), q(), f), Q = { class: "min-w-full relative color-text" }, W = ["onClick"], X = { class: "flex items-center" }, Y = {
5
5
  key: 0,
6
6
  class: "animate-pulse"
7
7
  }, Z = /* @__PURE__ */ J(() => /* @__PURE__ */ y("div", { class: "h-4 bg-gray-100 my-1 mx-2 dark:bg-neutral-800 rounded" }, null, -1)), ee = [
@@ -24,8 +24,8 @@ const J = (v) => (P("data-v-e24c44aa"), v = v(), q(), v), Q = { class: "min-w-fu
24
24
  tableDataClass: { default: "px-2 py-2" }
25
25
  },
26
26
  emits: ["selected", "row-click"],
27
- setup(v, { expose: I, emit: T }) {
28
- const e = v, k = T, _ = O(), u = b(!1), n = b({}), f = b({}), C = b(!1), m = b(!1), i = L({}), R = (t) => {
27
+ setup(f, { expose: I, emit: T }) {
28
+ const e = f, k = T, _ = O(), u = b(!1), n = b({}), v = b({}), C = b(!1), m = b(!1), i = L({}), R = (t) => {
29
29
  t.stopPropagation();
30
30
  }, U = w(() => e.columns.length + (e.selectable ? 1 : 0) + (_.details ? 1 : 0) + 1), K = () => {
31
31
  let t = 0, r = 0;
@@ -53,7 +53,7 @@ const J = (v) => (P("data-v-e24c44aa"), v = v(), q(), v), Q = { class: "min-w-fu
53
53
  clearSelection: A,
54
54
  inSelectionMode: C
55
55
  }), (t, r) => {
56
- const c = S("t-input-checkbox"), j = S("t-icon-button");
56
+ const c = S("t-input-checkbox"), j = S("t-button");
57
57
  return a(), s("table", Q, [
58
58
  y("thead", null, [
59
59
  y("tr", null, [
@@ -105,11 +105,12 @@ const J = (v) => (P("data-v-e24c44aa"), v = v(), q(), v), Q = { class: "min-w-fu
105
105
  y("div", X, [
106
106
  "hasDetails" in l && l.hasDetails ? (a(), M(j, {
107
107
  key: 0,
108
- modelValue: f.value[l[e.rowKey]],
109
- "onUpdate:modelValue": (o) => f.value[l[e.rowKey]] = o,
110
- size: "sm",
111
- icon: f.value[l[e.rowKey]] ? "chevron-down" : "chevron-right",
112
- onClick: (o) => f.value[l[e.rowKey]] = !f.value[l[e.rowKey]]
108
+ modelValue: v.value[l[e.rowKey]],
109
+ "onUpdate:modelValue": (o) => v.value[l[e.rowKey]] = o,
110
+ variant: "transparent",
111
+ size: "",
112
+ icon: v.value[l[e.rowKey]] ? "chevron-down" : "chevron-right",
113
+ onClick: (o) => v.value[l[e.rowKey]] = !v.value[l[e.rowKey]]
113
114
  }, null, 8, ["modelValue", "onUpdate:modelValue", "icon", "onClick"])) : p("", !0)
114
115
  ])
115
116
  ], 2)) : p("", !0),
@@ -138,7 +139,7 @@ const J = (v) => (P("data-v-e24c44aa"), v = v(), q(), v), Q = { class: "min-w-fu
138
139
  ], 64)) : p("", !0)
139
140
  ], 2))), 256))
140
141
  ], 10, W),
141
- g(_).details && f.value[l[e.rowKey]] ? (a(), s("tr", te, [
142
+ g(_).details && v.value[l[e.rowKey]] ? (a(), s("tr", te, [
142
143
  y("td", { colspan: U.value }, [
143
144
  E(t.$slots, "details", { row: l }, void 0, !0)
144
145
  ], 8, le)
@@ -148,7 +149,7 @@ const J = (v) => (P("data-v-e24c44aa"), v = v(), q(), v), Q = { class: "min-w-fu
148
149
  ]);
149
150
  };
150
151
  }
151
- }), re = /* @__PURE__ */ G(ae, [["__scopeId", "data-v-e24c44aa"]]);
152
+ }), re = /* @__PURE__ */ G(ae, [["__scopeId", "data-v-a29223b6"]]);
152
153
  export {
153
154
  re as T
154
155
  };
package/dist/Table.css CHANGED
@@ -1 +1 @@
1
- table>thead>tr[data-v-e24c44aa]{border-top:1px solid var(--border-color)}table th[data-v-e24c44aa],table td[data-v-e24c44aa]{border-bottom:1px solid var(--border-color)}
1
+ table>thead>tr[data-v-a29223b6]{border-top:1px solid var(--border-color)}table th[data-v-a29223b6],table td[data-v-a29223b6]{border-bottom:1px solid var(--border-color)}
package/dist/Table.js CHANGED
@@ -1,5 +1,5 @@
1
- import { T as o } from "./Table-grkQ9tby.js";
2
- import { p as l } from "./plugin-BCt5Fd1Y.js";
1
+ import { T as o } from "./Table-CYnCf_CG.js";
2
+ import { p as l } from "./plugin-BOTI2tkp.js";
3
3
  export {
4
4
  o as Table,
5
5
  l as TablePlugin
package/dist/Tag.js CHANGED
@@ -1,5 +1,5 @@
1
- import { _ as r } from "./Tag.vue_vue_type_script_setup_true_lang-BohgPbhp.js";
2
- import { p } from "./plugin-DXEt6BIK.js";
1
+ import { _ as r } from "./Tag.vue_vue_type_script_setup_true_lang-D-yGH5I5.js";
2
+ import { p } from "./plugin-Cg_Ls0OX.js";
3
3
  export {
4
4
  r as Tag,
5
5
  p as TagPlugin