@marigold/components 4.2.1 → 5.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +77 -47
- package/dist/index.js +500 -401
- package/dist/index.mjs +394 -300
- package/package.json +44 -44
package/dist/index.mjs
CHANGED
|
@@ -93,12 +93,12 @@ var Breakout = ({
|
|
|
93
93
|
const alignItems = useAlignment(alignY);
|
|
94
94
|
const justifyContent = useAlignment(alignX);
|
|
95
95
|
return /* @__PURE__ */ React4.createElement(Box, {
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
96
|
+
css: {
|
|
97
|
+
alignItems,
|
|
98
|
+
justifyContent,
|
|
99
|
+
height,
|
|
100
|
+
width: "100%",
|
|
101
|
+
display: alignY || alignX ? "flex" : "block",
|
|
102
102
|
gridColumn: "1 / -1 !important"
|
|
103
103
|
},
|
|
104
104
|
...props
|
|
@@ -241,7 +241,7 @@ var Center = ({
|
|
|
241
241
|
}, children);
|
|
242
242
|
|
|
243
243
|
// src/Checkbox/Checkbox.tsx
|
|
244
|
-
import
|
|
244
|
+
import React14, { forwardRef as forwardRef2 } from "react";
|
|
245
245
|
import { useCheckbox, useCheckboxGroupItem } from "@react-aria/checkbox";
|
|
246
246
|
import { useFocusRing as useFocusRing2 } from "@react-aria/focus";
|
|
247
247
|
import { useHover as useHover2 } from "@react-aria/interactions";
|
|
@@ -254,7 +254,7 @@ import {
|
|
|
254
254
|
} from "@marigold/system";
|
|
255
255
|
|
|
256
256
|
// src/Checkbox/CheckboxGroup.tsx
|
|
257
|
-
import
|
|
257
|
+
import React13, { createContext as createContext2, useContext as useContext2 } from "react";
|
|
258
258
|
import { useCheckboxGroup } from "@react-aria/checkbox";
|
|
259
259
|
import {
|
|
260
260
|
useCheckboxGroupState
|
|
@@ -262,7 +262,7 @@ import {
|
|
|
262
262
|
import { Box as Box8, useStateProps as useStateProps2 } from "@marigold/system";
|
|
263
263
|
|
|
264
264
|
// src/FieldBase/FieldBase.tsx
|
|
265
|
-
import
|
|
265
|
+
import React12 from "react";
|
|
266
266
|
import {
|
|
267
267
|
Box as Box7,
|
|
268
268
|
useComponentStyles as useComponentStyles7
|
|
@@ -277,6 +277,7 @@ var Label = ({
|
|
|
277
277
|
children,
|
|
278
278
|
variant,
|
|
279
279
|
size,
|
|
280
|
+
labelWidth,
|
|
280
281
|
...props
|
|
281
282
|
}) => {
|
|
282
283
|
const styles = useComponentStyles5("Label", { size, variant });
|
|
@@ -284,7 +285,10 @@ var Label = ({
|
|
|
284
285
|
...props,
|
|
285
286
|
as,
|
|
286
287
|
"aria-required": required,
|
|
287
|
-
__baseCSS: {
|
|
288
|
+
__baseCSS: {
|
|
289
|
+
display: "flex",
|
|
290
|
+
width: labelWidth
|
|
291
|
+
},
|
|
288
292
|
css: styles
|
|
289
293
|
}, children, required && /* @__PURE__ */ React9.createElement(SVG, {
|
|
290
294
|
viewBox: "0 0 24 24",
|
|
@@ -335,6 +339,17 @@ var HelpText = ({
|
|
|
335
339
|
})), errorMessage) : /* @__PURE__ */ React10.createElement(React10.Fragment, null, description));
|
|
336
340
|
};
|
|
337
341
|
|
|
342
|
+
// src/FieldBase/FieldGroup.tsx
|
|
343
|
+
import React11 from "react";
|
|
344
|
+
import { createContext, useContext } from "react";
|
|
345
|
+
var FieldGroupContext = createContext({});
|
|
346
|
+
var useFieldGroupContext = () => useContext(FieldGroupContext);
|
|
347
|
+
var FieldGroup = ({ labelWidth, children }) => {
|
|
348
|
+
return /* @__PURE__ */ React11.createElement(FieldGroupContext.Provider, {
|
|
349
|
+
value: { labelWidth }
|
|
350
|
+
}, children);
|
|
351
|
+
};
|
|
352
|
+
|
|
338
353
|
// src/FieldBase/FieldBase.tsx
|
|
339
354
|
var FieldBase = ({
|
|
340
355
|
children,
|
|
@@ -355,7 +370,8 @@ var FieldBase = ({
|
|
|
355
370
|
}) => {
|
|
356
371
|
const hasHelpText = !!description || errorMessage && error;
|
|
357
372
|
const style = useComponentStyles7("Field", { variant, size });
|
|
358
|
-
|
|
373
|
+
const { labelWidth } = useFieldGroupContext();
|
|
374
|
+
return /* @__PURE__ */ React12.createElement(Box7, {
|
|
359
375
|
...props,
|
|
360
376
|
__baseCSS: {
|
|
361
377
|
display: "flex",
|
|
@@ -364,15 +380,16 @@ var FieldBase = ({
|
|
|
364
380
|
position: "relative"
|
|
365
381
|
},
|
|
366
382
|
css: style
|
|
367
|
-
}, label && /* @__PURE__ */
|
|
383
|
+
}, label && /* @__PURE__ */ React12.createElement(Label, {
|
|
368
384
|
required,
|
|
369
385
|
variant,
|
|
370
386
|
size,
|
|
387
|
+
labelWidth,
|
|
371
388
|
...labelProps,
|
|
372
389
|
...stateProps
|
|
373
|
-
}, label), /* @__PURE__ */
|
|
390
|
+
}, label), /* @__PURE__ */ React12.createElement(Box7, {
|
|
374
391
|
__baseCSS: { display: "flex", flexDirection: "column" }
|
|
375
|
-
}, children, hasHelpText && /* @__PURE__ */
|
|
392
|
+
}, children, hasHelpText && /* @__PURE__ */ React12.createElement(HelpText, {
|
|
376
393
|
...stateProps,
|
|
377
394
|
variant,
|
|
378
395
|
size,
|
|
@@ -386,10 +403,10 @@ var FieldBase = ({
|
|
|
386
403
|
};
|
|
387
404
|
|
|
388
405
|
// src/Checkbox/CheckboxGroup.tsx
|
|
389
|
-
var CheckboxGroupContext =
|
|
406
|
+
var CheckboxGroupContext = createContext2(
|
|
390
407
|
null
|
|
391
408
|
);
|
|
392
|
-
var useCheckboxGroupContext = () =>
|
|
409
|
+
var useCheckboxGroupContext = () => useContext2(CheckboxGroupContext);
|
|
393
410
|
var CheckboxGroup = ({
|
|
394
411
|
children,
|
|
395
412
|
required,
|
|
@@ -412,7 +429,7 @@ var CheckboxGroup = ({
|
|
|
412
429
|
readOnly,
|
|
413
430
|
error
|
|
414
431
|
});
|
|
415
|
-
return /* @__PURE__ */
|
|
432
|
+
return /* @__PURE__ */ React13.createElement(FieldBase, {
|
|
416
433
|
label: props.label,
|
|
417
434
|
labelProps: { as: "span", ...labelProps },
|
|
418
435
|
description: props.description,
|
|
@@ -424,36 +441,36 @@ var CheckboxGroup = ({
|
|
|
424
441
|
stateProps,
|
|
425
442
|
required,
|
|
426
443
|
...groupProps
|
|
427
|
-
}, /* @__PURE__ */
|
|
444
|
+
}, /* @__PURE__ */ React13.createElement(Box8, {
|
|
428
445
|
role: "presentation",
|
|
429
446
|
__baseCSS: {
|
|
430
447
|
display: "flex",
|
|
431
448
|
flexDirection: "column",
|
|
432
449
|
alignItems: "start"
|
|
433
450
|
}
|
|
434
|
-
}, /* @__PURE__ */
|
|
451
|
+
}, /* @__PURE__ */ React13.createElement(CheckboxGroupContext.Provider, {
|
|
435
452
|
value: { error, ...state }
|
|
436
453
|
}, children)));
|
|
437
454
|
};
|
|
438
455
|
|
|
439
456
|
// src/Checkbox/Checkbox.tsx
|
|
440
|
-
var CheckMark = () => /* @__PURE__ */
|
|
457
|
+
var CheckMark = () => /* @__PURE__ */ React14.createElement("svg", {
|
|
441
458
|
viewBox: "0 0 12 10"
|
|
442
|
-
}, /* @__PURE__ */
|
|
459
|
+
}, /* @__PURE__ */ React14.createElement("path", {
|
|
443
460
|
fill: "currentColor",
|
|
444
461
|
stroke: "none",
|
|
445
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"
|
|
446
463
|
}));
|
|
447
|
-
var IndeterminateMark = () => /* @__PURE__ */
|
|
464
|
+
var IndeterminateMark = () => /* @__PURE__ */ React14.createElement("svg", {
|
|
448
465
|
width: "12",
|
|
449
466
|
height: "3",
|
|
450
467
|
viewBox: "0 0 12 3"
|
|
451
|
-
}, /* @__PURE__ */
|
|
468
|
+
}, /* @__PURE__ */ React14.createElement("path", {
|
|
452
469
|
fill: "currentColor",
|
|
453
470
|
stroke: "none",
|
|
454
471
|
d: "M11.5 2.04018H0.5V0.46875H11.5V2.04018Z"
|
|
455
472
|
}));
|
|
456
|
-
var Icon = ({ css, checked, indeterminate, ...props }) => /* @__PURE__ */
|
|
473
|
+
var Icon = ({ css, checked, indeterminate, ...props }) => /* @__PURE__ */ React14.createElement(Box9, {
|
|
457
474
|
"aria-hidden": "true",
|
|
458
475
|
__baseCSS: {
|
|
459
476
|
flex: "0 0 16px",
|
|
@@ -469,7 +486,7 @@ var Icon = ({ css, checked, indeterminate, ...props }) => /* @__PURE__ */ React1
|
|
|
469
486
|
},
|
|
470
487
|
css,
|
|
471
488
|
...props
|
|
472
|
-
}, indeterminate ? /* @__PURE__ */
|
|
489
|
+
}, indeterminate ? /* @__PURE__ */ React14.createElement(IndeterminateMark, null) : checked ? /* @__PURE__ */ React14.createElement(CheckMark, null) : null);
|
|
473
490
|
var Checkbox = forwardRef2(
|
|
474
491
|
({
|
|
475
492
|
size,
|
|
@@ -534,7 +551,7 @@ var Checkbox = forwardRef2(
|
|
|
534
551
|
readOnly,
|
|
535
552
|
indeterminate
|
|
536
553
|
});
|
|
537
|
-
return /* @__PURE__ */
|
|
554
|
+
return /* @__PURE__ */ React14.createElement(Box9, {
|
|
538
555
|
as: "label",
|
|
539
556
|
__baseCSS: {
|
|
540
557
|
display: "flex",
|
|
@@ -545,7 +562,7 @@ var Checkbox = forwardRef2(
|
|
|
545
562
|
css: styles.container,
|
|
546
563
|
...hoverProps,
|
|
547
564
|
...stateProps
|
|
548
|
-
}, /* @__PURE__ */
|
|
565
|
+
}, /* @__PURE__ */ React14.createElement(Box9, {
|
|
549
566
|
as: "input",
|
|
550
567
|
ref: inputRef,
|
|
551
568
|
css: {
|
|
@@ -560,12 +577,12 @@ var Checkbox = forwardRef2(
|
|
|
560
577
|
},
|
|
561
578
|
...inputProps,
|
|
562
579
|
...focusProps
|
|
563
|
-
}), /* @__PURE__ */
|
|
580
|
+
}), /* @__PURE__ */ React14.createElement(Icon, {
|
|
564
581
|
checked: inputProps.checked,
|
|
565
582
|
indeterminate,
|
|
566
583
|
css: styles.checkbox,
|
|
567
584
|
...stateProps
|
|
568
|
-
}), props.children && /* @__PURE__ */
|
|
585
|
+
}), props.children && /* @__PURE__ */ React14.createElement(Box9, {
|
|
569
586
|
css: styles.label,
|
|
570
587
|
...stateProps
|
|
571
588
|
}, props.children));
|
|
@@ -573,7 +590,7 @@ var Checkbox = forwardRef2(
|
|
|
573
590
|
);
|
|
574
591
|
|
|
575
592
|
// src/Columns/Columns.tsx
|
|
576
|
-
import
|
|
593
|
+
import React15, {
|
|
577
594
|
Children,
|
|
578
595
|
cloneElement,
|
|
579
596
|
isValidElement
|
|
@@ -593,7 +610,7 @@ var Columns = ({
|
|
|
593
610
|
)}`
|
|
594
611
|
);
|
|
595
612
|
}
|
|
596
|
-
return /* @__PURE__ */
|
|
613
|
+
return /* @__PURE__ */ React15.createElement(Box, {
|
|
597
614
|
css: {
|
|
598
615
|
display: "flex",
|
|
599
616
|
flexWrap: "wrap",
|
|
@@ -605,7 +622,7 @@ var Columns = ({
|
|
|
605
622
|
}
|
|
606
623
|
},
|
|
607
624
|
...props
|
|
608
|
-
}, Children.map(children, (child, idx) => /* @__PURE__ */
|
|
625
|
+
}, Children.map(children, (child, idx) => /* @__PURE__ */ React15.createElement(Box, {
|
|
609
626
|
css: {
|
|
610
627
|
flexGrow: columns[idx]
|
|
611
628
|
}
|
|
@@ -613,7 +630,7 @@ var Columns = ({
|
|
|
613
630
|
};
|
|
614
631
|
|
|
615
632
|
// src/Container/Container.tsx
|
|
616
|
-
import
|
|
633
|
+
import React16 from "react";
|
|
617
634
|
import { size as tokenSize } from "@marigold/tokens";
|
|
618
635
|
var ALIGN_ITEMS = {
|
|
619
636
|
left: "start",
|
|
@@ -644,9 +661,9 @@ var Container = ({
|
|
|
644
661
|
...props
|
|
645
662
|
}) => {
|
|
646
663
|
const maxWidth = tokenSize[contentType][size];
|
|
647
|
-
return /* @__PURE__ */
|
|
648
|
-
display: "grid",
|
|
664
|
+
return /* @__PURE__ */ React16.createElement(Box, {
|
|
649
665
|
css: {
|
|
666
|
+
display: "grid",
|
|
650
667
|
gridTemplateColumns: ALIGN[align](maxWidth).gridTemplateColumns,
|
|
651
668
|
placeItems: ALIGN_ITEMS[alignItems],
|
|
652
669
|
"> *": {
|
|
@@ -658,7 +675,7 @@ var Container = ({
|
|
|
658
675
|
};
|
|
659
676
|
|
|
660
677
|
// src/Dialog/Dialog.tsx
|
|
661
|
-
import
|
|
678
|
+
import React26, { useRef as useRef3 } from "react";
|
|
662
679
|
import { useButton as useButton2 } from "@react-aria/button";
|
|
663
680
|
import { useDialog } from "@react-aria/dialog";
|
|
664
681
|
import {
|
|
@@ -667,13 +684,13 @@ import {
|
|
|
667
684
|
} from "@marigold/system";
|
|
668
685
|
|
|
669
686
|
// src/Header/Header.tsx
|
|
670
|
-
import
|
|
687
|
+
import React17 from "react";
|
|
671
688
|
import {
|
|
672
689
|
useComponentStyles as useComponentStyles9
|
|
673
690
|
} from "@marigold/system";
|
|
674
691
|
var Header = ({ children, variant, size, ...props }) => {
|
|
675
692
|
const styles = useComponentStyles9("Header", { variant, size });
|
|
676
|
-
return /* @__PURE__ */
|
|
693
|
+
return /* @__PURE__ */ React17.createElement(Box, {
|
|
677
694
|
as: "header",
|
|
678
695
|
...props,
|
|
679
696
|
css: styles
|
|
@@ -681,7 +698,7 @@ var Header = ({ children, variant, size, ...props }) => {
|
|
|
681
698
|
};
|
|
682
699
|
|
|
683
700
|
// src/Headline/Headline.tsx
|
|
684
|
-
import
|
|
701
|
+
import React18 from "react";
|
|
685
702
|
import {
|
|
686
703
|
Box as Box10,
|
|
687
704
|
useComponentStyles as useComponentStyles10
|
|
@@ -699,7 +716,7 @@ var Headline = ({
|
|
|
699
716
|
variant,
|
|
700
717
|
size: size != null ? size : `level-${level}`
|
|
701
718
|
});
|
|
702
|
-
return /* @__PURE__ */
|
|
719
|
+
return /* @__PURE__ */ React18.createElement(Box10, {
|
|
703
720
|
as: `h${level}`,
|
|
704
721
|
...props,
|
|
705
722
|
css: [styles, { color, textAlign: align }]
|
|
@@ -707,27 +724,27 @@ var Headline = ({
|
|
|
707
724
|
};
|
|
708
725
|
|
|
709
726
|
// src/Dialog/Context.ts
|
|
710
|
-
import { createContext as
|
|
711
|
-
var DialogContext =
|
|
712
|
-
var useDialogContext = () =>
|
|
727
|
+
import { createContext as createContext3, useContext as useContext3 } from "react";
|
|
728
|
+
var DialogContext = createContext3({});
|
|
729
|
+
var useDialogContext = () => useContext3(DialogContext);
|
|
713
730
|
|
|
714
731
|
// src/Dialog/DialogTrigger.tsx
|
|
715
|
-
import
|
|
732
|
+
import React24, { useRef as useRef2 } from "react";
|
|
716
733
|
import { PressResponder } from "@react-aria/interactions";
|
|
717
734
|
import { useOverlayTriggerState } from "@react-stately/overlays";
|
|
718
735
|
|
|
719
736
|
// src/Overlay/Modal.tsx
|
|
720
|
-
import
|
|
737
|
+
import React20, { forwardRef as forwardRef3 } from "react";
|
|
721
738
|
import { FocusScope } from "@react-aria/focus";
|
|
722
739
|
import { useModal, useOverlay, usePreventScroll } from "@react-aria/overlays";
|
|
723
740
|
import { mergeProps as mergeProps2, useObjectRef as useObjectRef3 } from "@react-aria/utils";
|
|
724
741
|
|
|
725
742
|
// src/Overlay/Underlay.tsx
|
|
726
|
-
import
|
|
743
|
+
import React19 from "react";
|
|
727
744
|
import { Box as Box11, useComponentStyles as useComponentStyles11 } from "@marigold/system";
|
|
728
745
|
var Underlay = ({ size, variant, ...props }) => {
|
|
729
746
|
const styles = useComponentStyles11("Underlay", { size, variant });
|
|
730
|
-
return /* @__PURE__ */
|
|
747
|
+
return /* @__PURE__ */ React19.createElement(Box11, {
|
|
731
748
|
__baseCSS: {
|
|
732
749
|
position: "fixed",
|
|
733
750
|
inset: 0,
|
|
@@ -753,14 +770,14 @@ var Modal = forwardRef3(
|
|
|
753
770
|
);
|
|
754
771
|
usePreventScroll();
|
|
755
772
|
const { modalProps } = useModal({});
|
|
756
|
-
return /* @__PURE__ */
|
|
773
|
+
return /* @__PURE__ */ React20.createElement(FocusScope, {
|
|
757
774
|
contain: true,
|
|
758
775
|
restoreFocus: true,
|
|
759
776
|
autoFocus: true
|
|
760
|
-
}, /* @__PURE__ */
|
|
777
|
+
}, /* @__PURE__ */ React20.createElement(Underlay, {
|
|
761
778
|
...underlayProps,
|
|
762
779
|
variant: "modal"
|
|
763
|
-
}), /* @__PURE__ */
|
|
780
|
+
}), /* @__PURE__ */ React20.createElement("div", {
|
|
764
781
|
style: {
|
|
765
782
|
display: "flex",
|
|
766
783
|
alignItems: "center",
|
|
@@ -772,14 +789,14 @@ var Modal = forwardRef3(
|
|
|
772
789
|
},
|
|
773
790
|
ref: modalRef,
|
|
774
791
|
...mergeProps2(props, overlayProps, modalProps)
|
|
775
|
-
}, /* @__PURE__ */
|
|
792
|
+
}, /* @__PURE__ */ React20.createElement("div", {
|
|
776
793
|
style: { pointerEvents: "auto" }
|
|
777
794
|
}, children)));
|
|
778
795
|
}
|
|
779
796
|
);
|
|
780
797
|
|
|
781
798
|
// src/Overlay/Overlay.tsx
|
|
782
|
-
import
|
|
799
|
+
import React21, { useRef } from "react";
|
|
783
800
|
import { Transition } from "react-transition-group";
|
|
784
801
|
import {
|
|
785
802
|
Overlay as ReactAriaOverlay
|
|
@@ -802,14 +819,14 @@ var Overlay = ({ children, container, open }) => {
|
|
|
802
819
|
if (!mountOverlay) {
|
|
803
820
|
return null;
|
|
804
821
|
}
|
|
805
|
-
return /* @__PURE__ */
|
|
822
|
+
return /* @__PURE__ */ React21.createElement(ReactAriaOverlay, {
|
|
806
823
|
portalContainer: container
|
|
807
|
-
}, /* @__PURE__ */
|
|
824
|
+
}, /* @__PURE__ */ React21.createElement(Transition, {
|
|
808
825
|
nodeRef,
|
|
809
826
|
timeout: duration,
|
|
810
827
|
in: open,
|
|
811
828
|
appear: true
|
|
812
|
-
}, (state) => /* @__PURE__ */
|
|
829
|
+
}, (state) => /* @__PURE__ */ React21.createElement("div", {
|
|
813
830
|
ref: nodeRef,
|
|
814
831
|
"data-testid": "overlay",
|
|
815
832
|
style: {
|
|
@@ -820,7 +837,7 @@ var Overlay = ({ children, container, open }) => {
|
|
|
820
837
|
};
|
|
821
838
|
|
|
822
839
|
// src/Overlay/Popover.tsx
|
|
823
|
-
import
|
|
840
|
+
import React22, { forwardRef as forwardRef4 } from "react";
|
|
824
841
|
import {
|
|
825
842
|
DismissButton,
|
|
826
843
|
usePopover
|
|
@@ -831,10 +848,10 @@ var Popover = forwardRef4(
|
|
|
831
848
|
(props, ref) => {
|
|
832
849
|
const popoverRef = useObjectRef4(ref);
|
|
833
850
|
let { children, state, ...otherProps } = props;
|
|
834
|
-
return /* @__PURE__ */
|
|
851
|
+
return /* @__PURE__ */ React22.createElement(Overlay, {
|
|
835
852
|
open: state.isOpen,
|
|
836
853
|
...otherProps
|
|
837
|
-
}, /* @__PURE__ */
|
|
854
|
+
}, /* @__PURE__ */ React22.createElement(PopoverWrapper, {
|
|
838
855
|
ref: popoverRef,
|
|
839
856
|
...props
|
|
840
857
|
}, children));
|
|
@@ -858,11 +875,11 @@ var PopoverWrapper = forwardRef4(
|
|
|
858
875
|
},
|
|
859
876
|
state
|
|
860
877
|
);
|
|
861
|
-
return /* @__PURE__ */
|
|
878
|
+
return /* @__PURE__ */ React22.createElement(FocusScope2, {
|
|
862
879
|
restoreFocus: true
|
|
863
|
-
}, !isNonModal && /* @__PURE__ */
|
|
880
|
+
}, !isNonModal && /* @__PURE__ */ React22.createElement(Underlay, {
|
|
864
881
|
...underlayProps
|
|
865
|
-
}), /* @__PURE__ */
|
|
882
|
+
}), /* @__PURE__ */ React22.createElement("div", {
|
|
866
883
|
...popoverProps,
|
|
867
884
|
style: {
|
|
868
885
|
...popoverProps.style,
|
|
@@ -870,16 +887,16 @@ var PopoverWrapper = forwardRef4(
|
|
|
870
887
|
},
|
|
871
888
|
ref,
|
|
872
889
|
role: "presentation"
|
|
873
|
-
}, !isNonModal && /* @__PURE__ */
|
|
890
|
+
}, !isNonModal && /* @__PURE__ */ React22.createElement(DismissButton, {
|
|
874
891
|
onDismiss: state.close
|
|
875
|
-
}), children, /* @__PURE__ */
|
|
892
|
+
}), children, /* @__PURE__ */ React22.createElement(DismissButton, {
|
|
876
893
|
onDismiss: state.close
|
|
877
894
|
})));
|
|
878
895
|
}
|
|
879
896
|
);
|
|
880
897
|
|
|
881
898
|
// src/Overlay/Tray.tsx
|
|
882
|
-
import
|
|
899
|
+
import React23 from "react";
|
|
883
900
|
import { Box as Box12 } from "@marigold/system";
|
|
884
901
|
import { FocusScope as FocusScope3 } from "@react-aria/focus";
|
|
885
902
|
import {
|
|
@@ -891,9 +908,9 @@ import { forwardRef as forwardRef5 } from "react";
|
|
|
891
908
|
var Tray = forwardRef5(
|
|
892
909
|
({ state, children, ...props }, ref) => {
|
|
893
910
|
const trayRef = useObjectRef5(ref);
|
|
894
|
-
return /* @__PURE__ */
|
|
911
|
+
return /* @__PURE__ */ React23.createElement(Overlay, {
|
|
895
912
|
open: state.isOpen
|
|
896
|
-
}, /* @__PURE__ */
|
|
913
|
+
}, /* @__PURE__ */ React23.createElement(TrayWrapper, {
|
|
897
914
|
state,
|
|
898
915
|
...props,
|
|
899
916
|
ref: trayRef
|
|
@@ -910,21 +927,21 @@ var TrayWrapper = forwardRef5(
|
|
|
910
927
|
state,
|
|
911
928
|
ref
|
|
912
929
|
);
|
|
913
|
-
return /* @__PURE__ */
|
|
930
|
+
return /* @__PURE__ */ React23.createElement(FocusScope3, {
|
|
914
931
|
contain: true,
|
|
915
932
|
restoreFocus: true,
|
|
916
933
|
autoFocus: true
|
|
917
|
-
}, /* @__PURE__ */
|
|
934
|
+
}, /* @__PURE__ */ React23.createElement(Underlay, {
|
|
918
935
|
...underlayProps,
|
|
919
936
|
variant: "modal"
|
|
920
|
-
}, /* @__PURE__ */
|
|
937
|
+
}, /* @__PURE__ */ React23.createElement(Box12, {
|
|
921
938
|
...modalProps,
|
|
922
939
|
ref,
|
|
923
940
|
__baseCSS: { position: "absolute", width: "100%", bottom: 0 },
|
|
924
941
|
"data-testid": "tray"
|
|
925
|
-
}, /* @__PURE__ */
|
|
942
|
+
}, /* @__PURE__ */ React23.createElement(DismissButton2, {
|
|
926
943
|
onDismiss: state.close
|
|
927
|
-
}), children, /* @__PURE__ */
|
|
944
|
+
}), children, /* @__PURE__ */ React23.createElement(DismissButton2, {
|
|
928
945
|
onDismiss: state.close
|
|
929
946
|
}))));
|
|
930
947
|
}
|
|
@@ -936,19 +953,19 @@ var DialogTrigger = ({
|
|
|
936
953
|
dismissable = true,
|
|
937
954
|
keyboardDismissable = true
|
|
938
955
|
}) => {
|
|
939
|
-
const [dialogTrigger, dialog] =
|
|
956
|
+
const [dialogTrigger, dialog] = React24.Children.toArray(children);
|
|
940
957
|
const dialogTriggerRef = useRef2(null);
|
|
941
958
|
const state = useOverlayTriggerState({});
|
|
942
959
|
const ctx = { open: state.isOpen, close: state.close };
|
|
943
|
-
return /* @__PURE__ */
|
|
960
|
+
return /* @__PURE__ */ React24.createElement(DialogContext.Provider, {
|
|
944
961
|
value: ctx
|
|
945
|
-
}, /* @__PURE__ */
|
|
962
|
+
}, /* @__PURE__ */ React24.createElement(PressResponder, {
|
|
946
963
|
ref: dialogTriggerRef,
|
|
947
964
|
isPressed: state.isOpen,
|
|
948
965
|
onPress: state.toggle
|
|
949
|
-
}, dialogTrigger), /* @__PURE__ */
|
|
966
|
+
}, dialogTrigger), /* @__PURE__ */ React24.createElement(Overlay, {
|
|
950
967
|
open: state.isOpen
|
|
951
|
-
}, /* @__PURE__ */
|
|
968
|
+
}, /* @__PURE__ */ React24.createElement(Modal, {
|
|
952
969
|
open: state.isOpen,
|
|
953
970
|
onClose: state.close,
|
|
954
971
|
dismissable,
|
|
@@ -956,6 +973,33 @@ var DialogTrigger = ({
|
|
|
956
973
|
}, dialog)));
|
|
957
974
|
};
|
|
958
975
|
|
|
976
|
+
// src/Dialog/DialogController.tsx
|
|
977
|
+
import { useOverlayTriggerState as useOverlayTriggerState2 } from "@react-stately/overlays";
|
|
978
|
+
import React25 from "react";
|
|
979
|
+
var DialogController = ({
|
|
980
|
+
children,
|
|
981
|
+
dismissable = true,
|
|
982
|
+
keyboardDismissable = true,
|
|
983
|
+
open,
|
|
984
|
+
onOpenChange
|
|
985
|
+
}) => {
|
|
986
|
+
const state = useOverlayTriggerState2({
|
|
987
|
+
isOpen: open,
|
|
988
|
+
onOpenChange
|
|
989
|
+
});
|
|
990
|
+
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)));
|
|
1001
|
+
};
|
|
1002
|
+
|
|
959
1003
|
// src/Dialog/Dialog.tsx
|
|
960
1004
|
var CloseButton = ({ css }) => {
|
|
961
1005
|
const ref = useRef3(null);
|
|
@@ -966,9 +1010,9 @@ var CloseButton = ({ css }) => {
|
|
|
966
1010
|
},
|
|
967
1011
|
ref
|
|
968
1012
|
);
|
|
969
|
-
return /* @__PURE__ */
|
|
1013
|
+
return /* @__PURE__ */ React26.createElement(Box13, {
|
|
970
1014
|
css: { display: "flex", justifyContent: "flex-end" }
|
|
971
|
-
}, /* @__PURE__ */
|
|
1015
|
+
}, /* @__PURE__ */ React26.createElement(Box13, {
|
|
972
1016
|
as: "button",
|
|
973
1017
|
__baseCSS: {
|
|
974
1018
|
outline: "none",
|
|
@@ -982,19 +1026,19 @@ var CloseButton = ({ css }) => {
|
|
|
982
1026
|
css,
|
|
983
1027
|
ref,
|
|
984
1028
|
...buttonProps
|
|
985
|
-
}, /* @__PURE__ */
|
|
1029
|
+
}, /* @__PURE__ */ React26.createElement("svg", {
|
|
986
1030
|
viewBox: "0 0 20 20",
|
|
987
1031
|
fill: "currentColor"
|
|
988
|
-
}, /* @__PURE__ */
|
|
1032
|
+
}, /* @__PURE__ */ React26.createElement("path", {
|
|
989
1033
|
fillRule: "evenodd",
|
|
990
1034
|
clipRule: "evenodd",
|
|
991
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"
|
|
992
1036
|
}))));
|
|
993
1037
|
};
|
|
994
1038
|
var addTitleProps = (children, titleProps) => {
|
|
995
|
-
const childs =
|
|
1039
|
+
const childs = React26.Children.toArray(children);
|
|
996
1040
|
const titleIndex = childs.findIndex(
|
|
997
|
-
(child) =>
|
|
1041
|
+
(child) => React26.isValidElement(child) && (child.type === Header || child.type === Headline)
|
|
998
1042
|
);
|
|
999
1043
|
if (titleIndex < 0) {
|
|
1000
1044
|
console.warn(
|
|
@@ -1002,7 +1046,7 @@ var addTitleProps = (children, titleProps) => {
|
|
|
1002
1046
|
);
|
|
1003
1047
|
return children;
|
|
1004
1048
|
}
|
|
1005
|
-
const titleChild =
|
|
1049
|
+
const titleChild = React26.cloneElement(
|
|
1006
1050
|
childs[titleIndex],
|
|
1007
1051
|
titleProps
|
|
1008
1052
|
);
|
|
@@ -1024,24 +1068,25 @@ var Dialog = ({
|
|
|
1024
1068
|
{ variant, size },
|
|
1025
1069
|
{ parts: ["container", "closeButton"] }
|
|
1026
1070
|
);
|
|
1027
|
-
return /* @__PURE__ */
|
|
1071
|
+
return /* @__PURE__ */ React26.createElement(Box13, {
|
|
1028
1072
|
__baseCSS: { bg: "#fff" },
|
|
1029
1073
|
css: styles.container,
|
|
1030
1074
|
...dialogProps
|
|
1031
|
-
}, closeButton && /* @__PURE__ */
|
|
1075
|
+
}, closeButton && /* @__PURE__ */ React26.createElement(CloseButton, {
|
|
1032
1076
|
css: styles.closeButton
|
|
1033
1077
|
}), typeof children === "function" ? children({ close, titleProps }) : props["aria-labelledby"] ? children : addTitleProps(children, titleProps));
|
|
1034
1078
|
};
|
|
1035
1079
|
Dialog.Trigger = DialogTrigger;
|
|
1080
|
+
Dialog.Controller = DialogController;
|
|
1036
1081
|
|
|
1037
1082
|
// src/Divider/Divider.tsx
|
|
1038
|
-
import
|
|
1083
|
+
import React27 from "react";
|
|
1039
1084
|
import { useSeparator } from "@react-aria/separator";
|
|
1040
1085
|
import { Box as Box14, useComponentStyles as useComponentStyles13 } from "@marigold/system";
|
|
1041
1086
|
var Divider = ({ variant, ...props }) => {
|
|
1042
1087
|
const { separatorProps } = useSeparator(props);
|
|
1043
1088
|
const styles = useComponentStyles13("Divider", { variant });
|
|
1044
|
-
return /* @__PURE__ */
|
|
1089
|
+
return /* @__PURE__ */ React27.createElement(Box14, {
|
|
1045
1090
|
css: styles,
|
|
1046
1091
|
...props,
|
|
1047
1092
|
...separatorProps
|
|
@@ -1049,13 +1094,13 @@ var Divider = ({ variant, ...props }) => {
|
|
|
1049
1094
|
};
|
|
1050
1095
|
|
|
1051
1096
|
// src/Footer/Footer.tsx
|
|
1052
|
-
import
|
|
1097
|
+
import React28 from "react";
|
|
1053
1098
|
import {
|
|
1054
1099
|
useComponentStyles as useComponentStyles14
|
|
1055
1100
|
} from "@marigold/system";
|
|
1056
1101
|
var Footer = ({ children, variant, size, ...props }) => {
|
|
1057
1102
|
const styles = useComponentStyles14("Footer", { variant, size });
|
|
1058
|
-
return /* @__PURE__ */
|
|
1103
|
+
return /* @__PURE__ */ React28.createElement(Box, {
|
|
1059
1104
|
as: "footer",
|
|
1060
1105
|
...props,
|
|
1061
1106
|
css: styles
|
|
@@ -1063,7 +1108,7 @@ var Footer = ({ children, variant, size, ...props }) => {
|
|
|
1063
1108
|
};
|
|
1064
1109
|
|
|
1065
1110
|
// src/Image/Image.tsx
|
|
1066
|
-
import
|
|
1111
|
+
import React29 from "react";
|
|
1067
1112
|
import { Box as Box15 } from "@marigold/system";
|
|
1068
1113
|
import { useComponentStyles as useComponentStyles15 } from "@marigold/system";
|
|
1069
1114
|
var Image = ({
|
|
@@ -1079,7 +1124,7 @@ var Image = ({
|
|
|
1079
1124
|
objectFit: fit,
|
|
1080
1125
|
objectPosition: position
|
|
1081
1126
|
};
|
|
1082
|
-
return /* @__PURE__ */
|
|
1127
|
+
return /* @__PURE__ */ React29.createElement(Box15, {
|
|
1083
1128
|
...props,
|
|
1084
1129
|
as: "img",
|
|
1085
1130
|
__baseCSS: fit ? { width: " 100%", height: "100%" } : {},
|
|
@@ -1088,7 +1133,7 @@ var Image = ({
|
|
|
1088
1133
|
};
|
|
1089
1134
|
|
|
1090
1135
|
// src/Inline/Inline.tsx
|
|
1091
|
-
import
|
|
1136
|
+
import React30 from "react";
|
|
1092
1137
|
var ALIGNMENT_X = {
|
|
1093
1138
|
left: "flex-start",
|
|
1094
1139
|
center: "center",
|
|
@@ -1105,7 +1150,7 @@ var Inline = ({
|
|
|
1105
1150
|
alignY = "center",
|
|
1106
1151
|
children,
|
|
1107
1152
|
...props
|
|
1108
|
-
}) => /* @__PURE__ */
|
|
1153
|
+
}) => /* @__PURE__ */ React30.createElement(Box, {
|
|
1109
1154
|
css: {
|
|
1110
1155
|
display: "flex",
|
|
1111
1156
|
flexWrap: "wrap",
|
|
@@ -1117,12 +1162,12 @@ var Inline = ({
|
|
|
1117
1162
|
}, children);
|
|
1118
1163
|
|
|
1119
1164
|
// src/Input/Input.tsx
|
|
1120
|
-
import
|
|
1165
|
+
import React31, { forwardRef as forwardRef6 } from "react";
|
|
1121
1166
|
import { Box as Box16, useComponentStyles as useComponentStyles16 } from "@marigold/system";
|
|
1122
1167
|
var Input = forwardRef6(
|
|
1123
1168
|
({ variant, size, type = "text", ...props }, ref) => {
|
|
1124
1169
|
const styles = useComponentStyles16("Input", { variant, size });
|
|
1125
|
-
return /* @__PURE__ */
|
|
1170
|
+
return /* @__PURE__ */ React31.createElement(Box16, {
|
|
1126
1171
|
...props,
|
|
1127
1172
|
ref,
|
|
1128
1173
|
as: "input",
|
|
@@ -1133,7 +1178,7 @@ var Input = forwardRef6(
|
|
|
1133
1178
|
);
|
|
1134
1179
|
|
|
1135
1180
|
// src/Link/Link.tsx
|
|
1136
|
-
import
|
|
1181
|
+
import React32, { forwardRef as forwardRef7 } from "react";
|
|
1137
1182
|
import { useLink } from "@react-aria/link";
|
|
1138
1183
|
import { useComponentStyles as useComponentStyles17 } from "@marigold/system";
|
|
1139
1184
|
import { useObjectRef as useObjectRef6 } from "@react-aria/utils";
|
|
@@ -1158,35 +1203,35 @@ var Link = forwardRef7(
|
|
|
1158
1203
|
linkRef
|
|
1159
1204
|
);
|
|
1160
1205
|
const styles = useComponentStyles17("Link", { variant, size });
|
|
1161
|
-
return /* @__PURE__ */
|
|
1206
|
+
return /* @__PURE__ */ React32.createElement(Box, {
|
|
1162
1207
|
as,
|
|
1163
1208
|
role: "link",
|
|
1164
1209
|
css: styles,
|
|
1165
1210
|
ref: linkRef,
|
|
1166
1211
|
...props,
|
|
1167
1212
|
...linkProps
|
|
1168
|
-
}, children)
|
|
1213
|
+
}, children);
|
|
1169
1214
|
}
|
|
1170
1215
|
);
|
|
1171
1216
|
|
|
1172
1217
|
// src/List/List.tsx
|
|
1173
|
-
import
|
|
1218
|
+
import React34 from "react";
|
|
1174
1219
|
import {
|
|
1175
1220
|
Box as Box18,
|
|
1176
1221
|
useComponentStyles as useComponentStyles18
|
|
1177
1222
|
} from "@marigold/system";
|
|
1178
1223
|
|
|
1179
1224
|
// src/List/Context.ts
|
|
1180
|
-
import { createContext as
|
|
1181
|
-
var ListContext =
|
|
1182
|
-
var useListContext = () =>
|
|
1225
|
+
import { createContext as createContext4, useContext as useContext4 } from "react";
|
|
1226
|
+
var ListContext = createContext4({});
|
|
1227
|
+
var useListContext = () => useContext4(ListContext);
|
|
1183
1228
|
|
|
1184
1229
|
// src/List/ListItem.tsx
|
|
1185
|
-
import
|
|
1230
|
+
import React33 from "react";
|
|
1186
1231
|
import { Box as Box17 } from "@marigold/system";
|
|
1187
1232
|
var ListItem = ({ children, ...props }) => {
|
|
1188
1233
|
const { styles } = useListContext();
|
|
1189
|
-
return /* @__PURE__ */
|
|
1234
|
+
return /* @__PURE__ */ React33.createElement(Box17, {
|
|
1190
1235
|
...props,
|
|
1191
1236
|
as: "li",
|
|
1192
1237
|
css: styles
|
|
@@ -1206,18 +1251,18 @@ var List = ({
|
|
|
1206
1251
|
{ variant, size },
|
|
1207
1252
|
{ parts: ["ul", "ol", "item"] }
|
|
1208
1253
|
);
|
|
1209
|
-
return /* @__PURE__ */
|
|
1254
|
+
return /* @__PURE__ */ React34.createElement(Box18, {
|
|
1210
1255
|
...props,
|
|
1211
1256
|
as,
|
|
1212
1257
|
css: styles[as]
|
|
1213
|
-
}, /* @__PURE__ */
|
|
1258
|
+
}, /* @__PURE__ */ React34.createElement(ListContext.Provider, {
|
|
1214
1259
|
value: { styles: styles.item }
|
|
1215
1260
|
}, children));
|
|
1216
1261
|
};
|
|
1217
1262
|
List.Item = ListItem;
|
|
1218
1263
|
|
|
1219
1264
|
// src/Menu/Menu.tsx
|
|
1220
|
-
import
|
|
1265
|
+
import React37, { useRef as useRef6 } from "react";
|
|
1221
1266
|
import { useMenu } from "@react-aria/menu";
|
|
1222
1267
|
import { Item } from "@react-stately/collections";
|
|
1223
1268
|
import { useTreeState } from "@react-stately/tree";
|
|
@@ -1228,24 +1273,32 @@ import {
|
|
|
1228
1273
|
|
|
1229
1274
|
// src/Menu/Context.ts
|
|
1230
1275
|
import {
|
|
1231
|
-
createContext as
|
|
1232
|
-
useContext as
|
|
1276
|
+
createContext as createContext5,
|
|
1277
|
+
useContext as useContext5
|
|
1233
1278
|
} from "react";
|
|
1234
|
-
var MenuContext =
|
|
1235
|
-
var useMenuContext = () =>
|
|
1279
|
+
var MenuContext = createContext5({});
|
|
1280
|
+
var useMenuContext = () => useContext5(MenuContext);
|
|
1236
1281
|
|
|
1237
1282
|
// src/Menu/MenuTrigger.tsx
|
|
1238
|
-
import
|
|
1283
|
+
import React35, { useRef as useRef4 } from "react";
|
|
1239
1284
|
import { useMenuTriggerState } from "@react-stately/menu";
|
|
1240
1285
|
import { PressResponder as PressResponder2 } from "@react-aria/interactions";
|
|
1241
1286
|
import { useMenuTrigger } from "@react-aria/menu";
|
|
1242
1287
|
import { useObjectRef as useObjectRef7 } from "@react-aria/utils";
|
|
1243
1288
|
import { useResponsiveValue } from "@marigold/system";
|
|
1244
|
-
var MenuTrigger = ({
|
|
1245
|
-
|
|
1289
|
+
var MenuTrigger = ({
|
|
1290
|
+
disabled,
|
|
1291
|
+
open,
|
|
1292
|
+
onOpenChange,
|
|
1293
|
+
children
|
|
1294
|
+
}) => {
|
|
1295
|
+
const [menuTrigger, menu] = React35.Children.toArray(children);
|
|
1246
1296
|
const menuTriggerRef = useRef4(null);
|
|
1247
1297
|
const menuRef = useObjectRef7();
|
|
1248
|
-
const state = useMenuTriggerState({
|
|
1298
|
+
const state = useMenuTriggerState({
|
|
1299
|
+
isOpen: open,
|
|
1300
|
+
onOpenChange
|
|
1301
|
+
});
|
|
1249
1302
|
const { menuTriggerProps, menuProps } = useMenuTrigger(
|
|
1250
1303
|
{ trigger: "press", isDisabled: disabled },
|
|
1251
1304
|
state,
|
|
@@ -1259,15 +1312,15 @@ var MenuTrigger = ({ disabled, children }) => {
|
|
|
1259
1312
|
autoFocus: state.focusStrategy
|
|
1260
1313
|
};
|
|
1261
1314
|
const isSmallScreen = useResponsiveValue([true, false, false], 2);
|
|
1262
|
-
return /* @__PURE__ */
|
|
1315
|
+
return /* @__PURE__ */ React35.createElement(MenuContext.Provider, {
|
|
1263
1316
|
value: menuContext
|
|
1264
|
-
}, /* @__PURE__ */
|
|
1317
|
+
}, /* @__PURE__ */ React35.createElement(PressResponder2, {
|
|
1265
1318
|
...menuTriggerProps,
|
|
1266
1319
|
ref: menuTriggerRef,
|
|
1267
1320
|
isPressed: state.isOpen
|
|
1268
|
-
}, menuTrigger), isSmallScreen ? /* @__PURE__ */
|
|
1321
|
+
}, menuTrigger), isSmallScreen ? /* @__PURE__ */ React35.createElement(Tray, {
|
|
1269
1322
|
state
|
|
1270
|
-
}, menu) : /* @__PURE__ */
|
|
1323
|
+
}, menu) : /* @__PURE__ */ React35.createElement(Popover, {
|
|
1271
1324
|
triggerRef: menuTriggerRef,
|
|
1272
1325
|
scrollRef: menuRef,
|
|
1273
1326
|
state
|
|
@@ -1275,7 +1328,7 @@ var MenuTrigger = ({ disabled, children }) => {
|
|
|
1275
1328
|
};
|
|
1276
1329
|
|
|
1277
1330
|
// src/Menu/MenuItem.tsx
|
|
1278
|
-
import
|
|
1331
|
+
import React36, { useRef as useRef5 } from "react";
|
|
1279
1332
|
import { useFocusRing as useFocusRing3 } from "@react-aria/focus";
|
|
1280
1333
|
import { useMenuItem } from "@react-aria/menu";
|
|
1281
1334
|
import { mergeProps as mergeProps3 } from "@react-aria/utils";
|
|
@@ -1297,7 +1350,7 @@ var MenuItem = ({ item, state, onAction, css }) => {
|
|
|
1297
1350
|
focus: isFocusVisible
|
|
1298
1351
|
});
|
|
1299
1352
|
const { onPointerUp, ...props } = menuItemProps;
|
|
1300
|
-
return /* @__PURE__ */
|
|
1353
|
+
return /* @__PURE__ */ React36.createElement(Box19, {
|
|
1301
1354
|
as: "li",
|
|
1302
1355
|
ref,
|
|
1303
1356
|
__baseCSS: {
|
|
@@ -1325,7 +1378,7 @@ var Menu = ({ variant, size, ...props }) => {
|
|
|
1325
1378
|
{ variant, size },
|
|
1326
1379
|
{ parts: ["container", "item"] }
|
|
1327
1380
|
);
|
|
1328
|
-
return /* @__PURE__ */
|
|
1381
|
+
return /* @__PURE__ */ React37.createElement(Box20, {
|
|
1329
1382
|
as: "ul",
|
|
1330
1383
|
ref,
|
|
1331
1384
|
__baseCSS: {
|
|
@@ -1335,19 +1388,35 @@ var Menu = ({ variant, size, ...props }) => {
|
|
|
1335
1388
|
},
|
|
1336
1389
|
css: styles.container,
|
|
1337
1390
|
...menuProps
|
|
1338
|
-
}, [...state.collection].map((item) => /* @__PURE__ */
|
|
1391
|
+
}, [...state.collection].map((item) => /* @__PURE__ */ React37.createElement(MenuItem, {
|
|
1339
1392
|
key: item.key,
|
|
1340
1393
|
item,
|
|
1341
1394
|
state,
|
|
1342
|
-
onAction: props.
|
|
1395
|
+
onAction: props.onAction,
|
|
1343
1396
|
css: styles.item
|
|
1344
1397
|
})));
|
|
1345
1398
|
};
|
|
1346
1399
|
Menu.Trigger = MenuTrigger;
|
|
1347
1400
|
Menu.Item = Item;
|
|
1348
1401
|
|
|
1402
|
+
// src/Menu/ActionMenu.tsx
|
|
1403
|
+
import React38 from "react";
|
|
1404
|
+
import { SVG as SVG3 } from "@marigold/system";
|
|
1405
|
+
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
|
+
}));
|
|
1416
|
+
};
|
|
1417
|
+
|
|
1349
1418
|
// src/Message/Message.tsx
|
|
1350
|
-
import
|
|
1419
|
+
import React39 from "react";
|
|
1351
1420
|
import { useComponentStyles as useComponentStyles20 } from "@marigold/system";
|
|
1352
1421
|
var Message = ({
|
|
1353
1422
|
messageTitle,
|
|
@@ -1364,43 +1433,43 @@ var Message = ({
|
|
|
1364
1433
|
},
|
|
1365
1434
|
{ parts: ["container", "icon", "title", "content"] }
|
|
1366
1435
|
);
|
|
1367
|
-
var icon = /* @__PURE__ */
|
|
1436
|
+
var icon = /* @__PURE__ */ React39.createElement("svg", {
|
|
1368
1437
|
viewBox: "0 0 24 24"
|
|
1369
|
-
}, /* @__PURE__ */
|
|
1438
|
+
}, /* @__PURE__ */ React39.createElement("path", {
|
|
1370
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"
|
|
1371
1440
|
}));
|
|
1372
1441
|
if (variant === "warning") {
|
|
1373
|
-
icon = /* @__PURE__ */
|
|
1442
|
+
icon = /* @__PURE__ */ React39.createElement("svg", {
|
|
1374
1443
|
viewBox: "0 0 24 24"
|
|
1375
|
-
}, /* @__PURE__ */
|
|
1444
|
+
}, /* @__PURE__ */ React39.createElement("path", {
|
|
1376
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"
|
|
1377
1446
|
}));
|
|
1378
1447
|
}
|
|
1379
1448
|
if (variant === "error") {
|
|
1380
|
-
icon = /* @__PURE__ */
|
|
1449
|
+
icon = /* @__PURE__ */ React39.createElement("svg", {
|
|
1381
1450
|
viewBox: "0 0 24 24"
|
|
1382
|
-
}, /* @__PURE__ */
|
|
1451
|
+
}, /* @__PURE__ */ React39.createElement("path", {
|
|
1383
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"
|
|
1384
1453
|
}));
|
|
1385
1454
|
}
|
|
1386
|
-
return /* @__PURE__ */
|
|
1455
|
+
return /* @__PURE__ */ React39.createElement(Box, {
|
|
1387
1456
|
css: styles.container,
|
|
1388
1457
|
...props
|
|
1389
|
-
}, /* @__PURE__ */
|
|
1458
|
+
}, /* @__PURE__ */ React39.createElement(Box, {
|
|
1390
1459
|
__baseCSS: { display: "flex", alignItems: "top", gap: 4 }
|
|
1391
|
-
}, /* @__PURE__ */
|
|
1460
|
+
}, /* @__PURE__ */ React39.createElement(Box, {
|
|
1392
1461
|
role: "presentation",
|
|
1393
1462
|
__baseCSS: { flex: "0 0 16px" },
|
|
1394
1463
|
css: styles.icon
|
|
1395
|
-
}, icon), /* @__PURE__ */
|
|
1464
|
+
}, icon), /* @__PURE__ */ React39.createElement(Box, {
|
|
1396
1465
|
css: styles.title
|
|
1397
|
-
}, messageTitle)), /* @__PURE__ */
|
|
1466
|
+
}, messageTitle)), /* @__PURE__ */ React39.createElement(Box, {
|
|
1398
1467
|
css: styles.content
|
|
1399
1468
|
}, children));
|
|
1400
1469
|
};
|
|
1401
1470
|
|
|
1402
1471
|
// src/NumberField/NumberField.tsx
|
|
1403
|
-
import
|
|
1472
|
+
import React41, { forwardRef as forwardRef8 } from "react";
|
|
1404
1473
|
import { useFocusRing as useFocusRing4 } from "@react-aria/focus";
|
|
1405
1474
|
import { useHover as useHover4 } from "@react-aria/interactions";
|
|
1406
1475
|
import { useLocale } from "@react-aria/i18n";
|
|
@@ -1414,27 +1483,27 @@ import {
|
|
|
1414
1483
|
} from "@marigold/system";
|
|
1415
1484
|
|
|
1416
1485
|
// src/NumberField/StepButton.tsx
|
|
1417
|
-
import
|
|
1486
|
+
import React40, { useRef as useRef7 } from "react";
|
|
1418
1487
|
import { useButton as useButton3 } from "@react-aria/button";
|
|
1419
1488
|
import { useHover as useHover3 } from "@react-aria/interactions";
|
|
1420
1489
|
import { mergeProps as mergeProps4 } from "@react-aria/utils";
|
|
1421
1490
|
import { Box as Box21, useStateProps as useStateProps5 } from "@marigold/system";
|
|
1422
|
-
var Plus = () => /* @__PURE__ */
|
|
1491
|
+
var Plus = () => /* @__PURE__ */ React40.createElement(Box21, {
|
|
1423
1492
|
as: "svg",
|
|
1424
1493
|
__baseCSS: { width: 16, height: 16 },
|
|
1425
1494
|
viewBox: "0 0 20 20",
|
|
1426
1495
|
fill: "currentColor"
|
|
1427
|
-
}, /* @__PURE__ */
|
|
1496
|
+
}, /* @__PURE__ */ React40.createElement("path", {
|
|
1428
1497
|
fillRule: "evenodd",
|
|
1429
1498
|
clipRule: "evenodd",
|
|
1430
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"
|
|
1431
1500
|
}));
|
|
1432
|
-
var Minus = () => /* @__PURE__ */
|
|
1501
|
+
var Minus = () => /* @__PURE__ */ React40.createElement(Box21, {
|
|
1433
1502
|
as: "svg",
|
|
1434
1503
|
__baseCSS: { width: 16, height: 16 },
|
|
1435
1504
|
viewBox: "0 0 20 20",
|
|
1436
1505
|
fill: "currentColor"
|
|
1437
|
-
}, /* @__PURE__ */
|
|
1506
|
+
}, /* @__PURE__ */ React40.createElement("path", {
|
|
1438
1507
|
fillRule: "evenodd",
|
|
1439
1508
|
clipRule: "evenodd",
|
|
1440
1509
|
d: "M3 10a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1z"
|
|
@@ -1452,7 +1521,7 @@ var StepButton = ({ direction, css, ...props }) => {
|
|
|
1452
1521
|
disabled: props.isDisabled
|
|
1453
1522
|
});
|
|
1454
1523
|
const Icon3 = direction === "up" ? Plus : Minus;
|
|
1455
|
-
return /* @__PURE__ */
|
|
1524
|
+
return /* @__PURE__ */ React40.createElement(Box21, {
|
|
1456
1525
|
__baseCSS: {
|
|
1457
1526
|
display: "flex",
|
|
1458
1527
|
alignItems: "center",
|
|
@@ -1462,7 +1531,7 @@ var StepButton = ({ direction, css, ...props }) => {
|
|
|
1462
1531
|
css,
|
|
1463
1532
|
...mergeProps4(buttonProps, hoverProps),
|
|
1464
1533
|
...stateProps
|
|
1465
|
-
}, /* @__PURE__ */
|
|
1534
|
+
}, /* @__PURE__ */ React40.createElement(Icon3, null));
|
|
1466
1535
|
};
|
|
1467
1536
|
|
|
1468
1537
|
// src/NumberField/NumberField.tsx
|
|
@@ -1516,7 +1585,7 @@ var NumberField = forwardRef8(
|
|
|
1516
1585
|
readOnly,
|
|
1517
1586
|
error
|
|
1518
1587
|
});
|
|
1519
|
-
return /* @__PURE__ */
|
|
1588
|
+
return /* @__PURE__ */ React41.createElement(FieldBase, {
|
|
1520
1589
|
label: props.label,
|
|
1521
1590
|
labelProps,
|
|
1522
1591
|
required,
|
|
@@ -1529,7 +1598,7 @@ var NumberField = forwardRef8(
|
|
|
1529
1598
|
variant,
|
|
1530
1599
|
size,
|
|
1531
1600
|
width
|
|
1532
|
-
}, /* @__PURE__ */
|
|
1601
|
+
}, /* @__PURE__ */ React41.createElement(Box22, {
|
|
1533
1602
|
"data-group": true,
|
|
1534
1603
|
__baseCSS: {
|
|
1535
1604
|
display: "flex",
|
|
@@ -1542,17 +1611,17 @@ var NumberField = forwardRef8(
|
|
|
1542
1611
|
css: styles.group,
|
|
1543
1612
|
...mergeProps5(groupProps, focusProps, hoverProps),
|
|
1544
1613
|
...stateProps
|
|
1545
|
-
}, showStepper && /* @__PURE__ */
|
|
1614
|
+
}, showStepper && /* @__PURE__ */ React41.createElement(StepButton, {
|
|
1546
1615
|
direction: "down",
|
|
1547
1616
|
css: styles.stepper,
|
|
1548
1617
|
...decrementButtonProps
|
|
1549
|
-
}), /* @__PURE__ */
|
|
1618
|
+
}), /* @__PURE__ */ React41.createElement(Input, {
|
|
1550
1619
|
ref: inputRef,
|
|
1551
1620
|
variant,
|
|
1552
1621
|
size,
|
|
1553
1622
|
...inputProps,
|
|
1554
1623
|
...stateProps
|
|
1555
|
-
}), showStepper && /* @__PURE__ */
|
|
1624
|
+
}), showStepper && /* @__PURE__ */ React41.createElement(StepButton, {
|
|
1556
1625
|
direction: "up",
|
|
1557
1626
|
css: styles.stepper,
|
|
1558
1627
|
...incrementButtonProps
|
|
@@ -1565,7 +1634,7 @@ import { useTheme as useTheme2, ThemeProvider as ThemeProvider2 } from "@marigol
|
|
|
1565
1634
|
import { SSRProvider } from "@react-aria/ssr";
|
|
1566
1635
|
|
|
1567
1636
|
// src/Provider/MarigoldProvider.tsx
|
|
1568
|
-
import
|
|
1637
|
+
import React42 from "react";
|
|
1569
1638
|
import { OverlayProvider } from "@react-aria/overlays";
|
|
1570
1639
|
import {
|
|
1571
1640
|
Global,
|
|
@@ -1588,16 +1657,16 @@ function MarigoldProvider({
|
|
|
1588
1657
|
Nested themes with a "root" property must specify a "selector" to prevent accidentally overriding global CSS`
|
|
1589
1658
|
);
|
|
1590
1659
|
}
|
|
1591
|
-
return /* @__PURE__ */
|
|
1660
|
+
return /* @__PURE__ */ React42.createElement(ThemeProvider, {
|
|
1592
1661
|
theme
|
|
1593
|
-
}, /* @__PURE__ */
|
|
1662
|
+
}, /* @__PURE__ */ React42.createElement(Global, {
|
|
1594
1663
|
normalizeDocument: isTopLevel && normalizeDocument,
|
|
1595
1664
|
selector
|
|
1596
|
-
}), isTopLevel ? /* @__PURE__ */
|
|
1665
|
+
}), isTopLevel ? /* @__PURE__ */ React42.createElement(OverlayProvider, null, children) : children);
|
|
1597
1666
|
}
|
|
1598
1667
|
|
|
1599
1668
|
// src/Radio/Radio.tsx
|
|
1600
|
-
import
|
|
1669
|
+
import React44, {
|
|
1601
1670
|
forwardRef as forwardRef9
|
|
1602
1671
|
} from "react";
|
|
1603
1672
|
import { useHover as useHover5 } from "@react-aria/interactions";
|
|
@@ -1611,14 +1680,14 @@ import {
|
|
|
1611
1680
|
} from "@marigold/system";
|
|
1612
1681
|
|
|
1613
1682
|
// src/Radio/Context.ts
|
|
1614
|
-
import { createContext as
|
|
1615
|
-
var RadioGroupContext =
|
|
1683
|
+
import { createContext as createContext6, useContext as useContext6 } from "react";
|
|
1684
|
+
var RadioGroupContext = createContext6(
|
|
1616
1685
|
null
|
|
1617
1686
|
);
|
|
1618
|
-
var useRadioGroupContext = () =>
|
|
1687
|
+
var useRadioGroupContext = () => useContext6(RadioGroupContext);
|
|
1619
1688
|
|
|
1620
1689
|
// src/Radio/RadioGroup.tsx
|
|
1621
|
-
import
|
|
1690
|
+
import React43 from "react";
|
|
1622
1691
|
import { useRadioGroup } from "@react-aria/radio";
|
|
1623
1692
|
import { useRadioGroupState } from "@react-stately/radio";
|
|
1624
1693
|
import { Box as Box23, useStateProps as useStateProps7 } from "@marigold/system";
|
|
@@ -1646,7 +1715,7 @@ var RadioGroup = ({
|
|
|
1646
1715
|
readOnly,
|
|
1647
1716
|
error
|
|
1648
1717
|
});
|
|
1649
|
-
return /* @__PURE__ */
|
|
1718
|
+
return /* @__PURE__ */ React43.createElement(FieldBase, {
|
|
1650
1719
|
width,
|
|
1651
1720
|
label: props.label,
|
|
1652
1721
|
labelProps: { as: "span", ...labelProps },
|
|
@@ -1659,7 +1728,7 @@ var RadioGroup = ({
|
|
|
1659
1728
|
stateProps,
|
|
1660
1729
|
required,
|
|
1661
1730
|
...radioGroupProps
|
|
1662
|
-
}, /* @__PURE__ */
|
|
1731
|
+
}, /* @__PURE__ */ React43.createElement(Box23, {
|
|
1663
1732
|
role: "presentation",
|
|
1664
1733
|
"data-orientation": orientation,
|
|
1665
1734
|
__baseCSS: {
|
|
@@ -1668,21 +1737,21 @@ var RadioGroup = ({
|
|
|
1668
1737
|
alignItems: "start",
|
|
1669
1738
|
gap: orientation === "vertical" ? "0.5ch" : "1.5ch"
|
|
1670
1739
|
}
|
|
1671
|
-
}, /* @__PURE__ */
|
|
1740
|
+
}, /* @__PURE__ */ React43.createElement(RadioGroupContext.Provider, {
|
|
1672
1741
|
value: { width, error, state }
|
|
1673
1742
|
}, children)));
|
|
1674
1743
|
};
|
|
1675
1744
|
|
|
1676
1745
|
// src/Radio/Radio.tsx
|
|
1677
|
-
var Dot = () => /* @__PURE__ */
|
|
1746
|
+
var Dot = () => /* @__PURE__ */ React44.createElement("svg", {
|
|
1678
1747
|
viewBox: "0 0 6 6"
|
|
1679
|
-
}, /* @__PURE__ */
|
|
1748
|
+
}, /* @__PURE__ */ React44.createElement("circle", {
|
|
1680
1749
|
fill: "currentColor",
|
|
1681
1750
|
cx: "3",
|
|
1682
1751
|
cy: "3",
|
|
1683
1752
|
r: "3"
|
|
1684
1753
|
}));
|
|
1685
|
-
var Icon2 = ({ checked, css, ...props }) => /* @__PURE__ */
|
|
1754
|
+
var Icon2 = ({ checked, css, ...props }) => /* @__PURE__ */ React44.createElement(Box24, {
|
|
1686
1755
|
"aria-hidden": "true",
|
|
1687
1756
|
__baseCSS: {
|
|
1688
1757
|
width: 16,
|
|
@@ -1697,7 +1766,7 @@ var Icon2 = ({ checked, css, ...props }) => /* @__PURE__ */ React41.createElemen
|
|
|
1697
1766
|
},
|
|
1698
1767
|
css,
|
|
1699
1768
|
...props
|
|
1700
|
-
}, checked ? /* @__PURE__ */
|
|
1769
|
+
}, checked ? /* @__PURE__ */ React44.createElement(Dot, null) : null);
|
|
1701
1770
|
var Radio = forwardRef9(
|
|
1702
1771
|
({ width, disabled, ...props }, ref) => {
|
|
1703
1772
|
const {
|
|
@@ -1728,7 +1797,7 @@ var Radio = forwardRef9(
|
|
|
1728
1797
|
readOnly: props.readOnly,
|
|
1729
1798
|
error
|
|
1730
1799
|
});
|
|
1731
|
-
return /* @__PURE__ */
|
|
1800
|
+
return /* @__PURE__ */ React44.createElement(Box24, {
|
|
1732
1801
|
as: "label",
|
|
1733
1802
|
__baseCSS: {
|
|
1734
1803
|
display: "flex",
|
|
@@ -1739,7 +1808,7 @@ var Radio = forwardRef9(
|
|
|
1739
1808
|
},
|
|
1740
1809
|
css: styles.container,
|
|
1741
1810
|
...mergeProps6(hoverProps, stateProps)
|
|
1742
|
-
}, /* @__PURE__ */
|
|
1811
|
+
}, /* @__PURE__ */ React44.createElement(Box24, {
|
|
1743
1812
|
as: "input",
|
|
1744
1813
|
ref: inputRef,
|
|
1745
1814
|
css: {
|
|
@@ -1753,11 +1822,11 @@ var Radio = forwardRef9(
|
|
|
1753
1822
|
cursor: inputProps.disabled ? "not-allowed" : "pointer"
|
|
1754
1823
|
},
|
|
1755
1824
|
...mergeProps6(inputProps, focusProps)
|
|
1756
|
-
}), /* @__PURE__ */
|
|
1825
|
+
}), /* @__PURE__ */ React44.createElement(Icon2, {
|
|
1757
1826
|
checked: inputProps.checked,
|
|
1758
1827
|
css: styles.radio,
|
|
1759
1828
|
...stateProps
|
|
1760
|
-
}), /* @__PURE__ */
|
|
1829
|
+
}), /* @__PURE__ */ React44.createElement(Box24, {
|
|
1761
1830
|
css: styles.label,
|
|
1762
1831
|
...stateProps
|
|
1763
1832
|
}, props.children));
|
|
@@ -1766,7 +1835,7 @@ var Radio = forwardRef9(
|
|
|
1766
1835
|
Radio.Group = RadioGroup;
|
|
1767
1836
|
|
|
1768
1837
|
// src/Select/Select.tsx
|
|
1769
|
-
import
|
|
1838
|
+
import React48, {
|
|
1770
1839
|
forwardRef as forwardRef11,
|
|
1771
1840
|
useRef as useRef9
|
|
1772
1841
|
} from "react";
|
|
@@ -1785,7 +1854,7 @@ import {
|
|
|
1785
1854
|
} from "@marigold/system";
|
|
1786
1855
|
|
|
1787
1856
|
// src/ListBox/ListBox.tsx
|
|
1788
|
-
import
|
|
1857
|
+
import React47, { forwardRef as forwardRef10 } from "react";
|
|
1789
1858
|
import { useObjectRef as useObjectRef10 } from "@react-aria/utils";
|
|
1790
1859
|
import {
|
|
1791
1860
|
Box as Box27,
|
|
@@ -1794,17 +1863,17 @@ import {
|
|
|
1794
1863
|
import { useListBox } from "@react-aria/listbox";
|
|
1795
1864
|
|
|
1796
1865
|
// src/ListBox/Context.ts
|
|
1797
|
-
import { createContext as
|
|
1798
|
-
var ListBoxContext =
|
|
1799
|
-
var useListBoxContext = () =>
|
|
1866
|
+
import { createContext as createContext7, useContext as useContext7 } from "react";
|
|
1867
|
+
var ListBoxContext = createContext7({});
|
|
1868
|
+
var useListBoxContext = () => useContext7(ListBoxContext);
|
|
1800
1869
|
|
|
1801
1870
|
// src/ListBox/ListBoxSection.tsx
|
|
1802
|
-
import
|
|
1871
|
+
import React46 from "react";
|
|
1803
1872
|
import { useListBoxSection } from "@react-aria/listbox";
|
|
1804
1873
|
import { Box as Box26 } from "@marigold/system";
|
|
1805
1874
|
|
|
1806
1875
|
// src/ListBox/ListBoxOption.tsx
|
|
1807
|
-
import
|
|
1876
|
+
import React45, { useRef as useRef8 } from "react";
|
|
1808
1877
|
import { useOption } from "@react-aria/listbox";
|
|
1809
1878
|
import { mergeProps as mergeProps7 } from "@react-aria/utils";
|
|
1810
1879
|
import { Box as Box25, useStateProps as useStateProps9 } from "@marigold/system";
|
|
@@ -1824,7 +1893,7 @@ var ListBoxOption = ({ item, state }) => {
|
|
|
1824
1893
|
disabled: isDisabled,
|
|
1825
1894
|
focusVisible: isFocused
|
|
1826
1895
|
});
|
|
1827
|
-
return /* @__PURE__ */
|
|
1896
|
+
return /* @__PURE__ */ React45.createElement(Box25, {
|
|
1828
1897
|
as: "li",
|
|
1829
1898
|
ref,
|
|
1830
1899
|
css: styles.option,
|
|
@@ -1839,19 +1908,19 @@ var ListBoxSection = ({ section, state }) => {
|
|
|
1839
1908
|
"aria-label": section["aria-label"]
|
|
1840
1909
|
});
|
|
1841
1910
|
const { styles } = useListBoxContext();
|
|
1842
|
-
return /* @__PURE__ */
|
|
1911
|
+
return /* @__PURE__ */ React46.createElement(Box26, {
|
|
1843
1912
|
as: "li",
|
|
1844
1913
|
css: styles.section,
|
|
1845
1914
|
...itemProps
|
|
1846
|
-
}, section.rendered && /* @__PURE__ */
|
|
1915
|
+
}, section.rendered && /* @__PURE__ */ React46.createElement(Box26, {
|
|
1847
1916
|
css: styles.sectionTitle,
|
|
1848
1917
|
...headingProps
|
|
1849
|
-
}, section.rendered), /* @__PURE__ */
|
|
1918
|
+
}, section.rendered), /* @__PURE__ */ React46.createElement(Box26, {
|
|
1850
1919
|
as: "ul",
|
|
1851
1920
|
__baseCSS: { listStyle: "none", p: 0 },
|
|
1852
1921
|
css: styles.list,
|
|
1853
1922
|
...groupProps
|
|
1854
|
-
}, [...section.childNodes].map((node) => /* @__PURE__ */
|
|
1923
|
+
}, [...section.childNodes].map((node) => /* @__PURE__ */ React46.createElement(ListBoxOption, {
|
|
1855
1924
|
key: node.key,
|
|
1856
1925
|
item: node,
|
|
1857
1926
|
state
|
|
@@ -1868,22 +1937,22 @@ var ListBox = forwardRef10(
|
|
|
1868
1937
|
{ variant, size },
|
|
1869
1938
|
{ parts: ["container", "list", "option", "section", "sectionTitle"] }
|
|
1870
1939
|
);
|
|
1871
|
-
return /* @__PURE__ */
|
|
1940
|
+
return /* @__PURE__ */ React47.createElement(ListBoxContext.Provider, {
|
|
1872
1941
|
value: { styles }
|
|
1873
|
-
}, /* @__PURE__ */
|
|
1942
|
+
}, /* @__PURE__ */ React47.createElement(Box27, {
|
|
1874
1943
|
css: styles.container
|
|
1875
|
-
}, /* @__PURE__ */
|
|
1944
|
+
}, /* @__PURE__ */ React47.createElement(Box27, {
|
|
1876
1945
|
as: "ul",
|
|
1877
1946
|
ref: innerRef,
|
|
1878
1947
|
__baseCSS: { listStyle: "none", p: 0 },
|
|
1879
1948
|
css: styles.list,
|
|
1880
1949
|
...listBoxProps
|
|
1881
1950
|
}, [...state.collection].map(
|
|
1882
|
-
(item) => item.type === "section" ? /* @__PURE__ */
|
|
1951
|
+
(item) => item.type === "section" ? /* @__PURE__ */ React47.createElement(ListBoxSection, {
|
|
1883
1952
|
key: item.key,
|
|
1884
1953
|
section: item,
|
|
1885
1954
|
state
|
|
1886
|
-
}) : /* @__PURE__ */
|
|
1955
|
+
}) : /* @__PURE__ */ React47.createElement(ListBoxOption, {
|
|
1887
1956
|
key: item.key,
|
|
1888
1957
|
item,
|
|
1889
1958
|
state
|
|
@@ -1903,20 +1972,30 @@ var messages = {
|
|
|
1903
1972
|
};
|
|
1904
1973
|
|
|
1905
1974
|
// src/Select/Select.tsx
|
|
1906
|
-
var Chevron = ({ css }) => /* @__PURE__ */
|
|
1975
|
+
var Chevron = ({ css }) => /* @__PURE__ */ React48.createElement(Box28, {
|
|
1907
1976
|
as: "svg",
|
|
1908
1977
|
__baseCSS: { width: 16, height: 16, fill: "none" },
|
|
1909
1978
|
css,
|
|
1910
1979
|
viewBox: "0 0 24 24",
|
|
1911
1980
|
stroke: "currentColor",
|
|
1912
1981
|
strokeWidth: 2
|
|
1913
|
-
}, /* @__PURE__ */
|
|
1982
|
+
}, /* @__PURE__ */ React48.createElement("path", {
|
|
1914
1983
|
strokeLinecap: "round",
|
|
1915
1984
|
strokeLinejoin: "round",
|
|
1916
1985
|
d: "M19 9l-7 7-7-7"
|
|
1917
1986
|
}));
|
|
1918
1987
|
var Select = forwardRef11(
|
|
1919
|
-
({
|
|
1988
|
+
({
|
|
1989
|
+
variant,
|
|
1990
|
+
size,
|
|
1991
|
+
width,
|
|
1992
|
+
open,
|
|
1993
|
+
disabled,
|
|
1994
|
+
required,
|
|
1995
|
+
error,
|
|
1996
|
+
onChange,
|
|
1997
|
+
...rest
|
|
1998
|
+
}, ref) => {
|
|
1920
1999
|
const formatMessage = useLocalizedStringFormatter(messages);
|
|
1921
2000
|
const props = {
|
|
1922
2001
|
isOpen: open,
|
|
@@ -1924,6 +2003,7 @@ var Select = forwardRef11(
|
|
|
1924
2003
|
isRequired: required,
|
|
1925
2004
|
validationState: error ? "invalid" : "valid",
|
|
1926
2005
|
placeholder: rest.placeholder || formatMessage.format("placeholder"),
|
|
2006
|
+
onSelectionChange: onChange,
|
|
1927
2007
|
...rest
|
|
1928
2008
|
};
|
|
1929
2009
|
const state = useSelectState(props);
|
|
@@ -1954,7 +2034,7 @@ var Select = forwardRef11(
|
|
|
1954
2034
|
focusVisible: isFocusVisible,
|
|
1955
2035
|
expanded: state.isOpen
|
|
1956
2036
|
});
|
|
1957
|
-
return /* @__PURE__ */
|
|
2037
|
+
return /* @__PURE__ */ React48.createElement(FieldBase, {
|
|
1958
2038
|
variant,
|
|
1959
2039
|
size,
|
|
1960
2040
|
width,
|
|
@@ -1968,13 +2048,13 @@ var Select = forwardRef11(
|
|
|
1968
2048
|
stateProps,
|
|
1969
2049
|
disabled,
|
|
1970
2050
|
required
|
|
1971
|
-
}, /* @__PURE__ */
|
|
2051
|
+
}, /* @__PURE__ */ React48.createElement(HiddenSelect, {
|
|
1972
2052
|
state,
|
|
1973
2053
|
triggerRef: buttonRef,
|
|
1974
2054
|
label: props.label,
|
|
1975
2055
|
name: props.name,
|
|
1976
2056
|
isDisabled: disabled
|
|
1977
|
-
}), /* @__PURE__ */
|
|
2057
|
+
}), /* @__PURE__ */ React48.createElement(Box28, {
|
|
1978
2058
|
as: "button",
|
|
1979
2059
|
__baseCSS: {
|
|
1980
2060
|
display: "flex",
|
|
@@ -1987,27 +2067,27 @@ var Select = forwardRef11(
|
|
|
1987
2067
|
ref: buttonRef,
|
|
1988
2068
|
...mergeProps8(buttonProps, focusProps),
|
|
1989
2069
|
...stateProps
|
|
1990
|
-
}, /* @__PURE__ */
|
|
2070
|
+
}, /* @__PURE__ */ React48.createElement(Box28, {
|
|
1991
2071
|
css: {
|
|
1992
2072
|
overflow: "hidden",
|
|
1993
2073
|
whiteSpace: "nowrap"
|
|
1994
2074
|
},
|
|
1995
2075
|
...valueProps
|
|
1996
|
-
}, state.selectedItem ? state.selectedItem.rendered : props.placeholder), /* @__PURE__ */
|
|
2076
|
+
}, state.selectedItem ? state.selectedItem.rendered : props.placeholder), /* @__PURE__ */ React48.createElement(Chevron, {
|
|
1997
2077
|
css: styles.icon
|
|
1998
|
-
})), isSmallScreen ? /* @__PURE__ */
|
|
2078
|
+
})), isSmallScreen ? /* @__PURE__ */ React48.createElement(Tray, {
|
|
1999
2079
|
state
|
|
2000
|
-
}, /* @__PURE__ */
|
|
2080
|
+
}, /* @__PURE__ */ React48.createElement(ListBox, {
|
|
2001
2081
|
ref: listboxRef,
|
|
2002
2082
|
state,
|
|
2003
2083
|
variant,
|
|
2004
2084
|
size,
|
|
2005
2085
|
...menuProps
|
|
2006
|
-
})) : /* @__PURE__ */
|
|
2086
|
+
})) : /* @__PURE__ */ React48.createElement(Popover, {
|
|
2007
2087
|
state,
|
|
2008
2088
|
triggerRef: buttonRef,
|
|
2009
2089
|
scrollRef: listboxRef
|
|
2010
|
-
}, /* @__PURE__ */
|
|
2090
|
+
}, /* @__PURE__ */ React48.createElement(ListBox, {
|
|
2011
2091
|
ref: listboxRef,
|
|
2012
2092
|
state,
|
|
2013
2093
|
variant,
|
|
@@ -2020,7 +2100,7 @@ Select.Option = Item2;
|
|
|
2020
2100
|
Select.Section = Section;
|
|
2021
2101
|
|
|
2022
2102
|
// src/Slider/Slider.tsx
|
|
2023
|
-
import
|
|
2103
|
+
import React50, { forwardRef as forwardRef12 } from "react";
|
|
2024
2104
|
import { useSlider } from "@react-aria/slider";
|
|
2025
2105
|
import { useSliderState } from "@react-stately/slider";
|
|
2026
2106
|
import { useNumberFormatter } from "@react-aria/i18n";
|
|
@@ -2028,7 +2108,7 @@ import { useObjectRef as useObjectRef12 } from "@react-aria/utils";
|
|
|
2028
2108
|
import { useComponentStyles as useComponentStyles25 } from "@marigold/system";
|
|
2029
2109
|
|
|
2030
2110
|
// src/Slider/Thumb.tsx
|
|
2031
|
-
import
|
|
2111
|
+
import React49, { useEffect } from "react";
|
|
2032
2112
|
import { useSliderThumb } from "@react-aria/slider";
|
|
2033
2113
|
import { mergeProps as mergeProps9 } from "@react-aria/utils";
|
|
2034
2114
|
import { useStateProps as useStateProps11 } from "@marigold/system";
|
|
@@ -2040,7 +2120,7 @@ import { VisuallyHidden } from "@react-aria/visually-hidden";
|
|
|
2040
2120
|
import { useFocusRing as useFocusRing7 } from "@react-aria/focus";
|
|
2041
2121
|
var Thumb = ({ state, trackRef, styles, ...props }) => {
|
|
2042
2122
|
const { disabled } = props;
|
|
2043
|
-
const inputRef =
|
|
2123
|
+
const inputRef = React49.useRef(null);
|
|
2044
2124
|
const { isFocusVisible, focusProps, isFocused } = useFocusRing7();
|
|
2045
2125
|
const focused = isFocused || isFocusVisible || state.isThumbDragging(0);
|
|
2046
2126
|
const stateProps = useStateProps11({
|
|
@@ -2059,12 +2139,12 @@ var Thumb = ({ state, trackRef, styles, ...props }) => {
|
|
|
2059
2139
|
useEffect(() => {
|
|
2060
2140
|
state.setThumbEditable(0, !disabled);
|
|
2061
2141
|
}, [disabled, state]);
|
|
2062
|
-
return /* @__PURE__ */
|
|
2142
|
+
return /* @__PURE__ */ React49.createElement(Box, {
|
|
2063
2143
|
__baseCSS: { top: "50%" },
|
|
2064
2144
|
css: styles,
|
|
2065
2145
|
...thumbProps,
|
|
2066
2146
|
...stateProps
|
|
2067
|
-
}, /* @__PURE__ */
|
|
2147
|
+
}, /* @__PURE__ */ React49.createElement(VisuallyHidden, null, /* @__PURE__ */ React49.createElement(Box, {
|
|
2068
2148
|
as: "input",
|
|
2069
2149
|
type: "range",
|
|
2070
2150
|
ref: inputRef,
|
|
@@ -2092,7 +2172,7 @@ var Slider = forwardRef12(
|
|
|
2092
2172
|
{ variant, size },
|
|
2093
2173
|
{ parts: ["track", "thumb", "label", "output"] }
|
|
2094
2174
|
);
|
|
2095
|
-
return /* @__PURE__ */
|
|
2175
|
+
return /* @__PURE__ */ React50.createElement(Box, {
|
|
2096
2176
|
__baseCSS: {
|
|
2097
2177
|
display: "flex",
|
|
2098
2178
|
flexDirection: "column",
|
|
@@ -2100,18 +2180,18 @@ var Slider = forwardRef12(
|
|
|
2100
2180
|
width
|
|
2101
2181
|
},
|
|
2102
2182
|
...groupProps
|
|
2103
|
-
}, /* @__PURE__ */
|
|
2183
|
+
}, /* @__PURE__ */ React50.createElement(Box, {
|
|
2104
2184
|
__baseCSS: { display: "flex", alignSelf: "stretch" }
|
|
2105
|
-
}, props.children && /* @__PURE__ */
|
|
2185
|
+
}, props.children && /* @__PURE__ */ React50.createElement(Box, {
|
|
2106
2186
|
as: "label",
|
|
2107
2187
|
__baseCSS: styles.label,
|
|
2108
2188
|
...labelProps
|
|
2109
|
-
}, props.children), /* @__PURE__ */
|
|
2189
|
+
}, props.children), /* @__PURE__ */ React50.createElement(Box, {
|
|
2110
2190
|
as: "output",
|
|
2111
2191
|
...outputProps,
|
|
2112
2192
|
__baseCSS: { flex: "1 0 auto", textAlign: "end" },
|
|
2113
2193
|
css: styles.output
|
|
2114
|
-
}, state.getThumbValueLabel(0))), /* @__PURE__ */
|
|
2194
|
+
}, state.getThumbValueLabel(0))), /* @__PURE__ */ React50.createElement(Box, {
|
|
2115
2195
|
...trackProps,
|
|
2116
2196
|
ref: trackRef,
|
|
2117
2197
|
__baseCSS: {
|
|
@@ -2119,13 +2199,13 @@ var Slider = forwardRef12(
|
|
|
2119
2199
|
width: "100%",
|
|
2120
2200
|
cursor: props.disabled ? "not-allowed" : "pointer"
|
|
2121
2201
|
}
|
|
2122
|
-
}, /* @__PURE__ */
|
|
2202
|
+
}, /* @__PURE__ */ React50.createElement(Box, {
|
|
2123
2203
|
__baseCSS: {
|
|
2124
2204
|
top: "50%",
|
|
2125
2205
|
transform: "translateY(-50%)"
|
|
2126
2206
|
},
|
|
2127
2207
|
css: styles.track
|
|
2128
|
-
}), /* @__PURE__ */
|
|
2208
|
+
}), /* @__PURE__ */ React50.createElement(Thumb, {
|
|
2129
2209
|
state,
|
|
2130
2210
|
trackRef,
|
|
2131
2211
|
disabled: props.disabled,
|
|
@@ -2135,16 +2215,16 @@ var Slider = forwardRef12(
|
|
|
2135
2215
|
);
|
|
2136
2216
|
|
|
2137
2217
|
// src/Split/Split.tsx
|
|
2138
|
-
import
|
|
2218
|
+
import React51 from "react";
|
|
2139
2219
|
import { Box as Box29 } from "@marigold/system";
|
|
2140
|
-
var Split = (props) => /* @__PURE__ */
|
|
2220
|
+
var Split = (props) => /* @__PURE__ */ React51.createElement(Box29, {
|
|
2141
2221
|
...props,
|
|
2142
2222
|
role: "separator",
|
|
2143
2223
|
css: { flexGrow: 1 }
|
|
2144
2224
|
});
|
|
2145
2225
|
|
|
2146
2226
|
// src/Stack/Stack.tsx
|
|
2147
|
-
import
|
|
2227
|
+
import React52 from "react";
|
|
2148
2228
|
var ALIGNMENT_X2 = {
|
|
2149
2229
|
none: "initial",
|
|
2150
2230
|
left: "flex-start",
|
|
@@ -2164,7 +2244,7 @@ var Stack = ({
|
|
|
2164
2244
|
alignY = "none",
|
|
2165
2245
|
stretch = false,
|
|
2166
2246
|
...props
|
|
2167
|
-
}) => /* @__PURE__ */
|
|
2247
|
+
}) => /* @__PURE__ */ React52.createElement(Box, {
|
|
2168
2248
|
css: {
|
|
2169
2249
|
display: "flex",
|
|
2170
2250
|
flexDirection: "column",
|
|
@@ -2178,7 +2258,7 @@ var Stack = ({
|
|
|
2178
2258
|
}, children);
|
|
2179
2259
|
|
|
2180
2260
|
// src/Switch/Switch.tsx
|
|
2181
|
-
import
|
|
2261
|
+
import React53, { forwardRef as forwardRef13 } from "react";
|
|
2182
2262
|
import { useFocusRing as useFocusRing8 } from "@react-aria/focus";
|
|
2183
2263
|
import { useSwitch } from "@react-aria/switch";
|
|
2184
2264
|
import { useObjectRef as useObjectRef13 } from "@react-aria/utils";
|
|
@@ -2220,7 +2300,7 @@ var Switch = forwardRef13(
|
|
|
2220
2300
|
{ variant, size },
|
|
2221
2301
|
{ parts: ["container", "label", "track", "thumb"] }
|
|
2222
2302
|
);
|
|
2223
|
-
return /* @__PURE__ */
|
|
2303
|
+
return /* @__PURE__ */ React53.createElement(Box, {
|
|
2224
2304
|
as: "label",
|
|
2225
2305
|
__baseCSS: {
|
|
2226
2306
|
display: "flex",
|
|
@@ -2231,7 +2311,7 @@ var Switch = forwardRef13(
|
|
|
2231
2311
|
width
|
|
2232
2312
|
},
|
|
2233
2313
|
css: styles.container
|
|
2234
|
-
}, /* @__PURE__ */
|
|
2314
|
+
}, /* @__PURE__ */ React53.createElement(Box, {
|
|
2235
2315
|
as: "input",
|
|
2236
2316
|
ref: inputRef,
|
|
2237
2317
|
css: {
|
|
@@ -2246,9 +2326,9 @@ var Switch = forwardRef13(
|
|
|
2246
2326
|
},
|
|
2247
2327
|
...inputProps,
|
|
2248
2328
|
...focusProps
|
|
2249
|
-
}), props.children && /* @__PURE__ */
|
|
2329
|
+
}), props.children && /* @__PURE__ */ React53.createElement(Box, {
|
|
2250
2330
|
css: styles.label
|
|
2251
|
-
}, props.children), /* @__PURE__ */
|
|
2331
|
+
}, props.children), /* @__PURE__ */ React53.createElement(Box, {
|
|
2252
2332
|
__baseCSS: {
|
|
2253
2333
|
position: "relative",
|
|
2254
2334
|
width: 48,
|
|
@@ -2259,7 +2339,7 @@ var Switch = forwardRef13(
|
|
|
2259
2339
|
},
|
|
2260
2340
|
css: styles.track,
|
|
2261
2341
|
...stateProps
|
|
2262
|
-
}, /* @__PURE__ */
|
|
2342
|
+
}, /* @__PURE__ */ React53.createElement(Box, {
|
|
2263
2343
|
__baseCSS: {
|
|
2264
2344
|
display: "block",
|
|
2265
2345
|
position: "absolute",
|
|
@@ -2283,7 +2363,7 @@ var Switch = forwardRef13(
|
|
|
2283
2363
|
);
|
|
2284
2364
|
|
|
2285
2365
|
// src/Table/Table.tsx
|
|
2286
|
-
import
|
|
2366
|
+
import React62, { useRef as useRef16 } from "react";
|
|
2287
2367
|
import { useTable } from "@react-aria/table";
|
|
2288
2368
|
import {
|
|
2289
2369
|
Cell,
|
|
@@ -2299,22 +2379,22 @@ import {
|
|
|
2299
2379
|
} from "@marigold/system";
|
|
2300
2380
|
|
|
2301
2381
|
// src/Table/Context.tsx
|
|
2302
|
-
import { createContext as
|
|
2303
|
-
var TableContext =
|
|
2304
|
-
var useTableContext = () =>
|
|
2382
|
+
import { createContext as createContext8, useContext as useContext8 } from "react";
|
|
2383
|
+
var TableContext = createContext8({});
|
|
2384
|
+
var useTableContext = () => useContext8(TableContext);
|
|
2305
2385
|
|
|
2306
2386
|
// src/Table/TableBody.tsx
|
|
2307
|
-
import
|
|
2387
|
+
import React54 from "react";
|
|
2308
2388
|
import { useTableRowGroup } from "@react-aria/table";
|
|
2309
2389
|
var TableBody = ({ children }) => {
|
|
2310
2390
|
const { rowGroupProps } = useTableRowGroup();
|
|
2311
|
-
return /* @__PURE__ */
|
|
2391
|
+
return /* @__PURE__ */ React54.createElement("tbody", {
|
|
2312
2392
|
...rowGroupProps
|
|
2313
2393
|
}, children);
|
|
2314
2394
|
};
|
|
2315
2395
|
|
|
2316
2396
|
// src/Table/TableCell.tsx
|
|
2317
|
-
import
|
|
2397
|
+
import React55, { useRef as useRef10 } from "react";
|
|
2318
2398
|
import { useTableCell } from "@react-aria/table";
|
|
2319
2399
|
import { useFocusRing as useFocusRing9 } from "@react-aria/focus";
|
|
2320
2400
|
import { mergeProps as mergeProps10 } from "@react-aria/utils";
|
|
@@ -2337,7 +2417,7 @@ var TableCell = ({ cell }) => {
|
|
|
2337
2417
|
};
|
|
2338
2418
|
const { focusProps, isFocusVisible } = useFocusRing9();
|
|
2339
2419
|
const stateProps = useStateProps13({ disabled, focusVisible: isFocusVisible });
|
|
2340
|
-
return /* @__PURE__ */
|
|
2420
|
+
return /* @__PURE__ */ React55.createElement(Box30, {
|
|
2341
2421
|
as: "td",
|
|
2342
2422
|
ref,
|
|
2343
2423
|
css: styles.cell,
|
|
@@ -2347,7 +2427,7 @@ var TableCell = ({ cell }) => {
|
|
|
2347
2427
|
};
|
|
2348
2428
|
|
|
2349
2429
|
// src/Table/TableCheckboxCell.tsx
|
|
2350
|
-
import
|
|
2430
|
+
import React56, { useRef as useRef11 } from "react";
|
|
2351
2431
|
import { useTableCell as useTableCell2, useTableSelectionCheckbox } from "@react-aria/table";
|
|
2352
2432
|
import { useFocusRing as useFocusRing10 } from "@react-aria/focus";
|
|
2353
2433
|
import { mergeProps as mergeProps11 } from "@react-aria/utils";
|
|
@@ -2390,7 +2470,7 @@ var TableCheckboxCell = ({ cell }) => {
|
|
|
2390
2470
|
);
|
|
2391
2471
|
const { focusProps, isFocusVisible } = useFocusRing10();
|
|
2392
2472
|
const stateProps = useStateProps14({ disabled, focusVisible: isFocusVisible });
|
|
2393
|
-
return /* @__PURE__ */
|
|
2473
|
+
return /* @__PURE__ */ React56.createElement(Box31, {
|
|
2394
2474
|
as: "td",
|
|
2395
2475
|
ref,
|
|
2396
2476
|
__baseCSS: {
|
|
@@ -2401,13 +2481,13 @@ var TableCheckboxCell = ({ cell }) => {
|
|
|
2401
2481
|
css: styles.cell,
|
|
2402
2482
|
...mergeProps11(gridCellProps, focusProps),
|
|
2403
2483
|
...stateProps
|
|
2404
|
-
}, /* @__PURE__ */
|
|
2484
|
+
}, /* @__PURE__ */ React56.createElement(Checkbox, {
|
|
2405
2485
|
...checkboxProps
|
|
2406
2486
|
}));
|
|
2407
2487
|
};
|
|
2408
2488
|
|
|
2409
2489
|
// src/Table/TableColumnHeader.tsx
|
|
2410
|
-
import
|
|
2490
|
+
import React57, { useRef as useRef12 } from "react";
|
|
2411
2491
|
import { useFocusRing as useFocusRing11 } from "@react-aria/focus";
|
|
2412
2492
|
import { useHover as useHover6 } from "@react-aria/interactions";
|
|
2413
2493
|
import { useTableColumnHeader } from "@react-aria/table";
|
|
@@ -2416,7 +2496,7 @@ import { Box as Box32, useStateProps as useStateProps15 } from "@marigold/system
|
|
|
2416
2496
|
var SortIndicator = ({
|
|
2417
2497
|
direction = "ascending",
|
|
2418
2498
|
visible
|
|
2419
|
-
}) => /* @__PURE__ */
|
|
2499
|
+
}) => /* @__PURE__ */ React57.createElement(Box32, {
|
|
2420
2500
|
as: "span",
|
|
2421
2501
|
role: "presentation",
|
|
2422
2502
|
"aria-hidden": "true",
|
|
@@ -2443,7 +2523,7 @@ var TableColumnHeader = ({ column }) => {
|
|
|
2443
2523
|
hover: isHovered,
|
|
2444
2524
|
focusVisible: isFocusVisible
|
|
2445
2525
|
});
|
|
2446
|
-
return /* @__PURE__ */
|
|
2526
|
+
return /* @__PURE__ */ React57.createElement(Box32, {
|
|
2447
2527
|
as: "th",
|
|
2448
2528
|
colSpan: column.colspan,
|
|
2449
2529
|
ref,
|
|
@@ -2451,37 +2531,37 @@ var TableColumnHeader = ({ column }) => {
|
|
|
2451
2531
|
css: styles.header,
|
|
2452
2532
|
...mergeProps12(columnHeaderProps, hoverProps, focusProps),
|
|
2453
2533
|
...stateProps
|
|
2454
|
-
}, column.rendered, column.props.allowsSorting && /* @__PURE__ */
|
|
2534
|
+
}, column.rendered, column.props.allowsSorting && /* @__PURE__ */ React57.createElement(SortIndicator, {
|
|
2455
2535
|
direction: (_a = state.sortDescriptor) == null ? void 0 : _a.direction,
|
|
2456
2536
|
visible: ((_b = state.sortDescriptor) == null ? void 0 : _b.column) === column.key
|
|
2457
2537
|
}));
|
|
2458
2538
|
};
|
|
2459
2539
|
|
|
2460
2540
|
// src/Table/TableHeader.tsx
|
|
2461
|
-
import
|
|
2541
|
+
import React58 from "react";
|
|
2462
2542
|
import { useTableRowGroup as useTableRowGroup2 } from "@react-aria/table";
|
|
2463
2543
|
var TableHeader = ({ children }) => {
|
|
2464
2544
|
const { rowGroupProps } = useTableRowGroup2();
|
|
2465
|
-
return /* @__PURE__ */
|
|
2545
|
+
return /* @__PURE__ */ React58.createElement("thead", {
|
|
2466
2546
|
...rowGroupProps
|
|
2467
2547
|
}, children);
|
|
2468
2548
|
};
|
|
2469
2549
|
|
|
2470
2550
|
// src/Table/TableHeaderRow.tsx
|
|
2471
|
-
import
|
|
2551
|
+
import React59, { useRef as useRef13 } from "react";
|
|
2472
2552
|
import { useTableHeaderRow } from "@react-aria/table";
|
|
2473
2553
|
var TableHeaderRow = ({ item, children }) => {
|
|
2474
2554
|
const { state } = useTableContext();
|
|
2475
2555
|
const ref = useRef13(null);
|
|
2476
2556
|
const { rowProps } = useTableHeaderRow({ node: item }, state, ref);
|
|
2477
|
-
return /* @__PURE__ */
|
|
2557
|
+
return /* @__PURE__ */ React59.createElement("tr", {
|
|
2478
2558
|
...rowProps,
|
|
2479
2559
|
ref
|
|
2480
2560
|
}, children);
|
|
2481
2561
|
};
|
|
2482
2562
|
|
|
2483
2563
|
// src/Table/TableRow.tsx
|
|
2484
|
-
import
|
|
2564
|
+
import React60, { useRef as useRef14 } from "react";
|
|
2485
2565
|
import { useFocusRing as useFocusRing12 } from "@react-aria/focus";
|
|
2486
2566
|
import { useHover as useHover7 } from "@react-aria/interactions";
|
|
2487
2567
|
import { useTableRow } from "@react-aria/table";
|
|
@@ -2516,7 +2596,7 @@ var TableRow = ({ children, row }) => {
|
|
|
2516
2596
|
focusVisible: isFocusVisible,
|
|
2517
2597
|
active: isPressed
|
|
2518
2598
|
});
|
|
2519
|
-
return /* @__PURE__ */
|
|
2599
|
+
return /* @__PURE__ */ React60.createElement(Box33, {
|
|
2520
2600
|
as: "tr",
|
|
2521
2601
|
ref,
|
|
2522
2602
|
__baseCSS: {
|
|
@@ -2529,7 +2609,7 @@ var TableRow = ({ children, row }) => {
|
|
|
2529
2609
|
};
|
|
2530
2610
|
|
|
2531
2611
|
// src/Table/TableSelectAllCell.tsx
|
|
2532
|
-
import
|
|
2612
|
+
import React61, { useRef as useRef15 } from "react";
|
|
2533
2613
|
import { useFocusRing as useFocusRing13 } from "@react-aria/focus";
|
|
2534
2614
|
import { useHover as useHover8 } from "@react-aria/interactions";
|
|
2535
2615
|
import {
|
|
@@ -2555,7 +2635,7 @@ var TableSelectAllCell = ({ column }) => {
|
|
|
2555
2635
|
hover: isHovered,
|
|
2556
2636
|
focusVisible: isFocusVisible
|
|
2557
2637
|
});
|
|
2558
|
-
return /* @__PURE__ */
|
|
2638
|
+
return /* @__PURE__ */ React61.createElement(Box34, {
|
|
2559
2639
|
as: "th",
|
|
2560
2640
|
ref,
|
|
2561
2641
|
__baseCSS: {
|
|
@@ -2566,7 +2646,7 @@ var TableSelectAllCell = ({ column }) => {
|
|
|
2566
2646
|
css: styles.header,
|
|
2567
2647
|
...mergeProps14(columnHeaderProps, hoverProps, focusProps),
|
|
2568
2648
|
...stateProps
|
|
2569
|
-
}, /* @__PURE__ */
|
|
2649
|
+
}, /* @__PURE__ */ React61.createElement(Checkbox, {
|
|
2570
2650
|
...checkboxProps
|
|
2571
2651
|
}));
|
|
2572
2652
|
};
|
|
@@ -2593,9 +2673,9 @@ var Table = ({
|
|
|
2593
2673
|
{ parts: ["table", "header", "row", "cell"] }
|
|
2594
2674
|
);
|
|
2595
2675
|
const { collection } = state;
|
|
2596
|
-
return /* @__PURE__ */
|
|
2676
|
+
return /* @__PURE__ */ React62.createElement(TableContext.Provider, {
|
|
2597
2677
|
value: { state, interactive, styles }
|
|
2598
|
-
}, /* @__PURE__ */
|
|
2678
|
+
}, /* @__PURE__ */ React62.createElement(Box35, {
|
|
2599
2679
|
as: "table",
|
|
2600
2680
|
ref: tableRef,
|
|
2601
2681
|
__baseCSS: {
|
|
@@ -2607,30 +2687,30 @@ var Table = ({
|
|
|
2607
2687
|
},
|
|
2608
2688
|
css: styles.table,
|
|
2609
2689
|
...gridProps
|
|
2610
|
-
}, /* @__PURE__ */
|
|
2690
|
+
}, /* @__PURE__ */ React62.createElement(TableHeader, null, collection.headerRows.map((headerRow) => /* @__PURE__ */ React62.createElement(TableHeaderRow, {
|
|
2611
2691
|
key: headerRow.key,
|
|
2612
2692
|
item: headerRow
|
|
2613
2693
|
}, [...headerRow.childNodes].map(
|
|
2614
2694
|
(column) => {
|
|
2615
2695
|
var _a;
|
|
2616
|
-
return ((_a = column.props) == null ? void 0 : _a.isSelectionCell) ? /* @__PURE__ */
|
|
2696
|
+
return ((_a = column.props) == null ? void 0 : _a.isSelectionCell) ? /* @__PURE__ */ React62.createElement(TableSelectAllCell, {
|
|
2617
2697
|
key: column.key,
|
|
2618
2698
|
column
|
|
2619
|
-
}) : /* @__PURE__ */
|
|
2699
|
+
}) : /* @__PURE__ */ React62.createElement(TableColumnHeader, {
|
|
2620
2700
|
key: column.key,
|
|
2621
2701
|
column
|
|
2622
2702
|
});
|
|
2623
2703
|
}
|
|
2624
|
-
)))), /* @__PURE__ */
|
|
2704
|
+
)))), /* @__PURE__ */ React62.createElement(TableBody, null, [...collection.body.childNodes].map((row) => /* @__PURE__ */ React62.createElement(TableRow, {
|
|
2625
2705
|
key: row.key,
|
|
2626
2706
|
row
|
|
2627
2707
|
}, [...row.childNodes].map(
|
|
2628
2708
|
(cell) => {
|
|
2629
2709
|
var _a;
|
|
2630
|
-
return ((_a = cell.props) == null ? void 0 : _a.isSelectionCell) ? /* @__PURE__ */
|
|
2710
|
+
return ((_a = cell.props) == null ? void 0 : _a.isSelectionCell) ? /* @__PURE__ */ React62.createElement(TableCheckboxCell, {
|
|
2631
2711
|
key: cell.key,
|
|
2632
2712
|
cell
|
|
2633
|
-
}) : /* @__PURE__ */
|
|
2713
|
+
}) : /* @__PURE__ */ React62.createElement(TableCell, {
|
|
2634
2714
|
key: cell.key,
|
|
2635
2715
|
cell
|
|
2636
2716
|
});
|
|
@@ -2644,7 +2724,7 @@ Table.Header = Header2;
|
|
|
2644
2724
|
Table.Row = Row;
|
|
2645
2725
|
|
|
2646
2726
|
// src/Text/Text.tsx
|
|
2647
|
-
import
|
|
2727
|
+
import React63 from "react";
|
|
2648
2728
|
import {
|
|
2649
2729
|
useComponentStyles as useComponentStyles29
|
|
2650
2730
|
} from "@marigold/system";
|
|
@@ -2652,6 +2732,7 @@ import { Box as Box36 } from "@marigold/system";
|
|
|
2652
2732
|
var Text = ({
|
|
2653
2733
|
variant,
|
|
2654
2734
|
size,
|
|
2735
|
+
display,
|
|
2655
2736
|
align,
|
|
2656
2737
|
color,
|
|
2657
2738
|
fontSize,
|
|
@@ -2665,18 +2746,26 @@ var Text = ({
|
|
|
2665
2746
|
variant,
|
|
2666
2747
|
size
|
|
2667
2748
|
});
|
|
2668
|
-
return /* @__PURE__ */
|
|
2749
|
+
return /* @__PURE__ */ React63.createElement(Box36, {
|
|
2669
2750
|
as: "p",
|
|
2670
2751
|
...props,
|
|
2671
2752
|
css: [
|
|
2672
2753
|
styles,
|
|
2673
|
-
{
|
|
2754
|
+
{
|
|
2755
|
+
display,
|
|
2756
|
+
color,
|
|
2757
|
+
cursor,
|
|
2758
|
+
outline,
|
|
2759
|
+
fontSize,
|
|
2760
|
+
fontWeight,
|
|
2761
|
+
textAlign: align
|
|
2762
|
+
}
|
|
2674
2763
|
]
|
|
2675
2764
|
}, children);
|
|
2676
2765
|
};
|
|
2677
2766
|
|
|
2678
2767
|
// src/TextArea/TextArea.tsx
|
|
2679
|
-
import
|
|
2768
|
+
import React64, { forwardRef as forwardRef14 } from "react";
|
|
2680
2769
|
import { useHover as useHover9 } from "@react-aria/interactions";
|
|
2681
2770
|
import { useFocusRing as useFocusRing14 } from "@react-aria/focus";
|
|
2682
2771
|
import { useTextField } from "@react-aria/textfield";
|
|
@@ -2721,7 +2810,7 @@ var TextArea = forwardRef14(
|
|
|
2721
2810
|
error
|
|
2722
2811
|
});
|
|
2723
2812
|
const styles = useComponentStyles30("TextArea", { variant, size });
|
|
2724
|
-
return /* @__PURE__ */
|
|
2813
|
+
return /* @__PURE__ */ React64.createElement(FieldBase, {
|
|
2725
2814
|
label,
|
|
2726
2815
|
labelProps,
|
|
2727
2816
|
required,
|
|
@@ -2734,7 +2823,7 @@ var TextArea = forwardRef14(
|
|
|
2734
2823
|
variant,
|
|
2735
2824
|
size,
|
|
2736
2825
|
width
|
|
2737
|
-
}, /* @__PURE__ */
|
|
2826
|
+
}, /* @__PURE__ */ React64.createElement(Box37, {
|
|
2738
2827
|
as: "textarea",
|
|
2739
2828
|
css: styles,
|
|
2740
2829
|
ref: textAreaRef,
|
|
@@ -2748,7 +2837,7 @@ var TextArea = forwardRef14(
|
|
|
2748
2837
|
);
|
|
2749
2838
|
|
|
2750
2839
|
// src/TextField/TextField.tsx
|
|
2751
|
-
import
|
|
2840
|
+
import React65, { forwardRef as forwardRef15 } from "react";
|
|
2752
2841
|
import { useHover as useHover10 } from "@react-aria/interactions";
|
|
2753
2842
|
import { useFocusRing as useFocusRing15 } from "@react-aria/focus";
|
|
2754
2843
|
import { useTextField as useTextField2 } from "@react-aria/textfield";
|
|
@@ -2780,7 +2869,7 @@ var TextField = forwardRef15(
|
|
|
2780
2869
|
readOnly,
|
|
2781
2870
|
error
|
|
2782
2871
|
});
|
|
2783
|
-
return /* @__PURE__ */
|
|
2872
|
+
return /* @__PURE__ */ React65.createElement(FieldBase, {
|
|
2784
2873
|
label,
|
|
2785
2874
|
labelProps,
|
|
2786
2875
|
required,
|
|
@@ -2793,7 +2882,7 @@ var TextField = forwardRef15(
|
|
|
2793
2882
|
variant,
|
|
2794
2883
|
size,
|
|
2795
2884
|
width
|
|
2796
|
-
}, /* @__PURE__ */
|
|
2885
|
+
}, /* @__PURE__ */ React65.createElement(Input, {
|
|
2797
2886
|
ref: inputRef,
|
|
2798
2887
|
variant,
|
|
2799
2888
|
size,
|
|
@@ -2806,7 +2895,7 @@ var TextField = forwardRef15(
|
|
|
2806
2895
|
);
|
|
2807
2896
|
|
|
2808
2897
|
// src/Tiles/Tiles.tsx
|
|
2809
|
-
import
|
|
2898
|
+
import React66 from "react";
|
|
2810
2899
|
import { useTheme as useTheme3 } from "@marigold/system";
|
|
2811
2900
|
var Tiles = ({
|
|
2812
2901
|
space = "none",
|
|
@@ -2822,7 +2911,7 @@ var Tiles = ({
|
|
|
2822
2911
|
if (stretch) {
|
|
2823
2912
|
column = `minmax(${column}, 1fr)`;
|
|
2824
2913
|
}
|
|
2825
|
-
return /* @__PURE__ */
|
|
2914
|
+
return /* @__PURE__ */ React66.createElement(Box, {
|
|
2826
2915
|
...props,
|
|
2827
2916
|
css: {
|
|
2828
2917
|
display: "grid",
|
|
@@ -2834,7 +2923,7 @@ var Tiles = ({
|
|
|
2834
2923
|
};
|
|
2835
2924
|
|
|
2836
2925
|
// src/Tooltip/Tooltip.tsx
|
|
2837
|
-
import
|
|
2926
|
+
import React68 from "react";
|
|
2838
2927
|
import { useTooltip } from "@react-aria/tooltip";
|
|
2839
2928
|
import {
|
|
2840
2929
|
Box as Box38,
|
|
@@ -2842,12 +2931,12 @@ import {
|
|
|
2842
2931
|
} from "@marigold/system";
|
|
2843
2932
|
|
|
2844
2933
|
// src/Tooltip/Context.ts
|
|
2845
|
-
import { createContext as
|
|
2846
|
-
var TooltipContext =
|
|
2847
|
-
var useTooltipContext = () =>
|
|
2934
|
+
import { createContext as createContext9, useContext as useContext9 } from "react";
|
|
2935
|
+
var TooltipContext = createContext9({});
|
|
2936
|
+
var useTooltipContext = () => useContext9(TooltipContext);
|
|
2848
2937
|
|
|
2849
2938
|
// src/Tooltip/TooltipTrigger.tsx
|
|
2850
|
-
import
|
|
2939
|
+
import React67, { useRef as useRef17 } from "react";
|
|
2851
2940
|
import { FocusableProvider } from "@react-aria/focus";
|
|
2852
2941
|
import { useOverlayPosition } from "@react-aria/overlays";
|
|
2853
2942
|
import { useTooltipTrigger } from "@react-aria/tooltip";
|
|
@@ -2860,7 +2949,7 @@ var TooltipTrigger = ({
|
|
|
2860
2949
|
children,
|
|
2861
2950
|
...rest
|
|
2862
2951
|
}) => {
|
|
2863
|
-
const [tooltipTrigger, tooltip] =
|
|
2952
|
+
const [tooltipTrigger, tooltip] = React67.Children.toArray(children);
|
|
2864
2953
|
const props = {
|
|
2865
2954
|
...rest,
|
|
2866
2955
|
isDisabled: disabled,
|
|
@@ -2888,10 +2977,10 @@ var TooltipTrigger = ({
|
|
|
2888
2977
|
isOpen: state.isOpen,
|
|
2889
2978
|
overlayRef
|
|
2890
2979
|
});
|
|
2891
|
-
return /* @__PURE__ */
|
|
2980
|
+
return /* @__PURE__ */ React67.createElement(FocusableProvider, {
|
|
2892
2981
|
ref: tooltipTriggerRef,
|
|
2893
2982
|
...triggerProps
|
|
2894
|
-
}, tooltipTrigger, /* @__PURE__ */
|
|
2983
|
+
}, tooltipTrigger, /* @__PURE__ */ React67.createElement(TooltipContext.Provider, {
|
|
2895
2984
|
value: {
|
|
2896
2985
|
state,
|
|
2897
2986
|
overlayRef,
|
|
@@ -2900,7 +2989,7 @@ var TooltipTrigger = ({
|
|
|
2900
2989
|
...tooltipProps,
|
|
2901
2990
|
...positionProps
|
|
2902
2991
|
}
|
|
2903
|
-
}, /* @__PURE__ */
|
|
2992
|
+
}, /* @__PURE__ */ React67.createElement(Overlay, {
|
|
2904
2993
|
open: state.isOpen
|
|
2905
2994
|
}, tooltip)));
|
|
2906
2995
|
};
|
|
@@ -2914,13 +3003,13 @@ var Tooltip = ({ children, variant, size }) => {
|
|
|
2914
3003
|
{ variant, size },
|
|
2915
3004
|
{ parts: ["container", "arrow"] }
|
|
2916
3005
|
);
|
|
2917
|
-
return /* @__PURE__ */
|
|
3006
|
+
return /* @__PURE__ */ React68.createElement(Box38, {
|
|
2918
3007
|
...tooltipProps,
|
|
2919
3008
|
...rest,
|
|
2920
3009
|
ref: overlayRef,
|
|
2921
3010
|
css: styles.container,
|
|
2922
3011
|
"data-placement": placement
|
|
2923
|
-
}, /* @__PURE__ */
|
|
3012
|
+
}, /* @__PURE__ */ React68.createElement("div", null, children), /* @__PURE__ */ React68.createElement(Box38, {
|
|
2924
3013
|
...arrowProps,
|
|
2925
3014
|
__baseCSS: {
|
|
2926
3015
|
position: "absolute",
|
|
@@ -2937,122 +3026,122 @@ var Tooltip = ({ children, variant, size }) => {
|
|
|
2937
3026
|
Tooltip.Trigger = TooltipTrigger;
|
|
2938
3027
|
|
|
2939
3028
|
// src/XLoader/XLoader.tsx
|
|
2940
|
-
import { SVG as
|
|
2941
|
-
import
|
|
2942
|
-
var XLoader = forwardRef16((props, ref) => /* @__PURE__ */
|
|
3029
|
+
import { SVG as SVG4 } from "@marigold/system";
|
|
3030
|
+
import React69, { forwardRef as forwardRef16 } from "react";
|
|
3031
|
+
var XLoader = forwardRef16((props, ref) => /* @__PURE__ */ React69.createElement(SVG4, {
|
|
2943
3032
|
id: "XLoader",
|
|
2944
3033
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2945
3034
|
size: 150,
|
|
2946
3035
|
viewBox: "0 0 150 150",
|
|
2947
3036
|
...props,
|
|
2948
3037
|
...ref
|
|
2949
|
-
}, /* @__PURE__ */
|
|
3038
|
+
}, /* @__PURE__ */ React69.createElement("path", {
|
|
2950
3039
|
id: "XMLID_1_",
|
|
2951
3040
|
d: "M35.3 27h26.5l54 74.1H88.7z"
|
|
2952
|
-
}), /* @__PURE__ */
|
|
3041
|
+
}), /* @__PURE__ */ React69.createElement("path", {
|
|
2953
3042
|
id: "XMLID_5_",
|
|
2954
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"
|
|
2955
|
-
}, /* @__PURE__ */
|
|
3044
|
+
}, /* @__PURE__ */ React69.createElement("animate", {
|
|
2956
3045
|
attributeName: "opacity",
|
|
2957
3046
|
attributeType: "XML",
|
|
2958
3047
|
values: "1; .01; 1; 1; 1;",
|
|
2959
3048
|
begin: "1.0s",
|
|
2960
3049
|
dur: "2.5s",
|
|
2961
3050
|
repeatCount: "indefinite"
|
|
2962
|
-
})), /* @__PURE__ */
|
|
3051
|
+
})), /* @__PURE__ */ React69.createElement("path", {
|
|
2963
3052
|
id: "XMLID_18_",
|
|
2964
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"
|
|
2965
|
-
}, /* @__PURE__ */
|
|
3054
|
+
}, /* @__PURE__ */ React69.createElement("animate", {
|
|
2966
3055
|
attributeName: "opacity",
|
|
2967
3056
|
attributeType: "XML",
|
|
2968
3057
|
values: "1; .01; 1; 1; 1;",
|
|
2969
3058
|
begin: "0.9s",
|
|
2970
3059
|
dur: "2.5s",
|
|
2971
3060
|
repeatCount: "indefinite"
|
|
2972
|
-
})), /* @__PURE__ */
|
|
3061
|
+
})), /* @__PURE__ */ React69.createElement("path", {
|
|
2973
3062
|
id: "XMLID_19_",
|
|
2974
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"
|
|
2975
|
-
}, /* @__PURE__ */
|
|
3064
|
+
}, /* @__PURE__ */ React69.createElement("animate", {
|
|
2976
3065
|
attributeName: "opacity",
|
|
2977
3066
|
attributeType: "XML",
|
|
2978
3067
|
values: "1; .01; 1; 1; 1;",
|
|
2979
3068
|
begin: "0.8s",
|
|
2980
3069
|
dur: "2.5s",
|
|
2981
3070
|
repeatCount: "indefinite"
|
|
2982
|
-
})), /* @__PURE__ */
|
|
3071
|
+
})), /* @__PURE__ */ React69.createElement("path", {
|
|
2983
3072
|
id: "XMLID_20_",
|
|
2984
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"
|
|
2985
|
-
}, /* @__PURE__ */
|
|
3074
|
+
}, /* @__PURE__ */ React69.createElement("animate", {
|
|
2986
3075
|
attributeName: "opacity",
|
|
2987
3076
|
attributeType: "XML",
|
|
2988
3077
|
values: "1; .01; 1; 1; 1;",
|
|
2989
3078
|
begin: "0.7s",
|
|
2990
3079
|
dur: "2.5s",
|
|
2991
3080
|
repeatCount: "indefinite"
|
|
2992
|
-
})), /* @__PURE__ */
|
|
3081
|
+
})), /* @__PURE__ */ React69.createElement("path", {
|
|
2993
3082
|
id: "XMLID_21_",
|
|
2994
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"
|
|
2995
|
-
}, /* @__PURE__ */
|
|
3084
|
+
}, /* @__PURE__ */ React69.createElement("animate", {
|
|
2996
3085
|
attributeName: "opacity",
|
|
2997
3086
|
attributeType: "XML",
|
|
2998
3087
|
values: "1; .01; 1; 1; 1;",
|
|
2999
3088
|
begin: "0.6s",
|
|
3000
3089
|
dur: "2.5s",
|
|
3001
3090
|
repeatCount: "indefinite"
|
|
3002
|
-
})), /* @__PURE__ */
|
|
3091
|
+
})), /* @__PURE__ */ React69.createElement("path", {
|
|
3003
3092
|
id: "XMLID_22_",
|
|
3004
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"
|
|
3005
|
-
}, /* @__PURE__ */
|
|
3094
|
+
}, /* @__PURE__ */ React69.createElement("animate", {
|
|
3006
3095
|
attributeName: "opacity",
|
|
3007
3096
|
attributeType: "XML",
|
|
3008
3097
|
values: "1; .01; 1; 1; 1;",
|
|
3009
3098
|
begin: "0.5s",
|
|
3010
3099
|
dur: "2.5s",
|
|
3011
3100
|
repeatCount: "indefinite"
|
|
3012
|
-
})), /* @__PURE__ */
|
|
3101
|
+
})), /* @__PURE__ */ React69.createElement("path", {
|
|
3013
3102
|
id: "XMLID_23_",
|
|
3014
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"
|
|
3015
|
-
}, /* @__PURE__ */
|
|
3104
|
+
}, /* @__PURE__ */ React69.createElement("animate", {
|
|
3016
3105
|
attributeName: "opacity",
|
|
3017
3106
|
attributeType: "XML",
|
|
3018
3107
|
values: "1; .01; 1; 1; 1;",
|
|
3019
3108
|
begin: "0.4s",
|
|
3020
3109
|
dur: "2.5s",
|
|
3021
3110
|
repeatCount: "indefinite"
|
|
3022
|
-
})), /* @__PURE__ */
|
|
3111
|
+
})), /* @__PURE__ */ React69.createElement("path", {
|
|
3023
3112
|
id: "XMLID_24_",
|
|
3024
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"
|
|
3025
|
-
}, /* @__PURE__ */
|
|
3114
|
+
}, /* @__PURE__ */ React69.createElement("animate", {
|
|
3026
3115
|
attributeName: "opacity",
|
|
3027
3116
|
attributeType: "XML",
|
|
3028
3117
|
values: "1; .01; 1; 1; 1;",
|
|
3029
3118
|
begin: "0.3s",
|
|
3030
3119
|
dur: "2.5s",
|
|
3031
3120
|
repeatCount: "indefinite"
|
|
3032
|
-
})), /* @__PURE__ */
|
|
3121
|
+
})), /* @__PURE__ */ React69.createElement("path", {
|
|
3033
3122
|
id: "XMLID_25_",
|
|
3034
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"
|
|
3035
|
-
}, /* @__PURE__ */
|
|
3124
|
+
}, /* @__PURE__ */ React69.createElement("animate", {
|
|
3036
3125
|
attributeName: "opacity",
|
|
3037
3126
|
attributeType: "XML",
|
|
3038
3127
|
values: "1; .01; 1; 1; 1;",
|
|
3039
3128
|
begin: "0.2s",
|
|
3040
3129
|
dur: "2.5s",
|
|
3041
3130
|
repeatCount: "indefinite"
|
|
3042
|
-
})), /* @__PURE__ */
|
|
3131
|
+
})), /* @__PURE__ */ React69.createElement("path", {
|
|
3043
3132
|
id: "XMLID_26_",
|
|
3044
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"
|
|
3045
|
-
}, /* @__PURE__ */
|
|
3134
|
+
}, /* @__PURE__ */ React69.createElement("animate", {
|
|
3046
3135
|
attributeName: "opacity",
|
|
3047
3136
|
attributeType: "XML",
|
|
3048
3137
|
values: "1; .01; 1; 1; 1;",
|
|
3049
3138
|
begin: "0.1s",
|
|
3050
3139
|
dur: "2.5s",
|
|
3051
3140
|
repeatCount: "indefinite"
|
|
3052
|
-
})), /* @__PURE__ */
|
|
3141
|
+
})), /* @__PURE__ */ React69.createElement("path", {
|
|
3053
3142
|
id: "XMLID_27_",
|
|
3054
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"
|
|
3055
|
-
}, /* @__PURE__ */
|
|
3144
|
+
}, /* @__PURE__ */ React69.createElement("animate", {
|
|
3056
3145
|
attributeName: "opacity",
|
|
3057
3146
|
attributeType: "XML",
|
|
3058
3147
|
values: "1; .01; 1; 1; 1;",
|
|
@@ -3061,6 +3150,7 @@ var XLoader = forwardRef16((props, ref) => /* @__PURE__ */ React66.createElement
|
|
|
3061
3150
|
repeatCount: "indefinite"
|
|
3062
3151
|
}))));
|
|
3063
3152
|
export {
|
|
3153
|
+
ActionMenu,
|
|
3064
3154
|
Aside,
|
|
3065
3155
|
Aspect,
|
|
3066
3156
|
Badge,
|
|
@@ -3077,6 +3167,9 @@ export {
|
|
|
3077
3167
|
Container,
|
|
3078
3168
|
Dialog,
|
|
3079
3169
|
Divider,
|
|
3170
|
+
FieldBase,
|
|
3171
|
+
FieldGroup,
|
|
3172
|
+
FieldGroupContext,
|
|
3080
3173
|
Footer,
|
|
3081
3174
|
Header,
|
|
3082
3175
|
Headline,
|
|
@@ -3115,6 +3208,7 @@ export {
|
|
|
3115
3208
|
extendTheme,
|
|
3116
3209
|
useAsyncList,
|
|
3117
3210
|
useCheckboxGroupContext,
|
|
3211
|
+
useFieldGroupContext,
|
|
3118
3212
|
useListData,
|
|
3119
3213
|
useTheme2 as useTheme
|
|
3120
3214
|
};
|