@marigold/components 10.0.0 → 10.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -18,7 +18,7 @@ import { useFocusRing } from "@react-aria/focus";
18
18
  import { mergeProps as mergeProps2 } from "@react-aria/utils";
19
19
  import { cn, useClassNames, useStateProps } from "@marigold/system";
20
20
 
21
- // src/Chevron/ChevronUp.tsx
21
+ // src/icons/ChevronUp.tsx
22
22
  import { forwardRef } from "react";
23
23
  import { SVG } from "@marigold/system";
24
24
  import { jsx } from "react/jsx-runtime";
@@ -26,7 +26,7 @@ var ChevronUp = forwardRef(
26
26
  ({ className, ...props }, ref) => /* @__PURE__ */ jsx(SVG, { className, ...props, viewBox: "0 0 24 24", ref, children: /* @__PURE__ */ jsx("path", { d: "M5.97563 16.8506L12 10.8394L18.0244 16.8506L19.875 15L12 7.125L4.125 15L5.97563 16.8506Z" }) })
27
27
  );
28
28
 
29
- // src/Chevron/ChevronDown.tsx
29
+ // src/icons/ChevronDown.tsx
30
30
  import { forwardRef as forwardRef2 } from "react";
31
31
  import { SVG as SVG2 } from "@marigold/system";
32
32
  import { jsx as jsx2 } from "react/jsx-runtime";
@@ -34,6 +34,34 @@ var ChevronDown = forwardRef2(
34
34
  ({ className, ...props }, ref) => /* @__PURE__ */ jsx2(SVG2, { className, ...props, viewBox: "0 0 24 24", ref, children: /* @__PURE__ */ jsx2("path", { d: "M5.97563 7.125L12 13.1363L18.0244 7.125L19.875 8.97563L12 16.8506L4.125 8.97563L5.97563 7.125Z" }) })
35
35
  );
36
36
 
37
+ // src/icons/ChevronRight.tsx
38
+ import { forwardRef as forwardRef3 } from "react";
39
+ import { SVG as SVG3 } from "@marigold/system";
40
+ import { jsx as jsx3 } from "react/jsx-runtime";
41
+ var ChevronRight = forwardRef3(
42
+ ({ className, ...props }, ref) => /* @__PURE__ */ jsx3(SVG3, { className, ...props, viewBox: "0 0 24 24", ref, children: /* @__PURE__ */ jsx3("path", { d: "M7.125 18.0244L13.1363 12L7.125 5.97563L8.97563 4.125L16.8506 12L8.97563 19.875L7.125 18.0244Z" }) })
43
+ );
44
+
45
+ // src/icons/ChevronLeft.tsx
46
+ import { forwardRef as forwardRef4 } from "react";
47
+ import { SVG as SVG4 } from "@marigold/system";
48
+ import { jsx as jsx4 } from "react/jsx-runtime";
49
+ var ChevronLeft = forwardRef4(
50
+ ({ className, ...props }, ref) => /* @__PURE__ */ jsx4(SVG4, { className, ...props, viewBox: "0 0 24 24", ref, children: /* @__PURE__ */ jsx4("path", { d: "M16.8506 18.0244L10.8394 12L16.8506 5.97563L15 4.125L7.125 12L15 19.875L16.8506 18.0244Z" }) })
51
+ );
52
+
53
+ // src/icons/SortDown.tsx
54
+ import { forwardRef as forwardRef5 } from "react";
55
+ import { SVG as SVG5 } from "@marigold/system";
56
+ import { jsx as jsx5 } from "react/jsx-runtime";
57
+ var SortDown = forwardRef5((props, ref) => /* @__PURE__ */ jsx5(SVG5, { ...props, viewBox: "0 0 24 24", ref, children: /* @__PURE__ */ jsx5("path", { d: "M17.3962 10.0496L12.5042 14.9416C12.3731 15.0727 12.1984 15.1492 12.0128 15.1492C11.8272 15.1492 11.6524 15.0727 11.5214 14.9416L6.62934 10.0496C6.49827 9.91854 6.42188 9.7439 6.42188 9.55816C6.42188 9.17606 6.73856 8.85938 7.12078 8.85938H16.9048C17.287 8.85938 17.6037 9.17606 17.6037 9.55816C17.6037 9.7439 17.5273 9.91854 17.3962 10.0496Z" }) }));
58
+
59
+ // src/icons/SortUp.tsx
60
+ import { forwardRef as forwardRef6 } from "react";
61
+ import { SVG as SVG6 } from "@marigold/system";
62
+ import { jsx as jsx6 } from "react/jsx-runtime";
63
+ var SortUp = forwardRef6((props, ref) => /* @__PURE__ */ jsx6(SVG6, { ...props, viewBox: "0 0 24 24", ref, children: /* @__PURE__ */ jsx6("path", { d: "M16.9048 15.1491H7.12078C6.73856 15.1491 6.42188 14.8324 6.42188 14.4503C6.42188 14.2645 6.49827 14.0899 6.62934 13.9588L11.5214 9.06684C11.6524 8.93577 11.8272 8.85938 12.0128 8.85938C12.1984 8.85938 12.3731 8.93577 12.5042 9.06684L17.3962 13.9588C17.5273 14.0899 17.6037 14.2645 17.6037 14.4503C17.6037 14.8324 17.287 15.1491 16.9048 15.1491Z" }) }));
64
+
37
65
  // src/Accordion/useAccordionItem.ts
38
66
  import { useButton } from "@react-aria/button";
39
67
  import { useSelectableItem } from "@react-aria/selection";
@@ -127,7 +155,7 @@ function useAccordionItem(props, state, ref) {
127
155
  }
128
156
 
129
157
  // src/Accordion/AccordionItem.tsx
