@agilys-system/design-system 1.1.3 → 1.1.4

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.
@@ -14,7 +14,7 @@ function is() {
14
14
  for (var e, t, r = 0, s = "", n = arguments.length; r < n; r++) (e = arguments[r]) && (t = as(e)) && (s && (s += " "), s += t);
15
15
  return s;
16
16
  }
17
- const jr = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Vr = is, ae = (e, t) => (r) => {
17
+ const jr = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Vr = is, se = (e, t) => (r) => {
18
18
  var s;
19
19
  if ((t == null ? void 0 : t.variants) == null) return Vr(e, r == null ? void 0 : r.class, r == null ? void 0 : r.className);
20
20
  const { variants: n, defaultVariants: a } = t, i = Object.keys(n).map((c) => {
@@ -26,16 +26,16 @@ const jr = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Vr = is, a
26
26
  let [p, g] = h;
27
27
  return g === void 0 || (c[p] = g), c;
28
28
  }, {}), d = t == null || (s = t.compoundVariants) === null || s === void 0 ? void 0 : s.reduce((c, h) => {
29
- let { class: p, className: g, ...W } = h;
30
- return Object.entries(W).every((P) => {
31
- let [M, y] = P;
29
+ let { class: p, className: g, ...P } = h;
30
+ return Object.entries(P).every((W) => {
31
+ let [N, y] = W;
32
32
  return Array.isArray(y) ? y.includes({
33
33
  ...a,
34
34
  ...o
35
- }[M]) : {
35
+ }[N]) : {
36
36
  ...a,
37
37
  ...o
38
- }[M] === y;
38
+ }[N] === y;
39
39
  }) ? [
40
40
  ...c,
41
41
  p,
@@ -153,25 +153,25 @@ const jr = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Vr = is, a
153
153
  const d = [];
154
154
  let c = 0, h = 0, p;
155
155
  for (let y = 0; y < o.length; y++) {
156
- let S = o[y];
156
+ let M = o[y];
157
157
  if (c === 0) {
158
- if (S === n && (s || o.slice(y, y + a) === t)) {
158
+ if (M === n && (s || o.slice(y, y + a) === t)) {
159
159
  d.push(o.slice(h, y)), h = y + a;
160
160
  continue;
161
161
  }
162
- if (S === "/") {
162
+ if (M === "/") {
163
163
  p = y;
164
164
  continue;
165
165
  }
166
166
  }
167
- S === "[" ? c++ : S === "]" && c--;
167
+ M === "[" ? c++ : M === "]" && c--;
168
168
  }
169
- const g = d.length === 0 ? o : o.substring(h), W = g.startsWith(ls), P = W ? g.substring(1) : g, M = p && p > h ? p - h : void 0;
169
+ const g = d.length === 0 ? o : o.substring(h), P = g.startsWith(ls), W = P ? g.substring(1) : g, N = p && p > h ? p - h : void 0;
170
170
  return {
171
171
  modifiers: d,
172
- hasImportantModifier: W,
173
- baseClassName: P,
174
- maybePostfixModifierPosition: M
172
+ hasImportantModifier: P,
173
+ baseClassName: W,
174
+ maybePostfixModifierPosition: N
175
175
  };
176
176
  };
177
177
  return r ? (o) => r({
@@ -202,28 +202,28 @@ const jr = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Vr = is, a
202
202
  modifiers: h,
203
203
  hasImportantModifier: p,
204
204
  baseClassName: g,
205
- maybePostfixModifierPosition: W
205
+ maybePostfixModifierPosition: P
206
206
  } = r(c);
207
- let P = !!W, M = s(P ? g.substring(0, W) : g);
208
- if (!M) {
209
- if (!P) {
207
+ let W = !!P, N = s(W ? g.substring(0, P) : g);
208
+ if (!N) {
209
+ if (!W) {
210
210
  o = c + (o.length > 0 ? " " + o : o);
211
211
  continue;
212
212
  }
213
- if (M = s(g), !M) {
213
+ if (N = s(g), !N) {
214
214
  o = c + (o.length > 0 ? " " + o : o);
215
215
  continue;
216
216
  }
217
- P = !1;
217
+ W = !1;
218
218
  }
219
- const y = Pn(h).join(":"), S = p ? y + ls : y, F = S + M;
220
- if (a.includes(F))
219
+ const y = Pn(h).join(":"), M = p ? y + ls : y, z = M + N;
220
+ if (a.includes(z))
221
221
  continue;
222
- a.push(F);
223
- const $ = n(M, P);
224
- for (let k = 0; k < $.length; ++k) {
225
- const q = $[k];
226
- a.push(S + q);
222
+ a.push(z);
223
+ const H = n(N, W);
224
+ for (let k = 0; k < H.length; ++k) {
225
+ const q = H[k];
226
+ a.push(M + q);
227
227
  }
228
228
  o = c + (o.length > 0 ? " " + o : o);
229
229
  }
@@ -272,7 +272,7 @@ const E = (e) => {
272
272
  // I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
273
273
  jn.test(e) && !Vn.test(e)
274
274
  ), us = () => !1, Xn = (e) => Un.test(e), ea = (e) => Hn.test(e), ta = () => {
275
- const e = E("colors"), t = E("spacing"), r = E("blur"), s = E("brightness"), n = E("borderColor"), a = E("borderRadius"), i = E("borderSpacing"), o = E("borderWidth"), d = E("contrast"), c = E("grayscale"), h = E("hueRotate"), p = E("invert"), g = E("gap"), W = E("gradientColorStops"), P = E("gradientColorStopPositions"), M = E("inset"), y = E("margin"), S = E("opacity"), F = E("padding"), $ = E("saturate"), k = E("scale"), q = E("sepia"), H = E("skew"), D = E("space"), v = E("translate"), I = () => ["auto", "contain", "none"], G = () => ["auto", "hidden", "clip", "visible", "scroll"], Q = () => ["auto", w, t], R = () => [w, t], st = () => ["", ge, Ce], Le = () => ["auto", Be, w], _t = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], Ve = () => ["solid", "dashed", "dotted", "double", "none"], Oe = () => ["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", w], Ye = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], te = () => [Be, w];
275
+ const e = E("colors"), t = E("spacing"), r = E("blur"), s = E("brightness"), n = E("borderColor"), a = E("borderRadius"), i = E("borderSpacing"), o = E("borderWidth"), d = E("contrast"), c = E("grayscale"), h = E("hueRotate"), p = E("invert"), g = E("gap"), P = E("gradientColorStops"), W = E("gradientColorStopPositions"), N = E("inset"), y = E("margin"), M = E("opacity"), z = E("padding"), H = E("saturate"), k = E("scale"), q = E("sepia"), G = E("skew"), S = E("space"), v = E("translate"), I = () => ["auto", "contain", "none"], $ = () => ["auto", "hidden", "clip", "visible", "scroll"], Q = () => ["auto", w, t], R = () => [w, t], st = () => ["", ge, Ce], Le = () => ["auto", Be, w], _t = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], Ve = () => ["solid", "dashed", "dotted", "double", "none"], Oe = () => ["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", w], Ye = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], te = () => [Be, w];
276
276
  return {
277
277
  cacheSize: 500,
278
278
  separator: ":",
@@ -402,21 +402,21 @@ const E = (e) => {
402
402
  * @see https://tailwindcss.com/docs/overflow
403
403
  */
404
404
  overflow: [{
405
- overflow: G()
405
+ overflow: $()
406
406
  }],
407
407
  /**
408
408
  * Overflow X
409
409
  * @see https://tailwindcss.com/docs/overflow
410
410
  */
411
411
  "overflow-x": [{
412
- "overflow-x": G()
412
+ "overflow-x": $()
413
413
  }],
414
414
  /**
415
415
  * Overflow Y
416
416
  * @see https://tailwindcss.com/docs/overflow
417
417
  */
418
418
  "overflow-y": [{
419
- "overflow-y": G()
419
+ "overflow-y": $()
420
420
  }],
421
421
  /**
422
422
  * Overscroll Behavior
@@ -449,63 +449,63 @@ const E = (e) => {
449
449
  * @see https://tailwindcss.com/docs/top-right-bottom-left
450
450
  */
451
451
  inset: [{
452
- inset: [M]
452
+ inset: [N]
453
453
  }],
454
454
  /**
455
455
  * Right / Left
456
456
  * @see https://tailwindcss.com/docs/top-right-bottom-left
457
457
  */
458
458
  "inset-x": [{
459
- "inset-x": [M]
459
+ "inset-x": [N]
460
460
  }],
461
461
  /**
462
462
  * Top / Bottom
463
463
  * @see https://tailwindcss.com/docs/top-right-bottom-left
464
464
  */
465
465
  "inset-y": [{
466
- "inset-y": [M]
466
+ "inset-y": [N]
467
467
  }],
468
468
  /**
469
469
  * Start
470
470
  * @see https://tailwindcss.com/docs/top-right-bottom-left
471
471
  */
472
472
  start: [{
473
- start: [M]
473
+ start: [N]
474
474
  }],
475
475
  /**
476
476
  * End
477
477
  * @see https://tailwindcss.com/docs/top-right-bottom-left
478
478
  */
479
479
  end: [{
480
- end: [M]
480
+ end: [N]
481
481
  }],
482
482
  /**
483
483
  * Top
484
484
  * @see https://tailwindcss.com/docs/top-right-bottom-left
485
485
  */
486
486
  top: [{
487
- top: [M]
487
+ top: [N]
488
488
  }],
489
489
  /**
490
490
  * Right
491
491
  * @see https://tailwindcss.com/docs/top-right-bottom-left
492
492
  */
493
493
  right: [{
494
- right: [M]
494
+ right: [N]
495
495
  }],
496
496
  /**
497
497
  * Bottom
498
498
  * @see https://tailwindcss.com/docs/top-right-bottom-left
499
499
  */
500
500
  bottom: [{
501
- bottom: [M]
501
+ bottom: [N]
502
502
  }],
503
503
  /**
504
504
  * Left
505
505
  * @see https://tailwindcss.com/docs/top-right-bottom-left
506
506
  */
507
507
  left: [{
508
- left: [M]
508
+ left: [N]
509
509
  }],
510
510
  /**
511
511
  * Visibility
@@ -740,63 +740,63 @@ const E = (e) => {
740
740
  * @see https://tailwindcss.com/docs/padding
741
741
  */
742
742
  p: [{
743
- p: [F]
743
+ p: [z]
744
744
  }],
745
745
  /**
746
746
  * Padding X
747
747
  * @see https://tailwindcss.com/docs/padding
748
748
  */
749
749
  px: [{
750
- px: [F]
750
+ px: [z]
751
751
  }],
752
752
  /**
753
753
  * Padding Y
754
754
  * @see https://tailwindcss.com/docs/padding
755
755
  */
756
756
  py: [{
757
- py: [F]
757
+ py: [z]
758
758
  }],
759
759
  /**
760
760
  * Padding Start
761
761
  * @see https://tailwindcss.com/docs/padding
762
762
  */
763
763
  ps: [{
764
- ps: [F]
764
+ ps: [z]
765
765
  }],
766
766
  /**
767
767
  * Padding End
768
768
  * @see https://tailwindcss.com/docs/padding
769
769
  */
770
770
  pe: [{
771
- pe: [F]
771
+ pe: [z]
772
772
  }],
773
773
  /**
774
774
  * Padding Top
775
775
  * @see https://tailwindcss.com/docs/padding
776
776
  */
777
777
  pt: [{
778
- pt: [F]
778
+ pt: [z]
779
779
  }],
780
780
  /**
781
781
  * Padding Right
782
782
  * @see https://tailwindcss.com/docs/padding
783
783
  */
784
784
  pr: [{
785
- pr: [F]
785
+ pr: [z]
786
786
  }],
787
787
  /**
788
788
  * Padding Bottom
789
789
  * @see https://tailwindcss.com/docs/padding
790
790
  */
791
791
  pb: [{
792
- pb: [F]
792
+ pb: [z]
793
793
  }],
794
794
  /**
795
795
  * Padding Left
796
796
  * @see https://tailwindcss.com/docs/padding
797
797
  */
798
798
  pl: [{
799
- pl: [F]
799
+ pl: [z]
800
800
  }],
801
801
  /**
802
802
  * Margin
@@ -866,7 +866,7 @@ const E = (e) => {
866
866
  * @see https://tailwindcss.com/docs/space
867
867
  */
868
868
  "space-x": [{
869
- "space-x": [D]
869
+ "space-x": [S]
870
870
  }],
871
871
  /**
872
872
  * Space Between X Reverse
@@ -878,7 +878,7 @@ const E = (e) => {
878
878
  * @see https://tailwindcss.com/docs/space
879
879
  */
880
880
  "space-y": [{
881
- "space-y": [D]
881
+ "space-y": [S]
882
882
  }],
883
883
  /**
884
884
  * Space Between Y Reverse
@@ -1054,7 +1054,7 @@ const E = (e) => {
1054
1054
  * @see https://tailwindcss.com/docs/placeholder-opacity
1055
1055
  */
1056
1056
  "placeholder-opacity": [{
1057
- "placeholder-opacity": [S]
1057
+ "placeholder-opacity": [M]
1058
1058
  }],
1059
1059
  /**
1060
1060
  * Text Alignment
@@ -1075,7 +1075,7 @@ const E = (e) => {
1075
1075
  * @see https://tailwindcss.com/docs/text-opacity
1076
1076
  */
1077
1077
  "text-opacity": [{
1078
- "text-opacity": [S]
1078
+ "text-opacity": [M]
1079
1079
  }],
1080
1080
  /**
1081
1081
  * Text Decoration
@@ -1190,7 +1190,7 @@ const E = (e) => {
1190
1190
  * @see https://tailwindcss.com/docs/background-opacity
1191
1191
  */
1192
1192
  "bg-opacity": [{
1193
- "bg-opacity": [S]
1193
+ "bg-opacity": [M]
1194
1194
  }],
1195
1195
  /**
1196
1196
  * Background Origin
@@ -1243,42 +1243,42 @@ const E = (e) => {
1243
1243
  * @see https://tailwindcss.com/docs/gradient-color-stops
1244
1244
  */
1245
1245
  "gradient-from-pos": [{
1246
- from: [P]
1246
+ from: [W]
1247
1247
  }],
1248
1248
  /**
1249
1249
  * Gradient Color Stops Via Position
1250
1250
  * @see https://tailwindcss.com/docs/gradient-color-stops
1251
1251
  */
1252
1252
  "gradient-via-pos": [{
1253
- via: [P]
1253
+ via: [W]
1254
1254
  }],
1255
1255
  /**
1256
1256
  * Gradient Color Stops To Position
1257
1257
  * @see https://tailwindcss.com/docs/gradient-color-stops
1258
1258
  */
1259
1259
  "gradient-to-pos": [{
1260
- to: [P]
1260
+ to: [W]
1261
1261
  }],
1262
1262
  /**
1263
1263
  * Gradient Color Stops From
1264
1264
  * @see https://tailwindcss.com/docs/gradient-color-stops
1265
1265
  */
1266
1266
  "gradient-from": [{
1267
- from: [W]
1267
+ from: [P]
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: [W]
1274
+ via: [P]
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: [W]
1281
+ to: [P]
1282
1282
  }],
1283
1283
  // Borders
1284
1284
  /**
@@ -1454,7 +1454,7 @@ const E = (e) => {
1454
1454
  * @see https://tailwindcss.com/docs/border-opacity
1455
1455
  */
1456
1456
  "border-opacity": [{
1457
- "border-opacity": [S]
1457
+ "border-opacity": [M]
1458
1458
  }],
1459
1459
  /**
1460
1460
  * Border Style
@@ -1492,7 +1492,7 @@ const E = (e) => {
1492
1492
  * @see https://tailwindcss.com/docs/divide-opacity
1493
1493
  */
1494
1494
  "divide-opacity": [{
1495
- "divide-opacity": [S]
1495
+ "divide-opacity": [M]
1496
1496
  }],
1497
1497
  /**
1498
1498
  * Divide Style
@@ -1623,7 +1623,7 @@ const E = (e) => {
1623
1623
  * @see https://tailwindcss.com/docs/ring-opacity
1624
1624
  */
1625
1625
  "ring-opacity": [{
1626
- "ring-opacity": [S]
1626
+ "ring-opacity": [M]
1627
1627
  }],
1628
1628
  /**
1629
1629
  * Ring Offset Width
@@ -1659,7 +1659,7 @@ const E = (e) => {
1659
1659
  * @see https://tailwindcss.com/docs/opacity
1660
1660
  */
1661
1661
  opacity: [{
1662
- opacity: [S]
1662
+ opacity: [M]
1663
1663
  }],
1664
1664
  /**
1665
1665
  * Mix Blend Mode
@@ -1738,7 +1738,7 @@ const E = (e) => {
1738
1738
  * @see https://tailwindcss.com/docs/saturate
1739
1739
  */
1740
1740
  saturate: [{
1741
- saturate: [$]
1741
+ saturate: [H]
1742
1742
  }],
1743
1743
  /**
1744
1744
  * Sepia
@@ -1802,14 +1802,14 @@ const E = (e) => {
1802
1802
  * @see https://tailwindcss.com/docs/backdrop-opacity
1803
1803
  */
1804
1804
  "backdrop-opacity": [{
1805
- "backdrop-opacity": [S]
1805
+ "backdrop-opacity": [M]
1806
1806
  }],
1807
1807
  /**
1808
1808
  * Backdrop Saturate
1809
1809
  * @see https://tailwindcss.com/docs/backdrop-saturate
1810
1810
  */
1811
1811
  "backdrop-saturate": [{
1812
- "backdrop-saturate": [$]
1812
+ "backdrop-saturate": [H]
1813
1813
  }],
1814
1814
  /**
1815
1815
  * Backdrop Sepia
@@ -1952,14 +1952,14 @@ const E = (e) => {
1952
1952
  * @see https://tailwindcss.com/docs/skew
1953
1953
  */
1954
1954
  "skew-x": [{
1955
- "skew-x": [H]
1955
+ "skew-x": [G]
1956
1956
  }],
1957
1957
  /**
1958
1958
  * Skew Y
1959
1959
  * @see https://tailwindcss.com/docs/skew
1960
1960
  */
1961
1961
  "skew-y": [{
1962
- "skew-y": [H]
1962
+ "skew-y": [G]
1963
1963
  }],
1964
1964
  /**
1965
1965
  * Transform Origin
@@ -2304,7 +2304,7 @@ const E = (e) => {
2304
2304
  function x(...e) {
2305
2305
  return ra(is(e));
2306
2306
  }
2307
- const sa = ae("font-sans text-gray-900", {
2307
+ const sa = se("font-sans text-gray-900", {
2308
2308
  variants: {
2309
2309
  variant: {
2310
2310
  h1: "text-3xl leading-tight font-bold",
@@ -2337,7 +2337,7 @@ const sa = ae("font-sans text-gray-900", {
2337
2337
  body: "p",
2338
2338
  bodySm: "p",
2339
2339
  caption: "span"
2340
- }, z = K(
2340
+ }, F = K(
2341
2341
  ({ className: e, variant: t = "body", weight: r, as: s, children: n, ...a }, i) => {
2342
2342
  const o = s ?? na[t ?? "body"];
2343
2343
  return kn(
@@ -2351,8 +2351,8 @@ const sa = ae("font-sans text-gray-900", {
2351
2351
  );
2352
2352
  }
2353
2353
  );
2354
- z.displayName = "Text";
2355
- const aa = ae(
2354
+ F.displayName = "Text";
2355
+ const aa = se(
2356
2356
  "inline-flex items-center justify-center gap-2 rounded-lg transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-agilys-primary disabled:pointer-events-none disabled:opacity-50",
2357
2357
  {
2358
2358
  variants: {
@@ -2434,14 +2434,14 @@ const aa = ae(
2434
2434
  }
2435
2435
  ),
2436
2436
  !n && a && /* @__PURE__ */ l("span", { className: "inline-flex shrink-0", "aria-hidden": "true", children: a }),
2437
- h ? /* @__PURE__ */ l("span", { className: "inline-flex shrink-0", children: o }) : /* @__PURE__ */ l(z, { as: "span", variant: p, className: "text-inherit", children: o })
2437
+ h ? /* @__PURE__ */ l("span", { className: "inline-flex shrink-0", children: o }) : /* @__PURE__ */ l(F, { as: "span", variant: p, className: "text-inherit", children: o })
2438
2438
  ]
2439
2439
  }
2440
2440
  );
2441
2441
  }
2442
2442
  );
2443
2443
  oa.displayName = "Button";
2444
- const la = ae(
2444
+ const la = se(
2445
2445
  "inline-flex items-center justify-center h-6 whitespace-nowrap",
2446
2446
  {
2447
2447
  variants: {
@@ -2525,13 +2525,13 @@ const la = ae(
2525
2525
  "aria-hidden": "true"
2526
2526
  }
2527
2527
  ),
2528
- s && (typeof s == "string" ? /* @__PURE__ */ l(z, { as: "span", variant: "body", className: "text-inherit", children: s }) : s)
2528
+ s && (typeof s == "string" ? /* @__PURE__ */ l(F, { as: "span", variant: "body", className: "text-inherit", children: s }) : s)
2529
2529
  ]
2530
2530
  }
2531
2531
  )
2532
2532
  );
2533
2533
  ca.displayName = "Badge";
2534
- const ua = ae("flex items-start gap-2 rounded-lg p-5 font-sans", {
2534
+ const ua = se("flex items-start gap-2 rounded-lg p-5 font-sans", {
2535
2535
  variants: {
2536
2536
  variant: {
2537
2537
  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)]",
@@ -2634,8 +2634,8 @@ const ba = {
2634
2634
  return /* @__PURE__ */ L("div", { ref: c, className: x(ua({ variant: t }), e), ...d, children: [
2635
2635
  p && /* @__PURE__ */ l("span", { className: x("size-6 shrink-0", g), "aria-hidden": "true", children: p }),
2636
2636
  /* @__PURE__ */ L("div", { className: "flex min-w-0 flex-1 flex-col gap-1", children: [
2637
- s && /* @__PURE__ */ l(z, { as: "div", variant: "body", weight: "semibold", className: g, children: s }),
2638
- n && /* @__PURE__ */ l(z, { as: "div", variant: "bodySm", className: "text-neutral-text-secondary", children: n }),
2637
+ s && /* @__PURE__ */ l(F, { as: "div", variant: "body", weight: "semibold", className: g, children: s }),
2638
+ n && /* @__PURE__ */ l(F, { as: "div", variant: "bodySm", className: "text-neutral-text-secondary", children: n }),
2639
2639
  o
2640
2640
  ] }),
2641
2641
  a && /* @__PURE__ */ l("div", { className: "flex shrink-0 items-center", children: a }),
@@ -3139,7 +3139,7 @@ function qa(e) {
3139
3139
  return s.priority - n.priority;
3140
3140
  }), t;
3141
3141
  }
3142
- var vs = /\d/, se = /\d\d/, xs = /\d{3}/, wr = /\d{4}/, Ft = /[+-]?\d{6}/, V = /\d\d?/, ws = /\d\d\d\d?/, _s = /\d\d\d\d\d\d?/, Et = /\d{1,3}/, _r = /\d{1,4}/, jt = /[+-]?\d{1,6}/, et = /\d+/, Vt = /[+-]?\d+/, Ja = /Z|[+-]\d\d:?\d\d/gi, Ut = /Z|[+-]\d\d(?::?\d\d)?/gi, Qa = /[+-]?\d+(\.\d{1,3})?/, xt = /[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i, tt = /^[1-9]\d?/, kr = /^([1-9]\d|\d)/, Wt;
3142
+ var vs = /\d/, ne = /\d\d/, xs = /\d{3}/, wr = /\d{4}/, Ft = /[+-]?\d{6}/, V = /\d\d?/, ws = /\d\d\d\d?/, _s = /\d\d\d\d\d\d?/, Et = /\d{1,3}/, _r = /\d{1,4}/, jt = /[+-]?\d{1,6}/, et = /\d+/, Vt = /[+-]?\d+/, Ja = /Z|[+-]\d\d:?\d\d/gi, Ut = /Z|[+-]\d\d(?::?\d\d)?/gi, Qa = /[+-]?\d+(\.\d{1,3})?/, xt = /[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i, tt = /^[1-9]\d?/, kr = /^([1-9]\d|\d)/, Wt;
3143
3143
  Wt = {};
3144
3144
  function m(e, t, r) {
3145
3145
  Wt[e] = pe(t) ? t : function(s, n) {
@@ -3162,18 +3162,18 @@ function Xa(e) {
3162
3162
  function ke(e) {
3163
3163
  return e.replace(/[-\/\\^$*+?.()|[\]{}]/g, "\\$&");
3164
3164
  }
3165
- function ne(e) {
3165
+ function ae(e) {
3166
3166
  return e < 0 ? Math.ceil(e) || 0 : Math.floor(e);
3167
3167
  }
3168
- function N(e) {
3168
+ function D(e) {
3169
3169
  var t = +e, r = 0;
3170
- return t !== 0 && isFinite(t) && (r = ne(t)), r;
3170
+ return t !== 0 && isFinite(t) && (r = ae(t)), r;
3171
3171
  }
3172
3172
  var ir = {};
3173
3173
  function A(e, t) {
3174
3174
  var r, s = t, n;
3175
3175
  for (typeof e == "string" && (e = [e]), Se(t) && (s = function(a, i) {
3176
- i[t] = N(a);
3176
+ i[t] = D(a);
3177
3177
  }), n = e.length, r = 0; r < n; r++)
3178
3178
  ir[e[r]] = s;
3179
3179
  }
@@ -3200,13 +3200,13 @@ b(0, ["YYYY", 4], 0, "year");
3200
3200
  b(0, ["YYYYY", 5], 0, "year");
3201
3201
  b(0, ["YYYYYY", 6, !0], 0, "year");
3202
3202
  m("Y", Vt);
3203
- m("YY", V, se);
3203
+ m("YY", V, ne);
3204
3204
  m("YYYY", _r, wr);
3205
3205
  m("YYYYY", jt, Ft);
3206
3206
  m("YYYYYY", jt, Ft);
3207
3207
  A(["YYYYY", "YYYYYY"], X);
3208
3208
  A("YYYY", function(e, t) {
3209
- t[X] = e.length === 2 ? f.parseTwoDigitYear(e) : N(e);
3209
+ t[X] = e.length === 2 ? f.parseTwoDigitYear(e) : D(e);
3210
3210
  });
3211
3211
  A("YY", function(e, t) {
3212
3212
  t[X] = f.parseTwoDigitYear(e);
@@ -3218,7 +3218,7 @@ function ut(e) {
3218
3218
  return Ht(e) ? 366 : 365;
3219
3219
  }
3220
3220
  f.parseTwoDigitYear = function(e) {
3221
- return N(e) + (N(e) > 68 ? 1900 : 2e3);
3221
+ return D(e) + (D(e) > 68 ? 1900 : 2e3);
3222
3222
  };
3223
3223
  var ks = rt("FullYear", !0);
3224
3224
  function si() {
@@ -3316,7 +3316,7 @@ b("MMMM", 0, 0, function(e) {
3316
3316
  return this.localeData().months(this, e);
3317
3317
  });
3318
3318
  m("M", V, tt);
3319
- m("MM", V, se);
3319
+ m("MM", V, ne);
3320
3320
  m("MMM", function(e, t) {
3321
3321
  return t.monthsShortRegex(e);
3322
3322
  });
@@ -3324,7 +3324,7 @@ m("MMMM", function(e, t) {
3324
3324
  return t.monthsRegex(e);
3325
3325
  });
3326
3326
  A(["M", "MM"], function(e, t) {
3327
- t[we] = N(e) - 1;
3327
+ t[we] = D(e) - 1;
3328
3328
  });
3329
3329
  A(["MMM", "MMMM"], function(e, t, r, s) {
3330
3330
  var n = r._locale.monthsParse(e, s, r._strict);
@@ -3373,7 +3373,7 @@ function Ns(e, t) {
3373
3373
  return e;
3374
3374
  if (typeof t == "string") {
3375
3375
  if (/^\d+$/.test(t))
3376
- t = N(t);
3376
+ t = D(t);
3377
3377
  else if (t = e.localeData().monthsParse(t), !Se(t))
3378
3378
  return e;
3379
3379
  }
@@ -3440,13 +3440,13 @@ function Me(e, t, r) {
3440
3440
  b("w", ["ww", 2], "wo", "week");
3441
3441
  b("W", ["WW", 2], "Wo", "isoWeek");
3442
3442
  m("w", V, tt);
3443
- m("ww", V, se);
3443
+ m("ww", V, ne);
3444
3444
  m("W", V, tt);
3445
- m("WW", V, se);
3445
+ m("WW", V, ne);
3446
3446
  wt(
3447
3447
  ["w", "ww", "W", "WW"],
3448
3448
  function(e, t, r, s) {
3449
- t[s.substr(0, 1)] = N(e);
3449
+ t[s.substr(0, 1)] = D(e);
3450
3450
  }
3451
3451
  );
3452
3452
  function bi(e) {
@@ -3501,7 +3501,7 @@ wt(["dd", "ddd", "dddd"], function(e, t, r, s) {
3501
3501
  n != null ? t.d = n : _(r).invalidWeekday = e;
3502
3502
  });
3503
3503
  wt(["d", "e", "E"], function(e, t, r, s) {
3504
- t[s] = N(e);
3504
+ t[s] = D(e);
3505
3505
  });
3506
3506
  function Mi(e, t) {
3507
3507
  return typeof e != "string" ? e : isNaN(e) ? (e = t.weekdaysParse(e), typeof e == "number" ? e : null) : parseInt(e, 10);
@@ -3648,39 +3648,39 @@ m("A", Ws);
3648
3648
  m("H", V, kr);
3649
3649
  m("h", V, tt);
3650
3650
  m("k", V, tt);
3651
- m("HH", V, se);
3652
- m("hh", V, se);
3653
- m("kk", V, se);
3651
+ m("HH", V, ne);
3652
+ m("hh", V, ne);
3653
+ m("kk", V, ne);
3654
3654
  m("hmm", ws);
3655
3655
  m("hmmss", _s);
3656
3656
  m("Hmm", ws);
3657
3657
  m("Hmmss", _s);
3658
3658
  A(["H", "HH"], J);
3659
3659
  A(["k", "kk"], function(e, t, r) {
3660
- var s = N(e);
3660
+ var s = D(e);
3661
3661
  t[J] = s === 24 ? 0 : s;
3662
3662
  });
3663
3663
  A(["a", "A"], function(e, t, r) {
3664
3664
  r._isPm = r._locale.isPM(e), r._meridiem = e;
3665
3665
  });
3666
3666
  A(["h", "hh"], function(e, t, r) {
3667
- t[J] = N(e), _(r).bigHour = !0;
3667
+ t[J] = D(e), _(r).bigHour = !0;
3668
3668
  });
3669
3669
  A("hmm", function(e, t, r) {
3670
3670
  var s = e.length - 2;
3671
- t[J] = N(e.substr(0, s)), t[le] = N(e.substr(s)), _(r).bigHour = !0;
3671
+ t[J] = D(e.substr(0, s)), t[le] = D(e.substr(s)), _(r).bigHour = !0;
3672
3672
  });
3673
3673
  A("hmmss", function(e, t, r) {
3674
3674
  var s = e.length - 4, n = e.length - 2;
3675
- t[J] = N(e.substr(0, s)), t[le] = N(e.substr(s, 2)), t[_e] = N(e.substr(n)), _(r).bigHour = !0;
3675
+ t[J] = D(e.substr(0, s)), t[le] = D(e.substr(s, 2)), t[_e] = D(e.substr(n)), _(r).bigHour = !0;
3676
3676
  });
3677
3677
  A("Hmm", function(e, t, r) {
3678
3678
  var s = e.length - 2;
3679
- t[J] = N(e.substr(0, s)), t[le] = N(e.substr(s));
3679
+ t[J] = D(e.substr(0, s)), t[le] = D(e.substr(s));
3680
3680
  });
3681
3681
  A("Hmmss", function(e, t, r) {
3682
3682
  var s = e.length - 4, n = e.length - 2;
3683
- t[J] = N(e.substr(0, s)), t[le] = N(e.substr(s, 2)), t[_e] = N(e.substr(n));
3683
+ t[J] = D(e.substr(0, s)), t[le] = D(e.substr(s, 2)), t[_e] = D(e.substr(n));
3684
3684
  });
3685
3685
  function Ui(e) {
3686
3686
  return (e + "").toLowerCase().charAt(0) === "p";
@@ -4099,7 +4099,7 @@ function ko(e) {
4099
4099
  if (e[dt[s]]) {
4100
4100
  if (r)
4101
4101
  return !1;
4102
- parseFloat(e[dt[s]]) !== N(e[dt[s]]) && (r = !0);
4102
+ parseFloat(e[dt[s]]) !== D(e[dt[s]]) && (r = !0);
4103
4103
  }
4104
4104
  return !0;
4105
4105
  }
@@ -4124,7 +4124,7 @@ function or(e) {
4124
4124
  function Do(e, t, r) {
4125
4125
  var s = Math.min(e.length, t.length), n = Math.abs(e.length - t.length), a = 0, i;
4126
4126
  for (i = 0; i < s; i++)
4127
- N(e[i]) !== N(t[i]) && a++;
4127
+ D(e[i]) !== D(t[i]) && a++;
4128
4128
  return a + n;
4129
4129
  }
4130
4130
  function Es(e, t) {
@@ -4143,7 +4143,7 @@ A(["Z", "ZZ"], function(e, t, r) {
4143
4143
  var No = /([\+\-]|\d\d)/gi;
4144
4144
  function Pr(e, t) {
4145
4145
  var r = (t || "").match(e), s, n, a;
4146
- return r === null ? null : (s = r[r.length - 1] || [], n = (s + "").match(No) || ["-", 0, 0], a = +(n[1] * 60) + N(n[2]), a === 0 ? 0 : n[0] === "+" ? a : -a);
4146
+ return r === null ? null : (s = r[r.length - 1] || [], n = (s + "").match(No) || ["-", 0, 0], a = +(n[1] * 60) + D(n[2]), a === 0 ? 0 : n[0] === "+" ? a : -a);
4147
4147
  }
4148
4148
  function Wr(e, t) {
4149
4149
  var r, s;
@@ -4220,11 +4220,11 @@ function ue(e, t) {
4220
4220
  M: e._months
4221
4221
  } : Se(e) || !isNaN(+e) ? (r = {}, t ? r[t] = +e : r.milliseconds = +e) : (s = zo.exec(e)) ? (n = s[1] === "-" ? -1 : 1, r = {
4222
4222
  y: 0,
4223
- d: N(s[fe]) * n,
4224
- h: N(s[J]) * n,
4225
- m: N(s[le]) * n,
4226
- s: N(s[_e]) * n,
4227
- ms: N(or(s[ze] * 1e3)) * n
4223
+ d: D(s[fe]) * n,
4224
+ h: D(s[J]) * n,
4225
+ m: D(s[le]) * n,
4226
+ s: D(s[_e]) * n,
4227
+ ms: D(or(s[ze] * 1e3)) * n
4228
4228
  // the millisecond decimal point is included in the match
4229
4229
  }) : (s = Fo.exec(e)) ? (n = s[1] === "-" ? -1 : 1, r = {
4230
4230
  y: Ae(s[2], n),
@@ -4393,7 +4393,7 @@ function rl(e, t, r) {
4393
4393
  default:
4394
4394
  a = this - s;
4395
4395
  }
4396
- return r ? a : ne(a);
4396
+ return r ? a : ae(a);
4397
4397
  }
4398
4398
  function Tt(e, t) {
4399
4399
  if (e.date() < t.date())
@@ -4770,8 +4770,8 @@ Bt("GGGG", "isoWeekYear");
4770
4770
  Bt("GGGGG", "isoWeekYear");
4771
4771
  m("G", Vt);
4772
4772
  m("g", Vt);
4773
- m("GG", V, se);
4774
- m("gg", V, se);
4773
+ m("GG", V, ne);
4774
+ m("gg", V, ne);
4775
4775
  m("GGGG", _r, wr);
4776
4776
  m("gggg", _r, wr);
4777
4777
  m("GGGGG", jt, Ft);
@@ -4779,7 +4779,7 @@ m("ggggg", jt, Ft);
4779
4779
  wt(
4780
4780
  ["gggg", "ggggg", "GGGG", "GGGGG"],
4781
4781
  function(e, t, r, s) {
4782
- t[s.substr(0, 2)] = N(e);
4782
+ t[s.substr(0, 2)] = D(e);
4783
4783
  }
4784
4784
  );
4785
4785
  wt(["gg", "GG"], function(e, t, r, s) {
@@ -4830,27 +4830,27 @@ function Vl(e, t, r, s, n) {
4830
4830
  b("Q", 0, "Qo", "quarter");
4831
4831
  m("Q", vs);
4832
4832
  A("Q", function(e, t) {
4833
- t[we] = (N(e) - 1) * 3;
4833
+ t[we] = (D(e) - 1) * 3;
4834
4834
  });
4835
4835
  function Ul(e) {
4836
4836
  return e == null ? Math.ceil((this.month() + 1) / 3) : this.month((e - 1) * 3 + this.month() % 3);
4837
4837
  }
4838
4838
  b("D", ["DD", 2], "Do", "date");
4839
4839
  m("D", V, tt);
4840
- m("DD", V, se);
4840
+ m("DD", V, ne);
4841
4841
  m("Do", function(e, t) {
4842
4842
  return e ? t._dayOfMonthOrdinalParse || t._ordinalParse : t._dayOfMonthOrdinalParseLenient;
4843
4843
  });
4844
4844
  A(["D", "DD"], fe);
4845
4845
  A("Do", function(e, t) {
4846
- t[fe] = N(e.match(V)[0]);
4846
+ t[fe] = D(e.match(V)[0]);
4847
4847
  });
4848
4848
  var Ks = rt("Date", !0);
4849
4849
  b("DDD", ["DDDD", 3], "DDDo", "dayOfYear");
4850
4850
  m("DDD", Et);
4851
4851
  m("DDDD", xs);
4852
4852
  A(["DDD", "DDDD"], function(e, t, r) {
4853
- r._dayOfYear = N(e);
4853
+ r._dayOfYear = D(e);
4854
4854
  });
4855
4855
  function Hl(e) {
4856
4856
  var t = Math.round(
@@ -4860,12 +4860,12 @@ function Hl(e) {
4860
4860
  }
4861
4861
  b("m", ["mm", 2], 0, "minute");
4862
4862
  m("m", V, kr);
4863
- m("mm", V, se);
4863
+ m("mm", V, ne);
4864
4864
  A(["m", "mm"], le);
4865
4865
  var Gl = rt("Minutes", !1);
4866
4866
  b("s", ["ss", 2], 0, "second");
4867
4867
  m("s", V, kr);
4868
- m("ss", V, se);
4868
+ m("ss", V, ne);
4869
4869
  A(["s", "ss"], _e);
4870
4870
  var $l = rt("Seconds", !1);
4871
4871
  b("S", 0, 0, function() {
@@ -4894,13 +4894,13 @@ b(0, ["SSSSSSSSS", 9], 0, function() {
4894
4894
  return this.millisecond() * 1e6;
4895
4895
  });
4896
4896
  m("S", Et, vs);
4897
- m("SS", Et, se);
4897
+ m("SS", Et, ne);
4898
4898
  m("SSS", Et, xs);
4899
4899
  var Ie, Xs;
4900
4900
  for (Ie = "SSSS"; Ie.length <= 9; Ie += "S")
4901
4901
  m(Ie, et);
4902
4902
  function Bl(e, t) {
4903
- t[ze] = N(("0." + e) * 1e3);
4903
+ t[ze] = D(("0." + e) * 1e3);
4904
4904
  }
4905
4905
  for (Ie = "S"; Ie.length <= 9; Ie += "S")
4906
4906
  A(Ie, Bl);
@@ -5112,7 +5112,7 @@ Re("en", {
5112
5112
  ],
5113
5113
  dayOfMonthOrdinalParse: /\d{1,2}(th|st|nd|rd)/,
5114
5114
  ordinal: function(e) {
5115
- var t = e % 10, r = N(e % 100 / 10) === 1 ? "th" : t === 1 ? "st" : t === 2 ? "nd" : t === 3 ? "rd" : "th";
5115
+ var t = e % 10, r = D(e % 100 / 10) === 1 ? "th" : t === 1 ? "st" : t === 2 ? "nd" : t === 3 ? "rd" : "th";
5116
5116
  return e + r;
5117
5117
  }
5118
5118
  });
@@ -5144,7 +5144,7 @@ function Kr(e) {
5144
5144
  }
5145
5145
  function id() {
5146
5146
  var e = this._milliseconds, t = this._days, r = this._months, s = this._data, n, a, i, o, d;
5147
- return e >= 0 && t >= 0 && r >= 0 || e <= 0 && t <= 0 && r <= 0 || (e += Kr(dr(r) + t) * 864e5, t = 0, r = 0), s.milliseconds = e % 1e3, n = ne(e / 1e3), s.seconds = n % 60, a = ne(n / 60), s.minutes = a % 60, i = ne(a / 60), s.hours = i % 24, t += ne(i / 24), d = ne(sn(t)), r += d, t -= Kr(dr(d)), o = ne(r / 12), r %= 12, s.days = t, s.months = r, s.years = o, this;
5147
+ return e >= 0 && t >= 0 && r >= 0 || e <= 0 && t <= 0 && r <= 0 || (e += Kr(dr(r) + t) * 864e5, t = 0, r = 0), s.milliseconds = e % 1e3, n = ae(e / 1e3), s.seconds = n % 60, a = ae(n / 60), s.minutes = a % 60, i = ae(a / 60), s.hours = i % 24, t += ae(i / 24), d = ae(sn(t)), r += d, t -= Kr(dr(d)), o = ae(r / 12), r %= 12, s.days = t, s.months = r, s.years = o, this;
5148
5148
  }
5149
5149
  function sn(e) {
5150
5150
  return e * 4800 / 146097;
@@ -5202,7 +5202,7 @@ function je(e) {
5202
5202
  }
5203
5203
  var vd = je("milliseconds"), xd = je("seconds"), wd = je("minutes"), _d = je("hours"), kd = je("days"), Md = je("months"), Sd = je("years");
5204
5204
  function Dd() {
5205
- return ne(this.days() / 7);
5205
+ return ae(this.days() / 7);
5206
5206
  }
5207
5207
  var ve = Math.round, $e = {
5208
5208
  ss: 44,
@@ -5247,7 +5247,7 @@ function Zt() {
5247
5247
  if (!this.isValid())
5248
5248
  return this.localeData().invalidDate();
5249
5249
  var e = tr(this._milliseconds) / 1e3, t = tr(this._days), r = tr(this._months), s, n, a, i, o = this.asSeconds(), d, c, h, p;
5250
- return o ? (s = ne(e / 60), n = ne(s / 60), e %= 60, s %= 60, a = ne(r / 12), r %= 12, i = e ? e.toFixed(3).replace(/\.?0+$/, "") : "", d = o < 0 ? "-" : "", c = He(this._months) !== He(o) ? "-" : "", h = He(this._days) !== He(o) ? "-" : "", p = He(this._milliseconds) !== He(o) ? "-" : "", d + "P" + (a ? c + a + "Y" : "") + (r ? c + r + "M" : "") + (t ? h + t + "D" : "") + (n || s || e ? "T" : "") + (n ? p + n + "H" : "") + (s ? p + s + "M" : "") + (e ? p + i + "S" : "")) : "P0D";
5250
+ return o ? (s = ae(e / 60), n = ae(s / 60), e %= 60, s %= 60, a = ae(r / 12), r %= 12, i = e ? e.toFixed(3).replace(/\.?0+$/, "") : "", d = o < 0 ? "-" : "", c = He(this._months) !== He(o) ? "-" : "", h = He(this._days) !== He(o) ? "-" : "", p = He(this._milliseconds) !== He(o) ? "-" : "", d + "P" + (a ? c + a + "Y" : "") + (r ? c + r + "M" : "") + (t ? h + t + "D" : "") + (n || s || e ? "T" : "") + (n ? p + n + "H" : "") + (s ? p + s + "M" : "") + (e ? p + i + "S" : "")) : "P0D";
5251
5251
  }
5252
5252
  var Y = $t.prototype;
5253
5253
  Y.isValid = Mo;
@@ -5295,7 +5295,7 @@ A("X", function(e, t, r) {
5295
5295
  r._d = new Date(parseFloat(e) * 1e3);
5296
5296
  });
5297
5297
  A("x", function(e, t, r) {
5298
- r._d = new Date(N(e));
5298
+ r._d = new Date(D(e));
5299
5299
  });
5300
5300
  //! moment.js
5301
5301
  f.version = "2.30.1";
@@ -5383,7 +5383,7 @@ const Pd = K(
5383
5383
  }
5384
5384
  ),
5385
5385
  /* @__PURE__ */ l(
5386
- z,
5386
+ F,
5387
5387
  {
5388
5388
  as: "div",
5389
5389
  variant: "body",
@@ -5394,7 +5394,7 @@ const Pd = K(
5394
5394
  )
5395
5395
  ] }),
5396
5396
  /* @__PURE__ */ l(
5397
- z,
5397
+ F,
5398
5398
  {
5399
5399
  as: "span",
5400
5400
  variant: "caption",
@@ -5403,7 +5403,7 @@ const Pd = K(
5403
5403
  }
5404
5404
  )
5405
5405
  ] }),
5406
- /* @__PURE__ */ l(z, { as: "div", variant: "bodySm", className: "text-neutral-text-secondary", children: r }),
5406
+ /* @__PURE__ */ l(F, { as: "div", variant: "bodySm", className: "text-neutral-text-secondary", children: r }),
5407
5407
  /* @__PURE__ */ L("div", { className: "flex items-center justify-end gap-1 pt-1", children: [
5408
5408
  /* @__PURE__ */ l(
5409
5409
  "button",
@@ -5479,7 +5479,7 @@ function Id(e, t) {
5479
5479
  if (!t.key) return null;
5480
5480
  const r = Wd(e, t.key);
5481
5481
  return r == null || r === "" ? null : /* @__PURE__ */ l(
5482
- z,
5482
+ F,
5483
5483
  {
5484
5484
  as: "span",
5485
5485
  variant: "body",
@@ -5519,7 +5519,7 @@ const ur = K(
5519
5519
  onClick: r ? n : void 0,
5520
5520
  children: [
5521
5521
  /* @__PURE__ */ l(
5522
- z,
5522
+ F,
5523
5523
  {
5524
5524
  as: "span",
5525
5525
  variant: "bodySm",
@@ -5557,7 +5557,7 @@ function Xr({
5557
5557
  t
5558
5558
  ),
5559
5559
  children: /* @__PURE__ */ l(
5560
- z,
5560
+ F,
5561
5561
  {
5562
5562
  className: x("flex items-center gap-2", an[e ?? "left"]),
5563
5563
  children: r
@@ -5566,7 +5566,7 @@ function Xr({
5566
5566
  }
5567
5567
  );
5568
5568
  }
5569
- const Ld = ae(
5569
+ const Ld = se(
5570
5570
  "relative inline-flex shrink-0 items-center justify-center overflow-hidden rounded-full bg-neutral-surface-lightest font-sans font-medium text-neutral-text-secondary",
5571
5571
  {
5572
5572
  variants: {
@@ -5594,7 +5594,7 @@ const zd = {
5594
5594
  ({ className: e, size: t, src: r, alt: s = "", name: n, ...a }, i) => {
5595
5595
  const o = t ?? "md";
5596
5596
  return /* @__PURE__ */ l("span", { ref: i, className: x(Ld({ size: t }), e), ...a, children: r ? /* @__PURE__ */ l("img", { src: r, alt: s, className: "size-full object-cover" }) : n && /* @__PURE__ */ l(
5597
- z,
5597
+ F,
5598
5598
  {
5599
5599
  as: "span",
5600
5600
  variant: zd[o],
@@ -5606,7 +5606,7 @@ const zd = {
5606
5606
  }
5607
5607
  );
5608
5608
  on.displayName = "Avatar";
5609
- function ac({
5609
+ function ic({
5610
5610
  src: e,
5611
5611
  name: t,
5612
5612
  description: r,
@@ -5616,9 +5616,9 @@ function ac({
5616
5616
  return /* @__PURE__ */ L("div", { className: x("flex min-w-0 items-center gap-2", n), children: [
5617
5617
  /* @__PURE__ */ l(on, { src: e, name: t, size: s }),
5618
5618
  /* @__PURE__ */ L("div", { className: "flex min-w-0 flex-col", children: [
5619
- /* @__PURE__ */ l(z, { as: "span", variant: "body", className: "truncate", children: t }),
5619
+ /* @__PURE__ */ l(F, { as: "span", variant: "body", className: "truncate", children: t }),
5620
5620
  r && /* @__PURE__ */ l(
5621
- z,
5621
+ F,
5622
5622
  {
5623
5623
  as: "span",
5624
5624
  variant: "bodySm",
@@ -5629,7 +5629,7 @@ function ac({
5629
5629
  ] })
5630
5630
  ] });
5631
5631
  }
5632
- function ic({
5632
+ function oc({
5633
5633
  keys: e,
5634
5634
  data: t,
5635
5635
  rowKey: r,
@@ -5643,16 +5643,16 @@ function ic({
5643
5643
  sortDirection: h,
5644
5644
  onSortChange: p,
5645
5645
  onRowClick: g,
5646
- shadow: W = !1,
5647
- border: P = !1,
5648
- className: M,
5646
+ shadow: P = !1,
5647
+ border: W = !1,
5648
+ className: N,
5649
5649
  ...y
5650
5650
  }) {
5651
- const S = e.length + (i ? 1 : 0), F = o ?? [], $ = t.map((D, v) => Rd(D, v, r)), k = $.length > 0 && $.every((D) => F.includes(D)), q = () => {
5652
- d && d(k ? [] : $);
5653
- }, H = (D) => {
5651
+ const M = e.length + (i ? 1 : 0), z = o ?? [], H = t.map((S, v) => Rd(S, v, r)), k = H.length > 0 && H.every((S) => z.includes(S)), q = () => {
5652
+ d && d(k ? [] : H);
5653
+ }, G = (S) => {
5654
5654
  d && d(
5655
- F.includes(D) ? F.filter((v) => v !== D) : [...F, D]
5655
+ z.includes(S) ? z.filter((v) => v !== S) : [...z, S]
5656
5656
  );
5657
5657
  };
5658
5658
  return /* @__PURE__ */ l(
@@ -5660,13 +5660,13 @@ function ic({
5660
5660
  {
5661
5661
  className: x(
5662
5662
  "w-full overflow-x-auto rounded-lg",
5663
- P && "border border-neutral-divider-secondary",
5664
- W && "shadow-[0px_0px_2px_0px_rgba(66,74,98,0.04),0px_3px_8px_0px_rgba(66,74,98,0.09)]"
5663
+ W && "border border-neutral-divider-secondary",
5664
+ P && "shadow-[0px_0px_2px_0px_rgba(66,74,98,0.04),0px_3px_8px_0px_rgba(66,74,98,0.09)]"
5665
5665
  ),
5666
5666
  children: /* @__PURE__ */ L(
5667
5667
  "table",
5668
5668
  {
5669
- className: x("w-full border-collapse table-fixed", M),
5669
+ className: x("w-full border-collapse table-fixed", N),
5670
5670
  ...y,
5671
5671
  children: [
5672
5672
  /* @__PURE__ */ l("thead", { children: /* @__PURE__ */ L("tr", { children: [
@@ -5678,25 +5678,25 @@ function ic({
5678
5678
  "aria-label": "Selecionar todas as linhas"
5679
5679
  }
5680
5680
  ) }),
5681
- e.map((D, v) => /* @__PURE__ */ l(
5681
+ e.map((S, v) => /* @__PURE__ */ l(
5682
5682
  ur,
5683
5683
  {
5684
- align: D.align,
5685
- sortable: !!D.key && !!p,
5686
- sorted: D.key && c === D.key ? h : !1,
5687
- onSort: () => D.key && (p == null ? void 0 : p(D.key)),
5688
- children: D.label
5684
+ align: S.align,
5685
+ sortable: !!S.key && !!p,
5686
+ sorted: S.key && c === S.key ? h : !1,
5687
+ onSort: () => S.key && (p == null ? void 0 : p(S.key)),
5688
+ children: S.label
5689
5689
  },
5690
- D.key ?? `column-${v}`
5690
+ S.key ?? `column-${v}`
5691
5691
  ))
5692
5692
  ] }) }),
5693
5693
  /* @__PURE__ */ l("tbody", { children: s ? /* @__PURE__ */ l("tr", { children: /* @__PURE__ */ l(
5694
5694
  "td",
5695
5695
  {
5696
- colSpan: S,
5696
+ colSpan: M,
5697
5697
  className: "border-b border-neutral-divider-secondary bg-neutral-surface-lightest px-5 py-6",
5698
5698
  children: /* @__PURE__ */ l(
5699
- z,
5699
+ F,
5700
5700
  {
5701
5701
  as: "p",
5702
5702
  variant: "body",
@@ -5708,10 +5708,10 @@ function ic({
5708
5708
  ) }) : t.length === 0 ? /* @__PURE__ */ l("tr", { children: /* @__PURE__ */ l(
5709
5709
  "td",
5710
5710
  {
5711
- colSpan: S,
5711
+ colSpan: M,
5712
5712
  className: "border-b border-neutral-divider-secondary bg-neutral-surface-lightest px-5 py-6",
5713
5713
  children: /* @__PURE__ */ l(
5714
- z,
5714
+ F,
5715
5715
  {
5716
5716
  as: "p",
5717
5717
  variant: "body",
@@ -5720,12 +5720,12 @@ function ic({
5720
5720
  }
5721
5721
  )
5722
5722
  }
5723
- ) }) : t.map((D, v) => {
5724
- const I = $[v];
5723
+ ) }) : t.map((S, v) => {
5724
+ const I = H[v];
5725
5725
  return /* @__PURE__ */ L(
5726
5726
  "tr",
5727
5727
  {
5728
- onClick: g ? () => g(D) : void 0,
5728
+ onClick: g ? () => g(S) : void 0,
5729
5729
  className: x(
5730
5730
  v % 2 === 0 ? "bg-neutral-surface-lightest" : "bg-white",
5731
5731
  g && "cursor-pointer"
@@ -5735,25 +5735,25 @@ function ic({
5735
5735
  Xr,
5736
5736
  {
5737
5737
  align: "center",
5738
- onClick: (G) => G.stopPropagation(),
5738
+ onClick: ($) => $.stopPropagation(),
5739
5739
  children: /* @__PURE__ */ l(
5740
5740
  cr,
5741
5741
  {
5742
- checked: F.includes(I),
5743
- onChange: () => H(I),
5742
+ checked: z.includes(I),
5743
+ onChange: () => G(I),
5744
5744
  "aria-label": "Selecionar linha"
5745
5745
  }
5746
5746
  )
5747
5747
  }
5748
5748
  ),
5749
- e.map((G, Q) => /* @__PURE__ */ l(
5749
+ e.map(($, Q) => /* @__PURE__ */ l(
5750
5750
  Xr,
5751
5751
  {
5752
- align: G.align,
5753
- className: G.className,
5754
- children: Id(D, G)
5752
+ align: $.align,
5753
+ className: $.className,
5754
+ children: Id(S, $)
5755
5755
  },
5756
- G.key ?? `column-${Q}`
5756
+ $.key ?? `column-${Q}`
5757
5757
  ))
5758
5758
  ]
5759
5759
  },
@@ -5845,7 +5845,7 @@ const Ed = K(
5845
5845
  "span",
5846
5846
  {
5847
5847
  className: "inline-flex size-9 shrink-0 items-center justify-center text-neutral-text-secondary",
5848
- children: /* @__PURE__ */ l(z, { as: "span", variant: "bodySm", className: "text-inherit", children: "…" })
5848
+ children: /* @__PURE__ */ l(F, { as: "span", variant: "bodySm", className: "text-inherit", children: "…" })
5849
5849
  },
5850
5850
  `ellipsis-${h}`
5851
5851
  ) : /* @__PURE__ */ l(
@@ -5859,7 +5859,7 @@ const Ed = K(
5859
5859
  c === e ? "bg-neutral-surface-selected text-agilys-primary" : "text-neutral-text-secondary hover:bg-neutral-surface-lightest"
5860
5860
  ),
5861
5861
  children: /* @__PURE__ */ l(
5862
- z,
5862
+ F,
5863
5863
  {
5864
5864
  as: "span",
5865
5865
  variant: "bodySm",
@@ -5889,7 +5889,7 @@ const Ed = K(
5889
5889
  }
5890
5890
  );
5891
5891
  Ed.displayName = "Pagination";
5892
- const ln = ae(
5892
+ const ln = se(
5893
5893
  "flex h-11 w-full bg-input-background min-w-0 border border-input-border items-center gap-2 rounded-lg px-3 transition-shadow focus-within:ring-1 focus-within:ring-input-focus",
5894
5894
  {
5895
5895
  variants: {
@@ -5915,7 +5915,7 @@ const ln = ae(
5915
5915
  id: d,
5916
5916
  ...c
5917
5917
  }, h) => {
5918
- const p = yt(), g = d ?? p, W = typeof i == "string" ? i : i == null ? void 0 : i.message, P = !!W, M = `${g}-error`;
5918
+ const p = yt(), g = d ?? p, P = typeof i == "string" ? i : i == null ? void 0 : i.message, W = !!P, N = `${g}-error`;
5919
5919
  return /* @__PURE__ */ L(
5920
5920
  "div",
5921
5921
  {
@@ -5925,7 +5925,7 @@ const ln = ae(
5925
5925
  ),
5926
5926
  children: [
5927
5927
  r && /* @__PURE__ */ l(
5928
- z,
5928
+ F,
5929
5929
  {
5930
5930
  as: "label",
5931
5931
  htmlFor: g,
@@ -5938,7 +5938,7 @@ const ln = ae(
5938
5938
  "div",
5939
5939
  {
5940
5940
  className: x(
5941
- ln({ hasError: P }),
5941
+ ln({ hasError: W }),
5942
5942
  o && "pointer-events-none opacity-50"
5943
5943
  ),
5944
5944
  children: [
@@ -5956,8 +5956,8 @@ const ln = ae(
5956
5956
  ref: h,
5957
5957
  id: g,
5958
5958
  disabled: o,
5959
- "aria-invalid": P || void 0,
5960
- "aria-describedby": P ? M : void 0,
5959
+ "aria-invalid": W || void 0,
5960
+ "aria-describedby": W ? N : void 0,
5961
5961
  className: x(
5962
5962
  `w-full min-w-0 flex-1 bg-transparent font-inter text-xs leading-relaxed
5963
5963
  font-normal text-black placeholder:font-inter placeholder:text-xs placeholder:leading-relaxed
@@ -5981,15 +5981,15 @@ const ln = ae(
5981
5981
  ]
5982
5982
  }
5983
5983
  ),
5984
- P && /* @__PURE__ */ l(
5985
- z,
5984
+ W && /* @__PURE__ */ l(
5985
+ F,
5986
5986
  {
5987
5987
  as: "span",
5988
- id: M,
5988
+ id: N,
5989
5989
  role: "alert",
5990
5990
  variant: "caption",
5991
5991
  className: "text-danger-60",
5992
- children: W
5992
+ children: P
5993
5993
  }
5994
5994
  )
5995
5995
  ]
@@ -6018,24 +6018,24 @@ const Vd = (e) => typeof e.label == "string" ? e.label : String(e.value), ts = (
6018
6018
  placeholder: h = "Selecione",
6019
6019
  label: p,
6020
6020
  name: g,
6021
- leftIcon: W,
6022
- rightIcon: P,
6023
- bgIcon: M = !1,
6021
+ leftIcon: P,
6022
+ rightIcon: W,
6023
+ bgIcon: N = !1,
6024
6024
  error: y,
6025
- disabled: S,
6026
- id: F,
6027
- onKeyDown: $,
6025
+ disabled: M,
6026
+ id: z,
6027
+ onKeyDown: H,
6028
6028
  onFocus: k,
6029
6029
  onBlur: q,
6030
- ...H
6031
- }, D) => {
6032
- const v = yt(), I = F ?? v, G = `${I}-listbox`, Q = typeof y == "string" ? y : y == null ? void 0 : y.message, R = !!Q, st = `${I}-error`, Le = s !== void 0, [_t, Ve] = xe(n), Oe = Le ? s : _t, ye = r.find(
6030
+ ...G
6031
+ }, S) => {
6032
+ const v = yt(), I = z ?? v, $ = `${I}-listbox`, Q = typeof y == "string" ? y : y == null ? void 0 : y.message, R = !!Q, st = `${I}-error`, Le = s !== void 0, [_t, Ve] = xe(n), Oe = Le ? s : _t, ye = r.find(
6033
6033
  (O) => O.value === Oe
6034
6034
  ), [B, Ye] = xe(!1), [te, qt] = xe(""), [Ar, nt] = xe(!1), [at, kt] = xe(0), zr = Qe(null), Fr = Qe(null), gn = Mn(
6035
6035
  (O) => {
6036
- Fr.current = O, typeof D == "function" ? D(O) : D && (D.current = O);
6036
+ Fr.current = O, typeof S == "function" ? S(O) : S && (S.current = O);
6037
6037
  },
6038
- [D]
6038
+ [S]
6039
6039
  ), Te = fr(() => Ar ? o ? o(r, te) : Ud(r, te, i) : r, [Ar, r, te, o, i]), bn = B ? te : ye ? i(ye) : "";
6040
6040
  Ke(() => {
6041
6041
  if (!B) return;
@@ -6061,7 +6061,7 @@ const Vd = (e) => typeof e.label == "string" ? e.label : String(e.value), ts = (
6061
6061
  }, vn = (O) => {
6062
6062
  O.stopPropagation(), Jt(null), qt(""), nt(!1), Ye(!0);
6063
6063
  }, xn = (O) => {
6064
- if ($ == null || $(O), !O.defaultPrevented)
6064
+ if (H == null || H(O), !O.defaultPrevented)
6065
6065
  switch (O.key) {
6066
6066
  case "ArrowDown":
6067
6067
  if (O.preventDefault(), !B) {
@@ -6097,7 +6097,7 @@ const Vd = (e) => typeof e.label == "string" ? e.label : String(e.value), ts = (
6097
6097
  ),
6098
6098
  children: [
6099
6099
  p && /* @__PURE__ */ l(
6100
- z,
6100
+ F,
6101
6101
  {
6102
6102
  as: "label",
6103
6103
  htmlFor: I,
@@ -6111,10 +6111,10 @@ const Vd = (e) => typeof e.label == "string" ? e.label : String(e.value), ts = (
6111
6111
  {
6112
6112
  className: x(
6113
6113
  ln({ hasError: R }),
6114
- S && "pointer-events-none opacity-50"
6114
+ M && "pointer-events-none opacity-50"
6115
6115
  ),
6116
6116
  children: [
6117
- W && /* @__PURE__ */ l("span", { className: "inline-flex shrink-0", "aria-hidden": "true", children: W }),
6117
+ P && /* @__PURE__ */ l("span", { className: "inline-flex shrink-0", "aria-hidden": "true", children: P }),
6118
6118
  /* @__PURE__ */ l(
6119
6119
  "input",
6120
6120
  {
@@ -6126,11 +6126,11 @@ const Vd = (e) => typeof e.label == "string" ? e.label : String(e.value), ts = (
6126
6126
  "aria-autocomplete": "list",
6127
6127
  "aria-haspopup": "listbox",
6128
6128
  "aria-expanded": B,
6129
- "aria-controls": G,
6129
+ "aria-controls": $,
6130
6130
  "aria-invalid": R || void 0,
6131
6131
  "aria-describedby": R ? st : void 0,
6132
- "aria-activedescendant": B && Te[at] ? `${G}-option-${at}` : void 0,
6133
- disabled: S,
6132
+ "aria-activedescendant": B && Te[at] ? `${$}-option-${at}` : void 0,
6133
+ disabled: M,
6134
6134
  placeholder: h,
6135
6135
  value: bn,
6136
6136
  onChange: (O) => {
@@ -6148,10 +6148,10 @@ const Vd = (e) => typeof e.label == "string" ? e.label : String(e.value), ts = (
6148
6148
  "w-full min-w-0 flex-1 truncate bg-transparent text-left font-sans text-xs leading-relaxed font-normal text-black placeholder:text-neutral-secondary/60 focus:outline-none disabled:cursor-not-allowed",
6149
6149
  e
6150
6150
  ),
6151
- ...H
6151
+ ...G
6152
6152
  }
6153
6153
  ),
6154
- c && ye && !S && /* @__PURE__ */ l(
6154
+ c && ye && !M && /* @__PURE__ */ l(
6155
6155
  "button",
6156
6156
  {
6157
6157
  type: "button",
@@ -6168,10 +6168,10 @@ const Vd = (e) => typeof e.label == "string" ? e.label : String(e.value), ts = (
6168
6168
  className: x(
6169
6169
  "flex size-6 shrink-0 items-center justify-center text-neutral-secondary transition-transform",
6170
6170
  B && "rotate-180",
6171
- M && "rounded-md bg-lightGray p-1"
6171
+ N && "rounded-md bg-lightGray p-1"
6172
6172
  ),
6173
6173
  "aria-hidden": "true",
6174
- children: P ?? /* @__PURE__ */ l(Na, { className: "size-4" })
6174
+ children: W ?? /* @__PURE__ */ l(Na, { className: "size-4" })
6175
6175
  }
6176
6176
  )
6177
6177
  ]
@@ -6181,18 +6181,18 @@ const Vd = (e) => typeof e.label == "string" ? e.label : String(e.value), ts = (
6181
6181
  B && /* @__PURE__ */ L(
6182
6182
  "ul",
6183
6183
  {
6184
- id: G,
6184
+ id: $,
6185
6185
  role: "listbox",
6186
6186
  "aria-labelledby": p ? I : void 0,
6187
6187
  className: "absolute left-0 top-full z-50 mt-1 max-h-60 w-full min-w-0 overflow-auto rounded-lg bg-white py-1 shadow-[0px_4px_12px_0px_rgba(0,0,0,0.15)]",
6188
6188
  children: [
6189
- Te.length === 0 && /* @__PURE__ */ l("li", { className: "px-3 py-2", children: /* @__PURE__ */ l(z, { as: "span", variant: "bodySm", className: "text-neutral-secondary", children: d }) }),
6189
+ Te.length === 0 && /* @__PURE__ */ l("li", { className: "px-3 py-2", children: /* @__PURE__ */ l(F, { as: "span", variant: "bodySm", className: "text-neutral-secondary", children: d }) }),
6190
6190
  Te.map((O, ee) => {
6191
6191
  const Ue = O.value === Oe, wn = ee === at;
6192
6192
  return /* @__PURE__ */ l(
6193
6193
  "li",
6194
6194
  {
6195
- id: `${G}-option-${ee}`,
6195
+ id: `${$}-option-${ee}`,
6196
6196
  role: "option",
6197
6197
  "aria-selected": Ue,
6198
6198
  onMouseEnter: () => kt(ee),
@@ -6203,7 +6203,7 @@ const Vd = (e) => typeof e.label == "string" ? e.label : String(e.value), ts = (
6203
6203
  (wn || Ue) && "bg-lightGray"
6204
6204
  ),
6205
6205
  children: /* @__PURE__ */ l(
6206
- z,
6206
+ F,
6207
6207
  {
6208
6208
  as: "span",
6209
6209
  variant: "bodySm",
@@ -6219,7 +6219,7 @@ const Vd = (e) => typeof e.label == "string" ? e.label : String(e.value), ts = (
6219
6219
  }
6220
6220
  ),
6221
6221
  R && /* @__PURE__ */ l(
6222
- z,
6222
+ F,
6223
6223
  {
6224
6224
  as: "span",
6225
6225
  id: st,
@@ -6235,7 +6235,27 @@ const Vd = (e) => typeof e.label == "string" ? e.label : String(e.value), ts = (
6235
6235
  }
6236
6236
  );
6237
6237
  Hd.displayName = "Select";
6238
- function Gd() {
6238
+ const Gd = se(
6239
+ "relative flex w-full min-w-0 flex-col gap-6 rounded-xl bg-[#fcfcfc] p-6 shadow-[0px_0px_2px_0px_rgba(34,34,34,0.08)] sm:p-8",
6240
+ {
6241
+ variants: {
6242
+ width: {
6243
+ // Alertas, confirmações de exclusão e mensagens curtas.
6244
+ sm: "max-w-lg",
6245
+ // Formulários curtos, 1 coluna (poucos campos).
6246
+ md: "max-w-2xl",
6247
+ // Formulários médios, podendo usar 2 colunas.
6248
+ lg: "max-w-4xl",
6249
+ // Formulários extensos/complexos, múltiplas seções ou colunas.
6250
+ xl: "max-w-6xl"
6251
+ }
6252
+ },
6253
+ defaultVariants: {
6254
+ width: "sm"
6255
+ }
6256
+ }
6257
+ );
6258
+ function $d() {
6239
6259
  return /* @__PURE__ */ l("svg", { className: "size-5", viewBox: "0 0 24 24", fill: "none", "aria-hidden": "true", children: /* @__PURE__ */ l(
6240
6260
  "path",
6241
6261
  {
@@ -6246,7 +6266,7 @@ function Gd() {
6246
6266
  }
6247
6267
  ) });
6248
6268
  }
6249
- const $d = K(
6269
+ const Bd = K(
6250
6270
  ({
6251
6271
  open: e,
6252
6272
  onClose: t,
@@ -6255,21 +6275,22 @@ const $d = K(
6255
6275
  footer: n,
6256
6276
  closeOnBackdropClick: a = !0,
6257
6277
  showCloseButton: i = !0,
6258
- className: o,
6259
- contentClassName: d,
6260
- ...c
6261
- }, h) => {
6262
- const p = yt(), g = Qe(null), [W, P] = xe(!1);
6263
- return Ke(() => P(!0), []), Ke(() => {
6264
- var S;
6278
+ width: o = "sm",
6279
+ className: d,
6280
+ contentClassName: c,
6281
+ ...h
6282
+ }, p) => {
6283
+ const g = yt(), P = Qe(null), [W, N] = xe(!1);
6284
+ return Ke(() => N(!0), []), Ke(() => {
6285
+ var z;
6265
6286
  if (!e) return;
6266
- const M = document.body.style.overflow;
6267
- document.body.style.overflow = "hidden", (S = g.current) == null || S.focus();
6268
- const y = (F) => {
6269
- F.key === "Escape" && t();
6287
+ const y = document.body.style.overflow;
6288
+ document.body.style.overflow = "hidden", (z = P.current) == null || z.focus();
6289
+ const M = (H) => {
6290
+ H.key === "Escape" && t();
6270
6291
  };
6271
- return document.addEventListener("keydown", y), () => {
6272
- document.body.style.overflow = M, document.removeEventListener("keydown", y);
6292
+ return document.addEventListener("keydown", M), () => {
6293
+ document.body.style.overflow = y, document.removeEventListener("keydown", M);
6273
6294
  };
6274
6295
  }, [e, t]), !e || !W ? null : ns(
6275
6296
  /* @__PURE__ */ l(
@@ -6280,33 +6301,30 @@ const $d = K(
6280
6301
  children: /* @__PURE__ */ L(
6281
6302
  "div",
6282
6303
  {
6283
- ref: h,
6304
+ ref: p,
6284
6305
  role: "dialog",
6285
6306
  "aria-modal": "true",
6286
- "aria-labelledby": r ? p : void 0,
6287
- onClick: (M) => M.stopPropagation(),
6288
- className: x(
6289
- "relative flex w-full min-w-0 max-w-lg flex-col gap-6 rounded-xl bg-[#fcfcfc] p-6 shadow-[0px_0px_2px_0px_rgba(34,34,34,0.08)] sm:p-8",
6290
- o
6291
- ),
6292
- ...c,
6307
+ "aria-labelledby": r ? g : void 0,
6308
+ onClick: (y) => y.stopPropagation(),
6309
+ className: x(Gd({ width: o }), d),
6310
+ ...h,
6293
6311
  children: [
6294
6312
  i && /* @__PURE__ */ l(
6295
6313
  "button",
6296
6314
  {
6297
- ref: g,
6315
+ ref: P,
6298
6316
  type: "button",
6299
6317
  onClick: t,
6300
6318
  "aria-label": "Fechar",
6301
6319
  className: "absolute right-4 top-4 flex size-6 shrink-0 items-center justify-center rounded-md text-neutral-text-secondary transition-colors hover:text-neutral-text-primary focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-agilys-primary sm:right-5 sm:top-5",
6302
- children: /* @__PURE__ */ l(Gd, {})
6320
+ children: /* @__PURE__ */ l($d, {})
6303
6321
  }
6304
6322
  ),
6305
6323
  r && /* @__PURE__ */ l("div", { className: "pr-8", children: /* @__PURE__ */ l(
6306
- z,
6324
+ F,
6307
6325
  {
6308
6326
  as: "h2",
6309
- id: p,
6327
+ id: g,
6310
6328
  variant: "h4",
6311
6329
  weight: "medium",
6312
6330
  className: "text-neutral-text-primary",
@@ -6318,7 +6336,7 @@ const $d = K(
6318
6336
  {
6319
6337
  className: x(
6320
6338
  "max-h-[70vh] min-w-0 overflow-y-auto overflow-x-hidden font-sans text-sm leading-relaxed text-neutral-text-secondary sm:text-base",
6321
- d
6339
+ c
6322
6340
  ),
6323
6341
  children: s
6324
6342
  }
@@ -6333,10 +6351,10 @@ const $d = K(
6333
6351
  );
6334
6352
  }
6335
6353
  );
6336
- $d.displayName = "Modal";
6337
- const Bd = ae(
6354
+ Bd.displayName = "Modal";
6355
+ const Zd = se(
6338
6356
  "flex w-full items-center gap-0.5 rounded-lg bg-lightGray p-1"
6339
- ), Zd = ae(
6357
+ ), qd = se(
6340
6358
  "flex min-w-0 flex-1 items-center justify-center whitespace-nowrap rounded-lg px-[22px] py-[11px] transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-agilys-primary/40 disabled:pointer-events-none disabled:opacity-50",
6341
6359
  {
6342
6360
  variants: {
@@ -6349,7 +6367,7 @@ const Bd = ae(
6349
6367
  selected: !1
6350
6368
  }
6351
6369
  }
6352
- ), qd = K(
6370
+ ), Jd = K(
6353
6371
  ({
6354
6372
  className: e,
6355
6373
  options: t,
@@ -6360,35 +6378,35 @@ const Bd = ae(
6360
6378
  "aria-label": i,
6361
6379
  ...o
6362
6380
  }, d) => {
6363
- var $;
6364
- const c = yt(), h = a ?? c, p = r !== void 0, [g, W] = xe(
6365
- s ?? (($ = t[0]) == null ? void 0 : $.value)
6366
- ), P = p ? r : g, M = Qe([]), y = (k) => {
6367
- k.disabled || (p || W(k.value), n == null || n(k.value, k));
6368
- }, S = (k) => {
6381
+ var H;
6382
+ const c = yt(), h = a ?? c, p = r !== void 0, [g, P] = xe(
6383
+ s ?? ((H = t[0]) == null ? void 0 : H.value)
6384
+ ), W = p ? r : g, N = Qe([]), y = (k) => {
6385
+ k.disabled || (p || P(k.value), n == null || n(k.value, k));
6386
+ }, M = (k) => {
6369
6387
  var q;
6370
- (q = M.current[k]) == null || q.focus();
6371
- }, F = (k, q) => {
6372
- const H = t.map((v, I) => v.disabled ? -1 : I).filter((v) => v !== -1), D = (v) => {
6373
- const I = H.indexOf(q);
6388
+ (q = N.current[k]) == null || q.focus();
6389
+ }, z = (k, q) => {
6390
+ const G = t.map((v, I) => v.disabled ? -1 : I).filter((v) => v !== -1), S = (v) => {
6391
+ const I = G.indexOf(q);
6374
6392
  if (I === -1) return;
6375
- const G = (I + v + H.length) % H.length, Q = H[G];
6376
- S(Q), y(t[Q]);
6393
+ const $ = (I + v + G.length) % G.length, Q = G[$];
6394
+ M(Q), y(t[Q]);
6377
6395
  };
6378
6396
  switch (k.key) {
6379
6397
  case "ArrowRight":
6380
- k.preventDefault(), D(1);
6398
+ k.preventDefault(), S(1);
6381
6399
  break;
6382
6400
  case "ArrowLeft":
6383
- k.preventDefault(), D(-1);
6401
+ k.preventDefault(), S(-1);
6384
6402
  break;
6385
6403
  case "Home":
6386
- k.preventDefault(), H.length && (S(H[0]), y(t[H[0]]));
6404
+ k.preventDefault(), G.length && (M(G[0]), y(t[G[0]]));
6387
6405
  break;
6388
6406
  case "End":
6389
- if (k.preventDefault(), H.length) {
6390
- const v = H[H.length - 1];
6391
- S(v), y(t[v]);
6407
+ if (k.preventDefault(), G.length) {
6408
+ const v = G[G.length - 1];
6409
+ M(v), y(t[v]);
6392
6410
  }
6393
6411
  break;
6394
6412
  }
@@ -6400,28 +6418,28 @@ const Bd = ae(
6400
6418
  role: "tablist",
6401
6419
  "aria-label": i,
6402
6420
  id: h,
6403
- className: x(Bd(), e),
6421
+ className: x(Zd(), e),
6404
6422
  ...o,
6405
6423
  children: t.map((k, q) => {
6406
- const H = k.value === P;
6424
+ const G = k.value === W;
6407
6425
  return /* @__PURE__ */ l(
6408
6426
  "button",
6409
6427
  {
6410
- ref: (D) => {
6411
- M.current[q] = D;
6428
+ ref: (S) => {
6429
+ N.current[q] = S;
6412
6430
  },
6413
6431
  type: "button",
6414
6432
  role: "tab",
6415
6433
  id: `${h}-tab-${q}`,
6416
- "aria-selected": H,
6434
+ "aria-selected": G,
6417
6435
  "aria-disabled": k.disabled || void 0,
6418
6436
  disabled: k.disabled,
6419
- tabIndex: H ? 0 : -1,
6437
+ tabIndex: G ? 0 : -1,
6420
6438
  onClick: () => y(k),
6421
- onKeyDown: (D) => F(D, q),
6422
- className: x(Zd({ selected: H })),
6439
+ onKeyDown: (S) => z(S, q),
6440
+ className: x(qd({ selected: G })),
6423
6441
  children: /* @__PURE__ */ l(
6424
- z,
6442
+ F,
6425
6443
  {
6426
6444
  as: "span",
6427
6445
  variant: "caption",
@@ -6438,8 +6456,8 @@ const Bd = ae(
6438
6456
  );
6439
6457
  }
6440
6458
  );
6441
- qd.displayName = "Tabs";
6442
- function Jd({ className: e }) {
6459
+ Jd.displayName = "Tabs";
6460
+ function Qd({ className: e }) {
6443
6461
  return /* @__PURE__ */ l(
6444
6462
  "svg",
6445
6463
  {
@@ -6467,7 +6485,7 @@ function cn() {
6467
6485
  throw new Error("Accordion.Item must be used within an Accordion");
6468
6486
  return e;
6469
6487
  }
6470
- const Qd = ae("flex w-full flex-col gap-2"), un = K(
6488
+ const Kd = se("flex w-full flex-col gap-2"), un = K(
6471
6489
  ({
6472
6490
  type: e = "single",
6473
6491
  value: t,
@@ -6479,47 +6497,47 @@ const Qd = ae("flex w-full flex-col gap-2"), un = K(
6479
6497
  id: o,
6480
6498
  ...d
6481
6499
  }, c) => {
6482
- const h = yt(), p = o ?? h, g = (v) => v === void 0 ? [] : Array.isArray(v) ? v : [v], W = t !== void 0, [P, M] = xe(
6500
+ const h = yt(), p = o ?? h, g = (v) => v === void 0 ? [] : Array.isArray(v) ? v : [v], P = t !== void 0, [W, N] = xe(
6483
6501
  () => g(r)
6484
- ), y = W ? g(t) : P, S = (v) => {
6485
- W || M(v), s == null || s(e === "multiple" ? v : v[0] ?? "");
6486
- }, F = (v) => {
6502
+ ), y = P ? g(t) : W, M = (v) => {
6503
+ P || N(v), s == null || s(e === "multiple" ? v : v[0] ?? "");
6504
+ }, z = (v) => {
6487
6505
  const I = y.includes(v);
6488
6506
  if (e === "multiple") {
6489
- const G = I ? y.filter((Q) => Q !== v) : [...y, v];
6490
- S(G);
6507
+ const $ = I ? y.filter((Q) => Q !== v) : [...y, v];
6508
+ M($);
6491
6509
  return;
6492
6510
  }
6493
6511
  if (I) {
6494
- S(n ? [] : y);
6512
+ M(n ? [] : y);
6495
6513
  return;
6496
6514
  }
6497
- S([v]);
6498
- }, $ = Qe(/* @__PURE__ */ new Map()), k = Qe([]), q = (v, I) => {
6499
- I ? ($.current.set(v, I), k.current.includes(v) || k.current.push(v)) : ($.current.delete(v), k.current = k.current.filter((G) => G !== v));
6500
- }, H = (v) => {
6515
+ M([v]);
6516
+ }, H = Qe(/* @__PURE__ */ new Map()), k = Qe([]), q = (v, I) => {
6517
+ I ? (H.current.set(v, I), k.current.includes(v) || k.current.push(v)) : (H.current.delete(v), k.current = k.current.filter(($) => $ !== v));
6518
+ }, G = (v) => {
6501
6519
  const I = k.current;
6502
6520
  if (!I.length) return;
6503
- const G = (v + I.length) % I.length, Q = $.current.get(I[G]);
6521
+ const $ = (v + I.length) % I.length, Q = H.current.get(I[$]);
6504
6522
  Q == null || Q.focus();
6505
- }, D = fr(
6523
+ }, S = fr(
6506
6524
  () => ({
6507
6525
  openValues: y,
6508
- toggleValue: F,
6526
+ toggleValue: z,
6509
6527
  registerTrigger: q,
6510
- focusTrigger: H,
6528
+ focusTrigger: G,
6511
6529
  values: k.current,
6512
6530
  accordionId: p
6513
6531
  // eslint-disable-next-line react-hooks/exhaustive-deps
6514
6532
  }),
6515
6533
  [y, e, n, p]
6516
6534
  );
6517
- return /* @__PURE__ */ l(dn.Provider, { value: D, children: /* @__PURE__ */ l(
6535
+ return /* @__PURE__ */ l(dn.Provider, { value: S, children: /* @__PURE__ */ l(
6518
6536
  "div",
6519
6537
  {
6520
6538
  ref: c,
6521
6539
  id: p,
6522
- className: x(Qd(), a),
6540
+ className: x(Kd(), a),
6523
6541
  ...d,
6524
6542
  children: i
6525
6543
  }
@@ -6534,7 +6552,7 @@ function hn() {
6534
6552
  throw new Error("Accordion.Trigger/Content must be used within an Accordion.Item");
6535
6553
  return e;
6536
6554
  }
6537
- const Kd = ae(
6555
+ const Xd = se(
6538
6556
  "overflow-hidden rounded-lg border border-neutral-divider-secondary bg-white"
6539
6557
  ), mn = K(
6540
6558
  ({ value: e, disabled: t = !1, className: r, children: s, ...n }, a) => {
@@ -6547,7 +6565,7 @@ const Kd = ae(
6547
6565
  "div",
6548
6566
  {
6549
6567
  ref: a,
6550
- className: x(Kd(), r),
6568
+ className: x(Xd(), r),
6551
6569
  "data-state": d ? "open" : "closed",
6552
6570
  ...n,
6553
6571
  children: s
@@ -6558,12 +6576,12 @@ const Kd = ae(
6558
6576
  }
6559
6577
  );
6560
6578
  mn.displayName = "Accordion.Item";
6561
- const Xd = ae(
6579
+ const ec = se(
6562
6580
  "flex min-w-0 flex-1 items-center justify-between gap-3 px-4 py-3.5 text-left transition-colors hover:bg-lightGray focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-agilys-primary/40 disabled:pointer-events-none disabled:opacity-50"
6563
6581
  ), pn = K(
6564
6582
  ({ className: e, children: t, actions: r, actionsClassName: s, ...n }, a) => {
6565
- const { toggleValue: i, registerTrigger: o, focusTrigger: d, values: c } = cn(), { value: h, disabled: p, isOpen: g, triggerId: W, contentId: P } = hn();
6566
- return /* @__PURE__ */ L(z, { as: "h3", variant: "body", className: "m-0 flex w-full items-center gap-2", children: [
6583
+ const { toggleValue: i, registerTrigger: o, focusTrigger: d, values: c } = cn(), { value: h, disabled: p, isOpen: g, triggerId: P, contentId: W } = hn();
6584
+ return /* @__PURE__ */ L(F, { as: "h3", variant: "body", className: "m-0 flex w-full items-center gap-2", children: [
6567
6585
  /* @__PURE__ */ L(
6568
6586
  "button",
6569
6587
  {
@@ -6571,19 +6589,19 @@ const Xd = ae(
6571
6589
  o(h, y), typeof a == "function" ? a(y) : a && (a.current = y);
6572
6590
  },
6573
6591
  type: "button",
6574
- id: W,
6592
+ id: P,
6575
6593
  "aria-expanded": g,
6576
- "aria-controls": P,
6594
+ "aria-controls": W,
6577
6595
  disabled: p,
6578
6596
  onClick: () => i(h),
6579
6597
  onKeyDown: (y) => {
6580
- const S = c.indexOf(h);
6598
+ const M = c.indexOf(h);
6581
6599
  switch (y.key) {
6582
6600
  case "ArrowDown":
6583
- y.preventDefault(), d(S + 1);
6601
+ y.preventDefault(), d(M + 1);
6584
6602
  break;
6585
6603
  case "ArrowUp":
6586
- y.preventDefault(), d(S - 1);
6604
+ y.preventDefault(), d(M - 1);
6587
6605
  break;
6588
6606
  case "Home":
6589
6607
  y.preventDefault(), d(0);
@@ -6593,11 +6611,11 @@ const Xd = ae(
6593
6611
  break;
6594
6612
  }
6595
6613
  },
6596
- className: x(Xd(), e),
6614
+ className: x(ec(), e),
6597
6615
  ...n,
6598
6616
  children: [
6599
6617
  /* @__PURE__ */ l("span", { className: "flex min-w-0 flex-1 items-center gap-2 font-medium text-neutral-text-primary", children: t }),
6600
- /* @__PURE__ */ l(Jd, { className: x("text-neutral-text-secondary", g && "rotate-180") })
6618
+ /* @__PURE__ */ l(Qd, { className: x("text-neutral-text-secondary", g && "rotate-180") })
6601
6619
  ]
6602
6620
  }
6603
6621
  ),
@@ -6625,11 +6643,11 @@ const yn = K(
6625
6643
  }
6626
6644
  );
6627
6645
  yn.displayName = "Accordion.Content";
6628
- const oc = Object.assign(un, {
6646
+ const lc = Object.assign(un, {
6629
6647
  Item: mn,
6630
6648
  Trigger: pn,
6631
6649
  Content: yn
6632
- }), ec = ae(
6650
+ }), tc = se(
6633
6651
  "fixed z-[99999] flex w-full max-w-sm p-4",
6634
6652
  {
6635
6653
  variants: {
@@ -6645,7 +6663,7 @@ const oc = Object.assign(un, {
6645
6663
  }
6646
6664
  }
6647
6665
  );
6648
- function tc({
6666
+ function rc({
6649
6667
  open: e,
6650
6668
  position: t = "bottom-right",
6651
6669
  container: r,
@@ -6659,13 +6677,13 @@ function tc({
6659
6677
  duration: h = 6e3,
6660
6678
  ...p
6661
6679
  }) {
6662
- const [g, W] = xe(!1);
6663
- return Ke(() => W(!0), []), Ke(() => {
6680
+ const [g, P] = xe(!1);
6681
+ return Ke(() => P(!0), []), Ke(() => {
6664
6682
  if (!e || !h) return;
6665
- const P = setTimeout(() => c == null ? void 0 : c(), h);
6666
- return () => clearTimeout(P);
6683
+ const W = setTimeout(() => c == null ? void 0 : c(), h);
6684
+ return () => clearTimeout(W);
6667
6685
  }, [e, h, c]), !e || !g ? null : ns(
6668
- /* @__PURE__ */ l("div", { className: ec({ position: t }), ...p, children: /* @__PURE__ */ l(
6686
+ /* @__PURE__ */ l("div", { className: tc({ position: t }), ...p, children: /* @__PURE__ */ l(
6669
6687
  mr,
6670
6688
  {
6671
6689
  variant: n,
@@ -6680,38 +6698,38 @@ function tc({
6680
6698
  r ?? document.body
6681
6699
  );
6682
6700
  }
6683
- tc.displayName = "Toast";
6701
+ rc.displayName = "Toast";
6684
6702
  export {
6685
- oc as Accordion,
6703
+ lc as Accordion,
6686
6704
  on as Avatar,
6687
6705
  ca as Badge,
6688
6706
  oa as Button,
6689
6707
  mr as Card,
6690
6708
  jd as Input,
6691
- $d as Modal,
6709
+ Bd as Modal,
6692
6710
  Pd as Notification,
6693
6711
  Ed as Pagination,
6694
6712
  Hd as Select,
6695
- ic as Table,
6696
- ac as TableAvatar,
6713
+ oc as Table,
6714
+ ic as TableAvatar,
6697
6715
  Xr as TableCell,
6698
6716
  cr as TableCheckbox,
6699
6717
  ur as TableHeadCell,
6700
- qd as Tabs,
6701
- z as Text,
6702
- tc as Toast,
6703
- Kd as accordionItemVariants,
6704
- Xd as accordionTriggerVariants,
6705
- Qd as accordionVariants,
6718
+ Jd as Tabs,
6719
+ F as Text,
6720
+ rc as Toast,
6721
+ Xd as accordionItemVariants,
6722
+ ec as accordionTriggerVariants,
6723
+ Kd as accordionVariants,
6706
6724
  Ld as avatarVariants,
6707
6725
  la as badgeVariants,
6708
6726
  aa as buttonVariants,
6709
6727
  ua as cardVariants,
6710
6728
  x as cn,
6711
6729
  ln as inputVariants,
6712
- Zd as tabVariants,
6713
- Bd as tabsListVariants,
6730
+ qd as tabVariants,
6731
+ Zd as tabsListVariants,
6714
6732
  sa as textVariants,
6715
- ec as toastPositionVariants
6733
+ tc as toastPositionVariants
6716
6734
  };
6717
6735
  //# sourceMappingURL=agilys-design-system.js.map