@jonapin006/tiger 1.0.23 → 1.0.25
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/index.d.ts +16 -0
- package/dist/tiger.css +1 -1
- package/dist/tiger.es.js +177 -151
- package/dist/tiger.umd.js +1 -1
- package/package.json +7 -6
package/dist/tiger.es.js
CHANGED
|
@@ -488,9 +488,9 @@ var v = /* @__PURE__ */ function(e) {
|
|
|
488
488
|
},
|
|
489
489
|
layout: {
|
|
490
490
|
bodyWrapper: "min-h-screen relative overflow-hidden transition-theme flex flex-col font-sans bg-fixed bg-cover bg-center",
|
|
491
|
-
bodyContent: "relative z-10 min-h-screen w-full flex flex-
|
|
491
|
+
bodyContent: "relative z-10 min-h-screen w-full flex flex-row border-none overflow-hidden",
|
|
492
492
|
bodyCorner: "rounded-none",
|
|
493
|
-
bodyPadding: "p-
|
|
493
|
+
bodyPadding: "p-0",
|
|
494
494
|
bodyMargin: "m-0",
|
|
495
495
|
bodyBlobs: []
|
|
496
496
|
}
|
|
@@ -543,8 +543,11 @@ var v = /* @__PURE__ */ function(e) {
|
|
|
543
543
|
layout: {
|
|
544
544
|
sidebar: { container: "bg-white/40 backdrop-blur-3xl border-r border-black/5" },
|
|
545
545
|
topbar: { container: "bg-gradient-to-r from-emerald-50 via-white to-teal-50" },
|
|
546
|
-
main: "
|
|
547
|
-
|
|
546
|
+
main: "w-full h-screen min-h-screen overflow-hidden flex flex-row",
|
|
547
|
+
contentWrapper: "flex-1 flex flex-col min-w-0 h-screen overflow-hidden relative",
|
|
548
|
+
mainContent: "flex-grow overflow-y-auto w-full",
|
|
549
|
+
bodyBlobs: [],
|
|
550
|
+
useGlassBody: !0
|
|
548
551
|
},
|
|
549
552
|
statusColors: {
|
|
550
553
|
success: {
|
|
@@ -723,7 +726,9 @@ var v = /* @__PURE__ */ function(e) {
|
|
|
723
726
|
layout: {
|
|
724
727
|
sidebar: { container: "bg-zinc-950/40 backdrop-blur-3xl border-r border-white/5" },
|
|
725
728
|
topbar: { container: "bg-gradient-to-r from-zinc-950 via-zinc-900 to-zinc-950" },
|
|
726
|
-
main: "
|
|
729
|
+
main: "w-full h-screen min-h-screen overflow-hidden flex flex-row",
|
|
730
|
+
contentWrapper: "flex-1 flex flex-col min-w-0 h-screen overflow-hidden relative",
|
|
731
|
+
mainContent: "flex-grow overflow-y-auto w-full",
|
|
727
732
|
bodyBlobs: []
|
|
728
733
|
},
|
|
729
734
|
statusColors: {
|
|
@@ -1321,9 +1326,9 @@ var v = /* @__PURE__ */ function(e) {
|
|
|
1321
1326
|
},
|
|
1322
1327
|
layout: {
|
|
1323
1328
|
bodyWrapper: "min-h-screen relative overflow-hidden transition-theme flex flex-col font-sans bg-fixed bg-cover bg-center",
|
|
1324
|
-
bodyContent: "relative z-10 min-h-screen w-full flex flex-
|
|
1329
|
+
bodyContent: "relative z-10 min-h-screen w-full flex flex-row border-none overflow-hidden",
|
|
1325
1330
|
bodyCorner: "rounded-none",
|
|
1326
|
-
bodyPadding: "p-
|
|
1331
|
+
bodyPadding: "p-0",
|
|
1327
1332
|
bodyMargin: "m-0",
|
|
1328
1333
|
bodyBlobs: []
|
|
1329
1334
|
}
|
|
@@ -1376,8 +1381,11 @@ var v = /* @__PURE__ */ function(e) {
|
|
|
1376
1381
|
layout: {
|
|
1377
1382
|
sidebar: { container: "bg-white border-r border-zinc-100" },
|
|
1378
1383
|
topbar: { container: "bg-gradient-to-r from-zinc-50 via-white to-zinc-100" },
|
|
1379
|
-
main: "
|
|
1380
|
-
|
|
1384
|
+
main: "w-full h-screen min-h-screen overflow-hidden flex flex-row",
|
|
1385
|
+
contentWrapper: "flex-1 flex flex-col min-w-0 h-screen overflow-hidden relative",
|
|
1386
|
+
mainContent: "flex-grow overflow-y-auto w-full",
|
|
1387
|
+
bodyBlobs: [],
|
|
1388
|
+
useGlassBody: !0
|
|
1381
1389
|
},
|
|
1382
1390
|
statusColors: {
|
|
1383
1391
|
success: {
|
|
@@ -1556,7 +1564,9 @@ var v = /* @__PURE__ */ function(e) {
|
|
|
1556
1564
|
layout: {
|
|
1557
1565
|
sidebar: { container: "bg-zinc-950 border-r border-white/5" },
|
|
1558
1566
|
topbar: { container: "bg-zinc-950 border-white/5" },
|
|
1559
|
-
main: "
|
|
1567
|
+
main: "w-full h-screen min-h-screen overflow-hidden flex flex-row",
|
|
1568
|
+
contentWrapper: "flex-1 flex flex-col min-w-0 h-screen overflow-hidden relative",
|
|
1569
|
+
mainContent: "flex-grow overflow-y-auto w-full",
|
|
1560
1570
|
bodyBlobs: []
|
|
1561
1571
|
},
|
|
1562
1572
|
statusColors: {
|
|
@@ -2214,7 +2224,9 @@ var v = /* @__PURE__ */ function(e) {
|
|
|
2214
2224
|
layout: {
|
|
2215
2225
|
sidebar: { container: "bg-white/30 backdrop-blur-2xl border-r border-white/20" },
|
|
2216
2226
|
topbar: { container: "bg-transparent border-none shadow-none backdrop-blur-none" },
|
|
2217
|
-
main: "
|
|
2227
|
+
main: "w-full h-screen min-h-screen overflow-hidden flex flex-row",
|
|
2228
|
+
contentWrapper: "flex-1 flex flex-col min-w-0 h-screen overflow-hidden relative",
|
|
2229
|
+
mainContent: "flex-grow overflow-y-auto w-full",
|
|
2218
2230
|
bodyBlobs: [
|
|
2219
2231
|
"bg-[#7a7adb]/30",
|
|
2220
2232
|
"bg-[#ff7aa2]/20",
|
|
@@ -2400,7 +2412,9 @@ var v = /* @__PURE__ */ function(e) {
|
|
|
2400
2412
|
layout: {
|
|
2401
2413
|
sidebar: { container: "bg-black/20 backdrop-blur-2xl border-r border-white/10" },
|
|
2402
2414
|
topbar: { container: "bg-transparent border-none shadow-none backdrop-blur-none" },
|
|
2403
|
-
main: "
|
|
2415
|
+
main: "w-full h-screen min-h-screen overflow-hidden flex flex-row",
|
|
2416
|
+
contentWrapper: "flex-1 flex flex-col min-w-0 h-screen overflow-hidden relative",
|
|
2417
|
+
mainContent: "flex-grow overflow-y-auto w-full",
|
|
2404
2418
|
bodyBlobs: [
|
|
2405
2419
|
"bg-[#7a7adb]/30",
|
|
2406
2420
|
"bg-[#ff7aa2]/20",
|
|
@@ -2543,7 +2557,7 @@ var v = /* @__PURE__ */ function(e) {
|
|
|
2543
2557
|
mandala: D,
|
|
2544
2558
|
mispuntos: k,
|
|
2545
2559
|
glassmorphism: j
|
|
2546
|
-
}, N = t(void 0),
|
|
2560
|
+
}, N = t(void 0), ee = ({ children: e }) => {
|
|
2547
2561
|
let [t, n] = o(() => localStorage.getItem("tiger-theme-name") || "mandala"), [r, a] = o(() => {
|
|
2548
2562
|
let e = localStorage.getItem("tiger-theme-mode");
|
|
2549
2563
|
return e && Object.values(v).includes(e) ? e : M[t]?.defaultMode || v.Light;
|
|
@@ -2569,51 +2583,51 @@ var v = /* @__PURE__ */ function(e) {
|
|
|
2569
2583
|
},
|
|
2570
2584
|
children: e
|
|
2571
2585
|
});
|
|
2572
|
-
},
|
|
2586
|
+
}, P = () => {
|
|
2573
2587
|
let e = r(N);
|
|
2574
2588
|
if (!e) throw Error("useTheme must be used within a ThemeProvider");
|
|
2575
2589
|
return e;
|
|
2576
2590
|
};
|
|
2577
2591
|
//#endregion
|
|
2578
2592
|
//#region src/infrastructure/lib/utils.ts
|
|
2579
|
-
function
|
|
2593
|
+
function F(...e) {
|
|
2580
2594
|
return d(u(e));
|
|
2581
2595
|
}
|
|
2582
2596
|
//#endregion
|
|
2583
2597
|
//#region src/presentation/components/TigerTypography.tsx
|
|
2584
|
-
var
|
|
2585
|
-
let { theme: l } =
|
|
2598
|
+
var I = ({ children: e, size: t = y.Medium, variant: n = "p", bold: r = !1, italic: i = !1, className: a, style: o, id: s }) => {
|
|
2599
|
+
let { theme: l } = P(), u = n, d = l.geometry.typography, f = r || t === y.Xlarge ? d.weights.bold : d.weights.normal, p = i ? d.styles.italic : d.styles.normal;
|
|
2586
2600
|
return /* @__PURE__ */ c(u, {
|
|
2587
2601
|
id: s,
|
|
2588
|
-
className:
|
|
2602
|
+
className: F(d[t], f, p, a),
|
|
2589
2603
|
style: o,
|
|
2590
2604
|
children: e
|
|
2591
2605
|
});
|
|
2592
|
-
},
|
|
2593
|
-
let { theme: a, themeConfig: o } =
|
|
2606
|
+
}, te = ({ children: e, variant: t = w.Primary, size: n = y.Medium, className: r, style: i }) => {
|
|
2607
|
+
let { theme: a, themeConfig: o } = P(), s = a.geometry.badges[n];
|
|
2594
2608
|
return /* @__PURE__ */ c("div", {
|
|
2595
|
-
className:
|
|
2609
|
+
className: F(a.geometry.badges.baseStyles, o.badges.base, s.container, o.badges.variants[t], r),
|
|
2596
2610
|
style: i,
|
|
2597
|
-
children: /* @__PURE__ */ c(
|
|
2611
|
+
children: /* @__PURE__ */ c(I, {
|
|
2598
2612
|
size: n,
|
|
2599
2613
|
bold: !0,
|
|
2600
2614
|
className: a.geometry.badges.typography,
|
|
2601
2615
|
children: e
|
|
2602
2616
|
})
|
|
2603
2617
|
});
|
|
2604
|
-
},
|
|
2605
|
-
let { theme: a, themeConfig: o } =
|
|
2618
|
+
}, ne = ({ variant: e = T.Primary, size: t = y.Medium, className: n, children: r, ...i }) => {
|
|
2619
|
+
let { theme: a, themeConfig: o } = P(), s = o.buttons[e], l = t, u = a.geometry.buttons[l], d = a.geometry.buttons.typographyMappings[l];
|
|
2606
2620
|
return /* @__PURE__ */ c("button", {
|
|
2607
|
-
className:
|
|
2621
|
+
className: F(a.geometry.buttons.baseStyles, s, u.size, n),
|
|
2608
2622
|
...i,
|
|
2609
|
-
children: /* @__PURE__ */ c(
|
|
2623
|
+
children: /* @__PURE__ */ c(I, {
|
|
2610
2624
|
size: d,
|
|
2611
2625
|
className: a.geometry.buttons.baseTypography,
|
|
2612
2626
|
children: r
|
|
2613
2627
|
})
|
|
2614
2628
|
});
|
|
2615
|
-
},
|
|
2616
|
-
let { theme: a, themeConfig: o } =
|
|
2629
|
+
}, L = ({ checked: e = !1, onChange: t, size: n = y.Medium, className: r, disabled: i = !1 }) => {
|
|
2630
|
+
let { theme: a, themeConfig: o } = P(), s = a.geometry.checkbox[n], l = () => {
|
|
2617
2631
|
!i && t && t(!e);
|
|
2618
2632
|
};
|
|
2619
2633
|
return /* @__PURE__ */ c("button", {
|
|
@@ -2622,30 +2636,30 @@ var L = ({ children: e, size: t = y.Medium, variant: n = "p", bold: r = !1, ital
|
|
|
2622
2636
|
"aria-checked": e,
|
|
2623
2637
|
disabled: i,
|
|
2624
2638
|
onClick: l,
|
|
2625
|
-
className:
|
|
2639
|
+
className: F(o.checkbox.base, s.size, e ? o.checkbox.checked : o.checkbox.unchecked, i && a.geometry.checkbox.disabledStyles, r),
|
|
2626
2640
|
children: /* @__PURE__ */ c(f, {
|
|
2627
2641
|
size: s.iconSize,
|
|
2628
2642
|
strokeWidth: 4,
|
|
2629
|
-
className:
|
|
2643
|
+
className: F(a.geometry.checkbox.icon.baseStyles, e ? a.geometry.checkbox.icon.checked : a.geometry.checkbox.icon.unchecked)
|
|
2630
2644
|
})
|
|
2631
2645
|
});
|
|
2632
2646
|
}, R = ({ variant: t = T.Primary, size: n = y.Medium, className: r, icon: i, children: a, onClick: o, disabled: s, "aria-label": l }) => {
|
|
2633
|
-
let { theme: u, themeConfig: d } =
|
|
2647
|
+
let { theme: u, themeConfig: d } = P(), f = d.iconButtons[t], p = u.geometry.iconButtons[n], m = () => {
|
|
2634
2648
|
let t = i || a;
|
|
2635
2649
|
return e.isValidElement(t) ? e.cloneElement(t, { size: p.iconSize }) : t;
|
|
2636
2650
|
};
|
|
2637
2651
|
return /* @__PURE__ */ c("button", {
|
|
2638
|
-
className:
|
|
2652
|
+
className: F(u.geometry.iconButtons.baseStyles, f, p.size, p.padding, r),
|
|
2639
2653
|
onClick: o,
|
|
2640
2654
|
disabled: s,
|
|
2641
2655
|
"aria-label": l,
|
|
2642
2656
|
children: m()
|
|
2643
2657
|
});
|
|
2644
2658
|
}, z = n(({ size: e = y.Medium, className: t, style: n, ...r }, i) => {
|
|
2645
|
-
let { theme: a, themeConfig: o } =
|
|
2659
|
+
let { theme: a, themeConfig: o } = P(), s = e;
|
|
2646
2660
|
return /* @__PURE__ */ c("input", {
|
|
2647
2661
|
ref: i,
|
|
2648
|
-
className:
|
|
2662
|
+
className: F(a.geometry.input.baseStyles, o.input, a.geometry.input[s].size, t),
|
|
2649
2663
|
style: n,
|
|
2650
2664
|
...r
|
|
2651
2665
|
});
|
|
@@ -2654,37 +2668,37 @@ z.displayName = "TigerInput";
|
|
|
2654
2668
|
//#endregion
|
|
2655
2669
|
//#region src/presentation/components/TigerProgress.tsx
|
|
2656
2670
|
var re = ({ value: e = 0, currentStep: t = 0, totalSteps: n = 5, variant: r = "bar", max: i = 100, size: a = y.Medium, showValue: o = !0, className: s }) => {
|
|
2657
|
-
let { theme: u, themeConfig: d } =
|
|
2658
|
-
className:
|
|
2671
|
+
let { theme: u, themeConfig: d } = P(), f = Math.min(Math.max(r === "bar" ? e / i * 100 : t / n * 100, 0), 100), p = u.geometry.progress, m = d.progress, h = a, g = p[h], _ = () => /* @__PURE__ */ c("div", {
|
|
2672
|
+
className: F(p.track, g.height, g.trackRadius, m.track),
|
|
2659
2673
|
children: /* @__PURE__ */ c("div", {
|
|
2660
|
-
className:
|
|
2674
|
+
className: F(p.fill, g.trackRadius, m.fill),
|
|
2661
2675
|
style: { width: `${f}%` },
|
|
2662
|
-
children: /* @__PURE__ */ c("div", { className:
|
|
2676
|
+
children: /* @__PURE__ */ c("div", { className: F(p.fillEffect, m.fillEffectColor) })
|
|
2663
2677
|
})
|
|
2664
2678
|
}), v = () => /* @__PURE__ */ c("div", {
|
|
2665
|
-
className:
|
|
2679
|
+
className: F(p.stepContainer, g.gap),
|
|
2666
2680
|
children: Array.from({ length: n }).map((e, n) => /* @__PURE__ */ c("div", {
|
|
2667
|
-
className:
|
|
2668
|
-
children: n < t && /* @__PURE__ */ c("div", { className:
|
|
2681
|
+
className: F(p.step, g.height, g.trackRadius, n < t ? m.fill : m.unfilled),
|
|
2682
|
+
children: n < t && /* @__PURE__ */ c("div", { className: F(p.stepEffect, m.fillEffectColor) })
|
|
2669
2683
|
}, n))
|
|
2670
2684
|
}), b = r === "bar" ? `${Math.round(f)}%` : `${t}/${n}`;
|
|
2671
2685
|
return /* @__PURE__ */ l("div", {
|
|
2672
|
-
className:
|
|
2686
|
+
className: F(p.container, s),
|
|
2673
2687
|
children: [/* @__PURE__ */ c("div", {
|
|
2674
2688
|
className: p.wrapper,
|
|
2675
2689
|
children: r === "bar" ? _() : v()
|
|
2676
2690
|
}), o && /* @__PURE__ */ c("div", {
|
|
2677
2691
|
className: p.valueContainer,
|
|
2678
|
-
children: /* @__PURE__ */ c(
|
|
2692
|
+
children: /* @__PURE__ */ c(I, {
|
|
2679
2693
|
size: p.typographyMappings[h],
|
|
2680
2694
|
bold: !0,
|
|
2681
|
-
className:
|
|
2695
|
+
className: F(p.valueStyles, m.value),
|
|
2682
2696
|
children: b
|
|
2683
2697
|
})
|
|
2684
2698
|
})]
|
|
2685
2699
|
});
|
|
2686
2700
|
}, ie = ({ checked: e, onChange: t, disabled: n = !1, size: r = y.Medium, color: i = E.Primary, label: a, description: o, className: s }) => {
|
|
2687
|
-
let { theme: u, themeConfig: d } =
|
|
2701
|
+
let { theme: u, themeConfig: d } = P(), f = r, p = u.geometry.switch[f], m = () => {
|
|
2688
2702
|
if (n) return d.switch.disabled;
|
|
2689
2703
|
if (e) {
|
|
2690
2704
|
let e = i || E.Primary;
|
|
@@ -2693,15 +2707,15 @@ var re = ({ value: e = 0, currentStep: t = 0, totalSteps: n = 5, variant: r = "b
|
|
|
2693
2707
|
return d.switch.disabled;
|
|
2694
2708
|
};
|
|
2695
2709
|
return /* @__PURE__ */ l("div", {
|
|
2696
|
-
className:
|
|
2710
|
+
className: F("flex items-start gap-3", s),
|
|
2697
2711
|
children: [/* @__PURE__ */ c("button", {
|
|
2698
2712
|
role: "switch",
|
|
2699
2713
|
"aria-checked": e,
|
|
2700
2714
|
"aria-disabled": n,
|
|
2701
2715
|
onClick: () => !n && t(!e),
|
|
2702
2716
|
disabled: n,
|
|
2703
|
-
className:
|
|
2704
|
-
children: /* @__PURE__ */ c("div", { className:
|
|
2717
|
+
className: F(u.geometry.switch.baseStyles, p.track, m()),
|
|
2718
|
+
children: /* @__PURE__ */ c("div", { className: F(u.geometry.switch.thumbStyles, p.thumb, e ? p.translateChecked : p.translateUnchecked) })
|
|
2705
2719
|
}), (a || o) && /* @__PURE__ */ l("div", {
|
|
2706
2720
|
className: "flex flex-col gap-1",
|
|
2707
2721
|
children: [a && /* @__PURE__ */ c("label", {
|
|
@@ -2714,12 +2728,12 @@ var re = ({ value: e = 0, currentStep: t = 0, totalSteps: n = 5, variant: r = "b
|
|
|
2714
2728
|
})]
|
|
2715
2729
|
});
|
|
2716
2730
|
}, ae = ({ children: e, className: t, style: n, size: r = y.Medium, onClick: i }) => {
|
|
2717
|
-
let { theme: a, themeConfig: o } =
|
|
2731
|
+
let { theme: a, themeConfig: o } = P(), s = r, l = a.geometry.cards[s].size, u = a.geometry.cards.typographyMappings[s], d = a.geometry.typography[u];
|
|
2718
2732
|
return /* @__PURE__ */ c("div", {
|
|
2719
2733
|
onClick: i,
|
|
2720
2734
|
role: i ? "button" : void 0,
|
|
2721
2735
|
tabIndex: i ? 0 : void 0,
|
|
2722
|
-
className:
|
|
2736
|
+
className: F(o.card, o.glass.blur, a.geometry.glassContainer.defaultPadding, a.geometry.cards.baseStyles, l, d, i && a.geometry.cards.interactiveStyles, t),
|
|
2723
2737
|
style: {
|
|
2724
2738
|
border: `${a.geometry.cards.borderStyle} ${o.borders.container}`,
|
|
2725
2739
|
boxShadow: o.shadows[s],
|
|
@@ -2728,34 +2742,46 @@ var re = ({ value: e = 0, currentStep: t = 0, totalSteps: n = 5, variant: r = "b
|
|
|
2728
2742
|
children: e
|
|
2729
2743
|
});
|
|
2730
2744
|
}, B = ({ children: e, className: t, style: n, onClick: r, ...i }) => {
|
|
2731
|
-
let { theme: a, themeConfig: o } =
|
|
2745
|
+
let { theme: a, themeConfig: o } = P(), s = o.glass.container;
|
|
2732
2746
|
return /* @__PURE__ */ c("div", {
|
|
2733
2747
|
onClick: r,
|
|
2734
2748
|
role: r ? "button" : void 0,
|
|
2735
2749
|
tabIndex: r ? 0 : void 0,
|
|
2736
|
-
className:
|
|
2750
|
+
className: F(s, o.glass.blur, a.geometry.glassContainer.defaultBorderRadius, a.geometry.glassContainer.defaultPadding, a.geometry.glassContainer.transition, r && a.geometry.glassContainer.interactiveStyles, t),
|
|
2737
2751
|
style: n,
|
|
2738
2752
|
...i,
|
|
2739
2753
|
children: e
|
|
2740
2754
|
});
|
|
2741
2755
|
}, oe = ({ children: e }) => {
|
|
2742
|
-
let { themeConfig: t, theme: n } =
|
|
2756
|
+
let { themeConfig: t, theme: n } = P(), r = t.layout.useGlassBody, i = n.geometry.layout;
|
|
2743
2757
|
return r ? /* @__PURE__ */ l("div", {
|
|
2744
|
-
className:
|
|
2758
|
+
className: F(i.bodyWrapper, !t.bgImage && t.gradient, !t.bgImage && "bg-gradient-to-br"),
|
|
2745
2759
|
style: t.bgImage ? { backgroundImage: `url(${t.bgImage})` } : {},
|
|
2746
2760
|
children: [/* @__PURE__ */ c("div", {
|
|
2747
2761
|
className: "fixed inset-0 pointer-events-none z-0 overflow-hidden",
|
|
2748
|
-
children: i.bodyBlobs?.map((e, n) => /* @__PURE__ */ c("div", { className:
|
|
2762
|
+
children: i.bodyBlobs?.map((e, n) => /* @__PURE__ */ c("div", { className: F(e, t.layout.bodyBlobs?.[n]) }, n))
|
|
2749
2763
|
}), /* @__PURE__ */ c("div", {
|
|
2750
|
-
className:
|
|
2764
|
+
className: F("fixed inset-0 flex flex-col pointer-events-none", i.bodyMargin),
|
|
2751
2765
|
children: /* @__PURE__ */ c("div", {
|
|
2752
|
-
className:
|
|
2766
|
+
className: F("flex-grow flex pointer-events-auto", i.bodyContent, i.bodyCorner, i.bodyPadding, t.glass.blur, t.glass.container),
|
|
2753
2767
|
children: e
|
|
2754
2768
|
})
|
|
2755
2769
|
})]
|
|
2756
2770
|
}) : /* @__PURE__ */ c(s, { children: e });
|
|
2757
|
-
}, se = ({
|
|
2758
|
-
let {
|
|
2771
|
+
}, se = ({ sidebar: e, topbar: t, children: n, className: r }) => {
|
|
2772
|
+
let { themeConfig: i, theme: a } = P(), o = a.geometry.layout;
|
|
2773
|
+
return /* @__PURE__ */ l("div", {
|
|
2774
|
+
className: F(i.layout.main, r),
|
|
2775
|
+
children: [e, /* @__PURE__ */ l("div", {
|
|
2776
|
+
className: F(i.layout.contentWrapper),
|
|
2777
|
+
children: [t, /* @__PURE__ */ c("main", {
|
|
2778
|
+
className: F(i.layout.mainContent, o.bodyPadding),
|
|
2779
|
+
children: n
|
|
2780
|
+
})]
|
|
2781
|
+
})]
|
|
2782
|
+
});
|
|
2783
|
+
}, ce = ({ items: e, activeId: t, onItemSelect: n, header: r, footer: i, className: a }) => {
|
|
2784
|
+
let { theme: s, themeConfig: u } = P(), [d, f] = o({}), h = s.geometry.sidebar, g = (e) => {
|
|
2759
2785
|
f((t) => ({
|
|
2760
2786
|
...t,
|
|
2761
2787
|
[e]: !t[e]
|
|
@@ -2768,10 +2794,10 @@ var re = ({ value: e = 0, currentStep: t = 0, totalSteps: n = 5, variant: r = "b
|
|
|
2768
2794
|
onClick: (t) => {
|
|
2769
2795
|
t.preventDefault(), t.stopPropagation(), i ? g(e.id) : n(e.id);
|
|
2770
2796
|
},
|
|
2771
|
-
className:
|
|
2797
|
+
className: F(h.item, r > 0 && "pl-10", a ? u.sidebarActive : u.sidebarInactive),
|
|
2772
2798
|
children: [/* @__PURE__ */ l("div", {
|
|
2773
2799
|
className: "flex items-center gap-3 flex-1",
|
|
2774
|
-
children: [/* @__PURE__ */ c(e.icon, { size: h.iconSize }), /* @__PURE__ */ c(
|
|
2800
|
+
children: [/* @__PURE__ */ c(e.icon, { size: h.iconSize }), /* @__PURE__ */ c(I, {
|
|
2775
2801
|
size: r > 0 ? y.Small : y.Medium,
|
|
2776
2802
|
children: e.label
|
|
2777
2803
|
})]
|
|
@@ -2783,9 +2809,9 @@ var re = ({ value: e = 0, currentStep: t = 0, totalSteps: n = 5, variant: r = "b
|
|
|
2783
2809
|
}, e.id);
|
|
2784
2810
|
};
|
|
2785
2811
|
return /* @__PURE__ */ c("aside", {
|
|
2786
|
-
className:
|
|
2812
|
+
className: F(h.wrapper, h.margin, a),
|
|
2787
2813
|
children: /* @__PURE__ */ l(B, {
|
|
2788
|
-
className:
|
|
2814
|
+
className: F(h.container, u.layout.sidebar.container, h.padding, h.corner),
|
|
2789
2815
|
children: [
|
|
2790
2816
|
u.logo && /* @__PURE__ */ c("div", {
|
|
2791
2817
|
className: h.logoContainer,
|
|
@@ -2797,7 +2823,7 @@ var re = ({ value: e = 0, currentStep: t = 0, totalSteps: n = 5, variant: r = "b
|
|
|
2797
2823
|
}),
|
|
2798
2824
|
r,
|
|
2799
2825
|
/* @__PURE__ */ c("nav", {
|
|
2800
|
-
className:
|
|
2826
|
+
className: F(h.nav, "flex flex-col gap-1"),
|
|
2801
2827
|
children: e.map((e) => v(e))
|
|
2802
2828
|
}),
|
|
2803
2829
|
i
|
|
@@ -2805,28 +2831,28 @@ var re = ({ value: e = 0, currentStep: t = 0, totalSteps: n = 5, variant: r = "b
|
|
|
2805
2831
|
})
|
|
2806
2832
|
});
|
|
2807
2833
|
}, V = ({ children: e, direction: t = "vertical", gap: n = y.Medium, align: r = "center", className: i }) => {
|
|
2808
|
-
let { theme: a } =
|
|
2834
|
+
let { theme: a } = P(), o = a.geometry.stack, s = o[n], l = o.directions[t], u = o.alignments[t][r];
|
|
2809
2835
|
return /* @__PURE__ */ c("div", {
|
|
2810
|
-
className:
|
|
2836
|
+
className: F(o.flexBase, l, s.gap, u, i),
|
|
2811
2837
|
children: e
|
|
2812
2838
|
});
|
|
2813
2839
|
}, H = ({ title: e, description: t, actions: n, className: r }) => {
|
|
2814
|
-
let { themeConfig: i, theme: a } =
|
|
2840
|
+
let { themeConfig: i, theme: a } = P(), o = a.geometry.topbar;
|
|
2815
2841
|
return /* @__PURE__ */ l("header", {
|
|
2816
|
-
className:
|
|
2842
|
+
className: F(o.wrapper, i.layout.topbar.container, o.padding, o.margin, o.corner, o.height, o.width, r),
|
|
2817
2843
|
children: [
|
|
2818
2844
|
(e || t) && /* @__PURE__ */ l("div", {
|
|
2819
2845
|
className: o.titleContainer,
|
|
2820
2846
|
children: [e && /* @__PURE__ */ c("div", {
|
|
2821
2847
|
className: o.title,
|
|
2822
|
-
children: ((e) => typeof e == "string" ? /* @__PURE__ */ c(
|
|
2848
|
+
children: ((e) => typeof e == "string" ? /* @__PURE__ */ c(I, {
|
|
2823
2849
|
size: y.Xlarge,
|
|
2824
2850
|
bold: !0,
|
|
2825
2851
|
children: e
|
|
2826
2852
|
}) : e)(e)
|
|
2827
2853
|
}), t && /* @__PURE__ */ c("div", {
|
|
2828
2854
|
className: o.descriptionContainer,
|
|
2829
|
-
children: ((e) => typeof e == "string" ? /* @__PURE__ */ c(
|
|
2855
|
+
children: ((e) => typeof e == "string" ? /* @__PURE__ */ c(I, {
|
|
2830
2856
|
size: y.Medium,
|
|
2831
2857
|
children: e
|
|
2832
2858
|
}) : e)(t)
|
|
@@ -2857,17 +2883,17 @@ var re = ({ value: e = 0, currentStep: t = 0, totalSteps: n = 5, variant: r = "b
|
|
|
2857
2883
|
[y.Xlarge]: "text-xl"
|
|
2858
2884
|
};
|
|
2859
2885
|
return /* @__PURE__ */ c("div", {
|
|
2860
|
-
className:
|
|
2886
|
+
className: F("space-y-2", a),
|
|
2861
2887
|
children: e.map((e) => {
|
|
2862
2888
|
let t = s.has(e.id), n = e.disabled || !1;
|
|
2863
2889
|
return /* @__PURE__ */ l("div", {
|
|
2864
|
-
className:
|
|
2890
|
+
className: F("border border-white/10 rounded-xl overflow-hidden transition-all duration-200"),
|
|
2865
2891
|
children: [/* @__PURE__ */ l("button", {
|
|
2866
2892
|
onClick: () => !n && d(e.id),
|
|
2867
2893
|
disabled: n,
|
|
2868
2894
|
"aria-expanded": t,
|
|
2869
2895
|
"aria-disabled": n,
|
|
2870
|
-
className:
|
|
2896
|
+
className: F("w-full flex items-center justify-between", f[i], "transition-all duration-200 font-bold", m[i], !n && "hover:bg-white/5 dark:hover:bg-white/10", n && "opacity-50 cursor-not-allowed", "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-blue-500"),
|
|
2871
2897
|
children: [/* @__PURE__ */ l("div", {
|
|
2872
2898
|
className: "flex items-center gap-3 flex-1 text-left",
|
|
2873
2899
|
children: [e.icon && /* @__PURE__ */ c("div", {
|
|
@@ -2876,12 +2902,12 @@ var re = ({ value: e = 0, currentStep: t = 0, totalSteps: n = 5, variant: r = "b
|
|
|
2876
2902
|
}), /* @__PURE__ */ c("span", { children: e.title })]
|
|
2877
2903
|
}), /* @__PURE__ */ c(p, {
|
|
2878
2904
|
size: 20,
|
|
2879
|
-
className:
|
|
2905
|
+
className: F("flex-shrink-0 transition-transform duration-300", t && "rotate-180")
|
|
2880
2906
|
})]
|
|
2881
2907
|
}), /* @__PURE__ */ c("div", {
|
|
2882
|
-
className:
|
|
2908
|
+
className: F("overflow-hidden transition-all duration-300 ease-in-out", t ? "max-h-[1000px] opacity-100" : "max-h-0 opacity-0"),
|
|
2883
2909
|
children: /* @__PURE__ */ c("div", {
|
|
2884
|
-
className:
|
|
2910
|
+
className: F(f[i], "pt-0 border-t border-white/5", "text-sm opacity-80"),
|
|
2885
2911
|
children: e.content
|
|
2886
2912
|
})
|
|
2887
2913
|
})]
|
|
@@ -2913,19 +2939,19 @@ var re = ({ value: e = 0, currentStep: t = 0, totalSteps: n = 5, variant: r = "b
|
|
|
2913
2939
|
contentRef: d
|
|
2914
2940
|
},
|
|
2915
2941
|
children: /* @__PURE__ */ c("div", {
|
|
2916
|
-
className:
|
|
2942
|
+
className: F("relative inline-block w-full", n),
|
|
2917
2943
|
style: r,
|
|
2918
2944
|
children: e
|
|
2919
2945
|
})
|
|
2920
2946
|
});
|
|
2921
2947
|
}, J = ({ label: e, value: t, className: n, children: r, ...i }) => {
|
|
2922
|
-
let { isOpen: a, setIsOpen: o, triggerRef: s } = K(), { themeConfig: u } =
|
|
2948
|
+
let { isOpen: a, setIsOpen: o, triggerRef: s } = K(), { themeConfig: u } = P();
|
|
2923
2949
|
return /* @__PURE__ */ l("button", {
|
|
2924
2950
|
ref: s,
|
|
2925
2951
|
onClick: (e) => {
|
|
2926
2952
|
e.stopPropagation(), o(!a), i.onClick?.(e);
|
|
2927
2953
|
},
|
|
2928
|
-
className:
|
|
2954
|
+
className: F(u.dropdown?.trigger || "flex items-center justify-between gap-2", n),
|
|
2929
2955
|
"aria-haspopup": "listbox",
|
|
2930
2956
|
"aria-expanded": a,
|
|
2931
2957
|
...i,
|
|
@@ -2934,20 +2960,20 @@ var re = ({ value: e = 0, currentStep: t = 0, totalSteps: n = 5, variant: r = "b
|
|
|
2934
2960
|
children: t === void 0 ? r || e : t
|
|
2935
2961
|
}), /* @__PURE__ */ c(p, {
|
|
2936
2962
|
size: 16,
|
|
2937
|
-
className:
|
|
2963
|
+
className: F("transition-transform duration-300", a && "rotate-180")
|
|
2938
2964
|
})]
|
|
2939
2965
|
});
|
|
2940
2966
|
}, Y = ({ children: e, size: t = y.Medium, className: n, ...r }) => {
|
|
2941
|
-
let { isOpen: i, contentRef: a } = K(), { theme: o, themeConfig: s } =
|
|
2967
|
+
let { isOpen: i, contentRef: a } = K(), { theme: o, themeConfig: s } = P(), l = t;
|
|
2942
2968
|
return i ? /* @__PURE__ */ c("div", {
|
|
2943
2969
|
ref: a,
|
|
2944
2970
|
role: "listbox",
|
|
2945
|
-
className:
|
|
2971
|
+
className: F("absolute left-0", s.dropdown?.content || "", o.geometry.dropdown?.[l]?.size || "", o.geometry.dropdown?.contentPositioning || "", n),
|
|
2946
2972
|
...r,
|
|
2947
2973
|
children: e
|
|
2948
2974
|
}) : null;
|
|
2949
2975
|
}, X = ({ children: e, className: t, onClick: n, ...r }) => {
|
|
2950
|
-
let [i, a] = o(!1), { setIsOpen: s } = K(), { themeConfig: l } =
|
|
2976
|
+
let [i, a] = o(!1), { setIsOpen: s } = K(), { themeConfig: l } = P();
|
|
2951
2977
|
return /* @__PURE__ */ c("button", {
|
|
2952
2978
|
role: "option",
|
|
2953
2979
|
onClick: (e) => {
|
|
@@ -2955,7 +2981,7 @@ var re = ({ value: e = 0, currentStep: t = 0, totalSteps: n = 5, variant: r = "b
|
|
|
2955
2981
|
},
|
|
2956
2982
|
onMouseEnter: () => a(!0),
|
|
2957
2983
|
onMouseLeave: () => a(!1),
|
|
2958
|
-
className:
|
|
2984
|
+
className: F(l.dropdown?.item || "", i && (l.dropdown?.itemHover || ""), t),
|
|
2959
2985
|
...r,
|
|
2960
2986
|
children: e
|
|
2961
2987
|
});
|
|
@@ -2963,28 +2989,28 @@ var re = ({ value: e = 0, currentStep: t = 0, totalSteps: n = 5, variant: r = "b
|
|
|
2963
2989
|
q.displayName = "TigerDropdown", J.displayName = "TigerDropdownTrigger", Y.displayName = "TigerDropdownContent", X.displayName = "TigerDropdownItem";
|
|
2964
2990
|
//#endregion
|
|
2965
2991
|
//#region src/presentation/components/TigerList.tsx
|
|
2966
|
-
var
|
|
2967
|
-
let { theme: a, themeConfig: o } =
|
|
2992
|
+
var le = ({ children: t, className: n, size: r = y.Medium, divided: i = !0 }) => {
|
|
2993
|
+
let { theme: a, themeConfig: o } = P(), { gap: s, containerCorner: l } = a.geometry.list;
|
|
2968
2994
|
return /* @__PURE__ */ c("div", {
|
|
2969
|
-
className:
|
|
2995
|
+
className: F(o.list.base, s, l, n),
|
|
2970
2996
|
children: e.Children.map(t, (t, n) => e.isValidElement(t) ? e.cloneElement(t, {
|
|
2971
2997
|
size: r,
|
|
2972
2998
|
style: i && n > 0 ? { borderTop: o.list.divider } : {}
|
|
2973
2999
|
}) : t)
|
|
2974
3000
|
});
|
|
2975
|
-
},
|
|
2976
|
-
let { theme: o, themeConfig: s } =
|
|
3001
|
+
}, ue = ({ children: t, className: n, icon: r, size: i = y.Medium, style: a }) => {
|
|
3002
|
+
let { theme: o, themeConfig: s } = P(), u = o.geometry.list, { itemCorner: d, itemGap: f, iconOpacity: p, transition: m } = u, h = u[i].size, g = u.typographyMappings[i];
|
|
2977
3003
|
return /* @__PURE__ */ l("div", {
|
|
2978
|
-
className:
|
|
3004
|
+
className: F(s.list.itemBase, m, f, d, h, n),
|
|
2979
3005
|
style: { ...a },
|
|
2980
3006
|
onMouseEnter: (e) => e.currentTarget.style.backgroundColor = s.list.itemHover,
|
|
2981
3007
|
onMouseLeave: (e) => e.currentTarget.style.backgroundColor = o.geometry.list.itemHoverResetColor,
|
|
2982
3008
|
children: [r && /* @__PURE__ */ c("div", {
|
|
2983
|
-
className:
|
|
2984
|
-
children: e.isValidElement(r) ? e.cloneElement(r, { className:
|
|
3009
|
+
className: F(s.list.iconContainer, p),
|
|
3010
|
+
children: e.isValidElement(r) ? e.cloneElement(r, { className: F(r.props.className, s.list.iconColor) }) : r
|
|
2985
3011
|
}), /* @__PURE__ */ c("div", {
|
|
2986
3012
|
className: s.list.textContainer,
|
|
2987
|
-
children: /* @__PURE__ */ c(
|
|
3013
|
+
children: /* @__PURE__ */ c(I, {
|
|
2988
3014
|
size: g,
|
|
2989
3015
|
className: o.geometry.list.typographyInherit,
|
|
2990
3016
|
children: t
|
|
@@ -2992,9 +3018,9 @@ var ce = ({ children: t, className: n, size: r = y.Medium, divided: i = !0 }) =>
|
|
|
2992
3018
|
})]
|
|
2993
3019
|
});
|
|
2994
3020
|
}, Z = ({ children: e, src: t, alt: n = "", size: r = y.Medium, shape: i = S.Squircle, variant: a = x.Soft, bgColor: o, className: s, style: l }) => {
|
|
2995
|
-
let { theme: u } =
|
|
3021
|
+
let { theme: u } = P(), d = u.geometry.thumbnail, f = d[r], p = d.variants[a];
|
|
2996
3022
|
return /* @__PURE__ */ c("div", {
|
|
2997
|
-
className:
|
|
3023
|
+
className: F(d.baseStyles, f.size, f.shapes[i], p.bg, p.text, s),
|
|
2998
3024
|
style: {
|
|
2999
3025
|
...o ? { backgroundColor: o } : {},
|
|
3000
3026
|
...l
|
|
@@ -3008,10 +3034,10 @@ var ce = ({ children: t, className: n, size: r = y.Medium, divided: i = !0 }) =>
|
|
|
3008
3034
|
children: e
|
|
3009
3035
|
})
|
|
3010
3036
|
});
|
|
3011
|
-
},
|
|
3012
|
-
let { theme: s, themeConfig: u } =
|
|
3037
|
+
}, de = ({ title: e, description: t, icon: n, variant: r = b.Neutral, action: i, onClose: a, className: o }) => {
|
|
3038
|
+
let { theme: s, themeConfig: u } = P(), d = s.geometry.message, f = u.message.variants[r];
|
|
3013
3039
|
return /* @__PURE__ */ l("div", {
|
|
3014
|
-
className:
|
|
3040
|
+
className: F(d.base, d.containerPadding, d.borderRadius, d.transition, f.container, o),
|
|
3015
3041
|
role: "alert",
|
|
3016
3042
|
children: [/* @__PURE__ */ l(V, {
|
|
3017
3043
|
direction: "horizontal",
|
|
@@ -3019,12 +3045,12 @@ var ce = ({ children: t, className: n, size: r = y.Medium, divided: i = !0 }) =>
|
|
|
3019
3045
|
align: "center",
|
|
3020
3046
|
className: "flex-1",
|
|
3021
3047
|
children: [n && /* @__PURE__ */ c("div", {
|
|
3022
|
-
className:
|
|
3048
|
+
className: F("shrink-0", d.gap),
|
|
3023
3049
|
children: /* @__PURE__ */ c(Z, {
|
|
3024
3050
|
shape: S.Circle,
|
|
3025
3051
|
size: y.Medium,
|
|
3026
3052
|
variant: d.thumbnailVariant,
|
|
3027
|
-
className:
|
|
3053
|
+
className: F(f.thumbnail, f.icon),
|
|
3028
3054
|
children: /* @__PURE__ */ c("div", {
|
|
3029
3055
|
className: d.iconSize,
|
|
3030
3056
|
children: n
|
|
@@ -3032,19 +3058,19 @@ var ce = ({ children: t, className: n, size: r = y.Medium, divided: i = !0 }) =>
|
|
|
3032
3058
|
})
|
|
3033
3059
|
}), /* @__PURE__ */ l("div", {
|
|
3034
3060
|
className: d.contentWrapper,
|
|
3035
|
-
children: [/* @__PURE__ */ c(
|
|
3061
|
+
children: [/* @__PURE__ */ c(I, {
|
|
3036
3062
|
size: d.typographyMappings.title,
|
|
3037
3063
|
bold: !0,
|
|
3038
|
-
className:
|
|
3064
|
+
className: F(d.titleExtra, u.cardText),
|
|
3039
3065
|
children: e
|
|
3040
|
-
}), t && /* @__PURE__ */ c(
|
|
3066
|
+
}), t && /* @__PURE__ */ c(I, {
|
|
3041
3067
|
size: d.typographyMappings.description,
|
|
3042
|
-
className:
|
|
3068
|
+
className: F(d.descriptionExtra, u.mutedText),
|
|
3043
3069
|
children: t
|
|
3044
3070
|
})]
|
|
3045
3071
|
})]
|
|
3046
3072
|
}), (i || a) && /* @__PURE__ */ l("div", {
|
|
3047
|
-
className:
|
|
3073
|
+
className: F(d.actionsWrapper, d.actionGap, d.actionMarginLeft),
|
|
3048
3074
|
children: [i, a && /* @__PURE__ */ c("button", {
|
|
3049
3075
|
onClick: a,
|
|
3050
3076
|
className: u.message.closeButton,
|
|
@@ -3073,15 +3099,15 @@ var ce = ({ children: t, className: n, size: r = y.Medium, divided: i = !0 }) =>
|
|
|
3073
3099
|
})]
|
|
3074
3100
|
})]
|
|
3075
3101
|
});
|
|
3076
|
-
},
|
|
3077
|
-
let { theme: f, themeConfig: p } =
|
|
3102
|
+
}, fe = ({ items: e, activeId: t, defaultActiveId: n, onChange: r, size: a = y.Medium, variant: s = C.Segment, fullWidth: u = !1, className: d }) => {
|
|
3103
|
+
let { theme: f, themeConfig: p } = P(), [m, h] = o(t || n || (e.length > 0 ? e[0].id : "")), g = t === void 0 ? m : t, _ = a;
|
|
3078
3104
|
i(() => {
|
|
3079
3105
|
t !== void 0 && h(t);
|
|
3080
3106
|
}, [t]);
|
|
3081
3107
|
let v = (e) => {
|
|
3082
3108
|
h(e), r && r(e);
|
|
3083
3109
|
}, b = f.geometry.tabs, x = () => /* @__PURE__ */ c("div", {
|
|
3084
|
-
className:
|
|
3110
|
+
className: F(p.tabs.container, b.segment.container, u ? b.segment.fullWidth : b.segment.fitted, d),
|
|
3085
3111
|
children: e.map((e) => {
|
|
3086
3112
|
let t = g === e.id;
|
|
3087
3113
|
return /* @__PURE__ */ l("button", {
|
|
@@ -3090,12 +3116,12 @@ var ce = ({ children: t, className: n, size: r = y.Medium, divided: i = !0 }) =>
|
|
|
3090
3116
|
"aria-selected": t,
|
|
3091
3117
|
disabled: e.disabled,
|
|
3092
3118
|
onClick: () => !e.disabled && v(e.id),
|
|
3093
|
-
className:
|
|
3119
|
+
className: F(b.segment.button, b[_].size, f.geometry.typography[b.typographyMappings[_]], u && b.segment.buttonFullWidth, t ? p.tabs.active : p.tabs.inactive, e.disabled && b.disabled),
|
|
3094
3120
|
children: [e.icon, e.label]
|
|
3095
3121
|
}, e.id);
|
|
3096
3122
|
})
|
|
3097
3123
|
}), S = () => /* @__PURE__ */ c("div", {
|
|
3098
|
-
className:
|
|
3124
|
+
className: F(b.underline.container, u ? b.underline.fullWidth : b.underline.fitted, d),
|
|
3099
3125
|
children: e.map((e) => {
|
|
3100
3126
|
let t = g === e.id;
|
|
3101
3127
|
return /* @__PURE__ */ l("button", {
|
|
@@ -3104,16 +3130,16 @@ var ce = ({ children: t, className: n, size: r = y.Medium, divided: i = !0 }) =>
|
|
|
3104
3130
|
"aria-selected": t,
|
|
3105
3131
|
disabled: e.disabled,
|
|
3106
3132
|
onClick: () => !e.disabled && v(e.id),
|
|
3107
|
-
className:
|
|
3133
|
+
className: F(b.underline.button, b[_].size, f.geometry.typography[b.typographyMappings[_]], u && b.underline.buttonFullWidth, e.disabled && b.disabled, t ? p.cardText : p.mutedText),
|
|
3108
3134
|
children: [
|
|
3109
3135
|
e.icon,
|
|
3110
3136
|
e.label,
|
|
3111
|
-
/* @__PURE__ */ c("div", { className:
|
|
3137
|
+
/* @__PURE__ */ c("div", { className: F(b.underline.indicator, t ? b.underline.indicatorActive : b.underline.indicatorInactive) })
|
|
3112
3138
|
]
|
|
3113
3139
|
}, e.id);
|
|
3114
3140
|
})
|
|
3115
3141
|
}), w = () => /* @__PURE__ */ c("div", {
|
|
3116
|
-
className:
|
|
3142
|
+
className: F(b.pill.container, u ? b.pill.fullWidth : b.pill.fitted, d),
|
|
3117
3143
|
children: e.map((e) => {
|
|
3118
3144
|
let t = g === e.id;
|
|
3119
3145
|
return /* @__PURE__ */ l("button", {
|
|
@@ -3122,7 +3148,7 @@ var ce = ({ children: t, className: n, size: r = y.Medium, divided: i = !0 }) =>
|
|
|
3122
3148
|
"aria-selected": t,
|
|
3123
3149
|
disabled: e.disabled,
|
|
3124
3150
|
onClick: () => !e.disabled && v(e.id),
|
|
3125
|
-
className:
|
|
3151
|
+
className: F(b.pill.button, b[_].size, f.geometry.typography[b.typographyMappings[_]], t ? p.tabs.active : p.tabs.inactive, e.disabled && b.disabled),
|
|
3126
3152
|
style: t ? void 0 : { borderColor: p.borders.row },
|
|
3127
3153
|
children: [e.icon, e.label]
|
|
3128
3154
|
}, e.id);
|
|
@@ -3136,13 +3162,13 @@ var ce = ({ children: t, className: n, size: r = y.Medium, divided: i = !0 }) =>
|
|
|
3136
3162
|
s === C.Pill && w(),
|
|
3137
3163
|
T && T.content && /* @__PURE__ */ c("div", {
|
|
3138
3164
|
role: "tabpanel",
|
|
3139
|
-
className:
|
|
3165
|
+
className: F(b.content, b[_].contentSize),
|
|
3140
3166
|
children: T.content
|
|
3141
3167
|
})
|
|
3142
3168
|
]
|
|
3143
3169
|
});
|
|
3144
|
-
},
|
|
3145
|
-
let { theme: f } =
|
|
3170
|
+
}, pe = ({ isOpen: e, onClose: t, title: n, children: r, footer: a, size: s = y.Medium, showCloseButton: u = !0, className: d }) => {
|
|
3171
|
+
let { theme: f } = P(), p = s, [m, _] = o(!1);
|
|
3146
3172
|
if (i(() => (_(!0), e && (document.body.style.overflow = "hidden"), () => {
|
|
3147
3173
|
document.body.style.overflow = "unset";
|
|
3148
3174
|
}), [e]), i(() => {
|
|
@@ -3159,14 +3185,14 @@ var ce = ({ children: t, className: n, size: r = y.Medium, divided: i = !0 }) =>
|
|
|
3159
3185
|
onClick: t,
|
|
3160
3186
|
"aria-hidden": "true"
|
|
3161
3187
|
}), /* @__PURE__ */ l(B, {
|
|
3162
|
-
className:
|
|
3188
|
+
className: F(v.container, v[p].size, d),
|
|
3163
3189
|
role: "dialog",
|
|
3164
3190
|
"aria-modal": "true",
|
|
3165
3191
|
"aria-labelledby": n ? "tiger-modal-title" : void 0,
|
|
3166
3192
|
children: [
|
|
3167
3193
|
(n || u) && /* @__PURE__ */ l("div", {
|
|
3168
3194
|
className: v.headerSpacing,
|
|
3169
|
-
children: [n && /* @__PURE__ */ c(
|
|
3195
|
+
children: [n && /* @__PURE__ */ c(I, {
|
|
3170
3196
|
id: "tiger-modal-title",
|
|
3171
3197
|
size: v.typographyMappings.title,
|
|
3172
3198
|
bold: !0,
|
|
@@ -3174,7 +3200,7 @@ var ce = ({ children: t, className: n, size: r = y.Medium, divided: i = !0 }) =>
|
|
|
3174
3200
|
children: n
|
|
3175
3201
|
}), u && /* @__PURE__ */ c("button", {
|
|
3176
3202
|
onClick: t,
|
|
3177
|
-
className:
|
|
3203
|
+
className: F(v.closeButton, "transition-opacity"),
|
|
3178
3204
|
"aria-label": "Cerrar modal",
|
|
3179
3205
|
children: /* @__PURE__ */ c(h, { size: v.closeIconSize })
|
|
3180
3206
|
})]
|
|
@@ -3184,27 +3210,27 @@ var ce = ({ children: t, className: n, size: r = y.Medium, divided: i = !0 }) =>
|
|
|
3184
3210
|
children: r
|
|
3185
3211
|
}),
|
|
3186
3212
|
a && /* @__PURE__ */ c("div", {
|
|
3187
|
-
className:
|
|
3213
|
+
className: F(v.footerSpacing, v.footerBorder),
|
|
3188
3214
|
children: a
|
|
3189
3215
|
})
|
|
3190
3216
|
]
|
|
3191
3217
|
})]
|
|
3192
3218
|
}), document.body);
|
|
3193
|
-
},
|
|
3194
|
-
let { theme: i, themeConfig: a } =
|
|
3219
|
+
}, me = ({ children: t, size: n = y.Medium, className: r }) => {
|
|
3220
|
+
let { theme: i, themeConfig: a } = P(), o = i.geometry.table;
|
|
3195
3221
|
return /* @__PURE__ */ c("div", {
|
|
3196
3222
|
className: o.container,
|
|
3197
3223
|
style: { border: `${o.containerBorder} ${a.borders.container}` },
|
|
3198
3224
|
children: /* @__PURE__ */ c("div", {
|
|
3199
3225
|
className: o.wrapper,
|
|
3200
3226
|
children: /* @__PURE__ */ c("table", {
|
|
3201
|
-
className:
|
|
3227
|
+
className: F(o.table, r),
|
|
3202
3228
|
children: e.Children.map(t, (t) => e.isValidElement(t) ? e.cloneElement(t, { size: n }) : t)
|
|
3203
3229
|
})
|
|
3204
3230
|
})
|
|
3205
3231
|
});
|
|
3206
|
-
},
|
|
3207
|
-
let { theme: r, themeConfig: i } =
|
|
3232
|
+
}, Q = ({ children: t, size: n }) => {
|
|
3233
|
+
let { theme: r, themeConfig: i } = P(), a = r.geometry.table;
|
|
3208
3234
|
return /* @__PURE__ */ c("thead", {
|
|
3209
3235
|
style: {
|
|
3210
3236
|
backgroundColor: i.table.headerBg,
|
|
@@ -3215,13 +3241,13 @@ var ce = ({ children: t, className: n, size: r = y.Medium, divided: i = !0 }) =>
|
|
|
3215
3241
|
isHeader: !0
|
|
3216
3242
|
}) : t)
|
|
3217
3243
|
});
|
|
3218
|
-
},
|
|
3244
|
+
}, he = ({ children: t, size: n }) => /* @__PURE__ */ c("tbody", {
|
|
3219
3245
|
className: "",
|
|
3220
3246
|
children: e.Children.map(t, (t) => e.isValidElement(t) ? e.cloneElement(t, { size: n }) : t)
|
|
3221
|
-
}),
|
|
3222
|
-
let { theme: i, themeConfig: a } =
|
|
3247
|
+
}), ge = ({ children: t, size: n, isHeader: r }) => {
|
|
3248
|
+
let { theme: i, themeConfig: a } = P(), o = i.geometry.table;
|
|
3223
3249
|
return /* @__PURE__ */ c("tr", {
|
|
3224
|
-
className:
|
|
3250
|
+
className: F(o.head, !r && o.headRow),
|
|
3225
3251
|
style: { backgroundColor: o.rowBackground },
|
|
3226
3252
|
onMouseEnter: (e) => !r && (e.currentTarget.style.backgroundColor = a.table.rowHover),
|
|
3227
3253
|
onMouseLeave: (e) => !r && (e.currentTarget.style.backgroundColor = o.rowBackground),
|
|
@@ -3230,51 +3256,51 @@ var ce = ({ children: t, className: n, size: r = y.Medium, divided: i = !0 }) =>
|
|
|
3230
3256
|
isHeader: r
|
|
3231
3257
|
}) : t)
|
|
3232
3258
|
});
|
|
3233
|
-
},
|
|
3234
|
-
let { theme: r, themeConfig: i } =
|
|
3259
|
+
}, _e = ({ children: e, size: t = y.Medium, className: n }) => {
|
|
3260
|
+
let { theme: r, themeConfig: i } = P(), a = r.geometry.table, o = t, s = a.typographyMappings.header;
|
|
3235
3261
|
return /* @__PURE__ */ c("th", {
|
|
3236
|
-
className:
|
|
3262
|
+
className: F(a.headerCell, a[o].headerCellSize, n),
|
|
3237
3263
|
style: {
|
|
3238
3264
|
backgroundColor: i.table.headerBg,
|
|
3239
3265
|
borderBottom: `${a.headerBorder} ${i.borders.header}`,
|
|
3240
3266
|
color: i.table.headerText
|
|
3241
3267
|
},
|
|
3242
|
-
children: /* @__PURE__ */ c(
|
|
3268
|
+
children: /* @__PURE__ */ c(I, {
|
|
3243
3269
|
size: s,
|
|
3244
3270
|
bold: !0,
|
|
3245
|
-
className:
|
|
3271
|
+
className: F(a.headerTypography),
|
|
3246
3272
|
children: e
|
|
3247
3273
|
})
|
|
3248
3274
|
});
|
|
3249
|
-
},
|
|
3250
|
-
let { theme: r, themeConfig: i } =
|
|
3275
|
+
}, ve = ({ children: e, size: t = y.Medium, className: n }) => {
|
|
3276
|
+
let { theme: r, themeConfig: i } = P(), a = r.geometry.table, o = t, s = a.typographyMappings.data;
|
|
3251
3277
|
return /* @__PURE__ */ c("td", {
|
|
3252
|
-
className:
|
|
3278
|
+
className: F(a[o].dataCellSize, n),
|
|
3253
3279
|
style: { borderBottom: `${a.dataBorder} ${i.borders.row}` },
|
|
3254
|
-
children: /* @__PURE__ */ c(
|
|
3280
|
+
children: /* @__PURE__ */ c(I, {
|
|
3255
3281
|
size: s,
|
|
3256
3282
|
className: a.dataTypography,
|
|
3257
3283
|
children: e
|
|
3258
3284
|
})
|
|
3259
3285
|
});
|
|
3260
|
-
},
|
|
3261
|
-
let e = r(
|
|
3286
|
+
}, ye = t(void 0), be = () => {
|
|
3287
|
+
let e = r(ye);
|
|
3262
3288
|
if (!e) throw Error("useToast must be used within a TigerToastProvider");
|
|
3263
3289
|
return e;
|
|
3264
3290
|
}, $ = ({ title: e, description: t, type: n = "neutral", onClose: r }) => {
|
|
3265
|
-
let { theme: i, themeConfig: a } =
|
|
3291
|
+
let { theme: i, themeConfig: a } = P(), { t: o } = _(), s = i.geometry.toasts, u = a.toasts.variants[n] || a.toasts.variants.neutral;
|
|
3266
3292
|
return /* @__PURE__ */ l(B, {
|
|
3267
|
-
className:
|
|
3293
|
+
className: F(s.width, s.height, s.corner, a.toasts.container, s.containerStyles, s.containerPadding, u),
|
|
3268
3294
|
children: [/* @__PURE__ */ l("div", {
|
|
3269
3295
|
className: s.contentWrapper,
|
|
3270
|
-
children: [/* @__PURE__ */ c(
|
|
3296
|
+
children: [/* @__PURE__ */ c(I, {
|
|
3271
3297
|
size: y.Medium,
|
|
3272
3298
|
bold: !0,
|
|
3273
|
-
className:
|
|
3299
|
+
className: F(s.title, a.toasts.title),
|
|
3274
3300
|
children: e
|
|
3275
|
-
}), t && /* @__PURE__ */ c(
|
|
3301
|
+
}), t && /* @__PURE__ */ c(I, {
|
|
3276
3302
|
size: y.Medium,
|
|
3277
|
-
className:
|
|
3303
|
+
className: F(s.description, a.toasts.description),
|
|
3278
3304
|
children: t
|
|
3279
3305
|
})]
|
|
3280
3306
|
}), /* @__PURE__ */ c(R, {
|
|
@@ -3282,12 +3308,12 @@ var ce = ({ children: t, className: n, size: r = y.Medium, divided: i = !0 }) =>
|
|
|
3282
3308
|
size: y.Small,
|
|
3283
3309
|
onClick: r,
|
|
3284
3310
|
icon: /* @__PURE__ */ c(h, {}),
|
|
3285
|
-
className:
|
|
3311
|
+
className: F(s.closeButton, a.toasts.closeButton),
|
|
3286
3312
|
"aria-label": o("close_notification")
|
|
3287
3313
|
})]
|
|
3288
3314
|
});
|
|
3289
|
-
},
|
|
3290
|
-
let { theme: e } =
|
|
3315
|
+
}, xe = () => {
|
|
3316
|
+
let { theme: e } = P(), t = e.geometry.toasts, { toasts: n, removeToast: r } = be();
|
|
3291
3317
|
return typeof document > "u" ? null : g(/* @__PURE__ */ c("div", {
|
|
3292
3318
|
className: t.stackStyles,
|
|
3293
3319
|
children: n.map((e) => /* @__PURE__ */ c("div", {
|
|
@@ -3300,4 +3326,4 @@ var ce = ({ children: t, className: n, size: r = y.Medium, divided: i = !0 }) =>
|
|
|
3300
3326
|
}), document.body);
|
|
3301
3327
|
};
|
|
3302
3328
|
//#endregion
|
|
3303
|
-
export { y as ComponentSize, v as ThemeMode,
|
|
3329
|
+
export { y as ComponentSize, v as ThemeMode, ee as ThemeProvider, S as ThumbnailShape, U as TigerAccordion, W as TigerAccordionItem, te as TigerBadge, w as TigerBadgeVariant, ne as TigerButton, T as TigerButtonVariant, ae as TigerCard, L as TigerCheckbox, se as TigerDashboardLayout, q as TigerDropdown, Y as TigerDropdownContent, X as TigerDropdownItem, J as TigerDropdownTrigger, B as TigerGlassContainer, oe as TigerGlobalGlassWrapper, R as TigerIconButton, z as TigerInput, le as TigerList, ue as TigerListItem, de as TigerMessage, b as TigerMessageVariant, pe as TigerModal, re as TigerProgress, ce as TigerSidebar, V as TigerStack, ie as TigerSwitch, E as TigerSwitchColor, me as TigerTable, fe as TigerTabs, C as TigerTabsVariant, he as TigerTbody, ve as TigerTd, _e as TigerTh, Q as TigerThead, Z as TigerThumbnail, x as TigerThumbnailVariant, $ as TigerToast, xe as TigerToastContainer, H as TigerTopBar, ge as TigerTr, I as TigerTypography, j as glassmorphismTheme, D as mandalaTheme, k as mispuntosTheme, P as useTheme };
|