@vincisys/eyeson 0.4.11 → 0.4.13

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.
@@ -2,7 +2,7 @@ import { type LucideIcon } from 'lucide-react';
2
2
  import { type ChangeEvent, type ComponentProps } from 'react';
3
3
  import { type FieldLabelVariant, type FieldSize } from '../../lib/field-styles';
4
4
  export type InputState = 'default' | 'valid' | 'loading' | 'invalid';
5
- export type InputFormat = 'cep' | 'cpf' | 'cnpj' | 'cpfOrCnpj' | 'phone' | 'currency';
5
+ export type InputFormat = 'cep' | 'cpf' | 'cnpj' | 'cpfOrCnpj' | 'phone';
6
6
  export type InputSize = FieldSize;
7
7
  /** @deprecated Use `FieldLabelVariant` from the shared field styles. */
8
8
  export type InputLabelVariant = FieldLabelVariant;
@@ -13,7 +13,7 @@ export type InputProps = Omit<ComponentProps<'input'>, 'className' | 'type' | 'r
13
13
  state?: InputState;
14
14
  /** Tamanho do campo (altura, padding e tipografia). */
15
15
  size?: InputSize;
16
- inputType?: 'text' | 'email';
16
+ inputType?: 'text' | 'email' | 'number';
17
17
  required?: boolean;
18
18
  placeholder?: string;
19
19
  errorMessage?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"Input.d.ts","sourceRoot":"","sources":["../../../src/components/Input/Input.tsx"],"names":[],"mappings":"AACA,OAAO,EAAiB,KAAK,UAAU,EAAE,MAAM,cAAc,CAAC;AAC9D,OAAO,EAAmB,KAAK,WAAW,EAAE,KAAK,cAAc,EAAE,MAAM,OAAO,CAAC;AAQ/E,OAAO,EAWN,KAAK,iBAAiB,EACtB,KAAK,SAAS,EACd,MAAM,wBAAwB,CAAC;AAGhC,MAAM,MAAM,UAAU,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,GAAG,SAAS,CAAC;AACrE,MAAM,MAAM,WAAW,GACtB,KAAK,GAAG,KAAK,GAAG,MAAM,GAAG,WAAW,GAAG,OAAO,GAAG,UAAU,CAAC;AAC7D,MAAM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gB,CAAC,KAAK,IAAI,CAAC;CACzE,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,KAAK,CAAC,EAC7B,SAAS,EACT,KAAe,EACf,QAAgB,EAChB,KAAiB,EACjB,IAAW,EACX,SAAkB,EAClB,QAAgB,EAChB,WAA8B,EAC9B,YAAkC,EAClC,KAAa,EACb,MAAM,EACN,OAAc,EACd,QAAe,EACf,OAAc,EACd,WAAkB,EAClB,cAAqB,EACrB,cAAmB,EACnB,IAAY,EACZ,YAAY,EACZ,aAAa,EACb,mBAA2B,EAC3B,SAAiB,EACjB,mBAA2B,EAC3B,IAAI,EAAE,IAAI,EACV,YAAY,EACZ,KAAK,EACL,EAAE,EACF,IAAI,EACJ,MAAM,EACN,OAAO,EACP,SAAS,EACT,OAAO,EACP,QAAQ,EACR,GAAG,KAAK,EACR,EAAE,UAAU,+BAiNZ"}
package/dist/index.js CHANGED
@@ -138,7 +138,7 @@ function W(e, t, n) {
138
138
  }
139
139
  //#endregion
