@marigold/components 8.0.2 → 9.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -57,7 +57,7 @@ __export(src_exports, {
57
57
  FieldGroup: () => FieldGroup,
58
58
  FieldGroupContext: () => FieldGroupContext,
59
59
  Footer: () => Footer,
60
- Form: () => import_react_aria_components21.Form,
60
+ Form: () => import_react_aria_components20.Form,
61
61
  Grid: () => Grid,
62
62
  Header: () => _Header,
63
63
  Headline: () => _Headline,
@@ -78,7 +78,7 @@ __export(src_exports, {
78
78
  Popover: () => _Popover,
79
79
  Radio: () => _Radio,
80
80
  RadioGroup: () => _RadioGroup,
81
- RouterProvider: () => import_react_aria_components59.RouterProvider,
81
+ RouterProvider: () => import_react_aria_components58.RouterProvider,
82
82
  Scrollable: () => Scrollable,
83
83
  SearchField: () => _SearchField,
84
84
  SectionMessage: () => SectionMessage,
@@ -412,8 +412,7 @@ var Aspect = ({
412
412
  };
413
413
 
414
414
  // src/Autocomplete/Autocomplete.tsx
415
- var import_react15 = require("react");
416
- var import_react16 = __toESM(require("react"));
415
+ var import_react15 = __toESM(require("react"));
417
416
  var import_react_aria_components10 = require("react-aria-components");
418
417
  var import_system17 = require("@marigold/system");
419
418
 
@@ -426,13 +425,6 @@ var import_react6 = require("react");
426
425
  var import_react_aria_components = require("react-aria-components");
427
426
  var import_system6 = require("@marigold/system");
428
427
  var import_jsx_runtime7 = require("react/jsx-runtime");
429
- var Description = ({ children }) => {
430
- const ctx = (0, import_react6.useContext)(import_react_aria_components.FieldErrorContext);
431
- if (ctx && ctx.isInvalid) {
432
- return null;
433
- }
434
- return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_react_aria_components.Text, { slot: "description", children });
435
- };
436
428
  var Icon = ({ className }) => /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
437
429
  "svg",
438
430
  {
@@ -455,6 +447,10 @@ var HelpText = ({
455
447
  variant,
456
448
  size
457
449
  });
450
+ const ctx = (0, import_react6.useContext)(import_react_aria_components.FieldErrorContext);
451
+ if (!description && ctx && !ctx.isInvalid) {
452
+ return null;
453
+ }
458
454
  return /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: (0, import_system6.cn)(classNames2.container), children: [
459
455
  /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_react_aria_components.FieldError, { ...props, className: "flex flex-col", children: (validation) => {
460
456
  const messages = (typeof errorMessage === "function" ? errorMessage(validation) : errorMessage) || validation.validationErrors;
@@ -466,7 +462,7 @@ var HelpText = ({
466
462
  messages
467
463
  ] });
468
464
  } }),
469
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Description, { children: description })
465
+ ctx && ctx.isInvalid ? null : /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_react_aria_components.Text, { slot: "description", children: description })
470
466
  ] });
471
467
  };
472
468
 
