@marigold/components 11.0.1 → 11.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -3,7 +3,7 @@ import { useAsyncList, useListData } from "@react-stately/data";
3
3
 
4
4
  // src/Accordion/Accordion.tsx
5
5
  import { DisclosureGroup } from "react-aria-components";
6
- import { useClassNames as useClassNames2 } from "@marigold/system";
6
+ import { useClassNames } from "@marigold/system";
7
7
 
8
8
  // src/Accordion/AccordionContext.tsx
9
9
  import { createContext, useContext } from "react";
@@ -19,126 +19,30 @@ var useAccordionContext = () => {
19
19
  return ctx;
20
20
  };
21
21
 
22
- // src/Accordion/AccordionHeading.tsx
23
- import { Heading } from "react-aria-components";
24
- import { cn as cn2 } from "@marigold/system";
22
+ // src/Accordion/AccordionHeader.tsx
23
+ import { useContext as useContext2 } from "react";
24
+ import { Button, DisclosureStateContext, Heading } from "react-aria-components";
25
+ import { cn } from "@marigold/system";
25
26
 
26
- // src/Button/Button.tsx
27
+ // src/icons/ChevronDown.tsx
27
28
  import { forwardRef } from "react";
28
- import { Button } from "react-aria-components";
29
- import { cn, useClassNames } from "@marigold/system";
30
-
31
- // src/ProgressCycle/ProgressCycle.tsx
32
- import { ProgressBar } from "react-aria-components";
33
29
  import { SVG } from "@marigold/system";
