@marigold/components 5.0.0 → 5.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/dist/index.js +1498 -1271
  2. package/dist/index.mjs +1494 -1271
  3. package/package.json +5 -5
package/dist/index.mjs CHANGED
@@ -25,23 +25,27 @@ var Aside = ({
25
25
  wrap = "50%"
26
26
  }) => {
27
27
  const [aside, content] = SIDE_MAP[side];
28
- return /* @__PURE__ */ React.createElement(Box, {
29
- css: {
30
- display: "flex",
31
- flexWrap: "wrap",
32
- gap: space,
33
- alignItems: stretch ? void 0 : "flex-start",
34
- [`> ${aside}`]: {
35
- flexBasis: sideWidth,
36
- flexGrow: 1
37
- },
38
- [`> ${content}`]: {
39
- flexBasis: 0,
40
- flexGrow: 999,
41
- minInlineSize: wrap
28
+ return /* @__PURE__ */ React.createElement(
29
+ Box,
30
+ {
31
+ css: {
32
+ display: "flex",
33
+ flexWrap: "wrap",
34
+ gap: space,
35
+ alignItems: stretch ? void 0 : "flex-start",
36
+ [`> ${aside}`]: {
37
+ flexBasis: sideWidth,
38
+ flexGrow: 1
39
+ },
40
+ [`> ${content}`]: {
41
+ flexBasis: 0,
42
+ flexGrow: 999,
43
+ minInlineSize: wrap
44
+ }
42
45
  }
43
- }
44
- }, children);
46
+ },
47
+ children
48
+ );
45
49
  };
46
50
 
47
51
  // src/Aspect/Aspect.tsx
@@ -51,23 +55,24 @@ var Aspect = ({
51
55
  ratio = "square",
52
56
  maxWidth,
53
57
  children
54
- }) => /* @__PURE__ */ React2.createElement(Box, {
55
- css: {
56
- aspectRatio: aspect[ratio],
57
- overflow: "hidden",
58
- maxWidth
59
- }
60
- }, children);
58
+ }) => /* @__PURE__ */ React2.createElement(
59
+ Box,
60
+ {
61
+ css: {
62
+ aspectRatio: aspect[ratio],
63
+ overflow: "hidden",
64
+ maxWidth
65
+ }
66
+ },
67
+ children
68
+ );
61
69
 
62
70
  // src/Badge/Badge.tsx
63
71
  import React3 from "react";
64
72
  import { useComponentStyles } from "@marigold/system";
65
73
  var Badge = ({ variant, size, children, ...props }) => {
66
74
  const styles = useComponentStyles("Badge", { variant, size });
67
- return /* @__PURE__ */ React3.createElement(Box, {
68
- ...props,
69
- css: styles
70
- }, children);
75
+ return /* @__PURE__ */ React3.createElement(Box, { ...props, css: styles }, children);
71
76
  };
72
77
 
73
78
  // src/Breakout/Breakout.tsx
@@ -92,17 +97,21 @@ var Breakout = ({
92
97
  }) => {
93
98
  const alignItems = useAlignment(alignY);
94
99
  const justifyContent = useAlignment(alignX);
95
- return /* @__PURE__ */ React4.createElement(Box, {
96
- css: {
97
- alignItems,
98
- justifyContent,
99
- height,
100
- width: "100%",
101
- display: alignY || alignX ? "flex" : "block",
102
- gridColumn: "1 / -1 !important"
100
+ return /* @__PURE__ */ React4.createElement(
101
+ Box,
102
+ {
103
+ css: {
104
+ alignItems,
105
+ justifyContent,
106
+ height,
107
+ width: "100%",
108
+ display: alignY || alignX ? "flex" : "block",
109
+ gridColumn: "1 / -1 !important"
110
+ },
111
+ ...props
103
112
  },
104
- ...props
105
- }, children);
113
+ children
114
+ );
106
115
  };
107
116
 
108
117
  // src/Body/Body.tsx
@@ -113,11 +122,7 @@ import {
113
122
  } from "@marigold/system";
114
123
  var Body = ({ children, variant, size, ...props }) => {
115
124
  const styles = useComponentStyles2("Body", { variant, size });
116
- return /* @__PURE__ */ React5.createElement(Box2, {
117
- as: "section",
118
- ...props,
119
- css: styles
120
- }, children);
125
+ return /* @__PURE__ */ React5.createElement(Box2, { as: "section", ...props, css: styles }, children);
121
126
  };
122
127
 
123
128
  // src/Button/Button.tsx
@@ -154,6 +159,10 @@ var Button = forwardRef(
154
159
  });
155
160
  const { buttonProps, isPressed } = useButton(
156
161
  {
162
+ /**
163
+ * `react-aria` only expected `Element` but we casted
164
+ * it to a `HTMLButtonElement` internally.
165
+ */
157
166
  ...props,
158
167
  onClick,
159
168
  onPress,
@@ -172,24 +181,28 @@ var Button = forwardRef(
172
181
  focusVisible: isFocusVisible,
173
182
  hover: isHovered
174
183
  });
175
- return /* @__PURE__ */ React6.createElement(Box3, {
176
- ...mergeProps(buttonProps, focusProps, hoverProps, props),
177
- ...stateProps,
178
- as,
179
- ref: buttonRef,
180
- __baseCSS: {
181
- display: "inline-flex",
182
- alignItems: "center",
183
- justifyContent: "center",
184
- gap: "0.5ch",
185
- cursor: disabled ? "not-allowed" : "pointer",
186
- width: fullWidth ? "100%" : void 0,
187
- "&:focus": {
188
- outline: 0
189
- }
184
+ return /* @__PURE__ */ React6.createElement(
185
+ Box3,
186
+ {
187
+ ...mergeProps(buttonProps, focusProps, hoverProps, props),
188
+ ...stateProps,
189
+ as,
190
+ ref: buttonRef,
191
+ __baseCSS: {
192
+ display: "inline-flex",
193
+ alignItems: "center",
194
+ justifyContent: "center",
195
+ gap: "0.5ch",
196
+ cursor: disabled ? "not-allowed" : "pointer",
197
+ width: fullWidth ? "100%" : void 0,
198
+ "&:focus": {
199
+ outline: 0
200
+ }
201
+ },
202
+ css: styles
190
203
  },
191
- css: styles
192
- }, children);
204
+ children
205
+ );
193
206
  }
194
207
  );
195
208
 
@@ -213,10 +226,7 @@ var Card = ({
213
226
  ...props
214
227
  }) => {
215
228
  const styles = useComponentStyles4("Card", { variant, size });
216
- return /* @__PURE__ */ React7.createElement(Box4, {
217
- ...props,
218
- css: [styles, { p, px, py, pt, pb, pl, pr }]
219
- }, children);
229
+ return /* @__PURE__ */ React7.createElement(Box4, { ...props, css: [styles, { p, px, py, pt, pb, pl, pr }] }, children);
220
230
  };
221
231
 
222
232
  // src/Center/Center.tsx
@@ -226,19 +236,23 @@ var Center = ({
226
236
  space = "none",
227
237
  children,
228
238
  ...props
229
- }) => /* @__PURE__ */ React8.createElement(Box, {
230
- css: {
231
- boxSizing: "content-box",
232
- display: "flex",
233
- flexDirection: "column",
234
- alignItems: "center",
235
- justifyContent: "center",
236
- marginInline: "auto",
237
- maxInlineSize: maxWidth,
238
- gap: space
239
+ }) => /* @__PURE__ */ React8.createElement(
240
+ Box,
241
+ {
242
+ css: {
243
+ boxSizing: "content-box",
244
+ display: "flex",
245
+ flexDirection: "column",
246
+ alignItems: "center",
247
+ justifyContent: "center",
248
+ marginInline: "auto",
249
+ maxInlineSize: maxWidth,
250
+ gap: space
251
+ },
252
+ ...props
239
253
  },
240
- ...props
241
- }, children);
254
+ children
255
+ );
242
256
 
243
257
  // src/Checkbox/Checkbox.tsx
244
258
  import React14, { forwardRef as forwardRef2 } from "react";
