@caipira/tamandua 0.0.57 → 0.0.59

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 (50) hide show
  1. package/dist/Avatar.js +2 -2
  2. package/dist/{Avatar.vue_vue_type_script_setup_true_lang-D7NdR9hu.js → Avatar.vue_vue_type_script_setup_true_lang-BbcM5CB3.js} +1 -1
  3. package/dist/{Button-A0bEGvjL.js → Button-uTiKL1_J.js} +2 -2
  4. package/dist/Button.js +2 -2
  5. package/dist/ChartTreemap.js +2 -2
  6. package/dist/ChartTreemap.vue_vue_type_script_setup_true_lang-C5rtKK6M.js +309 -0
  7. package/dist/GraphyPrice.js +2 -2
  8. package/dist/{GraphyPrice.vue_vue_type_script_setup_true_lang-BDYxfzF6.js → GraphyPrice.vue_vue_type_script_setup_true_lang-DI2x-MAS.js} +1 -1
  9. package/dist/Icon.js +2 -2
  10. package/dist/{Icon.vue_vue_type_script_setup_true_lang-C2QvF2xM.js → Icon.vue_vue_type_script_setup_true_lang-CDJweTzy.js} +1 -1
  11. package/dist/InputSelect.js +2 -2
  12. package/dist/{InputSelect.vue_vue_type_script_setup_true_lang-Hhni6iWH.js → InputSelect.vue_vue_type_script_setup_true_lang-DgMRjecc.js} +1 -1
  13. package/dist/Link.js +2 -2
  14. package/dist/{Link.vue_vue_type_script_setup_true_lang-BE-Gh_jJ.js → Link.vue_vue_type_script_setup_true_lang-DIzaFPvW.js} +1 -1
  15. package/dist/Popconfirm.js +2 -2
  16. package/dist/{Popconfirm.vue_vue_type_script_setup_true_lang-D67BalwA.js → Popconfirm.vue_vue_type_script_setup_true_lang-CQJc0gL_.js} +1 -1
  17. package/dist/Popover.js +2 -2
  18. package/dist/Popover.vue_vue_type_script_setup_true_lang-MaJDdAe0.js +71 -0
  19. package/dist/Tag.js +2 -2
  20. package/dist/{Tag.vue_vue_type_script_setup_true_lang-ChaIzjzP.js → Tag.vue_vue_type_script_setup_true_lang-D7gxjn91.js} +1 -1
  21. package/dist/Toast.js +2 -2
  22. package/dist/{Toast.vue_vue_type_script_setup_true_lang--bDaVOod.js → Toast.vue_vue_type_script_setup_true_lang-xJF3jtka.js} +1 -1
  23. package/dist/components.js +11 -11
  24. package/dist/date.js +74 -66
  25. package/dist/enums.js +1 -1
  26. package/dist/floating-ui.vue-B5QcGNjh.js +1018 -0
  27. package/dist/{plugin-BShPzL82.js → plugin-6ziw5jJj.js} +1 -1
  28. package/dist/{plugin-BE_a-6l3.js → plugin-B6qqYLZU.js} +1 -1
  29. package/dist/{plugin-D4x3uASg.js → plugin-BHLqWB9f.js} +1 -1
  30. package/dist/{plugin-CEByTREY.js → plugin-Bw-AW29_.js} +1 -1
  31. package/dist/{plugin-CdotHNi-.js → plugin-CGCl2Tuy.js} +1 -1
  32. package/dist/{plugin-BcpHjv9l.js → plugin-D3ADZgWc.js} +1 -1
  33. package/dist/{plugin-DNwjBl_u.js → plugin-DqD4mnko.js} +1 -1
  34. package/dist/{plugin-BfJHkHAS.js → plugin-TONwKALZ.js} +1 -1
  35. package/dist/{plugin-CGE6W117.js → plugin-aR9suX-A.js} +1 -1
  36. package/dist/{plugin-DyFQY_0q.js → plugin-fGlPPiqA.js} +1 -1
  37. package/dist/{plugin-DKFvNBEz.js → plugin-hcORPz_I.js} +1 -1
  38. package/dist/{plugins-UNYdIrpm.js → plugins-Bq2A0z18.js} +20 -20
  39. package/dist/plugins.js +20 -20
  40. package/dist/tamandua.js +1 -1
  41. package/dist/types/components/ChartTreemap/ChartTreemap.story.d.ts +8 -3
  42. package/dist/types/components/ChartTreemap/ChartTreemap.vue.d.ts +6 -1
  43. package/dist/types/components/ChartTreemap/types.d.ts +4 -3
  44. package/dist/types/components/InputSelect/InputSelect.vue.d.ts +9 -9
  45. package/dist/types/components/Popover/Popover.vue.d.ts +9 -9
  46. package/dist/types/services/date.d.ts +3 -3
  47. package/dist/{ui-J-lhC9qd.js → ui-BSiRZzeZ.js} +2 -2
  48. package/package.json +1 -1
  49. package/dist/ChartTreemap.vue_vue_type_script_setup_true_lang-DzIPutlk.js +0 -280
  50. package/dist/Popover.vue_vue_type_script_setup_true_lang-DP4SOSib.js +0 -987
