@marigold/components 6.9.1 → 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,7 +568,7 @@ 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) => {
@@ -690,7 +679,7 @@ var Overlay = ({ children, container, open }) => {
690
679
  ) });
691
680
  };
692
681
 
693
- // src/Overlay/Popover.tsx
682
+ // src/Overlay/_Popover.tsx
694
683
  import { forwardRef as forwardRef6, useRef as useRef5 } from "react";
695
684
  import { FocusScope } from "@react-aria/focus";
696
685
  import {
@@ -1339,7 +1328,6 @@ var HelpText2 = ({
1339
1328
  description,
1340
1329
  error,
1341
1330
  errorMessage,
1342
- isInvalid,
1343
1331
  ...props
1344
1332
  }) => {
1345
1333
  const hasErrorMessage = errorMessage && error;
@@ -1598,6 +1586,7 @@ var _DialogTrigger = ({
1598
1586
  open,
1599
1587
  dismissable,
1600
1588
  keyboardDismissable,
1589
+ isNonModal,
1601
1590
  ...rest
1602
1591
  }) => {
1603
1592
  const props = {
@@ -1608,6 +1597,8 @@ var _DialogTrigger = ({
1608
1597
  const [dialogTrigger, dialog] = children;
1609
1598
  const hasDialogTrigger = dialogTrigger.type !== _Dialog;
1610
1599
  const currentDialog = children.length < 2 ? !hasDialogTrigger && dialogTrigger : dialog;
1600
+ if (isNonModal)
1601
+ return /* @__PURE__ */ jsx37(DialogTrigger, { ...props, children: props.children });
1611
1602
  return /* @__PURE__ */ jsxs15(DialogTrigger, { ...props, children: [
1612
1603
  hasDialogTrigger && dialogTrigger,
1613
1604
  /* @__PURE__ */ jsx37(
@@ -3018,9 +3009,38 @@ var _Radio = forwardRef14(
3018
3009
  );
3019
3010
  _Radio.Group = _RadioGroup;
3020
3011
 
3012
+ // src/SearchField/SearchField.tsx
3013
+ import { forwardRef as forwardRef15 } from "react";
3014
+ import { SearchField } from "react-aria-components";
3015
+ import { jsx as jsx68 } from "react/jsx-runtime";
3016
+ var SearchIcon2 = (props) => /* @__PURE__ */ jsx68(
3017
+ "svg",
3018
+ {
3019
+ xmlns: "http://www.w3.org/2000/svg",
3020
+ viewBox: "0 0 24 24",
3021
+ fill: "currentColor",
3022
+ width: 24,
3023
+ height: 24,
3024
+ ...props,
3025
+ children: /* @__PURE__ */ jsx68("path", { d: "M16.1865 14.5142H15.3057L14.9936 14.2131C16.0862 12.9421 16.744 11.292 16.744 9.497C16.744 5.49443 13.4996 2.25 9.497 2.25C5.49443 2.25 2.25 5.49443 2.25 9.497C2.25 13.4996 5.49443 16.744 9.497 16.744C11.292 16.744 12.9421 16.0862 14.2131 14.9936L14.5142 15.3057V16.1865L20.0888 21.75L21.75 20.0888L16.1865 14.5142ZM9.49701 14.5142C6.72085 14.5142 4.47986 12.2732 4.47986 9.49701C4.47986 6.72085 6.72085 4.47986 9.49701 4.47986C12.2732 4.47986 14.5142 6.72085 14.5142 9.49701C14.5142 12.2732 12.2732 14.5142 9.49701 14.5142Z" })
3026
+ }
3027
+ );
3028
+ var _SearchField = forwardRef15(
3029
+ ({ disabled, required, readOnly, error, action, ...rest }, ref) => {
3030
+ const props = {
3031
+ ...rest,
3032
+ isDisabled: disabled,
3033
+ isRequired: required,
3034
+ isReadOnly: readOnly,
3035
+ isInvalid: error
3036
+ };
3037
+ return /* @__PURE__ */ jsx68(FieldBase2, { as: SearchField, ...props, children: /* @__PURE__ */ jsx68(_Input, { ref, icon: /* @__PURE__ */ jsx68(SearchIcon2, {}) }) });
3038
+ }
3039
+ );
3040
+
3021
3041
  // src/Select/Select.tsx
3022
3042
  import {
3023
- forwardRef as forwardRef15,
3043
+ forwardRef as forwardRef16,
3024
3044
  useRef as useRef17
3025
3045
  } from "react";
3026
3046
  import { useButton as useButton3 } from "@react-aria/button";
@@ -3048,8 +3068,8 @@ var messages = {
3048
3068
  };
3049
3069
 
3050
3070
  // src/Select/Select.tsx
3051
- import { jsx as jsx68, jsxs as jsxs29 } from "react/jsx-runtime";
3052
- var Select = forwardRef15(
3071
+ import { jsx as jsx69, jsxs as jsxs29 } from "react/jsx-runtime";
3072
+ var Select = forwardRef16(
3053
3073
  ({
3054
3074
  variant,
3055
3075
  size,
@@ -3112,7 +3132,7 @@ var Select = forwardRef15(
3112
3132
  stateProps,
3113
3133
  disabled,
3114
3134
  children: [
3115
- /* @__PURE__ */ jsx68(
3135
+ /* @__PURE__ */ jsx69(
3116
3136
  HiddenSelect,
3117
3137
  {
3118
3138
  state,
@@ -3133,12 +3153,12 @@ var Select = forwardRef15(
3133
3153
  ...mergeProps10(buttonProps, focusProps),
3134
3154
  ...stateProps,
3135
3155
  children: [
3136
- /* @__PURE__ */ jsx68("div", { className: "overflow-hidden whitespace-nowrap", ...valueProps, children: state.selectedItem ? state.selectedItem.rendered : props.placeholder }),
3137
- /* @__PURE__ */ jsx68(ChevronDown, { className: "h-4 w-4" })
3156
+ /* @__PURE__ */ jsx69("div", { className: "overflow-hidden whitespace-nowrap", ...valueProps, children: state.selectedItem ? state.selectedItem.rendered : props.placeholder }),
3157
+ /* @__PURE__ */ jsx69(ChevronDown, { className: "h-4 w-4" })
3138
3158
  ]
3139
3159
  }
3140
3160
  ),
3141
- isSmallScreen ? /* @__PURE__ */ jsx68(Tray, { state, children: /* @__PURE__ */ jsx68(
3161
+ isSmallScreen ? /* @__PURE__ */ jsx69(Tray, { state, children: /* @__PURE__ */ jsx69(
3142
3162
  ListBox,
3143
3163
  {
3144
3164
  ref: listboxRef,
@@ -3147,7 +3167,7 @@ var Select = forwardRef15(
3147
3167
  size,
3148
3168
  ...menuProps
3149
3169
  }
3150
- ) }) : /* @__PURE__ */ jsx68(Popover, { state, triggerRef: buttonRef, scrollRef: listboxRef, children: /* @__PURE__ */ jsx68(
3170
+ ) }) : /* @__PURE__ */ jsx69(Popover, { state, triggerRef: buttonRef, scrollRef: listboxRef, children: /* @__PURE__ */ jsx69(
3151
3171
  ListBox,
3152
3172
  {
3153
3173
  ref: listboxRef,
@@ -3166,7 +3186,7 @@ Select.Option = Item5;
3166
3186
  Select.Section = Section2;
3167
3187
 
3168
3188
  // src/Slider/Slider.tsx
3169
- import { forwardRef as forwardRef16 } from "react";
3189
+ import { forwardRef as forwardRef17 } from "react";
3170
3190
  import {
3171
3191
  Slider,
3172
3192
  SliderOutput,
@@ -3178,8 +3198,8 @@ import {
3178
3198
  width as twWidth3,
3179
3199
  useClassNames as useClassNames38
3180
3200
  } from "@marigold/system";
3181
- import { jsx as jsx69, jsxs as jsxs30 } from "react/jsx-runtime";
3182
- var _Slider = forwardRef16(
3201
+ import { jsx as jsx70, jsxs as jsxs30 } from "react/jsx-runtime";
3202
+ var _Slider = forwardRef17(
3183
3203
  ({
3184
3204
  thumbLabels,
3185
3205
  variant,
@@ -3208,13 +3228,13 @@ var _Slider = forwardRef16(
3208
3228
  ref,
3209
3229
  ...props,
3210
3230
  children: [
3211
- /* @__PURE__ */ jsx69(_Label, { children: props.children }),
3212
- /* @__PURE__ */ jsx69(SliderOutput, { className: cn37("flex justify-end", classNames2.output), children: ({ state }) => state.values.map((_, i) => state.getThumbValueLabel(i)).join(" \u2013 ") }),
3213
- /* @__PURE__ */ jsx69(
3231
+ /* @__PURE__ */ jsx70(_Label, { children: props.children }),
3232
+ /* @__PURE__ */ jsx70(SliderOutput, { className: cn37("flex justify-end", classNames2.output), children: ({ state }) => state.values.map((_, i) => state.getThumbValueLabel(i)).join(" \u2013 ") }),
3233
+ /* @__PURE__ */ jsx70(
3214
3234
  SliderTrack,
3215
3235
  {
3216
3236
  className: cn37("relative col-span-2 h-2 w-full", classNames2.track),
3217
- children: ({ state }) => state.values.map((_, i) => /* @__PURE__ */ jsx69(
3237
+ children: ({ state }) => state.values.map((_, i) => /* @__PURE__ */ jsx70(
3218
3238
  SliderThumb,
3219
3239
  {
3220
3240
  className: cn37("top-1/2 cursor-pointer", classNames2.thumb),
@@ -3232,8 +3252,8 @@ var _Slider = forwardRef16(
3232
3252
  );
3233
3253
 
3234
3254
  // src/Split/Split.tsx
3235
- import { jsx as jsx70 } from "react/jsx-runtime";
3236
- var Split = (props) => /* @__PURE__ */ jsx70("div", { ...props, role: "separator", className: "grow" });
3255
+ import { jsx as jsx71 } from "react/jsx-runtime";
3256
+ var Split = (props) => /* @__PURE__ */ jsx71("div", { ...props, role: "separator", className: "grow" });
3237
3257
 
3238
3258
  // src/Stack/Stack.tsx
3239
3259
  import {
@@ -3241,7 +3261,7 @@ import {
3241
3261
  cn as cn38,
3242
3262
  gapSpace as gapSpace6
3243
3263
  } from "@marigold/system";
3244
- import { jsx as jsx71 } from "react/jsx-runtime";
3264
+ import { jsx as jsx72 } from "react/jsx-runtime";
3245
3265
  var Stack = ({
3246
3266
  children,
3247
3267
  space = 0,
@@ -3252,7 +3272,7 @@ var Stack = ({
3252
3272
  ...props
3253
3273
  }) => {
3254
3274
  var _a, _b, _c, _d;
3255
- return /* @__PURE__ */ jsx71(
3275
+ return /* @__PURE__ */ jsx72(
3256
3276
  "div",
3257
3277
  {
3258
3278
  className: cn38(
@@ -3269,15 +3289,15 @@ var Stack = ({
3269
3289
  };
3270
3290
 
3271
3291
  // src/Switch/Switch.tsx
3272
- import { forwardRef as forwardRef17 } from "react";
3292
+ import { forwardRef as forwardRef18 } from "react";
3273
3293
  import { Switch } from "react-aria-components";
3274
3294
  import {
3275
3295
  cn as cn39,
3276
3296
  width as twWidth4,
3277
3297
  useClassNames as useClassNames39
3278
3298
  } from "@marigold/system";
3279
- import { jsx as jsx72, jsxs as jsxs31 } from "react/jsx-runtime";
3280
- var _Switch = forwardRef17(
3299
+ import { jsx as jsx73, jsxs as jsxs31 } from "react/jsx-runtime";
3300
+ var _Switch = forwardRef18(
3281
3301
  ({
3282
3302
  variant,
3283
3303
  size,
@@ -3307,15 +3327,15 @@ var _Switch = forwardRef17(
3307
3327
  classNames2.container
3308
3328
  ),
3309
3329
  children: [
3310
- /* @__PURE__ */ jsx72(_Label, { elementType: "span", children }),
3311
- /* @__PURE__ */ jsx72("div", { className: "relative", children: /* @__PURE__ */ jsx72(
3330
+ /* @__PURE__ */ jsx73(_Label, { elementType: "span", children }),
3331
+ /* @__PURE__ */ jsx73("div", { className: "relative", children: /* @__PURE__ */ jsx73(
3312
3332
  "div",
3313
3333
  {
3314
3334
  className: cn39(
3315
3335
  "h-6 w-12 basis-12 rounded-3xl group-disabled/switch:cursor-not-allowed ",
3316
3336
  classNames2.track
3317
3337
  ),
3318
- children: /* @__PURE__ */ jsx72(
3338
+ children: /* @__PURE__ */ jsx73(
3319
3339
  "div",
3320
3340
  {
3321
3341
  className: cn39(
@@ -3356,10 +3376,10 @@ var useTableContext = () => useContext7(TableContext);
3356
3376
 
3357
3377
  // src/Table/TableBody.tsx
3358
3378
  import { useTableRowGroup } from "@react-aria/table";
3359
- import { jsx as jsx73 } from "react/jsx-runtime";
3379
+ import { jsx as jsx74 } from "react/jsx-runtime";
3360
3380
  var TableBody = ({ children }) => {
3361
3381
  const { rowGroupProps } = useTableRowGroup();
3362
- return /* @__PURE__ */ jsx73("tbody", { ...rowGroupProps, children });
3382
+ return /* @__PURE__ */ jsx74("tbody", { ...rowGroupProps, children });
3363
3383
  };
3364
3384
 
3365
3385
  // src/Table/TableCell.tsx
@@ -3368,7 +3388,7 @@ import { useFocusRing as useFocusRing7 } from "@react-aria/focus";
3368
3388
  import { useTableCell } from "@react-aria/table";
3369
3389
  import { mergeProps as mergeProps11 } from "@react-aria/utils";
3370
3390
  import { useStateProps as useStateProps11 } from "@marigold/system";
3371
- import { jsx as jsx74 } from "react/jsx-runtime";
3391
+ import { jsx as jsx75 } from "react/jsx-runtime";
3372
3392
  var TableCell = ({ cell }) => {
3373
3393
  const ref = useRef18(null);
3374
3394
  const { interactive, state, classNames: classNames2 } = useTableContext();
@@ -3391,7 +3411,7 @@ var TableCell = ({ cell }) => {
3391
3411
  };
3392
3412
  const { focusProps, isFocusVisible } = useFocusRing7();
3393
3413
  const stateProps = useStateProps11({ disabled, focusVisible: isFocusVisible });
3394
- return /* @__PURE__ */ jsx74(
3414
+ return /* @__PURE__ */ jsx75(
3395
3415
  "td",
3396
3416
  {
3397
3417
  ref,
@@ -3431,7 +3451,7 @@ var mapCheckboxProps = ({
3431
3451
  };
3432
3452
 
3433
3453
  // src/Table/TableCheckboxCell.tsx
3434
- import { jsx as jsx75 } from "react/jsx-runtime";
3454
+ import { jsx as jsx76 } from "react/jsx-runtime";
3435
3455
  var TableCheckboxCell = ({ cell }) => {
3436
3456
  const ref = useRef19(null);
3437
3457
  const { state, classNames: classNames2 } = useTableContext();
@@ -3448,14 +3468,14 @@ var TableCheckboxCell = ({ cell }) => {
3448
3468
  );
3449
3469
  const { focusProps, isFocusVisible } = useFocusRing8();
3450
3470
  const stateProps = useStateProps12({ disabled, focusVisible: isFocusVisible });
3451
- return /* @__PURE__ */ jsx75(
3471
+ return /* @__PURE__ */ jsx76(
3452
3472
  "td",
3453
3473
  {
3454
3474
  ref,
3455
3475
  className: cn40("text-center align-middle leading-none", classNames2 == null ? void 0 : classNames2.cell),
3456
3476
  ...mergeProps12(gridCellProps, focusProps),
3457
3477
  ...stateProps,
3458
- children: /* @__PURE__ */ jsx75(_Checkbox, { ...checkboxProps })
3478
+ children: /* @__PURE__ */ jsx76(_Checkbox, { ...checkboxProps })
3459
3479
  }
3460
3480
  );
3461
3481
  };
@@ -3469,7 +3489,7 @@ import { mergeProps as mergeProps13 } from "@react-aria/utils";
3469
3489
  import { SortDown, SortUp } from "@marigold/icons";
3470
3490
  import { cn as cn41, useStateProps as useStateProps13 } from "@marigold/system";
3471
3491
  import { width as twWidth5 } from "@marigold/system";
3472
- import { jsx as jsx76, jsxs as jsxs32 } from "react/jsx-runtime";
3492
+ import { jsx as jsx77, jsxs as jsxs32 } from "react/jsx-runtime";
3473
3493
  var TableColumnHeader = ({
3474
3494
  column,
3475
3495
  width = "auto"
@@ -3500,7 +3520,7 @@ var TableColumnHeader = ({
3500
3520
  ...stateProps,
3501
3521
  children: [
3502
3522
  column.rendered,
3503
- column.props.allowsSorting && (((_a = state.sortDescriptor) == null ? void 0 : _a.column) === column.key ? ((_b = state.sortDescriptor) == null ? void 0 : _b.direction) === "ascending" ? /* @__PURE__ */ jsx76(SortUp, { className: "inline-block" }) : /* @__PURE__ */ jsx76(SortDown, { className: "inline-block" }) : /* @__PURE__ */ jsx76(SortDown, { className: "inline-block" }))
3523
+ column.props.allowsSorting && (((_a = state.sortDescriptor) == null ? void 0 : _a.column) === column.key ? ((_b = state.sortDescriptor) == null ? void 0 : _b.direction) === "ascending" ? /* @__PURE__ */ jsx77(SortUp, { className: "inline-block" }) : /* @__PURE__ */ jsx77(SortDown, { className: "inline-block" }) : /* @__PURE__ */ jsx77(SortDown, { className: "inline-block" }))
3504
3524
  ]
3505
3525
  }
3506
3526
  );
@@ -3508,21 +3528,21 @@ var TableColumnHeader = ({
3508
3528
 
3509
3529
  // src/Table/TableHeader.tsx
3510
3530
  import { useTableRowGroup as useTableRowGroup2 } from "@react-aria/table";
3511
- import { jsx as jsx77 } from "react/jsx-runtime";
3531
+ import { jsx as jsx78 } from "react/jsx-runtime";
3512
3532
  var TableHeader = ({ children }) => {
3513
3533
  const { rowGroupProps } = useTableRowGroup2();
3514
- return /* @__PURE__ */ jsx77("thead", { ...rowGroupProps, children });
3534
+ return /* @__PURE__ */ jsx78("thead", { ...rowGroupProps, children });
3515
3535
  };
3516
3536
 
3517
3537
  // src/Table/TableHeaderRow.tsx
3518
3538
  import { useRef as useRef21 } from "react";
3519
3539
  import { useTableHeaderRow } from "@react-aria/table";
3520
- import { jsx as jsx78 } from "react/jsx-runtime";
3540
+ import { jsx as jsx79 } from "react/jsx-runtime";
3521
3541
  var TableHeaderRow = ({ item, children }) => {
3522
3542
  const { state } = useTableContext();
3523
3543
  const ref = useRef21(null);
3524
3544
  const { rowProps } = useTableHeaderRow({ node: item }, state, ref);
3525
- return /* @__PURE__ */ jsx78("tr", { ...rowProps, ref, children });
3545
+ return /* @__PURE__ */ jsx79("tr", { ...rowProps, ref, children });
3526
3546
  };
3527
3547
 
3528
3548
  // src/Table/TableRow.tsx
@@ -3532,7 +3552,7 @@ import { useHover as useHover5 } from "@react-aria/interactions";
3532
3552
  import { useTableRow } from "@react-aria/table";
3533
3553
  import { mergeProps as mergeProps14 } from "@react-aria/utils";
3534
3554
  import { cn as cn42, useClassNames as useClassNames40, useStateProps as useStateProps14 } from "@marigold/system";
3535
- import { jsx as jsx79 } from "react/jsx-runtime";
3555
+ import { jsx as jsx80 } from "react/jsx-runtime";
3536
3556
  var TableRow = ({ children, row }) => {
3537
3557
  const ref = useRef22(null);
3538
3558
  const { interactive, state, ...ctx } = useTableContext();
@@ -3562,7 +3582,7 @@ var TableRow = ({ children, row }) => {
3562
3582
  focusVisible: isFocusVisible,
3563
3583
  active: isPressed
3564
3584
  });
3565
- return /* @__PURE__ */ jsx79(
3585
+ return /* @__PURE__ */ jsx80(
3566
3586
  "tr",
3567
3587
  {
3568
3588
  ref,
@@ -3593,7 +3613,7 @@ import {
3593
3613
  width as twWidth6,
3594
3614
  useStateProps as useStateProps15
3595
3615
  } from "@marigold/system";
3596
- import { jsx as jsx80 } from "react/jsx-runtime";
3616
+ import { jsx as jsx81 } from "react/jsx-runtime";
3597
3617
  var TableSelectAllCell = ({
3598
3618
  column,
3599
3619
  width = "auto"
@@ -3614,7 +3634,7 @@ var TableSelectAllCell = ({
3614
3634
  hover: isHovered,
3615
3635
  focusVisible: isFocusVisible
3616
3636
  });
3617
- return /* @__PURE__ */ jsx80(
3637
+ return /* @__PURE__ */ jsx81(
3618
3638
  "th",
3619
3639
  {
3620
3640
  ref,
@@ -3625,13 +3645,13 @@ var TableSelectAllCell = ({
3625
3645
  ),
3626
3646
  ...mergeProps15(columnHeaderProps, hoverProps, focusProps),
3627
3647
  ...stateProps,
3628
- children: /* @__PURE__ */ jsx80(_Checkbox, { ...checkboxProps })
3648
+ children: /* @__PURE__ */ jsx81(_Checkbox, { ...checkboxProps })
3629
3649
  }
3630
3650
  );
3631
3651
  };
3632
3652
 
3633
3653
  // src/Table/Table.tsx
3634
- import { jsx as jsx81, jsxs as jsxs33 } from "react/jsx-runtime";
3654
+ import { jsx as jsx82, jsxs as jsxs33 } from "react/jsx-runtime";
3635
3655
  var Table = ({
3636
3656
  variant,
3637
3657
  size,
@@ -3654,7 +3674,7 @@ var Table = ({
3654
3674
  size
3655
3675
  });
3656
3676
  const { collection } = state;
3657
- return /* @__PURE__ */ jsx81(
3677
+ return /* @__PURE__ */ jsx82(
3658
3678
  TableContext.Provider,
3659
3679
  {
3660
3680
  value: { state, interactive, classNames: classNames2, variant, size },
@@ -3670,17 +3690,17 @@ var Table = ({
3670
3690
  ),
3671
3691
  ...gridProps,
3672
3692
  children: [
3673
- /* @__PURE__ */ jsx81(TableHeader, { children: collection.headerRows.map((headerRow) => /* @__PURE__ */ jsx81(TableHeaderRow, { item: headerRow, children: [...collection.getChildren(headerRow.key)].map(
3693
+ /* @__PURE__ */ jsx82(TableHeader, { children: collection.headerRows.map((headerRow) => /* @__PURE__ */ jsx82(TableHeaderRow, { item: headerRow, children: [...collection.getChildren(headerRow.key)].map(
3674
3694
  (column) => {
3675
3695
  var _a, _b, _c;
3676
- return ((_a = column.props) == null ? void 0 : _a.isSelectionCell) ? /* @__PURE__ */ jsx81(
3696
+ return ((_a = column.props) == null ? void 0 : _a.isSelectionCell) ? /* @__PURE__ */ jsx82(
3677
3697
  TableSelectAllCell,
3678
3698
  {
3679
3699
  width: (_b = column.props) == null ? void 0 : _b.width,
3680
3700
  column
3681
3701
  },
3682
3702
  column.key
3683
- ) : /* @__PURE__ */ jsx81(
3703
+ ) : /* @__PURE__ */ jsx82(
3684
3704
  TableColumnHeader,
3685
3705
  {
3686
3706
  width: (_c = column.props) == null ? void 0 : _c.width,
@@ -3692,10 +3712,10 @@ var Table = ({
3692
3712
  ) }, headerRow.key)) }),
3693
3713
  /* @__PURE__ */ jsxs33(TableBody, { children: [
3694
3714
  ...collection.rows.map(
3695
- (row) => row.type === "item" && /* @__PURE__ */ jsx81(TableRow, { row, children: [...collection.getChildren(row.key)].map(
3715
+ (row) => row.type === "item" && /* @__PURE__ */ jsx82(TableRow, { row, children: [...collection.getChildren(row.key)].map(
3696
3716
  (cell) => {
3697
3717
  var _a;
3698
- return ((_a = cell.props) == null ? void 0 : _a.isSelectionCell) ? /* @__PURE__ */ jsx81(TableCheckboxCell, { cell }, cell.key) : /* @__PURE__ */ jsx81(TableCell, { cell }, cell.key);
3718
+ return ((_a = cell.props) == null ? void 0 : _a.isSelectionCell) ? /* @__PURE__ */ jsx82(TableCheckboxCell, { cell }, cell.key) : /* @__PURE__ */ jsx82(TableCell, { cell }, cell.key);
3699
3719
  }
3700
3720
  ) }, row.key)
3701
3721
  )
@@ -3725,7 +3745,7 @@ import {
3725
3745
  useClassNames as useClassNames42,
3726
3746
  useTheme as useTheme6
3727
3747
  } from "@marigold/system";
3728
- import { jsx as jsx82 } from "react/jsx-runtime";
3748
+ import { jsx as jsx83 } from "react/jsx-runtime";
3729
3749
  var Text2 = ({
3730
3750
  variant,
3731
3751
  size,
@@ -3744,7 +3764,7 @@ var Text2 = ({
3744
3764
  variant,
3745
3765
  size
3746
3766
  });
3747
- return /* @__PURE__ */ jsx82(
3767
+ return /* @__PURE__ */ jsx83(
3748
3768
  "p",
3749
3769
  {
3750
3770
  ...props,
@@ -3771,11 +3791,11 @@ var Text2 = ({
3771
3791
  };
3772
3792
 
3773
3793
  // src/TextArea/TextArea.tsx
3774
- import { forwardRef as forwardRef18 } from "react";
3794
+ import { forwardRef as forwardRef19 } from "react";
3775
3795
  import { TextArea, TextField } from "react-aria-components";
3776
3796
  import { useClassNames as useClassNames43 } from "@marigold/system";
3777
- import { jsx as jsx83 } from "react/jsx-runtime";
3778
- var _TextArea = forwardRef18(
3797
+ import { jsx as jsx84 } from "react/jsx-runtime";
3798
+ var _TextArea = forwardRef19(
3779
3799
  ({
3780
3800
  variant,
3781
3801
  size,
@@ -3794,15 +3814,15 @@ var _TextArea = forwardRef18(
3794
3814
  isRequired: required,
3795
3815
  ...rest
3796
3816
  };
3797
- return /* @__PURE__ */ jsx83(FieldBase2, { as: TextField, ...props, variant, size, children: /* @__PURE__ */ jsx83(TextArea, { className: classNames2, ref, rows }) });
3817
+ return /* @__PURE__ */ jsx84(FieldBase2, { as: TextField, ...props, variant, size, children: /* @__PURE__ */ jsx84(TextArea, { className: classNames2, ref, rows }) });
3798
3818
  }
3799
3819
  );
3800
3820
 
3801
3821
  // src/TextField/TextField.tsx
3802
- import { forwardRef as forwardRef19 } from "react";
3822
+ import { forwardRef as forwardRef20 } from "react";
3803
3823
  import { TextField as TextField2 } from "react-aria-components";
3804
- import { jsx as jsx84 } from "react/jsx-runtime";
3805
- var _TextField = forwardRef19(
3824
+ import { jsx as jsx85 } from "react/jsx-runtime";
3825
+ var _TextField = forwardRef20(
3806
3826
  ({
3807
3827
  variant,
3808
3828
  size,
@@ -3819,13 +3839,13 @@ var _TextField = forwardRef19(
3819
3839
  isRequired: required,
3820
3840
  ...rest
3821
3841
  };
3822
- return /* @__PURE__ */ jsx84(FieldBase2, { as: TextField2, ...props, children: /* @__PURE__ */ jsx84(_Input, { ref }) });
3842
+ return /* @__PURE__ */ jsx85(FieldBase2, { as: TextField2, ...props, children: /* @__PURE__ */ jsx85(_Input, { ref }) });
3823
3843
  }
3824
3844
  );
3825
3845
 
3826
3846
  // src/Tiles/Tiles.tsx
3827
3847
  import { cn as cn46, createVar as createVar10, gapSpace as gapSpace7 } from "@marigold/system";
3828
- import { jsx as jsx85 } from "react/jsx-runtime";
3848
+ import { jsx as jsx86 } from "react/jsx-runtime";
3829
3849
  var Tiles = ({
3830
3850
  space = 0,
3831
3851
  stretch = false,
@@ -3838,7 +3858,7 @@ var Tiles = ({
3838
3858
  if (stretch) {
3839
3859
  column = `minmax(${column}, 1fr)`;
3840
3860
  }
3841
- return /* @__PURE__ */ jsx85(
3861
+ return /* @__PURE__ */ jsx86(
3842
3862
  "div",
3843
3863
  {
3844
3864
  ...props,
@@ -3860,7 +3880,7 @@ import { cn as cn47, useClassNames as useClassNames44 } from "@marigold/system";
3860
3880
 
3861
3881
  // src/Tooltip/TooltipTrigger.tsx
3862
3882
  import { TooltipTrigger } from "react-aria-components";
3863
- import { jsx as jsx86 } from "react/jsx-runtime";
3883
+ import { jsx as jsx87 } from "react/jsx-runtime";
3864
3884
  var _TooltipTrigger = ({
3865
3885
  delay = 1e3,
3866
3886
  children,
@@ -3874,11 +3894,11 @@ var _TooltipTrigger = ({
3874
3894
  isOpen: open,
3875
3895
  delay
3876
3896
  };
3877
- return /* @__PURE__ */ jsx86(TooltipTrigger, { ...props, children });
3897
+ return /* @__PURE__ */ jsx87(TooltipTrigger, { ...props, children });
3878
3898
  };
3879
3899
 
3880
3900
  // src/Tooltip/Tooltip.tsx
3881
- import { jsx as jsx87, jsxs as jsxs34 } from "react/jsx-runtime";
3901
+ import { jsx as jsx88, jsxs as jsxs34 } from "react/jsx-runtime";
3882
3902
  var _Tooltip = ({ children, variant, size, open, ...rest }) => {
3883
3903
  const props = {
3884
3904
  ...rest,
@@ -3886,141 +3906,60 @@ var _Tooltip = ({ children, variant, size, open, ...rest }) => {
3886
3906
  };
3887
3907
  const classNames2 = useClassNames44({ component: "Tooltip", variant, size });
3888
3908
  return /* @__PURE__ */ jsxs34(Tooltip, { ...props, className: cn47("group/tooltip", classNames2.container), children: [
3889
- /* @__PURE__ */ jsx87(OverlayArrow, { className: classNames2.arrow, children: /* @__PURE__ */ jsx87("svg", { width: 8, height: 8, viewBox: "0 0 8 8", children: /* @__PURE__ */ jsx87("path", { d: "M0 0 L4 4 L8 0" }) }) }),
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" }) }) }),
3890
3910
  children
3891
3911
  ] });
3892
3912
  };
3893
3913
  _Tooltip.Trigger = _TooltipTrigger;
3894
3914
 
3895
- // src/TagGroup/index.ts
3896
- import { Item as Item6 } from "@react-stately/collections";
3897
-
3898
- // src/TagGroup/TagGroup.tsx
3899
- import { useRef as useRef26 } from "react";
3900
- import { useTagGroup } from "@react-aria/tag";
3901
- import { useListState } from "@react-stately/list";
3902
- import { useStateProps as useStateProps16 } from "@marigold/system";
3903
-
3904
3915
  // src/TagGroup/Tag.tsx
3905
- import React3, { useRef as useRef25 } from "react";
3906
- import { useButton as useButton4 } from "@react-aria/button";
3907
- import { useFocusRing as useFocusRing12 } from "@react-aria/focus";
3908
- import { useTag } from "@react-aria/tag";
3909
- import { mergeProps as mergeProps16 } from "@react-aria/utils";
3910
- import { cn as cn48, useClassNames as useClassNames45 } from "@marigold/system";
3911
- import { jsx as jsx88, jsxs as jsxs35 } from "react/jsx-runtime";
3912
- var CloseButton2 = ({ className, ...props }) => {
3913
- const ref = useRef25(null);
3914
- const { buttonProps } = useButton4({ ...props }, ref);
3915
- return /* @__PURE__ */ jsx88("button", { className, ...buttonProps, children: /* @__PURE__ */ jsx88("svg", { viewBox: "0 0 20 20", fill: "currentColor", width: 20, height: 20, children: /* @__PURE__ */ jsx88("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" }) }) });
3916
- };
3917
- var Tag = ({ variant, size, item, state, ...rest }) => {
3918
- const props = {
3919
- item,
3920
- ...rest
3921
- };
3922
- let ref = React3.useRef(null);
3923
- let { focusProps } = useFocusRing12({ within: true });
3924
- const { rowProps, gridCellProps, allowsRemoving, removeButtonProps } = useTag(
3925
- {
3926
- ...props,
3927
- item
3928
- },
3929
- state,
3930
- ref
3931
- );
3932
- const classNames2 = useClassNames45({ component: "Tag", variant, size });
3933
- return /* @__PURE__ */ jsx88(
3934
- "span",
3935
- {
3936
- ref,
3937
- ...mergeProps16(rowProps, focusProps),
3938
- className: classNames2.tag,
3939
- children: /* @__PURE__ */ jsxs35("div", { ...gridCellProps, className: classNames2.gridCell, children: [
3940
- /* @__PURE__ */ jsx88("span", { children: item.rendered }),
3941
- allowsRemoving && /* @__PURE__ */ jsx88(
3942
- CloseButton2,
3943
- {
3944
- ...removeButtonProps,
3945
- className: cn48("flex items-center", classNames2.closeButton)
3946
- }
3947
- )
3948
- ] })
3949
- }
3950
- );
3951
- };
3916
+ import { Button as Button3, Tag } from "react-aria-components";
3917
+ import { cn as cn48, useClassNames as useClassNames46 } from "@marigold/system";
3952
3918
 
3953
3919
  // src/TagGroup/TagGroup.tsx
3920
+ import { TagGroup, TagList } from "react-aria-components";
3921
+ import { useClassNames as useClassNames45 } from "@marigold/system";
3954
3922
  import { jsx as jsx89 } from "react/jsx-runtime";
3955
- import { createElement } from "react";
3956
- var TagGroup = ({
3923
+ var _TagGroup = ({
3957
3924
  width,
3958
- required,
3959
- error,
3960
- allowsRemoving,
3925
+ items,
3926
+ children,
3927
+ variant,
3928
+ size,
3961
3929
  ...rest
3962
3930
  }) => {
3963
- const props = {
3964
- isRequired: required,
3965
- validationState: error ? "invalid" : "valid",
3966
- ...rest
3967
- };
3968
- const inputRef = useRef26(null);
3969
- const state = useListState(props);
3970
- const { gridProps, labelProps, descriptionProps, errorMessageProps } = useTagGroup(props, state, inputRef);
3971
- const stateProps = useStateProps16({
3972
- error,
3973
- required
3974
- });
3975
- return /* @__PURE__ */ jsx89(
3976
- FieldBase,
3977
- {
3978
- width,
3979
- label: props.label,
3980
- labelProps,
3981
- description: props.description,
3982
- descriptionProps,
3983
- error,
3984
- errorMessage: props.errorMessage,
3985
- errorMessageProps,
3986
- stateProps,
3987
- ...gridProps,
3988
- children: /* @__PURE__ */ jsx89(
3989
- "div",
3990
- {
3991
- role: "presentation",
3992
- ref: inputRef,
3993
- className: "flex flex-wrap items-start gap-1",
3994
- children: [...state.collection].map((item) => /* @__PURE__ */ createElement(
3995
- Tag,
3996
- {
3997
- ...item.props,
3998
- key: item.key,
3999
- item,
4000
- state,
4001
- allowsRemoving,
4002
- onRemove: props.onRemove
4003
- },
4004
- item.rendered
4005
- ))
4006
- }
4007
- )
4008
- }
4009
- );
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 }) });
4010
3933
  };
4011
3934
 
4012
- // src/TagGroup/index.ts
4013
- var Tag2 = Item6;
4014
- 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;
4015
3954
 
4016
3955
  // src/VisuallyHidden/VisuallyHidden.tsx
4017
3956
  import { VisuallyHidden } from "@react-aria/visually-hidden";
4018
3957
 
4019
3958
  // src/XLoader/XLoader.tsx
4020
- import { forwardRef as forwardRef20 } from "react";
3959
+ import { forwardRef as forwardRef21 } from "react";
4021
3960
  import { SVG as SVG6 } from "@marigold/system";
4022
- import { jsx as jsx90, jsxs as jsxs36 } from "react/jsx-runtime";
4023
- var XLoader = forwardRef20((props, ref) => /* @__PURE__ */ jsxs36(
3961
+ import { jsx as jsx91, jsxs as jsxs36 } from "react/jsx-runtime";
3962
+ var XLoader = forwardRef21((props, ref) => /* @__PURE__ */ jsxs36(
4024
3963
  SVG6,
4025
3964
  {
4026
3965
  id: "XLoader",
@@ -4030,13 +3969,13 @@ var XLoader = forwardRef20((props, ref) => /* @__PURE__ */ jsxs36(
4030
3969
  ...props,
4031
3970
  ...ref,
4032
3971
  children: [
4033
- /* @__PURE__ */ jsx90("path", { id: "XMLID_1_", d: "M35.3 27h26.5l54 74.1H88.7z" }),
4034
- /* @__PURE__ */ jsx90(
3972
+ /* @__PURE__ */ jsx91("path", { id: "XMLID_1_", d: "M35.3 27h26.5l54 74.1H88.7z" }),
3973
+ /* @__PURE__ */ jsx91(
4035
3974
  "path",
4036
3975
  {
4037
3976
  id: "XMLID_5_",
4038
3977
  d: "M124.3 12.8h-.7c-2.7 0-4.9-2.2-4.9-4.9v-.7c0-2.7 2.2-4.9 4.9-4.9h.7c2.7 0 4.9 2.2 4.9 4.9v.7c0 2.7-2.2 4.9-4.9 4.9z",
4039
- children: /* @__PURE__ */ jsx90(
3978
+ children: /* @__PURE__ */ jsx91(
4040
3979
  "animate",
4041
3980
  {
4042
3981
  attributeName: "opacity",
@@ -4049,12 +3988,12 @@ var XLoader = forwardRef20((props, ref) => /* @__PURE__ */ jsxs36(
4049
3988
  )
4050
3989
  }
4051
3990
  ),
4052
- /* @__PURE__ */ jsx90(
3991
+ /* @__PURE__ */ jsx91(
4053
3992
  "path",
4054
3993
  {
4055
3994
  id: "XMLID_18_",
4056
3995
  d: "M115.9 24.4h-.7c-2.7 0-4.9-2.2-4.9-4.9v-.7c0-2.7 2.2-4.9 4.9-4.9h.7c2.7 0 4.9 2.2 4.9 4.9v.7c0 2.7-2.2 4.9-4.9 4.9z",
4057
- children: /* @__PURE__ */ jsx90(
3996
+ children: /* @__PURE__ */ jsx91(
4058
3997
  "animate",
4059
3998
  {
4060
3999
  attributeName: "opacity",
@@ -4067,12 +4006,12 @@ var XLoader = forwardRef20((props, ref) => /* @__PURE__ */ jsxs36(
4067
4006
  )
4068
4007
  }
4069
4008
  ),
4070
- /* @__PURE__ */ jsx90(
4009
+ /* @__PURE__ */ jsx91(
4071
4010
  "path",
4072
4011
  {
4073
4012
  id: "XMLID_19_",
4074
4013
  d: "M107.5 35.9h-.7c-2.7 0-4.9-2.2-4.9-4.9v-.7c0-2.7 2.2-4.9 4.9-4.9h.7c2.7 0 4.9 2.2 4.9 4.9v.7c0 2.7-2.2 4.9-4.9 4.9z",
4075
- children: /* @__PURE__ */ jsx90(
4014
+ children: /* @__PURE__ */ jsx91(
4076
4015
  "animate",
4077
4016
  {
4078
4017
  attributeName: "opacity",
@@ -4085,12 +4024,12 @@ var XLoader = forwardRef20((props, ref) => /* @__PURE__ */ jsxs36(
4085
4024
  )
4086
4025
  }
4087
4026
  ),
4088
- /* @__PURE__ */ jsx90(
4027
+ /* @__PURE__ */ jsx91(
4089
4028
  "path",
4090
4029
  {
4091
4030
  id: "XMLID_20_",
4092
4031
  d: "M99.1 47.5h-.7c-2.7 0-4.9-2.2-4.9-4.9v-.7c0-2.7 2.2-4.9 4.9-4.9h.7c2.7 0 4.9 2.2 4.9 4.9v.7c0 2.7-2.2 4.9-4.9 4.9z",
4093
- children: /* @__PURE__ */ jsx90(
4032
+ children: /* @__PURE__ */ jsx91(
4094
4033
  "animate",
4095
4034
  {
4096
4035
  attributeName: "opacity",
@@ -4103,12 +4042,12 @@ var XLoader = forwardRef20((props, ref) => /* @__PURE__ */ jsxs36(
4103
4042
  )
4104
4043
  }
4105
4044
  ),
4106
- /* @__PURE__ */ jsx90(
4045
+ /* @__PURE__ */ jsx91(
4107
4046
  "path",
4108
4047
  {
4109
4048
  id: "XMLID_21_",
4110
4049
  d: "M90.7 59H90c-2.7 0-4.9-2.2-4.9-4.9v-.7c0-2.7 2.2-4.9 4.9-4.9h.7c2.7 0 4.9 2.2 4.9 4.9v.7c0 2.8-2.2 4.9-4.9 4.9z",
4111
- children: /* @__PURE__ */ jsx90(
4050
+ children: /* @__PURE__ */ jsx91(
4112
4051
  "animate",
4113
4052
  {
4114
4053
  attributeName: "opacity",
@@ -4121,12 +4060,12 @@ var XLoader = forwardRef20((props, ref) => /* @__PURE__ */ jsxs36(
4121
4060
  )
4122
4061
  }
4123
4062
  ),
4124
- /* @__PURE__ */ jsx90(
4063
+ /* @__PURE__ */ jsx91(
4125
4064
  "path",
4126
4065
  {
4127
4066
  id: "XMLID_22_",
4128
4067
  d: "M68 89.8h-.7c-2.7 0-4.9-2.2-4.9-4.9v-.7c0-2.7 2.2-4.9 4.9-4.9h.7c2.7 0 4.9 2.2 4.9 4.9v.8c0 2.6-2.2 4.8-4.9 4.8z",
4129
- children: /* @__PURE__ */ jsx90(
4068
+ children: /* @__PURE__ */ jsx91(
4130
4069
  "animate",
4131
4070
  {
4132
4071
  attributeName: "opacity",
@@ -4139,12 +4078,12 @@ var XLoader = forwardRef20((props, ref) => /* @__PURE__ */ jsxs36(
4139
4078
  )
4140
4079
  }
4141
4080
  ),
4142
- /* @__PURE__ */ jsx90(
4081
+ /* @__PURE__ */ jsx91(
4143
4082
  "path",
4144
4083
  {
4145
4084
  id: "XMLID_23_",
4146
4085
  d: "M59.6 101.4h-.7c-2.7 0-4.9-2.2-4.9-4.9v-.7c0-2.7 2.2-4.9 4.9-4.9h.7c2.7 0 4.9 2.2 4.9 4.9v.7c0 2.7-2.2 4.9-4.9 4.9z",
4147
- children: /* @__PURE__ */ jsx90(
4086
+ children: /* @__PURE__ */ jsx91(
4148
4087
  "animate",
4149
4088
  {
4150
4089
  attributeName: "opacity",
@@ -4157,12 +4096,12 @@ var XLoader = forwardRef20((props, ref) => /* @__PURE__ */ jsxs36(
4157
4096
  )
4158
4097
  }
4159
4098
  ),
4160
- /* @__PURE__ */ jsx90(
4099
+ /* @__PURE__ */ jsx91(
4161
4100
  "path",
4162
4101
  {
4163
4102
  id: "XMLID_24_",
4164
4103
  d: "M51.2 112.9h-.7c-2.7 0-4.9-2.2-4.9-4.9v-.7c0-2.7 2.2-4.9 4.9-4.9h.7c2.7 0 4.9 2.2 4.9 4.9v.7c-.1 2.8-2.2 4.9-4.9 4.9z",
4165
- children: /* @__PURE__ */ jsx90(
4104
+ children: /* @__PURE__ */ jsx91(
4166
4105
  "animate",
4167
4106
  {
4168
4107
  attributeName: "opacity",
@@ -4175,12 +4114,12 @@ var XLoader = forwardRef20((props, ref) => /* @__PURE__ */ jsxs36(
4175
4114
  )
4176
4115
  }
4177
4116
  ),
4178
- /* @__PURE__ */ jsx90(
4117
+ /* @__PURE__ */ jsx91(
4179
4118
  "path",
4180
4119
  {
4181
4120
  id: "XMLID_25_",
4182
4121
  d: "M42.8 124.5h-.7c-2.7 0-4.9-2.2-4.9-4.9v-.7c0-2.7 2.2-4.9 4.9-4.9h.7c2.7 0 4.9 2.2 4.9 4.9v.7c-.1 2.7-2.2 4.9-4.9 4.9z",
4183
- children: /* @__PURE__ */ jsx90(
4122
+ children: /* @__PURE__ */ jsx91(
4184
4123
  "animate",
4185
4124
  {
4186
4125
  attributeName: "opacity",
@@ -4193,12 +4132,12 @@ var XLoader = forwardRef20((props, ref) => /* @__PURE__ */ jsxs36(
4193
4132
  )
4194
4133
  }
4195
4134
  ),
4196
- /* @__PURE__ */ jsx90(
4135
+ /* @__PURE__ */ jsx91(
4197
4136
  "path",
4198
4137
  {
4199
4138
  id: "XMLID_26_",
4200
4139
  d: "M34.4 136h-.7c-2.7 0-4.9-2.2-4.9-4.9v-.7c0-2.7 2.2-4.9 4.9-4.9h.7c2.7 0 4.9 2.2 4.9 4.9v.7c-.1 2.7-2.2 4.9-4.9 4.9z",
4201
- children: /* @__PURE__ */ jsx90(
4140
+ children: /* @__PURE__ */ jsx91(
4202
4141
  "animate",
4203
4142
  {
4204
4143
  attributeName: "opacity",
@@ -4211,12 +4150,12 @@ var XLoader = forwardRef20((props, ref) => /* @__PURE__ */ jsxs36(
4211
4150
  )
4212
4151
  }
4213
4152
  ),
4214
- /* @__PURE__ */ jsx90(
4153
+ /* @__PURE__ */ jsx91(
4215
4154
  "path",
4216
4155
  {
4217
4156
  id: "XMLID_27_",
4218
4157
  d: "M26 147.6h-.7c-2.7 0-4.9-2.2-4.9-4.9v-.7c0-2.7 2.2-4.9 4.9-4.9h.7c2.7 0 4.9 2.2 4.9 4.9v.7c-.1 2.8-2.2 4.9-4.9 4.9z",
4219
- children: /* @__PURE__ */ jsx90(
4158
+ children: /* @__PURE__ */ jsx91(
4220
4159
  "animate",
4221
4160
  {
4222
4161
  attributeName: "opacity",
@@ -4234,11 +4173,8 @@ var XLoader = forwardRef20((props, ref) => /* @__PURE__ */ jsxs36(
4234
4173
  ));
4235
4174
 
4236
4175
  // src/Tabs/Tabs.tsx
4237
- import { useRef as useRef29 } from "react";
4238
- import { useTabList } from "@react-aria/tabs";
4239
- import { Item as Item7 } from "@react-stately/collections";
4240
- import { useTabListState } from "@react-stately/tabs";
4241
- import { cn as cn51, gapSpace as gapSpace8, useClassNames as useClassNames46 } from "@marigold/system";
4176
+ import { Tabs } from "react-aria-components";
4177
+ import { useClassNames as useClassNames47 } from "@marigold/system";
4242
4178
 
4243
4179
  // src/Tabs/Context.ts
4244
4180
  import { createContext as createContext7, useContext as useContext8 } from "react";
@@ -4246,89 +4182,65 @@ var TabContext = createContext7({});
4246
4182
  var useTabContext = () => useContext8(TabContext);
4247
4183
 
4248
4184
  // src/Tabs/Tab.tsx
4249
- import { useRef as useRef27 } from "react";
4250
- import { useFocus, useHover as useHover7 } from "@react-aria/interactions";
4251
- import { useTab } from "@react-aria/tabs";
4252
- import { mergeProps as mergeProps17 } from "@react-aria/utils";
4253
- import { cn as cn49, useStateProps as useStateProps17 } from "@marigold/system";
4254
- import { jsx as jsx91 } from "react/jsx-runtime";
4255
- var Tab = ({ item, state }) => {
4256
- const { key, rendered } = item;
4257
- const ref = useRef27(null);
4258
- const { tabProps, isSelected } = useTab({ key }, state, ref);
4259
- const disabled = tabProps["aria-disabled"];
4260
- const { hoverProps, isHovered } = useHover7({
4261
- isDisabled: disabled || isSelected
4262
- });
4263
- const { focusProps } = useFocus({});
4264
- const stateProps = useStateProps17({ active: isSelected, hover: isHovered });
4185
+ import { Tab } from "react-aria-components";
4186
+ import { cn as cn49 } from "@marigold/system";
4187
+ import { jsx as jsx92 } from "react/jsx-runtime";
4188
+ var _Tab = (props) => {
4265
4189
  const { classNames: classNames2 } = useTabContext();
4266
- return /* @__PURE__ */ jsx91(
4267
- "div",
4190
+ return /* @__PURE__ */ jsx92(
4191
+ Tab,
4268
4192
  {
4193
+ ...props,
4269
4194
  className: cn49(
4270
4195
  "flex cursor-pointer justify-center aria-disabled:cursor-not-allowed",
4271
4196
  classNames2.tab
4272
4197
  ),
4273
- ...mergeProps17(tabProps, stateProps, focusProps, hoverProps),
4274
- ref,
4275
- children: rendered
4198
+ children: props.children
4199
+ }
4200
+ );
4201
+ };
4202
+
4203
+ // src/Tabs/TabList.tsx
4204
+ import { TabList } from "react-aria-components";
4205
+ import { cn as cn50, gapSpace as gapSpace8 } from "@marigold/system";
4206
+ import { jsx as jsx93 } from "react/jsx-runtime";
4207
+ var _TabList = ({ space = 2, ...props }) => {
4208
+ const { classNames: classNames2 } = useTabContext();
4209
+ return /* @__PURE__ */ jsx93(
4210
+ TabList,
4211
+ {
4212
+ ...props,
4213
+ className: cn50("flex", gapSpace8[space], classNames2.tabsList),
4214
+ children: props.children
4276
4215
  }
4277
4216
  );
4278
4217
  };
4279
4218
 
4280
4219
  // src/Tabs/TabPanel.tsx
4281
- import { useRef as useRef28 } from "react";
4282
- import { useTabPanel } from "@react-aria/tabs";
4283
- import { cn as cn50 } from "@marigold/system";
4284
- import { jsx as jsx92 } from "react/jsx-runtime";
4285
- var TabPanel = ({ state, ...props }) => {
4286
- var _a;
4287
- const ref = useRef28(null);
4288
- const { tabPanelProps } = useTabPanel(props, state, ref);
4289
- const selectedItemProps = (_a = state.selectedItem) == null ? void 0 : _a.props;
4220
+ import { TabPanel } from "react-aria-components";
4221
+ import { jsx as jsx94 } from "react/jsx-runtime";
4222
+ var _TabPanel = (props) => {
4290
4223
  const { classNames: classNames2 } = useTabContext();
4291
- return /* @__PURE__ */ jsx92("div", { className: cn50(classNames2.tabpanel), ref, ...tabPanelProps, children: selectedItemProps == null ? void 0 : selectedItemProps.children });
4224
+ return /* @__PURE__ */ jsx94(TabPanel, { ...props, className: classNames2.tabpanel, children: props.children });
4292
4225
  };
4293
4226
 
4294
4227
  // src/Tabs/Tabs.tsx
4295
- import { jsx as jsx93, jsxs as jsxs37 } from "react/jsx-runtime";
4296
- var Tabs = ({
4297
- space = 2,
4298
- size = "medium",
4299
- disabled,
4300
- variant,
4301
- ...rest
4302
- }) => {
4303
- var _a;
4304
- const ref = useRef29(null);
4228
+ import { jsx as jsx95 } from "react/jsx-runtime";
4229
+ var _Tabs = ({ disabled, variant, size = "medium", ...rest }) => {
4305
4230
  const props = {
4306
4231
  isDisabled: disabled,
4307
4232
  ...rest
4308
4233
  };
4309
- const state = useTabListState(props);
4310
- const { tabListProps } = useTabList(props, state, ref);
4311
- const classNames2 = useClassNames46({
4234
+ const classNames2 = useClassNames47({
4312
4235
  component: "Tabs",
4313
4236
  size,
4314
4237
  variant
4315
4238
  });
4316
- return /* @__PURE__ */ jsx93(TabContext.Provider, { value: { classNames: classNames2 }, children: /* @__PURE__ */ jsxs37("div", { className: cn51(classNames2.container), children: [
4317
- /* @__PURE__ */ jsx93(
4318
- "div",
4319
- {
4320
- className: cn51("flex", gapSpace8[space], classNames2.tabs),
4321
- ...tabListProps,
4322
- ref,
4323
- children: [...state.collection].map((item) => {
4324
- return /* @__PURE__ */ jsx93(Tab, { item, state }, item.key);
4325
- })
4326
- }
4327
- ),
4328
- /* @__PURE__ */ jsx93(TabPanel, { state }, (_a = state.selectedItem) == null ? void 0 : _a.key)
4329
- ] }) });
4239
+ return /* @__PURE__ */ jsx95(TabContext.Provider, { value: { classNames: classNames2 }, children: /* @__PURE__ */ jsx95(Tabs, { ...props, className: classNames2.container, children: props.children }) });
4330
4240
  };
4331
- Tabs.Item = Item7;
4241
+ _Tabs.List = _TabList;
4242
+ _Tabs.TabPanel = _TabPanel;
4243
+ _Tabs.Item = _Tab;
4332
4244
  export {
4333
4245
  Accordion,
4334
4246
  AccordionItem,
@@ -4347,6 +4259,7 @@ export {
4347
4259
  Center,
4348
4260
  _Checkbox as Checkbox,
4349
4261
  _CheckboxGroup as CheckboxGroup,
4262
+ CloseButton2 as CloseButton,
4350
4263
  Columns,
4351
4264
  ComboBox,
4352
4265
  Container,
@@ -4376,14 +4289,15 @@ export {
4376
4289
  Popover,
4377
4290
  _Radio as Radio,
4378
4291
  _RadioGroup as RadioGroup,
4292
+ _SearchField as SearchField,
4379
4293
  Select,
4380
4294
  _Slider as Slider,
4381
4295
  Split,
4382
4296
  Stack,
4383
4297
  _Switch as Switch,
4384
4298
  Table,
4385
- Tabs,
4386
- Tag2 as Tag,
4299
+ _Tabs as Tabs,
4300
+ _Tag as Tag,
4387
4301
  Text2 as Text,
4388
4302
  _TextArea as TextArea,
4389
4303
  _TextField as TextField,
@@ -4395,8 +4309,6 @@ export {
4395
4309
  Underlay,
4396
4310
  VisuallyHidden,
4397
4311
  XLoader,
4398
- _Slider,
4399
- _TextArea,
4400
4312
  useAsyncList,
4401
4313
  useFieldGroupContext,
4402
4314
  useListData,