@marigold/components 5.3.0 → 5.5.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
@@ -5,11 +5,309 @@ import { useAsyncList, useListData } from "@react-stately/data";
5
5
  import merge from "deepmerge";
6
6
  var extendTheme = (baseTheme, extendTheme2) => merge(baseTheme, extendTheme2);
7
7
 
8
+ // src/Accordion/Accordion.tsx
9
+ import React3, { Children, useRef as useRef2 } from "react";
10
+ import { useAccordion } from "@react-aria/accordion";
11
+ import { Item } from "@react-stately/collections";
12
+ import { Box as Box3 } from "@marigold/system";
13
+
14
+ // src/Accordion/AccordionItem.tsx
15
+ import React2, { useRef } from "react";
16
+ import { FocusRing, useFocusRing as useFocusRing2 } from "@react-aria/focus";
17
+ import { mergeProps as mergeProps3 } from "@react-aria/utils";
18
+ import {
19
+ Box as Box2,
20
+ SVG,
21
+ useComponentStyles as useComponentStyles2,
22
+ useStateProps as useStateProps2
23
+ } from "@marigold/system";
24
+
25
+ // src/Accordion/useAccordionItem.ts
26
+ import { mergeProps, useId } from "@react-aria/utils";
27
+ import { useButton } from "@react-aria/button";
28
+ import { useSelectableItem } from "@react-aria/selection";
29
+ import { isAppleDevice } from "@react-aria/utils";
30
+ import { isMac } from "@react-aria/utils";
31
+ function isNonContiguousSelectionModifier(e) {
32
+ return isAppleDevice() ? e.altKey : e.ctrlKey;
33
+ }
34
+ function isCtrlKeyPressed(e) {
35
+ if (isMac()) {
36
+ return e.metaKey;
37
+ }
38
+ return e.ctrlKey;
39
+ }
40
+ function useAccordionItem(props, state, ref) {
41
+ let { item } = props;
42
+ let key = item.key;
43
+ let manager = state.selectionManager;
44
+ let buttonId = useId();
45
+ let regionId = useId();
46
+ let isDisabled = state.disabledKeys.has(item.key);
47
+ let { itemProps } = useSelectableItem({
48
+ selectionManager: manager,
49
+ key,
50
+ ref
51
+ });
52
+ const isDefaultExpanded = state.expandedKeys.has(
53
+ item.key.toString().replace(".$", "")
54
+ );
55
+ let onSelect = (e) => {
56
+ if (e.pointerType === "keyboard" && isNonContiguousSelectionModifier(e)) {
57
+ if (isDefaultExpanded) {
58
+ state.expandedKeys.clear();
59
+ }
60
+ manager.toggleSelection(key);
61
+ } else {
62
+ if (manager.selectionMode === "none") {
63
+ return;
64
+ }
65
+ if (manager.selectionMode === "single") {
66
+ if (manager.isSelected(key) && !manager.disallowEmptySelection) {
67
+ if (isDefaultExpanded) {
68
+ state.expandedKeys.clear();
69
+ }
70
+ manager.toggleSelection(key);
71
+ } else {
72
+ if (isDefaultExpanded) {
73
+ state.expandedKeys.clear();
74
+ }
75
+ manager.replaceSelection(key);
76
+ }
77
+ } else if (e && e.shiftKey) {
78
+ if (isDefaultExpanded) {
79
+ state.expandedKeys.clear();
80
+ }
81
+ manager.extendSelection(key);
82
+ } else if (manager.selectionBehavior === "toggle" || e && (isCtrlKeyPressed(e) || e.pointerType === "touch" || e.pointerType === "virtual")) {
83
+ if (isDefaultExpanded) {
84
+ state.expandedKeys.clear();
85
+ manager.toggleSelection(key);
86
+ }
87
+ manager.toggleSelection(key);
88
+ } else {
89
+ if (isDefaultExpanded) {
90
+ state.expandedKeys.clear();
91
+ }
92
+ manager.replaceSelection(key);
93
+ }
94
+ }
95
+ };
96
+ let { buttonProps } = useButton(
97
+ mergeProps(itemProps, {
98
+ id: buttonId,
99
+ elementType: "button",
100
+ isDisabled,
101
+ onPress: onSelect
102
+ }),
103
+ ref
104
+ );
105
+ return {
106
+ buttonProps: {
107
+ ...buttonProps,
108
+ role: "button",
109
+ "aria-expanded": manager.isSelected(key) || isDefaultExpanded,
110
+ "aria-controls": manager.isSelected(key) || isDefaultExpanded ? regionId : void 0
111
+ },
112
+ regionProps: {
113
+ id: regionId,
114
+ role: "region",
115
+ "aria-labelledby": buttonId
116
+ }
117
+ };
118
+ }
119
+
120
+ // src/Button/Button.tsx
121
+ import React, { forwardRef } from "react";
122
+ import { useButton as useButton2 } from "@react-aria/button";
123
+ import { useFocusRing } from "@react-aria/focus";
124
+ import { useHover } from "@react-aria/interactions";
125
+ import { mergeProps as mergeProps2, useObjectRef } from "@react-aria/utils";
126
+ import {
127
+ Box,
128
+ useComponentStyles,
129
+ useStateProps
130
+ } from "@marigold/system";
131
+ var Button = forwardRef(
132
+ ({
133
+ as = "button",
134
+ children,
135
+ variant,
136
+ size,
137
+ disabled,
138
+ onClick,
139
+ onPress,
140
+ onPressStart,
141
+ onPressEnd,
142
+ onPressChange,
143
+ onPressUp,
144
+ fullWidth,
145
+ ...props
146
+ }, ref) => {
147
+ const buttonRef = useObjectRef(ref);
148
+ const { hoverProps, isHovered } = useHover({ isDisabled: disabled });
149
+ const { isFocusVisible, focusProps } = useFocusRing({
150
+ autoFocus: props.autoFocus
151
+ });
152
+ const { buttonProps, isPressed } = useButton2(
153
+ {
154
+ /**
155
+ * `react-aria` only expected `Element` but we casted
156
+ * it to a `HTMLButtonElement` internally.
157
+ */
158
+ ...props,
159
+ onClick,
160
+ onPress,
161
+ onPressStart,
162
+ onPressEnd,
163
+ onPressChange,
164
+ onPressUp,
165
+ elementType: typeof as === "string" ? as : "span",
166
+ isDisabled: disabled
167
+ },
168
+ buttonRef
169
+ );
170
+ const styles = useComponentStyles("Button", { variant, size });
171
+ const stateProps = useStateProps({
172
+ active: isPressed,
173
+ focusVisible: isFocusVisible,
174
+ hover: isHovered
175
+ });
176
+ return /* @__PURE__ */ React.createElement(
177
+ Box,
178
+ {
179
+ ...mergeProps2(buttonProps, focusProps, hoverProps, props),
180
+ ...stateProps,
181
+ as,
182
+ ref: buttonRef,
183
+ __baseCSS: {
184
+ display: "inline-flex",
185
+ alignItems: "center",
186
+ justifyContent: "center",
187
+ gap: "0.5ch",
188
+ cursor: disabled ? "not-allowed" : "pointer",
189
+ width: fullWidth ? "100%" : void 0,
190
+ "&:focus": {
191
+ outline: 0
192
+ }
193
+ },
194
+ css: styles
195
+ },
196
+ children
197
+ );
198
+ }
199
+ );
200
+
201
+ // src/Accordion/AccordionItem.tsx
202
+ var AccordionItem = ({
203
+ item,
204
+ state,
205
+ css,
206
+ title,
207
+ variant,
208
+ size,
209
+ ...props
210
+ }) => {
211
+ const ref = useRef(null);
212
+ const defaultExpanded = state.expandedKeys.has(
213
+ item.key.toString().replace(".$", "")
214
+ );
215
+ const expanded = state.selectionManager.isSelected(item.key);
216
+ React2.useEffect(() => {
217
+ if (defaultExpanded) {
218
+ if (state.selectionManager.selectionMode === "multiple") {
219
+ state.expandedKeys.forEach((key) => {
220
+ state.selectionManager.select(key);
221
+ });
222
+ } else {
223
+ state.expandedKeys.clear();
224
+ state.selectionManager.toggleSelection(item.key);
225
+ }
226
+ }
227
+ }, [defaultExpanded, item.key, state.expandedKeys, state.selectionManager]);
228
+ const { buttonProps, regionProps } = useAccordionItem({ item }, state, ref);
229
+ const { isFocusVisible, focusProps } = useFocusRing2();
230
+ const stateProps = useStateProps2({
231
+ focus: isFocusVisible,
232
+ expanded: defaultExpanded || expanded
233
+ });
234
+ const styles = useComponentStyles2(
235
+ "Accordion",
236
+ { variant, size },
237
+ { parts: ["item", "button"] }
238
+ );
239
+ return /* @__PURE__ */ React2.createElement(Box2, { ...props }, /* @__PURE__ */ React2.createElement(FocusRing, { within: true }, /* @__PURE__ */ React2.createElement(
240
+ Box2,
241
+ {
242
+ as: Button,
243
+ ...mergeProps3(buttonProps, stateProps, props),
244
+ ref,
245
+ __baseCSS: {
246
+ border: "none",
247
+ p: 0,
248
+ width: "100%",
249
+ justifyContent: "space-between"
250
+ },
251
+ css: styles.button,
252
+ "aria-label": item.textValue
253
+ },
254
+ title,
255
+ !expanded ? /* @__PURE__ */ React2.createElement(SVG, { viewBox: "0 0 24 24", "aria-hidden": true }, /* @__PURE__ */ React2.createElement("path", { d: "M5.97563 7.125L12 13.1363L18.0244 7.125L19.875 8.97563L12 16.8506L4.125 8.97563L5.97563 7.125Z" })) : /* @__PURE__ */ React2.createElement(SVG, { viewBox: "0 0 24 24", "aria-hidden": true }, /* @__PURE__ */ React2.createElement("path", { d: "M5.97563 16.8506L12 10.8394L18.0244 16.8506L19.875 15L12 7.125L4.125 15L5.97563 16.8506Z" }))
256
+ )), expanded || defaultExpanded ? /* @__PURE__ */ React2.createElement(
257
+ Box2,
258
+ {
259
+ ...mergeProps3(regionProps, focusProps, stateProps),
260
+ css: styles.item
261
+ },
262
+ item.props.children
263
+ ) : null);
264
+ };
265
+
266
+ // src/Accordion/Accordion.tsx
267
+ import { useTreeState } from "@react-stately/tree";
268
+ var Accordion = ({ children, ...props }) => {
269
+ const ownProps = {
270
+ ...props,
271
+ // we have to do this because JSX childs are not supported
272
+ children: Children.toArray(children).map((child) => {
273
+ if (!React3.isValidElement(child)) {
274
+ return child;
275
+ }
276
+ return React3.cloneElement(child, {
277
+ hasChildItems: false,
278
+ ...child.props
279
+ });
280
+ })
281
+ };
282
+ const ref = useRef2(null);
283
+ const state = useTreeState({
284
+ selectionMode: "single",
285
+ ...ownProps
286
+ });
287
+ const { accordionProps } = useAccordion(
288
+ { ...ownProps, children },
289
+ state,
290
+ ref
291
+ );
292
+ return /* @__PURE__ */ React3.createElement(Box3, { ...accordionProps, ref }, [...state.collection].map((item) => /* @__PURE__ */ React3.createElement(
293
+ AccordionItem,
294
+ {
295
+ key: item.key,
296
+ title: item.props.title,
297
+ item,
298
+ state,
299
+ variant: item.props.variant,
300
+ size: item.props.size
301
+ }
302
+ )));
303
+ };
304
+ Accordion.Item = Item;
305
+
8
306
  // src/Aside/Aside.tsx
9
- import React from "react";
307
+ import React4 from "react";
10
308
 
11
309
  // src/Box.ts
12
- import { Box } from "@marigold/system";
310
+ import { Box as Box4 } from "@marigold/system";
13
311
 
14
312
  // src/Aside/Aside.tsx
