@marigold/components 6.2.5 → 6.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -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
  );
@@ -2484,6 +2471,7 @@ var DatePicker = ({
2484
2471
  shouldCloseOnSelect,
2485
2472
  variant,
2486
2473
  size,
2474
+ width,
2487
2475
  ...rest
2488
2476
  }) => {
2489
2477
  const props = {
@@ -2525,6 +2513,7 @@ var DatePicker = ({
2525
2513
  error,
2526
2514
  description: !state.isOpen && description,
2527
2515
  triggerRef: ref,
2516
+ width,
2528
2517
  action: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { className: classNames2.container, children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
2529
2518
  Button,
2530
2519
  {
@@ -2579,7 +2568,6 @@ var Link = (0, import_react32.forwardRef)(
2579
2568
  disabled,
2580
2569
  onPress,
2581
2570
  onPressStart,
2582
- className,
2583
2571
  ...props
2584
2572
  }, ref) => {
2585
2573
  const linkRef = (0, import_utils17.useObjectRef)(ref);
@@ -2595,8 +2583,7 @@ var Link = (0, import_react32.forwardRef)(
2595
2583
  const classNames2 = (0, import_system41.useClassNames)({
2596
2584
  component: "Link",
2597
2585
  variant,
2598
- size,
2599
- className
2586
+ size
2600
2587
  });
2601
2588
  return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
2602
2589
  Component,
@@ -3311,7 +3298,7 @@ var Thumb = ({ state, trackRef, className, ...props }) => {
3311
3298
  // src/Slider/Slider.tsx
3312
3299
  var import_jsx_runtime68 = require("react/jsx-runtime");
3313
3300
  var Slider = (0, import_react43.forwardRef)(
3314
- ({ variant, size, width = "100%", ...props }, ref) => {
3301
+ ({ variant, size, width = "full", ...props }, ref) => {
3315
3302
  const { formatOptions } = props;
3316
3303
  const trackRef = (0, import_utils25.useObjectRef)(ref);
3317
3304
  const numberFormatter = (0, import_i18n11.useNumberFormatter)(formatOptions);
@@ -3335,8 +3322,7 @@ var Slider = (0, import_react43.forwardRef)(
3335
3322
  return /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)(
3336
3323
  "div",
3337
3324
  {
3338
- className: "flex w-[var(--slideWidth)] touch-none flex-col",
3339
- style: (0, import_system56.createVar)({ slideWidth: width }),
3325
+ className: (0, import_system56.cn)("flex touch-none flex-col", import_system56.width[width]),
3340
3326
  ...groupProps,
3341
3327
  children: [
3342
3328
  /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)("div", { className: "flex self-stretch", children: [
@@ -3433,7 +3419,7 @@ var Switch = (0, import_react44.forwardRef)(
3433
3419
  ({
3434
3420
  variant,
3435
3421
  size,
3436
- width = "100%",
3422
+ width = "full",
3437
3423
  selected,
3438
3424
  disabled,
3439
3425
  readOnly,
@@ -3463,10 +3449,9 @@ var Switch = (0, import_react44.forwardRef)(
3463
3449
  {
3464
3450
  className: (0, import_system58.cn)(
3465
3451
  "group/switch",
3466
- "w-[var(--switchWidth)]",
3452
+ import_system58.width[width],
3467
3453
  "relative flex items-center justify-between gap-[1ch]"
3468
3454
  ),
3469
- style: (0, import_system58.createVar)({ switchWidth: width }),
3470
3455
  ...stateProps,
3471
3456
  children: [
3472
3457
  /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
@@ -4195,11 +4180,17 @@ var import_system72 = require("@marigold/system");
4195
4180
 
4196
4181
  // src/TagGroup/Tag.tsx
4197
4182
  var import_react57 = __toESM(require("react"));
4183
+ var import_button8 = require("@react-aria/button");
4198
4184
  var import_focus24 = require("@react-aria/focus");
4199
4185
  var import_tag = require("@react-aria/tag");
4200
4186
  var import_utils36 = require("@react-aria/utils");
4201
4187
  var import_system71 = require("@marigold/system");
4202
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
+ };
4203
4194
  var Tag = ({ variant, size, item, state, ...rest }) => {
4204
4195
  const props = {
4205
4196
  item,
@@ -4225,12 +4216,10 @@ var Tag = ({ variant, size, item, state, ...rest }) => {
4225
4216
  children: /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)("div", { ...gridCellProps, className: classNames2.gridCell, children: [
4226
4217
  /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("span", { children: item.rendered }),
4227
4218
  allowsRemoving && /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
4228
- Button,
4219
+ CloseButton2,
4229
4220
  {
4230
4221
  ...removeButtonProps,
4231
- className: (0, import_system71.cn)("flex items-center", classNames2.closeButton),
4232
- role: "button",
4233
- 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)
4234
4223
  }
4235
4224
  )
4236
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
  );
@@ -2452,6 +2439,7 @@ var DatePicker = ({
2452
2439
  shouldCloseOnSelect,
2453
2440
  variant,
2454
2441
  size,
2442
+ width,
2455
2443
  ...rest
2456
2444
  }) => {
2457
2445
  const props = {
@@ -2493,6 +2481,7 @@ var DatePicker = ({
2493
2481
  error,
2494
2482
  description: !state.isOpen && description,
2495
2483
  triggerRef: ref,
2484
+ width,
2496
2485
  action: /* @__PURE__ */ jsx51("div", { className: classNames2.container, children: /* @__PURE__ */ jsx51(
2497
2486
  Button,
2498
2487
  {
@@ -2552,7 +2541,6 @@ var Link = forwardRef11(
2552
2541
  disabled,
2553
2542
  onPress,
2554
2543
  onPressStart,
2555
- className,
2556
2544
  ...props
2557
2545
  }, ref) => {
2558
2546
  const linkRef = useObjectRef7(ref);
@@ -2568,8 +2556,7 @@ var Link = forwardRef11(
2568
2556
  const classNames2 = useClassNames26({
2569
2557
  component: "Link",
2570
2558
  variant,
2571
- size,
2572
- className
2559
+ size
2573
2560
  });
2574
2561
  return /* @__PURE__ */ jsx53(
2575
2562
  Component,
@@ -3249,7 +3236,12 @@ import { useNumberFormatter } from "@react-aria/i18n";
3249
3236
  import { useSlider } from "@react-aria/slider";
3250
3237
  import { useObjectRef as useObjectRef11 } from "@react-aria/utils";
3251
3238
  import { useSliderState } from "@react-stately/slider";
3252
- 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";
3253
3245
 
3254
3246
  // src/Slider/Thumb.tsx
3255
3247
  import { useEffect as useEffect2, useRef as useRef20 } from "react";
@@ -3297,7 +3289,7 @@ var Thumb = ({ state, trackRef, className, ...props }) => {
3297
3289
  // src/Slider/Slider.tsx
3298
3290
  import { jsx as jsx68, jsxs as jsxs29 } from "react/jsx-runtime";
3299
3291
  var Slider = forwardRef14(
3300
- ({ variant, size, width = "100%", ...props }, ref) => {
3292
+ ({ variant, size, width = "full", ...props }, ref) => {
3301
3293
  const { formatOptions } = props;
3302
3294
  const trackRef = useObjectRef11(ref);
3303
3295
  const numberFormatter = useNumberFormatter(formatOptions);
@@ -3321,8 +3313,7 @@ var Slider = forwardRef14(
3321
3313
  return /* @__PURE__ */ jsxs29(
3322
3314
  "div",
3323
3315
  {
3324
- className: "flex w-[var(--slideWidth)] touch-none flex-col",
3325
- style: createVar10({ slideWidth: width }),
3316
+ className: cn35("flex touch-none flex-col", twWidth2[width]),
3326
3317
  ...groupProps,
3327
3318
  children: [
3328
3319
  /* @__PURE__ */ jsxs29("div", { className: "flex self-stretch", children: [
@@ -3417,13 +3408,18 @@ import { useFocusRing as useFocusRing12 } from "@react-aria/focus";
3417
3408
  import { useSwitch } from "@react-aria/switch";
3418
3409
  import { useObjectRef as useObjectRef12 } from "@react-aria/utils";
3419
3410
  import { useToggleState as useToggleState2 } from "@react-stately/toggle";
3420
- 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";
3421
3417
  import { Fragment as Fragment6, jsx as jsx71, jsxs as jsxs30 } from "react/jsx-runtime";
3422
3418
  var Switch = forwardRef15(
3423
3419
  ({
3424
3420
  variant,
3425
3421
  size,
3426
- width = "100%",
3422
+ width = "full",
3427
3423
  selected,
3428
3424
  disabled,
3429
3425
  readOnly,
@@ -3453,10 +3449,9 @@ var Switch = forwardRef15(
3453
3449
  {
3454
3450
  className: cn37(
3455
3451
  "group/switch",
3456
- "w-[var(--switchWidth)]",
3452
+ twWidth3[width],
3457
3453
  "relative flex items-center justify-between gap-[1ch]"
3458
3454
  ),
3459
- style: createVar11({ switchWidth: width }),
3460
3455
  ...stateProps,
3461
3456
  children: [
3462
3457
  /* @__PURE__ */ jsx71(
@@ -3629,7 +3624,7 @@ import { useTableColumnHeader } from "@react-aria/table";
3629
3624
  import { mergeProps as mergeProps19 } from "@react-aria/utils";
3630
3625
  import { SortDown, SortUp } from "@marigold/icons";
3631
3626
  import { cn as cn39, useStateProps as useStateProps23 } from "@marigold/system";
3632
- import { width as twWidth2 } from "@marigold/system";
3627
+ import { width as twWidth4 } from "@marigold/system";
3633
3628
  import { jsx as jsx75, jsxs as jsxs31 } from "react/jsx-runtime";
3634
3629
  var TableColumnHeader = ({
3635
3630
  column,
@@ -3656,7 +3651,7 @@ var TableColumnHeader = ({
3656
3651
  {
3657
3652
  colSpan: column.colspan,
3658
3653
  ref,
3659
- 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),
3660
3655
  ...mergeProps19(columnHeaderProps, hoverProps, focusProps),
3661
3656
  ...stateProps,
3662
3657
  children: [
@@ -3751,7 +3746,7 @@ import {
3751
3746
  import { mergeProps as mergeProps21 } from "@react-aria/utils";
3752
3747
  import {
3753
3748
  cn as cn41,
3754
- width as twWidth3,
3749
+ width as twWidth5,
3755
3750
  useStateProps as useStateProps25
3756
3751
  } from "@marigold/system";
3757
3752
  import { jsx as jsx79 } from "react/jsx-runtime";
@@ -3780,7 +3775,7 @@ var TableSelectAllCell = ({
3780
3775
  {
3781
3776
  ref,
3782
3777
  className: cn41(
3783
- twWidth3[width],
3778
+ twWidth5[width],
3784
3779
  ["text-center align-middle leading-none"],
3785
3780
  classNames2 == null ? void 0 : classNames2.header
3786
3781
  ),
@@ -3876,7 +3871,7 @@ Table.Row = Row;
3876
3871
  // src/Text/Text.tsx
3877
3872
  import {
3878
3873
  cn as cn43,
3879
- createVar as createVar12,
3874
+ createVar as createVar10,
3880
3875
  cursorStyle,
3881
3876
  fontWeight,
3882
3877
  get as get2,
@@ -3918,7 +3913,7 @@ var Text = ({
3918
3913
  weight && fontWeight[weight],
3919
3914
  fontSize && textSize[fontSize]
3920
3915
  ),
3921
- style: createVar12({
3916
+ style: createVar10({
3922
3917
  color: color && theme.colors && get2(
3923
3918
  theme.colors,
3924
3919
  color.replace("-", "."),
@@ -4069,7 +4064,7 @@ var TextField = forwardRef17(
4069
4064
  );
4070
4065
 
4071
4066
  // src/Tiles/Tiles.tsx
4072
- 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";
4073
4068
  import { jsx as jsx84 } from "react/jsx-runtime";
4074
4069
  var Tiles = ({
4075
4070
  space = 0,
@@ -4093,7 +4088,7 @@ var Tiles = ({
4093
4088
  "grid-cols-[repeat(auto-fit,var(--column))]",
4094
4089
  equalHeight && "auto-rows-[1fr]"
4095
4090
  ),
4096
- style: createVar13({ column, tilesWidth }),
4091
+ style: createVar11({ column, tilesWidth }),
4097
4092
  children
4098
4093
  }
4099
4094
  );
@@ -4203,18 +4198,24 @@ Tooltip.Trigger = TooltipTrigger;
4203
4198
  import { Item as Item6 } from "@react-stately/collections";
4204
4199
 
4205
4200
  // src/TagGroup/TagGroup.tsx
4206
- import { useRef as useRef29 } from "react";
4201
+ import { useRef as useRef30 } from "react";
4207
4202
  import { useTagGroup } from "@react-aria/tag";
4208
4203
  import { useListState } from "@react-stately/list";
4209
4204
  import { useStateProps as useStateProps28 } from "@marigold/system";
4210
4205
 
4211
4206
  // src/TagGroup/Tag.tsx
4212
- import React2 from "react";
4207
+ import React2, { useRef as useRef29 } from "react";
4208
+ import { useButton as useButton8 } from "@react-aria/button";
4213
4209
  import { useFocusRing as useFocusRing20 } from "@react-aria/focus";
4214
4210
  import { useTag } from "@react-aria/tag";
4215
4211
  import { mergeProps as mergeProps23 } from "@react-aria/utils";
4216
4212
  import { cn as cn46, useClassNames as useClassNames40 } from "@marigold/system";
4217
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
+ };
4218
4219
  var Tag = ({ variant, size, item, state, ...rest }) => {
4219
4220
  const props = {
4220
4221
  item,
@@ -4240,12 +4241,10 @@ var Tag = ({ variant, size, item, state, ...rest }) => {
4240
4241
  children: /* @__PURE__ */ jsxs35("div", { ...gridCellProps, className: classNames2.gridCell, children: [
4241
4242
  /* @__PURE__ */ jsx87("span", { children: item.rendered }),
4242
4243
  allowsRemoving && /* @__PURE__ */ jsx87(
4243
- Button,
4244
+ CloseButton2,
4244
4245
  {
4245
4246
  ...removeButtonProps,
4246
- className: cn46("flex items-center", classNames2.closeButton),
4247
- role: "button",
4248
- 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)
4249
4248
  }
4250
4249
  )
4251
4250
  ] })
@@ -4268,7 +4267,7 @@ var TagGroup = ({
4268
4267
  validationState: error ? "invalid" : "valid",
4269
4268
  ...rest
4270
4269
  };
4271
- const inputRef = useRef29(null);
4270
+ const inputRef = useRef30(null);
4272
4271
  const state = useListState(props);
4273
4272
  const { gridProps, labelProps, descriptionProps, errorMessageProps } = useTagGroup(props, state, inputRef);
4274
4273
  const stateProps = useStateProps28({
@@ -4534,7 +4533,7 @@ var XLoader = forwardRef18((props, ref) => /* @__PURE__ */ jsxs36(
4534
4533
  ));
4535
4534
 
4536
4535
  // src/Tabs/Tabs.tsx
4537
- import { useRef as useRef32 } from "react";
4536
+ import { useRef as useRef33 } from "react";
4538
4537
  import { useTabList } from "@react-aria/tabs";
4539
4538
  import { Item as Item7 } from "@react-stately/collections";
4540
4539
  import { useTabListState } from "@react-stately/tabs";
@@ -4546,7 +4545,7 @@ var TabContext = createContext10({});
4546
4545
  var useTabContext = () => useContext10(TabContext);
4547
4546
 
4548
4547
  // src/Tabs/Tab.tsx
4549
- import { useRef as useRef30 } from "react";
4548
+ import { useRef as useRef31 } from "react";
4550
4549
  import { useFocus, useHover as useHover14 } from "@react-aria/interactions";
4551
4550
  import { useTab } from "@react-aria/tabs";
4552
4551
  import { mergeProps as mergeProps24 } from "@react-aria/utils";
@@ -4554,7 +4553,7 @@ import { cn as cn47, useStateProps as useStateProps29 } from "@marigold/system";
4554
4553
  import { jsx as jsx90 } from "react/jsx-runtime";
4555
4554
  var Tab = ({ item, state }) => {
4556
4555
  const { key, rendered } = item;
4557
- const ref = useRef30(null);
4556
+ const ref = useRef31(null);
4558
4557
  const { tabProps, isSelected } = useTab({ key }, state, ref);
4559
4558
  const disabled = tabProps["aria-disabled"];
4560
4559
  const { hoverProps, isHovered } = useHover14({
@@ -4578,13 +4577,13 @@ var Tab = ({ item, state }) => {
4578
4577
  };
4579
4578
 
4580
4579
  // src/Tabs/TabPanel.tsx
4581
- import { useRef as useRef31 } from "react";
4580
+ import { useRef as useRef32 } from "react";
4582
4581
  import { useTabPanel } from "@react-aria/tabs";
4583
4582
  import { cn as cn48 } from "@marigold/system";
4584
4583
  import { jsx as jsx91 } from "react/jsx-runtime";
4585
4584
  var TabPanel = ({ state, ...props }) => {
4586
4585
  var _a;
4587
- const ref = useRef31(null);
4586
+ const ref = useRef32(null);
4588
4587
  const { tabPanelProps } = useTabPanel(props, state, ref);
4589
4588
  const selectedItemProps = (_a = state.selectedItem) == null ? void 0 : _a.props;
4590
4589
  const { classNames: classNames2 } = useTabContext();
@@ -4601,7 +4600,7 @@ var Tabs = ({
4601
4600
  ...rest
4602
4601
  }) => {
4603
4602
  var _a;
4604
- const ref = useRef32(null);
4603
+ const ref = useRef33(null);
4605
4604
  const props = {
4606
4605
  isDisabled: disabled,
4607
4606
  ...rest