@almadar/ui 2.25.4 → 2.26.0
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/avl/index.cjs +43 -43
- package/dist/avl/index.js +43 -43
- package/dist/components/index.cjs +860 -860
- package/dist/components/index.js +860 -860
- package/dist/components/organisms/game/three/index.cjs +41 -41
- package/dist/components/organisms/game/three/index.js +41 -41
- package/dist/docs/index.cjs +142 -142
- package/dist/docs/index.js +142 -142
- package/dist/illustrations/index.cjs +17 -17
- package/dist/illustrations/index.js +17 -17
- package/dist/marketing/index.cjs +167 -167
- package/dist/marketing/index.js +167 -167
- package/dist/providers/index.cjs +178 -178
- package/dist/providers/index.js +178 -178
- package/dist/runtime/index.cjs +802 -802
- package/dist/runtime/index.js +802 -802
- package/package.json +1 -1
- package/tailwind-preset.cjs +30 -188
package/dist/runtime/index.js
CHANGED
|
@@ -1513,28 +1513,28 @@ var marginYStyles = {
|
|
|
1513
1513
|
};
|
|
1514
1514
|
var bgStyles = {
|
|
1515
1515
|
transparent: "bg-transparent",
|
|
1516
|
-
primary: "bg-
|
|
1517
|
-
secondary: "bg-
|
|
1518
|
-
muted: "bg-
|
|
1519
|
-
accent: "bg-
|
|
1520
|
-
surface: "bg-
|
|
1521
|
-
overlay: "bg-
|
|
1516
|
+
primary: "bg-primary text-primary-foreground",
|
|
1517
|
+
secondary: "bg-secondary text-secondary-foreground",
|
|
1518
|
+
muted: "bg-muted text-foreground",
|
|
1519
|
+
accent: "bg-accent text-accent-foreground",
|
|
1520
|
+
surface: "bg-card",
|
|
1521
|
+
overlay: "bg-card/80 backdrop-blur-sm"
|
|
1522
1522
|
};
|
|
1523
1523
|
var roundedStyles = {
|
|
1524
1524
|
none: "rounded-none",
|
|
1525
|
-
sm: "rounded-
|
|
1526
|
-
md: "rounded-
|
|
1527
|
-
lg: "rounded-
|
|
1528
|
-
xl: "rounded-
|
|
1529
|
-
"2xl": "rounded-
|
|
1530
|
-
full: "rounded-
|
|
1525
|
+
sm: "rounded-sm",
|
|
1526
|
+
md: "rounded-md",
|
|
1527
|
+
lg: "rounded-lg",
|
|
1528
|
+
xl: "rounded-xl",
|
|
1529
|
+
"2xl": "rounded-xl",
|
|
1530
|
+
full: "rounded-full"
|
|
1531
1531
|
};
|
|
1532
1532
|
var shadowStyles = {
|
|
1533
1533
|
none: "shadow-none",
|
|
1534
|
-
sm: "shadow-
|
|
1535
|
-
md: "shadow
|
|
1536
|
-
lg: "shadow-
|
|
1537
|
-
xl: "shadow-
|
|
1534
|
+
sm: "shadow-sm",
|
|
1535
|
+
md: "shadow",
|
|
1536
|
+
lg: "shadow-lg",
|
|
1537
|
+
xl: "shadow-lg"
|
|
1538
1538
|
};
|
|
1539
1539
|
var displayStyles = {
|
|
1540
1540
|
block: "block",
|
|
@@ -1622,7 +1622,7 @@ var Box = React114__default.forwardRef(
|
|
|
1622
1622
|
// Background
|
|
1623
1623
|
bgStyles[bg],
|
|
1624
1624
|
// Border - uses theme variables
|
|
1625
|
-
border && "border-[length:var(--border-width)] border-
|
|
1625
|
+
border && "border-[length:var(--border-width)] border-border",
|
|
1626
1626
|
// Rounded
|
|
1627
1627
|
roundedStyles[rounded],
|
|
1628
1628
|
// Shadow
|
|
@@ -1651,30 +1651,30 @@ var Box = React114__default.forwardRef(
|
|
|
1651
1651
|
);
|
|
1652
1652
|
Box.displayName = "Box";
|
|
1653
1653
|
var variantStyles = {
|
|
1654
|
-
h1: "text-4xl font-bold tracking-tight text-
|
|
1655
|
-
h2: "text-3xl font-bold tracking-tight text-
|
|
1656
|
-
h3: "text-2xl font-bold text-
|
|
1657
|
-
h4: "text-xl font-bold text-
|
|
1658
|
-
h5: "text-lg font-bold text-
|
|
1659
|
-
h6: "text-base font-bold text-
|
|
1660
|
-
heading: "text-2xl font-bold text-
|
|
1661
|
-
subheading: "text-lg font-semibold text-
|
|
1662
|
-
body1: "text-base font-normal text-
|
|
1663
|
-
body2: "text-sm font-normal text-
|
|
1664
|
-
body: "text-base font-normal text-
|
|
1665
|
-
caption: "text-xs font-normal text-
|
|
1666
|
-
overline: "text-xs uppercase tracking-wide font-bold text-
|
|
1667
|
-
small: "text-sm font-normal text-
|
|
1668
|
-
large: "text-lg font-medium text-
|
|
1669
|
-
label: "text-sm font-medium text-
|
|
1654
|
+
h1: "text-4xl font-bold tracking-tight text-foreground",
|
|
1655
|
+
h2: "text-3xl font-bold tracking-tight text-foreground",
|
|
1656
|
+
h3: "text-2xl font-bold text-foreground",
|
|
1657
|
+
h4: "text-xl font-bold text-foreground",
|
|
1658
|
+
h5: "text-lg font-bold text-foreground",
|
|
1659
|
+
h6: "text-base font-bold text-foreground",
|
|
1660
|
+
heading: "text-2xl font-bold text-foreground",
|
|
1661
|
+
subheading: "text-lg font-semibold text-foreground",
|
|
1662
|
+
body1: "text-base font-normal text-foreground",
|
|
1663
|
+
body2: "text-sm font-normal text-foreground",
|
|
1664
|
+
body: "text-base font-normal text-foreground",
|
|
1665
|
+
caption: "text-xs font-normal text-muted-foreground",
|
|
1666
|
+
overline: "text-xs uppercase tracking-wide font-bold text-muted-foreground",
|
|
1667
|
+
small: "text-sm font-normal text-foreground",
|
|
1668
|
+
large: "text-lg font-medium text-foreground",
|
|
1669
|
+
label: "text-sm font-medium text-foreground"
|
|
1670
1670
|
};
|
|
1671
1671
|
var colorStyles = {
|
|
1672
|
-
primary: "text-
|
|
1673
|
-
secondary: "text-
|
|
1674
|
-
muted: "text-
|
|
1675
|
-
error: "text-
|
|
1676
|
-
success: "text-
|
|
1677
|
-
warning: "text-
|
|
1672
|
+
primary: "text-foreground",
|
|
1673
|
+
secondary: "text-muted-foreground",
|
|
1674
|
+
muted: "text-muted-foreground",
|
|
1675
|
+
error: "text-error",
|
|
1676
|
+
success: "text-success",
|
|
1677
|
+
warning: "text-warning",
|
|
1678
1678
|
inherit: "text-inherit"
|
|
1679
1679
|
};
|
|
1680
1680
|
var weightStyles = {
|
|
@@ -2363,7 +2363,7 @@ var Modal = ({
|
|
|
2363
2363
|
isDragging.current = false;
|
|
2364
2364
|
setDragY(0);
|
|
2365
2365
|
},
|
|
2366
|
-
children: /* @__PURE__ */ jsx("div", { className: "w-10 h-1 rounded-full bg-
|
|
2366
|
+
children: /* @__PURE__ */ jsx("div", { className: "w-10 h-1 rounded-full bg-border" })
|
|
2367
2367
|
}
|
|
2368
2368
|
),
|
|
2369
2369
|
(title || showCloseButton) && /* @__PURE__ */ jsxs(
|
|
@@ -2371,7 +2371,7 @@ var Modal = ({
|
|
|
2371
2371
|
{
|
|
2372
2372
|
className: cn(
|
|
2373
2373
|
"px-6 py-4 flex items-center justify-between",
|
|
2374
|
-
"border-b-[length:var(--border-width)] border-
|
|
2374
|
+
"border-b-[length:var(--border-width)] border-border"
|
|
2375
2375
|
),
|
|
2376
2376
|
children: [
|
|
2377
2377
|
title && /* @__PURE__ */ jsx(Typography, { variant: "h4", as: "h2", id: "modal-title", children: title }),
|
|
@@ -2382,8 +2382,8 @@ var Modal = ({
|
|
|
2382
2382
|
onClick: handleClose,
|
|
2383
2383
|
"data-event": "CLOSE",
|
|
2384
2384
|
className: cn(
|
|
2385
|
-
"p-1 transition-colors rounded-
|
|
2386
|
-
"hover:bg-
|
|
2385
|
+
"p-1 transition-colors rounded-sm",
|
|
2386
|
+
"hover:bg-muted"
|
|
2387
2387
|
),
|
|
2388
2388
|
"aria-label": "Close modal",
|
|
2389
2389
|
children: /* @__PURE__ */ jsx(Icon, { icon: X, size: "md" })
|
|
@@ -2397,8 +2397,8 @@ var Modal = ({
|
|
|
2397
2397
|
"div",
|
|
2398
2398
|
{
|
|
2399
2399
|
className: cn(
|
|
2400
|
-
"px-6 py-4 bg-
|
|
2401
|
-
"border-t-[length:var(--border-width)] border-
|
|
2400
|
+
"px-6 py-4 bg-muted",
|
|
2401
|
+
"border-t-[length:var(--border-width)] border-border"
|
|
2402
2402
|
),
|
|
2403
2403
|
children: footer
|
|
2404
2404
|
}
|
|
@@ -2519,7 +2519,7 @@ var Drawer = ({
|
|
|
2519
2519
|
{
|
|
2520
2520
|
className: cn(
|
|
2521
2521
|
"px-6 py-4 flex items-center justify-between shrink-0",
|
|
2522
|
-
"border-b-[length:var(--border-width)] border-
|
|
2522
|
+
"border-b-[length:var(--border-width)] border-border"
|
|
2523
2523
|
),
|
|
2524
2524
|
children: [
|
|
2525
2525
|
title && /* @__PURE__ */ jsx(Typography, { variant: "h4", as: "h2", id: "drawer-title", children: title }),
|
|
@@ -2529,8 +2529,8 @@ var Drawer = ({
|
|
|
2529
2529
|
type: "button",
|
|
2530
2530
|
onClick: handleClose,
|
|
2531
2531
|
className: cn(
|
|
2532
|
-
"p-1 transition-colors rounded-
|
|
2533
|
-
"hover:bg-
|
|
2532
|
+
"p-1 transition-colors rounded-sm",
|
|
2533
|
+
"hover:bg-muted",
|
|
2534
2534
|
!title && "ml-auto"
|
|
2535
2535
|
),
|
|
2536
2536
|
"aria-label": "Close drawer",
|
|
@@ -2545,8 +2545,8 @@ var Drawer = ({
|
|
|
2545
2545
|
"div",
|
|
2546
2546
|
{
|
|
2547
2547
|
className: cn(
|
|
2548
|
-
"px-6 py-4 shrink-0 bg-
|
|
2549
|
-
"border-t-[length:var(--border-width)] border-
|
|
2548
|
+
"px-6 py-4 shrink-0 bg-muted",
|
|
2549
|
+
"border-t-[length:var(--border-width)] border-border"
|
|
2550
2550
|
),
|
|
2551
2551
|
children: footer
|
|
2552
2552
|
}
|
|
@@ -2583,49 +2583,49 @@ var Drawer = ({
|
|
|
2583
2583
|
Drawer.displayName = "Drawer";
|
|
2584
2584
|
var variantStyles2 = {
|
|
2585
2585
|
primary: [
|
|
2586
|
-
"bg-
|
|
2586
|
+
"bg-primary text-primary-foreground",
|
|
2587
2587
|
"border-none",
|
|
2588
|
-
"shadow-
|
|
2589
|
-
"hover:bg-
|
|
2590
|
-
"active:scale-[var(--active-scale)] active:shadow-
|
|
2588
|
+
"shadow-sm",
|
|
2589
|
+
"hover:bg-primary-hover hover:shadow-lg",
|
|
2590
|
+
"active:scale-[var(--active-scale)] active:shadow-sm"
|
|
2591
2591
|
].join(" "),
|
|
2592
2592
|
secondary: [
|
|
2593
|
-
"bg-transparent text-
|
|
2594
|
-
"border border-
|
|
2595
|
-
"hover:bg-
|
|
2593
|
+
"bg-transparent text-accent",
|
|
2594
|
+
"border border-accent",
|
|
2595
|
+
"hover:bg-accent hover:text-white hover:border-accent",
|
|
2596
2596
|
"active:scale-[var(--active-scale)]"
|
|
2597
2597
|
].join(" "),
|
|
2598
2598
|
ghost: [
|
|
2599
|
-
"bg-transparent text-
|
|
2600
|
-
"hover:text-
|
|
2599
|
+
"bg-transparent text-muted-foreground",
|
|
2600
|
+
"hover:text-foreground hover:bg-muted",
|
|
2601
2601
|
"active:scale-[var(--active-scale)]"
|
|
2602
2602
|
].join(" "),
|
|
2603
2603
|
danger: [
|
|
2604
|
-
"bg-
|
|
2605
|
-
"border-[length:var(--border-width)] border-
|
|
2606
|
-
"shadow-
|
|
2607
|
-
"hover:bg-
|
|
2608
|
-
"active:scale-[var(--active-scale)] active:shadow-
|
|
2604
|
+
"bg-surface text-error",
|
|
2605
|
+
"border-[length:var(--border-width)] border-error",
|
|
2606
|
+
"shadow-sm",
|
|
2607
|
+
"hover:bg-error hover:text-error-foreground hover:shadow-lg",
|
|
2608
|
+
"active:scale-[var(--active-scale)] active:shadow-sm"
|
|
2609
2609
|
].join(" "),
|
|
2610
2610
|
success: [
|
|
2611
|
-
"bg-
|
|
2612
|
-
"border-[length:var(--border-width)] border-
|
|
2613
|
-
"shadow-
|
|
2614
|
-
"hover:bg-
|
|
2615
|
-
"active:scale-[var(--active-scale)] active:shadow-
|
|
2611
|
+
"bg-surface text-success",
|
|
2612
|
+
"border-[length:var(--border-width)] border-success",
|
|
2613
|
+
"shadow-sm",
|
|
2614
|
+
"hover:bg-success hover:text-success-foreground hover:shadow-lg",
|
|
2615
|
+
"active:scale-[var(--active-scale)] active:shadow-sm"
|
|
2616
2616
|
].join(" "),
|
|
2617
2617
|
warning: [
|
|
2618
|
-
"bg-
|
|
2619
|
-
"border-[length:var(--border-width)] border-
|
|
2620
|
-
"shadow-
|
|
2621
|
-
"hover:bg-
|
|
2622
|
-
"active:scale-[var(--active-scale)] active:shadow-
|
|
2618
|
+
"bg-surface text-warning",
|
|
2619
|
+
"border-[length:var(--border-width)] border-warning",
|
|
2620
|
+
"shadow-sm",
|
|
2621
|
+
"hover:bg-warning hover:text-warning-foreground hover:shadow-lg",
|
|
2622
|
+
"active:scale-[var(--active-scale)] active:shadow-sm"
|
|
2623
2623
|
].join(" "),
|
|
2624
2624
|
// "default" is an alias for secondary
|
|
2625
2625
|
default: [
|
|
2626
|
-
"bg-
|
|
2627
|
-
"border-[length:var(--border-width-thin)] border-
|
|
2628
|
-
"hover:bg-
|
|
2626
|
+
"bg-secondary text-secondary-foreground",
|
|
2627
|
+
"border-[length:var(--border-width-thin)] border-border",
|
|
2628
|
+
"hover:bg-secondary-hover",
|
|
2629
2629
|
"active:scale-[var(--active-scale)]"
|
|
2630
2630
|
].join(" ")
|
|
2631
2631
|
};
|
|
@@ -2696,10 +2696,10 @@ var Button = React114__default.forwardRef(
|
|
|
2696
2696
|
className: cn(
|
|
2697
2697
|
"inline-flex items-center justify-center gap-2",
|
|
2698
2698
|
"font-[var(--font-weight-medium)]",
|
|
2699
|
-
"rounded-
|
|
2699
|
+
"rounded-sm",
|
|
2700
2700
|
"cursor-pointer",
|
|
2701
2701
|
"transition-all duration-[var(--transition-normal)]",
|
|
2702
|
-
"focus:outline-none focus:ring-[length:var(--focus-ring-width)] focus:ring-
|
|
2702
|
+
"focus:outline-none focus:ring-[length:var(--focus-ring-width)] focus:ring-ring focus:ring-offset-[length:var(--focus-ring-offset)]",
|
|
2703
2703
|
"disabled:opacity-50 disabled:cursor-not-allowed",
|
|
2704
2704
|
variantStyles2[variant],
|
|
2705
2705
|
sizeStyles2[size],
|
|
@@ -2720,34 +2720,34 @@ var Button = React114__default.forwardRef(
|
|
|
2720
2720
|
Button.displayName = "Button";
|
|
2721
2721
|
var variantStyles3 = {
|
|
2722
2722
|
default: [
|
|
2723
|
-
"bg-
|
|
2724
|
-
"border-[length:var(--border-width-thin)] border-
|
|
2723
|
+
"bg-muted text-foreground",
|
|
2724
|
+
"border-[length:var(--border-width-thin)] border-border"
|
|
2725
2725
|
].join(" "),
|
|
2726
|
-
primary: "bg-
|
|
2727
|
-
secondary: "bg-
|
|
2726
|
+
primary: "bg-primary text-primary-foreground",
|
|
2727
|
+
secondary: "bg-secondary text-secondary-foreground",
|
|
2728
2728
|
success: [
|
|
2729
|
-
"bg-
|
|
2730
|
-
"border-[length:var(--border-width)] border-
|
|
2729
|
+
"bg-surface text-success",
|
|
2730
|
+
"border-[length:var(--border-width)] border-success"
|
|
2731
2731
|
].join(" "),
|
|
2732
2732
|
warning: [
|
|
2733
|
-
"bg-
|
|
2734
|
-
"border-[length:var(--border-width)] border-
|
|
2733
|
+
"bg-surface text-warning",
|
|
2734
|
+
"border-[length:var(--border-width)] border-warning"
|
|
2735
2735
|
].join(" "),
|
|
2736
2736
|
danger: [
|
|
2737
|
-
"bg-
|
|
2738
|
-
"border-[length:var(--border-width)] border-
|
|
2737
|
+
"bg-surface text-error",
|
|
2738
|
+
"border-[length:var(--border-width)] border-error"
|
|
2739
2739
|
].join(" "),
|
|
2740
2740
|
error: [
|
|
2741
|
-
"bg-
|
|
2742
|
-
"border-[length:var(--border-width)] border-
|
|
2741
|
+
"bg-surface text-error",
|
|
2742
|
+
"border-[length:var(--border-width)] border-error"
|
|
2743
2743
|
].join(" "),
|
|
2744
2744
|
info: [
|
|
2745
|
-
"bg-
|
|
2746
|
-
"border-[length:var(--border-width)] border-
|
|
2745
|
+
"bg-surface text-info",
|
|
2746
|
+
"border-[length:var(--border-width)] border-info"
|
|
2747
2747
|
].join(" "),
|
|
2748
2748
|
neutral: [
|
|
2749
|
-
"bg-
|
|
2750
|
-
"border-[length:var(--border-width-thin)] border-
|
|
2749
|
+
"bg-muted text-muted-foreground",
|
|
2750
|
+
"border-[length:var(--border-width-thin)] border-border"
|
|
2751
2751
|
].join(" ")
|
|
2752
2752
|
};
|
|
2753
2753
|
var sizeStyles3 = {
|
|
@@ -2767,7 +2767,7 @@ var Badge = React114__default.forwardRef(
|
|
|
2767
2767
|
{
|
|
2768
2768
|
ref,
|
|
2769
2769
|
className: cn(
|
|
2770
|
-
"inline-flex items-center gap-1 font-bold rounded-
|
|
2770
|
+
"inline-flex items-center gap-1 font-bold rounded-sm",
|
|
2771
2771
|
variantStyles3[variant],
|
|
2772
2772
|
sizeStyles3[size],
|
|
2773
2773
|
className
|
|
@@ -2783,10 +2783,10 @@ var Badge = React114__default.forwardRef(
|
|
|
2783
2783
|
);
|
|
2784
2784
|
Badge.displayName = "Badge";
|
|
2785
2785
|
var variantClasses = {
|
|
2786
|
-
success: "bg-
|
|
2787
|
-
error: "bg-
|
|
2788
|
-
info: "bg-
|
|
2789
|
-
warning: "bg-
|
|
2786
|
+
success: "bg-card border-[length:var(--border-width)] border-success",
|
|
2787
|
+
error: "bg-card border-[length:var(--border-width)] border-error",
|
|
2788
|
+
info: "bg-card border-[length:var(--border-width)] border-info",
|
|
2789
|
+
warning: "bg-card border-[length:var(--border-width)] border-warning"
|
|
2790
2790
|
};
|
|
2791
2791
|
var iconMap = {
|
|
2792
2792
|
success: CheckCircle,
|
|
@@ -2795,10 +2795,10 @@ var iconMap = {
|
|
|
2795
2795
|
warning: AlertTriangle
|
|
2796
2796
|
};
|
|
2797
2797
|
var iconColors = {
|
|
2798
|
-
success: "text-
|
|
2799
|
-
error: "text-
|
|
2800
|
-
info: "text-
|
|
2801
|
-
warning: "text-
|
|
2798
|
+
success: "text-success",
|
|
2799
|
+
error: "text-error",
|
|
2800
|
+
info: "text-info",
|
|
2801
|
+
warning: "text-warning"
|
|
2802
2802
|
};
|
|
2803
2803
|
var Toast = ({
|
|
2804
2804
|
variant = "info",
|
|
@@ -2836,8 +2836,8 @@ var Toast = ({
|
|
|
2836
2836
|
"div",
|
|
2837
2837
|
{
|
|
2838
2838
|
className: cn(
|
|
2839
|
-
"border-l-4 p-4 shadow
|
|
2840
|
-
"rounded-
|
|
2839
|
+
"border-l-4 p-4 shadow min-w-[300px] max-w-md",
|
|
2840
|
+
"rounded-sm",
|
|
2841
2841
|
variantClasses[variant],
|
|
2842
2842
|
className
|
|
2843
2843
|
),
|
|
@@ -2864,9 +2864,9 @@ var Toast = ({
|
|
|
2864
2864
|
type: "button",
|
|
2865
2865
|
onClick: handleDismiss,
|
|
2866
2866
|
className: cn(
|
|
2867
|
-
"flex-shrink-0 p-1 transition-colors rounded-
|
|
2868
|
-
"hover:bg-
|
|
2869
|
-
"focus:outline-none focus:ring-2 focus:ring-
|
|
2867
|
+
"flex-shrink-0 p-1 transition-colors rounded-sm",
|
|
2868
|
+
"hover:bg-muted",
|
|
2869
|
+
"focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2"
|
|
2870
2870
|
),
|
|
2871
2871
|
"aria-label": "Dismiss toast",
|
|
2872
2872
|
children: /* @__PURE__ */ jsx(Icon, { icon: X, size: "sm" })
|
|
@@ -2899,21 +2899,21 @@ var Input = React114__default.forwardRef(
|
|
|
2899
2899
|
const resolvedLeftIcon = leftIcon || IconComponent && /* @__PURE__ */ jsx(IconComponent, { className: "h-4 w-4" });
|
|
2900
2900
|
const showClearButton = clearable && value && String(value).length > 0;
|
|
2901
2901
|
const baseClassName = cn(
|
|
2902
|
-
"block w-full rounded-
|
|
2903
|
-
"border-[length:var(--border-width-thin)] border-
|
|
2902
|
+
"block w-full rounded-sm transition-all duration-[var(--transition-fast)]",
|
|
2903
|
+
"border-[length:var(--border-width-thin)] border-border",
|
|
2904
2904
|
"px-3 py-2 text-sm",
|
|
2905
|
-
"bg-
|
|
2906
|
-
"text-
|
|
2907
|
-
"focus:outline-none focus:ring-1 focus:ring-
|
|
2908
|
-
"disabled:opacity-50 disabled:cursor-not-allowed disabled:bg-
|
|
2909
|
-
error ? "border-
|
|
2905
|
+
"bg-card hover:bg-muted focus:bg-card",
|
|
2906
|
+
"text-foreground placeholder:text-muted-foreground",
|
|
2907
|
+
"focus:outline-none focus:ring-1 focus:ring-ring focus:border-ring",
|
|
2908
|
+
"disabled:opacity-50 disabled:cursor-not-allowed disabled:bg-muted",
|
|
2909
|
+
error ? "border-error focus:border-error focus:ring-error" : "",
|
|
2910
2910
|
resolvedLeftIcon && "pl-10",
|
|
2911
2911
|
(rightIcon || showClearButton) && "pr-10",
|
|
2912
2912
|
className
|
|
2913
2913
|
);
|
|
2914
2914
|
if (type === "select") {
|
|
2915
2915
|
return /* @__PURE__ */ jsxs("div", { className: "relative", children: [
|
|
2916
|
-
resolvedLeftIcon && /* @__PURE__ */ jsx("div", { className: "absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none text-
|
|
2916
|
+
resolvedLeftIcon && /* @__PURE__ */ jsx("div", { className: "absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none text-muted-foreground", children: resolvedLeftIcon }),
|
|
2917
2917
|
/* @__PURE__ */ jsxs(
|
|
2918
2918
|
"select",
|
|
2919
2919
|
{
|
|
@@ -2928,7 +2928,7 @@ var Input = React114__default.forwardRef(
|
|
|
2928
2928
|
]
|
|
2929
2929
|
}
|
|
2930
2930
|
),
|
|
2931
|
-
/* @__PURE__ */ jsx("div", { className: "absolute inset-y-0 right-0 pr-3 flex items-center pointer-events-none text-
|
|
2931
|
+
/* @__PURE__ */ jsx("div", { className: "absolute inset-y-0 right-0 pr-3 flex items-center pointer-events-none text-muted-foreground", children: /* @__PURE__ */ jsx(ChevronDown, { className: "h-4 w-4" }) })
|
|
2932
2932
|
] });
|
|
2933
2933
|
}
|
|
2934
2934
|
if (type === "textarea") {
|
|
@@ -2953,9 +2953,9 @@ var Input = React114__default.forwardRef(
|
|
|
2953
2953
|
checked: props.checked,
|
|
2954
2954
|
onChange,
|
|
2955
2955
|
className: cn(
|
|
2956
|
-
"h-4 w-4 rounded-
|
|
2957
|
-
"border-
|
|
2958
|
-
"text-
|
|
2956
|
+
"h-4 w-4 rounded-sm",
|
|
2957
|
+
"border-border",
|
|
2958
|
+
"text-primary focus:ring-ring",
|
|
2959
2959
|
"disabled:opacity-50 disabled:cursor-not-allowed",
|
|
2960
2960
|
className
|
|
2961
2961
|
),
|
|
@@ -2964,7 +2964,7 @@ var Input = React114__default.forwardRef(
|
|
|
2964
2964
|
);
|
|
2965
2965
|
}
|
|
2966
2966
|
return /* @__PURE__ */ jsxs("div", { className: "relative", children: [
|
|
2967
|
-
resolvedLeftIcon && /* @__PURE__ */ jsx("div", { className: "absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none text-
|
|
2967
|
+
resolvedLeftIcon && /* @__PURE__ */ jsx("div", { className: "absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none text-muted-foreground", children: resolvedLeftIcon }),
|
|
2968
2968
|
/* @__PURE__ */ jsx(
|
|
2969
2969
|
"input",
|
|
2970
2970
|
{
|
|
@@ -2981,11 +2981,11 @@ var Input = React114__default.forwardRef(
|
|
|
2981
2981
|
{
|
|
2982
2982
|
type: "button",
|
|
2983
2983
|
onClick: onClear,
|
|
2984
|
-
className: "absolute inset-y-0 right-0 pr-3 flex items-center text-
|
|
2984
|
+
className: "absolute inset-y-0 right-0 pr-3 flex items-center text-muted-foreground hover:text-foreground",
|
|
2985
2985
|
children: /* @__PURE__ */ jsx(X, { className: "h-4 w-4" })
|
|
2986
2986
|
}
|
|
2987
2987
|
),
|
|
2988
|
-
rightIcon && !showClearButton && /* @__PURE__ */ jsx("div", { className: "absolute inset-y-0 right-0 pr-3 flex items-center text-
|
|
2988
|
+
rightIcon && !showClearButton && /* @__PURE__ */ jsx("div", { className: "absolute inset-y-0 right-0 pr-3 flex items-center text-muted-foreground", children: rightIcon })
|
|
2989
2989
|
] });
|
|
2990
2990
|
}
|
|
2991
2991
|
);
|
|
@@ -2997,13 +2997,13 @@ var Label = React114__default.forwardRef(
|
|
|
2997
2997
|
{
|
|
2998
2998
|
ref,
|
|
2999
2999
|
className: cn(
|
|
3000
|
-
"block text-sm font-bold text-
|
|
3000
|
+
"block text-sm font-bold text-foreground",
|
|
3001
3001
|
className
|
|
3002
3002
|
),
|
|
3003
3003
|
...props,
|
|
3004
3004
|
children: [
|
|
3005
3005
|
children,
|
|
3006
|
-
required && /* @__PURE__ */ jsx("span", { className: "text-
|
|
3006
|
+
required && /* @__PURE__ */ jsx("span", { className: "text-error ml-1", children: "*" })
|
|
3007
3007
|
]
|
|
3008
3008
|
}
|
|
3009
3009
|
);
|
|
@@ -3017,14 +3017,14 @@ var Textarea = React114__default.forwardRef(
|
|
|
3017
3017
|
{
|
|
3018
3018
|
ref,
|
|
3019
3019
|
className: cn(
|
|
3020
|
-
"block w-full border-[length:var(--border-width)] shadow-
|
|
3021
|
-
"px-3 py-2 text-sm text-
|
|
3022
|
-
"bg-
|
|
3020
|
+
"block w-full border-[length:var(--border-width)] shadow-sm",
|
|
3021
|
+
"px-3 py-2 text-sm text-foreground",
|
|
3022
|
+
"bg-card",
|
|
3023
3023
|
"placeholder:text-[var(--color-placeholder)]",
|
|
3024
|
-
"focus:outline-none focus:ring-2 focus:ring-offset-0 focus:ring-
|
|
3025
|
-
"disabled:bg-
|
|
3024
|
+
"focus:outline-none focus:ring-2 focus:ring-offset-0 focus:ring-ring",
|
|
3025
|
+
"disabled:bg-muted disabled:text-muted-foreground disabled:cursor-not-allowed",
|
|
3026
3026
|
"resize-y min-h-[80px]",
|
|
3027
|
-
error ? "border-
|
|
3027
|
+
error ? "border-error focus:border-error" : "border-border focus:border-primary",
|
|
3028
3028
|
className
|
|
3029
3029
|
),
|
|
3030
3030
|
...props
|
|
@@ -3041,12 +3041,12 @@ var Select = React114__default.forwardRef(
|
|
|
3041
3041
|
{
|
|
3042
3042
|
ref,
|
|
3043
3043
|
className: cn(
|
|
3044
|
-
"block w-full border-[length:var(--border-width)] shadow-
|
|
3045
|
-
"px-3 py-2 pr-10 text-sm text-
|
|
3046
|
-
"bg-
|
|
3047
|
-
"focus:outline-none focus:ring-2 focus:ring-offset-0 focus:ring-
|
|
3048
|
-
"disabled:bg-
|
|
3049
|
-
error ? "border-
|
|
3044
|
+
"block w-full border-[length:var(--border-width)] shadow-sm appearance-none",
|
|
3045
|
+
"px-3 py-2 pr-10 text-sm text-foreground font-medium",
|
|
3046
|
+
"bg-card",
|
|
3047
|
+
"focus:outline-none focus:ring-2 focus:ring-offset-0 focus:ring-ring",
|
|
3048
|
+
"disabled:bg-muted disabled:text-muted-foreground disabled:cursor-not-allowed",
|
|
3049
|
+
error ? "border-error focus:border-error" : "border-border focus:border-primary",
|
|
3050
3050
|
className
|
|
3051
3051
|
),
|
|
3052
3052
|
...props,
|
|
@@ -3064,7 +3064,7 @@ var Select = React114__default.forwardRef(
|
|
|
3064
3064
|
]
|
|
3065
3065
|
}
|
|
3066
3066
|
),
|
|
3067
|
-
/* @__PURE__ */ jsx("div", { className: "absolute inset-y-0 right-0 pr-3 flex items-center pointer-events-none", children: /* @__PURE__ */ jsx(ChevronDown, { className: "h-4 w-4 text-
|
|
3067
|
+
/* @__PURE__ */ jsx("div", { className: "absolute inset-y-0 right-0 pr-3 flex items-center pointer-events-none", children: /* @__PURE__ */ jsx(ChevronDown, { className: "h-4 w-4 text-foreground" }) })
|
|
3068
3068
|
] });
|
|
3069
3069
|
}
|
|
3070
3070
|
);
|
|
@@ -3080,9 +3080,9 @@ var Checkbox = React114__default.forwardRef(
|
|
|
3080
3080
|
type: "checkbox",
|
|
3081
3081
|
id: inputId,
|
|
3082
3082
|
className: cn(
|
|
3083
|
-
"peer h-4 w-4 border-[length:var(--border-width)] border-
|
|
3084
|
-
"accent-
|
|
3085
|
-
"bg-
|
|
3083
|
+
"peer h-4 w-4 border-[length:var(--border-width)] border-border",
|
|
3084
|
+
"accent-primary focus:ring-ring focus:ring-offset-0",
|
|
3085
|
+
"bg-card checked:bg-primary",
|
|
3086
3086
|
"disabled:opacity-50 disabled:cursor-not-allowed",
|
|
3087
3087
|
className
|
|
3088
3088
|
),
|
|
@@ -3093,7 +3093,7 @@ var Checkbox = React114__default.forwardRef(
|
|
|
3093
3093
|
"label",
|
|
3094
3094
|
{
|
|
3095
3095
|
htmlFor: inputId,
|
|
3096
|
-
className: "ml-2 text-sm text-
|
|
3096
|
+
className: "ml-2 text-sm text-foreground font-medium cursor-pointer select-none",
|
|
3097
3097
|
children: label
|
|
3098
3098
|
}
|
|
3099
3099
|
)
|
|
@@ -3103,34 +3103,34 @@ var Checkbox = React114__default.forwardRef(
|
|
|
3103
3103
|
Checkbox.displayName = "Checkbox";
|
|
3104
3104
|
var variantStyles4 = {
|
|
3105
3105
|
default: [
|
|
3106
|
-
"bg-
|
|
3107
|
-
"border-[length:var(--border-width)] border-
|
|
3108
|
-
"shadow-
|
|
3106
|
+
"bg-card",
|
|
3107
|
+
"border-[length:var(--border-width)] border-border",
|
|
3108
|
+
"shadow-sm",
|
|
3109
3109
|
"transition-all duration-[var(--transition-normal)]",
|
|
3110
|
-
"hover:shadow-
|
|
3110
|
+
"hover:shadow-lg hover:-translate-y-0.5"
|
|
3111
3111
|
].join(" "),
|
|
3112
3112
|
bordered: [
|
|
3113
|
-
"bg-
|
|
3114
|
-
"border-[length:var(--border-width)] border-
|
|
3115
|
-
"shadow-
|
|
3113
|
+
"bg-card",
|
|
3114
|
+
"border-[length:var(--border-width)] border-border",
|
|
3115
|
+
"shadow-sm",
|
|
3116
3116
|
"transition-all duration-[var(--transition-normal)]",
|
|
3117
|
-
"hover:shadow-
|
|
3117
|
+
"hover:shadow-lg hover:-translate-y-0.5"
|
|
3118
3118
|
].join(" "),
|
|
3119
3119
|
elevated: [
|
|
3120
|
-
"bg-
|
|
3121
|
-
"border-[length:var(--border-width)] border-
|
|
3122
|
-
"shadow
|
|
3120
|
+
"bg-card",
|
|
3121
|
+
"border-[length:var(--border-width)] border-border",
|
|
3122
|
+
"shadow",
|
|
3123
3123
|
"transition-all duration-[var(--transition-normal)]",
|
|
3124
|
-
"hover:shadow-
|
|
3124
|
+
"hover:shadow-lg hover:-translate-y-0.5"
|
|
3125
3125
|
].join(" "),
|
|
3126
3126
|
// Interactive variant with theme-specific hover effects
|
|
3127
3127
|
interactive: [
|
|
3128
|
-
"bg-
|
|
3129
|
-
"border-[length:var(--border-width)] border-
|
|
3130
|
-
"shadow
|
|
3128
|
+
"bg-card",
|
|
3129
|
+
"border-[length:var(--border-width)] border-border",
|
|
3130
|
+
"shadow",
|
|
3131
3131
|
"cursor-pointer",
|
|
3132
3132
|
"transition-all duration-[var(--transition-normal)]",
|
|
3133
|
-
"hover:shadow-
|
|
3133
|
+
"hover:shadow-lg"
|
|
3134
3134
|
].join(" ")
|
|
3135
3135
|
};
|
|
3136
3136
|
var paddingStyles2 = {
|
|
@@ -3141,9 +3141,9 @@ var paddingStyles2 = {
|
|
|
3141
3141
|
};
|
|
3142
3142
|
var shadowStyles2 = {
|
|
3143
3143
|
none: "shadow-none",
|
|
3144
|
-
sm: "shadow-
|
|
3145
|
-
md: "shadow
|
|
3146
|
-
lg: "shadow-
|
|
3144
|
+
sm: "shadow-sm",
|
|
3145
|
+
md: "shadow",
|
|
3146
|
+
lg: "shadow-lg"
|
|
3147
3147
|
};
|
|
3148
3148
|
var Card = React114__default.forwardRef(
|
|
3149
3149
|
({
|
|
@@ -3161,7 +3161,7 @@ var Card = React114__default.forwardRef(
|
|
|
3161
3161
|
{
|
|
3162
3162
|
ref,
|
|
3163
3163
|
className: cn(
|
|
3164
|
-
"rounded-
|
|
3164
|
+
"rounded-md",
|
|
3165
3165
|
"transition-all duration-[var(--transition-normal)]",
|
|
3166
3166
|
variantStyles4[variant],
|
|
3167
3167
|
paddingStyles2[padding],
|
|
@@ -3171,8 +3171,8 @@ var Card = React114__default.forwardRef(
|
|
|
3171
3171
|
...props,
|
|
3172
3172
|
children: [
|
|
3173
3173
|
(title || subtitle) && /* @__PURE__ */ jsxs("div", { className: "mb-4", children: [
|
|
3174
|
-
title && /* @__PURE__ */ jsx("h3", { className: "text-lg text-
|
|
3175
|
-
subtitle && /* @__PURE__ */ jsx("p", { className: "text-sm text-
|
|
3174
|
+
title && /* @__PURE__ */ jsx("h3", { className: "text-lg text-card-foreground font-[var(--font-weight-bold)]", children: title }),
|
|
3175
|
+
subtitle && /* @__PURE__ */ jsx("p", { className: "text-sm text-muted-foreground mt-1", children: subtitle })
|
|
3176
3176
|
] }),
|
|
3177
3177
|
children
|
|
3178
3178
|
]
|
|
@@ -3188,7 +3188,7 @@ var CardTitle = React114__default.forwardRef(({ className, ...props }, ref) => /
|
|
|
3188
3188
|
{
|
|
3189
3189
|
ref,
|
|
3190
3190
|
className: cn(
|
|
3191
|
-
"text-lg text-
|
|
3191
|
+
"text-lg text-card-foreground",
|
|
3192
3192
|
"font-[var(--font-weight-bold)]",
|
|
3193
3193
|
className
|
|
3194
3194
|
),
|
|
@@ -3221,7 +3221,7 @@ var Spinner = React114__default.forwardRef(
|
|
|
3221
3221
|
"div",
|
|
3222
3222
|
{
|
|
3223
3223
|
ref,
|
|
3224
|
-
className: cn("text-
|
|
3224
|
+
className: cn("text-foreground", className),
|
|
3225
3225
|
...props,
|
|
3226
3226
|
children: /* @__PURE__ */ jsx(Loader2, { className: cn("animate-spin", sizeStyles4[size]) })
|
|
3227
3227
|
}
|
|
@@ -3251,10 +3251,10 @@ var statusSizeClasses = {
|
|
|
3251
3251
|
xl: "w-4 h-4"
|
|
3252
3252
|
};
|
|
3253
3253
|
var statusClasses = {
|
|
3254
|
-
online: "bg-
|
|
3255
|
-
offline: "bg-
|
|
3256
|
-
away: "bg-
|
|
3257
|
-
busy: "bg-
|
|
3254
|
+
online: "bg-success",
|
|
3255
|
+
offline: "bg-muted-foreground",
|
|
3256
|
+
away: "bg-warning",
|
|
3257
|
+
busy: "bg-error"
|
|
3258
3258
|
};
|
|
3259
3259
|
var badgeSizeClasses = {
|
|
3260
3260
|
xs: "w-3 h-3 text-[8px]",
|
|
@@ -3289,7 +3289,7 @@ var Avatar = ({
|
|
|
3289
3289
|
const hasImage = !!src;
|
|
3290
3290
|
const hasInitials = !!initials;
|
|
3291
3291
|
const hasIcon = !!Icon3;
|
|
3292
|
-
const getInitialsBackground = () => "bg-
|
|
3292
|
+
const getInitialsBackground = () => "bg-primary text-primary-foreground";
|
|
3293
3293
|
const isClickable = action || onClick;
|
|
3294
3294
|
const handleClick = () => {
|
|
3295
3295
|
if (action) {
|
|
@@ -3303,7 +3303,7 @@ var Avatar = ({
|
|
|
3303
3303
|
{
|
|
3304
3304
|
className: cn(
|
|
3305
3305
|
"relative inline-flex items-center justify-center",
|
|
3306
|
-
"bg-
|
|
3306
|
+
"bg-muted border-[length:var(--border-width)] border-border",
|
|
3307
3307
|
"overflow-hidden",
|
|
3308
3308
|
sizeClasses3[size],
|
|
3309
3309
|
isClickable && "cursor-pointer hover:bg-[var(--color-surface-hover)] transition-colors",
|
|
@@ -3336,7 +3336,7 @@ var Avatar = ({
|
|
|
3336
3336
|
Icon3,
|
|
3337
3337
|
{
|
|
3338
3338
|
className: cn(
|
|
3339
|
-
"text-
|
|
3339
|
+
"text-foreground",
|
|
3340
3340
|
iconSizeClasses[size]
|
|
3341
3341
|
)
|
|
3342
3342
|
}
|
|
@@ -3344,7 +3344,7 @@ var Avatar = ({
|
|
|
3344
3344
|
User,
|
|
3345
3345
|
{
|
|
3346
3346
|
className: cn(
|
|
3347
|
-
"text-
|
|
3347
|
+
"text-foreground",
|
|
3348
3348
|
iconSizeClasses[size]
|
|
3349
3349
|
)
|
|
3350
3350
|
}
|
|
@@ -3355,7 +3355,7 @@ var Avatar = ({
|
|
|
3355
3355
|
"div",
|
|
3356
3356
|
{
|
|
3357
3357
|
className: cn(
|
|
3358
|
-
"absolute bottom-0 right-0 border-2 border-
|
|
3358
|
+
"absolute bottom-0 right-0 border-2 border-card",
|
|
3359
3359
|
statusClasses[status],
|
|
3360
3360
|
statusSizeClasses[size]
|
|
3361
3361
|
),
|
|
@@ -3367,8 +3367,8 @@ var Avatar = ({
|
|
|
3367
3367
|
{
|
|
3368
3368
|
className: cn(
|
|
3369
3369
|
"absolute -top-1 -right-1 flex items-center justify-center",
|
|
3370
|
-
"bg-
|
|
3371
|
-
"border-2 border-
|
|
3370
|
+
"bg-primary text-primary-foreground font-bold",
|
|
3371
|
+
"border-2 border-card",
|
|
3372
3372
|
badgeSizeClasses[size]
|
|
3373
3373
|
),
|
|
3374
3374
|
"aria-label": `Badge: ${badge}`,
|
|
@@ -3424,7 +3424,7 @@ var Divider = ({
|
|
|
3424
3424
|
"div",
|
|
3425
3425
|
{
|
|
3426
3426
|
className: cn(
|
|
3427
|
-
"w-0 h-full border-l border-
|
|
3427
|
+
"w-0 h-full border-l border-border",
|
|
3428
3428
|
variantStyles5[variant],
|
|
3429
3429
|
className
|
|
3430
3430
|
),
|
|
@@ -3445,17 +3445,17 @@ var Divider = ({
|
|
|
3445
3445
|
"div",
|
|
3446
3446
|
{
|
|
3447
3447
|
className: cn(
|
|
3448
|
-
"flex-1 h-0 border-t border-
|
|
3448
|
+
"flex-1 h-0 border-t border-border",
|
|
3449
3449
|
variantStyles5[variant]
|
|
3450
3450
|
)
|
|
3451
3451
|
}
|
|
3452
3452
|
),
|
|
3453
|
-
/* @__PURE__ */ jsx("span", { className: "text-sm text-
|
|
3453
|
+
/* @__PURE__ */ jsx("span", { className: "text-sm text-foreground font-bold uppercase tracking-wide", children: label }),
|
|
3454
3454
|
/* @__PURE__ */ jsx(
|
|
3455
3455
|
"div",
|
|
3456
3456
|
{
|
|
3457
3457
|
className: cn(
|
|
3458
|
-
"flex-1 h-0 border-t border-
|
|
3458
|
+
"flex-1 h-0 border-t border-border",
|
|
3459
3459
|
variantStyles5[variant]
|
|
3460
3460
|
)
|
|
3461
3461
|
}
|
|
@@ -3468,7 +3468,7 @@ var Divider = ({
|
|
|
3468
3468
|
"div",
|
|
3469
3469
|
{
|
|
3470
3470
|
className: cn(
|
|
3471
|
-
"w-full h-0 border-t border-
|
|
3471
|
+
"w-full h-0 border-t border-border my-4",
|
|
3472
3472
|
variantStyles5[variant],
|
|
3473
3473
|
className
|
|
3474
3474
|
),
|
|
@@ -3479,11 +3479,11 @@ var Divider = ({
|
|
|
3479
3479
|
};
|
|
3480
3480
|
Divider.displayName = "Divider";
|
|
3481
3481
|
var colorClasses = {
|
|
3482
|
-
default: "bg-
|
|
3483
|
-
primary: "bg-
|
|
3484
|
-
success: "bg-
|
|
3485
|
-
warning: "bg-
|
|
3486
|
-
danger: "bg-
|
|
3482
|
+
default: "bg-primary",
|
|
3483
|
+
primary: "bg-primary",
|
|
3484
|
+
success: "bg-success",
|
|
3485
|
+
warning: "bg-warning",
|
|
3486
|
+
danger: "bg-error"
|
|
3487
3487
|
};
|
|
3488
3488
|
var circularSizeClasses = {
|
|
3489
3489
|
sm: "w-16 h-16",
|
|
@@ -3509,13 +3509,13 @@ var ProgressBar = ({
|
|
|
3509
3509
|
if (progressType === "linear") {
|
|
3510
3510
|
return /* @__PURE__ */ jsxs("div", { className: cn("w-full", className), children: [
|
|
3511
3511
|
label && /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between mb-1.5", children: [
|
|
3512
|
-
/* @__PURE__ */ jsx("span", { className: "text-sm font-bold text-
|
|
3513
|
-
effectiveShowPercentage && /* @__PURE__ */ jsxs("span", { className: "text-sm text-
|
|
3512
|
+
/* @__PURE__ */ jsx("span", { className: "text-sm font-bold text-foreground", children: label }),
|
|
3513
|
+
effectiveShowPercentage && /* @__PURE__ */ jsxs("span", { className: "text-sm text-foreground font-medium", children: [
|
|
3514
3514
|
Math.round(percentage),
|
|
3515
3515
|
"%"
|
|
3516
3516
|
] })
|
|
3517
3517
|
] }),
|
|
3518
|
-
/* @__PURE__ */ jsx("div", { className: "w-full h-2 bg-
|
|
3518
|
+
/* @__PURE__ */ jsx("div", { className: "w-full h-2 bg-muted border border-border overflow-hidden", children: /* @__PURE__ */ jsx(
|
|
3519
3519
|
"div",
|
|
3520
3520
|
{
|
|
3521
3521
|
className: cn(
|
|
@@ -3559,7 +3559,7 @@ var ProgressBar = ({
|
|
|
3559
3559
|
stroke: "currentColor",
|
|
3560
3560
|
strokeWidth: "8",
|
|
3561
3561
|
fill: "none",
|
|
3562
|
-
className: "text-
|
|
3562
|
+
className: "text-muted"
|
|
3563
3563
|
}
|
|
3564
3564
|
),
|
|
3565
3565
|
/* @__PURE__ */ jsx(
|
|
@@ -3583,7 +3583,7 @@ var ProgressBar = ({
|
|
|
3583
3583
|
]
|
|
3584
3584
|
}
|
|
3585
3585
|
),
|
|
3586
|
-
effectiveShowPercentage && /* @__PURE__ */ jsx("div", { className: "absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ jsxs("span", { className: "text-sm font-bold text-
|
|
3586
|
+
effectiveShowPercentage && /* @__PURE__ */ jsx("div", { className: "absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ jsxs("span", { className: "text-sm font-bold text-foreground", children: [
|
|
3587
3587
|
Math.round(percentage),
|
|
3588
3588
|
"%"
|
|
3589
3589
|
] }) })
|
|
@@ -3597,8 +3597,8 @@ var ProgressBar = ({
|
|
|
3597
3597
|
const partialStep = value % stepValue / stepValue;
|
|
3598
3598
|
return /* @__PURE__ */ jsxs("div", { className: cn("w-full", className), children: [
|
|
3599
3599
|
label && /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between mb-2", children: [
|
|
3600
|
-
/* @__PURE__ */ jsx("span", { className: "text-sm font-medium text-
|
|
3601
|
-
effectiveShowPercentage && /* @__PURE__ */ jsxs("span", { className: "text-sm text-
|
|
3600
|
+
/* @__PURE__ */ jsx("span", { className: "text-sm font-medium text-foreground", children: label }),
|
|
3601
|
+
effectiveShowPercentage && /* @__PURE__ */ jsxs("span", { className: "text-sm text-muted-foreground", children: [
|
|
3602
3602
|
Math.round(percentage),
|
|
3603
3603
|
"%"
|
|
3604
3604
|
] })
|
|
@@ -3609,7 +3609,7 @@ var ProgressBar = ({
|
|
|
3609
3609
|
return /* @__PURE__ */ jsx(
|
|
3610
3610
|
"div",
|
|
3611
3611
|
{
|
|
3612
|
-
className: "flex-1 h-2 bg-
|
|
3612
|
+
className: "flex-1 h-2 bg-muted border border-border overflow-hidden",
|
|
3613
3613
|
children: /* @__PURE__ */ jsx(
|
|
3614
3614
|
"div",
|
|
3615
3615
|
{
|
|
@@ -3680,8 +3680,8 @@ var Radio = React114__default.forwardRef(
|
|
|
3680
3680
|
"flex items-center justify-center",
|
|
3681
3681
|
"border-[length:var(--border-width)] transition-all cursor-pointer",
|
|
3682
3682
|
sizeClasses6[size],
|
|
3683
|
-
hasError ? "border-
|
|
3684
|
-
checked ? hasError ? "border-
|
|
3683
|
+
hasError ? "border-error peer-focus:ring-error/20" : "border-border peer-focus:ring-ring/20",
|
|
3684
|
+
checked ? hasError ? "border-error" : "border-primary bg-primary" : "",
|
|
3685
3685
|
"peer-focus:outline-none peer-focus:ring-2 peer-focus:ring-offset-2",
|
|
3686
3686
|
disabled && "opacity-50 cursor-not-allowed",
|
|
3687
3687
|
!disabled && "hover:border-[var(--color-border-hover)]"
|
|
@@ -3692,7 +3692,7 @@ var Radio = React114__default.forwardRef(
|
|
|
3692
3692
|
className: cn(
|
|
3693
3693
|
"transition-all",
|
|
3694
3694
|
dotSizeClasses[size],
|
|
3695
|
-
hasError ? "bg-
|
|
3695
|
+
hasError ? "bg-error" : "bg-primary-foreground"
|
|
3696
3696
|
)
|
|
3697
3697
|
}
|
|
3698
3698
|
)
|
|
@@ -3705,7 +3705,7 @@ var Radio = React114__default.forwardRef(
|
|
|
3705
3705
|
htmlFor: radioId,
|
|
3706
3706
|
className: cn(
|
|
3707
3707
|
"block text-sm font-medium cursor-pointer select-none",
|
|
3708
|
-
hasError ? "text-
|
|
3708
|
+
hasError ? "text-error" : "text-foreground",
|
|
3709
3709
|
disabled && "opacity-50 cursor-not-allowed"
|
|
3710
3710
|
),
|
|
3711
3711
|
children: label
|
|
@@ -3717,7 +3717,7 @@ var Radio = React114__default.forwardRef(
|
|
|
3717
3717
|
"p",
|
|
3718
3718
|
{
|
|
3719
3719
|
id: `${radioId}-error`,
|
|
3720
|
-
className: "text-sm text-
|
|
3720
|
+
className: "text-sm text-error font-medium",
|
|
3721
3721
|
role: "alert",
|
|
3722
3722
|
children: error
|
|
3723
3723
|
}
|
|
@@ -3726,7 +3726,7 @@ var Radio = React114__default.forwardRef(
|
|
|
3726
3726
|
"p",
|
|
3727
3727
|
{
|
|
3728
3728
|
id: `${radioId}-helper`,
|
|
3729
|
-
className: "text-sm text-
|
|
3729
|
+
className: "text-sm text-muted-foreground",
|
|
3730
3730
|
children: helperText
|
|
3731
3731
|
}
|
|
3732
3732
|
)
|
|
@@ -3936,14 +3936,14 @@ var TextHighlight = ({
|
|
|
3936
3936
|
const typeStyles2 = {
|
|
3937
3937
|
question: cn(
|
|
3938
3938
|
// Blue border for questions
|
|
3939
|
-
"bg-
|
|
3940
|
-
"hover:bg-
|
|
3939
|
+
"bg-card border-b-2 border-primary-600",
|
|
3940
|
+
"hover:bg-muted",
|
|
3941
3941
|
isActive && "bg-primary-100 ring-2 ring-primary-600"
|
|
3942
3942
|
),
|
|
3943
3943
|
note: cn(
|
|
3944
3944
|
// Yellow border for notes
|
|
3945
|
-
"bg-
|
|
3946
|
-
"hover:bg-
|
|
3945
|
+
"bg-card border-b-2 border-amber-500",
|
|
3946
|
+
"hover:bg-muted",
|
|
3947
3947
|
isActive && "bg-amber-100 ring-2 ring-amber-500"
|
|
3948
3948
|
)
|
|
3949
3949
|
};
|
|
@@ -4004,9 +4004,9 @@ var ThemeToggle = ({
|
|
|
4004
4004
|
onClick: toggleMode,
|
|
4005
4005
|
className: cn(
|
|
4006
4006
|
"inline-flex items-center justify-center gap-2",
|
|
4007
|
-
"text-
|
|
4008
|
-
"hover:bg-
|
|
4009
|
-
"focus:outline-none focus:ring-2 focus:ring-
|
|
4007
|
+
"text-foreground",
|
|
4008
|
+
"hover:bg-muted border-[length:var(--border-width)] border-transparent hover:border-border",
|
|
4009
|
+
"focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",
|
|
4010
4010
|
"transition-colors duration-200",
|
|
4011
4011
|
sizeClasses4[size],
|
|
4012
4012
|
className
|
|
@@ -4017,12 +4017,12 @@ var ThemeToggle = ({
|
|
|
4017
4017
|
isDark ? /* @__PURE__ */ jsx(
|
|
4018
4018
|
Sun,
|
|
4019
4019
|
{
|
|
4020
|
-
className: cn(iconSizes[size], "text-
|
|
4020
|
+
className: cn(iconSizes[size], "text-foreground")
|
|
4021
4021
|
}
|
|
4022
4022
|
) : /* @__PURE__ */ jsx(
|
|
4023
4023
|
Moon,
|
|
4024
4024
|
{
|
|
4025
|
-
className: cn(iconSizes[size], "text-
|
|
4025
|
+
className: cn(iconSizes[size], "text-foreground")
|
|
4026
4026
|
}
|
|
4027
4027
|
),
|
|
4028
4028
|
showLabel && /* @__PURE__ */ jsx("span", { className: "text-sm font-medium", children: isDark ? "Light" : "Dark" })
|
|
@@ -4103,10 +4103,10 @@ var positionStyles2 = {
|
|
|
4103
4103
|
right: "left-full top-1/2 -translate-y-1/2 ml-2"
|
|
4104
4104
|
};
|
|
4105
4105
|
var arrowStyles = {
|
|
4106
|
-
top: "top-full left-1/2 -translate-x-1/2 border-t-
|
|
4107
|
-
bottom: "bottom-full left-1/2 -translate-x-1/2 border-b-
|
|
4108
|
-
left: "left-full top-1/2 -translate-y-1/2 border-l-
|
|
4109
|
-
right: "right-full top-1/2 -translate-y-1/2 border-r-
|
|
4106
|
+
top: "top-full left-1/2 -translate-x-1/2 border-t-foreground border-l-transparent border-r-transparent border-b-transparent",
|
|
4107
|
+
bottom: "bottom-full left-1/2 -translate-x-1/2 border-b-foreground border-l-transparent border-r-transparent border-t-transparent",
|
|
4108
|
+
left: "left-full top-1/2 -translate-y-1/2 border-l-foreground border-t-transparent border-b-transparent border-r-transparent",
|
|
4109
|
+
right: "right-full top-1/2 -translate-y-1/2 border-r-foreground border-t-transparent border-b-transparent border-l-transparent"
|
|
4110
4110
|
};
|
|
4111
4111
|
var LawReferenceTooltip = ({
|
|
4112
4112
|
reference,
|
|
@@ -4150,7 +4150,7 @@ var LawReferenceTooltip = ({
|
|
|
4150
4150
|
shadow: "lg",
|
|
4151
4151
|
position: "absolute",
|
|
4152
4152
|
className: cn(
|
|
4153
|
-
"z-50 w-64 bg-
|
|
4153
|
+
"z-50 w-64 bg-foreground text-background",
|
|
4154
4154
|
positionStyles2[position]
|
|
4155
4155
|
),
|
|
4156
4156
|
role: "tooltip",
|
|
@@ -4173,17 +4173,17 @@ var LawReferenceTooltip = ({
|
|
|
4173
4173
|
Typography,
|
|
4174
4174
|
{
|
|
4175
4175
|
variant: "caption",
|
|
4176
|
-
className: "text-
|
|
4176
|
+
className: "text-muted-foreground",
|
|
4177
4177
|
children: reference.lawName
|
|
4178
4178
|
}
|
|
4179
4179
|
),
|
|
4180
4180
|
reference.clause && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
4181
|
-
/* @__PURE__ */ jsx(Divider, { className: "border-
|
|
4181
|
+
/* @__PURE__ */ jsx(Divider, { className: "border-border" }),
|
|
4182
4182
|
/* @__PURE__ */ jsx(
|
|
4183
4183
|
Typography,
|
|
4184
4184
|
{
|
|
4185
4185
|
variant: "caption",
|
|
4186
|
-
className: "text-
|
|
4186
|
+
className: "text-background leading-relaxed",
|
|
4187
4187
|
children: reference.clause
|
|
4188
4188
|
}
|
|
4189
4189
|
)
|
|
@@ -4233,7 +4233,7 @@ function DayCell({
|
|
|
4233
4233
|
Box,
|
|
4234
4234
|
{
|
|
4235
4235
|
className: cn(
|
|
4236
|
-
"p-2 text-center cursor-pointer hover:bg-
|
|
4236
|
+
"p-2 text-center cursor-pointer hover:bg-muted transition-colors",
|
|
4237
4237
|
isToday && "bg-blue-500/10",
|
|
4238
4238
|
className
|
|
4239
4239
|
),
|
|
@@ -4245,7 +4245,7 @@ function DayCell({
|
|
|
4245
4245
|
variant: "small",
|
|
4246
4246
|
className: cn(
|
|
4247
4247
|
"font-medium",
|
|
4248
|
-
isToday ? "text-blue-600" : "text-
|
|
4248
|
+
isToday ? "text-blue-600" : "text-muted-foreground"
|
|
4249
4249
|
),
|
|
4250
4250
|
children: dayAbbr
|
|
4251
4251
|
}
|
|
@@ -4281,8 +4281,8 @@ function TimeSlotCell({
|
|
|
4281
4281
|
Box,
|
|
4282
4282
|
{
|
|
4283
4283
|
className: cn(
|
|
4284
|
-
"p-1 min-h-[60px] cursor-pointer hover:bg-
|
|
4285
|
-
isOccupied && "bg-
|
|
4284
|
+
"p-1 min-h-[60px] cursor-pointer hover:bg-muted transition-colors",
|
|
4285
|
+
isOccupied && "bg-muted/30",
|
|
4286
4286
|
className
|
|
4287
4287
|
),
|
|
4288
4288
|
onClick: handleClick,
|
|
@@ -4292,20 +4292,20 @@ function TimeSlotCell({
|
|
|
4292
4292
|
}
|
|
4293
4293
|
TimeSlotCell.displayName = "TimeSlotCell";
|
|
4294
4294
|
var statusColors = {
|
|
4295
|
-
online: "bg-
|
|
4296
|
-
offline: "bg-
|
|
4297
|
-
away: "bg-
|
|
4298
|
-
busy: "bg-
|
|
4299
|
-
warning: "bg-
|
|
4300
|
-
critical: "bg-
|
|
4295
|
+
online: "bg-success",
|
|
4296
|
+
offline: "bg-muted-foreground",
|
|
4297
|
+
away: "bg-warning",
|
|
4298
|
+
busy: "bg-error",
|
|
4299
|
+
warning: "bg-warning",
|
|
4300
|
+
critical: "bg-error"
|
|
4301
4301
|
};
|
|
4302
4302
|
var pulseRingColors = {
|
|
4303
|
-
online: "ring-
|
|
4304
|
-
offline: "ring-
|
|
4305
|
-
away: "ring-
|
|
4306
|
-
busy: "ring-
|
|
4307
|
-
warning: "ring-
|
|
4308
|
-
critical: "ring-
|
|
4303
|
+
online: "ring-success",
|
|
4304
|
+
offline: "ring-muted-foreground",
|
|
4305
|
+
away: "ring-warning",
|
|
4306
|
+
busy: "ring-error",
|
|
4307
|
+
warning: "ring-warning",
|
|
4308
|
+
critical: "ring-error"
|
|
4309
4309
|
};
|
|
4310
4310
|
var sizeStyles5 = {
|
|
4311
4311
|
sm: "w-2 h-2",
|
|
@@ -4349,10 +4349,10 @@ function resolveDirection(value, direction) {
|
|
|
4349
4349
|
return value > 0 ? "up" : "down";
|
|
4350
4350
|
}
|
|
4351
4351
|
function resolveColor(dir, invert) {
|
|
4352
|
-
if (dir === "flat") return "text-
|
|
4352
|
+
if (dir === "flat") return "text-muted-foreground";
|
|
4353
4353
|
const isPositive = dir === "up";
|
|
4354
4354
|
const isGood = invert ? !isPositive : isPositive;
|
|
4355
|
-
return isGood ? "text-
|
|
4355
|
+
return isGood ? "text-success" : "text-error";
|
|
4356
4356
|
}
|
|
4357
4357
|
var iconMap2 = {
|
|
4358
4358
|
up: TrendingUp,
|
|
@@ -4470,7 +4470,7 @@ var RangeSlider = React114__default.forwardRef(
|
|
|
4470
4470
|
"div",
|
|
4471
4471
|
{
|
|
4472
4472
|
className: cn(
|
|
4473
|
-
"absolute inset-x-0 rounded-full bg-
|
|
4473
|
+
"absolute inset-x-0 rounded-full bg-muted",
|
|
4474
4474
|
trackSizes[size]
|
|
4475
4475
|
),
|
|
4476
4476
|
style: { top: "50%", transform: "translateY(-50%)" }
|
|
@@ -4480,7 +4480,7 @@ var RangeSlider = React114__default.forwardRef(
|
|
|
4480
4480
|
"div",
|
|
4481
4481
|
{
|
|
4482
4482
|
className: cn(
|
|
4483
|
-
"absolute rounded-full bg-
|
|
4483
|
+
"absolute rounded-full bg-muted-foreground opacity-30",
|
|
4484
4484
|
trackSizes[size]
|
|
4485
4485
|
),
|
|
4486
4486
|
style: {
|
|
@@ -4495,7 +4495,7 @@ var RangeSlider = React114__default.forwardRef(
|
|
|
4495
4495
|
"div",
|
|
4496
4496
|
{
|
|
4497
4497
|
className: cn(
|
|
4498
|
-
"absolute rounded-full bg-
|
|
4498
|
+
"absolute rounded-full bg-primary",
|
|
4499
4499
|
trackSizes[size]
|
|
4500
4500
|
),
|
|
4501
4501
|
style: {
|
|
@@ -4557,9 +4557,9 @@ var RangeSlider = React114__default.forwardRef(
|
|
|
4557
4557
|
"div",
|
|
4558
4558
|
{
|
|
4559
4559
|
className: cn(
|
|
4560
|
-
"absolute rounded-full bg-
|
|
4561
|
-
"border-2 border-
|
|
4562
|
-
"shadow-
|
|
4560
|
+
"absolute rounded-full bg-primary-foreground",
|
|
4561
|
+
"border-2 border-primary",
|
|
4562
|
+
"shadow-sm",
|
|
4563
4563
|
"pointer-events-none",
|
|
4564
4564
|
"transition-transform duration-100",
|
|
4565
4565
|
isDragging && "scale-110",
|
|
@@ -4577,7 +4577,7 @@ var RangeSlider = React114__default.forwardRef(
|
|
|
4577
4577
|
{
|
|
4578
4578
|
className: cn(
|
|
4579
4579
|
"absolute -top-8 px-2 py-0.5 rounded",
|
|
4580
|
-
"bg-
|
|
4580
|
+
"bg-foreground text-background",
|
|
4581
4581
|
"text-xs font-medium whitespace-nowrap",
|
|
4582
4582
|
"pointer-events-none"
|
|
4583
4583
|
),
|
|
@@ -4594,7 +4594,7 @@ var RangeSlider = React114__default.forwardRef(
|
|
|
4594
4594
|
return /* @__PURE__ */ jsx(
|
|
4595
4595
|
"div",
|
|
4596
4596
|
{
|
|
4597
|
-
className: "absolute w-px h-1.5 bg-
|
|
4597
|
+
className: "absolute w-px h-1.5 bg-muted-foreground",
|
|
4598
4598
|
style: { left: `${tickPercent}%` }
|
|
4599
4599
|
},
|
|
4600
4600
|
i
|
|
@@ -4847,7 +4847,7 @@ var TypewriterText = ({
|
|
|
4847
4847
|
!isComplete && /* @__PURE__ */ jsx(
|
|
4848
4848
|
"span",
|
|
4849
4849
|
{
|
|
4850
|
-
className: "inline-block w-[2px] h-[1em] bg-
|
|
4850
|
+
className: "inline-block w-[2px] h-[1em] bg-foreground ml-[1px] align-text-bottom animate-pulse",
|
|
4851
4851
|
"aria-hidden": "true"
|
|
4852
4852
|
}
|
|
4853
4853
|
)
|
|
@@ -4856,8 +4856,8 @@ var TypewriterText = ({
|
|
|
4856
4856
|
TypewriterText.displayName = "TypewriterText";
|
|
4857
4857
|
var backgroundClasses = {
|
|
4858
4858
|
default: "",
|
|
4859
|
-
alt: "bg-
|
|
4860
|
-
dark: "bg-
|
|
4859
|
+
alt: "bg-surface",
|
|
4860
|
+
dark: "bg-foreground text-background",
|
|
4861
4861
|
gradient: [
|
|
4862
4862
|
"bg-gradient-to-b",
|
|
4863
4863
|
"from-[var(--color-primary)]/5",
|
|
@@ -5961,9 +5961,9 @@ var ErrorState = ({
|
|
|
5961
5961
|
className
|
|
5962
5962
|
),
|
|
5963
5963
|
children: [
|
|
5964
|
-
/* @__PURE__ */ jsx(Box, { className: "mb-4 rounded-
|
|
5965
|
-
/* @__PURE__ */ jsx(Typography, { variant: "h3", className: "text-lg font-medium text-
|
|
5966
|
-
/* @__PURE__ */ jsx(Typography, { variant: "small", className: "mt-1 text-
|
|
5964
|
+
/* @__PURE__ */ jsx(Box, { className: "mb-4 rounded-full bg-error/10 p-3", children: /* @__PURE__ */ jsx(AlertCircle, { className: "h-8 w-8 text-error" }) }),
|
|
5965
|
+
/* @__PURE__ */ jsx(Typography, { variant: "h3", className: "text-lg font-medium text-foreground", children: resolvedTitle }),
|
|
5966
|
+
/* @__PURE__ */ jsx(Typography, { variant: "small", className: "mt-1 text-muted-foreground max-w-sm", children: resolvedMessage }),
|
|
5967
5967
|
(onRetry || retryEvent) && /* @__PURE__ */ jsx(Button, { variant: "secondary", className: "mt-4", onClick: handleRetry, children: t("error.retry") })
|
|
5968
5968
|
]
|
|
5969
5969
|
}
|
|
@@ -6011,7 +6011,7 @@ var ErrorBoundary = class extends React114__default.Component {
|
|
|
6011
6011
|
}
|
|
6012
6012
|
};
|
|
6013
6013
|
__publicField(ErrorBoundary, "displayName", "ErrorBoundary");
|
|
6014
|
-
var pulseClass = "animate-pulse bg-
|
|
6014
|
+
var pulseClass = "animate-pulse bg-muted/60 rounded";
|
|
6015
6015
|
function SkeletonLine({ className }) {
|
|
6016
6016
|
return /* @__PURE__ */ jsx(Box, { className: cn(pulseClass, "h-4", className) });
|
|
6017
6017
|
}
|
|
@@ -6025,20 +6025,20 @@ function HeaderSkeleton({ className }) {
|
|
|
6025
6025
|
/* @__PURE__ */ jsx(SkeletonLine, { className: "w-64" })
|
|
6026
6026
|
] }),
|
|
6027
6027
|
/* @__PURE__ */ jsxs(HStack, { gap: "sm", children: [
|
|
6028
|
-
/* @__PURE__ */ jsx(SkeletonBlock, { className: "h-9 w-24 rounded-
|
|
6029
|
-
/* @__PURE__ */ jsx(SkeletonBlock, { className: "h-9 w-32 rounded-
|
|
6028
|
+
/* @__PURE__ */ jsx(SkeletonBlock, { className: "h-9 w-24 rounded-md" }),
|
|
6029
|
+
/* @__PURE__ */ jsx(SkeletonBlock, { className: "h-9 w-32 rounded-md" })
|
|
6030
6030
|
] })
|
|
6031
6031
|
] });
|
|
6032
6032
|
}
|
|
6033
6033
|
function TableSkeleton({ rows = 5, columns = 4, className }) {
|
|
6034
|
-
return /* @__PURE__ */ jsxs(VStack, { gap: "none", className: cn("border border-
|
|
6035
|
-
/* @__PURE__ */ jsx(HStack, { className: "px-4 py-3 bg-
|
|
6034
|
+
return /* @__PURE__ */ jsxs(VStack, { gap: "none", className: cn("border border-border rounded-lg overflow-hidden", className), children: [
|
|
6035
|
+
/* @__PURE__ */ jsx(HStack, { className: "px-4 py-3 bg-muted/30 border-b border-border", children: Array.from({ length: columns }).map((_, i) => /* @__PURE__ */ jsx(SkeletonBlock, { className: "h-4 flex-1 mx-2" }, i)) }),
|
|
6036
6036
|
Array.from({ length: rows }).map((_, rowIdx) => /* @__PURE__ */ jsx(
|
|
6037
6037
|
HStack,
|
|
6038
6038
|
{
|
|
6039
6039
|
className: cn(
|
|
6040
6040
|
"px-4 py-3",
|
|
6041
|
-
rowIdx < rows - 1 && "border-b border-
|
|
6041
|
+
rowIdx < rows - 1 && "border-b border-border"
|
|
6042
6042
|
),
|
|
6043
6043
|
children: Array.from({ length: columns }).map((_2, colIdx) => /* @__PURE__ */ jsx(SkeletonLine, { className: "flex-1 mx-2" }, colIdx))
|
|
6044
6044
|
},
|
|
@@ -6051,11 +6051,11 @@ function FormSkeleton({ fields = 4, className }) {
|
|
|
6051
6051
|
/* @__PURE__ */ jsx(SkeletonBlock, { className: "h-6 w-40" }),
|
|
6052
6052
|
Array.from({ length: fields }).map((_, i) => /* @__PURE__ */ jsxs(VStack, { gap: "sm", children: [
|
|
6053
6053
|
/* @__PURE__ */ jsx(SkeletonBlock, { className: "h-4 w-24" }),
|
|
6054
|
-
/* @__PURE__ */ jsx(SkeletonBlock, { className: "h-10 w-full rounded-
|
|
6054
|
+
/* @__PURE__ */ jsx(SkeletonBlock, { className: "h-10 w-full rounded-md" })
|
|
6055
6055
|
] }, i)),
|
|
6056
6056
|
/* @__PURE__ */ jsxs(HStack, { gap: "md", className: "justify-end pt-2", children: [
|
|
6057
|
-
/* @__PURE__ */ jsx(SkeletonBlock, { className: "h-10 w-20 rounded-
|
|
6058
|
-
/* @__PURE__ */ jsx(SkeletonBlock, { className: "h-10 w-24 rounded-
|
|
6057
|
+
/* @__PURE__ */ jsx(SkeletonBlock, { className: "h-10 w-20 rounded-md" }),
|
|
6058
|
+
/* @__PURE__ */ jsx(SkeletonBlock, { className: "h-10 w-24 rounded-md" })
|
|
6059
6059
|
] })
|
|
6060
6060
|
] });
|
|
6061
6061
|
}
|
|
@@ -6065,7 +6065,7 @@ function CardSkeleton({ className }) {
|
|
|
6065
6065
|
{
|
|
6066
6066
|
gap: "md",
|
|
6067
6067
|
className: cn(
|
|
6068
|
-
"p-5 border border-
|
|
6068
|
+
"p-5 border border-border rounded-lg",
|
|
6069
6069
|
className
|
|
6070
6070
|
),
|
|
6071
6071
|
children: [
|
|
@@ -6195,16 +6195,16 @@ function isPortalSlot(slot) {
|
|
|
6195
6195
|
}
|
|
6196
6196
|
createContext(null);
|
|
6197
6197
|
var variantBorderClasses = {
|
|
6198
|
-
info: "border-
|
|
6199
|
-
success: "border-
|
|
6200
|
-
warning: "border-
|
|
6201
|
-
error: "border-
|
|
6198
|
+
info: "border-info",
|
|
6199
|
+
success: "border-success",
|
|
6200
|
+
warning: "border-warning",
|
|
6201
|
+
error: "border-error"
|
|
6202
6202
|
};
|
|
6203
6203
|
var variantIconColors = {
|
|
6204
|
-
info: "text-
|
|
6205
|
-
success: "text-
|
|
6206
|
-
warning: "text-
|
|
6207
|
-
error: "text-
|
|
6204
|
+
info: "text-info",
|
|
6205
|
+
success: "text-success",
|
|
6206
|
+
warning: "text-warning",
|
|
6207
|
+
error: "text-error"
|
|
6208
6208
|
};
|
|
6209
6209
|
var iconMap3 = {
|
|
6210
6210
|
info: Info,
|
|
@@ -6261,8 +6261,8 @@ var Alert = ({
|
|
|
6261
6261
|
type: "button",
|
|
6262
6262
|
onClick: handleDismiss,
|
|
6263
6263
|
className: cn(
|
|
6264
|
-
"flex-shrink-0 p-1 transition-colors rounded-
|
|
6265
|
-
"hover:bg-
|
|
6264
|
+
"flex-shrink-0 p-1 transition-colors rounded-sm",
|
|
6265
|
+
"hover:bg-muted"
|
|
6266
6266
|
),
|
|
6267
6267
|
"aria-label": "Dismiss alert",
|
|
6268
6268
|
children: /* @__PURE__ */ jsx(Icon, { icon: X, size: "sm" })
|
|
@@ -6280,10 +6280,10 @@ var positionClasses = {
|
|
|
6280
6280
|
right: "left-full top-1/2 -translate-y-1/2 ml-2"
|
|
6281
6281
|
};
|
|
6282
6282
|
var arrowClasses = {
|
|
6283
|
-
top: "top-full left-1/2 -translate-x-1/2 border-t-
|
|
6284
|
-
bottom: "bottom-full left-1/2 -translate-x-1/2 border-b-
|
|
6285
|
-
left: "left-full top-1/2 -translate-y-1/2 border-l-
|
|
6286
|
-
right: "right-full top-1/2 -translate-y-1/2 border-r-
|
|
6283
|
+
top: "top-full left-1/2 -translate-x-1/2 border-t-primary border-l-transparent border-r-transparent border-b-transparent",
|
|
6284
|
+
bottom: "bottom-full left-1/2 -translate-x-1/2 border-b-primary border-l-transparent border-r-transparent border-t-transparent",
|
|
6285
|
+
left: "left-full top-1/2 -translate-y-1/2 border-l-primary border-t-transparent border-b-transparent border-r-transparent",
|
|
6286
|
+
right: "right-full top-1/2 -translate-y-1/2 border-r-primary border-t-transparent border-b-transparent border-l-transparent"
|
|
6287
6287
|
};
|
|
6288
6288
|
var Tooltip = ({
|
|
6289
6289
|
content,
|
|
@@ -6347,8 +6347,8 @@ var Tooltip = ({
|
|
|
6347
6347
|
ref: tooltipRef,
|
|
6348
6348
|
className: cn(
|
|
6349
6349
|
"fixed z-50 px-3 py-2 max-w-xs",
|
|
6350
|
-
"bg-
|
|
6351
|
-
"shadow-
|
|
6350
|
+
"bg-primary text-primary-foreground",
|
|
6351
|
+
"shadow-sm rounded-sm",
|
|
6352
6352
|
"text-sm pointer-events-none",
|
|
6353
6353
|
"break-words whitespace-normal",
|
|
6354
6354
|
"h-auto min-h-fit",
|
|
@@ -6362,7 +6362,7 @@ var Tooltip = ({
|
|
|
6362
6362
|
},
|
|
6363
6363
|
role: "tooltip",
|
|
6364
6364
|
children: [
|
|
6365
|
-
/* @__PURE__ */ jsx("div", { className: "w-full break-words whitespace-normal h-auto", children: typeof content === "string" ? /* @__PURE__ */ jsx(Typography, { variant: "small", className: "text-
|
|
6365
|
+
/* @__PURE__ */ jsx("div", { className: "w-full break-words whitespace-normal h-auto", children: typeof content === "string" ? /* @__PURE__ */ jsx(Typography, { variant: "small", className: "text-primary-foreground break-words whitespace-normal", children: content }) : /* @__PURE__ */ jsx("div", { className: "break-words whitespace-normal", children: content }) }),
|
|
6366
6366
|
showArrow && /* @__PURE__ */ jsx(
|
|
6367
6367
|
"div",
|
|
6368
6368
|
{
|
|
@@ -6463,7 +6463,7 @@ var Popover = ({
|
|
|
6463
6463
|
ref: popoverRef,
|
|
6464
6464
|
className: cn(
|
|
6465
6465
|
"fixed z-50 p-4",
|
|
6466
|
-
"bg-
|
|
6466
|
+
"bg-card border-2 border-border shadow-lg",
|
|
6467
6467
|
positionClasses2[position],
|
|
6468
6468
|
className
|
|
6469
6469
|
),
|
|
@@ -6561,10 +6561,10 @@ var Menu = ({
|
|
|
6561
6561
|
}
|
|
6562
6562
|
);
|
|
6563
6563
|
const menuContainerStyles = cn(
|
|
6564
|
-
"bg-
|
|
6565
|
-
"border-[length:var(--border-width)] border-
|
|
6566
|
-
"shadow
|
|
6567
|
-
"rounded-
|
|
6564
|
+
"bg-card",
|
|
6565
|
+
"border-[length:var(--border-width)] border-border",
|
|
6566
|
+
"shadow",
|
|
6567
|
+
"rounded-sm",
|
|
6568
6568
|
"min-w-[200px] py-1"
|
|
6569
6569
|
);
|
|
6570
6570
|
const renderMenuItem = (item, hasSubMenu, index) => {
|
|
@@ -6581,11 +6581,11 @@ var Menu = ({
|
|
|
6581
6581
|
className: cn(
|
|
6582
6582
|
"w-full flex items-center justify-between gap-3 px-4 py-2 text-left",
|
|
6583
6583
|
"text-sm transition-colors",
|
|
6584
|
-
"hover:bg-
|
|
6585
|
-
"focus:outline-none focus:bg-
|
|
6584
|
+
"hover:bg-muted",
|
|
6585
|
+
"focus:outline-none focus:bg-muted",
|
|
6586
6586
|
"disabled:opacity-50 disabled:cursor-not-allowed",
|
|
6587
6587
|
item.disabled && "cursor-not-allowed",
|
|
6588
|
-
isDanger && "text-
|
|
6588
|
+
isDanger && "text-error hover:bg-error/10"
|
|
6589
6589
|
),
|
|
6590
6590
|
children: /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-3 flex-1 min-w-0", children: [
|
|
6591
6591
|
item.icon && (typeof item.icon === "string" ? /* @__PURE__ */ jsx(Icon, { name: item.icon, size: "sm", className: "flex-shrink-0" }) : /* @__PURE__ */ jsx(Icon, { icon: item.icon, size: "sm", className: "flex-shrink-0" })),
|
|
@@ -6710,7 +6710,7 @@ var Accordion = ({
|
|
|
6710
6710
|
return /* @__PURE__ */ jsx("div", { className: cn("w-full", className), children: normalizedItems.map((item, index) => {
|
|
6711
6711
|
const isOpen = openItemsSet.has(item.id);
|
|
6712
6712
|
const isDisabled = item.disabled;
|
|
6713
|
-
return /* @__PURE__ */ jsx("div", { className: index > 0 ? "mt-2" : "", children: /* @__PURE__ */ jsxs("div", { className: "border-2 border-
|
|
6713
|
+
return /* @__PURE__ */ jsx("div", { className: index > 0 ? "mt-2" : "", children: /* @__PURE__ */ jsxs("div", { className: "border-2 border-border overflow-hidden", children: [
|
|
6714
6714
|
/* @__PURE__ */ jsxs(
|
|
6715
6715
|
"button",
|
|
6716
6716
|
{
|
|
@@ -6719,12 +6719,12 @@ var Accordion = ({
|
|
|
6719
6719
|
disabled: isDisabled,
|
|
6720
6720
|
className: cn(
|
|
6721
6721
|
"w-full flex items-center justify-between px-4 py-3",
|
|
6722
|
-
"bg-
|
|
6723
|
-
"hover:bg-
|
|
6722
|
+
"bg-card",
|
|
6723
|
+
"hover:bg-muted",
|
|
6724
6724
|
"transition-colors duration-200",
|
|
6725
|
-
"focus:outline-none focus:ring-2 focus:ring-
|
|
6725
|
+
"focus:outline-none focus:ring-2 focus:ring-ring focus:ring-inset",
|
|
6726
6726
|
"disabled:opacity-50 disabled:cursor-not-allowed",
|
|
6727
|
-
isOpen && "bg-
|
|
6727
|
+
isOpen && "bg-muted font-bold"
|
|
6728
6728
|
),
|
|
6729
6729
|
"aria-expanded": isOpen,
|
|
6730
6730
|
"aria-controls": `accordion-content-${item.id}`,
|
|
@@ -6748,7 +6748,7 @@ var Accordion = ({
|
|
|
6748
6748
|
"div",
|
|
6749
6749
|
{
|
|
6750
6750
|
id: `accordion-content-${item.id}`,
|
|
6751
|
-
className: "px-4 py-3 bg-
|
|
6751
|
+
className: "px-4 py-3 bg-card border-t-2 border-border",
|
|
6752
6752
|
children: item.content
|
|
6753
6753
|
}
|
|
6754
6754
|
)
|
|
@@ -6901,7 +6901,7 @@ var FloatingActionButton = ({
|
|
|
6901
6901
|
size: "lg",
|
|
6902
6902
|
icon: resolvedAction.icon,
|
|
6903
6903
|
onClick: resolvedAction.onClick,
|
|
6904
|
-
className: "rounded-
|
|
6904
|
+
className: "rounded-full shadow-lg",
|
|
6905
6905
|
"aria-label": resolvedAction.label || "Action",
|
|
6906
6906
|
children: resolvedAction.label && /* @__PURE__ */ jsx(Typography, { as: "span", className: "sr-only", children: resolvedAction.label })
|
|
6907
6907
|
}
|
|
@@ -6946,7 +6946,7 @@ var FloatingActionButton = ({
|
|
|
6946
6946
|
transitionDelay: `${index * 50}ms`
|
|
6947
6947
|
},
|
|
6948
6948
|
children: [
|
|
6949
|
-
position.includes("right") && /* @__PURE__ */ jsx(Typography, { variant: "small", className: "text-
|
|
6949
|
+
position.includes("right") && /* @__PURE__ */ jsx(Typography, { variant: "small", className: "text-foreground dark:text-foreground bg-card dark:bg-card px-2 py-1 rounded shadow-sm whitespace-nowrap", children: actionItem.label }),
|
|
6950
6950
|
/* @__PURE__ */ jsx(
|
|
6951
6951
|
Button,
|
|
6952
6952
|
{
|
|
@@ -6958,12 +6958,12 @@ var FloatingActionButton = ({
|
|
|
6958
6958
|
if (actionItem.event) eventBus.emit(`UI:${actionItem.event}`, { actionId: actionItem.id });
|
|
6959
6959
|
actionItem.onClick?.();
|
|
6960
6960
|
},
|
|
6961
|
-
className: "rounded-
|
|
6961
|
+
className: "rounded-full shadow-lg",
|
|
6962
6962
|
"aria-label": actionItem.label,
|
|
6963
6963
|
children: /* @__PURE__ */ jsx(Typography, { as: "span", className: "sr-only", children: actionItem.label })
|
|
6964
6964
|
}
|
|
6965
6965
|
),
|
|
6966
|
-
position.includes("left") && /* @__PURE__ */ jsx(Typography, { variant: "small", className: "text-
|
|
6966
|
+
position.includes("left") && /* @__PURE__ */ jsx(Typography, { variant: "small", className: "text-foreground dark:text-foreground bg-card dark:bg-card px-2 py-1 rounded shadow-sm whitespace-nowrap", children: actionItem.label })
|
|
6967
6967
|
]
|
|
6968
6968
|
},
|
|
6969
6969
|
actionItem.id
|
|
@@ -6977,7 +6977,7 @@ var FloatingActionButton = ({
|
|
|
6977
6977
|
size: "lg",
|
|
6978
6978
|
icon: isExpanded ? X : Plus,
|
|
6979
6979
|
onClick: handleMainClick,
|
|
6980
|
-
className: "rounded-
|
|
6980
|
+
className: "rounded-full shadow-lg transition-all duration-300",
|
|
6981
6981
|
"aria-label": isExpanded ? "Close actions" : "Open actions",
|
|
6982
6982
|
"aria-expanded": isExpanded,
|
|
6983
6983
|
children: /* @__PURE__ */ jsx(Typography, { as: "span", className: "sr-only", children: isExpanded ? t("common.close") : t("common.open") })
|
|
@@ -7747,7 +7747,7 @@ var AuthLayout = ({
|
|
|
7747
7747
|
children: [
|
|
7748
7748
|
/* @__PURE__ */ jsx(Box, { className: "absolute inset-0 bg-gradient-to-br from-primary-600/90 to-primary-800/90" }),
|
|
7749
7749
|
/* @__PURE__ */ jsx(Box, { className: "relative z-10", children: /* @__PURE__ */ jsxs(Link, { to: "/", className: "flex items-center gap-3", children: [
|
|
7750
|
-
logo || /* @__PURE__ */ jsx(Box, { className: "w-10 h-10 bg-white/20 rounded-
|
|
7750
|
+
logo || /* @__PURE__ */ jsx(Box, { className: "w-10 h-10 bg-white/20 rounded-xl flex items-center justify-center backdrop-blur", children: /* @__PURE__ */ jsx(
|
|
7751
7751
|
Typography,
|
|
7752
7752
|
{
|
|
7753
7753
|
variant: "body1",
|
|
@@ -7784,7 +7784,7 @@ var AuthLayout = ({
|
|
|
7784
7784
|
children: "Sign in to access your dashboard and manage your account."
|
|
7785
7785
|
}
|
|
7786
7786
|
),
|
|
7787
|
-
/* @__PURE__ */ jsxs(Box, { className: "mt-12 p-6 bg-white/10 rounded-
|
|
7787
|
+
/* @__PURE__ */ jsxs(Box, { className: "mt-12 p-6 bg-white/10 rounded-xl backdrop-blur", children: [
|
|
7788
7788
|
/* @__PURE__ */ jsx(
|
|
7789
7789
|
Typography,
|
|
7790
7790
|
{
|
|
@@ -7794,7 +7794,7 @@ var AuthLayout = ({
|
|
|
7794
7794
|
}
|
|
7795
7795
|
),
|
|
7796
7796
|
/* @__PURE__ */ jsxs(HStack, { className: "mt-4", gap: "sm", align: "center", children: [
|
|
7797
|
-
/* @__PURE__ */ jsx(Box, { className: "w-10 h-10 bg-white/20 rounded-
|
|
7797
|
+
/* @__PURE__ */ jsx(Box, { className: "w-10 h-10 bg-white/20 rounded-full" }),
|
|
7798
7798
|
/* @__PURE__ */ jsxs(VStack, { gap: "none", children: [
|
|
7799
7799
|
/* @__PURE__ */ jsx(
|
|
7800
7800
|
Typography,
|
|
@@ -7816,8 +7816,8 @@ var AuthLayout = ({
|
|
|
7816
7816
|
] })
|
|
7817
7817
|
] })
|
|
7818
7818
|
] }) }),
|
|
7819
|
-
/* @__PURE__ */ jsx(Box, { className: "absolute -bottom-32 -right-32 w-96 h-96 bg-white/5 rounded-
|
|
7820
|
-
/* @__PURE__ */ jsx(Box, { className: "absolute -top-16 -right-16 w-64 h-64 bg-white/5 rounded-
|
|
7819
|
+
/* @__PURE__ */ jsx(Box, { className: "absolute -bottom-32 -right-32 w-96 h-96 bg-white/5 rounded-full" }),
|
|
7820
|
+
/* @__PURE__ */ jsx(Box, { className: "absolute -top-16 -right-16 w-64 h-64 bg-white/5 rounded-full" })
|
|
7821
7821
|
]
|
|
7822
7822
|
}
|
|
7823
7823
|
),
|
|
@@ -7826,11 +7826,11 @@ var AuthLayout = ({
|
|
|
7826
7826
|
{
|
|
7827
7827
|
className: cn(
|
|
7828
7828
|
"flex-1 flex items-center justify-center p-6 sm:p-12",
|
|
7829
|
-
"bg-
|
|
7829
|
+
"bg-background"
|
|
7830
7830
|
),
|
|
7831
7831
|
children: /* @__PURE__ */ jsxs(Box, { className: "w-full max-w-md", children: [
|
|
7832
7832
|
/* @__PURE__ */ jsx(Box, { className: "lg:hidden mb-8 text-center", children: /* @__PURE__ */ jsxs(Link, { to: "/", className: "inline-flex items-center gap-3", children: [
|
|
7833
|
-
logo || /* @__PURE__ */ jsx(Box, { className: "w-12 h-12 bg-primary-600 rounded-
|
|
7833
|
+
logo || /* @__PURE__ */ jsx(Box, { className: "w-12 h-12 bg-primary-600 rounded-xl flex items-center justify-center", children: /* @__PURE__ */ jsx(
|
|
7834
7834
|
Typography,
|
|
7835
7835
|
{
|
|
7836
7836
|
variant: "body1",
|
|
@@ -7842,7 +7842,7 @@ var AuthLayout = ({
|
|
|
7842
7842
|
Typography,
|
|
7843
7843
|
{
|
|
7844
7844
|
variant: "body1",
|
|
7845
|
-
className: "text-2xl font-bold text-
|
|
7845
|
+
className: "text-2xl font-bold text-foreground",
|
|
7846
7846
|
children: appName
|
|
7847
7847
|
}
|
|
7848
7848
|
)
|
|
@@ -7871,13 +7871,13 @@ var LoadingState = ({
|
|
|
7871
7871
|
),
|
|
7872
7872
|
children: [
|
|
7873
7873
|
/* @__PURE__ */ jsx(Spinner, { size: "lg" }),
|
|
7874
|
-
title && /* @__PURE__ */ jsx(Typography, { variant: "h3", className: "mt-4 text-lg font-semibold text-
|
|
7874
|
+
title && /* @__PURE__ */ jsx(Typography, { variant: "h3", className: "mt-4 text-lg font-semibold text-foreground", children: title }),
|
|
7875
7875
|
/* @__PURE__ */ jsx(
|
|
7876
7876
|
Typography,
|
|
7877
7877
|
{
|
|
7878
7878
|
variant: "small",
|
|
7879
7879
|
className: cn(
|
|
7880
|
-
"text-
|
|
7880
|
+
"text-muted-foreground",
|
|
7881
7881
|
title ? "mt-2" : "mt-4"
|
|
7882
7882
|
),
|
|
7883
7883
|
children: displayMessage
|
|
@@ -9012,7 +9012,7 @@ function BattleBoard({
|
|
|
9012
9012
|
]
|
|
9013
9013
|
);
|
|
9014
9014
|
const shakeStyle = isShaking ? { animation: "battle-shake 0.3s ease-in-out" } : {};
|
|
9015
|
-
return /* @__PURE__ */ jsxs(VStack, { className: cn("battle-board relative min-h-[600px] bg-
|
|
9015
|
+
return /* @__PURE__ */ jsxs(VStack, { className: cn("battle-board relative min-h-[600px] bg-background", className), gap: "none", children: [
|
|
9016
9016
|
/* @__PURE__ */ jsx("style", { children: `
|
|
9017
9017
|
@keyframes battle-shake {
|
|
9018
9018
|
0%, 100% { transform: translate(0, 0); }
|
|
@@ -9311,7 +9311,7 @@ var MarkdownContent = React114__default.memo(
|
|
|
9311
9311
|
"blockquote",
|
|
9312
9312
|
{
|
|
9313
9313
|
...props,
|
|
9314
|
-
className: "border-l-4 border-blue-500 pl-4 italic text-
|
|
9314
|
+
className: "border-l-4 border-blue-500 pl-4 italic text-foreground my-4",
|
|
9315
9315
|
children
|
|
9316
9316
|
}
|
|
9317
9317
|
);
|
|
@@ -9386,7 +9386,7 @@ var CodeBlock = React114__default.memo(
|
|
|
9386
9386
|
variant: "ghost",
|
|
9387
9387
|
size: "sm",
|
|
9388
9388
|
onClick: handleCopy,
|
|
9389
|
-
className: "opacity-0 group-hover:opacity-100 focus:opacity-100 transition-opacity text-
|
|
9389
|
+
className: "opacity-0 group-hover:opacity-100 focus:opacity-100 transition-opacity text-muted-foreground hover:text-white",
|
|
9390
9390
|
"aria-label": "Copy code",
|
|
9391
9391
|
children: copied ? /* @__PURE__ */ jsx(Check, { size: 16, className: "text-green-400" }) : /* @__PURE__ */ jsx(Copy, { size: 16 })
|
|
9392
9392
|
}
|
|
@@ -9463,10 +9463,10 @@ function Card2({
|
|
|
9463
9463
|
"div",
|
|
9464
9464
|
{
|
|
9465
9465
|
className: `
|
|
9466
|
-
bg-
|
|
9467
|
-
border border-
|
|
9468
|
-
rounded-
|
|
9469
|
-
${isClickable ? "cursor-pointer hover:shadow-
|
|
9466
|
+
bg-card
|
|
9467
|
+
border border-border
|
|
9468
|
+
rounded-md shadow-sm
|
|
9469
|
+
${isClickable ? "cursor-pointer hover:shadow-lg transition-shadow" : ""}
|
|
9470
9470
|
${className}
|
|
9471
9471
|
`,
|
|
9472
9472
|
onClick: isClickable ? handleClick : void 0,
|
|
@@ -9490,11 +9490,11 @@ function Card2({
|
|
|
9490
9490
|
) }),
|
|
9491
9491
|
/* @__PURE__ */ jsxs("div", { className: "p-4", children: [
|
|
9492
9492
|
(title || subtitle) && /* @__PURE__ */ jsxs("div", { className: "mb-3", children: [
|
|
9493
|
-
title && /* @__PURE__ */ jsx("h3", { className: "text-lg font-semibold text-
|
|
9494
|
-
subtitle && /* @__PURE__ */ jsx("p", { className: "text-sm text-
|
|
9493
|
+
title && /* @__PURE__ */ jsx("h3", { className: "text-lg font-semibold text-card-foreground", children: title }),
|
|
9494
|
+
subtitle && /* @__PURE__ */ jsx("p", { className: "text-sm text-muted-foreground mt-1", children: subtitle })
|
|
9495
9495
|
] }),
|
|
9496
|
-
children && /* @__PURE__ */ jsx("div", { className: "text-
|
|
9497
|
-
actions && actions.length > 0 && /* @__PURE__ */ jsx("div", { className: "flex flex-wrap gap-2 mt-4 pt-4 border-t border-
|
|
9496
|
+
children && /* @__PURE__ */ jsx("div", { className: "text-card-foreground", children }),
|
|
9497
|
+
actions && actions.length > 0 && /* @__PURE__ */ jsx("div", { className: "flex flex-wrap gap-2 mt-4 pt-4 border-t border-border", children: actions.map((action2, index) => /* @__PURE__ */ jsx(
|
|
9498
9498
|
"button",
|
|
9499
9499
|
{
|
|
9500
9500
|
onClick: (e) => {
|
|
@@ -9504,9 +9504,9 @@ function Card2({
|
|
|
9504
9504
|
},
|
|
9505
9505
|
disabled: action2.disabled,
|
|
9506
9506
|
className: `
|
|
9507
|
-
px-3 py-1.5 text-sm font-medium rounded-
|
|
9507
|
+
px-3 py-1.5 text-sm font-medium rounded-sm
|
|
9508
9508
|
transition-colors
|
|
9509
|
-
${action2.variant === "primary" ? "bg-
|
|
9509
|
+
${action2.variant === "primary" ? "bg-primary text-primary-foreground hover:bg-primary-hover disabled:opacity-50" : action2.variant === "danger" ? "bg-error text-error-foreground hover:opacity-90 disabled:opacity-50" : "bg-muted text-foreground hover:bg-[var(--color-surface-hover)]"}
|
|
9510
9510
|
disabled:cursor-not-allowed
|
|
9511
9511
|
`,
|
|
9512
9512
|
children: action2.label
|
|
@@ -9531,7 +9531,7 @@ var QuizBlock = ({
|
|
|
9531
9531
|
/* @__PURE__ */ jsx(Icon, { icon: HelpCircle, size: "sm", className: "text-blue-500 mt-0.5 shrink-0" }),
|
|
9532
9532
|
/* @__PURE__ */ jsx(Typography, { variant: "body", className: "font-medium", children: question })
|
|
9533
9533
|
] }),
|
|
9534
|
-
revealed ? /* @__PURE__ */ jsx(Box, { className: "pl-7 pt-2 border-t border-gray-200 dark:border-gray-700", children: /* @__PURE__ */ jsx(Typography, { variant: "body", className: "text-
|
|
9534
|
+
revealed ? /* @__PURE__ */ jsx(Box, { className: "pl-7 pt-2 border-t border-gray-200 dark:border-gray-700", children: /* @__PURE__ */ jsx(Typography, { variant: "body", className: "text-muted-foreground", children: answer }) }) : null,
|
|
9535
9535
|
/* @__PURE__ */ jsx(
|
|
9536
9536
|
Button,
|
|
9537
9537
|
{
|
|
@@ -11169,7 +11169,7 @@ var BookCoverPage = ({
|
|
|
11169
11169
|
Typography,
|
|
11170
11170
|
{
|
|
11171
11171
|
variant: "h2",
|
|
11172
|
-
className: "text-xl text-
|
|
11172
|
+
className: "text-xl text-muted-foreground",
|
|
11173
11173
|
children: subtitle
|
|
11174
11174
|
}
|
|
11175
11175
|
),
|
|
@@ -11177,7 +11177,7 @@ var BookCoverPage = ({
|
|
|
11177
11177
|
Typography,
|
|
11178
11178
|
{
|
|
11179
11179
|
variant: "body",
|
|
11180
|
-
className: "text-
|
|
11180
|
+
className: "text-muted-foreground mt-4",
|
|
11181
11181
|
children: author
|
|
11182
11182
|
}
|
|
11183
11183
|
)
|
|
@@ -11213,7 +11213,7 @@ var BookNavBar = ({
|
|
|
11213
11213
|
Box,
|
|
11214
11214
|
{
|
|
11215
11215
|
className: cn(
|
|
11216
|
-
"sticky bottom-0 bg-
|
|
11216
|
+
"sticky bottom-0 bg-background border-t border-border print:hidden z-10",
|
|
11217
11217
|
className
|
|
11218
11218
|
),
|
|
11219
11219
|
style: { direction },
|
|
@@ -11245,7 +11245,7 @@ var BookNavBar = ({
|
|
|
11245
11245
|
Typography,
|
|
11246
11246
|
{
|
|
11247
11247
|
variant: "caption",
|
|
11248
|
-
className: "text-center block truncate text-
|
|
11248
|
+
className: "text-center block truncate text-muted-foreground",
|
|
11249
11249
|
children: chapterTitle
|
|
11250
11250
|
}
|
|
11251
11251
|
),
|
|
@@ -11379,15 +11379,15 @@ var EmptyState = ({
|
|
|
11379
11379
|
Box,
|
|
11380
11380
|
{
|
|
11381
11381
|
className: cn(
|
|
11382
|
-
"mb-4 rounded-
|
|
11383
|
-
isDestructive ? "bg-
|
|
11382
|
+
"mb-4 rounded-full p-3",
|
|
11383
|
+
isDestructive ? "bg-error/10" : isSuccess ? "bg-success/10" : "bg-muted"
|
|
11384
11384
|
),
|
|
11385
11385
|
children: /* @__PURE__ */ jsx(
|
|
11386
11386
|
Icon3,
|
|
11387
11387
|
{
|
|
11388
11388
|
className: cn(
|
|
11389
11389
|
"h-8 w-8",
|
|
11390
|
-
isDestructive ? "text-
|
|
11390
|
+
isDestructive ? "text-error" : isSuccess ? "text-success" : "text-muted-foreground"
|
|
11391
11391
|
)
|
|
11392
11392
|
}
|
|
11393
11393
|
)
|
|
@@ -11399,12 +11399,12 @@ var EmptyState = ({
|
|
|
11399
11399
|
variant: "h3",
|
|
11400
11400
|
className: cn(
|
|
11401
11401
|
"text-lg font-medium",
|
|
11402
|
-
isDestructive ? "text-
|
|
11402
|
+
isDestructive ? "text-error" : isSuccess ? "text-success" : "text-foreground"
|
|
11403
11403
|
),
|
|
11404
11404
|
children: displayText
|
|
11405
11405
|
}
|
|
11406
11406
|
),
|
|
11407
|
-
description && /* @__PURE__ */ jsx(Typography, { variant: "small", className: "mt-1 text-
|
|
11407
|
+
description && /* @__PURE__ */ jsx(Typography, { variant: "small", className: "mt-1 text-muted-foreground max-w-sm", children: description }),
|
|
11408
11408
|
actionLabel && (onAction || actionEvent) && /* @__PURE__ */ jsx(
|
|
11409
11409
|
Button,
|
|
11410
11410
|
{
|
|
@@ -11553,7 +11553,7 @@ var BookViewer = ({
|
|
|
11553
11553
|
const currentChapterId = currentPage >= 2 ? chapters[currentPage - 2]?.id : void 0;
|
|
11554
11554
|
const currentChapterTitle = currentPage >= 2 ? chapters[currentPage - 2]?.title : void 0;
|
|
11555
11555
|
if (!book) return /* @__PURE__ */ jsx(EmptyState, { message: t("book.noData") });
|
|
11556
|
-
return /* @__PURE__ */ jsxs(VStack, { className: cn("relative h-full overflow-hidden bg-
|
|
11556
|
+
return /* @__PURE__ */ jsxs(VStack, { className: cn("relative h-full overflow-hidden bg-background", className), children: [
|
|
11557
11557
|
/* @__PURE__ */ jsxs(
|
|
11558
11558
|
Box,
|
|
11559
11559
|
{
|
|
@@ -11891,7 +11891,7 @@ var Breadcrumb = ({
|
|
|
11891
11891
|
href: item.href || item.path,
|
|
11892
11892
|
className: cn(
|
|
11893
11893
|
"flex items-center gap-1.5 transition-colors",
|
|
11894
|
-
isLast ? "text-
|
|
11894
|
+
isLast ? "text-foreground font-bold" : "text-muted-foreground hover:text-foreground"
|
|
11895
11895
|
),
|
|
11896
11896
|
"aria-current": isLast ? "page" : void 0,
|
|
11897
11897
|
children: [
|
|
@@ -11916,8 +11916,8 @@ var Breadcrumb = ({
|
|
|
11916
11916
|
},
|
|
11917
11917
|
className: cn(
|
|
11918
11918
|
"flex items-center gap-1.5 transition-colors",
|
|
11919
|
-
"focus:outline-none focus:ring-2 focus:ring-
|
|
11920
|
-
isLast ? "text-
|
|
11919
|
+
"focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",
|
|
11920
|
+
isLast ? "text-foreground font-bold cursor-default" : "text-muted-foreground hover:text-foreground"
|
|
11921
11921
|
),
|
|
11922
11922
|
"aria-current": isLast ? "page" : void 0,
|
|
11923
11923
|
disabled: isLast,
|
|
@@ -11939,7 +11939,7 @@ var Breadcrumb = ({
|
|
|
11939
11939
|
{
|
|
11940
11940
|
icon: separator,
|
|
11941
11941
|
size: "sm",
|
|
11942
|
-
className: "text-
|
|
11942
|
+
className: "text-muted-foreground"
|
|
11943
11943
|
}
|
|
11944
11944
|
)
|
|
11945
11945
|
] }, index);
|
|
@@ -12017,13 +12017,13 @@ function BuilderBoard({
|
|
|
12017
12017
|
backgroundPosition: "center"
|
|
12018
12018
|
},
|
|
12019
12019
|
children: /* @__PURE__ */ jsxs(VStack, { gap: "lg", className: "p-4", children: [
|
|
12020
|
-
entity.headerImage && !headerError ? /* @__PURE__ */ jsx(Box, { className: "w-full h-32 overflow-hidden rounded-lg", children: /* @__PURE__ */ jsx("img", { src: entity.headerImage, alt: "", onError: () => setHeaderError(true), className: "w-full h-full object-cover" }) }) : entity.headerImage && headerError ? /* @__PURE__ */ jsx(Box, { className: "w-full h-32 rounded-lg bg-gradient-to-br from-
|
|
12020
|
+
entity.headerImage && !headerError ? /* @__PURE__ */ jsx(Box, { className: "w-full h-32 overflow-hidden rounded-lg", children: /* @__PURE__ */ jsx("img", { src: entity.headerImage, alt: "", onError: () => setHeaderError(true), className: "w-full h-full object-cover" }) }) : entity.headerImage && headerError ? /* @__PURE__ */ jsx(Box, { className: "w-full h-32 rounded-lg bg-gradient-to-br from-muted to-accent opacity-60" }) : null,
|
|
12021
12021
|
/* @__PURE__ */ jsx(Card, { className: "p-4", children: /* @__PURE__ */ jsxs(VStack, { gap: "sm", children: [
|
|
12022
12022
|
/* @__PURE__ */ jsx(Typography, { variant: "h4", weight: "bold", children: entity.title }),
|
|
12023
12023
|
/* @__PURE__ */ jsx(Typography, { variant: "body", children: entity.description })
|
|
12024
12024
|
] }) }),
|
|
12025
12025
|
/* @__PURE__ */ jsx(Card, { className: "p-4", children: /* @__PURE__ */ jsxs(VStack, { gap: "sm", children: [
|
|
12026
|
-
/* @__PURE__ */ jsx(Typography, { variant: "small", weight: "bold", className: "uppercase tracking-wider text-
|
|
12026
|
+
/* @__PURE__ */ jsx(Typography, { variant: "small", weight: "bold", className: "uppercase tracking-wider text-muted-foreground", children: t("builder.components") }),
|
|
12027
12027
|
/* @__PURE__ */ jsxs(HStack, { gap: "sm", className: "flex-wrap", children: [
|
|
12028
12028
|
availableComponents.map((comp) => /* @__PURE__ */ jsxs(
|
|
12029
12029
|
Button,
|
|
@@ -12042,11 +12042,11 @@ function BuilderBoard({
|
|
|
12042
12042
|
},
|
|
12043
12043
|
comp.id
|
|
12044
12044
|
)),
|
|
12045
|
-
availableComponents.length === 0 && !submitted && /* @__PURE__ */ jsx(Typography, { variant: "caption", className: "text-
|
|
12045
|
+
availableComponents.length === 0 && !submitted && /* @__PURE__ */ jsx(Typography, { variant: "caption", className: "text-muted-foreground", children: t("builder.allPlaced") })
|
|
12046
12046
|
] })
|
|
12047
12047
|
] }) }),
|
|
12048
12048
|
/* @__PURE__ */ jsx(Card, { className: "p-4", children: /* @__PURE__ */ jsxs(VStack, { gap: "sm", children: [
|
|
12049
|
-
/* @__PURE__ */ jsx(Typography, { variant: "small", weight: "bold", className: "uppercase tracking-wider text-
|
|
12049
|
+
/* @__PURE__ */ jsx(Typography, { variant: "small", weight: "bold", className: "uppercase tracking-wider text-muted-foreground", children: t("builder.blueprint") }),
|
|
12050
12050
|
/* @__PURE__ */ jsx(VStack, { gap: "sm", children: slots.map((slot) => {
|
|
12051
12051
|
const placedComp = placements[slot.id] ? getComponentById(placements[slot.id]) : null;
|
|
12052
12052
|
const result = results.find((r) => r.slot.id === slot.id);
|
|
@@ -12055,12 +12055,12 @@ function BuilderBoard({
|
|
|
12055
12055
|
{
|
|
12056
12056
|
gap: "sm",
|
|
12057
12057
|
align: "center",
|
|
12058
|
-
className: `p-3 border-2 rounded ${result ? result.correct ? "border-green-500" : "border-red-500" : selectedComponent ? "border-dashed border-
|
|
12058
|
+
className: `p-3 border-2 rounded ${result ? result.correct ? "border-green-500" : "border-red-500" : selectedComponent ? "border-dashed border-foreground cursor-pointer" : "border-border"}`,
|
|
12059
12059
|
onClick: () => handlePlaceComponent(slot.id),
|
|
12060
12060
|
children: [
|
|
12061
12061
|
/* @__PURE__ */ jsxs(VStack, { gap: "none", className: "flex-1", children: [
|
|
12062
12062
|
/* @__PURE__ */ jsx(Typography, { variant: "body", weight: "medium", children: slot.label }),
|
|
12063
|
-
slot.description && /* @__PURE__ */ jsx(Typography, { variant: "caption", className: "text-
|
|
12063
|
+
slot.description && /* @__PURE__ */ jsx(Typography, { variant: "caption", className: "text-muted-foreground", children: slot.description })
|
|
12064
12064
|
] }),
|
|
12065
12065
|
placedComp ? /* @__PURE__ */ jsxs(HStack, { gap: "xs", align: "center", children: [
|
|
12066
12066
|
/* @__PURE__ */ jsxs(Badge, { size: "sm", onClick: () => handleRemoveFromSlot(slot.id), children: [
|
|
@@ -12071,7 +12071,7 @@ function BuilderBoard({
|
|
|
12071
12071
|
placedComp.label
|
|
12072
12072
|
] }),
|
|
12073
12073
|
result && /* @__PURE__ */ jsx(Icon, { icon: result.correct ? CheckCircle : XCircle, size: "sm", className: result.correct ? "text-green-600" : "text-red-600" })
|
|
12074
|
-
] }) : /* @__PURE__ */ jsx(Typography, { variant: "caption", className: "text-
|
|
12074
|
+
] }) : /* @__PURE__ */ jsx(Typography, { variant: "caption", className: "text-muted-foreground", children: t("builder.empty") })
|
|
12075
12075
|
]
|
|
12076
12076
|
},
|
|
12077
12077
|
slot.id
|
|
@@ -12320,7 +12320,7 @@ function CalendarGrid({
|
|
|
12320
12320
|
onPointerCancel: swipe.onPointerCancel
|
|
12321
12321
|
} : {},
|
|
12322
12322
|
children: /* @__PURE__ */ jsxs(Box, { className: "min-w-[800px]", children: [
|
|
12323
|
-
/* @__PURE__ */ jsxs(Box, { className: "grid grid-cols-8 border-b border-
|
|
12323
|
+
/* @__PURE__ */ jsxs(Box, { className: "grid grid-cols-8 border-b border-border", children: [
|
|
12324
12324
|
/* @__PURE__ */ jsx(Box, { className: "p-2" }),
|
|
12325
12325
|
weekDays.map((day) => {
|
|
12326
12326
|
const isToday = day.toDateString() === (/* @__PURE__ */ new Date()).toDateString();
|
|
@@ -12328,7 +12328,7 @@ function CalendarGrid({
|
|
|
12328
12328
|
return /* @__PURE__ */ jsxs(
|
|
12329
12329
|
Box,
|
|
12330
12330
|
{
|
|
12331
|
-
className: "border-l border-
|
|
12331
|
+
className: "border-l border-border",
|
|
12332
12332
|
children: [
|
|
12333
12333
|
/* @__PURE__ */ jsx(
|
|
12334
12334
|
DayCell,
|
|
@@ -12348,13 +12348,13 @@ function CalendarGrid({
|
|
|
12348
12348
|
/* @__PURE__ */ jsx(Box, { className: "max-h-[500px] overflow-y-auto", children: resolvedTimeSlots.map((time) => /* @__PURE__ */ jsxs(
|
|
12349
12349
|
Box,
|
|
12350
12350
|
{
|
|
12351
|
-
className: "grid grid-cols-8 border-b border-
|
|
12351
|
+
className: "grid grid-cols-8 border-b border-border",
|
|
12352
12352
|
children: [
|
|
12353
12353
|
/* @__PURE__ */ jsx(Box, { className: "p-2 text-right pr-3", children: /* @__PURE__ */ jsx(
|
|
12354
12354
|
Typography,
|
|
12355
12355
|
{
|
|
12356
12356
|
variant: "small",
|
|
12357
|
-
className: "text-
|
|
12357
|
+
className: "text-muted-foreground",
|
|
12358
12358
|
children: time
|
|
12359
12359
|
}
|
|
12360
12360
|
) }),
|
|
@@ -12370,7 +12370,7 @@ function CalendarGrid({
|
|
|
12370
12370
|
isOccupied: slotEvents.length > 0,
|
|
12371
12371
|
onClick: () => handleSlotClick(day, time),
|
|
12372
12372
|
className: cn(
|
|
12373
|
-
"border-l border-
|
|
12373
|
+
"border-l border-border",
|
|
12374
12374
|
isToday && "bg-blue-50/30"
|
|
12375
12375
|
),
|
|
12376
12376
|
...longPressEvent ? {
|
|
@@ -13921,16 +13921,16 @@ var CardGrid = ({
|
|
|
13921
13921
|
return children;
|
|
13922
13922
|
}
|
|
13923
13923
|
if (isLoading) {
|
|
13924
|
-
return /* @__PURE__ */ jsx(Box, { className: "col-span-full text-center py-8 text-
|
|
13924
|
+
return /* @__PURE__ */ jsx(Box, { className: "col-span-full text-center py-8 text-muted-foreground", children: /* @__PURE__ */ jsx(Typography, { variant: "body", color: "secondary", children: "Loading items..." }) });
|
|
13925
13925
|
}
|
|
13926
13926
|
if (error) {
|
|
13927
|
-
return /* @__PURE__ */ jsx(Box, { className: "col-span-full text-center py-8 text-
|
|
13927
|
+
return /* @__PURE__ */ jsx(Box, { className: "col-span-full text-center py-8 text-error", children: /* @__PURE__ */ jsxs(Typography, { variant: "body", color: "error", children: [
|
|
13928
13928
|
"Error loading items: ",
|
|
13929
13929
|
error.message
|
|
13930
13930
|
] }) });
|
|
13931
13931
|
}
|
|
13932
13932
|
if (normalizedData.length === 0) {
|
|
13933
|
-
return /* @__PURE__ */ jsx(Box, { className: "col-span-full text-center py-12 text-
|
|
13933
|
+
return /* @__PURE__ */ jsx(Box, { className: "col-span-full text-center py-12 text-muted-foreground", children: /* @__PURE__ */ jsx(Typography, { variant: "body", color: "secondary", children: t("empty.noItems") || "No items found" }) });
|
|
13934
13934
|
}
|
|
13935
13935
|
return normalizedData.map((item, index) => {
|
|
13936
13936
|
const itemData = item;
|
|
@@ -13942,9 +13942,9 @@ var CardGrid = ({
|
|
|
13942
13942
|
{
|
|
13943
13943
|
"data-entity-row": true,
|
|
13944
13944
|
className: cn(
|
|
13945
|
-
"bg-
|
|
13946
|
-
"shadow-
|
|
13947
|
-
"cursor-pointer hover:border-
|
|
13945
|
+
"bg-card rounded-lg border border-border",
|
|
13946
|
+
"shadow-sm hover:shadow-lg",
|
|
13947
|
+
"cursor-pointer hover:border-primary transition-all",
|
|
13948
13948
|
"flex flex-col"
|
|
13949
13949
|
),
|
|
13950
13950
|
action: "VIEW",
|
|
@@ -13953,7 +13953,7 @@ var CardGrid = ({
|
|
|
13953
13953
|
imageField && (() => {
|
|
13954
13954
|
const imgUrl = getNestedValue(itemData, imageField);
|
|
13955
13955
|
if (!imgUrl || typeof imgUrl !== "string") return null;
|
|
13956
|
-
return /* @__PURE__ */ jsx(Box, { className: "w-full aspect-video overflow-hidden rounded-t-
|
|
13956
|
+
return /* @__PURE__ */ jsx(Box, { className: "w-full aspect-video overflow-hidden rounded-t-lg", children: /* @__PURE__ */ jsx(
|
|
13957
13957
|
"img",
|
|
13958
13958
|
{
|
|
13959
13959
|
src: imgUrl,
|
|
@@ -13975,7 +13975,7 @@ var CardGrid = ({
|
|
|
13975
13975
|
size: "sm",
|
|
13976
13976
|
onClick: handleActionClick(action, itemData),
|
|
13977
13977
|
"data-testid": action.event ? `action-${action.event}` : void 0,
|
|
13978
|
-
className: "text-
|
|
13978
|
+
className: "text-error hover:bg-error/10 px-2",
|
|
13979
13979
|
children: action.label
|
|
13980
13980
|
},
|
|
13981
13981
|
actionIdx
|
|
@@ -13998,7 +13998,7 @@ var CardGrid = ({
|
|
|
13998
13998
|
/* @__PURE__ */ jsx(Typography, { variant: "small", className: "text-right truncate max-w-[60%]", children: displayValue })
|
|
13999
13999
|
] }, field);
|
|
14000
14000
|
}) }) }),
|
|
14001
|
-
primaryActions.length > 0 && /* @__PURE__ */ jsx(Box, { className: "px-4 py-3 mt-auto border-t border-
|
|
14001
|
+
primaryActions.length > 0 && /* @__PURE__ */ jsx(Box, { className: "px-4 py-3 mt-auto border-t border-border", children: /* @__PURE__ */ jsx(HStack, { gap: "sm", className: "justify-end", children: primaryActions.map((action, actionIdx) => /* @__PURE__ */ jsx(
|
|
14002
14002
|
Button,
|
|
14003
14003
|
{
|
|
14004
14004
|
variant: action.variant === "primary" ? "primary" : "ghost",
|
|
@@ -14216,10 +14216,10 @@ var Carousel = ({
|
|
|
14216
14216
|
"aria-label": "Previous slide",
|
|
14217
14217
|
className: cn(
|
|
14218
14218
|
"rounded-full",
|
|
14219
|
-
"bg-
|
|
14219
|
+
"bg-surface/80",
|
|
14220
14220
|
"backdrop-blur-sm",
|
|
14221
|
-
"shadow-
|
|
14222
|
-
"hover:bg-
|
|
14221
|
+
"shadow-sm",
|
|
14222
|
+
"hover:bg-surface"
|
|
14223
14223
|
),
|
|
14224
14224
|
children: /* @__PURE__ */ jsx(ChevronLeft, { className: "w-5 h-5" })
|
|
14225
14225
|
}
|
|
@@ -14240,10 +14240,10 @@ var Carousel = ({
|
|
|
14240
14240
|
"aria-label": "Next slide",
|
|
14241
14241
|
className: cn(
|
|
14242
14242
|
"rounded-full",
|
|
14243
|
-
"bg-
|
|
14243
|
+
"bg-surface/80",
|
|
14244
14244
|
"backdrop-blur-sm",
|
|
14245
|
-
"shadow-
|
|
14246
|
-
"hover:bg-
|
|
14245
|
+
"shadow-sm",
|
|
14246
|
+
"hover:bg-surface"
|
|
14247
14247
|
),
|
|
14248
14248
|
children: /* @__PURE__ */ jsx(ChevronRight, { className: "w-5 h-5" })
|
|
14249
14249
|
}
|
|
@@ -14361,7 +14361,7 @@ function CastleBoard({
|
|
|
14361
14361
|
}),
|
|
14362
14362
|
[hoveredTile, hoveredFeature, hoveredUnit, selectedFeature, clearSelection, tileToScreen, scale]
|
|
14363
14363
|
);
|
|
14364
|
-
return /* @__PURE__ */ jsxs("div", { className: cn("castle-board min-h-screen flex flex-col bg-
|
|
14364
|
+
return /* @__PURE__ */ jsxs("div", { className: cn("castle-board min-h-screen flex flex-col bg-background", className), children: [
|
|
14365
14365
|
header && header(ctx),
|
|
14366
14366
|
/* @__PURE__ */ jsxs("div", { className: "flex flex-1 overflow-hidden", children: [
|
|
14367
14367
|
/* @__PURE__ */ jsxs("div", { className: "flex-1 overflow-auto p-4 relative", children: [
|
|
@@ -14384,7 +14384,7 @@ function CastleBoard({
|
|
|
14384
14384
|
),
|
|
14385
14385
|
overlay && overlay(ctx)
|
|
14386
14386
|
] }),
|
|
14387
|
-
sidePanel && /* @__PURE__ */ jsx("div", { className: "w-96 shrink-0 border-l border-
|
|
14387
|
+
sidePanel && /* @__PURE__ */ jsx("div", { className: "w-96 shrink-0 border-l border-border bg-surface overflow-y-auto", children: sidePanel(ctx) })
|
|
14388
14388
|
] }),
|
|
14389
14389
|
footer && footer(ctx)
|
|
14390
14390
|
] });
|
|
@@ -14429,7 +14429,7 @@ var BarChart = ({ data, height, showValues }) => {
|
|
|
14429
14429
|
Box,
|
|
14430
14430
|
{
|
|
14431
14431
|
className: cn(
|
|
14432
|
-
"w-full rounded-t-
|
|
14432
|
+
"w-full rounded-t-sm transition-all duration-500 ease-out min-h-[4px]"
|
|
14433
14433
|
),
|
|
14434
14434
|
style: {
|
|
14435
14435
|
height: `${barHeight}%`,
|
|
@@ -14517,7 +14517,7 @@ var PieChart = ({ data, height, showValues, donut = false }) => {
|
|
|
14517
14517
|
/* @__PURE__ */ jsx(
|
|
14518
14518
|
Box,
|
|
14519
14519
|
{
|
|
14520
|
-
className: "w-3 h-3 rounded-
|
|
14520
|
+
className: "w-3 h-3 rounded-sm flex-shrink-0",
|
|
14521
14521
|
style: { backgroundColor: seg.color }
|
|
14522
14522
|
}
|
|
14523
14523
|
),
|
|
@@ -14655,7 +14655,7 @@ var Chart = ({
|
|
|
14655
14655
|
/* @__PURE__ */ jsx(
|
|
14656
14656
|
Box,
|
|
14657
14657
|
{
|
|
14658
|
-
className: "w-3 h-3 rounded-
|
|
14658
|
+
className: "w-3 h-3 rounded-full flex-shrink-0",
|
|
14659
14659
|
style: { backgroundColor: s.color || CHART_COLORS[idx % CHART_COLORS.length] }
|
|
14660
14660
|
}
|
|
14661
14661
|
),
|
|
@@ -14682,7 +14682,7 @@ var ChartLegend = ({
|
|
|
14682
14682
|
}
|
|
14683
14683
|
}
|
|
14684
14684
|
),
|
|
14685
|
-
/* @__PURE__ */ jsx(Typography, { variant: "small", className: "text-
|
|
14685
|
+
/* @__PURE__ */ jsx(Typography, { variant: "small", className: "text-muted-foreground", children: item.label })
|
|
14686
14686
|
] }, item.label)) });
|
|
14687
14687
|
};
|
|
14688
14688
|
ChartLegend.displayName = "ChartLegend";
|
|
@@ -14751,13 +14751,13 @@ function ClassifierBoard({
|
|
|
14751
14751
|
backgroundPosition: "center"
|
|
14752
14752
|
},
|
|
14753
14753
|
children: /* @__PURE__ */ jsxs(VStack, { gap: "lg", className: "p-4", children: [
|
|
14754
|
-
entity.headerImage && !headerError ? /* @__PURE__ */ jsx(Box, { className: "w-full h-32 overflow-hidden rounded-lg", children: /* @__PURE__ */ jsx("img", { src: entity.headerImage, alt: "", onError: () => setHeaderError(true), className: "w-full h-full object-cover" }) }) : entity.headerImage && headerError ? /* @__PURE__ */ jsx(Box, { className: "w-full h-32 rounded-lg bg-gradient-to-br from-
|
|
14754
|
+
entity.headerImage && !headerError ? /* @__PURE__ */ jsx(Box, { className: "w-full h-32 overflow-hidden rounded-lg", children: /* @__PURE__ */ jsx("img", { src: entity.headerImage, alt: "", onError: () => setHeaderError(true), className: "w-full h-full object-cover" }) }) : entity.headerImage && headerError ? /* @__PURE__ */ jsx(Box, { className: "w-full h-32 rounded-lg bg-gradient-to-br from-muted to-accent opacity-60" }) : null,
|
|
14755
14755
|
/* @__PURE__ */ jsx(Card, { className: "p-4", children: /* @__PURE__ */ jsxs(VStack, { gap: "sm", children: [
|
|
14756
14756
|
/* @__PURE__ */ jsx(Typography, { variant: "h4", weight: "bold", children: entity.title }),
|
|
14757
14757
|
/* @__PURE__ */ jsx(Typography, { variant: "body", children: entity.description })
|
|
14758
14758
|
] }) }),
|
|
14759
14759
|
unassignedItems.length > 0 && /* @__PURE__ */ jsx(Card, { className: "p-4", children: /* @__PURE__ */ jsxs(VStack, { gap: "sm", children: [
|
|
14760
|
-
/* @__PURE__ */ jsx(Typography, { variant: "small", weight: "bold", className: "uppercase tracking-wider text-
|
|
14760
|
+
/* @__PURE__ */ jsx(Typography, { variant: "small", weight: "bold", className: "uppercase tracking-wider text-muted-foreground", children: t("classifier.itemsToSort") }),
|
|
14761
14761
|
/* @__PURE__ */ jsx(HStack, { gap: "sm", className: "flex-wrap", children: unassignedItems.map((item) => /* @__PURE__ */ jsxs(Badge, { size: "md", className: "cursor-pointer", children: [
|
|
14762
14762
|
item.iconUrl && /* @__PURE__ */ jsx("img", { src: item.iconUrl, alt: "", className: "w-4 h-4 object-contain inline-block" }),
|
|
14763
14763
|
item.label
|
|
@@ -14807,7 +14807,7 @@ function ClassifierBoard({
|
|
|
14807
14807
|
submitted && /* @__PURE__ */ jsx(Card, { className: "p-4", children: /* @__PURE__ */ jsxs(VStack, { gap: "sm", align: "center", children: [
|
|
14808
14808
|
/* @__PURE__ */ jsx(Icon, { icon: allCorrect ? CheckCircle : XCircle, size: "lg", className: allCorrect ? "text-green-600" : "text-red-600" }),
|
|
14809
14809
|
/* @__PURE__ */ jsx(Typography, { variant: "body", weight: "bold", children: allCorrect ? entity.successMessage ?? t("classifier.allCorrect") : `${correctCount}/${items.length} ${t("classifier.correct")}` }),
|
|
14810
|
-
!allCorrect && entity.failMessage && /* @__PURE__ */ jsx(Typography, { variant: "body", className: "text-
|
|
14810
|
+
!allCorrect && entity.failMessage && /* @__PURE__ */ jsx(Typography, { variant: "body", className: "text-muted-foreground", children: entity.failMessage })
|
|
14811
14811
|
] }) }),
|
|
14812
14812
|
showHint && entity.hint && /* @__PURE__ */ jsx(Card, { className: "p-4 border-l-4 border-l-yellow-500", children: /* @__PURE__ */ jsx(Typography, { variant: "body", children: entity.hint }) }),
|
|
14813
14813
|
/* @__PURE__ */ jsxs(HStack, { gap: "sm", justify: "center", children: [
|
|
@@ -14909,17 +14909,17 @@ var Tabs = ({
|
|
|
14909
14909
|
const variantClasses2 = {
|
|
14910
14910
|
default: [
|
|
14911
14911
|
"border-b-[length:var(--border-width)] border-transparent",
|
|
14912
|
-
"hover:border-
|
|
14913
|
-
"data-[active=true]:border-
|
|
14912
|
+
"hover:border-muted-foreground",
|
|
14913
|
+
"data-[active=true]:border-primary"
|
|
14914
14914
|
].join(" "),
|
|
14915
14915
|
pills: [
|
|
14916
|
-
"rounded-
|
|
14917
|
-
"data-[active=true]:bg-
|
|
14918
|
-
"data-[active=true]:text-
|
|
14916
|
+
"rounded-sm",
|
|
14917
|
+
"data-[active=true]:bg-primary",
|
|
14918
|
+
"data-[active=true]:text-primary-foreground"
|
|
14919
14919
|
].join(" "),
|
|
14920
14920
|
underline: [
|
|
14921
14921
|
"border-b-[length:var(--border-width)] border-transparent",
|
|
14922
|
-
"data-[active=true]:border-
|
|
14922
|
+
"data-[active=true]:border-primary"
|
|
14923
14923
|
].join(" ")
|
|
14924
14924
|
};
|
|
14925
14925
|
return /* @__PURE__ */ jsxs(Box, { className: cn("w-full", className), children: [
|
|
@@ -14929,8 +14929,8 @@ var Tabs = ({
|
|
|
14929
14929
|
role: "tablist",
|
|
14930
14930
|
className: cn(
|
|
14931
14931
|
"flex",
|
|
14932
|
-
orientation === "horizontal" ? "flex-row border-b-[length:var(--border-width)] border-
|
|
14933
|
-
variant === "pills" && "gap-1 p-1 bg-
|
|
14932
|
+
orientation === "horizontal" ? "flex-row border-b-[length:var(--border-width)] border-border" : "flex-col border-r-[length:var(--border-width)] border-border",
|
|
14933
|
+
variant === "pills" && "gap-1 p-1 bg-muted border-0 rounded-md",
|
|
14934
14934
|
variant === "underline" && orientation === "vertical" && "border-b-0"
|
|
14935
14935
|
),
|
|
14936
14936
|
children: safeItems.map((item, index) => {
|
|
@@ -14952,10 +14952,10 @@ var Tabs = ({
|
|
|
14952
14952
|
"data-active": isActive,
|
|
14953
14953
|
className: cn(
|
|
14954
14954
|
"flex items-center gap-2 px-4 py-2 text-sm font-medium transition-all",
|
|
14955
|
-
"focus:outline-none focus:ring-2 focus:ring-
|
|
14955
|
+
"focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",
|
|
14956
14956
|
isDisabled && "opacity-50 cursor-not-allowed",
|
|
14957
14957
|
variantClasses2[variant],
|
|
14958
|
-
isActive ? variant === "pills" ? "text-
|
|
14958
|
+
isActive ? variant === "pills" ? "text-primary-foreground font-bold" : "text-foreground font-bold" : "text-muted-foreground hover:text-foreground"
|
|
14959
14959
|
),
|
|
14960
14960
|
children: [
|
|
14961
14961
|
item.icon && /* @__PURE__ */ jsx(Icon, { icon: item.icon, size: "sm" }),
|
|
@@ -15004,19 +15004,19 @@ function generateDiff(oldVal, newVal) {
|
|
|
15004
15004
|
}
|
|
15005
15005
|
var DIFF_STYLES = {
|
|
15006
15006
|
add: {
|
|
15007
|
-
bg: "bg-
|
|
15007
|
+
bg: "bg-success/10",
|
|
15008
15008
|
prefix: "+",
|
|
15009
|
-
text: "text-
|
|
15009
|
+
text: "text-success"
|
|
15010
15010
|
},
|
|
15011
15011
|
remove: {
|
|
15012
|
-
bg: "bg-
|
|
15012
|
+
bg: "bg-error/10",
|
|
15013
15013
|
prefix: "-",
|
|
15014
|
-
text: "text-
|
|
15014
|
+
text: "text-error"
|
|
15015
15015
|
},
|
|
15016
15016
|
context: {
|
|
15017
15017
|
bg: "",
|
|
15018
15018
|
prefix: " ",
|
|
15019
|
-
text: "text-
|
|
15019
|
+
text: "text-foreground"
|
|
15020
15020
|
}
|
|
15021
15021
|
};
|
|
15022
15022
|
var CodeViewer = ({
|
|
@@ -15100,7 +15100,7 @@ var CodeViewer = ({
|
|
|
15100
15100
|
);
|
|
15101
15101
|
}
|
|
15102
15102
|
return /* @__PURE__ */ jsx(Card, { className: cn("overflow-hidden", className), children: /* @__PURE__ */ jsxs(VStack, { gap: "none", children: [
|
|
15103
|
-
tabItems && tabItems.length > 1 && /* @__PURE__ */ jsx(Box, { className: "border-b border-
|
|
15103
|
+
tabItems && tabItems.length > 1 && /* @__PURE__ */ jsx(Box, { className: "border-b border-border", children: /* @__PURE__ */ jsx(
|
|
15104
15104
|
Tabs,
|
|
15105
15105
|
{
|
|
15106
15106
|
tabs: tabItems,
|
|
@@ -15117,10 +15117,10 @@ var CodeViewer = ({
|
|
|
15117
15117
|
gap: "sm",
|
|
15118
15118
|
align: "center",
|
|
15119
15119
|
justify: "between",
|
|
15120
|
-
className: "px-4 py-2 border-b border-
|
|
15120
|
+
className: "px-4 py-2 border-b border-border bg-muted/30",
|
|
15121
15121
|
children: [
|
|
15122
15122
|
/* @__PURE__ */ jsxs(HStack, { gap: "sm", align: "center", children: [
|
|
15123
|
-
/* @__PURE__ */ jsx(Icon, { icon: mode === "diff" ? FileText : Code, size: "sm", className: "text-
|
|
15123
|
+
/* @__PURE__ */ jsx(Icon, { icon: mode === "diff" ? FileText : Code, size: "sm", className: "text-muted-foreground" }),
|
|
15124
15124
|
title && /* @__PURE__ */ jsx(Typography, { variant: "small", weight: "medium", className: "truncate", children: title }),
|
|
15125
15125
|
activeLanguage && activeLanguage !== "text" && /* @__PURE__ */ jsx(Badge, { variant: "default", children: activeLanguage })
|
|
15126
15126
|
] }),
|
|
@@ -15132,7 +15132,7 @@ var CodeViewer = ({
|
|
|
15132
15132
|
size: "sm",
|
|
15133
15133
|
icon: WrapText,
|
|
15134
15134
|
onClick: () => setWrap(!wrap),
|
|
15135
|
-
className: cn(wrap && "text-
|
|
15135
|
+
className: cn(wrap && "text-primary")
|
|
15136
15136
|
}
|
|
15137
15137
|
),
|
|
15138
15138
|
showCopy && /* @__PURE__ */ jsx(
|
|
@@ -15142,7 +15142,7 @@ var CodeViewer = ({
|
|
|
15142
15142
|
size: "sm",
|
|
15143
15143
|
icon: copied ? Check : Copy,
|
|
15144
15144
|
onClick: handleCopy,
|
|
15145
|
-
className: cn(copied && "text-
|
|
15145
|
+
className: cn(copied && "text-success")
|
|
15146
15146
|
}
|
|
15147
15147
|
),
|
|
15148
15148
|
actions?.map((action, idx) => /* @__PURE__ */ jsx(
|
|
@@ -15162,7 +15162,7 @@ var CodeViewer = ({
|
|
|
15162
15162
|
/* @__PURE__ */ jsx(
|
|
15163
15163
|
Box,
|
|
15164
15164
|
{
|
|
15165
|
-
className: "overflow-auto bg-
|
|
15165
|
+
className: "overflow-auto bg-muted/20",
|
|
15166
15166
|
style: { maxHeight },
|
|
15167
15167
|
children: diffLines ? (
|
|
15168
15168
|
/* Diff mode */
|
|
@@ -15197,7 +15197,7 @@ var CodeViewer = ({
|
|
|
15197
15197
|
}) })
|
|
15198
15198
|
) : (
|
|
15199
15199
|
/* Code mode */
|
|
15200
|
-
/* @__PURE__ */ jsx(VStack, { gap: "none", className: "font-mono text-xs", children: lines.map((line, idx) => /* @__PURE__ */ jsxs(HStack, { gap: "none", align: "start", className: "px-4 py-0.5 hover:bg-
|
|
15200
|
+
/* @__PURE__ */ jsx(VStack, { gap: "none", className: "font-mono text-xs", children: lines.map((line, idx) => /* @__PURE__ */ jsxs(HStack, { gap: "none", align: "start", className: "px-4 py-0.5 hover:bg-muted/50", children: [
|
|
15201
15201
|
showLineNumbers && /* @__PURE__ */ jsx(
|
|
15202
15202
|
Typography,
|
|
15203
15203
|
{
|
|
@@ -15269,7 +15269,7 @@ function CombatLog({
|
|
|
15269
15269
|
const safeEvents = events2 ?? [];
|
|
15270
15270
|
const visibleEvents = safeEvents.slice(-maxVisible);
|
|
15271
15271
|
return /* @__PURE__ */ jsxs(Card, { variant: "default", className: cn("flex flex-col", className), children: [
|
|
15272
|
-
/* @__PURE__ */ jsx(Box, { padding: "sm", border: true, className: "border-b-2 border-x-0 border-t-0 border-
|
|
15272
|
+
/* @__PURE__ */ jsx(Box, { padding: "sm", border: true, className: "border-b-2 border-x-0 border-t-0 border-border", children: /* @__PURE__ */ jsxs(Box, { display: "flex", className: "items-center justify-between", children: [
|
|
15273
15273
|
/* @__PURE__ */ jsx(Typography, { variant: "body2", className: "font-bold", children: title }),
|
|
15274
15274
|
/* @__PURE__ */ jsxs(Badge, { variant: "neutral", size: "sm", children: [
|
|
15275
15275
|
safeEvents.length,
|
|
@@ -15286,7 +15286,7 @@ function CombatLog({
|
|
|
15286
15286
|
display: "flex",
|
|
15287
15287
|
padding: "xs",
|
|
15288
15288
|
rounded: "sm",
|
|
15289
|
-
className: cn("items-start gap-2 hover:bg-
|
|
15289
|
+
className: cn("items-start gap-2 hover:bg-muted transition-colors", eventType === "death" && "opacity-60"),
|
|
15290
15290
|
children: [
|
|
15291
15291
|
/* @__PURE__ */ jsx(Box, { className: cn("flex-shrink-0 mt-0.5", colorClass), children: /* @__PURE__ */ jsx(EventIcon, { className: "h-4 w-4" }) }),
|
|
15292
15292
|
/* @__PURE__ */ jsxs(Box, { className: "flex-1 min-w-0", children: [
|
|
@@ -15308,26 +15308,26 @@ CombatLog.displayName = "CombatLog";
|
|
|
15308
15308
|
var variantConfig = {
|
|
15309
15309
|
danger: {
|
|
15310
15310
|
icon: Trash2,
|
|
15311
|
-
iconBg: "bg-
|
|
15312
|
-
iconColor: "text-
|
|
15311
|
+
iconBg: "bg-error",
|
|
15312
|
+
iconColor: "text-error-foreground",
|
|
15313
15313
|
confirmVariant: "primary"
|
|
15314
15314
|
},
|
|
15315
15315
|
warning: {
|
|
15316
15316
|
icon: AlertTriangle,
|
|
15317
|
-
iconBg: "bg-
|
|
15318
|
-
iconColor: "text-
|
|
15317
|
+
iconBg: "bg-warning",
|
|
15318
|
+
iconColor: "text-warning-foreground",
|
|
15319
15319
|
confirmVariant: "primary"
|
|
15320
15320
|
},
|
|
15321
15321
|
info: {
|
|
15322
15322
|
icon: Check,
|
|
15323
|
-
iconBg: "bg-
|
|
15324
|
-
iconColor: "text-
|
|
15323
|
+
iconBg: "bg-info",
|
|
15324
|
+
iconColor: "text-info-foreground",
|
|
15325
15325
|
confirmVariant: "primary"
|
|
15326
15326
|
},
|
|
15327
15327
|
default: {
|
|
15328
15328
|
icon: Check,
|
|
15329
|
-
iconBg: "bg-
|
|
15330
|
-
iconColor: "text-
|
|
15329
|
+
iconBg: "bg-primary",
|
|
15330
|
+
iconColor: "text-primary-foreground",
|
|
15331
15331
|
confirmVariant: "primary"
|
|
15332
15332
|
}
|
|
15333
15333
|
};
|
|
@@ -15398,7 +15398,7 @@ var ConfirmDialog = ({
|
|
|
15398
15398
|
Typography,
|
|
15399
15399
|
{
|
|
15400
15400
|
variant: "body2",
|
|
15401
|
-
className: "text-
|
|
15401
|
+
className: "text-muted-foreground",
|
|
15402
15402
|
children: resolvedMessage
|
|
15403
15403
|
}
|
|
15404
15404
|
) : resolvedMessage
|
|
@@ -15476,7 +15476,7 @@ function CounterStandard({
|
|
|
15476
15476
|
Typography,
|
|
15477
15477
|
{
|
|
15478
15478
|
variant: "h2",
|
|
15479
|
-
className: "text-
|
|
15479
|
+
className: "text-muted-foreground",
|
|
15480
15480
|
children: title
|
|
15481
15481
|
}
|
|
15482
15482
|
),
|
|
@@ -15543,7 +15543,7 @@ function CounterFull({
|
|
|
15543
15543
|
Typography,
|
|
15544
15544
|
{
|
|
15545
15545
|
variant: "h2",
|
|
15546
|
-
className: "text-
|
|
15546
|
+
className: "text-muted-foreground",
|
|
15547
15547
|
children: title
|
|
15548
15548
|
}
|
|
15549
15549
|
),
|
|
@@ -15748,7 +15748,7 @@ function CustomPattern({
|
|
|
15748
15748
|
{
|
|
15749
15749
|
className: cn(
|
|
15750
15750
|
classes,
|
|
15751
|
-
"p-4 border border-dashed border-
|
|
15751
|
+
"p-4 border border-dashed border-error/50 text-error"
|
|
15752
15752
|
),
|
|
15753
15753
|
children: [
|
|
15754
15754
|
"Unknown component: ",
|
|
@@ -16006,7 +16006,7 @@ var DashboardGrid = ({
|
|
|
16006
16006
|
Box,
|
|
16007
16007
|
{
|
|
16008
16008
|
className: cn(
|
|
16009
|
-
"border-2 border-
|
|
16009
|
+
"border-2 border-border bg-card",
|
|
16010
16010
|
colSpanStyles[cell.colSpan ?? 1],
|
|
16011
16011
|
rowSpanStyles[cell.rowSpan ?? 1]
|
|
16012
16012
|
),
|
|
@@ -16036,11 +16036,11 @@ var DashboardLayout = ({
|
|
|
16036
16036
|
const user = userProp || (null);
|
|
16037
16037
|
const { t } = useTranslate();
|
|
16038
16038
|
const handleSignOut = onSignOutProp || authSignOut;
|
|
16039
|
-
return /* @__PURE__ */ jsxs(Box, { className: "min-h-screen bg-
|
|
16039
|
+
return /* @__PURE__ */ jsxs(Box, { className: "min-h-screen bg-background dark:bg-background", children: [
|
|
16040
16040
|
sidebarOpen && /* @__PURE__ */ jsx(
|
|
16041
16041
|
Box,
|
|
16042
16042
|
{
|
|
16043
|
-
className: "fixed inset-0 bg-
|
|
16043
|
+
className: "fixed inset-0 bg-foreground/50 dark:bg-foreground/70 z-20 lg:hidden",
|
|
16044
16044
|
onClick: () => setSidebarOpen(false)
|
|
16045
16045
|
}
|
|
16046
16046
|
),
|
|
@@ -16049,7 +16049,7 @@ var DashboardLayout = ({
|
|
|
16049
16049
|
{
|
|
16050
16050
|
as: "aside",
|
|
16051
16051
|
className: cn(
|
|
16052
|
-
"fixed inset-y-0 left-0 z-30 w-64 bg-
|
|
16052
|
+
"fixed inset-y-0 left-0 z-30 w-64 bg-card dark:bg-card border-r border-border dark:border-border",
|
|
16053
16053
|
"transform transition-transform duration-200 ease-in-out lg:translate-x-0",
|
|
16054
16054
|
sidebarOpen ? "translate-x-0" : "-translate-x-full"
|
|
16055
16055
|
),
|
|
@@ -16059,10 +16059,10 @@ var DashboardLayout = ({
|
|
|
16059
16059
|
{
|
|
16060
16060
|
align: "center",
|
|
16061
16061
|
justify: "between",
|
|
16062
|
-
className: "h-16 px-4 border-b border-
|
|
16062
|
+
className: "h-16 px-4 border-b border-border dark:border-border",
|
|
16063
16063
|
children: [
|
|
16064
16064
|
/* @__PURE__ */ jsxs(Link, { to: "/", className: "flex items-center gap-2", children: [
|
|
16065
|
-
logo || /* @__PURE__ */ jsx(Box, { className: "w-8 h-8 bg-primary-600 rounded-
|
|
16065
|
+
logo || /* @__PURE__ */ jsx(Box, { className: "w-8 h-8 bg-primary-600 rounded-lg flex items-center justify-center", children: /* @__PURE__ */ jsx(
|
|
16066
16066
|
Typography,
|
|
16067
16067
|
{
|
|
16068
16068
|
variant: "small",
|
|
@@ -16075,7 +16075,7 @@ var DashboardLayout = ({
|
|
|
16075
16075
|
Typography,
|
|
16076
16076
|
{
|
|
16077
16077
|
variant: "label",
|
|
16078
|
-
className: "font-semibold text-
|
|
16078
|
+
className: "font-semibold text-foreground dark:text-foreground",
|
|
16079
16079
|
as: "span",
|
|
16080
16080
|
children: appName
|
|
16081
16081
|
}
|
|
@@ -16085,7 +16085,7 @@ var DashboardLayout = ({
|
|
|
16085
16085
|
Button,
|
|
16086
16086
|
{
|
|
16087
16087
|
variant: "ghost",
|
|
16088
|
-
className: "lg:hidden p-2 rounded-
|
|
16088
|
+
className: "lg:hidden p-2 rounded-md hover:bg-muted dark:hover:bg-muted text-muted-foreground dark:text-muted-foreground",
|
|
16089
16089
|
onClick: () => setSidebarOpen(false),
|
|
16090
16090
|
children: /* @__PURE__ */ jsx(X, { className: "h-5 w-5" })
|
|
16091
16091
|
}
|
|
@@ -16109,11 +16109,11 @@ var DashboardLayout = ({
|
|
|
16109
16109
|
))
|
|
16110
16110
|
}
|
|
16111
16111
|
),
|
|
16112
|
-
sidebarFooter || /* @__PURE__ */ jsx(Box, { className: "p-4 border-t border-
|
|
16112
|
+
sidebarFooter || /* @__PURE__ */ jsx(Box, { className: "p-4 border-t border-border dark:border-border", children: /* @__PURE__ */ jsxs(
|
|
16113
16113
|
Link,
|
|
16114
16114
|
{
|
|
16115
16115
|
to: "/settings",
|
|
16116
|
-
className: "flex items-center gap-3 px-3 py-2 text-sm text-
|
|
16116
|
+
className: "flex items-center gap-3 px-3 py-2 text-sm text-muted-foreground dark:text-muted-foreground rounded-lg hover:bg-muted dark:hover:bg-muted",
|
|
16117
16117
|
children: [
|
|
16118
16118
|
/* @__PURE__ */ jsx(Settings, { className: "h-5 w-5" }),
|
|
16119
16119
|
t("common.settings")
|
|
@@ -16128,7 +16128,7 @@ var DashboardLayout = ({
|
|
|
16128
16128
|
Box,
|
|
16129
16129
|
{
|
|
16130
16130
|
as: "header",
|
|
16131
|
-
className: "sticky top-0 z-20 h-16 bg-
|
|
16131
|
+
className: "sticky top-0 z-20 h-16 bg-card dark:bg-card border-b border-border dark:border-border",
|
|
16132
16132
|
children: /* @__PURE__ */ jsxs(
|
|
16133
16133
|
HStack,
|
|
16134
16134
|
{
|
|
@@ -16140,14 +16140,14 @@ var DashboardLayout = ({
|
|
|
16140
16140
|
Button,
|
|
16141
16141
|
{
|
|
16142
16142
|
variant: "ghost",
|
|
16143
|
-
className: "lg:hidden p-2 rounded-
|
|
16143
|
+
className: "lg:hidden p-2 rounded-md hover:bg-muted dark:hover:bg-muted text-muted-foreground dark:text-muted-foreground touch-manipulation min-h-[44px] min-w-[44px] flex items-center justify-center",
|
|
16144
16144
|
onClick: () => setSidebarOpen(true),
|
|
16145
16145
|
"aria-label": "Open sidebar",
|
|
16146
16146
|
children: /* @__PURE__ */ jsx(Menu$1, { className: "h-5 w-5" })
|
|
16147
16147
|
}
|
|
16148
16148
|
),
|
|
16149
16149
|
showSearch && /* @__PURE__ */ jsx(Box, { className: "hidden sm:block flex-1 max-w-md", children: /* @__PURE__ */ jsxs(Box, { className: "relative", children: [
|
|
16150
|
-
/* @__PURE__ */ jsx(Search, { className: "absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-
|
|
16150
|
+
/* @__PURE__ */ jsx(Search, { className: "absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-muted-foreground dark:text-muted-foreground" }),
|
|
16151
16151
|
/* @__PURE__ */ jsx(
|
|
16152
16152
|
Input,
|
|
16153
16153
|
{
|
|
@@ -16164,14 +16164,14 @@ var DashboardLayout = ({
|
|
|
16164
16164
|
Button,
|
|
16165
16165
|
{
|
|
16166
16166
|
variant: "ghost",
|
|
16167
|
-
className: "relative p-2 rounded-
|
|
16167
|
+
className: "relative p-2 rounded-full hover:bg-muted dark:hover:bg-muted",
|
|
16168
16168
|
children: [
|
|
16169
|
-
/* @__PURE__ */ jsx(Bell, { className: "h-5 w-5 text-
|
|
16169
|
+
/* @__PURE__ */ jsx(Bell, { className: "h-5 w-5 text-muted-foreground dark:text-muted-foreground" }),
|
|
16170
16170
|
/* @__PURE__ */ jsx(
|
|
16171
16171
|
Box,
|
|
16172
16172
|
{
|
|
16173
16173
|
as: "span",
|
|
16174
|
-
className: "absolute top-1 right-1 w-2 h-2 bg-
|
|
16174
|
+
className: "absolute top-1 right-1 w-2 h-2 bg-error rounded-full"
|
|
16175
16175
|
}
|
|
16176
16176
|
)
|
|
16177
16177
|
]
|
|
@@ -16182,7 +16182,7 @@ var DashboardLayout = ({
|
|
|
16182
16182
|
Button,
|
|
16183
16183
|
{
|
|
16184
16184
|
variant: "ghost",
|
|
16185
|
-
className: "flex items-center gap-2 p-2 rounded-
|
|
16185
|
+
className: "flex items-center gap-2 p-2 rounded-lg hover:bg-muted dark:hover:bg-muted",
|
|
16186
16186
|
onClick: () => setUserMenuOpen(!userMenuOpen),
|
|
16187
16187
|
children: [
|
|
16188
16188
|
/* @__PURE__ */ jsx(
|
|
@@ -16198,12 +16198,12 @@ var DashboardLayout = ({
|
|
|
16198
16198
|
Typography,
|
|
16199
16199
|
{
|
|
16200
16200
|
variant: "small",
|
|
16201
|
-
className: "hidden sm:block text-sm font-medium text-
|
|
16201
|
+
className: "hidden sm:block text-sm font-medium text-foreground dark:text-foreground",
|
|
16202
16202
|
as: "span",
|
|
16203
16203
|
children: user.name
|
|
16204
16204
|
}
|
|
16205
16205
|
),
|
|
16206
|
-
/* @__PURE__ */ jsx(ChevronDown, { className: "hidden sm:block h-4 w-4 text-
|
|
16206
|
+
/* @__PURE__ */ jsx(ChevronDown, { className: "hidden sm:block h-4 w-4 text-muted-foreground dark:text-muted-foreground" })
|
|
16207
16207
|
]
|
|
16208
16208
|
}
|
|
16209
16209
|
),
|
|
@@ -16215,13 +16215,13 @@ var DashboardLayout = ({
|
|
|
16215
16215
|
onClick: () => setUserMenuOpen(false)
|
|
16216
16216
|
}
|
|
16217
16217
|
),
|
|
16218
|
-
/* @__PURE__ */ jsxs(Box, { className: "absolute right-0 mt-2 w-48 bg-
|
|
16219
|
-
/* @__PURE__ */ jsxs(Box, { className: "px-4 py-2 border-b border-
|
|
16218
|
+
/* @__PURE__ */ jsxs(Box, { className: "absolute right-0 mt-2 w-48 bg-card dark:bg-card rounded-lg shadow-lg border border-border dark:border-border py-1 z-30", children: [
|
|
16219
|
+
/* @__PURE__ */ jsxs(Box, { className: "px-4 py-2 border-b border-border dark:border-border", children: [
|
|
16220
16220
|
/* @__PURE__ */ jsx(
|
|
16221
16221
|
Typography,
|
|
16222
16222
|
{
|
|
16223
16223
|
variant: "small",
|
|
16224
|
-
className: "text-sm font-medium text-
|
|
16224
|
+
className: "text-sm font-medium text-foreground dark:text-foreground",
|
|
16225
16225
|
as: "p",
|
|
16226
16226
|
children: user.name
|
|
16227
16227
|
}
|
|
@@ -16230,7 +16230,7 @@ var DashboardLayout = ({
|
|
|
16230
16230
|
Typography,
|
|
16231
16231
|
{
|
|
16232
16232
|
variant: "caption",
|
|
16233
|
-
className: "text-xs text-
|
|
16233
|
+
className: "text-xs text-muted-foreground dark:text-muted-foreground",
|
|
16234
16234
|
as: "p",
|
|
16235
16235
|
children: user.email
|
|
16236
16236
|
}
|
|
@@ -16240,7 +16240,7 @@ var DashboardLayout = ({
|
|
|
16240
16240
|
Link,
|
|
16241
16241
|
{
|
|
16242
16242
|
to: "/settings",
|
|
16243
|
-
className: "flex items-center gap-2 px-4 py-2 text-sm text-
|
|
16243
|
+
className: "flex items-center gap-2 px-4 py-2 text-sm text-foreground dark:text-foreground hover:bg-muted dark:hover:bg-muted",
|
|
16244
16244
|
children: [
|
|
16245
16245
|
/* @__PURE__ */ jsx(Settings, { className: "h-4 w-4" }),
|
|
16246
16246
|
t("common.settings")
|
|
@@ -16255,7 +16255,7 @@ var DashboardLayout = ({
|
|
|
16255
16255
|
setUserMenuOpen(false);
|
|
16256
16256
|
handleSignOut?.();
|
|
16257
16257
|
},
|
|
16258
|
-
className: "w-full flex items-center gap-2 px-4 py-2 text-sm text-
|
|
16258
|
+
className: "w-full flex items-center gap-2 px-4 py-2 text-sm text-error dark:text-error hover:bg-error/10 dark:hover:bg-error/20",
|
|
16259
16259
|
children: [
|
|
16260
16260
|
/* @__PURE__ */ jsx(LogOut, { className: "h-4 w-4" }),
|
|
16261
16261
|
t("auth.signOut")
|
|
@@ -16283,15 +16283,15 @@ var NavLink = ({
|
|
|
16283
16283
|
const isActive = currentPath === item.href || currentPath.startsWith(item.href + "/");
|
|
16284
16284
|
const iconClassName = cn(
|
|
16285
16285
|
"h-5 w-5",
|
|
16286
|
-
isActive ? "text-
|
|
16286
|
+
isActive ? "text-primary-foreground" : "text-muted-foreground"
|
|
16287
16287
|
);
|
|
16288
16288
|
return /* @__PURE__ */ jsxs(
|
|
16289
16289
|
Link,
|
|
16290
16290
|
{
|
|
16291
16291
|
to: item.href,
|
|
16292
16292
|
className: cn(
|
|
16293
|
-
"flex items-center gap-3 px-3 py-2 rounded-
|
|
16294
|
-
isActive ? "bg-
|
|
16293
|
+
"flex items-center gap-3 px-3 py-2 rounded-lg text-sm font-medium transition-colors",
|
|
16294
|
+
isActive ? "bg-primary text-primary-foreground shadow-sm" : "text-muted-foreground hover:bg-muted hover:text-foreground"
|
|
16295
16295
|
),
|
|
16296
16296
|
children: [
|
|
16297
16297
|
item.icon && (typeof item.icon === "string" ? /* @__PURE__ */ jsx(Icon, { name: item.icon, className: iconClassName }) : /* @__PURE__ */ jsx(item.icon, { className: iconClassName })),
|
|
@@ -16434,14 +16434,14 @@ var DataGrid = ({
|
|
|
16434
16434
|
const allSelected = allIds.length > 0 && allIds.every((id) => selectedIds.has(id));
|
|
16435
16435
|
const someSelected = selectedIds.size > 0;
|
|
16436
16436
|
return /* @__PURE__ */ jsxs(VStack, { gap: "sm", children: [
|
|
16437
|
-
selectable && someSelected && /* @__PURE__ */ jsxs(HStack, { gap: "sm", className: "items-center px-2 py-2 bg-
|
|
16437
|
+
selectable && someSelected && /* @__PURE__ */ jsxs(HStack, { gap: "sm", className: "items-center px-2 py-2 bg-muted rounded-sm", children: [
|
|
16438
16438
|
/* @__PURE__ */ jsx(
|
|
16439
16439
|
"input",
|
|
16440
16440
|
{
|
|
16441
16441
|
type: "checkbox",
|
|
16442
16442
|
checked: allSelected,
|
|
16443
16443
|
onChange: toggleAll,
|
|
16444
|
-
className: "w-4 h-4 accent-
|
|
16444
|
+
className: "w-4 h-4 accent-primary",
|
|
16445
16445
|
"aria-label": "Select all"
|
|
16446
16446
|
}
|
|
16447
16447
|
),
|
|
@@ -16467,12 +16467,12 @@ var DataGrid = ({
|
|
|
16467
16467
|
"data-entity-row": true,
|
|
16468
16468
|
"data-entity-id": id,
|
|
16469
16469
|
className: cn(
|
|
16470
|
-
"bg-
|
|
16471
|
-
"border border-
|
|
16472
|
-
"shadow-
|
|
16473
|
-
"hover:border-
|
|
16470
|
+
"bg-card rounded-lg",
|
|
16471
|
+
"border border-border",
|
|
16472
|
+
"shadow-sm hover:shadow-lg",
|
|
16473
|
+
"hover:border-primary transition-all",
|
|
16474
16474
|
"p-4",
|
|
16475
|
-
isSelected && "ring-2 ring-
|
|
16475
|
+
isSelected && "ring-2 ring-primary border-primary"
|
|
16476
16476
|
),
|
|
16477
16477
|
children: children(itemData, index)
|
|
16478
16478
|
},
|
|
@@ -16486,18 +16486,18 @@ var DataGrid = ({
|
|
|
16486
16486
|
"data-entity-row": true,
|
|
16487
16487
|
"data-entity-id": id,
|
|
16488
16488
|
className: cn(
|
|
16489
|
-
"bg-
|
|
16490
|
-
"border border-
|
|
16491
|
-
"shadow-
|
|
16492
|
-
"hover:border-
|
|
16489
|
+
"bg-card rounded-lg",
|
|
16490
|
+
"border border-border",
|
|
16491
|
+
"shadow-sm hover:shadow-lg",
|
|
16492
|
+
"hover:border-primary transition-all",
|
|
16493
16493
|
"flex flex-col",
|
|
16494
|
-
isSelected && "ring-2 ring-
|
|
16494
|
+
isSelected && "ring-2 ring-primary border-primary"
|
|
16495
16495
|
),
|
|
16496
16496
|
children: [
|
|
16497
16497
|
imageField && (() => {
|
|
16498
16498
|
const imgUrl = getNestedValue(itemData, imageField);
|
|
16499
16499
|
if (!imgUrl || typeof imgUrl !== "string") return null;
|
|
16500
|
-
return /* @__PURE__ */ jsx(Box, { className: "w-full aspect-video overflow-hidden rounded-t-
|
|
16500
|
+
return /* @__PURE__ */ jsx(Box, { className: "w-full aspect-video overflow-hidden rounded-t-lg", children: /* @__PURE__ */ jsx(
|
|
16501
16501
|
"img",
|
|
16502
16502
|
{
|
|
16503
16503
|
src: imgUrl,
|
|
@@ -16515,13 +16515,13 @@ var DataGrid = ({
|
|
|
16515
16515
|
checked: isSelected,
|
|
16516
16516
|
onChange: () => toggleSelection(id),
|
|
16517
16517
|
onClick: (e) => e.stopPropagation(),
|
|
16518
|
-
className: "w-4 h-4 mt-1 flex-shrink-0 accent-
|
|
16518
|
+
className: "w-4 h-4 mt-1 flex-shrink-0 accent-primary",
|
|
16519
16519
|
"aria-label": `Select ${titleValue !== void 0 ? String(titleValue) : "item"}`
|
|
16520
16520
|
}
|
|
16521
16521
|
),
|
|
16522
16522
|
/* @__PURE__ */ jsxs(VStack, { gap: "xs", className: "flex-1 min-w-0", children: [
|
|
16523
16523
|
titleValue !== void 0 && titleValue !== null && /* @__PURE__ */ jsxs(HStack, { gap: "xs", className: "items-center", children: [
|
|
16524
|
-
titleField?.icon && /* @__PURE__ */ jsx(Icon, { name: titleField.icon, size: "sm", className: "text-
|
|
16524
|
+
titleField?.icon && /* @__PURE__ */ jsx(Icon, { name: titleField.icon, size: "sm", className: "text-primary flex-shrink-0" }),
|
|
16525
16525
|
/* @__PURE__ */ jsx(
|
|
16526
16526
|
Typography,
|
|
16527
16527
|
{
|
|
@@ -16547,7 +16547,7 @@ var DataGrid = ({
|
|
|
16547
16547
|
size: "sm",
|
|
16548
16548
|
onClick: handleActionClick(action, itemData),
|
|
16549
16549
|
"data-testid": `action-${action.event}`,
|
|
16550
|
-
className: "text-
|
|
16550
|
+
className: "text-error hover:bg-error/10 px-2",
|
|
16551
16551
|
children: [
|
|
16552
16552
|
action.icon && /* @__PURE__ */ jsx(Icon, { name: action.icon, size: "xs" }),
|
|
16553
16553
|
action.label
|
|
@@ -16562,7 +16562,7 @@ var DataGrid = ({
|
|
|
16562
16562
|
if (field.format === "boolean") {
|
|
16563
16563
|
return /* @__PURE__ */ jsxs(HStack, { gap: "sm", className: "justify-between items-center", children: [
|
|
16564
16564
|
/* @__PURE__ */ jsxs(HStack, { gap: "xs", className: "items-center", children: [
|
|
16565
|
-
field.icon && /* @__PURE__ */ jsx(Icon, { name: field.icon, size: "xs", className: "text-
|
|
16565
|
+
field.icon && /* @__PURE__ */ jsx(Icon, { name: field.icon, size: "xs", className: "text-muted-foreground" }),
|
|
16566
16566
|
/* @__PURE__ */ jsx(Typography, { variant: "caption", color: "secondary", children: field.label ?? fieldLabel2(field.name) })
|
|
16567
16567
|
] }),
|
|
16568
16568
|
/* @__PURE__ */ jsx(Badge, { variant: value ? "success" : "neutral", children: value ? t("common.yes") || "Yes" : t("common.no") || "No" })
|
|
@@ -16570,7 +16570,7 @@ var DataGrid = ({
|
|
|
16570
16570
|
}
|
|
16571
16571
|
return /* @__PURE__ */ jsxs(HStack, { gap: "sm", className: "justify-between items-center", children: [
|
|
16572
16572
|
/* @__PURE__ */ jsxs(HStack, { gap: "xs", className: "items-center", children: [
|
|
16573
|
-
field.icon && /* @__PURE__ */ jsx(Icon, { name: field.icon, size: "xs", className: "text-
|
|
16573
|
+
field.icon && /* @__PURE__ */ jsx(Icon, { name: field.icon, size: "xs", className: "text-muted-foreground" }),
|
|
16574
16574
|
/* @__PURE__ */ jsx(Typography, { variant: "caption", color: "secondary", children: field.label ?? fieldLabel2(field.name) })
|
|
16575
16575
|
] }),
|
|
16576
16576
|
/* @__PURE__ */ jsx(
|
|
@@ -16583,7 +16583,7 @@ var DataGrid = ({
|
|
|
16583
16583
|
)
|
|
16584
16584
|
] }, field.name);
|
|
16585
16585
|
}) }) }),
|
|
16586
|
-
primaryActions.length > 0 && /* @__PURE__ */ jsx(Box, { className: "px-4 py-3 mt-auto border-t border-
|
|
16586
|
+
primaryActions.length > 0 && /* @__PURE__ */ jsx(Box, { className: "px-4 py-3 mt-auto border-t border-border", children: /* @__PURE__ */ jsx(HStack, { gap: "sm", className: "justify-end", children: primaryActions.map((action, idx) => /* @__PURE__ */ jsxs(
|
|
16587
16587
|
Button,
|
|
16588
16588
|
{
|
|
16589
16589
|
variant: action.variant === "primary" ? "primary" : "ghost",
|
|
@@ -16763,7 +16763,7 @@ var DataList = ({
|
|
|
16763
16763
|
{
|
|
16764
16764
|
className: cn(
|
|
16765
16765
|
"max-w-[75%] px-4 py-2",
|
|
16766
|
-
isSent ? "bg-
|
|
16766
|
+
isSent ? "bg-primary text-primary-foreground rounded-2xl rounded-br-sm" : "bg-muted text-foreground rounded-2xl rounded-bl-sm"
|
|
16767
16767
|
),
|
|
16768
16768
|
children: [
|
|
16769
16769
|
!isSent && senderField && /* @__PURE__ */ jsx(Typography, { variant: "caption", className: "font-semibold mb-0.5", children: sender }),
|
|
@@ -16774,7 +16774,7 @@ var DataList = ({
|
|
|
16774
16774
|
variant: "caption",
|
|
16775
16775
|
className: cn(
|
|
16776
16776
|
"mt-1 text-[0.65rem]",
|
|
16777
|
-
isSent ? "opacity-70" : "text-
|
|
16777
|
+
isSent ? "opacity-70" : "text-muted-foreground"
|
|
16778
16778
|
),
|
|
16779
16779
|
children: formatDate3(timestamp)
|
|
16780
16780
|
}
|
|
@@ -16801,8 +16801,8 @@ var DataList = ({
|
|
|
16801
16801
|
className: cn(
|
|
16802
16802
|
"group flex items-center gap-4 transition-all duration-200",
|
|
16803
16803
|
isCompact ? "px-4 py-2" : "px-6 py-4",
|
|
16804
|
-
"hover:bg-
|
|
16805
|
-
!isCard && !isCompact && "rounded-
|
|
16804
|
+
"hover:bg-muted/80",
|
|
16805
|
+
!isCard && !isCompact && "rounded-lg border border-transparent hover:border-border"
|
|
16806
16806
|
),
|
|
16807
16807
|
children: [
|
|
16808
16808
|
/* @__PURE__ */ jsx(Box, { className: "flex-1 min-w-0", children: children(itemData, index) }),
|
|
@@ -16822,7 +16822,7 @@ var DataList = ({
|
|
|
16822
16822
|
onClick: handleActionClick(action, itemData),
|
|
16823
16823
|
"data-testid": `action-${action.event}`,
|
|
16824
16824
|
className: cn(
|
|
16825
|
-
action.variant === "danger" && "text-
|
|
16825
|
+
action.variant === "danger" && "text-error hover:bg-error/10"
|
|
16826
16826
|
),
|
|
16827
16827
|
children: [
|
|
16828
16828
|
action.icon && /* @__PURE__ */ jsx(Icon, { name: action.icon, size: "xs", className: "mr-1" }),
|
|
@@ -16836,7 +16836,7 @@ var DataList = ({
|
|
|
16836
16836
|
]
|
|
16837
16837
|
}
|
|
16838
16838
|
),
|
|
16839
|
-
isCard && !isLast && /* @__PURE__ */ jsx(Box, { className: "mx-6 border-b border-
|
|
16839
|
+
isCard && !isLast && /* @__PURE__ */ jsx(Box, { className: "mx-6 border-b border-border/40" })
|
|
16840
16840
|
] }, id2);
|
|
16841
16841
|
}
|
|
16842
16842
|
const id = itemData.id || String(index);
|
|
@@ -16848,8 +16848,8 @@ var DataList = ({
|
|
|
16848
16848
|
className: cn(
|
|
16849
16849
|
"group flex items-center gap-4 transition-all duration-200",
|
|
16850
16850
|
isCompact ? "px-4 py-2" : "px-6 py-4",
|
|
16851
|
-
"hover:bg-
|
|
16852
|
-
!isCard && !isCompact && "rounded-
|
|
16851
|
+
"hover:bg-muted/80",
|
|
16852
|
+
!isCard && !isCompact && "rounded-lg border border-transparent hover:border-border"
|
|
16853
16853
|
),
|
|
16854
16854
|
children: [
|
|
16855
16855
|
/* @__PURE__ */ jsxs(Box, { className: "flex-1 min-w-0", children: [
|
|
@@ -16859,7 +16859,7 @@ var DataList = ({
|
|
|
16859
16859
|
{
|
|
16860
16860
|
name: titleField.icon,
|
|
16861
16861
|
size: isCompact ? "xs" : "sm",
|
|
16862
|
-
className: "text-
|
|
16862
|
+
className: "text-primary flex-shrink-0"
|
|
16863
16863
|
}
|
|
16864
16864
|
),
|
|
16865
16865
|
titleValue !== void 0 && titleValue !== null && /* @__PURE__ */ jsx(
|
|
@@ -16883,7 +16883,7 @@ var DataList = ({
|
|
|
16883
16883
|
const value = getNestedValue(itemData, field.name);
|
|
16884
16884
|
if (value === void 0 || value === null || value === "") return null;
|
|
16885
16885
|
return /* @__PURE__ */ jsxs(HStack, { gap: "xs", className: "items-center", children: [
|
|
16886
|
-
field.icon && /* @__PURE__ */ jsx(Icon, { name: field.icon, size: "xs", className: "text-
|
|
16886
|
+
field.icon && /* @__PURE__ */ jsx(Icon, { name: field.icon, size: "xs", className: "text-muted-foreground" }),
|
|
16887
16887
|
/* @__PURE__ */ jsxs(Typography, { variant: "caption", color: "secondary", children: [
|
|
16888
16888
|
field.label ?? fieldLabel3(field.name),
|
|
16889
16889
|
":"
|
|
@@ -16896,7 +16896,7 @@ var DataList = ({
|
|
|
16896
16896
|
if (typeof value !== "number") return null;
|
|
16897
16897
|
return /* @__PURE__ */ jsxs(Box, { className: "mt-2 max-w-xs", children: [
|
|
16898
16898
|
/* @__PURE__ */ jsxs(HStack, { gap: "xs", className: "items-center mb-1", children: [
|
|
16899
|
-
field.icon && /* @__PURE__ */ jsx(Icon, { name: field.icon, size: "xs", className: "text-
|
|
16899
|
+
field.icon && /* @__PURE__ */ jsx(Icon, { name: field.icon, size: "xs", className: "text-muted-foreground" }),
|
|
16900
16900
|
/* @__PURE__ */ jsx(Typography, { variant: "caption", color: "secondary", children: field.label ?? fieldLabel3(field.name) })
|
|
16901
16901
|
] }),
|
|
16902
16902
|
/* @__PURE__ */ jsx(ProgressBar, { value, max: 100 })
|
|
@@ -16919,7 +16919,7 @@ var DataList = ({
|
|
|
16919
16919
|
onClick: handleActionClick(action, itemData),
|
|
16920
16920
|
"data-testid": `action-${action.event}`,
|
|
16921
16921
|
className: cn(
|
|
16922
|
-
action.variant === "danger" && "text-
|
|
16922
|
+
action.variant === "danger" && "text-error hover:bg-error/10"
|
|
16923
16923
|
),
|
|
16924
16924
|
children: [
|
|
16925
16925
|
action.icon && /* @__PURE__ */ jsx(Icon, { name: action.icon, size: "xs", className: "mr-1" }),
|
|
@@ -16933,14 +16933,14 @@ var DataList = ({
|
|
|
16933
16933
|
]
|
|
16934
16934
|
}
|
|
16935
16935
|
),
|
|
16936
|
-
isCard && !isLast && /* @__PURE__ */ jsx(Box, { className: "mx-6 border-b border-
|
|
16936
|
+
isCard && !isLast && /* @__PURE__ */ jsx(Box, { className: "mx-6 border-b border-border/40" })
|
|
16937
16937
|
] }, id);
|
|
16938
16938
|
};
|
|
16939
16939
|
return /* @__PURE__ */ jsxs(
|
|
16940
16940
|
Box,
|
|
16941
16941
|
{
|
|
16942
16942
|
className: cn(
|
|
16943
|
-
isCard && "bg-
|
|
16943
|
+
isCard && "bg-card rounded-xl border border-border shadow-lg overflow-hidden",
|
|
16944
16944
|
!isCard && gapClass,
|
|
16945
16945
|
className
|
|
16946
16946
|
),
|
|
@@ -17061,9 +17061,9 @@ var FilterGroup = ({
|
|
|
17061
17061
|
const activeFilterCount = Object.keys(selectedValues).length;
|
|
17062
17062
|
if (variant === "pills") {
|
|
17063
17063
|
return /* @__PURE__ */ jsxs(HStack, { gap: "md", align: "center", className: cn("flex-wrap", className), children: [
|
|
17064
|
-
showIcon && /* @__PURE__ */ jsx(Filter, { className: "h-4 w-4 text-
|
|
17064
|
+
showIcon && /* @__PURE__ */ jsx(Filter, { className: "h-4 w-4 text-muted-foreground" }),
|
|
17065
17065
|
filters.map((filter) => /* @__PURE__ */ jsxs(HStack, { gap: "xs", align: "center", children: [
|
|
17066
|
-
/* @__PURE__ */ jsxs("span", { className: "text-sm font-[var(--font-weight-medium)] text-
|
|
17066
|
+
/* @__PURE__ */ jsxs("span", { className: "text-sm font-[var(--font-weight-medium)] text-muted-foreground", children: [
|
|
17067
17067
|
filter.label,
|
|
17068
17068
|
":"
|
|
17069
17069
|
] }),
|
|
@@ -17071,7 +17071,7 @@ var FilterGroup = ({
|
|
|
17071
17071
|
HStack,
|
|
17072
17072
|
{
|
|
17073
17073
|
gap: "none",
|
|
17074
|
-
className: "rounded-
|
|
17074
|
+
className: "rounded-sm overflow-hidden border-[length:var(--border-width)] border-border",
|
|
17075
17075
|
children: [
|
|
17076
17076
|
/* @__PURE__ */ jsx(
|
|
17077
17077
|
"button",
|
|
@@ -17080,7 +17080,7 @@ var FilterGroup = ({
|
|
|
17080
17080
|
onClick: () => handleFilterSelect(filter.field, null),
|
|
17081
17081
|
className: cn(
|
|
17082
17082
|
"px-3 py-1.5 text-sm font-[var(--font-weight-medium)] transition-all duration-[var(--transition-fast)]",
|
|
17083
|
-
!selectedValues[filter.field] ? "bg-
|
|
17083
|
+
!selectedValues[filter.field] ? "bg-primary text-primary-foreground" : "bg-card text-muted-foreground hover:bg-muted"
|
|
17084
17084
|
),
|
|
17085
17085
|
children: "All"
|
|
17086
17086
|
}
|
|
@@ -17092,8 +17092,8 @@ var FilterGroup = ({
|
|
|
17092
17092
|
onClick: () => handleFilterSelect(filter.field, option),
|
|
17093
17093
|
className: cn(
|
|
17094
17094
|
"px-3 py-1.5 text-sm font-[var(--font-weight-medium)] transition-all duration-[var(--transition-fast)]",
|
|
17095
|
-
"border-l-[length:var(--border-width)] border-
|
|
17096
|
-
selectedValues[filter.field] === option ? "bg-
|
|
17095
|
+
"border-l-[length:var(--border-width)] border-border",
|
|
17096
|
+
selectedValues[filter.field] === option ? "bg-primary text-primary-foreground" : "bg-card text-muted-foreground hover:bg-muted"
|
|
17097
17097
|
),
|
|
17098
17098
|
children: option
|
|
17099
17099
|
},
|
|
@@ -17117,12 +17117,12 @@ var FilterGroup = ({
|
|
|
17117
17117
|
}
|
|
17118
17118
|
if (variant === "vertical") {
|
|
17119
17119
|
return /* @__PURE__ */ jsxs("div", { className: cn("flex flex-col gap-4", className), children: [
|
|
17120
|
-
showIcon && /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2 text-
|
|
17120
|
+
showIcon && /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2 text-muted-foreground", children: [
|
|
17121
17121
|
/* @__PURE__ */ jsx(Filter, { className: "h-4 w-4" }),
|
|
17122
17122
|
/* @__PURE__ */ jsx("span", { className: "text-sm font-[var(--font-weight-bold)] uppercase tracking-wide", children: "Filters" })
|
|
17123
17123
|
] }),
|
|
17124
17124
|
filters.map((filter) => /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-1", children: [
|
|
17125
|
-
/* @__PURE__ */ jsx("label", { className: "text-xs font-[var(--font-weight-bold)] text-
|
|
17125
|
+
/* @__PURE__ */ jsx("label", { className: "text-xs font-[var(--font-weight-bold)] text-muted-foreground uppercase tracking-wide", children: filter.label }),
|
|
17126
17126
|
resolveFilterType(filter) === "date" ? /* @__PURE__ */ jsx(
|
|
17127
17127
|
Input,
|
|
17128
17128
|
{
|
|
@@ -17191,7 +17191,7 @@ var FilterGroup = ({
|
|
|
17191
17191
|
}
|
|
17192
17192
|
if (variant === "compact") {
|
|
17193
17193
|
return /* @__PURE__ */ jsxs(HStack, { gap: "sm", align: "center", className: cn("flex-wrap", className), children: [
|
|
17194
|
-
showIcon && /* @__PURE__ */ jsx(Filter, { className: "h-4 w-4 text-
|
|
17194
|
+
showIcon && /* @__PURE__ */ jsx(Filter, { className: "h-4 w-4 text-muted-foreground" }),
|
|
17195
17195
|
filters.map((filter) => /* @__PURE__ */ jsx("div", { className: "min-w-[120px]", children: resolveFilterType(filter) === "date" ? /* @__PURE__ */ jsx(
|
|
17196
17196
|
Input,
|
|
17197
17197
|
{
|
|
@@ -17215,7 +17215,7 @@ var FilterGroup = ({
|
|
|
17215
17215
|
className: "text-sm min-w-[100px]"
|
|
17216
17216
|
}
|
|
17217
17217
|
),
|
|
17218
|
-
/* @__PURE__ */ jsx("span", { className: "text-
|
|
17218
|
+
/* @__PURE__ */ jsx("span", { className: "text-muted-foreground", children: "-" }),
|
|
17219
17219
|
/* @__PURE__ */ jsx(
|
|
17220
17220
|
Input,
|
|
17221
17221
|
{
|
|
@@ -17271,9 +17271,9 @@ var FilterGroup = ({
|
|
|
17271
17271
|
"div",
|
|
17272
17272
|
{
|
|
17273
17273
|
className: cn(
|
|
17274
|
-
"p-4 rounded-
|
|
17275
|
-
"bg-
|
|
17276
|
-
"border-[length:var(--border-width)] border-
|
|
17274
|
+
"p-4 rounded-md",
|
|
17275
|
+
"bg-card",
|
|
17276
|
+
"border-[length:var(--border-width)] border-border",
|
|
17277
17277
|
className
|
|
17278
17278
|
),
|
|
17279
17279
|
children: /* @__PURE__ */ jsxs(HStack, { gap: "md", align: "center", className: "flex-wrap", children: [
|
|
@@ -17282,7 +17282,7 @@ var FilterGroup = ({
|
|
|
17282
17282
|
{
|
|
17283
17283
|
gap: "xs",
|
|
17284
17284
|
align: "center",
|
|
17285
|
-
className: "text-
|
|
17285
|
+
className: "text-muted-foreground",
|
|
17286
17286
|
children: [
|
|
17287
17287
|
/* @__PURE__ */ jsx(Filter, { className: "h-4 w-4" }),
|
|
17288
17288
|
/* @__PURE__ */ jsx("span", { className: "text-sm font-[var(--font-weight-bold)] uppercase tracking-wide", children: "Filters" })
|
|
@@ -17290,7 +17290,7 @@ var FilterGroup = ({
|
|
|
17290
17290
|
}
|
|
17291
17291
|
),
|
|
17292
17292
|
filters.map((filter) => /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-1", children: [
|
|
17293
|
-
/* @__PURE__ */ jsx("label", { className: "text-xs font-[var(--font-weight-bold)] text-
|
|
17293
|
+
/* @__PURE__ */ jsx("label", { className: "text-xs font-[var(--font-weight-bold)] text-muted-foreground uppercase tracking-wide", children: filter.label }),
|
|
17294
17294
|
resolveFilterType(filter) === "date" ? /* @__PURE__ */ jsx(
|
|
17295
17295
|
Input,
|
|
17296
17296
|
{
|
|
@@ -17317,7 +17317,7 @@ var FilterGroup = ({
|
|
|
17317
17317
|
className: "min-w-[130px]"
|
|
17318
17318
|
}
|
|
17319
17319
|
),
|
|
17320
|
-
/* @__PURE__ */ jsx("span", { className: "text-
|
|
17320
|
+
/* @__PURE__ */ jsx("span", { className: "text-muted-foreground", children: "-" }),
|
|
17321
17321
|
/* @__PURE__ */ jsx(
|
|
17322
17322
|
Input,
|
|
17323
17323
|
{
|
|
@@ -17463,8 +17463,8 @@ var InputGroup = ({
|
|
|
17463
17463
|
{
|
|
17464
17464
|
className: cn(
|
|
17465
17465
|
"flex items-center justify-center px-3",
|
|
17466
|
-
"bg-
|
|
17467
|
-
"border border-
|
|
17466
|
+
"bg-muted dark:bg-muted",
|
|
17467
|
+
"border border-border dark:border-border",
|
|
17468
17468
|
position === "left" ? "rounded-l-lg border-r-0" : "rounded-r-lg border-l-0"
|
|
17469
17469
|
),
|
|
17470
17470
|
children: /* @__PURE__ */ jsx(Icon, { icon: addon, size: "sm" })
|
|
@@ -17476,9 +17476,9 @@ var InputGroup = ({
|
|
|
17476
17476
|
{
|
|
17477
17477
|
className: cn(
|
|
17478
17478
|
"flex items-center justify-center px-3",
|
|
17479
|
-
"bg-
|
|
17480
|
-
"border border-
|
|
17481
|
-
"text-
|
|
17479
|
+
"bg-muted dark:bg-muted",
|
|
17480
|
+
"border border-border dark:border-border",
|
|
17481
|
+
"text-foreground dark:text-foreground",
|
|
17482
17482
|
position === "left" ? "rounded-l-lg border-r-0" : "rounded-r-lg border-l-0"
|
|
17483
17483
|
),
|
|
17484
17484
|
children: typeof addon === "string" ? /* @__PURE__ */ jsx(Typography, { variant: "small", children: addon }) : addon
|
|
@@ -17644,7 +17644,7 @@ var RelationSelect = ({
|
|
|
17644
17644
|
{
|
|
17645
17645
|
variant: "body",
|
|
17646
17646
|
className: cn(
|
|
17647
|
-
!selectedOption && "text-
|
|
17647
|
+
!selectedOption && "text-muted-foreground"
|
|
17648
17648
|
),
|
|
17649
17649
|
children: isLoading ? /* @__PURE__ */ jsxs(HStack, { gap: "xs", align: "center", children: [
|
|
17650
17650
|
/* @__PURE__ */ jsx(Spinner, { size: "sm" }),
|
|
@@ -17657,16 +17657,16 @@ var RelationSelect = ({
|
|
|
17657
17657
|
Box,
|
|
17658
17658
|
{
|
|
17659
17659
|
as: "button",
|
|
17660
|
-
className: "p-0.5 hover:bg-
|
|
17660
|
+
className: "p-0.5 hover:bg-muted rounded cursor-pointer",
|
|
17661
17661
|
onClick: handleClear,
|
|
17662
|
-
children: /* @__PURE__ */ jsx(X, { className: "h-4 w-4 text-
|
|
17662
|
+
children: /* @__PURE__ */ jsx(X, { className: "h-4 w-4 text-muted-foreground" })
|
|
17663
17663
|
}
|
|
17664
17664
|
),
|
|
17665
17665
|
/* @__PURE__ */ jsx(
|
|
17666
17666
|
ChevronDown,
|
|
17667
17667
|
{
|
|
17668
17668
|
className: cn(
|
|
17669
|
-
"h-4 w-4 text-
|
|
17669
|
+
"h-4 w-4 text-muted-foreground transition-transform",
|
|
17670
17670
|
isOpen && "transform rotate-180"
|
|
17671
17671
|
)
|
|
17672
17672
|
}
|
|
@@ -17685,7 +17685,7 @@ var RelationSelect = ({
|
|
|
17685
17685
|
shadow: "lg",
|
|
17686
17686
|
className: "z-50 w-full mt-1",
|
|
17687
17687
|
children: [
|
|
17688
|
-
/* @__PURE__ */ jsx(Box, { padding: "sm", className: "border-b border-
|
|
17688
|
+
/* @__PURE__ */ jsx(Box, { padding: "sm", className: "border-b border-border", children: /* @__PURE__ */ jsx(
|
|
17689
17689
|
Input,
|
|
17690
17690
|
{
|
|
17691
17691
|
ref: searchInputRef,
|
|
@@ -17714,7 +17714,7 @@ var RelationSelect = ({
|
|
|
17714
17714
|
paddingX: "sm",
|
|
17715
17715
|
paddingY: "sm",
|
|
17716
17716
|
className: cn(
|
|
17717
|
-
"text-left text-sm hover:bg-
|
|
17717
|
+
"text-left text-sm hover:bg-muted focus:outline-none focus:bg-muted",
|
|
17718
17718
|
option.value === value && "bg-primary-50 text-primary-700",
|
|
17719
17719
|
option.disabled && "opacity-50 cursor-not-allowed"
|
|
17720
17720
|
),
|
|
@@ -17853,8 +17853,8 @@ var SidePanel = ({
|
|
|
17853
17853
|
{
|
|
17854
17854
|
className: cn(
|
|
17855
17855
|
"fixed top-16 lg:top-0 bottom-0 z-[60]",
|
|
17856
|
-
"bg-
|
|
17857
|
-
"border-l-2 border-
|
|
17856
|
+
"bg-card",
|
|
17857
|
+
"border-l-2 border-border",
|
|
17858
17858
|
position === "left" && "border-l-0 border-r-2",
|
|
17859
17859
|
"flex flex-col",
|
|
17860
17860
|
"transition-transform duration-300 ease-in-out",
|
|
@@ -17863,7 +17863,7 @@ var SidePanel = ({
|
|
|
17863
17863
|
className
|
|
17864
17864
|
),
|
|
17865
17865
|
children: [
|
|
17866
|
-
/* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between p-4 border-b-2 border-
|
|
17866
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between p-4 border-b-2 border-border sticky top-0 bg-card z-10", children: [
|
|
17867
17867
|
/* @__PURE__ */ jsx(Typography, { variant: "h6", children: title }),
|
|
17868
17868
|
/* @__PURE__ */ jsx(
|
|
17869
17869
|
Button,
|
|
@@ -17907,7 +17907,7 @@ var WizardProgress = ({
|
|
|
17907
17907
|
{
|
|
17908
17908
|
border: true,
|
|
17909
17909
|
className: cn(
|
|
17910
|
-
"border-b-2 border-x-0 border-t-0 border-
|
|
17910
|
+
"border-b-2 border-x-0 border-t-0 border-border",
|
|
17911
17911
|
compact ? "px-4 py-2" : "px-6 py-4",
|
|
17912
17912
|
className
|
|
17913
17913
|
),
|
|
@@ -17922,11 +17922,11 @@ var WizardProgress = ({
|
|
|
17922
17922
|
disabled: !isCompleted || !allowNavigation,
|
|
17923
17923
|
className: cn(
|
|
17924
17924
|
"flex items-center justify-center text-sm font-bold transition-colors",
|
|
17925
|
-
"border-2 border-
|
|
17925
|
+
"border-2 border-border",
|
|
17926
17926
|
compact ? "w-6 h-6" : "w-8 h-8",
|
|
17927
|
-
isActive && "bg-
|
|
17928
|
-
isCompleted && "bg-
|
|
17929
|
-
!isActive && !isCompleted && "bg-
|
|
17927
|
+
isActive && "bg-foreground text-background",
|
|
17928
|
+
isCompleted && "bg-foreground text-background cursor-pointer hover:bg-muted-foreground",
|
|
17929
|
+
!isActive && !isCompleted && "bg-card text-foreground"
|
|
17930
17930
|
),
|
|
17931
17931
|
children: isCompleted ? /* @__PURE__ */ jsx(Icon, { icon: Check, size: "sm" }) : index + 1
|
|
17932
17932
|
}
|
|
@@ -17936,7 +17936,7 @@ var WizardProgress = ({
|
|
|
17936
17936
|
{
|
|
17937
17937
|
className: cn(
|
|
17938
17938
|
"hidden md:block",
|
|
17939
|
-
isActive ? "text-
|
|
17939
|
+
isActive ? "text-foreground font-bold" : "text-muted-foreground"
|
|
17940
17940
|
),
|
|
17941
17941
|
children: /* @__PURE__ */ jsx(
|
|
17942
17942
|
Typography,
|
|
@@ -17953,7 +17953,7 @@ var WizardProgress = ({
|
|
|
17953
17953
|
{
|
|
17954
17954
|
className: cn(
|
|
17955
17955
|
"flex-1 h-0.5",
|
|
17956
|
-
index < currentStep ? "bg-
|
|
17956
|
+
index < currentStep ? "bg-foreground" : "bg-muted"
|
|
17957
17957
|
)
|
|
17958
17958
|
}
|
|
17959
17959
|
)
|
|
@@ -18025,7 +18025,7 @@ var WizardNavigation = ({
|
|
|
18025
18025
|
{
|
|
18026
18026
|
border: true,
|
|
18027
18027
|
className: cn(
|
|
18028
|
-
"border-t-2 border-x-0 border-b-0 border-
|
|
18028
|
+
"border-t-2 border-x-0 border-b-0 border-border flex justify-between items-center",
|
|
18029
18029
|
compact ? "px-4 py-2" : "px-6 py-4",
|
|
18030
18030
|
className
|
|
18031
18031
|
),
|
|
@@ -18124,7 +18124,7 @@ var RepeatableFormSection = ({
|
|
|
18124
18124
|
{
|
|
18125
18125
|
justify: "between",
|
|
18126
18126
|
align: "center",
|
|
18127
|
-
className: "pb-2 border-b border-
|
|
18127
|
+
className: "pb-2 border-b border-border",
|
|
18128
18128
|
children: [
|
|
18129
18129
|
/* @__PURE__ */ jsx(HStack, { gap: "sm", align: "center", children: item.addedInState && /* @__PURE__ */ jsxs(Typography, { variant: "caption", color: "muted", children: [
|
|
18130
18130
|
"Added in:",
|
|
@@ -18144,7 +18144,7 @@ var RepeatableFormSection = ({
|
|
|
18144
18144
|
}
|
|
18145
18145
|
),
|
|
18146
18146
|
/* @__PURE__ */ jsxs(HStack, { gap: "sm", align: "start", children: [
|
|
18147
|
-
allowReorder && !readOnly && /* @__PURE__ */ jsx(Box, { className: "pt-2 cursor-move text-
|
|
18147
|
+
allowReorder && !readOnly && /* @__PURE__ */ jsx(Box, { className: "pt-2 cursor-move text-muted-foreground hover:text-foreground", children: /* @__PURE__ */ jsx(Icon, { name: "grip-vertical", size: "md" }) }),
|
|
18148
18148
|
/* @__PURE__ */ jsx(Box, { className: "flex-1", children: renderItem(item, index) }),
|
|
18149
18149
|
canRemove && /* @__PURE__ */ jsx(
|
|
18150
18150
|
Button,
|
|
@@ -18152,7 +18152,7 @@ var RepeatableFormSection = ({
|
|
|
18152
18152
|
variant: "ghost",
|
|
18153
18153
|
size: "sm",
|
|
18154
18154
|
onClick: () => handleRemove(item.id, index),
|
|
18155
|
-
className: "text-
|
|
18155
|
+
className: "text-error hover:text-error hover:bg-error/10",
|
|
18156
18156
|
children: /* @__PURE__ */ jsx(Icon, { name: "trash-2", size: "sm" })
|
|
18157
18157
|
}
|
|
18158
18158
|
)
|
|
@@ -18195,15 +18195,15 @@ var ViolationAlert = ({
|
|
|
18195
18195
|
actionType: "measure"
|
|
18196
18196
|
};
|
|
18197
18197
|
const effectiveSeverity = severity ?? (resolvedViolation.actionType === "measure" ? "warning" : "error");
|
|
18198
|
-
const bgColor = effectiveSeverity === "warning" ? "bg-
|
|
18199
|
-
const textColor = effectiveSeverity === "warning" ? "text-
|
|
18200
|
-
const iconColor = effectiveSeverity === "warning" ? "text-
|
|
18198
|
+
const bgColor = effectiveSeverity === "warning" ? "bg-warning/10 border-warning/30" : "bg-error/10 border-error/30";
|
|
18199
|
+
const textColor = effectiveSeverity === "warning" ? "text-warning" : "text-error";
|
|
18200
|
+
const iconColor = effectiveSeverity === "warning" ? "text-warning" : "text-error";
|
|
18201
18201
|
if (compact) {
|
|
18202
18202
|
return /* @__PURE__ */ jsx(
|
|
18203
18203
|
Box,
|
|
18204
18204
|
{
|
|
18205
18205
|
className: cn(
|
|
18206
|
-
"px-3 py-2 rounded-
|
|
18206
|
+
"px-3 py-2 rounded-md border",
|
|
18207
18207
|
bgColor,
|
|
18208
18208
|
className
|
|
18209
18209
|
),
|
|
@@ -18250,7 +18250,7 @@ var ViolationAlert = ({
|
|
|
18250
18250
|
Box,
|
|
18251
18251
|
{
|
|
18252
18252
|
className: cn(
|
|
18253
|
-
"p-4 rounded-
|
|
18253
|
+
"p-4 rounded-lg border",
|
|
18254
18254
|
bgColor,
|
|
18255
18255
|
className
|
|
18256
18256
|
),
|
|
@@ -18298,7 +18298,7 @@ var ViolationAlert = ({
|
|
|
18298
18298
|
{
|
|
18299
18299
|
className: cn(
|
|
18300
18300
|
"pt-2 border-t",
|
|
18301
|
-
effectiveSeverity === "warning" ? "border-
|
|
18301
|
+
effectiveSeverity === "warning" ? "border-warning/30" : "border-error/30"
|
|
18302
18302
|
),
|
|
18303
18303
|
children: /* @__PURE__ */ jsxs(VStack, { gap: "xs", children: [
|
|
18304
18304
|
resolvedViolation.adminAction && /* @__PURE__ */ jsxs(HStack, { gap: "xs", align: "center", children: [
|
|
@@ -18379,7 +18379,7 @@ var FormSectionHeader = ({
|
|
|
18379
18379
|
Box,
|
|
18380
18380
|
{
|
|
18381
18381
|
className: cn(
|
|
18382
|
-
"px-4 py-3 bg-
|
|
18382
|
+
"px-4 py-3 bg-muted rounded-t-lg",
|
|
18383
18383
|
isClickable && "cursor-pointer hover:bg-[var(--color-surface-hover)] transition-colors",
|
|
18384
18384
|
className
|
|
18385
18385
|
),
|
|
@@ -18391,7 +18391,7 @@ var FormSectionHeader = ({
|
|
|
18391
18391
|
{
|
|
18392
18392
|
name: icon,
|
|
18393
18393
|
size: "md",
|
|
18394
|
-
className: "text-
|
|
18394
|
+
className: "text-muted-foreground"
|
|
18395
18395
|
}
|
|
18396
18396
|
),
|
|
18397
18397
|
statusIcon && /* @__PURE__ */ jsx(
|
|
@@ -18399,7 +18399,7 @@ var FormSectionHeader = ({
|
|
|
18399
18399
|
{
|
|
18400
18400
|
name: statusIcon,
|
|
18401
18401
|
size: "md",
|
|
18402
|
-
className: hasErrors ? "text-
|
|
18402
|
+
className: hasErrors ? "text-error" : "text-success"
|
|
18403
18403
|
}
|
|
18404
18404
|
),
|
|
18405
18405
|
/* @__PURE__ */ jsxs(Box, { children: [
|
|
@@ -18415,7 +18415,7 @@ var FormSectionHeader = ({
|
|
|
18415
18415
|
name: "chevron-down",
|
|
18416
18416
|
size: "md",
|
|
18417
18417
|
className: cn(
|
|
18418
|
-
"text-
|
|
18418
|
+
"text-muted-foreground transition-transform",
|
|
18419
18419
|
isCollapsed && "-rotate-90"
|
|
18420
18420
|
)
|
|
18421
18421
|
}
|
|
@@ -18533,7 +18533,7 @@ var LineChart2 = ({
|
|
|
18533
18533
|
return `${linePath} L ${last.x} ${bottom} L ${first.x} ${bottom} Z`;
|
|
18534
18534
|
}, [linePath, points, height, showArea]);
|
|
18535
18535
|
if (safeData.length === 0) {
|
|
18536
|
-
return /* @__PURE__ */ jsx(Box, { className: cn("flex items-center justify-center text-
|
|
18536
|
+
return /* @__PURE__ */ jsx(Box, { className: cn("flex items-center justify-center text-muted-foreground", className), style: { width, height }, children: "No data" });
|
|
18537
18537
|
}
|
|
18538
18538
|
return /* @__PURE__ */ jsx(Box, { className: cn(className), children: /* @__PURE__ */ jsxs(
|
|
18539
18539
|
"svg",
|
|
@@ -20425,13 +20425,13 @@ var GraphView = ({
|
|
|
20425
20425
|
[onNodeClick]
|
|
20426
20426
|
);
|
|
20427
20427
|
if (nodes.length === 0) {
|
|
20428
|
-
return /* @__PURE__ */ jsx(Box, { className: cn("flex items-center justify-center", className), style: { width: w, height: h }, children: /* @__PURE__ */ jsx(Box, { className: "text-
|
|
20428
|
+
return /* @__PURE__ */ jsx(Box, { className: cn("flex items-center justify-center", className), style: { width: w, height: h }, children: /* @__PURE__ */ jsx(Box, { className: "text-muted-foreground text-sm", children: "No graph data" }) });
|
|
20429
20429
|
}
|
|
20430
20430
|
return /* @__PURE__ */ jsx(
|
|
20431
20431
|
Box,
|
|
20432
20432
|
{
|
|
20433
20433
|
ref: containerRef,
|
|
20434
|
-
className: cn("relative overflow-hidden rounded-lg border border-
|
|
20434
|
+
className: cn("relative overflow-hidden rounded-lg border border-border bg-card", className),
|
|
20435
20435
|
style: { width: propWidth ?? "100%", height: h },
|
|
20436
20436
|
children: /* @__PURE__ */ jsxs(
|
|
20437
20437
|
"svg",
|
|
@@ -20616,9 +20616,9 @@ var NumberStepper = ({
|
|
|
20616
20616
|
{
|
|
20617
20617
|
className: cn(
|
|
20618
20618
|
"inline-flex items-center",
|
|
20619
|
-
"rounded-
|
|
20620
|
-
"border-[length:var(--border-width)] border-
|
|
20621
|
-
"bg-
|
|
20619
|
+
"rounded-sm",
|
|
20620
|
+
"border-[length:var(--border-width)] border-border",
|
|
20621
|
+
"bg-surface",
|
|
20622
20622
|
disabled && "opacity-50 cursor-not-allowed",
|
|
20623
20623
|
className
|
|
20624
20624
|
),
|
|
@@ -20638,13 +20638,13 @@ var NumberStepper = ({
|
|
|
20638
20638
|
disabled: disabled || isAtMin,
|
|
20639
20639
|
className: cn(
|
|
20640
20640
|
"inline-flex items-center justify-center",
|
|
20641
|
-
"rounded-l-
|
|
20642
|
-
"text-
|
|
20643
|
-
"hover:bg-
|
|
20644
|
-
"active:bg-
|
|
20641
|
+
"rounded-l-sm",
|
|
20642
|
+
"text-foreground",
|
|
20643
|
+
"hover:bg-muted",
|
|
20644
|
+
"active:bg-muted",
|
|
20645
20645
|
"transition-colors duration-100",
|
|
20646
20646
|
"disabled:opacity-40 disabled:cursor-not-allowed disabled:hover:bg-transparent",
|
|
20647
|
-
"focus:outline-none focus:ring-[length:var(--focus-ring-width)] focus:ring-
|
|
20647
|
+
"focus:outline-none focus:ring-[length:var(--focus-ring-width)] focus:ring-ring focus:ring-inset",
|
|
20648
20648
|
styles.button
|
|
20649
20649
|
),
|
|
20650
20650
|
"aria-label": "Decrease",
|
|
@@ -20656,8 +20656,8 @@ var NumberStepper = ({
|
|
|
20656
20656
|
{
|
|
20657
20657
|
className: cn(
|
|
20658
20658
|
"text-center font-medium tabular-nums",
|
|
20659
|
-
"text-
|
|
20660
|
-
"border-x-[length:var(--border-width)] border-
|
|
20659
|
+
"text-foreground",
|
|
20660
|
+
"border-x-[length:var(--border-width)] border-border",
|
|
20661
20661
|
"px-1 select-none",
|
|
20662
20662
|
styles.text
|
|
20663
20663
|
),
|
|
@@ -20679,13 +20679,13 @@ var NumberStepper = ({
|
|
|
20679
20679
|
disabled: disabled || isAtMax,
|
|
20680
20680
|
className: cn(
|
|
20681
20681
|
"inline-flex items-center justify-center",
|
|
20682
|
-
"rounded-r-
|
|
20683
|
-
"text-
|
|
20684
|
-
"hover:bg-
|
|
20685
|
-
"active:bg-
|
|
20682
|
+
"rounded-r-sm",
|
|
20683
|
+
"text-foreground",
|
|
20684
|
+
"hover:bg-muted",
|
|
20685
|
+
"active:bg-muted",
|
|
20686
20686
|
"transition-colors duration-100",
|
|
20687
20687
|
"disabled:opacity-40 disabled:cursor-not-allowed disabled:hover:bg-transparent",
|
|
20688
|
-
"focus:outline-none focus:ring-[length:var(--focus-ring-width)] focus:ring-
|
|
20688
|
+
"focus:outline-none focus:ring-[length:var(--focus-ring-width)] focus:ring-ring focus:ring-inset",
|
|
20689
20689
|
styles.button
|
|
20690
20690
|
),
|
|
20691
20691
|
"aria-label": "Increase",
|
|
@@ -20796,7 +20796,7 @@ var StarRating = ({
|
|
|
20796
20796
|
{
|
|
20797
20797
|
className: cn(
|
|
20798
20798
|
styles.star,
|
|
20799
|
-
"text-
|
|
20799
|
+
"text-muted",
|
|
20800
20800
|
"transition-colors duration-100"
|
|
20801
20801
|
),
|
|
20802
20802
|
strokeWidth: 1.5
|
|
@@ -20808,7 +20808,7 @@ var StarRating = ({
|
|
|
20808
20808
|
className: cn(
|
|
20809
20809
|
styles.star,
|
|
20810
20810
|
"absolute inset-0",
|
|
20811
|
-
"text-
|
|
20811
|
+
"text-warning fill-warning",
|
|
20812
20812
|
"transition-colors duration-100"
|
|
20813
20813
|
),
|
|
20814
20814
|
strokeWidth: 1.5,
|
|
@@ -20949,14 +20949,14 @@ var UploadDropZone = ({
|
|
|
20949
20949
|
{
|
|
20950
20950
|
className: cn(
|
|
20951
20951
|
"relative flex flex-col items-center justify-center",
|
|
20952
|
-
"p-8 rounded-
|
|
20952
|
+
"p-8 rounded-sm",
|
|
20953
20953
|
"border-2 border-dashed",
|
|
20954
20954
|
"transition-colors duration-150",
|
|
20955
20955
|
"cursor-pointer",
|
|
20956
|
-
isDragOver ? "border-
|
|
20957
|
-
error && "border-
|
|
20956
|
+
isDragOver ? "border-primary bg-primary bg-opacity-5" : "border-border bg-surface",
|
|
20957
|
+
error && "border-error",
|
|
20958
20958
|
disabled && "opacity-50 cursor-not-allowed",
|
|
20959
|
-
"hover:border-
|
|
20959
|
+
"hover:border-primary hover:bg-muted",
|
|
20960
20960
|
className
|
|
20961
20961
|
),
|
|
20962
20962
|
onDragOver: handleDragOver,
|
|
@@ -20986,7 +20986,7 @@ var UploadDropZone = ({
|
|
|
20986
20986
|
"aria-hidden": "true"
|
|
20987
20987
|
}
|
|
20988
20988
|
),
|
|
20989
|
-
error ? /* @__PURE__ */ jsx(Icon, { icon: FileWarning, size: "lg", className: "text-
|
|
20989
|
+
error ? /* @__PURE__ */ jsx(Icon, { icon: FileWarning, size: "lg", className: "text-error mb-2" }) : /* @__PURE__ */ jsx(Icon, { icon: Upload, size: "lg", className: "text-muted-foreground mb-2" }),
|
|
20990
20990
|
/* @__PURE__ */ jsx(Typography, { variant: "body1", className: "text-center font-medium mb-1", children: isDragOver ? "Drop files here" : label }),
|
|
20991
20991
|
error ? /* @__PURE__ */ jsx(Typography, { variant: "caption", color: "error", className: "text-center", children: error }) : /* @__PURE__ */ jsx(Typography, { variant: "caption", color: "muted", className: "text-center", children: description ?? defaultDescription })
|
|
20992
20992
|
]
|
|
@@ -21202,20 +21202,20 @@ function formatValue3(value, format, max) {
|
|
|
21202
21202
|
return formatted;
|
|
21203
21203
|
}
|
|
21204
21204
|
var variantColor = {
|
|
21205
|
-
default: "text-
|
|
21206
|
-
primary: "text-
|
|
21207
|
-
success: "text-
|
|
21208
|
-
warning: "text-
|
|
21209
|
-
error: "text-
|
|
21210
|
-
info: "text-
|
|
21205
|
+
default: "text-foreground",
|
|
21206
|
+
primary: "text-primary",
|
|
21207
|
+
success: "text-success",
|
|
21208
|
+
warning: "text-warning",
|
|
21209
|
+
error: "text-error",
|
|
21210
|
+
info: "text-info"
|
|
21211
21211
|
};
|
|
21212
21212
|
var StatDisplay = ({
|
|
21213
21213
|
label,
|
|
21214
21214
|
value,
|
|
21215
21215
|
max,
|
|
21216
21216
|
icon: iconProp,
|
|
21217
|
-
iconBg = "bg-
|
|
21218
|
-
iconColor = "text-
|
|
21217
|
+
iconBg = "bg-muted",
|
|
21218
|
+
iconColor = "text-foreground",
|
|
21219
21219
|
format,
|
|
21220
21220
|
size = "md",
|
|
21221
21221
|
variant = "default",
|
|
@@ -21234,8 +21234,8 @@ var StatDisplay = ({
|
|
|
21234
21234
|
}
|
|
21235
21235
|
if (isLoading) {
|
|
21236
21236
|
return /* @__PURE__ */ jsx(Card, { className: cn(padSizes[size], className), children: /* @__PURE__ */ jsxs(VStack, { gap: "sm", className: "animate-pulse", children: [
|
|
21237
|
-
/* @__PURE__ */ jsx(Box, { className: "h-3 bg-
|
|
21238
|
-
/* @__PURE__ */ jsx(Box, { className: "h-6 bg-
|
|
21237
|
+
/* @__PURE__ */ jsx(Box, { className: "h-3 bg-muted rounded w-16" }),
|
|
21238
|
+
/* @__PURE__ */ jsx(Box, { className: "h-6 bg-muted rounded w-12" })
|
|
21239
21239
|
] }) });
|
|
21240
21240
|
}
|
|
21241
21241
|
if (compact) {
|
|
@@ -21251,7 +21251,7 @@ var StatDisplay = ({
|
|
|
21251
21251
|
/* @__PURE__ */ jsx(Typography, { variant: "overline", color: "secondary", children: label }),
|
|
21252
21252
|
/* @__PURE__ */ jsx(Typography, { variant: "h4", className: cn("font-bold", valueSizes[size], variantColor[variant]), children: displayValue })
|
|
21253
21253
|
] }),
|
|
21254
|
-
(ResolvedIcon || typeof iconProp !== "string" && iconProp) && /* @__PURE__ */ jsx(Box, { className: cn("p-3 rounded-
|
|
21254
|
+
(ResolvedIcon || typeof iconProp !== "string" && iconProp) && /* @__PURE__ */ jsx(Box, { className: cn("p-3 rounded-md", iconBg), children: ResolvedIcon ? /* @__PURE__ */ jsx(ResolvedIcon, { className: cn(iconSizes2[size], iconColor) }) : iconProp })
|
|
21255
21255
|
] }) });
|
|
21256
21256
|
};
|
|
21257
21257
|
StatDisplay.displayName = "StatDisplay";
|
|
@@ -21409,8 +21409,8 @@ var Meter = ({
|
|
|
21409
21409
|
Box,
|
|
21410
21410
|
{
|
|
21411
21411
|
className: cn(
|
|
21412
|
-
"h-2 flex-1 rounded-
|
|
21413
|
-
!isActive && "bg-
|
|
21412
|
+
"h-2 flex-1 rounded-sm transition-all duration-300",
|
|
21413
|
+
!isActive && "bg-muted"
|
|
21414
21414
|
),
|
|
21415
21415
|
style: isActive ? { backgroundColor: segColor } : void 0
|
|
21416
21416
|
},
|
|
@@ -21425,10 +21425,10 @@ var Meter = ({
|
|
|
21425
21425
|
label && /* @__PURE__ */ jsx(Typography, { variant: "small", color: "secondary", weight: "medium", children: label }),
|
|
21426
21426
|
showValue && /* @__PURE__ */ jsx(Typography, { variant: "small", weight: "bold", className: "tabular-nums", children: displayValue })
|
|
21427
21427
|
] }),
|
|
21428
|
-
/* @__PURE__ */ jsx(Box, { className: "w-full h-3 bg-
|
|
21428
|
+
/* @__PURE__ */ jsx(Box, { className: "w-full h-3 bg-muted rounded-full overflow-hidden", children: /* @__PURE__ */ jsx(
|
|
21429
21429
|
Box,
|
|
21430
21430
|
{
|
|
21431
|
-
className: "h-full rounded-
|
|
21431
|
+
className: "h-full rounded-full transition-all duration-500 ease-out",
|
|
21432
21432
|
style: {
|
|
21433
21433
|
width: `${percentage}%`,
|
|
21434
21434
|
backgroundColor: activeColor
|
|
@@ -21614,7 +21614,7 @@ var SwipeableRow = ({
|
|
|
21614
21614
|
transition: isSwiping ? "none" : "transform 200ms ease-out"
|
|
21615
21615
|
},
|
|
21616
21616
|
className: cn(
|
|
21617
|
-
"relative bg-
|
|
21617
|
+
"relative bg-surface",
|
|
21618
21618
|
"select-none"
|
|
21619
21619
|
),
|
|
21620
21620
|
onPointerDown: handlePointerDown,
|
|
@@ -21678,8 +21678,8 @@ function SortableListInner({
|
|
|
21678
21678
|
{
|
|
21679
21679
|
className: cn(
|
|
21680
21680
|
"flex items-center justify-center",
|
|
21681
|
-
"text-
|
|
21682
|
-
"hover:text-
|
|
21681
|
+
"text-muted-foreground",
|
|
21682
|
+
"hover:text-foreground",
|
|
21683
21683
|
"transition-colors duration-100",
|
|
21684
21684
|
"px-1"
|
|
21685
21685
|
),
|
|
@@ -21697,7 +21697,7 @@ function SortableListInner({
|
|
|
21697
21697
|
showDropIndicator && /* @__PURE__ */ jsx(
|
|
21698
21698
|
Box,
|
|
21699
21699
|
{
|
|
21700
|
-
className: "h-0.5 bg-
|
|
21700
|
+
className: "h-0.5 bg-primary rounded-full",
|
|
21701
21701
|
style: { margin: "0 8px" }
|
|
21702
21702
|
}
|
|
21703
21703
|
),
|
|
@@ -21801,7 +21801,7 @@ var PullToRefresh = ({
|
|
|
21801
21801
|
{
|
|
21802
21802
|
size: pullProgress >= 0.5 ? "md" : "sm",
|
|
21803
21803
|
className: cn(
|
|
21804
|
-
"text-
|
|
21804
|
+
"text-primary",
|
|
21805
21805
|
isRefreshing && "animate-spin"
|
|
21806
21806
|
)
|
|
21807
21807
|
}
|
|
@@ -22005,14 +22005,14 @@ function DataTable({
|
|
|
22005
22005
|
Box,
|
|
22006
22006
|
{
|
|
22007
22007
|
className: cn(
|
|
22008
|
-
"bg-
|
|
22008
|
+
"bg-card border-2 border-border rounded-none overflow-hidden",
|
|
22009
22009
|
className
|
|
22010
22010
|
),
|
|
22011
22011
|
children: [
|
|
22012
|
-
(searchable || bulkActions || headerActions) && /* @__PURE__ */ jsxs(HStack, { className: "px-4 py-3 border-b-2 border-
|
|
22012
|
+
(searchable || bulkActions || headerActions) && /* @__PURE__ */ jsxs(HStack, { className: "px-4 py-3 border-b-2 border-border flex-col sm:flex-row items-stretch sm:items-center justify-between gap-4", children: [
|
|
22013
22013
|
/* @__PURE__ */ jsxs(HStack, { className: "flex-col sm:flex-row items-stretch sm:items-center gap-3", children: [
|
|
22014
22014
|
searchable && /* @__PURE__ */ jsxs(Box, { className: "relative", children: [
|
|
22015
|
-
/* @__PURE__ */ jsx(Search, { className: "absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-
|
|
22015
|
+
/* @__PURE__ */ jsx(Search, { className: "absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-muted-foreground" }),
|
|
22016
22016
|
/* @__PURE__ */ jsx(
|
|
22017
22017
|
Input,
|
|
22018
22018
|
{
|
|
@@ -22024,12 +22024,12 @@ function DataTable({
|
|
|
22024
22024
|
}
|
|
22025
22025
|
)
|
|
22026
22026
|
] }),
|
|
22027
|
-
bulkActions && selectedIds.length > 0 && /* @__PURE__ */ jsxs(HStack, { className: "items-center gap-2 pl-0 sm:pl-3 border-l-0 sm:border-l border-
|
|
22027
|
+
bulkActions && selectedIds.length > 0 && /* @__PURE__ */ jsxs(HStack, { className: "items-center gap-2 pl-0 sm:pl-3 border-l-0 sm:border-l border-border", children: [
|
|
22028
22028
|
/* @__PURE__ */ jsx(
|
|
22029
22029
|
Typography,
|
|
22030
22030
|
{
|
|
22031
22031
|
variant: "small",
|
|
22032
|
-
className: "text-
|
|
22032
|
+
className: "text-muted-foreground whitespace-nowrap",
|
|
22033
22033
|
children: t("table.bulk.selected", {
|
|
22034
22034
|
count: String(selectedIds.length)
|
|
22035
22035
|
})
|
|
@@ -22051,7 +22051,7 @@ function DataTable({
|
|
|
22051
22051
|
/* @__PURE__ */ jsx(Box, { className: "flex sm:ml-auto", children: headerActions })
|
|
22052
22052
|
] }),
|
|
22053
22053
|
/* @__PURE__ */ jsx(Box, { className: "overflow-x-auto", children: /* @__PURE__ */ jsxs("table", { className: "w-full", children: [
|
|
22054
|
-
/* @__PURE__ */ jsx("thead", { className: "bg-[var(--color-table-header)] border-b-2 border-
|
|
22054
|
+
/* @__PURE__ */ jsx("thead", { className: "bg-[var(--color-table-header)] border-b-2 border-border", children: /* @__PURE__ */ jsxs("tr", { children: [
|
|
22055
22055
|
selectable && /* @__PURE__ */ jsx("th", { className: "w-12 px-4 py-3", children: /* @__PURE__ */ jsx(
|
|
22056
22056
|
Checkbox,
|
|
22057
22057
|
{
|
|
@@ -22065,7 +22065,7 @@ function DataTable({
|
|
|
22065
22065
|
{
|
|
22066
22066
|
"data-column": String(col.key),
|
|
22067
22067
|
className: cn(
|
|
22068
|
-
"px-4 py-3 text-left text-xs font-bold text-
|
|
22068
|
+
"px-4 py-3 text-left text-xs font-bold text-foreground uppercase tracking-wider whitespace-nowrap",
|
|
22069
22069
|
col.sortable && "cursor-pointer select-none hover:bg-[var(--color-table-row-hover)]"
|
|
22070
22070
|
),
|
|
22071
22071
|
style: { width: col.width },
|
|
@@ -22090,7 +22090,7 @@ function DataTable({
|
|
|
22090
22090
|
Typography,
|
|
22091
22091
|
{
|
|
22092
22092
|
variant: "small",
|
|
22093
|
-
className: "text-
|
|
22093
|
+
className: "text-muted-foreground",
|
|
22094
22094
|
children: t("common.loading")
|
|
22095
22095
|
}
|
|
22096
22096
|
)
|
|
@@ -22100,7 +22100,7 @@ function DataTable({
|
|
|
22100
22100
|
"td",
|
|
22101
22101
|
{
|
|
22102
22102
|
colSpan: normalizedColumns.length + (selectable ? 1 : 0) + (rowActions ? 1 : 0),
|
|
22103
|
-
className: "px-4 py-12 text-center text-
|
|
22103
|
+
className: "px-4 py-12 text-center text-error",
|
|
22104
22104
|
children: [
|
|
22105
22105
|
t("error.generic") + ": ",
|
|
22106
22106
|
error.message
|
|
@@ -22128,7 +22128,7 @@ function DataTable({
|
|
|
22128
22128
|
"data-entity-row": true,
|
|
22129
22129
|
className: cn(
|
|
22130
22130
|
"border-b border-[var(--color-table-border)] last:border-0 hover:bg-[var(--color-table-row-hover)] transition-colors",
|
|
22131
|
-
selectedIds.includes(row.id) && "bg-
|
|
22131
|
+
selectedIds.includes(row.id) && "bg-primary/10 font-medium",
|
|
22132
22132
|
isRowClickable && "cursor-pointer"
|
|
22133
22133
|
),
|
|
22134
22134
|
onClick: () => isRowClickable && handleRowClick(row),
|
|
@@ -22149,7 +22149,7 @@ function DataTable({
|
|
|
22149
22149
|
"td",
|
|
22150
22150
|
{
|
|
22151
22151
|
"data-column": String(col.key),
|
|
22152
|
-
className: "px-4 py-3 text-sm text-
|
|
22152
|
+
className: "px-4 py-3 text-sm text-foreground whitespace-nowrap sm:whitespace-normal",
|
|
22153
22153
|
children: col.render ? col.render(cellValue, row, rowIndex) : (() => {
|
|
22154
22154
|
const boolVal = asBooleanValue2(cellValue);
|
|
22155
22155
|
if (boolVal !== null) {
|
|
@@ -22166,14 +22166,14 @@ function DataTable({
|
|
|
22166
22166
|
Button,
|
|
22167
22167
|
{
|
|
22168
22168
|
variant: "ghost",
|
|
22169
|
-
className: "p-1 rounded hover:bg-
|
|
22169
|
+
className: "p-1 rounded hover:bg-muted",
|
|
22170
22170
|
onClick: (e) => {
|
|
22171
22171
|
e.stopPropagation();
|
|
22172
22172
|
setOpenActionMenu(
|
|
22173
22173
|
openActionMenu === row.id ? null : row.id
|
|
22174
22174
|
);
|
|
22175
22175
|
},
|
|
22176
|
-
children: /* @__PURE__ */ jsx(MoreHorizontal, { className: "h-4 w-4 text-
|
|
22176
|
+
children: /* @__PURE__ */ jsx(MoreHorizontal, { className: "h-4 w-4 text-muted-foreground" })
|
|
22177
22177
|
}
|
|
22178
22178
|
),
|
|
22179
22179
|
openActionMenu === row.id && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
@@ -22187,7 +22187,7 @@ function DataTable({
|
|
|
22187
22187
|
}
|
|
22188
22188
|
}
|
|
22189
22189
|
),
|
|
22190
|
-
/* @__PURE__ */ jsx(VStack, { className: "absolute right-0 mt-1 w-48 bg-
|
|
22190
|
+
/* @__PURE__ */ jsx(VStack, { className: "absolute right-0 mt-1 w-48 bg-card rounded-lg shadow-lg border border-border py-1 z-50", children: (rowActions ?? []).filter(
|
|
22191
22191
|
(action) => !action.show || action.show(row)
|
|
22192
22192
|
).map((action, idx) => /* @__PURE__ */ jsxs(
|
|
22193
22193
|
Button,
|
|
@@ -22197,7 +22197,7 @@ function DataTable({
|
|
|
22197
22197
|
"data-testid": action.event ? `action-${action.event}` : void 0,
|
|
22198
22198
|
className: cn(
|
|
22199
22199
|
"w-full flex items-center gap-2 px-4 py-2 text-sm",
|
|
22200
|
-
action.variant === "danger" ? "text-
|
|
22200
|
+
action.variant === "danger" ? "text-error hover:bg-error/10" : "text-foreground hover:bg-muted"
|
|
22201
22201
|
),
|
|
22202
22202
|
onClick: (e) => {
|
|
22203
22203
|
e.stopPropagation();
|
|
@@ -22218,7 +22218,7 @@ function DataTable({
|
|
|
22218
22218
|
row.id
|
|
22219
22219
|
)) })
|
|
22220
22220
|
] }) }),
|
|
22221
|
-
totalCount !== void 0 && totalPages > 1 && /* @__PURE__ */ jsx(Box, { className: "px-4 py-3 border-t-2 border-
|
|
22221
|
+
totalCount !== void 0 && totalPages > 1 && /* @__PURE__ */ jsx(Box, { className: "px-4 py-3 border-t-2 border-border", children: /* @__PURE__ */ jsx(
|
|
22222
22222
|
Pagination,
|
|
22223
22223
|
{
|
|
22224
22224
|
currentPage,
|
|
@@ -22292,14 +22292,14 @@ function DebuggerBoard({
|
|
|
22292
22292
|
backgroundPosition: "center"
|
|
22293
22293
|
},
|
|
22294
22294
|
children: /* @__PURE__ */ jsxs(VStack, { gap: "lg", className: "p-4", children: [
|
|
22295
|
-
entity.headerImage && !headerError ? /* @__PURE__ */ jsx(Box, { className: "w-full h-32 overflow-hidden rounded-lg", children: /* @__PURE__ */ jsx("img", { src: entity.headerImage, alt: "", onError: () => setHeaderError(true), className: "w-full h-full object-cover" }) }) : entity.headerImage && headerError ? /* @__PURE__ */ jsx(Box, { className: "w-full h-32 rounded-lg bg-gradient-to-br from-
|
|
22295
|
+
entity.headerImage && !headerError ? /* @__PURE__ */ jsx(Box, { className: "w-full h-32 overflow-hidden rounded-lg", children: /* @__PURE__ */ jsx("img", { src: entity.headerImage, alt: "", onError: () => setHeaderError(true), className: "w-full h-full object-cover" }) }) : entity.headerImage && headerError ? /* @__PURE__ */ jsx(Box, { className: "w-full h-32 rounded-lg bg-gradient-to-br from-muted to-accent opacity-60" }) : null,
|
|
22296
22296
|
/* @__PURE__ */ jsx(Card, { className: "p-4", children: /* @__PURE__ */ jsxs(VStack, { gap: "sm", children: [
|
|
22297
22297
|
/* @__PURE__ */ jsxs(HStack, { gap: "xs", align: "center", children: [
|
|
22298
22298
|
/* @__PURE__ */ jsx(Icon, { icon: Bug, size: "sm" }),
|
|
22299
22299
|
/* @__PURE__ */ jsx(Typography, { variant: "h4", weight: "bold", children: entity.title })
|
|
22300
22300
|
] }),
|
|
22301
22301
|
/* @__PURE__ */ jsx(Typography, { variant: "body", children: entity.description }),
|
|
22302
|
-
/* @__PURE__ */ jsx(Typography, { variant: "caption", className: "text-
|
|
22302
|
+
/* @__PURE__ */ jsx(Typography, { variant: "caption", className: "text-muted-foreground", children: t("debugger.findBugs", { count: String(entity.bugCount) }) })
|
|
22303
22303
|
] }) }),
|
|
22304
22304
|
/* @__PURE__ */ jsx(Card, { className: "p-0 overflow-hidden", children: /* @__PURE__ */ jsx(VStack, { gap: "none", children: lines.map((line, i) => {
|
|
22305
22305
|
const isFlagged = flaggedLines.has(line.id);
|
|
@@ -22316,10 +22316,10 @@ function DebuggerBoard({
|
|
|
22316
22316
|
{
|
|
22317
22317
|
gap: "none",
|
|
22318
22318
|
align: "stretch",
|
|
22319
|
-
className: `border-b border-
|
|
22319
|
+
className: `border-b border-border cursor-pointer hover:bg-muted ${lineStyle}`,
|
|
22320
22320
|
onClick: () => toggleLine(line.id),
|
|
22321
22321
|
children: [
|
|
22322
|
-
/* @__PURE__ */ jsx(Box, { className: "w-10 flex-shrink-0 flex items-center justify-center border-r border-
|
|
22322
|
+
/* @__PURE__ */ jsx(Box, { className: "w-10 flex-shrink-0 flex items-center justify-center border-r border-border text-muted-foreground", children: /* @__PURE__ */ jsx(Typography, { variant: "caption", children: i + 1 }) }),
|
|
22323
22323
|
/* @__PURE__ */ jsx(Box, { className: "flex-1 px-3 py-1.5 font-mono text-sm whitespace-pre", children: /* @__PURE__ */ jsx(Typography, { variant: "body", className: "font-mono text-sm", children: line.content }) }),
|
|
22324
22324
|
/* @__PURE__ */ jsxs(Box, { className: "w-8 flex-shrink-0 flex items-center justify-center", children: [
|
|
22325
22325
|
isFlagged && /* @__PURE__ */ jsx(Icon, { icon: Bug, size: "xs", className: "text-red-600" }),
|
|
@@ -22343,7 +22343,7 @@ function DebuggerBoard({
|
|
|
22343
22343
|
),
|
|
22344
22344
|
/* @__PURE__ */ jsxs(VStack, { gap: "none", children: [
|
|
22345
22345
|
/* @__PURE__ */ jsx(Typography, { variant: "caption", weight: "bold", className: "font-mono", children: line.content.trim() }),
|
|
22346
|
-
line.explanation && /* @__PURE__ */ jsx(Typography, { variant: "caption", className: "text-
|
|
22346
|
+
line.explanation && /* @__PURE__ */ jsx(Typography, { variant: "caption", className: "text-muted-foreground", children: line.explanation })
|
|
22347
22347
|
] })
|
|
22348
22348
|
] }, line.id))
|
|
22349
22349
|
] }) }),
|
|
@@ -22427,7 +22427,7 @@ function renderRichFieldValue(value, fieldName, fieldType) {
|
|
|
22427
22427
|
{
|
|
22428
22428
|
src: str,
|
|
22429
22429
|
alt: formatFieldLabel(fieldName),
|
|
22430
|
-
className: "max-w-full max-h-64 rounded-
|
|
22430
|
+
className: "max-w-full max-h-64 rounded-md object-contain",
|
|
22431
22431
|
loading: "lazy"
|
|
22432
22432
|
}
|
|
22433
22433
|
) });
|
|
@@ -22438,7 +22438,7 @@ function renderRichFieldValue(value, fieldName, fieldType) {
|
|
|
22438
22438
|
case "richtext":
|
|
22439
22439
|
return /* @__PURE__ */ jsx(Suspense, { fallback: /* @__PURE__ */ jsx(Typography, { variant: "body", className: "break-words", children: str }), children: /* @__PURE__ */ jsx(Box, { className: "prose prose-sm max-w-none dark:prose-invert", children: /* @__PURE__ */ jsx(ReactMarkdown2, { children: str }) }) });
|
|
22440
22440
|
case "code":
|
|
22441
|
-
return /* @__PURE__ */ jsx(Box, { className: "mt-1 rounded-
|
|
22441
|
+
return /* @__PURE__ */ jsx(Box, { className: "mt-1 rounded-md bg-muted p-3 overflow-x-auto", children: /* @__PURE__ */ jsx("pre", { className: "text-sm font-mono whitespace-pre-wrap break-words m-0", children: /* @__PURE__ */ jsx("code", { children: str }) }) });
|
|
22442
22442
|
case "html":
|
|
22443
22443
|
return /* @__PURE__ */ jsx(Box, { className: "mt-1 prose prose-sm max-w-none dark:prose-invert break-words", children: /* @__PURE__ */ jsx(Typography, { variant: "body", children: str }) });
|
|
22444
22444
|
case "date":
|
|
@@ -22760,7 +22760,7 @@ var DetailPanel = ({
|
|
|
22760
22760
|
{
|
|
22761
22761
|
icon: field.icon,
|
|
22762
22762
|
size: "md",
|
|
22763
|
-
className: "text-
|
|
22763
|
+
className: "text-muted-foreground mt-1"
|
|
22764
22764
|
}
|
|
22765
22765
|
),
|
|
22766
22766
|
/* @__PURE__ */ jsxs(VStack, { gap: "xs", flex: true, className: "min-w-0", children: [
|
|
@@ -22786,7 +22786,7 @@ var DetailPanel = ({
|
|
|
22786
22786
|
Box,
|
|
22787
22787
|
{
|
|
22788
22788
|
className: cn(
|
|
22789
|
-
slideOver && "fixed inset-y-0 right-0 w-full max-w-2xl bg-
|
|
22789
|
+
slideOver && "fixed inset-y-0 right-0 w-full max-w-2xl bg-card shadow-lg z-50 overflow-y-auto p-6",
|
|
22790
22790
|
className
|
|
22791
22791
|
),
|
|
22792
22792
|
children: content
|
|
@@ -22918,7 +22918,7 @@ var DocumentViewer = ({
|
|
|
22918
22918
|
);
|
|
22919
22919
|
};
|
|
22920
22920
|
return /* @__PURE__ */ jsx(Card, { className: cn("overflow-hidden", className), children: /* @__PURE__ */ jsxs(VStack, { gap: "none", children: [
|
|
22921
|
-
tabItems && tabItems.length > 1 && /* @__PURE__ */ jsx(Box, { className: "border-b border-
|
|
22921
|
+
tabItems && tabItems.length > 1 && /* @__PURE__ */ jsx(Box, { className: "border-b border-border", children: /* @__PURE__ */ jsx(
|
|
22922
22922
|
Tabs,
|
|
22923
22923
|
{
|
|
22924
22924
|
tabs: tabItems,
|
|
@@ -22935,10 +22935,10 @@ var DocumentViewer = ({
|
|
|
22935
22935
|
gap: "sm",
|
|
22936
22936
|
align: "center",
|
|
22937
22937
|
justify: "between",
|
|
22938
|
-
className: "px-4 py-2 border-b border-
|
|
22938
|
+
className: "px-4 py-2 border-b border-border bg-muted/30",
|
|
22939
22939
|
children: [
|
|
22940
22940
|
/* @__PURE__ */ jsxs(HStack, { gap: "sm", align: "center", children: [
|
|
22941
|
-
/* @__PURE__ */ jsx(Icon, { icon: FileText, size: "sm", className: "text-
|
|
22941
|
+
/* @__PURE__ */ jsx(Icon, { icon: FileText, size: "sm", className: "text-muted-foreground" }),
|
|
22942
22942
|
title && /* @__PURE__ */ jsx(Typography, { variant: "small", weight: "medium", className: "truncate max-w-[200px]", children: title })
|
|
22943
22943
|
] }),
|
|
22944
22944
|
/* @__PURE__ */ jsxs(HStack, { gap: "xs", align: "center", children: [
|
|
@@ -22949,7 +22949,7 @@ var DocumentViewer = ({
|
|
|
22949
22949
|
] }),
|
|
22950
22950
|
/* @__PURE__ */ jsx(Button, { variant: "ghost", size: "sm", icon: ZoomIn, onClick: handleZoomIn }),
|
|
22951
22951
|
totalPages && totalPages > 1 && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
22952
|
-
/* @__PURE__ */ jsx(Box, { className: "w-px h-4 bg-
|
|
22952
|
+
/* @__PURE__ */ jsx(Box, { className: "w-px h-4 bg-border mx-1" }),
|
|
22953
22953
|
/* @__PURE__ */ jsx(Button, { variant: "ghost", size: "sm", icon: ChevronLeft, onClick: handlePagePrev, disabled: currentPage <= 1 }),
|
|
22954
22954
|
/* @__PURE__ */ jsxs(Typography, { variant: "caption", color: "secondary", className: "tabular-nums", children: [
|
|
22955
22955
|
currentPage,
|
|
@@ -22958,7 +22958,7 @@ var DocumentViewer = ({
|
|
|
22958
22958
|
] }),
|
|
22959
22959
|
/* @__PURE__ */ jsx(Button, { variant: "ghost", size: "sm", icon: ChevronRight, onClick: handlePageNext, disabled: currentPage >= totalPages })
|
|
22960
22960
|
] }),
|
|
22961
|
-
/* @__PURE__ */ jsx(Box, { className: "w-px h-4 bg-
|
|
22961
|
+
/* @__PURE__ */ jsx(Box, { className: "w-px h-4 bg-border mx-1" }),
|
|
22962
22962
|
showDownload && /* @__PURE__ */ jsx(Button, { variant: "ghost", size: "sm", icon: Download, onClick: handleDownload }),
|
|
22963
22963
|
showPrint && /* @__PURE__ */ jsx(Button, { variant: "ghost", size: "sm", icon: Printer, onClick: handlePrint }),
|
|
22964
22964
|
actions?.map((action, idx) => /* @__PURE__ */ jsx(
|
|
@@ -22975,7 +22975,7 @@ var DocumentViewer = ({
|
|
|
22975
22975
|
]
|
|
22976
22976
|
}
|
|
22977
22977
|
),
|
|
22978
|
-
/* @__PURE__ */ jsx(Box, { className: "w-full overflow-hidden bg-
|
|
22978
|
+
/* @__PURE__ */ jsx(Box, { className: "w-full overflow-hidden bg-muted/20", children: renderContent() })
|
|
22979
22979
|
] }) });
|
|
22980
22980
|
};
|
|
22981
22981
|
DocumentViewer.displayName = "DocumentViewer";
|
|
@@ -23519,7 +23519,7 @@ function EventHandlerBoard({
|
|
|
23519
23519
|
backgroundPosition: "center"
|
|
23520
23520
|
},
|
|
23521
23521
|
children: [
|
|
23522
|
-
entity.headerImage && !headerError ? /* @__PURE__ */ jsx(Box, { className: "w-full h-32 overflow-hidden rounded-lg", children: /* @__PURE__ */ jsx("img", { src: entity.headerImage, alt: "", onError: () => setHeaderError(true), className: "w-full h-full object-cover" }) }) : entity.headerImage && headerError ? /* @__PURE__ */ jsx(Box, { className: "w-full h-32 rounded-lg bg-gradient-to-br from-
|
|
23522
|
+
entity.headerImage && !headerError ? /* @__PURE__ */ jsx(Box, { className: "w-full h-32 overflow-hidden rounded-lg", children: /* @__PURE__ */ jsx("img", { src: entity.headerImage, alt: "", onError: () => setHeaderError(true), className: "w-full h-full object-cover" }) }) : entity.headerImage && headerError ? /* @__PURE__ */ jsx(Box, { className: "w-full h-32 rounded-lg bg-gradient-to-br from-muted to-accent opacity-60" }) : null,
|
|
23523
23523
|
/* @__PURE__ */ jsxs(VStack, { gap: "xs", children: [
|
|
23524
23524
|
/* @__PURE__ */ jsx(Typography, { variant: "h4", className: "text-foreground", children: entity.title }),
|
|
23525
23525
|
/* @__PURE__ */ jsx(Typography, { variant: "body2", className: "text-muted-foreground", children: entity.description }),
|
|
@@ -23906,8 +23906,8 @@ var Form = ({
|
|
|
23906
23906
|
Box,
|
|
23907
23907
|
{
|
|
23908
23908
|
className: cn(
|
|
23909
|
-
"px-4 py-3 bg-
|
|
23910
|
-
section.collapsible && "cursor-pointer hover:bg-
|
|
23909
|
+
"px-4 py-3 bg-muted flex items-center justify-between",
|
|
23910
|
+
section.collapsible && "cursor-pointer hover:bg-muted/80"
|
|
23911
23911
|
),
|
|
23912
23912
|
onClick: section.collapsible ? () => toggleSection(section.id) : void 0,
|
|
23913
23913
|
children: [
|
|
@@ -23918,7 +23918,7 @@ var Form = ({
|
|
|
23918
23918
|
name: "chevron-down",
|
|
23919
23919
|
size: "md",
|
|
23920
23920
|
className: cn(
|
|
23921
|
-
"text-
|
|
23921
|
+
"text-muted-foreground transition-transform",
|
|
23922
23922
|
isCollapsed && "rotate-180"
|
|
23923
23923
|
)
|
|
23924
23924
|
}
|
|
@@ -24568,7 +24568,7 @@ var GameTemplate = ({
|
|
|
24568
24568
|
{
|
|
24569
24569
|
padding: "md",
|
|
24570
24570
|
border: true,
|
|
24571
|
-
className: "border-b-2 border-x-0 border-t-0 border-
|
|
24571
|
+
className: "border-b-2 border-x-0 border-t-0 border-border flex items-center justify-between",
|
|
24572
24572
|
children: [
|
|
24573
24573
|
/* @__PURE__ */ jsx(Typography, { variant: "h4", children: title }),
|
|
24574
24574
|
controls && /* @__PURE__ */ jsxs(HStack, { gap: "sm", align: "center", children: [
|
|
@@ -24610,7 +24610,7 @@ var GameTemplate = ({
|
|
|
24610
24610
|
{
|
|
24611
24611
|
position: "relative",
|
|
24612
24612
|
fullWidth: true,
|
|
24613
|
-
className: "flex-1 bg-
|
|
24613
|
+
className: "flex-1 bg-muted",
|
|
24614
24614
|
children: [
|
|
24615
24615
|
children,
|
|
24616
24616
|
hud && /* @__PURE__ */ jsx(
|
|
@@ -24632,14 +24632,14 @@ var GameTemplate = ({
|
|
|
24632
24632
|
border: true,
|
|
24633
24633
|
shadow: "sm",
|
|
24634
24634
|
overflow: "auto",
|
|
24635
|
-
className: "w-full lg:w-80 lg:border-l-2 lg:border-t-0 border-t-2 border-
|
|
24635
|
+
className: "w-full lg:w-80 lg:border-l-2 lg:border-t-0 border-t-2 border-border",
|
|
24636
24636
|
children: [
|
|
24637
24637
|
/* @__PURE__ */ jsx(
|
|
24638
24638
|
Box,
|
|
24639
24639
|
{
|
|
24640
24640
|
padding: "md",
|
|
24641
24641
|
border: true,
|
|
24642
|
-
className: "border-b-2 border-x-0 border-t-0 border-
|
|
24642
|
+
className: "border-b-2 border-x-0 border-t-0 border-border",
|
|
24643
24643
|
children: /* @__PURE__ */ jsx(Typography, { variant: "h6", children: "Debug Panel" })
|
|
24644
24644
|
}
|
|
24645
24645
|
),
|
|
@@ -24667,7 +24667,7 @@ var GenericAppTemplate = ({
|
|
|
24667
24667
|
{
|
|
24668
24668
|
padding: "md",
|
|
24669
24669
|
border: true,
|
|
24670
|
-
className: "border-b-2 border-x-0 border-t-0 border-
|
|
24670
|
+
className: "border-b-2 border-x-0 border-t-0 border-border flex items-center justify-between flex-shrink-0",
|
|
24671
24671
|
children: [
|
|
24672
24672
|
/* @__PURE__ */ jsxs(Box, { children: [
|
|
24673
24673
|
/* @__PURE__ */ jsx(Typography, { variant: "h3", children: title }),
|
|
@@ -24684,7 +24684,7 @@ var GenericAppTemplate = ({
|
|
|
24684
24684
|
padding: "md",
|
|
24685
24685
|
border: true,
|
|
24686
24686
|
bg: "muted",
|
|
24687
|
-
className: "border-t-2 border-x-0 border-b-0 border-
|
|
24687
|
+
className: "border-t-2 border-x-0 border-b-0 border-border flex-shrink-0",
|
|
24688
24688
|
children: footer
|
|
24689
24689
|
}
|
|
24690
24690
|
)
|
|
@@ -24932,7 +24932,7 @@ var GraphCanvas = ({
|
|
|
24932
24932
|
gap: "sm",
|
|
24933
24933
|
align: "center",
|
|
24934
24934
|
justify: "between",
|
|
24935
|
-
className: "px-4 py-2 border-b border-
|
|
24935
|
+
className: "px-4 py-2 border-b border-border",
|
|
24936
24936
|
children: [
|
|
24937
24937
|
title && /* @__PURE__ */ jsx(Typography, { variant: "h6", weight: "semibold", children: title }),
|
|
24938
24938
|
/* @__PURE__ */ jsxs(HStack, { gap: "xs", align: "center", children: [
|
|
@@ -24955,7 +24955,7 @@ var GraphCanvas = ({
|
|
|
24955
24955
|
]
|
|
24956
24956
|
}
|
|
24957
24957
|
),
|
|
24958
|
-
/* @__PURE__ */ jsx(Box, { className: "w-full bg-
|
|
24958
|
+
/* @__PURE__ */ jsx(Box, { className: "w-full bg-background", children: /* @__PURE__ */ jsx(
|
|
24959
24959
|
"canvas",
|
|
24960
24960
|
{
|
|
24961
24961
|
ref: canvasRef,
|
|
@@ -24979,11 +24979,11 @@ var GraphCanvas = ({
|
|
|
24979
24979
|
}
|
|
24980
24980
|
}
|
|
24981
24981
|
) }),
|
|
24982
|
-
groups.length > 1 && /* @__PURE__ */ jsx(HStack, { gap: "md", className: "px-4 py-2 border-t border-
|
|
24982
|
+
groups.length > 1 && /* @__PURE__ */ jsx(HStack, { gap: "md", className: "px-4 py-2 border-t border-border", wrap: true, children: groups.map((group, idx) => /* @__PURE__ */ jsxs(HStack, { gap: "xs", align: "center", children: [
|
|
24983
24983
|
/* @__PURE__ */ jsx(
|
|
24984
24984
|
Box,
|
|
24985
24985
|
{
|
|
24986
|
-
className: "w-3 h-3 rounded-
|
|
24986
|
+
className: "w-3 h-3 rounded-full flex-shrink-0",
|
|
24987
24987
|
style: { backgroundColor: GROUP_COLORS2[idx % GROUP_COLORS2.length] }
|
|
24988
24988
|
}
|
|
24989
24989
|
),
|
|
@@ -25020,8 +25020,8 @@ var Header = ({
|
|
|
25020
25020
|
{
|
|
25021
25021
|
as: "header",
|
|
25022
25022
|
className: cn(
|
|
25023
|
-
"h-16 border-b border-
|
|
25024
|
-
"flex items-center px-4 justify-between bg-
|
|
25023
|
+
"h-16 border-b border-border",
|
|
25024
|
+
"flex items-center px-4 justify-between bg-card",
|
|
25025
25025
|
sticky && "sticky top-0 z-50",
|
|
25026
25026
|
variant === "mobile" && "lg:hidden",
|
|
25027
25027
|
className
|
|
@@ -25033,7 +25033,7 @@ var Header = ({
|
|
|
25033
25033
|
{
|
|
25034
25034
|
variant: "ghost",
|
|
25035
25035
|
onClick: onMenuToggle,
|
|
25036
|
-
className: "p-2 -ml-2 text-
|
|
25036
|
+
className: "p-2 -ml-2 text-foreground hover:bg-muted transition-colors",
|
|
25037
25037
|
"aria-label": isMenuOpen ? "Close menu" : "Open menu",
|
|
25038
25038
|
children: isMenuOpen ? /* @__PURE__ */ jsx(X, { size: 24 }) : /* @__PURE__ */ jsx(Menu$1, { size: 24 })
|
|
25039
25039
|
}
|
|
@@ -25054,7 +25054,7 @@ var Header = ({
|
|
|
25054
25054
|
Typography,
|
|
25055
25055
|
{
|
|
25056
25056
|
variant: "h5",
|
|
25057
|
-
className: "text-lg font-bold text-
|
|
25057
|
+
className: "text-lg font-bold text-foreground",
|
|
25058
25058
|
children: brandName
|
|
25059
25059
|
}
|
|
25060
25060
|
)
|
|
@@ -25073,8 +25073,8 @@ var Header = ({
|
|
|
25073
25073
|
variant: "ghost",
|
|
25074
25074
|
onClick: item.onClick,
|
|
25075
25075
|
className: cn(
|
|
25076
|
-
"flex items-center gap-2 px-3 py-2 rounded-
|
|
25077
|
-
item.active ? "bg-
|
|
25076
|
+
"flex items-center gap-2 px-3 py-2 rounded-lg transition-colors",
|
|
25077
|
+
item.active ? "bg-primary/10 text-primary" : "text-muted-foreground hover:bg-muted hover:text-foreground"
|
|
25078
25078
|
),
|
|
25079
25079
|
children: [
|
|
25080
25080
|
item.icon && /* @__PURE__ */ jsx(item.icon, { size: 18 }),
|
|
@@ -25095,9 +25095,9 @@ var Header = ({
|
|
|
25095
25095
|
variant: "ghost",
|
|
25096
25096
|
onClick: onUserClick,
|
|
25097
25097
|
className: cn(
|
|
25098
|
-
"w-8 h-8 rounded-
|
|
25099
|
-
"text-
|
|
25100
|
-
"hover:ring-2 hover:ring-
|
|
25098
|
+
"w-8 h-8 rounded-full bg-primary/10 flex items-center justify-center",
|
|
25099
|
+
"text-primary font-bold text-xs",
|
|
25100
|
+
"hover:ring-2 hover:ring-ring transition-all",
|
|
25101
25101
|
onUserClick && "cursor-pointer"
|
|
25102
25102
|
),
|
|
25103
25103
|
children: userAvatar?.src ? /* @__PURE__ */ jsx(
|
|
@@ -25122,52 +25122,52 @@ function normalizeFields2(fields) {
|
|
|
25122
25122
|
}
|
|
25123
25123
|
var STATUS_STYLES2 = {
|
|
25124
25124
|
complete: {
|
|
25125
|
-
bg: "bg-
|
|
25126
|
-
text: "text-
|
|
25127
|
-
dot: "bg-
|
|
25128
|
-
border: "border-
|
|
25125
|
+
bg: "bg-success/10",
|
|
25126
|
+
text: "text-success",
|
|
25127
|
+
dot: "bg-success ring-4 ring-success/20",
|
|
25128
|
+
border: "border-success/30"
|
|
25129
25129
|
},
|
|
25130
25130
|
active: {
|
|
25131
|
-
bg: "bg-
|
|
25132
|
-
text: "text-
|
|
25133
|
-
dot: "bg-
|
|
25134
|
-
border: "border-
|
|
25131
|
+
bg: "bg-info/10",
|
|
25132
|
+
text: "text-info",
|
|
25133
|
+
dot: "bg-info ring-4 ring-info/20",
|
|
25134
|
+
border: "border-info/30"
|
|
25135
25135
|
},
|
|
25136
25136
|
pending: {
|
|
25137
|
-
bg: "bg-
|
|
25138
|
-
text: "text-
|
|
25139
|
-
dot: "bg-
|
|
25140
|
-
border: "border-
|
|
25137
|
+
bg: "bg-warning/10",
|
|
25138
|
+
text: "text-warning",
|
|
25139
|
+
dot: "bg-warning ring-4 ring-warning/20",
|
|
25140
|
+
border: "border-warning/30"
|
|
25141
25141
|
},
|
|
25142
25142
|
blocked: {
|
|
25143
|
-
bg: "bg-
|
|
25144
|
-
text: "text-
|
|
25145
|
-
dot: "bg-
|
|
25146
|
-
border: "border-
|
|
25143
|
+
bg: "bg-error/10",
|
|
25144
|
+
text: "text-error",
|
|
25145
|
+
dot: "bg-error ring-4 ring-error/20",
|
|
25146
|
+
border: "border-error/30"
|
|
25147
25147
|
},
|
|
25148
25148
|
high: {
|
|
25149
|
-
bg: "bg-
|
|
25150
|
-
text: "text-
|
|
25151
|
-
dot: "bg-
|
|
25152
|
-
border: "border-
|
|
25149
|
+
bg: "bg-warning/10",
|
|
25150
|
+
text: "text-warning",
|
|
25151
|
+
dot: "bg-warning ring-4 ring-warning/20",
|
|
25152
|
+
border: "border-warning/30"
|
|
25153
25153
|
},
|
|
25154
25154
|
medium: {
|
|
25155
|
-
bg: "bg-
|
|
25156
|
-
text: "text-
|
|
25157
|
-
dot: "bg-
|
|
25158
|
-
border: "border-
|
|
25155
|
+
bg: "bg-accent/10",
|
|
25156
|
+
text: "text-accent",
|
|
25157
|
+
dot: "bg-accent ring-4 ring-accent/20",
|
|
25158
|
+
border: "border-accent/30"
|
|
25159
25159
|
},
|
|
25160
25160
|
low: {
|
|
25161
|
-
bg: "bg-
|
|
25162
|
-
text: "text-
|
|
25163
|
-
dot: "bg-
|
|
25164
|
-
border: "border-
|
|
25161
|
+
bg: "bg-muted",
|
|
25162
|
+
text: "text-muted-foreground",
|
|
25163
|
+
dot: "bg-muted-foreground ring-4 ring-muted-foreground/20",
|
|
25164
|
+
border: "border-border"
|
|
25165
25165
|
},
|
|
25166
25166
|
default: {
|
|
25167
|
-
bg: "bg-
|
|
25168
|
-
text: "text-
|
|
25169
|
-
dot: "bg-
|
|
25170
|
-
border: "border-
|
|
25167
|
+
bg: "bg-muted",
|
|
25168
|
+
text: "text-muted-foreground",
|
|
25169
|
+
dot: "bg-muted-foreground ring-4 ring-muted-foreground/20",
|
|
25170
|
+
border: "border-border"
|
|
25171
25171
|
}
|
|
25172
25172
|
};
|
|
25173
25173
|
function getStatusStyle(fieldName, value) {
|
|
@@ -25227,8 +25227,8 @@ var StatusBadge = ({
|
|
|
25227
25227
|
{
|
|
25228
25228
|
as: "span",
|
|
25229
25229
|
className: cn(
|
|
25230
|
-
"inline-flex items-center gap-2 px-2.5 py-1 rounded-
|
|
25231
|
-
"border shadow-
|
|
25230
|
+
"inline-flex items-center gap-2 px-2.5 py-1 rounded-full text-xs font-semibold tracking-wide",
|
|
25231
|
+
"border shadow-sm backdrop-blur-sm transition-colors",
|
|
25232
25232
|
style.bg,
|
|
25233
25233
|
style.text,
|
|
25234
25234
|
style.border
|
|
@@ -25239,7 +25239,7 @@ var StatusBadge = ({
|
|
|
25239
25239
|
{
|
|
25240
25240
|
as: "span",
|
|
25241
25241
|
className: cn(
|
|
25242
|
-
"w-1.5 h-1.5 rounded-
|
|
25242
|
+
"w-1.5 h-1.5 rounded-full shadow-sm",
|
|
25243
25243
|
style.dot
|
|
25244
25244
|
)
|
|
25245
25245
|
}
|
|
@@ -25252,12 +25252,12 @@ var StatusBadge = ({
|
|
|
25252
25252
|
var ProgressIndicator = ({ value }) => {
|
|
25253
25253
|
const clampedValue = Math.min(100, Math.max(0, value));
|
|
25254
25254
|
return /* @__PURE__ */ jsxs(Box, { className: "flex items-center gap-2 min-w-[100px]", children: [
|
|
25255
|
-
/* @__PURE__ */ jsx(Box, { className: "flex-1 h-1.5 bg-
|
|
25255
|
+
/* @__PURE__ */ jsx(Box, { className: "flex-1 h-1.5 bg-muted rounded-full overflow-hidden", children: /* @__PURE__ */ jsx(
|
|
25256
25256
|
Box,
|
|
25257
25257
|
{
|
|
25258
25258
|
className: cn(
|
|
25259
|
-
"h-full rounded-
|
|
25260
|
-
clampedValue >= 100 ? "bg-
|
|
25259
|
+
"h-full rounded-full transition-all duration-500",
|
|
25260
|
+
clampedValue >= 100 ? "bg-success" : clampedValue >= 70 ? "bg-info" : clampedValue >= 40 ? "bg-warning" : "bg-muted-foreground"
|
|
25261
25261
|
),
|
|
25262
25262
|
style: { width: `${clampedValue}%` }
|
|
25263
25263
|
}
|
|
@@ -25266,7 +25266,7 @@ var ProgressIndicator = ({ value }) => {
|
|
|
25266
25266
|
Typography,
|
|
25267
25267
|
{
|
|
25268
25268
|
as: "span",
|
|
25269
|
-
className: "text-xs font-medium text-
|
|
25269
|
+
className: "text-xs font-medium text-muted-foreground tabular-nums w-8 text-right",
|
|
25270
25270
|
children: [
|
|
25271
25271
|
clampedValue,
|
|
25272
25272
|
"%"
|
|
@@ -25430,9 +25430,9 @@ var List2 = ({
|
|
|
25430
25430
|
"transition-all duration-300 ease-out",
|
|
25431
25431
|
hasExplicitClick && "cursor-pointer",
|
|
25432
25432
|
// Hover state
|
|
25433
|
-
"hover:bg-
|
|
25433
|
+
"hover:bg-muted/80",
|
|
25434
25434
|
// Selected state
|
|
25435
|
-
isSelected && "bg-
|
|
25435
|
+
isSelected && "bg-primary/10 shadow-inner",
|
|
25436
25436
|
item.disabled && "opacity-50 cursor-not-allowed grayscale"
|
|
25437
25437
|
),
|
|
25438
25438
|
action: rowAction,
|
|
@@ -25451,7 +25451,7 @@ var List2 = ({
|
|
|
25451
25451
|
onChange: (e) => handleSelect(item.id, e.target.checked),
|
|
25452
25452
|
className: cn(
|
|
25453
25453
|
"transition-transform active:scale-95",
|
|
25454
|
-
isSelected ? "border-
|
|
25454
|
+
isSelected ? "border-primary bg-primary" : "border-border"
|
|
25455
25455
|
)
|
|
25456
25456
|
}
|
|
25457
25457
|
)
|
|
@@ -25464,9 +25464,9 @@ var List2 = ({
|
|
|
25464
25464
|
{
|
|
25465
25465
|
as: "h3",
|
|
25466
25466
|
className: cn(
|
|
25467
|
-
"text-[15px] font-semibold text-
|
|
25467
|
+
"text-[15px] font-semibold text-foreground truncate flex-1",
|
|
25468
25468
|
"tracking-tight leading-snug",
|
|
25469
|
-
item.completed && "line-through text-
|
|
25469
|
+
item.completed && "line-through text-muted-foreground"
|
|
25470
25470
|
),
|
|
25471
25471
|
children: item.title || "Untitled"
|
|
25472
25472
|
}
|
|
@@ -25488,7 +25488,7 @@ var List2 = ({
|
|
|
25488
25488
|
)
|
|
25489
25489
|
] })
|
|
25490
25490
|
] }),
|
|
25491
|
-
/* @__PURE__ */ jsxs(HStack, { className: "flex items-center gap-6 text-[13px] font-medium text-
|
|
25491
|
+
/* @__PURE__ */ jsxs(HStack, { className: "flex items-center gap-6 text-[13px] font-medium text-muted-foreground", children: [
|
|
25492
25492
|
dateFields.slice(0, 1).map((field) => {
|
|
25493
25493
|
const value = item._fields?.[field];
|
|
25494
25494
|
if (!value) return null;
|
|
@@ -25496,7 +25496,7 @@ var List2 = ({
|
|
|
25496
25496
|
Typography,
|
|
25497
25497
|
{
|
|
25498
25498
|
as: "span",
|
|
25499
|
-
className: "flex items-center gap-2 text-
|
|
25499
|
+
className: "flex items-center gap-2 text-muted-foreground group-hover:text-foreground transition-colors",
|
|
25500
25500
|
children: [
|
|
25501
25501
|
/* @__PURE__ */ jsx(Calendar, { className: "w-3.5 h-3.5" }),
|
|
25502
25502
|
/* @__PURE__ */ jsx(Typography, { as: "span", children: formatValue4(value, field) })
|
|
@@ -25512,13 +25512,13 @@ var List2 = ({
|
|
|
25512
25512
|
Typography,
|
|
25513
25513
|
{
|
|
25514
25514
|
as: "span",
|
|
25515
|
-
className: "truncate flex items-center gap-1.5 text-
|
|
25515
|
+
className: "truncate flex items-center gap-1.5 text-muted-foreground",
|
|
25516
25516
|
children: [
|
|
25517
25517
|
/* @__PURE__ */ jsxs(Typography, { as: "span", className: "opacity-75", children: [
|
|
25518
25518
|
formatFieldLabel2(field),
|
|
25519
25519
|
":"
|
|
25520
25520
|
] }),
|
|
25521
|
-
/* @__PURE__ */ jsx(Typography, { as: "span", className: "text-
|
|
25521
|
+
/* @__PURE__ */ jsx(Typography, { as: "span", className: "text-foreground", children: formatValue4(value, field) })
|
|
25522
25522
|
]
|
|
25523
25523
|
},
|
|
25524
25524
|
field
|
|
@@ -25541,9 +25541,9 @@ var List2 = ({
|
|
|
25541
25541
|
variant: "ghost",
|
|
25542
25542
|
action: editAction.event,
|
|
25543
25543
|
className: cn(
|
|
25544
|
-
"p-2 rounded-
|
|
25545
|
-
"hover:bg-
|
|
25546
|
-
"text-
|
|
25544
|
+
"p-2 rounded-lg transition-all duration-200",
|
|
25545
|
+
"hover:bg-primary/10 hover:text-primary",
|
|
25546
|
+
"text-muted-foreground",
|
|
25547
25547
|
"active:scale-95"
|
|
25548
25548
|
),
|
|
25549
25549
|
title: editAction.label,
|
|
@@ -25557,9 +25557,9 @@ var List2 = ({
|
|
|
25557
25557
|
variant: "ghost",
|
|
25558
25558
|
action: viewAction.event,
|
|
25559
25559
|
className: cn(
|
|
25560
|
-
"p-2 rounded-
|
|
25561
|
-
"hover:bg-
|
|
25562
|
-
"text-
|
|
25560
|
+
"p-2 rounded-lg transition-all duration-200",
|
|
25561
|
+
"hover:bg-muted hover:text-foreground",
|
|
25562
|
+
"text-muted-foreground",
|
|
25563
25563
|
"active:scale-95"
|
|
25564
25564
|
),
|
|
25565
25565
|
title: viewAction.label,
|
|
@@ -25579,9 +25579,9 @@ var List2 = ({
|
|
|
25579
25579
|
{
|
|
25580
25580
|
variant: "ghost",
|
|
25581
25581
|
className: cn(
|
|
25582
|
-
"p-2 rounded-
|
|
25583
|
-
"hover:bg-
|
|
25584
|
-
"text-
|
|
25582
|
+
"p-2 rounded-lg transition-all duration-200",
|
|
25583
|
+
"hover:bg-muted hover:shadow-sm",
|
|
25584
|
+
"text-muted-foreground hover:text-foreground",
|
|
25585
25585
|
"active:scale-95"
|
|
25586
25586
|
),
|
|
25587
25587
|
children: /* @__PURE__ */ jsx(MoreHorizontal, { className: "w-4 h-4" })
|
|
@@ -25592,14 +25592,14 @@ var List2 = ({
|
|
|
25592
25592
|
}
|
|
25593
25593
|
) : null;
|
|
25594
25594
|
})(),
|
|
25595
|
-
hasExplicitClick && /* @__PURE__ */ jsx(ChevronRight, { className: "w-4 h-4 text-
|
|
25595
|
+
hasExplicitClick && /* @__PURE__ */ jsx(ChevronRight, { className: "w-4 h-4 text-muted-foreground/50 group-hover:text-muted-foreground group-hover:translate-x-0.5 transition-all" })
|
|
25596
25596
|
]
|
|
25597
25597
|
}
|
|
25598
25598
|
)
|
|
25599
25599
|
]
|
|
25600
25600
|
}
|
|
25601
25601
|
),
|
|
25602
|
-
!isLast && /* @__PURE__ */ jsx(Box, { className: "ml-[calc(1.5rem)] mr-6 border-b border-
|
|
25602
|
+
!isLast && /* @__PURE__ */ jsx(Box, { className: "ml-[calc(1.5rem)] mr-6 border-b border-border/40" })
|
|
25603
25603
|
] }, item.id);
|
|
25604
25604
|
};
|
|
25605
25605
|
if (safeItems.length === 0) {
|
|
@@ -25618,11 +25618,11 @@ var List2 = ({
|
|
|
25618
25618
|
{
|
|
25619
25619
|
className: cn(
|
|
25620
25620
|
// Container with refined styling
|
|
25621
|
-
"bg-
|
|
25622
|
-
"rounded-
|
|
25621
|
+
"bg-card backdrop-blur-sm",
|
|
25622
|
+
"rounded-xl",
|
|
25623
25623
|
// Increased rounding
|
|
25624
|
-
"border border-
|
|
25625
|
-
"shadow-
|
|
25624
|
+
"border border-border",
|
|
25625
|
+
"shadow-lg",
|
|
25626
25626
|
// Softer, improved shadow
|
|
25627
25627
|
"overflow-hidden",
|
|
25628
25628
|
className
|
|
@@ -25634,11 +25634,11 @@ var List2 = ({
|
|
|
25634
25634
|
);
|
|
25635
25635
|
};
|
|
25636
25636
|
List2.displayName = "List";
|
|
25637
|
-
var DefaultEmptyDetail = () => /* @__PURE__ */ jsx("div", { className: "flex items-center justify-center h-full border-2 border-dashed border-
|
|
25637
|
+
var DefaultEmptyDetail = () => /* @__PURE__ */ jsx("div", { className: "flex items-center justify-center h-full border-2 border-dashed border-border", children: /* @__PURE__ */ jsx(
|
|
25638
25638
|
Typography,
|
|
25639
25639
|
{
|
|
25640
25640
|
variant: "body2",
|
|
25641
|
-
className: "text-
|
|
25641
|
+
className: "text-muted-foreground",
|
|
25642
25642
|
children: "Select an item to view details"
|
|
25643
25643
|
}
|
|
25644
25644
|
) });
|
|
@@ -25666,7 +25666,7 @@ var MasterDetail = ({
|
|
|
25666
25666
|
"div",
|
|
25667
25667
|
{
|
|
25668
25668
|
className: cn(
|
|
25669
|
-
"border-r-2 border-
|
|
25669
|
+
"border-r-2 border-border overflow-auto",
|
|
25670
25670
|
masterClassName
|
|
25671
25671
|
),
|
|
25672
25672
|
children: master
|
|
@@ -25802,9 +25802,9 @@ var MediaGallery = ({
|
|
|
25802
25802
|
Box,
|
|
25803
25803
|
{
|
|
25804
25804
|
className: cn(
|
|
25805
|
-
"group relative overflow-hidden rounded-
|
|
25805
|
+
"group relative overflow-hidden rounded-md cursor-pointer",
|
|
25806
25806
|
"border-2 transition-all duration-200",
|
|
25807
|
-
isSelected ? "border-
|
|
25807
|
+
isSelected ? "border-primary ring-2 ring-primary/30" : "border-transparent hover:border-border",
|
|
25808
25808
|
ASPECT_CLASSES[aspectRatio]
|
|
25809
25809
|
),
|
|
25810
25810
|
onClick: () => handleItemClick(item),
|
|
@@ -25822,7 +25822,7 @@ var MediaGallery = ({
|
|
|
25822
25822
|
Box,
|
|
25823
25823
|
{
|
|
25824
25824
|
className: cn(
|
|
25825
|
-
"absolute inset-0 bg-
|
|
25825
|
+
"absolute inset-0 bg-foreground/0 group-hover:bg-foreground/20",
|
|
25826
25826
|
"transition-colors duration-200 flex items-center justify-center"
|
|
25827
25827
|
),
|
|
25828
25828
|
children: /* @__PURE__ */ jsx(
|
|
@@ -25836,7 +25836,7 @@ var MediaGallery = ({
|
|
|
25836
25836
|
}
|
|
25837
25837
|
),
|
|
25838
25838
|
item.caption && /* @__PURE__ */ jsx(Box, { className: "absolute bottom-0 left-0 right-0 p-2 bg-gradient-to-t from-black/60 to-transparent", children: /* @__PURE__ */ jsx(Typography, { variant: "caption", className: "text-white truncate", children: item.caption }) }),
|
|
25839
|
-
selectable && isSelected && /* @__PURE__ */ jsx(Box, { className: "absolute top-2 right-2 w-5 h-5 rounded-
|
|
25839
|
+
selectable && isSelected && /* @__PURE__ */ jsx(Box, { className: "absolute top-2 right-2 w-5 h-5 rounded-full bg-primary flex items-center justify-center", children: /* @__PURE__ */ jsx(Typography, { variant: "caption", className: "text-white text-[10px]", children: "\u2713" }) })
|
|
25840
25840
|
]
|
|
25841
25841
|
},
|
|
25842
25842
|
item.id
|
|
@@ -25848,7 +25848,7 @@ var MediaGallery = ({
|
|
|
25848
25848
|
lightboxItem && /* @__PURE__ */ jsx(
|
|
25849
25849
|
Box,
|
|
25850
25850
|
{
|
|
25851
|
-
className: "fixed inset-0 z-50 bg-
|
|
25851
|
+
className: "fixed inset-0 z-50 bg-background/80 backdrop-blur-sm flex items-center justify-center",
|
|
25852
25852
|
action: "LIGHTBOX_CLOSE",
|
|
25853
25853
|
children: /* @__PURE__ */ jsxs(
|
|
25854
25854
|
VStack,
|
|
@@ -25873,7 +25873,7 @@ var MediaGallery = ({
|
|
|
25873
25873
|
{
|
|
25874
25874
|
src: lightboxItem.src,
|
|
25875
25875
|
alt: lightboxItem.alt || lightboxItem.caption || "",
|
|
25876
|
-
className: "max-w-full max-h-[80vh] object-contain rounded-
|
|
25876
|
+
className: "max-w-full max-h-[80vh] object-contain rounded-md"
|
|
25877
25877
|
}
|
|
25878
25878
|
),
|
|
25879
25879
|
lightboxItem.caption && /* @__PURE__ */ jsx(Typography, { variant: "body", className: "text-white mt-3 text-center", children: lightboxItem.caption })
|
|
@@ -26064,7 +26064,7 @@ function NegotiatorBoard({
|
|
|
26064
26064
|
backgroundPosition: "center"
|
|
26065
26065
|
},
|
|
26066
26066
|
children: /* @__PURE__ */ jsxs(VStack, { gap: "lg", className: "p-4", children: [
|
|
26067
|
-
entity.headerImage && !headerError ? /* @__PURE__ */ jsx(Box, { className: "w-full h-32 overflow-hidden rounded-lg", children: /* @__PURE__ */ jsx("img", { src: entity.headerImage, alt: "", onError: () => setHeaderError(true), className: "w-full h-full object-cover" }) }) : entity.headerImage && headerError ? /* @__PURE__ */ jsx(Box, { className: "w-full h-32 rounded-lg bg-gradient-to-br from-
|
|
26067
|
+
entity.headerImage && !headerError ? /* @__PURE__ */ jsx(Box, { className: "w-full h-32 overflow-hidden rounded-lg", children: /* @__PURE__ */ jsx("img", { src: entity.headerImage, alt: "", onError: () => setHeaderError(true), className: "w-full h-full object-cover" }) }) : entity.headerImage && headerError ? /* @__PURE__ */ jsx(Box, { className: "w-full h-32 rounded-lg bg-gradient-to-br from-muted to-accent opacity-60" }) : null,
|
|
26068
26068
|
/* @__PURE__ */ jsx(Card, { className: "p-4", children: /* @__PURE__ */ jsxs(VStack, { gap: "sm", children: [
|
|
26069
26069
|
/* @__PURE__ */ jsx(Typography, { variant: "h4", weight: "bold", children: entity.title }),
|
|
26070
26070
|
/* @__PURE__ */ jsx(Typography, { variant: "body", children: entity.description }),
|
|
@@ -26079,16 +26079,16 @@ function NegotiatorBoard({
|
|
|
26079
26079
|
] }) }),
|
|
26080
26080
|
/* @__PURE__ */ jsxs(HStack, { gap: "md", justify: "center", children: [
|
|
26081
26081
|
/* @__PURE__ */ jsx(Card, { className: "p-4 flex-1 text-center", children: /* @__PURE__ */ jsxs(VStack, { gap: "xs", align: "center", children: [
|
|
26082
|
-
/* @__PURE__ */ jsx(Typography, { variant: "caption", className: "text-
|
|
26082
|
+
/* @__PURE__ */ jsx(Typography, { variant: "caption", className: "text-muted-foreground", children: t("negotiator.you") }),
|
|
26083
26083
|
/* @__PURE__ */ jsx(Typography, { variant: "h3", weight: "bold", children: playerTotal })
|
|
26084
26084
|
] }) }),
|
|
26085
26085
|
/* @__PURE__ */ jsx(Card, { className: "p-4 flex-1 text-center", children: /* @__PURE__ */ jsxs(VStack, { gap: "xs", align: "center", children: [
|
|
26086
|
-
/* @__PURE__ */ jsx(Typography, { variant: "caption", className: "text-
|
|
26086
|
+
/* @__PURE__ */ jsx(Typography, { variant: "caption", className: "text-muted-foreground", children: t("negotiator.opponent") }),
|
|
26087
26087
|
/* @__PURE__ */ jsx(Typography, { variant: "h3", weight: "bold", children: opponentTotal })
|
|
26088
26088
|
] }) })
|
|
26089
26089
|
] }),
|
|
26090
26090
|
!isComplete && /* @__PURE__ */ jsx(Card, { className: "p-4", children: /* @__PURE__ */ jsxs(VStack, { gap: "sm", children: [
|
|
26091
|
-
/* @__PURE__ */ jsx(Typography, { variant: "small", weight: "bold", className: "uppercase tracking-wider text-
|
|
26091
|
+
/* @__PURE__ */ jsx(Typography, { variant: "small", weight: "bold", className: "uppercase tracking-wider text-muted-foreground", children: t("negotiator.chooseAction") }),
|
|
26092
26092
|
/* @__PURE__ */ jsx(HStack, { gap: "sm", justify: "center", className: "flex-wrap", children: actions.map((action) => /* @__PURE__ */ jsx(
|
|
26093
26093
|
Button,
|
|
26094
26094
|
{
|
|
@@ -26100,21 +26100,21 @@ function NegotiatorBoard({
|
|
|
26100
26100
|
)) })
|
|
26101
26101
|
] }) }),
|
|
26102
26102
|
history.length > 0 && /* @__PURE__ */ jsx(Card, { className: "p-4", children: /* @__PURE__ */ jsxs(VStack, { gap: "sm", children: [
|
|
26103
|
-
/* @__PURE__ */ jsx(Typography, { variant: "small", weight: "bold", className: "uppercase tracking-wider text-
|
|
26103
|
+
/* @__PURE__ */ jsx(Typography, { variant: "small", weight: "bold", className: "uppercase tracking-wider text-muted-foreground", children: t("negotiator.history") }),
|
|
26104
26104
|
history.map((round) => /* @__PURE__ */ jsxs(HStack, { gap: "sm", align: "center", className: "text-sm", children: [
|
|
26105
26105
|
/* @__PURE__ */ jsxs(Badge, { size: "sm", children: [
|
|
26106
26106
|
"R",
|
|
26107
26107
|
round.round
|
|
26108
26108
|
] }),
|
|
26109
26109
|
/* @__PURE__ */ jsx(Typography, { variant: "caption", children: getActionLabel(round.playerAction) }),
|
|
26110
|
-
/* @__PURE__ */ jsx(Typography, { variant: "caption", className: "text-
|
|
26110
|
+
/* @__PURE__ */ jsx(Typography, { variant: "caption", className: "text-muted-foreground", children: "vs" }),
|
|
26111
26111
|
/* @__PURE__ */ jsx(Typography, { variant: "caption", children: getActionLabel(round.opponentAction) }),
|
|
26112
26112
|
/* @__PURE__ */ jsx(Icon, { icon: ArrowRight, size: "xs" }),
|
|
26113
26113
|
/* @__PURE__ */ jsxs(Typography, { variant: "caption", weight: "bold", className: "text-green-600", children: [
|
|
26114
26114
|
"+",
|
|
26115
26115
|
round.playerPayoff
|
|
26116
26116
|
] }),
|
|
26117
|
-
/* @__PURE__ */ jsxs(Typography, { variant: "caption", className: "text-
|
|
26117
|
+
/* @__PURE__ */ jsxs(Typography, { variant: "caption", className: "text-muted-foreground", children: [
|
|
26118
26118
|
"/ +",
|
|
26119
26119
|
round.opponentPayoff
|
|
26120
26120
|
] })
|
|
@@ -26123,7 +26123,7 @@ function NegotiatorBoard({
|
|
|
26123
26123
|
isComplete && /* @__PURE__ */ jsx(Card, { className: "p-4", children: /* @__PURE__ */ jsxs(VStack, { gap: "sm", align: "center", children: [
|
|
26124
26124
|
/* @__PURE__ */ jsx(Icon, { icon: CheckCircle, size: "lg", className: won ? "text-green-600" : "text-red-600" }),
|
|
26125
26125
|
/* @__PURE__ */ jsx(Typography, { variant: "body", weight: "bold", children: won ? entity.successMessage ?? t("negotiator.success") : entity.failMessage ?? t("negotiator.failed") }),
|
|
26126
|
-
/* @__PURE__ */ jsxs(Typography, { variant: "caption", className: "text-
|
|
26126
|
+
/* @__PURE__ */ jsxs(Typography, { variant: "caption", className: "text-muted-foreground", children: [
|
|
26127
26127
|
t("negotiator.finalScore"),
|
|
26128
26128
|
": ",
|
|
26129
26129
|
playerTotal,
|
|
@@ -26313,7 +26313,7 @@ var DumbbellOrbital = ({
|
|
|
26313
26313
|
config.hasNode && /* @__PURE__ */ jsx(
|
|
26314
26314
|
Box,
|
|
26315
26315
|
{
|
|
26316
|
-
className: "absolute rounded-
|
|
26316
|
+
className: "absolute rounded-full bg-foreground",
|
|
26317
26317
|
style: {
|
|
26318
26318
|
width: size * 0.06,
|
|
26319
26319
|
height: size * 0.06,
|
|
@@ -26374,7 +26374,7 @@ var CloverleafOrbital = ({
|
|
|
26374
26374
|
/* @__PURE__ */ jsx(
|
|
26375
26375
|
Box,
|
|
26376
26376
|
{
|
|
26377
|
-
className: "absolute rounded-
|
|
26377
|
+
className: "absolute rounded-full bg-foreground",
|
|
26378
26378
|
style: {
|
|
26379
26379
|
width: size * 0.08,
|
|
26380
26380
|
height: size * 0.08,
|
|
@@ -26495,7 +26495,7 @@ var OrbitalVisualization = ({
|
|
|
26495
26495
|
}
|
|
26496
26496
|
),
|
|
26497
26497
|
showLabel && /* @__PURE__ */ jsxs(Box, { className: "mt-4 text-center", children: [
|
|
26498
|
-
/* @__PURE__ */ jsx(Typography, { variant: "body", className: "text-lg font-semibold text-
|
|
26498
|
+
/* @__PURE__ */ jsx(Typography, { variant: "body", className: "text-lg font-semibold text-foreground", children: config.name }),
|
|
26499
26499
|
/* @__PURE__ */ jsxs(Typography, { variant: "small", color: "muted", children: [
|
|
26500
26500
|
"Complexity: ",
|
|
26501
26501
|
complexity,
|
|
@@ -26549,11 +26549,11 @@ var PageHeader = ({
|
|
|
26549
26549
|
}
|
|
26550
26550
|
};
|
|
26551
26551
|
const statusColors2 = {
|
|
26552
|
-
default: "bg-
|
|
26553
|
-
success: "bg-
|
|
26554
|
-
warning: "bg-
|
|
26555
|
-
danger: "bg-
|
|
26556
|
-
info: "bg-
|
|
26552
|
+
default: "bg-muted text-foreground",
|
|
26553
|
+
success: "bg-success/10 text-success",
|
|
26554
|
+
warning: "bg-warning/10 text-warning",
|
|
26555
|
+
danger: "bg-error/10 text-error",
|
|
26556
|
+
info: "bg-info/10 text-info"
|
|
26557
26557
|
};
|
|
26558
26558
|
return /* @__PURE__ */ jsxs(Box, { className: cn("mb-6", className), children: [
|
|
26559
26559
|
breadcrumbs && breadcrumbs.length > 0 && /* @__PURE__ */ jsx(Box, { as: "nav", className: "mb-4", children: /* @__PURE__ */ jsx(Box, { as: "ol", className: "flex items-center gap-2 text-sm", children: breadcrumbs.map((crumb, idx) => /* @__PURE__ */ jsxs(React114__default.Fragment, { children: [
|
|
@@ -26562,10 +26562,10 @@ var PageHeader = ({
|
|
|
26562
26562
|
"a",
|
|
26563
26563
|
{
|
|
26564
26564
|
href: crumb.href,
|
|
26565
|
-
className: "text-
|
|
26565
|
+
className: "text-muted-foreground hover:text-foreground",
|
|
26566
26566
|
children: crumb.label
|
|
26567
26567
|
}
|
|
26568
|
-
) : /* @__PURE__ */ jsx(Typography, { variant: "small", className: "text-
|
|
26568
|
+
) : /* @__PURE__ */ jsx(Typography, { variant: "small", className: "text-foreground font-medium", children: crumb.label })
|
|
26569
26569
|
] }, idx)) }) }),
|
|
26570
26570
|
/* @__PURE__ */ jsxs(Box, { className: "flex items-start justify-between gap-4", children: [
|
|
26571
26571
|
/* @__PURE__ */ jsxs(Box, { className: "flex items-start gap-4", children: [
|
|
@@ -26574,19 +26574,19 @@ var PageHeader = ({
|
|
|
26574
26574
|
{
|
|
26575
26575
|
variant: "ghost",
|
|
26576
26576
|
onClick: handleBack,
|
|
26577
|
-
className: "mt-1 p-2 rounded-
|
|
26578
|
-
children: /* @__PURE__ */ jsx(ArrowLeft, { className: "h-5 w-5 text-
|
|
26577
|
+
className: "mt-1 p-2 rounded-lg",
|
|
26578
|
+
children: /* @__PURE__ */ jsx(ArrowLeft, { className: "h-5 w-5 text-muted-foreground" })
|
|
26579
26579
|
}
|
|
26580
26580
|
),
|
|
26581
26581
|
/* @__PURE__ */ jsxs(Box, { children: [
|
|
26582
26582
|
/* @__PURE__ */ jsxs(Box, { className: "flex items-center gap-3", children: [
|
|
26583
|
-
/* @__PURE__ */ jsx(Typography, { variant: "h1", className: "text-2xl font-bold text-
|
|
26583
|
+
/* @__PURE__ */ jsx(Typography, { variant: "h1", className: "text-2xl font-bold text-foreground", children: title != null ? String(title) : "" }),
|
|
26584
26584
|
status && /* @__PURE__ */ jsx(
|
|
26585
26585
|
Typography,
|
|
26586
26586
|
{
|
|
26587
26587
|
variant: "small",
|
|
26588
26588
|
className: cn(
|
|
26589
|
-
"px-2.5 py-1 rounded-
|
|
26589
|
+
"px-2.5 py-1 rounded-full text-xs font-medium",
|
|
26590
26590
|
statusColors2[status.variant || "default"]
|
|
26591
26591
|
),
|
|
26592
26592
|
children: status.label
|
|
@@ -26611,14 +26611,14 @@ var PageHeader = ({
|
|
|
26611
26611
|
`action-${idx}`
|
|
26612
26612
|
)) })
|
|
26613
26613
|
] }),
|
|
26614
|
-
tabs && tabs.length > 0 && /* @__PURE__ */ jsx(Box, { className: "mt-6 border-b border-
|
|
26614
|
+
tabs && tabs.length > 0 && /* @__PURE__ */ jsx(Box, { className: "mt-6 border-b border-border", children: /* @__PURE__ */ jsx(Box, { as: "nav", className: "flex gap-6", children: tabs.map((tab) => /* @__PURE__ */ jsxs(
|
|
26615
26615
|
Button,
|
|
26616
26616
|
{
|
|
26617
26617
|
variant: "ghost",
|
|
26618
26618
|
onClick: () => onTabChange?.(tab.value),
|
|
26619
26619
|
className: cn(
|
|
26620
26620
|
"pb-3 text-sm font-bold border-b-2 transition-colors rounded-none",
|
|
26621
|
-
activeTab === tab.value ? "border-
|
|
26621
|
+
activeTab === tab.value ? "border-primary text-foreground" : "border-transparent text-muted-foreground hover:text-foreground hover:border-border"
|
|
26622
26622
|
),
|
|
26623
26623
|
children: [
|
|
26624
26624
|
tab.label,
|
|
@@ -26627,8 +26627,8 @@ var PageHeader = ({
|
|
|
26627
26627
|
{
|
|
26628
26628
|
variant: "small",
|
|
26629
26629
|
className: cn(
|
|
26630
|
-
"ml-2 px-2 py-0.5 rounded-
|
|
26631
|
-
activeTab === tab.value ? "bg-
|
|
26630
|
+
"ml-2 px-2 py-0.5 rounded-full text-xs",
|
|
26631
|
+
activeTab === tab.value ? "bg-primary/10 text-primary" : "bg-muted text-muted-foreground"
|
|
26632
26632
|
),
|
|
26633
26633
|
children: tab.count
|
|
26634
26634
|
}
|
|
@@ -27787,16 +27787,16 @@ var paddingStyles4 = {
|
|
|
27787
27787
|
var variantStyles8 = {
|
|
27788
27788
|
default: "",
|
|
27789
27789
|
card: [
|
|
27790
|
-
"bg-
|
|
27791
|
-
"border-[length:var(--border-width)] border-
|
|
27792
|
-
"shadow
|
|
27793
|
-
"rounded-
|
|
27790
|
+
"bg-card",
|
|
27791
|
+
"border-[length:var(--border-width)] border-border",
|
|
27792
|
+
"shadow",
|
|
27793
|
+
"rounded-md"
|
|
27794
27794
|
].join(" "),
|
|
27795
27795
|
bordered: [
|
|
27796
|
-
"border-[length:var(--border-width)] border-
|
|
27797
|
-
"rounded-
|
|
27796
|
+
"border-[length:var(--border-width)] border-border",
|
|
27797
|
+
"rounded-md"
|
|
27798
27798
|
].join(" "),
|
|
27799
|
-
filled: "bg-
|
|
27799
|
+
filled: "bg-muted rounded-md"
|
|
27800
27800
|
};
|
|
27801
27801
|
var Section = ({
|
|
27802
27802
|
title,
|
|
@@ -27827,7 +27827,7 @@ var Section = ({
|
|
|
27827
27827
|
{
|
|
27828
27828
|
className: cn(
|
|
27829
27829
|
"flex flex-col sm:flex-row sm:items-start sm:justify-between gap-2 sm:gap-4",
|
|
27830
|
-
divider && "pb-4 mb-4 border-b-[length:var(--border-width)] border-
|
|
27830
|
+
divider && "pb-4 mb-4 border-b-[length:var(--border-width)] border-border",
|
|
27831
27831
|
!divider && "mb-4",
|
|
27832
27832
|
headerClassName
|
|
27833
27833
|
),
|
|
@@ -27837,7 +27837,7 @@ var Section = ({
|
|
|
27837
27837
|
Typography,
|
|
27838
27838
|
{
|
|
27839
27839
|
variant: "h4",
|
|
27840
|
-
className: "text-
|
|
27840
|
+
className: "text-foreground font-semibold",
|
|
27841
27841
|
children: title
|
|
27842
27842
|
}
|
|
27843
27843
|
),
|
|
@@ -28262,7 +28262,7 @@ function SequencerBoard({
|
|
|
28262
28262
|
backgroundPosition: "center"
|
|
28263
28263
|
},
|
|
28264
28264
|
children: [
|
|
28265
|
-
entity.headerImage && !headerError ? /* @__PURE__ */ jsx(Box, { className: "w-full h-32 overflow-hidden rounded-lg", children: /* @__PURE__ */ jsx("img", { src: entity.headerImage, alt: "", onError: () => setHeaderError(true), className: "w-full h-full object-cover" }) }) : entity.headerImage && headerError ? /* @__PURE__ */ jsx(Box, { className: "w-full h-32 rounded-lg bg-gradient-to-br from-
|
|
28265
|
+
entity.headerImage && !headerError ? /* @__PURE__ */ jsx(Box, { className: "w-full h-32 overflow-hidden rounded-lg", children: /* @__PURE__ */ jsx("img", { src: entity.headerImage, alt: "", onError: () => setHeaderError(true), className: "w-full h-full object-cover" }) }) : entity.headerImage && headerError ? /* @__PURE__ */ jsx(Box, { className: "w-full h-32 rounded-lg bg-gradient-to-br from-muted to-accent opacity-60" }) : null,
|
|
28266
28266
|
/* @__PURE__ */ jsxs(VStack, { gap: "xs", children: [
|
|
28267
28267
|
/* @__PURE__ */ jsx(Typography, { variant: "h4", className: "text-foreground", children: entity.title }),
|
|
28268
28268
|
/* @__PURE__ */ jsx(Typography, { variant: "body2", className: "text-muted-foreground", children: entity.description })
|
|
@@ -28334,15 +28334,15 @@ var SidebarNavItem = ({ item, collapsed }) => {
|
|
|
28334
28334
|
onClick: item.onClick,
|
|
28335
28335
|
className: cn(
|
|
28336
28336
|
"w-full flex items-center gap-3 px-3 py-2.5 transition-all duration-[var(--transition-fast)] group relative",
|
|
28337
|
-
"rounded-
|
|
28337
|
+
"rounded-sm border-[length:var(--border-width-thin)] border-transparent",
|
|
28338
28338
|
isActive ? [
|
|
28339
|
-
"bg-
|
|
28340
|
-
"font-medium shadow-
|
|
28341
|
-
"border-
|
|
28339
|
+
"bg-primary text-primary-foreground",
|
|
28340
|
+
"font-medium shadow-sm",
|
|
28341
|
+
"border-primary translate-x-1 -translate-y-0.5"
|
|
28342
28342
|
].join(" ") : [
|
|
28343
|
-
"text-
|
|
28344
|
-
"hover:bg-
|
|
28345
|
-
"active:bg-
|
|
28343
|
+
"text-foreground",
|
|
28344
|
+
"hover:bg-muted hover:border-border",
|
|
28345
|
+
"active:bg-primary active:text-primary-foreground"
|
|
28346
28346
|
].join(" ")
|
|
28347
28347
|
),
|
|
28348
28348
|
title: collapsed ? item.label : void 0,
|
|
@@ -28353,7 +28353,7 @@ var SidebarNavItem = ({ item, collapsed }) => {
|
|
|
28353
28353
|
size: 20,
|
|
28354
28354
|
className: cn(
|
|
28355
28355
|
"min-w-[20px] flex-shrink-0",
|
|
28356
|
-
isActive && "text-
|
|
28356
|
+
isActive && "text-primary-foreground"
|
|
28357
28357
|
)
|
|
28358
28358
|
}
|
|
28359
28359
|
),
|
|
@@ -28362,9 +28362,9 @@ var SidebarNavItem = ({ item, collapsed }) => {
|
|
|
28362
28362
|
collapsed && /* @__PURE__ */ jsx(Box, { className: cn(
|
|
28363
28363
|
"absolute left-full ml-2 px-2 py-1 text-xs opacity-0 group-hover:opacity-100",
|
|
28364
28364
|
"pointer-events-none whitespace-nowrap z-50 transition-opacity",
|
|
28365
|
-
"bg-
|
|
28366
|
-
"border-[length:var(--border-width-thin)] border-
|
|
28367
|
-
"rounded-
|
|
28365
|
+
"bg-primary text-primary-foreground",
|
|
28366
|
+
"border-[length:var(--border-width-thin)] border-border",
|
|
28367
|
+
"rounded-sm"
|
|
28368
28368
|
), children: item.label })
|
|
28369
28369
|
]
|
|
28370
28370
|
}
|
|
@@ -28415,13 +28415,13 @@ var Sidebar = ({
|
|
|
28415
28415
|
as: "aside",
|
|
28416
28416
|
className: cn(
|
|
28417
28417
|
"flex flex-col h-full",
|
|
28418
|
-
"bg-
|
|
28418
|
+
"bg-card border-r border-border",
|
|
28419
28419
|
"transition-all duration-300 ease-in-out",
|
|
28420
28420
|
collapsed ? "w-20" : "w-64",
|
|
28421
28421
|
className
|
|
28422
28422
|
),
|
|
28423
28423
|
children: [
|
|
28424
|
-
/* @__PURE__ */ jsxs(Box, { className: "h-16 flex items-center justify-between px-4 border-b border-
|
|
28424
|
+
/* @__PURE__ */ jsxs(Box, { className: "h-16 flex items-center justify-between px-4 border-b border-border flex-shrink-0", children: [
|
|
28425
28425
|
/* @__PURE__ */ jsxs(
|
|
28426
28426
|
Box,
|
|
28427
28427
|
{
|
|
@@ -28431,8 +28431,8 @@ var Sidebar = ({
|
|
|
28431
28431
|
),
|
|
28432
28432
|
onClick: handleLogoClick,
|
|
28433
28433
|
children: [
|
|
28434
|
-
logo ? typeof logo === "string" ? /* @__PURE__ */ jsx("img", { src: logo, alt: brandName, className: "h-8 w-8" }) : logo : logoSrc ? /* @__PURE__ */ jsx("img", { src: logoSrc, alt: brandName, className: "h-8 w-8" }) : /* @__PURE__ */ jsx(Box, { className: "h-8 w-8 bg-
|
|
28435
|
-
!collapsed && /* @__PURE__ */ jsx(Typography, { variant: "body", className: "text-xl font-bold text-
|
|
28434
|
+
logo ? typeof logo === "string" ? /* @__PURE__ */ jsx("img", { src: logo, alt: brandName, className: "h-8 w-8" }) : logo : logoSrc ? /* @__PURE__ */ jsx("img", { src: logoSrc, alt: brandName, className: "h-8 w-8" }) : /* @__PURE__ */ jsx(Box, { className: "h-8 w-8 bg-primary flex items-center justify-center rounded-sm", children: /* @__PURE__ */ jsx(Typography, { variant: "small", className: "text-primary-foreground font-bold text-sm", children: "K" }) }),
|
|
28435
|
+
!collapsed && /* @__PURE__ */ jsx(Typography, { variant: "body", className: "text-xl font-bold text-foreground", children: brandName })
|
|
28436
28436
|
]
|
|
28437
28437
|
}
|
|
28438
28438
|
),
|
|
@@ -28442,8 +28442,8 @@ var Sidebar = ({
|
|
|
28442
28442
|
variant: "ghost",
|
|
28443
28443
|
onClick: handleToggle,
|
|
28444
28444
|
className: cn(
|
|
28445
|
-
"p-1.5 hover:bg-
|
|
28446
|
-
"rounded-
|
|
28445
|
+
"p-1.5 hover:bg-muted text-foreground hidden lg:block",
|
|
28446
|
+
"rounded-sm",
|
|
28447
28447
|
collapsed && "mx-auto"
|
|
28448
28448
|
),
|
|
28449
28449
|
title: collapsed ? t("sidebar.expand") : t("sidebar.collapse"),
|
|
@@ -28455,7 +28455,7 @@ var Sidebar = ({
|
|
|
28455
28455
|
{
|
|
28456
28456
|
variant: "ghost",
|
|
28457
28457
|
onClick: handleClose,
|
|
28458
|
-
className: "p-1.5 hover:bg-
|
|
28458
|
+
className: "p-1.5 hover:bg-muted text-foreground lg:hidden rounded-sm",
|
|
28459
28459
|
"aria-label": t("sidebar.close"),
|
|
28460
28460
|
children: /* @__PURE__ */ jsx(X, { size: 18 })
|
|
28461
28461
|
}
|
|
@@ -28469,7 +28469,7 @@ var Sidebar = ({
|
|
|
28469
28469
|
},
|
|
28470
28470
|
item.id
|
|
28471
28471
|
)) }),
|
|
28472
|
-
(footerContent || userSection) && /* @__PURE__ */ jsxs(Box, { className: "p-3 border-t border-
|
|
28472
|
+
(footerContent || userSection) && /* @__PURE__ */ jsxs(Box, { className: "p-3 border-t border-border space-y-1 flex-shrink-0", children: [
|
|
28473
28473
|
/* @__PURE__ */ jsxs(Box, { className: cn(
|
|
28474
28474
|
"flex items-center",
|
|
28475
28475
|
collapsed ? "justify-center flex-col gap-4" : "justify-between px-2"
|
|
@@ -28482,7 +28482,7 @@ var Sidebar = ({
|
|
|
28482
28482
|
{
|
|
28483
28483
|
variant: "ghost",
|
|
28484
28484
|
onClick: handleToggle,
|
|
28485
|
-
className: "w-full flex justify-center p-2 mt-2 text-
|
|
28485
|
+
className: "w-full flex justify-center p-2 mt-2 text-muted-foreground hover:text-foreground lg:hidden",
|
|
28486
28486
|
children: /* @__PURE__ */ jsx(ChevronRight, { size: 20 })
|
|
28487
28487
|
}
|
|
28488
28488
|
)
|
|
@@ -28616,8 +28616,8 @@ var SignaturePad = ({
|
|
|
28616
28616
|
Box,
|
|
28617
28617
|
{
|
|
28618
28618
|
className: cn(
|
|
28619
|
-
"w-full rounded-
|
|
28620
|
-
"bg-
|
|
28619
|
+
"w-full rounded-md border border-border",
|
|
28620
|
+
"bg-background",
|
|
28621
28621
|
readOnly && "opacity-60 cursor-not-allowed",
|
|
28622
28622
|
!readOnly && "cursor-crosshair"
|
|
28623
28623
|
),
|
|
@@ -29061,13 +29061,13 @@ function SimulatorBoard({
|
|
|
29061
29061
|
backgroundPosition: "center"
|
|
29062
29062
|
},
|
|
29063
29063
|
children: /* @__PURE__ */ jsxs(VStack, { gap: "lg", className: "p-4", children: [
|
|
29064
|
-
entity.headerImage && !headerError ? /* @__PURE__ */ jsx(Box, { className: "w-full h-32 overflow-hidden rounded-lg", children: /* @__PURE__ */ jsx("img", { src: entity.headerImage, alt: "", onError: () => setHeaderError(true), className: "w-full h-full object-cover" }) }) : entity.headerImage && headerError ? /* @__PURE__ */ jsx(Box, { className: "w-full h-32 rounded-lg bg-gradient-to-br from-
|
|
29064
|
+
entity.headerImage && !headerError ? /* @__PURE__ */ jsx(Box, { className: "w-full h-32 overflow-hidden rounded-lg", children: /* @__PURE__ */ jsx("img", { src: entity.headerImage, alt: "", onError: () => setHeaderError(true), className: "w-full h-full object-cover" }) }) : entity.headerImage && headerError ? /* @__PURE__ */ jsx(Box, { className: "w-full h-32 rounded-lg bg-gradient-to-br from-muted to-accent opacity-60" }) : null,
|
|
29065
29065
|
/* @__PURE__ */ jsx(Card, { className: "p-4", children: /* @__PURE__ */ jsxs(VStack, { gap: "sm", children: [
|
|
29066
29066
|
/* @__PURE__ */ jsx(Typography, { variant: "h4", weight: "bold", children: entity.title }),
|
|
29067
29067
|
/* @__PURE__ */ jsx(Typography, { variant: "body", children: entity.description })
|
|
29068
29068
|
] }) }),
|
|
29069
29069
|
/* @__PURE__ */ jsx(Card, { className: "p-4", children: /* @__PURE__ */ jsxs(VStack, { gap: "md", children: [
|
|
29070
|
-
/* @__PURE__ */ jsx(Typography, { variant: "small", weight: "bold", className: "uppercase tracking-wider text-
|
|
29070
|
+
/* @__PURE__ */ jsx(Typography, { variant: "small", weight: "bold", className: "uppercase tracking-wider text-muted-foreground", children: t("simulator.parameters") }),
|
|
29071
29071
|
parameters.map((param) => /* @__PURE__ */ jsxs(VStack, { gap: "xs", children: [
|
|
29072
29072
|
/* @__PURE__ */ jsxs(HStack, { justify: "between", align: "center", children: [
|
|
29073
29073
|
/* @__PURE__ */ jsx(Typography, { variant: "body", weight: "medium", children: param.label }),
|
|
@@ -29087,16 +29087,16 @@ function SimulatorBoard({
|
|
|
29087
29087
|
value: values[param.id],
|
|
29088
29088
|
onChange: (e) => handleParameterChange(param.id, Number(e.target.value)),
|
|
29089
29089
|
disabled: submitted,
|
|
29090
|
-
className: "w-full accent-
|
|
29090
|
+
className: "w-full accent-foreground"
|
|
29091
29091
|
}
|
|
29092
29092
|
),
|
|
29093
29093
|
/* @__PURE__ */ jsxs(HStack, { justify: "between", children: [
|
|
29094
|
-
/* @__PURE__ */ jsxs(Typography, { variant: "caption", className: "text-
|
|
29094
|
+
/* @__PURE__ */ jsxs(Typography, { variant: "caption", className: "text-muted-foreground", children: [
|
|
29095
29095
|
param.min,
|
|
29096
29096
|
" ",
|
|
29097
29097
|
param.unit
|
|
29098
29098
|
] }),
|
|
29099
|
-
/* @__PURE__ */ jsxs(Typography, { variant: "caption", className: "text-
|
|
29099
|
+
/* @__PURE__ */ jsxs(Typography, { variant: "caption", className: "text-muted-foreground", children: [
|
|
29100
29100
|
param.max,
|
|
29101
29101
|
" ",
|
|
29102
29102
|
param.unit
|
|
@@ -29105,7 +29105,7 @@ function SimulatorBoard({
|
|
|
29105
29105
|
] }, param.id))
|
|
29106
29106
|
] }) }),
|
|
29107
29107
|
/* @__PURE__ */ jsx(Card, { className: "p-4", children: /* @__PURE__ */ jsxs(VStack, { gap: "sm", align: "center", children: [
|
|
29108
|
-
/* @__PURE__ */ jsx(Typography, { variant: "small", weight: "bold", className: "uppercase tracking-wider text-
|
|
29108
|
+
/* @__PURE__ */ jsx(Typography, { variant: "small", weight: "bold", className: "uppercase tracking-wider text-muted-foreground", children: entity.outputLabel }),
|
|
29109
29109
|
/* @__PURE__ */ jsxs(Typography, { variant: "h3", weight: "bold", children: [
|
|
29110
29110
|
output.toFixed(2),
|
|
29111
29111
|
" ",
|
|
@@ -29115,7 +29115,7 @@ function SimulatorBoard({
|
|
|
29115
29115
|
/* @__PURE__ */ jsx(Icon, { icon: isCorrect ? CheckCircle : XCircle, size: "sm", className: isCorrect ? "text-green-600" : "text-red-600" }),
|
|
29116
29116
|
/* @__PURE__ */ jsx(Typography, { variant: "body", className: isCorrect ? "text-green-600" : "text-red-600", children: isCorrect ? entity.successMessage ?? t("simulator.correct") : entity.failMessage ?? t("simulator.incorrect") })
|
|
29117
29117
|
] }),
|
|
29118
|
-
/* @__PURE__ */ jsxs(Typography, { variant: "caption", className: "text-
|
|
29118
|
+
/* @__PURE__ */ jsxs(Typography, { variant: "caption", className: "text-muted-foreground", children: [
|
|
29119
29119
|
t("simulator.target"),
|
|
29120
29120
|
": ",
|
|
29121
29121
|
targetValue,
|
|
@@ -29280,8 +29280,8 @@ var SplitPane = ({
|
|
|
29280
29280
|
{
|
|
29281
29281
|
onMouseDown: handleMouseDown,
|
|
29282
29282
|
className: cn(
|
|
29283
|
-
"flex-shrink-0 bg-
|
|
29284
|
-
isHorizontal ? "w-1 cursor-col-resize hover:w-1.5 hover:bg-
|
|
29283
|
+
"flex-shrink-0 bg-border transition-colors",
|
|
29284
|
+
isHorizontal ? "w-1 cursor-col-resize hover:w-1.5 hover:bg-muted-foreground" : "h-1 cursor-row-resize hover:h-1.5 hover:bg-muted-foreground"
|
|
29285
29285
|
)
|
|
29286
29286
|
}
|
|
29287
29287
|
),
|
|
@@ -29301,8 +29301,8 @@ var StatCard = ({
|
|
|
29301
29301
|
trendDirection: manualDirection,
|
|
29302
29302
|
invertTrend = false,
|
|
29303
29303
|
icon: iconProp,
|
|
29304
|
-
iconBg = "bg-
|
|
29305
|
-
iconColor = "text-
|
|
29304
|
+
iconBg = "bg-muted",
|
|
29305
|
+
iconColor = "text-foreground",
|
|
29306
29306
|
subtitle,
|
|
29307
29307
|
action,
|
|
29308
29308
|
className,
|
|
@@ -29390,8 +29390,8 @@ var StatCard = ({
|
|
|
29390
29390
|
className: cn("grid gap-4", className),
|
|
29391
29391
|
style: { gridTemplateColumns: `repeat(${schemaStats.length}, 1fr)` },
|
|
29392
29392
|
children: schemaStats.map((_, idx) => /* @__PURE__ */ jsx(Card, { className: "p-4", children: /* @__PURE__ */ jsxs(VStack, { gap: "xs", className: "animate-pulse", children: [
|
|
29393
|
-
/* @__PURE__ */ jsx(Box, { className: "h-3 bg-
|
|
29394
|
-
/* @__PURE__ */ jsx(Box, { className: "h-6 bg-
|
|
29393
|
+
/* @__PURE__ */ jsx(Box, { className: "h-3 bg-muted rounded w-16" }),
|
|
29394
|
+
/* @__PURE__ */ jsx(Box, { className: "h-6 bg-muted rounded w-12" })
|
|
29395
29395
|
] }) }, idx))
|
|
29396
29396
|
}
|
|
29397
29397
|
);
|
|
@@ -29422,9 +29422,9 @@ var StatCard = ({
|
|
|
29422
29422
|
}
|
|
29423
29423
|
if (isLoading) {
|
|
29424
29424
|
return /* @__PURE__ */ jsx(Card, { className: cn("p-6", className), children: /* @__PURE__ */ jsxs(VStack, { gap: "sm", className: "animate-pulse", children: [
|
|
29425
|
-
/* @__PURE__ */ jsx(Box, { className: "h-4 bg-
|
|
29426
|
-
/* @__PURE__ */ jsx(Box, { className: "h-8 bg-
|
|
29427
|
-
/* @__PURE__ */ jsx(Box, { className: "h-4 bg-
|
|
29425
|
+
/* @__PURE__ */ jsx(Box, { className: "h-4 bg-muted rounded w-24" }),
|
|
29426
|
+
/* @__PURE__ */ jsx(Box, { className: "h-8 bg-muted rounded w-32" }),
|
|
29427
|
+
/* @__PURE__ */ jsx(Box, { className: "h-4 bg-muted rounded w-20" })
|
|
29428
29428
|
] }) });
|
|
29429
29429
|
}
|
|
29430
29430
|
return /* @__PURE__ */ jsxs(Card, { className: cn("p-6", className), children: [
|
|
@@ -29440,7 +29440,7 @@ var StatCard = ({
|
|
|
29440
29440
|
gap: "none",
|
|
29441
29441
|
className: cn(
|
|
29442
29442
|
"gap-0.5 text-sm font-bold",
|
|
29443
|
-
isPositive ? "text-
|
|
29443
|
+
isPositive ? "text-success" : trendDirection === "neutral" ? "text-muted-foreground" : "text-error"
|
|
29444
29444
|
),
|
|
29445
29445
|
children: [
|
|
29446
29446
|
/* @__PURE__ */ jsx(TrendIcon, { className: "h-4 w-4" }),
|
|
@@ -29490,7 +29490,7 @@ var StatCard = ({
|
|
|
29490
29490
|
{
|
|
29491
29491
|
variant: "ghost",
|
|
29492
29492
|
onClick: handleActionClick,
|
|
29493
|
-
className: "mt-4 text-sm font-bold text-
|
|
29493
|
+
className: "mt-4 text-sm font-bold text-foreground hover:underline",
|
|
29494
29494
|
"data-testid": action.event ? `action-${action.event}` : void 0,
|
|
29495
29495
|
children: [
|
|
29496
29496
|
action.label,
|
|
@@ -29816,7 +29816,7 @@ function StateArchitectBoard({
|
|
|
29816
29816
|
backgroundPosition: "center"
|
|
29817
29817
|
},
|
|
29818
29818
|
children: [
|
|
29819
|
-
entity.headerImage && !headerError ? /* @__PURE__ */ jsx(Box, { className: "w-full h-32 overflow-hidden rounded-lg", children: /* @__PURE__ */ jsx("img", { src: entity.headerImage, alt: "", onError: () => setHeaderError(true), className: "w-full h-full object-cover" }) }) : entity.headerImage && headerError ? /* @__PURE__ */ jsx(Box, { className: "w-full h-32 rounded-lg bg-gradient-to-br from-
|
|
29819
|
+
entity.headerImage && !headerError ? /* @__PURE__ */ jsx(Box, { className: "w-full h-32 overflow-hidden rounded-lg", children: /* @__PURE__ */ jsx("img", { src: entity.headerImage, alt: "", onError: () => setHeaderError(true), className: "w-full h-full object-cover" }) }) : entity.headerImage && headerError ? /* @__PURE__ */ jsx(Box, { className: "w-full h-32 rounded-lg bg-gradient-to-br from-muted to-accent opacity-60" }) : null,
|
|
29820
29820
|
/* @__PURE__ */ jsxs(VStack, { gap: "xs", children: [
|
|
29821
29821
|
/* @__PURE__ */ jsx(Typography, { variant: "h4", className: "text-foreground", children: entity.title }),
|
|
29822
29822
|
/* @__PURE__ */ jsx(Typography, { variant: "body2", className: "text-muted-foreground", children: entity.description }),
|
|
@@ -29987,7 +29987,7 @@ var TabbedContainer = ({
|
|
|
29987
29987
|
[controlledActiveTab, onTabChange]
|
|
29988
29988
|
);
|
|
29989
29989
|
const activeTabDef = safeTabs.find((tab) => tab.id === activeTab);
|
|
29990
|
-
const activeContent = activeTabDef?.content || (activeTabDef?.sectionId ? /* @__PURE__ */ jsxs("div", { className: "p-4 text-
|
|
29990
|
+
const activeContent = activeTabDef?.content || (activeTabDef?.sectionId ? /* @__PURE__ */ jsxs("div", { className: "p-4 text-muted-foreground", children: [
|
|
29991
29991
|
"Section: ",
|
|
29992
29992
|
activeTabDef.sectionId
|
|
29993
29993
|
] }) : null);
|
|
@@ -30007,7 +30007,7 @@ var TabbedContainer = ({
|
|
|
30007
30007
|
role: "tablist",
|
|
30008
30008
|
className: cn(
|
|
30009
30009
|
"flex flex-shrink-0",
|
|
30010
|
-
isVertical ? "flex-col border-r-2 border-
|
|
30010
|
+
isVertical ? "flex-col border-r-2 border-border" : "flex-row border-b-2 border-border"
|
|
30011
30011
|
),
|
|
30012
30012
|
children: safeTabs.map((tab) => {
|
|
30013
30013
|
const isActive = tab.id === activeTab;
|
|
@@ -30023,9 +30023,9 @@ var TabbedContainer = ({
|
|
|
30023
30023
|
onClick: () => !isDisabled && handleTabChange(tab.id),
|
|
30024
30024
|
className: cn(
|
|
30025
30025
|
"flex items-center gap-2 px-4 py-3 text-sm font-medium transition-colors",
|
|
30026
|
-
"focus:outline-none focus:ring-2 focus:ring-
|
|
30026
|
+
"focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",
|
|
30027
30027
|
"disabled:opacity-50 disabled:cursor-not-allowed",
|
|
30028
|
-
isActive ? "bg-
|
|
30028
|
+
isActive ? "bg-primary text-primary-foreground" : "bg-card text-foreground hover:bg-muted",
|
|
30029
30029
|
isVertical ? "justify-start" : "justify-center"
|
|
30030
30030
|
),
|
|
30031
30031
|
children: [
|
|
@@ -30043,7 +30043,7 @@ var TabbedContainer = ({
|
|
|
30043
30043
|
{
|
|
30044
30044
|
className: cn(
|
|
30045
30045
|
"px-1.5 py-0.5 text-xs font-medium rounded",
|
|
30046
|
-
isActive ? "bg-
|
|
30046
|
+
isActive ? "bg-primary-foreground text-primary" : "bg-primary text-primary-foreground"
|
|
30047
30047
|
),
|
|
30048
30048
|
children: tab.badge
|
|
30049
30049
|
}
|
|
@@ -30165,7 +30165,7 @@ var Table = ({
|
|
|
30165
30165
|
"th",
|
|
30166
30166
|
{
|
|
30167
30167
|
className: cn(
|
|
30168
|
-
"px-4 py-3 text-left text-xs font-bold text-
|
|
30168
|
+
"px-4 py-3 text-left text-xs font-bold text-foreground uppercase tracking-wider bg-[var(--color-table-header)]",
|
|
30169
30169
|
sortable && column.sortable && "cursor-pointer hover:bg-[var(--color-table-row-hover)]"
|
|
30170
30170
|
),
|
|
30171
30171
|
style: { width: column.width },
|
|
@@ -30254,23 +30254,23 @@ var Table = ({
|
|
|
30254
30254
|
Table.displayName = "Table";
|
|
30255
30255
|
var STATUS_STYLES3 = {
|
|
30256
30256
|
complete: {
|
|
30257
|
-
dotColor: "text-
|
|
30258
|
-
lineColor: "bg-
|
|
30257
|
+
dotColor: "text-success",
|
|
30258
|
+
lineColor: "bg-success",
|
|
30259
30259
|
icon: CheckCircle2
|
|
30260
30260
|
},
|
|
30261
30261
|
active: {
|
|
30262
|
-
dotColor: "text-
|
|
30263
|
-
lineColor: "bg-
|
|
30262
|
+
dotColor: "text-primary",
|
|
30263
|
+
lineColor: "bg-primary",
|
|
30264
30264
|
icon: Clock
|
|
30265
30265
|
},
|
|
30266
30266
|
pending: {
|
|
30267
|
-
dotColor: "text-
|
|
30268
|
-
lineColor: "bg-
|
|
30267
|
+
dotColor: "text-muted-foreground",
|
|
30268
|
+
lineColor: "bg-border",
|
|
30269
30269
|
icon: Circle
|
|
30270
30270
|
},
|
|
30271
30271
|
error: {
|
|
30272
|
-
dotColor: "text-
|
|
30273
|
-
lineColor: "bg-
|
|
30272
|
+
dotColor: "text-error",
|
|
30273
|
+
lineColor: "bg-error",
|
|
30274
30274
|
icon: AlertCircle
|
|
30275
30275
|
}
|
|
30276
30276
|
};
|
|
@@ -30350,7 +30350,7 @@ var Timeline = ({
|
|
|
30350
30350
|
{
|
|
30351
30351
|
icon: ItemIcon,
|
|
30352
30352
|
size: "sm",
|
|
30353
|
-
className: cn(style.dotColor, "z-10 bg-
|
|
30353
|
+
className: cn(style.dotColor, "z-10 bg-card")
|
|
30354
30354
|
}
|
|
30355
30355
|
),
|
|
30356
30356
|
!isLast && /* @__PURE__ */ jsx(
|
|
@@ -30655,7 +30655,7 @@ var WizardContainer = ({
|
|
|
30655
30655
|
{
|
|
30656
30656
|
border: true,
|
|
30657
30657
|
className: cn(
|
|
30658
|
-
"border-b-2 border-x-0 border-t-0 border-
|
|
30658
|
+
"border-b-2 border-x-0 border-t-0 border-border",
|
|
30659
30659
|
compact ? "px-4 py-2" : "px-6 py-4"
|
|
30660
30660
|
),
|
|
30661
30661
|
children: /* @__PURE__ */ jsx(HStack, { gap: "sm", align: "center", className: "flex-wrap", children: steps.map((step, index) => {
|
|
@@ -30671,10 +30671,10 @@ var WizardContainer = ({
|
|
|
30671
30671
|
disabled: !isCompleted || !allowBack,
|
|
30672
30672
|
className: cn(
|
|
30673
30673
|
"w-8 h-8 flex items-center justify-center text-sm font-bold transition-colors",
|
|
30674
|
-
"border-2 border-
|
|
30675
|
-
isActive && "bg-
|
|
30676
|
-
isCompleted && "bg-
|
|
30677
|
-
!isActive && !isCompleted && "bg-
|
|
30674
|
+
"border-2 border-border",
|
|
30675
|
+
isActive && "bg-primary text-primary-foreground",
|
|
30676
|
+
isCompleted && "bg-primary text-primary-foreground cursor-pointer hover:bg-primary-hover",
|
|
30677
|
+
!isActive && !isCompleted && "bg-card text-foreground"
|
|
30678
30678
|
),
|
|
30679
30679
|
children: isCompleted ? /* @__PURE__ */ jsx(Icon, { icon: Check, size: "sm" }) : index + 1
|
|
30680
30680
|
}
|
|
@@ -30684,7 +30684,7 @@ var WizardContainer = ({
|
|
|
30684
30684
|
{
|
|
30685
30685
|
className: cn(
|
|
30686
30686
|
"hidden md:block",
|
|
30687
|
-
isActive ? "text-
|
|
30687
|
+
isActive ? "text-foreground font-bold" : "text-muted-foreground"
|
|
30688
30688
|
),
|
|
30689
30689
|
children: /* @__PURE__ */ jsx(
|
|
30690
30690
|
Typography,
|
|
@@ -30701,7 +30701,7 @@ var WizardContainer = ({
|
|
|
30701
30701
|
{
|
|
30702
30702
|
className: cn(
|
|
30703
30703
|
"flex-1 h-0.5",
|
|
30704
|
-
index < currentStep ? "bg-
|
|
30704
|
+
index < currentStep ? "bg-primary" : "bg-border"
|
|
30705
30705
|
)
|
|
30706
30706
|
}
|
|
30707
30707
|
)
|
|
@@ -30715,14 +30715,14 @@ var WizardContainer = ({
|
|
|
30715
30715
|
paddingX: "lg",
|
|
30716
30716
|
paddingY: "md",
|
|
30717
30717
|
border: true,
|
|
30718
|
-
className: "border-b-2 border-x-0 border-t-0 border-
|
|
30718
|
+
className: "border-b-2 border-x-0 border-t-0 border-border",
|
|
30719
30719
|
children: [
|
|
30720
30720
|
/* @__PURE__ */ jsx(Typography, { variant: "h4", as: "h2", children: currentStepData.title ?? currentStepData.name ?? `Step ${currentStep + 1}` }),
|
|
30721
30721
|
currentStepData.description && /* @__PURE__ */ jsx(
|
|
30722
30722
|
Typography,
|
|
30723
30723
|
{
|
|
30724
30724
|
variant: "body2",
|
|
30725
|
-
className: "text-
|
|
30725
|
+
className: "text-muted-foreground mt-1",
|
|
30726
30726
|
children: currentStepData.description
|
|
30727
30727
|
}
|
|
30728
30728
|
)
|
|
@@ -30735,7 +30735,7 @@ var WizardContainer = ({
|
|
|
30735
30735
|
{
|
|
30736
30736
|
border: true,
|
|
30737
30737
|
className: cn(
|
|
30738
|
-
"border-t-2 border-x-0 border-b-0 border-
|
|
30738
|
+
"border-t-2 border-x-0 border-b-0 border-border flex justify-between",
|
|
30739
30739
|
compact ? "px-4 py-2" : "px-6 py-4"
|
|
30740
30740
|
),
|
|
30741
30741
|
children: [
|
|
@@ -30755,7 +30755,7 @@ var WizardContainer = ({
|
|
|
30755
30755
|
Typography,
|
|
30756
30756
|
{
|
|
30757
30757
|
variant: "caption",
|
|
30758
|
-
className: "text-
|
|
30758
|
+
className: "text-muted-foreground",
|
|
30759
30759
|
children: t("wizard.stepOf", { current: String(currentStep + 1), total: String(steps.length) })
|
|
30760
30760
|
}
|
|
30761
30761
|
) }),
|
|
@@ -30964,7 +30964,7 @@ function WorldMapBoard({
|
|
|
30964
30964
|
if (isLoading || !resolved) {
|
|
30965
30965
|
return /* @__PURE__ */ jsx(LoadingState, { message: "Loading map..." });
|
|
30966
30966
|
}
|
|
30967
|
-
return /* @__PURE__ */ jsxs(VStack, { className: cn("world-map-board min-h-screen bg-
|
|
30967
|
+
return /* @__PURE__ */ jsxs(VStack, { className: cn("world-map-board min-h-screen bg-background", className), gap: "none", children: [
|
|
30968
30968
|
header && header(ctx),
|
|
30969
30969
|
/* @__PURE__ */ jsxs(HStack, { className: "flex-1 overflow-hidden", gap: "none", children: [
|
|
30970
30970
|
/* @__PURE__ */ jsxs(Stack, { className: "flex-1 overflow-auto p-4 relative", children: [
|
|
@@ -30995,7 +30995,7 @@ function WorldMapBoard({
|
|
|
30995
30995
|
),
|
|
30996
30996
|
overlay && overlay(ctx)
|
|
30997
30997
|
] }),
|
|
30998
|
-
sidePanel && /* @__PURE__ */ jsx(Stack, { className: "w-80 shrink-0 border-l border-
|
|
30998
|
+
sidePanel && /* @__PURE__ */ jsx(Stack, { className: "w-80 shrink-0 border-l border-border bg-surface overflow-y-auto p-4", children: sidePanel(ctx) })
|
|
30999
30999
|
] }),
|
|
31000
31000
|
footer && footer(ctx)
|
|
31001
31001
|
] });
|
|
@@ -31395,13 +31395,13 @@ function renderContainedPortal(slot, content, onDismiss) {
|
|
|
31395
31395
|
className: "pointer-events-auto max-w-[calc(100%-2rem)] max-h-full overflow-auto flex flex-col",
|
|
31396
31396
|
onClick: (e) => e.stopPropagation(),
|
|
31397
31397
|
children: [
|
|
31398
|
-
content.props.title ? /* @__PURE__ */ jsxs(Box, { className: "flex items-center justify-between p-4 border-b border-
|
|
31398
|
+
content.props.title ? /* @__PURE__ */ jsxs(Box, { className: "flex items-center justify-between p-4 border-b border-border", children: [
|
|
31399
31399
|
/* @__PURE__ */ jsx(Typography, { variant: "h3", className: "text-lg font-semibold", children: String(content.props.title) }),
|
|
31400
31400
|
/* @__PURE__ */ jsx(
|
|
31401
31401
|
Box,
|
|
31402
31402
|
{
|
|
31403
31403
|
as: "button",
|
|
31404
|
-
className: "text-
|
|
31404
|
+
className: "text-muted-foreground hover:text-foreground cursor-pointer",
|
|
31405
31405
|
onClick: onDismiss,
|
|
31406
31406
|
children: "\u2715"
|
|
31407
31407
|
}
|
|
@@ -31429,13 +31429,13 @@ function renderContainedPortal(slot, content, onDismiss) {
|
|
|
31429
31429
|
),
|
|
31430
31430
|
onClick: (e) => e.stopPropagation(),
|
|
31431
31431
|
children: [
|
|
31432
|
-
content.props.title ? /* @__PURE__ */ jsxs(Box, { className: "flex items-center justify-between p-4 border-b border-
|
|
31432
|
+
content.props.title ? /* @__PURE__ */ jsxs(Box, { className: "flex items-center justify-between p-4 border-b border-border", children: [
|
|
31433
31433
|
/* @__PURE__ */ jsx(Typography, { variant: "h3", className: "text-lg font-semibold", children: String(content.props.title) }),
|
|
31434
31434
|
/* @__PURE__ */ jsx(
|
|
31435
31435
|
Box,
|
|
31436
31436
|
{
|
|
31437
31437
|
as: "button",
|
|
31438
|
-
className: "text-
|
|
31438
|
+
className: "text-muted-foreground hover:text-foreground cursor-pointer",
|
|
31439
31439
|
onClick: onDismiss,
|
|
31440
31440
|
children: "\u2715"
|
|
31441
31441
|
}
|
|
@@ -31461,7 +31461,7 @@ function renderContainedPortal(slot, content, onDismiss) {
|
|
|
31461
31461
|
return /* @__PURE__ */ jsx(
|
|
31462
31462
|
Box,
|
|
31463
31463
|
{
|
|
31464
|
-
className: "absolute inset-0 z-50 bg-
|
|
31464
|
+
className: "absolute inset-0 z-50 bg-foreground/50 flex items-center justify-center overflow-auto",
|
|
31465
31465
|
onClick: onDismiss,
|
|
31466
31466
|
children: /* @__PURE__ */ jsx(Box, { className: "max-h-full overflow-auto", onClick: (e) => e.stopPropagation(), children: slotContent })
|
|
31467
31467
|
}
|
|
@@ -31692,7 +31692,7 @@ function SlotPortal({
|
|
|
31692
31692
|
wrapper = /* @__PURE__ */ jsx(
|
|
31693
31693
|
Box,
|
|
31694
31694
|
{
|
|
31695
|
-
className: "fixed inset-0 z-50 bg-
|
|
31695
|
+
className: "fixed inset-0 z-50 bg-foreground/50 flex items-center justify-center",
|
|
31696
31696
|
onClick: onDismiss,
|
|
31697
31697
|
children: /* @__PURE__ */ jsx(Box, { onClick: (e) => e.stopPropagation(), children: /* @__PURE__ */ jsx(SlotContentRenderer, { content, onDismiss }) })
|
|
31698
31698
|
}
|
|
@@ -31794,7 +31794,7 @@ function SlotContentRenderer({
|
|
|
31794
31794
|
className: "slot-content",
|
|
31795
31795
|
"data-pattern": content.pattern,
|
|
31796
31796
|
"data-id": content.id,
|
|
31797
|
-
children: content.props.children ?? /* @__PURE__ */ jsxs(Box, { className: "p-4 text-sm text-
|
|
31797
|
+
children: content.props.children ?? /* @__PURE__ */ jsxs(Box, { className: "p-4 text-sm text-muted-foreground border border-dashed border-border rounded", children: [
|
|
31798
31798
|
"Unknown pattern: ",
|
|
31799
31799
|
content.pattern,
|
|
31800
31800
|
content.sourceTrait && /* @__PURE__ */ jsxs(Typography, { variant: "small", className: "ml-2", children: [
|