@marigold/components 6.2.6 → 6.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -140,8 +140,8 @@ var Button = (0, import_react.forwardRef)(
140
140
  onPressChange,
141
141
  onPressUp,
142
142
  fullWidth,
143
- excludeFromTabOrder,
144
143
  className,
144
+ excludeFromTabOrder,
145
145
  ...props
146
146
  }, ref) => {
147
147
  const Component = as;
@@ -471,14 +471,20 @@ var Aspect = ({
471
471
  ratio = "square",
472
472
  maxWidth,
473
473
  children
474
- }) => /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
475
- "div",
476
- {
477
- className: (0, import_system6.cn)("overflow-hidden", import_system6.aspect[ratio], "max-w-[var(--maxWidth)]"),
478
- style: (0, import_system6.createVar)({ maxWidth }),
479
- children
480
- }
481
- );
474
+ }) => {
475
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
476
+ "div",
477
+ {
478
+ className: (0, import_system6.cn)(
479
+ "overflow-hidden",
480
+ import_system6.aspect[ratio],
481
+ "max-w-[var(--maxWidth)]"
482
+ ),
483
+ style: (0, import_system6.createVar)({ maxWidth }),
484
+ children
485
+ }
486
+ );
487
+ };
482
488
 
483
489
  // src/Autocomplete/Autocomplete.tsx
484
490
  var import_react17 = require("react");