140
140
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/addMonths.js
141
- function G(e, t, n) {
141
+ function oe(e, t, n) {
142
142
  let r = U(e, n?.in);
143
143
  if (isNaN(t)) return H(n?.in || e, NaN);
144
144
  if (!t) return r;
@@ -147,63 +147,63 @@ function G(e, t, n) {
147
147
  }
148
148
  //#endregion
149
149
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/defaultOptions.js
150
- var oe = {};
151
- function K() {
152
- return oe;
150
+ var se = {};
151
+ function G() {
152
+ return se;
153
153
  }
154
154
  //#endregion
155
155
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/startOfWeek.js
156
- function q(e, t) {
157
- let n = K(), r = t?.weekStartsOn ?? t?.locale?.options?.weekStartsOn ?? n.weekStartsOn ?? n.locale?.options?.weekStartsOn ?? 0, i = U(e, t?.in), a = i.getDay(), o = (a < r ? 7 : 0) + a - r;
156
+ function K(e, t) {
157
+ let n = G(), r = t?.weekStartsOn ?? t?.locale?.options?.weekStartsOn ?? n.weekStartsOn ?? n.locale?.options?.weekStartsOn ?? 0, i = U(e, t?.in), a = i.getDay(), o = (a < r ? 7 : 0) + a - r;
158
158
  return i.setDate(i.getDate() - o), i.setHours(0, 0, 0, 0), i;
159
159
  }
160
160
  //#endregion
161
161
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/startOfISOWeek.js
162
- function J(e, t) {
163
- return q(e, {
162
+ function q(e, t) {
163
+ return K(e, {
164
164
  ...t,
165
165
  weekStartsOn: 1
166
166
  });
167
167
  }
168
168
  //#endregion
169
169
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/getISOWeekYear.js
170
- function se(e, t) {
170
+ function ce(e, t) {
171
171
  let n = U(e, t?.in), r = n.getFullYear(), i = H(n, 0);
172
172
  i.setFullYear(r + 1, 0, 4), i.setHours(0, 0, 0, 0);
173
- let a = J(i), o = H(n, 0);
173
+ let a = q(i), o = H(n, 0);
174
174
  o.setFullYear(r, 0, 4), o.setHours(0, 0, 0, 0);
175
- let s = J(o);
175
+ let s = q(o);
176
176
  return n.getTime() >= a.getTime() ? r + 1 : n.getTime() >= s.getTime() ? r : r - 1;
177
177
  }
178
178
  //#endregion
179
179
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.js
180
- function ce(e) {
180
+ function le(e) {
181
181
  let t = U(e), n = new Date(Date.UTC(t.getFullYear(), t.getMonth(), t.getDate(), t.getHours(), t.getMinutes(), t.getSeconds(), t.getMilliseconds()));
182
182
  return n.setUTCFullYear(t.getFullYear()), e - +n;
183
183
  }
184
184
  //#endregion
185
185
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/normalizeDates.js
186
- function le(e, ...t) {
186
+ function ue(e, ...t) {
187
187
  let n = H.bind(null, e || t.find((e) => typeof e == "object"));
188
188
  return t.map(n);
189
189
  }
190
190
  //#endregion
191
191
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/startOfDay.js
192
- function ue(e, t) {
192
+ function J(e, t) {
193
193
  let n = U(e, t?.in);
194
194
  return n.setHours(0, 0, 0, 0), n;
195
195
  }
196
196
  //#endregion
197
197
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/differenceInCalendarDays.js
198
198
  function de(e, t, n) {
199
- let [r, i] = le(n?.in, e, t), a = ue(r), o = ue(i), s = +a - ce(a), c = +o - ce(o);
199
+ let [r, i] = ue(n?.in, e, t), a = J(r), o = J(i), s = +a - le(a), c = +o - le(o);
200
200
  return Math.round((s - c) / ie);
201
201
  }
202
202
  //#endregion
203
203
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/startOfISOWeekYear.js
204
204
  function fe(e, t) {
205
- let n = se(e, t), r = H(t?.in || e, 0);
206
- return r.setFullYear(n, 0, 4), r.setHours(0, 0, 0, 0), J(r);
205
+ let n = ce(e, t), r = H(t?.in || e, 0);
206
+ return r.setFullYear(n, 0, 4), r.setHours(0, 0, 0, 0), q(r);
207
207
  }
208
208
  //#endregion
209
209
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/constructNow.js
@@ -213,8 +213,8 @@ function pe(e) {
213
213
  //#endregion
214
214
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/isSameDay.js
215
215
  function me(e, t, n) {
216
- let [r, i] = le(n?.in, e, t);
217
- return +ue(r) == +ue(i);
216
+ let [r, i] = ue(n?.in, e, t);
217
+ return +J(r) == +J(i);
218
218
  }
219
219
  //#endregion
220
220
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/isDate.js
@@ -247,7 +247,7 @@ function ye(e, t) {
247
247
  //#endregion
248
248
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/endOfWeek.js
249
249
  function be(e, t) {
250
- let n = K(), r = t?.weekStartsOn ?? t?.locale?.options?.weekStartsOn ?? n.weekStartsOn ?? n.locale?.options?.weekStartsOn ?? 0, i = U(e, t?.in), a = i.getDay(), o = (a < r ? -7 : 0) + 6 - (a - r);
250
+ let n = G(), r = t?.weekStartsOn ?? t?.locale?.options?.weekStartsOn ?? n.weekStartsOn ?? n.locale?.options?.weekStartsOn ?? 0, i = U(e, t?.in), a = i.getDay(), o = (a < r ? -7 : 0) + 6 - (a - r);
251
251
  return i.setDate(i.getDate() + o), i.setHours(23, 59, 59, 999), i;
252
252
  }
253
253
  //#endregion
@@ -757,29 +757,29 @@ function Me(e, t) {
757
757
  //#endregion
758
758
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/getISOWeek.js
759
759
  function Ne(e, t) {
760
- let n = U(e, t?.in), r = J(n) - +fe(n);
760
+ let n = U(e, t?.in), r = q(n) - +fe(n);
761
761
  return Math.round(r / B) + 1;
762
762
  }
763
763
  //#endregion
764
764
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/getWeekYear.js
765
765
  function Pe(e, t) {
766
- let n = U(e, t?.in), r = n.getFullYear(), i = K(), a = t?.firstWeekContainsDate ?? t?.locale?.options?.firstWeekContainsDate ?? i.firstWeekContainsDate ?? i.locale?.options?.firstWeekContainsDate ?? 1, o = H(t?.in || e, 0);
766
+ let n = U(e, t?.in), r = n.getFullYear(), i = G(), a = t?.firstWeekContainsDate ?? t?.locale?.options?.firstWeekContainsDate ?? i.firstWeekContainsDate ?? i.locale?.options?.firstWeekContainsDate ?? 1, o = H(t?.in || e, 0);
767
767
  o.setFullYear(r + 1, 0, a), o.setHours(0, 0, 0, 0);
768
- let s = q(o, t), c = H(t?.in || e, 0);
768
+ let s = K(o, t), c = H(t?.in || e, 0);
769
769
  c.setFullYear(r, 0, a), c.setHours(0, 0, 0, 0);
770
- let l = q(c, t);
770
+ let l = K(c, t);
771
771
  return +n >= +s ? r + 1 : +n >= +l ? r : r - 1;
772
772
  }
773
773
  //#endregion
774
774
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/startOfWeekYear.js
775
775
  function Fe(e, t) {
776
- let n = K(), r = t?.firstWeekContainsDate ?? t?.locale?.options?.firstWeekContainsDate ?? n.firstWeekContainsDate ?? n.locale?.options?.firstWeekContainsDate ?? 1, i = Pe(e, t), a = H(t?.in || e, 0);
777
- return a.setFullYear(i, 0, r), a.setHours(0, 0, 0, 0), q(a, t);
776
+ let n = G(), r = t?.firstWeekContainsDate ?? t?.locale?.options?.firstWeekContainsDate ?? n.firstWeekContainsDate ?? n.locale?.options?.firstWeekContainsDate ?? 1, i = Pe(e, t), a = H(t?.in || e, 0);
777
+ return a.setFullYear(i, 0, r), a.setHours(0, 0, 0, 0), K(a, t);
778
778
  }
779
779
  //#endregion
780
780
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/getWeek.js
781
781
  function Ie(e, t) {
782
- let n = U(e, t?.in), r = q(n, t) - +Fe(n, t);
782
+ let n = U(e, t?.in), r = K(n, t) - +Fe(n, t);
783
783
  return Math.round(r / B) + 1;
784
784
  }
785
785
  //#endregion
@@ -859,7 +859,7 @@ var Le = {
859
859
  return t === "YY" ? Z(a % 100, 2) : t === "Yo" ? n.ordinalNumber(a, { unit: "year" }) : Z(a, t.length);
860
860
  },
861
861
  R: function(e, t) {
862
- return Z(se(e), t.length);
862
+ return Z(ce(e), t.length);
863
863
  },
864
864
  u: function(e, t) {
865
865
  return Z(e.getFullYear(), t.length);
@@ -1261,7 +1261,7 @@ function Qe(e, t, n) {
1261
1261
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/format.js
1262
1262
  var $e = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, et = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, tt = /^'([^]*?)'?$/, nt = /''/g, rt = /[a-zA-Z]/;
1263
1263
  function Q(e, t, n) {
1264
- let r = K(), i = n?.locale ?? r.locale ?? je, a = n?.firstWeekContainsDate ?? n?.locale?.options?.firstWeekContainsDate ?? r.firstWeekContainsDate ?? r.locale?.options?.firstWeekContainsDate ?? 1, o = n?.weekStartsOn ?? n?.locale?.options?.weekStartsOn ?? r.weekStartsOn ?? r.locale?.options?.weekStartsOn ?? 0, s = U(e, n?.in);
1264
+ let r = G(), i = n?.locale ?? r.locale ?? je, a = n?.firstWeekContainsDate ?? n?.locale?.options?.firstWeekContainsDate ?? r.firstWeekContainsDate ?? r.locale?.options?.firstWeekContainsDate ?? 1, o = n?.weekStartsOn ?? n?.locale?.options?.weekStartsOn ?? r.weekStartsOn ?? r.locale?.options?.weekStartsOn ?? 0, s = U(e, n?.in);
1265
1265
  if (!ge(s)) throw RangeError("Invalid time value");
1266
1266
  let c = t.match(et).map((e) => {
1267
1267
  let t = e[0];
@@ -1331,7 +1331,7 @@ function ct(e, t) {
1331
1331
  //#endregion
1332
1332
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/isSameMonth.js
1333
1333
  function lt(e, t, n) {
1334
- let [r, i] = le(n?.in, e, t);
1334
+ let [r, i] = ue(n?.in, e, t);
1335
1335
  return r.getFullYear() === i.getFullYear() && r.getMonth() === i.getMonth();
1336
1336
  }
1337
1337
  //#endregion
@@ -1360,7 +1360,7 @@ function pt(e, t, n) {
1360
1360
  //#endregion
1361
1361
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/subMonths.js
1362
1362
  function mt(e, t, n) {
1363
- return G(e, -t, n);
1363
+ return oe(e, -t, n);
1364
1364
  }
1365
1365
  //#endregion
1366
1366
  //#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/pt-BR/_lib/formatDistance.js
@@ -1852,7 +1852,7 @@ var St = [
1852
1852
  "Sáb"
1853
1853
  ];
1854
1854
  function Ct(e, t) {
1855
- let n = q(ve(e), { weekStartsOn: t }), r = be(_e(e), { weekStartsOn: t }), i = [];
1855
+ let n = K(ve(e), { weekStartsOn: t }), r = be(_e(e), { weekStartsOn: t }), i = [];
1856
1856
  for (let e = n; e <= r; e = W(e, 1)) i.push(e);
1857
1857
  return i;
1858
1858
  }
@@ -1887,7 +1887,7 @@ function wt({ month: e, defaultMonth: t, onMonthChange: n, events: r = [], maxVi
1887
1887
  icon: o,
1888
1888
  label: "Próximo mês",
1889
1889
  size: "sm",
1890
- onClick: () => C(G(v, 1))
1890
+ onClick: () => C(oe(v, 1))
1891
1891
  })]
1892
1892
  })]
1893
1893
  }), /* @__PURE__ */ m("div", {
@@ -2329,7 +2329,7 @@ var hn = {
2329
2329
  "S"
2330
2330
  ];
2331
2331
  function _n(e, t) {
2332
- let n = q(ve(e), { weekStartsOn: t }), r = be(_e(e), { weekStartsOn: t }), i = [];
2332
+ let n = K(ve(e), { weekStartsOn: t }), r = be(_e(e), { weekStartsOn: t }), i = [];
2333
2333
  for (let e = n; e <= r; e = W(e, 1)) i.push(e);
2334
2334
  return i;
2335
2335
  }
@@ -2349,7 +2349,7 @@ function yn(e) {
2349
2349
  } : e.value === void 0 ? void 0 : {
2350
2350
  from: e.value ?? null,
2351
2351
  to: null
2352
- }, F = P !== void 0, [I, L] = x(N), R = F ? P : I, z = vn(e) ? Math.max(1, e.numberOfMonths ?? 1) : 1, ne = vn(e) ? e.presets : void 0, [re, B] = x(!1), [ie, V] = x(() => R.from ?? e.defaultMonth ?? /* @__PURE__ */ new Date()), ae = y(() => [...gn.slice(_), ...gn.slice(0, _)], [_]), H = y(() => Array.from({ length: z }, (e, t) => G(ie, t)), [ie, z]);
2352
+ }, F = P !== void 0, [I, L] = x(N), R = F ? P : I, z = vn(e) ? Math.max(1, e.numberOfMonths ?? 1) : 1, ne = vn(e) ? e.presets : void 0, [re, B] = x(!1), [ie, V] = x(() => R.from ?? e.defaultMonth ?? /* @__PURE__ */ new Date()), ae = y(() => [...gn.slice(_), ...gn.slice(0, _)], [_]), H = y(() => Array.from({ length: z }, (e, t) => oe(ie, t)), [ie, z]);
2353
2353
  function U(t) {
2354
2354
  s || (t && V(R.from ?? e.defaultMonth ?? /* @__PURE__ */ new Date()), B(t));
2355
2355
  }
@@ -2376,7 +2376,7 @@ function yn(e) {
2376
2376
  to: null
2377
2377
  }), e.onValueChange?.(t), B(!1);
2378
2378
  }
2379
- function oe(t) {
2379
+ function se(t) {
2380
2380
  let n = {
2381
2381
  from: t.from,
2382
2382
  to: t.to ?? null
@@ -2386,10 +2386,10 @@ function yn(e) {
2386
2386
  to: t.to ?? void 0
2387
2387
  }), V(t.from);
2388
2388
  }
2389
- function K(e) {
2389
+ function G(e) {
2390
2390
  return !R.from || !R.to || !e.range.to ? !1 : me(R.from, e.range.from) && me(R.to, e.range.to);
2391
2391
  }
2392
- let q = R.from ? !S || !R.to ? Q(R.from, v) : `${Q(R.from, v)} - ${Q(R.to, v)}` : C;
2392
+ let K = R.from ? !S || !R.to ? Q(R.from, v) : `${Q(R.from, v)} - ${Q(R.to, v)}` : C;
2393
2393
  return /* @__PURE__ */ m("div", {
2394
2394
  className: M(Xt, b),
2395
2395
  "data-fluid": l || void 0,
@@ -2433,7 +2433,7 @@ function yn(e) {
2433
2433
  }),
2434
2434
  /* @__PURE__ */ p("span", {
2435
2435
  className: M("min-w-0 flex-1 truncate font-inherit", k.text, R.from ? "text-eds-neutral-main" : $t),
2436
- children: q
2436
+ children: K
2437
2437
  })
2438
2438
  ]
2439
2439
  }), /* @__PURE__ */ p(D.Portal, { children: /* @__PURE__ */ p(D.Positioner, {
@@ -2449,8 +2449,8 @@ function yn(e) {
2449
2449
  className: "flex w-40 shrink-0 flex-col gap-0.5 border-r border-eds-outline-border p-2 text-sm",
2450
2450
  children: ne.map((e) => /* @__PURE__ */ p("button", {
2451
2451
  type: "button",
2452
- onClick: () => oe(e.range),
2453
- className: M("rounded-md px-3 py-1.5 text-left whitespace-nowrap", K(e) ? "bg-eds-blue-main text-white" : "text-eds-neutral-main hover:bg-eds-neutral-background"),
2452
+ onClick: () => se(e.range),
2453
+ className: M("rounded-md px-3 py-1.5 text-left whitespace-nowrap", G(e) ? "bg-eds-blue-main text-white" : "text-eds-neutral-main hover:bg-eds-neutral-background"),
2454
2454
  children: e.label
2455
2455
  }, e.label))
2456
2456
  }), /* @__PURE__ */ p("div", {
@@ -2479,7 +2479,7 @@ function yn(e) {
2479
2479
  icon: o,
2480
2480
  label: "Próximo mês",
2481
2481
  size: "sm",
2482
- onClick: () => V((e) => G(e, 1))
2482
+ onClick: () => V((e) => oe(e, 1))
2483
2483
  }) : /* @__PURE__ */ p("span", {
2484
2484
  className: "size-8 shrink-0",
2485
2485
  "aria-hidden": !0
@@ -2536,7 +2536,7 @@ var bn = {
2536
2536
  "S"
2537
2537
  ];
2538
2538
  function Sn(e, t) {
2539
- let n = q(ve(e), { weekStartsOn: t }), r = be(_e(e), { weekStartsOn: t }), i = [];
2539
+ let n = K(ve(e), { weekStartsOn: t }), r = be(_e(e), { weekStartsOn: t }), i = [];
2540
2540
  for (let e = n; e <= r; e = W(e, 1)) i.push(e);
2541
2541
  return i;
2542
2542
  }
@@ -2555,21 +2555,21 @@ function Tn(e) {
2555
2555
  }
2556
2556
  var En = Array.from({ length: 24 }, (e, t) => t);
2557
2557
  function Dn({ label: e = "Label", labelVariant: n, floatingLabel: r, placeholder: i = "Selecione data e hora", disabled: s = !1, required: c = !1, fluid: l = !1, state: u = "default", size: d = "md", supportingText: f = "", errorMessage: h = "Selecione uma data e hora válidas", id: g, weekStartsOn: _ = 0, defaultMonth: S, dateFormat: C = "dd/MM/yyyy HH:mm", minuteStep: w = 5, value: T, defaultValue: E = null, onValueChange: O, className: k }) {
2558
- let te = ee(), A = g ?? te, j = u === "invalid", N = j || f, P = Yt[d], F = d === "lg" ? "size-5" : "size-4", I = Jt(n, r), L = I === "floating", R = T !== void 0, [ne, re] = x(E), B = R ? T ?? null : ne, [ie, V] = x(!1), [ae, H] = x(() => B ?? S ?? /* @__PURE__ */ new Date()), [U, W] = x(B), oe = b(null), K = b(null), q = y(() => Tn(w), [w]), J = y(() => [...xn.slice(_), ...xn.slice(0, _)], [_]), se = y(() => Sn(ae, _), [ae, _]), ce = U ? at(U) : 0, le = U ? wn(ot(U), w) : 0;
2558
+ let te = ee(), A = g ?? te, j = u === "invalid", N = j || f, P = Yt[d], F = d === "lg" ? "size-5" : "size-4", I = Jt(n, r), L = I === "floating", R = T !== void 0, [ne, re] = x(E), B = R ? T ?? null : ne, [ie, V] = x(!1), [ae, H] = x(() => B ?? S ?? /* @__PURE__ */ new Date()), [U, W] = x(B), se = b(null), G = b(null), K = y(() => Tn(w), [w]), q = y(() => [...xn.slice(_), ...xn.slice(0, _)], [_]), ce = y(() => Sn(ae, _), [ae, _]), le = U ? at(U) : 0, ue = U ? wn(ot(U), w) : 0;
2559
2559
  v(() => {
2560
2560
  if (!ie) return;
2561
2561
  let e = (e, t, n) => {
2562
2562
  (e?.querySelector(`[data-${t}="${n}"]`))?.scrollIntoView({ block: "center" });
2563
2563
  };
2564
2564
  requestAnimationFrame(() => {
2565
- e(oe.current, "hour", ce), e(K.current, "minute", le);
2565
+ e(se.current, "hour", le), e(G.current, "minute", ue);
2566
2566
  });
2567
2567
  }, [
2568
2568
  ie,
2569
- ce,
2570
- le
2569
+ le,
2570
+ ue
2571
2571
  ]);
2572
- function ue(e) {
2572
+ function J(e) {
2573
2573
  R || re(e), O?.(e);
2574
2574
  }
2575
2575
  function de(e) {
@@ -2583,22 +2583,22 @@ function Dn({ label: e = "Label", labelVariant: n, floatingLabel: r, placeholder
2583
2583
  }
2584
2584
  function fe(e) {
2585
2585
  let t = Cn(e, U ?? B), n = ft(t, wn(ot(t), w));
2586
- W(n), ue(n);
2586
+ W(n), J(n);
2587
2587
  }
2588
2588
  function pe(e) {
2589
2589
  let t = U ?? B ?? /* @__PURE__ */ new Date(), n = pt(ft(dt(t, e), wn(ot(t), w)), 0);
2590
- W(n), ue(n);
2590
+ W(n), J(n);
2591
2591
  }
2592
2592
  function he(e) {
2593
2593
  let t = pt(ft(U ?? B ?? /* @__PURE__ */ new Date(), e), 0);
2594
- W(t), ue(t);
2594
+ W(t), J(t);
2595
2595
  }
2596
2596
  function ge() {
2597
2597
  let e = /* @__PURE__ */ new Date(), t = pt(ft(e, wn(ot(e), w)), 0);
2598
- W(t), H(t), ue(t);
2598
+ W(t), H(t), J(t);
2599
2599
  }
2600
2600
  function _e() {
2601
- U && ue(U), V(!1);
2601
+ U && J(U), V(!1);
2602
2602
  }
2603
2603
  let ve = B ? Q(B, C) : i;
2604
2604
  return /* @__PURE__ */ m("div", {
@@ -2677,15 +2677,15 @@ function Dn({ label: e = "Label", labelVariant: n, floatingLabel: r, placeholder
2677
2677
  icon: o,
2678
2678
  label: "Próximo mês",
2679
2679
  size: "sm",
2680
- onClick: () => H((e) => G(e, 1))
2680
+ onClick: () => H((e) => oe(e, 1))
2681
2681
  })
2682
2682
  ]
2683
2683
  }), /* @__PURE__ */ m("div", {
2684
2684
  className: "grid grid-cols-7 px-4 pb-4",
2685
- children: [J.map((e, t) => /* @__PURE__ */ p("span", {
2685
+ children: [q.map((e, t) => /* @__PURE__ */ p("span", {
2686
2686
  className: "pb-2 text-center text-xs font-medium text-eds-neutral-main",
2687
2687
  children: e
2688
- }, `${e}-${t}`)), se.map((e) => {
2688
+ }, `${e}-${t}`)), ce.map((e) => {
2689
2689
  let t = lt(e, ae), n = ut(e), r = U ? me(e, U) : !1;
2690
2690
  return /* @__PURE__ */ p("div", {
2691
2691
  className: "flex items-center justify-center py-0.5",
@@ -2708,12 +2708,12 @@ function Dn({ label: e = "Label", labelVariant: n, floatingLabel: r, placeholder
2708
2708
  className: "px-2 pt-3 pb-1 text-center text-xs font-medium text-eds-neutral-elements",
2709
2709
  children: "Hora"
2710
2710
  }), /* @__PURE__ */ p("div", {
2711
- ref: oe,
2711
+ ref: se,
2712
2712
  className: "flex max-h-[248px] flex-col gap-0.5 overflow-y-auto overscroll-contain px-2 pb-3",
2713
2713
  role: "listbox",
2714
2714
  "aria-label": "Hora",
2715
2715
  children: En.map((e) => {
2716
- let t = ce === e;
2716
+ let t = le === e;
2717
2717
  return /* @__PURE__ */ p("button", {
2718
2718
  type: "button",
2719
2719
  role: "option",
@@ -2731,12 +2731,12 @@ function Dn({ label: e = "Label", labelVariant: n, floatingLabel: r, placeholder
2731
2731
  className: "px-2 pt-3 pb-1 text-center text-xs font-medium text-eds-neutral-elements",
2732
2732
  children: "Min"
2733
2733
  }), /* @__PURE__ */ p("div", {
2734
- ref: K,
2734
+ ref: G,
2735
2735
  className: "flex max-h-[248px] flex-col gap-0.5 overflow-y-auto overscroll-contain px-2 pb-3",
2736
2736
  role: "listbox",
2737
2737
  "aria-label": "Minuto",
2738
- children: q.map((e) => {
2739
- let t = le === e;
2738
+ children: K.map((e) => {
2739
+ let t = ue === e;
2740
2740
  return /* @__PURE__ */ p("button", {
2741
2741
  type: "button",
2742
2742
  role: "option",
@@ -3049,40 +3049,26 @@ var $n = /\D/g, er = function(e) {
3049
3049
  return ir(e) ? rr(e) : nr(e);
3050
3050
  }, or = function(e) {
3051
3051
  return er(e).replace(/(\d{1,2})/, "($1").replace(/(\(\d{2})(\d{1,4})/, "$1) $2").replace(/( \d{4})(\d{1,4})/, "$1-$2").replace(/( \d{4})(?:-)(\d{1})(\d{4})/, "$1$2-$3");
3052
- };
3053
- //#endregion
3054
- //#region src/components/Input/Input.tsx
3055
- function sr(e, t = !1) {
3056
- let n = e.trim();
3057
- if (!n) return "";
3058
- let r = n.startsWith("-"), i = n.replace(/[^\d,]/g, "");
3059
- if (!i) return r ? "-" : "";
3060
- let a = i.indexOf(","), o, s;
3061
- a === -1 ? o = i : (o = i.slice(0, a) || "0", s = i.slice(a + 1).replace(/,/g, "").slice(0, 2)), o = o.replace(/^0+(?=\d)/, "");
3062
- let c = o.replace(/\B(?=(\d{3})+(?!\d))/g, "."), l = r ? "-" : "";
3063
- return t ? `${l}${c},${(s ?? "").padEnd(2, "0").slice(0, 2)}` : a === -1 ? `${l}${c}` : `${l}${c},${s ?? ""}`;
3064
- }
3065
- var cr = {
3052
+ }, sr = {
3066
3053
  default: "",
3067
3054
  valid: "not-focus-within:border-[color-mix(in_srgb,var(--color-eds-green-main)_55%,var(--color-eds-outline-border))]",
3068
3055
  invalid: "not-focus-within:border-[color-mix(in_srgb,var(--color-eds-red-main)_55%,var(--color-eds-outline-border))]",
3069
3056
  loading: "not-focus-within:border-[color-mix(in_srgb,var(--color-eds-blue-main)_45%,var(--color-eds-outline-border))]"
3070
3057
  };
3071
- function lr({ className: e, label: t = "Label", disabled: n = !1, state: r = "default", size: i = "md", inputType: a = "text", required: o = !1, placeholder: l = "Digite algo...", errorMessage: u = "Campo obrigatório", fluid: d = !1, format: f, tooltip: h = null, linkText: g = null, linkUrl: _ = null, supportLink: v = null, supportLinkUrl: y = null, supportingText: b = "", lazy: S = !1, labelVariant: C, floatingLabel: w, disableAutocomplete: T = !1, isLoading: E = !1, loadingIconPosition: D = "end", icon: O, defaultValue: k, value: A, id: j, name: N, onBlur: P, onFocus: F, onKeyDown: I, onClick: L, onChange: R, ...z }) {
3072
- let ne = ee(), re = j ?? ne, [B, ie] = x(() => k?.toString() ?? ""), V = A !== void 0, ae = (V ? A : B)?.toString() ?? "", H = v ?? g, U = y ?? _, W = Jt(C, w), G = W === "floating", oe = (e, t = !1) => {
3058
+ function cr({ className: e, label: t = "Label", disabled: n = !1, state: r = "default", size: i = "md", inputType: a = "text", required: o = !1, placeholder: l = "Digite algo...", errorMessage: u = "Campo obrigatório", fluid: d = !1, format: f, tooltip: h = null, linkText: g = null, linkUrl: _ = null, supportLink: v = null, supportLinkUrl: y = null, supportingText: b = "", lazy: S = !1, labelVariant: C, floatingLabel: w, disableAutocomplete: T = !1, isLoading: E = !1, loadingIconPosition: D = "end", icon: O, defaultValue: k, value: A, id: j, name: N, onBlur: P, onFocus: F, onKeyDown: I, onClick: L, onChange: R, ...z }) {
3059
+ let ne = ee(), re = j ?? ne, [B, ie] = x(() => k?.toString() ?? ""), V = A !== void 0, ae = (V ? A : B)?.toString() ?? "", H = v ?? g, U = y ?? _, W = Jt(C, w), oe = W === "floating", se = (e) => {
3073
3060
  switch (f) {
3074
3061
  case "cep": return tr(e);
3075
3062
  case "cpf": return rr(e);
3076
3063
  case "cnpj": return nr(e);
3077
3064
  case "cpfOrCnpj": return ar(e);
3078
3065
  case "phone": return or(e);
3079
- case "currency": return sr(e, t);
3080
3066
  default: return e;
3081
3067
  }
3082
- }, K = (e, t, n = !1) => {
3083
- let r = oe(e, n);
3084
- V || ie(r), R?.(r, t);
3085
- }, q = r === "invalid", J = n || E, se = Yt[i], ce = E ? /* @__PURE__ */ p("span", {
3068
+ }, G = (e, t) => {
3069
+ let n = se(e);
3070
+ V || ie(n), R?.(n, t);
3071
+ }, K = r === "invalid", q = n || E, ce = a === "number", le = Yt[i], ue = E ? /* @__PURE__ */ p("span", {
3086
3072
  className: "inline-flex shrink-0 items-center justify-center text-eds-blue-main",
3087
3073
  "data-position": D,
3088
3074
  "aria-hidden": !0,
@@ -3102,7 +3088,7 @@ function lr({ className: e, label: t = "Label", disabled: n = !1, state: r = "de
3102
3088
  children: [/* @__PURE__ */ m("div", {
3103
3089
  className: "inline-flex min-w-0 items-center gap-2",
3104
3090
  children: [/* @__PURE__ */ m("label", {
3105
- className: M(Qt, G && "sr-only", !G && "font-medium"),
3091
+ className: M(Qt, oe && "sr-only", !oe && "font-medium"),
3106
3092
  htmlFor: re,
3107
3093
  children: [/* @__PURE__ */ p("span", { children: t }), o && /* @__PURE__ */ p("span", {
3108
3094
  className: "text-eds-red-main",
@@ -3113,7 +3099,7 @@ function lr({ className: e, label: t = "Label", disabled: n = !1, state: r = "de
3113
3099
  className: "inline-flex size-7 cursor-help items-center justify-center rounded-md text-eds-neutral-elements focus-visible:outline-2 focus-visible:outline-eds-blue-main focus-visible:outline-offset-2",
3114
3100
  "aria-label": h,
3115
3101
  title: h,
3116
- disabled: J,
3102
+ disabled: q,
3117
3103
  children: /* @__PURE__ */ p(s, {
3118
3104
  size: 16,
3119
3105
  "aria-hidden": !0
@@ -3122,24 +3108,24 @@ function lr({ className: e, label: t = "Label", disabled: n = !1, state: r = "de
3122
3108
  }), H && U && /* @__PURE__ */ p("a", {
3123
3109
  className: "text-sm whitespace-nowrap text-eds-blue-main underline underline-offset-[0.15em] aria-disabled:pointer-events-none aria-disabled:opacity-60",
3124
3110
  href: U,
3125
- "aria-disabled": J || void 0,
3126
- tabIndex: J ? -1 : 0,
3111
+ "aria-disabled": q || void 0,
3112
+ tabIndex: q ? -1 : 0,
3127
3113
  onClick: (e) => {
3128
- J && e.preventDefault();
3114
+ q && e.preventDefault();
3129
3115
  },
3130
3116
  children: H
3131
3117
  })]
3132
3118
  }),
3133
3119
  /* @__PURE__ */ m("div", {
3134
- className: M("group relative inline-flex w-full items-center gap-2 rounded-eds-xs border border-eds-outline-border bg-white", se.control, cr[r], "focus-within:border-[color-mix(in_srgb,var(--color-eds-neutral-elements)_35%,var(--color-eds-outline-border))] focus-within:shadow-[0_0_0_3px_var(--color-eds-outline-focus-ring)]", "data-disabled:cursor-not-allowed data-disabled:border-eds-outline-border data-disabled:bg-eds-neutral-background data-disabled:opacity-70"),
3135
- "data-disabled": J || void 0,
3120
+ className: M("group relative inline-flex w-full items-center gap-2 rounded-eds-xs border border-eds-outline-border bg-white", le.control, sr[r], "focus-within:border-[color-mix(in_srgb,var(--color-eds-neutral-elements)_35%,var(--color-eds-outline-border))] focus-within:shadow-[0_0_0_3px_var(--color-eds-outline-focus-ring)]", "data-disabled:cursor-not-allowed data-disabled:border-eds-outline-border data-disabled:bg-eds-neutral-background data-disabled:opacity-70"),
3121
+ "data-disabled": q || void 0,
3136
3122
  "data-state": r,
3137
3123
  "data-size": i,
3138
- "data-floating": G || void 0,
3124
+ "data-floating": oe || void 0,
3139
3125
  "data-has-value": ae ? !0 : void 0,
3140
3126
  children: [
3141
- G && /* @__PURE__ */ m("span", {
3142
- className: un(se.left),
3127
+ oe && /* @__PURE__ */ m("span", {
3128
+ className: un(le.left),
3143
3129
  children: [/* @__PURE__ */ p("span", { children: t }), o && /* @__PURE__ */ p("span", {
3144
3130
  className: "text-eds-red-main",
3145
3131
  "aria-hidden": "true",
@@ -3151,60 +3137,57 @@ function lr({ className: e, label: t = "Label", disabled: n = !1, state: r = "de
3151
3137
  size: 16,
3152
3138
  "aria-hidden": !0
3153
3139
  }),
3154
- D === "start" && ce,
3140
+ D === "start" && ue,
3155
3141
  /* @__PURE__ */ p(te, {
3156
3142
  ...z,
3157
3143
  id: re,
3158
3144
  name: N,
3159
- className: M("box-border min-w-0 flex-1 border-0 bg-transparent p-0 font-inherit text-eds-neutral-main outline-none", en, se.text),
3160
- disabled: J,
3161
- type: a,
3145
+ className: M("box-border min-w-0 flex-1 border-0 bg-transparent p-0 font-inherit text-eds-neutral-main outline-none", en, le.text),
3146
+ disabled: q,
3147
+ type: ce ? "text" : a,
3148
+ inputMode: ce ? z.inputMode ?? "decimal" : z.inputMode,
3162
3149
  required: o,
3163
3150
  placeholder: l,
3164
3151
  autoComplete: T ? "off" : z.autoComplete,
3165
- "aria-invalid": q || void 0,
3166
- "aria-describedby": q ? `${re}-desc` : void 0,
3152
+ "aria-invalid": K || void 0,
3153
+ "aria-describedby": K ? `${re}-desc` : void 0,
3167
3154
  "aria-busy": E || void 0,
3168
- value: V || f ? ae : void 0,
3169
- defaultValue: !V && !f ? k : void 0,
3155
+ value: V ? A : void 0,
3156
+ defaultValue: V ? void 0 : k,
3170
3157
  onClick: L,
3171
3158
  onKeyDown: I,
3172
3159
  onFocus: F,
3173
3160
  onBlur: (e) => {
3174
- f === "currency" ? K(e.currentTarget.value, e, !0) : S && K(e.currentTarget.value, e), P?.(e);
3161
+ P?.(e), S && G(e.currentTarget.value, e);
3175
3162
  },
3176
3163
  onChange: (e) => {
3177
- if (S) {
3178
- f && !V && ie(oe(e.currentTarget.value));
3179
- return;
3180
- }
3181
- K(e.currentTarget.value, e);
3164
+ S || G(e.currentTarget.value, e);
3182
3165
  }
3183
3166
  }),
3184
- D === "end" && ce
3167
+ D === "end" && ue
3185
3168
  ]
3186
3169
  }),
3187
- (q || b) && /* @__PURE__ */ p("div", {
3170
+ (K || b) && /* @__PURE__ */ p("div", {
3188
3171
  id: `${re}-desc`,
3189
3172
  className: "text-xs text-eds-neutral-elements data-[state=invalid]:text-eds-red-main",
3190
- "data-state": q ? "invalid" : r,
3191
- children: q ? u : b
3173
+ "data-state": K ? "invalid" : r,
3174
+ children: K ? u : b
3192
3175
  })
3193
3176
  ]
3194
3177
  });
3195
3178
  }
3196
3179
  //#endregion
3197
3180
  //#region src/components/Textarea/Textarea.tsx
3198
- var ur = {
3181
+ var lr = {
3199
3182
  default: "",
3200
3183
  valid: "not-focus-within:border-[color-mix(in_srgb,var(--color-eds-green-main)_55%,var(--color-eds-outline-border))]",
3201
3184
  invalid: "not-focus-within:border-[color-mix(in_srgb,var(--color-eds-red-main)_55%,var(--color-eds-outline-border))]"
3202
- }, dr = {
3185
+ }, ur = {
3203
3186
  sm: "min-h-20",
3204
3187
  md: "min-h-24",
3205
3188
  lg: "min-h-32"
3206
3189
  };
3207
- function fr({ className: e, label: t = "Label", disabled: n = !1, state: r = "default", size: i = "md", required: a = !1, placeholder: o = "Digite algo...", errorMessage: c = "Campo obrigatório", fluid: l = !1, tooltip: u = null, supportLink: d = null, supportLinkUrl: f = null, supportingText: h = "", labelVariant: g, floatingLabel: _, rows: v = 4, defaultValue: y, value: b, id: S, name: C, onBlur: w, onFocus: T, onKeyDown: E, onClick: D, onChange: O, ...k }) {
3190
+ function dr({ className: e, label: t = "Label", disabled: n = !1, state: r = "default", size: i = "md", required: a = !1, placeholder: o = "Digite algo...", errorMessage: c = "Campo obrigatório", fluid: l = !1, tooltip: u = null, supportLink: d = null, supportLinkUrl: f = null, supportingText: h = "", labelVariant: g, floatingLabel: _, rows: v = 4, defaultValue: y, value: b, id: S, name: C, onBlur: w, onFocus: T, onKeyDown: E, onClick: D, onChange: O, ...k }) {
3208
3191
  let te = ee(), A = S ?? te, [j, N] = x(() => y?.toString() ?? ""), P = b !== void 0, F = (P ? b : j)?.toString() ?? "", I = Jt(g, _), L = I === "floating", R = r === "invalid", z = Yt[i];
3209
3192
  return /* @__PURE__ */ m("div", {
3210
3193
  className: M(Xt, e),
@@ -3246,7 +3229,7 @@ function fr({ className: e, label: t = "Label", disabled: n = !1, state: r = "de
3246
3229
  })]
3247
3230
  }),
3248
3231
  /* @__PURE__ */ m("div", {
3249
- className: M("group relative flex w-full flex-col rounded-eds-xs border border-eds-outline-border !bg-white", z.paddingX, "py-2.5", dr[i], ur[r], "focus-within:border-[color-mix(in_srgb,var(--color-eds-neutral-elements)_35%,var(--color-eds-outline-border))] focus-within:shadow-[0_0_0_3px_var(--color-eds-outline-focus-ring)]", "data-disabled:cursor-not-allowed data-disabled:border-eds-outline-border data-disabled:!bg-eds-neutral-background data-disabled:opacity-70"),
3232
+ className: M("group relative flex w-full flex-col rounded-eds-xs border border-eds-outline-border !bg-white", z.paddingX, "py-2.5", ur[i], lr[r], "focus-within:border-[color-mix(in_srgb,var(--color-eds-neutral-elements)_35%,var(--color-eds-outline-border))] focus-within:shadow-[0_0_0_3px_var(--color-eds-outline-focus-ring)]", "data-disabled:cursor-not-allowed data-disabled:border-eds-outline-border data-disabled:!bg-eds-neutral-background data-disabled:opacity-70"),
3250
3233
  "data-disabled": n || void 0,
3251
3234
  "data-state": r,
3252
3235
  "data-size": i,
@@ -3292,12 +3275,12 @@ function fr({ className: e, label: t = "Label", disabled: n = !1, state: r = "de
3292
3275
  }
3293
3276
  //#endregion
3294
3277
  //#region src/components/Select/Select.tsx
3295
- var pr = {
3278
+ var fr = {
3296
3279
  default: "",
3297
3280
  valid: "not-focus-visible:border-[color-mix(in_srgb,var(--color-eds-green-main)_55%,var(--color-eds-outline-border))]",
3298
3281
  invalid: "not-focus-visible:border-[color-mix(in_srgb,var(--color-eds-red-main)_55%,var(--color-eds-outline-border))]"
3299
3282
  };
3300
- function mr({ label: e = "Label", labelVariant: t, floatingLabel: n, items: a, placeholder: o = "Selecione uma opção", disabled: s = !1, required: c = !1, fluid: l = !1, state: u = "default", size: d = "md", supportingText: f = "", errorMessage: h = "Selecione uma opção válida", id: g, name: _, value: v = void 0, defaultValue: y = void 0, onValueChange: b = void 0, renderItem: x = void 0, className: S }) {
3283
+ function pr({ label: e = "Label", labelVariant: t, floatingLabel: n, items: a, placeholder: o = "Selecione uma opção", disabled: s = !1, required: c = !1, fluid: l = !1, state: u = "default", size: d = "md", supportingText: f = "", errorMessage: h = "Selecione uma opção válida", id: g, name: _, value: v = void 0, defaultValue: y = void 0, onValueChange: b = void 0, renderItem: x = void 0, className: S }) {
3301
3284
  let C = ee(), w = g ?? C, T = u === "invalid", E = T || f, D = Yt[d], O = Jt(t, n), k = O === "floating";
3302
3285
  return /* @__PURE__ */ m("div", {
3303
3286
  className: M(Xt, S),
@@ -3325,7 +3308,7 @@ function mr({ label: e = "Label", labelVariant: t, floatingLabel: n, items: a, p
3325
3308
  defaultValue: y,
3326
3309
  value: v,
3327
3310
  children: [/* @__PURE__ */ m(A.Trigger, {
3328
- className: M("group relative box-border inline-flex w-full cursor-pointer items-center gap-2 rounded-eds-xs border border-eds-outline-border bg-white py-0", D.trigger, pr[u], "focus-visible:border-[color-mix(in_srgb,var(--color-eds-neutral-elements)_35%,var(--color-eds-outline-border))] focus-visible:shadow-[0_0_0_3px_var(--color-eds-outline-focus-ring)] focus-visible:outline-none", "data-disabled:cursor-not-allowed data-disabled:border-eds-outline-border data-disabled:bg-eds-neutral-background data-disabled:opacity-70"),
3311
+ className: M("group relative box-border inline-flex w-full cursor-pointer items-center gap-2 rounded-eds-xs border border-eds-outline-border bg-white py-0", D.trigger, fr[u], "focus-visible:border-[color-mix(in_srgb,var(--color-eds-neutral-elements)_35%,var(--color-eds-outline-border))] focus-visible:shadow-[0_0_0_3px_var(--color-eds-outline-focus-ring)] focus-visible:outline-none", "data-disabled:cursor-not-allowed data-disabled:border-eds-outline-border data-disabled:bg-eds-neutral-background data-disabled:opacity-70"),
3329
3312
  "data-state": u,
3330
3313
  "data-size": d,
3331
3314
  "data-disabled": s || void 0,
@@ -3390,7 +3373,7 @@ function mr({ label: e = "Label", labelVariant: t, floatingLabel: n, items: a, p
3390
3373
  }
3391
3374
  //#endregion
3392
3375
  //#region src/components/Text/Text.tsx
3393
- var hr = {
3376
+ var mr = {
3394
3377
  variant: {
3395
3378
  heading1: {
3396
3379
  classes: "text-3xl font-semibold",
@@ -3447,20 +3430,20 @@ var hr = {
3447
3430
  description: "Large text"
3448
3431
  }
3449
3432
  }
3450
- }, gr = {
3433
+ }, hr = {
3451
3434
  variant: "body",
3452
3435
  size: "md"
3453
- }, _r = /* @__PURE__ */ new Set([
3436
+ }, gr = /* @__PURE__ */ new Set([
3454
3437
  "heading1",
3455
3438
  "heading2",
3456
3439
  "heading3"
3457
- ]), vr = /* @__PURE__ */ new Set(["mono", "mono-secondary"]);
3458
- function yr({ variant: e = "body", bold: t = !1, size: n = "md", truncate: r = !1, children: i, className: a, as: o, ...s }, c) {
3459
- let l = vr.has(e), u = _r.has(e), d = y(() => o || (l || u ? "span" : "p"), [
3440
+ ]), _r = /* @__PURE__ */ new Set(["mono", "mono-secondary"]);
3441
+ function vr({ variant: e = "body", bold: t = !1, size: n = "md", truncate: r = !1, children: i, className: a, as: o, ...s }, c) {
3442
+ let l = _r.has(e), u = gr.has(e), d = y(() => o || (l || u ? "span" : "p"), [
3460
3443
  o,
3461
3444
  l,
3462
3445
  u
3463
- ]), f = N(hr.variant, e, gr.variant), m = N(hr.size, n ?? "md", gr.size);
3446
+ ]), f = N(mr.variant, e, hr.variant), m = N(mr.size, n ?? "md", hr.size);
3464
3447
  return /* @__PURE__ */ p(d, {
3465
3448
  ref: c,
3466
3449
  "data-eds-component": "Text",
@@ -3469,7 +3452,7 @@ function yr({ variant: e = "body", bold: t = !1, size: n = "md", truncate: r = !
3469
3452
  children: i
3470
3453
  });
3471
3454
  }
3472
- var br = g(yr), xr = {
3455
+ var yr = g(vr), br = {
3473
3456
  layout: {
3474
3457
  auto: {
3475
3458
  classes: "",
@@ -3500,14 +3483,14 @@ var br = g(yr), xr = {
3500
3483
  description: "Pin column to the right edge of the scroll container"
3501
3484
  }
3502
3485
  }
3503
- }, Sr = (e, t) => {
3504
- let n = N(xr.sticky, e, "left").classes, r = t === "head" ? "z-2" : "z-1", i = e === "right" ? "before:-left-6" : "before:-right-6", a = "before:pointer-events-none before:absolute before:inset-y-0 before:w-6";
3486
+ }, xr = (e, t) => {
3487
+ let n = N(br.sticky, e, "left").classes, r = t === "head" ? "z-2" : "z-1", i = e === "right" ? "before:-left-6" : "before:-right-6", a = "before:pointer-events-none before:absolute before:inset-y-0 before:w-6";
3505
3488
  return t === "cell" ? M(n, r, "bg-white", a, i, e === "right" ? "before:bg-gradient-to-r before:from-transparent before:to-white" : "before:bg-gradient-to-l before:from-transparent before:to-white") : M(n, r, "bg-white group-data-[compact]/header:bg-eds-neutral-background", a, i, e === "right" ? "before:bg-gradient-to-r before:from-transparent before:to-white group-data-[compact]/header:before:to-eds-neutral-background" : "before:bg-gradient-to-l before:from-transparent before:to-white group-data-[compact]/header:before:to-eds-neutral-background");
3506
- }, Cr = {
3489
+ }, Sr = {
3507
3490
  layout: "auto",
3508
3491
  variant: "default"
3509
- }, wr = g(({ layout: e = "auto", className: t, containerClassName: n, ...r }, i) => {
3510
- let a = M("isolate w-full", N(xr.layout, e, Cr.layout).classes, "[&_td]:border-b [&_td]:border-eds-neutral-disabled [&_tr:last-child_td]:border-b-0", "[&_td]:p-3", "[&_th]:border-b [&_th]:border-eds-neutral-disabled [&_th]:p-3 [&_th]:font-semibold [&_th]:text-base", "[&_th]:bg-white", "text-base text-left text-eds-neutral-main", t);
3492
+ }, Cr = g(({ layout: e = "auto", className: t, containerClassName: n, ...r }, i) => {
3493
+ let a = M("isolate w-full", N(br.layout, e, Sr.layout).classes, "[&_td]:border-b [&_td]:border-eds-neutral-disabled [&_tr:last-child_td]:border-b-0", "[&_td]:p-3", "[&_th]:border-b [&_th]:border-eds-neutral-disabled [&_th]:p-3 [&_th]:font-semibold [&_th]:text-base", "[&_th]:bg-white", "text-base text-left text-eds-neutral-main", t);
3511
3494
  return /* @__PURE__ */ p("div", {
3512
3495
  className: M("w-full overflow-x-auto rounded-eds-xs border border-eds-outline-border bg-white", n),
3513
3496
  children: /* @__PURE__ */ p("table", {
@@ -3517,7 +3500,7 @@ var br = g(yr), xr = {
3517
3500
  className: a
3518
3501
  })
3519
3502
  });
3520
- }), Tr = g(({ variant: e = "default", sticky: t, ...n }, r) => {
3503
+ }), wr = g(({ variant: e = "default", sticky: t, ...n }, r) => {
3521
3504
  let i = e === "compact", a = M("group/header", i && "[&_th]:bg-eds-neutral-background [&_th]:py-2 text-xs text-eds-neutral-elements", t && "[&_th]:sticky [&_th]:top-0 [&_th]:z-1", n.className);
3522
3505
  return /* @__PURE__ */ p("thead", {
3523
3506
  ref: r,
@@ -3525,41 +3508,41 @@ var br = g(yr), xr = {
3525
3508
  className: a,
3526
3509
  ...i && { "data-compact": "" }
3527
3510
  });
3528
- }), Er = g(({ sticky: e, ...t }, n) => {
3529
- let r = M("group relative", e && Sr(e, "head"), t.className);
3511
+ }), Tr = g(({ sticky: e, ...t }, n) => {
3512
+ let r = M("group relative", e && xr(e, "head"), t.className);
3530
3513
  return /* @__PURE__ */ p("th", {
3531
3514
  ref: n,
3532
3515
  ...t,
3533
3516
  className: r
3534
3517
  });
3535
- }), Dr = g(({ variant: e = Cr.variant, ...t }, n) => {
3536
- let r = M(N(xr.variant, e, Cr.variant).classes, t.className);
3518
+ }), Er = g(({ variant: e = Sr.variant, ...t }, n) => {
3519
+ let r = M(N(br.variant, e, Sr.variant).classes, t.className);
3537
3520
  return /* @__PURE__ */ p("tr", {
3538
3521
  ref: n,
3539
3522
  ...t,
3540
3523
  className: r
3541
3524
  });
3542
- }), Or = g((e, t) => /* @__PURE__ */ p("tbody", {
3525
+ }), Dr = g((e, t) => /* @__PURE__ */ p("tbody", {
3543
3526
  ref: t,
3544
3527
  ...e
3545
- })), kr = g(({ sticky: e, ...t }, n) => {
3546
- let r = M(e && Sr(e, "cell"), t.className);
3528
+ })), Or = g(({ sticky: e, ...t }, n) => {
3529
+ let r = M(e && xr(e, "cell"), t.className);
3547
3530
  return /* @__PURE__ */ p("td", {
3548
3531
  ref: n,
3549
3532
  ...t,
3550
3533
  className: r
3551
3534
  });
3552
- }), Ar = g((e, t) => /* @__PURE__ */ p("tfoot", {
3535
+ }), kr = g((e, t) => /* @__PURE__ */ p("tfoot", {
3553
3536
  ref: t,
3554
3537
  ...e
3555
- })), jr = g((e, t) => /* @__PURE__ */ p("button", {
3538
+ })), Ar = g((e, t) => /* @__PURE__ */ p("button", {
3556
3539
  ref: t,
3557
3540
  ...e,
3558
3541
  type: "button",
3559
3542
  "aria-label": "Redimensionar coluna",
3560
3543
  className: M("opacity-0 h-full group-hover:opacity-100 focus-visible:opacity-100", "w-[10px]", "flex items-center justify-center", "cursor-col-resize touch-none select-none", "absolute top-0 right-0", "m-0 bg-white p-0", "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-eds-blue-main", e.className),
3561
3544
  children: /* @__PURE__ */ p("span", { className: "h-5 w-[2px] rounded bg-eds-neutral-disabled" })
3562
- })), Mr = g(({ checked: e, indeterminate: t, onCheckedChange: n, label: r, disabled: i, ...a }, o) => /* @__PURE__ */ p(kr, {
3545
+ })), jr = g(({ checked: e, indeterminate: t, onCheckedChange: n, label: r, disabled: i, ...a }, o) => /* @__PURE__ */ p(Or, {
3563
3546
  ref: o,
3564
3547
  ...a,
3565
3548
  className: M("w-10 leading-none", a.className),
@@ -3571,7 +3554,7 @@ var br = g(yr), xr = {
3571
3554
  disabled: i,
3572
3555
  className: "relative before:absolute before:-inset-3 before:content-['']"
3573
3556
  })
3574
- })), Nr = g(({ checked: e, indeterminate: t, onCheckedChange: n, label: r, disabled: i, ...a }, o) => /* @__PURE__ */ p(Er, {
3557
+ })), Mr = g(({ checked: e, indeterminate: t, onCheckedChange: n, label: r, disabled: i, ...a }, o) => /* @__PURE__ */ p(Tr, {
3575
3558
  ref: o,
3576
3559
  ...a,
3577
3560
  className: M("w-10 leading-none", a.className),
@@ -3584,23 +3567,23 @@ var br = g(yr), xr = {
3584
3567
  className: "relative before:absolute before:-inset-3 before:content-['']"
3585
3568
  })
3586
3569
  }));
3587
- wr.displayName = "Table", Or.displayName = "Table.Body", Er.displayName = "Table.Head", Dr.displayName = "Table.Row", kr.displayName = "Table.Cell", Ar.displayName = "Table.Footer", Tr.displayName = "Table.Header", jr.displayName = "Table.ResizeHandle", Mr.displayName = "Table.CheckCell", Nr.displayName = "Table.CheckHead";
3588
- var Pr = Object.assign(wr, {
3589
- Header: Tr,
3590
- Head: Er,
3591
- Row: Dr,
3592
- Body: Or,
3593
- Cell: kr,
3594
- CheckCell: Mr,
3595
- CheckHead: Nr,
3596
- Footer: Ar,
3597
- ResizeHandle: jr
3598
- }), Fr = {
3570
+ Cr.displayName = "Table", Dr.displayName = "Table.Body", Tr.displayName = "Table.Head", Er.displayName = "Table.Row", Or.displayName = "Table.Cell", kr.displayName = "Table.Footer", wr.displayName = "Table.Header", Ar.displayName = "Table.ResizeHandle", jr.displayName = "Table.CheckCell", Mr.displayName = "Table.CheckHead";
3571
+ var Nr = Object.assign(Cr, {
3572
+ Header: wr,
3573
+ Head: Tr,
3574
+ Row: Er,
3575
+ Body: Dr,
3576
+ Cell: Or,
3577
+ CheckCell: jr,
3578
+ CheckHead: Mr,
3579
+ Footer: kr,
3580
+ ResizeHandle: Ar
3581
+ }), Pr = {
3599
3582
  variant: "segmented",
3600
3583
  size: "md"
3601
3584
  };
3602
- function Ir({ tabs: e, value: t, selectedValue: n, onValueChange: r, activateOnFocus: i, className: a, listClassName: o, indicatorClassName: s, variant: c = Fr.variant, size: l = Fr.size }) {
3603
- let u = e ?? [], d = c === "segmented", f = c === "underline", h = l === "sm", { ref: g, isOverflowing: _ } = Rr(d), v = Lr(g, _);
3585
+ function Fr({ tabs: e, value: t, selectedValue: n, onValueChange: r, activateOnFocus: i, className: a, listClassName: o, indicatorClassName: s, variant: c = Pr.variant, size: l = Pr.size }) {
3586
+ let u = e ?? [], d = c === "segmented", f = c === "underline", h = l === "sm", { ref: g, isOverflowing: _ } = Lr(d), v = Ir(g, _);
3604
3587
  if (u.length === 0) return null;
3605
3588
  let ee = u[0]?.value, y = t !== void 0, b = {
3606
3589
  value: y ? t : void 0,
@@ -3638,7 +3621,7 @@ function Ir({ tabs: e, value: t, selectedValue: n, onValueChange: r, activateOnF
3638
3621
  })]
3639
3622
  });
3640
3623
  }
3641
- function Lr(e, t) {
3624
+ function Ir(e, t) {
3642
3625
  let n = b(null), r = b(!1);
3643
3626
  return () => ({
3644
3627
  onPointerDownCapture: (i) => {
@@ -3675,7 +3658,7 @@ function Lr(e, t) {
3675
3658
  }
3676
3659
  });
3677
3660
  }
3678
- function Rr(e) {
3661
+ function Lr(e) {
3679
3662
  let t = b(null), [n, r] = x(!1);
3680
3663
  return v(() => {
3681
3664
  if (!e) return;
@@ -3689,4 +3672,4 @@ function Rr(e) {
3689
3672
  };
3690
3673
  }
3691
3674
  //#endregion
3692
- export { Wt as Attachment, Vt as AttachmentAction, Bt as AttachmentActions, Lt as AttachmentContent, zt as AttachmentDescription, Ut as AttachmentGroup, It as AttachmentMedia, Rt as AttachmentTitle, Ht as AttachmentTrigger, z as Button, ne as COLORS, wt as Calendar, Mt as Card, qt as Checkbox, mn as Combobox, yn as DatePicker, Dn as DateTimePicker, Vn as Dialog, Qn as Empty, Yn as FormDialog, xt as IconButton, lr as Input, mr as Select, Pr as Table, Ir as Tabs, br as Text, fr as Textarea };
3675
+ export { Wt as Attachment, Vt as AttachmentAction, Bt as AttachmentActions, Lt as AttachmentContent, zt as AttachmentDescription, Ut as AttachmentGroup, It as AttachmentMedia, Rt as AttachmentTitle, Ht as AttachmentTrigger, z as Button, ne as COLORS, wt as Calendar, Mt as Card, qt as Checkbox, mn as Combobox, yn as DatePicker, Dn as DateTimePicker, Vn as Dialog, Qn as Empty, Yn as FormDialog, xt as IconButton, cr as Input, pr as Select, Nr as Table, Fr as Tabs, yr as Text, dr as Textarea };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vincisys/eyeson",
3
3
  "private": false,
4
- "version": "0.4.11",
4
+ "version": "0.4.13",
5
5
  "type": "module",
6
6
  "publishConfig": {
7
7
  "access": "public"