@@ -281,23 +295,21 @@ var Label = ({
281
295
  ...props
282
296
  }) => {
283
297
  const styles = useComponentStyles5("Label", { size, variant });
284
- return /* @__PURE__ */ React9.createElement(Box5, {
285
- ...props,
286
- as,
287
- "aria-required": required,
288
- __baseCSS: {
289
- display: "flex",
290
- width: labelWidth
298
+ return /* @__PURE__ */ React9.createElement(
299
+ Box5,
300
+ {
301
+ ...props,
302
+ as,
303
+ "aria-required": required,
304
+ __baseCSS: {
305
+ display: "flex",
306
+ width: labelWidth
307
+ },
308
+ css: styles
291
309
  },
292
- css: styles
293
- }, children, required && /* @__PURE__ */ React9.createElement(SVG, {
294
- viewBox: "0 0 24 24",
295
- role: "presentation",
296
- size: 16,
297
- fill: "error"
298
- }, /* @__PURE__ */ React9.createElement("path", {
299
- 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"
300
- })));
310
+ children,
311
+ required && /* @__PURE__ */ React9.createElement(SVG, { viewBox: "0 0 24 24", role: "presentation", size: 16, fill: "error" }, /* @__PURE__ */ React9.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" }))
312
+ );
301
313
  };
302
314
 
303
315
  // src/HelpText/HelpText.tsx
@@ -325,18 +337,24 @@ var HelpText = ({
325
337
  { variant, size },
326
338
  { parts: ["container", "icon"] }
327
339
  );
328
- return /* @__PURE__ */ React10.createElement(Box6, {
329
- ...hasErrorMessage ? errorMessageProps : descriptionProps,
330
- ...props,
331
- __baseCSS: { display: "flex", alignItems: "center", gap: 4 },
332
- css: styles.container
333
- }, hasErrorMessage ? /* @__PURE__ */ React10.createElement(React10.Fragment, null, /* @__PURE__ */ React10.createElement(SVG2, {
334
- viewBox: "0 0 24 24",
335
- role: "presentation",
336
- size: ((_a = styles == null ? void 0 : styles.icon) == null ? void 0 : _a.size) || 16
337
- }, /* @__PURE__ */ React10.createElement("path", {
338
- 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"
339
- })), errorMessage) : /* @__PURE__ */ React10.createElement(React10.Fragment, null, description));
340
+ return /* @__PURE__ */ React10.createElement(
341
+ Box6,
342
+ {
343
+ ...hasErrorMessage ? errorMessageProps : descriptionProps,
344
+ ...props,
345
+ __baseCSS: { display: "flex", alignItems: "center", gap: 4 },
346
+ css: styles.container
347
+ },
348
+ hasErrorMessage ? /* @__PURE__ */ React10.createElement(React10.Fragment, null, /* @__PURE__ */ React10.createElement(
349
+ SVG2,
350
+ {
351
+ viewBox: "0 0 24 24",
352
+ role: "presentation",
353
+ size: ((_a = styles == null ? void 0 : styles.icon) == null ? void 0 : _a.size) || 16
354
+ },
355
+ /* @__PURE__ */ React10.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" })
356
+ ), errorMessage) : /* @__PURE__ */ React10.createElement(React10.Fragment, null, description)
357
+ );
340
358
  };
341
359
 
342
360
  // src/FieldBase/FieldGroup.tsx
@@ -345,9 +363,7 @@ import { createContext, useContext } from "react";
345
363
  var FieldGroupContext = createContext({});
346
364
  var useFieldGroupContext = () => useContext(FieldGroupContext);
347
365
  var FieldGroup = ({ labelWidth, children }) => {
348
- return /* @__PURE__ */ React11.createElement(FieldGroupContext.Provider, {
349
- value: { labelWidth }
350
- }, children);
366
+ return /* @__PURE__ */ React11.createElement(FieldGroupContext.Provider, { value: { labelWidth } }, children);
351
367
  };
352
368
 
353
369
  // src/FieldBase/FieldBase.tsx
@@ -371,35 +387,45 @@ var FieldBase = ({
371
387
  const hasHelpText = !!description || errorMessage && error;
372
388
  const style = useComponentStyles7("Field", { variant, size });
373
389
  const { labelWidth } = useFieldGroupContext();
374
- return /* @__PURE__ */ React12.createElement(Box7, {
375
- ...props,
376
- __baseCSS: {
377
- display: "flex",
378
- flexDirection: "column",
379
- width,
380
- position: "relative"
390
+ return /* @__PURE__ */ React12.createElement(
391
+ Box7,
392
+ {
393
+ ...props,
394
+ __baseCSS: {
395
+ display: "flex",
396
+ flexDirection: "column",
397
+ width,
398
+ position: "relative"
399
+ },
400
+ css: style
381
401
  },
382
- css: style
383
- }, label && /* @__PURE__ */ React12.createElement(Label, {
384
- required,
385
- variant,
386
- size,
387
- labelWidth,
388
- ...labelProps,
389
- ...stateProps
390
- }, label), /* @__PURE__ */ React12.createElement(Box7, {
391
- __baseCSS: { display: "flex", flexDirection: "column" }
392
- }, children, hasHelpText && /* @__PURE__ */ React12.createElement(HelpText, {
393
- ...stateProps,
394
- variant,
395
- size,
396
- disabled,
397
- description,
398
- descriptionProps,
399
- error,
400
- errorMessage,
401
- errorMessageProps
402
- })));
402
+ label && /* @__PURE__ */ React12.createElement(
403
+ Label,
404
+ {
405
+ required,
406
+ variant,
407
+ size,
408
+ labelWidth,
409
+ ...labelProps,
410
+ ...stateProps
411
+ },
412
+ label
413
+ ),
414
+ /* @__PURE__ */ React12.createElement(Box7, { __baseCSS: { display: "flex", flexDirection: "column" } }, children, hasHelpText && /* @__PURE__ */ React12.createElement(
415
+ HelpText,
416
+ {
417
+ ...stateProps,
418
+ variant,
419
+ size,
420
+ disabled,
421
+ description,
422
+ descriptionProps,
423
+ error,
424
+ errorMessage,
425
+ errorMessageProps
426
+ }
427
+ ))
428
+ );
403
429
  };
404
430
 
405
431
  // src/Checkbox/CheckboxGroup.tsx
@@ -429,64 +455,74 @@ var CheckboxGroup = ({
429
455
  readOnly,
430
456
  error
431
457
  });
432
- return /* @__PURE__ */ React13.createElement(FieldBase, {
433
- label: props.label,
434
- labelProps: { as: "span", ...labelProps },
435
- description: props.description,
436
- descriptionProps,
437
- error,
438
- errorMessage: props.errorMessage,
439
- errorMessageProps,
440
- disabled,
441
- stateProps,
442
- required,
443
- ...groupProps
444
- }, /* @__PURE__ */ React13.createElement(Box8, {
445
- role: "presentation",
446
- __baseCSS: {
447
- display: "flex",
448
- flexDirection: "column",
449
- alignItems: "start"
450
- }
451
- }, /* @__PURE__ */ React13.createElement(CheckboxGroupContext.Provider, {
452
- value: { error, ...state }
453
- }, children)));
458
+ return /* @__PURE__ */ React13.createElement(
459
+ FieldBase,
460
+ {
461
+ label: props.label,
462
+ labelProps: { as: "span", ...labelProps },
463
+ description: props.description,
464
+ descriptionProps,
465
+ error,
466
+ errorMessage: props.errorMessage,
467
+ errorMessageProps,
468
+ disabled,
469
+ stateProps,
470
+ required,
471
+ ...groupProps
472
+ },
473
+ /* @__PURE__ */ React13.createElement(
474
+ Box8,
475
+ {
476
+ role: "presentation",
477
+ __baseCSS: {
478
+ display: "flex",
479
+ flexDirection: "column",
480
+ alignItems: "start"
481
+ }
482
+ },
483
+ /* @__PURE__ */ React13.createElement(CheckboxGroupContext.Provider, { value: { error, ...state } }, children)
484
+ )
485
+ );
454
486
  };
455
487
 
456
488
  // src/Checkbox/Checkbox.tsx
457
- var CheckMark = () => /* @__PURE__ */ React14.createElement("svg", {
458
- viewBox: "0 0 12 10"
459
- }, /* @__PURE__ */ React14.createElement("path", {
460
- fill: "currentColor",
461
- stroke: "none",
462
- 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"
463
- }));
464
- var IndeterminateMark = () => /* @__PURE__ */ React14.createElement("svg", {
465
- width: "12",
466
- height: "3",
467
- viewBox: "0 0 12 3"
468
- }, /* @__PURE__ */ React14.createElement("path", {
469
- fill: "currentColor",
470
- stroke: "none",
471
- d: "M11.5 2.04018H0.5V0.46875H11.5V2.04018Z"
472
- }));
473
- var Icon = ({ css, checked, indeterminate, ...props }) => /* @__PURE__ */ React14.createElement(Box9, {
474
- "aria-hidden": "true",
475
- __baseCSS: {
476
- flex: "0 0 16px",
477
- width: 16,
478
- height: 16,
479
- bg: "#fff",
480
- border: "1px solid #000",
481
- borderRadius: 3,
482
- display: "flex",
483
- alignItems: "center",
484
- justifyContent: "center",
485
- p: 1
489
+ var CheckMark = () => /* @__PURE__ */ React14.createElement("svg", { viewBox: "0 0 12 10" }, /* @__PURE__ */ React14.createElement(
490
+ "path",
491
+ {
492
+ fill: "currentColor",
493
+ stroke: "none",
494
+ 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"
495
+ }
496
+ ));
497
+ var IndeterminateMark = () => /* @__PURE__ */ React14.createElement("svg", { width: "12", height: "3", viewBox: "0 0 12 3" }, /* @__PURE__ */ React14.createElement(
498
+ "path",
499
+ {
500
+ fill: "currentColor",
501
+ stroke: "none",
502
+ d: "M11.5 2.04018H0.5V0.46875H11.5V2.04018Z"
503
+ }
504
+ ));
505
+ var Icon = ({ css, checked, indeterminate, ...props }) => /* @__PURE__ */ React14.createElement(
506
+ Box9,
507
+ {
508
+ "aria-hidden": "true",
509
+ __baseCSS: {
510
+ flex: "0 0 16px",
511
+ width: 16,
512
+ height: 16,
513
+ bg: "#fff",
514
+ border: "1px solid #000",
515
+ borderRadius: 3,
516
+ display: "flex",
517
+ alignItems: "center",
518
+ justifyContent: "center",
519
+ p: 1
520
+ },
521
+ css,
522
+ ...props
486
523
  },
487
- css,
488
- ...props
489
- }, indeterminate ? /* @__PURE__ */ React14.createElement(IndeterminateMark, null) : checked ? /* @__PURE__ */ React14.createElement(CheckMark, null) : null);
524
+ indeterminate ? /* @__PURE__ */ React14.createElement(IndeterminateMark, null) : checked ? /* @__PURE__ */ React14.createElement(CheckMark, null) : null
525
+ );
490
526
  var Checkbox = forwardRef2(
491
527
  ({
492
528
  size,
@@ -513,6 +549,10 @@ var Checkbox = forwardRef2(
513
549
  {
514
550
  ...props,
515
551
  ...checkboxProps,
552
+ /**
553
+ * value is optional for standalone checkboxes, but required when
554
+ * used inside a group.
555
+ */
516
556
  value: props.value
517
557
  },
518
558
  groupState,
@@ -551,41 +591,50 @@ var Checkbox = forwardRef2(
551
591
  readOnly,
552
592
  indeterminate
553
593
  });
554
- return /* @__PURE__ */ React14.createElement(Box9, {
555
- as: "label",
556
- __baseCSS: {
557
- display: "flex",
558
- alignItems: "center",
559
- gap: "1ch",
560
- position: "relative"
561
- },
562
- css: styles.container,
563
- ...hoverProps,
564
- ...stateProps
565
- }, /* @__PURE__ */ React14.createElement(Box9, {
566
- as: "input",
567
- ref: inputRef,
568
- css: {
569
- position: "absolute",
570
- width: "100%",
571
- height: "100%",
572
- top: 0,
573
- left: 0,
574
- zIndex: 1,
575
- opacity: 1e-4,
576
- cursor: inputProps.disabled ? "not-allowed" : "pointer"
594
+ return /* @__PURE__ */ React14.createElement(
595
+ Box9,
596
+ {
597
+ as: "label",
598
+ __baseCSS: {
599
+ display: "flex",
600
+ alignItems: "center",
601
+ gap: "1ch",
602
+ position: "relative"
603
+ },
604
+ css: styles.container,
605
+ ...hoverProps,
606
+ ...stateProps
577
607
  },
578
- ...inputProps,
579
- ...focusProps
580
- }), /* @__PURE__ */ React14.createElement(Icon, {
581
- checked: inputProps.checked,
582
- indeterminate,
583
- css: styles.checkbox,
584
- ...stateProps
585
- }), props.children && /* @__PURE__ */ React14.createElement(Box9, {
586
- css: styles.label,
587
- ...stateProps
588
- }, props.children));
608
+ /* @__PURE__ */ React14.createElement(
609
+ Box9,
610
+ {
611
+ as: "input",
612
+ ref: inputRef,
613
+ css: {
614
+ position: "absolute",
615
+ width: "100%",
616
+ height: "100%",
617
+ top: 0,
618
+ left: 0,
619
+ zIndex: 1,
620
+ opacity: 1e-4,
621
+ cursor: inputProps.disabled ? "not-allowed" : "pointer"
622
+ },
623
+ ...inputProps,
624
+ ...focusProps
625
+ }
626
+ ),
627
+ /* @__PURE__ */ React14.createElement(
628
+ Icon,
629
+ {
630
+ checked: inputProps.checked,
631
+ indeterminate,
632
+ css: styles.checkbox,
633
+ ...stateProps
634
+ }
635
+ ),
636
+ props.children && /* @__PURE__ */ React14.createElement(Box9, { css: styles.label, ...stateProps }, props.children)
637
+ );
589
638
  }
590
639
  );
591
640
 
@@ -610,23 +659,36 @@ var Columns = ({
610
659
  )}`
611
660
  );
612
661
  }
613
- return /* @__PURE__ */ React15.createElement(Box, {
614
- css: {
615
- display: "flex",
616
- flexWrap: "wrap",
617
- alignItems: "stretch",
618
- height: stretch ? "100%" : void 0,
619
- gap: space,
620
- "> *": {
621
- flexBasis: `calc(( ${collapseAt} - 100%) * 999)`
622
- }
662
+ return /* @__PURE__ */ React15.createElement(
663
+ Box,
664
+ {
665
+ css: {
666
+ display: "flex",
667
+ flexWrap: "wrap",
668
+ alignItems: "stretch",
669
+ height: stretch ? "100%" : void 0,
670
+ gap: space,
671
+ "> *": {
672
+ /**
673
+ * "Container Query": collapses at given width
674
+ * (https://heydonworks.com/article/the-flexbox-holy-albatross/)
675
+ */
676
+ flexBasis: `calc(( ${collapseAt} - 100%) * 999)`
677
+ }
678
+ },
679
+ ...props
623
680
  },
624
- ...props
625
- }, Children.map(children, (child, idx) => /* @__PURE__ */ React15.createElement(Box, {
626
- css: {
627
- flexGrow: columns[idx]
628
- }
629
- }, isValidElement(child) ? cloneElement(child) : child)));
681
+ Children.map(children, (child, idx) => /* @__PURE__ */ React15.createElement(
682
+ Box,
683
+ {
684
+ css: {
685
+ // Stretch each column to the given value
686
+ flexGrow: columns[idx]
687
+ }
688
+ },
689
+ isValidElement(child) ? cloneElement(child) : child
690
+ ))
691
+ );
630
692
  };
631
693
 
632
694
  // src/Container/Container.tsx
@@ -661,17 +723,21 @@ var Container = ({
661
723
  ...props
662
724
  }) => {
663
725
  const maxWidth = tokenSize[contentType][size];
664
- return /* @__PURE__ */ React16.createElement(Box, {
665
- css: {
666
- display: "grid",
667
- gridTemplateColumns: ALIGN[align](maxWidth).gridTemplateColumns,
668
- placeItems: ALIGN_ITEMS[alignItems],
669
- "> *": {
670
- gridColumn: ALIGN[align](maxWidth).gridColumn
671
- }
726
+ return /* @__PURE__ */ React16.createElement(
727
+ Box,
728
+ {
729
+ css: {
730
+ display: "grid",
731
+ gridTemplateColumns: ALIGN[align](maxWidth).gridTemplateColumns,
732
+ placeItems: ALIGN_ITEMS[alignItems],
733
+ "> *": {
734
+ gridColumn: ALIGN[align](maxWidth).gridColumn
735
+ }
736
+ },
737
+ ...props
672
738
  },
673
- ...props
674
- }, children);
739
+ children
740
+ );
675
741
  };
676
742
 
677
743
  // src/Dialog/Dialog.tsx
@@ -690,11 +756,7 @@ import {
690
756
  } from "@marigold/system";
691
757
  var Header = ({ children, variant, size, ...props }) => {
692
758
  const styles = useComponentStyles9("Header", { variant, size });
693
- return /* @__PURE__ */ React17.createElement(Box, {
694
- as: "header",
695
- ...props,
696
- css: styles
697
- }, children);
759
+ return /* @__PURE__ */ React17.createElement(Box, { as: "header", ...props, css: styles }, children);
698
760
  };
699
761
 
700
762
  // src/Headline/Headline.tsx
@@ -716,11 +778,15 @@ var Headline = ({
716
778
  variant,
717
779
  size: size != null ? size : `level-${level}`
718
780
  });
719
- return /* @__PURE__ */ React18.createElement(Box10, {
720
- as: `h${level}`,
721
- ...props,
722
- css: [styles, { color, textAlign: align }]
723
- }, children);
781
+ return /* @__PURE__ */ React18.createElement(
782
+ Box10,
783
+ {
784
+ as: `h${level}`,
785
+ ...props,
786
+ css: [styles, { color, textAlign: align }]
787
+ },
788
+ children
789
+ );
724
790
  };
725
791
 
726
792
  // src/Dialog/Context.ts
@@ -744,15 +810,18 @@ import React19 from "react";
744
810
  import { Box as Box11, useComponentStyles as useComponentStyles11 } from "@marigold/system";
745
811
  var Underlay = ({ size, variant, ...props }) => {
746
812
  const styles = useComponentStyles11("Underlay", { size, variant });
747
- return /* @__PURE__ */ React19.createElement(Box11, {
748
- __baseCSS: {
749
- position: "fixed",
750
- inset: 0,
751
- zIndex: 1
752
- },
753
- css: styles,
754
- ...props
755
- });
813
+ return /* @__PURE__ */ React19.createElement(
814
+ Box11,
815
+ {
816
+ __baseCSS: {
817
+ position: "fixed",
818
+ inset: 0,
819
+ zIndex: 1
820
+ },
821
+ css: styles,
822
+ ...props
823
+ }
824
+ );
756
825
  };
757
826
 
758
827
  // src/Overlay/Modal.tsx
@@ -770,28 +839,23 @@ var Modal = forwardRef3(
770
839
  );
771
840
  usePreventScroll();
772
841
  const { modalProps } = useModal({});
773
- return /* @__PURE__ */ React20.createElement(FocusScope, {
774
- contain: true,
775
- restoreFocus: true,
776
- autoFocus: true
777
- }, /* @__PURE__ */ React20.createElement(Underlay, {
778
- ...underlayProps,
779
- variant: "modal"
780
- }), /* @__PURE__ */ React20.createElement("div", {
781
- style: {
782
- display: "flex",
783
- alignItems: "center",
784
- justifyContent: "center",
785
- position: "fixed",
786
- inset: 0,
787
- zIndex: 2,
788
- pointerEvents: "none"
842
+ return /* @__PURE__ */ React20.createElement(FocusScope, { contain: true, restoreFocus: true, autoFocus: true }, /* @__PURE__ */ React20.createElement(Underlay, { ...underlayProps, variant: "modal" }), /* @__PURE__ */ React20.createElement(
843
+ "div",
844
+ {
845
+ style: {
846
+ display: "flex",
847
+ alignItems: "center",
848
+ justifyContent: "center",
849
+ position: "fixed",
850
+ inset: 0,
851
+ zIndex: 2,
852
+ pointerEvents: "none"
853
+ },
854
+ ref: modalRef,
855
+ ...mergeProps2(props, overlayProps, modalProps)
789
856
  },
790
- ref: modalRef,
791
- ...mergeProps2(props, overlayProps, modalProps)
792
- }, /* @__PURE__ */ React20.createElement("div", {
793
- style: { pointerEvents: "auto" }
794
- }, children)));
857
+ /* @__PURE__ */ React20.createElement("div", { style: { pointerEvents: "auto" } }, children)
858
+ ));
795
859
  }
796
860
  );
797
861
 
@@ -819,21 +883,18 @@ var Overlay = ({ children, container, open }) => {
819
883
  if (!mountOverlay) {
820
884
  return null;
821
885
  }
822
- return /* @__PURE__ */ React21.createElement(ReactAriaOverlay, {
823
- portalContainer: container
824
- }, /* @__PURE__ */ React21.createElement(Transition, {
825
- nodeRef,
826
- timeout: duration,
827
- in: open,
828
- appear: true
829
- }, (state) => /* @__PURE__ */ React21.createElement("div", {
830
- ref: nodeRef,
831
- "data-testid": "overlay",
832
- style: {
833
- ...defaultStyle,
834
- ...transitionStyles[state]
835
- }
836
- }, children)));
886
+ return /* @__PURE__ */ React21.createElement(ReactAriaOverlay, { portalContainer: container }, /* @__PURE__ */ React21.createElement(Transition, { nodeRef, timeout: duration, in: open, appear: true }, (state) => /* @__PURE__ */ React21.createElement(
887
+ "div",
888
+ {
889
+ ref: nodeRef,
890
+ "data-testid": "overlay",
891
+ style: {
892
+ ...defaultStyle,
893
+ ...transitionStyles[state]
894
+ }
895
+ },
896
+ children
897
+ )));
837
898
  };
838
899
 
839
900
  // src/Overlay/Popover.tsx
@@ -848,13 +909,7 @@ var Popover = forwardRef4(
848
909
  (props, ref) => {
849
910
  const popoverRef = useObjectRef4(ref);
850
911
  let { children, state, ...otherProps } = props;
851
- return /* @__PURE__ */ React22.createElement(Overlay, {
852
- open: state.isOpen,
853
- ...otherProps
854
- }, /* @__PURE__ */ React22.createElement(PopoverWrapper, {
855
- ref: popoverRef,
856
- ...props
857
- }, children));
912
+ return /* @__PURE__ */ React22.createElement(Overlay, { open: state.isOpen, ...otherProps }, /* @__PURE__ */ React22.createElement(PopoverWrapper, { ref: popoverRef, ...props }, children));
858
913
  }
859
914
  );
860
915
  var PopoverWrapper = forwardRef4(
@@ -875,23 +930,21 @@ var PopoverWrapper = forwardRef4(
875
930
  },
876
931
  state
877
932
  );
878
- return /* @__PURE__ */ React22.createElement(FocusScope2, {
879
- restoreFocus: true
880
- }, !isNonModal && /* @__PURE__ */ React22.createElement(Underlay, {
881
- ...underlayProps
882
- }), /* @__PURE__ */ React22.createElement("div", {
883
- ...popoverProps,
884
- style: {
885
- ...popoverProps.style,
886
- minWidth: props.triggerRef.current ? props.triggerRef.current.offsetWidth : void 0
933
+ return /* @__PURE__ */ React22.createElement(FocusScope2, { restoreFocus: true }, !isNonModal && /* @__PURE__ */ React22.createElement(Underlay, { ...underlayProps }), /* @__PURE__ */ React22.createElement(
934
+ "div",
935
+ {
936
+ ...popoverProps,
937
+ style: {
938
+ ...popoverProps.style,
939
+ minWidth: props.triggerRef.current ? props.triggerRef.current.offsetWidth : void 0
940
+ },
941
+ ref,
942
+ role: "presentation"
887
943
  },
888
- ref,
889
- role: "presentation"
890
- }, !isNonModal && /* @__PURE__ */ React22.createElement(DismissButton, {
891
- onDismiss: state.close
892
- }), children, /* @__PURE__ */ React22.createElement(DismissButton, {
893
- onDismiss: state.close
894
- })));
944
+ !isNonModal && /* @__PURE__ */ React22.createElement(DismissButton, { onDismiss: state.close }),
945
+ children,
946
+ /* @__PURE__ */ React22.createElement(DismissButton, { onDismiss: state.close })
947
+ ));
895
948
  }
896
949
  );
897
950
 
@@ -908,13 +961,7 @@ import { forwardRef as forwardRef5 } from "react";
908
961
  var Tray = forwardRef5(
909
962
  ({ state, children, ...props }, ref) => {
910
963
  const trayRef = useObjectRef5(ref);
911
- return /* @__PURE__ */ React23.createElement(Overlay, {
912
- open: state.isOpen
913
- }, /* @__PURE__ */ React23.createElement(TrayWrapper, {
914
- state,
915
- ...props,
916
- ref: trayRef
917
- }, children));
964
+ return /* @__PURE__ */ React23.createElement(Overlay, { open: state.isOpen }, /* @__PURE__ */ React23.createElement(TrayWrapper, { state, ...props, ref: trayRef }, children));
918
965
  }
919
966
  );
920
967
  var TrayWrapper = forwardRef5(
@@ -927,23 +974,18 @@ var TrayWrapper = forwardRef5(
927
974
  state,
928
975
  ref
929
976
  );
930
- return /* @__PURE__ */ React23.createElement(FocusScope3, {
931
- contain: true,
932
- restoreFocus: true,
933
- autoFocus: true
934
- }, /* @__PURE__ */ React23.createElement(Underlay, {
935
- ...underlayProps,
936
- variant: "modal"
937
- }, /* @__PURE__ */ React23.createElement(Box12, {
938
- ...modalProps,
939
- ref,
940
- __baseCSS: { position: "absolute", width: "100%", bottom: 0 },
941
- "data-testid": "tray"
942
- }, /* @__PURE__ */ React23.createElement(DismissButton2, {
943
- onDismiss: state.close
944
- }), children, /* @__PURE__ */ React23.createElement(DismissButton2, {
945
- onDismiss: state.close
946
- }))));
977
+ return /* @__PURE__ */ React23.createElement(FocusScope3, { contain: true, restoreFocus: true, autoFocus: true }, /* @__PURE__ */ React23.createElement(Underlay, { ...underlayProps, variant: "modal" }, /* @__PURE__ */ React23.createElement(
978
+ Box12,
979
+ {
980
+ ...modalProps,
981
+ ref,
982
+ __baseCSS: { position: "absolute", width: "100%", bottom: 0 },
983
+ "data-testid": "tray"
984
+ },
985
+ /* @__PURE__ */ React23.createElement(DismissButton2, { onDismiss: state.close }),
986
+ children,
987
+ /* @__PURE__ */ React23.createElement(DismissButton2, { onDismiss: state.close })
988
+ )));
947
989
  }
948
990
  );
949
991
 
@@ -957,20 +999,24 @@ var DialogTrigger = ({
957
999
  const dialogTriggerRef = useRef2(null);
958
1000
  const state = useOverlayTriggerState({});
959
1001
  const ctx = { open: state.isOpen, close: state.close };
960
- return /* @__PURE__ */ React24.createElement(DialogContext.Provider, {
961
- value: ctx
962
- }, /* @__PURE__ */ React24.createElement(PressResponder, {
963
- ref: dialogTriggerRef,
964
- isPressed: state.isOpen,
965
- onPress: state.toggle
966
- }, dialogTrigger), /* @__PURE__ */ React24.createElement(Overlay, {
967
- open: state.isOpen
968
- }, /* @__PURE__ */ React24.createElement(Modal, {
969
- open: state.isOpen,
970
- onClose: state.close,
971
- dismissable,
972
- keyboardDismissable
973
- }, dialog)));
1002
+ return /* @__PURE__ */ React24.createElement(DialogContext.Provider, { value: ctx }, /* @__PURE__ */ React24.createElement(
1003
+ PressResponder,
1004
+ {
1005
+ ref: dialogTriggerRef,
1006
+ isPressed: state.isOpen,
1007
+ onPress: state.toggle
1008
+ },
1009
+ dialogTrigger
1010
+ ), /* @__PURE__ */ React24.createElement(Overlay, { open: state.isOpen }, /* @__PURE__ */ React24.createElement(
1011
+ Modal,
1012
+ {
1013
+ open: state.isOpen,
1014
+ onClose: state.close,
1015
+ dismissable,
1016
+ keyboardDismissable
1017
+ },
1018
+ dialog
1019
+ )));
974
1020
  };
975
1021
 
976
1022
  // src/Dialog/DialogController.tsx
@@ -988,16 +1034,16 @@ var DialogController = ({
988
1034
  onOpenChange
989
1035
  });
990
1036
  const ctx = { open: state.isOpen, close: state.close };
991
- return /* @__PURE__ */ React25.createElement(DialogContext.Provider, {
992
- value: ctx
993
- }, /* @__PURE__ */ React25.createElement(Overlay, {
994
- open: state.isOpen
995
- }, /* @__PURE__ */ React25.createElement(Modal, {
996
- open: state.isOpen,
997
- onClose: state.close,
998
- dismissable,
999
- keyboardDismissable
1000
- }, children)));
1037
+ return /* @__PURE__ */ React25.createElement(DialogContext.Provider, { value: ctx }, /* @__PURE__ */ React25.createElement(Overlay, { open: state.isOpen }, /* @__PURE__ */ React25.createElement(
1038
+ Modal,
1039
+ {
1040
+ open: state.isOpen,
1041
+ onClose: state.close,
1042
+ dismissable,
1043
+ keyboardDismissable
1044
+ },
1045
+ children
1046
+ )));
1001
1047
  };
1002
1048
 
1003
1049
  // src/Dialog/Dialog.tsx
@@ -1010,30 +1056,32 @@ var CloseButton = ({ css }) => {
1010
1056
  },
1011
1057
  ref
1012
1058
  );
1013
- return /* @__PURE__ */ React26.createElement(Box13, {
1014
- css: { display: "flex", justifyContent: "flex-end" }
1015
- }, /* @__PURE__ */ React26.createElement(Box13, {
1016
- as: "button",
1017
- __baseCSS: {
1018
- outline: "none",
1019
- border: "none",
1020
- cursor: "pointer",
1021
- height: 16,
1022
- width: 16,
1023
- lineHeight: 1,
1024
- p: 0
1059
+ return /* @__PURE__ */ React26.createElement(Box13, { css: { display: "flex", justifyContent: "flex-end" } }, /* @__PURE__ */ React26.createElement(
1060
+ Box13,
1061
+ {
1062
+ as: "button",
1063
+ __baseCSS: {
1064
+ outline: "none",
1065
+ border: "none",
1066
+ cursor: "pointer",
1067
+ height: 16,
1068
+ width: 16,
1069
+ lineHeight: 1,
1070
+ p: 0
1071
+ },
1072
+ css,
1073
+ ref,
1074
+ ...buttonProps
1025
1075
  },
1026
- css,
1027
- ref,
1028
- ...buttonProps
1029
- }, /* @__PURE__ */ React26.createElement("svg", {
1030
- viewBox: "0 0 20 20",
1031
- fill: "currentColor"
1032
- }, /* @__PURE__ */ React26.createElement("path", {
1033
- fillRule: "evenodd",
1034
- clipRule: "evenodd",
1035
- d: "M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z"
1036
- }))));
1076
+ /* @__PURE__ */ React26.createElement("svg", { viewBox: "0 0 20 20", fill: "currentColor" }, /* @__PURE__ */ React26.createElement(
1077
+ "path",
1078
+ {
1079
+ fillRule: "evenodd",
1080
+ clipRule: "evenodd",
1081
+ d: "M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z"
1082
+ }
1083
+ ))
1084
+ ));
1037
1085
  };
1038
1086
  var addTitleProps = (children, titleProps) => {
1039
1087
  const childs = React26.Children.toArray(children);
@@ -1068,13 +1116,7 @@ var Dialog = ({
1068
1116
  { variant, size },
1069
1117
  { parts: ["container", "closeButton"] }
1070
1118
  );
1071
- return /* @__PURE__ */ React26.createElement(Box13, {
1072
- __baseCSS: { bg: "#fff" },
1073
- css: styles.container,
1074
- ...dialogProps
1075
- }, closeButton && /* @__PURE__ */ React26.createElement(CloseButton, {
1076
- css: styles.closeButton
1077
- }), typeof children === "function" ? children({ close, titleProps }) : props["aria-labelledby"] ? children : addTitleProps(children, titleProps));
1119
+ return /* @__PURE__ */ React26.createElement(Box13, { __baseCSS: { bg: "#fff" }, css: styles.container, ...dialogProps }, closeButton && /* @__PURE__ */ React26.createElement(CloseButton, { css: styles.closeButton }), typeof children === "function" ? children({ close, titleProps }) : props["aria-labelledby"] ? children : addTitleProps(children, titleProps));
1078
1120
  };
1079
1121
  Dialog.Trigger = DialogTrigger;
1080
1122
  Dialog.Controller = DialogController;
@@ -1086,11 +1128,7 @@ import { Box as Box14, useComponentStyles as useComponentStyles13 } from "@marig
1086
1128
  var Divider = ({ variant, ...props }) => {
1087
1129
  const { separatorProps } = useSeparator(props);
1088
1130
  const styles = useComponentStyles13("Divider", { variant });
1089
- return /* @__PURE__ */ React27.createElement(Box14, {
1090
- css: styles,
1091
- ...props,
1092
- ...separatorProps
1093
- });
1131
+ return /* @__PURE__ */ React27.createElement(Box14, { css: styles, ...props, ...separatorProps });
1094
1132
  };
1095
1133
 
1096
1134
  // src/Footer/Footer.tsx
@@ -1100,11 +1138,7 @@ import {
1100
1138
  } from "@marigold/system";
1101
1139
  var Footer = ({ children, variant, size, ...props }) => {
1102
1140
  const styles = useComponentStyles14("Footer", { variant, size });
1103
- return /* @__PURE__ */ React28.createElement(Box, {
1104
- as: "footer",
1105
- ...props,
1106
- css: styles
1107
- }, children);
1141
+ return /* @__PURE__ */ React28.createElement(Box, { as: "footer", ...props, css: styles }, children);
1108
1142
  };
1109
1143
 
1110
1144
  // src/Image/Image.tsx
@@ -1124,14 +1158,17 @@ var Image = ({
1124
1158
  objectFit: fit,
1125
1159
  objectPosition: position
1126
1160
  };
1127
- return /* @__PURE__ */ React29.createElement(Box15, {
1128
- ...props,
1129
- as: "img",
1130
- __baseCSS: fit ? { width: " 100%", height: "100%" } : {},
1131
- css
1132
- });
1133
- };
1134
-
1161
+ return /* @__PURE__ */ React29.createElement(
1162
+ Box15,
1163
+ {
1164
+ ...props,
1165
+ as: "img",
1166
+ __baseCSS: fit ? { width: " 100%", height: "100%" } : {},
1167
+ css
1168
+ }
1169
+ );
1170
+ };
1171
+
1135
1172
  // src/Inline/Inline.tsx
1136
1173
  import React30 from "react";
1137
1174
  var ALIGNMENT_X = {
@@ -1150,16 +1187,20 @@ var Inline = ({
1150
1187
  alignY = "center",
1151
1188
  children,
1152
1189
  ...props
1153
- }) => /* @__PURE__ */ React30.createElement(Box, {
1154
- css: {
1155
- display: "flex",
1156
- flexWrap: "wrap",
1157
- gap: space,
1158
- alignItems: ALIGNMENT_Y[alignY],
1159
- justifyContent: ALIGNMENT_X[alignX]
1190
+ }) => /* @__PURE__ */ React30.createElement(
1191
+ Box,
1192
+ {
1193
+ css: {
1194
+ display: "flex",
1195
+ flexWrap: "wrap",
1196
+ gap: space,
1197
+ alignItems: ALIGNMENT_Y[alignY],
1198
+ justifyContent: ALIGNMENT_X[alignX]
1199
+ },
1200
+ ...props
1160
1201
  },
1161
- ...props
1162
- }, children);
1202
+ children
1203
+ );
1163
1204
 
1164
1205
  // src/Input/Input.tsx
1165
1206
  import React31, { forwardRef as forwardRef6 } from "react";
@@ -1167,13 +1208,7 @@ import { Box as Box16, useComponentStyles as useComponentStyles16 } from "@marig
1167
1208
  var Input = forwardRef6(
1168
1209
  ({ variant, size, type = "text", ...props }, ref) => {
1169
1210
  const styles = useComponentStyles16("Input", { variant, size });
1170
- return /* @__PURE__ */ React31.createElement(Box16, {
1171
- ...props,
1172
- ref,
1173
- as: "input",
1174
- type,
1175
- css: styles
1176
- });
1211
+ return /* @__PURE__ */ React31.createElement(Box16, { ...props, ref, as: "input", type, css: styles });
1177
1212
  }
1178
1213
  );
1179
1214
 
@@ -1203,14 +1238,18 @@ var Link = forwardRef7(
1203
1238
  linkRef
1204
1239
  );
1205
1240
  const styles = useComponentStyles17("Link", { variant, size });
1206
- return /* @__PURE__ */ React32.createElement(Box, {
1207
- as,
1208
- role: "link",
1209
- css: styles,
1210
- ref: linkRef,
1211
- ...props,
1212
- ...linkProps
1213
- }, children);
1241
+ return /* @__PURE__ */ React32.createElement(
1242
+ Box,
1243
+ {
1244
+ as,
1245
+ role: "link",
1246
+ css: styles,
1247
+ ref: linkRef,
1248
+ ...props,
1249
+ ...linkProps
1250
+ },
1251
+ children
1252
+ );
1214
1253
  }
1215
1254
  );
1216
1255
 
@@ -1231,11 +1270,7 @@ import React33 from "react";
1231
1270
  import { Box as Box17 } from "@marigold/system";
1232
1271
  var ListItem = ({ children, ...props }) => {
1233
1272
  const { styles } = useListContext();
1234
- return /* @__PURE__ */ React33.createElement(Box17, {
1235
- ...props,
1236
- as: "li",
1237
- css: styles
1238
- }, children);
1273
+ return /* @__PURE__ */ React33.createElement(Box17, { ...props, as: "li", css: styles }, children);
1239
1274
  };
1240
1275
 
1241
1276
  // src/List/List.tsx
@@ -1251,13 +1286,7 @@ var List = ({
1251
1286
  { variant, size },
1252
1287
  { parts: ["ul", "ol", "item"] }
1253
1288
  );
1254
- return /* @__PURE__ */ React34.createElement(Box18, {
1255
- ...props,
1256
- as,
1257
- css: styles[as]
1258
- }, /* @__PURE__ */ React34.createElement(ListContext.Provider, {
1259
- value: { styles: styles.item }
1260
- }, children));
1289
+ return /* @__PURE__ */ React34.createElement(Box18, { ...props, as, css: styles[as] }, /* @__PURE__ */ React34.createElement(ListContext.Provider, { value: { styles: styles.item } }, children));
1261
1290
  };
1262
1291
  List.Item = ListItem;
1263
1292
 
@@ -1312,19 +1341,15 @@ var MenuTrigger = ({
1312
1341
  autoFocus: state.focusStrategy
1313
1342
  };
1314
1343
  const isSmallScreen = useResponsiveValue([true, false, false], 2);
1315
- return /* @__PURE__ */ React35.createElement(MenuContext.Provider, {
1316
- value: menuContext
1317
- }, /* @__PURE__ */ React35.createElement(PressResponder2, {
1318
- ...menuTriggerProps,
1319
- ref: menuTriggerRef,
1320
- isPressed: state.isOpen
1321
- }, menuTrigger), isSmallScreen ? /* @__PURE__ */ React35.createElement(Tray, {
1322
- state
1323
- }, menu) : /* @__PURE__ */ React35.createElement(Popover, {
1324
- triggerRef: menuTriggerRef,
1325
- scrollRef: menuRef,
1326
- state
1327
- }, menu));
1344
+ return /* @__PURE__ */ React35.createElement(MenuContext.Provider, { value: menuContext }, /* @__PURE__ */ React35.createElement(
1345
+ PressResponder2,
1346
+ {
1347
+ ...menuTriggerProps,
1348
+ ref: menuTriggerRef,
1349
+ isPressed: state.isOpen
1350
+ },
1351
+ menuTrigger
1352
+ ), isSmallScreen ? /* @__PURE__ */ React35.createElement(Tray, { state }, menu) : /* @__PURE__ */ React35.createElement(Popover, { triggerRef: menuTriggerRef, scrollRef: menuRef, state }, menu));
1328
1353
  };
1329
1354
 
1330
1355
  // src/Menu/MenuItem.tsx
@@ -1350,18 +1375,22 @@ var MenuItem = ({ item, state, onAction, css }) => {
1350
1375
  focus: isFocusVisible
1351
1376
  });
1352
1377
  const { onPointerUp, ...props } = menuItemProps;
1353
- return /* @__PURE__ */ React36.createElement(Box19, {
1354
- as: "li",
1355
- ref,
1356
- __baseCSS: {
1357
- "&:focus": {
1358
- outline: 0
1359
- }
1378
+ return /* @__PURE__ */ React36.createElement(
1379
+ Box19,
1380
+ {
1381
+ as: "li",
1382
+ ref,
1383
+ __baseCSS: {
1384
+ "&:focus": {
1385
+ outline: 0
1386
+ }
1387
+ },
1388
+ css,
1389
+ ...mergeProps3(props, { onPointerDown: onPointerUp }, focusProps),
1390
+ ...stateProps
1360
1391
  },
1361
- css,
1362
- ...mergeProps3(props, { onPointerDown: onPointerUp }, focusProps),
1363
- ...stateProps
1364
- }, item.rendered);
1392
+ item.rendered
1393
+ );
1365
1394
  };
1366
1395
 
1367
1396
  // src/Menu/Menu.tsx
@@ -1378,23 +1407,30 @@ var Menu = ({ variant, size, ...props }) => {
1378
1407
  { variant, size },
1379
1408
  { parts: ["container", "item"] }
1380
1409
  );
1381
- return /* @__PURE__ */ React37.createElement(Box20, {
1382
- as: "ul",
1383
- ref,
1384
- __baseCSS: {
1385
- listStyle: "none",
1386
- p: 0,
1387
- overflowWrap: "break-word"
1410
+ return /* @__PURE__ */ React37.createElement(
1411
+ Box20,
1412
+ {
1413
+ as: "ul",
1414
+ ref,
1415
+ __baseCSS: {
1416
+ listStyle: "none",
1417
+ p: 0,
1418
+ overflowWrap: "break-word"
1419
+ },
1420
+ css: styles.container,
1421
+ ...menuProps
1388
1422
  },
1389
- css: styles.container,
1390
- ...menuProps
1391
- }, [...state.collection].map((item) => /* @__PURE__ */ React37.createElement(MenuItem, {
1392
- key: item.key,
1393
- item,
1394
- state,
1395
- onAction: props.onAction,
1396
- css: styles.item
1397
- })));
1423
+ [...state.collection].map((item) => /* @__PURE__ */ React37.createElement(
1424
+ MenuItem,
1425
+ {
1426
+ key: item.key,
1427
+ item,
1428
+ state,
1429
+ onAction: props.onAction,
1430
+ css: styles.item
1431
+ }
1432
+ ))
1433
+ );
1398
1434
  };
1399
1435
  Menu.Trigger = MenuTrigger;
1400
1436
  Menu.Item = Item;
@@ -1403,16 +1439,7 @@ Menu.Item = Item;
1403
1439
  import React38 from "react";
1404
1440
  import { SVG as SVG3 } from "@marigold/system";
1405
1441
  var ActionMenu = (props) => {
1406
- return /* @__PURE__ */ React38.createElement(Menu.Trigger, null, /* @__PURE__ */ React38.createElement(Button, {
1407
- variant: "menu",
1408
- size: "small"
1409
- }, /* @__PURE__ */ React38.createElement(SVG3, {
1410
- viewBox: "0 0 24 24"
1411
- }, /* @__PURE__ */ React38.createElement("path", {
1412
- 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"
1413
- }))), /* @__PURE__ */ React38.createElement(Menu, {
1414
- ...props
1415
- }));
1442
+ return /* @__PURE__ */ React38.createElement(Menu.Trigger, null, /* @__PURE__ */ React38.createElement(Button, { variant: "menu", size: "small" }, /* @__PURE__ */ React38.createElement(SVG3, { viewBox: "0 0 24 24" }, /* @__PURE__ */ React38.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__ */ React38.createElement(Menu, { ...props }));
1416
1443
  };
1417
1444
 
1418
1445
  // src/Message/Message.tsx
@@ -1433,39 +1460,22 @@ var Message = ({
1433
1460
  },
1434
1461
  { parts: ["container", "icon", "title", "content"] }
1435
1462
  );
1436
- var icon = /* @__PURE__ */ React39.createElement("svg", {
1437
- viewBox: "0 0 24 24"
1438
- }, /* @__PURE__ */ React39.createElement("path", {
1439
- 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"
1440
- }));
1463
+ var icon = /* @__PURE__ */ React39.createElement("svg", { viewBox: "0 0 24 24" }, /* @__PURE__ */ React39.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" }));
1441
1464
  if (variant === "warning") {
1442
- icon = /* @__PURE__ */ React39.createElement("svg", {
1443
- viewBox: "0 0 24 24"
1444
- }, /* @__PURE__ */ React39.createElement("path", {
1445
- 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"
1446
- }));
1465
+ icon = /* @__PURE__ */ React39.createElement("svg", { viewBox: "0 0 24 24" }, /* @__PURE__ */ React39.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" }));
1447
1466
  }
1448
1467
  if (variant === "error") {
1449
- icon = /* @__PURE__ */ React39.createElement("svg", {
1450
- viewBox: "0 0 24 24"
1451
- }, /* @__PURE__ */ React39.createElement("path", {
1452
- 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"
1453
- }));
1468
+ icon = /* @__PURE__ */ React39.createElement("svg", { viewBox: "0 0 24 24" }, /* @__PURE__ */ React39.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" }));
1454
1469
  }
1455
- return /* @__PURE__ */ React39.createElement(Box, {
1456
- css: styles.container,
1457
- ...props
1458
- }, /* @__PURE__ */ React39.createElement(Box, {
1459
- __baseCSS: { display: "flex", alignItems: "top", gap: 4 }
1460
- }, /* @__PURE__ */ React39.createElement(Box, {
1461
- role: "presentation",
1462
- __baseCSS: { flex: "0 0 16px" },
1463
- css: styles.icon
1464
- }, icon), /* @__PURE__ */ React39.createElement(Box, {
1465
- css: styles.title
1466
- }, messageTitle)), /* @__PURE__ */ React39.createElement(Box, {
1467
- css: styles.content
1468
- }, children));
1470
+ return /* @__PURE__ */ React39.createElement(Box, { css: styles.container, ...props }, /* @__PURE__ */ React39.createElement(Box, { __baseCSS: { display: "flex", alignItems: "top", gap: 4 } }, /* @__PURE__ */ React39.createElement(
1471
+ Box,
1472
+ {
1473
+ role: "presentation",
1474
+ __baseCSS: { flex: "0 0 16px" },
1475
+ css: styles.icon
1476
+ },
1477
+ icon
1478
+ ), /* @__PURE__ */ React39.createElement(Box, { css: styles.title }, messageTitle)), /* @__PURE__ */ React39.createElement(Box, { css: styles.content }, children));
1469
1479
  };
1470
1480
 
1471
1481
  // src/NumberField/NumberField.tsx
@@ -1488,26 +1498,40 @@ import { useButton as useButton3 } from "@react-aria/button";
1488
1498
  import { useHover as useHover3 } from "@react-aria/interactions";
1489
1499
  import { mergeProps as mergeProps4 } from "@react-aria/utils";
1490
1500
  import { Box as Box21, useStateProps as useStateProps5 } from "@marigold/system";
1491
- var Plus = () => /* @__PURE__ */ React40.createElement(Box21, {
1492
- as: "svg",
1493
- __baseCSS: { width: 16, height: 16 },
1494
- viewBox: "0 0 20 20",
1495
- fill: "currentColor"
1496
- }, /* @__PURE__ */ React40.createElement("path", {
1497
- fillRule: "evenodd",
1498
- clipRule: "evenodd",
1499
- d: "M10 3a1 1 0 011 1v5h5a1 1 0 110 2h-5v5a1 1 0 11-2 0v-5H4a1 1 0 110-2h5V4a1 1 0 011-1z"
1500
- }));
1501
- var Minus = () => /* @__PURE__ */ React40.createElement(Box21, {
1502
- as: "svg",
1503
- __baseCSS: { width: 16, height: 16 },
1504
- viewBox: "0 0 20 20",
1505
- fill: "currentColor"
1506
- }, /* @__PURE__ */ React40.createElement("path", {
1507
- fillRule: "evenodd",
1508
- clipRule: "evenodd",
1509
- d: "M3 10a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1z"
1510
- }));
1501
+ var Plus = () => /* @__PURE__ */ React40.createElement(
1502
+ Box21,
1503
+ {
1504
+ as: "svg",
1505
+ __baseCSS: { width: 16, height: 16 },
1506
+ viewBox: "0 0 20 20",
1507
+ fill: "currentColor"
1508
+ },
1509
+ /* @__PURE__ */ React40.createElement(
1510
+ "path",
1511
+ {
1512
+ fillRule: "evenodd",
1513
+ clipRule: "evenodd",
1514
+ d: "M10 3a1 1 0 011 1v5h5a1 1 0 110 2h-5v5a1 1 0 11-2 0v-5H4a1 1 0 110-2h5V4a1 1 0 011-1z"
1515
+ }
1516
+ )
1517
+ );
1518
+ var Minus = () => /* @__PURE__ */ React40.createElement(
1519
+ Box21,
1520
+ {
1521
+ as: "svg",
1522
+ __baseCSS: { width: 16, height: 16 },
1523
+ viewBox: "0 0 20 20",
1524
+ fill: "currentColor"
1525
+ },
1526
+ /* @__PURE__ */ React40.createElement(
1527
+ "path",
1528
+ {
1529
+ fillRule: "evenodd",
1530
+ clipRule: "evenodd",
1531
+ d: "M3 10a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1z"
1532
+ }
1533
+ )
1534
+ );
1511
1535
  var StepButton = ({ direction, css, ...props }) => {
1512
1536
  const ref = useRef7(null);
1513
1537
  const { buttonProps, isPressed } = useButton3(
@@ -1521,17 +1545,21 @@ var StepButton = ({ direction, css, ...props }) => {
1521
1545
  disabled: props.isDisabled
1522
1546
  });
1523
1547
  const Icon3 = direction === "up" ? Plus : Minus;
1524
- return /* @__PURE__ */ React40.createElement(Box21, {
1525
- __baseCSS: {
1526
- display: "flex",
1527
- alignItems: "center",
1528
- justifyContent: "center",
1529
- cursor: props.isDisabled ? "not-allowed" : "pointer"
1548
+ return /* @__PURE__ */ React40.createElement(
1549
+ Box21,
1550
+ {
1551
+ __baseCSS: {
1552
+ display: "flex",
1553
+ alignItems: "center",
1554
+ justifyContent: "center",
1555
+ cursor: props.isDisabled ? "not-allowed" : "pointer"
1556
+ },
1557
+ css,
1558
+ ...mergeProps4(buttonProps, hoverProps),
1559
+ ...stateProps
1530
1560
  },
1531
- css,
1532
- ...mergeProps4(buttonProps, hoverProps),
1533
- ...stateProps
1534
- }, /* @__PURE__ */ React40.createElement(Icon3, null));
1561
+ /* @__PURE__ */ React40.createElement(Icon3, null)
1562
+ );
1535
1563
  };
1536
1564
 
1537
1565
  // src/NumberField/NumberField.tsx
@@ -1585,47 +1613,67 @@ var NumberField = forwardRef8(
1585
1613
  readOnly,
1586
1614
  error
1587
1615
  });
1588
- return /* @__PURE__ */ React41.createElement(FieldBase, {
1589
- label: props.label,
1590
- labelProps,
1591
- required,
1592
- description: props.description,
1593
- descriptionProps,
1594
- error,
1595
- errorMessage: props.errorMessage,
1596
- errorMessageProps,
1597
- stateProps,
1598
- variant,
1599
- size,
1600
- width
1601
- }, /* @__PURE__ */ React41.createElement(Box22, {
1602
- "data-group": true,
1603
- __baseCSS: {
1604
- display: "flex",
1605
- alignItems: "stretch",
1606
- "> input": {
1607
- flex: 1,
1608
- minWidth: 0
1609
- }
1616
+ return /* @__PURE__ */ React41.createElement(
1617
+ FieldBase,
1618
+ {
1619
+ label: props.label,
1620
+ labelProps,
1621
+ required,
1622
+ description: props.description,
1623
+ descriptionProps,
1624
+ error,
1625
+ errorMessage: props.errorMessage,
1626
+ errorMessageProps,
1627
+ stateProps,
1628
+ variant,
1629
+ size,
1630
+ width
1610
1631
  },
1611
- css: styles.group,
1612
- ...mergeProps5(groupProps, focusProps, hoverProps),
1613
- ...stateProps
1614
- }, showStepper && /* @__PURE__ */ React41.createElement(StepButton, {
1615
- direction: "down",
1616
- css: styles.stepper,
1617
- ...decrementButtonProps
1618
- }), /* @__PURE__ */ React41.createElement(Input, {
1619
- ref: inputRef,
1620
- variant,
1621
- size,
1622
- ...inputProps,
1623
- ...stateProps
1624
- }), showStepper && /* @__PURE__ */ React41.createElement(StepButton, {
1625
- direction: "up",
1626
- css: styles.stepper,
1627
- ...incrementButtonProps
1628
- })));
1632
+ /* @__PURE__ */ React41.createElement(
1633
+ Box22,
1634
+ {
1635
+ "data-group": true,
1636
+ __baseCSS: {
1637
+ display: "flex",
1638
+ alignItems: "stretch",
1639
+ "> input": {
1640
+ flex: 1,
1641
+ minWidth: 0
1642
+ // Override browser default
1643
+ }
1644
+ },
1645
+ css: styles.group,
1646
+ ...mergeProps5(groupProps, focusProps, hoverProps),
1647
+ ...stateProps
1648
+ },
1649
+ showStepper && /* @__PURE__ */ React41.createElement(
1650
+ StepButton,
1651
+ {
1652
+ direction: "down",
1653
+ css: styles.stepper,
1654
+ ...decrementButtonProps
1655
+ }
1656
+ ),
1657
+ /* @__PURE__ */ React41.createElement(
1658
+ Input,
1659
+ {
1660
+ ref: inputRef,
1661
+ variant,
1662
+ size,
1663
+ ...inputProps,
1664
+ ...stateProps
1665
+ }
1666
+ ),
1667
+ showStepper && /* @__PURE__ */ React41.createElement(
1668
+ StepButton,
1669
+ {
1670
+ direction: "up",
1671
+ css: styles.stepper,
1672
+ ...incrementButtonProps
1673
+ }
1674
+ )
1675
+ )
1676
+ );
1629
1677
  }
1630
1678
  );
1631
1679
 
@@ -1657,12 +1705,13 @@ function MarigoldProvider({
1657
1705
  Nested themes with a "root" property must specify a "selector" to prevent accidentally overriding global CSS`
1658
1706
  );
1659
1707
  }
1660
- return /* @__PURE__ */ React42.createElement(ThemeProvider, {
1661
- theme
1662
- }, /* @__PURE__ */ React42.createElement(Global, {
1663
- normalizeDocument: isTopLevel && normalizeDocument,
1664
- selector
1665
- }), isTopLevel ? /* @__PURE__ */ React42.createElement(OverlayProvider, null, children) : children);
1708
+ return /* @__PURE__ */ React42.createElement(ThemeProvider, { theme }, /* @__PURE__ */ React42.createElement(
1709
+ Global,
1710
+ {
1711
+ normalizeDocument: isTopLevel && normalizeDocument,
1712
+ selector
1713
+ }
1714
+ ), isTopLevel ? /* @__PURE__ */ React42.createElement(OverlayProvider, null, children) : children);
1666
1715
  }
1667
1716
 
1668
1717
  // src/Radio/Radio.tsx
@@ -1715,58 +1764,61 @@ var RadioGroup = ({
1715
1764
  readOnly,
1716
1765
  error
1717
1766
  });
1718
- return /* @__PURE__ */ React43.createElement(FieldBase, {
1719
- width,
1720
- label: props.label,
1721
- labelProps: { as: "span", ...labelProps },
1722
- description: props.description,
1723
- descriptionProps,
1724
- error,
1725
- errorMessage: props.errorMessage,
1726
- errorMessageProps,
1727
- disabled,
1728
- stateProps,
1729
- required,
1730
- ...radioGroupProps
1731
- }, /* @__PURE__ */ React43.createElement(Box23, {
1732
- role: "presentation",
1733
- "data-orientation": orientation,
1734
- __baseCSS: {
1735
- display: "flex",
1736
- flexDirection: orientation === "vertical" ? "column" : "row",
1737
- alignItems: "start",
1738
- gap: orientation === "vertical" ? "0.5ch" : "1.5ch"
1739
- }
1740
- }, /* @__PURE__ */ React43.createElement(RadioGroupContext.Provider, {
1741
- value: { width, error, state }
1742
- }, children)));
1767
+ return /* @__PURE__ */ React43.createElement(
1768
+ FieldBase,
1769
+ {
1770
+ width,
1771
+ label: props.label,
1772
+ labelProps: { as: "span", ...labelProps },
1773
+ description: props.description,
1774
+ descriptionProps,
1775
+ error,
1776
+ errorMessage: props.errorMessage,
1777
+ errorMessageProps,
1778
+ disabled,
1779
+ stateProps,
1780
+ required,
1781
+ ...radioGroupProps
1782
+ },
1783
+ /* @__PURE__ */ React43.createElement(
1784
+ Box23,
1785
+ {
1786
+ role: "presentation",
1787
+ "data-orientation": orientation,
1788
+ __baseCSS: {
1789
+ display: "flex",
1790
+ flexDirection: orientation === "vertical" ? "column" : "row",
1791
+ alignItems: "start",
1792
+ gap: orientation === "vertical" ? "0.5ch" : "1.5ch"
1793
+ }
1794
+ },
1795
+ /* @__PURE__ */ React43.createElement(RadioGroupContext.Provider, { value: { width, error, state } }, children)
1796
+ )
1797
+ );
1743
1798
  };
1744
1799
 
1745
1800
  // src/Radio/Radio.tsx
1746
- var Dot = () => /* @__PURE__ */ React44.createElement("svg", {
1747
- viewBox: "0 0 6 6"
1748
- }, /* @__PURE__ */ React44.createElement("circle", {
1749
- fill: "currentColor",
1750
- cx: "3",
1751
- cy: "3",
1752
- r: "3"
1753
- }));
1754
- var Icon2 = ({ checked, css, ...props }) => /* @__PURE__ */ React44.createElement(Box24, {
1755
- "aria-hidden": "true",
1756
- __baseCSS: {
1757
- width: 16,
1758
- height: 16,
1759
- bg: "#fff",
1760
- border: "1px solid #000",
1761
- borderRadius: "50%",
1762
- display: "flex",
1763
- alignItems: "center",
1764
- justifyContent: "center",
1765
- p: 4
1801
+ var Dot = () => /* @__PURE__ */ React44.createElement("svg", { viewBox: "0 0 6 6" }, /* @__PURE__ */ React44.createElement("circle", { fill: "currentColor", cx: "3", cy: "3", r: "3" }));
1802
+ var Icon2 = ({ checked, css, ...props }) => /* @__PURE__ */ React44.createElement(
1803
+ Box24,
1804
+ {
1805
+ "aria-hidden": "true",
1806
+ __baseCSS: {
1807
+ width: 16,
1808
+ height: 16,
1809
+ bg: "#fff",
1810
+ border: "1px solid #000",
1811
+ borderRadius: "50%",
1812
+ display: "flex",
1813
+ alignItems: "center",
1814
+ justifyContent: "center",
1815
+ p: 4
1816
+ },
1817
+ css,
1818
+ ...props
1766
1819
  },
1767
- css,
1768
- ...props
1769
- }, checked ? /* @__PURE__ */ React44.createElement(Dot, null) : null);
1820
+ checked ? /* @__PURE__ */ React44.createElement(Dot, null) : null
1821
+ );
1770
1822
  var Radio = forwardRef9(
1771
1823
  ({ width, disabled, ...props }, ref) => {
1772
1824
  const {
@@ -1797,39 +1849,41 @@ var Radio = forwardRef9(
1797
1849
  readOnly: props.readOnly,
1798
1850
  error
1799
1851
  });
1800
- return /* @__PURE__ */ React44.createElement(Box24, {
1801
- as: "label",
1802
- __baseCSS: {
1803
- display: "flex",
1804
- alignItems: "center",
1805
- gap: "1ch",
1806
- position: "relative",
1807
- width: width || groupWidth || "100%"
1808
- },
1809
- css: styles.container,
1810
- ...mergeProps6(hoverProps, stateProps)
1811
- }, /* @__PURE__ */ React44.createElement(Box24, {
1812
- as: "input",
1813
- ref: inputRef,
1814
- css: {
1815
- position: "absolute",
1816
- width: "100%",
1817
- height: "100%",
1818
- top: 0,
1819
- left: 0,
1820
- zIndex: 1,
1821
- opacity: 1e-4,
1822
- cursor: inputProps.disabled ? "not-allowed" : "pointer"
1852
+ return /* @__PURE__ */ React44.createElement(
1853
+ Box24,
1854
+ {
1855
+ as: "label",
1856
+ __baseCSS: {
1857
+ display: "flex",
1858
+ alignItems: "center",
1859
+ gap: "1ch",
1860
+ position: "relative",
1861
+ width: width || groupWidth || "100%"
1862
+ },
1863
+ css: styles.container,
1864
+ ...mergeProps6(hoverProps, stateProps)
1823
1865
  },
1824
- ...mergeProps6(inputProps, focusProps)
1825
- }), /* @__PURE__ */ React44.createElement(Icon2, {
1826
- checked: inputProps.checked,
1827
- css: styles.radio,
1828
- ...stateProps
1829
- }), /* @__PURE__ */ React44.createElement(Box24, {
1830
- css: styles.label,
1831
- ...stateProps
1832
- }, props.children));
1866
+ /* @__PURE__ */ React44.createElement(
1867
+ Box24,
1868
+ {
1869
+ as: "input",
1870
+ ref: inputRef,
1871
+ css: {
1872
+ position: "absolute",
1873
+ width: "100%",
1874
+ height: "100%",
1875
+ top: 0,
1876
+ left: 0,
1877
+ zIndex: 1,
1878
+ opacity: 1e-4,
1879
+ cursor: inputProps.disabled ? "not-allowed" : "pointer"
1880
+ },
1881
+ ...mergeProps6(inputProps, focusProps)
1882
+ }
1883
+ ),
1884
+ /* @__PURE__ */ React44.createElement(Icon2, { checked: inputProps.checked, css: styles.radio, ...stateProps }),
1885
+ /* @__PURE__ */ React44.createElement(Box24, { css: styles.label, ...stateProps }, props.children)
1886
+ );
1833
1887
  }
1834
1888
  );
1835
1889
  Radio.Group = RadioGroup;
@@ -1893,12 +1947,16 @@ var ListBoxOption = ({ item, state }) => {
1893
1947
  disabled: isDisabled,
1894
1948
  focusVisible: isFocused
1895
1949
  });
1896
- return /* @__PURE__ */ React45.createElement(Box25, {
1897
- as: "li",
1898
- ref,
1899
- css: styles.option,
1900
- ...mergeProps7(props, { onPointerDown: onPointerUp }, { ...stateProps })
1901
- }, item.rendered);
1950
+ return /* @__PURE__ */ React45.createElement(
1951
+ Box25,
1952
+ {
1953
+ as: "li",
1954
+ ref,
1955
+ css: styles.option,
1956
+ ...mergeProps7(props, { onPointerDown: onPointerUp }, { ...stateProps })
1957
+ },
1958
+ item.rendered
1959
+ );
1902
1960
  };
1903
1961
 
1904
1962
  // src/ListBox/ListBoxSection.tsx
@@ -1908,23 +1966,16 @@ var ListBoxSection = ({ section, state }) => {
1908
1966
  "aria-label": section["aria-label"]
1909
1967
  });
1910
1968
  const { styles } = useListBoxContext();
1911
- return /* @__PURE__ */ React46.createElement(Box26, {
1912
- as: "li",
1913
- css: styles.section,
1914
- ...itemProps
1915
- }, section.rendered && /* @__PURE__ */ React46.createElement(Box26, {
1916
- css: styles.sectionTitle,
1917
- ...headingProps
1918
- }, section.rendered), /* @__PURE__ */ React46.createElement(Box26, {
1919
- as: "ul",
1920
- __baseCSS: { listStyle: "none", p: 0 },
1921
- css: styles.list,
1922
- ...groupProps
1923
- }, [...section.childNodes].map((node) => /* @__PURE__ */ React46.createElement(ListBoxOption, {
1924
- key: node.key,
1925
- item: node,
1926
- state
1927
- }))));
1969
+ return /* @__PURE__ */ React46.createElement(Box26, { as: "li", css: styles.section, ...itemProps }, section.rendered && /* @__PURE__ */ React46.createElement(Box26, { css: styles.sectionTitle, ...headingProps }, section.rendered), /* @__PURE__ */ React46.createElement(
1970
+ Box26,
1971
+ {
1972
+ as: "ul",
1973
+ __baseCSS: { listStyle: "none", p: 0 },
1974
+ css: styles.list,
1975
+ ...groupProps
1976
+ },
1977
+ [...section.childNodes].map((node) => /* @__PURE__ */ React46.createElement(ListBoxOption, { key: node.key, item: node, state }))
1978
+ ));
1928
1979
  };
