siesa-ui-kit 1.0.8 → 1.0.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Dropdown/Dropdown.d.ts.map +1 -1
- package/dist/siesa-ui-kit.cjs +122 -122
- package/dist/siesa-ui-kit.cjs.map +1 -1
- package/dist/siesa-ui-kit.mjs +694 -687
- package/dist/siesa-ui-kit.mjs.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/siesa-ui-kit.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { jsxs as l, Fragment as
|
|
2
|
-
import { forwardRef as
|
|
1
|
+
import { jsxs as l, Fragment as z, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as E, cloneElement as ae, useRef as G, useEffect as U, useState as H, useCallback as ge, useMemo as ue, createContext as xe, useContext as fe } from "react";
|
|
3
3
|
const Y = ({
|
|
4
4
|
type: t = "default",
|
|
5
5
|
size: a = "base",
|
|
@@ -10,27 +10,27 @@ const Y = ({
|
|
|
10
10
|
disabled: c = !1,
|
|
11
11
|
className: d = "",
|
|
12
12
|
onClick: b,
|
|
13
|
-
htmlType:
|
|
13
|
+
htmlType: g = "button",
|
|
14
14
|
fullWidth: i = !1,
|
|
15
|
-
ariaLabel:
|
|
16
|
-
badge:
|
|
17
|
-
badgeCount:
|
|
18
|
-
badgeColor:
|
|
19
|
-
...
|
|
15
|
+
ariaLabel: m,
|
|
16
|
+
badge: p = !1,
|
|
17
|
+
badgeCount: f,
|
|
18
|
+
badgeColor: u = "red",
|
|
19
|
+
...k
|
|
20
20
|
}) => {
|
|
21
|
-
const
|
|
21
|
+
const x = {
|
|
22
22
|
xs: o ? "h-6 w-6 p-1" : "h-6 py-1 px-2 gap-2",
|
|
23
23
|
sm: o ? "h-7 w-7 p-1.5" : "h-7 py-1 px-2 gap-2",
|
|
24
24
|
base: o ? "h-8 w-8 p-2" : "h-8 py-1.5 px-2.5 gap-2",
|
|
25
25
|
l: o ? "h-9 w-9 p-2.5" : "h-9 py-2 px-3 gap-3",
|
|
26
26
|
xl: o ? "h-10 w-10 p-3" : "h-10 py-2 px-4 gap-3"
|
|
27
|
-
},
|
|
27
|
+
}, h = {
|
|
28
28
|
xs: "w-4 h-4",
|
|
29
29
|
sm: "w-4 h-4",
|
|
30
30
|
base: "w-4 h-4",
|
|
31
31
|
l: "w-4 h-4",
|
|
32
32
|
xl: "w-4 h-4"
|
|
33
|
-
},
|
|
33
|
+
}, C = {
|
|
34
34
|
xs: "text-xs",
|
|
35
35
|
// Label Tiny - 12px
|
|
36
36
|
sm: "text-sm",
|
|
@@ -41,7 +41,7 @@ const Y = ({
|
|
|
41
41
|
// Label Small - 14px (corregido según Figma)
|
|
42
42
|
xl: "text-sm"
|
|
43
43
|
// Label Small - 14px (corregido según Figma)
|
|
44
|
-
},
|
|
44
|
+
}, N = {
|
|
45
45
|
default: `
|
|
46
46
|
bg-primary-custom-600
|
|
47
47
|
text-primary-inverse-content
|
|
@@ -97,7 +97,7 @@ const Y = ({
|
|
|
97
97
|
dark:text-dark-content-custom
|
|
98
98
|
dark:hover:bg-hover-overlay-dark
|
|
99
99
|
`
|
|
100
|
-
},
|
|
100
|
+
}, y = `
|
|
101
101
|
inline-flex
|
|
102
102
|
items-center
|
|
103
103
|
justify-center
|
|
@@ -114,17 +114,17 @@ const Y = ({
|
|
|
114
114
|
disabled:opacity-50
|
|
115
115
|
disabled:cursor-not-allowed
|
|
116
116
|
disabled:pointer-events-none
|
|
117
|
-
`,
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
117
|
+
`, w = i ? "w-full" : "", $ = [
|
|
118
|
+
y,
|
|
119
|
+
x[a],
|
|
120
|
+
N[t],
|
|
121
|
+
w,
|
|
122
122
|
d
|
|
123
|
-
].join(" ").replace(/\s+/g, " ").trim(), B = (I) => I ? /* @__PURE__ */ e("span", { className: `inline-flex items-center justify-center ${
|
|
123
|
+
].join(" ").replace(/\s+/g, " ").trim(), B = (I) => I ? /* @__PURE__ */ e("span", { className: `inline-flex items-center justify-center ${h[a]}`, children: I }) : null, v = () => o ? B(r) : /* @__PURE__ */ l(z, { children: [
|
|
124
124
|
r && B(r),
|
|
125
|
-
s && /* @__PURE__ */ e("span", { className:
|
|
125
|
+
s && /* @__PURE__ */ e("span", { className: C[a], children: s }),
|
|
126
126
|
n && B(n)
|
|
127
|
-
] }),
|
|
127
|
+
] }), j = {
|
|
128
128
|
zinc: { bg: "bg-zinc-600", text: "text-white" },
|
|
129
129
|
red: { bg: "bg-red-700", text: "text-white" },
|
|
130
130
|
orange: { bg: "bg-orange-700", text: "text-white" },
|
|
@@ -146,7 +146,7 @@ const Y = ({
|
|
|
146
146
|
primary: { bg: "bg-primary-custom-600", text: "text-white" },
|
|
147
147
|
secondary: { bg: "bg-zinc-600", text: "text-white" },
|
|
148
148
|
tertiary: { bg: "bg-zinc-600", text: "text-white" }
|
|
149
|
-
},
|
|
149
|
+
}, R = j[u] || j.red, T = () => !p && f === void 0 ? null : f !== void 0 ? /* @__PURE__ */ e(
|
|
150
150
|
"span",
|
|
151
151
|
{
|
|
152
152
|
className: `
|
|
@@ -163,12 +163,12 @@ const Y = ({
|
|
|
163
163
|
text-[10px]
|
|
164
164
|
font-bold
|
|
165
165
|
leading-none
|
|
166
|
-
${
|
|
167
|
-
${
|
|
166
|
+
${R.bg}
|
|
167
|
+
${R.text}
|
|
168
168
|
pointer-events-none
|
|
169
169
|
`.trim().replace(/\s+/g, " "),
|
|
170
|
-
"aria-label": `${
|
|
171
|
-
children:
|
|
170
|
+
"aria-label": `${f} notificaciones`,
|
|
171
|
+
children: f > 99 ? "99+" : f
|
|
172
172
|
}
|
|
173
173
|
) : /* @__PURE__ */ e(
|
|
174
174
|
"span",
|
|
@@ -180,7 +180,7 @@ const Y = ({
|
|
|
180
180
|
w-2
|
|
181
181
|
h-2
|
|
182
182
|
rounded-full
|
|
183
|
-
${
|
|
183
|
+
${R.bg}
|
|
184
184
|
pointer-events-none
|
|
185
185
|
`.trim().replace(/\s+/g, " "),
|
|
186
186
|
"aria-label": "Notificación"
|
|
@@ -189,19 +189,19 @@ const Y = ({
|
|
|
189
189
|
return /* @__PURE__ */ l(
|
|
190
190
|
"button",
|
|
191
191
|
{
|
|
192
|
-
type:
|
|
193
|
-
className: `${
|
|
192
|
+
type: g,
|
|
193
|
+
className: `${$} ${p || f !== void 0 ? "relative" : ""}`,
|
|
194
194
|
disabled: c,
|
|
195
195
|
onClick: b,
|
|
196
|
-
"aria-label":
|
|
197
|
-
...
|
|
196
|
+
"aria-label": m,
|
|
197
|
+
...k,
|
|
198
198
|
children: [
|
|
199
|
-
|
|
200
|
-
|
|
199
|
+
v(),
|
|
200
|
+
T()
|
|
201
201
|
]
|
|
202
202
|
}
|
|
203
203
|
);
|
|
204
|
-
},
|
|
204
|
+
}, he = E(
|
|
205
205
|
({
|
|
206
206
|
label: t,
|
|
207
207
|
labelSecondary: a,
|
|
@@ -212,11 +212,11 @@ const Y = ({
|
|
|
212
212
|
rightIcon: c,
|
|
213
213
|
fullWidth: d = !1,
|
|
214
214
|
className: b = "",
|
|
215
|
-
disabled:
|
|
215
|
+
disabled: g = !1,
|
|
216
216
|
id: i,
|
|
217
|
-
...
|
|
218
|
-
},
|
|
219
|
-
const
|
|
217
|
+
...m
|
|
218
|
+
}, p) => {
|
|
219
|
+
const f = i || `input-${Math.random().toString(36).substr(2, 9)}`, u = `
|
|
220
220
|
w-full
|
|
221
221
|
px-3
|
|
222
222
|
py-1.5
|
|
@@ -236,7 +236,7 @@ const Y = ({
|
|
|
236
236
|
dark:border-dark-border-primary
|
|
237
237
|
dark:text-dark-content-primary
|
|
238
238
|
dark:placeholder:text-dark-content-tertiary
|
|
239
|
-
`,
|
|
239
|
+
`, k = g ? `
|
|
240
240
|
opacity-50
|
|
241
241
|
cursor-not-allowed
|
|
242
242
|
bg-bg-secondary
|
|
@@ -251,25 +251,25 @@ const Y = ({
|
|
|
251
251
|
dark:focus:border-dark-border-custom
|
|
252
252
|
dark:focus:ring-dark-border-custom
|
|
253
253
|
dark:focus:ring-offset-dark-bg-primary
|
|
254
|
-
`,
|
|
254
|
+
`, x = r ? `
|
|
255
255
|
border-error-border!
|
|
256
256
|
focus:ring-error-border/30!
|
|
257
257
|
focus:ring-offset-2!
|
|
258
258
|
dark:border-error-border!
|
|
259
259
|
dark:focus:ring-error-border/30!
|
|
260
260
|
dark:focus:ring-offset-dark-bg-primary!
|
|
261
|
-
` : "",
|
|
262
|
-
if (!
|
|
263
|
-
const
|
|
264
|
-
return ae(
|
|
265
|
-
className: `w-4 h-4 text-content-tertiary dark:text-dark-content-tertiary ${
|
|
261
|
+
` : "", h = d ? "w-full" : "w-[265px]", C = (N) => {
|
|
262
|
+
if (!N) return null;
|
|
263
|
+
const y = N.props.className || "";
|
|
264
|
+
return ae(N, {
|
|
265
|
+
className: `w-4 h-4 text-content-tertiary dark:text-dark-content-tertiary ${y}`
|
|
266
266
|
});
|
|
267
267
|
};
|
|
268
|
-
return /* @__PURE__ */ l("div", { className: `flex flex-col gap-2 ${
|
|
268
|
+
return /* @__PURE__ */ l("div", { className: `flex flex-col gap-2 ${h} ${b}`, children: [
|
|
269
269
|
t && /* @__PURE__ */ l(
|
|
270
270
|
"label",
|
|
271
271
|
{
|
|
272
|
-
htmlFor:
|
|
272
|
+
htmlFor: f,
|
|
273
273
|
className: "flex items-center w-full font-bold text-sm leading-5 text-content-primary dark:text-dark-content-primary",
|
|
274
274
|
children: [
|
|
275
275
|
/* @__PURE__ */ e("span", { className: "flex-1", children: t }),
|
|
@@ -278,24 +278,24 @@ const Y = ({
|
|
|
278
278
|
}
|
|
279
279
|
),
|
|
280
280
|
/* @__PURE__ */ l("div", { className: "relative flex items-center", children: [
|
|
281
|
-
s && /* @__PURE__ */ e("div", { className: "absolute left-3 pointer-events-none", children:
|
|
281
|
+
s && /* @__PURE__ */ e("div", { className: "absolute left-3 pointer-events-none", children: C(s) }),
|
|
282
282
|
/* @__PURE__ */ e(
|
|
283
283
|
"input",
|
|
284
284
|
{
|
|
285
|
-
ref:
|
|
286
|
-
id:
|
|
287
|
-
disabled:
|
|
285
|
+
ref: p,
|
|
286
|
+
id: f,
|
|
287
|
+
disabled: g,
|
|
288
288
|
className: `
|
|
289
|
-
${
|
|
290
|
-
${
|
|
291
|
-
${
|
|
289
|
+
${u}
|
|
290
|
+
${k}
|
|
291
|
+
${x}
|
|
292
292
|
${s ? "pl-9" : ""}
|
|
293
293
|
${c ? "pr-9" : ""}
|
|
294
294
|
`.trim().replace(/\s+/g, " "),
|
|
295
|
-
...
|
|
295
|
+
...m
|
|
296
296
|
}
|
|
297
297
|
),
|
|
298
|
-
c && /* @__PURE__ */ e("div", { className: "absolute right-3 pointer-events-none", children:
|
|
298
|
+
c && /* @__PURE__ */ e("div", { className: "absolute right-3 pointer-events-none", children: C(c) })
|
|
299
299
|
] }),
|
|
300
300
|
(o || n) && /* @__PURE__ */ e(
|
|
301
301
|
"p",
|
|
@@ -311,8 +311,8 @@ const Y = ({
|
|
|
311
311
|
] });
|
|
312
312
|
}
|
|
313
313
|
);
|
|
314
|
-
|
|
315
|
-
const
|
|
314
|
+
he.displayName = "Input";
|
|
315
|
+
const ke = E(
|
|
316
316
|
({
|
|
317
317
|
label: t,
|
|
318
318
|
description: a,
|
|
@@ -323,11 +323,11 @@ const he = A(
|
|
|
323
323
|
resize: c = "vertical",
|
|
324
324
|
className: d = "",
|
|
325
325
|
disabled: b = !1,
|
|
326
|
-
id:
|
|
326
|
+
id: g,
|
|
327
327
|
rows: i = 4,
|
|
328
|
-
...
|
|
329
|
-
},
|
|
330
|
-
const
|
|
328
|
+
...m
|
|
329
|
+
}, p) => {
|
|
330
|
+
const f = g || `textarea-${Math.random().toString(36).substr(2, 9)}`, u = `
|
|
331
331
|
w-full
|
|
332
332
|
px-3
|
|
333
333
|
pr-1.5
|
|
@@ -347,7 +347,7 @@ const he = A(
|
|
|
347
347
|
dark:border-dark-border-primary
|
|
348
348
|
dark:text-dark-content-primary
|
|
349
349
|
dark:placeholder:text-dark-content-tertiary
|
|
350
|
-
`,
|
|
350
|
+
`, k = b ? `
|
|
351
351
|
opacity-50
|
|
352
352
|
cursor-not-allowed
|
|
353
353
|
bg-bg-secondary
|
|
@@ -359,20 +359,20 @@ const he = A(
|
|
|
359
359
|
dark:hover:border-zinc-500
|
|
360
360
|
dark:focus:border-2
|
|
361
361
|
dark:focus:border-dark-border-custom
|
|
362
|
-
`,
|
|
362
|
+
`, x = r ? `
|
|
363
363
|
border-error-border!
|
|
364
364
|
focus:border-2!
|
|
365
365
|
focus:border-error-border!
|
|
366
366
|
dark:border-error-border!
|
|
367
367
|
dark:focus:border-2!
|
|
368
368
|
dark:focus:border-error-border!
|
|
369
|
-
` : "",
|
|
369
|
+
` : "", h = c === "none" ? "resize-none" : c === "vertical" ? "resize-y" : c === "horizontal" ? "resize-x" : "resize";
|
|
370
370
|
return /* @__PURE__ */ l("div", { className: `flex flex-col gap-2 ${s ? "w-full" : "w-[312px]"} ${d}`, children: [
|
|
371
371
|
(t || a) && /* @__PURE__ */ l("div", { className: "flex flex-col gap-1 w-full", children: [
|
|
372
372
|
t && /* @__PURE__ */ e(
|
|
373
373
|
"label",
|
|
374
374
|
{
|
|
375
|
-
htmlFor:
|
|
375
|
+
htmlFor: f,
|
|
376
376
|
className: "font-bold text-sm leading-5 text-content-primary dark:text-dark-content-primary",
|
|
377
377
|
children: t
|
|
378
378
|
}
|
|
@@ -382,17 +382,17 @@ const he = A(
|
|
|
382
382
|
/* @__PURE__ */ e(
|
|
383
383
|
"textarea",
|
|
384
384
|
{
|
|
385
|
-
ref:
|
|
386
|
-
id:
|
|
385
|
+
ref: p,
|
|
386
|
+
id: f,
|
|
387
387
|
disabled: b,
|
|
388
388
|
rows: i,
|
|
389
389
|
className: `
|
|
390
|
-
${
|
|
391
|
-
${y}
|
|
392
|
-
${f}
|
|
390
|
+
${u}
|
|
393
391
|
${k}
|
|
392
|
+
${x}
|
|
393
|
+
${h}
|
|
394
394
|
`.trim().replace(/\s+/g, " "),
|
|
395
|
-
...
|
|
395
|
+
...m
|
|
396
396
|
}
|
|
397
397
|
),
|
|
398
398
|
(o || n) && /* @__PURE__ */ e(
|
|
@@ -410,8 +410,8 @@ const he = A(
|
|
|
410
410
|
] });
|
|
411
411
|
}
|
|
412
412
|
);
|
|
413
|
-
|
|
414
|
-
const
|
|
413
|
+
ke.displayName = "Textarea";
|
|
414
|
+
const ve = E(
|
|
415
415
|
({
|
|
416
416
|
label: t,
|
|
417
417
|
description: a,
|
|
@@ -422,12 +422,12 @@ const ke = A(
|
|
|
422
422
|
id: c,
|
|
423
423
|
onChange: d,
|
|
424
424
|
...b
|
|
425
|
-
},
|
|
426
|
-
const i =
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
}, [r,
|
|
430
|
-
const
|
|
425
|
+
}, g) => {
|
|
426
|
+
const i = G(null), m = g || i, p = c || `checkbox-${Math.random().toString(36).substr(2, 9)}`;
|
|
427
|
+
U(() => {
|
|
428
|
+
m.current && (m.current.indeterminate = r);
|
|
429
|
+
}, [r, m]);
|
|
430
|
+
const x = [
|
|
431
431
|
`
|
|
432
432
|
w-4
|
|
433
433
|
h-4
|
|
@@ -477,9 +477,9 @@ const ke = A(
|
|
|
477
477
|
/* @__PURE__ */ e(
|
|
478
478
|
"input",
|
|
479
479
|
{
|
|
480
|
-
ref:
|
|
480
|
+
ref: m,
|
|
481
481
|
type: "checkbox",
|
|
482
|
-
id:
|
|
482
|
+
id: p,
|
|
483
483
|
checked: o,
|
|
484
484
|
disabled: n,
|
|
485
485
|
onChange: d,
|
|
@@ -487,7 +487,7 @@ const ke = A(
|
|
|
487
487
|
...b
|
|
488
488
|
}
|
|
489
489
|
),
|
|
490
|
-
/* @__PURE__ */ l("label", { htmlFor:
|
|
490
|
+
/* @__PURE__ */ l("label", { htmlFor: p, className: x, children: [
|
|
491
491
|
o && !r && /* @__PURE__ */ e(
|
|
492
492
|
"svg",
|
|
493
493
|
{
|
|
@@ -530,7 +530,7 @@ const ke = A(
|
|
|
530
530
|
(t || a) && /* @__PURE__ */ l(
|
|
531
531
|
"label",
|
|
532
532
|
{
|
|
533
|
-
htmlFor:
|
|
533
|
+
htmlFor: p,
|
|
534
534
|
className: `flex-1 flex flex-col gap-1 text-sm leading-5 ${n ? "cursor-not-allowed opacity-50" : "cursor-pointer"}`,
|
|
535
535
|
children: [
|
|
536
536
|
t && /* @__PURE__ */ e("span", { className: "font-bold text-content-primary dark:text-dark-content-primary", children: t }),
|
|
@@ -541,8 +541,8 @@ const ke = A(
|
|
|
541
541
|
] });
|
|
542
542
|
}
|
|
543
543
|
);
|
|
544
|
-
|
|
545
|
-
const
|
|
544
|
+
ve.displayName = "Checkbox";
|
|
545
|
+
const ye = E(
|
|
546
546
|
({
|
|
547
547
|
label: t,
|
|
548
548
|
description: a,
|
|
@@ -553,9 +553,9 @@ const ve = A(
|
|
|
553
553
|
onChange: c,
|
|
554
554
|
value: d,
|
|
555
555
|
name: b,
|
|
556
|
-
...
|
|
556
|
+
...g
|
|
557
557
|
}, i) => {
|
|
558
|
-
const
|
|
558
|
+
const m = s || `radio-${Math.random().toString(36).substr(2, 9)}`, p = `
|
|
559
559
|
w-4
|
|
560
560
|
h-4
|
|
561
561
|
rounded-full
|
|
@@ -569,7 +569,7 @@ const ve = A(
|
|
|
569
569
|
justify-center
|
|
570
570
|
dark:bg-dark-bg-primary
|
|
571
571
|
dark:border-dark-border-primary
|
|
572
|
-
`,
|
|
572
|
+
`, f = r ? `
|
|
573
573
|
opacity-50
|
|
574
574
|
cursor-not-allowed
|
|
575
575
|
` : `
|
|
@@ -580,7 +580,7 @@ const ve = A(
|
|
|
580
580
|
dark:peer-hover:border-dark-border-custom
|
|
581
581
|
dark:peer-focus:ring-dark-border-custom
|
|
582
582
|
dark:peer-focus:border-dark-border-custom
|
|
583
|
-
`,
|
|
583
|
+
`, u = o ? `
|
|
584
584
|
bg-primary-custom-600!
|
|
585
585
|
border-primary-inverse-border!
|
|
586
586
|
shadow-button-inset
|
|
@@ -594,24 +594,24 @@ const ve = A(
|
|
|
594
594
|
{
|
|
595
595
|
ref: i,
|
|
596
596
|
type: "radio",
|
|
597
|
-
id:
|
|
597
|
+
id: m,
|
|
598
598
|
checked: o,
|
|
599
599
|
disabled: r,
|
|
600
600
|
onChange: c,
|
|
601
601
|
value: d,
|
|
602
602
|
name: b,
|
|
603
603
|
className: "peer sr-only",
|
|
604
|
-
...
|
|
604
|
+
...g
|
|
605
605
|
}
|
|
606
606
|
),
|
|
607
607
|
/* @__PURE__ */ e(
|
|
608
608
|
"label",
|
|
609
609
|
{
|
|
610
|
-
htmlFor:
|
|
610
|
+
htmlFor: m,
|
|
611
611
|
className: `
|
|
612
|
-
${
|
|
613
|
-
${
|
|
614
|
-
${
|
|
612
|
+
${p}
|
|
613
|
+
${f}
|
|
614
|
+
${u}
|
|
615
615
|
${r ? "cursor-not-allowed" : "cursor-pointer"}
|
|
616
616
|
`.trim().replace(/\s+/g, " "),
|
|
617
617
|
children: o && /* @__PURE__ */ e("div", { className: "w-1.5 h-1.5 bg-white rounded-full dark:bg-dark-content-inverse" })
|
|
@@ -621,7 +621,7 @@ const ve = A(
|
|
|
621
621
|
(t || a) && /* @__PURE__ */ l(
|
|
622
622
|
"label",
|
|
623
623
|
{
|
|
624
|
-
htmlFor:
|
|
624
|
+
htmlFor: m,
|
|
625
625
|
className: `flex-1 flex flex-col gap-1 text-sm leading-5 ${r ? "cursor-not-allowed opacity-50" : "cursor-pointer"}`,
|
|
626
626
|
children: [
|
|
627
627
|
t && /* @__PURE__ */ e("span", { className: "font-bold text-content-primary dark:text-dark-content-primary", children: t }),
|
|
@@ -632,8 +632,8 @@ const ve = A(
|
|
|
632
632
|
] });
|
|
633
633
|
}
|
|
634
634
|
);
|
|
635
|
-
|
|
636
|
-
const
|
|
635
|
+
ye.displayName = "Radio";
|
|
636
|
+
const we = E(
|
|
637
637
|
({
|
|
638
638
|
label: t,
|
|
639
639
|
description: a,
|
|
@@ -644,9 +644,9 @@ const ye = A(
|
|
|
644
644
|
id: c,
|
|
645
645
|
onChange: d,
|
|
646
646
|
ariaLabel: b,
|
|
647
|
-
...
|
|
647
|
+
...g
|
|
648
648
|
}, i) => {
|
|
649
|
-
const
|
|
649
|
+
const m = c || `switch-${Math.random().toString(36).substr(2, 9)}`, p = `
|
|
650
650
|
w-8
|
|
651
651
|
h-5
|
|
652
652
|
rounded-xl
|
|
@@ -655,7 +655,7 @@ const ye = A(
|
|
|
655
655
|
relative
|
|
656
656
|
transition-all
|
|
657
657
|
duration-200
|
|
658
|
-
`,
|
|
658
|
+
`, f = () => n ? r ? `
|
|
659
659
|
bg-primary-custom-600
|
|
660
660
|
border-primary-inverse-border
|
|
661
661
|
opacity-50
|
|
@@ -689,8 +689,8 @@ const ye = A(
|
|
|
689
689
|
dark:border-dark-border-primary
|
|
690
690
|
dark:peer-hover:border-[#b6b6b9]
|
|
691
691
|
dark:peer-focus:shadow-[0px_0px_0px_2px_#dbeefe,0px_1px_2px_0px_rgba(0,0,0,0.05),0px_0px_0px_4px_#60b6fa]
|
|
692
|
-
`,
|
|
693
|
-
const
|
|
692
|
+
`, u = () => {
|
|
693
|
+
const N = `
|
|
694
694
|
absolute
|
|
695
695
|
w-4
|
|
696
696
|
h-4
|
|
@@ -701,8 +701,8 @@ const ye = A(
|
|
|
701
701
|
-translate-y-1/2
|
|
702
702
|
transition-all
|
|
703
703
|
duration-200
|
|
704
|
-
`,
|
|
705
|
-
return n ? `${
|
|
704
|
+
`, y = r ? "left-[13px]" : "left-px";
|
|
705
|
+
return n ? `${N} ${y} ${r ? "border-primary-inverse-border dark:border-primary-inverse-border" : "border-border-primary dark:border-dark-border-primary"}` : `${N} ${y} ${r ? `
|
|
706
706
|
border-primary-inverse-border
|
|
707
707
|
peer-hover:border-[#307cc5]
|
|
708
708
|
dark:border-primary-inverse-border
|
|
@@ -713,55 +713,55 @@ const ye = A(
|
|
|
713
713
|
dark:border-dark-border-primary
|
|
714
714
|
dark:peer-hover:border-[#b6b6b9]
|
|
715
715
|
`}`;
|
|
716
|
-
},
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
].join(" ").replace(/\s+/g, " ").trim(),
|
|
716
|
+
}, k = [
|
|
717
|
+
p,
|
|
718
|
+
f()
|
|
719
|
+
].join(" ").replace(/\s+/g, " ").trim(), x = u().replace(/\s+/g, " ").trim(), h = t || a ? /* @__PURE__ */ l(
|
|
720
720
|
"label",
|
|
721
721
|
{
|
|
722
|
-
htmlFor:
|
|
722
|
+
htmlFor: m,
|
|
723
723
|
className: `flex-1 flex flex-col gap-1 text-sm leading-5 ${n ? "cursor-not-allowed opacity-50" : "cursor-pointer"}`,
|
|
724
724
|
children: [
|
|
725
725
|
t && /* @__PURE__ */ e("span", { className: "font-bold text-content-primary dark:text-dark-content-primary", children: t }),
|
|
726
726
|
a && /* @__PURE__ */ e("span", { className: "font-normal text-content-secondary dark:text-content-secondary", children: a })
|
|
727
727
|
]
|
|
728
728
|
}
|
|
729
|
-
) : null,
|
|
729
|
+
) : null, C = /* @__PURE__ */ l("div", { className: "flex items-center justify-center shrink-0", children: [
|
|
730
730
|
/* @__PURE__ */ e(
|
|
731
731
|
"input",
|
|
732
732
|
{
|
|
733
733
|
ref: i,
|
|
734
734
|
type: "checkbox",
|
|
735
|
-
id:
|
|
735
|
+
id: m,
|
|
736
736
|
checked: r,
|
|
737
737
|
disabled: n,
|
|
738
738
|
onChange: d,
|
|
739
739
|
className: "peer sr-only",
|
|
740
740
|
"aria-label": b || t,
|
|
741
|
-
...
|
|
741
|
+
...g
|
|
742
742
|
}
|
|
743
743
|
),
|
|
744
744
|
/* @__PURE__ */ e(
|
|
745
745
|
"label",
|
|
746
746
|
{
|
|
747
|
-
htmlFor:
|
|
748
|
-
className:
|
|
747
|
+
htmlFor: m,
|
|
748
|
+
className: k,
|
|
749
749
|
"aria-hidden": "true",
|
|
750
|
-
children: /* @__PURE__ */ e("div", { className:
|
|
750
|
+
children: /* @__PURE__ */ e("div", { className: x })
|
|
751
751
|
}
|
|
752
752
|
)
|
|
753
753
|
] });
|
|
754
|
-
return /* @__PURE__ */ e("div", { className: `flex gap-2 items-center w-[344px] ${s}`, children: o === "leading" ? /* @__PURE__ */ l(
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
] }) : /* @__PURE__ */ l(
|
|
758
|
-
|
|
759
|
-
|
|
754
|
+
return /* @__PURE__ */ e("div", { className: `flex gap-2 items-center w-[344px] ${s}`, children: o === "leading" ? /* @__PURE__ */ l(z, { children: [
|
|
755
|
+
h,
|
|
756
|
+
C
|
|
757
|
+
] }) : /* @__PURE__ */ l(z, { children: [
|
|
758
|
+
C,
|
|
759
|
+
h
|
|
760
760
|
] }) });
|
|
761
761
|
}
|
|
762
762
|
);
|
|
763
|
-
|
|
764
|
-
const
|
|
763
|
+
we.displayName = "Switch";
|
|
764
|
+
const Ce = E(
|
|
765
765
|
({
|
|
766
766
|
size: t = "10",
|
|
767
767
|
type: a = "circular",
|
|
@@ -776,7 +776,7 @@ const we = A(
|
|
|
776
776
|
6: "w-6 h-6",
|
|
777
777
|
8: "w-8 h-8",
|
|
778
778
|
10: "w-10 h-10"
|
|
779
|
-
},
|
|
779
|
+
}, g = {
|
|
780
780
|
4: "text-xs",
|
|
781
781
|
// 12px - Paragraph Tiny
|
|
782
782
|
6: "text-xs",
|
|
@@ -788,7 +788,7 @@ const we = A(
|
|
|
788
788
|
}, i = {
|
|
789
789
|
circular: "rounded-full",
|
|
790
790
|
rounded: "rounded-md"
|
|
791
|
-
},
|
|
791
|
+
}, m = `
|
|
792
792
|
relative
|
|
793
793
|
inline-flex
|
|
794
794
|
items-center
|
|
@@ -801,7 +801,7 @@ const we = A(
|
|
|
801
801
|
"div",
|
|
802
802
|
{
|
|
803
803
|
ref: d,
|
|
804
|
-
className: `${
|
|
804
|
+
className: `${m} ${s}`.trim().replace(/\s+/g, " "),
|
|
805
805
|
children: /* @__PURE__ */ e(
|
|
806
806
|
"img",
|
|
807
807
|
{
|
|
@@ -817,8 +817,8 @@ const we = A(
|
|
|
817
817
|
{
|
|
818
818
|
ref: d,
|
|
819
819
|
className: `
|
|
820
|
-
${
|
|
821
|
-
${
|
|
820
|
+
${m}
|
|
821
|
+
${g[t]}
|
|
822
822
|
bg-content-primary
|
|
823
823
|
text-white
|
|
824
824
|
font-normal
|
|
@@ -833,7 +833,7 @@ const we = A(
|
|
|
833
833
|
{
|
|
834
834
|
ref: d,
|
|
835
835
|
className: `
|
|
836
|
-
${
|
|
836
|
+
${m}
|
|
837
837
|
bg-background-secondary
|
|
838
838
|
dark:bg-dark-bg-primary
|
|
839
839
|
${s}
|
|
@@ -842,8 +842,8 @@ const we = A(
|
|
|
842
842
|
);
|
|
843
843
|
}
|
|
844
844
|
);
|
|
845
|
-
|
|
846
|
-
const
|
|
845
|
+
Ce.displayName = "Avatar";
|
|
846
|
+
const Ne = E(
|
|
847
847
|
({
|
|
848
848
|
type: t = "default",
|
|
849
849
|
className: a = "",
|
|
@@ -873,8 +873,8 @@ const Ce = A(
|
|
|
873
873
|
);
|
|
874
874
|
}
|
|
875
875
|
);
|
|
876
|
-
|
|
877
|
-
const
|
|
876
|
+
Ne.displayName = "Divider";
|
|
877
|
+
const $e = E(
|
|
878
878
|
({
|
|
879
879
|
term: t,
|
|
880
880
|
details: a,
|
|
@@ -897,8 +897,8 @@ const Ne = A(
|
|
|
897
897
|
] });
|
|
898
898
|
}
|
|
899
899
|
);
|
|
900
|
-
|
|
901
|
-
const
|
|
900
|
+
$e.displayName = "DescriptionList";
|
|
901
|
+
const je = E(
|
|
902
902
|
({
|
|
903
903
|
title: t,
|
|
904
904
|
description: a,
|
|
@@ -909,9 +909,9 @@ const $e = A(
|
|
|
909
909
|
cancelText: c = "Cancelar",
|
|
910
910
|
confirmText: d = "Confirmar",
|
|
911
911
|
className: b = "",
|
|
912
|
-
...
|
|
912
|
+
...g
|
|
913
913
|
}, i) => {
|
|
914
|
-
const
|
|
914
|
+
const m = r || /* @__PURE__ */ l(z, { children: [
|
|
915
915
|
n && /* @__PURE__ */ e(Y, { type: "plain", size: "base", onClick: n, children: c }),
|
|
916
916
|
s && /* @__PURE__ */ e(Y, { type: "default", size: "base", onClick: s, children: d })
|
|
917
917
|
] });
|
|
@@ -929,21 +929,21 @@ const $e = A(
|
|
|
929
929
|
rounded-xl
|
|
930
930
|
${b}
|
|
931
931
|
`.trim().replace(/\s+/g, " "),
|
|
932
|
-
...
|
|
932
|
+
...g,
|
|
933
933
|
children: /* @__PURE__ */ l("div", { className: "p-6 flex flex-col gap-4", children: [
|
|
934
934
|
/* @__PURE__ */ l("div", { className: "flex flex-col gap-3", children: [
|
|
935
935
|
/* @__PURE__ */ e("p", { className: "text-sm leading-5 font-bold text-content-primary dark:text-dark-content-primary", children: t }),
|
|
936
936
|
a && /* @__PURE__ */ e("p", { className: "text-sm leading-5 font-normal text-content-tertiary dark:text-content-tertiary", children: a })
|
|
937
937
|
] }),
|
|
938
938
|
o && /* @__PURE__ */ e("div", { className: "flex flex-col gap-3", children: o }),
|
|
939
|
-
/* @__PURE__ */ e("div", { className: "flex flex-wrap gap-3 items-center justify-end", children:
|
|
939
|
+
/* @__PURE__ */ e("div", { className: "flex flex-wrap gap-3 items-center justify-end", children: m })
|
|
940
940
|
] })
|
|
941
941
|
}
|
|
942
942
|
);
|
|
943
943
|
}
|
|
944
944
|
);
|
|
945
|
-
|
|
946
|
-
const
|
|
945
|
+
je.displayName = "Alert";
|
|
946
|
+
const K = E(
|
|
947
947
|
({
|
|
948
948
|
color: t = "zinc",
|
|
949
949
|
leftIcon: a,
|
|
@@ -1100,10 +1100,10 @@ const G = A(
|
|
|
1100
1100
|
notificationBg: "bg-zinc-600",
|
|
1101
1101
|
notificationText: "text-zinc-100"
|
|
1102
1102
|
}
|
|
1103
|
-
}[t],
|
|
1104
|
-
const
|
|
1105
|
-
return ae(
|
|
1106
|
-
className: `w-3 h-3 ${
|
|
1103
|
+
}[t], g = (m) => {
|
|
1104
|
+
const p = m.props.className || "";
|
|
1105
|
+
return ae(m, {
|
|
1106
|
+
className: `w-3 h-3 ${p}`.trim()
|
|
1107
1107
|
});
|
|
1108
1108
|
}, i = [
|
|
1109
1109
|
"inline-flex",
|
|
@@ -1126,7 +1126,7 @@ const G = A(
|
|
|
1126
1126
|
className: i,
|
|
1127
1127
|
...s,
|
|
1128
1128
|
children: [
|
|
1129
|
-
a && /* @__PURE__ */ e("div", { className: `flex items-center justify-center ${b.text}`, children:
|
|
1129
|
+
a && /* @__PURE__ */ e("div", { className: `flex items-center justify-center ${b.text}`, children: g(a) }),
|
|
1130
1130
|
/* @__PURE__ */ e("span", { className: `font-sans text-xs leading-4 ${b.text}`, children: o }),
|
|
1131
1131
|
r !== void 0 && /* @__PURE__ */ e(
|
|
1132
1132
|
"div",
|
|
@@ -1149,8 +1149,8 @@ const G = A(
|
|
|
1149
1149
|
);
|
|
1150
1150
|
}
|
|
1151
1151
|
);
|
|
1152
|
-
|
|
1153
|
-
const ne =
|
|
1152
|
+
K.displayName = "Badge";
|
|
1153
|
+
const ne = E(
|
|
1154
1154
|
({
|
|
1155
1155
|
value: t,
|
|
1156
1156
|
defaultValue: a = 0,
|
|
@@ -1161,23 +1161,23 @@ const ne = A(
|
|
|
1161
1161
|
linkText: c,
|
|
1162
1162
|
onLinkClick: d,
|
|
1163
1163
|
helperText: b,
|
|
1164
|
-
error:
|
|
1164
|
+
error: g = !1,
|
|
1165
1165
|
disabled: i = !1,
|
|
1166
|
-
className:
|
|
1167
|
-
...
|
|
1168
|
-
},
|
|
1169
|
-
const [
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
}, [a,
|
|
1173
|
-
const
|
|
1174
|
-
let
|
|
1175
|
-
r !== void 0 &&
|
|
1176
|
-
},
|
|
1177
|
-
i ||
|
|
1178
|
-
},
|
|
1179
|
-
i ||
|
|
1180
|
-
},
|
|
1166
|
+
className: m = "",
|
|
1167
|
+
...p
|
|
1168
|
+
}, f) => {
|
|
1169
|
+
const [u, k] = H(a), x = t !== void 0, h = x ? t : u;
|
|
1170
|
+
U(() => {
|
|
1171
|
+
x || k(a);
|
|
1172
|
+
}, [a, x]);
|
|
1173
|
+
const C = (I) => {
|
|
1174
|
+
let D = I;
|
|
1175
|
+
r !== void 0 && D < r && (D = r), n !== void 0 && D > n && (D = n), x || k(D), o?.(D);
|
|
1176
|
+
}, N = () => {
|
|
1177
|
+
i || C(h - 1);
|
|
1178
|
+
}, y = () => {
|
|
1179
|
+
i || C(h + 1);
|
|
1180
|
+
}, w = i || r !== void 0 && h <= r, $ = i || n !== void 0 && h >= n, B = () => /* @__PURE__ */ e(
|
|
1181
1181
|
"svg",
|
|
1182
1182
|
{
|
|
1183
1183
|
width: "16",
|
|
@@ -1196,7 +1196,7 @@ const ne = A(
|
|
|
1196
1196
|
}
|
|
1197
1197
|
)
|
|
1198
1198
|
}
|
|
1199
|
-
),
|
|
1199
|
+
), v = () => /* @__PURE__ */ e(
|
|
1200
1200
|
"svg",
|
|
1201
1201
|
{
|
|
1202
1202
|
width: "16",
|
|
@@ -1215,13 +1215,13 @@ const ne = A(
|
|
|
1215
1215
|
}
|
|
1216
1216
|
)
|
|
1217
1217
|
}
|
|
1218
|
-
),
|
|
1218
|
+
), j = g ? "border-error-border dark:border-error-border" : "border-border-primary dark:border-dark-border-primary", R = !i && !g ? "hover:border-[#f9f9f9] dark:hover:border-[#f9f9f9]" : "", T = !i && !g ? "focus-within:border-2 focus-within:border-[#329cff] dark:focus-within:border-[#329cff]" : "";
|
|
1219
1219
|
return /* @__PURE__ */ l(
|
|
1220
1220
|
"div",
|
|
1221
1221
|
{
|
|
1222
|
-
ref:
|
|
1223
|
-
className: `flex flex-col gap-2 ${
|
|
1224
|
-
...
|
|
1222
|
+
ref: f,
|
|
1223
|
+
className: `flex flex-col gap-2 ${m}`.trim(),
|
|
1224
|
+
...p,
|
|
1225
1225
|
children: [
|
|
1226
1226
|
s && /* @__PURE__ */ l("div", { className: "flex items-center justify-between", children: [
|
|
1227
1227
|
/* @__PURE__ */ e("label", { className: "text-sm leading-5 font-bold text-content-primary dark:text-dark-content-primary", children: s }),
|
|
@@ -1256,9 +1256,9 @@ const ne = A(
|
|
|
1256
1256
|
bg-white
|
|
1257
1257
|
dark:bg-dark-bg-primary
|
|
1258
1258
|
border
|
|
1259
|
-
${
|
|
1260
|
-
${
|
|
1261
|
-
${
|
|
1259
|
+
${j}
|
|
1260
|
+
${R}
|
|
1261
|
+
${T}
|
|
1262
1262
|
rounded-lg
|
|
1263
1263
|
transition-colors
|
|
1264
1264
|
duration-200
|
|
@@ -1269,15 +1269,15 @@ const ne = A(
|
|
|
1269
1269
|
"button",
|
|
1270
1270
|
{
|
|
1271
1271
|
type: "button",
|
|
1272
|
-
onClick:
|
|
1273
|
-
disabled:
|
|
1272
|
+
onClick: N,
|
|
1273
|
+
disabled: w,
|
|
1274
1274
|
className: `
|
|
1275
1275
|
flex
|
|
1276
1276
|
items-center
|
|
1277
1277
|
justify-center
|
|
1278
1278
|
w-4
|
|
1279
1279
|
h-4
|
|
1280
|
-
${
|
|
1280
|
+
${w ? "text-content-tertiary dark:text-content-tertiary cursor-not-allowed" : "text-content-primary dark:text-dark-content-primary hover:text-content-secondary dark:hover:text-content-secondary cursor-pointer"}
|
|
1281
1281
|
transition-colors
|
|
1282
1282
|
duration-200
|
|
1283
1283
|
`.trim().replace(/\s+/g, " "),
|
|
@@ -1290,29 +1290,29 @@ const ne = A(
|
|
|
1290
1290
|
{
|
|
1291
1291
|
className: `
|
|
1292
1292
|
text-base leading-6
|
|
1293
|
-
${
|
|
1293
|
+
${h === 0 ? "text-content-tertiary dark:text-content-tertiary" : "text-content-primary dark:text-dark-content-primary"}
|
|
1294
1294
|
`.trim().replace(/\s+/g, " "),
|
|
1295
|
-
children:
|
|
1295
|
+
children: h
|
|
1296
1296
|
}
|
|
1297
1297
|
) }),
|
|
1298
1298
|
/* @__PURE__ */ e(
|
|
1299
1299
|
"button",
|
|
1300
1300
|
{
|
|
1301
1301
|
type: "button",
|
|
1302
|
-
onClick:
|
|
1303
|
-
disabled:
|
|
1302
|
+
onClick: y,
|
|
1303
|
+
disabled: $,
|
|
1304
1304
|
className: `
|
|
1305
1305
|
flex
|
|
1306
1306
|
items-center
|
|
1307
1307
|
justify-center
|
|
1308
1308
|
w-4
|
|
1309
1309
|
h-4
|
|
1310
|
-
${
|
|
1310
|
+
${$ ? "text-content-tertiary dark:text-content-tertiary cursor-not-allowed" : "text-content-primary dark:text-dark-content-primary hover:text-content-secondary dark:hover:text-content-secondary cursor-pointer"}
|
|
1311
1311
|
transition-colors
|
|
1312
1312
|
duration-200
|
|
1313
1313
|
`.trim().replace(/\s+/g, " "),
|
|
1314
1314
|
"aria-label": "Incrementar",
|
|
1315
|
-
children: /* @__PURE__ */ e(
|
|
1315
|
+
children: /* @__PURE__ */ e(v, {})
|
|
1316
1316
|
}
|
|
1317
1317
|
)
|
|
1318
1318
|
]
|
|
@@ -1323,7 +1323,7 @@ const ne = A(
|
|
|
1323
1323
|
{
|
|
1324
1324
|
className: `
|
|
1325
1325
|
text-sm leading-5
|
|
1326
|
-
${
|
|
1326
|
+
${g ? "text-error-content dark:text-error-content" : "text-content-tertiary dark:text-content-tertiary"}
|
|
1327
1327
|
`.trim().replace(/\s+/g, " "),
|
|
1328
1328
|
children: b
|
|
1329
1329
|
}
|
|
@@ -1334,7 +1334,7 @@ const ne = A(
|
|
|
1334
1334
|
}
|
|
1335
1335
|
);
|
|
1336
1336
|
ne.displayName = "Quantity";
|
|
1337
|
-
const
|
|
1337
|
+
const Be = () => /* @__PURE__ */ e(
|
|
1338
1338
|
"svg",
|
|
1339
1339
|
{
|
|
1340
1340
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -1350,7 +1350,7 @@ const je = () => /* @__PURE__ */ e(
|
|
|
1350
1350
|
}
|
|
1351
1351
|
)
|
|
1352
1352
|
}
|
|
1353
|
-
),
|
|
1353
|
+
), sr = ({
|
|
1354
1354
|
variant: t = "default",
|
|
1355
1355
|
children: a,
|
|
1356
1356
|
items: o,
|
|
@@ -1360,33 +1360,37 @@ const je = () => /* @__PURE__ */ e(
|
|
|
1360
1360
|
className: c = "",
|
|
1361
1361
|
menuClassName: d = "",
|
|
1362
1362
|
ariaLabel: b,
|
|
1363
|
-
placeholder:
|
|
1363
|
+
placeholder: g = "Options"
|
|
1364
1364
|
}) => {
|
|
1365
|
-
const [i,
|
|
1365
|
+
const [i, m] = H(!1), [p, f] = H("bottom-left"), u = G(null), k = G(null), x = r !== void 0, h = x ? r : i, C = ge(() => {
|
|
1366
|
+
if (!u.current) return;
|
|
1367
|
+
const v = u.current.getBoundingClientRect(), j = window.innerWidth, R = window.innerHeight, T = 200, I = 250, D = R - v.bottom, F = v.top, _ = j - v.left, S = v.right, Z = D < I && F > D, V = _ < T && S > _;
|
|
1368
|
+
f(Z && V ? "top-right" : Z ? "top-left" : V ? "bottom-right" : "bottom-left");
|
|
1369
|
+
}, []), N = () => {
|
|
1366
1370
|
if (s) return;
|
|
1367
|
-
const
|
|
1368
|
-
x ||
|
|
1371
|
+
const v = !h;
|
|
1372
|
+
v && C(), x || m(v), n?.(v);
|
|
1369
1373
|
};
|
|
1370
|
-
|
|
1371
|
-
const
|
|
1372
|
-
|
|
1374
|
+
U(() => {
|
|
1375
|
+
const v = (j) => {
|
|
1376
|
+
u.current && !u.current.contains(j.target) && (x || m(!1), n?.(!1));
|
|
1373
1377
|
};
|
|
1374
|
-
if (
|
|
1375
|
-
return document.addEventListener("mousedown",
|
|
1376
|
-
document.removeEventListener("mousedown",
|
|
1378
|
+
if (h)
|
|
1379
|
+
return document.addEventListener("mousedown", v), () => {
|
|
1380
|
+
document.removeEventListener("mousedown", v);
|
|
1377
1381
|
};
|
|
1378
|
-
}, [
|
|
1379
|
-
const
|
|
1380
|
-
|
|
1382
|
+
}, [h, x, n]), U(() => {
|
|
1383
|
+
const v = (j) => {
|
|
1384
|
+
j.key === "Escape" && h && (x || m(!1), n?.(!1));
|
|
1381
1385
|
};
|
|
1382
|
-
if (
|
|
1383
|
-
return document.addEventListener("keydown",
|
|
1384
|
-
document.removeEventListener("keydown",
|
|
1386
|
+
if (h)
|
|
1387
|
+
return document.addEventListener("keydown", v), () => {
|
|
1388
|
+
document.removeEventListener("keydown", v);
|
|
1385
1389
|
};
|
|
1386
|
-
}, [
|
|
1387
|
-
const
|
|
1388
|
-
|
|
1389
|
-
},
|
|
1390
|
+
}, [h, x, n]);
|
|
1391
|
+
const y = (v) => {
|
|
1392
|
+
v.disabled || v.isDivider || v.isHeading || (v.onClick && v.onClick({}), x || m(!1), n?.(!1));
|
|
1393
|
+
}, w = [
|
|
1390
1394
|
// Base
|
|
1391
1395
|
"inline-flex",
|
|
1392
1396
|
"items-center",
|
|
@@ -1408,9 +1412,9 @@ const je = () => /* @__PURE__ */ e(
|
|
|
1408
1412
|
"active:scale-95",
|
|
1409
1413
|
// Dark Mode
|
|
1410
1414
|
"dark:bg-dark-bg-primary",
|
|
1411
|
-
"dark:text-content-
|
|
1415
|
+
"dark:text-dark-content-primary",
|
|
1412
1416
|
"dark:border-dark-border-primary",
|
|
1413
|
-
"dark:hover:bg-dark-bg-
|
|
1417
|
+
"dark:hover:bg-dark-bg-secondary",
|
|
1414
1418
|
// Focus ring
|
|
1415
1419
|
"focus:outline-hidden",
|
|
1416
1420
|
"focus:ring-2",
|
|
@@ -1424,12 +1428,15 @@ const je = () => /* @__PURE__ */ e(
|
|
|
1424
1428
|
s && "pointer-events-none",
|
|
1425
1429
|
// Custom classes
|
|
1426
1430
|
c
|
|
1427
|
-
].filter(Boolean).join(" ").replace(/\s+/g, " ").trim(),
|
|
1431
|
+
].filter(Boolean).join(" ").replace(/\s+/g, " ").trim(), B = [
|
|
1428
1432
|
// Base
|
|
1429
1433
|
"absolute",
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1434
|
+
{
|
|
1435
|
+
"bottom-left": "top-full left-0 mt-2",
|
|
1436
|
+
"bottom-right": "top-full right-0 mt-2",
|
|
1437
|
+
"top-left": "bottom-full left-0 mb-2",
|
|
1438
|
+
"top-right": "bottom-full right-0 mb-2"
|
|
1439
|
+
}[p],
|
|
1433
1440
|
"min-w-[182px]",
|
|
1434
1441
|
"rounded-xl",
|
|
1435
1442
|
"p-1",
|
|
@@ -1446,33 +1453,33 @@ const je = () => /* @__PURE__ */ e(
|
|
|
1446
1453
|
// Custom classes
|
|
1447
1454
|
d
|
|
1448
1455
|
].filter(Boolean).join(" ").replace(/\s+/g, " ").trim();
|
|
1449
|
-
return /* @__PURE__ */ l("div", { ref:
|
|
1456
|
+
return /* @__PURE__ */ l("div", { ref: u, className: "relative inline-block", children: [
|
|
1450
1457
|
/* @__PURE__ */ l(
|
|
1451
1458
|
"button",
|
|
1452
1459
|
{
|
|
1453
1460
|
type: "button",
|
|
1454
|
-
className:
|
|
1455
|
-
onClick:
|
|
1461
|
+
className: w,
|
|
1462
|
+
onClick: N,
|
|
1456
1463
|
disabled: s,
|
|
1457
1464
|
"aria-label": b || (t === "icon-only" ? "Abrir menú" : void 0),
|
|
1458
1465
|
"aria-haspopup": "true",
|
|
1459
|
-
"aria-expanded":
|
|
1466
|
+
"aria-expanded": h,
|
|
1460
1467
|
children: [
|
|
1461
|
-
t === "default" && /* @__PURE__ */ e("span", { children: a ||
|
|
1462
|
-
/* @__PURE__ */ e(
|
|
1468
|
+
t === "default" && /* @__PURE__ */ e("span", { children: a || g }),
|
|
1469
|
+
/* @__PURE__ */ e(Be, {})
|
|
1463
1470
|
]
|
|
1464
1471
|
}
|
|
1465
1472
|
),
|
|
1466
|
-
|
|
1467
|
-
|
|
1473
|
+
h && /* @__PURE__ */ e("div", { ref: k, className: B, children: o.map((v, j) => v.isDivider ? /* @__PURE__ */ e(Me, { className: v.className }, j) : v.isHeading ? /* @__PURE__ */ e(_e, { className: v.className, children: v.children }, j) : /* @__PURE__ */ e(
|
|
1474
|
+
Le,
|
|
1468
1475
|
{
|
|
1469
|
-
...
|
|
1470
|
-
onClick: () =>
|
|
1476
|
+
...v,
|
|
1477
|
+
onClick: () => y(v)
|
|
1471
1478
|
},
|
|
1472
|
-
|
|
1479
|
+
j
|
|
1473
1480
|
)) })
|
|
1474
1481
|
] });
|
|
1475
|
-
},
|
|
1482
|
+
}, Le = ({
|
|
1476
1483
|
children: t,
|
|
1477
1484
|
icon: a,
|
|
1478
1485
|
description: o,
|
|
@@ -1497,12 +1504,12 @@ const je = () => /* @__PURE__ */ e(
|
|
|
1497
1504
|
"duration-150",
|
|
1498
1505
|
// Colores y estados (Light Mode)
|
|
1499
1506
|
"text-content-primary",
|
|
1500
|
-
!n && "hover:bg-
|
|
1501
|
-
s && "bg-
|
|
1507
|
+
!n && "hover:bg-bg-primary",
|
|
1508
|
+
s && "bg-bg-primary",
|
|
1502
1509
|
// Dark Mode
|
|
1503
1510
|
"dark:text-dark-content-primary",
|
|
1504
|
-
!n && "dark:hover:bg-dark-bg-
|
|
1505
|
-
s && "dark:bg-dark-bg-
|
|
1511
|
+
!n && "dark:hover:bg-dark-bg-secondary",
|
|
1512
|
+
s && "dark:bg-dark-bg-secondary",
|
|
1506
1513
|
// Disabled
|
|
1507
1514
|
n && "opacity-50",
|
|
1508
1515
|
n && "cursor-not-allowed",
|
|
@@ -1518,16 +1525,16 @@ const je = () => /* @__PURE__ */ e(
|
|
|
1518
1525
|
onClick: c,
|
|
1519
1526
|
disabled: n,
|
|
1520
1527
|
children: [
|
|
1521
|
-
a && /* @__PURE__ */ e("span", { className: "inline-flex items-center justify-center w-4 h-4 text-content-secondary dark:text-content-secondary", children: a }),
|
|
1528
|
+
a && /* @__PURE__ */ e("span", { className: "inline-flex items-center justify-center w-4 h-4 text-content-secondary dark:text-dark-content-secondary", children: a }),
|
|
1522
1529
|
/* @__PURE__ */ l("div", { className: "flex-1 min-w-0", children: [
|
|
1523
1530
|
/* @__PURE__ */ e("div", { className: "text-content-primary dark:text-dark-content-primary", children: t }),
|
|
1524
|
-
o && /* @__PURE__ */ e("div", { className: "text-xs text-content-secondary dark:text-content-secondary mt-0.5", children: o })
|
|
1531
|
+
o && /* @__PURE__ */ e("div", { className: "text-xs text-content-secondary dark:text-dark-content-secondary mt-0.5", children: o })
|
|
1525
1532
|
] }),
|
|
1526
|
-
r && /* @__PURE__ */ e("span", { className: "text-xs text-content-secondary dark:text-content-secondary ml-auto whitespace-nowrap", children: r })
|
|
1533
|
+
r && /* @__PURE__ */ e("span", { className: "text-xs text-content-secondary dark:text-dark-content-secondary ml-auto whitespace-nowrap", children: r })
|
|
1527
1534
|
]
|
|
1528
1535
|
}
|
|
1529
1536
|
);
|
|
1530
|
-
},
|
|
1537
|
+
}, _e = ({
|
|
1531
1538
|
children: t,
|
|
1532
1539
|
className: a = ""
|
|
1533
1540
|
}) => {
|
|
@@ -1540,12 +1547,12 @@ const je = () => /* @__PURE__ */ e(
|
|
|
1540
1547
|
// Colores
|
|
1541
1548
|
"text-content-tertiary",
|
|
1542
1549
|
// Dark Mode
|
|
1543
|
-
"dark:text-content-tertiary",
|
|
1550
|
+
"dark:text-dark-content-tertiary",
|
|
1544
1551
|
// Custom classes
|
|
1545
1552
|
a
|
|
1546
1553
|
].filter(Boolean).join(" ").replace(/\s+/g, " ").trim();
|
|
1547
1554
|
return /* @__PURE__ */ e("div", { className: o, children: t });
|
|
1548
|
-
},
|
|
1555
|
+
}, Me = ({
|
|
1549
1556
|
className: t = ""
|
|
1550
1557
|
}) => {
|
|
1551
1558
|
const a = [
|
|
@@ -1556,7 +1563,7 @@ const je = () => /* @__PURE__ */ e(
|
|
|
1556
1563
|
t
|
|
1557
1564
|
].filter(Boolean).join(" ").replace(/\s+/g, " ").trim();
|
|
1558
1565
|
return /* @__PURE__ */ e("div", { className: a, children: /* @__PURE__ */ e("div", { className: "h-px bg-border-primary dark:bg-dark-border-primary" }) });
|
|
1559
|
-
},
|
|
1566
|
+
}, ir = ({
|
|
1560
1567
|
count: t,
|
|
1561
1568
|
color: a = "red",
|
|
1562
1569
|
className: o = "",
|
|
@@ -1631,7 +1638,7 @@ const je = () => /* @__PURE__ */ e(
|
|
|
1631
1638
|
"aria-label": c
|
|
1632
1639
|
}
|
|
1633
1640
|
);
|
|
1634
|
-
},
|
|
1641
|
+
}, Se = ({ className: t = "" }) => /* @__PURE__ */ e(
|
|
1635
1642
|
"svg",
|
|
1636
1643
|
{
|
|
1637
1644
|
className: t,
|
|
@@ -1648,7 +1655,7 @@ const je = () => /* @__PURE__ */ e(
|
|
|
1648
1655
|
}
|
|
1649
1656
|
)
|
|
1650
1657
|
}
|
|
1651
|
-
),
|
|
1658
|
+
), Ie = ({ className: t = "" }) => /* @__PURE__ */ e(
|
|
1652
1659
|
"svg",
|
|
1653
1660
|
{
|
|
1654
1661
|
className: t,
|
|
@@ -1665,7 +1672,7 @@ const je = () => /* @__PURE__ */ e(
|
|
|
1665
1672
|
}
|
|
1666
1673
|
)
|
|
1667
1674
|
}
|
|
1668
|
-
),
|
|
1675
|
+
), lr = ({
|
|
1669
1676
|
currentPage: t = 1,
|
|
1670
1677
|
totalPages: a,
|
|
1671
1678
|
onPageChange: o,
|
|
@@ -1675,42 +1682,42 @@ const je = () => /* @__PURE__ */ e(
|
|
|
1675
1682
|
showBackButton: c = !0,
|
|
1676
1683
|
showNextButton: d = !0,
|
|
1677
1684
|
className: b = "",
|
|
1678
|
-
ariaLabel:
|
|
1685
|
+
ariaLabel: g = "Paginación"
|
|
1679
1686
|
}) => {
|
|
1680
|
-
const i =
|
|
1681
|
-
const
|
|
1682
|
-
if (a <=
|
|
1683
|
-
return Array.from({ length: a }, (
|
|
1684
|
-
const
|
|
1685
|
-
if (!
|
|
1686
|
-
const
|
|
1687
|
-
return [...Array.from({ length:
|
|
1687
|
+
const i = ue(() => {
|
|
1688
|
+
const k = s * 2 + 3 + 2;
|
|
1689
|
+
if (a <= k)
|
|
1690
|
+
return Array.from({ length: a }, ($, B) => B + 1);
|
|
1691
|
+
const x = Math.max(t - s, 1), h = Math.min(t + s, a), C = x > 2, N = h < a - 1, y = 1, w = a;
|
|
1692
|
+
if (!C && N) {
|
|
1693
|
+
const $ = 3 + 2 * s;
|
|
1694
|
+
return [...Array.from({ length: $ }, (v, j) => j + 1), "...", a];
|
|
1688
1695
|
}
|
|
1689
|
-
if (
|
|
1690
|
-
const
|
|
1691
|
-
{ length:
|
|
1692
|
-
(
|
|
1696
|
+
if (C && !N) {
|
|
1697
|
+
const $ = 3 + 2 * s, B = Array.from(
|
|
1698
|
+
{ length: $ },
|
|
1699
|
+
(v, j) => a - $ + j + 1
|
|
1693
1700
|
);
|
|
1694
|
-
return [
|
|
1701
|
+
return [y, "...", ...B];
|
|
1695
1702
|
}
|
|
1696
|
-
if (
|
|
1697
|
-
const
|
|
1698
|
-
{ length:
|
|
1699
|
-
(B,
|
|
1703
|
+
if (C && N) {
|
|
1704
|
+
const $ = Array.from(
|
|
1705
|
+
{ length: h - x + 1 },
|
|
1706
|
+
(B, v) => x + v
|
|
1700
1707
|
);
|
|
1701
|
-
return [
|
|
1708
|
+
return [y, "...", ...$, "...", w];
|
|
1702
1709
|
}
|
|
1703
1710
|
return [];
|
|
1704
|
-
}, [t, a, s]),
|
|
1705
|
-
|
|
1706
|
-
},
|
|
1707
|
-
page:
|
|
1708
|
-
isActive:
|
|
1709
|
-
disabled:
|
|
1710
|
-
onClick:
|
|
1711
|
-
ariaLabel:
|
|
1711
|
+
}, [t, a, s]), m = (u) => {
|
|
1712
|
+
u >= 1 && u <= a && u !== t && o?.(u);
|
|
1713
|
+
}, p = ({
|
|
1714
|
+
page: u,
|
|
1715
|
+
isActive: k = !1,
|
|
1716
|
+
disabled: x = !1,
|
|
1717
|
+
onClick: h,
|
|
1718
|
+
ariaLabel: C
|
|
1712
1719
|
}) => {
|
|
1713
|
-
const
|
|
1720
|
+
const N = u === "...", B = [`
|
|
1714
1721
|
inline-flex
|
|
1715
1722
|
items-center
|
|
1716
1723
|
justify-center
|
|
@@ -1723,12 +1730,12 @@ const je = () => /* @__PURE__ */ e(
|
|
|
1723
1730
|
whitespace-nowrap
|
|
1724
1731
|
transition-all
|
|
1725
1732
|
duration-150
|
|
1726
|
-
`,
|
|
1733
|
+
`, N ? `
|
|
1727
1734
|
text-primary-custom-600
|
|
1728
1735
|
dark:text-primary-custom-600
|
|
1729
1736
|
cursor-default
|
|
1730
1737
|
pointer-events-none
|
|
1731
|
-
` :
|
|
1738
|
+
` : k ? `
|
|
1732
1739
|
bg-primary-custom-100
|
|
1733
1740
|
text-primary-custom-600
|
|
1734
1741
|
dark:bg-primary-custom-100
|
|
@@ -1740,7 +1747,7 @@ const je = () => /* @__PURE__ */ e(
|
|
|
1740
1747
|
dark:text-primary-custom-600
|
|
1741
1748
|
dark:hover:bg-primary-custom-100
|
|
1742
1749
|
dark:active:scale-95
|
|
1743
|
-
`,
|
|
1750
|
+
`, x ? `
|
|
1744
1751
|
opacity-50
|
|
1745
1752
|
cursor-not-allowed
|
|
1746
1753
|
pointer-events-none
|
|
@@ -1750,21 +1757,21 @@ const je = () => /* @__PURE__ */ e(
|
|
|
1750
1757
|
{
|
|
1751
1758
|
type: "button",
|
|
1752
1759
|
className: B,
|
|
1753
|
-
onClick:
|
|
1754
|
-
disabled:
|
|
1755
|
-
"aria-label":
|
|
1756
|
-
"aria-current":
|
|
1757
|
-
children:
|
|
1760
|
+
onClick: h,
|
|
1761
|
+
disabled: x || N,
|
|
1762
|
+
"aria-label": C,
|
|
1763
|
+
"aria-current": k ? "page" : void 0,
|
|
1764
|
+
children: u
|
|
1758
1765
|
}
|
|
1759
1766
|
);
|
|
1760
|
-
},
|
|
1767
|
+
}, f = `
|
|
1761
1768
|
inline-flex
|
|
1762
1769
|
items-center
|
|
1763
1770
|
justify-between
|
|
1764
1771
|
gap-0
|
|
1765
1772
|
${b}
|
|
1766
1773
|
`.replace(/\s+/g, " ").trim();
|
|
1767
|
-
return /* @__PURE__ */ l("nav", { className:
|
|
1774
|
+
return /* @__PURE__ */ l("nav", { className: f, "aria-label": g, role: "navigation", children: [
|
|
1768
1775
|
c && /* @__PURE__ */ l(
|
|
1769
1776
|
"button",
|
|
1770
1777
|
{
|
|
@@ -1789,24 +1796,24 @@ const je = () => /* @__PURE__ */ e(
|
|
|
1789
1796
|
duration-150
|
|
1790
1797
|
${t === 1 ? "opacity-50 cursor-not-allowed pointer-events-none" : ""}
|
|
1791
1798
|
`.replace(/\s+/g, " ").trim(),
|
|
1792
|
-
onClick: () =>
|
|
1799
|
+
onClick: () => m(t - 1),
|
|
1793
1800
|
disabled: t === 1,
|
|
1794
1801
|
"aria-label": `${r} page`,
|
|
1795
1802
|
children: [
|
|
1796
|
-
/* @__PURE__ */ e(
|
|
1803
|
+
/* @__PURE__ */ e(Se, { className: "w-4 h-4" }),
|
|
1797
1804
|
r
|
|
1798
1805
|
]
|
|
1799
1806
|
}
|
|
1800
1807
|
),
|
|
1801
|
-
/* @__PURE__ */ e("div", { className: "inline-flex items-center", children: i.map((
|
|
1802
|
-
|
|
1808
|
+
/* @__PURE__ */ e("div", { className: "inline-flex items-center", children: i.map((u, k) => /* @__PURE__ */ e(
|
|
1809
|
+
p,
|
|
1803
1810
|
{
|
|
1804
|
-
page:
|
|
1805
|
-
isActive:
|
|
1806
|
-
onClick: () => typeof
|
|
1807
|
-
ariaLabel: typeof
|
|
1811
|
+
page: u,
|
|
1812
|
+
isActive: u === t,
|
|
1813
|
+
onClick: () => typeof u == "number" && m(u),
|
|
1814
|
+
ariaLabel: typeof u == "number" ? `Go to page ${u}` : `Page ${u}`
|
|
1808
1815
|
},
|
|
1809
|
-
`${
|
|
1816
|
+
`${u}-${k}`
|
|
1810
1817
|
)) }),
|
|
1811
1818
|
d && /* @__PURE__ */ l(
|
|
1812
1819
|
"button",
|
|
@@ -1832,17 +1839,17 @@ const je = () => /* @__PURE__ */ e(
|
|
|
1832
1839
|
duration-150
|
|
1833
1840
|
${t === a ? "opacity-50 cursor-not-allowed pointer-events-none" : ""}
|
|
1834
1841
|
`.replace(/\s+/g, " ").trim(),
|
|
1835
|
-
onClick: () =>
|
|
1842
|
+
onClick: () => m(t + 1),
|
|
1836
1843
|
disabled: t === a,
|
|
1837
1844
|
"aria-label": `${n} page`,
|
|
1838
1845
|
children: [
|
|
1839
1846
|
n,
|
|
1840
|
-
/* @__PURE__ */ e(
|
|
1847
|
+
/* @__PURE__ */ e(Ie, { className: "w-4 h-4" })
|
|
1841
1848
|
]
|
|
1842
1849
|
}
|
|
1843
1850
|
)
|
|
1844
1851
|
] });
|
|
1845
|
-
},
|
|
1852
|
+
}, Re = ({ className: t = "" }) => /* @__PURE__ */ l(
|
|
1846
1853
|
"svg",
|
|
1847
1854
|
{
|
|
1848
1855
|
className: t,
|
|
@@ -1869,7 +1876,7 @@ const je = () => /* @__PURE__ */ e(
|
|
|
1869
1876
|
)
|
|
1870
1877
|
]
|
|
1871
1878
|
}
|
|
1872
|
-
),
|
|
1879
|
+
), De = ({ className: t = "" }) => /* @__PURE__ */ e(
|
|
1873
1880
|
"svg",
|
|
1874
1881
|
{
|
|
1875
1882
|
className: t,
|
|
@@ -1886,7 +1893,7 @@ const je = () => /* @__PURE__ */ e(
|
|
|
1886
1893
|
}
|
|
1887
1894
|
)
|
|
1888
1895
|
}
|
|
1889
|
-
),
|
|
1896
|
+
), cr = ({
|
|
1890
1897
|
options: t = [],
|
|
1891
1898
|
value: a,
|
|
1892
1899
|
defaultValue: o,
|
|
@@ -1896,62 +1903,62 @@ const je = () => /* @__PURE__ */ e(
|
|
|
1896
1903
|
label: c,
|
|
1897
1904
|
description: d,
|
|
1898
1905
|
showLabel: b = !0,
|
|
1899
|
-
showDescription:
|
|
1906
|
+
showDescription: g = !0,
|
|
1900
1907
|
menuHeader: i,
|
|
1901
|
-
onChange:
|
|
1902
|
-
className:
|
|
1903
|
-
triggerClassName:
|
|
1904
|
-
menuClassName:
|
|
1905
|
-
ariaLabel:
|
|
1906
|
-
id:
|
|
1907
|
-
name:
|
|
1908
|
-
required:
|
|
1909
|
-
menuPosition:
|
|
1910
|
-
fullWidth:
|
|
1908
|
+
onChange: m,
|
|
1909
|
+
className: p = "",
|
|
1910
|
+
triggerClassName: f = "",
|
|
1911
|
+
menuClassName: u = "",
|
|
1912
|
+
ariaLabel: k,
|
|
1913
|
+
id: x,
|
|
1914
|
+
name: h,
|
|
1915
|
+
required: C = !1,
|
|
1916
|
+
menuPosition: N = "bottom",
|
|
1917
|
+
fullWidth: y = !1
|
|
1911
1918
|
}) => {
|
|
1912
|
-
const [
|
|
1919
|
+
const [w, $] = H(!1), [B, v] = H(
|
|
1913
1920
|
a !== void 0 ? a : o
|
|
1914
|
-
), [
|
|
1915
|
-
|
|
1916
|
-
a !== void 0 &&
|
|
1917
|
-
}, [a]),
|
|
1918
|
-
const
|
|
1919
|
-
|
|
1921
|
+
), [j, R] = H(-1), T = G(null), I = G(null), D = G(null);
|
|
1922
|
+
U(() => {
|
|
1923
|
+
a !== void 0 && v(a);
|
|
1924
|
+
}, [a]), U(() => {
|
|
1925
|
+
const M = (A) => {
|
|
1926
|
+
T.current && !T.current.contains(A.target) && $(!1);
|
|
1920
1927
|
};
|
|
1921
|
-
if (
|
|
1922
|
-
return document.addEventListener("mousedown",
|
|
1923
|
-
document.removeEventListener("mousedown",
|
|
1928
|
+
if (w)
|
|
1929
|
+
return document.addEventListener("mousedown", M), () => {
|
|
1930
|
+
document.removeEventListener("mousedown", M);
|
|
1924
1931
|
};
|
|
1925
|
-
}, [
|
|
1926
|
-
const
|
|
1927
|
-
if (
|
|
1928
|
-
switch (
|
|
1932
|
+
}, [w]), U(() => {
|
|
1933
|
+
const M = (A) => {
|
|
1934
|
+
if (w)
|
|
1935
|
+
switch (A.key) {
|
|
1929
1936
|
case "Escape":
|
|
1930
|
-
|
|
1937
|
+
$(!1), I.current?.focus();
|
|
1931
1938
|
break;
|
|
1932
1939
|
case "ArrowDown":
|
|
1933
|
-
|
|
1940
|
+
A.preventDefault(), R((P) => P < t.length - 1 ? P + 1 : 0);
|
|
1934
1941
|
break;
|
|
1935
1942
|
case "ArrowUp":
|
|
1936
|
-
|
|
1943
|
+
A.preventDefault(), R((P) => P > 0 ? P - 1 : t.length - 1);
|
|
1937
1944
|
break;
|
|
1938
1945
|
case "Enter":
|
|
1939
|
-
|
|
1946
|
+
A.preventDefault(), j >= 0 && j < t.length && S(t[j]);
|
|
1940
1947
|
break;
|
|
1941
1948
|
}
|
|
1942
1949
|
};
|
|
1943
|
-
if (
|
|
1944
|
-
return document.addEventListener("keydown",
|
|
1945
|
-
document.removeEventListener("keydown",
|
|
1950
|
+
if (w)
|
|
1951
|
+
return document.addEventListener("keydown", M), () => {
|
|
1952
|
+
document.removeEventListener("keydown", M);
|
|
1946
1953
|
};
|
|
1947
|
-
}, [
|
|
1948
|
-
const
|
|
1949
|
-
n || (
|
|
1950
|
-
},
|
|
1951
|
-
|
|
1954
|
+
}, [w, j, t]);
|
|
1955
|
+
const F = t.find((M) => M.value === B), _ = () => {
|
|
1956
|
+
n || ($(!w), R(-1));
|
|
1957
|
+
}, S = (M) => {
|
|
1958
|
+
M.disabled || (v(M.value), $(!1), m?.(M.value), setTimeout(() => {
|
|
1952
1959
|
I.current?.focus();
|
|
1953
1960
|
}, 0));
|
|
1954
|
-
},
|
|
1961
|
+
}, W = [
|
|
1955
1962
|
`
|
|
1956
1963
|
inline-flex
|
|
1957
1964
|
items-center
|
|
@@ -1968,7 +1975,7 @@ const je = () => /* @__PURE__ */ e(
|
|
|
1968
1975
|
transition-all
|
|
1969
1976
|
duration-150
|
|
1970
1977
|
`,
|
|
1971
|
-
|
|
1978
|
+
y ? "w-full" : "min-w-[200px]",
|
|
1972
1979
|
s ? `
|
|
1973
1980
|
border-error-border
|
|
1974
1981
|
bg-error-bg
|
|
@@ -2002,7 +2009,7 @@ const je = () => /* @__PURE__ */ e(
|
|
|
2002
2009
|
opacity-50
|
|
2003
2010
|
cursor-not-allowed
|
|
2004
2011
|
` : "",
|
|
2005
|
-
|
|
2012
|
+
f
|
|
2006
2013
|
].join(" ").replace(/\s+/g, " ").trim(), se = [
|
|
2007
2014
|
`
|
|
2008
2015
|
absolute
|
|
@@ -2017,13 +2024,13 @@ const je = () => /* @__PURE__ */ e(
|
|
|
2017
2024
|
transition-all
|
|
2018
2025
|
duration-150
|
|
2019
2026
|
`,
|
|
2020
|
-
|
|
2027
|
+
N === "top" ? "bottom-full mb-1" : "top-full mt-1",
|
|
2021
2028
|
`
|
|
2022
2029
|
bg-background-secondary
|
|
2023
2030
|
dark:bg-dark-bg-primary
|
|
2024
2031
|
`,
|
|
2025
|
-
|
|
2026
|
-
|
|
2032
|
+
w ? "opacity-100 visible" : "opacity-0 invisible",
|
|
2033
|
+
u
|
|
2027
2034
|
].join(" ").replace(/\s+/g, " ").trim(), ie = `
|
|
2028
2035
|
flex
|
|
2029
2036
|
items-center
|
|
@@ -2038,86 +2045,86 @@ const je = () => /* @__PURE__ */ e(
|
|
|
2038
2045
|
text-[10px]
|
|
2039
2046
|
leading-[12px]
|
|
2040
2047
|
font-bold
|
|
2041
|
-
`, le = (
|
|
2042
|
-
const
|
|
2048
|
+
`, le = (M, A) => {
|
|
2049
|
+
const P = M.value === B, J = A === j, be = P && !J ? "text-content-primary dark:text-dark-content-primary" : J || P && J ? "bg-primary-custom-600 text-primary-inverse-content dark:bg-primary-custom-600 dark:text-primary-inverse-content" : "text-content-primary dark:text-dark-content-primary", me = M.disabled ? "" : "hover:bg-primary-custom-600 hover:text-primary-inverse-content dark:hover:bg-primary-custom-600 dark:hover:text-primary-inverse-content", pe = M.disabled ? "opacity-50 cursor-not-allowed" : "";
|
|
2043
2050
|
return [ie, be, me, pe].join(" ").replace(/\s+/g, " ").trim();
|
|
2044
2051
|
}, ce = [
|
|
2045
2052
|
"shrink-0",
|
|
2046
2053
|
"transition-transform",
|
|
2047
2054
|
"duration-150",
|
|
2048
|
-
|
|
2055
|
+
w && "rotate-180",
|
|
2049
2056
|
n ? "text-content-tertiary dark:text-content-tertiary" : "text-content-secondary dark:text-content-secondary"
|
|
2050
2057
|
].filter(Boolean).join(" ").replace(/\s+/g, " ").trim(), de = "shrink-0 w-4 h-4";
|
|
2051
|
-
return /* @__PURE__ */ l("div", { className: `relative ${
|
|
2052
|
-
b && c ||
|
|
2058
|
+
return /* @__PURE__ */ l("div", { className: `relative ${y ? "w-full" : ""} ${p}`, ref: T, children: [
|
|
2059
|
+
b && c || g && d ? /* @__PURE__ */ l("div", { className: "flex flex-col gap-1 mb-1 w-full", children: [
|
|
2053
2060
|
b && c && /* @__PURE__ */ l(
|
|
2054
2061
|
"label",
|
|
2055
2062
|
{
|
|
2056
|
-
htmlFor:
|
|
2063
|
+
htmlFor: x,
|
|
2057
2064
|
className: "text-sm font-bold leading-5 text-content-primary dark:text-dark-content-primary",
|
|
2058
2065
|
children: [
|
|
2059
2066
|
c,
|
|
2060
|
-
|
|
2067
|
+
C && /* @__PURE__ */ e("span", { className: "ml-1 text-error-content", children: "*" })
|
|
2061
2068
|
]
|
|
2062
2069
|
}
|
|
2063
2070
|
),
|
|
2064
|
-
|
|
2071
|
+
g && d && /* @__PURE__ */ e("p", { className: "text-sm font-normal leading-5 text-content-tertiary dark:text-content-tertiary", children: d })
|
|
2065
2072
|
] }) : null,
|
|
2066
2073
|
/* @__PURE__ */ l(
|
|
2067
2074
|
"button",
|
|
2068
2075
|
{
|
|
2069
2076
|
ref: I,
|
|
2070
2077
|
type: "button",
|
|
2071
|
-
className:
|
|
2072
|
-
onClick:
|
|
2078
|
+
className: W,
|
|
2079
|
+
onClick: _,
|
|
2073
2080
|
disabled: n,
|
|
2074
|
-
"aria-label":
|
|
2081
|
+
"aria-label": k || c,
|
|
2075
2082
|
"aria-haspopup": "listbox",
|
|
2076
|
-
"aria-expanded":
|
|
2077
|
-
id:
|
|
2083
|
+
"aria-expanded": w,
|
|
2084
|
+
id: x,
|
|
2078
2085
|
children: [
|
|
2079
2086
|
/* @__PURE__ */ e(
|
|
2080
2087
|
"span",
|
|
2081
2088
|
{
|
|
2082
|
-
className:
|
|
2083
|
-
children:
|
|
2089
|
+
className: F ? "" : "text-content-secondary dark:text-content-secondary",
|
|
2090
|
+
children: F ? F.label : r
|
|
2084
2091
|
}
|
|
2085
2092
|
),
|
|
2086
|
-
/* @__PURE__ */ e(
|
|
2093
|
+
/* @__PURE__ */ e(Re, { className: ce })
|
|
2087
2094
|
]
|
|
2088
2095
|
}
|
|
2089
2096
|
),
|
|
2090
|
-
|
|
2097
|
+
h && /* @__PURE__ */ e(
|
|
2091
2098
|
"input",
|
|
2092
2099
|
{
|
|
2093
2100
|
type: "hidden",
|
|
2094
|
-
name:
|
|
2101
|
+
name: h,
|
|
2095
2102
|
value: B !== void 0 ? String(B) : ""
|
|
2096
2103
|
}
|
|
2097
2104
|
),
|
|
2098
|
-
|
|
2105
|
+
w && /* @__PURE__ */ l("div", { ref: D, className: se, role: "listbox", children: [
|
|
2099
2106
|
i && /* @__PURE__ */ e("div", { className: "flex items-center gap-0.5 px-6 py-0.5 rounded-[5px]", children: /* @__PURE__ */ e("span", { className: "text-[10px] font-bold leading-[12px] text-content-tertiary dark:text-content-tertiary", children: i }) }),
|
|
2100
2107
|
t.length === 0 && /* @__PURE__ */ e("div", { className: "px-2 py-1.5 text-[10px] leading-[12px] text-content-secondary dark:text-content-secondary", children: "No hay opciones disponibles" }),
|
|
2101
|
-
t.map((
|
|
2108
|
+
t.map((M, A) => /* @__PURE__ */ l(
|
|
2102
2109
|
"div",
|
|
2103
2110
|
{
|
|
2104
|
-
className: le(
|
|
2105
|
-
onClick: () => M
|
|
2106
|
-
onMouseEnter: () =>
|
|
2111
|
+
className: le(M, A),
|
|
2112
|
+
onClick: () => S(M),
|
|
2113
|
+
onMouseEnter: () => R(A),
|
|
2107
2114
|
role: "option",
|
|
2108
|
-
"aria-selected":
|
|
2109
|
-
"aria-disabled":
|
|
2115
|
+
"aria-selected": M.value === B,
|
|
2116
|
+
"aria-disabled": M.disabled,
|
|
2110
2117
|
children: [
|
|
2111
|
-
/* @__PURE__ */ e("div", { className: "w-4 flex items-center justify-center", children:
|
|
2112
|
-
|
|
2113
|
-
/* @__PURE__ */ e("span", { className: "flex-1 text-left", children:
|
|
2118
|
+
/* @__PURE__ */ e("div", { className: "w-4 flex items-center justify-center", children: M.value === B && /* @__PURE__ */ e(De, { className: de }) }),
|
|
2119
|
+
M.icon && /* @__PURE__ */ e("span", { className: "shrink-0 w-4 h-4", children: M.icon }),
|
|
2120
|
+
/* @__PURE__ */ e("span", { className: "flex-1 text-left", children: M.label })
|
|
2114
2121
|
]
|
|
2115
2122
|
},
|
|
2116
|
-
|
|
2123
|
+
M.value
|
|
2117
2124
|
))
|
|
2118
2125
|
] })
|
|
2119
2126
|
] });
|
|
2120
|
-
},
|
|
2127
|
+
}, ze = () => /* @__PURE__ */ e(
|
|
2121
2128
|
"svg",
|
|
2122
2129
|
{
|
|
2123
2130
|
width: "16",
|
|
@@ -2137,7 +2144,7 @@ const je = () => /* @__PURE__ */ e(
|
|
|
2137
2144
|
}
|
|
2138
2145
|
)
|
|
2139
2146
|
}
|
|
2140
|
-
),
|
|
2147
|
+
), Te = () => /* @__PURE__ */ e(
|
|
2141
2148
|
"svg",
|
|
2142
2149
|
{
|
|
2143
2150
|
width: "16",
|
|
@@ -2157,7 +2164,7 @@ const je = () => /* @__PURE__ */ e(
|
|
|
2157
2164
|
}
|
|
2158
2165
|
)
|
|
2159
2166
|
}
|
|
2160
|
-
),
|
|
2167
|
+
), Ae = () => /* @__PURE__ */ e(
|
|
2161
2168
|
"svg",
|
|
2162
2169
|
{
|
|
2163
2170
|
width: "16",
|
|
@@ -2176,7 +2183,7 @@ const je = () => /* @__PURE__ */ e(
|
|
|
2176
2183
|
}
|
|
2177
2184
|
)
|
|
2178
2185
|
}
|
|
2179
|
-
),
|
|
2186
|
+
), Ee = () => /* @__PURE__ */ e(
|
|
2180
2187
|
"svg",
|
|
2181
2188
|
{
|
|
2182
2189
|
width: "16",
|
|
@@ -2195,7 +2202,7 @@ const je = () => /* @__PURE__ */ e(
|
|
|
2195
2202
|
}
|
|
2196
2203
|
)
|
|
2197
2204
|
}
|
|
2198
|
-
),
|
|
2205
|
+
), Ze = ({
|
|
2199
2206
|
column: t,
|
|
2200
2207
|
sortable: a,
|
|
2201
2208
|
sorted: o,
|
|
@@ -2231,8 +2238,8 @@ const je = () => /* @__PURE__ */ e(
|
|
|
2231
2238
|
onClick: a ? n : void 0,
|
|
2232
2239
|
role: a ? "button" : void 0,
|
|
2233
2240
|
tabIndex: a ? 0 : void 0,
|
|
2234
|
-
onKeyDown: a ? (
|
|
2235
|
-
(
|
|
2241
|
+
onKeyDown: a ? (g) => {
|
|
2242
|
+
(g.key === "Enter" || g.key === " ") && (g.preventDefault(), n());
|
|
2236
2243
|
} : void 0,
|
|
2237
2244
|
style: { width: t.width },
|
|
2238
2245
|
children: [
|
|
@@ -2252,8 +2259,8 @@ const je = () => /* @__PURE__ */ e(
|
|
|
2252
2259
|
}
|
|
2253
2260
|
),
|
|
2254
2261
|
a && /* @__PURE__ */ l("span", { className: "shrink-0 text-content-secondary dark:text-content-secondary", children: [
|
|
2255
|
-
o && r === "asc" && /* @__PURE__ */ e(
|
|
2256
|
-
o && r === "desc" && /* @__PURE__ */ e(
|
|
2262
|
+
o && r === "asc" && /* @__PURE__ */ e(ze, {}),
|
|
2263
|
+
o && r === "desc" && /* @__PURE__ */ e(Te, {}),
|
|
2257
2264
|
!o && /* @__PURE__ */ e("div", { className: "w-4 h-4" })
|
|
2258
2265
|
] })
|
|
2259
2266
|
]
|
|
@@ -2303,7 +2310,7 @@ const je = () => /* @__PURE__ */ e(
|
|
|
2303
2310
|
)
|
|
2304
2311
|
}
|
|
2305
2312
|
);
|
|
2306
|
-
},
|
|
2313
|
+
}, He = ({
|
|
2307
2314
|
currentPage: t,
|
|
2308
2315
|
totalPages: a,
|
|
2309
2316
|
onPageChange: o,
|
|
@@ -2313,8 +2320,8 @@ const je = () => /* @__PURE__ */ e(
|
|
|
2313
2320
|
const c = (() => {
|
|
2314
2321
|
const d = [];
|
|
2315
2322
|
if (a <= 7)
|
|
2316
|
-
for (let
|
|
2317
|
-
d.push(
|
|
2323
|
+
for (let g = 1; g <= a; g++)
|
|
2324
|
+
d.push(g);
|
|
2318
2325
|
else
|
|
2319
2326
|
d.push(1), t <= 3 ? d.push(2, 3) : t >= a - 2 ? (d.push("..."), d.push(a - 2, a - 1)) : (d.push("..."), d.push(t), d.push("...")), a > 1 && d.push(a);
|
|
2320
2327
|
return d;
|
|
@@ -2344,7 +2351,7 @@ const je = () => /* @__PURE__ */ e(
|
|
|
2344
2351
|
duration-150
|
|
2345
2352
|
`,
|
|
2346
2353
|
children: [
|
|
2347
|
-
/* @__PURE__ */ e(
|
|
2354
|
+
/* @__PURE__ */ e(Ae, {}),
|
|
2348
2355
|
/* @__PURE__ */ e("span", { children: r })
|
|
2349
2356
|
]
|
|
2350
2357
|
}
|
|
@@ -2414,12 +2421,12 @@ const je = () => /* @__PURE__ */ e(
|
|
|
2414
2421
|
`,
|
|
2415
2422
|
children: [
|
|
2416
2423
|
/* @__PURE__ */ e("span", { children: n }),
|
|
2417
|
-
/* @__PURE__ */ e(
|
|
2424
|
+
/* @__PURE__ */ e(Ee, {})
|
|
2418
2425
|
]
|
|
2419
2426
|
}
|
|
2420
2427
|
)
|
|
2421
2428
|
] });
|
|
2422
|
-
},
|
|
2429
|
+
}, dr = ({
|
|
2423
2430
|
title: t,
|
|
2424
2431
|
columns: a,
|
|
2425
2432
|
data: o,
|
|
@@ -2430,18 +2437,18 @@ const je = () => /* @__PURE__ */ e(
|
|
|
2430
2437
|
onSort: c,
|
|
2431
2438
|
sortColumn: d,
|
|
2432
2439
|
sortDirection: b,
|
|
2433
|
-
fullWidth:
|
|
2440
|
+
fullWidth: g = !1,
|
|
2434
2441
|
emptyMessage: i = "No hay datos disponibles",
|
|
2435
|
-
loading:
|
|
2436
|
-
loadingRows:
|
|
2437
|
-
pagination:
|
|
2438
|
-
className:
|
|
2439
|
-
id:
|
|
2442
|
+
loading: m = !1,
|
|
2443
|
+
loadingRows: p = 5,
|
|
2444
|
+
pagination: f,
|
|
2445
|
+
className: u = "",
|
|
2446
|
+
id: k
|
|
2440
2447
|
}) => {
|
|
2441
|
-
const [
|
|
2442
|
-
let
|
|
2443
|
-
|
|
2444
|
-
}, B = (
|
|
2448
|
+
const [x, h] = H(null), [C, N] = H(null), y = d !== void 0 ? d : x, w = b !== void 0 ? b : C, $ = (_) => {
|
|
2449
|
+
let S = "asc";
|
|
2450
|
+
y === _ && (w === "asc" ? S = "desc" : w === "desc" && (S = null)), c ? c(_, S) : (h(S ? _ : null), N(S));
|
|
2451
|
+
}, B = (_, S) => typeof S == "function" ? S(_) : _[S], D = [
|
|
2445
2452
|
`
|
|
2446
2453
|
flex
|
|
2447
2454
|
flex-col
|
|
@@ -2455,10 +2462,10 @@ const je = () => /* @__PURE__ */ e(
|
|
|
2455
2462
|
n ? "border border-border-primary dark:border-dark-border-primary" : "",
|
|
2456
2463
|
s ? "shadow-base" : "",
|
|
2457
2464
|
"p-8",
|
|
2458
|
-
|
|
2459
|
-
|
|
2465
|
+
g || r === "fullWidth" ? "w-full" : "",
|
|
2466
|
+
u
|
|
2460
2467
|
].join(" ").replace(/\s+/g, " ").trim();
|
|
2461
|
-
return /* @__PURE__ */ l("div", { className:
|
|
2468
|
+
return /* @__PURE__ */ l("div", { className: D, id: k, children: [
|
|
2462
2469
|
t && /* @__PURE__ */ e("div", { className: "flex items-center justify-center w-full", children: /* @__PURE__ */ e(
|
|
2463
2470
|
"h3",
|
|
2464
2471
|
{
|
|
@@ -2480,26 +2487,26 @@ const je = () => /* @__PURE__ */ e(
|
|
|
2480
2487
|
dark:border-dark-border-primary
|
|
2481
2488
|
rounded-lg
|
|
2482
2489
|
overflow-hidden
|
|
2483
|
-
` : ""}`, children: a.map((
|
|
2484
|
-
const
|
|
2490
|
+
` : ""}`, children: a.map((_, S) => {
|
|
2491
|
+
const Z = typeof _.accessor == "function" ? `column_${S}` : String(_.accessor);
|
|
2485
2492
|
return /* @__PURE__ */ l("div", { className: "flex flex-col flex-1 min-w-0", children: [
|
|
2486
2493
|
/* @__PURE__ */ e(
|
|
2487
|
-
|
|
2494
|
+
Ze,
|
|
2488
2495
|
{
|
|
2489
|
-
column:
|
|
2490
|
-
sortable:
|
|
2491
|
-
sorted:
|
|
2492
|
-
sortDirection:
|
|
2493
|
-
onSort: () =>
|
|
2496
|
+
column: _,
|
|
2497
|
+
sortable: _.sortable || !1,
|
|
2498
|
+
sorted: y === Z,
|
|
2499
|
+
sortDirection: y === Z ? w : null,
|
|
2500
|
+
onSort: () => $(Z)
|
|
2494
2501
|
}
|
|
2495
2502
|
),
|
|
2496
|
-
|
|
2503
|
+
m && /* @__PURE__ */ e(z, { children: Array.from({ length: p }).map((V, O) => /* @__PURE__ */ e(
|
|
2497
2504
|
ee,
|
|
2498
2505
|
{
|
|
2499
|
-
align:
|
|
2500
|
-
width:
|
|
2506
|
+
align: _.align,
|
|
2507
|
+
width: _.width,
|
|
2501
2508
|
isStriped: r === "striped",
|
|
2502
|
-
rowIndex:
|
|
2509
|
+
rowIndex: O,
|
|
2503
2510
|
children: /* @__PURE__ */ e(
|
|
2504
2511
|
"div",
|
|
2505
2512
|
{
|
|
@@ -2513,23 +2520,23 @@ const je = () => /* @__PURE__ */ e(
|
|
|
2513
2520
|
}
|
|
2514
2521
|
)
|
|
2515
2522
|
},
|
|
2516
|
-
`loading-${
|
|
2523
|
+
`loading-${O}`
|
|
2517
2524
|
)) }),
|
|
2518
|
-
!
|
|
2519
|
-
const q = B(
|
|
2525
|
+
!m && o.length > 0 && /* @__PURE__ */ e(z, { children: o.map((V, O) => {
|
|
2526
|
+
const q = B(V, _.accessor), Q = _.render ? _.render(q, V, O) : q;
|
|
2520
2527
|
return /* @__PURE__ */ e(
|
|
2521
2528
|
ee,
|
|
2522
2529
|
{
|
|
2523
|
-
align:
|
|
2524
|
-
width:
|
|
2530
|
+
align: _.align,
|
|
2531
|
+
width: _.width,
|
|
2525
2532
|
isStriped: r === "striped",
|
|
2526
|
-
rowIndex:
|
|
2533
|
+
rowIndex: O,
|
|
2527
2534
|
children: Q
|
|
2528
2535
|
},
|
|
2529
|
-
|
|
2536
|
+
O
|
|
2530
2537
|
);
|
|
2531
2538
|
}) }),
|
|
2532
|
-
!
|
|
2539
|
+
!m && o.length === 0 && S === 0 && /* @__PURE__ */ e(
|
|
2533
2540
|
"div",
|
|
2534
2541
|
{
|
|
2535
2542
|
className: `
|
|
@@ -2546,16 +2553,16 @@ const je = () => /* @__PURE__ */ e(
|
|
|
2546
2553
|
children: i
|
|
2547
2554
|
}
|
|
2548
2555
|
)
|
|
2549
|
-
] },
|
|
2556
|
+
] }, Z);
|
|
2550
2557
|
}) }),
|
|
2551
|
-
|
|
2552
|
-
|
|
2558
|
+
f && /* @__PURE__ */ e(
|
|
2559
|
+
He,
|
|
2553
2560
|
{
|
|
2554
|
-
currentPage:
|
|
2555
|
-
totalPages:
|
|
2556
|
-
onPageChange:
|
|
2557
|
-
previousLabel:
|
|
2558
|
-
nextLabel:
|
|
2561
|
+
currentPage: f.currentPage,
|
|
2562
|
+
totalPages: f.totalPages,
|
|
2563
|
+
onPageChange: f.onPageChange,
|
|
2564
|
+
previousLabel: f.previousLabel,
|
|
2565
|
+
nextLabel: f.nextLabel
|
|
2559
2566
|
}
|
|
2560
2567
|
)
|
|
2561
2568
|
] });
|
|
@@ -2581,7 +2588,7 @@ const je = () => /* @__PURE__ */ e(
|
|
|
2581
2588
|
p-0
|
|
2582
2589
|
border-0
|
|
2583
2590
|
bg-transparent
|
|
2584
|
-
`, i = n ? "opacity-50 cursor-not-allowed pointer-events-none" : "",
|
|
2591
|
+
`, i = n ? "opacity-50 cursor-not-allowed pointer-events-none" : "", m = `
|
|
2585
2592
|
flex
|
|
2586
2593
|
items-center
|
|
2587
2594
|
justify-center
|
|
@@ -2592,30 +2599,30 @@ const je = () => /* @__PURE__ */ e(
|
|
|
2592
2599
|
transition-all
|
|
2593
2600
|
duration-150
|
|
2594
2601
|
w-full
|
|
2595
|
-
`,
|
|
2602
|
+
`, p = n ? "" : `
|
|
2596
2603
|
group-hover:bg-[rgba(0,0,0,0.03)]
|
|
2597
2604
|
group-focus-visible:bg-[rgba(0,0,0,0.03)]
|
|
2598
2605
|
group-focus-visible:shadow-[0px_0px_0px_2px_#dbeefe,0px_1px_2px_0px_rgba(0,0,0,0.05),0px_0px_0px_4px_#60b6fa]
|
|
2599
2606
|
dark:group-hover:bg-white/5
|
|
2600
2607
|
dark:group-focus-visible:bg-white/5
|
|
2601
2608
|
dark:group-focus-visible:shadow-[0px_0px_0px_2px_#1e3a5f,0px_1px_2px_0px_rgba(0,0,0,0.05),0px_0px_0px_4px_#0f6ae3]
|
|
2602
|
-
`,
|
|
2609
|
+
`, f = a ? `
|
|
2603
2610
|
text-primary-custom-600
|
|
2604
2611
|
dark:text-primary-custom-600
|
|
2605
2612
|
` : `
|
|
2606
2613
|
text-content-primary
|
|
2607
2614
|
dark:text-dark-content-primary
|
|
2608
|
-
`,
|
|
2615
|
+
`, u = `
|
|
2609
2616
|
w-3
|
|
2610
2617
|
h-3
|
|
2611
2618
|
shrink-0
|
|
2612
|
-
`,
|
|
2619
|
+
`, k = a ? `
|
|
2613
2620
|
bg-primary-custom-600
|
|
2614
2621
|
dark:bg-primary-custom-600
|
|
2615
2622
|
` : `
|
|
2616
2623
|
bg-content-primary
|
|
2617
2624
|
dark:bg-dark-content-primary
|
|
2618
|
-
`,
|
|
2625
|
+
`, x = a ? `
|
|
2619
2626
|
absolute
|
|
2620
2627
|
-bottom-2.5
|
|
2621
2628
|
left-0
|
|
@@ -2625,16 +2632,16 @@ const je = () => /* @__PURE__ */ e(
|
|
|
2625
2632
|
bg-primary-custom-600
|
|
2626
2633
|
dark:bg-primary-custom-600
|
|
2627
2634
|
z-10
|
|
2628
|
-
` : "hidden",
|
|
2635
|
+
` : "hidden", h = [
|
|
2629
2636
|
b,
|
|
2630
2637
|
"",
|
|
2631
2638
|
i,
|
|
2632
2639
|
"group",
|
|
2633
2640
|
// Para usar group-hover y group-focus-visible
|
|
2634
2641
|
c
|
|
2635
|
-
].join(" ").replace(/\s+/g, " ").trim(),
|
|
2636
|
-
|
|
2637
|
-
|
|
2642
|
+
].join(" ").replace(/\s+/g, " ").trim(), C = [
|
|
2643
|
+
m,
|
|
2644
|
+
p
|
|
2638
2645
|
].join(" ").replace(/\s+/g, " ").trim();
|
|
2639
2646
|
return /* @__PURE__ */ l(
|
|
2640
2647
|
"button",
|
|
@@ -2645,12 +2652,12 @@ const je = () => /* @__PURE__ */ e(
|
|
|
2645
2652
|
"aria-disabled": n,
|
|
2646
2653
|
"aria-label": d || t,
|
|
2647
2654
|
tabIndex: n ? -1 : 0,
|
|
2648
|
-
className:
|
|
2655
|
+
className: h,
|
|
2649
2656
|
onClick: n ? void 0 : s,
|
|
2650
2657
|
disabled: n,
|
|
2651
2658
|
children: [
|
|
2652
|
-
/* @__PURE__ */ l("div", { className:
|
|
2653
|
-
o && /* @__PURE__ */ e("span", { className: `${
|
|
2659
|
+
/* @__PURE__ */ l("div", { className: C, children: [
|
|
2660
|
+
o && /* @__PURE__ */ e("span", { className: `${u} ${f}`.trim(), children: o }),
|
|
2654
2661
|
/* @__PURE__ */ e(
|
|
2655
2662
|
"span",
|
|
2656
2663
|
{
|
|
@@ -2659,7 +2666,7 @@ const je = () => /* @__PURE__ */ e(
|
|
|
2659
2666
|
font-bold
|
|
2660
2667
|
leading-5
|
|
2661
2668
|
whitespace-nowrap
|
|
2662
|
-
${
|
|
2669
|
+
${f}
|
|
2663
2670
|
`.replace(/\s+/g, " ").trim(),
|
|
2664
2671
|
children: t
|
|
2665
2672
|
}
|
|
@@ -2680,18 +2687,18 @@ const je = () => /* @__PURE__ */ e(
|
|
|
2680
2687
|
leading-4
|
|
2681
2688
|
text-primary-inverse-content
|
|
2682
2689
|
dark:text-dark-bg-primary
|
|
2683
|
-
${
|
|
2690
|
+
${k}
|
|
2684
2691
|
`.replace(/\s+/g, " ").trim(),
|
|
2685
2692
|
"aria-label": `${r} notificaciones`,
|
|
2686
2693
|
children: r > 99 ? "99+" : r
|
|
2687
2694
|
}
|
|
2688
2695
|
)
|
|
2689
2696
|
] }),
|
|
2690
|
-
/* @__PURE__ */ e("div", { className:
|
|
2697
|
+
/* @__PURE__ */ e("div", { className: x })
|
|
2691
2698
|
]
|
|
2692
2699
|
}
|
|
2693
2700
|
);
|
|
2694
|
-
},
|
|
2701
|
+
}, br = ({
|
|
2695
2702
|
items: t,
|
|
2696
2703
|
activeId: a,
|
|
2697
2704
|
defaultActiveId: o,
|
|
@@ -2701,11 +2708,11 @@ const je = () => /* @__PURE__ */ e(
|
|
|
2701
2708
|
size: c = "base",
|
|
2702
2709
|
showBorder: d = !0
|
|
2703
2710
|
}) => {
|
|
2704
|
-
const [b,
|
|
2711
|
+
const [b, g] = H(
|
|
2705
2712
|
o || (t.length > 0 ? t[0].id : "")
|
|
2706
|
-
), i = a !== void 0,
|
|
2707
|
-
i ||
|
|
2708
|
-
},
|
|
2713
|
+
), i = a !== void 0, m = i ? a : b, p = (h) => {
|
|
2714
|
+
i || g(h), r?.(h);
|
|
2715
|
+
}, u = `
|
|
2709
2716
|
flex
|
|
2710
2717
|
items-end
|
|
2711
2718
|
pb-2.5
|
|
@@ -2716,8 +2723,8 @@ const je = () => /* @__PURE__ */ e(
|
|
|
2716
2723
|
}[c]}
|
|
2717
2724
|
${s ? "w-full" : ""}
|
|
2718
2725
|
${d ? "border-b border-border-primary dark:border-dark-border-primary" : ""}
|
|
2719
|
-
`,
|
|
2720
|
-
|
|
2726
|
+
`, k = s ? "flex-1" : "", x = [
|
|
2727
|
+
u,
|
|
2721
2728
|
n
|
|
2722
2729
|
].join(" ").replace(/\s+/g, " ").trim();
|
|
2723
2730
|
return /* @__PURE__ */ e(
|
|
@@ -2725,23 +2732,23 @@ const je = () => /* @__PURE__ */ e(
|
|
|
2725
2732
|
{
|
|
2726
2733
|
role: "tablist",
|
|
2727
2734
|
"aria-label": "Pestañas de navegación",
|
|
2728
|
-
className:
|
|
2729
|
-
children: t.map((
|
|
2735
|
+
className: x,
|
|
2736
|
+
children: t.map((h) => /* @__PURE__ */ e(
|
|
2730
2737
|
Ve,
|
|
2731
2738
|
{
|
|
2732
|
-
label:
|
|
2733
|
-
active:
|
|
2734
|
-
icon:
|
|
2735
|
-
badge:
|
|
2736
|
-
disabled:
|
|
2737
|
-
onClick: () =>
|
|
2738
|
-
className:
|
|
2739
|
+
label: h.label,
|
|
2740
|
+
active: m === h.id,
|
|
2741
|
+
icon: h.icon,
|
|
2742
|
+
badge: h.badge,
|
|
2743
|
+
disabled: h.disabled,
|
|
2744
|
+
onClick: () => p(h.id),
|
|
2745
|
+
className: k
|
|
2739
2746
|
},
|
|
2740
|
-
|
|
2747
|
+
h.id
|
|
2741
2748
|
))
|
|
2742
2749
|
}
|
|
2743
2750
|
);
|
|
2744
|
-
},
|
|
2751
|
+
}, We = () => /* @__PURE__ */ e(
|
|
2745
2752
|
"svg",
|
|
2746
2753
|
{
|
|
2747
2754
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -2819,7 +2826,7 @@ const je = () => /* @__PURE__ */ e(
|
|
|
2819
2826
|
}
|
|
2820
2827
|
)
|
|
2821
2828
|
}
|
|
2822
|
-
),
|
|
2829
|
+
), Oe = () => /* @__PURE__ */ e(
|
|
2823
2830
|
"svg",
|
|
2824
2831
|
{
|
|
2825
2832
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -2836,7 +2843,7 @@ const je = () => /* @__PURE__ */ e(
|
|
|
2836
2843
|
}
|
|
2837
2844
|
)
|
|
2838
2845
|
}
|
|
2839
|
-
),
|
|
2846
|
+
), mr = ({
|
|
2840
2847
|
logo: t,
|
|
2841
2848
|
productName: a = "Nombre Producto",
|
|
2842
2849
|
environmentBadge: o,
|
|
@@ -2846,17 +2853,17 @@ const je = () => /* @__PURE__ */ e(
|
|
|
2846
2853
|
className: c = "",
|
|
2847
2854
|
variant: d = "responsive",
|
|
2848
2855
|
hideActionButtons: b = !1,
|
|
2849
|
-
leadingAction:
|
|
2856
|
+
leadingAction: g,
|
|
2850
2857
|
siesaLogo: i,
|
|
2851
|
-
showBusinessLogo:
|
|
2852
|
-
showSiesaLogoLeading:
|
|
2853
|
-
showSiesaLogoTrailing:
|
|
2854
|
-
onNavigationClick:
|
|
2855
|
-
onSearchClick:
|
|
2856
|
-
onCartClick:
|
|
2857
|
-
onNotificationsClick:
|
|
2858
|
+
showBusinessLogo: m = !1,
|
|
2859
|
+
showSiesaLogoLeading: p = !0,
|
|
2860
|
+
showSiesaLogoTrailing: f = !1,
|
|
2861
|
+
onNavigationClick: u,
|
|
2862
|
+
onSearchClick: k,
|
|
2863
|
+
onCartClick: x,
|
|
2864
|
+
onNotificationsClick: h
|
|
2858
2865
|
}) => {
|
|
2859
|
-
const
|
|
2866
|
+
const C = `
|
|
2860
2867
|
box-border
|
|
2861
2868
|
flex
|
|
2862
2869
|
flex-col
|
|
@@ -2880,7 +2887,7 @@ const je = () => /* @__PURE__ */ e(
|
|
|
2880
2887
|
dark:focus:ring-offset-dark-bg-primary
|
|
2881
2888
|
transition-all
|
|
2882
2889
|
duration-150
|
|
2883
|
-
`,
|
|
2890
|
+
`, N = `
|
|
2884
2891
|
bg-primary-custom-600
|
|
2885
2892
|
text-primary-inverse-content
|
|
2886
2893
|
border
|
|
@@ -2910,29 +2917,29 @@ const je = () => /* @__PURE__ */ e(
|
|
|
2910
2917
|
shrink-0
|
|
2911
2918
|
transition-all
|
|
2912
2919
|
duration-150
|
|
2913
|
-
`,
|
|
2914
|
-
if (
|
|
2915
|
-
const
|
|
2916
|
-
return
|
|
2920
|
+
`, y = d === "mobile", w = d === "desktop", $ = d === "tablet", B = d === "responsive", v = () => {
|
|
2921
|
+
if (y) return null;
|
|
2922
|
+
const L = /* @__PURE__ */ e("div", { className: "overflow-hidden relative shrink-0 w-4 h-4", children: /* @__PURE__ */ e(Oe, {}) });
|
|
2923
|
+
return w || $ ? /* @__PURE__ */ e(
|
|
2917
2924
|
"button",
|
|
2918
2925
|
{
|
|
2919
|
-
className:
|
|
2926
|
+
className: N,
|
|
2920
2927
|
"aria-label": "Volver",
|
|
2921
|
-
onClick:
|
|
2922
|
-
children:
|
|
2928
|
+
onClick: u,
|
|
2929
|
+
children: L
|
|
2923
2930
|
}
|
|
2924
2931
|
) : /* @__PURE__ */ e(
|
|
2925
2932
|
"button",
|
|
2926
2933
|
{
|
|
2927
|
-
className: `hidden md:flex ${
|
|
2934
|
+
className: `hidden md:flex ${N}`,
|
|
2928
2935
|
"aria-label": "Volver",
|
|
2929
|
-
onClick:
|
|
2930
|
-
children:
|
|
2936
|
+
onClick: u,
|
|
2937
|
+
children: L
|
|
2931
2938
|
}
|
|
2932
2939
|
);
|
|
2933
|
-
},
|
|
2934
|
-
if (
|
|
2935
|
-
const
|
|
2940
|
+
}, j = () => {
|
|
2941
|
+
if (y || !m) return null;
|
|
2942
|
+
const L = /* @__PURE__ */ e(
|
|
2936
2943
|
"img",
|
|
2937
2944
|
{
|
|
2938
2945
|
src: "/,Business Logo.png",
|
|
@@ -2940,16 +2947,16 @@ const je = () => /* @__PURE__ */ e(
|
|
|
2940
2947
|
className: "w-full h-full object-contain"
|
|
2941
2948
|
}
|
|
2942
2949
|
);
|
|
2943
|
-
return
|
|
2944
|
-
},
|
|
2945
|
-
const
|
|
2950
|
+
return w ? /* @__PURE__ */ e("div", { className: "overflow-hidden relative shrink-0 w-[168px] h-[30px]", children: L }) : $ ? /* @__PURE__ */ e("div", { className: "overflow-hidden relative shrink-0 w-[140px] h-[25px]", children: L }) : /* @__PURE__ */ e("div", { className: "hidden md:block overflow-hidden relative shrink-0 w-[140px] lg:w-[168px] h-[25px] lg:h-[30px]", children: L });
|
|
2951
|
+
}, R = () => {
|
|
2952
|
+
const L = /* @__PURE__ */ e(
|
|
2946
2953
|
"img",
|
|
2947
2954
|
{
|
|
2948
2955
|
src: "/.Siesa Logo.png",
|
|
2949
2956
|
alt: "Siesa",
|
|
2950
2957
|
className: "w-full h-full object-contain"
|
|
2951
2958
|
}
|
|
2952
|
-
),
|
|
2959
|
+
), W = /* @__PURE__ */ e(
|
|
2953
2960
|
"img",
|
|
2954
2961
|
{
|
|
2955
2962
|
src: "/siesa_logo_mobile.png",
|
|
@@ -2957,16 +2964,16 @@ const je = () => /* @__PURE__ */ e(
|
|
|
2957
2964
|
className: "w-full h-full object-contain"
|
|
2958
2965
|
}
|
|
2959
2966
|
);
|
|
2960
|
-
return
|
|
2961
|
-
/* @__PURE__ */ e("div", { className: "md:hidden overflow-hidden relative shrink-0 w-[30px] h-[30px]", children:
|
|
2962
|
-
|
|
2963
|
-
/* @__PURE__ */ e("div", { className: "hidden md:block lg:hidden overflow-hidden relative shrink-0 w-[100px] h-[25px]", children:
|
|
2964
|
-
/* @__PURE__ */ e("div", { className: "hidden lg:block overflow-hidden relative shrink-0 w-[120px] h-[30px]", children:
|
|
2967
|
+
return y ? /* @__PURE__ */ e("div", { className: "overflow-hidden relative shrink-0 w-[30px] h-[30px]", children: W }) : p ? w ? /* @__PURE__ */ e("div", { className: "overflow-hidden relative shrink-0 w-[120px] h-[30px]", children: L }) : $ ? /* @__PURE__ */ e("div", { className: "overflow-hidden relative shrink-0 w-[100px] h-[25px]", children: L }) : /* @__PURE__ */ l(z, { children: [
|
|
2968
|
+
/* @__PURE__ */ e("div", { className: "md:hidden overflow-hidden relative shrink-0 w-[30px] h-[30px]", children: W }),
|
|
2969
|
+
p && /* @__PURE__ */ l(z, { children: [
|
|
2970
|
+
/* @__PURE__ */ e("div", { className: "hidden md:block lg:hidden overflow-hidden relative shrink-0 w-[100px] h-[25px]", children: L }),
|
|
2971
|
+
/* @__PURE__ */ e("div", { className: "hidden lg:block overflow-hidden relative shrink-0 w-[120px] h-[30px]", children: L })
|
|
2965
2972
|
] })
|
|
2966
2973
|
] }) : null;
|
|
2967
|
-
},
|
|
2968
|
-
if (!
|
|
2969
|
-
const
|
|
2974
|
+
}, T = () => {
|
|
2975
|
+
if (!f || y) return null;
|
|
2976
|
+
const L = /* @__PURE__ */ e(
|
|
2970
2977
|
"img",
|
|
2971
2978
|
{
|
|
2972
2979
|
src: "/.Siesa Logo.png",
|
|
@@ -2974,34 +2981,34 @@ const je = () => /* @__PURE__ */ e(
|
|
|
2974
2981
|
className: "w-full h-full object-contain"
|
|
2975
2982
|
}
|
|
2976
2983
|
);
|
|
2977
|
-
return
|
|
2978
|
-
/* @__PURE__ */ e("div", { className: "hidden md:block lg:hidden overflow-hidden relative shrink-0 w-[100px] h-[25px]", children:
|
|
2979
|
-
/* @__PURE__ */ e("div", { className: "hidden lg:block overflow-hidden relative shrink-0 w-[120px] h-[30px]", children:
|
|
2984
|
+
return w ? /* @__PURE__ */ e("div", { className: "overflow-hidden relative shrink-0 w-[120px] h-[30px]", children: L }) : $ ? /* @__PURE__ */ e("div", { className: "overflow-hidden relative shrink-0 w-[100px] h-[25px]", children: L }) : /* @__PURE__ */ l(z, { children: [
|
|
2985
|
+
/* @__PURE__ */ e("div", { className: "hidden md:block lg:hidden overflow-hidden relative shrink-0 w-[100px] h-[25px]", children: L }),
|
|
2986
|
+
/* @__PURE__ */ e("div", { className: "hidden lg:block overflow-hidden relative shrink-0 w-[120px] h-[30px]", children: L })
|
|
2980
2987
|
] });
|
|
2981
|
-
}, I = ({ responsive:
|
|
2982
|
-
const
|
|
2983
|
-
return
|
|
2984
|
-
},
|
|
2985
|
-
if (
|
|
2986
|
-
const
|
|
2987
|
-
return
|
|
2988
|
-
},
|
|
2989
|
-
|
|
2988
|
+
}, I = ({ responsive: L = !0 }) => {
|
|
2989
|
+
const W = /* @__PURE__ */ e("div", { className: "grow shrink-0 w-px min-h-px bg-border-primary dark:bg-dark-border-primary" });
|
|
2990
|
+
return y ? null : w || $ ? /* @__PURE__ */ e("div", { className: "flex flex-col gap-2 h-8 items-start px-0 py-1 relative shrink-0", children: W }) : L ? /* @__PURE__ */ e("div", { className: "hidden md:flex flex-col gap-2 h-8 items-start px-0 py-1 relative shrink-0", children: W }) : null;
|
|
2991
|
+
}, D = () => {
|
|
2992
|
+
if (y || !a) return null;
|
|
2993
|
+
const L = /* @__PURE__ */ e("p", { className: "font-bold leading-7 text-xl text-content-primary dark:text-dark-content-primary tracking-[-0.5px] whitespace-nowrap", children: a });
|
|
2994
|
+
return w || $ ? L : /* @__PURE__ */ e("p", { className: "hidden md:block font-bold leading-7 text-xl text-content-primary dark:text-dark-content-primary tracking-[-0.5px] whitespace-nowrap", children: a });
|
|
2995
|
+
}, F = () => o ? y ? /* @__PURE__ */ e(
|
|
2996
|
+
K,
|
|
2990
2997
|
{
|
|
2991
2998
|
color: "yellow",
|
|
2992
2999
|
leftIcon: /* @__PURE__ */ e(X, {}),
|
|
2993
3000
|
label: "Pruebas"
|
|
2994
3001
|
}
|
|
2995
|
-
) :
|
|
2996
|
-
|
|
3002
|
+
) : w || $ ? /* @__PURE__ */ e(
|
|
3003
|
+
K,
|
|
2997
3004
|
{
|
|
2998
3005
|
color: "yellow",
|
|
2999
3006
|
leftIcon: /* @__PURE__ */ e(X, {}),
|
|
3000
3007
|
label: o
|
|
3001
3008
|
}
|
|
3002
|
-
) : /* @__PURE__ */ l(
|
|
3009
|
+
) : /* @__PURE__ */ l(z, { children: [
|
|
3003
3010
|
/* @__PURE__ */ e("div", { className: "md:hidden", children: /* @__PURE__ */ e(
|
|
3004
|
-
|
|
3011
|
+
K,
|
|
3005
3012
|
{
|
|
3006
3013
|
color: "yellow",
|
|
3007
3014
|
leftIcon: /* @__PURE__ */ e(X, {}),
|
|
@@ -3009,54 +3016,54 @@ const je = () => /* @__PURE__ */ e(
|
|
|
3009
3016
|
}
|
|
3010
3017
|
) }),
|
|
3011
3018
|
/* @__PURE__ */ e("div", { className: "hidden md:block", children: /* @__PURE__ */ e(
|
|
3012
|
-
|
|
3019
|
+
K,
|
|
3013
3020
|
{
|
|
3014
3021
|
color: "yellow",
|
|
3015
3022
|
leftIcon: /* @__PURE__ */ e(X, {}),
|
|
3016
3023
|
label: o
|
|
3017
3024
|
}
|
|
3018
3025
|
) })
|
|
3019
|
-
] }) : null,
|
|
3026
|
+
] }) : null, _ = () => b ? null : y ? /* @__PURE__ */ e(
|
|
3020
3027
|
"button",
|
|
3021
3028
|
{
|
|
3022
|
-
className:
|
|
3029
|
+
className: C,
|
|
3023
3030
|
"aria-label": "Buscar",
|
|
3024
|
-
onClick:
|
|
3031
|
+
onClick: k,
|
|
3025
3032
|
children: /* @__PURE__ */ e("div", { className: "overflow-hidden relative shrink-0 w-4 h-4", children: /* @__PURE__ */ e(re, {}) })
|
|
3026
3033
|
}
|
|
3027
3034
|
) : B ? /* @__PURE__ */ e(
|
|
3028
3035
|
"button",
|
|
3029
3036
|
{
|
|
3030
|
-
className: `md:hidden ${
|
|
3037
|
+
className: `md:hidden ${C}`,
|
|
3031
3038
|
"aria-label": "Buscar",
|
|
3032
|
-
onClick:
|
|
3039
|
+
onClick: k,
|
|
3033
3040
|
children: /* @__PURE__ */ e("div", { className: "overflow-hidden relative shrink-0 w-4 h-4", children: /* @__PURE__ */ e(re, {}) })
|
|
3034
3041
|
}
|
|
3035
|
-
) : null,
|
|
3042
|
+
) : null, S = () => b ? null : /* @__PURE__ */ l("div", { className: "relative", children: [
|
|
3036
3043
|
/* @__PURE__ */ e(
|
|
3037
3044
|
"button",
|
|
3038
3045
|
{
|
|
3039
|
-
className:
|
|
3046
|
+
className: C,
|
|
3040
3047
|
"aria-label": "Carrito de compras",
|
|
3041
|
-
onClick:
|
|
3042
|
-
children: /* @__PURE__ */ e("div", { className: "overflow-hidden relative shrink-0 w-4 h-4", children: /* @__PURE__ */ e(
|
|
3048
|
+
onClick: x,
|
|
3049
|
+
children: /* @__PURE__ */ e("div", { className: "overflow-hidden relative shrink-0 w-4 h-4", children: /* @__PURE__ */ e(We, {}) })
|
|
3043
3050
|
}
|
|
3044
3051
|
),
|
|
3045
3052
|
s?.cart !== void 0 && s.cart > 0 && /* @__PURE__ */ e("div", { className: "absolute bg-error-content dark:bg-error-content flex flex-col gap-2.5 h-4 items-center justify-center left-[calc(50%+8px)] px-1 py-0 rounded-full top-[calc(50%-8px)] -translate-x-1/2 -translate-y-1/2 pointer-events-none min-w-[16px]", children: /* @__PURE__ */ e("p", { className: "font-bold leading-3 text-[10px] text-white text-center whitespace-nowrap", children: s.cart > 99 ? "+99" : s.cart }) })
|
|
3046
|
-
] }),
|
|
3053
|
+
] }), Z = () => b ? null : /* @__PURE__ */ l("div", { className: "relative", children: [
|
|
3047
3054
|
/* @__PURE__ */ e(
|
|
3048
3055
|
"button",
|
|
3049
3056
|
{
|
|
3050
|
-
className:
|
|
3057
|
+
className: C,
|
|
3051
3058
|
"aria-label": "Notificaciones",
|
|
3052
|
-
onClick:
|
|
3059
|
+
onClick: h,
|
|
3053
3060
|
children: /* @__PURE__ */ e("div", { className: "overflow-hidden relative shrink-0 w-4 h-4", children: /* @__PURE__ */ e(Fe, {}) })
|
|
3054
3061
|
}
|
|
3055
3062
|
),
|
|
3056
3063
|
s?.bell && /* @__PURE__ */ e("div", { className: "absolute w-2 h-2 bg-error-content dark:bg-error-content rounded-full left-[calc(50%+4px)] top-[calc(50%-8px)] -translate-x-1/2 pointer-events-none" })
|
|
3057
|
-
] }),
|
|
3064
|
+
] }), V = () => {
|
|
3058
3065
|
if (!r) return null;
|
|
3059
|
-
const
|
|
3066
|
+
const L = `
|
|
3060
3067
|
box-border
|
|
3061
3068
|
flex
|
|
3062
3069
|
items-center
|
|
@@ -3079,11 +3086,11 @@ const je = () => /* @__PURE__ */ e(
|
|
|
3079
3086
|
transition-all
|
|
3080
3087
|
duration-150
|
|
3081
3088
|
`;
|
|
3082
|
-
if (
|
|
3089
|
+
if (y)
|
|
3083
3090
|
return /* @__PURE__ */ e(
|
|
3084
3091
|
"button",
|
|
3085
3092
|
{
|
|
3086
|
-
className:
|
|
3093
|
+
className: L,
|
|
3087
3094
|
onClick: r.onMenuClick,
|
|
3088
3095
|
"aria-label": "Menú de usuario",
|
|
3089
3096
|
children: /* @__PURE__ */ e("div", { className: "relative rounded-full shrink-0 w-8 h-8", children: /* @__PURE__ */ e(
|
|
@@ -3096,10 +3103,10 @@ const je = () => /* @__PURE__ */ e(
|
|
|
3096
3103
|
) })
|
|
3097
3104
|
}
|
|
3098
3105
|
);
|
|
3099
|
-
const
|
|
3106
|
+
const W = () => /* @__PURE__ */ e(
|
|
3100
3107
|
"button",
|
|
3101
3108
|
{
|
|
3102
|
-
className:
|
|
3109
|
+
className: L,
|
|
3103
3110
|
onClick: r.onMenuClick,
|
|
3104
3111
|
"aria-label": "Menú de usuario",
|
|
3105
3112
|
children: /* @__PURE__ */ l("div", { className: "box-border flex gap-3 items-center justify-center overflow-hidden px-3 py-2 relative rounded-lg shrink-0", children: [
|
|
@@ -3121,11 +3128,11 @@ const je = () => /* @__PURE__ */ e(
|
|
|
3121
3128
|
] })
|
|
3122
3129
|
}
|
|
3123
3130
|
);
|
|
3124
|
-
return
|
|
3131
|
+
return w || $ ? W() : /* @__PURE__ */ l(z, { children: [
|
|
3125
3132
|
/* @__PURE__ */ e(
|
|
3126
3133
|
"button",
|
|
3127
3134
|
{
|
|
3128
|
-
className: `md:hidden ${
|
|
3135
|
+
className: `md:hidden ${L}`,
|
|
3129
3136
|
onClick: r.onMenuClick,
|
|
3130
3137
|
"aria-label": "Menú de usuario",
|
|
3131
3138
|
children: /* @__PURE__ */ e("div", { className: "relative rounded-full shrink-0 w-8 h-8", children: /* @__PURE__ */ e(
|
|
@@ -3141,7 +3148,7 @@ const je = () => /* @__PURE__ */ e(
|
|
|
3141
3148
|
/* @__PURE__ */ e(
|
|
3142
3149
|
"button",
|
|
3143
3150
|
{
|
|
3144
|
-
className: `hidden md:flex ${
|
|
3151
|
+
className: `hidden md:flex ${L}`,
|
|
3145
3152
|
onClick: r.onMenuClick,
|
|
3146
3153
|
"aria-label": "Menú de usuario",
|
|
3147
3154
|
children: /* @__PURE__ */ l("div", { className: "box-border flex gap-3 items-center justify-center overflow-hidden px-3 py-2 relative rounded-lg shrink-0", children: [
|
|
@@ -3183,26 +3190,26 @@ const je = () => /* @__PURE__ */ e(
|
|
|
3183
3190
|
}[d], c].join(" ").replace(/\s+/g, " ").trim();
|
|
3184
3191
|
return /* @__PURE__ */ l("nav", { className: Q, children: [
|
|
3185
3192
|
/* @__PURE__ */ l("div", { className: "flex gap-4 items-center relative shrink-0", children: [
|
|
3186
|
-
!
|
|
3187
|
-
t || /* @__PURE__ */ e(
|
|
3188
|
-
|
|
3189
|
-
i || /* @__PURE__ */ e(
|
|
3190
|
-
a &&
|
|
3191
|
-
/* @__PURE__ */ e(
|
|
3193
|
+
!y && (g || /* @__PURE__ */ e(v, {})),
|
|
3194
|
+
t || /* @__PURE__ */ e(j, {}),
|
|
3195
|
+
m && p && !y && /* @__PURE__ */ e(I, {}),
|
|
3196
|
+
i || /* @__PURE__ */ e(R, {}),
|
|
3197
|
+
a && p && !y && /* @__PURE__ */ e(I, {}),
|
|
3198
|
+
/* @__PURE__ */ e(D, {})
|
|
3192
3199
|
] }),
|
|
3193
3200
|
/* @__PURE__ */ l("div", { className: "flex gap-4 items-center justify-end grow min-h-px min-w-px relative shrink-0", children: [
|
|
3194
|
-
/* @__PURE__ */ e(
|
|
3195
|
-
/* @__PURE__ */ e(
|
|
3196
|
-
/* @__PURE__ */ e(
|
|
3197
|
-
/* @__PURE__ */ e(
|
|
3201
|
+
/* @__PURE__ */ e(F, {}),
|
|
3202
|
+
/* @__PURE__ */ e(_, {}),
|
|
3203
|
+
/* @__PURE__ */ e(S, {}),
|
|
3204
|
+
/* @__PURE__ */ e(Z, {}),
|
|
3198
3205
|
r && !b && /* @__PURE__ */ e(I, {}),
|
|
3199
|
-
/* @__PURE__ */ e(
|
|
3200
|
-
|
|
3201
|
-
/* @__PURE__ */ e(
|
|
3206
|
+
/* @__PURE__ */ e(V, {}),
|
|
3207
|
+
f && r && !y && /* @__PURE__ */ e(I, {}),
|
|
3208
|
+
/* @__PURE__ */ e(T, {}),
|
|
3202
3209
|
n && /* @__PURE__ */ e("div", { className: "flex gap-2 items-center", children: n })
|
|
3203
3210
|
] })
|
|
3204
3211
|
] });
|
|
3205
|
-
},
|
|
3212
|
+
}, pr = ({
|
|
3206
3213
|
items: t,
|
|
3207
3214
|
activeItemId: a,
|
|
3208
3215
|
onItemClick: o,
|
|
@@ -3213,7 +3220,7 @@ const je = () => /* @__PURE__ */ e(
|
|
|
3213
3220
|
const s = (i) => {
|
|
3214
3221
|
i.disabled || (i.onClick && i.onClick(i.id), o && o(i.id));
|
|
3215
3222
|
}, c = (i) => {
|
|
3216
|
-
const
|
|
3223
|
+
const m = i.active || i.id === a, p = `
|
|
3217
3224
|
flex-1
|
|
3218
3225
|
flex
|
|
3219
3226
|
flex-col
|
|
@@ -3226,7 +3233,7 @@ const je = () => /* @__PURE__ */ e(
|
|
|
3226
3233
|
transition-all
|
|
3227
3234
|
duration-150
|
|
3228
3235
|
${i.disabled ? "opacity-50 cursor-not-allowed pointer-events-none" : ""}
|
|
3229
|
-
`.replace(/\s+/g, " ").trim(),
|
|
3236
|
+
`.replace(/\s+/g, " ").trim(), f = `
|
|
3230
3237
|
flex
|
|
3231
3238
|
items-center
|
|
3232
3239
|
justify-center
|
|
@@ -3236,8 +3243,8 @@ const je = () => /* @__PURE__ */ e(
|
|
|
3236
3243
|
overflow-hidden
|
|
3237
3244
|
transition-all
|
|
3238
3245
|
duration-150
|
|
3239
|
-
${
|
|
3240
|
-
`.replace(/\s+/g, " ").trim(),
|
|
3246
|
+
${m ? "bg-primary-custom-100 dark:bg-primary-custom-100" : "bg-transparent hover:bg-hover-overlay dark:hover:bg-hover-overlay-dark"}
|
|
3247
|
+
`.replace(/\s+/g, " ").trim(), u = `
|
|
3241
3248
|
font-['SiesaBT:Bold',sans-serif]
|
|
3242
3249
|
text-[10px]
|
|
3243
3250
|
leading-[12px]
|
|
@@ -3249,7 +3256,7 @@ const je = () => /* @__PURE__ */ e(
|
|
|
3249
3256
|
dark:text-dark-content-primary
|
|
3250
3257
|
transition-colors
|
|
3251
3258
|
duration-150
|
|
3252
|
-
`.replace(/\s+/g, " ").trim(),
|
|
3259
|
+
`.replace(/\s+/g, " ").trim(), k = `
|
|
3253
3260
|
w-4
|
|
3254
3261
|
h-4
|
|
3255
3262
|
shrink-0
|
|
@@ -3262,14 +3269,14 @@ const je = () => /* @__PURE__ */ e(
|
|
|
3262
3269
|
"button",
|
|
3263
3270
|
{
|
|
3264
3271
|
type: "button",
|
|
3265
|
-
className:
|
|
3272
|
+
className: p,
|
|
3266
3273
|
onClick: () => s(i),
|
|
3267
3274
|
disabled: i.disabled,
|
|
3268
3275
|
"aria-label": i.ariaLabel || i.label,
|
|
3269
|
-
"aria-current":
|
|
3276
|
+
"aria-current": m ? "page" : void 0,
|
|
3270
3277
|
children: [
|
|
3271
|
-
/* @__PURE__ */ e("div", { className:
|
|
3272
|
-
/* @__PURE__ */ e("span", { className:
|
|
3278
|
+
/* @__PURE__ */ e("div", { className: f, children: /* @__PURE__ */ e("span", { className: k, children: i.icon }) }),
|
|
3279
|
+
/* @__PURE__ */ e("span", { className: u, children: i.label })
|
|
3273
3280
|
]
|
|
3274
3281
|
},
|
|
3275
3282
|
i.id
|
|
@@ -3286,7 +3293,7 @@ const je = () => /* @__PURE__ */ e(
|
|
|
3286
3293
|
items-start
|
|
3287
3294
|
justify-center
|
|
3288
3295
|
w-full
|
|
3289
|
-
`.replace(/\s+/g, " ").trim(),
|
|
3296
|
+
`.replace(/\s+/g, " ").trim(), g = `
|
|
3290
3297
|
flex-1
|
|
3291
3298
|
flex
|
|
3292
3299
|
items-start
|
|
@@ -3300,10 +3307,10 @@ const je = () => /* @__PURE__ */ e(
|
|
|
3300
3307
|
className: `${d} ${r}`.trim(),
|
|
3301
3308
|
role: "navigation",
|
|
3302
3309
|
"aria-label": n,
|
|
3303
|
-
children: /* @__PURE__ */ e("div", { className: b, children: /* @__PURE__ */ e("div", { className:
|
|
3310
|
+
children: /* @__PURE__ */ e("div", { className: b, children: /* @__PURE__ */ e("div", { className: g, children: t.map((i) => c(i)) }) })
|
|
3304
3311
|
}
|
|
3305
3312
|
);
|
|
3306
|
-
},
|
|
3313
|
+
}, Pe = ({ lightColor: t, darkColor: a, className: o = "" }) => /* @__PURE__ */ l(
|
|
3307
3314
|
"svg",
|
|
3308
3315
|
{
|
|
3309
3316
|
className: `w-4 h-4 shrink-0 ${o}`.trim(),
|
|
@@ -3333,7 +3340,7 @@ const je = () => /* @__PURE__ */ e(
|
|
|
3333
3340
|
)
|
|
3334
3341
|
]
|
|
3335
3342
|
}
|
|
3336
|
-
),
|
|
3343
|
+
), gr = ({
|
|
3337
3344
|
status: t = "available",
|
|
3338
3345
|
className: a = ""
|
|
3339
3346
|
}) => {
|
|
@@ -3379,7 +3386,7 @@ const je = () => /* @__PURE__ */ e(
|
|
|
3379
3386
|
role: "presentation",
|
|
3380
3387
|
"aria-label": `Estado: ${r.label}`,
|
|
3381
3388
|
children: [
|
|
3382
|
-
/* @__PURE__ */ e(
|
|
3389
|
+
/* @__PURE__ */ e(Pe, { lightColor: r.lightColor, darkColor: r.darkColor }),
|
|
3383
3390
|
/* @__PURE__ */ e(
|
|
3384
3391
|
"span",
|
|
3385
3392
|
{
|
|
@@ -3397,7 +3404,7 @@ const je = () => /* @__PURE__ */ e(
|
|
|
3397
3404
|
]
|
|
3398
3405
|
}
|
|
3399
3406
|
);
|
|
3400
|
-
},
|
|
3407
|
+
}, Ue = ({ className: t = "" }) => /* @__PURE__ */ e(
|
|
3401
3408
|
"svg",
|
|
3402
3409
|
{
|
|
3403
3410
|
width: "12",
|
|
@@ -3417,7 +3424,7 @@ const je = () => /* @__PURE__ */ e(
|
|
|
3417
3424
|
}
|
|
3418
3425
|
)
|
|
3419
3426
|
}
|
|
3420
|
-
),
|
|
3427
|
+
), Ge = ({ className: t = "" }) => /* @__PURE__ */ e(
|
|
3421
3428
|
"svg",
|
|
3422
3429
|
{
|
|
3423
3430
|
width: "12",
|
|
@@ -3437,7 +3444,7 @@ const je = () => /* @__PURE__ */ e(
|
|
|
3437
3444
|
}
|
|
3438
3445
|
)
|
|
3439
3446
|
}
|
|
3440
|
-
),
|
|
3447
|
+
), Ke = ({ className: t = "" }) => /* @__PURE__ */ e(
|
|
3441
3448
|
"svg",
|
|
3442
3449
|
{
|
|
3443
3450
|
width: "12",
|
|
@@ -3457,7 +3464,7 @@ const je = () => /* @__PURE__ */ e(
|
|
|
3457
3464
|
}
|
|
3458
3465
|
)
|
|
3459
3466
|
}
|
|
3460
|
-
),
|
|
3467
|
+
), qe = ({ className: t = "" }) => /* @__PURE__ */ l(
|
|
3461
3468
|
"svg",
|
|
3462
3469
|
{
|
|
3463
3470
|
width: "12",
|
|
@@ -3486,7 +3493,7 @@ const je = () => /* @__PURE__ */ e(
|
|
|
3486
3493
|
)
|
|
3487
3494
|
]
|
|
3488
3495
|
}
|
|
3489
|
-
),
|
|
3496
|
+
), Qe = ({ className: t = "" }) => /* @__PURE__ */ e(
|
|
3490
3497
|
"svg",
|
|
3491
3498
|
{
|
|
3492
3499
|
width: "13",
|
|
@@ -3506,7 +3513,7 @@ const je = () => /* @__PURE__ */ e(
|
|
|
3506
3513
|
}
|
|
3507
3514
|
)
|
|
3508
3515
|
}
|
|
3509
|
-
),
|
|
3516
|
+
), ur = ({
|
|
3510
3517
|
locationName: t,
|
|
3511
3518
|
status: a = "available",
|
|
3512
3519
|
state: o = "enabled",
|
|
@@ -3524,7 +3531,7 @@ const je = () => /* @__PURE__ */ e(
|
|
|
3524
3531
|
badgeBg: "bg-primary-custom-100 dark:bg-blue-900/30",
|
|
3525
3532
|
badgeText: "text-primary-custom-600 dark:text-blue-400",
|
|
3526
3533
|
activedBg: "bg-primary-custom-100 dark:bg-blue-900/30",
|
|
3527
|
-
icon:
|
|
3534
|
+
icon: Ue,
|
|
3528
3535
|
badgeLabel: "Disponible"
|
|
3529
3536
|
},
|
|
3530
3537
|
occupied: {
|
|
@@ -3533,7 +3540,7 @@ const je = () => /* @__PURE__ */ e(
|
|
|
3533
3540
|
badgeBg: "bg-[#fcedc9] dark:bg-yellow-900/30",
|
|
3534
3541
|
badgeText: "text-[#af460e] dark:text-orange-400",
|
|
3535
3542
|
activedBg: "bg-[#fcedc9] dark:bg-yellow-900/30",
|
|
3536
|
-
icon:
|
|
3543
|
+
icon: Ge,
|
|
3537
3544
|
badgeLabel: "Ocupada"
|
|
3538
3545
|
},
|
|
3539
3546
|
reserved: {
|
|
@@ -3542,7 +3549,7 @@ const je = () => /* @__PURE__ */ e(
|
|
|
3542
3549
|
badgeBg: "bg-[#f3e8ff] dark:bg-purple-900/30",
|
|
3543
3550
|
badgeText: "text-[#7e22ce] dark:text-purple-400",
|
|
3544
3551
|
activedBg: "bg-[#f3e8ff] dark:bg-purple-900/30",
|
|
3545
|
-
icon:
|
|
3552
|
+
icon: Ke,
|
|
3546
3553
|
badgeLabel: "Reservada"
|
|
3547
3554
|
},
|
|
3548
3555
|
outOfService: {
|
|
@@ -3551,10 +3558,10 @@ const je = () => /* @__PURE__ */ e(
|
|
|
3551
3558
|
badgeBg: "bg-[#f4f4f5] dark:bg-zinc-800/30",
|
|
3552
3559
|
badgeText: "text-content-tertiary dark:text-zinc-400",
|
|
3553
3560
|
activedBg: "bg-[#f4f4f5] dark:bg-zinc-800/30",
|
|
3554
|
-
icon:
|
|
3561
|
+
icon: qe,
|
|
3555
3562
|
badgeLabel: "F. de Servicio"
|
|
3556
3563
|
}
|
|
3557
|
-
}[a],
|
|
3564
|
+
}[a], m = i.icon, p = o === "actived" ? i.activedBg : "bg-white dark:bg-dark-bg-primary", k = [`
|
|
3558
3565
|
flex
|
|
3559
3566
|
flex-col
|
|
3560
3567
|
items-stretch
|
|
@@ -3577,11 +3584,11 @@ const je = () => /* @__PURE__ */ e(
|
|
|
3577
3584
|
disabled:opacity-50
|
|
3578
3585
|
disabled:cursor-not-allowed
|
|
3579
3586
|
disabled:pointer-events-none
|
|
3580
|
-
`,
|
|
3587
|
+
`, p, c].join(" ").replace(/\s+/g, " ").trim(), x = r ? `${r.current}/${r.total} mesas` : null;
|
|
3581
3588
|
return /* @__PURE__ */ l(
|
|
3582
3589
|
"button",
|
|
3583
3590
|
{
|
|
3584
|
-
className:
|
|
3591
|
+
className: k,
|
|
3585
3592
|
onClick: n,
|
|
3586
3593
|
disabled: s,
|
|
3587
3594
|
"aria-label": d || `${t} - ${i.badgeLabel}`,
|
|
@@ -3600,8 +3607,8 @@ const je = () => /* @__PURE__ */ e(
|
|
|
3600
3607
|
}
|
|
3601
3608
|
),
|
|
3602
3609
|
/* @__PURE__ */ l("div", { className: "flex items-center justify-between", children: [
|
|
3603
|
-
|
|
3604
|
-
/* @__PURE__ */ e(
|
|
3610
|
+
x && /* @__PURE__ */ l("div", { className: "flex items-center gap-1", children: [
|
|
3611
|
+
/* @__PURE__ */ e(Qe, { className: i.textColor }),
|
|
3605
3612
|
/* @__PURE__ */ e(
|
|
3606
3613
|
"span",
|
|
3607
3614
|
{
|
|
@@ -3610,7 +3617,7 @@ const je = () => /* @__PURE__ */ e(
|
|
|
3610
3617
|
leading-[12px]
|
|
3611
3618
|
${i.textColor}
|
|
3612
3619
|
`.replace(/\s+/g, " ").trim(),
|
|
3613
|
-
children:
|
|
3620
|
+
children: x
|
|
3614
3621
|
}
|
|
3615
3622
|
)
|
|
3616
3623
|
] }),
|
|
@@ -3627,7 +3634,7 @@ const je = () => /* @__PURE__ */ e(
|
|
|
3627
3634
|
${i.badgeBg}
|
|
3628
3635
|
`.replace(/\s+/g, " ").trim(),
|
|
3629
3636
|
children: [
|
|
3630
|
-
/* @__PURE__ */ e(
|
|
3637
|
+
/* @__PURE__ */ e(m, { className: i.badgeText }),
|
|
3631
3638
|
/* @__PURE__ */ e(
|
|
3632
3639
|
"span",
|
|
3633
3640
|
{
|
|
@@ -3646,7 +3653,7 @@ const je = () => /* @__PURE__ */ e(
|
|
|
3646
3653
|
]
|
|
3647
3654
|
}
|
|
3648
3655
|
);
|
|
3649
|
-
},
|
|
3656
|
+
}, xr = ({
|
|
3650
3657
|
size: t = "l",
|
|
3651
3658
|
border: a = !1,
|
|
3652
3659
|
children: o,
|
|
@@ -3657,7 +3664,7 @@ const je = () => /* @__PURE__ */ e(
|
|
|
3657
3664
|
htmlType: d = "button",
|
|
3658
3665
|
...b
|
|
3659
3666
|
}) => {
|
|
3660
|
-
const
|
|
3667
|
+
const g = {
|
|
3661
3668
|
s: "w-10 h-10",
|
|
3662
3669
|
// 40x40px
|
|
3663
3670
|
m: "w-[65px] h-[65px]",
|
|
@@ -3671,7 +3678,7 @@ const je = () => /* @__PURE__ */ e(
|
|
|
3671
3678
|
// 48px Display Tiny
|
|
3672
3679
|
l: "text-5xl"
|
|
3673
3680
|
// 48px Display Tiny
|
|
3674
|
-
},
|
|
3681
|
+
}, u = [
|
|
3675
3682
|
`
|
|
3676
3683
|
inline-flex
|
|
3677
3684
|
items-center
|
|
@@ -3693,7 +3700,7 @@ const je = () => /* @__PURE__ */ e(
|
|
|
3693
3700
|
transition-all
|
|
3694
3701
|
duration-150
|
|
3695
3702
|
`,
|
|
3696
|
-
|
|
3703
|
+
g[t],
|
|
3697
3704
|
i[t],
|
|
3698
3705
|
a ? `
|
|
3699
3706
|
bg-white
|
|
@@ -3739,7 +3746,7 @@ const je = () => /* @__PURE__ */ e(
|
|
|
3739
3746
|
"button",
|
|
3740
3747
|
{
|
|
3741
3748
|
type: d,
|
|
3742
|
-
className:
|
|
3749
|
+
className: u,
|
|
3743
3750
|
disabled: r,
|
|
3744
3751
|
onClick: s,
|
|
3745
3752
|
"aria-label": c || `Número ${o}`,
|
|
@@ -3747,7 +3754,7 @@ const je = () => /* @__PURE__ */ e(
|
|
|
3747
3754
|
children: o
|
|
3748
3755
|
}
|
|
3749
3756
|
);
|
|
3750
|
-
},
|
|
3757
|
+
}, fr = ({
|
|
3751
3758
|
image: t,
|
|
3752
3759
|
label: a,
|
|
3753
3760
|
active: o = !1,
|
|
@@ -3756,7 +3763,7 @@ const je = () => /* @__PURE__ */ e(
|
|
|
3756
3763
|
className: s = "",
|
|
3757
3764
|
ariaLabel: c
|
|
3758
3765
|
}) => {
|
|
3759
|
-
const
|
|
3766
|
+
const g = [`
|
|
3760
3767
|
flex
|
|
3761
3768
|
flex-col
|
|
3762
3769
|
gap-2
|
|
@@ -3805,7 +3812,7 @@ const je = () => /* @__PURE__ */ e(
|
|
|
3805
3812
|
"button",
|
|
3806
3813
|
{
|
|
3807
3814
|
type: "button",
|
|
3808
|
-
className:
|
|
3815
|
+
className: g,
|
|
3809
3816
|
disabled: r,
|
|
3810
3817
|
onClick: n,
|
|
3811
3818
|
"aria-label": c || a,
|
|
@@ -3823,7 +3830,7 @@ const je = () => /* @__PURE__ */ e(
|
|
|
3823
3830
|
]
|
|
3824
3831
|
}
|
|
3825
3832
|
);
|
|
3826
|
-
},
|
|
3833
|
+
}, Xe = ({ className: t = "" }) => /* @__PURE__ */ e(
|
|
3827
3834
|
"svg",
|
|
3828
3835
|
{
|
|
3829
3836
|
width: "16",
|
|
@@ -3844,7 +3851,7 @@ const je = () => /* @__PURE__ */ e(
|
|
|
3844
3851
|
}
|
|
3845
3852
|
)
|
|
3846
3853
|
}
|
|
3847
|
-
),
|
|
3854
|
+
), hr = ({
|
|
3848
3855
|
image: t,
|
|
3849
3856
|
productName: a,
|
|
3850
3857
|
price: o,
|
|
@@ -3854,7 +3861,7 @@ const je = () => /* @__PURE__ */ e(
|
|
|
3854
3861
|
onAddClick: c,
|
|
3855
3862
|
onCardClick: d,
|
|
3856
3863
|
className: b = "",
|
|
3857
|
-
ariaLabel:
|
|
3864
|
+
ariaLabel: g
|
|
3858
3865
|
}) => {
|
|
3859
3866
|
const i = `
|
|
3860
3867
|
flex
|
|
@@ -3871,7 +3878,7 @@ const je = () => /* @__PURE__ */ e(
|
|
|
3871
3878
|
focus:ring-offset-2
|
|
3872
3879
|
dark:focus:ring-dark-border-custom
|
|
3873
3880
|
dark:focus:ring-offset-dark-bg-primary
|
|
3874
|
-
`,
|
|
3881
|
+
`, m = s ? `
|
|
3875
3882
|
bg-white
|
|
3876
3883
|
opacity-55
|
|
3877
3884
|
cursor-not-allowed
|
|
@@ -3884,7 +3891,7 @@ const je = () => /* @__PURE__ */ e(
|
|
|
3884
3891
|
bg-white
|
|
3885
3892
|
cursor-pointer
|
|
3886
3893
|
dark:bg-dark-bg-primary
|
|
3887
|
-
`,
|
|
3894
|
+
`, p = s ? `
|
|
3888
3895
|
text-content-primary
|
|
3889
3896
|
dark:text-dark-content-primary
|
|
3890
3897
|
` : n ? `
|
|
@@ -3893,18 +3900,18 @@ const je = () => /* @__PURE__ */ e(
|
|
|
3893
3900
|
` : `
|
|
3894
3901
|
text-content-primary
|
|
3895
3902
|
dark:text-dark-content-primary
|
|
3896
|
-
`,
|
|
3897
|
-
s ||
|
|
3898
|
-
},
|
|
3899
|
-
|
|
3903
|
+
`, f = [i, m, b].join(" ").replace(/\s+/g, " ").trim(), u = (x) => {
|
|
3904
|
+
s || x.target.closest("button") || d?.(x);
|
|
3905
|
+
}, k = (x) => {
|
|
3906
|
+
x.stopPropagation(), !s && c?.(x);
|
|
3900
3907
|
};
|
|
3901
3908
|
return /* @__PURE__ */ l(
|
|
3902
3909
|
"div",
|
|
3903
3910
|
{
|
|
3904
|
-
className:
|
|
3905
|
-
onClick:
|
|
3911
|
+
className: f,
|
|
3912
|
+
onClick: u,
|
|
3906
3913
|
role: "article",
|
|
3907
|
-
"aria-label":
|
|
3914
|
+
"aria-label": g || `${a} - ${o}`,
|
|
3908
3915
|
tabIndex: s ? -1 : 0,
|
|
3909
3916
|
children: [
|
|
3910
3917
|
/* @__PURE__ */ l("div", { className: "flex flex-col gap-3 w-full", children: [
|
|
@@ -3916,7 +3923,7 @@ const je = () => /* @__PURE__ */ e(
|
|
|
3916
3923
|
className: "w-full h-full object-cover"
|
|
3917
3924
|
}
|
|
3918
3925
|
) }),
|
|
3919
|
-
/* @__PURE__ */ l("div", { className: `flex flex-col w-full font-bold ${
|
|
3926
|
+
/* @__PURE__ */ l("div", { className: `flex flex-col w-full font-bold ${p}`.trim().replace(/\s+/g, " "), children: [
|
|
3920
3927
|
/* @__PURE__ */ e("div", { className: "text-sm leading-5", children: a }),
|
|
3921
3928
|
/* @__PURE__ */ e("div", { className: "text-2xl leading-8 tracking-tighter", children: o })
|
|
3922
3929
|
] })
|
|
@@ -3926,8 +3933,8 @@ const je = () => /* @__PURE__ */ e(
|
|
|
3926
3933
|
{
|
|
3927
3934
|
type: "default",
|
|
3928
3935
|
size: "sm",
|
|
3929
|
-
leftIcon: /* @__PURE__ */ e(
|
|
3930
|
-
onClick:
|
|
3936
|
+
leftIcon: /* @__PURE__ */ e(Xe, { className: "w-4 h-4" }),
|
|
3937
|
+
onClick: k,
|
|
3931
3938
|
disabled: s,
|
|
3932
3939
|
fullWidth: !0,
|
|
3933
3940
|
ariaLabel: `${r} ${a}`,
|
|
@@ -3937,7 +3944,7 @@ const je = () => /* @__PURE__ */ e(
|
|
|
3937
3944
|
]
|
|
3938
3945
|
}
|
|
3939
3946
|
);
|
|
3940
|
-
},
|
|
3947
|
+
}, Je = ({ className: t = "" }) => /* @__PURE__ */ e(
|
|
3941
3948
|
"svg",
|
|
3942
3949
|
{
|
|
3943
3950
|
className: t,
|
|
@@ -3954,7 +3961,7 @@ const je = () => /* @__PURE__ */ e(
|
|
|
3954
3961
|
}
|
|
3955
3962
|
)
|
|
3956
3963
|
}
|
|
3957
|
-
),
|
|
3964
|
+
), Ye = ({
|
|
3958
3965
|
categoryLabel: t,
|
|
3959
3966
|
categoryColor: a = "lime",
|
|
3960
3967
|
productRef: o,
|
|
@@ -3964,14 +3971,14 @@ const je = () => /* @__PURE__ */ e(
|
|
|
3964
3971
|
showDescription: c = !0,
|
|
3965
3972
|
quantity: d = 0,
|
|
3966
3973
|
minQuantity: b = 0,
|
|
3967
|
-
maxQuantity:
|
|
3974
|
+
maxQuantity: g,
|
|
3968
3975
|
onQuantityChange: i,
|
|
3969
|
-
onDelete:
|
|
3970
|
-
disabled:
|
|
3971
|
-
className:
|
|
3972
|
-
deleteIcon:
|
|
3976
|
+
onDelete: m,
|
|
3977
|
+
disabled: p = !1,
|
|
3978
|
+
className: f = "",
|
|
3979
|
+
deleteIcon: u
|
|
3973
3980
|
}) => {
|
|
3974
|
-
const
|
|
3981
|
+
const k = {
|
|
3975
3982
|
lime: {
|
|
3976
3983
|
bg: "bg-lime-100 dark:bg-lime-900/40",
|
|
3977
3984
|
text: "text-lime-700 dark:text-lime-300"
|
|
@@ -4048,10 +4055,10 @@ const je = () => /* @__PURE__ */ e(
|
|
|
4048
4055
|
bg: "bg-primary-custom-100 dark:bg-primary-custom-600/30",
|
|
4049
4056
|
text: "text-primary-custom-600 dark:text-primary-custom-300"
|
|
4050
4057
|
}
|
|
4051
|
-
},
|
|
4052
|
-
!
|
|
4053
|
-
},
|
|
4054
|
-
!
|
|
4058
|
+
}, x = k[a] || k.lime, h = (N) => {
|
|
4059
|
+
!p && i && i(N);
|
|
4060
|
+
}, C = () => {
|
|
4061
|
+
!p && m && m();
|
|
4055
4062
|
};
|
|
4056
4063
|
return /* @__PURE__ */ l(
|
|
4057
4064
|
"div",
|
|
@@ -4061,8 +4068,8 @@ const je = () => /* @__PURE__ */ e(
|
|
|
4061
4068
|
flex-col
|
|
4062
4069
|
gap-2
|
|
4063
4070
|
w-full
|
|
4064
|
-
${
|
|
4065
|
-
${
|
|
4071
|
+
${p ? "opacity-50 pointer-events-none" : ""}
|
|
4072
|
+
${f}
|
|
4066
4073
|
`.trim().replace(/\s+/g, " "),
|
|
4067
4074
|
"data-component": "POSProductSidebarItems",
|
|
4068
4075
|
children: [
|
|
@@ -4081,7 +4088,7 @@ const je = () => /* @__PURE__ */ e(
|
|
|
4081
4088
|
rounded-md
|
|
4082
4089
|
transition-colors
|
|
4083
4090
|
duration-150
|
|
4084
|
-
${
|
|
4091
|
+
${x.bg}
|
|
4085
4092
|
`.trim().replace(/\s+/g, " "),
|
|
4086
4093
|
children: /* @__PURE__ */ e(
|
|
4087
4094
|
"span",
|
|
@@ -4092,7 +4099,7 @@ const je = () => /* @__PURE__ */ e(
|
|
|
4092
4099
|
font-normal
|
|
4093
4100
|
text-center
|
|
4094
4101
|
whitespace-nowrap
|
|
4095
|
-
${
|
|
4102
|
+
${x.text}
|
|
4096
4103
|
`.trim().replace(/\s+/g, " "),
|
|
4097
4104
|
children: t
|
|
4098
4105
|
}
|
|
@@ -4120,16 +4127,16 @@ const je = () => /* @__PURE__ */ e(
|
|
|
4120
4127
|
transition-colors
|
|
4121
4128
|
duration-150
|
|
4122
4129
|
`.trim().replace(/\s+/g, " "),
|
|
4123
|
-
children: s.map((
|
|
4130
|
+
children: s.map((N, y) => /* @__PURE__ */ l(
|
|
4124
4131
|
"div",
|
|
4125
4132
|
{
|
|
4126
4133
|
className: "flex items-center gap-1 w-full",
|
|
4127
4134
|
children: [
|
|
4128
|
-
/* @__PURE__ */ e("span", { className: "flex-1 min-w-0 text-xs leading-3 font-normal text-content-primary dark:text-dark-content-primary", children:
|
|
4129
|
-
/* @__PURE__ */ e("span", { className: "text-xs leading-3 font-bold text-content-primary dark:text-dark-content-primary whitespace-nowrap text-right shrink-0", children:
|
|
4135
|
+
/* @__PURE__ */ e("span", { className: "flex-1 min-w-0 text-xs leading-3 font-normal text-content-primary dark:text-dark-content-primary", children: N.description }),
|
|
4136
|
+
/* @__PURE__ */ e("span", { className: "text-xs leading-3 font-bold text-content-primary dark:text-dark-content-primary whitespace-nowrap text-right shrink-0", children: N.price })
|
|
4130
4137
|
]
|
|
4131
4138
|
},
|
|
4132
|
-
|
|
4139
|
+
y
|
|
4133
4140
|
))
|
|
4134
4141
|
}
|
|
4135
4142
|
)
|
|
@@ -4140,17 +4147,17 @@ const je = () => /* @__PURE__ */ e(
|
|
|
4140
4147
|
{
|
|
4141
4148
|
value: d,
|
|
4142
4149
|
min: b,
|
|
4143
|
-
max:
|
|
4144
|
-
onChange:
|
|
4145
|
-
disabled:
|
|
4150
|
+
max: g,
|
|
4151
|
+
onChange: h,
|
|
4152
|
+
disabled: p
|
|
4146
4153
|
}
|
|
4147
4154
|
) }),
|
|
4148
4155
|
/* @__PURE__ */ e(
|
|
4149
4156
|
"button",
|
|
4150
4157
|
{
|
|
4151
4158
|
type: "button",
|
|
4152
|
-
onClick:
|
|
4153
|
-
disabled:
|
|
4159
|
+
onClick: C,
|
|
4160
|
+
disabled: p,
|
|
4154
4161
|
className: `
|
|
4155
4162
|
flex
|
|
4156
4163
|
items-center
|
|
@@ -4174,10 +4181,10 @@ const je = () => /* @__PURE__ */ e(
|
|
|
4174
4181
|
active:scale-95
|
|
4175
4182
|
transition-all
|
|
4176
4183
|
duration-150
|
|
4177
|
-
${
|
|
4184
|
+
${p ? "cursor-not-allowed opacity-50" : "cursor-pointer"}
|
|
4178
4185
|
`.trim().replace(/\s+/g, " "),
|
|
4179
4186
|
"aria-label": "Eliminar producto",
|
|
4180
|
-
children:
|
|
4187
|
+
children: u || /* @__PURE__ */ e(Je, { className: "w-[18px] h-[21px]" })
|
|
4181
4188
|
}
|
|
4182
4189
|
)
|
|
4183
4190
|
] })
|
|
@@ -4185,8 +4192,8 @@ const je = () => /* @__PURE__ */ e(
|
|
|
4185
4192
|
}
|
|
4186
4193
|
);
|
|
4187
4194
|
};
|
|
4188
|
-
|
|
4189
|
-
const
|
|
4195
|
+
Ye.displayName = "POSProductSidebarItems";
|
|
4196
|
+
const kr = ({
|
|
4190
4197
|
tableNumber: t,
|
|
4191
4198
|
status: a = "available",
|
|
4192
4199
|
shape: o = "square",
|
|
@@ -4196,7 +4203,7 @@ const hr = ({
|
|
|
4196
4203
|
onClick: c,
|
|
4197
4204
|
className: d = "",
|
|
4198
4205
|
disabled: b = !1,
|
|
4199
|
-
children:
|
|
4206
|
+
children: g
|
|
4200
4207
|
}) => {
|
|
4201
4208
|
const i = {
|
|
4202
4209
|
available: {
|
|
@@ -4268,7 +4275,7 @@ const hr = ({
|
|
|
4268
4275
|
focusRing: "focus:ring-[#c084fc]",
|
|
4269
4276
|
focusRingDark: "dark:focus:ring-[#7e22ce]"
|
|
4270
4277
|
}
|
|
4271
|
-
},
|
|
4278
|
+
}, m = {
|
|
4272
4279
|
square: {
|
|
4273
4280
|
container: "rounded-[4px]",
|
|
4274
4281
|
table: "w-[64px] h-[64px] rounded-[4px]"
|
|
@@ -4285,11 +4292,11 @@ const hr = ({
|
|
|
4285
4292
|
container: "rounded-3xl",
|
|
4286
4293
|
table: "w-[80px] h-[64px] rounded-3xl"
|
|
4287
4294
|
}
|
|
4288
|
-
},
|
|
4295
|
+
}, p = ({ rotation: x }) => /* @__PURE__ */ l(
|
|
4289
4296
|
"div",
|
|
4290
4297
|
{
|
|
4291
4298
|
className: "w-[28px] h-[22px]",
|
|
4292
|
-
style: { transform: `rotate(${
|
|
4299
|
+
style: { transform: `rotate(${x}deg)` },
|
|
4293
4300
|
"aria-hidden": "true",
|
|
4294
4301
|
children: [
|
|
4295
4302
|
/* @__PURE__ */ e(
|
|
@@ -4324,11 +4331,11 @@ const hr = ({
|
|
|
4324
4331
|
)
|
|
4325
4332
|
]
|
|
4326
4333
|
}
|
|
4327
|
-
),
|
|
4334
|
+
), f = () => {
|
|
4328
4335
|
!b && c && c();
|
|
4329
|
-
},
|
|
4330
|
-
(
|
|
4331
|
-
},
|
|
4336
|
+
}, u = (x) => {
|
|
4337
|
+
(x.key === "Enter" || x.key === " ") && !b && c && (x.preventDefault(), c());
|
|
4338
|
+
}, k = [
|
|
4332
4339
|
// Dimensiones exactas del container
|
|
4333
4340
|
"w-[160px]",
|
|
4334
4341
|
"h-[160px]",
|
|
@@ -4371,35 +4378,35 @@ const hr = ({
|
|
|
4371
4378
|
return /* @__PURE__ */ l(
|
|
4372
4379
|
"button",
|
|
4373
4380
|
{
|
|
4374
|
-
className:
|
|
4375
|
-
onClick:
|
|
4376
|
-
onKeyDown:
|
|
4381
|
+
className: k,
|
|
4382
|
+
onClick: f,
|
|
4383
|
+
onKeyDown: u,
|
|
4377
4384
|
disabled: b,
|
|
4378
4385
|
type: "button",
|
|
4379
4386
|
"aria-label": `Mesa ${t} - ${a === "available" ? "Disponible" : a === "busy" ? "Ocupada" : "Reservada"}`,
|
|
4380
4387
|
children: [
|
|
4381
4388
|
/* @__PURE__ */ l("div", { className: "flex flex-col gap-[4px] items-center justify-center w-[134px] h-[134px] shrink-0", children: [
|
|
4382
4389
|
n && (r === 2 || r === 4 || r === 6 || r === 8) && /* @__PURE__ */ l("div", { className: "flex gap-[4px] items-center justify-center shrink-0", children: [
|
|
4383
|
-
r >= 6 && /* @__PURE__ */ l(
|
|
4384
|
-
/* @__PURE__ */ e(
|
|
4385
|
-
/* @__PURE__ */ e(
|
|
4390
|
+
r >= 6 && /* @__PURE__ */ l(z, { children: [
|
|
4391
|
+
/* @__PURE__ */ e(p, { rotation: 0 }),
|
|
4392
|
+
/* @__PURE__ */ e(p, { rotation: 0 })
|
|
4386
4393
|
] }),
|
|
4387
|
-
r === 2 && /* @__PURE__ */ e(
|
|
4388
|
-
r === 4 && /* @__PURE__ */ e(
|
|
4394
|
+
r === 2 && /* @__PURE__ */ e(p, { rotation: 0 }),
|
|
4395
|
+
r === 4 && /* @__PURE__ */ e(p, { rotation: 0 })
|
|
4389
4396
|
] }),
|
|
4390
4397
|
/* @__PURE__ */ l("div", { className: "flex gap-[4px] items-center justify-center shrink-0", children: [
|
|
4391
4398
|
n && (r === 4 || r === 6 || r === 8) && /* @__PURE__ */ l("div", { className: "flex flex-col gap-[4px] items-start justify-center shrink-0", children: [
|
|
4392
|
-
r >= 8 && /* @__PURE__ */ l(
|
|
4393
|
-
/* @__PURE__ */ e(
|
|
4394
|
-
/* @__PURE__ */ e(
|
|
4399
|
+
r >= 8 && /* @__PURE__ */ l(z, { children: [
|
|
4400
|
+
/* @__PURE__ */ e(p, { rotation: 270 }),
|
|
4401
|
+
/* @__PURE__ */ e(p, { rotation: 270 })
|
|
4395
4402
|
] }),
|
|
4396
|
-
(r === 4 || r === 6) && /* @__PURE__ */ e(
|
|
4403
|
+
(r === 4 || r === 6) && /* @__PURE__ */ e(p, { rotation: 270 })
|
|
4397
4404
|
] }),
|
|
4398
4405
|
/* @__PURE__ */ e("div", { className: "flex flex-col gap-[4px] items-start justify-center shrink-0", children: /* @__PURE__ */ e("div", { className: "flex items-center shrink-0", children: /* @__PURE__ */ e(
|
|
4399
4406
|
"div",
|
|
4400
4407
|
{
|
|
4401
4408
|
className: `
|
|
4402
|
-
${
|
|
4409
|
+
${m[o].table}
|
|
4403
4410
|
${i[a].table}
|
|
4404
4411
|
${i[a].tableDark}
|
|
4405
4412
|
shrink-0
|
|
@@ -4407,20 +4414,20 @@ const hr = ({
|
|
|
4407
4414
|
}
|
|
4408
4415
|
) }) }),
|
|
4409
4416
|
n && (r === 4 || r === 6 || r === 8) && /* @__PURE__ */ l("div", { className: "flex flex-col gap-[4px] items-start justify-center shrink-0", children: [
|
|
4410
|
-
r >= 8 && /* @__PURE__ */ l(
|
|
4411
|
-
/* @__PURE__ */ e(
|
|
4412
|
-
/* @__PURE__ */ e(
|
|
4417
|
+
r >= 8 && /* @__PURE__ */ l(z, { children: [
|
|
4418
|
+
/* @__PURE__ */ e(p, { rotation: 90 }),
|
|
4419
|
+
/* @__PURE__ */ e(p, { rotation: 90 })
|
|
4413
4420
|
] }),
|
|
4414
|
-
(r === 4 || r === 6) && /* @__PURE__ */ e(
|
|
4421
|
+
(r === 4 || r === 6) && /* @__PURE__ */ e(p, { rotation: 90 })
|
|
4415
4422
|
] })
|
|
4416
4423
|
] }),
|
|
4417
4424
|
n && (r === 2 || r === 4 || r === 6 || r === 8) && /* @__PURE__ */ l("div", { className: "flex gap-[4px] items-center justify-center shrink-0", children: [
|
|
4418
|
-
r >= 6 && /* @__PURE__ */ l(
|
|
4419
|
-
/* @__PURE__ */ e(
|
|
4420
|
-
/* @__PURE__ */ e(
|
|
4425
|
+
r >= 6 && /* @__PURE__ */ l(z, { children: [
|
|
4426
|
+
/* @__PURE__ */ e(p, { rotation: 180 }),
|
|
4427
|
+
/* @__PURE__ */ e(p, { rotation: 180 })
|
|
4421
4428
|
] }),
|
|
4422
|
-
r === 2 && /* @__PURE__ */ e(
|
|
4423
|
-
r === 4 && /* @__PURE__ */ e(
|
|
4429
|
+
r === 2 && /* @__PURE__ */ e(p, { rotation: 180 }),
|
|
4430
|
+
r === 4 && /* @__PURE__ */ e(p, { rotation: 180 })
|
|
4424
4431
|
] })
|
|
4425
4432
|
] }),
|
|
4426
4433
|
/* @__PURE__ */ l(
|
|
@@ -4448,19 +4455,19 @@ const hr = ({
|
|
|
4448
4455
|
"Mesa ",
|
|
4449
4456
|
t
|
|
4450
4457
|
] }),
|
|
4451
|
-
|
|
4458
|
+
g
|
|
4452
4459
|
]
|
|
4453
4460
|
}
|
|
4454
4461
|
)
|
|
4455
4462
|
]
|
|
4456
4463
|
}
|
|
4457
4464
|
);
|
|
4458
|
-
}, oe =
|
|
4465
|
+
}, oe = xe(void 0), vr = ({
|
|
4459
4466
|
children: t,
|
|
4460
4467
|
defaultTheme: a = "light"
|
|
4461
4468
|
}) => {
|
|
4462
|
-
const [o, r] =
|
|
4463
|
-
|
|
4469
|
+
const [o, r] = H(() => typeof window < "u" && localStorage.getItem("siesa-ui-theme") || a);
|
|
4470
|
+
U(() => {
|
|
4464
4471
|
const c = window.document.documentElement;
|
|
4465
4472
|
o === "dark" ? c.classList.add("dark") : c.classList.remove("dark"), localStorage.setItem("siesa-ui-theme", o);
|
|
4466
4473
|
}, [o]);
|
|
@@ -4470,41 +4477,41 @@ const hr = ({
|
|
|
4470
4477
|
r(c);
|
|
4471
4478
|
};
|
|
4472
4479
|
return /* @__PURE__ */ e(oe.Provider, { value: { theme: o, toggleTheme: n, setTheme: s }, children: t });
|
|
4473
|
-
},
|
|
4474
|
-
const t =
|
|
4480
|
+
}, yr = () => {
|
|
4481
|
+
const t = fe(oe);
|
|
4475
4482
|
if (t === void 0)
|
|
4476
4483
|
throw new Error("useTheme debe ser usado dentro de un ThemeProvider");
|
|
4477
4484
|
return t;
|
|
4478
4485
|
};
|
|
4479
4486
|
export {
|
|
4480
|
-
|
|
4481
|
-
|
|
4482
|
-
|
|
4487
|
+
je as Alert,
|
|
4488
|
+
Ce as Avatar,
|
|
4489
|
+
K as Badge,
|
|
4483
4490
|
Y as Button,
|
|
4484
|
-
|
|
4485
|
-
|
|
4486
|
-
|
|
4487
|
-
|
|
4488
|
-
|
|
4489
|
-
|
|
4490
|
-
|
|
4491
|
-
|
|
4492
|
-
|
|
4493
|
-
|
|
4494
|
-
|
|
4495
|
-
|
|
4496
|
-
|
|
4497
|
-
|
|
4498
|
-
|
|
4499
|
-
|
|
4491
|
+
ve as Checkbox,
|
|
4492
|
+
$e as DescriptionList,
|
|
4493
|
+
Ne as Divider,
|
|
4494
|
+
sr as Dropdown,
|
|
4495
|
+
he as Input,
|
|
4496
|
+
mr as Navbar,
|
|
4497
|
+
pr as NavigationBar,
|
|
4498
|
+
ir as Notification,
|
|
4499
|
+
gr as POSConvention,
|
|
4500
|
+
ur as POSLocationButton,
|
|
4501
|
+
xr as POSNumberButton,
|
|
4502
|
+
fr as POSProductButton,
|
|
4503
|
+
hr as POSProductCard,
|
|
4504
|
+
Ye as POSProductSidebarItems,
|
|
4505
|
+
kr as POSTable,
|
|
4506
|
+
lr as Pagination,
|
|
4500
4507
|
ne as Quantity,
|
|
4501
|
-
|
|
4502
|
-
|
|
4503
|
-
|
|
4504
|
-
|
|
4505
|
-
|
|
4506
|
-
|
|
4507
|
-
|
|
4508
|
-
|
|
4508
|
+
ye as Radio,
|
|
4509
|
+
cr as Select,
|
|
4510
|
+
we as Switch,
|
|
4511
|
+
dr as Table,
|
|
4512
|
+
br as Tabs,
|
|
4513
|
+
ke as Textarea,
|
|
4514
|
+
vr as ThemeProvider,
|
|
4515
|
+
yr as useTheme
|
|
4509
4516
|
};
|
|
4510
4517
|
//# sourceMappingURL=siesa-ui-kit.mjs.map
|