@marigold/components 7.5.1 → 7.5.3

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
@@ -72,6 +72,7 @@ __export(src_exports, {
72
72
  Menu: () => _Menu,
73
73
  Message: () => Message,
74
74
  Modal: () => _Modal,
75
+ Multiselect: () => Multiselect,
75
76
  NumberField: () => _NumberField,
76
77
  OverlayContainerProvider: () => OverlayContainerProvider,
77
78
  Popover: () => _Popover,
@@ -661,7 +662,6 @@ var SearchInput = (0, import_react9.forwardRef)(
661
662
  {
662
663
  className: className == null ? void 0 : className.action,
663
664
  onPress: () => onClear == null ? void 0 : onClear(),
664
- slot: null,
665
665
  "aria-label": stringFormatter.format("Clear search"),
666
666
  excludeFromTabOrder: true,
667
667
  preventFocusOnPress: true,
@@ -1274,7 +1274,7 @@ var import_jsx_runtime30 = require("react/jsx-runtime");
1274
1274
  var Columns = ({
1275
1275
  space = 0,
1276
1276
  columns,
1277
- collapseAt,
1277
+ collapseAt = "0em",
1278
1278
  stretch,
1279
1279
  children,
1280
1280
  ...props
@@ -1299,7 +1299,7 @@ var Columns = ({
1299
1299
  "div",
1300
1300
  {
1301
1301
  className: (0, import_system27.cn)(
1302
- columns[idx] !== "fit" ? "flex-[--columnSize]" : "flex h-fit w-fit",
1302
+ columns[idx] === "fit" ? "flex h-fit w-fit" : "flex-[--columnSize]",
1303
1303
  "basis-[calc((var(--collapseAt)_-_100%)_*_999)]"
1304
1304
  ),
1305
1305
  style: (0, import_system27.createVar)({
@@ -2280,16 +2280,144 @@ var Message = (0, import_react32.forwardRef)(
2280
2280
  }
2281
2281
  );
2282
2282
 
2283
- // src/NumberField/NumberField.tsx
2283
+ // src/Multiselect/Multiselect.tsx
2284
2284
  var import_react33 = require("react");
2285
+ var import_data2 = require("@react-stately/data");
2286
+
2287
+ // src/TagGroup/Tag.tsx
2285
2288
  var import_react_aria_components40 = require("react-aria-components");
2286
2289
  var import_system53 = require("@marigold/system");
2287
2290
 
2288
- // src/NumberField/StepButton.tsx
2291
+ // src/TagGroup/TagGroup.tsx
2289
2292
  var import_react_aria_components39 = require("react-aria-components");
2290
2293
  var import_system52 = require("@marigold/system");
2291
2294
  var import_jsx_runtime61 = require("react/jsx-runtime");
2292
- var Plus = () => /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("svg", { width: 16, height: 16, viewBox: "0 0 20 20", fill: "currentColor", children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
2295
+ var _TagGroup = ({
2296
+ width,
2297
+ items,
2298
+ children,
2299
+ renderEmptyState,
2300
+ variant,
2301
+ size,
2302
+ ...rest
2303
+ }) => {
2304
+ const classNames2 = (0, import_system52.useClassNames)({ component: "Tag", variant, size });
2305
+ return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(FieldBase, { as: import_react_aria_components39.TagGroup, ...rest, children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
2306
+ import_react_aria_components39.TagList,
2307
+ {
2308
+ items,
2309
+ className: classNames2.listItems,
2310
+ renderEmptyState,
2311
+ children
2312
+ }
2313
+ ) });
2314
+ };
2315
+
2316
+ // src/TagGroup/Tag.tsx
2317
+ var import_jsx_runtime62 = require("react/jsx-runtime");
2318
+ var CloseButton2 = ({ className }) => {
2319
+ return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(import_react_aria_components40.Button, { slot: "remove", className, children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("svg", { viewBox: "0 0 20 20", fill: "currentColor", width: 20, height: 20, children: /* @__PURE__ */ (0, import_jsx_runtime62.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" }) }) });
2320
+ };
2321
+ var _Tag = ({ variant, size, children, ...props }) => {
2322
+ let textValue = typeof children === "string" ? children : void 0;
2323
+ const classNames2 = (0, import_system53.useClassNames)({ component: "Tag", variant, size });
2324
+ return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
2325
+ import_react_aria_components40.Tag,
2326
+ {
2327
+ textValue,
2328
+ ...props,
2329
+ className: (0, import_system53.cn)("data-[selection-mode]:cursor-pointer", classNames2.tag),
2330
+ children: ({ allowsRemoving }) => /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(import_jsx_runtime62.Fragment, { children: [
2331
+ children,
2332
+ allowsRemoving && /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
2333
+ CloseButton2,
2334
+ {
2335
+ className: (0, import_system53.cn)("flex items-center", classNames2.closeButton)
2336
+ }
2337
+ )
2338
+ ] })
2339
+ }
2340
+ );
2341
+ };
2342
+ _Tag.Group = _TagGroup;
2343
+
2344
+ // src/Multiselect/Multiselect.tsx
2345
+ var import_jsx_runtime63 = require("react/jsx-runtime");
2346
+ var Item2 = (_) => null;
2347
+ var Multiselect = ({
2348
+ label,
2349
+ children,
2350
+ ...props
2351
+ }) => {
2352
+ const items = import_react33.Children.map(children, ({ props: props2 }) => props2);
2353
+ const list = (0, import_data2.useListData)({
2354
+ initialItems: items,
2355
+ initialSelectedKeys: props.defaultSelectedKeys,
2356
+ getKey: (item) => item.id
2357
+ });
2358
+ const selected = list.items.filter(
2359
+ (item) => list.selectedKeys === "all" ? true : list.selectedKeys.has(item.id)
2360
+ );
2361
+ const unselected = list.items.filter((item) => !selected.includes(item));
2362
+ const setUnselected = (keys) => {
2363
+ const next = list.selectedKeys === "all" ? new Set(items) : new Set(list.selectedKeys);
2364
+ if (list.selectedKeys !== "all") {
2365
+ keys.forEach((key) => {
2366
+ next.delete(key);
2367
+ });
2368
+ }
2369
+ list.setSelectedKeys(next);
2370
+ };
2371
+ const [value, setValue] = (0, import_react33.useState)("");
2372
+ const selectItem = (key) => {
2373
+ if (list.selectedKeys !== "all") {
2374
+ const next = list.selectedKeys.add(key);
2375
+ list.setSelectedKeys(next);
2376
+ }
2377
+ const input = document.activeElement;
2378
+ setTimeout(() => {
2379
+ setValue("");
2380
+ }, 0);
2381
+ input.focus();
2382
+ };
2383
+ return /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)("div", { className: "flex flex-wrap gap-1", children: [
2384
+ /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
2385
+ _Tag.Group,
2386
+ {
2387
+ items: selected,
2388
+ allowsRemoving: true,
2389
+ onRemove: setUnselected,
2390
+ renderEmptyState: () => null,
2391
+ children: (item) => /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(_Tag, { id: item.id, children: item.children }, item.id)
2392
+ }
2393
+ ),
2394
+ /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
2395
+ _ComboBox,
2396
+ {
2397
+ value,
2398
+ onChange: setValue,
2399
+ onSelectionChange: selectItem,
2400
+ menuTrigger: "focus",
2401
+ disabled: unselected.length === 0,
2402
+ placeholder: unselected.length === 0 ? "All items selected" : "",
2403
+ ...props,
2404
+ children: unselected.map((item) => /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(_ComboBox.Item, { id: item.id, children: item.children }, item.id))
2405
+ }
2406
+ )
2407
+ ] });
2408
+ };
2409
+ Multiselect.Item = Item2;
2410
+
2411
+ // src/NumberField/NumberField.tsx
2412
+ var import_react34 = require("react");
2413
+ var import_react_aria_components42 = require("react-aria-components");
2414
+ var import_system55 = require("@marigold/system");
2415
+
2416
+ // src/NumberField/StepButton.tsx
2417
+ var import_react_aria_components41 = require("react-aria-components");
2418
+ var import_system54 = require("@marigold/system");
2419
+ var import_jsx_runtime64 = require("react/jsx-runtime");
2420
+ var Plus = () => /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("svg", { width: 16, height: 16, viewBox: "0 0 20 20", fill: "currentColor", children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
2293
2421
  "path",
2294
2422
  {
2295
2423
  fillRule: "evenodd",
@@ -2297,7 +2425,7 @@ var Plus = () => /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("svg", { width: 1
2297
2425
  d: "M10 3a1 1 0 011 1v5h5a1 1 0 110 2h-5v5a1 1 0 11-2 0v-5H4a1 1 0 110-2h5V4a1 1 0 011-1z"
2298
2426
  }
2299
2427
  ) });
2300
- var Minus = () => /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("svg", { width: 16, height: 16, viewBox: "0 0 20 20", fill: "currentColor", children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
2428
+ var Minus = () => /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("svg", { width: 16, height: 16, viewBox: "0 0 20 20", fill: "currentColor", children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
2301
2429
  "path",
2302
2430
  {
2303
2431
  fillRule: "evenodd",
@@ -2307,10 +2435,10 @@ var Minus = () => /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("svg", { width:
2307
2435
  ) });
2308
2436
  var _StepButton = ({ direction, className, ...props }) => {
2309
2437
  const Icon4 = direction === "up" ? Plus : Minus;
2310
- return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
2311
- import_react_aria_components39.Button,
2438
+ return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
2439
+ import_react_aria_components41.Button,
2312
2440
  {
2313
- className: (0, import_system52.cn)(
2441
+ className: (0, import_system54.cn)(
2314
2442
  [
2315
2443
  "flex items-center justify-center",
2316
2444
  "cursor-pointer data-[disabled]:cursor-not-allowed"
@@ -2318,14 +2446,14 @@ var _StepButton = ({ direction, className, ...props }) => {
2318
2446
  className
2319
2447
  ),
2320
2448
  ...props,
2321
- children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(Icon4, {})
2449
+ children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(Icon4, {})
2322
2450
  }
2323
2451
  );
2324
2452
  };
2325
2453
 
2326
2454
  // src/NumberField/NumberField.tsx
2327
- var import_jsx_runtime62 = require("react/jsx-runtime");
2328
- var _NumberField = (0, import_react33.forwardRef)(
2455
+ var import_jsx_runtime65 = require("react/jsx-runtime");
2456
+ var _NumberField = (0, import_react34.forwardRef)(
2329
2457
  ({
2330
2458
  variant,
2331
2459
  size,
@@ -2336,7 +2464,7 @@ var _NumberField = (0, import_react33.forwardRef)(
2336
2464
  hideStepper,
2337
2465
  ...rest
2338
2466
  }, ref) => {
2339
- const classNames2 = (0, import_system53.useClassNames)({
2467
+ const classNames2 = (0, import_system55.useClassNames)({
2340
2468
  component: "NumberField",
2341
2469
  size,
2342
2470
  variant
@@ -2349,8 +2477,8 @@ var _NumberField = (0, import_react33.forwardRef)(
2349
2477
  ...rest
2350
2478
  };
2351
2479
  const showStepper = !hideStepper;
2352
- return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(FieldBase, { as: import_react_aria_components40.NumberField, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(import_react_aria_components40.Group, { className: (0, import_system53.cn)("flex items-stretch", classNames2.group), children: [
2353
- showStepper && /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
2480
+ return /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(FieldBase, { as: import_react_aria_components42.NumberField, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(import_react_aria_components42.Group, { className: (0, import_system55.cn)("flex items-stretch", classNames2.group), children: [
2481
+ showStepper && /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
2354
2482
  _StepButton,
2355
2483
  {
2356
2484
  className: classNames2.stepper,
@@ -2358,7 +2486,7 @@ var _NumberField = (0, import_react33.forwardRef)(
2358
2486
  slot: "decrement"
2359
2487
  }
2360
2488
  ),
2361
- /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("div", { className: "flex-1", children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
2489
+ /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("div", { className: "flex-1", children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
2362
2490
  _Input,
2363
2491
  {
2364
2492
  ref,
@@ -2367,7 +2495,7 @@ var _NumberField = (0, import_react33.forwardRef)(
2367
2495
  className: classNames2.input
2368
2496
  }
2369
2497
  ) }),
2370
- showStepper && /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
2498
+ showStepper && /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
2371
2499
  _StepButton,
2372
2500
  {
2373
2501
  className: classNames2.stepper,
@@ -2380,21 +2508,21 @@ var _NumberField = (0, import_react33.forwardRef)(
2380
2508
  );
2381
2509
 
2382
2510
  // src/Radio/Radio.tsx
2383
- var import_react35 = require("react");
2384
- var import_react_aria_components42 = require("react-aria-components");
2385
- var import_system55 = require("@marigold/system");
2511
+ var import_react36 = require("react");
2512
+ var import_react_aria_components44 = require("react-aria-components");
2513
+ var import_system57 = require("@marigold/system");
2386
2514
 
2387
2515
  // src/Radio/Context.ts
2388
- var import_react34 = require("react");
2389
- var RadioGroupContext = (0, import_react34.createContext)(
2516
+ var import_react35 = require("react");
2517
+ var RadioGroupContext = (0, import_react35.createContext)(
2390
2518
  null
2391
2519
  );
2392
- var useRadioGroupContext = () => (0, import_react34.useContext)(RadioGroupContext);
2520
+ var useRadioGroupContext = () => (0, import_react35.useContext)(RadioGroupContext);
2393
2521
 
2394
2522
  // src/Radio/RadioGroup.tsx
2395
- var import_react_aria_components41 = require("react-aria-components");
2396
- var import_system54 = require("@marigold/system");
2397
- var import_jsx_runtime63 = require("react/jsx-runtime");
2523
+ var import_react_aria_components43 = require("react-aria-components");
2524
+ var import_system56 = require("@marigold/system");
2525
+ var import_jsx_runtime66 = require("react/jsx-runtime");
2398
2526
  var _RadioGroup = ({
2399
2527
  variant,
2400
2528
  size,
@@ -2410,7 +2538,7 @@ var _RadioGroup = ({
2410
2538
  width,
2411
2539
  ...rest
2412
2540
  }) => {
2413
- const classNames2 = (0, import_system54.useClassNames)({ component: "Radio", variant, size });
2541
+ const classNames2 = (0, import_system56.useClassNames)({ component: "Radio", variant, size });
2414
2542
  const props = {
2415
2543
  isDisabled: disabled,
2416
2544
  isReadOnly: readOnly,
@@ -2418,10 +2546,10 @@ var _RadioGroup = ({
2418
2546
  isInvalid: error,
2419
2547
  ...rest
2420
2548
  };
2421
- return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
2549
+ return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
2422
2550
  FieldBase,
2423
2551
  {
2424
- as: import_react_aria_components41.RadioGroup,
2552
+ as: import_react_aria_components43.RadioGroup,
2425
2553
  width,
2426
2554
  label,
2427
2555
  description,
@@ -2429,18 +2557,18 @@ var _RadioGroup = ({
2429
2557
  variant,
2430
2558
  size,
2431
2559
  ...props,
2432
- children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
2560
+ children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
2433
2561
  "div",
2434
2562
  {
2435
2563
  role: "presentation",
2436
2564
  "data-testid": "group",
2437
2565
  "data-orientation": orientation,
2438
- className: (0, import_system54.cn)(
2566
+ className: (0, import_system56.cn)(
2439
2567
  classNames2.group,
2440
2568
  "flex items-start",
2441
2569
  orientation === "vertical" ? "flex-col gap-[0.5ch]" : "flex-row gap-[1.5ch]"
2442
2570
  ),
2443
- children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(RadioGroupContext.Provider, { value: { width, variant, size }, children })
2571
+ children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(RadioGroupContext.Provider, { value: { width, variant, size }, children })
2444
2572
  }
2445
2573
  )
2446
2574
  }
@@ -2448,33 +2576,33 @@ var _RadioGroup = ({
2448
2576
  };
2449
2577
 
2450
2578
  // src/Radio/Radio.tsx
2451
- var import_jsx_runtime64 = require("react/jsx-runtime");
2452
- var Dot = () => /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("svg", { viewBox: "0 0 6 6", children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("circle", { fill: "currentColor", cx: "3", cy: "3", r: "3" }) });
2453
- var Icon3 = ({ checked, className, ...props }) => /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
2579
+ var import_jsx_runtime67 = require("react/jsx-runtime");
2580
+ var Dot = () => /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("svg", { viewBox: "0 0 6 6", children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("circle", { fill: "currentColor", cx: "3", cy: "3", r: "3" }) });
2581
+ var Icon3 = ({ checked, className, ...props }) => /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
2454
2582
  "div",
2455
2583
  {
2456
- className: (0, import_system55.cn)(
2584
+ className: (0, import_system57.cn)(
2457
2585
  "bg-secondary-50 flex h-4 w-4 items-center justify-center rounded-[50%] border p-1",
2458
2586
  className
2459
2587
  ),
2460
2588
  "aria-hidden": "true",
2461
2589
  ...props,
2462
- children: checked ? /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(Dot, {}) : null
2590
+ children: checked ? /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(Dot, {}) : null
2463
2591
  }
2464
2592
  );
2465
- var _Radio = (0, import_react35.forwardRef)(
2593
+ var _Radio = (0, import_react36.forwardRef)(
2466
2594
  ({ value, disabled, width, children, ...props }, ref) => {
2467
2595
  const { variant, size, width: groupWidth } = useRadioGroupContext();
2468
- const classNames2 = (0, import_system55.useClassNames)({
2596
+ const classNames2 = (0, import_system57.useClassNames)({
2469
2597
  component: "Radio",
2470
2598
  variant: variant || props.variant,
2471
2599
  size: size || props.size
2472
2600
  });
2473
- return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
2474
- import_react_aria_components42.Radio,
2601
+ return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
2602
+ import_react_aria_components44.Radio,
2475
2603
  {
2476
2604
  ref,
2477
- className: (0, import_system55.cn)(
2605
+ className: (0, import_system57.cn)(
2478
2606
  "group/radio",
2479
2607
  "relative flex items-center gap-[1ch]",
2480
2608
  width || groupWidth || "w-full",
@@ -2483,18 +2611,18 @@ var _Radio = (0, import_react35.forwardRef)(
2483
2611
  value,
2484
2612
  isDisabled: disabled,
2485
2613
  ...props,
2486
- children: ({ isSelected }) => /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(import_jsx_runtime64.Fragment, { children: [
2487
- /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
2614
+ children: ({ isSelected }) => /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(import_jsx_runtime67.Fragment, { children: [
2615
+ /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
2488
2616
  Icon3,
2489
2617
  {
2490
2618
  checked: isSelected,
2491
- className: (0, import_system55.cn)(
2619
+ className: (0, import_system57.cn)(
2492
2620
  disabled ? "cursor-not-allowed" : "cursor-pointer",
2493
2621
  classNames2.radio
2494
2622
  )
2495
2623
  }
2496
2624
  ),
2497
- /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("div", { className: classNames2.label, children })
2625
+ /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("div", { className: classNames2.label, children })
2498
2626
  ] })
2499
2627
  }
2500
2628
  );
@@ -2503,10 +2631,10 @@ var _Radio = (0, import_react35.forwardRef)(
2503
2631
  _Radio.Group = _RadioGroup;
2504
2632
 
2505
2633
  // src/SearchField/SearchField.tsx
2506
- var import_react36 = require("react");
2507
- var import_react_aria_components43 = require("react-aria-components");
2508
- var import_jsx_runtime65 = require("react/jsx-runtime");
2509
- var _SearchField = (0, import_react36.forwardRef)(
2634
+ var import_react37 = require("react");
2635
+ var import_react_aria_components45 = require("react-aria-components");
2636
+ var import_jsx_runtime68 = require("react/jsx-runtime");
2637
+ var _SearchField = (0, import_react37.forwardRef)(
2510
2638
  ({ disabled, required, readOnly, error, action, ...rest }, ref) => {
2511
2639
  const props = {
2512
2640
  ...rest,
@@ -2515,7 +2643,7 @@ var _SearchField = (0, import_react36.forwardRef)(
2515
2643
  isReadOnly: readOnly,
2516
2644
  isInvalid: error
2517
2645
  };
2518
- return /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(FieldBase, { as: import_react_aria_components43.SearchField, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
2646
+ return /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(FieldBase, { as: import_react_aria_components45.SearchField, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
2519
2647
  SearchInput,
2520
2648
  {
2521
2649
  ref,
@@ -2526,11 +2654,11 @@ var _SearchField = (0, import_react36.forwardRef)(
2526
2654
  );
2527
2655
 
2528
2656
  // src/Select/Select.tsx
2529
- var import_react37 = require("react");
2530
- var import_react_aria_components44 = require("react-aria-components");
2531
- var import_system56 = require("@marigold/system");
2532
- var import_jsx_runtime66 = require("react/jsx-runtime");
2533
- var _Select = (0, import_react37.forwardRef)(
2657
+ var import_react38 = require("react");
2658
+ var import_react_aria_components46 = require("react-aria-components");
2659
+ var import_system58 = require("@marigold/system");
2660
+ var import_jsx_runtime69 = require("react/jsx-runtime");
2661
+ var _Select = (0, import_react38.forwardRef)(
2534
2662
  ({
2535
2663
  disabled,
2536
2664
  required,
@@ -2550,22 +2678,22 @@ var _Select = (0, import_react37.forwardRef)(
2550
2678
  onSelectionChange: onChange,
2551
2679
  ...rest
2552
2680
  };
2553
- const classNames2 = (0, import_system56.useClassNames)({ component: "Select", variant, size });
2554
- return /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(FieldBase, { isOpen: true, as: import_react_aria_components44.Select, ref, ...props, children: [
2555
- /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(
2556
- import_react_aria_components44.Button,
2681
+ const classNames2 = (0, import_system58.useClassNames)({ component: "Select", variant, size });
2682
+ return /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(FieldBase, { isOpen: true, as: import_react_aria_components46.Select, ref, ...props, children: [
2683
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
2684
+ import_react_aria_components46.Button,
2557
2685
  {
2558
- className: (0, import_system56.cn)(
2686
+ className: (0, import_system58.cn)(
2559
2687
  "flex w-full items-center justify-between gap-1 overflow-hidden",
2560
2688
  classNames2.select
2561
2689
  ),
2562
2690
  children: [
2563
- /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(import_react_aria_components44.SelectValue, {}),
2564
- /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(ChevronDown, { className: "size-4" })
2691
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(import_react_aria_components46.SelectValue, {}),
2692
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(ChevronDown, { className: "size-4" })
2565
2693
  ]
2566
2694
  }
2567
2695
  ),
2568
- /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(_Popover, { children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(_ListBox, { items, children: props.children }) })
2696
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(_Popover, { children: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(_ListBox, { items, children: props.children }) })
2569
2697
  ] });
2570
2698
  }
2571
2699
  );
@@ -2573,29 +2701,29 @@ _Select.Option = _ListBox.Item;
2573
2701
  _Select.Section = _ListBox.Section;
2574
2702
 
2575
2703
  // src/Scrollable/Scrollable.tsx
2576
- var import_system57 = require("@marigold/system");
2577
- var import_jsx_runtime67 = require("react/jsx-runtime");
2704
+ var import_system59 = require("@marigold/system");
2705
+ var import_jsx_runtime70 = require("react/jsx-runtime");
2578
2706
  var Scrollable = ({
2579
2707
  children,
2580
2708
  width = "full",
2581
2709
  height,
2582
2710
  ...props
2583
- }) => /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
2711
+ }) => /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
2584
2712
  "div",
2585
2713
  {
2586
2714
  ...props,
2587
- className: (0, import_system57.cn)(["sticky h-[--height] overflow-auto", import_system57.width[width]]),
2588
- style: (0, import_system57.createVar)({ height }),
2715
+ className: (0, import_system59.cn)(["sticky h-[--height] overflow-auto", import_system59.width[width]]),
2716
+ style: (0, import_system59.createVar)({ height }),
2589
2717
  children
2590
2718
  }
2591
2719
  );
2592
2720
 
2593
2721
  // src/Slider/Slider.tsx
2594
- var import_react38 = require("react");
2595
- var import_react_aria_components45 = require("react-aria-components");
2596
- var import_system58 = require("@marigold/system");
2597
- var import_jsx_runtime68 = require("react/jsx-runtime");
2598
- var _Slider = (0, import_react38.forwardRef)(
2722
+ var import_react39 = require("react");
2723
+ var import_react_aria_components47 = require("react-aria-components");
2724
+ var import_system60 = require("@marigold/system");
2725
+ var import_jsx_runtime71 = require("react/jsx-runtime");
2726
+ var _Slider = (0, import_react39.forwardRef)(
2599
2727
  ({
2600
2728
  thumbLabels,
2601
2729
  variant,
@@ -2604,7 +2732,7 @@ var _Slider = (0, import_react38.forwardRef)(
2604
2732
  disabled,
2605
2733
  ...rest
2606
2734
  }, ref) => {
2607
- const classNames2 = (0, import_system58.useClassNames)({
2735
+ const classNames2 = (0, import_system60.useClassNames)({
2608
2736
  component: "Slider",
2609
2737
  variant,
2610
2738
  size
@@ -2613,27 +2741,27 @@ var _Slider = (0, import_react38.forwardRef)(
2613
2741
  isDisabled: disabled,
2614
2742
  ...rest
2615
2743
  };
2616
- return /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)(
2617
- import_react_aria_components45.Slider,
2744
+ return /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)(
2745
+ import_react_aria_components47.Slider,
2618
2746
  {
2619
- className: (0, import_system58.cn)(
2747
+ className: (0, import_system60.cn)(
2620
2748
  "grid grid-cols-[auto_1fr] gap-y-1",
2621
2749
  classNames2.container,
2622
- import_system58.width[width]
2750
+ import_system60.width[width]
2623
2751
  ),
2624
2752
  ref,
2625
2753
  ...props,
2626
2754
  children: [
2627
- /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(_Label, { children: props.children }),
2628
- /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(import_react_aria_components45.SliderOutput, { className: (0, import_system58.cn)("flex justify-end", classNames2.output), children: ({ state }) => state.values.map((_, i) => state.getThumbValueLabel(i)).join(" \u2013 ") }),
2629
- /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
2630
- import_react_aria_components45.SliderTrack,
2755
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(_Label, { children: props.children }),
2756
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(import_react_aria_components47.SliderOutput, { className: (0, import_system60.cn)("flex justify-end", classNames2.output), children: ({ state }) => state.values.map((_, i) => state.getThumbValueLabel(i)).join(" \u2013 ") }),
2757
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
2758
+ import_react_aria_components47.SliderTrack,
2631
2759
  {
2632
- className: (0, import_system58.cn)("relative col-span-2 h-2 w-full", classNames2.track),
2633
- children: ({ state }) => state.values.map((_, i) => /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
2634
- import_react_aria_components45.SliderThumb,
2760
+ className: (0, import_system60.cn)("relative col-span-2 h-2 w-full", classNames2.track),
2761
+ children: ({ state }) => state.values.map((_, i) => /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
2762
+ import_react_aria_components47.SliderThumb,
2635
2763
  {
2636
- className: (0, import_system58.cn)("top-1/2 cursor-pointer", classNames2.thumb),
2764
+ className: (0, import_system60.cn)("top-1/2 cursor-pointer", classNames2.thumb),
2637
2765
  index: i,
2638
2766
  "aria-label": thumbLabels == null ? void 0 : thumbLabels[i]
2639
2767
  },
@@ -2648,12 +2776,12 @@ var _Slider = (0, import_react38.forwardRef)(
2648
2776
  );
2649
2777
 
2650
2778
  // src/Split/Split.tsx
2651
- var import_jsx_runtime69 = require("react/jsx-runtime");
2652
- var Split = (props) => /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("div", { ...props, role: "separator", className: "grow" });
2779
+ var import_jsx_runtime72 = require("react/jsx-runtime");
2780
+ var Split = (props) => /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("div", { ...props, role: "separator", className: "grow" });
2653
2781
 
2654
2782
  // src/Stack/Stack.tsx
2655
- var import_system59 = require("@marigold/system");
2656
- var import_jsx_runtime70 = require("react/jsx-runtime");
2783
+ var import_system61 = require("@marigold/system");
2784
+ var import_jsx_runtime73 = require("react/jsx-runtime");
2657
2785
  var Stack = ({
2658
2786
  children,
2659
2787
  space = 0,
@@ -2664,14 +2792,14 @@ var Stack = ({
2664
2792
  ...props
2665
2793
  }) => {
2666
2794
  var _a, _b, _c, _d;
2667
- return /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
2795
+ return /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
2668
2796
  "div",
2669
2797
  {
2670
- className: (0, import_system59.cn)(
2798
+ className: (0, import_system61.cn)(
2671
2799
  "flex flex-col",
2672
- import_system59.gapSpace[space],
2673
- alignX && ((_b = (_a = import_system59.alignment) == null ? void 0 : _a.vertical) == null ? void 0 : _b.alignmentX[alignX]),
2674
- alignY && ((_d = (_c = import_system59.alignment) == null ? void 0 : _c.vertical) == null ? void 0 : _d.alignmentY[alignY]),
2800
+ import_system61.gapSpace[space],
2801
+ alignX && ((_b = (_a = import_system61.alignment) == null ? void 0 : _a.vertical) == null ? void 0 : _b.alignmentX[alignX]),
2802
+ alignY && ((_d = (_c = import_system61.alignment) == null ? void 0 : _c.vertical) == null ? void 0 : _d.alignmentY[alignY]),
2675
2803
  stretch && "h-full w-full"
2676
2804
  ),
2677
2805
  ...props,
@@ -2681,11 +2809,11 @@ var Stack = ({
2681
2809
  };
2682
2810
 
2683
2811
  // src/Switch/Switch.tsx
2684
- var import_react39 = require("react");
2685
- var import_react_aria_components46 = require("react-aria-components");
2686
- var import_system60 = require("@marigold/system");
2687
- var import_jsx_runtime71 = require("react/jsx-runtime");
2688
- var _Switch = (0, import_react39.forwardRef)(
2812
+ var import_react40 = require("react");
2813
+ var import_react_aria_components48 = require("react-aria-components");
2814
+ var import_system62 = require("@marigold/system");
2815
+ var import_jsx_runtime74 = require("react/jsx-runtime");
2816
+ var _Switch = (0, import_react40.forwardRef)(
2689
2817
  ({
2690
2818
  variant,
2691
2819
  size,
@@ -2696,37 +2824,37 @@ var _Switch = (0, import_react39.forwardRef)(
2696
2824
  readOnly,
2697
2825
  ...rest
2698
2826
  }, ref) => {
2699
- const classNames2 = (0, import_system60.useClassNames)({ component: "Switch", size, variant });
2827
+ const classNames2 = (0, import_system62.useClassNames)({ component: "Switch", size, variant });
2700
2828
  const props = {
2701
2829
  isDisabled: disabled,
2702
2830
  isReadOnly: readOnly,
2703
2831
  isSelected: selected,
2704
2832
  ...rest
2705
2833
  };
2706
- return /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)(
2707
- import_react_aria_components46.Switch,
2834
+ return /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)(
2835
+ import_react_aria_components48.Switch,
2708
2836
  {
2709
2837
  ...props,
2710
2838
  ref,
2711
- className: (0, import_system60.cn)(
2712
- import_system60.width[width],
2839
+ className: (0, import_system62.cn)(
2840
+ import_system62.width[width],
2713
2841
  "group/switch",
2714
2842
  "flex items-center gap-[1ch]",
2715
2843
  classNames2.container
2716
2844
  ),
2717
2845
  children: [
2718
- /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(_Label, { elementType: "span", children }),
2719
- /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("div", { className: "relative", children: /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
2846
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(_Label, { elementType: "span", children }),
2847
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("div", { className: "relative", children: /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
2720
2848
  "div",
2721
2849
  {
2722
- className: (0, import_system60.cn)(
2850
+ className: (0, import_system62.cn)(
2723
2851
  "h-6 w-12 basis-12 rounded-3xl group-disabled/switch:cursor-not-allowed ",
2724
2852
  classNames2.track
2725
2853
  ),
2726
- children: /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
2854
+ children: /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
2727
2855
  "div",
2728
2856
  {
2729
- className: (0, import_system60.cn)(
2857
+ className: (0, import_system62.cn)(
2730
2858
  "h-[22px] w-[22px]",
2731
2859
  "cubic-bezier(.7,0,.3,1)",
2732
2860
  "absolute left-0 top-px",
@@ -2745,33 +2873,33 @@ var _Switch = (0, import_react39.forwardRef)(
2745
2873
  );
2746
2874
 
2747
2875
  // src/Table/Table.tsx
2748
- var import_react47 = require("react");
2876
+ var import_react48 = require("react");
2749
2877
  var import_table9 = require("@react-aria/table");
2750
2878
  var import_table10 = require("@react-stately/table");
2751
- var import_system67 = require("@marigold/system");
2879
+ var import_system69 = require("@marigold/system");
2752
2880
 
2753
2881
  // src/Table/Context.tsx
2754
- var import_react40 = require("react");
2755
- var TableContext = (0, import_react40.createContext)({});
2756
- var useTableContext = () => (0, import_react40.useContext)(TableContext);
2882
+ var import_react41 = require("react");
2883
+ var TableContext = (0, import_react41.createContext)({});
2884
+ var useTableContext = () => (0, import_react41.useContext)(TableContext);
2757
2885
 
2758
2886
  // src/Table/TableBody.tsx
2759
2887
  var import_table = require("@react-aria/table");
2760
- var import_jsx_runtime72 = require("react/jsx-runtime");
2888
+ var import_jsx_runtime75 = require("react/jsx-runtime");
2761
2889
  var TableBody = ({ children }) => {
2762
2890
  const { rowGroupProps } = (0, import_table.useTableRowGroup)();
2763
- return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("tbody", { ...rowGroupProps, children });
2891
+ return /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("tbody", { ...rowGroupProps, children });
2764
2892
  };
2765
2893
 
2766
2894
  // src/Table/TableCell.tsx
2767
- var import_react41 = require("react");
2895
+ var import_react42 = require("react");
2768
2896
  var import_focus2 = require("@react-aria/focus");
2769
2897
  var import_table2 = require("@react-aria/table");
2770
2898
  var import_utils3 = require("@react-aria/utils");
2771
- var import_system61 = require("@marigold/system");
2772
- var import_jsx_runtime73 = require("react/jsx-runtime");
2899
+ var import_system63 = require("@marigold/system");
2900
+ var import_jsx_runtime76 = require("react/jsx-runtime");
2773
2901
  var TableCell = ({ cell, align = "left" }) => {
2774
- const ref = (0, import_react41.useRef)(null);
2902
+ const ref = (0, import_react42.useRef)(null);
2775
2903
  const { interactive, state, classNames: classNames2 } = useTableContext();
2776
2904
  const disabled = state.disabledKeys.has(cell.parentKey);
2777
2905
  const { gridCellProps } = (0, import_table2.useTableCell)(
@@ -2791,12 +2919,12 @@ var TableCell = ({ cell, align = "left" }) => {
2791
2919
  onPointerDown: (e) => e.stopPropagation()
2792
2920
  };
2793
2921
  const { focusProps, isFocusVisible } = (0, import_focus2.useFocusRing)();
2794
- const stateProps = (0, import_system61.useStateProps)({ disabled, focusVisible: isFocusVisible });
2795
- return /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
2922
+ const stateProps = (0, import_system63.useStateProps)({ disabled, focusVisible: isFocusVisible });
2923
+ return /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
2796
2924
  "td",
2797
2925
  {
2798
2926
  ref,
2799
- className: (0, import_system61.cn)(classNames2 == null ? void 0 : classNames2.cell),
2927
+ className: (0, import_system63.cn)(classNames2 == null ? void 0 : classNames2.cell),
2800
2928
  ...(0, import_utils3.mergeProps)(cellProps, focusProps),
2801
2929
  ...stateProps,
2802
2930
  align,
@@ -2806,11 +2934,11 @@ var TableCell = ({ cell, align = "left" }) => {
2806
2934
  };
2807
2935
 
2808
2936
  // src/Table/TableCheckboxCell.tsx
2809
- var import_react42 = require("react");
2937
+ var import_react43 = require("react");
2810
2938
  var import_focus3 = require("@react-aria/focus");
2811
2939
  var import_table3 = require("@react-aria/table");
2812
2940
  var import_utils4 = require("@react-aria/utils");
2813
- var import_system62 = require("@marigold/system");
2941
+ var import_system64 = require("@marigold/system");
2814
2942
 
2815
2943
  // src/Table/utils.ts
2816
2944
  var mapCheckboxProps = ({
@@ -2833,9 +2961,9 @@ var mapCheckboxProps = ({
2833
2961
  };
2834
2962
 
2835
2963
  // src/Table/TableCheckboxCell.tsx
2836
- var import_jsx_runtime74 = require("react/jsx-runtime");
2964
+ var import_jsx_runtime77 = require("react/jsx-runtime");
2837
2965
  var TableCheckboxCell = ({ cell }) => {
2838
- const ref = (0, import_react42.useRef)(null);
2966
+ const ref = (0, import_react43.useRef)(null);
2839
2967
  const { state, classNames: classNames2 } = useTableContext();
2840
2968
  const disabled = state.disabledKeys.has(cell.parentKey);
2841
2969
  const { gridCellProps } = (0, import_table3.useTableCell)(
@@ -2849,36 +2977,36 @@ var TableCheckboxCell = ({ cell }) => {
2849
2977
  (0, import_table3.useTableSelectionCheckbox)({ key: cell.parentKey }, state)
2850
2978
  );
2851
2979
  const { focusProps, isFocusVisible } = (0, import_focus3.useFocusRing)();
2852
- const stateProps = (0, import_system62.useStateProps)({ disabled, focusVisible: isFocusVisible });
2853
- return /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
2980
+ const stateProps = (0, import_system64.useStateProps)({ disabled, focusVisible: isFocusVisible });
2981
+ return /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
2854
2982
  "td",
2855
2983
  {
2856
2984
  ref,
2857
- className: (0, import_system62.cn)("text-center align-middle leading-none", classNames2 == null ? void 0 : classNames2.cell),
2985
+ className: (0, import_system64.cn)("text-center align-middle leading-none", classNames2 == null ? void 0 : classNames2.cell),
2858
2986
  ...(0, import_utils4.mergeProps)(gridCellProps, focusProps),
2859
2987
  ...stateProps,
2860
- children: /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(_Checkbox, { ...checkboxProps })
2988
+ children: /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(_Checkbox, { ...checkboxProps })
2861
2989
  }
2862
2990
  );
2863
2991
  };
2864
2992
 
2865
2993
  // src/Table/TableColumnHeader.tsx
2866
- var import_react43 = require("react");
2994
+ var import_react44 = require("react");
2867
2995
  var import_focus4 = require("@react-aria/focus");
2868
2996
  var import_interactions = require("@react-aria/interactions");
2869
2997
  var import_table4 = require("@react-aria/table");
2870
2998
  var import_utils6 = require("@react-aria/utils");
2871
2999
  var import_icons3 = require("@marigold/icons");
2872
- var import_system63 = require("@marigold/system");
2873
- var import_system64 = require("@marigold/system");
2874
- var import_jsx_runtime75 = require("react/jsx-runtime");
3000
+ var import_system65 = require("@marigold/system");
3001
+ var import_system66 = require("@marigold/system");
3002
+ var import_jsx_runtime78 = require("react/jsx-runtime");
2875
3003
  var TableColumnHeader = ({
2876
3004
  column,
2877
3005
  width = "auto",
2878
3006
  align = "left"
2879
3007
  }) => {
2880
3008
  var _a, _b;
2881
- const ref = (0, import_react43.useRef)(null);
3009
+ const ref = (0, import_react44.useRef)(null);
2882
3010
  const { state, classNames: classNames2 } = useTableContext();
2883
3011
  const { columnHeaderProps } = (0, import_table4.useTableColumnHeader)(
2884
3012
  {
@@ -2889,22 +3017,22 @@ var TableColumnHeader = ({
2889
3017
  );
2890
3018
  const { hoverProps, isHovered } = (0, import_interactions.useHover)({});
2891
3019
  const { focusProps, isFocusVisible } = (0, import_focus4.useFocusRing)();
2892
- const stateProps = (0, import_system63.useStateProps)({
3020
+ const stateProps = (0, import_system65.useStateProps)({
2893
3021
  hover: isHovered,
2894
3022
  focusVisible: isFocusVisible
2895
3023
  });
2896
- return /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)(
3024
+ return /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)(
2897
3025
  "th",
2898
3026
  {
2899
3027
  colSpan: column.colspan,
2900
3028
  ref,
2901
- className: (0, import_system63.cn)("cursor-default", import_system64.width[width], classNames2 == null ? void 0 : classNames2.header),
3029
+ className: (0, import_system65.cn)("cursor-default", import_system66.width[width], classNames2 == null ? void 0 : classNames2.header),
2902
3030
  ...(0, import_utils6.mergeProps)(columnHeaderProps, hoverProps, focusProps),
2903
3031
  ...stateProps,
2904
3032
  align,
2905
3033
  children: [
2906
3034
  column.rendered,
2907
- 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_runtime75.jsx)(import_icons3.SortUp, { className: "inline-block" }) : /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(import_icons3.SortDown, { className: "inline-block" }) : /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(import_icons3.SortDown, { className: "inline-block" }))
3035
+ 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_runtime78.jsx)(import_icons3.SortUp, { className: "inline-block" }) : /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(import_icons3.SortDown, { className: "inline-block" }) : /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(import_icons3.SortDown, { className: "inline-block" }))
2908
3036
  ]
2909
3037
  }
2910
3038
  );
@@ -2912,10 +3040,10 @@ var TableColumnHeader = ({
2912
3040
 
2913
3041
  // src/Table/TableHeader.tsx
2914
3042
  var import_table5 = require("@react-aria/table");
2915
- var import_jsx_runtime76 = require("react/jsx-runtime");
3043
+ var import_jsx_runtime79 = require("react/jsx-runtime");
2916
3044
  var TableHeader = ({ stickyHeader, children }) => {
2917
3045
  const { rowGroupProps } = (0, import_table5.useTableRowGroup)();
2918
- return /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
3046
+ return /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
2919
3047
  "thead",
2920
3048
  {
2921
3049
  ...rowGroupProps,
@@ -2926,29 +3054,29 @@ var TableHeader = ({ stickyHeader, children }) => {
2926
3054
  };
2927
3055
 
2928
3056
  // src/Table/TableHeaderRow.tsx
2929
- var import_react44 = require("react");
3057
+ var import_react45 = require("react");
2930
3058
  var import_table6 = require("@react-aria/table");
2931
- var import_jsx_runtime77 = require("react/jsx-runtime");
3059
+ var import_jsx_runtime80 = require("react/jsx-runtime");
2932
3060
  var TableHeaderRow = ({ item, children }) => {
2933
3061
  const { state } = useTableContext();
2934
- const ref = (0, import_react44.useRef)(null);
3062
+ const ref = (0, import_react45.useRef)(null);
2935
3063
  const { rowProps } = (0, import_table6.useTableHeaderRow)({ node: item }, state, ref);
2936
- return /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("tr", { ...rowProps, ref, children });
3064
+ return /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("tr", { ...rowProps, ref, children });
2937
3065
  };
2938
3066
 
2939
3067
  // src/Table/TableRow.tsx
2940
- var import_react45 = require("react");
3068
+ var import_react46 = require("react");
2941
3069
  var import_focus5 = require("@react-aria/focus");
2942
3070
  var import_interactions2 = require("@react-aria/interactions");
2943
3071
  var import_table7 = require("@react-aria/table");
2944
3072
  var import_utils7 = require("@react-aria/utils");
2945
- var import_system65 = require("@marigold/system");
2946
- var import_jsx_runtime78 = require("react/jsx-runtime");
3073
+ var import_system67 = require("@marigold/system");
3074
+ var import_jsx_runtime81 = require("react/jsx-runtime");
2947
3075
  var TableRow = ({ children, row }) => {
2948
- const ref = (0, import_react45.useRef)(null);
3076
+ const ref = (0, import_react46.useRef)(null);
2949
3077
  const { interactive, state, ...ctx } = useTableContext();
2950
3078
  const { variant, size } = row.props;
2951
- const classNames2 = (0, import_system65.useClassNames)({
3079
+ const classNames2 = (0, import_system67.useClassNames)({
2952
3080
  component: "Table",
2953
3081
  variant: variant || ctx.variant,
2954
3082
  size: size || ctx.size
@@ -2966,18 +3094,18 @@ var TableRow = ({ children, row }) => {
2966
3094
  const { hoverProps, isHovered } = (0, import_interactions2.useHover)({
2967
3095
  isDisabled: disabled || !interactive
2968
3096
  });
2969
- const stateProps = (0, import_system65.useStateProps)({
3097
+ const stateProps = (0, import_system67.useStateProps)({
2970
3098
  disabled,
2971
3099
  selected,
2972
3100
  hover: isHovered,
2973
3101
  focusVisible: isFocusVisible,
2974
3102
  active: isPressed
2975
3103
  });
2976
- return /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
3104
+ return /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
2977
3105
  "tr",
2978
3106
  {
2979
3107
  ref,
2980
- className: (0, import_system65.cn)(
3108
+ className: (0, import_system67.cn)(
2981
3109
  [
2982
3110
  !interactive ? "cursor-text" : disabled ? "cursor-default" : "cursor-pointer"
2983
3111
  ],
@@ -2991,19 +3119,19 @@ var TableRow = ({ children, row }) => {
2991
3119
  };
2992
3120
 
2993
3121
  // src/Table/TableSelectAllCell.tsx
2994
- var import_react46 = require("react");
3122
+ var import_react47 = require("react");
2995
3123
  var import_focus6 = require("@react-aria/focus");
2996
3124
  var import_interactions3 = require("@react-aria/interactions");
2997
3125
  var import_table8 = require("@react-aria/table");
2998
3126
  var import_utils8 = require("@react-aria/utils");
2999
- var import_system66 = require("@marigold/system");
3000
- var import_jsx_runtime79 = require("react/jsx-runtime");
3127
+ var import_system68 = require("@marigold/system");
3128
+ var import_jsx_runtime82 = require("react/jsx-runtime");
3001
3129
  var TableSelectAllCell = ({
3002
3130
  column,
3003
3131
  width = "auto",
3004
3132
  align = "left"
3005
3133
  }) => {
3006
- const ref = (0, import_react46.useRef)(null);
3134
+ const ref = (0, import_react47.useRef)(null);
3007
3135
  const { state, classNames: classNames2 } = useTableContext();
3008
3136
  const { columnHeaderProps } = (0, import_table8.useTableColumnHeader)(
3009
3137
  {
@@ -3015,25 +3143,25 @@ var TableSelectAllCell = ({
3015
3143
  const { checkboxProps } = mapCheckboxProps((0, import_table8.useTableSelectAllCheckbox)(state));
3016
3144
  const { hoverProps, isHovered } = (0, import_interactions3.useHover)({});
3017
3145
  const { focusProps, isFocusVisible } = (0, import_focus6.useFocusRing)();
3018
- const stateProps = (0, import_system66.useStateProps)({
3146
+ const stateProps = (0, import_system68.useStateProps)({
3019
3147
  hover: isHovered,
3020
3148
  focusVisible: isFocusVisible
3021
3149
  });
3022
- return /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
3150
+ return /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
3023
3151
  "th",
3024
3152
  {
3025
3153
  ref,
3026
- className: (0, import_system66.cn)(import_system66.width[width], [" leading-none"], classNames2 == null ? void 0 : classNames2.header),
3154
+ className: (0, import_system68.cn)(import_system68.width[width], [" leading-none"], classNames2 == null ? void 0 : classNames2.header),
3027
3155
  ...(0, import_utils8.mergeProps)(columnHeaderProps, hoverProps, focusProps),
3028
3156
  ...stateProps,
3029
3157
  align,
3030
- children: /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(_Checkbox, { ...checkboxProps })
3158
+ children: /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(_Checkbox, { ...checkboxProps })
3031
3159
  }
3032
3160
  );
3033
3161
  };
3034
3162
 
3035
3163
  // src/Table/Table.tsx
3036
- var import_jsx_runtime80 = require("react/jsx-runtime");
3164
+ var import_jsx_runtime83 = require("react/jsx-runtime");
3037
3165
  var Table = ({
3038
3166
  variant,
3039
3167
  size,
@@ -3043,7 +3171,7 @@ var Table = ({
3043
3171
  ...props
3044
3172
  }) => {
3045
3173
  const interactive = selectionMode !== "none";
3046
- const tableRef = (0, import_react47.useRef)(null);
3174
+ const tableRef = (0, import_react48.useRef)(null);
3047
3175
  const state = (0, import_table10.useTableState)({
3048
3176
  ...props,
3049
3177
  selectionMode,
@@ -3051,21 +3179,21 @@ var Table = ({
3051
3179
  props.selectionBehavior !== "replace"
3052
3180
  });
3053
3181
  const { gridProps } = (0, import_table9.useTable)(props, state, tableRef);
3054
- const classNames2 = (0, import_system67.useClassNames)({
3182
+ const classNames2 = (0, import_system69.useClassNames)({
3055
3183
  component: "Table",
3056
3184
  variant,
3057
3185
  size
3058
3186
  });
3059
3187
  const { collection } = state;
3060
- return /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
3188
+ return /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
3061
3189
  TableContext.Provider,
3062
3190
  {
3063
3191
  value: { state, interactive, classNames: classNames2, variant, size },
3064
- children: /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)(
3192
+ children: /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)(
3065
3193
  "table",
3066
3194
  {
3067
3195
  ref: tableRef,
3068
- className: (0, import_system67.cn)(
3196
+ className: (0, import_system69.cn)(
3069
3197
  "group/table",
3070
3198
  "border-collapse whitespace-nowrap",
3071
3199
  stretch ? "table w-full" : "block",
@@ -3073,10 +3201,10 @@ var Table = ({
3073
3201
  ),
3074
3202
  ...gridProps,
3075
3203
  children: [
3076
- /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(TableHeader, { stickyHeader, children: collection.headerRows.map((headerRow) => /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(TableHeaderRow, { item: headerRow, children: [...collection.getChildren(headerRow.key)].map(
3204
+ /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(TableHeader, { stickyHeader, children: collection.headerRows.map((headerRow) => /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(TableHeaderRow, { item: headerRow, children: [...collection.getChildren(headerRow.key)].map(
3077
3205
  (column) => {
3078
3206
  var _a, _b, _c, _d, _e;
3079
- return ((_a = column.props) == null ? void 0 : _a.isSelectionCell) ? /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
3207
+ return ((_a = column.props) == null ? void 0 : _a.isSelectionCell) ? /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
3080
3208
  TableSelectAllCell,
3081
3209
  {
3082
3210
  width: (_b = column.props) == null ? void 0 : _b.width,
@@ -3084,7 +3212,7 @@ var Table = ({
3084
3212
  align: (_c = column.props) == null ? void 0 : _c.align
3085
3213
  },
3086
3214
  column.key
3087
- ) : /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
3215
+ ) : /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
3088
3216
  TableColumnHeader,
3089
3217
  {
3090
3218
  width: (_d = column.props) == null ? void 0 : _d.width,
@@ -3095,12 +3223,12 @@ var Table = ({
3095
3223
  );
3096
3224
  }
3097
3225
  ) }, headerRow.key)) }),
3098
- /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)(TableBody, { children: [
3226
+ /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)(TableBody, { children: [
3099
3227
  ...collection.rows.map(
3100
- (row) => row.type === "item" && /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(TableRow, { row, children: [...collection.getChildren(row.key)].map((cell, index) => {
3228
+ (row) => row.type === "item" && /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(TableRow, { row, children: [...collection.getChildren(row.key)].map((cell, index) => {
3101
3229
  var _a, _b;
3102
3230
  const currentColumn = collection.columns[index];
3103
- return ((_a = cell.props) == null ? void 0 : _a.isSelectionCell) ? /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(TableCheckboxCell, { cell }, cell.key) : /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
3231
+ return ((_a = cell.props) == null ? void 0 : _a.isSelectionCell) ? /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(TableCheckboxCell, { cell }, cell.key) : /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
3104
3232
  TableCell,
3105
3233
  {
3106
3234
  align: (_b = currentColumn.props) == null ? void 0 : _b.align,
@@ -3124,8 +3252,8 @@ Table.Header = import_table10.TableHeader;
3124
3252
  Table.Row = import_table10.Row;
3125
3253
 
3126
3254
  // src/Text/Text.tsx
3127
- var import_system68 = require("@marigold/system");
3128
- var import_jsx_runtime81 = require("react/jsx-runtime");
3255
+ var import_system70 = require("@marigold/system");
3256
+ var import_jsx_runtime84 = require("react/jsx-runtime");
3129
3257
  var Text2 = ({
3130
3258
  variant,
3131
3259
  size,
@@ -3138,27 +3266,27 @@ var Text2 = ({
3138
3266
  children,
3139
3267
  ...props
3140
3268
  }) => {
3141
- const theme = (0, import_system68.useTheme)();
3142
- const classNames2 = (0, import_system68.useClassNames)({
3269
+ const theme = (0, import_system70.useTheme)();
3270
+ const classNames2 = (0, import_system70.useClassNames)({
3143
3271
  component: "Text",
3144
3272
  variant,
3145
3273
  size
3146
3274
  });
3147
- return /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
3275
+ return /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
3148
3276
  "p",
3149
3277
  {
3150
3278
  ...props,
3151
- className: (0, import_system68.cn)(
3279
+ className: (0, import_system70.cn)(
3152
3280
  "text-[--color] outline-[--outline]",
3153
3281
  classNames2,
3154
- fontStyle && import_system68.textStyle[fontStyle],
3155
- align && import_system68.textAlign[align],
3156
- cursor && import_system68.cursorStyle[cursor],
3157
- weight && import_system68.fontWeight[weight],
3158
- fontSize && import_system68.textSize[fontSize]
3282
+ fontStyle && import_system70.textStyle[fontStyle],
3283
+ align && import_system70.textAlign[align],
3284
+ cursor && import_system70.cursorStyle[cursor],
3285
+ weight && import_system70.fontWeight[weight],
3286
+ fontSize && import_system70.textSize[fontSize]
3159
3287
  ),
3160
- style: (0, import_system68.createVar)({
3161
- color: color && (0, import_system68.getColor)(
3288
+ style: (0, import_system70.createVar)({
3289
+ color: color && (0, import_system70.getColor)(
3162
3290
  theme,
3163
3291
  color,
3164
3292
  color
@@ -3171,11 +3299,11 @@ var Text2 = ({
3171
3299
  };
3172
3300
 
3173
3301
  // src/TextArea/TextArea.tsx
3174
- var import_react48 = require("react");
3175
- var import_react_aria_components47 = require("react-aria-components");
3176
- var import_system69 = require("@marigold/system");
3177
- var import_jsx_runtime82 = require("react/jsx-runtime");
3178
- var _TextArea = (0, import_react48.forwardRef)(
3302
+ var import_react49 = require("react");
3303
+ var import_react_aria_components49 = require("react-aria-components");
3304
+ var import_system71 = require("@marigold/system");
3305
+ var import_jsx_runtime85 = require("react/jsx-runtime");
3306
+ var _TextArea = (0, import_react49.forwardRef)(
3179
3307
  ({
3180
3308
  variant,
3181
3309
  size,
@@ -3186,7 +3314,7 @@ var _TextArea = (0, import_react48.forwardRef)(
3186
3314
  rows,
3187
3315
  ...rest
3188
3316
  }, ref) => {
3189
- const classNames2 = (0, import_system69.useClassNames)({ component: "TextArea", variant, size });
3317
+ const classNames2 = (0, import_system71.useClassNames)({ component: "TextArea", variant, size });
3190
3318
  const props = {
3191
3319
  isDisabled: disabled,
3192
3320
  isReadOnly: readOnly,
@@ -3194,15 +3322,15 @@ var _TextArea = (0, import_react48.forwardRef)(
3194
3322
  isRequired: required,
3195
3323
  ...rest
3196
3324
  };
3197
- return /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(FieldBase, { as: import_react_aria_components47.TextField, ...props, variant, size, children: /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(import_react_aria_components47.TextArea, { className: classNames2, ref, rows }) });
3325
+ return /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(FieldBase, { as: import_react_aria_components49.TextField, ...props, variant, size, children: /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(import_react_aria_components49.TextArea, { className: classNames2, ref, rows }) });
3198
3326
  }
3199
3327
  );
3200
3328
 
3201
3329
  // src/TextField/TextField.tsx
3202
- var import_react49 = require("react");
3203
- var import_react_aria_components48 = require("react-aria-components");
3204
- var import_jsx_runtime83 = require("react/jsx-runtime");
3205
- var _TextField = (0, import_react49.forwardRef)(
3330
+ var import_react50 = require("react");
3331
+ var import_react_aria_components50 = require("react-aria-components");
3332
+ var import_jsx_runtime86 = require("react/jsx-runtime");
3333
+ var _TextField = (0, import_react50.forwardRef)(
3206
3334
  ({
3207
3335
  variant,
3208
3336
  size,
@@ -3219,13 +3347,13 @@ var _TextField = (0, import_react49.forwardRef)(
3219
3347
  isRequired: required,
3220
3348
  ...rest
3221
3349
  };
3222
- return /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(FieldBase, { as: import_react_aria_components48.TextField, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(_Input, { ref }) });
3350
+ return /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(FieldBase, { as: import_react_aria_components50.TextField, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(_Input, { ref }) });
3223
3351
  }
3224
3352
  );
3225
3353
 
3226
3354
  // src/Tiles/Tiles.tsx
3227
- var import_system70 = require("@marigold/system");
3228
- var import_jsx_runtime84 = require("react/jsx-runtime");
3355
+ var import_system72 = require("@marigold/system");
3356
+ var import_jsx_runtime87 = require("react/jsx-runtime");
3229
3357
  var Tiles = ({
3230
3358
  space = 0,
3231
3359
  stretch = false,
@@ -3238,29 +3366,29 @@ var Tiles = ({
3238
3366
  if (stretch) {
3239
3367
  column = `minmax(${column}, 1fr)`;
3240
3368
  }
3241
- return /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
3369
+ return /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
3242
3370
  "div",
3243
3371
  {
3244
3372
  ...props,
3245
- className: (0, import_system70.cn)(
3373
+ className: (0, import_system72.cn)(
3246
3374
  "grid",
3247
- import_system70.gapSpace[space],
3375
+ import_system72.gapSpace[space],
3248
3376
  "grid-cols-[repeat(auto-fit,var(--column))]",
3249
3377
  equalHeight && "auto-rows-[1fr]"
3250
3378
  ),
3251
- style: (0, import_system70.createVar)({ column, tilesWidth }),
3379
+ style: (0, import_system72.createVar)({ column, tilesWidth }),
3252
3380
  children
3253
3381
  }
3254
3382
  );
3255
3383
  };
3256
3384
 
3257
3385
  // src/Tooltip/Tooltip.tsx
3258
- var import_react_aria_components50 = require("react-aria-components");
3259
- var import_system71 = require("@marigold/system");
3386
+ var import_react_aria_components52 = require("react-aria-components");
3387
+ var import_system73 = require("@marigold/system");
3260
3388
 
3261
3389
  // src/Tooltip/TooltipTrigger.tsx
3262
- var import_react_aria_components49 = require("react-aria-components");
3263
- var import_jsx_runtime85 = require("react/jsx-runtime");
3390
+ var import_react_aria_components51 = require("react-aria-components");
3391
+ var import_jsx_runtime88 = require("react/jsx-runtime");
3264
3392
  var _TooltipTrigger = ({
3265
3393
  delay = 1e3,
3266
3394
  children,
@@ -3274,81 +3402,41 @@ var _TooltipTrigger = ({
3274
3402
  isOpen: open,
3275
3403
  delay
3276
3404
  };
3277
- return /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(import_react_aria_components49.TooltipTrigger, { ...props, children });
3405
+ return /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(import_react_aria_components51.TooltipTrigger, { ...props, children });
3278
3406
  };
3279
3407
 
3280
3408
  // src/Tooltip/Tooltip.tsx
3281
- var import_jsx_runtime86 = require("react/jsx-runtime");
3409
+ var import_jsx_runtime89 = require("react/jsx-runtime");
3282
3410
  var _Tooltip = ({ children, variant, size, open, ...rest }) => {
3283
3411
  const props = {
3284
3412
  ...rest,
3285
3413
  isOpen: open
3286
3414
  };
3287
- const classNames2 = (0, import_system71.useClassNames)({ component: "Tooltip", variant, size });
3288
- return /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)(import_react_aria_components50.Tooltip, { ...props, className: (0, import_system71.cn)("group/tooltip", classNames2.container), children: [
3289
- /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(import_react_aria_components50.OverlayArrow, { className: classNames2.arrow, children: /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("svg", { width: 8, height: 8, viewBox: "0 0 8 8", children: /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("path", { d: "M0 0 L4 4 L8 0" }) }) }),
3290
- children
3291
- ] });
3292
- };
3293
- _Tooltip.Trigger = _TooltipTrigger;
3294
-
3295
- // src/TagGroup/Tag.tsx
3296
- var import_react_aria_components52 = require("react-aria-components");
3297
- var import_system73 = require("@marigold/system");
3298
-
3299
- // src/TagGroup/TagGroup.tsx
3300
- var import_react_aria_components51 = require("react-aria-components");
3301
- var import_system72 = require("@marigold/system");
3302
- var import_jsx_runtime87 = require("react/jsx-runtime");
3303
- var _TagGroup = ({
3304
- width,
3305
- items,
3306
- children,
3307
- renderEmptyState,
3308
- variant,
3309
- size,
3310
- ...rest
3311
- }) => {
3312
- const classNames2 = (0, import_system72.useClassNames)({ component: "Tag", variant, size });
3313
- return /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(FieldBase, { as: import_react_aria_components51.TagGroup, ...rest, children: /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
3314
- import_react_aria_components51.TagList,
3415
+ const classNames2 = (0, import_system73.useClassNames)({ component: "Tooltip", variant, size });
3416
+ const portal = usePortalContainer();
3417
+ return /* @__PURE__ */ (0, import_jsx_runtime89.jsxs)(
3418
+ import_react_aria_components52.Tooltip,
3315
3419
  {
3316
- items,
3317
- className: classNames2.listItems,
3318
- renderEmptyState,
3319
- children
3420
+ ...props,
3421
+ className: (0, import_system73.cn)("group/tooltip", classNames2.container),
3422
+ UNSTABLE_portalContainer: portal,
3423
+ children: [
3424
+ /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(import_react_aria_components52.OverlayArrow, { className: classNames2.arrow, children: /* @__PURE__ */ (0, import_jsx_runtime89.jsx)("svg", { width: 8, height: 8, viewBox: "0 0 8 8", children: /* @__PURE__ */ (0, import_jsx_runtime89.jsx)("path", { d: "M0 0 L4 4 L8 0" }) }) }),
3425
+ children
3426
+ ]
3320
3427
  }
3321
- ) });
3322
- };
3323
-
3324
- // src/TagGroup/Tag.tsx
3325
- var import_jsx_runtime88 = require("react/jsx-runtime");
3326
- var CloseButton2 = ({ className }) => {
3327
- return /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(import_react_aria_components52.Button, { slot: "remove", className, 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" }) }) });
3328
- };
3329
- var _Tag = ({ variant, size, children, ...props }) => {
3330
- let textValue = typeof children === "string" ? children : void 0;
3331
- const classNames2 = (0, import_system73.useClassNames)({ component: "Tag", variant, size });
3332
- return /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(import_react_aria_components52.Tag, { textValue, ...props, className: classNames2.tag, children: ({ allowsRemoving }) => /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)(import_jsx_runtime88.Fragment, { children: [
3333
- children,
3334
- allowsRemoving && /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
3335
- CloseButton2,
3336
- {
3337
- className: (0, import_system73.cn)("flex items-center", classNames2.closeButton)
3338
- }
3339
- )
3340
- ] }) });
3428
+ );
3341
3429
  };
3342
- _Tag.Group = _TagGroup;
3430
+ _Tooltip.Trigger = _TooltipTrigger;
3343
3431
 
3344
3432
  // src/VisuallyHidden/VisuallyHidden.tsx
3345
3433
  var import_visually_hidden = require("@react-aria/visually-hidden");
3346
3434
 
3347
3435
  // src/XLoader/XLoader.tsx
3348
- var import_react50 = require("react");
3436
+ var import_react51 = require("react");
3349
3437
  var import_system74 = require("@marigold/system");
3350
- var import_jsx_runtime89 = require("react/jsx-runtime");
3351
- var XLoader = (0, import_react50.forwardRef)((props, ref) => /* @__PURE__ */ (0, import_jsx_runtime89.jsxs)(
3438
+ var import_jsx_runtime90 = require("react/jsx-runtime");
3439
+ var XLoader = (0, import_react51.forwardRef)((props, ref) => /* @__PURE__ */ (0, import_jsx_runtime90.jsxs)(
3352
3440
  import_system74.SVG,
3353
3441
  {
3354
3442
  id: "XLoader",
@@ -3358,13 +3446,13 @@ var XLoader = (0, import_react50.forwardRef)((props, ref) => /* @__PURE__ */ (0,
3358
3446
  ...props,
3359
3447
  ...ref,
3360
3448
  children: [
3361
- /* @__PURE__ */ (0, import_jsx_runtime89.jsx)("path", { id: "XMLID_1_", d: "M35.3 27h26.5l54 74.1H88.7z" }),
3362
- /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
3449
+ /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("path", { id: "XMLID_1_", d: "M35.3 27h26.5l54 74.1H88.7z" }),
3450
+ /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
3363
3451
  "path",
3364
3452
  {
3365
3453
  id: "XMLID_5_",
3366
3454
  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",
3367
- children: /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
3455
+ children: /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
3368
3456
  "animate",
3369
3457
  {
3370
3458
  attributeName: "opacity",
@@ -3377,12 +3465,12 @@ var XLoader = (0, import_react50.forwardRef)((props, ref) => /* @__PURE__ */ (0,
3377
3465
  )
3378
3466
  }
3379
3467
  ),
3380
- /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
3468
+ /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
3381
3469
  "path",
3382
3470
  {
3383
3471
  id: "XMLID_18_",
3384
3472
  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",
3385
- children: /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
3473
+ children: /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
3386
3474
  "animate",
3387
3475
  {
3388
3476
  attributeName: "opacity",
@@ -3395,12 +3483,12 @@ var XLoader = (0, import_react50.forwardRef)((props, ref) => /* @__PURE__ */ (0,
3395
3483
  )
3396
3484
  }
3397
3485
  ),
3398
- /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
3486
+ /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
3399
3487
  "path",
3400
3488
  {
3401
3489
  id: "XMLID_19_",
3402
3490
  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",
3403
- children: /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
3491
+ children: /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
3404
3492
  "animate",
3405
3493
  {
3406
3494
  attributeName: "opacity",
@@ -3413,12 +3501,12 @@ var XLoader = (0, import_react50.forwardRef)((props, ref) => /* @__PURE__ */ (0,
3413
3501
  )
3414
3502
  }
3415
3503
  ),
3416
- /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
3504
+ /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
3417
3505
  "path",
3418
3506
  {
3419
3507
  id: "XMLID_20_",
3420
3508
  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",
3421
- children: /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
3509
+ children: /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
3422
3510
  "animate",
3423
3511
  {
3424
3512
  attributeName: "opacity",
@@ -3431,12 +3519,12 @@ var XLoader = (0, import_react50.forwardRef)((props, ref) => /* @__PURE__ */ (0,
3431
3519
  )
3432
3520
  }
3433
3521
  ),
3434
- /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
3522
+ /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
3435
3523
  "path",
3436
3524
  {
3437
3525
  id: "XMLID_21_",
3438
3526
  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",
3439
- children: /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
3527
+ children: /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
3440
3528
  "animate",
3441
3529
  {
3442
3530
  attributeName: "opacity",
@@ -3449,12 +3537,12 @@ var XLoader = (0, import_react50.forwardRef)((props, ref) => /* @__PURE__ */ (0,
3449
3537
  )
3450
3538
  }
3451
3539
  ),
3452
- /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
3540
+ /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
3453
3541
  "path",
3454
3542
  {
3455
3543
  id: "XMLID_22_",
3456
3544
  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",
3457
- children: /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
3545
+ children: /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
3458
3546
  "animate",
3459
3547
  {
3460
3548
  attributeName: "opacity",
@@ -3467,12 +3555,12 @@ var XLoader = (0, import_react50.forwardRef)((props, ref) => /* @__PURE__ */ (0,
3467
3555
  )
3468
3556
  }
3469
3557
  ),
3470
- /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
3558
+ /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
3471
3559
  "path",
3472
3560
  {
3473
3561
  id: "XMLID_23_",
3474
3562
  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",
3475
- children: /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
3563
+ children: /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
3476
3564
  "animate",
3477
3565
  {
3478
3566
  attributeName: "opacity",
@@ -3485,12 +3573,12 @@ var XLoader = (0, import_react50.forwardRef)((props, ref) => /* @__PURE__ */ (0,
3485
3573
  )
3486
3574
  }
3487
3575
  ),
3488
- /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
3576
+ /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
3489
3577
  "path",
3490
3578
  {
3491
3579
  id: "XMLID_24_",
3492
3580
  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",
3493
- children: /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
3581
+ children: /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
3494
3582
  "animate",
3495
3583
  {
3496
3584
  attributeName: "opacity",
@@ -3503,12 +3591,12 @@ var XLoader = (0, import_react50.forwardRef)((props, ref) => /* @__PURE__ */ (0,
3503
3591
  )
3504
3592
  }
3505
3593
  ),
3506
- /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
3594
+ /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
3507
3595
  "path",
3508
3596
  {
3509
3597
  id: "XMLID_25_",
3510
3598
  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",
3511
- children: /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
3599
+ children: /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
3512
3600
  "animate",
3513
3601
  {
3514
3602
  attributeName: "opacity",
@@ -3521,12 +3609,12 @@ var XLoader = (0, import_react50.forwardRef)((props, ref) => /* @__PURE__ */ (0,
3521
3609
  )
3522
3610
  }
3523
3611
  ),
3524
- /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
3612
+ /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
3525
3613
  "path",
3526
3614
  {
3527
3615
  id: "XMLID_26_",
3528
3616
  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",
3529
- children: /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
3617
+ children: /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
3530
3618
  "animate",
3531
3619
  {
3532
3620
  attributeName: "opacity",
@@ -3539,12 +3627,12 @@ var XLoader = (0, import_react50.forwardRef)((props, ref) => /* @__PURE__ */ (0,
3539
3627
  )
3540
3628
  }
3541
3629
  ),
3542
- /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
3630
+ /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
3543
3631
  "path",
3544
3632
  {
3545
3633
  id: "XMLID_27_",
3546
3634
  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",
3547
- children: /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
3635
+ children: /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
3548
3636
  "animate",
3549
3637
  {
3550
3638
  attributeName: "opacity",
@@ -3566,17 +3654,17 @@ var import_react_aria_components56 = require("react-aria-components");
3566
3654
  var import_system77 = require("@marigold/system");
3567
3655
 
3568
3656
  // src/Tabs/Context.ts
3569
- var import_react51 = require("react");
3570
- var TabContext = (0, import_react51.createContext)({});
3571
- var useTabContext = () => (0, import_react51.useContext)(TabContext);
3657
+ var import_react52 = require("react");
3658
+ var TabContext = (0, import_react52.createContext)({});
3659
+ var useTabContext = () => (0, import_react52.useContext)(TabContext);
3572
3660
 
3573
3661
  // src/Tabs/Tab.tsx
3574
3662
  var import_react_aria_components53 = require("react-aria-components");
3575
3663
  var import_system75 = require("@marigold/system");
3576
- var import_jsx_runtime90 = require("react/jsx-runtime");
3664
+ var import_jsx_runtime91 = require("react/jsx-runtime");
3577
3665
  var _Tab = (props) => {
3578
3666
  const { classNames: classNames2 } = useTabContext();
3579
- return /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
3667
+ return /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
3580
3668
  import_react_aria_components53.Tab,
3581
3669
  {
3582
3670
  ...props,
@@ -3592,10 +3680,10 @@ var _Tab = (props) => {
3592
3680
  // src/Tabs/TabList.tsx
3593
3681
  var import_react_aria_components54 = require("react-aria-components");
3594
3682
  var import_system76 = require("@marigold/system");
3595
- var import_jsx_runtime91 = require("react/jsx-runtime");
3683
+ var import_jsx_runtime92 = require("react/jsx-runtime");
3596
3684
  var _TabList = ({ space = 2, ...props }) => {
3597
3685
  const { classNames: classNames2 } = useTabContext();
3598
- return /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
3686
+ return /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
3599
3687
  import_react_aria_components54.TabList,
3600
3688
  {
3601
3689
  ...props,
@@ -3607,14 +3695,14 @@ var _TabList = ({ space = 2, ...props }) => {
3607
3695
 
3608
3696
  // src/Tabs/TabPanel.tsx
3609
3697
  var import_react_aria_components55 = require("react-aria-components");
3610
- var import_jsx_runtime92 = require("react/jsx-runtime");
3698
+ var import_jsx_runtime93 = require("react/jsx-runtime");
3611
3699
  var _TabPanel = (props) => {
3612
3700
  const { classNames: classNames2 } = useTabContext();
3613
- return /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(import_react_aria_components55.TabPanel, { ...props, className: classNames2.tabpanel, children: props.children });
3701
+ return /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(import_react_aria_components55.TabPanel, { ...props, className: classNames2.tabpanel, children: props.children });
3614
3702
  };
3615
3703
 
3616
3704
  // src/Tabs/Tabs.tsx
3617
- var import_jsx_runtime93 = require("react/jsx-runtime");
3705
+ var import_jsx_runtime94 = require("react/jsx-runtime");
3618
3706
  var _Tabs = ({ disabled, variant, size = "medium", ...rest }) => {
3619
3707
  const props = {
3620
3708
  isDisabled: disabled,
@@ -3625,7 +3713,7 @@ var _Tabs = ({ disabled, variant, size = "medium", ...rest }) => {
3625
3713
  size,
3626
3714
  variant
3627
3715
  });
3628
- return /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(TabContext.Provider, { value: { classNames: classNames2 }, children: /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(import_react_aria_components56.Tabs, { ...props, className: classNames2.container, children: props.children }) });
3716
+ return /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(TabContext.Provider, { value: { classNames: classNames2 }, children: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(import_react_aria_components56.Tabs, { ...props, className: classNames2.container, children: props.children }) });
3629
3717
  };
3630
3718
  _Tabs.List = _TabList;
3631
3719
  _Tabs.TabPanel = _TabPanel;
@@ -3677,6 +3765,7 @@ var import_react_aria_components57 = require("react-aria-components");
3677
3765
  Menu,
3678
3766
  Message,
3679
3767
  Modal,
3768
+ Multiselect,
3680
3769
  NumberField,
3681
3770
  OverlayContainerProvider,
3682
3771
  Popover,