1929
1980
 
1930
1981
  // src/ListBox/ListBox.tsx
@@ -1937,27 +1988,19 @@ var ListBox = forwardRef10(
1937
1988
  { variant, size },
1938
1989
  { parts: ["container", "list", "option", "section", "sectionTitle"] }
1939
1990
  );
1940
- return /* @__PURE__ */ React47.createElement(ListBoxContext.Provider, {
1941
- value: { styles }
1942
- }, /* @__PURE__ */ React47.createElement(Box27, {
1943
- css: styles.container
1944
- }, /* @__PURE__ */ React47.createElement(Box27, {
1945
- as: "ul",
1946
- ref: innerRef,
1947
- __baseCSS: { listStyle: "none", p: 0 },
1948
- css: styles.list,
1949
- ...listBoxProps
1950
- }, [...state.collection].map(
1951
- (item) => item.type === "section" ? /* @__PURE__ */ React47.createElement(ListBoxSection, {
1952
- key: item.key,
1953
- section: item,
1954
- state
1955
- }) : /* @__PURE__ */ React47.createElement(ListBoxOption, {
1956
- key: item.key,
1957
- item,
1958
- state
1959
- })
1960
- ))));
1991
+ return /* @__PURE__ */ React47.createElement(ListBoxContext.Provider, { value: { styles } }, /* @__PURE__ */ React47.createElement(Box27, { css: styles.container }, /* @__PURE__ */ React47.createElement(
1992
+ Box27,
1993
+ {
1994
+ as: "ul",
1995
+ ref: innerRef,
1996
+ __baseCSS: { listStyle: "none", p: 0 },
1997
+ css: styles.list,
1998
+ ...listBoxProps
1999
+ },
2000
+ [...state.collection].map(
2001
+ (item) => item.type === "section" ? /* @__PURE__ */ React47.createElement(ListBoxSection, { key: item.key, section: item, state }) : /* @__PURE__ */ React47.createElement(ListBoxOption, { key: item.key, item, state })
2002
+ )
2003
+ )));
1961
2004
  }
