@marigold/components 6.10.0 → 6.11.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
@@ -252,7 +252,6 @@ var Aside = ({
252
252
  sideWidth,
253
253
  space = 0,
254
254
  side = "left",
255
- stretch = true,
256
255
  wrap = "50%"
257
256
  }) => {
258
257
  const [left, right] = Children2.toArray(children);
@@ -260,34 +259,24 @@ var Aside = ({
260
259
  aside: createVar({ sideWidth }),
261
260
  content: createVar({ wrap })
262
261
  };
263
- return /* @__PURE__ */ jsxs2(
264
- "div",
265
- {
266
- className: cn2(
267
- "flex flex-wrap",
268
- gapSpace[space],
269
- !stretch && "items-start"
270
- ),
271
- children: [
272
- /* @__PURE__ */ jsx5(
273
- "div",
274
- {
275
- className: classNames[side === "left" ? "aside" : "content"],
276
- style: vars[side === "left" ? "aside" : "content"],
277
- children: left
278
- }
279
- ),
280
- /* @__PURE__ */ jsx5(
281
- "div",
282
- {
283
- className: classNames[side === "right" ? "aside" : "content"],
284
- style: vars[side === "right" ? "aside" : "content"],
285
- children: right
286
- }
287
- )
288
- ]
289
- }
290
- );
262
+ return /* @__PURE__ */ jsxs2("div", { className: cn2("flex flex-wrap", gapSpace[space]), children: [
263
+ /* @__PURE__ */ jsx5(
264
+ "div",
265
+ {
266
+ className: classNames[side === "left" ? "aside" : "content"],
267
+ style: vars[side === "left" ? "aside" : "content"],
268
+ children: left
269
+ }
270
+ ),
271
+ /* @__PURE__ */ jsx5(
272
+ "div",
273
+ {
274
+ className: classNames[side === "right" ? "aside" : "content"],
275
+ style: vars[side === "right" ? "aside" : "content"],
276
+ children: right
277
+ }
278
+ )
279
+ ] });
291
280
  };
292
281
 
293
282
  // src/Aspect/Aspect.tsx
@@ -520,7 +509,7 @@ var Input = forwardRef3(
520
509
  }
521
510
  );
522
511
 
523
- // src/ListBox/ListBox.tsx
512
+ // src/ListBox/_ListBox.tsx
524
513
  import { forwardRef as forwardRef4 } from "react";
525
514
  import { useListBox } from "@react-aria/listbox";
526
515
  import { useObjectRef } from "@react-aria/utils";
@@ -531,7 +520,7 @@ import { createContext as createContext2, useContext as useContext2 } from "reac
531
520
  var ListBoxContext = createContext2({});
532
521
  var useListBoxContext = () => useContext2(ListBoxContext);
533
522
 
534
- // src/ListBox/ListBoxOption.tsx
523
+ // src/ListBox/_ListBoxOption.tsx
535
524
  import { useRef as useRef3 } from "react";
536
525
  import { useOption } from "@react-aria/listbox";
537
526
  import { mergeProps as mergeProps3 } from "@react-aria/utils";
@@ -564,7 +553,7 @@ var ListBoxOption = ({ item, state }) => {
564
553
  );
565
554
  };
566
555
 
567
- // src/ListBox/ListBoxSection.tsx
556
+ // src/ListBox/_ListBoxSection.tsx
568
557
  import { useListBoxSection } from "@react-aria/listbox";
569
558
  import { jsx as jsx13, jsxs as jsxs7 } from "react/jsx-runtime";
570
559
  var ListBoxSection = ({ section, state }) => {
@@ -579,25 +568,27 @@ var ListBoxSection = ({ section, state }) => {
579
568
  ] });
580
569
  };
581
570
 
582
- // src/ListBox/ListBox.tsx
571
+ // src/ListBox/_ListBox.tsx
583
572
  import { jsx as jsx14 } from "react/jsx-runtime";
584
573
  var ListBox = forwardRef4(
585
574
  ({ state, variant, size, ...props }, ref) => {
586
575
  const innerRef = useObjectRef(ref);
587
576
  const { listBoxProps } = useListBox(props, state, innerRef);
588
577
  const classNames2 = useClassNames6({ component: "ListBox", variant, size });
589
- return /* @__PURE__ */ jsx14(ListBoxContext.Provider, { value: { classNames: classNames2 }, children: /* @__PURE__ */ jsx14(
590
- "div",
578
+ return /* @__PURE__ */ jsx14(ListBoxContext.Provider, { value: { classNames: classNames2 }, children: /* @__PURE__ */ jsx14("div", { className: classNames2.container, children: /* @__PURE__ */ jsx14(
579
+ "ul",
591
580
  {
592
581
  className: cn8(
593
- "overflow-y-auto overflow-x-hidden",
594
- classNames2.container
582
+ "overflow-y-auto sm:max-h-[75vh] lg:max-h-[45vh]",
583
+ classNames2.list
595
584
  ),
596
- children: /* @__PURE__ */ jsx14("ul", { className: classNames2.list, ref: innerRef, ...listBoxProps, children: [...state.collection].map(
585
+ ref: innerRef,
586
+ ...listBoxProps,
587
+ children: [...state.collection].map(
597
588
  (item) => item.type === "section" ? /* @__PURE__ */ jsx14(ListBoxSection, { section: item, state }, item.key) : /* @__PURE__ */ jsx14(ListBoxOption, { item, state }, item.key)
598
- ) })
589
+ )
599
590
  }
600
- ) });
591
+ ) }) });
601
592
  }
602
593
  );
603
594
 
@@ -688,14 +679,14 @@ var Overlay = ({ children, container, open }) => {
688
679
  ) });
689
680
  };
690
681
 
691
- // src/Overlay/Popover.tsx
682
+ // src/Overlay/_Popover.tsx
692
683
  import { forwardRef as forwardRef6, useRef as useRef5 } from "react";
693
684
  import { FocusScope } from "@react-aria/focus";
694
685
  import {
695
686
  DismissButton,
696
687
  usePopover
697
688
  } from "@react-aria/overlays";
698
- import { cn as cn10, useClassNames as useClassNames8 } from "@marigold/system";
689
+ import { useClassNames as useClassNames8 } from "@marigold/system";
699
690
  import { jsx as jsx18, jsxs as jsxs8 } from "react/jsx-runtime";
