@marcoschwartz/lite-ui 0.1.0 → 0.3.1
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/README.md +238 -134
- package/dist/index.d.mts +212 -2
- package/dist/index.d.ts +212 -2
- package/dist/index.js +1017 -5
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +976 -5
- package/dist/index.mjs.map +1 -1
- package/dist/styles.css +2 -0
- package/package.json +4 -2
package/dist/index.mjs
CHANGED
|
@@ -163,10 +163,10 @@ var Button = ({
|
|
|
163
163
|
}) => {
|
|
164
164
|
const { theme } = useTheme();
|
|
165
165
|
const baseStyles = theme.button.base;
|
|
166
|
-
const
|
|
167
|
-
const
|
|
166
|
+
const variantStyles3 = theme.button.variants[variant];
|
|
167
|
+
const sizeStyles2 = theme.button.sizes[size];
|
|
168
168
|
const disabledStyles = disabled ? theme.button.disabled : "";
|
|
169
|
-
const classes = `${baseStyles} ${
|
|
169
|
+
const classes = `${baseStyles} ${variantStyles3} ${sizeStyles2} ${disabledStyles} ${className}`.trim();
|
|
170
170
|
return /* @__PURE__ */ jsx2(
|
|
171
171
|
"button",
|
|
172
172
|
{
|
|
@@ -222,9 +222,9 @@ var Select = ({
|
|
|
222
222
|
}
|
|
223
223
|
};
|
|
224
224
|
const baseStyles = theme.select.base;
|
|
225
|
-
const
|
|
225
|
+
const sizeStyles2 = theme.select.sizes[size];
|
|
226
226
|
const disabledStyles = disabled ? theme.select.disabled : "";
|
|
227
|
-
const buttonClasses = `${baseStyles} ${
|
|
227
|
+
const buttonClasses = `${baseStyles} ${sizeStyles2} ${disabledStyles} ${className}`.trim();
|
|
228
228
|
const iconColor = themeName === "minimalistic" ? disabled ? "text-gray-600" : "text-white" : disabled ? "text-gray-400" : "text-gray-500";
|
|
229
229
|
const dropdownBaseStyles = themeName === "minimalistic" ? "bg-black border-2 border-white" : "bg-white border border-gray-300 shadow-lg dark:bg-gray-800 dark:border-gray-600";
|
|
230
230
|
const optionBaseStyles = themeName === "minimalistic" ? "text-white hover:bg-white hover:text-black transition-colors duration-200" : "text-gray-900 hover:bg-blue-50 transition-colors duration-150 dark:text-gray-100 dark:hover:bg-gray-700";
|
|
@@ -282,6 +282,818 @@ var Select = ({
|
|
|
282
282
|
] });
|
|
283
283
|
};
|
|
284
284
|
|
|
285
|
+
// src/components/Modal.tsx
|
|
286
|
+
import { useEffect as useEffect3 } from "react";
|
|
287
|
+
import { jsx as jsx4, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
288
|
+
var sizeClasses = {
|
|
289
|
+
sm: "max-w-md",
|
|
290
|
+
md: "max-w-lg",
|
|
291
|
+
lg: "max-w-2xl",
|
|
292
|
+
xl: "max-w-4xl"
|
|
293
|
+
};
|
|
294
|
+
var Modal = ({
|
|
295
|
+
isOpen,
|
|
296
|
+
onClose,
|
|
297
|
+
title,
|
|
298
|
+
children,
|
|
299
|
+
size = "md",
|
|
300
|
+
showCloseButton = true
|
|
301
|
+
}) => {
|
|
302
|
+
const { theme } = useTheme();
|
|
303
|
+
useEffect3(() => {
|
|
304
|
+
const handleEscape = (e) => {
|
|
305
|
+
if (e.key === "Escape" && isOpen) {
|
|
306
|
+
onClose();
|
|
307
|
+
}
|
|
308
|
+
};
|
|
309
|
+
if (isOpen) {
|
|
310
|
+
document.addEventListener("keydown", handleEscape);
|
|
311
|
+
document.body.style.overflow = "hidden";
|
|
312
|
+
}
|
|
313
|
+
return () => {
|
|
314
|
+
document.removeEventListener("keydown", handleEscape);
|
|
315
|
+
document.body.style.overflow = "unset";
|
|
316
|
+
};
|
|
317
|
+
}, [isOpen, onClose]);
|
|
318
|
+
if (!isOpen) return null;
|
|
319
|
+
const sizeClass = sizeClasses[size];
|
|
320
|
+
return /* @__PURE__ */ jsx4(
|
|
321
|
+
"div",
|
|
322
|
+
{
|
|
323
|
+
className: "fixed inset-0 z-50 flex items-center justify-center p-4 bg-black/60 backdrop-blur-sm transition-all duration-200",
|
|
324
|
+
onClick: onClose,
|
|
325
|
+
role: "dialog",
|
|
326
|
+
"aria-modal": "true",
|
|
327
|
+
"aria-labelledby": title ? "modal-title" : void 0,
|
|
328
|
+
children: /* @__PURE__ */ jsxs2(
|
|
329
|
+
"div",
|
|
330
|
+
{
|
|
331
|
+
className: `relative w-full ${sizeClass} bg-white dark:bg-gray-800 rounded-lg shadow-2xl transform transition-all duration-200 scale-100 animate-in`,
|
|
332
|
+
onClick: (e) => e.stopPropagation(),
|
|
333
|
+
children: [
|
|
334
|
+
(title || showCloseButton) && /* @__PURE__ */ jsxs2("div", { className: "flex items-center justify-between p-6 border-b border-gray-200 dark:border-gray-700", children: [
|
|
335
|
+
title && /* @__PURE__ */ jsx4("h3", { id: "modal-title", className: "text-xl font-semibold text-gray-900 dark:text-gray-100", children: title }),
|
|
336
|
+
showCloseButton && /* @__PURE__ */ jsx4(
|
|
337
|
+
"button",
|
|
338
|
+
{
|
|
339
|
+
onClick: onClose,
|
|
340
|
+
className: "ml-auto text-gray-400 hover:text-gray-600 dark:hover:text-gray-300 transition-colors",
|
|
341
|
+
"aria-label": "Close modal",
|
|
342
|
+
children: /* @__PURE__ */ jsx4("svg", { className: "w-6 h-6", fill: "none", viewBox: "0 0 24 24", stroke: "currentColor", children: /* @__PURE__ */ jsx4("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M6 18L18 6M6 6l12 12" }) })
|
|
343
|
+
}
|
|
344
|
+
)
|
|
345
|
+
] }),
|
|
346
|
+
/* @__PURE__ */ jsx4("div", { className: "p-6", children })
|
|
347
|
+
]
|
|
348
|
+
}
|
|
349
|
+
)
|
|
350
|
+
}
|
|
351
|
+
);
|
|
352
|
+
};
|
|
353
|
+
|
|
354
|
+
// src/components/Navbar.tsx
|
|
355
|
+
import { jsx as jsx5, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
356
|
+
var Navbar = ({
|
|
357
|
+
logo,
|
|
358
|
+
children,
|
|
359
|
+
className = "",
|
|
360
|
+
sticky = false
|
|
361
|
+
}) => {
|
|
362
|
+
const { theme } = useTheme();
|
|
363
|
+
const baseClasses = sticky ? "sticky top-0 z-40" : "";
|
|
364
|
+
return /* @__PURE__ */ jsx5("nav", { className: `bg-white dark:bg-gray-800 border-b border-gray-200 dark:border-gray-700 ${baseClasses} ${className}`, children: /* @__PURE__ */ jsx5("div", { className: "max-w-7xl mx-auto px-4 sm:px-6 lg:px-8", children: /* @__PURE__ */ jsxs3("div", { className: "flex justify-between items-center h-16", children: [
|
|
365
|
+
logo && /* @__PURE__ */ jsx5("div", { className: "flex items-center", children: logo }),
|
|
366
|
+
children && /* @__PURE__ */ jsx5("div", { className: "flex items-center gap-6", children })
|
|
367
|
+
] }) }) });
|
|
368
|
+
};
|
|
369
|
+
|
|
370
|
+
// src/components/Sidebar.tsx
|
|
371
|
+
import { jsx as jsx6 } from "react/jsx-runtime";
|
|
372
|
+
var widthClasses = {
|
|
373
|
+
sm: "w-48",
|
|
374
|
+
md: "w-64",
|
|
375
|
+
lg: "w-80"
|
|
376
|
+
};
|
|
377
|
+
var Sidebar = ({
|
|
378
|
+
children,
|
|
379
|
+
className = "",
|
|
380
|
+
width = "md",
|
|
381
|
+
position = "left"
|
|
382
|
+
}) => {
|
|
383
|
+
const { theme } = useTheme();
|
|
384
|
+
const widthClass = widthClasses[width];
|
|
385
|
+
return /* @__PURE__ */ jsx6(
|
|
386
|
+
"aside",
|
|
387
|
+
{
|
|
388
|
+
className: `${widthClass} bg-white dark:bg-gray-800 border-${position === "left" ? "r" : "l"} border-gray-200 dark:border-gray-700 h-full overflow-y-auto ${className}`,
|
|
389
|
+
children
|
|
390
|
+
}
|
|
391
|
+
);
|
|
392
|
+
};
|
|
393
|
+
|
|
394
|
+
// src/components/SidebarProvider.tsx
|
|
395
|
+
import { createContext as createContext2, useContext as useContext2, useState as useState3 } from "react";
|
|
396
|
+
import { jsx as jsx7 } from "react/jsx-runtime";
|
|
397
|
+
var SidebarContext = createContext2(void 0);
|
|
398
|
+
var SidebarProvider = ({
|
|
399
|
+
children,
|
|
400
|
+
defaultOpen = false
|
|
401
|
+
}) => {
|
|
402
|
+
const [isOpen, setIsOpen] = useState3(defaultOpen);
|
|
403
|
+
const [isMobile, setIsMobile] = useState3(false);
|
|
404
|
+
const open = () => setIsOpen(true);
|
|
405
|
+
const close = () => setIsOpen(false);
|
|
406
|
+
const toggle = () => setIsOpen((prev) => !prev);
|
|
407
|
+
const value = {
|
|
408
|
+
isOpen,
|
|
409
|
+
isMobile,
|
|
410
|
+
open,
|
|
411
|
+
close,
|
|
412
|
+
toggle,
|
|
413
|
+
setIsMobile
|
|
414
|
+
};
|
|
415
|
+
return /* @__PURE__ */ jsx7(SidebarContext.Provider, { value, children });
|
|
416
|
+
};
|
|
417
|
+
var useSidebar = () => {
|
|
418
|
+
const context = useContext2(SidebarContext);
|
|
419
|
+
if (!context) {
|
|
420
|
+
throw new Error("useSidebar must be used within a SidebarProvider");
|
|
421
|
+
}
|
|
422
|
+
return context;
|
|
423
|
+
};
|
|
424
|
+
|
|
425
|
+
// src/components/Drawer.tsx
|
|
426
|
+
import { useEffect as useEffect4 } from "react";
|
|
427
|
+
import { Fragment, jsx as jsx8, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
428
|
+
var sizeClasses2 = {
|
|
429
|
+
left: {
|
|
430
|
+
sm: "w-64",
|
|
431
|
+
md: "w-80",
|
|
432
|
+
lg: "w-96"
|
|
433
|
+
},
|
|
434
|
+
right: {
|
|
435
|
+
sm: "w-64",
|
|
436
|
+
md: "w-80",
|
|
437
|
+
lg: "w-96"
|
|
438
|
+
},
|
|
439
|
+
top: {
|
|
440
|
+
sm: "h-48",
|
|
441
|
+
md: "h-64",
|
|
442
|
+
lg: "h-80"
|
|
443
|
+
},
|
|
444
|
+
bottom: {
|
|
445
|
+
sm: "h-48",
|
|
446
|
+
md: "h-64",
|
|
447
|
+
lg: "h-80"
|
|
448
|
+
}
|
|
449
|
+
};
|
|
450
|
+
var positionClasses = {
|
|
451
|
+
left: "left-0 top-0 h-full",
|
|
452
|
+
right: "right-0 top-0 h-full",
|
|
453
|
+
top: "top-0 left-0 w-full",
|
|
454
|
+
bottom: "bottom-0 left-0 w-full"
|
|
455
|
+
};
|
|
456
|
+
var slideClasses = {
|
|
457
|
+
left: "transform transition-transform duration-300",
|
|
458
|
+
right: "transform transition-transform duration-300",
|
|
459
|
+
top: "transform transition-transform duration-300",
|
|
460
|
+
bottom: "transform transition-transform duration-300"
|
|
461
|
+
};
|
|
462
|
+
var Drawer = ({
|
|
463
|
+
isOpen,
|
|
464
|
+
onClose,
|
|
465
|
+
title,
|
|
466
|
+
children,
|
|
467
|
+
position = "right",
|
|
468
|
+
size = "md",
|
|
469
|
+
showCloseButton = true
|
|
470
|
+
}) => {
|
|
471
|
+
const { theme } = useTheme();
|
|
472
|
+
useEffect4(() => {
|
|
473
|
+
const handleEscape = (e) => {
|
|
474
|
+
if (e.key === "Escape" && isOpen) {
|
|
475
|
+
onClose();
|
|
476
|
+
}
|
|
477
|
+
};
|
|
478
|
+
if (isOpen) {
|
|
479
|
+
document.addEventListener("keydown", handleEscape);
|
|
480
|
+
document.body.style.overflow = "hidden";
|
|
481
|
+
}
|
|
482
|
+
return () => {
|
|
483
|
+
document.removeEventListener("keydown", handleEscape);
|
|
484
|
+
document.body.style.overflow = "unset";
|
|
485
|
+
};
|
|
486
|
+
}, [isOpen, onClose]);
|
|
487
|
+
if (!isOpen) return null;
|
|
488
|
+
const sizeClass = sizeClasses2[position][size];
|
|
489
|
+
const positionClass = positionClasses[position];
|
|
490
|
+
return /* @__PURE__ */ jsxs4(Fragment, { children: [
|
|
491
|
+
/* @__PURE__ */ jsx8(
|
|
492
|
+
"div",
|
|
493
|
+
{
|
|
494
|
+
className: "fixed inset-0 z-40 bg-black/60 backdrop-blur-sm transition-all duration-200",
|
|
495
|
+
onClick: onClose
|
|
496
|
+
}
|
|
497
|
+
),
|
|
498
|
+
/* @__PURE__ */ jsxs4(
|
|
499
|
+
"div",
|
|
500
|
+
{
|
|
501
|
+
className: `fixed z-50 ${positionClass} ${sizeClass} bg-white dark:bg-gray-800 shadow-2xl overflow-hidden flex flex-col ${slideClasses[position]}`,
|
|
502
|
+
children: [
|
|
503
|
+
(title || showCloseButton) && /* @__PURE__ */ jsxs4("div", { className: "flex items-center justify-between p-6 border-b border-gray-200 dark:border-gray-700", children: [
|
|
504
|
+
title && /* @__PURE__ */ jsx8("h3", { className: "text-xl font-semibold text-gray-900 dark:text-gray-100", children: title }),
|
|
505
|
+
showCloseButton && /* @__PURE__ */ jsx8(
|
|
506
|
+
"button",
|
|
507
|
+
{
|
|
508
|
+
onClick: onClose,
|
|
509
|
+
className: "ml-auto text-gray-400 hover:text-gray-600 dark:hover:text-gray-300 transition-colors",
|
|
510
|
+
"aria-label": "Close drawer",
|
|
511
|
+
children: /* @__PURE__ */ jsx8("svg", { className: "w-6 h-6", fill: "none", viewBox: "0 0 24 24", stroke: "currentColor", children: /* @__PURE__ */ jsx8("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M6 18L18 6M6 6l12 12" }) })
|
|
512
|
+
}
|
|
513
|
+
)
|
|
514
|
+
] }),
|
|
515
|
+
/* @__PURE__ */ jsx8("div", { className: "flex-1 p-6 overflow-y-auto", children })
|
|
516
|
+
]
|
|
517
|
+
}
|
|
518
|
+
)
|
|
519
|
+
] });
|
|
520
|
+
};
|
|
521
|
+
|
|
522
|
+
// src/components/TextInput.tsx
|
|
523
|
+
import { forwardRef } from "react";
|
|
524
|
+
import { jsx as jsx9, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
525
|
+
var sizeClasses3 = {
|
|
526
|
+
sm: "px-3 py-1.5 text-sm",
|
|
527
|
+
md: "px-4 py-2.5 text-base",
|
|
528
|
+
lg: "px-4 py-3 text-lg"
|
|
529
|
+
};
|
|
530
|
+
var TextInput = forwardRef(
|
|
531
|
+
({
|
|
532
|
+
label,
|
|
533
|
+
error,
|
|
534
|
+
helperText,
|
|
535
|
+
size = "md",
|
|
536
|
+
fullWidth = false,
|
|
537
|
+
leftIcon,
|
|
538
|
+
rightIcon,
|
|
539
|
+
className = "",
|
|
540
|
+
disabled,
|
|
541
|
+
...props
|
|
542
|
+
}, ref) => {
|
|
543
|
+
const { theme, themeName } = useTheme();
|
|
544
|
+
const baseStyles = theme.select?.base || "w-full appearance-none rounded-lg border border-gray-300 bg-white text-gray-900 transition-all duration-150 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent shadow-sm hover:border-gray-400 dark:bg-gray-800 dark:border-gray-600 dark:text-gray-100 dark:hover:border-gray-500";
|
|
545
|
+
const sizeStyle = sizeClasses3[size];
|
|
546
|
+
const errorStyles = error ? "border-red-500 focus:ring-red-500 dark:border-red-500" : "";
|
|
547
|
+
const disabledStyles = disabled ? "opacity-50 cursor-not-allowed bg-gray-50 dark:bg-gray-900" : "";
|
|
548
|
+
const widthStyle = fullWidth ? "w-full" : "";
|
|
549
|
+
const paddingWithIcon = leftIcon ? "pl-10" : rightIcon ? "pr-10" : "";
|
|
550
|
+
return /* @__PURE__ */ jsxs5("div", { className: `${widthStyle} ${className}`, children: [
|
|
551
|
+
label && /* @__PURE__ */ jsx9("label", { className: "block text-sm font-medium text-gray-700 dark:text-gray-300 mb-1", children: label }),
|
|
552
|
+
/* @__PURE__ */ jsxs5("div", { className: "relative", children: [
|
|
553
|
+
leftIcon && /* @__PURE__ */ jsx9("div", { className: "absolute left-3 top-1/2 transform -translate-y-1/2 text-gray-400 dark:text-gray-500", children: leftIcon }),
|
|
554
|
+
/* @__PURE__ */ jsx9(
|
|
555
|
+
"input",
|
|
556
|
+
{
|
|
557
|
+
ref,
|
|
558
|
+
className: `${baseStyles} ${sizeStyle} ${errorStyles} ${disabledStyles} ${paddingWithIcon}`.trim(),
|
|
559
|
+
disabled,
|
|
560
|
+
...props
|
|
561
|
+
}
|
|
562
|
+
),
|
|
563
|
+
rightIcon && /* @__PURE__ */ jsx9("div", { className: "absolute right-3 top-1/2 transform -translate-y-1/2 text-gray-400 dark:text-gray-500", children: rightIcon })
|
|
564
|
+
] }),
|
|
565
|
+
error && /* @__PURE__ */ jsx9("p", { className: "mt-1 text-sm text-red-600 dark:text-red-400", children: error }),
|
|
566
|
+
helperText && !error && /* @__PURE__ */ jsx9("p", { className: "mt-1 text-sm text-gray-500 dark:text-gray-400", children: helperText })
|
|
567
|
+
] });
|
|
568
|
+
}
|
|
569
|
+
);
|
|
570
|
+
TextInput.displayName = "TextInput";
|
|
571
|
+
|
|
572
|
+
// src/components/ActionMenu.tsx
|
|
573
|
+
import { useState as useState4, useRef as useRef2, useEffect as useEffect5 } from "react";
|
|
574
|
+
import { jsx as jsx10, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
575
|
+
var ActionMenu = ({
|
|
576
|
+
items,
|
|
577
|
+
trigger,
|
|
578
|
+
position = "right"
|
|
579
|
+
}) => {
|
|
580
|
+
const { themeName } = useTheme();
|
|
581
|
+
const [isOpen, setIsOpen] = useState4(false);
|
|
582
|
+
const menuRef = useRef2(null);
|
|
583
|
+
useEffect5(() => {
|
|
584
|
+
const handleClickOutside = (event) => {
|
|
585
|
+
if (menuRef.current && !menuRef.current.contains(event.target)) {
|
|
586
|
+
setIsOpen(false);
|
|
587
|
+
}
|
|
588
|
+
};
|
|
589
|
+
if (isOpen) {
|
|
590
|
+
document.addEventListener("mousedown", handleClickOutside);
|
|
591
|
+
return () => document.removeEventListener("mousedown", handleClickOutside);
|
|
592
|
+
}
|
|
593
|
+
}, [isOpen]);
|
|
594
|
+
const handleItemClick = (item) => {
|
|
595
|
+
if (!item.disabled) {
|
|
596
|
+
item.onClick();
|
|
597
|
+
setIsOpen(false);
|
|
598
|
+
}
|
|
599
|
+
};
|
|
600
|
+
const defaultTrigger = /* @__PURE__ */ jsx10(
|
|
601
|
+
"button",
|
|
602
|
+
{
|
|
603
|
+
className: "p-2 rounded-md hover:bg-gray-100 dark:hover:bg-gray-700 transition-colors",
|
|
604
|
+
"aria-label": "Open menu",
|
|
605
|
+
children: /* @__PURE__ */ jsx10("svg", { className: "w-5 h-5 text-gray-600 dark:text-gray-400", fill: "none", viewBox: "0 0 24 24", stroke: "currentColor", children: /* @__PURE__ */ jsx10("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M12 5v.01M12 12v.01M12 19v.01M12 6a1 1 0 110-2 1 1 0 010 2zm0 7a1 1 0 110-2 1 1 0 010 2zm0 7a1 1 0 110-2 1 1 0 010 2z" }) })
|
|
606
|
+
}
|
|
607
|
+
);
|
|
608
|
+
const menuBaseStyles = themeName === "minimalistic" ? "bg-black border-2 border-white" : "bg-white dark:bg-gray-800 border border-gray-200 dark:border-gray-700 shadow-lg";
|
|
609
|
+
const itemBaseStyles = themeName === "minimalistic" ? "text-white hover:bg-white hover:text-black transition-colors duration-200" : "text-gray-700 dark:text-gray-200 hover:bg-gray-100 dark:hover:bg-gray-700 transition-colors";
|
|
610
|
+
const positionClass = position === "left" ? "left-0" : "right-0";
|
|
611
|
+
return /* @__PURE__ */ jsxs6("div", { className: "relative inline-block", ref: menuRef, children: [
|
|
612
|
+
/* @__PURE__ */ jsx10("div", { onClick: () => setIsOpen(!isOpen), children: trigger || defaultTrigger }),
|
|
613
|
+
isOpen && /* @__PURE__ */ jsx10(
|
|
614
|
+
"div",
|
|
615
|
+
{
|
|
616
|
+
className: `absolute ${positionClass} mt-2 w-56 rounded-lg ${menuBaseStyles} z-50 overflow-hidden`,
|
|
617
|
+
style: { minWidth: "14rem" },
|
|
618
|
+
children: items.map((item, index) => /* @__PURE__ */ jsxs6(
|
|
619
|
+
"button",
|
|
620
|
+
{
|
|
621
|
+
onClick: () => handleItemClick(item),
|
|
622
|
+
disabled: item.disabled,
|
|
623
|
+
className: `w-full text-left px-4 py-3 flex items-center gap-3 ${itemBaseStyles} ${item.disabled ? "opacity-50 cursor-not-allowed" : "cursor-pointer"} ${item.variant === "danger" ? "text-red-600 dark:text-red-400 hover:bg-red-50 dark:hover:bg-red-900/20" : ""}`,
|
|
624
|
+
children: [
|
|
625
|
+
item.icon && /* @__PURE__ */ jsx10("span", { className: "flex-shrink-0", children: item.icon }),
|
|
626
|
+
/* @__PURE__ */ jsx10("span", { className: "flex-1", children: item.label })
|
|
627
|
+
]
|
|
628
|
+
},
|
|
629
|
+
index
|
|
630
|
+
))
|
|
631
|
+
}
|
|
632
|
+
)
|
|
633
|
+
] });
|
|
634
|
+
};
|
|
635
|
+
|
|
636
|
+
// src/components/Card.tsx
|
|
637
|
+
import { jsx as jsx11 } from "react/jsx-runtime";
|
|
638
|
+
var paddingClasses = {
|
|
639
|
+
none: "",
|
|
640
|
+
sm: "p-4",
|
|
641
|
+
md: "p-6",
|
|
642
|
+
lg: "p-8"
|
|
643
|
+
};
|
|
644
|
+
var Card = ({
|
|
645
|
+
children,
|
|
646
|
+
className = "",
|
|
647
|
+
padding = "md",
|
|
648
|
+
hover = false
|
|
649
|
+
}) => {
|
|
650
|
+
const { theme } = useTheme();
|
|
651
|
+
const paddingClass = paddingClasses[padding];
|
|
652
|
+
const hoverClass = hover ? "hover:shadow-lg transition-shadow duration-200" : "";
|
|
653
|
+
return /* @__PURE__ */ jsx11(
|
|
654
|
+
"div",
|
|
655
|
+
{
|
|
656
|
+
className: `bg-white dark:bg-gray-800 rounded-lg shadow-sm border border-gray-200 dark:border-gray-700 ${paddingClass} ${hoverClass} ${className}`,
|
|
657
|
+
children
|
|
658
|
+
}
|
|
659
|
+
);
|
|
660
|
+
};
|
|
661
|
+
|
|
662
|
+
// src/components/Alert.tsx
|
|
663
|
+
import { jsx as jsx12, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
664
|
+
var variantStyles = {
|
|
665
|
+
info: "bg-blue-50 dark:bg-blue-900/20 border-blue-200 dark:border-blue-800 text-blue-900 dark:text-blue-100",
|
|
666
|
+
success: "bg-green-50 dark:bg-green-900/20 border-green-200 dark:border-green-800 text-green-900 dark:text-green-100",
|
|
667
|
+
warning: "bg-yellow-50 dark:bg-yellow-900/20 border-yellow-200 dark:border-yellow-800 text-yellow-900 dark:text-yellow-100",
|
|
668
|
+
error: "bg-red-50 dark:bg-red-900/20 border-red-200 dark:border-red-800 text-red-900 dark:text-red-100"
|
|
669
|
+
};
|
|
670
|
+
var iconStyles = {
|
|
671
|
+
info: "text-blue-600 dark:text-blue-400",
|
|
672
|
+
success: "text-green-600 dark:text-green-400",
|
|
673
|
+
warning: "text-yellow-600 dark:text-yellow-400",
|
|
674
|
+
error: "text-red-600 dark:text-red-400"
|
|
675
|
+
};
|
|
676
|
+
var Alert = ({
|
|
677
|
+
variant = "info",
|
|
678
|
+
title,
|
|
679
|
+
children,
|
|
680
|
+
onClose,
|
|
681
|
+
className = ""
|
|
682
|
+
}) => {
|
|
683
|
+
const { theme } = useTheme();
|
|
684
|
+
const variantClass = variantStyles[variant];
|
|
685
|
+
const iconClass = iconStyles[variant];
|
|
686
|
+
return /* @__PURE__ */ jsx12("div", { className: `rounded-lg border p-4 ${variantClass} ${className}`, role: "alert", children: /* @__PURE__ */ jsxs7("div", { className: "flex items-start gap-3", children: [
|
|
687
|
+
/* @__PURE__ */ jsxs7("div", { className: `flex-shrink-0 ${iconClass}`, children: [
|
|
688
|
+
variant === "info" && /* @__PURE__ */ jsx12("svg", { className: "w-5 h-5", fill: "currentColor", viewBox: "0 0 20 20", children: /* @__PURE__ */ jsx12("path", { fillRule: "evenodd", d: "M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a1 1 0 000 2v3a1 1 0 001 1h1a1 1 0 100-2v-3a1 1 0 00-1-1H9z", clipRule: "evenodd" }) }),
|
|
689
|
+
variant === "success" && /* @__PURE__ */ jsx12("svg", { className: "w-5 h-5", fill: "currentColor", viewBox: "0 0 20 20", children: /* @__PURE__ */ jsx12("path", { fillRule: "evenodd", d: "M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z", clipRule: "evenodd" }) }),
|
|
690
|
+
variant === "warning" && /* @__PURE__ */ jsx12("svg", { className: "w-5 h-5", fill: "currentColor", viewBox: "0 0 20 20", children: /* @__PURE__ */ jsx12("path", { fillRule: "evenodd", d: "M8.257 3.099c.765-1.36 2.722-1.36 3.486 0l5.58 9.92c.75 1.334-.213 2.98-1.742 2.98H4.42c-1.53 0-2.493-1.646-1.743-2.98l5.58-9.92zM11 13a1 1 0 11-2 0 1 1 0 012 0zm-1-8a1 1 0 00-1 1v3a1 1 0 002 0V6a1 1 0 00-1-1z", clipRule: "evenodd" }) }),
|
|
691
|
+
variant === "error" && /* @__PURE__ */ jsx12("svg", { className: "w-5 h-5", fill: "currentColor", viewBox: "0 0 20 20", children: /* @__PURE__ */ jsx12("path", { fillRule: "evenodd", d: "M10 18a8 8 0 100-16 8 8 0 000 16zM8.707 7.293a1 1 0 00-1.414 1.414L8.586 10l-1.293 1.293a1 1 0 101.414 1.414L10 11.414l1.293 1.293a1 1 0 001.414-1.414L11.414 10l1.293-1.293a1 1 0 00-1.414-1.414L10 8.586 8.707 7.293z", clipRule: "evenodd" }) })
|
|
692
|
+
] }),
|
|
693
|
+
/* @__PURE__ */ jsxs7("div", { className: "flex-1", children: [
|
|
694
|
+
title && /* @__PURE__ */ jsx12("h3", { className: "font-semibold mb-1", children: title }),
|
|
695
|
+
/* @__PURE__ */ jsx12("div", { className: "text-sm", children })
|
|
696
|
+
] }),
|
|
697
|
+
onClose && /* @__PURE__ */ jsx12(
|
|
698
|
+
"button",
|
|
699
|
+
{
|
|
700
|
+
onClick: onClose,
|
|
701
|
+
className: `flex-shrink-0 ${iconClass} hover:opacity-70 transition-opacity`,
|
|
702
|
+
"aria-label": "Close alert",
|
|
703
|
+
children: /* @__PURE__ */ jsx12("svg", { className: "w-5 h-5", fill: "none", viewBox: "0 0 24 24", stroke: "currentColor", children: /* @__PURE__ */ jsx12("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M6 18L18 6M6 6l12 12" }) })
|
|
704
|
+
}
|
|
705
|
+
)
|
|
706
|
+
] }) });
|
|
707
|
+
};
|
|
708
|
+
|
|
709
|
+
// src/components/Checkbox.tsx
|
|
710
|
+
import { forwardRef as forwardRef2 } from "react";
|
|
711
|
+
import { jsx as jsx13, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
712
|
+
var Checkbox = forwardRef2(
|
|
713
|
+
({ label, error, className = "", disabled, ...props }, ref) => {
|
|
714
|
+
const { theme } = useTheme();
|
|
715
|
+
return /* @__PURE__ */ jsxs8("div", { className, children: [
|
|
716
|
+
/* @__PURE__ */ jsxs8("label", { className: "flex items-center gap-2 cursor-pointer group", children: [
|
|
717
|
+
/* @__PURE__ */ jsx13(
|
|
718
|
+
"input",
|
|
719
|
+
{
|
|
720
|
+
ref,
|
|
721
|
+
type: "checkbox",
|
|
722
|
+
disabled,
|
|
723
|
+
className: `w-4 h-4 rounded border-gray-300 dark:border-gray-600 text-blue-600 focus:ring-2 focus:ring-blue-500 focus:ring-offset-0 disabled:opacity-50 disabled:cursor-not-allowed transition-colors ${error ? "border-red-500 dark:border-red-500" : ""}`,
|
|
724
|
+
...props
|
|
725
|
+
}
|
|
726
|
+
),
|
|
727
|
+
label && /* @__PURE__ */ jsx13("span", { className: `text-sm text-gray-700 dark:text-gray-300 ${disabled ? "opacity-50 cursor-not-allowed" : "group-hover:text-gray-900 dark:group-hover:text-gray-100"}`, children: label })
|
|
728
|
+
] }),
|
|
729
|
+
error && /* @__PURE__ */ jsx13("p", { className: "mt-1 text-sm text-red-600 dark:text-red-400", children: error })
|
|
730
|
+
] });
|
|
731
|
+
}
|
|
732
|
+
);
|
|
733
|
+
Checkbox.displayName = "Checkbox";
|
|
734
|
+
|
|
735
|
+
// src/components/Toggle.tsx
|
|
736
|
+
import { forwardRef as forwardRef3 } from "react";
|
|
737
|
+
import { jsx as jsx14, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
738
|
+
var Toggle = forwardRef3(
|
|
739
|
+
({ label, size = "md", className = "", disabled, checked, ...props }, ref) => {
|
|
740
|
+
const { theme } = useTheme();
|
|
741
|
+
const toggleClasses = {
|
|
742
|
+
sm: {
|
|
743
|
+
switch: "w-9 h-5",
|
|
744
|
+
thumb: "w-4 h-4 peer-checked:translate-x-4"
|
|
745
|
+
},
|
|
746
|
+
md: {
|
|
747
|
+
switch: "w-11 h-6",
|
|
748
|
+
thumb: "w-5 h-5 peer-checked:translate-x-5"
|
|
749
|
+
},
|
|
750
|
+
lg: {
|
|
751
|
+
switch: "w-14 h-7",
|
|
752
|
+
thumb: "w-6 h-6 peer-checked:translate-x-7"
|
|
753
|
+
}
|
|
754
|
+
};
|
|
755
|
+
const currentSize = toggleClasses[size];
|
|
756
|
+
return /* @__PURE__ */ jsxs9("label", { className: `inline-flex items-center gap-3 cursor-pointer ${disabled ? "opacity-50 cursor-not-allowed" : ""} ${className}`, children: [
|
|
757
|
+
/* @__PURE__ */ jsxs9("div", { className: "relative", children: [
|
|
758
|
+
/* @__PURE__ */ jsx14(
|
|
759
|
+
"input",
|
|
760
|
+
{
|
|
761
|
+
ref,
|
|
762
|
+
type: "checkbox",
|
|
763
|
+
className: "sr-only peer",
|
|
764
|
+
disabled,
|
|
765
|
+
checked,
|
|
766
|
+
...props
|
|
767
|
+
}
|
|
768
|
+
),
|
|
769
|
+
/* @__PURE__ */ jsx14(
|
|
770
|
+
"div",
|
|
771
|
+
{
|
|
772
|
+
className: `${currentSize.switch} bg-gray-300 dark:bg-gray-700 peer-focus:ring-2 peer-focus:ring-blue-500 rounded-full peer peer-checked:bg-blue-600 dark:peer-checked:bg-blue-500 transition-colors`
|
|
773
|
+
}
|
|
774
|
+
),
|
|
775
|
+
/* @__PURE__ */ jsx14(
|
|
776
|
+
"div",
|
|
777
|
+
{
|
|
778
|
+
className: `${currentSize.thumb} bg-white rounded-full shadow-md absolute top-0.5 left-0.5 transition-transform`
|
|
779
|
+
}
|
|
780
|
+
)
|
|
781
|
+
] }),
|
|
782
|
+
label && /* @__PURE__ */ jsx14("span", { className: "text-sm font-medium text-gray-700 dark:text-gray-300", children: label })
|
|
783
|
+
] });
|
|
784
|
+
}
|
|
785
|
+
);
|
|
786
|
+
Toggle.displayName = "Toggle";
|
|
787
|
+
|
|
788
|
+
// src/components/Badge.tsx
|
|
789
|
+
import { jsx as jsx15 } from "react/jsx-runtime";
|
|
790
|
+
var variantStyles2 = {
|
|
791
|
+
default: "bg-gray-100 dark:bg-gray-700 text-gray-800 dark:text-gray-200",
|
|
792
|
+
primary: "bg-blue-100 dark:bg-blue-900/30 text-blue-800 dark:text-blue-200",
|
|
793
|
+
success: "bg-green-100 dark:bg-green-900/30 text-green-800 dark:text-green-200",
|
|
794
|
+
warning: "bg-yellow-100 dark:bg-yellow-900/30 text-yellow-800 dark:text-yellow-200",
|
|
795
|
+
error: "bg-red-100 dark:bg-red-900/30 text-red-800 dark:text-red-200",
|
|
796
|
+
info: "bg-cyan-100 dark:bg-cyan-900/30 text-cyan-800 dark:text-cyan-200"
|
|
797
|
+
};
|
|
798
|
+
var sizeStyles = {
|
|
799
|
+
sm: "px-2 py-0.5 text-xs",
|
|
800
|
+
md: "px-2.5 py-1 text-sm",
|
|
801
|
+
lg: "px-3 py-1.5 text-base"
|
|
802
|
+
};
|
|
803
|
+
var Badge = ({
|
|
804
|
+
children,
|
|
805
|
+
variant = "default",
|
|
806
|
+
size = "md",
|
|
807
|
+
className = ""
|
|
808
|
+
}) => {
|
|
809
|
+
const { theme } = useTheme();
|
|
810
|
+
const variantClass = variantStyles2[variant];
|
|
811
|
+
const sizeClass = sizeStyles[size];
|
|
812
|
+
return /* @__PURE__ */ jsx15("span", { className: `inline-flex items-center font-medium rounded-full ${variantClass} ${sizeClass} ${className}`, children });
|
|
813
|
+
};
|
|
814
|
+
|
|
815
|
+
// src/components/Spinner.tsx
|
|
816
|
+
import { jsx as jsx16 } from "react/jsx-runtime";
|
|
817
|
+
var sizeClasses4 = {
|
|
818
|
+
sm: "w-4 h-4 border-2",
|
|
819
|
+
md: "w-8 h-8 border-2",
|
|
820
|
+
lg: "w-12 h-12 border-3",
|
|
821
|
+
xl: "w-16 h-16 border-4"
|
|
822
|
+
};
|
|
823
|
+
var colorClasses = {
|
|
824
|
+
primary: "border-blue-600 border-t-transparent",
|
|
825
|
+
secondary: "border-gray-600 border-t-transparent",
|
|
826
|
+
white: "border-white border-t-transparent"
|
|
827
|
+
};
|
|
828
|
+
var Spinner = ({
|
|
829
|
+
size = "md",
|
|
830
|
+
color = "primary",
|
|
831
|
+
className = ""
|
|
832
|
+
}) => {
|
|
833
|
+
const { theme } = useTheme();
|
|
834
|
+
const sizeClass = sizeClasses4[size];
|
|
835
|
+
const colorClass = colorClasses[color];
|
|
836
|
+
return /* @__PURE__ */ jsx16(
|
|
837
|
+
"div",
|
|
838
|
+
{
|
|
839
|
+
className: `inline-block rounded-full animate-spin ${sizeClass} ${colorClass} ${className}`,
|
|
840
|
+
role: "status",
|
|
841
|
+
"aria-label": "Loading",
|
|
842
|
+
children: /* @__PURE__ */ jsx16("span", { className: "sr-only", children: "Loading..." })
|
|
843
|
+
}
|
|
844
|
+
);
|
|
845
|
+
};
|
|
846
|
+
|
|
847
|
+
// src/components/Tabs.tsx
|
|
848
|
+
import { useState as useState5 } from "react";
|
|
849
|
+
import { jsx as jsx17, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
850
|
+
var Tabs = ({
|
|
851
|
+
tabs,
|
|
852
|
+
defaultIndex = 0,
|
|
853
|
+
onChange,
|
|
854
|
+
className = ""
|
|
855
|
+
}) => {
|
|
856
|
+
const { theme } = useTheme();
|
|
857
|
+
const [activeIndex, setActiveIndex] = useState5(defaultIndex);
|
|
858
|
+
const handleTabClick = (index) => {
|
|
859
|
+
if (tabs[index].disabled) return;
|
|
860
|
+
setActiveIndex(index);
|
|
861
|
+
onChange?.(index);
|
|
862
|
+
};
|
|
863
|
+
return /* @__PURE__ */ jsxs10("div", { className, children: [
|
|
864
|
+
/* @__PURE__ */ jsx17("div", { className: "border-b border-gray-200 dark:border-gray-700", children: /* @__PURE__ */ jsx17("nav", { className: "flex gap-8 px-6", "aria-label": "Tabs", children: tabs.map((tab, index) => /* @__PURE__ */ jsx17(
|
|
865
|
+
"button",
|
|
866
|
+
{
|
|
867
|
+
onClick: () => handleTabClick(index),
|
|
868
|
+
disabled: tab.disabled,
|
|
869
|
+
className: `py-4 px-1 border-b-2 font-medium text-sm transition-colors ${activeIndex === index ? "border-blue-600 text-blue-600 dark:text-blue-400" : "border-transparent text-gray-600 dark:text-gray-400 hover:text-gray-900 dark:hover:text-gray-200 hover:border-gray-300 dark:hover:border-gray-600"} ${tab.disabled ? "opacity-50 cursor-not-allowed" : "cursor-pointer"}`,
|
|
870
|
+
"aria-current": activeIndex === index ? "page" : void 0,
|
|
871
|
+
children: tab.label
|
|
872
|
+
},
|
|
873
|
+
index
|
|
874
|
+
)) }) }),
|
|
875
|
+
/* @__PURE__ */ jsx17("div", { children: tabs[activeIndex]?.content })
|
|
876
|
+
] });
|
|
877
|
+
};
|
|
878
|
+
|
|
879
|
+
// src/components/Table.tsx
|
|
880
|
+
import { jsx as jsx18, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
881
|
+
function Table({
|
|
882
|
+
columns,
|
|
883
|
+
data,
|
|
884
|
+
keyField = "id",
|
|
885
|
+
striped = false,
|
|
886
|
+
hoverable = true,
|
|
887
|
+
className = ""
|
|
888
|
+
}) {
|
|
889
|
+
const { theme } = useTheme();
|
|
890
|
+
return /* @__PURE__ */ jsxs11("div", { className: `overflow-x-auto ${className}`, children: [
|
|
891
|
+
/* @__PURE__ */ jsxs11("table", { className: "w-full text-left", children: [
|
|
892
|
+
/* @__PURE__ */ jsx18("thead", { className: "bg-gray-50 dark:bg-gray-800 border-b border-gray-200 dark:border-gray-700", children: /* @__PURE__ */ jsx18("tr", { children: columns.map((column) => /* @__PURE__ */ jsx18(
|
|
893
|
+
"th",
|
|
894
|
+
{
|
|
895
|
+
className: "px-6 py-3 text-xs font-medium text-gray-700 dark:text-gray-300 uppercase tracking-wider",
|
|
896
|
+
style: { width: column.width },
|
|
897
|
+
children: column.title
|
|
898
|
+
},
|
|
899
|
+
column.key
|
|
900
|
+
)) }) }),
|
|
901
|
+
/* @__PURE__ */ jsx18("tbody", { className: "bg-white dark:bg-gray-900 divide-y divide-gray-200 dark:divide-gray-700", children: data.map((row, rowIndex) => /* @__PURE__ */ jsx18(
|
|
902
|
+
"tr",
|
|
903
|
+
{
|
|
904
|
+
className: `
|
|
905
|
+
${striped && rowIndex % 2 === 1 ? "bg-gray-50 dark:bg-gray-800/50" : ""}
|
|
906
|
+
${hoverable ? "hover:bg-gray-100 dark:hover:bg-gray-800 transition-colors" : ""}
|
|
907
|
+
`,
|
|
908
|
+
children: columns.map((column) => /* @__PURE__ */ jsx18(
|
|
909
|
+
"td",
|
|
910
|
+
{
|
|
911
|
+
className: "px-6 py-4 text-sm text-gray-900 dark:text-gray-100",
|
|
912
|
+
children: column.render ? column.render(row[column.key], row, rowIndex) : row[column.key]
|
|
913
|
+
},
|
|
914
|
+
column.key
|
|
915
|
+
))
|
|
916
|
+
},
|
|
917
|
+
row[keyField] || rowIndex
|
|
918
|
+
)) })
|
|
919
|
+
] }),
|
|
920
|
+
data.length === 0 && /* @__PURE__ */ jsx18("div", { className: "text-center py-8 text-gray-500 dark:text-gray-400", children: "No data available" })
|
|
921
|
+
] });
|
|
922
|
+
}
|
|
923
|
+
|
|
924
|
+
// src/components/Pagination.tsx
|
|
925
|
+
import { jsx as jsx19, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
926
|
+
var Pagination = ({
|
|
927
|
+
currentPage,
|
|
928
|
+
totalPages,
|
|
929
|
+
onPageChange,
|
|
930
|
+
siblingCount = 1,
|
|
931
|
+
className = ""
|
|
932
|
+
}) => {
|
|
933
|
+
const { theme } = useTheme();
|
|
934
|
+
const range = (start, end) => {
|
|
935
|
+
const length = end - start + 1;
|
|
936
|
+
return Array.from({ length }, (_, idx) => idx + start);
|
|
937
|
+
};
|
|
938
|
+
const paginationRange = () => {
|
|
939
|
+
const totalPageNumbers = siblingCount + 5;
|
|
940
|
+
if (totalPageNumbers >= totalPages) {
|
|
941
|
+
return range(1, totalPages);
|
|
942
|
+
}
|
|
943
|
+
const leftSiblingIndex = Math.max(currentPage - siblingCount, 1);
|
|
944
|
+
const rightSiblingIndex = Math.min(currentPage + siblingCount, totalPages);
|
|
945
|
+
const shouldShowLeftDots = leftSiblingIndex > 2;
|
|
946
|
+
const shouldShowRightDots = rightSiblingIndex < totalPages - 2;
|
|
947
|
+
const firstPageIndex = 1;
|
|
948
|
+
const lastPageIndex = totalPages;
|
|
949
|
+
if (!shouldShowLeftDots && shouldShowRightDots) {
|
|
950
|
+
const leftItemCount = 3 + 2 * siblingCount;
|
|
951
|
+
const leftRange = range(1, leftItemCount);
|
|
952
|
+
return [...leftRange, "...", totalPages];
|
|
953
|
+
}
|
|
954
|
+
if (shouldShowLeftDots && !shouldShowRightDots) {
|
|
955
|
+
const rightItemCount = 3 + 2 * siblingCount;
|
|
956
|
+
const rightRange = range(totalPages - rightItemCount + 1, totalPages);
|
|
957
|
+
return [firstPageIndex, "...", ...rightRange];
|
|
958
|
+
}
|
|
959
|
+
if (shouldShowLeftDots && shouldShowRightDots) {
|
|
960
|
+
const middleRange = range(leftSiblingIndex, rightSiblingIndex);
|
|
961
|
+
return [firstPageIndex, "...", ...middleRange, "...", lastPageIndex];
|
|
962
|
+
}
|
|
963
|
+
return range(1, totalPages);
|
|
964
|
+
};
|
|
965
|
+
const pages = paginationRange();
|
|
966
|
+
return /* @__PURE__ */ jsxs12("nav", { className: `flex items-center gap-1 ${className}`, "aria-label": "Pagination", children: [
|
|
967
|
+
/* @__PURE__ */ jsx19(
|
|
968
|
+
"button",
|
|
969
|
+
{
|
|
970
|
+
onClick: () => onPageChange(currentPage - 1),
|
|
971
|
+
disabled: currentPage === 1,
|
|
972
|
+
className: "px-3 py-2 rounded-md text-sm font-medium text-gray-700 dark:text-gray-300 hover:bg-gray-100 dark:hover:bg-gray-800 disabled:opacity-50 disabled:cursor-not-allowed transition-colors",
|
|
973
|
+
"aria-label": "Previous page",
|
|
974
|
+
children: "Previous"
|
|
975
|
+
}
|
|
976
|
+
),
|
|
977
|
+
pages.map((page, index) => {
|
|
978
|
+
if (page === "...") {
|
|
979
|
+
return /* @__PURE__ */ jsx19(
|
|
980
|
+
"span",
|
|
981
|
+
{
|
|
982
|
+
className: "px-3 py-2 text-gray-700 dark:text-gray-300",
|
|
983
|
+
children: "..."
|
|
984
|
+
},
|
|
985
|
+
`dots-${index}`
|
|
986
|
+
);
|
|
987
|
+
}
|
|
988
|
+
return /* @__PURE__ */ jsx19(
|
|
989
|
+
"button",
|
|
990
|
+
{
|
|
991
|
+
onClick: () => onPageChange(page),
|
|
992
|
+
className: `px-3 py-2 rounded-md text-sm font-medium transition-colors ${currentPage === page ? "bg-blue-600 text-white" : "text-gray-700 dark:text-gray-300 hover:bg-gray-100 dark:hover:bg-gray-800"}`,
|
|
993
|
+
"aria-label": `Page ${page}`,
|
|
994
|
+
"aria-current": currentPage === page ? "page" : void 0,
|
|
995
|
+
children: page
|
|
996
|
+
},
|
|
997
|
+
page
|
|
998
|
+
);
|
|
999
|
+
}),
|
|
1000
|
+
/* @__PURE__ */ jsx19(
|
|
1001
|
+
"button",
|
|
1002
|
+
{
|
|
1003
|
+
onClick: () => onPageChange(currentPage + 1),
|
|
1004
|
+
disabled: currentPage === totalPages,
|
|
1005
|
+
className: "px-3 py-2 rounded-md text-sm font-medium text-gray-700 dark:text-gray-300 hover:bg-gray-100 dark:hover:bg-gray-800 disabled:opacity-50 disabled:cursor-not-allowed transition-colors",
|
|
1006
|
+
"aria-label": "Next page",
|
|
1007
|
+
children: "Next"
|
|
1008
|
+
}
|
|
1009
|
+
)
|
|
1010
|
+
] });
|
|
1011
|
+
};
|
|
1012
|
+
|
|
1013
|
+
// src/components/DatePicker.tsx
|
|
1014
|
+
import { forwardRef as forwardRef4 } from "react";
|
|
1015
|
+
import { jsx as jsx20, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
1016
|
+
var DatePicker = forwardRef4(
|
|
1017
|
+
({ label, error, helperText, className = "", disabled, ...props }, ref) => {
|
|
1018
|
+
const { theme } = useTheme();
|
|
1019
|
+
const baseStyles = "w-full appearance-none rounded-lg border border-gray-300 bg-white text-gray-900 px-4 py-2.5 text-base transition-all duration-150 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent shadow-sm hover:border-gray-400 dark:bg-gray-800 dark:border-gray-600 dark:text-gray-100 dark:hover:border-gray-500";
|
|
1020
|
+
const errorStyles = error ? "border-red-500 focus:ring-red-500 dark:border-red-500" : "";
|
|
1021
|
+
const disabledStyles = disabled ? "opacity-50 cursor-not-allowed bg-gray-50 dark:bg-gray-900" : "";
|
|
1022
|
+
return /* @__PURE__ */ jsxs13("div", { className, children: [
|
|
1023
|
+
label && /* @__PURE__ */ jsx20("label", { className: "block text-sm font-medium text-gray-700 dark:text-gray-300 mb-1", children: label }),
|
|
1024
|
+
/* @__PURE__ */ jsx20(
|
|
1025
|
+
"input",
|
|
1026
|
+
{
|
|
1027
|
+
ref,
|
|
1028
|
+
type: "date",
|
|
1029
|
+
disabled,
|
|
1030
|
+
className: `${baseStyles} ${errorStyles} ${disabledStyles}`.trim(),
|
|
1031
|
+
...props
|
|
1032
|
+
}
|
|
1033
|
+
),
|
|
1034
|
+
error && /* @__PURE__ */ jsx20("p", { className: "mt-1 text-sm text-red-600 dark:text-red-400", children: error }),
|
|
1035
|
+
helperText && !error && /* @__PURE__ */ jsx20("p", { className: "mt-1 text-sm text-gray-500 dark:text-gray-400", children: helperText })
|
|
1036
|
+
] });
|
|
1037
|
+
}
|
|
1038
|
+
);
|
|
1039
|
+
DatePicker.displayName = "DatePicker";
|
|
1040
|
+
|
|
1041
|
+
// src/components/TimePicker.tsx
|
|
1042
|
+
import { forwardRef as forwardRef5 } from "react";
|
|
1043
|
+
import { jsx as jsx21, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
1044
|
+
var TimePicker = forwardRef5(
|
|
1045
|
+
({ label, error, helperText, className = "", disabled, ...props }, ref) => {
|
|
1046
|
+
const { theme } = useTheme();
|
|
1047
|
+
const baseStyles = "w-full appearance-none rounded-lg border border-gray-300 bg-white text-gray-900 px-4 py-2.5 text-base transition-all duration-150 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent shadow-sm hover:border-gray-400 dark:bg-gray-800 dark:border-gray-600 dark:text-gray-100 dark:hover:border-gray-500";
|
|
1048
|
+
const errorStyles = error ? "border-red-500 focus:ring-red-500 dark:border-red-500" : "";
|
|
1049
|
+
const disabledStyles = disabled ? "opacity-50 cursor-not-allowed bg-gray-50 dark:bg-gray-900" : "";
|
|
1050
|
+
return /* @__PURE__ */ jsxs14("div", { className, children: [
|
|
1051
|
+
label && /* @__PURE__ */ jsx21("label", { className: "block text-sm font-medium text-gray-700 dark:text-gray-300 mb-1", children: label }),
|
|
1052
|
+
/* @__PURE__ */ jsx21(
|
|
1053
|
+
"input",
|
|
1054
|
+
{
|
|
1055
|
+
ref,
|
|
1056
|
+
type: "time",
|
|
1057
|
+
disabled,
|
|
1058
|
+
className: `${baseStyles} ${errorStyles} ${disabledStyles}`.trim(),
|
|
1059
|
+
...props
|
|
1060
|
+
}
|
|
1061
|
+
),
|
|
1062
|
+
error && /* @__PURE__ */ jsx21("p", { className: "mt-1 text-sm text-red-600 dark:text-red-400", children: error }),
|
|
1063
|
+
helperText && !error && /* @__PURE__ */ jsx21("p", { className: "mt-1 text-sm text-gray-500 dark:text-gray-400", children: helperText })
|
|
1064
|
+
] });
|
|
1065
|
+
}
|
|
1066
|
+
);
|
|
1067
|
+
TimePicker.displayName = "TimePicker";
|
|
1068
|
+
|
|
1069
|
+
// src/components/DateTimePicker.tsx
|
|
1070
|
+
import { forwardRef as forwardRef6 } from "react";
|
|
1071
|
+
import { jsx as jsx22, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
1072
|
+
var DateTimePicker = forwardRef6(
|
|
1073
|
+
({ label, error, helperText, className = "", disabled, ...props }, ref) => {
|
|
1074
|
+
const { theme } = useTheme();
|
|
1075
|
+
const baseStyles = "w-full appearance-none rounded-lg border border-gray-300 bg-white text-gray-900 px-4 py-2.5 text-base transition-all duration-150 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent shadow-sm hover:border-gray-400 dark:bg-gray-800 dark:border-gray-600 dark:text-gray-100 dark:hover:border-gray-500";
|
|
1076
|
+
const errorStyles = error ? "border-red-500 focus:ring-red-500 dark:border-red-500" : "";
|
|
1077
|
+
const disabledStyles = disabled ? "opacity-50 cursor-not-allowed bg-gray-50 dark:bg-gray-900" : "";
|
|
1078
|
+
return /* @__PURE__ */ jsxs15("div", { className, children: [
|
|
1079
|
+
label && /* @__PURE__ */ jsx22("label", { className: "block text-sm font-medium text-gray-700 dark:text-gray-300 mb-1", children: label }),
|
|
1080
|
+
/* @__PURE__ */ jsx22(
|
|
1081
|
+
"input",
|
|
1082
|
+
{
|
|
1083
|
+
ref,
|
|
1084
|
+
type: "datetime-local",
|
|
1085
|
+
disabled,
|
|
1086
|
+
className: `${baseStyles} ${errorStyles} ${disabledStyles}`.trim(),
|
|
1087
|
+
...props
|
|
1088
|
+
}
|
|
1089
|
+
),
|
|
1090
|
+
error && /* @__PURE__ */ jsx22("p", { className: "mt-1 text-sm text-red-600 dark:text-red-400", children: error }),
|
|
1091
|
+
helperText && !error && /* @__PURE__ */ jsx22("p", { className: "mt-1 text-sm text-gray-500 dark:text-gray-400", children: helperText })
|
|
1092
|
+
] });
|
|
1093
|
+
}
|
|
1094
|
+
);
|
|
1095
|
+
DateTimePicker.displayName = "DateTimePicker";
|
|
1096
|
+
|
|
285
1097
|
// src/utils/theme-script.ts
|
|
286
1098
|
var themeScript = `
|
|
287
1099
|
(function() {
|
|
@@ -314,13 +1126,172 @@ var themeScript = `
|
|
|
314
1126
|
function getThemeScript() {
|
|
315
1127
|
return themeScript;
|
|
316
1128
|
}
|
|
1129
|
+
|
|
1130
|
+
// src/icons/Icon.tsx
|
|
1131
|
+
import { Fragment as Fragment2, jsx as jsx23, jsxs as jsxs16 } from "react/jsx-runtime";
|
|
1132
|
+
var sizeClasses5 = {
|
|
1133
|
+
xs: "w-3 h-3",
|
|
1134
|
+
sm: "w-4 h-4",
|
|
1135
|
+
md: "w-5 h-5",
|
|
1136
|
+
lg: "w-6 h-6",
|
|
1137
|
+
xl: "w-8 h-8"
|
|
1138
|
+
};
|
|
1139
|
+
var createIcon = (displayName, path) => {
|
|
1140
|
+
const Icon = ({ size = "md", className = "", color = "currentColor" }) => {
|
|
1141
|
+
const sizeClass = sizeClasses5[size];
|
|
1142
|
+
return /* @__PURE__ */ jsx23(
|
|
1143
|
+
"svg",
|
|
1144
|
+
{
|
|
1145
|
+
className: `${sizeClass} ${className}`,
|
|
1146
|
+
fill: "none",
|
|
1147
|
+
viewBox: "0 0 24 24",
|
|
1148
|
+
stroke: color,
|
|
1149
|
+
"aria-hidden": "true",
|
|
1150
|
+
children: path
|
|
1151
|
+
}
|
|
1152
|
+
);
|
|
1153
|
+
};
|
|
1154
|
+
Icon.displayName = displayName;
|
|
1155
|
+
return Icon;
|
|
1156
|
+
};
|
|
1157
|
+
var HomeIcon = createIcon(
|
|
1158
|
+
"HomeIcon",
|
|
1159
|
+
/* @__PURE__ */ jsx23("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M3 12l2-2m0 0l7-7 7 7M5 10v10a1 1 0 001 1h3m10-11l2 2m-2-2v10a1 1 0 01-1 1h-3m-6 0a1 1 0 001-1v-4a1 1 0 011-1h2a1 1 0 011 1v4a1 1 0 001 1m-6 0h6" })
|
|
1160
|
+
);
|
|
1161
|
+
var UserIcon = createIcon(
|
|
1162
|
+
"UserIcon",
|
|
1163
|
+
/* @__PURE__ */ jsx23("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M16 7a4 4 0 11-8 0 4 4 0 018 0zM12 14a7 7 0 00-7 7h14a7 7 0 00-7-7z" })
|
|
1164
|
+
);
|
|
1165
|
+
var SearchIcon = createIcon(
|
|
1166
|
+
"SearchIcon",
|
|
1167
|
+
/* @__PURE__ */ jsx23("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z" })
|
|
1168
|
+
);
|
|
1169
|
+
var BellIcon = createIcon(
|
|
1170
|
+
"BellIcon",
|
|
1171
|
+
/* @__PURE__ */ jsx23("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M15 17h5l-1.405-1.405A2.032 2.032 0 0118 14.158V11a6.002 6.002 0 00-4-5.659V5a2 2 0 10-4 0v.341C7.67 6.165 6 8.388 6 11v3.159c0 .538-.214 1.055-.595 1.436L4 17h5m6 0v1a3 3 0 11-6 0v-1m6 0H9" })
|
|
1172
|
+
);
|
|
1173
|
+
var SettingsIcon = createIcon(
|
|
1174
|
+
"SettingsIcon",
|
|
1175
|
+
/* @__PURE__ */ jsxs16(Fragment2, { children: [
|
|
1176
|
+
/* @__PURE__ */ jsx23("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.065 2.572c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.572 1.065c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.065-2.572c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z" }),
|
|
1177
|
+
/* @__PURE__ */ jsx23("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M15 12a3 3 0 11-6 0 3 3 0 016 0z" })
|
|
1178
|
+
] })
|
|
1179
|
+
);
|
|
1180
|
+
var MenuIcon = createIcon(
|
|
1181
|
+
"MenuIcon",
|
|
1182
|
+
/* @__PURE__ */ jsx23("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M4 6h16M4 12h16M4 18h16" })
|
|
1183
|
+
);
|
|
1184
|
+
var CloseIcon = createIcon(
|
|
1185
|
+
"CloseIcon",
|
|
1186
|
+
/* @__PURE__ */ jsx23("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M6 18L18 6M6 6l12 12" })
|
|
1187
|
+
);
|
|
1188
|
+
var ChevronDownIcon = createIcon(
|
|
1189
|
+
"ChevronDownIcon",
|
|
1190
|
+
/* @__PURE__ */ jsx23("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M19 9l-7 7-7-7" })
|
|
1191
|
+
);
|
|
1192
|
+
var ChevronRightIcon = createIcon(
|
|
1193
|
+
"ChevronRightIcon",
|
|
1194
|
+
/* @__PURE__ */ jsx23("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M9 5l7 7-7 7" })
|
|
1195
|
+
);
|
|
1196
|
+
var CheckIcon = createIcon(
|
|
1197
|
+
"CheckIcon",
|
|
1198
|
+
/* @__PURE__ */ jsx23("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M5 13l4 4L19 7" })
|
|
1199
|
+
);
|
|
1200
|
+
var PlusIcon = createIcon(
|
|
1201
|
+
"PlusIcon",
|
|
1202
|
+
/* @__PURE__ */ jsx23("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M12 4v16m8-8H4" })
|
|
1203
|
+
);
|
|
1204
|
+
var TrashIcon = createIcon(
|
|
1205
|
+
"TrashIcon",
|
|
1206
|
+
/* @__PURE__ */ jsx23("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16" })
|
|
1207
|
+
);
|
|
1208
|
+
var EditIcon = createIcon(
|
|
1209
|
+
"EditIcon",
|
|
1210
|
+
/* @__PURE__ */ jsx23("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M11 5H6a2 2 0 00-2 2v11a2 2 0 002 2h11a2 2 0 002-2v-5m-1.414-9.414a2 2 0 112.828 2.828L11.828 15H9v-2.828l8.586-8.586z" })
|
|
1211
|
+
);
|
|
1212
|
+
var MailIcon = createIcon(
|
|
1213
|
+
"MailIcon",
|
|
1214
|
+
/* @__PURE__ */ jsx23("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M3 8l7.89 5.26a2 2 0 002.22 0L21 8M5 19h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z" })
|
|
1215
|
+
);
|
|
1216
|
+
var StarIcon = createIcon(
|
|
1217
|
+
"StarIcon",
|
|
1218
|
+
/* @__PURE__ */ jsx23("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M11.049 2.927c.3-.921 1.603-.921 1.902 0l1.519 4.674a1 1 0 00.95.69h4.915c.969 0 1.371 1.24.588 1.81l-3.976 2.888a1 1 0 00-.363 1.118l1.518 4.674c.3.922-.755 1.688-1.538 1.118l-3.976-2.888a1 1 0 00-1.176 0l-3.976 2.888c-.783.57-1.838-.197-1.538-1.118l1.518-4.674a1 1 0 00-.363-1.118l-3.976-2.888c-.784-.57-.38-1.81.588-1.81h4.914a1 1 0 00.951-.69l1.519-4.674z" })
|
|
1219
|
+
);
|
|
1220
|
+
var HeartIcon = createIcon(
|
|
1221
|
+
"HeartIcon",
|
|
1222
|
+
/* @__PURE__ */ jsx23("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M4.318 6.318a4.5 4.5 0 000 6.364L12 20.364l7.682-7.682a4.5 4.5 0 00-6.364-6.364L12 7.636l-1.318-1.318a4.5 4.5 0 00-6.364 0z" })
|
|
1223
|
+
);
|
|
1224
|
+
var DownloadIcon = createIcon(
|
|
1225
|
+
"DownloadIcon",
|
|
1226
|
+
/* @__PURE__ */ jsx23("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4" })
|
|
1227
|
+
);
|
|
1228
|
+
var UploadIcon = createIcon(
|
|
1229
|
+
"UploadIcon",
|
|
1230
|
+
/* @__PURE__ */ jsx23("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-8l-4-4m0 0L8 8m4-4v12" })
|
|
1231
|
+
);
|
|
1232
|
+
var CameraIcon = createIcon(
|
|
1233
|
+
"CameraIcon",
|
|
1234
|
+
/* @__PURE__ */ jsxs16(Fragment2, { children: [
|
|
1235
|
+
/* @__PURE__ */ jsx23("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M3 9a2 2 0 012-2h.93a2 2 0 001.664-.89l.812-1.22A2 2 0 0110.07 4h3.86a2 2 0 011.664.89l.812 1.22A2 2 0 0018.07 7H19a2 2 0 012 2v9a2 2 0 01-2 2H5a2 2 0 01-2-2V9z" }),
|
|
1236
|
+
/* @__PURE__ */ jsx23("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M15 13a3 3 0 11-6 0 3 3 0 016 0z" })
|
|
1237
|
+
] })
|
|
1238
|
+
);
|
|
1239
|
+
var LockIcon = createIcon(
|
|
1240
|
+
"LockIcon",
|
|
1241
|
+
/* @__PURE__ */ jsx23("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M12 15v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2zm10-10V7a4 4 0 00-8 0v4h8z" })
|
|
1242
|
+
);
|
|
1243
|
+
var CalendarIcon = createIcon(
|
|
1244
|
+
"CalendarIcon",
|
|
1245
|
+
/* @__PURE__ */ jsx23("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M8 7V3m8 4V3m-9 8h10M5 21h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z" })
|
|
1246
|
+
);
|
|
317
1247
|
export {
|
|
1248
|
+
ActionMenu,
|
|
1249
|
+
Alert,
|
|
1250
|
+
Badge,
|
|
1251
|
+
BellIcon,
|
|
318
1252
|
Button,
|
|
1253
|
+
CalendarIcon,
|
|
1254
|
+
CameraIcon,
|
|
1255
|
+
Card,
|
|
1256
|
+
CheckIcon,
|
|
1257
|
+
Checkbox,
|
|
1258
|
+
ChevronDownIcon,
|
|
1259
|
+
ChevronRightIcon,
|
|
1260
|
+
CloseIcon,
|
|
1261
|
+
DatePicker,
|
|
1262
|
+
DateTimePicker,
|
|
1263
|
+
DownloadIcon,
|
|
1264
|
+
Drawer,
|
|
1265
|
+
EditIcon,
|
|
1266
|
+
HeartIcon,
|
|
1267
|
+
HomeIcon,
|
|
1268
|
+
LockIcon,
|
|
1269
|
+
MailIcon,
|
|
1270
|
+
MenuIcon,
|
|
1271
|
+
Modal,
|
|
1272
|
+
Navbar,
|
|
1273
|
+
Pagination,
|
|
1274
|
+
PlusIcon,
|
|
1275
|
+
SearchIcon,
|
|
319
1276
|
Select,
|
|
1277
|
+
SettingsIcon,
|
|
1278
|
+
Sidebar,
|
|
1279
|
+
SidebarProvider,
|
|
1280
|
+
Spinner,
|
|
1281
|
+
StarIcon,
|
|
1282
|
+
Table,
|
|
1283
|
+
Tabs,
|
|
1284
|
+
TextInput,
|
|
320
1285
|
ThemeProvider,
|
|
1286
|
+
TimePicker,
|
|
1287
|
+
Toggle,
|
|
1288
|
+
TrashIcon,
|
|
1289
|
+
UploadIcon,
|
|
1290
|
+
UserIcon,
|
|
321
1291
|
getThemeScript,
|
|
322
1292
|
themeScript,
|
|
323
1293
|
themes,
|
|
1294
|
+
useSidebar,
|
|
324
1295
|
useTheme
|
|
325
1296
|
};
|
|
326
1297
|
//# sourceMappingURL=index.mjs.map
|