1962
2005
  );
1963
2006
 
@@ -1972,18 +2015,18 @@ var messages = {
1972
2015
  };
1973
2016
 
1974
2017
  // src/Select/Select.tsx
1975
- var Chevron = ({ css }) => /* @__PURE__ */ React48.createElement(Box28, {
1976
- as: "svg",
1977
- __baseCSS: { width: 16, height: 16, fill: "none" },
1978
- css,
1979
- viewBox: "0 0 24 24",
1980
- stroke: "currentColor",
1981
- strokeWidth: 2
1982
- }, /* @__PURE__ */ React48.createElement("path", {
1983
- strokeLinecap: "round",
1984
- strokeLinejoin: "round",
1985
- d: "M19 9l-7 7-7-7"
1986
- }));
2018
+ var Chevron = ({ css }) => /* @__PURE__ */ React48.createElement(
2019
+ Box28,
2020
+ {
2021
+ as: "svg",
2022
+ __baseCSS: { width: 16, height: 16, fill: "none" },
2023
+ css,
2024
+ viewBox: "0 0 24 24",
2025
+ stroke: "currentColor",
2026
+ strokeWidth: 2
2027
+ },
2028
+ /* @__PURE__ */ React48.createElement("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M19 9l-7 7-7-7" })
2029
+ );
1987
2030
  var Select = forwardRef11(
1988
2031
  ({
1989
2032
  variant,
@@ -2034,66 +2077,82 @@ var Select = forwardRef11(
2034
2077
  focusVisible: isFocusVisible,
2035
2078
  expanded: state.isOpen
2036
2079
  });
2037
- return /* @__PURE__ */ React48.createElement(FieldBase, {
2038
- variant,
2039
- size,
2040
- width,
2041
- label: props.label,
2042
- labelProps: { as: "span", ...labelProps },
2043
- description: props.description,
2044
- descriptionProps,
2045
- error,
2046
- errorMessage: props.errorMessage,
2047
- errorMessageProps,
2048
- stateProps,
2049
- disabled,
2050
- required
2051
- }, /* @__PURE__ */ React48.createElement(HiddenSelect, {
2052
- state,
2053
- triggerRef: buttonRef,
2054
- label: props.label,
2055
- name: props.name,
2056
- isDisabled: disabled
2057
- }), /* @__PURE__ */ React48.createElement(Box28, {
2058
- as: "button",
2059
- __baseCSS: {
2060
- display: "flex",
2061
- position: "relative",
2062
- alignItems: "center",
2063
- justifyContent: "space-between",
2064
- width: "100%"
2065
- },
2066
- css: styles.button,
2067
- ref: buttonRef,
2068
- ...mergeProps8(buttonProps, focusProps),
2069
- ...stateProps
2070
- }, /* @__PURE__ */ React48.createElement(Box28, {
2071
- css: {
2072
- overflow: "hidden",
2073
- whiteSpace: "nowrap"
2080
+ return /* @__PURE__ */ React48.createElement(
2081
+ FieldBase,
2082
+ {
2083
+ variant,
2084
+ size,
2085
+ width,
2086
+ label: props.label,
2087
+ labelProps: { as: "span", ...labelProps },
2088
+ description: props.description,
2089
+ descriptionProps,
2090
+ error,
2091
+ errorMessage: props.errorMessage,
2092
+ errorMessageProps,
2093
+ stateProps,
2094
+ disabled,
2095
+ required
2074
2096
  },
2075
- ...valueProps
2076
- }, state.selectedItem ? state.selectedItem.rendered : props.placeholder), /* @__PURE__ */ React48.createElement(Chevron, {
2077
- css: styles.icon
2078
- })), isSmallScreen ? /* @__PURE__ */ React48.createElement(Tray, {
2079
- state
2080
- }, /* @__PURE__ */ React48.createElement(ListBox, {
2081
- ref: listboxRef,
2082
- state,
2083
- variant,
2084
- size,
2085
- ...menuProps
2086
- })) : /* @__PURE__ */ React48.createElement(Popover, {
2087
- state,
2088
- triggerRef: buttonRef,
2089
- scrollRef: listboxRef
2090
- }, /* @__PURE__ */ React48.createElement(ListBox, {
2091
- ref: listboxRef,
2092
- state,
2093
- variant,
2094
- size,
2095
- ...menuProps
2096
- })));
2097
+ /* @__PURE__ */ React48.createElement(
2098
+ HiddenSelect,
2099
+ {
2100
+ state,
2101
+ triggerRef: buttonRef,
2102
+ label: props.label,
2103
+ name: props.name,
2104
+ isDisabled: disabled
2105
+ }
2106
+ ),
2107
+ /* @__PURE__ */ React48.createElement(
2108
+ Box28,
2109
+ {
2110
+ as: "button",
2111
+ __baseCSS: {
2112
+ display: "flex",
2113
+ position: "relative",
2114
+ alignItems: "center",
2115
+ justifyContent: "space-between",
2116
+ width: "100%"
2117
+ },
2118
+ css: styles.button,
2119
+ ref: buttonRef,
2120
+ ...mergeProps8(buttonProps, focusProps),
2121
+ ...stateProps
2122
+ },
2123
+ /* @__PURE__ */ React48.createElement(
2124
+ Box28,
2125
+ {
2126
+ css: {
2127
+ overflow: "hidden",
2128
+ whiteSpace: "nowrap"
2129
+ },
2130
+ ...valueProps
2131
+ },
2132
+ state.selectedItem ? state.selectedItem.rendered : props.placeholder
2133
+ ),
2134
+ /* @__PURE__ */ React48.createElement(Chevron, { css: styles.icon })
2135
+ ),
2136
+ isSmallScreen ? /* @__PURE__ */ React48.createElement(Tray, { state }, /* @__PURE__ */ React48.createElement(
2137
+ ListBox,
2138
+ {
2139
+ ref: listboxRef,
2140
+ state,
2141
+ variant,
2142
+ size,
2143
+ ...menuProps
2144
+ }
2145
+ )) : /* @__PURE__ */ React48.createElement(Popover, { state, triggerRef: buttonRef, scrollRef: listboxRef }, /* @__PURE__ */ React48.createElement(
2146
+ ListBox,
2147
+ {
2148
+ ref: listboxRef,
2149
+ state,
2150
+ variant,
2151
+ size,
2152
+ ...menuProps
2153
+ }
2154
+ ))
2155
+ );
2097
2156
  }
2098
2157
  );
2099
2158
  Select.Option = Item2;
@@ -2139,17 +2198,24 @@ var Thumb = ({ state, trackRef, styles, ...props }) => {
2139
2198
  useEffect(() => {
2140
2199
  state.setThumbEditable(0, !disabled);
2141
2200
  }, [disabled, state]);
2142
- return /* @__PURE__ */ React49.createElement(Box, {
2143
- __baseCSS: { top: "50%" },
2144
- css: styles,
2145
- ...thumbProps,
2146
- ...stateProps
2147
- }, /* @__PURE__ */ React49.createElement(VisuallyHidden, null, /* @__PURE__ */ React49.createElement(Box, {
2148
- as: "input",
2149
- type: "range",
2150
- ref: inputRef,
2151
- ...mergeProps9(inputProps, focusProps)
2152
- })));
2201
+ return /* @__PURE__ */ React49.createElement(
2202
+ Box,
2203
+ {
2204
+ __baseCSS: { top: "50%" },
2205
+ css: styles,
2206
+ ...thumbProps,
2207
+ ...stateProps
2208
+ },
2209
+ /* @__PURE__ */ React49.createElement(VisuallyHidden, null, /* @__PURE__ */ React49.createElement(
2210
+ Box,
2211
+ {
2212
+ as: "input",
2213
+ type: "range",
2214
+ ref: inputRef,
2215
+ ...mergeProps9(inputProps, focusProps)
2216
+ }
2217
+ ))
2218
+ );
2153
2219
  };
2154
2220
 
2155
2221
  // src/Slider/Slider.tsx
@@ -2172,56 +2238,66 @@ var Slider = forwardRef12(
2172
2238
  { variant, size },
2173
2239
  { parts: ["track", "thumb", "label", "output"] }
2174
2240
  );
2175
- return /* @__PURE__ */ React50.createElement(Box, {
2176
- __baseCSS: {
2177
- display: "flex",
2178
- flexDirection: "column",
2179
- touchAction: "none",
2180
- width
2181
- },
2182
- ...groupProps
2183
- }, /* @__PURE__ */ React50.createElement(Box, {
2184
- __baseCSS: { display: "flex", alignSelf: "stretch" }
2185
- }, props.children && /* @__PURE__ */ React50.createElement(Box, {
2186
- as: "label",
2187
- __baseCSS: styles.label,
2188
- ...labelProps
2189
- }, props.children), /* @__PURE__ */ React50.createElement(Box, {
2190
- as: "output",
2191
- ...outputProps,
2192
- __baseCSS: { flex: "1 0 auto", textAlign: "end" },
2193
- css: styles.output
2194
- }, state.getThumbValueLabel(0))), /* @__PURE__ */ React50.createElement(Box, {
2195
- ...trackProps,
2196
- ref: trackRef,
2197
- __baseCSS: {
2198
- height: 32,
2199
- width: "100%",
2200
- cursor: props.disabled ? "not-allowed" : "pointer"
2201
- }
2202
- }, /* @__PURE__ */ React50.createElement(Box, {
2203
- __baseCSS: {
2204
- top: "50%",
2205
- transform: "translateY(-50%)"
2241
+ return /* @__PURE__ */ React50.createElement(
2242
+ Box,
2243
+ {
2244
+ __baseCSS: {
2245
+ display: "flex",
2246
+ flexDirection: "column",
2247
+ touchAction: "none",
2248
+ width
2249
+ },
2250
+ ...groupProps
2206
2251
  },
2207
- css: styles.track
2208
- }), /* @__PURE__ */ React50.createElement(Thumb, {
2209
- state,
2210
- trackRef,
2211
- disabled: props.disabled,
2212
- styles: styles.thumb
2213
- })));
2252
+ /* @__PURE__ */ React50.createElement(Box, { __baseCSS: { display: "flex", alignSelf: "stretch" } }, props.children && /* @__PURE__ */ React50.createElement(Box, { as: "label", __baseCSS: styles.label, ...labelProps }, props.children), /* @__PURE__ */ React50.createElement(
2253
+ Box,
2254
+ {
2255
+ as: "output",
2256
+ ...outputProps,
2257
+ __baseCSS: { flex: "1 0 auto", textAlign: "end" },
2258
+ css: styles.output
2259
+ },
2260
+ state.getThumbValueLabel(0)
2261
+ )),
2262
+ /* @__PURE__ */ React50.createElement(
2263
+ Box,
2264
+ {
2265
+ ...trackProps,
2266
+ ref: trackRef,
2267
+ __baseCSS: {
2268
+ height: 32,
2269
+ width: "100%",
2270
+ cursor: props.disabled ? "not-allowed" : "pointer"
2271
+ }
2272
+ },
2273
+ /* @__PURE__ */ React50.createElement(
2274
+ Box,
2275
+ {
2276
+ __baseCSS: {
2277
+ top: "50%",
2278
+ transform: "translateY(-50%)"
2279
+ },
2280
+ css: styles.track
2281
+ }
2282
+ ),
2283
+ /* @__PURE__ */ React50.createElement(
2284
+ Thumb,
2285
+ {
2286
+ state,
2287
+ trackRef,
2288
+ disabled: props.disabled,
2289
+ styles: styles.thumb
2290
+ }
2291
+ )
2292
+ )
2293
+ );
2214
2294
  }
2215
2295
  );