15
313
  var SIDE_MAP = {
@@ -25,8 +323,8 @@ var Aside = ({
25
323
  wrap = "50%"
26
324
  }) => {
27
325
  const [aside, content] = SIDE_MAP[side];
28
- return /* @__PURE__ */ React.createElement(
29
- Box,
326
+ return /* @__PURE__ */ React4.createElement(
327
+ Box4,
30
328
  {
31
329
  css: {
32
330
  display: "flex",
@@ -49,14 +347,14 @@ var Aside = ({
49
347
  };
50
348
 
51
349
  // src/Aspect/Aspect.tsx
52
- import React2 from "react";
350
+ import React5 from "react";
53
351
  import { aspect } from "@marigold/tokens";
54
352
  var Aspect = ({
55
353
  ratio = "square",
56
354
  maxWidth,
57
355
  children
58
- }) => /* @__PURE__ */ React2.createElement(
59
- Box,
356
+ }) => /* @__PURE__ */ React5.createElement(
357
+ Box4,
60
358
  {
61
359
  css: {
62
360
  aspectRatio: aspect[ratio],
@@ -68,26 +366,26 @@ var Aspect = ({
68
366
  );
69
367
 
70
368
  // src/Autocomplete/Autocomplete.tsx
71
- import React17, { useRef as useRef5 } from "react";
369
+ import React20, { useRef as useRef7 } from "react";
72
370
  import { useSearchAutocomplete } from "@react-aria/autocomplete";
73
371
  import { useFilter } from "@react-aria/i18n";
74
372
  import { useComboBoxState } from "@react-stately/combobox";
75
- import { Item } from "@react-stately/collections";
373
+ import { Item as Item2 } from "@react-stately/collections";
76
374
  import {
77
- SVG as SVG3,
78
- useComponentStyles as useComponentStyles7
375
+ SVG as SVG4,
376
+ useComponentStyles as useComponentStyles9
79
377
  } from "@marigold/system";
80
378
 
81
379
  // src/FieldBase/FieldBase.tsx
82
- import React6 from "react";
380
+ import React9 from "react";
83
381
  import {
84
- Box as Box4,
85
- useComponentStyles as useComponentStyles3
382
+ Box as Box7,
383
+ useComponentStyles as useComponentStyles5
86
384
  } from "@marigold/system";
87
385
 
88
386
  // src/Label/Label.tsx
89
- import React3 from "react";
90
- import { Box as Box2, SVG, useComponentStyles } from "@marigold/system";
387
+ import React6 from "react";
388
+ import { Box as Box5, SVG as SVG2, useComponentStyles as useComponentStyles3 } from "@marigold/system";
91
389
  var Label = ({
92
390
  as = "label",
93
391
  required,
@@ -97,9 +395,9 @@ var Label = ({
97
395
  labelWidth,
98
396
  ...props
99
397
  }) => {
100
- const styles = useComponentStyles("Label", { size, variant });
101
- return /* @__PURE__ */ React3.createElement(
102
- Box2,
398
+ const styles = useComponentStyles3("Label", { size, variant });
399
+ return /* @__PURE__ */ React6.createElement(
400
+ Box5,
103
401
  {
104
402
  ...props,
105
403
  as,
@@ -111,16 +409,16 @@ var Label = ({
111
409
  css: styles
112
410
  },
113
411
  children,
114
- required && /* @__PURE__ */ React3.createElement(SVG, { viewBox: "0 0 24 24", role: "presentation", size: 16, fill: "error" }, /* @__PURE__ */ React3.createElement("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" }))
412
+ required && /* @__PURE__ */ React6.createElement(SVG2, { viewBox: "0 0 24 24", role: "presentation", size: 16, fill: "error" }, /* @__PURE__ */ React6.createElement("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" }))
115
413
  );
116
414
  };
117
415
 
118
416
  // src/HelpText/HelpText.tsx
119
- import React4 from "react";
417
+ import React7 from "react";
120
418
  import {
121
- Box as Box3,
122
- SVG as SVG2,
123
- useComponentStyles as useComponentStyles2
419
+ Box as Box6,
420
+ SVG as SVG3,
421
+ useComponentStyles as useComponentStyles4
124
422
  } from "@marigold/system";
125
423
  var HelpText = ({
126
424
  variant,
@@ -135,38 +433,38 @@ var HelpText = ({
135
433
  }) => {
136
434
  var _a;
137
435
  const hasErrorMessage = errorMessage && error;
138
- const styles = useComponentStyles2(
436
+ const styles = useComponentStyles4(
139
437
  "HelpText",
140
438
  { variant, size },
141
439
  { parts: ["container", "icon"] }
142
440
  );
143
- return /* @__PURE__ */ React4.createElement(
144
- Box3,
441
+ return /* @__PURE__ */ React7.createElement(
442
+ Box6,
145
443
  {
146
444
  ...hasErrorMessage ? errorMessageProps : descriptionProps,
147
445
  ...props,
148
446
  __baseCSS: { display: "flex", alignItems: "center", gap: 4 },
149
447
  css: styles.container
150
448
  },
151
- hasErrorMessage ? /* @__PURE__ */ React4.createElement(React4.Fragment, null, /* @__PURE__ */ React4.createElement(
152
- SVG2,
449
+ hasErrorMessage ? /* @__PURE__ */ React7.createElement(React7.Fragment, null, /* @__PURE__ */ React7.createElement(
450
+ SVG3,
153
451
  {
154
452
  viewBox: "0 0 24 24",
155
453
  role: "presentation",
156
454
  size: ((_a = styles == null ? void 0 : styles.icon) == null ? void 0 : _a.size) || 16
157
455
  },
158
- /* @__PURE__ */ React4.createElement("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" })
159
- ), errorMessage) : /* @__PURE__ */ React4.createElement(React4.Fragment, null, description)
456
+ /* @__PURE__ */ React7.createElement("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" })
457
+ ), errorMessage) : /* @__PURE__ */ React7.createElement(React7.Fragment, null, description)
160
458
  );
161
459
  };
162
460
 
163
461
  // src/FieldBase/FieldGroup.tsx
164
- import React5 from "react";
462
+ import React8 from "react";
165
463
  import { createContext, useContext } from "react";
166
464
  var FieldGroupContext = createContext({});
167
465
  var useFieldGroupContext = () => useContext(FieldGroupContext);
168
466
  var FieldGroup = ({ labelWidth, children }) => {
169
- return /* @__PURE__ */ React5.createElement(FieldGroupContext.Provider, { value: { labelWidth } }, children);
467
+ return /* @__PURE__ */ React8.createElement(FieldGroupContext.Provider, { value: { labelWidth } }, children);
170
468
  };
171
469
 
172
470
  // src/FieldBase/FieldBase.tsx
@@ -188,10 +486,10 @@ var FieldBase = ({
188
486
  ...props
189
487
  }) => {
190
488
  const hasHelpText = !!description || errorMessage && error;
191
- const style = useComponentStyles3("Field", { variant, size });
489
+ const style = useComponentStyles5("Field", { variant, size });
192
490
  const { labelWidth } = useFieldGroupContext();
193
- return /* @__PURE__ */ React6.createElement(
194
- Box4,
491
+ return /* @__PURE__ */ React9.createElement(
492
+ Box7,
195
493
  {
196
494
  ...props,
197
495
  __baseCSS: {
@@ -202,7 +500,7 @@ var FieldBase = ({
202
500
  },
203
501
  css: style
204
502
  },
205
- label && /* @__PURE__ */ React6.createElement(
503
+ label && /* @__PURE__ */ React9.createElement(
206
504
  Label,
207
505
  {
208
506
  required,
@@ -214,7 +512,7 @@ var FieldBase = ({
214
512
  },
215
513
  label
216
514
  ),
217
- /* @__PURE__ */ React6.createElement(Box4, { __baseCSS: { display: "flex", flexDirection: "column" } }, children, hasHelpText && /* @__PURE__ */ React6.createElement(
515
+ /* @__PURE__ */ React9.createElement(Box7, { __baseCSS: { display: "flex", flexDirection: "column" } }, children, hasHelpText && /* @__PURE__ */ React9.createElement(
218
516
  HelpText,
219
517
  {
220
518
  ...stateProps,
@@ -232,24 +530,24 @@ var FieldBase = ({
232
530
  };
233
531
 
234
532
  // src/Input/Input.tsx
235
- import React7, { forwardRef } from "react";
533
+ import React10, { forwardRef as forwardRef2 } from "react";
236
534
  import {
237
- Box as Box5,
238
- useComponentStyles as useComponentStyles4,
239
- useStateProps
535
+ Box as Box8,
536
+ useComponentStyles as useComponentStyles6,
537
+ useStateProps as useStateProps3
240
538
  } from "@marigold/system";
241
- var Input = forwardRef(
539
+ var Input = forwardRef2(
242
540
  ({ type = "text", icon, action, variant, size, ...props }, ref) => {
243
- const styles = useComponentStyles4(
541
+ const styles = useComponentStyles6(
244
542
  "Input",
245
543
  { variant, size },
246
544
  { parts: ["input", "icon", "container"] }
247
545
  );
248
- const stateProps = useStateProps({
546
+ const stateProps = useStateProps3({
249
547
  hasIcon: icon ? true : false
250
548
  });
251
- return /* @__PURE__ */ React7.createElement(
252
- Box5,
549
+ return /* @__PURE__ */ React10.createElement(
550
+ Box8,
253
551
  {
254
552
  __baseCSS: {
255
553
  position: "relative",
@@ -259,8 +557,8 @@ var Input = forwardRef(
259
557
  },
260
558
  css: styles.container
261
559
  },
262
- /* @__PURE__ */ React7.createElement(
263
- Box5,
560
+ /* @__PURE__ */ React10.createElement(
561
+ Box8,
264
562
  {
265
563
  __baseCSS: { border: 0, width: "100%", outline: "none", pl: 16 },
266
564
  ...props,
@@ -271,8 +569,8 @@ var Input = forwardRef(
271
569
  type
272
570
  }
273
571
  ),
274
- icon && /* @__PURE__ */ React7.createElement(
275
- Box5,
572
+ icon && /* @__PURE__ */ React10.createElement(
573
+ Box8,
276
574
  {
277
575
  __baseCSS: {
278
576
  position: "absolute",
@@ -283,8 +581,8 @@ var Input = forwardRef(
283
581
  },
284
582
  icon
285
583
  ),
286
- /* @__PURE__ */ React7.createElement(
287
- Box5,
584
+ /* @__PURE__ */ React10.createElement(
585
+ Box8,
288
586
  {
289
587
  __baseCSS: {
290
588
  display: "inline-flex",
@@ -299,11 +597,11 @@ var Input = forwardRef(
299
597
  );
300
598
 
301
599
  // src/ListBox/ListBox.tsx
302
- import React10, { forwardRef as forwardRef2 } from "react";
303
- import { useObjectRef } from "@react-aria/utils";
600
+ import React13, { forwardRef as forwardRef3 } from "react";
601
+ import { useObjectRef as useObjectRef2 } from "@react-aria/utils";
304
602
  import {
305
- Box as Box8,
306
- useComponentStyles as useComponentStyles5
603
+ Box as Box11,
604
+ useComponentStyles as useComponentStyles7
307
605
  } from "@marigold/system";
308
606
  import { useListBox } from "@react-aria/listbox";
309
607
 
@@ -313,17 +611,17 @@ var ListBoxContext = createContext2({});
313
611
  var useListBoxContext = () => useContext2(ListBoxContext);
314
612
 
315
613
  // src/ListBox/ListBoxSection.tsx
316
- import React9 from "react";
614
+ import React12 from "react";
317
615
  import { useListBoxSection } from "@react-aria/listbox";
318
- import { Box as Box7 } from "@marigold/system";
616
+ import { Box as Box10 } from "@marigold/system";
319
617
 
320
618
  // src/ListBox/ListBoxOption.tsx
321
- import React8, { useRef } from "react";
619
+ import React11, { useRef as useRef3 } from "react";
322
620
  import { useOption } from "@react-aria/listbox";
323
- import { mergeProps } from "@react-aria/utils";
324
- import { Box as Box6, useStateProps as useStateProps2 } from "@marigold/system";
621
+ import { mergeProps as mergeProps4 } from "@react-aria/utils";
622
+ import { Box as Box9, useStateProps as useStateProps4 } from "@marigold/system";
325
623
  var ListBoxOption = ({ item, state }) => {
326
- const ref = useRef(null);
624
+ const ref = useRef3(null);
327
625
  const { optionProps, isSelected, isDisabled, isFocused } = useOption(
328
626
  {
329
627
  key: item.key
@@ -333,18 +631,18 @@ var ListBoxOption = ({ item, state }) => {
333
631
  );
334
632
  const { onPointerUp, ...props } = optionProps;
335
633
  const { styles } = useListBoxContext();
336
- const stateProps = useStateProps2({
634
+ const stateProps = useStateProps4({
337
635
  selected: isSelected,
338
636
  disabled: isDisabled,
339
637
  focusVisible: isFocused
340
638
  });
341
- return /* @__PURE__ */ React8.createElement(
342
- Box6,
639
+ return /* @__PURE__ */ React11.createElement(
640
+ Box9,
343
641
  {
344
642
  as: "li",
345
643
  ref,
346
644
  css: styles.option,
347
- ...mergeProps(props, { onPointerDown: onPointerUp }, { ...stateProps })
645
+ ...mergeProps4(props, { onPointerDown: onPointerUp }, { ...stateProps })
348
646
  },
349
647
  item.rendered
350
648
  );
@@ -357,30 +655,30 @@ var ListBoxSection = ({ section, state }) => {
357
655
  "aria-label": section["aria-label"]
358
656
  });
359
657
  const { styles } = useListBoxContext();
360
- return /* @__PURE__ */ React9.createElement(Box7, { as: "li", css: styles.section, ...itemProps }, section.rendered && /* @__PURE__ */ React9.createElement(Box7, { css: styles.sectionTitle, ...headingProps }, section.rendered), /* @__PURE__ */ React9.createElement(
361
- Box7,
658
+ return /* @__PURE__ */ React12.createElement(Box10, { as: "li", css: styles.section, ...itemProps }, section.rendered && /* @__PURE__ */ React12.createElement(Box10, { css: styles.sectionTitle, ...headingProps }, section.rendered), /* @__PURE__ */ React12.createElement(
659
+ Box10,
362
660
  {
363
661
  as: "ul",
364
662
  __baseCSS: { listStyle: "none", p: 0 },
365
663
  css: styles.list,
366
664
  ...groupProps
367
665
  },
368
- [...section.childNodes].map((node) => /* @__PURE__ */ React9.createElement(ListBoxOption, { key: node.key, item: node, state }))
666
+ [...section.childNodes].map((node) => /* @__PURE__ */ React12.createElement(ListBoxOption, { key: node.key, item: node, state }))
369
667
  ));
370
668
  };
371
669
 
372
670
  // src/ListBox/ListBox.tsx
373
- var ListBox = forwardRef2(
671
+ var ListBox = forwardRef3(
374
672
  ({ state, variant, size, ...props }, ref) => {
375
- const innerRef = useObjectRef(ref);
673
+ const innerRef = useObjectRef2(ref);
376
674
  const { listBoxProps } = useListBox(props, state, innerRef);
377
- const styles = useComponentStyles5(
675
+ const styles = useComponentStyles7(
378
676
  "ListBox",
379
677
  { variant, size },
380
678
  { parts: ["container", "list", "option", "section", "sectionTitle"] }
381
679
  );
382
- return /* @__PURE__ */ React10.createElement(ListBoxContext.Provider, { value: { styles } }, /* @__PURE__ */ React10.createElement(Box8, { css: styles.container }, /* @__PURE__ */ React10.createElement(
383
- Box8,
680
+ return /* @__PURE__ */ React13.createElement(ListBoxContext.Provider, { value: { styles } }, /* @__PURE__ */ React13.createElement(Box11, { css: styles.container }, /* @__PURE__ */ React13.createElement(
681
+ Box11,
384
682
  {
385
683
  as: "ul",
386
684
  ref: innerRef,
@@ -389,25 +687,25 @@ var ListBox = forwardRef2(
389
687
  ...listBoxProps
390
688
  },
391
689
  [...state.collection].map(
392
- (item) => item.type === "section" ? /* @__PURE__ */ React10.createElement(ListBoxSection, { key: item.key, section: item, state }) : /* @__PURE__ */ React10.createElement(ListBoxOption, { key: item.key, item, state })
690
+ (item) => item.type === "section" ? /* @__PURE__ */ React13.createElement(ListBoxSection, { key: item.key, section: item, state }) : /* @__PURE__ */ React13.createElement(ListBoxOption, { key: item.key, item, state })
393
691
  )
394
692
  )));
395
693
  }
396
694
  );
397
695
 
398
696
  // src/Overlay/Modal.tsx
399
- import React12, { forwardRef as forwardRef3 } from "react";
697
+ import React15, { forwardRef as forwardRef4 } from "react";
400
698
  import { FocusScope } from "@react-aria/focus";
401
699
  import { useModal, useOverlay, usePreventScroll } from "@react-aria/overlays";
402
- import { mergeProps as mergeProps2, useObjectRef as useObjectRef2 } from "@react-aria/utils";
700
+ import { mergeProps as mergeProps5, useObjectRef as useObjectRef3 } from "@react-aria/utils";
403
701
 
404
702
  // src/Overlay/Underlay.tsx
405
- import React11 from "react";
406
- import { Box as Box9, useComponentStyles as useComponentStyles6 } from "@marigold/system";
703
+ import React14 from "react";
704
+ import { Box as Box12, useComponentStyles as useComponentStyles8 } from "@marigold/system";
407
705
  var Underlay = ({ size, variant, ...props }) => {
408
- const styles = useComponentStyles6("Underlay", { size, variant });
409
- return /* @__PURE__ */ React11.createElement(
410
- Box9,
706
+ const styles = useComponentStyles8("Underlay", { size, variant });
707
+ return /* @__PURE__ */ React14.createElement(
708
+ Box12,
411
709
  {
412
710
  __baseCSS: {
413
711
  position: "fixed",
@@ -421,9 +719,9 @@ var Underlay = ({ size, variant, ...props }) => {
421
719
  };
422
720
 
423
721
  // src/Overlay/Modal.tsx
424
- var Modal = forwardRef3(
722
+ var Modal = forwardRef4(
425
723
  ({ children, open, dismissable, keyboardDismissable, onClose, ...props }, ref) => {
426
- const modalRef = useObjectRef2(ref);
724
+ const modalRef = useObjectRef3(ref);
427
725
  const { overlayProps, underlayProps } = useOverlay(
428
726
  {
429
727
  isOpen: open,
@@ -435,7 +733,7 @@ var Modal = forwardRef3(
435
733
  );
436
734
  usePreventScroll();
437
735
  const { modalProps } = useModal({});
438
- return /* @__PURE__ */ React12.createElement(FocusScope, { contain: true, restoreFocus: true, autoFocus: true }, /* @__PURE__ */ React12.createElement(Underlay, { ...underlayProps, variant: "modal" }), /* @__PURE__ */ React12.createElement(
736
+ return /* @__PURE__ */ React15.createElement(FocusScope, { contain: true, restoreFocus: true, autoFocus: true }, /* @__PURE__ */ React15.createElement(Underlay, { ...underlayProps, variant: "modal" }), /* @__PURE__ */ React15.createElement(
439
737
  "div",
440
738
  {
441
739
  style: {
@@ -448,15 +746,15 @@ var Modal = forwardRef3(
448
746
  pointerEvents: "none"
449
747
  },
450
748
  ref: modalRef,
451
- ...mergeProps2(props, overlayProps, modalProps)
749
+ ...mergeProps5(props, overlayProps, modalProps)
452
750
  },
453
- /* @__PURE__ */ React12.createElement("div", { style: { pointerEvents: "auto" } }, children)
751
+ /* @__PURE__ */ React15.createElement("div", { style: { pointerEvents: "auto" } }, children)
454
752
  ));
455
753
  }
456
754
  );
457
755
 
458
756
  // src/Overlay/Overlay.tsx
459
- import React13, { useRef as useRef2 } from "react";
757
+ import React16, { useRef as useRef4 } from "react";
460
758
  import { Transition } from "react-transition-group";
461
759
  import {
462
760
  Overlay as ReactAriaOverlay
@@ -474,12 +772,12 @@ var transitionStyles = {
474
772
  unmounted: { opacity: 0 }
475
773
  };
476
774
  var Overlay = ({ children, container, open }) => {
477
- const nodeRef = useRef2(null);
775
+ const nodeRef = useRef4(null);
478
776
  let mountOverlay = open;
479
777
  if (!mountOverlay) {
480
778
  return null;
481
779
  }
482
- return /* @__PURE__ */ React13.createElement(ReactAriaOverlay, { portalContainer: container }, /* @__PURE__ */ React13.createElement(Transition, { nodeRef, timeout: duration, in: open, appear: true }, (state) => /* @__PURE__ */ React13.createElement(
780
+ return /* @__PURE__ */ React16.createElement(ReactAriaOverlay, { portalContainer: container }, /* @__PURE__ */ React16.createElement(Transition, { nodeRef, timeout: duration, in: open, appear: true }, (state) => /* @__PURE__ */ React16.createElement(
483
781
  "div",
484
782
  {
485
783
  ref: nodeRef,
@@ -494,21 +792,21 @@ var Overlay = ({ children, container, open }) => {
494
792
  };
495
793
 
496
794
  // src/Overlay/Popover.tsx
497
- import React14, { forwardRef as forwardRef4, useRef as useRef3 } from "react";
795
+ import React17, { forwardRef as forwardRef5, useRef as useRef5 } from "react";
498
796
  import {
499
797
  DismissButton,
500
798
  usePopover
501
799
  } from "@react-aria/overlays";
502
800
  import { FocusScope as FocusScope2 } from "@react-aria/focus";
503
- var Popover = forwardRef4(
801
+ var Popover = forwardRef5(
504
802
  (props, ref) => {
505
- const fallbackRef = useRef3(null);
803
+ const fallbackRef = useRef5(null);
506
804
  const popoverRef = ref || fallbackRef;
507
805
  let { children, state, ...otherProps } = props;
508
- return /* @__PURE__ */ React14.createElement(Overlay, { open: state.isOpen, ...otherProps }, /* @__PURE__ */ React14.createElement(PopoverWrapper, { ref: popoverRef, ...props }, children));
806
+ return /* @__PURE__ */ React17.createElement(Overlay, { open: state.isOpen, ...otherProps }, /* @__PURE__ */ React17.createElement(PopoverWrapper, { ref: popoverRef, ...props }, children));
509
807
  }
510
808
  );
511
- var PopoverWrapper = forwardRef4(
809
+ var PopoverWrapper = forwardRef5(
512
810
  ({
513
811
  children,
514
812
  isNonModal,
@@ -526,7 +824,7 @@ var PopoverWrapper = forwardRef4(
526
824
  },
527
825
  state
528
826
  );
529
- return /* @__PURE__ */ React14.createElement(FocusScope2, { restoreFocus: true }, !isNonModal && /* @__PURE__ */ React14.createElement(Underlay, { ...underlayProps }), /* @__PURE__ */ React14.createElement(
827
+ return /* @__PURE__ */ React17.createElement(FocusScope2, { restoreFocus: true }, !isNonModal && /* @__PURE__ */ React17.createElement(Underlay, { ...underlayProps }), /* @__PURE__ */ React17.createElement(
530
828
  "div",
531
829
  {
532
830
  ...popoverProps,
@@ -537,30 +835,30 @@ var PopoverWrapper = forwardRef4(
537
835
  ref,
538
836
  role: "presentation"
539
837
  },
540
- !isNonModal && /* @__PURE__ */ React14.createElement(DismissButton, { onDismiss: state.close }),
838
+ !isNonModal && /* @__PURE__ */ React17.createElement(DismissButton, { onDismiss: state.close }),
541
839
  children,
542
- /* @__PURE__ */ React14.createElement(DismissButton, { onDismiss: state.close })
840
+ /* @__PURE__ */ React17.createElement(DismissButton, { onDismiss: state.close })
543
841
  ));
544
842
  }
545
843
  );
546
844
 
547
845
  // src/Overlay/Tray.tsx
548
- import React15 from "react";
549
- import { Box as Box10 } from "@marigold/system";
846
+ import React18 from "react";
847
+ import { Box as Box13 } from "@marigold/system";
550
848
  import { FocusScope as FocusScope3 } from "@react-aria/focus";
551
849
  import {
552
850
  DismissButton as DismissButton2,
553
851
  useModalOverlay
554
852
  } from "@react-aria/overlays";
555
- import { useObjectRef as useObjectRef3 } from "@react-aria/utils";
556
- import { forwardRef as forwardRef5 } from "react";
557
- var Tray = forwardRef5(
853
+ import { useObjectRef as useObjectRef4 } from "@react-aria/utils";
854
+ import { forwardRef as forwardRef6 } from "react";
855
+ var Tray = forwardRef6(
558
856
  ({ state, children, ...props }, ref) => {
559
- const trayRef = useObjectRef3(ref);
560
- return /* @__PURE__ */ React15.createElement(Overlay, { open: state.isOpen }, /* @__PURE__ */ React15.createElement(TrayWrapper, { state, ...props, ref: trayRef }, children));
857
+ const trayRef = useObjectRef4(ref);
858
+ return /* @__PURE__ */ React18.createElement(Overlay, { open: state.isOpen }, /* @__PURE__ */ React18.createElement(TrayWrapper, { state, ...props, ref: trayRef }, children));
561
859
  }
562
860
  );
563
- var TrayWrapper = forwardRef5(
861
+ var TrayWrapper = forwardRef6(
564
862
  ({ children, state, ...props }, ref) => {
565
863
  let { modalProps, underlayProps } = useModalOverlay(
566
864
  {
@@ -570,28 +868,28 @@ var TrayWrapper = forwardRef5(
570
868
  state,
571
869
  ref
572
870
  );
573
- return /* @__PURE__ */ React15.createElement(FocusScope3, { contain: true, restoreFocus: true, autoFocus: true }, /* @__PURE__ */ React15.createElement(Underlay, { ...underlayProps, variant: "modal" }, /* @__PURE__ */ React15.createElement(
574
- Box10,
871
+ return /* @__PURE__ */ React18.createElement(FocusScope3, { contain: true, restoreFocus: true, autoFocus: true }, /* @__PURE__ */ React18.createElement(Underlay, { ...underlayProps, variant: "modal" }, /* @__PURE__ */ React18.createElement(
872
+ Box13,
575
873
  {
576
874
  ...modalProps,
577
875
  ref,
578
876
  __baseCSS: { position: "absolute", width: "100%", bottom: 0 },
579
877
  "data-testid": "tray"
580
878
  },
581
- /* @__PURE__ */ React15.createElement(DismissButton2, { onDismiss: state.close }),
879
+ /* @__PURE__ */ React18.createElement(DismissButton2, { onDismiss: state.close }),
582
880
  children,
583
- /* @__PURE__ */ React15.createElement(DismissButton2, { onDismiss: state.close })
881
+ /* @__PURE__ */ React18.createElement(DismissButton2, { onDismiss: state.close })
584
882
  )));
585
883
  }
586
884
  );
587
885
 
588
886
  // src/Autocomplete/ClearButton.tsx
589
- import React16, { useRef as useRef4 } from "react";
590
- import { useHover } from "@react-aria/interactions";
591
- import { useFocusRing } from "@react-aria/focus";
592
- import { useButton } from "@react-aria/button";
593
- import { mergeProps as mergeProps3 } from "@react-aria/utils";
594
- import { Box as Box11, useStateProps as useStateProps3 } from "@marigold/system";
887
+ import React19, { useRef as useRef6 } from "react";
888
+ import { useHover as useHover2 } from "@react-aria/interactions";
889
+ import { useFocusRing as useFocusRing3 } from "@react-aria/focus";
890
+ import { useButton as useButton3 } from "@react-aria/button";
891
+ import { mergeProps as mergeProps6 } from "@react-aria/utils";
892
+ import { Box as Box14, useStateProps as useStateProps5 } from "@marigold/system";
595
893
  var ClearButton = ({
596
894
  css,
597
895
  preventFocus,
@@ -606,12 +904,12 @@ var ClearButton = ({
606
904
  preventFocusOnPress,
607
905
  ...props
608
906
  }) => {
609
- const buttonRef = useRef4(null);
610
- const { hoverProps, isHovered } = useHover({ isDisabled: disabled });
611
- const { isFocusVisible, focusProps } = useFocusRing({
907
+ const buttonRef = useRef6(null);
908
+ const { hoverProps, isHovered } = useHover2({ isDisabled: disabled });
909
+ const { isFocusVisible, focusProps } = useFocusRing3({
612
910
  autoFocus: props.autoFocus
613
911
  });
614
- const { buttonProps, isPressed } = useButton(
912
+ const { buttonProps, isPressed } = useButton3(
615
913
  {
616
914
  ...props,
617
915
  onClick,
@@ -629,15 +927,15 @@ var ClearButton = ({
629
927
  if (preventFocus) {
630
928
  delete buttonProps.tabIndex;
631
929
  }
632
- const stateProps = useStateProps3({
930
+ const stateProps = useStateProps5({
633
931
  active: isPressed,
634
932
  focusVisible: isFocusVisible,
635
933
  hover: isHovered
636
934
  });
637
- return /* @__PURE__ */ React16.createElement(
638
- Box11,
935
+ return /* @__PURE__ */ React19.createElement(
936
+ Box14,
639
937
  {
640
- ...mergeProps3(buttonProps, focusProps, hoverProps, props),
938
+ ...mergeProps6(buttonProps, focusProps, hoverProps, props),
641
939
  ...stateProps,
642
940
  as: "button",
643
941
  ref: buttonRef,
@@ -651,28 +949,28 @@ var ClearButton = ({
651
949
  },
652
950
  css
653
951
  },
654
- /* @__PURE__ */ React16.createElement(
952
+ /* @__PURE__ */ React19.createElement(
655
953
  "svg",
656
954
  {
657
955
  xmlns: "http://www.w3.org/2000/svg",
658
956
  viewBox: "0 0 20 20",
659
957
  fill: "currentColor"
660
958
  },
661
- /* @__PURE__ */ React16.createElement("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" })
959
+ /* @__PURE__ */ React19.createElement("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" })
662
960
  )
663
961
  );
664
962
  };
665
963
 
666
964
  // src/Autocomplete/Autocomplete.tsx
667
- var SearchIcon = ({ css }) => /* @__PURE__ */ React17.createElement(
668
- SVG3,
965
+ var SearchIcon = ({ css }) => /* @__PURE__ */ React20.createElement(
966
+ SVG4,
669
967
  {
670
968
  xmlns: "http://www.w3.org/2000/svg",
671
969
  viewBox: "0 0 24 24",
672
970
  fill: "currentColor",
673
971
  css
674
972
  },
675
- /* @__PURE__ */ React17.createElement("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" })
973
+ /* @__PURE__ */ React20.createElement("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" })
676
974
  );
677
975
  var Autocomplete = ({
678
976
  disabled,
@@ -709,9 +1007,9 @@ var Autocomplete = ({
709
1007
  selectedKey: void 0,
710
1008
  defaultSelectedKey: void 0
711
1009
  });
712
- const inputRef = useRef5(null);
713
- const listBoxRef = useRef5(null);
714
- const popoverRef = useRef5(null);
1010
+ const inputRef = useRef7(null);
1011
+ const listBoxRef = useRef7(null);
1012
+ const popoverRef = useRef7(null);
715
1013
  const { inputProps, listBoxProps, labelProps, clearButtonProps } = useSearchAutocomplete(
716
1014
  {
717
1015
  ...props,
@@ -727,12 +1025,12 @@ var Autocomplete = ({
727
1025
  );
728
1026
  const errorMessageProps = { "aria-invalid": error };
729
1027
  const { isDisabled, ...restClearButtonProps } = clearButtonProps;
730
- const styles = useComponentStyles7(
1028
+ const styles = useComponentStyles9(
731
1029
  "Autocomplete",
732
1030
  { variant, size },
733
1031
  { parts: ["icon", "clear"] }
734
1032
  );
735
- return /* @__PURE__ */ React17.createElement(React17.Fragment, null, /* @__PURE__ */ React17.createElement(
1033
+ return /* @__PURE__ */ React20.createElement(React20.Fragment, null, /* @__PURE__ */ React20.createElement(
736
1034
  FieldBase,
737
1035
  {
738
1036
  label: props.label,
@@ -744,13 +1042,13 @@ var Autocomplete = ({
744
1042
  disabled,
745
1043
  width
746
1044
  },
747
- /* @__PURE__ */ React17.createElement(
1045
+ /* @__PURE__ */ React20.createElement(
748
1046
  Input,
749
1047
  {
750
1048
  ...inputProps,
751
1049
  ref: inputRef,
752
- icon: /* @__PURE__ */ React17.createElement(SearchIcon, { css: { height: 16, width: 16, ...styles.icon } }),
753
- action: state.inputValue !== "" ? /* @__PURE__ */ React17.createElement(
1050
+ icon: /* @__PURE__ */ React20.createElement(SearchIcon, { css: { height: 16, width: 16, ...styles.icon } }),
1051
+ action: state.inputValue !== "" ? /* @__PURE__ */ React20.createElement(
754
1052
  ClearButton,
755
1053
  {
756
1054
  preventFocus: true,
@@ -761,7 +1059,7 @@ var Autocomplete = ({
761
1059
  ) : void 0
762
1060
  }
763
1061
  )
764
- ), /* @__PURE__ */ React17.createElement(
1062
+ ), /* @__PURE__ */ React20.createElement(
765
1063
  Popover,
766
1064
  {
767
1065
  state,
@@ -770,21 +1068,21 @@ var Autocomplete = ({
770
1068
  scrollRef: listBoxRef,
771
1069
  isNonModal: true
772
1070
  },
773
- /* @__PURE__ */ React17.createElement(ListBox, { ref: listBoxRef, state, ...listBoxProps })
1071
+ /* @__PURE__ */ React20.createElement(ListBox, { ref: listBoxRef, state, ...listBoxProps })
774
1072
  ));
775
1073
  };
776
- Autocomplete.Item = Item;
1074
+ Autocomplete.Item = Item2;
777
1075
 
778
1076
  // src/Badge/Badge.tsx
779
- import React18 from "react";
780
- import { useComponentStyles as useComponentStyles8 } from "@marigold/system";
1077
+ import React21 from "react";
1078
+ import { useComponentStyles as useComponentStyles10 } from "@marigold/system";
781
1079
  var Badge = ({ variant, size, children, ...props }) => {
782
- const styles = useComponentStyles8("Badge", { variant, size });
783
- return /* @__PURE__ */ React18.createElement(Box, { ...props, css: styles }, children);
1080
+ const styles = useComponentStyles10("Badge", { variant, size });
1081
+ return /* @__PURE__ */ React21.createElement(Box4, { ...props, css: styles }, children);
784
1082
  };
785
1083
 
786
1084
  // src/Breakout/Breakout.tsx
787
- import React19 from "react";
1085
+ import React22 from "react";
788
1086
  var useAlignment = (direction) => {
789
1087
  switch (direction) {
790
1088
  case "right":
@@ -805,8 +1103,8 @@ var Breakout = ({
805
1103
  }) => {
806
1104
  const alignItems = useAlignment(alignY);
807
1105
  const justifyContent = useAlignment(alignX);
808
- return /* @__PURE__ */ React19.createElement(
809
- Box,
1106
+ return /* @__PURE__ */ React22.createElement(
1107
+ Box4,
810
1108
  {
811
1109
  css: {
812
1110
  alignItems,
@@ -823,107 +1121,27 @@ var Breakout = ({
823
1121
  };
824
1122
 
825
1123
  // src/Body/Body.tsx
826
- import React20 from "react";
1124
+ import React23 from "react";
827
1125
  import {
828
- Box as Box12,
829
- useComponentStyles as useComponentStyles9
1126
+ Box as Box15,
1127
+ useComponentStyles as useComponentStyles11
830
1128
  } from "@marigold/system";
831
1129
  var Body = ({ children, variant, size, ...props }) => {
832
- const styles = useComponentStyles9("Body", { variant, size });
833
- return /* @__PURE__ */ React20.createElement(Box12, { as: "section", ...props, css: styles }, children);
1130
+ const styles = useComponentStyles11("Body", { variant, size });
1131
+ return /* @__PURE__ */ React23.createElement(Box15, { as: "section", ...props, __baseCSS: { flex: "1" }, css: styles }, children);
834
1132
  };
835
1133
 
836
- // src/Button/Button.tsx
837
- import React21, { forwardRef as forwardRef6 } from "react";
838
- import { useButton as useButton2 } from "@react-aria/button";
839
- import { useFocusRing as useFocusRing2 } from "@react-aria/focus";
840
- import { useHover as useHover2 } from "@react-aria/interactions";
841
- import { mergeProps as mergeProps4, useObjectRef as useObjectRef4 } from "@react-aria/utils";
842
- import {
843
- Box as Box13,
844
- useComponentStyles as useComponentStyles10,
845
- useStateProps as useStateProps4
846
- } from "@marigold/system";
847
- var Button = forwardRef6(
848
- ({
849
- as = "button",
850
- children,
851
- variant,
852
- size,
853
- disabled,
854
- onClick,
855
- onPress,
856
- onPressStart,
857
- onPressEnd,
858
- onPressChange,
859
- onPressUp,
860
- fullWidth,
861
- ...props
862
- }, ref) => {
863
- const buttonRef = useObjectRef4(ref);
864
- const { hoverProps, isHovered } = useHover2({ isDisabled: disabled });
865
- const { isFocusVisible, focusProps } = useFocusRing2({
866
- autoFocus: props.autoFocus
867
- });
868
- const { buttonProps, isPressed } = useButton2(
869
- {
870
- /**
871
- * `react-aria` only expected `Element` but we casted
872
- * it to a `HTMLButtonElement` internally.
873
- */
874
- ...props,
875
- onClick,
876
- onPress,
877
- onPressStart,
878
- onPressEnd,
879
- onPressChange,
880
- onPressUp,
881
- elementType: typeof as === "string" ? as : "span",
882
- isDisabled: disabled
883
- },
884
- buttonRef
885
- );
886
- const styles = useComponentStyles10("Button", { variant, size });
887
- const stateProps = useStateProps4({
888
- active: isPressed,
889
- focusVisible: isFocusVisible,
890
- hover: isHovered
891
- });
892
- return /* @__PURE__ */ React21.createElement(
893
- Box13,
894
- {
895
- ...mergeProps4(buttonProps, focusProps, hoverProps, props),
896
- ...stateProps,
897
- as,
898
- ref: buttonRef,
899
- __baseCSS: {
900
- display: "inline-flex",
901
- alignItems: "center",
902
- justifyContent: "center",
903
- gap: "0.5ch",
904
- cursor: disabled ? "not-allowed" : "pointer",
905
- width: fullWidth ? "100%" : void 0,
906
- "&:focus": {
907
- outline: 0
908
- }
909
- },
910
- css: styles
911
- },
912
- children
913
- );
914
- }
915
- );
916
-
917
1134
  // src/Card/Card.tsx
918
- import React22 from "react";
1135
+ import React24 from "react";
919
1136
  import {
920
- Box as Box14,
921
- useComponentStyles as useComponentStyles11
1137
+ Box as Box16,
1138
+ useComponentStyles as useComponentStyles12
922
1139
  } from "@marigold/system";
923
1140
  var Card = ({
924
1141
  children,
925
1142
  variant,
926
1143
  size,
1144
+ space = "none",
927
1145
  p,
928
1146
  px,
929
1147
  py,
@@ -933,19 +1151,31 @@ var Card = ({
933
1151
  pr,
934
1152
  ...props
935
1153
  }) => {
936
- const styles = useComponentStyles11("Card", { variant, size });
937
- return /* @__PURE__ */ React22.createElement(Box14, { ...props, css: [styles, { p, px, py, pt, pb, pl, pr }] }, children);
1154
+ const styles = useComponentStyles12("Card", { variant, size });
1155
+ return /* @__PURE__ */ React24.createElement(
1156
+ Box16,
1157
+ {
1158
+ ...props,
1159
+ __baseCSS: {
1160
+ display: "flex",
1161
+ flexDirection: "column",
1162
+ gap: space
1163
+ },
1164
+ css: [styles, { p, px, py, pt, pb, pl, pr }]
1165
+ },
1166
+ children
1167
+ );
938
1168
  };
939
1169
 
940
1170
  // src/Center/Center.tsx
941
- import React23 from "react";
1171
+ import React25 from "react";
942
1172
  var Center = ({
943
1173
  maxWidth,
944
1174
  space = "none",
945
1175
  children,
946
1176
  ...props
947
- }) => /* @__PURE__ */ React23.createElement(
948
- Box,
1177
+ }) => /* @__PURE__ */ React25.createElement(
1178
+ Box4,
949
1179
  {
950
1180
  css: {
951
1181
  boxSizing: "content-box",
@@ -963,25 +1193,25 @@ var Center = ({
963
1193
  );
964
1194
 
965
1195
  // src/Checkbox/Checkbox.tsx
966
- import React25, { forwardRef as forwardRef7 } from "react";
1196
+ import React27, { forwardRef as forwardRef7 } from "react";
967
1197
  import { useCheckbox, useCheckboxGroupItem } from "@react-aria/checkbox";
968
- import { useFocusRing as useFocusRing3 } from "@react-aria/focus";
1198
+ import { useFocusRing as useFocusRing4 } from "@react-aria/focus";
969
1199
  import { useHover as useHover3 } from "@react-aria/interactions";
970
1200
  import { useObjectRef as useObjectRef5 } from "@react-aria/utils";
971
1201
  import { useToggleState } from "@react-stately/toggle";
972
1202
  import {
973
- Box as Box16,
974
- useComponentStyles as useComponentStyles12,
975
- useStateProps as useStateProps6
1203
+ Box as Box18,
1204
+ useComponentStyles as useComponentStyles13,
1205
+ useStateProps as useStateProps7
976
1206
  } from "@marigold/system";
977
1207
 
978
1208
  // src/Checkbox/CheckboxGroup.tsx
979
- import React24, { createContext as createContext3, useContext as useContext3 } from "react";
1209
+ import React26, { createContext as createContext3, useContext as useContext3 } from "react";
980
1210
  import { useCheckboxGroup } from "@react-aria/checkbox";
981
1211
  import {
982
1212
  useCheckboxGroupState
983
1213
  } from "@react-stately/checkbox";
984
- import { Box as Box15, useStateProps as useStateProps5 } from "@marigold/system";
1214
+ import { Box as Box17, useStateProps as useStateProps6 } from "@marigold/system";
985
1215
  var CheckboxGroupContext = createContext3(
986
1216
  null
987
1217
  );
@@ -1003,12 +1233,12 @@ var CheckboxGroup = ({
1003
1233
  };
1004
1234
  const state = useCheckboxGroupState(props);
1005
1235
  const { groupProps, labelProps, descriptionProps, errorMessageProps } = useCheckboxGroup(props, state);
1006
- const stateProps = useStateProps5({
1236
+ const stateProps = useStateProps6({
1007
1237
  disabled,
1008
1238
  readOnly,
1009
1239
  error
1010
1240
  });
1011
- return /* @__PURE__ */ React24.createElement(
1241
+ return /* @__PURE__ */ React26.createElement(
1012
1242
  FieldBase,
1013
1243
  {
1014
1244
  label: props.label,
@@ -1023,8 +1253,8 @@ var CheckboxGroup = ({
1023
1253
  required,
1024
1254
  ...groupProps
1025
1255
  },
1026
- /* @__PURE__ */ React24.createElement(
1027
- Box15,
1256
+ /* @__PURE__ */ React26.createElement(
1257
+ Box17,
1028
1258
  {
1029
1259
  role: "presentation",
1030
1260
  __baseCSS: {
@@ -1033,13 +1263,13 @@ var CheckboxGroup = ({
1033
1263
  alignItems: "start"
1034
1264
  }
1035
1265
  },
1036
- /* @__PURE__ */ React24.createElement(CheckboxGroupContext.Provider, { value: { error, ...state } }, children)
1266
+ /* @__PURE__ */ React26.createElement(CheckboxGroupContext.Provider, { value: { error, ...state } }, children)
1037
1267
  )
1038
1268
  );
1039
1269
  };
1040
1270
 
1041
1271
  // src/Checkbox/Checkbox.tsx
1042
- var CheckMark = () => /* @__PURE__ */ React25.createElement("svg", { viewBox: "0 0 12 10" }, /* @__PURE__ */ React25.createElement(
1272
+ var CheckMark = () => /* @__PURE__ */ React27.createElement("svg", { viewBox: "0 0 12 10" }, /* @__PURE__ */ React27.createElement(
1043
1273
  "path",
1044
1274
  {
1045
1275
  fill: "currentColor",
@@ -1047,7 +1277,7 @@ var CheckMark = () => /* @__PURE__ */ React25.createElement("svg", { viewBox: "0
1047
1277
  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"
1048
1278
  }
1049
1279
  ));
1050
- var IndeterminateMark = () => /* @__PURE__ */ React25.createElement("svg", { width: "12", height: "3", viewBox: "0 0 12 3" }, /* @__PURE__ */ React25.createElement(
1280
+ var IndeterminateMark = () => /* @__PURE__ */ React27.createElement("svg", { width: "12", height: "3", viewBox: "0 0 12 3" }, /* @__PURE__ */ React27.createElement(
1051
1281
  "path",
1052
1282
  {
1053
1283
  fill: "currentColor",
@@ -1055,8 +1285,8 @@ var IndeterminateMark = () => /* @__PURE__ */ React25.createElement("svg", { wid
1055
1285
  d: "M11.5 2.04018H0.5V0.46875H11.5V2.04018Z"
1056
1286
  }
1057
1287
  ));
1058
- var Icon = ({ css, checked, indeterminate, ...props }) => /* @__PURE__ */ React25.createElement(
1059
- Box16,
1288
+ var Icon = ({ css, checked, indeterminate, ...props }) => /* @__PURE__ */ React27.createElement(
1289
+ Box18,
1060
1290
  {
1061
1291
  "aria-hidden": "true",
1062
1292
  __baseCSS: {
@@ -1074,7 +1304,7 @@ var Icon = ({ css, checked, indeterminate, ...props }) => /* @__PURE__ */ React2
1074
1304
  css,
1075
1305
  ...props
1076
1306
  },
1077
- indeterminate ? /* @__PURE__ */ React25.createElement(IndeterminateMark, null) : checked ? /* @__PURE__ */ React25.createElement(CheckMark, null) : null
1307
+ indeterminate ? /* @__PURE__ */ React27.createElement(IndeterminateMark, null) : checked ? /* @__PURE__ */ React27.createElement(CheckMark, null) : null
1078
1308
  );
1079
1309
  var Checkbox = forwardRef7(
1080
1310
  ({
@@ -1125,7 +1355,7 @@ var Checkbox = forwardRef7(
1125
1355
  }),
1126
1356
  inputRef
1127
1357
  );
1128
- const styles = useComponentStyles12(
1358
+ const styles = useComponentStyles13(
1129
1359
  "Checkbox",
1130
1360
  {
1131
1361
  variant,
@@ -1134,8 +1364,8 @@ var Checkbox = forwardRef7(
1134
1364
  { parts: ["container", "label", "checkbox"] }
1135
1365
  );
1136
1366
  const { hoverProps, isHovered } = useHover3({});
1137
- const { isFocusVisible, focusProps } = useFocusRing3();
1138
- const stateProps = useStateProps6({
1367
+ const { isFocusVisible, focusProps } = useFocusRing4();
1368
+ const stateProps = useStateProps7({
1139
1369
  hover: isHovered,
1140
1370
  focus: isFocusVisible,
1141
1371
  checked: inputProps.checked,
@@ -1144,8 +1374,8 @@ var Checkbox = forwardRef7(
1144
1374
  readOnly,
1145
1375
  indeterminate
1146
1376
  });
1147
- return /* @__PURE__ */ React25.createElement(
1148
- Box16,
1377
+ return /* @__PURE__ */ React27.createElement(
1378
+ Box18,
1149
1379
  {
1150
1380
  as: "label",
1151
1381
  __baseCSS: {
@@ -1158,8 +1388,8 @@ var Checkbox = forwardRef7(
1158
1388
  ...hoverProps,
1159
1389
  ...stateProps
1160
1390
  },
1161
- /* @__PURE__ */ React25.createElement(
1162
- Box16,
1391
+ /* @__PURE__ */ React27.createElement(
1392
+ Box18,
1163
1393
  {
1164
1394
  as: "input",
1165
1395
  ref: inputRef,
@@ -1177,7 +1407,7 @@ var Checkbox = forwardRef7(
1177
1407
  ...focusProps
1178
1408
  }
1179
1409
  ),
1180
- /* @__PURE__ */ React25.createElement(
1410
+ /* @__PURE__ */ React27.createElement(
1181
1411
  Icon,
1182
1412
  {
1183
1413
  checked: inputProps.checked,
@@ -1186,14 +1416,14 @@ var Checkbox = forwardRef7(
1186
1416
  ...stateProps
1187
1417
  }
1188
1418
  ),
1189
- props.children && /* @__PURE__ */ React25.createElement(Box16, { css: styles.label, ...stateProps }, props.children)
1419
+ props.children && /* @__PURE__ */ React27.createElement(Box18, { css: styles.label, ...stateProps }, props.children)
1190
1420
  );
1191
1421
  }
1192
1422
  );
1193
1423
 
1194
1424
  // src/Columns/Columns.tsx
1195
- import React26, {
1196
- Children,
1425
+ import React28, {
1426
+ Children as Children2,
1197
1427
  cloneElement,
1198
1428
  isValidElement
1199
1429
  } from "react";
@@ -1205,15 +1435,15 @@ var Columns = ({
1205
1435
  children,
1206
1436
  ...props
1207
1437
  }) => {
1208
- if (Children.count(children) !== columns.length) {
1438
+ if (Children2.count(children) !== columns.length) {
1209
1439
  throw new Error(
1210
- `Columns: expected ${columns.length} children, got ${Children.count(
1440
+ `Columns: expected ${columns.length} children, got ${Children2.count(
1211
1441
  children
1212
1442
  )}`
1213
1443
  );
1214
1444
  }
1215
- return /* @__PURE__ */ React26.createElement(
1216
- Box,
1445
+ return /* @__PURE__ */ React28.createElement(
1446
+ Box4,
1217
1447
  {
1218
1448
  css: {
1219
1449
  display: "flex",
@@ -1231,8 +1461,8 @@ var Columns = ({
1231
1461
  },
1232
1462
  ...props
1233
1463
  },
1234
- Children.map(children, (child, idx) => /* @__PURE__ */ React26.createElement(
1235
- Box,
1464
+ Children2.map(children, (child, idx) => /* @__PURE__ */ React28.createElement(
1465
+ Box4,
1236
1466
  {
1237
1467
  css: {
1238
1468
  // Stretch each column to the given value
@@ -1245,7 +1475,7 @@ var Columns = ({
1245
1475
  };
1246
1476
 
1247
1477
  // src/Container/Container.tsx
1248
- import React27 from "react";
1478
+ import React29 from "react";
1249
1479
  import { size as tokenSize } from "@marigold/tokens";
1250
1480
  var ALIGN_ITEMS = {
1251
1481
  left: "start",
@@ -1276,8 +1506,8 @@ var Container = ({
1276
1506
  ...props
1277
1507
  }) => {
1278
1508
  const maxWidth = tokenSize[contentType][size];
1279
- return /* @__PURE__ */ React27.createElement(
1280
- Box,
1509
+ return /* @__PURE__ */ React29.createElement(
1510
+ Box4,
1281
1511
  {
1282
1512
  css: {
1283
1513
  display: "grid",
@@ -1294,29 +1524,29 @@ var Container = ({
1294
1524
  };
1295
1525
 
1296
1526
  // src/Dialog/Dialog.tsx
1297
- import React32, { useRef as useRef7 } from "react";
1298
- import { useButton as useButton3 } from "@react-aria/button";
1527
+ import React34, { useRef as useRef9 } from "react";
1528
+ import { useButton as useButton4 } from "@react-aria/button";
1299
1529
  import { useDialog } from "@react-aria/dialog";
1300
1530
  import {
1301
- Box as Box18,
1302
- useComponentStyles as useComponentStyles15
1531
+ Box as Box20,
1532
+ useComponentStyles as useComponentStyles16
1303
1533
  } from "@marigold/system";
1304
1534
 
1305
1535
  // src/Header/Header.tsx
1306
- import React28 from "react";
1536
+ import React30 from "react";
1307
1537
  import {
1308
- useComponentStyles as useComponentStyles13
1538
+ useComponentStyles as useComponentStyles14
1309
1539
  } from "@marigold/system";
1310
1540
  var Header = ({ children, variant, size, ...props }) => {
1311
- const styles = useComponentStyles13("Header", { variant, size });
1312
- return /* @__PURE__ */ React28.createElement(Box, { as: "header", ...props, css: styles }, children);
1541
+ const styles = useComponentStyles14("Header", { variant, size });
1542
+ return /* @__PURE__ */ React30.createElement(Box4, { as: "header", ...props, css: styles }, children);
1313
1543
  };
1314
1544
 
1315
1545
  // src/Headline/Headline.tsx
1316
- import React29 from "react";
1546
+ import React31 from "react";
1317
1547
  import {
1318
- Box as Box17,
1319
- useComponentStyles as useComponentStyles14
1548
+ Box as Box19,
1549
+ useComponentStyles as useComponentStyles15
1320
1550
  } from "@marigold/system";
1321
1551
  var Headline = ({
1322
1552
  children,
@@ -1327,12 +1557,12 @@ var Headline = ({
1327
1557
  level = "1",
1328
1558
  ...props
1329
1559
  }) => {
1330
- const styles = useComponentStyles14("Headline", {
1560
+ const styles = useComponentStyles15("Headline", {
1331
1561
  variant,
1332
1562
  size: size != null ? size : `level-${level}`
1333
1563
  });
1334
- return /* @__PURE__ */ React29.createElement(
1335
- Box17,
1564
+ return /* @__PURE__ */ React31.createElement(
1565
+ Box19,
1336
1566
  {
1337
1567
  as: `h${level}`,
1338
1568
  ...props,
@@ -1348,7 +1578,7 @@ var DialogContext = createContext4({});
1348
1578
  var useDialogContext = () => useContext4(DialogContext);
1349
1579
 
1350
1580
  // src/Dialog/DialogTrigger.tsx
1351
- import React30, { useRef as useRef6 } from "react";
1581
+ import React32, { useRef as useRef8 } from "react";
1352
1582
  import { PressResponder } from "@react-aria/interactions";
1353
1583
  import { useOverlayTriggerState } from "@react-stately/overlays";
1354
1584
  var DialogTrigger = ({
@@ -1356,11 +1586,11 @@ var DialogTrigger = ({
1356
1586
  dismissable = true,
1357
1587
  keyboardDismissable = true
1358
1588
  }) => {
1359
- const [dialogTrigger, dialog] = React30.Children.toArray(children);
1360
- const dialogTriggerRef = useRef6(null);
1589
+ const [dialogTrigger, dialog] = React32.Children.toArray(children);
1590
+ const dialogTriggerRef = useRef8(null);
1361
1591
  const state = useOverlayTriggerState({});
1362
1592
  const ctx = { open: state.isOpen, close: state.close };
1363
- return /* @__PURE__ */ React30.createElement(DialogContext.Provider, { value: ctx }, /* @__PURE__ */ React30.createElement(
1593
+ return /* @__PURE__ */ React32.createElement(DialogContext.Provider, { value: ctx }, /* @__PURE__ */ React32.createElement(
1364
1594
  PressResponder,
1365
1595
  {
1366
1596
  ref: dialogTriggerRef,
@@ -1368,7 +1598,7 @@ var DialogTrigger = ({
1368
1598
  onPress: state.toggle
1369
1599
  },
1370
1600
  dialogTrigger
1371
- ), /* @__PURE__ */ React30.createElement(Overlay, { open: state.isOpen }, /* @__PURE__ */ React30.createElement(
1601
+ ), /* @__PURE__ */ React32.createElement(Overlay, { open: state.isOpen }, /* @__PURE__ */ React32.createElement(
1372
1602
  Modal,
1373
1603
  {
1374
1604
  open: state.isOpen,
@@ -1382,7 +1612,7 @@ var DialogTrigger = ({
1382
1612
 
1383
1613
  // src/Dialog/DialogController.tsx
1384
1614
  import { useOverlayTriggerState as useOverlayTriggerState2 } from "@react-stately/overlays";
1385
- import React31 from "react";
1615
+ import React33 from "react";
1386
1616
  var DialogController = ({
1387
1617
  children,
1388
1618
  dismissable = true,
@@ -1395,7 +1625,7 @@ var DialogController = ({
1395
1625
  onOpenChange
1396
1626
  });
1397
1627
  const ctx = { open: state.isOpen, close: state.close };
1398
- return /* @__PURE__ */ React31.createElement(DialogContext.Provider, { value: ctx }, /* @__PURE__ */ React31.createElement(Overlay, { open: state.isOpen }, /* @__PURE__ */ React31.createElement(
1628
+ return /* @__PURE__ */ React33.createElement(DialogContext.Provider, { value: ctx }, /* @__PURE__ */ React33.createElement(Overlay, { open: state.isOpen }, /* @__PURE__ */ React33.createElement(
1399
1629
  Modal,
1400
1630
  {
1401
1631
  open: state.isOpen,
@@ -1409,16 +1639,16 @@ var DialogController = ({
1409
1639
 
1410
1640
  // src/Dialog/Dialog.tsx
1411
1641
  var CloseButton = ({ css }) => {
1412
- const ref = useRef7(null);
1642
+ const ref = useRef9(null);
1413
1643
  const { close } = useDialogContext();
1414
- const { buttonProps } = useButton3(
1644
+ const { buttonProps } = useButton4(
1415
1645
  {
1416
1646
  onPress: () => close == null ? void 0 : close()
1417
1647
  },
1418
1648
  ref
1419
1649
  );
1420
- return /* @__PURE__ */ React32.createElement(Box18, { css: { display: "flex", justifyContent: "flex-end" } }, /* @__PURE__ */ React32.createElement(
1421
- Box18,
1650
+ return /* @__PURE__ */ React34.createElement(Box20, { css: { display: "flex", justifyContent: "flex-end" } }, /* @__PURE__ */ React34.createElement(
1651
+ Box20,
1422
1652
  {
1423
1653
  as: "button",
1424
1654
  __baseCSS: {
@@ -1434,7 +1664,7 @@ var CloseButton = ({ css }) => {
1434
1664
  ref,
1435
1665
  ...buttonProps
1436
1666
  },
1437
- /* @__PURE__ */ React32.createElement("svg", { viewBox: "0 0 20 20", fill: "currentColor" }, /* @__PURE__ */ React32.createElement(
1667
+ /* @__PURE__ */ React34.createElement("svg", { viewBox: "0 0 20 20", fill: "currentColor" }, /* @__PURE__ */ React34.createElement(
1438
1668
  "path",
1439
1669
  {
1440
1670
  fillRule: "evenodd",
@@ -1445,9 +1675,9 @@ var CloseButton = ({ css }) => {
1445
1675
  ));
1446
1676
  };
1447
1677
  var addTitleProps = (children, titleProps) => {
1448
- const childs = React32.Children.toArray(children);
1678
+ const childs = React34.Children.toArray(children);
1449
1679
  const titleIndex = childs.findIndex(
1450
- (child) => React32.isValidElement(child) && (child.type === Header || child.type === Headline)
1680
+ (child) => React34.isValidElement(child) && (child.type === Header || child.type === Headline)
1451
1681
  );
1452
1682
  if (titleIndex < 0) {
1453
1683
  console.warn(
@@ -1455,7 +1685,7 @@ var addTitleProps = (children, titleProps) => {
1455
1685
  );
1456
1686
  return children;
1457
1687
  }
1458
- const titleChild = React32.cloneElement(
1688
+ const titleChild = React34.cloneElement(
1459
1689
  childs[titleIndex],
1460
1690
  titleProps
1461
1691
  );
@@ -1469,43 +1699,43 @@ var Dialog = ({
1469
1699
  closeButton,
1470
1700
  ...props
1471
1701
  }) => {
1472
- const ref = useRef7(null);
1702
+ const ref = useRef9(null);
1473
1703
  const { close } = useDialogContext();
1474
1704
  const { dialogProps, titleProps } = useDialog(props, ref);
1475
- const styles = useComponentStyles15(
1705
+ const styles = useComponentStyles16(
1476
1706
  "Dialog",
1477
1707
  { variant, size },
1478
1708
  { parts: ["container", "closeButton"] }
1479
1709
  );
1480
- return /* @__PURE__ */ React32.createElement(Box18, { __baseCSS: { bg: "#fff" }, css: styles.container, ...dialogProps }, closeButton && /* @__PURE__ */ React32.createElement(CloseButton, { css: styles.closeButton }), typeof children === "function" ? children({ close, titleProps }) : props["aria-labelledby"] ? children : addTitleProps(children, titleProps));
1710
+ return /* @__PURE__ */ React34.createElement(Box20, { __baseCSS: { bg: "#fff" }, css: styles.container, ...dialogProps }, closeButton && /* @__PURE__ */ React34.createElement(CloseButton, { css: styles.closeButton }), typeof children === "function" ? children({ close, titleProps }) : props["aria-labelledby"] ? children : addTitleProps(children, titleProps));
1481
1711
  };
1482
1712
  Dialog.Trigger = DialogTrigger;
1483
1713
  Dialog.Controller = DialogController;
1484
1714
 
1485
1715
  // src/Divider/Divider.tsx
1486
- import React33 from "react";
1716
+ import React35 from "react";
1487
1717
  import { useSeparator } from "@react-aria/separator";
1488
- import { Box as Box19, useComponentStyles as useComponentStyles16 } from "@marigold/system";
1718
+ import { Box as Box21, useComponentStyles as useComponentStyles17 } from "@marigold/system";
1489
1719
  var Divider = ({ variant, ...props }) => {
1490
1720
  const { separatorProps } = useSeparator(props);
1491
- const styles = useComponentStyles16("Divider", { variant });
1492
- return /* @__PURE__ */ React33.createElement(Box19, { css: styles, ...props, ...separatorProps });
1721
+ const styles = useComponentStyles17("Divider", { variant });
1722
+ return /* @__PURE__ */ React35.createElement(Box21, { css: styles, ...props, ...separatorProps });
1493
1723
  };
1494
1724
 
1495
1725
  // src/Footer/Footer.tsx
1496
- import React34 from "react";
1726
+ import React36 from "react";
1497
1727
  import {
1498
- useComponentStyles as useComponentStyles17
1728
+ useComponentStyles as useComponentStyles18
1499
1729
  } from "@marigold/system";
1500
1730
  var Footer = ({ children, variant, size, ...props }) => {
1501
- const styles = useComponentStyles17("Footer", { variant, size });
1502
- return /* @__PURE__ */ React34.createElement(Box, { as: "footer", ...props, css: styles }, children);
1731
+ const styles = useComponentStyles18("Footer", { variant, size });
1732
+ return /* @__PURE__ */ React36.createElement(Box4, { as: "footer", ...props, css: styles }, children);
1503
1733
  };
1504
1734
 
1505
1735
  // src/Image/Image.tsx
1506
- import React35 from "react";
1507
- import { Box as Box20 } from "@marigold/system";
1508
- import { useComponentStyles as useComponentStyles18 } from "@marigold/system";
1736
+ import React37 from "react";
1737
+ import { Box as Box22 } from "@marigold/system";
1738
+ import { useComponentStyles as useComponentStyles19 } from "@marigold/system";
1509
1739
  var Image = ({
1510
1740
  variant,
1511
1741
  size,
@@ -1513,14 +1743,14 @@ var Image = ({
1513
1743
  position,
1514
1744
  ...props
1515
1745
  }) => {
1516
- const styles = useComponentStyles18("Image", { variant, size });
1746
+ const styles = useComponentStyles19("Image", { variant, size });
1517
1747
  const css = {
1518
1748
  ...styles,
1519
1749
  objectFit: fit,
1520
1750
  objectPosition: position
1521
1751
  };
1522
- return /* @__PURE__ */ React35.createElement(
1523
- Box20,
1752
+ return /* @__PURE__ */ React37.createElement(
1753
+ Box22,
1524
1754
  {
1525
1755
  ...props,
1526
1756
  as: "img",
@@ -1531,7 +1761,7 @@ var Image = ({
1531
1761
  };
1532
1762
 
1533
1763
  // src/Inline/Inline.tsx
1534
- import React36 from "react";
1764
+ import React38 from "react";
1535
1765
  var ALIGNMENT_X = {
1536
1766
  left: "flex-start",
1537
1767
  center: "center",
@@ -1548,8 +1778,8 @@ var Inline = ({
1548
1778
  alignY = "center",
1549
1779
  children,
1550
1780
  ...props
1551
- }) => /* @__PURE__ */ React36.createElement(
1552
- Box,
1781
+ }) => /* @__PURE__ */ React38.createElement(
1782
+ Box4,
1553
1783
  {
1554
1784
  css: {
1555
1785
  display: "flex",
@@ -1564,14 +1794,14 @@ var Inline = ({
1564
1794
  );
1565
1795
 
1566
1796
  // src/Inset/Inset.tsx
1567
- import React37 from "react";
1568
- import { Box as Box21 } from "@marigold/system";
1569
- var Inset = ({ space, spaceX, spaceY, children }) => /* @__PURE__ */ React37.createElement(Box21, { css: space ? { p: space } : { px: spaceX, py: spaceY } }, children);
1797
+ import React39 from "react";
1798
+ import { Box as Box23 } from "@marigold/system";
1799
+ var Inset = ({ space, spaceX, spaceY, children }) => /* @__PURE__ */ React39.createElement(Box23, { css: space ? { p: space } : { px: spaceX, py: spaceY } }, children);
1570
1800
 
1571
1801
  // src/Link/Link.tsx
1572
- import React38, { forwardRef as forwardRef8 } from "react";
1802
+ import React40, { forwardRef as forwardRef8 } from "react";
1573
1803
  import { useLink } from "@react-aria/link";
1574
- import { useComponentStyles as useComponentStyles19 } from "@marigold/system";
1804
+ import { useComponentStyles as useComponentStyles20 } from "@marigold/system";
1575
1805
  import { useObjectRef as useObjectRef6 } from "@react-aria/utils";
1576
1806
  var Link = forwardRef8(
1577
1807
  ({
@@ -1593,9 +1823,9 @@ var Link = forwardRef8(
1593
1823
  },
1594
1824
  linkRef
1595
1825
  );
1596
- const styles = useComponentStyles19("Link", { variant, size });
1597
- return /* @__PURE__ */ React38.createElement(
1598
- Box,
1826
+ const styles = useComponentStyles20("Link", { variant, size });
1827
+ return /* @__PURE__ */ React40.createElement(
1828
+ Box4,
1599
1829
  {
1600
1830
  as,
1601
1831
  role: "link",
@@ -1610,10 +1840,10 @@ var Link = forwardRef8(
1610
1840
  );
1611
1841
 
1612
1842
  // src/List/List.tsx
1613
- import React40 from "react";
1843
+ import React42 from "react";
1614
1844
  import {
1615
- Box as Box23,
1616
- useComponentStyles as useComponentStyles20
1845
+ Box as Box25,
1846
+ useComponentStyles as useComponentStyles21
1617
1847
  } from "@marigold/system";
1618
1848
 
1619
1849
  // src/List/Context.ts
@@ -1622,11 +1852,11 @@ var ListContext = createContext5({});
1622
1852
  var useListContext = () => useContext5(ListContext);
1623
1853
 
1624
1854
  // src/List/ListItem.tsx
1625
- import React39 from "react";
1626
- import { Box as Box22 } from "@marigold/system";
1855
+ import React41 from "react";
1856
+ import { Box as Box24 } from "@marigold/system";
1627
1857
  var ListItem = ({ children, ...props }) => {
1628
1858
  const { styles } = useListContext();
1629
- return /* @__PURE__ */ React39.createElement(Box22, { ...props, as: "li", css: styles }, children);
1859
+ return /* @__PURE__ */ React41.createElement(Box24, { ...props, as: "li", css: styles }, children);
1630
1860
  };
1631
1861
 
1632
1862
  // src/List/List.tsx
@@ -1637,23 +1867,23 @@ var List = ({
1637
1867
  size,
1638
1868
  ...props
1639
1869
  }) => {
1640
- const styles = useComponentStyles20(
1870
+ const styles = useComponentStyles21(
1641
1871
  "List",
1642
1872
  { variant, size },
1643
1873
  { parts: ["ul", "ol", "item"] }
1644
1874
  );
1645
- return /* @__PURE__ */ React40.createElement(Box23, { ...props, as, css: styles[as] }, /* @__PURE__ */ React40.createElement(ListContext.Provider, { value: { styles: styles.item } }, children));
1875
+ return /* @__PURE__ */ React42.createElement(Box25, { ...props, as, css: styles[as] }, /* @__PURE__ */ React42.createElement(ListContext.Provider, { value: { styles: styles.item } }, children));
1646
1876
  };
1647
1877
  List.Item = ListItem;
1648
1878
 
1649
1879
  // src/Menu/Menu.tsx
1650
- import React43, { useRef as useRef10 } from "react";
1880
+ import React46, { useRef as useRef12 } from "react";
1651
1881
  import { useMenu } from "@react-aria/menu";
1652
- import { Item as Item2 } from "@react-stately/collections";
1653
- import { useTreeState } from "@react-stately/tree";
1882
+ import { Item as Item3, Section } from "@react-stately/collections";
1883
+ import { useTreeState as useTreeState2 } from "@react-stately/tree";
1654
1884
  import {
1655
- Box as Box25,
1656
- useComponentStyles as useComponentStyles21
1885
+ Box as Box28,
1886
+ useComponentStyles as useComponentStyles23
1657
1887
  } from "@marigold/system";
1658
1888
 
1659
1889
  // src/Menu/Context.ts
@@ -1665,7 +1895,7 @@ var MenuContext = createContext6({});
1665
1895
  var useMenuContext = () => useContext6(MenuContext);
1666
1896
 
1667
1897
  // src/Menu/MenuTrigger.tsx
1668
- import React41, { useRef as useRef8 } from "react";
1898
+ import React43, { useRef as useRef10 } from "react";
1669
1899
  import { useMenuTriggerState } from "@react-stately/menu";
1670
1900
  import { PressResponder as PressResponder2 } from "@react-aria/interactions";
1671
1901
  import { useMenuTrigger } from "@react-aria/menu";
@@ -1677,8 +1907,8 @@ var MenuTrigger = ({
1677
1907
  onOpenChange,
1678
1908
  children
1679
1909
  }) => {
1680
- const [menuTrigger, menu] = React41.Children.toArray(children);
1681
- const menuTriggerRef = useRef8(null);
1910
+ const [menuTrigger, menu] = React43.Children.toArray(children);
1911
+ const menuTriggerRef = useRef10(null);
1682
1912
  const menuRef = useObjectRef7();
1683
1913
  const state = useMenuTriggerState({
1684
1914
  isOpen: open,
@@ -1697,7 +1927,7 @@ var MenuTrigger = ({
1697
1927
  autoFocus: state.focusStrategy
1698
1928
  };
1699
1929
  const isSmallScreen = useResponsiveValue([true, false, false], 2);
1700
- return /* @__PURE__ */ React41.createElement(MenuContext.Provider, { value: menuContext }, /* @__PURE__ */ React41.createElement(
1930
+ return /* @__PURE__ */ React43.createElement(MenuContext.Provider, { value: menuContext }, /* @__PURE__ */ React43.createElement(
1701
1931
  PressResponder2,
1702
1932
  {
1703
1933
  ...menuTriggerProps,
@@ -1705,17 +1935,17 @@ var MenuTrigger = ({
1705
1935
  isPressed: state.isOpen
1706
1936
  },
1707
1937
  menuTrigger
1708
- ), isSmallScreen ? /* @__PURE__ */ React41.createElement(Tray, { state }, menu) : /* @__PURE__ */ React41.createElement(Popover, { triggerRef: menuTriggerRef, scrollRef: menuRef, state }, menu));
1938
+ ), isSmallScreen ? /* @__PURE__ */ React43.createElement(Tray, { state }, menu) : /* @__PURE__ */ React43.createElement(Popover, { triggerRef: menuTriggerRef, scrollRef: menuRef, state }, menu));
1709
1939
  };
1710
1940
 
1711
1941
  // src/Menu/MenuItem.tsx
1712
- import React42, { useRef as useRef9 } from "react";
1713
- import { useFocusRing as useFocusRing4 } from "@react-aria/focus";
1942
+ import React44, { useRef as useRef11 } from "react";
1943
+ import { useFocusRing as useFocusRing5 } from "@react-aria/focus";
1714
1944
  import { useMenuItem } from "@react-aria/menu";
1715
- import { mergeProps as mergeProps5 } from "@react-aria/utils";
1716
- import { Box as Box24, useStateProps as useStateProps7 } from "@marigold/system";
1945
+ import { mergeProps as mergeProps7 } from "@react-aria/utils";
1946
+ import { Box as Box26, useStateProps as useStateProps8 } from "@marigold/system";
1717
1947
  var MenuItem = ({ item, state, onAction, css }) => {
1718
- const ref = useRef9(null);
1948
+ const ref = useRef11(null);
1719
1949
  const { onClose } = useMenuContext();
1720
1950
  const { menuItemProps } = useMenuItem(
1721
1951
  {
@@ -1726,13 +1956,13 @@ var MenuItem = ({ item, state, onAction, css }) => {
1726
1956
  state,
1727
1957
  ref
1728
1958
  );
1729
- const { isFocusVisible, focusProps } = useFocusRing4();
1730
- const stateProps = useStateProps7({
1959
+ const { isFocusVisible, focusProps } = useFocusRing5();
1960
+ const stateProps = useStateProps8({
1731
1961
  focus: isFocusVisible
1732
1962
  });
1733
1963
  const { onPointerUp, ...props } = menuItemProps;
1734
- return /* @__PURE__ */ React42.createElement(
1735
- Box24,
1964
+ return /* @__PURE__ */ React44.createElement(
1965
+ Box26,
1736
1966
  {
1737
1967
  as: "li",
1738
1968
  ref,
@@ -1742,7 +1972,7 @@ var MenuItem = ({ item, state, onAction, css }) => {
1742
1972
  }
1743
1973
  },
1744
1974
  css,
1745
- ...mergeProps5(props, { onPointerDown: onPointerUp }, focusProps),
1975
+ ...mergeProps7(props, { onPointerDown: onPointerUp }, focusProps),
1746
1976
  ...stateProps
1747
1977
  },
1748
1978
  item.rendered
@@ -1751,20 +1981,92 @@ var MenuItem = ({ item, state, onAction, css }) => {
1751
1981
 
1752
1982
  // src/Menu/Menu.tsx
1753
1983
  import { useSyncRef } from "@react-aria/utils";
1984
+
1985
+ // src/Menu/MenuSection.tsx
1986
+ import React45 from "react";
1987
+ import { useMenuSection } from "@react-aria/menu";
1988
+ import { useSeparator as useSeparator2 } from "@react-aria/separator";
1989
+ import { Box as Box27, useComponentStyles as useComponentStyles22 } from "@marigold/system";
1990
+ var MenuSection = ({
1991
+ onAction,
1992
+ item,
1993
+ state,
1994
+ css
1995
+ }) => {
1996
+ let { itemProps, headingProps, groupProps } = useMenuSection({
1997
+ heading: item.rendered,
1998
+ "aria-label": item["aria-label"]
1999
+ });
2000
+ let { separatorProps } = useSeparator2({
2001
+ elementType: "li"
2002
+ });
2003
+ const styles = useComponentStyles22("Menu", {}, { parts: ["item"] });
2004
+ return /* @__PURE__ */ React45.createElement(React45.Fragment, null, item.key !== state.collection.getFirstKey() && /* @__PURE__ */ React45.createElement(
2005
+ Box27,
2006
+ {
2007
+ as: "li",
2008
+ ...separatorProps,
2009
+ __baseCSS: {
2010
+ borderTop: "1px solid gray",
2011
+ margin: "2px 5px"
2012
+ }
2013
+ }
2014
+ ), /* @__PURE__ */ React45.createElement(Box27, { as: "li", ...itemProps }, item.rendered && /* @__PURE__ */ React45.createElement(
2015
+ Box27,
2016
+ {
2017
+ as: "span",
2018
+ ...headingProps,
2019
+ __baseCSS: {
2020
+ fontWeight: "normal",
2021
+ padding: "4px 16px",
2022
+ fontSize: "xxsmall",
2023
+ color: "gray50"
2024
+ }
2025
+ },
2026
+ item.rendered
2027
+ ), /* @__PURE__ */ React45.createElement(
2028
+ Box27,
2029
+ {
2030
+ as: "ul",
2031
+ ...groupProps,
2032
+ style: {
2033
+ padding: 0,
2034
+ listStyle: "none"
2035
+ },
2036
+ css
2037
+ },
2038
+ [...item.childNodes].map((node) => {
2039
+ let item2 = /* @__PURE__ */ React45.createElement(
2040
+ MenuItem,
2041
+ {
2042
+ key: node.key,
2043
+ item: node,
2044
+ state,
2045
+ onAction,
2046
+ css: styles.item
2047
+ }
2048
+ );
2049
+ return item2;
2050
+ })
2051
+ )));
2052
+ };
2053
+ var MenuSection_default = MenuSection;
2054
+
2055
+ // src/Menu/Menu.tsx
1754
2056
  var Menu = ({ variant, size, ...props }) => {
1755
2057
  const { ref: scrollRef, ...menuContext } = useMenuContext();
1756
2058
  const ownProps = { ...props, ...menuContext };
1757
- const ref = useRef10(null);
1758
- const state = useTreeState({ ...ownProps, selectionMode: "none" });
2059
+ const ref = useRef12(null);
2060
+ const state = useTreeState2({ ...ownProps, selectionMode: "none" });
1759
2061
  const { menuProps } = useMenu(ownProps, state, ref);
1760
2062
  useSyncRef({ ref: scrollRef }, ref);
1761
- const styles = useComponentStyles21(
2063
+ const styles = useComponentStyles23(
1762
2064
  "Menu",
1763
2065
  { variant, size },
1764
2066
  { parts: ["container", "item"] }
1765
2067
  );
1766
- return /* @__PURE__ */ React43.createElement(
1767
- Box25,
2068
+ return /* @__PURE__ */ React46.createElement(
2069
+ Box28,
1768
2070
  {
1769
2071
  as: "ul",
1770
2072
  ref,
@@ -1776,31 +2078,45 @@ var Menu = ({ variant, size, ...props }) => {
1776
2078
  css: styles.container,
1777
2079
  ...menuProps
1778
2080
  },
1779
- [...state.collection].map((item) => /* @__PURE__ */ React43.createElement(
1780
- MenuItem,
1781
- {
1782
- key: item.key,
1783
- item,
1784
- state,
1785
- onAction: props.onAction,
1786
- css: styles.item
2081
+ [...state.collection].map((item) => {
2082
+ if (item.type === "section") {
2083
+ return /* @__PURE__ */ React46.createElement(
2084
+ MenuSection_default,
2085
+ {
2086
+ key: item.key,
2087
+ item,
2088
+ state,
2089
+ onAction: props.onAction
2090
+ }
2091
+ );
1787
2092
  }
1788
- ))
2093
+ return /* @__PURE__ */ React46.createElement(
2094
+ MenuItem,
2095
+ {
2096
+ key: item.key,
2097
+ item,
2098
+ state,
2099
+ onAction: props.onAction,
2100
+ css: styles.item
2101
+ }
2102
+ );
2103
+ })
1789
2104
  );
1790
2105
  };
1791
2106
  Menu.Trigger = MenuTrigger;
1792
- Menu.Item = Item2;
2107
+ Menu.Item = Item3;
2108
+ Menu.Section = Section;
1793
2109
 
1794
2110
  // src/Menu/ActionMenu.tsx
1795
- import React44 from "react";
1796
- import { SVG as SVG4 } from "@marigold/system";
2111
+ import React47 from "react";
2112
+ import { SVG as SVG5 } from "@marigold/system";
1797
2113
  var ActionMenu = (props) => {
1798
- return /* @__PURE__ */ React44.createElement(Menu.Trigger, null, /* @__PURE__ */ React44.createElement(Button, { variant: "menu", size: "small" }, /* @__PURE__ */ React44.createElement(SVG4, { viewBox: "0 0 24 24" }, /* @__PURE__ */ React44.createElement("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" }))), /* @__PURE__ */ React44.createElement(Menu, { ...props }));
2114
+ return /* @__PURE__ */ React47.createElement(Menu.Trigger, null, /* @__PURE__ */ React47.createElement(Button, { variant: "menu", size: "small" }, /* @__PURE__ */ React47.createElement(SVG5, { viewBox: "0 0 24 24" }, /* @__PURE__ */ React47.createElement("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" }))), /* @__PURE__ */ React47.createElement(Menu, { ...props }));
1799
2115
  };
1800
2116
 
1801
2117
  // src/Message/Message.tsx
1802
- import React45 from "react";
1803
- import { useComponentStyles as useComponentStyles22 } from "@marigold/system";
2118
+ import React48 from "react";
2119
+ import { useComponentStyles as useComponentStyles24 } from "@marigold/system";
1804
2120
  var Message = ({
1805
2121
  messageTitle,
1806
2122
  variant = "info",
@@ -1808,7 +2124,7 @@ var Message = ({
1808
2124
  children,
1809
2125
  ...props
1810
2126
  }) => {
1811
- const styles = useComponentStyles22(
2127
+ const styles = useComponentStyles24(
1812
2128
  "Message",
1813
2129
  {
1814
2130
  variant,
@@ -1816,53 +2132,53 @@ var Message = ({
1816
2132
  },
1817
2133
  { parts: ["container", "icon", "title", "content"] }
1818
2134
  );
1819
- var icon = /* @__PURE__ */ React45.createElement("svg", { viewBox: "0 0 24 24" }, /* @__PURE__ */ React45.createElement("path", { d: "M12 2.85938C6.95437 2.85938 2.85938 6.95437 2.85938 12C2.85938 17.0456 6.95437 21.1406 12 21.1406C17.0456 21.1406 21.1406 17.0456 21.1406 12C21.1406 6.95437 17.0456 2.85938 12 2.85938ZM12.7875 15.9374H11.2125V11.2124H12.7875V15.9374ZM12.7875 9.6375H11.2125V8.0625H12.7875V9.6375Z" }));
2135
+ var icon = /* @__PURE__ */ React48.createElement("svg", { viewBox: "0 0 24 24" }, /* @__PURE__ */ React48.createElement("path", { d: "M12 2.85938C6.95437 2.85938 2.85938 6.95437 2.85938 12C2.85938 17.0456 6.95437 21.1406 12 21.1406C17.0456 21.1406 21.1406 17.0456 21.1406 12C21.1406 6.95437 17.0456 2.85938 12 2.85938ZM12.7875 15.9374H11.2125V11.2124H12.7875V15.9374ZM12.7875 9.6375H11.2125V8.0625H12.7875V9.6375Z" }));
1820
2136
  if (variant === "warning") {
1821
- icon = /* @__PURE__ */ React45.createElement("svg", { viewBox: "0 0 24 24" }, /* @__PURE__ */ React45.createElement("path", { d: "M19.2 3H4.8C3.81 3 3.009 3.81 3.009 4.8L3 21L6.6 17.4H19.2C20.19 17.4 21 16.59 21 15.6V4.8C21 3.81 20.19 3 19.2 3ZM12.9 13.8H11.1V12H12.9V13.8ZM12.9 10.2001H11.1V6.60008H12.9V10.2001Z" }));
2137
+ icon = /* @__PURE__ */ React48.createElement("svg", { viewBox: "0 0 24 24" }, /* @__PURE__ */ React48.createElement("path", { d: "M19.2 3H4.8C3.81 3 3.009 3.81 3.009 4.8L3 21L6.6 17.4H19.2C20.19 17.4 21 16.59 21 15.6V4.8C21 3.81 20.19 3 19.2 3ZM12.9 13.8H11.1V12H12.9V13.8ZM12.9 10.2001H11.1V6.60008H12.9V10.2001Z" }));
1822
2138
  }
1823
2139
  if (variant === "error") {
1824
- icon = /* @__PURE__ */ React45.createElement("svg", { viewBox: "0 0 24 24" }, /* @__PURE__ */ React45.createElement("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" }));
2140
+ icon = /* @__PURE__ */ React48.createElement("svg", { viewBox: "0 0 24 24" }, /* @__PURE__ */ React48.createElement("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" }));
1825
2141
  }
1826
- return /* @__PURE__ */ React45.createElement(Box, { css: styles.container, ...props }, /* @__PURE__ */ React45.createElement(Box, { __baseCSS: { display: "flex", alignItems: "top", gap: 4 } }, /* @__PURE__ */ React45.createElement(
1827
- Box,
2142
+ return /* @__PURE__ */ React48.createElement(Box4, { css: styles.container, ...props }, /* @__PURE__ */ React48.createElement(Box4, { __baseCSS: { display: "flex", alignItems: "top", gap: 4 } }, /* @__PURE__ */ React48.createElement(
2143
+ Box4,
1828
2144
  {
1829
2145
  role: "presentation",
1830
2146
  __baseCSS: { flex: "0 0 16px" },
1831
2147
  css: styles.icon
1832
2148
  },
1833
2149
  icon
1834
- ), /* @__PURE__ */ React45.createElement(Box, { css: styles.title }, messageTitle)), /* @__PURE__ */ React45.createElement(Box, { css: styles.content }, children));
2150
+ ), /* @__PURE__ */ React48.createElement(Box4, { css: styles.title }, messageTitle)), /* @__PURE__ */ React48.createElement(Box4, { css: styles.content }, children));
1835
2151
  };
1836
2152
 
1837
2153
  // src/NumberField/NumberField.tsx
1838
- import React47, { forwardRef as forwardRef9 } from "react";
1839
- import { useFocusRing as useFocusRing5 } from "@react-aria/focus";
2154
+ import React50, { forwardRef as forwardRef9 } from "react";
2155
+ import { useFocusRing as useFocusRing6 } from "@react-aria/focus";
1840
2156
  import { useHover as useHover5 } from "@react-aria/interactions";
1841
2157
  import { useLocale } from "@react-aria/i18n";
1842
2158
  import { useNumberField } from "@react-aria/numberfield";
1843
- import { mergeProps as mergeProps7, useObjectRef as useObjectRef8 } from "@react-aria/utils";
2159
+ import { mergeProps as mergeProps9, useObjectRef as useObjectRef8 } from "@react-aria/utils";
1844
2160
  import { useNumberFieldState } from "@react-stately/numberfield";
1845
2161
  import {
1846
- Box as Box27,
1847
- useComponentStyles as useComponentStyles23,
1848
- useStateProps as useStateProps9
2162
+ Box as Box30,
2163
+ useComponentStyles as useComponentStyles25,
2164
+ useStateProps as useStateProps10
1849
2165
  } from "@marigold/system";
1850
2166
 
1851
2167
  // src/NumberField/StepButton.tsx
1852
- import React46, { useRef as useRef11 } from "react";
1853
- import { useButton as useButton4 } from "@react-aria/button";
2168
+ import React49, { useRef as useRef13 } from "react";
2169
+ import { useButton as useButton5 } from "@react-aria/button";
1854
2170
  import { useHover as useHover4 } from "@react-aria/interactions";
1855
- import { mergeProps as mergeProps6 } from "@react-aria/utils";
1856
- import { Box as Box26, useStateProps as useStateProps8 } from "@marigold/system";
1857
- var Plus = () => /* @__PURE__ */ React46.createElement(
1858
- Box26,
2171
+ import { mergeProps as mergeProps8 } from "@react-aria/utils";
2172
+ import { Box as Box29, useStateProps as useStateProps9 } from "@marigold/system";
2173
+ var Plus = () => /* @__PURE__ */ React49.createElement(
2174
+ Box29,
1859
2175
  {
1860
2176
  as: "svg",
1861
2177
  __baseCSS: { width: 16, height: 16 },
1862
2178
  viewBox: "0 0 20 20",
1863
2179
  fill: "currentColor"
1864
2180
  },
1865
- /* @__PURE__ */ React46.createElement(
2181
+ /* @__PURE__ */ React49.createElement(
1866
2182
  "path",
1867
2183
  {
1868
2184
  fillRule: "evenodd",
@@ -1871,15 +2187,15 @@ var Plus = () => /* @__PURE__ */ React46.createElement(
1871
2187
  }
1872
2188
  )
1873
2189
  );
1874
- var Minus = () => /* @__PURE__ */ React46.createElement(
1875
- Box26,
2190
+ var Minus = () => /* @__PURE__ */ React49.createElement(
2191
+ Box29,
1876
2192
  {
1877
2193
  as: "svg",
1878
2194
  __baseCSS: { width: 16, height: 16 },
1879
2195
  viewBox: "0 0 20 20",
1880
2196
  fill: "currentColor"
1881
2197
  },
1882
- /* @__PURE__ */ React46.createElement(
2198
+ /* @__PURE__ */ React49.createElement(
1883
2199
  "path",
1884
2200
  {
1885
2201
  fillRule: "evenodd",
@@ -1889,20 +2205,20 @@ var Minus = () => /* @__PURE__ */ React46.createElement(
1889
2205
  )
1890
2206
  );
1891
2207
  var StepButton = ({ direction, css, ...props }) => {
1892
- const ref = useRef11(null);
1893
- const { buttonProps, isPressed } = useButton4(
2208
+ const ref = useRef13(null);
2209
+ const { buttonProps, isPressed } = useButton5(
1894
2210
  { ...props, elementType: "div" },
1895
2211
  ref
1896
2212
  );
1897
2213
  const { hoverProps, isHovered } = useHover4(props);
1898
- const stateProps = useStateProps8({
2214
+ const stateProps = useStateProps9({
1899
2215
  active: isPressed,
1900
2216
  hover: isHovered,
1901
2217
  disabled: props.isDisabled
1902
2218
  });
1903
2219
  const Icon3 = direction === "up" ? Plus : Minus;
1904
- return /* @__PURE__ */ React46.createElement(
1905
- Box26,
2220
+ return /* @__PURE__ */ React49.createElement(
2221
+ Box29,
1906
2222
  {
1907
2223
  __baseCSS: {
1908
2224
  display: "flex",
@@ -1911,10 +2227,10 @@ var StepButton = ({ direction, css, ...props }) => {
1911
2227
  cursor: props.isDisabled ? "not-allowed" : "pointer"
1912
2228
  },
1913
2229
  css,
1914
- ...mergeProps6(buttonProps, hoverProps),
2230
+ ...mergeProps8(buttonProps, hoverProps),
1915
2231
  ...stateProps
1916
2232
  },
1917
- /* @__PURE__ */ React46.createElement(Icon3, null)
2233
+ /* @__PURE__ */ React49.createElement(Icon3, null)
1918
2234
  );
1919
2235
  };
1920
2236
 
@@ -1952,24 +2268,24 @@ var NumberField = forwardRef9(
1952
2268
  decrementButtonProps
1953
2269
  } = useNumberField(props, state, inputRef);
1954
2270
  const { hoverProps, isHovered } = useHover5({ isDisabled: disabled });
1955
- const { focusProps, isFocused } = useFocusRing5({
2271
+ const { focusProps, isFocused } = useFocusRing6({
1956
2272
  within: true,
1957
2273
  isTextInput: true,
1958
2274
  autoFocus: props.autoFocus
1959
2275
  });
1960
- const styles = useComponentStyles23(
2276
+ const styles = useComponentStyles25(
1961
2277
  "NumberField",
1962
2278
  { variant, size },
1963
2279
  { parts: ["group", "stepper"] }
1964
2280
  );
1965
- const stateProps = useStateProps9({
2281
+ const stateProps = useStateProps10({
1966
2282
  hover: isHovered,
1967
2283
  focus: isFocused,
1968
2284
  disabled,
1969
2285
  readOnly,
1970
2286
  error
1971
2287
  });
1972
- return /* @__PURE__ */ React47.createElement(
2288
+ return /* @__PURE__ */ React50.createElement(
1973
2289
  FieldBase,
1974
2290
  {
1975
2291
  label: props.label,
@@ -1985,8 +2301,8 @@ var NumberField = forwardRef9(
1985
2301
  size,
1986
2302
  width
1987
2303
  },
1988
- /* @__PURE__ */ React47.createElement(
1989
- Box27,
2304
+ /* @__PURE__ */ React50.createElement(
2305
+ Box30,
1990
2306
  {
1991
2307
  "data-group": true,
1992
2308
  __baseCSS: {
@@ -1999,10 +2315,10 @@ var NumberField = forwardRef9(
1999
2315
  }
2000
2316
  },
2001
2317
  css: styles.group,
2002
- ...mergeProps7(groupProps, focusProps, hoverProps),
2318
+ ...mergeProps9(groupProps, focusProps, hoverProps),
2003
2319
  ...stateProps
2004
2320
  },
2005
- showStepper && /* @__PURE__ */ React47.createElement(
2321
+ showStepper && /* @__PURE__ */ React50.createElement(
2006
2322
  StepButton,
2007
2323
  {
2008
2324
  direction: "down",
@@ -2010,7 +2326,7 @@ var NumberField = forwardRef9(
2010
2326
  ...decrementButtonProps
2011
2327
  }
2012
2328
  ),
2013
- /* @__PURE__ */ React47.createElement(
2329
+ /* @__PURE__ */ React50.createElement(
2014
2330
  Input,
2015
2331
  {
2016
2332
  ref: inputRef,
@@ -2020,7 +2336,7 @@ var NumberField = forwardRef9(
2020
2336
  ...stateProps
2021
2337
  }
2022
2338
  ),
2023
- showStepper && /* @__PURE__ */ React47.createElement(
2339
+ showStepper && /* @__PURE__ */ React50.createElement(
2024
2340
  StepButton,
2025
2341
  {
2026
2342
  direction: "up",
@@ -2038,7 +2354,7 @@ import { useTheme as useTheme2, ThemeProvider as ThemeProvider2 } from "@marigol
2038
2354
  import { SSRProvider } from "@react-aria/ssr";
2039
2355
 
2040
2356
  // src/Provider/MarigoldProvider.tsx
2041
- import React48 from "react";
2357
+ import React51 from "react";
2042
2358
  import { OverlayProvider } from "@react-aria/overlays";
2043
2359
  import {
2044
2360
  Global,
@@ -2061,27 +2377,27 @@ function MarigoldProvider({
2061
2377
  Nested themes with a "root" property must specify a "selector" to prevent accidentally overriding global CSS`
2062
2378
  );
2063
2379
  }
2064
- return /* @__PURE__ */ React48.createElement(ThemeProvider, { theme }, /* @__PURE__ */ React48.createElement(
2380
+ return /* @__PURE__ */ React51.createElement(ThemeProvider, { theme }, /* @__PURE__ */ React51.createElement(
2065
2381
  Global,
2066
2382
  {
2067
2383
  normalizeDocument: isTopLevel && normalizeDocument,
2068
2384
  selector
2069
2385
  }
2070
- ), isTopLevel ? /* @__PURE__ */ React48.createElement(OverlayProvider, null, children) : children);
2386
+ ), isTopLevel ? /* @__PURE__ */ React51.createElement(OverlayProvider, null, children) : children);
2071
2387
  }
2072
2388
 
2073
2389
  // src/Radio/Radio.tsx
2074
- import React50, {
2390
+ import React53, {
2075
2391
  forwardRef as forwardRef10
2076
2392
  } from "react";
2077
2393
  import { useHover as useHover6 } from "@react-aria/interactions";
2078
- import { useFocusRing as useFocusRing6 } from "@react-aria/focus";
2394
+ import { useFocusRing as useFocusRing7 } from "@react-aria/focus";
2079
2395
  import { useRadio } from "@react-aria/radio";
2080
- import { mergeProps as mergeProps8, useObjectRef as useObjectRef9 } from "@react-aria/utils";
2396
+ import { mergeProps as mergeProps10, useObjectRef as useObjectRef9 } from "@react-aria/utils";
2081
2397
  import {
2082
- Box as Box29,
2083
- useComponentStyles as useComponentStyles24,
2084
- useStateProps as useStateProps11
2398
+ Box as Box32,
2399
+ useComponentStyles as useComponentStyles26,
2400
+ useStateProps as useStateProps12
2085
2401
  } from "@marigold/system";
2086
2402
 
2087
2403
  // src/Radio/Context.ts
@@ -2092,10 +2408,10 @@ var RadioGroupContext = createContext7(
2092
2408
  var useRadioGroupContext = () => useContext7(RadioGroupContext);
2093
2409
 
2094
2410
  // src/Radio/RadioGroup.tsx
2095
- import React49 from "react";
2411
+ import React52 from "react";
2096
2412
  import { useRadioGroup } from "@react-aria/radio";
2097
2413
  import { useRadioGroupState } from "@react-stately/radio";
2098
- import { Box as Box28, useStateProps as useStateProps10 } from "@marigold/system";
2414
+ import { Box as Box31, useStateProps as useStateProps11 } from "@marigold/system";
2099
2415
  var RadioGroup = ({
2100
2416
  children,
2101
2417
  orientation = "vertical",
@@ -2115,12 +2431,12 @@ var RadioGroup = ({
2115
2431
  };
2116
2432
  const state = useRadioGroupState(props);
2117
2433
  const { radioGroupProps, labelProps, errorMessageProps, descriptionProps } = useRadioGroup(props, state);
2118
- const stateProps = useStateProps10({
2434
+ const stateProps = useStateProps11({
2119
2435
  disabled,
2120
2436
  readOnly,
2121
2437
  error
2122
2438
  });
2123
- return /* @__PURE__ */ React49.createElement(
2439
+ return /* @__PURE__ */ React52.createElement(
2124
2440
  FieldBase,
2125
2441
  {
2126
2442
  width,
@@ -2136,8 +2452,8 @@ var RadioGroup = ({
2136
2452
  required,
2137
2453
  ...radioGroupProps
2138
2454
  },
2139
- /* @__PURE__ */ React49.createElement(
2140
- Box28,
2455
+ /* @__PURE__ */ React52.createElement(
2456
+ Box31,
2141
2457
  {
2142
2458
  role: "presentation",
2143
2459
  "data-orientation": orientation,
@@ -2148,15 +2464,15 @@ var RadioGroup = ({
2148
2464
  gap: orientation === "vertical" ? "0.5ch" : "1.5ch"
2149
2465
  }
2150
2466
  },
2151
- /* @__PURE__ */ React49.createElement(RadioGroupContext.Provider, { value: { width, error, state } }, children)
2467
+ /* @__PURE__ */ React52.createElement(RadioGroupContext.Provider, { value: { width, error, state } }, children)
2152
2468
  )
2153
2469
  );
2154
2470
  };
2155
2471
 
2156
2472
  // src/Radio/Radio.tsx
2157
- var Dot = () => /* @__PURE__ */ React50.createElement("svg", { viewBox: "0 0 6 6" }, /* @__PURE__ */ React50.createElement("circle", { fill: "currentColor", cx: "3", cy: "3", r: "3" }));
2158
- var Icon2 = ({ checked, css, ...props }) => /* @__PURE__ */ React50.createElement(
2159
- Box29,
2473
+ var Dot = () => /* @__PURE__ */ React53.createElement("svg", { viewBox: "0 0 6 6" }, /* @__PURE__ */ React53.createElement("circle", { fill: "currentColor", cx: "3", cy: "3", r: "3" }));
2474
+ var Icon2 = ({ checked, css, ...props }) => /* @__PURE__ */ React53.createElement(
2475
+ Box32,
2160
2476
  {
2161
2477
  "aria-hidden": "true",
2162
2478
  __baseCSS: {
@@ -2173,7 +2489,7 @@ var Icon2 = ({ checked, css, ...props }) => /* @__PURE__ */ React50.createElemen
2173
2489
  css,
2174
2490
  ...props
2175
2491
  },
2176
- checked ? /* @__PURE__ */ React50.createElement(Dot, null) : null
2492
+ checked ? /* @__PURE__ */ React53.createElement(Dot, null) : null
2177
2493
  );
2178
2494
  var Radio = forwardRef10(
2179
2495
  ({ width, disabled, ...props }, ref) => {
@@ -2190,14 +2506,14 @@ var Radio = forwardRef10(
2190
2506
  state,
2191
2507
  inputRef
2192
2508
  );
2193
- const styles = useComponentStyles24(
2509
+ const styles = useComponentStyles26(
2194
2510
  "Radio",
2195
2511
  { variant: variant || props.variant, size: size || props.size },
2196
2512
  { parts: ["container", "label", "radio"] }
2197
2513
  );
2198
2514
  const { hoverProps, isHovered } = useHover6({ isDisabled: disabled });
2199
- const { isFocusVisible, focusProps } = useFocusRing6();
2200
- const stateProps = useStateProps11({
2515
+ const { isFocusVisible, focusProps } = useFocusRing7();
2516
+ const stateProps = useStateProps12({
2201
2517
  hover: isHovered,
2202
2518
  focus: isFocusVisible,
2203
2519
  checked: inputProps.checked,
@@ -2205,8 +2521,8 @@ var Radio = forwardRef10(
2205
2521
  readOnly: props.readOnly,
2206
2522
  error
2207
2523
  });
2208
- return /* @__PURE__ */ React50.createElement(
2209
- Box29,
2524
+ return /* @__PURE__ */ React53.createElement(
2525
+ Box32,
2210
2526
  {
2211
2527
  as: "label",
2212
2528
  __baseCSS: {
@@ -2217,10 +2533,10 @@ var Radio = forwardRef10(
2217
2533
  width: width || groupWidth || "100%"
2218
2534
  },
2219
2535
  css: styles.container,
2220
- ...mergeProps8(hoverProps, stateProps)
2536
+ ...mergeProps10(hoverProps, stateProps)
2221
2537
  },
2222
- /* @__PURE__ */ React50.createElement(
2223
- Box29,
2538
+ /* @__PURE__ */ React53.createElement(
2539
+ Box32,
2224
2540
  {
2225
2541
  as: "input",
2226
2542
  ref: inputRef,
@@ -2234,33 +2550,33 @@ var Radio = forwardRef10(
2234
2550
  opacity: 1e-4,
2235
2551
  cursor: inputProps.disabled ? "not-allowed" : "pointer"
2236
2552
  },
2237
- ...mergeProps8(inputProps, focusProps)
2553
+ ...mergeProps10(inputProps, focusProps)
2238
2554
  }
2239
2555
  ),
2240
- /* @__PURE__ */ React50.createElement(Icon2, { checked: inputProps.checked, css: styles.radio, ...stateProps }),
2241
- /* @__PURE__ */ React50.createElement(Box29, { css: styles.label, ...stateProps }, props.children)
2556
+ /* @__PURE__ */ React53.createElement(Icon2, { checked: inputProps.checked, css: styles.radio, ...stateProps }),
2557
+ /* @__PURE__ */ React53.createElement(Box32, { css: styles.label, ...stateProps }, props.children)
2242
2558
  );
2243
2559
  }
2244
2560
  );
2245
2561
  Radio.Group = RadioGroup;
2246
2562
 
2247
2563
  // src/Select/Select.tsx
2248
- import React51, {
2564
+ import React54, {
2249
2565
  forwardRef as forwardRef11,
2250
- useRef as useRef12
2566
+ useRef as useRef14
2251
2567
  } from "react";
2252
- import { useButton as useButton5 } from "@react-aria/button";
2253
- import { useFocusRing as useFocusRing7 } from "@react-aria/focus";
2568
+ import { useButton as useButton6 } from "@react-aria/button";
2569
+ import { useFocusRing as useFocusRing8 } from "@react-aria/focus";
2254
2570
  import { useLocalizedStringFormatter } from "@react-aria/i18n";
2255
2571
  import { HiddenSelect, useSelect } from "@react-aria/select";
2256
2572
  import { useSelectState } from "@react-stately/select";
2257
- import { Item as Item3, Section } from "@react-stately/collections";
2258
- import { mergeProps as mergeProps9, useObjectRef as useObjectRef10 } from "@react-aria/utils";
2573
+ import { Item as Item4, Section as Section2 } from "@react-stately/collections";
2574
+ import { mergeProps as mergeProps11, useObjectRef as useObjectRef10 } from "@react-aria/utils";
2259
2575
  import {
2260
- Box as Box30,
2261
- useComponentStyles as useComponentStyles25,
2576
+ Box as Box33,
2577
+ useComponentStyles as useComponentStyles27,
2262
2578
  useResponsiveValue as useResponsiveValue2,
2263
- useStateProps as useStateProps12
2579
+ useStateProps as useStateProps13
2264
2580
  } from "@marigold/system";
2265
2581
 
2266
2582
  // src/Select/intl.ts
@@ -2274,8 +2590,8 @@ var messages = {
2274
2590
  };
2275
2591
 
2276
2592
  // src/Select/Select.tsx
2277
- var Chevron = ({ css }) => /* @__PURE__ */ React51.createElement(
2278
- Box30,
2593
+ var Chevron = ({ css }) => /* @__PURE__ */ React54.createElement(
2594
+ Box33,
2279
2595
  {
2280
2596
  as: "svg",
2281
2597
  __baseCSS: { width: 16, height: 16, fill: "none" },
@@ -2284,7 +2600,7 @@ var Chevron = ({ css }) => /* @__PURE__ */ React51.createElement(
2284
2600
  stroke: "currentColor",
2285
2601
  strokeWidth: 2
2286
2602
  },
2287
- /* @__PURE__ */ React51.createElement("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M19 9l-7 7-7-7" })
2603
+ /* @__PURE__ */ React54.createElement("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M19 9l-7 7-7-7" })
2288
2604
  );
2289
2605
  var Select = forwardRef11(
2290
2606
  ({
@@ -2310,7 +2626,7 @@ var Select = forwardRef11(
2310
2626
  };
2311
2627
  const state = useSelectState(props);
2312
2628
  const buttonRef = useObjectRef10(ref);
2313
- const listboxRef = useRef12(null);
2629
+ const listboxRef = useRef14(null);
2314
2630
  const isSmallScreen = useResponsiveValue2([true, false, false], 2);
2315
2631
  const {
2316
2632
  labelProps,
@@ -2320,23 +2636,23 @@ var Select = forwardRef11(
2320
2636
  descriptionProps,
2321
2637
  errorMessageProps
2322
2638
  } = useSelect(props, state, buttonRef);
2323
- const { buttonProps } = useButton5(
2639
+ const { buttonProps } = useButton6(
2324
2640
  { isDisabled: disabled, ...triggerProps },
2325
2641
  buttonRef
2326
2642
  );
2327
- const { focusProps, isFocusVisible } = useFocusRing7();
2328
- const styles = useComponentStyles25(
2643
+ const { focusProps, isFocusVisible } = useFocusRing8();
2644
+ const styles = useComponentStyles27(
2329
2645
  "Select",
2330
2646
  { variant, size },
2331
2647
  { parts: ["container", "button", "icon"] }
2332
2648
  );
2333
- const stateProps = useStateProps12({
2649
+ const stateProps = useStateProps13({
2334
2650
  disabled,
2335
2651
  error,
2336
2652
  focusVisible: isFocusVisible,
2337
2653
  expanded: state.isOpen
2338
2654
  });
2339
- return /* @__PURE__ */ React51.createElement(
2655
+ return /* @__PURE__ */ React54.createElement(
2340
2656
  FieldBase,
2341
2657
  {
2342
2658
  variant,
@@ -2353,7 +2669,7 @@ var Select = forwardRef11(
2353
2669
  disabled,
2354
2670
  required
2355
2671
  },
2356
- /* @__PURE__ */ React51.createElement(
2672
+ /* @__PURE__ */ React54.createElement(
2357
2673
  HiddenSelect,
2358
2674
  {
2359
2675
  state,
@@ -2363,8 +2679,8 @@ var Select = forwardRef11(
2363
2679
  isDisabled: disabled
2364
2680
  }
2365
2681
  ),
2366
- /* @__PURE__ */ React51.createElement(
2367
- Box30,
2682
+ /* @__PURE__ */ React54.createElement(
2683
+ Box33,
2368
2684
  {
2369
2685
  as: "button",
2370
2686
  __baseCSS: {
@@ -2376,11 +2692,11 @@ var Select = forwardRef11(
2376
2692
  },
2377
2693
  css: styles.button,
2378
2694
  ref: buttonRef,
2379
- ...mergeProps9(buttonProps, focusProps),
2695
+ ...mergeProps11(buttonProps, focusProps),
2380
2696
  ...stateProps
2381
2697
  },
2382
- /* @__PURE__ */ React51.createElement(
2383
- Box30,
2698
+ /* @__PURE__ */ React54.createElement(
2699
+ Box33,
2384
2700
  {
2385
2701
  css: {
2386
2702
  overflow: "hidden",
@@ -2390,9 +2706,9 @@ var Select = forwardRef11(
2390
2706
  },
2391
2707
  state.selectedItem ? state.selectedItem.rendered : props.placeholder
2392
2708
  ),
2393
- /* @__PURE__ */ React51.createElement(Chevron, { css: styles.icon })
2709
+ /* @__PURE__ */ React54.createElement(Chevron, { css: styles.icon })
2394
2710
  ),
2395
- isSmallScreen ? /* @__PURE__ */ React51.createElement(Tray, { state }, /* @__PURE__ */ React51.createElement(
2711
+ isSmallScreen ? /* @__PURE__ */ React54.createElement(Tray, { state }, /* @__PURE__ */ React54.createElement(
2396
2712
  ListBox,
2397
2713
  {
2398
2714
  ref: listboxRef,
@@ -2401,7 +2717,7 @@ var Select = forwardRef11(
2401
2717
  size,
2402
2718
  ...menuProps
2403
2719
  }
2404
- )) : /* @__PURE__ */ React51.createElement(Popover, { state, triggerRef: buttonRef, scrollRef: listboxRef }, /* @__PURE__ */ React51.createElement(
2720
+ )) : /* @__PURE__ */ React54.createElement(Popover, { state, triggerRef: buttonRef, scrollRef: listboxRef }, /* @__PURE__ */ React54.createElement(
2405
2721
  ListBox,
2406
2722
  {
2407
2723
  ref: listboxRef,
@@ -2414,34 +2730,34 @@ var Select = forwardRef11(
2414
2730
  );
2415
2731
  }
2416
2732
  );
2417
- Select.Option = Item3;
2418
- Select.Section = Section;
2733
+ Select.Option = Item4;
2734
+ Select.Section = Section2;
2419
2735
 
2420
2736
  // src/Slider/Slider.tsx
2421
- import React53, { forwardRef as forwardRef12 } from "react";
2737
+ import React56, { forwardRef as forwardRef12 } from "react";
2422
2738
  import { useSlider } from "@react-aria/slider";
2423
2739
  import { useSliderState } from "@react-stately/slider";
2424
2740
  import { useNumberFormatter } from "@react-aria/i18n";
2425
2741
  import { useObjectRef as useObjectRef11 } from "@react-aria/utils";
2426
- import { useComponentStyles as useComponentStyles26 } from "@marigold/system";
2742
+ import { useComponentStyles as useComponentStyles28 } from "@marigold/system";
2427
2743
 
2428
2744
  // src/Slider/Thumb.tsx
2429
- import React52, { useEffect } from "react";
2745
+ import React55, { useEffect } from "react";
2430
2746
  import { useSliderThumb } from "@react-aria/slider";
2431
- import { mergeProps as mergeProps10 } from "@react-aria/utils";
2432
- import { useStateProps as useStateProps13 } from "@marigold/system";
2747
+ import { mergeProps as mergeProps12 } from "@react-aria/utils";
2748
+ import { useStateProps as useStateProps14 } from "@marigold/system";
2433
2749
 
2434
2750
  // src/VisuallyHidden/VisuallyHidden.tsx
2435
2751
  import { VisuallyHidden } from "@react-aria/visually-hidden";
2436
2752
 
2437
2753
  // src/Slider/Thumb.tsx
2438
- import { useFocusRing as useFocusRing8 } from "@react-aria/focus";
2754
+ import { useFocusRing as useFocusRing9 } from "@react-aria/focus";
2439
2755
  var Thumb = ({ state, trackRef, styles, ...props }) => {
2440
2756
  const { disabled } = props;
2441
- const inputRef = React52.useRef(null);
2442
- const { isFocusVisible, focusProps, isFocused } = useFocusRing8();
2757
+ const inputRef = React55.useRef(null);
2758
+ const { isFocusVisible, focusProps, isFocused } = useFocusRing9();
2443
2759
  const focused = isFocused || isFocusVisible || state.isThumbDragging(0);
2444
- const stateProps = useStateProps13({
2760
+ const stateProps = useStateProps14({
2445
2761
  focus: focused,
2446
2762
  disabled
2447
2763
  });
@@ -2457,21 +2773,21 @@ var Thumb = ({ state, trackRef, styles, ...props }) => {
2457
2773
  useEffect(() => {
2458
2774
  state.setThumbEditable(0, !disabled);
2459
2775
  }, [disabled, state]);
2460
- return /* @__PURE__ */ React52.createElement(
2461
- Box,
2776
+ return /* @__PURE__ */ React55.createElement(
2777
+ Box4,
2462
2778
  {
2463
2779
  __baseCSS: { top: "50%" },
2464
2780
  css: styles,
2465
2781
  ...thumbProps,
2466
2782
  ...stateProps
2467
2783
  },
2468
- /* @__PURE__ */ React52.createElement(VisuallyHidden, null, /* @__PURE__ */ React52.createElement(
2469
- Box,
2784
+ /* @__PURE__ */ React55.createElement(VisuallyHidden, null, /* @__PURE__ */ React55.createElement(
2785
+ Box4,
2470
2786
  {
2471
2787
  as: "input",
2472
2788
  type: "range",
2473
2789
  ref: inputRef,
2474
- ...mergeProps10(inputProps, focusProps)
2790
+ ...mergeProps12(inputProps, focusProps)
2475
2791
  }
2476
2792
  ))
2477
2793
  );
@@ -2492,13 +2808,13 @@ var Slider = forwardRef12(
2492
2808
  state,
2493
2809
  trackRef
2494
2810
  );
2495
- const styles = useComponentStyles26(
2811
+ const styles = useComponentStyles28(
2496
2812
  "Slider",
2497
2813
  { variant, size },
2498
2814
  { parts: ["track", "thumb", "label", "output"] }
2499
2815
  );
2500
- return /* @__PURE__ */ React53.createElement(
2501
- Box,
2816
+ return /* @__PURE__ */ React56.createElement(
2817
+ Box4,
2502
2818
  {
2503
2819
  __baseCSS: {
2504
2820
  display: "flex",
@@ -2508,8 +2824,8 @@ var Slider = forwardRef12(
2508
2824
  },
2509
2825
  ...groupProps
2510
2826
  },
2511
- /* @__PURE__ */ React53.createElement(Box, { __baseCSS: { display: "flex", alignSelf: "stretch" } }, props.children && /* @__PURE__ */ React53.createElement(Box, { as: "label", __baseCSS: styles.label, ...labelProps }, props.children), /* @__PURE__ */ React53.createElement(
2512
- Box,
2827
+ /* @__PURE__ */ React56.createElement(Box4, { __baseCSS: { display: "flex", alignSelf: "stretch" } }, props.children && /* @__PURE__ */ React56.createElement(Box4, { as: "label", __baseCSS: styles.label, ...labelProps }, props.children), /* @__PURE__ */ React56.createElement(
2828
+ Box4,
2513
2829
  {
2514
2830
  as: "output",
2515
2831
  ...outputProps,
@@ -2518,8 +2834,8 @@ var Slider = forwardRef12(
2518
2834
  },
2519
2835
  state.getThumbValueLabel(0)
2520
2836
  )),
2521
- /* @__PURE__ */ React53.createElement(
2522
- Box,
2837
+ /* @__PURE__ */ React56.createElement(
2838
+ Box4,
2523
2839
  {
2524
2840
  ...trackProps,
2525
2841
  ref: trackRef,
@@ -2529,8 +2845,8 @@ var Slider = forwardRef12(
2529
2845
  cursor: props.disabled ? "not-allowed" : "pointer"
2530
2846
  }
2531
2847
  },
2532
- /* @__PURE__ */ React53.createElement(
2533
- Box,
2848
+ /* @__PURE__ */ React56.createElement(
2849
+ Box4,
2534
2850
  {
2535
2851
  __baseCSS: {
2536
2852
  top: "50%",
@@ -2539,7 +2855,7 @@ var Slider = forwardRef12(
2539
2855
  css: styles.track
2540
2856
  }
2541
2857
  ),
2542
- /* @__PURE__ */ React53.createElement(
2858
+ /* @__PURE__ */ React56.createElement(
2543
2859
  Thumb,
2544
2860
  {
2545
2861
  state,
@@ -2554,13 +2870,13 @@ var Slider = forwardRef12(
2554
2870
  );
2555
2871
 
2556
2872
  // src/Split/Split.tsx
2557
- import React54 from "react";
2558
- import { Box as Box31 } from "@marigold/system";
2559
- var Split = (props) => /* @__PURE__ */ React54.createElement(Box31, { ...props, role: "separator", css: { flexGrow: 1 } });
2873
+ import React57 from "react";
2874
+ import { Box as Box34 } from "@marigold/system";
2875
+ var Split = (props) => /* @__PURE__ */ React57.createElement(Box34, { ...props, role: "separator", css: { flexGrow: 1 } });
2560
2876
 
2561
2877
  // src/Stack/Stack.tsx
2562
- import React55 from "react";
2563
- import { Box as Box32 } from "@marigold/system";
2878
+ import React58 from "react";
2879
+ import { Box as Box35 } from "@marigold/system";
2564
2880
  var ALIGNMENT_X2 = {
2565
2881
  none: "initial",
2566
2882
  left: "flex-start",
@@ -2580,8 +2896,8 @@ var Stack = ({
2580
2896
  alignY = "none",
2581
2897
  stretch = false,
2582
2898
  ...props
2583
- }) => /* @__PURE__ */ React55.createElement(
2584
- Box32,
2899
+ }) => /* @__PURE__ */ React58.createElement(
2900
+ Box35,
2585
2901
  {
2586
2902
  css: {
2587
2903
  display: "flex",
@@ -2598,14 +2914,14 @@ var Stack = ({
2598
2914
  );
2599
2915
 
2600
2916
  // src/Switch/Switch.tsx
2601
- import React56, { forwardRef as forwardRef13 } from "react";
2602
- import { useFocusRing as useFocusRing9 } from "@react-aria/focus";
2917
+ import React59, { forwardRef as forwardRef13 } from "react";
2918
+ import { useFocusRing as useFocusRing10 } from "@react-aria/focus";
2603
2919
  import { useSwitch } from "@react-aria/switch";
2604
2920
  import { useObjectRef as useObjectRef12 } from "@react-aria/utils";
2605
2921
  import { useToggleState as useToggleState2 } from "@react-stately/toggle";
2606
2922
  import {
2607
- useComponentStyles as useComponentStyles27,
2608
- useStateProps as useStateProps14
2923
+ useComponentStyles as useComponentStyles29,
2924
+ useStateProps as useStateProps15
2609
2925
  } from "@marigold/system";
2610
2926
  var Switch = forwardRef13(
2611
2927
  ({
@@ -2628,20 +2944,20 @@ var Switch = forwardRef13(
2628
2944
  };
2629
2945
  const state = useToggleState2(props);
2630
2946
  const { inputProps } = useSwitch(props, state, inputRef);
2631
- const { isFocusVisible, focusProps } = useFocusRing9();
2632
- const stateProps = useStateProps14({
2947
+ const { isFocusVisible, focusProps } = useFocusRing10();
2948
+ const stateProps = useStateProps15({
2633
2949
  checked: state.isSelected,
2634
2950
  disabled,
2635
2951
  readOnly,
2636
2952
  focus: isFocusVisible
2637
2953
  });
2638
- const styles = useComponentStyles27(
2954
+ const styles = useComponentStyles29(
2639
2955
  "Switch",
2640
2956
  { variant, size },
2641
2957
  { parts: ["container", "label", "track", "thumb"] }
2642
2958
  );
2643
- return /* @__PURE__ */ React56.createElement(
2644
- Box,
2959
+ return /* @__PURE__ */ React59.createElement(
2960
+ Box4,
2645
2961
  {
2646
2962
  as: "label",
2647
2963
  __baseCSS: {
@@ -2654,8 +2970,8 @@ var Switch = forwardRef13(
2654
2970
  },
2655
2971
  css: styles.container
2656
2972
  },
2657
- /* @__PURE__ */ React56.createElement(
2658
- Box,
2973
+ /* @__PURE__ */ React59.createElement(
2974
+ Box4,
2659
2975
  {
2660
2976
  as: "input",
2661
2977
  ref: inputRef,
@@ -2673,9 +2989,9 @@ var Switch = forwardRef13(
2673
2989
  ...focusProps
2674
2990
  }
2675
2991
  ),
2676
- props.children && /* @__PURE__ */ React56.createElement(Box, { css: styles.label }, props.children),
2677
- /* @__PURE__ */ React56.createElement(
2678
- Box,
2992
+ props.children && /* @__PURE__ */ React59.createElement(Box4, { css: styles.label }, props.children),
2993
+ /* @__PURE__ */ React59.createElement(
2994
+ Box4,
2679
2995
  {
2680
2996
  __baseCSS: {
2681
2997
  position: "relative",
@@ -2688,8 +3004,8 @@ var Switch = forwardRef13(
2688
3004
  css: styles.track,
2689
3005
  ...stateProps
2690
3006
  },
2691
- /* @__PURE__ */ React56.createElement(
2692
- Box,
3007
+ /* @__PURE__ */ React59.createElement(
3008
+ Box4,
2693
3009
  {
2694
3010
  __baseCSS: {
2695
3011
  display: "block",
@@ -2717,7 +3033,7 @@ var Switch = forwardRef13(
2717
3033
  );
2718
3034
 
2719
3035
  // src/Table/Table.tsx
2720
- import React65, { useRef as useRef19 } from "react";
3036
+ import React68, { useRef as useRef21 } from "react";
2721
3037
  import { useTable } from "@react-aria/table";
2722
3038
  import {
2723
3039
  Cell,
@@ -2728,8 +3044,8 @@ import {
2728
3044
  useTableState
2729
3045
  } from "@react-stately/table";
2730
3046
  import {
2731
- Box as Box38,
2732
- useComponentStyles as useComponentStyles29
3047
+ Box as Box41,
3048
+ useComponentStyles as useComponentStyles31
2733
3049
  } from "@marigold/system";
2734
3050
 
2735
3051
  // src/Table/Context.tsx
@@ -2738,21 +3054,21 @@ var TableContext = createContext8({});
2738
3054
  var useTableContext = () => useContext8(TableContext);
2739
3055
 
2740
3056
  // src/Table/TableBody.tsx
2741
- import React57 from "react";
3057
+ import React60 from "react";
2742
3058
  import { useTableRowGroup } from "@react-aria/table";
2743
3059
  var TableBody = ({ children }) => {
2744
3060
  const { rowGroupProps } = useTableRowGroup();
2745
- return /* @__PURE__ */ React57.createElement("tbody", { ...rowGroupProps }, children);
3061
+ return /* @__PURE__ */ React60.createElement("tbody", { ...rowGroupProps }, children);
2746
3062
  };
2747
3063
 
2748
3064
  // src/Table/TableCell.tsx
2749
- import React58, { useRef as useRef13 } from "react";
3065
+ import React61, { useRef as useRef15 } from "react";
2750
3066
  import { useTableCell } from "@react-aria/table";
2751
- import { useFocusRing as useFocusRing10 } from "@react-aria/focus";
2752
- import { mergeProps as mergeProps11 } from "@react-aria/utils";
2753
- import { Box as Box33, useStateProps as useStateProps15 } from "@marigold/system";
3067
+ import { useFocusRing as useFocusRing11 } from "@react-aria/focus";
3068
+ import { mergeProps as mergeProps13 } from "@react-aria/utils";
3069
+ import { Box as Box36, useStateProps as useStateProps16 } from "@marigold/system";
2754
3070
  var TableCell = ({ cell }) => {
2755
- const ref = useRef13(null);
3071
+ const ref = useRef15(null);
2756
3072
  const { interactive, state, styles } = useTableContext();
2757
3073
  const disabled = state.disabledKeys.has(cell.parentKey);
2758
3074
  const { gridCellProps } = useTableCell(
@@ -2771,15 +3087,15 @@ var TableCell = ({ cell }) => {
2771
3087
  onMouseDown: (e) => e.stopPropagation(),
2772
3088
  onPointerDown: (e) => e.stopPropagation()
2773
3089
  };
2774
- const { focusProps, isFocusVisible } = useFocusRing10();
2775
- const stateProps = useStateProps15({ disabled, focusVisible: isFocusVisible });
2776
- return /* @__PURE__ */ React58.createElement(
2777
- Box33,
3090
+ const { focusProps, isFocusVisible } = useFocusRing11();
3091
+ const stateProps = useStateProps16({ disabled, focusVisible: isFocusVisible });
3092
+ return /* @__PURE__ */ React61.createElement(
3093
+ Box36,
2778
3094
  {
2779
3095
  as: "td",
2780
3096
  ref,
2781
3097
  css: styles.cell,
2782
- ...mergeProps11(cellProps, focusProps),
3098
+ ...mergeProps13(cellProps, focusProps),
2783
3099
  ...stateProps
2784
3100
  },
2785
3101
  cell.rendered
@@ -2787,11 +3103,11 @@ var TableCell = ({ cell }) => {
2787
3103
  };
2788
3104
 
2789
3105
  // src/Table/TableCheckboxCell.tsx
2790
- import React59, { useRef as useRef14 } from "react";
3106
+ import React62, { useRef as useRef16 } from "react";
2791
3107
  import { useTableCell as useTableCell2, useTableSelectionCheckbox } from "@react-aria/table";
2792
- import { useFocusRing as useFocusRing11 } from "@react-aria/focus";
2793
- import { mergeProps as mergeProps12 } from "@react-aria/utils";
2794
- import { Box as Box34, useStateProps as useStateProps16 } from "@marigold/system";
3108
+ import { useFocusRing as useFocusRing12 } from "@react-aria/focus";
3109
+ import { mergeProps as mergeProps14 } from "@react-aria/utils";
3110
+ import { Box as Box37, useStateProps as useStateProps17 } from "@marigold/system";
2795
3111
 
2796
3112
  // src/Table/utils.ts
2797
3113
  var mapCheckboxProps = ({
@@ -2815,7 +3131,7 @@ var mapCheckboxProps = ({
2815
3131
 
2816
3132
  // src/Table/TableCheckboxCell.tsx
2817
3133
  var TableCheckboxCell = ({ cell }) => {
2818
- const ref = useRef14(null);
3134
+ const ref = useRef16(null);
2819
3135
  const { state, styles } = useTableContext();
2820
3136
  const disabled = state.disabledKeys.has(cell.parentKey);
2821
3137
  const { gridCellProps } = useTableCell2(
@@ -2828,10 +3144,10 @@ var TableCheckboxCell = ({ cell }) => {
2828
3144
  const { checkboxProps } = mapCheckboxProps(
2829
3145
  useTableSelectionCheckbox({ key: cell.parentKey }, state)
2830
3146
  );
2831
- const { focusProps, isFocusVisible } = useFocusRing11();
2832
- const stateProps = useStateProps16({ disabled, focusVisible: isFocusVisible });
2833
- return /* @__PURE__ */ React59.createElement(
2834
- Box34,
3147
+ const { focusProps, isFocusVisible } = useFocusRing12();
3148
+ const stateProps = useStateProps17({ disabled, focusVisible: isFocusVisible });
3149
+ return /* @__PURE__ */ React62.createElement(
3150
+ Box37,
2835
3151
  {
2836
3152
  as: "td",
2837
3153
  ref,
@@ -2841,25 +3157,25 @@ var TableCheckboxCell = ({ cell }) => {
2841
3157
  lineHeight: 1
2842
3158
  },
2843
3159
  css: styles.cell,
2844
- ...mergeProps12(gridCellProps, focusProps),
3160
+ ...mergeProps14(gridCellProps, focusProps),
2845
3161
  ...stateProps
2846
3162
  },
2847
- /* @__PURE__ */ React59.createElement(Checkbox, { ...checkboxProps })
3163
+ /* @__PURE__ */ React62.createElement(Checkbox, { ...checkboxProps })
2848
3164
  );
2849
3165
  };
2850
3166
 
2851
3167
  // src/Table/TableColumnHeader.tsx
2852
- import React60, { useRef as useRef15 } from "react";
2853
- import { useFocusRing as useFocusRing12 } from "@react-aria/focus";
3168
+ import React63, { useRef as useRef17 } from "react";
3169
+ import { useFocusRing as useFocusRing13 } from "@react-aria/focus";
2854
3170
  import { useHover as useHover7 } from "@react-aria/interactions";
2855
3171
  import { useTableColumnHeader } from "@react-aria/table";
2856
- import { mergeProps as mergeProps13 } from "@react-aria/utils";
2857
- import { Box as Box35, useStateProps as useStateProps17 } from "@marigold/system";
3172
+ import { mergeProps as mergeProps15 } from "@react-aria/utils";
3173
+ import { Box as Box38, useStateProps as useStateProps18 } from "@marigold/system";
2858
3174
  var SortIndicator = ({
2859
3175
  direction = "ascending",
2860
3176
  visible
2861
- }) => /* @__PURE__ */ React60.createElement(
2862
- Box35,
3177
+ }) => /* @__PURE__ */ React63.createElement(
3178
+ Box38,
2863
3179
  {
2864
3180
  as: "span",
2865
3181
  role: "presentation",
@@ -2874,7 +3190,7 @@ var SortIndicator = ({
2874
3190
  );
2875
3191
  var TableColumnHeader = ({ column }) => {
2876
3192
  var _a, _b;
2877
- const ref = useRef15(null);
3193
+ const ref = useRef17(null);
2878
3194
  const { state, styles } = useTableContext();
2879
3195
  const { columnHeaderProps } = useTableColumnHeader(
2880
3196
  {
@@ -2884,24 +3200,24 @@ var TableColumnHeader = ({ column }) => {
2884
3200
  ref
2885
3201
  );
2886
3202
  const { hoverProps, isHovered } = useHover7({});
2887
- const { focusProps, isFocusVisible } = useFocusRing12();
2888
- const stateProps = useStateProps17({
3203
+ const { focusProps, isFocusVisible } = useFocusRing13();
3204
+ const stateProps = useStateProps18({
2889
3205
  hover: isHovered,
2890
3206
  focusVisible: isFocusVisible
2891
3207
  });
2892
- return /* @__PURE__ */ React60.createElement(
2893
- Box35,
3208
+ return /* @__PURE__ */ React63.createElement(
3209
+ Box38,
2894
3210
  {
2895
3211
  as: "th",
2896
3212
  colSpan: column.colspan,
2897
3213
  ref,
2898
3214
  __baseCSS: { cursor: "default" },
2899
3215
  css: styles.header,
2900
- ...mergeProps13(columnHeaderProps, hoverProps, focusProps),
3216
+ ...mergeProps15(columnHeaderProps, hoverProps, focusProps),
2901
3217
  ...stateProps
2902
3218
  },
2903
3219
  column.rendered,
2904
- column.props.allowsSorting && /* @__PURE__ */ React60.createElement(
3220
+ column.props.allowsSorting && /* @__PURE__ */ React63.createElement(
2905
3221
  SortIndicator,
2906
3222
  {
2907
3223
  direction: (_a = state.sortDescriptor) == null ? void 0 : _a.direction,
@@ -2912,35 +3228,35 @@ var TableColumnHeader = ({ column }) => {
2912
3228
  };
2913
3229
 
2914
3230
  // src/Table/TableHeader.tsx
2915
- import React61 from "react";
3231
+ import React64 from "react";
2916
3232
  import { useTableRowGroup as useTableRowGroup2 } from "@react-aria/table";
2917
3233
  var TableHeader = ({ children }) => {
2918
3234
  const { rowGroupProps } = useTableRowGroup2();
2919
- return /* @__PURE__ */ React61.createElement("thead", { ...rowGroupProps }, children);
3235
+ return /* @__PURE__ */ React64.createElement("thead", { ...rowGroupProps }, children);
2920
3236
  };
2921
3237
 
2922
3238
  // src/Table/TableHeaderRow.tsx
2923
- import React62, { useRef as useRef16 } from "react";
3239
+ import React65, { useRef as useRef18 } from "react";
2924
3240
  import { useTableHeaderRow } from "@react-aria/table";
2925
3241
  var TableHeaderRow = ({ item, children }) => {
2926
3242
  const { state } = useTableContext();
2927
- const ref = useRef16(null);
3243
+ const ref = useRef18(null);
2928
3244
  const { rowProps } = useTableHeaderRow({ node: item }, state, ref);
2929
- return /* @__PURE__ */ React62.createElement("tr", { ...rowProps, ref }, children);
3245
+ return /* @__PURE__ */ React65.createElement("tr", { ...rowProps, ref }, children);
2930
3246
  };
2931
3247
 
2932
3248
  // src/Table/TableRow.tsx
2933
- import React63, { useRef as useRef17 } from "react";
2934
- import { useFocusRing as useFocusRing13 } from "@react-aria/focus";
3249
+ import React66, { useRef as useRef19 } from "react";
3250
+ import { useFocusRing as useFocusRing14 } from "@react-aria/focus";
2935
3251
  import { useHover as useHover8 } from "@react-aria/interactions";
2936
3252
  import { useTableRow } from "@react-aria/table";
2937
- import { mergeProps as mergeProps14 } from "@react-aria/utils";
2938
- import { Box as Box36, useComponentStyles as useComponentStyles28, useStateProps as useStateProps18 } from "@marigold/system";
3253
+ import { mergeProps as mergeProps16 } from "@react-aria/utils";
3254
+ import { Box as Box39, useComponentStyles as useComponentStyles30, useStateProps as useStateProps19 } from "@marigold/system";
2939
3255
  var TableRow = ({ children, row }) => {
2940
- const ref = useRef17(null);
3256
+ const ref = useRef19(null);
2941
3257
  const { interactive, state, ...ctx } = useTableContext();
2942
3258
  const { variant, size } = row.props;
2943
- const { row: styles } = useComponentStyles28(
3259
+ const { row: styles } = useComponentStyles30(
2944
3260
  "Table",
2945
3261
  { variant: variant || ctx.variant, size: size || ctx.size },
2946
3262
  { parts: ["row"] }
@@ -2954,19 +3270,19 @@ var TableRow = ({ children, row }) => {
2954
3270
  );
2955
3271
  const disabled = state.disabledKeys.has(row.key);
2956
3272
  const selected = state.selectionManager.isSelected(row.key);
2957
- const { focusProps, isFocusVisible } = useFocusRing13({ within: true });
3273
+ const { focusProps, isFocusVisible } = useFocusRing14({ within: true });
2958
3274
  const { hoverProps, isHovered } = useHover8({
2959
3275
  isDisabled: disabled || !interactive
2960
3276
  });
2961
- const stateProps = useStateProps18({
3277
+ const stateProps = useStateProps19({
2962
3278
  disabled,
2963
3279
  selected,
2964
3280
  hover: isHovered,
2965
3281
  focusVisible: isFocusVisible,
2966
3282
  active: isPressed
2967
3283
  });
2968
- return /* @__PURE__ */ React63.createElement(
2969
- Box36,
3284
+ return /* @__PURE__ */ React66.createElement(
3285
+ Box39,
2970
3286
  {
2971
3287
  as: "tr",
2972
3288
  ref,
@@ -2974,7 +3290,7 @@ var TableRow = ({ children, row }) => {
2974
3290
  cursor: !interactive ? "text" : disabled ? "default" : "pointer"
2975
3291
  },
2976
3292
  css: styles,
2977
- ...mergeProps14(rowProps, focusProps, hoverProps),
3293
+ ...mergeProps16(rowProps, focusProps, hoverProps),
2978
3294
  ...stateProps
2979
3295
  },
2980
3296
  children
@@ -2982,17 +3298,17 @@ var TableRow = ({ children, row }) => {
2982
3298
  };
2983
3299
 
2984
3300
  // src/Table/TableSelectAllCell.tsx
2985
- import React64, { useRef as useRef18 } from "react";
2986
- import { useFocusRing as useFocusRing14 } from "@react-aria/focus";
3301
+ import React67, { useRef as useRef20 } from "react";
3302
+ import { useFocusRing as useFocusRing15 } from "@react-aria/focus";
2987
3303
  import { useHover as useHover9 } from "@react-aria/interactions";
2988
3304
  import {
2989
3305
  useTableColumnHeader as useTableColumnHeader2,
2990
3306
  useTableSelectAllCheckbox
2991
3307
  } from "@react-aria/table";
2992
- import { mergeProps as mergeProps15 } from "@react-aria/utils";
2993
- import { Box as Box37, useStateProps as useStateProps19 } from "@marigold/system";
3308
+ import { mergeProps as mergeProps17 } from "@react-aria/utils";
3309
+ import { Box as Box40, useStateProps as useStateProps20 } from "@marigold/system";
2994
3310
  var TableSelectAllCell = ({ column }) => {
2995
- const ref = useRef18(null);
3311
+ const ref = useRef20(null);
2996
3312
  const { state, styles } = useTableContext();
2997
3313
  const { columnHeaderProps } = useTableColumnHeader2(
2998
3314
  {
@@ -3003,13 +3319,13 @@ var TableSelectAllCell = ({ column }) => {
3003
3319
  );
3004
3320
  const { checkboxProps } = mapCheckboxProps(useTableSelectAllCheckbox(state));
3005
3321
  const { hoverProps, isHovered } = useHover9({});
3006
- const { focusProps, isFocusVisible } = useFocusRing14();
3007
- const stateProps = useStateProps19({
3322
+ const { focusProps, isFocusVisible } = useFocusRing15();
3323
+ const stateProps = useStateProps20({
3008
3324
  hover: isHovered,
3009
3325
  focusVisible: isFocusVisible
3010
3326
  });
3011
- return /* @__PURE__ */ React64.createElement(
3012
- Box37,
3327
+ return /* @__PURE__ */ React67.createElement(
3328
+ Box40,
3013
3329
  {
3014
3330
  as: "th",
3015
3331
  ref,
@@ -3019,10 +3335,10 @@ var TableSelectAllCell = ({ column }) => {
3019
3335
  lineHeight: 1
3020
3336
  },
3021
3337
  css: styles.header,
3022
- ...mergeProps15(columnHeaderProps, hoverProps, focusProps),
3338
+ ...mergeProps17(columnHeaderProps, hoverProps, focusProps),
3023
3339
  ...stateProps
3024
3340
  },
3025
- /* @__PURE__ */ React64.createElement(Checkbox, { ...checkboxProps })
3341
+ /* @__PURE__ */ React67.createElement(Checkbox, { ...checkboxProps })
3026
3342
  );
3027
3343
  };
3028
3344
 
@@ -3035,7 +3351,7 @@ var Table = ({
3035
3351
  ...props
3036
3352
  }) => {
3037
3353
  const interactive = selectionMode !== "none";
3038
- const tableRef = useRef19(null);
3354
+ const tableRef = useRef21(null);
3039
3355
  const state = useTableState({
3040
3356
  ...props,
3041
3357
  selectionMode,
@@ -3043,14 +3359,14 @@ var Table = ({
3043
3359
  props.selectionBehavior !== "replace"
3044
3360
  });
3045
3361
  const { gridProps } = useTable(props, state, tableRef);
3046
- const styles = useComponentStyles29(
3362
+ const styles = useComponentStyles31(
3047
3363
  "Table",
3048
3364
  { variant, size },
3049
3365
  { parts: ["table", "header", "row", "cell"] }
3050
3366
  );
3051
3367
  const { collection } = state;
3052
- return /* @__PURE__ */ React65.createElement(TableContext.Provider, { value: { state, interactive, styles } }, /* @__PURE__ */ React65.createElement(
3053
- Box38,
3368
+ return /* @__PURE__ */ React68.createElement(TableContext.Provider, { value: { state, interactive, styles } }, /* @__PURE__ */ React68.createElement(
3369
+ Box41,
3054
3370
  {
3055
3371
  as: "table",
3056
3372
  ref: tableRef,
@@ -3064,16 +3380,16 @@ var Table = ({
3064
3380
  css: styles.table,
3065
3381
  ...gridProps
3066
3382
  },
3067
- /* @__PURE__ */ React65.createElement(TableHeader, null, collection.headerRows.map((headerRow) => /* @__PURE__ */ React65.createElement(TableHeaderRow, { key: headerRow.key, item: headerRow }, [...headerRow.childNodes].map(
3383
+ /* @__PURE__ */ React68.createElement(TableHeader, null, collection.headerRows.map((headerRow) => /* @__PURE__ */ React68.createElement(TableHeaderRow, { key: headerRow.key, item: headerRow }, [...headerRow.childNodes].map(
3068
3384
  (column) => {
3069
3385
  var _a;
3070
- return ((_a = column.props) == null ? void 0 : _a.isSelectionCell) ? /* @__PURE__ */ React65.createElement(TableSelectAllCell, { key: column.key, column }) : /* @__PURE__ */ React65.createElement(TableColumnHeader, { key: column.key, column });
3386
+ return ((_a = column.props) == null ? void 0 : _a.isSelectionCell) ? /* @__PURE__ */ React68.createElement(TableSelectAllCell, { key: column.key, column }) : /* @__PURE__ */ React68.createElement(TableColumnHeader, { key: column.key, column });
3071
3387
  }
3072
3388
  )))),
3073
- /* @__PURE__ */ React65.createElement(TableBody, null, [...collection.body.childNodes].map((row) => /* @__PURE__ */ React65.createElement(TableRow, { key: row.key, row }, [...row.childNodes].map(
3389
+ /* @__PURE__ */ React68.createElement(TableBody, null, [...collection.body.childNodes].map((row) => /* @__PURE__ */ React68.createElement(TableRow, { key: row.key, row }, [...row.childNodes].map(
3074
3390
  (cell) => {
3075
3391
  var _a;
3076
- return ((_a = cell.props) == null ? void 0 : _a.isSelectionCell) ? /* @__PURE__ */ React65.createElement(TableCheckboxCell, { key: cell.key, cell }) : /* @__PURE__ */ React65.createElement(TableCell, { key: cell.key, cell });
3392
+ return ((_a = cell.props) == null ? void 0 : _a.isSelectionCell) ? /* @__PURE__ */ React68.createElement(TableCheckboxCell, { key: cell.key, cell }) : /* @__PURE__ */ React68.createElement(TableCell, { key: cell.key, cell });
3077
3393
  }
3078
3394
  ))))
3079
3395
  ));
@@ -3085,11 +3401,11 @@ Table.Header = Header2;
3085
3401
  Table.Row = Row;
3086
3402
 
3087
3403
  // src/Text/Text.tsx
3088
- import React66 from "react";
3404
+ import React69 from "react";
3089
3405
  import {
3090
- useComponentStyles as useComponentStyles30
3406
+ useComponentStyles as useComponentStyles32
3091
3407
  } from "@marigold/system";
3092
- import { Box as Box39 } from "@marigold/system";
3408
+ import { Box as Box42 } from "@marigold/system";
3093
3409
  var Text = ({
3094
3410
  variant,
3095
3411
  size,
@@ -3097,18 +3413,19 @@ var Text = ({
3097
3413
  align,
3098
3414
  color,
3099
3415
  fontSize,
3416
+ fontStyle,
3100
3417
  fontWeight,
3101
3418
  cursor,
3102
3419
  outline,
3103
3420
  children,
3104
3421
  ...props
3105
3422
  }) => {
3106
- const styles = useComponentStyles30("Text", {
3423
+ const styles = useComponentStyles32("Text", {
3107
3424
  variant,
3108
3425
  size
3109
3426
  });
3110
- return /* @__PURE__ */ React66.createElement(
3111
- Box39,
3427
+ return /* @__PURE__ */ React69.createElement(
3428
+ Box42,
3112
3429
  {
3113
3430
  as: "p",
3114
3431
  ...props,
@@ -3120,6 +3437,7 @@ var Text = ({
3120
3437
  cursor,
3121
3438
  outline,
3122
3439
  fontSize,
3440
+ fontStyle,
3123
3441
  fontWeight,
3124
3442
  textAlign: align
3125
3443
  }
@@ -3130,15 +3448,15 @@ var Text = ({
3130
3448
  };
3131
3449
 
3132
3450
  // src/TextArea/TextArea.tsx
3133
- import React67, { forwardRef as forwardRef14 } from "react";
3451
+ import React70, { forwardRef as forwardRef14 } from "react";
3134
3452
  import { useHover as useHover10 } from "@react-aria/interactions";
3135
- import { useFocusRing as useFocusRing15 } from "@react-aria/focus";
3453
+ import { useFocusRing as useFocusRing16 } from "@react-aria/focus";
3136
3454
  import { useTextField } from "@react-aria/textfield";
3137
3455
  import { useObjectRef as useObjectRef13 } from "@react-aria/utils";
3138
3456
  import {
3139
- Box as Box40,
3140
- useComponentStyles as useComponentStyles31,
3141
- useStateProps as useStateProps20
3457
+ Box as Box43,
3458
+ useComponentStyles as useComponentStyles33,
3459
+ useStateProps as useStateProps21
3142
3460
  } from "@marigold/system";
3143
3461
  var TextArea = forwardRef14(
3144
3462
  ({
@@ -3166,16 +3484,16 @@ var TextArea = forwardRef14(
3166
3484
  textAreaRef
3167
3485
  );
3168
3486
  const { hoverProps, isHovered } = useHover10({});
3169
- const { focusProps, isFocusVisible } = useFocusRing15();
3170
- const stateProps = useStateProps20({
3487
+ const { focusProps, isFocusVisible } = useFocusRing16();
3488
+ const stateProps = useStateProps21({
3171
3489
  hover: isHovered,
3172
3490
  focus: isFocusVisible,
3173
3491
  disabled,
3174
3492
  readOnly,
3175
3493
  error
3176
3494
  });
3177
- const styles = useComponentStyles31("TextArea", { variant, size });
3178
- return /* @__PURE__ */ React67.createElement(
3495
+ const styles = useComponentStyles33("TextArea", { variant, size });
3496
+ return /* @__PURE__ */ React70.createElement(
3179
3497
  FieldBase,
3180
3498
  {
3181
3499
  label,
@@ -3191,8 +3509,8 @@ var TextArea = forwardRef14(
3191
3509
  size,
3192
3510
  width
3193
3511
  },
3194
- /* @__PURE__ */ React67.createElement(
3195
- Box40,
3512
+ /* @__PURE__ */ React70.createElement(
3513
+ Box43,
3196
3514
  {
3197
3515
  as: "textarea",
3198
3516
  css: styles,
@@ -3209,12 +3527,12 @@ var TextArea = forwardRef14(
3209
3527
  );
3210
3528
 
3211
3529
  // src/TextField/TextField.tsx
3212
- import React68, { forwardRef as forwardRef15 } from "react";
3530
+ import React71, { forwardRef as forwardRef15 } from "react";
3213
3531
  import { useHover as useHover11 } from "@react-aria/interactions";
3214
- import { useFocusRing as useFocusRing16 } from "@react-aria/focus";
3532
+ import { useFocusRing as useFocusRing17 } from "@react-aria/focus";
3215
3533
  import { useTextField as useTextField2 } from "@react-aria/textfield";
3216
3534
  import { useObjectRef as useObjectRef14 } from "@react-aria/utils";
3217
- import { useStateProps as useStateProps21 } from "@marigold/system";
3535
+ import { useStateProps as useStateProps22 } from "@marigold/system";
3218
3536
  var TextField = forwardRef15(
3219
3537
  ({ variant, size, width, disabled, required, readOnly, error, ...props }, ref) => {
3220
3538
  const { label, description, errorMessage, autoFocus } = props;
@@ -3230,18 +3548,18 @@ var TextField = forwardRef15(
3230
3548
  inputRef
3231
3549
  );
3232
3550
  const { hoverProps, isHovered } = useHover11({});
3233
- const { focusProps, isFocused } = useFocusRing16({
3551
+ const { focusProps, isFocused } = useFocusRing17({
3234
3552
  isTextInput: true,
3235
3553
  autoFocus
3236
3554
  });
3237
- const stateProps = useStateProps21({
3555
+ const stateProps = useStateProps22({
3238
3556
  hover: isHovered,
3239
3557
  focus: isFocused,
3240
3558
  disabled,
3241
3559
  readOnly,
3242
3560
  error
3243
3561
  });
3244
- return /* @__PURE__ */ React68.createElement(
3562
+ return /* @__PURE__ */ React71.createElement(
3245
3563
  FieldBase,
3246
3564
  {
3247
3565
  label,
@@ -3257,7 +3575,7 @@ var TextField = forwardRef15(
3257
3575
  size,
3258
3576
  width
3259
3577
  },
3260
- /* @__PURE__ */ React68.createElement(
3578
+ /* @__PURE__ */ React71.createElement(
3261
3579
  Input,
3262
3580
  {
3263
3581
  ref: inputRef,
@@ -3274,7 +3592,7 @@ var TextField = forwardRef15(
3274
3592
  );
3275
3593
 
3276
3594
  // src/Tiles/Tiles.tsx
3277
- import React69 from "react";
3595
+ import React72 from "react";
3278
3596
  import { useTheme as useTheme3 } from "@marigold/system";
3279
3597
  var Tiles = ({
3280
3598
  space = "none",
@@ -3290,8 +3608,8 @@ var Tiles = ({
3290
3608
  if (stretch) {
3291
3609
  column = `minmax(${column}, 1fr)`;
3292
3610
  }
3293
- return /* @__PURE__ */ React69.createElement(
3294
- Box,
3611
+ return /* @__PURE__ */ React72.createElement(
3612
+ Box4,
3295
3613
  {
3296
3614
  ...props,
3297
3615
  css: {
@@ -3310,11 +3628,11 @@ var Tiles = ({
3310
3628
  };
3311
3629
 
3312
3630
  // src/Tooltip/Tooltip.tsx
3313
- import React71 from "react";
3631
+ import React74 from "react";
3314
3632
  import { useTooltip } from "@react-aria/tooltip";
3315
3633
  import {
3316
- Box as Box41,
3317
- useComponentStyles as useComponentStyles32
3634
+ Box as Box44,
3635
+ useComponentStyles as useComponentStyles34
3318
3636
  } from "@marigold/system";
3319
3637
 
3320
3638
  // src/Tooltip/Context.ts
@@ -3323,7 +3641,7 @@ var TooltipContext = createContext9({});
3323
3641
  var useTooltipContext = () => useContext9(TooltipContext);
3324
3642
 
3325
3643
  // src/Tooltip/TooltipTrigger.tsx
3326
- import React70, { useRef as useRef20 } from "react";
3644
+ import React73, { useRef as useRef22 } from "react";
3327
3645
  import { FocusableProvider } from "@react-aria/focus";
3328
3646
  import { useOverlayPosition } from "@react-aria/overlays";
3329
3647
  import { useTooltipTrigger } from "@react-aria/tooltip";
@@ -3336,7 +3654,7 @@ var TooltipTrigger = ({
3336
3654
  children,
3337
3655
  ...rest
3338
3656
  }) => {
3339
- const [tooltipTrigger, tooltip] = React70.Children.toArray(children);
3657
+ const [tooltipTrigger, tooltip] = React73.Children.toArray(children);
3340
3658
  const props = {
3341
3659
  ...rest,
3342
3660
  isDisabled: disabled,
@@ -3344,8 +3662,8 @@ var TooltipTrigger = ({
3344
3662
  delay,
3345
3663
  placement
3346
3664
  };
3347
- const tooltipTriggerRef = useRef20(null);
3348
- const overlayRef = useRef20(null);
3665
+ const tooltipTriggerRef = useRef22(null);
3666
+ const overlayRef = useRef22(null);
3349
3667
  const state = useTooltipTriggerState(props);
3350
3668
  const { triggerProps, tooltipProps } = useTooltipTrigger(
3351
3669
  props,
@@ -3364,7 +3682,7 @@ var TooltipTrigger = ({
3364
3682
  isOpen: state.isOpen,
3365
3683
  overlayRef
3366
3684
  });
3367
- return /* @__PURE__ */ React70.createElement(FocusableProvider, { ref: tooltipTriggerRef, ...triggerProps }, tooltipTrigger, /* @__PURE__ */ React70.createElement(
3685
+ return /* @__PURE__ */ React73.createElement(FocusableProvider, { ref: tooltipTriggerRef, ...triggerProps }, tooltipTrigger, /* @__PURE__ */ React73.createElement(
3368
3686
  TooltipContext.Provider,
3369
3687
  {
3370
3688
  value: {
@@ -3376,7 +3694,7 @@ var TooltipTrigger = ({
3376
3694
  ...positionProps
3377
3695
  }
3378
3696
  },
3379
- /* @__PURE__ */ React70.createElement(Overlay, { open: state.isOpen }, tooltip)
3697
+ /* @__PURE__ */ React73.createElement(Overlay, { open: state.isOpen }, tooltip)
3380
3698
  ));
3381
3699
  };
3382
3700
 
@@ -3384,13 +3702,13 @@ var TooltipTrigger = ({
3384
3702
  var Tooltip = ({ children, variant, size }) => {
3385
3703
  const { arrowProps, state, overlayRef, placement, ...rest } = useTooltipContext();
3386
3704
  const { tooltipProps } = useTooltip({}, state);
3387
- const styles = useComponentStyles32(
3705
+ const styles = useComponentStyles34(
3388
3706
  "Tooltip",
3389
3707
  { variant, size },
3390
3708
  { parts: ["container", "arrow"] }
3391
3709
  );
3392
- return /* @__PURE__ */ React71.createElement(
3393
- Box41,
3710
+ return /* @__PURE__ */ React74.createElement(
3711
+ Box44,
3394
3712
  {
3395
3713
  ...tooltipProps,
3396
3714
  ...rest,
@@ -3398,9 +3716,9 @@ var Tooltip = ({ children, variant, size }) => {
3398
3716
  css: styles.container,
3399
3717
  "data-placement": placement
3400
3718
  },
3401
- /* @__PURE__ */ React71.createElement("div", null, children),
3402
- /* @__PURE__ */ React71.createElement(
3403
- Box41,
3719
+ /* @__PURE__ */ React74.createElement("div", null, children),
3720
+ /* @__PURE__ */ React74.createElement(
3721
+ Box44,
3404
3722
  {
3405
3723
  ...arrowProps,
3406
3724
  __baseCSS: {
@@ -3420,10 +3738,10 @@ var Tooltip = ({ children, variant, size }) => {
3420
3738
  Tooltip.Trigger = TooltipTrigger;
3421
3739
 
3422
3740
  // src/XLoader/XLoader.tsx
3423
- import { SVG as SVG5 } from "@marigold/system";
3424
- import React72, { forwardRef as forwardRef16 } from "react";
3425
- var XLoader = forwardRef16((props, ref) => /* @__PURE__ */ React72.createElement(
3426
- SVG5,
3741
+ import { SVG as SVG6 } from "@marigold/system";
3742
+ import React75, { forwardRef as forwardRef16 } from "react";
3743
+ var XLoader = forwardRef16((props, ref) => /* @__PURE__ */ React75.createElement(
3744
+ SVG6,
3427
3745
  {
3428
3746
  id: "XLoader",
3429
3747
  xmlns: "http://www.w3.org/2000/svg",
@@ -3432,14 +3750,14 @@ var XLoader = forwardRef16((props, ref) => /* @__PURE__ */ React72.createElement
3432
3750
  ...props,
3433
3751
  ...ref
3434
3752
  },
3435
- /* @__PURE__ */ React72.createElement("path", { id: "XMLID_1_", d: "M35.3 27h26.5l54 74.1H88.7z" }),
3436
- /* @__PURE__ */ React72.createElement(
3753
+ /* @__PURE__ */ React75.createElement("path", { id: "XMLID_1_", d: "M35.3 27h26.5l54 74.1H88.7z" }),
3754
+ /* @__PURE__ */ React75.createElement(
3437
3755
  "path",
3438
3756
  {
3439
3757
  id: "XMLID_5_",
3440
3758
  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"
3441
3759
  },
3442
- /* @__PURE__ */ React72.createElement(
3760
+ /* @__PURE__ */ React75.createElement(
3443
3761
  "animate",
3444
3762
  {
3445
3763
  attributeName: "opacity",
@@ -3451,13 +3769,13 @@ var XLoader = forwardRef16((props, ref) => /* @__PURE__ */ React72.createElement
3451
3769
  }
3452
3770
  )
3453
3771
  ),
3454
- /* @__PURE__ */ React72.createElement(
3772
+ /* @__PURE__ */ React75.createElement(
3455
3773
  "path",
3456
3774
  {
3457
3775
  id: "XMLID_18_",
3458
3776
  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"
3459
3777
  },
3460
- /* @__PURE__ */ React72.createElement(
3778
+ /* @__PURE__ */ React75.createElement(
3461
3779
  "animate",
3462
3780
  {
3463
3781
  attributeName: "opacity",
@@ -3469,13 +3787,13 @@ var XLoader = forwardRef16((props, ref) => /* @__PURE__ */ React72.createElement
3469
3787
  }
3470
3788
  )
3471
3789
  ),
3472
- /* @__PURE__ */ React72.createElement(
3790
+ /* @__PURE__ */ React75.createElement(
3473
3791
  "path",
3474
3792
  {
3475
3793
  id: "XMLID_19_",
3476
3794
  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"
3477
3795
  },
3478
- /* @__PURE__ */ React72.createElement(
3796
+ /* @__PURE__ */ React75.createElement(
3479
3797
  "animate",
3480
3798
  {
3481
3799
  attributeName: "opacity",
@@ -3487,13 +3805,13 @@ var XLoader = forwardRef16((props, ref) => /* @__PURE__ */ React72.createElement
3487
3805
  }
3488
3806
  )
3489
3807
  ),
3490
- /* @__PURE__ */ React72.createElement(
3808
+ /* @__PURE__ */ React75.createElement(
3491
3809
  "path",
3492
3810
  {
3493
3811
  id: "XMLID_20_",
3494
3812
  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"
3495
3813
  },
3496
- /* @__PURE__ */ React72.createElement(
3814
+ /* @__PURE__ */ React75.createElement(
3497
3815
  "animate",
3498
3816
  {
3499
3817
  attributeName: "opacity",
@@ -3505,13 +3823,13 @@ var XLoader = forwardRef16((props, ref) => /* @__PURE__ */ React72.createElement
3505
3823
  }
3506
3824
  )
3507
3825
  ),
3508
- /* @__PURE__ */ React72.createElement(
3826
+ /* @__PURE__ */ React75.createElement(
3509
3827
  "path",
3510
3828
  {
3511
3829
  id: "XMLID_21_",
3512
3830
  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"
3513
3831
  },
3514
- /* @__PURE__ */ React72.createElement(
3832
+ /* @__PURE__ */ React75.createElement(
3515
3833
  "animate",
3516
3834
  {
3517
3835
  attributeName: "opacity",
@@ -3523,13 +3841,13 @@ var XLoader = forwardRef16((props, ref) => /* @__PURE__ */ React72.createElement
3523
3841
  }
3524
3842
  )
3525
3843
  ),
3526
- /* @__PURE__ */ React72.createElement(
3844
+ /* @__PURE__ */ React75.createElement(
3527
3845
  "path",
3528
3846
  {
3529
3847
  id: "XMLID_22_",
3530
3848
  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"
3531
3849
  },
3532
- /* @__PURE__ */ React72.createElement(
3850
+ /* @__PURE__ */ React75.createElement(
3533
3851
  "animate",
3534
3852
  {
3535
3853
  attributeName: "opacity",
@@ -3541,13 +3859,13 @@ var XLoader = forwardRef16((props, ref) => /* @__PURE__ */ React72.createElement
3541
3859
  }
3542
3860
  )
3543
3861
  ),
3544
- /* @__PURE__ */ React72.createElement(
3862
+ /* @__PURE__ */ React75.createElement(
3545
3863
  "path",
3546
3864
  {
3547
3865
  id: "XMLID_23_",
3548
3866
  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"
3549
3867
  },
3550
- /* @__PURE__ */ React72.createElement(
3868
+ /* @__PURE__ */ React75.createElement(
3551
3869
  "animate",
3552
3870
  {
3553
3871
  attributeName: "opacity",
@@ -3559,13 +3877,13 @@ var XLoader = forwardRef16((props, ref) => /* @__PURE__ */ React72.createElement
3559
3877
  }
3560
3878
  )
3561
3879
  ),
3562
- /* @__PURE__ */ React72.createElement(
3880
+ /* @__PURE__ */ React75.createElement(
3563
3881
  "path",
3564
3882
  {
3565
3883
  id: "XMLID_24_",
3566
3884
  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"
3567
3885
  },
3568
- /* @__PURE__ */ React72.createElement(
3886
+ /* @__PURE__ */ React75.createElement(
3569
3887
  "animate",
3570
3888
  {
3571
3889
  attributeName: "opacity",
@@ -3577,13 +3895,13 @@ var XLoader = forwardRef16((props, ref) => /* @__PURE__ */ React72.createElement
3577
3895
  }
3578
3896
  )
3579
3897
  ),
3580
- /* @__PURE__ */ React72.createElement(
3898
+ /* @__PURE__ */ React75.createElement(
3581
3899
  "path",
3582
3900
  {
3583
3901
  id: "XMLID_25_",
3584
3902
  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"
3585
3903
  },
3586
- /* @__PURE__ */ React72.createElement(
3904
+ /* @__PURE__ */ React75.createElement(
3587
3905
  "animate",
3588
3906
  {
3589
3907
  attributeName: "opacity",
@@ -3595,13 +3913,13 @@ var XLoader = forwardRef16((props, ref) => /* @__PURE__ */ React72.createElement
3595
3913
  }
3596
3914
  )
3597
3915
  ),
3598
- /* @__PURE__ */ React72.createElement(
3916
+ /* @__PURE__ */ React75.createElement(
3599
3917
  "path",
3600
3918
  {
3601
3919
  id: "XMLID_26_",
3602
3920
  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"
3603
3921
  },
3604
- /* @__PURE__ */ React72.createElement(
3922
+ /* @__PURE__ */ React75.createElement(
3605
3923
  "animate",
3606
3924
  {
3607
3925
  attributeName: "opacity",
@@ -3613,13 +3931,13 @@ var XLoader = forwardRef16((props, ref) => /* @__PURE__ */ React72.createElement
3613
3931
  }
3614
3932
  )
3615
3933
  ),
3616
- /* @__PURE__ */ React72.createElement(
3934
+ /* @__PURE__ */ React75.createElement(
3617
3935
  "path",
3618
3936
  {
3619
3937
  id: "XMLID_27_",
3620
3938
  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"
3621
3939
  },
3622
- /* @__PURE__ */ React72.createElement(
3940
+ /* @__PURE__ */ React75.createElement(
3623
3941
  "animate",
3624
3942
  {
3625
3943
  attributeName: "opacity",
@@ -3633,13 +3951,15 @@ var XLoader = forwardRef16((props, ref) => /* @__PURE__ */ React72.createElement
3633
3951
  )
3634
3952
  ));
3635
3953
  export {
3954
+ Accordion,
3955
+ AccordionItem,
3636
3956
  ActionMenu,
3637
3957
  Aside,
3638
3958
  Aspect,
3639
3959
  Autocomplete,
3640
3960
  Badge,
3641
3961
  Body,
3642
- Box,
3962
+ Box4 as Box,
3643
3963
  Breakout,
3644
3964
  Button,
3645
3965
  Card,