@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.js CHANGED
@@ -47,6 +47,7 @@ __export(src_exports, {
47
47
  Center: () => Center,
48
48
  Checkbox: () => _Checkbox,
49
49
  CheckboxGroup: () => _CheckboxGroup,
50
+ CloseButton: () => CloseButton2,
50
51
  Columns: () => Columns,
51
52
  ComboBox: () => ComboBox,
52
53
  Container: () => Container,
@@ -76,14 +77,15 @@ __export(src_exports, {
76
77
  Popover: () => Popover,
77
78
  Radio: () => _Radio,
78
79
  RadioGroup: () => _RadioGroup,
80
+ SearchField: () => _SearchField,
79
81
  Select: () => Select,
80
82
  Slider: () => _Slider,
81
83
  Split: () => Split,
82
84
  Stack: () => Stack,
83
85
  Switch: () => _Switch,
84
86
  Table: () => Table,
85
- Tabs: () => Tabs,
86
- Tag: () => Tag2,
87
+ Tabs: () => _Tabs,
88
+ Tag: () => _Tag,
87
89
  Text: () => Text2,
88
90
  TextArea: () => _TextArea,
89
91
  TextField: () => _TextField,
@@ -95,8 +97,6 @@ __export(src_exports, {
95
97
  Underlay: () => Underlay,
96
98
  VisuallyHidden: () => import_visually_hidden.VisuallyHidden,
97
99
  XLoader: () => XLoader,
98
- _Slider: () => _Slider,
99
- _TextArea: () => _TextArea,
100
100
  useAsyncList: () => import_data.useAsyncList,
101
101
  useFieldGroupContext: () => useFieldGroupContext,
102
102
  useListData: () => import_data.useListData,
@@ -353,7 +353,6 @@ var Aside = ({
353
353
  sideWidth,
354
354
  space = 0,
355
355
  side = "left",
356
- stretch = true,
357
356
  wrap = "50%"
358
357
  }) => {
359
358
  const [left, right] = import_react5.Children.toArray(children);
@@ -361,34 +360,24 @@ var Aside = ({
361
360
  aside: (0, import_system4.createVar)({ sideWidth }),
362
361
  content: (0, import_system4.createVar)({ wrap })
363
362
  };
364
- return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
365
- "div",
366
- {
367
- className: (0, import_system4.cn)(
368
- "flex flex-wrap",
369
- import_system4.gapSpace[space],
370
- !stretch && "items-start"
371
- ),
372
- children: [
373
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
374
- "div",
375
- {
376
- className: classNames[side === "left" ? "aside" : "content"],
377
- style: vars[side === "left" ? "aside" : "content"],
378
- children: left
379
- }
380
- ),
381
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
382
- "div",
383
- {
384
- className: classNames[side === "right" ? "aside" : "content"],
385
- style: vars[side === "right" ? "aside" : "content"],
386
- children: right
387
- }
388
- )
389
- ]
390
- }
391
- );
363
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: (0, import_system4.cn)("flex flex-wrap", import_system4.gapSpace[space]), children: [
364
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
365
+ "div",
366
+ {
367
+ className: classNames[side === "left" ? "aside" : "content"],
368
+ style: vars[side === "left" ? "aside" : "content"],
369
+ children: left
370
+ }
371
+ ),
372
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
373
+ "div",
374
+ {
375
+ className: classNames[side === "right" ? "aside" : "content"],
376
+ style: vars[side === "right" ? "aside" : "content"],
377
+ children: right
378
+ }
379
+ )
380
+ ] });
392
381
  };
393
382
 
394
383
  // src/Aspect/Aspect.tsx
@@ -614,7 +603,7 @@ var Input = (0, import_react7.forwardRef)(
614
603
  }
615
604
  );
616
605
 
617
- // src/ListBox/ListBox.tsx
606
+ // src/ListBox/_ListBox.tsx
618
607
  var import_react10 = require("react");
619
608
  var import_listbox3 = require("@react-aria/listbox");
620
609
  var import_utils6 = require("@react-aria/utils");
@@ -625,7 +614,7 @@ var import_react8 = require("react");
625
614
  var ListBoxContext = (0, import_react8.createContext)({});
626
615
  var useListBoxContext = () => (0, import_react8.useContext)(ListBoxContext);
627
616
 
628
- // src/ListBox/ListBoxOption.tsx
617
+ // src/ListBox/_ListBoxOption.tsx
629
618
  var import_react9 = require("react");
630
619
  var import_listbox = require("@react-aria/listbox");
631
620
  var import_utils5 = require("@react-aria/utils");
@@ -658,7 +647,7 @@ var ListBoxOption = ({ item, state }) => {
658
647
  );
659
648
  };
660
649
 
661
- // src/ListBox/ListBoxSection.tsx
650
+ // src/ListBox/_ListBoxSection.tsx
662
651
  var import_listbox2 = require("@react-aria/listbox");
663
652
  var import_jsx_runtime13 = require("react/jsx-runtime");
664
653
  var ListBoxSection = ({ section, state }) => {
@@ -673,7 +662,7 @@ var ListBoxSection = ({ section, state }) => {
673
662
  ] });
674
663
  };
675
664
 
676
- // src/ListBox/ListBox.tsx
665
+ // src/ListBox/_ListBox.tsx
677
666
  var import_jsx_runtime14 = require("react/jsx-runtime");
678
667
  var ListBox = (0, import_react10.forwardRef)(
679
668
  ({ state, variant, size, ...props }, ref) => {
@@ -782,7 +771,7 @@ var Overlay = ({ children, container, open }) => {
782
771
  ) });
783
772
  };
784
773
 
785
- // src/Overlay/Popover.tsx
774
+ // src/Overlay/_Popover.tsx
786
775
  var import_react13 = require("react");
787
776
  var import_focus2 = require("@react-aria/focus");
788
777
  var import_overlays2 = require("@react-aria/overlays");