2216
2296
 
2217
2297
  // src/Split/Split.tsx
2218
2298
  import React51 from "react";
2219
2299
  import { Box as Box29 } from "@marigold/system";
2220
- var Split = (props) => /* @__PURE__ */ React51.createElement(Box29, {
2221
- ...props,
2222
- role: "separator",
2223
- css: { flexGrow: 1 }
2224
- });
2300
+ var Split = (props) => /* @__PURE__ */ React51.createElement(Box29, { ...props, role: "separator", css: { flexGrow: 1 } });
2225
2301
 
2226
2302
  // src/Stack/Stack.tsx
2227
2303
  import React52 from "react";
@@ -2244,18 +2320,22 @@ var Stack = ({
2244
2320
  alignY = "none",
2245
2321
  stretch = false,
2246
2322
  ...props
2247
- }) => /* @__PURE__ */ React52.createElement(Box, {
2248
- css: {
2249
- display: "flex",
2250
- flexDirection: "column",
2251
- p: 0,
2252
- gap: space,
2253
- alignItems: ALIGNMENT_X2[alignX],
2254
- justifyContent: ALIGNMENT_Y2[alignY],
2255
- blockSize: stretch ? "100%" : "initial"
2323
+ }) => /* @__PURE__ */ React52.createElement(
2324
+ Box,
2325
+ {
2326
+ css: {
2327
+ display: "flex",
2328
+ flexDirection: "column",
2329
+ p: 0,
2330
+ gap: space,
2331
+ alignItems: ALIGNMENT_X2[alignX],
2332
+ justifyContent: ALIGNMENT_Y2[alignY],
2333
+ blockSize: stretch ? "100%" : "initial"
2334
+ },
2335
+ ...props
2256
2336
  },
2257
- ...props
2258
- }, children);
2337
+ children
2338
+ );
2259
2339
 
