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