@@ -810,7 +806,7 @@ var Underlay = ({
810
806
  import_react_aria_components8.ModalOverlay,
811
807
  {
812
808
  className: ({ isEntering, isExiting }) => (0, import_system15.cn)(
813
- "fixed inset-0 z-40 flex min-h-full items-center justify-center overflow-y-auto backdrop-blur ",
809
+ "fixed inset-0 z-40 flex min-h-full items-center justify-center overflow-y-auto backdrop-blur",
814
810
  isEntering ? "animate-in fade-in duration-300 ease-out" : "",
815
811
  isExiting ? "animate-out fade-out duration-200 ease-in" : "",
816
812
  classNames2
@@ -861,6 +857,7 @@ var _Popover = (0, import_react14.forwardRef)(
861
857
  ref,
862
858
  ...props,
863
859
  className: classNames2,
860
+ placement,
864
861
  offset: 0,
865
862
  UNSTABLE_portalContainer: portal,
866
863
  children
@@ -876,7 +873,7 @@ var AutocompleteInput = ({
876
873
  onClear,
877
874
  ref
878
875
  }) => {
879
- const state = import_react16.default.useContext(import_react_aria_components10.ComboBoxStateContext);
876
+ const state = import_react15.default.useContext(import_react_aria_components10.ComboBoxStateContext);
880
877
  const classNames2 = (0, import_system17.useClassNames)({ component: "ComboBox" });
881
878
  return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
882
879
  SearchInput,
@@ -938,16 +935,16 @@ var _Autocomplete = (0, import_react15.forwardRef)(
938
935
  _Autocomplete.Item = _ListBox.Item;
939
936
 
940
937
  // src/ComboBox/ComboBox.tsx
941
- var import_react18 = require("react");
938
+ var import_react17 = require("react");
942
939
  var import_react_aria_components12 = require("react-aria-components");
943
940
  var import_system19 = require("@marigold/system");
944
941
 
945
942
  // src/Button/Button.tsx
946
- var import_react17 = require("react");
943
+ var import_react16 = require("react");
947
944
  var import_react_aria_components11 = require("react-aria-components");
948
945
  var import_system18 = require("@marigold/system");
949
946
  var import_jsx_runtime20 = require("react/jsx-runtime");
950
- var _Button = (0, import_react17.forwardRef)(
947
+ var _Button = (0, import_react16.forwardRef)(
951
948
  ({ children, variant, size, className, disabled, fullWidth, ...props }, ref) => {
952
949
  const classNames2 = (0, import_system18.useClassNames)({
953
950
  component: "Button",
@@ -974,7 +971,7 @@ var _Button = (0, import_react17.forwardRef)(
974
971
 
975
972
  // src/ComboBox/ComboBox.tsx
976
973
  var import_jsx_runtime21 = require("react/jsx-runtime");
977
- var _ComboBox = (0, import_react18.forwardRef)(
974
+ var _ComboBox = (0, import_react17.forwardRef)(
978
975
  ({
979
976
  variant,
980
977
  size,
@@ -1017,7 +1014,7 @@ var import_system20 = require("@marigold/system");
1017
1014
  var import_jsx_runtime22 = require("react/jsx-runtime");
1018
1015
  var Badge = ({ variant, size, children, ...props }) => {
1019
1016
  const classNames2 = (0, import_system20.useClassNames)({ component: "Badge", variant, size });
1020
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("div", { ...props, className: classNames2, children });
1017
+ return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("div", { className: classNames2, ...props, children });
1021
1018
  };
1022
1019
 
1023
1020
  // src/Breakout/Breakout.tsx
@@ -1027,8 +1024,7 @@ var Breakout = ({
1027
1024
  height,
1028
1025
  children,
1029
1026
  alignX = "left",
1030
- alignY = "center",
1031
- ...props
1027
+ alignY = "center"
1032
1028
  }) => {
1033
1029
  var _a, _b, _c, _d;
1034
1030
  return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
@@ -1042,7 +1038,6 @@ var Breakout = ({
1042
1038
  "h-[--height]"
1043
1039
  ),
1044
1040
  style: (0, import_system21.createVar)({ height }),
1045
- ...props,
1046
1041
  children
1047
1042
  }
1048
1043
  );
@@ -1122,7 +1117,6 @@ var Center = ({
1122
1117
  // src/Checkbox/Checkbox.tsx
1123
1118
  var import_react19 = require("react");
1124
1119
  var import_react_aria_components13 = require("react-aria-components");
1125
- var import_react_aria_components14 = require("react-aria-components");
1126
1120
  var import_system26 = require("@marigold/system");
1127
1121
 
1128
1122
  // src/Checkbox/CheckBoxField.tsx
@@ -1136,6 +1130,11 @@ var CheckboxField = ({ children, labelWidth }) => {
1136
1130
  ] });
1137
1131
  };
1138
1132
 
1133
+ // src/Checkbox/Context.tsx
1134
+ var import_react18 = require("react");
1135
+ var CheckboxGroupContext = (0, import_react18.createContext)(null);
1136
+ var useCheckboxGroupContext = () => (0, import_react18.useContext)(CheckboxGroupContext);
1137
+
1139
1138
  // src/Checkbox/Checkbox.tsx
1140
1139
  var import_jsx_runtime28 = require("react/jsx-runtime");
1141
1140
  var CheckMark = () => /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("svg", { viewBox: "0 0 12 10", children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
@@ -1163,7 +1162,7 @@ var Icon2 = ({ className, checked, indeterminate, ...props }) => {
1163
1162
  "flex shrink-0 grow-0 basis-4 items-center justify-center",
1164
1163
  "h-4 w-4 p-px",
1165
1164
  "bg-white",
1166
- "rounded-[3px] border border-solid border-black ",
1165
+ "rounded-[3px] border border-solid border-black",
1167
1166
  className
1168
1167
  ),
1169
1168
  ...props,
@@ -1173,15 +1172,14 @@ var Icon2 = ({ className, checked, indeterminate, ...props }) => {
1173
1172
  };
1174
1173
  var _Checkbox = (0, import_react19.forwardRef)(
1175
1174
  ({
1176
- className,
1177
- indeterminate,
1178
1175
  error,
1179
1176
  disabled,
1180
- defaultChecked,
1181
- children,
1182
- checked,
1183
1177
  readOnly,
1184
1178
  required,
1179
+ checked,
1180
+ defaultChecked,
1181
+ indeterminate,
1182
+ children,
1185
1183
  variant,
1186
1184
  size,
1187
1185
  ...rest
@@ -1197,8 +1195,12 @@ var _Checkbox = (0, import_react19.forwardRef)(
1197
1195
  ...rest
1198
1196
  };
1199
1197
  const { labelWidth } = useFieldGroupContext();
1200
- const classNames2 = (0, import_system26.useClassNames)({ component: "Checkbox", variant, size });
1201
- const state = (0, import_react19.useContext)(import_react_aria_components14.CheckboxGroupStateContext);
1198
+ const group = useCheckboxGroupContext();
1199
+ const classNames2 = (0, import_system26.useClassNames)({
1200
+ component: "Checkbox",
1201
+ variant: variant || (group == null ? void 0 : group.variant),
1202
+ size: size || (group == null ? void 0 : group.size)
1203
+ });
1202
1204
  const component = /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
1203
1205
  import_react_aria_components13.Checkbox,
1204
1206
  {
@@ -1222,21 +1224,13 @@ var _Checkbox = (0, import_react19.forwardRef)(
1222
1224
  ] })
1223
1225
  }
1224
1226
  );
1225
- return !state && labelWidth ? /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(CheckboxField, { labelWidth, children: component }) : component;
1227
+ return !group && !!labelWidth ? /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(CheckboxField, { labelWidth, children: component }) : component;
1226
1228
  }
1227
1229
  );
1228
1230
 
1229
1231
  // src/Checkbox/CheckboxGroup.tsx
1230
- var import_react_aria_components15 = require("react-aria-components");
1232
+ var import_react_aria_components14 = require("react-aria-components");
1231
1233
  var import_system27 = require("@marigold/system");
1232
-
1233
- // src/Checkbox/Context.tsx
1234
- var import_react20 = require("react");
1235
- var CheckboxGroupContext = (0, import_react20.createContext)(
1236
- null
1237
- );
1238
-
1239
- // src/Checkbox/CheckboxGroup.tsx
1240
1234
  var import_jsx_runtime29 = require("react/jsx-runtime");
1241
1235
  var _CheckboxGroup = ({
1242
1236
  children,
@@ -1264,7 +1258,7 @@ var _CheckboxGroup = ({
1264
1258
  isInvalid: error,
1265
1259
  ...rest
1266
1260
  };
1267
- return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(FieldBase, { as: import_react_aria_components15.CheckboxGroup, width, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
1261
+ return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(FieldBase, { as: import_react_aria_components14.CheckboxGroup, width, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
1268
1262
  "div",
1269
1263
  {
1270
1264
  role: "presentation",
@@ -1280,7 +1274,7 @@ var _CheckboxGroup = ({
1280
1274
  };
1281
1275
 
1282
1276
  // src/Columns/Columns.tsx
1283
- var import_react21 = require("react");
1277
+ var import_react20 = require("react");
1284
1278
  var import_system28 = require("@marigold/system");
1285
1279
  var import_jsx_runtime30 = require("react/jsx-runtime");
1286
1280
  var Columns = ({
@@ -1291,9 +1285,9 @@ var Columns = ({
1291
1285
  children,
1292
1286
  ...props
1293
1287
  }) => {
1294
- if (import_react21.Children.count(children) !== columns.length) {
1288
+ if (import_react20.Children.count(children) !== columns.length) {
1295
1289
  throw new Error(
1296
- `Columns: expected ${columns.length} children, got ${import_react21.Children.count(
1290
+ `Columns: expected ${columns.length} children, got ${import_react20.Children.count(
1297
1291
  children
1298
1292
  )}`
1299
1293
  );
@@ -1307,7 +1301,7 @@ var Columns = ({
1307
1301
  import_system28.gapSpace[space]
1308
1302
  ),
1309
1303
  ...props,
1310
- children: import_react21.Children.map(children, (child, idx) => /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
1304
+ children: import_react20.Children.map(children, (child, idx) => /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
1311
1305
  "div",
1312
1306
  {
1313
1307
  className: (0, import_system28.cn)(
@@ -1364,12 +1358,12 @@ var Container = ({
1364
1358
  };
1365
1359
 
1366
1360
  // src/Dialog/Dialog.tsx
1367
- var import_react24 = require("react");
1368
- var import_react_aria_components19 = require("react-aria-components");
1361
+ var import_react23 = require("react");
1362
+ var import_react_aria_components18 = require("react-aria-components");
1369
1363
  var import_system31 = require("@marigold/system");
1370
1364
 
1371
1365
  // src/Headline/Headline.tsx
1372
- var import_react_aria_components16 = require("react-aria-components");
1366
+ var import_react_aria_components15 = require("react-aria-components");
1373
1367
  var import_system30 = require("@marigold/system");
1374
1368
  var import_jsx_runtime32 = require("react/jsx-runtime");
1375
1369
  var _Headline = ({
@@ -1378,7 +1372,7 @@ var _Headline = ({
1378
1372
  children,
1379
1373
  align = "left",
1380
1374
  color,
1381
- level = 1,
1375
+ level = "1",
1382
1376
  ...props
1383
1377
  }) => {
1384
1378
  const theme = (0, import_system30.useTheme)();
@@ -1388,7 +1382,7 @@ var _Headline = ({
1388
1382
  size: size != null ? size : `level-${level}`
1389
1383
  });
1390
1384
  return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
1391
- import_react_aria_components16.Heading,
1385
+ import_react_aria_components15.Heading,
1392
1386
  {
1393
1387
  level: Number(level),
1394
1388
  ...props,
@@ -1407,14 +1401,14 @@ var _Headline = ({
1407
1401
  };
1408
1402
 
1409
1403
  // src/Dialog/DialogTrigger.tsx
1410
- var import_react23 = require("react");
1411
- var import_react_aria_components18 = require("react-aria-components");
1412
-
1413
- // src/Overlay/Modal.tsx
1414
1404
  var import_react22 = require("react");
1415
1405
  var import_react_aria_components17 = require("react-aria-components");
1406
+
1407
+ // src/Overlay/Modal.tsx
1408
+ var import_react21 = require("react");
1409
+ var import_react_aria_components16 = require("react-aria-components");
1416
1410
  var import_jsx_runtime33 = require("react/jsx-runtime");
1417
- var _Modal = (0, import_react22.forwardRef)(({ open, dismissable, keyboardDismissable, ...rest }, ref) => {
1411
+ var _Modal = (0, import_react21.forwardRef)(({ open, dismissable, keyboardDismissable, ...rest }, ref) => {
1418
1412
  const props = {
1419
1413
  isOpen: open,
1420
1414
  isDismissable: dismissable,
@@ -1428,7 +1422,7 @@ var _Modal = (0, import_react22.forwardRef)(({ open, dismissable, keyboardDismis
1428
1422
  keyboardDismissable,
1429
1423
  open,
1430
1424
  variant: "modal",
1431
- children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_react_aria_components17.Modal, { ref, className: "relative", ...props, children: props.children })
1425
+ children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_react_aria_components16.Modal, { ref, className: "relative", ...props, children: props.children })
1432
1426
  }
1433
1427
  );
1434
1428
  });
@@ -1446,13 +1440,13 @@ var _DialogTrigger = ({
1446
1440
  isOpen: open,
1447
1441
  ...rest
1448
1442
  };
1449
- const children = import_react23.Children.toArray(props.children);
1443
+ const children = import_react22.Children.toArray(props.children);
1450
1444
  const [dialogTrigger, dialog] = children;
1451
1445
  const hasDialogTrigger = dialogTrigger.type !== _Dialog;
1452
1446
  const currentDialog = children.length < 2 ? !hasDialogTrigger && dialogTrigger : dialog;
1453
1447
  if (isNonModal)
1454
- return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_react_aria_components18.DialogTrigger, { ...props, children: props.children });
1455
- return /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(import_react_aria_components18.DialogTrigger, { ...props, children: [
1448
+ return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_react_aria_components17.DialogTrigger, { ...props, children: props.children });
1449
+ return /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(import_react_aria_components17.DialogTrigger, { ...props, children: [
1456
1450
  hasDialogTrigger && dialogTrigger,
1457
1451
  /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
1458
1452
  _Modal,
@@ -1468,7 +1462,7 @@ var _DialogTrigger = ({
1468
1462
  // src/Dialog/Dialog.tsx
1469
1463
  var import_jsx_runtime35 = require("react/jsx-runtime");
1470
1464
  var CloseButton = ({ className }) => {
1471
- const { close } = (0, import_react24.useContext)(import_react_aria_components19.OverlayTriggerStateContext);
1465
+ const { close } = (0, import_react23.useContext)(import_react_aria_components18.OverlayTriggerStateContext);
1472
1466
  return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { className: "flex justify-end", children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
1473
1467
  "button",
1474
1468
  {
@@ -1497,7 +1491,7 @@ var _Dialog = ({
1497
1491
  ...props
1498
1492
  }) => {
1499
1493
  const classNames2 = (0, import_system31.useClassNames)({ component: "Dialog", variant, size });
1500
- let state = (0, import_react24.useContext)(import_react_aria_components19.OverlayTriggerStateContext);
1494
+ let state = (0, import_react23.useContext)(import_react_aria_components18.OverlayTriggerStateContext);
1501
1495
  let children = props.children;
1502
1496
  if (typeof children === "function") {
1503
1497
  children = children({
@@ -1506,7 +1500,7 @@ var _Dialog = ({
1506
1500
  });
1507
1501
  }
1508
1502
  return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
1509
- import_react_aria_components19.Dialog,
1503
+ import_react_aria_components18.Dialog,
1510
1504
  {
1511
1505
  ...props,
1512
1506
  className: (0, import_system31.cn)("relative outline-none", classNames2.container),
@@ -1521,12 +1515,12 @@ _Dialog.Trigger = _DialogTrigger;
1521
1515
  _Dialog.Headline = DialogHeadline;
1522
1516
 
1523
1517
  // src/Divider/Divider.tsx
1524
- var import_react_aria_components20 = require("react-aria-components");
1518
+ var import_react_aria_components19 = require("react-aria-components");
1525
1519
  var import_system32 = require("@marigold/system");
1526
1520
  var import_jsx_runtime36 = require("react/jsx-runtime");
1527
1521
  var _Divider = ({ variant, ...props }) => {
1528
1522
  const classNames2 = (0, import_system32.useClassNames)({ component: "Divider", variant });
1529
- return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_react_aria_components20.Separator, { className: (0, import_system32.cn)("border-none", classNames2), ...props });
1523
+ return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_react_aria_components19.Separator, { className: (0, import_system32.cn)("border-none", classNames2), ...props });
1530
1524
  };
1531
1525
 
1532
1526
  // src/Footer/Footer.tsx
@@ -1538,7 +1532,7 @@ var Footer = ({ children, variant, size, ...props }) => {
1538
1532
  };
1539
1533
 
1540
1534
  // src/Form/Form.tsx
1541
- var import_react_aria_components21 = require("react-aria-components");
1535
+ var import_react_aria_components20 = require("react-aria-components");
1542
1536
 
1543
1537
  // src/Grid/Grid.tsx
1544
1538
  var import_system34 = require("@marigold/system");
@@ -1577,7 +1571,7 @@ var Grid = ({
1577
1571
  Grid.Area = GridArea;
1578
1572
 
1579
1573
  // src/Header/Header.tsx
1580
- var import_react_aria_components22 = require("react-aria-components");
1574
+ var import_react_aria_components21 = require("react-aria-components");
1581
1575
  var import_system35 = require("@marigold/system");
1582
1576
  var import_jsx_runtime40 = require("react/jsx-runtime");
1583
1577
  var _Header = ({ variant, size, ...props }) => {
@@ -1586,7 +1580,7 @@ var _Header = ({ variant, size, ...props }) => {
1586
1580
  variant,
1587
1581
  size
1588
1582
  });
1589
- return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(import_react_aria_components22.Header, { className: classNames2, ...props, children: props.children });
1583
+ return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(import_react_aria_components21.Header, { className: classNames2, ...props, children: props.children });
1590
1584
  };
1591
1585
 
1592
1586
  // src/Image/Image.tsx
@@ -1643,20 +1637,20 @@ var Inline = ({
1643
1637
  };
1644
1638
 
1645
1639
  // src/DateField/DateField.tsx
1646
- var import_react25 = require("react");
1647
- var import_react_aria_components25 = require("react-aria-components");
1640
+ var import_react24 = require("react");
1641
+ var import_react_aria_components24 = require("react-aria-components");
1648
1642
 
1649
1643
  // src/DateField/DateInput.tsx
1650
- var import_react_aria_components24 = require("react-aria-components");
1644
+ var import_react_aria_components23 = require("react-aria-components");
1651
1645
  var import_system39 = require("@marigold/system");
1652
1646
 
1653
1647
  // src/DateField/DateSegment.tsx
1654
- var import_react_aria_components23 = require("react-aria-components");
1648
+ var import_react_aria_components22 = require("react-aria-components");
1655
1649
  var import_system38 = require("@marigold/system");
1656
1650
  var import_jsx_runtime43 = require("react/jsx-runtime");
1657
1651
  var _DateSegment = ({ segment, ...props }) => {
1658
1652
  return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
1659
- import_react_aria_components23.DateSegment,
1653
+ import_react_aria_components22.DateSegment,
1660
1654
  {
1661
1655
  ...props,
1662
1656
  segment,
@@ -1685,8 +1679,8 @@ var _DateSegment = ({ segment, ...props }) => {
1685
1679
  var import_jsx_runtime44 = require("react/jsx-runtime");
1686
1680
  var _DateInput = ({ variant, size, action, ...props }) => {
1687
1681
  const classNames2 = (0, import_system39.useClassNames)({ component: "DateField", variant, size });
1688
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(import_react_aria_components24.Group, { className: classNames2.field, children: [
1689
- /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_react_aria_components24.DateInput, { className: "flex flex-1 items-center", ...props, children: (segment) => /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(_DateSegment, { className: classNames2.segment, segment }) }),
1682
+ return /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(import_react_aria_components23.Group, { className: classNames2.field, children: [
1683
+ /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_react_aria_components23.DateInput, { className: "flex flex-1 items-center", ...props, children: (segment) => /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(_DateSegment, { className: classNames2.segment, segment }) }),
1690
1684
  action ? action : /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("div", { className: "flex items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
1691
1685
  "svg",
1692
1686
  {
@@ -1703,7 +1697,7 @@ var _DateInput = ({ variant, size, action, ...props }) => {
1703
1697
 
1704
1698
  // src/DateField/DateField.tsx
1705
1699
  var import_jsx_runtime45 = require("react/jsx-runtime");
1706
- var _DateField = (0, import_react25.forwardRef)(
1700
+ var _DateField = (0, import_react24.forwardRef)(
1707
1701
  ({
1708
1702
  variant,
1709
1703
  size,
@@ -1724,7 +1718,7 @@ var _DateField = (0, import_react25.forwardRef)(
1724
1718
  return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
1725
1719
  FieldBase,
1726
1720
  {
1727
- as: import_react_aria_components25.DateField,
1721
+ as: import_react_aria_components24.DateField,
1728
1722
  variant,
1729
1723
  size,
1730
1724
  ref,
@@ -1736,31 +1730,31 @@ var _DateField = (0, import_react25.forwardRef)(
1736
1730
  );
1737
1731
 
1738
1732
  // src/Calendar/Calendar.tsx
1739
- var import_react30 = require("react");
1740
- var import_react_aria_components32 = require("react-aria-components");
1733
+ var import_react29 = require("react");
1734
+ var import_react_aria_components31 = require("react-aria-components");
1741
1735
  var import_system44 = require("@marigold/system");
1742
1736
 
1743
1737
  // src/Calendar/CalendarGrid.tsx
1744
- var import_react_aria_components27 = require("react-aria-components");
1738
+ var import_react_aria_components26 = require("react-aria-components");
1745
1739
  var import_system41 = require("@marigold/system");
1746
1740
 
1747
1741
  // src/Calendar/CalendarGridHeader.tsx
1748
1742
  var import_date = require("@internationalized/date");
1749
- var import_react26 = require("react");
1750
- var import_react_aria_components26 = require("react-aria-components");
1743
+ var import_react25 = require("react");
1744
+ var import_react_aria_components25 = require("react-aria-components");
1751
1745
  var import_calendar = require("@react-aria/calendar");
1752
1746
  var import_i18n3 = require("@react-aria/i18n");
1753
1747
  var import_system40 = require("@marigold/system");
1754
1748
  var import_jsx_runtime46 = require("react/jsx-runtime");
1755
1749
  function CalendarGridHeader(props) {
1756
- const state = (0, import_react26.useContext)(import_react_aria_components26.CalendarStateContext);
1750
+ const state = (0, import_react25.useContext)(import_react_aria_components25.CalendarStateContext);
1757
1751
  const { headerProps } = (0, import_calendar.useCalendarGrid)(props, state);
1758
1752
  const { locale } = (0, import_i18n3.useLocale)();
1759
1753
  const dayFormatter = (0, import_i18n3.useDateFormatter)({
1760
1754
  weekday: "short",
1761
1755
  timeZone: state.timeZone
1762
1756
  });
1763
- const weekDays = (0, import_react26.useMemo)(() => {
1757
+ const weekDays = (0, import_react25.useMemo)(() => {
1764
1758
  const weekStart = (0, import_date.startOfWeek)((0, import_date.today)(state.timeZone), locale);
1765
1759
  return [...new Array(7).keys()].map((index) => {
1766
1760
  const date = weekStart.add({ days: index });
@@ -1776,10 +1770,10 @@ function CalendarGridHeader(props) {
1776
1770
  var import_jsx_runtime47 = require("react/jsx-runtime");
1777
1771
  var _CalendarGrid = () => {
1778
1772
  const classNames2 = (0, import_system41.useClassNames)({ component: "Calendar" });
1779
- return /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(import_react_aria_components27.CalendarGrid, { className: classNames2.calendarGrid, children: [
1773
+ return /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(import_react_aria_components26.CalendarGrid, { className: classNames2.calendarGrid, children: [
1780
1774
  /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(CalendarGridHeader, {}),
1781
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_react_aria_components27.CalendarGridBody, { children: (date) => /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
1782
- import_react_aria_components27.CalendarCell,
1775
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_react_aria_components26.CalendarGridBody, { children: (date) => /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
1776
+ import_react_aria_components26.CalendarCell,
1783
1777
  {
1784
1778
  date,
1785
1779
  className: (0, import_system41.cn)(
@@ -1792,8 +1786,8 @@ var _CalendarGrid = () => {
1792
1786
  };
1793
1787
 
1794
1788
  // src/Calendar/CalendarListBox.tsx
1795
- var import_react27 = require("react");
1796
- var import_react_aria_components28 = require("react-aria-components");
1789
+ var import_react26 = require("react");
1790
+ var import_react_aria_components27 = require("react-aria-components");
1797
1791
  var import_icons = require("@marigold/icons");
1798
1792
  var import_system42 = require("@marigold/system");
1799
1793
 
@@ -1820,7 +1814,7 @@ function CalendarListBox({
1820
1814
  isDisabled,
1821
1815
  setSelectedDropdown
1822
1816
  }) {
1823
- const state = (0, import_react27.useContext)(import_react_aria_components28.CalendarStateContext);
1817
+ const state = (0, import_react26.useContext)(import_react_aria_components27.CalendarStateContext);
1824
1818
  const months = useFormattedMonths(state.timeZone, state.focusedDate);
1825
1819
  const buttonStyles = "flex items-center justify-between gap-1 overflow-hidden";
1826
1820
  const { select: selectClassNames } = (0, import_system42.useClassNames)({ component: "Select" });
@@ -1840,7 +1834,7 @@ function CalendarListBox({
1840
1834
  }
1841
1835
 
1842
1836
  // src/Calendar/MonthControls.tsx
1843
- var import_react_aria_components29 = require("react-aria-components");
1837
+ var import_react_aria_components28 = require("react-aria-components");
1844
1838
  var import_icons2 = require("@marigold/icons");
1845
1839
  var import_system43 = require("@marigold/system");
1846
1840
  var import_jsx_runtime49 = require("react/jsx-runtime");
@@ -1856,7 +1850,7 @@ function MonthControls() {
1856
1850
  ),
1857
1851
  children: [
1858
1852
  /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
1859
- import_react_aria_components29.Button,
1853
+ import_react_aria_components28.Button,
1860
1854
  {
1861
1855
  className: (0, import_system43.cn)(
1862
1856
  "inline-flex items-center justify-center gap-[0.5ch]",
@@ -1867,7 +1861,7 @@ function MonthControls() {
1867
1861
  }
1868
1862
  ),
1869
1863
  /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
1870
- import_react_aria_components29.Button,
1864
+ import_react_aria_components28.Button,
1871
1865
  {
1872
1866
  className: (0, import_system43.cn)(
1873
1867
  "inline-flex items-center justify-center gap-[0.5ch]",
@@ -1884,11 +1878,11 @@ function MonthControls() {
1884
1878
  var MonthControls_default = MonthControls;
1885
1879
 
1886
1880
  // src/Calendar/MonthListBox.tsx
1887
- var import_react28 = require("react");
1888
- var import_react_aria_components30 = require("react-aria-components");
1881
+ var import_react27 = require("react");
1882
+ var import_react_aria_components29 = require("react-aria-components");
1889
1883
  var import_jsx_runtime50 = require("react/jsx-runtime");
1890
1884
  var MonthListBox = ({ setSelectedDropdown }) => {
1891
- const state = (0, import_react28.useContext)(import_react_aria_components30.CalendarStateContext);
1885
+ const state = (0, import_react27.useContext)(import_react_aria_components29.CalendarStateContext);
1892
1886
  const months = useFormattedMonths(state.timeZone, state.focusedDate);
1893
1887
  let onChange = (index) => {
1894
1888
  let value = Number(index) + 1;
@@ -1922,12 +1916,12 @@ var MonthListBox = ({ setSelectedDropdown }) => {
1922
1916
  var MonthListBox_default = MonthListBox;
1923
1917
 
1924
1918
  // src/Calendar/YearListBox.tsx
1925
- var import_react29 = require("react");
1926
- var import_react_aria_components31 = require("react-aria-components");
1919
+ var import_react28 = require("react");
1920
+ var import_react_aria_components30 = require("react-aria-components");
1927
1921
  var import_i18n5 = require("@react-aria/i18n");
1928
1922
  var import_jsx_runtime51 = require("react/jsx-runtime");
1929
1923
  var YearListBox = ({ setSelectedDropdown }) => {
1930
- const state = (0, import_react29.useContext)(import_react_aria_components31.CalendarStateContext);
1924
+ const state = (0, import_react28.useContext)(import_react_aria_components30.CalendarStateContext);
1931
1925
  const years = [];
1932
1926
  let formatter = (0, import_i18n5.useDateFormatter)({
1933
1927
  year: "numeric",
@@ -1940,8 +1934,8 @@ var YearListBox = ({ setSelectedDropdown }) => {
1940
1934
  formatted: formatter.format(date.toDate(state.timeZone))
1941
1935
  });
1942
1936
  }
1943
- const activeButtonRef = (0, import_react29.useRef)(null);
1944
- (0, import_react29.useEffect)(() => {
1937
+ const activeButtonRef = (0, import_react28.useRef)(null);
1938
+ (0, import_react28.useEffect)(() => {
1945
1939
  if (activeButtonRef.current) {
1946
1940
  const activeButton = activeButtonRef.current;
1947
1941
  activeButton == null ? void 0 : activeButton.scrollIntoView({
@@ -2006,13 +2000,13 @@ var _Calendar = ({
2006
2000
  ...rest
2007
2001
  };
2008
2002
  const classNames2 = (0, import_system44.useClassNames)({ component: "Calendar" });
2009
- const [selectedDropdown, setSelectedDropdown] = (0, import_react30.useState)();
2003
+ const [selectedDropdown, setSelectedDropdown] = (0, import_react29.useState)();
2010
2004
  const ViewMap = {
2011
2005
  month: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(MonthListBox_default, { setSelectedDropdown }),
2012
2006
  year: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(YearListBox_default, { setSelectedDropdown })
2013
2007
  };
2014
2008
  return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
2015
- import_react_aria_components32.Calendar,
2009
+ import_react_aria_components31.Calendar,
2016
2010
  {
2017
2011
  className: (0, import_system44.cn)(
2018
2012
  "flex min-h-[350px] w-[360px] flex-col rounded-sm p-4",
@@ -2048,11 +2042,11 @@ var _Calendar = ({
2048
2042
  };
2049
2043
 
2050
2044
  // src/DatePicker/DatePicker.tsx
2051
- var import_react31 = __toESM(require("react"));
2052
- var import_react_aria_components33 = require("react-aria-components");
2045
+ var import_react30 = __toESM(require("react"));
2046
+ var import_react_aria_components32 = require("react-aria-components");
2053
2047
  var import_system45 = require("@marigold/system");
2054
2048
  var import_jsx_runtime53 = require("react/jsx-runtime");
2055
- var _DatePicker = import_react31.default.forwardRef(
2049
+ var _DatePicker = import_react30.default.forwardRef(
2056
2050
  ({
2057
2051
  disabled,
2058
2052
  required,
@@ -2081,7 +2075,7 @@ var _DatePicker = import_react31.default.forwardRef(
2081
2075
  return /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(
2082
2076
  FieldBase,
2083
2077
  {
2084
- as: import_react_aria_components33.DatePicker,
2078
+ as: import_react_aria_components32.DatePicker,
2085
2079
  variant,
2086
2080
  size,
2087
2081
  ...props,
@@ -2134,18 +2128,18 @@ var Inset = ({ space, spaceX, spaceY, children }) => /* @__PURE__ */ (0, import_
2134
2128
  );
2135
2129
 
2136
2130
  // src/Link/Link.tsx
2137
- var import_react32 = require("react");
2138
- var import_react_aria_components34 = require("react-aria-components");
2131
+ var import_react31 = require("react");
2132
+ var import_react_aria_components33 = require("react-aria-components");
2139
2133
  var import_system47 = require("@marigold/system");
2140
2134
  var import_jsx_runtime55 = require("react/jsx-runtime");
2141
- var _Link = (0, import_react32.forwardRef)(
2135
+ var _Link = (0, import_react31.forwardRef)(
2142
2136
  ({ variant, size, disabled, children, ...props }, ref) => {
2143
2137
  const classNames2 = (0, import_system47.useClassNames)({
2144
2138
  component: "Link",
2145
2139
  variant,
2146
2140
  size
2147
2141
  });
2148
- return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(import_react_aria_components34.Link, { ...props, ref, className: classNames2, isDisabled: disabled, children });
2142
+ return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(import_react_aria_components33.Link, { ...props, ref, className: classNames2, isDisabled: disabled, children });
2149
2143
  }
2150
2144
  );
2151
2145
 
@@ -2153,9 +2147,9 @@ var _Link = (0, import_react32.forwardRef)(
2153
2147
  var import_system48 = require("@marigold/system");
2154
2148
 
2155
2149
  // src/List/Context.ts
2156
- var import_react33 = require("react");
2157
- var ListContext = (0, import_react33.createContext)({});
2158
- var useListContext = () => (0, import_react33.useContext)(ListContext);
2150
+ var import_react32 = require("react");
2151
+ var ListContext = (0, import_react32.createContext)({});
2152
+ var useListContext = () => (0, import_react32.useContext)(ListContext);
2159
2153
 
2160
2154
  // src/List/ListItem.tsx
2161
2155
  var import_jsx_runtime56 = require("react/jsx-runtime");
@@ -2180,25 +2174,25 @@ var List = ({
2180
2174
  List.Item = ListItem;
2181
2175
 
2182
2176
  // src/Menu/Menu.tsx
2183
- var import_react_aria_components37 = require("react-aria-components");
2177
+ var import_react_aria_components36 = require("react-aria-components");
2184
2178
  var import_system51 = require("@marigold/system");
2185
2179
 
2186
2180
  // src/Menu/MenuItem.tsx
2187
- var import_react_aria_components35 = require("react-aria-components");
2181
+ var import_react_aria_components34 = require("react-aria-components");
2188
2182
  var import_system49 = require("@marigold/system");
2189
2183
  var import_jsx_runtime58 = require("react/jsx-runtime");
2190
2184
  var _MenuItem = ({ children, ...props }) => {
2191
2185
  const classNames2 = (0, import_system49.useClassNames)({ component: "Menu" });
2192
- return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_react_aria_components35.MenuItem, { ...props, className: classNames2.item, children });
2186
+ return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_react_aria_components34.MenuItem, { ...props, className: classNames2.item, children });
2193
2187
  };
2194
2188
 
2195
2189
  // src/Menu/MenuSection.tsx
2196
- var import_react_aria_components36 = require("react-aria-components");
2190
+ var import_react_aria_components35 = require("react-aria-components");
2197
2191
  var import_system50 = require("@marigold/system");
2198
2192
  var import_jsx_runtime59 = require("react/jsx-runtime");
2199
2193
  var _MenuSection = ({ children, title, ...props }) => {
2200
2194
  const className = (0, import_system50.useClassNames)({ component: "Menu" });
2201
- return /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(import_react_aria_components36.Section, { ...props, children: [
2195
+ return /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(import_react_aria_components35.Section, { ...props, children: [
2202
2196
  /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(_Header, { className: className.section, children: title }),
2203
2197
  children
2204
2198
  ] });
@@ -2217,16 +2211,16 @@ var _Menu = ({
2217
2211
  ...props
2218
2212
  }) => {
2219
2213
  const classNames2 = (0, import_system51.useClassNames)({ component: "Menu", variant, size });
2220
- return /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(import_react_aria_components37.MenuTrigger, { ...props, children: [
2214
+ return /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(import_react_aria_components36.MenuTrigger, { ...props, children: [
2221
2215
  /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(_Button, { variant: "menu", disabled, children: label }),
2222
- /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(_Popover, { open, placement, children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_react_aria_components37.Menu, { ...props, className: classNames2.container, children }) })
2216
+ /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(_Popover, { open, placement, children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_react_aria_components36.Menu, { ...props, className: classNames2.container, children }) })
2223
2217
  ] });
2224
2218
  };
2225
2219
  _Menu.Item = _MenuItem;
2226
2220
  _Menu.Section = _MenuSection;
2227
2221
 
2228
2222
  // src/Menu/ActionMenu.tsx
2229
- var import_react_aria_components38 = require("react-aria-components");
2223
+ var import_react_aria_components37 = require("react-aria-components");
2230
2224
  var import_system52 = require("@marigold/system");
2231
2225
  var import_jsx_runtime61 = require("react/jsx-runtime");
2232
2226
  var ActionMenu = ({
@@ -2236,9 +2230,9 @@ var ActionMenu = ({
2236
2230
  ...props
2237
2231
  }) => {
2238
2232
  const classNames2 = (0, import_system52.useClassNames)({ component: "Menu", variant, size });
2239
- return /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(import_react_aria_components38.MenuTrigger, { children: [
2233
+ return /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(import_react_aria_components37.MenuTrigger, { children: [
2240
2234
  /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(_Button, { variant: "menu", size: "small", disabled, children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(import_system52.SVG, { viewBox: "0 0 24 24", children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("path", { d: "M12.0117 7.47656C13.2557 7.47656 14.2734 6.45879 14.2734 5.21484C14.2734 3.9709 13.2557 2.95312 12.0117 2.95312C10.7678 2.95312 9.75 3.9709 9.75 5.21484C9.75 6.45879 10.7678 7.47656 12.0117 7.47656ZM12.0117 9.73828C10.7678 9.73828 9.75 10.7561 9.75 12C9.75 13.2439 10.7678 14.2617 12.0117 14.2617C13.2557 14.2617 14.2734 13.2439 14.2734 12C14.2734 10.7561 13.2557 9.73828 12.0117 9.73828ZM12.0117 16.5234C10.7678 16.5234 9.75 17.5412 9.75 18.7852C9.75 20.0291 10.7678 21.0469 12.0117 21.0469C13.2557 21.0469 14.2734 20.0291 14.2734 18.7852C14.2734 17.5412 13.2557 16.5234 12.0117 16.5234Z" }) }) }),
2241
- /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(_Popover, { children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(import_react_aria_components38.Menu, { ...props, className: classNames2.container, children: props.children }) })
2235
+ /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(_Popover, { children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(import_react_aria_components37.Menu, { ...props, className: classNames2.container, children: props.children }) })
2242
2236
  ] });
2243
2237
  };
2244
2238
 
@@ -2246,9 +2240,9 @@ var ActionMenu = ({
2246
2240
  var import_system55 = require("@marigold/system");
2247
2241
 
2248
2242
  // src/SectionMessage/Context.tsx
2249
- var import_react34 = require("react");
2250
- var SectionMessageContext = (0, import_react34.createContext)({});
2251
- var useSectionMessageContext = () => (0, import_react34.useContext)(SectionMessageContext);
2243
+ var import_react33 = require("react");
2244
+ var SectionMessageContext = (0, import_react33.createContext)({});
2245
+ var useSectionMessageContext = () => (0, import_react33.useContext)(SectionMessageContext);
2252
2246
 
2253
2247
  // src/SectionMessage/SectionMessageContent.tsx
2254
2248
  var import_system53 = require("@marigold/system");
@@ -2374,15 +2368,15 @@ SectionMessage.Title = SectionMessageTitle;
2374
2368
  SectionMessage.Content = SectionMessageContent;
2375
2369
 
2376
2370
  // src/Multiselect/Multiselect.tsx
2377
- var import_react35 = require("react");
2371
+ var import_react34 = require("react");
2378
2372
  var import_data2 = require("@react-stately/data");
2379
2373
 
2380
2374
  // src/TagGroup/Tag.tsx
2381
- var import_react_aria_components40 = require("react-aria-components");
2375
+ var import_react_aria_components39 = require("react-aria-components");
2382
2376
  var import_system57 = require("@marigold/system");
2383
2377
 
2384
2378
  // src/TagGroup/TagGroup.tsx
2385
- var import_react_aria_components39 = require("react-aria-components");
2379
+ var import_react_aria_components38 = require("react-aria-components");
2386
2380
  var import_system56 = require("@marigold/system");
2387
2381
  var import_jsx_runtime65 = require("react/jsx-runtime");
2388
2382
  var _TagGroup = ({
@@ -2395,8 +2389,8 @@ var _TagGroup = ({
2395
2389
  ...rest
2396
2390
  }) => {
2397
2391
  const classNames2 = (0, import_system56.useClassNames)({ component: "Tag", variant, size });
2398
- return /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(FieldBase, { as: import_react_aria_components39.TagGroup, ...rest, children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
2399
- import_react_aria_components39.TagList,
2392
+ return /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(FieldBase, { as: import_react_aria_components38.TagGroup, ...rest, children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
2393
+ import_react_aria_components38.TagList,
2400
2394
  {
2401
2395
  items,
2402
2396
  className: classNames2.listItems,
@@ -2409,13 +2403,13 @@ var _TagGroup = ({
2409
2403
  // src/TagGroup/Tag.tsx
2410
2404
  var import_jsx_runtime66 = require("react/jsx-runtime");
2411
2405
  var CloseButton2 = ({ className }) => {
2412
- return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(import_react_aria_components40.Button, { slot: "remove", className, children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("svg", { viewBox: "0 0 20 20", fill: "currentColor", width: 20, height: 20, children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("path", { d: "M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z" }) }) });
2406
+ return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(import_react_aria_components39.Button, { slot: "remove", className, children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("svg", { viewBox: "0 0 20 20", fill: "currentColor", width: 20, height: 20, children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("path", { d: "M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z" }) }) });
2413
2407
  };
2414
2408
  var _Tag = ({ variant, size, children, ...props }) => {
2415
2409
  let textValue = typeof children === "string" ? children : void 0;
2416
2410
  const classNames2 = (0, import_system57.useClassNames)({ component: "Tag", variant, size });
2417
2411
  return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
2418
- import_react_aria_components40.Tag,
2412
+ import_react_aria_components39.Tag,
2419
2413
  {
2420
2414
  textValue,
2421
2415
  ...props,
@@ -2442,7 +2436,7 @@ var Multiselect = ({
2442
2436
  children,
2443
2437
  ...props
2444
2438
  }) => {
2445
- const items = import_react35.Children.map(children, ({ props: props2 }) => props2);
2439
+ const items = import_react34.Children.map(children, ({ props: props2 }) => props2);
2446
2440
  const list = (0, import_data2.useListData)({
2447
2441
  initialItems: items,
2448
2442
  initialSelectedKeys: props.defaultSelectedKeys,
@@ -2461,7 +2455,7 @@ var Multiselect = ({
2461
2455
  }
2462
2456
  list.setSelectedKeys(next);
2463
2457
  };
2464
- const [value, setValue] = (0, import_react35.useState)("");
2458
+ const [value, setValue] = (0, import_react34.useState)("");
2465
2459
  const selectItem = (key) => {
2466
2460
  if (list.selectedKeys !== "all") {
2467
2461
  const next = list.selectedKeys.add(key);
@@ -2502,12 +2496,12 @@ var Multiselect = ({
2502
2496
  Multiselect.Item = Item2;
2503
2497
 
2504
2498
  // src/NumberField/NumberField.tsx
2505
- var import_react36 = require("react");
2506
- var import_react_aria_components42 = require("react-aria-components");
2499
+ var import_react35 = require("react");
2500
+ var import_react_aria_components41 = require("react-aria-components");
2507
2501
  var import_system59 = require("@marigold/system");
2508
2502
 
2509
2503
  // src/NumberField/StepButton.tsx
2510
- var import_react_aria_components41 = require("react-aria-components");
2504
+ var import_react_aria_components40 = require("react-aria-components");
2511
2505
  var import_system58 = require("@marigold/system");
2512
2506
  var import_jsx_runtime68 = require("react/jsx-runtime");
2513
2507
  var Plus = () => /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("svg", { width: 16, height: 16, viewBox: "0 0 20 20", fill: "currentColor", children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
@@ -2529,7 +2523,7 @@ var Minus = () => /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("svg", { width:
2529
2523
  var _StepButton = ({ direction, className, ...props }) => {
2530
2524
  const Icon4 = direction === "up" ? Plus : Minus;
2531
2525
  return /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
2532
- import_react_aria_components41.Button,
2526
+ import_react_aria_components40.Button,
2533
2527
  {
2534
2528
  className: (0, import_system58.cn)(
2535
2529
  [
@@ -2546,7 +2540,7 @@ var _StepButton = ({ direction, className, ...props }) => {
2546
2540
 
2547
2541
  // src/NumberField/NumberField.tsx
2548
2542
  var import_jsx_runtime69 = require("react/jsx-runtime");
2549
- var _NumberField = (0, import_react36.forwardRef)(
2543
+ var _NumberField = (0, import_react35.forwardRef)(
2550
2544
  ({
2551
2545
  variant,
2552
2546
  size,
@@ -2570,7 +2564,7 @@ var _NumberField = (0, import_react36.forwardRef)(
2570
2564
  ...rest
2571
2565
  };
2572
2566
  const showStepper = !hideStepper;
2573
- return /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(FieldBase, { as: import_react_aria_components42.NumberField, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(import_react_aria_components42.Group, { className: (0, import_system59.cn)("flex items-stretch", classNames2.group), children: [
2567
+ return /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(FieldBase, { as: import_react_aria_components41.NumberField, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(import_react_aria_components41.Group, { className: (0, import_system59.cn)("flex items-stretch", classNames2.group), children: [
2574
2568
  showStepper && /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
2575
2569
  _StepButton,
2576
2570
  {
@@ -2601,19 +2595,19 @@ var _NumberField = (0, import_react36.forwardRef)(
2601
2595
  );
2602
2596
 
2603
2597
  // src/Radio/Radio.tsx
2604
- var import_react38 = require("react");
2605
- var import_react_aria_components44 = require("react-aria-components");
2598
+ var import_react37 = require("react");
2599
+ var import_react_aria_components43 = require("react-aria-components");
2606
2600
  var import_system61 = require("@marigold/system");
2607
2601
 
2608
2602
  // src/Radio/Context.ts
2609
- var import_react37 = require("react");
2610
- var RadioGroupContext = (0, import_react37.createContext)(
2603
+ var import_react36 = require("react");
2604
+ var RadioGroupContext = (0, import_react36.createContext)(
2611
2605
  null
2612
2606
  );
2613
- var useRadioGroupContext = () => (0, import_react37.useContext)(RadioGroupContext);
2607
+ var useRadioGroupContext = () => (0, import_react36.useContext)(RadioGroupContext);
2614
2608
 
2615
2609
  // src/Radio/RadioGroup.tsx
2616
- var import_react_aria_components43 = require("react-aria-components");
2610
+ var import_react_aria_components42 = require("react-aria-components");
2617
2611
  var import_system60 = require("@marigold/system");
2618
2612
  var import_jsx_runtime70 = require("react/jsx-runtime");
2619
2613
  var _RadioGroup = ({
@@ -2642,7 +2636,7 @@ var _RadioGroup = ({
2642
2636
  return /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
2643
2637
  FieldBase,
2644
2638
  {
2645
- as: import_react_aria_components43.RadioGroup,
2639
+ as: import_react_aria_components42.RadioGroup,
2646
2640
  width,
2647
2641
  label,
2648
2642
  description,
@@ -2683,7 +2677,7 @@ var Icon3 = ({ checked, className, ...props }) => /* @__PURE__ */ (0, import_jsx
2683
2677
  children: checked ? /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(Dot, {}) : null
2684
2678
  }
2685
2679
  );
2686
- var _Radio = (0, import_react38.forwardRef)(
2680
+ var _Radio = (0, import_react37.forwardRef)(
2687
2681
  ({ value, disabled, width, children, ...props }, ref) => {
2688
2682
  const { variant, size, width: groupWidth } = useRadioGroupContext();
2689
2683
  const classNames2 = (0, import_system61.useClassNames)({
@@ -2692,7 +2686,7 @@ var _Radio = (0, import_react38.forwardRef)(
2692
2686
  size: size || props.size
2693
2687
  });
2694
2688
  return /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
2695
- import_react_aria_components44.Radio,
2689
+ import_react_aria_components43.Radio,
2696
2690
  {
2697
2691
  ref,
2698
2692
  className: (0, import_system61.cn)(
@@ -2724,10 +2718,10 @@ var _Radio = (0, import_react38.forwardRef)(
2724
2718
  _Radio.Group = _RadioGroup;
2725
2719
 
2726
2720
  // src/SearchField/SearchField.tsx
2727
- var import_react39 = require("react");
2728
- var import_react_aria_components45 = require("react-aria-components");
2721
+ var import_react38 = require("react");
2722
+ var import_react_aria_components44 = require("react-aria-components");
2729
2723
  var import_jsx_runtime72 = require("react/jsx-runtime");
2730
- var _SearchField = (0, import_react39.forwardRef)(
2724
+ var _SearchField = (0, import_react38.forwardRef)(
2731
2725
  ({ disabled, required, readOnly, error, action, ...rest }, ref) => {
2732
2726
  const props = {
2733
2727
  ...rest,
@@ -2736,7 +2730,7 @@ var _SearchField = (0, import_react39.forwardRef)(
2736
2730
  isReadOnly: readOnly,
2737
2731
  isInvalid: error
2738
2732
  };
2739
- return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(FieldBase, { as: import_react_aria_components45.SearchField, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
2733
+ return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(FieldBase, { as: import_react_aria_components44.SearchField, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
2740
2734
  SearchInput,
2741
2735
  {
2742
2736
  ref,
@@ -2747,11 +2741,11 @@ var _SearchField = (0, import_react39.forwardRef)(
2747
2741
  );
2748
2742
 
2749
2743
  // src/Select/Select.tsx
2750
- var import_react40 = require("react");
2751
- var import_react_aria_components46 = require("react-aria-components");
2744
+ var import_react39 = require("react");
2745
+ var import_react_aria_components45 = require("react-aria-components");
2752
2746
  var import_system62 = require("@marigold/system");
2753
2747
  var import_jsx_runtime73 = require("react/jsx-runtime");
2754
- var _Select = (0, import_react40.forwardRef)(
2748
+ var _Select = (0, import_react39.forwardRef)(
2755
2749
  ({
2756
2750
  disabled,
2757
2751
  required,
@@ -2772,50 +2766,61 @@ var _Select = (0, import_react40.forwardRef)(
2772
2766
  ...rest
2773
2767
  };
2774
2768
  const classNames2 = (0, import_system62.useClassNames)({ component: "Select", variant, size });
2775
- return /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)(FieldBase, { isOpen: true, as: import_react_aria_components46.Select, ref, ...props, children: [
2776
- /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)(
2777
- import_react_aria_components46.Button,
2778
- {
2779
- className: (0, import_system62.cn)(
2780
- "flex w-full items-center justify-between gap-1 overflow-hidden",
2781
- classNames2.select
2769
+ return /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)(
2770
+ FieldBase,
2771
+ {
2772
+ isOpen: true,
2773
+ as: import_react_aria_components45.Select,
2774
+ ref,
2775
+ variant,
2776
+ size,
2777
+ ...props,
2778
+ children: [
2779
+ /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)(
2780
+ import_react_aria_components45.Button,
2781
+ {
2782
+ className: (0, import_system62.cn)(
2783
+ "flex w-full items-center justify-between gap-1 overflow-hidden",
2784
+ classNames2.select
2785
+ ),
2786
+ children: [
2787
+ /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(import_react_aria_components45.SelectValue, {}),
2788
+ /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(ChevronDown, { className: (0, import_system62.cn)("size-4", classNames2.icon) })
2789
+ ]
2790
+ }
2782
2791
  ),
2783
- children: [
2784
- /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(import_react_aria_components46.SelectValue, {}),
2785
- /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(ChevronDown, { className: "size-4" })
2786
- ]
2787
- }
2788
- ),
2789
- /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(_Popover, { children: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(_ListBox, { items, children: props.children }) })
2790
- ] });
2792
+ /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(_Popover, { children: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(_ListBox, { items, children: props.children }) })
2793
+ ]
2794
+ }
2795
+ );
2791
2796
  }
2792
2797
  );
2793
2798
  _Select.Option = _ListBox.Item;
2794
2799
  _Select.Section = _ListBox.Section;
2795
2800
 
2796
2801
  // src/SelectList/SelectList.tsx
2797
- var import_react43 = require("react");
2798
- var import_react_aria_components48 = require("react-aria-components");
2802
+ var import_react42 = require("react");
2803
+ var import_react_aria_components47 = require("react-aria-components");
2799
2804
  var import_system64 = require("@marigold/system");
2800
2805
 
2801
2806
  // src/SelectList/Context.ts
2802
- var import_react41 = require("react");
2803
- var SelectListContext = (0, import_react41.createContext)(
2807
+ var import_react40 = require("react");
2808
+ var SelectListContext = (0, import_react40.createContext)(
2804
2809
  {}
2805
2810
  );
2806
- var useSelectListContext = () => (0, import_react41.useContext)(SelectListContext);
2811
+ var useSelectListContext = () => (0, import_react40.useContext)(SelectListContext);
2807
2812
 
2808
2813
  // src/SelectList/SelectListItem.tsx
2809
- var import_react42 = require("react");
2810
- var import_react_aria_components47 = require("react-aria-components");
2814
+ var import_react41 = require("react");
2815
+ var import_react_aria_components46 = require("react-aria-components");
2811
2816
  var import_system63 = require("@marigold/system");
2812
2817
  var import_jsx_runtime74 = require("react/jsx-runtime");
2813
- var _SelectListItem = (0, import_react42.forwardRef)(
2818
+ var _SelectListItem = (0, import_react41.forwardRef)(
2814
2819
  ({ children, ...props }, ref) => {
2815
2820
  let textValue = typeof children === "string" ? children : void 0;
2816
2821
  const { classNames: classNames2 } = useSelectListContext();
2817
2822
  return /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
2818
- import_react_aria_components47.GridListItem,
2823
+ import_react_aria_components46.GridListItem,
2819
2824
  {
2820
2825
  textValue,
2821
2826
  ...props,
@@ -2832,7 +2837,7 @@ var _SelectListItem = (0, import_react42.forwardRef)(
2832
2837
 
2833
2838
  // src/SelectList/SelectList.tsx
2834
2839
  var import_jsx_runtime75 = require("react/jsx-runtime");
2835
- var _SelectList = (0, import_react43.forwardRef)(
2840
+ var _SelectList = (0, import_react42.forwardRef)(
2836
2841
  ({ onChange, ...rest }, ref) => {
2837
2842
  const classNames2 = (0, import_system64.useClassNames)({ component: "ListBox" });
2838
2843
  const props = {
@@ -2840,7 +2845,7 @@ var _SelectList = (0, import_react43.forwardRef)(
2840
2845
  ...rest
2841
2846
  };
2842
2847
  return /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(SelectListContext.Provider, { value: { classNames: classNames2 }, children: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("div", { className: classNames2.container, children: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
2843
- import_react_aria_components48.GridList,
2848
+ import_react_aria_components47.GridList,
2844
2849
  {
2845
2850
  ...props,
2846
2851
  ref,
@@ -2874,11 +2879,11 @@ var Scrollable = ({
2874
2879
  );
2875
2880
 
2876
2881
  // src/Slider/Slider.tsx
2877
- var import_react44 = require("react");
2878
- var import_react_aria_components49 = require("react-aria-components");
2882
+ var import_react43 = require("react");
2883
+ var import_react_aria_components48 = require("react-aria-components");
2879
2884
  var import_system66 = require("@marigold/system");
2880
2885
  var import_jsx_runtime77 = require("react/jsx-runtime");
2881
- var _Slider = (0, import_react44.forwardRef)(
2886
+ var _Slider = (0, import_react43.forwardRef)(
2882
2887
  ({
2883
2888
  thumbLabels,
2884
2889
  variant,
@@ -2897,7 +2902,7 @@ var _Slider = (0, import_react44.forwardRef)(
2897
2902
  ...rest
2898
2903
  };
2899
2904
  return /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)(
2900
- import_react_aria_components49.Slider,
2905
+ import_react_aria_components48.Slider,
2901
2906
  {
2902
2907
  className: (0, import_system66.cn)(
2903
2908
  "grid grid-cols-[auto_1fr] gap-y-1",
@@ -2908,13 +2913,13 @@ var _Slider = (0, import_react44.forwardRef)(
2908
2913
  ...props,
2909
2914
  children: [
2910
2915
  /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(_Label, { children: props.children }),
2911
- /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(import_react_aria_components49.SliderOutput, { className: (0, import_system66.cn)("flex justify-end", classNames2.output), children: ({ state }) => state.values.map((_, i) => state.getThumbValueLabel(i)).join(" \u2013 ") }),
2916
+ /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(import_react_aria_components48.SliderOutput, { className: (0, import_system66.cn)("flex justify-end", classNames2.output), children: ({ state }) => state.values.map((_, i) => state.getThumbValueLabel(i)).join(" \u2013 ") }),
2912
2917
  /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
2913
- import_react_aria_components49.SliderTrack,
2918
+ import_react_aria_components48.SliderTrack,
2914
2919
  {
2915
2920
  className: (0, import_system66.cn)("relative col-span-2 h-2 w-full", classNames2.track),
2916
2921
  children: ({ state }) => state.values.map((_, i) => /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
2917
- import_react_aria_components49.SliderThumb,
2922
+ import_react_aria_components48.SliderThumb,
2918
2923
  {
2919
2924
  className: (0, import_system66.cn)("top-1/2 cursor-pointer", classNames2.thumb),
2920
2925
  index: i,
@@ -2932,7 +2937,7 @@ var _Slider = (0, import_react44.forwardRef)(
2932
2937
 
2933
2938
  // src/Split/Split.tsx
2934
2939
  var import_jsx_runtime78 = require("react/jsx-runtime");
2935
- var Split = (props) => /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("div", { ...props, role: "separator", className: "grow" });
2940
+ var Split = () => /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("div", { role: "separator", className: "grow" });
2936
2941
 
2937
2942
  // src/Stack/Stack.tsx
2938
2943
  var import_system67 = require("@marigold/system");
@@ -2963,11 +2968,11 @@ var Stack = ({
2963
2968
  };
2964
2969
 
2965
2970
  // src/Switch/Switch.tsx
2966
- var import_react45 = require("react");
2967
- var import_react_aria_components50 = require("react-aria-components");
2971
+ var import_react44 = require("react");
2972
+ var import_react_aria_components49 = require("react-aria-components");
2968
2973
  var import_system68 = require("@marigold/system");
2969
2974
  var import_jsx_runtime80 = require("react/jsx-runtime");
2970
- var _Switch = (0, import_react45.forwardRef)(
2975
+ var _Switch = (0, import_react44.forwardRef)(
2971
2976
  ({
2972
2977
  variant,
2973
2978
  size,
@@ -2986,7 +2991,7 @@ var _Switch = (0, import_react45.forwardRef)(
2986
2991
  ...rest
2987
2992
  };
2988
2993
  return /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)(
2989
- import_react_aria_components50.Switch,
2994
+ import_react_aria_components49.Switch,
2990
2995
  {
2991
2996
  ...props,
2992
2997
  ref,
@@ -3002,7 +3007,7 @@ var _Switch = (0, import_react45.forwardRef)(
3002
3007
  "div",
3003
3008
  {
3004
3009
  className: (0, import_system68.cn)(
3005
- "h-6 w-12 basis-12 rounded-3xl group-disabled/switch:cursor-not-allowed ",
3010
+ "h-6 w-12 basis-12 rounded-3xl group-disabled/switch:cursor-not-allowed",
3006
3011
  classNames2.track
3007
3012
  ),
3008
3013
  children: /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
@@ -3027,33 +3032,45 @@ var _Switch = (0, import_react45.forwardRef)(
3027
3032
  );
3028
3033
 
3029
3034
  // src/Table/Table.tsx
3030
- var import_react53 = require("react");
3035
+ var import_react52 = require("react");
3031
3036
  var import_table9 = require("@react-aria/table");
3032
3037
  var import_table10 = require("@react-stately/table");
3033
- var import_system75 = require("@marigold/system");
3038
+ var import_system74 = require("@marigold/system");
3034
3039
 
3035
3040
  // src/Table/Context.tsx
3036
- var import_react46 = require("react");
3037
- var TableContext = (0, import_react46.createContext)({});
3038
- var useTableContext = () => (0, import_react46.useContext)(TableContext);
3041
+ var import_react45 = require("react");
3042
+ var TableContext = (0, import_react45.createContext)({});
3043
+ var useTableContext = () => (0, import_react45.useContext)(TableContext);
3039
3044
 
3040
3045
  // src/Table/TableBody.tsx
3041
3046
  var import_table = require("@react-aria/table");
3042
3047
  var import_jsx_runtime81 = require("react/jsx-runtime");
3043
- var TableBody = ({ children }) => {
3048
+ var TableBody = ({ children, emptyState }) => {
3044
3049
  const { rowGroupProps } = (0, import_table.useTableRowGroup)();
3050
+ const { state, classNames: classNames2 } = useTableContext();
3051
+ if (state.collection.size === 0 && emptyState) {
3052
+ return /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("tr", { className: classNames2 == null ? void 0 : classNames2.row, role: "row", children: /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
3053
+ "td",
3054
+ {
3055
+ className: classNames2 == null ? void 0 : classNames2.cell,
3056
+ colSpan: state.collection.size,
3057
+ role: "rowheader",
3058
+ children: emptyState()
3059
+ }
3060
+ ) });
3061
+ }
3045
3062
  return /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("tbody", { ...rowGroupProps, children });
3046
3063
  };
3047
3064
 
3048
3065
  // src/Table/TableCell.tsx
3049
- var import_react47 = require("react");
3066
+ var import_react46 = require("react");
3050
3067
  var import_focus2 = require("@react-aria/focus");
3051
3068
  var import_table2 = require("@react-aria/table");
3052
3069
  var import_utils3 = require("@react-aria/utils");
3053
3070
  var import_system69 = require("@marigold/system");
3054
3071
  var import_jsx_runtime82 = require("react/jsx-runtime");
3055
3072
  var TableCell = ({ cell, align = "left" }) => {
3056
- const ref = (0, import_react47.useRef)(null);
3073
+ const ref = (0, import_react46.useRef)(null);
3057
3074
  const { interactive, state, classNames: classNames2 } = useTableContext();
3058
3075
  const disabled = state.disabledKeys.has(cell.parentKey);
3059
3076
  const { gridCellProps } = (0, import_table2.useTableCell)(
@@ -3088,7 +3105,7 @@ var TableCell = ({ cell, align = "left" }) => {
3088
3105
  };
3089
3106
 
3090
3107
  // src/Table/TableCheckboxCell.tsx
3091
- var import_react48 = require("react");
3108
+ var import_react47 = require("react");
3092
3109
  var import_focus3 = require("@react-aria/focus");
3093
3110
  var import_table3 = require("@react-aria/table");
3094
3111
  var import_utils4 = require("@react-aria/utils");
@@ -3117,7 +3134,7 @@ var mapCheckboxProps = ({
3117
3134
  // src/Table/TableCheckboxCell.tsx
3118
3135
  var import_jsx_runtime83 = require("react/jsx-runtime");
3119
3136
  var TableCheckboxCell = ({ cell }) => {
3120
- const ref = (0, import_react48.useRef)(null);
3137
+ const ref = (0, import_react47.useRef)(null);
3121
3138
  const { state, classNames: classNames2 } = useTableContext();
3122
3139
  const disabled = state.disabledKeys.has(cell.parentKey);
3123
3140
  const { gridCellProps } = (0, import_table3.useTableCell)(
@@ -3145,14 +3162,13 @@ var TableCheckboxCell = ({ cell }) => {
3145
3162
  };
3146
3163
 
3147
3164
  // src/Table/TableColumnHeader.tsx
3148
- var import_react49 = require("react");
3165
+ var import_react48 = require("react");
3149
3166
  var import_focus4 = require("@react-aria/focus");
3150
3167
  var import_interactions = require("@react-aria/interactions");
3151
3168
  var import_table4 = require("@react-aria/table");
3152
3169
  var import_utils6 = require("@react-aria/utils");
3153
3170
  var import_icons3 = require("@marigold/icons");
3154
3171
  var import_system71 = require("@marigold/system");
3155
- var import_system72 = require("@marigold/system");
3156
3172
  var import_jsx_runtime84 = require("react/jsx-runtime");
3157
3173
  var TableColumnHeader = ({
3158
3174
  column,
@@ -3160,7 +3176,7 @@ var TableColumnHeader = ({
3160
3176
  align = "left"
3161
3177
  }) => {
3162
3178
  var _a, _b;
3163
- const ref = (0, import_react49.useRef)(null);
3179
+ const ref = (0, import_react48.useRef)(null);
3164
3180
  const { state, classNames: classNames2 } = useTableContext();
3165
3181
  const { columnHeaderProps } = (0, import_table4.useTableColumnHeader)(
3166
3182
  {
@@ -3180,13 +3196,13 @@ var TableColumnHeader = ({
3180
3196
  {
3181
3197
  colSpan: column.colspan,
3182
3198
  ref,
3183
- className: (0, import_system71.cn)("cursor-default", import_system72.width[width], classNames2 == null ? void 0 : classNames2.header),
3199
+ className: (0, import_system71.cn)("cursor-default", import_system71.width[width], classNames2 == null ? void 0 : classNames2.header),
3184
3200
  ...(0, import_utils6.mergeProps)(columnHeaderProps, hoverProps, focusProps),
3185
3201
  ...stateProps,
3186
3202
  align,
3187
3203
  children: [
3188
3204
  column.rendered,
3189
- column.props.allowsSorting && (((_a = state.sortDescriptor) == null ? void 0 : _a.column) === column.key ? ((_b = state.sortDescriptor) == null ? void 0 : _b.direction) === "ascending" ? /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(import_icons3.SortUp, { className: "inline-block" }) : /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(import_icons3.SortDown, { className: "inline-block" }) : /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(import_icons3.SortDown, { className: "inline-block" }))
3205
+ column.props.allowsSorting && (((_a = state.sortDescriptor) == null ? void 0 : _a.column) === column.key ? ((_b = state.sortDescriptor) == null ? void 0 : _b.direction) === "ascending" ? /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(import_icons3.SortUp, { className: "inline-block" }) : /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(import_icons3.SortDown, { className: "inline-block" }) : /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("span", { className: "invisible", children: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(import_icons3.SortDown, { className: "inline-block" }) }))
3190
3206
  ]
3191
3207
  }
3192
3208
  );
@@ -3208,29 +3224,29 @@ var TableHeader = ({ stickyHeader, children }) => {
3208
3224
  };
3209
3225
 
3210
3226
  // src/Table/TableHeaderRow.tsx
3211
- var import_react50 = require("react");
3227
+ var import_react49 = require("react");
3212
3228
  var import_table6 = require("@react-aria/table");
3213
3229
  var import_jsx_runtime86 = require("react/jsx-runtime");
3214
3230
  var TableHeaderRow = ({ item, children }) => {
3215
3231
  const { state } = useTableContext();
3216
- const ref = (0, import_react50.useRef)(null);
3232
+ const ref = (0, import_react49.useRef)(null);
3217
3233
  const { rowProps } = (0, import_table6.useTableHeaderRow)({ node: item }, state, ref);
3218
3234
  return /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("tr", { ...rowProps, ref, children });
3219
3235
  };
3220
3236
 
3221
3237
  // src/Table/TableRow.tsx
3222
- var import_react51 = require("react");
3238
+ var import_react50 = require("react");
3223
3239
  var import_focus5 = require("@react-aria/focus");
3224
3240
  var import_interactions2 = require("@react-aria/interactions");
3225
3241
  var import_table7 = require("@react-aria/table");
3226
3242
  var import_utils7 = require("@react-aria/utils");
3227
- var import_system73 = require("@marigold/system");
3243
+ var import_system72 = require("@marigold/system");
3228
3244
  var import_jsx_runtime87 = require("react/jsx-runtime");
3229
3245
  var TableRow = ({ children, row }) => {
3230
- const ref = (0, import_react51.useRef)(null);
3246
+ const ref = (0, import_react50.useRef)(null);
3231
3247
  const { interactive, state, ...ctx } = useTableContext();
3232
3248
  const { variant, size } = row.props;
3233
- const classNames2 = (0, import_system73.useClassNames)({
3249
+ const classNames2 = (0, import_system72.useClassNames)({
3234
3250
  component: "Table",
3235
3251
  variant: variant || ctx.variant,
3236
3252
  size: size || ctx.size
@@ -3248,7 +3264,7 @@ var TableRow = ({ children, row }) => {
3248
3264
  const { hoverProps, isHovered } = (0, import_interactions2.useHover)({
3249
3265
  isDisabled: disabled || !interactive
3250
3266
  });
3251
- const stateProps = (0, import_system73.useStateProps)({
3267
+ const stateProps = (0, import_system72.useStateProps)({
3252
3268
  disabled,
3253
3269
  selected,
3254
3270
  hover: isHovered,
@@ -3259,7 +3275,7 @@ var TableRow = ({ children, row }) => {
3259
3275
  "tr",
3260
3276
  {
3261
3277
  ref,
3262
- className: (0, import_system73.cn)(
3278
+ className: (0, import_system72.cn)(
3263
3279
  [
3264
3280
  !interactive ? "cursor-text" : disabled ? "cursor-default" : "cursor-pointer"
3265
3281
  ],
@@ -3273,19 +3289,19 @@ var TableRow = ({ children, row }) => {
3273
3289
  };
3274
3290
 
3275
3291
  // src/Table/TableSelectAllCell.tsx
3276
- var import_react52 = require("react");
3292
+ var import_react51 = require("react");
3277
3293
  var import_focus6 = require("@react-aria/focus");
3278
3294
  var import_interactions3 = require("@react-aria/interactions");
3279
3295
  var import_table8 = require("@react-aria/table");
3280
3296
  var import_utils8 = require("@react-aria/utils");
3281
- var import_system74 = require("@marigold/system");
3297
+ var import_system73 = require("@marigold/system");
3282
3298
  var import_jsx_runtime88 = require("react/jsx-runtime");
3283
3299
  var TableSelectAllCell = ({
3284
3300
  column,
3285
3301
  width = "auto",
3286
3302
  align = "left"
3287
3303
  }) => {
3288
- const ref = (0, import_react52.useRef)(null);
3304
+ const ref = (0, import_react51.useRef)(null);
3289
3305
  const { state, classNames: classNames2 } = useTableContext();
3290
3306
  const { columnHeaderProps } = (0, import_table8.useTableColumnHeader)(
3291
3307
  {
@@ -3297,7 +3313,7 @@ var TableSelectAllCell = ({
3297
3313
  const { checkboxProps } = mapCheckboxProps((0, import_table8.useTableSelectAllCheckbox)(state));
3298
3314
  const { hoverProps, isHovered } = (0, import_interactions3.useHover)({});
3299
3315
  const { focusProps, isFocusVisible } = (0, import_focus6.useFocusRing)();
3300
- const stateProps = (0, import_system74.useStateProps)({
3316
+ const stateProps = (0, import_system73.useStateProps)({
3301
3317
  hover: isHovered,
3302
3318
  focusVisible: isFocusVisible
3303
3319
  });
@@ -3305,7 +3321,7 @@ var TableSelectAllCell = ({
3305
3321
  "th",
3306
3322
  {
3307
3323
  ref,
3308
- className: (0, import_system74.cn)(import_system74.width[width], [" leading-none"], classNames2 == null ? void 0 : classNames2.header),
3324
+ className: (0, import_system73.cn)(import_system73.width[width], ["leading-none"], classNames2 == null ? void 0 : classNames2.header),
3309
3325
  ...(0, import_utils8.mergeProps)(columnHeaderProps, hoverProps, focusProps),
3310
3326
  ...stateProps,
3311
3327
  align,
@@ -3323,10 +3339,11 @@ var Table = ({
3323
3339
  selectionMode = "none",
3324
3340
  disableKeyboardNavigation = false,
3325
3341
  stickyHeader,
3342
+ emptyState,
3326
3343
  ...props
3327
3344
  }) => {
3328
3345
  const interactive = selectionMode !== "none";
3329
- const tableRef = (0, import_react53.useRef)(null);
3346
+ const tableRef = (0, import_react52.useRef)(null);
3330
3347
  const state = (0, import_table10.useTableState)({
3331
3348
  ...props,
3332
3349
  selectionMode,
@@ -3337,7 +3354,7 @@ var Table = ({
3337
3354
  state.isKeyboardNavigationDisabled = disableKeyboardNavigation;
3338
3355
  }
3339
3356
  const { gridProps } = (0, import_table9.useTable)(props, state, tableRef);
3340
- const classNames2 = (0, import_system75.useClassNames)({
3357
+ const classNames2 = (0, import_system74.useClassNames)({
3341
3358
  component: "Table",
3342
3359
  variant,
3343
3360
  size
@@ -3351,7 +3368,7 @@ var Table = ({
3351
3368
  "table",
3352
3369
  {
3353
3370
  ref: tableRef,
3354
- className: (0, import_system75.cn)(
3371
+ className: (0, import_system74.cn)(
3355
3372
  "group/table",
3356
3373
  "border-collapse",
3357
3374
  stretch ? "table w-full" : "block",
@@ -3381,7 +3398,7 @@ var Table = ({
3381
3398
  );
3382
3399
  }
3383
3400
  ) }, headerRow.key)) }),
3384
- /* @__PURE__ */ (0, import_jsx_runtime89.jsxs)(TableBody, { children: [
3401
+ /* @__PURE__ */ (0, import_jsx_runtime89.jsxs)(TableBody, { emptyState, children: [
3385
3402
  ...collection.rows.map(
3386
3403
  (row) => row.type === "item" && /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(TableRow, { row, children: [...collection.getChildren(row.key)].map((cell, index) => {
3387
3404
  var _a, _b;
@@ -3410,7 +3427,7 @@ Table.Header = import_table10.TableHeader;
3410
3427
  Table.Row = import_table10.Row;
3411
3428
 
3412
3429
  // src/Text/Text.tsx
3413
- var import_system76 = require("@marigold/system");
3430
+ var import_system75 = require("@marigold/system");
3414
3431
  var import_jsx_runtime90 = require("react/jsx-runtime");
3415
3432
  var Text2 = ({
3416
3433
  variant,
@@ -3424,8 +3441,8 @@ var Text2 = ({
3424
3441
  children,
3425
3442
  ...props
3426
3443
  }) => {
3427
- const theme = (0, import_system76.useTheme)();
3428
- const classNames2 = (0, import_system76.useClassNames)({
3444
+ const theme = (0, import_system75.useTheme)();
3445
+ const classNames2 = (0, import_system75.useClassNames)({
3429
3446
  component: "Text",
3430
3447
  variant,
3431
3448
  size
@@ -3434,17 +3451,17 @@ var Text2 = ({
3434
3451
  "p",
3435
3452
  {
3436
3453
  ...props,
3437
- className: (0, import_system76.cn)(
3454
+ className: (0, import_system75.cn)(
3438
3455
  "text-[--color] outline-[--outline]",
3439
3456
  classNames2,
3440
- fontStyle && import_system76.textStyle[fontStyle],
3441
- align && import_system76.textAlign[align],
3442
- cursor && import_system76.cursorStyle[cursor],
3443
- weight && import_system76.fontWeight[weight],
3444
- fontSize && import_system76.textSize[fontSize]
3457
+ fontStyle && import_system75.textStyle[fontStyle],
3458
+ align && import_system75.textAlign[align],
3459
+ cursor && import_system75.cursorStyle[cursor],
3460
+ weight && import_system75.fontWeight[weight],
3461
+ fontSize && import_system75.textSize[fontSize]
3445
3462
  ),
3446
- style: (0, import_system76.createVar)({
3447
- color: color && (0, import_system76.getColor)(
3463
+ style: (0, import_system75.createVar)({
3464
+ color: color && (0, import_system75.getColor)(
3448
3465
  theme,
3449
3466
  color,
3450
3467
  color
@@ -3457,11 +3474,11 @@ var Text2 = ({
3457
3474
  };
3458
3475
 
3459
3476
  // src/TextArea/TextArea.tsx
3460
- var import_react54 = require("react");
3461
- var import_react_aria_components51 = require("react-aria-components");
3462
- var import_system77 = require("@marigold/system");
3477
+ var import_react53 = require("react");
3478
+ var import_react_aria_components50 = require("react-aria-components");
3479
+ var import_system76 = require("@marigold/system");
3463
3480
  var import_jsx_runtime91 = require("react/jsx-runtime");
3464
- var _TextArea = (0, import_react54.forwardRef)(
3481
+ var _TextArea = (0, import_react53.forwardRef)(
3465
3482
  ({
3466
3483
  variant,
3467
3484
  size,
@@ -3472,7 +3489,7 @@ var _TextArea = (0, import_react54.forwardRef)(
3472
3489
  rows,
3473
3490
  ...rest
3474
3491
  }, ref) => {
3475
- const classNames2 = (0, import_system77.useClassNames)({ component: "TextArea", variant, size });
3492
+ const classNames2 = (0, import_system76.useClassNames)({ component: "TextArea", variant, size });
3476
3493
  const props = {
3477
3494
  isDisabled: disabled,
3478
3495
  isReadOnly: readOnly,
@@ -3480,24 +3497,16 @@ var _TextArea = (0, import_react54.forwardRef)(
3480
3497
  isRequired: required,
3481
3498
  ...rest
3482
3499
  };
3483
- return /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(FieldBase, { as: import_react_aria_components51.TextField, ...props, variant, size, children: /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(import_react_aria_components51.TextArea, { className: classNames2, ref, rows }) });
3500
+ return /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(FieldBase, { as: import_react_aria_components50.TextField, ...props, variant, size, children: /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(import_react_aria_components50.TextArea, { className: classNames2, ref, rows }) });
3484
3501
  }
3485
3502
  );
3486
3503
 
3487
3504
  // src/TextField/TextField.tsx
3488
- var import_react55 = require("react");
3489
- var import_react_aria_components52 = require("react-aria-components");
3505
+ var import_react54 = require("react");
3506
+ var import_react_aria_components51 = require("react-aria-components");
3490
3507
  var import_jsx_runtime92 = require("react/jsx-runtime");
3491
- var _TextField = (0, import_react55.forwardRef)(
3492
- ({
3493
- variant,
3494
- size,
3495
- required,
3496
- disabled,
3497
- readOnly,
3498
- error,
3499
- ...rest
3500
- }, ref) => {
3508
+ var _TextField = (0, import_react54.forwardRef)(
3509
+ ({ required, disabled, readOnly, error, ...rest }, ref) => {
3501
3510
  const props = {
3502
3511
  isDisabled: disabled,
3503
3512
  isReadOnly: readOnly,
@@ -3505,12 +3514,12 @@ var _TextField = (0, import_react55.forwardRef)(
3505
3514
  isRequired: required,
3506
3515
  ...rest
3507
3516
  };
3508
- return /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(FieldBase, { as: import_react_aria_components52.TextField, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(_Input, { ref }) });
3517
+ return /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(FieldBase, { as: import_react_aria_components51.TextField, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(_Input, { ref }) });
3509
3518
  }
3510
3519
  );
3511
3520
 
3512
3521
  // src/Tiles/Tiles.tsx
3513
- var import_system78 = require("@marigold/system");
3522
+ var import_system77 = require("@marigold/system");
3514
3523
  var import_jsx_runtime93 = require("react/jsx-runtime");
3515
3524
  var Tiles = ({
3516
3525
  space = 0,
@@ -3528,24 +3537,24 @@ var Tiles = ({
3528
3537
  "div",
3529
3538
  {
3530
3539
  ...props,
3531
- className: (0, import_system78.cn)(
3540
+ className: (0, import_system77.cn)(
3532
3541
  "grid",
3533
- import_system78.gapSpace[space],
3542
+ import_system77.gapSpace[space],
3534
3543
  "grid-cols-[repeat(auto-fit,var(--column))]",
3535
3544
  equalHeight && "auto-rows-[1fr]"
3536
3545
  ),
3537
- style: (0, import_system78.createVar)({ column, tilesWidth }),
3546
+ style: (0, import_system77.createVar)({ column, tilesWidth }),
3538
3547
  children
3539
3548
  }
3540
3549
  );
3541
3550
  };
3542
3551
 
3543
3552
  // src/Tooltip/Tooltip.tsx
3544
- var import_react_aria_components54 = require("react-aria-components");
3545
- var import_system79 = require("@marigold/system");
3553
+ var import_react_aria_components53 = require("react-aria-components");
3554
+ var import_system78 = require("@marigold/system");
3546
3555
 
3547
3556
  // src/Tooltip/TooltipTrigger.tsx
3548
- var import_react_aria_components53 = require("react-aria-components");
3557
+ var import_react_aria_components52 = require("react-aria-components");
3549
3558
  var import_jsx_runtime94 = require("react/jsx-runtime");
3550
3559
  var _TooltipTrigger = ({
3551
3560
  delay = 1e3,
@@ -3560,7 +3569,7 @@ var _TooltipTrigger = ({
3560
3569
  isOpen: open,
3561
3570
  delay
3562
3571
  };
3563
- return /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(import_react_aria_components53.TooltipTrigger, { ...props, children });
3572
+ return /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(import_react_aria_components52.TooltipTrigger, { ...props, children });
3564
3573
  };
3565
3574
 
3566
3575
  // src/Tooltip/Tooltip.tsx
@@ -3570,16 +3579,16 @@ var _Tooltip = ({ children, variant, size, open, ...rest }) => {
3570
3579
  ...rest,
3571
3580
  isOpen: open
3572
3581
  };
3573
- const classNames2 = (0, import_system79.useClassNames)({ component: "Tooltip", variant, size });
3582
+ const classNames2 = (0, import_system78.useClassNames)({ component: "Tooltip", variant, size });
3574
3583
  const portal = usePortalContainer();
3575
3584
  return /* @__PURE__ */ (0, import_jsx_runtime95.jsxs)(
3576
- import_react_aria_components54.Tooltip,
3585
+ import_react_aria_components53.Tooltip,
3577
3586
  {
3578
3587
  ...props,
3579
- className: (0, import_system79.cn)("group/tooltip", classNames2.container),
3588
+ className: (0, import_system78.cn)("group/tooltip", classNames2.container),
3580
3589
  UNSTABLE_portalContainer: portal,
3581
3590
  children: [
3582
- /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(import_react_aria_components54.OverlayArrow, { className: classNames2.arrow, children: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("svg", { width: 8, height: 8, viewBox: "0 0 8 8", children: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("path", { d: "M0 0 L4 4 L8 0" }) }) }),
3591
+ /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(import_react_aria_components53.OverlayArrow, { className: classNames2.arrow, children: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("svg", { width: 8, height: 8, viewBox: "0 0 8 8", children: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("path", { d: "M0 0 L4 4 L8 0" }) }) }),
3583
3592
  children
3584
3593
  ]
3585
3594
  }
@@ -3591,11 +3600,11 @@ _Tooltip.Trigger = _TooltipTrigger;
3591
3600
  var import_visually_hidden = require("@react-aria/visually-hidden");
3592
3601
 
3593
3602
  // src/XLoader/XLoader.tsx
3594
- var import_react56 = require("react");
3595
- var import_system80 = require("@marigold/system");
3603
+ var import_react55 = require("react");
3604
+ var import_system79 = require("@marigold/system");
3596
3605
  var import_jsx_runtime96 = require("react/jsx-runtime");
3597
- var XLoader = (0, import_react56.forwardRef)((props, ref) => /* @__PURE__ */ (0, import_jsx_runtime96.jsxs)(
3598
- import_system80.SVG,
3606
+ var XLoader = (0, import_react55.forwardRef)((props, ref) => /* @__PURE__ */ (0, import_jsx_runtime96.jsxs)(
3607
+ import_system79.SVG,
3599
3608
  {
3600
3609
  id: "XLoader",
3601
3610
  xmlns: "http://www.w3.org/2000/svg",
@@ -3808,25 +3817,25 @@ var XLoader = (0, import_react56.forwardRef)((props, ref) => /* @__PURE__ */ (0,
3808
3817
  ));
3809
3818
 
3810
3819
  // src/Tabs/Tabs.tsx
3811
- var import_react_aria_components58 = require("react-aria-components");
3812
- var import_system83 = require("@marigold/system");
3820
+ var import_react_aria_components57 = require("react-aria-components");
3821
+ var import_system82 = require("@marigold/system");
3813
3822
 
3814
3823
  // src/Tabs/Context.ts
3815
- var import_react57 = require("react");
3816
- var TabContext = (0, import_react57.createContext)({});
3817
- var useTabContext = () => (0, import_react57.useContext)(TabContext);
3824
+ var import_react56 = require("react");
3825
+ var TabContext = (0, import_react56.createContext)({});
3826
+ var useTabContext = () => (0, import_react56.useContext)(TabContext);
3818
3827
 
3819
3828
  // src/Tabs/Tab.tsx
3820
- var import_react_aria_components55 = require("react-aria-components");
3821
- var import_system81 = require("@marigold/system");
3829
+ var import_react_aria_components54 = require("react-aria-components");
3830
+ var import_system80 = require("@marigold/system");
3822
3831
  var import_jsx_runtime97 = require("react/jsx-runtime");
3823
3832
  var _Tab = (props) => {
3824
3833
  const { classNames: classNames2 } = useTabContext();
3825
3834
  return /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
3826
- import_react_aria_components55.Tab,
3835
+ import_react_aria_components54.Tab,
3827
3836
  {
3828
3837
  ...props,
3829
- className: (0, import_system81.cn)(
3838
+ className: (0, import_system80.cn)(
3830
3839
  "flex cursor-pointer justify-center aria-disabled:cursor-not-allowed",
3831
3840
  classNames2.tab
3832
3841
  ),
@@ -3836,27 +3845,27 @@ var _Tab = (props) => {
3836
3845
  };
3837
3846
 
3838
3847
  // src/Tabs/TabList.tsx
3839
- var import_react_aria_components56 = require("react-aria-components");
3840
- var import_system82 = require("@marigold/system");
3848
+ var import_react_aria_components55 = require("react-aria-components");
3849
+ var import_system81 = require("@marigold/system");
3841
3850
  var import_jsx_runtime98 = require("react/jsx-runtime");
3842
3851
  var _TabList = ({ space = 2, ...props }) => {
3843
3852
  const { classNames: classNames2 } = useTabContext();
3844
3853
  return /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(
3845
- import_react_aria_components56.TabList,
3854
+ import_react_aria_components55.TabList,
3846
3855
  {
3847
3856
  ...props,
3848
- className: (0, import_system82.cn)("flex", import_system82.gapSpace[space], classNames2.tabsList),
3857
+ className: (0, import_system81.cn)("flex", import_system81.gapSpace[space], classNames2.tabsList),
3849
3858
  children: props.children
3850
3859
  }
3851
3860
  );
3852
3861
  };
3853
3862
 
3854
3863
  // src/Tabs/TabPanel.tsx
3855
- var import_react_aria_components57 = require("react-aria-components");
3864
+ var import_react_aria_components56 = require("react-aria-components");
3856
3865
  var import_jsx_runtime99 = require("react/jsx-runtime");
3857
3866
  var _TabPanel = (props) => {
3858
3867
  const { classNames: classNames2 } = useTabContext();
3859
- return /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(import_react_aria_components57.TabPanel, { ...props, className: classNames2.tabpanel, children: props.children });
3868
+ return /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(import_react_aria_components56.TabPanel, { ...props, className: classNames2.tabpanel, children: props.children });
3860
3869
  };
3861
3870
 
3862
3871
  // src/Tabs/Tabs.tsx
@@ -3866,19 +3875,19 @@ var _Tabs = ({ disabled, variant, size = "medium", ...rest }) => {
3866
3875
  isDisabled: disabled,
3867
3876
  ...rest
3868
3877
  };
3869
- const classNames2 = (0, import_system83.useClassNames)({
3878
+ const classNames2 = (0, import_system82.useClassNames)({
3870
3879
  component: "Tabs",
3871
3880
  size,
3872
3881
  variant
3873
3882
  });
3874
- return /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(TabContext.Provider, { value: { classNames: classNames2 }, children: /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(import_react_aria_components58.Tabs, { ...props, className: classNames2.container, children: props.children }) });
3883
+ return /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(TabContext.Provider, { value: { classNames: classNames2 }, children: /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(import_react_aria_components57.Tabs, { ...props, className: classNames2.container, children: props.children }) });
3875
3884
  };
3876
3885
  _Tabs.List = _TabList;
3877
3886
  _Tabs.TabPanel = _TabPanel;
3878
3887
  _Tabs.Item = _Tab;
3879
3888
 
3880
3889
  // src/RouterProvider/RouterProvider.tsx
3881
- var import_react_aria_components59 = require("react-aria-components");
3890
+ var import_react_aria_components58 = require("react-aria-components");
3882
3891
  // Annotate the CommonJS export names for ESM import in node:
3883
3892
  0 && (module.exports = {
3884
3893
  Accordion,