2260
2340
  // src/Switch/Switch.tsx
2261
2341
  import React53, { forwardRef as forwardRef13 } from "react";
@@ -2300,65 +2380,79 @@ var Switch = forwardRef13(
2300
2380
  { variant, size },
2301
2381
  { parts: ["container", "label", "track", "thumb"] }
2302
2382
  );
2303
- return /* @__PURE__ */ React53.createElement(Box, {
2304
- as: "label",
2305
- __baseCSS: {
2306
- display: "flex",
2307
- alignItems: "center",
2308
- justifyContent: "space-between",
2309
- gap: "1ch",
2310
- position: "relative",
2311
- width
2312
- },
2313
- css: styles.container
2314
- }, /* @__PURE__ */ React53.createElement(Box, {
2315
- as: "input",
2316
- ref: inputRef,
2317
- css: {
2318
- position: "absolute",
2319
- width: "100%",
2320
- height: "100%",
2321
- top: 0,
2322
- left: 0,
2323
- zIndex: 1,
2324
- opacity: 1e-4,
2325
- cursor: inputProps.disabled ? "not-allowed" : "pointer"
2326
- },
2327
- ...inputProps,
2328
- ...focusProps
2329
- }), props.children && /* @__PURE__ */ React53.createElement(Box, {
2330
- css: styles.label
2331
- }, props.children), /* @__PURE__ */ React53.createElement(Box, {
2332
- __baseCSS: {
2333
- position: "relative",
2334
- width: 48,
2335
- height: 24,
2336
- bg: "#dee2e6",
2337
- borderRadius: 20,
2338
- flex: "0 0 48px"
2383
+ return /* @__PURE__ */ React53.createElement(
2384
+ Box,
2385
+ {
2386
+ as: "label",
2387
+ __baseCSS: {
2388
+ display: "flex",
2389
+ alignItems: "center",
2390
+ justifyContent: "space-between",
2391
+ gap: "1ch",
2392
+ position: "relative",
2393
+ width
2394
+ },
2395
+ css: styles.container
2339
2396
  },
2340
- css: styles.track,
2341
- ...stateProps
2342
- }, /* @__PURE__ */ React53.createElement(Box, {
2343
- __baseCSS: {
2344
- display: "block",
2345
- position: "absolute",
2346
- top: 1,
2347
- left: 0,
2348
- willChange: "transform",
2349
- transform: "translateX(1px)",
2350
- transition: "all 0.1s cubic-bezier(.7, 0, .3, 1)",
2351
- height: 22,
2352
- width: 22,
2353
- borderRadius: 9999,
2354
- bg: "#fff",
2355
- "&:checked": {
2356
- transform: "translateX(calc(47px - 100%))"
2397
+ /* @__PURE__ */ React53.createElement(
2398
+ Box,
2399
+ {
2400
+ as: "input",
2401
+ ref: inputRef,
2402
+ css: {
2403
+ position: "absolute",
2404
+ width: "100%",
2405
+ height: "100%",
2406
+ top: 0,
2407
+ left: 0,
2408
+ zIndex: 1,
2409
+ opacity: 1e-4,
2410
+ cursor: inputProps.disabled ? "not-allowed" : "pointer"
2411
+ },
2412
+ ...inputProps,
2413
+ ...focusProps
2357
2414
  }
2358
- },
2359
- css: styles.thumb,
2360
- ...stateProps
2361
- })));
2415
+ ),
2416
+ props.children && /* @__PURE__ */ React53.createElement(Box, { css: styles.label }, props.children),
2417
+ /* @__PURE__ */ React53.createElement(
2418
+ Box,
2419
+ {
2420
+ __baseCSS: {
2421
+ position: "relative",
2422
+ width: 48,
2423
+ height: 24,
2424
+ bg: "#dee2e6",
2425
+ borderRadius: 20,
2426
+ flex: "0 0 48px"
2427
+ },
2428
+ css: styles.track,
2429
+ ...stateProps
2430
+ },
2431
+ /* @__PURE__ */ React53.createElement(
2432
+ Box,
2433
+ {
2434
+ __baseCSS: {
2435
+ display: "block",
2436
+ position: "absolute",
2437
+ top: 1,
2438
+ left: 0,
2439
+ willChange: "transform",
2440
+ transform: "translateX(1px)",
2441
+ transition: "all 0.1s cubic-bezier(.7, 0, .3, 1)",
2442
+ height: 22,
2443
+ width: 22,
2444
+ borderRadius: 9999,
2445
+ bg: "#fff",
2446
+ "&:checked": {
2447
+ transform: "translateX(calc(47px - 100%))"
2448
+ }
2449
+ },
2450
+ css: styles.thumb,
2451
+ ...stateProps
2452
+ }
2453
+ )
2454
+ )
2455
+ );
2362
2456
  }
2363
2457
  );
2364
2458
 
@@ -2388,9 +2482,7 @@ import React54 from "react";
2388
2482
  import { useTableRowGroup } from "@react-aria/table";
2389
2483
  var TableBody = ({ children }) => {
2390
2484
  const { rowGroupProps } = useTableRowGroup();
2391
- return /* @__PURE__ */ React54.createElement("tbody", {
2392
- ...rowGroupProps
2393
- }, children);
2485
+ return /* @__PURE__ */ React54.createElement("tbody", { ...rowGroupProps }, children);
2394
2486
  };
2395
2487
 
2396
2488
  // src/Table/TableCell.tsx
@@ -2411,19 +2503,27 @@ var TableCell = ({ cell }) => {
2411
2503
  ref
2412
2504
  );
2413
2505
  const cellProps = interactive ? gridCellProps : {
2506
+ /**
2507
+ * Override `react-aria` handler so users can select text.
2508
+ * Solution from https://github.com/adobe/react-spectrum/issues/2585
2509
+ */
2414
2510
  ...gridCellProps,
2415
2511
  onMouseDown: (e) => e.stopPropagation(),
2416
2512
  onPointerDown: (e) => e.stopPropagation()
2417
2513
  };
2418
2514
  const { focusProps, isFocusVisible } = useFocusRing9();
2419
2515
  const stateProps = useStateProps13({ disabled, focusVisible: isFocusVisible });
2420
- return /* @__PURE__ */ React55.createElement(Box30, {
2421
- as: "td",
2422
- ref,
2423
- css: styles.cell,
2424
- ...mergeProps10(cellProps, focusProps),
2425
- ...stateProps
2426
- }, cell.rendered);
2516
+ return /* @__PURE__ */ React55.createElement(
2517
+ Box30,
2518
+ {
2519
+ as: "td",
2520
+ ref,
2521
+ css: styles.cell,
2522
+ ...mergeProps10(cellProps, focusProps),
2523
+ ...stateProps
2524
+ },
2525
+ cell.rendered
2526
+ );
2427
2527
  };
2428
2528
 
2429
2529
  // src/Table/TableCheckboxCell.tsx
@@ -2470,20 +2570,22 @@ var TableCheckboxCell = ({ cell }) => {
2470
2570
  );
2471
2571
  const { focusProps, isFocusVisible } = useFocusRing10();
2472
2572
  const stateProps = useStateProps14({ disabled, focusVisible: isFocusVisible });
2473
- return /* @__PURE__ */ React56.createElement(Box31, {
2474
- as: "td",
2475
- ref,
2476
- __baseCSS: {
2477
- textAlign: "center",
2478
- verticalAlign: "middle",
2479
- lineHeight: 1
2573
+ return /* @__PURE__ */ React56.createElement(
2574
+ Box31,
2575
+ {
2576
+ as: "td",
2577
+ ref,
2578
+ __baseCSS: {
2579
+ textAlign: "center",
2580
+ verticalAlign: "middle",
2581
+ lineHeight: 1
2582
+ },
2583
+ css: styles.cell,
2584
+ ...mergeProps11(gridCellProps, focusProps),
2585
+ ...stateProps
2480
2586
  },
2481
- css: styles.cell,
2482
- ...mergeProps11(gridCellProps, focusProps),
2483
- ...stateProps
2484
- }, /* @__PURE__ */ React56.createElement(Checkbox, {
2485
- ...checkboxProps
2486
- }));
2587
+ /* @__PURE__ */ React56.createElement(Checkbox, { ...checkboxProps })
2588
+ );
2487
2589
  };
2488
2590
 
2489
2591
  // src/Table/TableColumnHeader.tsx
