prometeo-design-system 1.6.8 → 1.6.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.
@@ -0,0 +1,2 @@
1
+ export * from './exports/InputMultiple'
2
+ export {}
@@ -0,0 +1,254 @@
1
+ import { j as r } from "./jsx-runtime-ByW6EXIE.js";
2
+ import { Icons as E } from "./Icons.es.js";
3
+ import { c as d } from "./cn-B6yFEsav.js";
4
+ import M, { useRef as D, useState as p, useCallback as W, useEffect as X } from "react";
5
+ const Y = ({ label: R, name: S, onChange: f, value: l, icon: C, valueSeparator: b = ",", variant: y = "default", placeholder: K, itemClassName: P, itemIcon: V, helperText: w, errorText: j, disabled: a, ...U }) => {
6
+ const o = D(null), I = D(null), [u, n] = p(""), [F, i] = p(0), [$, c] = p(!0), [N, z] = p(!1), [m, x] = p(!1), [k, v] = p(null), h = (e) => {
7
+ if (!e) return;
8
+ const t = e.selectionStart ?? u.length;
9
+ i(t);
10
+ }, B = (e) => {
11
+ if (e.target.value[e.target.value.length - 1] === b && u.length > 0) {
12
+ const s = u.trim();
13
+ if (m) {
14
+ s.length > 0 ? (n(s), g()) : (x(!1), n(""), c(!0), i(0));
15
+ return;
16
+ }
17
+ if (s.length === 0 || l.includes(s)) {
18
+ n(""), c(!0), h(e.target);
19
+ return;
20
+ }
21
+ f([...l, s]), n(""), c(!0);
22
+ } else {
23
+ if (e.target.value === b) return;
24
+ n(e.target.value), c(!1);
25
+ }
26
+ h(e.target);
27
+ }, g = W(() => {
28
+ const e = u.trim();
29
+ if (e.length === 0) {
30
+ x(!1), n(""), c(!0), i(0), v(null);
31
+ return;
32
+ }
33
+ x(!1), k !== null && f(H(l.map((t, s) => s === k ? e : t))), n(""), c(!0), i(0), v(null);
34
+ }, [k, u, f, l]), O = (e) => {
35
+ if (e.key === "Backspace" && u.length === 0) {
36
+ if ($) {
37
+ const t = l[l.length - 1];
38
+ t && (f(l.filter((s) => s !== t)), n(t), i(t.length));
39
+ } else
40
+ c(!0);
41
+ return;
42
+ }
43
+ if (e.key === "Enter") {
44
+ const t = u.trim();
45
+ if (m) {
46
+ t.length > 0 ? (n(t), g()) : (x(!1), n(""), c(!0), i(0));
47
+ return;
48
+ }
49
+ t.length > 0 && !l.includes(t) && t !== b && (f([...l, t]), n(""), c(!0), i(0));
50
+ }
51
+ e.key === "Escape" && m && (x(!1), n(""), c(!0), i(0), v(null)), h(e.currentTarget);
52
+ }, q = (e) => {
53
+ const t = l.filter((s) => s !== e);
54
+ f(t);
55
+ }, A = (e) => {
56
+ G(e), x(!0), n(e), i(e.length), v(l.length - 1), o.current?.focus();
57
+ }, G = (e) => {
58
+ const t = l.filter((s) => s !== e);
59
+ f([...t, e]);
60
+ }, H = (e) => e.filter((t, s, Q) => Q.indexOf(t) === s);
61
+ X(() => {
62
+ o.current && (o.current.onfocus = () => {
63
+ z(!0);
64
+ }, o.current.onblur = () => {
65
+ z(!1), m && g();
66
+ }), I.current && (I.current.onblur = () => {
67
+ m && g();
68
+ });
69
+ }, [m, g]);
70
+ const J = {
71
+ isFocused: {
72
+ error: "border-error-default-focused ring-error-default-focused",
73
+ success: "border-success-default-focused ring-success-default-focused",
74
+ warning: "border-warning-default-focused ring-warning-default-focused",
75
+ default: "border-primary-default-focused ring-primary-default-focused"
76
+ },
77
+ default: {
78
+ error: "border-error-default-default hover:border-error-default-hover",
79
+ success: "border-success-default-default hover:border-success-default-hover",
80
+ warning: "border-warning-default-default hover:border-warning-default-hover",
81
+ default: "border-neutral-default-default hover:border-primary-default-hover"
82
+ },
83
+ disabled: {
84
+ error: "border-error-default-disabled",
85
+ success: "border-success-default-disabled",
86
+ warning: "border-warning-default-disabled",
87
+ default: "border-neutral-default-disabled"
88
+ }
89
+ }, L = {
90
+ default: {
91
+ default: "text-neutral-default-default",
92
+ isFocused: "text-neutral-default-focused",
93
+ disabled: "text-neutral-default-disabled"
94
+ },
95
+ error: {
96
+ default: "text-error-medium-default",
97
+ isFocused: "text-error-medium-focused",
98
+ disabled: "text-error-medium-disabled"
99
+ },
100
+ success: {
101
+ default: "text-success-medium-default",
102
+ isFocused: "text-success-medium-focused",
103
+ disabled: "text-success-medium-disabled"
104
+ },
105
+ warning: {
106
+ default: "text-warning-default-default",
107
+ isFocused: "text-warning-default-focused",
108
+ disabled: "text-warning-default-disabled"
109
+ }
110
+ }, _ = a ? "disabled" : N ? "isFocused" : "default";
111
+ return /* @__PURE__ */ r.jsxs("div", { className: d(
112
+ "relative w-full"
113
+ ), children: [
114
+ /* @__PURE__ */ r.jsx("p", { className: d(
115
+ "mb-1 px-3",
116
+ "prometeo-fonts-label-large",
117
+ L?.[y || "default"]?.[_]
118
+ ), children: R }),
119
+ /* @__PURE__ */ r.jsxs("div", { className: "relative", children: [
120
+ /* @__PURE__ */ r.jsx(
121
+ "input",
122
+ {
123
+ ref: o,
124
+ value: u,
125
+ onKeyUp: O,
126
+ onChange: B,
127
+ onClick: (e) => h(e.currentTarget),
128
+ onSelect: (e) => h(e.currentTarget),
129
+ name: S,
130
+ disabled: a,
131
+ className: d(
132
+ "absolute inset-0 w-full h-full",
133
+ "opacity-0 cursor-text z-10",
134
+ "bg-transparent border-none outline-none",
135
+ "pointer-events-none"
136
+ ),
137
+ autoComplete: "off",
138
+ autoCorrect: "off",
139
+ autoCapitalize: "off",
140
+ spellCheck: "false",
141
+ inputMode: "text",
142
+ ...U
143
+ }
144
+ ),
145
+ /* @__PURE__ */ r.jsxs(
146
+ "div",
147
+ {
148
+ ref: I,
149
+ className: d(
150
+ "border-1 border-neutral-default-default rounded-md p-3",
151
+ "flex flex-wrap gap-1 min-h-[58px]",
152
+ "transition-all duration-300 ease-in-out",
153
+ "cursor-text",
154
+ J[_][y],
155
+ N ? "ring-[1px]" : "",
156
+ // 'hover:border-primary-default-hover',
157
+ a && "hover:border-neutral-default-disabled"
158
+ ),
159
+ onMouseDown: (e) => {
160
+ e.preventDefault(), o.current?.focus();
161
+ const t = u.length;
162
+ o.current && (o.current.selectionStart = t, o.current.selectionEnd = t), i(t);
163
+ },
164
+ onClick: () => {
165
+ o.current?.focus();
166
+ },
167
+ children: [
168
+ C && /* @__PURE__ */ r.jsx("div", { className: d(
169
+ "flex items-center text-neutral-default-default",
170
+ a && "text-neutral-default-disabled"
171
+ ), children: C }),
172
+ l.map((e, t) => /* @__PURE__ */ r.jsxs(
173
+ "div",
174
+ {
175
+ className: d(
176
+ "h-8 max-h-8 rounded-lg bg-primary-light-default border-[1px] border-neutral-default-default",
177
+ "flex items-center gap-2 px-2",
178
+ "prometeo-fonts-label-medium z-20",
179
+ t === l.length - 1 && m ? "opacity-0 hidden overflow-hidden" : "",
180
+ a && "border-neutral-default-disabled text-neutral-default-disabled",
181
+ P
182
+ ),
183
+ children: [
184
+ V && /* @__PURE__ */ r.jsx("div", { className: "flex items-center", children: M.createElement(
185
+ V,
186
+ {
187
+ size: 16,
188
+ className: d(
189
+ "text-neutral-default-default",
190
+ a && "text-neutral-default-disabled"
191
+ )
192
+ }
193
+ ) }),
194
+ /* @__PURE__ */ r.jsx(
195
+ "span",
196
+ {
197
+ onClick: () => !a && A(e),
198
+ className: d(
199
+ "cursor-pointer hover:text-neutral-default-hover",
200
+ a && "cursor-default hover:text-neutral-default-disabled"
201
+ ),
202
+ children: e
203
+ }
204
+ ),
205
+ /* @__PURE__ */ r.jsx(
206
+ "div",
207
+ {
208
+ onClick: () => !a && q(e),
209
+ className: d(
210
+ "cursor-pointer hover:scale-105 transition-all duration-200",
211
+ a && " cursor-default hover:scale-100 "
212
+ ),
213
+ children: /* @__PURE__ */ r.jsx(
214
+ E.Close,
215
+ {
216
+ size: 16,
217
+ className: d(
218
+ "text-neutral-default-default hover:text-neutral-default-hover transition-all duration-200",
219
+ a && "text-neutral-default-disabled hover:text-neutral-default-disabled"
220
+ )
221
+ }
222
+ )
223
+ }
224
+ )
225
+ ]
226
+ },
227
+ e
228
+ )),
229
+ N && /* @__PURE__ */ r.jsxs("div", { className: "flex items-center min-w-[2px]", children: [
230
+ /* @__PURE__ */ r.jsx("span", { className: "text-neutral-default-default whitespace-pre-wrap break-words", children: u.slice(0, F) }),
231
+ /* @__PURE__ */ r.jsx("span", { className: "animate-[cursor-intermitent_1s_ease-in-out_infinite] bg-neutral-default-pressed w-[2px] h-5 inline-block align-middle mx-[1px] z-20" }),
232
+ /* @__PURE__ */ r.jsx("span", { className: "text-neutral-default-default whitespace-pre-wrap break-words", children: u.slice(F) })
233
+ ] }),
234
+ l.length === 0 && !N && /* @__PURE__ */ r.jsx("span", { className: d(
235
+ "text-neutral-medium-default self-center",
236
+ a && "text-neutral-default-disabled"
237
+ ), children: K || `Escribe los valores separados por ${b}` })
238
+ ]
239
+ }
240
+ )
241
+ ] }),
242
+ w && y !== "error" && !a && (typeof w == "string" ? /* @__PURE__ */ r.jsxs("div", { className: "prometeo-fonts-body-small text-neutral-medium-default ml-3 mt-1 flex items-center gap-1", children: [
243
+ /* @__PURE__ */ r.jsx(E.Info, { size: 16, className: "text-neutral-medium-default" }),
244
+ w
245
+ ] }) : /* @__PURE__ */ r.jsx("div", { className: "ml-3", children: w })),
246
+ j && typeof j == "string" && !a ? /* @__PURE__ */ r.jsxs("div", { className: "prometeo-fonts-body-small text-error-default-default ml-3 mt-1 flex items-center gap-1", children: [
247
+ /* @__PURE__ */ r.jsx(E.Error, { size: 16, className: "text-error-default-default" }),
248
+ j
249
+ ] }) : j
250
+ ] });
251
+ }, re = M.memo(Y);
252
+ export {
253
+ re as InputMultiple
254
+ };
@@ -1,5 +1,5 @@
1
1
  import { default as React } from 'react';
