@marigold/components 6.6.4 → 6.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -1296,71 +1296,136 @@ var _Checkbox = forwardRef9(
1296
1296
  );
1297
1297
 
1298
1298
  // src/Checkbox/CheckboxGroup.tsx
1299
- import { createContext as createContext3, useContext as useContext3 } from "react";
1300
- import { useCheckboxGroup } from "@react-aria/checkbox";
1301
- import {
1302
- useCheckboxGroupState
1303
- } from "@react-stately/checkbox";
1304
- import { useClassNames as useClassNames14, useStateProps as useStateProps4 } from "@marigold/system";
1305
- import { jsx as jsx30 } from "react/jsx-runtime";
1306
- var CheckboxGroupContext = createContext3(
1307
- null
1308
- );
1309
- var useCheckboxGroupContext = () => useContext3(CheckboxGroupContext);
1310
- var CheckboxGroup = ({
1299
+ import { CheckboxGroup } from "react-aria-components";
1300
+ import { useClassNames as useClassNames16 } from "@marigold/system";
1301
+
1302
+ // src/FieldBase/_FieldBase.tsx
1303
+ import { forwardRef as forwardRef10 } from "react";
1304
+ import { cn as cn17, width as twWidth2, useClassNames as useClassNames15 } from "@marigold/system";
1305
+
1306
+ // src/HelpText/_HelpText.tsx
1307
+ import { Text } from "react-aria-components";
1308
+ import { cn as cn16, useClassNames as useClassNames14 } from "@marigold/system";
1309
+ import { Fragment as Fragment5, jsx as jsx30, jsxs as jsxs14 } from "react/jsx-runtime";
1310
+ var HelpText2 = ({
1311
1311
  variant,
1312
1312
  size,
1313
+ description,
1314
+ error,
1315
+ errorMessage,
1316
+ ...props
1317
+ }) => {
1318
+ const hasErrorMessage = errorMessage && error;
1319
+ const classNames2 = useClassNames14({
1320
+ component: "HelpText",
1321
+ variant,
1322
+ size
1323
+ });
1324
+ if (!description && !errorMessage) {
1325
+ return null;
1326
+ }
1327
+ return /* @__PURE__ */ jsx30(
1328
+ Text,
1329
+ {
1330
+ ...props,
1331
+ slot: hasErrorMessage ? "errorMessage" : "description",
1332
+ className: cn16("flex items-center gap-1", classNames2.container),
1333
+ children: hasErrorMessage ? /* @__PURE__ */ jsxs14(Fragment5, { children: [
1334
+ /* @__PURE__ */ jsx30(
1335
+ "svg",
1336
+ {
1337
+ className: cn16("h-4 w-4", classNames2.icon),
1338
+ viewBox: "0 0 24 24",
1339
+ role: "presentation",
1340
+ fill: "currentColor",
1341
+ children: /* @__PURE__ */ jsx30("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" })
1342
+ }
1343
+ ),
1344
+ errorMessage
1345
+ ] }) : description
1346
+ }
1347
+ );
1348
+ };
1349
+
1350
+ // src/FieldBase/_FieldBase.tsx
1351
+ import { jsx as jsx31, jsxs as jsxs15 } from "react/jsx-runtime";
1352
+ var fixedForwardRef = forwardRef10;
1353
+ var _FieldBase = (props, ref) => {
1354
+ const {
1355
+ as: Component = "div",
1356
+ children,
1357
+ label,
1358
+ size,
1359
+ variant,
1360
+ width = "full",
1361
+ description,
1362
+ errorMessage,
1363
+ className,
1364
+ ...rest
1365
+ } = props;
1366
+ const classNames2 = useClassNames15({
1367
+ component: "Field",
1368
+ variant,
1369
+ size
1370
+ });
1371
+ return /* @__PURE__ */ jsxs15(
1372
+ Component,
1373
+ {
1374
+ ref,
1375
+ className: cn17("group/field", twWidth2[width], classNames2, className),
1376
+ ...rest,
1377
+ children: [
1378
+ label ? /* @__PURE__ */ jsx31(_Label, { variant, size, children: label }) : /* @__PURE__ */ jsx31("span", { "aria-hidden": "true" }),
1379
+ children,
1380
+ /* @__PURE__ */ jsx31(
1381
+ HelpText2,
1382
+ {
1383
+ variant,
1384
+ size,
1385
+ description,
1386
+ errorMessage,
1387
+ error: props.isInvalid
1388
+ }
1389
+ )
1390
+ ]
1391
+ }
1392
+ );
1393
+ };
1394
+ var FieldBase2 = fixedForwardRef(_FieldBase);
1395
+
1396
+ // src/Checkbox/CheckboxGroup.tsx
1397
+ import { jsx as jsx32 } from "react/jsx-runtime";
1398
+ var _CheckboxGroup = ({
1313
1399
  children,
1400
+ variant,
1401
+ size,
1314
1402
  required,
1315
1403
  disabled,
1316
1404
  readOnly,
1317
1405
  error,
1318
- width,
1319
1406
  ...rest
1320
1407
  }) => {
1408
+ const classNames2 = useClassNames16({
1409
+ component: "Checkbox",
1410
+ variant,
1411
+ size,
1412
+ className: { group: "flex flex-col items-start gap-[0.5ch]" }
1413
+ });
1321
1414
  const props = {
1415
+ className: classNames2.group,
1322
1416
  isRequired: required,
1323
1417
  isDisabled: disabled,
1324
1418
  isReadOnly: readOnly,
1325
- validationState: error ? "invalid" : "valid",
1419
+ isInvalid: error,
1326
1420
  ...rest
1327
1421
  };
1328
- const state = useCheckboxGroupState(props);
1329
- const { groupProps, labelProps, descriptionProps, errorMessageProps } = useCheckboxGroup(props, state);
1330
- const classNames2 = useClassNames14({
1331
- component: "Checkbox",
1332
- variant,
1333
- size,
1334
- className: { group: "flex flex-col items-start gap-[0.5ch]" }
1335
- });
1336
- const stateProps = useStateProps4({
1337
- disabled,
1338
- readOnly,
1339
- error
1340
- });
1341
- return /* @__PURE__ */ jsx30(
1342
- FieldBase,
1343
- {
1344
- label: props.label,
1345
- labelProps: { elementType: "span", ...labelProps },
1346
- description: props.description,
1347
- descriptionProps,
1348
- error,
1349
- errorMessage: props.errorMessage,
1350
- errorMessageProps,
1351
- disabled,
1352
- stateProps,
1353
- width,
1354
- ...groupProps,
1355
- children: /* @__PURE__ */ jsx30("div", { role: "presentation", className: classNames2.group, children: /* @__PURE__ */ jsx30(CheckboxGroupContext.Provider, { value: { error, ...state }, children }) })
1356
- }
1357
- );
1422
+ return /* @__PURE__ */ jsx32(FieldBase2, { as: CheckboxGroup, ...props, children });
1358
1423
  };
1359
1424
 
1360
1425
  // src/Columns/Columns.tsx
1361
1426
  import { Children as Children3, cloneElement as cloneElement3, isValidElement as isValidElement2 } from "react";
1362
- import { cn as cn16, createVar as createVar6, gapSpace as gapSpace4 } from "@marigold/system";
1363
- import { jsx as jsx31 } from "react/jsx-runtime";
1427
+ import { cn as cn18, createVar as createVar6, gapSpace as gapSpace4 } from "@marigold/system";
1428
+ import { jsx as jsx33 } from "react/jsx-runtime";
1364
1429
  var Columns = ({
1365
1430
  space = 0,
1366
1431
  columns,
@@ -1376,19 +1441,19 @@ var Columns = ({
1376
1441
  )}`
1377
1442
  );
1378
1443
  }
1379
- return /* @__PURE__ */ jsx31(
1444
+ return /* @__PURE__ */ jsx33(
1380
1445
  "div",
1381
1446
  {
1382
- className: cn16(
1447
+ className: cn18(
1383
1448
  "flex flex-wrap items-stretch",
1384
1449
  stretch && "h-full",
1385
1450
  gapSpace4[space]
1386
1451
  ),
1387
1452
  ...props,
1388
- children: Children3.map(children, (child, idx) => /* @__PURE__ */ jsx31(
1453
+ children: Children3.map(children, (child, idx) => /* @__PURE__ */ jsx33(
1389
1454
  "div",
1390
1455
  {
1391
- className: cn16(
1456
+ className: cn18(
1392
1457
  "grow-[--columnSize] basis-[calc((var(--collapseAt)_-_100%)_*_999)]"
1393
1458
  ),
1394
1459
  style: createVar6({ collapseAt, columnSize: columns[idx] }),
@@ -1401,13 +1466,13 @@ var Columns = ({
1401
1466
 
1402
1467
  // src/Container/Container.tsx
1403
1468
  import {
1404
- cn as cn17,
1469
+ cn as cn19,
1405
1470
  createVar as createVar7,
1406
1471
  gridColsAlign,
1407
1472
  gridColumn,
1408
1473
  placeItems
1409
1474
  } from "@marigold/system";
1410
- import { jsx as jsx32 } from "react/jsx-runtime";
1475
+ import { jsx as jsx34 } from "react/jsx-runtime";
1411
1476
  var content = {
1412
1477
  small: "20ch",
1413
1478
  medium: "45ch",
@@ -1427,11 +1492,11 @@ var Container = ({
1427
1492
  ...props
1428
1493
  }) => {
1429
1494
  const maxWidth = contentType === "content" ? content[size] : header[size];
1430
- return /* @__PURE__ */ jsx32(
1495
+ return /* @__PURE__ */ jsx34(
1431
1496
  "div",
1432
1497
  {
1433
1498
  ...props,
1434
- className: cn17(
1499
+ className: cn19(
1435
1500
  "grid",
1436
1501
  placeItems[alignItems],
1437
1502
  gridColsAlign[align],
@@ -1452,32 +1517,32 @@ import {
1452
1517
  } from "react";
1453
1518
  import { useButton as useButton3 } from "@react-aria/button";
1454
1519
  import { useDialog } from "@react-aria/dialog";
1455
- import { cn as cn19, useClassNames as useClassNames17 } from "@marigold/system";
1520
+ import { cn as cn21, useClassNames as useClassNames19 } from "@marigold/system";
1456
1521
 
1457
1522
  // src/Header/Header.tsx
1458
1523
  import { Header } from "react-aria-components";
1459
- import { useClassNames as useClassNames15 } from "@marigold/system";
1460
- import { jsx as jsx33 } from "react/jsx-runtime";
1524
+ import { useClassNames as useClassNames17 } from "@marigold/system";
1525
+ import { jsx as jsx35 } from "react/jsx-runtime";
1461
1526
  var _Header = ({ variant, size, ...props }) => {
1462
- const classNames2 = useClassNames15({
1527
+ const classNames2 = useClassNames17({
1463
1528
  component: "Header",
1464
1529
  variant,
1465
1530
  size
1466
1531
  });
1467
- return /* @__PURE__ */ jsx33(Header, { className: classNames2, ...props, children: props.children });
1532
+ return /* @__PURE__ */ jsx35(Header, { className: classNames2, ...props, children: props.children });
1468
1533
  };
1469
1534
 
1470
1535
  // src/Headline/Headline.tsx
1471
1536
  import { Heading } from "react-aria-components";
1472
1537
  import {
1473
- cn as cn18,
1538
+ cn as cn20,
1474
1539
  createVar as createVar8,
1475
1540
  get,
1476
1541
  textAlign,
1477
- useClassNames as useClassNames16,
1542
+ useClassNames as useClassNames18,
1478
1543
  useTheme as useTheme2
1479
1544
  } from "@marigold/system";
1480
- import { jsx as jsx34 } from "react/jsx-runtime";
1545
+ import { jsx as jsx36 } from "react/jsx-runtime";
1481
1546
  var _Headline = ({
1482
1547
  variant,
1483
1548
  size,
@@ -1488,17 +1553,17 @@ var _Headline = ({
1488
1553
  ...props
1489
1554
  }) => {
1490
1555
  const theme = useTheme2();
1491
- const classNames2 = useClassNames16({
1556
+ const classNames2 = useClassNames18({
1492
1557
  component: "Headline",
1493
1558
  variant,
1494
1559
  size: size != null ? size : `level-${level}`
1495
1560
  });
1496
- return /* @__PURE__ */ jsx34(
1561
+ return /* @__PURE__ */ jsx36(
1497
1562
  Heading,
1498
1563
  {
1499
1564
  level: Number(level),
1500
1565
  ...props,
1501
- className: cn18(classNames2, "text-[--color]", textAlign[align]),
1566
+ className: cn20(classNames2, "text-[--color]", textAlign[align]),
1502
1567
  style: createVar8({
1503
1568
  color: color && theme.colors && get(
1504
1569
  theme.colors,
@@ -1513,13 +1578,13 @@ var _Headline = ({
1513
1578
  };
1514
1579
 
1515
1580
  // src/Dialog/Context.ts
1516
- import { createContext as createContext4, useContext as useContext4 } from "react";
1517
- var DialogContext = createContext4({});
1518
- var useDialogContext = () => useContext4(DialogContext);
1581
+ import { createContext as createContext3, useContext as useContext3 } from "react";
1582
+ var DialogContext = createContext3({});
1583
+ var useDialogContext = () => useContext3(DialogContext);
1519
1584
 
1520
1585
  // src/Dialog/DialogController.tsx
1521
1586
  import { useOverlayTriggerState } from "@react-stately/overlays";
1522
- import { jsx as jsx35 } from "react/jsx-runtime";
1587
+ import { jsx as jsx37 } from "react/jsx-runtime";
1523
1588
  var DialogController = ({
1524
1589
  children,
1525
1590
  dismissable = true,
@@ -1532,7 +1597,7 @@ var DialogController = ({
1532
1597
  onOpenChange
1533
1598
  });
1534
1599
  const ctx = { open: state.isOpen, close: state.close };
1535
- return /* @__PURE__ */ jsx35(DialogContext.Provider, { value: ctx, children: /* @__PURE__ */ jsx35(Overlay, { open: state.isOpen, children: /* @__PURE__ */ jsx35(
1600
+ return /* @__PURE__ */ jsx37(DialogContext.Provider, { value: ctx, children: /* @__PURE__ */ jsx37(Overlay, { open: state.isOpen, children: /* @__PURE__ */ jsx37(
1536
1601
  Modal,
1537
1602
  {
1538
1603
  open: state.isOpen,
@@ -1548,7 +1613,7 @@ var DialogController = ({
1548
1613
  import { Children as Children4, useRef as useRef8 } from "react";
1549
1614
  import { PressResponder } from "@react-aria/interactions";
1550
1615
  import { useOverlayTriggerState as useOverlayTriggerState2 } from "@react-stately/overlays";
1551
- import { jsx as jsx36, jsxs as jsxs14 } from "react/jsx-runtime";
1616
+ import { jsx as jsx38, jsxs as jsxs16 } from "react/jsx-runtime";
1552
1617
  var DialogTrigger = ({
1553
1618
  children,
1554
1619
  dismissable = true,
@@ -1558,8 +1623,8 @@ var DialogTrigger = ({
1558
1623
  const dialogTriggerRef = useRef8(null);
1559
1624
  const state = useOverlayTriggerState2({});
1560
1625
  const ctx = { open: state.isOpen, close: state.close };
1561
- return /* @__PURE__ */ jsxs14(DialogContext.Provider, { value: ctx, children: [
1562
- /* @__PURE__ */ jsx36(
1626
+ return /* @__PURE__ */ jsxs16(DialogContext.Provider, { value: ctx, children: [
1627
+ /* @__PURE__ */ jsx38(
1563
1628
  PressResponder,
1564
1629
  {
1565
1630
  ref: dialogTriggerRef,
@@ -1568,7 +1633,7 @@ var DialogTrigger = ({
1568
1633
  children: dialogTrigger
1569
1634
  }
1570
1635
  ),
1571
- /* @__PURE__ */ jsx36(Overlay, { open: state.isOpen, children: /* @__PURE__ */ jsx36(
1636
+ /* @__PURE__ */ jsx38(Overlay, { open: state.isOpen, children: /* @__PURE__ */ jsx38(
1572
1637
  Modal,
1573
1638
  {
1574
1639
  open: state.isOpen,
@@ -1582,7 +1647,7 @@ var DialogTrigger = ({
1582
1647
  };
1583
1648
 
1584
1649
  // src/Dialog/Dialog.tsx
1585
- import { jsx as jsx37, jsxs as jsxs15 } from "react/jsx-runtime";
1650
+ import { jsx as jsx39, jsxs as jsxs17 } from "react/jsx-runtime";
1586
1651
  var CloseButton = ({ className }) => {
1587
1652
  const ref = useRef9(null);
1588
1653
  const { close } = useDialogContext();
@@ -1592,16 +1657,16 @@ var CloseButton = ({ className }) => {
1592
1657
  },
1593
1658
  ref
1594
1659
  );
1595
- return /* @__PURE__ */ jsx37("div", { className: "flex justify-end", children: /* @__PURE__ */ jsx37(
1660
+ return /* @__PURE__ */ jsx39("div", { className: "flex justify-end", children: /* @__PURE__ */ jsx39(
1596
1661
  "button",
1597
1662
  {
1598
- className: cn19(
1663
+ className: cn21(
1599
1664
  "h-4 w-4 cursor-pointer border-none p-0 leading-normal outline-0",
1600
1665
  className
1601
1666
  ),
1602
1667
  ref,
1603
1668
  ...buttonProps,
1604
- children: /* @__PURE__ */ jsx37("svg", { viewBox: "0 0 20 20", fill: "currentColor", children: /* @__PURE__ */ jsx37(
1669
+ children: /* @__PURE__ */ jsx39("svg", { viewBox: "0 0 20 20", fill: "currentColor", children: /* @__PURE__ */ jsx39(
1605
1670
  "path",
1606
1671
  {
1607
1672
  fillRule: "evenodd",
@@ -1640,9 +1705,9 @@ var Dialog = ({
1640
1705
  const ref = useRef9(null);
1641
1706
  const { close } = useDialogContext();
1642
1707
  const { dialogProps, titleProps } = useDialog(props, ref);
1643
- const classNames2 = useClassNames17({ component: "Dialog", variant, size });
1644
- return /* @__PURE__ */ jsxs15("div", { className: classNames2.container, ...dialogProps, children: [
1645
- closeButton && /* @__PURE__ */ jsx37(CloseButton, { className: classNames2.closeButton }),
1708
+ const classNames2 = useClassNames19({ component: "Dialog", variant, size });
1709
+ return /* @__PURE__ */ jsxs17("div", { className: classNames2.container, ...dialogProps, children: [
1710
+ closeButton && /* @__PURE__ */ jsx39(CloseButton, { className: classNames2.closeButton }),
1646
1711
  typeof children === "function" ? children({ close, titleProps }) : props["aria-labelledby"] ? children : addTitleProps(children, titleProps)
1647
1712
  ] });
1648
1713
  };
@@ -1651,29 +1716,29 @@ Dialog.Controller = DialogController;
1651
1716
 
1652
1717
  // src/Divider/Divider.tsx
1653
1718
  import { Separator } from "react-aria-components";
1654
- import { useClassNames as useClassNames18 } from "@marigold/system";
1655
- import { jsx as jsx38 } from "react/jsx-runtime";
1719
+ import { useClassNames as useClassNames20 } from "@marigold/system";
1720
+ import { jsx as jsx40 } from "react/jsx-runtime";
1656
1721
  var _Divider = ({ variant, ...props }) => {
1657
- const classNames2 = useClassNames18({ component: "Divider", variant });
1658
- return /* @__PURE__ */ jsx38(Separator, { className: classNames2, ...props });
1722
+ const classNames2 = useClassNames20({ component: "Divider", variant });
1723
+ return /* @__PURE__ */ jsx40(Separator, { className: classNames2, ...props });
1659
1724
  };
1660
1725
 
1661
1726
  // src/Footer/Footer.tsx
1662
- import { useClassNames as useClassNames19 } from "@marigold/system";
1663
- import { jsx as jsx39 } from "react/jsx-runtime";
1727
+ import { useClassNames as useClassNames21 } from "@marigold/system";
1728
+ import { jsx as jsx41 } from "react/jsx-runtime";
1664
1729
  var Footer = ({ children, variant, size, ...props }) => {
1665
- const classNames2 = useClassNames19({ component: "Footer", variant, size });
1666
- return /* @__PURE__ */ jsx39("footer", { ...props, className: classNames2, children });
1730
+ const classNames2 = useClassNames21({ component: "Footer", variant, size });
1731
+ return /* @__PURE__ */ jsx41("footer", { ...props, className: classNames2, children });
1667
1732
  };
1668
1733
 
1669
1734
  // src/Image/Image.tsx
1670
1735
  import {
1671
- cn as cn20,
1736
+ cn as cn22,
1672
1737
  objectFit,
1673
1738
  objectPosition,
1674
- useClassNames as useClassNames20
1739
+ useClassNames as useClassNames22
1675
1740
  } from "@marigold/system";
1676
- import { jsx as jsx40 } from "react/jsx-runtime";
1741
+ import { jsx as jsx42 } from "react/jsx-runtime";
1677
1742
  var Image = ({
1678
1743
  variant,
1679
1744
  size,
@@ -1681,13 +1746,13 @@ var Image = ({
1681
1746
  position = "none",
1682
1747
  ...props
1683
1748
  }) => {
1684
- const classNames2 = useClassNames20({ component: "Image", variant, size });
1685
- return /* @__PURE__ */ jsx40(
1749
+ const classNames2 = useClassNames22({ component: "Image", variant, size });
1750
+ return /* @__PURE__ */ jsx42(
1686
1751
  "img",
1687
1752
  {
1688
1753
  ...props,
1689
1754
  alt: props.alt,
1690
- className: cn20(
1755
+ className: cn22(
1691
1756
  fit !== "none" && "h-full w-full",
1692
1757
  classNames2,
1693
1758
  objectFit[fit],
@@ -1700,10 +1765,10 @@ var Image = ({
1700
1765
  // src/Inline/Inline.tsx
1701
1766
  import {
1702
1767
  alignment as alignment2,
1703
- cn as cn21,
1768
+ cn as cn23,
1704
1769
  gapSpace as gapSpace5
1705
1770
  } from "@marigold/system";
1706
- import { jsx as jsx41 } from "react/jsx-runtime";
1771
+ import { jsx as jsx43 } from "react/jsx-runtime";
1707
1772
  var Inline = ({
1708
1773
  space = 0,
1709
1774
  orientation,
@@ -1713,11 +1778,11 @@ var Inline = ({
1713
1778
  ...props
1714
1779
  }) => {
1715
1780
  var _a2, _b2, _c, _d;
1716
- return /* @__PURE__ */ jsx41(
1781
+ return /* @__PURE__ */ jsx43(
1717
1782
  "div",
1718
1783
  {
1719
1784
  ...props,
1720
- className: cn21(
1785
+ className: cn23(
1721
1786
  "flex flex-wrap",
1722
1787
  gapSpace5[space],
1723
1788
  alignX && ((_b2 = (_a2 = alignment2) == null ? void 0 : _a2.horizontal) == null ? void 0 : _b2.alignmentX[alignX]),
@@ -1737,15 +1802,15 @@ import { useLocale } from "@react-aria/i18n";
1737
1802
  import { useHover as useHover2 } from "@react-aria/interactions";
1738
1803
  import { mergeProps as mergeProps7 } from "@react-aria/utils";
1739
1804
  import { useDateFieldState } from "@react-stately/datepicker";
1740
- import { cn as cn23, useClassNames as useClassNames21, useStateProps as useStateProps6 } from "@marigold/system";
1805
+ import { cn as cn25, useClassNames as useClassNames23, useStateProps as useStateProps5 } from "@marigold/system";
1741
1806
 
1742
1807
  // src/DateField/DateSegment.tsx
1743
1808
  import { useRef as useRef10 } from "react";
1744
1809
  import { useDateSegment } from "@react-aria/datepicker";
1745
1810
  import { useFocusRing as useFocusRing3 } from "@react-aria/focus";
1746
1811
  import { mergeProps as mergeProps6 } from "@react-aria/utils";
1747
- import { cn as cn22, useStateProps as useStateProps5 } from "@marigold/system";
1748
- import { jsx as jsx42, jsxs as jsxs16 } from "react/jsx-runtime";
1812
+ import { cn as cn24, useStateProps as useStateProps4 } from "@marigold/system";
1813
+ import { jsx as jsx44, jsxs as jsxs18 } from "react/jsx-runtime";
1749
1814
  var DateSegment = ({
1750
1815
  className,
1751
1816
  segment,
@@ -1758,17 +1823,17 @@ var DateSegment = ({
1758
1823
  within: true,
1759
1824
  isTextInput: true
1760
1825
  });
1761
- const stateProps = useStateProps5({
1826
+ const stateProps = useStateProps4({
1762
1827
  disabled: state.isDisabled,
1763
1828
  focusVisible: isFocused
1764
1829
  });
1765
1830
  const { isPlaceholder, placeholder, text, type, maxValue } = segment;
1766
- return /* @__PURE__ */ jsxs16(
1831
+ return /* @__PURE__ */ jsxs18(
1767
1832
  "div",
1768
1833
  {
1769
1834
  ...mergeProps6(segmentProps, stateProps, focusProps),
1770
1835
  ref,
1771
- className: cn22(
1836
+ className: cn24(
1772
1837
  "group/segment",
1773
1838
  "text-center leading-none outline-0",
1774
1839
  type !== "literal" && "p-0.5",
@@ -1779,25 +1844,25 @@ var DateSegment = ({
1779
1844
  minWidth: maxValue != null ? String(maxValue).length + "ch" : void 0
1780
1845
  },
1781
1846
  children: [
1782
- /* @__PURE__ */ jsx42(
1847
+ /* @__PURE__ */ jsx44(
1783
1848
  "span",
1784
1849
  {
1785
1850
  "aria-hidden": "true",
1786
- className: cn22(
1851
+ className: cn24(
1787
1852
  isPlaceholder ? "visible block" : "invisible hidden",
1788
1853
  "pointer-events-none w-full text-center"
1789
1854
  ),
1790
1855
  children: isPlaceholder && (placeholder == null ? void 0 : placeholder.toUpperCase())
1791
1856
  }
1792
1857
  ),
1793
- /* @__PURE__ */ jsx42("span", { children: isPlaceholder ? "" : type === "month" || type === "day" ? Number(text) < 10 ? "0" + text : text : text })
1858
+ /* @__PURE__ */ jsx44("span", { children: isPlaceholder ? "" : type === "month" || type === "day" ? Number(text) < 10 ? "0" + text : text : text })
1794
1859
  ]
1795
1860
  }
1796
1861
  );
1797
1862
  };
1798
1863
 
1799
1864
  // src/DateField/DateField.tsx
1800
- import { jsx as jsx43, jsxs as jsxs17 } from "react/jsx-runtime";
1865
+ import { jsx as jsx45, jsxs as jsxs19 } from "react/jsx-runtime";
1801
1866
  var DateField = ({
1802
1867
  disabled,
1803
1868
  readOnly,
@@ -1832,14 +1897,14 @@ var DateField = ({
1832
1897
  state,
1833
1898
  ref
1834
1899
  );
1835
- const classNames2 = useClassNames21({ component: "DateField", variant, size });
1900
+ const classNames2 = useClassNames23({ component: "DateField", variant, size });
1836
1901
  const { focusProps, isFocused } = useFocusRing4({
1837
1902
  within: true,
1838
1903
  isTextInput: true,
1839
1904
  autoFocus: props.autoFocus
1840
1905
  });
1841
1906
  const { hoverProps, isHovered } = useHover2({ isDisabled: disabled });
1842
- const stateProps = useStateProps6({
1907
+ const stateProps = useStateProps5({
1843
1908
  hover: isHovered,
1844
1909
  error,
1845
1910
  readOnly,
@@ -1847,7 +1912,7 @@ var DateField = ({
1847
1912
  required,
1848
1913
  focus: isFocused || isPressed
1849
1914
  });
1850
- return /* @__PURE__ */ jsx43(
1915
+ return /* @__PURE__ */ jsx45(
1851
1916
  FieldBase,
1852
1917
  {
1853
1918
  error,
@@ -1862,11 +1927,11 @@ var DateField = ({
1862
1927
  variant,
1863
1928
  size,
1864
1929
  width,
1865
- children: /* @__PURE__ */ jsxs17(
1930
+ children: /* @__PURE__ */ jsxs19(
1866
1931
  "div",
1867
1932
  {
1868
1933
  ...mergeProps7(fieldProps, focusProps, stateProps, hoverProps),
1869
- className: cn23(
1934
+ className: cn25(
1870
1935
  "relative flex flex-row flex-nowrap",
1871
1936
  "cursor-text aria-disabled:cursor-not-allowed",
1872
1937
  classNames2.field
@@ -1874,9 +1939,9 @@ var DateField = ({
1874
1939
  "data-testid": "date-field",
1875
1940
  ref: triggerRef,
1876
1941
  children: [
1877
- /* @__PURE__ */ jsx43("div", { ref, className: "flex basis-full items-center", children: state.segments.map((segment, i) => {
1942
+ /* @__PURE__ */ jsx45("div", { ref, className: "flex basis-full items-center", children: state.segments.map((segment, i) => {
1878
1943
  var _a;
1879
- return /* @__PURE__ */ jsx43(
1944
+ return /* @__PURE__ */ jsx45(
1880
1945
  DateSegment,
1881
1946
  {
1882
1947
  className: classNames2.segment,
@@ -1887,15 +1952,15 @@ var DateField = ({
1887
1952
  i
1888
1953
  );
1889
1954
  }) }),
1890
- action ? action : /* @__PURE__ */ jsx43("div", { className: "flex items-center justify-center", children: /* @__PURE__ */ jsx43(
1955
+ action ? action : /* @__PURE__ */ jsx45("div", { className: "flex items-center justify-center", children: /* @__PURE__ */ jsx45(
1891
1956
  "svg",
1892
1957
  {
1893
1958
  "data-testid": "action",
1894
- className: cn23(classNames2.action),
1959
+ className: cn25(classNames2.action),
1895
1960
  viewBox: "0 0 24 24",
1896
1961
  width: 24,
1897
1962
  height: 24,
1898
- children: /* @__PURE__ */ jsx43("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" })
1963
+ children: /* @__PURE__ */ jsx45("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" })
1899
1964
  }
1900
1965
  ) })
1901
1966
  ]
@@ -1914,7 +1979,7 @@ import {
1914
1979
  import { useDateFormatter as useDateFormatter3, useLocale as useLocale3 } from "@react-aria/i18n";
1915
1980
  import { useCalendarState } from "@react-stately/calendar";
1916
1981
  import { ChevronDown as ChevronDown2, ChevronLeft, ChevronRight } from "@marigold/icons";
1917
- import { cn as cn25, useClassNames as useClassNames23, useStateProps as useStateProps8 } from "@marigold/system";
1982
+ import { cn as cn27, useClassNames as useClassNames25, useStateProps as useStateProps7 } from "@marigold/system";
1918
1983
 
1919
1984
  // src/Calendar/CalendarGrid.tsx
1920
1985
  import { getWeeksInMonth, startOfWeek, today } from "@internationalized/date";
@@ -1928,28 +1993,28 @@ import { useRef as useRef12 } from "react";
1928
1993
  import { useCalendarCell } from "@react-aria/calendar";
1929
1994
  import { useHover as useHover3 } from "@react-aria/interactions";
1930
1995
  import { mergeProps as mergeProps8 } from "@react-aria/utils";
1931
- import { cn as cn24, useClassNames as useClassNames22, useStateProps as useStateProps7 } from "@marigold/system";
1932
- import { jsx as jsx44 } from "react/jsx-runtime";
1996
+ import { cn as cn26, useClassNames as useClassNames24, useStateProps as useStateProps6 } from "@marigold/system";
1997
+ import { jsx as jsx46 } from "react/jsx-runtime";
1933
1998
  var CalendarCell = (props) => {
1934
1999
  const ref = useRef12(null);
1935
2000
  const { state } = props;
1936
2001
  let { cellProps, buttonProps, formattedDate, isOutsideVisibleRange } = useCalendarCell(props, state, ref);
1937
- const classNames2 = useClassNames22({
2002
+ const classNames2 = useClassNames24({
1938
2003
  component: "Calendar"
1939
2004
  });
1940
2005
  const isDisabled = cellProps["aria-disabled"];
1941
2006
  const { hoverProps, isHovered } = useHover3({
1942
2007
  isDisabled: isDisabled || cellProps["aria-selected"]
1943
2008
  });
1944
- const stateProps = useStateProps7({
2009
+ const stateProps = useStateProps6({
1945
2010
  disabled: isDisabled,
1946
2011
  hover: isHovered,
1947
2012
  selected: cellProps["aria-selected"]
1948
2013
  });
1949
- return /* @__PURE__ */ jsx44("td", { className: "group/cell", ...cellProps, children: /* @__PURE__ */ jsx44(
2014
+ return /* @__PURE__ */ jsx46("td", { className: "group/cell", ...cellProps, children: /* @__PURE__ */ jsx46(
1950
2015
  "div",
1951
2016
  {
1952
- className: cn24(
2017
+ className: cn26(
1953
2018
  "flex h-[30px] w-[30px] cursor-pointer items-center justify-center rounded-full p-[5.3px] text-sm font-normal aria-disabled:cursor-default",
1954
2019
  classNames2.calendarCell
1955
2020
  ),
@@ -1962,7 +2027,7 @@ var CalendarCell = (props) => {
1962
2027
  };
1963
2028
 
1964
2029
  // src/Calendar/CalendarGrid.tsx
1965
- import { jsx as jsx45, jsxs as jsxs18 } from "react/jsx-runtime";
2030
+ import { jsx as jsx47, jsxs as jsxs20 } from "react/jsx-runtime";
1966
2031
  var CalendarGrid = ({ state, ...props }) => {
1967
2032
  const { locale } = useLocale2();
1968
2033
  const { gridProps, headerProps } = useCalendarGrid(props, state);
@@ -1982,23 +2047,23 @@ var CalendarGrid = ({ state, ...props }) => {
1982
2047
  return dayFormatter.format(dateDay);
1983
2048
  });
1984
2049
  }, [locale, state.timeZone, dayFormatter]);
1985
- return /* @__PURE__ */ jsxs18(
2050
+ return /* @__PURE__ */ jsxs20(
1986
2051
  "table",
1987
2052
  {
1988
2053
  className: "w-full border-spacing-[6px]",
1989
2054
  ...gridProps,
1990
2055
  cellPadding: "8",
1991
2056
  children: [
1992
- /* @__PURE__ */ jsx45("thead", { ...headerProps, children: /* @__PURE__ */ jsx45("tr", { children: weekDays.map((day, index) => /* @__PURE__ */ jsx45("th", { style: { fontWeight: "bolder" }, children: day.substring(0, 2) }, index)) }) }),
1993
- /* @__PURE__ */ jsx45("tbody", { children: [...new Array(numberOfWeeksInMonth).keys()].map((weekIndex) => /* @__PURE__ */ jsx45("tr", { children: state.getDatesInWeek(weekIndex).map(
1994
- (date, i) => date ? /* @__PURE__ */ jsx45(
2057
+ /* @__PURE__ */ jsx47("thead", { ...headerProps, children: /* @__PURE__ */ jsx47("tr", { children: weekDays.map((day, index) => /* @__PURE__ */ jsx47("th", { style: { fontWeight: "bolder" }, children: day.substring(0, 2) }, index)) }) }),
2058
+ /* @__PURE__ */ jsx47("tbody", { children: [...new Array(numberOfWeeksInMonth).keys()].map((weekIndex) => /* @__PURE__ */ jsx47("tr", { children: state.getDatesInWeek(weekIndex).map(
2059
+ (date, i) => date ? /* @__PURE__ */ jsx47(
1995
2060
  CalendarCell,
1996
2061
  {
1997
2062
  date,
1998
2063
  state
1999
2064
  },
2000
2065
  i
2001
- ) : /* @__PURE__ */ jsx45("td", {}, i)
2066
+ ) : /* @__PURE__ */ jsx47("td", {}, i)
2002
2067
  ) }, weekIndex)) })
2003
2068
  ]
2004
2069
  }
@@ -2006,7 +2071,7 @@ var CalendarGrid = ({ state, ...props }) => {
2006
2071
  };
2007
2072
 
2008
2073
  // src/Calendar/MonthDropdown.tsx
2009
- import { jsx as jsx46 } from "react/jsx-runtime";
2074
+ import { jsx as jsx48 } from "react/jsx-runtime";
2010
2075
  var MonthDropdown = ({
2011
2076
  state,
2012
2077
  setSelectedDropdown,
@@ -2017,13 +2082,13 @@ var MonthDropdown = ({
2017
2082
  let date = state.focusedDate.set({ month: value });
2018
2083
  state.setFocusedDate(date);
2019
2084
  };
2020
- return /* @__PURE__ */ jsx46(
2085
+ return /* @__PURE__ */ jsx48(
2021
2086
  "ul",
2022
2087
  {
2023
2088
  "data-testid": "monthOptions",
2024
2089
  className: "grid h-full max-h-[300px] min-w-[300px] grid-cols-3 gap-y-10 overflow-y-scroll p-2",
2025
2090
  children: months.map((month, index) => {
2026
- return /* @__PURE__ */ jsx46("li", { className: "flex justify-center", children: /* @__PURE__ */ jsx46(
2091
+ return /* @__PURE__ */ jsx48("li", { className: "flex justify-center", children: /* @__PURE__ */ jsx48(
2027
2092
  _Button,
2028
2093
  {
2029
2094
  variant: index === state.focusedDate.month - 1 ? "secondary" : "text",
@@ -2045,7 +2110,7 @@ var MonthDropdown_default = MonthDropdown;
2045
2110
  // src/Calendar/YearDropdown.tsx
2046
2111
  import { useEffect as useEffect2, useRef as useRef13 } from "react";
2047
2112
  import { useDateFormatter as useDateFormatter2 } from "@react-aria/i18n";
2048
- import { jsx as jsx47 } from "react/jsx-runtime";
2113
+ import { jsx as jsx49 } from "react/jsx-runtime";
2049
2114
  var YearDropdown = ({ state, setSelectedDropdown }) => {
2050
2115
  const years = [];
2051
2116
  let formatter = useDateFormatter2({
@@ -2074,19 +2139,19 @@ var YearDropdown = ({ state, setSelectedDropdown }) => {
2074
2139
  let date = years[index].value;
2075
2140
  state.setFocusedDate(date);
2076
2141
  };
2077
- return /* @__PURE__ */ jsx47(
2142
+ return /* @__PURE__ */ jsx49(
2078
2143
  "ul",
2079
2144
  {
2080
2145
  "data-testid": "yearOptions",
2081
2146
  className: "grid h-full max-h-[300px] min-w-[300px] grid-cols-3 gap-y-10 overflow-y-scroll p-2",
2082
2147
  children: years.map((year, index) => {
2083
2148
  const isActive = +year.formatted === state.focusedDate.year;
2084
- return /* @__PURE__ */ jsx47("li", { className: "flex justify-center", children: /* @__PURE__ */ jsx47(
2149
+ return /* @__PURE__ */ jsx49("li", { className: "flex justify-center", children: /* @__PURE__ */ jsx49(
2085
2150
  "div",
2086
2151
  {
2087
2152
  ref: isActive ? activeButtonRef : null,
2088
2153
  style: { height: "100%", width: "100%" },
2089
- children: /* @__PURE__ */ jsx47(
2154
+ children: /* @__PURE__ */ jsx49(
2090
2155
  _Button,
2091
2156
  {
2092
2157
  disabled: state.isDisabled,
@@ -2110,7 +2175,7 @@ var YearDropdown = ({ state, setSelectedDropdown }) => {
2110
2175
  var YearDropdown_default = YearDropdown;
2111
2176
 
2112
2177
  // src/Calendar/Calendar.tsx
2113
- import { Fragment as Fragment5, jsx as jsx48, jsxs as jsxs19 } from "react/jsx-runtime";
2178
+ import { Fragment as Fragment6, jsx as jsx50, jsxs as jsxs21 } from "react/jsx-runtime";
2114
2179
  var buttonStyles = "flex items-center justify-between gap-1 overflow-hidden";
2115
2180
  var Calendar = ({
2116
2181
  disabled,
@@ -2145,12 +2210,12 @@ var Calendar = ({
2145
2210
  onFocusChange: nextFocusChange,
2146
2211
  ...nextPropsRest
2147
2212
  } = nextButtonProps;
2148
- const calendarState = useStateProps8({
2213
+ const calendarState = useStateProps7({
2149
2214
  disabled: state.isDisabled,
2150
2215
  focusVisible: state.isFocused
2151
2216
  });
2152
- const classNames2 = useClassNames23({ component: "Calendar" });
2153
- const { select: selectClassNames } = useClassNames23({ component: "Select" });
2217
+ const classNames2 = useClassNames25({ component: "Calendar" });
2218
+ const { select: selectClassNames } = useClassNames25({ component: "Select" });
2154
2219
  const [selectedDropdown, setSelectedDropdown] = useState();
2155
2220
  let months = [];
2156
2221
  let formatter = useDateFormatter3({
@@ -2166,75 +2231,75 @@ var Calendar = ({
2166
2231
  month: months[state.focusedDate.month - 1].substring(0, 3),
2167
2232
  year: state.focusedDate.year
2168
2233
  };
2169
- return /* @__PURE__ */ jsx48(
2234
+ return /* @__PURE__ */ jsx50(
2170
2235
  "div",
2171
2236
  {
2172
2237
  tabIndex: -1,
2173
- className: cn25(
2238
+ className: cn27(
2174
2239
  "flex min-h-[350px] w-[360px] flex-col rounded-sm p-4 shadow-[0_4px_4px_rgba(165,165,165,0.25)]",
2175
2240
  classNames2.calendar
2176
2241
  ),
2177
2242
  ...calendarProps,
2178
2243
  ...calendarState,
2179
2244
  ref,
2180
- children: selectedDropdown ? selectedDropdown === "month" ? /* @__PURE__ */ jsx48(
2245
+ children: selectedDropdown ? selectedDropdown === "month" ? /* @__PURE__ */ jsx50(
2181
2246
  MonthDropdown_default,
2182
2247
  {
2183
2248
  setSelectedDropdown,
2184
2249
  months,
2185
2250
  state
2186
2251
  }
2187
- ) : /* @__PURE__ */ jsx48(
2252
+ ) : /* @__PURE__ */ jsx50(
2188
2253
  YearDropdown_default,
2189
2254
  {
2190
2255
  setSelectedDropdown,
2191
2256
  state
2192
2257
  }
2193
- ) : /* @__PURE__ */ jsxs19(Fragment5, { children: [
2194
- /* @__PURE__ */ jsxs19("div", { className: "mb-4 flex items-center justify-between", children: [
2195
- /* @__PURE__ */ jsxs19("div", { className: "flex w-full gap-4", children: [
2196
- /* @__PURE__ */ jsxs19(
2258
+ ) : /* @__PURE__ */ jsxs21(Fragment6, { children: [
2259
+ /* @__PURE__ */ jsxs21("div", { className: "mb-4 flex items-center justify-between", children: [
2260
+ /* @__PURE__ */ jsxs21("div", { className: "flex w-full gap-4", children: [
2261
+ /* @__PURE__ */ jsxs21(
2197
2262
  "button",
2198
2263
  {
2199
2264
  disabled: state.isDisabled,
2200
2265
  onClick: () => setSelectedDropdown("month"),
2201
- className: cn25(buttonStyles, selectClassNames),
2266
+ className: cn27(buttonStyles, selectClassNames),
2202
2267
  "data-testid": "month",
2203
2268
  children: [
2204
2269
  selectedValue.month,
2205
- /* @__PURE__ */ jsx48(ChevronDown2, {})
2270
+ /* @__PURE__ */ jsx50(ChevronDown2, {})
2206
2271
  ]
2207
2272
  }
2208
2273
  ),
2209
- /* @__PURE__ */ jsxs19(
2274
+ /* @__PURE__ */ jsxs21(
2210
2275
  "button",
2211
2276
  {
2212
2277
  disabled: state.isDisabled,
2213
2278
  onClick: () => setSelectedDropdown("year"),
2214
- className: cn25(buttonStyles, selectClassNames),
2279
+ className: cn27(buttonStyles, selectClassNames),
2215
2280
  "data-testid": "year",
2216
2281
  children: [
2217
2282
  selectedValue.year,
2218
- /* @__PURE__ */ jsx48(ChevronDown2, {})
2283
+ /* @__PURE__ */ jsx50(ChevronDown2, {})
2219
2284
  ]
2220
2285
  }
2221
2286
  )
2222
2287
  ] }),
2223
- /* @__PURE__ */ jsxs19(
2288
+ /* @__PURE__ */ jsxs21(
2224
2289
  "div",
2225
2290
  {
2226
- className: cn25(
2291
+ className: cn27(
2227
2292
  "flex w-full flex-nowrap justify-end gap-[10px] [&_button:disabled]:cursor-not-allowed [&_button]:px-2 [&_button]:py-1",
2228
2293
  classNames2.calendarControllers
2229
2294
  ),
2230
2295
  children: [
2231
- /* @__PURE__ */ jsx48(_Button, { ...prevPropsRest, disabled: prevIsDisabled, children: /* @__PURE__ */ jsx48(ChevronLeft, {}) }),
2232
- /* @__PURE__ */ jsx48(_Button, { ...nextPropsRest, disabled: nextIsDisabled, children: /* @__PURE__ */ jsx48(ChevronRight, {}) })
2296
+ /* @__PURE__ */ jsx50(_Button, { ...prevPropsRest, disabled: prevIsDisabled, children: /* @__PURE__ */ jsx50(ChevronLeft, {}) }),
2297
+ /* @__PURE__ */ jsx50(_Button, { ...nextPropsRest, disabled: nextIsDisabled, children: /* @__PURE__ */ jsx50(ChevronRight, {}) })
2233
2298
  ]
2234
2299
  }
2235
2300
  )
2236
2301
  ] }),
2237
- /* @__PURE__ */ jsx48(CalendarGrid, { state })
2302
+ /* @__PURE__ */ jsx50(CalendarGrid, { state })
2238
2303
  ] })
2239
2304
  }
2240
2305
  );
@@ -2245,8 +2310,8 @@ import { useRef as useRef15 } from "react";
2245
2310
  import { useDatePicker } from "@react-aria/datepicker";
2246
2311
  import { mergeProps as mergeProps9 } from "@react-aria/utils";
2247
2312
  import { useDatePickerState } from "@react-stately/datepicker";
2248
- import { useClassNames as useClassNames24, useStateProps as useStateProps9 } from "@marigold/system";
2249
- import { Fragment as Fragment6, jsx as jsx49, jsxs as jsxs20 } from "react/jsx-runtime";
2313
+ import { useClassNames as useClassNames26, useStateProps as useStateProps8 } from "@marigold/system";
2314
+ import { Fragment as Fragment7, jsx as jsx51, jsxs as jsxs22 } from "react/jsx-runtime";
2250
2315
  var DatePicker = ({
2251
2316
  disabled,
2252
2317
  required,
@@ -2271,7 +2336,7 @@ var DatePicker = ({
2271
2336
  ...props
2272
2337
  });
2273
2338
  const ref = useRef15(null);
2274
- const stateProps = useStateProps9({
2339
+ const stateProps = useStateProps8({
2275
2340
  focus: state.isOpen
2276
2341
  });
2277
2342
  const { groupProps, fieldProps, buttonProps, calendarProps } = useDatePicker(
@@ -2280,13 +2345,13 @@ var DatePicker = ({
2280
2345
  ref
2281
2346
  );
2282
2347
  const { isDisabled, errorMessage, description, label } = props;
2283
- const classNames2 = useClassNames24({
2348
+ const classNames2 = useClassNames26({
2284
2349
  component: "DatePicker",
2285
2350
  size,
2286
2351
  variant
2287
2352
  });
2288
- return /* @__PURE__ */ jsxs20(Fragment6, { children: [
2289
- /* @__PURE__ */ jsx49("div", { className: "flex w-full min-w-[300px]", ...groupProps, children: /* @__PURE__ */ jsx49(
2353
+ return /* @__PURE__ */ jsxs22(Fragment7, { children: [
2354
+ /* @__PURE__ */ jsx51("div", { className: "flex w-full min-w-[300px]", ...groupProps, children: /* @__PURE__ */ jsx51(
2290
2355
  DateField,
2291
2356
  {
2292
2357
  ...fieldProps,
@@ -2299,41 +2364,41 @@ var DatePicker = ({
2299
2364
  description: !state.isOpen && description,
2300
2365
  triggerRef: ref,
2301
2366
  width,
2302
- action: /* @__PURE__ */ jsx49("div", { className: classNames2.container, children: /* @__PURE__ */ jsx49(
2367
+ action: /* @__PURE__ */ jsx51("div", { className: classNames2.container, children: /* @__PURE__ */ jsx51(
2303
2368
  _Button,
2304
2369
  {
2305
2370
  ...mergeProps9(buttonProps, stateProps),
2306
2371
  disabled: isDisabled,
2307
- children: /* @__PURE__ */ jsx49(
2372
+ children: /* @__PURE__ */ jsx51(
2308
2373
  "svg",
2309
2374
  {
2310
2375
  width: "24",
2311
2376
  height: "24",
2312
2377
  viewBox: "0 0 24 24",
2313
2378
  fill: "currentColor",
2314
- children: /* @__PURE__ */ jsx49("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" })
2379
+ children: /* @__PURE__ */ jsx51("path", { d: "M20.0906 19.2V6.6C20.0906 5.61 19.2806 4.8 18.2906 4.8H17.3906V3H15.5906V4.8H8.39062V3H6.59062V4.8H5.69063C4.69163 4.8 3.89962 5.61 3.89962 6.6L3.89062 19.2C3.89062 20.19 4.69163 21 5.69063 21H18.2906C19.2806 21 20.0906 20.19 20.0906 19.2ZM9.29062 11.1001H7.49061V12.9001H9.29062V11.1001ZM5.69062 8.40009H18.2906V6.60008H5.69062V8.40009ZM18.2906 10.2V19.2H5.69062V10.2H18.2906ZM14.6906 12.9001H16.4906V11.1001H14.6906V12.9001ZM12.8906 12.9001H11.0906V11.1001H12.8906V12.9001Z" })
2315
2380
  }
2316
2381
  )
2317
2382
  }
2318
2383
  ) })
2319
2384
  }
2320
2385
  ) }),
2321
- state.isOpen && /* @__PURE__ */ jsx49(Popover, { triggerRef: ref, state, children: /* @__PURE__ */ jsx49(Calendar, { disabled, ...calendarProps }) })
2386
+ state.isOpen && /* @__PURE__ */ jsx51(Popover, { triggerRef: ref, state, children: /* @__PURE__ */ jsx51(Calendar, { disabled, ...calendarProps }) })
2322
2387
  ] });
2323
2388
  };
2324
2389
 
2325
2390
  // src/Inset/Inset.tsx
2326
2391
  import {
2327
- cn as cn26,
2392
+ cn as cn28,
2328
2393
  paddingSpace as paddingSpace2,
2329
2394
  paddingSpaceX as paddingSpaceX2,
2330
2395
  paddingSpaceY as paddingSpaceY2
2331
2396
  } from "@marigold/system";
2332
- import { jsx as jsx50 } from "react/jsx-runtime";
2333
- var Inset = ({ space, spaceX, spaceY, children }) => /* @__PURE__ */ jsx50(
2397
+ import { jsx as jsx52 } from "react/jsx-runtime";
2398
+ var Inset = ({ space, spaceX, spaceY, children }) => /* @__PURE__ */ jsx52(
2334
2399
  "div",
2335
2400
  {
2336
- className: cn26(
2401
+ className: cn28(
2337
2402
  space && paddingSpace2[space],
2338
2403
  !space && spaceX && paddingSpaceX2[spaceX],
2339
2404
  !space && spaceY && paddingSpaceY2[spaceY]
@@ -2343,38 +2408,38 @@ var Inset = ({ space, spaceX, spaceY, children }) => /* @__PURE__ */ jsx50(
2343
2408
  );
2344
2409
 
2345
2410
  // src/Link/Link.tsx
2346
- import { forwardRef as forwardRef10 } from "react";
2411
+ import { forwardRef as forwardRef11 } from "react";
2347
2412
  import { Link } from "react-aria-components";
2348
- import { useClassNames as useClassNames25 } from "@marigold/system";
2349
- import { jsx as jsx51 } from "react/jsx-runtime";
2350
- var _Link = forwardRef10(
2413
+ import { useClassNames as useClassNames27 } from "@marigold/system";
2414
+ import { jsx as jsx53 } from "react/jsx-runtime";
2415
+ var _Link = forwardRef11(
2351
2416
  ({ variant, size, disabled, children, ...props }, ref) => {
2352
- const classNames2 = useClassNames25({
2417
+ const classNames2 = useClassNames27({
2353
2418
  component: "Link",
2354
2419
  variant,
2355
2420
  size
2356
2421
  });
2357
- return /* @__PURE__ */ jsx51(Link, { ...props, ref, className: classNames2, isDisabled: disabled, children });
2422
+ return /* @__PURE__ */ jsx53(Link, { ...props, ref, className: classNames2, isDisabled: disabled, children });
2358
2423
  }
2359
2424
  );
2360
2425
 
2361
2426
  // src/List/List.tsx
2362
- import { useClassNames as useClassNames26 } from "@marigold/system";
2427
+ import { useClassNames as useClassNames28 } from "@marigold/system";
2363
2428
 
2364
2429
  // src/List/Context.ts
2365
- import { createContext as createContext5, useContext as useContext5 } from "react";
2366
- var ListContext = createContext5({});
2367
- var useListContext = () => useContext5(ListContext);
2430
+ import { createContext as createContext4, useContext as useContext4 } from "react";
2431
+ var ListContext = createContext4({});
2432
+ var useListContext = () => useContext4(ListContext);
2368
2433
 
2369
2434
  // src/List/ListItem.tsx
2370
- import { jsx as jsx52 } from "react/jsx-runtime";
2435
+ import { jsx as jsx54 } from "react/jsx-runtime";
2371
2436
  var ListItem = ({ children, ...props }) => {
2372
2437
  const { classNames: classNames2 } = useListContext();
2373
- return /* @__PURE__ */ jsx52("li", { ...props, className: classNames2, children });
2438
+ return /* @__PURE__ */ jsx54("li", { ...props, className: classNames2, children });
2374
2439
  };
2375
2440
 
2376
2441
  // src/List/List.tsx
2377
- import { jsx as jsx53 } from "react/jsx-runtime";
2442
+ import { jsx as jsx55 } from "react/jsx-runtime";
2378
2443
  var List = ({
2379
2444
  as = "ul",
2380
2445
  children,
@@ -2383,8 +2448,8 @@ var List = ({
2383
2448
  ...props
2384
2449
  }) => {
2385
2450
  const Component = as;
2386
- const classNames2 = useClassNames26({ component: "List", variant, size });
2387
- return /* @__PURE__ */ jsx53(Component, { ...props, className: classNames2[as], children: /* @__PURE__ */ jsx53(ListContext.Provider, { value: { classNames: classNames2.item }, children }) });
2451
+ const classNames2 = useClassNames28({ component: "List", variant, size });
2452
+ return /* @__PURE__ */ jsx55(Component, { ...props, className: classNames2[as], children: /* @__PURE__ */ jsx55(ListContext.Provider, { value: { classNames: classNames2.item }, children }) });
2388
2453
  };
2389
2454
  List.Item = ListItem;
2390
2455
 
@@ -2394,23 +2459,23 @@ import { useMenu } from "@react-aria/menu";
2394
2459
  import { useSyncRef } from "@react-aria/utils";
2395
2460
  import { Item as Item4, Section } from "@react-stately/collections";
2396
2461
  import { useTreeState as useTreeState2 } from "@react-stately/tree";
2397
- import { useClassNames as useClassNames28 } from "@marigold/system";
2462
+ import { useClassNames as useClassNames30 } from "@marigold/system";
2398
2463
 
2399
2464
  // src/Menu/Context.ts
2400
2465
  import {
2401
- createContext as createContext6,
2402
- useContext as useContext6
2466
+ createContext as createContext5,
2467
+ useContext as useContext5
2403
2468
  } from "react";
2404
- var MenuContext = createContext6({});
2405
- var useMenuContext = () => useContext6(MenuContext);
2469
+ var MenuContext = createContext5({});
2470
+ var useMenuContext = () => useContext5(MenuContext);
2406
2471
 
2407
2472
  // src/Menu/MenuItem.tsx
2408
2473
  import { useRef as useRef16 } from "react";
2409
2474
  import { useFocusRing as useFocusRing5 } from "@react-aria/focus";
2410
2475
  import { useMenuItem } from "@react-aria/menu";
2411
2476
  import { mergeProps as mergeProps10 } from "@react-aria/utils";
2412
- import { useStateProps as useStateProps10 } from "@marigold/system";
2413
- import { jsx as jsx54 } from "react/jsx-runtime";
2477
+ import { useStateProps as useStateProps9 } from "@marigold/system";
2478
+ import { jsx as jsx56 } from "react/jsx-runtime";
2414
2479
  var MenuItem = ({
2415
2480
  item,
2416
2481
  state,
@@ -2429,11 +2494,11 @@ var MenuItem = ({
2429
2494
  ref
2430
2495
  );
2431
2496
  const { isFocusVisible, focusProps } = useFocusRing5();
2432
- const stateProps = useStateProps10({
2497
+ const stateProps = useStateProps9({
2433
2498
  focus: isFocusVisible
2434
2499
  });
2435
2500
  const { onPointerUp, ...props } = menuItemProps;
2436
- return /* @__PURE__ */ jsx54(
2501
+ return /* @__PURE__ */ jsx56(
2437
2502
  "li",
2438
2503
  {
2439
2504
  ref,
@@ -2451,19 +2516,19 @@ var MenuItem = ({
2451
2516
 
2452
2517
  // src/Menu/MenuSection.tsx
2453
2518
  import { useMenuSection } from "@react-aria/menu";
2454
- import { useClassNames as useClassNames27 } from "@marigold/system";
2455
- import { Fragment as Fragment7, jsx as jsx55, jsxs as jsxs21 } from "react/jsx-runtime";
2519
+ import { useClassNames as useClassNames29 } from "@marigold/system";
2520
+ import { Fragment as Fragment8, jsx as jsx57, jsxs as jsxs23 } from "react/jsx-runtime";
2456
2521
  var MenuSection = ({ onAction, item, state }) => {
2457
2522
  let { itemProps, headingProps, groupProps } = useMenuSection({
2458
2523
  heading: item.rendered,
2459
2524
  "aria-label": item["aria-label"]
2460
2525
  });
2461
- const className = useClassNames27({ component: "Menu" });
2462
- return /* @__PURE__ */ jsxs21(Fragment7, { children: [
2463
- item.key !== state.collection.getFirstKey() && /* @__PURE__ */ jsx55("li", { children: /* @__PURE__ */ jsx55(_Divider, { variant: "section" }) }),
2464
- /* @__PURE__ */ jsxs21("li", { ...itemProps, children: [
2465
- item.rendered && /* @__PURE__ */ jsx55("span", { ...headingProps, className: className.section, children: item.rendered }),
2466
- /* @__PURE__ */ jsx55("ul", { ...groupProps, className: "pb-1", children: [...item.props.children].map((node) => /* @__PURE__ */ jsx55(
2526
+ const className = useClassNames29({ component: "Menu" });
2527
+ return /* @__PURE__ */ jsxs23(Fragment8, { children: [
2528
+ item.key !== state.collection.getFirstKey() && /* @__PURE__ */ jsx57("li", { children: /* @__PURE__ */ jsx57(_Divider, { variant: "section" }) }),
2529
+ /* @__PURE__ */ jsxs23("li", { ...itemProps, children: [
2530
+ item.rendered && /* @__PURE__ */ jsx57("span", { ...headingProps, className: className.section, children: item.rendered }),
2531
+ /* @__PURE__ */ jsx57("ul", { ...groupProps, className: "pb-1", children: [...item.props.children].map((node) => /* @__PURE__ */ jsx57(
2467
2532
  MenuItem,
2468
2533
  {
2469
2534
  item: node,
@@ -2485,7 +2550,7 @@ import { useMenuTrigger } from "@react-aria/menu";
2485
2550
  import { useObjectRef as useObjectRef4 } from "@react-aria/utils";
2486
2551
  import { useMenuTriggerState } from "@react-stately/menu";
2487
2552
  import { useSmallScreen } from "@marigold/system";
2488
- import { jsx as jsx56, jsxs as jsxs22 } from "react/jsx-runtime";
2553
+ import { jsx as jsx58, jsxs as jsxs24 } from "react/jsx-runtime";
2489
2554
  var MenuTrigger = ({
2490
2555
  disabled,
2491
2556
  open,
@@ -2512,8 +2577,8 @@ var MenuTrigger = ({
2512
2577
  autoFocus: state.focusStrategy
2513
2578
  };
2514
2579
  const isSmallScreen = useSmallScreen();
2515
- return /* @__PURE__ */ jsxs22(MenuContext.Provider, { value: menuContext, children: [
2516
- /* @__PURE__ */ jsx56(
2580
+ return /* @__PURE__ */ jsxs24(MenuContext.Provider, { value: menuContext, children: [
2581
+ /* @__PURE__ */ jsx58(
2517
2582
  PressResponder2,
2518
2583
  {
2519
2584
  ...menuTriggerProps,
@@ -2522,12 +2587,12 @@ var MenuTrigger = ({
2522
2587
  children: menuTrigger
2523
2588
  }
2524
2589
  ),
2525
- isSmallScreen ? /* @__PURE__ */ jsx56(Tray, { state, children: menu }) : /* @__PURE__ */ jsx56(Popover, { triggerRef: menuTriggerRef, scrollRef: menuRef, state, children: menu })
2590
+ isSmallScreen ? /* @__PURE__ */ jsx58(Tray, { state, children: menu }) : /* @__PURE__ */ jsx58(Popover, { triggerRef: menuTriggerRef, scrollRef: menuRef, state, children: menu })
2526
2591
  ] });
2527
2592
  };
2528
2593
 
2529
2594
  // src/Menu/Menu.tsx
2530
- import { jsx as jsx57 } from "react/jsx-runtime";
2595
+ import { jsx as jsx59 } from "react/jsx-runtime";
2531
2596
  var Menu = ({ variant, size, ...props }) => {
2532
2597
  const { ref: scrollRef, ...menuContext } = useMenuContext();
2533
2598
  const ownProps = { ...props, ...menuContext };
@@ -2535,10 +2600,10 @@ var Menu = ({ variant, size, ...props }) => {
2535
2600
  const state = useTreeState2({ ...ownProps, selectionMode: "none" });
2536
2601
  const { menuProps } = useMenu(ownProps, state, ref);
2537
2602
  useSyncRef({ ref: scrollRef }, ref);
2538
- const classNames2 = useClassNames28({ component: "Menu", variant, size });
2539
- return /* @__PURE__ */ jsx57("ul", { ref, className: classNames2.container, ...menuProps, children: [...state.collection].map((item) => {
2603
+ const classNames2 = useClassNames30({ component: "Menu", variant, size });
2604
+ return /* @__PURE__ */ jsx59("ul", { ref, className: classNames2.container, ...menuProps, children: [...state.collection].map((item) => {
2540
2605
  if (item.type === "section") {
2541
- return /* @__PURE__ */ jsx57(
2606
+ return /* @__PURE__ */ jsx59(
2542
2607
  MenuSection_default,
2543
2608
  {
2544
2609
  item,
@@ -2548,7 +2613,7 @@ var Menu = ({ variant, size, ...props }) => {
2548
2613
  item.key
2549
2614
  );
2550
2615
  }
2551
- return /* @__PURE__ */ jsx57(
2616
+ return /* @__PURE__ */ jsx59(
2552
2617
  MenuItem,
2553
2618
  {
2554
2619
  item,
@@ -2566,25 +2631,25 @@ Menu.Section = Section;
2566
2631
 
2567
2632
  // src/Menu/ActionMenu.tsx
2568
2633
  import { SVG as SVG5 } from "@marigold/system";
2569
- import { jsx as jsx58, jsxs as jsxs23 } from "react/jsx-runtime";
2634
+ import { jsx as jsx60, jsxs as jsxs25 } from "react/jsx-runtime";
2570
2635
  var ActionMenu = (props) => {
2571
- return /* @__PURE__ */ jsxs23(Menu.Trigger, { children: [
2572
- /* @__PURE__ */ jsx58(_Button, { variant: "menu", size: "small", children: /* @__PURE__ */ jsx58(SVG5, { viewBox: "0 0 24 24", children: /* @__PURE__ */ jsx58("path", { d: "M12.0117 7.47656C13.2557 7.47656 14.2734 6.45879 14.2734 5.21484C14.2734 3.9709 13.2557 2.95312 12.0117 2.95312C10.7678 2.95312 9.75 3.9709 9.75 5.21484C9.75 6.45879 10.7678 7.47656 12.0117 7.47656ZM12.0117 9.73828C10.7678 9.73828 9.75 10.7561 9.75 12C9.75 13.2439 10.7678 14.2617 12.0117 14.2617C13.2557 14.2617 14.2734 13.2439 14.2734 12C14.2734 10.7561 13.2557 9.73828 12.0117 9.73828ZM12.0117 16.5234C10.7678 16.5234 9.75 17.5412 9.75 18.7852C9.75 20.0291 10.7678 21.0469 12.0117 21.0469C13.2557 21.0469 14.2734 20.0291 14.2734 18.7852C14.2734 17.5412 13.2557 16.5234 12.0117 16.5234Z" }) }) }),
2573
- /* @__PURE__ */ jsx58(Menu, { ...props })
2636
+ return /* @__PURE__ */ jsxs25(Menu.Trigger, { children: [
2637
+ /* @__PURE__ */ jsx60(_Button, { variant: "menu", size: "small", children: /* @__PURE__ */ jsx60(SVG5, { viewBox: "0 0 24 24", children: /* @__PURE__ */ jsx60("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" }) }) }),
2638
+ /* @__PURE__ */ jsx60(Menu, { ...props })
2574
2639
  ] });
2575
2640
  };
2576
2641
 
2577
2642
  // src/Message/Message.tsx
2578
- import { cn as cn27, useClassNames as useClassNames29 } from "@marigold/system";
2579
- import { jsx as jsx59, jsxs as jsxs24 } from "react/jsx-runtime";
2643
+ import { cn as cn29, useClassNames as useClassNames31 } from "@marigold/system";
2644
+ import { jsx as jsx61, jsxs as jsxs26 } from "react/jsx-runtime";
2580
2645
  var icons = {
2581
- info: () => /* @__PURE__ */ jsx59(
2646
+ info: () => /* @__PURE__ */ jsx61(
2582
2647
  "svg",
2583
2648
  {
2584
2649
  xmlns: "http://www.w3.org/2000/svg",
2585
2650
  viewBox: "0 0 24 24",
2586
2651
  fill: "currentColor",
2587
- children: /* @__PURE__ */ jsx59(
2652
+ children: /* @__PURE__ */ jsx61(
2588
2653
  "path",
2589
2654
  {
2590
2655
  fillRule: "evenodd",
@@ -2594,13 +2659,13 @@ var icons = {
2594
2659
  )
2595
2660
  }
2596
2661
  ),
2597
- warning: () => /* @__PURE__ */ jsx59(
2662
+ warning: () => /* @__PURE__ */ jsx61(
2598
2663
  "svg",
2599
2664
  {
2600
2665
  xmlns: "http://www.w3.org/2000/svg",
2601
2666
  viewBox: "0 0 24 24",
2602
2667
  fill: "currentColor",
2603
- children: /* @__PURE__ */ jsx59(
2668
+ children: /* @__PURE__ */ jsx61(
2604
2669
  "path",
2605
2670
  {
2606
2671
  fillRule: "evenodd",
@@ -2610,13 +2675,13 @@ var icons = {
2610
2675
  )
2611
2676
  }
2612
2677
  ),
2613
- error: () => /* @__PURE__ */ jsx59(
2678
+ error: () => /* @__PURE__ */ jsx61(
2614
2679
  "svg",
2615
2680
  {
2616
2681
  xmlns: "http://www.w3.org/2000/svg",
2617
2682
  viewBox: "0 0 24 24",
2618
2683
  fill: "currentColor",
2619
- children: /* @__PURE__ */ jsx59(
2684
+ children: /* @__PURE__ */ jsx61(
2620
2685
  "path",
2621
2686
  {
2622
2687
  fillRule: "evenodd",
@@ -2634,49 +2699,49 @@ var Message = ({
2634
2699
  children,
2635
2700
  ...props
2636
2701
  }) => {
2637
- const classNames2 = useClassNames29({ component: "Message", variant, size });
2702
+ const classNames2 = useClassNames31({ component: "Message", variant, size });
2638
2703
  const Icon3 = icons[variant];
2639
- return /* @__PURE__ */ jsxs24(
2704
+ return /* @__PURE__ */ jsxs26(
2640
2705
  "div",
2641
2706
  {
2642
- className: cn27(
2707
+ className: cn29(
2643
2708
  "grid auto-rows-min grid-cols-[min-content_auto] gap-1",
2644
2709
  classNames2.container
2645
2710
  ),
2646
2711
  ...props,
2647
2712
  children: [
2648
- /* @__PURE__ */ jsx59("div", { className: cn27("col-span-1 h-5 w-5 self-center", classNames2.icon), children: /* @__PURE__ */ jsx59(Icon3, {}) }),
2649
- /* @__PURE__ */ jsx59(
2713
+ /* @__PURE__ */ jsx61("div", { className: cn29("col-span-1 h-5 w-5 self-center", classNames2.icon), children: /* @__PURE__ */ jsx61(Icon3, {}) }),
2714
+ /* @__PURE__ */ jsx61(
2650
2715
  "div",
2651
2716
  {
2652
- className: cn27("col-start-2 row-start-1 self-center", classNames2.title),
2717
+ className: cn29("col-start-2 row-start-1 self-center", classNames2.title),
2653
2718
  children: messageTitle
2654
2719
  }
2655
2720
  ),
2656
- /* @__PURE__ */ jsx59("div", { className: cn27("col-start-2", classNames2.content), children })
2721
+ /* @__PURE__ */ jsx61("div", { className: cn29("col-start-2", classNames2.content), children })
2657
2722
  ]
2658
2723
  }
2659
2724
  );
2660
2725
  };
2661
2726
 
2662
2727
  // src/NumberField/NumberField.tsx
2663
- import { forwardRef as forwardRef11 } from "react";
2728
+ import { forwardRef as forwardRef12 } from "react";
2664
2729
  import { useFocusRing as useFocusRing6 } from "@react-aria/focus";
2665
2730
  import { useLocale as useLocale4 } from "@react-aria/i18n";
2666
2731
  import { useHover as useHover5 } from "@react-aria/interactions";
2667
2732
  import { useNumberField } from "@react-aria/numberfield";
2668
2733
  import { mergeProps as mergeProps12, useObjectRef as useObjectRef5 } from "@react-aria/utils";
2669
2734
  import { useNumberFieldState } from "@react-stately/numberfield";
2670
- import { cn as cn29, useClassNames as useClassNames30, useStateProps as useStateProps12 } from "@marigold/system";
2735
+ import { cn as cn31, useClassNames as useClassNames32, useStateProps as useStateProps11 } from "@marigold/system";
2671
2736
 
2672
2737
  // src/NumberField/StepButton.tsx
2673
2738
  import { useRef as useRef19 } from "react";
2674
2739
  import { useButton as useButton4 } from "@react-aria/button";
2675
2740
  import { useHover as useHover4 } from "@react-aria/interactions";
2676
2741
  import { mergeProps as mergeProps11 } from "@react-aria/utils";
2677
- import { cn as cn28, useStateProps as useStateProps11 } from "@marigold/system";
2678
- import { jsx as jsx60 } from "react/jsx-runtime";
2679
- var Plus = () => /* @__PURE__ */ jsx60("svg", { width: 16, height: 16, viewBox: "0 0 20 20", fill: "currentColor", children: /* @__PURE__ */ jsx60(
2742
+ import { cn as cn30, useStateProps as useStateProps10 } from "@marigold/system";
2743
+ import { jsx as jsx62 } from "react/jsx-runtime";
2744
+ var Plus = () => /* @__PURE__ */ jsx62("svg", { width: 16, height: 16, viewBox: "0 0 20 20", fill: "currentColor", children: /* @__PURE__ */ jsx62(
2680
2745
  "path",
2681
2746
  {
2682
2747
  fillRule: "evenodd",
@@ -2684,7 +2749,7 @@ var Plus = () => /* @__PURE__ */ jsx60("svg", { width: 16, height: 16, viewBox:
2684
2749
  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"
2685
2750
  }
2686
2751
  ) });
2687
- var Minus = () => /* @__PURE__ */ jsx60("svg", { width: 16, height: 16, viewBox: "0 0 20 20", fill: "currentColor", children: /* @__PURE__ */ jsx60(
2752
+ var Minus = () => /* @__PURE__ */ jsx62("svg", { width: 16, height: 16, viewBox: "0 0 20 20", fill: "currentColor", children: /* @__PURE__ */ jsx62(
2688
2753
  "path",
2689
2754
  {
2690
2755
  fillRule: "evenodd",
@@ -2703,16 +2768,16 @@ var StepButton = ({
2703
2768
  ref
2704
2769
  );
2705
2770
  const { hoverProps, isHovered } = useHover4(props);
2706
- const stateProps = useStateProps11({
2771
+ const stateProps = useStateProps10({
2707
2772
  active: isPressed,
2708
2773
  hover: isHovered,
2709
2774
  disabled: props.isDisabled
2710
2775
  });
2711
2776
  const Icon3 = direction === "up" ? Plus : Minus;
2712
- return /* @__PURE__ */ jsx60(
2777
+ return /* @__PURE__ */ jsx62(
2713
2778
  "div",
2714
2779
  {
2715
- className: cn28(
2780
+ className: cn30(
2716
2781
  [
2717
2782
  "flex items-center justify-center",
2718
2783
  "cursor-pointer data-[disabled]:cursor-not-allowed"
@@ -2721,14 +2786,14 @@ var StepButton = ({
2721
2786
  ),
2722
2787
  ...mergeProps11(buttonProps, hoverProps),
2723
2788
  ...stateProps,
2724
- children: /* @__PURE__ */ jsx60(Icon3, {})
2789
+ children: /* @__PURE__ */ jsx62(Icon3, {})
2725
2790
  }
2726
2791
  );
2727
2792
  };
2728
2793
 
2729
2794
  // src/NumberField/NumberField.tsx
2730
- import { jsx as jsx61, jsxs as jsxs25 } from "react/jsx-runtime";
2731
- var NumberField = forwardRef11(
2795
+ import { jsx as jsx63, jsxs as jsxs27 } from "react/jsx-runtime";
2796
+ var NumberField = forwardRef12(
2732
2797
  ({
2733
2798
  variant,
2734
2799
  size,
@@ -2766,7 +2831,7 @@ var NumberField = forwardRef11(
2766
2831
  isTextInput: true,
2767
2832
  autoFocus: props.autoFocus
2768
2833
  });
2769
- const stateProps = useStateProps12({
2834
+ const stateProps = useStateProps11({
2770
2835
  hover: isHovered,
2771
2836
  focus: isFocused,
2772
2837
  disabled,
@@ -2774,12 +2839,12 @@ var NumberField = forwardRef11(
2774
2839
  readOnly,
2775
2840
  required
2776
2841
  });
2777
- const classNames2 = useClassNames30({
2842
+ const classNames2 = useClassNames32({
2778
2843
  component: "NumberField",
2779
2844
  size,
2780
2845
  variant
2781
2846
  });
2782
- return /* @__PURE__ */ jsx61(
2847
+ return /* @__PURE__ */ jsx63(
2783
2848
  FieldBase,
2784
2849
  {
2785
2850
  label: props.label,
@@ -2793,16 +2858,16 @@ var NumberField = forwardRef11(
2793
2858
  variant,
2794
2859
  size,
2795
2860
  width,
2796
- children: /* @__PURE__ */ jsxs25(
2861
+ children: /* @__PURE__ */ jsxs27(
2797
2862
  "div",
2798
2863
  {
2799
2864
  "data-group": true,
2800
- className: cn29("flex items-stretch", classNames2.group),
2865
+ className: cn31("flex items-stretch", classNames2.group),
2801
2866
  "data-testid": "number-field-container",
2802
2867
  ...mergeProps12(groupProps, focusProps, hoverProps),
2803
2868
  ...stateProps,
2804
2869
  children: [
2805
- showStepper && /* @__PURE__ */ jsx61(
2870
+ showStepper && /* @__PURE__ */ jsx63(
2806
2871
  StepButton,
2807
2872
  {
2808
2873
  className: classNames2.stepper,
@@ -2810,7 +2875,7 @@ var NumberField = forwardRef11(
2810
2875
  ...decrementButtonProps
2811
2876
  }
2812
2877
  ),
2813
- /* @__PURE__ */ jsx61("div", { className: "flex-1", children: /* @__PURE__ */ jsx61(
2878
+ /* @__PURE__ */ jsx63("div", { className: "flex-1", children: /* @__PURE__ */ jsx63(
2814
2879
  Input,
2815
2880
  {
2816
2881
  ref: inputRef,
@@ -2820,7 +2885,7 @@ var NumberField = forwardRef11(
2820
2885
  ...stateProps
2821
2886
  }
2822
2887
  ) }),
2823
- showStepper && /* @__PURE__ */ jsx61(
2888
+ showStepper && /* @__PURE__ */ jsx63(
2824
2889
  StepButton,
2825
2890
  {
2826
2891
  className: classNames2.stepper,
@@ -2846,14 +2911,14 @@ import {
2846
2911
  defaultTheme,
2847
2912
  useTheme as useTheme3
2848
2913
  } from "@marigold/system";
2849
- import { jsx as jsx62 } from "react/jsx-runtime";
2914
+ import { jsx as jsx64 } from "react/jsx-runtime";
2850
2915
  function MarigoldProvider({
2851
2916
  children,
2852
2917
  theme
2853
2918
  }) {
2854
2919
  const outerTheme = useTheme3();
2855
2920
  const isTopLevel = outerTheme === defaultTheme;
2856
- return /* @__PURE__ */ jsx62(ThemeProvider, { theme, children: isTopLevel ? /* @__PURE__ */ jsx62(OverlayProvider, { children }) : children });
2921
+ return /* @__PURE__ */ jsx64(ThemeProvider, { theme, children: isTopLevel ? /* @__PURE__ */ jsx64(OverlayProvider, { children }) : children });
2857
2922
  }
2858
2923
 
2859
2924
  // src/Radio/Radio.tsx
@@ -2864,109 +2929,15 @@ import { Radio } from "react-aria-components";
2864
2929
  import { cn as cn33, useClassNames as useClassNames34 } from "@marigold/system";
2865
2930
 
2866
2931
  // src/Radio/Context.ts
2867
- import { createContext as createContext7, useContext as useContext7 } from "react";
2868
- var RadioGroupContext = createContext7(
2932
+ import { createContext as createContext6, useContext as useContext6 } from "react";
2933
+ var RadioGroupContext = createContext6(
2869
2934
  null
2870
2935
  );
2871
- var useRadioGroupContext = () => useContext7(RadioGroupContext);
2936
+ var useRadioGroupContext = () => useContext6(RadioGroupContext);
2872
2937
 
2873
2938
  // src/Radio/RadioGroup.tsx
2874
2939
  import { RadioGroup } from "react-aria-components";
2875
2940
  import { cn as cn32, useClassNames as useClassNames33 } from "@marigold/system";
2876
-
2877
- // src/FieldBase/_FieldBase.tsx
2878
- import { forwardRef as forwardRef12 } from "react";
2879
- import { cn as cn31, width as twWidth2, useClassNames as useClassNames32 } from "@marigold/system";
2880
-
2881
- // src/HelpText/_HelpText.tsx
2882
- import { Text } from "react-aria-components";
2883
- import { cn as cn30, useClassNames as useClassNames31 } from "@marigold/system";
2884
- import { Fragment as Fragment8, jsx as jsx63, jsxs as jsxs26 } from "react/jsx-runtime";
2885
- var HelpText2 = ({
2886
- variant,
2887
- size,
2888
- description,
2889
- error,
2890
- errorMessage,
2891
- ...props
2892
- }) => {
2893
- const hasErrorMessage = errorMessage && error;
2894
- const classNames2 = useClassNames31({
2895
- component: "HelpText",
2896
- variant,
2897
- size
2898
- });
2899
- if (!description && !errorMessage) {
2900
- return null;
2901
- }
2902
- return /* @__PURE__ */ jsx63(
2903
- Text,
2904
- {
2905
- ...props,
2906
- slot: hasErrorMessage ? "errorMessage" : "description",
2907
- className: cn30("flex items-center gap-1", classNames2.container),
2908
- children: hasErrorMessage ? /* @__PURE__ */ jsxs26(Fragment8, { children: [
2909
- /* @__PURE__ */ jsx63(
2910
- "svg",
2911
- {
2912
- className: cn30("h-4 w-4", classNames2.icon),
2913
- viewBox: "0 0 24 24",
2914
- role: "presentation",
2915
- children: /* @__PURE__ */ jsx63("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" })
2916
- }
2917
- ),
2918
- errorMessage
2919
- ] }) : description
2920
- }
2921
- );
2922
- };
2923
-
2924
- // src/FieldBase/_FieldBase.tsx
2925
- import { jsx as jsx64, jsxs as jsxs27 } from "react/jsx-runtime";
2926
- var fixedForwardRef = forwardRef12;
2927
- var _FieldBase = (props, ref) => {
2928
- const {
2929
- as: Component = "div",
2930
- children,
2931
- label,
2932
- size,
2933
- variant,
2934
- width = "full",
2935
- description,
2936
- errorMessage,
2937
- ...rest
2938
- } = props;
2939
- const classNames2 = useClassNames32({
2940
- component: "Field",
2941
- variant,
2942
- size
2943
- });
2944
- return /* @__PURE__ */ jsxs27(
2945
- Component,
2946
- {
2947
- ref,
2948
- className: cn31("group/field", twWidth2[width], classNames2),
2949
- ...rest,
2950
- children: [
2951
- label ? /* @__PURE__ */ jsx64(_Label, { variant, size, children: label }) : /* @__PURE__ */ jsx64("span", { "aria-hidden": "true" }),
2952
- children,
2953
- /* @__PURE__ */ jsx64(
2954
- HelpText2,
2955
- {
2956
- variant,
2957
- size,
2958
- description,
2959
- errorMessage,
2960
- error: props.isInvalid
2961
- }
2962
- )
2963
- ]
2964
- }
2965
- );
2966
- };
2967
- var FieldBase2 = fixedForwardRef(_FieldBase);
2968
-
2969
- // src/Radio/RadioGroup.tsx
2970
2941
  import { jsx as jsx65 } from "react/jsx-runtime";
2971
2942
  var _RadioGroup = ({
2972
2943
  variant,
@@ -3091,7 +3062,7 @@ import {
3091
3062
  cn as cn34,
3092
3063
  useClassNames as useClassNames35,
3093
3064
  useSmallScreen as useSmallScreen2,
3094
- useStateProps as useStateProps13
3065
+ useStateProps as useStateProps12
3095
3066
  } from "@marigold/system";
3096
3067
 
3097
3068
  // src/Select/intl.ts
@@ -3146,7 +3117,7 @@ var Select = forwardRef14(
3146
3117
  const { focusProps, isFocusVisible } = useFocusRing7();
3147
3118
  const classNames2 = useClassNames35({ component: "Select", variant, size });
3148
3119
  const isSmallScreen = useSmallScreen2();
3149
- const stateProps = useStateProps13({
3120
+ const stateProps = useStateProps12({
3150
3121
  disabled,
3151
3122
  error,
3152
3123
  focusVisible: isFocusVisible,
@@ -3407,9 +3378,9 @@ import {
3407
3378
  import { cn as cn42, useClassNames as useClassNames39 } from "@marigold/system";
3408
3379
 
3409
3380
  // src/Table/Context.tsx
3410
- import { createContext as createContext8, useContext as useContext8 } from "react";
3411
- var TableContext = createContext8({});
3412
- var useTableContext = () => useContext8(TableContext);
3381
+ import { createContext as createContext7, useContext as useContext7 } from "react";
3382
+ var TableContext = createContext7({});
3383
+ var useTableContext = () => useContext7(TableContext);
3413
3384
 
3414
3385
  // src/Table/TableBody.tsx
3415
3386
  import { useTableRowGroup } from "@react-aria/table";
@@ -3424,7 +3395,7 @@ import { useRef as useRef21 } from "react";
3424
3395
  import { useFocusRing as useFocusRing8 } from "@react-aria/focus";
3425
3396
  import { useTableCell } from "@react-aria/table";
3426
3397
  import { mergeProps as mergeProps14 } from "@react-aria/utils";
3427
- import { useStateProps as useStateProps14 } from "@marigold/system";
3398
+ import { useStateProps as useStateProps13 } from "@marigold/system";
3428
3399
  import { jsx as jsx73 } from "react/jsx-runtime";
3429
3400
  var TableCell = ({ cell }) => {
3430
3401
  const ref = useRef21(null);
@@ -3447,7 +3418,7 @@ var TableCell = ({ cell }) => {
3447
3418
  onPointerDown: (e) => e.stopPropagation()
3448
3419
  };
3449
3420
  const { focusProps, isFocusVisible } = useFocusRing8();
3450
- const stateProps = useStateProps14({ disabled, focusVisible: isFocusVisible });
3421
+ const stateProps = useStateProps13({ disabled, focusVisible: isFocusVisible });
3451
3422
  return /* @__PURE__ */ jsx73(
3452
3423
  "td",
3453
3424
  {
@@ -3465,7 +3436,7 @@ import { useRef as useRef22 } from "react";
3465
3436
  import { useFocusRing as useFocusRing9 } from "@react-aria/focus";
3466
3437
  import { useTableCell as useTableCell2, useTableSelectionCheckbox } from "@react-aria/table";
3467
3438
  import { mergeProps as mergeProps15 } from "@react-aria/utils";
3468
- import { cn as cn38, useStateProps as useStateProps15 } from "@marigold/system";
3439
+ import { cn as cn38, useStateProps as useStateProps14 } from "@marigold/system";
3469
3440
 
3470
3441
  // src/Table/utils.ts
3471
3442
  var mapCheckboxProps = ({
@@ -3504,7 +3475,7 @@ var TableCheckboxCell = ({ cell }) => {
3504
3475
  useTableSelectionCheckbox({ key: cell.parentKey }, state)
3505
3476
  );
3506
3477
  const { focusProps, isFocusVisible } = useFocusRing9();
3507
- const stateProps = useStateProps15({ disabled, focusVisible: isFocusVisible });
3478
+ const stateProps = useStateProps14({ disabled, focusVisible: isFocusVisible });
3508
3479
  return /* @__PURE__ */ jsx74(
3509
3480
  "td",
3510
3481
  {
@@ -3524,7 +3495,7 @@ import { useHover as useHover6 } from "@react-aria/interactions";
3524
3495
  import { useTableColumnHeader } from "@react-aria/table";
3525
3496
  import { mergeProps as mergeProps16 } from "@react-aria/utils";
3526
3497
  import { SortDown, SortUp } from "@marigold/icons";
3527
- import { cn as cn39, useStateProps as useStateProps16 } from "@marigold/system";
3498
+ import { cn as cn39, useStateProps as useStateProps15 } from "@marigold/system";
3528
3499
  import { width as twWidth5 } from "@marigold/system";
3529
3500
  import { jsx as jsx75, jsxs as jsxs32 } from "react/jsx-runtime";
3530
3501
  var TableColumnHeader = ({
@@ -3543,7 +3514,7 @@ var TableColumnHeader = ({
3543
3514
  );
3544
3515
  const { hoverProps, isHovered } = useHover6({});
3545
3516
  const { focusProps, isFocusVisible } = useFocusRing10();
3546
- const stateProps = useStateProps16({
3517
+ const stateProps = useStateProps15({
3547
3518
  hover: isHovered,
3548
3519
  focusVisible: isFocusVisible
3549
3520
  });
@@ -3588,7 +3559,7 @@ import { useFocusRing as useFocusRing11 } from "@react-aria/focus";
3588
3559
  import { useHover as useHover7 } from "@react-aria/interactions";
3589
3560
  import { useTableRow } from "@react-aria/table";
3590
3561
  import { mergeProps as mergeProps17 } from "@react-aria/utils";
3591
- import { cn as cn40, useClassNames as useClassNames38, useStateProps as useStateProps17 } from "@marigold/system";
3562
+ import { cn as cn40, useClassNames as useClassNames38, useStateProps as useStateProps16 } from "@marigold/system";
3592
3563
  import { jsx as jsx78 } from "react/jsx-runtime";
3593
3564
  var TableRow = ({ children, row }) => {
3594
3565
  const ref = useRef25(null);
@@ -3612,7 +3583,7 @@ var TableRow = ({ children, row }) => {
3612
3583
  const { hoverProps, isHovered } = useHover7({
3613
3584
  isDisabled: disabled || !interactive
3614
3585
  });
3615
- const stateProps = useStateProps17({
3586
+ const stateProps = useStateProps16({
3616
3587
  disabled,
3617
3588
  selected,
3618
3589
  hover: isHovered,
@@ -3648,7 +3619,7 @@ import { mergeProps as mergeProps18 } from "@react-aria/utils";
3648
3619
  import {
3649
3620
  cn as cn41,
3650
3621
  width as twWidth6,
3651
- useStateProps as useStateProps18
3622
+ useStateProps as useStateProps17
3652
3623
  } from "@marigold/system";
3653
3624
  import { jsx as jsx79 } from "react/jsx-runtime";
3654
3625
  var TableSelectAllCell = ({
@@ -3667,7 +3638,7 @@ var TableSelectAllCell = ({
3667
3638
  const { checkboxProps } = mapCheckboxProps(useTableSelectAllCheckbox(state));
3668
3639
  const { hoverProps, isHovered } = useHover8({});
3669
3640
  const { focusProps, isFocusVisible } = useFocusRing12();
3670
- const stateProps = useStateProps18({
3641
+ const stateProps = useStateProps17({
3671
3642
  hover: isHovered,
3672
3643
  focusVisible: isFocusVisible
3673
3644
  });
@@ -3833,7 +3804,7 @@ import { useFocusRing as useFocusRing13 } from "@react-aria/focus";
3833
3804
  import { useHover as useHover9 } from "@react-aria/interactions";
3834
3805
  import { useTextField } from "@react-aria/textfield";
3835
3806
  import { useObjectRef as useObjectRef7 } from "@react-aria/utils";
3836
- import { useClassNames as useClassNames41, useStateProps as useStateProps19 } from "@marigold/system";
3807
+ import { useClassNames as useClassNames41, useStateProps as useStateProps18 } from "@marigold/system";
3837
3808
  import { jsx as jsx82 } from "react/jsx-runtime";
3838
3809
  var TextArea = forwardRef17(
3839
3810
  ({
@@ -3862,7 +3833,7 @@ var TextArea = forwardRef17(
3862
3833
  );
3863
3834
  const { hoverProps, isHovered } = useHover9({});
3864
3835
  const { focusProps, isFocusVisible } = useFocusRing13();
3865
- const stateProps = useStateProps19({
3836
+ const stateProps = useStateProps18({
3866
3837
  hover: isHovered,
3867
3838
  focus: isFocusVisible,
3868
3839
  disabled,
@@ -3907,7 +3878,7 @@ import { useFocusRing as useFocusRing14 } from "@react-aria/focus";
3907
3878
  import { useHover as useHover10 } from "@react-aria/interactions";
3908
3879
  import { useTextField as useTextField2 } from "@react-aria/textfield";
3909
3880
  import { mergeProps as mergeProps19, useObjectRef as useObjectRef8 } from "@react-aria/utils";
3910
- import { useStateProps as useStateProps20 } from "@marigold/system";
3881
+ import { useStateProps as useStateProps19 } from "@marigold/system";
3911
3882
  import { jsx as jsx83 } from "react/jsx-runtime";
3912
3883
  var TextField = forwardRef18(
3913
3884
  ({ variant, size, width, disabled, required, readOnly, error, ...props }, ref) => {
@@ -3928,7 +3899,7 @@ var TextField = forwardRef18(
3928
3899
  isTextInput: true,
3929
3900
  autoFocus
3930
3901
  });
3931
- const stateProps = useStateProps20({
3902
+ const stateProps = useStateProps19({
3932
3903
  hover: isHovered,
3933
3904
  focus: isFocused,
3934
3905
  disabled,
@@ -4000,9 +3971,9 @@ import { useTooltip } from "@react-aria/tooltip";
4000
3971
  import { cn as cn45, useClassNames as useClassNames42 } from "@marigold/system";
4001
3972
 
4002
3973
  // src/Tooltip/Context.ts
4003
- import { createContext as createContext9, useContext as useContext9 } from "react";
4004
- var TooltipContext = createContext9({});
4005
- var useTooltipContext = () => useContext9(TooltipContext);
3974
+ import { createContext as createContext8, useContext as useContext8 } from "react";
3975
+ var TooltipContext = createContext8({});
3976
+ var useTooltipContext = () => useContext8(TooltipContext);
4006
3977
 
4007
3978
  // src/Tooltip/TooltipTrigger.tsx
4008
3979
  import { Children as Children7, useRef as useRef28 } from "react";
@@ -4102,7 +4073,7 @@ import { Item as Item6 } from "@react-stately/collections";
4102
4073
  import { useRef as useRef30 } from "react";
4103
4074
  import { useTagGroup } from "@react-aria/tag";
4104
4075
  import { useListState } from "@react-stately/list";
4105
- import { useStateProps as useStateProps21 } from "@marigold/system";
4076
+ import { useStateProps as useStateProps20 } from "@marigold/system";
4106
4077
 
4107
4078
  // src/TagGroup/Tag.tsx
4108
4079
  import React3, { useRef as useRef29 } from "react";
@@ -4171,7 +4142,7 @@ var TagGroup = ({
4171
4142
  const inputRef = useRef30(null);
4172
4143
  const state = useListState(props);
4173
4144
  const { gridProps, labelProps, descriptionProps, errorMessageProps } = useTagGroup(props, state, inputRef);
4174
- const stateProps = useStateProps21({
4145
+ const stateProps = useStateProps20({
4175
4146
  error,
4176
4147
  required
4177
4148
  });
@@ -4444,16 +4415,16 @@ import { useTabListState } from "@react-stately/tabs";
4444
4415
  import { cn as cn49, gapSpace as gapSpace8, useClassNames as useClassNames44 } from "@marigold/system";
4445
4416
 
4446
4417
  // src/Tabs/Context.ts
4447
- import { createContext as createContext10, useContext as useContext10 } from "react";
4448
- var TabContext = createContext10({});
4449
- var useTabContext = () => useContext10(TabContext);
4418
+ import { createContext as createContext9, useContext as useContext9 } from "react";
4419
+ var TabContext = createContext9({});
4420
+ var useTabContext = () => useContext9(TabContext);
4450
4421
 
4451
4422
  // src/Tabs/Tab.tsx
4452
4423
  import { useRef as useRef31 } from "react";
4453
4424
  import { useFocus, useHover as useHover11 } from "@react-aria/interactions";
4454
4425
  import { useTab } from "@react-aria/tabs";
4455
4426
  import { mergeProps as mergeProps21 } from "@react-aria/utils";
4456
- import { cn as cn47, useStateProps as useStateProps22 } from "@marigold/system";
4427
+ import { cn as cn47, useStateProps as useStateProps21 } from "@marigold/system";
4457
4428
  import { jsx as jsx90 } from "react/jsx-runtime";
4458
4429
  var Tab = ({ item, state }) => {
4459
4430
  const { key, rendered } = item;
@@ -4464,7 +4435,7 @@ var Tab = ({ item, state }) => {
4464
4435
  isDisabled: disabled || isSelected
4465
4436
  });
4466
4437
  const { focusProps } = useFocus({});
4467
- const stateProps = useStateProps22({ active: isSelected, hover: isHovered });
4438
+ const stateProps = useStateProps21({ active: isSelected, hover: isHovered });
4468
4439
  const { classNames: classNames2 } = useTabContext();
4469
4440
  return /* @__PURE__ */ jsx90(
4470
4441
  "div",
@@ -4549,8 +4520,7 @@ export {
4549
4520
  Card,
4550
4521
  Center,
4551
4522
  _Checkbox as Checkbox,
4552
- CheckboxGroup,
4553
- CheckboxGroupContext,
4523
+ _CheckboxGroup as CheckboxGroup,
4554
4524
  Columns,
4555
4525
  ComboBox,
4556
4526
  Container,
@@ -4601,7 +4571,6 @@ export {
4601
4571
  XLoader,
4602
4572
  _Slider,
4603
4573
  useAsyncList,
4604
- useCheckboxGroupContext,
4605
4574
  useFieldGroupContext,
4606
4575
  useListData,
4607
4576
  useTheme4 as useTheme