@@ -2496,16 +2598,20 @@ import { Box as Box32, useStateProps as useStateProps15 } from "@marigold/system
2496
2598
  var SortIndicator = ({
2497
2599
  direction = "ascending",
2498
2600
  visible
2499
- }) => /* @__PURE__ */ React57.createElement(Box32, {
2500
- as: "span",
2501
- role: "presentation",
2502
- "aria-hidden": "true",
2503
- css: {
2504
- color: "currentColor",
2505
- paddingInlineStart: "0.5ch",
2506
- visibility: visible ? "visible" : "hidden"
2507
- }
2508
- }, direction === "ascending" ? "\u25B2" : "\u25BC");
2601
+ }) => /* @__PURE__ */ React57.createElement(
2602
+ Box32,
2603
+ {
2604
+ as: "span",
2605
+ role: "presentation",
2606
+ "aria-hidden": "true",
2607
+ css: {
2608
+ color: "currentColor",
2609
+ paddingInlineStart: "0.5ch",
2610
+ visibility: visible ? "visible" : "hidden"
2611
+ }
2612
+ },
2613
+ direction === "ascending" ? "\u25B2" : "\u25BC"
2614
+ );
2509
2615
  var TableColumnHeader = ({ column }) => {
2510
2616
  var _a, _b;
2511
2617
  const ref = useRef12(null);
@@ -2523,18 +2629,26 @@ var TableColumnHeader = ({ column }) => {
2523
2629
  hover: isHovered,
2524
2630
  focusVisible: isFocusVisible
2525
2631
  });
2526
- return /* @__PURE__ */ React57.createElement(Box32, {
2527
- as: "th",
2528
- colSpan: column.colspan,
2529
- ref,
2530
- __baseCSS: { cursor: "default" },
2531
- css: styles.header,
2532
- ...mergeProps12(columnHeaderProps, hoverProps, focusProps),
2533
- ...stateProps
2534
- }, column.rendered, column.props.allowsSorting && /* @__PURE__ */ React57.createElement(SortIndicator, {
2535
- direction: (_a = state.sortDescriptor) == null ? void 0 : _a.direction,
2536
- visible: ((_b = state.sortDescriptor) == null ? void 0 : _b.column) === column.key
2537
- }));
2632
+ return /* @__PURE__ */ React57.createElement(
2633
+ Box32,
2634
+ {
2635
+ as: "th",
2636
+ colSpan: column.colspan,
2637
+ ref,
2638
+ __baseCSS: { cursor: "default" },
2639
+ css: styles.header,
2640
+ ...mergeProps12(columnHeaderProps, hoverProps, focusProps),
2641
+ ...stateProps
2642
+ },
2643
+ column.rendered,
2644
+ column.props.allowsSorting && /* @__PURE__ */ React57.createElement(
2645
+ SortIndicator,
2646
+ {
2647
+ direction: (_a = state.sortDescriptor) == null ? void 0 : _a.direction,
2648
+ visible: ((_b = state.sortDescriptor) == null ? void 0 : _b.column) === column.key
2649
+ }
2650
+ )
2651
+ );
2538
2652
  };
2539
2653
 
2540
2654
  // src/Table/TableHeader.tsx
@@ -2542,9 +2656,7 @@ import React58 from "react";
2542
2656
  import { useTableRowGroup as useTableRowGroup2 } from "@react-aria/table";
2543
2657
  var TableHeader = ({ children }) => {
2544
2658
  const { rowGroupProps } = useTableRowGroup2();
2545
- return /* @__PURE__ */ React58.createElement("thead", {
2546
- ...rowGroupProps
2547
- }, children);
2659
+ return /* @__PURE__ */ React58.createElement("thead", { ...rowGroupProps }, children);
2548
2660
  };
2549
2661
 
2550
2662
  // src/Table/TableHeaderRow.tsx
@@ -2554,10 +2666,7 @@ var TableHeaderRow = ({ item, children }) => {
2554
2666
  const { state } = useTableContext();
2555
2667
  const ref = useRef13(null);
2556
2668
  const { rowProps } = useTableHeaderRow({ node: item }, state, ref);
2557
- return /* @__PURE__ */ React59.createElement("tr", {
2558
- ...rowProps,
2559
- ref
2560
- }, children);
2669
+ return /* @__PURE__ */ React59.createElement("tr", { ...rowProps, ref }, children);
2561
2670
  };
2562
2671
 
2563
2672
  // src/Table/TableRow.tsx
@@ -2596,16 +2705,20 @@ var TableRow = ({ children, row }) => {
2596
2705
  focusVisible: isFocusVisible,
2597
2706
  active: isPressed
2598
2707
  });
2599
- return /* @__PURE__ */ React60.createElement(Box33, {
2600
- as: "tr",
2601
- ref,
2602
- __baseCSS: {
2603
- cursor: !interactive ? "text" : disabled ? "default" : "pointer"
2708
+ return /* @__PURE__ */ React60.createElement(
2709
+ Box33,
2710
+ {
2711
+ as: "tr",
2712
+ ref,
2713
+ __baseCSS: {
2714
+ cursor: !interactive ? "text" : disabled ? "default" : "pointer"
2715
+ },
2716
+ css: styles,
2717
+ ...mergeProps13(rowProps, focusProps, hoverProps),
2718
+ ...stateProps
2604
2719
  },
2605
- css: styles,
2606
- ...mergeProps13(rowProps, focusProps, hoverProps),
2607
- ...stateProps
2608
- }, children);
2720
+ children
2721
+ );
2609
2722
  };
2610
2723
 
2611
2724
  // src/Table/TableSelectAllCell.tsx
@@ -2635,20 +2748,22 @@ var TableSelectAllCell = ({ column }) => {
2635
2748
  hover: isHovered,
2636
2749
  focusVisible: isFocusVisible
2637
2750
  });
2638
- return /* @__PURE__ */ React61.createElement(Box34, {
2639
- as: "th",
2640
- ref,
2641
- __baseCSS: {
2642
- textAlign: "center",
2643
- verticalAlign: "middle",
2644
- lineHeight: 1
2751
+ return /* @__PURE__ */ React61.createElement(
2752
+ Box34,
2753
+ {
2754
+ as: "th",
2755
+ ref,
2756
+ __baseCSS: {
2757
+ textAlign: "center",
2758
+ verticalAlign: "middle",
2759
+ lineHeight: 1
2760
+ },
2761
+ css: styles.header,
2762
+ ...mergeProps14(columnHeaderProps, hoverProps, focusProps),
2763
+ ...stateProps
2645
2764
  },
2646
- css: styles.header,
2647
- ...mergeProps14(columnHeaderProps, hoverProps, focusProps),
2648
- ...stateProps
2649
- }, /* @__PURE__ */ React61.createElement(Checkbox, {
2650
- ...checkboxProps
2651
- }));
2765
+ /* @__PURE__ */ React61.createElement(Checkbox, { ...checkboxProps })
2766
+ );
2652
2767
  };
2653
2768
 
2654
2769
  // src/Table/Table.tsx
@@ -2664,7 +2779,8 @@ var Table = ({
2664
2779
  const state = useTableState({
2665
2780
  ...props,
2666
2781
  selectionMode,
2667
- showSelectionCheckboxes: selectionMode === "multiple" && props.selectionBehavior !== "replace"
2782
+ showSelectionCheckboxes: selectionMode === "multiple" && // TODO: It this necessary?
2783
+ props.selectionBehavior !== "replace"
2668
2784
  });
2669
2785
  const { gridProps } = useTable(props, state, tableRef);
2670
2786
  const styles = useComponentStyles28(
@@ -2673,49 +2789,34 @@ var Table = ({
2673
2789
  { parts: ["table", "header", "row", "cell"] }
2674
2790
  );
2675
2791
  const { collection } = state;
2676
- return /* @__PURE__ */ React62.createElement(TableContext.Provider, {
2677
- value: { state, interactive, styles }
2678
- }, /* @__PURE__ */ React62.createElement(Box35, {
2679
- as: "table",
2680
- ref: tableRef,
2681
- __baseCSS: {
2682
- display: stretch ? "table" : "block",
2683
- width: stretch ? "100%" : void 0,
2684
- borderCollapse: "collapse",
2685
- overflow: "auto",
2686
- whiteSpace: "nowrap"
2792
+ return /* @__PURE__ */ React62.createElement(TableContext.Provider, { value: { state, interactive, styles } }, /* @__PURE__ */ React62.createElement(
2793
+ Box35,
2794
+ {
2795
+ as: "table",
2796
+ ref: tableRef,
2797
+ __baseCSS: {
2798
+ display: stretch ? "table" : "block",
2799
+ width: stretch ? "100%" : void 0,
2800
+ borderCollapse: "collapse",
2801
+ overflow: "auto",
2802
+ whiteSpace: "nowrap"
2803
+ },
2804
+ css: styles.table,
2805
+ ...gridProps
2687
2806
  },
2688
- css: styles.table,
2689
- ...gridProps
2690
- }, /* @__PURE__ */ React62.createElement(TableHeader, null, collection.headerRows.map((headerRow) => /* @__PURE__ */ React62.createElement(TableHeaderRow, {
2691
- key: headerRow.key,
2692
- item: headerRow
2693
- }, [...headerRow.childNodes].map(
2694
- (column) => {
2695
- var _a;
2696
- return ((_a = column.props) == null ? void 0 : _a.isSelectionCell) ? /* @__PURE__ */ React62.createElement(TableSelectAllCell, {
2697
- key: column.key,
2698
- column
2699
- }) : /* @__PURE__ */ React62.createElement(TableColumnHeader, {
2700
- key: column.key,
2701
- column
2702
- });
2703
- }
2704
- )))), /* @__PURE__ */ React62.createElement(TableBody, null, [...collection.body.childNodes].map((row) => /* @__PURE__ */ React62.createElement(TableRow, {
2705
- key: row.key,
2706
- row
2707
- }, [...row.childNodes].map(
2708
- (cell) => {
2709
- var _a;
2710
- return ((_a = cell.props) == null ? void 0 : _a.isSelectionCell) ? /* @__PURE__ */ React62.createElement(TableCheckboxCell, {
2711
- key: cell.key,
2712
- cell
2713
- }) : /* @__PURE__ */ React62.createElement(TableCell, {
2714
- key: cell.key,
2715
- cell
2716
- });
2717
- }
2718
- ))))));
2807
+ /* @__PURE__ */ React62.createElement(TableHeader, null, collection.headerRows.map((headerRow) => /* @__PURE__ */ React62.createElement(TableHeaderRow, { key: headerRow.key, item: headerRow }, [...headerRow.childNodes].map(
2808
+ (column) => {
2809
+ var _a;
2810
+ return ((_a = column.props) == null ? void 0 : _a.isSelectionCell) ? /* @__PURE__ */ React62.createElement(TableSelectAllCell, { key: column.key, column }) : /* @__PURE__ */ React62.createElement(TableColumnHeader, { key: column.key, column });
2811
+ }
2812
+ )))),
2813
+ /* @__PURE__ */ React62.createElement(TableBody, null, [...collection.body.childNodes].map((row) => /* @__PURE__ */ React62.createElement(TableRow, { key: row.key, row }, [...row.childNodes].map(
2814
+ (cell) => {
2815
+ var _a;
2816
+ return ((_a = cell.props) == null ? void 0 : _a.isSelectionCell) ? /* @__PURE__ */ React62.createElement(TableCheckboxCell, { key: cell.key, cell }) : /* @__PURE__ */ React62.createElement(TableCell, { key: cell.key, cell });
2817
+ }
2818
+ ))))
2819
+ ));
2719
2820
  };
2720
2821
  Table.Body = Body2;
2721
2822
  Table.Cell = Cell;
@@ -2746,22 +2847,26 @@ var Text = ({
2746
2847
  variant,
2747
2848
  size
2748
2849
  });
2749
- return /* @__PURE__ */ React63.createElement(Box36, {
2750
- as: "p",
2751
- ...props,
2752
- css: [
2753
- styles,
2754
- {
2755
- display,
2756
- color,
2757
- cursor,
2758
- outline,
2759
- fontSize,
2760
- fontWeight,
2761
- textAlign: align
2762
- }
2763
- ]
2764
- }, children);
2850
+ return /* @__PURE__ */ React63.createElement(
2851
+ Box36,
2852
+ {
2853
+ as: "p",
2854
+ ...props,
2855
+ css: [
2856
+ styles,
2857
+ {
2858
+ display,
2859
+ color,
2860
+ cursor,
2861
+ outline,
2862
+ fontSize,
2863
+ fontWeight,
2864
+ textAlign: align
2865
+ }
2866
+ ]
2867
+ },
2868
+ children
2869
+ );
2765
2870
  };
2766
2871
 
2767
2872
  // src/TextArea/TextArea.tsx
@@ -2810,29 +2915,36 @@ var TextArea = forwardRef14(
2810
2915
  error
2811
2916
  });
2812
2917
  const styles = useComponentStyles30("TextArea", { variant, size });
2813
- return /* @__PURE__ */ React64.createElement(FieldBase, {
2814
- label,
2815
- labelProps,
2816
- required,
2817
- description,
2818
- descriptionProps,
2819
- error,
2820
- errorMessage,
2821
- errorMessageProps,
2822
- stateProps,
2823
- variant,
2824
- size,
2825
- width
2826
- }, /* @__PURE__ */ React64.createElement(Box37, {
2827
- as: "textarea",
2828
- css: styles,
2829
- ref: textAreaRef,
2830
- rows,
2831
- ...inputProps,
2832
- ...focusProps,
2833
- ...hoverProps,
2834
- ...stateProps
2835
- }));
2918
+ return /* @__PURE__ */ React64.createElement(
2919
+ FieldBase,
2920
+ {
2921
+ label,
2922
+ labelProps,
2923
+ required,
2924
+ description,
2925
+ descriptionProps,
2926
+ error,
2927
+ errorMessage,
2928
+ errorMessageProps,
2929
+ stateProps,
2930
+ variant,
2931
+ size,
2932
+ width
2933
+ },
2934
+ /* @__PURE__ */ React64.createElement(
2935
+ Box37,
2936
+ {
2937
+ as: "textarea",
2938
+ css: styles,
2939
+ ref: textAreaRef,
2940
+ rows,
2941
+ ...inputProps,
2942
+ ...focusProps,
2943
+ ...hoverProps,
2944
+ ...stateProps
2945
+ }
2946
+ )
2947
+ );
2836
2948
  }
2837
2949
  );
2838
2950
 
@@ -2869,28 +2981,35 @@ var TextField = forwardRef15(
2869
2981
  readOnly,
2870
2982
  error
2871
2983
  });
2872
- return /* @__PURE__ */ React65.createElement(FieldBase, {
2873
- label,
2874
- labelProps,
2875
- required,
2876
- description,
2877
- descriptionProps,
2878
- error,
2879
- errorMessage,
2880
- errorMessageProps,
2881
- stateProps,
2882
- variant,
2883
- size,
2884
- width
2885
- }, /* @__PURE__ */ React65.createElement(Input, {
2886
- ref: inputRef,
2887
- variant,
2888
- size,
2889
- ...inputProps,
2890
- ...focusProps,
2891
- ...hoverProps,
2892
- ...stateProps
2893
- }));
2984
+ return /* @__PURE__ */ React65.createElement(
2985
+ FieldBase,
2986
+ {
2987
+ label,
2988
+ labelProps,
2989
+ required,
2990
+ description,
2991
+ descriptionProps,
2992
+ error,
2993
+ errorMessage,
2994
+ errorMessageProps,
2995
+ stateProps,
2996
+ variant,
2997
+ size,
2998
+ width
2999
+ },
3000
+ /* @__PURE__ */ React65.createElement(
3001
+ Input,
3002
+ {
3003
+ ref: inputRef,
3004
+ variant,
3005
+ size,
3006
+ ...inputProps,
3007
+ ...focusProps,
3008
+ ...hoverProps,
3009
+ ...stateProps
3010
+ }
3011
+ )
3012
+ );
2894
3013
  }
2895
3014
  );
2896
3015
 