130
- import { jsx as jsx3, jsxs } from "react/jsx-runtime";
158
+ import { jsx as jsx7, jsxs } from "react/jsx-runtime";
131
159
  var AccordionItem = ({
132
160
  item,
133
161
  state,
@@ -180,11 +208,11 @@ var AccordionItem = ({
180
208
  "aria-label": item.textValue,
181
209
  children: [
182
210
  title,
183
- expanded ? /* @__PURE__ */ jsx3(ChevronUp, { className: "h3 w-6" }) : /* @__PURE__ */ jsx3(ChevronDown, { className: "h3 w-6" })
211
+ expanded ? /* @__PURE__ */ jsx7(ChevronUp, { className: "h3 w-6" }) : /* @__PURE__ */ jsx7(ChevronDown, { className: "h3 w-6" })
184
212
  ]
185
213
  }
186
214
  ),
187
- /* @__PURE__ */ jsx3(
215
+ /* @__PURE__ */ jsx7(
188
216
  "div",
189
217
  {
190
218
  ...mergeProps2(regionProps, focusProps, stateProps),
@@ -196,7 +224,7 @@ var AccordionItem = ({
196
224
  };
197
225
 
198
226
  // src/Accordion/Accordion.tsx
199
- import { jsx as jsx4 } from "react/jsx-runtime";
227
+ import { jsx as jsx8 } from "react/jsx-runtime";
200
228
  var Accordion = ({ children, ...props }) => {
201
229
  const ownProps = {
202
230
  ...props,
@@ -229,7 +257,7 @@ var Accordion = ({ children, ...props }) => {
229
257
  ref
230
258
  );
231
259
  delete accordionProps.onKeyDownCapture;
232
- return /* @__PURE__ */ jsx4("div", { ...accordionProps, ref, children: [...state.collection].map((item) => /* @__PURE__ */ jsx4(
260
+ return /* @__PURE__ */ jsx8("div", { ...accordionProps, ref, children: [...state.collection].map((item) => /* @__PURE__ */ jsx8(
233
261
  AccordionItem,
234
262
  {
235
263
  title: item.props.title,
@@ -246,7 +274,7 @@ Accordion.Item = Item;
246
274
  // src/Aside/Aside.tsx
247
275
  import { Children as Children2 } from "react";
248
276
  import { cn as cn2, createVar, gapSpace } from "@marigold/system";
249
- import { jsx as jsx5, jsxs as jsxs2 } from "react/jsx-runtime";
277
+ import { jsx as jsx9, jsxs as jsxs2 } from "react/jsx-runtime";
250
278
  var classNames = {
251
279
  aside: "grow basis-[--sideWidth]",
252
280
  content: "basis-0 grow-[999] [min-inline-size:--wrap]"
@@ -264,7 +292,7 @@ var Aside = ({
264
292
  content: createVar({ wrap })
265
293
  };
266
294
  return /* @__PURE__ */ jsxs2("div", { className: cn2("flex flex-wrap", gapSpace[space]), children: [
267
- /* @__PURE__ */ jsx5(
295
+ /* @__PURE__ */ jsx9(
268
296
  "div",
269
297
  {
270
298
  className: classNames[side === "left" ? "aside" : "content"],
@@ -272,7 +300,7 @@ var Aside = ({
272
300
  children: left
273
301
  }
274
302
  ),
275
- /* @__PURE__ */ jsx5(
303
+ /* @__PURE__ */ jsx9(
276
304
  "div",
277
305
  {
278
306
  className: classNames[side === "right" ? "aside" : "content"],
@@ -285,13 +313,13 @@ var Aside = ({
285
313
 
286
314
  // src/Aspect/Aspect.tsx
287
315
  import { aspect, cn as cn3, createVar as createVar2 } from "@marigold/system";
288
- import { jsx as jsx6 } from "react/jsx-runtime";
316
+ import { jsx as jsx10 } from "react/jsx-runtime";
289
317
  var Aspect = ({
290
318
  ratio = "square",
291
319
  maxWidth,
292
320
  children
293
321
  }) => {
294
- return /* @__PURE__ */ jsx6(
322
+ return /* @__PURE__ */ jsx10(
295
323
  "div",
296
324
  {
297
325
  className: cn3(
@@ -306,29 +334,29 @@ var Aspect = ({
306
334
  };
307
335
 
308
336
  // src/Autocomplete/Autocomplete.tsx
309
- import React, {
310
- forwardRef as forwardRef8
337
+ import React3, {
338
+ forwardRef as forwardRef12
311
339
  } from "react";
312
340
  import { ComboBox, ComboBoxStateContext } from "react-aria-components";
313
341
  import { cn as cn13, useClassNames as useClassNames9 } from "@marigold/system";
314
342
 
315
343
  // src/FieldBase/FieldBase.tsx
316
- import { forwardRef as forwardRef3 } from "react";
344
+ import { forwardRef as forwardRef7 } from "react";
317
345
  import { cn as cn6, width as twWidth, useClassNames as useClassNames4 } from "@marigold/system";
318
346
 
319
347
  // src/HelpText/HelpText.tsx
320
348
  import { useContext } from "react";
321
349
  import { FieldError, FieldErrorContext, Text } from "react-aria-components";
322
350
  import { cn as cn4, useClassNames as useClassNames2 } from "@marigold/system";
323
- import { jsx as jsx7, jsxs as jsxs3 } from "react/jsx-runtime";
324
- var Icon = ({ className }) => /* @__PURE__ */ jsx7(
351
+ import { jsx as jsx11, jsxs as jsxs3 } from "react/jsx-runtime";
352
+ var Icon = ({ className }) => /* @__PURE__ */ jsx11(
325
353
  "svg",
326
354
  {
327
355
  className: cn4("h-4 w-4 shrink-0", className),
328
356
  viewBox: "0 0 24 24",
329
357
  role: "presentation",
330
358
  fill: "currentColor",
331
- children: /* @__PURE__ */ jsx7("path", { d: "M2.25 20.3097H21.75L12 3.46875L2.25 20.3097ZM12.8864 17.2606H11.1136V15.4879H12.8864V17.2606ZM12.8864 13.7151H11.1136V10.1697H12.8864V13.7151Z" })
359
+ children: /* @__PURE__ */ jsx11("path", { d: "M2.25 20.3097H21.75L12 3.46875L2.25 20.3097ZM12.8864 17.2606H11.1136V15.4879H12.8864V17.2606ZM12.8864 13.7151H11.1136V10.1697H12.8864V13.7151Z" })
332
360
  }
333
361
  );
334
362
  var HelpText = ({
@@ -348,35 +376,35 @@ var HelpText = ({
348
376
  return null;
349
377
  }
350
378
  return /* @__PURE__ */ jsxs3("div", { className: cn4(classNames2.container), children: [
351
- /* @__PURE__ */ jsx7(FieldError, { ...props, className: "flex flex-col", children: (validation) => {
379
+ /* @__PURE__ */ jsx11(FieldError, { ...props, className: "flex flex-col", children: (validation) => {
352
380
  const messages = (typeof errorMessage === "function" ? errorMessage(validation) : errorMessage) || validation.validationErrors;
353
381
  return Array.isArray(messages) ? messages.map((msg, idx) => /* @__PURE__ */ jsxs3("div", { className: "flex items-center justify-start gap-1", children: [
354
- /* @__PURE__ */ jsx7(Icon, { className: classNames2.icon }),
382
+ /* @__PURE__ */ jsx11(Icon, { className: classNames2.icon }),
355
383
  msg
356
384
  ] }, idx)) : /* @__PURE__ */ jsxs3("div", { className: "flex items-center justify-start gap-1", children: [
357
- /* @__PURE__ */ jsx7(Icon, { className: classNames2.icon }),
385
+ /* @__PURE__ */ jsx11(Icon, { className: classNames2.icon }),
358
386
  messages
359
387
  ] });
360
388
  } }),
361
- ctx && ctx.isInvalid ? null : /* @__PURE__ */ jsx7(Text, { slot: "description", children: description })
389
+ ctx && ctx.isInvalid ? null : /* @__PURE__ */ jsx11(Text, { slot: "description", children: description })
362
390
  ] });
363
391
  };
364
392
 
365
393
  // src/Label/Label.tsx
366
394
  import { Label } from "react-aria-components";
367
- import { SVG as SVG3, cn as cn5, createVar as createVar3, useClassNames as useClassNames3 } from "@marigold/system";
395
+ import { SVG as SVG7, cn as cn5, createVar as createVar3, useClassNames as useClassNames3 } from "@marigold/system";
368
396
 
369
397
  // src/FieldBase/FieldGroup.tsx
370
398
  import { createContext, useContext as useContext2 } from "react";
371
- import { jsx as jsx8 } from "react/jsx-runtime";
399
+ import { jsx as jsx12 } from "react/jsx-runtime";
372
400
  var FieldGroupContext = createContext({});
373
401
  var useFieldGroupContext = () => useContext2(FieldGroupContext);
374
402
  var FieldGroup = ({ labelWidth, children }) => {
375
- return /* @__PURE__ */ jsx8(FieldGroupContext.Provider, { value: { labelWidth }, children });
403
+ return /* @__PURE__ */ jsx12(FieldGroupContext.Provider, { value: { labelWidth }, children });
376
404
  };
377
405
 
378
406
  // src/Label/Label.tsx
379
- import { jsx as jsx9, jsxs as jsxs4 } from "react/jsx-runtime";
407
+ import { jsx as jsx13, jsxs as jsxs4 } from "react/jsx-runtime";
380
408
  var _Label = ({ size, variant, children, ...props }) => {
381
409
  const classNames2 = useClassNames3({ component: "Label", size, variant });
382
410
  const { labelWidth } = useFieldGroupContext();
@@ -388,14 +416,14 @@ var _Label = ({ size, variant, children, ...props }) => {
388
416
  style: createVar3({ labelWidth }),
389
417
  children: [
390
418
  children,
391
- /* @__PURE__ */ jsx9(
392
- SVG3,
419
+ /* @__PURE__ */ jsx13(
420
+ SVG7,
393
421
  {
394
422
  viewBox: "0 0 24 24",
395
423
  role: "presentation",
396
424
  size: 16,
397
425
  className: cn5("hidden", classNames2.indicator),
398
- children: /* @__PURE__ */ jsx9("path", { d: "M10.8 3.84003H13.2V9.85259L18.1543 7.01815L19.3461 9.10132L14.3584 11.9549L19.3371 14.7999L18.1463 16.8836L13.2 14.0572V20.16H10.8V13.9907L5.76116 16.8735L4.56935 14.7903L9.5232 11.9561L4.56 9.12003L5.75073 7.03624L10.8 9.92154V3.84003Z" })
426
+ children: /* @__PURE__ */ jsx13("path", { d: "M10.8 3.84003H13.2V9.85259L18.1543 7.01815L19.3461 9.10132L14.3584 11.9549L19.3371 14.7999L18.1463 16.8836L13.2 14.0572V20.16H10.8V13.9907L5.76116 16.8735L4.56935 14.7903L9.5232 11.9561L4.56 9.12003L5.75073 7.03624L10.8 9.92154V3.84003Z" })
399
427
  }
400
428
  )
401
429
  ]
@@ -404,8 +432,8 @@ var _Label = ({ size, variant, children, ...props }) => {
404
432
  };
405
433
 
406
434
  // src/FieldBase/FieldBase.tsx
407
- import { jsx as jsx10, jsxs as jsxs5 } from "react/jsx-runtime";
408
- var fixedForwardRef = forwardRef3;
435
+ import { jsx as jsx14, jsxs as jsxs5 } from "react/jsx-runtime";
436
+ var fixedForwardRef = forwardRef7;
409
437
  var _FieldBase = (props, ref) => {
410
438
  const {
411
439
  as: Component = "div",
@@ -440,9 +468,9 @@ var _FieldBase = (props, ref) => {
440
468
  "data-error": props.isInvalid ? true : void 0,
441
469
  ...rest,
442
470
  children: [
443
- label ? /* @__PURE__ */ jsx10(_Label, { variant, size, children: label }) : /* @__PURE__ */ jsx10("span", { "aria-hidden": "true" }),
471
+ label ? /* @__PURE__ */ jsx14(_Label, { variant, size, children: label }) : /* @__PURE__ */ jsx14("span", { "aria-hidden": "true" }),
444
472
  children,
445
- /* @__PURE__ */ jsx10(
473
+ /* @__PURE__ */ jsx14(
446
474
  HelpText,
447
475
  {
448
476
  variant,
@@ -458,17 +486,17 @@ var _FieldBase = (props, ref) => {
458
486
  var FieldBase = fixedForwardRef(_FieldBase);
459
487
 
460
488
  // src/Input/SearchInput.tsx
461
- import { forwardRef as forwardRef5 } from "react";
489
+ import { forwardRef as forwardRef9 } from "react";
462
490
  import { Button } from "react-aria-components";
463
491
  import { useLocalizedStringFormatter } from "@react-aria/i18n";
464
492
  import { cn as cn8 } from "@marigold/system";
465
493
 
466
494
  // src/Input/Input.tsx
467
- import { cloneElement as cloneElement2, forwardRef as forwardRef4 } from "react";
495
+ import { cloneElement as cloneElement2, forwardRef as forwardRef8 } from "react";
468
496
  import { Input } from "react-aria-components";
469
497
  import { cn as cn7, useClassNames as useClassNames5 } from "@marigold/system";
470
- import { jsx as jsx11, jsxs as jsxs6 } from "react/jsx-runtime";
471
- var _Input = forwardRef4(
498
+ import { jsx as jsx15, jsxs as jsxs6 } from "react/jsx-runtime";
499
+ var _Input = forwardRef8(
472
500
  ({ type, icon, action, variant, size, className, ...props }, ref) => {
473
501
  const classNames2 = useClassNames5({
474
502
  component: "Input",
@@ -499,7 +527,7 @@ var _Input = forwardRef4(
499
527
  "data-action": action && "",
500
528
  children: [
501
529
  inputIcon,
502
- /* @__PURE__ */ jsx11(
530
+ /* @__PURE__ */ jsx15(
503
531
  Input,
504
532
  {
505
533
  ...props,
@@ -523,7 +551,7 @@ var _Input = forwardRef4(
523
551
  );
524
552
 
525
553
  // src/Input/SearchInput.tsx
526
- import { jsx as jsx12 } from "react/jsx-runtime";
554
+ import { jsx as jsx16 } from "react/jsx-runtime";
527
555
  var intlMessages = {
528
556
  "de-DE": {
529
557
  "Clear search": "Suche zur\xFCcksetzen"
@@ -535,7 +563,7 @@ var intlMessages = {
535
563
  "Clear search": "Effacer la recherche"
536
564
  }
537
565
  };
538
- var SearchIcon = (props) => /* @__PURE__ */ jsx12(
566
+ var SearchIcon = (props) => /* @__PURE__ */ jsx16(
539
567
  "svg",
540
568
  {
541
569
  xmlns: "http://www.w3.org/2000/svg",
@@ -544,13 +572,13 @@ var SearchIcon = (props) => /* @__PURE__ */ jsx12(
544
572
  width: 24,
545
573
  height: 24,
546
574
  ...props,
547
- children: /* @__PURE__ */ jsx12("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" })
575
+ children: /* @__PURE__ */ jsx16("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" })
548
576
  }
549
577
  );
550
- var SearchInput = forwardRef5(
578
+ var SearchInput = forwardRef9(
551
579
  ({ className, onClear, ...props }, ref) => {
552
580
  const stringFormatter = useLocalizedStringFormatter(intlMessages);
553
- return /* @__PURE__ */ jsx12(
581
+ return /* @__PURE__ */ jsx16(
554
582
  _Input,
555
583
  {
556
584
  type: "search",
@@ -559,8 +587,8 @@ var SearchInput = forwardRef5(
559
587
  className == null ? void 0 : className.input
560
588
  ),
561
589
  ref,
562
- icon: /* @__PURE__ */ jsx12(SearchIcon, {}),
563
- action: /* @__PURE__ */ jsx12(
590
+ icon: /* @__PURE__ */ jsx16(SearchIcon, {}),
591
+ action: /* @__PURE__ */ jsx16(
564
592
  Button,
565
593
  {
566
594
  className: className == null ? void 0 : className.action,
@@ -568,7 +596,7 @@ var SearchInput = forwardRef5(
568
596
  "aria-label": stringFormatter.format("Clear search"),
569
597
  excludeFromTabOrder: true,
570
598
  preventFocusOnPress: true,
571
- children: /* @__PURE__ */ jsx12(
599
+ children: /* @__PURE__ */ jsx16(
572
600
  "svg",
573
601
  {
574
602
  xmlns: "http://www.w3.org/2000/svg",
@@ -576,7 +604,7 @@ var SearchInput = forwardRef5(
576
604
  fill: "currentColor",
577
605
  width: 20,
578
606
  height: 20,
579
- children: /* @__PURE__ */ jsx12("path", { d: "M6.28 5.22a.75.75 0 00-1.06 1.06L8.94 10l-3.72 3.72a.75.75 0 101.06 1.06L10 11.06l3.72 3.72a.75.75 0 101.06-1.06L11.06 10l3.72-3.72a.75.75 0 00-1.06-1.06L10 8.94 6.28 5.22z" })
607
+ children: /* @__PURE__ */ jsx16("path", { d: "M6.28 5.22a.75.75 0 00-1.06 1.06L8.94 10l-3.72 3.72a.75.75 0 101.06 1.06L10 11.06l3.72 3.72a.75.75 0 101.06-1.06L11.06 10l3.72-3.72a.75.75 0 00-1.06-1.06L10 8.94 6.28 5.22z" })
580
608
  }
581
609
  )
582
610
  }
@@ -589,7 +617,7 @@ var SearchInput = forwardRef5(
589
617
 
590
618
  // src/ListBox/ListBox.tsx
591
619
  import {
592
- forwardRef as forwardRef6
620
+ forwardRef as forwardRef10
593
621
  } from "react";
594
622
  import { ListBox } from "react-aria-components";
595
623
  import { cn as cn10, useClassNames as useClassNames6 } from "@marigold/system";
@@ -601,31 +629,38 @@ var useListBoxContext = () => useContext3(ListBoxContext);
601
629
 
602
630
  // src/ListBox/ListBoxItem.tsx
603
631
  import { ListBoxItem } from "react-aria-components";
604
- import { jsx as jsx13 } from "react/jsx-runtime";
632
+ import { jsx as jsx17 } from "react/jsx-runtime";
605
633
  var _ListBoxItem = ({ ...props }) => {
606
634
  const { classNames: classNames2 } = useListBoxContext();
607
- return /* @__PURE__ */ jsx13(ListBoxItem, { ...props, className: classNames2.option });
635
+ return /* @__PURE__ */ jsx17(ListBoxItem, { ...props, className: classNames2.option });
608
636
  };
609
637
 
610
638
  // src/ListBox/ListBoxSection.tsx
611
- import { Header, Section } from "react-aria-components";
639
+ import { Header, ListBoxSection } from "react-aria-components";
612
640
  import { cn as cn9 } from "@marigold/system";
613
- import { jsx as jsx14, jsxs as jsxs7 } from "react/jsx-runtime";
641
+ import { jsx as jsx18, jsxs as jsxs7 } from "react/jsx-runtime";
614
642
  var _Section = ({ header: header2, children, ...props }) => {
615
643
  const { classNames: classNames2 } = useListBoxContext();
616
- return /* @__PURE__ */ jsxs7(Section, { ...props, className: cn9(classNames2.section, classNames2.header), children: [
617
- /* @__PURE__ */ jsx14(Header, { children: header2 }),
618
- children
619
- ] });
644
+ return /* @__PURE__ */ jsxs7(
645
+ ListBoxSection,
646
+ {
647
+ ...props,
648
+ className: cn9(classNames2.section, classNames2.header),
649
+ children: [
650
+ /* @__PURE__ */ jsx18(Header, { children: header2 }),
651
+ children
652
+ ]
653
+ }
654
+ );
620
655
  };
621
656
 
622
657
  // src/ListBox/ListBox.tsx
623
- import { jsx as jsx15 } from "react/jsx-runtime";
624
- var _ListBox = forwardRef6(
658
+ import { jsx as jsx19 } from "react/jsx-runtime";
659
+ var _ListBox = forwardRef10(
625
660
  ({ variant, size, ...props }, ref) => {
626
661
  const classNames2 = useClassNames6({ component: "ListBox", variant, size });
627
662
  const listBoxProps = { shouldSelectOnPressUp: false };
628
- return /* @__PURE__ */ jsx15(ListBoxContext.Provider, { value: { classNames: classNames2 }, children: /* @__PURE__ */ jsx15("div", { className: classNames2.container, children: /* @__PURE__ */ jsx15(
663
+ return /* @__PURE__ */ jsx19(ListBoxContext.Provider, { value: { classNames: classNames2 }, children: /* @__PURE__ */ jsx19("div", { className: classNames2.container, children: /* @__PURE__ */ jsx19(
629
664
  ListBox,
630
665
  {
631
666
  ...props,
@@ -644,7 +679,7 @@ _ListBox.Item = _ListBoxItem;
644
679
  _ListBox.Section = _Section;
645
680
 
646
681
  // src/Overlay/Popover.tsx
647
- import { forwardRef as forwardRef7 } from "react";
682
+ import { forwardRef as forwardRef11 } from "react";
648
683
  import { Popover } from "react-aria-components";
649
684
  import { cn as cn12, useClassNames as useClassNames8, useSmallScreen } from "@marigold/system";
650
685
 
@@ -670,17 +705,17 @@ import { I18nProvider } from "@react-aria/i18n";
670
705
 
671
706
  // src/Provider/MarigoldProvider.tsx
672
707
  import { ThemeProvider } from "@marigold/system";
673
- import { jsx as jsx16 } from "react/jsx-runtime";
708
+ import { jsx as jsx20 } from "react/jsx-runtime";
674
709
  function MarigoldProvider({
675
710
  children,
676
711
  className,
677
712
  theme
678
713
  }) {
679
- return /* @__PURE__ */ jsx16(ThemeProvider, { theme, className, children });
714
+ return /* @__PURE__ */ jsx20(ThemeProvider, { theme, className, children });
680
715
  }
681
716
 
682
717
  // src/Overlay/Underlay.tsx
683
- import { jsx as jsx17 } from "react/jsx-runtime";
718
+ import { jsx as jsx21 } from "react/jsx-runtime";
684
719
  var Underlay = ({
685
720
  size,
686
721
  variant,
@@ -697,7 +732,7 @@ var Underlay = ({
697
732
  ...rest
698
733
  };
699
734
  const portal = usePortalContainer();
700
- return /* @__PURE__ */ jsx17(
735
+ return /* @__PURE__ */ jsx21(
701
736
  ModalOverlay,
702
737
  {
703
738
  className: ({ isEntering, isExiting }) => cn11(
@@ -715,8 +750,8 @@ var Underlay = ({
715
750
  };
716
751
 
717
752
  // src/Overlay/Popover.tsx
718
- import { Fragment, jsx as jsx18, jsxs as jsxs8 } from "react/jsx-runtime";
719
- var _Popover = forwardRef7(
753
+ import { Fragment, jsx as jsx22, jsxs as jsxs8 } from "react/jsx-runtime";
754
+ var _Popover = forwardRef11(
720
755
  ({ keyboardDismissDisabled, placement, open, children, container, ...rest }, ref) => {
721
756
  const props = {
722
757
  isKeyboardDismissDisabled: keyboardDismissDisabled,
@@ -732,9 +767,9 @@ var _Popover = forwardRef7(
732
767
  });
733
768
  const isSmallScreen = useSmallScreen();
734
769
  const portal = usePortalContainer();
735
- return /* @__PURE__ */ jsx18(Fragment, { children: isSmallScreen ? /* @__PURE__ */ jsxs8(Fragment, { children: [
736
- /* @__PURE__ */ jsx18(Underlay, { open, variant: "modal" }),
737
- /* @__PURE__ */ jsx18(
770
+ return /* @__PURE__ */ jsx22(Fragment, { children: isSmallScreen ? /* @__PURE__ */ jsxs8(Fragment, { children: [
771
+ /* @__PURE__ */ jsx22(Underlay, { open, variant: "modal" }),
772
+ /* @__PURE__ */ jsx22(
738
773
  Popover,
739
774
  {
740
775
  ref,
@@ -746,7 +781,7 @@ var _Popover = forwardRef7(
746
781
  children
747
782
  }
748
783
  )
749
- ] }) : /* @__PURE__ */ jsx18(
784
+ ] }) : /* @__PURE__ */ jsx22(
750
785
  Popover,
751
786
  {
752
787
  ref,
@@ -762,15 +797,15 @@ var _Popover = forwardRef7(
762
797
  );
763
798
 
764
799
  // src/Autocomplete/Autocomplete.tsx
765
- import { jsx as jsx19, jsxs as jsxs9 } from "react/jsx-runtime";
800
+ import { jsx as jsx23, jsxs as jsxs9 } from "react/jsx-runtime";
766
801
  var AutocompleteInput = ({
767
802
  onSubmit,
768
803
  onClear,
769
804
  ref
770
805
  }) => {
771
- const state = React.useContext(ComboBoxStateContext);
806
+ const state = React3.useContext(ComboBoxStateContext);
772
807
  const classNames2 = useClassNames9({ component: "ComboBox" });
773
- return /* @__PURE__ */ jsx19(
808
+ return /* @__PURE__ */ jsx23(
774
809
  SearchInput,
775
810
  {
776
811
  ref,
@@ -785,8 +820,8 @@ var AutocompleteInput = ({
785
820
  e.preventDefault();
786
821
  }
787
822
  if (e.key === "Enter") {
788
- if (state.selectionManager.focusedKey === null) {
789
- onSubmit == null ? void 0 : onSubmit(null, state.inputValue);
823
+ if ((state == null ? void 0 : state.selectionManager.focusedKey) === null) {
824
+ onSubmit == null ? void 0 : onSubmit(null, state == null ? void 0 : state.inputValue);
790
825
  }
791
826
  }
792
827
  },
@@ -798,7 +833,7 @@ var AutocompleteInput = ({
798
833
  }
799
834
  );
800
835
  };
801
- var _Autocomplete = forwardRef8(
836
+ var _Autocomplete = forwardRef12(
802
837
  ({
803
838
  children,
804
839
  defaultValue,
@@ -825,8 +860,8 @@ var _Autocomplete = forwardRef8(
825
860
  ...rest
826
861
  };
827
862
  return /* @__PURE__ */ jsxs9(FieldBase, { as: ComboBox, ref, ...props, children: [
828
- /* @__PURE__ */ jsx19(AutocompleteInput, { onSubmit, onClear, ref }),
829
- /* @__PURE__ */ jsx19(_Popover, { children: /* @__PURE__ */ jsx19(_ListBox, { children }) })
863
+ /* @__PURE__ */ jsx23(AutocompleteInput, { onSubmit, onClear, ref }),
864
+ /* @__PURE__ */ jsx23(_Popover, { children: /* @__PURE__ */ jsx23(_ListBox, { children }) })
830
865
  ] });
831
866
  }
832
867
  );
@@ -834,24 +869,87 @@ _Autocomplete.Option = _ListBox.Item;
834
869
  _Autocomplete.Section = _ListBox.Section;
835
870
 
836
871
  // src/ComboBox/ComboBox.tsx
837
- import { forwardRef as forwardRef10 } from "react";
872
+ import { forwardRef as forwardRef14 } from "react";
838
873
  import { ComboBox as ComboBox2 } from "react-aria-components";
839
874
  import { useClassNames as useClassNames11 } from "@marigold/system";
840
875
 
841
876
  // src/Button/Button.tsx
842
- import { forwardRef as forwardRef9 } from "react";
877
+ import { forwardRef as forwardRef13 } from "react";
843
878
  import { Button as Button2 } from "react-aria-components";
844
879
  import { cn as cn14, useClassNames as useClassNames10 } from "@marigold/system";
845
- import { jsx as jsx20 } from "react/jsx-runtime";
846
- var _Button = forwardRef9(
847
- ({ children, variant, size, className, disabled, fullWidth, ...props }, ref) => {
880
+
881
+ // src/ProgressCycle/ProgressCycle.tsx
882
+ import { ProgressBar } from "react-aria-components";
883
+ import { SVG as SVG8 } from "@marigold/system";
884
+ import { jsx as jsx24, jsxs as jsxs10 } from "react/jsx-runtime";
885
+ var ProgressCycle = ({
886
+ size = "16",
887
+ ...props
888
+ }) => {
889
+ let strokeWidth = 3;
890
+ if (size <= "24") {
891
+ strokeWidth = 2;
892
+ } else if (size >= "32") {
893
+ strokeWidth = 4;
894
+ }
895
+ const radius = `calc(50% - ${strokeWidth / 2}px)`;
896
+ return /* @__PURE__ */ jsx24(ProgressBar, { ...props, "aria-label": "loading", isIndeterminate: true, children: /* @__PURE__ */ jsxs10(
897
+ SVG8,
898
+ {
899
+ className: "animate-rotate-spinner origin-center fill-none",
900
+ size,
901
+ "aria-hidden": "true",
902
+ role: "img",
903
+ children: [
904
+ /* @__PURE__ */ jsx24(
905
+ "circle",
906
+ {
907
+ cx: "50%",
908
+ cy: "50%",
909
+ r: radius,
910
+ strokeWidth,
911
+ className: "stroke-transparent"
912
+ }
913
+ ),
914
+ /* @__PURE__ */ jsx24(
915
+ "circle",
916
+ {
917
+ cx: "50%",
918
+ cy: "50%",
919
+ r: radius,
920
+ strokeWidth,
921
+ pathLength: "100",
922
+ strokeDasharray: "100 200",
923
+ strokeDashoffset: "0",
924
+ strokeLinecap: "round",
925
+ className: "animate-progress-cycle origin-center -rotate-90 stroke-gray-800"
926
+ }
927
+ )
928
+ ]
929
+ }
930
+ ) });
931
+ };
932
+
933
+ // src/Button/Button.tsx
934
+ import { Fragment as Fragment2, jsx as jsx25, jsxs as jsxs11 } from "react/jsx-runtime";
935
+ var _Button = forwardRef13(
936
+ ({
937
+ children,
938
+ variant,
939
+ size,
940
+ className,
941
+ disabled,
942
+ loading,
943
+ fullWidth,
944
+ ...props
945
+ }, ref) => {
848
946
  const classNames2 = useClassNames10({
849
947
  component: "Button",
850
948
  variant,
851
949
  size,
852
950
  className
853
951
  });
854
- return /* @__PURE__ */ jsx20(
952
+ return /* @__PURE__ */ jsx25(
855
953
  Button2,
856
954
  {
857
955
  ...props,
@@ -859,18 +957,23 @@ var _Button = forwardRef9(
859
957
  className: cn14(
860
958
  "inline-flex items-center justify-center gap-[0.5ch]",
861
959
  classNames2,
862
- fullWidth ? "w-full" : void 0
960
+ fullWidth ? "w-full" : void 0,
961
+ loading && "!cursor-progress"
863
962
  ),
963
+ isPending: loading,
864
964
  isDisabled: disabled,
865
- children
965
+ children: loading ? /* @__PURE__ */ jsxs11(Fragment2, { children: [
966
+ /* @__PURE__ */ jsx25("span", { className: "absolute", children: /* @__PURE__ */ jsx25(ProgressCycle, {}) }),
967
+ /* @__PURE__ */ jsx25("span", { className: "invisible flex gap-[inherit]", children })
968
+ ] }) : children
866
969
  }
867
970
  );
868
971
  }
869
972
  );
870
973
 
871
974
  // src/ComboBox/ComboBox.tsx
872
- import { jsx as jsx21, jsxs as jsxs10 } from "react/jsx-runtime";
873
- var _ComboBox = forwardRef10(
975
+ import { jsx as jsx26, jsxs as jsxs12 } from "react/jsx-runtime";
976
+ var _ComboBox = forwardRef14(
874
977
  ({
875
978
  variant,
876
979
  size,
@@ -895,14 +998,14 @@ var _ComboBox = forwardRef10(
895
998
  ...rest
896
999
  };
897
1000
  const classNames2 = useClassNames11({ component: "ComboBox", variant, size });
898
- return /* @__PURE__ */ jsxs10(FieldBase, { as: ComboBox2, ref, ...props, children: [
899
- /* @__PURE__ */ jsx21(
1001
+ return /* @__PURE__ */ jsxs12(FieldBase, { as: ComboBox2, ref, ...props, children: [
1002
+ /* @__PURE__ */ jsx26(
900
1003
  _Input,
901
1004
  {
902
- action: /* @__PURE__ */ jsx21(_Button, { className: classNames2, children: /* @__PURE__ */ jsx21(ChevronDown, { className: "size-4" }) })
1005
+ action: /* @__PURE__ */ jsx26(_Button, { className: classNames2, children: /* @__PURE__ */ jsx26(ChevronDown, { className: "size-4" }) })
903
1006
  }
904
1007
  ),
905
- /* @__PURE__ */ jsx21(_Popover, { children: /* @__PURE__ */ jsx21(_ListBox, { children }) })
1008
+ /* @__PURE__ */ jsx26(_Popover, { children: /* @__PURE__ */ jsx26(_ListBox, { children }) })
906
1009
  ] });
907
1010
  }
908
1011
  );
@@ -911,15 +1014,15 @@ _ComboBox.Section = _ListBox.Section;
911
1014
 
912
1015
  // src/Badge/Badge.tsx
913
1016
  import { useClassNames as useClassNames12 } from "@marigold/system";
914
- import { jsx as jsx22 } from "react/jsx-runtime";
1017
+ import { jsx as jsx27 } from "react/jsx-runtime";
915
1018
  var Badge = ({ variant, size, children, ...props }) => {
916
1019
  const classNames2 = useClassNames12({ component: "Badge", variant, size });
917
- return /* @__PURE__ */ jsx22("div", { className: classNames2, ...props, children });
1020
+ return /* @__PURE__ */ jsx27("div", { className: classNames2, ...props, children });
918
1021
  };
919
1022
 
920
1023
  // src/Breakout/Breakout.tsx
921
1024
  import { alignment, cn as cn15, createVar as createVar4 } from "@marigold/system";
922
- import { jsx as jsx23 } from "react/jsx-runtime";
1025
+ import { jsx as jsx28 } from "react/jsx-runtime";
923
1026
  var Breakout = ({
924
1027
  height,
925
1028
  children,
@@ -927,7 +1030,7 @@ var Breakout = ({
927
1030
  alignY = "center"
928
1031
  }) => {
929
1032
  var _a, _b, _c, _d;
930
- return /* @__PURE__ */ jsx23(
1033
+ return /* @__PURE__ */ jsx28(
931
1034
  "div",
932
1035
  {
933
1036
  className: cn15(
@@ -945,10 +1048,10 @@ var Breakout = ({
945
1048
 
946
1049
  // src/Body/Body.tsx
947
1050
  import { useClassNames as useClassNames13 } from "@marigold/system";
948
- import { jsx as jsx24 } from "react/jsx-runtime";
1051
+ import { jsx as jsx29 } from "react/jsx-runtime";
949
1052
  var Body = ({ children, variant, size, ...props }) => {
950
1053
  const classNames2 = useClassNames13({ component: "Body", variant, size });
951
- return /* @__PURE__ */ jsx24("section", { ...props, className: classNames2, children });
1054
+ return /* @__PURE__ */ jsx29("section", { ...props, className: classNames2, children });
952
1055
  };
953
1056
 
954
1057
  // src/Card/Card.tsx
@@ -964,7 +1067,7 @@ import {
964
1067
  paddingTop,
965
1068
  useClassNames as useClassNames14
966
1069
  } from "@marigold/system";
967
- import { jsx as jsx25 } from "react/jsx-runtime";
1070
+ import { jsx as jsx30 } from "react/jsx-runtime";
968
1071
  var Card = ({
969
1072
  children,
970
1073
  variant,
@@ -980,7 +1083,7 @@ var Card = ({
980
1083
  ...props
981
1084
  }) => {
982
1085
  const classNames2 = useClassNames14({ component: "Card", variant, size });
983
- return /* @__PURE__ */ jsx25(
1086
+ return /* @__PURE__ */ jsx30(
984
1087
  "div",
985
1088
  {
986
1089
  ...props,
@@ -1003,14 +1106,14 @@ var Card = ({
1003
1106
 
1004
1107
  // src/Center/Center.tsx
1005
1108
  import { cn as cn17, createVar as createVar5, gapSpace as gapSpace3 } from "@marigold/system";
1006
- import { jsx as jsx26 } from "react/jsx-runtime";
1109
+ import { jsx as jsx31 } from "react/jsx-runtime";
1007
1110
  var Center = ({
1008
1111
  maxWidth = "100%",
1009
1112
  space = 0,
1010
1113
  children,
1011
1114
  ...props
1012
1115
  }) => {
1013
- return /* @__PURE__ */ jsx26(
1116
+ return /* @__PURE__ */ jsx31(
1014
1117
  "div",
1015
1118
  {
1016
1119
  ...props,
@@ -1026,17 +1129,17 @@ var Center = ({
1026
1129
  };
1027
1130
 
1028
1131
  // src/Checkbox/Checkbox.tsx
1029
- import { forwardRef as forwardRef11 } from "react";
1132
+ import { forwardRef as forwardRef15 } from "react";
1030
1133
  import { Checkbox } from "react-aria-components";
1031
1134
  import { cn as cn19, useClassNames as useClassNames17 } from "@marigold/system";
1032
1135
 
1033
1136
  // src/Checkbox/CheckBoxField.tsx
1034
1137
  import { createVar as createVar6, useClassNames as useClassNames15 } from "@marigold/system";
1035
- import { jsx as jsx27, jsxs as jsxs11 } from "react/jsx-runtime";
1138
+ import { jsx as jsx32, jsxs as jsxs13 } from "react/jsx-runtime";
1036
1139
  var CheckboxField = ({ children, labelWidth }) => {
1037
1140
  const classNames2 = useClassNames15({ component: "Field" });
1038
- return /* @__PURE__ */ jsxs11("div", { className: classNames2, children: [
1039
- /* @__PURE__ */ jsx27("div", { className: "w-[--labelWidth]", style: createVar6({ labelWidth }) }),
1141
+ return /* @__PURE__ */ jsxs13("div", { className: classNames2, children: [
1142
+ /* @__PURE__ */ jsx32("div", { className: "w-[--labelWidth]", style: createVar6({ labelWidth }) }),
1040
1143
  children
1041
1144
  ] });
1042
1145
  };
@@ -1051,7 +1154,7 @@ var CheckboxGroupContext = createContext4(null);
1051
1154
  var useCheckboxGroupContext = () => useContext5(CheckboxGroupContext);
1052
1155
 
1053
1156
  // src/Checkbox/CheckboxGroup.tsx
1054
- import { jsx as jsx28 } from "react/jsx-runtime";
1157
+ import { jsx as jsx33 } from "react/jsx-runtime";
1055
1158
  var _CheckboxGroup = ({
1056
1159
  children,
1057
1160
  variant,
@@ -1078,7 +1181,7 @@ var _CheckboxGroup = ({
1078
1181
  isInvalid: error,
1079
1182
  ...rest
1080
1183
  };
1081
- return /* @__PURE__ */ jsx28(FieldBase, { as: CheckboxGroup, width, ...props, children: /* @__PURE__ */ jsx28(
1184
+ return /* @__PURE__ */ jsx33(FieldBase, { as: CheckboxGroup, width, ...props, children: /* @__PURE__ */ jsx33(
1082
1185
  "div",
1083
1186
  {
1084
1187
  role: "presentation",
@@ -1088,14 +1191,14 @@ var _CheckboxGroup = ({
1088
1191
  "flex items-start",
1089
1192
  orientation === "vertical" ? "flex-col gap-[0.5ch]" : "flex-row gap-[1.5ch]"
1090
1193
  ),
1091
- children: /* @__PURE__ */ jsx28(CheckboxGroupContext.Provider, { value: { width, variant, size }, children })
1194
+ children: /* @__PURE__ */ jsx33(CheckboxGroupContext.Provider, { value: { width, variant, size }, children })
1092
1195
  }
1093
1196
  ) });
1094
1197
  };
1095
1198
 
1096
1199
  // src/Checkbox/Checkbox.tsx
1097
- import { Fragment as Fragment2, jsx as jsx29, jsxs as jsxs12 } from "react/jsx-runtime";
1098
- var CheckMark = () => /* @__PURE__ */ jsx29("svg", { viewBox: "0 0 12 10", children: /* @__PURE__ */ jsx29(
1200
+ import { Fragment as Fragment3, jsx as jsx34, jsxs as jsxs14 } from "react/jsx-runtime";
1201
+ var CheckMark = () => /* @__PURE__ */ jsx34("svg", { viewBox: "0 0 12 10", children: /* @__PURE__ */ jsx34(
1099
1202
  "path",
1100
1203
  {
1101
1204
  fill: "currentColor",
@@ -1103,7 +1206,7 @@ var CheckMark = () => /* @__PURE__ */ jsx29("svg", { viewBox: "0 0 12 10", child
1103
1206
  d: "M11.915 1.548 10.367 0 4.045 6.315 1.557 3.827 0 5.373l4.045 4.046 7.87-7.871Z"
1104
1207
  }
1105
1208
  ) });
1106
- var IndeterminateMark = () => /* @__PURE__ */ jsx29("svg", { width: "12", height: "3", viewBox: "0 0 12 3", children: /* @__PURE__ */ jsx29(
1209
+ var IndeterminateMark = () => /* @__PURE__ */ jsx34("svg", { width: "12", height: "3", viewBox: "0 0 12 3", children: /* @__PURE__ */ jsx34(
1107
1210
  "path",
1108
1211
  {
1109
1212
  fill: "currentColor",
@@ -1112,7 +1215,7 @@ var IndeterminateMark = () => /* @__PURE__ */ jsx29("svg", { width: "12", height
1112
1215
  }
1113
1216
  ) });
1114
1217
  var Icon2 = ({ className, checked, indeterminate, ...props }) => {
1115
- return /* @__PURE__ */ jsx29(
1218
+ return /* @__PURE__ */ jsx34(
1116
1219
  "div",
1117
1220
  {
1118
1221
  "aria-hidden": "true",
@@ -1124,11 +1227,11 @@ var Icon2 = ({ className, checked, indeterminate, ...props }) => {
1124
1227
  className
1125
1228
  ),
1126
1229
  ...props,
1127
- children: indeterminate ? /* @__PURE__ */ jsx29(IndeterminateMark, {}) : checked ? /* @__PURE__ */ jsx29(CheckMark, {}) : null
1230
+ children: indeterminate ? /* @__PURE__ */ jsx34(IndeterminateMark, {}) : checked ? /* @__PURE__ */ jsx34(CheckMark, {}) : null
1128
1231
  }
1129
1232
  );
1130
1233
  };
1131
- var _Checkbox = forwardRef11(
1234
+ var _Checkbox = forwardRef15(
1132
1235
  ({
1133
1236
  error,
1134
1237
  disabled,
@@ -1159,7 +1262,7 @@ var _Checkbox = forwardRef11(
1159
1262
  variant: variant || (group == null ? void 0 : group.variant),
1160
1263
  size: size || (group == null ? void 0 : group.size)
1161
1264
  });
1162
- const component = /* @__PURE__ */ jsx29(
1265
+ const component = /* @__PURE__ */ jsx34(
1163
1266
  Checkbox,
1164
1267
  {
1165
1268
  ref,
@@ -1169,8 +1272,8 @@ var _Checkbox = forwardRef11(
1169
1272
  classNames2.container
1170
1273
  ),
1171
1274
  ...props,
1172
- children: ({ isSelected, isIndeterminate }) => /* @__PURE__ */ jsxs12(Fragment2, { children: [
1173
- /* @__PURE__ */ jsx29(
1275
+ children: ({ isSelected, isIndeterminate }) => /* @__PURE__ */ jsxs14(Fragment3, { children: [
1276
+ /* @__PURE__ */ jsx34(
1174
1277
  Icon2,
1175
1278
  {
1176
1279
  checked: isSelected,
@@ -1178,11 +1281,11 @@ var _Checkbox = forwardRef11(
1178
1281
  className: classNames2.checkbox
1179
1282
  }
1180
1283
  ),
1181
- children ? /* @__PURE__ */ jsx29("div", { className: classNames2.label, children }) : null
1284
+ children ? /* @__PURE__ */ jsx34("div", { className: classNames2.label, children }) : null
1182
1285
  ] })
1183
1286
  }
1184
1287
  );
1185
- return !group && !!labelWidth ? /* @__PURE__ */ jsx29(CheckboxField, { labelWidth, children: component }) : component;
1288
+ return !group && !!labelWidth ? /* @__PURE__ */ jsx34(CheckboxField, { labelWidth, children: component }) : component;
1186
1289
  }
1187
1290
  );
1188
1291
  _Checkbox.Group = _CheckboxGroup;
@@ -1190,7 +1293,7 @@ _Checkbox.Group = _CheckboxGroup;
1190
1293
  // src/Columns/Columns.tsx
1191
1294
  import { Children as Children3 } from "react";
1192
1295
  import { cn as cn20, createVar as createVar7, gapSpace as gapSpace4 } from "@marigold/system";
1193
- import { jsx as jsx30 } from "react/jsx-runtime";
1296
+ import { jsx as jsx35 } from "react/jsx-runtime";
1194
1297
  var Columns = ({
1195
1298
  space = 0,
1196
1299
  columns,
@@ -1206,7 +1309,7 @@ var Columns = ({
1206
1309
  )}`
1207
1310
  );
1208
1311
  }
1209
- return /* @__PURE__ */ jsx30(
1312
+ return /* @__PURE__ */ jsx35(
1210
1313
  "div",
1211
1314
  {
1212
1315
  className: cn20(
@@ -1215,7 +1318,7 @@ var Columns = ({
1215
1318
  gapSpace4[space]
1216
1319
  ),
1217
1320
  ...props,
1218
- children: Children3.map(children, (child, idx) => /* @__PURE__ */ jsx30(
1321
+ children: Children3.map(children, (child, idx) => /* @__PURE__ */ jsx35(
1219
1322
  "div",
1220
1323
  {
1221
1324
  className: cn20(
@@ -1241,7 +1344,7 @@ import {
1241
1344
  gridColumn,
1242
1345
  placeItems
1243
1346
  } from "@marigold/system";
1244
- import { jsx as jsx31 } from "react/jsx-runtime";
1347
+ import { jsx as jsx36 } from "react/jsx-runtime";
1245
1348
  var content = {
1246
1349
  small: "20ch",
1247
1350
  medium: "45ch",
@@ -1261,7 +1364,7 @@ var Container = ({
1261
1364
  ...props
1262
1365
  }) => {
1263
1366
  const maxWidth = contentType === "content" ? content[size] : header[size];
1264
- return /* @__PURE__ */ jsx31(
1367
+ return /* @__PURE__ */ jsx36(
1265
1368
  "div",
1266
1369
  {
1267
1370
  ...props,
@@ -1284,22 +1387,22 @@ import { cn as cn26, useClassNames as useClassNames23 } from "@marigold/system";
1284
1387
 
1285
1388
  // src/Dialog/DialogActions.tsx
1286
1389
  import { cn as cn22, useClassNames as useClassNames18 } from "@marigold/system";
1287
- import { jsx as jsx32 } from "react/jsx-runtime";
1390
+ import { jsx as jsx37 } from "react/jsx-runtime";
1288
1391
  var DialogActions = ({ variant, size, children }) => {
1289
1392
  const classNames2 = useClassNames18({ component: "Dialog", variant, size });
1290
- return /* @__PURE__ */ jsx32("div", { className: cn22("[grid-area:actions]", classNames2.actions), children });
1393
+ return /* @__PURE__ */ jsx37("div", { className: cn22("[grid-area:actions]", classNames2.actions), children });
1291
1394
  };
1292
1395
 
1293
1396
  // src/Dialog/DialogContent.tsx
1294
1397
  import { cn as cn23, useClassNames as useClassNames19 } from "@marigold/system";
1295
- import { jsx as jsx33 } from "react/jsx-runtime";
1398
+ import { jsx as jsx38 } from "react/jsx-runtime";
1296
1399
  var DialogContent = ({
1297
1400
  variant,
1298
1401
  size,
1299
1402
  children
1300
1403
  }) => {
1301
1404
  const classNames2 = useClassNames19({ component: "Dialog", variant, size });
1302
- return /* @__PURE__ */ jsx33("div", { className: cn23("[grid-area:content]", classNames2.content), children });
1405
+ return /* @__PURE__ */ jsx38("div", { className: cn23("[grid-area:content]", classNames2.content), children });
1303
1406
  };
1304
1407
 
1305
1408
  // src/Dialog/DialogTitle.tsx
@@ -1308,14 +1411,14 @@ import { cn as cn25, useClassNames as useClassNames22 } from "@marigold/system";
1308
1411
  // src/Header/Header.tsx
1309
1412
  import { Header as Header2 } from "react-aria-components";
1310
1413
  import { useClassNames as useClassNames20 } from "@marigold/system";
1311
- import { jsx as jsx34 } from "react/jsx-runtime";
1414
+ import { jsx as jsx39 } from "react/jsx-runtime";
1312
1415
  var _Header = ({ variant, size, ...props }) => {
1313
1416
  const classNames2 = useClassNames20({
1314
1417
  component: "Header",
1315
1418
  variant,
1316
1419
  size
1317
1420
  });
1318
- return /* @__PURE__ */ jsx34(Header2, { className: classNames2, ...props, children: props.children });
1421
+ return /* @__PURE__ */ jsx39(Header2, { className: classNames2, ...props, children: props.children });
1319
1422
  };
1320
1423
 
1321
1424
  // src/Headline/Headline.tsx
@@ -1328,7 +1431,7 @@ import {
1328
1431
  useClassNames as useClassNames21,
1329
1432
  useTheme as useTheme2
1330
1433
  } from "@marigold/system";
1331
- import { jsx as jsx35 } from "react/jsx-runtime";
1434
+ import { jsx as jsx40 } from "react/jsx-runtime";
1332
1435
  var _Headline = ({
1333
1436
  variant,
1334
1437
  size,
@@ -1344,7 +1447,7 @@ var _Headline = ({
1344
1447
  variant,
1345
1448
  size: size != null ? size : `level-${level}`
1346
1449
  });
1347
- return /* @__PURE__ */ jsx35(
1450
+ return /* @__PURE__ */ jsx40(
1348
1451
  Heading,
1349
1452
  {
1350
1453
  level: Number(level),
@@ -1364,7 +1467,7 @@ var _Headline = ({
1364
1467
  };
1365
1468
 
1366
1469
  // src/Dialog/DialogTitle.tsx
1367
- import { jsx as jsx36 } from "react/jsx-runtime";
1470
+ import { jsx as jsx41 } from "react/jsx-runtime";
1368
1471
  var DialogTitle = ({
1369
1472
  level = "2",
1370
1473
  variant,
@@ -1372,7 +1475,7 @@ var DialogTitle = ({
1372
1475
  children
1373
1476
  }) => {
1374
1477
  const classNames2 = useClassNames22({ component: "Dialog", variant, size });
1375
- return /* @__PURE__ */ jsx36(_Header, { className: cn25("[grid-area:title]", classNames2.header), children: /* @__PURE__ */ jsx36(_Headline, { slot: "title", level, children }) });
1478
+ return /* @__PURE__ */ jsx41(_Header, { className: cn25("[grid-area:title]", classNames2.header), children: /* @__PURE__ */ jsx41(_Headline, { slot: "title", level, children }) });
1376
1479
  };
1377
1480
 
1378
1481
  // src/Dialog/DialogTrigger.tsx
@@ -1380,24 +1483,24 @@ import { Children as Children4 } from "react";
1380
1483
  import { DialogTrigger } from "react-aria-components";
1381
1484
 
1382
1485
  // src/Overlay/Modal.tsx
1383
- import { forwardRef as forwardRef12 } from "react";
1486
+ import { forwardRef as forwardRef16 } from "react";
1384
1487
  import { Modal } from "react-aria-components";
1385
- import { jsx as jsx37 } from "react/jsx-runtime";
1386
- var _Modal = forwardRef12(({ open, dismissable, keyboardDismissable, ...rest }, ref) => {
1488
+ import { jsx as jsx42 } from "react/jsx-runtime";
1489
+ var _Modal = forwardRef16(({ open, dismissable, keyboardDismissable, ...rest }, ref) => {
1387
1490
  const props = {
1388
1491
  isOpen: open,
1389
1492
  isDismissable: dismissable,
1390
1493
  isKeyboardDismissDisabled: keyboardDismissable,
1391
1494
  ...rest
1392
1495
  };
1393
- return /* @__PURE__ */ jsx37(
1496
+ return /* @__PURE__ */ jsx42(
1394
1497
  Underlay,
1395
1498
  {
1396
1499
  dismissable,
1397
1500
  keyboardDismissable,
1398
1501
  open,
1399
1502
  variant: "modal",
1400
- children: /* @__PURE__ */ jsx37(
1503
+ children: /* @__PURE__ */ jsx42(
1401
1504
  Modal,
1402
1505
  {
1403
1506
  ref,
@@ -1411,7 +1514,7 @@ var _Modal = forwardRef12(({ open, dismissable, keyboardDismissable, ...rest },
1411
1514
  });
1412
1515
 
1413
1516
  // src/Dialog/DialogTrigger.tsx
1414
- import { jsx as jsx38, jsxs as jsxs13 } from "react/jsx-runtime";
1517
+ import { jsx as jsx43, jsxs as jsxs15 } from "react/jsx-runtime";
1415
1518
  var _DialogTrigger = ({
1416
1519
  open,
1417
1520
  dismissable,
@@ -1428,10 +1531,10 @@ var _DialogTrigger = ({
1428
1531
  const hasDialogTrigger = dialogTrigger.type !== _Dialog;
1429
1532
  const currentDialog = children.length < 2 ? !hasDialogTrigger && dialogTrigger : dialog;
1430
1533
  if (isNonModal)
1431
- return /* @__PURE__ */ jsx38(DialogTrigger, { ...props, children: props.children });
1432
- return /* @__PURE__ */ jsxs13(DialogTrigger, { ...props, children: [
1534
+ return /* @__PURE__ */ jsx43(DialogTrigger, { ...props, children: props.children });
1535
+ return /* @__PURE__ */ jsxs15(DialogTrigger, { ...props, children: [
1433
1536
  hasDialogTrigger && dialogTrigger,
1434
- /* @__PURE__ */ jsx38(
1537
+ /* @__PURE__ */ jsx43(
1435
1538
  _Modal,
1436
1539
  {
1437
1540
  dismissable,
@@ -1443,19 +1546,19 @@ var _DialogTrigger = ({
1443
1546
  };
1444
1547
 
1445
1548
  // src/Dialog/Dialog.tsx
1446
- import { jsx as jsx39, jsxs as jsxs14 } from "react/jsx-runtime";
1549
+ import { jsx as jsx44, jsxs as jsxs16 } from "react/jsx-runtime";
1447
1550
  var CloseButton = ({ className }) => {
1448
- const { close } = useContext6(OverlayTriggerStateContext);
1449
- return /* @__PURE__ */ jsx39("div", { className: "absolute right-4 top-4 ml-4", children: /* @__PURE__ */ jsx39(
1551
+ const ctx = useContext6(OverlayTriggerStateContext);
1552
+ return /* @__PURE__ */ jsx44("div", { className: "absolute right-4 top-4 ml-4", children: /* @__PURE__ */ jsx44(
1450
1553
  "button",
1451
1554
  {
1452
1555
  className: cn26(
1453
1556
  "h-4 w-4 cursor-pointer border-none p-0 leading-normal outline-0",
1454
1557
  className
1455
1558
  ),
1456
- onClick: close,
1559
+ onClick: ctx == null ? void 0 : ctx.close,
1457
1560
  slot: "dismiss-button",
1458
- children: /* @__PURE__ */ jsx39("svg", { viewBox: "0 0 20 20", fill: "currentColor", children: /* @__PURE__ */ jsx39(
1561
+ children: /* @__PURE__ */ jsx44("svg", { viewBox: "0 0 20 20", fill: "currentColor", children: /* @__PURE__ */ jsx44(
1459
1562
  "path",
1460
1563
  {
1461
1564
  fillRule: "evenodd",
@@ -1473,12 +1576,14 @@ var _Dialog = ({
1473
1576
  isNonModal,
1474
1577
  ...props
1475
1578
  }) => {
1579
+ var _a;
1476
1580
  const classNames2 = useClassNames23({ component: "Dialog", variant, size });
1477
1581
  const state = useContext6(OverlayTriggerStateContext);
1478
1582
  const children = typeof props.children === "function" ? props.children({
1479
- close: state == null ? void 0 : state.close
1583
+ close: (_a = state == null ? void 0 : state.close) != null ? _a : () => {
1584
+ }
1480
1585
  }) : props.children;
1481
- return /* @__PURE__ */ jsxs14(
1586
+ return /* @__PURE__ */ jsxs16(
1482
1587
  Dialog,
1483
1588
  {
1484
1589
  ...props,
@@ -1488,7 +1593,7 @@ var _Dialog = ({
1488
1593
  classNames2.container
1489
1594
  ),
1490
1595
  children: [
1491
- closeButton && /* @__PURE__ */ jsx39(CloseButton, { className: classNames2.closeButton }),
1596
+ closeButton && /* @__PURE__ */ jsx44(CloseButton, { className: classNames2.closeButton }),
1492
1597
  children
1493
1598
  ]
1494
1599
  }
@@ -1502,18 +1607,18 @@ _Dialog.Actions = DialogActions;
1502
1607
  // src/Divider/Divider.tsx
1503
1608
  import { Separator } from "react-aria-components";
1504
1609
  import { cn as cn27, useClassNames as useClassNames24 } from "@marigold/system";
1505
- import { jsx as jsx40 } from "react/jsx-runtime";
1610
+ import { jsx as jsx45 } from "react/jsx-runtime";
1506
1611
  var _Divider = ({ variant, ...props }) => {
1507
1612
  const classNames2 = useClassNames24({ component: "Divider", variant });
1508
- return /* @__PURE__ */ jsx40(Separator, { className: cn27("border-none", classNames2), ...props });
1613
+ return /* @__PURE__ */ jsx45(Separator, { className: cn27("border-none", classNames2), ...props });
1509
1614
  };
1510
1615
 
1511
1616
  // src/Footer/Footer.tsx
1512
1617
  import { useClassNames as useClassNames25 } from "@marigold/system";
1513
- import { jsx as jsx41 } from "react/jsx-runtime";
1618
+ import { jsx as jsx46 } from "react/jsx-runtime";
1514
1619
  var Footer = ({ children, variant, size, ...props }) => {
1515
1620
  const classNames2 = useClassNames25({ component: "Footer", variant, size });
1516
- return /* @__PURE__ */ jsx41("footer", { ...props, className: classNames2, children });
1621
+ return /* @__PURE__ */ jsx46("footer", { ...props, className: classNames2, children });
1517
1622
  };
1518
1623
 
1519
1624
  // src/Form/Form.tsx
@@ -1523,11 +1628,11 @@ import { Form } from "react-aria-components";
1523
1628
  import { cn as cn28, gapSpace as gapSpace5, height as twHeight } from "@marigold/system";
1524
1629
 
1525
1630
  // src/Grid/GridArea.tsx
1526
- import { jsx as jsx42 } from "react/jsx-runtime";
1527
- var GridArea = ({ name, children }) => /* @__PURE__ */ jsx42("div", { style: { gridArea: name }, children });
1631
+ import { jsx as jsx47 } from "react/jsx-runtime";
1632
+ var GridArea = ({ name, children }) => /* @__PURE__ */ jsx47("div", { style: { gridArea: name }, children });
1528
1633
 
1529
1634
  // src/Grid/Grid.tsx
1530
- import { jsx as jsx43 } from "react/jsx-runtime";
1635
+ import { jsx as jsx48 } from "react/jsx-runtime";
1531
1636
  var parseGridAreas = (areas) => areas.map((area) => `"${area}"`).join("\n");
1532
1637
  var parseTemplateValue = (values) => values.map((val) => typeof val === "number" ? `${val}fr` : val).join(" ");
1533
1638
  var Grid = ({
@@ -1539,7 +1644,7 @@ var Grid = ({
1539
1644
  space = 0,
1540
1645
  ...props
1541
1646
  }) => {
1542
- return /* @__PURE__ */ jsx43(
1647
+ return /* @__PURE__ */ jsx48(
1543
1648
  "div",
1544
1649
  {
1545
1650
  className: cn28("grid", gapSpace5[space], twHeight[height]),
@@ -1562,7 +1667,7 @@ import {
1562
1667
  objectPosition,
1563
1668
  useClassNames as useClassNames26
1564
1669
  } from "@marigold/system";
1565
- import { jsx as jsx44 } from "react/jsx-runtime";
1670
+ import { jsx as jsx49 } from "react/jsx-runtime";
1566
1671
  var Image = ({
1567
1672
  variant,
1568
1673
  size,
@@ -1571,7 +1676,7 @@ var Image = ({
1571
1676
  ...props
1572
1677
  }) => {
1573
1678
  const classNames2 = useClassNames26({ component: "Image", variant, size });
1574
- return /* @__PURE__ */ jsx44(
1679
+ return /* @__PURE__ */ jsx49(
1575
1680
  "img",
1576
1681
  {
1577
1682
  ...props,
@@ -1588,7 +1693,7 @@ var Image = ({
1588
1693
 
1589
1694
  // src/Inline/Inline.tsx
1590
1695
  import { alignment as alignment2, cn as cn30, gapSpace as gapSpace6 } from "@marigold/system";
1591
- import { jsx as jsx45 } from "react/jsx-runtime";
1696
+ import { jsx as jsx50 } from "react/jsx-runtime";
1592
1697
  var Inline = ({
1593
1698
  space = 0,
1594
1699
  alignX,
@@ -1597,7 +1702,7 @@ var Inline = ({
1597
1702
  ...props
1598
1703
  }) => {
1599
1704
  var _a, _b, _c, _d;
1600
- return /* @__PURE__ */ jsx45(
1705
+ return /* @__PURE__ */ jsx50(
1601
1706
  "div",
1602
1707
  {
1603
1708
  ...props,
@@ -1613,7 +1718,7 @@ var Inline = ({
1613
1718
  };
1614
1719
 
1615
1720
  // src/DateField/DateField.tsx
1616
- import { forwardRef as forwardRef13 } from "react";
1721
+ import { forwardRef as forwardRef17 } from "react";
1617
1722
  import { DateField } from "react-aria-components";
1618
1723
 
1619
1724
  // src/DateField/DateInput.tsx
@@ -1623,9 +1728,9 @@ import { useClassNames as useClassNames27 } from "@marigold/system";
1623
1728
  // src/DateField/DateSegment.tsx
1624
1729
  import { DateSegment } from "react-aria-components";
1625
1730
  import { cn as cn31 } from "@marigold/system";
1626
- import { Fragment as Fragment3, jsx as jsx46, jsxs as jsxs15 } from "react/jsx-runtime";
1731
+ import { Fragment as Fragment4, jsx as jsx51, jsxs as jsxs17 } from "react/jsx-runtime";
1627
1732
  var _DateSegment = ({ segment, ...props }) => {
1628
- return /* @__PURE__ */ jsx46(
1733
+ return /* @__PURE__ */ jsx51(
1629
1734
  DateSegment,
1630
1735
  {
1631
1736
  ...props,
@@ -1633,8 +1738,8 @@ var _DateSegment = ({ segment, ...props }) => {
1633
1738
  style: {
1634
1739
  minWidth: segment.maxValue != null ? `${String(segment.maxValue).length}ch` : void 0
1635
1740
  },
1636
- children: ({ text, placeholder, isPlaceholder }) => /* @__PURE__ */ jsxs15(Fragment3, { children: [
1637
- /* @__PURE__ */ jsx46(
1741
+ children: ({ text, placeholder, isPlaceholder }) => /* @__PURE__ */ jsxs17(Fragment4, { children: [
1742
+ /* @__PURE__ */ jsx51(
1638
1743
  "span",
1639
1744
  {
1640
1745
  "aria-hidden": "true",
@@ -1645,19 +1750,19 @@ var _DateSegment = ({ segment, ...props }) => {
1645
1750
  children: isPlaceholder && (placeholder == null ? void 0 : placeholder.toUpperCase())
1646
1751
  }
1647
1752
  ),
1648
- /* @__PURE__ */ jsx46("span", { children: isPlaceholder ? "" : segment.type === "month" || segment.type === "day" ? segment.text.padStart(2, "0") : text })
1753
+ /* @__PURE__ */ jsx51("span", { children: isPlaceholder ? "" : segment.type === "month" || segment.type === "day" ? segment.text.padStart(2, "0") : text })
1649
1754
  ] })
1650
1755
  }
1651
1756
  );
1652
1757
  };
1653
1758
 
1654
1759
  // src/DateField/DateInput.tsx
1655
- import { jsx as jsx47, jsxs as jsxs16 } from "react/jsx-runtime";
1760
+ import { jsx as jsx52, jsxs as jsxs18 } from "react/jsx-runtime";
1656
1761
  var _DateInput = ({ variant, size, action, ...props }) => {
1657
1762
  const classNames2 = useClassNames27({ component: "DateField", variant, size });
1658
- return /* @__PURE__ */ jsxs16(Group, { className: classNames2.field, children: [
1659
- /* @__PURE__ */ jsx47(DateInput, { className: "flex flex-1 items-center", ...props, children: (segment) => /* @__PURE__ */ jsx47(_DateSegment, { className: classNames2.segment, segment }) }),
1660
- action ? action : /* @__PURE__ */ jsx47("div", { className: "flex items-center justify-center", children: /* @__PURE__ */ jsx47(
1763
+ return /* @__PURE__ */ jsxs18(Group, { className: classNames2.field, children: [
1764
+ /* @__PURE__ */ jsx52(DateInput, { className: "flex flex-1 items-center", ...props, children: (segment) => /* @__PURE__ */ jsx52(_DateSegment, { className: classNames2.segment, segment }) }),
1765
+ action ? action : /* @__PURE__ */ jsx52("div", { className: "flex items-center justify-center", children: /* @__PURE__ */ jsx52(
1661
1766
  "svg",
1662
1767
  {
1663
1768
  "data-testid": "action",
@@ -1665,15 +1770,15 @@ var _DateInput = ({ variant, size, action, ...props }) => {
1665
1770
  viewBox: "0 0 24 24",
1666
1771
  width: 24,
1667
1772
  height: 24,
1668
- children: /* @__PURE__ */ jsx47("path", { d: "M20.0906 19.2V6.6C20.0906 5.61 19.2806 4.8 18.2906 4.8H17.3906V3H15.5906V4.8H8.39062V3H6.59062V4.8H5.69063C4.69163 4.8 3.89962 5.61 3.89962 6.6L3.89062 19.2C3.89062 20.19 4.69163 21 5.69063 21H18.2906C19.2806 21 20.0906 20.19 20.0906 19.2ZM9.29062 11.1001H7.49061V12.9001H9.29062V11.1001ZM5.69062 8.40009H18.2906V6.60008H5.69062V8.40009ZM18.2906 10.2V19.2H5.69062V10.2H18.2906ZM14.6906 12.9001H16.4906V11.1001H14.6906V12.9001ZM12.8906 12.9001H11.0906V11.1001H12.8906V12.9001Z" })
1773
+ children: /* @__PURE__ */ jsx52("path", { d: "M20.0906 19.2V6.6C20.0906 5.61 19.2806 4.8 18.2906 4.8H17.3906V3H15.5906V4.8H8.39062V3H6.59062V4.8H5.69063C4.69163 4.8 3.89962 5.61 3.89962 6.6L3.89062 19.2C3.89062 20.19 4.69163 21 5.69063 21H18.2906C19.2806 21 20.0906 20.19 20.0906 19.2ZM9.29062 11.1001H7.49061V12.9001H9.29062V11.1001ZM5.69062 8.40009H18.2906V6.60008H5.69062V8.40009ZM18.2906 10.2V19.2H5.69062V10.2H18.2906ZM14.6906 12.9001H16.4906V11.1001H14.6906V12.9001ZM12.8906 12.9001H11.0906V11.1001H12.8906V12.9001Z" })
1669
1774
  }
1670
1775
  ) })
1671
1776
  ] });
1672
1777
  };
1673
1778
 
1674
1779
  // src/DateField/DateField.tsx
1675
- import { jsx as jsx48 } from "react/jsx-runtime";
1676
- var _DateField = forwardRef13(
1780
+ import { jsx as jsx53 } from "react/jsx-runtime";
1781
+ var _DateField = forwardRef17(
1677
1782
  ({
1678
1783
  variant,
1679
1784
  size,
@@ -1691,7 +1796,7 @@ var _DateField = forwardRef13(
1691
1796
  isRequired: required,
1692
1797
  ...rest
1693
1798
  };
1694
- return /* @__PURE__ */ jsx48(
1799
+ return /* @__PURE__ */ jsx53(
1695
1800
  FieldBase,
1696
1801
  {
1697
1802
  as: DateField,
@@ -1699,7 +1804,7 @@ var _DateField = forwardRef13(
1699
1804
  size,
1700
1805
  ref,
1701
1806
  ...props,
1702
- children: /* @__PURE__ */ jsx48(_DateInput, { action })
1807
+ children: /* @__PURE__ */ jsx53(_DateInput, { action })
1703
1808
  }
1704
1809
  );
1705
1810
  }
@@ -1725,7 +1830,7 @@ import { CalendarStateContext } from "react-aria-components";
1725
1830
  import { useCalendarGrid } from "@react-aria/calendar";
1726
1831
  import { useDateFormatter, useLocale } from "@react-aria/i18n";
1727
1832
  import { useClassNames as useClassNames28 } from "@marigold/system";
1728
- import { jsx as jsx49 } from "react/jsx-runtime";
1833
+ import { jsx as jsx54 } from "react/jsx-runtime";
1729
1834
  function CalendarGridHeader(props) {
1730
1835
  const state = useContext7(CalendarStateContext);
1731
1836
  const { headerProps } = useCalendarGrid(props, state);
@@ -1743,16 +1848,16 @@ function CalendarGridHeader(props) {
1743
1848
  });
1744
1849
  }, [locale, state.timeZone, dayFormatter]);
1745
1850
  const classNames2 = useClassNames28({ component: "Calendar" });
1746
- return /* @__PURE__ */ jsx49("thead", { ...headerProps, children: /* @__PURE__ */ jsx49("tr", { children: weekDays.map((day, index) => /* @__PURE__ */ jsx49("th", { className: classNames2.calendarHeader, children: day.substring(0, 2) }, index)) }) });
1851
+ return /* @__PURE__ */ jsx54("thead", { ...headerProps, children: /* @__PURE__ */ jsx54("tr", { children: weekDays.map((day, index) => /* @__PURE__ */ jsx54("th", { className: classNames2.calendarHeader, children: day.substring(0, 2) }, index)) }) });
1747
1852
  }
1748
1853
 
1749
1854
  // src/Calendar/CalendarGrid.tsx
1750
- import { jsx as jsx50, jsxs as jsxs17 } from "react/jsx-runtime";
1855
+ import { jsx as jsx55, jsxs as jsxs19 } from "react/jsx-runtime";
1751
1856
  var _CalendarGrid = () => {
1752
1857
  const classNames2 = useClassNames29({ component: "Calendar" });
1753
- return /* @__PURE__ */ jsxs17(CalendarGrid, { className: classNames2.calendarGrid, children: [
1754
- /* @__PURE__ */ jsx50(CalendarGridHeader, {}),
1755
- /* @__PURE__ */ jsx50(CalendarGridBody, { children: (date) => /* @__PURE__ */ jsx50(
1858
+ return /* @__PURE__ */ jsxs19(CalendarGrid, { className: classNames2.calendarGrid, children: [
1859
+ /* @__PURE__ */ jsx55(CalendarGridHeader, {}),
1860
+ /* @__PURE__ */ jsx55(CalendarGridBody, { children: (date) => /* @__PURE__ */ jsx55(
1756
1861
  CalendarCell,
1757
1862
  {
1758
1863
  date,
@@ -1768,7 +1873,6 @@ var _CalendarGrid = () => {
1768
1873
  // src/Calendar/CalendarListBox.tsx
1769
1874
  import { useContext as useContext8 } from "react";
1770
1875
  import { CalendarStateContext as CalendarStateContext2 } from "react-aria-components";
1771
- import { ChevronDown as ChevronDown2 } from "@marigold/icons";
1772
1876
  import { cn as cn33, useClassNames as useClassNames30 } from "@marigold/system";
1773
1877
 
1774
1878
  // src/Calendar/useFormattedMonths.tsx
@@ -1788,7 +1892,7 @@ function useFormattedMonths(timeZone, focusedDate) {
1788
1892
  }
1789
1893
 
1790
1894
  // src/Calendar/CalendarListBox.tsx
1791
- import { jsx as jsx51, jsxs as jsxs18 } from "react/jsx-runtime";
1895
+ import { jsx as jsx56, jsxs as jsxs20 } from "react/jsx-runtime";
1792
1896
  function CalendarListBox({
1793
1897
  type,
1794
1898
  isDisabled,
@@ -1798,7 +1902,7 @@ function CalendarListBox({
1798
1902
  const months = useFormattedMonths(state.timeZone, state.focusedDate);
1799
1903
  const buttonStyles = "flex items-center justify-between gap-1 overflow-hidden";
1800
1904
  const { select: selectClassNames } = useClassNames30({ component: "Select" });
1801
- return /* @__PURE__ */ jsxs18(
1905
+ return /* @__PURE__ */ jsxs20(
1802
1906
  "button",
1803
1907
  {
1804
1908
  disabled: isDisabled,
@@ -1807,7 +1911,7 @@ function CalendarListBox({
1807
1911
  "data-testid": type,
1808
1912
  children: [
1809
1913
  type === "month" ? months[state.focusedDate.month - 1].substring(0, 3) : state.focusedDate.year,
1810
- /* @__PURE__ */ jsx51(ChevronDown2, {})
1914
+ /* @__PURE__ */ jsx56(ChevronDown, {})
1811
1915
  ]
1812
1916
  }
1813
1917
  );
@@ -1815,13 +1919,12 @@ function CalendarListBox({
1815
1919
 
1816
1920
  // src/Calendar/MonthControls.tsx
1817
1921
  import { Button as Button3 } from "react-aria-components";
1818
- import { ChevronLeft, ChevronRight } from "@marigold/icons";
1819
1922
  import { cn as cn34, useClassNames as useClassNames31 } from "@marigold/system";
1820
- import { jsx as jsx52, jsxs as jsxs19 } from "react/jsx-runtime";
1923
+ import { jsx as jsx57, jsxs as jsxs21 } from "react/jsx-runtime";
1821
1924
  function MonthControls() {
1822
1925
  const classNames2 = useClassNames31({ component: "Calendar" });
1823
1926
  const buttonClassNames = useClassNames31({ component: "Button" });
1824
- return /* @__PURE__ */ jsxs19(
1927
+ return /* @__PURE__ */ jsxs21(
1825
1928
  "div",
1826
1929
  {
1827
1930
  className: cn34(
@@ -1829,7 +1932,7 @@ function MonthControls() {
1829
1932
  classNames2.calendarControllers
1830
1933
  ),
1831
1934
  children: [
1832
- /* @__PURE__ */ jsx52(
1935
+ /* @__PURE__ */ jsx57(
1833
1936
  Button3,
1834
1937
  {
1835
1938
  className: cn34(
@@ -1837,10 +1940,10 @@ function MonthControls() {
1837
1940
  buttonClassNames
1838
1941
  ),
1839
1942
  slot: "previous",
1840
- children: /* @__PURE__ */ jsx52(ChevronLeft, {})
1943
+ children: /* @__PURE__ */ jsx57(ChevronLeft, {})
1841
1944
  }
1842
1945
  ),
1843
- /* @__PURE__ */ jsx52(
1946
+ /* @__PURE__ */ jsx57(
1844
1947
  Button3,
1845
1948
  {
1846
1949
  className: cn34(
@@ -1848,7 +1951,7 @@ function MonthControls() {
1848
1951
  buttonClassNames
1849
1952
  ),
1850
1953
  slot: "next",
1851
- children: /* @__PURE__ */ jsx52(ChevronRight, {})
1954
+ children: /* @__PURE__ */ jsx57(ChevronRight, {})
1852
1955
  }
1853
1956
  )
1854
1957
  ]
@@ -1860,7 +1963,7 @@ var MonthControls_default = MonthControls;
1860
1963
  // src/Calendar/MonthListBox.tsx
1861
1964
  import { useContext as useContext9 } from "react";
1862
1965
  import { CalendarStateContext as CalendarStateContext3 } from "react-aria-components";
1863
- import { jsx as jsx53 } from "react/jsx-runtime";
1966
+ import { jsx as jsx58 } from "react/jsx-runtime";
1864
1967
  var MonthListBox = ({ setSelectedDropdown }) => {
1865
1968
  const state = useContext9(CalendarStateContext3);
1866
1969
  const months = useFormattedMonths(state.timeZone, state.focusedDate);
@@ -1869,13 +1972,13 @@ var MonthListBox = ({ setSelectedDropdown }) => {
1869
1972
  let date = state.focusedDate.set({ month: value });
1870
1973
  state.setFocusedDate(date);
1871
1974
  };
1872
- return /* @__PURE__ */ jsx53(
1975
+ return /* @__PURE__ */ jsx58(
1873
1976
  "ul",
1874
1977
  {
1875
1978
  "data-testid": "monthOptions",
1876
1979
  className: "grid h-full max-h-[300px] min-w-[300px] grid-cols-3 gap-y-10 overflow-y-scroll p-2",
1877
1980
  children: months.map((month, index) => {
1878
- return /* @__PURE__ */ jsx53("li", { className: "flex justify-center", children: /* @__PURE__ */ jsx53(
1981
+ return /* @__PURE__ */ jsx58("li", { className: "flex justify-center", children: /* @__PURE__ */ jsx58(
1879
1982
  _Button,
1880
1983
  {
1881
1984
  slot: "previous",
@@ -1903,7 +2006,7 @@ import {
1903
2006
  } from "react";
1904
2007
  import { CalendarStateContext as CalendarStateContext4 } from "react-aria-components";
1905
2008
  import { useDateFormatter as useDateFormatter3 } from "@react-aria/i18n";
1906
- import { jsx as jsx54 } from "react/jsx-runtime";
2009
+ import { jsx as jsx59 } from "react/jsx-runtime";
1907
2010
  var YearListBox = ({ setSelectedDropdown }) => {
1908
2011
  const state = useContext10(CalendarStateContext4);
1909
2012
  const years = [];
@@ -1933,19 +2036,19 @@ var YearListBox = ({ setSelectedDropdown }) => {
1933
2036
  let date = years[index].value;
1934
2037
  state.setFocusedDate(date);
1935
2038
  };
1936
- return /* @__PURE__ */ jsx54(
2039
+ return /* @__PURE__ */ jsx59(
1937
2040
  "ul",
1938
2041
  {
1939
2042
  "data-testid": "yearOptions",
1940
2043
  className: "grid h-full max-h-[300px] min-w-[300px] grid-cols-3 gap-y-10 overflow-y-scroll p-2",
1941
2044
  children: years.map((year, index) => {
1942
2045
  const isActive = +year.formatted === state.focusedDate.year;
1943
- return /* @__PURE__ */ jsx54("li", { className: "flex justify-center", children: /* @__PURE__ */ jsx54(
2046
+ return /* @__PURE__ */ jsx59("li", { className: "flex justify-center", children: /* @__PURE__ */ jsx59(
1944
2047
  "div",
1945
2048
  {
1946
2049
  ref: isActive ? activeButtonRef : null,
1947
2050
  style: { height: "100%", width: "100%" },
1948
- children: /* @__PURE__ */ jsx54(
2051
+ children: /* @__PURE__ */ jsx59(
1949
2052
  _Button,
1950
2053
  {
1951
2054
  slot: "previous",
@@ -1970,26 +2073,28 @@ var YearListBox = ({ setSelectedDropdown }) => {
1970
2073
  var YearListBox_default = YearListBox;
1971
2074
 
1972
2075
  // src/Calendar/Calendar.tsx
1973
- import { Fragment as Fragment4, jsx as jsx55, jsxs as jsxs20 } from "react/jsx-runtime";
2076
+ import { Fragment as Fragment5, jsx as jsx60, jsxs as jsxs22 } from "react/jsx-runtime";
1974
2077
  var _Calendar = ({
1975
2078
  disabled,
1976
2079
  readOnly,
1977
2080
  size,
1978
2081
  variant,
2082
+ dateUnavailable,
1979
2083
  ...rest
1980
2084
  }) => {
1981
2085
  const props = {
1982
2086
  isDisabled: disabled,
1983
2087
  isReadOnly: readOnly,
2088
+ isDateUnavailable: dateUnavailable,
1984
2089
  ...rest
1985
2090
  };
1986
2091
  const classNames2 = useClassNames32({ component: "Calendar" });
1987
2092
  const [selectedDropdown, setSelectedDropdown] = useState();
1988
2093
  const ViewMap = {
1989
- month: /* @__PURE__ */ jsx55(MonthListBox_default, { setSelectedDropdown }),
1990
- year: /* @__PURE__ */ jsx55(YearListBox_default, { setSelectedDropdown })
2094
+ month: /* @__PURE__ */ jsx60(MonthListBox_default, { setSelectedDropdown }),
2095
+ year: /* @__PURE__ */ jsx60(YearListBox_default, { setSelectedDropdown })
1991
2096
  };
1992
- return /* @__PURE__ */ jsx55(
2097
+ return /* @__PURE__ */ jsx60(
1993
2098
  Calendar,
1994
2099
  {
1995
2100
  className: cn35(
@@ -1997,10 +2102,10 @@ var _Calendar = ({
1997
2102
  classNames2.calendar
1998
2103
  ),
1999
2104
  ...props,
2000
- children: selectedDropdown ? ViewMap[selectedDropdown] : /* @__PURE__ */ jsxs20(Fragment4, { children: [
2001
- /* @__PURE__ */ jsxs20("div", { className: "mb-4 flex items-center justify-between", children: [
2002
- /* @__PURE__ */ jsxs20("div", { className: "flex w-full gap-4", children: [
2003
- /* @__PURE__ */ jsx55(
2105
+ children: selectedDropdown ? ViewMap[selectedDropdown] : /* @__PURE__ */ jsxs22(Fragment5, { children: [
2106
+ /* @__PURE__ */ jsxs22("div", { className: "mb-4 flex items-center justify-between", children: [
2107
+ /* @__PURE__ */ jsxs22("div", { className: "flex w-full gap-4", children: [
2108
+ /* @__PURE__ */ jsx60(
2004
2109
  CalendarListBox,
2005
2110
  {
2006
2111
  type: "month",
@@ -2008,7 +2113,7 @@ var _Calendar = ({
2008
2113
  setSelectedDropdown
2009
2114
  }
2010
2115
  ),
2011
- /* @__PURE__ */ jsx55(
2116
+ /* @__PURE__ */ jsx60(
2012
2117
  CalendarListBox,
2013
2118
  {
2014
2119
  type: "year",
@@ -2017,20 +2122,20 @@ var _Calendar = ({
2017
2122
  }
2018
2123
  )
2019
2124
  ] }),
2020
- /* @__PURE__ */ jsx55(MonthControls_default, {})
2125
+ /* @__PURE__ */ jsx60(MonthControls_default, {})
2021
2126
  ] }),
2022
- /* @__PURE__ */ jsx55(_CalendarGrid, {})
2127
+ /* @__PURE__ */ jsx60(_CalendarGrid, {})
2023
2128
  ] })
2024
2129
  }
2025
2130
  );
2026
2131
  };
2027
2132
 
2028
2133
  // src/DatePicker/DatePicker.tsx
2029
- import React4 from "react";
2134
+ import React6 from "react";
2030
2135
  import { DatePicker } from "react-aria-components";
2031
2136
  import { useClassNames as useClassNames33 } from "@marigold/system";
2032
- import { jsx as jsx56, jsxs as jsxs21 } from "react/jsx-runtime";
2033
- var _DatePicker = React4.forwardRef(
2137
+ import { jsx as jsx61, jsxs as jsxs23 } from "react/jsx-runtime";
2138
+ var _DatePicker = React6.forwardRef(
2034
2139
  ({
2035
2140
  dateUnavailable,
2036
2141
  disabled,
@@ -2058,7 +2163,7 @@ var _DatePicker = React4.forwardRef(
2058
2163
  size,
2059
2164
  variant
2060
2165
  });
2061
- return /* @__PURE__ */ jsxs21(
2166
+ return /* @__PURE__ */ jsxs23(
2062
2167
  FieldBase,
2063
2168
  {
2064
2169
  as: DatePicker,
@@ -2067,16 +2172,16 @@ var _DatePicker = React4.forwardRef(
2067
2172
  ...props,
2068
2173
  ref,
2069
2174
  children: [
2070
- /* @__PURE__ */ jsx56(
2175
+ /* @__PURE__ */ jsx61(
2071
2176
  _DateInput,
2072
2177
  {
2073
- action: /* @__PURE__ */ jsx56("div", { className: classNames2.container, children: /* @__PURE__ */ jsx56(
2178
+ action: /* @__PURE__ */ jsx61("div", { className: classNames2.container, children: /* @__PURE__ */ jsx61(
2074
2179
  _Button,
2075
2180
  {
2076
2181
  size: "small",
2077
2182
  disabled,
2078
2183
  className: classNames2.button,
2079
- children: /* @__PURE__ */ jsx56(
2184
+ children: /* @__PURE__ */ jsx61(
2080
2185
  "svg",
2081
2186
  {
2082
2187
  "data-testid": "action",
@@ -2084,14 +2189,14 @@ var _DatePicker = React4.forwardRef(
2084
2189
  width: 24,
2085
2190
  height: 24,
2086
2191
  fill: "currentColor",
2087
- children: /* @__PURE__ */ jsx56("path", { d: "M20.0906 19.2V6.6C20.0906 5.61 19.2806 4.8 18.2906 4.8H17.3906V3H15.5906V4.8H8.39062V3H6.59062V4.8H5.69063C4.69163 4.8 3.89962 5.61 3.89962 6.6L3.89062 19.2C3.89062 20.19 4.69163 21 5.69063 21H18.2906C19.2806 21 20.0906 20.19 20.0906 19.2ZM9.29062 11.1001H7.49061V12.9001H9.29062V11.1001ZM5.69062 8.40009H18.2906V6.60008H5.69062V8.40009ZM18.2906 10.2V19.2H5.69062V10.2H18.2906ZM14.6906 12.9001H16.4906V11.1001H14.6906V12.9001ZM12.8906 12.9001H11.0906V11.1001H12.8906V12.9001Z" })
2192
+ children: /* @__PURE__ */ jsx61("path", { d: "M20.0906 19.2V6.6C20.0906 5.61 19.2806 4.8 18.2906 4.8H17.3906V3H15.5906V4.8H8.39062V3H6.59062V4.8H5.69063C4.69163 4.8 3.89962 5.61 3.89962 6.6L3.89062 19.2C3.89062 20.19 4.69163 21 5.69063 21H18.2906C19.2806 21 20.0906 20.19 20.0906 19.2ZM9.29062 11.1001H7.49061V12.9001H9.29062V11.1001ZM5.69062 8.40009H18.2906V6.60008H5.69062V8.40009ZM18.2906 10.2V19.2H5.69062V10.2H18.2906ZM14.6906 12.9001H16.4906V11.1001H14.6906V12.9001ZM12.8906 12.9001H11.0906V11.1001H12.8906V12.9001Z" })
2088
2193
  }
2089
2194
  )
2090
2195
  }
2091
2196
  ) })
2092
2197
  }
2093
2198
  ),
2094
- /* @__PURE__ */ jsx56(_Popover, { children: /* @__PURE__ */ jsx56(_Calendar, { disabled }) })
2199
+ /* @__PURE__ */ jsx61(_Popover, { children: /* @__PURE__ */ jsx61(_Calendar, { disabled }) })
2095
2200
  ]
2096
2201
  }
2097
2202
  );
@@ -2105,8 +2210,8 @@ import {
2105
2210
  paddingSpaceX as paddingSpaceX2,
2106
2211
  paddingSpaceY as paddingSpaceY2
2107
2212
  } from "@marigold/system";
2108
- import { jsx as jsx57 } from "react/jsx-runtime";
2109
- var Inset = ({ space, spaceX, spaceY, children }) => /* @__PURE__ */ jsx57(
2213
+ import { jsx as jsx62 } from "react/jsx-runtime";
2214
+ var Inset = ({ space, spaceX, spaceY, children }) => /* @__PURE__ */ jsx62(
2110
2215
  "div",
2111
2216
  {
2112
2217
  className: cn36(
@@ -2119,18 +2224,18 @@ var Inset = ({ space, spaceX, spaceY, children }) => /* @__PURE__ */ jsx57(
2119
2224
  );
2120
2225
 
2121
2226
  // src/Link/Link.tsx
2122
- import { forwardRef as forwardRef14 } from "react";
2227
+ import { forwardRef as forwardRef18 } from "react";
2123
2228
  import { Link } from "react-aria-components";
2124
2229
  import { useClassNames as useClassNames34 } from "@marigold/system";
2125
- import { jsx as jsx58 } from "react/jsx-runtime";
2126
- var _Link = forwardRef14(
2230
+ import { jsx as jsx63 } from "react/jsx-runtime";
2231
+ var _Link = forwardRef18(
2127
2232
  ({ variant, size, disabled, children, ...props }, ref) => {
2128
2233
  const classNames2 = useClassNames34({
2129
2234
  component: "Link",
2130
2235
  variant,
2131
2236
  size
2132
2237
  });
2133
- return /* @__PURE__ */ jsx58(Link, { ...props, ref, className: classNames2, isDisabled: disabled, children });
2238
+ return /* @__PURE__ */ jsx63(Link, { ...props, ref, className: classNames2, isDisabled: disabled, children });
2134
2239
  }
2135
2240
  );
2136
2241
 
@@ -2143,14 +2248,14 @@ var ListContext = createContext5({});
2143
2248
  var useListContext = () => useContext11(ListContext);
2144
2249
 
2145
2250
  // src/List/ListItem.tsx
2146
- import { jsx as jsx59 } from "react/jsx-runtime";
2251
+ import { jsx as jsx64 } from "react/jsx-runtime";
2147
2252
  var ListItem = ({ children, ...props }) => {
2148
2253
  const { classNames: classNames2 } = useListContext();
2149
- return /* @__PURE__ */ jsx59("li", { ...props, className: classNames2, children });
2254
+ return /* @__PURE__ */ jsx64("li", { ...props, className: classNames2, children });
2150
2255
  };
2151
2256
 
2152
2257
  // src/List/List.tsx
2153
- import { jsx as jsx60 } from "react/jsx-runtime";
2258
+ import { jsx as jsx65 } from "react/jsx-runtime";
2154
2259
  var List = ({
2155
2260
  as = "ul",
2156
2261
  children,
@@ -2160,7 +2265,7 @@ var List = ({
2160
2265
  }) => {
2161
2266
  const Component = as;
2162
2267
  const classNames2 = useClassNames35({ component: "List", variant, size });
2163
- return /* @__PURE__ */ jsx60(Component, { ...props, className: classNames2[as], children: /* @__PURE__ */ jsx60(ListContext.Provider, { value: { classNames: classNames2.item }, children }) });
2268
+ return /* @__PURE__ */ jsx65(Component, { ...props, className: classNames2[as], children: /* @__PURE__ */ jsx65(ListContext.Provider, { value: { classNames: classNames2.item }, children }) });
2164
2269
  };
2165
2270
  List.Item = ListItem;
2166
2271
 
@@ -2171,26 +2276,26 @@ import { useClassNames as useClassNames38 } from "@marigold/system";
2171
2276
  // src/Menu/MenuItem.tsx
2172
2277
  import { MenuItem } from "react-aria-components";
2173
2278
  import { useClassNames as useClassNames36 } from "@marigold/system";
2174
- import { jsx as jsx61 } from "react/jsx-runtime";
2279
+ import { jsx as jsx66 } from "react/jsx-runtime";
2175
2280
  var _MenuItem = ({ children, ...props }) => {
2176
2281
  const classNames2 = useClassNames36({ component: "Menu" });
2177
- return /* @__PURE__ */ jsx61(MenuItem, { ...props, className: classNames2.item, children });
2282
+ return /* @__PURE__ */ jsx66(MenuItem, { ...props, className: classNames2.item, children });
2178
2283
  };
2179
2284
 
2180
2285
  // src/Menu/MenuSection.tsx
2181
- import { Section as Section2 } from "react-aria-components";
2286
+ import { MenuSection } from "react-aria-components";
2182
2287
  import { useClassNames as useClassNames37 } from "@marigold/system";
2183
- import { jsx as jsx62, jsxs as jsxs22 } from "react/jsx-runtime";
2288
+ import { jsx as jsx67, jsxs as jsxs24 } from "react/jsx-runtime";
2184
2289
  var _MenuSection = ({ children, title, ...props }) => {
2185
2290
  const className = useClassNames37({ component: "Menu" });
2186
- return /* @__PURE__ */ jsxs22(Section2, { ...props, children: [
2187
- /* @__PURE__ */ jsx62(_Header, { className: className.section, children: title }),
2291
+ return /* @__PURE__ */ jsxs24(MenuSection, { ...props, children: [
2292
+ /* @__PURE__ */ jsx67(_Header, { className: className.section, children: title }),
2188
2293
  children
2189
2294
  ] });
2190
2295
  };
2191
2296
 
2192
2297
  // src/Menu/Menu.tsx
2193
- import { jsx as jsx63, jsxs as jsxs23 } from "react/jsx-runtime";
2298
+ import { jsx as jsx68, jsxs as jsxs25 } from "react/jsx-runtime";
2194
2299
  var _Menu = ({
2195
2300
  children,
2196
2301
  label,
@@ -2203,9 +2308,9 @@ var _Menu = ({
2203
2308
  ...props
2204
2309
  }) => {
2205
2310
  const classNames2 = useClassNames38({ component: "Menu", variant, size });
2206
- return /* @__PURE__ */ jsxs23(MenuTrigger, { ...props, children: [
2207
- /* @__PURE__ */ jsx63(_Button, { variant: "menu", disabled, "aria-label": ariaLabel, children: label }),
2208
- /* @__PURE__ */ jsx63(_Popover, { open, placement, children: /* @__PURE__ */ jsx63(Menu, { ...props, className: classNames2.container, children }) })
2311
+ return /* @__PURE__ */ jsxs25(MenuTrigger, { ...props, children: [
2312
+ /* @__PURE__ */ jsx68(_Button, { variant: "menu", disabled, "aria-label": ariaLabel, children: label }),
2313
+ /* @__PURE__ */ jsx68(_Popover, { open, placement, children: /* @__PURE__ */ jsx68(Menu, { ...props, className: classNames2.container, children }) })
2209
2314
  ] });
2210
2315
  };
2211
2316
  _Menu.Item = _MenuItem;
@@ -2213,8 +2318,8 @@ _Menu.Section = _MenuSection;
2213
2318
 
2214
2319
  // src/Menu/ActionMenu.tsx
2215
2320
  import { Menu as Menu2, MenuTrigger as MenuTrigger2 } from "react-aria-components";
2216
- import { SVG as SVG4, useClassNames as useClassNames39 } from "@marigold/system";
2217
- import { jsx as jsx64, jsxs as jsxs24 } from "react/jsx-runtime";
2321
+ import { SVG as SVG9, useClassNames as useClassNames39 } from "@marigold/system";
2322
+ import { jsx as jsx69, jsxs as jsxs26 } from "react/jsx-runtime";
2218
2323
  var ActionMenu = ({
2219
2324
  variant,
2220
2325
  size,
@@ -2222,14 +2327,15 @@ var ActionMenu = ({
2222
2327
  ...props
2223
2328
  }) => {
2224
2329
  const classNames2 = useClassNames39({ component: "Menu", variant, size });
2225
- return /* @__PURE__ */ jsxs24(MenuTrigger2, { children: [
2226
- /* @__PURE__ */ jsx64(_Button, { variant: "menu", size: "small", disabled, children: /* @__PURE__ */ jsx64(SVG4, { viewBox: "0 0 24 24", children: /* @__PURE__ */ jsx64("path", { d: "M12.0117 7.47656C13.2557 7.47656 14.2734 6.45879 14.2734 5.21484C14.2734 3.9709 13.2557 2.95312 12.0117 2.95312C10.7678 2.95312 9.75 3.9709 9.75 5.21484C9.75 6.45879 10.7678 7.47656 12.0117 7.47656ZM12.0117 9.73828C10.7678 9.73828 9.75 10.7561 9.75 12C9.75 13.2439 10.7678 14.2617 12.0117 14.2617C13.2557 14.2617 14.2734 13.2439 14.2734 12C14.2734 10.7561 13.2557 9.73828 12.0117 9.73828ZM12.0117 16.5234C10.7678 16.5234 9.75 17.5412 9.75 18.7852C9.75 20.0291 10.7678 21.0469 12.0117 21.0469C13.2557 21.0469 14.2734 20.0291 14.2734 18.7852C14.2734 17.5412 13.2557 16.5234 12.0117 16.5234Z" }) }) }),
2227
- /* @__PURE__ */ jsx64(_Popover, { children: /* @__PURE__ */ jsx64(Menu2, { ...props, className: classNames2.container, children: props.children }) })
2330
+ return /* @__PURE__ */ jsxs26(MenuTrigger2, { children: [
2331
+ /* @__PURE__ */ jsx69(_Button, { variant: "menu", size: "small", disabled, children: /* @__PURE__ */ jsx69(SVG9, { viewBox: "0 0 24 24", children: /* @__PURE__ */ jsx69("path", { d: "M12.0117 7.47656C13.2557 7.47656 14.2734 6.45879 14.2734 5.21484C14.2734 3.9709 13.2557 2.95312 12.0117 2.95312C10.7678 2.95312 9.75 3.9709 9.75 5.21484C9.75 6.45879 10.7678 7.47656 12.0117 7.47656ZM12.0117 9.73828C10.7678 9.73828 9.75 10.7561 9.75 12C9.75 13.2439 10.7678 14.2617 12.0117 14.2617C13.2557 14.2617 14.2734 13.2439 14.2734 12C14.2734 10.7561 13.2557 9.73828 12.0117 9.73828ZM12.0117 16.5234C10.7678 16.5234 9.75 17.5412 9.75 18.7852C9.75 20.0291 10.7678 21.0469 12.0117 21.0469C13.2557 21.0469 14.2734 20.0291 14.2734 18.7852C14.2734 17.5412 13.2557 16.5234 12.0117 16.5234Z" }) }) }),
2332
+ /* @__PURE__ */ jsx69(_Popover, { children: /* @__PURE__ */ jsx69(Menu2, { ...props, className: classNames2.container, children: props.children }) })
2228
2333
  ] });
2229
2334
  };
2230
2335
 
2231
2336
  // src/SectionMessage/SectionMessage.tsx
2232
- import { useState as useState2 } from "react";
2337
+ import { useRef as useRef4, useState as useState2 } from "react";
2338
+ import { useButton as useButton2 } from "@react-aria/button";
2233
2339
  import { cn as cn39, useClassNames as useClassNames40 } from "@marigold/system";
2234
2340
 
2235
2341
  // src/SectionMessage/Context.tsx
@@ -2239,32 +2345,32 @@ var useSectionMessageContext = () => useContext12(SectionMessageContext);
2239
2345
 
2240
2346
  // src/SectionMessage/SectionMessageContent.tsx
2241
2347
  import { cn as cn37 } from "@marigold/system";
2242
- import { jsx as jsx65 } from "react/jsx-runtime";
2348
+ import { jsx as jsx70 } from "react/jsx-runtime";
2243
2349
  var SectionMessageContent = ({
2244
2350
  children
2245
2351
  }) => {
2246
2352
  const { classNames: classNames2 } = useSectionMessageContext();
2247
- return /* @__PURE__ */ jsx65("div", { className: cn37("[grid-area:content]", classNames2.content), children });
2353
+ return /* @__PURE__ */ jsx70("div", { className: cn37("[grid-area:content]", classNames2.content), children });
2248
2354
  };
2249
2355
 
2250
2356
  // src/SectionMessage/SectionMessageTitle.tsx
2251
2357
  import { cn as cn38 } from "@marigold/system";
2252
- import { jsx as jsx66 } from "react/jsx-runtime";
2358
+ import { jsx as jsx71 } from "react/jsx-runtime";
2253
2359
  var SectionMessageTitle = ({ children }) => {
2254
2360
  const { classNames: classNames2 } = useSectionMessageContext();
2255
- return /* @__PURE__ */ jsx66("div", { className: cn38("[grid-area:title]", classNames2.title), children });
2361
+ return /* @__PURE__ */ jsx71("div", { className: cn38("[grid-area:title]", classNames2.title), children });
2256
2362
  };
2257
2363
 
2258
2364
  // src/SectionMessage/SectionMessage.tsx
2259
- import { jsx as jsx67, jsxs as jsxs25 } from "react/jsx-runtime";
2365
+ import { jsx as jsx72, jsxs as jsxs27 } from "react/jsx-runtime";
2260
2366
  var icons = {
2261
- success: () => /* @__PURE__ */ jsx67(
2367
+ success: () => /* @__PURE__ */ jsx72(
2262
2368
  "svg",
2263
2369
  {
2264
2370
  xmlns: "http://www.w3.org/2000/svg",
2265
2371
  viewBox: "0 0 24 24",
2266
2372
  fill: "currentColor",
2267
- children: /* @__PURE__ */ jsx67(
2373
+ children: /* @__PURE__ */ jsx72(
2268
2374
  "path",
2269
2375
  {
2270
2376
  fillRule: "evenodd",
@@ -2274,13 +2380,13 @@ var icons = {
2274
2380
  )
2275
2381
  }
2276
2382
  ),
2277
- info: () => /* @__PURE__ */ jsx67(
2383
+ info: () => /* @__PURE__ */ jsx72(
2278
2384
  "svg",
2279
2385
  {
2280
2386
  xmlns: "http://www.w3.org/2000/svg",
2281
2387
  viewBox: "0 0 24 24",
2282
2388
  fill: "currentColor",
2283
- children: /* @__PURE__ */ jsx67(
2389
+ children: /* @__PURE__ */ jsx72(
2284
2390
  "path",
2285
2391
  {
2286
2392
  fillRule: "evenodd",
@@ -2290,13 +2396,13 @@ var icons = {
2290
2396
  )
2291
2397
  }
2292
2398
  ),
2293
- warning: () => /* @__PURE__ */ jsx67(
2399
+ warning: () => /* @__PURE__ */ jsx72(
2294
2400
  "svg",
2295
2401
  {
2296
2402
  xmlns: "http://www.w3.org/2000/svg",
2297
2403
  viewBox: "0 0 24 24",
2298
2404
  fill: "currentColor",
2299
- children: /* @__PURE__ */ jsx67(
2405
+ children: /* @__PURE__ */ jsx72(
2300
2406
  "path",
2301
2407
  {
2302
2408
  fillRule: "evenodd",
@@ -2306,13 +2412,13 @@ var icons = {
2306
2412
  )
2307
2413
  }
2308
2414
  ),
2309
- error: () => /* @__PURE__ */ jsx67(
2415
+ error: () => /* @__PURE__ */ jsx72(
2310
2416
  "svg",
2311
2417
  {
2312
2418
  xmlns: "http://www.w3.org/2000/svg",
2313
2419
  viewBox: "0 0 24 24",
2314
2420
  fill: "currentColor",
2315
- children: /* @__PURE__ */ jsx67(
2421
+ children: /* @__PURE__ */ jsx72(
2316
2422
  "path",
2317
2423
  {
2318
2424
  fillRule: "evenodd",
@@ -2328,43 +2434,53 @@ var SectionMessage = ({
2328
2434
  size,
2329
2435
  children,
2330
2436
  closeButton,
2437
+ close,
2438
+ onCloseChange,
2331
2439
  ...props
2332
2440
  }) => {
2441
+ const buttonRef = useRef4(null);
2333
2442
  const classNames2 = useClassNames40({
2334
2443
  component: "SectionMessage",
2335
2444
  variant,
2336
2445
  size
2337
2446
  });
2338
2447
  const Icon4 = icons[variant];
2339
- const [isVisible, setIsVisible] = useState2(true);
2448
+ const [internalVisible, setInternalVisible] = useState2(true);
2449
+ const isCurrentlyVisible = close != null ? close : internalVisible;
2450
+ const { buttonProps } = useButton2(props, buttonRef);
2340
2451
  const handleClose = () => {
2341
- setIsVisible(false);
2452
+ onCloseChange && close && onCloseChange(close);
2453
+ if (close === void 0) {
2454
+ setInternalVisible(false);
2455
+ }
2342
2456
  };
2343
- if (!isVisible) return null;
2344
- return /* @__PURE__ */ jsx67(SectionMessageContext.Provider, { value: { classNames: classNames2 }, children: /* @__PURE__ */ jsxs25(
2457
+ if (!isCurrentlyVisible) return null;
2458
+ return /* @__PURE__ */ jsx72(SectionMessageContext.Provider, { value: { classNames: classNames2 }, children: /* @__PURE__ */ jsxs27(
2345
2459
  "div",
2346
2460
  {
2347
2461
  role: variant === "error" ? "alert" : void 0,
2348
2462
  ...props,
2349
2463
  className: cn39("grid auto-rows-min", classNames2.container),
2350
2464
  children: [
2351
- /* @__PURE__ */ jsx67(
2465
+ /* @__PURE__ */ jsx72(
2352
2466
  "div",
2353
2467
  {
2354
2468
  className: cn39(
2355
2469
  "h-5 w-5 self-center [grid-area:icon]",
2356
2470
  classNames2.icon
2357
2471
  ),
2358
- children: Icon4 && /* @__PURE__ */ jsx67(Icon4, {})
2472
+ children: Icon4 && /* @__PURE__ */ jsx72(Icon4, {})
2359
2473
  }
2360
2474
  ),
2361
- closeButton && /* @__PURE__ */ jsx67(
2475
+ closeButton && /* @__PURE__ */ jsx72(
2362
2476
  "button",
2363
2477
  {
2478
+ ...buttonProps,
2479
+ ref: buttonRef,
2364
2480
  "aria-label": "close",
2365
2481
  className: "h-5 w-5 cursor-pointer border-none p-0 leading-normal outline-0 [grid-area:close]",
2366
2482
  onClick: handleClose,
2367
- children: /* @__PURE__ */ jsx67("svg", { viewBox: "0 0 20 20", fill: "currentColor", "aria-hidden": "true", children: /* @__PURE__ */ jsx67(
2483
+ children: /* @__PURE__ */ jsx72("svg", { viewBox: "0 0 20 20", fill: "currentColor", "aria-hidden": "true", children: /* @__PURE__ */ jsx72(
2368
2484
  "path",
2369
2485
  {
2370
2486
  fillRule: "evenodd",
@@ -2393,7 +2509,7 @@ import { cn as cn40, useClassNames as useClassNames42 } from "@marigold/system";
2393
2509
  // src/TagGroup/TagGroup.tsx
2394
2510
  import { TagGroup, TagList } from "react-aria-components";
2395
2511
  import { useClassNames as useClassNames41 } from "@marigold/system";
2396
- import { jsx as jsx68 } from "react/jsx-runtime";
2512
+ import { jsx as jsx73 } from "react/jsx-runtime";
2397
2513
  var _TagGroup = ({
2398
2514
  width,
2399
2515
  items,
@@ -2404,7 +2520,7 @@ var _TagGroup = ({
2404
2520
  ...rest
2405
2521
  }) => {
2406
2522
  const classNames2 = useClassNames41({ component: "Tag", variant, size });
2407
- return /* @__PURE__ */ jsx68(FieldBase, { as: TagGroup, ...rest, children: /* @__PURE__ */ jsx68(
2523
+ return /* @__PURE__ */ jsx73(FieldBase, { as: TagGroup, ...rest, children: /* @__PURE__ */ jsx73(
2408
2524
  TagList,
2409
2525
  {
2410
2526
  items,
@@ -2416,22 +2532,22 @@ var _TagGroup = ({
2416
2532
  };
2417
2533
 
2418
2534
  // src/TagGroup/Tag.tsx
2419
- import { Fragment as Fragment5, jsx as jsx69, jsxs as jsxs26 } from "react/jsx-runtime";
2535
+ import { Fragment as Fragment6, jsx as jsx74, jsxs as jsxs28 } from "react/jsx-runtime";
2420
2536
  var CloseButton2 = ({ className }) => {
2421
- return /* @__PURE__ */ jsx69(Button4, { slot: "remove", className, children: /* @__PURE__ */ jsx69("svg", { viewBox: "0 0 20 20", fill: "currentColor", width: 20, height: 20, children: /* @__PURE__ */ jsx69("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" }) }) });
2537
+ return /* @__PURE__ */ jsx74(Button4, { slot: "remove", className, children: /* @__PURE__ */ jsx74("svg", { viewBox: "0 0 20 20", fill: "currentColor", width: 20, height: 20, children: /* @__PURE__ */ jsx74("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" }) }) });
2422
2538
  };
2423
2539
  var _Tag = ({ variant, size, children, ...props }) => {
2424
2540
  let textValue = typeof children === "string" ? children : void 0;
2425
2541
  const classNames2 = useClassNames42({ component: "Tag", variant, size });
2426
- return /* @__PURE__ */ jsx69(
2542
+ return /* @__PURE__ */ jsx74(
2427
2543
  Tag,
2428
2544
  {
2429
2545
  textValue,
2430
2546
  ...props,
2431
2547
  className: cn40("data-[selection-mode]:cursor-pointer", classNames2.tag),
2432
- children: ({ allowsRemoving }) => /* @__PURE__ */ jsxs26(Fragment5, { children: [
2548
+ children: ({ allowsRemoving }) => /* @__PURE__ */ jsxs28(Fragment6, { children: [
2433
2549
  children,
2434
- allowsRemoving && /* @__PURE__ */ jsx69(
2550
+ allowsRemoving && /* @__PURE__ */ jsx74(
2435
2551
  CloseButton2,
2436
2552
  {
2437
2553
  className: cn40("flex items-center", classNames2.closeButton)
@@ -2444,7 +2560,7 @@ var _Tag = ({ variant, size, children, ...props }) => {
2444
2560
  _Tag.Group = _TagGroup;
2445
2561
 
2446
2562
  // src/Multiselect/Multiselect.tsx
2447
- import { jsx as jsx70, jsxs as jsxs27 } from "react/jsx-runtime";
2563
+ import { jsx as jsx75, jsxs as jsxs29 } from "react/jsx-runtime";
2448
2564
  var Item2 = (_) => null;
2449
2565
  var Multiselect = ({
2450
2566
  label,
@@ -2482,18 +2598,18 @@ var Multiselect = ({
2482
2598
  }, 0);
2483
2599
  input.focus();
2484
2600
  };
2485
- return /* @__PURE__ */ jsxs27("div", { className: "flex flex-wrap gap-1", children: [
2486
- /* @__PURE__ */ jsx70(
2601
+ return /* @__PURE__ */ jsxs29("div", { className: "flex flex-wrap gap-1", children: [
2602
+ /* @__PURE__ */ jsx75(
2487
2603
  _Tag.Group,
2488
2604
  {
2489
2605
  items: selected,
2490
2606
  allowsRemoving: true,
2491
2607
  onRemove: setUnselected,
2492
2608
  renderEmptyState: () => null,
2493
- children: (item) => /* @__PURE__ */ jsx70(_Tag, { id: item.id, children: item.children }, item.id)
2609
+ children: (item) => /* @__PURE__ */ jsx75(_Tag, { id: item.id, children: item.children }, item.id)
2494
2610
  }
2495
2611
  ),
2496
- /* @__PURE__ */ jsx70(
2612
+ /* @__PURE__ */ jsx75(
2497
2613
  _ComboBox,
2498
2614
  {
2499
2615
  value,
@@ -2503,7 +2619,7 @@ var Multiselect = ({
2503
2619
  disabled: unselected.length === 0,
2504
2620
  placeholder: unselected.length === 0 ? "All items selected" : "",
2505
2621
  ...props,
2506
- children: unselected.map((item) => /* @__PURE__ */ jsx70(_ComboBox.Option, { id: item.id, children: item.children }, item.id))
2622
+ children: unselected.map((item) => /* @__PURE__ */ jsx75(_ComboBox.Option, { id: item.id, children: item.children }, item.id))
2507
2623
  }
2508
2624
  )
2509
2625
  ] });
@@ -2511,15 +2627,15 @@ var Multiselect = ({
2511
2627
  Multiselect.Item = Item2;
2512
2628
 
2513
2629
  // src/NumberField/NumberField.tsx
2514
- import { forwardRef as forwardRef15 } from "react";
2630
+ import { forwardRef as forwardRef19 } from "react";
2515
2631
  import { Group as Group2, NumberField } from "react-aria-components";
2516
2632
  import { cn as cn42, useClassNames as useClassNames43 } from "@marigold/system";
2517
2633
 
2518
2634
  // src/NumberField/StepButton.tsx
2519
2635
  import { Button as Button5 } from "react-aria-components";
2520
2636
  import { cn as cn41 } from "@marigold/system";
2521
- import { jsx as jsx71 } from "react/jsx-runtime";
2522
- var Plus = () => /* @__PURE__ */ jsx71("svg", { width: 16, height: 16, viewBox: "0 0 20 20", fill: "currentColor", children: /* @__PURE__ */ jsx71(
2637
+ import { jsx as jsx76 } from "react/jsx-runtime";
2638
+ var Plus = () => /* @__PURE__ */ jsx76("svg", { width: 16, height: 16, viewBox: "0 0 20 20", fill: "currentColor", children: /* @__PURE__ */ jsx76(
2523
2639
  "path",
2524
2640
  {
2525
2641
  fillRule: "evenodd",
@@ -2527,7 +2643,7 @@ var Plus = () => /* @__PURE__ */ jsx71("svg", { width: 16, height: 16, viewBox:
2527
2643
  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"
2528
2644
  }
2529
2645
  ) });
2530
- var Minus = () => /* @__PURE__ */ jsx71("svg", { width: 16, height: 16, viewBox: "0 0 20 20", fill: "currentColor", children: /* @__PURE__ */ jsx71(
2646
+ var Minus = () => /* @__PURE__ */ jsx76("svg", { width: 16, height: 16, viewBox: "0 0 20 20", fill: "currentColor", children: /* @__PURE__ */ jsx76(
2531
2647
  "path",
2532
2648
  {
2533
2649
  fillRule: "evenodd",
@@ -2537,7 +2653,7 @@ var Minus = () => /* @__PURE__ */ jsx71("svg", { width: 16, height: 16, viewBox:
2537
2653
  ) });
2538
2654
  var _StepButton = ({ direction, className, ...props }) => {
2539
2655
  const Icon4 = direction === "up" ? Plus : Minus;
2540
- return /* @__PURE__ */ jsx71(
2656
+ return /* @__PURE__ */ jsx76(
2541
2657
  Button5,
2542
2658
  {
2543
2659
  className: cn41(
@@ -2548,14 +2664,14 @@ var _StepButton = ({ direction, className, ...props }) => {
2548
2664
  className
2549
2665
  ),
2550
2666
  ...props,
2551
- children: /* @__PURE__ */ jsx71(Icon4, {})
2667
+ children: /* @__PURE__ */ jsx76(Icon4, {})
2552
2668
  }
2553
2669
  );
2554
2670
  };
2555
2671
 
2556
2672
  // src/NumberField/NumberField.tsx
2557
- import { jsx as jsx72, jsxs as jsxs28 } from "react/jsx-runtime";
2558
- var _NumberField = forwardRef15(
2673
+ import { jsx as jsx77, jsxs as jsxs30 } from "react/jsx-runtime";
2674
+ var _NumberField = forwardRef19(
2559
2675
  ({
2560
2676
  variant,
2561
2677
  size,
@@ -2579,8 +2695,8 @@ var _NumberField = forwardRef15(
2579
2695
  ...rest
2580
2696
  };
2581
2697
  const showStepper = !hideStepper;
2582
- return /* @__PURE__ */ jsx72(FieldBase, { as: NumberField, ...props, children: /* @__PURE__ */ jsxs28(Group2, { className: cn42("flex items-stretch", classNames2.group), children: [
2583
- showStepper && /* @__PURE__ */ jsx72(
2698
+ return /* @__PURE__ */ jsx77(FieldBase, { as: NumberField, ...props, children: /* @__PURE__ */ jsxs30(Group2, { className: cn42("flex items-stretch", classNames2.group), children: [
2699
+ showStepper && /* @__PURE__ */ jsx77(
2584
2700
  _StepButton,
2585
2701
  {
2586
2702
  className: classNames2.stepper,
@@ -2588,7 +2704,7 @@ var _NumberField = forwardRef15(
2588
2704
  slot: "decrement"
2589
2705
  }
2590
2706
  ),
2591
- /* @__PURE__ */ jsx72("div", { className: "flex-1", children: /* @__PURE__ */ jsx72(
2707
+ /* @__PURE__ */ jsx77("div", { className: "flex-1", children: /* @__PURE__ */ jsx77(
2592
2708
  _Input,
2593
2709
  {
2594
2710
  ref,
@@ -2597,7 +2713,7 @@ var _NumberField = forwardRef15(
2597
2713
  className: classNames2.input
2598
2714
  }
2599
2715
  ) }),
2600
- showStepper && /* @__PURE__ */ jsx72(
2716
+ showStepper && /* @__PURE__ */ jsx77(
2601
2717
  _StepButton,
2602
2718
  {
2603
2719
  className: classNames2.stepper,
@@ -2609,12 +2725,339 @@ var _NumberField = forwardRef15(
2609
2725
  }
2610
2726
  );
2611
2727
 
2728
+ // src/Pagination/Pagination.tsx
2729
+ import { useEffect as useEffect5, useState as useState5 } from "react";
2730
+
2731
+ // src/Pagination/Ellipsis.tsx
2732
+ import { jsx as jsx78 } from "react/jsx-runtime";
2733
+ var Ellipsis = () => {
2734
+ return /* @__PURE__ */ jsx78(
2735
+ "span",
2736
+ {
2737
+ className: "text-text-base flex h-8 w-8 items-center justify-center",
2738
+ "aria-label": "These pages are hidden",
2739
+ children: "\u2026"
2740
+ }
2741
+ );
2742
+ };
2743
+
2744
+ // src/Pagination/NavigationButton.tsx
2745
+ import React7, { useEffect as useEffect3 } from "react";
2746
+ import { useButton as useButton3 } from "@react-aria/button";
2747
+ import { cn as cn43, useClassNames as useClassNames44 } from "@marigold/system";
2748
+ import { jsxs as jsxs31 } from "react/jsx-runtime";
2749
+ var NavigationButton = (props) => {
2750
+ const ref = React7.useRef(null);
2751
+ const classNames2 = useClassNames44({
2752
+ component: "Pagination"
2753
+ });
2754
+ let { buttonProps } = useButton3(props, ref);
2755
+ let {
2756
+ children,
2757
+ isSelected,
2758
+ isDisabled,
2759
+ registerRef,
2760
+ controlLabel,
2761
+ position,
2762
+ ...rest
2763
+ } = props;
2764
+ useEffect3(() => {
2765
+ if (registerRef) {
2766
+ registerRef(ref.current);
2767
+ return () => registerRef(null);
2768
+ }
2769
+ }, [registerRef]);
2770
+ return /* @__PURE__ */ jsxs31(
2771
+ "button",
2772
+ {
2773
+ ref,
2774
+ ...buttonProps,
2775
+ ...rest,
2776
+ disabled: isDisabled,
2777
+ className: cn43(classNames2, controlLabel && "w-24 px-2"),
2778
+ "data-selected": isSelected,
2779
+ children: [
2780
+ position === "left" && children,
2781
+ controlLabel,
2782
+ position === "right" && children
2783
+ ]
2784
+ }
2785
+ );
2786
+ };
2787
+
2788
+ // src/Pagination/PageButton.tsx
2789
+ import { useEffect as useEffect4, useRef as useRef5 } from "react";
2790
+ import { useButton as useButton4 } from "@react-aria/button";
2791
+ import { useClassNames as useClassNames45 } from "@marigold/system";
2792
+ import { jsx as jsx79 } from "react/jsx-runtime";
2793
+ var PageButton = (props) => {
2794
+ const ref = useRef5(null);
2795
+ const classNames2 = useClassNames45({
2796
+ component: "Pagination"
2797
+ });
2798
+ let { buttonProps } = useButton4(props, ref);
2799
+ let { page, selected, registerRef, isDisabled } = props;
2800
+ useEffect4(() => {
2801
+ if (registerRef) {
2802
+ registerRef(ref.current);
2803
+ return () => registerRef(null);
2804
+ }
2805
+ }, [registerRef]);
2806
+ return /* @__PURE__ */ jsx79(
2807
+ "button",
2808
+ {
2809
+ ref,
2810
+ ...buttonProps,
2811
+ "aria-label": `Page ${page}`,
2812
+ "aria-current": selected ? "page" : void 0,
2813
+ className: classNames2,
2814
+ "data-selected": selected,
2815
+ disabled: isDisabled,
2816
+ tabIndex: selected === true ? 0 : -1,
2817
+ children: page
2818
+ }
2819
+ );
2820
+ };
2821
+
2822
+ // src/Pagination/useKeyboardNavigation.tsx
2823
+ import { useCallback, useRef as useRef6, useState as useState4 } from "react";
2824
+ import { useKeyboard } from "@react-aria/interactions";
2825
+ var NavigationTypes = {
2826
+ Prev: "prev",
2827
+ Next: "next",
2828
+ Page: "page",
2829
+ Ellipsis: "ellipsis"
2830
+ };
2831
+ var useKeyboardNavigation = ({
2832
+ page,
2833
+ totalPages,
2834
+ onChange = () => {
2835
+ }
2836
+ }) => {
2837
+ const containerRef = useRef6(null);
2838
+ const [focusedItem, setFocusedItem] = useState4({
2839
+ type: "page",
2840
+ value: page
2841
+ });
2842
+ const navigationItems = useRef6([]);
2843
+ const buttonRefs = useRef6(/* @__PURE__ */ new Map());
2844
+ const isItemDisabled = useCallback(
2845
+ (item) => {
2846
+ if (item.type === NavigationTypes.Prev) return page <= 1;
2847
+ if (item.type === NavigationTypes.Next) return page >= totalPages;
2848
+ return item.type === NavigationTypes.Ellipsis;
2849
+ },
2850
+ [page, totalPages]
2851
+ );
2852
+ const findNextFocusableItem = useCallback(
2853
+ (current, direction) => {
2854
+ const items = navigationItems.current.filter(
2855
+ (item) => !isItemDisabled(item)
2856
+ );
2857
+ const currentIndex = items.findIndex(
2858
+ (item) => item.type === current.type && item.value === current.value
2859
+ );
2860
+ if (currentIndex === -1) {
2861
+ return items[0] || { type: NavigationTypes.Page, value: page };
2862
+ }
2863
+ const nextIndex = direction === "next" ? (currentIndex + 1) % items.length : (currentIndex - 1 + items.length) % items.length;
2864
+ return items[nextIndex];
2865
+ },
2866
+ [isItemDisabled, page]
2867
+ );
2868
+ const focusItem = useCallback(
2869
+ (item) => {
2870
+ if (isItemDisabled(item)) return;
2871
+ const key = `${item.type}-${item.value}`;
2872
+ const element = buttonRefs.current.get(key);
2873
+ if (element && typeof element.focus === "function") {
2874
+ element.focus();
2875
+ setFocusedItem(item);
2876
+ }
2877
+ },
2878
+ [isItemDisabled]
2879
+ );
2880
+ const { keyboardProps } = useKeyboard({
2881
+ onKeyDown: (e) => {
2882
+ let newFocusedItem = focusedItem;
2883
+ switch (e.key) {
2884
+ case "ArrowLeft":
2885
+ newFocusedItem = findNextFocusableItem(focusedItem, "prev");
2886
+ break;
2887
+ case "ArrowRight":
2888
+ newFocusedItem = findNextFocusableItem(focusedItem, "next");
2889
+ break;
2890
+ case "Home":
2891
+ newFocusedItem = navigationItems.current.find((item) => !isItemDisabled(item)) || focusedItem;
2892
+ break;
2893
+ case "End":
2894
+ newFocusedItem = [...navigationItems.current].reverse().find((item) => !isItemDisabled(item)) || focusedItem;
2895
+ break;
2896
+ case "Enter":
2897
+ case " ":
2898
+ if (isItemDisabled(focusedItem)) return;
2899
+ if (focusedItem.type === NavigationTypes.Page && typeof focusedItem.value === "number") {
2900
+ onChange(focusedItem.value);
2901
+ } else if (focusedItem.type === NavigationTypes.Prev && page > 1) {
2902
+ onChange(page - 1);
2903
+ } else if (focusedItem.type === NavigationTypes.Next && page < totalPages) {
2904
+ onChange(page + 1);
2905
+ }
2906
+ break;
2907
+ default:
2908
+ return;
2909
+ }
2910
+ if (newFocusedItem !== focusedItem) {
2911
+ focusItem(newFocusedItem);
2912
+ }
2913
+ }
2914
+ });
2915
+ const registerRef = useCallback(
2916
+ (type, value, ref) => {
2917
+ const key = `${type}-${value}`;
2918
+ if (ref) {
2919
+ buttonRefs.current.set(key, ref);
2920
+ } else {
2921
+ buttonRefs.current.delete(key);
2922
+ }
2923
+ },
2924
+ []
2925
+ );
2926
+ const setNavigationItems = useCallback((items) => {
2927
+ navigationItems.current = items;
2928
+ }, []);
2929
+ return {
2930
+ containerRef,
2931
+ keyboardProps,
2932
+ registerRef,
2933
+ setNavigationItems,
2934
+ setFocusedItem
2935
+ };
2936
+ };
2937
+
2938
+ // src/Pagination/usePageRange.tsx
2939
+ var usePageRange = ({ currentPage, totalPages }) => {
2940
+ const getPageRange = () => {
2941
+ if (totalPages <= 7) {
2942
+ return Array.from({ length: totalPages }, (_, i) => i + 1);
2943
+ }
2944
+ const pages = [1];
2945
+ if (currentPage <= 4) {
2946
+ for (let i = 2; i <= 5; i++) {
2947
+ pages.push(i);
2948
+ }
2949
+ pages.push("ellipsis");
2950
+ } else if (currentPage >= totalPages - 3) {
2951
+ pages.push("ellipsis");
2952
+ for (let i = totalPages - 4; i < totalPages; i++) {
2953
+ pages.push(i);
2954
+ }
2955
+ } else {
2956
+ pages.push("ellipsis");
2957
+ for (let i = currentPage - 1; i <= currentPage + 1; i++) {
2958
+ pages.push(i);
2959
+ }
2960
+ pages.push("ellipsis");
2961
+ }
2962
+ pages.push(totalPages);
2963
+ return pages;
2964
+ };
2965
+ return getPageRange();
2966
+ };
2967
+
2968
+ // src/Pagination/Pagination.tsx
2969
+ import { jsx as jsx80, jsxs as jsxs32 } from "react/jsx-runtime";
2970
+ var _Pagination = ({
2971
+ defaultPage = 1,
2972
+ page,
2973
+ totalItems,
2974
+ pageSize,
2975
+ onChange = () => {
2976
+ },
2977
+ controlLabels
2978
+ }) => {
2979
+ const [currentPage, setCurrentPage] = useState5(page != null ? page : defaultPage);
2980
+ const totalPages = Math.ceil(totalItems / pageSize);
2981
+ const handlePageChange = (newPage) => {
2982
+ setCurrentPage(newPage);
2983
+ onChange(newPage);
2984
+ };
2985
+ const { registerRef, keyboardProps, setNavigationItems, setFocusedItem } = useKeyboardNavigation({
2986
+ page: currentPage,
2987
+ totalPages,
2988
+ onChange: handlePageChange
2989
+ });
2990
+ const pageRange = usePageRange({ currentPage, totalPages });
2991
+ useEffect5(() => {
2992
+ const items = [
2993
+ { type: NavigationTypes.Prev, value: currentPage - 1 },
2994
+ ...pageRange.map((value) => ({
2995
+ type: typeof value === "number" ? NavigationTypes.Page : NavigationTypes.Ellipsis,
2996
+ value
2997
+ })),
2998
+ { type: NavigationTypes.Next, value: currentPage + 1 }
2999
+ ];
3000
+ setNavigationItems(items);
3001
+ }, [pageRange, currentPage, setNavigationItems]);
3002
+ useEffect5(() => {
3003
+ setFocusedItem({ type: NavigationTypes.Page, value: currentPage });
3004
+ }, [currentPage, setFocusedItem]);
3005
+ const isFirstPage = currentPage === 1;
3006
+ const isLastPage = currentPage === totalPages || totalPages === 0;
3007
+ return /* @__PURE__ */ jsxs32(
3008
+ "nav",
3009
+ {
3010
+ className: "flex items-center justify-center space-x-2",
3011
+ "aria-label": `Page ${currentPage} of ${totalPages}`,
3012
+ ...keyboardProps,
3013
+ children: [
3014
+ /* @__PURE__ */ jsx80(
3015
+ NavigationButton,
3016
+ {
3017
+ onPress: () => handlePageChange(Math.max(1, currentPage - 1)),
3018
+ "aria-label": "Page previous",
3019
+ isDisabled: isFirstPage,
3020
+ registerRef: (ref) => registerRef(NavigationTypes.Prev, currentPage - 1, ref),
3021
+ controlLabel: controlLabels == null ? void 0 : controlLabels[0],
3022
+ position: "left",
3023
+ children: /* @__PURE__ */ jsx80(ChevronLeft, { className: "h-5 w-5" })
3024
+ }
3025
+ ),
3026
+ /* @__PURE__ */ jsx80("div", { className: "flex items-center space-x-2", children: totalPages > 0 ? pageRange.map(
3027
+ (pageNumber, index) => pageNumber === "ellipsis" ? /* @__PURE__ */ jsx80(Ellipsis, {}, `ellipsis-${index}`) : /* @__PURE__ */ jsx80(
3028
+ PageButton,
3029
+ {
3030
+ page: pageNumber,
3031
+ selected: pageNumber === currentPage,
3032
+ onPress: () => handlePageChange(pageNumber),
3033
+ registerRef: (ref) => registerRef(NavigationTypes.Page, pageNumber, ref)
3034
+ },
3035
+ pageNumber
3036
+ )
3037
+ ) : /* @__PURE__ */ jsx80(PageButton, { page: 1, isDisabled: true }, 1) }),
3038
+ /* @__PURE__ */ jsx80(
3039
+ NavigationButton,
3040
+ {
3041
+ onPress: () => handlePageChange(Math.min(totalPages, currentPage + 1)),
3042
+ "aria-label": "Page next",
3043
+ isDisabled: isLastPage,
3044
+ registerRef: (ref) => registerRef(NavigationTypes.Next, currentPage + 1, ref),
3045
+ controlLabel: controlLabels == null ? void 0 : controlLabels[1],
3046
+ position: "right",
3047
+ children: /* @__PURE__ */ jsx80(ChevronRight, { className: "h-5 w-5" })
3048
+ }
3049
+ )
3050
+ ]
3051
+ }
3052
+ );
3053
+ };
3054
+
2612
3055
  // src/Radio/Radio.tsx
2613
3056
  import {
2614
- forwardRef as forwardRef16
3057
+ forwardRef as forwardRef20
2615
3058
  } from "react";
2616
3059
  import { Radio } from "react-aria-components";
2617
- import { cn as cn44, useClassNames as useClassNames45 } from "@marigold/system";
3060
+ import { cn as cn45, useClassNames as useClassNames47 } from "@marigold/system";
2618
3061
 
2619
3062
  // src/Radio/Context.ts
2620
3063
  import { createContext as createContext7, useContext as useContext13 } from "react";
@@ -2625,8 +3068,8 @@ var useRadioGroupContext = () => useContext13(RadioGroupContext);
2625
3068
 
2626
3069
  // src/Radio/RadioGroup.tsx
2627
3070
  import { RadioGroup } from "react-aria-components";
2628
- import { cn as cn43, useClassNames as useClassNames44 } from "@marigold/system";
2629
- import { jsx as jsx73 } from "react/jsx-runtime";
3071
+ import { cn as cn44, useClassNames as useClassNames46 } from "@marigold/system";
3072
+ import { jsx as jsx81 } from "react/jsx-runtime";
2630
3073
  var _RadioGroup = ({
2631
3074
  variant,
2632
3075
  size,
@@ -2642,7 +3085,7 @@ var _RadioGroup = ({
2642
3085
  width,
2643
3086
  ...rest
2644
3087
  }) => {
2645
- const classNames2 = useClassNames44({ component: "Radio", variant, size });
3088
+ const classNames2 = useClassNames46({ component: "Radio", variant, size });
2646
3089
  const props = {
2647
3090
  isDisabled: disabled,
2648
3091
  isReadOnly: readOnly,
@@ -2650,7 +3093,7 @@ var _RadioGroup = ({
2650
3093
  isInvalid: error,
2651
3094
  ...rest
2652
3095
  };
2653
- return /* @__PURE__ */ jsx73(
3096
+ return /* @__PURE__ */ jsx81(
2654
3097
  FieldBase,
2655
3098
  {
2656
3099
  as: RadioGroup,
@@ -2661,18 +3104,18 @@ var _RadioGroup = ({
2661
3104
  variant,
2662
3105
  size,
2663
3106
  ...props,
2664
- children: /* @__PURE__ */ jsx73(
3107
+ children: /* @__PURE__ */ jsx81(
2665
3108
  "div",
2666
3109
  {
2667
3110
  role: "presentation",
2668
3111
  "data-testid": "group",
2669
3112
  "data-orientation": orientation,
2670
- className: cn43(
3113
+ className: cn44(
2671
3114
  classNames2.group,
2672
3115
  "flex items-start",
2673
3116
  orientation === "vertical" ? "flex-col gap-[0.5ch]" : "flex-row gap-[1.5ch]"
2674
3117
  ),
2675
- children: /* @__PURE__ */ jsx73(RadioGroupContext.Provider, { value: { width, variant, size }, children })
3118
+ children: /* @__PURE__ */ jsx81(RadioGroupContext.Provider, { value: { width, variant, size }, children })
2676
3119
  }
2677
3120
  )
2678
3121
  }
@@ -2680,33 +3123,33 @@ var _RadioGroup = ({
2680
3123
  };
2681
3124
 
2682
3125
  // src/Radio/Radio.tsx
2683
- import { Fragment as Fragment6, jsx as jsx74, jsxs as jsxs29 } from "react/jsx-runtime";
2684
- var Dot = () => /* @__PURE__ */ jsx74("svg", { viewBox: "0 0 6 6", children: /* @__PURE__ */ jsx74("circle", { fill: "currentColor", cx: "3", cy: "3", r: "3" }) });
2685
- var Icon3 = ({ checked, className, ...props }) => /* @__PURE__ */ jsx74(
3126
+ import { Fragment as Fragment7, jsx as jsx82, jsxs as jsxs33 } from "react/jsx-runtime";
3127
+ var Dot = () => /* @__PURE__ */ jsx82("svg", { viewBox: "0 0 6 6", children: /* @__PURE__ */ jsx82("circle", { fill: "currentColor", cx: "3", cy: "3", r: "3" }) });
3128
+ var Icon3 = ({ checked, className, ...props }) => /* @__PURE__ */ jsx82(
2686
3129
  "div",
2687
3130
  {
2688
- className: cn44(
3131
+ className: cn45(
2689
3132
  "bg-secondary-50 flex h-4 w-4 items-center justify-center rounded-[50%] border p-1",
2690
3133
  className
2691
3134
  ),
2692
3135
  "aria-hidden": "true",
2693
3136
  ...props,
2694
- children: checked ? /* @__PURE__ */ jsx74(Dot, {}) : null
3137
+ children: checked ? /* @__PURE__ */ jsx82(Dot, {}) : null
2695
3138
  }
2696
3139
  );
2697
- var _Radio = forwardRef16(
3140
+ var _Radio = forwardRef20(
2698
3141
  ({ value, disabled, width, children, ...props }, ref) => {
2699
3142
  const { variant, size, width: groupWidth } = useRadioGroupContext();
2700
- const classNames2 = useClassNames45({
3143
+ const classNames2 = useClassNames47({
2701
3144
  component: "Radio",
2702
3145
  variant: variant || props.variant,
2703
3146
  size: size || props.size
2704
3147
  });
2705
- return /* @__PURE__ */ jsx74(
3148
+ return /* @__PURE__ */ jsx82(
2706
3149
  Radio,
2707
3150
  {
2708
3151
  ref,
2709
- className: cn44(
3152
+ className: cn45(
2710
3153
  "group/radio",
2711
3154
  "relative flex items-center gap-[1ch]",
2712
3155
  width || groupWidth || "w-full",
@@ -2715,18 +3158,18 @@ var _Radio = forwardRef16(
2715
3158
  value,
2716
3159
  isDisabled: disabled,
2717
3160
  ...props,
2718
- children: ({ isSelected }) => /* @__PURE__ */ jsxs29(Fragment6, { children: [
2719
- /* @__PURE__ */ jsx74(
3161
+ children: ({ isSelected }) => /* @__PURE__ */ jsxs33(Fragment7, { children: [
3162
+ /* @__PURE__ */ jsx82(
2720
3163
  Icon3,
2721
3164
  {
2722
3165
  checked: isSelected,
2723
- className: cn44(
3166
+ className: cn45(
2724
3167
  disabled ? "cursor-not-allowed" : "cursor-pointer",
2725
3168
  classNames2.radio
2726
3169
  )
2727
3170
  }
2728
3171
  ),
2729
- /* @__PURE__ */ jsx74("div", { className: classNames2.label, children })
3172
+ /* @__PURE__ */ jsx82("div", { className: classNames2.label, children })
2730
3173
  ] })
2731
3174
  }
2732
3175
  );
@@ -2735,10 +3178,10 @@ var _Radio = forwardRef16(
2735
3178
  _Radio.Group = _RadioGroup;
2736
3179
 
2737
3180
  // src/SearchField/SearchField.tsx
2738
- import { forwardRef as forwardRef17 } from "react";
3181
+ import { forwardRef as forwardRef21 } from "react";
2739
3182
  import { SearchField } from "react-aria-components";
2740
- import { jsx as jsx75 } from "react/jsx-runtime";
2741
- var _SearchField = forwardRef17(
3183
+ import { jsx as jsx83 } from "react/jsx-runtime";
3184
+ var _SearchField = forwardRef21(
2742
3185
  ({ disabled, required, readOnly, error, action, ...rest }, ref) => {
2743
3186
  const props = {
2744
3187
  ...rest,
@@ -2747,7 +3190,7 @@ var _SearchField = forwardRef17(
2747
3190
  isReadOnly: readOnly,
2748
3191
  isInvalid: error
2749
3192
  };
2750
- return /* @__PURE__ */ jsx75(FieldBase, { as: SearchField, ...props, children: /* @__PURE__ */ jsx75(
3193
+ return /* @__PURE__ */ jsx83(FieldBase, { as: SearchField, ...props, children: /* @__PURE__ */ jsx83(
2751
3194
  SearchInput,
2752
3195
  {
2753
3196
  ref,
@@ -2758,15 +3201,15 @@ var _SearchField = forwardRef17(
2758
3201
  );
2759
3202
 
2760
3203
  // src/Select/Select.tsx
2761
- import { forwardRef as forwardRef18 } from "react";
3204
+ import { forwardRef as forwardRef22 } from "react";
2762
3205
  import {
2763
3206
  Button as Button6,
2764
3207
  Select,
2765
3208
  SelectValue
2766
3209
  } from "react-aria-components";
2767
- import { cn as cn45, useClassNames as useClassNames46 } from "@marigold/system";
2768
- import { jsx as jsx76, jsxs as jsxs30 } from "react/jsx-runtime";
2769
- var _Select = forwardRef18(
3210
+ import { cn as cn46, useClassNames as useClassNames48 } from "@marigold/system";
3211
+ import { jsx as jsx84, jsxs as jsxs34 } from "react/jsx-runtime";
3212
+ var _Select = forwardRef22(
2770
3213
  ({
2771
3214
  disabled,
2772
3215
  required,
@@ -2786,34 +3229,23 @@ var _Select = forwardRef18(
2786
3229
  onSelectionChange: onChange,
2787
3230
  ...rest
2788
3231
  };
2789
- const classNames2 = useClassNames46({ component: "Select", variant, size });
2790
- return /* @__PURE__ */ jsxs30(
2791
- FieldBase,
2792
- {
2793
- isOpen: true,
2794
- as: Select,
2795
- ref,
2796
- variant,
2797
- size,
2798
- ...props,
2799
- children: [
2800
- /* @__PURE__ */ jsxs30(
2801
- Button6,
2802
- {
2803
- className: cn45(
2804
- "flex w-full items-center justify-between gap-1 overflow-hidden",
2805
- classNames2.select
2806
- ),
2807
- children: [
2808
- /* @__PURE__ */ jsx76(SelectValue, { className: "[&>[slot=description]]:hidden" }),
2809
- /* @__PURE__ */ jsx76(ChevronDown, { className: cn45("size-4", classNames2.icon) })
2810
- ]
2811
- }
3232
+ const classNames2 = useClassNames48({ component: "Select", variant, size });
3233
+ return /* @__PURE__ */ jsxs34(FieldBase, { as: Select, ref, variant, size, ...props, children: [
3234
+ /* @__PURE__ */ jsxs34(
3235
+ Button6,
3236
+ {
3237
+ className: cn46(
3238
+ "flex w-full items-center justify-between gap-1 overflow-hidden",
3239
+ classNames2.select
2812
3240
  ),
2813
- /* @__PURE__ */ jsx76(_Popover, { children: /* @__PURE__ */ jsx76(_ListBox, { items, children: props.children }) })
2814
- ]
2815
- }
2816
- );
3241
+ children: [
3242
+ /* @__PURE__ */ jsx84(SelectValue, { className: "[&>[slot=description]]:hidden" }),
3243
+ /* @__PURE__ */ jsx84(ChevronDown, { className: cn46("size-4", classNames2.icon) })
3244
+ ]
3245
+ }
3246
+ ),
3247
+ /* @__PURE__ */ jsx84(_Popover, { children: /* @__PURE__ */ jsx84(_ListBox, { items, children: props.children }) })
3248
+ ] });
2817
3249
  }
2818
3250
  );
2819
3251
  _Select.Option = _ListBox.Item;
@@ -2821,10 +3253,10 @@ _Select.Section = _ListBox.Section;
2821
3253
 
2822
3254
  // src/SelectList/SelectList.tsx
2823
3255
  import {
2824
- forwardRef as forwardRef20
3256
+ forwardRef as forwardRef24
2825
3257
  } from "react";
2826
3258
  import { GridList as SelectList } from "react-aria-components";
2827
- import { cn as cn47, useClassNames as useClassNames47 } from "@marigold/system";
3259
+ import { cn as cn48, useClassNames as useClassNames49 } from "@marigold/system";
2828
3260
 
2829
3261
  // src/SelectList/Context.ts
2830
3262
  import { createContext as createContext8, useContext as useContext14 } from "react";
@@ -2834,26 +3266,26 @@ var SelectListContext = createContext8(
2834
3266
  var useSelectListContext = () => useContext14(SelectListContext);
2835
3267
 
2836
3268
  // src/SelectList/SelectListItem.tsx
2837
- import { forwardRef as forwardRef19 } from "react";
3269
+ import { forwardRef as forwardRef23 } from "react";
2838
3270
  import { GridListItem as SelectListItem } from "react-aria-components";
2839
- import { cn as cn46 } from "@marigold/system";
2840
- import { Fragment as Fragment7, jsx as jsx77, jsxs as jsxs31 } from "react/jsx-runtime";
2841
- var _SelectListItem = forwardRef19(
3271
+ import { cn as cn47 } from "@marigold/system";
3272
+ import { Fragment as Fragment8, jsx as jsx85, jsxs as jsxs35 } from "react/jsx-runtime";
3273
+ var _SelectListItem = forwardRef23(
2842
3274
  ({ children, ...props }, ref) => {
2843
3275
  let textValue = typeof children === "string" ? children : void 0;
2844
3276
  const { classNames: classNames2 } = useSelectListContext();
2845
- return /* @__PURE__ */ jsx77(
3277
+ return /* @__PURE__ */ jsx85(
2846
3278
  SelectListItem,
2847
3279
  {
2848
3280
  textValue,
2849
3281
  ...props,
2850
- className: cn46(
3282
+ className: cn47(
2851
3283
  "items-center group-data-[layout=grid]/list:flex-row",
2852
3284
  classNames2 == null ? void 0 : classNames2.option
2853
3285
  ),
2854
3286
  ref,
2855
- children: ({ selectionMode }) => /* @__PURE__ */ jsxs31(Fragment7, { children: [
2856
- selectionMode === "multiple" && /* @__PURE__ */ jsx77(_Checkbox, { slot: "selection" }),
3287
+ children: ({ selectionMode }) => /* @__PURE__ */ jsxs35(Fragment8, { children: [
3288
+ selectionMode === "multiple" && /* @__PURE__ */ jsx85(_Checkbox, { slot: "selection" }),
2857
3289
  children
2858
3290
  ] })
2859
3291
  }
@@ -2862,21 +3294,21 @@ var _SelectListItem = forwardRef19(
2862
3294
  );
2863
3295
 
2864
3296
  // src/SelectList/SelectList.tsx
2865
- import { jsx as jsx78 } from "react/jsx-runtime";
2866
- var _SelectList = forwardRef20(
3297
+ import { jsx as jsx86 } from "react/jsx-runtime";
3298
+ var _SelectList = forwardRef24(
2867
3299
  ({ onChange, ...rest }, ref) => {
2868
- const classNames2 = useClassNames47({ component: "ListBox" });
3300
+ const classNames2 = useClassNames49({ component: "ListBox" });
2869
3301
  const props = {
2870
3302
  onSelectionChange: onChange,
2871
3303
  ...rest
2872
3304
  };
2873
- return /* @__PURE__ */ jsx78(SelectListContext.Provider, { value: { classNames: classNames2 }, children: /* @__PURE__ */ jsx78("div", { className: classNames2.container, children: /* @__PURE__ */ jsx78(
3305
+ return /* @__PURE__ */ jsx86(SelectListContext.Provider, { value: { classNames: classNames2 }, children: /* @__PURE__ */ jsx86("div", { className: classNames2.container, children: /* @__PURE__ */ jsx86(
2874
3306
  SelectList,
2875
3307
  {
2876
3308
  ...props,
2877
3309
  layout: "grid",
2878
3310
  ref,
2879
- className: cn47(
3311
+ className: cn48(
2880
3312
  "group/list overflow-y-auto sm:max-h-[75vh] lg:max-h-[45vh]",
2881
3313
  classNames2.list
2882
3314
  ),
@@ -2888,25 +3320,25 @@ var _SelectList = forwardRef20(
2888
3320
  _SelectList.Item = _SelectListItem;
2889
3321
 
2890
3322
  // src/Scrollable/Scrollable.tsx
2891
- import { cn as cn48, createVar as createVar10, width as twWidth2 } from "@marigold/system";
2892
- import { jsx as jsx79 } from "react/jsx-runtime";
3323
+ import { cn as cn49, createVar as createVar10, width as twWidth2 } from "@marigold/system";
3324
+ import { jsx as jsx87 } from "react/jsx-runtime";
2893
3325
  var Scrollable = ({
2894
3326
  children,
2895
3327
  width = "full",
2896
3328
  height,
2897
3329
  ...props
2898
- }) => /* @__PURE__ */ jsx79(
3330
+ }) => /* @__PURE__ */ jsx87(
2899
3331
  "div",
2900
3332
  {
2901
3333
  ...props,
2902
- className: cn48(["sticky h-[--height] overflow-auto", twWidth2[width]]),
3334
+ className: cn49(["sticky h-[--height] overflow-auto", twWidth2[width]]),
2903
3335
  style: createVar10({ height }),
2904
3336
  children
2905
3337
  }
2906
3338
  );
2907
3339
 
2908
3340
  // src/Slider/Slider.tsx
2909
- import { forwardRef as forwardRef21 } from "react";
3341
+ import { forwardRef as forwardRef25 } from "react";
2910
3342
  import {
2911
3343
  Slider,
2912
3344
  SliderOutput,
@@ -2914,21 +3346,22 @@ import {
2914
3346
  SliderTrack
2915
3347
  } from "react-aria-components";
2916
3348
  import {
2917
- cn as cn49,
3349
+ cn as cn50,
2918
3350
  width as twWidth3,
2919
- useClassNames as useClassNames48
3351
+ useClassNames as useClassNames50
2920
3352
  } from "@marigold/system";
2921
- import { jsx as jsx80, jsxs as jsxs32 } from "react/jsx-runtime";
2922
- var _Slider = forwardRef21(
3353
+ import { Fragment as Fragment9, jsx as jsx88, jsxs as jsxs36 } from "react/jsx-runtime";
3354
+ var _Slider = forwardRef25(
2923
3355
  ({
2924
3356
  thumbLabels,
2925
3357
  variant,
2926
3358
  size,
2927
3359
  width = "full",
2928
3360
  disabled,
3361
+ label,
2929
3362
  ...rest
2930
3363
  }, ref) => {
2931
- const classNames2 = useClassNames48({
3364
+ const classNames2 = useClassNames50({
2932
3365
  component: "Slider",
2933
3366
  variant,
2934
3367
  size
@@ -2937,10 +3370,11 @@ var _Slider = forwardRef21(
2937
3370
  isDisabled: disabled,
2938
3371
  ...rest
2939
3372
  };
2940
- return /* @__PURE__ */ jsxs32(
2941
- Slider,
3373
+ return /* @__PURE__ */ jsxs36(
3374
+ FieldBase,
2942
3375
  {
2943
- className: cn49(
3376
+ as: Slider,
3377
+ className: cn50(
2944
3378
  "grid grid-cols-[auto_1fr] gap-y-1",
2945
3379
  classNames2.container,
2946
3380
  twWidth3[width]
@@ -2948,21 +3382,46 @@ var _Slider = forwardRef21(
2948
3382
  ref,
2949
3383
  ...props,
2950
3384
  children: [
2951
- /* @__PURE__ */ jsx80(_Label, { children: props.children }),
2952
- /* @__PURE__ */ jsx80(SliderOutput, { className: cn49("flex justify-end", classNames2.output), children: ({ state }) => state.values.map((_, i) => state.getThumbValueLabel(i)).join(" \u2013 ") }),
2953
- /* @__PURE__ */ jsx80(
3385
+ /* @__PURE__ */ jsx88(_Label, { children: props.children && props.children || label && label }),
3386
+ /* @__PURE__ */ jsx88(SliderOutput, { className: cn50("flex justify-end", classNames2.output), children: ({ state }) => state.values.map((_, i) => state.getThumbValueLabel(i)).join(" \u2013 ") }),
3387
+ /* @__PURE__ */ jsx88(
2954
3388
  SliderTrack,
2955
3389
  {
2956
- className: cn49("relative col-span-2 h-2 w-full", classNames2.track),
2957
- children: ({ state }) => state.values.map((_, i) => /* @__PURE__ */ jsx80(
2958
- SliderThumb,
2959
- {
2960
- className: cn49("top-1/2 cursor-pointer", classNames2.thumb),
2961
- index: i,
2962
- "aria-label": thumbLabels == null ? void 0 : thumbLabels[i]
2963
- },
2964
- i
2965
- ))
3390
+ className: cn50("relative col-span-2 h-2 w-full", classNames2.track),
3391
+ children: ({ state }) => /* @__PURE__ */ jsxs36(Fragment9, { children: [
3392
+ /* @__PURE__ */ jsx88(
3393
+ "div",
3394
+ {
3395
+ className: cn50(
3396
+ "absolute top-[50%] h-2 w-full translate-y-[-50%]",
3397
+ classNames2.track
3398
+ )
3399
+ }
3400
+ ),
3401
+ /* @__PURE__ */ jsx88(
3402
+ "div",
3403
+ {
3404
+ className: cn50(
3405
+ "absolute top-[50%] h-2 translate-y-[-50%]",
3406
+ classNames2.selectedTrack
3407
+ ),
3408
+ style: state.values.length === 1 ? { width: state.getThumbPercent(0) * 100 + "%" } : {
3409
+ width: state.getThumbPercent(1) * 100 - state.getThumbPercent(0) * 100 + "%",
3410
+ left: state.getThumbPercent(0) * 100 + "%"
3411
+ }
3412
+ }
3413
+ ),
3414
+ state.values.map((_, i) => /* @__PURE__ */ jsx88(
3415
+ SliderThumb,
3416
+ {
3417
+ className: cn50("top-1/2 cursor-pointer", classNames2.thumb),
3418
+ index: i,
3419
+ "aria-label": thumbLabels == null ? void 0 : thumbLabels[i],
3420
+ name: thumbLabels == null ? void 0 : thumbLabels[i]
3421
+ },
3422
+ i
3423
+ ))
3424
+ ] })
2966
3425
  }
2967
3426
  )
2968
3427
  ]
@@ -2972,12 +3431,12 @@ var _Slider = forwardRef21(
2972
3431
  );
2973
3432
 
2974
3433
  // src/Split/Split.tsx
2975
- import { jsx as jsx81 } from "react/jsx-runtime";
2976
- var Split = () => /* @__PURE__ */ jsx81("div", { role: "separator", className: "grow" });
3434
+ import { jsx as jsx89 } from "react/jsx-runtime";
3435
+ var Split = () => /* @__PURE__ */ jsx89("div", { role: "separator", className: "grow" });
2977
3436
 
2978
3437
  // src/Stack/Stack.tsx
2979
- import { alignment as alignment3, cn as cn50, gapSpace as gapSpace7 } from "@marigold/system";
2980
- import { jsx as jsx82 } from "react/jsx-runtime";
3438
+ import { alignment as alignment3, cn as cn51, gapSpace as gapSpace7 } from "@marigold/system";
3439
+ import { jsx as jsx90 } from "react/jsx-runtime";
2981
3440
  var Stack = ({
2982
3441
  children,
2983
3442
  space = 0,
@@ -2987,10 +3446,10 @@ var Stack = ({
2987
3446
  ...props
2988
3447
  }) => {
2989
3448
  var _a, _b, _c, _d;
2990
- return /* @__PURE__ */ jsx82(
3449
+ return /* @__PURE__ */ jsx90(
2991
3450
  "div",
2992
3451
  {
2993
- className: cn50(
3452
+ className: cn51(
2994
3453
  "flex flex-col",
2995
3454
  gapSpace7[space],
2996
3455
  alignX && ((_b = (_a = alignment3) == null ? void 0 : _a.vertical) == null ? void 0 : _b.alignmentX[alignX]),
@@ -3004,15 +3463,15 @@ var Stack = ({
3004
3463
  };
3005
3464
 
3006
3465
  // src/Switch/Switch.tsx
3007
- import { forwardRef as forwardRef22 } from "react";
3466
+ import { forwardRef as forwardRef26 } from "react";
3008
3467
  import { Switch } from "react-aria-components";
3009
3468
  import {
3010
- cn as cn51,
3469
+ cn as cn52,
3011
3470
  width as twWidth4,
3012
- useClassNames as useClassNames49
3471
+ useClassNames as useClassNames51
3013
3472
  } from "@marigold/system";
3014
- import { jsx as jsx83, jsxs as jsxs33 } from "react/jsx-runtime";
3015
- var _Switch = forwardRef22(
3473
+ import { jsx as jsx91, jsxs as jsxs37 } from "react/jsx-runtime";
3474
+ var _Switch = forwardRef26(
3016
3475
  ({
3017
3476
  variant,
3018
3477
  size,
@@ -3023,37 +3482,37 @@ var _Switch = forwardRef22(
3023
3482
  readOnly,
3024
3483
  ...rest
3025
3484
  }, ref) => {
3026
- const classNames2 = useClassNames49({ component: "Switch", size, variant });
3485
+ const classNames2 = useClassNames51({ component: "Switch", size, variant });
3027
3486
  const props = {
3028
3487
  isDisabled: disabled,
3029
3488
  isReadOnly: readOnly,
3030
3489
  isSelected: selected,
3031
3490
  ...rest
3032
3491
  };
3033
- return /* @__PURE__ */ jsxs33(
3492
+ return /* @__PURE__ */ jsxs37(
3034
3493
  Switch,
3035
3494
  {
3036
3495
  ...props,
3037
3496
  ref,
3038
- className: cn51(
3497
+ className: cn52(
3039
3498
  twWidth4[width],
3040
3499
  "group/switch",
3041
3500
  "flex items-center gap-[1ch]",
3042
3501
  classNames2.container
3043
3502
  ),
3044
3503
  children: [
3045
- /* @__PURE__ */ jsx83(_Label, { elementType: "span", children }),
3046
- /* @__PURE__ */ jsx83("div", { className: "relative", children: /* @__PURE__ */ jsx83(
3504
+ /* @__PURE__ */ jsx91(_Label, { elementType: "span", children }),
3505
+ /* @__PURE__ */ jsx91("div", { className: "relative", children: /* @__PURE__ */ jsx91(
3047
3506
  "div",
3048
3507
  {
3049
- className: cn51(
3508
+ className: cn52(
3050
3509
  "h-6 w-12 basis-12 rounded-3xl group-disabled/switch:cursor-not-allowed",
3051
3510
  classNames2.track
3052
3511
  ),
3053
- children: /* @__PURE__ */ jsx83(
3512
+ children: /* @__PURE__ */ jsx91(
3054
3513
  "div",
3055
3514
  {
3056
- className: cn51(
3515
+ className: cn52(
3057
3516
  "h-[22px] w-[22px]",
3058
3517
  "cubic-bezier(.7,0,.3,1)",
3059
3518
  "absolute left-0 top-px",
@@ -3072,7 +3531,7 @@ var _Switch = forwardRef22(
3072
3531
  );
3073
3532
 
3074
3533
  // src/Table/Table.tsx
3075
- import { useRef as useRef10 } from "react";
3534
+ import { useRef as useRef13 } from "react";
3076
3535
  import { useTable } from "@react-aria/table";
3077
3536
  import {
3078
3537
  TableBody as Body2,
@@ -3082,7 +3541,7 @@ import {
3082
3541
  Row,
3083
3542
  useTableState
3084
3543
  } from "@react-stately/table";
3085
- import { cn as cn57, useClassNames as useClassNames51 } from "@marigold/system";
3544
+ import { cn as cn58, useClassNames as useClassNames53 } from "@marigold/system";
3086
3545
 
3087
3546
  // src/Table/Context.tsx
3088
3547
  import { createContext as createContext9, useContext as useContext15 } from "react";
@@ -3091,12 +3550,12 @@ var useTableContext = () => useContext15(TableContext);
3091
3550
 
3092
3551
  // src/Table/TableBody.tsx
3093
3552
  import { useTableRowGroup } from "@react-aria/table";
3094
- import { jsx as jsx84 } from "react/jsx-runtime";
3553
+ import { jsx as jsx92 } from "react/jsx-runtime";
3095
3554
  var TableBody = ({ children, emptyState }) => {
3096
3555
  const { rowGroupProps } = useTableRowGroup();
3097
3556
  const { state, classNames: classNames2 } = useTableContext();
3098
3557
  if (state.collection.size === 0 && emptyState) {
3099
- return /* @__PURE__ */ jsx84("tbody", { children: /* @__PURE__ */ jsx84("tr", { className: classNames2 == null ? void 0 : classNames2.row, role: "row", children: /* @__PURE__ */ jsx84(
3558
+ return /* @__PURE__ */ jsx92("tbody", { children: /* @__PURE__ */ jsx92("tr", { className: classNames2 == null ? void 0 : classNames2.row, role: "row", children: /* @__PURE__ */ jsx92(
3100
3559
  "td",
3101
3560
  {
3102
3561
  className: classNames2 == null ? void 0 : classNames2.cell,
@@ -3106,18 +3565,18 @@ var TableBody = ({ children, emptyState }) => {
3106
3565
  }
3107
3566
  ) }) });
3108
3567
  }
3109
- return /* @__PURE__ */ jsx84("tbody", { ...rowGroupProps, children });
3568
+ return /* @__PURE__ */ jsx92("tbody", { ...rowGroupProps, children });
3110
3569
  };
3111
3570
 
3112
3571
  // src/Table/TableCell.tsx
3113
- import { useRef as useRef4 } from "react";
3572
+ import { useRef as useRef7 } from "react";
3114
3573
  import { useFocusRing as useFocusRing2 } from "@react-aria/focus";
3115
3574
  import { useTableCell } from "@react-aria/table";
3116
3575
  import { mergeProps as mergeProps3 } from "@react-aria/utils";
3117
- import { cn as cn52, useStateProps as useStateProps2 } from "@marigold/system";
3118
- import { jsx as jsx85 } from "react/jsx-runtime";
3576
+ import { cn as cn53, useStateProps as useStateProps2 } from "@marigold/system";
3577
+ import { jsx as jsx93 } from "react/jsx-runtime";
3119
3578
  var TableCell = ({ cell, align = "left" }) => {
3120
- const ref = useRef4(null);
3579
+ const ref = useRef7(null);
3121
3580
  const { interactive, state, classNames: classNames2 } = useTableContext();
3122
3581
  const disabled = state.disabledKeys.has(cell.parentKey);
3123
3582
  const { gridCellProps } = useTableCell(
@@ -3138,11 +3597,11 @@ var TableCell = ({ cell, align = "left" }) => {
3138
3597
  };
3139
3598
  const { focusProps, isFocusVisible } = useFocusRing2();
3140
3599
  const stateProps = useStateProps2({ disabled, focusVisible: isFocusVisible });
3141
- return /* @__PURE__ */ jsx85(
3600
+ return /* @__PURE__ */ jsx93(
3142
3601
  "td",
3143
3602
  {
3144
3603
  ref,
3145
- className: cn52(classNames2 == null ? void 0 : classNames2.cell),
3604
+ className: cn53(classNames2 == null ? void 0 : classNames2.cell),
3146
3605
  ...mergeProps3(cellProps, focusProps),
3147
3606
  ...stateProps,
3148
3607
  align,
@@ -3152,11 +3611,11 @@ var TableCell = ({ cell, align = "left" }) => {
3152
3611
  };
3153
3612
 
3154
3613
  // src/Table/TableCheckboxCell.tsx
3155
- import { useRef as useRef5 } from "react";
3614
+ import { useRef as useRef8 } from "react";
3156
3615
  import { useFocusRing as useFocusRing3 } from "@react-aria/focus";
3157
3616
  import { useTableCell as useTableCell2, useTableSelectionCheckbox } from "@react-aria/table";
3158
3617
  import { mergeProps as mergeProps4 } from "@react-aria/utils";
3159
- import { cn as cn53, useStateProps as useStateProps3 } from "@marigold/system";
3618
+ import { cn as cn54, useStateProps as useStateProps3 } from "@marigold/system";
3160
3619
 
3161
3620
  // src/Table/utils.ts
3162
3621
  var mapCheckboxProps = ({
@@ -3179,9 +3638,9 @@ var mapCheckboxProps = ({
3179
3638
  };
3180
3639
 
3181
3640
  // src/Table/TableCheckboxCell.tsx
3182
- import { jsx as jsx86 } from "react/jsx-runtime";
3641
+ import { jsx as jsx94 } from "react/jsx-runtime";
3183
3642
  var TableCheckboxCell = ({ cell }) => {
3184
- const ref = useRef5(null);
3643
+ const ref = useRef8(null);
3185
3644
  const { state, classNames: classNames2 } = useTableContext();
3186
3645
  const disabled = state.disabledKeys.has(cell.parentKey);
3187
3646
  const { gridCellProps } = useTableCell2(
@@ -3196,34 +3655,33 @@ var TableCheckboxCell = ({ cell }) => {
3196
3655
  );
3197
3656
  const { focusProps, isFocusVisible } = useFocusRing3();
3198
3657
  const stateProps = useStateProps3({ disabled, focusVisible: isFocusVisible });
3199
- return /* @__PURE__ */ jsx86(
3658
+ return /* @__PURE__ */ jsx94(
3200
3659
  "td",
3201
3660
  {
3202
3661
  ref,
3203
- className: cn53("text-center align-middle leading-none", classNames2 == null ? void 0 : classNames2.cell),
3662
+ className: cn54("text-center align-middle leading-none", classNames2 == null ? void 0 : classNames2.cell),
3204
3663
  ...mergeProps4(gridCellProps, focusProps),
3205
3664
  ...stateProps,
3206
- children: /* @__PURE__ */ jsx86(_Checkbox, { ...checkboxProps })
3665
+ children: /* @__PURE__ */ jsx94(_Checkbox, { ...checkboxProps })
3207
3666
  }
3208
3667
  );
3209
3668
  };
3210
3669
 
3211
3670
  // src/Table/TableColumnHeader.tsx
3212
- import { useRef as useRef6 } from "react";
3671
+ import { useRef as useRef9 } from "react";
3213
3672
  import { useFocusRing as useFocusRing4 } from "@react-aria/focus";
3214
3673
  import { useHover } from "@react-aria/interactions";
3215
3674
  import { useTableColumnHeader } from "@react-aria/table";
3216
3675
  import { mergeProps as mergeProps5 } from "@react-aria/utils";
3217
- import { SortDown, SortUp } from "@marigold/icons";
3218
- import { cn as cn54, width as twWidth5, useStateProps as useStateProps4 } from "@marigold/system";
3219
- import { jsx as jsx87, jsxs as jsxs34 } from "react/jsx-runtime";
3676
+ import { cn as cn55, width as twWidth5, useStateProps as useStateProps4 } from "@marigold/system";
3677
+ import { jsx as jsx95, jsxs as jsxs38 } from "react/jsx-runtime";
3220
3678
  var TableColumnHeader = ({
3221
3679
  column,
3222
3680
  width = "auto",
3223
3681
  align = "left"
3224
3682
  }) => {
3225
3683
  var _a, _b;
3226
- const ref = useRef6(null);
3684
+ const ref = useRef9(null);
3227
3685
  const { state, classNames: classNames2 } = useTableContext();
3228
3686
  const { columnHeaderProps } = useTableColumnHeader(
3229
3687
  {
@@ -3238,18 +3696,18 @@ var TableColumnHeader = ({
3238
3696
  hover: isHovered,
3239
3697
  focusVisible: isFocusVisible
3240
3698
  });
3241
- return /* @__PURE__ */ jsxs34(
3699
+ return /* @__PURE__ */ jsxs38(
3242
3700
  "th",
3243
3701
  {
3244
3702
  colSpan: column.colspan,
3245
3703
  ref,
3246
- className: cn54("cursor-default", twWidth5[width], classNames2 == null ? void 0 : classNames2.header),
3704
+ className: cn55("cursor-default", twWidth5[width], classNames2 == null ? void 0 : classNames2.header),
3247
3705
  ...mergeProps5(columnHeaderProps, hoverProps, focusProps),
3248
3706
  ...stateProps,
3249
3707
  align,
3250
3708
  children: [
3251
3709
  column.rendered,
3252
- column.props.allowsSorting && (((_a = state.sortDescriptor) == null ? void 0 : _a.column) === column.key ? ((_b = state.sortDescriptor) == null ? void 0 : _b.direction) === "ascending" ? /* @__PURE__ */ jsx87(SortUp, { className: "inline-block" }) : /* @__PURE__ */ jsx87(SortDown, { className: "inline-block" }) : /* @__PURE__ */ jsx87("span", { className: "invisible", children: /* @__PURE__ */ jsx87(SortDown, { className: "inline-block" }) }))
3710
+ column.props.allowsSorting && (((_a = state.sortDescriptor) == null ? void 0 : _a.column) === column.key ? ((_b = state.sortDescriptor) == null ? void 0 : _b.direction) === "ascending" ? /* @__PURE__ */ jsx95(SortUp, { className: "inline-block" }) : /* @__PURE__ */ jsx95(SortDown, { className: "inline-block" }) : /* @__PURE__ */ jsx95("span", { className: "invisible", children: /* @__PURE__ */ jsx95(SortDown, { className: "inline-block" }) }))
3253
3711
  ]
3254
3712
  }
3255
3713
  );
@@ -3257,10 +3715,10 @@ var TableColumnHeader = ({
3257
3715
 
3258
3716
  // src/Table/TableHeader.tsx
3259
3717
  import { useTableRowGroup as useTableRowGroup2 } from "@react-aria/table";
3260
- import { jsx as jsx88 } from "react/jsx-runtime";
3718
+ import { jsx as jsx96 } from "react/jsx-runtime";
3261
3719
  var TableHeader = ({ stickyHeader, children }) => {
3262
3720
  const { rowGroupProps } = useTableRowGroup2();
3263
- return /* @__PURE__ */ jsx88(
3721
+ return /* @__PURE__ */ jsx96(
3264
3722
  "thead",
3265
3723
  {
3266
3724
  ...rowGroupProps,
@@ -3271,29 +3729,29 @@ var TableHeader = ({ stickyHeader, children }) => {
3271
3729
  };
3272
3730
 
3273
3731
  // src/Table/TableHeaderRow.tsx
3274
- import { useRef as useRef7 } from "react";
3732
+ import { useRef as useRef10 } from "react";
3275
3733
  import { useTableHeaderRow } from "@react-aria/table";
3276
- import { jsx as jsx89 } from "react/jsx-runtime";
3734
+ import { jsx as jsx97 } from "react/jsx-runtime";
3277
3735
  var TableHeaderRow = ({ item, children }) => {
3278
3736
  const { state } = useTableContext();
3279
- const ref = useRef7(null);
3737
+ const ref = useRef10(null);
3280
3738
  const { rowProps } = useTableHeaderRow({ node: item }, state, ref);
3281
- return /* @__PURE__ */ jsx89("tr", { ...rowProps, ref, children });
3739
+ return /* @__PURE__ */ jsx97("tr", { ...rowProps, ref, children });
3282
3740
  };
3283
3741
 
3284
3742
  // src/Table/TableRow.tsx
3285
- import { useRef as useRef8 } from "react";
3743
+ import { useRef as useRef11 } from "react";
3286
3744
  import { useFocusRing as useFocusRing5 } from "@react-aria/focus";
3287
3745
  import { useHover as useHover2 } from "@react-aria/interactions";
3288
3746
  import { useTableRow } from "@react-aria/table";
3289
3747
  import { mergeProps as mergeProps6 } from "@react-aria/utils";
3290
- import { cn as cn55, useClassNames as useClassNames50, useStateProps as useStateProps5 } from "@marigold/system";
3291
- import { jsx as jsx90 } from "react/jsx-runtime";
3748
+ import { cn as cn56, useClassNames as useClassNames52, useStateProps as useStateProps5 } from "@marigold/system";
3749
+ import { jsx as jsx98 } from "react/jsx-runtime";
3292
3750
  var TableRow = ({ children, row }) => {
3293
- const ref = useRef8(null);
3751
+ const ref = useRef11(null);
3294
3752
  const { interactive, state, ...ctx } = useTableContext();
3295
3753
  const { variant, size } = row.props;
3296
- const classNames2 = useClassNames50({
3754
+ const classNames2 = useClassNames52({
3297
3755
  component: "Table",
3298
3756
  variant: variant || ctx.variant,
3299
3757
  size: size || ctx.size
@@ -3318,11 +3776,11 @@ var TableRow = ({ children, row }) => {
3318
3776
  focusVisible: isFocusVisible,
3319
3777
  active: isPressed
3320
3778
  });
3321
- return /* @__PURE__ */ jsx90(
3779
+ return /* @__PURE__ */ jsx98(
3322
3780
  "tr",
3323
3781
  {
3324
3782
  ref,
3325
- className: cn55(
3783
+ className: cn56(
3326
3784
  [
3327
3785
  !interactive ? "cursor-text" : disabled ? "cursor-default" : "cursor-pointer"
3328
3786
  ],
@@ -3336,7 +3794,7 @@ var TableRow = ({ children, row }) => {
3336
3794
  };
3337
3795
 
3338
3796
  // src/Table/TableSelectAllCell.tsx
3339
- import { useRef as useRef9 } from "react";
3797
+ import { useRef as useRef12 } from "react";
3340
3798
  import { useFocusRing as useFocusRing6 } from "@react-aria/focus";
3341
3799
  import { useHover as useHover3 } from "@react-aria/interactions";
3342
3800
  import {
@@ -3345,17 +3803,17 @@ import {
3345
3803
  } from "@react-aria/table";
3346
3804
  import { mergeProps as mergeProps7 } from "@react-aria/utils";
3347
3805
  import {
3348
- cn as cn56,
3806
+ cn as cn57,
3349
3807
  width as twWidth6,
3350
3808
  useStateProps as useStateProps6
3351
3809
  } from "@marigold/system";
3352
- import { jsx as jsx91 } from "react/jsx-runtime";
3810
+ import { jsx as jsx99 } from "react/jsx-runtime";
3353
3811
  var TableSelectAllCell = ({
3354
3812
  column,
3355
3813
  width = "auto",
3356
3814
  align = "left"
3357
3815
  }) => {
3358
- const ref = useRef9(null);
3816
+ const ref = useRef12(null);
3359
3817
  const { state, classNames: classNames2 } = useTableContext();
3360
3818
  const { columnHeaderProps } = useTableColumnHeader2(
3361
3819
  {
@@ -3371,21 +3829,21 @@ var TableSelectAllCell = ({
3371
3829
  hover: isHovered,
3372
3830
  focusVisible: isFocusVisible
3373
3831
  });
3374
- return /* @__PURE__ */ jsx91(
3832
+ return /* @__PURE__ */ jsx99(
3375
3833
  "th",
3376
3834
  {
3377
3835
  ref,
3378
- className: cn56(twWidth6[width], ["leading-none"], classNames2 == null ? void 0 : classNames2.header),
3836
+ className: cn57(twWidth6[width], ["leading-none"], classNames2 == null ? void 0 : classNames2.header),
3379
3837
  ...mergeProps7(columnHeaderProps, hoverProps, focusProps),
3380
3838
  ...stateProps,
3381
3839
  align,
3382
- children: /* @__PURE__ */ jsx91(_Checkbox, { ...checkboxProps })
3840
+ children: /* @__PURE__ */ jsx99(_Checkbox, { ...checkboxProps })
3383
3841
  }
3384
3842
  );
3385
3843
  };
3386
3844
 
3387
3845
  // src/Table/Table.tsx
3388
- import { jsx as jsx92, jsxs as jsxs35 } from "react/jsx-runtime";
3846
+ import { jsx as jsx100, jsxs as jsxs39 } from "react/jsx-runtime";
3389
3847
  var Table = ({
3390
3848
  variant,
3391
3849
  size,
@@ -3397,7 +3855,7 @@ var Table = ({
3397
3855
  ...props
3398
3856
  }) => {
3399
3857
  const interactive = selectionMode !== "none";
3400
- const tableRef = useRef10(null);
3858
+ const tableRef = useRef13(null);
3401
3859
  const state = useTableState({
3402
3860
  ...props,
3403
3861
  selectionMode,
@@ -3408,21 +3866,21 @@ var Table = ({
3408
3866
  state.isKeyboardNavigationDisabled = disableKeyboardNavigation;
3409
3867
  }
3410
3868
  const { gridProps } = useTable(props, state, tableRef);
3411
- const classNames2 = useClassNames51({
3869
+ const classNames2 = useClassNames53({
3412
3870
  component: "Table",
3413
3871
  variant,
3414
3872
  size
3415
3873
  });
3416
3874
  const { collection } = state;
3417
- return /* @__PURE__ */ jsx92(
3875
+ return /* @__PURE__ */ jsx100(
3418
3876
  TableContext.Provider,
3419
3877
  {
3420
3878
  value: { state, interactive, classNames: classNames2, variant, size },
3421
- children: /* @__PURE__ */ jsxs35(
3879
+ children: /* @__PURE__ */ jsxs39(
3422
3880
  "table",
3423
3881
  {
3424
3882
  ref: tableRef,
3425
- className: cn57(
3883
+ className: cn58(
3426
3884
  "group/table",
3427
3885
  "border-collapse",
3428
3886
  stretch ? "table w-full" : "block",
@@ -3430,10 +3888,10 @@ var Table = ({
3430
3888
  ),
3431
3889
  ...gridProps,
3432
3890
  children: [
3433
- /* @__PURE__ */ jsx92(TableHeader, { stickyHeader, children: collection.headerRows.map((headerRow) => /* @__PURE__ */ jsx92(TableHeaderRow, { item: headerRow, children: [...collection.getChildren(headerRow.key)].map(
3891
+ /* @__PURE__ */ jsx100(TableHeader, { stickyHeader, children: collection.headerRows.map((headerRow) => /* @__PURE__ */ jsx100(TableHeaderRow, { item: headerRow, children: [...collection.getChildren(headerRow.key)].map(
3434
3892
  (column) => {
3435
3893
  var _a, _b, _c, _d, _e;
3436
- return ((_a = column.props) == null ? void 0 : _a.isSelectionCell) ? /* @__PURE__ */ jsx92(
3894
+ return ((_a = column.props) == null ? void 0 : _a.isSelectionCell) ? /* @__PURE__ */ jsx100(
3437
3895
  TableSelectAllCell,
3438
3896
  {
3439
3897
  width: (_b = column.props) == null ? void 0 : _b.width,
@@ -3441,7 +3899,7 @@ var Table = ({
3441
3899
  align: (_c = column.props) == null ? void 0 : _c.align
3442
3900
  },
3443
3901
  column.key
3444
- ) : /* @__PURE__ */ jsx92(
3902
+ ) : /* @__PURE__ */ jsx100(
3445
3903
  TableColumnHeader,
3446
3904
  {
3447
3905
  width: (_d = column.props) == null ? void 0 : _d.width,
@@ -3452,12 +3910,12 @@ var Table = ({
3452
3910
  );
3453
3911
  }
3454
3912
  ) }, headerRow.key)) }),
3455
- /* @__PURE__ */ jsxs35(TableBody, { emptyState, children: [
3913
+ /* @__PURE__ */ jsxs39(TableBody, { emptyState, children: [
3456
3914
  ...collection.rows.map(
3457
- (row) => row.type === "item" && /* @__PURE__ */ jsx92(TableRow, { row, children: [...collection.getChildren(row.key)].map((cell, index) => {
3915
+ (row) => row.type === "item" && /* @__PURE__ */ jsx100(TableRow, { row, children: [...collection.getChildren(row.key)].map((cell, index) => {
3458
3916
  var _a, _b;
3459
3917
  const currentColumn = collection.columns[index];
3460
- return ((_a = cell.props) == null ? void 0 : _a.isSelectionCell) ? /* @__PURE__ */ jsx92(TableCheckboxCell, { cell }, cell.key) : /* @__PURE__ */ jsx92(
3918
+ return ((_a = cell.props) == null ? void 0 : _a.isSelectionCell) ? /* @__PURE__ */ jsx100(TableCheckboxCell, { cell }, cell.key) : /* @__PURE__ */ jsx100(
3461
3919
  TableCell,
3462
3920
  {
3463
3921
  align: (_b = currentColumn.props) == null ? void 0 : _b.align,
@@ -3483,7 +3941,7 @@ Table.Row = Row;
3483
3941
  // src/Text/Text.tsx
3484
3942
  import { Text as Text2 } from "react-aria-components";
3485
3943
  import {
3486
- cn as cn58,
3944
+ cn as cn59,
3487
3945
  createVar as createVar11,
3488
3946
  cursorStyle,
3489
3947
  fontWeight,
@@ -3491,10 +3949,10 @@ import {
3491
3949
  textAlign as textAlign2,
3492
3950
  textSize,
3493
3951
  textStyle,
3494
- useClassNames as useClassNames52,
3952
+ useClassNames as useClassNames54,
3495
3953
  useTheme as useTheme3
3496
3954
  } from "@marigold/system";
3497
- import { jsx as jsx93 } from "react/jsx-runtime";
3955
+ import { jsx as jsx101 } from "react/jsx-runtime";
3498
3956
  var _Text = ({
3499
3957
  variant,
3500
3958
  size,
@@ -3509,18 +3967,19 @@ var _Text = ({
3509
3967
  ...props
3510
3968
  }) => {
3511
3969
  const theme = useTheme3();
3512
- const classNames2 = useClassNames52({
3970
+ const classNames2 = useClassNames54({
3513
3971
  component: "Text",
3514
3972
  variant,
3515
3973
  size
3516
3974
  });
3517
3975
  const Component = props.slot ? Text2 : as;
3518
- return /* @__PURE__ */ jsx93(
3976
+ const elementType = props.slot ? { elementType: as } : {};
3977
+ return /* @__PURE__ */ jsx101(
3519
3978
  Component,
3520
3979
  {
3521
3980
  ...props,
3522
- elementType: as,
3523
- className: cn58(
3981
+ ...elementType,
3982
+ className: cn59(
3524
3983
  "text-[--color] outline-[--outline]",
3525
3984
  classNames2,
3526
3985
  fontStyle && textStyle[fontStyle],
@@ -3543,11 +4002,11 @@ var _Text = ({
3543
4002
  };
3544
4003
 
3545
4004
  // src/TextArea/TextArea.tsx
3546
- import { forwardRef as forwardRef23 } from "react";
4005
+ import { forwardRef as forwardRef27 } from "react";
3547
4006
  import { TextArea, TextField } from "react-aria-components";
3548
- import { useClassNames as useClassNames53 } from "@marigold/system";
3549
- import { jsx as jsx94 } from "react/jsx-runtime";
3550
- var _TextArea = forwardRef23(
4007
+ import { useClassNames as useClassNames55 } from "@marigold/system";
4008
+ import { jsx as jsx102 } from "react/jsx-runtime";
4009
+ var _TextArea = forwardRef27(
3551
4010
  ({
3552
4011
  variant,
3553
4012
  size,
@@ -3558,7 +4017,7 @@ var _TextArea = forwardRef23(
3558
4017
  rows,
3559
4018
  ...rest
3560
4019
  }, ref) => {
3561
- const classNames2 = useClassNames53({ component: "TextArea", variant, size });
4020
+ const classNames2 = useClassNames55({ component: "TextArea", variant, size });
3562
4021
  const props = {
3563
4022
  isDisabled: disabled,
3564
4023
  isReadOnly: readOnly,
@@ -3566,15 +4025,15 @@ var _TextArea = forwardRef23(
3566
4025
  isRequired: required,
3567
4026
  ...rest
3568
4027
  };
3569
- return /* @__PURE__ */ jsx94(FieldBase, { as: TextField, ...props, variant, size, children: /* @__PURE__ */ jsx94(TextArea, { className: classNames2, ref, rows }) });
4028
+ return /* @__PURE__ */ jsx102(FieldBase, { as: TextField, ...props, variant, size, children: /* @__PURE__ */ jsx102(TextArea, { className: classNames2, ref, rows }) });
3570
4029
  }
3571
4030
  );
3572
4031
 
3573
4032
  // src/TextField/TextField.tsx
3574
- import { forwardRef as forwardRef24 } from "react";
4033
+ import { forwardRef as forwardRef28 } from "react";
3575
4034
  import { TextField as TextField2 } from "react-aria-components";
3576
- import { jsx as jsx95 } from "react/jsx-runtime";
3577
- var _TextField = forwardRef24(
4035
+ import { jsx as jsx103 } from "react/jsx-runtime";
4036
+ var _TextField = forwardRef28(
3578
4037
  ({ required, disabled, readOnly, error, ...rest }, ref) => {
3579
4038
  const props = {
3580
4039
  isDisabled: disabled,
@@ -3583,13 +4042,13 @@ var _TextField = forwardRef24(
3583
4042
  isRequired: required,
3584
4043
  ...rest
3585
4044
  };
3586
- return /* @__PURE__ */ jsx95(FieldBase, { as: TextField2, ...props, children: /* @__PURE__ */ jsx95(_Input, { ref }) });
4045
+ return /* @__PURE__ */ jsx103(FieldBase, { as: TextField2, ...props, children: /* @__PURE__ */ jsx103(_Input, { ref }) });
3587
4046
  }
3588
4047
  );
3589
4048
 
3590
4049
  // src/Tiles/Tiles.tsx
3591
- import { cn as cn59, createVar as createVar12, gapSpace as gapSpace8 } from "@marigold/system";
3592
- import { jsx as jsx96 } from "react/jsx-runtime";
4050
+ import { cn as cn60, createVar as createVar12, gapSpace as gapSpace8 } from "@marigold/system";
4051
+ import { jsx as jsx104 } from "react/jsx-runtime";
3593
4052
  var Tiles = ({
3594
4053
  space = 0,
3595
4054
  stretch = false,
@@ -3602,11 +4061,11 @@ var Tiles = ({
3602
4061
  if (stretch) {
3603
4062
  column = `minmax(${column}, 1fr)`;
3604
4063
  }
3605
- return /* @__PURE__ */ jsx96(
4064
+ return /* @__PURE__ */ jsx104(
3606
4065
  "div",
3607
4066
  {
3608
4067
  ...props,
3609
- className: cn59(
4068
+ className: cn60(
3610
4069
  "grid",
3611
4070
  gapSpace8[space],
3612
4071
  "grid-cols-[repeat(auto-fit,var(--column))]",
@@ -3620,11 +4079,11 @@ var Tiles = ({
3620
4079
 
3621
4080
  // src/Tooltip/Tooltip.tsx
3622
4081
  import { OverlayArrow, Tooltip } from "react-aria-components";
3623
- import { cn as cn60, useClassNames as useClassNames54 } from "@marigold/system";
4082
+ import { cn as cn61, useClassNames as useClassNames56 } from "@marigold/system";
3624
4083
 
3625
4084
  // src/Tooltip/TooltipTrigger.tsx
3626
4085
  import { TooltipTrigger } from "react-aria-components";
3627
- import { jsx as jsx97 } from "react/jsx-runtime";
4086
+ import { jsx as jsx105 } from "react/jsx-runtime";
3628
4087
  var _TooltipTrigger = ({
3629
4088
  delay = 1e3,
3630
4089
  children,
@@ -3638,26 +4097,26 @@ var _TooltipTrigger = ({
3638
4097
  isOpen: open,
3639
4098
  delay
3640
4099
  };
3641
- return /* @__PURE__ */ jsx97(TooltipTrigger, { ...props, children });
4100
+ return /* @__PURE__ */ jsx105(TooltipTrigger, { ...props, children });
3642
4101
  };
3643
4102
 
3644
4103
  // src/Tooltip/Tooltip.tsx
3645
- import { jsx as jsx98, jsxs as jsxs36 } from "react/jsx-runtime";
4104
+ import { jsx as jsx106, jsxs as jsxs40 } from "react/jsx-runtime";
3646
4105
  var _Tooltip = ({ children, variant, size, open, ...rest }) => {
3647
4106
  const props = {
3648
4107
  ...rest,
3649
4108
  isOpen: open
3650
4109
  };
3651
- const classNames2 = useClassNames54({ component: "Tooltip", variant, size });
4110
+ const classNames2 = useClassNames56({ component: "Tooltip", variant, size });
3652
4111
  const portal = usePortalContainer();
3653
- return /* @__PURE__ */ jsxs36(
4112
+ return /* @__PURE__ */ jsxs40(
3654
4113
  Tooltip,
3655
4114
  {
3656
4115
  ...props,
3657
- className: cn60("group/tooltip", classNames2.container),
4116
+ className: cn61("group/tooltip", classNames2.container),
3658
4117
  UNSTABLE_portalContainer: portal,
3659
4118
  children: [
3660
- /* @__PURE__ */ jsx98(OverlayArrow, { className: classNames2.arrow, children: /* @__PURE__ */ jsx98("svg", { width: 8, height: 8, viewBox: "0 0 8 8", children: /* @__PURE__ */ jsx98("path", { d: "M0 0 L4 4 L8 0" }) }) }),
4119
+ /* @__PURE__ */ jsx106(OverlayArrow, { className: classNames2.arrow, children: /* @__PURE__ */ jsx106("svg", { width: 8, height: 8, viewBox: "0 0 8 8", children: /* @__PURE__ */ jsx106("path", { d: "M0 0 L4 4 L8 0" }) }) }),
3661
4120
  children
3662
4121
  ]
3663
4122
  }
@@ -3669,256 +4128,268 @@ _Tooltip.Trigger = _TooltipTrigger;
3669
4128
  import { VisuallyHidden } from "@react-aria/visually-hidden";
3670
4129
 
3671
4130
  // src/XLoader/XLoader.tsx
3672
- import { forwardRef as forwardRef25 } from "react";
3673
4131
  import { Dialog as Dialog2, Modal as Modal2, ModalOverlay as ModalOverlay2 } from "react-aria-components";
3674
- import { SVG as SVG5, useClassNames as useClassNames55 } from "@marigold/system";
3675
- import { Fragment as Fragment8, jsx as jsx99, jsxs as jsxs37 } from "react/jsx-runtime";
3676
- var LoadingModes = {
3677
- FullSize: "fullsize",
3678
- Inline: "inline"
3679
- };
3680
- var Loader = forwardRef25((props, ref) => /* @__PURE__ */ jsxs37(
3681
- SVG5,
3682
- {
3683
- id: "XLoader",
3684
- xmlns: "http://www.w3.org/2000/svg",
3685
- size: 150,
3686
- viewBox: "0 0 150 150",
3687
- ...props,
3688
- ...ref,
3689
- children: [
3690
- /* @__PURE__ */ jsx99("path", { id: "XMLID_1_", d: "M35.3 27h26.5l54 74.1H88.7z" }),
3691
- /* @__PURE__ */ jsx99(
3692
- "path",
3693
- {
3694
- id: "XMLID_5_",
3695
- 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",
3696
- children: /* @__PURE__ */ jsx99(
3697
- "animate",
3698
- {
3699
- attributeName: "opacity",
3700
- attributeType: "XML",
3701
- values: "1; .01; 1; 1; 1;",
3702
- begin: "1.0s",
3703
- dur: "2.5s",
3704
- repeatCount: "indefinite"
3705
- }
3706
- )
3707
- }
3708
- ),
3709
- /* @__PURE__ */ jsx99(
3710
- "path",
3711
- {
3712
- id: "XMLID_18_",
3713
- 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",
3714
- children: /* @__PURE__ */ jsx99(
3715
- "animate",
3716
- {
3717
- attributeName: "opacity",
3718
- attributeType: "XML",
3719
- values: "1; .01; 1; 1; 1;",
3720
- begin: "0.9s",
3721
- dur: "2.5s",
3722
- repeatCount: "indefinite"
3723
- }
3724
- )
3725
- }
3726
- ),
3727
- /* @__PURE__ */ jsx99(
3728
- "path",
3729
- {
3730
- id: "XMLID_19_",
3731
- 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",
3732
- children: /* @__PURE__ */ jsx99(
3733
- "animate",
3734
- {
3735
- attributeName: "opacity",
3736
- attributeType: "XML",
3737
- values: "1; .01; 1; 1; 1;",
3738
- begin: "0.8s",
3739
- dur: "2.5s",
3740
- repeatCount: "indefinite"
3741
- }
3742
- )
3743
- }
3744
- ),
3745
- /* @__PURE__ */ jsx99(
3746
- "path",
3747
- {
3748
- id: "XMLID_20_",
3749
- 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",
3750
- children: /* @__PURE__ */ jsx99(
3751
- "animate",
3752
- {
3753
- attributeName: "opacity",
3754
- attributeType: "XML",
3755
- values: "1; .01; 1; 1; 1;",
3756
- begin: "0.7s",
3757
- dur: "2.5s",
3758
- repeatCount: "indefinite"
3759
- }
3760
- )
3761
- }
3762
- ),
3763
- /* @__PURE__ */ jsx99(
3764
- "path",
3765
- {
3766
- id: "XMLID_21_",
3767
- 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",
3768
- children: /* @__PURE__ */ jsx99(
3769
- "animate",
3770
- {
3771
- attributeName: "opacity",
3772
- attributeType: "XML",
3773
- values: "1; .01; 1; 1; 1;",
3774
- begin: "0.6s",
3775
- dur: "2.5s",
3776
- repeatCount: "indefinite"
3777
- }
3778
- )
3779
- }
3780
- ),
3781
- /* @__PURE__ */ jsx99(
3782
- "path",
3783
- {
3784
- id: "XMLID_22_",
3785
- 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",
3786
- children: /* @__PURE__ */ jsx99(
3787
- "animate",
3788
- {
3789
- attributeName: "opacity",
3790
- attributeType: "XML",
3791
- values: "1; .01; 1; 1; 1;",
3792
- begin: "0.5s",
3793
- dur: "2.5s",
3794
- repeatCount: "indefinite"
3795
- }
3796
- )
3797
- }
3798
- ),
3799
- /* @__PURE__ */ jsx99(
3800
- "path",
3801
- {
3802
- id: "XMLID_23_",
3803
- 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",
3804
- children: /* @__PURE__ */ jsx99(
3805
- "animate",
3806
- {
3807
- attributeName: "opacity",
3808
- attributeType: "XML",
3809
- values: "1; .01; 1; 1; 1;",
3810
- begin: "0.4s",
3811
- dur: "2.5s",
3812
- repeatCount: "indefinite"
3813
- }
3814
- )
3815
- }
3816
- ),
3817
- /* @__PURE__ */ jsx99(
3818
- "path",
3819
- {
3820
- id: "XMLID_24_",
3821
- 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",
3822
- children: /* @__PURE__ */ jsx99(
3823
- "animate",
3824
- {
3825
- attributeName: "opacity",
3826
- attributeType: "XML",
3827
- values: "1; .01; 1; 1; 1;",
3828
- begin: "0.3s",
3829
- dur: "2.5s",
3830
- repeatCount: "indefinite"
3831
- }
3832
- )
3833
- }
3834
- ),
3835
- /* @__PURE__ */ jsx99(
3836
- "path",
3837
- {
3838
- id: "XMLID_25_",
3839
- 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",
3840
- children: /* @__PURE__ */ jsx99(
3841
- "animate",
3842
- {
3843
- attributeName: "opacity",
3844
- attributeType: "XML",
3845
- values: "1; .01; 1; 1; 1;",
3846
- begin: "0.2s",
3847
- dur: "2.5s",
3848
- repeatCount: "indefinite"
3849
- }
3850
- )
3851
- }
3852
- ),
3853
- /* @__PURE__ */ jsx99(
3854
- "path",
3855
- {
3856
- id: "XMLID_26_",
3857
- 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",
3858
- children: /* @__PURE__ */ jsx99(
3859
- "animate",
3860
- {
3861
- attributeName: "opacity",
3862
- attributeType: "XML",
3863
- values: "1; .01; 1; 1; 1;",
3864
- begin: "0.1s",
3865
- dur: "2.5s",
3866
- repeatCount: "indefinite"
3867
- }
3868
- )
3869
- }
3870
- ),
3871
- /* @__PURE__ */ jsx99(
3872
- "path",
3873
- {
3874
- id: "XMLID_27_",
3875
- 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",
3876
- children: /* @__PURE__ */ jsx99(
3877
- "animate",
3878
- {
3879
- attributeName: "opacity",
3880
- attributeType: "XML",
3881
- values: "1; .01; 1; 1; 1;",
3882
- begin: "0.0s",
3883
- dur: "2.5s",
3884
- repeatCount: "indefinite"
3885
- }
3886
- )
3887
- }
3888
- )
3889
- ]
3890
- }
3891
- ));
3892
- var LoaderFullSize = forwardRef25(
3893
- ({ children, ...rest }, ref) => {
3894
- const className = useClassNames55({
3895
- component: "Underlay",
3896
- variant: "modal",
3897
- className: "fixed left-0 top-0 z-10 flex h-[--visual-viewport-height] w-screen items-center justify-center bg-gray-950/30 cursor-progress"
3898
- });
3899
- return /* @__PURE__ */ jsx99(ModalOverlay2, { defaultOpen: true, className, isKeyboardDismissDisabled: true, children: /* @__PURE__ */ jsx99(Modal2, { children: /* @__PURE__ */ jsx99(Dialog2, { className: "text-text-inverted outline-0", children: /* @__PURE__ */ jsxs37(Stack, { space: 2, alignX: "center", children: [
3900
- /* @__PURE__ */ jsx99(Loader, { ...rest, ...ref, color: "text-inverted", size: 80 }),
3901
- children
3902
- ] }) }) }) });
3903
- }
3904
- );
3905
- var LoaderInline = forwardRef25(
3906
- ({ children, ...rest }, ref) => {
3907
- return /* @__PURE__ */ jsx99("div", { className: "text-text-inverted flex h-full w-full items-center justify-center bg-gray-950/30", children: /* @__PURE__ */ jsxs37(Stack, { space: 2, alignX: "center", children: [
3908
- /* @__PURE__ */ jsx99(Loader, { ...rest, ...ref, color: "text-inverted", size: 80 }),
3909
- children
3910
- ] }) });
3911
- }
3912
- );
3913
- var XLoader = forwardRef25(
3914
- ({ mode, ...rest }, ref) => {
3915
- return /* @__PURE__ */ jsx99(Fragment8, { children: mode === LoadingModes.FullSize ? /* @__PURE__ */ jsx99(LoaderFullSize, { ...rest, ...ref }) : mode === LoadingModes.Inline ? /* @__PURE__ */ jsx99(LoaderInline, { ...rest, ...ref }) : /* @__PURE__ */ jsx99(Loader, { ...rest, ...ref }) });
3916
- }
3917
- );
4132
+ import { useClassNames as useClassNames58 } from "@marigold/system";
4133
+
4134
+ // src/XLoader/BaseLoader.tsx
4135
+ import { Label as Label2, ProgressBar as ProgressBar2 } from "react-aria-components";
4136
+ import { useClassNames as useClassNames57 } from "@marigold/system";
4137
+ import { jsx as jsx107, jsxs as jsxs41 } from "react/jsx-runtime";
4138
+ var BaseLoader = ({
4139
+ variant,
4140
+ size,
4141
+ children,
4142
+ "aria-label": ariaLabel,
4143
+ ...props
4144
+ }) => {
4145
+ const className = useClassNames57({ component: "XLoader", variant, size });
4146
+ return /* @__PURE__ */ jsxs41(
4147
+ ProgressBar2,
4148
+ {
4149
+ className: className.container,
4150
+ isIndeterminate: true,
4151
+ "aria-label": ariaLabel || children ? ariaLabel : "Loading...",
4152
+ ...props,
4153
+ children: [
4154
+ /* @__PURE__ */ jsxs41(
4155
+ "svg",
4156
+ {
4157
+ xmlns: "http://www.w3.org/2000/svg",
4158
+ viewBox: "0 0 150 150",
4159
+ fill: "currentColor",
4160
+ className: className.loader,
4161
+ children: [
4162
+ /* @__PURE__ */ jsx107("path", { id: "XMLID_1_", d: "M35.3 27h26.5l54 74.1H88.7z" }),
4163
+ /* @__PURE__ */ jsx107(
4164
+ "path",
4165
+ {
4166
+ id: "XMLID_5_",
4167
+ 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",
4168
+ children: /* @__PURE__ */ jsx107(
4169
+ "animate",
4170
+ {
4171
+ attributeName: "opacity",
4172
+ attributeType: "XML",
4173
+ values: "1; .01; 1; 1; 1;",
4174
+ begin: "1.0s",
4175
+ dur: "2.5s",
4176
+ repeatCount: "indefinite"
4177
+ }
4178
+ )
4179
+ }
4180
+ ),
4181
+ /* @__PURE__ */ jsx107(
4182
+ "path",
4183
+ {
4184
+ id: "XMLID_18_",
4185
+ 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",
4186
+ children: /* @__PURE__ */ jsx107(
4187
+ "animate",
4188
+ {
4189
+ attributeName: "opacity",
4190
+ attributeType: "XML",
4191
+ values: "1; .01; 1; 1; 1;",
4192
+ begin: "0.9s",
4193
+ dur: "2.5s",
4194
+ repeatCount: "indefinite"
4195
+ }
4196
+ )
4197
+ }
4198
+ ),
4199
+ /* @__PURE__ */ jsx107(
4200
+ "path",
4201
+ {
4202
+ id: "XMLID_19_",
4203
+ 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",
4204
+ children: /* @__PURE__ */ jsx107(
4205
+ "animate",
4206
+ {
4207
+ attributeName: "opacity",
4208
+ attributeType: "XML",
4209
+ values: "1; .01; 1; 1; 1;",
4210
+ begin: "0.8s",
4211
+ dur: "2.5s",
4212
+ repeatCount: "indefinite"
4213
+ }
4214
+ )
4215
+ }
4216
+ ),
4217
+ /* @__PURE__ */ jsx107(
4218
+ "path",
4219
+ {
4220
+ id: "XMLID_20_",
4221
+ 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",
4222
+ children: /* @__PURE__ */ jsx107(
4223
+ "animate",
4224
+ {
4225
+ attributeName: "opacity",
4226
+ attributeType: "XML",
4227
+ values: "1; .01; 1; 1; 1;",
4228
+ begin: "0.7s",
4229
+ dur: "2.5s",
4230
+ repeatCount: "indefinite"
4231
+ }
4232
+ )
4233
+ }
4234
+ ),
4235
+ /* @__PURE__ */ jsx107(
4236
+ "path",
4237
+ {
4238
+ id: "XMLID_21_",
4239
+ 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",
4240
+ children: /* @__PURE__ */ jsx107(
4241
+ "animate",
4242
+ {
4243
+ attributeName: "opacity",
4244
+ attributeType: "XML",
4245
+ values: "1; .01; 1; 1; 1;",
4246
+ begin: "0.6s",
4247
+ dur: "2.5s",
4248
+ repeatCount: "indefinite"
4249
+ }
4250
+ )
4251
+ }
4252
+ ),
4253
+ /* @__PURE__ */ jsx107(
4254
+ "path",
4255
+ {
4256
+ id: "XMLID_22_",
4257
+ 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",
4258
+ children: /* @__PURE__ */ jsx107(
4259
+ "animate",
4260
+ {
4261
+ attributeName: "opacity",
4262
+ attributeType: "XML",
4263
+ values: "1; .01; 1; 1; 1;",
4264
+ begin: "0.5s",
4265
+ dur: "2.5s",
4266
+ repeatCount: "indefinite"
4267
+ }
4268
+ )
4269
+ }
4270
+ ),
4271
+ /* @__PURE__ */ jsx107(
4272
+ "path",
4273
+ {
4274
+ id: "XMLID_23_",
4275
+ 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",
4276
+ children: /* @__PURE__ */ jsx107(
4277
+ "animate",
4278
+ {
4279
+ attributeName: "opacity",
4280
+ attributeType: "XML",
4281
+ values: "1; .01; 1; 1; 1;",
4282
+ begin: "0.4s",
4283
+ dur: "2.5s",
4284
+ repeatCount: "indefinite"
4285
+ }
4286
+ )
4287
+ }
4288
+ ),
4289
+ /* @__PURE__ */ jsx107(
4290
+ "path",
4291
+ {
4292
+ id: "XMLID_24_",
4293
+ 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",
4294
+ children: /* @__PURE__ */ jsx107(
4295
+ "animate",
4296
+ {
4297
+ attributeName: "opacity",
4298
+ attributeType: "XML",
4299
+ values: "1; .01; 1; 1; 1;",
4300
+ begin: "0.3s",
4301
+ dur: "2.5s",
4302
+ repeatCount: "indefinite"
4303
+ }
4304
+ )
4305
+ }
4306
+ ),
4307
+ /* @__PURE__ */ jsx107(
4308
+ "path",
4309
+ {
4310
+ id: "XMLID_25_",
4311
+ 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",
4312
+ children: /* @__PURE__ */ jsx107(
4313
+ "animate",
4314
+ {
4315
+ attributeName: "opacity",
4316
+ attributeType: "XML",
4317
+ values: "1; .01; 1; 1; 1;",
4318
+ begin: "0.2s",
4319
+ dur: "2.5s",
4320
+ repeatCount: "indefinite"
4321
+ }
4322
+ )
4323
+ }
4324
+ ),
4325
+ /* @__PURE__ */ jsx107(
4326
+ "path",
4327
+ {
4328
+ id: "XMLID_26_",
4329
+ 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",
4330
+ children: /* @__PURE__ */ jsx107(
4331
+ "animate",
4332
+ {
4333
+ attributeName: "opacity",
4334
+ attributeType: "XML",
4335
+ values: "1; .01; 1; 1; 1;",
4336
+ begin: "0.1s",
4337
+ dur: "2.5s",
4338
+ repeatCount: "indefinite"
4339
+ }
4340
+ )
4341
+ }
4342
+ ),
4343
+ /* @__PURE__ */ jsx107(
4344
+ "path",
4345
+ {
4346
+ id: "XMLID_27_",
4347
+ 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",
4348
+ children: /* @__PURE__ */ jsx107(
4349
+ "animate",
4350
+ {
4351
+ attributeName: "opacity",
4352
+ attributeType: "XML",
4353
+ values: "1; .01; 1; 1; 1;",
4354
+ begin: "0.0s",
4355
+ dur: "2.5s",
4356
+ repeatCount: "indefinite"
4357
+ }
4358
+ )
4359
+ }
4360
+ )
4361
+ ]
4362
+ }
4363
+ ),
4364
+ children ? /* @__PURE__ */ jsx107(Label2, { className: className.label, children }) : null
4365
+ ]
4366
+ }
4367
+ );
4368
+ };
4369
+
4370
+ // src/XLoader/XLoader.tsx
4371
+ import { jsx as jsx108 } from "react/jsx-runtime";
4372
+ var LoaderFullSize = (props) => {
4373
+ const className = useClassNames58({
4374
+ component: "Underlay",
4375
+ variant: "modal",
4376
+ className: "fixed left-0 top-0 z-10 h-[--visual-viewport-height] w-screen"
4377
+ });
4378
+ return /* @__PURE__ */ jsx108(ModalOverlay2, { defaultOpen: true, className, isKeyboardDismissDisabled: true, children: /* @__PURE__ */ jsx108(Modal2, { className: "grid h-[--visual-viewport-height] cursor-progress place-items-center", children: /* @__PURE__ */ jsx108(Dialog2, { className: "outline-0", "aria-label": "Fullscreen Loader", children: /* @__PURE__ */ jsx108(BaseLoader, { ...props }) }) }) });
4379
+ };
4380
+ var LoaderInline = (props) => {
4381
+ const className = useClassNames58({
4382
+ component: "Underlay",
4383
+ variant: "modal",
4384
+ className: "flex size-full items-center justify-center"
4385
+ });
4386
+ return /* @__PURE__ */ jsx108("div", { className, children: /* @__PURE__ */ jsx108(BaseLoader, { ...props }) });
4387
+ };
4388
+ var XLoader = ({ mode, variant, ...props }) => mode === "fullsize" ? /* @__PURE__ */ jsx108(LoaderFullSize, { variant: variant != null ? variant : "inverted", ...props }) : mode === "inline" ? /* @__PURE__ */ jsx108(LoaderInline, { variant: variant != null ? variant : "inverted", ...props }) : /* @__PURE__ */ jsx108(BaseLoader, { variant, ...props });
3918
4389
 
3919
4390
  // src/Tabs/Tabs.tsx
3920
4391
  import { Tabs } from "react-aria-components";
3921
- import { useClassNames as useClassNames56 } from "@marigold/system";
4392
+ import { useClassNames as useClassNames59 } from "@marigold/system";
3922
4393
 
3923
4394
  // src/Tabs/Context.ts
3924
4395
  import { createContext as createContext10, useContext as useContext16 } from "react";
@@ -3927,15 +4398,15 @@ var useTabContext = () => useContext16(TabContext);
3927
4398
 
3928
4399
  // src/Tabs/Tab.tsx
3929
4400
  import { Tab } from "react-aria-components";
3930
- import { cn as cn61 } from "@marigold/system";
3931
- import { jsx as jsx100 } from "react/jsx-runtime";
4401
+ import { cn as cn62 } from "@marigold/system";
4402
+ import { jsx as jsx109 } from "react/jsx-runtime";
3932
4403
  var _Tab = (props) => {
3933
4404
  const { classNames: classNames2 } = useTabContext();
3934
- return /* @__PURE__ */ jsx100(
4405
+ return /* @__PURE__ */ jsx109(
3935
4406
  Tab,
3936
4407
  {
3937
4408
  ...props,
3938
- className: cn61(
4409
+ className: cn62(
3939
4410
  "flex cursor-pointer justify-center aria-disabled:cursor-not-allowed",
3940
4411
  classNames2.tab
3941
4412
  ),
@@ -3946,15 +4417,15 @@ var _Tab = (props) => {
3946
4417
 
3947
4418
  // src/Tabs/TabList.tsx
3948
4419
  import { TabList } from "react-aria-components";
3949
- import { cn as cn62, gapSpace as gapSpace9 } from "@marigold/system";
3950
- import { jsx as jsx101 } from "react/jsx-runtime";
4420
+ import { cn as cn63, gapSpace as gapSpace9 } from "@marigold/system";
4421
+ import { jsx as jsx110 } from "react/jsx-runtime";
3951
4422
  var _TabList = ({ space = 2, ...props }) => {
3952
4423
  const { classNames: classNames2 } = useTabContext();
3953
- return /* @__PURE__ */ jsx101(
4424
+ return /* @__PURE__ */ jsx110(
3954
4425
  TabList,
3955
4426
  {
3956
4427
  ...props,
3957
- className: cn62("flex", gapSpace9[space], classNames2.tabsList),
4428
+ className: cn63("flex", gapSpace9[space], classNames2.tabsList),
3958
4429
  children: props.children
3959
4430
  }
3960
4431
  );
@@ -3962,25 +4433,25 @@ var _TabList = ({ space = 2, ...props }) => {
3962
4433
 
3963
4434
  // src/Tabs/TabPanel.tsx
3964
4435
  import { TabPanel } from "react-aria-components";
3965
- import { jsx as jsx102 } from "react/jsx-runtime";
4436
+ import { jsx as jsx111 } from "react/jsx-runtime";
3966
4437
  var _TabPanel = (props) => {
3967
4438
  const { classNames: classNames2 } = useTabContext();
3968
- return /* @__PURE__ */ jsx102(TabPanel, { ...props, className: classNames2.tabpanel, children: props.children });
4439
+ return /* @__PURE__ */ jsx111(TabPanel, { ...props, className: classNames2.tabpanel, children: props.children });
3969
4440
  };
3970
4441
 
3971
4442
  // src/Tabs/Tabs.tsx
3972
- import { jsx as jsx103 } from "react/jsx-runtime";
4443
+ import { jsx as jsx112 } from "react/jsx-runtime";
3973
4444
  var _Tabs = ({ disabled, variant, size = "medium", ...rest }) => {
3974
4445
  const props = {
3975
4446
  isDisabled: disabled,
3976
4447
  ...rest
3977
4448
  };
3978
- const classNames2 = useClassNames56({
4449
+ const classNames2 = useClassNames59({
3979
4450
  component: "Tabs",
3980
4451
  size,
3981
4452
  variant
3982
4453
  });
3983
- return /* @__PURE__ */ jsx103(TabContext.Provider, { value: { classNames: classNames2 }, children: /* @__PURE__ */ jsx103(Tabs, { ...props, className: classNames2.container, children: props.children }) });
4454
+ return /* @__PURE__ */ jsx112(TabContext.Provider, { value: { classNames: classNames2 }, children: /* @__PURE__ */ jsx112(Tabs, { ...props, className: classNames2.container, children: props.children }) });
3984
4455
  };
3985
4456
  _Tabs.List = _TabList;
3986
4457
  _Tabs.TabPanel = _TabPanel;
@@ -4034,6 +4505,7 @@ export {
4034
4505
  Multiselect,
4035
4506
  _NumberField as NumberField,
4036
4507
  OverlayContainerProvider,
4508
+ _Pagination as Pagination,
4037
4509
  _Popover as Popover,
4038
4510
  _Radio as Radio,
4039
4511
  _RadioGroup as RadioGroup,