@@ -496,7 +502,6 @@ var import_jsx_runtime8 = require("react/jsx-runtime");
496
502
  var HelpText = ({
497
503
  variant,
498
504
  size,
499
- className,
500
505
  disabled,
501
506
  description,
502
507
  descriptionProps,
@@ -509,8 +514,7 @@ var HelpText = ({
509
514
  const classNames2 = (0, import_system7.useClassNames)({
510
515
  component: "HelpText",
511
516
  variant,
512
- size,
513
- className
517
+ size
514
518
  });
515
519
  return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
516
520
  "div",
@@ -645,20 +649,11 @@ var import_react8 = require("react");
645
649
  var import_system10 = require("@marigold/system");
646
650
  var import_jsx_runtime12 = require("react/jsx-runtime");
647
651
  var Input = (0, import_react8.forwardRef)(
648
- ({
649
- type = "text",
650
- icon,
651
- action,
652
- variant,
653
- size,
654
- className,
655
- ...props
656
- }, ref) => {
652
+ ({ type = "text", icon, action, variant, size, ...props }, ref) => {
657
653
  const classNames2 = (0, import_system10.useClassNames)({
658
654
  component: "Input",
659
655
  variant,
660
- size,
661
- className
656
+ size
662
657
  });
663
658
  const inputIcon = icon ? (0, import_react8.cloneElement)(icon, {
664
659
  className: (0, import_system10.cn)(
@@ -693,8 +688,7 @@ var Input = (0, import_react8.forwardRef)(
693
688
  "disabled:cursor-not-allowed",
694
689
  "[&[type=file]]:border-none [&[type=file]]:p-0",
695
690
  "[&[type=color]]:ml-0 [&[type=color]]:border-none [&[type=color]]:bg-transparent [&[type=color]]:p-0",
696
- classNames2.input,
697
- className
691
+ classNames2.input
698
692
  ),
699
693
  ref,
700
694
  type
@@ -1331,13 +1325,13 @@ var Center = ({
1331
1325
  return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
1332
1326
  "div",
1333
1327
  {
1328
+ ...props,
1334
1329
  className: (0, import_system21.cn)(
1335
1330
  "me-[auto] ms-[auto] box-content flex flex-col items-center justify-center",
1336
1331
  import_system21.gapSpace[space],
1337
1332
  "max-w-[--maxWidth]"
1338
1333
  ),
1339
1334
  style: (0, import_system21.createVar)({ maxWidth }),
1340
- ...props,
1341
1335
  children
1342
1336
  }
1343
1337
  );
@@ -1616,6 +1610,7 @@ var Container = ({
1616
1610
  return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
1617
1611
  "div",
1618
1612
  {
1613
+ ...props,
1619
1614
  className: (0, import_system26.cn)(
1620
1615
  "grid",
1621
1616
  import_system26.placeItems[alignItems],
@@ -1623,7 +1618,6 @@ var Container = ({
1623
1618
  import_system26.gridColumn[align]
1624
1619
  ),
1625
1620
  style: (0, import_system26.createVar)({ maxWidth }),
1626
- ...props,
1627
1621
  children
1628
1622
  }
1629
1623
  );
@@ -1638,18 +1632,11 @@ var import_system29 = require("@marigold/system");
1638
1632
  // src/Header/Header.tsx
1639
1633
  var import_system27 = require("@marigold/system");
1640
1634
  var import_jsx_runtime34 = require("react/jsx-runtime");
1641
- var Header = ({
1642
- children,
1643
- variant,
1644
- size,
1645
- className,
1646
- ...props
1647
- }) => {
1635
+ var Header = ({ children, variant, size, ...props }) => {
1648
1636
  const classNames2 = (0, import_system27.useClassNames)({
1649
1637
  component: "Header",
1650
1638
  variant,
1651
- size,
1652
- className
1639
+ size
1653
1640
  });
1654
1641
  return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("header", { ...props, className: (0, import_system27.cn)(classNames2), children });
1655
1642
  };
@@ -1888,13 +1875,13 @@ var Inline = ({
1888
1875
  return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
1889
1876
  "div",
1890
1877
  {
1878
+ ...props,
1891
1879
  className: (0, import_system33.cn)(
1892
1880
  "flex flex-wrap",
1893
1881
  import_system33.gapSpace[space],
1894
1882
  alignX && ((_b2 = (_a2 = import_system33.alignment) == null ? void 0 : _a2.horizontal) == null ? void 0 : _b2.alignmentX[alignX]),
1895
1883
  alignY && ((_d = (_c = import_system33.alignment) == null ? void 0 : _c.horizontal) == null ? void 0 : _d.alignmentY[alignY])
1896
1884
  ),
1897
- ...props,
1898
1885
  children
1899
1886
  }
1900
1887
  );
@@ -2278,7 +2265,7 @@ var Select = (0, import_react29.forwardRef)(
2278
2265
  "button",
2279
2266
  {
2280
2267
  className: (0, import_system37.cn)(
2281
- "flex w-full items-center justify-between gap-1",
2268
+ "flex w-full items-center justify-between gap-1 overflow-hidden",
2282
2269
  classNames2.select
2283
2270
  ),
2284
2271
  ref: buttonRef,
@@ -2581,7 +2568,6 @@ var Link = (0, import_react32.forwardRef)(
2581
2568
  disabled,
2582
2569
  onPress,
2583
2570
  onPressStart,
2584
- className,
2585
2571
  ...props
2586
2572
  }, ref) => {
2587
2573
  const linkRef = (0, import_utils17.useObjectRef)(ref);
@@ -2597,8 +2583,7 @@ var Link = (0, import_react32.forwardRef)(
2597
2583
  const classNames2 = (0, import_system41.useClassNames)({
2598
2584
  component: "Link",
2599
2585
  variant,
2600
- size,
2601
- className
2586
+ size
2602
2587
  });
2603
2588
  return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
2604
2589
  Component,
@@ -3313,7 +3298,7 @@ var Thumb = ({ state, trackRef, className, ...props }) => {
3313
3298
  // src/Slider/Slider.tsx
3314
3299
  var import_jsx_runtime68 = require("react/jsx-runtime");
3315
3300
  var Slider = (0, import_react43.forwardRef)(
3316
- ({ variant, size, width = "100%", ...props }, ref) => {
3301
+ ({ variant, size, width = "full", ...props }, ref) => {
3317
3302
  const { formatOptions } = props;
3318
3303
  const trackRef = (0, import_utils25.useObjectRef)(ref);
3319
3304
  const numberFormatter = (0, import_i18n11.useNumberFormatter)(formatOptions);
@@ -3337,8 +3322,7 @@ var Slider = (0, import_react43.forwardRef)(
3337
3322
  return /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)(
3338
3323
  "div",
3339
3324
  {
3340
- className: "flex w-[var(--slideWidth)] touch-none flex-col",
3341
- style: (0, import_system56.createVar)({ slideWidth: width }),
3325
+ className: (0, import_system56.cn)("flex touch-none flex-col", import_system56.width[width]),
3342
3326
  ...groupProps,
3343
3327
  children: [
3344
3328
  /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)("div", { className: "flex self-stretch", children: [
@@ -3435,7 +3419,7 @@ var Switch = (0, import_react44.forwardRef)(
3435
3419
  ({
3436
3420
  variant,
3437
3421
  size,
3438
- width = "100%",
3422
+ width = "full",
3439
3423
  selected,
3440
3424
  disabled,
3441
3425
  readOnly,
@@ -3465,10 +3449,9 @@ var Switch = (0, import_react44.forwardRef)(
3465
3449
  {
3466
3450
  className: (0, import_system58.cn)(
3467
3451
  "group/switch",
3468
- "w-[var(--switchWidth)]",
3452
+ import_system58.width[width],
3469
3453
  "relative flex items-center justify-between gap-[1ch]"
3470
3454
  ),
3471
- style: (0, import_system58.createVar)({ switchWidth: width }),
3472
3455
  ...stateProps,
3473
3456
  children: [
3474
3457
  /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
@@ -4197,11 +4180,17 @@ var import_system72 = require("@marigold/system");
4197
4180
 
4198
4181
  // src/TagGroup/Tag.tsx
4199
4182
  var import_react57 = __toESM(require("react"));
4183
+ var import_button8 = require("@react-aria/button");
4200
4184
  var import_focus24 = require("@react-aria/focus");
4201
4185
  var import_tag = require("@react-aria/tag");
4202
4186
  var import_utils36 = require("@react-aria/utils");
4203
4187
  var import_system71 = require("@marigold/system");
4204
4188
  var import_jsx_runtime87 = require("react/jsx-runtime");
4189
+ var CloseButton2 = ({ className, ...props }) => {
4190
+ const ref = (0, import_react57.useRef)(null);
4191
+ const { buttonProps } = (0, import_button8.useButton)({ ...props }, ref);
4192
+ return /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("button", { className, ...buttonProps, children: /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("svg", { viewBox: "0 0 20 20", fill: "currentColor", width: 20, height: 20, children: /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("path", { d: "M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z" }) }) });
4193
+ };
4205
4194
  var Tag = ({ variant, size, item, state, ...rest }) => {
4206
4195
  const props = {
4207
4196
  item,
@@ -4227,12 +4216,10 @@ var Tag = ({ variant, size, item, state, ...rest }) => {
4227
4216
  children: /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)("div", { ...gridCellProps, className: classNames2.gridCell, children: [
4228
4217
  /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("span", { children: item.rendered }),
4229
4218
  allowsRemoving && /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
4230
- Button,
4219
+ CloseButton2,
4231
4220
  {
4232
4221
  ...removeButtonProps,
4233
- className: (0, import_system71.cn)("flex items-center", classNames2.closeButton),
4234
- role: "button",
4235
- children: /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("svg", { viewBox: "0 0 20 20", fill: "currentColor", width: 20, height: 20, children: /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("path", { d: "M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z" }) })
4222
+ className: (0, import_system71.cn)("flex items-center", classNames2.closeButton)
4236
4223
  }
4237
4224
  )
4238
4225
  ] })
package/dist/index.mjs CHANGED
@@ -39,8 +39,8 @@ var Button = forwardRef(
39
39
  onPressChange,
40
40
  onPressUp,
41
41
  fullWidth,
42
- excludeFromTabOrder,
43
42
  className,
43
+ excludeFromTabOrder,
44
44
  ...props
45
45
  }, ref) => {
46
46
  const Component = as;
@@ -370,14 +370,20 @@ var Aspect = ({
370
370
  ratio = "square",
371
371
  maxWidth,
372
372
  children
373
- }) => /* @__PURE__ */ jsx7(
374
- "div",
375
- {
376
- className: cn3("overflow-hidden", aspect[ratio], "max-w-[var(--maxWidth)]"),
377
- style: createVar2({ maxWidth }),
378
- children
379
- }
380
- );
373
+ }) => {
374
+ return /* @__PURE__ */ jsx7(
375
+ "div",
376
+ {
377
+ className: cn3(
378
+ "overflow-hidden",
379
+ aspect[ratio],
380
+ "max-w-[var(--maxWidth)]"
381
+ ),
382
+ style: createVar2({ maxWidth }),
383
+ children
384
+ }
385
+ );
386
+ };
381
387
 
382
388
  // src/Autocomplete/Autocomplete.tsx
383
389
  import { useRef as useRef7 } from "react";
@@ -399,7 +405,6 @@ import { Fragment, jsx as jsx8, jsxs as jsxs3 } from "react/jsx-runtime";
399
405
  var HelpText = ({
400
406
  variant,
401
407
  size,
402
- className,
403
408
  disabled,
404
409
  description,
405
410
  descriptionProps,
@@ -412,8 +417,7 @@ var HelpText = ({
412
417
  const classNames2 = useClassNames3({
413
418
  component: "HelpText",
414
419
  variant,
415
- size,
416
- className
420
+ size
417
421
  });
418
422
  return /* @__PURE__ */ jsx8(
419
423
  "div",
@@ -551,20 +555,11 @@ import {
551
555
  import { cn as cn7, useClassNames as useClassNames6 } from "@marigold/system";
552
556
  import { jsx as jsx12, jsxs as jsxs6 } from "react/jsx-runtime";
553
557
  var Input = forwardRef4(
554
- ({
555
- type = "text",
556
- icon,
557
- action,
558
- variant,
559
- size,
560
- className,
561
- ...props
562
- }, ref) => {
558
+ ({ type = "text", icon, action, variant, size, ...props }, ref) => {
563
559
  const classNames2 = useClassNames6({
564
560
  component: "Input",
565
561
  variant,
566
- size,
567
- className
562
+ size
568
563
  });
569
564
  const inputIcon = icon ? cloneElement2(icon, {
570
565
  className: cn7(
@@ -599,8 +594,7 @@ var Input = forwardRef4(
599
594
  "disabled:cursor-not-allowed",
600
595
  "[&[type=file]]:border-none [&[type=file]]:p-0",
601
596
  "[&[type=color]]:ml-0 [&[type=color]]:border-none [&[type=color]]:bg-transparent [&[type=color]]:p-0",
602
- classNames2.input,
603
- className
597
+ classNames2.input
604
598
  ),
605
599
  ref,
606
600
  type
@@ -1256,13 +1250,13 @@ var Center = ({
1256
1250
  return /* @__PURE__ */ jsx28(
1257
1251
  "div",
1258
1252
  {
1253
+ ...props,
1259
1254
  className: cn13(
1260
1255
  "me-[auto] ms-[auto] box-content flex flex-col items-center justify-center",
1261
1256
  gapSpace3[space],
1262
1257
  "max-w-[--maxWidth]"
1263
1258
  ),
1264
1259
  style: createVar5({ maxWidth }),
1265
- ...props,
1266
1260
  children
1267
1261
  }
1268
1262
  );
@@ -1553,6 +1547,7 @@ var Container = ({
1553
1547
  return /* @__PURE__ */ jsx33(
1554
1548
  "div",
1555
1549
  {
1550
+ ...props,
1556
1551
  className: cn16(
1557
1552
  "grid",
1558
1553
  placeItems[alignItems],
@@ -1560,7 +1555,6 @@ var Container = ({
1560
1555
  gridColumn[align]
1561
1556
  ),
1562
1557
  style: createVar8({ maxWidth }),
1563
- ...props,
1564
1558
  children
1565
1559
  }
1566
1560
  );
@@ -1580,18 +1574,11 @@ import { cn as cn19, useClassNames as useClassNames17 } from "@marigold/system";
1580
1574
  // src/Header/Header.tsx
1581
1575
  import { cn as cn17, useClassNames as useClassNames15 } from "@marigold/system";
1582
1576
  import { jsx as jsx34 } from "react/jsx-runtime";
1583
- var Header = ({
1584
- children,
1585
- variant,
1586
- size,
1587
- className,
1588
- ...props
1589
- }) => {
1577
+ var Header = ({ children, variant, size, ...props }) => {
1590
1578
  const classNames2 = useClassNames15({
1591
1579
  component: "Header",
1592
1580
  variant,
1593
- size,
1594
- className
1581
+ size
1595
1582
  });
1596
1583
  return /* @__PURE__ */ jsx34("header", { ...props, className: cn17(classNames2), children });
1597
1584
  };
@@ -1846,13 +1833,13 @@ var Inline = ({
1846
1833
  return /* @__PURE__ */ jsx42(
1847
1834
  "div",
1848
1835
  {
1836
+ ...props,
1849
1837
  className: cn21(
1850
1838
  "flex flex-wrap",
1851
1839
  gapSpace5[space],
1852
1840
  alignX && ((_b2 = (_a2 = alignment2) == null ? void 0 : _a2.horizontal) == null ? void 0 : _b2.alignmentX[alignX]),
1853
1841
  alignY && ((_d = (_c = alignment2) == null ? void 0 : _c.horizontal) == null ? void 0 : _d.alignmentY[alignY])
1854
1842
  ),
1855
- ...props,
1856
1843
  children
1857
1844
  }
1858
1845
  );
@@ -2246,7 +2233,7 @@ var Select = forwardRef10(
2246
2233
  "button",
2247
2234
  {
2248
2235
  className: cn25(
2249
- "flex w-full items-center justify-between gap-1",
2236
+ "flex w-full items-center justify-between gap-1 overflow-hidden",
2250
2237
  classNames2.select
2251
2238
  ),
2252
2239
  ref: buttonRef,
@@ -2554,7 +2541,6 @@ var Link = forwardRef11(
2554
2541
  disabled,
2555
2542
  onPress,
2556
2543
  onPressStart,
2557
- className,
2558
2544
  ...props
2559
2545
  }, ref) => {
2560
2546
  const linkRef = useObjectRef7(ref);
@@ -2570,8 +2556,7 @@ var Link = forwardRef11(
2570
2556
  const classNames2 = useClassNames26({
2571
2557
  component: "Link",
2572
2558
  variant,
2573
- size,
2574
- className
2559
+ size
2575
2560
  });
2576
2561
  return /* @__PURE__ */ jsx53(
2577
2562
  Component,
@@ -3251,7 +3236,12 @@ import { useNumberFormatter } from "@react-aria/i18n";
3251
3236
  import { useSlider } from "@react-aria/slider";
3252
3237
  import { useObjectRef as useObjectRef11 } from "@react-aria/utils";
3253
3238
  import { useSliderState } from "@react-stately/slider";
3254
- import { cn as cn35, createVar as createVar10, useClassNames as useClassNames33, useStateProps as useStateProps19 } from "@marigold/system";
3239
+ import {
3240
+ cn as cn35,
3241
+ width as twWidth2,
3242
+ useClassNames as useClassNames33,
3243
+ useStateProps as useStateProps19
3244
+ } from "@marigold/system";
3255
3245
 
3256
3246
  // src/Slider/Thumb.tsx
3257
3247
  import { useEffect as useEffect2, useRef as useRef20 } from "react";
@@ -3299,7 +3289,7 @@ var Thumb = ({ state, trackRef, className, ...props }) => {
3299
3289
  // src/Slider/Slider.tsx
3300
3290
  import { jsx as jsx68, jsxs as jsxs29 } from "react/jsx-runtime";
3301
3291
  var Slider = forwardRef14(
3302
- ({ variant, size, width = "100%", ...props }, ref) => {
3292
+ ({ variant, size, width = "full", ...props }, ref) => {
3303
3293
  const { formatOptions } = props;
3304
3294
  const trackRef = useObjectRef11(ref);
3305
3295
  const numberFormatter = useNumberFormatter(formatOptions);
@@ -3323,8 +3313,7 @@ var Slider = forwardRef14(
3323
3313
  return /* @__PURE__ */ jsxs29(
3324
3314
  "div",
3325
3315
  {
3326
- className: "flex w-[var(--slideWidth)] touch-none flex-col",
3327
- style: createVar10({ slideWidth: width }),
3316
+ className: cn35("flex touch-none flex-col", twWidth2[width]),
3328
3317
  ...groupProps,
3329
3318
  children: [
3330
3319
  /* @__PURE__ */ jsxs29("div", { className: "flex self-stretch", children: [
@@ -3419,13 +3408,18 @@ import { useFocusRing as useFocusRing12 } from "@react-aria/focus";
3419
3408
  import { useSwitch } from "@react-aria/switch";
3420
3409
  import { useObjectRef as useObjectRef12 } from "@react-aria/utils";
3421
3410
  import { useToggleState as useToggleState2 } from "@react-stately/toggle";
3422
- import { cn as cn37, createVar as createVar11, useClassNames as useClassNames34, useStateProps as useStateProps20 } from "@marigold/system";
3411
+ import {
3412
+ cn as cn37,
3413
+ width as twWidth3,
3414
+ useClassNames as useClassNames34,
3415
+ useStateProps as useStateProps20
3416
+ } from "@marigold/system";
3423
3417
  import { Fragment as Fragment6, jsx as jsx71, jsxs as jsxs30 } from "react/jsx-runtime";
3424
3418
  var Switch = forwardRef15(
3425
3419
  ({
3426
3420
  variant,
3427
3421
  size,
3428
- width = "100%",
3422
+ width = "full",
3429
3423
  selected,
3430
3424
  disabled,
3431
3425
  readOnly,
@@ -3455,10 +3449,9 @@ var Switch = forwardRef15(
3455
3449
  {
3456
3450
  className: cn37(
3457
3451
  "group/switch",
3458
- "w-[var(--switchWidth)]",
3452
+ twWidth3[width],
3459
3453
  "relative flex items-center justify-between gap-[1ch]"
3460
3454
  ),
3461
- style: createVar11({ switchWidth: width }),
3462
3455
  ...stateProps,
3463
3456
  children: [
3464
3457
  /* @__PURE__ */ jsx71(
@@ -3631,7 +3624,7 @@ import { useTableColumnHeader } from "@react-aria/table";
3631
3624
  import { mergeProps as mergeProps19 } from "@react-aria/utils";
3632
3625
  import { SortDown, SortUp } from "@marigold/icons";
3633
3626
  import { cn as cn39, useStateProps as useStateProps23 } from "@marigold/system";
3634
- import { width as twWidth2 } from "@marigold/system";
3627
+ import { width as twWidth4 } from "@marigold/system";
3635
3628
  import { jsx as jsx75, jsxs as jsxs31 } from "react/jsx-runtime";
3636
3629
  var TableColumnHeader = ({
3637
3630
  column,
@@ -3658,7 +3651,7 @@ var TableColumnHeader = ({
3658
3651
  {
3659
3652
  colSpan: column.colspan,
3660
3653
  ref,
3661
- className: cn39("cursor-default", twWidth2[width], classNames2 == null ? void 0 : classNames2.header),
3654
+ className: cn39("cursor-default", twWidth4[width], classNames2 == null ? void 0 : classNames2.header),
3662
3655
  ...mergeProps19(columnHeaderProps, hoverProps, focusProps),
3663
3656
  ...stateProps,
3664
3657
  children: [
@@ -3753,7 +3746,7 @@ import {
3753
3746
  import { mergeProps as mergeProps21 } from "@react-aria/utils";
3754
3747
  import {
3755
3748
  cn as cn41,
3756
- width as twWidth3,
3749
+ width as twWidth5,
3757
3750
  useStateProps as useStateProps25
3758
3751
  } from "@marigold/system";
3759
3752
  import { jsx as jsx79 } from "react/jsx-runtime";
@@ -3782,7 +3775,7 @@ var TableSelectAllCell = ({
3782
3775
  {
3783
3776
  ref,
3784
3777
  className: cn41(
3785
- twWidth3[width],
3778
+ twWidth5[width],
3786
3779
  ["text-center align-middle leading-none"],
3787
3780
  classNames2 == null ? void 0 : classNames2.header
3788
3781
  ),
@@ -3878,7 +3871,7 @@ Table.Row = Row;
3878
3871
  // src/Text/Text.tsx
3879
3872
  import {
3880
3873
  cn as cn43,
3881
- createVar as createVar12,
3874
+ createVar as createVar10,
3882
3875
  cursorStyle,
3883
3876
  fontWeight,
3884
3877
  get as get2,
@@ -3920,7 +3913,7 @@ var Text = ({
3920
3913
  weight && fontWeight[weight],
3921
3914
  fontSize && textSize[fontSize]
3922
3915
  ),
3923
- style: createVar12({
3916
+ style: createVar10({
3924
3917
  color: color && theme.colors && get2(
3925
3918
  theme.colors,
3926
3919
  color.replace("-", "."),
@@ -4071,7 +4064,7 @@ var TextField = forwardRef17(
4071
4064
  );
4072
4065
 
4073
4066
  // src/Tiles/Tiles.tsx
4074
- import { cn as cn44, createVar as createVar13, gapSpace as gapSpace7 } from "@marigold/system";
4067
+ import { cn as cn44, createVar as createVar11, gapSpace as gapSpace7 } from "@marigold/system";
4075
4068
  import { jsx as jsx84 } from "react/jsx-runtime";
4076
4069
  var Tiles = ({
4077
4070
  space = 0,
@@ -4095,7 +4088,7 @@ var Tiles = ({
4095
4088
  "grid-cols-[repeat(auto-fit,var(--column))]",
4096
4089
  equalHeight && "auto-rows-[1fr]"
4097
4090
  ),
4098
- style: createVar13({ column, tilesWidth }),
4091
+ style: createVar11({ column, tilesWidth }),
4099
4092
  children
4100
4093
  }
4101
4094
  );
@@ -4205,18 +4198,24 @@ Tooltip.Trigger = TooltipTrigger;
4205
4198
  import { Item as Item6 } from "@react-stately/collections";
4206
4199
 
4207
4200
  // src/TagGroup/TagGroup.tsx
4208
- import { useRef as useRef29 } from "react";
4201
+ import { useRef as useRef30 } from "react";
4209
4202
  import { useTagGroup } from "@react-aria/tag";
4210
4203
  import { useListState } from "@react-stately/list";
4211
4204
  import { useStateProps as useStateProps28 } from "@marigold/system";
4212
4205
 
4213
4206
  // src/TagGroup/Tag.tsx
4214
- import React2 from "react";
4207
+ import React2, { useRef as useRef29 } from "react";
4208
+ import { useButton as useButton8 } from "@react-aria/button";
4215
4209
  import { useFocusRing as useFocusRing20 } from "@react-aria/focus";
4216
4210
  import { useTag } from "@react-aria/tag";
4217
4211
  import { mergeProps as mergeProps23 } from "@react-aria/utils";
4218
4212
  import { cn as cn46, useClassNames as useClassNames40 } from "@marigold/system";
4219
4213
  import { jsx as jsx87, jsxs as jsxs35 } from "react/jsx-runtime";
4214
+ var CloseButton2 = ({ className, ...props }) => {
4215
+ const ref = useRef29(null);
4216
+ const { buttonProps } = useButton8({ ...props }, ref);
4217
+ return /* @__PURE__ */ jsx87("button", { className, ...buttonProps, children: /* @__PURE__ */ jsx87("svg", { viewBox: "0 0 20 20", fill: "currentColor", width: 20, height: 20, children: /* @__PURE__ */ jsx87("path", { d: "M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z" }) }) });
4218
+ };
4220
4219
  var Tag = ({ variant, size, item, state, ...rest }) => {
4221
4220
  const props = {
4222
4221
  item,
@@ -4242,12 +4241,10 @@ var Tag = ({ variant, size, item, state, ...rest }) => {
4242
4241
  children: /* @__PURE__ */ jsxs35("div", { ...gridCellProps, className: classNames2.gridCell, children: [
4243
4242
  /* @__PURE__ */ jsx87("span", { children: item.rendered }),
4244
4243
  allowsRemoving && /* @__PURE__ */ jsx87(
4245
- Button,
4244
+ CloseButton2,
4246
4245
  {
4247
4246
  ...removeButtonProps,
4248
- className: cn46("flex items-center", classNames2.closeButton),
4249
- role: "button",
4250
- children: /* @__PURE__ */ jsx87("svg", { viewBox: "0 0 20 20", fill: "currentColor", width: 20, height: 20, children: /* @__PURE__ */ jsx87("path", { d: "M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z" }) })
4247
+ className: cn46("flex items-center", classNames2.closeButton)
4251
4248
  }
4252
4249
  )
4253
4250
  ] })
@@ -4270,7 +4267,7 @@ var TagGroup = ({
4270
4267
  validationState: error ? "invalid" : "valid",
4271
4268
  ...rest
4272
4269
  };
4273
- const inputRef = useRef29(null);
4270
+ const inputRef = useRef30(null);
4274
4271
  const state = useListState(props);
4275
4272
  const { gridProps, labelProps, descriptionProps, errorMessageProps } = useTagGroup(props, state, inputRef);
4276
4273
  const stateProps = useStateProps28({
@@ -4536,7 +4533,7 @@ var XLoader = forwardRef18((props, ref) => /* @__PURE__ */ jsxs36(
4536
4533
  ));
4537
4534
 
4538
4535
  // src/Tabs/Tabs.tsx
4539
- import { useRef as useRef32 } from "react";
4536
+ import { useRef as useRef33 } from "react";
4540
4537
  import { useTabList } from "@react-aria/tabs";
4541
4538
  import { Item as Item7 } from "@react-stately/collections";
4542
4539
  import { useTabListState } from "@react-stately/tabs";
@@ -4548,7 +4545,7 @@ var TabContext = createContext10({});
4548
4545
  var useTabContext = () => useContext10(TabContext);
4549
4546
 
4550
4547
  // src/Tabs/Tab.tsx
4551
- import { useRef as useRef30 } from "react";
4548
+ import { useRef as useRef31 } from "react";
4552
4549
  import { useFocus, useHover as useHover14 } from "@react-aria/interactions";
4553
4550
  import { useTab } from "@react-aria/tabs";
4554
4551
  import { mergeProps as mergeProps24 } from "@react-aria/utils";
@@ -4556,7 +4553,7 @@ import { cn as cn47, useStateProps as useStateProps29 } from "@marigold/system";
4556
4553
  import { jsx as jsx90 } from "react/jsx-runtime";
4557
4554
  var Tab = ({ item, state }) => {
4558
4555
  const { key, rendered } = item;
4559
- const ref = useRef30(null);
4556
+ const ref = useRef31(null);
4560
4557
  const { tabProps, isSelected } = useTab({ key }, state, ref);
4561
4558
  const disabled = tabProps["aria-disabled"];
4562
4559
  const { hoverProps, isHovered } = useHover14({
@@ -4580,13 +4577,13 @@ var Tab = ({ item, state }) => {
4580
4577
  };
4581
4578
 
4582
4579
  // src/Tabs/TabPanel.tsx
4583
- import { useRef as useRef31 } from "react";
4580
+ import { useRef as useRef32 } from "react";
4584
4581
  import { useTabPanel } from "@react-aria/tabs";
4585
4582
  import { cn as cn48 } from "@marigold/system";
4586
4583
  import { jsx as jsx91 } from "react/jsx-runtime";
4587
4584
  var TabPanel = ({ state, ...props }) => {
4588
4585
  var _a;
4589
- const ref = useRef31(null);
4586
+ const ref = useRef32(null);
4590
4587
  const { tabPanelProps } = useTabPanel(props, state, ref);
4591
4588
  const selectedItemProps = (_a = state.selectedItem) == null ? void 0 : _a.props;
4592
4589
  const { classNames: classNames2 } = useTabContext();
@@ -4603,7 +4600,7 @@ var Tabs = ({
4603
4600
  ...rest
4604
4601
  }) => {
4605
4602
  var _a;
4606
- const ref = useRef32(null);
4603
+ const ref = useRef33(null);
4607
4604
  const props = {
4608
4605
  isDisabled: disabled,
4609
4606
  ...rest