@fabio.caffarello/react-design-system 3.9.0 → 3.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -9,7 +9,7 @@ var O = (e, a, r) => a in e ? ae(e, a, { enumerable: !0, configurable: !0, writa
9
9
  for (var r of W(a))
10
10
  K.call(a, r) && O(e, r, a[r]);
11
11
  return e;
12
- }, x = (e, a) => re(e, se(a));
12
+ }, g = (e, a) => re(e, se(a));
13
13
  var p = (e, a) => {
14
14
  var r = {};
15
15
  for (var t in e)
@@ -20,7 +20,7 @@ var p = (e, a) => {
20
20
  return r;
21
21
  };
22
22
  var X = (e, a, r) => O(e, typeof a != "symbol" ? a + "" : a, r);
23
- import { jsx as l, jsxs as $ } from "react/jsx-runtime";
23
+ import { jsx as l, jsxs as v } from "react/jsx-runtime";
24
24
  import * as k from "react";
25
25
  import ee, { memo as D, forwardRef as _ } from "react";
26
26
  import { clsx as ne } from "clsx";
@@ -96,7 +96,7 @@ const fe = {
96
96
  function C(e) {
97
97
  return fe[e].tailwind;
98
98
  }
99
- class w {
99
+ class N {
100
100
  // 4px base
101
101
  /**
102
102
  * Create a spacing token from scale value
@@ -163,42 +163,42 @@ class w {
163
163
  }[a] || String(a);
164
164
  }
165
165
  }
166
- X(w, "BASE_UNIT", 4);
166
+ X(N, "BASE_UNIT", 4);
167
167
  const ue = {
168
168
  // Micro spacing (0-14px)
169
- none: w.create(0),
170
- "0.5": w.create(0.5),
169
+ none: N.create(0),
170
+ "0.5": N.create(0.5),
171
171
  // 2px (half-step)
172
- xs: w.create(1),
172
+ xs: N.create(1),
173
173
  // 4px
174
- "1.5": w.create(1.5),
174
+ "1.5": N.create(1.5),
175
175
  // 6px (half-step)
176
- sm: w.create(2),
176
+ sm: N.create(2),
177
177
  // 8px
178
- "2.5": w.create(2.5),
178
+ "2.5": N.create(2.5),
179
179
  // 10px (half-step)
180
- md: w.create(3),
180
+ md: N.create(3),
181
181
  // 12px
182
- "3.5": w.create(3.5),
182
+ "3.5": N.create(3.5),
183
183
  // 14px (half-step)
184
184
  // Standard spacing (16-32px)
185
- base: w.create(4),
185
+ base: N.create(4),
186
186
  // 16px
187
- lg: w.create(6),
187
+ lg: N.create(6),
188
188
  // 24px
189
- xl: w.create(8),
189
+ xl: N.create(8),
190
190
  // 32px
191
191
  // Large spacing (40-64px)
192
- "2xl": w.create(10),
192
+ "2xl": N.create(10),
193
193
  // 40px
194
- "3xl": w.create(12),
194
+ "3xl": N.create(12),
195
195
  // 48px
196
- "4xl": w.create(16),
196
+ "4xl": N.create(16),
197
197
  // 64px
198
198
  // Extra large spacing (80px+)
199
- "5xl": w.create(20),
199
+ "5xl": N.create(20),
200
200
  // 80px
201
- "6xl": w.create(24)
201
+ "6xl": N.create(24)
202
202
  // 96px
203
203
  };
204
204
  function i(e, a = "p") {
@@ -225,7 +225,7 @@ function i(e, a = "p") {
225
225
  "space-y": "space-y"
226
226
  }[a]}-${t}`;
227
227
  }
228
- class N {
228
+ class $ {
229
229
  /**
230
230
  * Create font size token
231
231
  */
@@ -295,23 +295,23 @@ class N {
295
295
  };
296
296
  }
297
297
  }
298
- N.createFontWeight("light"), N.createFontWeight("normal"), N.createFontWeight("medium"), N.createFontWeight("semibold"), N.createFontWeight("bold");
298
+ $.createFontWeight("light"), $.createFontWeight("normal"), $.createFontWeight("medium"), $.createFontWeight("semibold"), $.createFontWeight("bold");
299
299
  const B = {
300
300
  // Headings
301
- h1: N.create("4xl", "tight", "bold"),
302
- h2: N.create("3xl", "tight", "bold"),
303
- h3: N.create("2xl", "snug", "semibold"),
304
- h4: N.create("xl", "snug", "semibold"),
305
- h5: N.create("lg", "normal", "medium"),
306
- h6: N.create("base", "normal", "medium"),
301
+ h1: $.create("4xl", "tight", "bold"),
302
+ h2: $.create("3xl", "tight", "bold"),
303
+ h3: $.create("2xl", "snug", "semibold"),
304
+ h4: $.create("xl", "snug", "semibold"),
305
+ h5: $.create("lg", "normal", "medium"),
306
+ h6: $.create("base", "normal", "medium"),
307
307
  // Body text
308
- body: N.create("base", "relaxed", "normal"),
309
- bodySmall: N.create("sm", "relaxed", "normal"),
310
- bodyLarge: N.create("lg", "relaxed", "normal"),
308
+ body: $.create("base", "relaxed", "normal"),
309
+ bodySmall: $.create("sm", "relaxed", "normal"),
310
+ bodyLarge: $.create("lg", "relaxed", "normal"),
311
311
  // UI elements
312
- label: N.create("sm", "normal", "medium"),
313
- caption: N.create("xs", "normal", "normal"),
314
- button: N.create("base", "normal", "medium")
312
+ label: $.create("sm", "normal", "medium"),
313
+ caption: $.create("xs", "normal", "normal"),
314
+ button: $.create("base", "normal", "medium")
315
315
  };
316
316
  function R(e) {
317
317
  const a = B[e];
@@ -471,8 +471,8 @@ const M = (e, a) => {
471
471
  }
472
472
  }
473
473
  ), me = D(
474
- _(function(g, u) {
475
- var y = g, {
474
+ _(function(x, u) {
475
+ var y = x, {
476
476
  variant: a = "neutral",
477
477
  size: r = "md",
478
478
  style: t = "solid",
@@ -499,7 +499,7 @@ const M = (e, a) => {
499
499
  }
500
500
  return /* @__PURE__ */ l(
501
501
  "span",
502
- x(f({
502
+ g(f({
503
503
  ref: u,
504
504
  role: "status",
505
505
  "aria-label": m,
@@ -541,15 +541,15 @@ function be(e) {
541
541
  var h;
542
542
  let m = r, { children: s } = m, o = p(m, ["children"]), d = null, c = !1;
543
543
  const u = [];
544
- Y(s) && typeof H == "function" && (s = H(s._payload)), k.Children.forEach(s, (v) => {
544
+ Y(s) && typeof H == "function" && (s = H(s._payload)), k.Children.forEach(s, (w) => {
545
545
  var S;
546
- if ($e(v)) {
546
+ if ($e(w)) {
547
547
  c = !0;
548
- const A = v;
548
+ const A = w;
549
549
  let L = "child" in A.props ? A.props.child : A.props.children;
550
550
  Y(L) && typeof H == "function" && (L = H(L._payload)), d = ve(A, L), u.push((S = d == null ? void 0 : d.props) == null ? void 0 : S.children);
551
551
  } else
552
- u.push(v);
552
+ u.push(w);
553
553
  }), d ? d = k.cloneElement(d, void 0, u) : (
554
554
  // A `Slottable` was found but it didn't resolve to a single element (e.g.
555
555
  // it wrapped multiple elements, text, or a render-prop `child` that
@@ -557,7 +557,7 @@ function be(e) {
557
557
  // itself as the slot target — throw a descriptive error below instead.
558
558
  !c && k.Children.count(s) === 1 && k.isValidElement(s) && (d = s)
559
559
  );
560
- const g = d ? Ne(d) : void 0, y = xe(t, g);
560
+ const x = d ? Ne(d) : void 0, y = xe(t, x);
561
561
  if (!d) {
562
562
  if (s || s === 0)
563
563
  throw new Error(
@@ -566,7 +566,7 @@ function be(e) {
566
566
  return s;
567
567
  }
568
568
  const b = we(o, (h = d.props) != null ? h : {});
569
- return d.type !== k.Fragment && (b.ref = t ? y : g), k.cloneElement(d, b);
569
+ return d.type !== k.Fragment && (b.ref = t ? y : x), k.cloneElement(d, b);
570
570
  });
571
571
  return a.displayName = `${e}.Slot`, a;
572
572
  }
@@ -701,11 +701,11 @@ const Z = M(
701
701
  selected: d = !1,
702
702
  disabled: c = !1,
703
703
  className: u = "",
704
- "aria-label": g,
704
+ "aria-label": x,
705
705
  tabIndex: y,
706
706
  asChild: b = !1
707
707
  } = a, h = (() => {
708
- if (g) return g;
708
+ if (x) return x;
709
709
  if (typeof t == "string") return t;
710
710
  if (typeof t == "object" && t !== null && "props" in t) {
711
711
  const T = t.props;
@@ -722,22 +722,22 @@ const Z = M(
722
722
  Z({ variant: s, size: o, selected: d, disabled: c }),
723
723
  u
724
724
  ),
725
- "aria-label": g,
725
+ "aria-label": x,
726
726
  "aria-disabled": c || void 0,
727
727
  tabIndex: y,
728
728
  children: t
729
729
  }
730
730
  );
731
- const { onRemove: v, onClick: S } = a, A = S !== void 0, L = A && !c, V = (T) => {
731
+ const { onRemove: w, onClick: S } = a, A = S !== void 0, L = A && !c, V = (T) => {
732
732
  c || (T.key === "Enter" || T.key === " ") && (T.preventDefault(), S == null || S());
733
733
  };
734
- return /* @__PURE__ */ $(
734
+ return /* @__PURE__ */ v(
735
735
  "div",
736
736
  {
737
737
  ref: r,
738
738
  className: n(
739
739
  Z({ variant: s, size: o, selected: d, disabled: c }),
740
- v && i("xs", "pr"),
740
+ w && i("xs", "pr"),
741
741
  u
742
742
  ),
743
743
  "aria-disabled": c,
@@ -750,7 +750,7 @@ const Z = M(
750
750
  onKeyDown: V,
751
751
  disabled: c,
752
752
  "aria-pressed": d ? !0 : void 0,
753
- "aria-label": g || h,
753
+ "aria-label": x || h,
754
754
  tabIndex: y !== void 0 ? y : L ? 0 : void 0,
755
755
  className: n(
756
756
  "flex-1",
@@ -769,12 +769,12 @@ const Z = M(
769
769
  children: t
770
770
  }
771
771
  ) : /* @__PURE__ */ l("span", { children: t }),
772
- v && !c && /* @__PURE__ */ l(
772
+ w && !c && /* @__PURE__ */ l(
773
773
  "button",
774
774
  {
775
775
  type: "button",
776
776
  onClick: (T) => {
777
- T.stopPropagation(), v();
777
+ T.stopPropagation(), w();
778
778
  },
779
779
  className: n(
780
780
  i("xs", "ml"),
@@ -814,7 +814,7 @@ function dt(s) {
814
814
  "items-center",
815
815
  i("xs", "gap")
816
816
  ], c = n(...d, r);
817
- return /* @__PURE__ */ $("div", x(f({ role: "alert", id: a, className: c, "aria-live": "polite" }, t), { children: [
817
+ return /* @__PURE__ */ v("div", g(f({ role: "alert", id: a, className: c, "aria-live": "polite" }, t), { children: [
818
818
  /* @__PURE__ */ l(de, { className: "h-4 w-4 shrink-0", "aria-hidden": "true" }),
819
819
  /* @__PURE__ */ l("span", { children: e })
820
820
  ] }));
@@ -873,7 +873,7 @@ const Le = n(
873
873
  Ae[a],
874
874
  r
875
875
  );
876
- return /* @__PURE__ */ l("label", x(f({ ref: o, className: u }, s), { children: t }));
876
+ return /* @__PURE__ */ l("label", g(f({ ref: o, className: u }, s), { children: t }));
877
877
  })
878
878
  );
879
879
  Fe.displayName = "Label";
@@ -977,7 +977,7 @@ const ze = M("w-full", {
977
977
  label: d,
978
978
  "aria-label": c,
979
979
  className: u = ""
980
- } = m, g = p(m, [
980
+ } = m, x = p(m, [
981
981
  "value",
982
982
  "max",
983
983
  "variant",
@@ -987,9 +987,9 @@ const ze = M("w-full", {
987
987
  "aria-label",
988
988
  "className"
989
989
  ]);
990
- const h = a === void 0, v = h ? void 0 : Math.min(Math.max(a / r * 100, 0), 100), S = c || (h ? "Loading in progress" : `Progress: ${v == null ? void 0 : v.toFixed(0)}%`);
991
- return /* @__PURE__ */ $("div", x(f({ ref: y, className: n("w-full", u) }, g), { children: [
992
- o && (d || !h) && /* @__PURE__ */ $(
990
+ const h = a === void 0, w = h ? void 0 : Math.min(Math.max(a / r * 100, 0), 100), S = c || (h ? "Loading in progress" : `Progress: ${w == null ? void 0 : w.toFixed(0)}%`);
991
+ return /* @__PURE__ */ v("div", g(f({ ref: y, className: n("w-full", u) }, x), { children: [
992
+ o && (d || !h) && /* @__PURE__ */ v(
993
993
  "div",
994
994
  {
995
995
  className: n(
@@ -1010,7 +1010,7 @@ const ze = M("w-full", {
1010
1010
  children: d
1011
1011
  }
1012
1012
  ),
1013
- !h && v !== void 0 && /* @__PURE__ */ $(
1013
+ !h && w !== void 0 && /* @__PURE__ */ v(
1014
1014
  "span",
1015
1015
  {
1016
1016
  className: n(
@@ -1018,7 +1018,7 @@ const ze = M("w-full", {
1018
1018
  "text-fg-secondary"
1019
1019
  ),
1020
1020
  children: [
1021
- v.toFixed(0),
1021
+ w.toFixed(0),
1022
1022
  "%"
1023
1023
  ]
1024
1024
  }
@@ -1071,7 +1071,7 @@ const ze = M("w-full", {
1071
1071
  "ease-out"
1072
1072
  ),
1073
1073
  style: {
1074
- width: `${v}%`
1074
+ width: `${w}%`
1075
1075
  },
1076
1076
  "aria-hidden": "true"
1077
1077
  }
@@ -1138,7 +1138,7 @@ function ft(c) {
1138
1138
  "className",
1139
1139
  "aria-label"
1140
1140
  ]);
1141
- const g = [
1141
+ const x = [
1142
1142
  "motion-safe:animate-pulse",
1143
1143
  "bg-surface-muted",
1144
1144
  C("sm")
@@ -1147,18 +1147,18 @@ function ft(c) {
1147
1147
  card: "h-32",
1148
1148
  list: "h-12",
1149
1149
  circle: C("full")
1150
- }, b = n(...g, y[e], s), m = {};
1150
+ }, b = n(...x, y[e], s), m = {};
1151
1151
  a && (m.width = a), r && (m.height = r);
1152
1152
  const h = o || `Loading ${e} content`;
1153
1153
  return e === "text" && t > 1 ? /* @__PURE__ */ l(
1154
1154
  "div",
1155
- x(f({
1155
+ g(f({
1156
1156
  className: i("sm", "space-y"),
1157
1157
  role: "status",
1158
1158
  "aria-busy": "true",
1159
1159
  "aria-label": h
1160
1160
  }, d), {
1161
- children: Array.from({ length: t }).map((v, S) => /* @__PURE__ */ l(
1161
+ children: Array.from({ length: t }).map((w, S) => /* @__PURE__ */ l(
1162
1162
  "div",
1163
1163
  {
1164
1164
  className: b,
@@ -1208,9 +1208,9 @@ const _e = M("motion-safe:animate-spin", {
1208
1208
  "label",
1209
1209
  "className"
1210
1210
  ]);
1211
- return /* @__PURE__ */ $(
1211
+ return /* @__PURE__ */ v(
1212
1212
  "div",
1213
- x(f({
1213
+ g(f({
1214
1214
  className: n("inline-flex", "items-center", s),
1215
1215
  role: "status",
1216
1216
  "aria-label": t || "Loading",
@@ -1293,8 +1293,8 @@ const We = {
1293
1293
  contrast: "text-fg-inverse"
1294
1294
  }
1295
1295
  };
1296
- function He(g, u) {
1297
- var y = g, {
1296
+ function He(x, u) {
1297
+ var y = x, {
1298
1298
  variant: e = "paragraph",
1299
1299
  bold: a,
1300
1300
  italic: r,
@@ -1338,14 +1338,14 @@ const Q = _(He), Oe = {
1338
1338
  full: "max-w-full"
1339
1339
  }, Pe = ee.forwardRef(
1340
1340
  (u, c) => {
1341
- var g = u, {
1341
+ var x = u, {
1342
1342
  className: e,
1343
1343
  maxWidth: a = "lg",
1344
1344
  paddingX: r = "base",
1345
1345
  paddingY: t = "base",
1346
1346
  center: s = !0,
1347
1347
  children: o
1348
- } = g, d = p(g, [
1348
+ } = x, d = p(x, [
1349
1349
  "className",
1350
1350
  "maxWidth",
1351
1351
  "paddingX",
@@ -1355,7 +1355,7 @@ const Q = _(He), Oe = {
1355
1355
  ]);
1356
1356
  return /* @__PURE__ */ l(
1357
1357
  "div",
1358
- x(f({
1358
+ g(f({
1359
1359
  ref: c,
1360
1360
  className: n(
1361
1361
  "w-full",
@@ -1374,14 +1374,14 @@ const Q = _(He), Oe = {
1374
1374
  Pe.displayName = "Container";
1375
1375
  const Be = ee.forwardRef(
1376
1376
  (u, c) => {
1377
- var g = u, {
1377
+ var x = u, {
1378
1378
  className: e,
1379
1379
  spacing: a = "base",
1380
1380
  align: r = "stretch",
1381
1381
  justify: t = "start",
1382
1382
  direction: s = "column",
1383
1383
  children: o
1384
- } = g, d = p(g, [
1384
+ } = x, d = p(x, [
1385
1385
  "className",
1386
1386
  "spacing",
1387
1387
  "align",
@@ -1404,7 +1404,7 @@ const Be = ee.forwardRef(
1404
1404
  };
1405
1405
  return /* @__PURE__ */ l(
1406
1406
  "div",
1407
- x(f({
1407
+ g(f({
1408
1408
  ref: c,
1409
1409
  className: n(
1410
1410
  "flex",
@@ -1437,14 +1437,14 @@ function Ue(s) {
1437
1437
  i("sm", "space-x"),
1438
1438
  E("bodySmall")
1439
1439
  ], c = n(...d, r);
1440
- return /* @__PURE__ */ l("nav", x(f({ "aria-label": "Breadcrumb", className: c }, t), { children: /* @__PURE__ */ l(
1440
+ return /* @__PURE__ */ l("nav", g(f({ "aria-label": "Breadcrumb", className: c }, t), { children: /* @__PURE__ */ l(
1441
1441
  "ol",
1442
1442
  {
1443
1443
  className: n("flex", "items-center", i("sm", "space-x")),
1444
- children: e.map((u, g) => {
1445
- const y = g === e.length - 1;
1446
- return /* @__PURE__ */ $("li", { className: "flex items-center", children: [
1447
- g > 0 && /* @__PURE__ */ l(
1444
+ children: e.map((u, x) => {
1445
+ const y = x === e.length - 1;
1446
+ return /* @__PURE__ */ v("li", { className: "flex items-center", children: [
1447
+ x > 0 && /* @__PURE__ */ l(
1448
1448
  "span",
1449
1449
  {
1450
1450
  className: n(
@@ -1486,7 +1486,7 @@ function Ue(s) {
1486
1486
  children: u.label
1487
1487
  }
1488
1488
  ) : /* @__PURE__ */ l("span", { className: "text-fg-secondary", children: u.label })
1489
- ] }, g);
1489
+ ] }, x);
1490
1490
  })
1491
1491
  }
1492
1492
  ) }));
@@ -1495,7 +1495,7 @@ function Ke(t) {
1495
1495
  var s = t, { children: e, className: a } = s, r = p(s, ["children", "className"]);
1496
1496
  return /* @__PURE__ */ l(
1497
1497
  "div",
1498
- x(f({
1498
+ g(f({
1499
1499
  className: n(
1500
1500
  "grid items-start",
1501
1501
  i("1.5", "gap"),
@@ -1523,9 +1523,9 @@ function Xe(d) {
1523
1523
  "as",
1524
1524
  "className"
1525
1525
  ]);
1526
- return /* @__PURE__ */ $(
1526
+ return /* @__PURE__ */ v(
1527
1527
  t,
1528
- x(f({
1528
+ g(f({
1529
1529
  className: n(
1530
1530
  "text-base font-semibold text-fg-primary",
1531
1531
  "flex items-center",
@@ -1549,7 +1549,7 @@ function qe(t) {
1549
1549
  "children",
1550
1550
  "className"
1551
1551
  ]);
1552
- return /* @__PURE__ */ l("p", x(f({ className: n("text-sm text-fg-secondary", a) }, r), { children: e }));
1552
+ return /* @__PURE__ */ l("p", g(f({ className: n("text-sm text-fg-secondary", a) }, r), { children: e }));
1553
1553
  }
1554
1554
  function Ge(t) {
1555
1555
  var s = t, {
@@ -1561,7 +1561,7 @@ function Ge(t) {
1561
1561
  ]);
1562
1562
  return /* @__PURE__ */ l(
1563
1563
  "div",
1564
- x(f({
1564
+ g(f({
1565
1565
  "data-card-actions": "",
1566
1566
  className: n(
1567
1567
  "flex items-center self-start",
@@ -1575,10 +1575,10 @@ function Ge(t) {
1575
1575
  }
1576
1576
  function Ye(t) {
1577
1577
  var s = t, { children: e, className: a } = s, r = p(s, ["children", "className"]);
1578
- return /* @__PURE__ */ l("div", x(f({ className: n(a) }, r), { children: e }));
1578
+ return /* @__PURE__ */ l("div", g(f({ className: n(a) }, r), { children: e }));
1579
1579
  }
1580
- function Ze(g) {
1581
- var y = g, {
1580
+ function Ze(x) {
1581
+ var y = x, {
1582
1582
  variant: e = "default",
1583
1583
  padding: a = "medium",
1584
1584
  className: r = "",
@@ -1631,10 +1631,10 @@ function Ze(g) {
1631
1631
  padding: "medium"
1632
1632
  }
1633
1633
  }
1634
- ), m = t !== void 0, h = m ? "button" : void 0, v = m ? 0 : void 0, S = n(b({ variant: e, padding: a }), r), L = f({
1634
+ ), m = t !== void 0, h = m ? "button" : void 0, w = m ? 0 : void 0, S = n(b({ variant: e, padding: a }), r), L = f({
1635
1635
  className: S,
1636
1636
  role: h,
1637
- tabIndex: v,
1637
+ tabIndex: w,
1638
1638
  onClick: t,
1639
1639
  onKeyDown: m ? (V) => {
1640
1640
  m && (V.key === "Enter" || V.key === " ") && (V.preventDefault(), t == null || t());
@@ -1642,7 +1642,7 @@ function Ze(g) {
1642
1642
  "aria-label": s,
1643
1643
  "aria-labelledby": o
1644
1644
  }, u);
1645
- return d ? /* @__PURE__ */ l("section", x(f({}, L), { children: c })) : /* @__PURE__ */ l("div", x(f({}, L), { children: c }));
1645
+ return d ? /* @__PURE__ */ l("section", g(f({}, L), { children: c })) : /* @__PURE__ */ l("div", g(f({}, L), { children: c }));
1646
1646
  }
1647
1647
  const te = D(Ze);
1648
1648
  te.displayName = "Card";
@@ -1662,7 +1662,7 @@ function ut(t) {
1662
1662
  ]);
1663
1663
  return /* @__PURE__ */ l(
1664
1664
  "div",
1665
- x(f({
1665
+ g(f({
1666
1666
  className: `flex flex-col ${i("1.5", "space-y")} ${i("lg", "p")} ${i("base", "pb")} ${a}`
1667
1667
  }, r), {
1668
1668
  children: e
@@ -1679,7 +1679,7 @@ function pt(t) {
1679
1679
  ]);
1680
1680
  return /* @__PURE__ */ l(
1681
1681
  "div",
1682
- x(f({
1682
+ g(f({
1683
1683
  className: `flex flex-col-reverse sm:flex-row sm:justify-end sm:${i("sm", "space-x")} ${i("lg", "p")} ${i("base", "pt")} ${a}`
1684
1684
  }, r), {
1685
1685
  children: e
@@ -1696,7 +1696,7 @@ function mt(t) {
1696
1696
  ]);
1697
1697
  return /* @__PURE__ */ l(
1698
1698
  "div",
1699
- x(f({
1699
+ g(f({
1700
1700
  className: `
1701
1701
  ${i("lg", "p")}
1702
1702
  border-b
@@ -1718,7 +1718,7 @@ function gt(t) {
1718
1718
  ]);
1719
1719
  return /* @__PURE__ */ l(
1720
1720
  "div",
1721
- x(f({
1721
+ g(f({
1722
1722
  className: `
1723
1723
  ${i("lg", "p")}
1724
1724
  border-t
@@ -1733,7 +1733,44 @@ function gt(t) {
1733
1733
  })
1734
1734
  );
1735
1735
  }
1736
- function xt({ children: e, className: a }) {
1736
+ function xt(o) {
1737
+ var d = o, {
1738
+ label: e,
1739
+ children: a,
1740
+ wrap: r = !0,
1741
+ className: t
1742
+ } = d, s = p(d, [
1743
+ "label",
1744
+ "children",
1745
+ "wrap",
1746
+ "className"
1747
+ ]);
1748
+ const u = !(s["aria-label"] != null || s["aria-labelledby"] != null) && typeof e == "string" && e !== "" ? e : void 0;
1749
+ return /* @__PURE__ */ v(
1750
+ "div",
1751
+ g(f({
1752
+ role: "group",
1753
+ "aria-label": u,
1754
+ className: n(
1755
+ "flex items-center",
1756
+ r ? "flex-wrap" : "flex-nowrap",
1757
+ i("sm", "gap"),
1758
+ t
1759
+ )
1760
+ }, s), {
1761
+ children: [
1762
+ e ? (
1763
+ // shrink-0 keeps the label a stable leading unit: in the wrapping
1764
+ // flex run it must not be squeezed or mid-word-wrapped when the
1765
+ // chips overflow — it stays on one line and the chips wrap around it.
1766
+ /* @__PURE__ */ l("span", { className: "shrink-0 text-fg-secondary text-sm", children: e })
1767
+ ) : null,
1768
+ a
1769
+ ]
1770
+ })
1771
+ );
1772
+ }
1773
+ function bt({ children: e, className: a }) {
1737
1774
  return /* @__PURE__ */ l(
1738
1775
  "div",
1739
1776
  {
@@ -1746,7 +1783,7 @@ function xt({ children: e, className: a }) {
1746
1783
  }
1747
1784
  );
1748
1785
  }
1749
- function bt({
1786
+ function ht({
1750
1787
  children: e,
1751
1788
  className: a
1752
1789
  }) {
@@ -1765,7 +1802,7 @@ function bt({
1765
1802
  }
1766
1803
  );
1767
1804
  }
1768
- function ht(r) {
1805
+ function yt(r) {
1769
1806
  var t = r, {
1770
1807
  className: e = ""
1771
1808
  } = t, a = p(t, [
@@ -1784,7 +1821,7 @@ function ht(r) {
1784
1821
  }, a)
1785
1822
  );
1786
1823
  }
1787
- function yt(t) {
1824
+ function vt(t) {
1788
1825
  var s = t, {
1789
1826
  orientation: e = "horizontal",
1790
1827
  className: a = ""
@@ -1837,7 +1874,7 @@ const Je = M(
1837
1874
  }
1838
1875
  }
1839
1876
  );
1840
- function vt(c) {
1877
+ function wt(c) {
1841
1878
  var u = c, {
1842
1879
  title: e,
1843
1880
  description: a,
@@ -1853,14 +1890,14 @@ function vt(c) {
1853
1890
  "variant",
1854
1891
  "className"
1855
1892
  ]);
1856
- return /* @__PURE__ */ $("div", x(f({ className: n(Je({ variant: s }), o) }, d), { children: [
1893
+ return /* @__PURE__ */ v("div", g(f({ className: n(Je({ variant: s }), o) }, d), { children: [
1857
1894
  r && r.length > 0 && /* @__PURE__ */ l(Ue, { items: r }),
1858
- /* @__PURE__ */ $(
1895
+ /* @__PURE__ */ v(
1859
1896
  "div",
1860
1897
  {
1861
1898
  className: `flex items-start justify-between ${i("base", "gap")}`,
1862
1899
  children: [
1863
- /* @__PURE__ */ $("div", { className: "flex-1 min-w-0", children: [
1900
+ /* @__PURE__ */ v("div", { className: "flex-1 min-w-0", children: [
1864
1901
  /* @__PURE__ */ l(
1865
1902
  Q,
1866
1903
  {
@@ -1893,8 +1930,8 @@ const Qe = {
1893
1930
  warning: "text-fg-warning",
1894
1931
  error: "text-fg-error"
1895
1932
  };
1896
- function wt(u) {
1897
- var g = u, {
1933
+ function Nt(u) {
1934
+ var x = u, {
1898
1935
  value: e,
1899
1936
  label: a,
1900
1937
  hint: r,
@@ -1902,7 +1939,7 @@ function wt(u) {
1902
1939
  align: s = "start",
1903
1940
  tone: o = "neutral",
1904
1941
  className: d
1905
- } = g, c = p(g, [
1942
+ } = x, c = p(x, [
1906
1943
  "value",
1907
1944
  "label",
1908
1945
  "hint",
@@ -1912,9 +1949,9 @@ function wt(u) {
1912
1949
  "className"
1913
1950
  ]);
1914
1951
  const y = e == null;
1915
- return /* @__PURE__ */ $(
1952
+ return /* @__PURE__ */ v(
1916
1953
  "div",
1917
- x(f({
1954
+ g(f({
1918
1955
  className: n(
1919
1956
  "bg-surface-base flex-1 flex flex-col",
1920
1957
  i("base", "p"),
@@ -1944,7 +1981,7 @@ const tt = {
1944
1981
  3: "md:grid-cols-3",
1945
1982
  4: "md:grid-cols-4"
1946
1983
  };
1947
- function Nt(o) {
1984
+ function $t(o) {
1948
1985
  var d = o, {
1949
1986
  layout: e = "grid",
1950
1987
  cols: a = 4,
@@ -1959,7 +1996,7 @@ function Nt(o) {
1959
1996
  const c = e === "grid";
1960
1997
  return /* @__PURE__ */ l(
1961
1998
  "div",
1962
- x(f({
1999
+ g(f({
1963
2000
  className: n(
1964
2001
  "bg-line-default border border-line-default overflow-hidden gap-px",
1965
2002
  C("lg"),
@@ -1971,29 +2008,29 @@ function Nt(o) {
1971
2008
  })
1972
2009
  );
1973
2010
  }
1974
- function $t(s) {
2011
+ function St(s) {
1975
2012
  var o = s, { column: e, row: a, className: r = "" } = o, t = p(o, ["column", "row", "className"]);
1976
2013
  const d = e.key in a ? a[e.key] : void 0;
1977
2014
  return /* @__PURE__ */ l(
1978
2015
  "td",
1979
- x(f({
2016
+ g(f({
1980
2017
  className: `${i("lg", "px")} ${i("base", "py")} whitespace-nowrap text-sm text-fg-primary ${e.hiddenOnMobile ? "hidden md:table-cell" : ""} ${r}`
1981
2018
  }, t), {
1982
2019
  children: e.render ? e.render(d, a) : String(d != null ? d : "")
1983
2020
  })
1984
2021
  );
1985
2022
  }
1986
- function St({
2023
+ function Ct({
1987
2024
  items: e,
1988
2025
  orientation: a = "vertical",
1989
2026
  className: r = ""
1990
2027
  }) {
1991
2028
  return a === "horizontal" ? /* @__PURE__ */ l("div", { className: `flex items-start ${r}`, children: e.map((t, s) => {
1992
2029
  const o = t.status || (s === 0 ? "active" : s < e.findIndex((c) => c.status === "active") ? "completed" : "default"), d = s === e.length - 1;
1993
- return /* @__PURE__ */ l("div", { className: "flex items-start flex-1", children: /* @__PURE__ */ $("div", { className: "flex flex-col items-center flex-1", children: [
2030
+ return /* @__PURE__ */ l("div", { className: "flex items-start flex-1", children: /* @__PURE__ */ v("div", { className: "flex flex-col items-center flex-1", children: [
1994
2031
  /* @__PURE__ */ l(
1995
2032
  "div",
1996
- x(f({}, o === "default" ? { "data-marker": "pending" } : {}), {
2033
+ g(f({}, o === "default" ? { "data-marker": "pending" } : {}), {
1997
2034
  className: `
1998
2035
  flex
1999
2036
  items-center
@@ -2018,7 +2055,7 @@ function St({
2018
2055
  `
2019
2056
  }
2020
2057
  ),
2021
- /* @__PURE__ */ $(
2058
+ /* @__PURE__ */ v(
2022
2059
  "div",
2023
2060
  {
2024
2061
  className: `${i("base", "mt")} text-center ${i("base", "px")}`,
@@ -2045,15 +2082,15 @@ function St({
2045
2082
  ] }) }, t.id);
2046
2083
  }) }) : /* @__PURE__ */ l("div", { className: `${i("none", "space-y")} ${r}`, children: e.map((t, s) => {
2047
2084
  const o = t.status || (s === 0 ? "active" : s < e.findIndex((c) => c.status === "active") ? "completed" : "default"), d = s === e.length - 1;
2048
- return /* @__PURE__ */ $(
2085
+ return /* @__PURE__ */ v(
2049
2086
  "div",
2050
2087
  {
2051
2088
  className: `flex items-start ${i("base", "gap")}`,
2052
2089
  children: [
2053
- /* @__PURE__ */ $("div", { className: "flex flex-col items-center", children: [
2090
+ /* @__PURE__ */ v("div", { className: "flex flex-col items-center", children: [
2054
2091
  /* @__PURE__ */ l(
2055
2092
  "div",
2056
- x(f({}, o === "default" ? { "data-marker": "pending" } : {}), {
2093
+ g(f({}, o === "default" ? { "data-marker": "pending" } : {}), {
2057
2094
  className: `
2058
2095
  flex
2059
2096
  items-center
@@ -2080,7 +2117,7 @@ function St({
2080
2117
  }
2081
2118
  )
2082
2119
  ] }),
2083
- /* @__PURE__ */ $("div", { className: `flex-1 ${i("xl", "pb")}`, children: [
2120
+ /* @__PURE__ */ v("div", { className: `flex-1 ${i("xl", "pb")}`, children: [
2084
2121
  t.timestamp && /* @__PURE__ */ l(
2085
2122
  "p",
2086
2123
  {
@@ -2130,22 +2167,23 @@ export {
2130
2167
  gt as DrawerFooter,
2131
2168
  mt as DrawerHeader,
2132
2169
  dt as ErrorMessage,
2133
- xt as HeaderActions,
2134
- bt as HeaderNavigation,
2170
+ xt as FilterChips,
2171
+ bt as HeaderActions,
2172
+ ht as HeaderNavigation,
2135
2173
  ct as Info,
2136
2174
  Fe as Label,
2137
- ht as MenuSeparator,
2138
- yt as NavbarSeparator,
2139
- vt as PageHeader,
2175
+ yt as MenuSeparator,
2176
+ vt as NavbarSeparator,
2177
+ wt as PageHeader,
2140
2178
  Me as Progress,
2141
2179
  De as Separator,
2142
2180
  ft as Skeleton,
2143
2181
  Ie as Spinner,
2144
2182
  Be as Stack,
2145
- wt as Stat,
2146
- Nt as StatGroup,
2147
- $t as TableCell,
2183
+ Nt as Stat,
2184
+ $t as StatGroup,
2185
+ St as TableCell,
2148
2186
  Q as Text,
2149
- St as Timeline
2187
+ Ct as Timeline
2150
2188
  };
2151
2189
  //# sourceMappingURL=index.js.map