@@ -1414,7 +1403,6 @@ var HelpText2 = ({
1414
1403
  description,
1415
1404
  error,
1416
1405
  errorMessage,
1417
- isInvalid,
1418
1406
  ...props
1419
1407
  }) => {
1420
1408
  const hasErrorMessage = errorMessage && error;
@@ -1660,6 +1648,7 @@ var _DialogTrigger = ({
1660
1648
  open,
1661
1649
  dismissable,
1662
1650
  keyboardDismissable,
1651
+ isNonModal,
1663
1652
  ...rest
1664
1653
  }) => {
1665
1654
  const props = {
@@ -1670,6 +1659,8 @@ var _DialogTrigger = ({
1670
1659
  const [dialogTrigger, dialog] = children;
1671
1660
  const hasDialogTrigger = dialogTrigger.type !== _Dialog;
1672
1661
  const currentDialog = children.length < 2 ? !hasDialogTrigger && dialogTrigger : dialog;
1662
+ if (isNonModal)
1663
+ return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_react_aria_components9.DialogTrigger, { ...props, children: props.children });
1673
1664
  return /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(import_react_aria_components9.DialogTrigger, { ...props, children: [
1674
1665
  hasDialogTrigger && dialogTrigger,
1675
1666
  /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
@@ -3055,8 +3046,37 @@ var _Radio = (0, import_react40.forwardRef)(
3055
3046
  );
3056
3047
  _Radio.Group = _RadioGroup;
3057
3048
 
3058
- // src/Select/Select.tsx
3049
+ // src/SearchField/SearchField.tsx
3059
3050
  var import_react41 = require("react");
3051
+ var import_react_aria_components19 = require("react-aria-components");
3052
+ var import_jsx_runtime68 = require("react/jsx-runtime");
3053
+ var SearchIcon2 = (props) => /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
3054
+ "svg",
3055
+ {
3056
+ xmlns: "http://www.w3.org/2000/svg",
3057
+ viewBox: "0 0 24 24",
3058
+ fill: "currentColor",
3059
+ width: 24,
3060
+ height: 24,
3061
+ ...props,
3062
+ children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("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" })
3063
+ }
3064
+ );
3065
+ var _SearchField = (0, import_react41.forwardRef)(
3066
+ ({ disabled, required, readOnly, error, action, ...rest }, ref) => {
3067
+ const props = {
3068
+ ...rest,
3069
+ isDisabled: disabled,
3070
+ isRequired: required,
3071
+ isReadOnly: readOnly,
3072
+ isInvalid: error
3073
+ };
3074
+ return /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(FieldBase2, { as: import_react_aria_components19.SearchField, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(_Input, { ref, icon: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(SearchIcon2, {}) }) });
3075
+ }
3076
+ );
3077
+
3078
+ // src/Select/Select.tsx
3079
+ var import_react42 = require("react");
3060
3080
  var import_button3 = require("@react-aria/button");
3061
3081
  var import_focus8 = require("@react-aria/focus");
3062
3082
  var import_i18n8 = require("@react-aria/i18n");
@@ -3077,8 +3097,8 @@ var messages = {
3077
3097
  };
3078
3098
 
3079
3099
  // src/Select/Select.tsx
3080
- var import_jsx_runtime68 = require("react/jsx-runtime");
3081
- var Select = (0, import_react41.forwardRef)(
3100
+ var import_jsx_runtime69 = require("react/jsx-runtime");
3101
+ var Select = (0, import_react42.forwardRef)(
3082
3102
  ({
3083
3103
  variant,
3084
3104
  size,
@@ -3101,7 +3121,7 @@ var Select = (0, import_react41.forwardRef)(
3101
3121
  ...rest
3102
3122
  };
3103
3123
  const buttonRef = (0, import_utils16.useObjectRef)(ref);
3104
- const listboxRef = (0, import_react41.useRef)(null);
3124
+ const listboxRef = (0, import_react42.useRef)(null);
3105
3125
  const state = (0, import_select2.useSelectState)(props);
3106
3126
  const {
3107
3127
  labelProps,
@@ -3125,7 +3145,7 @@ var Select = (0, import_react41.forwardRef)(
3125
3145
  expanded: state.isOpen,
3126
3146
  required
3127
3147
  });
3128
- return /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)(
3148
+ return /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
3129
3149
  FieldBase,
3130
3150
  {
3131
3151
  variant,
@@ -3141,7 +3161,7 @@ var Select = (0, import_react41.forwardRef)(
3141
3161
  stateProps,
3142
3162
  disabled,
3143
3163
  children: [
3144
- /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
3164
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
3145
3165
  import_select.HiddenSelect,
3146
3166
  {
3147
3167
  state,
@@ -3151,7 +3171,7 @@ var Select = (0, import_react41.forwardRef)(
3151
3171
  isDisabled: disabled
3152
3172
  }
3153
3173
  ),
3154
- /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)(
3174
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
3155
3175
  "button",
3156
3176
  {
3157
3177
  className: (0, import_system58.cn)(
@@ -3162,12 +3182,12 @@ var Select = (0, import_react41.forwardRef)(
3162
3182
  ...(0, import_utils16.mergeProps)(buttonProps, focusProps),
3163
3183
  ...stateProps,
3164
3184
  children: [
3165
- /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("div", { className: "overflow-hidden whitespace-nowrap", ...valueProps, children: state.selectedItem ? state.selectedItem.rendered : props.placeholder }),
3166
- /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(ChevronDown, { className: "h-4 w-4" })
3185
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("div", { className: "overflow-hidden whitespace-nowrap", ...valueProps, children: state.selectedItem ? state.selectedItem.rendered : props.placeholder }),
3186
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(ChevronDown, { className: "h-4 w-4" })
3167
3187
  ]
3168
3188
  }
3169
3189
  ),
3170
- isSmallScreen ? /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(Tray, { state, children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
3190
+ isSmallScreen ? /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(Tray, { state, children: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
3171
3191
  ListBox,
3172
3192
  {
3173
3193
  ref: listboxRef,
@@ -3176,7 +3196,7 @@ var Select = (0, import_react41.forwardRef)(
3176
3196
  size,
3177
3197
  ...menuProps
3178
3198
  }
3179
- ) }) : /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(Popover, { state, triggerRef: buttonRef, scrollRef: listboxRef, children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
3199
+ ) }) : /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(Popover, { state, triggerRef: buttonRef, scrollRef: listboxRef, children: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
3180
3200
  ListBox,
3181
3201
  {
3182
3202
  ref: listboxRef,
@@ -3195,11 +3215,11 @@ Select.Option = import_collections5.Item;
3195
3215
  Select.Section = import_collections5.Section;
3196
3216
 
3197
3217
  // src/Slider/Slider.tsx
3198
- var import_react42 = require("react");
3199
- var import_react_aria_components19 = require("react-aria-components");
3218
+ var import_react43 = require("react");
3219
+ var import_react_aria_components20 = require("react-aria-components");
3200
3220
  var import_system59 = require("@marigold/system");
3201
- var import_jsx_runtime69 = require("react/jsx-runtime");
3202
- var _Slider = (0, import_react42.forwardRef)(
3221
+ var import_jsx_runtime70 = require("react/jsx-runtime");
3222
+ var _Slider = (0, import_react43.forwardRef)(
3203
3223
  ({
3204
3224
  thumbLabels,
3205
3225
  variant,
@@ -3217,8 +3237,8 @@ var _Slider = (0, import_react42.forwardRef)(
3217
3237
  isDisabled: disabled,
3218
3238
  ...rest
3219
3239
  };
3220
- return /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
3221
- import_react_aria_components19.Slider,
3240
+ return /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)(
3241
+ import_react_aria_components20.Slider,
3222
3242
  {
3223
3243
  className: (0, import_system59.cn)(
3224
3244
  "grid grid-cols-[auto_1fr] gap-y-1",
@@ -3228,14 +3248,14 @@ var _Slider = (0, import_react42.forwardRef)(
3228
3248
  ref,
3229
3249
  ...props,
3230
3250
  children: [
3231
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(_Label, { children: props.children }),
3232
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(import_react_aria_components19.SliderOutput, { className: (0, import_system59.cn)("flex justify-end", classNames2.output), children: ({ state }) => state.values.map((_, i) => state.getThumbValueLabel(i)).join(" \u2013 ") }),
3233
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
3234
- import_react_aria_components19.SliderTrack,
3251
+ /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(_Label, { children: props.children }),
3252
+ /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(import_react_aria_components20.SliderOutput, { className: (0, import_system59.cn)("flex justify-end", classNames2.output), children: ({ state }) => state.values.map((_, i) => state.getThumbValueLabel(i)).join(" \u2013 ") }),
3253
+ /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
3254
+ import_react_aria_components20.SliderTrack,
3235
3255
  {
3236
3256
  className: (0, import_system59.cn)("relative col-span-2 h-2 w-full", classNames2.track),
3237
- children: ({ state }) => state.values.map((_, i) => /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
3238
- import_react_aria_components19.SliderThumb,
3257
+ children: ({ state }) => state.values.map((_, i) => /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
3258
+ import_react_aria_components20.SliderThumb,
3239
3259
  {
3240
3260
  className: (0, import_system59.cn)("top-1/2 cursor-pointer", classNames2.thumb),
3241
3261
  index: i,
@@ -3252,12 +3272,12 @@ var _Slider = (0, import_react42.forwardRef)(
3252
3272
  );
3253
3273
 
3254
3274
  // src/Split/Split.tsx
3255
- var import_jsx_runtime70 = require("react/jsx-runtime");
3256
- var Split = (props) => /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("div", { ...props, role: "separator", className: "grow" });
3275
+ var import_jsx_runtime71 = require("react/jsx-runtime");
3276
+ var Split = (props) => /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("div", { ...props, role: "separator", className: "grow" });
3257
3277
 
3258
3278
  // src/Stack/Stack.tsx
3259
3279
  var import_system60 = require("@marigold/system");
3260
- var import_jsx_runtime71 = require("react/jsx-runtime");
3280
+ var import_jsx_runtime72 = require("react/jsx-runtime");
3261
3281
  var Stack = ({
3262
3282
  children,
3263
3283
  space = 0,
@@ -3268,7 +3288,7 @@ var Stack = ({
3268
3288
  ...props
3269
3289
  }) => {
3270
3290
  var _a, _b, _c, _d;
3271
- return /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
3291
+ return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
3272
3292
  "div",
3273
3293
  {
3274
3294
  className: (0, import_system60.cn)(
@@ -3285,11 +3305,11 @@ var Stack = ({
3285
3305
  };
3286
3306
 
3287
3307
  // src/Switch/Switch.tsx
3288
- var import_react43 = require("react");
3289
- var import_react_aria_components20 = require("react-aria-components");
3308
+ var import_react44 = require("react");
3309
+ var import_react_aria_components21 = require("react-aria-components");
3290
3310
  var import_system61 = require("@marigold/system");
3291
- var import_jsx_runtime72 = require("react/jsx-runtime");
3292
- var _Switch = (0, import_react43.forwardRef)(
3311
+ var import_jsx_runtime73 = require("react/jsx-runtime");
3312
+ var _Switch = (0, import_react44.forwardRef)(
3293
3313
  ({
3294
3314
  variant,
3295
3315
  size,
@@ -3307,8 +3327,8 @@ var _Switch = (0, import_react43.forwardRef)(
3307
3327
  isSelected: selected,
3308
3328
  ...rest
3309
3329
  };
3310
- return /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)(
3311
- import_react_aria_components20.Switch,
3330
+ return /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)(
3331
+ import_react_aria_components21.Switch,
3312
3332
  {
3313
3333
  ...props,
3314
3334
  ref,
@@ -3319,15 +3339,15 @@ var _Switch = (0, import_react43.forwardRef)(
3319
3339
  classNames2.container
3320
3340
  ),
3321
3341
  children: [
3322
- /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(_Label, { elementType: "span", children }),
3323
- /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("div", { className: "relative", children: /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
3342
+ /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(_Label, { elementType: "span", children }),
3343
+ /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("div", { className: "relative", children: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
3324
3344
  "div",
3325
3345
  {
3326
3346
  className: (0, import_system61.cn)(
3327
3347
  "h-6 w-12 basis-12 rounded-3xl group-disabled/switch:cursor-not-allowed ",
3328
3348
  classNames2.track
3329
3349
  ),
3330
- children: /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
3350
+ children: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
3331
3351
  "div",
3332
3352
  {
3333
3353
  className: (0, import_system61.cn)(
@@ -3349,33 +3369,33 @@ var _Switch = (0, import_react43.forwardRef)(
3349
3369
  );
3350
3370
 
3351
3371
  // src/Table/Table.tsx
3352
- var import_react51 = require("react");
3372
+ var import_react52 = require("react");
3353
3373
  var import_table9 = require("@react-aria/table");
3354
3374
  var import_table10 = require("@react-stately/table");
3355
3375
  var import_system68 = require("@marigold/system");
3356
3376
 
3357
3377
  // src/Table/Context.tsx
3358
- var import_react44 = require("react");
3359
- var TableContext = (0, import_react44.createContext)({});
3360
- var useTableContext = () => (0, import_react44.useContext)(TableContext);
3378
+ var import_react45 = require("react");
3379
+ var TableContext = (0, import_react45.createContext)({});
3380
+ var useTableContext = () => (0, import_react45.useContext)(TableContext);
3361
3381
 
3362
3382
  // src/Table/TableBody.tsx
3363
3383
  var import_table = require("@react-aria/table");
3364
- var import_jsx_runtime73 = require("react/jsx-runtime");
3384
+ var import_jsx_runtime74 = require("react/jsx-runtime");
3365
3385
  var TableBody = ({ children }) => {
3366
3386
  const { rowGroupProps } = (0, import_table.useTableRowGroup)();
3367
- return /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("tbody", { ...rowGroupProps, children });
3387
+ return /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("tbody", { ...rowGroupProps, children });
3368
3388
  };
3369
3389
 
3370
3390
  // src/Table/TableCell.tsx
3371
- var import_react45 = require("react");
3391
+ var import_react46 = require("react");
3372
3392
  var import_focus9 = require("@react-aria/focus");
3373
3393
  var import_table2 = require("@react-aria/table");
3374
3394
  var import_utils17 = require("@react-aria/utils");
3375
3395
  var import_system62 = require("@marigold/system");
3376
- var import_jsx_runtime74 = require("react/jsx-runtime");
3396
+ var import_jsx_runtime75 = require("react/jsx-runtime");
3377
3397
  var TableCell = ({ cell }) => {
3378
- const ref = (0, import_react45.useRef)(null);
3398
+ const ref = (0, import_react46.useRef)(null);
3379
3399
  const { interactive, state, classNames: classNames2 } = useTableContext();
3380
3400
  const disabled = state.disabledKeys.has(cell.parentKey);
3381
3401
  const { gridCellProps } = (0, import_table2.useTableCell)(
@@ -3396,7 +3416,7 @@ var TableCell = ({ cell }) => {
3396
3416
  };
3397
3417
  const { focusProps, isFocusVisible } = (0, import_focus9.useFocusRing)();
3398
3418
  const stateProps = (0, import_system62.useStateProps)({ disabled, focusVisible: isFocusVisible });
3399
- return /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
3419
+ return /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
3400
3420
  "td",
3401
3421
  {
3402
3422
  ref,
@@ -3409,7 +3429,7 @@ var TableCell = ({ cell }) => {
3409
3429
  };
3410
3430
 
3411
3431
  // src/Table/TableCheckboxCell.tsx
3412
- var import_react46 = require("react");
3432
+ var import_react47 = require("react");
3413
3433
  var import_focus10 = require("@react-aria/focus");
3414
3434
  var import_table3 = require("@react-aria/table");
3415
3435
  var import_utils18 = require("@react-aria/utils");
@@ -3436,9 +3456,9 @@ var mapCheckboxProps = ({
3436
3456
  };
3437
3457
 
3438
3458
  // src/Table/TableCheckboxCell.tsx
3439
- var import_jsx_runtime75 = require("react/jsx-runtime");
3459
+ var import_jsx_runtime76 = require("react/jsx-runtime");
3440
3460
  var TableCheckboxCell = ({ cell }) => {
3441
- const ref = (0, import_react46.useRef)(null);
3461
+ const ref = (0, import_react47.useRef)(null);
3442
3462
  const { state, classNames: classNames2 } = useTableContext();
3443
3463
  const disabled = state.disabledKeys.has(cell.parentKey);
3444
3464
  const { gridCellProps } = (0, import_table3.useTableCell)(
@@ -3453,20 +3473,20 @@ var TableCheckboxCell = ({ cell }) => {
3453
3473
  );
3454
3474
  const { focusProps, isFocusVisible } = (0, import_focus10.useFocusRing)();
3455
3475
  const stateProps = (0, import_system63.useStateProps)({ disabled, focusVisible: isFocusVisible });
3456
- return /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
3476
+ return /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
3457
3477
  "td",
3458
3478
  {
3459
3479
  ref,
3460
3480
  className: (0, import_system63.cn)("text-center align-middle leading-none", classNames2 == null ? void 0 : classNames2.cell),
3461
3481
  ...(0, import_utils18.mergeProps)(gridCellProps, focusProps),
3462
3482
  ...stateProps,
3463
- children: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(_Checkbox, { ...checkboxProps })
3483
+ children: /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(_Checkbox, { ...checkboxProps })
3464
3484
  }
3465
3485
  );
3466
3486
  };
3467
3487
 
3468
3488
  // src/Table/TableColumnHeader.tsx
3469
- var import_react47 = require("react");
3489
+ var import_react48 = require("react");
3470
3490
  var import_focus11 = require("@react-aria/focus");
3471
3491
  var import_interactions5 = require("@react-aria/interactions");
3472
3492
  var import_table4 = require("@react-aria/table");
@@ -3474,13 +3494,13 @@ var import_utils20 = require("@react-aria/utils");
3474
3494
  var import_icons2 = require("@marigold/icons");
3475
3495
  var import_system64 = require("@marigold/system");
3476
3496
  var import_system65 = require("@marigold/system");
3477
- var import_jsx_runtime76 = require("react/jsx-runtime");
3497
+ var import_jsx_runtime77 = require("react/jsx-runtime");
3478
3498
  var TableColumnHeader = ({
3479
3499
  column,
3480
3500
  width = "auto"
3481
3501
  }) => {
3482
3502
  var _a, _b;
3483
- const ref = (0, import_react47.useRef)(null);
3503
+ const ref = (0, import_react48.useRef)(null);
3484
3504
  const { state, classNames: classNames2 } = useTableContext();
3485
3505
  const { columnHeaderProps } = (0, import_table4.useTableColumnHeader)(
3486
3506
  {
@@ -3495,7 +3515,7 @@ var TableColumnHeader = ({
3495
3515
  hover: isHovered,
3496
3516
  focusVisible: isFocusVisible
3497
3517
  });
3498
- return /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)(
3518
+ return /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)(
3499
3519
  "th",
3500
3520
  {
3501
3521
  colSpan: column.colspan,
@@ -3505,7 +3525,7 @@ var TableColumnHeader = ({
3505
3525
  ...stateProps,
3506
3526
  children: [
3507
3527
  column.rendered,
3508
- column.props.allowsSorting && (((_a = state.sortDescriptor) == null ? void 0 : _a.column) === column.key ? ((_b = state.sortDescriptor) == null ? void 0 : _b.direction) === "ascending" ? /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(import_icons2.SortUp, { className: "inline-block" }) : /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(import_icons2.SortDown, { className: "inline-block" }) : /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(import_icons2.SortDown, { className: "inline-block" }))
3528
+ column.props.allowsSorting && (((_a = state.sortDescriptor) == null ? void 0 : _a.column) === column.key ? ((_b = state.sortDescriptor) == null ? void 0 : _b.direction) === "ascending" ? /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(import_icons2.SortUp, { className: "inline-block" }) : /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(import_icons2.SortDown, { className: "inline-block" }) : /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(import_icons2.SortDown, { className: "inline-block" }))
3509
3529
  ]
3510
3530
  }
3511
3531
  );
@@ -3513,33 +3533,33 @@ var TableColumnHeader = ({
3513
3533
 
3514
3534
  // src/Table/TableHeader.tsx
3515
3535
  var import_table5 = require("@react-aria/table");
3516
- var import_jsx_runtime77 = require("react/jsx-runtime");
3536
+ var import_jsx_runtime78 = require("react/jsx-runtime");
3517
3537
  var TableHeader = ({ children }) => {
3518
3538
  const { rowGroupProps } = (0, import_table5.useTableRowGroup)();
3519
- return /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("thead", { ...rowGroupProps, children });
3539
+ return /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("thead", { ...rowGroupProps, children });
3520
3540
  };
3521
3541
 
3522
3542
  // src/Table/TableHeaderRow.tsx
3523
- var import_react48 = require("react");
3543
+ var import_react49 = require("react");
3524
3544
  var import_table6 = require("@react-aria/table");
3525
- var import_jsx_runtime78 = require("react/jsx-runtime");
3545
+ var import_jsx_runtime79 = require("react/jsx-runtime");
3526
3546
  var TableHeaderRow = ({ item, children }) => {
3527
3547
  const { state } = useTableContext();
3528
- const ref = (0, import_react48.useRef)(null);
3548
+ const ref = (0, import_react49.useRef)(null);
3529
3549
  const { rowProps } = (0, import_table6.useTableHeaderRow)({ node: item }, state, ref);
3530
- return /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("tr", { ...rowProps, ref, children });
3550
+ return /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("tr", { ...rowProps, ref, children });
3531
3551
  };
3532
3552
 
3533
3553
  // src/Table/TableRow.tsx
3534
- var import_react49 = require("react");
3554
+ var import_react50 = require("react");
3535
3555
  var import_focus12 = require("@react-aria/focus");
3536
3556
  var import_interactions6 = require("@react-aria/interactions");
3537
3557
  var import_table7 = require("@react-aria/table");
3538
3558
  var import_utils21 = require("@react-aria/utils");
3539
3559
  var import_system66 = require("@marigold/system");
3540
- var import_jsx_runtime79 = require("react/jsx-runtime");
3560
+ var import_jsx_runtime80 = require("react/jsx-runtime");
3541
3561
  var TableRow = ({ children, row }) => {
3542
- const ref = (0, import_react49.useRef)(null);
3562
+ const ref = (0, import_react50.useRef)(null);
3543
3563
  const { interactive, state, ...ctx } = useTableContext();
3544
3564
  const { variant, size } = row.props;
3545
3565
  const classNames2 = (0, import_system66.useClassNames)({
@@ -3567,7 +3587,7 @@ var TableRow = ({ children, row }) => {
3567
3587
  focusVisible: isFocusVisible,
3568
3588
  active: isPressed
3569
3589
  });
3570
- return /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
3590
+ return /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
3571
3591
  "tr",
3572
3592
  {
3573
3593
  ref,
@@ -3585,18 +3605,18 @@ var TableRow = ({ children, row }) => {
3585
3605
  };
3586
3606
 
3587
3607
  // src/Table/TableSelectAllCell.tsx
3588
- var import_react50 = require("react");
3608
+ var import_react51 = require("react");
3589
3609
  var import_focus13 = require("@react-aria/focus");
3590
3610
  var import_interactions7 = require("@react-aria/interactions");
3591
3611
  var import_table8 = require("@react-aria/table");
3592
3612
  var import_utils22 = require("@react-aria/utils");
3593
3613
  var import_system67 = require("@marigold/system");
3594
- var import_jsx_runtime80 = require("react/jsx-runtime");
3614
+ var import_jsx_runtime81 = require("react/jsx-runtime");
3595
3615
  var TableSelectAllCell = ({
3596
3616
  column,
3597
3617
  width = "auto"
3598
3618
  }) => {
3599
- const ref = (0, import_react50.useRef)(null);
3619
+ const ref = (0, import_react51.useRef)(null);
3600
3620
  const { state, classNames: classNames2 } = useTableContext();
3601
3621
  const { columnHeaderProps } = (0, import_table8.useTableColumnHeader)(
3602
3622
  {
@@ -3612,7 +3632,7 @@ var TableSelectAllCell = ({
3612
3632
  hover: isHovered,
3613
3633
  focusVisible: isFocusVisible
3614
3634
  });
3615
- return /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
3635
+ return /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
3616
3636
  "th",
3617
3637
  {
3618
3638
  ref,
@@ -3623,13 +3643,13 @@ var TableSelectAllCell = ({
3623
3643
  ),
3624
3644
  ...(0, import_utils22.mergeProps)(columnHeaderProps, hoverProps, focusProps),
3625
3645
  ...stateProps,
3626
- children: /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(_Checkbox, { ...checkboxProps })
3646
+ children: /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(_Checkbox, { ...checkboxProps })
3627
3647
  }
3628
3648
  );
3629
3649
  };
3630
3650
 
3631
3651
  // src/Table/Table.tsx
3632
- var import_jsx_runtime81 = require("react/jsx-runtime");
3652
+ var import_jsx_runtime82 = require("react/jsx-runtime");
3633
3653
  var Table = ({
3634
3654
  variant,
3635
3655
  size,
@@ -3638,7 +3658,7 @@ var Table = ({
3638
3658
  ...props
3639
3659
  }) => {
3640
3660
  const interactive = selectionMode !== "none";
3641
- const tableRef = (0, import_react51.useRef)(null);
3661
+ const tableRef = (0, import_react52.useRef)(null);
3642
3662
  const state = (0, import_table10.useTableState)({
3643
3663
  ...props,
3644
3664
  selectionMode,
@@ -3652,11 +3672,11 @@ var Table = ({
3652
3672
  size
3653
3673
  });
3654
3674
  const { collection } = state;
3655
- return /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
3675
+ return /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
3656
3676
  TableContext.Provider,
3657
3677
  {
3658
3678
  value: { state, interactive, classNames: classNames2, variant, size },
3659
- children: /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)(
3679
+ children: /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)(
3660
3680
  "table",
3661
3681
  {
3662
3682
  ref: tableRef,
@@ -3668,17 +3688,17 @@ var Table = ({
3668
3688
  ),
3669
3689
  ...gridProps,
3670
3690
  children: [
3671
- /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(TableHeader, { children: collection.headerRows.map((headerRow) => /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(TableHeaderRow, { item: headerRow, children: [...collection.getChildren(headerRow.key)].map(
3691
+ /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(TableHeader, { children: collection.headerRows.map((headerRow) => /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(TableHeaderRow, { item: headerRow, children: [...collection.getChildren(headerRow.key)].map(
3672
3692
  (column) => {
3673
3693
  var _a, _b, _c;
3674
- return ((_a = column.props) == null ? void 0 : _a.isSelectionCell) ? /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
3694
+ return ((_a = column.props) == null ? void 0 : _a.isSelectionCell) ? /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
3675
3695
  TableSelectAllCell,
3676
3696
  {
3677
3697
  width: (_b = column.props) == null ? void 0 : _b.width,
3678
3698
  column
3679
3699
  },
3680
3700
  column.key
3681
- ) : /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
3701
+ ) : /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
3682
3702
  TableColumnHeader,
3683
3703
  {
3684
3704
  width: (_c = column.props) == null ? void 0 : _c.width,
@@ -3688,12 +3708,12 @@ var Table = ({
3688
3708
  );
3689
3709
  }
3690
3710
  ) }, headerRow.key)) }),
3691
- /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)(TableBody, { children: [
3711
+ /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)(TableBody, { children: [
3692
3712
  ...collection.rows.map(
3693
- (row) => row.type === "item" && /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(TableRow, { row, children: [...collection.getChildren(row.key)].map(
3713
+ (row) => row.type === "item" && /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(TableRow, { row, children: [...collection.getChildren(row.key)].map(
3694
3714
  (cell) => {
3695
3715
  var _a;
3696
- return ((_a = cell.props) == null ? void 0 : _a.isSelectionCell) ? /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(TableCheckboxCell, { cell }, cell.key) : /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(TableCell, { cell }, cell.key);
3716
+ return ((_a = cell.props) == null ? void 0 : _a.isSelectionCell) ? /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(TableCheckboxCell, { cell }, cell.key) : /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(TableCell, { cell }, cell.key);
3697
3717
  }
3698
3718
  ) }, row.key)
3699
3719
  )
@@ -3712,7 +3732,7 @@ Table.Row = import_table10.Row;
3712
3732
 
3713
3733
  // src/Text/Text.tsx
3714
3734
  var import_system69 = require("@marigold/system");
3715
- var import_jsx_runtime82 = require("react/jsx-runtime");
3735
+ var import_jsx_runtime83 = require("react/jsx-runtime");
3716
3736
  var Text2 = ({
3717
3737
  variant,
3718
3738
  size,
@@ -3731,7 +3751,7 @@ var Text2 = ({
3731
3751
  variant,
3732
3752
  size
3733
3753
  });
3734
- return /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
3754
+ return /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
3735
3755
  "p",
3736
3756
  {
3737
3757
  ...props,
@@ -3758,11 +3778,11 @@ var Text2 = ({
3758
3778
  };
3759
3779
 
3760
3780
  // src/TextArea/TextArea.tsx
3761
- var import_react52 = require("react");
3762
- var import_react_aria_components21 = require("react-aria-components");
3781
+ var import_react53 = require("react");
3782
+ var import_react_aria_components22 = require("react-aria-components");
3763
3783
  var import_system70 = require("@marigold/system");
3764
- var import_jsx_runtime83 = require("react/jsx-runtime");
3765
- var _TextArea = (0, import_react52.forwardRef)(
3784
+ var import_jsx_runtime84 = require("react/jsx-runtime");
3785
+ var _TextArea = (0, import_react53.forwardRef)(
3766
3786
  ({
3767
3787
  variant,
3768
3788
  size,
@@ -3781,15 +3801,15 @@ var _TextArea = (0, import_react52.forwardRef)(
3781
3801
  isRequired: required,
3782
3802
  ...rest
3783
3803
  };
3784
- return /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(FieldBase2, { as: import_react_aria_components21.TextField, ...props, variant, size, children: /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(import_react_aria_components21.TextArea, { className: classNames2, ref, rows }) });
3804
+ return /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(FieldBase2, { as: import_react_aria_components22.TextField, ...props, variant, size, children: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(import_react_aria_components22.TextArea, { className: classNames2, ref, rows }) });
3785
3805
  }
3786
3806
  );
3787
3807
 
3788
3808
  // src/TextField/TextField.tsx
3789
- var import_react53 = require("react");
3790
- var import_react_aria_components22 = require("react-aria-components");
3791
- var import_jsx_runtime84 = require("react/jsx-runtime");
3792
- var _TextField = (0, import_react53.forwardRef)(
3809
+ var import_react54 = require("react");
3810
+ var import_react_aria_components23 = require("react-aria-components");
3811
+ var import_jsx_runtime85 = require("react/jsx-runtime");
3812
+ var _TextField = (0, import_react54.forwardRef)(
3793
3813
  ({
3794
3814
  variant,
3795
3815
  size,
@@ -3806,13 +3826,13 @@ var _TextField = (0, import_react53.forwardRef)(
3806
3826
  isRequired: required,
3807
3827
  ...rest
3808
3828
  };
3809
- return /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(FieldBase2, { as: import_react_aria_components22.TextField, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(_Input, { ref }) });
3829
+ return /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(FieldBase2, { as: import_react_aria_components23.TextField, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(_Input, { ref }) });
3810
3830
  }
3811
3831
  );
3812
3832
 
3813
3833
  // src/Tiles/Tiles.tsx
3814
3834
  var import_system71 = require("@marigold/system");
3815
- var import_jsx_runtime85 = require("react/jsx-runtime");
3835
+ var import_jsx_runtime86 = require("react/jsx-runtime");
3816
3836
  var Tiles = ({
3817
3837
  space = 0,
3818
3838
  stretch = false,
@@ -3825,7 +3845,7 @@ var Tiles = ({
3825
3845
  if (stretch) {
3826
3846
  column = `minmax(${column}, 1fr)`;
3827
3847
  }
3828
- return /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
3848
+ return /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
3829
3849
  "div",
3830
3850
  {
3831
3851
  ...props,
@@ -3842,12 +3862,12 @@ var Tiles = ({
3842
3862
  };
3843
3863
 
3844
3864
  // src/Tooltip/Tooltip.tsx
3845
- var import_react_aria_components24 = require("react-aria-components");
3865
+ var import_react_aria_components25 = require("react-aria-components");
3846
3866
  var import_system72 = require("@marigold/system");
3847
3867
 
3848
3868
  // src/Tooltip/TooltipTrigger.tsx
3849
- var import_react_aria_components23 = require("react-aria-components");
3850
- var import_jsx_runtime86 = require("react/jsx-runtime");
3869
+ var import_react_aria_components24 = require("react-aria-components");
3870
+ var import_jsx_runtime87 = require("react/jsx-runtime");
3851
3871
  var _TooltipTrigger = ({
3852
3872
  delay = 1e3,
3853
3873
  children,
@@ -3861,153 +3881,72 @@ var _TooltipTrigger = ({
3861
3881
  isOpen: open,
3862
3882
  delay
3863
3883
  };
3864
- return /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(import_react_aria_components23.TooltipTrigger, { ...props, children });
3884
+ return /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(import_react_aria_components24.TooltipTrigger, { ...props, children });
3865
3885
  };
3866
3886
 
3867
3887
  // src/Tooltip/Tooltip.tsx
3868
- var import_jsx_runtime87 = require("react/jsx-runtime");
3888
+ var import_jsx_runtime88 = require("react/jsx-runtime");
3869
3889
  var _Tooltip = ({ children, variant, size, open, ...rest }) => {
3870
3890
  const props = {
3871
3891
  ...rest,
3872
3892
  isOpen: open
3873
3893
  };
3874
3894
  const classNames2 = (0, import_system72.useClassNames)({ component: "Tooltip", variant, size });
3875
- return /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)(import_react_aria_components24.Tooltip, { ...props, className: (0, import_system72.cn)("group/tooltip", classNames2.container), children: [
3876
- /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(import_react_aria_components24.OverlayArrow, { className: classNames2.arrow, children: /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("svg", { width: 8, height: 8, viewBox: "0 0 8 8", children: /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("path", { d: "M0 0 L4 4 L8 0" }) }) }),
3895
+ return /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)(import_react_aria_components25.Tooltip, { ...props, className: (0, import_system72.cn)("group/tooltip", classNames2.container), children: [
3896
+ /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(import_react_aria_components25.OverlayArrow, { className: classNames2.arrow, children: /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("svg", { width: 8, height: 8, viewBox: "0 0 8 8", children: /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("path", { d: "M0 0 L4 4 L8 0" }) }) }),
3877
3897
  children
3878
3898
  ] });
3879
3899
  };
3880
3900
  _Tooltip.Trigger = _TooltipTrigger;
3881
3901
 
3882
- // src/TagGroup/index.ts
3883
- var import_collections6 = require("@react-stately/collections");
3884
-
3885
- // src/TagGroup/TagGroup.tsx
3886
- var import_react55 = require("react");
3887
- var import_tag2 = require("@react-aria/tag");
3888
- var import_list = require("@react-stately/list");
3889
- var import_system74 = require("@marigold/system");
3890
-
3891
3902
  // src/TagGroup/Tag.tsx
3892
- var import_react54 = __toESM(require("react"));
3893
- var import_button4 = require("@react-aria/button");
3894
- var import_focus14 = require("@react-aria/focus");
3895
- var import_tag = require("@react-aria/tag");
3896
- var import_utils24 = require("@react-aria/utils");
3897
- var import_system73 = require("@marigold/system");
3898
- var import_jsx_runtime88 = require("react/jsx-runtime");
3899
- var CloseButton2 = ({ className, ...props }) => {
3900
- const ref = (0, import_react54.useRef)(null);
3901
- const { buttonProps } = (0, import_button4.useButton)({ ...props }, ref);
3902
- return /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("button", { className, ...buttonProps, children: /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("svg", { viewBox: "0 0 20 20", fill: "currentColor", width: 20, height: 20, children: /* @__PURE__ */ (0, import_jsx_runtime88.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" }) }) });
3903
- };
3904
- var Tag = ({ variant, size, item, state, ...rest }) => {
3905
- const props = {
3906
- item,
3907
- ...rest
3908
- };
3909
- let ref = import_react54.default.useRef(null);
3910
- let { focusProps } = (0, import_focus14.useFocusRing)({ within: true });
3911
- const { rowProps, gridCellProps, allowsRemoving, removeButtonProps } = (0, import_tag.useTag)(
3912
- {
3913
- ...props,
3914
- item
3915
- },
3916
- state,
3917
- ref
3918
- );
3919
- const classNames2 = (0, import_system73.useClassNames)({ component: "Tag", variant, size });
3920
- return /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
3921
- "span",
3922
- {
3923
- ref,
3924
- ...(0, import_utils24.mergeProps)(rowProps, focusProps),
3925
- className: classNames2.tag,
3926
- children: /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)("div", { ...gridCellProps, className: classNames2.gridCell, children: [
3927
- /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("span", { children: item.rendered }),
3928
- allowsRemoving && /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
3929
- CloseButton2,
3930
- {
3931
- ...removeButtonProps,
3932
- className: (0, import_system73.cn)("flex items-center", classNames2.closeButton)
3933
- }
3934
- )
3935
- ] })
3936
- }
3937
- );
3938
- };
3903
+ var import_react_aria_components27 = require("react-aria-components");
3904
+ var import_system74 = require("@marigold/system");
3939
3905
 
3940
3906
  // src/TagGroup/TagGroup.tsx
3907
+ var import_react_aria_components26 = require("react-aria-components");
3908
+ var import_system73 = require("@marigold/system");
3941
3909
  var import_jsx_runtime89 = require("react/jsx-runtime");
3942
- var import_react56 = require("react");
3943
- var TagGroup = ({
3910
+ var _TagGroup = ({
3944
3911
  width,
3945
- required,
3946
- error,
3947
- allowsRemoving,
3912
+ items,
3913
+ children,
3914
+ variant,
3915
+ size,
3948
3916
  ...rest
3949
3917
  }) => {
3950
- const props = {
3951
- isRequired: required,
3952
- validationState: error ? "invalid" : "valid",
3953
- ...rest
3954
- };
3955
- const inputRef = (0, import_react55.useRef)(null);
3956
- const state = (0, import_list.useListState)(props);
3957
- const { gridProps, labelProps, descriptionProps, errorMessageProps } = (0, import_tag2.useTagGroup)(props, state, inputRef);
3958
- const stateProps = (0, import_system74.useStateProps)({
3959
- error,
3960
- required
3961
- });
3962
- return /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
3963
- FieldBase,
3964
- {
3965
- width,
3966
- label: props.label,
3967
- labelProps,
3968
- description: props.description,
3969
- descriptionProps,
3970
- error,
3971
- errorMessage: props.errorMessage,
3972
- errorMessageProps,
3973
- stateProps,
3974
- ...gridProps,
3975
- children: /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
3976
- "div",
3977
- {
3978
- role: "presentation",
3979
- ref: inputRef,
3980
- className: "flex flex-wrap items-start gap-1",
3981
- children: [...state.collection].map((item) => /* @__PURE__ */ (0, import_react56.createElement)(
3982
- Tag,
3983
- {
3984
- ...item.props,
3985
- key: item.key,
3986
- item,
3987
- state,
3988
- allowsRemoving,
3989
- onRemove: props.onRemove
3990
- },
3991
- item.rendered
3992
- ))
3993
- }
3994
- )
3995
- }
3996
- );
3918
+ const classNames2 = (0, import_system73.useClassNames)({ component: "Tag", variant, size });
3919
+ return /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(FieldBase2, { as: import_react_aria_components26.TagGroup, ...rest, children: /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(import_react_aria_components26.TagList, { items, className: classNames2.listItems, children }) });
3997
3920
  };
3998
3921
 
3999
- // src/TagGroup/index.ts
4000
- var Tag2 = import_collections6.Item;
4001
- Tag2.Group = TagGroup;
3922
+ // src/TagGroup/Tag.tsx
3923
+ var import_jsx_runtime90 = require("react/jsx-runtime");
3924
+ var CloseButton2 = ({ className }) => {
3925
+ return /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(import_react_aria_components27.Button, { slot: "remove", className, children: /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("svg", { viewBox: "0 0 20 20", fill: "currentColor", width: 20, height: 20, children: /* @__PURE__ */ (0, import_jsx_runtime90.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" }) }) });
3926
+ };
3927
+ var _Tag = ({ variant, size, children, ...props }) => {
3928
+ let textValue = typeof children === "string" ? children : void 0;
3929
+ const classNames2 = (0, import_system74.useClassNames)({ component: "Tag", variant, size });
3930
+ return /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(import_react_aria_components27.Tag, { textValue, ...props, className: classNames2.tag, children: ({ allowsRemoving }) => /* @__PURE__ */ (0, import_jsx_runtime90.jsxs)(import_jsx_runtime90.Fragment, { children: [
3931
+ children,
3932
+ allowsRemoving && /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
3933
+ CloseButton2,
3934
+ {
3935
+ className: (0, import_system74.cn)("flex items-center", classNames2.closeButton)
3936
+ }
3937
+ )
3938
+ ] }) });
3939
+ };
3940
+ _Tag.Group = _TagGroup;
4002
3941
 
4003
3942
  // src/VisuallyHidden/VisuallyHidden.tsx
4004
3943
  var import_visually_hidden = require("@react-aria/visually-hidden");
4005
3944
 
4006
3945
  // src/XLoader/XLoader.tsx
4007
- var import_react57 = require("react");
3946
+ var import_react55 = require("react");
4008
3947
  var import_system75 = require("@marigold/system");
4009
- var import_jsx_runtime90 = require("react/jsx-runtime");
4010
- var XLoader = (0, import_react57.forwardRef)((props, ref) => /* @__PURE__ */ (0, import_jsx_runtime90.jsxs)(
3948
+ var import_jsx_runtime91 = require("react/jsx-runtime");
3949
+ var XLoader = (0, import_react55.forwardRef)((props, ref) => /* @__PURE__ */ (0, import_jsx_runtime91.jsxs)(
4011
3950
  import_system75.SVG,
4012
3951
  {
4013
3952
  id: "XLoader",
@@ -4017,13 +3956,13 @@ var XLoader = (0, import_react57.forwardRef)((props, ref) => /* @__PURE__ */ (0,
4017
3956
  ...props,
4018
3957
  ...ref,
4019
3958
  children: [
4020
- /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("path", { id: "XMLID_1_", d: "M35.3 27h26.5l54 74.1H88.7z" }),
4021
- /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
3959
+ /* @__PURE__ */ (0, import_jsx_runtime91.jsx)("path", { id: "XMLID_1_", d: "M35.3 27h26.5l54 74.1H88.7z" }),
3960
+ /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
4022
3961
  "path",
4023
3962
  {
4024
3963
  id: "XMLID_5_",
4025
3964
  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",
4026
- children: /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
3965
+ children: /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
4027
3966
  "animate",
4028
3967
  {
4029
3968
  attributeName: "opacity",
@@ -4036,12 +3975,12 @@ var XLoader = (0, import_react57.forwardRef)((props, ref) => /* @__PURE__ */ (0,
4036
3975
  )
4037
3976
  }
4038
3977
  ),
4039
- /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
3978
+ /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
4040
3979
  "path",
4041
3980
  {
4042
3981
  id: "XMLID_18_",
4043
3982
  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",
4044
- children: /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
3983
+ children: /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
4045
3984
  "animate",
4046
3985
  {
4047
3986
  attributeName: "opacity",
@@ -4054,12 +3993,12 @@ var XLoader = (0, import_react57.forwardRef)((props, ref) => /* @__PURE__ */ (0,
4054
3993
  )
4055
3994
  }
4056
3995
  ),
4057
- /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
3996
+ /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
4058
3997
  "path",
4059
3998
  {
4060
3999
  id: "XMLID_19_",
4061
4000
  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",
4062
- children: /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
4001
+ children: /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
4063
4002
  "animate",
4064
4003
  {
4065
4004
  attributeName: "opacity",
@@ -4072,12 +4011,12 @@ var XLoader = (0, import_react57.forwardRef)((props, ref) => /* @__PURE__ */ (0,
4072
4011
  )
4073
4012
  }
4074
4013
  ),
4075
- /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
4014
+ /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
4076
4015
  "path",
4077
4016
  {
4078
4017
  id: "XMLID_20_",
4079
4018
  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",
4080
- children: /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
4019
+ children: /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
4081
4020
  "animate",
4082
4021
  {
4083
4022
  attributeName: "opacity",
@@ -4090,12 +4029,12 @@ var XLoader = (0, import_react57.forwardRef)((props, ref) => /* @__PURE__ */ (0,
4090
4029
  )
4091
4030
  }
4092
4031
  ),
4093
- /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
4032
+ /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
4094
4033
  "path",
4095
4034
  {
4096
4035
  id: "XMLID_21_",
4097
4036
  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",
4098
- children: /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
4037
+ children: /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
4099
4038
  "animate",
4100
4039
  {
4101
4040
  attributeName: "opacity",
@@ -4108,12 +4047,12 @@ var XLoader = (0, import_react57.forwardRef)((props, ref) => /* @__PURE__ */ (0,
4108
4047
  )
4109
4048
  }
4110
4049
  ),
4111
- /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
4050
+ /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
4112
4051
  "path",
4113
4052
  {
4114
4053
  id: "XMLID_22_",
4115
4054
  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",
4116
- children: /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
4055
+ children: /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
4117
4056
  "animate",
4118
4057
  {
4119
4058
  attributeName: "opacity",
@@ -4126,12 +4065,12 @@ var XLoader = (0, import_react57.forwardRef)((props, ref) => /* @__PURE__ */ (0,
4126
4065
  )
4127
4066
  }
4128
4067
  ),
4129
- /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
4068
+ /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
4130
4069
  "path",
4131
4070
  {
4132
4071
  id: "XMLID_23_",
4133
4072
  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",
4134
- children: /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
4073
+ children: /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
4135
4074
  "animate",
4136
4075
  {
4137
4076
  attributeName: "opacity",
@@ -4144,12 +4083,12 @@ var XLoader = (0, import_react57.forwardRef)((props, ref) => /* @__PURE__ */ (0,
4144
4083
  )
4145
4084
  }
4146
4085
  ),
4147
- /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
4086
+ /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
4148
4087
  "path",
4149
4088
  {
4150
4089
  id: "XMLID_24_",
4151
4090
  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",
4152
- children: /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
4091
+ children: /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
4153
4092
  "animate",
4154
4093
  {
4155
4094
  attributeName: "opacity",
@@ -4162,12 +4101,12 @@ var XLoader = (0, import_react57.forwardRef)((props, ref) => /* @__PURE__ */ (0,
4162
4101
  )
4163
4102
  }
4164
4103
  ),
4165
- /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
4104
+ /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
4166
4105
  "path",
4167
4106
  {
4168
4107
  id: "XMLID_25_",
4169
4108
  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",
4170
- children: /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
4109
+ children: /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
4171
4110
  "animate",
4172
4111
  {
4173
4112
  attributeName: "opacity",
@@ -4180,12 +4119,12 @@ var XLoader = (0, import_react57.forwardRef)((props, ref) => /* @__PURE__ */ (0,
4180
4119
  )
4181
4120
  }
4182
4121
  ),
4183
- /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
4122
+ /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
4184
4123
  "path",
4185
4124
  {
4186
4125
  id: "XMLID_26_",
4187
4126
  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",
4188
- children: /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
4127
+ children: /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
4189
4128
  "animate",
4190
4129
  {
4191
4130
  attributeName: "opacity",
@@ -4198,12 +4137,12 @@ var XLoader = (0, import_react57.forwardRef)((props, ref) => /* @__PURE__ */ (0,
4198
4137
  )
4199
4138
  }
4200
4139
  ),
4201
- /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
4140
+ /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
4202
4141
  "path",
4203
4142
  {
4204
4143
  id: "XMLID_27_",
4205
4144
  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",
4206
- children: /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
4145
+ children: /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
4207
4146
  "animate",
4208
4147
  {
4209
4148
  attributeName: "opacity",
@@ -4221,101 +4160,74 @@ var XLoader = (0, import_react57.forwardRef)((props, ref) => /* @__PURE__ */ (0,
4221
4160
  ));
4222
4161
 
4223
4162
  // src/Tabs/Tabs.tsx
4224
- var import_react61 = require("react");
4225
- var import_tabs3 = require("@react-aria/tabs");
4226
- var import_collections7 = require("@react-stately/collections");
4227
- var import_tabs4 = require("@react-stately/tabs");
4163
+ var import_react_aria_components31 = require("react-aria-components");
4228
4164
  var import_system78 = require("@marigold/system");
4229
4165
 
4230
4166
  // src/Tabs/Context.ts
4231
- var import_react58 = require("react");
4232
- var TabContext = (0, import_react58.createContext)({});
4233
- var useTabContext = () => (0, import_react58.useContext)(TabContext);
4167
+ var import_react56 = require("react");
4168
+ var TabContext = (0, import_react56.createContext)({});
4169
+ var useTabContext = () => (0, import_react56.useContext)(TabContext);
4234
4170
 
4235
4171
  // src/Tabs/Tab.tsx
4236
- var import_react59 = require("react");
4237
- var import_interactions8 = require("@react-aria/interactions");
4238
- var import_tabs = require("@react-aria/tabs");
4239
- var import_utils25 = require("@react-aria/utils");
4172
+ var import_react_aria_components28 = require("react-aria-components");
4240
4173
  var import_system76 = require("@marigold/system");
4241
- var import_jsx_runtime91 = require("react/jsx-runtime");
4242
- var Tab = ({ item, state }) => {
4243
- const { key, rendered } = item;
4244
- const ref = (0, import_react59.useRef)(null);
4245
- const { tabProps, isSelected } = (0, import_tabs.useTab)({ key }, state, ref);
4246
- const disabled = tabProps["aria-disabled"];
4247
- const { hoverProps, isHovered } = (0, import_interactions8.useHover)({
4248
- isDisabled: disabled || isSelected
4249
- });
4250
- const { focusProps } = (0, import_interactions8.useFocus)({});
4251
- const stateProps = (0, import_system76.useStateProps)({ active: isSelected, hover: isHovered });
4174
+ var import_jsx_runtime92 = require("react/jsx-runtime");
4175
+ var _Tab = (props) => {
4252
4176
  const { classNames: classNames2 } = useTabContext();
4253
- return /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
4254
- "div",
4177
+ return /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
4178
+ import_react_aria_components28.Tab,
4255
4179
  {
4180
+ ...props,
4256
4181
  className: (0, import_system76.cn)(
4257
4182
  "flex cursor-pointer justify-center aria-disabled:cursor-not-allowed",
4258
4183
  classNames2.tab
4259
4184
  ),
4260
- ...(0, import_utils25.mergeProps)(tabProps, stateProps, focusProps, hoverProps),
4261
- ref,
4262
- children: rendered
4185
+ children: props.children
4263
4186
  }
4264
4187
  );
4265
4188
  };
4266
4189
 
4267
- // src/Tabs/TabPanel.tsx
4268
- var import_react60 = require("react");
4269
- var import_tabs2 = require("@react-aria/tabs");
4190
+ // src/Tabs/TabList.tsx
4191
+ var import_react_aria_components29 = require("react-aria-components");
4270
4192
  var import_system77 = require("@marigold/system");
4271
- var import_jsx_runtime92 = require("react/jsx-runtime");
4272
- var TabPanel = ({ state, ...props }) => {
4273
- var _a;
4274
- const ref = (0, import_react60.useRef)(null);
4275
- const { tabPanelProps } = (0, import_tabs2.useTabPanel)(props, state, ref);
4276
- const selectedItemProps = (_a = state.selectedItem) == null ? void 0 : _a.props;
4193
+ var import_jsx_runtime93 = require("react/jsx-runtime");
4194
+ var _TabList = ({ space = 2, ...props }) => {
4277
4195
  const { classNames: classNames2 } = useTabContext();
4278
- return /* @__PURE__ */ (0, import_jsx_runtime92.jsx)("div", { className: (0, import_system77.cn)(classNames2.tabpanel), ref, ...tabPanelProps, children: selectedItemProps == null ? void 0 : selectedItemProps.children });
4196
+ return /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(
4197
+ import_react_aria_components29.TabList,
4198
+ {
4199
+ ...props,
4200
+ className: (0, import_system77.cn)("flex", import_system77.gapSpace[space], classNames2.tabsList),
4201
+ children: props.children
4202
+ }
4203
+ );
4204
+ };
4205
+
4206
+ // src/Tabs/TabPanel.tsx
4207
+ var import_react_aria_components30 = require("react-aria-components");
4208
+ var import_jsx_runtime94 = require("react/jsx-runtime");
4209
+ var _TabPanel = (props) => {
4210
+ const { classNames: classNames2 } = useTabContext();
4211
+ return /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(import_react_aria_components30.TabPanel, { ...props, className: classNames2.tabpanel, children: props.children });
4279
4212
  };
4280
4213
 
4281
4214
  // src/Tabs/Tabs.tsx
4282
- var import_jsx_runtime93 = require("react/jsx-runtime");
4283
- var Tabs = ({
4284
- space = 2,
4285
- size = "medium",
4286
- disabled,
4287
- variant,
4288
- ...rest
4289
- }) => {
4290
- var _a;
4291
- const ref = (0, import_react61.useRef)(null);
4215
+ var import_jsx_runtime95 = require("react/jsx-runtime");
4216
+ var _Tabs = ({ disabled, variant, size = "medium", ...rest }) => {
4292
4217
  const props = {
4293
4218
  isDisabled: disabled,
4294
4219
  ...rest
4295
4220
  };
4296
- const state = (0, import_tabs4.useTabListState)(props);
4297
- const { tabListProps } = (0, import_tabs3.useTabList)(props, state, ref);
4298
4221
  const classNames2 = (0, import_system78.useClassNames)({
4299
4222
  component: "Tabs",
4300
4223
  size,
4301
4224
  variant
4302
4225
  });
4303
- return /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(TabContext.Provider, { value: { classNames: classNames2 }, children: /* @__PURE__ */ (0, import_jsx_runtime93.jsxs)("div", { className: (0, import_system78.cn)(classNames2.container), children: [
4304
- /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(
4305
- "div",
4306
- {
4307
- className: (0, import_system78.cn)("flex", import_system78.gapSpace[space], classNames2.tabs),
4308
- ...tabListProps,
4309
- ref,
4310
- children: [...state.collection].map((item) => {
4311
- return /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(Tab, { item, state }, item.key);
4312
- })
4313
- }
4314
- ),
4315
- /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(TabPanel, { state }, (_a = state.selectedItem) == null ? void 0 : _a.key)
4316
- ] }) });
4226
+ return /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(TabContext.Provider, { value: { classNames: classNames2 }, children: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(import_react_aria_components31.Tabs, { ...props, className: classNames2.container, children: props.children }) });
4317
4227
  };
4318
- Tabs.Item = import_collections7.Item;
4228
+ _Tabs.List = _TabList;
4229
+ _Tabs.TabPanel = _TabPanel;
4230
+ _Tabs.Item = _Tab;
4319
4231
  // Annotate the CommonJS export names for ESM import in node:
4320
4232
  0 && (module.exports = {
4321
4233
  Accordion,
@@ -4335,6 +4247,7 @@ Tabs.Item = import_collections7.Item;
4335
4247
  Center,
4336
4248
  Checkbox,
4337
4249
  CheckboxGroup,
4250
+ CloseButton,
4338
4251
  Columns,
4339
4252
  ComboBox,
4340
4253
  Container,
@@ -4364,6 +4277,7 @@ Tabs.Item = import_collections7.Item;
4364
4277
  Popover,
4365
4278
  Radio,
4366
4279
  RadioGroup,
4280
+ SearchField,
4367
4281
  Select,
4368
4282
  Slider,
4369
4283
  Split,
@@ -4383,8 +4297,6 @@ Tabs.Item = import_collections7.Item;
4383
4297
  Underlay,
4384
4298
  VisuallyHidden,
4385
4299
  XLoader,
4386
- _Slider,
4387
- _TextArea,
4388
4300
  useAsyncList,
4389
4301
  useFieldGroupContext,
4390
4302
  useListData,