prometeo-design-system 2.7.8 → 2.7.9
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/Button.es.js +5 -5
- package/dist/{CardProfile-WHoeSibd.js → CardProfile-DV3gwvqE.js} +24 -24
- package/dist/CardProfile.es.js +1 -1
- package/dist/CheckBox.es.js +60 -60
- package/dist/CheckboxFormik.es.js +2 -2
- package/dist/DatePicker.es.js +68 -68
- package/dist/DrawerDesktop.es.js +4 -4
- package/dist/DropZone.es.js +32 -32
- package/dist/FAButton.es.js +2 -2
- package/dist/HelperComponent-U6mPwuDH.js +24 -0
- package/dist/Icons/Icons.d.ts +1 -61
- package/dist/Icons.es.js +8 -68
- package/dist/{ImageGallery-WKzUevOQ.js → ImageGallery-D8nIvBpV.js} +43 -43
- package/dist/ImageGallery.es.js +1 -1
- package/dist/{Input-D6as6xD-.js → Input-60IT1aGF.js} +61 -61
- package/dist/Input.es.js +1 -1
- package/dist/InputFormik.es.js +32 -32
- package/dist/InputFormikV2.es.js +1 -1
- package/dist/InputMultiple.es.js +51 -51
- package/dist/Logo.es.js +3 -3
- package/dist/Menu.es.js +2 -2
- package/dist/OtpInput.es.js +42 -42
- package/dist/Pagination.es.js +1 -1
- package/dist/RadioButton.es.js +1 -1
- package/dist/{Select-sdfP2TL0.js → Select-C4UvSsof.js} +164 -164
- package/dist/Select.es.js +1 -1
- package/dist/SelectFormik.es.js +1 -1
- package/dist/SelectFormikLegacy.es.js +25 -25
- package/dist/SelectSearch.es.js +1 -1
- package/dist/Steps.es.js +14 -14
- package/dist/TabLinks.es.js +2 -2
- package/dist/Table.es.js +2 -2
- package/dist/Toast.es.js +23 -23
- package/dist/Tooltip.es.js +7 -7
- package/dist/components/CheckBox/CheckBox.d.ts +5 -4
- package/dist/components/Toaster/Toaster.d.ts +3 -3
- package/dist/exports/Icons.d.ts +1 -1
- package/dist/prometeo-design-system.css +1 -1
- package/dist/prometeo-design-system.es.js +125 -126
- package/package.json +1 -1
- package/dist/HelperComponent-BeNlTMqI.js +0 -24
- package/dist/components/Spinner/SpinnerV2.d.ts +0 -12
package/dist/DatePicker.es.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { j as q } from "./jsx-runtime-DKDX3adD.js";
|
|
2
2
|
import m, { createContext as mn, useContext as hn, useCallback as R, useRef as Se, useLayoutEffect as yn, useState as he, useEffect as _e, useMemo as fe, memo as pn } from "react";
|
|
3
3
|
import { InputMultiple as gn } from "./InputMultiple.es.js";
|
|
4
|
-
import { I as wn } from "./Input-
|
|
4
|
+
import { I as wn } from "./Input-60IT1aGF.js";
|
|
5
5
|
import { createPortal as bn } from "react-dom";
|
|
6
|
+
import { Icons as Mt } from "./Icons.es.js";
|
|
6
7
|
import { c as Be } from "./cn-B6yFEsav.js";
|
|
7
|
-
import { Calendar as Mt } from "./Icons.es.js";
|
|
8
8
|
import vt from "./Button.es.js";
|
|
9
9
|
function Mn(e, t, n = "long") {
|
|
10
10
|
return new Intl.DateTimeFormat("en-US", {
|
|
@@ -155,22 +155,22 @@ class L extends re {
|
|
|
155
155
|
//#endregion
|
|
156
156
|
}
|
|
157
157
|
const Ft = 6048e5, On = 864e5, Ot = Symbol.for("constructDateFrom");
|
|
158
|
-
function
|
|
158
|
+
function $(e, t) {
|
|
159
159
|
return typeof e == "function" ? e(t) : e && typeof e == "object" && Ot in e ? e[Ot](t) : e instanceof Date ? new e.constructor(t) : new Date(t);
|
|
160
160
|
}
|
|
161
161
|
function Y(e, t) {
|
|
162
|
-
return
|
|
162
|
+
return $(t || e, e);
|
|
163
163
|
}
|
|
164
164
|
function Bt(e, t, n) {
|
|
165
165
|
const o = Y(e, n?.in);
|
|
166
|
-
return isNaN(t) ?
|
|
166
|
+
return isNaN(t) ? $(e, NaN) : (t && o.setDate(o.getDate() + t), o);
|
|
167
167
|
}
|
|
168
168
|
function It(e, t, n) {
|
|
169
169
|
const o = Y(e, n?.in);
|
|
170
|
-
if (isNaN(t)) return
|
|
170
|
+
if (isNaN(t)) return $(e, NaN);
|
|
171
171
|
if (!t)
|
|
172
172
|
return o;
|
|
173
|
-
const r = o.getDate(), a =
|
|
173
|
+
const r = o.getDate(), a = $(e, o.getTime());
|
|
174
174
|
a.setMonth(o.getMonth() + t + 1, 0);
|
|
175
175
|
const i = a.getDate();
|
|
176
176
|
return r >= i ? a : (o.setFullYear(
|
|
@@ -191,9 +191,9 @@ function Ie(e, t) {
|
|
|
191
191
|
return xe(e, { ...t, weekStartsOn: 1 });
|
|
192
192
|
}
|
|
193
193
|
function jt(e, t) {
|
|
194
|
-
const n = Y(e, t?.in), o = n.getFullYear(), r =
|
|
194
|
+
const n = Y(e, t?.in), o = n.getFullYear(), r = $(n, 0);
|
|
195
195
|
r.setFullYear(o + 1, 0, 4), r.setHours(0, 0, 0, 0);
|
|
196
|
-
const a = Ie(r), i =
|
|
196
|
+
const a = Ie(r), i = $(n, 0);
|
|
197
197
|
i.setFullYear(o, 0, 4), i.setHours(0, 0, 0, 0);
|
|
198
198
|
const s = Ie(i);
|
|
199
199
|
return n.getTime() >= a.getTime() ? o + 1 : n.getTime() >= s.getTime() ? o : o - 1;
|
|
@@ -213,7 +213,7 @@ function Wt(e) {
|
|
|
213
213
|
return n.setUTCFullYear(t.getFullYear()), +e - +n;
|
|
214
214
|
}
|
|
215
215
|
function Ne(e, ...t) {
|
|
216
|
-
const n =
|
|
216
|
+
const n = $.bind(
|
|
217
217
|
null,
|
|
218
218
|
t.find((o) => typeof o == "object")
|
|
219
219
|
);
|
|
@@ -232,7 +232,7 @@ function Ht(e, t, n) {
|
|
|
232
232
|
return Math.round((s - c) / On);
|
|
233
233
|
}
|
|
234
234
|
function Sn(e, t) {
|
|
235
|
-
const n = jt(e, t), o =
|
|
235
|
+
const n = jt(e, t), o = $(e, 0);
|
|
236
236
|
return o.setFullYear(n, 0, 4), o.setHours(0, 0, 0, 0), Ie(o);
|
|
237
237
|
}
|
|
238
238
|
function Cn(e, t, n) {
|
|
@@ -244,18 +244,18 @@ function xn(e, t, n) {
|
|
|
244
244
|
function Nn(e, t) {
|
|
245
245
|
let n, o = t?.in;
|
|
246
246
|
return e.forEach((r) => {
|
|
247
|
-
!o && typeof r == "object" && (o =
|
|
247
|
+
!o && typeof r == "object" && (o = $.bind(null, r));
|
|
248
248
|
const a = Y(r, o);
|
|
249
249
|
(!n || n < a || isNaN(+a)) && (n = a);
|
|
250
|
-
}),
|
|
250
|
+
}), $(o, n || NaN);
|
|
251
251
|
}
|
|
252
252
|
function Pn(e, t) {
|
|
253
253
|
let n, o = t?.in;
|
|
254
254
|
return e.forEach((r) => {
|
|
255
|
-
!o && typeof r == "object" && (o =
|
|
255
|
+
!o && typeof r == "object" && (o = $.bind(null, r));
|
|
256
256
|
const a = Y(r, o);
|
|
257
257
|
(!n || n > a || isNaN(+a)) && (n = a);
|
|
258
|
-
}),
|
|
258
|
+
}), $(o, n || NaN);
|
|
259
259
|
}
|
|
260
260
|
function Tn(e, t, n) {
|
|
261
261
|
const [o, r] = Ne(
|
|
@@ -265,11 +265,11 @@ function Tn(e, t, n) {
|
|
|
265
265
|
);
|
|
266
266
|
return +je(o) == +je(r);
|
|
267
267
|
}
|
|
268
|
-
function
|
|
268
|
+
function At(e) {
|
|
269
269
|
return e instanceof Date || typeof e == "object" && Object.prototype.toString.call(e) === "[object Date]";
|
|
270
270
|
}
|
|
271
271
|
function Yn(e) {
|
|
272
|
-
return !(
|
|
272
|
+
return !(!At(e) && typeof e != "number" || isNaN(+Y(e)));
|
|
273
273
|
}
|
|
274
274
|
function En(e, t, n) {
|
|
275
275
|
const [o, r] = Ne(
|
|
@@ -283,19 +283,19 @@ function _n(e, t) {
|
|
|
283
283
|
const n = Y(e, t?.in), o = n.getMonth();
|
|
284
284
|
return n.setFullYear(n.getFullYear(), o + 1, 0), n.setHours(23, 59, 59, 999), n;
|
|
285
285
|
}
|
|
286
|
-
function
|
|
286
|
+
function $t(e, t) {
|
|
287
287
|
const [n, o] = Ne(e, t.start, t.end);
|
|
288
288
|
return { start: n, end: o };
|
|
289
289
|
}
|
|
290
290
|
function Fn(e, t) {
|
|
291
|
-
const { start: n, end: o } =
|
|
291
|
+
const { start: n, end: o } = $t(t?.in, e);
|
|
292
292
|
let r = +n > +o;
|
|
293
293
|
const a = r ? +n : +o, i = r ? o : n;
|
|
294
294
|
i.setHours(0, 0, 0, 0), i.setDate(1);
|
|
295
295
|
let s = 1;
|
|
296
296
|
const c = [];
|
|
297
297
|
for (; +i <= a; )
|
|
298
|
-
c.push(
|
|
298
|
+
c.push($(n, i)), i.setMonth(i.getMonth() + s);
|
|
299
299
|
return r ? c.reverse() : c;
|
|
300
300
|
}
|
|
301
301
|
function Bn(e, t) {
|
|
@@ -311,14 +311,14 @@ function qt(e, t) {
|
|
|
311
311
|
return n.setFullYear(n.getFullYear(), 0, 1), n.setHours(0, 0, 0, 0), n;
|
|
312
312
|
}
|
|
313
313
|
function jn(e, t) {
|
|
314
|
-
const { start: n, end: o } =
|
|
314
|
+
const { start: n, end: o } = $t(t?.in, e);
|
|
315
315
|
let r = +n > +o;
|
|
316
316
|
const a = r ? +n : +o, i = r ? o : n;
|
|
317
317
|
i.setHours(0, 0, 0, 0), i.setMonth(0, 1);
|
|
318
318
|
let s = 1;
|
|
319
319
|
const c = [];
|
|
320
320
|
for (; +i <= a; )
|
|
321
|
-
c.push(
|
|
321
|
+
c.push($(n, i)), i.setFullYear(i.getFullYear() + s);
|
|
322
322
|
return r ? c.reverse() : c;
|
|
323
323
|
}
|
|
324
324
|
function Rt(e, t) {
|
|
@@ -328,7 +328,7 @@ function Rt(e, t) {
|
|
|
328
328
|
function Hn(e, t) {
|
|
329
329
|
return Rt(e, { ...t, weekStartsOn: 1 });
|
|
330
330
|
}
|
|
331
|
-
const
|
|
331
|
+
const An = {
|
|
332
332
|
lessThanXSeconds: {
|
|
333
333
|
one: "less than a second",
|
|
334
334
|
other: "less than {{count}} seconds"
|
|
@@ -390,9 +390,9 @@ const $n = {
|
|
|
390
390
|
one: "almost 1 year",
|
|
391
391
|
other: "almost {{count}} years"
|
|
392
392
|
}
|
|
393
|
-
},
|
|
393
|
+
}, $n = (e, t, n) => {
|
|
394
394
|
let o;
|
|
395
|
-
const r =
|
|
395
|
+
const r = An[e];
|
|
396
396
|
return typeof r == "string" ? o = r : t === 1 ? o = r.one : o = r.other.replace("{{count}}", t.toString()), n?.addSuffix ? n.comparison && n.comparison > 0 ? "in " + o : o + " ago" : o;
|
|
397
397
|
};
|
|
398
398
|
function Ce(e) {
|
|
@@ -749,7 +749,7 @@ const ro = /^(\d+)(th|st|nd|rd)?/i, ao = /\d+/i, so = {
|
|
|
749
749
|
})
|
|
750
750
|
}, wt = {
|
|
751
751
|
code: "en-US",
|
|
752
|
-
formatDistance:
|
|
752
|
+
formatDistance: $n,
|
|
753
753
|
formatLong: zn,
|
|
754
754
|
formatRelative: Gn,
|
|
755
755
|
localize: to,
|
|
@@ -768,15 +768,15 @@ function zt(e, t) {
|
|
|
768
768
|
return Math.round(o / Ft) + 1;
|
|
769
769
|
}
|
|
770
770
|
function Zt(e, t) {
|
|
771
|
-
const n = Y(e, t?.in), o = n.getFullYear(), r = He(), a = t?.firstWeekContainsDate ?? t?.locale?.options?.firstWeekContainsDate ?? r.firstWeekContainsDate ?? r.locale?.options?.firstWeekContainsDate ?? 1, i =
|
|
771
|
+
const n = Y(e, t?.in), o = n.getFullYear(), r = He(), a = t?.firstWeekContainsDate ?? t?.locale?.options?.firstWeekContainsDate ?? r.firstWeekContainsDate ?? r.locale?.options?.firstWeekContainsDate ?? 1, i = $(t?.in || e, 0);
|
|
772
772
|
i.setFullYear(o + 1, 0, a), i.setHours(0, 0, 0, 0);
|
|
773
|
-
const s = xe(i, t), c =
|
|
773
|
+
const s = xe(i, t), c = $(t?.in || e, 0);
|
|
774
774
|
c.setFullYear(o, 0, a), c.setHours(0, 0, 0, 0);
|
|
775
775
|
const d = xe(c, t);
|
|
776
776
|
return +n >= +s ? o + 1 : +n >= +d ? o : o - 1;
|
|
777
777
|
}
|
|
778
778
|
function bo(e, t) {
|
|
779
|
-
const n = He(), o = t?.firstWeekContainsDate ?? t?.locale?.options?.firstWeekContainsDate ?? n.firstWeekContainsDate ?? n.locale?.options?.firstWeekContainsDate ?? 1, r = Zt(e, t), a =
|
|
779
|
+
const n = He(), o = t?.firstWeekContainsDate ?? t?.locale?.options?.firstWeekContainsDate ?? n.firstWeekContainsDate ?? n.locale?.options?.firstWeekContainsDate ?? 1, r = Zt(e, t), a = $(t?.in || e, 0);
|
|
780
780
|
return a.setFullYear(r, 0, o), a.setHours(0, 0, 0, 0), xe(a, t);
|
|
781
781
|
}
|
|
782
782
|
function Gt(e, t) {
|
|
@@ -1522,7 +1522,7 @@ function Fo(e) {
|
|
|
1522
1522
|
return t ? t[1].replace(Yo, "'") : e;
|
|
1523
1523
|
}
|
|
1524
1524
|
function Bo(e, t) {
|
|
1525
|
-
const n = Y(e, t?.in), o = n.getFullYear(), r = n.getMonth(), a =
|
|
1525
|
+
const n = Y(e, t?.in), o = n.getFullYear(), r = n.getMonth(), a = $(n, 0);
|
|
1526
1526
|
return a.setFullYear(o, r + 1, 0), a.setHours(0, 0, 0, 0), a.getDate();
|
|
1527
1527
|
}
|
|
1528
1528
|
function Io(e, t) {
|
|
@@ -1534,10 +1534,10 @@ function jo(e, t) {
|
|
|
1534
1534
|
function Ho(e, t) {
|
|
1535
1535
|
return +Y(e) > +Y(t);
|
|
1536
1536
|
}
|
|
1537
|
-
function
|
|
1537
|
+
function Ao(e, t) {
|
|
1538
1538
|
return +Y(e) < +Y(t);
|
|
1539
1539
|
}
|
|
1540
|
-
function
|
|
1540
|
+
function $o(e, t, n) {
|
|
1541
1541
|
const [o, r] = Ne(
|
|
1542
1542
|
n?.in,
|
|
1543
1543
|
e,
|
|
@@ -1554,14 +1554,14 @@ function qo(e, t, n) {
|
|
|
1554
1554
|
return o.getFullYear() === r.getFullYear();
|
|
1555
1555
|
}
|
|
1556
1556
|
function Ro(e, t, n) {
|
|
1557
|
-
const o = Y(e, n?.in), r = o.getFullYear(), a = o.getDate(), i =
|
|
1557
|
+
const o = Y(e, n?.in), r = o.getFullYear(), a = o.getDate(), i = $(e, 0);
|
|
1558
1558
|
i.setFullYear(r, t, 15), i.setHours(0, 0, 0, 0);
|
|
1559
1559
|
const s = Bo(i);
|
|
1560
1560
|
return o.setMonth(t, Math.min(a, s)), o;
|
|
1561
1561
|
}
|
|
1562
1562
|
function Lo(e, t, n) {
|
|
1563
1563
|
const o = Y(e, n?.in);
|
|
1564
|
-
return isNaN(+o) ?
|
|
1564
|
+
return isNaN(+o) ? $(e, NaN) : (o.setFullYear(t), o);
|
|
1565
1565
|
}
|
|
1566
1566
|
const Pt = 5, zo = 4;
|
|
1567
1567
|
function Zo(e, t) {
|
|
@@ -1595,7 +1595,7 @@ class K {
|
|
|
1595
1595
|
}, this.endOfBroadcastWeek = (o) => this.overrides?.endOfBroadcastWeek ? this.overrides.endOfBroadcastWeek(o) : Go(o, this), this.endOfISOWeek = (o) => this.overrides?.endOfISOWeek ? this.overrides.endOfISOWeek(o) : Hn(o), this.endOfMonth = (o) => this.overrides?.endOfMonth ? this.overrides.endOfMonth(o) : _n(o), this.endOfWeek = (o, r) => this.overrides?.endOfWeek ? this.overrides.endOfWeek(o, r) : Rt(o, this.options), this.endOfYear = (o) => this.overrides?.endOfYear ? this.overrides.endOfYear(o) : In(o), this.format = (o, r, a) => {
|
|
1596
1596
|
const i = this.overrides?.format ? this.overrides.format(o, r, this.options) : _o(o, r, this.options);
|
|
1597
1597
|
return this.options.numerals && this.options.numerals !== "latn" ? this.replaceDigits(i) : i;
|
|
1598
|
-
}, this.getISOWeek = (o) => this.overrides?.getISOWeek ? this.overrides.getISOWeek(o) : zt(o), this.getMonth = (o, r) => this.overrides?.getMonth ? this.overrides.getMonth(o, this.options) : Io(o, this.options), this.getYear = (o, r) => this.overrides?.getYear ? this.overrides.getYear(o, this.options) : jo(o, this.options), this.getWeek = (o, r) => this.overrides?.getWeek ? this.overrides.getWeek(o, this.options) : Gt(o, this.options), this.isAfter = (o, r) => this.overrides?.isAfter ? this.overrides.isAfter(o, r) : Ho(o, r), this.isBefore = (o, r) => this.overrides?.isBefore ? this.overrides.isBefore(o, r) :
|
|
1598
|
+
}, this.getISOWeek = (o) => this.overrides?.getISOWeek ? this.overrides.getISOWeek(o) : zt(o), this.getMonth = (o, r) => this.overrides?.getMonth ? this.overrides.getMonth(o, this.options) : Io(o, this.options), this.getYear = (o, r) => this.overrides?.getYear ? this.overrides.getYear(o, this.options) : jo(o, this.options), this.getWeek = (o, r) => this.overrides?.getWeek ? this.overrides.getWeek(o, this.options) : Gt(o, this.options), this.isAfter = (o, r) => this.overrides?.isAfter ? this.overrides.isAfter(o, r) : Ho(o, r), this.isBefore = (o, r) => this.overrides?.isBefore ? this.overrides.isBefore(o, r) : Ao(o, r), this.isDate = (o) => this.overrides?.isDate ? this.overrides.isDate(o) : At(o), this.isSameDay = (o, r) => this.overrides?.isSameDay ? this.overrides.isSameDay(o, r) : Tn(o, r), this.isSameMonth = (o, r) => this.overrides?.isSameMonth ? this.overrides.isSameMonth(o, r) : $o(o, r), this.isSameYear = (o, r) => this.overrides?.isSameYear ? this.overrides.isSameYear(o, r) : qo(o, r), this.max = (o) => this.overrides?.max ? this.overrides.max(o) : Nn(o), this.min = (o) => this.overrides?.min ? this.overrides.min(o) : Pn(o), this.setMonth = (o, r) => this.overrides?.setMonth ? this.overrides.setMonth(o, r) : Ro(o, r), this.setYear = (o, r) => this.overrides?.setYear ? this.overrides.setYear(o, r) : Lo(o, r), this.startOfBroadcastWeek = (o, r) => this.overrides?.startOfBroadcastWeek ? this.overrides.startOfBroadcastWeek(o, this) : Xt(o, this), this.startOfDay = (o) => this.overrides?.startOfDay ? this.overrides.startOfDay(o) : je(o), this.startOfISOWeek = (o) => this.overrides?.startOfISOWeek ? this.overrides.startOfISOWeek(o) : Ie(o), this.startOfMonth = (o) => this.overrides?.startOfMonth ? this.overrides.startOfMonth(o) : Bn(o), this.startOfWeek = (o, r) => this.overrides?.startOfWeek ? this.overrides.startOfWeek(o, this.options) : xe(o, this.options), this.startOfYear = (o) => this.overrides?.startOfYear ? this.overrides.startOfYear(o) : qt(o), this.options = { locale: wt, ...t }, this.overrides = n;
|
|
1599
1599
|
}
|
|
1600
1600
|
/**
|
|
1601
1601
|
* Generates a mapping of Arabic digits (0-9) to the target numbering system
|
|
@@ -1788,18 +1788,18 @@ function ir(e) {
|
|
|
1788
1788
|
return m.createElement("div", { ...e });
|
|
1789
1789
|
}
|
|
1790
1790
|
const Ut = mn(void 0);
|
|
1791
|
-
function
|
|
1791
|
+
function Ae() {
|
|
1792
1792
|
const e = hn(Ut);
|
|
1793
1793
|
if (e === void 0)
|
|
1794
1794
|
throw new Error("useDayPicker() must be used within a custom component.");
|
|
1795
1795
|
return e;
|
|
1796
1796
|
}
|
|
1797
1797
|
function cr(e) {
|
|
1798
|
-
const { components: t } =
|
|
1798
|
+
const { components: t } = Ae();
|
|
1799
1799
|
return m.createElement(t.Dropdown, { ...e });
|
|
1800
1800
|
}
|
|
1801
1801
|
function ur(e) {
|
|
1802
|
-
const { onPreviousClick: t, onNextClick: n, previousMonth: o, nextMonth: r, ...a } = e, { components: i, classNames: s, labels: { labelPrevious: c, labelNext: d } } =
|
|
1802
|
+
const { onPreviousClick: t, onNextClick: n, previousMonth: o, nextMonth: r, ...a } = e, { components: i, classNames: s, labels: { labelPrevious: c, labelNext: d } } = Ae(), l = R((f) => {
|
|
1803
1803
|
r && n?.(f);
|
|
1804
1804
|
}, [r, n]), u = R((f) => {
|
|
1805
1805
|
o && t?.(f);
|
|
@@ -1820,14 +1820,14 @@ function ur(e) {
|
|
|
1820
1820
|
);
|
|
1821
1821
|
}
|
|
1822
1822
|
function dr(e) {
|
|
1823
|
-
const { components: t } =
|
|
1823
|
+
const { components: t } = Ae();
|
|
1824
1824
|
return m.createElement(t.Button, { ...e });
|
|
1825
1825
|
}
|
|
1826
1826
|
function lr(e) {
|
|
1827
1827
|
return m.createElement("option", { ...e });
|
|
1828
1828
|
}
|
|
1829
1829
|
function fr(e) {
|
|
1830
|
-
const { components: t } =
|
|
1830
|
+
const { components: t } = Ae();
|
|
1831
1831
|
return m.createElement(t.Button, { ...e });
|
|
1832
1832
|
}
|
|
1833
1833
|
function mr(e) {
|
|
@@ -1862,7 +1862,7 @@ function Mr(e) {
|
|
|
1862
1862
|
return m.createElement("tbody", { ...e });
|
|
1863
1863
|
}
|
|
1864
1864
|
function vr(e) {
|
|
1865
|
-
const { components: t } =
|
|
1865
|
+
const { components: t } = Ae();
|
|
1866
1866
|
return m.createElement(t.Dropdown, { ...e });
|
|
1867
1867
|
}
|
|
1868
1868
|
const Dr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
@@ -1947,8 +1947,8 @@ function kr(e, t, n, o, r) {
|
|
|
1947
1947
|
}, C = {};
|
|
1948
1948
|
for (const h of e) {
|
|
1949
1949
|
const { date: v, displayMonth: M } = h, x = !!(M && !f(v, M)), j = !!(O && D(v, O)), _ = !!(y && b(v, y)), H = !!(a && le(v, a, r)), I = !!(i && le(v, i, r)) || j || _ || // Broadcast calendar will show outside days as default
|
|
1950
|
-
!d && !c && x || d && c === !1 && x,
|
|
1951
|
-
x && p.outside.push(h), H && p.disabled.push(h), I && p.hidden.push(h),
|
|
1950
|
+
!d && !c && x || d && c === !1 && x, A = u(v, l ?? r.today());
|
|
1951
|
+
x && p.outside.push(h), H && p.disabled.push(h), I && p.hidden.push(h), A && p.today.push(h), s && Object.keys(s).forEach((se) => {
|
|
1952
1952
|
const ee = s?.[se];
|
|
1953
1953
|
ee && le(v, ee, r) && (C[se] ? C[se].push(h) : C[se] = [h]);
|
|
1954
1954
|
});
|
|
@@ -2075,7 +2075,7 @@ function Hr(e, t, n) {
|
|
|
2075
2075
|
}
|
|
2076
2076
|
return a;
|
|
2077
2077
|
}
|
|
2078
|
-
function
|
|
2078
|
+
function Ar(e, t, n, o, r = !1) {
|
|
2079
2079
|
if (!e || !t)
|
|
2080
2080
|
return;
|
|
2081
2081
|
const { startOfYear: a, endOfYear: i, eachYearOfInterval: s, getYear: c } = o, d = a(e), l = i(t), u = s({ start: d, end: l });
|
|
@@ -2092,7 +2092,7 @@ function an(e, t, n, o) {
|
|
|
2092
2092
|
let r = (o ?? new K(n)).format(e, "PPPP");
|
|
2093
2093
|
return t.today && (r = `Today, ${r}`), t.selected && (r = `${r}, selected`), r;
|
|
2094
2094
|
}
|
|
2095
|
-
const
|
|
2095
|
+
const $r = an;
|
|
2096
2096
|
function sn(e, t, n) {
|
|
2097
2097
|
return (n ?? new K(t)).formatMonthYear(e);
|
|
2098
2098
|
}
|
|
@@ -2128,7 +2128,7 @@ function Ur(e) {
|
|
|
2128
2128
|
const Kr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2129
2129
|
__proto__: null,
|
|
2130
2130
|
labelCaption: qr,
|
|
2131
|
-
labelDay:
|
|
2131
|
+
labelDay: $r,
|
|
2132
2132
|
labelDayButton: an,
|
|
2133
2133
|
labelGrid: sn,
|
|
2134
2134
|
labelGridcell: Rr,
|
|
@@ -2140,9 +2140,9 @@ const Kr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2140
2140
|
labelWeekNumberHeader: Qr,
|
|
2141
2141
|
labelWeekday: Vr,
|
|
2142
2142
|
labelYearDropdown: Ur
|
|
2143
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2143
|
+
}, Symbol.toStringTag, { value: "Module" })), $e = (e) => e instanceof HTMLElement ? e : null, lt = (e) => [
|
|
2144
2144
|
...e.querySelectorAll("[data-animated-month]") ?? []
|
|
2145
|
-
], Jr = (e) =>
|
|
2145
|
+
], Jr = (e) => $e(e.querySelector("[data-animated-month]")), ft = (e) => $e(e.querySelector("[data-animated-caption]")), mt = (e) => $e(e.querySelector("[data-animated-weeks]")), ea = (e) => $e(e.querySelector("[data-animated-nav]")), ta = (e) => $e(e.querySelector("[data-animated-weekdays]"));
|
|
2146
2146
|
function na(e, t, { classNames: n, months: o, focused: r, dateLib: a }) {
|
|
2147
2147
|
const i = Se(null), s = Se(o), c = Se(!1);
|
|
2148
2148
|
yn(() => {
|
|
@@ -2203,8 +2203,8 @@ function oa(e, t, n, o) {
|
|
|
2203
2203
|
if (s && x.length < _) {
|
|
2204
2204
|
const H = _ - x.length;
|
|
2205
2205
|
for (let I = 0; I < H; I++) {
|
|
2206
|
-
const
|
|
2207
|
-
x.push(
|
|
2206
|
+
const A = d(x[x.length - 1], 1);
|
|
2207
|
+
x.push(A);
|
|
2208
2208
|
}
|
|
2209
2209
|
}
|
|
2210
2210
|
return x;
|
|
@@ -2523,7 +2523,7 @@ function ht(e) {
|
|
|
2523
2523
|
t.formatters,
|
|
2524
2524
|
t.labels,
|
|
2525
2525
|
t.classNames
|
|
2526
|
-
]), { captionLayout: c, mode: d, navLayout: l, numberOfMonths: u = 1, onDayBlur: f, onDayClick: w, onDayFocus: D, onDayKeyDown: W, onDayMouseEnter: b, onDayMouseLeave: O, onNextClick: y, onPrevClick: p, showWeekNumber: C, styles: h } = t, { formatCaption: v, formatDay: M, formatMonthDropdown: x, formatWeekNumber: j, formatWeekNumberHeader: _, formatWeekdayName: H, formatYearDropdown: I } = o,
|
|
2526
|
+
]), { captionLayout: c, mode: d, navLayout: l, numberOfMonths: u = 1, onDayBlur: f, onDayClick: w, onDayFocus: D, onDayKeyDown: W, onDayMouseEnter: b, onDayMouseLeave: O, onNextClick: y, onPrevClick: p, showWeekNumber: C, styles: h } = t, { formatCaption: v, formatDay: M, formatMonthDropdown: x, formatWeekNumber: j, formatWeekNumberHeader: _, formatWeekdayName: H, formatYearDropdown: I } = o, A = la(t, a), { days: se, months: ee, navStart: ie, navEnd: ce, previousMonth: G, nextMonth: V, goToMonth: z } = A, Oe = kr(se, t, ie, ce, a), { isSelected: ye, select: X, selected: pe } = va(t, a) ?? {}, { blur: Pe, focused: qe, isFocusTarget: ot, moveFocus: Re, setFocused: ge } = ha(t, A, Oe, ye ?? (() => !1), a), { labelDayButton: Le, labelGridcell: ze, labelGrid: rt, labelMonthDropdown: N, labelNav: Z, labelPrevious: ue, labelNext: we, labelWeekday: be, labelWeekNumber: Me, labelWeekNumberHeader: at, labelYearDropdown: st } = r, Ze = fe(() => Hr(a, t.ISOWeek), [a, t.ISOWeek]), Te = d !== void 0 || w !== void 0, Ye = R(() => {
|
|
2527
2527
|
G && (z(G), p?.(G));
|
|
2528
2528
|
}, [G, z, p]), ve = R(() => {
|
|
2529
2529
|
V && (z(V), y?.(V));
|
|
@@ -2622,7 +2622,7 @@ function ht(e) {
|
|
|
2622
2622
|
n.DropdownNav,
|
|
2623
2623
|
{ className: s[g.Dropdowns], style: h?.[g.Dropdowns] },
|
|
2624
2624
|
(() => {
|
|
2625
|
-
const k = c === "dropdown" || c === "dropdown-months" ? m.createElement(n.MonthsDropdown, { key: "month", className: s[g.MonthsDropdown], "aria-label": N(), classNames: s, components: n, disabled: !!t.disableNavigation, onChange: Ue(S.date), options: Ir(S.date, ie, ce, o, a), style: h?.[g.Dropdown], value: a.getMonth(S.date) }) : m.createElement("span", { key: "month" }, x(S.date, a)), E = c === "dropdown" || c === "dropdown-years" ? m.createElement(n.YearsDropdown, { key: "year", className: s[g.YearsDropdown], "aria-label": st(a.options), classNames: s, components: n, disabled: !!t.disableNavigation, onChange: Ke(S.date), options:
|
|
2625
|
+
const k = c === "dropdown" || c === "dropdown-months" ? m.createElement(n.MonthsDropdown, { key: "month", className: s[g.MonthsDropdown], "aria-label": N(), classNames: s, components: n, disabled: !!t.disableNavigation, onChange: Ue(S.date), options: Ir(S.date, ie, ce, o, a), style: h?.[g.Dropdown], value: a.getMonth(S.date) }) : m.createElement("span", { key: "month" }, x(S.date, a)), E = c === "dropdown" || c === "dropdown-years" ? m.createElement(n.YearsDropdown, { key: "year", className: s[g.YearsDropdown], "aria-label": st(a.options), classNames: s, components: n, disabled: !!t.disableNavigation, onChange: Ke(S.date), options: Ar(ie, ce, o, a, !!t.reverseYears), style: h?.[g.Dropdown], value: a.getYear(S.date) }) : m.createElement("span", { key: "year" }, I(S.date, a));
|
|
2626
2626
|
return a.getMonthYearOrder() === "year-first" ? [E, k] : [k, E];
|
|
2627
2627
|
})(),
|
|
2628
2628
|
m.createElement("span", { role: "status", "aria-live": "polite", style: {
|
|
@@ -2930,7 +2930,7 @@ const Da = {
|
|
|
2930
2930
|
formattingValues: Ba,
|
|
2931
2931
|
defaultFormattingWidth: "wide"
|
|
2932
2932
|
})
|
|
2933
|
-
}, Ha = /^(\d+)(º)?/i,
|
|
2933
|
+
}, Ha = /^(\d+)(º)?/i, Aa = /\d+/i, $a = {
|
|
2934
2934
|
narrow: /^(ac|dc|a|d)/i,
|
|
2935
2935
|
abbreviated: /^(a\.?\s?c\.?|a\.?\s?e\.?\s?c\.?|d\.?\s?c\.?|e\.?\s?c\.?)/i,
|
|
2936
2936
|
wide: /^(antes de cristo|antes de la era com[uú]n|despu[eé]s de cristo|era com[uú]n)/i
|
|
@@ -3004,13 +3004,13 @@ const Da = {
|
|
|
3004
3004
|
}, Ua = {
|
|
3005
3005
|
ordinalNumber: Lt({
|
|
3006
3006
|
matchPattern: Ha,
|
|
3007
|
-
parsePattern:
|
|
3007
|
+
parsePattern: Aa,
|
|
3008
3008
|
valueCallback: function(e) {
|
|
3009
3009
|
return parseInt(e, 10);
|
|
3010
3010
|
}
|
|
3011
3011
|
}),
|
|
3012
3012
|
era: oe({
|
|
3013
|
-
matchPatterns:
|
|
3013
|
+
matchPatterns: $a,
|
|
3014
3014
|
defaultMatchWidth: "wide",
|
|
3015
3015
|
parsePatterns: qa,
|
|
3016
3016
|
defaultParseWidth: "any"
|
|
@@ -3075,7 +3075,7 @@ const Da = {
|
|
|
3075
3075
|
label: C = "",
|
|
3076
3076
|
name: h = "datepicker",
|
|
3077
3077
|
className: v
|
|
3078
|
-
} = e, M = t === "range" || t === "multiple" ? e.min : void 0, x = t === "range" || t === "multiple" ? e.max : void 0, j = t === "range" ? e.excludeDisabled : void 0, [_, H] = he({}), [I,
|
|
3078
|
+
} = e, M = t === "range" || t === "multiple" ? e.min : void 0, x = t === "range" || t === "multiple" ? e.max : void 0, j = t === "range" ? e.excludeDisabled : void 0, [_, H] = he({}), [I, A] = he(!1), [se, ee] = he(!1), [ie, ce] = he(o), [G, V] = he(!1), z = Se(null), Oe = Se(null), ye = f ? ie : o, X = f ? o : ye;
|
|
3079
3079
|
_e(() => {
|
|
3080
3080
|
window.innerWidth < 768 ? V(!0) : V(!1);
|
|
3081
3081
|
}, []), _e(() => {
|
|
@@ -3083,7 +3083,7 @@ const Da = {
|
|
|
3083
3083
|
}, [o, f]), _e(() => {
|
|
3084
3084
|
if (y !== "input" || !I) return;
|
|
3085
3085
|
const N = (Z) => {
|
|
3086
|
-
z.current && !z.current.contains(Z.target) && (
|
|
3086
|
+
z.current && !z.current.contains(Z.target) && (A(!1), f && ce(o));
|
|
3087
3087
|
};
|
|
3088
3088
|
return document.addEventListener("mousedown", N), () => {
|
|
3089
3089
|
document.removeEventListener("mousedown", N);
|
|
@@ -3109,7 +3109,7 @@ const Da = {
|
|
|
3109
3109
|
}
|
|
3110
3110
|
), ee(!0);
|
|
3111
3111
|
}, ue = () => {
|
|
3112
|
-
|
|
3112
|
+
A(!1), ee(!1);
|
|
3113
3113
|
};
|
|
3114
3114
|
window.addEventListener("scroll", ue, !0);
|
|
3115
3115
|
const we = setTimeout(Z, 0);
|
|
@@ -3118,9 +3118,9 @@ const Da = {
|
|
|
3118
3118
|
};
|
|
3119
3119
|
}, [I, y]);
|
|
3120
3120
|
const pe = R(() => {
|
|
3121
|
-
W?.(ie), r?.(ie), y === "input" &&
|
|
3121
|
+
W?.(ie), r?.(ie), y === "input" && A(!1);
|
|
3122
3122
|
}, [W, r, ie, y]), Pe = R(() => {
|
|
3123
|
-
ce(o), b?.(), y === "input" &&
|
|
3123
|
+
ce(o), b?.(), y === "input" && A(!1);
|
|
3124
3124
|
}, [b, o, y]), qe = fe(() => {
|
|
3125
3125
|
if (!X) return "";
|
|
3126
3126
|
if (t === "single")
|
|
@@ -3151,7 +3151,7 @@ const Da = {
|
|
|
3151
3151
|
ce(N);
|
|
3152
3152
|
return;
|
|
3153
3153
|
}
|
|
3154
|
-
y === "input" && t === "single" &&
|
|
3154
|
+
y === "input" && t === "single" && A(!1), r?.(N);
|
|
3155
3155
|
}, [f, y, t, r]), rt = R(() => {
|
|
3156
3156
|
const N = X || [];
|
|
3157
3157
|
return /* @__PURE__ */ q.jsx(
|
|
@@ -3163,11 +3163,11 @@ const Da = {
|
|
|
3163
3163
|
value: N.sort((Z, ue) => Z.getTime() - ue.getTime()).map((Z) => Z.toLocaleDateString("es-ES", { day: "2-digit", month: "2-digit", year: "numeric" })),
|
|
3164
3164
|
onChange: () => {
|
|
3165
3165
|
},
|
|
3166
|
-
onClick: () =>
|
|
3166
|
+
onClick: () => A(!0),
|
|
3167
3167
|
className: Be("w-[360px]", p?.className),
|
|
3168
3168
|
readonly: !0,
|
|
3169
3169
|
onValueDelete: Le,
|
|
3170
|
-
icon: /* @__PURE__ */ q.jsx(Mt, {})
|
|
3170
|
+
icon: /* @__PURE__ */ q.jsx(Mt.Calendar, {})
|
|
3171
3171
|
}
|
|
3172
3172
|
);
|
|
3173
3173
|
}, [X, C, h, Le, p]);
|
|
@@ -3182,7 +3182,7 @@ const Da = {
|
|
|
3182
3182
|
{
|
|
3183
3183
|
readOnly: !0,
|
|
3184
3184
|
...p,
|
|
3185
|
-
icon: /* @__PURE__ */ q.jsx(Mt, {}),
|
|
3185
|
+
icon: /* @__PURE__ */ q.jsx(Mt.Calendar, {}),
|
|
3186
3186
|
iconPosition: "right",
|
|
3187
3187
|
type: "text",
|
|
3188
3188
|
value: qe,
|
|
@@ -3191,7 +3191,7 @@ const Da = {
|
|
|
3191
3191
|
name: h,
|
|
3192
3192
|
label: C,
|
|
3193
3193
|
onFocus: (N) => {
|
|
3194
|
-
N.stopPropagation(), y === "input" &&
|
|
3194
|
+
N.stopPropagation(), y === "input" && A(!0);
|
|
3195
3195
|
}
|
|
3196
3196
|
}
|
|
3197
3197
|
)
|
|
@@ -3300,12 +3300,12 @@ const Da = {
|
|
|
3300
3300
|
if (y === "range")
|
|
3301
3301
|
return l.from || void 0;
|
|
3302
3302
|
if (y === "multiple") {
|
|
3303
|
-
const
|
|
3304
|
-
return
|
|
3303
|
+
const A = l;
|
|
3304
|
+
return A.length > 0 ? A[0] : void 0;
|
|
3305
3305
|
}
|
|
3306
3306
|
}
|
|
3307
3307
|
}, [l, y]), H = fe(() => ({
|
|
3308
|
-
formatWeekdayName: (
|
|
3308
|
+
formatWeekdayName: (A) => A.toLocaleDateString("es-ES", { weekday: "narrow" }).toUpperCase()
|
|
3309
3309
|
}), []), I = fe(() => ({
|
|
3310
3310
|
// Días de la semana (cabecera)
|
|
3311
3311
|
weekday: " prometeo-fonts-body-large text-neutral-default-default h-12 w-12 ",
|
package/dist/DrawerDesktop.es.js
CHANGED
|
@@ -2,8 +2,8 @@ import { j as l } from "./jsx-runtime-DKDX3adD.js";
|
|
|
2
2
|
import { c as h } from "./cn-B6yFEsav.js";
|
|
3
3
|
import { c as k } from "./index-BOQuZ0gG.js";
|
|
4
4
|
import { createPortal as E } from "react-dom";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
5
|
+
import { Icons as I } from "./Icons.es.js";
|
|
6
|
+
import { forwardRef as V, useRef as u, useState as N, useEffect as d, useCallback as f, useImperativeHandle as P } from "react";
|
|
7
7
|
import B from "./Button.es.js";
|
|
8
8
|
const L = V((t, s) => {
|
|
9
9
|
const n = u(null), [e, a] = N(t.defaultOpen || !1), [r, y] = N(null), b = u(t.onClose), c = u(r), {
|
|
@@ -45,7 +45,7 @@ const L = V((t, s) => {
|
|
|
45
45
|
}, []), v = f(() => {
|
|
46
46
|
a(!1), b.current?.(c.current), setTimeout(() => y(null), 300);
|
|
47
47
|
}, []);
|
|
48
|
-
|
|
48
|
+
P(
|
|
49
49
|
s,
|
|
50
50
|
() => ({
|
|
51
51
|
open: j,
|
|
@@ -152,7 +152,7 @@ const Y = ({
|
|
|
152
152
|
!i && /* @__PURE__ */ l.jsx(
|
|
153
153
|
B,
|
|
154
154
|
{
|
|
155
|
-
icon: /* @__PURE__ */ l.jsx(
|
|
155
|
+
icon: /* @__PURE__ */ l.jsx(I.Close, { size: 24 }),
|
|
156
156
|
animate: !1,
|
|
157
157
|
type: "button",
|
|
158
158
|
size: "small",
|
package/dist/DropZone.es.js
CHANGED
|
@@ -1,46 +1,46 @@
|
|
|
1
1
|
import { j as e } from "./jsx-runtime-DKDX3adD.js";
|
|
2
|
-
import { Error as P, Upload as R } from "./Icons.es.js";
|
|
3
2
|
import { c as i } from "./cn-B6yFEsav.js";
|
|
4
|
-
import
|
|
5
|
-
import { useDropzone as
|
|
6
|
-
|
|
3
|
+
import R, { useCallback as z } from "react";
|
|
4
|
+
import { useDropzone as w } from "react-dropzone";
|
|
5
|
+
import { Icons as u } from "./Icons.es.js";
|
|
6
|
+
const E = R.forwardRef(
|
|
7
7
|
({
|
|
8
8
|
onFilesAccepted: d,
|
|
9
9
|
onFilesRejected: m,
|
|
10
|
-
className:
|
|
11
|
-
subtitle:
|
|
12
|
-
acceptedFormats:
|
|
13
|
-
variant:
|
|
10
|
+
className: x,
|
|
11
|
+
subtitle: p = "Arrastra y suelta el archivo aquí o haz clic para cargarlo desde tu computadora",
|
|
12
|
+
acceptedFormats: f = ".PNG, .JPG, .TXT o .PDF. Máx 100 BM.",
|
|
13
|
+
variant: h = "default",
|
|
14
14
|
disabled: l = !1,
|
|
15
|
-
showIcon:
|
|
16
|
-
accept:
|
|
17
|
-
maxFiles:
|
|
18
|
-
...
|
|
19
|
-
},
|
|
20
|
-
const
|
|
15
|
+
showIcon: v = !0,
|
|
16
|
+
accept: g,
|
|
17
|
+
maxFiles: j = 1,
|
|
18
|
+
...N
|
|
19
|
+
}, b) => {
|
|
20
|
+
const y = z((s, o) => {
|
|
21
21
|
s.length > 0 && d?.(s), o.length > 0 && m?.(o);
|
|
22
22
|
}, [d, m]), {
|
|
23
|
-
getRootProps:
|
|
24
|
-
getInputProps:
|
|
23
|
+
getRootProps: D,
|
|
24
|
+
getInputProps: P,
|
|
25
25
|
isDragActive: a,
|
|
26
26
|
isDragReject: t,
|
|
27
27
|
fileRejections: n
|
|
28
|
-
} =
|
|
29
|
-
onDrop:
|
|
30
|
-
accept:
|
|
31
|
-
maxFiles:
|
|
28
|
+
} = w({
|
|
29
|
+
onDrop: y,
|
|
30
|
+
accept: g,
|
|
31
|
+
maxFiles: j,
|
|
32
32
|
disabled: l,
|
|
33
|
-
...
|
|
33
|
+
...N
|
|
34
34
|
}), r = n.length > 0;
|
|
35
|
-
return /* @__PURE__ */ e.jsx("div", { className: i("w-full",
|
|
35
|
+
return /* @__PURE__ */ e.jsx("div", { className: i("w-full", x), children: /* @__PURE__ */ e.jsxs(
|
|
36
36
|
"div",
|
|
37
37
|
{
|
|
38
|
-
ref:
|
|
39
|
-
...
|
|
38
|
+
ref: b,
|
|
39
|
+
...D(),
|
|
40
40
|
className: i(
|
|
41
|
-
"relative rounded-lg border border-dashed transition-all duration-200 h-36",
|
|
41
|
+
"relative rounded-lg border-[2px] border-dashed transition-all duration-200 h-36",
|
|
42
42
|
"flex flex-col items-center justify-center text-center",
|
|
43
|
-
|
|
43
|
+
h === "default" ? "p-8 min-h-[200px] " : "p-1 min-h-[120px] h-24 md:h-36",
|
|
44
44
|
!a && !r && !l && [
|
|
45
45
|
"border-neutral-default-default",
|
|
46
46
|
"hover:border-primary/50 hover:bg-primary/5"
|
|
@@ -59,8 +59,8 @@ const q = z.forwardRef(
|
|
|
59
59
|
]
|
|
60
60
|
),
|
|
61
61
|
children: [
|
|
62
|
-
/* @__PURE__ */ e.jsx("input", { ...
|
|
63
|
-
|
|
62
|
+
/* @__PURE__ */ e.jsx("input", { ...P() }),
|
|
63
|
+
v && /* @__PURE__ */ e.jsx("div", { className: "mb-0.5 md:mb-4", children: r || t ? /* @__PURE__ */ e.jsx(u.Error, { size: 24, className: " text-destructive" }) : /* @__PURE__ */ e.jsx(u.Upload, { size: 24, className: i(
|
|
64
64
|
"w-8 h-8 transition-colors",
|
|
65
65
|
a ? "text-primary" : "text-neutral-default-default"
|
|
66
66
|
) }) }),
|
|
@@ -68,8 +68,8 @@ const q = z.forwardRef(
|
|
|
68
68
|
/* @__PURE__ */ e.jsx("p", { className: i(
|
|
69
69
|
"text-base font-medium text-neutral-default-default",
|
|
70
70
|
r || t ? "text-destructive" : a ? "text-primary " : "text-neutral-default-default text-sm font-[400]"
|
|
71
|
-
), children: a && !t ? "Suelta los archivos aquí..." : t || r ? "Archivo no válido" :
|
|
72
|
-
!r && /* @__PURE__ */ e.jsx("p", { className: "text-xs text-neutral-medium-default", children:
|
|
71
|
+
), children: a && !t ? "Suelta los archivos aquí..." : t || r ? "Archivo no válido" : p }),
|
|
72
|
+
!r && /* @__PURE__ */ e.jsx("p", { className: "text-xs text-neutral-medium-default", children: f })
|
|
73
73
|
] }),
|
|
74
74
|
r && /* @__PURE__ */ e.jsx("div", { className: "mt-4 space-y-1", children: n.map(({ file: s, errors: o }) => /* @__PURE__ */ e.jsxs("div", { className: "text-sm text-destructive", children: [
|
|
75
75
|
/* @__PURE__ */ e.jsx("p", { className: "font-medium", children: s.name }),
|
|
@@ -80,7 +80,7 @@ const q = z.forwardRef(
|
|
|
80
80
|
) });
|
|
81
81
|
}
|
|
82
82
|
);
|
|
83
|
-
|
|
83
|
+
E.displayName = "DropZone";
|
|
84
84
|
export {
|
|
85
|
-
|
|
85
|
+
E as DropZone
|
|
86
86
|
};
|
package/dist/FAButton.es.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { j as c } from "./jsx-runtime-DKDX3adD.js";
|
|
2
2
|
import u, { memo as n } from "react";
|
|
3
3
|
import { c as f } from "./cn-B6yFEsav.js";
|
|
4
|
-
import {
|
|
4
|
+
import { Icons as v } from "./Icons.es.js";
|
|
5
5
|
import { createPortal as m } from "react-dom";
|
|
6
6
|
import { c as b } from "./index-BOQuZ0gG.js";
|
|
7
7
|
const h = {
|
|
@@ -75,7 +75,7 @@ const h = {
|
|
|
75
75
|
}
|
|
76
76
|
}
|
|
77
77
|
), y = (e) => {
|
|
78
|
-
const t = e.position || h, a = e.attachToParent || !1, i = e.color || "primary", s = e.icon || v, o = e.disabled || !1, d = e.variant || "fill", l = /* @__PURE__ */ c.jsx(
|
|
78
|
+
const t = e.position || h, a = e.attachToParent || !1, i = e.color || "primary", s = e.icon || v.Add, o = e.disabled || !1, d = e.variant || "fill", l = /* @__PURE__ */ c.jsx(
|
|
79
79
|
"div",
|
|
80
80
|
{
|
|
81
81
|
style: {
|