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