@marigold/components 7.0.0 → 7.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -49,14 +49,15 @@ __export(src_exports, {
49
49
  Columns: () => Columns,
50
50
  ComboBox: () => _ComboBox,
51
51
  Container: () => Container,
52
- DateField: () => DateField,
53
- DatePicker: () => DatePicker,
52
+ DateField: () => _DateField,
53
+ DatePicker: () => _DatePicker,
54
54
  Dialog: () => _Dialog,
55
55
  Divider: () => _Divider,
56
- FieldBase: () => FieldBase2,
56
+ FieldBase: () => FieldBase,
57
57
  FieldGroup: () => FieldGroup,
58
58
  FieldGroupContext: () => FieldGroupContext,
59
59
  Footer: () => Footer,
60
+ Form: () => import_react_aria_components20.Form,
60
61
  Header: () => _Header,
61
62
  Headline: () => _Headline,
62
63
  Image: () => Image,
@@ -71,8 +72,7 @@ __export(src_exports, {
71
72
  Message: () => Message,
72
73
  Modal: () => _Modal,
73
74
  NumberField: () => _NumberField,
74
- Overlay: () => Overlay,
75
- Popover: () => Popover2,
75
+ Popover: () => _Popover,
76
76
  Radio: () => _Radio,
77
77
  RadioGroup: () => _RadioGroup,
78
78
  SearchField: () => _SearchField,
@@ -87,11 +87,9 @@ __export(src_exports, {
87
87
  Text: () => Text2,
88
88
  TextArea: () => _TextArea,
89
89
  TextField: () => _TextField,
90
- ThemeProvider: () => import_system57.ThemeProvider,
90
+ ThemeProvider: () => import_system52.ThemeProvider,
91
91
  Tiles: () => Tiles,
92
92
  Tooltip: () => _Tooltip,
93
- Tray: () => Tray,
94
- TrayWrapper: () => TrayWrapper,
95
93
  Underlay: () => Underlay,
96
94
  VisuallyHidden: () => import_visually_hidden.VisuallyHidden,
97
95
  XLoader: () => XLoader,
@@ -99,7 +97,7 @@ __export(src_exports, {
99
97
  useAsyncList: () => import_data.useAsyncList,
100
98
  useFieldGroupContext: () => useFieldGroupContext,
101
99
  useListData: () => import_data.useListData,
102
- useTheme: () => import_system57.useTheme
100
+ useTheme: () => import_system52.useTheme
103
101
  });
104
102
  module.exports = __toCommonJS(src_exports);
105
103
 
@@ -115,7 +113,7 @@ var import_tree = require("@react-stately/tree");
115
113
  // src/Accordion/AccordionItem.tsx
116
114
  var import_react3 = require("react");
117
115
  var import_focus = require("@react-aria/focus");
118
- var import_utils4 = require("@react-aria/utils");
116
+ var import_utils2 = require("@react-aria/utils");
119
117
  var import_system3 = require("@marigold/system");
120
118
 
121
119
  // src/Chevron/ChevronUp.tsx
@@ -138,13 +136,11 @@ var ChevronDown = (0, import_react2.forwardRef)(
138
136
  var import_button = require("@react-aria/button");
139
137
  var import_selection = require("@react-aria/selection");
140
138
  var import_utils = require("@react-aria/utils");
141
- var import_utils2 = require("@react-aria/utils");
142
- var import_utils3 = require("@react-aria/utils");
143
139
  function isNonContiguousSelectionModifier(e) {
144
- return (0, import_utils2.isAppleDevice)() ? e.altKey : e.ctrlKey;
140
+ return (0, import_utils.isAppleDevice)() ? e.altKey : e.ctrlKey;
145
141
  }
146
142
  function isCtrlKeyPressed(e) {
147
- if ((0, import_utils3.isMac)()) {
143
+ if ((0, import_utils.isMac)()) {
148
144
  return e.metaKey;
149
145
  }
150
146
  return e.ctrlKey;
@@ -161,9 +157,7 @@ function useAccordionItem(props, state, ref) {
161
157
  key,
162
158
  ref
163
159
  });
164
- const isDefaultExpanded = state.expandedKeys.has(
165
- item.key.toString().replace(".$", "")
166
- );
160
+ const isDefaultExpanded = state.expandedKeys.has(item.key);
167
161
  let onSelect = (e) => {
168
162
  if (e.pointerType === "keyboard" && isNonContiguousSelectionModifier(e)) {
169
163
  if (isDefaultExpanded) {
@@ -241,16 +235,17 @@ var AccordionItem = ({
241
235
  ...props
242
236
  }) => {
243
237
  const ref = (0, import_react3.useRef)(null);
244
- const defaultExpanded = state.expandedKeys.has(
245
- item.key.toString().replace(".$", "")
246
- );
238
+ const defaultExpanded = Array.from(state.expandedKeys).some((key) => {
239
+ return key.toString() === item.key.toString().replace(".$", "");
240
+ });
247
241
  const expanded = state.selectionManager.isSelected(item.key);
248
242
  (0, import_react3.useEffect)(() => {
249
243
  if (defaultExpanded) {
250
244
  if (state.selectionManager.selectionMode === "multiple") {
251
- state.expandedKeys.forEach((key) => {
252
- state.selectionManager.select(key);
253
- });
245
+ state.selectionManager.setSelectedKeys([
246
+ ...state.selectionManager.selectedKeys,
247
+ item.key
248
+ ]);
254
249
  } else {
255
250
  state.expandedKeys.clear();
256
251
  state.selectionManager.toggleSelection(item.key);
@@ -278,7 +273,7 @@ var AccordionItem = ({
278
273
  "inline-flex items-center justify-center gap-[0.5ch]",
279
274
  classNames2.button
280
275
  ),
281
- ...(0, import_utils4.mergeProps)(buttonProps, stateProps, props),
276
+ ...(0, import_utils2.mergeProps)(buttonProps, stateProps, props),
282
277
  ref,
283
278
  "aria-label": item.textValue,
284
279
  children: [
@@ -287,14 +282,14 @@ var AccordionItem = ({
287
282
  ]
288
283
  }
289
284
  ) }),
290
- expanded || defaultExpanded ? /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
285
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
291
286
  "div",
292
287
  {
293
- ...(0, import_utils4.mergeProps)(regionProps, focusProps, stateProps),
294
- className: classNames2.item,
288
+ ...(0, import_utils2.mergeProps)(regionProps, focusProps, stateProps),
289
+ className: expanded || defaultExpanded ? classNames2.item : (0, import_system3.cn)(classNames2.item, "hidden"),
295
290
  children: item.props.children
296
291
  }
297
- ) : null
292
+ )
298
293
  ] });
299
294
  };
300
295
 
@@ -304,26 +299,25 @@ var Accordion = ({ children, ...props }) => {
304
299
  const ownProps = {
305
300
  ...props,
306
301
  // we have to do this because JSX childs are not supported
307
- children: import_react4.Children.toArray(children).map((child) => {
308
- if (!(0, import_react4.isValidElement)(child)) {
309
- return child;
310
- }
311
- return (0, import_react4.cloneElement)(child, {
312
- hasChildItems: false,
313
- ...child.props
314
- });
315
- })
302
+ children: []
316
303
  };
304
+ import_react4.Children.forEach(children, (child) => {
305
+ var _a;
306
+ if ((0, import_react4.isValidElement)(child) && typeof ((_a = child.props) == null ? void 0 : _a.children) !== "string") {
307
+ const clone = (0, import_react4.cloneElement)(child, {
308
+ hasChildItems: false
309
+ });
310
+ ownProps.children.push(clone);
311
+ return;
312
+ }
313
+ ownProps.children.push(child);
314
+ });
317
315
  const ref = (0, import_react4.useRef)(null);
318
316
  const state = (0, import_tree.useTreeState)({
319
317
  selectionMode: "single",
320
318
  ...ownProps
321
319
  });
322
- const { accordionProps } = (0, import_accordion.useAccordion)(
323
- { ...ownProps, children },
324
- state,
325
- ref
326
- );
320
+ const { accordionProps } = (0, import_accordion.useAccordion)({ ...ownProps }, state, ref);
327
321
  delete accordionProps.onKeyDownCapture;
328
322
  return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { ...accordionProps, ref, children: [...state.collection].map((item) => /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
329
323
  AccordionItem,
@@ -406,11 +400,11 @@ var import_react14 = require("react");
406
400
  var import_react15 = __toESM(require("react"));
407
401
  var import_react_aria_components11 = require("react-aria-components");
408
402
 
409
- // src/FieldBase/_FieldBase.tsx
403
+ // src/FieldBase/FieldBase.tsx
410
404
  var import_react7 = require("react");
411
405
  var import_system8 = require("@marigold/system");
412
406
 
413
- // src/HelpText/_HelpText.tsx
407
+ // src/HelpText/HelpText.tsx
414
408
  var import_react_aria_components = require("react-aria-components");
415
409
  var import_system6 = require("@marigold/system");
416
410
  var import_jsx_runtime7 = require("react/jsx-runtime");
@@ -497,7 +491,7 @@ var _Label = ({ size, variant, children, ...props }) => {
497
491
  );
498
492
  };
499
493
 
500
- // src/FieldBase/_FieldBase.tsx
494
+ // src/FieldBase/FieldBase.tsx
501
495
  var import_jsx_runtime10 = require("react/jsx-runtime");
502
496
  var fixedForwardRef = import_react7.forwardRef;
503
497
  var _FieldBase = (props, ref) => {
@@ -1183,7 +1177,7 @@ var Columns = ({
1183
1177
  "grow-[--columnSize] basis-[calc((var(--collapseAt)_-_100%)_*_999)]"
1184
1178
  ),
1185
1179
  style: (0, import_system23.createVar)({ collapseAt, columnSize: columns[idx] }),
1186
- children: (0, import_react18.isValidElement)(child) ? (0, import_react18.cloneElement)(child) : child
1180
+ children: child
1187
1181
  }
1188
1182
  ))
1189
1183
  }
@@ -1396,126 +1390,33 @@ var _Divider = ({ variant, ...props }) => {
1396
1390
  return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_react_aria_components19.Separator, { className: classNames2, ...props });
1397
1391
  };
1398
1392
 
1399
- // src/FieldBase/FieldBase.tsx
1400
- var import_system30 = require("@marigold/system");
1401
-
1402
- // src/HelpText/HelpText.tsx
1393
+ // src/Footer/Footer.tsx
1403
1394
  var import_system29 = require("@marigold/system");
1404
1395
  var import_jsx_runtime35 = require("react/jsx-runtime");
1405
- var HelpText2 = ({
1406
- variant,
1407
- size,
1408
- disabled,
1409
- description,
1410
- descriptionProps,
1411
- error,
1412
- errorMessage,
1413
- errorMessageProps,
1414
- ...props
1415
- }) => {
1416
- const hasErrorMessage = errorMessage && error;
1417
- const classNames2 = (0, import_system29.useClassNames)({
1418
- component: "HelpText",
1419
- variant,
1420
- size
1421
- });
1422
- return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
1423
- "div",
1424
- {
1425
- ...props,
1426
- ...hasErrorMessage ? errorMessageProps : descriptionProps,
1427
- className: (0, import_system29.cn)("flex items-center gap-1", classNames2.container),
1428
- children: hasErrorMessage ? /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(import_jsx_runtime35.Fragment, { children: [
1429
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
1430
- import_system29.SVG,
1431
- {
1432
- className: (0, import_system29.cn)("h-4 w-4", classNames2.icon),
1433
- viewBox: "0 0 24 24",
1434
- role: "presentation",
1435
- children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("path", { d: "M2.25 20.3097H21.75L12 3.46875L2.25 20.3097ZM12.8864 17.2606H11.1136V15.4879H12.8864V17.2606ZM12.8864 13.7151H11.1136V10.1697H12.8864V13.7151Z" })
1436
- }
1437
- ),
1438
- errorMessage
1439
- ] }) : /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_jsx_runtime35.Fragment, { children: description })
1440
- }
1441
- );
1442
- };
1443
-
1444
- // src/FieldBase/FieldBase.tsx
1445
- var import_jsx_runtime36 = require("react/jsx-runtime");
1446
- var FieldBase2 = ({
1447
- children,
1448
- variant,
1449
- size,
1450
- width = "full",
1451
- disabled,
1452
- label,
1453
- labelProps,
1454
- description,
1455
- descriptionProps,
1456
- error,
1457
- errorMessage,
1458
- errorMessageProps,
1459
- stateProps,
1460
- ...props
1461
- }) => {
1462
- const hasHelpText = !!description || errorMessage && error;
1463
- const classNames2 = (0, import_system30.useClassNames)({
1464
- component: "Field",
1465
- variant,
1466
- size
1467
- });
1468
- return /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(
1469
- "div",
1470
- {
1471
- ...props,
1472
- ...stateProps,
1473
- className: (0, import_system30.cn)("group/field", import_system30.width[width], classNames2),
1474
- children: [
1475
- label ? /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(_Label, { variant, size, ...labelProps, children: label }) : /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("span", { "aria-hidden": "true" }),
1476
- children,
1477
- hasHelpText && /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
1478
- HelpText2,
1479
- {
1480
- variant,
1481
- size,
1482
- disabled,
1483
- description,
1484
- descriptionProps,
1485
- error,
1486
- errorMessage,
1487
- errorMessageProps
1488
- }
1489
- )
1490
- ]
1491
- }
1492
- );
1493
- };
1494
-
1495
- // src/Footer/Footer.tsx
1496
- var import_system31 = require("@marigold/system");
1497
- var import_jsx_runtime37 = require("react/jsx-runtime");
1498
1396
  var Footer = ({ children, variant, size, ...props }) => {
1499
- const classNames2 = (0, import_system31.useClassNames)({ component: "Footer", variant, size });
1500
- return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("footer", { ...props, className: classNames2, children });
1397
+ const classNames2 = (0, import_system29.useClassNames)({ component: "Footer", variant, size });
1398
+ return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("footer", { ...props, className: classNames2, children });
1501
1399
  };
1502
1400
 
1503
- // src/Header/Header.tsx
1401
+ // src/Form/Form.tsx
1504
1402
  var import_react_aria_components20 = require("react-aria-components");
1505
- var import_system32 = require("@marigold/system");
1506
- var import_jsx_runtime38 = require("react/jsx-runtime");
1403
+
1404
+ // src/Header/Header.tsx
1405
+ var import_react_aria_components21 = require("react-aria-components");
1406
+ var import_system30 = require("@marigold/system");
1407
+ var import_jsx_runtime36 = require("react/jsx-runtime");
1507
1408
  var _Header = ({ variant, size, ...props }) => {
1508
- const classNames2 = (0, import_system32.useClassNames)({
1409
+ const classNames2 = (0, import_system30.useClassNames)({
1509
1410
  component: "Header",
1510
1411
  variant,
1511
1412
  size
1512
1413
  });
1513
- return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_react_aria_components20.Header, { className: classNames2, ...props, children: props.children });
1414
+ return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_react_aria_components21.Header, { className: classNames2, ...props, children: props.children });
1514
1415
  };
1515
1416
 
1516
1417
  // src/Image/Image.tsx
1517
- var import_system33 = require("@marigold/system");
1518
- var import_jsx_runtime39 = require("react/jsx-runtime");
1418
+ var import_system31 = require("@marigold/system");
1419
+ var import_jsx_runtime37 = require("react/jsx-runtime");
1519
1420
  var Image = ({
1520
1421
  variant,
1521
1422
  size,
@@ -1523,25 +1424,25 @@ var Image = ({
1523
1424
  position = "none",
1524
1425
  ...props
1525
1426
  }) => {
1526
- const classNames2 = (0, import_system33.useClassNames)({ component: "Image", variant, size });
1527
- return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
1427
+ const classNames2 = (0, import_system31.useClassNames)({ component: "Image", variant, size });
1428
+ return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
1528
1429
  "img",
1529
1430
  {
1530
1431
  ...props,
1531
1432
  alt: props.alt,
1532
- className: (0, import_system33.cn)(
1433
+ className: (0, import_system31.cn)(
1533
1434
  fit !== "none" && "h-full w-full",
1534
1435
  classNames2,
1535
- import_system33.objectFit[fit],
1536
- import_system33.objectPosition[position]
1436
+ import_system31.objectFit[fit],
1437
+ import_system31.objectPosition[position]
1537
1438
  )
1538
1439
  }
1539
1440
  );
1540
1441
  };
1541
1442
 
1542
1443
  // src/Inline/Inline.tsx
1543
- var import_system34 = require("@marigold/system");
1544
- var import_jsx_runtime40 = require("react/jsx-runtime");
1444
+ var import_system32 = require("@marigold/system");
1445
+ var import_jsx_runtime38 = require("react/jsx-runtime");
1545
1446
  var Inline = ({
1546
1447
  space = 0,
1547
1448
  orientation,
@@ -1551,15 +1452,15 @@ var Inline = ({
1551
1452
  ...props
1552
1453
  }) => {
1553
1454
  var _a2, _b2, _c, _d;
1554
- return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
1455
+ return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
1555
1456
  "div",
1556
1457
  {
1557
1458
  ...props,
1558
- className: (0, import_system34.cn)(
1459
+ className: (0, import_system32.cn)(
1559
1460
  "flex flex-wrap",
1560
- import_system34.gapSpace[space],
1561
- alignX && ((_b2 = (_a2 = import_system34.alignment) == null ? void 0 : _a2.horizontal) == null ? void 0 : _b2.alignmentX[alignX]),
1562
- alignY && ((_d = (_c = import_system34.alignment) == null ? void 0 : _c.horizontal) == null ? void 0 : _d.alignmentY[alignY])
1461
+ import_system32.gapSpace[space],
1462
+ alignX && ((_b2 = (_a2 = import_system32.alignment) == null ? void 0 : _a2.horizontal) == null ? void 0 : _b2.alignmentX[alignX]),
1463
+ alignY && ((_d = (_c = import_system32.alignment) == null ? void 0 : _c.horizontal) == null ? void 0 : _d.alignmentY[alignY])
1563
1464
  ),
1564
1465
  children
1565
1466
  }
@@ -1567,230 +1468,146 @@ var Inline = ({
1567
1468
  };
1568
1469
 
1569
1470
  // src/DateField/DateField.tsx
1570
- var import_date = require("@internationalized/date");
1571
- var import_react23 = require("react");
1572
- var import_datepicker2 = require("@react-aria/datepicker");
1573
- var import_focus3 = require("@react-aria/focus");
1574
- var import_i18n = require("@react-aria/i18n");
1575
- var import_interactions = require("@react-aria/interactions");
1576
- var import_utils6 = require("@react-aria/utils");
1577
- var import_datepicker3 = require("@react-stately/datepicker");
1578
- var import_system36 = require("@marigold/system");
1471
+ var import_react22 = require("react");
1472
+ var import_react_aria_components24 = require("react-aria-components");
1473
+
1474
+ // src/DateField/DateInput.tsx
1475
+ var import_react_aria_components23 = require("react-aria-components");
1476
+ var import_system34 = require("@marigold/system");
1579
1477
 
1580
1478
  // src/DateField/DateSegment.tsx
1581
- var import_react22 = require("react");
1582
- var import_datepicker = require("@react-aria/datepicker");
1583
- var import_focus2 = require("@react-aria/focus");
1584
- var import_utils5 = require("@react-aria/utils");
1585
- var import_system35 = require("@marigold/system");
1586
- var import_jsx_runtime41 = require("react/jsx-runtime");
1587
- var DateSegment = ({
1588
- className,
1589
- segment,
1590
- state,
1591
- isPrevPlaceholder
1592
- }) => {
1593
- const ref = (0, import_react22.useRef)(null);
1594
- const { segmentProps } = (0, import_datepicker.useDateSegment)(segment, state, ref);
1595
- const { focusProps, isFocused } = (0, import_focus2.useFocusRing)({
1596
- within: true,
1597
- isTextInput: true
1598
- });
1599
- const stateProps = (0, import_system35.useStateProps)({
1600
- disabled: state.isDisabled,
1601
- focusVisible: isFocused
1602
- });
1603
- const { isPlaceholder, placeholder, text, type, maxValue } = segment;
1604
- return /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(
1605
- "div",
1479
+ var import_react_aria_components22 = require("react-aria-components");
1480
+ var import_system33 = require("@marigold/system");
1481
+ var import_jsx_runtime39 = require("react/jsx-runtime");
1482
+ var _DateSegment = ({ segment, ...props }) => {
1483
+ return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
1484
+ import_react_aria_components22.DateSegment,
1606
1485
  {
1607
- ...(0, import_utils5.mergeProps)(segmentProps, stateProps, focusProps),
1608
- ref,
1609
- className: (0, import_system35.cn)(
1610
- "group/segment",
1611
- "text-center leading-none outline-0",
1612
- type !== "literal" && "p-0.5",
1613
- className
1614
- ),
1486
+ ...props,
1487
+ segment,
1615
1488
  style: {
1616
- ...segmentProps.style,
1617
- minWidth: maxValue != null ? String(maxValue).length + "ch" : void 0
1489
+ minWidth: segment.maxValue != null ? `${String(segment.maxValue).length}ch` : void 0
1618
1490
  },
1619
- children: [
1620
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
1491
+ children: ({ text, placeholder, isPlaceholder }) => /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(import_jsx_runtime39.Fragment, { children: [
1492
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
1621
1493
  "span",
1622
1494
  {
1623
1495
  "aria-hidden": "true",
1624
- className: (0, import_system35.cn)(
1496
+ className: (0, import_system33.cn)(
1625
1497
  isPlaceholder ? "visible block" : "invisible hidden",
1626
1498
  "pointer-events-none w-full text-center"
1627
1499
  ),
1628
1500
  children: isPlaceholder && (placeholder == null ? void 0 : placeholder.toUpperCase())
1629
1501
  }
1630
1502
  ),
1631
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("span", { children: isPlaceholder ? "" : type === "month" || type === "day" ? Number(text) < 10 ? "0" + text : text : text })
1632
- ]
1503
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("span", { children: isPlaceholder ? "" : (segment.type === "month" || segment.type === "day") && Number(segment.text) < 10 ? "0" + segment.text : text })
1504
+ ] })
1633
1505
  }
1634
1506
  );
1635
1507
  };
1636
1508
 
1509
+ // src/DateField/DateInput.tsx
1510
+ var import_jsx_runtime40 = require("react/jsx-runtime");
1511
+ var _DateInput = ({ variant, size, action, ...props }) => {
1512
+ const classNames2 = (0, import_system34.useClassNames)({ component: "DateField", variant, size });
1513
+ return /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(import_react_aria_components23.Group, { className: classNames2.field, children: [
1514
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(import_react_aria_components23.DateInput, { className: "flex flex-1 items-center", ...props, children: (segment) => /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(_DateSegment, { className: classNames2.segment, segment }) }),
1515
+ action ? action : /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { className: "flex items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
1516
+ "svg",
1517
+ {
1518
+ "data-testid": "action",
1519
+ className: classNames2.action,
1520
+ viewBox: "0 0 24 24",
1521
+ width: 24,
1522
+ height: 24,
1523
+ children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("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" })
1524
+ }
1525
+ ) })
1526
+ ] });
1527
+ };
1528
+
1637
1529
  // src/DateField/DateField.tsx
1638
- var import_jsx_runtime42 = require("react/jsx-runtime");
1639
- var DateField = ({
1640
- disabled,
1641
- readOnly,
1642
- required,
1643
- error,
1644
- errorMessage,
1645
- errorMessageProps,
1646
- variant,
1647
- size,
1648
- action,
1649
- isPressed,
1650
- triggerRef,
1651
- width,
1652
- ...res
1653
- }) => {
1654
- const { locale } = (0, import_i18n.useLocale)();
1655
- const props = {
1656
- isDisabled: disabled,
1657
- isReadOnly: readOnly,
1658
- isRequired: required,
1659
- ...res
1660
- };
1661
- const { label, description } = props;
1662
- const state = (0, import_datepicker3.useDateFieldState)({
1663
- ...props,
1664
- locale,
1665
- createCalendar: import_date.createCalendar
1666
- });
1667
- const ref = (0, import_react23.useRef)(null);
1668
- const { fieldProps, labelProps, descriptionProps } = (0, import_datepicker2.useDateField)(
1669
- props,
1670
- state,
1671
- ref
1672
- );
1673
- const classNames2 = (0, import_system36.useClassNames)({ component: "DateField", variant, size });
1674
- const { focusProps, isFocused } = (0, import_focus3.useFocusRing)({
1675
- within: true,
1676
- isTextInput: true,
1677
- autoFocus: props.autoFocus
1678
- });
1679
- const { hoverProps, isHovered } = (0, import_interactions.useHover)({ isDisabled: disabled });
1680
- const stateProps = (0, import_system36.useStateProps)({
1681
- hover: isHovered,
1682
- error,
1683
- readOnly,
1530
+ var import_jsx_runtime41 = require("react/jsx-runtime");
1531
+ var _DateField = (0, import_react22.forwardRef)(
1532
+ ({
1533
+ variant,
1534
+ size,
1535
+ action,
1684
1536
  disabled,
1685
1537
  required,
1686
- focus: isFocused || isPressed
1687
- });
1688
- return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
1689
- FieldBase2,
1690
- {
1691
- error,
1692
- errorMessage,
1693
- errorMessageProps,
1694
- label,
1695
- labelProps,
1696
- description,
1697
- descriptionProps,
1698
- disabled,
1699
- stateProps,
1700
- variant,
1701
- size,
1702
- width,
1703
- children: /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(
1704
- "div",
1705
- {
1706
- ...(0, import_utils6.mergeProps)(fieldProps, focusProps, stateProps, hoverProps),
1707
- className: (0, import_system36.cn)(
1708
- "relative flex flex-row flex-nowrap",
1709
- "cursor-text aria-disabled:cursor-not-allowed",
1710
- classNames2.field
1711
- ),
1712
- "data-testid": "date-field",
1713
- ref: triggerRef,
1714
- children: [
1715
- /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { ref, className: "flex basis-full items-center", children: state.segments.map((segment, i) => {
1716
- var _a;
1717
- return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
1718
- DateSegment,
1719
- {
1720
- className: classNames2.segment,
1721
- isPrevPlaceholder: (_a = state.segments[i - 1]) == null ? void 0 : _a.isPlaceholder,
1722
- segment,
1723
- state
1724
- },
1725
- i
1726
- );
1727
- }) }),
1728
- action ? action : /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { className: "flex items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
1729
- "svg",
1730
- {
1731
- "data-testid": "action",
1732
- className: (0, import_system36.cn)(classNames2.action),
1733
- viewBox: "0 0 24 24",
1734
- width: 24,
1735
- height: 24,
1736
- children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("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" })
1737
- }
1738
- ) })
1739
- ]
1740
- }
1741
- )
1742
- }
1743
- );
1744
- };
1538
+ error,
1539
+ readOnly,
1540
+ ...rest
1541
+ }, ref) => {
1542
+ const props = {
1543
+ isDisabled: disabled,
1544
+ isReadOnly: readOnly,
1545
+ isInvalid: error,
1546
+ isRequired: required,
1547
+ ...rest
1548
+ };
1549
+ return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
1550
+ FieldBase,
1551
+ {
1552
+ as: import_react_aria_components24.DateField,
1553
+ variant,
1554
+ size,
1555
+ ref,
1556
+ ...props,
1557
+ children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(_DateInput, { action })
1558
+ }
1559
+ );
1560
+ }
1561
+ );
1745
1562
 
1746
1563
  // src/Calendar/Calendar.tsx
1747
- var import_react29 = require("react");
1748
- var import_react_aria_components27 = require("react-aria-components");
1749
- var import_system41 = require("@marigold/system");
1564
+ var import_react27 = require("react");
1565
+ var import_react_aria_components31 = require("react-aria-components");
1566
+ var import_system39 = require("@marigold/system");
1750
1567
 
1751
1568
  // src/Calendar/CalendarGrid.tsx
1752
- var import_react_aria_components22 = require("react-aria-components");
1753
- var import_system38 = require("@marigold/system");
1569
+ var import_react_aria_components26 = require("react-aria-components");
1570
+ var import_system36 = require("@marigold/system");
1754
1571
 
1755
1572
  // src/Calendar/CalendarGridHeader.tsx
1756
- var import_date2 = require("@internationalized/date");
1757
- var import_react24 = require("react");
1758
- var import_react_aria_components21 = require("react-aria-components");
1573
+ var import_date = require("@internationalized/date");
1574
+ var import_react23 = require("react");
1575
+ var import_react_aria_components25 = require("react-aria-components");
1759
1576
  var import_calendar = require("@react-aria/calendar");
1760
- var import_i18n2 = require("@react-aria/i18n");
1761
- var import_system37 = require("@marigold/system");
1762
- var import_jsx_runtime43 = require("react/jsx-runtime");
1577
+ var import_i18n = require("@react-aria/i18n");
1578
+ var import_system35 = require("@marigold/system");
1579
+ var import_jsx_runtime42 = require("react/jsx-runtime");
1763
1580
  function CalendarGridHeader(props) {
1764
- const state = (0, import_react24.useContext)(import_react_aria_components21.CalendarStateContext);
1581
+ const state = (0, import_react23.useContext)(import_react_aria_components25.CalendarStateContext);
1765
1582
  const { headerProps } = (0, import_calendar.useCalendarGrid)(props, state);
1766
- const { locale } = (0, import_i18n2.useLocale)();
1767
- const dayFormatter = (0, import_i18n2.useDateFormatter)({
1583
+ const { locale } = (0, import_i18n.useLocale)();
1584
+ const dayFormatter = (0, import_i18n.useDateFormatter)({
1768
1585
  weekday: "short",
1769
1586
  timeZone: state.timeZone
1770
1587
  });
1771
- const weekDays = (0, import_react24.useMemo)(() => {
1772
- const weekStart = (0, import_date2.startOfWeek)((0, import_date2.today)(state.timeZone), locale);
1588
+ const weekDays = (0, import_react23.useMemo)(() => {
1589
+ const weekStart = (0, import_date.startOfWeek)((0, import_date.today)(state.timeZone), locale);
1773
1590
  return [...new Array(7).keys()].map((index) => {
1774
1591
  const date = weekStart.add({ days: index });
1775
1592
  const dateDay = date.toDate(state.timeZone);
1776
1593
  return dayFormatter.format(dateDay);
1777
1594
  });
1778
1595
  }, [locale, state.timeZone, dayFormatter]);
1779
- const classNames2 = (0, import_system37.useClassNames)({ component: "Calendar" });
1780
- return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("thead", { ...headerProps, children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("tr", { children: weekDays.map((day, index) => /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("th", { className: classNames2.calendarHeader, children: day.substring(0, 2) }, index)) }) });
1596
+ const classNames2 = (0, import_system35.useClassNames)({ component: "Calendar" });
1597
+ return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("thead", { ...headerProps, children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("tr", { children: weekDays.map((day, index) => /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("th", { className: classNames2.calendarHeader, children: day.substring(0, 2) }, index)) }) });
1781
1598
  }
1782
1599
 
1783
1600
  // src/Calendar/CalendarGrid.tsx
1784
- var import_jsx_runtime44 = require("react/jsx-runtime");
1601
+ var import_jsx_runtime43 = require("react/jsx-runtime");
1785
1602
  var _CalendarGrid = () => {
1786
- const classNames2 = (0, import_system38.useClassNames)({ component: "Calendar" });
1787
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(import_react_aria_components22.CalendarGrid, { className: classNames2.calendarGrid, children: [
1788
- /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(CalendarGridHeader, {}),
1789
- /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_react_aria_components22.CalendarGridBody, { children: (date) => /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
1790
- import_react_aria_components22.CalendarCell,
1603
+ const classNames2 = (0, import_system36.useClassNames)({ component: "Calendar" });
1604
+ return /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(import_react_aria_components26.CalendarGrid, { className: classNames2.calendarGrid, children: [
1605
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(CalendarGridHeader, {}),
1606
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_react_aria_components26.CalendarGridBody, { children: (date) => /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
1607
+ import_react_aria_components26.CalendarCell,
1791
1608
  {
1792
1609
  date,
1793
- className: (0, import_system38.cn)(
1610
+ className: (0, import_system36.cn)(
1794
1611
  "flex h-[30px] w-[30px] cursor-pointer items-center justify-center rounded-full p-[5.3px] text-sm font-normal aria-disabled:cursor-default",
1795
1612
  classNames2.calendarCell
1796
1613
  )
@@ -1800,16 +1617,16 @@ var _CalendarGrid = () => {
1800
1617
  };
1801
1618
 
1802
1619
  // src/Calendar/CalendarListBox.tsx
1803
- var import_react25 = require("react");
1804
- var import_react_aria_components23 = require("react-aria-components");
1620
+ var import_react24 = require("react");
1621
+ var import_react_aria_components27 = require("react-aria-components");
1805
1622
  var import_icons = require("@marigold/icons");
1806
- var import_system39 = require("@marigold/system");
1623
+ var import_system37 = require("@marigold/system");
1807
1624
 
1808
1625
  // src/Calendar/useFormattedMonths.tsx
1809
- var import_i18n3 = require("@react-aria/i18n");
1626
+ var import_i18n2 = require("@react-aria/i18n");
1810
1627
  function useFormattedMonths(timeZone, focusedDate) {
1811
1628
  let months = [];
1812
- let formatter = (0, import_i18n3.useDateFormatter)({
1629
+ let formatter = (0, import_i18n2.useDateFormatter)({
1813
1630
  month: "long",
1814
1631
  timeZone
1815
1632
  });
@@ -1822,95 +1639,94 @@ function useFormattedMonths(timeZone, focusedDate) {
1822
1639
  }
1823
1640
 
1824
1641
  // src/Calendar/CalendarListBox.tsx
1825
- var import_jsx_runtime45 = require("react/jsx-runtime");
1642
+ var import_jsx_runtime44 = require("react/jsx-runtime");
1826
1643
  function CalendarListBox({
1827
1644
  type,
1828
1645
  isDisabled,
1829
1646
  setSelectedDropdown
1830
1647
  }) {
1831
- const state = (0, import_react25.useContext)(import_react_aria_components23.CalendarStateContext);
1648
+ const state = (0, import_react24.useContext)(import_react_aria_components27.CalendarStateContext);
1832
1649
  const months = useFormattedMonths(state.timeZone, state.focusedDate);
1833
1650
  const buttonStyles = "flex items-center justify-between gap-1 overflow-hidden";
1834
- const { select: selectClassNames } = (0, import_system39.useClassNames)({ component: "Select" });
1835
- return /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(
1651
+ const { select: selectClassNames } = (0, import_system37.useClassNames)({ component: "Select" });
1652
+ return /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(
1836
1653
  "button",
1837
1654
  {
1838
1655
  disabled: isDisabled,
1839
1656
  onClick: () => setSelectedDropdown(type),
1840
- className: (0, import_system39.cn)(buttonStyles, selectClassNames),
1657
+ className: (0, import_system37.cn)(buttonStyles, selectClassNames),
1841
1658
  "data-testid": type,
1842
1659
  children: [
1843
1660
  type === "month" ? months[state.focusedDate.month - 1].substring(0, 3) : state.focusedDate.year,
1844
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_icons.ChevronDown, {})
1661
+ /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_icons.ChevronDown, {})
1845
1662
  ]
1846
1663
  }
1847
1664
  );
1848
1665
  }
1849
1666
 
1850
1667
  // src/Calendar/MonthControls.tsx
1851
- var import_react26 = __toESM(require("react"));
1852
- var import_react_aria_components24 = require("react-aria-components");
1668
+ var import_react_aria_components28 = require("react-aria-components");
1853
1669
  var import_icons2 = require("@marigold/icons");
1854
- var import_system40 = require("@marigold/system");
1855
- var import_jsx_runtime46 = require("react/jsx-runtime");
1670
+ var import_system38 = require("@marigold/system");
1671
+ var import_jsx_runtime45 = require("react/jsx-runtime");
1856
1672
  function MonthControls() {
1857
- const classNames2 = (0, import_system40.useClassNames)({ component: "Calendar" });
1858
- const buttonClassNames = (0, import_system40.useClassNames)({ component: "Button" });
1859
- return /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(
1673
+ const classNames2 = (0, import_system38.useClassNames)({ component: "Calendar" });
1674
+ const buttonClassNames = (0, import_system38.useClassNames)({ component: "Button" });
1675
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(
1860
1676
  "div",
1861
1677
  {
1862
- className: (0, import_system40.cn)(
1678
+ className: (0, import_system38.cn)(
1863
1679
  "flex w-full flex-nowrap justify-end gap-[10px] [&_button:disabled]:cursor-not-allowed [&_button]:px-2 [&_button]:py-1",
1864
1680
  classNames2.calendarControllers
1865
1681
  ),
1866
1682
  children: [
1867
- /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
1868
- import_react_aria_components24.Button,
1683
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
1684
+ import_react_aria_components28.Button,
1869
1685
  {
1870
- className: (0, import_system40.cn)(
1686
+ className: (0, import_system38.cn)(
1871
1687
  "inline-flex items-center justify-center gap-[0.5ch]",
1872
1688
  buttonClassNames
1873
1689
  ),
1874
1690
  slot: "previous",
1875
- children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_icons2.ChevronLeft, {})
1691
+ children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_icons2.ChevronLeft, {})
1876
1692
  }
1877
1693
  ),
1878
- /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
1879
- import_react_aria_components24.Button,
1694
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
1695
+ import_react_aria_components28.Button,
1880
1696
  {
1881
- className: (0, import_system40.cn)(
1697
+ className: (0, import_system38.cn)(
1882
1698
  "inline-flex items-center justify-center gap-[0.5ch]",
1883
1699
  buttonClassNames
1884
1700
  ),
1885
1701
  slot: "next",
1886
- children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_icons2.ChevronRight, {})
1702
+ children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_icons2.ChevronRight, {})
1887
1703
  }
1888
1704
  )
1889
1705
  ]
1890
1706
  }
1891
1707
  );
1892
1708
  }
1893
- var MonthControls_default = import_react26.default.memo(MonthControls);
1709
+ var MonthControls_default = MonthControls;
1894
1710
 
1895
1711
  // src/Calendar/MonthListBox.tsx
1896
- var import_react27 = require("react");
1897
- var import_react_aria_components25 = require("react-aria-components");
1898
- var import_jsx_runtime47 = require("react/jsx-runtime");
1712
+ var import_react25 = require("react");
1713
+ var import_react_aria_components29 = require("react-aria-components");
1714
+ var import_jsx_runtime46 = require("react/jsx-runtime");
1899
1715
  var MonthListBox = ({ setSelectedDropdown }) => {
1900
- const state = (0, import_react27.useContext)(import_react_aria_components25.CalendarStateContext);
1716
+ const state = (0, import_react25.useContext)(import_react_aria_components29.CalendarStateContext);
1901
1717
  const months = useFormattedMonths(state.timeZone, state.focusedDate);
1902
1718
  let onChange = (index) => {
1903
1719
  let value = Number(index) + 1;
1904
1720
  let date = state.focusedDate.set({ month: value });
1905
1721
  state.setFocusedDate(date);
1906
1722
  };
1907
- return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
1723
+ return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
1908
1724
  "ul",
1909
1725
  {
1910
1726
  "data-testid": "monthOptions",
1911
1727
  className: "grid h-full max-h-[300px] min-w-[300px] grid-cols-3 gap-y-10 overflow-y-scroll p-2",
1912
1728
  children: months.map((month, index) => {
1913
- return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("li", { className: "flex justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
1729
+ return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("li", { className: "flex justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
1914
1730
  _Button,
1915
1731
  {
1916
1732
  slot: "previous",
@@ -1931,14 +1747,14 @@ var MonthListBox = ({ setSelectedDropdown }) => {
1931
1747
  var MonthListBox_default = MonthListBox;
1932
1748
 
1933
1749
  // src/Calendar/YearListBox.tsx
1934
- var import_react28 = require("react");
1935
- var import_react_aria_components26 = require("react-aria-components");
1936
- var import_i18n4 = require("@react-aria/i18n");
1937
- var import_jsx_runtime48 = require("react/jsx-runtime");
1750
+ var import_react26 = require("react");
1751
+ var import_react_aria_components30 = require("react-aria-components");
1752
+ var import_i18n3 = require("@react-aria/i18n");
1753
+ var import_jsx_runtime47 = require("react/jsx-runtime");
1938
1754
  var YearListBox = ({ setSelectedDropdown }) => {
1939
- const state = (0, import_react28.useContext)(import_react_aria_components26.CalendarStateContext);
1755
+ const state = (0, import_react26.useContext)(import_react_aria_components30.CalendarStateContext);
1940
1756
  const years = [];
1941
- let formatter = (0, import_i18n4.useDateFormatter)({
1757
+ let formatter = (0, import_i18n3.useDateFormatter)({
1942
1758
  year: "numeric",
1943
1759
  timeZone: state.timeZone
1944
1760
  });
@@ -1949,8 +1765,8 @@ var YearListBox = ({ setSelectedDropdown }) => {
1949
1765
  formatted: formatter.format(date.toDate(state.timeZone))
1950
1766
  });
1951
1767
  }
1952
- const activeButtonRef = (0, import_react28.useRef)(null);
1953
- (0, import_react28.useEffect)(() => {
1768
+ const activeButtonRef = (0, import_react26.useRef)(null);
1769
+ (0, import_react26.useEffect)(() => {
1954
1770
  if (activeButtonRef.current) {
1955
1771
  const activeButton = activeButtonRef.current;
1956
1772
  activeButton == null ? void 0 : activeButton.scrollIntoView({
@@ -1964,19 +1780,19 @@ var YearListBox = ({ setSelectedDropdown }) => {
1964
1780
  let date = years[index].value;
1965
1781
  state.setFocusedDate(date);
1966
1782
  };
1967
- return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
1783
+ return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
1968
1784
  "ul",
1969
1785
  {
1970
1786
  "data-testid": "yearOptions",
1971
1787
  className: "grid h-full max-h-[300px] min-w-[300px] grid-cols-3 gap-y-10 overflow-y-scroll p-2",
1972
1788
  children: years.map((year, index) => {
1973
1789
  const isActive = +year.formatted === state.focusedDate.year;
1974
- return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("li", { className: "flex justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
1790
+ return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("li", { className: "flex justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
1975
1791
  "div",
1976
1792
  {
1977
1793
  ref: isActive ? activeButtonRef : null,
1978
1794
  style: { height: "100%", width: "100%" },
1979
- children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
1795
+ children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
1980
1796
  _Button,
1981
1797
  {
1982
1798
  slot: "previous",
@@ -2001,7 +1817,7 @@ var YearListBox = ({ setSelectedDropdown }) => {
2001
1817
  var YearListBox_default = YearListBox;
2002
1818
 
2003
1819
  // src/Calendar/Calendar.tsx
2004
- var import_jsx_runtime49 = require("react/jsx-runtime");
1820
+ var import_jsx_runtime48 = require("react/jsx-runtime");
2005
1821
  var _Calendar = ({
2006
1822
  disabled,
2007
1823
  readOnly,
@@ -2014,24 +1830,24 @@ var _Calendar = ({
2014
1830
  isReadOnly: readOnly,
2015
1831
  ...rest
2016
1832
  };
2017
- const classNames2 = (0, import_system41.useClassNames)({ component: "Calendar" });
2018
- const [selectedDropdown, setSelectedDropdown] = (0, import_react29.useState)();
1833
+ const classNames2 = (0, import_system39.useClassNames)({ component: "Calendar" });
1834
+ const [selectedDropdown, setSelectedDropdown] = (0, import_react27.useState)();
2019
1835
  const ViewMap = {
2020
- month: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(MonthListBox_default, { setSelectedDropdown }),
2021
- year: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(YearListBox_default, { setSelectedDropdown })
1836
+ month: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(MonthListBox_default, { setSelectedDropdown }),
1837
+ year: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(YearListBox_default, { setSelectedDropdown })
2022
1838
  };
2023
- return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
2024
- import_react_aria_components27.Calendar,
1839
+ return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
1840
+ import_react_aria_components31.Calendar,
2025
1841
  {
2026
- className: (0, import_system41.cn)(
1842
+ className: (0, import_system39.cn)(
2027
1843
  "flex min-h-[350px] w-[360px] flex-col rounded-sm p-4 shadow-[0_4px_4px_rgba(165,165,165,0.25)]",
2028
1844
  classNames2.calendar
2029
1845
  ),
2030
1846
  ...props,
2031
- children: selectedDropdown ? ViewMap[selectedDropdown] : /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(import_jsx_runtime49.Fragment, { children: [
2032
- /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: "mb-4 flex items-center justify-between", children: [
2033
- /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: "flex w-full gap-4", children: [
2034
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
1847
+ children: selectedDropdown ? ViewMap[selectedDropdown] : /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(import_jsx_runtime48.Fragment, { children: [
1848
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("div", { className: "mb-4 flex items-center justify-between", children: [
1849
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("div", { className: "flex w-full gap-4", children: [
1850
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
2035
1851
  CalendarListBox,
2036
1852
  {
2037
1853
  type: "month",
@@ -2039,7 +1855,7 @@ var _Calendar = ({
2039
1855
  setSelectedDropdown
2040
1856
  }
2041
1857
  ),
2042
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
1858
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
2043
1859
  CalendarListBox,
2044
1860
  {
2045
1861
  type: "year",
@@ -2048,279 +1864,118 @@ var _Calendar = ({
2048
1864
  }
2049
1865
  )
2050
1866
  ] }),
2051
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(MonthControls_default, {})
1867
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(MonthControls_default, {})
2052
1868
  ] }),
2053
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(_CalendarGrid, {})
1869
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(_CalendarGrid, {})
2054
1870
  ] })
2055
1871
  }
2056
1872
  );
2057
1873
  };
2058
1874
 
2059
1875
  // src/DatePicker/DatePicker.tsx
2060
- var import_react33 = require("react");
2061
- var import_datepicker4 = require("@react-aria/datepicker");
2062
- var import_utils8 = require("@react-aria/utils");
2063
- var import_datepicker5 = require("@react-stately/datepicker");
2064
- var import_system45 = require("@marigold/system");
2065
-
2066
- // src/Overlay/Overlay.tsx
2067
- var import_react30 = require("react");
2068
- var import_overlays = require("@react-aria/overlays");
2069
- var import_system42 = require("@marigold/system");
2070
- var import_jsx_runtime50 = require("react/jsx-runtime");
2071
- var Overlay = ({ children, container, open }) => {
2072
- const nodeRef = (0, import_react30.useRef)(null);
2073
- const theme = (0, import_system42.useTheme)();
2074
- let mountOverlay = open;
2075
- if (!mountOverlay) {
2076
- return null;
2077
- }
2078
- return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_overlays.Overlay, { portalContainer: container, children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
2079
- "div",
2080
- {
2081
- ref: nodeRef,
2082
- "data-testid": "overlay",
2083
- "data-theme": theme.name,
2084
- className: "opacity-100",
2085
- children
2086
- }
2087
- ) });
2088
- };
2089
-
2090
- // src/Overlay/_Popover.tsx
2091
- var import_react31 = require("react");
2092
- var import_focus4 = require("@react-aria/focus");
2093
- var import_overlays2 = require("@react-aria/overlays");
2094
- var import_system43 = require("@marigold/system");
2095
- var import_jsx_runtime51 = require("react/jsx-runtime");
2096
- var Popover2 = (0, import_react31.forwardRef)(
2097
- (props, ref) => {
2098
- const fallbackRef = (0, import_react31.useRef)(null);
2099
- const popoverRef = ref || fallbackRef;
2100
- let { children, state, ...otherProps } = props;
2101
- return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(Overlay, { open: state.isOpen, ...otherProps, children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(PopoverWrapper, { ref: popoverRef, ...props, children }) });
2102
- }
2103
- );
2104
- var PopoverWrapper = (0, import_react31.forwardRef)(
2105
- ({
2106
- children,
2107
- isNonModal,
2108
- state,
2109
- keyboardDismissDisabled,
2110
- ...props
2111
- }, ref) => {
2112
- const { popoverProps, underlayProps, placement } = (0, import_overlays2.usePopover)(
2113
- {
2114
- ...props,
2115
- isNonModal,
2116
- isKeyboardDismissDisabled: keyboardDismissDisabled,
2117
- popoverRef: ref,
2118
- placement: "bottom left"
2119
- },
2120
- state
2121
- );
2122
- const classNames2 = (0, import_system43.useClassNames)({
2123
- component: "Popover",
2124
- variant: placement
2125
- });
2126
- return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(import_focus4.FocusScope, { restoreFocus: true, children: [
2127
- !isNonModal && /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(Underlay, { ...underlayProps }),
2128
- /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(
2129
- "div",
2130
- {
2131
- ...popoverProps,
2132
- className: classNames2,
2133
- style: {
2134
- ...popoverProps.style,
2135
- minWidth: props.triggerRef.current ? props.triggerRef.current.offsetWidth : void 0
2136
- },
2137
- ref,
2138
- role: "presentation",
2139
- children: [
2140
- !isNonModal && /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_overlays2.DismissButton, { onDismiss: state.close }),
2141
- children,
2142
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_overlays2.DismissButton, { onDismiss: state.close })
2143
- ]
2144
- }
2145
- )
2146
- ] });
2147
- }
2148
- );
2149
-
2150
- // src/Overlay/Tray.tsx
2151
- var import_react32 = require("react");
2152
- var import_focus5 = require("@react-aria/focus");
2153
- var import_overlays3 = require("@react-aria/overlays");
2154
- var import_utils7 = require("@react-aria/utils");
2155
-
2156
- // src/Overlay/_Underlay.tsx
2157
- var import_system44 = require("@marigold/system");
2158
- var import_jsx_runtime52 = require("react/jsx-runtime");
2159
- var Underlay2 = ({ size, variant, ...props }) => {
2160
- const classNames2 = (0, import_system44.useClassNames)({ component: "Underlay", size, variant });
2161
- return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("div", { className: (0, import_system44.cn)("fixed inset-0 z-40", classNames2), ...props });
2162
- };
2163
-
2164
- // src/Overlay/Tray.tsx
2165
- var import_jsx_runtime53 = require("react/jsx-runtime");
2166
- var Tray = (0, import_react32.forwardRef)(
2167
- ({ state, children, ...props }, ref) => {
2168
- const trayRef = (0, import_utils7.useObjectRef)(ref);
2169
- return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(Overlay, { open: state.isOpen, children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(TrayWrapper, { state, ...props, ref: trayRef, children }) });
2170
- }
2171
- );
2172
- var TrayWrapper = (0, import_react32.forwardRef)(
2173
- ({ children, state, ...props }, ref) => {
2174
- let { modalProps, underlayProps } = (0, import_overlays3.useModalOverlay)(
2175
- {
2176
- ...props,
2177
- isDismissable: true
2178
- },
2179
- state,
2180
- ref
2181
- );
2182
- return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_focus5.FocusScope, { contain: true, restoreFocus: true, autoFocus: true, children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(Underlay2, { ...underlayProps, variant: "modal", children: /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(
2183
- "div",
2184
- {
2185
- ...modalProps,
2186
- ref,
2187
- className: "absolute bottom-0 w-full",
2188
- "data-testid": "tray",
2189
- children: [
2190
- /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_overlays3.DismissButton, { onDismiss: state.close }),
2191
- children,
2192
- /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_overlays3.DismissButton, { onDismiss: state.close })
2193
- ]
2194
- }
2195
- ) }) });
2196
- }
2197
- );
2198
-
2199
- // src/DatePicker/DatePicker.tsx
2200
- var import_jsx_runtime54 = require("react/jsx-runtime");
2201
- var DatePicker = ({
1876
+ var import_react_aria_components32 = require("react-aria-components");
1877
+ var import_system40 = require("@marigold/system");
1878
+ var import_jsx_runtime49 = require("react/jsx-runtime");
1879
+ var _DatePicker = ({
2202
1880
  disabled,
2203
1881
  required,
2204
- readonly,
2205
- open,
1882
+ readOnly,
2206
1883
  error,
2207
- shouldCloseOnSelect,
2208
1884
  variant,
2209
1885
  size,
2210
- width,
1886
+ open,
2211
1887
  ...rest
2212
1888
  }) => {
2213
1889
  const props = {
2214
1890
  isDisabled: disabled,
2215
- isReadOnly: readonly,
1891
+ isReadOnly: readOnly,
2216
1892
  isRequired: required,
1893
+ isInvalid: error,
2217
1894
  isOpen: open,
2218
1895
  ...rest
2219
1896
  };
2220
- const state = (0, import_datepicker5.useDatePickerState)({
2221
- shouldCloseOnSelect,
2222
- ...props
2223
- });
2224
- const ref = (0, import_react33.useRef)(null);
2225
- const stateProps = (0, import_system45.useStateProps)({
2226
- focus: state.isOpen
2227
- });
2228
- const { groupProps, fieldProps, buttonProps, calendarProps } = (0, import_datepicker4.useDatePicker)(
2229
- props,
2230
- state,
2231
- ref
2232
- );
2233
- const { isDisabled, errorMessage, description, label } = props;
2234
- const classNames2 = (0, import_system45.useClassNames)({
1897
+ const classNames2 = (0, import_system40.useClassNames)({
2235
1898
  component: "DatePicker",
2236
1899
  size,
2237
1900
  variant
2238
1901
  });
2239
- return /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(import_jsx_runtime54.Fragment, { children: [
2240
- /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("div", { className: "flex w-full min-w-[300px]", ...groupProps, children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
2241
- DateField,
1902
+ return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(FieldBase, { as: import_react_aria_components32.DatePicker, variant, size, ...props, children: [
1903
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
1904
+ _DateInput,
2242
1905
  {
2243
- ...fieldProps,
2244
- label,
2245
- isPressed: state.isOpen,
2246
- disabled,
2247
- required,
2248
- errorMessage,
2249
- error,
2250
- description: !state.isOpen && description,
2251
- triggerRef: ref,
2252
- width,
2253
- action: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("div", { className: classNames2.container, children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
1906
+ action: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("div", { className: classNames2.container, children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
2254
1907
  _Button,
2255
1908
  {
2256
- ...(0, import_utils8.mergeProps)(buttonProps, stateProps),
2257
- disabled: isDisabled,
2258
- children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
1909
+ size: "small",
1910
+ disabled,
1911
+ className: classNames2.button,
1912
+ children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
2259
1913
  "svg",
2260
1914
  {
2261
- width: "24",
2262
- height: "24",
1915
+ "data-testid": "action",
2263
1916
  viewBox: "0 0 24 24",
1917
+ width: 24,
1918
+ height: 24,
2264
1919
  fill: "currentColor",
2265
- children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("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" })
1920
+ children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("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" })
2266
1921
  }
2267
1922
  )
2268
1923
  }
2269
1924
  ) })
2270
1925
  }
2271
- ) }),
2272
- state.isOpen && /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(Popover2, { triggerRef: ref, state, children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(_Calendar, { disabled, ...calendarProps }) })
1926
+ ),
1927
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(_Popover, { children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(_Calendar, { disabled }) })
2273
1928
  ] });
2274
1929
  };
2275
1930
 
2276
1931
  // src/Inset/Inset.tsx
2277
- var import_system46 = require("@marigold/system");
2278
- var import_jsx_runtime55 = require("react/jsx-runtime");
2279
- var Inset = ({ space, spaceX, spaceY, children }) => /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
1932
+ var import_system41 = require("@marigold/system");
1933
+ var import_jsx_runtime50 = require("react/jsx-runtime");
1934
+ var Inset = ({ space, spaceX, spaceY, children }) => /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
2280
1935
  "div",
2281
1936
  {
2282
- className: (0, import_system46.cn)(
2283
- space && import_system46.paddingSpace[space],
2284
- !space && spaceX && import_system46.paddingSpaceX[spaceX],
2285
- !space && spaceY && import_system46.paddingSpaceY[spaceY]
1937
+ className: (0, import_system41.cn)(
1938
+ space && import_system41.paddingSpace[space],
1939
+ !space && spaceX && import_system41.paddingSpaceX[spaceX],
1940
+ !space && spaceY && import_system41.paddingSpaceY[spaceY]
2286
1941
  ),
2287
1942
  children
2288
1943
  }
2289
1944
  );
2290
1945
 
2291
1946
  // src/Link/Link.tsx
2292
- var import_react34 = require("react");
2293
- var import_react_aria_components28 = require("react-aria-components");
2294
- var import_system47 = require("@marigold/system");
2295
- var import_jsx_runtime56 = require("react/jsx-runtime");
2296
- var _Link = (0, import_react34.forwardRef)(
1947
+ var import_react28 = require("react");
1948
+ var import_react_aria_components33 = require("react-aria-components");
1949
+ var import_system42 = require("@marigold/system");
1950
+ var import_jsx_runtime51 = require("react/jsx-runtime");
1951
+ var _Link = (0, import_react28.forwardRef)(
2297
1952
  ({ variant, size, disabled, children, ...props }, ref) => {
2298
- const classNames2 = (0, import_system47.useClassNames)({
1953
+ const classNames2 = (0, import_system42.useClassNames)({
2299
1954
  component: "Link",
2300
1955
  variant,
2301
1956
  size
2302
1957
  });
2303
- return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(import_react_aria_components28.Link, { ...props, ref, className: classNames2, isDisabled: disabled, children });
1958
+ return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_react_aria_components33.Link, { ...props, ref, className: classNames2, isDisabled: disabled, children });
2304
1959
  }
2305
1960
  );
2306
1961
 
2307
1962
  // src/List/List.tsx
2308
- var import_system48 = require("@marigold/system");
1963
+ var import_system43 = require("@marigold/system");
2309
1964
 
2310
1965
  // src/List/Context.ts
2311
- var import_react35 = require("react");
2312
- var ListContext = (0, import_react35.createContext)({});
2313
- var useListContext = () => (0, import_react35.useContext)(ListContext);
1966
+ var import_react29 = require("react");
1967
+ var ListContext = (0, import_react29.createContext)({});
1968
+ var useListContext = () => (0, import_react29.useContext)(ListContext);
2314
1969
 
2315
1970
  // src/List/ListItem.tsx
2316
- var import_jsx_runtime57 = require("react/jsx-runtime");
1971
+ var import_jsx_runtime52 = require("react/jsx-runtime");
2317
1972
  var ListItem = ({ children, ...props }) => {
2318
1973
  const { classNames: classNames2 } = useListContext();
2319
- return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("li", { ...props, className: classNames2, children });
1974
+ return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("li", { ...props, className: classNames2, children });
2320
1975
  };
2321
1976
 
2322
1977
  // src/List/List.tsx
2323
- var import_jsx_runtime58 = require("react/jsx-runtime");
1978
+ var import_jsx_runtime53 = require("react/jsx-runtime");
2324
1979
  var List = ({
2325
1980
  as = "ul",
2326
1981
  children,
@@ -2329,78 +1984,79 @@ var List = ({
2329
1984
  ...props
2330
1985
  }) => {
2331
1986
  const Component = as;
2332
- const classNames2 = (0, import_system48.useClassNames)({ component: "List", variant, size });
2333
- return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Component, { ...props, className: classNames2[as], children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(ListContext.Provider, { value: { classNames: classNames2.item }, children }) });
1987
+ const classNames2 = (0, import_system43.useClassNames)({ component: "List", variant, size });
1988
+ return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(Component, { ...props, className: classNames2[as], children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(ListContext.Provider, { value: { classNames: classNames2.item }, children }) });
2334
1989
  };
2335
1990
  List.Item = ListItem;
2336
1991
 
2337
1992
  // src/Menu/Menu.tsx
2338
- var import_react_aria_components31 = require("react-aria-components");
2339
- var import_system51 = require("@marigold/system");
1993
+ var import_react_aria_components36 = require("react-aria-components");
1994
+ var import_system46 = require("@marigold/system");
2340
1995
 
2341
1996
  // src/Menu/MenuItem.tsx
2342
- var import_react_aria_components29 = require("react-aria-components");
2343
- var import_system49 = require("@marigold/system");
2344
- var import_jsx_runtime59 = require("react/jsx-runtime");
1997
+ var import_react_aria_components34 = require("react-aria-components");
1998
+ var import_system44 = require("@marigold/system");
1999
+ var import_jsx_runtime54 = require("react/jsx-runtime");
2345
2000
  var _MenuItem = ({ children, ...props }) => {
2346
- const classNames2 = (0, import_system49.useClassNames)({ component: "Menu" });
2347
- return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_react_aria_components29.MenuItem, { ...props, className: classNames2.item, children });
2001
+ const classNames2 = (0, import_system44.useClassNames)({ component: "Menu" });
2002
+ return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(import_react_aria_components34.MenuItem, { ...props, className: classNames2.item, children });
2348
2003
  };
2349
2004
 
2350
2005
  // src/Menu/MenuSection.tsx
2351
- var import_react_aria_components30 = require("react-aria-components");
2352
- var import_system50 = require("@marigold/system");
2353
- var import_jsx_runtime60 = require("react/jsx-runtime");
2006
+ var import_react_aria_components35 = require("react-aria-components");
2007
+ var import_system45 = require("@marigold/system");
2008
+ var import_jsx_runtime55 = require("react/jsx-runtime");
2354
2009
  var _MenuSection = ({ children, title, ...props }) => {
2355
- const className = (0, import_system50.useClassNames)({ component: "Menu" });
2356
- return /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(import_react_aria_components30.Section, { ...props, children: [
2357
- /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(_Header, { className: className.section, children: title }),
2010
+ const className = (0, import_system45.useClassNames)({ component: "Menu" });
2011
+ return /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(import_react_aria_components35.Section, { ...props, children: [
2012
+ /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(_Header, { className: className.section, children: title }),
2358
2013
  children
2359
2014
  ] });
2360
2015
  };
2361
2016
 
2362
2017
  // src/Menu/Menu.tsx
2363
- var import_jsx_runtime61 = require("react/jsx-runtime");
2018
+ var import_jsx_runtime56 = require("react/jsx-runtime");
2364
2019
  var _Menu = ({
2365
2020
  children,
2366
2021
  label,
2367
2022
  variant,
2368
2023
  size,
2024
+ disabled,
2369
2025
  open,
2370
2026
  ...props
2371
2027
  }) => {
2372
- const classNames2 = (0, import_system51.useClassNames)({ component: "Menu", variant, size });
2373
- return /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(import_react_aria_components31.MenuTrigger, { ...props, children: [
2374
- /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(_Button, { variant: "menu", children: label }),
2375
- /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(_Popover, { open, children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(import_react_aria_components31.Menu, { ...props, className: classNames2.container, children }) })
2028
+ const classNames2 = (0, import_system46.useClassNames)({ component: "Menu", variant, size });
2029
+ return /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(import_react_aria_components36.MenuTrigger, { ...props, children: [
2030
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(_Button, { variant: "menu", disabled, children: label }),
2031
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(_Popover, { open, children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(import_react_aria_components36.Menu, { ...props, className: classNames2.container, children }) })
2376
2032
  ] });
2377
2033
  };
2378
2034
  _Menu.Item = _MenuItem;
2379
2035
  _Menu.Section = _MenuSection;
2380
2036
 
2381
2037
  // src/Menu/ActionMenu.tsx
2382
- var import_react_aria_components32 = require("react-aria-components");
2383
- var import_system52 = require("@marigold/system");
2384
- var import_jsx_runtime62 = require("react/jsx-runtime");
2038
+ var import_react_aria_components37 = require("react-aria-components");
2039
+ var import_system47 = require("@marigold/system");
2040
+ var import_jsx_runtime57 = require("react/jsx-runtime");
2385
2041
  var ActionMenu = ({ variant, size, ...props }) => {
2386
- const classNames2 = (0, import_system52.useClassNames)({ component: "Menu", variant, size });
2387
- return /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(import_react_aria_components32.MenuTrigger, { children: [
2388
- /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(_Button, { variant: "menu", size: "small", children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(import_system52.SVG, { viewBox: "0 0 24 24", children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("path", { d: "M12.0117 7.47656C13.2557 7.47656 14.2734 6.45879 14.2734 5.21484C14.2734 3.9709 13.2557 2.95312 12.0117 2.95312C10.7678 2.95312 9.75 3.9709 9.75 5.21484C9.75 6.45879 10.7678 7.47656 12.0117 7.47656ZM12.0117 9.73828C10.7678 9.73828 9.75 10.7561 9.75 12C9.75 13.2439 10.7678 14.2617 12.0117 14.2617C13.2557 14.2617 14.2734 13.2439 14.2734 12C14.2734 10.7561 13.2557 9.73828 12.0117 9.73828ZM12.0117 16.5234C10.7678 16.5234 9.75 17.5412 9.75 18.7852C9.75 20.0291 10.7678 21.0469 12.0117 21.0469C13.2557 21.0469 14.2734 20.0291 14.2734 18.7852C14.2734 17.5412 13.2557 16.5234 12.0117 16.5234Z" }) }) }),
2389
- /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(_Popover, { children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(import_react_aria_components32.Menu, { ...props, className: classNames2.container, children: props.children }) })
2042
+ const classNames2 = (0, import_system47.useClassNames)({ component: "Menu", variant, size });
2043
+ return /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(import_react_aria_components37.MenuTrigger, { children: [
2044
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(_Button, { variant: "menu", size: "small", children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_system47.SVG, { viewBox: "0 0 24 24", children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("path", { d: "M12.0117 7.47656C13.2557 7.47656 14.2734 6.45879 14.2734 5.21484C14.2734 3.9709 13.2557 2.95312 12.0117 2.95312C10.7678 2.95312 9.75 3.9709 9.75 5.21484C9.75 6.45879 10.7678 7.47656 12.0117 7.47656ZM12.0117 9.73828C10.7678 9.73828 9.75 10.7561 9.75 12C9.75 13.2439 10.7678 14.2617 12.0117 14.2617C13.2557 14.2617 14.2734 13.2439 14.2734 12C14.2734 10.7561 13.2557 9.73828 12.0117 9.73828ZM12.0117 16.5234C10.7678 16.5234 9.75 17.5412 9.75 18.7852C9.75 20.0291 10.7678 21.0469 12.0117 21.0469C13.2557 21.0469 14.2734 20.0291 14.2734 18.7852C14.2734 17.5412 13.2557 16.5234 12.0117 16.5234Z" }) }) }),
2045
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(_Popover, { children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_react_aria_components37.Menu, { ...props, className: classNames2.container, children: props.children }) })
2390
2046
  ] });
2391
2047
  };
2392
2048
 
2393
2049
  // src/Message/Message.tsx
2394
- var import_system53 = require("@marigold/system");
2395
- var import_jsx_runtime63 = require("react/jsx-runtime");
2050
+ var import_system48 = require("@marigold/system");
2051
+ var import_jsx_runtime58 = require("react/jsx-runtime");
2396
2052
  var icons = {
2397
- success: () => /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
2053
+ success: () => /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
2398
2054
  "svg",
2399
2055
  {
2400
2056
  xmlns: "http://www.w3.org/2000/svg",
2401
2057
  viewBox: "0 0 24 24",
2402
2058
  fill: "currentColor",
2403
- children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
2059
+ children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
2404
2060
  "path",
2405
2061
  {
2406
2062
  fillRule: "evenodd",
@@ -2410,13 +2066,13 @@ var icons = {
2410
2066
  )
2411
2067
  }
2412
2068
  ),
2413
- info: () => /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
2069
+ info: () => /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
2414
2070
  "svg",
2415
2071
  {
2416
2072
  xmlns: "http://www.w3.org/2000/svg",
2417
2073
  viewBox: "0 0 24 24",
2418
2074
  fill: "currentColor",
2419
- children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
2075
+ children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
2420
2076
  "path",
2421
2077
  {
2422
2078
  fillRule: "evenodd",
@@ -2426,13 +2082,13 @@ var icons = {
2426
2082
  )
2427
2083
  }
2428
2084
  ),
2429
- warning: () => /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
2085
+ warning: () => /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
2430
2086
  "svg",
2431
2087
  {
2432
2088
  xmlns: "http://www.w3.org/2000/svg",
2433
2089
  viewBox: "0 0 24 24",
2434
2090
  fill: "currentColor",
2435
- children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
2091
+ children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
2436
2092
  "path",
2437
2093
  {
2438
2094
  fillRule: "evenodd",
@@ -2442,13 +2098,13 @@ var icons = {
2442
2098
  )
2443
2099
  }
2444
2100
  ),
2445
- error: () => /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
2101
+ error: () => /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
2446
2102
  "svg",
2447
2103
  {
2448
2104
  xmlns: "http://www.w3.org/2000/svg",
2449
2105
  viewBox: "0 0 24 24",
2450
2106
  fill: "currentColor",
2451
- children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
2107
+ children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
2452
2108
  "path",
2453
2109
  {
2454
2110
  fillRule: "evenodd",
@@ -2466,41 +2122,41 @@ var Message = ({
2466
2122
  children,
2467
2123
  ...props
2468
2124
  }) => {
2469
- const classNames2 = (0, import_system53.useClassNames)({ component: "Message", variant, size });
2125
+ const classNames2 = (0, import_system48.useClassNames)({ component: "Message", variant, size });
2470
2126
  const Icon3 = icons[variant];
2471
- return /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(
2127
+ return /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(
2472
2128
  "div",
2473
2129
  {
2474
- className: (0, import_system53.cn)(
2130
+ className: (0, import_system48.cn)(
2475
2131
  "grid auto-rows-min grid-cols-[min-content_auto] gap-1",
2476
2132
  classNames2.container
2477
2133
  ),
2478
2134
  ...props,
2479
2135
  children: [
2480
- /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("div", { className: (0, import_system53.cn)("col-span-1 h-5 w-5 self-center", classNames2.icon), children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(Icon3, {}) }),
2481
- /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
2136
+ /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("div", { className: (0, import_system48.cn)("col-span-1 h-5 w-5 self-center", classNames2.icon), children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Icon3, {}) }),
2137
+ /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
2482
2138
  "div",
2483
2139
  {
2484
- className: (0, import_system53.cn)("col-start-2 row-start-1 self-center", classNames2.title),
2140
+ className: (0, import_system48.cn)("col-start-2 row-start-1 self-center", classNames2.title),
2485
2141
  children: messageTitle
2486
2142
  }
2487
2143
  ),
2488
- /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("div", { className: (0, import_system53.cn)("col-start-2", classNames2.content), children })
2144
+ /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("div", { className: (0, import_system48.cn)("col-start-2", classNames2.content), children })
2489
2145
  ]
2490
2146
  }
2491
2147
  );
2492
2148
  };
2493
2149
 
2494
2150
  // src/NumberField/NumberField.tsx
2495
- var import_react36 = require("react");
2496
- var import_react_aria_components34 = require("react-aria-components");
2497
- var import_system55 = require("@marigold/system");
2151
+ var import_react30 = require("react");
2152
+ var import_react_aria_components39 = require("react-aria-components");
2153
+ var import_system50 = require("@marigold/system");
2498
2154
 
2499
2155
  // src/NumberField/StepButton.tsx
2500
- var import_react_aria_components33 = require("react-aria-components");
2501
- var import_system54 = require("@marigold/system");
2502
- var import_jsx_runtime64 = require("react/jsx-runtime");
2503
- var Plus = () => /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("svg", { width: 16, height: 16, viewBox: "0 0 20 20", fill: "currentColor", children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
2156
+ var import_react_aria_components38 = require("react-aria-components");
2157
+ var import_system49 = require("@marigold/system");
2158
+ var import_jsx_runtime59 = require("react/jsx-runtime");
2159
+ var Plus = () => /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("svg", { width: 16, height: 16, viewBox: "0 0 20 20", fill: "currentColor", children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
2504
2160
  "path",
2505
2161
  {
2506
2162
  fillRule: "evenodd",
@@ -2508,7 +2164,7 @@ var Plus = () => /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("svg", { width: 1
2508
2164
  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"
2509
2165
  }
2510
2166
  ) });
2511
- var Minus = () => /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("svg", { width: 16, height: 16, viewBox: "0 0 20 20", fill: "currentColor", children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
2167
+ var Minus = () => /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("svg", { width: 16, height: 16, viewBox: "0 0 20 20", fill: "currentColor", children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
2512
2168
  "path",
2513
2169
  {
2514
2170
  fillRule: "evenodd",
@@ -2518,10 +2174,10 @@ var Minus = () => /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("svg", { width:
2518
2174
  ) });
2519
2175
  var _StepButton = ({ direction, className, ...props }) => {
2520
2176
  const Icon3 = direction === "up" ? Plus : Minus;
2521
- return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
2522
- import_react_aria_components33.Button,
2177
+ return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
2178
+ import_react_aria_components38.Button,
2523
2179
  {
2524
- className: (0, import_system54.cn)(
2180
+ className: (0, import_system49.cn)(
2525
2181
  [
2526
2182
  "flex items-center justify-center",
2527
2183
  "cursor-pointer data-[disabled]:cursor-not-allowed"
@@ -2529,14 +2185,14 @@ var _StepButton = ({ direction, className, ...props }) => {
2529
2185
  className
2530
2186
  ),
2531
2187
  ...props,
2532
- children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(Icon3, {})
2188
+ children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(Icon3, {})
2533
2189
  }
2534
2190
  );
2535
2191
  };
2536
2192
 
2537
2193
  // src/NumberField/NumberField.tsx
2538
- var import_jsx_runtime65 = require("react/jsx-runtime");
2539
- var _NumberField = (0, import_react36.forwardRef)(
2194
+ var import_jsx_runtime60 = require("react/jsx-runtime");
2195
+ var _NumberField = (0, import_react30.forwardRef)(
2540
2196
  ({
2541
2197
  variant,
2542
2198
  size,
@@ -2547,7 +2203,7 @@ var _NumberField = (0, import_react36.forwardRef)(
2547
2203
  hideStepper,
2548
2204
  ...rest
2549
2205
  }, ref) => {
2550
- const classNames2 = (0, import_system55.useClassNames)({
2206
+ const classNames2 = (0, import_system50.useClassNames)({
2551
2207
  component: "NumberField",
2552
2208
  size,
2553
2209
  variant
@@ -2560,8 +2216,8 @@ var _NumberField = (0, import_react36.forwardRef)(
2560
2216
  ...rest
2561
2217
  };
2562
2218
  const showStepper = !hideStepper;
2563
- return /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(FieldBase, { as: import_react_aria_components34.NumberField, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(import_react_aria_components34.Group, { className: (0, import_system55.cn)("flex items-stretch", classNames2.group), children: [
2564
- showStepper && /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
2219
+ return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(FieldBase, { as: import_react_aria_components39.NumberField, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(import_react_aria_components39.Group, { className: (0, import_system50.cn)("flex items-stretch", classNames2.group), children: [
2220
+ showStepper && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
2565
2221
  _StepButton,
2566
2222
  {
2567
2223
  className: classNames2.stepper,
@@ -2569,7 +2225,7 @@ var _NumberField = (0, import_react36.forwardRef)(
2569
2225
  slot: "decrement"
2570
2226
  }
2571
2227
  ),
2572
- /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("div", { className: "flex-1", children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
2228
+ /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("div", { className: "flex-1", children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
2573
2229
  _Input,
2574
2230
  {
2575
2231
  ref,
@@ -2578,7 +2234,7 @@ var _NumberField = (0, import_react36.forwardRef)(
2578
2234
  className: classNames2.input
2579
2235
  }
2580
2236
  ) }),
2581
- showStepper && /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
2237
+ showStepper && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
2582
2238
  _StepButton,
2583
2239
  {
2584
2240
  className: classNames2.stepper,
@@ -2591,37 +2247,37 @@ var _NumberField = (0, import_react36.forwardRef)(
2591
2247
  );
2592
2248
 
2593
2249
  // src/Provider/index.ts
2594
- var import_system57 = require("@marigold/system");
2250
+ var import_system52 = require("@marigold/system");
2595
2251
 
2596
2252
  // src/Provider/MarigoldProvider.tsx
2597
- var import_overlays4 = require("@react-aria/overlays");
2598
- var import_system56 = require("@marigold/system");
2599
- var import_jsx_runtime66 = require("react/jsx-runtime");
2253
+ var import_overlays = require("@react-aria/overlays");
2254
+ var import_system51 = require("@marigold/system");
2255
+ var import_jsx_runtime61 = require("react/jsx-runtime");
2600
2256
  function MarigoldProvider({
2601
2257
  children,
2602
2258
  theme
2603
2259
  }) {
2604
- const outerTheme = (0, import_system56.useTheme)();
2605
- const isTopLevel = outerTheme === import_system56.defaultTheme;
2606
- return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(import_system56.ThemeProvider, { theme, children: isTopLevel ? /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(import_overlays4.OverlayProvider, { children }) : children });
2260
+ const outerTheme = (0, import_system51.useTheme)();
2261
+ const isTopLevel = outerTheme === import_system51.defaultTheme;
2262
+ return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(import_system51.ThemeProvider, { theme, children: isTopLevel ? /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(import_overlays.OverlayProvider, { children }) : children });
2607
2263
  }
2608
2264
 
2609
2265
  // src/Radio/Radio.tsx
2610
- var import_react38 = require("react");
2611
- var import_react_aria_components36 = require("react-aria-components");
2612
- var import_system59 = require("@marigold/system");
2266
+ var import_react32 = require("react");
2267
+ var import_react_aria_components41 = require("react-aria-components");
2268
+ var import_system54 = require("@marigold/system");
2613
2269
 
2614
2270
  // src/Radio/Context.ts
2615
- var import_react37 = require("react");
2616
- var RadioGroupContext = (0, import_react37.createContext)(
2271
+ var import_react31 = require("react");
2272
+ var RadioGroupContext = (0, import_react31.createContext)(
2617
2273
  null
2618
2274
  );
2619
- var useRadioGroupContext = () => (0, import_react37.useContext)(RadioGroupContext);
2275
+ var useRadioGroupContext = () => (0, import_react31.useContext)(RadioGroupContext);
2620
2276
 
2621
2277
  // src/Radio/RadioGroup.tsx
2622
- var import_react_aria_components35 = require("react-aria-components");
2623
- var import_system58 = require("@marigold/system");
2624
- var import_jsx_runtime67 = require("react/jsx-runtime");
2278
+ var import_react_aria_components40 = require("react-aria-components");
2279
+ var import_system53 = require("@marigold/system");
2280
+ var import_jsx_runtime62 = require("react/jsx-runtime");
2625
2281
  var _RadioGroup = ({
2626
2282
  variant,
2627
2283
  size,
@@ -2637,7 +2293,7 @@ var _RadioGroup = ({
2637
2293
  width,
2638
2294
  ...rest
2639
2295
  }) => {
2640
- const classNames2 = (0, import_system58.useClassNames)({ component: "Radio", variant, size });
2296
+ const classNames2 = (0, import_system53.useClassNames)({ component: "Radio", variant, size });
2641
2297
  const props = {
2642
2298
  isDisabled: disabled,
2643
2299
  isReadOnly: readOnly,
@@ -2645,10 +2301,10 @@ var _RadioGroup = ({
2645
2301
  isInvalid: error,
2646
2302
  ...rest
2647
2303
  };
2648
- return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
2304
+ return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
2649
2305
  FieldBase,
2650
2306
  {
2651
- as: import_react_aria_components35.RadioGroup,
2307
+ as: import_react_aria_components40.RadioGroup,
2652
2308
  width,
2653
2309
  label,
2654
2310
  description,
@@ -2656,18 +2312,18 @@ var _RadioGroup = ({
2656
2312
  variant,
2657
2313
  size,
2658
2314
  ...props,
2659
- children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
2315
+ children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
2660
2316
  "div",
2661
2317
  {
2662
2318
  role: "presentation",
2663
2319
  "data-testid": "group",
2664
2320
  "data-orientation": orientation,
2665
- className: (0, import_system58.cn)(
2321
+ className: (0, import_system53.cn)(
2666
2322
  classNames2.group,
2667
2323
  "flex items-start",
2668
2324
  orientation === "vertical" ? "flex-col gap-[0.5ch]" : "flex-row gap-[1.5ch]"
2669
2325
  ),
2670
- children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(RadioGroupContext.Provider, { value: { width, variant, size }, children })
2326
+ children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(RadioGroupContext.Provider, { value: { width, variant, size }, children })
2671
2327
  }
2672
2328
  )
2673
2329
  }
@@ -2675,33 +2331,33 @@ var _RadioGroup = ({
2675
2331
  };
2676
2332
 
2677
2333
  // src/Radio/Radio.tsx
2678
- var import_jsx_runtime68 = require("react/jsx-runtime");
2679
- var Dot = () => /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("svg", { viewBox: "0 0 6 6", children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("circle", { fill: "currentColor", cx: "3", cy: "3", r: "3" }) });
2680
- var Icon2 = ({ checked, className, ...props }) => /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
2334
+ var import_jsx_runtime63 = require("react/jsx-runtime");
2335
+ var Dot = () => /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("svg", { viewBox: "0 0 6 6", children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("circle", { fill: "currentColor", cx: "3", cy: "3", r: "3" }) });
2336
+ var Icon2 = ({ checked, className, ...props }) => /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
2681
2337
  "div",
2682
2338
  {
2683
- className: (0, import_system59.cn)(
2339
+ className: (0, import_system54.cn)(
2684
2340
  "bg-secondary-50 flex h-4 w-4 items-center justify-center rounded-[50%] border p-1",
2685
2341
  className
2686
2342
  ),
2687
2343
  "aria-hidden": "true",
2688
2344
  ...props,
2689
- children: checked ? /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(Dot, {}) : null
2345
+ children: checked ? /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(Dot, {}) : null
2690
2346
  }
2691
2347
  );
2692
- var _Radio = (0, import_react38.forwardRef)(
2348
+ var _Radio = (0, import_react32.forwardRef)(
2693
2349
  ({ value, disabled, width, children, ...props }, ref) => {
2694
2350
  const { variant, size, width: groupWidth } = useRadioGroupContext();
2695
- const classNames2 = (0, import_system59.useClassNames)({
2351
+ const classNames2 = (0, import_system54.useClassNames)({
2696
2352
  component: "Radio",
2697
2353
  variant: variant || props.variant,
2698
2354
  size: size || props.size
2699
2355
  });
2700
- return /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
2701
- import_react_aria_components36.Radio,
2356
+ return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
2357
+ import_react_aria_components41.Radio,
2702
2358
  {
2703
2359
  ref,
2704
- className: (0, import_system59.cn)(
2360
+ className: (0, import_system54.cn)(
2705
2361
  "group/radio",
2706
2362
  "relative flex items-center gap-[1ch]",
2707
2363
  width || groupWidth || "w-full",
@@ -2710,18 +2366,18 @@ var _Radio = (0, import_react38.forwardRef)(
2710
2366
  value,
2711
2367
  isDisabled: disabled,
2712
2368
  ...props,
2713
- children: ({ isSelected }) => /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)(import_jsx_runtime68.Fragment, { children: [
2714
- /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
2369
+ children: ({ isSelected }) => /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(import_jsx_runtime63.Fragment, { children: [
2370
+ /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
2715
2371
  Icon2,
2716
2372
  {
2717
2373
  checked: isSelected,
2718
- className: (0, import_system59.cn)(
2374
+ className: (0, import_system54.cn)(
2719
2375
  disabled ? "cursor-not-allowed" : "cursor-pointer",
2720
2376
  classNames2.radio
2721
2377
  )
2722
2378
  }
2723
2379
  ),
2724
- /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("div", { className: classNames2.label, children })
2380
+ /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("div", { className: classNames2.label, children })
2725
2381
  ] })
2726
2382
  }
2727
2383
  );
@@ -2730,10 +2386,10 @@ var _Radio = (0, import_react38.forwardRef)(
2730
2386
  _Radio.Group = _RadioGroup;
2731
2387
 
2732
2388
  // src/SearchField/SearchField.tsx
2733
- var import_react39 = require("react");
2734
- var import_react_aria_components37 = require("react-aria-components");
2735
- var import_jsx_runtime69 = require("react/jsx-runtime");
2736
- var SearchIcon2 = (props) => /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
2389
+ var import_react33 = require("react");
2390
+ var import_react_aria_components42 = require("react-aria-components");
2391
+ var import_jsx_runtime64 = require("react/jsx-runtime");
2392
+ var SearchIcon2 = (props) => /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
2737
2393
  "svg",
2738
2394
  {
2739
2395
  xmlns: "http://www.w3.org/2000/svg",
@@ -2742,10 +2398,10 @@ var SearchIcon2 = (props) => /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
2742
2398
  width: 24,
2743
2399
  height: 24,
2744
2400
  ...props,
2745
- children: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("path", { d: "M16.1865 14.5142H15.3057L14.9936 14.2131C16.0862 12.9421 16.744 11.292 16.744 9.497C16.744 5.49443 13.4996 2.25 9.497 2.25C5.49443 2.25 2.25 5.49443 2.25 9.497C2.25 13.4996 5.49443 16.744 9.497 16.744C11.292 16.744 12.9421 16.0862 14.2131 14.9936L14.5142 15.3057V16.1865L20.0888 21.75L21.75 20.0888L16.1865 14.5142ZM9.49701 14.5142C6.72085 14.5142 4.47986 12.2732 4.47986 9.49701C4.47986 6.72085 6.72085 4.47986 9.49701 4.47986C12.2732 4.47986 14.5142 6.72085 14.5142 9.49701C14.5142 12.2732 12.2732 14.5142 9.49701 14.5142Z" })
2401
+ children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("path", { d: "M16.1865 14.5142H15.3057L14.9936 14.2131C16.0862 12.9421 16.744 11.292 16.744 9.497C16.744 5.49443 13.4996 2.25 9.497 2.25C5.49443 2.25 2.25 5.49443 2.25 9.497C2.25 13.4996 5.49443 16.744 9.497 16.744C11.292 16.744 12.9421 16.0862 14.2131 14.9936L14.5142 15.3057V16.1865L20.0888 21.75L21.75 20.0888L16.1865 14.5142ZM9.49701 14.5142C6.72085 14.5142 4.47986 12.2732 4.47986 9.49701C4.47986 6.72085 6.72085 4.47986 9.49701 4.47986C12.2732 4.47986 14.5142 6.72085 14.5142 9.49701C14.5142 12.2732 12.2732 14.5142 9.49701 14.5142Z" })
2746
2402
  }
2747
2403
  );
2748
- var _SearchField = (0, import_react39.forwardRef)(
2404
+ var _SearchField = (0, import_react33.forwardRef)(
2749
2405
  ({ disabled, required, readOnly, error, action, ...rest }, ref) => {
2750
2406
  const props = {
2751
2407
  ...rest,
@@ -2754,16 +2410,16 @@ var _SearchField = (0, import_react39.forwardRef)(
2754
2410
  isReadOnly: readOnly,
2755
2411
  isInvalid: error
2756
2412
  };
2757
- return /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(FieldBase, { as: import_react_aria_components37.SearchField, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(_Input, { ref, icon: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(SearchIcon2, {}) }) });
2413
+ return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(FieldBase, { as: import_react_aria_components42.SearchField, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(_Input, { ref, icon: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(SearchIcon2, {}) }) });
2758
2414
  }
2759
2415
  );
2760
2416
 
2761
2417
  // src/Select/Select.tsx
2762
- var import_react40 = require("react");
2763
- var import_react_aria_components38 = require("react-aria-components");
2764
- var import_system60 = require("@marigold/system");
2765
- var import_jsx_runtime70 = require("react/jsx-runtime");
2766
- var _Select = (0, import_react40.forwardRef)(
2418
+ var import_react34 = require("react");
2419
+ var import_react_aria_components43 = require("react-aria-components");
2420
+ var import_system55 = require("@marigold/system");
2421
+ var import_jsx_runtime65 = require("react/jsx-runtime");
2422
+ var _Select = (0, import_react34.forwardRef)(
2767
2423
  ({
2768
2424
  width,
2769
2425
  disabled,
@@ -2784,22 +2440,22 @@ var _Select = (0, import_react40.forwardRef)(
2784
2440
  onSelectionChange: onChange,
2785
2441
  ...rest
2786
2442
  };
2787
- const classNames2 = (0, import_system60.useClassNames)({ component: "Select", variant, size });
2788
- return /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)(FieldBase, { isOpen: true, as: import_react_aria_components38.Select, ref, ...props, children: [
2789
- /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)(
2790
- import_react_aria_components38.Button,
2443
+ const classNames2 = (0, import_system55.useClassNames)({ component: "Select", variant, size });
2444
+ return /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(FieldBase, { isOpen: true, as: import_react_aria_components43.Select, ref, ...props, children: [
2445
+ /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(
2446
+ import_react_aria_components43.Button,
2791
2447
  {
2792
- className: (0, import_system60.cn)(
2448
+ className: (0, import_system55.cn)(
2793
2449
  "flex w-full items-center justify-between gap-1 overflow-hidden",
2794
2450
  classNames2.select
2795
2451
  ),
2796
2452
  children: [
2797
- /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(import_react_aria_components38.SelectValue, {}),
2798
- /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(ChevronDown, { className: "h-4 w-4" })
2453
+ /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(import_react_aria_components43.SelectValue, {}),
2454
+ /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(ChevronDown, { className: "h-4 w-4" })
2799
2455
  ]
2800
2456
  }
2801
2457
  ),
2802
- /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(_Popover, { children: /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(_ListBox, { items, children: props.children }) })
2458
+ /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(_Popover, { children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(_ListBox, { items, children: props.children }) })
2803
2459
  ] });
2804
2460
  }
2805
2461
  );
@@ -2807,11 +2463,11 @@ _Select.Option = _ListBox.Item;
2807
2463
  _Select.Section = _ListBox.Section;
2808
2464
 
2809
2465
  // src/Slider/Slider.tsx
2810
- var import_react41 = require("react");
2811
- var import_react_aria_components39 = require("react-aria-components");
2812
- var import_system61 = require("@marigold/system");
2813
- var import_jsx_runtime71 = require("react/jsx-runtime");
2814
- var _Slider = (0, import_react41.forwardRef)(
2466
+ var import_react35 = require("react");
2467
+ var import_react_aria_components44 = require("react-aria-components");
2468
+ var import_system56 = require("@marigold/system");
2469
+ var import_jsx_runtime66 = require("react/jsx-runtime");
2470
+ var _Slider = (0, import_react35.forwardRef)(
2815
2471
  ({
2816
2472
  thumbLabels,
2817
2473
  variant,
@@ -2820,7 +2476,7 @@ var _Slider = (0, import_react41.forwardRef)(
2820
2476
  disabled,
2821
2477
  ...rest
2822
2478
  }, ref) => {
2823
- const classNames2 = (0, import_system61.useClassNames)({
2479
+ const classNames2 = (0, import_system56.useClassNames)({
2824
2480
  component: "Slider",
2825
2481
  variant,
2826
2482
  size
@@ -2829,27 +2485,27 @@ var _Slider = (0, import_react41.forwardRef)(
2829
2485
  isDisabled: disabled,
2830
2486
  ...rest
2831
2487
  };
2832
- return /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)(
2833
- import_react_aria_components39.Slider,
2488
+ return /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(
2489
+ import_react_aria_components44.Slider,
2834
2490
  {
2835
- className: (0, import_system61.cn)(
2491
+ className: (0, import_system56.cn)(
2836
2492
  "grid grid-cols-[auto_1fr] gap-y-1",
2837
2493
  classNames2.container,
2838
- import_system61.width[width]
2494
+ import_system56.width[width]
2839
2495
  ),
2840
2496
  ref,
2841
2497
  ...props,
2842
2498
  children: [
2843
- /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(_Label, { children: props.children }),
2844
- /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(import_react_aria_components39.SliderOutput, { className: (0, import_system61.cn)("flex justify-end", classNames2.output), children: ({ state }) => state.values.map((_, i) => state.getThumbValueLabel(i)).join(" \u2013 ") }),
2845
- /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
2846
- import_react_aria_components39.SliderTrack,
2499
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(_Label, { children: props.children }),
2500
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(import_react_aria_components44.SliderOutput, { className: (0, import_system56.cn)("flex justify-end", classNames2.output), children: ({ state }) => state.values.map((_, i) => state.getThumbValueLabel(i)).join(" \u2013 ") }),
2501
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
2502
+ import_react_aria_components44.SliderTrack,
2847
2503
  {
2848
- className: (0, import_system61.cn)("relative col-span-2 h-2 w-full", classNames2.track),
2849
- children: ({ state }) => state.values.map((_, i) => /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
2850
- import_react_aria_components39.SliderThumb,
2504
+ className: (0, import_system56.cn)("relative col-span-2 h-2 w-full", classNames2.track),
2505
+ children: ({ state }) => state.values.map((_, i) => /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
2506
+ import_react_aria_components44.SliderThumb,
2851
2507
  {
2852
- className: (0, import_system61.cn)("top-1/2 cursor-pointer", classNames2.thumb),
2508
+ className: (0, import_system56.cn)("top-1/2 cursor-pointer", classNames2.thumb),
2853
2509
  index: i,
2854
2510
  "aria-label": thumbLabels == null ? void 0 : thumbLabels[i]
2855
2511
  },
@@ -2864,12 +2520,12 @@ var _Slider = (0, import_react41.forwardRef)(
2864
2520
  );
2865
2521
 
2866
2522
  // src/Split/Split.tsx
2867
- var import_jsx_runtime72 = require("react/jsx-runtime");
2868
- var Split = (props) => /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("div", { ...props, role: "separator", className: "grow" });
2523
+ var import_jsx_runtime67 = require("react/jsx-runtime");
2524
+ var Split = (props) => /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("div", { ...props, role: "separator", className: "grow" });
2869
2525
 
2870
2526
  // src/Stack/Stack.tsx
2871
- var import_system62 = require("@marigold/system");
2872
- var import_jsx_runtime73 = require("react/jsx-runtime");
2527
+ var import_system57 = require("@marigold/system");
2528
+ var import_jsx_runtime68 = require("react/jsx-runtime");
2873
2529
  var Stack = ({
2874
2530
  children,
2875
2531
  space = 0,
@@ -2880,14 +2536,14 @@ var Stack = ({
2880
2536
  ...props
2881
2537
  }) => {
2882
2538
  var _a, _b, _c, _d;
2883
- return /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
2539
+ return /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
2884
2540
  "div",
2885
2541
  {
2886
- className: (0, import_system62.cn)(
2542
+ className: (0, import_system57.cn)(
2887
2543
  "flex flex-col",
2888
- import_system62.gapSpace[space],
2889
- alignX && ((_b = (_a = import_system62.alignment) == null ? void 0 : _a.vertical) == null ? void 0 : _b.alignmentX[alignX]),
2890
- alignY && ((_d = (_c = import_system62.alignment) == null ? void 0 : _c.vertical) == null ? void 0 : _d.alignmentY[alignY]),
2544
+ import_system57.gapSpace[space],
2545
+ alignX && ((_b = (_a = import_system57.alignment) == null ? void 0 : _a.vertical) == null ? void 0 : _b.alignmentX[alignX]),
2546
+ alignY && ((_d = (_c = import_system57.alignment) == null ? void 0 : _c.vertical) == null ? void 0 : _d.alignmentY[alignY]),
2891
2547
  stretch && "h-full w-full"
2892
2548
  ),
2893
2549
  ...props,
@@ -2897,11 +2553,11 @@ var Stack = ({
2897
2553
  };
2898
2554
 
2899
2555
  // src/Switch/Switch.tsx
2900
- var import_react42 = require("react");
2901
- var import_react_aria_components40 = require("react-aria-components");
2902
- var import_system63 = require("@marigold/system");
2903
- var import_jsx_runtime74 = require("react/jsx-runtime");
2904
- var _Switch = (0, import_react42.forwardRef)(
2556
+ var import_react36 = require("react");
2557
+ var import_react_aria_components45 = require("react-aria-components");
2558
+ var import_system58 = require("@marigold/system");
2559
+ var import_jsx_runtime69 = require("react/jsx-runtime");
2560
+ var _Switch = (0, import_react36.forwardRef)(
2905
2561
  ({
2906
2562
  variant,
2907
2563
  size,
@@ -2912,37 +2568,37 @@ var _Switch = (0, import_react42.forwardRef)(
2912
2568
  readOnly,
2913
2569
  ...rest
2914
2570
  }, ref) => {
2915
- const classNames2 = (0, import_system63.useClassNames)({ component: "Switch", size, variant });
2571
+ const classNames2 = (0, import_system58.useClassNames)({ component: "Switch", size, variant });
2916
2572
  const props = {
2917
2573
  isDisabled: disabled,
2918
2574
  isReadOnly: readOnly,
2919
2575
  isSelected: selected,
2920
2576
  ...rest
2921
2577
  };
2922
- return /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)(
2923
- import_react_aria_components40.Switch,
2578
+ return /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
2579
+ import_react_aria_components45.Switch,
2924
2580
  {
2925
2581
  ...props,
2926
2582
  ref,
2927
- className: (0, import_system63.cn)(
2928
- import_system63.width[width],
2583
+ className: (0, import_system58.cn)(
2584
+ import_system58.width[width],
2929
2585
  "group/switch",
2930
2586
  "flex items-center justify-between gap-[1ch]",
2931
2587
  classNames2.container
2932
2588
  ),
2933
2589
  children: [
2934
- /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(_Label, { elementType: "span", children }),
2935
- /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("div", { className: "relative", children: /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
2590
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(_Label, { elementType: "span", children }),
2591
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("div", { className: "relative", children: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
2936
2592
  "div",
2937
2593
  {
2938
- className: (0, import_system63.cn)(
2594
+ className: (0, import_system58.cn)(
2939
2595
  "h-6 w-12 basis-12 rounded-3xl group-disabled/switch:cursor-not-allowed ",
2940
2596
  classNames2.track
2941
2597
  ),
2942
- children: /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
2598
+ children: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
2943
2599
  "div",
2944
2600
  {
2945
- className: (0, import_system63.cn)(
2601
+ className: (0, import_system58.cn)(
2946
2602
  "h-[22px] w-[22px]",
2947
2603
  "cubic-bezier(.7,0,.3,1)",
2948
2604
  "absolute left-0 top-px",
@@ -2961,33 +2617,33 @@ var _Switch = (0, import_react42.forwardRef)(
2961
2617
  );
2962
2618
 
2963
2619
  // src/Table/Table.tsx
2964
- var import_react50 = require("react");
2620
+ var import_react44 = require("react");
2965
2621
  var import_table9 = require("@react-aria/table");
2966
2622
  var import_table10 = require("@react-stately/table");
2967
- var import_system70 = require("@marigold/system");
2623
+ var import_system65 = require("@marigold/system");
2968
2624
 
2969
2625
  // src/Table/Context.tsx
2970
- var import_react43 = require("react");
2971
- var TableContext = (0, import_react43.createContext)({});
2972
- var useTableContext = () => (0, import_react43.useContext)(TableContext);
2626
+ var import_react37 = require("react");
2627
+ var TableContext = (0, import_react37.createContext)({});
2628
+ var useTableContext = () => (0, import_react37.useContext)(TableContext);
2973
2629
 
2974
2630
  // src/Table/TableBody.tsx
2975
2631
  var import_table = require("@react-aria/table");
2976
- var import_jsx_runtime75 = require("react/jsx-runtime");
2632
+ var import_jsx_runtime70 = require("react/jsx-runtime");
2977
2633
  var TableBody = ({ children }) => {
2978
2634
  const { rowGroupProps } = (0, import_table.useTableRowGroup)();
2979
- return /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("tbody", { ...rowGroupProps, children });
2635
+ return /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("tbody", { ...rowGroupProps, children });
2980
2636
  };
2981
2637
 
2982
2638
  // src/Table/TableCell.tsx
2983
- var import_react44 = require("react");
2984
- var import_focus6 = require("@react-aria/focus");
2639
+ var import_react38 = require("react");
2640
+ var import_focus2 = require("@react-aria/focus");
2985
2641
  var import_table2 = require("@react-aria/table");
2986
- var import_utils9 = require("@react-aria/utils");
2987
- var import_system64 = require("@marigold/system");
2988
- var import_jsx_runtime76 = require("react/jsx-runtime");
2989
- var TableCell = ({ cell }) => {
2990
- const ref = (0, import_react44.useRef)(null);
2642
+ var import_utils3 = require("@react-aria/utils");
2643
+ var import_system59 = require("@marigold/system");
2644
+ var import_jsx_runtime71 = require("react/jsx-runtime");
2645
+ var TableCell = ({ cell, align }) => {
2646
+ const ref = (0, import_react38.useRef)(null);
2991
2647
  const { interactive, state, classNames: classNames2 } = useTableContext();
2992
2648
  const disabled = state.disabledKeys.has(cell.parentKey);
2993
2649
  const { gridCellProps } = (0, import_table2.useTableCell)(
@@ -3006,26 +2662,27 @@ var TableCell = ({ cell }) => {
3006
2662
  onMouseDown: (e) => e.stopPropagation(),
3007
2663
  onPointerDown: (e) => e.stopPropagation()
3008
2664
  };
3009
- const { focusProps, isFocusVisible } = (0, import_focus6.useFocusRing)();
3010
- const stateProps = (0, import_system64.useStateProps)({ disabled, focusVisible: isFocusVisible });
3011
- return /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
2665
+ const { focusProps, isFocusVisible } = (0, import_focus2.useFocusRing)();
2666
+ const stateProps = (0, import_system59.useStateProps)({ disabled, focusVisible: isFocusVisible });
2667
+ return /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
3012
2668
  "td",
3013
2669
  {
3014
2670
  ref,
3015
2671
  className: classNames2 == null ? void 0 : classNames2.cell,
3016
- ...(0, import_utils9.mergeProps)(cellProps, focusProps),
2672
+ ...(0, import_utils3.mergeProps)(cellProps, focusProps),
3017
2673
  ...stateProps,
2674
+ align,
3018
2675
  children: cell.rendered
3019
2676
  }
3020
2677
  );
3021
2678
  };
3022
2679
 
3023
2680
  // src/Table/TableCheckboxCell.tsx
3024
- var import_react45 = require("react");
3025
- var import_focus7 = require("@react-aria/focus");
2681
+ var import_react39 = require("react");
2682
+ var import_focus3 = require("@react-aria/focus");
3026
2683
  var import_table3 = require("@react-aria/table");
3027
- var import_utils10 = require("@react-aria/utils");
3028
- var import_system65 = require("@marigold/system");
2684
+ var import_utils4 = require("@react-aria/utils");
2685
+ var import_system60 = require("@marigold/system");
3029
2686
 
3030
2687
  // src/Table/utils.ts
3031
2688
  var mapCheckboxProps = ({
@@ -3048,9 +2705,9 @@ var mapCheckboxProps = ({
3048
2705
  };
3049
2706
 
3050
2707
  // src/Table/TableCheckboxCell.tsx
3051
- var import_jsx_runtime77 = require("react/jsx-runtime");
3052
- var TableCheckboxCell = ({ cell }) => {
3053
- const ref = (0, import_react45.useRef)(null);
2708
+ var import_jsx_runtime72 = require("react/jsx-runtime");
2709
+ var TableCheckboxCell = ({ cell, align }) => {
2710
+ const ref = (0, import_react39.useRef)(null);
3054
2711
  const { state, classNames: classNames2 } = useTableContext();
3055
2712
  const disabled = state.disabledKeys.has(cell.parentKey);
3056
2713
  const { gridCellProps } = (0, import_table3.useTableCell)(
@@ -3063,36 +2720,38 @@ var TableCheckboxCell = ({ cell }) => {
3063
2720
  const { checkboxProps } = mapCheckboxProps(
3064
2721
  (0, import_table3.useTableSelectionCheckbox)({ key: cell.parentKey }, state)
3065
2722
  );
3066
- const { focusProps, isFocusVisible } = (0, import_focus7.useFocusRing)();
3067
- const stateProps = (0, import_system65.useStateProps)({ disabled, focusVisible: isFocusVisible });
3068
- return /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
2723
+ const { focusProps, isFocusVisible } = (0, import_focus3.useFocusRing)();
2724
+ const stateProps = (0, import_system60.useStateProps)({ disabled, focusVisible: isFocusVisible });
2725
+ return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
3069
2726
  "td",
3070
2727
  {
3071
2728
  ref,
3072
- className: (0, import_system65.cn)("text-center align-middle leading-none", classNames2 == null ? void 0 : classNames2.cell),
3073
- ...(0, import_utils10.mergeProps)(gridCellProps, focusProps),
2729
+ className: (0, import_system60.cn)("text-center align-middle leading-none", classNames2 == null ? void 0 : classNames2.cell),
2730
+ align,
2731
+ ...(0, import_utils4.mergeProps)(gridCellProps, focusProps),
3074
2732
  ...stateProps,
3075
- children: /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(_Checkbox, { ...checkboxProps })
2733
+ children: /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(_Checkbox, { ...checkboxProps })
3076
2734
  }
3077
2735
  );
3078
2736
  };
3079
2737
 
3080
2738
  // src/Table/TableColumnHeader.tsx
3081
- var import_react46 = require("react");
3082
- var import_focus8 = require("@react-aria/focus");
3083
- var import_interactions2 = require("@react-aria/interactions");
2739
+ var import_react40 = require("react");
2740
+ var import_focus4 = require("@react-aria/focus");
2741
+ var import_interactions = require("@react-aria/interactions");
3084
2742
  var import_table4 = require("@react-aria/table");
3085
- var import_utils12 = require("@react-aria/utils");
2743
+ var import_utils6 = require("@react-aria/utils");
3086
2744
  var import_icons3 = require("@marigold/icons");
3087
- var import_system66 = require("@marigold/system");
3088
- var import_system67 = require("@marigold/system");
3089
- var import_jsx_runtime78 = require("react/jsx-runtime");
2745
+ var import_system61 = require("@marigold/system");
2746
+ var import_system62 = require("@marigold/system");
2747
+ var import_jsx_runtime73 = require("react/jsx-runtime");
3090
2748
  var TableColumnHeader = ({
3091
2749
  column,
3092
- width = "auto"
2750
+ width = "auto",
2751
+ align
3093
2752
  }) => {
3094
2753
  var _a, _b;
3095
- const ref = (0, import_react46.useRef)(null);
2754
+ const ref = (0, import_react40.useRef)(null);
3096
2755
  const { state, classNames: classNames2 } = useTableContext();
3097
2756
  const { columnHeaderProps } = (0, import_table4.useTableColumnHeader)(
3098
2757
  {
@@ -3101,23 +2760,24 @@ var TableColumnHeader = ({
3101
2760
  state,
3102
2761
  ref
3103
2762
  );
3104
- const { hoverProps, isHovered } = (0, import_interactions2.useHover)({});
3105
- const { focusProps, isFocusVisible } = (0, import_focus8.useFocusRing)();
3106
- const stateProps = (0, import_system66.useStateProps)({
2763
+ const { hoverProps, isHovered } = (0, import_interactions.useHover)({});
2764
+ const { focusProps, isFocusVisible } = (0, import_focus4.useFocusRing)();
2765
+ const stateProps = (0, import_system61.useStateProps)({
3107
2766
  hover: isHovered,
3108
2767
  focusVisible: isFocusVisible
3109
2768
  });
3110
- return /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)(
2769
+ return /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)(
3111
2770
  "th",
3112
2771
  {
3113
2772
  colSpan: column.colspan,
3114
2773
  ref,
3115
- className: (0, import_system66.cn)("cursor-default", import_system67.width[width], classNames2 == null ? void 0 : classNames2.header),
3116
- ...(0, import_utils12.mergeProps)(columnHeaderProps, hoverProps, focusProps),
2774
+ className: (0, import_system61.cn)("cursor-default", import_system62.width[width], classNames2 == null ? void 0 : classNames2.header),
2775
+ ...(0, import_utils6.mergeProps)(columnHeaderProps, hoverProps, focusProps),
3117
2776
  ...stateProps,
2777
+ align,
3118
2778
  children: [
3119
2779
  column.rendered,
3120
- column.props.allowsSorting && (((_a = state.sortDescriptor) == null ? void 0 : _a.column) === column.key ? ((_b = state.sortDescriptor) == null ? void 0 : _b.direction) === "ascending" ? /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(import_icons3.SortUp, { className: "inline-block" }) : /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(import_icons3.SortDown, { className: "inline-block" }) : /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(import_icons3.SortDown, { className: "inline-block" }))
2780
+ column.props.allowsSorting && (((_a = state.sortDescriptor) == null ? void 0 : _a.column) === column.key ? ((_b = state.sortDescriptor) == null ? void 0 : _b.direction) === "ascending" ? /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(import_icons3.SortUp, { className: "inline-block" }) : /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(import_icons3.SortDown, { className: "inline-block" }) : /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(import_icons3.SortDown, { className: "inline-block" }))
3121
2781
  ]
3122
2782
  }
3123
2783
  );
@@ -3125,36 +2785,36 @@ var TableColumnHeader = ({
3125
2785
 
3126
2786
  // src/Table/TableHeader.tsx
3127
2787
  var import_table5 = require("@react-aria/table");
3128
- var import_jsx_runtime79 = require("react/jsx-runtime");
2788
+ var import_jsx_runtime74 = require("react/jsx-runtime");
3129
2789
  var TableHeader = ({ children }) => {
3130
2790
  const { rowGroupProps } = (0, import_table5.useTableRowGroup)();
3131
- return /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("thead", { ...rowGroupProps, children });
2791
+ return /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("thead", { ...rowGroupProps, children });
3132
2792
  };
3133
2793
 
3134
2794
  // src/Table/TableHeaderRow.tsx
3135
- var import_react47 = require("react");
2795
+ var import_react41 = require("react");
3136
2796
  var import_table6 = require("@react-aria/table");
3137
- var import_jsx_runtime80 = require("react/jsx-runtime");
2797
+ var import_jsx_runtime75 = require("react/jsx-runtime");
3138
2798
  var TableHeaderRow = ({ item, children }) => {
3139
2799
  const { state } = useTableContext();
3140
- const ref = (0, import_react47.useRef)(null);
2800
+ const ref = (0, import_react41.useRef)(null);
3141
2801
  const { rowProps } = (0, import_table6.useTableHeaderRow)({ node: item }, state, ref);
3142
- return /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("tr", { ...rowProps, ref, children });
2802
+ return /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("tr", { ...rowProps, ref, children });
3143
2803
  };
3144
2804
 
3145
2805
  // src/Table/TableRow.tsx
3146
- var import_react48 = require("react");
3147
- var import_focus9 = require("@react-aria/focus");
3148
- var import_interactions3 = require("@react-aria/interactions");
2806
+ var import_react42 = require("react");
2807
+ var import_focus5 = require("@react-aria/focus");
2808
+ var import_interactions2 = require("@react-aria/interactions");
3149
2809
  var import_table7 = require("@react-aria/table");
3150
- var import_utils13 = require("@react-aria/utils");
3151
- var import_system68 = require("@marigold/system");
3152
- var import_jsx_runtime81 = require("react/jsx-runtime");
2810
+ var import_utils7 = require("@react-aria/utils");
2811
+ var import_system63 = require("@marigold/system");
2812
+ var import_jsx_runtime76 = require("react/jsx-runtime");
3153
2813
  var TableRow = ({ children, row }) => {
3154
- const ref = (0, import_react48.useRef)(null);
2814
+ const ref = (0, import_react42.useRef)(null);
3155
2815
  const { interactive, state, ...ctx } = useTableContext();
3156
2816
  const { variant, size } = row.props;
3157
- const classNames2 = (0, import_system68.useClassNames)({
2817
+ const classNames2 = (0, import_system63.useClassNames)({
3158
2818
  component: "Table",
3159
2819
  variant: variant || ctx.variant,
3160
2820
  size: size || ctx.size
@@ -3168,28 +2828,28 @@ var TableRow = ({ children, row }) => {
3168
2828
  );
3169
2829
  const disabled = state.disabledKeys.has(row.key);
3170
2830
  const selected = state.selectionManager.isSelected(row.key);
3171
- const { focusProps, isFocusVisible } = (0, import_focus9.useFocusRing)({ within: true });
3172
- const { hoverProps, isHovered } = (0, import_interactions3.useHover)({
2831
+ const { focusProps, isFocusVisible } = (0, import_focus5.useFocusRing)({ within: true });
2832
+ const { hoverProps, isHovered } = (0, import_interactions2.useHover)({
3173
2833
  isDisabled: disabled || !interactive
3174
2834
  });
3175
- const stateProps = (0, import_system68.useStateProps)({
2835
+ const stateProps = (0, import_system63.useStateProps)({
3176
2836
  disabled,
3177
2837
  selected,
3178
2838
  hover: isHovered,
3179
2839
  focusVisible: isFocusVisible,
3180
2840
  active: isPressed
3181
2841
  });
3182
- return /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
2842
+ return /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
3183
2843
  "tr",
3184
2844
  {
3185
2845
  ref,
3186
- className: (0, import_system68.cn)(
2846
+ className: (0, import_system63.cn)(
3187
2847
  [
3188
2848
  !interactive ? "cursor-text" : disabled ? "cursor-default" : "cursor-pointer"
3189
2849
  ],
3190
2850
  classNames2 == null ? void 0 : classNames2.row
3191
2851
  ),
3192
- ...(0, import_utils13.mergeProps)(rowProps, focusProps, hoverProps),
2852
+ ...(0, import_utils7.mergeProps)(rowProps, focusProps, hoverProps),
3193
2853
  ...stateProps,
3194
2854
  children
3195
2855
  }
@@ -3197,18 +2857,19 @@ var TableRow = ({ children, row }) => {
3197
2857
  };
3198
2858
 
3199
2859
  // src/Table/TableSelectAllCell.tsx
3200
- var import_react49 = require("react");
3201
- var import_focus10 = require("@react-aria/focus");
3202
- var import_interactions4 = require("@react-aria/interactions");
2860
+ var import_react43 = require("react");
2861
+ var import_focus6 = require("@react-aria/focus");
2862
+ var import_interactions3 = require("@react-aria/interactions");
3203
2863
  var import_table8 = require("@react-aria/table");
3204
- var import_utils14 = require("@react-aria/utils");
3205
- var import_system69 = require("@marigold/system");
3206
- var import_jsx_runtime82 = require("react/jsx-runtime");
2864
+ var import_utils8 = require("@react-aria/utils");
2865
+ var import_system64 = require("@marigold/system");
2866
+ var import_jsx_runtime77 = require("react/jsx-runtime");
3207
2867
  var TableSelectAllCell = ({
3208
2868
  column,
3209
- width = "auto"
2869
+ width = "auto",
2870
+ align
3210
2871
  }) => {
3211
- const ref = (0, import_react49.useRef)(null);
2872
+ const ref = (0, import_react43.useRef)(null);
3212
2873
  const { state, classNames: classNames2 } = useTableContext();
3213
2874
  const { columnHeaderProps } = (0, import_table8.useTableColumnHeader)(
3214
2875
  {
@@ -3218,30 +2879,31 @@ var TableSelectAllCell = ({
3218
2879
  ref
3219
2880
  );
3220
2881
  const { checkboxProps } = mapCheckboxProps((0, import_table8.useTableSelectAllCheckbox)(state));
3221
- const { hoverProps, isHovered } = (0, import_interactions4.useHover)({});
3222
- const { focusProps, isFocusVisible } = (0, import_focus10.useFocusRing)();
3223
- const stateProps = (0, import_system69.useStateProps)({
2882
+ const { hoverProps, isHovered } = (0, import_interactions3.useHover)({});
2883
+ const { focusProps, isFocusVisible } = (0, import_focus6.useFocusRing)();
2884
+ const stateProps = (0, import_system64.useStateProps)({
3224
2885
  hover: isHovered,
3225
2886
  focusVisible: isFocusVisible
3226
2887
  });
3227
- return /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
2888
+ return /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
3228
2889
  "th",
3229
2890
  {
3230
2891
  ref,
3231
- className: (0, import_system69.cn)(
3232
- import_system69.width[width],
2892
+ className: (0, import_system64.cn)(
2893
+ import_system64.width[width],
3233
2894
  ["text-center align-middle leading-none"],
3234
2895
  classNames2 == null ? void 0 : classNames2.header
3235
2896
  ),
3236
- ...(0, import_utils14.mergeProps)(columnHeaderProps, hoverProps, focusProps),
2897
+ align,
2898
+ ...(0, import_utils8.mergeProps)(columnHeaderProps, hoverProps, focusProps),
3237
2899
  ...stateProps,
3238
- children: /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(_Checkbox, { ...checkboxProps })
2900
+ children: /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(_Checkbox, { ...checkboxProps })
3239
2901
  }
3240
2902
  );
3241
2903
  };
3242
2904
 
3243
2905
  // src/Table/Table.tsx
3244
- var import_jsx_runtime83 = require("react/jsx-runtime");
2906
+ var import_jsx_runtime78 = require("react/jsx-runtime");
3245
2907
  var Table = ({
3246
2908
  variant,
3247
2909
  size,
@@ -3250,7 +2912,7 @@ var Table = ({
3250
2912
  ...props
3251
2913
  }) => {
3252
2914
  const interactive = selectionMode !== "none";
3253
- const tableRef = (0, import_react50.useRef)(null);
2915
+ const tableRef = (0, import_react44.useRef)(null);
3254
2916
  const state = (0, import_table10.useTableState)({
3255
2917
  ...props,
3256
2918
  selectionMode,
@@ -3258,21 +2920,21 @@ var Table = ({
3258
2920
  props.selectionBehavior !== "replace"
3259
2921
  });
3260
2922
  const { gridProps } = (0, import_table9.useTable)(props, state, tableRef);
3261
- const classNames2 = (0, import_system70.useClassNames)({
2923
+ const classNames2 = (0, import_system65.useClassNames)({
3262
2924
  component: "Table",
3263
2925
  variant,
3264
2926
  size
3265
2927
  });
3266
2928
  const { collection } = state;
3267
- return /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
2929
+ return /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
3268
2930
  TableContext.Provider,
3269
2931
  {
3270
2932
  value: { state, interactive, classNames: classNames2, variant, size },
3271
- children: /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)(
2933
+ children: /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)(
3272
2934
  "table",
3273
2935
  {
3274
2936
  ref: tableRef,
3275
- className: (0, import_system70.cn)(
2937
+ className: (0, import_system65.cn)(
3276
2938
  "group/table",
3277
2939
  "border-collapse overflow-auto whitespace-nowrap",
3278
2940
  stretch ? "table w-full" : "block",
@@ -3280,34 +2942,48 @@ var Table = ({
3280
2942
  ),
3281
2943
  ...gridProps,
3282
2944
  children: [
3283
- /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(TableHeader, { children: collection.headerRows.map((headerRow) => /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(TableHeaderRow, { item: headerRow, children: [...collection.getChildren(headerRow.key)].map(
2945
+ /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(TableHeader, { children: collection.headerRows.map((headerRow) => /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(TableHeaderRow, { item: headerRow, children: [...collection.getChildren(headerRow.key)].map(
3284
2946
  (column) => {
3285
- var _a, _b, _c;
3286
- return ((_a = column.props) == null ? void 0 : _a.isSelectionCell) ? /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
2947
+ var _a, _b, _c, _d;
2948
+ return ((_a = column.props) == null ? void 0 : _a.isSelectionCell) ? /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
3287
2949
  TableSelectAllCell,
3288
2950
  {
3289
2951
  width: (_b = column.props) == null ? void 0 : _b.width,
3290
2952
  column
3291
2953
  },
3292
2954
  column.key
3293
- ) : /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
2955
+ ) : /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
3294
2956
  TableColumnHeader,
3295
2957
  {
3296
2958
  width: (_c = column.props) == null ? void 0 : _c.width,
3297
- column
2959
+ column,
2960
+ align: (_d = column.props) == null ? void 0 : _d.align
3298
2961
  },
3299
2962
  column.key
3300
2963
  );
3301
2964
  }
3302
2965
  ) }, headerRow.key)) }),
3303
- /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)(TableBody, { children: [
2966
+ /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)(TableBody, { children: [
3304
2967
  ...collection.rows.map(
3305
- (row) => row.type === "item" && /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(TableRow, { row, children: [...collection.getChildren(row.key)].map(
3306
- (cell) => {
3307
- var _a;
3308
- return ((_a = cell.props) == null ? void 0 : _a.isSelectionCell) ? /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(TableCheckboxCell, { cell }, cell.key) : /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(TableCell, { cell }, cell.key);
3309
- }
3310
- ) }, row.key)
2968
+ (row) => row.type === "item" && /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(TableRow, { row, children: [...collection.getChildren(row.key)].map((cell, index) => {
2969
+ var _a, _b, _c;
2970
+ const currentColumn = collection.columns[index];
2971
+ return ((_a = cell.props) == null ? void 0 : _a.isSelectionCell) ? /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
2972
+ TableCheckboxCell,
2973
+ {
2974
+ align: (_b = currentColumn.props) == null ? void 0 : _b.align,
2975
+ cell
2976
+ },
2977
+ cell.key
2978
+ ) : /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
2979
+ TableCell,
2980
+ {
2981
+ align: (_c = currentColumn.props) == null ? void 0 : _c.align,
2982
+ cell
2983
+ },
2984
+ cell.key
2985
+ );
2986
+ }) }, row.key)
3311
2987
  )
3312
2988
  ] })
3313
2989
  ]
@@ -3323,8 +2999,8 @@ Table.Header = import_table10.TableHeader;
3323
2999
  Table.Row = import_table10.Row;
3324
3000
 
3325
3001
  // src/Text/Text.tsx
3326
- var import_system71 = require("@marigold/system");
3327
- var import_jsx_runtime84 = require("react/jsx-runtime");
3002
+ var import_system66 = require("@marigold/system");
3003
+ var import_jsx_runtime79 = require("react/jsx-runtime");
3328
3004
  var Text2 = ({
3329
3005
  variant,
3330
3006
  size,
@@ -3337,27 +3013,27 @@ var Text2 = ({
3337
3013
  children,
3338
3014
  ...props
3339
3015
  }) => {
3340
- const theme = (0, import_system71.useTheme)();
3341
- const classNames2 = (0, import_system71.useClassNames)({
3016
+ const theme = (0, import_system66.useTheme)();
3017
+ const classNames2 = (0, import_system66.useClassNames)({
3342
3018
  component: "Text",
3343
3019
  variant,
3344
3020
  size
3345
3021
  });
3346
- return /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
3022
+ return /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
3347
3023
  "p",
3348
3024
  {
3349
3025
  ...props,
3350
- className: (0, import_system71.cn)(
3026
+ className: (0, import_system66.cn)(
3351
3027
  classNames2,
3352
3028
  "text-[--color] outline-[--outline]",
3353
- fontStyle && import_system71.textStyle[fontStyle],
3354
- align && import_system71.textAlign[align],
3355
- cursor && import_system71.cursorStyle[cursor],
3356
- weight && import_system71.fontWeight[weight],
3357
- fontSize && import_system71.textSize[fontSize]
3029
+ fontStyle && import_system66.textStyle[fontStyle],
3030
+ align && import_system66.textAlign[align],
3031
+ cursor && import_system66.cursorStyle[cursor],
3032
+ weight && import_system66.fontWeight[weight],
3033
+ fontSize && import_system66.textSize[fontSize]
3358
3034
  ),
3359
- style: (0, import_system71.createVar)({
3360
- color: color && theme.colors && (0, import_system71.get)(
3035
+ style: (0, import_system66.createVar)({
3036
+ color: color && theme.colors && (0, import_system66.get)(
3361
3037
  theme.colors,
3362
3038
  color.replace("-", "."),
3363
3039
  color
@@ -3370,11 +3046,11 @@ var Text2 = ({
3370
3046
  };
3371
3047
 
3372
3048
  // src/TextArea/TextArea.tsx
3373
- var import_react51 = require("react");
3374
- var import_react_aria_components41 = require("react-aria-components");
3375
- var import_system72 = require("@marigold/system");
3376
- var import_jsx_runtime85 = require("react/jsx-runtime");
3377
- var _TextArea = (0, import_react51.forwardRef)(
3049
+ var import_react45 = require("react");
3050
+ var import_react_aria_components46 = require("react-aria-components");
3051
+ var import_system67 = require("@marigold/system");
3052
+ var import_jsx_runtime80 = require("react/jsx-runtime");
3053
+ var _TextArea = (0, import_react45.forwardRef)(
3378
3054
  ({
3379
3055
  variant,
3380
3056
  size,
@@ -3385,7 +3061,7 @@ var _TextArea = (0, import_react51.forwardRef)(
3385
3061
  rows,
3386
3062
  ...rest
3387
3063
  }, ref) => {
3388
- const classNames2 = (0, import_system72.useClassNames)({ component: "TextArea", variant, size });
3064
+ const classNames2 = (0, import_system67.useClassNames)({ component: "TextArea", variant, size });
3389
3065
  const props = {
3390
3066
  isDisabled: disabled,
3391
3067
  isReadOnly: readOnly,
@@ -3393,15 +3069,15 @@ var _TextArea = (0, import_react51.forwardRef)(
3393
3069
  isRequired: required,
3394
3070
  ...rest
3395
3071
  };
3396
- return /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(FieldBase, { as: import_react_aria_components41.TextField, ...props, variant, size, children: /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(import_react_aria_components41.TextArea, { className: classNames2, ref, rows }) });
3072
+ return /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(FieldBase, { as: import_react_aria_components46.TextField, ...props, variant, size, children: /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(import_react_aria_components46.TextArea, { className: classNames2, ref, rows }) });
3397
3073
  }
3398
3074
  );
3399
3075
 
3400
3076
  // src/TextField/TextField.tsx
3401
- var import_react52 = require("react");
3402
- var import_react_aria_components42 = require("react-aria-components");
3403
- var import_jsx_runtime86 = require("react/jsx-runtime");
3404
- var _TextField = (0, import_react52.forwardRef)(
3077
+ var import_react46 = require("react");
3078
+ var import_react_aria_components47 = require("react-aria-components");
3079
+ var import_jsx_runtime81 = require("react/jsx-runtime");
3080
+ var _TextField = (0, import_react46.forwardRef)(
3405
3081
  ({
3406
3082
  variant,
3407
3083
  size,
@@ -3418,13 +3094,13 @@ var _TextField = (0, import_react52.forwardRef)(
3418
3094
  isRequired: required,
3419
3095
  ...rest
3420
3096
  };
3421
- return /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(FieldBase, { as: import_react_aria_components42.TextField, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(_Input, { ref }) });
3097
+ return /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(FieldBase, { as: import_react_aria_components47.TextField, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(_Input, { ref }) });
3422
3098
  }
3423
3099
  );
3424
3100
 
3425
3101
  // src/Tiles/Tiles.tsx
3426
- var import_system73 = require("@marigold/system");
3427
- var import_jsx_runtime87 = require("react/jsx-runtime");
3102
+ var import_system68 = require("@marigold/system");
3103
+ var import_jsx_runtime82 = require("react/jsx-runtime");
3428
3104
  var Tiles = ({
3429
3105
  space = 0,
3430
3106
  stretch = false,
@@ -3437,29 +3113,29 @@ var Tiles = ({
3437
3113
  if (stretch) {
3438
3114
  column = `minmax(${column}, 1fr)`;
3439
3115
  }
3440
- return /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
3116
+ return /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
3441
3117
  "div",
3442
3118
  {
3443
3119
  ...props,
3444
- className: (0, import_system73.cn)(
3120
+ className: (0, import_system68.cn)(
3445
3121
  "grid",
3446
- import_system73.gapSpace[space],
3122
+ import_system68.gapSpace[space],
3447
3123
  "grid-cols-[repeat(auto-fit,var(--column))]",
3448
3124
  equalHeight && "auto-rows-[1fr]"
3449
3125
  ),
3450
- style: (0, import_system73.createVar)({ column, tilesWidth }),
3126
+ style: (0, import_system68.createVar)({ column, tilesWidth }),
3451
3127
  children
3452
3128
  }
3453
3129
  );
3454
3130
  };
3455
3131
 
3456
3132
  // src/Tooltip/Tooltip.tsx
3457
- var import_react_aria_components44 = require("react-aria-components");
3458
- var import_system74 = require("@marigold/system");
3133
+ var import_react_aria_components49 = require("react-aria-components");
3134
+ var import_system69 = require("@marigold/system");
3459
3135
 
3460
3136
  // src/Tooltip/TooltipTrigger.tsx
3461
- var import_react_aria_components43 = require("react-aria-components");
3462
- var import_jsx_runtime88 = require("react/jsx-runtime");
3137
+ var import_react_aria_components48 = require("react-aria-components");
3138
+ var import_jsx_runtime83 = require("react/jsx-runtime");
3463
3139
  var _TooltipTrigger = ({
3464
3140
  delay = 1e3,
3465
3141
  children,
@@ -3473,32 +3149,32 @@ var _TooltipTrigger = ({
3473
3149
  isOpen: open,
3474
3150
  delay
3475
3151
  };
3476
- return /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(import_react_aria_components43.TooltipTrigger, { ...props, children });
3152
+ return /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(import_react_aria_components48.TooltipTrigger, { ...props, children });
3477
3153
  };
3478
3154
 
3479
3155
  // src/Tooltip/Tooltip.tsx
3480
- var import_jsx_runtime89 = require("react/jsx-runtime");
3156
+ var import_jsx_runtime84 = require("react/jsx-runtime");
3481
3157
  var _Tooltip = ({ children, variant, size, open, ...rest }) => {
3482
3158
  const props = {
3483
3159
  ...rest,
3484
3160
  isOpen: open
3485
3161
  };
3486
- const classNames2 = (0, import_system74.useClassNames)({ component: "Tooltip", variant, size });
3487
- return /* @__PURE__ */ (0, import_jsx_runtime89.jsxs)(import_react_aria_components44.Tooltip, { ...props, className: (0, import_system74.cn)("group/tooltip", classNames2.container), children: [
3488
- /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(import_react_aria_components44.OverlayArrow, { className: classNames2.arrow, children: /* @__PURE__ */ (0, import_jsx_runtime89.jsx)("svg", { width: 8, height: 8, viewBox: "0 0 8 8", children: /* @__PURE__ */ (0, import_jsx_runtime89.jsx)("path", { d: "M0 0 L4 4 L8 0" }) }) }),
3162
+ const classNames2 = (0, import_system69.useClassNames)({ component: "Tooltip", variant, size });
3163
+ return /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)(import_react_aria_components49.Tooltip, { ...props, className: (0, import_system69.cn)("group/tooltip", classNames2.container), children: [
3164
+ /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(import_react_aria_components49.OverlayArrow, { className: classNames2.arrow, children: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("svg", { width: 8, height: 8, viewBox: "0 0 8 8", children: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("path", { d: "M0 0 L4 4 L8 0" }) }) }),
3489
3165
  children
3490
3166
  ] });
3491
3167
  };
3492
3168
  _Tooltip.Trigger = _TooltipTrigger;
3493
3169
 
3494
3170
  // src/TagGroup/Tag.tsx
3495
- var import_react_aria_components46 = require("react-aria-components");
3496
- var import_system76 = require("@marigold/system");
3171
+ var import_react_aria_components51 = require("react-aria-components");
3172
+ var import_system71 = require("@marigold/system");
3497
3173
 
3498
3174
  // src/TagGroup/TagGroup.tsx
3499
- var import_react_aria_components45 = require("react-aria-components");
3500
- var import_system75 = require("@marigold/system");
3501
- var import_jsx_runtime90 = require("react/jsx-runtime");
3175
+ var import_react_aria_components50 = require("react-aria-components");
3176
+ var import_system70 = require("@marigold/system");
3177
+ var import_jsx_runtime85 = require("react/jsx-runtime");
3502
3178
  var _TagGroup = ({
3503
3179
  width,
3504
3180
  items,
@@ -3507,24 +3183,24 @@ var _TagGroup = ({
3507
3183
  size,
3508
3184
  ...rest
3509
3185
  }) => {
3510
- const classNames2 = (0, import_system75.useClassNames)({ component: "Tag", variant, size });
3511
- return /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(FieldBase, { as: import_react_aria_components45.TagGroup, ...rest, children: /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(import_react_aria_components45.TagList, { items, className: classNames2.listItems, children }) });
3186
+ const classNames2 = (0, import_system70.useClassNames)({ component: "Tag", variant, size });
3187
+ return /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(FieldBase, { as: import_react_aria_components50.TagGroup, ...rest, children: /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(import_react_aria_components50.TagList, { items, className: classNames2.listItems, children }) });
3512
3188
  };
3513
3189
 
3514
3190
  // src/TagGroup/Tag.tsx
3515
- var import_jsx_runtime91 = require("react/jsx-runtime");
3191
+ var import_jsx_runtime86 = require("react/jsx-runtime");
3516
3192
  var CloseButton2 = ({ className }) => {
3517
- return /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(import_react_aria_components46.Button, { slot: "remove", className, children: /* @__PURE__ */ (0, import_jsx_runtime91.jsx)("svg", { viewBox: "0 0 20 20", fill: "currentColor", width: 20, height: 20, children: /* @__PURE__ */ (0, import_jsx_runtime91.jsx)("path", { d: "M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z" }) }) });
3193
+ return /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(import_react_aria_components51.Button, { slot: "remove", className, children: /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("svg", { viewBox: "0 0 20 20", fill: "currentColor", width: 20, height: 20, children: /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("path", { d: "M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z" }) }) });
3518
3194
  };
3519
3195
  var _Tag = ({ variant, size, children, ...props }) => {
3520
3196
  let textValue = typeof children === "string" ? children : void 0;
3521
- const classNames2 = (0, import_system76.useClassNames)({ component: "Tag", variant, size });
3522
- return /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(import_react_aria_components46.Tag, { textValue, ...props, className: classNames2.tag, children: ({ allowsRemoving }) => /* @__PURE__ */ (0, import_jsx_runtime91.jsxs)(import_jsx_runtime91.Fragment, { children: [
3197
+ const classNames2 = (0, import_system71.useClassNames)({ component: "Tag", variant, size });
3198
+ return /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(import_react_aria_components51.Tag, { textValue, ...props, className: classNames2.tag, children: ({ allowsRemoving }) => /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)(import_jsx_runtime86.Fragment, { children: [
3523
3199
  children,
3524
- allowsRemoving && /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
3200
+ allowsRemoving && /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
3525
3201
  CloseButton2,
3526
3202
  {
3527
- className: (0, import_system76.cn)("flex items-center", classNames2.closeButton)
3203
+ className: (0, import_system71.cn)("flex items-center", classNames2.closeButton)
3528
3204
  }
3529
3205
  )
3530
3206
  ] }) });
@@ -3535,11 +3211,11 @@ _Tag.Group = _TagGroup;
3535
3211
  var import_visually_hidden = require("@react-aria/visually-hidden");
3536
3212
 
3537
3213
  // src/XLoader/XLoader.tsx
3538
- var import_react53 = require("react");
3539
- var import_system77 = require("@marigold/system");
3540
- var import_jsx_runtime92 = require("react/jsx-runtime");
3541
- var XLoader = (0, import_react53.forwardRef)((props, ref) => /* @__PURE__ */ (0, import_jsx_runtime92.jsxs)(
3542
- import_system77.SVG,
3214
+ var import_react47 = require("react");
3215
+ var import_system72 = require("@marigold/system");
3216
+ var import_jsx_runtime87 = require("react/jsx-runtime");
3217
+ var XLoader = (0, import_react47.forwardRef)((props, ref) => /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)(
3218
+ import_system72.SVG,
3543
3219
  {
3544
3220
  id: "XLoader",
3545
3221
  xmlns: "http://www.w3.org/2000/svg",
@@ -3548,13 +3224,13 @@ var XLoader = (0, import_react53.forwardRef)((props, ref) => /* @__PURE__ */ (0,
3548
3224
  ...props,
3549
3225
  ...ref,
3550
3226
  children: [
3551
- /* @__PURE__ */ (0, import_jsx_runtime92.jsx)("path", { id: "XMLID_1_", d: "M35.3 27h26.5l54 74.1H88.7z" }),
3552
- /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
3227
+ /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("path", { id: "XMLID_1_", d: "M35.3 27h26.5l54 74.1H88.7z" }),
3228
+ /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
3553
3229
  "path",
3554
3230
  {
3555
3231
  id: "XMLID_5_",
3556
3232
  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",
3557
- children: /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
3233
+ children: /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
3558
3234
  "animate",
3559
3235
  {
3560
3236
  attributeName: "opacity",
@@ -3567,12 +3243,12 @@ var XLoader = (0, import_react53.forwardRef)((props, ref) => /* @__PURE__ */ (0,
3567
3243
  )
3568
3244
  }
3569
3245
  ),
3570
- /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
3246
+ /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
3571
3247
  "path",
3572
3248
  {
3573
3249
  id: "XMLID_18_",
3574
3250
  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",
3575
- children: /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
3251
+ children: /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
3576
3252
  "animate",
3577
3253
  {
3578
3254
  attributeName: "opacity",
@@ -3585,12 +3261,12 @@ var XLoader = (0, import_react53.forwardRef)((props, ref) => /* @__PURE__ */ (0,
3585
3261
  )
3586
3262
  }
3587
3263
  ),
3588
- /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
3264
+ /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
3589
3265
  "path",
3590
3266
  {
3591
3267
  id: "XMLID_19_",
3592
3268
  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",
3593
- children: /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
3269
+ children: /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
3594
3270
  "animate",
3595
3271
  {
3596
3272
  attributeName: "opacity",
@@ -3603,12 +3279,12 @@ var XLoader = (0, import_react53.forwardRef)((props, ref) => /* @__PURE__ */ (0,
3603
3279
  )
3604
3280
  }
3605
3281
  ),
3606
- /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
3282
+ /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
3607
3283
  "path",
3608
3284
  {
3609
3285
  id: "XMLID_20_",
3610
3286
  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",
3611
- children: /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
3287
+ children: /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
3612
3288
  "animate",
3613
3289
  {
3614
3290
  attributeName: "opacity",
@@ -3621,12 +3297,12 @@ var XLoader = (0, import_react53.forwardRef)((props, ref) => /* @__PURE__ */ (0,
3621
3297
  )
3622
3298
  }
3623
3299
  ),
3624
- /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
3300
+ /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
3625
3301
  "path",
3626
3302
  {
3627
3303
  id: "XMLID_21_",
3628
3304
  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",
3629
- children: /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
3305
+ children: /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
3630
3306
  "animate",
3631
3307
  {
3632
3308
  attributeName: "opacity",
@@ -3639,12 +3315,12 @@ var XLoader = (0, import_react53.forwardRef)((props, ref) => /* @__PURE__ */ (0,
3639
3315
  )
3640
3316
  }
3641
3317
  ),
3642
- /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
3318
+ /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
3643
3319
  "path",
3644
3320
  {
3645
3321
  id: "XMLID_22_",
3646
3322
  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",
3647
- children: /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
3323
+ children: /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
3648
3324
  "animate",
3649
3325
  {
3650
3326
  attributeName: "opacity",
@@ -3657,12 +3333,12 @@ var XLoader = (0, import_react53.forwardRef)((props, ref) => /* @__PURE__ */ (0,
3657
3333
  )
3658
3334
  }
3659
3335
  ),
3660
- /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
3336
+ /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
3661
3337
  "path",
3662
3338
  {
3663
3339
  id: "XMLID_23_",
3664
3340
  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",
3665
- children: /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
3341
+ children: /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
3666
3342
  "animate",
3667
3343
  {
3668
3344
  attributeName: "opacity",
@@ -3675,12 +3351,12 @@ var XLoader = (0, import_react53.forwardRef)((props, ref) => /* @__PURE__ */ (0,
3675
3351
  )
3676
3352
  }
3677
3353
  ),
3678
- /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
3354
+ /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
3679
3355
  "path",
3680
3356
  {
3681
3357
  id: "XMLID_24_",
3682
3358
  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",
3683
- children: /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
3359
+ children: /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
3684
3360
  "animate",
3685
3361
  {
3686
3362
  attributeName: "opacity",
@@ -3693,12 +3369,12 @@ var XLoader = (0, import_react53.forwardRef)((props, ref) => /* @__PURE__ */ (0,
3693
3369
  )
3694
3370
  }
3695
3371
  ),
3696
- /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
3372
+ /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
3697
3373
  "path",
3698
3374
  {
3699
3375
  id: "XMLID_25_",
3700
3376
  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",
3701
- children: /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
3377
+ children: /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
3702
3378
  "animate",
3703
3379
  {
3704
3380
  attributeName: "opacity",
@@ -3711,12 +3387,12 @@ var XLoader = (0, import_react53.forwardRef)((props, ref) => /* @__PURE__ */ (0,
3711
3387
  )
3712
3388
  }
3713
3389
  ),
3714
- /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
3390
+ /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
3715
3391
  "path",
3716
3392
  {
3717
3393
  id: "XMLID_26_",
3718
3394
  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",
3719
- children: /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
3395
+ children: /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
3720
3396
  "animate",
3721
3397
  {
3722
3398
  attributeName: "opacity",
@@ -3729,12 +3405,12 @@ var XLoader = (0, import_react53.forwardRef)((props, ref) => /* @__PURE__ */ (0,
3729
3405
  )
3730
3406
  }
3731
3407
  ),
3732
- /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
3408
+ /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
3733
3409
  "path",
3734
3410
  {
3735
3411
  id: "XMLID_27_",
3736
3412
  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",
3737
- children: /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
3413
+ children: /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
3738
3414
  "animate",
3739
3415
  {
3740
3416
  attributeName: "opacity",
@@ -3752,25 +3428,25 @@ var XLoader = (0, import_react53.forwardRef)((props, ref) => /* @__PURE__ */ (0,
3752
3428
  ));
3753
3429
 
3754
3430
  // src/Tabs/Tabs.tsx
3755
- var import_react_aria_components50 = require("react-aria-components");
3756
- var import_system80 = require("@marigold/system");
3431
+ var import_react_aria_components55 = require("react-aria-components");
3432
+ var import_system75 = require("@marigold/system");
3757
3433
 
3758
3434
  // src/Tabs/Context.ts
3759
- var import_react54 = require("react");
3760
- var TabContext = (0, import_react54.createContext)({});
3761
- var useTabContext = () => (0, import_react54.useContext)(TabContext);
3435
+ var import_react48 = require("react");
3436
+ var TabContext = (0, import_react48.createContext)({});
3437
+ var useTabContext = () => (0, import_react48.useContext)(TabContext);
3762
3438
 
3763
3439
  // src/Tabs/Tab.tsx
3764
- var import_react_aria_components47 = require("react-aria-components");
3765
- var import_system78 = require("@marigold/system");
3766
- var import_jsx_runtime93 = require("react/jsx-runtime");
3440
+ var import_react_aria_components52 = require("react-aria-components");
3441
+ var import_system73 = require("@marigold/system");
3442
+ var import_jsx_runtime88 = require("react/jsx-runtime");
3767
3443
  var _Tab = (props) => {
3768
3444
  const { classNames: classNames2 } = useTabContext();
3769
- return /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(
3770
- import_react_aria_components47.Tab,
3445
+ return /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
3446
+ import_react_aria_components52.Tab,
3771
3447
  {
3772
3448
  ...props,
3773
- className: (0, import_system78.cn)(
3449
+ className: (0, import_system73.cn)(
3774
3450
  "flex cursor-pointer justify-center aria-disabled:cursor-not-allowed",
3775
3451
  classNames2.tab
3776
3452
  ),
@@ -3780,42 +3456,42 @@ var _Tab = (props) => {
3780
3456
  };
3781
3457
 
3782
3458
  // src/Tabs/TabList.tsx
3783
- var import_react_aria_components48 = require("react-aria-components");
3784
- var import_system79 = require("@marigold/system");
3785
- var import_jsx_runtime94 = require("react/jsx-runtime");
3459
+ var import_react_aria_components53 = require("react-aria-components");
3460
+ var import_system74 = require("@marigold/system");
3461
+ var import_jsx_runtime89 = require("react/jsx-runtime");
3786
3462
  var _TabList = ({ space = 2, ...props }) => {
3787
3463
  const { classNames: classNames2 } = useTabContext();
3788
- return /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
3789
- import_react_aria_components48.TabList,
3464
+ return /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
3465
+ import_react_aria_components53.TabList,
3790
3466
  {
3791
3467
  ...props,
3792
- className: (0, import_system79.cn)("flex", import_system79.gapSpace[space], classNames2.tabsList),
3468
+ className: (0, import_system74.cn)("flex", import_system74.gapSpace[space], classNames2.tabsList),
3793
3469
  children: props.children
3794
3470
  }
3795
3471
  );
3796
3472
  };
3797
3473
 
3798
3474
  // src/Tabs/TabPanel.tsx
3799
- var import_react_aria_components49 = require("react-aria-components");
3800
- var import_jsx_runtime95 = require("react/jsx-runtime");
3475
+ var import_react_aria_components54 = require("react-aria-components");
3476
+ var import_jsx_runtime90 = require("react/jsx-runtime");
3801
3477
  var _TabPanel = (props) => {
3802
3478
  const { classNames: classNames2 } = useTabContext();
3803
- return /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(import_react_aria_components49.TabPanel, { ...props, className: classNames2.tabpanel, children: props.children });
3479
+ return /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(import_react_aria_components54.TabPanel, { ...props, className: classNames2.tabpanel, children: props.children });
3804
3480
  };
3805
3481
 
3806
3482
  // src/Tabs/Tabs.tsx
3807
- var import_jsx_runtime96 = require("react/jsx-runtime");
3483
+ var import_jsx_runtime91 = require("react/jsx-runtime");
3808
3484
  var _Tabs = ({ disabled, variant, size = "medium", ...rest }) => {
3809
3485
  const props = {
3810
3486
  isDisabled: disabled,
3811
3487
  ...rest
3812
3488
  };
3813
- const classNames2 = (0, import_system80.useClassNames)({
3489
+ const classNames2 = (0, import_system75.useClassNames)({
3814
3490
  component: "Tabs",
3815
3491
  size,
3816
3492
  variant
3817
3493
  });
3818
- return /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(TabContext.Provider, { value: { classNames: classNames2 }, children: /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(import_react_aria_components50.Tabs, { ...props, className: classNames2.container, children: props.children }) });
3494
+ return /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(TabContext.Provider, { value: { classNames: classNames2 }, children: /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(import_react_aria_components55.Tabs, { ...props, className: classNames2.container, children: props.children }) });
3819
3495
  };
3820
3496
  _Tabs.List = _TabList;
3821
3497
  _Tabs.TabPanel = _TabPanel;
@@ -3849,6 +3525,7 @@ _Tabs.Item = _Tab;
3849
3525
  FieldGroup,
3850
3526
  FieldGroupContext,
3851
3527
  Footer,
3528
+ Form,
3852
3529
  Header,
3853
3530
  Headline,
3854
3531
  Image,
@@ -3863,7 +3540,6 @@ _Tabs.Item = _Tab;
3863
3540
  Message,
3864
3541
  Modal,
3865
3542
  NumberField,
3866
- Overlay,
3867
3543
  Popover,
3868
3544
  Radio,
3869
3545
  RadioGroup,
@@ -3882,8 +3558,6 @@ _Tabs.Item = _Tab;
3882
3558
  ThemeProvider,
3883
3559
  Tiles,
3884
3560
  Tooltip,
3885
- Tray,
3886
- TrayWrapper,
3887
3561
  Underlay,
3888
3562
  VisuallyHidden,
3889
3563
  XLoader,