@marigold/components 9.0.2 → 10.0.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.
package/dist/index.mjs CHANGED
@@ -608,18 +608,15 @@ var _ListBoxItem = ({ ...props }) => {
608
608
  };
609
609
 
610
610
  // src/ListBox/ListBoxSection.tsx
611
- import { Section } from "react-aria-components";
611
+ import { Header, Section } from "react-aria-components";
612
612
  import { cn as cn9 } from "@marigold/system";
613
- import { jsx as jsx14 } from "react/jsx-runtime";
614
- var _Section = (props) => {
613
+ import { jsx as jsx14, jsxs as jsxs7 } from "react/jsx-runtime";
614
+ var _Section = ({ header: header2, children, ...props }) => {
615
615
  const { classNames: classNames2 } = useListBoxContext();
616
- return /* @__PURE__ */ jsx14(
617
- Section,
618
- {
619
- ...props,
620
- className: cn9(classNames2.section, classNames2.sectionTitle)
621
- }
622
- );
616
+ return /* @__PURE__ */ jsxs7(Section, { ...props, className: cn9(classNames2.section, classNames2.header), children: [
617
+ /* @__PURE__ */ jsx14(Header, { children: header2 }),
618
+ children
619
+ ] });
623
620
  };
624
621
 
625
622
  // src/ListBox/ListBox.tsx
@@ -718,7 +715,7 @@ var Underlay = ({
718
715
  };
719
716
 
720
717
  // src/Overlay/Popover.tsx
721
- import { Fragment, jsx as jsx18, jsxs as jsxs7 } from "react/jsx-runtime";
718
+ import { Fragment, jsx as jsx18, jsxs as jsxs8 } from "react/jsx-runtime";
722
719
  var _Popover = forwardRef7(
723
720
  ({ keyboardDismissDisabled, placement, open, children, container, ...rest }, ref) => {
724
721
  const props = {
@@ -735,7 +732,7 @@ var _Popover = forwardRef7(
735
732
  });
736
733
  const isSmallScreen = useSmallScreen();
737
734
  const portal = usePortalContainer();
738
- return /* @__PURE__ */ jsx18(Fragment, { children: isSmallScreen ? /* @__PURE__ */ jsxs7(Fragment, { children: [
735
+ return /* @__PURE__ */ jsx18(Fragment, { children: isSmallScreen ? /* @__PURE__ */ jsxs8(Fragment, { children: [
739
736
  /* @__PURE__ */ jsx18(Underlay, { open, variant: "modal" }),
740
737
  /* @__PURE__ */ jsx18(
741
738
  Popover,
@@ -765,7 +762,7 @@ var _Popover = forwardRef7(
765
762
  );
766
763
 
767
764
  // src/Autocomplete/Autocomplete.tsx
768
- import { jsx as jsx19, jsxs as jsxs8 } from "react/jsx-runtime";
765
+ import { jsx as jsx19, jsxs as jsxs9 } from "react/jsx-runtime";
769
766
  var AutocompleteInput = ({
770
767
  onSubmit,
771
768
  onClear,
@@ -827,13 +824,14 @@ var _Autocomplete = forwardRef8(
827
824
  isRequired: required,
828
825
  ...rest
829
826
  };
830
- return /* @__PURE__ */ jsxs8(FieldBase, { as: ComboBox, ref, ...props, children: [
827
+ return /* @__PURE__ */ jsxs9(FieldBase, { as: ComboBox, ref, ...props, children: [
831
828
  /* @__PURE__ */ jsx19(AutocompleteInput, { onSubmit, onClear, ref }),
832
829
  /* @__PURE__ */ jsx19(_Popover, { children: /* @__PURE__ */ jsx19(_ListBox, { children }) })
833
830
  ] });
834
831
  }
835
832
  );
836
- _Autocomplete.Item = _ListBox.Item;
833
+ _Autocomplete.Option = _ListBox.Item;
834
+ _Autocomplete.Section = _ListBox.Section;
837
835
 
838
836
  // src/ComboBox/ComboBox.tsx
839
837
  import { forwardRef as forwardRef10 } from "react";
@@ -871,7 +869,7 @@ var _Button = forwardRef9(
871
869
  );
872
870
 
873
871
  // src/ComboBox/ComboBox.tsx
874
- import { jsx as jsx21, jsxs as jsxs9 } from "react/jsx-runtime";
872
+ import { jsx as jsx21, jsxs as jsxs10 } from "react/jsx-runtime";
875
873
  var _ComboBox = forwardRef10(
876
874
  ({
877
875
  variant,
@@ -897,7 +895,7 @@ var _ComboBox = forwardRef10(
897
895
  ...rest
898
896
  };
899
897
  const classNames2 = useClassNames11({ component: "ComboBox", variant, size });
900
- return /* @__PURE__ */ jsxs9(FieldBase, { as: ComboBox2, ref, ...props, children: [
898
+ return /* @__PURE__ */ jsxs10(FieldBase, { as: ComboBox2, ref, ...props, children: [
901
899
  /* @__PURE__ */ jsx21(
902
900
  _Input,
903
901
  {
@@ -908,7 +906,8 @@ var _ComboBox = forwardRef10(
908
906
  ] });
909
907
  }
910
908
  );
911
- _ComboBox.Item = _ListBox.Item;
909
+ _ComboBox.Option = _ListBox.Item;
910
+ _ComboBox.Section = _ListBox.Section;
912
911
 
913
912
  // src/Badge/Badge.tsx
914
913
  import { useClassNames as useClassNames12 } from "@marigold/system";
@@ -1029,27 +1028,74 @@ var Center = ({
1029
1028
  // src/Checkbox/Checkbox.tsx
1030
1029
  import { forwardRef as forwardRef11 } from "react";
1031
1030
  import { Checkbox } from "react-aria-components";
1032
- import { cn as cn18, useClassNames as useClassNames16 } from "@marigold/system";
1031
+ import { cn as cn19, useClassNames as useClassNames17 } from "@marigold/system";
1033
1032
 
1034
1033
  // src/Checkbox/CheckBoxField.tsx
1035
1034
  import { createVar as createVar6, useClassNames as useClassNames15 } from "@marigold/system";
1036
- import { jsx as jsx27, jsxs as jsxs10 } from "react/jsx-runtime";
1035
+ import { jsx as jsx27, jsxs as jsxs11 } from "react/jsx-runtime";
1037
1036
  var CheckboxField = ({ children, labelWidth }) => {
1038
1037
  const classNames2 = useClassNames15({ component: "Field" });
1039
- return /* @__PURE__ */ jsxs10("div", { className: classNames2, children: [
1038
+ return /* @__PURE__ */ jsxs11("div", { className: classNames2, children: [
1040
1039
  /* @__PURE__ */ jsx27("div", { className: "w-[--labelWidth]", style: createVar6({ labelWidth }) }),
1041
1040
  children
1042
1041
  ] });
1043
1042
  };
1044
1043
 
1044
+ // src/Checkbox/CheckboxGroup.tsx
1045
+ import { CheckboxGroup } from "react-aria-components";
1046
+ import { cn as cn18, useClassNames as useClassNames16 } from "@marigold/system";
1047
+
1045
1048
  // src/Checkbox/Context.tsx
1046
1049
  import { createContext as createContext4, useContext as useContext5 } from "react";
1047
1050
  var CheckboxGroupContext = createContext4(null);
1048
1051
  var useCheckboxGroupContext = () => useContext5(CheckboxGroupContext);
1049
1052
 
1053
+ // src/Checkbox/CheckboxGroup.tsx
1054
+ import { jsx as jsx28 } from "react/jsx-runtime";
1055
+ var _CheckboxGroup = ({
1056
+ children,
1057
+ variant,
1058
+ size,
1059
+ required,
1060
+ disabled,
1061
+ readOnly,
1062
+ error,
1063
+ width,
1064
+ orientation = "vertical",
1065
+ ...rest
1066
+ }) => {
1067
+ const classNames2 = useClassNames16({
1068
+ component: "Checkbox",
1069
+ variant,
1070
+ size,
1071
+ className: { group: "gap-x-2" }
1072
+ });
1073
+ const props = {
1074
+ className: classNames2.group,
1075
+ isRequired: required,
1076
+ isDisabled: disabled,
1077
+ isReadOnly: readOnly,
1078
+ isInvalid: error,
1079
+ ...rest
1080
+ };
1081
+ return /* @__PURE__ */ jsx28(FieldBase, { as: CheckboxGroup, width, ...props, children: /* @__PURE__ */ jsx28(
1082
+ "div",
1083
+ {
1084
+ role: "presentation",
1085
+ "data-orientation": orientation,
1086
+ className: cn18(
1087
+ classNames2.group,
1088
+ "flex items-start",
1089
+ orientation === "vertical" ? "flex-col gap-[0.5ch]" : "flex-row gap-[1.5ch]"
1090
+ ),
1091
+ children: /* @__PURE__ */ jsx28(CheckboxGroupContext.Provider, { value: { width, variant, size }, children })
1092
+ }
1093
+ ) });
1094
+ };
1095
+
1050
1096
  // src/Checkbox/Checkbox.tsx
1051
- import { Fragment as Fragment2, jsx as jsx28, jsxs as jsxs11 } from "react/jsx-runtime";
1052
- var CheckMark = () => /* @__PURE__ */ jsx28("svg", { viewBox: "0 0 12 10", children: /* @__PURE__ */ jsx28(
1097
+ import { Fragment as Fragment2, jsx as jsx29, jsxs as jsxs12 } from "react/jsx-runtime";
1098
+ var CheckMark = () => /* @__PURE__ */ jsx29("svg", { viewBox: "0 0 12 10", children: /* @__PURE__ */ jsx29(
1053
1099
  "path",
1054
1100
  {
1055
1101
  fill: "currentColor",
@@ -1057,7 +1103,7 @@ var CheckMark = () => /* @__PURE__ */ jsx28("svg", { viewBox: "0 0 12 10", child
1057
1103
  d: "M11.915 1.548 10.367 0 4.045 6.315 1.557 3.827 0 5.373l4.045 4.046 7.87-7.871Z"
1058
1104
  }
1059
1105
  ) });
1060
- var IndeterminateMark = () => /* @__PURE__ */ jsx28("svg", { width: "12", height: "3", viewBox: "0 0 12 3", children: /* @__PURE__ */ jsx28(
1106
+ var IndeterminateMark = () => /* @__PURE__ */ jsx29("svg", { width: "12", height: "3", viewBox: "0 0 12 3", children: /* @__PURE__ */ jsx29(
1061
1107
  "path",
1062
1108
  {
1063
1109
  fill: "currentColor",
@@ -1066,11 +1112,11 @@ var IndeterminateMark = () => /* @__PURE__ */ jsx28("svg", { width: "12", height
1066
1112
  }
1067
1113
  ) });
1068
1114
  var Icon2 = ({ className, checked, indeterminate, ...props }) => {
1069
- return /* @__PURE__ */ jsx28(
1115
+ return /* @__PURE__ */ jsx29(
1070
1116
  "div",
1071
1117
  {
1072
1118
  "aria-hidden": "true",
1073
- className: cn18(
1119
+ className: cn19(
1074
1120
  "flex shrink-0 grow-0 basis-4 items-center justify-center",
1075
1121
  "h-4 w-4 p-px",
1076
1122
  "bg-white",
@@ -1078,7 +1124,7 @@ var Icon2 = ({ className, checked, indeterminate, ...props }) => {
1078
1124
  className
1079
1125
  ),
1080
1126
  ...props,
1081
- children: indeterminate ? /* @__PURE__ */ jsx28(IndeterminateMark, {}) : checked ? /* @__PURE__ */ jsx28(CheckMark, {}) : null
1127
+ children: indeterminate ? /* @__PURE__ */ jsx29(IndeterminateMark, {}) : checked ? /* @__PURE__ */ jsx29(CheckMark, {}) : null
1082
1128
  }
1083
1129
  );
1084
1130
  };
@@ -1108,23 +1154,23 @@ var _Checkbox = forwardRef11(
1108
1154
  };
1109
1155
  const { labelWidth } = useFieldGroupContext();
1110
1156
  const group = useCheckboxGroupContext();
1111
- const classNames2 = useClassNames16({
1157
+ const classNames2 = useClassNames17({
1112
1158
  component: "Checkbox",
1113
1159
  variant: variant || (group == null ? void 0 : group.variant),
1114
1160
  size: size || (group == null ? void 0 : group.size)
1115
1161
  });
1116
- const component = /* @__PURE__ */ jsx28(
1162
+ const component = /* @__PURE__ */ jsx29(
1117
1163
  Checkbox,
1118
1164
  {
1119
1165
  ref,
1120
- className: cn18(
1166
+ className: cn19(
1121
1167
  "group/checkbox flex items-center gap-[0.5rem]",
1122
1168
  "cursor-pointer data-[disabled]:cursor-not-allowed",
1123
1169
  classNames2.container
1124
1170
  ),
1125
1171
  ...props,
1126
- children: ({ isSelected, isIndeterminate }) => /* @__PURE__ */ jsxs11(Fragment2, { children: [
1127
- /* @__PURE__ */ jsx28(
1172
+ children: ({ isSelected, isIndeterminate }) => /* @__PURE__ */ jsxs12(Fragment2, { children: [
1173
+ /* @__PURE__ */ jsx29(
1128
1174
  Icon2,
1129
1175
  {
1130
1176
  checked: isSelected,
@@ -1132,58 +1178,14 @@ var _Checkbox = forwardRef11(
1132
1178
  className: classNames2.checkbox
1133
1179
  }
1134
1180
  ),
1135
- /* @__PURE__ */ jsx28("div", { className: classNames2.label, children })
1181
+ children ? /* @__PURE__ */ jsx29("div", { className: classNames2.label, children }) : null
1136
1182
  ] })
1137
1183
  }
1138
1184
  );
1139
- return !group && !!labelWidth ? /* @__PURE__ */ jsx28(CheckboxField, { labelWidth, children: component }) : component;
1185
+ return !group && !!labelWidth ? /* @__PURE__ */ jsx29(CheckboxField, { labelWidth, children: component }) : component;
1140
1186
  }
1141
1187
  );
1142
-
1143
- // src/Checkbox/CheckboxGroup.tsx
1144
- import { CheckboxGroup } from "react-aria-components";
1145
- import { cn as cn19, useClassNames as useClassNames17 } from "@marigold/system";
1146
- import { jsx as jsx29 } from "react/jsx-runtime";
1147
- var _CheckboxGroup = ({
1148
- children,
1149
- variant,
1150
- size,
1151
- required,
1152
- disabled,
1153
- readOnly,
1154
- error,
1155
- width,
1156
- orientation = "vertical",
1157
- ...rest
1158
- }) => {
1159
- const classNames2 = useClassNames17({
1160
- component: "Checkbox",
1161
- variant,
1162
- size,
1163
- className: { group: "gap-x-2" }
1164
- });
1165
- const props = {
1166
- className: classNames2.group,
1167
- isRequired: required,
1168
- isDisabled: disabled,
1169
- isReadOnly: readOnly,
1170
- isInvalid: error,
1171
- ...rest
1172
- };
1173
- return /* @__PURE__ */ jsx29(FieldBase, { as: CheckboxGroup, width, ...props, children: /* @__PURE__ */ jsx29(
1174
- "div",
1175
- {
1176
- role: "presentation",
1177
- "data-orientation": orientation,
1178
- className: cn19(
1179
- classNames2.group,
1180
- "flex items-start",
1181
- orientation === "vertical" ? "flex-col gap-[0.5ch]" : "flex-row gap-[1.5ch]"
1182
- ),
1183
- children: /* @__PURE__ */ jsx29(CheckboxGroupContext.Provider, { value: { width, variant, size }, children })
1184
- }
1185
- ) });
1186
- };
1188
+ _Checkbox.Group = _CheckboxGroup;
1187
1189
 
1188
1190
  // src/Columns/Columns.tsx
1189
1191
  import { Children as Children3 } from "react";
@@ -1278,19 +1280,55 @@ var Container = ({
1278
1280
  // src/Dialog/Dialog.tsx
1279
1281
  import { useContext as useContext6 } from "react";
1280
1282
  import { Dialog, OverlayTriggerStateContext } from "react-aria-components";
1283
+ import { cn as cn26, useClassNames as useClassNames23 } from "@marigold/system";
1284
+
1285
+ // src/Dialog/DialogActions.tsx
1286
+ import { cn as cn22, useClassNames as useClassNames18 } from "@marigold/system";
1287
+ import { jsx as jsx32 } from "react/jsx-runtime";
1288
+ var DialogActions = ({ variant, size, children }) => {
1289
+ const classNames2 = useClassNames18({ component: "Dialog", variant, size });
1290
+ return /* @__PURE__ */ jsx32("div", { className: cn22("[grid-area:actions]", classNames2.actions), children });
1291
+ };
1292
+
1293
+ // src/Dialog/DialogContent.tsx
1281
1294
  import { cn as cn23, useClassNames as useClassNames19 } from "@marigold/system";
1295
+ import { jsx as jsx33 } from "react/jsx-runtime";
1296
+ var DialogContent = ({
1297
+ variant,
1298
+ size,
1299
+ children
1300
+ }) => {
1301
+ const classNames2 = useClassNames19({ component: "Dialog", variant, size });
1302
+ return /* @__PURE__ */ jsx33("div", { className: cn23("[grid-area:content]", classNames2.content), children });
1303
+ };
1304
+
1305
+ // src/Dialog/DialogTitle.tsx
1306
+ import { cn as cn25, useClassNames as useClassNames22 } from "@marigold/system";
1307
+
1308
+ // src/Header/Header.tsx
1309
+ import { Header as Header2 } from "react-aria-components";
1310
+ import { useClassNames as useClassNames20 } from "@marigold/system";
1311
+ import { jsx as jsx34 } from "react/jsx-runtime";
1312
+ var _Header = ({ variant, size, ...props }) => {
1313
+ const classNames2 = useClassNames20({
1314
+ component: "Header",
1315
+ variant,
1316
+ size
1317
+ });
1318
+ return /* @__PURE__ */ jsx34(Header2, { className: classNames2, ...props, children: props.children });
1319
+ };
1282
1320
 
1283
1321
  // src/Headline/Headline.tsx
1284
1322
  import { Heading } from "react-aria-components";
1285
1323
  import {
1286
- cn as cn22,
1324
+ cn as cn24,
1287
1325
  createVar as createVar9,
1288
1326
  getColor,
1289
1327
  textAlign,
1290
- useClassNames as useClassNames18,
1328
+ useClassNames as useClassNames21,
1291
1329
  useTheme as useTheme2
1292
1330
  } from "@marigold/system";
1293
- import { jsx as jsx32 } from "react/jsx-runtime";
1331
+ import { jsx as jsx35 } from "react/jsx-runtime";
1294
1332
  var _Headline = ({
1295
1333
  variant,
1296
1334
  size,
@@ -1301,17 +1339,17 @@ var _Headline = ({
1301
1339
  ...props
1302
1340
  }) => {
1303
1341
  const theme = useTheme2();
1304
- const classNames2 = useClassNames18({
1342
+ const classNames2 = useClassNames21({
1305
1343
  component: "Headline",
1306
1344
  variant,
1307
1345
  size: size != null ? size : `level-${level}`
1308
1346
  });
1309
- return /* @__PURE__ */ jsx32(
1347
+ return /* @__PURE__ */ jsx35(
1310
1348
  Heading,
1311
1349
  {
1312
1350
  level: Number(level),
1313
1351
  ...props,
1314
- className: cn22(classNames2, "text-[--color]", textAlign[align]),
1352
+ className: cn24(classNames2, "text-[--color]", textAlign[align]),
1315
1353
  style: createVar9({
1316
1354
  color: color && getColor(
1317
1355
  theme,
@@ -1325,6 +1363,18 @@ var _Headline = ({
1325
1363
  );
1326
1364
  };
1327
1365
 
1366
+ // src/Dialog/DialogTitle.tsx
1367
+ import { jsx as jsx36 } from "react/jsx-runtime";
1368
+ var DialogTitle = ({
1369
+ level = "2",
1370
+ variant,
1371
+ size,
1372
+ children
1373
+ }) => {
1374
+ const classNames2 = useClassNames22({ component: "Dialog", variant, size });
1375
+ return /* @__PURE__ */ jsx36(_Header, { className: cn25("[grid-area:title]", classNames2.header), children: /* @__PURE__ */ jsx36(_Headline, { slot: "title", level, children }) });
1376
+ };
1377
+
1328
1378
  // src/Dialog/DialogTrigger.tsx
1329
1379
  import { Children as Children4 } from "react";
1330
1380
  import { DialogTrigger } from "react-aria-components";
@@ -1332,7 +1382,7 @@ import { DialogTrigger } from "react-aria-components";
1332
1382
  // src/Overlay/Modal.tsx
1333
1383
  import { forwardRef as forwardRef12 } from "react";
1334
1384
  import { Modal } from "react-aria-components";
1335
- import { jsx as jsx33 } from "react/jsx-runtime";
1385
+ import { jsx as jsx37 } from "react/jsx-runtime";
1336
1386
  var _Modal = forwardRef12(({ open, dismissable, keyboardDismissable, ...rest }, ref) => {
1337
1387
  const props = {
1338
1388
  isOpen: open,
@@ -1340,20 +1390,28 @@ var _Modal = forwardRef12(({ open, dismissable, keyboardDismissable, ...rest },
1340
1390
  isKeyboardDismissDisabled: keyboardDismissable,
1341
1391
  ...rest
1342
1392
  };
1343
- return /* @__PURE__ */ jsx33(
1393
+ return /* @__PURE__ */ jsx37(
1344
1394
  Underlay,
1345
1395
  {
1346
1396
  dismissable,
1347
1397
  keyboardDismissable,
1348
1398
  open,
1349
1399
  variant: "modal",
1350
- children: /* @__PURE__ */ jsx33(Modal, { ref, className: "relative", ...props, children: props.children })
1400
+ children: /* @__PURE__ */ jsx37(
1401
+ Modal,
1402
+ {
1403
+ ref,
1404
+ className: "relative flex w-full justify-center",
1405
+ ...props,
1406
+ children: props.children
1407
+ }
1408
+ )
1351
1409
  }
1352
1410
  );
1353
1411
  });
1354
1412
 
1355
1413
  // src/Dialog/DialogTrigger.tsx
1356
- import { jsx as jsx34, jsxs as jsxs12 } from "react/jsx-runtime";
1414
+ import { jsx as jsx38, jsxs as jsxs13 } from "react/jsx-runtime";
1357
1415
  var _DialogTrigger = ({
1358
1416
  open,
1359
1417
  dismissable,
@@ -1370,10 +1428,10 @@ var _DialogTrigger = ({
1370
1428
  const hasDialogTrigger = dialogTrigger.type !== _Dialog;
1371
1429
  const currentDialog = children.length < 2 ? !hasDialogTrigger && dialogTrigger : dialog;
1372
1430
  if (isNonModal)
1373
- return /* @__PURE__ */ jsx34(DialogTrigger, { ...props, children: props.children });
1374
- return /* @__PURE__ */ jsxs12(DialogTrigger, { ...props, children: [
1431
+ return /* @__PURE__ */ jsx38(DialogTrigger, { ...props, children: props.children });
1432
+ return /* @__PURE__ */ jsxs13(DialogTrigger, { ...props, children: [
1375
1433
  hasDialogTrigger && dialogTrigger,
1376
- /* @__PURE__ */ jsx34(
1434
+ /* @__PURE__ */ jsx38(
1377
1435
  _Modal,
1378
1436
  {
1379
1437
  dismissable,
@@ -1385,18 +1443,19 @@ var _DialogTrigger = ({
1385
1443
  };
1386
1444
 
1387
1445
  // src/Dialog/Dialog.tsx
1388
- import { Fragment as Fragment3, jsx as jsx35, jsxs as jsxs13 } from "react/jsx-runtime";
1446
+ import { jsx as jsx39, jsxs as jsxs14 } from "react/jsx-runtime";
1389
1447
  var CloseButton = ({ className }) => {
1390
1448
  const { close } = useContext6(OverlayTriggerStateContext);
1391
- return /* @__PURE__ */ jsx35("div", { className: "flex justify-end", children: /* @__PURE__ */ jsx35(
1449
+ return /* @__PURE__ */ jsx39("div", { className: "absolute right-4 top-4 ml-4", children: /* @__PURE__ */ jsx39(
1392
1450
  "button",
1393
1451
  {
1394
- className: cn23(
1452
+ className: cn26(
1395
1453
  "h-4 w-4 cursor-pointer border-none p-0 leading-normal outline-0",
1396
1454
  className
1397
1455
  ),
1398
1456
  onClick: close,
1399
- children: /* @__PURE__ */ jsx35("svg", { viewBox: "0 0 20 20", fill: "currentColor", children: /* @__PURE__ */ jsx35(
1457
+ slot: "dismiss-button",
1458
+ children: /* @__PURE__ */ jsx39("svg", { viewBox: "0 0 20 20", fill: "currentColor", children: /* @__PURE__ */ jsx39(
1400
1459
  "path",
1401
1460
  {
1402
1461
  fillRule: "evenodd",
@@ -1407,7 +1466,6 @@ var CloseButton = ({ className }) => {
1407
1466
  }
1408
1467
  ) });
1409
1468
  };
1410
- var DialogHeadline = ({ children }) => /* @__PURE__ */ jsx35(_Headline, { slot: "title", children });
1411
1469
  var _Dialog = ({
1412
1470
  variant,
1413
1471
  size,
@@ -1415,59 +1473,61 @@ var _Dialog = ({
1415
1473
  isNonModal,
1416
1474
  ...props
1417
1475
  }) => {
1418
- const classNames2 = useClassNames19({ component: "Dialog", variant, size });
1419
- let state = useContext6(OverlayTriggerStateContext);
1420
- let children = props.children;
1421
- if (typeof children === "function") {
1422
- children = children({
1423
- close: (state == null ? void 0 : state.close) || (() => {
1424
- })
1425
- });
1426
- }
1427
- return /* @__PURE__ */ jsx35(
1476
+ const classNames2 = useClassNames23({ component: "Dialog", variant, size });
1477
+ const state = useContext6(OverlayTriggerStateContext);
1478
+ const children = typeof props.children === "function" ? props.children({
1479
+ close: state == null ? void 0 : state.close
1480
+ }) : props.children;
1481
+ return /* @__PURE__ */ jsxs14(
1428
1482
  Dialog,
1429
1483
  {
1430
1484
  ...props,
1431
- className: cn23("relative outline-none", classNames2.container),
1432
- children: /* @__PURE__ */ jsxs13(Fragment3, { children: [
1433
- closeButton && /* @__PURE__ */ jsx35(CloseButton, { className: classNames2.closeButton }),
1485
+ className: cn26(
1486
+ "relative outline-none [&>*:not(:last-child)]:mb-4",
1487
+ "grid [grid-template-areas:'title'_'content'_'actions']",
1488
+ classNames2.container
1489
+ ),
1490
+ children: [
1491
+ closeButton && /* @__PURE__ */ jsx39(CloseButton, { className: classNames2.closeButton }),
1434
1492
  children
1435
- ] })
1493
+ ]
1436
1494
  }
1437
1495
  );
1438
1496
  };
1439
1497
  _Dialog.Trigger = _DialogTrigger;
1440
- _Dialog.Headline = DialogHeadline;
1498
+ _Dialog.Title = DialogTitle;
1499
+ _Dialog.Content = DialogContent;
1500
+ _Dialog.Actions = DialogActions;
1441
1501
 
1442
1502
  // src/Divider/Divider.tsx
1443
1503
  import { Separator } from "react-aria-components";
1444
- import { cn as cn24, useClassNames as useClassNames20 } from "@marigold/system";
1445
- import { jsx as jsx36 } from "react/jsx-runtime";
1504
+ import { cn as cn27, useClassNames as useClassNames24 } from "@marigold/system";
1505
+ import { jsx as jsx40 } from "react/jsx-runtime";
1446
1506
  var _Divider = ({ variant, ...props }) => {
1447
- const classNames2 = useClassNames20({ component: "Divider", variant });
1448
- return /* @__PURE__ */ jsx36(Separator, { className: cn24("border-none", classNames2), ...props });
1507
+ const classNames2 = useClassNames24({ component: "Divider", variant });
1508
+ return /* @__PURE__ */ jsx40(Separator, { className: cn27("border-none", classNames2), ...props });
1449
1509
  };
1450
1510
 
1451
1511
  // src/Footer/Footer.tsx
1452
- import { useClassNames as useClassNames21 } from "@marigold/system";
1453
- import { jsx as jsx37 } from "react/jsx-runtime";
1512
+ import { useClassNames as useClassNames25 } from "@marigold/system";
1513
+ import { jsx as jsx41 } from "react/jsx-runtime";
1454
1514
  var Footer = ({ children, variant, size, ...props }) => {
1455
- const classNames2 = useClassNames21({ component: "Footer", variant, size });
1456
- return /* @__PURE__ */ jsx37("footer", { ...props, className: classNames2, children });
1515
+ const classNames2 = useClassNames25({ component: "Footer", variant, size });
1516
+ return /* @__PURE__ */ jsx41("footer", { ...props, className: classNames2, children });
1457
1517
  };
1458
1518
 
1459
1519
  // src/Form/Form.tsx
1460
1520
  import { Form } from "react-aria-components";
1461
1521
 
1462
1522
  // src/Grid/Grid.tsx
1463
- import { cn as cn25, gapSpace as gapSpace5, height as twHeight } from "@marigold/system";
1523
+ import { cn as cn28, gapSpace as gapSpace5, height as twHeight } from "@marigold/system";
1464
1524
 
1465
1525
  // src/Grid/GridArea.tsx
1466
- import { jsx as jsx38 } from "react/jsx-runtime";
1467
- var GridArea = ({ name, children }) => /* @__PURE__ */ jsx38("div", { style: { gridArea: name }, children });
1526
+ import { jsx as jsx42 } from "react/jsx-runtime";
1527
+ var GridArea = ({ name, children }) => /* @__PURE__ */ jsx42("div", { style: { gridArea: name }, children });
1468
1528
 
1469
1529
  // src/Grid/Grid.tsx
1470
- import { jsx as jsx39 } from "react/jsx-runtime";
1530
+ import { jsx as jsx43 } from "react/jsx-runtime";
1471
1531
  var parseGridAreas = (areas) => areas.map((area) => `"${area}"`).join("\n");
1472
1532
  var parseTemplateValue = (values) => values.map((val) => typeof val === "number" ? `${val}fr` : val).join(" ");
1473
1533
  var Grid = ({
@@ -1479,10 +1539,10 @@ var Grid = ({
1479
1539
  space = 0,
1480
1540
  ...props
1481
1541
  }) => {
1482
- return /* @__PURE__ */ jsx39(
1542
+ return /* @__PURE__ */ jsx43(
1483
1543
  "div",
1484
1544
  {
1485
- className: cn25("grid", gapSpace5[space], twHeight[height]),
1545
+ className: cn28("grid", gapSpace5[space], twHeight[height]),
1486
1546
  style: {
1487
1547
  gridTemplateAreas: parseGridAreas(areas),
1488
1548
  gridTemplateColumns: parseTemplateValue(columns),
@@ -1495,27 +1555,14 @@ var Grid = ({
1495
1555
  };
1496
1556
  Grid.Area = GridArea;
1497
1557
 
1498
- // src/Header/Header.tsx
1499
- import { Header } from "react-aria-components";
1500
- import { useClassNames as useClassNames22 } from "@marigold/system";
1501
- import { jsx as jsx40 } from "react/jsx-runtime";
1502
- var _Header = ({ variant, size, ...props }) => {
1503
- const classNames2 = useClassNames22({
1504
- component: "Header",
1505
- variant,
1506
- size
1507
- });
1508
- return /* @__PURE__ */ jsx40(Header, { className: classNames2, ...props, children: props.children });
1509
- };
1510
-
1511
1558
  // src/Image/Image.tsx
1512
1559
  import {
1513
- cn as cn26,
1560
+ cn as cn29,
1514
1561
  objectFit,
1515
1562
  objectPosition,
1516
- useClassNames as useClassNames23
1563
+ useClassNames as useClassNames26
1517
1564
  } from "@marigold/system";
1518
- import { jsx as jsx41 } from "react/jsx-runtime";
1565
+ import { jsx as jsx44 } from "react/jsx-runtime";
1519
1566
  var Image = ({
1520
1567
  variant,
1521
1568
  size,
@@ -1523,13 +1570,13 @@ var Image = ({
1523
1570
  position = "none",
1524
1571
  ...props
1525
1572
  }) => {
1526
- const classNames2 = useClassNames23({ component: "Image", variant, size });
1527
- return /* @__PURE__ */ jsx41(
1573
+ const classNames2 = useClassNames26({ component: "Image", variant, size });
1574
+ return /* @__PURE__ */ jsx44(
1528
1575
  "img",
1529
1576
  {
1530
1577
  ...props,
1531
1578
  alt: props.alt,
1532
- className: cn26(
1579
+ className: cn29(
1533
1580
  fit !== "none" && "h-full w-full",
1534
1581
  classNames2,
1535
1582
  objectFit[fit],
@@ -1540,8 +1587,8 @@ var Image = ({
1540
1587
  };
1541
1588
 
1542
1589
  // src/Inline/Inline.tsx
1543
- import { alignment as alignment2, cn as cn27, gapSpace as gapSpace6 } from "@marigold/system";
1544
- import { jsx as jsx42 } from "react/jsx-runtime";
1590
+ import { alignment as alignment2, cn as cn30, gapSpace as gapSpace6 } from "@marigold/system";
1591
+ import { jsx as jsx45 } from "react/jsx-runtime";
1545
1592
  var Inline = ({
1546
1593
  space = 0,
1547
1594
  alignX,
@@ -1550,11 +1597,11 @@ var Inline = ({
1550
1597
  ...props
1551
1598
  }) => {
1552
1599
  var _a, _b, _c, _d;
1553
- return /* @__PURE__ */ jsx42(
1600
+ return /* @__PURE__ */ jsx45(
1554
1601
  "div",
1555
1602
  {
1556
1603
  ...props,
1557
- className: cn27(
1604
+ className: cn30(
1558
1605
  "flex flex-wrap",
1559
1606
  gapSpace6[space],
1560
1607
  alignX && ((_b = (_a = alignment2) == null ? void 0 : _a.horizontal) == null ? void 0 : _b.alignmentX[alignX]),
@@ -1571,14 +1618,14 @@ import { DateField } from "react-aria-components";
1571
1618
 
1572
1619
  // src/DateField/DateInput.tsx
1573
1620
  import { DateInput, Group } from "react-aria-components";
1574
- import { useClassNames as useClassNames24 } from "@marigold/system";
1621
+ import { useClassNames as useClassNames27 } from "@marigold/system";
1575
1622
 
1576
1623
  // src/DateField/DateSegment.tsx
1577
1624
  import { DateSegment } from "react-aria-components";
1578
- import { cn as cn28 } from "@marigold/system";
1579
- import { Fragment as Fragment4, jsx as jsx43, jsxs as jsxs14 } from "react/jsx-runtime";
1625
+ import { cn as cn31 } from "@marigold/system";
1626
+ import { Fragment as Fragment3, jsx as jsx46, jsxs as jsxs15 } from "react/jsx-runtime";
1580
1627
  var _DateSegment = ({ segment, ...props }) => {
1581
- return /* @__PURE__ */ jsx43(
1628
+ return /* @__PURE__ */ jsx46(
1582
1629
  DateSegment,
1583
1630
  {
1584
1631
  ...props,
@@ -1586,31 +1633,31 @@ var _DateSegment = ({ segment, ...props }) => {
1586
1633
  style: {
1587
1634
  minWidth: segment.maxValue != null ? `${String(segment.maxValue).length}ch` : void 0
1588
1635
  },
1589
- children: ({ text, placeholder, isPlaceholder }) => /* @__PURE__ */ jsxs14(Fragment4, { children: [
1590
- /* @__PURE__ */ jsx43(
1636
+ children: ({ text, placeholder, isPlaceholder }) => /* @__PURE__ */ jsxs15(Fragment3, { children: [
1637
+ /* @__PURE__ */ jsx46(
1591
1638
  "span",
1592
1639
  {
1593
1640
  "aria-hidden": "true",
1594
- className: cn28(
1641
+ className: cn31(
1595
1642
  isPlaceholder ? "visible block" : "invisible hidden",
1596
1643
  "pointer-events-none w-full text-center"
1597
1644
  ),
1598
1645
  children: isPlaceholder && (placeholder == null ? void 0 : placeholder.toUpperCase())
1599
1646
  }
1600
1647
  ),
1601
- /* @__PURE__ */ jsx43("span", { children: isPlaceholder ? "" : segment.type === "month" || segment.type === "day" ? segment.text.padStart(2, "0") : text })
1648
+ /* @__PURE__ */ jsx46("span", { children: isPlaceholder ? "" : segment.type === "month" || segment.type === "day" ? segment.text.padStart(2, "0") : text })
1602
1649
  ] })
1603
1650
  }
1604
1651
  );
1605
1652
  };
1606
1653
 
1607
1654
  // src/DateField/DateInput.tsx
1608
- import { jsx as jsx44, jsxs as jsxs15 } from "react/jsx-runtime";
1655
+ import { jsx as jsx47, jsxs as jsxs16 } from "react/jsx-runtime";
1609
1656
  var _DateInput = ({ variant, size, action, ...props }) => {
1610
- const classNames2 = useClassNames24({ component: "DateField", variant, size });
1611
- return /* @__PURE__ */ jsxs15(Group, { className: classNames2.field, children: [
1612
- /* @__PURE__ */ jsx44(DateInput, { className: "flex flex-1 items-center", ...props, children: (segment) => /* @__PURE__ */ jsx44(_DateSegment, { className: classNames2.segment, segment }) }),
1613
- action ? action : /* @__PURE__ */ jsx44("div", { className: "flex items-center justify-center", children: /* @__PURE__ */ jsx44(
1657
+ const classNames2 = useClassNames27({ component: "DateField", variant, size });
1658
+ return /* @__PURE__ */ jsxs16(Group, { className: classNames2.field, children: [
1659
+ /* @__PURE__ */ jsx47(DateInput, { className: "flex flex-1 items-center", ...props, children: (segment) => /* @__PURE__ */ jsx47(_DateSegment, { className: classNames2.segment, segment }) }),
1660
+ action ? action : /* @__PURE__ */ jsx47("div", { className: "flex items-center justify-center", children: /* @__PURE__ */ jsx47(
1614
1661
  "svg",
1615
1662
  {
1616
1663
  "data-testid": "action",
@@ -1618,14 +1665,14 @@ var _DateInput = ({ variant, size, action, ...props }) => {
1618
1665
  viewBox: "0 0 24 24",
1619
1666
  width: 24,
1620
1667
  height: 24,
1621
- children: /* @__PURE__ */ jsx44("path", { d: "M20.0906 19.2V6.6C20.0906 5.61 19.2806 4.8 18.2906 4.8H17.3906V3H15.5906V4.8H8.39062V3H6.59062V4.8H5.69063C4.69163 4.8 3.89962 5.61 3.89962 6.6L3.89062 19.2C3.89062 20.19 4.69163 21 5.69063 21H18.2906C19.2806 21 20.0906 20.19 20.0906 19.2ZM9.29062 11.1001H7.49061V12.9001H9.29062V11.1001ZM5.69062 8.40009H18.2906V6.60008H5.69062V8.40009ZM18.2906 10.2V19.2H5.69062V10.2H18.2906ZM14.6906 12.9001H16.4906V11.1001H14.6906V12.9001ZM12.8906 12.9001H11.0906V11.1001H12.8906V12.9001Z" })
1668
+ children: /* @__PURE__ */ jsx47("path", { d: "M20.0906 19.2V6.6C20.0906 5.61 19.2806 4.8 18.2906 4.8H17.3906V3H15.5906V4.8H8.39062V3H6.59062V4.8H5.69063C4.69163 4.8 3.89962 5.61 3.89962 6.6L3.89062 19.2C3.89062 20.19 4.69163 21 5.69063 21H18.2906C19.2806 21 20.0906 20.19 20.0906 19.2ZM9.29062 11.1001H7.49061V12.9001H9.29062V11.1001ZM5.69062 8.40009H18.2906V6.60008H5.69062V8.40009ZM18.2906 10.2V19.2H5.69062V10.2H18.2906ZM14.6906 12.9001H16.4906V11.1001H14.6906V12.9001ZM12.8906 12.9001H11.0906V11.1001H12.8906V12.9001Z" })
1622
1669
  }
1623
1670
  ) })
1624
1671
  ] });
1625
1672
  };
1626
1673
 
1627
1674
  // src/DateField/DateField.tsx
1628
- import { jsx as jsx45 } from "react/jsx-runtime";
1675
+ import { jsx as jsx48 } from "react/jsx-runtime";
1629
1676
  var _DateField = forwardRef13(
1630
1677
  ({
1631
1678
  variant,
@@ -1644,7 +1691,7 @@ var _DateField = forwardRef13(
1644
1691
  isRequired: required,
1645
1692
  ...rest
1646
1693
  };
1647
- return /* @__PURE__ */ jsx45(
1694
+ return /* @__PURE__ */ jsx48(
1648
1695
  FieldBase,
1649
1696
  {
1650
1697
  as: DateField,
@@ -1652,7 +1699,7 @@ var _DateField = forwardRef13(
1652
1699
  size,
1653
1700
  ref,
1654
1701
  ...props,
1655
- children: /* @__PURE__ */ jsx45(_DateInput, { action })
1702
+ children: /* @__PURE__ */ jsx48(_DateInput, { action })
1656
1703
  }
1657
1704
  );
1658
1705
  }
@@ -1661,7 +1708,7 @@ var _DateField = forwardRef13(
1661
1708
  // src/Calendar/Calendar.tsx
1662
1709
  import { useState } from "react";
1663
1710
  import { Calendar } from "react-aria-components";
1664
- import { cn as cn32, useClassNames as useClassNames29 } from "@marigold/system";
1711
+ import { cn as cn35, useClassNames as useClassNames32 } from "@marigold/system";
1665
1712
 
1666
1713
  // src/Calendar/CalendarGrid.tsx
1667
1714
  import {
@@ -1669,7 +1716,7 @@ import {
1669
1716
  CalendarGrid,
1670
1717
  CalendarGridBody
1671
1718
  } from "react-aria-components";
1672
- import { cn as cn29, useClassNames as useClassNames26 } from "@marigold/system";
1719
+ import { cn as cn32, useClassNames as useClassNames29 } from "@marigold/system";
1673
1720
 
1674
1721
  // src/Calendar/CalendarGridHeader.tsx
1675
1722
  import { startOfWeek, today } from "@internationalized/date";
@@ -1677,8 +1724,8 @@ import { useContext as useContext7, useMemo } from "react";
1677
1724
  import { CalendarStateContext } from "react-aria-components";
1678
1725
  import { useCalendarGrid } from "@react-aria/calendar";
1679
1726
  import { useDateFormatter, useLocale } from "@react-aria/i18n";
1680
- import { useClassNames as useClassNames25 } from "@marigold/system";
1681
- import { jsx as jsx46 } from "react/jsx-runtime";
1727
+ import { useClassNames as useClassNames28 } from "@marigold/system";
1728
+ import { jsx as jsx49 } from "react/jsx-runtime";
1682
1729
  function CalendarGridHeader(props) {
1683
1730
  const state = useContext7(CalendarStateContext);
1684
1731
  const { headerProps } = useCalendarGrid(props, state);
@@ -1695,21 +1742,21 @@ function CalendarGridHeader(props) {
1695
1742
  return dayFormatter.format(dateDay);
1696
1743
  });
1697
1744
  }, [locale, state.timeZone, dayFormatter]);
1698
- const classNames2 = useClassNames25({ component: "Calendar" });
1699
- return /* @__PURE__ */ jsx46("thead", { ...headerProps, children: /* @__PURE__ */ jsx46("tr", { children: weekDays.map((day, index) => /* @__PURE__ */ jsx46("th", { className: classNames2.calendarHeader, children: day.substring(0, 2) }, index)) }) });
1745
+ const classNames2 = useClassNames28({ component: "Calendar" });
1746
+ return /* @__PURE__ */ jsx49("thead", { ...headerProps, children: /* @__PURE__ */ jsx49("tr", { children: weekDays.map((day, index) => /* @__PURE__ */ jsx49("th", { className: classNames2.calendarHeader, children: day.substring(0, 2) }, index)) }) });
1700
1747
  }
1701
1748
 
1702
1749
  // src/Calendar/CalendarGrid.tsx
1703
- import { jsx as jsx47, jsxs as jsxs16 } from "react/jsx-runtime";
1750
+ import { jsx as jsx50, jsxs as jsxs17 } from "react/jsx-runtime";
1704
1751
  var _CalendarGrid = () => {
1705
- const classNames2 = useClassNames26({ component: "Calendar" });
1706
- return /* @__PURE__ */ jsxs16(CalendarGrid, { className: classNames2.calendarGrid, children: [
1707
- /* @__PURE__ */ jsx47(CalendarGridHeader, {}),
1708
- /* @__PURE__ */ jsx47(CalendarGridBody, { children: (date) => /* @__PURE__ */ jsx47(
1752
+ const classNames2 = useClassNames29({ component: "Calendar" });
1753
+ return /* @__PURE__ */ jsxs17(CalendarGrid, { className: classNames2.calendarGrid, children: [
1754
+ /* @__PURE__ */ jsx50(CalendarGridHeader, {}),
1755
+ /* @__PURE__ */ jsx50(CalendarGridBody, { children: (date) => /* @__PURE__ */ jsx50(
1709
1756
  CalendarCell,
1710
1757
  {
1711
1758
  date,
1712
- className: cn29(
1759
+ className: cn32(
1713
1760
  "flex h-[30px] w-[30px] cursor-pointer items-center justify-center rounded-full p-[5.3px] text-sm font-normal aria-disabled:cursor-default",
1714
1761
  classNames2.calendarCell
1715
1762
  )
@@ -1722,7 +1769,7 @@ var _CalendarGrid = () => {
1722
1769
  import { useContext as useContext8 } from "react";
1723
1770
  import { CalendarStateContext as CalendarStateContext2 } from "react-aria-components";
1724
1771
  import { ChevronDown as ChevronDown2 } from "@marigold/icons";
1725
- import { cn as cn30, useClassNames as useClassNames27 } from "@marigold/system";
1772
+ import { cn as cn33, useClassNames as useClassNames30 } from "@marigold/system";
1726
1773
 
1727
1774
  // src/Calendar/useFormattedMonths.tsx
1728
1775
  import { useDateFormatter as useDateFormatter2 } from "@react-aria/i18n";
@@ -1741,7 +1788,7 @@ function useFormattedMonths(timeZone, focusedDate) {
1741
1788
  }
1742
1789
 
1743
1790
  // src/Calendar/CalendarListBox.tsx
1744
- import { jsx as jsx48, jsxs as jsxs17 } from "react/jsx-runtime";
1791
+ import { jsx as jsx51, jsxs as jsxs18 } from "react/jsx-runtime";
1745
1792
  function CalendarListBox({
1746
1793
  type,
1747
1794
  isDisabled,
@@ -1750,17 +1797,17 @@ function CalendarListBox({
1750
1797
  const state = useContext8(CalendarStateContext2);
1751
1798
  const months = useFormattedMonths(state.timeZone, state.focusedDate);
1752
1799
  const buttonStyles = "flex items-center justify-between gap-1 overflow-hidden";
1753
- const { select: selectClassNames } = useClassNames27({ component: "Select" });
1754
- return /* @__PURE__ */ jsxs17(
1800
+ const { select: selectClassNames } = useClassNames30({ component: "Select" });
1801
+ return /* @__PURE__ */ jsxs18(
1755
1802
  "button",
1756
1803
  {
1757
1804
  disabled: isDisabled,
1758
1805
  onClick: () => setSelectedDropdown(type),
1759
- className: cn30(buttonStyles, selectClassNames),
1806
+ className: cn33(buttonStyles, selectClassNames),
1760
1807
  "data-testid": type,
1761
1808
  children: [
1762
1809
  type === "month" ? months[state.focusedDate.month - 1].substring(0, 3) : state.focusedDate.year,
1763
- /* @__PURE__ */ jsx48(ChevronDown2, {})
1810
+ /* @__PURE__ */ jsx51(ChevronDown2, {})
1764
1811
  ]
1765
1812
  }
1766
1813
  );
@@ -1769,39 +1816,39 @@ function CalendarListBox({
1769
1816
  // src/Calendar/MonthControls.tsx
1770
1817
  import { Button as Button3 } from "react-aria-components";
1771
1818
  import { ChevronLeft, ChevronRight } from "@marigold/icons";
1772
- import { cn as cn31, useClassNames as useClassNames28 } from "@marigold/system";
1773
- import { jsx as jsx49, jsxs as jsxs18 } from "react/jsx-runtime";
1819
+ import { cn as cn34, useClassNames as useClassNames31 } from "@marigold/system";
1820
+ import { jsx as jsx52, jsxs as jsxs19 } from "react/jsx-runtime";
1774
1821
  function MonthControls() {
1775
- const classNames2 = useClassNames28({ component: "Calendar" });
1776
- const buttonClassNames = useClassNames28({ component: "Button" });
1777
- return /* @__PURE__ */ jsxs18(
1822
+ const classNames2 = useClassNames31({ component: "Calendar" });
1823
+ const buttonClassNames = useClassNames31({ component: "Button" });
1824
+ return /* @__PURE__ */ jsxs19(
1778
1825
  "div",
1779
1826
  {
1780
- className: cn31(
1827
+ className: cn34(
1781
1828
  "flex w-full flex-nowrap justify-end gap-[10px] [&_button:disabled]:cursor-not-allowed [&_button]:px-2 [&_button]:py-1",
1782
1829
  classNames2.calendarControllers
1783
1830
  ),
1784
1831
  children: [
1785
- /* @__PURE__ */ jsx49(
1832
+ /* @__PURE__ */ jsx52(
1786
1833
  Button3,
1787
1834
  {
1788
- className: cn31(
1835
+ className: cn34(
1789
1836
  "inline-flex items-center justify-center gap-[0.5ch]",
1790
1837
  buttonClassNames
1791
1838
  ),
1792
1839
  slot: "previous",
1793
- children: /* @__PURE__ */ jsx49(ChevronLeft, {})
1840
+ children: /* @__PURE__ */ jsx52(ChevronLeft, {})
1794
1841
  }
1795
1842
  ),
1796
- /* @__PURE__ */ jsx49(
1843
+ /* @__PURE__ */ jsx52(
1797
1844
  Button3,
1798
1845
  {
1799
- className: cn31(
1846
+ className: cn34(
1800
1847
  "inline-flex items-center justify-center gap-[0.5ch]",
1801
1848
  buttonClassNames
1802
1849
  ),
1803
1850
  slot: "next",
1804
- children: /* @__PURE__ */ jsx49(ChevronRight, {})
1851
+ children: /* @__PURE__ */ jsx52(ChevronRight, {})
1805
1852
  }
1806
1853
  )
1807
1854
  ]
@@ -1813,7 +1860,7 @@ var MonthControls_default = MonthControls;
1813
1860
  // src/Calendar/MonthListBox.tsx
1814
1861
  import { useContext as useContext9 } from "react";
1815
1862
  import { CalendarStateContext as CalendarStateContext3 } from "react-aria-components";
1816
- import { jsx as jsx50 } from "react/jsx-runtime";
1863
+ import { jsx as jsx53 } from "react/jsx-runtime";
1817
1864
  var MonthListBox = ({ setSelectedDropdown }) => {
1818
1865
  const state = useContext9(CalendarStateContext3);
1819
1866
  const months = useFormattedMonths(state.timeZone, state.focusedDate);
@@ -1822,13 +1869,13 @@ var MonthListBox = ({ setSelectedDropdown }) => {
1822
1869
  let date = state.focusedDate.set({ month: value });
1823
1870
  state.setFocusedDate(date);
1824
1871
  };
1825
- return /* @__PURE__ */ jsx50(
1872
+ return /* @__PURE__ */ jsx53(
1826
1873
  "ul",
1827
1874
  {
1828
1875
  "data-testid": "monthOptions",
1829
1876
  className: "grid h-full max-h-[300px] min-w-[300px] grid-cols-3 gap-y-10 overflow-y-scroll p-2",
1830
1877
  children: months.map((month, index) => {
1831
- return /* @__PURE__ */ jsx50("li", { className: "flex justify-center", children: /* @__PURE__ */ jsx50(
1878
+ return /* @__PURE__ */ jsx53("li", { className: "flex justify-center", children: /* @__PURE__ */ jsx53(
1832
1879
  _Button,
1833
1880
  {
1834
1881
  slot: "previous",
@@ -1856,7 +1903,7 @@ import {
1856
1903
  } from "react";
1857
1904
  import { CalendarStateContext as CalendarStateContext4 } from "react-aria-components";
1858
1905
  import { useDateFormatter as useDateFormatter3 } from "@react-aria/i18n";
1859
- import { jsx as jsx51 } from "react/jsx-runtime";
1906
+ import { jsx as jsx54 } from "react/jsx-runtime";
1860
1907
  var YearListBox = ({ setSelectedDropdown }) => {
1861
1908
  const state = useContext10(CalendarStateContext4);
1862
1909
  const years = [];
@@ -1886,19 +1933,19 @@ var YearListBox = ({ setSelectedDropdown }) => {
1886
1933
  let date = years[index].value;
1887
1934
  state.setFocusedDate(date);
1888
1935
  };
1889
- return /* @__PURE__ */ jsx51(
1936
+ return /* @__PURE__ */ jsx54(
1890
1937
  "ul",
1891
1938
  {
1892
1939
  "data-testid": "yearOptions",
1893
1940
  className: "grid h-full max-h-[300px] min-w-[300px] grid-cols-3 gap-y-10 overflow-y-scroll p-2",
1894
1941
  children: years.map((year, index) => {
1895
1942
  const isActive = +year.formatted === state.focusedDate.year;
1896
- return /* @__PURE__ */ jsx51("li", { className: "flex justify-center", children: /* @__PURE__ */ jsx51(
1943
+ return /* @__PURE__ */ jsx54("li", { className: "flex justify-center", children: /* @__PURE__ */ jsx54(
1897
1944
  "div",
1898
1945
  {
1899
1946
  ref: isActive ? activeButtonRef : null,
1900
1947
  style: { height: "100%", width: "100%" },
1901
- children: /* @__PURE__ */ jsx51(
1948
+ children: /* @__PURE__ */ jsx54(
1902
1949
  _Button,
1903
1950
  {
1904
1951
  slot: "previous",
@@ -1923,7 +1970,7 @@ var YearListBox = ({ setSelectedDropdown }) => {
1923
1970
  var YearListBox_default = YearListBox;
1924
1971
 
1925
1972
  // src/Calendar/Calendar.tsx
1926
- import { Fragment as Fragment5, jsx as jsx52, jsxs as jsxs19 } from "react/jsx-runtime";
1973
+ import { Fragment as Fragment4, jsx as jsx55, jsxs as jsxs20 } from "react/jsx-runtime";
1927
1974
  var _Calendar = ({
1928
1975
  disabled,
1929
1976
  readOnly,
@@ -1936,24 +1983,24 @@ var _Calendar = ({
1936
1983
  isReadOnly: readOnly,
1937
1984
  ...rest
1938
1985
  };
1939
- const classNames2 = useClassNames29({ component: "Calendar" });
1986
+ const classNames2 = useClassNames32({ component: "Calendar" });
1940
1987
  const [selectedDropdown, setSelectedDropdown] = useState();
1941
1988
  const ViewMap = {
1942
- month: /* @__PURE__ */ jsx52(MonthListBox_default, { setSelectedDropdown }),
1943
- year: /* @__PURE__ */ jsx52(YearListBox_default, { setSelectedDropdown })
1989
+ month: /* @__PURE__ */ jsx55(MonthListBox_default, { setSelectedDropdown }),
1990
+ year: /* @__PURE__ */ jsx55(YearListBox_default, { setSelectedDropdown })
1944
1991
  };
1945
- return /* @__PURE__ */ jsx52(
1992
+ return /* @__PURE__ */ jsx55(
1946
1993
  Calendar,
1947
1994
  {
1948
- className: cn32(
1995
+ className: cn35(
1949
1996
  "flex min-h-[350px] w-[360px] flex-col rounded-sm p-4",
1950
1997
  classNames2.calendar
1951
1998
  ),
1952
1999
  ...props,
1953
- children: selectedDropdown ? ViewMap[selectedDropdown] : /* @__PURE__ */ jsxs19(Fragment5, { children: [
1954
- /* @__PURE__ */ jsxs19("div", { className: "mb-4 flex items-center justify-between", children: [
1955
- /* @__PURE__ */ jsxs19("div", { className: "flex w-full gap-4", children: [
1956
- /* @__PURE__ */ jsx52(
2000
+ children: selectedDropdown ? ViewMap[selectedDropdown] : /* @__PURE__ */ jsxs20(Fragment4, { children: [
2001
+ /* @__PURE__ */ jsxs20("div", { className: "mb-4 flex items-center justify-between", children: [
2002
+ /* @__PURE__ */ jsxs20("div", { className: "flex w-full gap-4", children: [
2003
+ /* @__PURE__ */ jsx55(
1957
2004
  CalendarListBox,
1958
2005
  {
1959
2006
  type: "month",
@@ -1961,7 +2008,7 @@ var _Calendar = ({
1961
2008
  setSelectedDropdown
1962
2009
  }
1963
2010
  ),
1964
- /* @__PURE__ */ jsx52(
2011
+ /* @__PURE__ */ jsx55(
1965
2012
  CalendarListBox,
1966
2013
  {
1967
2014
  type: "year",
@@ -1970,9 +2017,9 @@ var _Calendar = ({
1970
2017
  }
1971
2018
  )
1972
2019
  ] }),
1973
- /* @__PURE__ */ jsx52(MonthControls_default, {})
2020
+ /* @__PURE__ */ jsx55(MonthControls_default, {})
1974
2021
  ] }),
1975
- /* @__PURE__ */ jsx52(_CalendarGrid, {})
2022
+ /* @__PURE__ */ jsx55(_CalendarGrid, {})
1976
2023
  ] })
1977
2024
  }
1978
2025
  );
@@ -1981,10 +2028,11 @@ var _Calendar = ({
1981
2028
  // src/DatePicker/DatePicker.tsx
1982
2029
  import React4 from "react";
1983
2030
  import { DatePicker } from "react-aria-components";
1984
- import { useClassNames as useClassNames30 } from "@marigold/system";
1985
- import { jsx as jsx53, jsxs as jsxs20 } from "react/jsx-runtime";
2031
+ import { useClassNames as useClassNames33 } from "@marigold/system";
2032
+ import { jsx as jsx56, jsxs as jsxs21 } from "react/jsx-runtime";
1986
2033
  var _DatePicker = React4.forwardRef(
1987
2034
  ({
2035
+ dateUnavailable,
1988
2036
  disabled,
1989
2037
  required,
1990
2038
  readOnly,
@@ -1996,6 +2044,7 @@ var _DatePicker = React4.forwardRef(
1996
2044
  ...rest
1997
2045
  }, ref) => {
1998
2046
  const props = {
2047
+ isDateUnavailable: dateUnavailable,
1999
2048
  isDisabled: disabled,
2000
2049
  isReadOnly: readOnly,
2001
2050
  isRequired: required,
@@ -2004,12 +2053,12 @@ var _DatePicker = React4.forwardRef(
2004
2053
  granularity,
2005
2054
  ...rest
2006
2055
  };
2007
- const classNames2 = useClassNames30({
2056
+ const classNames2 = useClassNames33({
2008
2057
  component: "DatePicker",
2009
2058
  size,
2010
2059
  variant
2011
2060
  });
2012
- return /* @__PURE__ */ jsxs20(
2061
+ return /* @__PURE__ */ jsxs21(
2013
2062
  FieldBase,
2014
2063
  {
2015
2064
  as: DatePicker,
@@ -2018,16 +2067,16 @@ var _DatePicker = React4.forwardRef(
2018
2067
  ...props,
2019
2068
  ref,
2020
2069
  children: [
2021
- /* @__PURE__ */ jsx53(
2070
+ /* @__PURE__ */ jsx56(
2022
2071
  _DateInput,
2023
2072
  {
2024
- action: /* @__PURE__ */ jsx53("div", { className: classNames2.container, children: /* @__PURE__ */ jsx53(
2073
+ action: /* @__PURE__ */ jsx56("div", { className: classNames2.container, children: /* @__PURE__ */ jsx56(
2025
2074
  _Button,
2026
2075
  {
2027
2076
  size: "small",
2028
2077
  disabled,
2029
2078
  className: classNames2.button,
2030
- children: /* @__PURE__ */ jsx53(
2079
+ children: /* @__PURE__ */ jsx56(
2031
2080
  "svg",
2032
2081
  {
2033
2082
  "data-testid": "action",
@@ -2035,14 +2084,14 @@ var _DatePicker = React4.forwardRef(
2035
2084
  width: 24,
2036
2085
  height: 24,
2037
2086
  fill: "currentColor",
2038
- children: /* @__PURE__ */ jsx53("path", { d: "M20.0906 19.2V6.6C20.0906 5.61 19.2806 4.8 18.2906 4.8H17.3906V3H15.5906V4.8H8.39062V3H6.59062V4.8H5.69063C4.69163 4.8 3.89962 5.61 3.89962 6.6L3.89062 19.2C3.89062 20.19 4.69163 21 5.69063 21H18.2906C19.2806 21 20.0906 20.19 20.0906 19.2ZM9.29062 11.1001H7.49061V12.9001H9.29062V11.1001ZM5.69062 8.40009H18.2906V6.60008H5.69062V8.40009ZM18.2906 10.2V19.2H5.69062V10.2H18.2906ZM14.6906 12.9001H16.4906V11.1001H14.6906V12.9001ZM12.8906 12.9001H11.0906V11.1001H12.8906V12.9001Z" })
2087
+ children: /* @__PURE__ */ jsx56("path", { d: "M20.0906 19.2V6.6C20.0906 5.61 19.2806 4.8 18.2906 4.8H17.3906V3H15.5906V4.8H8.39062V3H6.59062V4.8H5.69063C4.69163 4.8 3.89962 5.61 3.89962 6.6L3.89062 19.2C3.89062 20.19 4.69163 21 5.69063 21H18.2906C19.2806 21 20.0906 20.19 20.0906 19.2ZM9.29062 11.1001H7.49061V12.9001H9.29062V11.1001ZM5.69062 8.40009H18.2906V6.60008H5.69062V8.40009ZM18.2906 10.2V19.2H5.69062V10.2H18.2906ZM14.6906 12.9001H16.4906V11.1001H14.6906V12.9001ZM12.8906 12.9001H11.0906V11.1001H12.8906V12.9001Z" })
2039
2088
  }
2040
2089
  )
2041
2090
  }
2042
2091
  ) })
2043
2092
  }
2044
2093
  ),
2045
- /* @__PURE__ */ jsx53(_Popover, { children: /* @__PURE__ */ jsx53(_Calendar, { disabled }) })
2094
+ /* @__PURE__ */ jsx56(_Popover, { children: /* @__PURE__ */ jsx56(_Calendar, { disabled }) })
2046
2095
  ]
2047
2096
  }
2048
2097
  );
@@ -2051,16 +2100,16 @@ var _DatePicker = React4.forwardRef(
2051
2100
 
2052
2101
  // src/Inset/Inset.tsx
2053
2102
  import {
2054
- cn as cn33,
2103
+ cn as cn36,
2055
2104
  paddingSpace as paddingSpace2,
2056
2105
  paddingSpaceX as paddingSpaceX2,
2057
2106
  paddingSpaceY as paddingSpaceY2
2058
2107
  } from "@marigold/system";
2059
- import { jsx as jsx54 } from "react/jsx-runtime";
2060
- var Inset = ({ space, spaceX, spaceY, children }) => /* @__PURE__ */ jsx54(
2108
+ import { jsx as jsx57 } from "react/jsx-runtime";
2109
+ var Inset = ({ space, spaceX, spaceY, children }) => /* @__PURE__ */ jsx57(
2061
2110
  "div",
2062
2111
  {
2063
- className: cn33(
2112
+ className: cn36(
2064
2113
  space && paddingSpace2[space],
2065
2114
  !space && spaceX && paddingSpaceX2[spaceX],
2066
2115
  !space && spaceY && paddingSpaceY2[spaceY]
@@ -2072,21 +2121,21 @@ var Inset = ({ space, spaceX, spaceY, children }) => /* @__PURE__ */ jsx54(
2072
2121
  // src/Link/Link.tsx
2073
2122
  import { forwardRef as forwardRef14 } from "react";
2074
2123
  import { Link } from "react-aria-components";
2075
- import { useClassNames as useClassNames31 } from "@marigold/system";
2076
- import { jsx as jsx55 } from "react/jsx-runtime";
2124
+ import { useClassNames as useClassNames34 } from "@marigold/system";
2125
+ import { jsx as jsx58 } from "react/jsx-runtime";
2077
2126
  var _Link = forwardRef14(
2078
2127
  ({ variant, size, disabled, children, ...props }, ref) => {
2079
- const classNames2 = useClassNames31({
2128
+ const classNames2 = useClassNames34({
2080
2129
  component: "Link",
2081
2130
  variant,
2082
2131
  size
2083
2132
  });
2084
- return /* @__PURE__ */ jsx55(Link, { ...props, ref, className: classNames2, isDisabled: disabled, children });
2133
+ return /* @__PURE__ */ jsx58(Link, { ...props, ref, className: classNames2, isDisabled: disabled, children });
2085
2134
  }
2086
2135
  );
2087
2136
 
2088
2137
  // src/List/List.tsx
2089
- import { useClassNames as useClassNames32 } from "@marigold/system";
2138
+ import { useClassNames as useClassNames35 } from "@marigold/system";
2090
2139
 
2091
2140
  // src/List/Context.ts
2092
2141
  import { createContext as createContext5, useContext as useContext11 } from "react";
@@ -2094,14 +2143,14 @@ var ListContext = createContext5({});
2094
2143
  var useListContext = () => useContext11(ListContext);
2095
2144
 
2096
2145
  // src/List/ListItem.tsx
2097
- import { jsx as jsx56 } from "react/jsx-runtime";
2146
+ import { jsx as jsx59 } from "react/jsx-runtime";
2098
2147
  var ListItem = ({ children, ...props }) => {
2099
2148
  const { classNames: classNames2 } = useListContext();
2100
- return /* @__PURE__ */ jsx56("li", { ...props, className: classNames2, children });
2149
+ return /* @__PURE__ */ jsx59("li", { ...props, className: classNames2, children });
2101
2150
  };
2102
2151
 
2103
2152
  // src/List/List.tsx
2104
- import { jsx as jsx57 } from "react/jsx-runtime";
2153
+ import { jsx as jsx60 } from "react/jsx-runtime";
2105
2154
  var List = ({
2106
2155
  as = "ul",
2107
2156
  children,
@@ -2110,38 +2159,38 @@ var List = ({
2110
2159
  ...props
2111
2160
  }) => {
2112
2161
  const Component = as;
2113
- const classNames2 = useClassNames32({ component: "List", variant, size });
2114
- return /* @__PURE__ */ jsx57(Component, { ...props, className: classNames2[as], children: /* @__PURE__ */ jsx57(ListContext.Provider, { value: { classNames: classNames2.item }, children }) });
2162
+ const classNames2 = useClassNames35({ component: "List", variant, size });
2163
+ return /* @__PURE__ */ jsx60(Component, { ...props, className: classNames2[as], children: /* @__PURE__ */ jsx60(ListContext.Provider, { value: { classNames: classNames2.item }, children }) });
2115
2164
  };
2116
2165
  List.Item = ListItem;
2117
2166
 
2118
2167
  // src/Menu/Menu.tsx
2119
2168
  import { Menu, MenuTrigger } from "react-aria-components";
2120
- import { useClassNames as useClassNames35 } from "@marigold/system";
2169
+ import { useClassNames as useClassNames38 } from "@marigold/system";
2121
2170
 
2122
2171
  // src/Menu/MenuItem.tsx
2123
2172
  import { MenuItem } from "react-aria-components";
2124
- import { useClassNames as useClassNames33 } from "@marigold/system";
2125
- import { jsx as jsx58 } from "react/jsx-runtime";
2173
+ import { useClassNames as useClassNames36 } from "@marigold/system";
2174
+ import { jsx as jsx61 } from "react/jsx-runtime";
2126
2175
  var _MenuItem = ({ children, ...props }) => {
2127
- const classNames2 = useClassNames33({ component: "Menu" });
2128
- return /* @__PURE__ */ jsx58(MenuItem, { ...props, className: classNames2.item, children });
2176
+ const classNames2 = useClassNames36({ component: "Menu" });
2177
+ return /* @__PURE__ */ jsx61(MenuItem, { ...props, className: classNames2.item, children });
2129
2178
  };
2130
2179
 
2131
2180
  // src/Menu/MenuSection.tsx
2132
2181
  import { Section as Section2 } from "react-aria-components";
2133
- import { useClassNames as useClassNames34 } from "@marigold/system";
2134
- import { jsx as jsx59, jsxs as jsxs21 } from "react/jsx-runtime";
2182
+ import { useClassNames as useClassNames37 } from "@marigold/system";
2183
+ import { jsx as jsx62, jsxs as jsxs22 } from "react/jsx-runtime";
2135
2184
  var _MenuSection = ({ children, title, ...props }) => {
2136
- const className = useClassNames34({ component: "Menu" });
2137
- return /* @__PURE__ */ jsxs21(Section2, { ...props, children: [
2138
- /* @__PURE__ */ jsx59(_Header, { className: className.section, children: title }),
2185
+ const className = useClassNames37({ component: "Menu" });
2186
+ return /* @__PURE__ */ jsxs22(Section2, { ...props, children: [
2187
+ /* @__PURE__ */ jsx62(_Header, { className: className.section, children: title }),
2139
2188
  children
2140
2189
  ] });
2141
2190
  };
2142
2191
 
2143
2192
  // src/Menu/Menu.tsx
2144
- import { jsx as jsx60, jsxs as jsxs22 } from "react/jsx-runtime";
2193
+ import { jsx as jsx63, jsxs as jsxs23 } from "react/jsx-runtime";
2145
2194
  var _Menu = ({
2146
2195
  children,
2147
2196
  label,
@@ -2150,12 +2199,13 @@ var _Menu = ({
2150
2199
  disabled,
2151
2200
  open,
2152
2201
  placement,
2202
+ "aria-label": ariaLabel,
2153
2203
  ...props
2154
2204
  }) => {
2155
- const classNames2 = useClassNames35({ component: "Menu", variant, size });
2156
- return /* @__PURE__ */ jsxs22(MenuTrigger, { ...props, children: [
2157
- /* @__PURE__ */ jsx60(_Button, { variant: "menu", disabled, children: label }),
2158
- /* @__PURE__ */ jsx60(_Popover, { open, placement, children: /* @__PURE__ */ jsx60(Menu, { ...props, className: classNames2.container, children }) })
2205
+ const classNames2 = useClassNames38({ component: "Menu", variant, size });
2206
+ return /* @__PURE__ */ jsxs23(MenuTrigger, { ...props, children: [
2207
+ /* @__PURE__ */ jsx63(_Button, { variant: "menu", disabled, "aria-label": ariaLabel, children: label }),
2208
+ /* @__PURE__ */ jsx63(_Popover, { open, placement, children: /* @__PURE__ */ jsx63(Menu, { ...props, className: classNames2.container, children }) })
2159
2209
  ] });
2160
2210
  };
2161
2211
  _Menu.Item = _MenuItem;
@@ -2163,23 +2213,24 @@ _Menu.Section = _MenuSection;
2163
2213
 
2164
2214
  // src/Menu/ActionMenu.tsx
2165
2215
  import { Menu as Menu2, MenuTrigger as MenuTrigger2 } from "react-aria-components";
2166
- import { SVG as SVG4, useClassNames as useClassNames36 } from "@marigold/system";
2167
- import { jsx as jsx61, jsxs as jsxs23 } from "react/jsx-runtime";
2216
+ import { SVG as SVG4, useClassNames as useClassNames39 } from "@marigold/system";
2217
+ import { jsx as jsx64, jsxs as jsxs24 } from "react/jsx-runtime";
2168
2218
  var ActionMenu = ({
2169
2219
  variant,
2170
2220
  size,
2171
2221
  disabled,
2172
2222
  ...props
2173
2223
  }) => {
2174
- const classNames2 = useClassNames36({ component: "Menu", variant, size });
2175
- return /* @__PURE__ */ jsxs23(MenuTrigger2, { children: [
2176
- /* @__PURE__ */ jsx61(_Button, { variant: "menu", size: "small", disabled, children: /* @__PURE__ */ jsx61(SVG4, { viewBox: "0 0 24 24", children: /* @__PURE__ */ jsx61("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" }) }) }),
2177
- /* @__PURE__ */ jsx61(_Popover, { children: /* @__PURE__ */ jsx61(Menu2, { ...props, className: classNames2.container, children: props.children }) })
2224
+ const classNames2 = useClassNames39({ component: "Menu", variant, size });
2225
+ return /* @__PURE__ */ jsxs24(MenuTrigger2, { children: [
2226
+ /* @__PURE__ */ jsx64(_Button, { variant: "menu", size: "small", disabled, children: /* @__PURE__ */ jsx64(SVG4, { viewBox: "0 0 24 24", children: /* @__PURE__ */ jsx64("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" }) }) }),
2227
+ /* @__PURE__ */ jsx64(_Popover, { children: /* @__PURE__ */ jsx64(Menu2, { ...props, className: classNames2.container, children: props.children }) })
2178
2228
  ] });
2179
2229
  };
2180
2230
 
2181
2231
  // src/SectionMessage/SectionMessage.tsx
2182
- import { cn as cn36, useClassNames as useClassNames37 } from "@marigold/system";
2232
+ import { useState as useState2 } from "react";
2233
+ import { cn as cn39, useClassNames as useClassNames40 } from "@marigold/system";
2183
2234
 
2184
2235
  // src/SectionMessage/Context.tsx
2185
2236
  import { createContext as createContext6, useContext as useContext12 } from "react";
@@ -2187,33 +2238,33 @@ var SectionMessageContext = createContext6({});
2187
2238
  var useSectionMessageContext = () => useContext12(SectionMessageContext);
2188
2239
 
2189
2240
  // src/SectionMessage/SectionMessageContent.tsx
2190
- import { cn as cn34 } from "@marigold/system";
2191
- import { jsx as jsx62 } from "react/jsx-runtime";
2241
+ import { cn as cn37 } from "@marigold/system";
2242
+ import { jsx as jsx65 } from "react/jsx-runtime";
2192
2243
  var SectionMessageContent = ({
2193
2244
  children
2194
2245
  }) => {
2195
2246
  const { classNames: classNames2 } = useSectionMessageContext();
2196
- return /* @__PURE__ */ jsx62("div", { className: cn34("[grid-area:content]", classNames2.content), children });
2247
+ return /* @__PURE__ */ jsx65("div", { className: cn37("[grid-area:content]", classNames2.content), children });
2197
2248
  };
2198
2249
 
2199
2250
  // src/SectionMessage/SectionMessageTitle.tsx
2200
- import { cn as cn35 } from "@marigold/system";
2201
- import { jsx as jsx63 } from "react/jsx-runtime";
2251
+ import { cn as cn38 } from "@marigold/system";
2252
+ import { jsx as jsx66 } from "react/jsx-runtime";
2202
2253
  var SectionMessageTitle = ({ children }) => {
2203
2254
  const { classNames: classNames2 } = useSectionMessageContext();
2204
- return /* @__PURE__ */ jsx63("div", { className: cn35("[grid-area:title]", classNames2.title), children });
2255
+ return /* @__PURE__ */ jsx66("div", { className: cn38("[grid-area:title]", classNames2.title), children });
2205
2256
  };
2206
2257
 
2207
2258
  // src/SectionMessage/SectionMessage.tsx
2208
- import { jsx as jsx64, jsxs as jsxs24 } from "react/jsx-runtime";
2259
+ import { jsx as jsx67, jsxs as jsxs25 } from "react/jsx-runtime";
2209
2260
  var icons = {
2210
- success: () => /* @__PURE__ */ jsx64(
2261
+ success: () => /* @__PURE__ */ jsx67(
2211
2262
  "svg",
2212
2263
  {
2213
2264
  xmlns: "http://www.w3.org/2000/svg",
2214
2265
  viewBox: "0 0 24 24",
2215
2266
  fill: "currentColor",
2216
- children: /* @__PURE__ */ jsx64(
2267
+ children: /* @__PURE__ */ jsx67(
2217
2268
  "path",
2218
2269
  {
2219
2270
  fillRule: "evenodd",
@@ -2223,13 +2274,13 @@ var icons = {
2223
2274
  )
2224
2275
  }
2225
2276
  ),
2226
- info: () => /* @__PURE__ */ jsx64(
2277
+ info: () => /* @__PURE__ */ jsx67(
2227
2278
  "svg",
2228
2279
  {
2229
2280
  xmlns: "http://www.w3.org/2000/svg",
2230
2281
  viewBox: "0 0 24 24",
2231
2282
  fill: "currentColor",
2232
- children: /* @__PURE__ */ jsx64(
2283
+ children: /* @__PURE__ */ jsx67(
2233
2284
  "path",
2234
2285
  {
2235
2286
  fillRule: "evenodd",
@@ -2239,13 +2290,13 @@ var icons = {
2239
2290
  )
2240
2291
  }
2241
2292
  ),
2242
- warning: () => /* @__PURE__ */ jsx64(
2293
+ warning: () => /* @__PURE__ */ jsx67(
2243
2294
  "svg",
2244
2295
  {
2245
2296
  xmlns: "http://www.w3.org/2000/svg",
2246
2297
  viewBox: "0 0 24 24",
2247
2298
  fill: "currentColor",
2248
- children: /* @__PURE__ */ jsx64(
2299
+ children: /* @__PURE__ */ jsx67(
2249
2300
  "path",
2250
2301
  {
2251
2302
  fillRule: "evenodd",
@@ -2255,13 +2306,13 @@ var icons = {
2255
2306
  )
2256
2307
  }
2257
2308
  ),
2258
- error: () => /* @__PURE__ */ jsx64(
2309
+ error: () => /* @__PURE__ */ jsx67(
2259
2310
  "svg",
2260
2311
  {
2261
2312
  xmlns: "http://www.w3.org/2000/svg",
2262
2313
  viewBox: "0 0 24 24",
2263
2314
  fill: "currentColor",
2264
- children: /* @__PURE__ */ jsx64(
2315
+ children: /* @__PURE__ */ jsx67(
2265
2316
  "path",
2266
2317
  {
2267
2318
  fillRule: "evenodd",
@@ -2276,29 +2327,51 @@ var SectionMessage = ({
2276
2327
  variant = "info",
2277
2328
  size,
2278
2329
  children,
2330
+ closeButton,
2279
2331
  ...props
2280
2332
  }) => {
2281
- const classNames2 = useClassNames37({
2333
+ const classNames2 = useClassNames40({
2282
2334
  component: "SectionMessage",
2283
2335
  variant,
2284
2336
  size
2285
2337
  });
2286
2338
  const Icon4 = icons[variant];
2287
- return /* @__PURE__ */ jsx64(SectionMessageContext.Provider, { value: { classNames: classNames2 }, children: /* @__PURE__ */ jsxs24(
2339
+ const [isVisible, setIsVisible] = useState2(true);
2340
+ const handleClose = () => {
2341
+ setIsVisible(false);
2342
+ };
2343
+ if (!isVisible) return null;
2344
+ return /* @__PURE__ */ jsx67(SectionMessageContext.Provider, { value: { classNames: classNames2 }, children: /* @__PURE__ */ jsxs25(
2288
2345
  "div",
2289
2346
  {
2290
2347
  role: variant === "error" ? "alert" : void 0,
2291
2348
  ...props,
2292
- className: cn36("grid auto-rows-min", classNames2.container),
2349
+ className: cn39("grid auto-rows-min", classNames2.container),
2293
2350
  children: [
2294
- /* @__PURE__ */ jsx64(
2351
+ /* @__PURE__ */ jsx67(
2295
2352
  "div",
2296
2353
  {
2297
- className: cn36(
2354
+ className: cn39(
2298
2355
  "h-5 w-5 self-center [grid-area:icon]",
2299
2356
  classNames2.icon
2300
2357
  ),
2301
- children: /* @__PURE__ */ jsx64(Icon4, {})
2358
+ children: Icon4 && /* @__PURE__ */ jsx67(Icon4, {})
2359
+ }
2360
+ ),
2361
+ closeButton && /* @__PURE__ */ jsx67(
2362
+ "button",
2363
+ {
2364
+ "aria-label": "close",
2365
+ className: "h-5 w-5 cursor-pointer border-none p-0 leading-normal outline-0 [grid-area:close]",
2366
+ onClick: handleClose,
2367
+ children: /* @__PURE__ */ jsx67("svg", { viewBox: "0 0 20 20", fill: "currentColor", "aria-hidden": "true", children: /* @__PURE__ */ jsx67(
2368
+ "path",
2369
+ {
2370
+ fillRule: "evenodd",
2371
+ clipRule: "evenodd",
2372
+ 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"
2373
+ }
2374
+ ) })
2302
2375
  }
2303
2376
  ),
2304
2377
  children
@@ -2310,17 +2383,17 @@ SectionMessage.Title = SectionMessageTitle;
2310
2383
  SectionMessage.Content = SectionMessageContent;
2311
2384
 
2312
2385
  // src/Multiselect/Multiselect.tsx
2313
- import { Children as Children5, useState as useState2 } from "react";
2386
+ import { Children as Children5, useState as useState3 } from "react";
2314
2387
  import { useListData as useListData2 } from "@react-stately/data";
2315
2388
 
2316
2389
  // src/TagGroup/Tag.tsx
2317
2390
  import { Button as Button4, Tag } from "react-aria-components";
2318
- import { cn as cn37, useClassNames as useClassNames39 } from "@marigold/system";
2391
+ import { cn as cn40, useClassNames as useClassNames42 } from "@marigold/system";
2319
2392
 
2320
2393
  // src/TagGroup/TagGroup.tsx
2321
2394
  import { TagGroup, TagList } from "react-aria-components";
2322
- import { useClassNames as useClassNames38 } from "@marigold/system";
2323
- import { jsx as jsx65 } from "react/jsx-runtime";
2395
+ import { useClassNames as useClassNames41 } from "@marigold/system";
2396
+ import { jsx as jsx68 } from "react/jsx-runtime";
2324
2397
  var _TagGroup = ({
2325
2398
  width,
2326
2399
  items,
@@ -2330,8 +2403,8 @@ var _TagGroup = ({
2330
2403
  size,
2331
2404
  ...rest
2332
2405
  }) => {
2333
- const classNames2 = useClassNames38({ component: "Tag", variant, size });
2334
- return /* @__PURE__ */ jsx65(FieldBase, { as: TagGroup, ...rest, children: /* @__PURE__ */ jsx65(
2406
+ const classNames2 = useClassNames41({ component: "Tag", variant, size });
2407
+ return /* @__PURE__ */ jsx68(FieldBase, { as: TagGroup, ...rest, children: /* @__PURE__ */ jsx68(
2335
2408
  TagList,
2336
2409
  {
2337
2410
  items,
@@ -2343,25 +2416,25 @@ var _TagGroup = ({
2343
2416
  };
2344
2417
 
2345
2418
  // src/TagGroup/Tag.tsx
2346
- import { Fragment as Fragment6, jsx as jsx66, jsxs as jsxs25 } from "react/jsx-runtime";
2419
+ import { Fragment as Fragment5, jsx as jsx69, jsxs as jsxs26 } from "react/jsx-runtime";
2347
2420
  var CloseButton2 = ({ className }) => {
2348
- return /* @__PURE__ */ jsx66(Button4, { slot: "remove", className, children: /* @__PURE__ */ jsx66("svg", { viewBox: "0 0 20 20", fill: "currentColor", width: 20, height: 20, children: /* @__PURE__ */ jsx66("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" }) }) });
2421
+ return /* @__PURE__ */ jsx69(Button4, { slot: "remove", className, children: /* @__PURE__ */ jsx69("svg", { viewBox: "0 0 20 20", fill: "currentColor", width: 20, height: 20, children: /* @__PURE__ */ jsx69("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" }) }) });
2349
2422
  };
2350
2423
  var _Tag = ({ variant, size, children, ...props }) => {
2351
2424
  let textValue = typeof children === "string" ? children : void 0;
2352
- const classNames2 = useClassNames39({ component: "Tag", variant, size });
2353
- return /* @__PURE__ */ jsx66(
2425
+ const classNames2 = useClassNames42({ component: "Tag", variant, size });
2426
+ return /* @__PURE__ */ jsx69(
2354
2427
  Tag,
2355
2428
  {
2356
2429
  textValue,
2357
2430
  ...props,
2358
- className: cn37("data-[selection-mode]:cursor-pointer", classNames2.tag),
2359
- children: ({ allowsRemoving }) => /* @__PURE__ */ jsxs25(Fragment6, { children: [
2431
+ className: cn40("data-[selection-mode]:cursor-pointer", classNames2.tag),
2432
+ children: ({ allowsRemoving }) => /* @__PURE__ */ jsxs26(Fragment5, { children: [
2360
2433
  children,
2361
- allowsRemoving && /* @__PURE__ */ jsx66(
2434
+ allowsRemoving && /* @__PURE__ */ jsx69(
2362
2435
  CloseButton2,
2363
2436
  {
2364
- className: cn37("flex items-center", classNames2.closeButton)
2437
+ className: cn40("flex items-center", classNames2.closeButton)
2365
2438
  }
2366
2439
  )
2367
2440
  ] })
@@ -2371,7 +2444,7 @@ var _Tag = ({ variant, size, children, ...props }) => {
2371
2444
  _Tag.Group = _TagGroup;
2372
2445
 
2373
2446
  // src/Multiselect/Multiselect.tsx
2374
- import { jsx as jsx67, jsxs as jsxs26 } from "react/jsx-runtime";
2447
+ import { jsx as jsx70, jsxs as jsxs27 } from "react/jsx-runtime";
2375
2448
  var Item2 = (_) => null;
2376
2449
  var Multiselect = ({
2377
2450
  label,
@@ -2397,7 +2470,7 @@ var Multiselect = ({
2397
2470
  }
2398
2471
  list.setSelectedKeys(next);
2399
2472
  };
2400
- const [value, setValue] = useState2("");
2473
+ const [value, setValue] = useState3("");
2401
2474
  const selectItem = (key) => {
2402
2475
  if (list.selectedKeys !== "all") {
2403
2476
  const next = list.selectedKeys.add(key);
@@ -2409,18 +2482,18 @@ var Multiselect = ({
2409
2482
  }, 0);
2410
2483
  input.focus();
2411
2484
  };
2412
- return /* @__PURE__ */ jsxs26("div", { className: "flex flex-wrap gap-1", children: [
2413
- /* @__PURE__ */ jsx67(
2485
+ return /* @__PURE__ */ jsxs27("div", { className: "flex flex-wrap gap-1", children: [
2486
+ /* @__PURE__ */ jsx70(
2414
2487
  _Tag.Group,
2415
2488
  {
2416
2489
  items: selected,
2417
2490
  allowsRemoving: true,
2418
2491
  onRemove: setUnselected,
2419
2492
  renderEmptyState: () => null,
2420
- children: (item) => /* @__PURE__ */ jsx67(_Tag, { id: item.id, children: item.children }, item.id)
2493
+ children: (item) => /* @__PURE__ */ jsx70(_Tag, { id: item.id, children: item.children }, item.id)
2421
2494
  }
2422
2495
  ),
2423
- /* @__PURE__ */ jsx67(
2496
+ /* @__PURE__ */ jsx70(
2424
2497
  _ComboBox,
2425
2498
  {
2426
2499
  value,
@@ -2430,7 +2503,7 @@ var Multiselect = ({
2430
2503
  disabled: unselected.length === 0,
2431
2504
  placeholder: unselected.length === 0 ? "All items selected" : "",
2432
2505
  ...props,
2433
- children: unselected.map((item) => /* @__PURE__ */ jsx67(_ComboBox.Item, { id: item.id, children: item.children }, item.id))
2506
+ children: unselected.map((item) => /* @__PURE__ */ jsx70(_ComboBox.Option, { id: item.id, children: item.children }, item.id))
2434
2507
  }
2435
2508
  )
2436
2509
  ] });
@@ -2440,13 +2513,13 @@ Multiselect.Item = Item2;
2440
2513
  // src/NumberField/NumberField.tsx
2441
2514
  import { forwardRef as forwardRef15 } from "react";
2442
2515
  import { Group as Group2, NumberField } from "react-aria-components";
2443
- import { cn as cn39, useClassNames as useClassNames40 } from "@marigold/system";
2516
+ import { cn as cn42, useClassNames as useClassNames43 } from "@marigold/system";
2444
2517
 
2445
2518
  // src/NumberField/StepButton.tsx
2446
2519
  import { Button as Button5 } from "react-aria-components";
2447
- import { cn as cn38 } from "@marigold/system";
2448
- import { jsx as jsx68 } from "react/jsx-runtime";
2449
- var Plus = () => /* @__PURE__ */ jsx68("svg", { width: 16, height: 16, viewBox: "0 0 20 20", fill: "currentColor", children: /* @__PURE__ */ jsx68(
2520
+ import { cn as cn41 } from "@marigold/system";
2521
+ import { jsx as jsx71 } from "react/jsx-runtime";
2522
+ var Plus = () => /* @__PURE__ */ jsx71("svg", { width: 16, height: 16, viewBox: "0 0 20 20", fill: "currentColor", children: /* @__PURE__ */ jsx71(
2450
2523
  "path",
2451
2524
  {
2452
2525
  fillRule: "evenodd",
@@ -2454,7 +2527,7 @@ var Plus = () => /* @__PURE__ */ jsx68("svg", { width: 16, height: 16, viewBox:
2454
2527
  d: "M10 3a1 1 0 011 1v5h5a1 1 0 110 2h-5v5a1 1 0 11-2 0v-5H4a1 1 0 110-2h5V4a1 1 0 011-1z"
2455
2528
  }
2456
2529
  ) });
2457
- var Minus = () => /* @__PURE__ */ jsx68("svg", { width: 16, height: 16, viewBox: "0 0 20 20", fill: "currentColor", children: /* @__PURE__ */ jsx68(
2530
+ var Minus = () => /* @__PURE__ */ jsx71("svg", { width: 16, height: 16, viewBox: "0 0 20 20", fill: "currentColor", children: /* @__PURE__ */ jsx71(
2458
2531
  "path",
2459
2532
  {
2460
2533
  fillRule: "evenodd",
@@ -2464,10 +2537,10 @@ var Minus = () => /* @__PURE__ */ jsx68("svg", { width: 16, height: 16, viewBox:
2464
2537
  ) });
2465
2538
  var _StepButton = ({ direction, className, ...props }) => {
2466
2539
  const Icon4 = direction === "up" ? Plus : Minus;
2467
- return /* @__PURE__ */ jsx68(
2540
+ return /* @__PURE__ */ jsx71(
2468
2541
  Button5,
2469
2542
  {
2470
- className: cn38(
2543
+ className: cn41(
2471
2544
  [
2472
2545
  "flex items-center justify-center",
2473
2546
  "cursor-pointer data-[disabled]:cursor-not-allowed"
@@ -2475,13 +2548,13 @@ var _StepButton = ({ direction, className, ...props }) => {
2475
2548
  className
2476
2549
  ),
2477
2550
  ...props,
2478
- children: /* @__PURE__ */ jsx68(Icon4, {})
2551
+ children: /* @__PURE__ */ jsx71(Icon4, {})
2479
2552
  }
2480
2553
  );
2481
2554
  };
2482
2555
 
2483
2556
  // src/NumberField/NumberField.tsx
2484
- import { jsx as jsx69, jsxs as jsxs27 } from "react/jsx-runtime";
2557
+ import { jsx as jsx72, jsxs as jsxs28 } from "react/jsx-runtime";
2485
2558
  var _NumberField = forwardRef15(
2486
2559
  ({
2487
2560
  variant,
@@ -2493,7 +2566,7 @@ var _NumberField = forwardRef15(
2493
2566
  hideStepper,
2494
2567
  ...rest
2495
2568
  }, ref) => {
2496
- const classNames2 = useClassNames40({
2569
+ const classNames2 = useClassNames43({
2497
2570
  component: "NumberField",
2498
2571
  size,
2499
2572
  variant
@@ -2506,8 +2579,8 @@ var _NumberField = forwardRef15(
2506
2579
  ...rest
2507
2580
  };
2508
2581
  const showStepper = !hideStepper;
2509
- return /* @__PURE__ */ jsx69(FieldBase, { as: NumberField, ...props, children: /* @__PURE__ */ jsxs27(Group2, { className: cn39("flex items-stretch", classNames2.group), children: [
2510
- showStepper && /* @__PURE__ */ jsx69(
2582
+ return /* @__PURE__ */ jsx72(FieldBase, { as: NumberField, ...props, children: /* @__PURE__ */ jsxs28(Group2, { className: cn42("flex items-stretch", classNames2.group), children: [
2583
+ showStepper && /* @__PURE__ */ jsx72(
2511
2584
  _StepButton,
2512
2585
  {
2513
2586
  className: classNames2.stepper,
@@ -2515,7 +2588,7 @@ var _NumberField = forwardRef15(
2515
2588
  slot: "decrement"
2516
2589
  }
2517
2590
  ),
2518
- /* @__PURE__ */ jsx69("div", { className: "flex-1", children: /* @__PURE__ */ jsx69(
2591
+ /* @__PURE__ */ jsx72("div", { className: "flex-1", children: /* @__PURE__ */ jsx72(
2519
2592
  _Input,
2520
2593
  {
2521
2594
  ref,
@@ -2524,7 +2597,7 @@ var _NumberField = forwardRef15(
2524
2597
  className: classNames2.input
2525
2598
  }
2526
2599
  ) }),
2527
- showStepper && /* @__PURE__ */ jsx69(
2600
+ showStepper && /* @__PURE__ */ jsx72(
2528
2601
  _StepButton,
2529
2602
  {
2530
2603
  className: classNames2.stepper,
@@ -2541,7 +2614,7 @@ import {
2541
2614
  forwardRef as forwardRef16
2542
2615
  } from "react";
2543
2616
  import { Radio } from "react-aria-components";
2544
- import { cn as cn41, useClassNames as useClassNames42 } from "@marigold/system";
2617
+ import { cn as cn44, useClassNames as useClassNames45 } from "@marigold/system";
2545
2618
 
2546
2619
  // src/Radio/Context.ts
2547
2620
  import { createContext as createContext7, useContext as useContext13 } from "react";
@@ -2552,8 +2625,8 @@ var useRadioGroupContext = () => useContext13(RadioGroupContext);
2552
2625
 
2553
2626
  // src/Radio/RadioGroup.tsx
2554
2627
  import { RadioGroup } from "react-aria-components";
2555
- import { cn as cn40, useClassNames as useClassNames41 } from "@marigold/system";
2556
- import { jsx as jsx70 } from "react/jsx-runtime";
2628
+ import { cn as cn43, useClassNames as useClassNames44 } from "@marigold/system";
2629
+ import { jsx as jsx73 } from "react/jsx-runtime";
2557
2630
  var _RadioGroup = ({
2558
2631
  variant,
2559
2632
  size,
@@ -2569,7 +2642,7 @@ var _RadioGroup = ({
2569
2642
  width,
2570
2643
  ...rest
2571
2644
  }) => {
2572
- const classNames2 = useClassNames41({ component: "Radio", variant, size });
2645
+ const classNames2 = useClassNames44({ component: "Radio", variant, size });
2573
2646
  const props = {
2574
2647
  isDisabled: disabled,
2575
2648
  isReadOnly: readOnly,
@@ -2577,7 +2650,7 @@ var _RadioGroup = ({
2577
2650
  isInvalid: error,
2578
2651
  ...rest
2579
2652
  };
2580
- return /* @__PURE__ */ jsx70(
2653
+ return /* @__PURE__ */ jsx73(
2581
2654
  FieldBase,
2582
2655
  {
2583
2656
  as: RadioGroup,
@@ -2588,18 +2661,18 @@ var _RadioGroup = ({
2588
2661
  variant,
2589
2662
  size,
2590
2663
  ...props,
2591
- children: /* @__PURE__ */ jsx70(
2664
+ children: /* @__PURE__ */ jsx73(
2592
2665
  "div",
2593
2666
  {
2594
2667
  role: "presentation",
2595
2668
  "data-testid": "group",
2596
2669
  "data-orientation": orientation,
2597
- className: cn40(
2670
+ className: cn43(
2598
2671
  classNames2.group,
2599
2672
  "flex items-start",
2600
2673
  orientation === "vertical" ? "flex-col gap-[0.5ch]" : "flex-row gap-[1.5ch]"
2601
2674
  ),
2602
- children: /* @__PURE__ */ jsx70(RadioGroupContext.Provider, { value: { width, variant, size }, children })
2675
+ children: /* @__PURE__ */ jsx73(RadioGroupContext.Provider, { value: { width, variant, size }, children })
2603
2676
  }
2604
2677
  )
2605
2678
  }
@@ -2607,33 +2680,33 @@ var _RadioGroup = ({
2607
2680
  };
2608
2681
 
2609
2682
  // src/Radio/Radio.tsx
2610
- import { Fragment as Fragment7, jsx as jsx71, jsxs as jsxs28 } from "react/jsx-runtime";
2611
- var Dot = () => /* @__PURE__ */ jsx71("svg", { viewBox: "0 0 6 6", children: /* @__PURE__ */ jsx71("circle", { fill: "currentColor", cx: "3", cy: "3", r: "3" }) });
2612
- var Icon3 = ({ checked, className, ...props }) => /* @__PURE__ */ jsx71(
2683
+ import { Fragment as Fragment6, jsx as jsx74, jsxs as jsxs29 } from "react/jsx-runtime";
2684
+ var Dot = () => /* @__PURE__ */ jsx74("svg", { viewBox: "0 0 6 6", children: /* @__PURE__ */ jsx74("circle", { fill: "currentColor", cx: "3", cy: "3", r: "3" }) });
2685
+ var Icon3 = ({ checked, className, ...props }) => /* @__PURE__ */ jsx74(
2613
2686
  "div",
2614
2687
  {
2615
- className: cn41(
2688
+ className: cn44(
2616
2689
  "bg-secondary-50 flex h-4 w-4 items-center justify-center rounded-[50%] border p-1",
2617
2690
  className
2618
2691
  ),
2619
2692
  "aria-hidden": "true",
2620
2693
  ...props,
2621
- children: checked ? /* @__PURE__ */ jsx71(Dot, {}) : null
2694
+ children: checked ? /* @__PURE__ */ jsx74(Dot, {}) : null
2622
2695
  }
2623
2696
  );
2624
2697
  var _Radio = forwardRef16(
2625
2698
  ({ value, disabled, width, children, ...props }, ref) => {
2626
2699
  const { variant, size, width: groupWidth } = useRadioGroupContext();
2627
- const classNames2 = useClassNames42({
2700
+ const classNames2 = useClassNames45({
2628
2701
  component: "Radio",
2629
2702
  variant: variant || props.variant,
2630
2703
  size: size || props.size
2631
2704
  });
2632
- return /* @__PURE__ */ jsx71(
2705
+ return /* @__PURE__ */ jsx74(
2633
2706
  Radio,
2634
2707
  {
2635
2708
  ref,
2636
- className: cn41(
2709
+ className: cn44(
2637
2710
  "group/radio",
2638
2711
  "relative flex items-center gap-[1ch]",
2639
2712
  width || groupWidth || "w-full",
@@ -2642,18 +2715,18 @@ var _Radio = forwardRef16(
2642
2715
  value,
2643
2716
  isDisabled: disabled,
2644
2717
  ...props,
2645
- children: ({ isSelected }) => /* @__PURE__ */ jsxs28(Fragment7, { children: [
2646
- /* @__PURE__ */ jsx71(
2718
+ children: ({ isSelected }) => /* @__PURE__ */ jsxs29(Fragment6, { children: [
2719
+ /* @__PURE__ */ jsx74(
2647
2720
  Icon3,
2648
2721
  {
2649
2722
  checked: isSelected,
2650
- className: cn41(
2723
+ className: cn44(
2651
2724
  disabled ? "cursor-not-allowed" : "cursor-pointer",
2652
2725
  classNames2.radio
2653
2726
  )
2654
2727
  }
2655
2728
  ),
2656
- /* @__PURE__ */ jsx71("div", { className: classNames2.label, children })
2729
+ /* @__PURE__ */ jsx74("div", { className: classNames2.label, children })
2657
2730
  ] })
2658
2731
  }
2659
2732
  );
@@ -2664,7 +2737,7 @@ _Radio.Group = _RadioGroup;
2664
2737
  // src/SearchField/SearchField.tsx
2665
2738
  import { forwardRef as forwardRef17 } from "react";
2666
2739
  import { SearchField } from "react-aria-components";
2667
- import { jsx as jsx72 } from "react/jsx-runtime";
2740
+ import { jsx as jsx75 } from "react/jsx-runtime";
2668
2741
  var _SearchField = forwardRef17(
2669
2742
  ({ disabled, required, readOnly, error, action, ...rest }, ref) => {
2670
2743
  const props = {
@@ -2674,7 +2747,7 @@ var _SearchField = forwardRef17(
2674
2747
  isReadOnly: readOnly,
2675
2748
  isInvalid: error
2676
2749
  };
2677
- return /* @__PURE__ */ jsx72(FieldBase, { as: SearchField, ...props, children: /* @__PURE__ */ jsx72(
2750
+ return /* @__PURE__ */ jsx75(FieldBase, { as: SearchField, ...props, children: /* @__PURE__ */ jsx75(
2678
2751
  SearchInput,
2679
2752
  {
2680
2753
  ref,
@@ -2691,8 +2764,8 @@ import {
2691
2764
  Select,
2692
2765
  SelectValue
2693
2766
  } from "react-aria-components";
2694
- import { cn as cn42, useClassNames as useClassNames43 } from "@marigold/system";
2695
- import { jsx as jsx73, jsxs as jsxs29 } from "react/jsx-runtime";
2767
+ import { cn as cn45, useClassNames as useClassNames46 } from "@marigold/system";
2768
+ import { jsx as jsx76, jsxs as jsxs30 } from "react/jsx-runtime";
2696
2769
  var _Select = forwardRef18(
2697
2770
  ({
2698
2771
  disabled,
@@ -2713,8 +2786,8 @@ var _Select = forwardRef18(
2713
2786
  onSelectionChange: onChange,
2714
2787
  ...rest
2715
2788
  };
2716
- const classNames2 = useClassNames43({ component: "Select", variant, size });
2717
- return /* @__PURE__ */ jsxs29(
2789
+ const classNames2 = useClassNames46({ component: "Select", variant, size });
2790
+ return /* @__PURE__ */ jsxs30(
2718
2791
  FieldBase,
2719
2792
  {
2720
2793
  isOpen: true,
@@ -2724,20 +2797,20 @@ var _Select = forwardRef18(
2724
2797
  size,
2725
2798
  ...props,
2726
2799
  children: [
2727
- /* @__PURE__ */ jsxs29(
2800
+ /* @__PURE__ */ jsxs30(
2728
2801
  Button6,
2729
2802
  {
2730
- className: cn42(
2803
+ className: cn45(
2731
2804
  "flex w-full items-center justify-between gap-1 overflow-hidden",
2732
2805
  classNames2.select
2733
2806
  ),
2734
2807
  children: [
2735
- /* @__PURE__ */ jsx73(SelectValue, { className: "[&>[slot=description]]:hidden" }),
2736
- /* @__PURE__ */ jsx73(ChevronDown, { className: cn42("size-4", classNames2.icon) })
2808
+ /* @__PURE__ */ jsx76(SelectValue, { className: "[&>[slot=description]]:hidden" }),
2809
+ /* @__PURE__ */ jsx76(ChevronDown, { className: cn45("size-4", classNames2.icon) })
2737
2810
  ]
2738
2811
  }
2739
2812
  ),
2740
- /* @__PURE__ */ jsx73(_Popover, { children: /* @__PURE__ */ jsx73(_ListBox, { items, children: props.children }) })
2813
+ /* @__PURE__ */ jsx76(_Popover, { children: /* @__PURE__ */ jsx76(_ListBox, { items, children: props.children }) })
2741
2814
  ]
2742
2815
  }
2743
2816
  );
@@ -2751,7 +2824,7 @@ import {
2751
2824
  forwardRef as forwardRef20
2752
2825
  } from "react";
2753
2826
  import { GridList as SelectList } from "react-aria-components";
2754
- import { cn as cn44, useClassNames as useClassNames44 } from "@marigold/system";
2827
+ import { cn as cn47, useClassNames as useClassNames47 } from "@marigold/system";
2755
2828
 
2756
2829
  // src/SelectList/Context.ts
2757
2830
  import { createContext as createContext8, useContext as useContext14 } from "react";
@@ -2763,24 +2836,24 @@ var useSelectListContext = () => useContext14(SelectListContext);
2763
2836
  // src/SelectList/SelectListItem.tsx
2764
2837
  import { forwardRef as forwardRef19 } from "react";
2765
2838
  import { GridListItem as SelectListItem } from "react-aria-components";
2766
- import { cn as cn43 } from "@marigold/system";
2767
- import { Fragment as Fragment8, jsx as jsx74, jsxs as jsxs30 } from "react/jsx-runtime";
2839
+ import { cn as cn46 } from "@marigold/system";
2840
+ import { Fragment as Fragment7, jsx as jsx77, jsxs as jsxs31 } from "react/jsx-runtime";
2768
2841
  var _SelectListItem = forwardRef19(
2769
2842
  ({ children, ...props }, ref) => {
2770
2843
  let textValue = typeof children === "string" ? children : void 0;
2771
2844
  const { classNames: classNames2 } = useSelectListContext();
2772
- return /* @__PURE__ */ jsx74(
2845
+ return /* @__PURE__ */ jsx77(
2773
2846
  SelectListItem,
2774
2847
  {
2775
2848
  textValue,
2776
2849
  ...props,
2777
- className: cn43(
2850
+ className: cn46(
2778
2851
  "items-center group-data-[layout=grid]/list:flex-row",
2779
2852
  classNames2 == null ? void 0 : classNames2.option
2780
2853
  ),
2781
2854
  ref,
2782
- children: ({ selectionMode }) => /* @__PURE__ */ jsxs30(Fragment8, { children: [
2783
- selectionMode === "multiple" && /* @__PURE__ */ jsx74(FieldGroup, { children: /* @__PURE__ */ jsx74(_Checkbox, { slot: "selection" }) }),
2855
+ children: ({ selectionMode }) => /* @__PURE__ */ jsxs31(Fragment7, { children: [
2856
+ selectionMode === "multiple" && /* @__PURE__ */ jsx77(_Checkbox, { slot: "selection" }),
2784
2857
  children
2785
2858
  ] })
2786
2859
  }
@@ -2789,21 +2862,21 @@ var _SelectListItem = forwardRef19(
2789
2862
  );
2790
2863
 
2791
2864
  // src/SelectList/SelectList.tsx
2792
- import { jsx as jsx75 } from "react/jsx-runtime";
2865
+ import { jsx as jsx78 } from "react/jsx-runtime";
2793
2866
  var _SelectList = forwardRef20(
2794
2867
  ({ onChange, ...rest }, ref) => {
2795
- const classNames2 = useClassNames44({ component: "ListBox" });
2868
+ const classNames2 = useClassNames47({ component: "ListBox" });
2796
2869
  const props = {
2797
2870
  onSelectionChange: onChange,
2798
2871
  ...rest
2799
2872
  };
2800
- return /* @__PURE__ */ jsx75(SelectListContext.Provider, { value: { classNames: classNames2 }, children: /* @__PURE__ */ jsx75("div", { className: classNames2.container, children: /* @__PURE__ */ jsx75(
2873
+ return /* @__PURE__ */ jsx78(SelectListContext.Provider, { value: { classNames: classNames2 }, children: /* @__PURE__ */ jsx78("div", { className: classNames2.container, children: /* @__PURE__ */ jsx78(
2801
2874
  SelectList,
2802
2875
  {
2803
2876
  ...props,
2804
2877
  layout: "grid",
2805
2878
  ref,
2806
- className: cn44(
2879
+ className: cn47(
2807
2880
  "group/list overflow-y-auto sm:max-h-[75vh] lg:max-h-[45vh]",
2808
2881
  classNames2.list
2809
2882
  ),
@@ -2815,18 +2888,18 @@ var _SelectList = forwardRef20(
2815
2888
  _SelectList.Item = _SelectListItem;
2816
2889
 
2817
2890
  // src/Scrollable/Scrollable.tsx
2818
- import { cn as cn45, createVar as createVar10, width as twWidth2 } from "@marigold/system";
2819
- import { jsx as jsx76 } from "react/jsx-runtime";
2891
+ import { cn as cn48, createVar as createVar10, width as twWidth2 } from "@marigold/system";
2892
+ import { jsx as jsx79 } from "react/jsx-runtime";
2820
2893
  var Scrollable = ({
2821
2894
  children,
2822
2895
  width = "full",
2823
2896
  height,
2824
2897
  ...props
2825
- }) => /* @__PURE__ */ jsx76(
2898
+ }) => /* @__PURE__ */ jsx79(
2826
2899
  "div",
2827
2900
  {
2828
2901
  ...props,
2829
- className: cn45(["sticky h-[--height] overflow-auto", twWidth2[width]]),
2902
+ className: cn48(["sticky h-[--height] overflow-auto", twWidth2[width]]),
2830
2903
  style: createVar10({ height }),
2831
2904
  children
2832
2905
  }
@@ -2841,11 +2914,11 @@ import {
2841
2914
  SliderTrack
2842
2915
  } from "react-aria-components";
2843
2916
  import {
2844
- cn as cn46,
2917
+ cn as cn49,
2845
2918
  width as twWidth3,
2846
- useClassNames as useClassNames45
2919
+ useClassNames as useClassNames48
2847
2920
  } from "@marigold/system";
2848
- import { jsx as jsx77, jsxs as jsxs31 } from "react/jsx-runtime";
2921
+ import { jsx as jsx80, jsxs as jsxs32 } from "react/jsx-runtime";
2849
2922
  var _Slider = forwardRef21(
2850
2923
  ({
2851
2924
  thumbLabels,
@@ -2855,7 +2928,7 @@ var _Slider = forwardRef21(
2855
2928
  disabled,
2856
2929
  ...rest
2857
2930
  }, ref) => {
2858
- const classNames2 = useClassNames45({
2931
+ const classNames2 = useClassNames48({
2859
2932
  component: "Slider",
2860
2933
  variant,
2861
2934
  size
@@ -2864,10 +2937,10 @@ var _Slider = forwardRef21(
2864
2937
  isDisabled: disabled,
2865
2938
  ...rest
2866
2939
  };
2867
- return /* @__PURE__ */ jsxs31(
2940
+ return /* @__PURE__ */ jsxs32(
2868
2941
  Slider,
2869
2942
  {
2870
- className: cn46(
2943
+ className: cn49(
2871
2944
  "grid grid-cols-[auto_1fr] gap-y-1",
2872
2945
  classNames2.container,
2873
2946
  twWidth3[width]
@@ -2875,16 +2948,16 @@ var _Slider = forwardRef21(
2875
2948
  ref,
2876
2949
  ...props,
2877
2950
  children: [
2878
- /* @__PURE__ */ jsx77(_Label, { children: props.children }),
2879
- /* @__PURE__ */ jsx77(SliderOutput, { className: cn46("flex justify-end", classNames2.output), children: ({ state }) => state.values.map((_, i) => state.getThumbValueLabel(i)).join(" \u2013 ") }),
2880
- /* @__PURE__ */ jsx77(
2951
+ /* @__PURE__ */ jsx80(_Label, { children: props.children }),
2952
+ /* @__PURE__ */ jsx80(SliderOutput, { className: cn49("flex justify-end", classNames2.output), children: ({ state }) => state.values.map((_, i) => state.getThumbValueLabel(i)).join(" \u2013 ") }),
2953
+ /* @__PURE__ */ jsx80(
2881
2954
  SliderTrack,
2882
2955
  {
2883
- className: cn46("relative col-span-2 h-2 w-full", classNames2.track),
2884
- children: ({ state }) => state.values.map((_, i) => /* @__PURE__ */ jsx77(
2956
+ className: cn49("relative col-span-2 h-2 w-full", classNames2.track),
2957
+ children: ({ state }) => state.values.map((_, i) => /* @__PURE__ */ jsx80(
2885
2958
  SliderThumb,
2886
2959
  {
2887
- className: cn46("top-1/2 cursor-pointer", classNames2.thumb),
2960
+ className: cn49("top-1/2 cursor-pointer", classNames2.thumb),
2888
2961
  index: i,
2889
2962
  "aria-label": thumbLabels == null ? void 0 : thumbLabels[i]
2890
2963
  },
@@ -2899,12 +2972,12 @@ var _Slider = forwardRef21(
2899
2972
  );
2900
2973
 
2901
2974
  // src/Split/Split.tsx
2902
- import { jsx as jsx78 } from "react/jsx-runtime";
2903
- var Split = () => /* @__PURE__ */ jsx78("div", { role: "separator", className: "grow" });
2975
+ import { jsx as jsx81 } from "react/jsx-runtime";
2976
+ var Split = () => /* @__PURE__ */ jsx81("div", { role: "separator", className: "grow" });
2904
2977
 
2905
2978
  // src/Stack/Stack.tsx
2906
- import { alignment as alignment3, cn as cn47, gapSpace as gapSpace7 } from "@marigold/system";
2907
- import { jsx as jsx79 } from "react/jsx-runtime";
2979
+ import { alignment as alignment3, cn as cn50, gapSpace as gapSpace7 } from "@marigold/system";
2980
+ import { jsx as jsx82 } from "react/jsx-runtime";
2908
2981
  var Stack = ({
2909
2982
  children,
2910
2983
  space = 0,
@@ -2914,10 +2987,10 @@ var Stack = ({
2914
2987
  ...props
2915
2988
  }) => {
2916
2989
  var _a, _b, _c, _d;
2917
- return /* @__PURE__ */ jsx79(
2990
+ return /* @__PURE__ */ jsx82(
2918
2991
  "div",
2919
2992
  {
2920
- className: cn47(
2993
+ className: cn50(
2921
2994
  "flex flex-col",
2922
2995
  gapSpace7[space],
2923
2996
  alignX && ((_b = (_a = alignment3) == null ? void 0 : _a.vertical) == null ? void 0 : _b.alignmentX[alignX]),
@@ -2934,11 +3007,11 @@ var Stack = ({
2934
3007
  import { forwardRef as forwardRef22 } from "react";
2935
3008
  import { Switch } from "react-aria-components";
2936
3009
  import {
2937
- cn as cn48,
3010
+ cn as cn51,
2938
3011
  width as twWidth4,
2939
- useClassNames as useClassNames46
3012
+ useClassNames as useClassNames49
2940
3013
  } from "@marigold/system";
2941
- import { jsx as jsx80, jsxs as jsxs32 } from "react/jsx-runtime";
3014
+ import { jsx as jsx83, jsxs as jsxs33 } from "react/jsx-runtime";
2942
3015
  var _Switch = forwardRef22(
2943
3016
  ({
2944
3017
  variant,
@@ -2950,37 +3023,37 @@ var _Switch = forwardRef22(
2950
3023
  readOnly,
2951
3024
  ...rest
2952
3025
  }, ref) => {
2953
- const classNames2 = useClassNames46({ component: "Switch", size, variant });
3026
+ const classNames2 = useClassNames49({ component: "Switch", size, variant });
2954
3027
  const props = {
2955
3028
  isDisabled: disabled,
2956
3029
  isReadOnly: readOnly,
2957
3030
  isSelected: selected,
2958
3031
  ...rest
2959
3032
  };
2960
- return /* @__PURE__ */ jsxs32(
3033
+ return /* @__PURE__ */ jsxs33(
2961
3034
  Switch,
2962
3035
  {
2963
3036
  ...props,
2964
3037
  ref,
2965
- className: cn48(
3038
+ className: cn51(
2966
3039
  twWidth4[width],
2967
3040
  "group/switch",
2968
3041
  "flex items-center gap-[1ch]",
2969
3042
  classNames2.container
2970
3043
  ),
2971
3044
  children: [
2972
- /* @__PURE__ */ jsx80(_Label, { elementType: "span", children }),
2973
- /* @__PURE__ */ jsx80("div", { className: "relative", children: /* @__PURE__ */ jsx80(
3045
+ /* @__PURE__ */ jsx83(_Label, { elementType: "span", children }),
3046
+ /* @__PURE__ */ jsx83("div", { className: "relative", children: /* @__PURE__ */ jsx83(
2974
3047
  "div",
2975
3048
  {
2976
- className: cn48(
3049
+ className: cn51(
2977
3050
  "h-6 w-12 basis-12 rounded-3xl group-disabled/switch:cursor-not-allowed",
2978
3051
  classNames2.track
2979
3052
  ),
2980
- children: /* @__PURE__ */ jsx80(
3053
+ children: /* @__PURE__ */ jsx83(
2981
3054
  "div",
2982
3055
  {
2983
- className: cn48(
3056
+ className: cn51(
2984
3057
  "h-[22px] w-[22px]",
2985
3058
  "cubic-bezier(.7,0,.3,1)",
2986
3059
  "absolute left-0 top-px",
@@ -3005,11 +3078,11 @@ import {
3005
3078
  TableBody as Body2,
3006
3079
  Cell,
3007
3080
  Column,
3008
- TableHeader as Header2,
3081
+ TableHeader as Header3,
3009
3082
  Row,
3010
3083
  useTableState
3011
3084
  } from "@react-stately/table";
3012
- import { cn as cn54, useClassNames as useClassNames48 } from "@marigold/system";
3085
+ import { cn as cn57, useClassNames as useClassNames51 } from "@marigold/system";
3013
3086
 
3014
3087
  // src/Table/Context.tsx
3015
3088
  import { createContext as createContext9, useContext as useContext15 } from "react";
@@ -3018,12 +3091,12 @@ var useTableContext = () => useContext15(TableContext);
3018
3091
 
3019
3092
  // src/Table/TableBody.tsx
3020
3093
  import { useTableRowGroup } from "@react-aria/table";
3021
- import { jsx as jsx81 } from "react/jsx-runtime";
3094
+ import { jsx as jsx84 } from "react/jsx-runtime";
3022
3095
  var TableBody = ({ children, emptyState }) => {
3023
3096
  const { rowGroupProps } = useTableRowGroup();
3024
3097
  const { state, classNames: classNames2 } = useTableContext();
3025
3098
  if (state.collection.size === 0 && emptyState) {
3026
- return /* @__PURE__ */ jsx81("tbody", { children: /* @__PURE__ */ jsx81("tr", { className: classNames2 == null ? void 0 : classNames2.row, role: "row", children: /* @__PURE__ */ jsx81(
3099
+ return /* @__PURE__ */ jsx84("tbody", { children: /* @__PURE__ */ jsx84("tr", { className: classNames2 == null ? void 0 : classNames2.row, role: "row", children: /* @__PURE__ */ jsx84(
3027
3100
  "td",
3028
3101
  {
3029
3102
  className: classNames2 == null ? void 0 : classNames2.cell,
@@ -3033,7 +3106,7 @@ var TableBody = ({ children, emptyState }) => {
3033
3106
  }
3034
3107
  ) }) });
3035
3108
  }
3036
- return /* @__PURE__ */ jsx81("tbody", { ...rowGroupProps, children });
3109
+ return /* @__PURE__ */ jsx84("tbody", { ...rowGroupProps, children });
3037
3110
  };
3038
3111
 
3039
3112
  // src/Table/TableCell.tsx
@@ -3041,8 +3114,8 @@ import { useRef as useRef4 } from "react";
3041
3114
  import { useFocusRing as useFocusRing2 } from "@react-aria/focus";
3042
3115
  import { useTableCell } from "@react-aria/table";
3043
3116
  import { mergeProps as mergeProps3 } from "@react-aria/utils";
3044
- import { cn as cn49, useStateProps as useStateProps2 } from "@marigold/system";
3045
- import { jsx as jsx82 } from "react/jsx-runtime";
3117
+ import { cn as cn52, useStateProps as useStateProps2 } from "@marigold/system";
3118
+ import { jsx as jsx85 } from "react/jsx-runtime";
3046
3119
  var TableCell = ({ cell, align = "left" }) => {
3047
3120
  const ref = useRef4(null);
3048
3121
  const { interactive, state, classNames: classNames2 } = useTableContext();
@@ -3065,11 +3138,11 @@ var TableCell = ({ cell, align = "left" }) => {
3065
3138
  };
3066
3139
  const { focusProps, isFocusVisible } = useFocusRing2();
3067
3140
  const stateProps = useStateProps2({ disabled, focusVisible: isFocusVisible });
3068
- return /* @__PURE__ */ jsx82(
3141
+ return /* @__PURE__ */ jsx85(
3069
3142
  "td",
3070
3143
  {
3071
3144
  ref,
3072
- className: cn49(classNames2 == null ? void 0 : classNames2.cell),
3145
+ className: cn52(classNames2 == null ? void 0 : classNames2.cell),
3073
3146
  ...mergeProps3(cellProps, focusProps),
3074
3147
  ...stateProps,
3075
3148
  align,
@@ -3083,7 +3156,7 @@ import { useRef as useRef5 } from "react";
3083
3156
  import { useFocusRing as useFocusRing3 } from "@react-aria/focus";
3084
3157
  import { useTableCell as useTableCell2, useTableSelectionCheckbox } from "@react-aria/table";
3085
3158
  import { mergeProps as mergeProps4 } from "@react-aria/utils";
3086
- import { cn as cn50, useStateProps as useStateProps3 } from "@marigold/system";
3159
+ import { cn as cn53, useStateProps as useStateProps3 } from "@marigold/system";
3087
3160
 
3088
3161
  // src/Table/utils.ts
3089
3162
  var mapCheckboxProps = ({
@@ -3106,7 +3179,7 @@ var mapCheckboxProps = ({
3106
3179
  };
3107
3180
 
3108
3181
  // src/Table/TableCheckboxCell.tsx
3109
- import { jsx as jsx83 } from "react/jsx-runtime";
3182
+ import { jsx as jsx86 } from "react/jsx-runtime";
3110
3183
  var TableCheckboxCell = ({ cell }) => {
3111
3184
  const ref = useRef5(null);
3112
3185
  const { state, classNames: classNames2 } = useTableContext();
@@ -3123,14 +3196,14 @@ var TableCheckboxCell = ({ cell }) => {
3123
3196
  );
3124
3197
  const { focusProps, isFocusVisible } = useFocusRing3();
3125
3198
  const stateProps = useStateProps3({ disabled, focusVisible: isFocusVisible });
3126
- return /* @__PURE__ */ jsx83(
3199
+ return /* @__PURE__ */ jsx86(
3127
3200
  "td",
3128
3201
  {
3129
3202
  ref,
3130
- className: cn50("text-center align-middle leading-none", classNames2 == null ? void 0 : classNames2.cell),
3203
+ className: cn53("text-center align-middle leading-none", classNames2 == null ? void 0 : classNames2.cell),
3131
3204
  ...mergeProps4(gridCellProps, focusProps),
3132
3205
  ...stateProps,
3133
- children: /* @__PURE__ */ jsx83(_Checkbox, { ...checkboxProps })
3206
+ children: /* @__PURE__ */ jsx86(_Checkbox, { ...checkboxProps })
3134
3207
  }
3135
3208
  );
3136
3209
  };
@@ -3142,8 +3215,8 @@ import { useHover } from "@react-aria/interactions";
3142
3215
  import { useTableColumnHeader } from "@react-aria/table";
3143
3216
  import { mergeProps as mergeProps5 } from "@react-aria/utils";
3144
3217
  import { SortDown, SortUp } from "@marigold/icons";
3145
- import { cn as cn51, width as twWidth5, useStateProps as useStateProps4 } from "@marigold/system";
3146
- import { jsx as jsx84, jsxs as jsxs33 } from "react/jsx-runtime";
3218
+ import { cn as cn54, width as twWidth5, useStateProps as useStateProps4 } from "@marigold/system";
3219
+ import { jsx as jsx87, jsxs as jsxs34 } from "react/jsx-runtime";
3147
3220
  var TableColumnHeader = ({
3148
3221
  column,
3149
3222
  width = "auto",
@@ -3165,18 +3238,18 @@ var TableColumnHeader = ({
3165
3238
  hover: isHovered,
3166
3239
  focusVisible: isFocusVisible
3167
3240
  });
3168
- return /* @__PURE__ */ jsxs33(
3241
+ return /* @__PURE__ */ jsxs34(
3169
3242
  "th",
3170
3243
  {
3171
3244
  colSpan: column.colspan,
3172
3245
  ref,
3173
- className: cn51("cursor-default", twWidth5[width], classNames2 == null ? void 0 : classNames2.header),
3246
+ className: cn54("cursor-default", twWidth5[width], classNames2 == null ? void 0 : classNames2.header),
3174
3247
  ...mergeProps5(columnHeaderProps, hoverProps, focusProps),
3175
3248
  ...stateProps,
3176
3249
  align,
3177
3250
  children: [
3178
3251
  column.rendered,
3179
- column.props.allowsSorting && (((_a = state.sortDescriptor) == null ? void 0 : _a.column) === column.key ? ((_b = state.sortDescriptor) == null ? void 0 : _b.direction) === "ascending" ? /* @__PURE__ */ jsx84(SortUp, { className: "inline-block" }) : /* @__PURE__ */ jsx84(SortDown, { className: "inline-block" }) : /* @__PURE__ */ jsx84("span", { className: "invisible", children: /* @__PURE__ */ jsx84(SortDown, { className: "inline-block" }) }))
3252
+ column.props.allowsSorting && (((_a = state.sortDescriptor) == null ? void 0 : _a.column) === column.key ? ((_b = state.sortDescriptor) == null ? void 0 : _b.direction) === "ascending" ? /* @__PURE__ */ jsx87(SortUp, { className: "inline-block" }) : /* @__PURE__ */ jsx87(SortDown, { className: "inline-block" }) : /* @__PURE__ */ jsx87("span", { className: "invisible", children: /* @__PURE__ */ jsx87(SortDown, { className: "inline-block" }) }))
3180
3253
  ]
3181
3254
  }
3182
3255
  );
@@ -3184,10 +3257,10 @@ var TableColumnHeader = ({
3184
3257
 
3185
3258
  // src/Table/TableHeader.tsx
3186
3259
  import { useTableRowGroup as useTableRowGroup2 } from "@react-aria/table";
3187
- import { jsx as jsx85 } from "react/jsx-runtime";
3260
+ import { jsx as jsx88 } from "react/jsx-runtime";
3188
3261
  var TableHeader = ({ stickyHeader, children }) => {
3189
3262
  const { rowGroupProps } = useTableRowGroup2();
3190
- return /* @__PURE__ */ jsx85(
3263
+ return /* @__PURE__ */ jsx88(
3191
3264
  "thead",
3192
3265
  {
3193
3266
  ...rowGroupProps,
@@ -3200,12 +3273,12 @@ var TableHeader = ({ stickyHeader, children }) => {
3200
3273
  // src/Table/TableHeaderRow.tsx
3201
3274
  import { useRef as useRef7 } from "react";
3202
3275
  import { useTableHeaderRow } from "@react-aria/table";
3203
- import { jsx as jsx86 } from "react/jsx-runtime";
3276
+ import { jsx as jsx89 } from "react/jsx-runtime";
3204
3277
  var TableHeaderRow = ({ item, children }) => {
3205
3278
  const { state } = useTableContext();
3206
3279
  const ref = useRef7(null);
3207
3280
  const { rowProps } = useTableHeaderRow({ node: item }, state, ref);
3208
- return /* @__PURE__ */ jsx86("tr", { ...rowProps, ref, children });
3281
+ return /* @__PURE__ */ jsx89("tr", { ...rowProps, ref, children });
3209
3282
  };
3210
3283
 
3211
3284
  // src/Table/TableRow.tsx
@@ -3214,13 +3287,13 @@ import { useFocusRing as useFocusRing5 } from "@react-aria/focus";
3214
3287
  import { useHover as useHover2 } from "@react-aria/interactions";
3215
3288
  import { useTableRow } from "@react-aria/table";
3216
3289
  import { mergeProps as mergeProps6 } from "@react-aria/utils";
3217
- import { cn as cn52, useClassNames as useClassNames47, useStateProps as useStateProps5 } from "@marigold/system";
3218
- import { jsx as jsx87 } from "react/jsx-runtime";
3290
+ import { cn as cn55, useClassNames as useClassNames50, useStateProps as useStateProps5 } from "@marigold/system";
3291
+ import { jsx as jsx90 } from "react/jsx-runtime";
3219
3292
  var TableRow = ({ children, row }) => {
3220
3293
  const ref = useRef8(null);
3221
3294
  const { interactive, state, ...ctx } = useTableContext();
3222
3295
  const { variant, size } = row.props;
3223
- const classNames2 = useClassNames47({
3296
+ const classNames2 = useClassNames50({
3224
3297
  component: "Table",
3225
3298
  variant: variant || ctx.variant,
3226
3299
  size: size || ctx.size
@@ -3234,7 +3307,7 @@ var TableRow = ({ children, row }) => {
3234
3307
  );
3235
3308
  const disabled = state.disabledKeys.has(row.key);
3236
3309
  const selected = state.selectionManager.isSelected(row.key);
3237
- const { focusProps, isFocusVisible } = useFocusRing5({ within: true });
3310
+ const { focusProps, isFocusVisible } = useFocusRing5();
3238
3311
  const { hoverProps, isHovered } = useHover2({
3239
3312
  isDisabled: disabled || !interactive
3240
3313
  });
@@ -3245,11 +3318,11 @@ var TableRow = ({ children, row }) => {
3245
3318
  focusVisible: isFocusVisible,
3246
3319
  active: isPressed
3247
3320
  });
3248
- return /* @__PURE__ */ jsx87(
3321
+ return /* @__PURE__ */ jsx90(
3249
3322
  "tr",
3250
3323
  {
3251
3324
  ref,
3252
- className: cn52(
3325
+ className: cn55(
3253
3326
  [
3254
3327
  !interactive ? "cursor-text" : disabled ? "cursor-default" : "cursor-pointer"
3255
3328
  ],
@@ -3272,11 +3345,11 @@ import {
3272
3345
  } from "@react-aria/table";
3273
3346
  import { mergeProps as mergeProps7 } from "@react-aria/utils";
3274
3347
  import {
3275
- cn as cn53,
3348
+ cn as cn56,
3276
3349
  width as twWidth6,
3277
3350
  useStateProps as useStateProps6
3278
3351
  } from "@marigold/system";
3279
- import { jsx as jsx88 } from "react/jsx-runtime";
3352
+ import { jsx as jsx91 } from "react/jsx-runtime";
3280
3353
  var TableSelectAllCell = ({
3281
3354
  column,
3282
3355
  width = "auto",
@@ -3298,21 +3371,21 @@ var TableSelectAllCell = ({
3298
3371
  hover: isHovered,
3299
3372
  focusVisible: isFocusVisible
3300
3373
  });
3301
- return /* @__PURE__ */ jsx88(
3374
+ return /* @__PURE__ */ jsx91(
3302
3375
  "th",
3303
3376
  {
3304
3377
  ref,
3305
- className: cn53(twWidth6[width], ["leading-none"], classNames2 == null ? void 0 : classNames2.header),
3378
+ className: cn56(twWidth6[width], ["leading-none"], classNames2 == null ? void 0 : classNames2.header),
3306
3379
  ...mergeProps7(columnHeaderProps, hoverProps, focusProps),
3307
3380
  ...stateProps,
3308
3381
  align,
3309
- children: /* @__PURE__ */ jsx88(_Checkbox, { ...checkboxProps })
3382
+ children: /* @__PURE__ */ jsx91(_Checkbox, { ...checkboxProps })
3310
3383
  }
3311
3384
  );
3312
3385
  };
3313
3386
 
3314
3387
  // src/Table/Table.tsx
3315
- import { jsx as jsx89, jsxs as jsxs34 } from "react/jsx-runtime";
3388
+ import { jsx as jsx92, jsxs as jsxs35 } from "react/jsx-runtime";
3316
3389
  var Table = ({
3317
3390
  variant,
3318
3391
  size,
@@ -3335,21 +3408,21 @@ var Table = ({
3335
3408
  state.isKeyboardNavigationDisabled = disableKeyboardNavigation;
3336
3409
  }
3337
3410
  const { gridProps } = useTable(props, state, tableRef);
3338
- const classNames2 = useClassNames48({
3411
+ const classNames2 = useClassNames51({
3339
3412
  component: "Table",
3340
3413
  variant,
3341
3414
  size
3342
3415
  });
3343
3416
  const { collection } = state;
3344
- return /* @__PURE__ */ jsx89(
3417
+ return /* @__PURE__ */ jsx92(
3345
3418
  TableContext.Provider,
3346
3419
  {
3347
3420
  value: { state, interactive, classNames: classNames2, variant, size },
3348
- children: /* @__PURE__ */ jsxs34(
3421
+ children: /* @__PURE__ */ jsxs35(
3349
3422
  "table",
3350
3423
  {
3351
3424
  ref: tableRef,
3352
- className: cn54(
3425
+ className: cn57(
3353
3426
  "group/table",
3354
3427
  "border-collapse",
3355
3428
  stretch ? "table w-full" : "block",
@@ -3357,10 +3430,10 @@ var Table = ({
3357
3430
  ),
3358
3431
  ...gridProps,
3359
3432
  children: [
3360
- /* @__PURE__ */ jsx89(TableHeader, { stickyHeader, children: collection.headerRows.map((headerRow) => /* @__PURE__ */ jsx89(TableHeaderRow, { item: headerRow, children: [...collection.getChildren(headerRow.key)].map(
3433
+ /* @__PURE__ */ jsx92(TableHeader, { stickyHeader, children: collection.headerRows.map((headerRow) => /* @__PURE__ */ jsx92(TableHeaderRow, { item: headerRow, children: [...collection.getChildren(headerRow.key)].map(
3361
3434
  (column) => {
3362
3435
  var _a, _b, _c, _d, _e;
3363
- return ((_a = column.props) == null ? void 0 : _a.isSelectionCell) ? /* @__PURE__ */ jsx89(
3436
+ return ((_a = column.props) == null ? void 0 : _a.isSelectionCell) ? /* @__PURE__ */ jsx92(
3364
3437
  TableSelectAllCell,
3365
3438
  {
3366
3439
  width: (_b = column.props) == null ? void 0 : _b.width,
@@ -3368,7 +3441,7 @@ var Table = ({
3368
3441
  align: (_c = column.props) == null ? void 0 : _c.align
3369
3442
  },
3370
3443
  column.key
3371
- ) : /* @__PURE__ */ jsx89(
3444
+ ) : /* @__PURE__ */ jsx92(
3372
3445
  TableColumnHeader,
3373
3446
  {
3374
3447
  width: (_d = column.props) == null ? void 0 : _d.width,
@@ -3379,12 +3452,12 @@ var Table = ({
3379
3452
  );
3380
3453
  }
3381
3454
  ) }, headerRow.key)) }),
3382
- /* @__PURE__ */ jsxs34(TableBody, { emptyState, children: [
3455
+ /* @__PURE__ */ jsxs35(TableBody, { emptyState, children: [
3383
3456
  ...collection.rows.map(
3384
- (row) => row.type === "item" && /* @__PURE__ */ jsx89(TableRow, { row, children: [...collection.getChildren(row.key)].map((cell, index) => {
3457
+ (row) => row.type === "item" && /* @__PURE__ */ jsx92(TableRow, { row, children: [...collection.getChildren(row.key)].map((cell, index) => {
3385
3458
  var _a, _b;
3386
3459
  const currentColumn = collection.columns[index];
3387
- return ((_a = cell.props) == null ? void 0 : _a.isSelectionCell) ? /* @__PURE__ */ jsx89(TableCheckboxCell, { cell }, cell.key) : /* @__PURE__ */ jsx89(
3460
+ return ((_a = cell.props) == null ? void 0 : _a.isSelectionCell) ? /* @__PURE__ */ jsx92(TableCheckboxCell, { cell }, cell.key) : /* @__PURE__ */ jsx92(
3388
3461
  TableCell,
3389
3462
  {
3390
3463
  align: (_b = currentColumn.props) == null ? void 0 : _b.align,
@@ -3404,13 +3477,13 @@ var Table = ({
3404
3477
  Table.Body = Body2;
3405
3478
  Table.Cell = Cell;
3406
3479
  Table.Column = Column;
3407
- Table.Header = Header2;
3480
+ Table.Header = Header3;
3408
3481
  Table.Row = Row;
3409
3482
 
3410
3483
  // src/Text/Text.tsx
3411
3484
  import { Text as Text2 } from "react-aria-components";
3412
3485
  import {
3413
- cn as cn55,
3486
+ cn as cn58,
3414
3487
  createVar as createVar11,
3415
3488
  cursorStyle,
3416
3489
  fontWeight,
@@ -3418,10 +3491,10 @@ import {
3418
3491
  textAlign as textAlign2,
3419
3492
  textSize,
3420
3493
  textStyle,
3421
- useClassNames as useClassNames49,
3494
+ useClassNames as useClassNames52,
3422
3495
  useTheme as useTheme3
3423
3496
  } from "@marigold/system";
3424
- import { jsx as jsx90 } from "react/jsx-runtime";
3497
+ import { jsx as jsx93 } from "react/jsx-runtime";
3425
3498
  var _Text = ({
3426
3499
  variant,
3427
3500
  size,
@@ -3436,17 +3509,18 @@ var _Text = ({
3436
3509
  ...props
3437
3510
  }) => {
3438
3511
  const theme = useTheme3();
3439
- const classNames2 = useClassNames49({
3512
+ const classNames2 = useClassNames52({
3440
3513
  component: "Text",
3441
3514
  variant,
3442
3515
  size
3443
3516
  });
3444
- return /* @__PURE__ */ jsx90(
3445
- Text2,
3517
+ const Component = props.slot ? Text2 : as;
3518
+ return /* @__PURE__ */ jsx93(
3519
+ Component,
3446
3520
  {
3447
3521
  ...props,
3448
3522
  elementType: as,
3449
- className: cn55(
3523
+ className: cn58(
3450
3524
  "text-[--color] outline-[--outline]",
3451
3525
  classNames2,
3452
3526
  fontStyle && textStyle[fontStyle],
@@ -3471,8 +3545,8 @@ var _Text = ({
3471
3545
  // src/TextArea/TextArea.tsx
3472
3546
  import { forwardRef as forwardRef23 } from "react";
3473
3547
  import { TextArea, TextField } from "react-aria-components";
3474
- import { useClassNames as useClassNames50 } from "@marigold/system";
3475
- import { jsx as jsx91 } from "react/jsx-runtime";
3548
+ import { useClassNames as useClassNames53 } from "@marigold/system";
3549
+ import { jsx as jsx94 } from "react/jsx-runtime";
3476
3550
  var _TextArea = forwardRef23(
3477
3551
  ({
3478
3552
  variant,
@@ -3484,7 +3558,7 @@ var _TextArea = forwardRef23(
3484
3558
  rows,
3485
3559
  ...rest
3486
3560
  }, ref) => {
3487
- const classNames2 = useClassNames50({ component: "TextArea", variant, size });
3561
+ const classNames2 = useClassNames53({ component: "TextArea", variant, size });
3488
3562
  const props = {
3489
3563
  isDisabled: disabled,
3490
3564
  isReadOnly: readOnly,
@@ -3492,14 +3566,14 @@ var _TextArea = forwardRef23(
3492
3566
  isRequired: required,
3493
3567
  ...rest
3494
3568
  };
3495
- return /* @__PURE__ */ jsx91(FieldBase, { as: TextField, ...props, variant, size, children: /* @__PURE__ */ jsx91(TextArea, { className: classNames2, ref, rows }) });
3569
+ return /* @__PURE__ */ jsx94(FieldBase, { as: TextField, ...props, variant, size, children: /* @__PURE__ */ jsx94(TextArea, { className: classNames2, ref, rows }) });
3496
3570
  }
3497
3571
  );
3498
3572
 
3499
3573
  // src/TextField/TextField.tsx
3500
3574
  import { forwardRef as forwardRef24 } from "react";
3501
3575
  import { TextField as TextField2 } from "react-aria-components";
3502
- import { jsx as jsx92 } from "react/jsx-runtime";
3576
+ import { jsx as jsx95 } from "react/jsx-runtime";
3503
3577
  var _TextField = forwardRef24(
3504
3578
  ({ required, disabled, readOnly, error, ...rest }, ref) => {
3505
3579
  const props = {
@@ -3509,13 +3583,13 @@ var _TextField = forwardRef24(
3509
3583
  isRequired: required,
3510
3584
  ...rest
3511
3585
  };
3512
- return /* @__PURE__ */ jsx92(FieldBase, { as: TextField2, ...props, children: /* @__PURE__ */ jsx92(_Input, { ref }) });
3586
+ return /* @__PURE__ */ jsx95(FieldBase, { as: TextField2, ...props, children: /* @__PURE__ */ jsx95(_Input, { ref }) });
3513
3587
  }
3514
3588
  );
3515
3589
 
3516
3590
  // src/Tiles/Tiles.tsx
3517
- import { cn as cn56, createVar as createVar12, gapSpace as gapSpace8 } from "@marigold/system";
3518
- import { jsx as jsx93 } from "react/jsx-runtime";
3591
+ import { cn as cn59, createVar as createVar12, gapSpace as gapSpace8 } from "@marigold/system";
3592
+ import { jsx as jsx96 } from "react/jsx-runtime";
3519
3593
  var Tiles = ({
3520
3594
  space = 0,
3521
3595
  stretch = false,
@@ -3528,11 +3602,11 @@ var Tiles = ({
3528
3602
  if (stretch) {
3529
3603
  column = `minmax(${column}, 1fr)`;
3530
3604
  }
3531
- return /* @__PURE__ */ jsx93(
3605
+ return /* @__PURE__ */ jsx96(
3532
3606
  "div",
3533
3607
  {
3534
3608
  ...props,
3535
- className: cn56(
3609
+ className: cn59(
3536
3610
  "grid",
3537
3611
  gapSpace8[space],
3538
3612
  "grid-cols-[repeat(auto-fit,var(--column))]",
@@ -3546,11 +3620,11 @@ var Tiles = ({
3546
3620
 
3547
3621
  // src/Tooltip/Tooltip.tsx
3548
3622
  import { OverlayArrow, Tooltip } from "react-aria-components";
3549
- import { cn as cn57, useClassNames as useClassNames51 } from "@marigold/system";
3623
+ import { cn as cn60, useClassNames as useClassNames54 } from "@marigold/system";
3550
3624
 
3551
3625
  // src/Tooltip/TooltipTrigger.tsx
3552
3626
  import { TooltipTrigger } from "react-aria-components";
3553
- import { jsx as jsx94 } from "react/jsx-runtime";
3627
+ import { jsx as jsx97 } from "react/jsx-runtime";
3554
3628
  var _TooltipTrigger = ({
3555
3629
  delay = 1e3,
3556
3630
  children,
@@ -3564,26 +3638,26 @@ var _TooltipTrigger = ({
3564
3638
  isOpen: open,
3565
3639
  delay
3566
3640
  };
3567
- return /* @__PURE__ */ jsx94(TooltipTrigger, { ...props, children });
3641
+ return /* @__PURE__ */ jsx97(TooltipTrigger, { ...props, children });
3568
3642
  };
3569
3643
 
3570
3644
  // src/Tooltip/Tooltip.tsx
3571
- import { jsx as jsx95, jsxs as jsxs35 } from "react/jsx-runtime";
3645
+ import { jsx as jsx98, jsxs as jsxs36 } from "react/jsx-runtime";
3572
3646
  var _Tooltip = ({ children, variant, size, open, ...rest }) => {
3573
3647
  const props = {
3574
3648
  ...rest,
3575
3649
  isOpen: open
3576
3650
  };
3577
- const classNames2 = useClassNames51({ component: "Tooltip", variant, size });
3651
+ const classNames2 = useClassNames54({ component: "Tooltip", variant, size });
3578
3652
  const portal = usePortalContainer();
3579
- return /* @__PURE__ */ jsxs35(
3653
+ return /* @__PURE__ */ jsxs36(
3580
3654
  Tooltip,
3581
3655
  {
3582
3656
  ...props,
3583
- className: cn57("group/tooltip", classNames2.container),
3657
+ className: cn60("group/tooltip", classNames2.container),
3584
3658
  UNSTABLE_portalContainer: portal,
3585
3659
  children: [
3586
- /* @__PURE__ */ jsx95(OverlayArrow, { className: classNames2.arrow, children: /* @__PURE__ */ jsx95("svg", { width: 8, height: 8, viewBox: "0 0 8 8", children: /* @__PURE__ */ jsx95("path", { d: "M0 0 L4 4 L8 0" }) }) }),
3660
+ /* @__PURE__ */ jsx98(OverlayArrow, { className: classNames2.arrow, children: /* @__PURE__ */ jsx98("svg", { width: 8, height: 8, viewBox: "0 0 8 8", children: /* @__PURE__ */ jsx98("path", { d: "M0 0 L4 4 L8 0" }) }) }),
3587
3661
  children
3588
3662
  ]
3589
3663
  }
@@ -3596,9 +3670,14 @@ import { VisuallyHidden } from "@react-aria/visually-hidden";
3596
3670
 
3597
3671
  // src/XLoader/XLoader.tsx
3598
3672
  import { forwardRef as forwardRef25 } from "react";
3599
- import { SVG as SVG5 } from "@marigold/system";
3600
- import { jsx as jsx96, jsxs as jsxs36 } from "react/jsx-runtime";
3601
- var XLoader = forwardRef25((props, ref) => /* @__PURE__ */ jsxs36(
3673
+ import { Dialog as Dialog2, Modal as Modal2, ModalOverlay as ModalOverlay2 } from "react-aria-components";
3674
+ import { SVG as SVG5, useClassNames as useClassNames55 } from "@marigold/system";
3675
+ import { Fragment as Fragment8, jsx as jsx99, jsxs as jsxs37 } from "react/jsx-runtime";
3676
+ var LoadingModes = {
3677
+ FullSize: "fullsize",
3678
+ Inline: "inline"
3679
+ };
3680
+ var Loader = forwardRef25((props, ref) => /* @__PURE__ */ jsxs37(
3602
3681
  SVG5,
3603
3682
  {
3604
3683
  id: "XLoader",
@@ -3608,13 +3687,13 @@ var XLoader = forwardRef25((props, ref) => /* @__PURE__ */ jsxs36(
3608
3687
  ...props,
3609
3688
  ...ref,
3610
3689
  children: [
3611
- /* @__PURE__ */ jsx96("path", { id: "XMLID_1_", d: "M35.3 27h26.5l54 74.1H88.7z" }),
3612
- /* @__PURE__ */ jsx96(
3690
+ /* @__PURE__ */ jsx99("path", { id: "XMLID_1_", d: "M35.3 27h26.5l54 74.1H88.7z" }),
3691
+ /* @__PURE__ */ jsx99(
3613
3692
  "path",
3614
3693
  {
3615
3694
  id: "XMLID_5_",
3616
3695
  d: "M124.3 12.8h-.7c-2.7 0-4.9-2.2-4.9-4.9v-.7c0-2.7 2.2-4.9 4.9-4.9h.7c2.7 0 4.9 2.2 4.9 4.9v.7c0 2.7-2.2 4.9-4.9 4.9z",
3617
- children: /* @__PURE__ */ jsx96(
3696
+ children: /* @__PURE__ */ jsx99(
3618
3697
  "animate",
3619
3698
  {
3620
3699
  attributeName: "opacity",
@@ -3627,12 +3706,12 @@ var XLoader = forwardRef25((props, ref) => /* @__PURE__ */ jsxs36(
3627
3706
  )
3628
3707
  }
3629
3708
  ),
3630
- /* @__PURE__ */ jsx96(
3709
+ /* @__PURE__ */ jsx99(
3631
3710
  "path",
3632
3711
  {
3633
3712
  id: "XMLID_18_",
3634
3713
  d: "M115.9 24.4h-.7c-2.7 0-4.9-2.2-4.9-4.9v-.7c0-2.7 2.2-4.9 4.9-4.9h.7c2.7 0 4.9 2.2 4.9 4.9v.7c0 2.7-2.2 4.9-4.9 4.9z",
3635
- children: /* @__PURE__ */ jsx96(
3714
+ children: /* @__PURE__ */ jsx99(
3636
3715
  "animate",
3637
3716
  {
3638
3717
  attributeName: "opacity",
@@ -3645,12 +3724,12 @@ var XLoader = forwardRef25((props, ref) => /* @__PURE__ */ jsxs36(
3645
3724
  )
3646
3725
  }
3647
3726
  ),
3648
- /* @__PURE__ */ jsx96(
3727
+ /* @__PURE__ */ jsx99(
3649
3728
  "path",
3650
3729
  {
3651
3730
  id: "XMLID_19_",
3652
3731
  d: "M107.5 35.9h-.7c-2.7 0-4.9-2.2-4.9-4.9v-.7c0-2.7 2.2-4.9 4.9-4.9h.7c2.7 0 4.9 2.2 4.9 4.9v.7c0 2.7-2.2 4.9-4.9 4.9z",
3653
- children: /* @__PURE__ */ jsx96(
3732
+ children: /* @__PURE__ */ jsx99(
3654
3733
  "animate",
3655
3734
  {
3656
3735
  attributeName: "opacity",
@@ -3663,12 +3742,12 @@ var XLoader = forwardRef25((props, ref) => /* @__PURE__ */ jsxs36(
3663
3742
  )
3664
3743
  }
3665
3744
  ),
3666
- /* @__PURE__ */ jsx96(
3745
+ /* @__PURE__ */ jsx99(
3667
3746
  "path",
3668
3747
  {
3669
3748
  id: "XMLID_20_",
3670
3749
  d: "M99.1 47.5h-.7c-2.7 0-4.9-2.2-4.9-4.9v-.7c0-2.7 2.2-4.9 4.9-4.9h.7c2.7 0 4.9 2.2 4.9 4.9v.7c0 2.7-2.2 4.9-4.9 4.9z",
3671
- children: /* @__PURE__ */ jsx96(
3750
+ children: /* @__PURE__ */ jsx99(
3672
3751
  "animate",
3673
3752
  {
3674
3753
  attributeName: "opacity",
@@ -3681,12 +3760,12 @@ var XLoader = forwardRef25((props, ref) => /* @__PURE__ */ jsxs36(
3681
3760
  )
3682
3761
  }
3683
3762
  ),
3684
- /* @__PURE__ */ jsx96(
3763
+ /* @__PURE__ */ jsx99(
3685
3764
  "path",
3686
3765
  {
3687
3766
  id: "XMLID_21_",
3688
3767
  d: "M90.7 59H90c-2.7 0-4.9-2.2-4.9-4.9v-.7c0-2.7 2.2-4.9 4.9-4.9h.7c2.7 0 4.9 2.2 4.9 4.9v.7c0 2.8-2.2 4.9-4.9 4.9z",
3689
- children: /* @__PURE__ */ jsx96(
3768
+ children: /* @__PURE__ */ jsx99(
3690
3769
  "animate",
3691
3770
  {
3692
3771
  attributeName: "opacity",
@@ -3699,12 +3778,12 @@ var XLoader = forwardRef25((props, ref) => /* @__PURE__ */ jsxs36(
3699
3778
  )
3700
3779
  }
3701
3780
  ),
3702
- /* @__PURE__ */ jsx96(
3781
+ /* @__PURE__ */ jsx99(
3703
3782
  "path",
3704
3783
  {
3705
3784
  id: "XMLID_22_",
3706
3785
  d: "M68 89.8h-.7c-2.7 0-4.9-2.2-4.9-4.9v-.7c0-2.7 2.2-4.9 4.9-4.9h.7c2.7 0 4.9 2.2 4.9 4.9v.8c0 2.6-2.2 4.8-4.9 4.8z",
3707
- children: /* @__PURE__ */ jsx96(
3786
+ children: /* @__PURE__ */ jsx99(
3708
3787
  "animate",
3709
3788
  {
3710
3789
  attributeName: "opacity",
@@ -3717,12 +3796,12 @@ var XLoader = forwardRef25((props, ref) => /* @__PURE__ */ jsxs36(
3717
3796
  )
3718
3797
  }
3719
3798
  ),
3720
- /* @__PURE__ */ jsx96(
3799
+ /* @__PURE__ */ jsx99(
3721
3800
  "path",
3722
3801
  {
3723
3802
  id: "XMLID_23_",
3724
3803
  d: "M59.6 101.4h-.7c-2.7 0-4.9-2.2-4.9-4.9v-.7c0-2.7 2.2-4.9 4.9-4.9h.7c2.7 0 4.9 2.2 4.9 4.9v.7c0 2.7-2.2 4.9-4.9 4.9z",
3725
- children: /* @__PURE__ */ jsx96(
3804
+ children: /* @__PURE__ */ jsx99(
3726
3805
  "animate",
3727
3806
  {
3728
3807
  attributeName: "opacity",
@@ -3735,12 +3814,12 @@ var XLoader = forwardRef25((props, ref) => /* @__PURE__ */ jsxs36(
3735
3814
  )
3736
3815
  }
3737
3816
  ),
3738
- /* @__PURE__ */ jsx96(
3817
+ /* @__PURE__ */ jsx99(
3739
3818
  "path",
3740
3819
  {
3741
3820
  id: "XMLID_24_",
3742
3821
  d: "M51.2 112.9h-.7c-2.7 0-4.9-2.2-4.9-4.9v-.7c0-2.7 2.2-4.9 4.9-4.9h.7c2.7 0 4.9 2.2 4.9 4.9v.7c-.1 2.8-2.2 4.9-4.9 4.9z",
3743
- children: /* @__PURE__ */ jsx96(
3822
+ children: /* @__PURE__ */ jsx99(
3744
3823
  "animate",
3745
3824
  {
3746
3825
  attributeName: "opacity",
@@ -3753,12 +3832,12 @@ var XLoader = forwardRef25((props, ref) => /* @__PURE__ */ jsxs36(
3753
3832
  )
3754
3833
  }
3755
3834
  ),
3756
- /* @__PURE__ */ jsx96(
3835
+ /* @__PURE__ */ jsx99(
3757
3836
  "path",
3758
3837
  {
3759
3838
  id: "XMLID_25_",
3760
3839
  d: "M42.8 124.5h-.7c-2.7 0-4.9-2.2-4.9-4.9v-.7c0-2.7 2.2-4.9 4.9-4.9h.7c2.7 0 4.9 2.2 4.9 4.9v.7c-.1 2.7-2.2 4.9-4.9 4.9z",
3761
- children: /* @__PURE__ */ jsx96(
3840
+ children: /* @__PURE__ */ jsx99(
3762
3841
  "animate",
3763
3842
  {
3764
3843
  attributeName: "opacity",
@@ -3771,12 +3850,12 @@ var XLoader = forwardRef25((props, ref) => /* @__PURE__ */ jsxs36(
3771
3850
  )
3772
3851
  }
3773
3852
  ),
3774
- /* @__PURE__ */ jsx96(
3853
+ /* @__PURE__ */ jsx99(
3775
3854
  "path",
3776
3855
  {
3777
3856
  id: "XMLID_26_",
3778
3857
  d: "M34.4 136h-.7c-2.7 0-4.9-2.2-4.9-4.9v-.7c0-2.7 2.2-4.9 4.9-4.9h.7c2.7 0 4.9 2.2 4.9 4.9v.7c-.1 2.7-2.2 4.9-4.9 4.9z",
3779
- children: /* @__PURE__ */ jsx96(
3858
+ children: /* @__PURE__ */ jsx99(
3780
3859
  "animate",
3781
3860
  {
3782
3861
  attributeName: "opacity",
@@ -3789,12 +3868,12 @@ var XLoader = forwardRef25((props, ref) => /* @__PURE__ */ jsxs36(
3789
3868
  )
3790
3869
  }
3791
3870
  ),
3792
- /* @__PURE__ */ jsx96(
3871
+ /* @__PURE__ */ jsx99(
3793
3872
  "path",
3794
3873
  {
3795
3874
  id: "XMLID_27_",
3796
3875
  d: "M26 147.6h-.7c-2.7 0-4.9-2.2-4.9-4.9v-.7c0-2.7 2.2-4.9 4.9-4.9h.7c2.7 0 4.9 2.2 4.9 4.9v.7c-.1 2.8-2.2 4.9-4.9 4.9z",
3797
- children: /* @__PURE__ */ jsx96(
3876
+ children: /* @__PURE__ */ jsx99(
3798
3877
  "animate",
3799
3878
  {
3800
3879
  attributeName: "opacity",
@@ -3810,10 +3889,36 @@ var XLoader = forwardRef25((props, ref) => /* @__PURE__ */ jsxs36(
3810
3889
  ]
3811
3890
  }
3812
3891
  ));
3892
+ var LoaderFullSize = forwardRef25(
3893
+ ({ children, ...rest }, ref) => {
3894
+ const className = useClassNames55({
3895
+ component: "Underlay",
3896
+ variant: "modal",
3897
+ className: "fixed left-0 top-0 z-10 flex h-[--visual-viewport-height] w-screen items-center justify-center bg-gray-950/30 cursor-progress"
3898
+ });
3899
+ return /* @__PURE__ */ jsx99(ModalOverlay2, { defaultOpen: true, className, isKeyboardDismissDisabled: true, children: /* @__PURE__ */ jsx99(Modal2, { children: /* @__PURE__ */ jsx99(Dialog2, { className: "text-text-inverted outline-0", children: /* @__PURE__ */ jsxs37(Stack, { space: 2, alignX: "center", children: [
3900
+ /* @__PURE__ */ jsx99(Loader, { ...rest, ...ref, color: "text-inverted", size: 80 }),
3901
+ children
3902
+ ] }) }) }) });
3903
+ }
3904
+ );
3905
+ var LoaderInline = forwardRef25(
3906
+ ({ children, ...rest }, ref) => {
3907
+ return /* @__PURE__ */ jsx99("div", { className: "text-text-inverted flex h-full w-full items-center justify-center bg-gray-950/30", children: /* @__PURE__ */ jsxs37(Stack, { space: 2, alignX: "center", children: [
3908
+ /* @__PURE__ */ jsx99(Loader, { ...rest, ...ref, color: "text-inverted", size: 80 }),
3909
+ children
3910
+ ] }) });
3911
+ }
3912
+ );
3913
+ var XLoader = forwardRef25(
3914
+ ({ mode, ...rest }, ref) => {
3915
+ return /* @__PURE__ */ jsx99(Fragment8, { children: mode === LoadingModes.FullSize ? /* @__PURE__ */ jsx99(LoaderFullSize, { ...rest, ...ref }) : mode === LoadingModes.Inline ? /* @__PURE__ */ jsx99(LoaderInline, { ...rest, ...ref }) : /* @__PURE__ */ jsx99(Loader, { ...rest, ...ref }) });
3916
+ }
3917
+ );
3813
3918
 
3814
3919
  // src/Tabs/Tabs.tsx
3815
3920
  import { Tabs } from "react-aria-components";
3816
- import { useClassNames as useClassNames52 } from "@marigold/system";
3921
+ import { useClassNames as useClassNames56 } from "@marigold/system";
3817
3922
 
3818
3923
  // src/Tabs/Context.ts
3819
3924
  import { createContext as createContext10, useContext as useContext16 } from "react";
@@ -3822,15 +3927,15 @@ var useTabContext = () => useContext16(TabContext);
3822
3927
 
3823
3928
  // src/Tabs/Tab.tsx
3824
3929
  import { Tab } from "react-aria-components";
3825
- import { cn as cn58 } from "@marigold/system";
3826
- import { jsx as jsx97 } from "react/jsx-runtime";
3930
+ import { cn as cn61 } from "@marigold/system";
3931
+ import { jsx as jsx100 } from "react/jsx-runtime";
3827
3932
  var _Tab = (props) => {
3828
3933
  const { classNames: classNames2 } = useTabContext();
3829
- return /* @__PURE__ */ jsx97(
3934
+ return /* @__PURE__ */ jsx100(
3830
3935
  Tab,
3831
3936
  {
3832
3937
  ...props,
3833
- className: cn58(
3938
+ className: cn61(
3834
3939
  "flex cursor-pointer justify-center aria-disabled:cursor-not-allowed",
3835
3940
  classNames2.tab
3836
3941
  ),
@@ -3841,15 +3946,15 @@ var _Tab = (props) => {
3841
3946
 
3842
3947
  // src/Tabs/TabList.tsx
3843
3948
  import { TabList } from "react-aria-components";
3844
- import { cn as cn59, gapSpace as gapSpace9 } from "@marigold/system";
3845
- import { jsx as jsx98 } from "react/jsx-runtime";
3949
+ import { cn as cn62, gapSpace as gapSpace9 } from "@marigold/system";
3950
+ import { jsx as jsx101 } from "react/jsx-runtime";
3846
3951
  var _TabList = ({ space = 2, ...props }) => {
3847
3952
  const { classNames: classNames2 } = useTabContext();
3848
- return /* @__PURE__ */ jsx98(
3953
+ return /* @__PURE__ */ jsx101(
3849
3954
  TabList,
3850
3955
  {
3851
3956
  ...props,
3852
- className: cn59("flex", gapSpace9[space], classNames2.tabsList),
3957
+ className: cn62("flex", gapSpace9[space], classNames2.tabsList),
3853
3958
  children: props.children
3854
3959
  }
3855
3960
  );
@@ -3857,25 +3962,25 @@ var _TabList = ({ space = 2, ...props }) => {
3857
3962
 
3858
3963
  // src/Tabs/TabPanel.tsx
3859
3964
  import { TabPanel } from "react-aria-components";
3860
- import { jsx as jsx99 } from "react/jsx-runtime";
3965
+ import { jsx as jsx102 } from "react/jsx-runtime";
3861
3966
  var _TabPanel = (props) => {
3862
3967
  const { classNames: classNames2 } = useTabContext();
3863
- return /* @__PURE__ */ jsx99(TabPanel, { ...props, className: classNames2.tabpanel, children: props.children });
3968
+ return /* @__PURE__ */ jsx102(TabPanel, { ...props, className: classNames2.tabpanel, children: props.children });
3864
3969
  };
3865
3970
 
3866
3971
  // src/Tabs/Tabs.tsx
3867
- import { jsx as jsx100 } from "react/jsx-runtime";
3972
+ import { jsx as jsx103 } from "react/jsx-runtime";
3868
3973
  var _Tabs = ({ disabled, variant, size = "medium", ...rest }) => {
3869
3974
  const props = {
3870
3975
  isDisabled: disabled,
3871
3976
  ...rest
3872
3977
  };
3873
- const classNames2 = useClassNames52({
3978
+ const classNames2 = useClassNames56({
3874
3979
  component: "Tabs",
3875
3980
  size,
3876
3981
  variant
3877
3982
  });
3878
- return /* @__PURE__ */ jsx100(TabContext.Provider, { value: { classNames: classNames2 }, children: /* @__PURE__ */ jsx100(Tabs, { ...props, className: classNames2.container, children: props.children }) });
3983
+ return /* @__PURE__ */ jsx103(TabContext.Provider, { value: { classNames: classNames2 }, children: /* @__PURE__ */ jsx103(Tabs, { ...props, className: classNames2.container, children: props.children }) });
3879
3984
  };
3880
3985
  _Tabs.List = _TabList;
3881
3986
  _Tabs.TabPanel = _TabPanel;