@caipira/tamandua 0.0.68 → 0.0.70

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 (40) hide show
  1. package/dist/Button.js +2 -2
  2. package/dist/{Button.vue_vue_type_script_setup_true_lang-DW0Q2Ut2.js → Button.vue_vue_type_script_setup_true_lang-BkK6idln.js} +1 -1
  3. package/dist/Form.js +2 -2
  4. package/dist/{Form.vue_vue_type_script_setup_true_lang-CNGNCak7.js → Form.vue_vue_type_script_setup_true_lang-s3wmU1NZ.js} +1 -1
  5. package/dist/FormItem.js +2 -2
  6. package/dist/FormItem.vue_vue_type_script_setup_true_lang-CInvGeMR.js +71 -0
  7. package/dist/Icon.js +2 -2
  8. package/dist/{Icon.vue_vue_type_script_setup_true_lang-C2QvF2xM.js → Icon.vue_vue_type_script_setup_true_lang-B74Viy_i.js} +1 -1
  9. package/dist/InputDate.js +2 -2
  10. package/dist/{InputDate.vue_vue_type_script_setup_true_lang-BUEAELkk.js → InputDate.vue_vue_type_script_setup_true_lang-CNmUyWG3.js} +3 -3
  11. package/dist/InputPassword.js +2 -2
  12. package/dist/{InputPassword.vue_vue_type_script_setup_true_lang-ChHDOnS8.js → InputPassword.vue_vue_type_script_setup_true_lang-CYcJ-agy.js} +1 -1
  13. package/dist/InputTextarea.js +2 -2
  14. package/dist/{InputTextarea.vue_vue_type_script_setup_true_lang-q9T4fINI.js → InputTextarea.vue_vue_type_script_setup_true_lang-C8f2hfeZ.js} +11 -11
  15. package/dist/Modal.js +2 -2
  16. package/dist/{Modal.vue_vue_type_script_setup_true_lang-BvUk8ebI.js → Modal.vue_vue_type_script_setup_true_lang-60BGY-iH.js} +21 -21
  17. package/dist/components.js +8 -8
  18. package/dist/date.js +252 -153
  19. package/dist/form2.js +1 -1
  20. package/dist/{format-BZx-8XXc.js → format-CNTeOuM7.js} +10 -8
  21. package/dist/index.css +18 -7
  22. package/dist/pause-circle-BMlgPlcn.js +5 -0
  23. package/dist/play-circle-LCrYDAxO.js +5 -0
  24. package/dist/{plugin-BShPzL82.js → plugin-4gYIxYVl.js} +1 -1
  25. package/dist/{plugin-3Ql4s0Jh.js → plugin-CBUyNiTn.js} +1 -1
  26. package/dist/{plugin-CvohbpUQ.js → plugin-CEsqY6D6.js} +1 -1
  27. package/dist/{plugin-DSHWwE9A.js → plugin-CLPYJfBT.js} +1 -1
  28. package/dist/{plugin-n_PnyR3n.js → plugin-CPpRqUnI.js} +1 -1
  29. package/dist/{plugin-C8Z-XgLn.js → plugin-Clp0zNY0.js} +1 -1
  30. package/dist/{plugin-CV_fI920.js → plugin-Dg5N4aqg.js} +1 -1
  31. package/dist/{plugin-BuU0zOfE.js → plugin-NrO_mAYp.js} +1 -1
  32. package/dist/{plugins-CEGTMSZE.js → plugins-CFTCb2K4.js} +11 -11
  33. package/dist/plugins.js +11 -11
  34. package/dist/{subMonths-XOke808J.js → subMonths-D17wKxDQ.js} +1 -1
  35. package/dist/tamandua.js +1 -1
  36. package/dist/{transformers-DowKEH_9.js → transformers-CrxkoXtN.js} +1 -1
  37. package/dist/types/components/FormItem/types.d.ts +1 -1
  38. package/dist/types/services/date.d.ts +2 -2
  39. package/package.json +1 -1
  40. package/dist/FormItem.vue_vue_type_script_setup_true_lang-D7a8YCgS.js +0 -64
