@agilys-system/design-system 1.1.8 → 1.1.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -26,8 +26,8 @@ const ws = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, _s = Es, h
|
|
|
26
26
|
let [m, g] = h;
|
|
27
27
|
return g === void 0 || (c[m] = g), c;
|
|
28
28
|
}, {}), d = t == null || (s = t.compoundVariants) === null || s === void 0 ? void 0 : s.reduce((c, h) => {
|
|
29
|
-
let { class: m, className: g, ...
|
|
30
|
-
return Object.entries(
|
|
29
|
+
let { class: m, className: g, ...T } = h;
|
|
30
|
+
return Object.entries(T).every((P) => {
|
|
31
31
|
let [D, v] = P;
|
|
32
32
|
return Array.isArray(v) ? v.includes({
|
|
33
33
|
...a,
|
|
@@ -166,10 +166,10 @@ const ws = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, _s = Es, h
|
|
|
166
166
|
}
|
|
167
167
|
x === "[" ? c++ : x === "]" && c--;
|
|
168
168
|
}
|
|
169
|
-
const g = d.length === 0 ? o : o.substring(h),
|
|
169
|
+
const g = d.length === 0 ? o : o.substring(h), T = g.startsWith(js), P = T ? g.substring(1) : g, D = m && m > h ? m - h : void 0;
|
|
170
170
|
return {
|
|
171
171
|
modifiers: d,
|
|
172
|
-
hasImportantModifier:
|
|
172
|
+
hasImportantModifier: T,
|
|
173
173
|
baseClassName: P,
|
|
174
174
|
maybePostfixModifierPosition: D
|
|
175
175
|
};
|
|
@@ -202,9 +202,9 @@ const ws = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, _s = Es, h
|
|
|
202
202
|
modifiers: h,
|
|
203
203
|
hasImportantModifier: m,
|
|
204
204
|
baseClassName: g,
|
|
205
|
-
maybePostfixModifierPosition:
|
|
205
|
+
maybePostfixModifierPosition: T
|
|
206
206
|
} = r(c);
|
|
207
|
-
let P = !!
|
|
207
|
+
let P = !!T, D = s(P ? g.substring(0, T) : g);
|
|
208
208
|
if (!D) {
|
|
209
209
|
if (!P) {
|
|
210
210
|
o = c + (o.length > 0 ? " " + o : o);
|
|
@@ -216,10 +216,10 @@ const ws = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, _s = Es, h
|
|
|
216
216
|
}
|
|
217
217
|
P = !1;
|
|
218
218
|
}
|
|
219
|
-
const v = da(h).join(":"), x = m ? v + js : v,
|
|
220
|
-
if (a.includes(
|
|
219
|
+
const v = da(h).join(":"), x = m ? v + js : v, C = x + D;
|
|
220
|
+
if (a.includes(C))
|
|
221
221
|
continue;
|
|
222
|
-
a.push(
|
|
222
|
+
a.push(C);
|
|
223
223
|
const H = n(D, P);
|
|
224
224
|
for (let M = 0; M < H.length; ++M) {
|
|
225
225
|
const W = H[M];
|
|
@@ -272,7 +272,7 @@ const Z = (e) => {
|
|
|
272
272
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
273
273
|
ba.test(e) && !va.test(e)
|
|
274
274
|
), Hs = () => !1, Ta = (e) => xa.test(e), Ca = (e) => wa.test(e), Pa = () => {
|
|
275
|
-
const e = Z("colors"), t = Z("spacing"), r = Z("blur"), s = Z("brightness"), n = Z("borderColor"), a = Z("borderRadius"), i = Z("borderSpacing"), o = Z("borderWidth"), d = Z("contrast"), c = Z("grayscale"), h = Z("hueRotate"), m = Z("invert"), g = Z("gap"),
|
|
275
|
+
const e = Z("colors"), t = Z("spacing"), r = Z("blur"), s = Z("brightness"), n = Z("borderColor"), a = Z("borderRadius"), i = Z("borderSpacing"), o = Z("borderWidth"), d = Z("contrast"), c = Z("grayscale"), h = Z("hueRotate"), m = Z("invert"), g = Z("gap"), T = Z("gradientColorStops"), P = Z("gradientColorStopPositions"), D = Z("inset"), v = Z("margin"), x = Z("opacity"), C = Z("padding"), H = Z("saturate"), M = Z("scale"), W = Z("sepia"), E = Z("skew"), K = Z("space"), S = Z("translate"), _ = () => ["auto", "contain", "none"], L = () => ["auto", "hidden", "clip", "visible", "scroll"], G = () => ["auto", O, t], b = () => [O, t], De = () => ["", je, et], ce = () => ["auto", bt, O], pe = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], xe = () => ["solid", "dashed", "dotted", "double", "none"], fe = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], ye = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], B = () => ["", "0", O], Oe = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], ie = () => [bt, O];
|
|
276
276
|
return {
|
|
277
277
|
cacheSize: 500,
|
|
278
278
|
separator: ":",
|
|
@@ -740,63 +740,63 @@ const Z = (e) => {
|
|
|
740
740
|
* @see https://tailwindcss.com/docs/padding
|
|
741
741
|
*/
|
|
742
742
|
p: [{
|
|
743
|
-
p: [
|
|
743
|
+
p: [C]
|
|
744
744
|
}],
|
|
745
745
|
/**
|
|
746
746
|
* Padding X
|
|
747
747
|
* @see https://tailwindcss.com/docs/padding
|
|
748
748
|
*/
|
|
749
749
|
px: [{
|
|
750
|
-
px: [
|
|
750
|
+
px: [C]
|
|
751
751
|
}],
|
|
752
752
|
/**
|
|
753
753
|
* Padding Y
|
|
754
754
|
* @see https://tailwindcss.com/docs/padding
|
|
755
755
|
*/
|
|
756
756
|
py: [{
|
|
757
|
-
py: [
|
|
757
|
+
py: [C]
|
|
758
758
|
}],
|
|
759
759
|
/**
|
|
760
760
|
* Padding Start
|
|
761
761
|
* @see https://tailwindcss.com/docs/padding
|
|
762
762
|
*/
|
|
763
763
|
ps: [{
|
|
764
|
-
ps: [
|
|
764
|
+
ps: [C]
|
|
765
765
|
}],
|
|
766
766
|
/**
|
|
767
767
|
* Padding End
|
|
768
768
|
* @see https://tailwindcss.com/docs/padding
|
|
769
769
|
*/
|
|
770
770
|
pe: [{
|
|
771
|
-
pe: [
|
|
771
|
+
pe: [C]
|
|
772
772
|
}],
|
|
773
773
|
/**
|
|
774
774
|
* Padding Top
|
|
775
775
|
* @see https://tailwindcss.com/docs/padding
|
|
776
776
|
*/
|
|
777
777
|
pt: [{
|
|
778
|
-
pt: [
|
|
778
|
+
pt: [C]
|
|
779
779
|
}],
|
|
780
780
|
/**
|
|
781
781
|
* Padding Right
|
|
782
782
|
* @see https://tailwindcss.com/docs/padding
|
|
783
783
|
*/
|
|
784
784
|
pr: [{
|
|
785
|
-
pr: [
|
|
785
|
+
pr: [C]
|
|
786
786
|
}],
|
|
787
787
|
/**
|
|
788
788
|
* Padding Bottom
|
|
789
789
|
* @see https://tailwindcss.com/docs/padding
|
|
790
790
|
*/
|
|
791
791
|
pb: [{
|
|
792
|
-
pb: [
|
|
792
|
+
pb: [C]
|
|
793
793
|
}],
|
|
794
794
|
/**
|
|
795
795
|
* Padding Left
|
|
796
796
|
* @see https://tailwindcss.com/docs/padding
|
|
797
797
|
*/
|
|
798
798
|
pl: [{
|
|
799
|
-
pl: [
|
|
799
|
+
pl: [C]
|
|
800
800
|
}],
|
|
801
801
|
/**
|
|
802
802
|
* Margin
|
|
@@ -1264,21 +1264,21 @@ const Z = (e) => {
|
|
|
1264
1264
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
1265
1265
|
*/
|
|
1266
1266
|
"gradient-from": [{
|
|
1267
|
-
from: [
|
|
1267
|
+
from: [T]
|
|
1268
1268
|
}],
|
|
1269
1269
|
/**
|
|
1270
1270
|
* Gradient Color Stops Via
|
|
1271
1271
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
1272
1272
|
*/
|
|
1273
1273
|
"gradient-via": [{
|
|
1274
|
-
via: [
|
|
1274
|
+
via: [T]
|
|
1275
1275
|
}],
|
|
1276
1276
|
/**
|
|
1277
1277
|
* Gradient Color Stops To
|
|
1278
1278
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
1279
1279
|
*/
|
|
1280
1280
|
"gradient-to": [{
|
|
1281
|
-
to: [
|
|
1281
|
+
to: [T]
|
|
1282
1282
|
}],
|
|
1283
1283
|
// Borders
|
|
1284
1284
|
/**
|
|
@@ -2559,20 +2559,23 @@ const Fa = he(
|
|
|
2559
2559
|
)
|
|
2560
2560
|
);
|
|
2561
2561
|
Va.displayName = "Badge";
|
|
2562
|
-
const Ua = he(
|
|
2563
|
-
|
|
2564
|
-
|
|
2565
|
-
|
|
2566
|
-
|
|
2567
|
-
|
|
2568
|
-
|
|
2569
|
-
|
|
2562
|
+
const Ua = he(
|
|
2563
|
+
"flex items-start gap-2 rounded-lg p-5 font-sans",
|
|
2564
|
+
{
|
|
2565
|
+
variants: {
|
|
2566
|
+
variant: {
|
|
2567
|
+
default: "border border-neutral-divider-secondary bg-white shadow-[0px_0px_1px_0px_rgba(66,74,98,0.09),0px_2px_2px_0px_rgba(66,74,98,0.04)]",
|
|
2568
|
+
success: "border border-transparent bg-success-10",
|
|
2569
|
+
warning: "border border-transparent bg-warning-light",
|
|
2570
|
+
error: "border border-transparent bg-danger-10",
|
|
2571
|
+
info: "border border-transparent bg-primary-50"
|
|
2572
|
+
}
|
|
2573
|
+
},
|
|
2574
|
+
defaultVariants: {
|
|
2575
|
+
variant: "default"
|
|
2570
2576
|
}
|
|
2571
|
-
},
|
|
2572
|
-
defaultVariants: {
|
|
2573
|
-
variant: "default"
|
|
2574
2577
|
}
|
|
2575
|
-
|
|
2578
|
+
), Ha = {
|
|
2576
2579
|
default: "text-neutral-text-primary",
|
|
2577
2580
|
success: "text-success-60",
|
|
2578
2581
|
warning: "text-warning-dark",
|
|
@@ -2580,66 +2583,127 @@ const Ua = he("flex items-start gap-2 rounded-lg p-5 font-sans", {
|
|
|
2580
2583
|
info: "text-primary-700"
|
|
2581
2584
|
};
|
|
2582
2585
|
function Ga() {
|
|
2583
|
-
return /* @__PURE__ */ R(
|
|
2584
|
-
|
|
2585
|
-
|
|
2586
|
-
|
|
2587
|
-
|
|
2586
|
+
return /* @__PURE__ */ R(
|
|
2587
|
+
"svg",
|
|
2588
|
+
{
|
|
2589
|
+
className: "size-full",
|
|
2590
|
+
viewBox: "0 0 24 24",
|
|
2591
|
+
fill: "none",
|
|
2592
|
+
"aria-hidden": "true",
|
|
2593
|
+
children: [
|
|
2594
|
+
/* @__PURE__ */ l("circle", { cx: "12", cy: "12", r: "9", stroke: "currentColor", strokeWidth: "2" }),
|
|
2595
|
+
/* @__PURE__ */ l(
|
|
2596
|
+
"path",
|
|
2597
|
+
{
|
|
2598
|
+
d: "M12 11v5",
|
|
2599
|
+
stroke: "currentColor",
|
|
2600
|
+
strokeWidth: "2",
|
|
2601
|
+
strokeLinecap: "round"
|
|
2602
|
+
}
|
|
2603
|
+
),
|
|
2604
|
+
/* @__PURE__ */ l("circle", { cx: "12", cy: "8", r: "1", fill: "currentColor" })
|
|
2605
|
+
]
|
|
2606
|
+
}
|
|
2607
|
+
);
|
|
2588
2608
|
}
|
|
2589
2609
|
function $a() {
|
|
2590
|
-
return /* @__PURE__ */ R(
|
|
2591
|
-
|
|
2592
|
-
|
|
2593
|
-
"
|
|
2594
|
-
|
|
2595
|
-
|
|
2596
|
-
|
|
2597
|
-
|
|
2598
|
-
|
|
2599
|
-
|
|
2600
|
-
|
|
2601
|
-
|
|
2602
|
-
|
|
2610
|
+
return /* @__PURE__ */ R(
|
|
2611
|
+
"svg",
|
|
2612
|
+
{
|
|
2613
|
+
className: "size-full",
|
|
2614
|
+
viewBox: "0 0 24 24",
|
|
2615
|
+
fill: "none",
|
|
2616
|
+
"aria-hidden": "true",
|
|
2617
|
+
children: [
|
|
2618
|
+
/* @__PURE__ */ l("circle", { cx: "12", cy: "12", r: "9", stroke: "currentColor", strokeWidth: "2" }),
|
|
2619
|
+
/* @__PURE__ */ l(
|
|
2620
|
+
"path",
|
|
2621
|
+
{
|
|
2622
|
+
d: "M8.5 12.5l2.5 2.5 4.5-5",
|
|
2623
|
+
stroke: "currentColor",
|
|
2624
|
+
strokeWidth: "2",
|
|
2625
|
+
strokeLinecap: "round",
|
|
2626
|
+
strokeLinejoin: "round"
|
|
2627
|
+
}
|
|
2628
|
+
)
|
|
2629
|
+
]
|
|
2630
|
+
}
|
|
2631
|
+
);
|
|
2603
2632
|
}
|
|
2604
2633
|
function Ba() {
|
|
2605
|
-
return /* @__PURE__ */ R(
|
|
2606
|
-
|
|
2607
|
-
|
|
2608
|
-
|
|
2609
|
-
|
|
2610
|
-
|
|
2611
|
-
|
|
2612
|
-
|
|
2613
|
-
|
|
2614
|
-
|
|
2615
|
-
|
|
2616
|
-
|
|
2617
|
-
|
|
2634
|
+
return /* @__PURE__ */ R(
|
|
2635
|
+
"svg",
|
|
2636
|
+
{
|
|
2637
|
+
className: "size-full",
|
|
2638
|
+
viewBox: "0 0 24 24",
|
|
2639
|
+
fill: "none",
|
|
2640
|
+
"aria-hidden": "true",
|
|
2641
|
+
children: [
|
|
2642
|
+
/* @__PURE__ */ l(
|
|
2643
|
+
"path",
|
|
2644
|
+
{
|
|
2645
|
+
d: "M12 3.5L21 20H3L12 3.5z",
|
|
2646
|
+
stroke: "currentColor",
|
|
2647
|
+
strokeWidth: "2",
|
|
2648
|
+
strokeLinejoin: "round"
|
|
2649
|
+
}
|
|
2650
|
+
),
|
|
2651
|
+
/* @__PURE__ */ l(
|
|
2652
|
+
"path",
|
|
2653
|
+
{
|
|
2654
|
+
d: "M12 10v4",
|
|
2655
|
+
stroke: "currentColor",
|
|
2656
|
+
strokeWidth: "2",
|
|
2657
|
+
strokeLinecap: "round"
|
|
2658
|
+
}
|
|
2659
|
+
),
|
|
2660
|
+
/* @__PURE__ */ l("circle", { cx: "12", cy: "17", r: "1", fill: "currentColor" })
|
|
2661
|
+
]
|
|
2662
|
+
}
|
|
2663
|
+
);
|
|
2618
2664
|
}
|
|
2619
2665
|
function Za() {
|
|
2620
|
-
return /* @__PURE__ */ R(
|
|
2621
|
-
|
|
2622
|
-
|
|
2623
|
-
"
|
|
2624
|
-
|
|
2625
|
-
|
|
2626
|
-
|
|
2627
|
-
|
|
2628
|
-
|
|
2629
|
-
|
|
2630
|
-
|
|
2631
|
-
|
|
2666
|
+
return /* @__PURE__ */ R(
|
|
2667
|
+
"svg",
|
|
2668
|
+
{
|
|
2669
|
+
className: "size-full",
|
|
2670
|
+
viewBox: "0 0 24 24",
|
|
2671
|
+
fill: "none",
|
|
2672
|
+
"aria-hidden": "true",
|
|
2673
|
+
children: [
|
|
2674
|
+
/* @__PURE__ */ l("circle", { cx: "12", cy: "12", r: "9", stroke: "currentColor", strokeWidth: "2" }),
|
|
2675
|
+
/* @__PURE__ */ l(
|
|
2676
|
+
"path",
|
|
2677
|
+
{
|
|
2678
|
+
d: "M9.5 9.5l5 5m0-5l-5 5",
|
|
2679
|
+
stroke: "currentColor",
|
|
2680
|
+
strokeWidth: "2",
|
|
2681
|
+
strokeLinecap: "round"
|
|
2682
|
+
}
|
|
2683
|
+
)
|
|
2684
|
+
]
|
|
2685
|
+
}
|
|
2686
|
+
);
|
|
2632
2687
|
}
|
|
2633
2688
|
function qa() {
|
|
2634
|
-
return /* @__PURE__ */ l(
|
|
2635
|
-
"
|
|
2689
|
+
return /* @__PURE__ */ l(
|
|
2690
|
+
"svg",
|
|
2636
2691
|
{
|
|
2637
|
-
|
|
2638
|
-
|
|
2639
|
-
|
|
2640
|
-
|
|
2692
|
+
className: "size-full",
|
|
2693
|
+
viewBox: "0 0 24 24",
|
|
2694
|
+
fill: "none",
|
|
2695
|
+
"aria-hidden": "true",
|
|
2696
|
+
children: /* @__PURE__ */ l(
|
|
2697
|
+
"path",
|
|
2698
|
+
{
|
|
2699
|
+
d: "M18 6L6 18M6 6l12 12",
|
|
2700
|
+
stroke: "currentColor",
|
|
2701
|
+
strokeWidth: "2",
|
|
2702
|
+
strokeLinecap: "round"
|
|
2703
|
+
}
|
|
2704
|
+
)
|
|
2641
2705
|
}
|
|
2642
|
-
)
|
|
2706
|
+
);
|
|
2643
2707
|
}
|
|
2644
2708
|
const Ja = {
|
|
2645
2709
|
success: /* @__PURE__ */ l($a, {}),
|
|
@@ -2652,35 +2716,61 @@ const Ja = {
|
|
|
2652
2716
|
variant: t = "default",
|
|
2653
2717
|
icon: r,
|
|
2654
2718
|
title: s,
|
|
2655
|
-
|
|
2656
|
-
|
|
2657
|
-
|
|
2658
|
-
|
|
2659
|
-
|
|
2660
|
-
|
|
2661
|
-
|
|
2662
|
-
|
|
2663
|
-
|
|
2664
|
-
|
|
2665
|
-
|
|
2666
|
-
|
|
2667
|
-
|
|
2668
|
-
|
|
2669
|
-
|
|
2670
|
-
|
|
2671
|
-
|
|
2672
|
-
|
|
2673
|
-
|
|
2674
|
-
|
|
2675
|
-
|
|
2676
|
-
|
|
2677
|
-
|
|
2678
|
-
|
|
2679
|
-
|
|
2680
|
-
|
|
2681
|
-
|
|
2682
|
-
|
|
2683
|
-
|
|
2719
|
+
noIcon: n = !1,
|
|
2720
|
+
description: a,
|
|
2721
|
+
action: i,
|
|
2722
|
+
onClose: o,
|
|
2723
|
+
children: d,
|
|
2724
|
+
...c
|
|
2725
|
+
}, h) => {
|
|
2726
|
+
const m = t ?? "default", g = r === void 0 ? Ja[m] : r, T = Ha[m];
|
|
2727
|
+
return /* @__PURE__ */ R(
|
|
2728
|
+
"div",
|
|
2729
|
+
{
|
|
2730
|
+
ref: h,
|
|
2731
|
+
className: k(Ua({ variant: t }), e),
|
|
2732
|
+
...c,
|
|
2733
|
+
children: [
|
|
2734
|
+
!n && g && /* @__PURE__ */ l("span", { className: k("size-6 shrink-0", T), "aria-hidden": "true", children: g }),
|
|
2735
|
+
/* @__PURE__ */ R("div", { className: "flex min-w-0 flex-1 flex-col gap-1", children: [
|
|
2736
|
+
s && /* @__PURE__ */ l(
|
|
2737
|
+
F,
|
|
2738
|
+
{
|
|
2739
|
+
as: "div",
|
|
2740
|
+
variant: "body",
|
|
2741
|
+
weight: "semibold",
|
|
2742
|
+
className: T,
|
|
2743
|
+
children: U(s)
|
|
2744
|
+
}
|
|
2745
|
+
),
|
|
2746
|
+
a && /* @__PURE__ */ l(
|
|
2747
|
+
F,
|
|
2748
|
+
{
|
|
2749
|
+
as: "div",
|
|
2750
|
+
variant: "bodySm",
|
|
2751
|
+
className: "text-neutral-text-secondary",
|
|
2752
|
+
children: U(a)
|
|
2753
|
+
}
|
|
2754
|
+
),
|
|
2755
|
+
d
|
|
2756
|
+
] }),
|
|
2757
|
+
i && /* @__PURE__ */ l("div", { className: "flex shrink-0 items-center", children: i }),
|
|
2758
|
+
o && /* @__PURE__ */ l(
|
|
2759
|
+
"button",
|
|
2760
|
+
{
|
|
2761
|
+
type: "button",
|
|
2762
|
+
onClick: o,
|
|
2763
|
+
"aria-label": "Fechar",
|
|
2764
|
+
className: k(
|
|
2765
|
+
"flex size-5 shrink-0 items-center justify-center rounded-md transition-colors hover:opacity-70 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-agilys-primary",
|
|
2766
|
+
T
|
|
2767
|
+
),
|
|
2768
|
+
children: /* @__PURE__ */ l(qa, {})
|
|
2769
|
+
}
|
|
2770
|
+
)
|
|
2771
|
+
]
|
|
2772
|
+
}
|
|
2773
|
+
);
|
|
2684
2774
|
}
|
|
2685
2775
|
);
|
|
2686
2776
|
Br.displayName = "Card";
|
|
@@ -5614,9 +5704,9 @@ const hc = he(
|
|
|
5614
5704
|
{
|
|
5615
5705
|
variants: {
|
|
5616
5706
|
size: {
|
|
5617
|
-
sm: "size-
|
|
5618
|
-
md: "size-
|
|
5619
|
-
lg: "size-
|
|
5707
|
+
sm: "size-7 text-xs",
|
|
5708
|
+
md: "size-8 text-sm",
|
|
5709
|
+
lg: "size-12 text-base"
|
|
5620
5710
|
}
|
|
5621
5711
|
},
|
|
5622
5712
|
defaultVariants: {
|
|
@@ -5636,16 +5726,24 @@ const pc = {
|
|
|
5636
5726
|
}, jn = ne(
|
|
5637
5727
|
({ className: e, size: t, src: r, alt: s = "", name: n, ...a }, i) => {
|
|
5638
5728
|
const o = t ?? "md";
|
|
5639
|
-
return /* @__PURE__ */ l(
|
|
5640
|
-
|
|
5729
|
+
return /* @__PURE__ */ l(
|
|
5730
|
+
"span",
|
|
5641
5731
|
{
|
|
5642
|
-
|
|
5643
|
-
|
|
5644
|
-
|
|
5645
|
-
className: "
|
|
5646
|
-
|
|
5732
|
+
ref: i,
|
|
5733
|
+
className: k(hc({ size: t }), e),
|
|
5734
|
+
...a,
|
|
5735
|
+
children: r ? /* @__PURE__ */ l("img", { src: r, alt: s, className: "size-full object-cover" }) : n && /* @__PURE__ */ l(
|
|
5736
|
+
F,
|
|
5737
|
+
{
|
|
5738
|
+
as: "span",
|
|
5739
|
+
variant: pc[o],
|
|
5740
|
+
weight: "medium",
|
|
5741
|
+
className: "text-inherit leading-none",
|
|
5742
|
+
children: mc(n)
|
|
5743
|
+
}
|
|
5744
|
+
)
|
|
5647
5745
|
}
|
|
5648
|
-
)
|
|
5746
|
+
);
|
|
5649
5747
|
}
|
|
5650
5748
|
);
|
|
5651
5749
|
jn.displayName = "Avatar";
|
|
@@ -5686,13 +5784,13 @@ function Ac({
|
|
|
5686
5784
|
sortDirection: h,
|
|
5687
5785
|
onSortChange: m,
|
|
5688
5786
|
onRowClick: g,
|
|
5689
|
-
shadow:
|
|
5787
|
+
shadow: T = !1,
|
|
5690
5788
|
border: P = !1,
|
|
5691
5789
|
columnBorder: D = !0,
|
|
5692
5790
|
className: v,
|
|
5693
5791
|
...x
|
|
5694
5792
|
}) {
|
|
5695
|
-
const
|
|
5793
|
+
const C = e.length + (i ? 1 : 0), H = o ?? [], M = t.map((S, _) => fc(S, _, r)), W = M.length > 0 && M.every((S) => H.includes(S)), E = () => {
|
|
5696
5794
|
d && d(W ? [] : M);
|
|
5697
5795
|
}, K = (S) => {
|
|
5698
5796
|
d && d(
|
|
@@ -5705,7 +5803,7 @@ function Ac({
|
|
|
5705
5803
|
className: k(
|
|
5706
5804
|
"w-full overflow-x-auto rounded-lg",
|
|
5707
5805
|
P && "border border-neutral-divider-secondary",
|
|
5708
|
-
|
|
5806
|
+
T && "shadow-[0px_0px_2px_0px_rgba(66,74,98,0.04),0px_3px_8px_0px_rgba(66,74,98,0.09)]"
|
|
5709
5807
|
),
|
|
5710
5808
|
children: /* @__PURE__ */ R(
|
|
5711
5809
|
"table",
|
|
@@ -5746,7 +5844,7 @@ function Ac({
|
|
|
5746
5844
|
/* @__PURE__ */ l("tbody", { children: s ? /* @__PURE__ */ l("tr", { children: /* @__PURE__ */ l(
|
|
5747
5845
|
"td",
|
|
5748
5846
|
{
|
|
5749
|
-
colSpan:
|
|
5847
|
+
colSpan: C,
|
|
5750
5848
|
className: "border-b border-neutral-divider-secondary bg-neutral-surface-lightest px-5 py-6",
|
|
5751
5849
|
children: /* @__PURE__ */ l(
|
|
5752
5850
|
F,
|
|
@@ -5761,7 +5859,7 @@ function Ac({
|
|
|
5761
5859
|
) }) : t.length === 0 ? /* @__PURE__ */ l("tr", { children: /* @__PURE__ */ l(
|
|
5762
5860
|
"td",
|
|
5763
5861
|
{
|
|
5764
|
-
colSpan:
|
|
5862
|
+
colSpan: C,
|
|
5765
5863
|
className: "border-b border-neutral-divider-secondary bg-neutral-surface-lightest px-5 py-6",
|
|
5766
5864
|
children: /* @__PURE__ */ l(
|
|
5767
5865
|
F,
|
|
@@ -5974,11 +6072,11 @@ const ys = he(
|
|
|
5974
6072
|
placeholder: h,
|
|
5975
6073
|
type: m,
|
|
5976
6074
|
rows: g,
|
|
5977
|
-
maxRows:
|
|
6075
|
+
maxRows: T,
|
|
5978
6076
|
onChange: P,
|
|
5979
6077
|
...D
|
|
5980
6078
|
}, v) => {
|
|
5981
|
-
const x = (m === void 0 || m === "text") && (g !== void 0 ||
|
|
6079
|
+
const x = (m === void 0 || m === "text") && (g !== void 0 || T !== void 0), C = g ?? 1, H = x && T !== void 0, M = oe(null), W = sr(
|
|
5982
6080
|
(b) => {
|
|
5983
6081
|
M.current = b, typeof v == "function" ? v(b) : v && (v.current = b);
|
|
5984
6082
|
},
|
|
@@ -5986,11 +6084,11 @@ const ys = he(
|
|
|
5986
6084
|
), E = sr(() => {
|
|
5987
6085
|
const b = M.current;
|
|
5988
6086
|
if (!b || !H) return;
|
|
5989
|
-
const De = parseFloat(getComputedStyle(b).lineHeight), ce = De *
|
|
6087
|
+
const De = parseFloat(getComputedStyle(b).lineHeight), ce = De * C, pe = De * Math.max(T ?? C, C);
|
|
5990
6088
|
b.style.height = "auto";
|
|
5991
6089
|
const xe = Math.min(Math.max(b.scrollHeight, ce), pe);
|
|
5992
6090
|
b.style.height = `${xe}px`, b.style.overflowY = b.scrollHeight > pe ? "auto" : "hidden";
|
|
5993
|
-
}, [H,
|
|
6091
|
+
}, [H, C, T]);
|
|
5994
6092
|
Gr(() => {
|
|
5995
6093
|
E();
|
|
5996
6094
|
}, [E, D.value]);
|
|
@@ -6040,7 +6138,7 @@ const ys = he(
|
|
|
6040
6138
|
"aria-invalid": L || void 0,
|
|
6041
6139
|
"aria-describedby": L ? G : void 0,
|
|
6042
6140
|
"aria-busy": i || void 0,
|
|
6043
|
-
rows:
|
|
6141
|
+
rows: C,
|
|
6044
6142
|
onChange: (b) => {
|
|
6045
6143
|
E(), P == null || P(
|
|
6046
6144
|
b
|
|
@@ -6117,18 +6215,18 @@ const Vn = (e) => typeof e.label == "string" ? e.label : String(e.value), Ws = (
|
|
|
6117
6215
|
placeholder: h = "Selecione",
|
|
6118
6216
|
label: m,
|
|
6119
6217
|
name: g,
|
|
6120
|
-
leftIcon:
|
|
6218
|
+
leftIcon: T,
|
|
6121
6219
|
rightIcon: P,
|
|
6122
6220
|
bgIcon: D = !1,
|
|
6123
6221
|
error: v,
|
|
6124
6222
|
disabled: x,
|
|
6125
|
-
id:
|
|
6223
|
+
id: C,
|
|
6126
6224
|
onKeyDown: H,
|
|
6127
6225
|
onFocus: M,
|
|
6128
6226
|
onBlur: W,
|
|
6129
6227
|
...E
|
|
6130
6228
|
}, K) => {
|
|
6131
|
-
const S = _t(), _ =
|
|
6229
|
+
const S = _t(), _ = C ?? S, L = `${_}-listbox`, G = typeof v == "string" ? v : v == null ? void 0 : v.message, b = !!G, De = `${_}-error`, ce = s !== void 0, [pe, xe] = ae(n), fe = ce ? s : pe, ye = r.find(
|
|
6132
6230
|
(N) => N.value === fe
|
|
6133
6231
|
), [B, Oe] = ae(!1), [ie, le] = ae(""), [ee, Ye] = ae(!1), [Ae, Te] = ae(0), Bt = oe(null), Qe = oe(null), Ke = oe(null), at = oe(null), [Zt, Ot] = ae(null), Nr = sr(
|
|
6134
6232
|
(N) => {
|
|
@@ -6230,7 +6328,7 @@ const Vn = (e) => typeof e.label == "string" ? e.label : String(e.value), Ws = (
|
|
|
6230
6328
|
x && "pointer-events-none opacity-50"
|
|
6231
6329
|
),
|
|
6232
6330
|
children: [
|
|
6233
|
-
|
|
6331
|
+
T && /* @__PURE__ */ l("span", { className: "inline-flex shrink-0", "aria-hidden": "true", children: T }),
|
|
6234
6332
|
/* @__PURE__ */ l(
|
|
6235
6333
|
"input",
|
|
6236
6334
|
{
|
|
@@ -6372,12 +6470,12 @@ const xc = (e, t) => t ? Array.isArray(e) ? e : [] : e == null ? [] : [e], wc =
|
|
|
6372
6470
|
loadingText: h = "Carregando...",
|
|
6373
6471
|
getOptionLabel: m = Vn,
|
|
6374
6472
|
filterOptions: g,
|
|
6375
|
-
noOptionsText:
|
|
6473
|
+
noOptionsText: T = "Nenhuma opção encontrada",
|
|
6376
6474
|
clearable: P = !0,
|
|
6377
6475
|
placeholder: D = "Selecione",
|
|
6378
6476
|
label: v,
|
|
6379
6477
|
name: x,
|
|
6380
|
-
leftIcon:
|
|
6478
|
+
leftIcon: C,
|
|
6381
6479
|
rightIcon: H,
|
|
6382
6480
|
bgIcon: M = !1,
|
|
6383
6481
|
error: W,
|
|
@@ -6530,7 +6628,7 @@ const xc = (e, t) => t ? Array.isArray(e) ? e : [] : e == null ? [] : [e], wc =
|
|
|
6530
6628
|
E && "pointer-events-none opacity-50"
|
|
6531
6629
|
),
|
|
6532
6630
|
children: [
|
|
6533
|
-
|
|
6631
|
+
C && /* @__PURE__ */ l("span", { className: "inline-flex shrink-0", "aria-hidden": "true", children: C }),
|
|
6534
6632
|
/* @__PURE__ */ R("div", { className: "flex min-w-0 flex-1 flex-wrap items-center gap-1", children: [
|
|
6535
6633
|
s && Dr.map((p) => /* @__PURE__ */ R(
|
|
6536
6634
|
"span",
|
|
@@ -6659,7 +6757,7 @@ const xc = (e, t) => t ? Array.isArray(e) ? e : [] : e == null ? [] : [e], wc =
|
|
|
6659
6757
|
as: "span",
|
|
6660
6758
|
variant: "bodySm",
|
|
6661
6759
|
className: "text-neutral-secondary",
|
|
6662
|
-
children: U(Ct ? h :
|
|
6760
|
+
children: U(Ct ? h : T)
|
|
6663
6761
|
}
|
|
6664
6762
|
) }),
|
|
6665
6763
|
!Ct && ot.map((p, z) => {
|
|
@@ -6769,19 +6867,19 @@ const Mc = ne(
|
|
|
6769
6867
|
contentClassName: c,
|
|
6770
6868
|
...h
|
|
6771
6869
|
}, m) => {
|
|
6772
|
-
const g = _t(),
|
|
6870
|
+
const g = _t(), T = oe(null), [P, D] = ae(!1), v = oe(t);
|
|
6773
6871
|
return Re(() => {
|
|
6774
6872
|
v.current = t;
|
|
6775
6873
|
}, [t]), Re(() => D(!0), []), Re(() => {
|
|
6776
6874
|
var H;
|
|
6777
6875
|
if (!e || !P) return;
|
|
6778
6876
|
const x = document.body.style.overflow;
|
|
6779
|
-
document.body.style.overflow = "hidden", (H =
|
|
6780
|
-
const
|
|
6877
|
+
document.body.style.overflow = "hidden", (H = T.current) == null || H.focus();
|
|
6878
|
+
const C = (M) => {
|
|
6781
6879
|
M.key === "Escape" && !M.defaultPrevented && v.current();
|
|
6782
6880
|
};
|
|
6783
|
-
return document.addEventListener("keydown",
|
|
6784
|
-
document.body.style.overflow = x, document.removeEventListener("keydown",
|
|
6881
|
+
return document.addEventListener("keydown", C), () => {
|
|
6882
|
+
document.body.style.overflow = x, document.removeEventListener("keydown", C);
|
|
6785
6883
|
};
|
|
6786
6884
|
}, [e, P]), !e || !P ? null : hr(
|
|
6787
6885
|
/* @__PURE__ */ l(
|
|
@@ -6803,7 +6901,7 @@ const Mc = ne(
|
|
|
6803
6901
|
i && /* @__PURE__ */ l(
|
|
6804
6902
|
"button",
|
|
6805
6903
|
{
|
|
6806
|
-
ref:
|
|
6904
|
+
ref: T,
|
|
6807
6905
|
type: "button",
|
|
6808
6906
|
onClick: t,
|
|
6809
6907
|
"aria-label": "Fechar",
|
|
@@ -6869,14 +6967,14 @@ const Sc = he(
|
|
|
6869
6967
|
...o
|
|
6870
6968
|
}, d) => {
|
|
6871
6969
|
var H;
|
|
6872
|
-
const c = _t(), h = a ?? c, m = r !== void 0, [g,
|
|
6970
|
+
const c = _t(), h = a ?? c, m = r !== void 0, [g, T] = ae(
|
|
6873
6971
|
s ?? ((H = t[0]) == null ? void 0 : H.value)
|
|
6874
6972
|
), P = m ? r : g, D = oe([]), v = (M) => {
|
|
6875
|
-
M.disabled || (m ||
|
|
6973
|
+
M.disabled || (m || T(M.value), n == null || n(M.value, M));
|
|
6876
6974
|
}, x = (M) => {
|
|
6877
6975
|
var W;
|
|
6878
6976
|
(W = D.current[M]) == null || W.focus();
|
|
6879
|
-
},
|
|
6977
|
+
}, C = (M, W) => {
|
|
6880
6978
|
const E = t.map((S, _) => S.disabled ? -1 : _).filter((S) => S !== -1), K = (S) => {
|
|
6881
6979
|
const _ = E.indexOf(W);
|
|
6882
6980
|
if (_ === -1) return;
|
|
@@ -6926,7 +7024,7 @@ const Sc = he(
|
|
|
6926
7024
|
disabled: M.disabled,
|
|
6927
7025
|
tabIndex: E ? 0 : -1,
|
|
6928
7026
|
onClick: () => v(M),
|
|
6929
|
-
onKeyDown: (K) =>
|
|
7027
|
+
onKeyDown: (K) => C(K, W),
|
|
6930
7028
|
className: k(Nc({ selected: E })),
|
|
6931
7029
|
children: /* @__PURE__ */ l(
|
|
6932
7030
|
F,
|
|
@@ -6934,7 +7032,7 @@ const Sc = he(
|
|
|
6934
7032
|
as: "span",
|
|
6935
7033
|
variant: "caption",
|
|
6936
7034
|
weight: "medium",
|
|
6937
|
-
className: "text-[
|
|
7035
|
+
className: "text-[11px] text-inherit",
|
|
6938
7036
|
children: U(M.label)
|
|
6939
7037
|
}
|
|
6940
7038
|
)
|
|
@@ -6991,23 +7089,23 @@ const Yc = he("flex w-full flex-col gap-2"), $n = ne(
|
|
|
6991
7089
|
id: d,
|
|
6992
7090
|
...c
|
|
6993
7091
|
}, h) => {
|
|
6994
|
-
const m = _t(), g = d ?? m,
|
|
6995
|
-
() =>
|
|
6996
|
-
), x = P ?
|
|
7092
|
+
const m = _t(), g = d ?? m, T = (_) => _ === void 0 ? [] : Array.isArray(_) ? _ : [_], P = t !== void 0, [D, v] = ae(
|
|
7093
|
+
() => T(r)
|
|
7094
|
+
), x = P ? T(t) : D, C = (_) => {
|
|
6997
7095
|
P || v(_), s == null || s(e === "multiple" ? _ : _[0] ?? "");
|
|
6998
7096
|
}, H = (_) => {
|
|
6999
7097
|
if (a) return;
|
|
7000
7098
|
const L = x.includes(_);
|
|
7001
7099
|
if (e === "multiple") {
|
|
7002
7100
|
const G = L ? x.filter((b) => b !== _) : [...x, _];
|
|
7003
|
-
|
|
7101
|
+
C(G);
|
|
7004
7102
|
return;
|
|
7005
7103
|
}
|
|
7006
7104
|
if (L) {
|
|
7007
|
-
|
|
7105
|
+
C(n ? [] : x);
|
|
7008
7106
|
return;
|
|
7009
7107
|
}
|
|
7010
|
-
|
|
7108
|
+
C([_]);
|
|
7011
7109
|
}, M = oe(/* @__PURE__ */ new Map()), W = oe([]), E = (_, L) => {
|
|
7012
7110
|
L ? (M.current.set(_, L), W.current.includes(_) || W.current.push(_)) : (M.current.delete(_), W.current = W.current.filter((G) => G !== _));
|
|
7013
7111
|
}, K = (_) => {
|
|
@@ -7086,7 +7184,7 @@ const Cc = he(
|
|
|
7086
7184
|
focusTrigger: d,
|
|
7087
7185
|
values: c,
|
|
7088
7186
|
alwaysExpanded: h
|
|
7089
|
-
} = Gn(), { value: m, disabled: g, isOpen:
|
|
7187
|
+
} = Gn(), { value: m, disabled: g, isOpen: T, triggerId: P, contentId: D } = Zn();
|
|
7090
7188
|
return /* @__PURE__ */ R(
|
|
7091
7189
|
F,
|
|
7092
7190
|
{
|
|
@@ -7102,18 +7200,18 @@ const Cc = he(
|
|
|
7102
7200
|
},
|
|
7103
7201
|
type: "button",
|
|
7104
7202
|
id: P,
|
|
7105
|
-
"aria-expanded":
|
|
7203
|
+
"aria-expanded": T,
|
|
7106
7204
|
"aria-controls": D,
|
|
7107
7205
|
disabled: g,
|
|
7108
7206
|
onClick: () => i(m),
|
|
7109
7207
|
onKeyDown: (x) => {
|
|
7110
|
-
const
|
|
7208
|
+
const C = c.indexOf(m);
|
|
7111
7209
|
switch (x.key) {
|
|
7112
7210
|
case "ArrowDown":
|
|
7113
|
-
x.preventDefault(), d(
|
|
7211
|
+
x.preventDefault(), d(C + 1);
|
|
7114
7212
|
break;
|
|
7115
7213
|
case "ArrowUp":
|
|
7116
|
-
x.preventDefault(), d(
|
|
7214
|
+
x.preventDefault(), d(C - 1);
|
|
7117
7215
|
break;
|
|
7118
7216
|
case "Home":
|
|
7119
7217
|
x.preventDefault(), d(0);
|
|
@@ -7131,12 +7229,12 @@ const Cc = he(
|
|
|
7131
7229
|
...n,
|
|
7132
7230
|
children: [
|
|
7133
7231
|
/* @__PURE__ */ l("span", { className: "flex min-w-0 flex-1 items-center gap-2 font-medium text-neutral-text-primary", children: U(t) }),
|
|
7134
|
-
/* @__PURE__ */ l(
|
|
7232
|
+
!h && /* @__PURE__ */ l(
|
|
7135
7233
|
Oc,
|
|
7136
7234
|
{
|
|
7137
7235
|
className: k(
|
|
7138
7236
|
"text-neutral-text-secondary",
|
|
7139
|
-
|
|
7237
|
+
T && "rotate-180"
|
|
7140
7238
|
)
|
|
7141
7239
|
}
|
|
7142
7240
|
)
|
|
@@ -7215,8 +7313,8 @@ function Ic({
|
|
|
7215
7313
|
duration: h = 6e3,
|
|
7216
7314
|
...m
|
|
7217
7315
|
}) {
|
|
7218
|
-
const [g,
|
|
7219
|
-
return Re(() =>
|
|
7316
|
+
const [g, T] = ae(!1);
|
|
7317
|
+
return Re(() => T(!0), []), Re(() => {
|
|
7220
7318
|
if (!e || !h) return;
|
|
7221
7319
|
const P = setTimeout(() => c == null ? void 0 : c(), h);
|
|
7222
7320
|
return () => clearTimeout(P);
|