prometeo-design-system 3.0.2 → 3.0.5
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/Avatar.es.js +1 -1
- package/dist/Button.es.js +1 -1
- package/dist/{CardProfile-BB-IP1MR.js → CardProfile-B63chbXo.js} +13 -13
- package/dist/CardProfile.es.js +1 -1
- package/dist/CheckBox.es.js +5 -5
- package/dist/DatePicker-D718l51x.js +3568 -0
- package/dist/DatePicker.es.js +1 -1
- package/dist/DialogModal.es.js +1 -1
- package/dist/DrawerDesktop.es.js +2 -2
- package/dist/DrawerMobile.es.js +1 -1
- package/dist/DropZone.es.js +6 -6
- package/dist/FAButton.es.js +2 -2
- package/dist/Header.es.js +1 -1
- package/dist/{HelperComponent-D_Cqdf1J.js → HelperComponent-DZjT3uYS.js} +8 -8
- package/dist/Icons/IconsObject.d.ts +81 -0
- package/dist/Icons/components/AccountCircle.d.ts +4 -0
- package/dist/Icons/components/Add.d.ts +4 -0
- package/dist/Icons/components/ArrowLeft.d.ts +4 -0
- package/dist/Icons/components/ArrowUpDown.d.ts +4 -0
- package/dist/Icons/components/AttachFile.d.ts +4 -0
- package/dist/Icons/components/Boards.d.ts +4 -0
- package/dist/Icons/components/Calendar.d.ts +4 -0
- package/dist/Icons/components/Cancel.d.ts +4 -0
- package/dist/Icons/components/Check.d.ts +4 -0
- package/dist/Icons/components/CheckCircle.d.ts +4 -0
- package/dist/Icons/components/CheckList.d.ts +4 -0
- package/dist/Icons/components/ChevronDown.d.ts +4 -0
- package/dist/Icons/components/Clock.d.ts +4 -0
- package/dist/Icons/components/Close.d.ts +4 -0
- package/dist/Icons/components/CloseNavBarDesktop.d.ts +4 -0
- package/dist/Icons/components/Collapse.d.ts +4 -0
- package/dist/Icons/components/Company.d.ts +4 -0
- package/dist/Icons/components/Copy.d.ts +4 -0
- package/dist/Icons/components/CrevronLeft.d.ts +4 -0
- package/dist/Icons/components/CrevronRight.d.ts +4 -0
- package/dist/Icons/components/DocumentFill.d.ts +4 -0
- package/dist/Icons/components/Download.d.ts +4 -0
- package/dist/Icons/components/Edit.d.ts +4 -0
- package/dist/Icons/components/EditFill.d.ts +4 -0
- package/dist/Icons/components/Email.d.ts +4 -0
- package/dist/Icons/components/Error.d.ts +4 -0
- package/dist/Icons/components/EyeVisibility.d.ts +4 -0
- package/dist/Icons/components/EyeVisibilityOff.d.ts +4 -0
- package/dist/Icons/components/FaLock.d.ts +4 -0
- package/dist/Icons/components/FastForward.d.ts +4 -0
- package/dist/Icons/components/File.d.ts +4 -0
- package/dist/Icons/components/Filter.d.ts +4 -0
- package/dist/Icons/components/FormatColorText.d.ts +4 -0
- package/dist/Icons/components/Help.d.ts +4 -0
- package/dist/Icons/components/HistoryActivity.d.ts +4 -0
- package/dist/Icons/components/Home.d.ts +4 -0
- package/dist/Icons/components/Image.d.ts +4 -0
- package/dist/Icons/components/Info.d.ts +4 -0
- package/dist/Icons/components/Logout.d.ts +4 -0
- package/dist/Icons/components/MessageSquare.d.ts +4 -0
- package/dist/Icons/components/MessageSquareFill.d.ts +4 -0
- package/dist/Icons/components/MoreVert.d.ts +4 -0
- package/dist/Icons/components/Notifications.d.ts +4 -0
- package/dist/Icons/components/Pause.d.ts +4 -0
- package/dist/Icons/components/Reload.d.ts +4 -0
- package/dist/Icons/components/Search.d.ts +4 -0
- package/dist/Icons/components/Settings.d.ts +4 -0
- package/dist/Icons/components/Shared.d.ts +4 -0
- package/dist/Icons/components/Sort.d.ts +4 -0
- package/dist/Icons/components/Stars.d.ts +4 -0
- package/dist/Icons/components/Ticket.d.ts +4 -0
- package/dist/Icons/components/TicketFilled.d.ts +4 -0
- package/dist/Icons/components/Trash.d.ts +4 -0
- package/dist/Icons/components/TrashFill.d.ts +4 -0
- package/dist/Icons/components/Upload.d.ts +4 -0
- package/dist/Icons/components/UploadCloud.d.ts +4 -0
- package/dist/Icons/components/UserAdd.d.ts +4 -0
- package/dist/Icons/components/UserAddFill.d.ts +4 -0
- package/dist/Icons/components/UserPerson.d.ts +4 -0
- package/dist/Icons/components/WhatsApp.d.ts +4 -0
- package/dist/Icons/iconUtils.d.ts +7 -0
- package/dist/Icons/index.d.ts +184 -0
- package/dist/Icons/types.d.ts +124 -0
- package/dist/Icons.es.js +150 -150
- package/dist/Icons_Legacy-BJgYCS_W.js +979 -0
- package/dist/Image.es.js +1 -1
- package/dist/{ImageGallery-CjaJ0UCN.js → ImageGallery-BLrIJSw2.js} +35 -35
- package/dist/ImageGallery.es.js +1 -1
- package/dist/{Input-CLsH2Ea0.js → Input-DD4VHP1s.js} +3 -3
- package/dist/Input.es.js +1 -1
- package/dist/InputMultiple.es.js +35 -35
- package/dist/{LayoutGeneric-B6E-yOYJ.js → LayoutGeneric-CbaoatQB.js} +1 -1
- package/dist/LayoutGeneric.es.js +1 -1
- package/dist/Logo.es.js +2 -2
- package/dist/Menu.es.js +1 -1
- package/dist/OtpInput.es.js +44 -44
- package/dist/Pagination.es.js +1 -1
- package/dist/ProfilePictureUpload.es.js +1 -1
- package/dist/ProgressBar.es.js +1 -1
- package/dist/RadioButton.es.js +2 -2
- package/dist/RecurrentDatePicker.es.js +5 -5
- package/dist/RecurrentDatePickerRRule.es.js +181 -181
- package/dist/SegmentedButton.es.js +1 -1
- package/dist/{Select-Co4rzd96.js → Select-DfjHfmxM.js} +46 -46
- package/dist/Select.es.js +1 -1
- package/dist/SelectSearch.es.js +2 -2
- package/dist/Skeleton.es.js +1 -1
- package/dist/Spinner.es.js +1 -1
- package/dist/Steps.es.js +2 -2
- package/dist/SwipeContainer.es.js +1 -1
- package/dist/Switch.es.js +1 -1
- package/dist/TabLinks.es.js +1 -1
- package/dist/Table.es.js +1 -1
- package/dist/TextArea.es.js +1 -1
- package/dist/Toast.es.js +23 -23
- package/dist/ToastProvider.es.js +1 -1
- package/dist/Tooltip.es.js +2 -2
- package/dist/components/FAB/FAButton.d.ts +1 -1
- package/dist/components/NavigationDrawer/NavItem.d.ts +1 -1
- package/dist/components/Toaster/Toaster.d.ts +1 -1
- package/dist/exports/Icons.d.ts +1 -2
- package/dist/index.d.ts +1 -1
- package/dist/{jsx-runtime-ByW6EXIE.js → jsx-runtime-DKDX3adD.js} +94 -96
- package/dist/prometeo-design-system.es.js +48 -48
- package/dist/styles.css +1 -1
- package/package.json +294 -294
- package/src/styles/app.css +1 -1
- package/src/styles/base.css +1332 -1332
- package/src/styles/fonts.css +45 -45
- package/src/styles/palette.css +83 -83
- package/dist/DatePicker-odNBd49H.js +0 -3628
- /package/dist/Icons/{Icons.d.ts → Icons_Legacy.d.ts} +0 -0
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { j as s } from "./jsx-runtime-
|
|
2
|
-
import {
|
|
1
|
+
import { j as s } from "./jsx-runtime-DKDX3adD.js";
|
|
2
|
+
import { a as Qe, O as Xe, g as Ue, k as Ye } from "./Icons_Legacy-BJgYCS_W.js";
|
|
3
3
|
import { c as f } from "./cn-B6yFEsav.js";
|
|
4
4
|
import Ne, { memo as Z, useState as De, useRef as ce, useMemo as oe, useCallback as U, useEffect as ve, useImperativeHandle as Ze } from "react";
|
|
5
5
|
import et from "./Spinner.es.js";
|
|
6
6
|
import { createPortal as tt } from "react-dom";
|
|
7
7
|
import { u as nt } from "./useDragScroll-CHN9OMwn.js";
|
|
8
|
-
import { u as rt, I as lt } from "./Input-
|
|
9
|
-
import { H as ot } from "./HelperComponent-
|
|
8
|
+
import { u as rt, I as lt } from "./Input-DD4VHP1s.js";
|
|
9
|
+
import { H as ot } from "./HelperComponent-DZjT3uYS.js";
|
|
10
10
|
import st from "./CheckBox.es.js";
|
|
11
11
|
import Ke from "./Skeleton.es.js";
|
|
12
12
|
const at = {
|
|
@@ -85,8 +85,8 @@ const qe = (e, n) => {
|
|
|
85
85
|
if (u.length > i.length) return !1;
|
|
86
86
|
const j = Math.floor(u.length * m);
|
|
87
87
|
if (j <= 0) return !1;
|
|
88
|
-
const p = (b,
|
|
89
|
-
const I = b.length, W =
|
|
88
|
+
const p = (b, E) => {
|
|
89
|
+
const I = b.length, W = E.length;
|
|
90
90
|
if (I === 0) return W;
|
|
91
91
|
if (W === 0) return I;
|
|
92
92
|
const A = new Array(W + 1);
|
|
@@ -95,15 +95,15 @@ const qe = (e, n) => {
|
|
|
95
95
|
let S = x - 1;
|
|
96
96
|
A[0] = x;
|
|
97
97
|
for (let z = 1; z <= W; z++) {
|
|
98
|
-
const se = A[z], K = b.charCodeAt(x - 1) ===
|
|
98
|
+
const se = A[z], K = b.charCodeAt(x - 1) === E.charCodeAt(z - 1) ? 0 : 1, V = A[z] + 1, M = A[z - 1] + 1, N = S + K;
|
|
99
99
|
A[z] = V < M ? V < N ? V : N : M < N ? M : N, S = se;
|
|
100
100
|
}
|
|
101
101
|
}
|
|
102
102
|
return A[W];
|
|
103
103
|
};
|
|
104
104
|
for (let b = 0; b <= i.length - u.length; b++) {
|
|
105
|
-
const
|
|
106
|
-
if (p(
|
|
105
|
+
const E = i.slice(b, b + u.length);
|
|
106
|
+
if (p(E, u) <= j) return !0;
|
|
107
107
|
}
|
|
108
108
|
return !1;
|
|
109
109
|
}, ut = (e) => {
|
|
@@ -167,7 +167,7 @@ const qe = (e, n) => {
|
|
|
167
167
|
)
|
|
168
168
|
};
|
|
169
169
|
function ct(e) {
|
|
170
|
-
const [n, m] = De(!1), [i, u] = De([]), [v, h] = De(""), j = ce(null), p = ce(null), b = ce(null),
|
|
170
|
+
const [n, m] = De(!1), [i, u] = De([]), [v, h] = De(""), j = ce(null), p = ce(null), b = ce(null), E = ce(null), I = ce(
|
|
171
171
|
() => {
|
|
172
172
|
}
|
|
173
173
|
), W = ce(null), A = ce(/* @__PURE__ */ new Set()), {
|
|
@@ -179,7 +179,7 @@ function ct(e) {
|
|
|
179
179
|
controls: V,
|
|
180
180
|
className: M,
|
|
181
181
|
placeholder: N,
|
|
182
|
-
optionValue:
|
|
182
|
+
optionValue: k,
|
|
183
183
|
optionLabel: de,
|
|
184
184
|
renderOption: J,
|
|
185
185
|
renderOptionGroupHeader: fe,
|
|
@@ -191,7 +191,7 @@ function ct(e) {
|
|
|
191
191
|
dropdownOptions: O,
|
|
192
192
|
helperComponent: ee,
|
|
193
193
|
errorComponent: Ce,
|
|
194
|
-
onRemoveOption:
|
|
194
|
+
onRemoveOption: ke,
|
|
195
195
|
onOptionClick: X,
|
|
196
196
|
onClose: Se,
|
|
197
197
|
onClear: me,
|
|
@@ -203,7 +203,7 @@ function ct(e) {
|
|
|
203
203
|
displayMode: we = "compact",
|
|
204
204
|
labelVariant: ie = "default",
|
|
205
205
|
disableOpenOnFocus: ze = !1,
|
|
206
|
-
emptyMessage:
|
|
206
|
+
emptyMessage: Ee = "No hay opciones disponibles"
|
|
207
207
|
} = e, { ref: Oe } = rt(), { bind: ne, ref: Me } = nt({
|
|
208
208
|
axis: "x",
|
|
209
209
|
cursor: { idle: "default", dragging: "grabbing" }
|
|
@@ -224,11 +224,11 @@ function ct(e) {
|
|
|
224
224
|
return t[ie][a];
|
|
225
225
|
}, T = U(
|
|
226
226
|
(t) => ({
|
|
227
|
-
id: G(t,
|
|
228
|
-
value: G(t,
|
|
227
|
+
id: G(t, k),
|
|
228
|
+
value: G(t, k),
|
|
229
229
|
label: G(t, de)
|
|
230
230
|
}),
|
|
231
|
-
[
|
|
231
|
+
[k, de]
|
|
232
232
|
), Y = oe(() => ut(K), [K]), ge = oe(
|
|
233
233
|
() => Y.map(T),
|
|
234
234
|
[Y, T]
|
|
@@ -237,18 +237,18 @@ function ct(e) {
|
|
|
237
237
|
if (e.multiple)
|
|
238
238
|
e.value?.forEach((a) => {
|
|
239
239
|
const l = Y?.find(
|
|
240
|
-
(g) => G(g,
|
|
240
|
+
(g) => G(g, k) === a
|
|
241
241
|
);
|
|
242
242
|
l && t.push(l);
|
|
243
243
|
});
|
|
244
244
|
else {
|
|
245
245
|
const a = Y?.find(
|
|
246
|
-
(l) => G(l,
|
|
246
|
+
(l) => G(l, k) === e.value
|
|
247
247
|
);
|
|
248
248
|
a && t.push(a);
|
|
249
249
|
}
|
|
250
250
|
return t;
|
|
251
|
-
}, [e.value,
|
|
251
|
+
}, [e.value, k, Y, e.multiple]), o = oe(
|
|
252
252
|
() => r.map(T),
|
|
253
253
|
[r, T]
|
|
254
254
|
), c = oe(
|
|
@@ -259,7 +259,7 @@ function ct(e) {
|
|
|
259
259
|
return K.forEach((a, l) => {
|
|
260
260
|
const g = a, H = g.options;
|
|
261
261
|
if (Array.isArray(H) && H.length > 0) {
|
|
262
|
-
const $ = g.label, P = G(a,
|
|
262
|
+
const $ = g.label, P = G(a, k), le = `__group-${String(P ?? l)}`, xe = {
|
|
263
263
|
id: le,
|
|
264
264
|
value: le,
|
|
265
265
|
label: typeof $ == "string" ? $ : String(P ?? `Grupo ${l + 1}`),
|
|
@@ -276,7 +276,7 @@ function ct(e) {
|
|
|
276
276
|
} else
|
|
277
277
|
J ? t.push(a) : t.push(T(a));
|
|
278
278
|
}), t;
|
|
279
|
-
}, [K,
|
|
279
|
+
}, [K, k, J, T]), w = U(
|
|
280
280
|
(t, a) => {
|
|
281
281
|
if (!t || t.length === 0) return;
|
|
282
282
|
const l = t.map(
|
|
@@ -349,21 +349,21 @@ function ct(e) {
|
|
|
349
349
|
(t) => {
|
|
350
350
|
e.multiple || e.onChange?.(void 0, S);
|
|
351
351
|
const a = Y.find(
|
|
352
|
-
(g) => G(g,
|
|
352
|
+
(g) => G(g, k) === t
|
|
353
353
|
);
|
|
354
354
|
if (!a) return;
|
|
355
355
|
const l = T(a);
|
|
356
|
-
X?.(l, S), I.current?.(l),
|
|
356
|
+
X?.(l, S), I.current?.(l), ke?.(a);
|
|
357
357
|
},
|
|
358
358
|
[
|
|
359
359
|
X,
|
|
360
|
-
|
|
360
|
+
ke,
|
|
361
361
|
Y,
|
|
362
362
|
S,
|
|
363
363
|
e.multiple,
|
|
364
364
|
e.onChange,
|
|
365
365
|
T,
|
|
366
|
-
|
|
366
|
+
k
|
|
367
367
|
]
|
|
368
368
|
), re = U(
|
|
369
369
|
(t) => {
|
|
@@ -452,7 +452,7 @@ function ct(e) {
|
|
|
452
452
|
id: x,
|
|
453
453
|
tabIndex: 0,
|
|
454
454
|
role: "button",
|
|
455
|
-
ref:
|
|
455
|
+
ref: E,
|
|
456
456
|
onFocus: be,
|
|
457
457
|
onKeyDown: ue,
|
|
458
458
|
onClick: (t) => {
|
|
@@ -560,9 +560,9 @@ function ct(e) {
|
|
|
560
560
|
label: z,
|
|
561
561
|
isOpen: n,
|
|
562
562
|
disabled: te,
|
|
563
|
-
optionValue:
|
|
563
|
+
optionValue: k,
|
|
564
564
|
optionLabel: de,
|
|
565
|
-
emptyMessage:
|
|
565
|
+
emptyMessage: Ee,
|
|
566
566
|
labelVariant: ie,
|
|
567
567
|
renderOption: J,
|
|
568
568
|
renderOptionGroupHeader: fe,
|
|
@@ -576,7 +576,7 @@ function ct(e) {
|
|
|
576
576
|
options: d,
|
|
577
577
|
selectRef: j,
|
|
578
578
|
dropdownRef: p,
|
|
579
|
-
selectButtonRef:
|
|
579
|
+
selectButtonRef: E,
|
|
580
580
|
helperComponentRef: W,
|
|
581
581
|
onOptionClick: y,
|
|
582
582
|
onCloseDropdown: () => m(!1),
|
|
@@ -621,7 +621,7 @@ function ft({
|
|
|
621
621
|
inputProps: j,
|
|
622
622
|
dropdownRef: p,
|
|
623
623
|
optionLabel: b,
|
|
624
|
-
optionValue:
|
|
624
|
+
optionValue: E,
|
|
625
625
|
searchValue: I,
|
|
626
626
|
labelVariant: W,
|
|
627
627
|
emptyMessage: A,
|
|
@@ -633,7 +633,7 @@ function ft({
|
|
|
633
633
|
searchInputRef: V,
|
|
634
634
|
setSearchValue: M,
|
|
635
635
|
dropdownHeight: N,
|
|
636
|
-
attachToParent:
|
|
636
|
+
attachToParent: k,
|
|
637
637
|
filteredOptions: de,
|
|
638
638
|
selectButtonRef: J,
|
|
639
639
|
onCloseDropdown: fe,
|
|
@@ -645,7 +645,7 @@ function ft({
|
|
|
645
645
|
onSearchValueChange: O,
|
|
646
646
|
isLoading: ee = !1,
|
|
647
647
|
hideSearchBar: Ce = !1,
|
|
648
|
-
inputSearchPlaceholder:
|
|
648
|
+
inputSearchPlaceholder: ke = "Buscar opciones",
|
|
649
649
|
enableGroupToggle: X = !0,
|
|
650
650
|
onGroupSelectChange: Se
|
|
651
651
|
}) {
|
|
@@ -657,7 +657,7 @@ function ft({
|
|
|
657
657
|
), ze = U(
|
|
658
658
|
(r) => !we.has(r),
|
|
659
659
|
[we]
|
|
660
|
-
),
|
|
660
|
+
), Ee = U(
|
|
661
661
|
(r, o) => {
|
|
662
662
|
ie((c) => {
|
|
663
663
|
const d = new Set(c), w = d.has(r);
|
|
@@ -690,7 +690,7 @@ function ft({
|
|
|
690
690
|
p.current.style.maxHeight = "0", p.current.style.opacity = "0", p.current.style.pointerEvents = "none";
|
|
691
691
|
return;
|
|
692
692
|
}
|
|
693
|
-
if (!
|
|
693
|
+
if (!k) {
|
|
694
694
|
const o = Me();
|
|
695
695
|
Ae(o), Oe(o.direction), ne(o.height);
|
|
696
696
|
}
|
|
@@ -698,7 +698,7 @@ function ft({
|
|
|
698
698
|
}
|
|
699
699
|
};
|
|
700
700
|
ve(() => {
|
|
701
|
-
|
|
701
|
+
k || !h.current || !n || Oe();
|
|
702
702
|
}, [ae]), ve(() => {
|
|
703
703
|
pe(n);
|
|
704
704
|
}, [n]), ve(() => {
|
|
@@ -757,7 +757,7 @@ function ft({
|
|
|
757
757
|
if (K) {
|
|
758
758
|
K(), Q(
|
|
759
759
|
i.filter((r) => {
|
|
760
|
-
const o = x ? G(r,
|
|
760
|
+
const o = x ? G(r, E) : r.id;
|
|
761
761
|
return ae.has(o);
|
|
762
762
|
})
|
|
763
763
|
);
|
|
@@ -767,7 +767,7 @@ function ft({
|
|
|
767
767
|
}, [
|
|
768
768
|
i,
|
|
769
769
|
ae,
|
|
770
|
-
|
|
770
|
+
E,
|
|
771
771
|
K,
|
|
772
772
|
Q,
|
|
773
773
|
M,
|
|
@@ -839,7 +839,7 @@ function ft({
|
|
|
839
839
|
className: f(
|
|
840
840
|
" z-100! w-full mt-1 bg-neutral-default-default border border-neutral-default-default rounded-lg shadow-lg",
|
|
841
841
|
" overflow-hidden focus-visible:bg-neutral-default-hover ",
|
|
842
|
-
|
|
842
|
+
k ? "absolute z-50 " : "fixed z-100 top-0 left-0",
|
|
843
843
|
he.direction === "up" ? "h-auto" : " h-max",
|
|
844
844
|
Ie
|
|
845
845
|
),
|
|
@@ -871,7 +871,7 @@ function ft({
|
|
|
871
871
|
onKeyDown: $e,
|
|
872
872
|
onClear: Ge,
|
|
873
873
|
onChange: (r) => Te(r.target.value),
|
|
874
|
-
placeholder:
|
|
874
|
+
placeholder: ke,
|
|
875
875
|
className: " bg-neutral-medium-pressed",
|
|
876
876
|
...j
|
|
877
877
|
}
|
|
@@ -879,10 +879,10 @@ function ft({
|
|
|
879
879
|
/* @__PURE__ */ s.jsx("div", { className: " overflow-y-auto flex-1 max-h-max ", children: de.length === 0 ? ee ? /* @__PURE__ */ s.jsx("div", { className: "flex flex-col gap-1 overflow-hidden w-full", children: je || Y }) : /* @__PURE__ */ s.jsx("div", { className: "px-3 py-2 text-neutral-medium-default", children: I ? `No se encontraron resultados para "${I}"` : A }) : (() => {
|
|
880
880
|
let r = !0;
|
|
881
881
|
return de.map((o) => {
|
|
882
|
-
const c = o, d = !!c.isGroupHeader, w = x && !d ? G(o,
|
|
882
|
+
const c = o, d = !!c.isGroupHeader, w = x && !d ? G(o, E) : c.id, L = ae.has(w), y = (l) => !x || d ? l : {
|
|
883
883
|
id: w,
|
|
884
884
|
label: String(G(l, b)),
|
|
885
|
-
value: G(l,
|
|
885
|
+
value: G(l, E)
|
|
886
886
|
}, R = (l) => {
|
|
887
887
|
d || se(
|
|
888
888
|
y(o),
|
|
@@ -918,12 +918,12 @@ function ft({
|
|
|
918
918
|
const l = c.groupLabelNode ?? c.label, g = String(c.id), H = X === !1 ? !0 : ze(g);
|
|
919
919
|
r = H;
|
|
920
920
|
const $ = c.originalOption, P = c.groupData?.groupOptions ?? [], le = (_) => {
|
|
921
|
-
X &&
|
|
921
|
+
X && Ee(g, _);
|
|
922
922
|
}, xe = (_) => {
|
|
923
923
|
!P || P.length === 0 || Se && Se(P, _);
|
|
924
924
|
}, ye = P.filter(
|
|
925
|
-
(_) => ae.has(G(_,
|
|
926
|
-
).map((_) => String(G(_,
|
|
925
|
+
(_) => ae.has(G(_, E))
|
|
926
|
+
).map((_) => String(G(_, E)));
|
|
927
927
|
if (z) {
|
|
928
928
|
const _ = Z(
|
|
929
929
|
z,
|
|
@@ -949,7 +949,7 @@ function ft({
|
|
|
949
949
|
"div",
|
|
950
950
|
{
|
|
951
951
|
className: "cursor-pointer",
|
|
952
|
-
onClick: () =>
|
|
952
|
+
onClick: () => Ee(g),
|
|
953
953
|
children: /* @__PURE__ */ s.jsx(
|
|
954
954
|
Ue,
|
|
955
955
|
{
|
|
@@ -1013,7 +1013,7 @@ function ft({
|
|
|
1013
1013
|
)
|
|
1014
1014
|
}
|
|
1015
1015
|
);
|
|
1016
|
-
return
|
|
1016
|
+
return k ? ge : tt(ge, document.body);
|
|
1017
1017
|
}
|
|
1018
1018
|
const mt = Z(
|
|
1019
1019
|
ft,
|
package/dist/Select.es.js
CHANGED
package/dist/SelectSearch.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { j as G } from "./jsx-runtime-
|
|
2
|
-
import { g as i, S as H } from "./Select-
|
|
1
|
+
import { j as G } from "./jsx-runtime-DKDX3adD.js";
|
|
2
|
+
import { g as i, S as H } from "./Select-DfjHfmxM.js";
|
|
3
3
|
import { useState as T, useRef as I, useEffect as h, useMemo as Q, useCallback as X } from "react";
|
|
4
4
|
function te(e) {
|
|
5
5
|
const {
|
package/dist/Skeleton.es.js
CHANGED
package/dist/Spinner.es.js
CHANGED
package/dist/Steps.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { j as e } from "./jsx-runtime-
|
|
2
|
-
import {
|
|
1
|
+
import { j as e } from "./jsx-runtime-DKDX3adD.js";
|
|
2
|
+
import { C as j } from "./Icons_Legacy-BJgYCS_W.js";
|
|
3
3
|
import { c as y } from "./cn-B6yFEsav.js";
|
|
4
4
|
import { motion as r } from "framer-motion";
|
|
5
5
|
import N from "react";
|
package/dist/Switch.es.js
CHANGED
package/dist/TabLinks.es.js
CHANGED
package/dist/Table.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { j as r } from "./jsx-runtime-
|
|
1
|
+
import { j as r } from "./jsx-runtime-DKDX3adD.js";
|
|
2
2
|
import { c as l } from "./cn-B6yFEsav.js";
|
|
3
3
|
import * as o from "react";
|
|
4
4
|
const n = o.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ r.jsx("div", { className: "w-full", children: /* @__PURE__ */ r.jsx(
|
package/dist/TextArea.es.js
CHANGED
package/dist/Toast.es.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { j as e } from "./jsx-runtime-
|
|
1
|
+
import { j as e } from "./jsx-runtime-DKDX3adD.js";
|
|
2
2
|
import w from "react";
|
|
3
3
|
import { toast as p } from "sonner";
|
|
4
4
|
import { c as o } from "./cn-B6yFEsav.js";
|
|
5
|
-
import {
|
|
5
|
+
import { I as m, E as u, O as f, Q as b, a as C } from "./Icons_Legacy-BJgYCS_W.js";
|
|
6
6
|
import h from "./Button.es.js";
|
|
7
7
|
const x = {
|
|
8
8
|
dark: {
|
|
@@ -63,18 +63,18 @@ const x = {
|
|
|
63
63
|
shadow: "0px 0px 2px 0px rgba(0, 0, 0, 0.35),8px 8px 20px 0px rgba(0, 0, 0, 0.3),0px 0px 15px 0px rgba(0, 0, 0, 0.2),0px 0px 20px 0px rgba(21, 21, 21, 0.3) inset,6px 0px 100px 0px rgba(0, 0, 0, 0.05) inset"
|
|
64
64
|
}
|
|
65
65
|
}, v = (c) => {
|
|
66
|
-
const { title:
|
|
66
|
+
const { title: t, description: n, button: s, id: i, icon: d, variant: r = "info", colorMode: a = "dark", showClose: g = !1 } = c;
|
|
67
67
|
return /* @__PURE__ */ e.jsxs(
|
|
68
68
|
"div",
|
|
69
69
|
{
|
|
70
70
|
style: {
|
|
71
|
-
boxShadow: l[
|
|
71
|
+
boxShadow: l[a].shadow
|
|
72
72
|
},
|
|
73
73
|
className: o(
|
|
74
74
|
"flex p-3 pb-4 md:w-[485px] md:max-w-[485px] md:min-w-[485px] md:h-[68px] md:max-h-[68px] rounded-lg gap-2",
|
|
75
75
|
"w-[345px] max-w-[345px] min-w-[345px] h-[68px] max-h-[68px]",
|
|
76
|
-
l[
|
|
77
|
-
x[
|
|
76
|
+
l[a].container,
|
|
77
|
+
x[a][r].container
|
|
78
78
|
),
|
|
79
79
|
children: [
|
|
80
80
|
/* @__PURE__ */ e.jsxs(
|
|
@@ -82,20 +82,20 @@ const x = {
|
|
|
82
82
|
{
|
|
83
83
|
className: "flex items-center justify-start gap-2 max-h-[38px] h-[38px] overflow-hidden flex-1 ",
|
|
84
84
|
children: [
|
|
85
|
-
/* @__PURE__ */ e.jsx("div", { className: "f", style: { color: "inherit" }, children: w.createElement(d || x[
|
|
85
|
+
/* @__PURE__ */ e.jsx("div", { className: "f", style: { color: "inherit" }, children: w.createElement(d || x[a][r].icon, { size: 24, className: x[a][r].iconClass }) }),
|
|
86
86
|
/* @__PURE__ */ e.jsxs("div", { className: "flex-1 flex flex-col gap-1", children: [
|
|
87
|
-
/* @__PURE__ */ e.jsx("p", { className: o("select-none prometeo-fonts-label-medium md:prometeo-fonts-label-xlarge", l[
|
|
88
|
-
n && /* @__PURE__ */ e.jsx("p", { className: o("select-none prometeo-fonts-body-xsmall md:prometeo-fonts-body-small text-nowrap overflow-ellipsis ", l[
|
|
87
|
+
/* @__PURE__ */ e.jsx("p", { className: o("select-none prometeo-fonts-label-medium md:prometeo-fonts-label-xlarge", l[a].title), children: t }),
|
|
88
|
+
n && /* @__PURE__ */ e.jsx("p", { className: o("select-none prometeo-fonts-body-xsmall md:prometeo-fonts-body-small text-nowrap overflow-ellipsis ", l[a].description), children: n })
|
|
89
89
|
] })
|
|
90
90
|
]
|
|
91
91
|
}
|
|
92
92
|
),
|
|
93
|
-
|
|
93
|
+
s?.label && /* @__PURE__ */ e.jsx("div", { className: "shrink-0", children: /* @__PURE__ */ e.jsx(
|
|
94
94
|
h,
|
|
95
95
|
{
|
|
96
|
-
label:
|
|
96
|
+
label: s?.label,
|
|
97
97
|
onClick: () => {
|
|
98
|
-
|
|
98
|
+
s?.onClick(), p.dismiss(i);
|
|
99
99
|
},
|
|
100
100
|
size: "small",
|
|
101
101
|
color: "secondary"
|
|
@@ -110,28 +110,28 @@ const x = {
|
|
|
110
110
|
label: "",
|
|
111
111
|
size: "small",
|
|
112
112
|
color: "secondary",
|
|
113
|
-
icon: /* @__PURE__ */ e.jsx(C, { className: o(
|
|
113
|
+
icon: /* @__PURE__ */ e.jsx(C, { className: o(a === "light" ? "text-neutral-medium-focused " : "") }),
|
|
114
114
|
variant: "text",
|
|
115
115
|
animate: !1,
|
|
116
|
-
className: o(
|
|
116
|
+
className: o(a === "light" ? "hover:bg-neutral-default-hover-light focus:bg-inherit active:bg-neutral-weak-hover " : "")
|
|
117
117
|
}
|
|
118
118
|
) })
|
|
119
119
|
]
|
|
120
120
|
}
|
|
121
121
|
);
|
|
122
122
|
};
|
|
123
|
-
function M(c,
|
|
124
|
-
const { duration: n = 2500, showClose:
|
|
125
|
-
return p.custom((
|
|
123
|
+
function M(c, t) {
|
|
124
|
+
const { duration: n = 2500, showClose: s = !1, colorMode: i = "dark", position: d } = t || {};
|
|
125
|
+
return p.custom((r) => /* @__PURE__ */ e.jsx(
|
|
126
126
|
v,
|
|
127
127
|
{
|
|
128
|
-
id:
|
|
129
|
-
variant:
|
|
128
|
+
id: r,
|
|
129
|
+
variant: t?.variant || "success",
|
|
130
130
|
title: c,
|
|
131
|
-
description:
|
|
132
|
-
icon:
|
|
133
|
-
button:
|
|
134
|
-
showClose:
|
|
131
|
+
description: t?.description,
|
|
132
|
+
icon: t?.icon,
|
|
133
|
+
button: t?.button,
|
|
134
|
+
showClose: s,
|
|
135
135
|
colorMode: i
|
|
136
136
|
}
|
|
137
137
|
), {
|
package/dist/ToastProvider.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { j as t } from "./jsx-runtime-
|
|
1
|
+
import { j as t } from "./jsx-runtime-DKDX3adD.js";
|
|
2
2
|
import { Toaster as r } from "sonner";
|
|
3
3
|
const i = ({ ...o }) => /* @__PURE__ */ t.jsx(r, { ...o, position: "bottom-right", richColors: !1, theme: "light" });
|
|
4
4
|
export {
|
package/dist/Tooltip.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { j as e } from "./jsx-runtime-
|
|
2
|
-
import {
|
|
1
|
+
import { j as e } from "./jsx-runtime-DKDX3adD.js";
|
|
2
|
+
import { a as f } from "./Icons_Legacy-BJgYCS_W.js";
|
|
3
3
|
import { AnimatePresence as p, motion as n } from "framer-motion";
|
|
4
4
|
import { useState as x, cloneElement as b } from "react";
|
|
5
5
|
const N = ({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { ColorVariant, ButtonVariant } from '../Shared/types';
|
|
3
|
-
import { IconComponent } from '../../Icons/
|
|
3
|
+
import { IconComponent } from '../../Icons/Icons_Legacy';
|
|
4
4
|
export interface FAButtonProps {
|
|
5
5
|
icon?: IconComponent;
|
|
6
6
|
label?: string;
|
package/dist/exports/Icons.d.ts
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
export
|
|
2
|
-
export type { IconProps, IconName, IconComponent } from '../Icons/Icons';
|
|
1
|
+
export * from '../Icons/index';
|
package/dist/index.d.ts
CHANGED
|
@@ -102,4 +102,4 @@ export type { RadioButtonProps } from './components/RadioButton/RadioButton';
|
|
|
102
102
|
export type { RecurrentDatePickerProps } from './components/RecurrentDatePicker/RecurrentDatePicker';
|
|
103
103
|
export type { RecurrentDatePickerRRuleProps } from './components/RecurrentDatePicker/RecurrentDatePickerRRule';
|
|
104
104
|
export type { RecurrenceConfig } from './components/RecurrentDatePicker/RecurrentDatePicker';
|
|
105
|
-
export * from './Icons/
|
|
105
|
+
export * from './Icons/Icons_Legacy';
|