package/dist/date.js CHANGED
@@ -1,133 +1,230 @@
1
- import { c as N, t as u, m as z, n as g, s as O, e as U, g as w, a as x, b as D, d as X } from "./format-BZx-8XXc.js";
2
- import { f as dt } from "./format-BZx-8XXc.js";
3
- import { b as ht, g as Dt, c as Mt, a as gt, s as Tt } from "./subMonths-XOke808J.js";
4
- function st(t, e, n) {
5
- return N(n?.in || t, +u(t) + e);
1
+ import { t as l, c as T, m as A, n as g, s as O, d as $, a as P, e as U, g as x, b as H, h as N, i as X } from "./format-CNTeOuM7.js";
2
+ import { f as Ht } from "./format-CNTeOuM7.js";
3
+ import { b as Z } from "./subMonths-D17wKxDQ.js";
4
+ import { g as St, c as Ct, a as bt, s as zt } from "./subMonths-D17wKxDQ.js";
5
+ function j(t, e, n) {
6
+ const r = l(t, n?.in);
7
+ return isNaN(e) ? T(n?.in || t, NaN) : (e && r.setDate(r.getDate() + e), r);
8
+ }
9
+ function I(t, e, n) {
10
+ const {
11
+ years: r = 0,
12
+ months: s = 0,
13
+ weeks: o = 0,
14
+ days: i = 0,
15
+ hours: a = 0,
16
+ minutes: c = 0,
17
+ seconds: f = 0
18
+ } = e, d = l(t, n?.in), D = s || r ? Z(d, s + r * 12) : d, u = i || o ? j(D, i + o * 7) : D, m = c + a * 60, M = (f + m * 60) * 1e3;
19
+ return T(n?.in || t, +u + M);
6
20
  }
7
- function ot(t, e, n) {
8
- const s = u(t, n?.in);
9
- return s.setTime(s.getTime() + e * z), s;
21
+ function yt(t, e, n) {
22
+ return T(n?.in || t, +l(t) + e);
10
23
  }
11
- function M(t, e) {
12
- const n = +u(t) - +u(e);
24
+ function It(t, e, n) {
25
+ const r = l(t, n?.in);
26
+ return r.setTime(r.getTime() + e * A), r;
27
+ }
28
+ function y(t, e) {
29
+ const n = +l(t) - +l(e);
13
30
  return n < 0 ? -1 : n > 0 ? 1 : n;
14
31
  }
15
- function C(t) {
16
- return N(t, Date.now());
32
+ function L(t) {
33
+ return T(t, Date.now());
34
+ }
35
+ function W(t, e, n) {
36
+ const [r, s] = g(
37
+ n?.in,
38
+ t,
39
+ e
40
+ );
41
+ return +O(r) == +O(s);
42
+ }
43
+ function G(t, e, n) {
44
+ const [r, s] = g(
45
+ n?.in,
46
+ t,
47
+ e
48
+ ), o = r.getFullYear() - s.getFullYear(), i = r.getMonth() - s.getMonth();
49
+ return o * 12 + i;
17
50
  }
18
- function A(t, e, n) {
19
- const [s, r] = g(
51
+ function V(t, e, n) {
52
+ const [r, s] = g(
20
53
  n?.in,
21
54
  t,
22
55
  e
23
56
  );
24
- return +O(s) == +O(r);
57
+ return r.getFullYear() - s.getFullYear();
25
58
  }
26
- function L(t, e, n) {
27
- const [s, r] = g(
59
+ function q(t, e, n) {
60
+ const [r, s] = g(
28
61
  n?.in,
29
62
  t,
30
63
  e
31
- ), a = s.getFullYear() - r.getFullYear(), i = s.getMonth() - r.getMonth();
32
- return a * 12 + i;
64
+ ), o = Y(r, s), i = Math.abs(
65
+ $(r, s)
66
+ );
67
+ r.setDate(r.getDate() - o * i);
68
+ const a = +(Y(r, s) === -o), c = o * (i - a);
69
+ return c === 0 ? 0 : c;
70
+ }
71
+ function Y(t, e) {
72
+ const n = t.getFullYear() - e.getFullYear() || t.getMonth() - e.getMonth() || t.getDate() - e.getDate() || t.getHours() - e.getHours() || t.getMinutes() - e.getMinutes() || t.getSeconds() - e.getSeconds() || t.getMilliseconds() - e.getMilliseconds();
73
+ return n < 0 ? -1 : n > 0 ? 1 : n;
33
74
  }
34
- function v(t) {
75
+ function F(t) {
35
76
  return (e) => {
36
- const s = (t ? Math[t] : Math.trunc)(e);
37
- return s === 0 ? 0 : s;
77
+ const r = (t ? Math[t] : Math.trunc)(e);
78
+ return r === 0 ? 0 : r;
38
79
  };
39
80
  }
81
+ function B(t, e, n) {
82
+ const [r, s] = g(
83
+ n?.in,
84
+ t,
85
+ e
86
+ ), o = (+r - +s) / P;
87
+ return F(n?.roundingMethod)(o);
88
+ }
40
89
  function k(t, e) {
41
- return +u(t) - +u(e);
90
+ return +l(t) - +l(e);
42
91
  }
43
- function E(t, e) {
44
- const n = u(t, e?.in);
92
+ function J(t, e, n) {
93
+ const r = k(t, e) / A;
94
+ return F(n?.roundingMethod)(r);
95
+ }
96
+ function K(t, e) {
97
+ const n = l(t, e?.in);
45
98
  return n.setHours(23, 59, 59, 999), n;
46
99
  }
47
- function R(t, e) {
48
- const n = u(t, e?.in), s = n.getMonth();
49
- return n.setFullYear(n.getFullYear(), s + 1, 0), n.setHours(23, 59, 59, 999), n;
100
+ function Q(t, e) {
101
+ const n = l(t, e?.in), r = n.getMonth();
102
+ return n.setFullYear(n.getFullYear(), r + 1, 0), n.setHours(23, 59, 59, 999), n;
50
103
  }
51
- function P(t, e) {
52
- const n = u(t, e?.in);
53
- return +E(n, e) == +R(n, e);
104
+ function tt(t, e) {
105
+ const n = l(t, e?.in);
106
+ return +K(n, e) == +Q(n, e);
54
107
  }
55
- function $(t, e, n) {
56
- const [s, r, a] = g(
108
+ function v(t, e, n) {
109
+ const [r, s, o] = g(
57
110
  n?.in,
58
111
  t,
59
112
  t,
60
113
  e
61
- ), i = M(r, a), o = Math.abs(
62
- L(r, a)
114
+ ), i = y(s, o), a = Math.abs(
115
+ G(s, o)
63
116
  );
64
- if (o < 1)
117
+ if (a < 1)
65
118
  return 0;
66
- r.getMonth() === 1 && r.getDate() > 27 && r.setDate(30), r.setMonth(r.getMonth() - i * o);
67
- let l = M(r, a) === -i;
68
- P(s) && o === 1 && M(s, a) === 1 && (l = !1);
69
- const d = i * (o - +l);
70
- return d === 0 ? 0 : d;
119
+ s.getMonth() === 1 && s.getDate() > 27 && s.setDate(30), s.setMonth(s.getMonth() - i * a);
120
+ let c = y(s, o) === -i;
121
+ tt(r) && a === 1 && y(r, o) === 1 && (c = !1);
122
+ const f = i * (a - +c);
123
+ return f === 0 ? 0 : f;
71
124
  }
72
- function Z(t, e, n) {
73
- const s = k(t, e) / 1e3;
74
- return v(n?.roundingMethod)(s);
125
+ function E(t, e, n) {
126
+ const r = k(t, e) / 1e3;
127
+ return F(n?.roundingMethod)(r);
75
128
  }
76
- function j(t, e, n) {
77
- const s = X(), r = n?.locale ?? s.locale ?? U, a = 2520, i = M(t, e);
129
+ function et(t, e, n) {
130
+ const [r, s] = g(
131
+ n?.in,
132
+ t,
133
+ e
134
+ ), o = y(r, s), i = Math.abs(V(r, s));
135
+ r.setFullYear(1584), s.setFullYear(1584);
136
+ const a = y(r, s) === -o, c = o * (i - +a);
137
+ return c === 0 ? 0 : c;
138
+ }
139
+ function nt(t, e) {
140
+ const [n, r] = g(t, e.start, e.end);
141
+ return { start: n, end: r };
142
+ }
143
+ function st(t, e, n) {
144
+ const r = X(), s = n?.locale ?? r.locale ?? U, o = 2520, i = y(t, e);
78
145
  if (isNaN(i))
79
146
  throw new RangeError("Invalid time value");
80
- const o = Object.assign({}, n, {
147
+ const a = Object.assign({}, n, {
81
148
  addSuffix: n?.addSuffix,
82
149
  comparison: i
83
- }), [l, d] = g(
150
+ }), [c, f] = g(
84
151
  n?.in,
85
152
  ...i > 0 ? [e, t] : [t, e]
86
- ), m = Z(d, l), b = (w(d) - w(l)) / 1e3, c = Math.round((m - b) / 60);
87
- let h;
88
- if (c < 2)
89
- return n?.includeSeconds ? m < 5 ? r.formatDistance("lessThanXSeconds", 5, o) : m < 10 ? r.formatDistance("lessThanXSeconds", 10, o) : m < 20 ? r.formatDistance("lessThanXSeconds", 20, o) : m < 40 ? r.formatDistance("halfAMinute", 0, o) : m < 60 ? r.formatDistance("lessThanXMinutes", 1, o) : r.formatDistance("xMinutes", 1, o) : c === 0 ? r.formatDistance("lessThanXMinutes", 1, o) : r.formatDistance("xMinutes", c, o);
90
- if (c < 45)
91
- return r.formatDistance("xMinutes", c, o);
92
- if (c < 90)
93
- return r.formatDistance("aboutXHours", 1, o);
94
- if (c < x) {
95
- const f = Math.round(c / 60);
96
- return r.formatDistance("aboutXHours", f, o);
153
+ ), d = E(f, c), D = (x(f) - x(c)) / 1e3, u = Math.round((d - D) / 60);
154
+ let m;
155
+ if (u < 2)
156
+ return n?.includeSeconds ? d < 5 ? s.formatDistance("lessThanXSeconds", 5, a) : d < 10 ? s.formatDistance("lessThanXSeconds", 10, a) : d < 20 ? s.formatDistance("lessThanXSeconds", 20, a) : d < 40 ? s.formatDistance("halfAMinute", 0, a) : d < 60 ? s.formatDistance("lessThanXMinutes", 1, a) : s.formatDistance("xMinutes", 1, a) : u === 0 ? s.formatDistance("lessThanXMinutes", 1, a) : s.formatDistance("xMinutes", u, a);
157
+ if (u < 45)
158
+ return s.formatDistance("xMinutes", u, a);
159
+ if (u < 90)
160
+ return s.formatDistance("aboutXHours", 1, a);
161
+ if (u < H) {
162
+ const h = Math.round(u / 60);
163
+ return s.formatDistance("aboutXHours", h, a);
97
164
  } else {
98
- if (c < a)
99
- return r.formatDistance("xDays", 1, o);
100
- if (c < D) {
101
- const f = Math.round(c / x);
102
- return r.formatDistance("xDays", f, o);
103
- } else if (c < D * 2)
104
- return h = Math.round(c / D), r.formatDistance("aboutXMonths", h, o);
165
+ if (u < o)
166
+ return s.formatDistance("xDays", 1, a);
167
+ if (u < N) {
168
+ const h = Math.round(u / H);
169
+ return s.formatDistance("xDays", h, a);
170
+ } else if (u < N * 2)
171
+ return m = Math.round(u / N), s.formatDistance("aboutXMonths", m, a);
105
172
  }
106
- if (h = $(d, l), h < 12) {
107
- const f = Math.round(c / D);
108
- return r.formatDistance("xMonths", f, o);
173
+ if (m = v(f, c), m < 12) {
174
+ const h = Math.round(u / N);
175
+ return s.formatDistance("xMonths", h, a);
109
176
  } else {
110
- const f = h % 12, T = Math.trunc(h / 12);
111
- return f < 3 ? r.formatDistance("aboutXYears", T, o) : f < 9 ? r.formatDistance("overXYears", T, o) : r.formatDistance("almostXYears", T + 1, o);
177
+ const h = m % 12, M = Math.trunc(m / 12);
178
+ return h < 3 ? s.formatDistance("aboutXYears", M, a) : h < 9 ? s.formatDistance("overXYears", M, a) : s.formatDistance("almostXYears", M + 1, a);
112
179
  }
113
180
  }
114
- function at(t, e) {
115
- return j(t, C(t), e);
181
+ function Tt(t, e) {
182
+ return st(t, L(t), e);
116
183
  }
117
- function it(t) {
118
- return Math.trunc(+u(t) / 1e3);
184
+ const rt = [
185
+ "years",
186
+ "months",
187
+ "weeks",
188
+ "days",
189
+ "hours",
190
+ "minutes",
191
+ "seconds"
192
+ ];
193
+ function Nt(t, e) {
194
+ const n = X(), r = e?.locale ?? n.locale ?? U, s = e?.format ?? rt, o = e?.zero ?? !1, i = e?.delimiter ?? " ";
195
+ return r.formatDistance ? s.reduce((c, f) => {
196
+ const d = `x${f.replace(/(^.)/, (u) => u.toUpperCase())}`, D = t[f];
197
+ return D !== void 0 && (o || t[f]) ? c.concat(r.formatDistance(d, D)) : c;
198
+ }, []).join(i) : "";
119
199
  }
120
- function ct(t, e) {
121
- return A(
122
- N(e?.in || t, t),
123
- C(e?.in || t)
200
+ function _t(t) {
201
+ return Math.trunc(+l(t) / 1e3);
202
+ }
203
+ function pt(t, e) {
204
+ const { start: n, end: r } = nt(e?.in, t), s = {}, o = et(r, n);
205
+ o && (s.years = o);
206
+ const i = I(n, { years: s.years }), a = v(r, i);
207
+ a && (s.months = a);
208
+ const c = I(i, { months: s.months }), f = q(r, c);
209
+ f && (s.days = f);
210
+ const d = I(c, { days: s.days }), D = B(r, d);
211
+ D && (s.hours = D);
212
+ const u = I(d, { hours: s.hours }), m = J(r, u);
213
+ m && (s.minutes = m);
214
+ const h = I(u, { minutes: s.minutes }), M = E(r, h);
215
+ return M && (s.seconds = M), s;
216
+ }
217
+ function wt(t, e) {
218
+ return W(
219
+ T(e?.in || t, t),
220
+ L(e?.in || t)
124
221
  );
125
222
  }
126
- function G(t, e) {
127
- const n = K(e);
128
- return "formatToParts" in n ? q(n, t) : B(n, t);
223
+ function ot(t, e) {
224
+ const n = ft(e);
225
+ return "formatToParts" in n ? it(n, t) : ct(n, t);
129
226
  }
130
- const V = {
227
+ const at = {
131
228
  year: 0,
132
229
  month: 1,
133
230
  day: 2,
@@ -135,32 +232,32 @@ const V = {
135
232
  minute: 4,
136
233
  second: 5
137
234
  };
138
- function q(t, e) {
235
+ function it(t, e) {
139
236
  try {
140
- const n = t.formatToParts(e), s = [];
141
- for (let r = 0; r < n.length; r++) {
142
- const a = V[n[r].type];
143
- a !== void 0 && (s[a] = parseInt(n[r].value, 10));
237
+ const n = t.formatToParts(e), r = [];
238
+ for (let s = 0; s < n.length; s++) {
239
+ const o = at[n[s].type];
240
+ o !== void 0 && (r[o] = parseInt(n[s].value, 10));
144
241
  }
145
- return s;
242
+ return r;
146
243
  } catch (n) {
147
244
  if (n instanceof RangeError)
148
245
  return [NaN];
149
246
  throw n;
150
247
  }
151
248
  }
152
- function B(t, e) {
153
- const n = t.format(e), s = /(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(n);
249
+ function ct(t, e) {
250
+ const n = t.format(e), r = /(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(n);
154
251
  return [
155
- parseInt(s[3], 10),
156
- parseInt(s[1], 10),
157
- parseInt(s[2], 10),
158
- parseInt(s[4], 10),
159
- parseInt(s[5], 10),
160
- parseInt(s[6], 10)
252
+ parseInt(r[3], 10),
253
+ parseInt(r[1], 10),
254
+ parseInt(r[2], 10),
255
+ parseInt(r[4], 10),
256
+ parseInt(r[5], 10),
257
+ parseInt(r[6], 10)
161
258
  ];
162
259
  }
163
- const I = {}, _ = new Intl.DateTimeFormat("en-US", {
260
+ const _ = {}, S = new Intl.DateTimeFormat("en-US", {
164
261
  hourCycle: "h23",
165
262
  timeZone: "America/New_York",
166
263
  year: "numeric",
@@ -169,9 +266,9 @@ const I = {}, _ = new Intl.DateTimeFormat("en-US", {
169
266
  hour: "2-digit",
170
267
  minute: "2-digit",
171
268
  second: "2-digit"
172
- }).format(/* @__PURE__ */ new Date("2014-06-25T04:00:00.123Z")), J = _ === "06/25/2014, 00:00:00" || _ === "‎06‎/‎25‎/‎2014‎ ‎00‎:‎00‎:‎00";
173
- function K(t) {
174
- return I[t] || (I[t] = J ? new Intl.DateTimeFormat("en-US", {
269
+ }).format(/* @__PURE__ */ new Date("2014-06-25T04:00:00.123Z")), ut = S === "06/25/2014, 00:00:00" || S === "‎06‎/‎25‎/‎2014‎ ‎00‎:‎00‎:‎00";
270
+ function ft(t) {
271
+ return _[t] || (_[t] = ut ? new Intl.DateTimeFormat("en-US", {
175
272
  hourCycle: "h23",
176
273
  timeZone: t,
177
274
  year: "numeric",
@@ -189,85 +286,87 @@ function K(t) {
189
286
  hour: "2-digit",
190
287
  minute: "2-digit",
191
288
  second: "2-digit"
192
- })), I[t];
289
+ })), _[t];
193
290
  }
194
- function Y(t, e, n, s, r, a, i) {
195
- const o = /* @__PURE__ */ new Date(0);
196
- return o.setUTCFullYear(t, e, n), o.setUTCHours(s, r, a, i), o;
291
+ function R(t, e, n, r, s, o, i) {
292
+ const a = /* @__PURE__ */ new Date(0);
293
+ return a.setUTCFullYear(t, e, n), a.setUTCHours(r, s, o, i), a;
197
294
  }
198
- const S = 36e5, Q = 6e4, y = {
295
+ const C = 36e5, dt = 6e4, p = {
199
296
  timezone: /([Z+-].*)$/,
200
297
  timezoneZ: /^(Z)$/,
201
298
  timezoneHH: /^([+-]\d{2})$/,
202
299
  timezoneHHMM: /^([+-])(\d{2}):?(\d{2})$/
203
300
  };
204
- function W(t, e, n) {
301
+ function lt(t, e, n) {
205
302
  if (!t)
206
303
  return 0;
207
- let s = y.timezoneZ.exec(t);
208
- if (s)
304
+ let r = p.timezoneZ.exec(t);
305
+ if (r)
209
306
  return 0;
210
- let r, a;
211
- if (s = y.timezoneHH.exec(t), s)
212
- return r = parseInt(s[1], 10), H(r) ? -(r * S) : NaN;
213
- if (s = y.timezoneHHMM.exec(t), s) {
214
- r = parseInt(s[2], 10);
215
- const i = parseInt(s[3], 10);
216
- return H(r, i) ? (a = Math.abs(r) * S + i * Q, s[1] === "+" ? -a : a) : NaN;
307
+ let s, o;
308
+ if (r = p.timezoneHH.exec(t), r)
309
+ return s = parseInt(r[1], 10), b(s) ? -(s * C) : NaN;
310
+ if (r = p.timezoneHHMM.exec(t), r) {
311
+ s = parseInt(r[2], 10);
312
+ const i = parseInt(r[3], 10);
313
+ return b(s, i) ? (o = Math.abs(s) * C + i * dt, r[1] === "+" ? -o : o) : NaN;
217
314
  }
218
- if (nt(t)) {
315
+ if (Dt(t)) {
219
316
  e = new Date(e || Date.now());
220
- const i = n ? e : tt(e), o = p(i, t);
221
- return -(n ? o : et(e, o, t));
317
+ const i = n ? e : mt(e), a = w(i, t);
318
+ return -(n ? a : ht(e, a, t));
222
319
  }
223
320
  return NaN;
224
321
  }
225
- function tt(t) {
226
- return Y(t.getFullYear(), t.getMonth(), t.getDate(), t.getHours(), t.getMinutes(), t.getSeconds(), t.getMilliseconds());
322
+ function mt(t) {
323
+ return R(t.getFullYear(), t.getMonth(), t.getDate(), t.getHours(), t.getMinutes(), t.getSeconds(), t.getMilliseconds());
227
324
  }
228
- function p(t, e) {
229
- const n = G(t, e), s = Y(n[0], n[1] - 1, n[2], n[3] % 24, n[4], n[5], 0).getTime();
230
- let r = t.getTime();
231
- const a = r % 1e3;
232
- return r -= a >= 0 ? a : 1e3 + a, s - r;
325
+ function w(t, e) {
326
+ const n = ot(t, e), r = R(n[0], n[1] - 1, n[2], n[3] % 24, n[4], n[5], 0).getTime();
327
+ let s = t.getTime();
328
+ const o = s % 1e3;
329
+ return s -= o >= 0 ? o : 1e3 + o, r - s;
233
330
  }
234
- function et(t, e, n) {
235
- let r = t.getTime() - e;
236
- const a = p(new Date(r), n);
237
- if (e === a)
331
+ function ht(t, e, n) {
332
+ let s = t.getTime() - e;
333
+ const o = w(new Date(s), n);
334
+ if (e === o)
238
335
  return e;
239
- r -= a - e;
240
- const i = p(new Date(r), n);
241
- return a === i ? a : Math.max(a, i);
336
+ s -= o - e;
337
+ const i = w(new Date(s), n);
338
+ return o === i ? o : Math.max(o, i);
242
339
  }
243
- function H(t, e) {
340
+ function b(t, e) {
244
341
  return -23 <= t && t <= 23 && (e == null || 0 <= e && e <= 59);
245
342
  }
246
- const F = {};
247
- function nt(t) {
248
- if (F[t])
343
+ const z = {};
344
+ function Dt(t) {
345
+ if (z[t])
249
346
  return !0;
250
347
  try {
251
- return new Intl.DateTimeFormat(void 0, { timeZone: t }), F[t] = !0, !0;
348
+ return new Intl.DateTimeFormat(void 0, { timeZone: t }), z[t] = !0, !0;
252
349
  } catch {
253
350
  return !1;
254
351
  }
255
352
  }
256
- function ut(t, e) {
257
- return -W(t, e);
353
+ function Ft(t, e) {
354
+ return -lt(t, e);
258
355
  }
259
356
  export {
260
- st as addMilliseconds,
261
- ot as addMinutes,
262
- ht as addMonths,
263
- dt as format,
264
- j as formatDistance,
265
- at as formatDistanceToNow,
266
- Dt as getDaysInMonth,
267
- ut as getTimezoneOffset,
268
- it as getUnixTime,
269
- ct as isToday,
270
- Mt as setDate,
271
- gt as setYear,
272
- Tt as subMonths
357
+ yt as addMilliseconds,
358
+ It as addMinutes,
359
+ Z as addMonths,
360
+ Ht as format,
361
+ st as formatDistance,
362
+ Tt as formatDistanceToNow,
363
+ Nt as formatDuration,
364
+ St as getDaysInMonth,
365
+ Ft as getTimezoneOffset,
366
+ _t as getUnixTime,
367
+ pt as intervalToDuration,
368
+ wt as isToday,
369
+ Ct as setDate,
370
+ bt as setYear,
371
+ zt as subMonths
273
372
  };
package/dist/form2.js CHANGED
@@ -1,4 +1,4 @@
1
- import { t as s } from "./transformers-DowKEH_9.js";
1
+ import { t as s } from "./transformers-CrxkoXtN.js";
2
2
  import { C as m } from "./crud-n73o4CzO.js";
3
3
  const e = (r) => {
4
4
  const a = new FormData();
@@ -126,11 +126,11 @@ const A = {
126
126
  narrow: ["B", "A"],
127
127
  abbreviated: ["BC", "AD"],
128
128
  wide: ["Before Christ", "Anno Domini"]
129
- }, R = {
129
+ }, I = {
130
130
  narrow: ["1", "2", "3", "4"],
131
131
  abbreviated: ["Q1", "Q2", "Q3", "Q4"],
132
132
  wide: ["1st quarter", "2nd quarter", "3rd quarter", "4th quarter"]
133
- }, I = {
133
+ }, R = {
134
134
  narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"],
135
135
  abbreviated: [
136
136
  "Jan",
@@ -254,12 +254,12 @@ const A = {
254
254
  defaultWidth: "wide"
255
255
  }),
256
256
  quarter: b({
257
- values: R,
257
+ values: I,
258
258
  defaultWidth: "wide",
259
259
  argumentCallback: (t) => t - 1
260
260
  }),
261
261
  month: b({
262
- values: I,
262
+ values: R,
263
263
  defaultWidth: "wide"
264
264
  }),
265
265
  day: b({
@@ -435,7 +435,7 @@ let gt = {};
435
435
  function O() {
436
436
  return gt;
437
437
  }
438
- const E = 6048e5, wt = 864e5, Gt = 6e4, Bt = 43200, At = 1440, W = Symbol.for("constructDateFrom");
438
+ const E = 6048e5, wt = 864e5, Gt = 6e4, Bt = 36e5, At = 43200, It = 1440, W = Symbol.for("constructDateFrom");
439
439
  function g(t, e) {
440
440
  return typeof t == "function" ? t(e) : t && typeof t == "object" && W in t ? t[W](e) : t instanceof Date ? new t.constructor(e) : new Date(e);
441
441
  }
@@ -1203,13 +1203,15 @@ function jt(t) {
1203
1203
  return e ? e[1].replace(_t, "'") : t;
1204
1204
  }
1205
1205
  export {
1206
- At as a,
1207
- Bt as b,
1206
+ Bt as a,
1207
+ It as b,
1208
1208
  g as c,
1209
- O as d,
1209
+ bt as d,
1210
1210
  lt as e,
1211
1211
  Rt as f,
1212
1212
  D as g,
1213
+ At as h,
1214
+ O as i,
1213
1215
  Gt as m,
1214
1216
  yt as n,
1215
1217
  v as s,
package/dist/index.css CHANGED
@@ -7,15 +7,15 @@
7
7
  /* Light theme */
8
8
  --caipira-light-primary: #fff;
9
9
  --caipira-light-secondary: #f5f5f5;
10
- --caipira-light-red: #e64553;
11
- --caipira-light-green: #16a34ae6;
10
+ --caipira-light-red: #d32f2f;
11
+ --caipira-light-green: #2e7d32;
12
12
  --caipira-light-yellow: #df8e1d;
13
13
  --caipira-light-blue: #1e66f5;
14
14
 
15
15
  /* Dark theme */
16
- --caipira-dark-primary: #000;
16
+ --caipira-dark-primary: #0f0f0f;
17
17
  --caipira-dark-secondary: #1e1e1e;
18
- --caipira-dark-red: #f85149;
18
+ --caipira-dark-red: #c62828;
19
19
  --caipira-dark-green: #3fb950;
20
20
  --caipira-dark-yellow: #df8e1d;
21
21
  --caipira-dark-blue: #4089ff;
@@ -79,6 +79,8 @@
79
79
  --text-color: var(--caipira-primary-inverted);
80
80
 
81
81
  --input-radius: var(--radius-sm);
82
+
83
+ --content-radius: var(--radius-md);
82
84
  }
83
85
  }
84
86
 
@@ -181,14 +183,20 @@
181
183
  color: var(--text-color);
182
184
  }
183
185
  .input-padding {
184
- @apply pl-2 pr-1;
186
+ padding: calc(var(--spacing) * 2);
185
187
  }
186
188
 
187
189
  /* Card */
188
190
  .card {
189
- @apply relative max-w-md w-full rounded-sm border p-4;
191
+ width: 100%;
192
+ max-width: var(--container-md);
193
+ position: relative;
194
+ border-style: var(--tw-border-style);
195
+ border-width: 1px;
190
196
  border-color: var(--border-color);
191
197
  background-color: var(--bg-color);
198
+ padding: calc(var(--spacing) * 4);
199
+ border-radius: var(--content-radius);
192
200
  }
193
201
  .card-grid {
194
202
  @apply flex flex-wrap justify-start md:justify-start items-stretch gap-3;
@@ -204,9 +212,12 @@
204
212
 
205
213
  /* Floatables (Modal, Popover, etc) */
206
214
  .floatable {
207
- @apply shadow-xs border;
215
+ @apply shadow-xs;
216
+ border-style: var(--tw-border-style);
217
+ border-width: 1px;
208
218
  border-color: var(--border-color);
209
219
  background-color: var(--bg-color);
220
+ border-radius: var(--content-radius);
210
221
  }
211
222
 
212
223
  /* Scrollbar */
@@ -0,0 +1,5 @@
1
+ const t = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><title>pause-circle</title><path d="M15,16H13V8H15M11,16H9V8H11M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z" /></svg>
2
+ `;
3
+ export {
4
+ t as default
5
+ };
@@ -0,0 +1,5 @@
1
+ const t = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><title>play-circle</title><path d="M10,16.5V7.5L16,12M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z" /></svg>
2
+ `;
3
+ export {
4
+ t as default
5
+ };
@@ -1,5 +1,5 @@
1
1
  import { r } from "./register-component-B-fdqewb.js";
2
- import { _ as s } from "./Icon.vue_vue_type_script_setup_true_lang-C2QvF2xM.js";
2
+ import { _ as s } from "./Icon.vue_vue_type_script_setup_true_lang-B74Viy_i.js";
3
3
  const m = {
4
4
  install(o) {
5
5
  r(o, s);