@@ -2911,15 +3030,23 @@ var Tiles = ({
2911
3030
  if (stretch) {
2912
3031
  column = `minmax(${column}, 1fr)`;
2913
3032
  }
2914
- return /* @__PURE__ */ React66.createElement(Box, {
2915
- ...props,
2916
- css: {
2917
- display: "grid",
2918
- gap: space,
2919
- gridTemplateColumns: `repeat(auto-fit, ${column})`,
2920
- gridAutoRows: equalHeight ? "1fr" : void 0
2921
- }
2922
- }, children);
3033
+ return /* @__PURE__ */ React66.createElement(
3034
+ Box,
3035
+ {
3036
+ ...props,
3037
+ css: {
3038
+ display: "grid",
3039
+ gap: space,
3040
+ gridTemplateColumns: `repeat(auto-fit, ${column})`,
3041
+ /**
3042
+ * Make height of all tiles in each row
3043
+ * match the heighest tile.
3044
+ */
3045
+ gridAutoRows: equalHeight ? "1fr" : void 0
3046
+ }
3047
+ },
3048
+ children
3049
+ );
2923
3050
  };
2924
3051
 
2925
3052
  // src/Tooltip/Tooltip.tsx
@@ -2977,21 +3104,20 @@ var TooltipTrigger = ({
2977
3104
  isOpen: state.isOpen,
2978
3105
  overlayRef
2979
3106
  });
2980
- return /* @__PURE__ */ React67.createElement(FocusableProvider, {
2981
- ref: tooltipTriggerRef,
2982
- ...triggerProps
2983
- }, tooltipTrigger, /* @__PURE__ */ React67.createElement(TooltipContext.Provider, {
2984
- value: {
2985
- state,
2986
- overlayRef,
2987
- arrowProps,
2988
- placement: overlayPlacement,
2989
- ...tooltipProps,
2990
- ...positionProps
2991
- }
2992
- }, /* @__PURE__ */ React67.createElement(Overlay, {
2993
- open: state.isOpen
2994
- }, tooltip)));
3107
+ return /* @__PURE__ */ React67.createElement(FocusableProvider, { ref: tooltipTriggerRef, ...triggerProps }, tooltipTrigger, /* @__PURE__ */ React67.createElement(
3108
+ TooltipContext.Provider,
3109
+ {
3110
+ value: {
3111
+ state,
3112
+ overlayRef,
3113
+ arrowProps,
3114
+ placement: overlayPlacement,
3115
+ ...tooltipProps,
3116
+ ...positionProps
3117
+ }
3118
+ },
3119
+ /* @__PURE__ */ React67.createElement(Overlay, { open: state.isOpen }, tooltip)
3120
+ ));
2995
3121
  };
2996
3122
 
2997
3123
  // src/Tooltip/Tooltip.tsx
@@ -3003,152 +3129,249 @@ var Tooltip = ({ children, variant, size }) => {
3003
3129
  { variant, size },
3004
3130
  { parts: ["container", "arrow"] }
3005
3131
  );
3006
- return /* @__PURE__ */ React68.createElement(Box38, {
3007
- ...tooltipProps,
3008
- ...rest,
3009
- ref: overlayRef,
3010
- css: styles.container,
3011
- "data-placement": placement
3012
- }, /* @__PURE__ */ React68.createElement("div", null, children), /* @__PURE__ */ React68.createElement(Box38, {
3013
- ...arrowProps,
3014
- __baseCSS: {
3015
- position: "absolute",
3016
- height: 0,
3017
- width: 0,
3018
- borderStyle: "solid",
3019
- borderLeftColor: "transparent",
3020
- borderRightColor: "transparent",
3021
- borderBottomColor: "transparent"
3132
+ return /* @__PURE__ */ React68.createElement(
3133
+ Box38,
3134
+ {
3135
+ ...tooltipProps,
3136
+ ...rest,
3137
+ ref: overlayRef,
3138
+ css: styles.container,
3139
+ "data-placement": placement
3022
3140
  },
3023
- css: styles.arrow
3024
- }));
3141
+ /* @__PURE__ */ React68.createElement("div", null, children),
3142
+ /* @__PURE__ */ React68.createElement(
3143
+ Box38,
3144
+ {
3145
+ ...arrowProps,
3146
+ __baseCSS: {
3147
+ position: "absolute",
3148
+ height: 0,
3149
+ width: 0,
3150
+ borderStyle: "solid",
3151
+ borderLeftColor: "transparent",
3152
+ borderRightColor: "transparent",
3153
+ borderBottomColor: "transparent"
3154
+ },
3155
+ css: styles.arrow
3156
+ }
3157
+ )
3158
+ );
3025
3159
  };
3026
3160
  Tooltip.Trigger = TooltipTrigger;
3027
3161
 
3028
3162
  // src/XLoader/XLoader.tsx
3029
3163
  import { SVG as SVG4 } from "@marigold/system";
3030
3164
  import React69, { forwardRef as forwardRef16 } from "react";
3031
- var XLoader = forwardRef16((props, ref) => /* @__PURE__ */ React69.createElement(SVG4, {
3032
- id: "XLoader",
3033
- xmlns: "http://www.w3.org/2000/svg",
3034
- size: 150,
3035
- viewBox: "0 0 150 150",
3036
- ...props,
3037
- ...ref
3038
- }, /* @__PURE__ */ React69.createElement("path", {
3039
- id: "XMLID_1_",
3040
- d: "M35.3 27h26.5l54 74.1H88.7z"
3041
- }), /* @__PURE__ */ React69.createElement("path", {
3042
- id: "XMLID_5_",
3043
- 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"
3044
- }, /* @__PURE__ */ React69.createElement("animate", {
3045
- attributeName: "opacity",
3046
- attributeType: "XML",
3047
- values: "1; .01; 1; 1; 1;",
3048
- begin: "1.0s",
3049
- dur: "2.5s",
3050
- repeatCount: "indefinite"
3051
- })), /* @__PURE__ */ React69.createElement("path", {
3052
- id: "XMLID_18_",
3053
- 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"
3054
- }, /* @__PURE__ */ React69.createElement("animate", {
3055
- attributeName: "opacity",
3056
- attributeType: "XML",
3057
- values: "1; .01; 1; 1; 1;",
3058
- begin: "0.9s",
3059
- dur: "2.5s",
3060
- repeatCount: "indefinite"
3061
- })), /* @__PURE__ */ React69.createElement("path", {
3062
- id: "XMLID_19_",
3063
- 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"
3064
- }, /* @__PURE__ */ React69.createElement("animate", {
3065
- attributeName: "opacity",
3066
- attributeType: "XML",
3067
- values: "1; .01; 1; 1; 1;",
3068
- begin: "0.8s",
3069
- dur: "2.5s",
3070
- repeatCount: "indefinite"
3071
- })), /* @__PURE__ */ React69.createElement("path", {
3072
- id: "XMLID_20_",
3073
- 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"
3074
- }, /* @__PURE__ */ React69.createElement("animate", {
3075
- attributeName: "opacity",
3076
- attributeType: "XML",
3077
- values: "1; .01; 1; 1; 1;",
3078
- begin: "0.7s",
3079
- dur: "2.5s",
3080
- repeatCount: "indefinite"
3081
- })), /* @__PURE__ */ React69.createElement("path", {
3082
- id: "XMLID_21_",
3083
- 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"
3084
- }, /* @__PURE__ */ React69.createElement("animate", {
3085
- attributeName: "opacity",
3086
- attributeType: "XML",
3087
- values: "1; .01; 1; 1; 1;",
3088
- begin: "0.6s",
3089
- dur: "2.5s",
3090
- repeatCount: "indefinite"
3091
- })), /* @__PURE__ */ React69.createElement("path", {
3092
- id: "XMLID_22_",
3093
- 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"
3094
- }, /* @__PURE__ */ React69.createElement("animate", {
3095
- attributeName: "opacity",
3096
- attributeType: "XML",
3097
- values: "1; .01; 1; 1; 1;",
3098
- begin: "0.5s",
3099
- dur: "2.5s",
3100
- repeatCount: "indefinite"
3101
- })), /* @__PURE__ */ React69.createElement("path", {
3102
- id: "XMLID_23_",
3103
- 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"
3104
- }, /* @__PURE__ */ React69.createElement("animate", {
3105
- attributeName: "opacity",
3106
- attributeType: "XML",
3107
- values: "1; .01; 1; 1; 1;",
3108
- begin: "0.4s",
3109
- dur: "2.5s",
3110
- repeatCount: "indefinite"
3111
- })), /* @__PURE__ */ React69.createElement("path", {
3112
- id: "XMLID_24_",
3113
- 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"
3114
- }, /* @__PURE__ */ React69.createElement("animate", {
3115
- attributeName: "opacity",
3116
- attributeType: "XML",
3117
- values: "1; .01; 1; 1; 1;",
3118
- begin: "0.3s",
3119
- dur: "2.5s",
3120
- repeatCount: "indefinite"
3121
- })), /* @__PURE__ */ React69.createElement("path", {
3122
- id: "XMLID_25_",
3123
- 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"
3124
- }, /* @__PURE__ */ React69.createElement("animate", {
3125
- attributeName: "opacity",
3126
- attributeType: "XML",
3127
- values: "1; .01; 1; 1; 1;",
3128
- begin: "0.2s",
3129
- dur: "2.5s",
3130
- repeatCount: "indefinite"
3131
- })), /* @__PURE__ */ React69.createElement("path", {
3132
- id: "XMLID_26_",
3133
- 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"
3134
- }, /* @__PURE__ */ React69.createElement("animate", {
3135
- attributeName: "opacity",
3136
- attributeType: "XML",
3137
- values: "1; .01; 1; 1; 1;",
3138
- begin: "0.1s",
3139
- dur: "2.5s",
3140
- repeatCount: "indefinite"
3141
- })), /* @__PURE__ */ React69.createElement("path", {
3142
- id: "XMLID_27_",
3143
- 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"
3144
- }, /* @__PURE__ */ React69.createElement("animate", {
3145
- attributeName: "opacity",
3146
- attributeType: "XML",
3147
- values: "1; .01; 1; 1; 1;",
3148
- begin: "0.0s",
3149
- dur: "2.5s",
3150
- repeatCount: "indefinite"
3151
- }))));
3165
+ var XLoader = forwardRef16((props, ref) => /* @__PURE__ */ React69.createElement(
3166
+ SVG4,
3167
+ {
3168
+ id: "XLoader",
3169
+ xmlns: "http://www.w3.org/2000/svg",
3170
+ size: 150,
3171
+ viewBox: "0 0 150 150",
3172
+ ...props,
3173
+ ...ref
3174
+ },
3175
+ /* @__PURE__ */ React69.createElement("path", { id: "XMLID_1_", d: "M35.3 27h26.5l54 74.1H88.7z" }),
3176
+ /* @__PURE__ */ React69.createElement(
3177
+ "path",
3178
+ {
3179
+ id: "XMLID_5_",
3180
+ 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"
3181
+ },
3182
+ /* @__PURE__ */ React69.createElement(
3183
+ "animate",
3184
+ {
3185
+ attributeName: "opacity",
3186
+ attributeType: "XML",
3187
+ values: "1; .01; 1; 1; 1;",
3188
+ begin: "1.0s",
3189
+ dur: "2.5s",
3190
+ repeatCount: "indefinite"
3191
+ }
3192
+ )
3193
+ ),
3194
+ /* @__PURE__ */ React69.createElement(
3195
+ "path",
3196
+ {
3197
+ id: "XMLID_18_",
3198
+ 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"
3199
+ },
3200
+ /* @__PURE__ */ React69.createElement(
3201
+ "animate",
3202
+ {
3203
+ attributeName: "opacity",
3204
+ attributeType: "XML",
3205
+ values: "1; .01; 1; 1; 1;",
3206
+ begin: "0.9s",
3207
+ dur: "2.5s",
3208
+ repeatCount: "indefinite"
3209
+ }
3210
+ )
3211
+ ),
3212
+ /* @__PURE__ */ React69.createElement(
3213
+ "path",
3214
+ {
3215
+ id: "XMLID_19_",
3216
+ 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"
3217
+ },
3218
+ /* @__PURE__ */ React69.createElement(
3219
+ "animate",
3220
+ {
3221
+ attributeName: "opacity",
3222
+ attributeType: "XML",
3223
+ values: "1; .01; 1; 1; 1;",
3224
+ begin: "0.8s",
3225
+ dur: "2.5s",
3226
+ repeatCount: "indefinite"
3227
+ }
3228
+ )
3229
+ ),
3230
+ /* @__PURE__ */ React69.createElement(
3231
+ "path",
3232
+ {
3233
+ id: "XMLID_20_",
3234
+ 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"
3235
+ },
3236
+ /* @__PURE__ */ React69.createElement(
3237
+ "animate",
3238
+ {
3239
+ attributeName: "opacity",
3240
+ attributeType: "XML",
3241
+ values: "1; .01; 1; 1; 1;",
3242
+ begin: "0.7s",
3243
+ dur: "2.5s",
3244
+ repeatCount: "indefinite"
3245
+ }
3246
+ )
3247
+ ),
3248
+ /* @__PURE__ */ React69.createElement(
3249
+ "path",
3250
+ {
3251
+ id: "XMLID_21_",
3252
+ 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"
3253
+ },
3254
+ /* @__PURE__ */ React69.createElement(
3255
+ "animate",
3256
+ {
3257
+ attributeName: "opacity",
3258
+ attributeType: "XML",
3259
+ values: "1; .01; 1; 1; 1;",
3260
+ begin: "0.6s",
3261
+ dur: "2.5s",
3262
+ repeatCount: "indefinite"
3263
+ }
3264
+ )
3265
+ ),
3266
+ /* @__PURE__ */ React69.createElement(
3267
+ "path",
3268
+ {
3269
+ id: "XMLID_22_",
3270
+ 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"
3271
+ },
3272
+ /* @__PURE__ */ React69.createElement(
3273
+ "animate",
3274
+ {
3275
+ attributeName: "opacity",
3276
+ attributeType: "XML",
3277
+ values: "1; .01; 1; 1; 1;",
3278
+ begin: "0.5s",
3279
+ dur: "2.5s",
3280
+ repeatCount: "indefinite"
3281
+ }
3282
+ )
3283
+ ),
3284
+ /* @__PURE__ */ React69.createElement(
3285
+ "path",
3286
+ {
3287
+ id: "XMLID_23_",
3288
+ 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"
3289
+ },
3290
+ /* @__PURE__ */ React69.createElement(
3291
+ "animate",
3292
+ {
3293
+ attributeName: "opacity",
3294
+ attributeType: "XML",
3295
+ values: "1; .01; 1; 1; 1;",
3296
+ begin: "0.4s",
3297
+ dur: "2.5s",
3298
+ repeatCount: "indefinite"
3299
+ }
3300
+ )
3301
+ ),
3302
+ /* @__PURE__ */ React69.createElement(
3303
+ "path",
3304
+ {
3305
+ id: "XMLID_24_",
3306
+ 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"
3307
+ },
3308
+ /* @__PURE__ */ React69.createElement(
3309
+ "animate",
3310
+ {
3311
+ attributeName: "opacity",
3312
+ attributeType: "XML",
3313
+ values: "1; .01; 1; 1; 1;",
3314
+ begin: "0.3s",
3315
+ dur: "2.5s",
3316
+ repeatCount: "indefinite"
3317
+ }
3318
+ )
3319
+ ),
3320
+ /* @__PURE__ */ React69.createElement(
3321
+ "path",
3322
+ {
3323
+ id: "XMLID_25_",
3324
+ 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"
3325
+ },
3326
+ /* @__PURE__ */ React69.createElement(
3327
+ "animate",
3328
+ {
3329
+ attributeName: "opacity",
3330
+ attributeType: "XML",
3331
+ values: "1; .01; 1; 1; 1;",
3332
+ begin: "0.2s",
3333
+ dur: "2.5s",
3334
+ repeatCount: "indefinite"
3335
+ }
3336
+ )
3337
+ ),
3338
+ /* @__PURE__ */ React69.createElement(
3339
+ "path",
3340
+ {
3341
+ id: "XMLID_26_",
3342
+ 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"
3343
+ },
3344
+ /* @__PURE__ */ React69.createElement(
3345
+ "animate",
3346
+ {
3347
+ attributeName: "opacity",
3348
+ attributeType: "XML",
3349
+ values: "1; .01; 1; 1; 1;",
3350
+ begin: "0.1s",
3351
+ dur: "2.5s",
3352
+ repeatCount: "indefinite"
3353
+ }
3354
+ )
3355
+ ),
3356
+ /* @__PURE__ */ React69.createElement(
3357
+ "path",
3358
+ {
3359
+ id: "XMLID_27_",
3360
+ 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"
3361
+ },
3362
+ /* @__PURE__ */ React69.createElement(
3363
+ "animate",
3364
+ {
3365
+ attributeName: "opacity",
3366
+ attributeType: "XML",
3367
+ values: "1; .01; 1; 1; 1;",
3368
+ begin: "0.0s",
3369
+ dur: "2.5s",
3370
+ repeatCount: "indefinite"
3371
+ }
3372
+ )
3373
+ )
3374
+ ));
3152
3375
  export {
3153
3376
  ActionMenu,
3154
3377
  Aside,