@vincisys/eyeson 0.4.12 → 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.
- package/dist/components/Input/Input.d.ts.map +1 -1
- package/dist/index.js +88 -88
- package/package.json +1 -1
|
@@ -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,GAAG,KAAK,GAAG,KAAK,GAAG,MAAM,GAAG,WAAW,GAAG,OAAO,CAAC;AACzE,MAAM,MAAM,SAAS,GAAG,SAAS,CAAC;AAClC,wEAAwE;AACxE,MAAM,MAAM,iBAAiB,GAAG,iBAAiB,CAAC;AAWlD,MAAM,MAAM,UAAU,GAAG,IAAI,CAC5B,cAAc,CAAC,OAAO,CAAC,EACvB,WAAW,GAAG,MAAM,GAAG,UAAU,GAAG,UAAU,GAAG,MAAM,CACvD,GAAG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,UAAU,CAAC;IACnB,uDAAuD;IACvD,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,QAAQ,CAAC;IACxC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IAC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ANGED
|
@@ -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
|
|
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
|
|
151
|
-
function
|
|
152
|
-
return
|
|
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
|
|
157
|
-
let n =
|
|
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
|
|
163
|
-
return
|
|
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
|
|
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 =
|
|
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 =
|
|
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
|
|
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
|
|
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
|
|
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] =
|
|
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 =
|
|
206
|
-
return r.setFullYear(n, 0, 4), r.setHours(0, 0, 0, 0),
|
|
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] =
|
|
217
|
-
return +
|
|
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 =
|
|
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 =
|
|
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 =
|
|
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 =
|
|
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 =
|
|
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 =
|
|
777
|
-
return a.setFullYear(i, 0, r), a.setHours(0, 0, 0, 0),
|
|
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 =
|
|
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(
|
|
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 =
|
|
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] =
|
|
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
|
|
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 =
|
|
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(
|
|
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 =
|
|
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) =>
|
|
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
|
|
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
|
|
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
|
|
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:
|
|
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: () =>
|
|
2453
|
-
className: M("rounded-md px-3 py-1.5 text-left whitespace-nowrap",
|
|
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) =>
|
|
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 =
|
|
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),
|
|
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(
|
|
2565
|
+
e(se.current, "hour", le), e(G.current, "minute", ue);
|
|
2566
2566
|
});
|
|
2567
2567
|
}, [
|
|
2568
2568
|
ie,
|
|
2569
|
-
|
|
2570
|
-
|
|
2569
|
+
le,
|
|
2570
|
+
ue
|
|
2571
2571
|
]);
|
|
2572
|
-
function
|
|
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),
|
|
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),
|
|
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),
|
|
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),
|
|
2598
|
+
W(t), H(t), J(t);
|
|
2599
2599
|
}
|
|
2600
2600
|
function _e() {
|
|
2601
|
-
U &&
|
|
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) =>
|
|
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: [
|
|
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}`)),
|
|
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:
|
|
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 =
|
|
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:
|
|
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:
|
|
2739
|
-
let t =
|
|
2738
|
+
children: K.map((e) => {
|
|
2739
|
+
let t = ue === e;
|
|
2740
2740
|
return /* @__PURE__ */ p("button", {
|
|
2741
2741
|
type: "button",
|
|
2742
2742
|
role: "option",
|
|
@@ -3056,7 +3056,7 @@ var $n = /\D/g, er = function(e) {
|
|
|
3056
3056
|
loading: "not-focus-within:border-[color-mix(in_srgb,var(--color-eds-blue-main)_45%,var(--color-eds-outline-border))]"
|
|
3057
3057
|
};
|
|
3058
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),
|
|
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) => {
|
|
3060
3060
|
switch (f) {
|
|
3061
3061
|
case "cep": return tr(e);
|
|
3062
3062
|
case "cpf": return rr(e);
|
|
@@ -3065,10 +3065,10 @@ function cr({ className: e, label: t = "Label", disabled: n = !1, state: r = "de
|
|
|
3065
3065
|
case "phone": return or(e);
|
|
3066
3066
|
default: return e;
|
|
3067
3067
|
}
|
|
3068
|
-
},
|
|
3069
|
-
let n =
|
|
3068
|
+
}, G = (e, t) => {
|
|
3069
|
+
let n = se(e);
|
|
3070
3070
|
V || ie(n), R?.(n, t);
|
|
3071
|
-
},
|
|
3071
|
+
}, K = r === "invalid", q = n || E, ce = a === "number", le = Yt[i], ue = E ? /* @__PURE__ */ p("span", {
|
|
3072
3072
|
className: "inline-flex shrink-0 items-center justify-center text-eds-blue-main",
|
|
3073
3073
|
"data-position": D,
|
|
3074
3074
|
"aria-hidden": !0,
|
|
@@ -3088,7 +3088,7 @@ function cr({ className: e, label: t = "Label", disabled: n = !1, state: r = "de
|
|
|
3088
3088
|
children: [/* @__PURE__ */ m("div", {
|
|
3089
3089
|
className: "inline-flex min-w-0 items-center gap-2",
|
|
3090
3090
|
children: [/* @__PURE__ */ m("label", {
|
|
3091
|
-
className: M(Qt,
|
|
3091
|
+
className: M(Qt, oe && "sr-only", !oe && "font-medium"),
|
|
3092
3092
|
htmlFor: re,
|
|
3093
3093
|
children: [/* @__PURE__ */ p("span", { children: t }), o && /* @__PURE__ */ p("span", {
|
|
3094
3094
|
className: "text-eds-red-main",
|
|
@@ -3099,7 +3099,7 @@ function cr({ className: e, label: t = "Label", disabled: n = !1, state: r = "de
|
|
|
3099
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",
|
|
3100
3100
|
"aria-label": h,
|
|
3101
3101
|
title: h,
|
|
3102
|
-
disabled:
|
|
3102
|
+
disabled: q,
|
|
3103
3103
|
children: /* @__PURE__ */ p(s, {
|
|
3104
3104
|
size: 16,
|
|
3105
3105
|
"aria-hidden": !0
|
|
@@ -3108,24 +3108,24 @@ function cr({ className: e, label: t = "Label", disabled: n = !1, state: r = "de
|
|
|
3108
3108
|
}), H && U && /* @__PURE__ */ p("a", {
|
|
3109
3109
|
className: "text-sm whitespace-nowrap text-eds-blue-main underline underline-offset-[0.15em] aria-disabled:pointer-events-none aria-disabled:opacity-60",
|
|
3110
3110
|
href: U,
|
|
3111
|
-
"aria-disabled":
|
|
3112
|
-
tabIndex:
|
|
3111
|
+
"aria-disabled": q || void 0,
|
|
3112
|
+
tabIndex: q ? -1 : 0,
|
|
3113
3113
|
onClick: (e) => {
|
|
3114
|
-
|
|
3114
|
+
q && e.preventDefault();
|
|
3115
3115
|
},
|
|
3116
3116
|
children: H
|
|
3117
3117
|
})]
|
|
3118
3118
|
}),
|
|
3119
3119
|
/* @__PURE__ */ m("div", {
|
|
3120
|
-
className: M("group relative inline-flex w-full items-center gap-2 rounded-eds-xs border border-eds-outline-border bg-white",
|
|
3121
|
-
"data-disabled":
|
|
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,
|
|
3122
3122
|
"data-state": r,
|
|
3123
3123
|
"data-size": i,
|
|
3124
|
-
"data-floating":
|
|
3124
|
+
"data-floating": oe || void 0,
|
|
3125
3125
|
"data-has-value": ae ? !0 : void 0,
|
|
3126
3126
|
children: [
|
|
3127
|
-
|
|
3128
|
-
className: un(
|
|
3127
|
+
oe && /* @__PURE__ */ m("span", {
|
|
3128
|
+
className: un(le.left),
|
|
3129
3129
|
children: [/* @__PURE__ */ p("span", { children: t }), o && /* @__PURE__ */ p("span", {
|
|
3130
3130
|
className: "text-eds-red-main",
|
|
3131
3131
|
"aria-hidden": "true",
|
|
@@ -3137,20 +3137,20 @@ function cr({ className: e, label: t = "Label", disabled: n = !1, state: r = "de
|
|
|
3137
3137
|
size: 16,
|
|
3138
3138
|
"aria-hidden": !0
|
|
3139
3139
|
}),
|
|
3140
|
-
D === "start" &&
|
|
3140
|
+
D === "start" && ue,
|
|
3141
3141
|
/* @__PURE__ */ p(te, {
|
|
3142
3142
|
...z,
|
|
3143
3143
|
id: re,
|
|
3144
3144
|
name: N,
|
|
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,
|
|
3146
|
-
disabled:
|
|
3147
|
-
type: a,
|
|
3148
|
-
|
|
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,
|
|
3149
3149
|
required: o,
|
|
3150
3150
|
placeholder: l,
|
|
3151
3151
|
autoComplete: T ? "off" : z.autoComplete,
|
|
3152
|
-
"aria-invalid":
|
|
3153
|
-
"aria-describedby":
|
|
3152
|
+
"aria-invalid": K || void 0,
|
|
3153
|
+
"aria-describedby": K ? `${re}-desc` : void 0,
|
|
3154
3154
|
"aria-busy": E || void 0,
|
|
3155
3155
|
value: V ? A : void 0,
|
|
3156
3156
|
defaultValue: V ? void 0 : k,
|
|
@@ -3158,20 +3158,20 @@ function cr({ className: e, label: t = "Label", disabled: n = !1, state: r = "de
|
|
|
3158
3158
|
onKeyDown: I,
|
|
3159
3159
|
onFocus: F,
|
|
3160
3160
|
onBlur: (e) => {
|
|
3161
|
-
P?.(e), S &&
|
|
3161
|
+
P?.(e), S && G(e.currentTarget.value, e);
|
|
3162
3162
|
},
|
|
3163
3163
|
onChange: (e) => {
|
|
3164
|
-
S ||
|
|
3164
|
+
S || G(e.currentTarget.value, e);
|
|
3165
3165
|
}
|
|
3166
3166
|
}),
|
|
3167
|
-
D === "end" &&
|
|
3167
|
+
D === "end" && ue
|
|
3168
3168
|
]
|
|
3169
3169
|
}),
|
|
3170
|
-
(
|
|
3170
|
+
(K || b) && /* @__PURE__ */ p("div", {
|
|
3171
3171
|
id: `${re}-desc`,
|
|
3172
3172
|
className: "text-xs text-eds-neutral-elements data-[state=invalid]:text-eds-red-main",
|
|
3173
|
-
"data-state":
|
|
3174
|
-
children:
|
|
3173
|
+
"data-state": K ? "invalid" : r,
|
|
3174
|
+
children: K ? u : b
|
|
3175
3175
|
})
|
|
3176
3176
|
]
|
|
3177
3177
|
});
|