34
- import { jsx, jsxs } from "react/jsx-runtime";
35
- var ProgressCycle = ({
36
- size = "16",
37
- ...props
38
- }) => {
39
- let strokeWidth = 3;
40
- if (size <= "24") {
41
- strokeWidth = 2;
42
- } else if (size >= "32") {
43
- strokeWidth = 4;
44
- }
45
- const radius = `calc(50% - ${strokeWidth / 2}px)`;
46
- return /* @__PURE__ */ jsx(ProgressBar, { ...props, "aria-label": "loading", isIndeterminate: true, children: /* @__PURE__ */ jsxs(
47
- SVG,
48
- {
49
- className: "animate-rotate-spinner origin-center fill-none",
50
- size,
51
- "aria-hidden": "true",
52
- role: "img",
53
- children: [
54
- /* @__PURE__ */ jsx(
55
- "circle",
56
- {
57
- cx: "50%",
58
- cy: "50%",
59
- r: radius,
60
- strokeWidth,
61
- className: "stroke-transparent"
62
- }
63
- ),
64
- /* @__PURE__ */ jsx(
65
- "circle",
66
- {
67
- cx: "50%",
68
- cy: "50%",
69
- r: radius,
70
- strokeWidth,
71
- pathLength: "100",
72
- strokeDasharray: "100 200",
73
- strokeDashoffset: "0",
74
- strokeLinecap: "round",
75
- className: "animate-progress-cycle origin-center -rotate-90 stroke-gray-800"
76
- }
77
- )
78
- ]
79
- }
80
- ) });
81
- };
82
-
83
- // src/Button/Button.tsx
84
- import { Fragment, jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
85
- var _Button = forwardRef(
86
- ({
87
- children,
88
- variant,
89
- size,
90
- className,
91
- disabled,
92
- loading,
93
- fullWidth,
94
- ...props
95
- }, ref) => {
96
- const classNames2 = useClassNames({
97
- component: "Button",
98
- variant,
99
- size,
100
- className
101
- });
102
- return /* @__PURE__ */ jsx2(
103
- Button,
104
- {
105
- ...props,
106
- ref,
107
- className: cn(
108
- "inline-flex items-center justify-center gap-[0.5ch]",
109
- classNames2,
110
- fullWidth ? "w-full" : void 0,
111
- loading && "cursor-progress!"
112
- ),
113
- isPending: loading,
114
- isDisabled: disabled,
115
- children: loading ? /* @__PURE__ */ jsxs2(Fragment, { children: [
116
- /* @__PURE__ */ jsx2("span", { className: "absolute", children: /* @__PURE__ */ jsx2(ProgressCycle, {}) }),
117
- /* @__PURE__ */ jsx2("span", { className: "invisible flex gap-[inherit]", children })
118
- ] }) : children
119
- }
120
- );
121
- }
30
+ import { jsx } from "react/jsx-runtime";
31
+ var ChevronDown = forwardRef(
32
+ ({ className, ...props }, ref) => /* @__PURE__ */ jsx(SVG, { className, ...props, viewBox: "0 0 24 24", ref, children: /* @__PURE__ */ jsx("path", { d: "M5.97563 7.125L12 13.1363L18.0244 7.125L19.875 8.97563L12 16.8506L4.125 8.97563L5.97563 7.125Z" }) })
122
33
  );
123
34
 
124
- // src/icons/ChevronRight.tsx
125
- import { forwardRef as forwardRef2 } from "react";
126
- import { SVG as SVG2 } from "@marigold/system";
127
- import { jsx as jsx3 } from "react/jsx-runtime";
128
- var ChevronRight = forwardRef2(
129
- ({ className, ...props }, ref) => /* @__PURE__ */ jsx3(SVG2, { 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" }) })
130
- );
131
-
132
- // src/Accordion/AccordionHeading.tsx
133
- import { jsx as jsx4, jsxs as jsxs3 } from "react/jsx-runtime";
35
+ // src/Accordion/AccordionHeader.tsx
36
+ import { jsx as jsx2, jsxs } from "react/jsx-runtime";
134
37
  var AccordionHeader = ({ children }) => {
135
38
  const { classNames: classNames2 } = useAccordionContext();
136
- return /* @__PURE__ */ jsx4(Heading, { children: /* @__PURE__ */ jsxs3(_Button, { slot: "trigger", className: cn2("group", classNames2.header), children: [
39
+ const { isExpanded } = useContext2(DisclosureStateContext);
40
+ return /* @__PURE__ */ jsx2(Heading, { children: /* @__PURE__ */ jsxs(Button, { slot: "trigger", className: classNames2.header, children: [
137
41
  children,
138
- /* @__PURE__ */ jsx4(
139
- ChevronRight,
42
+ /* @__PURE__ */ jsx2(
43
+ ChevronDown,
140
44
  {
141
- className: cn2(classNames2.icon, "group-aria-expanded:rotate-90")
45
+ className: cn(classNames2.icon, isExpanded && "rotate-180")
142
46
  }
143
47
  )
144
48
  ] }) });
@@ -146,7 +50,7 @@ var AccordionHeader = ({ children }) => {
146
50
 
147
51
  // src/Accordion/AccordionItem.tsx
148
52
  import { Disclosure } from "react-aria-components";
149
- import { jsx as jsx5 } from "react/jsx-runtime";
53
+ import { jsx as jsx3 } from "react/jsx-runtime";
150
54
  var AccordionItem = ({
151
55
  children,
152
56
  disabled,
@@ -154,7 +58,7 @@ var AccordionItem = ({
154
58
  ...props
155
59
  }) => {
156
60
  const { classNames: classNames2 } = useAccordionContext();
157
- return /* @__PURE__ */ jsx5(
61
+ return /* @__PURE__ */ jsx3(
158
62
  Disclosure,
159
63
  {
160
64
  isDisabled: disabled,
@@ -168,14 +72,14 @@ var AccordionItem = ({
168
72
 
169
73
  // src/Accordion/AccordionPanel.tsx
170
74
  import { DisclosurePanel } from "react-aria-components";
171
- import { jsx as jsx6 } from "react/jsx-runtime";
75
+ import { jsx as jsx4 } from "react/jsx-runtime";
172
76
  var AccordionPanel = ({ children }) => {
173
77
  const { classNames: classNames2 } = useAccordionContext();
174
- return /* @__PURE__ */ jsx6(DisclosurePanel, { className: classNames2.content, children });
78
+ return /* @__PURE__ */ jsx4(DisclosurePanel, { className: classNames2.content, children });
175
79
  };
176
80
 
177
81
  // src/Accordion/Accordion.tsx
178
- import { jsx as jsx7 } from "react/jsx-runtime";
82
+ import { jsx as jsx5 } from "react/jsx-runtime";
179
83
  var Accordion = ({
180
84
  children,
181
85
  disabled,
@@ -183,8 +87,8 @@ var Accordion = ({
183
87
  size,
184
88
  ...props
185
89
  }) => {
186
- const classNames2 = useClassNames2({ component: "Accordion", variant, size });
187
- return /* @__PURE__ */ jsx7(AccordionProvider, { value: { classNames: classNames2 }, children: /* @__PURE__ */ jsx7(
90
+ const classNames2 = useClassNames({ component: "Accordion", variant, size });
91
+ return /* @__PURE__ */ jsx5(AccordionProvider, { value: { classNames: classNames2 }, children: /* @__PURE__ */ jsx5(
188
92
  DisclosureGroup,
189
93
  {
190
94
  ...props,
@@ -200,8 +104,8 @@ Accordion.Item = AccordionItem;
200
104
 
201
105
  // src/Aside/Aside.tsx
202
106
  import { Children } from "react";
203
- import { cn as cn3, createVar, gapSpace } from "@marigold/system";
204
- import { jsx as jsx8, jsxs as jsxs4 } from "react/jsx-runtime";
107
+ import { cn as cn2, createVar, gapSpace } from "@marigold/system";
108
+ import { jsx as jsx6, jsxs as jsxs2 } from "react/jsx-runtime";
205
109
  var classNames = {
206
110
  aside: "grow basis-(--sideWidth)",
207
111
  content: "basis-0 grow-999 [min-inline-size:var(--wrap)]"
@@ -218,8 +122,8 @@ var Aside = ({
218
122
  aside: createVar({ sideWidth }),
219
123
  content: createVar({ wrap })
220
124
  };
221
- return /* @__PURE__ */ jsxs4("div", { className: cn3("flex flex-wrap", gapSpace[space]), children: [
222
- /* @__PURE__ */ jsx8(
125
+ return /* @__PURE__ */ jsxs2("div", { className: cn2("flex flex-wrap", gapSpace[space]), children: [
126
+ /* @__PURE__ */ jsx6(
223
127
  "div",
224
128
  {
225
129
  className: classNames[side === "left" ? "aside" : "content"],
@@ -227,7 +131,7 @@ var Aside = ({
227
131
  children: left
228
132
  }
229
133
  ),
230
- /* @__PURE__ */ jsx8(
134
+ /* @__PURE__ */ jsx6(
231
135
  "div",
232
136
  {
233
137
  className: classNames[side === "right" ? "aside" : "content"],
@@ -239,17 +143,17 @@ var Aside = ({
239
143
  };
240
144
 
241
145
  // src/Aspect/Aspect.tsx
242
- import { aspect, cn as cn4, createVar as createVar2 } from "@marigold/system";
243
- import { jsx as jsx9 } from "react/jsx-runtime";
146
+ import { aspect, cn as cn3, createVar as createVar2 } from "@marigold/system";
147
+ import { jsx as jsx7 } from "react/jsx-runtime";
244
148
  var Aspect = ({
245
149
  ratio = "square",
246
150
  maxWidth,
247
151
  children
248
152
  }) => {
249
- return /* @__PURE__ */ jsx9(
153
+ return /* @__PURE__ */ jsx7(
250
154
  "div",
251
155
  {
252
- className: cn4(
156
+ className: cn3(
253
157
  "overflow-hidden",
254
158
  aspect[ratio],
255
159
  "max-w-[var(--maxWidth)]"
@@ -262,28 +166,28 @@ var Aspect = ({
262
166
 
263
167
  // src/Autocomplete/Autocomplete.tsx
264
168
  import React, {
265
- forwardRef as forwardRef8
169
+ forwardRef as forwardRef7
266
170
  } from "react";
267
171
  import { ComboBox, ComboBoxStateContext } from "react-aria-components";
268
- import { cn as cn14, useClassNames as useClassNames10 } from "@marigold/system";
172
+ import { cn as cn13, useClassNames as useClassNames9 } from "@marigold/system";
269
173
 
270
174
  // src/FieldBase/FieldBase.tsx
271
- import { forwardRef as forwardRef3 } from "react";
272
- import { cn as cn7, width as twWidth, useClassNames as useClassNames5 } from "@marigold/system";
175
+ import { forwardRef as forwardRef2 } from "react";
176
+ import { cn as cn6, width as twWidth, useClassNames as useClassNames4 } from "@marigold/system";
273
177
 
274
178
  // src/HelpText/HelpText.tsx
275
- import { useContext as useContext2 } from "react";
179
+ import { useContext as useContext3 } from "react";
276
180
  import { FieldError, FieldErrorContext, Text } from "react-aria-components";
277
- import { cn as cn5, useClassNames as useClassNames3 } from "@marigold/system";
278
- import { jsx as jsx10, jsxs as jsxs5 } from "react/jsx-runtime";
279
- var Icon = ({ className }) => /* @__PURE__ */ jsx10(
181
+ import { cn as cn4, useClassNames as useClassNames2 } from "@marigold/system";
182
+ import { jsx as jsx8, jsxs as jsxs3 } from "react/jsx-runtime";
183
+ var Icon = ({ className }) => /* @__PURE__ */ jsx8(
280
184
  "svg",
281
185
  {
282
- className: cn5("h-4 w-4 shrink-0", className),
186
+ className: cn4("h-4 w-4 shrink-0", className),
283
187
  viewBox: "0 0 24 24",
284
188
  role: "presentation",
285
189
  fill: "currentColor",
286
- children: /* @__PURE__ */ jsx10("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" })
190
+ children: /* @__PURE__ */ jsx8("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" })
287
191
  }
288
192
  );
289
193
  var HelpText = ({
@@ -293,64 +197,64 @@ var HelpText = ({
293
197
  errorMessage,
294
198
  ...props
295
199
  }) => {
296
- const classNames2 = useClassNames3({
200
+ const classNames2 = useClassNames2({
297
201
  component: "HelpText",
298
202
  variant,
299
203
  size
300
204
  });
301
- const ctx = useContext2(FieldErrorContext);
205
+ const ctx = useContext3(FieldErrorContext);
302
206
  if (!description && ctx && !ctx.isInvalid) {
303
207
  return null;
304
208
  }
305
- return /* @__PURE__ */ jsxs5("div", { className: cn5(classNames2.container), children: [
306
- /* @__PURE__ */ jsx10(FieldError, { ...props, className: "flex flex-col", children: (validation) => {
209
+ return /* @__PURE__ */ jsxs3("div", { className: cn4(classNames2.container), children: [
210
+ /* @__PURE__ */ jsx8(FieldError, { ...props, className: "flex flex-col", children: (validation) => {
307
211
  const messages = (typeof errorMessage === "function" ? errorMessage(validation) : errorMessage) || validation.validationErrors;
308
- return Array.isArray(messages) ? messages.map((msg, idx) => /* @__PURE__ */ jsxs5("div", { className: "flex items-center justify-start gap-1", children: [
309
- /* @__PURE__ */ jsx10(Icon, { className: classNames2.icon }),
212
+ return Array.isArray(messages) ? messages.map((msg, idx) => /* @__PURE__ */ jsxs3("div", { className: "flex items-center justify-start gap-1", children: [
213
+ /* @__PURE__ */ jsx8(Icon, { className: classNames2.icon }),
310
214
  msg
311
- ] }, idx)) : /* @__PURE__ */ jsxs5("div", { className: "flex items-center justify-start gap-1", children: [
312
- /* @__PURE__ */ jsx10(Icon, { className: classNames2.icon }),
215
+ ] }, idx)) : /* @__PURE__ */ jsxs3("div", { className: "flex items-center justify-start gap-1", children: [
216
+ /* @__PURE__ */ jsx8(Icon, { className: classNames2.icon }),
313
217
  messages
314
218
  ] });
315
219
  } }),
316
- ctx && ctx.isInvalid ? null : /* @__PURE__ */ jsx10(Text, { slot: "description", children: description })
220
+ ctx && ctx.isInvalid ? null : /* @__PURE__ */ jsx8(Text, { slot: "description", children: description })
317
221
  ] });
318
222
  };
319
223
 
320
224
  // src/Label/Label.tsx
321
225
  import { Label } from "react-aria-components";
322
- import { SVG as SVG3, cn as cn6, createVar as createVar3, useClassNames as useClassNames4 } from "@marigold/system";
226
+ import { SVG as SVG2, cn as cn5, createVar as createVar3, useClassNames as useClassNames3 } from "@marigold/system";
323
227
 
324
228
  // src/FieldBase/FieldGroup.tsx
325
- import { createContext as createContext2, useContext as useContext3 } from "react";
326
- import { jsx as jsx11 } from "react/jsx-runtime";
229
+ import { createContext as createContext2, useContext as useContext4 } from "react";
230
+ import { jsx as jsx9 } from "react/jsx-runtime";
327
231
  var FieldGroupContext = createContext2({});
328
- var useFieldGroupContext = () => useContext3(FieldGroupContext);
232
+ var useFieldGroupContext = () => useContext4(FieldGroupContext);
329
233
  var FieldGroup = ({ labelWidth, children }) => {
330
- return /* @__PURE__ */ jsx11(FieldGroupContext.Provider, { value: { labelWidth }, children });
234
+ return /* @__PURE__ */ jsx9(FieldGroupContext.Provider, { value: { labelWidth }, children });
331
235
  };
332
236
 
333
237
  // src/Label/Label.tsx
334
- import { jsx as jsx12, jsxs as jsxs6 } from "react/jsx-runtime";
238
+ import { jsx as jsx10, jsxs as jsxs4 } from "react/jsx-runtime";
335
239
  var _Label = ({ size, variant, children, ...props }) => {
336
- const classNames2 = useClassNames4({ component: "Label", size, variant });
240
+ const classNames2 = useClassNames3({ component: "Label", size, variant });
337
241
  const { labelWidth } = useFieldGroupContext();
338
- return /* @__PURE__ */ jsxs6(
242
+ return /* @__PURE__ */ jsxs4(
339
243
  Label,
340
244
  {
341
245
  ...props,
342
- className: cn6(classNames2.container, "flex w-[var(--labelWidth)]"),
246
+ className: cn5(classNames2.container, "flex w-[var(--labelWidth)]"),
343
247
  style: createVar3({ labelWidth }),
344
248
  children: [
345
249
  children,
346
- /* @__PURE__ */ jsx12(
347
- SVG3,
250
+ /* @__PURE__ */ jsx10(
251
+ SVG2,
348
252
  {
349
253
  viewBox: "0 0 24 24",
350
254
  role: "presentation",
351
255
  size: 16,
352
- className: cn6("hidden", classNames2.indicator),
353
- children: /* @__PURE__ */ jsx12("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" })
256
+ className: cn5("hidden", classNames2.indicator),
257
+ children: /* @__PURE__ */ jsx10("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" })
354
258
  }
355
259
  )
356
260
  ]
@@ -359,8 +263,8 @@ var _Label = ({ size, variant, children, ...props }) => {
359
263
  };
360
264
 
361
265
  // src/FieldBase/FieldBase.tsx
362
- import { jsx as jsx13, jsxs as jsxs7 } from "react/jsx-runtime";
363
- var fixedForwardRef = forwardRef3;
266
+ import { jsx as jsx11, jsxs as jsxs5 } from "react/jsx-runtime";
267
+ var fixedForwardRef = forwardRef2;
364
268
  var _FieldBase = (props, ref) => {
365
269
  const {
366
270
  as: Component = "div",
@@ -375,16 +279,16 @@ var _FieldBase = (props, ref) => {
375
279
  stateProps,
376
280
  ...rest
377
281
  } = props;
378
- const classNames2 = useClassNames5({
282
+ const classNames2 = useClassNames4({
379
283
  component: "Field",
380
284
  variant,
381
285
  size
382
286
  });
383
- return /* @__PURE__ */ jsxs7(
287
+ return /* @__PURE__ */ jsxs5(
384
288
  Component,
385
289
  {
386
290
  ref,
387
- className: cn7(
291
+ className: cn6(
388
292
  "group/field",
389
293
  twWidth[width],
390
294
  classNames2,
@@ -395,9 +299,9 @@ var _FieldBase = (props, ref) => {
395
299
  "data-error": props.isInvalid ? true : void 0,
396
300
  ...rest,
397
301
  children: [
398
- label ? /* @__PURE__ */ jsx13(_Label, { variant, size, children: label }) : /* @__PURE__ */ jsx13("span", { "aria-hidden": "true" }),
302
+ label ? /* @__PURE__ */ jsx11(_Label, { variant, size, children: label }) : /* @__PURE__ */ jsx11("span", { "aria-hidden": "true" }),
399
303
  children,
400
- /* @__PURE__ */ jsx13(
304
+ /* @__PURE__ */ jsx11(
401
305
  HelpText,
402
306
  {
403
307
  variant,
@@ -413,26 +317,26 @@ var _FieldBase = (props, ref) => {
413
317
  var FieldBase = fixedForwardRef(_FieldBase);
414
318
 
415
319
  // src/Input/SearchInput.tsx
416
- import { forwardRef as forwardRef5 } from "react";
320
+ import { forwardRef as forwardRef4 } from "react";
417
321
  import { Button as Button2 } from "react-aria-components";
418
322
  import { useLocalizedStringFormatter } from "@react-aria/i18n";
419
- import { cn as cn9 } from "@marigold/system";
323
+ import { cn as cn8 } from "@marigold/system";
420
324
 
421
325
  // src/Input/Input.tsx
422
- import { cloneElement, forwardRef as forwardRef4 } from "react";
326
+ import { cloneElement, forwardRef as forwardRef3 } from "react";
423
327
  import { Input } from "react-aria-components";
424
- import { cn as cn8, useClassNames as useClassNames6 } from "@marigold/system";
425
- import { jsx as jsx14, jsxs as jsxs8 } from "react/jsx-runtime";
426
- var _Input = forwardRef4(
328
+ import { cn as cn7, useClassNames as useClassNames5 } from "@marigold/system";
329
+ import { jsx as jsx12, jsxs as jsxs6 } from "react/jsx-runtime";
330
+ var _Input = forwardRef3(
427
331
  ({ type, icon, action, variant, size, className, ...props }, ref) => {
428
- const classNames2 = useClassNames6({
332
+ const classNames2 = useClassNames5({
429
333
  component: "Input",
430
334
  variant,
431
335
  size
432
336
  });
433
337
  const inputIcon = icon ? cloneElement(icon, {
434
338
  ...icon.props,
435
- className: cn8(
339
+ className: cn7(
436
340
  "pointer-events-none absolute",
437
341
  classNames2.icon,
438
342
  icon.props.className
@@ -440,13 +344,13 @@ var _Input = forwardRef4(
440
344
  }) : null;
441
345
  const inputAction = action && !props.readOnly ? cloneElement(action, {
442
346
  ...action.props,
443
- className: cn8(
347
+ className: cn7(
444
348
  "absolute right-0",
445
349
  classNames2.action,
446
350
  action.props.className
447
351
  )
448
352
  }) : null;
449
- return /* @__PURE__ */ jsxs8(
353
+ return /* @__PURE__ */ jsxs6(
450
354
  "div",
451
355
  {
452
356
  className: "group/input relative flex items-center",
@@ -454,11 +358,11 @@ var _Input = forwardRef4(
454
358
  "data-action": action && "",
455
359
  children: [
456
360
  inputIcon,
457
- /* @__PURE__ */ jsx14(
361
+ /* @__PURE__ */ jsx12(
458
362
  Input,
459
363
  {
460
364
  ...props,
461
- className: cn8(
365
+ className: cn7(
462
366
  "w-full flex-1",
463
367
  "disabled:cursor-not-allowed",
464
368
  "[&[type=file]]:border-none [&[type=file]]:p-0",
@@ -478,7 +382,7 @@ var _Input = forwardRef4(
478
382
  );
479
383
 
480
384
  // src/Input/SearchInput.tsx
481
- import { jsx as jsx15 } from "react/jsx-runtime";
385
+ import { jsx as jsx13 } from "react/jsx-runtime";
482
386
  var intlMessages = {
483
387
  "de-DE": {
484
388
  "Clear search": "Suche zur\xFCcksetzen"
@@ -490,7 +394,7 @@ var intlMessages = {
490
394
  "Clear search": "Effacer la recherche"
491
395
  }
492
396
  };
493
- var SearchIcon = (props) => /* @__PURE__ */ jsx15(
397
+ var SearchIcon = (props) => /* @__PURE__ */ jsx13(
494
398
  "svg",
495
399
  {
496
400
  xmlns: "http://www.w3.org/2000/svg",
@@ -499,23 +403,23 @@ var SearchIcon = (props) => /* @__PURE__ */ jsx15(
499
403
  width: 24,
500
404
  height: 24,
501
405
  ...props,
502
- children: /* @__PURE__ */ jsx15("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" })
406
+ children: /* @__PURE__ */ jsx13("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" })
503
407
  }
504
408
  );
505
- var SearchInput = forwardRef5(
409
+ var SearchInput = forwardRef4(
506
410
  ({ className, onClear, ...props }, ref) => {
507
411
  const stringFormatter = useLocalizedStringFormatter(intlMessages);
508
- return /* @__PURE__ */ jsx15(
412
+ return /* @__PURE__ */ jsx13(
509
413
  _Input,
510
414
  {
511
415
  type: "search",
512
- className: cn9(
416
+ className: cn8(
513
417
  "[&::-webkit-search-cancel-button]:hidden",
514
418
  className == null ? void 0 : className.input
515
419
  ),
516
420
  ref,
517
- icon: /* @__PURE__ */ jsx15(SearchIcon, {}),
518
- action: /* @__PURE__ */ jsx15(
421
+ icon: /* @__PURE__ */ jsx13(SearchIcon, {}),
422
+ action: /* @__PURE__ */ jsx13(
519
423
  Button2,
520
424
  {
521
425
  className: className == null ? void 0 : className.action,
@@ -523,7 +427,7 @@ var SearchInput = forwardRef5(
523
427
  "aria-label": stringFormatter.format("Clear search"),
524
428
  excludeFromTabOrder: true,
525
429
  preventFocusOnPress: true,
526
- children: /* @__PURE__ */ jsx15(
430
+ children: /* @__PURE__ */ jsx13(
527
431
  "svg",
528
432
  {
529
433
  xmlns: "http://www.w3.org/2000/svg",
@@ -531,7 +435,7 @@ var SearchInput = forwardRef5(
531
435
  fill: "currentColor",
532
436
  width: 20,
533
437
  height: 20,
534
- children: /* @__PURE__ */ jsx15("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" })
438
+ children: /* @__PURE__ */ jsx13("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" })
535
439
  }
536
440
  )
537
441
  }
@@ -544,37 +448,37 @@ var SearchInput = forwardRef5(
544
448
 
545
449
  // src/ListBox/ListBox.tsx
546
450
  import {
547
- forwardRef as forwardRef6
451
+ forwardRef as forwardRef5
548
452
  } from "react";
549
453
  import { ListBox } from "react-aria-components";
550
- import { cn as cn11, useClassNames as useClassNames7 } from "@marigold/system";
454
+ import { cn as cn10, useClassNames as useClassNames6 } from "@marigold/system";
551
455
 
552
456
  // src/ListBox/Context.ts
553
- import { createContext as createContext3, useContext as useContext4 } from "react";
457
+ import { createContext as createContext3, useContext as useContext5 } from "react";
554
458
  var ListBoxContext = createContext3({});
555
- var useListBoxContext = () => useContext4(ListBoxContext);
459
+ var useListBoxContext = () => useContext5(ListBoxContext);
556
460
 
557
461
  // src/ListBox/ListBoxItem.tsx
558
462
  import { ListBoxItem } from "react-aria-components";
559
- import { jsx as jsx16 } from "react/jsx-runtime";
463
+ import { jsx as jsx14 } from "react/jsx-runtime";
560
464
  var _ListBoxItem = ({ ...props }) => {
561
465
  const { classNames: classNames2 } = useListBoxContext();
562
- return /* @__PURE__ */ jsx16(ListBoxItem, { ...props, className: classNames2.option });
466
+ return /* @__PURE__ */ jsx14(ListBoxItem, { ...props, className: classNames2.option });
563
467
  };
564
468
 
565
469
  // src/ListBox/ListBoxSection.tsx
566
470
  import { Header, ListBoxSection } from "react-aria-components";
567
- import { cn as cn10 } from "@marigold/system";
568
- import { jsx as jsx17, jsxs as jsxs9 } from "react/jsx-runtime";
471
+ import { cn as cn9 } from "@marigold/system";
472
+ import { jsx as jsx15, jsxs as jsxs7 } from "react/jsx-runtime";
569
473
  var _Section = ({ header, children, ...props }) => {
570
474
  const { classNames: classNames2 } = useListBoxContext();
571
- return /* @__PURE__ */ jsxs9(
475
+ return /* @__PURE__ */ jsxs7(
572
476
  ListBoxSection,
573
477
  {
574
478
  ...props,
575
- className: cn10(classNames2.section, classNames2.header),
479
+ className: cn9(classNames2.section, classNames2.header),
576
480
  children: [
577
- /* @__PURE__ */ jsx17(Header, { children: header }),
481
+ /* @__PURE__ */ jsx15(Header, { children: header }),
578
482
  children
579
483
  ]
580
484
  }
@@ -582,16 +486,16 @@ var _Section = ({ header, children, ...props }) => {
582
486
  };
583
487
 
584
488
  // src/ListBox/ListBox.tsx
585
- import { jsx as jsx18 } from "react/jsx-runtime";
586
- var _ListBox = forwardRef6(
489
+ import { jsx as jsx16 } from "react/jsx-runtime";
490
+ var _ListBox = forwardRef5(
587
491
  ({ variant, size, ...props }, ref) => {
588
- const classNames2 = useClassNames7({ component: "ListBox", variant, size });
492
+ const classNames2 = useClassNames6({ component: "ListBox", variant, size });
589
493
  const listBoxProps = { shouldSelectOnPressUp: false };
590
- return /* @__PURE__ */ jsx18(ListBoxContext.Provider, { value: { classNames: classNames2 }, children: /* @__PURE__ */ jsx18("div", { className: classNames2.container, children: /* @__PURE__ */ jsx18(
494
+ return /* @__PURE__ */ jsx16(ListBoxContext.Provider, { value: { classNames: classNames2 }, children: /* @__PURE__ */ jsx16("div", { className: classNames2.container, children: /* @__PURE__ */ jsx16(
591
495
  ListBox,
592
496
  {
593
497
  ...props,
594
- className: cn11(
498
+ className: cn10(
595
499
  "overflow-y-auto sm:max-h-[75vh] lg:max-h-[45vh]",
596
500
  classNames2.list
597
501
  ),
@@ -606,17 +510,17 @@ _ListBox.Item = _ListBoxItem;
606
510
  _ListBox.Section = _Section;
607
511
 
608
512
  // src/Overlay/Popover.tsx
609
- import { forwardRef as forwardRef7 } from "react";
513
+ import { forwardRef as forwardRef6 } from "react";
610
514
  import { Popover } from "react-aria-components";
611
- import { cn as cn13, useClassNames as useClassNames9, useSmallScreen } from "@marigold/system";
515
+ import { cn as cn12, useClassNames as useClassNames8, useSmallScreen } from "@marigold/system";
612
516
 
613
517
  // src/Provider/OverlayContainerProvider.tsx
614
- import { createContext as createContext4, useContext as useContext5 } from "react";
518
+ import { createContext as createContext4, useContext as useContext6 } from "react";
615
519
  import { useIsSSR } from "@react-aria/ssr";
616
520
  var OverlayContainerContext = createContext4(void 0);
617
521
  var OverlayContainerProvider = OverlayContainerContext.Provider;
618
522
  var usePortalContainer = () => {
619
- const portalContainer = useContext5(OverlayContainerContext);
523
+ const portalContainer = useContext6(OverlayContainerContext);
620
524
  const isSSR = useIsSSR();
621
525
  const portal = isSSR ? null : portalContainer ? document.getElementById(portalContainer) : document.body;
622
526
  return portal;
@@ -624,7 +528,7 @@ var usePortalContainer = () => {
624
528
 
625
529
  // src/Overlay/Underlay.tsx
626
530
  import { ModalOverlay } from "react-aria-components";
627
- import { cn as cn12, useClassNames as useClassNames8 } from "@marigold/system";
531
+ import { cn as cn11, useClassNames as useClassNames7 } from "@marigold/system";
628
532
 
629
533
  // src/Provider/index.ts
630
534
  import { useTheme, ThemeProvider as ThemeProvider2 } from "@marigold/system";
@@ -632,17 +536,17 @@ import { I18nProvider } from "@react-aria/i18n";
632
536
 
633
537
  // src/Provider/MarigoldProvider.tsx
634
538
  import { ThemeProvider } from "@marigold/system";
635
- import { jsx as jsx19 } from "react/jsx-runtime";
539
+ import { jsx as jsx17 } from "react/jsx-runtime";
636
540
  function MarigoldProvider({
637
541
  children,
638
542
  className,
639
543
  theme
640
544
  }) {
641
- return /* @__PURE__ */ jsx19(ThemeProvider, { theme, className, children });
545
+ return /* @__PURE__ */ jsx17(ThemeProvider, { theme, className, children });
642
546
  }
643
547
 
644
548
  // src/Overlay/Underlay.tsx
645
- import { jsx as jsx20 } from "react/jsx-runtime";
549
+ import { jsx as jsx18 } from "react/jsx-runtime";
646
550
  var Underlay = ({
647
551
  size,
648
552
  variant,
@@ -651,7 +555,7 @@ var Underlay = ({
651
555
  keyboardDismissable,
652
556
  ...rest
653
557
  }) => {
654
- const classNames2 = useClassNames8({ component: "Underlay", size, variant });
558
+ const classNames2 = useClassNames7({ component: "Underlay", size, variant });
655
559
  const props = {
656
560
  isOpen: open,
657
561
  isDismissable: dismissable,
@@ -659,10 +563,10 @@ var Underlay = ({
659
563
  ...rest
660
564
  };
661
565
  const portal = usePortalContainer();
662
- return /* @__PURE__ */ jsx20(
566
+ return /* @__PURE__ */ jsx18(
663
567
  ModalOverlay,
664
568
  {
665
- className: ({ isEntering, isExiting }) => cn12(
569
+ className: ({ isEntering, isExiting }) => cn11(
666
570
  "fixed inset-0 z-40 flex min-h-full items-center justify-center overflow-y-auto backdrop-blur-xs",
667
571
  isEntering ? "animate-in fade-in duration-300 ease-out" : "",
668
572
  isExiting ? "animate-out fade-out duration-200 ease-in" : "",
@@ -677,8 +581,8 @@ var Underlay = ({
677
581
  };
678
582
 
679
583
  // src/Overlay/Popover.tsx
680
- import { Fragment as Fragment2, jsx as jsx21, jsxs as jsxs10 } from "react/jsx-runtime";
681
- var _Popover = forwardRef7(
584
+ import { Fragment, jsx as jsx19, jsxs as jsxs8 } from "react/jsx-runtime";
585
+ var _Popover = forwardRef6(
682
586
  ({ keyboardDismissDisabled, placement, open, children, container, ...rest }, ref) => {
683
587
  const props = {
684
588
  isKeyboardDismissDisabled: keyboardDismissDisabled,
@@ -686,7 +590,7 @@ var _Popover = forwardRef7(
686
590
  placement,
687
591
  ...rest
688
592
  };
689
- const classNames2 = useClassNames9({
593
+ const classNames2 = useClassNames8({
690
594
  component: "Popover",
691
595
  variant: placement,
692
596
  // Make Popover as wide as trigger element
@@ -694,21 +598,22 @@ var _Popover = forwardRef7(
694
598
  });
695
599
  const isSmallScreen = useSmallScreen();
696
600
  const portal = usePortalContainer();
697
- return /* @__PURE__ */ jsx21(Fragment2, { children: isSmallScreen ? /* @__PURE__ */ jsxs10(Fragment2, { children: [
698
- /* @__PURE__ */ jsx21(Underlay, { open, variant: "modal" }),
699
- /* @__PURE__ */ jsx21(
700
- Popover,
701
- {
702
- ref,
703
- ...props,
704
- className: cn13(
705
- "fixed! top-auto! bottom-0! left-0! max-h-fit! w-full"
706
- ),
707
- UNSTABLE_portalContainer: portal,
708
- children
709
- }
710
- )
711
- ] }) : /* @__PURE__ */ jsx21(
601
+ return /* @__PURE__ */ jsx19(Fragment, { children: isSmallScreen ? /* @__PURE__ */ jsx19(Fragment, { children: /* @__PURE__ */ jsxs8(
602
+ Popover,
603
+ {
604
+ ref,
605
+ ...props,
606
+ className: cn12(
607
+ "fixed! top-auto! bottom-0! left-0! max-h-fit! w-full",
608
+ classNames2
609
+ ),
610
+ UNSTABLE_portalContainer: portal,
611
+ children: [
612
+ children,
613
+ /* @__PURE__ */ jsx19(Underlay, { open, variant: "modal" })
614
+ ]
615
+ }
616
+ ) }) : /* @__PURE__ */ jsx19(
712
617
  Popover,
713
618
  {
714
619
  ref,
@@ -724,20 +629,20 @@ var _Popover = forwardRef7(
724
629
  );
725
630
 
726
631
  // src/Autocomplete/Autocomplete.tsx
727
- import { jsx as jsx22, jsxs as jsxs11 } from "react/jsx-runtime";
632
+ import { jsx as jsx20, jsxs as jsxs9 } from "react/jsx-runtime";
728
633
  var AutocompleteInput = ({
729
634
  onSubmit,
730
635
  onClear,
731
636
  ref
732
637
  }) => {
733
638
  const state = React.useContext(ComboBoxStateContext);
734
- const classNames2 = useClassNames10({ component: "ComboBox" });
735
- return /* @__PURE__ */ jsx22(
639
+ const classNames2 = useClassNames9({ component: "ComboBox" });
640
+ return /* @__PURE__ */ jsx20(
736
641
  SearchInput,
737
642
  {
738
643
  ref,
739
644
  className: {
740
- action: cn14(
645
+ action: cn13(
741
646
  (state == null ? void 0 : state.inputValue) === "" ? "invisible" : "visible",
742
647
  classNames2
743
648
  )
@@ -760,7 +665,7 @@ var AutocompleteInput = ({
760
665
  }
761
666
  );
762
667
  };
763
- var _Autocomplete = forwardRef8(
668
+ var _Autocomplete = forwardRef7(
764
669
  ({
765
670
  children,
766
671
  defaultValue,
@@ -786,9 +691,9 @@ var _Autocomplete = forwardRef8(
786
691
  isRequired: required,
787
692
  ...rest
788
693
  };
789
- return /* @__PURE__ */ jsxs11(FieldBase, { as: ComboBox, ref, ...props, children: [
790
- /* @__PURE__ */ jsx22(AutocompleteInput, { onSubmit, onClear, ref }),
791
- /* @__PURE__ */ jsx22(_Popover, { children: /* @__PURE__ */ jsx22(_ListBox, { children }) })
694
+ return /* @__PURE__ */ jsxs9(FieldBase, { as: ComboBox, ref, ...props, children: [
695
+ /* @__PURE__ */ jsx20(AutocompleteInput, { onSubmit, onClear, ref }),
696
+ /* @__PURE__ */ jsx20(_Popover, { children: /* @__PURE__ */ jsx20(_ListBox, { children }) })
792
697
  ] });
793
698
  }
794
699
  );
@@ -800,12 +705,110 @@ import { forwardRef as forwardRef13 } from "react";
800
705
  import { ComboBox as ComboBox2 } from "react-aria-components";
801
706
  import { useClassNames as useClassNames11 } from "@marigold/system";
802
707
 
803
- // src/icons/ChevronDown.tsx
708
+ // src/Button/Button.tsx
709
+ import { forwardRef as forwardRef8 } from "react";
710
+ import { Button as Button3 } from "react-aria-components";
711
+ import { cn as cn14, useClassNames as useClassNames10 } from "@marigold/system";
712
+
713
+ // src/ProgressCycle/ProgressCycle.tsx
714
+ import { ProgressBar } from "react-aria-components";
715
+ import { SVG as SVG3 } from "@marigold/system";
716
+ import { jsx as jsx21, jsxs as jsxs10 } from "react/jsx-runtime";
717
+ var ProgressCycle = ({
718
+ size = "16",
719
+ ...props
720
+ }) => {
721
+ let strokeWidth = 3;
722
+ if (size <= "24") {
723
+ strokeWidth = 2;
724
+ } else if (size >= "32") {
725
+ strokeWidth = 4;
726
+ }
727
+ const radius = `calc(50% - ${strokeWidth / 2}px)`;
728
+ return /* @__PURE__ */ jsx21(ProgressBar, { ...props, "aria-label": "loading", isIndeterminate: true, children: /* @__PURE__ */ jsxs10(
729
+ SVG3,
730
+ {
731
+ className: "animate-rotate-spinner origin-center fill-none",
732
+ size,
733
+ "aria-hidden": "true",
734
+ role: "img",
735
+ children: [
736
+ /* @__PURE__ */ jsx21(
737
+ "circle",
738
+ {
739
+ cx: "50%",
740
+ cy: "50%",
741
+ r: radius,
742
+ strokeWidth,
743
+ className: "stroke-transparent"
744
+ }
745
+ ),
746
+ /* @__PURE__ */ jsx21(
747
+ "circle",
748
+ {
749
+ cx: "50%",
750
+ cy: "50%",
751
+ r: radius,
752
+ strokeWidth,
753
+ pathLength: "100",
754
+ strokeDasharray: "100 200",
755
+ strokeDashoffset: "0",
756
+ strokeLinecap: "round",
757
+ className: "animate-progress-cycle origin-center -rotate-90 stroke-gray-800"
758
+ }
759
+ )
760
+ ]
761
+ }
762
+ ) });
763
+ };
764
+
765
+ // src/Button/Button.tsx
766
+ import { Fragment as Fragment2, jsx as jsx22, jsxs as jsxs11 } from "react/jsx-runtime";
767
+ var _Button = forwardRef8(
768
+ ({
769
+ children,
770
+ variant,
771
+ size,
772
+ className,
773
+ disabled,
774
+ loading,
775
+ fullWidth,
776
+ ...props
777
+ }, ref) => {
778
+ const classNames2 = useClassNames10({
779
+ component: "Button",
780
+ variant,
781
+ size,
782
+ className
783
+ });
784
+ return /* @__PURE__ */ jsx22(
785
+ Button3,
786
+ {
787
+ ...props,
788
+ ref,
789
+ className: cn14(
790
+ "inline-flex items-center justify-center gap-[0.5ch]",
791
+ classNames2,
792
+ fullWidth ? "w-full" : void 0,
793
+ loading && "cursor-progress!"
794
+ ),
795
+ isPending: loading,
796
+ isDisabled: disabled,
797
+ children: loading ? /* @__PURE__ */ jsxs11(Fragment2, { children: [
798
+ /* @__PURE__ */ jsx22("span", { className: "absolute", children: /* @__PURE__ */ jsx22(ProgressCycle, {}) }),
799
+ /* @__PURE__ */ jsx22("span", { className: "invisible flex gap-[inherit]", children })
800
+ ] }) : children
801
+ }
802
+ );
803
+ }
804
+ );
805
+
806
+ // src/icons/ChevronRight.tsx
804
807
  import { forwardRef as forwardRef9 } from "react";
805
808
  import { SVG as SVG4 } from "@marigold/system";
806
809
  import { jsx as jsx23 } from "react/jsx-runtime";
807
- var ChevronDown = forwardRef9(
808
- ({ className, ...props }, ref) => /* @__PURE__ */ jsx23(SVG4, { className, ...props, viewBox: "0 0 24 24", ref, children: /* @__PURE__ */ jsx23("path", { d: "M5.97563 7.125L12 13.1363L18.0244 7.125L19.875 8.97563L12 16.8506L4.125 8.97563L5.97563 7.125Z" }) })
810
+ var ChevronRight = forwardRef9(
811
+ ({ className, ...props }, ref) => /* @__PURE__ */ jsx23(SVG4, { className, ...props, viewBox: "0 0 24 24", ref, children: /* @__PURE__ */ jsx23("path", { d: "M7.125 18.0244L13.1363 12L7.125 5.97563L8.97563 4.125L16.8506 12L8.97563 19.875L7.125 18.0244Z" }) })
809
812
  );
810
813
 
811
814
  // src/icons/ChevronLeft.tsx
@@ -986,9 +989,9 @@ import { CheckboxGroup } from "react-aria-components";
986
989
  import { cn as cn17, useClassNames as useClassNames16 } from "@marigold/system";
987
990
 
988
991
  // src/Checkbox/Context.tsx
989
- import { createContext as createContext5, useContext as useContext6 } from "react";
992
+ import { createContext as createContext5, useContext as useContext7 } from "react";
990
993
  var CheckboxGroupContext = createContext5(null);
991
- var useCheckboxGroupContext = () => useContext6(CheckboxGroupContext);
994
+ var useCheckboxGroupContext = () => useContext7(CheckboxGroupContext);
992
995
 
993
996
  // src/Checkbox/CheckboxGroup.tsx
994
997
  import { jsx as jsx34 } from "react/jsx-runtime";
@@ -1223,7 +1226,7 @@ var Container = ({
1223
1226
  );
1224
1227
 
1225
1228
  // src/Dialog/Dialog.tsx
1226
- import { useContext as useContext7 } from "react";
1229
+ import { useContext as useContext8 } from "react";
1227
1230
  import { Dialog, OverlayTriggerStateContext } from "react-aria-components";
1228
1231
  import { cn as cn25, useClassNames as useClassNames23 } from "@marigold/system";
1229
1232
 
@@ -1380,7 +1383,7 @@ var _DialogTrigger = ({
1380
1383
  // src/Dialog/Dialog.tsx
1381
1384
  import { jsx as jsx45, jsxs as jsxs16 } from "react/jsx-runtime";
1382
1385
  var CloseButton = ({ className }) => {
1383
- const ctx = useContext7(OverlayTriggerStateContext);
1386
+ const ctx = useContext8(OverlayTriggerStateContext);
1384
1387
  return /* @__PURE__ */ jsx45("div", { className: "absolute top-4 right-4 ml-4", children: /* @__PURE__ */ jsx45(
1385
1388
  "button",
1386
1389
  {
@@ -1410,7 +1413,7 @@ var _Dialog = ({
1410
1413
  }) => {
1411
1414
  var _a;
1412
1415
  const classNames2 = useClassNames23({ component: "Dialog", variant, size });
1413
- const state = useContext7(OverlayTriggerStateContext);
1416
+ const state = useContext8(OverlayTriggerStateContext);
1414
1417
  const children = typeof props.children === "function" ? props.children({
1415
1418
  close: (_a = state == null ? void 0 : state.close) != null ? _a : () => {
1416
1419
  }
@@ -1657,14 +1660,14 @@ import { cn as cn31, useClassNames as useClassNames29 } from "@marigold/system";
1657
1660
 
1658
1661
  // src/Calendar/CalendarGridHeader.tsx
1659
1662
  import { startOfWeek, today } from "@internationalized/date";
1660
- import { useContext as useContext8, useMemo } from "react";
1663
+ import { useContext as useContext9, useMemo } from "react";
1661
1664
  import { CalendarStateContext } from "react-aria-components";
1662
1665
  import { useCalendarGrid } from "@react-aria/calendar";
1663
1666
  import { useDateFormatter, useLocale } from "@react-aria/i18n";
1664
1667
  import { useClassNames as useClassNames28 } from "@marigold/system";
1665
1668
  import { jsx as jsx55 } from "react/jsx-runtime";
1666
1669
  function CalendarGridHeader(props) {
1667
- const state = useContext8(CalendarStateContext);
1670
+ const state = useContext9(CalendarStateContext);
1668
1671
  const { headerProps } = useCalendarGrid(props, state);
1669
1672
  const { locale } = useLocale();
1670
1673
  const dayFormatter = useDateFormatter({
@@ -1703,7 +1706,7 @@ var _CalendarGrid = () => {
1703
1706
  };
1704
1707
 
1705
1708
  // src/Calendar/CalendarListBox.tsx
1706
- import { useContext as useContext9 } from "react";
1709
+ import { useContext as useContext10 } from "react";
1707
1710
  import { CalendarStateContext as CalendarStateContext2 } from "react-aria-components";
1708
1711
  import { cn as cn32, useClassNames as useClassNames30 } from "@marigold/system";
1709
1712
 
@@ -1730,7 +1733,7 @@ function CalendarListBox({
1730
1733
  isDisabled,
1731
1734
  setSelectedDropdown
1732
1735
  }) {
1733
- const state = useContext9(CalendarStateContext2);
1736
+ const state = useContext10(CalendarStateContext2);
1734
1737
  const months = useFormattedMonths(state.timeZone, state.focusedDate);
1735
1738
  const buttonStyles = "flex items-center justify-between gap-1 overflow-hidden";
1736
1739
  const { select: selectClassNames } = useClassNames30({ component: "Select" });
@@ -1750,7 +1753,7 @@ function CalendarListBox({
1750
1753
  }
1751
1754
 
1752
1755
  // src/Calendar/MonthControls.tsx
1753
- import { Button as Button3 } from "react-aria-components";
1756
+ import { Button as Button4 } from "react-aria-components";
1754
1757
  import { cn as cn33, useClassNames as useClassNames31 } from "@marigold/system";
1755
1758
  import { jsx as jsx58, jsxs as jsxs21 } from "react/jsx-runtime";
1756
1759
  function MonthControls() {
@@ -1765,7 +1768,7 @@ function MonthControls() {
1765
1768
  ),
1766
1769
  children: [
1767
1770
  /* @__PURE__ */ jsx58(
1768
- Button3,
1771
+ Button4,
1769
1772
  {
1770
1773
  className: cn33(
1771
1774
  "inline-flex items-center justify-center gap-[0.5ch]",
@@ -1776,7 +1779,7 @@ function MonthControls() {
1776
1779
  }
1777
1780
  ),
1778
1781
  /* @__PURE__ */ jsx58(
1779
- Button3,
1782
+ Button4,
1780
1783
  {
1781
1784
  className: cn33(
1782
1785
  "inline-flex items-center justify-center gap-[0.5ch]",
@@ -1793,11 +1796,11 @@ function MonthControls() {
1793
1796
  var MonthControls_default = MonthControls;
1794
1797
 
1795
1798
  // src/Calendar/MonthListBox.tsx
1796
- import { useContext as useContext10 } from "react";
1799
+ import { useContext as useContext11 } from "react";
1797
1800
  import { CalendarStateContext as CalendarStateContext3 } from "react-aria-components";
1798
1801
  import { jsx as jsx59 } from "react/jsx-runtime";
1799
1802
  var MonthListBox = ({ setSelectedDropdown }) => {
1800
- const state = useContext10(CalendarStateContext3);
1803
+ const state = useContext11(CalendarStateContext3);
1801
1804
  const months = useFormattedMonths(state.timeZone, state.focusedDate);
1802
1805
  let onChange = (index) => {
1803
1806
  let value = Number(index) + 1;
@@ -1832,7 +1835,7 @@ var MonthListBox_default = MonthListBox;
1832
1835
 
1833
1836
  // src/Calendar/YearListBox.tsx
1834
1837
  import {
1835
- useContext as useContext11,
1838
+ useContext as useContext12,
1836
1839
  useEffect,
1837
1840
  useRef
1838
1841
  } from "react";
@@ -1840,7 +1843,7 @@ import { CalendarStateContext as CalendarStateContext4 } from "react-aria-compon
1840
1843
  import { useDateFormatter as useDateFormatter3 } from "@react-aria/i18n";
1841
1844
  import { jsx as jsx60 } from "react/jsx-runtime";
1842
1845
  var YearListBox = ({ setSelectedDropdown }) => {
1843
- const state = useContext11(CalendarStateContext4);
1846
+ const state = useContext12(CalendarStateContext4);
1844
1847
  const years = [];
1845
1848
  let formatter = useDateFormatter3({
1846
1849
  year: "numeric",
@@ -2075,9 +2078,9 @@ var _Link = forwardRef17(
2075
2078
  import { useClassNames as useClassNames35 } from "@marigold/system";
2076
2079
 
2077
2080
  // src/List/Context.ts
2078
- import { createContext as createContext6, useContext as useContext12 } from "react";
2081
+ import { createContext as createContext6, useContext as useContext13 } from "react";
2079
2082
  var ListContext = createContext6({});
2080
- var useListContext = () => useContext12(ListContext);
2083
+ var useListContext = () => useContext13(ListContext);
2081
2084
 
2082
2085
  // src/List/ListItem.tsx
2083
2086
  import { jsx as jsx65 } from "react/jsx-runtime";
@@ -2171,9 +2174,9 @@ import { useButton } from "@react-aria/button";
2171
2174
  import { cn as cn38, useClassNames as useClassNames40 } from "@marigold/system";
2172
2175
 
2173
2176
  // src/SectionMessage/Context.tsx
2174
- import { createContext as createContext7, useContext as useContext13 } from "react";
2177
+ import { createContext as createContext7, useContext as useContext14 } from "react";
2175
2178
  var SectionMessageContext = createContext7({});
2176
- var useSectionMessageContext = () => useContext13(SectionMessageContext);
2179
+ var useSectionMessageContext = () => useContext14(SectionMessageContext);
2177
2180
 
2178
2181
  // src/SectionMessage/SectionMessageContent.tsx
2179
2182
  import { cn as cn36 } from "@marigold/system";
@@ -2335,7 +2338,7 @@ import { Children as Children4, useState as useState3 } from "react";
2335
2338
  import { useListData as useListData2 } from "@react-stately/data";
2336
2339
 
2337
2340
  // src/TagGroup/Tag.tsx
2338
- import { Button as Button4, Tag } from "react-aria-components";
2341
+ import { Button as Button5, Tag } from "react-aria-components";
2339
2342
  import { cn as cn39, useClassNames as useClassNames42 } from "@marigold/system";
2340
2343
 
2341
2344
  // src/TagGroup/TagGroup.tsx
@@ -2366,7 +2369,7 @@ var _TagGroup = ({
2366
2369
  // src/TagGroup/Tag.tsx
2367
2370
  import { Fragment as Fragment6, jsx as jsx75, jsxs as jsxs28 } from "react/jsx-runtime";
2368
2371
  var CloseButton2 = ({ className }) => {
2369
- return /* @__PURE__ */ jsx75(Button4, { slot: "remove", className, children: /* @__PURE__ */ jsx75("svg", { viewBox: "0 0 20 20", fill: "currentColor", width: 20, height: 20, children: /* @__PURE__ */ jsx75("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" }) }) });
2372
+ return /* @__PURE__ */ jsx75(Button5, { slot: "remove", className, children: /* @__PURE__ */ jsx75("svg", { viewBox: "0 0 20 20", fill: "currentColor", width: 20, height: 20, children: /* @__PURE__ */ jsx75("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" }) }) });
2370
2373
  };
2371
2374
  var _Tag = ({ variant, size, children, ...props }) => {
2372
2375
  let textValue = typeof children === "string" ? children : void 0;
@@ -2464,7 +2467,7 @@ import { Group as Group2, NumberField } from "react-aria-components";
2464
2467
  import { cn as cn41, useClassNames as useClassNames43 } from "@marigold/system";
2465
2468
 
2466
2469
  // src/NumberField/StepButton.tsx
2467
- import { Button as Button5 } from "react-aria-components";
2470
+ import { Button as Button6 } from "react-aria-components";
2468
2471
  import { cn as cn40 } from "@marigold/system";
2469
2472
  import { jsx as jsx77 } from "react/jsx-runtime";
2470
2473
  var Plus = () => /* @__PURE__ */ jsx77("svg", { width: 16, height: 16, viewBox: "0 0 20 20", fill: "currentColor", children: /* @__PURE__ */ jsx77(
@@ -2486,7 +2489,7 @@ var Minus = () => /* @__PURE__ */ jsx77("svg", { width: 16, height: 16, viewBox:
2486
2489
  var _StepButton = ({ direction, className, ...props }) => {
2487
2490
  const Icon4 = direction === "up" ? Plus : Minus;
2488
2491
  return /* @__PURE__ */ jsx77(
2489
- Button5,
2492
+ Button6,
2490
2493
  {
2491
2494
  className: cn40(
2492
2495
  [
@@ -2900,11 +2903,11 @@ import { Radio } from "react-aria-components";
2900
2903
  import { cn as cn44, useClassNames as useClassNames47 } from "@marigold/system";
2901
2904
 
2902
2905
  // src/Radio/Context.ts
2903
- import { createContext as createContext8, useContext as useContext14 } from "react";
2906
+ import { createContext as createContext8, useContext as useContext15 } from "react";
2904
2907
  var RadioGroupContext = createContext8(
2905
2908
  null
2906
2909
  );
2907
- var useRadioGroupContext = () => useContext14(RadioGroupContext);
2910
+ var useRadioGroupContext = () => useContext15(RadioGroupContext);
2908
2911
 
2909
2912
  // src/Radio/RadioGroup.tsx
2910
2913
  import { RadioGroup } from "react-aria-components";
@@ -3043,7 +3046,7 @@ var _SearchField = forwardRef20(
3043
3046
  // src/Select/Select.tsx
3044
3047
  import { forwardRef as forwardRef21 } from "react";
3045
3048
  import {
3046
- Button as Button6,
3049
+ Button as Button7,
3047
3050
  Select,
3048
3051
  SelectValue
3049
3052
  } from "react-aria-components";
@@ -3072,7 +3075,7 @@ var _Select = forwardRef21(
3072
3075
  const classNames2 = useClassNames48({ component: "Select", variant, size });
3073
3076
  return /* @__PURE__ */ jsxs34(FieldBase, { as: Select, ref, variant, size, ...props, children: [
3074
3077
  /* @__PURE__ */ jsxs34(
3075
- Button6,
3078
+ Button7,
3076
3079
  {
3077
3080
  className: cn45(
3078
3081
  "flex w-full items-center justify-between gap-1 overflow-hidden",
@@ -3099,11 +3102,11 @@ import { GridList as SelectList } from "react-aria-components";
3099
3102
  import { cn as cn47, useClassNames as useClassNames49 } from "@marigold/system";
3100
3103
 
3101
3104
  // src/SelectList/Context.ts
3102
- import { createContext as createContext9, useContext as useContext15 } from "react";
3105
+ import { createContext as createContext9, useContext as useContext16 } from "react";
3103
3106
  var SelectListContext = createContext9(
3104
3107
  {}
3105
3108
  );
3106
- var useSelectListContext = () => useContext15(SelectListContext);
3109
+ var useSelectListContext = () => useContext16(SelectListContext);
3107
3110
 
3108
3111
  // src/SelectList/SelectListItem.tsx
3109
3112
  import { forwardRef as forwardRef22 } from "react";
@@ -3384,18 +3387,22 @@ import {
3384
3387
  import { cn as cn57, useClassNames as useClassNames53 } from "@marigold/system";
3385
3388
 
3386
3389
  // src/Table/Context.tsx
3387
- import { createContext as createContext10, useContext as useContext16 } from "react";
3390
+ import { createContext as createContext10, useContext as useContext17 } from "react";
3388
3391
  var TableContext = createContext10({});
3389
- var useTableContext = () => useContext16(TableContext);
3392
+ var useTableContext = () => useContext17(TableContext);
3390
3393
 
3391
3394
  // src/Table/TableBody.tsx
3392
3395
  import { useTableRowGroup } from "@react-aria/table";
3393
3396
  import { jsx as jsx93 } from "react/jsx-runtime";
3394
- var TableBody = ({ children, emptyState }) => {
3397
+ var TableBody = ({
3398
+ children,
3399
+ className,
3400
+ emptyState
3401
+ }) => {
3395
3402
  const { rowGroupProps } = useTableRowGroup();
3396
3403
  const { state, classNames: classNames2 } = useTableContext();
3397
3404
  if (state.collection.size === 0 && emptyState) {
3398
- return /* @__PURE__ */ jsx93("tbody", { children: /* @__PURE__ */ jsx93("tr", { className: classNames2 == null ? void 0 : classNames2.row, role: "row", children: /* @__PURE__ */ jsx93(
3405
+ return /* @__PURE__ */ jsx93("tbody", { className, children: /* @__PURE__ */ jsx93("tr", { className: classNames2 == null ? void 0 : classNames2.row, role: "row", children: /* @__PURE__ */ jsx93(
3399
3406
  "td",
3400
3407
  {
3401
3408
  className: classNames2 == null ? void 0 : classNames2.cell,
@@ -3405,7 +3412,7 @@ var TableBody = ({ children, emptyState }) => {
3405
3412
  }
3406
3413
  ) }) });
3407
3414
  }
3408
- return /* @__PURE__ */ jsx93("tbody", { ...rowGroupProps, children });
3415
+ return /* @__PURE__ */ jsx93("tbody", { ...rowGroupProps, className, children });
3409
3416
  };
3410
3417
 
3411
3418
  // src/Table/TableCell.tsx
@@ -3572,11 +3579,15 @@ var TableHeader = ({ stickyHeader, children }) => {
3572
3579
  import { useRef as useRef9 } from "react";
3573
3580
  import { useTableHeaderRow } from "@react-aria/table";
3574
3581
  import { jsx as jsx98 } from "react/jsx-runtime";
3575
- var TableHeaderRow = ({ item, children }) => {
3582
+ var TableHeaderRow = ({
3583
+ item,
3584
+ className,
3585
+ children
3586
+ }) => {
3576
3587
  const { state } = useTableContext();
3577
3588
  const ref = useRef9(null);
3578
3589
  const { rowProps } = useTableHeaderRow({ node: item }, state, ref);
3579
- return /* @__PURE__ */ jsx98("tr", { ...rowProps, ref, children });
3590
+ return /* @__PURE__ */ jsx98("tr", { ...rowProps, className, ref, children });
3580
3591
  };
3581
3592
 
3582
3593
  // src/Table/TableRow.tsx
@@ -3728,29 +3739,37 @@ var Table = ({
3728
3739
  ),
3729
3740
  ...gridProps,
3730
3741
  children: [
3731
- /* @__PURE__ */ jsx101(TableHeader, { stickyHeader, children: collection.headerRows.map((headerRow) => /* @__PURE__ */ jsx101(TableHeaderRow, { item: headerRow, children: [...collection.getChildren(headerRow.key)].map(
3732
- (column) => {
3733
- var _a, _b, _c, _d, _e;
3734
- return ((_a = column.props) == null ? void 0 : _a.isSelectionCell) ? /* @__PURE__ */ jsx101(
3735
- TableSelectAllCell,
3736
- {
3737
- width: (_b = column.props) == null ? void 0 : _b.width,
3738
- column,
3739
- align: (_c = column.props) == null ? void 0 : _c.align
3740
- },
3741
- column.key
3742
- ) : /* @__PURE__ */ jsx101(
3743
- TableColumnHeader,
3744
- {
3745
- width: (_d = column.props) == null ? void 0 : _d.width,
3746
- column,
3747
- align: (_e = column.props) == null ? void 0 : _e.align
3748
- },
3749
- column.key
3750
- );
3751
- }
3752
- ) }, headerRow.key)) }),
3753
- /* @__PURE__ */ jsxs39(TableBody, { emptyState, children: [
3742
+ /* @__PURE__ */ jsx101(TableHeader, { stickyHeader, children: collection.headerRows.map((headerRow) => /* @__PURE__ */ jsx101(
3743
+ TableHeaderRow,
3744
+ {
3745
+ item: headerRow,
3746
+ className: classNames2.headerRow,
3747
+ children: [...collection.getChildren(headerRow.key)].map(
3748
+ (column) => {
3749
+ var _a, _b, _c, _d, _e;
3750
+ return ((_a = column.props) == null ? void 0 : _a.isSelectionCell) ? /* @__PURE__ */ jsx101(
3751
+ TableSelectAllCell,
3752
+ {
3753
+ width: (_b = column.props) == null ? void 0 : _b.width,
3754
+ column,
3755
+ align: (_c = column.props) == null ? void 0 : _c.align
3756
+ },
3757
+ column.key
3758
+ ) : /* @__PURE__ */ jsx101(
3759
+ TableColumnHeader,
3760
+ {
3761
+ width: (_d = column.props) == null ? void 0 : _d.width,
3762
+ column,
3763
+ align: (_e = column.props) == null ? void 0 : _e.align
3764
+ },
3765
+ column.key
3766
+ );
3767
+ }
3768
+ )
3769
+ },
3770
+ headerRow.key
3771
+ )) }),
3772
+ /* @__PURE__ */ jsxs39(TableBody, { className: classNames2.body, emptyState, children: [
3754
3773
  ...collection.rows.map(
3755
3774
  (row) => row.type === "item" && /* @__PURE__ */ jsx101(TableRow, { row, children: [...collection.getChildren(row.key)].map((cell, index) => {
3756
3775
  var _a, _b;
@@ -4233,9 +4252,9 @@ import { Tabs } from "react-aria-components";
4233
4252
  import { useClassNames as useClassNames59 } from "@marigold/system";
4234
4253
 
4235
4254
  // src/Tabs/Context.ts
4236
- import { createContext as createContext11, useContext as useContext17 } from "react";
4255
+ import { createContext as createContext11, useContext as useContext18 } from "react";
4237
4256
  var TabContext = createContext11({});
4238
- var useTabContext = () => useContext17(TabContext);
4257
+ var useTabContext = () => useContext18(TabContext);
4239
4258
 
4240
4259
  // src/Tabs/Tab.tsx
4241
4260
  import { Tab } from "react-aria-components";