2
- interface InputMultipleProps {
2
+ export interface InputMultipleProps {
3
3
  label: string;
4
4
  name: string;
5
5
  onChange: (value: string[]) => void;
@@ -0,0 +1 @@
1
+ export { default as InputMultiple } from '../components/InputMultiple/InputMultiple';
package/dist/index.d.ts CHANGED
@@ -24,6 +24,7 @@ export { default as TabLinks } from './components/TabLinks/TabLinks';
24
24
  export { Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, } from './components/Table/Table';
25
25
  export { default as TextArea } from './components/TextArea/TextArea';
26
26
  export { default as Tooltip } from './components/Tooltip/Tootip';
27
+ export { default as InputMultiple } from './components/InputMultiple/InputMultiple';
27
28
  export { default as LayoutGeneric } from './components/Layout/LayoutGeneric';
28
29
  export * from './components/Sidebar';
29
30
  export { SecondaryBar } from './components/Sidebar/SecondaryBar/SecondaryBar';
@@ -68,4 +69,5 @@ export type { ToasterPrometeo } from './components/Toaster/Toaster';
68
69
  export type { LayoutGenericProps } from './components/Layout/LayoutGeneric';
69
70
  export type { CountdownProgressProps } from './components/ProgressBar/ProgressBar';
70
71
  export type { IToolTipProps } from './components/Tooltip/Tootip';
72
+ export type { InputMultipleProps } from './components/InputMultiple/InputMultiple';
71
73
  export { Icons } from './Icons/Icons';
@@ -15,7 +15,7 @@ import { default as Je } from "./Pagination.es.js";
15
15
  import { ProfilePictureUpload as Qe } from "./ProfilePictureUpload.es.js";
16
16
  import { default as _e } from "./ProgressBar.es.js";
17
17
  import { default as tt } from "./Select.es.js";
18
- import { default as rt } from "./SelectFormik.es.js";
18
+ import { default as at } from "./SelectFormik.es.js";
19
19
  import { default as nt } from "./Spinner.es.js";
20
20
  import { Steps as st } from "./Steps.es.js";
21
21
  import { default as ct } from "./SwipeContainer.es.js";
@@ -23,22 +23,23 @@ import { default as dt } from "./TabLinks.es.js";
23
23
  import { Table as pt, TableBody as mt, TableCaption as xt, TableCell as bt, TableFooter as yt, TableHead as gt, TableHeader as vt, TableRow as ht } from "./Table.es.js";
24
24
  import { default as jt } from "./TextArea.es.js";
25
25
  import { default as Ct } from "./Tooltip.es.js";
26
+ import { InputMultiple as kt } from "./InputMultiple.es.js";
26
27
  import { u as j } from "./LayoutGeneric-jDE96L2N.js";
27
- import { L as kt, S as It } from "./LayoutGeneric-jDE96L2N.js";
28
- import { j as a } from "./jsx-runtime-ByW6EXIE.js";
28
+ import { L as Bt, S as Lt } from "./LayoutGeneric-jDE96L2N.js";
29
+ import { j as r } from "./jsx-runtime-ByW6EXIE.js";
29
30
  import { c as s } from "./cn-B6yFEsav.js";
30
31
  import { useRef as p, useState as v, useLayoutEffect as q, createContext as P, useContext as A, forwardRef as N, useCallback as T, useEffect as C } from "react";
31
32
  import { useGSAP as S } from "@gsap/react";
32
33
  import c from "gsap";
33
34
  import { Icons as b } from "./Icons.es.js";
34
35
  import { motion as d, AnimatePresence as k } from "framer-motion";
35
- import { default as Lt } from "./OtpInput.es.js";
36
- import { DropZone as qt } from "./DropZone.es.js";
36
+ import { default as qt } from "./OtpInput.es.js";
37
+ import { DropZone as At } from "./DropZone.es.js";
37
38
  const D = (t, e) => {
38
39
  S(
39
40
  () => {
40
41
  if (!t.current) return;
41
- const o = t.current, r = document.querySelector('[data-main-content="true"]');
42
+ const o = t.current, a = document.querySelector('[data-main-content="true"]');
42
43
  if (e) {
43
44
  c.fromTo(
44
45
  o,
@@ -52,7 +53,7 @@ const D = (t, e) => {
52
53
  duration: 0.4,
53
54
  ease: "power2.out"
54
55
  }
55
- ), r && c.to(r, {
56
+ ), a && c.to(a, {
56
57
  marginLeft: o.offsetWidth + "px",
57
58
  duration: 0.4,
58
59
  ease: "power2.out"
@@ -79,7 +80,7 @@ const D = (t, e) => {
79
80
  opacity: 0,
80
81
  duration: 0.3,
81
82
  ease: "power2.in"
82
- }), r && c.to(r, {
83
+ }), a && c.to(a, {
83
84
  marginLeft: "0px",
84
85
  duration: 0.3,
85
86
  ease: "power2.in"
@@ -91,7 +92,7 @@ const D = (t, e) => {
91
92
  children: t,
92
93
  isOpen: e = !1,
93
94
  className: o = "",
94
- width: r = "w-96",
95
+ width: a = "w-96",
95
96
  action: n,
96
97
  primarySidebarCollapsed: i,
97
98
  onClose: l
@@ -105,8 +106,8 @@ const D = (t, e) => {
105
106
  width: g.width
106
107
  });
107
108
  }
108
- }, [x, e, i]), D(u, e), /* @__PURE__ */ a.jsx(a.Fragment, { children: e && /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
109
- /* @__PURE__ */ a.jsx(
109
+ }, [x, e, i]), D(u, e), /* @__PURE__ */ r.jsx(r.Fragment, { children: e && /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
110
+ /* @__PURE__ */ r.jsx(
110
111
  "div",
111
112
  {
112
113
  className: "fixed inset-0 bg-black/95 z-20",
@@ -116,25 +117,25 @@ const D = (t, e) => {
116
117
  onClick: l
117
118
  }
118
119
  ),
119
- /* @__PURE__ */ a.jsx(
120
+ /* @__PURE__ */ r.jsx(
120
121
  "div",
121
122
  {
122
123
  ref: u,
123
124
  className: s(
124
125
  "h-screen bg-neutral-default-default border-r-1 border-neutral-strong-default flex flex-col secondary-bar flex-shrink-0",
125
126
  "absolute top-0 z-30",
126
- r,
127
+ a,
127
128
  o
128
129
  ),
129
130
  style: {
130
131
  left: f.left
131
132
  },
132
133
  "data-action": n,
133
- children: /* @__PURE__ */ a.jsx("div", { className: "secondary-bar-content", children: t })
134
+ children: /* @__PURE__ */ r.jsx("div", { className: "secondary-bar-content", children: t })
134
135
  }
135
136
  )
136
137
  ] }) });
137
- }, E = ({ children: t, className: e }) => /* @__PURE__ */ a.jsx("div", { className: s("h-16 ", e), children: t }), O = ({ children: t, className: e }) => /* @__PURE__ */ a.jsx("div", { className: s("flex-1 overflow-y-auto p-4", e), children: t }), z = ({ children: t, className: e }) => /* @__PURE__ */ a.jsx("div", { className: s("p-4 border-t border-neutral-strong-default", e), children: t }), F = ({ className: t }) => /* @__PURE__ */ a.jsx("div", { className: s("flex-1", t) }), ie = Object.assign(w, {
138
+ }, E = ({ children: t, className: e }) => /* @__PURE__ */ r.jsx("div", { className: s("h-16 ", e), children: t }), O = ({ children: t, className: e }) => /* @__PURE__ */ r.jsx("div", { className: s("flex-1 overflow-y-auto p-4", e), children: t }), z = ({ children: t, className: e }) => /* @__PURE__ */ r.jsx("div", { className: s("p-4 border-t border-neutral-strong-default", e), children: t }), F = ({ className: t }) => /* @__PURE__ */ r.jsx("div", { className: s("flex-1", t) }), ie = Object.assign(w, {
138
139
  Root: w,
139
140
  Header: E,
140
141
  Content: O,
@@ -150,7 +151,7 @@ const D = (t, e) => {
150
151
  }, H = ({
151
152
  children: t
152
153
  }) => {
153
- const [e, o] = v(!1), [r, n] = v(!1), i = p(null), l = () => {
154
+ const [e, o] = v(!1), [a, n] = v(!1), i = p(null), l = () => {
154
155
  o(!1), n(!1);
155
156
  }, u = () => {
156
157
  o(!0), n(!1);
@@ -161,7 +162,7 @@ const D = (t, e) => {
161
162
  toggleCollapse: () => {
162
163
  e ? l() : u();
163
164
  },
164
- activeSecondaryBar: r ? "notifications" : null,
165
+ activeSecondaryBar: a ? "notifications" : null,
165
166
  openSecondaryBar: () => {
166
167
  n(!0);
167
168
  },
@@ -172,12 +173,12 @@ const D = (t, e) => {
172
173
  n((R) => !R);
173
174
  }
174
175
  };
175
- return /* @__PURE__ */ a.jsx(I.Provider, { value: L, children: t });
176
- }, y = (t, e, o, r) => e && (Array.isArray(e) ? e.length > 0 : e) ? t.to(e, o, r) : t, W = (t, e, o) => {
176
+ return /* @__PURE__ */ r.jsx(I.Provider, { value: L, children: t });
177
+ }, y = (t, e, o, a) => e && (Array.isArray(e) ? e.length > 0 : e) ? t.to(e, o, a) : t, W = (t, e, o) => {
177
178
  S(
178
179
  () => {
179
180
  if (!t.current) return;
180
- const r = c.timeline({
181
+ const a = c.timeline({
181
182
  defaults: { duration: 0.7, ease: "power1.out" }
182
183
  }), n = {
183
184
  navbar: t.current,
@@ -215,7 +216,7 @@ const D = (t, e) => {
215
216
  secondaryBarContent: c.utils.toArray(".secondary-bar *"),
216
217
  badgeInLink: c.utils.toArray(".badge-in-link")
217
218
  };
218
- e ? $(r, n) : M(r, n), n.secondaryBar && U(n.secondaryBar);
219
+ e ? $(a, n) : M(a, n), n.secondaryBar && U(n.secondaryBar);
219
220
  },
220
221
  { scope: t, dependencies: [e, o] }
221
222
  );
@@ -494,13 +495,13 @@ const D = (t, e) => {
494
495
  ease: "power2.in"
495
496
  });
496
497
  }, V = N(
497
- ({ children: t, isCollapsed: e = !1, className: o = "" }, r) => {
498
+ ({ children: t, isCollapsed: e = !1, className: o = "" }, a) => {
498
499
  const n = p(null), { registerPrimarySidebar: i } = j(), l = T((u) => {
499
- n.current = u, typeof r == "function" ? r(u) : r && (r.current = u);
500
- }, [r]);
500
+ n.current = u, typeof a == "function" ? a(u) : a && (a.current = u);
501
+ }, [a]);
501
502
  return C(() => {
502
503
  n.current && i(n);
503
- }, [i]), W(n, e, !1), /* @__PURE__ */ a.jsx(
504
+ }, [i]), W(n, e, !1), /* @__PURE__ */ r.jsx(
504
505
  "div",
505
506
  {
506
507
  ref: l,
@@ -511,19 +512,19 @@ const D = (t, e) => {
511
512
  );
512
513
  }
513
514
  ), h = N(
514
- (t, e) => /* @__PURE__ */ a.jsx(H, { children: /* @__PURE__ */ a.jsx(V, { ...t, ref: e }) })
515
+ (t, e) => /* @__PURE__ */ r.jsx(H, { children: /* @__PURE__ */ r.jsx(V, { ...t, ref: e }) })
515
516
  );
516
517
  h.displayName = "SidebarRoot";
517
- const G = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ a.jsx("div", { className: s("flex mt-5 mb-4 justify-end mr-5 container-icon-collapsade", t && ""), children: /* @__PURE__ */ a.jsx(
518
+ const G = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ r.jsx("div", { className: s("flex mt-5 mb-4 justify-end mr-5 container-icon-collapsade", t && ""), children: /* @__PURE__ */ r.jsx(
518
519
  "button",
519
520
  {
520
521
  onClick: e,
521
522
  title: t ? "Expandir Navbar" : "Contraer Navbar",
522
523
  "aria-label": t ? "Expandir Navbar" : "Contraer Navbar",
523
524
  className: "cursor-pointer text-neutral-default-default hover:text-primary-default transition-colors duration-300",
524
- children: t ? /* @__PURE__ */ a.jsx(b.CloseNavBarDesktop, { size: 24, className: "rotate-180 transition-transform duration-300" }) : /* @__PURE__ */ a.jsx(b.CloseNavBarDesktop, { size: 24, className: "rotate-0 transition-transform duration-300" })
525
+ children: t ? /* @__PURE__ */ r.jsx(b.CloseNavBarDesktop, { size: 24, className: "rotate-180 transition-transform duration-300" }) : /* @__PURE__ */ r.jsx(b.CloseNavBarDesktop, { size: 24, className: "rotate-0 transition-transform duration-300" })
525
526
  }
526
- ) }), X = ({ children: t, className: e }) => /* @__PURE__ */ a.jsx("div", { className: `${e} sidebar-header`, children: t }), Z = ({ className: t }) => /* @__PURE__ */ a.jsx("div", { className: s("px-3 flex justify-center items-center w-full mb-4", t), children: /* @__PURE__ */ a.jsx("div", { className: "border-b border-neutral-strong-default border-1 w-full" }) }), J = ({ children: t, className: e }) => /* @__PURE__ */ a.jsx("div", { className: e, children: t }), K = ({ className: t, size: e = "auto" }) => {
527
+ ) }), X = ({ children: t, className: e }) => /* @__PURE__ */ r.jsx("div", { className: `${e} sidebar-header`, children: t }), Z = ({ className: t }) => /* @__PURE__ */ r.jsx("div", { className: s("px-3 flex justify-center items-center w-full mb-4", t), children: /* @__PURE__ */ r.jsx("div", { className: "border-b border-neutral-strong-default border-1 w-full" }) }), J = ({ children: t, className: e }) => /* @__PURE__ */ r.jsx("div", { className: e, children: t }), K = ({ className: t, size: e = "auto" }) => {
527
528
  const o = () => {
528
529
  switch (e) {
529
530
  case "auto":
@@ -536,8 +537,8 @@ const G = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ a.jsx("di
536
537
  return "h-8 w-8";
537
538
  }
538
539
  };
539
- return /* @__PURE__ */ a.jsx("div", { className: s(o(), t) });
540
- }, Q = ({ children: t, className: e }) => /* @__PURE__ */ a.jsx("div", { className: e, children: t }), le = Object.assign(h, {
540
+ return /* @__PURE__ */ r.jsx("div", { className: s(o(), t) });
541
+ }, Q = ({ children: t, className: e }) => /* @__PURE__ */ r.jsx("div", { className: e, children: t }), le = Object.assign(h, {
541
542
  Root: h,
542
543
  CollapseButton: G,
543
544
  Header: X,
@@ -549,16 +550,16 @@ const G = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ a.jsx("di
549
550
  children: t,
550
551
  icon: e,
551
552
  label: o,
552
- href: r,
553
+ href: a,
553
554
  onClick: n,
554
555
  isActive: i = !1,
555
556
  className: l
556
557
  }) => {
557
- const u = r ? "a" : "button";
558
- return /* @__PURE__ */ a.jsxs(
558
+ const u = a ? "a" : "button";
559
+ return /* @__PURE__ */ r.jsxs(
559
560
  u,
560
561
  {
561
- href: r,
562
+ href: a,
562
563
  onClick: n,
563
564
  className: s(
564
565
  "nav-link-item",
@@ -569,8 +570,8 @@ const G = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ a.jsx("di
569
570
  l
570
571
  ),
571
572
  children: [
572
- e && /* @__PURE__ */ a.jsx("div", { className: "nav-icon-wrapper mr-3 flex-shrink-0", children: /* @__PURE__ */ a.jsx("div", { className: "nav-icon flex items-center justify-center w-5 h-5", children: e }) }),
573
- o && /* @__PURE__ */ a.jsx("span", { className: "nav-label text-sm text-neutral-strong-default", children: o }),
573
+ e && /* @__PURE__ */ r.jsx("div", { className: "nav-icon-wrapper mr-3 flex-shrink-0", children: /* @__PURE__ */ r.jsx("div", { className: "nav-icon flex items-center justify-center w-5 h-5", children: e }) }),
574
+ o && /* @__PURE__ */ r.jsx("span", { className: "nav-label text-sm text-neutral-strong-default", children: o }),
574
575
  t
575
576
  ]
576
577
  }
@@ -579,7 +580,7 @@ const G = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ a.jsx("di
579
580
  count: t,
580
581
  maxCount: e = 9,
581
582
  className: o = "",
582
- size: r = "medium",
583
+ size: a = "medium",
583
584
  variant: n = "primary",
584
585
  showZero: i = !1
585
586
  }) => {
@@ -596,17 +597,17 @@ const G = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ a.jsx("di
596
597
  warning: "bg-yellow-500 text-black",
597
598
  danger: "bg-red-500 text-white"
598
599
  };
599
- return /* @__PURE__ */ a.jsx("div", { className: s(
600
+ return /* @__PURE__ */ r.jsx("div", { className: s(
600
601
  "rounded-full flex items-center justify-center font-medium ",
601
- f[r],
602
+ f[a],
602
603
  m[n],
603
604
  o
604
- ), children: /* @__PURE__ */ a.jsx("span", { children: u }) });
605
+ ), children: /* @__PURE__ */ r.jsx("span", { children: u }) });
605
606
  }, ue = ({
606
607
  linkActions: t,
607
608
  onClick: e,
608
609
  activeAction: o
609
- }) => /* @__PURE__ */ a.jsx("nav", { className: "flex flex-col gap-1", children: t?.map((r, n) => r.isView && r.viewAccess() && /* @__PURE__ */ a.jsx(
610
+ }) => /* @__PURE__ */ r.jsx("nav", { className: "flex flex-col gap-1", children: t?.map((a, n) => a.isView && a.viewAccess() && /* @__PURE__ */ r.jsx(
610
611
  d.div,
611
612
  {
612
613
  initial: { opacity: 0 },
@@ -617,20 +618,20 @@ const G = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ a.jsx("di
617
618
  ease: "easeOut"
618
619
  },
619
620
  className: "relative flex justify-center w-full items-center px-3",
620
- children: /* @__PURE__ */ a.jsxs(
621
+ children: /* @__PURE__ */ r.jsxs(
621
622
  "button",
622
623
  {
623
624
  onClick: () => {
624
- e?.(r.action);
625
+ e?.(a.action);
625
626
  },
626
627
  className: s(
627
628
  "nav-link-item flex rounded-lg cursor-pointer relative overflow-hidden h-10 ",
628
629
  "transition-all duration-300 ease-out w-full",
629
630
  "group hover:bg-neutral-medium-selected",
630
- o === r.action ? "text-primary-default-default bg-neutral-medium-selected" : "text-neutral-default-default"
631
+ o === a.action ? "text-primary-default-default bg-neutral-medium-selected" : "text-neutral-default-default"
631
632
  ),
632
633
  children: [
633
- /* @__PURE__ */ a.jsx(k, { mode: "wait", children: o === r.action && /* @__PURE__ */ a.jsx(
634
+ /* @__PURE__ */ r.jsx(k, { mode: "wait", children: o === a.action && /* @__PURE__ */ r.jsx(
634
635
  d.div,
635
636
  {
636
637
  layoutId: "nav-active-bg",
@@ -645,42 +646,42 @@ const G = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ a.jsx("di
645
646
  }
646
647
  }
647
648
  ) }),
648
- /* @__PURE__ */ a.jsxs(
649
+ /* @__PURE__ */ r.jsxs(
649
650
  d.div,
650
651
  {
651
652
  className: "nav-content-wrapper flex items-center justify-between gap-3 px-3 relative z-10 w-full",
652
653
  animate: {
653
- x: (o === r.action, 0)
654
+ x: (o === a.action, 0)
654
655
  },
655
656
  transition: {
656
657
  duration: 0.25,
657
658
  ease: "easeOut"
658
659
  },
659
660
  children: [
660
- /* @__PURE__ */ a.jsxs("div", { className: "flex items-center gap-3", children: [
661
- /* @__PURE__ */ a.jsx(
661
+ /* @__PURE__ */ r.jsxs("div", { className: "flex items-center gap-3", children: [
662
+ /* @__PURE__ */ r.jsx(
662
663
  d.div,
663
664
  {
664
665
  className: "nav-icon-wrapper flex items-center justify-center flex-shrink-0",
665
666
  animate: {
666
- scale: o === r.action ? 1.05 : 1
667
+ scale: o === a.action ? 1.05 : 1
667
668
  },
668
669
  transition: {
669
670
  duration: 0.25,
670
671
  ease: "easeOut"
671
672
  },
672
- children: typeof r.icon == "function" ? r.icon({
673
+ children: typeof a.icon == "function" ? a.icon({
673
674
  size: 24,
674
675
  className: s(
675
676
  "nav-icon transition-colors duration-250 ease-out",
676
- o === r.action ? "text-primary-default-default" : "text-neutral-default-default group-hover:text-white-prometeo"
677
+ o === a.action ? "text-primary-default-default" : "text-neutral-default-default group-hover:text-white-prometeo"
677
678
  )
678
679
  }) : null
679
680
  }
680
681
  ),
681
- /* @__PURE__ */ a.jsx("span", { className: "nav-label whitespace-nowrap text-sm font-semibold ", children: r.title })
682
+ /* @__PURE__ */ r.jsx("span", { className: "nav-label whitespace-nowrap text-sm font-semibold ", children: a.title })
682
683
  ] }),
683
- /* @__PURE__ */ a.jsx("div", { className: "badge-in-link", children: r.count && r?.count >= 1 ? /* @__PURE__ */ a.jsx(B, { count: r.count, maxCount: 9, className: "" }) : "" })
684
+ /* @__PURE__ */ r.jsx("div", { className: "badge-in-link", children: a.count && a?.count >= 1 ? /* @__PURE__ */ r.jsx(B, { count: a.count, maxCount: 9, className: "" }) : "" })
684
685
  ]
685
686
  }
686
687
  )
@@ -693,11 +694,11 @@ const G = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ a.jsx("di
693
694
  links: t,
694
695
  isLinkActive: e,
695
696
  onLinkClick: o
696
- }) => /* @__PURE__ */ a.jsx("nav", { className: "flex flex-col gap-1", children: t?.map((r, n) => {
697
- const i = e(r.path) || (r.relatedPaths?.some(
697
+ }) => /* @__PURE__ */ r.jsx("nav", { className: "flex flex-col gap-1", children: t?.map((a, n) => {
698
+ const i = e(a.path) || (a.relatedPaths?.some(
698
699
  (l) => e(l)
699
700
  ) ?? !1);
700
- return r.isView && r.viewAccess() && /* @__PURE__ */ a.jsx(
701
+ return a.isView && a.viewAccess() && /* @__PURE__ */ r.jsx(
701
702
  d.div,
702
703
  {
703
704
  initial: { opacity: 0 },
@@ -708,11 +709,11 @@ const G = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ a.jsx("di
708
709
  ease: "easeOut"
709
710
  },
710
711
  className: "relative flex justify-center w-full items-center px-3",
711
- children: /* @__PURE__ */ a.jsxs(
712
+ children: /* @__PURE__ */ r.jsxs(
712
713
  "button",
713
714
  {
714
715
  onClick: () => {
715
- o?.(r.path);
716
+ o?.(a.path);
716
717
  },
717
718
  className: s(
718
719
  "nav-link-item flex rounded-lg cursor-pointer relative overflow-hidden h-10 ",
@@ -721,7 +722,7 @@ const G = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ a.jsx("di
721
722
  i ? "text-primary-default-default bg-neutral-medium-selected" : "text-neutral-default-default"
722
723
  ),
723
724
  children: [
724
- /* @__PURE__ */ a.jsx(k, { mode: "wait", children: i && /* @__PURE__ */ a.jsx(
725
+ /* @__PURE__ */ r.jsx(k, { mode: "wait", children: i && /* @__PURE__ */ r.jsx(
725
726
  d.div,
726
727
  {
727
728
  layoutId: "nav-active-bg",
@@ -736,7 +737,7 @@ const G = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ a.jsx("di
736
737
  }
737
738
  }
738
739
  ) }),
739
- /* @__PURE__ */ a.jsxs(
740
+ /* @__PURE__ */ r.jsxs(
740
741
  d.div,
741
742
  {
742
743
  className: "nav-content-wrapper flex items-center justify-between gap-3 px-3 relative z-10 w-full",
@@ -748,8 +749,8 @@ const G = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ a.jsx("di
748
749
  ease: "easeOut"
749
750
  },
750
751
  children: [
751
- /* @__PURE__ */ a.jsxs("div", { className: "flex items-center gap-3", children: [
752
- /* @__PURE__ */ a.jsx(
752
+ /* @__PURE__ */ r.jsxs("div", { className: "flex items-center gap-3", children: [
753
+ /* @__PURE__ */ r.jsx(
753
754
  d.div,
754
755
  {
755
756
  className: "nav-icon-wrapper flex items-center justify-center flex-shrink-0",
@@ -760,7 +761,7 @@ const G = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ a.jsx("di
760
761
  duration: 0.25,
761
762
  ease: "easeOut"
762
763
  },
763
- children: typeof r.icon == "function" ? r.icon({
764
+ children: typeof a.icon == "function" ? a.icon({
764
765
  size: 24,
765
766
  className: s(
766
767
  "nav-icon transition-colors duration-250 ease-out",
@@ -769,9 +770,9 @@ const G = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ a.jsx("di
769
770
  }) : null
770
771
  }
771
772
  ),
772
- /* @__PURE__ */ a.jsx("span", { className: "nav-label whitespace-nowrap text-sm font-semibold ", children: r.title })
773
+ /* @__PURE__ */ r.jsx("span", { className: "nav-label whitespace-nowrap text-sm font-semibold ", children: a.title })
773
774
  ] }),
774
- /* @__PURE__ */ a.jsx("div", { className: "badge-in-link", children: r.count && r.count ? /* @__PURE__ */ a.jsx(B, { count: r.count, maxCount: 9, className: "" }) : "" })
775
+ /* @__PURE__ */ r.jsx("div", { className: "badge-in-link", children: a.count && a.count ? /* @__PURE__ */ r.jsx(B, { count: a.count, maxCount: 9, className: "" }) : "" })
775
776
  ]
776
777
  }
777
778
  )
@@ -795,16 +796,16 @@ const G = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ a.jsx("di
795
796
  }, me = ({
796
797
  isCollapsed: t,
797
798
  onToggle: e
798
- }) => /* @__PURE__ */ a.jsx("div", { className: "", children: /* @__PURE__ */ a.jsx(
799
+ }) => /* @__PURE__ */ r.jsx("div", { className: "", children: /* @__PURE__ */ r.jsx(
799
800
  "button",
800
801
  {
801
802
  onClick: e,
802
803
  title: t ? "Expandir Navbar" : "Contraer Navbar",
803
804
  "aria-label": t ? "Expandir Navbar" : "Contraer Navbar",
804
805
  className: "cursor-pointer text-neutral-default-default hover:text-primary-default transition-colors duration-300",
805
- children: t ? /* @__PURE__ */ a.jsx(b.CloseNavBarDesktop, { size: 34, className: "rotate-180 transition-transform duration-300" }) : /* @__PURE__ */ a.jsx(b.CloseNavBarDesktop, { size: 34, className: "rotate-0 transition-transform duration-300" })
806
+ children: t ? /* @__PURE__ */ r.jsx(b.CloseNavBarDesktop, { size: 34, className: "rotate-180 transition-transform duration-300" }) : /* @__PURE__ */ r.jsx(b.CloseNavBarDesktop, { size: 34, className: "rotate-0 transition-transform duration-300" })
806
807
  }
807
- ) }), xe = ({ logoUrl: t, companyName: e }) => /* @__PURE__ */ a.jsx("div", { className: "w-full flex justify-center items-center p-2 h-20", children: /* @__PURE__ */ a.jsx(
808
+ ) }), xe = ({ logoUrl: t, companyName: e }) => /* @__PURE__ */ r.jsx("div", { className: "w-full flex justify-center items-center p-2 h-20", children: /* @__PURE__ */ r.jsx(
808
809
  "img",
809
810
  {
810
811
  src: t,
@@ -815,17 +816,17 @@ const G = ({ isCollapsed: t, onToggleCollapse: e }) => /* @__PURE__ */ a.jsx("di
815
816
  const o = p(null);
816
817
  return C(() => {
817
818
  if (!e) return;
818
- const r = (n) => {
819
+ const a = (n) => {
819
820
  o.current && !o.current.contains(n.target) && t();
820
821
  };
821
- return document.addEventListener("mousedown", r, {
822
+ return document.addEventListener("mousedown", a, {
822
823
  capture: !0
823
- }), document.addEventListener("touchstart", r, {
824
+ }), document.addEventListener("touchstart", a, {
824
825
  capture: !0
825
826
  }), () => {
826
- document.removeEventListener("mousedown", r, {
827
+ document.removeEventListener("mousedown", a, {
827
828
  capture: !0
828
- }), document.removeEventListener("touchstart", r, {
829
+ }), document.removeEventListener("touchstart", a, {
829
830
  capture: !0
830
831
  });
831
832
  };
@@ -843,28 +844,29 @@ export {
843
844
  Re as DialogModal,
844
845
  Ae as DrawerDesktop,
845
846
  Ee as DrawerMobile,
846
- qt as DropZone,
847
+ At as DropZone,
847
848
  Fe as Header,
848
849
  b as Icons,
849
850
  We as Input,
850
851
  Me as InputFormik,
851
- kt as LayoutGeneric,
852
+ kt as InputMultiple,
853
+ Bt as LayoutGeneric,
852
854
  Ve as Logo,
853
855
  Xe as Menu,
854
856
  ue as NavBarActions,
855
857
  me as NavbarCollapseButton,
856
858
  de as NavbarLinks,
857
859
  ce as NavigationLink,
858
- Lt as OtpInput,
860
+ qt as OtpInput,
859
861
  Je as Pagination,
860
862
  Qe as ProfilePictureUpload,
861
863
  _e as ProgressBar,
862
864
  ie as SecondaryBar,
863
865
  tt as Select,
864
- rt as SelectFormik,
866
+ at as SelectFormik,
865
867
  le as Sidebar,
866
868
  H as SidebarProvider,
867
- It as SidebarRefProvider,
869
+ Lt as SidebarRefProvider,
868
870
  nt as Spinner,
869
871
  st as Steps,
870
872
  ct as SwipeContainer,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "prometeo-design-system",
3
3
  "private": false,
4
- "version": "1.6.8",
4
+ "version": "1.6.9",
5
5
  "type": "module",
6
6
  "description": "design kit system",
7
7
  "main": "dist/prometeo-design-system.umd.js",
@@ -133,6 +133,10 @@
133
133
  "types": "./dist/Icons.d.ts",
134
134
  "import": "./dist/Icons.es.js"
135
135
  },
136
+ "./InputMultiple": {
137
+ "types": "./dist/InputMultiple.d.ts",
138
+ "import": "./dist/InputMultiple.es.js"
139
+ },
136
140
  "./styles": "./dist/prometeo-design-system.css"
137
141
  },
138
142
  "files": [