@marigold/components 7.4.0 → 7.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -424,7 +424,13 @@ var _FieldBase = (props, ref) => {
424
424
  Component,
425
425
  {
426
426
  ref,
427
- className: cn6("group/field", twWidth[width], classNames2, className),
427
+ className: cn6(
428
+ "group/field",
429
+ twWidth[width],
430
+ classNames2,
431
+ className,
432
+ !label && `gap-x-0`
433
+ ),
428
434
  "data-required": props.isRequired ? true : void 0,
429
435
  "data-error": props.isInvalid ? true : void 0,
430
436
  ...rest,
@@ -693,7 +699,7 @@ var Underlay = ({
693
699
  ModalOverlay,
694
700
  {
695
701
  className: ({ isEntering, isExiting }) => cn11(
696
- "fixed inset-0 z-10 flex min-h-full items-center justify-center overflow-y-auto backdrop-blur ",
702
+ "fixed inset-0 z-40 flex min-h-full items-center justify-center overflow-y-auto backdrop-blur ",
697
703
  isEntering ? "animate-in fade-in duration-300 ease-out" : "",
698
704
  isExiting ? "animate-out fade-out duration-200 ease-in" : "",
699
705
  classNames2
@@ -732,7 +738,7 @@ var _Popover = forwardRef7(
732
738
  ref,
733
739
  ...props,
734
740
  className: cn12(
735
- "!left-0 bottom-0 !mt-auto flex !max-h-fit w-full flex-col"
741
+ "!fixed !bottom-0 !left-0 !top-auto !max-h-fit w-full"
736
742
  ),
737
743
  UNSTABLE_portalContainer: portal,
738
744
  children
@@ -881,7 +887,6 @@ var _ComboBox = forwardRef10(
881
887
  ...rest
882
888
  };
883
889
  const classNames2 = useClassNames10({ component: "ComboBox", variant, size });
884
- console.log(classNames2);
885
890
  return /* @__PURE__ */ jsxs9(FieldBase, { as: ComboBox2, ref, ...props, children: [
886
891
  /* @__PURE__ */ jsx21(
887
892
  _Input,
@@ -1015,11 +1020,25 @@ var Center = ({
1015
1020
  };
1016
1021
 
1017
1022
  // src/Checkbox/Checkbox.tsx
1018
- import { forwardRef as forwardRef11 } from "react";
1023
+ import { forwardRef as forwardRef11, useContext as useContext4 } from "react";
1019
1024
  import { Checkbox } from "react-aria-components";
1020
- import { cn as cn17, useClassNames as useClassNames14 } from "@marigold/system";
1021
- import { Fragment as Fragment2, jsx as jsx27, jsxs as jsxs10 } from "react/jsx-runtime";
1022
- var CheckMark = () => /* @__PURE__ */ jsx27("svg", { viewBox: "0 0 12 10", children: /* @__PURE__ */ jsx27(
1025
+ import { CheckboxGroupStateContext } from "react-aria-components";
1026
+ import { cn as cn17, useClassNames as useClassNames15 } from "@marigold/system";
1027
+
1028
+ // src/Checkbox/CheckBoxField.tsx
1029
+ import { createVar as createVar6, useClassNames as useClassNames14 } from "@marigold/system";
1030
+ import { jsx as jsx27, jsxs as jsxs10 } from "react/jsx-runtime";
1031
+ var CheckboxField = ({ children, labelWidth }) => {
1032
+ const classNames2 = useClassNames14({ component: "Field" });
1033
+ return /* @__PURE__ */ jsxs10("div", { className: classNames2, children: [
1034
+ /* @__PURE__ */ jsx27("div", { className: "w-[--labelWidth]", style: createVar6({ labelWidth }) }),
1035
+ children
1036
+ ] });
1037
+ };
1038
+
1039
+ // src/Checkbox/Checkbox.tsx
1040
+ import { Fragment as Fragment2, jsx as jsx28, jsxs as jsxs11 } from "react/jsx-runtime";
1041
+ var CheckMark = () => /* @__PURE__ */ jsx28("svg", { viewBox: "0 0 12 10", children: /* @__PURE__ */ jsx28(
1023
1042
  "path",
1024
1043
  {
1025
1044
  fill: "currentColor",
@@ -1027,7 +1046,7 @@ var CheckMark = () => /* @__PURE__ */ jsx27("svg", { viewBox: "0 0 12 10", child
1027
1046
  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"
1028
1047
  }
1029
1048
  ) });
1030
- var IndeterminateMark = () => /* @__PURE__ */ jsx27("svg", { width: "12", height: "3", viewBox: "0 0 12 3", children: /* @__PURE__ */ jsx27(
1049
+ var IndeterminateMark = () => /* @__PURE__ */ jsx28("svg", { width: "12", height: "3", viewBox: "0 0 12 3", children: /* @__PURE__ */ jsx28(
1031
1050
  "path",
1032
1051
  {
1033
1052
  fill: "currentColor",
@@ -1036,7 +1055,7 @@ var IndeterminateMark = () => /* @__PURE__ */ jsx27("svg", { width: "12", height
1036
1055
  }
1037
1056
  ) });
1038
1057
  var Icon2 = ({ className, checked, indeterminate, ...props }) => {
1039
- return /* @__PURE__ */ jsx27(
1058
+ return /* @__PURE__ */ jsx28(
1040
1059
  "div",
1041
1060
  {
1042
1061
  "aria-hidden": "true",
@@ -1048,7 +1067,7 @@ var Icon2 = ({ className, checked, indeterminate, ...props }) => {
1048
1067
  className
1049
1068
  ),
1050
1069
  ...props,
1051
- children: indeterminate ? /* @__PURE__ */ jsx27(IndeterminateMark, {}) : checked ? /* @__PURE__ */ jsx27(CheckMark, {}) : null
1070
+ children: indeterminate ? /* @__PURE__ */ jsx28(IndeterminateMark, {}) : checked ? /* @__PURE__ */ jsx28(CheckMark, {}) : null
1052
1071
  }
1053
1072
  );
1054
1073
  };
@@ -1077,8 +1096,10 @@ var _Checkbox = forwardRef11(
1077
1096
  defaultSelected: defaultChecked,
1078
1097
  ...rest
1079
1098
  };
1080
- const classNames2 = useClassNames14({ component: "Checkbox", variant, size });
1081
- return /* @__PURE__ */ jsx27(
1099
+ const { labelWidth } = useFieldGroupContext();
1100
+ const classNames2 = useClassNames15({ component: "Checkbox", variant, size });
1101
+ const state = useContext4(CheckboxGroupStateContext);
1102
+ const component = /* @__PURE__ */ jsx28(
1082
1103
  Checkbox,
1083
1104
  {
1084
1105
  ref,
@@ -1088,8 +1109,8 @@ var _Checkbox = forwardRef11(
1088
1109
  classNames2.container
1089
1110
  ),
1090
1111
  ...props,
1091
- children: ({ isSelected, isIndeterminate }) => /* @__PURE__ */ jsxs10(Fragment2, { children: [
1092
- /* @__PURE__ */ jsx27(
1112
+ children: ({ isSelected, isIndeterminate }) => /* @__PURE__ */ jsxs11(Fragment2, { children: [
1113
+ /* @__PURE__ */ jsx28(
1093
1114
  Icon2,
1094
1115
  {
1095
1116
  checked: isSelected,
@@ -1097,17 +1118,26 @@ var _Checkbox = forwardRef11(
1097
1118
  className: classNames2.checkbox
1098
1119
  }
1099
1120
  ),
1100
- /* @__PURE__ */ jsx27("div", { className: classNames2.label, children })
1121
+ /* @__PURE__ */ jsx28("div", { className: classNames2.label, children })
1101
1122
  ] })
1102
1123
  }
1103
1124
  );
1125
+ return !state && labelWidth ? /* @__PURE__ */ jsx28(CheckboxField, { labelWidth, children: component }) : component;
1104
1126
  }
1105
1127
  );
1106
1128
 
1107
1129
  // src/Checkbox/CheckboxGroup.tsx
1108
1130
  import { CheckboxGroup } from "react-aria-components";
1109
- import { useClassNames as useClassNames15 } from "@marigold/system";
1110
- import { jsx as jsx28 } from "react/jsx-runtime";
1131
+ import { cn as cn18, useClassNames as useClassNames16 } from "@marigold/system";
1132
+
1133
+ // src/Checkbox/Context.tsx
1134
+ import { createContext as createContext4, useContext as useContext5 } from "react";
1135
+ var CheckboxGroupContext = createContext4(
1136
+ null
1137
+ );
1138
+
1139
+ // src/Checkbox/CheckboxGroup.tsx
1140
+ import { jsx as jsx29 } from "react/jsx-runtime";
1111
1141
  var _CheckboxGroup = ({
1112
1142
  children,
1113
1143
  variant,
@@ -1116,13 +1146,15 @@ var _CheckboxGroup = ({
1116
1146
  disabled,
1117
1147
  readOnly,
1118
1148
  error,
1149
+ width,
1150
+ orientation = "vertical",
1119
1151
  ...rest
1120
1152
  }) => {
1121
- const classNames2 = useClassNames15({
1153
+ const classNames2 = useClassNames16({
1122
1154
  component: "Checkbox",
1123
1155
  variant,
1124
1156
  size,
1125
- className: { group: "flex flex-col items-start gap-[0.5ch]" }
1157
+ className: { group: "gap-x-2" }
1126
1158
  });
1127
1159
  const props = {
1128
1160
  className: classNames2.group,
@@ -1132,17 +1164,29 @@ var _CheckboxGroup = ({
1132
1164
  isInvalid: error,
1133
1165
  ...rest
1134
1166
  };
1135
- return /* @__PURE__ */ jsx28(FieldBase, { as: CheckboxGroup, ...props, children });
1167
+ return /* @__PURE__ */ jsx29(FieldBase, { as: CheckboxGroup, width, ...props, children: /* @__PURE__ */ jsx29(
1168
+ "div",
1169
+ {
1170
+ role: "presentation",
1171
+ "data-orientation": orientation,
1172
+ className: cn18(
1173
+ classNames2.group,
1174
+ "flex items-start",
1175
+ orientation === "vertical" ? "flex-col gap-[0.5ch]" : "flex-row gap-[1.5ch]"
1176
+ ),
1177
+ children: /* @__PURE__ */ jsx29(CheckboxGroupContext.Provider, { value: { width, variant, size }, children })
1178
+ }
1179
+ ) });
1136
1180
  };
1137
1181
 
1138
1182
  // src/Columns/Columns.tsx
1139
1183
  import { Children as Children3 } from "react";
1140
- import { cn as cn18, createVar as createVar6, gapSpace as gapSpace4 } from "@marigold/system";
1141
- import { jsx as jsx29 } from "react/jsx-runtime";
1184
+ import { cn as cn19, createVar as createVar7, gapSpace as gapSpace4 } from "@marigold/system";
1185
+ import { jsx as jsx30 } from "react/jsx-runtime";
1142
1186
  var Columns = ({
1143
1187
  space = 0,
1144
1188
  columns,
1145
- collapseAt = "0em",
1189
+ collapseAt,
1146
1190
  stretch,
1147
1191
  children,
1148
1192
  ...props
@@ -1154,22 +1198,26 @@ var Columns = ({
1154
1198
  )}`
1155
1199
  );
1156
1200
  }
1157
- return /* @__PURE__ */ jsx29(
1201
+ return /* @__PURE__ */ jsx30(
1158
1202
  "div",
1159
1203
  {
1160
- className: cn18(
1204
+ className: cn19(
1161
1205
  "flex flex-wrap items-stretch",
1162
1206
  stretch && "h-full",
1163
1207
  gapSpace4[space]
1164
1208
  ),
1165
1209
  ...props,
1166
- children: Children3.map(children, (child, idx) => /* @__PURE__ */ jsx29(
1210
+ children: Children3.map(children, (child, idx) => /* @__PURE__ */ jsx30(
1167
1211
  "div",
1168
1212
  {
1169
- className: cn18(
1170
- "grow-[--columnSize] basis-[calc((var(--collapseAt)_-_100%)_*_999)]"
1213
+ className: cn19(
1214
+ columns[idx] !== "fit" ? "flex-[--columnSize]" : "flex h-fit w-fit",
1215
+ "basis-[calc((var(--collapseAt)_-_100%)_*_999)]"
1171
1216
  ),
1172
- style: createVar6({ collapseAt, columnSize: columns[idx] }),
1217
+ style: createVar7({
1218
+ collapseAt,
1219
+ columnSize: columns[idx]
1220
+ }),
1173
1221
  children: child
1174
1222
  }
1175
1223
  ))
@@ -1179,13 +1227,13 @@ var Columns = ({
1179
1227
 
1180
1228
  // src/Container/Container.tsx
1181
1229
  import {
1182
- cn as cn19,
1183
- createVar as createVar7,
1230
+ cn as cn20,
1231
+ createVar as createVar8,
1184
1232
  gridColsAlign,
1185
1233
  gridColumn,
1186
1234
  placeItems
1187
1235
  } from "@marigold/system";
1188
- import { jsx as jsx30 } from "react/jsx-runtime";
1236
+ import { jsx as jsx31 } from "react/jsx-runtime";
1189
1237
  var content = {
1190
1238
  small: "20ch",
1191
1239
  medium: "45ch",
@@ -1205,38 +1253,38 @@ var Container = ({
1205
1253
  ...props
1206
1254
  }) => {
1207
1255
  const maxWidth = contentType === "content" ? content[size] : header[size];
1208
- return /* @__PURE__ */ jsx30(
1256
+ return /* @__PURE__ */ jsx31(
1209
1257
  "div",
1210
1258
  {
1211
1259
  ...props,
1212
- className: cn19(
1260
+ className: cn20(
1213
1261
  "grid",
1214
1262
  placeItems[alignItems],
1215
1263
  gridColsAlign[align],
1216
1264
  gridColumn[align]
1217
1265
  ),
1218
- style: createVar7({ maxWidth }),
1266
+ style: createVar8({ maxWidth }),
1219
1267
  children
1220
1268
  }
1221
1269
  );
1222
1270
  };
1223
1271
 
1224
1272
  // src/Dialog/Dialog.tsx
1225
- import { useContext as useContext4 } from "react";
1273
+ import { useContext as useContext6 } from "react";
1226
1274
  import { Dialog, OverlayTriggerStateContext } from "react-aria-components";
1227
- import { cn as cn21, useClassNames as useClassNames17 } from "@marigold/system";
1275
+ import { cn as cn22, useClassNames as useClassNames18 } from "@marigold/system";
1228
1276
 
1229
1277
  // src/Headline/Headline.tsx
1230
1278
  import { Heading } from "react-aria-components";
1231
1279
  import {
1232
- cn as cn20,
1233
- createVar as createVar8,
1280
+ cn as cn21,
1281
+ createVar as createVar9,
1234
1282
  getColor,
1235
1283
  textAlign,
1236
- useClassNames as useClassNames16,
1284
+ useClassNames as useClassNames17,
1237
1285
  useTheme as useTheme2
1238
1286
  } from "@marigold/system";
1239
- import { jsx as jsx31 } from "react/jsx-runtime";
1287
+ import { jsx as jsx32 } from "react/jsx-runtime";
1240
1288
  var _Headline = ({
1241
1289
  variant,
1242
1290
  size,
@@ -1247,18 +1295,18 @@ var _Headline = ({
1247
1295
  ...props
1248
1296
  }) => {
1249
1297
  const theme = useTheme2();
1250
- const classNames2 = useClassNames16({
1298
+ const classNames2 = useClassNames17({
1251
1299
  component: "Headline",
1252
1300
  variant,
1253
1301
  size: size != null ? size : `level-${level}`
1254
1302
  });
1255
- return /* @__PURE__ */ jsx31(
1303
+ return /* @__PURE__ */ jsx32(
1256
1304
  Heading,
1257
1305
  {
1258
1306
  level: Number(level),
1259
1307
  ...props,
1260
- className: cn20(classNames2, "text-[--color]", textAlign[align]),
1261
- style: createVar8({
1308
+ className: cn21(classNames2, "text-[--color]", textAlign[align]),
1309
+ style: createVar9({
1262
1310
  color: color && getColor(
1263
1311
  theme,
1264
1312
  color,
@@ -1278,7 +1326,7 @@ import { DialogTrigger } from "react-aria-components";
1278
1326
  // src/Overlay/Modal.tsx
1279
1327
  import { forwardRef as forwardRef12 } from "react";
1280
1328
  import { Modal } from "react-aria-components";
1281
- import { jsx as jsx32 } from "react/jsx-runtime";
1329
+ import { jsx as jsx33 } from "react/jsx-runtime";
1282
1330
  var _Modal = forwardRef12(({ open, dismissable, keyboardDismissable, ...rest }, ref) => {
1283
1331
  const props = {
1284
1332
  isOpen: open,
@@ -1286,20 +1334,20 @@ var _Modal = forwardRef12(({ open, dismissable, keyboardDismissable, ...rest },
1286
1334
  isKeyboardDismissDisabled: keyboardDismissable,
1287
1335
  ...rest
1288
1336
  };
1289
- return /* @__PURE__ */ jsx32(
1337
+ return /* @__PURE__ */ jsx33(
1290
1338
  Underlay,
1291
1339
  {
1292
1340
  dismissable,
1293
1341
  keyboardDismissable,
1294
1342
  open,
1295
1343
  variant: "modal",
1296
- children: /* @__PURE__ */ jsx32(Modal, { ref, ...props, children: props.children })
1344
+ children: /* @__PURE__ */ jsx33(Modal, { ref, ...props, children: props.children })
1297
1345
  }
1298
1346
  );
1299
1347
  });
1300
1348
 
1301
1349
  // src/Dialog/DialogTrigger.tsx
1302
- import { jsx as jsx33, jsxs as jsxs11 } from "react/jsx-runtime";
1350
+ import { jsx as jsx34, jsxs as jsxs12 } from "react/jsx-runtime";
1303
1351
  var _DialogTrigger = ({
1304
1352
  open,
1305
1353
  dismissable,
@@ -1316,10 +1364,10 @@ var _DialogTrigger = ({
1316
1364
  const hasDialogTrigger = dialogTrigger.type !== _Dialog;
1317
1365
  const currentDialog = children.length < 2 ? !hasDialogTrigger && dialogTrigger : dialog;
1318
1366
  if (isNonModal)
1319
- return /* @__PURE__ */ jsx33(DialogTrigger, { ...props, children: props.children });
1320
- return /* @__PURE__ */ jsxs11(DialogTrigger, { ...props, children: [
1367
+ return /* @__PURE__ */ jsx34(DialogTrigger, { ...props, children: props.children });
1368
+ return /* @__PURE__ */ jsxs12(DialogTrigger, { ...props, children: [
1321
1369
  hasDialogTrigger && dialogTrigger,
1322
- /* @__PURE__ */ jsx33(
1370
+ /* @__PURE__ */ jsx34(
1323
1371
  _Modal,
1324
1372
  {
1325
1373
  dismissable,
@@ -1331,18 +1379,18 @@ var _DialogTrigger = ({
1331
1379
  };
1332
1380
 
1333
1381
  // src/Dialog/Dialog.tsx
1334
- import { Fragment as Fragment3, jsx as jsx34, jsxs as jsxs12 } from "react/jsx-runtime";
1382
+ import { Fragment as Fragment3, jsx as jsx35, jsxs as jsxs13 } from "react/jsx-runtime";
1335
1383
  var CloseButton = ({ className }) => {
1336
- const { close } = useContext4(OverlayTriggerStateContext);
1337
- return /* @__PURE__ */ jsx34("div", { className: "flex justify-end", children: /* @__PURE__ */ jsx34(
1384
+ const { close } = useContext6(OverlayTriggerStateContext);
1385
+ return /* @__PURE__ */ jsx35("div", { className: "flex justify-end", children: /* @__PURE__ */ jsx35(
1338
1386
  "button",
1339
1387
  {
1340
- className: cn21(
1388
+ className: cn22(
1341
1389
  "h-4 w-4 cursor-pointer border-none p-0 leading-normal outline-0",
1342
1390
  className
1343
1391
  ),
1344
1392
  onClick: close,
1345
- children: /* @__PURE__ */ jsx34("svg", { viewBox: "0 0 20 20", fill: "currentColor", children: /* @__PURE__ */ jsx34(
1393
+ children: /* @__PURE__ */ jsx35("svg", { viewBox: "0 0 20 20", fill: "currentColor", children: /* @__PURE__ */ jsx35(
1346
1394
  "path",
1347
1395
  {
1348
1396
  fillRule: "evenodd",
@@ -1353,7 +1401,7 @@ var CloseButton = ({ className }) => {
1353
1401
  }
1354
1402
  ) });
1355
1403
  };
1356
- var DialogHeadline = ({ children }) => /* @__PURE__ */ jsx34(_Headline, { slot: "title", children });
1404
+ var DialogHeadline = ({ children }) => /* @__PURE__ */ jsx35(_Headline, { slot: "title", children });
1357
1405
  var _Dialog = ({
1358
1406
  variant,
1359
1407
  size,
@@ -1361,8 +1409,8 @@ var _Dialog = ({
1361
1409
  isNonModal,
1362
1410
  ...props
1363
1411
  }) => {
1364
- const classNames2 = useClassNames17({ component: "Dialog", variant, size });
1365
- let state = useContext4(OverlayTriggerStateContext);
1412
+ const classNames2 = useClassNames18({ component: "Dialog", variant, size });
1413
+ let state = useContext6(OverlayTriggerStateContext);
1366
1414
  let children = props.children;
1367
1415
  if (typeof children === "function") {
1368
1416
  children = children({
@@ -1370,13 +1418,13 @@ var _Dialog = ({
1370
1418
  })
1371
1419
  });
1372
1420
  }
1373
- return /* @__PURE__ */ jsx34(
1421
+ return /* @__PURE__ */ jsx35(
1374
1422
  Dialog,
1375
1423
  {
1376
1424
  ...props,
1377
- className: cn21("relative outline-none", classNames2.container),
1378
- children: /* @__PURE__ */ jsxs12(Fragment3, { children: [
1379
- closeButton && /* @__PURE__ */ jsx34(CloseButton, { className: classNames2.closeButton }),
1425
+ className: cn22("relative outline-none", classNames2.container),
1426
+ children: /* @__PURE__ */ jsxs13(Fragment3, { children: [
1427
+ closeButton && /* @__PURE__ */ jsx35(CloseButton, { className: classNames2.closeButton }),
1380
1428
  children
1381
1429
  ] })
1382
1430
  }
@@ -1387,19 +1435,19 @@ _Dialog.Headline = DialogHeadline;
1387
1435
 
1388
1436
  // src/Divider/Divider.tsx
1389
1437
  import { Separator } from "react-aria-components";
1390
- import { useClassNames as useClassNames18 } from "@marigold/system";
1391
- import { jsx as jsx35 } from "react/jsx-runtime";
1438
+ import { useClassNames as useClassNames19 } from "@marigold/system";
1439
+ import { jsx as jsx36 } from "react/jsx-runtime";
1392
1440
  var _Divider = ({ variant, ...props }) => {
1393
- const classNames2 = useClassNames18({ component: "Divider", variant });
1394
- return /* @__PURE__ */ jsx35(Separator, { className: classNames2, ...props });
1441
+ const classNames2 = useClassNames19({ component: "Divider", variant });
1442
+ return /* @__PURE__ */ jsx36(Separator, { className: classNames2, ...props });
1395
1443
  };
1396
1444
 
1397
1445
  // src/Footer/Footer.tsx
1398
- import { useClassNames as useClassNames19 } from "@marigold/system";
1399
- import { jsx as jsx36 } from "react/jsx-runtime";
1446
+ import { useClassNames as useClassNames20 } from "@marigold/system";
1447
+ import { jsx as jsx37 } from "react/jsx-runtime";
1400
1448
  var Footer = ({ children, variant, size, ...props }) => {
1401
- const classNames2 = useClassNames19({ component: "Footer", variant, size });
1402
- return /* @__PURE__ */ jsx36("footer", { ...props, className: classNames2, children });
1449
+ const classNames2 = useClassNames20({ component: "Footer", variant, size });
1450
+ return /* @__PURE__ */ jsx37("footer", { ...props, className: classNames2, children });
1403
1451
  };
1404
1452
 
1405
1453
  // src/Form/Form.tsx
@@ -1407,25 +1455,25 @@ import { Form } from "react-aria-components";
1407
1455
 
1408
1456
  // src/Header/Header.tsx
1409
1457
  import { Header } from "react-aria-components";
1410
- import { useClassNames as useClassNames20 } from "@marigold/system";
1411
- import { jsx as jsx37 } from "react/jsx-runtime";
1458
+ import { useClassNames as useClassNames21 } from "@marigold/system";
1459
+ import { jsx as jsx38 } from "react/jsx-runtime";
1412
1460
  var _Header = ({ variant, size, ...props }) => {
1413
- const classNames2 = useClassNames20({
1461
+ const classNames2 = useClassNames21({
1414
1462
  component: "Header",
1415
1463
  variant,
1416
1464
  size
1417
1465
  });
1418
- return /* @__PURE__ */ jsx37(Header, { className: classNames2, ...props, children: props.children });
1466
+ return /* @__PURE__ */ jsx38(Header, { className: classNames2, ...props, children: props.children });
1419
1467
  };
1420
1468
 
1421
1469
  // src/Image/Image.tsx
1422
1470
  import {
1423
- cn as cn22,
1471
+ cn as cn23,
1424
1472
  objectFit,
1425
1473
  objectPosition,
1426
- useClassNames as useClassNames21
1474
+ useClassNames as useClassNames22
1427
1475
  } from "@marigold/system";
1428
- import { jsx as jsx38 } from "react/jsx-runtime";
1476
+ import { jsx as jsx39 } from "react/jsx-runtime";
1429
1477
  var Image = ({
1430
1478
  variant,
1431
1479
  size,
@@ -1433,13 +1481,13 @@ var Image = ({
1433
1481
  position = "none",
1434
1482
  ...props
1435
1483
  }) => {
1436
- const classNames2 = useClassNames21({ component: "Image", variant, size });
1437
- return /* @__PURE__ */ jsx38(
1484
+ const classNames2 = useClassNames22({ component: "Image", variant, size });
1485
+ return /* @__PURE__ */ jsx39(
1438
1486
  "img",
1439
1487
  {
1440
1488
  ...props,
1441
1489
  alt: props.alt,
1442
- className: cn22(
1490
+ className: cn23(
1443
1491
  fit !== "none" && "h-full w-full",
1444
1492
  classNames2,
1445
1493
  objectFit[fit],
@@ -1452,10 +1500,10 @@ var Image = ({
1452
1500
  // src/Inline/Inline.tsx
1453
1501
  import {
1454
1502
  alignment as alignment2,
1455
- cn as cn23,
1503
+ cn as cn24,
1456
1504
  gapSpace as gapSpace5
1457
1505
  } from "@marigold/system";
1458
- import { jsx as jsx39 } from "react/jsx-runtime";
1506
+ import { jsx as jsx40 } from "react/jsx-runtime";
1459
1507
  var Inline = ({
1460
1508
  space = 0,
1461
1509
  orientation,
@@ -1465,11 +1513,11 @@ var Inline = ({
1465
1513
  ...props
1466
1514
  }) => {
1467
1515
  var _a2, _b2, _c, _d;
1468
- return /* @__PURE__ */ jsx39(
1516
+ return /* @__PURE__ */ jsx40(
1469
1517
  "div",
1470
1518
  {
1471
1519
  ...props,
1472
- className: cn23(
1520
+ className: cn24(
1473
1521
  "flex flex-wrap",
1474
1522
  gapSpace5[space],
1475
1523
  alignX && ((_b2 = (_a2 = alignment2) == null ? void 0 : _a2.horizontal) == null ? void 0 : _b2.alignmentX[alignX]),
@@ -1486,14 +1534,14 @@ import { DateField } from "react-aria-components";
1486
1534
 
1487
1535
  // src/DateField/DateInput.tsx
1488
1536
  import { DateInput, Group } from "react-aria-components";
1489
- import { useClassNames as useClassNames22 } from "@marigold/system";
1537
+ import { useClassNames as useClassNames23 } from "@marigold/system";
1490
1538
 
1491
1539
  // src/DateField/DateSegment.tsx
1492
1540
  import { DateSegment } from "react-aria-components";
1493
- import { cn as cn24 } from "@marigold/system";
1494
- import { Fragment as Fragment4, jsx as jsx40, jsxs as jsxs13 } from "react/jsx-runtime";
1541
+ import { cn as cn25 } from "@marigold/system";
1542
+ import { Fragment as Fragment4, jsx as jsx41, jsxs as jsxs14 } from "react/jsx-runtime";
1495
1543
  var _DateSegment = ({ segment, ...props }) => {
1496
- return /* @__PURE__ */ jsx40(
1544
+ return /* @__PURE__ */ jsx41(
1497
1545
  DateSegment,
1498
1546
  {
1499
1547
  ...props,
@@ -1501,31 +1549,31 @@ var _DateSegment = ({ segment, ...props }) => {
1501
1549
  style: {
1502
1550
  minWidth: segment.maxValue != null ? `${String(segment.maxValue).length}ch` : void 0
1503
1551
  },
1504
- children: ({ text, placeholder, isPlaceholder }) => /* @__PURE__ */ jsxs13(Fragment4, { children: [
1505
- /* @__PURE__ */ jsx40(
1552
+ children: ({ text, placeholder, isPlaceholder }) => /* @__PURE__ */ jsxs14(Fragment4, { children: [
1553
+ /* @__PURE__ */ jsx41(
1506
1554
  "span",
1507
1555
  {
1508
1556
  "aria-hidden": "true",
1509
- className: cn24(
1557
+ className: cn25(
1510
1558
  isPlaceholder ? "visible block" : "invisible hidden",
1511
1559
  "pointer-events-none w-full text-center"
1512
1560
  ),
1513
1561
  children: isPlaceholder && (placeholder == null ? void 0 : placeholder.toUpperCase())
1514
1562
  }
1515
1563
  ),
1516
- /* @__PURE__ */ jsx40("span", { children: isPlaceholder ? "" : segment.type === "month" || segment.type === "day" ? segment.text.padStart(2, "0") : text })
1564
+ /* @__PURE__ */ jsx41("span", { children: isPlaceholder ? "" : segment.type === "month" || segment.type === "day" ? segment.text.padStart(2, "0") : text })
1517
1565
  ] })
1518
1566
  }
1519
1567
  );
1520
1568
  };
1521
1569
 
1522
1570
  // src/DateField/DateInput.tsx
1523
- import { jsx as jsx41, jsxs as jsxs14 } from "react/jsx-runtime";
1571
+ import { jsx as jsx42, jsxs as jsxs15 } from "react/jsx-runtime";
1524
1572
  var _DateInput = ({ variant, size, action, ...props }) => {
1525
- const classNames2 = useClassNames22({ component: "DateField", variant, size });
1526
- return /* @__PURE__ */ jsxs14(Group, { className: classNames2.field, children: [
1527
- /* @__PURE__ */ jsx41(DateInput, { className: "flex flex-1 items-center", ...props, children: (segment) => /* @__PURE__ */ jsx41(_DateSegment, { className: classNames2.segment, segment }) }),
1528
- action ? action : /* @__PURE__ */ jsx41("div", { className: "flex items-center justify-center", children: /* @__PURE__ */ jsx41(
1573
+ const classNames2 = useClassNames23({ component: "DateField", variant, size });
1574
+ return /* @__PURE__ */ jsxs15(Group, { className: classNames2.field, children: [
1575
+ /* @__PURE__ */ jsx42(DateInput, { className: "flex flex-1 items-center", ...props, children: (segment) => /* @__PURE__ */ jsx42(_DateSegment, { className: classNames2.segment, segment }) }),
1576
+ action ? action : /* @__PURE__ */ jsx42("div", { className: "flex items-center justify-center", children: /* @__PURE__ */ jsx42(
1529
1577
  "svg",
1530
1578
  {
1531
1579
  "data-testid": "action",
@@ -1533,14 +1581,14 @@ var _DateInput = ({ variant, size, action, ...props }) => {
1533
1581
  viewBox: "0 0 24 24",
1534
1582
  width: 24,
1535
1583
  height: 24,
1536
- children: /* @__PURE__ */ jsx41("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" })
1584
+ children: /* @__PURE__ */ jsx42("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" })
1537
1585
  }
1538
1586
  ) })
1539
1587
  ] });
1540
1588
  };
1541
1589
 
1542
1590
  // src/DateField/DateField.tsx
1543
- import { jsx as jsx42 } from "react/jsx-runtime";
1591
+ import { jsx as jsx43 } from "react/jsx-runtime";
1544
1592
  var _DateField = forwardRef13(
1545
1593
  ({
1546
1594
  variant,
@@ -1559,7 +1607,7 @@ var _DateField = forwardRef13(
1559
1607
  isRequired: required,
1560
1608
  ...rest
1561
1609
  };
1562
- return /* @__PURE__ */ jsx42(
1610
+ return /* @__PURE__ */ jsx43(
1563
1611
  FieldBase,
1564
1612
  {
1565
1613
  as: DateField,
@@ -1567,7 +1615,7 @@ var _DateField = forwardRef13(
1567
1615
  size,
1568
1616
  ref,
1569
1617
  ...props,
1570
- children: /* @__PURE__ */ jsx42(_DateInput, { action })
1618
+ children: /* @__PURE__ */ jsx43(_DateInput, { action })
1571
1619
  }
1572
1620
  );
1573
1621
  }
@@ -1576,7 +1624,7 @@ var _DateField = forwardRef13(
1576
1624
  // src/Calendar/Calendar.tsx
1577
1625
  import { useState } from "react";
1578
1626
  import { Calendar } from "react-aria-components";
1579
- import { cn as cn28, useClassNames as useClassNames27 } from "@marigold/system";
1627
+ import { cn as cn29, useClassNames as useClassNames28 } from "@marigold/system";
1580
1628
 
1581
1629
  // src/Calendar/CalendarGrid.tsx
1582
1630
  import {
@@ -1584,18 +1632,18 @@ import {
1584
1632
  CalendarGrid,
1585
1633
  CalendarGridBody
1586
1634
  } from "react-aria-components";
1587
- import { cn as cn25, useClassNames as useClassNames24 } from "@marigold/system";
1635
+ import { cn as cn26, useClassNames as useClassNames25 } from "@marigold/system";
1588
1636
 
1589
1637
  // src/Calendar/CalendarGridHeader.tsx
1590
1638
  import { startOfWeek, today } from "@internationalized/date";
1591
- import { useContext as useContext5, useMemo } from "react";
1639
+ import { useContext as useContext7, useMemo } from "react";
1592
1640
  import { CalendarStateContext } from "react-aria-components";
1593
1641
  import { useCalendarGrid } from "@react-aria/calendar";
1594
1642
  import { useDateFormatter, useLocale } from "@react-aria/i18n";
1595
- import { useClassNames as useClassNames23 } from "@marigold/system";
1596
- import { jsx as jsx43 } from "react/jsx-runtime";
1643
+ import { useClassNames as useClassNames24 } from "@marigold/system";
1644
+ import { jsx as jsx44 } from "react/jsx-runtime";
1597
1645
  function CalendarGridHeader(props) {
1598
- const state = useContext5(CalendarStateContext);
1646
+ const state = useContext7(CalendarStateContext);
1599
1647
  const { headerProps } = useCalendarGrid(props, state);
1600
1648
  const { locale } = useLocale();
1601
1649
  const dayFormatter = useDateFormatter({
@@ -1610,21 +1658,21 @@ function CalendarGridHeader(props) {
1610
1658
  return dayFormatter.format(dateDay);
1611
1659
  });
1612
1660
  }, [locale, state.timeZone, dayFormatter]);
1613
- const classNames2 = useClassNames23({ component: "Calendar" });
1614
- return /* @__PURE__ */ jsx43("thead", { ...headerProps, children: /* @__PURE__ */ jsx43("tr", { children: weekDays.map((day, index) => /* @__PURE__ */ jsx43("th", { className: classNames2.calendarHeader, children: day.substring(0, 2) }, index)) }) });
1661
+ const classNames2 = useClassNames24({ component: "Calendar" });
1662
+ return /* @__PURE__ */ jsx44("thead", { ...headerProps, children: /* @__PURE__ */ jsx44("tr", { children: weekDays.map((day, index) => /* @__PURE__ */ jsx44("th", { className: classNames2.calendarHeader, children: day.substring(0, 2) }, index)) }) });
1615
1663
  }
1616
1664
 
1617
1665
  // src/Calendar/CalendarGrid.tsx
1618
- import { jsx as jsx44, jsxs as jsxs15 } from "react/jsx-runtime";
1666
+ import { jsx as jsx45, jsxs as jsxs16 } from "react/jsx-runtime";
1619
1667
  var _CalendarGrid = () => {
1620
- const classNames2 = useClassNames24({ component: "Calendar" });
1621
- return /* @__PURE__ */ jsxs15(CalendarGrid, { className: classNames2.calendarGrid, children: [
1622
- /* @__PURE__ */ jsx44(CalendarGridHeader, {}),
1623
- /* @__PURE__ */ jsx44(CalendarGridBody, { children: (date) => /* @__PURE__ */ jsx44(
1668
+ const classNames2 = useClassNames25({ component: "Calendar" });
1669
+ return /* @__PURE__ */ jsxs16(CalendarGrid, { className: classNames2.calendarGrid, children: [
1670
+ /* @__PURE__ */ jsx45(CalendarGridHeader, {}),
1671
+ /* @__PURE__ */ jsx45(CalendarGridBody, { children: (date) => /* @__PURE__ */ jsx45(
1624
1672
  CalendarCell,
1625
1673
  {
1626
1674
  date,
1627
- className: cn25(
1675
+ className: cn26(
1628
1676
  "flex h-[30px] w-[30px] cursor-pointer items-center justify-center rounded-full p-[5.3px] text-sm font-normal aria-disabled:cursor-default",
1629
1677
  classNames2.calendarCell
1630
1678
  )
@@ -1634,10 +1682,10 @@ var _CalendarGrid = () => {
1634
1682
  };
1635
1683
 
1636
1684
  // src/Calendar/CalendarListBox.tsx
1637
- import { useContext as useContext6 } from "react";
1685
+ import { useContext as useContext8 } from "react";
1638
1686
  import { CalendarStateContext as CalendarStateContext2 } from "react-aria-components";
1639
1687
  import { ChevronDown as ChevronDown2 } from "@marigold/icons";
1640
- import { cn as cn26, useClassNames as useClassNames25 } from "@marigold/system";
1688
+ import { cn as cn27, useClassNames as useClassNames26 } from "@marigold/system";
1641
1689
 
1642
1690
  // src/Calendar/useFormattedMonths.tsx
1643
1691
  import { useDateFormatter as useDateFormatter2 } from "@react-aria/i18n";
@@ -1656,26 +1704,26 @@ function useFormattedMonths(timeZone, focusedDate) {
1656
1704
  }
1657
1705
 
1658
1706
  // src/Calendar/CalendarListBox.tsx
1659
- import { jsx as jsx45, jsxs as jsxs16 } from "react/jsx-runtime";
1707
+ import { jsx as jsx46, jsxs as jsxs17 } from "react/jsx-runtime";
1660
1708
  function CalendarListBox({
1661
1709
  type,
1662
1710
  isDisabled,
1663
1711
  setSelectedDropdown
1664
1712
  }) {
1665
- const state = useContext6(CalendarStateContext2);
1713
+ const state = useContext8(CalendarStateContext2);
1666
1714
  const months = useFormattedMonths(state.timeZone, state.focusedDate);
1667
1715
  const buttonStyles = "flex items-center justify-between gap-1 overflow-hidden";
1668
- const { select: selectClassNames } = useClassNames25({ component: "Select" });
1669
- return /* @__PURE__ */ jsxs16(
1716
+ const { select: selectClassNames } = useClassNames26({ component: "Select" });
1717
+ return /* @__PURE__ */ jsxs17(
1670
1718
  "button",
1671
1719
  {
1672
1720
  disabled: isDisabled,
1673
1721
  onClick: () => setSelectedDropdown(type),
1674
- className: cn26(buttonStyles, selectClassNames),
1722
+ className: cn27(buttonStyles, selectClassNames),
1675
1723
  "data-testid": type,
1676
1724
  children: [
1677
1725
  type === "month" ? months[state.focusedDate.month - 1].substring(0, 3) : state.focusedDate.year,
1678
- /* @__PURE__ */ jsx45(ChevronDown2, {})
1726
+ /* @__PURE__ */ jsx46(ChevronDown2, {})
1679
1727
  ]
1680
1728
  }
1681
1729
  );
@@ -1684,39 +1732,39 @@ function CalendarListBox({
1684
1732
  // src/Calendar/MonthControls.tsx
1685
1733
  import { Button as Button3 } from "react-aria-components";
1686
1734
  import { ChevronLeft, ChevronRight } from "@marigold/icons";
1687
- import { cn as cn27, useClassNames as useClassNames26 } from "@marigold/system";
1688
- import { jsx as jsx46, jsxs as jsxs17 } from "react/jsx-runtime";
1735
+ import { cn as cn28, useClassNames as useClassNames27 } from "@marigold/system";
1736
+ import { jsx as jsx47, jsxs as jsxs18 } from "react/jsx-runtime";
1689
1737
  function MonthControls() {
1690
- const classNames2 = useClassNames26({ component: "Calendar" });
1691
- const buttonClassNames = useClassNames26({ component: "Button" });
1692
- return /* @__PURE__ */ jsxs17(
1738
+ const classNames2 = useClassNames27({ component: "Calendar" });
1739
+ const buttonClassNames = useClassNames27({ component: "Button" });
1740
+ return /* @__PURE__ */ jsxs18(
1693
1741
  "div",
1694
1742
  {
1695
- className: cn27(
1743
+ className: cn28(
1696
1744
  "flex w-full flex-nowrap justify-end gap-[10px] [&_button:disabled]:cursor-not-allowed [&_button]:px-2 [&_button]:py-1",
1697
1745
  classNames2.calendarControllers
1698
1746
  ),
1699
1747
  children: [
1700
- /* @__PURE__ */ jsx46(
1748
+ /* @__PURE__ */ jsx47(
1701
1749
  Button3,
1702
1750
  {
1703
- className: cn27(
1751
+ className: cn28(
1704
1752
  "inline-flex items-center justify-center gap-[0.5ch]",
1705
1753
  buttonClassNames
1706
1754
  ),
1707
1755
  slot: "previous",
1708
- children: /* @__PURE__ */ jsx46(ChevronLeft, {})
1756
+ children: /* @__PURE__ */ jsx47(ChevronLeft, {})
1709
1757
  }
1710
1758
  ),
1711
- /* @__PURE__ */ jsx46(
1759
+ /* @__PURE__ */ jsx47(
1712
1760
  Button3,
1713
1761
  {
1714
- className: cn27(
1762
+ className: cn28(
1715
1763
  "inline-flex items-center justify-center gap-[0.5ch]",
1716
1764
  buttonClassNames
1717
1765
  ),
1718
1766
  slot: "next",
1719
- children: /* @__PURE__ */ jsx46(ChevronRight, {})
1767
+ children: /* @__PURE__ */ jsx47(ChevronRight, {})
1720
1768
  }
1721
1769
  )
1722
1770
  ]
@@ -1726,24 +1774,24 @@ function MonthControls() {
1726
1774
  var MonthControls_default = MonthControls;
1727
1775
 
1728
1776
  // src/Calendar/MonthListBox.tsx
1729
- import { useContext as useContext7 } from "react";
1777
+ import { useContext as useContext9 } from "react";
1730
1778
  import { CalendarStateContext as CalendarStateContext3 } from "react-aria-components";
1731
- import { jsx as jsx47 } from "react/jsx-runtime";
1779
+ import { jsx as jsx48 } from "react/jsx-runtime";
1732
1780
  var MonthListBox = ({ setSelectedDropdown }) => {
1733
- const state = useContext7(CalendarStateContext3);
1781
+ const state = useContext9(CalendarStateContext3);
1734
1782
  const months = useFormattedMonths(state.timeZone, state.focusedDate);
1735
1783
  let onChange = (index) => {
1736
1784
  let value = Number(index) + 1;
1737
1785
  let date = state.focusedDate.set({ month: value });
1738
1786
  state.setFocusedDate(date);
1739
1787
  };
1740
- return /* @__PURE__ */ jsx47(
1788
+ return /* @__PURE__ */ jsx48(
1741
1789
  "ul",
1742
1790
  {
1743
1791
  "data-testid": "monthOptions",
1744
1792
  className: "grid h-full max-h-[300px] min-w-[300px] grid-cols-3 gap-y-10 overflow-y-scroll p-2",
1745
1793
  children: months.map((month, index) => {
1746
- return /* @__PURE__ */ jsx47("li", { className: "flex justify-center", children: /* @__PURE__ */ jsx47(
1794
+ return /* @__PURE__ */ jsx48("li", { className: "flex justify-center", children: /* @__PURE__ */ jsx48(
1747
1795
  _Button,
1748
1796
  {
1749
1797
  slot: "previous",
@@ -1765,15 +1813,15 @@ var MonthListBox_default = MonthListBox;
1765
1813
 
1766
1814
  // src/Calendar/YearListBox.tsx
1767
1815
  import {
1768
- useContext as useContext8,
1816
+ useContext as useContext10,
1769
1817
  useEffect as useEffect2,
1770
1818
  useRef as useRef3
1771
1819
  } from "react";
1772
1820
  import { CalendarStateContext as CalendarStateContext4 } from "react-aria-components";
1773
1821
  import { useDateFormatter as useDateFormatter3 } from "@react-aria/i18n";
1774
- import { jsx as jsx48 } from "react/jsx-runtime";
1822
+ import { jsx as jsx49 } from "react/jsx-runtime";
1775
1823
  var YearListBox = ({ setSelectedDropdown }) => {
1776
- const state = useContext8(CalendarStateContext4);
1824
+ const state = useContext10(CalendarStateContext4);
1777
1825
  const years = [];
1778
1826
  let formatter = useDateFormatter3({
1779
1827
  year: "numeric",
@@ -1801,19 +1849,19 @@ var YearListBox = ({ setSelectedDropdown }) => {
1801
1849
  let date = years[index].value;
1802
1850
  state.setFocusedDate(date);
1803
1851
  };
1804
- return /* @__PURE__ */ jsx48(
1852
+ return /* @__PURE__ */ jsx49(
1805
1853
  "ul",
1806
1854
  {
1807
1855
  "data-testid": "yearOptions",
1808
1856
  className: "grid h-full max-h-[300px] min-w-[300px] grid-cols-3 gap-y-10 overflow-y-scroll p-2",
1809
1857
  children: years.map((year, index) => {
1810
1858
  const isActive = +year.formatted === state.focusedDate.year;
1811
- return /* @__PURE__ */ jsx48("li", { className: "flex justify-center", children: /* @__PURE__ */ jsx48(
1859
+ return /* @__PURE__ */ jsx49("li", { className: "flex justify-center", children: /* @__PURE__ */ jsx49(
1812
1860
  "div",
1813
1861
  {
1814
1862
  ref: isActive ? activeButtonRef : null,
1815
1863
  style: { height: "100%", width: "100%" },
1816
- children: /* @__PURE__ */ jsx48(
1864
+ children: /* @__PURE__ */ jsx49(
1817
1865
  _Button,
1818
1866
  {
1819
1867
  slot: "previous",
@@ -1838,7 +1886,7 @@ var YearListBox = ({ setSelectedDropdown }) => {
1838
1886
  var YearListBox_default = YearListBox;
1839
1887
 
1840
1888
  // src/Calendar/Calendar.tsx
1841
- import { Fragment as Fragment5, jsx as jsx49, jsxs as jsxs18 } from "react/jsx-runtime";
1889
+ import { Fragment as Fragment5, jsx as jsx50, jsxs as jsxs19 } from "react/jsx-runtime";
1842
1890
  var _Calendar = ({
1843
1891
  disabled,
1844
1892
  readOnly,
@@ -1851,24 +1899,24 @@ var _Calendar = ({
1851
1899
  isReadOnly: readOnly,
1852
1900
  ...rest
1853
1901
  };
1854
- const classNames2 = useClassNames27({ component: "Calendar" });
1902
+ const classNames2 = useClassNames28({ component: "Calendar" });
1855
1903
  const [selectedDropdown, setSelectedDropdown] = useState();
1856
1904
  const ViewMap = {
1857
- month: /* @__PURE__ */ jsx49(MonthListBox_default, { setSelectedDropdown }),
1858
- year: /* @__PURE__ */ jsx49(YearListBox_default, { setSelectedDropdown })
1905
+ month: /* @__PURE__ */ jsx50(MonthListBox_default, { setSelectedDropdown }),
1906
+ year: /* @__PURE__ */ jsx50(YearListBox_default, { setSelectedDropdown })
1859
1907
  };
1860
- return /* @__PURE__ */ jsx49(
1908
+ return /* @__PURE__ */ jsx50(
1861
1909
  Calendar,
1862
1910
  {
1863
- className: cn28(
1911
+ className: cn29(
1864
1912
  "flex min-h-[350px] w-[360px] flex-col rounded-sm p-4",
1865
1913
  classNames2.calendar
1866
1914
  ),
1867
1915
  ...props,
1868
- children: selectedDropdown ? ViewMap[selectedDropdown] : /* @__PURE__ */ jsxs18(Fragment5, { children: [
1869
- /* @__PURE__ */ jsxs18("div", { className: "mb-4 flex items-center justify-between", children: [
1870
- /* @__PURE__ */ jsxs18("div", { className: "flex w-full gap-4", children: [
1871
- /* @__PURE__ */ jsx49(
1916
+ children: selectedDropdown ? ViewMap[selectedDropdown] : /* @__PURE__ */ jsxs19(Fragment5, { children: [
1917
+ /* @__PURE__ */ jsxs19("div", { className: "mb-4 flex items-center justify-between", children: [
1918
+ /* @__PURE__ */ jsxs19("div", { className: "flex w-full gap-4", children: [
1919
+ /* @__PURE__ */ jsx50(
1872
1920
  CalendarListBox,
1873
1921
  {
1874
1922
  type: "month",
@@ -1876,7 +1924,7 @@ var _Calendar = ({
1876
1924
  setSelectedDropdown
1877
1925
  }
1878
1926
  ),
1879
- /* @__PURE__ */ jsx49(
1927
+ /* @__PURE__ */ jsx50(
1880
1928
  CalendarListBox,
1881
1929
  {
1882
1930
  type: "year",
@@ -1885,9 +1933,9 @@ var _Calendar = ({
1885
1933
  }
1886
1934
  )
1887
1935
  ] }),
1888
- /* @__PURE__ */ jsx49(MonthControls_default, {})
1936
+ /* @__PURE__ */ jsx50(MonthControls_default, {})
1889
1937
  ] }),
1890
- /* @__PURE__ */ jsx49(_CalendarGrid, {})
1938
+ /* @__PURE__ */ jsx50(_CalendarGrid, {})
1891
1939
  ] })
1892
1940
  }
1893
1941
  );
@@ -1895,8 +1943,8 @@ var _Calendar = ({
1895
1943
 
1896
1944
  // src/DatePicker/DatePicker.tsx
1897
1945
  import { DatePicker } from "react-aria-components";
1898
- import { useClassNames as useClassNames28 } from "@marigold/system";
1899
- import { jsx as jsx50, jsxs as jsxs19 } from "react/jsx-runtime";
1946
+ import { useClassNames as useClassNames29 } from "@marigold/system";
1947
+ import { jsx as jsx51, jsxs as jsxs20 } from "react/jsx-runtime";
1900
1948
  var _DatePicker = ({
1901
1949
  disabled,
1902
1950
  required,
@@ -1915,22 +1963,22 @@ var _DatePicker = ({
1915
1963
  isOpen: open,
1916
1964
  ...rest
1917
1965
  };
1918
- const classNames2 = useClassNames28({
1966
+ const classNames2 = useClassNames29({
1919
1967
  component: "DatePicker",
1920
1968
  size,
1921
1969
  variant
1922
1970
  });
1923
- return /* @__PURE__ */ jsxs19(FieldBase, { as: DatePicker, variant, size, ...props, children: [
1924
- /* @__PURE__ */ jsx50(
1971
+ return /* @__PURE__ */ jsxs20(FieldBase, { as: DatePicker, variant, size, ...props, children: [
1972
+ /* @__PURE__ */ jsx51(
1925
1973
  _DateInput,
1926
1974
  {
1927
- action: /* @__PURE__ */ jsx50("div", { className: classNames2.container, children: /* @__PURE__ */ jsx50(
1975
+ action: /* @__PURE__ */ jsx51("div", { className: classNames2.container, children: /* @__PURE__ */ jsx51(
1928
1976
  _Button,
1929
1977
  {
1930
1978
  size: "small",
1931
1979
  disabled,
1932
1980
  className: classNames2.button,
1933
- children: /* @__PURE__ */ jsx50(
1981
+ children: /* @__PURE__ */ jsx51(
1934
1982
  "svg",
1935
1983
  {
1936
1984
  "data-testid": "action",
@@ -1938,29 +1986,29 @@ var _DatePicker = ({
1938
1986
  width: 24,
1939
1987
  height: 24,
1940
1988
  fill: "currentColor",
1941
- children: /* @__PURE__ */ jsx50("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" })
1989
+ children: /* @__PURE__ */ jsx51("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" })
1942
1990
  }
1943
1991
  )
1944
1992
  }
1945
1993
  ) })
1946
1994
  }
1947
1995
  ),
1948
- /* @__PURE__ */ jsx50(_Popover, { children: /* @__PURE__ */ jsx50(_Calendar, { disabled }) })
1996
+ /* @__PURE__ */ jsx51(_Popover, { children: /* @__PURE__ */ jsx51(_Calendar, { disabled }) })
1949
1997
  ] });
1950
1998
  };
1951
1999
 
1952
2000
  // src/Inset/Inset.tsx
1953
2001
  import {
1954
- cn as cn29,
2002
+ cn as cn30,
1955
2003
  paddingSpace as paddingSpace2,
1956
2004
  paddingSpaceX as paddingSpaceX2,
1957
2005
  paddingSpaceY as paddingSpaceY2
1958
2006
  } from "@marigold/system";
1959
- import { jsx as jsx51 } from "react/jsx-runtime";
1960
- var Inset = ({ space, spaceX, spaceY, children }) => /* @__PURE__ */ jsx51(
2007
+ import { jsx as jsx52 } from "react/jsx-runtime";
2008
+ var Inset = ({ space, spaceX, spaceY, children }) => /* @__PURE__ */ jsx52(
1961
2009
  "div",
1962
2010
  {
1963
- className: cn29(
2011
+ className: cn30(
1964
2012
  space && paddingSpace2[space],
1965
2013
  !space && spaceX && paddingSpaceX2[spaceX],
1966
2014
  !space && spaceY && paddingSpaceY2[spaceY]
@@ -1972,36 +2020,36 @@ var Inset = ({ space, spaceX, spaceY, children }) => /* @__PURE__ */ jsx51(
1972
2020
  // src/Link/Link.tsx
1973
2021
  import { forwardRef as forwardRef14 } from "react";
1974
2022
  import { Link } from "react-aria-components";
1975
- import { useClassNames as useClassNames29 } from "@marigold/system";
1976
- import { jsx as jsx52 } from "react/jsx-runtime";
2023
+ import { useClassNames as useClassNames30 } from "@marigold/system";
2024
+ import { jsx as jsx53 } from "react/jsx-runtime";
1977
2025
  var _Link = forwardRef14(
1978
2026
  ({ variant, size, disabled, children, ...props }, ref) => {
1979
- const classNames2 = useClassNames29({
2027
+ const classNames2 = useClassNames30({
1980
2028
  component: "Link",
1981
2029
  variant,
1982
2030
  size
1983
2031
  });
1984
- return /* @__PURE__ */ jsx52(Link, { ...props, ref, className: classNames2, isDisabled: disabled, children });
2032
+ return /* @__PURE__ */ jsx53(Link, { ...props, ref, className: classNames2, isDisabled: disabled, children });
1985
2033
  }
1986
2034
  );
1987
2035
 
1988
2036
  // src/List/List.tsx
1989
- import { useClassNames as useClassNames30 } from "@marigold/system";
2037
+ import { useClassNames as useClassNames31 } from "@marigold/system";
1990
2038
 
1991
2039
  // src/List/Context.ts
1992
- import { createContext as createContext4, useContext as useContext9 } from "react";
1993
- var ListContext = createContext4({});
1994
- var useListContext = () => useContext9(ListContext);
2040
+ import { createContext as createContext5, useContext as useContext11 } from "react";
2041
+ var ListContext = createContext5({});
2042
+ var useListContext = () => useContext11(ListContext);
1995
2043
 
1996
2044
  // src/List/ListItem.tsx
1997
- import { jsx as jsx53 } from "react/jsx-runtime";
2045
+ import { jsx as jsx54 } from "react/jsx-runtime";
1998
2046
  var ListItem = ({ children, ...props }) => {
1999
2047
  const { classNames: classNames2 } = useListContext();
2000
- return /* @__PURE__ */ jsx53("li", { ...props, className: classNames2, children });
2048
+ return /* @__PURE__ */ jsx54("li", { ...props, className: classNames2, children });
2001
2049
  };
2002
2050
 
2003
2051
  // src/List/List.tsx
2004
- import { jsx as jsx54 } from "react/jsx-runtime";
2052
+ import { jsx as jsx55 } from "react/jsx-runtime";
2005
2053
  var List = ({
2006
2054
  as = "ul",
2007
2055
  children,
@@ -2010,38 +2058,38 @@ var List = ({
2010
2058
  ...props
2011
2059
  }) => {
2012
2060
  const Component = as;
2013
- const classNames2 = useClassNames30({ component: "List", variant, size });
2014
- return /* @__PURE__ */ jsx54(Component, { ...props, className: classNames2[as], children: /* @__PURE__ */ jsx54(ListContext.Provider, { value: { classNames: classNames2.item }, children }) });
2061
+ const classNames2 = useClassNames31({ component: "List", variant, size });
2062
+ return /* @__PURE__ */ jsx55(Component, { ...props, className: classNames2[as], children: /* @__PURE__ */ jsx55(ListContext.Provider, { value: { classNames: classNames2.item }, children }) });
2015
2063
  };
2016
2064
  List.Item = ListItem;
2017
2065
 
2018
2066
  // src/Menu/Menu.tsx
2019
2067
  import { Menu, MenuTrigger } from "react-aria-components";
2020
- import { useClassNames as useClassNames33 } from "@marigold/system";
2068
+ import { useClassNames as useClassNames34 } from "@marigold/system";
2021
2069
 
2022
2070
  // src/Menu/MenuItem.tsx
2023
2071
  import { MenuItem } from "react-aria-components";
2024
- import { useClassNames as useClassNames31 } from "@marigold/system";
2025
- import { jsx as jsx55 } from "react/jsx-runtime";
2072
+ import { useClassNames as useClassNames32 } from "@marigold/system";
2073
+ import { jsx as jsx56 } from "react/jsx-runtime";
2026
2074
  var _MenuItem = ({ children, ...props }) => {
2027
- const classNames2 = useClassNames31({ component: "Menu" });
2028
- return /* @__PURE__ */ jsx55(MenuItem, { ...props, className: classNames2.item, children });
2075
+ const classNames2 = useClassNames32({ component: "Menu" });
2076
+ return /* @__PURE__ */ jsx56(MenuItem, { ...props, className: classNames2.item, children });
2029
2077
  };
2030
2078
 
2031
2079
  // src/Menu/MenuSection.tsx
2032
2080
  import { Section as Section2 } from "react-aria-components";
2033
- import { useClassNames as useClassNames32 } from "@marigold/system";
2034
- import { jsx as jsx56, jsxs as jsxs20 } from "react/jsx-runtime";
2081
+ import { useClassNames as useClassNames33 } from "@marigold/system";
2082
+ import { jsx as jsx57, jsxs as jsxs21 } from "react/jsx-runtime";
2035
2083
  var _MenuSection = ({ children, title, ...props }) => {
2036
- const className = useClassNames32({ component: "Menu" });
2037
- return /* @__PURE__ */ jsxs20(Section2, { ...props, children: [
2038
- /* @__PURE__ */ jsx56(_Header, { className: className.section, children: title }),
2084
+ const className = useClassNames33({ component: "Menu" });
2085
+ return /* @__PURE__ */ jsxs21(Section2, { ...props, children: [
2086
+ /* @__PURE__ */ jsx57(_Header, { className: className.section, children: title }),
2039
2087
  children
2040
2088
  ] });
2041
2089
  };
2042
2090
 
2043
2091
  // src/Menu/Menu.tsx
2044
- import { jsx as jsx57, jsxs as jsxs21 } from "react/jsx-runtime";
2092
+ import { jsx as jsx58, jsxs as jsxs22 } from "react/jsx-runtime";
2045
2093
  var _Menu = ({
2046
2094
  children,
2047
2095
  label,
@@ -2051,10 +2099,10 @@ var _Menu = ({
2051
2099
  open,
2052
2100
  ...props
2053
2101
  }) => {
2054
- const classNames2 = useClassNames33({ component: "Menu", variant, size });
2055
- return /* @__PURE__ */ jsxs21(MenuTrigger, { ...props, children: [
2056
- /* @__PURE__ */ jsx57(_Button, { variant: "menu", disabled, children: label }),
2057
- /* @__PURE__ */ jsx57(_Popover, { open, children: /* @__PURE__ */ jsx57(Menu, { ...props, className: classNames2.container, children }) })
2102
+ const classNames2 = useClassNames34({ component: "Menu", variant, size });
2103
+ return /* @__PURE__ */ jsxs22(MenuTrigger, { ...props, children: [
2104
+ /* @__PURE__ */ jsx58(_Button, { variant: "menu", disabled, children: label }),
2105
+ /* @__PURE__ */ jsx58(_Popover, { open, children: /* @__PURE__ */ jsx58(Menu, { ...props, className: classNames2.container, children }) })
2058
2106
  ] });
2059
2107
  };
2060
2108
  _Menu.Item = _MenuItem;
@@ -2062,33 +2110,33 @@ _Menu.Section = _MenuSection;
2062
2110
 
2063
2111
  // src/Menu/ActionMenu.tsx
2064
2112
  import { Menu as Menu2, MenuTrigger as MenuTrigger2 } from "react-aria-components";
2065
- import { SVG as SVG4, useClassNames as useClassNames34 } from "@marigold/system";
2066
- import { jsx as jsx58, jsxs as jsxs22 } from "react/jsx-runtime";
2113
+ import { SVG as SVG4, useClassNames as useClassNames35 } from "@marigold/system";
2114
+ import { jsx as jsx59, jsxs as jsxs23 } from "react/jsx-runtime";
2067
2115
  var ActionMenu = ({
2068
2116
  variant,
2069
2117
  size,
2070
2118
  disabled,
2071
2119
  ...props
2072
2120
  }) => {
2073
- const classNames2 = useClassNames34({ component: "Menu", variant, size });
2074
- return /* @__PURE__ */ jsxs22(MenuTrigger2, { children: [
2075
- /* @__PURE__ */ jsx58(_Button, { variant: "menu", size: "small", disabled, children: /* @__PURE__ */ jsx58(SVG4, { viewBox: "0 0 24 24", children: /* @__PURE__ */ jsx58("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" }) }) }),
2076
- /* @__PURE__ */ jsx58(_Popover, { children: /* @__PURE__ */ jsx58(Menu2, { ...props, className: classNames2.container, children: props.children }) })
2121
+ const classNames2 = useClassNames35({ component: "Menu", variant, size });
2122
+ return /* @__PURE__ */ jsxs23(MenuTrigger2, { children: [
2123
+ /* @__PURE__ */ jsx59(_Button, { variant: "menu", size: "small", disabled, children: /* @__PURE__ */ jsx59(SVG4, { viewBox: "0 0 24 24", children: /* @__PURE__ */ jsx59("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" }) }) }),
2124
+ /* @__PURE__ */ jsx59(_Popover, { children: /* @__PURE__ */ jsx59(Menu2, { ...props, className: classNames2.container, children: props.children }) })
2077
2125
  ] });
2078
2126
  };
2079
2127
 
2080
2128
  // src/Message/Message.tsx
2081
2129
  import { forwardRef as forwardRef15 } from "react";
2082
- import { cn as cn30, useClassNames as useClassNames35 } from "@marigold/system";
2083
- import { jsx as jsx59, jsxs as jsxs23 } from "react/jsx-runtime";
2130
+ import { cn as cn31, useClassNames as useClassNames36 } from "@marigold/system";
2131
+ import { jsx as jsx60, jsxs as jsxs24 } from "react/jsx-runtime";
2084
2132
  var icons = {
2085
- success: () => /* @__PURE__ */ jsx59(
2133
+ success: () => /* @__PURE__ */ jsx60(
2086
2134
  "svg",
2087
2135
  {
2088
2136
  xmlns: "http://www.w3.org/2000/svg",
2089
2137
  viewBox: "0 0 24 24",
2090
2138
  fill: "currentColor",
2091
- children: /* @__PURE__ */ jsx59(
2139
+ children: /* @__PURE__ */ jsx60(
2092
2140
  "path",
2093
2141
  {
2094
2142
  fillRule: "evenodd",
@@ -2098,13 +2146,13 @@ var icons = {
2098
2146
  )
2099
2147
  }
2100
2148
  ),
2101
- info: () => /* @__PURE__ */ jsx59(
2149
+ info: () => /* @__PURE__ */ jsx60(
2102
2150
  "svg",
2103
2151
  {
2104
2152
  xmlns: "http://www.w3.org/2000/svg",
2105
2153
  viewBox: "0 0 24 24",
2106
2154
  fill: "currentColor",
2107
- children: /* @__PURE__ */ jsx59(
2155
+ children: /* @__PURE__ */ jsx60(
2108
2156
  "path",
2109
2157
  {
2110
2158
  fillRule: "evenodd",
@@ -2114,13 +2162,13 @@ var icons = {
2114
2162
  )
2115
2163
  }
2116
2164
  ),
2117
- warning: () => /* @__PURE__ */ jsx59(
2165
+ warning: () => /* @__PURE__ */ jsx60(
2118
2166
  "svg",
2119
2167
  {
2120
2168
  xmlns: "http://www.w3.org/2000/svg",
2121
2169
  viewBox: "0 0 24 24",
2122
2170
  fill: "currentColor",
2123
- children: /* @__PURE__ */ jsx59(
2171
+ children: /* @__PURE__ */ jsx60(
2124
2172
  "path",
2125
2173
  {
2126
2174
  fillRule: "evenodd",
@@ -2130,13 +2178,13 @@ var icons = {
2130
2178
  )
2131
2179
  }
2132
2180
  ),
2133
- error: () => /* @__PURE__ */ jsx59(
2181
+ error: () => /* @__PURE__ */ jsx60(
2134
2182
  "svg",
2135
2183
  {
2136
2184
  xmlns: "http://www.w3.org/2000/svg",
2137
2185
  viewBox: "0 0 24 24",
2138
2186
  fill: "currentColor",
2139
- children: /* @__PURE__ */ jsx59(
2187
+ children: /* @__PURE__ */ jsx60(
2140
2188
  "path",
2141
2189
  {
2142
2190
  fillRule: "evenodd",
@@ -2149,30 +2197,30 @@ var icons = {
2149
2197
  };
2150
2198
  var Message = forwardRef15(
2151
2199
  ({ messageTitle, variant = "info", size, children, ...props }, ref) => {
2152
- const classNames2 = useClassNames35({ component: "Message", variant, size });
2200
+ const classNames2 = useClassNames36({ component: "Message", variant, size });
2153
2201
  const Icon4 = icons[variant];
2154
- return /* @__PURE__ */ jsxs23(
2202
+ return /* @__PURE__ */ jsxs24(
2155
2203
  "div",
2156
2204
  {
2157
- className: cn30(
2205
+ className: cn31(
2158
2206
  "grid auto-rows-min grid-cols-[min-content_auto] gap-1",
2159
2207
  classNames2.container
2160
2208
  ),
2161
2209
  ref,
2162
2210
  ...props,
2163
2211
  children: [
2164
- /* @__PURE__ */ jsx59("div", { className: cn30("col-span-1 h-5 w-5 self-center", classNames2.icon), children: /* @__PURE__ */ jsx59(Icon4, {}) }),
2165
- /* @__PURE__ */ jsx59(
2212
+ /* @__PURE__ */ jsx60("div", { className: cn31("col-span-1 h-5 w-5 self-center", classNames2.icon), children: /* @__PURE__ */ jsx60(Icon4, {}) }),
2213
+ /* @__PURE__ */ jsx60(
2166
2214
  "div",
2167
2215
  {
2168
- className: cn30(
2216
+ className: cn31(
2169
2217
  "col-start-2 row-start-1 self-center",
2170
2218
  classNames2.title
2171
2219
  ),
2172
2220
  children: messageTitle
2173
2221
  }
2174
2222
  ),
2175
- /* @__PURE__ */ jsx59("div", { className: cn30("col-start-2", classNames2.content), children })
2223
+ /* @__PURE__ */ jsx60("div", { className: cn31("col-start-2", classNames2.content), children })
2176
2224
  ]
2177
2225
  }
2178
2226
  );
@@ -2182,13 +2230,13 @@ var Message = forwardRef15(
2182
2230
  // src/NumberField/NumberField.tsx
2183
2231
  import { forwardRef as forwardRef16 } from "react";
2184
2232
  import { Group as Group2, NumberField } from "react-aria-components";
2185
- import { cn as cn32, useClassNames as useClassNames36 } from "@marigold/system";
2233
+ import { cn as cn33, useClassNames as useClassNames37 } from "@marigold/system";
2186
2234
 
2187
2235
  // src/NumberField/StepButton.tsx
2188
2236
  import { Button as Button4 } from "react-aria-components";
2189
- import { cn as cn31 } from "@marigold/system";
2190
- import { jsx as jsx60 } from "react/jsx-runtime";
2191
- var Plus = () => /* @__PURE__ */ jsx60("svg", { width: 16, height: 16, viewBox: "0 0 20 20", fill: "currentColor", children: /* @__PURE__ */ jsx60(
2237
+ import { cn as cn32 } from "@marigold/system";
2238
+ import { jsx as jsx61 } from "react/jsx-runtime";
2239
+ var Plus = () => /* @__PURE__ */ jsx61("svg", { width: 16, height: 16, viewBox: "0 0 20 20", fill: "currentColor", children: /* @__PURE__ */ jsx61(
2192
2240
  "path",
2193
2241
  {
2194
2242
  fillRule: "evenodd",
@@ -2196,7 +2244,7 @@ var Plus = () => /* @__PURE__ */ jsx60("svg", { width: 16, height: 16, viewBox:
2196
2244
  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"
2197
2245
  }
2198
2246
  ) });
2199
- var Minus = () => /* @__PURE__ */ jsx60("svg", { width: 16, height: 16, viewBox: "0 0 20 20", fill: "currentColor", children: /* @__PURE__ */ jsx60(
2247
+ var Minus = () => /* @__PURE__ */ jsx61("svg", { width: 16, height: 16, viewBox: "0 0 20 20", fill: "currentColor", children: /* @__PURE__ */ jsx61(
2200
2248
  "path",
2201
2249
  {
2202
2250
  fillRule: "evenodd",
@@ -2206,10 +2254,10 @@ var Minus = () => /* @__PURE__ */ jsx60("svg", { width: 16, height: 16, viewBox:
2206
2254
  ) });
2207
2255
  var _StepButton = ({ direction, className, ...props }) => {
2208
2256
  const Icon4 = direction === "up" ? Plus : Minus;
2209
- return /* @__PURE__ */ jsx60(
2257
+ return /* @__PURE__ */ jsx61(
2210
2258
  Button4,
2211
2259
  {
2212
- className: cn31(
2260
+ className: cn32(
2213
2261
  [
2214
2262
  "flex items-center justify-center",
2215
2263
  "cursor-pointer data-[disabled]:cursor-not-allowed"
@@ -2217,13 +2265,13 @@ var _StepButton = ({ direction, className, ...props }) => {
2217
2265
  className
2218
2266
  ),
2219
2267
  ...props,
2220
- children: /* @__PURE__ */ jsx60(Icon4, {})
2268
+ children: /* @__PURE__ */ jsx61(Icon4, {})
2221
2269
  }
2222
2270
  );
2223
2271
  };
2224
2272
 
2225
2273
  // src/NumberField/NumberField.tsx
2226
- import { jsx as jsx61, jsxs as jsxs24 } from "react/jsx-runtime";
2274
+ import { jsx as jsx62, jsxs as jsxs25 } from "react/jsx-runtime";
2227
2275
  var _NumberField = forwardRef16(
2228
2276
  ({
2229
2277
  variant,
@@ -2235,7 +2283,7 @@ var _NumberField = forwardRef16(
2235
2283
  hideStepper,
2236
2284
  ...rest
2237
2285
  }, ref) => {
2238
- const classNames2 = useClassNames36({
2286
+ const classNames2 = useClassNames37({
2239
2287
  component: "NumberField",
2240
2288
  size,
2241
2289
  variant
@@ -2248,8 +2296,8 @@ var _NumberField = forwardRef16(
2248
2296
  ...rest
2249
2297
  };
2250
2298
  const showStepper = !hideStepper;
2251
- return /* @__PURE__ */ jsx61(FieldBase, { as: NumberField, ...props, children: /* @__PURE__ */ jsxs24(Group2, { className: cn32("flex items-stretch", classNames2.group), children: [
2252
- showStepper && /* @__PURE__ */ jsx61(
2299
+ return /* @__PURE__ */ jsx62(FieldBase, { as: NumberField, ...props, children: /* @__PURE__ */ jsxs25(Group2, { className: cn33("flex items-stretch", classNames2.group), children: [
2300
+ showStepper && /* @__PURE__ */ jsx62(
2253
2301
  _StepButton,
2254
2302
  {
2255
2303
  className: classNames2.stepper,
@@ -2257,7 +2305,7 @@ var _NumberField = forwardRef16(
2257
2305
  slot: "decrement"
2258
2306
  }
2259
2307
  ),
2260
- /* @__PURE__ */ jsx61("div", { className: "flex-1", children: /* @__PURE__ */ jsx61(
2308
+ /* @__PURE__ */ jsx62("div", { className: "flex-1", children: /* @__PURE__ */ jsx62(
2261
2309
  _Input,
2262
2310
  {
2263
2311
  ref,
@@ -2266,7 +2314,7 @@ var _NumberField = forwardRef16(
2266
2314
  className: classNames2.input
2267
2315
  }
2268
2316
  ) }),
2269
- showStepper && /* @__PURE__ */ jsx61(
2317
+ showStepper && /* @__PURE__ */ jsx62(
2270
2318
  _StepButton,
2271
2319
  {
2272
2320
  className: classNames2.stepper,
@@ -2283,19 +2331,19 @@ import {
2283
2331
  forwardRef as forwardRef17
2284
2332
  } from "react";
2285
2333
  import { Radio } from "react-aria-components";
2286
- import { cn as cn34, useClassNames as useClassNames38 } from "@marigold/system";
2334
+ import { cn as cn35, useClassNames as useClassNames39 } from "@marigold/system";
2287
2335
 
2288
2336
  // src/Radio/Context.ts
2289
- import { createContext as createContext5, useContext as useContext10 } from "react";
2290
- var RadioGroupContext = createContext5(
2337
+ import { createContext as createContext6, useContext as useContext12 } from "react";
2338
+ var RadioGroupContext = createContext6(
2291
2339
  null
2292
2340
  );
2293
- var useRadioGroupContext = () => useContext10(RadioGroupContext);
2341
+ var useRadioGroupContext = () => useContext12(RadioGroupContext);
2294
2342
 
2295
2343
  // src/Radio/RadioGroup.tsx
2296
2344
  import { RadioGroup } from "react-aria-components";
2297
- import { cn as cn33, useClassNames as useClassNames37 } from "@marigold/system";
2298
- import { jsx as jsx62 } from "react/jsx-runtime";
2345
+ import { cn as cn34, useClassNames as useClassNames38 } from "@marigold/system";
2346
+ import { jsx as jsx63 } from "react/jsx-runtime";
2299
2347
  var _RadioGroup = ({
2300
2348
  variant,
2301
2349
  size,
@@ -2311,7 +2359,7 @@ var _RadioGroup = ({
2311
2359
  width,
2312
2360
  ...rest
2313
2361
  }) => {
2314
- const classNames2 = useClassNames37({ component: "Radio", variant, size });
2362
+ const classNames2 = useClassNames38({ component: "Radio", variant, size });
2315
2363
  const props = {
2316
2364
  isDisabled: disabled,
2317
2365
  isReadOnly: readOnly,
@@ -2319,7 +2367,7 @@ var _RadioGroup = ({
2319
2367
  isInvalid: error,
2320
2368
  ...rest
2321
2369
  };
2322
- return /* @__PURE__ */ jsx62(
2370
+ return /* @__PURE__ */ jsx63(
2323
2371
  FieldBase,
2324
2372
  {
2325
2373
  as: RadioGroup,
@@ -2330,18 +2378,18 @@ var _RadioGroup = ({
2330
2378
  variant,
2331
2379
  size,
2332
2380
  ...props,
2333
- children: /* @__PURE__ */ jsx62(
2381
+ children: /* @__PURE__ */ jsx63(
2334
2382
  "div",
2335
2383
  {
2336
2384
  role: "presentation",
2337
2385
  "data-testid": "group",
2338
2386
  "data-orientation": orientation,
2339
- className: cn33(
2387
+ className: cn34(
2340
2388
  classNames2.group,
2341
2389
  "flex items-start",
2342
2390
  orientation === "vertical" ? "flex-col gap-[0.5ch]" : "flex-row gap-[1.5ch]"
2343
2391
  ),
2344
- children: /* @__PURE__ */ jsx62(RadioGroupContext.Provider, { value: { width, variant, size }, children })
2392
+ children: /* @__PURE__ */ jsx63(RadioGroupContext.Provider, { value: { width, variant, size }, children })
2345
2393
  }
2346
2394
  )
2347
2395
  }
@@ -2349,33 +2397,33 @@ var _RadioGroup = ({
2349
2397
  };
2350
2398
 
2351
2399
  // src/Radio/Radio.tsx
2352
- import { Fragment as Fragment6, jsx as jsx63, jsxs as jsxs25 } from "react/jsx-runtime";
2353
- var Dot = () => /* @__PURE__ */ jsx63("svg", { viewBox: "0 0 6 6", children: /* @__PURE__ */ jsx63("circle", { fill: "currentColor", cx: "3", cy: "3", r: "3" }) });
2354
- var Icon3 = ({ checked, className, ...props }) => /* @__PURE__ */ jsx63(
2400
+ import { Fragment as Fragment6, jsx as jsx64, jsxs as jsxs26 } from "react/jsx-runtime";
2401
+ var Dot = () => /* @__PURE__ */ jsx64("svg", { viewBox: "0 0 6 6", children: /* @__PURE__ */ jsx64("circle", { fill: "currentColor", cx: "3", cy: "3", r: "3" }) });
2402
+ var Icon3 = ({ checked, className, ...props }) => /* @__PURE__ */ jsx64(
2355
2403
  "div",
2356
2404
  {
2357
- className: cn34(
2405
+ className: cn35(
2358
2406
  "bg-secondary-50 flex h-4 w-4 items-center justify-center rounded-[50%] border p-1",
2359
2407
  className
2360
2408
  ),
2361
2409
  "aria-hidden": "true",
2362
2410
  ...props,
2363
- children: checked ? /* @__PURE__ */ jsx63(Dot, {}) : null
2411
+ children: checked ? /* @__PURE__ */ jsx64(Dot, {}) : null
2364
2412
  }
2365
2413
  );
2366
2414
  var _Radio = forwardRef17(
2367
2415
  ({ value, disabled, width, children, ...props }, ref) => {
2368
2416
  const { variant, size, width: groupWidth } = useRadioGroupContext();
2369
- const classNames2 = useClassNames38({
2417
+ const classNames2 = useClassNames39({
2370
2418
  component: "Radio",
2371
2419
  variant: variant || props.variant,
2372
2420
  size: size || props.size
2373
2421
  });
2374
- return /* @__PURE__ */ jsx63(
2422
+ return /* @__PURE__ */ jsx64(
2375
2423
  Radio,
2376
2424
  {
2377
2425
  ref,
2378
- className: cn34(
2426
+ className: cn35(
2379
2427
  "group/radio",
2380
2428
  "relative flex items-center gap-[1ch]",
2381
2429
  width || groupWidth || "w-full",
@@ -2384,18 +2432,18 @@ var _Radio = forwardRef17(
2384
2432
  value,
2385
2433
  isDisabled: disabled,
2386
2434
  ...props,
2387
- children: ({ isSelected }) => /* @__PURE__ */ jsxs25(Fragment6, { children: [
2388
- /* @__PURE__ */ jsx63(
2435
+ children: ({ isSelected }) => /* @__PURE__ */ jsxs26(Fragment6, { children: [
2436
+ /* @__PURE__ */ jsx64(
2389
2437
  Icon3,
2390
2438
  {
2391
2439
  checked: isSelected,
2392
- className: cn34(
2440
+ className: cn35(
2393
2441
  disabled ? "cursor-not-allowed" : "cursor-pointer",
2394
2442
  classNames2.radio
2395
2443
  )
2396
2444
  }
2397
2445
  ),
2398
- /* @__PURE__ */ jsx63("div", { className: classNames2.label, children })
2446
+ /* @__PURE__ */ jsx64("div", { className: classNames2.label, children })
2399
2447
  ] })
2400
2448
  }
2401
2449
  );
@@ -2406,7 +2454,7 @@ _Radio.Group = _RadioGroup;
2406
2454
  // src/SearchField/SearchField.tsx
2407
2455
  import { forwardRef as forwardRef18 } from "react";
2408
2456
  import { SearchField } from "react-aria-components";
2409
- import { jsx as jsx64 } from "react/jsx-runtime";
2457
+ import { jsx as jsx65 } from "react/jsx-runtime";
2410
2458
  var _SearchField = forwardRef18(
2411
2459
  ({ disabled, required, readOnly, error, action, ...rest }, ref) => {
2412
2460
  const props = {
@@ -2416,7 +2464,7 @@ var _SearchField = forwardRef18(
2416
2464
  isReadOnly: readOnly,
2417
2465
  isInvalid: error
2418
2466
  };
2419
- return /* @__PURE__ */ jsx64(FieldBase, { as: SearchField, ...props, children: /* @__PURE__ */ jsx64(
2467
+ return /* @__PURE__ */ jsx65(FieldBase, { as: SearchField, ...props, children: /* @__PURE__ */ jsx65(
2420
2468
  SearchInput,
2421
2469
  {
2422
2470
  ref,
@@ -2433,8 +2481,8 @@ import {
2433
2481
  Select,
2434
2482
  SelectValue
2435
2483
  } from "react-aria-components";
2436
- import { cn as cn35, useClassNames as useClassNames39 } from "@marigold/system";
2437
- import { jsx as jsx65, jsxs as jsxs26 } from "react/jsx-runtime";
2484
+ import { cn as cn36, useClassNames as useClassNames40 } from "@marigold/system";
2485
+ import { jsx as jsx66, jsxs as jsxs27 } from "react/jsx-runtime";
2438
2486
  var _Select = forwardRef19(
2439
2487
  ({
2440
2488
  disabled,
@@ -2455,22 +2503,22 @@ var _Select = forwardRef19(
2455
2503
  onSelectionChange: onChange,
2456
2504
  ...rest
2457
2505
  };
2458
- const classNames2 = useClassNames39({ component: "Select", variant, size });
2459
- return /* @__PURE__ */ jsxs26(FieldBase, { isOpen: true, as: Select, ref, ...props, children: [
2460
- /* @__PURE__ */ jsxs26(
2506
+ const classNames2 = useClassNames40({ component: "Select", variant, size });
2507
+ return /* @__PURE__ */ jsxs27(FieldBase, { isOpen: true, as: Select, ref, ...props, children: [
2508
+ /* @__PURE__ */ jsxs27(
2461
2509
  Button5,
2462
2510
  {
2463
- className: cn35(
2511
+ className: cn36(
2464
2512
  "flex w-full items-center justify-between gap-1 overflow-hidden",
2465
2513
  classNames2.select
2466
2514
  ),
2467
2515
  children: [
2468
- /* @__PURE__ */ jsx65(SelectValue, {}),
2469
- /* @__PURE__ */ jsx65(ChevronDown, { className: "size-4" })
2516
+ /* @__PURE__ */ jsx66(SelectValue, {}),
2517
+ /* @__PURE__ */ jsx66(ChevronDown, { className: "size-4" })
2470
2518
  ]
2471
2519
  }
2472
2520
  ),
2473
- /* @__PURE__ */ jsx65(_Popover, { children: /* @__PURE__ */ jsx65(_ListBox, { items, children: props.children }) })
2521
+ /* @__PURE__ */ jsx66(_Popover, { children: /* @__PURE__ */ jsx66(_ListBox, { items, children: props.children }) })
2474
2522
  ] });
2475
2523
  }
2476
2524
  );
@@ -2478,19 +2526,19 @@ _Select.Option = _ListBox.Item;
2478
2526
  _Select.Section = _ListBox.Section;
2479
2527
 
2480
2528
  // src/Scrollable/Scrollable.tsx
2481
- import { cn as cn36, createVar as createVar9, width as twWidth2 } from "@marigold/system";
2482
- import { jsx as jsx66 } from "react/jsx-runtime";
2529
+ import { cn as cn37, createVar as createVar10, width as twWidth2 } from "@marigold/system";
2530
+ import { jsx as jsx67 } from "react/jsx-runtime";
2483
2531
  var Scrollable = ({
2484
2532
  children,
2485
2533
  width = "full",
2486
2534
  height,
2487
2535
  ...props
2488
- }) => /* @__PURE__ */ jsx66(
2536
+ }) => /* @__PURE__ */ jsx67(
2489
2537
  "div",
2490
2538
  {
2491
2539
  ...props,
2492
- className: cn36(["sticky h-[--height] overflow-auto", twWidth2[width]]),
2493
- style: createVar9({ height }),
2540
+ className: cn37(["sticky h-[--height] overflow-auto", twWidth2[width]]),
2541
+ style: createVar10({ height }),
2494
2542
  children
2495
2543
  }
2496
2544
  );
@@ -2504,11 +2552,11 @@ import {
2504
2552
  SliderTrack
2505
2553
  } from "react-aria-components";
2506
2554
  import {
2507
- cn as cn37,
2555
+ cn as cn38,
2508
2556
  width as twWidth3,
2509
- useClassNames as useClassNames40
2557
+ useClassNames as useClassNames41
2510
2558
  } from "@marigold/system";
2511
- import { jsx as jsx67, jsxs as jsxs27 } from "react/jsx-runtime";
2559
+ import { jsx as jsx68, jsxs as jsxs28 } from "react/jsx-runtime";
2512
2560
  var _Slider = forwardRef20(
2513
2561
  ({
2514
2562
  thumbLabels,
@@ -2518,7 +2566,7 @@ var _Slider = forwardRef20(
2518
2566
  disabled,
2519
2567
  ...rest
2520
2568
  }, ref) => {
2521
- const classNames2 = useClassNames40({
2569
+ const classNames2 = useClassNames41({
2522
2570
  component: "Slider",
2523
2571
  variant,
2524
2572
  size
@@ -2527,10 +2575,10 @@ var _Slider = forwardRef20(
2527
2575
  isDisabled: disabled,
2528
2576
  ...rest
2529
2577
  };
2530
- return /* @__PURE__ */ jsxs27(
2578
+ return /* @__PURE__ */ jsxs28(
2531
2579
  Slider,
2532
2580
  {
2533
- className: cn37(
2581
+ className: cn38(
2534
2582
  "grid grid-cols-[auto_1fr] gap-y-1",
2535
2583
  classNames2.container,
2536
2584
  twWidth3[width]
@@ -2538,16 +2586,16 @@ var _Slider = forwardRef20(
2538
2586
  ref,
2539
2587
  ...props,
2540
2588
  children: [
2541
- /* @__PURE__ */ jsx67(_Label, { children: props.children }),
2542
- /* @__PURE__ */ jsx67(SliderOutput, { className: cn37("flex justify-end", classNames2.output), children: ({ state }) => state.values.map((_, i) => state.getThumbValueLabel(i)).join(" \u2013 ") }),
2543
- /* @__PURE__ */ jsx67(
2589
+ /* @__PURE__ */ jsx68(_Label, { children: props.children }),
2590
+ /* @__PURE__ */ jsx68(SliderOutput, { className: cn38("flex justify-end", classNames2.output), children: ({ state }) => state.values.map((_, i) => state.getThumbValueLabel(i)).join(" \u2013 ") }),
2591
+ /* @__PURE__ */ jsx68(
2544
2592
  SliderTrack,
2545
2593
  {
2546
- className: cn37("relative col-span-2 h-2 w-full", classNames2.track),
2547
- children: ({ state }) => state.values.map((_, i) => /* @__PURE__ */ jsx67(
2594
+ className: cn38("relative col-span-2 h-2 w-full", classNames2.track),
2595
+ children: ({ state }) => state.values.map((_, i) => /* @__PURE__ */ jsx68(
2548
2596
  SliderThumb,
2549
2597
  {
2550
- className: cn37("top-1/2 cursor-pointer", classNames2.thumb),
2598
+ className: cn38("top-1/2 cursor-pointer", classNames2.thumb),
2551
2599
  index: i,
2552
2600
  "aria-label": thumbLabels == null ? void 0 : thumbLabels[i]
2553
2601
  },
@@ -2562,16 +2610,16 @@ var _Slider = forwardRef20(
2562
2610
  );
2563
2611
 
2564
2612
  // src/Split/Split.tsx
2565
- import { jsx as jsx68 } from "react/jsx-runtime";
2566
- var Split = (props) => /* @__PURE__ */ jsx68("div", { ...props, role: "separator", className: "grow" });
2613
+ import { jsx as jsx69 } from "react/jsx-runtime";
2614
+ var Split = (props) => /* @__PURE__ */ jsx69("div", { ...props, role: "separator", className: "grow" });
2567
2615
 
2568
2616
  // src/Stack/Stack.tsx
2569
2617
  import {
2570
2618
  alignment as alignment3,
2571
- cn as cn38,
2619
+ cn as cn39,
2572
2620
  gapSpace as gapSpace6
2573
2621
  } from "@marigold/system";
2574
- import { jsx as jsx69 } from "react/jsx-runtime";
2622
+ import { jsx as jsx70 } from "react/jsx-runtime";
2575
2623
  var Stack = ({
2576
2624
  children,
2577
2625
  space = 0,
@@ -2582,10 +2630,10 @@ var Stack = ({
2582
2630
  ...props
2583
2631
  }) => {
2584
2632
  var _a, _b, _c, _d;
2585
- return /* @__PURE__ */ jsx69(
2633
+ return /* @__PURE__ */ jsx70(
2586
2634
  "div",
2587
2635
  {
2588
- className: cn38(
2636
+ className: cn39(
2589
2637
  "flex flex-col",
2590
2638
  gapSpace6[space],
2591
2639
  alignX && ((_b = (_a = alignment3) == null ? void 0 : _a.vertical) == null ? void 0 : _b.alignmentX[alignX]),
@@ -2602,11 +2650,11 @@ var Stack = ({
2602
2650
  import { forwardRef as forwardRef21 } from "react";
2603
2651
  import { Switch } from "react-aria-components";
2604
2652
  import {
2605
- cn as cn39,
2653
+ cn as cn40,
2606
2654
  width as twWidth4,
2607
- useClassNames as useClassNames41
2655
+ useClassNames as useClassNames42
2608
2656
  } from "@marigold/system";
2609
- import { jsx as jsx70, jsxs as jsxs28 } from "react/jsx-runtime";
2657
+ import { jsx as jsx71, jsxs as jsxs29 } from "react/jsx-runtime";
2610
2658
  var _Switch = forwardRef21(
2611
2659
  ({
2612
2660
  variant,
@@ -2618,37 +2666,37 @@ var _Switch = forwardRef21(
2618
2666
  readOnly,
2619
2667
  ...rest
2620
2668
  }, ref) => {
2621
- const classNames2 = useClassNames41({ component: "Switch", size, variant });
2669
+ const classNames2 = useClassNames42({ component: "Switch", size, variant });
2622
2670
  const props = {
2623
2671
  isDisabled: disabled,
2624
2672
  isReadOnly: readOnly,
2625
2673
  isSelected: selected,
2626
2674
  ...rest
2627
2675
  };
2628
- return /* @__PURE__ */ jsxs28(
2676
+ return /* @__PURE__ */ jsxs29(
2629
2677
  Switch,
2630
2678
  {
2631
2679
  ...props,
2632
2680
  ref,
2633
- className: cn39(
2681
+ className: cn40(
2634
2682
  twWidth4[width],
2635
2683
  "group/switch",
2636
2684
  "flex items-center gap-[1ch]",
2637
2685
  classNames2.container
2638
2686
  ),
2639
2687
  children: [
2640
- /* @__PURE__ */ jsx70(_Label, { elementType: "span", children }),
2641
- /* @__PURE__ */ jsx70("div", { className: "relative", children: /* @__PURE__ */ jsx70(
2688
+ /* @__PURE__ */ jsx71(_Label, { elementType: "span", children }),
2689
+ /* @__PURE__ */ jsx71("div", { className: "relative", children: /* @__PURE__ */ jsx71(
2642
2690
  "div",
2643
2691
  {
2644
- className: cn39(
2692
+ className: cn40(
2645
2693
  "h-6 w-12 basis-12 rounded-3xl group-disabled/switch:cursor-not-allowed ",
2646
2694
  classNames2.track
2647
2695
  ),
2648
- children: /* @__PURE__ */ jsx70(
2696
+ children: /* @__PURE__ */ jsx71(
2649
2697
  "div",
2650
2698
  {
2651
- className: cn39(
2699
+ className: cn40(
2652
2700
  "h-[22px] w-[22px]",
2653
2701
  "cubic-bezier(.7,0,.3,1)",
2654
2702
  "absolute left-0 top-px",
@@ -2677,19 +2725,19 @@ import {
2677
2725
  Row,
2678
2726
  useTableState
2679
2727
  } from "@react-stately/table";
2680
- import { cn as cn45, useClassNames as useClassNames43 } from "@marigold/system";
2728
+ import { cn as cn46, useClassNames as useClassNames44 } from "@marigold/system";
2681
2729
 
2682
2730
  // src/Table/Context.tsx
2683
- import { createContext as createContext6, useContext as useContext11 } from "react";
2684
- var TableContext = createContext6({});
2685
- var useTableContext = () => useContext11(TableContext);
2731
+ import { createContext as createContext7, useContext as useContext13 } from "react";
2732
+ var TableContext = createContext7({});
2733
+ var useTableContext = () => useContext13(TableContext);
2686
2734
 
2687
2735
  // src/Table/TableBody.tsx
2688
2736
  import { useTableRowGroup } from "@react-aria/table";
2689
- import { jsx as jsx71 } from "react/jsx-runtime";
2737
+ import { jsx as jsx72 } from "react/jsx-runtime";
2690
2738
  var TableBody = ({ children }) => {
2691
2739
  const { rowGroupProps } = useTableRowGroup();
2692
- return /* @__PURE__ */ jsx71("tbody", { ...rowGroupProps, children });
2740
+ return /* @__PURE__ */ jsx72("tbody", { ...rowGroupProps, children });
2693
2741
  };
2694
2742
 
2695
2743
  // src/Table/TableCell.tsx
@@ -2697,8 +2745,8 @@ import { useRef as useRef4 } from "react";
2697
2745
  import { useFocusRing as useFocusRing2 } from "@react-aria/focus";
2698
2746
  import { useTableCell } from "@react-aria/table";
2699
2747
  import { mergeProps as mergeProps3 } from "@react-aria/utils";
2700
- import { cn as cn40, useStateProps as useStateProps2 } from "@marigold/system";
2701
- import { jsx as jsx72 } from "react/jsx-runtime";
2748
+ import { cn as cn41, useStateProps as useStateProps2 } from "@marigold/system";
2749
+ import { jsx as jsx73 } from "react/jsx-runtime";
2702
2750
  var TableCell = ({ cell, align = "left" }) => {
2703
2751
  const ref = useRef4(null);
2704
2752
  const { interactive, state, classNames: classNames2 } = useTableContext();
@@ -2721,11 +2769,11 @@ var TableCell = ({ cell, align = "left" }) => {
2721
2769
  };
2722
2770
  const { focusProps, isFocusVisible } = useFocusRing2();
2723
2771
  const stateProps = useStateProps2({ disabled, focusVisible: isFocusVisible });
2724
- return /* @__PURE__ */ jsx72(
2772
+ return /* @__PURE__ */ jsx73(
2725
2773
  "td",
2726
2774
  {
2727
2775
  ref,
2728
- className: cn40(classNames2 == null ? void 0 : classNames2.cell),
2776
+ className: cn41(classNames2 == null ? void 0 : classNames2.cell),
2729
2777
  ...mergeProps3(cellProps, focusProps),
2730
2778
  ...stateProps,
2731
2779
  align,
@@ -2739,7 +2787,7 @@ import { useRef as useRef5 } from "react";
2739
2787
  import { useFocusRing as useFocusRing3 } from "@react-aria/focus";
2740
2788
  import { useTableCell as useTableCell2, useTableSelectionCheckbox } from "@react-aria/table";
2741
2789
  import { mergeProps as mergeProps4 } from "@react-aria/utils";
2742
- import { cn as cn41, useStateProps as useStateProps3 } from "@marigold/system";
2790
+ import { cn as cn42, useStateProps as useStateProps3 } from "@marigold/system";
2743
2791
 
2744
2792
  // src/Table/utils.ts
2745
2793
  var mapCheckboxProps = ({
@@ -2762,7 +2810,7 @@ var mapCheckboxProps = ({
2762
2810
  };
2763
2811
 
2764
2812
  // src/Table/TableCheckboxCell.tsx
2765
- import { jsx as jsx73 } from "react/jsx-runtime";
2813
+ import { jsx as jsx74 } from "react/jsx-runtime";
2766
2814
  var TableCheckboxCell = ({ cell }) => {
2767
2815
  const ref = useRef5(null);
2768
2816
  const { state, classNames: classNames2 } = useTableContext();
@@ -2779,14 +2827,14 @@ var TableCheckboxCell = ({ cell }) => {
2779
2827
  );
2780
2828
  const { focusProps, isFocusVisible } = useFocusRing3();
2781
2829
  const stateProps = useStateProps3({ disabled, focusVisible: isFocusVisible });
2782
- return /* @__PURE__ */ jsx73(
2830
+ return /* @__PURE__ */ jsx74(
2783
2831
  "td",
2784
2832
  {
2785
2833
  ref,
2786
- className: cn41("text-center align-middle leading-none", classNames2 == null ? void 0 : classNames2.cell),
2834
+ className: cn42("text-center align-middle leading-none", classNames2 == null ? void 0 : classNames2.cell),
2787
2835
  ...mergeProps4(gridCellProps, focusProps),
2788
2836
  ...stateProps,
2789
- children: /* @__PURE__ */ jsx73(_Checkbox, { ...checkboxProps })
2837
+ children: /* @__PURE__ */ jsx74(_Checkbox, { ...checkboxProps })
2790
2838
  }
2791
2839
  );
2792
2840
  };
@@ -2798,9 +2846,9 @@ import { useHover } from "@react-aria/interactions";
2798
2846
  import { useTableColumnHeader } from "@react-aria/table";
2799
2847
  import { mergeProps as mergeProps5 } from "@react-aria/utils";
2800
2848
  import { SortDown, SortUp } from "@marigold/icons";
2801
- import { cn as cn42, useStateProps as useStateProps4 } from "@marigold/system";
2849
+ import { cn as cn43, useStateProps as useStateProps4 } from "@marigold/system";
2802
2850
  import { width as twWidth5 } from "@marigold/system";
2803
- import { jsx as jsx74, jsxs as jsxs29 } from "react/jsx-runtime";
2851
+ import { jsx as jsx75, jsxs as jsxs30 } from "react/jsx-runtime";
2804
2852
  var TableColumnHeader = ({
2805
2853
  column,
2806
2854
  width = "auto",
@@ -2822,18 +2870,18 @@ var TableColumnHeader = ({
2822
2870
  hover: isHovered,
2823
2871
  focusVisible: isFocusVisible
2824
2872
  });
2825
- return /* @__PURE__ */ jsxs29(
2873
+ return /* @__PURE__ */ jsxs30(
2826
2874
  "th",
2827
2875
  {
2828
2876
  colSpan: column.colspan,
2829
2877
  ref,
2830
- className: cn42("cursor-default", twWidth5[width], classNames2 == null ? void 0 : classNames2.header),
2878
+ className: cn43("cursor-default", twWidth5[width], classNames2 == null ? void 0 : classNames2.header),
2831
2879
  ...mergeProps5(columnHeaderProps, hoverProps, focusProps),
2832
2880
  ...stateProps,
2833
2881
  align,
2834
2882
  children: [
2835
2883
  column.rendered,
2836
- column.props.allowsSorting && (((_a = state.sortDescriptor) == null ? void 0 : _a.column) === column.key ? ((_b = state.sortDescriptor) == null ? void 0 : _b.direction) === "ascending" ? /* @__PURE__ */ jsx74(SortUp, { className: "inline-block" }) : /* @__PURE__ */ jsx74(SortDown, { className: "inline-block" }) : /* @__PURE__ */ jsx74(SortDown, { className: "inline-block" }))
2884
+ column.props.allowsSorting && (((_a = state.sortDescriptor) == null ? void 0 : _a.column) === column.key ? ((_b = state.sortDescriptor) == null ? void 0 : _b.direction) === "ascending" ? /* @__PURE__ */ jsx75(SortUp, { className: "inline-block" }) : /* @__PURE__ */ jsx75(SortDown, { className: "inline-block" }) : /* @__PURE__ */ jsx75(SortDown, { className: "inline-block" }))
2837
2885
  ]
2838
2886
  }
2839
2887
  );
@@ -2841,10 +2889,10 @@ var TableColumnHeader = ({
2841
2889
 
2842
2890
  // src/Table/TableHeader.tsx
2843
2891
  import { useTableRowGroup as useTableRowGroup2 } from "@react-aria/table";
2844
- import { jsx as jsx75 } from "react/jsx-runtime";
2892
+ import { jsx as jsx76 } from "react/jsx-runtime";
2845
2893
  var TableHeader = ({ stickyHeader, children }) => {
2846
2894
  const { rowGroupProps } = useTableRowGroup2();
2847
- return /* @__PURE__ */ jsx75(
2895
+ return /* @__PURE__ */ jsx76(
2848
2896
  "thead",
2849
2897
  {
2850
2898
  ...rowGroupProps,
@@ -2857,12 +2905,12 @@ var TableHeader = ({ stickyHeader, children }) => {
2857
2905
  // src/Table/TableHeaderRow.tsx
2858
2906
  import { useRef as useRef7 } from "react";
2859
2907
  import { useTableHeaderRow } from "@react-aria/table";
2860
- import { jsx as jsx76 } from "react/jsx-runtime";
2908
+ import { jsx as jsx77 } from "react/jsx-runtime";
2861
2909
  var TableHeaderRow = ({ item, children }) => {
2862
2910
  const { state } = useTableContext();
2863
2911
  const ref = useRef7(null);
2864
2912
  const { rowProps } = useTableHeaderRow({ node: item }, state, ref);
2865
- return /* @__PURE__ */ jsx76("tr", { ...rowProps, ref, children });
2913
+ return /* @__PURE__ */ jsx77("tr", { ...rowProps, ref, children });
2866
2914
  };
2867
2915
 
2868
2916
  // src/Table/TableRow.tsx
@@ -2871,13 +2919,13 @@ import { useFocusRing as useFocusRing5 } from "@react-aria/focus";
2871
2919
  import { useHover as useHover2 } from "@react-aria/interactions";
2872
2920
  import { useTableRow } from "@react-aria/table";
2873
2921
  import { mergeProps as mergeProps6 } from "@react-aria/utils";
2874
- import { cn as cn43, useClassNames as useClassNames42, useStateProps as useStateProps5 } from "@marigold/system";
2875
- import { jsx as jsx77 } from "react/jsx-runtime";
2922
+ import { cn as cn44, useClassNames as useClassNames43, useStateProps as useStateProps5 } from "@marigold/system";
2923
+ import { jsx as jsx78 } from "react/jsx-runtime";
2876
2924
  var TableRow = ({ children, row }) => {
2877
2925
  const ref = useRef8(null);
2878
2926
  const { interactive, state, ...ctx } = useTableContext();
2879
2927
  const { variant, size } = row.props;
2880
- const classNames2 = useClassNames42({
2928
+ const classNames2 = useClassNames43({
2881
2929
  component: "Table",
2882
2930
  variant: variant || ctx.variant,
2883
2931
  size: size || ctx.size
@@ -2902,11 +2950,11 @@ var TableRow = ({ children, row }) => {
2902
2950
  focusVisible: isFocusVisible,
2903
2951
  active: isPressed
2904
2952
  });
2905
- return /* @__PURE__ */ jsx77(
2953
+ return /* @__PURE__ */ jsx78(
2906
2954
  "tr",
2907
2955
  {
2908
2956
  ref,
2909
- className: cn43(
2957
+ className: cn44(
2910
2958
  [
2911
2959
  !interactive ? "cursor-text" : disabled ? "cursor-default" : "cursor-pointer"
2912
2960
  ],
@@ -2929,11 +2977,11 @@ import {
2929
2977
  } from "@react-aria/table";
2930
2978
  import { mergeProps as mergeProps7 } from "@react-aria/utils";
2931
2979
  import {
2932
- cn as cn44,
2980
+ cn as cn45,
2933
2981
  width as twWidth6,
2934
2982
  useStateProps as useStateProps6
2935
2983
  } from "@marigold/system";
2936
- import { jsx as jsx78 } from "react/jsx-runtime";
2984
+ import { jsx as jsx79 } from "react/jsx-runtime";
2937
2985
  var TableSelectAllCell = ({
2938
2986
  column,
2939
2987
  width = "auto",
@@ -2955,21 +3003,21 @@ var TableSelectAllCell = ({
2955
3003
  hover: isHovered,
2956
3004
  focusVisible: isFocusVisible
2957
3005
  });
2958
- return /* @__PURE__ */ jsx78(
3006
+ return /* @__PURE__ */ jsx79(
2959
3007
  "th",
2960
3008
  {
2961
3009
  ref,
2962
- className: cn44(twWidth6[width], [" leading-none"], classNames2 == null ? void 0 : classNames2.header),
3010
+ className: cn45(twWidth6[width], [" leading-none"], classNames2 == null ? void 0 : classNames2.header),
2963
3011
  ...mergeProps7(columnHeaderProps, hoverProps, focusProps),
2964
3012
  ...stateProps,
2965
3013
  align,
2966
- children: /* @__PURE__ */ jsx78(_Checkbox, { ...checkboxProps })
3014
+ children: /* @__PURE__ */ jsx79(_Checkbox, { ...checkboxProps })
2967
3015
  }
2968
3016
  );
2969
3017
  };
2970
3018
 
2971
3019
  // src/Table/Table.tsx
2972
- import { jsx as jsx79, jsxs as jsxs30 } from "react/jsx-runtime";
3020
+ import { jsx as jsx80, jsxs as jsxs31 } from "react/jsx-runtime";
2973
3021
  var Table = ({
2974
3022
  variant,
2975
3023
  size,
@@ -2987,21 +3035,21 @@ var Table = ({
2987
3035
  props.selectionBehavior !== "replace"
2988
3036
  });
2989
3037
  const { gridProps } = useTable(props, state, tableRef);
2990
- const classNames2 = useClassNames43({
3038
+ const classNames2 = useClassNames44({
2991
3039
  component: "Table",
2992
3040
  variant,
2993
3041
  size
2994
3042
  });
2995
3043
  const { collection } = state;
2996
- return /* @__PURE__ */ jsx79(
3044
+ return /* @__PURE__ */ jsx80(
2997
3045
  TableContext.Provider,
2998
3046
  {
2999
3047
  value: { state, interactive, classNames: classNames2, variant, size },
3000
- children: /* @__PURE__ */ jsxs30(
3048
+ children: /* @__PURE__ */ jsxs31(
3001
3049
  "table",
3002
3050
  {
3003
3051
  ref: tableRef,
3004
- className: cn45(
3052
+ className: cn46(
3005
3053
  "group/table",
3006
3054
  "border-collapse whitespace-nowrap",
3007
3055
  stretch ? "table w-full" : "block",
@@ -3009,10 +3057,10 @@ var Table = ({
3009
3057
  ),
3010
3058
  ...gridProps,
3011
3059
  children: [
3012
- /* @__PURE__ */ jsx79(TableHeader, { stickyHeader, children: collection.headerRows.map((headerRow) => /* @__PURE__ */ jsx79(TableHeaderRow, { item: headerRow, children: [...collection.getChildren(headerRow.key)].map(
3060
+ /* @__PURE__ */ jsx80(TableHeader, { stickyHeader, children: collection.headerRows.map((headerRow) => /* @__PURE__ */ jsx80(TableHeaderRow, { item: headerRow, children: [...collection.getChildren(headerRow.key)].map(
3013
3061
  (column) => {
3014
3062
  var _a, _b, _c, _d, _e;
3015
- return ((_a = column.props) == null ? void 0 : _a.isSelectionCell) ? /* @__PURE__ */ jsx79(
3063
+ return ((_a = column.props) == null ? void 0 : _a.isSelectionCell) ? /* @__PURE__ */ jsx80(
3016
3064
  TableSelectAllCell,
3017
3065
  {
3018
3066
  width: (_b = column.props) == null ? void 0 : _b.width,
@@ -3020,7 +3068,7 @@ var Table = ({
3020
3068
  align: (_c = column.props) == null ? void 0 : _c.align
3021
3069
  },
3022
3070
  column.key
3023
- ) : /* @__PURE__ */ jsx79(
3071
+ ) : /* @__PURE__ */ jsx80(
3024
3072
  TableColumnHeader,
3025
3073
  {
3026
3074
  width: (_d = column.props) == null ? void 0 : _d.width,
@@ -3031,12 +3079,12 @@ var Table = ({
3031
3079
  );
3032
3080
  }
3033
3081
  ) }, headerRow.key)) }),
3034
- /* @__PURE__ */ jsxs30(TableBody, { children: [
3082
+ /* @__PURE__ */ jsxs31(TableBody, { children: [
3035
3083
  ...collection.rows.map(
3036
- (row) => row.type === "item" && /* @__PURE__ */ jsx79(TableRow, { row, children: [...collection.getChildren(row.key)].map((cell, index) => {
3084
+ (row) => row.type === "item" && /* @__PURE__ */ jsx80(TableRow, { row, children: [...collection.getChildren(row.key)].map((cell, index) => {
3037
3085
  var _a, _b;
3038
3086
  const currentColumn = collection.columns[index];
3039
- return ((_a = cell.props) == null ? void 0 : _a.isSelectionCell) ? /* @__PURE__ */ jsx79(TableCheckboxCell, { cell }, cell.key) : /* @__PURE__ */ jsx79(
3087
+ return ((_a = cell.props) == null ? void 0 : _a.isSelectionCell) ? /* @__PURE__ */ jsx80(TableCheckboxCell, { cell }, cell.key) : /* @__PURE__ */ jsx80(
3040
3088
  TableCell,
3041
3089
  {
3042
3090
  align: (_b = currentColumn.props) == null ? void 0 : _b.align,
@@ -3061,18 +3109,18 @@ Table.Row = Row;
3061
3109
 
3062
3110
  // src/Text/Text.tsx
3063
3111
  import {
3064
- cn as cn46,
3065
- createVar as createVar10,
3112
+ cn as cn47,
3113
+ createVar as createVar11,
3066
3114
  cursorStyle,
3067
3115
  fontWeight,
3068
3116
  getColor as getColor2,
3069
3117
  textAlign as textAlign2,
3070
3118
  textSize,
3071
3119
  textStyle,
3072
- useClassNames as useClassNames44,
3120
+ useClassNames as useClassNames45,
3073
3121
  useTheme as useTheme3
3074
3122
  } from "@marigold/system";
3075
- import { jsx as jsx80 } from "react/jsx-runtime";
3123
+ import { jsx as jsx81 } from "react/jsx-runtime";
3076
3124
  var Text2 = ({
3077
3125
  variant,
3078
3126
  size,
@@ -3086,25 +3134,25 @@ var Text2 = ({
3086
3134
  ...props
3087
3135
  }) => {
3088
3136
  const theme = useTheme3();
3089
- const classNames2 = useClassNames44({
3137
+ const classNames2 = useClassNames45({
3090
3138
  component: "Text",
3091
3139
  variant,
3092
3140
  size
3093
3141
  });
3094
- return /* @__PURE__ */ jsx80(
3142
+ return /* @__PURE__ */ jsx81(
3095
3143
  "p",
3096
3144
  {
3097
3145
  ...props,
3098
- className: cn46(
3099
- classNames2,
3146
+ className: cn47(
3100
3147
  "text-[--color] outline-[--outline]",
3148
+ classNames2,
3101
3149
  fontStyle && textStyle[fontStyle],
3102
3150
  align && textAlign2[align],
3103
3151
  cursor && cursorStyle[cursor],
3104
3152
  weight && fontWeight[weight],
3105
3153
  fontSize && textSize[fontSize]
3106
3154
  ),
3107
- style: createVar10({
3155
+ style: createVar11({
3108
3156
  color: color && getColor2(
3109
3157
  theme,
3110
3158
  color,
@@ -3120,8 +3168,8 @@ var Text2 = ({
3120
3168
  // src/TextArea/TextArea.tsx
3121
3169
  import { forwardRef as forwardRef22 } from "react";
3122
3170
  import { TextArea, TextField } from "react-aria-components";
3123
- import { useClassNames as useClassNames45 } from "@marigold/system";
3124
- import { jsx as jsx81 } from "react/jsx-runtime";
3171
+ import { useClassNames as useClassNames46 } from "@marigold/system";
3172
+ import { jsx as jsx82 } from "react/jsx-runtime";
3125
3173
  var _TextArea = forwardRef22(
3126
3174
  ({
3127
3175
  variant,
@@ -3133,7 +3181,7 @@ var _TextArea = forwardRef22(
3133
3181
  rows,
3134
3182
  ...rest
3135
3183
  }, ref) => {
3136
- const classNames2 = useClassNames45({ component: "TextArea", variant, size });
3184
+ const classNames2 = useClassNames46({ component: "TextArea", variant, size });
3137
3185
  const props = {
3138
3186
  isDisabled: disabled,
3139
3187
  isReadOnly: readOnly,
@@ -3141,14 +3189,14 @@ var _TextArea = forwardRef22(
3141
3189
  isRequired: required,
3142
3190
  ...rest
3143
3191
  };
3144
- return /* @__PURE__ */ jsx81(FieldBase, { as: TextField, ...props, variant, size, children: /* @__PURE__ */ jsx81(TextArea, { className: classNames2, ref, rows }) });
3192
+ return /* @__PURE__ */ jsx82(FieldBase, { as: TextField, ...props, variant, size, children: /* @__PURE__ */ jsx82(TextArea, { className: classNames2, ref, rows }) });
3145
3193
  }
3146
3194
  );
3147
3195
 
3148
3196
  // src/TextField/TextField.tsx
3149
3197
  import { forwardRef as forwardRef23 } from "react";
3150
3198
  import { TextField as TextField2 } from "react-aria-components";
3151
- import { jsx as jsx82 } from "react/jsx-runtime";
3199
+ import { jsx as jsx83 } from "react/jsx-runtime";
3152
3200
  var _TextField = forwardRef23(
3153
3201
  ({
3154
3202
  variant,
@@ -3166,13 +3214,13 @@ var _TextField = forwardRef23(
3166
3214
  isRequired: required,
3167
3215
  ...rest
3168
3216
  };
3169
- return /* @__PURE__ */ jsx82(FieldBase, { as: TextField2, ...props, children: /* @__PURE__ */ jsx82(_Input, { ref }) });
3217
+ return /* @__PURE__ */ jsx83(FieldBase, { as: TextField2, ...props, children: /* @__PURE__ */ jsx83(_Input, { ref }) });
3170
3218
  }
3171
3219
  );
3172
3220
 
3173
3221
  // src/Tiles/Tiles.tsx
3174
- import { cn as cn47, createVar as createVar11, gapSpace as gapSpace7 } from "@marigold/system";
3175
- import { jsx as jsx83 } from "react/jsx-runtime";
3222
+ import { cn as cn48, createVar as createVar12, gapSpace as gapSpace7 } from "@marigold/system";
3223
+ import { jsx as jsx84 } from "react/jsx-runtime";
3176
3224
  var Tiles = ({
3177
3225
  space = 0,
3178
3226
  stretch = false,
@@ -3185,17 +3233,17 @@ var Tiles = ({
3185
3233
  if (stretch) {
3186
3234
  column = `minmax(${column}, 1fr)`;
3187
3235
  }
3188
- return /* @__PURE__ */ jsx83(
3236
+ return /* @__PURE__ */ jsx84(
3189
3237
  "div",
3190
3238
  {
3191
3239
  ...props,
3192
- className: cn47(
3240
+ className: cn48(
3193
3241
  "grid",
3194
3242
  gapSpace7[space],
3195
3243
  "grid-cols-[repeat(auto-fit,var(--column))]",
3196
3244
  equalHeight && "auto-rows-[1fr]"
3197
3245
  ),
3198
- style: createVar11({ column, tilesWidth }),
3246
+ style: createVar12({ column, tilesWidth }),
3199
3247
  children
3200
3248
  }
3201
3249
  );
@@ -3203,11 +3251,11 @@ var Tiles = ({
3203
3251
 
3204
3252
  // src/Tooltip/Tooltip.tsx
3205
3253
  import { OverlayArrow, Tooltip } from "react-aria-components";
3206
- import { cn as cn48, useClassNames as useClassNames46 } from "@marigold/system";
3254
+ import { cn as cn49, useClassNames as useClassNames47 } from "@marigold/system";
3207
3255
 
3208
3256
  // src/Tooltip/TooltipTrigger.tsx
3209
3257
  import { TooltipTrigger } from "react-aria-components";
3210
- import { jsx as jsx84 } from "react/jsx-runtime";
3258
+ import { jsx as jsx85 } from "react/jsx-runtime";
3211
3259
  var _TooltipTrigger = ({
3212
3260
  delay = 1e3,
3213
3261
  children,
@@ -3221,19 +3269,19 @@ var _TooltipTrigger = ({
3221
3269
  isOpen: open,
3222
3270
  delay
3223
3271
  };
3224
- return /* @__PURE__ */ jsx84(TooltipTrigger, { ...props, children });
3272
+ return /* @__PURE__ */ jsx85(TooltipTrigger, { ...props, children });
3225
3273
  };
3226
3274
 
3227
3275
  // src/Tooltip/Tooltip.tsx
3228
- import { jsx as jsx85, jsxs as jsxs31 } from "react/jsx-runtime";
3276
+ import { jsx as jsx86, jsxs as jsxs32 } from "react/jsx-runtime";
3229
3277
  var _Tooltip = ({ children, variant, size, open, ...rest }) => {
3230
3278
  const props = {
3231
3279
  ...rest,
3232
3280
  isOpen: open
3233
3281
  };
3234
- const classNames2 = useClassNames46({ component: "Tooltip", variant, size });
3235
- return /* @__PURE__ */ jsxs31(Tooltip, { ...props, className: cn48("group/tooltip", classNames2.container), children: [
3236
- /* @__PURE__ */ jsx85(OverlayArrow, { className: classNames2.arrow, children: /* @__PURE__ */ jsx85("svg", { width: 8, height: 8, viewBox: "0 0 8 8", children: /* @__PURE__ */ jsx85("path", { d: "M0 0 L4 4 L8 0" }) }) }),
3282
+ const classNames2 = useClassNames47({ component: "Tooltip", variant, size });
3283
+ return /* @__PURE__ */ jsxs32(Tooltip, { ...props, className: cn49("group/tooltip", classNames2.container), children: [
3284
+ /* @__PURE__ */ jsx86(OverlayArrow, { className: classNames2.arrow, children: /* @__PURE__ */ jsx86("svg", { width: 8, height: 8, viewBox: "0 0 8 8", children: /* @__PURE__ */ jsx86("path", { d: "M0 0 L4 4 L8 0" }) }) }),
3237
3285
  children
3238
3286
  ] });
3239
3287
  };
@@ -3241,12 +3289,12 @@ _Tooltip.Trigger = _TooltipTrigger;
3241
3289
 
3242
3290
  // src/TagGroup/Tag.tsx
3243
3291
  import { Button as Button6, Tag } from "react-aria-components";
3244
- import { cn as cn49, useClassNames as useClassNames48 } from "@marigold/system";
3292
+ import { cn as cn50, useClassNames as useClassNames49 } from "@marigold/system";
3245
3293
 
3246
3294
  // src/TagGroup/TagGroup.tsx
3247
3295
  import { TagGroup, TagList } from "react-aria-components";
3248
- import { useClassNames as useClassNames47 } from "@marigold/system";
3249
- import { jsx as jsx86 } from "react/jsx-runtime";
3296
+ import { useClassNames as useClassNames48 } from "@marigold/system";
3297
+ import { jsx as jsx87 } from "react/jsx-runtime";
3250
3298
  var _TagGroup = ({
3251
3299
  width,
3252
3300
  items,
@@ -3256,8 +3304,8 @@ var _TagGroup = ({
3256
3304
  size,
3257
3305
  ...rest
3258
3306
  }) => {
3259
- const classNames2 = useClassNames47({ component: "Tag", variant, size });
3260
- return /* @__PURE__ */ jsx86(FieldBase, { as: TagGroup, ...rest, children: /* @__PURE__ */ jsx86(
3307
+ const classNames2 = useClassNames48({ component: "Tag", variant, size });
3308
+ return /* @__PURE__ */ jsx87(FieldBase, { as: TagGroup, ...rest, children: /* @__PURE__ */ jsx87(
3261
3309
  TagList,
3262
3310
  {
3263
3311
  items,
@@ -3269,19 +3317,19 @@ var _TagGroup = ({
3269
3317
  };
3270
3318
 
3271
3319
  // src/TagGroup/Tag.tsx
3272
- import { Fragment as Fragment7, jsx as jsx87, jsxs as jsxs32 } from "react/jsx-runtime";
3320
+ import { Fragment as Fragment7, jsx as jsx88, jsxs as jsxs33 } from "react/jsx-runtime";
3273
3321
  var CloseButton2 = ({ className }) => {
3274
- return /* @__PURE__ */ jsx87(Button6, { slot: "remove", className, children: /* @__PURE__ */ jsx87("svg", { viewBox: "0 0 20 20", fill: "currentColor", width: 20, height: 20, children: /* @__PURE__ */ jsx87("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" }) }) });
3322
+ return /* @__PURE__ */ jsx88(Button6, { slot: "remove", className, children: /* @__PURE__ */ jsx88("svg", { viewBox: "0 0 20 20", fill: "currentColor", width: 20, height: 20, children: /* @__PURE__ */ jsx88("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" }) }) });
3275
3323
  };
3276
3324
  var _Tag = ({ variant, size, children, ...props }) => {
3277
3325
  let textValue = typeof children === "string" ? children : void 0;
3278
- const classNames2 = useClassNames48({ component: "Tag", variant, size });
3279
- return /* @__PURE__ */ jsx87(Tag, { textValue, ...props, className: classNames2.tag, children: ({ allowsRemoving }) => /* @__PURE__ */ jsxs32(Fragment7, { children: [
3326
+ const classNames2 = useClassNames49({ component: "Tag", variant, size });
3327
+ return /* @__PURE__ */ jsx88(Tag, { textValue, ...props, className: classNames2.tag, children: ({ allowsRemoving }) => /* @__PURE__ */ jsxs33(Fragment7, { children: [
3280
3328
  children,
3281
- allowsRemoving && /* @__PURE__ */ jsx87(
3329
+ allowsRemoving && /* @__PURE__ */ jsx88(
3282
3330
  CloseButton2,
3283
3331
  {
3284
- className: cn49("flex items-center", classNames2.closeButton)
3332
+ className: cn50("flex items-center", classNames2.closeButton)
3285
3333
  }
3286
3334
  )
3287
3335
  ] }) });
@@ -3294,8 +3342,8 @@ import { VisuallyHidden } from "@react-aria/visually-hidden";
3294
3342
  // src/XLoader/XLoader.tsx
3295
3343
  import { forwardRef as forwardRef24 } from "react";
3296
3344
  import { SVG as SVG5 } from "@marigold/system";
3297
- import { jsx as jsx88, jsxs as jsxs33 } from "react/jsx-runtime";
3298
- var XLoader = forwardRef24((props, ref) => /* @__PURE__ */ jsxs33(
3345
+ import { jsx as jsx89, jsxs as jsxs34 } from "react/jsx-runtime";
3346
+ var XLoader = forwardRef24((props, ref) => /* @__PURE__ */ jsxs34(
3299
3347
  SVG5,
3300
3348
  {
3301
3349
  id: "XLoader",
@@ -3305,13 +3353,13 @@ var XLoader = forwardRef24((props, ref) => /* @__PURE__ */ jsxs33(
3305
3353
  ...props,
3306
3354
  ...ref,
3307
3355
  children: [
3308
- /* @__PURE__ */ jsx88("path", { id: "XMLID_1_", d: "M35.3 27h26.5l54 74.1H88.7z" }),
3309
- /* @__PURE__ */ jsx88(
3356
+ /* @__PURE__ */ jsx89("path", { id: "XMLID_1_", d: "M35.3 27h26.5l54 74.1H88.7z" }),
3357
+ /* @__PURE__ */ jsx89(
3310
3358
  "path",
3311
3359
  {
3312
3360
  id: "XMLID_5_",
3313
3361
  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",
3314
- children: /* @__PURE__ */ jsx88(
3362
+ children: /* @__PURE__ */ jsx89(
3315
3363
  "animate",
3316
3364
  {
3317
3365
  attributeName: "opacity",
@@ -3324,12 +3372,12 @@ var XLoader = forwardRef24((props, ref) => /* @__PURE__ */ jsxs33(
3324
3372
  )
3325
3373
  }
3326
3374
  ),
3327
- /* @__PURE__ */ jsx88(
3375
+ /* @__PURE__ */ jsx89(
3328
3376
  "path",
3329
3377
  {
3330
3378
  id: "XMLID_18_",
3331
3379
  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",
3332
- children: /* @__PURE__ */ jsx88(
3380
+ children: /* @__PURE__ */ jsx89(
3333
3381
  "animate",
3334
3382
  {
3335
3383
  attributeName: "opacity",
@@ -3342,12 +3390,12 @@ var XLoader = forwardRef24((props, ref) => /* @__PURE__ */ jsxs33(
3342
3390
  )
3343
3391
  }
3344
3392
  ),
3345
- /* @__PURE__ */ jsx88(
3393
+ /* @__PURE__ */ jsx89(
3346
3394
  "path",
3347
3395
  {
3348
3396
  id: "XMLID_19_",
3349
3397
  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",
3350
- children: /* @__PURE__ */ jsx88(
3398
+ children: /* @__PURE__ */ jsx89(
3351
3399
  "animate",
3352
3400
  {
3353
3401
  attributeName: "opacity",
@@ -3360,12 +3408,12 @@ var XLoader = forwardRef24((props, ref) => /* @__PURE__ */ jsxs33(
3360
3408
  )
3361
3409
  }
3362
3410
  ),
3363
- /* @__PURE__ */ jsx88(
3411
+ /* @__PURE__ */ jsx89(
3364
3412
  "path",
3365
3413
  {
3366
3414
  id: "XMLID_20_",
3367
3415
  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",
3368
- children: /* @__PURE__ */ jsx88(
3416
+ children: /* @__PURE__ */ jsx89(
3369
3417
  "animate",
3370
3418
  {
3371
3419
  attributeName: "opacity",
@@ -3378,12 +3426,12 @@ var XLoader = forwardRef24((props, ref) => /* @__PURE__ */ jsxs33(
3378
3426
  )
3379
3427
  }
3380
3428
  ),
3381
- /* @__PURE__ */ jsx88(
3429
+ /* @__PURE__ */ jsx89(
3382
3430
  "path",
3383
3431
  {
3384
3432
  id: "XMLID_21_",
3385
3433
  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",
3386
- children: /* @__PURE__ */ jsx88(
3434
+ children: /* @__PURE__ */ jsx89(
3387
3435
  "animate",
3388
3436
  {
3389
3437
  attributeName: "opacity",
@@ -3396,12 +3444,12 @@ var XLoader = forwardRef24((props, ref) => /* @__PURE__ */ jsxs33(
3396
3444
  )
3397
3445
  }
3398
3446
  ),
3399
- /* @__PURE__ */ jsx88(
3447
+ /* @__PURE__ */ jsx89(
3400
3448
  "path",
3401
3449
  {
3402
3450
  id: "XMLID_22_",
3403
3451
  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",
3404
- children: /* @__PURE__ */ jsx88(
3452
+ children: /* @__PURE__ */ jsx89(
3405
3453
  "animate",
3406
3454
  {
3407
3455
  attributeName: "opacity",
@@ -3414,12 +3462,12 @@ var XLoader = forwardRef24((props, ref) => /* @__PURE__ */ jsxs33(
3414
3462
  )
3415
3463
  }
3416
3464
  ),
3417
- /* @__PURE__ */ jsx88(
3465
+ /* @__PURE__ */ jsx89(
3418
3466
  "path",
3419
3467
  {
3420
3468
  id: "XMLID_23_",
3421
3469
  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",
3422
- children: /* @__PURE__ */ jsx88(
3470
+ children: /* @__PURE__ */ jsx89(
3423
3471
  "animate",
3424
3472
  {
3425
3473
  attributeName: "opacity",
@@ -3432,12 +3480,12 @@ var XLoader = forwardRef24((props, ref) => /* @__PURE__ */ jsxs33(
3432
3480
  )
3433
3481
  }
3434
3482
  ),
3435
- /* @__PURE__ */ jsx88(
3483
+ /* @__PURE__ */ jsx89(
3436
3484
  "path",
3437
3485
  {
3438
3486
  id: "XMLID_24_",
3439
3487
  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",
3440
- children: /* @__PURE__ */ jsx88(
3488
+ children: /* @__PURE__ */ jsx89(
3441
3489
  "animate",
3442
3490
  {
3443
3491
  attributeName: "opacity",
@@ -3450,12 +3498,12 @@ var XLoader = forwardRef24((props, ref) => /* @__PURE__ */ jsxs33(
3450
3498
  )
3451
3499
  }
3452
3500
  ),
3453
- /* @__PURE__ */ jsx88(
3501
+ /* @__PURE__ */ jsx89(
3454
3502
  "path",
3455
3503
  {
3456
3504
  id: "XMLID_25_",
3457
3505
  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",
3458
- children: /* @__PURE__ */ jsx88(
3506
+ children: /* @__PURE__ */ jsx89(
3459
3507
  "animate",
3460
3508
  {
3461
3509
  attributeName: "opacity",
@@ -3468,12 +3516,12 @@ var XLoader = forwardRef24((props, ref) => /* @__PURE__ */ jsxs33(
3468
3516
  )
3469
3517
  }
3470
3518
  ),
3471
- /* @__PURE__ */ jsx88(
3519
+ /* @__PURE__ */ jsx89(
3472
3520
  "path",
3473
3521
  {
3474
3522
  id: "XMLID_26_",
3475
3523
  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",
3476
- children: /* @__PURE__ */ jsx88(
3524
+ children: /* @__PURE__ */ jsx89(
3477
3525
  "animate",
3478
3526
  {
3479
3527
  attributeName: "opacity",
@@ -3486,12 +3534,12 @@ var XLoader = forwardRef24((props, ref) => /* @__PURE__ */ jsxs33(
3486
3534
  )
3487
3535
  }
3488
3536
  ),
3489
- /* @__PURE__ */ jsx88(
3537
+ /* @__PURE__ */ jsx89(
3490
3538
  "path",
3491
3539
  {
3492
3540
  id: "XMLID_27_",
3493
3541
  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",
3494
- children: /* @__PURE__ */ jsx88(
3542
+ children: /* @__PURE__ */ jsx89(
3495
3543
  "animate",
3496
3544
  {
3497
3545
  attributeName: "opacity",
@@ -3510,24 +3558,24 @@ var XLoader = forwardRef24((props, ref) => /* @__PURE__ */ jsxs33(
3510
3558
 
3511
3559
  // src/Tabs/Tabs.tsx
3512
3560
  import { Tabs } from "react-aria-components";
3513
- import { useClassNames as useClassNames49 } from "@marigold/system";
3561
+ import { useClassNames as useClassNames50 } from "@marigold/system";
3514
3562
 
3515
3563
  // src/Tabs/Context.ts
3516
- import { createContext as createContext7, useContext as useContext12 } from "react";
3517
- var TabContext = createContext7({});
3518
- var useTabContext = () => useContext12(TabContext);
3564
+ import { createContext as createContext8, useContext as useContext14 } from "react";
3565
+ var TabContext = createContext8({});
3566
+ var useTabContext = () => useContext14(TabContext);
3519
3567
 
3520
3568
  // src/Tabs/Tab.tsx
3521
3569
  import { Tab } from "react-aria-components";
3522
- import { cn as cn50 } from "@marigold/system";
3523
- import { jsx as jsx89 } from "react/jsx-runtime";
3570
+ import { cn as cn51 } from "@marigold/system";
3571
+ import { jsx as jsx90 } from "react/jsx-runtime";
3524
3572
  var _Tab = (props) => {
3525
3573
  const { classNames: classNames2 } = useTabContext();
3526
- return /* @__PURE__ */ jsx89(
3574
+ return /* @__PURE__ */ jsx90(
3527
3575
  Tab,
3528
3576
  {
3529
3577
  ...props,
3530
- className: cn50(
3578
+ className: cn51(
3531
3579
  "flex cursor-pointer justify-center aria-disabled:cursor-not-allowed",
3532
3580
  classNames2.tab
3533
3581
  ),
@@ -3538,15 +3586,15 @@ var _Tab = (props) => {
3538
3586
 
3539
3587
  // src/Tabs/TabList.tsx
3540
3588
  import { TabList } from "react-aria-components";
3541
- import { cn as cn51, gapSpace as gapSpace8 } from "@marigold/system";
3542
- import { jsx as jsx90 } from "react/jsx-runtime";
3589
+ import { cn as cn52, gapSpace as gapSpace8 } from "@marigold/system";
3590
+ import { jsx as jsx91 } from "react/jsx-runtime";
3543
3591
  var _TabList = ({ space = 2, ...props }) => {
3544
3592
  const { classNames: classNames2 } = useTabContext();
3545
- return /* @__PURE__ */ jsx90(
3593
+ return /* @__PURE__ */ jsx91(
3546
3594
  TabList,
3547
3595
  {
3548
3596
  ...props,
3549
- className: cn51("flex", gapSpace8[space], classNames2.tabsList),
3597
+ className: cn52("flex", gapSpace8[space], classNames2.tabsList),
3550
3598
  children: props.children
3551
3599
  }
3552
3600
  );
@@ -3554,29 +3602,32 @@ var _TabList = ({ space = 2, ...props }) => {
3554
3602
 
3555
3603
  // src/Tabs/TabPanel.tsx
3556
3604
  import { TabPanel } from "react-aria-components";
3557
- import { jsx as jsx91 } from "react/jsx-runtime";
3605
+ import { jsx as jsx92 } from "react/jsx-runtime";
3558
3606
  var _TabPanel = (props) => {
3559
3607
  const { classNames: classNames2 } = useTabContext();
3560
- return /* @__PURE__ */ jsx91(TabPanel, { ...props, className: classNames2.tabpanel, children: props.children });
3608
+ return /* @__PURE__ */ jsx92(TabPanel, { ...props, className: classNames2.tabpanel, children: props.children });
3561
3609
  };
3562
3610
 
3563
3611
  // src/Tabs/Tabs.tsx
3564
- import { jsx as jsx92 } from "react/jsx-runtime";
3612
+ import { jsx as jsx93 } from "react/jsx-runtime";
3565
3613
  var _Tabs = ({ disabled, variant, size = "medium", ...rest }) => {
3566
3614
  const props = {
3567
3615
  isDisabled: disabled,
3568
3616
  ...rest
3569
3617
  };
3570
- const classNames2 = useClassNames49({
3618
+ const classNames2 = useClassNames50({
3571
3619
  component: "Tabs",
3572
3620
  size,
3573
3621
  variant
3574
3622
  });
3575
- return /* @__PURE__ */ jsx92(TabContext.Provider, { value: { classNames: classNames2 }, children: /* @__PURE__ */ jsx92(Tabs, { ...props, className: classNames2.container, children: props.children }) });
3623
+ return /* @__PURE__ */ jsx93(TabContext.Provider, { value: { classNames: classNames2 }, children: /* @__PURE__ */ jsx93(Tabs, { ...props, className: classNames2.container, children: props.children }) });
3576
3624
  };
3577
3625
  _Tabs.List = _TabList;
3578
3626
  _Tabs.TabPanel = _TabPanel;
3579
3627
  _Tabs.Item = _Tab;
3628
+
3629
+ // src/RouterProvider/RouterProvider.tsx
3630
+ import { RouterProvider } from "react-aria-components";
3580
3631
  export {
3581
3632
  Accordion,
3582
3633
  AccordionItem,
@@ -3625,6 +3676,7 @@ export {
3625
3676
  _Popover as Popover,
3626
3677
  _Radio as Radio,
3627
3678
  _RadioGroup as RadioGroup,
3679
+ RouterProvider,
3628
3680
  Scrollable,
3629
3681
  _SearchField as SearchField,
3630
3682
  _Select as Select,