prometeo-design-system 3.0.6 → 3.0.7
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/{CardProfile-B63chbXo.js → CardProfile-Ct5Fs60N.js} +13 -12
- package/dist/CardProfile.es.js +1 -1
- package/dist/CheckBox.es.js +6 -6
- package/dist/{DatePicker-D718l51x.js → DatePicker-D1EwMGIN.js} +2 -2
- package/dist/DatePicker.es.js +1 -1
- package/dist/DrawerDesktop.es.js +4 -4
- package/dist/DropZone.es.js +23 -22
- package/dist/FAButton.es.js +6 -6
- package/dist/HelperComponent-DhGU_ug-.js +26 -0
- package/dist/Icons/AccountCircle.d.ts +6 -0
- package/dist/Icons/AccountCircle.es.js +21 -0
- package/dist/Icons/Add.d.ts +6 -0
- package/dist/Icons/Add.es.js +19 -0
- package/dist/Icons/ArrowLeft.d.ts +6 -0
- package/dist/Icons/ArrowLeft.es.js +19 -0
- package/dist/Icons/ArrowUpDown.d.ts +6 -0
- package/dist/Icons/ArrowUpDown.es.js +21 -0
- package/dist/Icons/AttachFile.d.ts +6 -0
- package/dist/Icons/AttachFile.es.js +19 -0
- package/dist/Icons/Boards.d.ts +6 -0
- package/dist/Icons/Boards.es.js +19 -0
- package/dist/Icons/Calendar.d.ts +6 -0
- package/dist/Icons/Calendar.es.js +19 -0
- package/dist/Icons/Cancel.d.ts +6 -0
- package/dist/Icons/Cancel.es.js +19 -0
- package/dist/Icons/Check.d.ts +6 -0
- package/dist/Icons/Check.es.js +19 -0
- package/dist/Icons/CheckCircle.d.ts +6 -0
- package/dist/Icons/CheckCircle.es.js +21 -0
- package/dist/Icons/CheckList.d.ts +6 -0
- package/dist/Icons/CheckList.es.js +25 -0
- package/dist/Icons/ChevronDown.d.ts +6 -0
- package/dist/Icons/ChevronDown.es.js +21 -0
- package/dist/Icons/Clock.d.ts +6 -0
- package/dist/Icons/Clock.es.js +19 -0
- package/dist/Icons/Close.d.ts +6 -0
- package/dist/Icons/Close.es.js +19 -0
- package/dist/Icons/CloseNavBarDesktop.d.ts +6 -0
- package/dist/Icons/CloseNavBarDesktop.es.js +36 -0
- package/dist/Icons/Collapse.d.ts +6 -0
- package/dist/Icons/Collapse.es.js +19 -0
- package/dist/Icons/Company.d.ts +6 -0
- package/dist/Icons/Company.es.js +25 -0
- package/dist/Icons/Copy.d.ts +6 -0
- package/dist/Icons/Copy.es.js +19 -0
- package/dist/Icons/CrevronLeft.d.ts +6 -0
- package/dist/Icons/CrevronLeft.es.js +21 -0
- package/dist/Icons/CrevronRight.d.ts +6 -0
- package/dist/Icons/CrevronRight.es.js +21 -0
- package/dist/Icons/DocumentFill.d.ts +6 -0
- package/dist/Icons/DocumentFill.es.js +27 -0
- package/dist/Icons/Download.d.ts +6 -0
- package/dist/Icons/Download.es.js +25 -0
- package/dist/Icons/Edit.d.ts +6 -0
- package/dist/Icons/Edit.es.js +19 -0
- package/dist/Icons/EditFill.d.ts +6 -0
- package/dist/Icons/EditFill.es.js +25 -0
- package/dist/Icons/Email.d.ts +6 -0
- package/dist/Icons/Email.es.js +25 -0
- package/dist/Icons/Error.d.ts +6 -0
- package/dist/Icons/Error.es.js +19 -0
- package/dist/Icons/EyeVisibility.d.ts +6 -0
- package/dist/Icons/EyeVisibility.es.js +21 -0
- package/dist/Icons/EyeVisibilityOff.d.ts +6 -0
- package/dist/Icons/EyeVisibilityOff.es.js +21 -0
- package/dist/Icons/FaLock.d.ts +6 -0
- package/dist/Icons/FaLock.es.js +19 -0
- package/dist/Icons/FastForward.d.ts +6 -0
- package/dist/Icons/FastForward.es.js +27 -0
- package/dist/Icons/File.d.ts +6 -0
- package/dist/Icons/File.es.js +25 -0
- package/dist/Icons/Filter.d.ts +6 -0
- package/dist/Icons/Filter.es.js +19 -0
- package/dist/Icons/FormatColorText.d.ts +6 -0
- package/dist/Icons/FormatColorText.es.js +26 -0
- package/dist/Icons/Help.d.ts +6 -0
- package/dist/Icons/Help.es.js +19 -0
- package/dist/Icons/HistoryActivity.d.ts +6 -0
- package/dist/Icons/HistoryActivity.es.js +21 -0
- package/dist/Icons/Home.d.ts +6 -0
- package/dist/Icons/Home.es.js +19 -0
- package/dist/Icons/Image.d.ts +6 -0
- package/dist/Icons/Image.es.js +25 -0
- package/dist/Icons/Info.d.ts +6 -0
- package/dist/Icons/Info.es.js +19 -0
- package/dist/Icons/Logout.d.ts +6 -0
- package/dist/Icons/Logout.es.js +19 -0
- package/dist/Icons/MessageSquare.d.ts +6 -0
- package/dist/Icons/MessageSquare.es.js +21 -0
- package/dist/Icons/MessageSquareFill.d.ts +6 -0
- package/dist/Icons/MessageSquareFill.es.js +27 -0
- package/dist/Icons/MoreVert.d.ts +6 -0
- package/dist/Icons/MoreVert.es.js +19 -0
- package/dist/Icons/Notifications.d.ts +6 -0
- package/dist/Icons/Notifications.es.js +21 -0
- package/dist/Icons/Pause.d.ts +6 -0
- package/dist/Icons/Pause.es.js +19 -0
- package/dist/Icons/Reload.d.ts +6 -0
- package/dist/Icons/Reload.es.js +25 -0
- package/dist/Icons/Search.d.ts +6 -0
- package/dist/Icons/Search.es.js +19 -0
- package/dist/Icons/Settings.d.ts +6 -0
- package/dist/Icons/Settings.es.js +19 -0
- package/dist/Icons/Shared.d.ts +6 -0
- package/dist/Icons/Shared.es.js +19 -0
- package/dist/Icons/Sort.d.ts +6 -0
- package/dist/Icons/Sort.es.js +19 -0
- package/dist/Icons/Stars.d.ts +6 -0
- package/dist/Icons/Stars.es.js +19 -0
- package/dist/Icons/Ticket.d.ts +6 -0
- package/dist/Icons/Ticket.es.js +19 -0
- package/dist/Icons/TicketFilled.d.ts +6 -0
- package/dist/Icons/TicketFilled.es.js +21 -0
- package/dist/Icons/Trash.d.ts +6 -0
- package/dist/Icons/Trash.es.js +19 -0
- package/dist/Icons/TrashFill.d.ts +6 -0
- package/dist/Icons/TrashFill.es.js +25 -0
- package/dist/Icons/Upload.d.ts +6 -0
- package/dist/Icons/Upload.es.js +19 -0
- package/dist/Icons/UploadCloud.d.ts +6 -0
- package/dist/Icons/UploadCloud.es.js +21 -0
- package/dist/Icons/UserAdd.d.ts +6 -0
- package/dist/Icons/UserAdd.es.js +19 -0
- package/dist/Icons/UserAddFill.d.ts +6 -0
- package/dist/Icons/UserAddFill.es.js +27 -0
- package/dist/Icons/UserPerson.d.ts +6 -0
- package/dist/Icons/UserPerson.es.js +19 -0
- package/dist/Icons/WhatsApp.d.ts +6 -0
- package/dist/Icons/WhatsApp.es.js +76 -0
- package/dist/Icons/index.d.ts +1 -0
- package/dist/Icons.es.js +120 -976
- package/dist/{ImageGallery-BLrIJSw2.js → ImageGallery-4DdXqwRy.js} +57 -55
- package/dist/ImageGallery.es.js +1 -1
- package/dist/{Input-DD4VHP1s.js → Input-EkMrxcNX.js} +16 -14
- package/dist/Input.es.js +1 -1
- package/dist/InputMultiple.es.js +45 -43
- package/dist/Logo.es.js +1 -1
- package/dist/OtpInput.es.js +47 -46
- package/dist/RadioButton.es.js +1 -1
- package/dist/RecurrentDatePicker.es.js +4 -4
- package/dist/RecurrentDatePickerRRule.es.js +1 -1
- package/dist/{Select-DfjHfmxM.js → Select-CRFOzYc6.js} +64 -61
- package/dist/Select.es.js +1 -1
- package/dist/SelectSearch.es.js +1 -1
- package/dist/Steps.es.js +6 -6
- package/dist/Toast.es.js +32 -28
- package/dist/Tooltip.es.js +7 -7
- package/dist/components/FAB/FAButton.d.ts +1 -1
- package/dist/components/NavigationDrawer/NavItem.d.ts +11 -2
- package/dist/components/NavigationDrawer/NavItemSecondary.d.ts +9 -0
- package/dist/components/PyrionNavigationDrawer/PyirionNavigationDrawer.d.ts +5 -3
- package/dist/components/Toaster/Toaster.d.ts +1 -1
- package/dist/iconUtils-D0lVAgGT.js +5 -0
- package/dist/index.d.ts +0 -1
- package/dist/prometeo-design-system.es.js +155 -232
- package/dist/styles.css +1 -1
- package/package.json +6 -5
- package/src/styles/base.css +1 -0
- package/dist/HelperComponent-DZjT3uYS.js +0 -24
- package/dist/Icons/IconsObject.d.ts +0 -81
- package/dist/Icons/Icons_Legacy.d.ts +0 -131
- package/dist/Icons_Legacy-BJgYCS_W.js +0 -979
|
@@ -1,14 +1,17 @@
|
|
|
1
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
2
|
import { c as f } from "./cn-B6yFEsav.js";
|
|
4
|
-
import Ne, { memo as Z, useState as De, useRef as ce, useMemo as oe, useCallback as U, useEffect as ve, useImperativeHandle as
|
|
5
|
-
import
|
|
6
|
-
import { createPortal as
|
|
7
|
-
import { u as
|
|
8
|
-
import { u as
|
|
9
|
-
import { H as
|
|
10
|
-
import
|
|
3
|
+
import Ne, { memo as Z, useState as De, useRef as ce, useMemo as oe, useCallback as U, useEffect as ve, useImperativeHandle as Qe } from "react";
|
|
4
|
+
import Xe from "./Spinner.es.js";
|
|
5
|
+
import { createPortal as Ye } from "react-dom";
|
|
6
|
+
import { u as Ze } from "./useDragScroll-CHN9OMwn.js";
|
|
7
|
+
import { u as et, I as tt } from "./Input-EkMrxcNX.js";
|
|
8
|
+
import { H as nt } from "./HelperComponent-DhGU_ug-.js";
|
|
9
|
+
import { Close as rt } from "./Icons/Close.es.js";
|
|
10
|
+
import lt from "./CheckBox.es.js";
|
|
11
11
|
import Ke from "./Skeleton.es.js";
|
|
12
|
+
import { Cancel as ot } from "./Icons/Cancel.es.js";
|
|
13
|
+
import { ChevronDown as Ue } from "./Icons/ChevronDown.es.js";
|
|
14
|
+
import { Search as st } from "./Icons/Search.es.js";
|
|
12
15
|
const at = {
|
|
13
16
|
default: {
|
|
14
17
|
container: "text-neutral-default-default border-neutral-default-default ",
|
|
@@ -49,7 +52,7 @@ const at = {
|
|
|
49
52
|
),
|
|
50
53
|
type: "button",
|
|
51
54
|
tabIndex: h,
|
|
52
|
-
children: /* @__PURE__ */ s.jsx(
|
|
55
|
+
children: /* @__PURE__ */ s.jsx(rt, { size: 18, className: f(u && Fe.icon) })
|
|
53
56
|
}
|
|
54
57
|
)
|
|
55
58
|
]
|
|
@@ -85,8 +88,8 @@ const qe = (e, n) => {
|
|
|
85
88
|
if (u.length > i.length) return !1;
|
|
86
89
|
const j = Math.floor(u.length * m);
|
|
87
90
|
if (j <= 0) return !1;
|
|
88
|
-
const p = (b,
|
|
89
|
-
const I = b.length, W =
|
|
91
|
+
const p = (b, k) => {
|
|
92
|
+
const I = b.length, W = k.length;
|
|
90
93
|
if (I === 0) return W;
|
|
91
94
|
if (W === 0) return I;
|
|
92
95
|
const A = new Array(W + 1);
|
|
@@ -95,15 +98,15 @@ const qe = (e, n) => {
|
|
|
95
98
|
let S = x - 1;
|
|
96
99
|
A[0] = x;
|
|
97
100
|
for (let z = 1; z <= W; z++) {
|
|
98
|
-
const se = A[z], K = b.charCodeAt(x - 1) ===
|
|
101
|
+
const se = A[z], K = b.charCodeAt(x - 1) === k.charCodeAt(z - 1) ? 0 : 1, V = A[z] + 1, M = A[z - 1] + 1, N = S + K;
|
|
99
102
|
A[z] = V < M ? V < N ? V : N : M < N ? M : N, S = se;
|
|
100
103
|
}
|
|
101
104
|
}
|
|
102
105
|
return A[W];
|
|
103
106
|
};
|
|
104
107
|
for (let b = 0; b <= i.length - u.length; b++) {
|
|
105
|
-
const
|
|
106
|
-
if (p(
|
|
108
|
+
const k = i.slice(b, b + u.length);
|
|
109
|
+
if (p(k, u) <= j) return !0;
|
|
107
110
|
}
|
|
108
111
|
return !1;
|
|
109
112
|
}, ut = (e) => {
|
|
@@ -167,7 +170,7 @@ const qe = (e, n) => {
|
|
|
167
170
|
)
|
|
168
171
|
};
|
|
169
172
|
function ct(e) {
|
|
170
|
-
const [n, m] = De(!1), [i, u] = De([]), [v, h] = De(""), j = ce(null), p = ce(null), b = ce(null),
|
|
173
|
+
const [n, m] = De(!1), [i, u] = De([]), [v, h] = De(""), j = ce(null), p = ce(null), b = ce(null), k = ce(null), I = ce(
|
|
171
174
|
() => {
|
|
172
175
|
}
|
|
173
176
|
), W = ce(null), A = ce(/* @__PURE__ */ new Set()), {
|
|
@@ -179,7 +182,7 @@ function ct(e) {
|
|
|
179
182
|
controls: V,
|
|
180
183
|
className: M,
|
|
181
184
|
placeholder: N,
|
|
182
|
-
optionValue:
|
|
185
|
+
optionValue: E,
|
|
183
186
|
optionLabel: de,
|
|
184
187
|
renderOption: J,
|
|
185
188
|
renderOptionGroupHeader: fe,
|
|
@@ -191,7 +194,7 @@ function ct(e) {
|
|
|
191
194
|
dropdownOptions: O,
|
|
192
195
|
helperComponent: ee,
|
|
193
196
|
errorComponent: Ce,
|
|
194
|
-
onRemoveOption:
|
|
197
|
+
onRemoveOption: Ee,
|
|
195
198
|
onOptionClick: X,
|
|
196
199
|
onClose: Se,
|
|
197
200
|
onClear: me,
|
|
@@ -203,8 +206,8 @@ function ct(e) {
|
|
|
203
206
|
displayMode: we = "compact",
|
|
204
207
|
labelVariant: ie = "default",
|
|
205
208
|
disableOpenOnFocus: ze = !1,
|
|
206
|
-
emptyMessage:
|
|
207
|
-
} = e, { ref: Oe } =
|
|
209
|
+
emptyMessage: ke = "No hay opciones disponibles"
|
|
210
|
+
} = e, { ref: Oe } = et(), { bind: ne, ref: Me } = Ze({
|
|
208
211
|
axis: "x",
|
|
209
212
|
cursor: { idle: "default", dragging: "grabbing" }
|
|
210
213
|
}), pe = e.multiple ? Array.isArray(e.value) && e.value.length > 0 : e.value !== void 0 && e.value !== null && e.value !== "", Le = {}, Te = oe(() => ie === "static" && N ? N : "", [ie, N]), Ge = oe(
|
|
@@ -224,11 +227,11 @@ function ct(e) {
|
|
|
224
227
|
return t[ie][a];
|
|
225
228
|
}, T = U(
|
|
226
229
|
(t) => ({
|
|
227
|
-
id: G(t,
|
|
228
|
-
value: G(t,
|
|
230
|
+
id: G(t, E),
|
|
231
|
+
value: G(t, E),
|
|
229
232
|
label: G(t, de)
|
|
230
233
|
}),
|
|
231
|
-
[
|
|
234
|
+
[E, de]
|
|
232
235
|
), Y = oe(() => ut(K), [K]), ge = oe(
|
|
233
236
|
() => Y.map(T),
|
|
234
237
|
[Y, T]
|
|
@@ -237,18 +240,18 @@ function ct(e) {
|
|
|
237
240
|
if (e.multiple)
|
|
238
241
|
e.value?.forEach((a) => {
|
|
239
242
|
const l = Y?.find(
|
|
240
|
-
(g) => G(g,
|
|
243
|
+
(g) => G(g, E) === a
|
|
241
244
|
);
|
|
242
245
|
l && t.push(l);
|
|
243
246
|
});
|
|
244
247
|
else {
|
|
245
248
|
const a = Y?.find(
|
|
246
|
-
(l) => G(l,
|
|
249
|
+
(l) => G(l, E) === e.value
|
|
247
250
|
);
|
|
248
251
|
a && t.push(a);
|
|
249
252
|
}
|
|
250
253
|
return t;
|
|
251
|
-
}, [e.value,
|
|
254
|
+
}, [e.value, E, Y, e.multiple]), o = oe(
|
|
252
255
|
() => r.map(T),
|
|
253
256
|
[r, T]
|
|
254
257
|
), c = oe(
|
|
@@ -259,7 +262,7 @@ function ct(e) {
|
|
|
259
262
|
return K.forEach((a, l) => {
|
|
260
263
|
const g = a, H = g.options;
|
|
261
264
|
if (Array.isArray(H) && H.length > 0) {
|
|
262
|
-
const $ = g.label, P = G(a,
|
|
265
|
+
const $ = g.label, P = G(a, E), le = `__group-${String(P ?? l)}`, xe = {
|
|
263
266
|
id: le,
|
|
264
267
|
value: le,
|
|
265
268
|
label: typeof $ == "string" ? $ : String(P ?? `Grupo ${l + 1}`),
|
|
@@ -276,7 +279,7 @@ function ct(e) {
|
|
|
276
279
|
} else
|
|
277
280
|
J ? t.push(a) : t.push(T(a));
|
|
278
281
|
}), t;
|
|
279
|
-
}, [K,
|
|
282
|
+
}, [K, E, J, T]), w = U(
|
|
280
283
|
(t, a) => {
|
|
281
284
|
if (!t || t.length === 0) return;
|
|
282
285
|
const l = t.map(
|
|
@@ -349,21 +352,21 @@ function ct(e) {
|
|
|
349
352
|
(t) => {
|
|
350
353
|
e.multiple || e.onChange?.(void 0, S);
|
|
351
354
|
const a = Y.find(
|
|
352
|
-
(g) => G(g,
|
|
355
|
+
(g) => G(g, E) === t
|
|
353
356
|
);
|
|
354
357
|
if (!a) return;
|
|
355
358
|
const l = T(a);
|
|
356
|
-
X?.(l, S), I.current?.(l),
|
|
359
|
+
X?.(l, S), I.current?.(l), Ee?.(a);
|
|
357
360
|
},
|
|
358
361
|
[
|
|
359
362
|
X,
|
|
360
|
-
|
|
363
|
+
Ee,
|
|
361
364
|
Y,
|
|
362
365
|
S,
|
|
363
366
|
e.multiple,
|
|
364
367
|
e.onChange,
|
|
365
368
|
T,
|
|
366
|
-
|
|
369
|
+
E
|
|
367
370
|
]
|
|
368
371
|
), re = U(
|
|
369
372
|
(t) => {
|
|
@@ -395,7 +398,7 @@ function ct(e) {
|
|
|
395
398
|
} catch {
|
|
396
399
|
}
|
|
397
400
|
});
|
|
398
|
-
}, [n]),
|
|
401
|
+
}, [n]), Qe(
|
|
399
402
|
V,
|
|
400
403
|
() => ({
|
|
401
404
|
open: () => {
|
|
@@ -452,7 +455,7 @@ function ct(e) {
|
|
|
452
455
|
id: x,
|
|
453
456
|
tabIndex: 0,
|
|
454
457
|
role: "button",
|
|
455
|
-
ref:
|
|
458
|
+
ref: k,
|
|
456
459
|
onFocus: be,
|
|
457
460
|
onKeyDown: ue,
|
|
458
461
|
onClick: (t) => {
|
|
@@ -511,7 +514,7 @@ function ct(e) {
|
|
|
511
514
|
),
|
|
512
515
|
/* @__PURE__ */ s.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
513
516
|
he && /* @__PURE__ */ s.jsx(
|
|
514
|
-
|
|
517
|
+
Xe,
|
|
515
518
|
{
|
|
516
519
|
size: "small",
|
|
517
520
|
variant: "sync",
|
|
@@ -527,7 +530,7 @@ function ct(e) {
|
|
|
527
530
|
type: "button",
|
|
528
531
|
tabIndex: -1,
|
|
529
532
|
children: /* @__PURE__ */ s.jsx(
|
|
530
|
-
|
|
533
|
+
ot,
|
|
531
534
|
{
|
|
532
535
|
size: 20,
|
|
533
536
|
className: f(
|
|
@@ -560,9 +563,9 @@ function ct(e) {
|
|
|
560
563
|
label: z,
|
|
561
564
|
isOpen: n,
|
|
562
565
|
disabled: te,
|
|
563
|
-
optionValue:
|
|
566
|
+
optionValue: E,
|
|
564
567
|
optionLabel: de,
|
|
565
|
-
emptyMessage:
|
|
568
|
+
emptyMessage: ke,
|
|
566
569
|
labelVariant: ie,
|
|
567
570
|
renderOption: J,
|
|
568
571
|
renderOptionGroupHeader: fe,
|
|
@@ -576,7 +579,7 @@ function ct(e) {
|
|
|
576
579
|
options: d,
|
|
577
580
|
selectRef: j,
|
|
578
581
|
dropdownRef: p,
|
|
579
|
-
selectButtonRef:
|
|
582
|
+
selectButtonRef: k,
|
|
580
583
|
helperComponentRef: W,
|
|
581
584
|
onOptionClick: y,
|
|
582
585
|
onCloseDropdown: () => m(!1),
|
|
@@ -597,7 +600,7 @@ function ct(e) {
|
|
|
597
600
|
}
|
|
598
601
|
),
|
|
599
602
|
(Ce || ee) && /* @__PURE__ */ s.jsx("div", { className: "min-h-6", children: /* @__PURE__ */ s.jsx(
|
|
600
|
-
|
|
603
|
+
nt,
|
|
601
604
|
{
|
|
602
605
|
ref: W,
|
|
603
606
|
variant: F,
|
|
@@ -609,7 +612,7 @@ function ct(e) {
|
|
|
609
612
|
}
|
|
610
613
|
);
|
|
611
614
|
}
|
|
612
|
-
const dt = Z(ct, (e, n) => e.value === n.value && e.options === n.options && e.isLoading === n.isLoading && e.disabled === n.disabled && e.errorComponent === n.errorComponent && e.helperComponent === n.helperComponent && e.variant === n.variant && e.label === n.label && e.id === n.id && e.name === n.name && e.placeholder === n.placeholder && e.renderOptionContext === n.renderOptionContext && e.dropdownOptions?.controledSearchValue === n.dropdownOptions?.controledSearchValue && e.dropdownOptions?.isLoading === n.dropdownOptions?.isLoading),
|
|
615
|
+
const dt = Z(ct, (e, n) => e.value === n.value && e.options === n.options && e.isLoading === n.isLoading && e.disabled === n.disabled && e.errorComponent === n.errorComponent && e.helperComponent === n.helperComponent && e.variant === n.variant && e.label === n.label && e.id === n.id && e.name === n.name && e.placeholder === n.placeholder && e.renderOptionContext === n.renderOptionContext && e.dropdownOptions?.controledSearchValue === n.dropdownOptions?.controledSearchValue && e.dropdownOptions?.isLoading === n.dropdownOptions?.isLoading), Et = dt;
|
|
613
616
|
function ft({
|
|
614
617
|
footer: e,
|
|
615
618
|
isOpen: n,
|
|
@@ -621,7 +624,7 @@ function ft({
|
|
|
621
624
|
inputProps: j,
|
|
622
625
|
dropdownRef: p,
|
|
623
626
|
optionLabel: b,
|
|
624
|
-
optionValue:
|
|
627
|
+
optionValue: k,
|
|
625
628
|
searchValue: I,
|
|
626
629
|
labelVariant: W,
|
|
627
630
|
emptyMessage: A,
|
|
@@ -633,7 +636,7 @@ function ft({
|
|
|
633
636
|
searchInputRef: V,
|
|
634
637
|
setSearchValue: M,
|
|
635
638
|
dropdownHeight: N,
|
|
636
|
-
attachToParent:
|
|
639
|
+
attachToParent: E,
|
|
637
640
|
filteredOptions: de,
|
|
638
641
|
selectButtonRef: J,
|
|
639
642
|
onCloseDropdown: fe,
|
|
@@ -645,7 +648,7 @@ function ft({
|
|
|
645
648
|
onSearchValueChange: O,
|
|
646
649
|
isLoading: ee = !1,
|
|
647
650
|
hideSearchBar: Ce = !1,
|
|
648
|
-
inputSearchPlaceholder:
|
|
651
|
+
inputSearchPlaceholder: Ee = "Buscar opciones",
|
|
649
652
|
enableGroupToggle: X = !0,
|
|
650
653
|
onGroupSelectChange: Se
|
|
651
654
|
}) {
|
|
@@ -657,7 +660,7 @@ function ft({
|
|
|
657
660
|
), ze = U(
|
|
658
661
|
(r) => !we.has(r),
|
|
659
662
|
[we]
|
|
660
|
-
),
|
|
663
|
+
), ke = U(
|
|
661
664
|
(r, o) => {
|
|
662
665
|
ie((c) => {
|
|
663
666
|
const d = new Set(c), w = d.has(r);
|
|
@@ -690,7 +693,7 @@ function ft({
|
|
|
690
693
|
p.current.style.maxHeight = "0", p.current.style.opacity = "0", p.current.style.pointerEvents = "none";
|
|
691
694
|
return;
|
|
692
695
|
}
|
|
693
|
-
if (!
|
|
696
|
+
if (!E) {
|
|
694
697
|
const o = Me();
|
|
695
698
|
Ae(o), Oe(o.direction), ne(o.height);
|
|
696
699
|
}
|
|
@@ -698,7 +701,7 @@ function ft({
|
|
|
698
701
|
}
|
|
699
702
|
};
|
|
700
703
|
ve(() => {
|
|
701
|
-
|
|
704
|
+
E || !h.current || !n || Oe();
|
|
702
705
|
}, [ae]), ve(() => {
|
|
703
706
|
pe(n);
|
|
704
707
|
}, [n]), ve(() => {
|
|
@@ -757,7 +760,7 @@ function ft({
|
|
|
757
760
|
if (K) {
|
|
758
761
|
K(), Q(
|
|
759
762
|
i.filter((r) => {
|
|
760
|
-
const o = x ? G(r,
|
|
763
|
+
const o = x ? G(r, k) : r.id;
|
|
761
764
|
return ae.has(o);
|
|
762
765
|
})
|
|
763
766
|
);
|
|
@@ -767,7 +770,7 @@ function ft({
|
|
|
767
770
|
}, [
|
|
768
771
|
i,
|
|
769
772
|
ae,
|
|
770
|
-
|
|
773
|
+
k,
|
|
771
774
|
K,
|
|
772
775
|
Q,
|
|
773
776
|
M,
|
|
@@ -839,7 +842,7 @@ function ft({
|
|
|
839
842
|
className: f(
|
|
840
843
|
" z-100! w-full mt-1 bg-neutral-default-default border border-neutral-default-default rounded-lg shadow-lg",
|
|
841
844
|
" overflow-hidden focus-visible:bg-neutral-default-hover ",
|
|
842
|
-
|
|
845
|
+
E ? "absolute z-50 " : "fixed z-100 top-0 left-0",
|
|
843
846
|
he.direction === "up" ? "h-auto" : " h-max",
|
|
844
847
|
Ie
|
|
845
848
|
),
|
|
@@ -856,7 +859,7 @@ function ft({
|
|
|
856
859
|
},
|
|
857
860
|
children: [
|
|
858
861
|
!Ce && /* @__PURE__ */ s.jsx(
|
|
859
|
-
|
|
862
|
+
tt,
|
|
860
863
|
{
|
|
861
864
|
name: "",
|
|
862
865
|
label: "",
|
|
@@ -866,12 +869,12 @@ function ft({
|
|
|
866
869
|
disabled: v,
|
|
867
870
|
ref: V,
|
|
868
871
|
labelVariant: "static",
|
|
869
|
-
icon: /* @__PURE__ */ s.jsx(
|
|
872
|
+
icon: /* @__PURE__ */ s.jsx(st, { size: 22 }),
|
|
870
873
|
isFetching: ee,
|
|
871
874
|
onKeyDown: $e,
|
|
872
875
|
onClear: Ge,
|
|
873
876
|
onChange: (r) => Te(r.target.value),
|
|
874
|
-
placeholder:
|
|
877
|
+
placeholder: Ee,
|
|
875
878
|
className: " bg-neutral-medium-pressed",
|
|
876
879
|
...j
|
|
877
880
|
}
|
|
@@ -879,10 +882,10 @@ function ft({
|
|
|
879
882
|
/* @__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
883
|
let r = !0;
|
|
881
884
|
return de.map((o) => {
|
|
882
|
-
const c = o, d = !!c.isGroupHeader, w = x && !d ? G(o,
|
|
885
|
+
const c = o, d = !!c.isGroupHeader, w = x && !d ? G(o, k) : c.id, L = ae.has(w), y = (l) => !x || d ? l : {
|
|
883
886
|
id: w,
|
|
884
887
|
label: String(G(l, b)),
|
|
885
|
-
value: G(l,
|
|
888
|
+
value: G(l, k)
|
|
886
889
|
}, R = (l) => {
|
|
887
890
|
d || se(
|
|
888
891
|
y(o),
|
|
@@ -918,12 +921,12 @@ function ft({
|
|
|
918
921
|
const l = c.groupLabelNode ?? c.label, g = String(c.id), H = X === !1 ? !0 : ze(g);
|
|
919
922
|
r = H;
|
|
920
923
|
const $ = c.originalOption, P = c.groupData?.groupOptions ?? [], le = (_) => {
|
|
921
|
-
X &&
|
|
924
|
+
X && ke(g, _);
|
|
922
925
|
}, xe = (_) => {
|
|
923
926
|
!P || P.length === 0 || Se && Se(P, _);
|
|
924
927
|
}, ye = P.filter(
|
|
925
|
-
(_) => ae.has(G(_,
|
|
926
|
-
).map((_) => String(G(_,
|
|
928
|
+
(_) => ae.has(G(_, k))
|
|
929
|
+
).map((_) => String(G(_, k)));
|
|
927
930
|
if (z) {
|
|
928
931
|
const _ = Z(
|
|
929
932
|
z,
|
|
@@ -949,7 +952,7 @@ function ft({
|
|
|
949
952
|
"div",
|
|
950
953
|
{
|
|
951
954
|
className: "cursor-pointer",
|
|
952
|
-
onClick: () =>
|
|
955
|
+
onClick: () => ke(g),
|
|
953
956
|
children: /* @__PURE__ */ s.jsx(
|
|
954
957
|
Ue,
|
|
955
958
|
{
|
|
@@ -1013,7 +1016,7 @@ function ft({
|
|
|
1013
1016
|
)
|
|
1014
1017
|
}
|
|
1015
1018
|
);
|
|
1016
|
-
return
|
|
1019
|
+
return E ? ge : Ye(ge, document.body);
|
|
1017
1020
|
}
|
|
1018
1021
|
const mt = Z(
|
|
1019
1022
|
ft,
|
|
@@ -1056,7 +1059,7 @@ const mt = Z(
|
|
|
1056
1059
|
u && !h && "text-neutral-default-disabled hover:bg-neutral-default-default"
|
|
1057
1060
|
),
|
|
1058
1061
|
children: [
|
|
1059
|
-
i && !h && /* @__PURE__ */ s.jsx(
|
|
1062
|
+
i && !h && /* @__PURE__ */ s.jsx(lt, { checked: n, disabled: u }),
|
|
1060
1063
|
/* @__PURE__ */ s.jsx("span", { children: p })
|
|
1061
1064
|
]
|
|
1062
1065
|
},
|
|
@@ -1094,6 +1097,6 @@ const Je = Z(
|
|
|
1094
1097
|
);
|
|
1095
1098
|
Je.displayName = "DefaultSelectionDisplay";
|
|
1096
1099
|
export {
|
|
1097
|
-
|
|
1100
|
+
Et as S,
|
|
1098
1101
|
G as g
|
|
1099
1102
|
};
|
package/dist/Select.es.js
CHANGED
package/dist/SelectSearch.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { j as G } from "./jsx-runtime-DKDX3adD.js";
|
|
2
|
-
import { g as i, S as H } from "./Select-
|
|
2
|
+
import { g as i, S as H } from "./Select-CRFOzYc6.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/Steps.es.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { j as e } from "./jsx-runtime-DKDX3adD.js";
|
|
2
|
-
import {
|
|
3
|
-
import { c as y } from "./cn-B6yFEsav.js";
|
|
2
|
+
import { c as j } from "./cn-B6yFEsav.js";
|
|
4
3
|
import { motion as r } from "framer-motion";
|
|
5
4
|
import N from "react";
|
|
5
|
+
import { Check as y } from "./Icons/Check.es.js";
|
|
6
6
|
const b = ({
|
|
7
7
|
index: n,
|
|
8
8
|
isHorizontal: t,
|
|
@@ -141,10 +141,10 @@ const b = ({
|
|
|
141
141
|
transition: { duration: 0.3, delay: l * 0.3 },
|
|
142
142
|
whileTap: f ? { scale: 0.95 } : {},
|
|
143
143
|
onClick: () => h(l),
|
|
144
|
-
children: s === "numbered" || s === "numbered-minimal" || !a.icon ? d === "completed" ? /* @__PURE__ */ e.jsx(r.div, { initial: { scale: 0 }, animate: { scale: 1 }, transition: { duration: 0.2 }, children: /* @__PURE__ */ e.jsx(
|
|
144
|
+
children: s === "numbered" || s === "numbered-minimal" || !a.icon ? d === "completed" ? /* @__PURE__ */ e.jsx(r.div, { initial: { scale: 0 }, animate: { scale: 1 }, transition: { duration: 0.2 }, children: /* @__PURE__ */ e.jsx(y, { size: 24, className: "text-neutral-strong-default" }) }) : /* @__PURE__ */ e.jsx("span", { children: l + 1 }) : N.cloneElement(a.icon, { size: m[i].iconSize })
|
|
145
145
|
}
|
|
146
146
|
),
|
|
147
|
-
s !== "minimal" && s !== "numbered-minimal" && a.description && /* @__PURE__ */ e.jsx("p", { className:
|
|
147
|
+
s !== "minimal" && s !== "numbered-minimal" && a.description && /* @__PURE__ */ e.jsx("p", { className: j(
|
|
148
148
|
"absolute text-center w-28 -bottom-2 translate-y-full",
|
|
149
149
|
m[i].description,
|
|
150
150
|
"text-gray-400 mt-2 text-center",
|
|
@@ -177,7 +177,7 @@ const b = ({
|
|
|
177
177
|
transition: { duration: 0.3, delay: l * 0.1 },
|
|
178
178
|
whileTap: f ? { scale: 0.95 } : {},
|
|
179
179
|
onClick: () => h(l),
|
|
180
|
-
children: s === "numbered" || s === "numbered-minimal" || !a.icon ? d === "completed" ? /* @__PURE__ */ e.jsx(r.div, { initial: { scale: 0 }, animate: { scale: 1 }, transition: { duration: 0.2 }, children: /* @__PURE__ */ e.jsx(
|
|
180
|
+
children: s === "numbered" || s === "numbered-minimal" || !a.icon ? d === "completed" ? /* @__PURE__ */ e.jsx(r.div, { initial: { scale: 0 }, animate: { scale: 1 }, transition: { duration: 0.2 }, children: /* @__PURE__ */ e.jsx(y, { size: 24, className: "text-neutral-strong-default" }) }) : /* @__PURE__ */ e.jsx("span", { children: l + 1 }) : a.icon
|
|
181
181
|
}
|
|
182
182
|
),
|
|
183
183
|
s !== "minimal" && s !== "numbered-minimal" && /* @__PURE__ */ e.jsx(
|
|
@@ -187,7 +187,7 @@ const b = ({
|
|
|
187
187
|
initial: { opacity: 0, x: -10 },
|
|
188
188
|
animate: { opacity: 1, x: 0 },
|
|
189
189
|
transition: { duration: 0.3, delay: l * 0.1 + 0.1 },
|
|
190
|
-
children: a.description && /* @__PURE__ */ e.jsx("p", { className:
|
|
190
|
+
children: a.description && /* @__PURE__ */ e.jsx("p", { className: j(
|
|
191
191
|
"h-full text-start flex items-center justify-start ",
|
|
192
192
|
m[i].description,
|
|
193
193
|
"text-gray-400",
|
package/dist/Toast.es.js
CHANGED
|
@@ -1,9 +1,13 @@
|
|
|
1
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
|
-
import { c as
|
|
5
|
-
import {
|
|
4
|
+
import { c as s } from "./cn-B6yFEsav.js";
|
|
5
|
+
import { Info as m } from "./Icons/Info.es.js";
|
|
6
|
+
import { Error as u } from "./Icons/Error.es.js";
|
|
7
|
+
import { Cancel as f } from "./Icons/Cancel.es.js";
|
|
8
|
+
import { CheckCircle as b } from "./Icons/CheckCircle.es.js";
|
|
6
9
|
import h from "./Button.es.js";
|
|
10
|
+
import { Close as C } from "./Icons/Close.es.js";
|
|
7
11
|
const x = {
|
|
8
12
|
dark: {
|
|
9
13
|
success: {
|
|
@@ -63,18 +67,18 @@ const x = {
|
|
|
63
67
|
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
68
|
}
|
|
65
69
|
}, v = (c) => {
|
|
66
|
-
const { title:
|
|
70
|
+
const { title: r, description: i, button: a, id: n, icon: d, variant: o = "info", colorMode: t = "dark", showClose: g = !1 } = c;
|
|
67
71
|
return /* @__PURE__ */ e.jsxs(
|
|
68
72
|
"div",
|
|
69
73
|
{
|
|
70
74
|
style: {
|
|
71
|
-
boxShadow: l[
|
|
75
|
+
boxShadow: l[t].shadow
|
|
72
76
|
},
|
|
73
|
-
className:
|
|
77
|
+
className: s(
|
|
74
78
|
"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
79
|
"w-[345px] max-w-[345px] min-w-[345px] h-[68px] max-h-[68px]",
|
|
76
|
-
l[
|
|
77
|
-
x[
|
|
80
|
+
l[t].container,
|
|
81
|
+
x[t][o].container
|
|
78
82
|
),
|
|
79
83
|
children: [
|
|
80
84
|
/* @__PURE__ */ e.jsxs(
|
|
@@ -82,20 +86,20 @@ const x = {
|
|
|
82
86
|
{
|
|
83
87
|
className: "flex items-center justify-start gap-2 max-h-[38px] h-[38px] overflow-hidden flex-1 ",
|
|
84
88
|
children: [
|
|
85
|
-
/* @__PURE__ */ e.jsx("div", { className: "f", style: { color: "inherit" }, children: w.createElement(d || x[
|
|
89
|
+
/* @__PURE__ */ e.jsx("div", { className: "f", style: { color: "inherit" }, children: w.createElement(d || x[t][o].icon, { size: 24, className: x[t][o].iconClass }) }),
|
|
86
90
|
/* @__PURE__ */ e.jsxs("div", { className: "flex-1 flex flex-col gap-1", children: [
|
|
87
|
-
/* @__PURE__ */ e.jsx("p", { className:
|
|
88
|
-
|
|
91
|
+
/* @__PURE__ */ e.jsx("p", { className: s("select-none prometeo-fonts-label-medium md:prometeo-fonts-label-xlarge", l[t].title), children: r }),
|
|
92
|
+
i && /* @__PURE__ */ e.jsx("p", { className: s("select-none prometeo-fonts-body-xsmall md:prometeo-fonts-body-small text-nowrap overflow-ellipsis ", l[t].description), children: i })
|
|
89
93
|
] })
|
|
90
94
|
]
|
|
91
95
|
}
|
|
92
96
|
),
|
|
93
|
-
|
|
97
|
+
a?.label && /* @__PURE__ */ e.jsx("div", { className: "shrink-0", children: /* @__PURE__ */ e.jsx(
|
|
94
98
|
h,
|
|
95
99
|
{
|
|
96
|
-
label:
|
|
100
|
+
label: a?.label,
|
|
97
101
|
onClick: () => {
|
|
98
|
-
|
|
102
|
+
a?.onClick(), p.dismiss(n);
|
|
99
103
|
},
|
|
100
104
|
size: "small",
|
|
101
105
|
color: "secondary"
|
|
@@ -105,42 +109,42 @@ const x = {
|
|
|
105
109
|
h,
|
|
106
110
|
{
|
|
107
111
|
onClick: () => {
|
|
108
|
-
p.dismiss(
|
|
112
|
+
p.dismiss(n);
|
|
109
113
|
},
|
|
110
114
|
label: "",
|
|
111
115
|
size: "small",
|
|
112
116
|
color: "secondary",
|
|
113
|
-
icon: /* @__PURE__ */ e.jsx(C, { className:
|
|
117
|
+
icon: /* @__PURE__ */ e.jsx(C, { className: s(t === "light" ? "text-neutral-medium-focused " : "") }),
|
|
114
118
|
variant: "text",
|
|
115
119
|
animate: !1,
|
|
116
|
-
className:
|
|
120
|
+
className: s(t === "light" ? "hover:bg-neutral-default-hover-light focus:bg-inherit active:bg-neutral-weak-hover " : "")
|
|
117
121
|
}
|
|
118
122
|
) })
|
|
119
123
|
]
|
|
120
124
|
}
|
|
121
125
|
);
|
|
122
126
|
};
|
|
123
|
-
function
|
|
124
|
-
const { duration:
|
|
125
|
-
return p.custom((
|
|
127
|
+
function _(c, r) {
|
|
128
|
+
const { duration: i = 2500, showClose: a = !1, colorMode: n = "dark", position: d } = r || {};
|
|
129
|
+
return p.custom((o) => /* @__PURE__ */ e.jsx(
|
|
126
130
|
v,
|
|
127
131
|
{
|
|
128
|
-
id:
|
|
129
|
-
variant:
|
|
132
|
+
id: o,
|
|
133
|
+
variant: r?.variant || "success",
|
|
130
134
|
title: c,
|
|
131
|
-
description:
|
|
132
|
-
icon:
|
|
133
|
-
button:
|
|
134
|
-
showClose:
|
|
135
|
-
colorMode:
|
|
135
|
+
description: r?.description,
|
|
136
|
+
icon: r?.icon,
|
|
137
|
+
button: r?.button,
|
|
138
|
+
showClose: a,
|
|
139
|
+
colorMode: n
|
|
136
140
|
}
|
|
137
141
|
), {
|
|
138
|
-
duration:
|
|
142
|
+
duration: i,
|
|
139
143
|
position: d,
|
|
140
144
|
unstyled: !0
|
|
141
145
|
});
|
|
142
146
|
}
|
|
143
147
|
export {
|
|
144
148
|
v as default,
|
|
145
|
-
|
|
149
|
+
_ as toastpyrion
|
|
146
150
|
};
|
package/dist/Tooltip.es.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { j as e } from "./jsx-runtime-DKDX3adD.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
2
|
+
import { AnimatePresence as f, motion as n } from "framer-motion";
|
|
3
|
+
import { useState as p, cloneElement as x } from "react";
|
|
4
|
+
import { Close as b } from "./Icons/Close.es.js";
|
|
5
5
|
const N = ({
|
|
6
6
|
title: i,
|
|
7
7
|
trigger: o,
|
|
@@ -9,7 +9,7 @@ const N = ({
|
|
|
9
9
|
position: t = "top",
|
|
10
10
|
component: c
|
|
11
11
|
}) => {
|
|
12
|
-
const [s, l] =
|
|
12
|
+
const [s, l] = p(!1), m = () => l(!0), a = () => l(!1), u = o === "hover" ? {
|
|
13
13
|
onMouseEnter: m,
|
|
14
14
|
onMouseLeave: a
|
|
15
15
|
} : {
|
|
@@ -21,8 +21,8 @@ const N = ({
|
|
|
21
21
|
right: "left-full top-1/2 -translate-y-1/2 ml-2"
|
|
22
22
|
};
|
|
23
23
|
return /* @__PURE__ */ e.jsxs("div", { className: "relative inline-block", children: [
|
|
24
|
-
|
|
25
|
-
/* @__PURE__ */ e.jsx(
|
|
24
|
+
x(r, u),
|
|
25
|
+
/* @__PURE__ */ e.jsx(f, { children: s && /* @__PURE__ */ e.jsx(
|
|
26
26
|
n.div,
|
|
27
27
|
{
|
|
28
28
|
initial: { opacity: 0, scale: 0.8, y: t === "top" ? 10 : -10 },
|
|
@@ -49,7 +49,7 @@ const N = ({
|
|
|
49
49
|
className: "absolute cursor-pointer -top-2 -right-2 w-6 h-6 bg-neutral-strong-default hover:bg-neutral-medium-default rounded-full flex items-center justify-center transition-colors z-10",
|
|
50
50
|
whileHover: { scale: 1.1 },
|
|
51
51
|
whileTap: { scale: 0.95 },
|
|
52
|
-
children: /* @__PURE__ */ e.jsx(
|
|
52
|
+
children: /* @__PURE__ */ e.jsx(b, { size: 14, className: "text-white" })
|
|
53
53
|
}
|
|
54
54
|
)
|
|
55
55
|
] })
|
|
@@ -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/types';
|
|
4
4
|
export interface FAButtonProps {
|
|
5
5
|
icon?: IconComponent;
|
|
6
6
|
label?: string;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import { IconComponent } from '../../Icons/
|
|
1
|
+
import { IconComponent } from '../../Icons/types';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
import { NavItemSecondaryProps } from './NavItemSecondary';
|
|
2
4
|
export interface NavItemProps {
|
|
3
5
|
path: string;
|
|
4
6
|
title: string;
|
|
@@ -10,6 +12,13 @@ export interface NavItemProps {
|
|
|
10
12
|
isSelected?: boolean;
|
|
11
13
|
isCollapsed?: boolean;
|
|
12
14
|
onClick?: (path: string) => void;
|
|
15
|
+
sublinks?: NavItemSecondaryProps[];
|
|
16
|
+
subLinksRender?: (sublinks: NavItemSecondaryProps[], controls: NavItemHandler) => ReactNode;
|
|
13
17
|
}
|
|
14
|
-
|
|
18
|
+
interface NavItemHandler {
|
|
19
|
+
toggle: () => void;
|
|
20
|
+
setIsCollapsed: (collapsed: boolean) => void;
|
|
21
|
+
isCollapsed: boolean;
|
|
22
|
+
}
|
|
23
|
+
declare const NavItem: import('react').NamedExoticComponent<NavItemProps & import('react').RefAttributes<NavItemHandler>>;
|
|
15
24
|
export default NavItem;
|