700
691
  var Popover = forwardRef6(
701
692
  (props, ref) => {
@@ -733,10 +724,7 @@ var PopoverWrapper = forwardRef6(
733
724
  "div",
734
725
  {
735
726
  ...popoverProps,
736
- className: cn10(
737
- "flex flex-col sm:max-h-[75vh] lg:max-h-[45vh]",
738
- classNames2
739
- ),
727
+ className: classNames2,
740
728
  style: {
741
729
  ...popoverProps.style,
742
730
  minWidth: props.triggerRef.current ? props.triggerRef.current.offsetWidth : void 0
@@ -764,11 +752,11 @@ import {
764
752
  import { useObjectRef as useObjectRef2 } from "@react-aria/utils";
765
753
 
766
754
  // src/Overlay/_Underlay.tsx
767
- import { cn as cn11, useClassNames as useClassNames9 } from "@marigold/system";
755
+ import { cn as cn10, useClassNames as useClassNames9 } from "@marigold/system";
768
756
  import { jsx as jsx19 } from "react/jsx-runtime";
769
757
  var Underlay2 = ({ size, variant, ...props }) => {
770
758
  const classNames2 = useClassNames9({ component: "Underlay", size, variant });
771
- return /* @__PURE__ */ jsx19("div", { className: cn11("fixed inset-0 z-40", classNames2), ...props });
759
+ return /* @__PURE__ */ jsx19("div", { className: cn10("fixed inset-0 z-40", classNames2), ...props });
772
760
  };
773
761
 
774
762
  // src/Overlay/Tray.tsx
@@ -812,7 +800,7 @@ import { useButton as useButton2 } from "@react-aria/button";
812
800
  import { useFocusRing as useFocusRing2 } from "@react-aria/focus";
813
801
  import { useHover } from "@react-aria/interactions";
814
802
  import { mergeProps as mergeProps4 } from "@react-aria/utils";
815
- import { cn as cn12, useStateProps as useStateProps3 } from "@marigold/system";
803
+ import { cn as cn11, useStateProps as useStateProps3 } from "@marigold/system";
816
804
  import { jsx as jsx21 } from "react/jsx-runtime";
817
805
  var ClearButton = ({
818
806
  preventFocus,
@@ -862,7 +850,7 @@ var ClearButton = ({
862
850
  ...mergeProps4(buttonProps, focusProps, hoverProps, props),
863
851
  ...stateProps,
864
852
  ref: buttonRef,
865
- className: cn12(
853
+ className: cn11(
866
854
  "cursor-pointer appearance-none border-none p-0 pr-1",
867
855
  className
868
856
  ),
@@ -1001,7 +989,7 @@ import { useComboBoxState as useComboBoxState2 } from "@react-stately/combobox";
1001
989
  // src/Button/Button.tsx
1002
990
  import { forwardRef as forwardRef8 } from "react";
1003
991
  import { Button } from "react-aria-components";
1004
- import { cn as cn13, useClassNames as useClassNames10 } from "@marigold/system";
992
+ import { cn as cn12, useClassNames as useClassNames10 } from "@marigold/system";
1005
993
  import { jsx as jsx23 } from "react/jsx-runtime";
1006
994
  var _Button = forwardRef8(
1007
995
  ({ children, variant, size, className, disabled, fullWidth, ...props }, ref) => {
@@ -1016,7 +1004,7 @@ var _Button = forwardRef8(
1016
1004
  {
1017
1005
  ...props,
1018
1006
  ref,
1019
- className: cn13(
1007
+ className: cn12(
1020
1008
  "inline-flex items-center justify-center gap-[0.5ch]",
1021
1009
  classNames2,
1022
1010
  fullWidth ? "w-full" : void 0
@@ -1122,7 +1110,7 @@ var Badge = ({ variant, size, children, ...props }) => {
1122
1110
  };
1123
1111
 
1124
1112
  // src/Breakout/Breakout.tsx
1125
- import { alignment, cn as cn14, createVar as createVar4 } from "@marigold/system";
1113
+ import { alignment, cn as cn13, createVar as createVar4 } from "@marigold/system";
1126
1114
  import { jsx as jsx26 } from "react/jsx-runtime";
1127
1115
  var Breakout = ({
1128
1116
  height,
@@ -1136,7 +1124,7 @@ var Breakout = ({
1136
1124
  return /* @__PURE__ */ jsx26(
1137
1125
  "div",
1138
1126
  {
1139
- className: cn14(
1127
+ className: cn13(
1140
1128
  "col-start-[1_!important] col-end-[-1_!important] w-full",
1141
1129
  alignX && ((_b = (_a = alignment) == null ? void 0 : _a.horizontal) == null ? void 0 : _b.alignmentX[alignX]),
1142
1130
  alignY && ((_d = (_c = alignment) == null ? void 0 : _c.horizontal) == null ? void 0 : _d.alignmentY[alignY]),
@@ -1160,7 +1148,7 @@ var Body = ({ children, variant, size, ...props }) => {
1160
1148
 
1161
1149
  // src/Card/Card.tsx
1162
1150
  import {
1163
- cn as cn15,
1151
+ cn as cn14,
1164
1152
  gapSpace as gapSpace2,
1165
1153
  paddingBottom,
1166
1154
  paddingLeft,
@@ -1191,7 +1179,7 @@ var Card = ({
1191
1179
  "div",
1192
1180
  {
1193
1181
  ...props,
1194
- className: cn15(
1182
+ className: cn14(
1195
1183
  "flex flex-col",
1196
1184
  classNames2,
1197
1185
  gapSpace2[space],
@@ -1209,7 +1197,7 @@ var Card = ({
1209
1197
  };
1210
1198
 
1211
1199
  // src/Center/Center.tsx
1212
- import { cn as cn16, createVar as createVar5, gapSpace as gapSpace3 } from "@marigold/system";
1200
+ import { cn as cn15, createVar as createVar5, gapSpace as gapSpace3 } from "@marigold/system";
1213
1201
  import { jsx as jsx29 } from "react/jsx-runtime";
1214
1202
  var Center = ({
1215
1203
  maxWidth = "100%",
@@ -1221,7 +1209,7 @@ var Center = ({
1221
1209
  "div",
1222
1210
  {
1223
1211
  ...props,
1224
- className: cn16(
1212
+ className: cn15(
1225
1213
  "me-[auto] ms-[auto] box-content flex flex-col items-center justify-center",
1226
1214
  gapSpace3[space],
1227
1215
  "max-w-[--maxWidth]"
@@ -1235,7 +1223,7 @@ var Center = ({
1235
1223
  // src/Checkbox/Checkbox.tsx
1236
1224
  import { forwardRef as forwardRef9 } from "react";
1237
1225
  import { Checkbox } from "react-aria-components";
1238
- import { cn as cn17, useClassNames as useClassNames14 } from "@marigold/system";
1226
+ import { cn as cn16, useClassNames as useClassNames14 } from "@marigold/system";
1239
1227
  import { Fragment as Fragment4, jsx as jsx30, jsxs as jsxs12 } from "react/jsx-runtime";
1240
1228
  var CheckMark = () => /* @__PURE__ */ jsx30("svg", { viewBox: "0 0 12 10", children: /* @__PURE__ */ jsx30(
1241
1229
  "path",
@@ -1258,7 +1246,7 @@ var Icon = ({ className, checked, indeterminate, ...props }) => {
1258
1246
  "div",
1259
1247
  {
1260
1248
  "aria-hidden": "true",
1261
- className: cn17(
1249
+ className: cn16(
1262
1250
  "flex shrink-0 grow-0 basis-4 items-center justify-center",
1263
1251
  "h-4 w-4 p-px",
1264
1252
  "bg-white",
@@ -1300,7 +1288,7 @@ var _Checkbox = forwardRef9(
1300
1288
  Checkbox,
1301
1289
  {
1302
1290
  ref,
1303
- className: cn17(
1291
+ className: cn16(
1304
1292
  "group/checkbox flex items-center gap-[0.5rem]",
1305
1293
  "cursor-pointer data-[disabled]:cursor-not-allowed",
1306
1294
  classNames2.container
@@ -1328,11 +1316,11 @@ import { useClassNames as useClassNames17 } from "@marigold/system";
1328
1316
 
1329
1317
  // src/FieldBase/_FieldBase.tsx
1330
1318
  import { forwardRef as forwardRef10 } from "react";
1331
- import { cn as cn19, width as twWidth2, useClassNames as useClassNames16 } from "@marigold/system";
1319
+ import { cn as cn18, width as twWidth2, useClassNames as useClassNames16 } from "@marigold/system";
1332
1320
 
1333
1321
  // src/HelpText/_HelpText.tsx
1334
1322
  import { FieldError, Text } from "react-aria-components";
1335
- import { cn as cn18, useClassNames as useClassNames15 } from "@marigold/system";
1323
+ import { cn as cn17, useClassNames as useClassNames15 } from "@marigold/system";
1336
1324
  import { jsx as jsx31, jsxs as jsxs13 } from "react/jsx-runtime";
1337
1325
  var HelpText2 = ({
1338
1326
  variant,
@@ -1340,7 +1328,6 @@ var HelpText2 = ({
1340
1328
  description,
1341
1329
  error,
1342
1330
  errorMessage,
1343
- isInvalid,
1344
1331
  ...props
1345
1332
  }) => {
1346
1333
  const hasErrorMessage = errorMessage && error;
@@ -1352,7 +1339,7 @@ var HelpText2 = ({
1352
1339
  if (!description && !errorMessage) {
1353
1340
  return null;
1354
1341
  }
1355
- return /* @__PURE__ */ jsxs13("div", { className: cn18(classNames2.container), children: [
1342
+ return /* @__PURE__ */ jsxs13("div", { className: cn17(classNames2.container), children: [
1356
1343
  /* @__PURE__ */ jsxs13(
1357
1344
  FieldError,
1358
1345
  {
@@ -1362,7 +1349,7 @@ var HelpText2 = ({
1362
1349
  /* @__PURE__ */ jsx31(
1363
1350
  "svg",
1364
1351
  {
1365
- className: cn18("h-4 w-4", classNames2.icon),
1352
+ className: cn17("h-4 w-4", classNames2.icon),
1366
1353
  viewBox: "0 0 24 24",
1367
1354
  role: "presentation",
1368
1355
  fill: "currentColor",
@@ -1403,7 +1390,7 @@ var _FieldBase = (props, ref) => {
1403
1390
  Component,
1404
1391
  {
1405
1392
  ref,
1406
- className: cn19("group/field", twWidth2[width], classNames2, className),
1393
+ className: cn18("group/field", twWidth2[width], classNames2, className),
1407
1394
  "data-required": props.isRequired ? true : void 0,
1408
1395
  "data-error": props.isInvalid ? true : void 0,
1409
1396
  ...rest,
@@ -1457,7 +1444,7 @@ var _CheckboxGroup = ({
1457
1444
 
1458
1445
  // src/Columns/Columns.tsx
1459
1446
  import { Children as Children3, cloneElement as cloneElement3, isValidElement as isValidElement2 } from "react";
1460
- import { cn as cn20, createVar as createVar6, gapSpace as gapSpace4 } from "@marigold/system";
1447
+ import { cn as cn19, createVar as createVar6, gapSpace as gapSpace4 } from "@marigold/system";
1461
1448
  import { jsx as jsx34 } from "react/jsx-runtime";
1462
1449
  var Columns = ({
1463
1450
  space = 0,
@@ -1477,7 +1464,7 @@ var Columns = ({
1477
1464
  return /* @__PURE__ */ jsx34(
1478
1465
  "div",
1479
1466
  {
1480
- className: cn20(
1467
+ className: cn19(
1481
1468
  "flex flex-wrap items-stretch",
1482
1469
  stretch && "h-full",
1483
1470
  gapSpace4[space]
@@ -1486,7 +1473,7 @@ var Columns = ({
1486
1473
  children: Children3.map(children, (child, idx) => /* @__PURE__ */ jsx34(
1487
1474
  "div",
1488
1475
  {
1489
- className: cn20(
1476
+ className: cn19(
1490
1477
  "grow-[--columnSize] basis-[calc((var(--collapseAt)_-_100%)_*_999)]"
1491
1478
  ),
1492
1479
  style: createVar6({ collapseAt, columnSize: columns[idx] }),
@@ -1499,7 +1486,7 @@ var Columns = ({
1499
1486
 
1500
1487
  // src/Container/Container.tsx
1501
1488
  import {
1502
- cn as cn21,
1489
+ cn as cn20,
1503
1490
  createVar as createVar7,
1504
1491
  gridColsAlign,
1505
1492
  gridColumn,
@@ -1529,7 +1516,7 @@ var Container = ({
1529
1516
  "div",
1530
1517
  {
1531
1518
  ...props,
1532
- className: cn21(
1519
+ className: cn20(
1533
1520
  "grid",
1534
1521
  placeItems[alignItems],
1535
1522
  gridColsAlign[align],
@@ -1544,12 +1531,12 @@ var Container = ({
1544
1531
  // src/Dialog/Dialog.tsx
1545
1532
  import { useContext as useContext3 } from "react";
1546
1533
  import { Dialog, OverlayTriggerStateContext } from "react-aria-components";
1547
- import { cn as cn23, useClassNames as useClassNames19 } from "@marigold/system";
1534
+ import { cn as cn22, useClassNames as useClassNames19 } from "@marigold/system";
1548
1535
 
1549
1536
  // src/Headline/Headline.tsx
1550
1537
  import { Heading } from "react-aria-components";
1551
1538
  import {
1552
- cn as cn22,
1539
+ cn as cn21,
1553
1540
  createVar as createVar8,
1554
1541
  get,
1555
1542
  textAlign,
@@ -1577,7 +1564,7 @@ var _Headline = ({
1577
1564
  {
1578
1565
  level: Number(level),
1579
1566
  ...props,
1580
- className: cn22(classNames2, "text-[--color]", textAlign[align]),
1567
+ className: cn21(classNames2, "text-[--color]", textAlign[align]),
1581
1568
  style: createVar8({
1582
1569
  color: color && theme.colors && get(
1583
1570
  theme.colors,
@@ -1599,6 +1586,7 @@ var _DialogTrigger = ({
1599
1586
  open,
1600
1587
  dismissable,
1601
1588
  keyboardDismissable,
1589
+ isNonModal,
1602
1590
  ...rest
1603
1591
  }) => {
1604
1592
  const props = {
@@ -1609,6 +1597,8 @@ var _DialogTrigger = ({
1609
1597
  const [dialogTrigger, dialog] = children;
1610
1598
  const hasDialogTrigger = dialogTrigger.type !== _Dialog;
1611
1599
  const currentDialog = children.length < 2 ? !hasDialogTrigger && dialogTrigger : dialog;
1600
+ if (isNonModal)
1601
+ return /* @__PURE__ */ jsx37(DialogTrigger, { ...props, children: props.children });
1612
1602
  return /* @__PURE__ */ jsxs15(DialogTrigger, { ...props, children: [
1613
1603
  hasDialogTrigger && dialogTrigger,
1614
1604
  /* @__PURE__ */ jsx37(
@@ -1629,7 +1619,7 @@ var CloseButton = ({ className }) => {
1629
1619
  return /* @__PURE__ */ jsx38("div", { className: "flex justify-end", children: /* @__PURE__ */ jsx38(
1630
1620
  "button",
1631
1621
  {
1632
- className: cn23(
1622
+ className: cn22(
1633
1623
  "h-4 w-4 cursor-pointer border-none p-0 leading-normal outline-0",
1634
1624
  className
1635
1625
  ),
@@ -1666,7 +1656,7 @@ var _Dialog = ({
1666
1656
  Dialog,
1667
1657
  {
1668
1658
  ...props,
1669
- className: cn23("relative outline-none", classNames2.container),
1659
+ className: cn22("relative outline-none", classNames2.container),
1670
1660
  children: /* @__PURE__ */ jsxs16(Fragment5, { children: [
1671
1661
  closeButton && /* @__PURE__ */ jsx38(CloseButton, { className: classNames2.closeButton }),
1672
1662
  children
@@ -1709,7 +1699,7 @@ var _Header = ({ variant, size, ...props }) => {
1709
1699
 
1710
1700
  // src/Image/Image.tsx
1711
1701
  import {
1712
- cn as cn24,
1702
+ cn as cn23,
1713
1703
  objectFit,
1714
1704
  objectPosition,
1715
1705
  useClassNames as useClassNames23
@@ -1728,7 +1718,7 @@ var Image = ({
1728
1718
  {
1729
1719
  ...props,
1730
1720
  alt: props.alt,
1731
- className: cn24(
1721
+ className: cn23(
1732
1722
  fit !== "none" && "h-full w-full",
1733
1723
  classNames2,
1734
1724
  objectFit[fit],
@@ -1741,7 +1731,7 @@ var Image = ({
1741
1731
  // src/Inline/Inline.tsx
1742
1732
  import {
1743
1733
  alignment as alignment2,
1744
- cn as cn25,
1734
+ cn as cn24,
1745
1735
  gapSpace as gapSpace5
1746
1736
  } from "@marigold/system";
1747
1737
  import { jsx as jsx43 } from "react/jsx-runtime";
@@ -1758,7 +1748,7 @@ var Inline = ({
1758
1748
  "div",
1759
1749
  {
1760
1750
  ...props,
1761
- className: cn25(
1751
+ className: cn24(
1762
1752
  "flex flex-wrap",
1763
1753
  gapSpace5[space],
1764
1754
  alignX && ((_b2 = (_a2 = alignment2) == null ? void 0 : _a2.horizontal) == null ? void 0 : _b2.alignmentX[alignX]),
@@ -1778,14 +1768,14 @@ import { useLocale } from "@react-aria/i18n";
1778
1768
  import { useHover as useHover2 } from "@react-aria/interactions";
1779
1769
  import { mergeProps as mergeProps6 } from "@react-aria/utils";
1780
1770
  import { useDateFieldState } from "@react-stately/datepicker";
1781
- import { cn as cn27, useClassNames as useClassNames24, useStateProps as useStateProps5 } from "@marigold/system";
1771
+ import { cn as cn26, useClassNames as useClassNames24, useStateProps as useStateProps5 } from "@marigold/system";
1782
1772
 
1783
1773
  // src/DateField/DateSegment.tsx
1784
1774
  import { useRef as useRef8 } from "react";
1785
1775
  import { useDateSegment } from "@react-aria/datepicker";
1786
1776
  import { useFocusRing as useFocusRing3 } from "@react-aria/focus";
1787
1777
  import { mergeProps as mergeProps5 } from "@react-aria/utils";
1788
- import { cn as cn26, useStateProps as useStateProps4 } from "@marigold/system";
1778
+ import { cn as cn25, useStateProps as useStateProps4 } from "@marigold/system";
1789
1779
  import { jsx as jsx44, jsxs as jsxs17 } from "react/jsx-runtime";
1790
1780
  var DateSegment = ({
1791
1781
  className,
@@ -1809,7 +1799,7 @@ var DateSegment = ({
1809
1799
  {
1810
1800
  ...mergeProps5(segmentProps, stateProps, focusProps),
1811
1801
  ref,
1812
- className: cn26(
1802
+ className: cn25(
1813
1803
  "group/segment",
1814
1804
  "text-center leading-none outline-0",
1815
1805
  type !== "literal" && "p-0.5",
@@ -1824,7 +1814,7 @@ var DateSegment = ({
1824
1814
  "span",
1825
1815
  {
1826
1816
  "aria-hidden": "true",
1827
- className: cn26(
1817
+ className: cn25(
1828
1818
  isPlaceholder ? "visible block" : "invisible hidden",
1829
1819
  "pointer-events-none w-full text-center"
1830
1820
  ),
@@ -1907,7 +1897,7 @@ var DateField = ({
1907
1897
  "div",
1908
1898
  {
1909
1899
  ...mergeProps6(fieldProps, focusProps, stateProps, hoverProps),
1910
- className: cn27(
1900
+ className: cn26(
1911
1901
  "relative flex flex-row flex-nowrap",
1912
1902
  "cursor-text aria-disabled:cursor-not-allowed",
1913
1903
  classNames2.field
@@ -1932,7 +1922,7 @@ var DateField = ({
1932
1922
  "svg",
1933
1923
  {
1934
1924
  "data-testid": "action",
1935
- className: cn27(classNames2.action),
1925
+ className: cn26(classNames2.action),
1936
1926
  viewBox: "0 0 24 24",
1937
1927
  width: 24,
1938
1928
  height: 24,
@@ -1955,7 +1945,7 @@ import {
1955
1945
  import { useDateFormatter as useDateFormatter3, useLocale as useLocale3 } from "@react-aria/i18n";
1956
1946
  import { useCalendarState } from "@react-stately/calendar";
1957
1947
  import { ChevronDown as ChevronDown2, ChevronLeft, ChevronRight } from "@marigold/icons";
1958
- import { cn as cn29, useClassNames as useClassNames26, useStateProps as useStateProps7 } from "@marigold/system";
1948
+ import { cn as cn28, useClassNames as useClassNames26, useStateProps as useStateProps7 } from "@marigold/system";
1959
1949
 
1960
1950
  // src/Calendar/CalendarGrid.tsx
1961
1951
  import { getWeeksInMonth, startOfWeek, today } from "@internationalized/date";
@@ -1969,7 +1959,7 @@ import { useRef as useRef10 } from "react";
1969
1959
  import { useCalendarCell } from "@react-aria/calendar";
1970
1960
  import { useHover as useHover3 } from "@react-aria/interactions";
1971
1961
  import { mergeProps as mergeProps7 } from "@react-aria/utils";
1972
- import { cn as cn28, useClassNames as useClassNames25, useStateProps as useStateProps6 } from "@marigold/system";
1962
+ import { cn as cn27, useClassNames as useClassNames25, useStateProps as useStateProps6 } from "@marigold/system";
1973
1963
  import { jsx as jsx46 } from "react/jsx-runtime";
1974
1964
  var CalendarCell = (props) => {
1975
1965
  const ref = useRef10(null);
@@ -1990,7 +1980,7 @@ var CalendarCell = (props) => {
1990
1980
  return /* @__PURE__ */ jsx46("td", { className: "group/cell", ...cellProps, children: /* @__PURE__ */ jsx46(
1991
1981
  "div",
1992
1982
  {
1993
- className: cn28(
1983
+ className: cn27(
1994
1984
  "flex h-[30px] w-[30px] cursor-pointer items-center justify-center rounded-full p-[5.3px] text-sm font-normal aria-disabled:cursor-default",
1995
1985
  classNames2.calendarCell
1996
1986
  ),
@@ -2211,7 +2201,7 @@ var Calendar = ({
2211
2201
  "div",
2212
2202
  {
2213
2203
  tabIndex: -1,
2214
- className: cn29(
2204
+ className: cn28(
2215
2205
  "flex min-h-[350px] w-[360px] flex-col rounded-sm p-4 shadow-[0_4px_4px_rgba(165,165,165,0.25)]",
2216
2206
  classNames2.calendar
2217
2207
  ),
@@ -2239,7 +2229,7 @@ var Calendar = ({
2239
2229
  {
2240
2230
  disabled: state.isDisabled,
2241
2231
  onClick: () => setSelectedDropdown("month"),
2242
- className: cn29(buttonStyles, selectClassNames),
2232
+ className: cn28(buttonStyles, selectClassNames),
2243
2233
  "data-testid": "month",
2244
2234
  children: [
2245
2235
  selectedValue.month,
@@ -2252,7 +2242,7 @@ var Calendar = ({
2252
2242
  {
2253
2243
  disabled: state.isDisabled,
2254
2244
  onClick: () => setSelectedDropdown("year"),
2255
- className: cn29(buttonStyles, selectClassNames),
2245
+ className: cn28(buttonStyles, selectClassNames),
2256
2246
  "data-testid": "year",
2257
2247
  children: [
2258
2248
  selectedValue.year,
@@ -2264,7 +2254,7 @@ var Calendar = ({
2264
2254
  /* @__PURE__ */ jsxs20(
2265
2255
  "div",
2266
2256
  {
2267
- className: cn29(
2257
+ className: cn28(
2268
2258
  "flex w-full flex-nowrap justify-end gap-[10px] [&_button:disabled]:cursor-not-allowed [&_button]:px-2 [&_button]:py-1",
2269
2259
  classNames2.calendarControllers
2270
2260
  ),
@@ -2365,7 +2355,7 @@ var DatePicker = ({
2365
2355
 
2366
2356
  // src/Inset/Inset.tsx
2367
2357
  import {
2368
- cn as cn30,
2358
+ cn as cn29,
2369
2359
  paddingSpace as paddingSpace2,
2370
2360
  paddingSpaceX as paddingSpaceX2,
2371
2361
  paddingSpaceY as paddingSpaceY2
@@ -2374,7 +2364,7 @@ import { jsx as jsx52 } from "react/jsx-runtime";
2374
2364
  var Inset = ({ space, spaceX, spaceY, children }) => /* @__PURE__ */ jsx52(
2375
2365
  "div",
2376
2366
  {
2377
- className: cn30(
2367
+ className: cn29(
2378
2368
  space && paddingSpace2[space],
2379
2369
  !space && spaceX && paddingSpaceX2[spaceX],
2380
2370
  !space && spaceY && paddingSpaceY2[spaceY]
@@ -2616,7 +2606,7 @@ var ActionMenu = (props) => {
2616
2606
  };
2617
2607
 
2618
2608
  // src/Message/Message.tsx
2619
- import { cn as cn31, useClassNames as useClassNames32 } from "@marigold/system";
2609
+ import { cn as cn30, useClassNames as useClassNames32 } from "@marigold/system";
2620
2610
  import { jsx as jsx61, jsxs as jsxs25 } from "react/jsx-runtime";
2621
2611
  var icons = {
2622
2612
  success: () => /* @__PURE__ */ jsx61(
@@ -2696,21 +2686,21 @@ var Message = ({
2696
2686
  return /* @__PURE__ */ jsxs25(
2697
2687
  "div",
2698
2688
  {
2699
- className: cn31(
2689
+ className: cn30(
2700
2690
  "grid auto-rows-min grid-cols-[min-content_auto] gap-1",
2701
2691
  classNames2.container
2702
2692
  ),
2703
2693
  ...props,
2704
2694
  children: [
2705
- /* @__PURE__ */ jsx61("div", { className: cn31("col-span-1 h-5 w-5 self-center", classNames2.icon), children: /* @__PURE__ */ jsx61(Icon3, {}) }),
2695
+ /* @__PURE__ */ jsx61("div", { className: cn30("col-span-1 h-5 w-5 self-center", classNames2.icon), children: /* @__PURE__ */ jsx61(Icon3, {}) }),
2706
2696
  /* @__PURE__ */ jsx61(
2707
2697
  "div",
2708
2698
  {
2709
- className: cn31("col-start-2 row-start-1 self-center", classNames2.title),
2699
+ className: cn30("col-start-2 row-start-1 self-center", classNames2.title),
2710
2700
  children: messageTitle
2711
2701
  }
2712
2702
  ),
2713
- /* @__PURE__ */ jsx61("div", { className: cn31("col-start-2", classNames2.content), children })
2703
+ /* @__PURE__ */ jsx61("div", { className: cn30("col-start-2", classNames2.content), children })
2714
2704
  ]
2715
2705
  }
2716
2706
  );
@@ -2719,12 +2709,12 @@ var Message = ({
2719
2709
  // src/NumberField/NumberField.tsx
2720
2710
  import { forwardRef as forwardRef13 } from "react";
2721
2711
  import { Group, NumberField } from "react-aria-components";
2722
- import { cn as cn34, useClassNames as useClassNames34 } from "@marigold/system";
2712
+ import { cn as cn33, useClassNames as useClassNames34 } from "@marigold/system";
2723
2713
 
2724
2714
  // src/Input/_Input.tsx
2725
2715
  import { cloneElement as cloneElement4, forwardRef as forwardRef12 } from "react";
2726
2716
  import { Input as Input2 } from "react-aria-components";
2727
- import { cn as cn32, useClassNames as useClassNames33 } from "@marigold/system";
2717
+ import { cn as cn31, useClassNames as useClassNames33 } from "@marigold/system";
2728
2718
  import { jsx as jsx62, jsxs as jsxs26 } from "react/jsx-runtime";
2729
2719
  var _Input = forwardRef12(
2730
2720
  ({ type, icon, action, variant, size, className, ...props }, ref) => {
@@ -2734,7 +2724,7 @@ var _Input = forwardRef12(
2734
2724
  size
2735
2725
  });
2736
2726
  const inputIcon = icon ? cloneElement4(icon, {
2737
- className: cn32(
2727
+ className: cn31(
2738
2728
  "pointer-events-none absolute",
2739
2729
  classNames2.icon,
2740
2730
  icon.props.className
@@ -2742,7 +2732,7 @@ var _Input = forwardRef12(
2742
2732
  ...icon.props
2743
2733
  }) : null;
2744
2734
  const inputAction = action && !props.readOnly ? cloneElement4(action, {
2745
- className: cn32(
2735
+ className: cn31(
2746
2736
  "absolute",
2747
2737
  classNames2.action,
2748
2738
  action.props.className
@@ -2761,7 +2751,7 @@ var _Input = forwardRef12(
2761
2751
  Input2,
2762
2752
  {
2763
2753
  ...props,
2764
- className: cn32(
2754
+ className: cn31(
2765
2755
  "w-full flex-1",
2766
2756
  "disabled:cursor-not-allowed",
2767
2757
  "[&[type=file]]:border-none [&[type=file]]:p-0",
@@ -2782,7 +2772,7 @@ var _Input = forwardRef12(
2782
2772
 
2783
2773
  // src/NumberField/StepButton.tsx
2784
2774
  import { Button as Button2 } from "react-aria-components";
2785
- import { cn as cn33 } from "@marigold/system";
2775
+ import { cn as cn32 } from "@marigold/system";
2786
2776
  import { jsx as jsx63 } from "react/jsx-runtime";
2787
2777
  var Plus = () => /* @__PURE__ */ jsx63("svg", { width: 16, height: 16, viewBox: "0 0 20 20", fill: "currentColor", children: /* @__PURE__ */ jsx63(
2788
2778
  "path",
@@ -2805,7 +2795,7 @@ var _StepButton = ({ direction, className, ...props }) => {
2805
2795
  return /* @__PURE__ */ jsx63(
2806
2796
  Button2,
2807
2797
  {
2808
- className: cn33(
2798
+ className: cn32(
2809
2799
  [
2810
2800
  "flex items-center justify-center",
2811
2801
  "cursor-pointer data-[disabled]:cursor-not-allowed"
@@ -2844,7 +2834,7 @@ var _NumberField = forwardRef13(
2844
2834
  ...rest
2845
2835
  };
2846
2836
  const showStepper = !hideStepper;
2847
- return /* @__PURE__ */ jsx64(FieldBase2, { as: NumberField, ...props, children: /* @__PURE__ */ jsxs27(Group, { className: cn34("flex items-stretch", classNames2.group), children: [
2837
+ return /* @__PURE__ */ jsx64(FieldBase2, { as: NumberField, ...props, children: /* @__PURE__ */ jsxs27(Group, { className: cn33("flex items-stretch", classNames2.group), children: [
2848
2838
  showStepper && /* @__PURE__ */ jsx64(
2849
2839
  _StepButton,
2850
2840
  {
@@ -2899,7 +2889,7 @@ import {
2899
2889
  forwardRef as forwardRef14
2900
2890
  } from "react";
2901
2891
  import { Radio } from "react-aria-components";
2902
- import { cn as cn36, useClassNames as useClassNames36 } from "@marigold/system";
2892
+ import { cn as cn35, useClassNames as useClassNames36 } from "@marigold/system";
2903
2893
 
2904
2894
  // src/Radio/Context.ts
2905
2895
  import { createContext as createContext5, useContext as useContext6 } from "react";
@@ -2910,7 +2900,7 @@ var useRadioGroupContext = () => useContext6(RadioGroupContext);
2910
2900
 
2911
2901
  // src/Radio/RadioGroup.tsx
2912
2902
  import { RadioGroup } from "react-aria-components";
2913
- import { cn as cn35, useClassNames as useClassNames35 } from "@marigold/system";
2903
+ import { cn as cn34, useClassNames as useClassNames35 } from "@marigold/system";
2914
2904
  import { jsx as jsx66 } from "react/jsx-runtime";
2915
2905
  var _RadioGroup = ({
2916
2906
  variant,
@@ -2952,7 +2942,7 @@ var _RadioGroup = ({
2952
2942
  role: "presentation",
2953
2943
  "data-testid": "group",
2954
2944
  "data-orientation": orientation,
2955
- className: cn35(
2945
+ className: cn34(
2956
2946
  classNames2.group,
2957
2947
  "flex items-start",
2958
2948
  orientation === "vertical" ? "flex-col gap-[0.5ch]" : "flex-row gap-[1.5ch]"
@@ -2970,7 +2960,7 @@ var Dot = () => /* @__PURE__ */ jsx67("svg", { viewBox: "0 0 6 6", children: /*
2970
2960
  var Icon2 = ({ checked, className, ...props }) => /* @__PURE__ */ jsx67(
2971
2961
  "div",
2972
2962
  {
2973
- className: cn36(
2963
+ className: cn35(
2974
2964
  "bg-secondary-50 flex h-4 w-4 items-center justify-center rounded-[50%] border p-1",
2975
2965
  className
2976
2966
  ),
@@ -2991,7 +2981,7 @@ var _Radio = forwardRef14(
2991
2981
  Radio,
2992
2982
  {
2993
2983
  ref,
2994
- className: cn36(
2984
+ className: cn35(
2995
2985
  "group/radio",
2996
2986
  "relative flex items-center gap-[1ch]",
2997
2987
  width || groupWidth || "w-full",
@@ -3005,7 +2995,7 @@ var _Radio = forwardRef14(
3005
2995
  Icon2,
3006
2996
  {
3007
2997
  checked: isSelected,
3008
- className: cn36(
2998
+ className: cn35(
3009
2999
  disabled ? "cursor-not-allowed" : "cursor-pointer",
3010
3000
  classNames2.radio
3011
3001
  )
@@ -3061,7 +3051,7 @@ import { mergeProps as mergeProps10, useObjectRef as useObjectRef4 } from "@reac
3061
3051
  import { Item as Item5, Section as Section2 } from "@react-stately/collections";
3062
3052
  import { useSelectState } from "@react-stately/select";
3063
3053
  import {
3064
- cn as cn37,
3054
+ cn as cn36,
3065
3055
  useClassNames as useClassNames37,
3066
3056
  useSmallScreen as useSmallScreen2,
3067
3057
  useStateProps as useStateProps10
@@ -3155,7 +3145,7 @@ var Select = forwardRef16(
3155
3145
  /* @__PURE__ */ jsxs29(
3156
3146
  "button",
3157
3147
  {
3158
- className: cn37(
3148
+ className: cn36(
3159
3149
  "flex w-full items-center justify-between gap-1 overflow-hidden",
3160
3150
  classNames2.select
3161
3151
  ),
@@ -3204,7 +3194,7 @@ import {
3204
3194
  SliderTrack
3205
3195
  } from "react-aria-components";
3206
3196
  import {
3207
- cn as cn38,
3197
+ cn as cn37,
3208
3198
  width as twWidth3,
3209
3199
  useClassNames as useClassNames38
3210
3200
  } from "@marigold/system";
@@ -3230,7 +3220,7 @@ var _Slider = forwardRef17(
3230
3220
  return /* @__PURE__ */ jsxs30(
3231
3221
  Slider,
3232
3222
  {
3233
- className: cn38(
3223
+ className: cn37(
3234
3224
  "grid grid-cols-[auto_1fr] gap-y-1",
3235
3225
  classNames2.container,
3236
3226
  twWidth3[width]
@@ -3239,15 +3229,15 @@ var _Slider = forwardRef17(
3239
3229
  ...props,
3240
3230
  children: [
3241
3231
  /* @__PURE__ */ jsx70(_Label, { children: props.children }),
3242
- /* @__PURE__ */ jsx70(SliderOutput, { className: cn38("flex justify-end", classNames2.output), children: ({ state }) => state.values.map((_, i) => state.getThumbValueLabel(i)).join(" \u2013 ") }),
3232
+ /* @__PURE__ */ jsx70(SliderOutput, { className: cn37("flex justify-end", classNames2.output), children: ({ state }) => state.values.map((_, i) => state.getThumbValueLabel(i)).join(" \u2013 ") }),
3243
3233
  /* @__PURE__ */ jsx70(
3244
3234
  SliderTrack,
3245
3235
  {
3246
- className: cn38("relative col-span-2 h-2 w-full", classNames2.track),
3236
+ className: cn37("relative col-span-2 h-2 w-full", classNames2.track),
3247
3237
  children: ({ state }) => state.values.map((_, i) => /* @__PURE__ */ jsx70(
3248
3238
  SliderThumb,
3249
3239
  {
3250
- className: cn38("top-1/2 cursor-pointer", classNames2.thumb),
3240
+ className: cn37("top-1/2 cursor-pointer", classNames2.thumb),
3251
3241
  index: i,
3252
3242
  "aria-label": thumbLabels == null ? void 0 : thumbLabels[i]
3253
3243
  },
@@ -3268,7 +3258,7 @@ var Split = (props) => /* @__PURE__ */ jsx71("div", { ...props, role: "separator
3268
3258
  // src/Stack/Stack.tsx
3269
3259
  import {
3270
3260
  alignment as alignment3,
3271
- cn as cn39,
3261
+ cn as cn38,
3272
3262
  gapSpace as gapSpace6
3273
3263
  } from "@marigold/system";
3274
3264
  import { jsx as jsx72 } from "react/jsx-runtime";
@@ -3285,7 +3275,7 @@ var Stack = ({
3285
3275
  return /* @__PURE__ */ jsx72(
3286
3276
  "div",
3287
3277
  {
3288
- className: cn39(
3278
+ className: cn38(
3289
3279
  "flex flex-col",
3290
3280
  gapSpace6[space],
3291
3281
  alignX && ((_b = (_a = alignment3) == null ? void 0 : _a.vertical) == null ? void 0 : _b.alignmentX[alignX]),
@@ -3302,7 +3292,7 @@ var Stack = ({
3302
3292
  import { forwardRef as forwardRef18 } from "react";
3303
3293
  import { Switch } from "react-aria-components";
3304
3294
  import {
3305
- cn as cn40,
3295
+ cn as cn39,
3306
3296
  width as twWidth4,
3307
3297
  useClassNames as useClassNames39
3308
3298
  } from "@marigold/system";
@@ -3330,7 +3320,7 @@ var _Switch = forwardRef18(
3330
3320
  {
3331
3321
  ...props,
3332
3322
  ref,
3333
- className: cn40(
3323
+ className: cn39(
3334
3324
  twWidth4[width],
3335
3325
  "group/switch",
3336
3326
  "flex items-center justify-between gap-[1ch]",
@@ -3341,14 +3331,14 @@ var _Switch = forwardRef18(
3341
3331
  /* @__PURE__ */ jsx73("div", { className: "relative", children: /* @__PURE__ */ jsx73(
3342
3332
  "div",
3343
3333
  {
3344
- className: cn40(
3334
+ className: cn39(
3345
3335
  "h-6 w-12 basis-12 rounded-3xl group-disabled/switch:cursor-not-allowed ",
3346
3336
  classNames2.track
3347
3337
  ),
3348
3338
  children: /* @__PURE__ */ jsx73(
3349
3339
  "div",
3350
3340
  {
3351
- className: cn40(
3341
+ className: cn39(
3352
3342
  "h-[22px] w-[22px]",
3353
3343
  "cubic-bezier(.7,0,.3,1)",
3354
3344
  "absolute left-0 top-px",
@@ -3377,7 +3367,7 @@ import {
3377
3367
  Row,
3378
3368
  useTableState
3379
3369
  } from "@react-stately/table";
3380
- import { cn as cn45, useClassNames as useClassNames41 } from "@marigold/system";
3370
+ import { cn as cn44, useClassNames as useClassNames41 } from "@marigold/system";
3381
3371
 
3382
3372
  // src/Table/Context.tsx
3383
3373
  import { createContext as createContext6, useContext as useContext7 } from "react";
@@ -3438,7 +3428,7 @@ import { useRef as useRef19 } from "react";
3438
3428
  import { useFocusRing as useFocusRing8 } from "@react-aria/focus";
3439
3429
  import { useTableCell as useTableCell2, useTableSelectionCheckbox } from "@react-aria/table";
3440
3430
  import { mergeProps as mergeProps12 } from "@react-aria/utils";
3441
- import { cn as cn41, useStateProps as useStateProps12 } from "@marigold/system";
3431
+ import { cn as cn40, useStateProps as useStateProps12 } from "@marigold/system";
3442
3432
 
3443
3433
  // src/Table/utils.ts
3444
3434
  var mapCheckboxProps = ({
@@ -3482,7 +3472,7 @@ var TableCheckboxCell = ({ cell }) => {
3482
3472
  "td",
3483
3473
  {
3484
3474
  ref,
3485
- className: cn41("text-center align-middle leading-none", classNames2 == null ? void 0 : classNames2.cell),
3475
+ className: cn40("text-center align-middle leading-none", classNames2 == null ? void 0 : classNames2.cell),
3486
3476
  ...mergeProps12(gridCellProps, focusProps),
3487
3477
  ...stateProps,
3488
3478
  children: /* @__PURE__ */ jsx76(_Checkbox, { ...checkboxProps })
@@ -3497,7 +3487,7 @@ import { useHover as useHover4 } from "@react-aria/interactions";
3497
3487
  import { useTableColumnHeader } from "@react-aria/table";
3498
3488
  import { mergeProps as mergeProps13 } from "@react-aria/utils";
3499
3489
  import { SortDown, SortUp } from "@marigold/icons";
3500
- import { cn as cn42, useStateProps as useStateProps13 } from "@marigold/system";
3490
+ import { cn as cn41, useStateProps as useStateProps13 } from "@marigold/system";
3501
3491
  import { width as twWidth5 } from "@marigold/system";
3502
3492
  import { jsx as jsx77, jsxs as jsxs32 } from "react/jsx-runtime";
3503
3493
  var TableColumnHeader = ({
@@ -3525,7 +3515,7 @@ var TableColumnHeader = ({
3525
3515
  {
3526
3516
  colSpan: column.colspan,
3527
3517
  ref,
3528
- className: cn42("cursor-default", twWidth5[width], classNames2 == null ? void 0 : classNames2.header),
3518
+ className: cn41("cursor-default", twWidth5[width], classNames2 == null ? void 0 : classNames2.header),
3529
3519
  ...mergeProps13(columnHeaderProps, hoverProps, focusProps),
3530
3520
  ...stateProps,
3531
3521
  children: [
@@ -3561,7 +3551,7 @@ import { useFocusRing as useFocusRing10 } from "@react-aria/focus";
3561
3551
  import { useHover as useHover5 } from "@react-aria/interactions";
3562
3552
  import { useTableRow } from "@react-aria/table";
3563
3553
  import { mergeProps as mergeProps14 } from "@react-aria/utils";
3564
- import { cn as cn43, useClassNames as useClassNames40, useStateProps as useStateProps14 } from "@marigold/system";
3554
+ import { cn as cn42, useClassNames as useClassNames40, useStateProps as useStateProps14 } from "@marigold/system";
3565
3555
  import { jsx as jsx80 } from "react/jsx-runtime";
3566
3556
  var TableRow = ({ children, row }) => {
3567
3557
  const ref = useRef22(null);
@@ -3596,7 +3586,7 @@ var TableRow = ({ children, row }) => {
3596
3586
  "tr",
3597
3587
  {
3598
3588
  ref,
3599
- className: cn43(
3589
+ className: cn42(
3600
3590
  [
3601
3591
  !interactive ? "cursor-text" : disabled ? "cursor-default" : "cursor-pointer"
3602
3592
  ],
@@ -3619,7 +3609,7 @@ import {
3619
3609
  } from "@react-aria/table";
3620
3610
  import { mergeProps as mergeProps15 } from "@react-aria/utils";
3621
3611
  import {
3622
- cn as cn44,
3612
+ cn as cn43,
3623
3613
  width as twWidth6,
3624
3614
  useStateProps as useStateProps15
3625
3615
  } from "@marigold/system";
@@ -3648,7 +3638,7 @@ var TableSelectAllCell = ({
3648
3638
  "th",
3649
3639
  {
3650
3640
  ref,
3651
- className: cn44(
3641
+ className: cn43(
3652
3642
  twWidth6[width],
3653
3643
  ["text-center align-middle leading-none"],
3654
3644
  classNames2 == null ? void 0 : classNames2.header
@@ -3692,7 +3682,7 @@ var Table = ({
3692
3682
  "table",
3693
3683
  {
3694
3684
  ref: tableRef,
3695
- className: cn45(
3685
+ className: cn44(
3696
3686
  "group/table",
3697
3687
  "border-collapse overflow-auto whitespace-nowrap",
3698
3688
  stretch ? "table w-full" : "block",
@@ -3744,7 +3734,7 @@ Table.Row = Row;
3744
3734
 
3745
3735
  // src/Text/Text.tsx
3746
3736
  import {
3747
- cn as cn46,
3737
+ cn as cn45,
3748
3738
  createVar as createVar9,
3749
3739
  cursorStyle,
3750
3740
  fontWeight,
@@ -3778,7 +3768,7 @@ var Text2 = ({
3778
3768
  "p",
3779
3769
  {
3780
3770
  ...props,
3781
- className: cn46(
3771
+ className: cn45(
3782
3772
  classNames2,
3783
3773
  "text-[--color] outline-[--outline]",
3784
3774
  fontStyle && textStyle[fontStyle],
@@ -3854,7 +3844,7 @@ var _TextField = forwardRef20(
3854
3844
  );
3855
3845
 
3856
3846
  // src/Tiles/Tiles.tsx
3857
- import { cn as cn47, createVar as createVar10, gapSpace as gapSpace7 } from "@marigold/system";
3847
+ import { cn as cn46, createVar as createVar10, gapSpace as gapSpace7 } from "@marigold/system";
3858
3848
  import { jsx as jsx86 } from "react/jsx-runtime";
3859
3849
  var Tiles = ({
3860
3850
  space = 0,
@@ -3872,7 +3862,7 @@ var Tiles = ({
3872
3862
  "div",
3873
3863
  {
3874
3864
  ...props,
3875
- className: cn47(
3865
+ className: cn46(
3876
3866
  "grid",
3877
3867
  gapSpace7[space],
3878
3868
  "grid-cols-[repeat(auto-fit,var(--column))]",
@@ -3886,7 +3876,7 @@ var Tiles = ({
3886
3876
 
3887
3877
  // src/Tooltip/Tooltip.tsx
3888
3878
  import { OverlayArrow, Tooltip } from "react-aria-components";
3889
- import { cn as cn48, useClassNames as useClassNames44 } from "@marigold/system";
3879
+ import { cn as cn47, useClassNames as useClassNames44 } from "@marigold/system";
3890
3880
 
3891
3881
  // src/Tooltip/TooltipTrigger.tsx
3892
3882
  import { TooltipTrigger } from "react-aria-components";
@@ -3915,133 +3905,52 @@ var _Tooltip = ({ children, variant, size, open, ...rest }) => {
3915
3905
  isOpen: open
3916
3906
  };
3917
3907
  const classNames2 = useClassNames44({ component: "Tooltip", variant, size });
3918
- return /* @__PURE__ */ jsxs34(Tooltip, { ...props, className: cn48("group/tooltip", classNames2.container), children: [
3908
+ return /* @__PURE__ */ jsxs34(Tooltip, { ...props, className: cn47("group/tooltip", classNames2.container), children: [
3919
3909
  /* @__PURE__ */ jsx88(OverlayArrow, { className: classNames2.arrow, children: /* @__PURE__ */ jsx88("svg", { width: 8, height: 8, viewBox: "0 0 8 8", children: /* @__PURE__ */ jsx88("path", { d: "M0 0 L4 4 L8 0" }) }) }),
3920
3910
  children
3921
3911
  ] });
3922
3912
  };
3923
3913
  _Tooltip.Trigger = _TooltipTrigger;
3924
3914
 
3925
- // src/TagGroup/index.ts
3926
- import { Item as Item6 } from "@react-stately/collections";
3927
-
3928
- // src/TagGroup/TagGroup.tsx
3929
- import { useRef as useRef26 } from "react";
3930
- import { useTagGroup } from "@react-aria/tag";
3931
- import { useListState } from "@react-stately/list";
3932
- import { useStateProps as useStateProps16 } from "@marigold/system";
3933
-
3934
3915
  // src/TagGroup/Tag.tsx
3935
- import React3, { useRef as useRef25 } from "react";
3936
- import { useButton as useButton4 } from "@react-aria/button";
3937
- import { useFocusRing as useFocusRing12 } from "@react-aria/focus";
3938
- import { useTag } from "@react-aria/tag";
3939
- import { mergeProps as mergeProps16 } from "@react-aria/utils";
3940
- import { cn as cn49, useClassNames as useClassNames45 } from "@marigold/system";
3941
- import { jsx as jsx89, jsxs as jsxs35 } from "react/jsx-runtime";
3942
- var CloseButton2 = ({ className, ...props }) => {
3943
- const ref = useRef25(null);
3944
- const { buttonProps } = useButton4({ ...props }, ref);
3945
- return /* @__PURE__ */ jsx89("button", { className, ...buttonProps, children: /* @__PURE__ */ jsx89("svg", { viewBox: "0 0 20 20", fill: "currentColor", width: 20, height: 20, children: /* @__PURE__ */ jsx89("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" }) }) });
3946
- };
3947
- var Tag = ({ variant, size, item, state, ...rest }) => {
3948
- const props = {
3949
- item,
3950
- ...rest
3951
- };
3952
- let ref = React3.useRef(null);
3953
- let { focusProps } = useFocusRing12({ within: true });
3954
- const { rowProps, gridCellProps, allowsRemoving, removeButtonProps } = useTag(
3955
- {
3956
- ...props,
3957
- item
3958
- },
3959
- state,
3960
- ref
3961
- );
3962
- const classNames2 = useClassNames45({ component: "Tag", variant, size });
3963
- return /* @__PURE__ */ jsx89(
3964
- "span",
3965
- {
3966
- ref,
3967
- ...mergeProps16(rowProps, focusProps),
3968
- className: classNames2.tag,
3969
- children: /* @__PURE__ */ jsxs35("div", { ...gridCellProps, className: classNames2.gridCell, children: [
3970
- /* @__PURE__ */ jsx89("span", { children: item.rendered }),
3971
- allowsRemoving && /* @__PURE__ */ jsx89(
3972
- CloseButton2,
3973
- {
3974
- ...removeButtonProps,
3975
- className: cn49("flex items-center", classNames2.closeButton)
3976
- }
3977
- )
3978
- ] })
3979
- }
3980
- );
3981
- };
3916
+ import { Button as Button3, Tag } from "react-aria-components";
3917
+ import { cn as cn48, useClassNames as useClassNames46 } from "@marigold/system";
3982
3918
 
3983
3919
  // src/TagGroup/TagGroup.tsx
3984
- import { jsx as jsx90 } from "react/jsx-runtime";
3985
- import { createElement } from "react";
3986
- var TagGroup = ({
3920
+ import { TagGroup, TagList } from "react-aria-components";
3921
+ import { useClassNames as useClassNames45 } from "@marigold/system";
3922
+ import { jsx as jsx89 } from "react/jsx-runtime";
3923
+ var _TagGroup = ({
3987
3924
  width,
3988
- required,
3989
- error,
3990
- allowsRemoving,
3925
+ items,
3926
+ children,
3927
+ variant,
3928
+ size,
3991
3929
  ...rest
3992
3930
  }) => {
3993
- const props = {
3994
- isRequired: required,
3995
- validationState: error ? "invalid" : "valid",
3996
- ...rest
3997
- };
3998
- const inputRef = useRef26(null);
3999
- const state = useListState(props);
4000
- const { gridProps, labelProps, descriptionProps, errorMessageProps } = useTagGroup(props, state, inputRef);
4001
- const stateProps = useStateProps16({
4002
- error,
4003
- required
4004
- });
4005
- return /* @__PURE__ */ jsx90(
4006
- FieldBase,
4007
- {
4008
- width,
4009
- label: props.label,
4010
- labelProps,
4011
- description: props.description,
4012
- descriptionProps,
4013
- error,
4014
- errorMessage: props.errorMessage,
4015
- errorMessageProps,
4016
- stateProps,
4017
- ...gridProps,
4018
- children: /* @__PURE__ */ jsx90(
4019
- "div",
4020
- {
4021
- role: "presentation",
4022
- ref: inputRef,
4023
- className: "flex flex-wrap items-start gap-1",
4024
- children: [...state.collection].map((item) => /* @__PURE__ */ createElement(
4025
- Tag,
4026
- {
4027
- ...item.props,
4028
- key: item.key,
4029
- item,
4030
- state,
4031
- allowsRemoving,
4032
- onRemove: props.onRemove
4033
- },
4034
- item.rendered
4035
- ))
4036
- }
4037
- )
4038
- }
4039
- );
3931
+ const classNames2 = useClassNames45({ component: "Tag", variant, size });
3932
+ return /* @__PURE__ */ jsx89(FieldBase2, { as: TagGroup, ...rest, children: /* @__PURE__ */ jsx89(TagList, { items, className: classNames2.listItems, children }) });
4040
3933
  };
4041
3934
 
4042
- // src/TagGroup/index.ts
4043
- var Tag2 = Item6;
4044
- Tag2.Group = TagGroup;
3935
+ // src/TagGroup/Tag.tsx
3936
+ import { Fragment as Fragment10, jsx as jsx90, jsxs as jsxs35 } from "react/jsx-runtime";
3937
+ var CloseButton2 = ({ className }) => {
3938
+ return /* @__PURE__ */ jsx90(Button3, { slot: "remove", className, children: /* @__PURE__ */ jsx90("svg", { viewBox: "0 0 20 20", fill: "currentColor", width: 20, height: 20, children: /* @__PURE__ */ jsx90("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" }) }) });
3939
+ };
3940
+ var _Tag = ({ variant, size, children, ...props }) => {
3941
+ let textValue = typeof children === "string" ? children : void 0;
3942
+ const classNames2 = useClassNames46({ component: "Tag", variant, size });
3943
+ return /* @__PURE__ */ jsx90(Tag, { textValue, ...props, className: classNames2.tag, children: ({ allowsRemoving }) => /* @__PURE__ */ jsxs35(Fragment10, { children: [
3944
+ children,
3945
+ allowsRemoving && /* @__PURE__ */ jsx90(
3946
+ CloseButton2,
3947
+ {
3948
+ className: cn48("flex items-center", classNames2.closeButton)
3949
+ }
3950
+ )
3951
+ ] }) });
3952
+ };
3953
+ _Tag.Group = _TagGroup;
4045
3954
 
4046
3955
  // src/VisuallyHidden/VisuallyHidden.tsx
4047
3956
  import { VisuallyHidden } from "@react-aria/visually-hidden";
@@ -4265,7 +4174,7 @@ var XLoader = forwardRef21((props, ref) => /* @__PURE__ */ jsxs36(
4265
4174
 
4266
4175
  // src/Tabs/Tabs.tsx
4267
4176
  import { Tabs } from "react-aria-components";
4268
- import { useClassNames as useClassNames46 } from "@marigold/system";
4177
+ import { useClassNames as useClassNames47 } from "@marigold/system";
4269
4178
 
4270
4179
  // src/Tabs/Context.ts
4271
4180
  import { createContext as createContext7, useContext as useContext8 } from "react";
@@ -4274,7 +4183,7 @@ var useTabContext = () => useContext8(TabContext);
4274
4183
 
4275
4184
  // src/Tabs/Tab.tsx
4276
4185
  import { Tab } from "react-aria-components";
4277
- import { cn as cn50 } from "@marigold/system";
4186
+ import { cn as cn49 } from "@marigold/system";
4278
4187
  import { jsx as jsx92 } from "react/jsx-runtime";
4279
4188
  var _Tab = (props) => {
4280
4189
  const { classNames: classNames2 } = useTabContext();
@@ -4282,7 +4191,7 @@ var _Tab = (props) => {
4282
4191
  Tab,
4283
4192
  {
4284
4193
  ...props,
4285
- className: cn50(
4194
+ className: cn49(
4286
4195
  "flex cursor-pointer justify-center aria-disabled:cursor-not-allowed",
4287
4196
  classNames2.tab
4288
4197
  ),
@@ -4293,7 +4202,7 @@ var _Tab = (props) => {
4293
4202
 
4294
4203
  // src/Tabs/TabList.tsx
4295
4204
  import { TabList } from "react-aria-components";
4296
- import { cn as cn51, gapSpace as gapSpace8 } from "@marigold/system";
4205
+ import { cn as cn50, gapSpace as gapSpace8 } from "@marigold/system";
4297
4206
  import { jsx as jsx93 } from "react/jsx-runtime";
4298
4207
  var _TabList = ({ space = 2, ...props }) => {
4299
4208
  const { classNames: classNames2 } = useTabContext();
@@ -4301,7 +4210,7 @@ var _TabList = ({ space = 2, ...props }) => {
4301
4210
  TabList,
4302
4211
  {
4303
4212
  ...props,
4304
- className: cn51("flex", gapSpace8[space], classNames2.tabsList),
4213
+ className: cn50("flex", gapSpace8[space], classNames2.tabsList),
4305
4214
  children: props.children
4306
4215
  }
4307
4216
  );
@@ -4322,7 +4231,7 @@ var _Tabs = ({ disabled, variant, size = "medium", ...rest }) => {
4322
4231
  isDisabled: disabled,
4323
4232
  ...rest
4324
4233
  };
4325
- const classNames2 = useClassNames46({
4234
+ const classNames2 = useClassNames47({
4326
4235
  component: "Tabs",
4327
4236
  size,
4328
4237
  variant
@@ -4350,6 +4259,7 @@ export {
4350
4259
  Center,
4351
4260
  _Checkbox as Checkbox,
4352
4261
  _CheckboxGroup as CheckboxGroup,
4262
+ CloseButton2 as CloseButton,
4353
4263
  Columns,
4354
4264
  ComboBox,
4355
4265
  Container,
@@ -4387,7 +4297,7 @@ export {
4387
4297
  _Switch as Switch,
4388
4298
  Table,
4389
4299
  _Tabs as Tabs,
4390
- Tag2 as Tag,
4300
+ _Tag as Tag,
4391
4301
  Text2 as Text,
4392
4302
  _TextArea as TextArea,
4393
4303
  _TextField as TextField,