package/dist/Avatar.js CHANGED
@@ -1,5 +1,5 @@
1
- import { _ as o } from "./Avatar.vue_vue_type_script_setup_true_lang-D7NdR9hu.js";
2
- import { p } from "./plugin-DNwjBl_u.js";
1
+ import { _ as o } from "./Avatar.vue_vue_type_script_setup_true_lang-BbcM5CB3.js";
2
+ import { p } from "./plugin-DqD4mnko.js";
3
3
  export {
4
4
  o as Avatar,
5
5
  p as AvatarPlugin
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as c, computed as d, resolveComponent as m, openBlock as a, createElementBlock as o, normalizeClass as u, unref as t, createBlock as p, toDisplayString as f, createCommentVNode as h } from "vue";
2
- import { a as l, b as i } from "./ui-J-lhC9qd.js";
2
+ import { a as l, b as i } from "./ui-BSiRZzeZ.js";
3
3
  const _ = ["role"], y = ["src"], S = { key: 2 }, w = /* @__PURE__ */ c({
4
4
  name: "TAvatar",
5
5
  __name: "Avatar",
@@ -1,8 +1,8 @@
1
1
  import './Button.css';
2
2
  import { defineComponent as _, useSlots as z, ref as v, computed as c, 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
- import { c as i, a as t, b as d, B as r } from "./ui-J-lhC9qd.js";
3
+ import { d as i, a as t, b as d, B as r } from "./ui-BSiRZzeZ.js";
4
4
  import { g as b } from "./index-CVD_wAsU.js";
5
- import "./Icon.vue_vue_type_script_setup_true_lang-C2QvF2xM.js";
5
+ import "./Icon.vue_vue_type_script_setup_true_lang-CDJweTzy.js";
6
6
  import { _ as O } from "./_plugin-vue_export-helper-CHgC5LLL.js";
7
7
  const W = ["multiple"], V = /* @__PURE__ */ _({
8
8
  name: "TButton",
package/dist/Button.js CHANGED
@@ -1,5 +1,5 @@
1
- import { B as r } from "./Button-A0bEGvjL.js";
2
- import { p } from "./plugin-BcpHjv9l.js";
1
+ import { B as r } from "./Button-uTiKL1_J.js";
2
+ import { p } from "./plugin-D3ADZgWc.js";
3
3
  export {
4
4
  r as Button,
5
5
  p as ButtonPlugin
@@ -1,5 +1,5 @@
1
- import { _ as e } from "./ChartTreemap.vue_vue_type_script_setup_true_lang-DzIPutlk.js";
2
- import { p as m } from "./plugin-D4x3uASg.js";
1
+ import { _ as e } from "./ChartTreemap.vue_vue_type_script_setup_true_lang-C5rtKK6M.js";
2
+ import { p as m } from "./plugin-BHLqWB9f.js";
3
3
  export {
4
4
  e as ChartTreemap,
5
5
  m as ChartTreemapPlugin
@@ -0,0 +1,309 @@
1
+ import { defineComponent as z, ref as M, onMounted as D, openBlock as C, createElementBlock as I, Fragment as R, createElementVNode as T, normalizeStyle as V, unref as E, renderSlot as L, createTextVNode as O, toDisplayString as F } from "vue";
2
+ import { r as H, s as q } from "./transform-DSaNEFMr.js";
3
+ import { u as P, o as W, c as X } from "./floating-ui.vue-B5QcGNjh.js";
4
+ function Y(e) {
5
+ var t = 0, r = e.children, a = r && r.length;
6
+ if (!a)
7
+ t = 1;
8
+ else
9
+ for (; --a >= 0; )
10
+ t += r[a].value;
11
+ e.value = t;
12
+ }
13
+ function j() {
14
+ return this.eachAfter(Y);
15
+ }
16
+ function Z(e, t) {
17
+ let r = -1;
18
+ for (const a of this)
19
+ e.call(t, a, ++r, this);
20
+ return this;
21
+ }
22
+ function G(e, t) {
23
+ for (var r = this, a = [r], o, i, u = -1; r = a.pop(); )
24
+ if (e.call(t, r, ++u, this), o = r.children)
25
+ for (i = o.length - 1; i >= 0; --i)
26
+ a.push(o[i]);
27
+ return this;
28
+ }
29
+ function J(e, t) {
30
+ for (var r = this, a = [r], o = [], i, u, l, d = -1; r = a.pop(); )
31
+ if (o.push(r), i = r.children)
32
+ for (u = 0, l = i.length; u < l; ++u)
33
+ a.push(i[u]);
34
+ for (; r = o.pop(); )
35
+ e.call(t, r, ++d, this);
36
+ return this;
37
+ }
38
+ function K(e, t) {
39
+ let r = -1;
40
+ for (const a of this)
41
+ if (e.call(t, a, ++r, this))
42
+ return a;
43
+ }
44
+ function Q(e) {
45
+ return this.eachAfter(function(t) {
46
+ for (var r = +e(t.data) || 0, a = t.children, o = a && a.length; --o >= 0; )
47
+ r += a[o].value;
48
+ t.value = r;
49
+ });
50
+ }
51
+ function U(e) {
52
+ return this.eachBefore(function(t) {
53
+ t.children && t.children.sort(e);
54
+ });
55
+ }
56
+ function ee(e) {
57
+ for (var t = this, r = te(t, e), a = [t]; t !== r; )
58
+ t = t.parent, a.push(t);
59
+ for (var o = a.length; e !== r; )
60
+ a.splice(o, 0, e), e = e.parent;
61
+ return a;
62
+ }
63
+ function te(e, t) {
64
+ if (e === t)
65
+ return e;
66
+ var r = e.ancestors(), a = t.ancestors(), o = null;
67
+ for (e = r.pop(), t = a.pop(); e === t; )
68
+ o = e, e = r.pop(), t = a.pop();
69
+ return o;
70
+ }
71
+ function ne() {
72
+ for (var e = this, t = [e]; e = e.parent; )
73
+ t.push(e);
74
+ return t;
75
+ }
76
+ function re() {
77
+ return Array.from(this);
78
+ }
79
+ function ae() {
80
+ var e = [];
81
+ return this.eachBefore(function(t) {
82
+ t.children || e.push(t);
83
+ }), e;
84
+ }
85
+ function ie() {
86
+ var e = this, t = [];
87
+ return e.each(function(r) {
88
+ r !== e && t.push({ source: r.parent, target: r });
89
+ }), t;
90
+ }
91
+ function* oe() {
92
+ var e = this, t, r = [e], a, o, i;
93
+ do
94
+ for (t = r.reverse(), r = []; e = t.pop(); )
95
+ if (yield e, a = e.children)
96
+ for (o = 0, i = a.length; o < i; ++o)
97
+ r.push(a[o]);
98
+ while (r.length);
99
+ }
100
+ function N(e, t) {
101
+ e instanceof Map ? (e = [void 0, e], t === void 0 && (t = fe)) : t === void 0 && (t = le);
102
+ for (var r = new $(e), a, o = [r], i, u, l, d; a = o.pop(); )
103
+ if ((u = t(a.data)) && (d = (u = Array.from(u)).length))
104
+ for (a.children = u, l = d - 1; l >= 0; --l)
105
+ o.push(i = u[l] = new $(u[l])), i.parent = a, i.depth = a.depth + 1;
106
+ return r.eachBefore(ce);
107
+ }
108
+ function ue() {
109
+ return N(this).eachBefore(se);
110
+ }
111
+ function le(e) {
112
+ return e.children;
113
+ }
114
+ function fe(e) {
115
+ return Array.isArray(e) ? e[1] : null;
116
+ }
117
+ function se(e) {
118
+ e.data.value !== void 0 && (e.value = e.data.value), e.data = e.data.data;
119
+ }
120
+ function ce(e) {
121
+ var t = 0;
122
+ do
123
+ e.height = t;
124
+ while ((e = e.parent) && e.height < ++t);
125
+ }
126
+ function $(e) {
127
+ this.data = e, this.depth = this.height = 0, this.parent = null;
128
+ }
129
+ $.prototype = N.prototype = {
130
+ constructor: $,
131
+ count: j,
132
+ each: Z,
133
+ eachAfter: J,
134
+ eachBefore: G,
135
+ find: K,
136
+ sum: Q,
137
+ sort: U,
138
+ path: ee,
139
+ ancestors: ne,
140
+ descendants: re,
141
+ leaves: ae,
142
+ links: ie,
143
+ copy: ue,
144
+ [Symbol.iterator]: oe
145
+ };
146
+ function de(e) {
147
+ if (typeof e != "function")
148
+ throw new Error();
149
+ return e;
150
+ }
151
+ function x() {
152
+ return 0;
153
+ }
154
+ function A(e) {
155
+ return function() {
156
+ return e;
157
+ };
158
+ }
159
+ function he(e) {
160
+ e.x0 = Math.round(e.x0), e.y0 = Math.round(e.y0), e.x1 = Math.round(e.x1), e.y1 = Math.round(e.y1);
161
+ }
162
+ function pe(e, t, r, a, o) {
163
+ for (var i = e.children, u, l = -1, d = i.length, m = e.value && (a - t) / e.value; ++l < d; )
164
+ u = i[l], u.y0 = r, u.y1 = o, u.x0 = t, u.x1 = t += u.value * m;
165
+ }
166
+ function ge(e, t, r, a, o) {
167
+ for (var i = e.children, u, l = -1, d = i.length, m = e.value && (o - r) / e.value; ++l < d; )
168
+ u = i[l], u.x0 = t, u.x1 = a, u.y0 = r, u.y1 = r += u.value * m;
169
+ }
170
+ var ve = (1 + Math.sqrt(5)) / 2;
171
+ function me(e, t, r, a, o, i) {
172
+ for (var u = [], l = t.children, d, m, f = 0, y = 0, n = l.length, g, v, c = t.value, s, p, w, _, S, k, b; f < n; ) {
173
+ g = o - r, v = i - a;
174
+ do
175
+ s = l[y++].value;
176
+ while (!s && y < n);
177
+ for (p = w = s, k = Math.max(v / g, g / v) / (c * e), b = s * s * k, S = Math.max(w / b, b / p); y < n; ++y) {
178
+ if (s += m = l[y].value, m < p && (p = m), m > w && (w = m), b = s * s * k, _ = Math.max(w / b, b / p), _ > S) {
179
+ s -= m;
180
+ break;
181
+ }
182
+ S = _;
183
+ }
184
+ u.push(d = { value: s, dice: g < v, children: l.slice(f, y) }), d.dice ? pe(d, r, a, o, c ? a += v * s / c : i) : ge(d, r, a, c ? r += g * s / c : o, i), c -= s, f = y;
185
+ }
186
+ return u;
187
+ }
188
+ const ye = function e(t) {
189
+ function r(a, o, i, u, l) {
190
+ me(t, a, o, i, u, l);
191
+ }
192
+ return r.ratio = function(a) {
193
+ return e((a = +a) > 1 ? a : 1);
194
+ }, r;
195
+ }(ve);
196
+ function be() {
197
+ var e = ye, t = !1, r = 1, a = 1, o = [0], i = x, u = x, l = x, d = x, m = x;
198
+ function f(n) {
199
+ return n.x0 = n.y0 = 0, n.x1 = r, n.y1 = a, n.eachBefore(y), o = [0], t && n.eachBefore(he), n;
200
+ }
201
+ function y(n) {
202
+ var g = o[n.depth], v = n.x0 + g, c = n.y0 + g, s = n.x1 - g, p = n.y1 - g;
203
+ s < v && (v = s = (v + s) / 2), p < c && (c = p = (c + p) / 2), n.x0 = v, n.y0 = c, n.x1 = s, n.y1 = p, n.children && (g = o[n.depth + 1] = i(n) / 2, v += m(n) - g, c += u(n) - g, s -= l(n) - g, p -= d(n) - g, s < v && (v = s = (v + s) / 2), p < c && (c = p = (c + p) / 2), e(n, v, c, s, p));
204
+ }
205
+ return f.round = function(n) {
206
+ return arguments.length ? (t = !!n, f) : t;
207
+ }, f.size = function(n) {
208
+ return arguments.length ? (r = +n[0], a = +n[1], f) : [r, a];
209
+ }, f.tile = function(n) {
210
+ return arguments.length ? (e = de(n), f) : e;
211
+ }, f.padding = function(n) {
212
+ return arguments.length ? f.paddingInner(n).paddingOuter(n) : f.paddingInner();
213
+ }, f.paddingInner = function(n) {
214
+ return arguments.length ? (i = typeof n == "function" ? n : A(+n), f) : i;
215
+ }, f.paddingOuter = function(n) {
216
+ return arguments.length ? f.paddingTop(n).paddingRight(n).paddingBottom(n).paddingLeft(n) : f.paddingTop();
217
+ }, f.paddingTop = function(n) {
218
+ return arguments.length ? (u = typeof n == "function" ? n : A(+n), f) : u;
219
+ }, f.paddingRight = function(n) {
220
+ return arguments.length ? (l = typeof n == "function" ? n : A(+n), f) : l;
221
+ }, f.paddingBottom = function(n) {
222
+ return arguments.length ? (d = typeof n == "function" ? n : A(+n), f) : d;
223
+ }, f.paddingLeft = function(n) {
224
+ return arguments.length ? (m = typeof n == "function" ? n : A(+n), f) : m;
225
+ }, f;
226
+ }
227
+ function we(e) {
228
+ for (var t = e.length / 6 | 0, r = new Array(t), a = 0; a < t; )
229
+ r[a] = "#" + e.slice(a * 6, ++a * 6);
230
+ return r;
231
+ }
232
+ const _e = (e) => H(e[e.length - 1]);
233
+ var ke = new Array(3).concat(
234
+ "fc8d59ffffbf99d594",
235
+ "d7191cfdae61abdda42b83ba",
236
+ "d7191cfdae61ffffbfabdda42b83ba",
237
+ "d53e4ffc8d59fee08be6f59899d5943288bd",
238
+ "d53e4ffc8d59fee08bffffbfe6f59899d5943288bd",
239
+ "d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd",
240
+ "d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd",
241
+ "9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2",
242
+ "9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2"
243
+ ).map(we);
244
+ const Be = _e(ke), Me = /* @__PURE__ */ T("svg", null, null, -1);
245
+ let xe = 0;
246
+ const $e = /* @__PURE__ */ z({
247
+ name: "TChartTreemap",
248
+ __name: "ChartTreemap",
249
+ props: {
250
+ data: {},
251
+ options: {}
252
+ },
253
+ setup(e) {
254
+ const t = e, r = `tamandua-chart-treemap-${++xe}`, a = M(0), o = M(0), i = M(), u = M(), l = M(), { floatingStyles: d, update: m } = P(u, i, {
255
+ middleware: [W(10), X()]
256
+ }), f = (c) => {
257
+ l.value = c;
258
+ }, y = () => {
259
+ !i.value || i.value.style.display === "none" || (i.value.style.display = "none");
260
+ }, n = () => {
261
+ !i.value || i.value.style.display === "block" || (i.value.style.display = "block");
262
+ }, g = (c) => {
263
+ a.value = c.pageX, o.value = c.pageY, m();
264
+ }, v = () => {
265
+ const s = parseInt(
266
+ q(`div#${r}`).style("width"),
267
+ 10
268
+ ), p = 350, w = q(`div#${r} svg`).attr("width", s).attr("height", p).append("g"), _ = N(t.data).sum((h) => h?.value ?? 0).sort(
269
+ (h, B) => (B.value ?? 0) - (h.value ?? 0)
270
+ ), k = be().size([s, p]).padding(1)(_), b = Be;
271
+ w.selectAll("rect").data(k.leaves()).enter().append("rect").attr("x", (h) => h.x0).attr("y", (h) => h.y0).attr("width", (h) => h.x1 - h.x0).attr("height", (h) => h.y1 - h.y0).attr("fill", (h, B) => h.data.color ? h.data.color : h.parent?.data?.color ? h.parent?.data?.color : b(B / 7)).on("mouseover", (h, B) => f(B.data));
272
+ };
273
+ return D(() => {
274
+ v();
275
+ }), (c, s) => (C(), I(R, null, [
276
+ T("div", {
277
+ id: r,
278
+ class: "w-full",
279
+ onMousemove: g,
280
+ onMouseenter: n,
281
+ onMouseleave: y
282
+ }, [
283
+ Me,
284
+ T("div", {
285
+ ref_key: "reference",
286
+ ref: u,
287
+ class: "w-1 h-1 absolute",
288
+ style: V({
289
+ left: `${a.value}px`,
290
+ top: `${o.value}px`
291
+ })
292
+ }, null, 4)
293
+ ], 32),
294
+ T("div", {
295
+ ref_key: "tooltip",
296
+ ref: i,
297
+ style: V(E(d)),
298
+ class: "hidden absolute select-none bg-caipira-primary border-color text-base px-2 py-1 rounded-sm"
299
+ }, [
300
+ l.value?.tooltipSlot && c.$slots.hasOwnProperty(l.value.tooltipSlot) ? L(c.$slots, l.value.tooltipSlot, { key: 0 }) : (C(), I(R, { key: 1 }, [
301
+ O(F(l.value?.label), 1)
302
+ ], 64))
303
+ ], 4)
304
+ ], 64));
305
+ }
306
+ });
307
+ export {
308
+ $e as _
309
+ };
@@ -1,5 +1,5 @@
1
- import { _ as a } from "./GraphyPrice.vue_vue_type_script_setup_true_lang-BDYxfzF6.js";
2
- import { p as o } from "./plugin-CGE6W117.js";
1
+ import { _ as a } from "./GraphyPrice.vue_vue_type_script_setup_true_lang-DI2x-MAS.js";
2
+ import { p as o } from "./plugin-aR9suX-A.js";
3
3
  export {
4
4
  a as GraphyPrice,
5
5
  o as GraphyPricePlugin
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as c, reactive as p, watch as l, openBlock as s, createElementBlock as u, normalizeClass as m, unref as r, toDisplayString as v } from "vue";
2
- import { G as e } from "./ui-J-lhC9qd.js";
2
+ import { G as e } from "./ui-BSiRZzeZ.js";
3
3
  import { g as f } from "./index-CVD_wAsU.js";
4
4
  import { useI18n as y } from "vue-i18n";
5
5
  const _ = /* @__PURE__ */ c({
package/dist/Icon.js CHANGED
@@ -1,5 +1,5 @@
1
- import { _ as n } from "./Icon.vue_vue_type_script_setup_true_lang-C2QvF2xM.js";
2
- import { p as a } from "./plugin-BShPzL82.js";
1
+ import { _ as n } from "./Icon.vue_vue_type_script_setup_true_lang-CDJweTzy.js";
2
+ import { p as a } from "./plugin-6ziw5jJj.js";
3
3
  export {
4
4
  n as Icon,
5
5
  a as IconPlugin
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as u, ref as m, computed as p, watch as h, openBlock as f, createElementBlock as d, normalizeClass as b, unref as o, normalizeStyle as k } from "vue";
2
- import { a as t } from "./ui-J-lhC9qd.js";
2
+ import { a as t } from "./ui-BSiRZzeZ.js";
3
3
  const x = (n, i) => {
4
4
  const s = n[i];
5
5
  return s ? typeof s == "function" ? s() : Promise.resolve(s) : new Promise((r, e) => {
@@ -1,5 +1,5 @@
1
- import { _ as p } from "./InputSelect.vue_vue_type_script_setup_true_lang-Hhni6iWH.js";
2
- import { p as r } from "./plugin-DyFQY_0q.js";
1
+ import { _ as p } from "./InputSelect.vue_vue_type_script_setup_true_lang-DgMRjecc.js";
2
+ import { p as r } from "./plugin-fGlPPiqA.js";
3
3
  export {
4
4
  p as InputSelect,
5
5
  r as InputSelectPlugin
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as oe, mergeModels as O, useModel as ue, ref as p, computed as E, onBeforeMount as se, watch as I, resolveComponent as g, openBlock as i, createBlock as D, normalizeClass as x, withCtx as R, createElementVNode as K, createVNode as N, renderSlot as k, normalizeProps as _, mergeProps as z, createElementBlock as d, Fragment as V, renderList as U, guardReactiveProps as q, toDisplayString as G, createCommentVNode as M, withDirectives as ie, vModelText as re, createSlots as ce, createTextVNode as pe, nextTick as de } from "vue";
2
- import { a as fe, E as ve } from "./ui-J-lhC9qd.js";
2
+ import { a as fe, E as ve } from "./ui-BSiRZzeZ.js";
3
3
  const me = { key: 1 }, ye = ["placeholder", "disabled", "readonly"], he = {
4
4
  key: 0,
5
5
  class: "inline-flex w-full justify-between items-center"
package/dist/Link.js CHANGED
@@ -1,5 +1,5 @@
1
- import { _ as i } from "./Link.vue_vue_type_script_setup_true_lang-BE-Gh_jJ.js";
2
- import { p } from "./plugin-CEByTREY.js";
1
+ import { _ as i } from "./Link.vue_vue_type_script_setup_true_lang-DIzaFPvW.js";
2
+ import { p } from "./plugin-Bw-AW29_.js";
3
3
  export {
4
4
  i as Link,
5
5
  p as LinkPlugin
@@ -1,5 +1,5 @@
1
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
- import { L as a } from "./ui-J-lhC9qd.js";
2
+ import { L as a } from "./ui-BSiRZzeZ.js";
3
3
  const w = /* @__PURE__ */ p({
4
4
  name: "TLink",
5
5
  __name: "Link",
@@ -1,5 +1,5 @@
1
- import { _ as p } from "./Popconfirm.vue_vue_type_script_setup_true_lang-D67BalwA.js";
2
- import { p as m } from "./plugin-BfJHkHAS.js";
1
+ import { _ as p } from "./Popconfirm.vue_vue_type_script_setup_true_lang-CQJc0gL_.js";
2
+ import { p as m } from "./plugin-TONwKALZ.js";
3
3
  export {
4
4
  p as Popconfirm,
5
5
  m as PopconfirmPlugin
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as C, ref as x, resolveComponent as l, openBlock as b, createBlock as g, withCtx as m, renderSlot as k, normalizeProps as y, guardReactiveProps as P, createElementVNode as t, createVNode as a, toDisplayString as w } from "vue";
2
- import { E as z } from "./ui-J-lhC9qd.js";
2
+ import { E as z } from "./ui-BSiRZzeZ.js";
3
3
  const $ = { class: "text-sm mb-6 inline-flex items-center" }, B = { class: "color-text" }, E = { class: "flex justify-end gap-2" }, O = /* @__PURE__ */ C({
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-DP4SOSib.js";
2
- import { p as P } from "./plugin-DKFvNBEz.js";
1
+ import { _ as p } from "./Popover.vue_vue_type_script_setup_true_lang-MaJDdAe0.js";
2
+ import { p as P } from "./plugin-hcORPz_I.js";
3
3
  export {
4
4
  p as Popover,
5
5
  P as PopoverPlugin
@@ -0,0 +1,71 @@
1
+ import { defineComponent as E, mergeModels as b, useModel as M, ref as r, computed as u, onBeforeMount as P, onBeforeUnmount as _, openBlock as f, createElementBlock as d, renderSlot as m, normalizeProps as g, guardReactiveProps as v, normalizeStyle as z, unref as O, normalizeClass as R, createCommentVNode as T } from "vue";
2
+ import { u as x } from "./useDomHelpers-CGVrQd35.js";
3
+ import { c as S, E as $ } from "./ui-BSiRZzeZ.js";
4
+ import { o as L, s as W, a as U, u as j, b as A } from "./floating-ui.vue-B5QcGNjh.js";
5
+ let D = 0;
6
+ const K = /* @__PURE__ */ E({
7
+ name: "TPopover",
8
+ __name: "Popover",
9
+ props: /* @__PURE__ */ b({
10
+ trigger: { default: S.CLICK },
11
+ disabled: { type: Boolean, default: !1 },
12
+ placement: { default: $.BOTTOM },
13
+ slotWrapperClasses: { default: "rounded-lg" },
14
+ width: { default: "auto" }
15
+ }, {
16
+ open: { type: Boolean, default: !1 },
17
+ openModifiers: {}
18
+ }),
19
+ emits: ["update:open"],
20
+ setup(s, { expose: C }) {
21
+ const t = M(s, "open"), n = s, a = `popover_${++D}`, l = r(), y = u(() => n.placement), o = r(), { wasClickOutsideOfContainer: k } = x(), h = u(
22
+ () => o.value?.firstChild?.nextElementSibling
23
+ ), w = r([
24
+ L(1),
25
+ W({
26
+ apply({ elements: e }) {
27
+ if (n.width === "static")
28
+ return;
29
+ const c = e.reference.getBoundingClientRect();
30
+ Object.assign(e.floating.style, {
31
+ minWidth: `${c.width}px`
32
+ });
33
+ }
34
+ }),
35
+ U({ crossAxis: !0 })
36
+ ]), { floatingStyles: B } = j(h, l, {
37
+ open: t,
38
+ placement: y,
39
+ middleware: w,
40
+ whileElementsMounted: A
41
+ }), i = (e = !t.value) => {
42
+ t.value = e;
43
+ }, p = (e) => t.value && o.value && k(e, o.value) ? (t.value = !1, !1) : !0;
44
+ return P(() => {
45
+ document.addEventListener("click", p);
46
+ }), _(() => {
47
+ document.removeEventListener("click", p);
48
+ }), C({ name: a }), (e, c) => (f(), d("div", {
49
+ ref_key: "wrapperRef",
50
+ ref: o
51
+ }, [
52
+ m(e.$slots, "default", g(v({ onTogglePopover: i }))),
53
+ t.value ? (f(), d("div", {
54
+ key: 0,
55
+ ref_key: "floating",
56
+ ref: l,
57
+ role: "tooltip",
58
+ id: a,
59
+ style: z(O(B)),
60
+ class: R(["bg-caipira-primary z-10", {
61
+ [n.slotWrapperClasses]: !0
62
+ }])
63
+ }, [
64
+ m(e.$slots, "content", g(v({ onTogglePopover: i })))
65
+ ], 6)) : T("", !0)
66
+ ], 512));
67
+ }
68
+ });
69
+ export {
70
+ K as _
71
+ };
package/dist/Tag.js CHANGED
@@ -1,5 +1,5 @@
1
- import { _ as r } from "./Tag.vue_vue_type_script_setup_true_lang-ChaIzjzP.js";
2
- import { p } from "./plugin-CdotHNi-.js";
1
+ import { _ as r } from "./Tag.vue_vue_type_script_setup_true_lang-D7gxjn91.js";
2
+ import { p } from "./plugin-CGCl2Tuy.js";
3
3
  export {
4
4
  r as Tag,
5
5
  p as TagPlugin
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as _, resolveComponent as m, openBlock as l, createElementBlock as r, normalizeStyle as k, normalizeClass as p, createElementVNode as v, renderSlot as z, unref as s, toDisplayString as g, createBlock as u, withCtx as h, createVNode as B, createCommentVNode as S } from "vue";
2
- import { a as o } from "./ui-J-lhC9qd.js";
2
+ import { a as o } from "./ui-BSiRZzeZ.js";
3
3
  const b = ["role"], E = { class: "px-2" }, $ = { key: 0 }, N = /* @__PURE__ */ _({
4
4
  name: "TTag",
5
5
  __name: "Tag",
package/dist/Toast.js CHANGED
@@ -1,5 +1,5 @@
1
- import { _ as r } from "./Toast.vue_vue_type_script_setup_true_lang--bDaVOod.js";
2
- import { p as t } from "./plugin-BE_a-6l3.js";
1
+ import { _ as r } from "./Toast.vue_vue_type_script_setup_true_lang-xJF3jtka.js";
2
+ import { p as t } from "./plugin-B6qqYLZU.js";
3
3
  export {
4
4
  r as Toast,
5
5
  t as ToastPlugin
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as d, resolveComponent as x, openBlock as f, createElementBlock as g, normalizeClass as a, unref as _, createVNode as r, createElementVNode as w, toDisplayString as C } from "vue";
2
- import { E, T as t } from "./ui-J-lhC9qd.js";
2
+ import { E, T as t } from "./ui-BSiRZzeZ.js";
3
3
  const N = { class: "whitespace-nowrap overflow-x-hidden overflow-ellipsis max-w-2xl" }, h = /* @__PURE__ */ d({
4
4
  name: "TToast",
5
5
  __name: "Toast",
@@ -1,8 +1,8 @@
1
- import { _ as e } from "./Avatar.vue_vue_type_script_setup_true_lang-D7NdR9hu.js";
1
+ import { _ as e } from "./Avatar.vue_vue_type_script_setup_true_lang-BbcM5CB3.js";
2
2
  import { _ as a } from "./Backdrop.vue_vue_type_script_setup_true_lang-OaEBTmYK.js";
3
- import { B as s } from "./Button-A0bEGvjL.js";
3
+ import { B as s } from "./Button-uTiKL1_J.js";
4
4
  import { _ as f } from "./ChartLine.vue_vue_type_style_index_0_lang-DO_gKCe4.js";
5
- import { _ as n } from "./ChartTreemap.vue_vue_type_script_setup_true_lang-DzIPutlk.js";
5
+ import { _ as n } from "./ChartTreemap.vue_vue_type_script_setup_true_lang-C5rtKK6M.js";
6
6
  import { D as u } from "./Drawer-Cl9_4uHA.js";
7
7
  import { _ as l } from "./Dropdown.vue_vue_type_script_setup_true_lang-pjG__bX2.js";
8
8
  import { _ as c } from "./FileDrop.vue_vue_type_script_setup_true_lang-DLEH_LLX.js";
@@ -10,10 +10,10 @@ 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";
12
12
  import { _ as G } from "./GraphyLabel.vue_vue_type_script_setup_true_lang-n_0200p7.js";
13
- import { _ as g } from "./GraphyPrice.vue_vue_type_script_setup_true_lang-BDYxfzF6.js";
13
+ import { _ as g } from "./GraphyPrice.vue_vue_type_script_setup_true_lang-DI2x-MAS.js";
14
14
  import { _ as v } from "./GraphySubtitle.vue_vue_type_script_setup_true_lang-DsBHn2gS.js";
15
15
  import { _ as F } from "./GraphyTitle.vue_vue_type_script_setup_true_lang-DXnrZHV2.js";
16
- import { _ as B } from "./Icon.vue_vue_type_script_setup_true_lang-C2QvF2xM.js";
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
18
  import { _ as R } from "./InputCheckbox.vue_vue_type_style_index_0_lang-DnRqQiOj.js";
19
19
  import { _ as q } from "./InputCryptoCurrency.vue_vue_type_script_setup_true_lang-BIUT5eCh.js";
@@ -25,24 +25,24 @@ import { _ as W } from "./InputPhone.vue_vue_type_script_setup_true_lang-B4TULqL
25
25
  import { _ as Y } from "./InputPrice.vue_vue_type_script_setup_true_lang-C2wDVwnm.js";
26
26
  import { _ as $ } from "./InputRadio.vue_vue_type_style_index_0_lang-DusKEybQ.js";
27
27
  import "vue";
28
- import { _ as or } from "./InputSelect.vue_vue_type_script_setup_true_lang-Hhni6iWH.js";
28
+ import { _ as or } from "./InputSelect.vue_vue_type_script_setup_true_lang-DgMRjecc.js";
29
29
  import { _ as er } from "./InputSwitch.vue_vue_type_script_setup_true_lang-Q3wQlqfk.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-DRo5eIw4.js";
32
- import { _ as fr } from "./Link.vue_vue_type_script_setup_true_lang-BE-Gh_jJ.js";
32
+ import { _ as fr } from "./Link.vue_vue_type_script_setup_true_lang-DIzaFPvW.js";
33
33
  import { _ as nr } from "./Modal.vue_vue_type_script_setup_true_lang-CEaX1svl.js";
34
34
  import { _ as ur } from "./ModalForm.vue_vue_type_script_setup_true_lang-RfK0Mn81.js";
35
35
  import { _ as lr } from "./Pagination.vue_vue_type_script_setup_true_lang-Bgc3FPMU.js";
36
- import { _ as cr } from "./Popconfirm.vue_vue_type_script_setup_true_lang-D67BalwA.js";
37
- import { _ as Tr } from "./Popover.vue_vue_type_script_setup_true_lang-DP4SOSib.js";
36
+ import { _ as cr } from "./Popconfirm.vue_vue_type_script_setup_true_lang-CQJc0gL_.js";
37
+ import { _ as Tr } from "./Popover.vue_vue_type_script_setup_true_lang-MaJDdAe0.js";
38
38
  import { P as Cr } from "./ProgressCircle-Cpmi2CpO.js";
39
39
  import { P as br } from "./ProgressLine-bKh0terH.js";
40
40
  import { _ as Gr } from "./SensitiveInfo.vue_vue_type_script_setup_true_lang-lCdRDxvZ.js";
41
41
  import { _ as gr } from "./Skeleton.vue_vue_type_script_setup_true_lang-BZItfVoN.js";
42
42
  import { _ as vr } from "./Tab.vue_vue_type_script_setup_true_lang-Bk9igf63.js";
43
43
  import { T as Fr } from "./Table-C0Sr_Lfm.js";
44
- import { _ as Br } from "./Tag.vue_vue_type_script_setup_true_lang-ChaIzjzP.js";
45
- import { _ as Ar } from "./Toast.vue_vue_type_script_setup_true_lang--bDaVOod.js";
44
+ import { _ as Br } from "./Tag.vue_vue_type_script_setup_true_lang-D7gxjn91.js";
45
+ import { _ as Ar } from "./Toast.vue_vue_type_script_setup_true_lang-xJF3jtka.js";
46
46
  export {
47
47
  e as Avatar,
48
48
  a as Backdrop,